ETH Price: $2,453.95 (-5.68%)

Contract

0x2a2c2Bb44c65a42E17BdF401C5F4ACD977e948B2
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60a06040168994232023-03-24 19:25:23557 days ago1679685923IN
 Create: GalaMusic
0 ETH0.1313980824.65209985

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
GalaMusic

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 23 : GalaMusic.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

import "./Common.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC1155/extensions/IERC1155MetadataURIUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC1155/IERC1155ReceiverUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";
import "operator-filter-registry/src/upgradeable/DefaultOperatorFiltererUpgradeable.sol";

contract GalaMusic is
    Initializable,
    CommonConstants,    
    IERC1155Upgradeable,
    IERC1155MetadataURIUpgradeable,
    PausableUpgradeable,
    ERC165Upgradeable,
    UUPSUpgradeable,
    AccessControlUpgradeable,
    OperatorFiltererUpgradeable
{
    address private constant DEFAULT_REGISTRY = 0x000000000000AAeB6D7670E522A718067333cd4E;
    address private constant DEFAULT_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;
    bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE");
    bytes32 public constant UPGRADER_ROLE = keccak256("UPGRADER_ROLE");

    using AddressUpgradeable for address;
    uint256 constant TYPE_MASK = uint256(type(uint128).max) << 128;
    uint256 public constant NF_INDEX_MASK = type(uint128).max;
    uint256 constant TYPE_NF_BIT = 1 << 255;
    uint256 nonce;

    string public client;

    mapping(uint256 => mapping(address => uint256)) internal balances; // id => (owner => balance)
    mapping(address => mapping(address => bool)) internal operatorApproval; // owner => (operator => approved)
    mapping(uint256 => address) public nfOwners;
    mapping(uint256 => bool) public nfExists;
    mapping(uint256 => uint256) public tokenSupply;
    string private baseContractURI;
    string private baseURI;

    event Client(string _clientName);    
    event BaseURI(string baseURI);
    event ContractURI(string contractURI);
    event BaseTypeCreated(uint256 baseType);
    event MinterAdded(address _account);
    event MinterRemoved(address _account);
    event UpgraderAdded(address _account);
    event UpgraderRemoved(address _account);
    event AdminTransferred(address _oldOwner, address _newOwner);

    modifier notZeroAddress(address _account) {
        require(_account != address(0), "address cannot be zero");
        _;
    }

    
    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor() {
        _disableInitializers();
    }   

    function initialize(string memory _client, address _minter, address _upgrader) public initializer notZeroAddress(_minter) notZeroAddress(_upgrader) {
        require(bytes(_client).length > 0, "Contract client name is required!");

        client = _client;
        __AccessControl_init();
        __UUPSUpgradeable_init();
        __Pausable_init();
        __OperatorFilterer_init(DEFAULT_SUBSCRIPTION, true);

        _grantRole(DEFAULT_ADMIN_ROLE, _msgSender());
        _grantRole(MINTER_ROLE, _minter);
        _grantRole(UPGRADER_ROLE, _upgrader);
        emit Client(_client);
    }

    function create(bool _isNF) external whenNotPaused onlyRole(MINTER_ROLE) returns (uint256 _type) {
        _type = (++nonce << 128);

        if (_isNF) {
            _type = _type | TYPE_NF_BIT;
            nfExists[_type] = true;
        } else {
            emit TransferSingle(msg.sender, address(0x0), address(0x0), _type, 0);
        }

        emit BaseTypeCreated(_type);

        return _type;
    }

    function mintNonFungible(uint256[] calldata _ids, address[] calldata _to, bytes calldata _data) external whenNotPaused onlyRole(MINTER_ROLE) {
        require(_ids.length == _to.length, "IDs and recipients must be of same length");
        for (uint256 i = 0; i < _to.length; ++i) {
            uint256 tokenType = getNonFungibleBaseType(_ids[i]);

            require(nfExists[tokenType], "NF token must exist");

            require(isNonFungible(tokenType), "TokenType not non-fungible");

            require(_to[i] != address(0x0), "Cannot mint to zero address");

            require(nfOwners[_ids[i]] == address(0x0), "Token already owned");

            require(tokenType != _ids[i], "Cannot mint the base type");

            address distributeTo = _to[i];

            nfOwners[_ids[i]] = distributeTo;

            tokenSupply[tokenType] = tokenSupply[tokenType] + 1;
            balances[tokenType][distributeTo] = balances[tokenType][distributeTo] + 1;

            emit TransferSingle(msg.sender, address(0x0), distributeTo, _ids[i], 1);

            broadcastURIEvent(_ids[i]);

            if (distributeTo.isContract()) {
                _doSafeTransferAcceptanceCheck(msg.sender, address(0x0), distributeTo, _ids[i], 1, _data);
            }
        }
    }

    function mintFungible(
        uint256 _id,
        address[] calldata _to,
        uint256[] calldata _quantities,
        bytes calldata _data
    ) external whenNotPaused onlyRole(MINTER_ROLE) {        
        require(isFungible(_id), "ID must be a fungible ID");
        require(_to.length == _quantities.length, "Address and quantity length mismatch");
        for (uint256 i = 0; i < _to.length; ++i) {
            require(_to[i] != address(0x0), "Recipient address cannot be zero");
            balances[_id][_to[i]] = _quantities[i] + balances[_id][_to[i]];
            tokenSupply[_id] = tokenSupply[_id] + _quantities[i];

            emit TransferSingle(msg.sender, address(0x0), _to[i], _id, _quantities[i]);

            if (_to[i].isContract()) {
                _doSafeTransferAcceptanceCheck(msg.sender, address(0x0), _to[i], _id, _quantities[i], _data);
            }
        }
    }

    function safeTransferFrom(
        address _from,
        address _to,
        uint256 _id,
        uint256 _value,
        bytes calldata _data
    ) external override whenNotPaused onlyAllowedOperator(_from) {
        require(_to != address(0x0), "Cannot send to zero address");
        require(_from == msg.sender || operatorApproval[_from][msg.sender], "Need operator approval for 3rd party transfers");

        if (isNonFungible(_id)) {
            require(nfOwners[_id] == _from, "Invalid owner");
            require(_value == 1, "Quantity must be 1");
            nfOwners[_id] = _to;
            // You could keep balance of NF type in base type id like so:
            uint256 baseType = getNonFungibleBaseType(_id);
            require(balances[baseType][_from] >= _value, "Quantity must be greater than the balance");

            balances[baseType][_from] = balances[baseType][_from] - _value;
            balances[baseType][_to] = balances[baseType][_to] + _value;
        } else {
            require(balances[_id][_from] >= _value, "Quantity must be greater than the balance");
            balances[_id][_from] = balances[_id][_from] - _value;
            balances[_id][_to] = balances[_id][_to] + _value;
        }

        emit TransferSingle(msg.sender, _from, _to, _id, _value);

        if (_to.isContract()) {
            _doSafeTransferAcceptanceCheck(msg.sender, _from, _to, _id, _value, _data);
        }
    }

    function safeBatchTransferFrom(
        address _from,
        address _to,
        uint256[] calldata _ids,
        uint256[] calldata _values,
        bytes calldata _data
    ) external override whenNotPaused onlyAllowedOperator(_from) {
        require(_to != address(0x0), "Cannot send to zero address");
        require(_ids.length == _values.length, "Array length must match");
        require(_from == msg.sender || operatorApproval[_from][msg.sender], "Need operator approval for 3rd party transfers");

        for (uint256 i = 0; i < _ids.length; ++i) {
            if (isNonFungible(_ids[i])) {
                require(nfOwners[_ids[i]] == _from, "Invalid owner");
                require(_values[i] == 1, "Quantity must be 1");
                nfOwners[_ids[i]] = _to;

                require(balances[getNonFungibleBaseType(_ids[i])][_from] >= _values[i], "Quantity must be greater than the balance");
                balances[getNonFungibleBaseType(_ids[i])][_from] = balances[getNonFungibleBaseType(_ids[i])][_from] - _values[i];
                balances[getNonFungibleBaseType(_ids[i])][_to] = balances[getNonFungibleBaseType(_ids[i])][_to] + _values[i];
            } else {
                require(balances[_ids[i]][_from] >= _values[i], "Quantity must be greater than the balance");
                balances[_ids[i]][_from] = balances[_ids[i]][_from] - _values[i];
                balances[_ids[i]][_to] = _values[i] + balances[_ids[i]][_to];
            }
        }

        emit TransferBatch(msg.sender, _from, _to, _ids, _values);

        if (_to.isContract()) {
            _doSafeBatchTransferAcceptanceCheck(msg.sender, _from, _to, _ids, _values, _data);
        }
    }

    function balanceOf(address owner_, uint256 _id) external view override returns (uint256) {
        require(owner_ != address(0x0), "Owner address cannot be zero");

        if (isNonFungibleItem(_id)) return nfOwners[_id] == owner_ ? 1 : 0;

        return balances[_id][owner_];
    }

    function balanceOfBatch(address[] calldata _owners, uint256[] calldata _ids) external view override returns (uint256[] memory) {
        require(_owners.length == _ids.length, "Owners and ids length mismatch");
        uint256[] memory balances_ = new uint256[](_owners.length);

        for (uint256 i = 0; i < _owners.length; ++i) {
            require(_owners[i] != address(0x0), "Owner address cannot be zero");

            uint256 id = _ids[i];
            if (isNonFungibleItem(id)) {
                balances_[i] = nfOwners[id] == _owners[i] ? 1 : 0;
            } else {
                balances_[i] = balances[id][_owners[i]];
            }
        }

        return balances_;
    }

    function setApprovalForAll(address _operator, bool _approved) external override whenNotPaused onlyAllowedOperatorApproval(_operator) {
        require(msg.sender != _operator, "ERC1155: setting approval status for self");
        require(_operator != address(0x0), "Operator address cannot be zero");

        operatorApproval[msg.sender][_operator] = _approved;
        emit ApprovalForAll(msg.sender, _operator, _approved);
    }

    function isApprovedForAll(address owner_, address _operator) public view override returns (bool) {
        return operatorApproval[owner_][_operator];
    }

    function isNonFungible(uint256 _id) public pure returns (bool) {
        return _id & TYPE_NF_BIT == TYPE_NF_BIT;
    }

    function isFungible(uint256 _id) public pure returns (bool) {
        return _id & TYPE_NF_BIT == 0;
    }

    function getNonFungibleIndex(uint256 _id) public pure returns (uint256) {
        return _id & NF_INDEX_MASK;
    }

    function getNonFungibleBaseType(uint256 _id) public pure returns (uint256) {
        return _id & TYPE_MASK;
    }

    function isNonFungibleBaseType(uint256 _id) external pure returns (bool) {
        // A base type has the NF bit but does not have an index.
        return (_id & TYPE_NF_BIT == TYPE_NF_BIT) && (_id & NF_INDEX_MASK == 0);
    }

    function isNonFungibleItem(uint256 _id) public pure returns (bool) {
        // A base type has the NF bit but does has an index.
        return (_id & TYPE_NF_BIT == TYPE_NF_BIT) && (_id & NF_INDEX_MASK != 0);
    }

    function ownerOf(uint256 _id) external view returns (address) {
        return nfOwners[_id];
    }

    function _doSafeTransferAcceptanceCheck(address _operator, address _from, address _to, uint256 _id, uint256 _value, bytes memory _data) internal {
        require(
            IERC1155ReceiverUpgradeable(_to).onERC1155Received(_operator, _from, _id, _value, _data) == ERC1155_ACCEPTED,
            "Contract returned an unknown value from onERC1155Received"
        );
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address _operator,
        address _from,
        address _to,
        uint256[] memory _ids,
        uint256[] memory _values,
        bytes memory _data
    ) internal {
        require(
            IERC1155ReceiverUpgradeable(_to).onERC1155BatchReceived(_operator, _from, _ids, _values, _data) == ERC1155_BATCH_ACCEPTED,
            "Contract returned an unknown value from onERC1155BatchReceived"
        );
    }

    function burn(address _from, uint256[] calldata _ids, uint256[] calldata _values) external whenNotPaused {
        require(_from == msg.sender || operatorApproval[_from][msg.sender], "Need operator approval for 3rd party burn");
        require(_ids.length > 0 && _ids.length == _values.length, "Ids and values mismatch");

        for (uint256 i = 0; i < _ids.length; i++) {
            if (isFungible(_ids[i])) {
                require(balances[_ids[i]][_from] >= _values[i], "Balance must be greater than value");
                balances[_ids[i]][_from] = balances[_ids[i]][_from] - _values[i];
                tokenSupply[_ids[i]] = tokenSupply[_ids[i]] - _values[i];
            } else {
                require(isNonFungible(_ids[i]), "Id must be non fungible");
                require(_values[i] == 1, "Value must be 1");
                require(nfOwners[_ids[i]] == _from, "Invalid owner");

                uint256 baseType = getNonFungibleBaseType(_ids[i]);
                require(balances[baseType][_from] >= _values[i], "Balance must be greater than value");
                balances[baseType][_from] = balances[baseType][_from] - _values[i];
                tokenSupply[baseType] = tokenSupply[baseType] - _values[i];
                delete nfOwners[_ids[i]];
            }
            emit TransferSingle(msg.sender, _from, address(0x0), _ids[i], _values[i]);
        }
    }

    function uri(uint256 _tokenId) public view override returns (string memory) {
        if (isNonFungible(_tokenId)) {
            require(nfOwners[_tokenId] != address(0x0), "This token id does not have any owner");
            uint256 baseType = getNonFungibleBaseType(_tokenId);
            uint256 instanceId = getNonFungibleIndex(_tokenId);
            return string(abi.encodePacked(baseURI, StringsUpgradeable.toString(baseType), "/", StringsUpgradeable.toString(instanceId)));
        } else {
            return string(abi.encodePacked(baseURI, StringsUpgradeable.toString(_tokenId)));
        }
    }

    function broadcastURIEvent(uint256 _tokenId) public onlyRole(DEFAULT_ADMIN_ROLE) {
        string memory _uri = uri(_tokenId);
        emit URI(_uri, _tokenId);
    }

    function setBaseURI(string calldata _baseURI) external onlyRole(DEFAULT_ADMIN_ROLE) {
        baseURI = _baseURI;
        emit BaseURI(baseURI);
    }

    function contractURI() external view returns (string memory) {
        return baseContractURI;
    }

    function setContractURI(string calldata _contractUri) external onlyRole(DEFAULT_ADMIN_ROLE) {
        baseContractURI = _contractUri;
        emit ContractURI(baseContractURI);
    }

    function updateClientName(string calldata _newClientName) external whenNotPaused onlyRole(DEFAULT_ADMIN_ROLE) {
        require(bytes(_newClientName).length > 0, "Client name cannot be empty");
        client = _newClientName;
        emit Client(_newClientName);
    }

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

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

    function supportsInterface(bytes4 _interfaceId) public view virtual override(ERC165Upgradeable, AccessControlUpgradeable, IERC165Upgradeable) returns (bool) {
        return
             _interfaceId == type(ERC165Upgradeable).interfaceId ||
             _interfaceId == type(AccessControlUpgradeable).interfaceId ||
             _interfaceId == type(IERC1155MetadataURIUpgradeable).interfaceId ||
             _interfaceId == type(IERC1155Upgradeable).interfaceId ||
            super.supportsInterface(_interfaceId);
    }

    function isMinter(address _account) public view returns (bool) {
        return hasRole(MINTER_ROLE, _account);
    }

    function isUpgrader(address _account) public view returns (bool) {
        return hasRole(UPGRADER_ROLE, _account);
    }

    function addMinter(address _account) public {
        grantRole(MINTER_ROLE, _account);
        emit MinterAdded(_account);
    }

    function removeMinter(address _account) public {
        revokeRole(MINTER_ROLE, _account);
        emit MinterRemoved(_account);
    }

    function addUpgrader(address _account) public {
        grantRole(UPGRADER_ROLE, _account);
        emit UpgraderAdded(_account);
    }

    function removeUpgrader(address _account) public {
        revokeRole(UPGRADER_ROLE, _account);
        emit UpgraderRemoved(_account);
    }

    function transferAdmin(address _newOwner) public {
        grantRole(DEFAULT_ADMIN_ROLE, _newOwner);
        revokeRole(DEFAULT_ADMIN_ROLE, _msgSender());
        emit AdminTransferred(_msgSender(), _newOwner);
    }

    function grantRole(bytes32 role, address _account) public virtual override onlyRole(getRoleAdmin(role)) notZeroAddress(_account) whenNotPaused {
        _grantRole(role, _account);
    }

    function revokeRole(bytes32 role, address _account) public override onlyRole(getRoleAdmin(role)) notZeroAddress(_account) whenNotPaused {
        _revokeRole(role, _account);
    } 

    function _authorizeUpgrade(address _newImplementation) internal override onlyRole(UPGRADER_ROLE) {}
}

File 2 of 23 : AccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControlUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import "../proxy/utils/Initializable.sol";

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

    function __AccessControl_init_unchained() internal onlyInitializing {
    }
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

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

        _revokeRole(role, account);
    }

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

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

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

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 3 of 23 : IAccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 4 of 23 : draft-IERC1822Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)

pragma solidity ^0.8.0;

/**
 * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
 * proxy whose upgrades are fully controlled by the current implementation.
 */
interface IERC1822ProxiableUpgradeable {
    /**
     * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
     * address.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy.
     */
    function proxiableUUID() external view returns (bytes32);
}

File 5 of 23 : IBeaconUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)

pragma solidity ^0.8.0;

/**
 * @dev This is the interface that {BeaconProxy} expects of its beacon.
 */
interface IBeaconUpgradeable {
    /**
     * @dev Must return an address that can be used as a delegate call target.
     *
     * {BeaconProxy} will check that this address is a contract.
     */
    function implementation() external view returns (address);
}

File 6 of 23 : ERC1967UpgradeUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)

pragma solidity ^0.8.2;

import "../beacon/IBeaconUpgradeable.sol";
import "../../interfaces/draft-IERC1822Upgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../utils/StorageSlotUpgradeable.sol";
import "../utils/Initializable.sol";

/**
 * @dev This abstract contract provides getters and event emitting update functions for
 * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
 *
 * _Available since v4.1._
 *
 * @custom:oz-upgrades-unsafe-allow delegatecall
 */
abstract contract ERC1967UpgradeUpgradeable is Initializable {
    function __ERC1967Upgrade_init() internal onlyInitializing {
    }

    function __ERC1967Upgrade_init_unchained() internal onlyInitializing {
    }
    // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
    bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;

    /**
     * @dev Storage slot with the address of the current implementation.
     * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;

    /**
     * @dev Emitted when the implementation is upgraded.
     */
    event Upgraded(address indexed implementation);

    /**
     * @dev Returns the current implementation address.
     */
    function _getImplementation() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 implementation slot.
     */
    function _setImplementation(address newImplementation) private {
        require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract");
        StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
    }

    /**
     * @dev Perform implementation upgrade
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeTo(address newImplementation) internal {
        _setImplementation(newImplementation);
        emit Upgraded(newImplementation);
    }

    /**
     * @dev Perform implementation upgrade with additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCall(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        _upgradeTo(newImplementation);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(newImplementation, data);
        }
    }

    /**
     * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
     *
     * Emits an {Upgraded} event.
     */
    function _upgradeToAndCallUUPS(
        address newImplementation,
        bytes memory data,
        bool forceCall
    ) internal {
        // Upgrades from old implementations will perform a rollback test. This test requires the new
        // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing
        // this special case will break upgrade paths from old UUPS implementation to new ones.
        if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {
            _setImplementation(newImplementation);
        } else {
            try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {
                require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID");
            } catch {
                revert("ERC1967Upgrade: new implementation is not UUPS");
            }
            _upgradeToAndCall(newImplementation, data, forceCall);
        }
    }

    /**
     * @dev Storage slot with the admin of the contract.
     * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
     * validated in the constructor.
     */
    bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;

    /**
     * @dev Emitted when the admin account has changed.
     */
    event AdminChanged(address previousAdmin, address newAdmin);

    /**
     * @dev Returns the current admin.
     */
    function _getAdmin() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;
    }

    /**
     * @dev Stores a new address in the EIP1967 admin slot.
     */
    function _setAdmin(address newAdmin) private {
        require(newAdmin != address(0), "ERC1967: new admin is the zero address");
        StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
    }

    /**
     * @dev Changes the admin of the proxy.
     *
     * Emits an {AdminChanged} event.
     */
    function _changeAdmin(address newAdmin) internal {
        emit AdminChanged(_getAdmin(), newAdmin);
        _setAdmin(newAdmin);
    }

    /**
     * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
     * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
     */
    bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;

    /**
     * @dev Emitted when the beacon is upgraded.
     */
    event BeaconUpgraded(address indexed beacon);

    /**
     * @dev Returns the current beacon.
     */
    function _getBeacon() internal view returns (address) {
        return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;
    }

    /**
     * @dev Stores a new beacon in the EIP1967 beacon slot.
     */
    function _setBeacon(address newBeacon) private {
        require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract");
        require(
            AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),
            "ERC1967: beacon implementation is not a contract"
        );
        StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;
    }

    /**
     * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
     * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
     *
     * Emits a {BeaconUpgraded} event.
     */
    function _upgradeBeaconToAndCall(
        address newBeacon,
        bytes memory data,
        bool forceCall
    ) internal {
        _setBeacon(newBeacon);
        emit BeaconUpgraded(newBeacon);
        if (data.length > 0 || forceCall) {
            _functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);
        }
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function _functionDelegateCall(address target, bytes memory data) private returns (bytes memory) {
        require(AddressUpgradeable.isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return AddressUpgradeable.verifyCallResult(success, returndata, "Address: low-level delegate call failed");
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 7 of 23 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts.
     *
     * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
     * constructor.
     *
     * Emits an {Initialized} event.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * A reinitializer may be used after the original initialization step. This is essential to configure modules that
     * are added through upgrades and that require initialization.
     *
     * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
     * cannot be nested. If one is invoked in the context of another, execution will revert.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     *
     * WARNING: setting the version to 255 will prevent any future reinitialization.
     *
     * Emits an {Initialized} event.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     *
     * Emits an {Initialized} event the first time it is successfully executed.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized < type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }

    /**
     * @dev Returns the highest version that has been initialized. See {reinitializer}.
     */
    function _getInitializedVersion() internal view returns (uint8) {
        return _initialized;
    }

    /**
     * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
     */
    function _isInitializing() internal view returns (bool) {
        return _initializing;
    }
}

File 8 of 23 : UUPSUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (proxy/utils/UUPSUpgradeable.sol)

pragma solidity ^0.8.0;

import "../../interfaces/draft-IERC1822Upgradeable.sol";
import "../ERC1967/ERC1967UpgradeUpgradeable.sol";
import "./Initializable.sol";

/**
 * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an
 * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.
 *
 * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is
 * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing
 * `UUPSUpgradeable` with a custom implementation of upgrades.
 *
 * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.
 *
 * _Available since v4.1._
 */
abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {
    function __UUPSUpgradeable_init() internal onlyInitializing {
    }

    function __UUPSUpgradeable_init_unchained() internal onlyInitializing {
    }
    /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
    address private immutable __self = address(this);

    /**
     * @dev Check that the execution is being performed through a delegatecall call and that the execution context is
     * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case
     * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a
     * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to
     * fail.
     */
    modifier onlyProxy() {
        require(address(this) != __self, "Function must be called through delegatecall");
        require(_getImplementation() == __self, "Function must be called through active proxy");
        _;
    }

    /**
     * @dev Check that the execution is not being performed through a delegate call. This allows a function to be
     * callable on the implementing contract but not through proxies.
     */
    modifier notDelegated() {
        require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall");
        _;
    }

    /**
     * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the
     * implementation. It is used to validate the implementation's compatibility when performing an upgrade.
     *
     * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
     * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
     * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.
     */
    function proxiableUUID() external view virtual override notDelegated returns (bytes32) {
        return _IMPLEMENTATION_SLOT;
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     */
    function upgradeTo(address newImplementation) external virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallUUPS(newImplementation, new bytes(0), false);
    }

    /**
     * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call
     * encoded in `data`.
     *
     * Calls {_authorizeUpgrade}.
     *
     * Emits an {Upgraded} event.
     */
    function upgradeToAndCall(address newImplementation, bytes memory data) external payable virtual onlyProxy {
        _authorizeUpgrade(newImplementation);
        _upgradeToAndCallUUPS(newImplementation, data, true);
    }

    /**
     * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by
     * {upgradeTo} and {upgradeToAndCall}.
     *
     * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.
     *
     * ```solidity
     * function _authorizeUpgrade(address) internal override onlyOwner {}
     * ```
     */
    function _authorizeUpgrade(address newImplementation) internal virtual;

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 9 of 23 : PausableUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.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 PausableUpgradeable is Initializable, ContextUpgradeable {
    /**
     * @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);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    function __Pausable_init() internal onlyInitializing {
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal onlyInitializing {
        _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 {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 10 of 23 : IERC1155MetadataURIUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155Upgradeable.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURIUpgradeable is IERC1155Upgradeable {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 11 of 23 : IERC1155ReceiverUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155ReceiverUpgradeable is IERC165Upgradeable {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 12 of 23 : IERC1155Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155Upgradeable is IERC165Upgradeable {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

File 14 of 23 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @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 ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

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

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

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

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";

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

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 16 of 23 : IERC165Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165Upgradeable {
    /**
     * @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 17 of 23 : MathUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 18 of 23 : StorageSlotUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol)

pragma solidity ^0.8.0;

/**
 * @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:
 * ```
 * 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(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._
 */
library StorageSlotUpgradeable {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 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
        }
    }
}

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

pragma solidity ^0.8.0;

import "./math/MathUpgradeable.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = MathUpgradeable.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

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

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

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

File 20 of 23 : Common.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.13;

contract CommonConstants {
    bytes4 internal constant ERC1155_ACCEPTED = 0xf23a6e61;
    bytes4 internal constant ERC1155_BATCH_ACCEPTED = 0xbc197c81;    
    uint256[48] __gap;
}

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

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

File 22 of 23 : DefaultOperatorFiltererUpgradeable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

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

abstract contract DefaultOperatorFiltererUpgradeable is OperatorFiltererUpgradeable {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    function __DefaultOperatorFilterer_init() internal onlyInitializing {
        OperatorFiltererUpgradeable.__OperatorFilterer_init(DEFAULT_SUBSCRIPTION, true);
    }
}

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

import {IOperatorFilterRegistry} from "../IOperatorFilterRegistry.sol";
import {Initializable} from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";

abstract contract OperatorFiltererUpgradeable is Initializable {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry constant operatorFilterRegistry =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

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

    modifier onlyAllowedOperator(address from) virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(operatorFilterRegistry).code.length > 0) {
            // Allow spending tokens from addresses with balance
            // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
            // from an EOA.
            if (from == msg.sender) {
                _;
                return;
            }
            if (!operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender)) {
                revert OperatorNotAllowed(msg.sender);
            }
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(operatorFilterRegistry).code.length > 0) {
            if (!operatorFilterRegistry.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
        _;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"_newOwner","type":"address"}],"name":"AdminTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":"baseType","type":"uint256"}],"name":"BaseTypeCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"BaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_clientName","type":"string"}],"name":"Client","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"contractURI","type":"string"}],"name":"ContractURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_account","type":"address"}],"name":"MinterAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_account","type":"address"}],"name":"MinterRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_account","type":"address"}],"name":"UpgraderAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_account","type":"address"}],"name":"UpgraderRemoved","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":"NF_INDEX_MASK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UPGRADER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"addMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"addUpgrader","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_owners","type":"address[]"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"broadcastURIEvent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"client","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_isNF","type":"bool"}],"name":"create","outputs":[{"internalType":"uint256","name":"_type","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getNonFungibleBaseType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getNonFungibleIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"_account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_client","type":"string"},{"internalType":"address","name":"_minter","type":"address"},{"internalType":"address","name":"_upgrader","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"_id","type":"uint256"}],"name":"isFungible","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isMinter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isNonFungible","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isNonFungibleBaseType","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isNonFungibleItem","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isUpgrader","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address[]","name":"_to","type":"address[]"},{"internalType":"uint256[]","name":"_quantities","type":"uint256[]"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"mintFungible","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"address[]","name":"_to","type":"address[]"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"mintNonFungible","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nfExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"nfOwners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","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":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"removeMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"removeUpgrader","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":"_ids","type":"uint256[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_contractUri","type":"string"}],"name":"setContractURI","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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"transferAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newClientName","type":"string"}],"name":"updateClientName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60a0604052306080523480156200001557600080fd5b506200002062000026565b620000e8565b600054610100900460ff1615620000935760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff9081161015620000e6576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b608051615eff6200012060003960008181612097015281816120d701528181612c6701528181612ca70152612d360152615eff6000f3fe6080604052600436106102e35760003560e01c80637269a32711610190578063c5d54965116100dc578063e44591f011610095578063e985e9c51161006f578063e985e9c51461093e578063f242432a14610988578063f72c0d8b146109a8578063fd6a009a146109ca57600080fd5b8063e44591f0146108e2578063e511015814610909578063e8a3d4851461092957600080fd5b8063c5d5496514610820578063cb6629d314610840578063d264a80314610860578063d539139314610880578063d547741f146108a2578063db5a4ce6146108c257600080fd5b806395d817bc11610149578063a217fddf11610123578063a217fddf146107a6578063a22cb465146107bb578063aa271e1a146107db578063adebf6f2146107fb57600080fd5b806395d817bc14610728578063983b2d561461075f5780639cca1c641461077f57600080fd5b80637269a3271461067357806375829def146106935780638456cb59146106b357806391d14854146106c8578063938e3d7b146106e8578063951f4f961461070857600080fd5b80633db0f8ab1161024f57806352d1902d116102085780635c975abb116101e25780635c975abb146105c45780635e81b958146105dc5780636352211e146105fc5780636f969c2d1461064b57600080fd5b806352d1902d1461057457806352fb73991461058957806355f804b3146105a457600080fd5b80633db0f8ab146104ae5780633f4ba83a146104ce578063463fd1af146104e357806346a9af86146105035780634e1273f4146105345780634f1ef2861461056157600080fd5b80632693ebf2116102a15780632693ebf2146103e05780632eb2c2d61461040e5780632f2ff15d1461042e5780633092afd51461044e57806336568abe1461046e5780633659cfe61461048e57600080fd5b8062fdd58e146102e857806301ffc9a71461031b5780630e89341c1461034b578063109e94cf14610378578063183fb2541461038d578063248a9ca3146103af575b600080fd5b3480156102f457600080fd5b50610308610303366004614fea565b6109ea565b6040519081526020015b60405180910390f35b34801561032757600080fd5b5061033b61033636600461502a565b610ab7565b6040519015158152602001610312565b34801561035757600080fd5b5061036b610366366004615047565b610b2d565b60405161031291906150b8565b34801561038457600080fd5b5061036b610c3b565b34801561039957600080fd5b506103ad6103a8366004615157565b610cca565b005b3480156103bb57600080fd5b506103086103ca366004615047565b600090815261012b602052604090206001015490565b3480156103ec57600080fd5b506103086103fb366004615047565b6101636020526000908152604090205481565b34801561041a57600080fd5b506103ad6104293660046151fa565b61108e565b34801561043a57600080fd5b506103ad6104493660046152b4565b611f5c565b34801561045a57600080fd5b506103ad6104693660046152e0565b611fb7565b34801561047a57600080fd5b506103ad6104893660046152b4565b61200f565b34801561049a57600080fd5b506103ad6104a93660046152e0565b61208d565b3480156104ba57600080fd5b506103ad6104c93660046152fb565b61216c565b3480156104da57600080fd5b506103ad61277f565b3480156104ef57600080fd5b506103ad6104fe366004615406565b612792565b34801561050f57600080fd5b5061033b61051e366004615047565b6101626020526000908152604090205460ff1681565b34801561054057600080fd5b5061055461054f366004615477565b612a06565b604051610312919061551d565b6103ad61056f366004615530565b612c5d565b34801561058057600080fd5b50610308612d29565b34801561059557600080fd5b506103086001600160801b0381565b3480156105b057600080fd5b506103ad6105bf366004615591565b612ddc565b3480156105d057600080fd5b5060635460ff1661033b565b3480156105e857600080fd5b5061033b6105f7366004615047565b612e33565b34801561060857600080fd5b50610633610617366004615047565b600090815261016160205260409020546001600160a01b031690565b6040516001600160a01b039091168152602001610312565b34801561065757600080fd5b50610308610666366004615047565b6001600160801b03191690565b34801561067f57600080fd5b5061033b61068e366004615047565b612e54565b34801561069f57600080fd5b506103ad6106ae3660046152e0565b612e74565b3480156106bf57600080fd5b506103ad612ec8565b3480156106d457600080fd5b5061033b6106e33660046152b4565b612edb565b3480156106f457600080fd5b506103ad610703366004615591565b612f07565b34801561071457600080fd5b506103ad610723366004615047565b612f51565b34801561073457600080fd5b50610633610743366004615047565b610161602052600090815260409020546001600160a01b031681565b34801561076b57600080fd5b506103ad61077a3660046152e0565b612fa6565b34801561078b57600080fd5b5061030861079a366004615047565b6001600160801b031690565b3480156107b257600080fd5b50610308600081565b3480156107c757600080fd5b506103ad6107d63660046155e0565b612ff7565b3480156107e757600080fd5b5061033b6107f63660046152e0565b6131e7565b34801561080757600080fd5b5061033b610816366004615047565b600160ff1b161590565b34801561082c57600080fd5b506103ad61083b366004615617565b613201565b34801561084c57600080fd5b5061033b61085b3660046152e0565b6136a8565b34801561086c57600080fd5b506103ad61087b3660046152e0565b6136c2565b34801561088c57600080fd5b50610308600080516020615eaa83398151915281565b3480156108ae57600080fd5b506103ad6108bd3660046152b4565b613713565b3480156108ce57600080fd5b506103086108dd3660046156b0565b613768565b3480156108ee57600080fd5b5061033b6108fd366004615047565b600160ff1b9081161490565b34801561091557600080fd5b506103ad6109243660046152e0565b61383d565b34801561093557600080fd5b5061036b61388e565b34801561094a57600080fd5b5061033b6109593660046156cd565b6001600160a01b0391821660009081526101606020908152604080832093909416825291909152205460ff1690565b34801561099457600080fd5b506103ad6109a33660046156f7565b613921565b3480156109b457600080fd5b50610308600080516020615e4383398151915281565b3480156109d657600080fd5b506103ad6109e5366004615591565b614093565b60006001600160a01b038316610a475760405162461bcd60e51b815260206004820152601c60248201527f4f776e657220616464726573732063616e6e6f74206265207a65726f0000000060448201526064015b60405180910390fd5b610a5082612e33565b15610a8b57600082815261016160205260409020546001600160a01b03848116911614610a7e576000610a81565b60015b60ff169050610ab1565b50600081815261015f602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b031982166301ffc9a760e01b1480610ae857506001600160e01b0319821663da8def7360e01b145b80610b0357506001600160e01b031982166303a24d0760e21b145b80610b1e57506001600160e01b03198216636cdb3d1360e11b145b80610ab15750610ab182614132565b6060600160ff1b80831603610c0357600082815261016160205260409020546001600160a01b0316610baf5760405162461bcd60e51b815260206004820152602560248201527f5468697320746f6b656e20696420646f6573206e6f74206861766520616e792060448201526437bbb732b960d91b6064820152608401610a3e565b6001600160801b031982166001600160801b038316610165610bd083614167565b610bd983614167565b604051602001610beb939291906157ff565b60405160208183030381529060405292505050919050565b610165610c0f83614167565b604051602001610c20929190615845565b6040516020818303038152906040529050919050565b919050565b61015e8054610c499061575c565b80601f0160208091040260200160405190810160405280929190818152602001828054610c759061575c565b8015610cc25780601f10610c9757610100808354040283529160200191610cc2565b820191906000526020600020905b815481529060010190602001808311610ca557829003601f168201915b505050505081565b610cd26141f9565b600080516020615eaa833981519152610cea81614241565b600160ff1b881615610d3e5760405162461bcd60e51b815260206004820152601860248201527f4944206d75737420626520612066756e6769626c6520494400000000000000006044820152606401610a3e565b858414610d995760405162461bcd60e51b8152602060048201526024808201527f4164647265737320616e64207175616e74697479206c656e677468206d69736d6044820152630c2e8c6d60e31b6064820152608401610a3e565b60005b86811015611083576000888883818110610db857610db861586a565b9050602002016020810190610dcd91906152e0565b6001600160a01b031603610e235760405162461bcd60e51b815260206004820181905260248201527f526563697069656e7420616464726573732063616e6e6f74206265207a65726f6044820152606401610a3e565b600089815261015f6020526040812090898984818110610e4557610e4561586a565b9050602002016020810190610e5a91906152e0565b6001600160a01b03166001600160a01b0316815260200190815260200160002054868683818110610e8d57610e8d61586a565b90506020020135610e9e9190615896565b60008a815261015f60205260408120908a8a85818110610ec057610ec061586a565b9050602002016020810190610ed591906152e0565b6001600160a01b03168152602081019190915260400160002055858582818110610f0157610f0161586a565b9050602002013561016360008b815260200190815260200160002054610f279190615896565b60008a81526101636020526040902055878782818110610f4957610f4961586a565b9050602002016020810190610f5e91906152e0565b6001600160a01b0316600033600080516020615e238339815191528c8a8a87818110610f8c57610f8c61586a565b90506020020135604051610faa929190918252602082015260400190565b60405180910390a4610feb888883818110610fc757610fc761586a565b9050602002016020810190610fdc91906152e0565b6001600160a01b03163b151590565b15611073576110733360008a8a858181106110085761100861586a565b905060200201602081019061101d91906152e0565b8c8a8a878181106110305761103061586a565b9050602002013589898080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061424b92505050565b61107c816158ae565b9050610d9c565b505050505050505050565b6110966141f9565b876daaeb6d7670e522a718067333cd4e3b1561186b57336001600160a01b038216036117d9576001600160a01b0388166110e25760405162461bcd60e51b8152600401610a3e906158c7565b85841461112b5760405162461bcd60e51b8152602060048201526017602482015276082e4e4c2f240d8cadccee8d040daeae6e840dac2e8c6d604b1b6044820152606401610a3e565b6001600160a01b03891633148061116657506001600160a01b03891660009081526101606020908152604080832033845290915290205460ff165b6111825760405162461bcd60e51b8152600401610a3e906158fe565b60005b868110156116c4576111b58888838181106111a2576111a261586a565b90506020020135600160ff1b9081161490565b156114a057896001600160a01b031661016160008a8a858181106111db576111db61586a565b60209081029290920135835250810191909152604001600020546001600160a01b03161461121b5760405162461bcd60e51b8152600401610a3e9061594c565b85858281811061122d5761122d61586a565b905060200201356001146112535760405162461bcd60e51b8152600401610a3e90615973565b8861016160008a8a8581811061126b5761126b61586a565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508585828181106112b6576112b661586a565b9050602002013561015f60006112eb8b8b868181106112d7576112d761586a565b905060200201356001600160801b03191690565b815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002054101561133b5760405162461bcd60e51b8152600401610a3e9061599f565b85858281811061134d5761134d61586a565b9050602002013561015f600061136e8b8b868181106112d7576112d761586a565b815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020546113aa91906159e8565b61015f60006113c48b8b868181106112d7576112d761586a565b8152602080820192909252604090810160009081206001600160a01b038f1682529092529020558585828181106113fd576113fd61586a565b9050602002013561015f600061141e8b8b868181106112d7576112d761586a565b815260200190815260200160002060008b6001600160a01b03166001600160a01b031681526020019081526020016000205461145a9190615896565b61015f60006114748b8b868181106112d7576112d761586a565b8152602080820192909252604090810160009081206001600160a01b038e1682529092529020556116b4565b8585828181106114b2576114b261586a565b9050602002013561015f60008a8a858181106114d0576114d061586a565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b031681526020019081526020016000205410156115275760405162461bcd60e51b8152600401610a3e9061599f565b8585828181106115395761153961586a565b9050602002013561015f60008a8a858181106115575761155761586a565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b031681526020019081526020016000205461159a91906159e8565b61015f60008a8a858181106115b1576115b161586a565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b031681526020019081526020016000208190555061015f60008989848181106116045761160461586a565b90506020020135815260200190815260200160002060008a6001600160a01b03166001600160a01b031681526020019081526020016000205486868381811061164f5761164f61586a565b905060200201356116609190615896565b61015f60008a8a858181106116775761167761586a565b90506020020135815260200190815260200160002060008b6001600160a01b03166001600160a01b03168152602001908152602001600020819055505b6116bd816158ae565b9050611185565b50876001600160a01b0316896001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8a8a8a8a6040516117189493929190615a35565b60405180910390a46001600160a01b0388163b156117d4576117d4338a8a8a8a8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808e0282810182019093528d82529093508d92508c91829185019084908082843760009201919091525050604080516020601f8d018190048102820181019092528b815292508b91508a908190840183828082843760009201919091525061434192505050565b611083565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611828573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184c9190615a67565b61186b57604051633b79c77360e21b8152336004820152602401610a3e565b6001600160a01b0388166118915760405162461bcd60e51b8152600401610a3e906158c7565b8584146118da5760405162461bcd60e51b8152602060048201526017602482015276082e4e4c2f240d8cadccee8d040daeae6e840dac2e8c6d604b1b6044820152606401610a3e565b6001600160a01b03891633148061191557506001600160a01b03891660009081526101606020908152604080832033845290915290205460ff165b6119315760405162461bcd60e51b8152600401610a3e906158fe565b60005b86811015611e4c576119518888838181106111a2576111a261586a565b15611c2857896001600160a01b031661016160008a8a858181106119775761197761586a565b60209081029290920135835250810191909152604001600020546001600160a01b0316146119b75760405162461bcd60e51b8152600401610a3e9061594c565b8585828181106119c9576119c961586a565b905060200201356001146119ef5760405162461bcd60e51b8152600401610a3e90615973565b8861016160008a8a85818110611a0757611a0761586a565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550858582818110611a5257611a5261586a565b9050602002013561015f6000611a738b8b868181106112d7576112d761586a565b815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020541015611ac35760405162461bcd60e51b8152600401610a3e9061599f565b858582818110611ad557611ad561586a565b9050602002013561015f6000611af68b8b868181106112d7576112d761586a565b815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002054611b3291906159e8565b61015f6000611b4c8b8b868181106112d7576112d761586a565b8152602080820192909252604090810160009081206001600160a01b038f168252909252902055858582818110611b8557611b8561586a565b9050602002013561015f6000611ba68b8b868181106112d7576112d761586a565b815260200190815260200160002060008b6001600160a01b03166001600160a01b0316815260200190815260200160002054611be29190615896565b61015f6000611bfc8b8b868181106112d7576112d761586a565b8152602080820192909252604090810160009081206001600160a01b038e168252909252902055611e3c565b858582818110611c3a57611c3a61586a565b9050602002013561015f60008a8a85818110611c5857611c5861586a565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020541015611caf5760405162461bcd60e51b8152600401610a3e9061599f565b858582818110611cc157611cc161586a565b9050602002013561015f60008a8a85818110611cdf57611cdf61586a565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002054611d2291906159e8565b61015f60008a8a85818110611d3957611d3961586a565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b031681526020019081526020016000208190555061015f6000898984818110611d8c57611d8c61586a565b90506020020135815260200190815260200160002060008a6001600160a01b03166001600160a01b0316815260200190815260200160002054868683818110611dd757611dd761586a565b90506020020135611de89190615896565b61015f60008a8a85818110611dff57611dff61586a565b90506020020135815260200190815260200160002060008b6001600160a01b03166001600160a01b03168152602001908152602001600020819055505b611e45816158ae565b9050611934565b50876001600160a01b0316896001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8a8a8a8a604051611ea09493929190615a35565b60405180910390a46001600160a01b0388163b1561108357611083338a8a8a8a8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808e0282810182019093528d82529093508d92508c91829185019084908082843760009201919091525050604080516020601f8d018190048102820181019092528b815292508b91508a908190840183828082843760009201919091525061434192505050565b600082815261012b6020526040902060010154611f7881614241565b816001600160a01b038116611f9f5760405162461bcd60e51b8152600401610a3e90615a84565b611fa76141f9565b611fb18484614437565b50505050565b611fcf600080516020615eaa83398151915282613713565b6040516001600160a01b03821681527fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb66692906020015b60405180910390a150565b6001600160a01b038116331461207f5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a3e565b61208982826144be565b5050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036120d55760405162461bcd60e51b8152600401610a3e90615ab4565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661211e600080516020615e63833981519152546001600160a01b031690565b6001600160a01b0316146121445760405162461bcd60e51b8152600401610a3e90615b00565b61214d81614526565b604080516000808252602082019092526121699183919061453e565b50565b6121746141f9565b6001600160a01b0385163314806121af57506001600160a01b03851660009081526101606020908152604080832033845290915290205460ff165b61220d5760405162461bcd60e51b815260206004820152602960248201527f4e656564206f70657261746f7220617070726f76616c20666f7220337264207060448201526830b93a3c90313ab93760b91b6064820152608401610a3e565b821580159061221b57508281145b6122675760405162461bcd60e51b815260206004820152601760248201527f49647320616e642076616c756573206d69736d617463680000000000000000006044820152606401610a3e565b60005b83811015612777576122988585838181106122875761228761586a565b90506020020135600160ff1b161590565b1561246f578282828181106122af576122af61586a565b9050602002013561015f60008787858181106122cd576122cd61586a565b9050602002013581526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000205410156123245760405162461bcd60e51b8152600401610a3e90615b4c565b8282828181106123365761233661586a565b9050602002013561015f60008787858181106123545761235461586a565b9050602002013581526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000205461239791906159e8565b61015f60008787858181106123ae576123ae61586a565b9050602002013581526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020819055508282828181106123fc576123fc61586a565b90506020020135610163600087878581811061241a5761241a61586a565b9050602002013581526020019081526020016000205461243a91906159e8565b61016360008787858181106124515761245161586a565b905060200201358152602001908152602001600020819055506126f8565b6124848585838181106111a2576111a261586a565b6124d05760405162461bcd60e51b815260206004820152601760248201527f4964206d757374206265206e6f6e2066756e6769626c650000000000000000006044820152606401610a3e565b8282828181106124e2576124e261586a565b9050602002013560011461252a5760405162461bcd60e51b815260206004820152600f60248201526e56616c7565206d757374206265203160881b6044820152606401610a3e565b856001600160a01b0316610161600087878581811061254b5761254b61586a565b60209081029290920135835250810191909152604001600020546001600160a01b03161461258b5760405162461bcd60e51b8152600401610a3e9061594c565b60006125a28686848181106112d7576112d761586a565b90508383838181106125b6576125b661586a565b600084815261015f602090815260408083206001600160a01b038e168452825290912054910292909201359091101590506126035760405162461bcd60e51b8152600401610a3e90615b4c565b8383838181106126155761261561586a565b600084815261015f602090815260408083206001600160a01b038e16845282529091205461264a9491909202013591506159e8565b600082815261015f602090815260408083206001600160a01b038c1684529091529020558383838181106126805761268061586a565b905060200201356101636000838152602001908152602001600020546126a691906159e8565b60008281526101636020526040812091909155610161908787858181106126cf576126cf61586a565b6020908102929092013583525081019190915260400160002080546001600160a01b0319169055505b60006001600160a01b03871633600080516020615e238339815191528888868181106127265761272661586a565b9050602002013587878781811061273f5761273f61586a565b9050602002013560405161275d929190918252602082015260400190565b60405180910390a48061276f816158ae565b91505061226a565b505050505050565b600061278a81614241565b6121696146ae565b600054610100900460ff16158080156127b25750600054600160ff909116105b806127cc5750303b1580156127cc575060005460ff166001145b61282f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a3e565b6000805460ff191660011790558015612852576000805461ff0019166101001790555b826001600160a01b0381166128795760405162461bcd60e51b8152600401610a3e90615a84565b826001600160a01b0381166128a05760405162461bcd60e51b8152600401610a3e90615a84565b60008651116128fb5760405162461bcd60e51b815260206004820152602160248201527f436f6e747261637420636c69656e74206e616d652069732072657175697265646044820152602160f81b6064820152608401610a3e565b855161290f9061015e906020890190614ec6565b50612918614700565b612920614700565b612928614727565b612947733cc6cdda760b79bafa08df41ecfa224f810dceb66001614756565b612952600033614437565b61296a600080516020615eaa83398151915286614437565b612982600080516020615e4383398151915285614437565b7f5511538576a121f5d7bb3470453c3d6cd751879ac3f90737f6518ffcc3b9277b866040516129b191906150b8565b60405180910390a150508015611fb1576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150505050565b6060838214612a575760405162461bcd60e51b815260206004820152601e60248201527f4f776e65727320616e6420696473206c656e677468206d69736d6174636800006044820152606401610a3e565b6000846001600160401b03811115612a7157612a7161537b565b604051908082528060200260200182016040528015612a9a578160200160208202803683370190505b50905060005b85811015612c53576000878783818110612abc57612abc61586a565b9050602002016020810190612ad191906152e0565b6001600160a01b031603612b275760405162461bcd60e51b815260206004820152601c60248201527f4f776e657220616464726573732063616e6e6f74206265207a65726f000000006044820152606401610a3e565b6000858583818110612b3b57612b3b61586a565b905060200201359050612b4d81612e33565b15612bcb57878783818110612b6457612b6461586a565b9050602002016020810190612b7991906152e0565b600082815261016160205260409020546001600160a01b03908116911614612ba2576000612ba5565b60015b60ff16838381518110612bba57612bba61586a565b602002602001018181525050612c42565b600081815261015f6020526040812090898985818110612bed57612bed61586a565b9050602002016020810190612c0291906152e0565b6001600160a01b03166001600160a01b0316815260200190815260200160002054838381518110612c3557612c3561586a565b6020026020010181815250505b50612c4c816158ae565b9050612aa0565b5095945050505050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003612ca55760405162461bcd60e51b8152600401610a3e90615ab4565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316612cee600080516020615e63833981519152546001600160a01b031690565b6001600160a01b031614612d145760405162461bcd60e51b8152600401610a3e90615b00565b612d1d82614526565b6120898282600161453e565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614612dc95760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610a3e565b50600080516020615e6383398151915290565b6000612de781614241565b612df46101658484614f4a565b507f01e56a02aca7f26a28165a040851ba78f30282b55ca81c63a804cdc1e2dcea72610165604051612e269190615b8e565b60405180910390a1505050565b6000600160ff1b808316148015610ab15750506001600160801b0316151590565b6000600160ff1b808316148015610ab15750506001600160801b03161590565b612e7f600082611f5c565b612e8a600033613713565b604080513381526001600160a01b03831660208201527ff8ccb027dfcd135e000e9d45e6cc2d662578a8825d4c45b5e32e0adf67e79ec69101612004565b6000612ed381614241565b6121696148f5565b600091825261012b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000612f1281614241565b612f1f6101648484614f4a565b507f8bc80d02691adbcd8631bd956c34f729b47b1cdac70440a8410f85571e56543e610164604051612e269190615b8e565b6000612f5c81614241565b6000612f6783610b2d565b9050827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b82604051612f9991906150b8565b60405180910390a2505050565b612fbe600080516020615eaa83398151915282611f5c565b6040516001600160a01b03821681527f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690602001612004565b612fff6141f9565b816daaeb6d7670e522a718067333cd4e3b156130b957604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561306d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130919190615a67565b6130b957604051633b79c77360e21b81526001600160a01b0382166004820152602401610a3e565b6001600160a01b03831633036131235760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610a3e565b6001600160a01b0383166131795760405162461bcd60e51b815260206004820152601f60248201527f4f70657261746f7220616464726573732063616e6e6f74206265207a65726f006044820152606401610a3e565b336000818152610160602090815260408083206001600160a01b03881680855290835292819020805460ff191687151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000610ab1600080516020615eaa83398151915283612edb565b6132096141f9565b600080516020615eaa83398151915261322181614241565b8584146132825760405162461bcd60e51b815260206004820152602960248201527f49447320616e6420726563697069656e7473206d757374206265206f662073616044820152680daca40d8cadccee8d60bb1b6064820152608401610a3e565b60005b8481101561369e5760006132a48989848181106112d7576112d761586a565b6000818152610162602052604090205490915060ff166132fc5760405162461bcd60e51b81526020600482015260136024820152721391881d1bdad95b881b5d5cdd08195e1a5cdd606a1b6044820152606401610a3e565b600160ff1b808216146133515760405162461bcd60e51b815260206004820152601a60248201527f546f6b656e54797065206e6f74206e6f6e2d66756e6769626c650000000000006044820152606401610a3e565b60008787848181106133655761336561586a565b905060200201602081019061337a91906152e0565b6001600160a01b0316036133d05760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f74206d696e7420746f207a65726f206164647265737300000000006044820152606401610a3e565b6000610161818b8b868181106133e8576133e861586a565b60209081029290920135835250810191909152604001600020546001600160a01b03161461344e5760405162461bcd60e51b8152602060048201526013602482015272151bdad95b88185b1c9958591e481bdddb9959606a1b6044820152606401610a3e565b8888838181106134605761346061586a565b9050602002013581036134b55760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74206d696e742074686520626173652074797065000000000000006044820152606401610a3e565b60008787848181106134c9576134c961586a565b90506020020160208101906134de91906152e0565b90508061016160008c8c878181106134f8576134f861586a565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555061016360008381526020019081526020016000205460016135529190615896565b6000838152610163602090815260408083209390935561015f81528282206001600160a01b03851683529052205461358b906001615896565b600083815261015f602090815260408083206001600160a01b038616808552925282209290925533600080516020615e238339815191528d8d888181106135d4576135d461586a565b9050602002013560016040516135f4929190918252602082015260400190565b60405180910390a461361d8a8a858181106136115761361161586a565b90506020020135612f51565b6001600160a01b0381163b1561368b5761368b336000838d8d888181106136465761364661586a565b9050602002013560018b8b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061424b92505050565b505080613697906158ae565b9050613285565b5050505050505050565b6000610ab1600080516020615e4383398151915283612edb565b6136da600080516020615e4383398151915282613713565b6040516001600160a01b03821681527fd85785d3bdeb1a8ffbfa72537288872243833ff4a74cc0534d7fa09ec0d1fec090602001612004565b600082815261012b602052604090206001015461372f81614241565b816001600160a01b0381166137565760405162461bcd60e51b8152600401610a3e90615a84565b61375e6141f9565b611fb184846144be565b60006137726141f9565b600080516020615eaa83398151915261378a81614241565b608061015d6000815461379c906158ae565b9182905550901b915082156137d457600160ff1b91909117600081815261016260205260409020805460ff1916600117905590613803565b604080518381526000602082018190529182913391600080516020615e23833981519152910160405180910390a45b6040518281527ff6615ae155db21bc1a31ec4b1060f4469cd58b9e726ec7545ea32f33190048fe9060200160405180910390a15b50919050565b613855600080516020615e4383398151915282611f5c565b6040516001600160a01b03821681527fb505541153a2077c0eec220d943878aa6c2fb9463d046b8c280efb99d2b51c9990602001612004565b6060610164805461389e9061575c565b80601f01602080910402602001604051908101604052809291908181526020018280546138ca9061575c565b80156139175780601f106138ec57610100808354040283529160200191613917565b820191906000526020600020905b8154815290600101906020018083116138fa57829003601f168201915b5050505050905090565b6139296141f9565b856daaeb6d7670e522a718067333cd4e3b15613d3857336001600160a01b03821603613ca6576001600160a01b0386166139755760405162461bcd60e51b8152600401610a3e906158c7565b6001600160a01b0387163314806139b057506001600160a01b03871660009081526101606020908152604080832033845290915290205460ff165b6139cc5760405162461bcd60e51b8152600401610a3e906158fe565b600160ff1b80861603613b4457600085815261016160205260409020546001600160a01b03888116911614613a135760405162461bcd60e51b8152600401610a3e9061594c565b83600114613a335760405162461bcd60e51b8152600401610a3e90615973565b60008581526101616020526040812080546001600160a01b0319166001600160a01b038916179055613a6c866001600160801b03191690565b600081815261015f602090815260408083206001600160a01b038d168452909152902054909150851115613ab25760405162461bcd60e51b8152600401610a3e9061599f565b600081815261015f602090815260408083206001600160a01b038c168452909152902054613ae19086906159e8565b600082815261015f602090815260408083206001600160a01b038d81168552925280832093909355891681522054613b1a908690615896565b600091825261015f602090815260408084206001600160a01b038b16855290915290912055613c14565b600085815261015f602090815260408083206001600160a01b038b168452909152902054841115613b875760405162461bcd60e51b8152600401610a3e9061599f565b600085815261015f602090815260408083206001600160a01b038b168452909152902054613bb69085906159e8565b600086815261015f602090815260408083206001600160a01b038c81168552925280832093909355881681522054613bef908590615896565b600086815261015f602090815260408083206001600160a01b038b1684529091529020555b60408051868152602081018690526001600160a01b0380891692908a16913391600080516020615e23833981519152910160405180910390a46001600160a01b0386163b15613ca157613ca1338888888888888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061424b92505050565b61408a565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015613cf5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d199190615a67565b613d3857604051633b79c77360e21b8152336004820152602401610a3e565b6001600160a01b038616613d5e5760405162461bcd60e51b8152600401610a3e906158c7565b6001600160a01b038716331480613d9957506001600160a01b03871660009081526101606020908152604080832033845290915290205460ff165b613db55760405162461bcd60e51b8152600401610a3e906158fe565b600160ff1b80861603613f2d57600085815261016160205260409020546001600160a01b03888116911614613dfc5760405162461bcd60e51b8152600401610a3e9061594c565b83600114613e1c5760405162461bcd60e51b8152600401610a3e90615973565b60008581526101616020526040812080546001600160a01b0319166001600160a01b038916179055613e55866001600160801b03191690565b600081815261015f602090815260408083206001600160a01b038d168452909152902054909150851115613e9b5760405162461bcd60e51b8152600401610a3e9061599f565b600081815261015f602090815260408083206001600160a01b038c168452909152902054613eca9086906159e8565b600082815261015f602090815260408083206001600160a01b038d81168552925280832093909355891681522054613f03908690615896565b600091825261015f602090815260408084206001600160a01b038b16855290915290912055613ffd565b600085815261015f602090815260408083206001600160a01b038b168452909152902054841115613f705760405162461bcd60e51b8152600401610a3e9061599f565b600085815261015f602090815260408083206001600160a01b038b168452909152902054613f9f9085906159e8565b600086815261015f602090815260408083206001600160a01b038c81168552925280832093909355881681522054613fd8908590615896565b600086815261015f602090815260408083206001600160a01b038b1684529091529020555b60408051868152602081018690526001600160a01b0380891692908a16913391600080516020615e23833981519152910160405180910390a46001600160a01b0386163b1561408a5761408a338888888888888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061424b92505050565b50505050505050565b61409b6141f9565b60006140a681614241565b816140f35760405162461bcd60e51b815260206004820152601b60248201527f436c69656e74206e616d652063616e6e6f7420626520656d70747900000000006044820152606401610a3e565b61410061015e8484614f4a565b507f5511538576a121f5d7bb3470453c3d6cd751879ac3f90737f6518ffcc3b9277b8383604051612e26929190615c13565b60006001600160e01b03198216637965db0b60e01b1480610ab157506301ffc9a760e01b6001600160e01b0319831614610ab1565b6060600061417483614932565b60010190506000816001600160401b038111156141935761419361537b565b6040519080825280601f01601f1916602001820160405280156141bd576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846141c757509392505050565b60635460ff161561423f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a3e565b565b6121698133614a0a565b60405163f23a6e6160e01b808252906001600160a01b0386169063f23a6e6190614281908a908a90899089908990600401615c42565b6020604051808303816000875af11580156142a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142c49190615c7c565b6001600160e01b031916146127775760405162461bcd60e51b815260206004820152603960248201527f436f6e74726163742072657475726e656420616e20756e6b6e6f776e2076616c60448201527f75652066726f6d206f6e455243313135355265636569766564000000000000006064820152608401610a3e565b60405163bc197c8160e01b808252906001600160a01b0386169063bc197c8190614377908a908a90899089908990600401615c99565b6020604051808303816000875af1158015614396573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143ba9190615c7c565b6001600160e01b031916146127775760405162461bcd60e51b815260206004820152603e60248201527f436f6e74726163742072657475726e656420616e20756e6b6e6f776e2076616c60448201527f75652066726f6d206f6e455243313135354261746368526563656976656400006064820152608401610a3e565b6144418282612edb565b61208957600082815261012b602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561447a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6144c88282612edb565b1561208957600082815261012b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600080516020615e4383398151915261208981614241565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156145765761457183614a63565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156145d0575060408051601f3d908101601f191682019092526145cd91810190615cf7565b60015b6146335760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610a3e565b600080516020615e6383398151915281146146a25760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610a3e565b50614571838383614aff565b6146b6614b24565b6063805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600054610100900460ff1661423f5760405162461bcd60e51b8152600401610a3e90615d10565b600054610100900460ff1661474e5760405162461bcd60e51b8152600401610a3e90615d10565b61423f614b6d565b600054610100900460ff1661477d5760405162461bcd60e51b8152600401610a3e90615d10565b6daaeb6d7670e522a718067333cd4e3b156120895760405163c3c5a54760e01b81523060048201526daaeb6d7670e522a718067333cd4e9063c3c5a547906024016020604051808303816000875af11580156147dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906148019190615a67565b61208957801561487557604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b15801561486157600080fd5b505af1158015612777573d6000803e3d6000fd5b6001600160a01b038216156148c45760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401614847565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401614847565b6148fd6141f9565b6063805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586146e33390565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106149715772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061499d576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106149bb57662386f26fc10000830492506010015b6305f5e10083106149d3576305f5e100830492506008015b61271083106149e757612710830492506004015b606483106149f9576064830492506002015b600a8310610ab15760010192915050565b614a148282612edb565b61208957614a2181614ba0565b614a2c836020614bb2565b604051602001614a3d929190615d5b565b60408051601f198184030181529082905262461bcd60e51b8252610a3e916004016150b8565b6001600160a01b0381163b614ad05760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610a3e565b600080516020615e6383398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b614b0883614d54565b600082511180614b155750805b1561457157611fb18383614d94565b60635460ff1661423f5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a3e565b600054610100900460ff16614b945760405162461bcd60e51b8152600401610a3e90615d10565b6063805460ff19169055565b6060610ab16001600160a01b03831660145b60606000614bc1836002615dd0565b614bcc906002615896565b6001600160401b03811115614be357614be361537b565b6040519080825280601f01601f191660200182016040528015614c0d576020820181803683370190505b509050600360fc1b81600081518110614c2857614c2861586a565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110614c5757614c5761586a565b60200101906001600160f81b031916908160001a9053506000614c7b846002615dd0565b614c86906001615896565b90505b6001811115614cfe576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110614cba57614cba61586a565b1a60f81b828281518110614cd057614cd061586a565b60200101906001600160f81b031916908160001a90535060049490941c93614cf781615def565b9050614c89565b508315614d4d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a3e565b9392505050565b614d5d81614a63565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b614dfc5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610a3e565b600080846001600160a01b031684604051614e179190615e06565b600060405180830381855af49150503d8060008114614e52576040519150601f19603f3d011682016040523d82523d6000602084013e614e57565b606091505b5091509150614e7f8282604051806060016040528060278152602001615e8360279139614e88565b95945050505050565b60608315614e97575081614d4d565b614d4d8383815115614eac5781518083602001fd5b8060405162461bcd60e51b8152600401610a3e91906150b8565b828054614ed29061575c565b90600052602060002090601f016020900481019282614ef45760008555614f3a565b82601f10614f0d57805160ff1916838001178555614f3a565b82800160010185558215614f3a579182015b82811115614f3a578251825591602001919060010190614f1f565b50614f46929150614fbe565b5090565b828054614f569061575c565b90600052602060002090601f016020900481019282614f785760008555614f3a565b82601f10614f915782800160ff19823516178555614f3a565b82800160010185558215614f3a579182015b82811115614f3a578235825591602001919060010190614fa3565b5b80821115614f465760008155600101614fbf565b80356001600160a01b0381168114610c3657600080fd5b60008060408385031215614ffd57600080fd5b61500683614fd3565b946020939093013593505050565b6001600160e01b03198116811461216957600080fd5b60006020828403121561503c57600080fd5b8135614d4d81615014565b60006020828403121561505957600080fd5b5035919050565b60005b8381101561507b578181015183820152602001615063565b83811115611fb15750506000910152565b600081518084526150a4816020860160208601615060565b601f01601f19169290920160200192915050565b602081526000614d4d602083018461508c565b60008083601f8401126150dd57600080fd5b5081356001600160401b038111156150f457600080fd5b6020830191508360208260051b850101111561510f57600080fd5b9250929050565b60008083601f84011261512857600080fd5b5081356001600160401b0381111561513f57600080fd5b60208301915083602082850101111561510f57600080fd5b60008060008060008060006080888a03121561517257600080fd5b8735965060208801356001600160401b038082111561519057600080fd5b61519c8b838c016150cb565b909850965060408a01359150808211156151b557600080fd5b6151c18b838c016150cb565b909650945060608a01359150808211156151da57600080fd5b506151e78a828b01615116565b989b979a50959850939692959293505050565b60008060008060008060008060a0898b03121561521657600080fd5b61521f89614fd3565b975061522d60208a01614fd3565b965060408901356001600160401b038082111561524957600080fd5b6152558c838d016150cb565b909850965060608b013591508082111561526e57600080fd5b61527a8c838d016150cb565b909650945060808b013591508082111561529357600080fd5b506152a08b828c01615116565b999c989b5096995094979396929594505050565b600080604083850312156152c757600080fd5b823591506152d760208401614fd3565b90509250929050565b6000602082840312156152f257600080fd5b614d4d82614fd3565b60008060008060006060868803121561531357600080fd5b61531c86614fd3565b945060208601356001600160401b038082111561533857600080fd5b61534489838a016150cb565b9096509450604088013591508082111561535d57600080fd5b5061536a888289016150cb565b969995985093965092949392505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156153ab576153ab61537b565b604051601f8501601f19908116603f011681019082821181831017156153d3576153d361537b565b816040528093508581528686860111156153ec57600080fd5b858560208301376000602087830101525050509392505050565b60008060006060848603121561541b57600080fd5b83356001600160401b0381111561543157600080fd5b8401601f8101861361544257600080fd5b61545186823560208401615391565b93505061546060208501614fd3565b915061546e60408501614fd3565b90509250925092565b6000806000806040858703121561548d57600080fd5b84356001600160401b03808211156154a457600080fd5b6154b0888389016150cb565b909650945060208701359150808211156154c957600080fd5b506154d6878288016150cb565b95989497509550505050565b600081518084526020808501945080840160005b83811015615512578151875295820195908201906001016154f6565b509495945050505050565b602081526000614d4d60208301846154e2565b6000806040838503121561554357600080fd5b61554c83614fd3565b915060208301356001600160401b0381111561556757600080fd5b8301601f8101851361557857600080fd5b61558785823560208401615391565b9150509250929050565b600080602083850312156155a457600080fd5b82356001600160401b038111156155ba57600080fd5b6155c685828601615116565b90969095509350505050565b801515811461216957600080fd5b600080604083850312156155f357600080fd5b6155fc83614fd3565b9150602083013561560c816155d2565b809150509250929050565b6000806000806000806060878903121561563057600080fd5b86356001600160401b038082111561564757600080fd5b6156538a838b016150cb565b9098509650602089013591508082111561566c57600080fd5b6156788a838b016150cb565b9096509450604089013591508082111561569157600080fd5b5061569e89828a01615116565b979a9699509497509295939492505050565b6000602082840312156156c257600080fd5b8135614d4d816155d2565b600080604083850312156156e057600080fd5b6156e983614fd3565b91506152d760208401614fd3565b60008060008060008060a0878903121561571057600080fd5b61571987614fd3565b955061572760208801614fd3565b9450604087013593506060870135925060808701356001600160401b0381111561575057600080fd5b61569e89828a01615116565b600181811c9082168061577057607f821691505b60208210810361383757634e487b7160e01b600052602260045260246000fd5b6000815461579d8161575c565b600182811680156157b557600181146157c6576157f5565b60ff198416875282870194506157f5565b8560005260208060002060005b858110156157ec5781548a8201529084019082016157d3565b50505082870194505b5050505092915050565b600061580b8286615790565b845161581b818360208901615060565b602f60f81b91019081528351615838816001840160208801615060565b0160010195945050505050565b60006158518285615790565b8351615861818360208801615060565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156158a9576158a9615880565b500190565b6000600182016158c0576158c0615880565b5060010190565b6020808252601b908201527f43616e6e6f742073656e6420746f207a65726f20616464726573730000000000604082015260600190565b6020808252602e908201527f4e656564206f70657261746f7220617070726f76616c20666f7220337264207060408201526d61727479207472616e736665727360901b606082015260800190565b6020808252600d908201526c24b73b30b634b21037bbb732b960991b604082015260600190565b6020808252601290820152715175616e74697479206d757374206265203160701b604082015260600190565b60208082526029908201527f5175616e74697479206d7573742062652067726561746572207468616e207468604082015268652062616c616e636560b81b606082015260800190565b6000828210156159fa576159fa615880565b500390565b81835260006001600160fb1b03831115615a1857600080fd5b8260051b8083602087013760009401602001938452509192915050565b604081526000615a496040830186886159ff565b8281036020840152615a5c8185876159ff565b979650505050505050565b600060208284031215615a7957600080fd5b8151614d4d816155d2565b602080825260169082015275616464726573732063616e6e6f74206265207a65726f60501b604082015260600190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b60208082526022908201527f42616c616e6365206d7573742062652067726561746572207468616e2076616c604082015261756560f01b606082015260800190565b6000602080835260008454615ba28161575c565b80848701526040600180841660008114615bc35760018114615bd757615c05565b60ff19851689840152606089019550615c05565b896000528660002060005b85811015615bfd5781548b8201860152908301908801615be2565b8a0184019650505b509398975050505050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090615a5c9083018461508c565b600060208284031215615c8e57600080fd5b8151614d4d81615014565b6001600160a01b0386811682528516602082015260a060408201819052600090615cc5908301866154e2565b8281036060840152615cd781866154e2565b90508281036080840152615ceb818561508c565b98975050505050505050565b600060208284031215615d0957600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615d93816017850160208801615060565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351615dc4816028840160208801615060565b01602801949350505050565b6000816000190483118215151615615dea57615dea615880565b500290565b600081615dfe57615dfe615880565b506000190190565b60008251615e18818460208701615060565b919091019291505056fec3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62189ab7a9244df0848122154315af71fe140f3db0fe014031783b0946b8c9d2e3360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65649f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220591cf7bf80a4aa407ad48fa9af22125b25c5c73a4405a429e3ebdd51987accca64736f6c634300080d0033

Deployed Bytecode

0x6080604052600436106102e35760003560e01c80637269a32711610190578063c5d54965116100dc578063e44591f011610095578063e985e9c51161006f578063e985e9c51461093e578063f242432a14610988578063f72c0d8b146109a8578063fd6a009a146109ca57600080fd5b8063e44591f0146108e2578063e511015814610909578063e8a3d4851461092957600080fd5b8063c5d5496514610820578063cb6629d314610840578063d264a80314610860578063d539139314610880578063d547741f146108a2578063db5a4ce6146108c257600080fd5b806395d817bc11610149578063a217fddf11610123578063a217fddf146107a6578063a22cb465146107bb578063aa271e1a146107db578063adebf6f2146107fb57600080fd5b806395d817bc14610728578063983b2d561461075f5780639cca1c641461077f57600080fd5b80637269a3271461067357806375829def146106935780638456cb59146106b357806391d14854146106c8578063938e3d7b146106e8578063951f4f961461070857600080fd5b80633db0f8ab1161024f57806352d1902d116102085780635c975abb116101e25780635c975abb146105c45780635e81b958146105dc5780636352211e146105fc5780636f969c2d1461064b57600080fd5b806352d1902d1461057457806352fb73991461058957806355f804b3146105a457600080fd5b80633db0f8ab146104ae5780633f4ba83a146104ce578063463fd1af146104e357806346a9af86146105035780634e1273f4146105345780634f1ef2861461056157600080fd5b80632693ebf2116102a15780632693ebf2146103e05780632eb2c2d61461040e5780632f2ff15d1461042e5780633092afd51461044e57806336568abe1461046e5780633659cfe61461048e57600080fd5b8062fdd58e146102e857806301ffc9a71461031b5780630e89341c1461034b578063109e94cf14610378578063183fb2541461038d578063248a9ca3146103af575b600080fd5b3480156102f457600080fd5b50610308610303366004614fea565b6109ea565b6040519081526020015b60405180910390f35b34801561032757600080fd5b5061033b61033636600461502a565b610ab7565b6040519015158152602001610312565b34801561035757600080fd5b5061036b610366366004615047565b610b2d565b60405161031291906150b8565b34801561038457600080fd5b5061036b610c3b565b34801561039957600080fd5b506103ad6103a8366004615157565b610cca565b005b3480156103bb57600080fd5b506103086103ca366004615047565b600090815261012b602052604090206001015490565b3480156103ec57600080fd5b506103086103fb366004615047565b6101636020526000908152604090205481565b34801561041a57600080fd5b506103ad6104293660046151fa565b61108e565b34801561043a57600080fd5b506103ad6104493660046152b4565b611f5c565b34801561045a57600080fd5b506103ad6104693660046152e0565b611fb7565b34801561047a57600080fd5b506103ad6104893660046152b4565b61200f565b34801561049a57600080fd5b506103ad6104a93660046152e0565b61208d565b3480156104ba57600080fd5b506103ad6104c93660046152fb565b61216c565b3480156104da57600080fd5b506103ad61277f565b3480156104ef57600080fd5b506103ad6104fe366004615406565b612792565b34801561050f57600080fd5b5061033b61051e366004615047565b6101626020526000908152604090205460ff1681565b34801561054057600080fd5b5061055461054f366004615477565b612a06565b604051610312919061551d565b6103ad61056f366004615530565b612c5d565b34801561058057600080fd5b50610308612d29565b34801561059557600080fd5b506103086001600160801b0381565b3480156105b057600080fd5b506103ad6105bf366004615591565b612ddc565b3480156105d057600080fd5b5060635460ff1661033b565b3480156105e857600080fd5b5061033b6105f7366004615047565b612e33565b34801561060857600080fd5b50610633610617366004615047565b600090815261016160205260409020546001600160a01b031690565b6040516001600160a01b039091168152602001610312565b34801561065757600080fd5b50610308610666366004615047565b6001600160801b03191690565b34801561067f57600080fd5b5061033b61068e366004615047565b612e54565b34801561069f57600080fd5b506103ad6106ae3660046152e0565b612e74565b3480156106bf57600080fd5b506103ad612ec8565b3480156106d457600080fd5b5061033b6106e33660046152b4565b612edb565b3480156106f457600080fd5b506103ad610703366004615591565b612f07565b34801561071457600080fd5b506103ad610723366004615047565b612f51565b34801561073457600080fd5b50610633610743366004615047565b610161602052600090815260409020546001600160a01b031681565b34801561076b57600080fd5b506103ad61077a3660046152e0565b612fa6565b34801561078b57600080fd5b5061030861079a366004615047565b6001600160801b031690565b3480156107b257600080fd5b50610308600081565b3480156107c757600080fd5b506103ad6107d63660046155e0565b612ff7565b3480156107e757600080fd5b5061033b6107f63660046152e0565b6131e7565b34801561080757600080fd5b5061033b610816366004615047565b600160ff1b161590565b34801561082c57600080fd5b506103ad61083b366004615617565b613201565b34801561084c57600080fd5b5061033b61085b3660046152e0565b6136a8565b34801561086c57600080fd5b506103ad61087b3660046152e0565b6136c2565b34801561088c57600080fd5b50610308600080516020615eaa83398151915281565b3480156108ae57600080fd5b506103ad6108bd3660046152b4565b613713565b3480156108ce57600080fd5b506103086108dd3660046156b0565b613768565b3480156108ee57600080fd5b5061033b6108fd366004615047565b600160ff1b9081161490565b34801561091557600080fd5b506103ad6109243660046152e0565b61383d565b34801561093557600080fd5b5061036b61388e565b34801561094a57600080fd5b5061033b6109593660046156cd565b6001600160a01b0391821660009081526101606020908152604080832093909416825291909152205460ff1690565b34801561099457600080fd5b506103ad6109a33660046156f7565b613921565b3480156109b457600080fd5b50610308600080516020615e4383398151915281565b3480156109d657600080fd5b506103ad6109e5366004615591565b614093565b60006001600160a01b038316610a475760405162461bcd60e51b815260206004820152601c60248201527f4f776e657220616464726573732063616e6e6f74206265207a65726f0000000060448201526064015b60405180910390fd5b610a5082612e33565b15610a8b57600082815261016160205260409020546001600160a01b03848116911614610a7e576000610a81565b60015b60ff169050610ab1565b50600081815261015f602090815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b031982166301ffc9a760e01b1480610ae857506001600160e01b0319821663da8def7360e01b145b80610b0357506001600160e01b031982166303a24d0760e21b145b80610b1e57506001600160e01b03198216636cdb3d1360e11b145b80610ab15750610ab182614132565b6060600160ff1b80831603610c0357600082815261016160205260409020546001600160a01b0316610baf5760405162461bcd60e51b815260206004820152602560248201527f5468697320746f6b656e20696420646f6573206e6f74206861766520616e792060448201526437bbb732b960d91b6064820152608401610a3e565b6001600160801b031982166001600160801b038316610165610bd083614167565b610bd983614167565b604051602001610beb939291906157ff565b60405160208183030381529060405292505050919050565b610165610c0f83614167565b604051602001610c20929190615845565b6040516020818303038152906040529050919050565b919050565b61015e8054610c499061575c565b80601f0160208091040260200160405190810160405280929190818152602001828054610c759061575c565b8015610cc25780601f10610c9757610100808354040283529160200191610cc2565b820191906000526020600020905b815481529060010190602001808311610ca557829003601f168201915b505050505081565b610cd26141f9565b600080516020615eaa833981519152610cea81614241565b600160ff1b881615610d3e5760405162461bcd60e51b815260206004820152601860248201527f4944206d75737420626520612066756e6769626c6520494400000000000000006044820152606401610a3e565b858414610d995760405162461bcd60e51b8152602060048201526024808201527f4164647265737320616e64207175616e74697479206c656e677468206d69736d6044820152630c2e8c6d60e31b6064820152608401610a3e565b60005b86811015611083576000888883818110610db857610db861586a565b9050602002016020810190610dcd91906152e0565b6001600160a01b031603610e235760405162461bcd60e51b815260206004820181905260248201527f526563697069656e7420616464726573732063616e6e6f74206265207a65726f6044820152606401610a3e565b600089815261015f6020526040812090898984818110610e4557610e4561586a565b9050602002016020810190610e5a91906152e0565b6001600160a01b03166001600160a01b0316815260200190815260200160002054868683818110610e8d57610e8d61586a565b90506020020135610e9e9190615896565b60008a815261015f60205260408120908a8a85818110610ec057610ec061586a565b9050602002016020810190610ed591906152e0565b6001600160a01b03168152602081019190915260400160002055858582818110610f0157610f0161586a565b9050602002013561016360008b815260200190815260200160002054610f279190615896565b60008a81526101636020526040902055878782818110610f4957610f4961586a565b9050602002016020810190610f5e91906152e0565b6001600160a01b0316600033600080516020615e238339815191528c8a8a87818110610f8c57610f8c61586a565b90506020020135604051610faa929190918252602082015260400190565b60405180910390a4610feb888883818110610fc757610fc761586a565b9050602002016020810190610fdc91906152e0565b6001600160a01b03163b151590565b15611073576110733360008a8a858181106110085761100861586a565b905060200201602081019061101d91906152e0565b8c8a8a878181106110305761103061586a565b9050602002013589898080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061424b92505050565b61107c816158ae565b9050610d9c565b505050505050505050565b6110966141f9565b876daaeb6d7670e522a718067333cd4e3b1561186b57336001600160a01b038216036117d9576001600160a01b0388166110e25760405162461bcd60e51b8152600401610a3e906158c7565b85841461112b5760405162461bcd60e51b8152602060048201526017602482015276082e4e4c2f240d8cadccee8d040daeae6e840dac2e8c6d604b1b6044820152606401610a3e565b6001600160a01b03891633148061116657506001600160a01b03891660009081526101606020908152604080832033845290915290205460ff165b6111825760405162461bcd60e51b8152600401610a3e906158fe565b60005b868110156116c4576111b58888838181106111a2576111a261586a565b90506020020135600160ff1b9081161490565b156114a057896001600160a01b031661016160008a8a858181106111db576111db61586a565b60209081029290920135835250810191909152604001600020546001600160a01b03161461121b5760405162461bcd60e51b8152600401610a3e9061594c565b85858281811061122d5761122d61586a565b905060200201356001146112535760405162461bcd60e51b8152600401610a3e90615973565b8861016160008a8a8581811061126b5761126b61586a565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b031602179055508585828181106112b6576112b661586a565b9050602002013561015f60006112eb8b8b868181106112d7576112d761586a565b905060200201356001600160801b03191690565b815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002054101561133b5760405162461bcd60e51b8152600401610a3e9061599f565b85858281811061134d5761134d61586a565b9050602002013561015f600061136e8b8b868181106112d7576112d761586a565b815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020546113aa91906159e8565b61015f60006113c48b8b868181106112d7576112d761586a565b8152602080820192909252604090810160009081206001600160a01b038f1682529092529020558585828181106113fd576113fd61586a565b9050602002013561015f600061141e8b8b868181106112d7576112d761586a565b815260200190815260200160002060008b6001600160a01b03166001600160a01b031681526020019081526020016000205461145a9190615896565b61015f60006114748b8b868181106112d7576112d761586a565b8152602080820192909252604090810160009081206001600160a01b038e1682529092529020556116b4565b8585828181106114b2576114b261586a565b9050602002013561015f60008a8a858181106114d0576114d061586a565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b031681526020019081526020016000205410156115275760405162461bcd60e51b8152600401610a3e9061599f565b8585828181106115395761153961586a565b9050602002013561015f60008a8a858181106115575761155761586a565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b031681526020019081526020016000205461159a91906159e8565b61015f60008a8a858181106115b1576115b161586a565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b031681526020019081526020016000208190555061015f60008989848181106116045761160461586a565b90506020020135815260200190815260200160002060008a6001600160a01b03166001600160a01b031681526020019081526020016000205486868381811061164f5761164f61586a565b905060200201356116609190615896565b61015f60008a8a858181106116775761167761586a565b90506020020135815260200190815260200160002060008b6001600160a01b03166001600160a01b03168152602001908152602001600020819055505b6116bd816158ae565b9050611185565b50876001600160a01b0316896001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8a8a8a8a6040516117189493929190615a35565b60405180910390a46001600160a01b0388163b156117d4576117d4338a8a8a8a8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808e0282810182019093528d82529093508d92508c91829185019084908082843760009201919091525050604080516020601f8d018190048102820181019092528b815292508b91508a908190840183828082843760009201919091525061434192505050565b611083565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611828573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184c9190615a67565b61186b57604051633b79c77360e21b8152336004820152602401610a3e565b6001600160a01b0388166118915760405162461bcd60e51b8152600401610a3e906158c7565b8584146118da5760405162461bcd60e51b8152602060048201526017602482015276082e4e4c2f240d8cadccee8d040daeae6e840dac2e8c6d604b1b6044820152606401610a3e565b6001600160a01b03891633148061191557506001600160a01b03891660009081526101606020908152604080832033845290915290205460ff165b6119315760405162461bcd60e51b8152600401610a3e906158fe565b60005b86811015611e4c576119518888838181106111a2576111a261586a565b15611c2857896001600160a01b031661016160008a8a858181106119775761197761586a565b60209081029290920135835250810191909152604001600020546001600160a01b0316146119b75760405162461bcd60e51b8152600401610a3e9061594c565b8585828181106119c9576119c961586a565b905060200201356001146119ef5760405162461bcd60e51b8152600401610a3e90615973565b8861016160008a8a85818110611a0757611a0761586a565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550858582818110611a5257611a5261586a565b9050602002013561015f6000611a738b8b868181106112d7576112d761586a565b815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020541015611ac35760405162461bcd60e51b8152600401610a3e9061599f565b858582818110611ad557611ad561586a565b9050602002013561015f6000611af68b8b868181106112d7576112d761586a565b815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002054611b3291906159e8565b61015f6000611b4c8b8b868181106112d7576112d761586a565b8152602080820192909252604090810160009081206001600160a01b038f168252909252902055858582818110611b8557611b8561586a565b9050602002013561015f6000611ba68b8b868181106112d7576112d761586a565b815260200190815260200160002060008b6001600160a01b03166001600160a01b0316815260200190815260200160002054611be29190615896565b61015f6000611bfc8b8b868181106112d7576112d761586a565b8152602080820192909252604090810160009081206001600160a01b038e168252909252902055611e3c565b858582818110611c3a57611c3a61586a565b9050602002013561015f60008a8a85818110611c5857611c5861586a565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b03168152602001908152602001600020541015611caf5760405162461bcd60e51b8152600401610a3e9061599f565b858582818110611cc157611cc161586a565b9050602002013561015f60008a8a85818110611cdf57611cdf61586a565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002054611d2291906159e8565b61015f60008a8a85818110611d3957611d3961586a565b90506020020135815260200190815260200160002060008c6001600160a01b03166001600160a01b031681526020019081526020016000208190555061015f6000898984818110611d8c57611d8c61586a565b90506020020135815260200190815260200160002060008a6001600160a01b03166001600160a01b0316815260200190815260200160002054868683818110611dd757611dd761586a565b90506020020135611de89190615896565b61015f60008a8a85818110611dff57611dff61586a565b90506020020135815260200190815260200160002060008b6001600160a01b03166001600160a01b03168152602001908152602001600020819055505b611e45816158ae565b9050611934565b50876001600160a01b0316896001600160a01b0316336001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8a8a8a8a604051611ea09493929190615a35565b60405180910390a46001600160a01b0388163b1561108357611083338a8a8a8a8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050604080516020808e0282810182019093528d82529093508d92508c91829185019084908082843760009201919091525050604080516020601f8d018190048102820181019092528b815292508b91508a908190840183828082843760009201919091525061434192505050565b600082815261012b6020526040902060010154611f7881614241565b816001600160a01b038116611f9f5760405162461bcd60e51b8152600401610a3e90615a84565b611fa76141f9565b611fb18484614437565b50505050565b611fcf600080516020615eaa83398151915282613713565b6040516001600160a01b03821681527fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb66692906020015b60405180910390a150565b6001600160a01b038116331461207f5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610a3e565b61208982826144be565b5050565b6001600160a01b037f0000000000000000000000002a2c2bb44c65a42e17bdf401c5f4acd977e948b21630036120d55760405162461bcd60e51b8152600401610a3e90615ab4565b7f0000000000000000000000002a2c2bb44c65a42e17bdf401c5f4acd977e948b26001600160a01b031661211e600080516020615e63833981519152546001600160a01b031690565b6001600160a01b0316146121445760405162461bcd60e51b8152600401610a3e90615b00565b61214d81614526565b604080516000808252602082019092526121699183919061453e565b50565b6121746141f9565b6001600160a01b0385163314806121af57506001600160a01b03851660009081526101606020908152604080832033845290915290205460ff165b61220d5760405162461bcd60e51b815260206004820152602960248201527f4e656564206f70657261746f7220617070726f76616c20666f7220337264207060448201526830b93a3c90313ab93760b91b6064820152608401610a3e565b821580159061221b57508281145b6122675760405162461bcd60e51b815260206004820152601760248201527f49647320616e642076616c756573206d69736d617463680000000000000000006044820152606401610a3e565b60005b83811015612777576122988585838181106122875761228761586a565b90506020020135600160ff1b161590565b1561246f578282828181106122af576122af61586a565b9050602002013561015f60008787858181106122cd576122cd61586a565b9050602002013581526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000205410156123245760405162461bcd60e51b8152600401610a3e90615b4c565b8282828181106123365761233661586a565b9050602002013561015f60008787858181106123545761235461586a565b9050602002013581526020019081526020016000206000886001600160a01b03166001600160a01b031681526020019081526020016000205461239791906159e8565b61015f60008787858181106123ae576123ae61586a565b9050602002013581526020019081526020016000206000886001600160a01b03166001600160a01b03168152602001908152602001600020819055508282828181106123fc576123fc61586a565b90506020020135610163600087878581811061241a5761241a61586a565b9050602002013581526020019081526020016000205461243a91906159e8565b61016360008787858181106124515761245161586a565b905060200201358152602001908152602001600020819055506126f8565b6124848585838181106111a2576111a261586a565b6124d05760405162461bcd60e51b815260206004820152601760248201527f4964206d757374206265206e6f6e2066756e6769626c650000000000000000006044820152606401610a3e565b8282828181106124e2576124e261586a565b9050602002013560011461252a5760405162461bcd60e51b815260206004820152600f60248201526e56616c7565206d757374206265203160881b6044820152606401610a3e565b856001600160a01b0316610161600087878581811061254b5761254b61586a565b60209081029290920135835250810191909152604001600020546001600160a01b03161461258b5760405162461bcd60e51b8152600401610a3e9061594c565b60006125a28686848181106112d7576112d761586a565b90508383838181106125b6576125b661586a565b600084815261015f602090815260408083206001600160a01b038e168452825290912054910292909201359091101590506126035760405162461bcd60e51b8152600401610a3e90615b4c565b8383838181106126155761261561586a565b600084815261015f602090815260408083206001600160a01b038e16845282529091205461264a9491909202013591506159e8565b600082815261015f602090815260408083206001600160a01b038c1684529091529020558383838181106126805761268061586a565b905060200201356101636000838152602001908152602001600020546126a691906159e8565b60008281526101636020526040812091909155610161908787858181106126cf576126cf61586a565b6020908102929092013583525081019190915260400160002080546001600160a01b0319169055505b60006001600160a01b03871633600080516020615e238339815191528888868181106127265761272661586a565b9050602002013587878781811061273f5761273f61586a565b9050602002013560405161275d929190918252602082015260400190565b60405180910390a48061276f816158ae565b91505061226a565b505050505050565b600061278a81614241565b6121696146ae565b600054610100900460ff16158080156127b25750600054600160ff909116105b806127cc5750303b1580156127cc575060005460ff166001145b61282f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610a3e565b6000805460ff191660011790558015612852576000805461ff0019166101001790555b826001600160a01b0381166128795760405162461bcd60e51b8152600401610a3e90615a84565b826001600160a01b0381166128a05760405162461bcd60e51b8152600401610a3e90615a84565b60008651116128fb5760405162461bcd60e51b815260206004820152602160248201527f436f6e747261637420636c69656e74206e616d652069732072657175697265646044820152602160f81b6064820152608401610a3e565b855161290f9061015e906020890190614ec6565b50612918614700565b612920614700565b612928614727565b612947733cc6cdda760b79bafa08df41ecfa224f810dceb66001614756565b612952600033614437565b61296a600080516020615eaa83398151915286614437565b612982600080516020615e4383398151915285614437565b7f5511538576a121f5d7bb3470453c3d6cd751879ac3f90737f6518ffcc3b9277b866040516129b191906150b8565b60405180910390a150508015611fb1576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150505050565b6060838214612a575760405162461bcd60e51b815260206004820152601e60248201527f4f776e65727320616e6420696473206c656e677468206d69736d6174636800006044820152606401610a3e565b6000846001600160401b03811115612a7157612a7161537b565b604051908082528060200260200182016040528015612a9a578160200160208202803683370190505b50905060005b85811015612c53576000878783818110612abc57612abc61586a565b9050602002016020810190612ad191906152e0565b6001600160a01b031603612b275760405162461bcd60e51b815260206004820152601c60248201527f4f776e657220616464726573732063616e6e6f74206265207a65726f000000006044820152606401610a3e565b6000858583818110612b3b57612b3b61586a565b905060200201359050612b4d81612e33565b15612bcb57878783818110612b6457612b6461586a565b9050602002016020810190612b7991906152e0565b600082815261016160205260409020546001600160a01b03908116911614612ba2576000612ba5565b60015b60ff16838381518110612bba57612bba61586a565b602002602001018181525050612c42565b600081815261015f6020526040812090898985818110612bed57612bed61586a565b9050602002016020810190612c0291906152e0565b6001600160a01b03166001600160a01b0316815260200190815260200160002054838381518110612c3557612c3561586a565b6020026020010181815250505b50612c4c816158ae565b9050612aa0565b5095945050505050565b6001600160a01b037f0000000000000000000000002a2c2bb44c65a42e17bdf401c5f4acd977e948b2163003612ca55760405162461bcd60e51b8152600401610a3e90615ab4565b7f0000000000000000000000002a2c2bb44c65a42e17bdf401c5f4acd977e948b26001600160a01b0316612cee600080516020615e63833981519152546001600160a01b031690565b6001600160a01b031614612d145760405162461bcd60e51b8152600401610a3e90615b00565b612d1d82614526565b6120898282600161453e565b6000306001600160a01b037f0000000000000000000000002a2c2bb44c65a42e17bdf401c5f4acd977e948b21614612dc95760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610a3e565b50600080516020615e6383398151915290565b6000612de781614241565b612df46101658484614f4a565b507f01e56a02aca7f26a28165a040851ba78f30282b55ca81c63a804cdc1e2dcea72610165604051612e269190615b8e565b60405180910390a1505050565b6000600160ff1b808316148015610ab15750506001600160801b0316151590565b6000600160ff1b808316148015610ab15750506001600160801b03161590565b612e7f600082611f5c565b612e8a600033613713565b604080513381526001600160a01b03831660208201527ff8ccb027dfcd135e000e9d45e6cc2d662578a8825d4c45b5e32e0adf67e79ec69101612004565b6000612ed381614241565b6121696148f5565b600091825261012b602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000612f1281614241565b612f1f6101648484614f4a565b507f8bc80d02691adbcd8631bd956c34f729b47b1cdac70440a8410f85571e56543e610164604051612e269190615b8e565b6000612f5c81614241565b6000612f6783610b2d565b9050827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b82604051612f9991906150b8565b60405180910390a2505050565b612fbe600080516020615eaa83398151915282611f5c565b6040516001600160a01b03821681527f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f690602001612004565b612fff6141f9565b816daaeb6d7670e522a718067333cd4e3b156130b957604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561306d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130919190615a67565b6130b957604051633b79c77360e21b81526001600160a01b0382166004820152602401610a3e565b6001600160a01b03831633036131235760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610a3e565b6001600160a01b0383166131795760405162461bcd60e51b815260206004820152601f60248201527f4f70657261746f7220616464726573732063616e6e6f74206265207a65726f006044820152606401610a3e565b336000818152610160602090815260408083206001600160a01b03881680855290835292819020805460ff191687151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000610ab1600080516020615eaa83398151915283612edb565b6132096141f9565b600080516020615eaa83398151915261322181614241565b8584146132825760405162461bcd60e51b815260206004820152602960248201527f49447320616e6420726563697069656e7473206d757374206265206f662073616044820152680daca40d8cadccee8d60bb1b6064820152608401610a3e565b60005b8481101561369e5760006132a48989848181106112d7576112d761586a565b6000818152610162602052604090205490915060ff166132fc5760405162461bcd60e51b81526020600482015260136024820152721391881d1bdad95b881b5d5cdd08195e1a5cdd606a1b6044820152606401610a3e565b600160ff1b808216146133515760405162461bcd60e51b815260206004820152601a60248201527f546f6b656e54797065206e6f74206e6f6e2d66756e6769626c650000000000006044820152606401610a3e565b60008787848181106133655761336561586a565b905060200201602081019061337a91906152e0565b6001600160a01b0316036133d05760405162461bcd60e51b815260206004820152601b60248201527f43616e6e6f74206d696e7420746f207a65726f206164647265737300000000006044820152606401610a3e565b6000610161818b8b868181106133e8576133e861586a565b60209081029290920135835250810191909152604001600020546001600160a01b03161461344e5760405162461bcd60e51b8152602060048201526013602482015272151bdad95b88185b1c9958591e481bdddb9959606a1b6044820152606401610a3e565b8888838181106134605761346061586a565b9050602002013581036134b55760405162461bcd60e51b815260206004820152601960248201527f43616e6e6f74206d696e742074686520626173652074797065000000000000006044820152606401610a3e565b60008787848181106134c9576134c961586a565b90506020020160208101906134de91906152e0565b90508061016160008c8c878181106134f8576134f861586a565b90506020020135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555061016360008381526020019081526020016000205460016135529190615896565b6000838152610163602090815260408083209390935561015f81528282206001600160a01b03851683529052205461358b906001615896565b600083815261015f602090815260408083206001600160a01b038616808552925282209290925533600080516020615e238339815191528d8d888181106135d4576135d461586a565b9050602002013560016040516135f4929190918252602082015260400190565b60405180910390a461361d8a8a858181106136115761361161586a565b90506020020135612f51565b6001600160a01b0381163b1561368b5761368b336000838d8d888181106136465761364661586a565b9050602002013560018b8b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061424b92505050565b505080613697906158ae565b9050613285565b5050505050505050565b6000610ab1600080516020615e4383398151915283612edb565b6136da600080516020615e4383398151915282613713565b6040516001600160a01b03821681527fd85785d3bdeb1a8ffbfa72537288872243833ff4a74cc0534d7fa09ec0d1fec090602001612004565b600082815261012b602052604090206001015461372f81614241565b816001600160a01b0381166137565760405162461bcd60e51b8152600401610a3e90615a84565b61375e6141f9565b611fb184846144be565b60006137726141f9565b600080516020615eaa83398151915261378a81614241565b608061015d6000815461379c906158ae565b9182905550901b915082156137d457600160ff1b91909117600081815261016260205260409020805460ff1916600117905590613803565b604080518381526000602082018190529182913391600080516020615e23833981519152910160405180910390a45b6040518281527ff6615ae155db21bc1a31ec4b1060f4469cd58b9e726ec7545ea32f33190048fe9060200160405180910390a15b50919050565b613855600080516020615e4383398151915282611f5c565b6040516001600160a01b03821681527fb505541153a2077c0eec220d943878aa6c2fb9463d046b8c280efb99d2b51c9990602001612004565b6060610164805461389e9061575c565b80601f01602080910402602001604051908101604052809291908181526020018280546138ca9061575c565b80156139175780601f106138ec57610100808354040283529160200191613917565b820191906000526020600020905b8154815290600101906020018083116138fa57829003601f168201915b5050505050905090565b6139296141f9565b856daaeb6d7670e522a718067333cd4e3b15613d3857336001600160a01b03821603613ca6576001600160a01b0386166139755760405162461bcd60e51b8152600401610a3e906158c7565b6001600160a01b0387163314806139b057506001600160a01b03871660009081526101606020908152604080832033845290915290205460ff165b6139cc5760405162461bcd60e51b8152600401610a3e906158fe565b600160ff1b80861603613b4457600085815261016160205260409020546001600160a01b03888116911614613a135760405162461bcd60e51b8152600401610a3e9061594c565b83600114613a335760405162461bcd60e51b8152600401610a3e90615973565b60008581526101616020526040812080546001600160a01b0319166001600160a01b038916179055613a6c866001600160801b03191690565b600081815261015f602090815260408083206001600160a01b038d168452909152902054909150851115613ab25760405162461bcd60e51b8152600401610a3e9061599f565b600081815261015f602090815260408083206001600160a01b038c168452909152902054613ae19086906159e8565b600082815261015f602090815260408083206001600160a01b038d81168552925280832093909355891681522054613b1a908690615896565b600091825261015f602090815260408084206001600160a01b038b16855290915290912055613c14565b600085815261015f602090815260408083206001600160a01b038b168452909152902054841115613b875760405162461bcd60e51b8152600401610a3e9061599f565b600085815261015f602090815260408083206001600160a01b038b168452909152902054613bb69085906159e8565b600086815261015f602090815260408083206001600160a01b038c81168552925280832093909355881681522054613bef908590615896565b600086815261015f602090815260408083206001600160a01b038b1684529091529020555b60408051868152602081018690526001600160a01b0380891692908a16913391600080516020615e23833981519152910160405180910390a46001600160a01b0386163b15613ca157613ca1338888888888888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061424b92505050565b61408a565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015613cf5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d199190615a67565b613d3857604051633b79c77360e21b8152336004820152602401610a3e565b6001600160a01b038616613d5e5760405162461bcd60e51b8152600401610a3e906158c7565b6001600160a01b038716331480613d9957506001600160a01b03871660009081526101606020908152604080832033845290915290205460ff165b613db55760405162461bcd60e51b8152600401610a3e906158fe565b600160ff1b80861603613f2d57600085815261016160205260409020546001600160a01b03888116911614613dfc5760405162461bcd60e51b8152600401610a3e9061594c565b83600114613e1c5760405162461bcd60e51b8152600401610a3e90615973565b60008581526101616020526040812080546001600160a01b0319166001600160a01b038916179055613e55866001600160801b03191690565b600081815261015f602090815260408083206001600160a01b038d168452909152902054909150851115613e9b5760405162461bcd60e51b8152600401610a3e9061599f565b600081815261015f602090815260408083206001600160a01b038c168452909152902054613eca9086906159e8565b600082815261015f602090815260408083206001600160a01b038d81168552925280832093909355891681522054613f03908690615896565b600091825261015f602090815260408084206001600160a01b038b16855290915290912055613ffd565b600085815261015f602090815260408083206001600160a01b038b168452909152902054841115613f705760405162461bcd60e51b8152600401610a3e9061599f565b600085815261015f602090815260408083206001600160a01b038b168452909152902054613f9f9085906159e8565b600086815261015f602090815260408083206001600160a01b038c81168552925280832093909355881681522054613fd8908590615896565b600086815261015f602090815260408083206001600160a01b038b1684529091529020555b60408051868152602081018690526001600160a01b0380891692908a16913391600080516020615e23833981519152910160405180910390a46001600160a01b0386163b1561408a5761408a338888888888888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061424b92505050565b50505050505050565b61409b6141f9565b60006140a681614241565b816140f35760405162461bcd60e51b815260206004820152601b60248201527f436c69656e74206e616d652063616e6e6f7420626520656d70747900000000006044820152606401610a3e565b61410061015e8484614f4a565b507f5511538576a121f5d7bb3470453c3d6cd751879ac3f90737f6518ffcc3b9277b8383604051612e26929190615c13565b60006001600160e01b03198216637965db0b60e01b1480610ab157506301ffc9a760e01b6001600160e01b0319831614610ab1565b6060600061417483614932565b60010190506000816001600160401b038111156141935761419361537b565b6040519080825280601f01601f1916602001820160405280156141bd576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846141c757509392505050565b60635460ff161561423f5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610a3e565b565b6121698133614a0a565b60405163f23a6e6160e01b808252906001600160a01b0386169063f23a6e6190614281908a908a90899089908990600401615c42565b6020604051808303816000875af11580156142a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142c49190615c7c565b6001600160e01b031916146127775760405162461bcd60e51b815260206004820152603960248201527f436f6e74726163742072657475726e656420616e20756e6b6e6f776e2076616c60448201527f75652066726f6d206f6e455243313135355265636569766564000000000000006064820152608401610a3e565b60405163bc197c8160e01b808252906001600160a01b0386169063bc197c8190614377908a908a90899089908990600401615c99565b6020604051808303816000875af1158015614396573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143ba9190615c7c565b6001600160e01b031916146127775760405162461bcd60e51b815260206004820152603e60248201527f436f6e74726163742072657475726e656420616e20756e6b6e6f776e2076616c60448201527f75652066726f6d206f6e455243313135354261746368526563656976656400006064820152608401610a3e565b6144418282612edb565b61208957600082815261012b602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561447a3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6144c88282612edb565b1561208957600082815261012b602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600080516020615e4383398151915261208981614241565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156145765761457183614a63565b505050565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156145d0575060408051601f3d908101601f191682019092526145cd91810190615cf7565b60015b6146335760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610a3e565b600080516020615e6383398151915281146146a25760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610a3e565b50614571838383614aff565b6146b6614b24565b6063805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600054610100900460ff1661423f5760405162461bcd60e51b8152600401610a3e90615d10565b600054610100900460ff1661474e5760405162461bcd60e51b8152600401610a3e90615d10565b61423f614b6d565b600054610100900460ff1661477d5760405162461bcd60e51b8152600401610a3e90615d10565b6daaeb6d7670e522a718067333cd4e3b156120895760405163c3c5a54760e01b81523060048201526daaeb6d7670e522a718067333cd4e9063c3c5a547906024016020604051808303816000875af11580156147dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906148019190615a67565b61208957801561487557604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b15801561486157600080fd5b505af1158015612777573d6000803e3d6000fd5b6001600160a01b038216156148c45760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401614847565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401614847565b6148fd6141f9565b6063805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586146e33390565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106149715772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061499d576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106149bb57662386f26fc10000830492506010015b6305f5e10083106149d3576305f5e100830492506008015b61271083106149e757612710830492506004015b606483106149f9576064830492506002015b600a8310610ab15760010192915050565b614a148282612edb565b61208957614a2181614ba0565b614a2c836020614bb2565b604051602001614a3d929190615d5b565b60408051601f198184030181529082905262461bcd60e51b8252610a3e916004016150b8565b6001600160a01b0381163b614ad05760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610a3e565b600080516020615e6383398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b614b0883614d54565b600082511180614b155750805b1561457157611fb18383614d94565b60635460ff1661423f5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610a3e565b600054610100900460ff16614b945760405162461bcd60e51b8152600401610a3e90615d10565b6063805460ff19169055565b6060610ab16001600160a01b03831660145b60606000614bc1836002615dd0565b614bcc906002615896565b6001600160401b03811115614be357614be361537b565b6040519080825280601f01601f191660200182016040528015614c0d576020820181803683370190505b509050600360fc1b81600081518110614c2857614c2861586a565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110614c5757614c5761586a565b60200101906001600160f81b031916908160001a9053506000614c7b846002615dd0565b614c86906001615896565b90505b6001811115614cfe576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110614cba57614cba61586a565b1a60f81b828281518110614cd057614cd061586a565b60200101906001600160f81b031916908160001a90535060049490941c93614cf781615def565b9050614c89565b508315614d4d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610a3e565b9392505050565b614d5d81614a63565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606001600160a01b0383163b614dfc5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610a3e565b600080846001600160a01b031684604051614e179190615e06565b600060405180830381855af49150503d8060008114614e52576040519150601f19603f3d011682016040523d82523d6000602084013e614e57565b606091505b5091509150614e7f8282604051806060016040528060278152602001615e8360279139614e88565b95945050505050565b60608315614e97575081614d4d565b614d4d8383815115614eac5781518083602001fd5b8060405162461bcd60e51b8152600401610a3e91906150b8565b828054614ed29061575c565b90600052602060002090601f016020900481019282614ef45760008555614f3a565b82601f10614f0d57805160ff1916838001178555614f3a565b82800160010185558215614f3a579182015b82811115614f3a578251825591602001919060010190614f1f565b50614f46929150614fbe565b5090565b828054614f569061575c565b90600052602060002090601f016020900481019282614f785760008555614f3a565b82601f10614f915782800160ff19823516178555614f3a565b82800160010185558215614f3a579182015b82811115614f3a578235825591602001919060010190614fa3565b5b80821115614f465760008155600101614fbf565b80356001600160a01b0381168114610c3657600080fd5b60008060408385031215614ffd57600080fd5b61500683614fd3565b946020939093013593505050565b6001600160e01b03198116811461216957600080fd5b60006020828403121561503c57600080fd5b8135614d4d81615014565b60006020828403121561505957600080fd5b5035919050565b60005b8381101561507b578181015183820152602001615063565b83811115611fb15750506000910152565b600081518084526150a4816020860160208601615060565b601f01601f19169290920160200192915050565b602081526000614d4d602083018461508c565b60008083601f8401126150dd57600080fd5b5081356001600160401b038111156150f457600080fd5b6020830191508360208260051b850101111561510f57600080fd5b9250929050565b60008083601f84011261512857600080fd5b5081356001600160401b0381111561513f57600080fd5b60208301915083602082850101111561510f57600080fd5b60008060008060008060006080888a03121561517257600080fd5b8735965060208801356001600160401b038082111561519057600080fd5b61519c8b838c016150cb565b909850965060408a01359150808211156151b557600080fd5b6151c18b838c016150cb565b909650945060608a01359150808211156151da57600080fd5b506151e78a828b01615116565b989b979a50959850939692959293505050565b60008060008060008060008060a0898b03121561521657600080fd5b61521f89614fd3565b975061522d60208a01614fd3565b965060408901356001600160401b038082111561524957600080fd5b6152558c838d016150cb565b909850965060608b013591508082111561526e57600080fd5b61527a8c838d016150cb565b909650945060808b013591508082111561529357600080fd5b506152a08b828c01615116565b999c989b5096995094979396929594505050565b600080604083850312156152c757600080fd5b823591506152d760208401614fd3565b90509250929050565b6000602082840312156152f257600080fd5b614d4d82614fd3565b60008060008060006060868803121561531357600080fd5b61531c86614fd3565b945060208601356001600160401b038082111561533857600080fd5b61534489838a016150cb565b9096509450604088013591508082111561535d57600080fd5b5061536a888289016150cb565b969995985093965092949392505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b03808411156153ab576153ab61537b565b604051601f8501601f19908116603f011681019082821181831017156153d3576153d361537b565b816040528093508581528686860111156153ec57600080fd5b858560208301376000602087830101525050509392505050565b60008060006060848603121561541b57600080fd5b83356001600160401b0381111561543157600080fd5b8401601f8101861361544257600080fd5b61545186823560208401615391565b93505061546060208501614fd3565b915061546e60408501614fd3565b90509250925092565b6000806000806040858703121561548d57600080fd5b84356001600160401b03808211156154a457600080fd5b6154b0888389016150cb565b909650945060208701359150808211156154c957600080fd5b506154d6878288016150cb565b95989497509550505050565b600081518084526020808501945080840160005b83811015615512578151875295820195908201906001016154f6565b509495945050505050565b602081526000614d4d60208301846154e2565b6000806040838503121561554357600080fd5b61554c83614fd3565b915060208301356001600160401b0381111561556757600080fd5b8301601f8101851361557857600080fd5b61558785823560208401615391565b9150509250929050565b600080602083850312156155a457600080fd5b82356001600160401b038111156155ba57600080fd5b6155c685828601615116565b90969095509350505050565b801515811461216957600080fd5b600080604083850312156155f357600080fd5b6155fc83614fd3565b9150602083013561560c816155d2565b809150509250929050565b6000806000806000806060878903121561563057600080fd5b86356001600160401b038082111561564757600080fd5b6156538a838b016150cb565b9098509650602089013591508082111561566c57600080fd5b6156788a838b016150cb565b9096509450604089013591508082111561569157600080fd5b5061569e89828a01615116565b979a9699509497509295939492505050565b6000602082840312156156c257600080fd5b8135614d4d816155d2565b600080604083850312156156e057600080fd5b6156e983614fd3565b91506152d760208401614fd3565b60008060008060008060a0878903121561571057600080fd5b61571987614fd3565b955061572760208801614fd3565b9450604087013593506060870135925060808701356001600160401b0381111561575057600080fd5b61569e89828a01615116565b600181811c9082168061577057607f821691505b60208210810361383757634e487b7160e01b600052602260045260246000fd5b6000815461579d8161575c565b600182811680156157b557600181146157c6576157f5565b60ff198416875282870194506157f5565b8560005260208060002060005b858110156157ec5781548a8201529084019082016157d3565b50505082870194505b5050505092915050565b600061580b8286615790565b845161581b818360208901615060565b602f60f81b91019081528351615838816001840160208801615060565b0160010195945050505050565b60006158518285615790565b8351615861818360208801615060565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156158a9576158a9615880565b500190565b6000600182016158c0576158c0615880565b5060010190565b6020808252601b908201527f43616e6e6f742073656e6420746f207a65726f20616464726573730000000000604082015260600190565b6020808252602e908201527f4e656564206f70657261746f7220617070726f76616c20666f7220337264207060408201526d61727479207472616e736665727360901b606082015260800190565b6020808252600d908201526c24b73b30b634b21037bbb732b960991b604082015260600190565b6020808252601290820152715175616e74697479206d757374206265203160701b604082015260600190565b60208082526029908201527f5175616e74697479206d7573742062652067726561746572207468616e207468604082015268652062616c616e636560b81b606082015260800190565b6000828210156159fa576159fa615880565b500390565b81835260006001600160fb1b03831115615a1857600080fd5b8260051b8083602087013760009401602001938452509192915050565b604081526000615a496040830186886159ff565b8281036020840152615a5c8185876159ff565b979650505050505050565b600060208284031215615a7957600080fd5b8151614d4d816155d2565b602080825260169082015275616464726573732063616e6e6f74206265207a65726f60501b604082015260600190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b60208082526022908201527f42616c616e6365206d7573742062652067726561746572207468616e2076616c604082015261756560f01b606082015260800190565b6000602080835260008454615ba28161575c565b80848701526040600180841660008114615bc35760018114615bd757615c05565b60ff19851689840152606089019550615c05565b896000528660002060005b85811015615bfd5781548b8201860152908301908801615be2565b8a0184019650505b509398975050505050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a060808201819052600090615a5c9083018461508c565b600060208284031215615c8e57600080fd5b8151614d4d81615014565b6001600160a01b0386811682528516602082015260a060408201819052600090615cc5908301866154e2565b8281036060840152615cd781866154e2565b90508281036080840152615ceb818561508c565b98975050505050505050565b600060208284031215615d0957600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615d93816017850160208801615060565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351615dc4816028840160208801615060565b01602801949350505050565b6000816000190483118215151615615dea57615dea615880565b500290565b600081615dfe57615dfe615880565b506000190190565b60008251615e18818460208701615060565b919091019291505056fec3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62189ab7a9244df0848122154315af71fe140f3db0fe014031783b0946b8c9d2e3360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65649f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6a2646970667358221220591cf7bf80a4aa407ad48fa9af22125b25c5c73a4405a429e3ebdd51987accca64736f6c634300080d0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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