Contract Address Details

0x7bb9cf4De4C55Ebc3fafF90Cb44B1e5b7CFf868f

Token
UndeadsZombies (UDZT)
Creator
0xdaf38d–e125de at 0xf8da57–ab0e88
Balance
0
Tokens
Fetching tokens...
Transactions
1,422 Transactions
Transfers
0 Transfers
Gas Used
174,748,198
Last Balance Update
11012696
Contract name:
Zombies




Optimization enabled
true
Compiler version
v0.8.17+commit.8df45f5f




Optimization runs
200
EVM Version
london




Verified at
2023-09-11T11:41:48.747634Z

Constructor Arguments

0x000000000000000000000000ea6a031bbaf2eadb5ecfd32b8aa39e9a95659e460000000000000000000000000000000000000000000000000000000000001a0a

Arg [0] (address) : 0xea6a031bbaf2eadb5ecfd32b8aa39e9a95659e46
Arg [1] (uint256) : 6666

              

project:/contracts/persons/Zombies.sol

Sol2uml
new
// SPDX-License-Identifier: PROPRIERTARY

// Author: Ilya A. Shlyakhovoy
// Email: is@unicsoft.com

pragma solidity 0.8.17;

import "./Actors.sol";

contract Zombies is Actors {
    constructor(address router_, uint256 start_)
        Actors("UndeadsZombies", "UDZT", router_, start_)
    {}

    /**
    @notice Method that returns sub folder for placeholders metadata
    */
    function _getPlaceholderSubFolder()
        internal
        pure
        override
        returns (string memory)
    {
        return "zo";
    }
}
        

@openzeppelin/contracts/access/Ownable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}
          

@openzeppelin/contracts/interfaces/IERC2981.sol

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

pragma solidity ^0.8.0;

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

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

@openzeppelin/contracts/token/ERC721/ERC721.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

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

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

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

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}
          

@openzeppelin/contracts/token/ERC721/IERC721.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol

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

pragma solidity ^0.8.0;

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

@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}
          

@openzeppelin/contracts/token/common/ERC2981.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `tokenId` must be already minted.
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}
          

@openzeppelin/contracts/utils/Address.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason 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 {
            // 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}
          

@openzeppelin/contracts/utils/Context.sol

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

pragma solidity ^0.8.0;

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

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

@openzeppelin/contracts/utils/Counters.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}
          

@openzeppelin/contracts/utils/Strings.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

@openzeppelin/contracts/utils/introspection/ERC165.sol

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

@openzeppelin/contracts/utils/introspection/IERC165.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

operator-filter-registry/src/DefaultOperatorFilterer.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";
import {CANONICAL_CORI_SUBSCRIPTION} from "./lib/Constants.sol";
/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}
          

operator-filter-registry/src/IOperatorFilterRegistry.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(address registrant, address subscription) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(address registrant, address operator, bool filtered) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(address registrant, address registrantToSubscribe) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(address registrant) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(address registrant, address registrantToCopy) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(address registrant, address operator) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(address addr) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}
          

operator-filter-registry/src/OperatorFilterer.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";
import {CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS} from "./lib/Constants.sol";
/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

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

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}
          

operator-filter-registry/src/lib/Constants.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;
          

project:/contracts/interfaces/IRights.sol

// SPDX-License-Identifier: PROPRIERTARY

// Author: Ilya A. Shlyakhovoy
// Email: is@unicsoft.com

pragma solidity 0.8.17;

interface IRights {
    event AdminAdded(address indexed admin);
    event AdminDefined(address indexed admin, address indexed contractHash);
    event AdminRemoved(address indexed admin);
    event AdminCleared(address indexed admin, address indexed contractHash);

    /**
@notice Add a new admin for the Rigths contract
@param admin_ New admin address
*/

    function addAdmin(address admin_) external;

    /**
@notice Add a new admin for the any other contract
@param contract_ Contract address packed into address
@param admin_ New admin address
*/

    function addAdmin(address contract_, address admin_) external;

    /**
@notice Remove the existing admin from the Rigths contract
@param admin_ Admin address
*/

    function removeAdmin(address admin_) external;

    /**
@notice Remove the existing admin from the specified contract
@param contract_ Contract address packed into address
@param admin_ Admin address
*/

    function removeAdmin(address contract_, address admin_) external;

    /**
@notice Get the rights for the contract for the caller
@param contract_ Contract address packed into address
@return have rights or not
*/
    function haveRights(address contract_) external view returns (bool);

    /**
@notice Get the rights for the contract
@param contract_ Contract address packed into address
@param admin_ Admin address
@return have rights or not
*/
    function haveRights(address contract_, address admin_)
        external
        view
        returns (bool);
}
          

project:/contracts/lib/Structures.sol

// SPDX-License-Identifier: PROPRIERTARY

// Author: Ilya A. Shlyakhovoy
// Email: is@unicsoft.com
pragma solidity 0.8.17;

/**
 * @dev Collection of structures
 */
library Structures {
    struct ActorData {
        uint256 adultTime;
        uint256 bornTime;
        string kidTokenUriHash;
        string adultTokenUriHash;
        uint16[10] props;
        uint8 childs;
        uint8 childsPossible;
        bool sex;
        bool born;
        bool immaculate;
        uint16 rank;
        address initialOwner;
    }

    struct Item {
        string itemKey;
        uint256 location;
        uint8 slots;
        string uri;
    }

    struct LootBox {
        uint256 price;
        uint16 total;
        uint16 available;
        bool paused;
        bool deleted;
        string uri;
        LootBoxItem[] items;
    }

    struct LootBoxItem {
        uint256 class;
        uint256 model;
        uint8 slots;
        uint16 promilles;
    }

    struct Estate {
        address lender;
        uint256 location;
        uint8 estateType;
        uint256 parent;
        uint256 coordinates;
    }

    struct Villa {
        uint256 location;
        uint256 fraction;
    }

    struct ManageAction {
        address target;
        address author;
        uint256 expiration;
        bytes4 signature;
        bytes data;
        bool executed;
    }

    struct InvestorData {
        address investor;
        uint256 promille;
    }

    struct Benefit {
        uint256 price;
        uint256 from;
        uint256 until;
        uint16 id;
        uint16 amount;
        uint8 level;
        uint8 issued;
    }
}
          

project:/contracts/persons/Actors.sol

// SPDX-License-Identifier: PROPRIERTARY

// Author: Ilya A. Shlyakhovoy
// Email: is@unicsoft.com

pragma solidity 0.8.17;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./interfaces/IActors.sol";
import "./interfaces/IMaternity.sol";
import "../lib/Structures.sol";
import "../utils/GuardExtension.sol";
import "../utils/EIP2981.sol";
import "../utils/OperatorFiltererERC721.sol";

/**
@title The Actor NFT contract
@author Ilya A. Shlyakhovoy
@notice This contract manage properties of the game actor, including birth and childhood.
The new actor comes from the Breed or Box contracts
 */
abstract contract Actors is
    OperatorFiltererERC721,
    EIP2981,
    GuardExtension,
    IActors
{
    using Counters for Counters.Counter;
    Counters.Counter private _total;
    uint256 private _counter;
    bytes32 private constant ZERO_STRING = keccak256(bytes(""));
    string private constant WRONG_ID = "Actor: wrong id";
    string private constant ALREADY_SET = "Actor: already set";
    string private constant NOT_BORN = "Actor: not borned yet";
    string private constant META_ALREADY_USED = "Actor: meta already used";
    string private constant ONLY_NON_IMMACULATE = "Actor: only nonimmaculate";
    string private constant ONLY_IMMACULATE = "Actor: only immaculate";
    string private constant IPFS_PREFIX = "ipfs://";
    string private constant TOO_MUCH_CHILDS = "Actor: too much childs";
    string private constant FALLBACK_META_HASH =
        "QmZ9bCTRBNwgyhuaX6P7Xfm8D1c7jcUMZ4TFUDggGBE6hb";
    mapping(uint256 => Structures.ActorData) private _actors;
    mapping(bytes32 => bool) private _usedMetadata;

    /// @notice validate the id
    modifier correctId(uint256 id_) {
        require(_exists(id_), WRONG_ID);
        _;
    }

    /**
@notice constructor
@param name_ The name of the token
@param symbol_ The short name (symbol) of the token
@param rights_ The address of the rights contract
@param start_ The first started id for counting
*/
    constructor(
        string memory name_,
        string memory symbol_,
        address rights_,
        uint256 start_
    ) ERC721(name_, symbol_) GuardExtension(rights_) {
        _counter = start_;
    }

    /**
@notice Get a total amount of issued tokens
@return The number of tokens minted
*/

    function total() external view override returns (uint256) {
        return _total.current();
    }

    /**
    @notice Set an uri for the adult token (only for non immaculate)
    @param id_ token id
    @param adultHash_ ipfs hash of the kids metadata
    */
    function setMetadataHash(uint256 id_, string calldata adultHash_)
        external
        override
        haveRights
        correctId(id_)
    {
        require(_actors[id_].immaculate, ONLY_IMMACULATE);
        require(
            keccak256(bytes(_actors[id_].adultTokenUriHash)) == ZERO_STRING,
            ALREADY_SET
        );
        require(
            !_usedMetadata[keccak256(bytes(adultHash_))],
            META_ALREADY_USED
        );
        _usedMetadata[keccak256(bytes(adultHash_))] = true;
        _actors[id_].adultTokenUriHash = adultHash_;
        emit TokenUriDefined(
            id_,
            "",
            string(abi.encodePacked(IPFS_PREFIX, adultHash_))
        );
    }

    /**
    @notice Set an uri for the adult and kid token (only for immaculate)
    @param id_ token id
    @param kidHash_ ipfs hash of the kids metadata
    @param adultHash_ ipfs hash of the adult metadata
    */
    function setMetadataHashes(
        uint256 id_,
        string calldata kidHash_,
        string calldata adultHash_
    ) external override haveRights correctId(id_) {
        require(!_actors[id_].immaculate, ONLY_NON_IMMACULATE);
        require(
            keccak256(bytes(_actors[id_].adultTokenUriHash)) == ZERO_STRING,
            ALREADY_SET
        );
        require(!_usedMetadata[keccak256(bytes(kidHash_))], META_ALREADY_USED);
        require(
            !_usedMetadata[keccak256(bytes(adultHash_))],
            META_ALREADY_USED
        );
        _usedMetadata[keccak256(bytes(kidHash_))] = true;
        _usedMetadata[keccak256(bytes(adultHash_))] = true;
        _actors[id_].kidTokenUriHash = kidHash_;
        _actors[id_].adultTokenUriHash = adultHash_;
        emit TokenUriDefined(
            id_,
            string(abi.encodePacked(IPFS_PREFIX, kidHash_)),
            string(abi.encodePacked(IPFS_PREFIX, adultHash_))
        );
    }

    /**
    @notice Get an uri for the token
    @param id_ token id
    @return The current payment token address
    */
    function tokenURI(uint256 id_)
        public
        view
        override(ERC721, IERC721Metadata)
        correctId(id_)
        returns (string memory)
    {
        string memory tokenHash;
        if (_isAdult(id_)) {
            tokenHash = _actors[id_].adultTokenUriHash;
        } else {
            tokenHash = _actors[id_].kidTokenUriHash;
        }
        if (keccak256(bytes(tokenHash)) == ZERO_STRING) {
            Structures.ActorData memory actor = _actors[id_];
            string memory personType;
            if (_isAdult(id_)) {
                // am - adult male, af - adult female
                personType = actor.sex ? "am" : "af";
            } else {
                personType = "kid";
            }
            return
                string(
                    abi.encodePacked(
                        IPFS_PREFIX,
                        FALLBACK_META_HASH,
                        "/",
                        _getPlaceholderSubFolder(),
                        "/",
                        personType,
                        "/",
                        "meta.json"
                    )
                );
        }
        return string(abi.encodePacked(IPFS_PREFIX, tokenHash));
    }

    /**
    @notice Get an uri for the kid token
    @param id_ token id
    @return The current payment token address
    */
    function tokenKidURI(uint256 id_)
        external
        view
        correctId(id_)
        returns (string memory)
    {
        string memory tokenHash = _actors[id_].kidTokenUriHash;
        if (keccak256(bytes(tokenHash)) == ZERO_STRING) {
            return "";
        }
        return string(abi.encodePacked(IPFS_PREFIX, tokenHash));
    }

    /**
    @notice Get an uri for the adult token
    @param id_ token id
    @return The current payment token address
    */
    function tokenAdultURI(uint256 id_)
        external
        view
        correctId(id_)
        returns (string memory)
    {
        Structures.ActorData memory actor = _actors[id_];
        string memory tokenHash = actor.adultTokenUriHash;
        if (keccak256(bytes(tokenHash)) == ZERO_STRING) {
            return "";
        }
        return string(abi.encodePacked(IPFS_PREFIX, tokenHash));
    }

    /**
    @notice Method that returns sub folder for placeholders metadata
    */
    function _getPlaceholderSubFolder()
        internal
        pure
        virtual
        returns (string memory);

    /**
@notice Create a new person token (not born yet)
@param id_ The id of new minted token
@param owner_ Owner of the token
@param props_ Array of the actor properties
@param sex_ The person sex (true = male, false = female)
@param born_ Is the child born or not
@param adultTime_ When child become adult actor, if 0 actor is not born yet
@param childs_ The amount of childs can be born (only for female)
@param immaculate_ True only for potion-breeded
@return The new id
*/
    function mint(
        uint256 id_,
        address owner_,
        uint16[10] memory props_,
        bool sex_,
        bool born_,
        uint256 adultTime_,
        uint8 childs_,
        bool immaculate_
    ) external override haveRights returns (uint256) {
        _total.increment();
        uint256 newId;
        if (id_ > 0) {
            newId = id_;
        } else {
            _counter = _counter + 1;
            newId = _counter;
        }
        _mint(owner_, newId);
        uint16 rank = (props_[0] +
            props_[1] +
            props_[2] +
            props_[3] +
            props_[4] +
            props_[5] +
            props_[6] +
            props_[7] +
            props_[8] +
            props_[9]) / 10;
        uint256 bornTime = 0;
        uint256 adultTime = 0;
        if (born_) {
            bornTime = block.timestamp;
            if (adultTime_ > block.timestamp) {
                adultTime = adultTime_;
            } else {
                adultTime = block.timestamp;
            }
        }

        _actors[newId] = Structures.ActorData({
            bornTime: bornTime,
            adultTime: adultTime,
            kidTokenUriHash: "",
            adultTokenUriHash: "",
            props: props_,
            sex: sex_,
            childs: childs_,
            childsPossible: childs_,
            born: born_,
            immaculate: immaculate_,
            rank: rank,
            initialOwner: owner_
        });
        if (immaculate_) {
            emit MintedImmaculate(owner_, newId);
        } else {
            emit Minted(owner_, newId);
        }
        return newId;
    }

    /**
@notice Get the person props
@param id_ Person token id
@return Array of the props
*/
    function getProps(uint256 id_)
        external
        view
        override
        correctId(id_)
        returns (uint16[10] memory)
    {
        return _actors[id_].props;
    }

    /**
@notice Get the actor
@param id_ Person token id
@return Structures.ActorData full struct of actor
*/
    function getActor(uint256 id_)
        external
        view
        override
        correctId(id_)
        returns (Structures.ActorData memory)
    {
        return _actors[id_];
    }

    /**
@notice Get the person sex
@param id_ Person token id
@return true = male, false = female
*/
    function getSex(uint256 id_)
        external
        view
        override
        correctId(id_)
        returns (bool)
    {
        return _actors[id_].sex;
    }

    /**
@notice Get the person childs
@param id_ Person token id
@return childs and possible available childs
*/
    function getChilds(uint256 id_)
        external
        view
        override
        correctId(id_)
        returns (uint8, uint8)
    {
        return (_actors[id_].childs, _actors[id_].childsPossible);
    }

    /**
@notice Breed a child
@param id_ Person token id
*/
    function breedChild(uint256 id_)
        external
        override
        haveRights
        correctId(id_)
    {
        if (!_actors[id_].sex) {
            require(_actors[id_].childsPossible > 0, TOO_MUCH_CHILDS);
            _actors[id_].childsPossible = _actors[id_].childsPossible - 1;
        }
    }

    /**
@notice Get the person immaculate status
@param id_ Person token id
*/
    function getImmaculate(uint256 id_)
        external
        view
        override
        correctId(id_)
        returns (bool)
    {
        return (_actors[id_].immaculate);
    }

    /**
@notice Get the person adult state
@param id_ Person token id
@return 0 = complete adult, or amount of tokens needed to be paid for
*/
    function getBornTime(uint256 id_)
        external
        view
        override
        correctId(id_)
        returns (uint256)
    {
        require(_actors[id_].born, NOT_BORN);
        return _actors[id_].bornTime;
    }

    /**
@notice Get the person born state
@param id_ Person token id
@return true = person is born
*/
    function isBorn(uint256 id_)
        external
        view
        override
        correctId(id_)
        returns (bool)
    {
        return _actors[id_].born;
    }

    /**
@notice Birth the person
@param id_ Person token id 
@param adultTime_ When person becomes adult
*/
    function born(uint256 id_, uint256 adultTime_)
        external
        override
        haveRights
        correctId(id_)
    {
        require(!_actors[id_].born, ALREADY_SET);
        _actors[id_].born = true;
        _actors[id_].bornTime = block.timestamp;
        emit ActorWasBorn(id_, block.timestamp);

        if (adultTime_ < block.timestamp) {
            _actors[id_].adultTime = block.timestamp;
        } else {
            _actors[id_].adultTime = adultTime_;
        }
    }

    /**
    @notice Grow the 
    @param id_ Person token id 
    @param time_ the deadline to grow
    */
    function setAdultTime(uint256 id_, uint256 time_)
        external
        override
        haveRights
        correctId(id_)
    {
        require(_actors[id_].born, NOT_BORN);
        _actors[id_].adultTime = time_;
    }

    function _isAdult(uint256 id_) internal view returns (bool) {
        return _actors[id_].born && _actors[id_].adultTime <= block.timestamp;
    }

    /**
@notice Get the person adult time
@param id_ Person token id
@return timestamp
*/
    function getAdultTime(uint256 id_)
        external
        view
        override
        correctId(id_)
        returns (uint256)
    {
        return _actors[id_].adultTime;
    }

    /**
@notice Get the person adult state
@param id_ Person token id
@return true = person is adult (price is 0 and current date > person's grow deadline)
*/
    function isAdult(uint256 id_)
        external
        view
        override
        correctId(id_)
        returns (bool)
    {
        return _isAdult(id_);
    }

    /**
@notice Get the person rank
@param id_ Person token id
@return person rank value
*/
    function getRank(uint256 id_)
        external
        view
        override
        correctId(id_)
        returns (uint16)
    {
        return _actors[id_].rank;
    }

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

project:/contracts/persons/interfaces/IActors.sol

// SPDX-License-Identifier: PROPRIERTARY

// Author: Ilya A. Shlyakhovoy
// Email: is@unicsoft.com

pragma solidity 0.8.17;
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import {Structures} from "../../lib/Structures.sol";

interface IActors is IERC721Metadata {
    event Minted(address indexed owner, uint256 indexed id);

    event MintedImmaculate(address indexed owner, uint256 indexed id);

    event TokenUriDefined(uint256 indexed id, string kidUri, string adultUri);

    event ActorWasBorn(uint256 indexed id, uint256 bornTime);

    /**
@notice Get a total amount of issued tokens
@return The number of tokens minted
*/

    function total() external view returns (uint256);

    /**
    @notice Set an uri for the adult token (only for non immaculate)
    @param id_ token id
    @param adultHash_ ipfs hash of the kids metadata
    */
    function setMetadataHash(uint256 id_, string calldata adultHash_) external;

    /**
    @notice Set an uri for the adult and kid token (only for immaculate)
    @param id_ token id
    @param kidHash_ ipfs hash of the kids metadata
    @param adultHash_ ipfs hash of the adult metadata
    */
    function setMetadataHashes(
        uint256 id_,
        string calldata kidHash_,
        string calldata adultHash_
    ) external;

    /**
    @notice Get an uri for the kid token
    @param id_ token id
    @return Token uri for the kid actor
    */
    function tokenKidURI(uint256 id_) external view returns (string memory);

    /**
    @notice Get an uri for the adult token
    @param id_ token id
    @return Token uri for the adult actor
    */
    function tokenAdultURI(uint256 id_) external view returns (string memory);

    /**
@notice Create a new person token (not born yet)
@param id_ The id of new minted token
@param owner_ Owner of the token
@param props_ Array of the actor properties
@param sex_ The person sex (true = male, false = female)
@param born_ Is the child born or not
@param adultTime_ When child become adult actor, if 0 actor is not born yet
@param childs_ The amount of childs can be born (only for female)
@param immaculate_ True only for potion-breeded
@return The new id
*/
    function mint(
        uint256 id_,
        address owner_,
        uint16[10] memory props_,
        bool sex_,
        bool born_,
        uint256 adultTime_,
        uint8 childs_,
        bool immaculate_
    ) external returns (uint256);

    /**
@notice Get the person props
@param id_ Person token id
@return Array of the props
*/
    function getProps(uint256 id_) external view returns (uint16[10] memory);

    /**
    @notice Get the actor
    @param id_ Person token id
    @return Structures.ActorData full struct of actor
    */
    function getActor(uint256 id_)
        external
        view
        returns (Structures.ActorData memory);

    /**
@notice Get the person sex
@param id_ Person token id
@return true = male, false = female
*/
    function getSex(uint256 id_) external view returns (bool);

    /**
@notice Get the person childs
@param id_ Person token id
@return childs and possible available childs
*/
    function getChilds(uint256 id_) external view returns (uint8, uint8);

    /**
@notice Breed a child
@param id_ Person token id
*/
    function breedChild(uint256 id_) external;

    /**
@notice Get the person immaculate status
@param id_ Person token id
*/
    function getImmaculate(uint256 id_) external view returns (bool);

    /**
@notice Get the person born time
@param id_ Person token id
@return 0 = complete adult, or amount of tokens needed to be paid for
*/
    function getBornTime(uint256 id_) external view returns (uint256);

    /**
@notice Get the person born state
@param id_ Person token id
@return true = person is born
*/
    function isBorn(uint256 id_) external view returns (bool);

    /**
@notice Birth the person
@param id_ Person token id 
@param adultTime_ When person becomes adult
*/
    function born(uint256 id_, uint256 adultTime_) external;

    /**
@notice Get the person adult timestamp
@param id_ Person token id
@return timestamp
*/
    function getAdultTime(uint256 id_) external view returns (uint256);

    /**
@notice Grow the 
@param id_ Person token id 
@param time_ the deadline to grow
*/
    function setAdultTime(uint256 id_, uint256 time_) external;

    /**
@notice Get the person adult state
@param id_ Person token id
@return true = person is adult (price is 0 and current date > person's grow deadline)
*/
    function isAdult(uint256 id_) external view returns (bool);

    /**
@notice Get the person rank
@param id_ Person token id
@return person rank value
*/
    function getRank(uint256 id_) external view returns (uint16);
}
          

project:/contracts/persons/interfaces/IMaternity.sol

// SPDX-License-Identifier: PROPRIERTARY

// Author: Ilya A. Shlyakhovoy
// Email: is@unicsoft.com

pragma solidity 0.8.17;

interface IMaternity {
    event Born(address indexed owner_, uint256 indexed id);
    event Grow(address indexed owner_, uint256 indexed id);
    event Adult(address indexed owner_, uint256 indexed id);

    /**
@notice Birth the person. Takes the needed amount of tokens from the caller account
@param id Person token id
*/
    function born(uint256 id) external;

    /**
@notice Get the max grow payment
@param id Person token id
@return Price for grow
*/
    function growPrice(uint256 id) external returns (uint256);

    /**
@notice Get the amount of seconds for the payment
@param id Person token id
@param amount Amount of tokens transferred
@return Time in secs for grow
*/
    function growTime(uint256 id, uint256 amount) external returns (uint256);

    /**
@notice Grow the non-adult person. Takes the provided amount of tokens from 
the caller account, but not more than needed
@param id Person token id
@param amount Amount of tokens transferred
*/
    function grow(uint256 id, uint256 amount) external;
}
          

project:/contracts/utils/EIP2981.sol

// SPDX-License-Identifier: PROPRIERTARY

// Author: Ilya A. Shlyakhovoy
// Email: is@unicsoft.com

pragma solidity 0.8.17;

import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "./Guard.sol";

/**
@title The royalties base contract
@author Ilya A. Shlyakhovoy
@notice This contract manage properties of the game actor, including birth and childhood.
The new actor comes from the Breed or Box contracts
 */

abstract contract EIP2981 is ERC2981, Guard {
    event FeeChanged(
        address indexed receiver,
        uint96 collectionOwnerFeeNumerator,
        uint96 firstOwnerFeeNumerator
    );

    struct AdditionalRoyaltyInfo {
        uint96 collectionOwnerFeeNumerator;
        uint96 firstOwnerFeeNumerator;
    }

    AdditionalRoyaltyInfo private _additionalDefaultRoyaltyInfo;

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function feeDenominator() external pure returns (uint96) {
        return _feeDenominator();
    }

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

        _additionalDefaultRoyaltyInfo = _additionalDefaultRoyaltyInfo = AdditionalRoyaltyInfo(
            collectionOwnerFeeNumerator,
            firstOwnerFeeNumerator
        );
        emit FeeChanged(
            receiver,
            collectionOwnerFeeNumerator,
            firstOwnerFeeNumerator
        );
    }

    /**
     * @dev Returns amount of shares which should receive each party.
     */
    function additionalDefaultRoyaltyInfo()
        external
        view
        returns (AdditionalRoyaltyInfo memory)
    {
        return _additionalDefaultRoyaltyInfo;
    }

    /**
     * @dev Removes default royalty information.
     */
    function deleteDefaultRoyalty() external haveRights {
        _deleteDefaultRoyalty();
        delete _additionalDefaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `tokenId` must be already minted.
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) external haveRights {
        _setTokenRoyalty(tokenId, receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function resetTokenRoyalty(uint256 tokenId) external haveRights {
        _resetTokenRoyalty(tokenId);
    }
}
          

project:/contracts/utils/Guard.sol

// SPDX-License-Identifier: PROPRIERTARY

// Author: Ilya A. Shlyakhovoy
// Email: is@unicsoft.com

pragma solidity 0.8.17;
import "../interfaces/IRights.sol";

abstract contract Guard {
    string constant NO_RIGHTS = "Guard: No rights";

    /// @notice only if person with rights calls the contract
    modifier haveRights() {
        require(_rights().haveRights(address(this), msg.sender), NO_RIGHTS);
        _;
    }

    /// @notice only if someone with rights calls the contract
    modifier haveRightsPerson(address who_) {
        require(_rights().haveRights(address(this), who_), NO_RIGHTS);
        _;
    }

    /// @notice only if who with rights calls the target function
    modifier haveRightsExt(address target_, address who_) {
        require(_rights().haveRights(target_, who_), NO_RIGHTS);
        _;
    }

    function _rights() internal view virtual returns (IRights);

    function setRights(address rights_) external virtual;
}
          

project:/contracts/utils/GuardExtension.sol

// SPDX-License-Identifier: PROPRIERTARY

// Author: Ilya A. Shlyakhovoy
// Email: is@unicsoft.com

pragma solidity 0.8.17;
import "../interfaces/IRights.sol";
import "../utils/Guard.sol";

abstract contract GuardExtension is Guard {
    IRights private _rightsContract;

    string private constant SAME_VALUE = "Guard: same value";
    string private constant ZERO_ADDRESS = "Guard: zero address";

    constructor(address rights_) {
        require(rights_ != address(0), ZERO_ADDRESS);
        _rightsContract = IRights(rights_);
    }

    function _rights() internal view virtual override returns (IRights) {
        return _rightsContract;
    }

    function setRights(address rights_) external virtual override haveRights {
        require(address(_rightsContract) != rights_, SAME_VALUE);
        require(rights_ != address(0), ZERO_ADDRESS);
        _rightsContract = IRights(rights_);
    }
}
          

project:/contracts/utils/OperatorFiltererERC721.sol

// SPDX-License-Identifier: PROPRIERTARY

// Author: Bohdan Malkevych
// Email: bm@unicsoft.com

pragma solidity 0.8.17;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";

abstract contract OperatorFiltererERC721 is
    ERC721,
    DefaultOperatorFilterer,
    Ownable
{
    /**
     * @dev See {IERC721-setApprovalForAll}.
     *      In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        override
        onlyAllowedOperatorApproval(operator)
    {
        super.setApprovalForAll(operator, approved);
    }

    /**
     * @dev See {IERC721-approve}.
     *      In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry.
     */
    function approve(address operator, uint256 tokenId)
        public
        override
        onlyAllowedOperatorApproval(operator)
    {
        super.approve(operator, tokenId);
    }

    /**
     * @dev See {IERC721-transferFrom}.
     *      In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     *      In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     *      In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId, data);
    }
}
          

Compiler Settings

{"viaIR":true,"outputSelection":{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers"]}},"optimizer":{"runs":200,"enabled":true},"libraries":{},"evmVersion":"london"}
              

Contract ABI

[{"type":"constructor","inputs":[{"type":"address","name":"router_","internalType":"address"},{"type":"uint256","name":"start_","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IOperatorFilterRegistry"}],"name":"OPERATOR_FILTER_REGISTRY","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple","name":"","internalType":"struct EIP2981.AdditionalRoyaltyInfo","components":[{"type":"uint96"},{"type":"uint96"}]}],"name":"additionalDefaultRoyaltyInfo","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"approve","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"born","inputs":[{"type":"uint256","name":"id_","internalType":"uint256"},{"type":"uint256","name":"adultTime_","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"breedChild","inputs":[{"type":"uint256","name":"id_","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deleteDefaultRoyalty","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint96","name":"","internalType":"uint96"}],"name":"feeDenominator","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"tuple","name":"","internalType":"struct Structures.ActorData","components":[{"type":"uint256"},{"type":"uint256"},{"type":"string"},{"type":"string"},{"type":"uint16[10]"},{"type":"uint8"},{"type":"uint8"},{"type":"bool"},{"type":"bool"},{"type":"bool"},{"type":"uint16"},{"type":"address"}]}],"name":"getActor","inputs":[{"type":"uint256","name":"id_","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getAdultTime","inputs":[{"type":"uint256","name":"id_","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getApproved","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getBornTime","inputs":[{"type":"uint256","name":"id_","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"},{"type":"uint8","name":"","internalType":"uint8"}],"name":"getChilds","inputs":[{"type":"uint256","name":"id_","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"getImmaculate","inputs":[{"type":"uint256","name":"id_","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint16[10]","name":"","internalType":"uint16[10]"}],"name":"getProps","inputs":[{"type":"uint256","name":"id_","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint16","name":"","internalType":"uint16"}],"name":"getRank","inputs":[{"type":"uint256","name":"id_","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"getSex","inputs":[{"type":"uint256","name":"id_","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isAdult","inputs":[{"type":"uint256","name":"id_","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isApprovedForAll","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"operator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isBorn","inputs":[{"type":"uint256","name":"id_","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"mint","inputs":[{"type":"uint256","name":"id_","internalType":"uint256"},{"type":"address","name":"owner_","internalType":"address"},{"type":"uint16[10]","name":"props_","internalType":"uint16[10]"},{"type":"bool","name":"sex_","internalType":"bool"},{"type":"bool","name":"born_","internalType":"bool"},{"type":"uint256","name":"adultTime_","internalType":"uint256"},{"type":"uint8","name":"childs_","internalType":"uint8"},{"type":"bool","name":"immaculate_","internalType":"bool"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"ownerOf","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"resetTokenRoyalty","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"royaltyInfo","inputs":[{"type":"uint256","name":"_tokenId","internalType":"uint256"},{"type":"uint256","name":"_salePrice","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setAdultTime","inputs":[{"type":"uint256","name":"id_","internalType":"uint256"},{"type":"uint256","name":"time_","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setApprovalForAll","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"bool","name":"approved","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDefaultRoyalty","inputs":[{"type":"address","name":"receiver","internalType":"address"},{"type":"uint96","name":"collectionOwnerFeeNumerator","internalType":"uint96"},{"type":"uint96","name":"firstOwnerFeeNumerator","internalType":"uint96"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMetadataHash","inputs":[{"type":"uint256","name":"id_","internalType":"uint256"},{"type":"string","name":"adultHash_","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMetadataHashes","inputs":[{"type":"uint256","name":"id_","internalType":"uint256"},{"type":"string","name":"kidHash_","internalType":"string"},{"type":"string","name":"adultHash_","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRights","inputs":[{"type":"address","name":"rights_","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTokenRoyalty","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"address","name":"receiver","internalType":"address"},{"type":"uint96","name":"feeNumerator","internalType":"uint96"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"tokenAdultURI","inputs":[{"type":"uint256","name":"id_","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"tokenKidURI","inputs":[{"type":"uint256","name":"id_","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"tokenURI","inputs":[{"type":"uint256","name":"id_","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"total","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"event","name":"ActorWasBorn","inputs":[{"type":"uint256","name":"id","indexed":true},{"type":"uint256","name":"bornTime","indexed":false}],"anonymous":false},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"approved","indexed":true},{"type":"uint256","name":"tokenId","indexed":true}],"anonymous":false},{"type":"event","name":"ApprovalForAll","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"address","name":"operator","indexed":true},{"type":"bool","name":"approved","indexed":false}],"anonymous":false},{"type":"event","name":"FeeChanged","inputs":[{"type":"address","name":"receiver","indexed":true},{"type":"uint96","name":"collectionOwnerFeeNumerator","indexed":false},{"type":"uint96","name":"firstOwnerFeeNumerator","indexed":false}],"anonymous":false},{"type":"event","name":"Minted","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"uint256","name":"id","indexed":true}],"anonymous":false},{"type":"event","name":"MintedImmaculate","inputs":[{"type":"address","name":"owner","indexed":true},{"type":"uint256","name":"id","indexed":true}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","indexed":true},{"type":"address","name":"newOwner","indexed":true}],"anonymous":false},{"type":"event","name":"TokenUriDefined","inputs":[{"type":"uint256","name":"id","indexed":true},{"type":"string","name":"kidUri","indexed":false},{"type":"string","name":"adultUri","indexed":false}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","indexed":true},{"type":"address","name":"to","indexed":true},{"type":"uint256","name":"tokenId","indexed":true}],"anonymous":false},{"type":"error","name":"OperatorNotAllowed","inputs":[{"type":"address","name":"operator","internalType":"address"}]}]
              

Contract Creation Code

0x608034620004dd57620042af90600090601f906001600160401b03601f1938869003848101821684019083821185831017620004c9578085916040998a948552833981010312620004c55782516001600160a01b038082169590949091869003620004c157602080910151968851946200007986620004e2565b600e86526d556e64656164735a6f6d6269657360901b83870152895195620000a187620004e2565b600496878152631551169560e21b858201528151838111620003d0578454926001938481811c91168015620004b6575b88821014620004a35790818984931162000450575b508790898311600114620003ef578792620003e3575b5050600019600383901b1c191690831b1784555b805190838211620003d05782548381811c91168015620003c5575b87821014620003b2579081888493116200035f575b508690888311600114620002fe578692620002f2575b5050600019600383901b1c191690821b1790555b6daaeb6d7670e522a718067333cd4e803b62000274575b5050600680546001600160a01b03198082163390811790935597167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a3885191620001ce83620004e2565b601383527f47756172643a207a65726f2061646472657373000000000000000000000000008184015287156200021d57505050505050600a541617600a55600c5551613d9a9081620005158239f35b965086919550885196879562461bcd60e51b8752860152855191826024870152815b8381106200025c5750506044809650828601015201168101030190fd5b8088018201518982016044015288965081016200023f565b803b15620002ee579082809260448d5180958193633e9f1edf60e11b8352308d840152733cc6cdda760b79bafa08df41ecfa224f810dceb660248401525af18015620002e4571562000181578111620002d1578952388062000181565b634e487b7160e01b825260418652602482fd5b8b513d85823e3d90fd5b8280fd5b01519050388062000156565b90898594169184885288882092885b8a8282106200034857505084116200032e575b505050811b0190556200016a565b015160001960f88460031b161c1916905538808062000320565b83850151865588979095019493840193016200030d565b9091508386528686208880850160051c820192898610620003a8575b918691869594930160051c01915b8281106200039957505062000140565b88815585945086910162000389565b925081926200037b565b634e487b7160e01b865260228a52602486fd5b90607f16906200012b565b634e487b7160e01b855260418952602485fd5b015190503880620000fc565b908a8694169188805289892092895b8b8282106200043957505084116200041f575b505050811b01845562000110565b015160001960f88460031b161c1916905538808062000411565b8385015186558997909501949384019301620003fe565b9091508680528787208980850160051c8201928a861062000499575b918791869594930160051c01915b8281106200048a575050620000e6565b8981558594508791016200047a565b925081926200046c565b634e487b7160e01b875260228b52602487fd5b90607f1690620000d1565b8680fd5b8480fd5b634e487b7160e01b87526041600452602487fd5b600080fd5b604081019081106001600160401b03821117620004fe57604052565b634e487b7160e01b600052604160045260246000fdfe60806040526004361015610013575b600080fd5b60003560e01c806301ffc9a71461038357806306fdde031461037a578063081812fc14610371578063095ea7b3146103685780630c2177a21461035f578063180b0d7e14610356578063185849411461034d57806323b872dd146103445780632a55205a1461033b5780632ddbd13a146103325780633268096c1461032957806337d2aae91461032057806341f434341461031757806342842e0e1461030e5780634778c0c314610305578063512c97e9146102fc578063547d1fbf146102f35780635944c753146102ea5780635d9d28e5146102e15780636352211e146102d857806370a08231146102cf578063715018a6146102c657806378efeb25146102bd5780638a616bc0146102b45780638da5cb5b146102ab57806395d89b41146102a257806397459e9d14610299578063a22cb46514610290578063a5099bae14610287578063aa1b103f1461027e578063b35958a014610275578063b88d4fde1461026c578063b9140a5a14610263578063c6e95bed1461025a578063c87b56dd14610251578063cc876ded14610248578063d141ca8a1461023f578063d4dd5b8414610236578063dcecfa5d1461022d578063e07140d414610224578063e985e9c51461021b578063f11c987b14610212578063f2fde38b146102095763f5fe35261461020157600080fd5b61000e612113565b5061000e61207c565b5061000e612021565b5061000e611fc3565b5061000e611d3d565b5061000e611c8f565b5061000e611c3f565b5061000e611b33565b5061000e6119ef565b5061000e6119aa565b5061000e611934565b5061000e6118d4565b5061000e61185c565b5061000e611768565b5061000e611627565b5061000e6115cd565b5061000e6114d7565b5061000e611492565b5061000e6113ec565b5061000e6113c2565b5061000e611363565b5061000e611308565b5061000e6112a6565b5061000e611203565b5061000e6111e4565b5061000e611199565b5061000e611029565b5061000e610f8a565b5061000e610d30565b5061000e610caa565b5061000e610c0e565b5061000e610be4565b5061000e610abe565b5061000e610a57565b5061000e610a38565b5061000e61097b565b5061000e610932565b5061000e610899565b5061000e61087b565b5061000e6107d1565b5061000e6105c4565b5061000e610567565b5061000e610483565b5061000e61039e565b6001600160e01b031981160361000e57565b503461000e57602036600319011261000e5760206004356103be8161038c565b63ffffffff60e01b1663152a902d60e11b81149081156103e4575b506040519015158152f35b6380ac58cd60e01b811491508115610416575b8115610405575b50386103d9565b6301ffc9a760e01b149050386103fe565b635b5e139f60e01b811491506103f7565b60005b83811061043a5750506000910152565b818101518382015260200161042a565b9060209161046381518092818552858086019101610427565b601f01601f1916010190565b90602061048092818152019061044a565b90565b503461000e5760008060031936011261056457604051908080546104a681612436565b8085529160019180831690811561053a57506001146104e0575b6104dc856104d08187038261074f565b6040519182918261046f565b0390f35b80809450527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b8284106105225750505081016020016104d0826104dc6104c0565b80546020858701810191909152909301928101610507565b8695506104dc969350602092506104d094915060ff191682840152151560051b82010192936104c0565b80fd5b503461000e57602036600319011261000e576020610586600435612521565b6040516001600160a01b039091168152f35b600435906001600160a01b038216820361000e57565b602435906001600160a01b038216820361000e57565b503461000e57604036600319011261000e576105de610598565b6024356105ea8261372c565b6105f3816123be565b916001600160a01b03808416908216811461066e5761062593610620913314908115610627575b506137da565b6138a0565b005b6001600160a01b0316600090815260056020526040902061066891506106619033905b9060018060a01b0316600052602052604060002090565b5460ff1690565b3861061a565b60405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608490fd5b50634e487b7160e01b600052604160045260246000fd5b61018081019081106001600160401b038211176106f057604052565b6106f86106bd565b604052565b604081019081106001600160401b038211176106f057604052565b61014081019081106001600160401b038211176106f057604052565b602081019081106001600160401b038211176106f057604052565b90601f801991011681019081106001600160401b038211176106f057604052565b6040519061077d826106fd565b565b6040519061077d826106d4565b8015150361000e57565b610184359061077d8261078c565b6101a4359061077d8261078c565b610204359061077d8261078c565b6101e4359060ff8216820361000e57565b503461000e5761022036600319011261000e576107ec6105ae565b366063121561000e576040519061080282610718565b8161018436811161000e576044915b818310610860576104dc6108508686610828610796565b906108316107a4565b6108396107c0565b926108426107b2565b946101c43593600435612eeb565b6040519081529081906020820190565b823561ffff8116810361000e57815260209283019201610811565b503461000e57600036600319011261000e5760206040516127108152f35b503461000e57602036600319011261000e576004356000818152600260205260409020546108db906001600160a01b031615155b6108d56126c0565b90612694565b600052600d602052602060ff600560406000200154821c166040519015158152f35b606090600319011261000e576001600160a01b0390600435828116810361000e5791602435908116810361000e579060443590565b503461000e57610625610944366108fd565b91336001600160a01b0382160361096d575b610968610963843361396a565b613904565b613ac1565b6109763361372c565b610956565b503461000e57604036600319011261000e5761271060243560043560005260086020526109ab60406000206125d9565b80516001600160a01b031615610a21575b6109f0816001600160601b0360206104dc9401511693848102948186041490151715610a14575b516001600160a01b031690565b604080516001600160a01b0390921682529390920460208301529091829190820190565b610a1c6125fe565b6109e3565b506104dc6109f0610a306125b3565b9150506109bc565b503461000e57600036600319011261000e576020600b54604051908152f35b503461000e57602036600319011261000e57600435600081815260026020526040902054610a8f906001600160a01b031615156108cd565b600052600d602052604060ff60058260002001541660ff600583600020015460081c1682519182526020820152f35b503461000e5760208060031936011261000e57610ad9610598565b600a54604051630f6266a760e01b81523060048201523360248201526001600160a01b03808316949293610b9a9392610b67929190610b339085816044818c5afa908115610bd7575b600091610baa575b506108d5612668565b16948560405191610b43836106fd565b601183527047756172643a2073616d652076616c756560781b858401521415612694565b7247756172643a207a65726f206164647265737360681b60405191610b8b836106fd565b60138352820152831515612694565b6001600160a01b03191617600a55005b610bca9150863d8811610bd0575b610bc2818361074f565b810190612615565b38610b2a565b503d610bb8565b610bdf61262a565b610b22565b503461000e57600036600319011261000e5760206040516daaeb6d7670e522a718067333cd4e8152f35b503461000e57610c6a610c20366108fd565b6001600160a01b0383163314159290919083610c9c575b60405193610c4485610734565b60008552610c8e575b610c5a610963843361396a565b610c65838383613ac1565b613ca1565b15610c7157005b60405162461bcd60e51b815280610c8a60048201613bd8565b0390fd5b610c973361372c565b610c4d565b610ca53361372c565b610c37565b503461000e57602036600319011261000e576004356000818152600260205260409020546104dc91610cef91610cea906001600160a01b031615156108cd565b612df3565b60405191829160208352602083019061044a565b9181601f8401121561000e578235916001600160401b03831161000e576020838186019501011161000e57565b503461000e57604036600319011261000e576004356024356001600160401b03811161000e57610f35610f29610d8b7fa71f99523c780fb4bcd7f7129790ed473c6630bbf6c842e62e24f38e75e1164b933690600401610d03565b600a54604051630f6266a760e01b8152306004820152336024820152919392602092610f1b92610de291908590829060449082906001600160a01b03165afa908115610f51575b600091610f3a57506108d5612668565b600088815260026020526040902054610e05906001600160a01b031615156108cd565b610e34610e2c6005610e218b600052600d602052604060002090565b015460201c60ff1690565b6108d56126eb565b610e6d610e566003610e508b600052600d602052604060002090565b01612506565b848151910120610e6461271d565b146108d5612750565b610ea6610e9e610e9a610661610e84368a87611825565b878151910120600052600e602052604060002090565b1590565b6108d561277e565b610eda610ecd610eb7368885611825565b858151910120600052600e602052604060002090565b805460ff19166001179055565b610efb85826003610ef58c600052600d602052604060002090565b0161280b565b610f036128e0565b94610f15604051968795860190612903565b9161291a565b03601f19810183528261074f565b60405191829182612928565b0390a2005b610bca9150853d8711610bd057610bc2818361074f565b610f5961262a565b610dd2565b6000915b600a8310610f6f57505050565b60019061ffff83511681526020809101920192019190610f62565b503461000e57602036600319011261000e57604051600435610fab82610718565b6101408092369037600081815260026020526040902054610fd6906001600160a01b031615156108cd565b600052600d602052610fee60046040600020016129a5565b610ffb6040518092610f5e565bf35b604435906001600160601b038216820361000e57565b602435906001600160601b038216820361000e57565b503461000e57606036600319011261000e576110436105ae565b61104b610ffd565b600a54604051630f6266a760e01b81523060048201523360248201529192916001600160a01b03916110a29190602090829085168180604481015b03915afa90811561118c575b60009161117457506108d5612668565b6110b96127106001600160601b03851611156136cd565b81161561112f576110f1610625926110e16110d2610770565b6001600160a01b039094168452565b6001600160601b03166020830152565b6111076004356000526008602052604060002090565b815160209092015160a01b6001600160a01b0319166001600160a01b03909216919091179055565b60405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606490fd5b610bca915060203d8111610bd057610bc2818361074f565b61119461262a565b611092565b503461000e57602036600319011261000e5760206111da6004356111d56108cd82600052600260205260018060a01b0360406000205416151590565b613683565b6040519015158152f35b503461000e57602036600319011261000e5760206105866004356123be565b503461000e57602036600319011261000e576001600160a01b03611225610598565b16801561124e5760005260036020526104dc604060002054604051918291829190602083019252565b60405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608490fd5b503461000e576000806003193601126105645760065481906001600160a01b038116906112d433831461232a565b6001600160a01b0319166006557f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b503461000e57602036600319011261000e57600435600081815260026020526040902054611340906001600160a01b031615156108cd565b600052600d602052602060ff60056040600020015460101c166040519015158152f35b503461000e57602036600319011261000e57600a54604051630f6266a760e01b81523060048201523360248201526113ae9160209082906001600160a01b0316818060448101611086565b600435600090815260086020526040812055005b503461000e57600036600319011261000e576006546040516001600160a01b039091168152602090f35b503461000e57600080600319360112610564576040519080600180549161141283612436565b8086529282811690811561053a5750600114611438576104dc856104d08187038261074f565b92508083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b82841061147a5750505081016020016104d0826104dc6104c0565b8054602085870181019190915290930192810161145f565b503461000e57602036600319011261000e576004356000818152600260205260409020546104dc91610cef916114d2906001600160a01b031615156108cd565b612d53565b503461000e57604036600319011261000e576114f1610598565b6024356114fd8161078c565b6115068261372c565b6001600160a01b0382169133831461158857816115456115569233600052600560205260406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b604051901515815233907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b60405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606490fd5b503461000e57602036600319011261000e57600435600081815260026020526040902054611605906001600160a01b031615156108cd565b600052600d602052602061ffff60056040600020015460281c16604051908152f35b503461000e5760008060031936011261056457600a54604051630f6266a760e01b815230600482015233602482015261168691602090829060449082906001600160a01b03165afa908115611691575b839161117457506108d5612668565b806007558060095580f35b61169961262a565b611677565b6104809060208152825160208201526020830151604082015260408301516101606116f06116da6102a0938460608701526102c086019061044a565b6060870151858203601f1901608087015261044a565b94611703608082015160a0860190610f5e565b60a081015160ff166101e085015260c081015160ff1661020085015260e081015115156102208501526101008101511515610240850152610120810151151561026085015261014081015161ffff1661028085015201516001600160a01b0316910152565b503461000e57602036600319011261000e57604051611786816106d4565b61016060009182815282602082015260606040820152606080820152826040516117af81610718565b610140908136823760808401528160a08401528160c08401528160e0840152816101008401528161012084015282015201526104dc6117ef600435613524565b6040519182918261169e565b6020906001600160401b038111611818575b601f01601f19160190565b6118206106bd565b61180d565b929192611831826117fb565b9161183f604051938461074f565b82948184528183011161000e578281602093846000960137010152565b503461000e57608036600319011261000e57611876610598565b61187e6105ae565b90604435606435926001600160401b03841161000e573660238501121561000e576118b6610c6a943690602481600401359101611825565b92336001600160a01b03821603610c8e57610c5a610963843361396a565b503461000e57600036600319011261000e57600060206040516118f6816106fd565b828152015260408051611908816106fd565b6009546001600160601b039081602081831694858152019160601c168152835192835251166020820152f35b503461000e57602036600319011261000e5760043560008181526002602052604090205461196c906001600160a01b031615156108cd565b80600052600d60205261198f60ff60056040600020015460181c166108d5613652565b600052600d6020526020600160406000200154604051908152f35b503461000e57602036600319011261000e576004356000818152600260205260409020546104dc91610cef916119ea906001600160a01b031615156108cd565b612c07565b503461000e57604036600319011261000e57600a54604051630f6266a760e01b81523060048281019190915233602483810191909152903592903591611a489160209082906001600160a01b0316818060448101611086565b600082815260026020526040902054611a6b906001600160a01b031615156108cd565b81600052600d602052611a8f60ff60056040600020015460181c16156108d5612750565b81600052600d602052611ab66005604060002001630100000063ff00000019825416179055565b426001611acd84600052600d602052604060002090565b015560405142815282907f0e7e776cee3c1f43042c55d3a3ea44e339eb68b3b0fcd94d4a6ad312d873a48190602090a242811015611b1e5750611b1b4291600052600d602052604060002090565b55005b90611b1b90600052600d602052604060002090565b503461000e57602036600319011261000e57600a54604051630f6266a760e01b8152306004828101919091523360248301523591611b85919060209082906001600160a01b0316818060448101611086565b600081815260026020526040902054611ba8906001600160a01b031615156108cd565b80600052600d60205260ff60056040600020015460101c1615611bc757005b61062590611be760ff60056040600020015460081c1615156108d561360d565b6005611c28611c17611c1283611c0786600052600d602052604060002090565b015460081c60ff1690565b61363f565b92600052600d602052604060002090565b019061ff0082549160081b169061ff001916179055565b503461000e57602036600319011261000e57600435600081815260026020526040902054611c77906001600160a01b031615156108cd565b600052600d6020526020604060002054604051908152f35b503461000e57604036600319011261000e57600a54604051630f6266a760e01b8152306004828101919091523360248301523591611ce1919060209082906001600160a01b0316818060448101611086565b600081815260026020526040902054611d04906001600160a01b031615156108cd565b80600052600d602052611d2760ff60056040600020015460181c166108d5613652565b600052600d602052602435604060002055600080f35b503461000e57606036600319011261000e576004356001600160401b0360243581811161000e57611d72903690600401610d03565b909160443590811161000e5783928391611d90903690600401610d03565b600a54604051630f6266a760e01b8152306004820152336024820152919560209283928390829060449082906001600160a01b03165afa9580898785878b159e7fa71f99523c780fb4bcd7f7129790ed473c6630bbf6c842e62e24f38e75e1164b9f610e9e610f159f611f8a9f611f7e9d611ec4610e9e610e9a611f509f610eb7611f389f60039d611ebd8f610ef59f90610e50611ee59f9d611e55610e9a9f9e6106619f9a611eaf966106619c611fb6575b600092611f99575b50506108d5612668565b600081815260026020526040902054611e78906001600160a01b031615156108cd565b611e9f611e97610e9a6005610e2185600052600d602052604060002090565b6108d5612947565b600052600d602052604060002090565b898151910120610e6461271d565b3691611825565b611ecf368b8b611825565b908151910120600052600e602052604060002090565b611f0c610ecd611ef6368c8b611825565b8d8151910120600052600e602052604060002090565b611f1d610ecd611ef6368888611825565b611e9f89886002610ef585600052600d602052604060002090565b611f406128e0565b9260405198899487860190612903565b0392611f64601f199485810188528761074f565b611f6c6128e0565b96610f15604051988995860190612903565b0390810184528361074f565b610f3560405192839283612980565b611faf9250803d10610bd057610bc2818361074f565b388f611e4b565b611fbe61262a565b611e43565b503461000e57604036600319011261000e57602060ff612015611fe4610598565b611fec6105ae565b6001600160a01b0391821660009081526005865260408082209290931681526020919091522090565b54166040519015158152f35b503461000e57602036600319011261000e57600435600081815260026020526040902054612059906001600160a01b031615156108cd565b600052600d602052602060ff60056040600020015460181c166040519015158152f35b503461000e57602036600319011261000e57612096610598565b6006546001600160a01b03906120af908216331461232a565b8116156120bf5761062590612375565b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b503461000e57606036600319011261000e5761212d610598565b612135611013565b61213d610ffd565b600a54604051630f6266a760e01b81523060048201523360248201526020946001600160a01b0394929091612191918790829060449082908a165afa90811561231d575b60009161230657506108d5612668565b6001600160601b03936121b961271086861687861601968088116122f9575b871611156136cd565b81169384156122b457946122316122919261220a7fb8e5032b0e405c7f726d44adcae73cc1939b1c7988441ea33922a7723d3345b597986121fb6110d2610770565b6001600160601b031682850152565b805160209091015160a01b6001600160a01b0319166001600160a01b039190911617600755565b61225a8461223d610770565b6001600160601b0386168152928301906001600160601b03169052565b6001600160601b038151166009549160206001600160601b0360601b91015160601b16916001600160401b0360c01b161717600955565b604080516001600160601b03928316815292909116602083015281908101610f35565b60405162461bcd60e51b815260048101879052601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606490fd5b6123016125fe565b6121b0565b610bca9150873d8911610bd057610bc2818361074f565b61232561262a565b612181565b1561233157565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b600680546001600160a01b039283166001600160a01b0319821681179092559091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b6000908152600260205260409020546001600160a01b031680156123df5790565b60405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608490fd5b90600182811c92168015612466575b602083101461245057565b634e487b7160e01b600052602260045260246000fd5b91607f1691612445565b906000929180549161248183612436565b9182825260019384811690816000146124e357506001146124a3575b50505050565b90919394506000526020928360002092846000945b8386106124cf57505050500101903880808061249d565b8054858701830152940193859082016124b8565b9294505050602093945060ff191683830152151560051b0101903880808061249d565b9061077d61251a9260405193848092612470565b038361074f565b6000818152600260205260409020546001600160a01b031615612559576000908152600460205260409020546001600160a01b031690565b60405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608490fd5b604051906125c0826106fd565b6007546001600160a01b038116835260a01c6020830152565b906040516125e6816106fd565b91546001600160a01b038116835260a01c6020830152565b50634e487b7160e01b600052601160045260246000fd5b9081602091031261000e57516104808161078c565b506040513d6000823e3d90fd5b60405190602082018281106001600160401b0382111761265b575b60405260008252565b6126636106bd565b612652565b60405190612675826106fd565b601082526f47756172643a204e6f2072696768747360801b6020830152565b1561269c5750565b60405162461bcd60e51b815260206004820152908190610c8a90602483019061044a565b604051906126cd826106fd565b600f82526e1058dd1bdc8e881ddc9bdb99c81a59608a1b6020830152565b604051906126f8826106fd565b60168252754163746f723a206f6e6c7920696d6d6163756c61746560501b6020830152565b600060405161272b81610734565b527fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47090565b6040519061275d826106fd565b60128252711058dd1bdc8e88185b1c9958591e481cd95d60721b6020830152565b6040519061278b826106fd565b601882527f4163746f723a206d65746120616c7265616479207573656400000000000000006020830152565b90601f81116127c557505050565b600091825260208220906020601f850160051c83019410612801575b601f0160051c01915b8281106127f657505050565b8181556001016127ea565b90925082906127e1565b9092916001600160401b0381116128d3575b6128318161282b8454612436565b846127b7565b6000601f821160011461286b5781929394600092612860575b50508160011b916000199060031b1c1916179055565b01359050388061284a565b601f1982169461288084600052602060002090565b91805b8781106128bb5750836001959697106128a1575b505050811b019055565b0135600019600384901b60f8161c19169055388080612897565b90926020600181928686013581550194019101612883565b6128db6106bd565b61281d565b604051906128ed826106fd565b6007825266697066733a2f2f60c81b6020830152565b9061291660209282815194859201610427565b0190565b908092918237016000815290565b906060610480926040815260006040820152816020820152019061044a565b60405190612954826106fd565b601982527f4163746f723a206f6e6c79206e6f6e696d6d6163756c617465000000000000006020830152565b90916129976104809360408452604084019061044a565b91602081840391015261044a565b90612a7b604051925461ffff6129c08582841661ffff169052565b6129d560208601828460101c1661ffff169052565b6129ea60408601828460201c1661ffff169052565b6129ff60608601828460301c1661ffff169052565b612a1460808601828460401c1661ffff169052565b612a2960a08601828460501c1661ffff169052565b612a3e60c08601828460601c1661ffff169052565b612a5360e08601828460701c1661ffff169052565b612a696101008601828460801c1661ffff169052565b61012085019160901c1661ffff169052565b61077d82610718565b9061077d6005612a9261077f565b938054855260018101546020860152612aad60028201612506565b6040860152612abe60038201612506565b6060860152612acf600482016129a5565b6080860152015460ff811660a0850152600881901c60ff1660c0850152601081901c60ff16151560e0850152601881901c60ff161515610100850152602081901c60ff161515610120850152602881901c61ffff1661014085015260381c6001600160a01b0316610160840152565b60405190612b4b826106fd565b60038252621ada5960ea1b6020830152565b60405190612b6a826106fd565b600282526130b360f11b6020830152565b60405190612b88826106fd565b6002825261616d60f01b6020830152565b60405190606082018281106001600160401b03821117612bfa575b604052602e82526d2d1a2a232aa233b3a3a1229b343160911b6040837f516d5a3962435452424e7767796875615836503758666d38443163376a63554d60208201520152565b612c026106bd565b612bb4565b612c1081613683565b15612d3457612c2e6003610e5083600052600d602052604060002090565b905b81516020830120612c3f61271d565b14612c6e5750610480612c6891610f1b612c576128e0565b916040519485936020850190612903565b90612903565b9050612c95612c8f612c8a83600052600d602052604060002090565b612a84565b91613683565b15612d255760e0015115612d1257612c68610480612cb1612b7b565b610f1b612cfd612cf0612cc26128e0565b93612c68612cf0612cd1612b99565b612c68612cf0612cdf6136af565b926040519c8d9b60208d0190612903565b602f60f81b815260010190565b6836b2ba30973539b7b760b91b815260090190565b612c68610480612d20612b5d565b612cb1565b50612c68610480612d20612b3e565b612d4d6002610e5083600052600d602052604060002090565b90612c30565b600090815261251a602091600d8352612d786002604083200160405193848092612470565b81519083830191822081604051612d8e81610734565b5281802014612ddd57509161048091612dd193612da96128e0565b916040519583612dc28895518092888089019101610427565b84019151809386840190610427565b0103808452018261074f565b9250505060405190612dee82610734565b815290565b600052600d6020526040600020612ebb612e0b61077f565b8254815260018301546020820152612e2560028401612506565b60408201526101606005612e3b60038601612506565b9460608401958652612e4f600482016129a5565b6080850152015460ff811660a0840152600881901c60ff1660c0840152601081901c60ff16151560e0840152601881901c60ff161515610100840152602081901c60ff161515610120840152602881901c61ffff1661014084015260381c6001600160a01b0316910152565b5180516020820120612ecb61271d565b14612ee257610480612c6891610f1b612c576128e0565b50610480612637565b600a54604051630f6266a760e01b815230600482015233602482015295986001600160a01b039793969095939493869390929091612f359160209082908c16818060448101611086565b612f436001600b5401600b55565b8015613109579889985b612f578a896133ea565b61ffff92612fd0612fc3612fb6612fa9612f9c612f8f8b8a6040612f8582845116836020860151169061313e565b920151169061313e565b8960608d0151169061313e565b8860808c0151169061313e565b8760a08b0151169061313e565b8660c08a0151169061313e565b8560e0890151169061313e565b91613004612ff9612fea6101009588878c0151169061313e565b61012097888b0151169061313e565b61ffff600a91160490565b96846000998a916130ed575b5061301961077f565b998a5260208a0152613029612637565b60408a0152613036612637565b60608a0152608089015260ff1660a0880181905260c0880152151560e0870152901515908501529015159083015261ffff166101408201526001600160a01b0383166101608201526000858152600d602052604090209061309691613263565b156130c457167f6b32c47558f5691d402acb24c91df9759c85f521416baa57906aab75eb5ae3d1600080a390565b167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe600080a390565b429a5090508981111561310257985b38613010565b50886130fc565b5061311d613118600c54613128565b600c55565b600c54988998612f4d565b906001820180921161313657565b61077d6125fe565b91909161ffff8080941691160191821161313657565b91909182516001600160401b03811161321b575b6131768161282b8454612436565b602080601f83116001146131b15750819293946000926131a65750508160011b916000199060031b1c1916179055565b01519050388061284a565b90601f198316956131c785600052602060002090565b926000905b888210613203575050836001959697106131ea57505050811b019055565b015160001960f88460031b161c19169055388080612897565b806001859682949686015181550195019301906131cc565b6132236106bd565b613168565b600091825b600a811061323a57505055565b9092602060019161ffff9081875116918560041b90811b9283911b16911916179401910161322d565b906133bc610160600561077d94845181556020850151600182015561328f604086015160028301613154565b6132a0606086015160038301613154565b6132b1608086015160048301613228565b01926132d46132c460a083015160ff1690565b855460ff191660ff909116178555565b6132fb6132e560c083015160ff1690565b855461ff00191660089190911b61ff0016178555565b61332361330b60e0830151151590565b855462ff0000191690151560101b62ff000016178555565b61334e613334610100830151151590565b855463ff000000191690151560181b63ff00000016178555565b61337b61335f610120830151151590565b855464ff00000000191690151560201b64ff0000000016178555565b6133ae61338e61014083015161ffff1690565b855466ffff0000000000191660289190911b66ffff000000000016178555565b01516001600160a01b031690565b8154670100000000000000600160d81b03191660389190911b670100000000000000600160d81b0316179055565b6001600160a01b0381169081156134e0576000838152600260205260409020546001600160a01b031661349b576001600160a01b0381166000908152600360205260409020613473919061343e8154613128565b9055613454846000526002602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055565b60007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4565b60405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606490fd5b606460405162461bcd60e51b815260206004820152602060248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152fd5b600081815260026020526040902054613547906001600160a01b031615156108cd565b600052600d6020526040600020610480600561356161077f565b92805484526001810154602085015261357c60028201612506565b604085015261358d60038201612506565b606085015261359e600482016129a5565b6080850152015460ff811660a0840152600881901c60ff1660c0840152601081901c60ff16151560e0840152601881901c60ff161515610100840152602081901c60ff161515610120840152602881901c61ffff1661014084015260381c6001600160a01b0316610160830152565b6040519061361a826106fd565b60168252754163746f723a20746f6f206d756368206368696c647360501b6020830152565b60ff6000199116019060ff821161313657565b6040519061365f826106fd565b60158252741058dd1bdc8e881b9bdd08189bdc9b9959081e595d605a1b6020830152565b600052600d60205260ff60056040600020015460181c16806136a25790565b5060406000205442101590565b604051906136bc826106fd565b60028252617a6f60f01b6020830152565b156136d457565b60405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608490fd5b6daaeb6d7670e522a718067333cd4e803b613745575050565b604051633185c44d60e21b81523060048201526001600160a01b038316602482015290602090829060449082905afa9081156137cd575b6000916137af575b501561378d5750565b604051633b79c77360e21b81526001600160a01b039091166004820152602490fd5b6137c7915060203d8111610bd057610bc2818361074f565b38613784565b6137d561262a565b61377c565b156137e157565b60405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608490fd5b600081815260046020526040812080546001600160a01b03191690556001600160a01b03613879836123be565b167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258280a4565b600082815260046020526040902080546001600160a01b0319166001600160a01b0383161790556001600160a01b03806138d9846123be565b169116907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600080a4565b1561390b57565b60405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608490fd5b6000828152600260205260409020546001600160a01b031615613a0057613990826123be565b9160018060a01b03908183169282851684149485156139cf575b505083156139b9575b50505090565b6139c591929350612521565b16143880806139b3565b6001600160a01b0316600090815260056020526040902091945060ff916139f6919061064a565b54169238806139aa565b60405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608490fd5b15613a6157565b60405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b60001981019190821161313657565b90613acb836123be565b6001600160a01b038381169290918216839003613b8557613b1a613b5e92821694613af7861515613a5a565b613b008761384c565b6001600160a01b0316600090815260036020526040902090565b613b248154613ab2565b90556001600160a01b0381166000908152600360205260409020613b488154613128565b9055613454856000526002602052604060002090565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4565b60405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608490fd5b60809060208152603260208201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60608201520190565b9081602091031261000e57516104808161038c565b6001600160a01b0391821681529116602082015260408101919091526080606082018190526104809291019061044a565b3d15613c9c573d90613c82826117fb565b91613c90604051938461074f565b82523d6000602084013e565b606090565b92909190823b15613d5b57613cd4926020926000604051809681958294630a85bd0160e11b9a8b85523360048601613c40565b03926001600160a01b03165af160009181613d2b575b50613d1d57613cf7613c71565b80519081613d185760405162461bcd60e51b815280610c8a60048201613bd8565b602001fd5b6001600160e01b0319161490565b613d4d91925060203d8111613d54575b613d45818361074f565b810190613c2b565b9038613cea565b503d613d3b565b5050505060019056fea2646970667358221220ab9ec524d5ec0b95376529ab2b14df652adf4f7cc030911d0feae1ffbb8e10c564736f6c63430008110033000000000000000000000000ea6a031bbaf2eadb5ecfd32b8aa39e9a95659e460000000000000000000000000000000000000000000000000000000000001a0a

Deployed ByteCode

0x60806040526004361015610013575b600080fd5b60003560e01c806301ffc9a71461038357806306fdde031461037a578063081812fc14610371578063095ea7b3146103685780630c2177a21461035f578063180b0d7e14610356578063185849411461034d57806323b872dd146103445780632a55205a1461033b5780632ddbd13a146103325780633268096c1461032957806337d2aae91461032057806341f434341461031757806342842e0e1461030e5780634778c0c314610305578063512c97e9146102fc578063547d1fbf146102f35780635944c753146102ea5780635d9d28e5146102e15780636352211e146102d857806370a08231146102cf578063715018a6146102c657806378efeb25146102bd5780638a616bc0146102b45780638da5cb5b146102ab57806395d89b41146102a257806397459e9d14610299578063a22cb46514610290578063a5099bae14610287578063aa1b103f1461027e578063b35958a014610275578063b88d4fde1461026c578063b9140a5a14610263578063c6e95bed1461025a578063c87b56dd14610251578063cc876ded14610248578063d141ca8a1461023f578063d4dd5b8414610236578063dcecfa5d1461022d578063e07140d414610224578063e985e9c51461021b578063f11c987b14610212578063f2fde38b146102095763f5fe35261461020157600080fd5b61000e612113565b5061000e61207c565b5061000e612021565b5061000e611fc3565b5061000e611d3d565b5061000e611c8f565b5061000e611c3f565b5061000e611b33565b5061000e6119ef565b5061000e6119aa565b5061000e611934565b5061000e6118d4565b5061000e61185c565b5061000e611768565b5061000e611627565b5061000e6115cd565b5061000e6114d7565b5061000e611492565b5061000e6113ec565b5061000e6113c2565b5061000e611363565b5061000e611308565b5061000e6112a6565b5061000e611203565b5061000e6111e4565b5061000e611199565b5061000e611029565b5061000e610f8a565b5061000e610d30565b5061000e610caa565b5061000e610c0e565b5061000e610be4565b5061000e610abe565b5061000e610a57565b5061000e610a38565b5061000e61097b565b5061000e610932565b5061000e610899565b5061000e61087b565b5061000e6107d1565b5061000e6105c4565b5061000e610567565b5061000e610483565b5061000e61039e565b6001600160e01b031981160361000e57565b503461000e57602036600319011261000e5760206004356103be8161038c565b63ffffffff60e01b1663152a902d60e11b81149081156103e4575b506040519015158152f35b6380ac58cd60e01b811491508115610416575b8115610405575b50386103d9565b6301ffc9a760e01b149050386103fe565b635b5e139f60e01b811491506103f7565b60005b83811061043a5750506000910152565b818101518382015260200161042a565b9060209161046381518092818552858086019101610427565b601f01601f1916010190565b90602061048092818152019061044a565b90565b503461000e5760008060031936011261056457604051908080546104a681612436565b8085529160019180831690811561053a57506001146104e0575b6104dc856104d08187038261074f565b6040519182918261046f565b0390f35b80809450527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b8284106105225750505081016020016104d0826104dc6104c0565b80546020858701810191909152909301928101610507565b8695506104dc969350602092506104d094915060ff191682840152151560051b82010192936104c0565b80fd5b503461000e57602036600319011261000e576020610586600435612521565b6040516001600160a01b039091168152f35b600435906001600160a01b038216820361000e57565b602435906001600160a01b038216820361000e57565b503461000e57604036600319011261000e576105de610598565b6024356105ea8261372c565b6105f3816123be565b916001600160a01b03808416908216811461066e5761062593610620913314908115610627575b506137da565b6138a0565b005b6001600160a01b0316600090815260056020526040902061066891506106619033905b9060018060a01b0316600052602052604060002090565b5460ff1690565b3861061a565b60405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608490fd5b50634e487b7160e01b600052604160045260246000fd5b61018081019081106001600160401b038211176106f057604052565b6106f86106bd565b604052565b604081019081106001600160401b038211176106f057604052565b61014081019081106001600160401b038211176106f057604052565b602081019081106001600160401b038211176106f057604052565b90601f801991011681019081106001600160401b038211176106f057604052565b6040519061077d826106fd565b565b6040519061077d826106d4565b8015150361000e57565b610184359061077d8261078c565b6101a4359061077d8261078c565b610204359061077d8261078c565b6101e4359060ff8216820361000e57565b503461000e5761022036600319011261000e576107ec6105ae565b366063121561000e576040519061080282610718565b8161018436811161000e576044915b818310610860576104dc6108508686610828610796565b906108316107a4565b6108396107c0565b926108426107b2565b946101c43593600435612eeb565b6040519081529081906020820190565b823561ffff8116810361000e57815260209283019201610811565b503461000e57600036600319011261000e5760206040516127108152f35b503461000e57602036600319011261000e576004356000818152600260205260409020546108db906001600160a01b031615155b6108d56126c0565b90612694565b600052600d602052602060ff600560406000200154821c166040519015158152f35b606090600319011261000e576001600160a01b0390600435828116810361000e5791602435908116810361000e579060443590565b503461000e57610625610944366108fd565b91336001600160a01b0382160361096d575b610968610963843361396a565b613904565b613ac1565b6109763361372c565b610956565b503461000e57604036600319011261000e5761271060243560043560005260086020526109ab60406000206125d9565b80516001600160a01b031615610a21575b6109f0816001600160601b0360206104dc9401511693848102948186041490151715610a14575b516001600160a01b031690565b604080516001600160a01b0390921682529390920460208301529091829190820190565b610a1c6125fe565b6109e3565b506104dc6109f0610a306125b3565b9150506109bc565b503461000e57600036600319011261000e576020600b54604051908152f35b503461000e57602036600319011261000e57600435600081815260026020526040902054610a8f906001600160a01b031615156108cd565b600052600d602052604060ff60058260002001541660ff600583600020015460081c1682519182526020820152f35b503461000e5760208060031936011261000e57610ad9610598565b600a54604051630f6266a760e01b81523060048201523360248201526001600160a01b03808316949293610b9a9392610b67929190610b339085816044818c5afa908115610bd7575b600091610baa575b506108d5612668565b16948560405191610b43836106fd565b601183527047756172643a2073616d652076616c756560781b858401521415612694565b7247756172643a207a65726f206164647265737360681b60405191610b8b836106fd565b60138352820152831515612694565b6001600160a01b03191617600a55005b610bca9150863d8811610bd0575b610bc2818361074f565b810190612615565b38610b2a565b503d610bb8565b610bdf61262a565b610b22565b503461000e57600036600319011261000e5760206040516daaeb6d7670e522a718067333cd4e8152f35b503461000e57610c6a610c20366108fd565b6001600160a01b0383163314159290919083610c9c575b60405193610c4485610734565b60008552610c8e575b610c5a610963843361396a565b610c65838383613ac1565b613ca1565b15610c7157005b60405162461bcd60e51b815280610c8a60048201613bd8565b0390fd5b610c973361372c565b610c4d565b610ca53361372c565b610c37565b503461000e57602036600319011261000e576004356000818152600260205260409020546104dc91610cef91610cea906001600160a01b031615156108cd565b612df3565b60405191829160208352602083019061044a565b9181601f8401121561000e578235916001600160401b03831161000e576020838186019501011161000e57565b503461000e57604036600319011261000e576004356024356001600160401b03811161000e57610f35610f29610d8b7fa71f99523c780fb4bcd7f7129790ed473c6630bbf6c842e62e24f38e75e1164b933690600401610d03565b600a54604051630f6266a760e01b8152306004820152336024820152919392602092610f1b92610de291908590829060449082906001600160a01b03165afa908115610f51575b600091610f3a57506108d5612668565b600088815260026020526040902054610e05906001600160a01b031615156108cd565b610e34610e2c6005610e218b600052600d602052604060002090565b015460201c60ff1690565b6108d56126eb565b610e6d610e566003610e508b600052600d602052604060002090565b01612506565b848151910120610e6461271d565b146108d5612750565b610ea6610e9e610e9a610661610e84368a87611825565b878151910120600052600e602052604060002090565b1590565b6108d561277e565b610eda610ecd610eb7368885611825565b858151910120600052600e602052604060002090565b805460ff19166001179055565b610efb85826003610ef58c600052600d602052604060002090565b0161280b565b610f036128e0565b94610f15604051968795860190612903565b9161291a565b03601f19810183528261074f565b60405191829182612928565b0390a2005b610bca9150853d8711610bd057610bc2818361074f565b610f5961262a565b610dd2565b6000915b600a8310610f6f57505050565b60019061ffff83511681526020809101920192019190610f62565b503461000e57602036600319011261000e57604051600435610fab82610718565b6101408092369037600081815260026020526040902054610fd6906001600160a01b031615156108cd565b600052600d602052610fee60046040600020016129a5565b610ffb6040518092610f5e565bf35b604435906001600160601b038216820361000e57565b602435906001600160601b038216820361000e57565b503461000e57606036600319011261000e576110436105ae565b61104b610ffd565b600a54604051630f6266a760e01b81523060048201523360248201529192916001600160a01b03916110a29190602090829085168180604481015b03915afa90811561118c575b60009161117457506108d5612668565b6110b96127106001600160601b03851611156136cd565b81161561112f576110f1610625926110e16110d2610770565b6001600160a01b039094168452565b6001600160601b03166020830152565b6111076004356000526008602052604060002090565b815160209092015160a01b6001600160a01b0319166001600160a01b03909216919091179055565b60405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606490fd5b610bca915060203d8111610bd057610bc2818361074f565b61119461262a565b611092565b503461000e57602036600319011261000e5760206111da6004356111d56108cd82600052600260205260018060a01b0360406000205416151590565b613683565b6040519015158152f35b503461000e57602036600319011261000e5760206105866004356123be565b503461000e57602036600319011261000e576001600160a01b03611225610598565b16801561124e5760005260036020526104dc604060002054604051918291829190602083019252565b60405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608490fd5b503461000e576000806003193601126105645760065481906001600160a01b038116906112d433831461232a565b6001600160a01b0319166006557f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b503461000e57602036600319011261000e57600435600081815260026020526040902054611340906001600160a01b031615156108cd565b600052600d602052602060ff60056040600020015460101c166040519015158152f35b503461000e57602036600319011261000e57600a54604051630f6266a760e01b81523060048201523360248201526113ae9160209082906001600160a01b0316818060448101611086565b600435600090815260086020526040812055005b503461000e57600036600319011261000e576006546040516001600160a01b039091168152602090f35b503461000e57600080600319360112610564576040519080600180549161141283612436565b8086529282811690811561053a5750600114611438576104dc856104d08187038261074f565b92508083527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b82841061147a5750505081016020016104d0826104dc6104c0565b8054602085870181019190915290930192810161145f565b503461000e57602036600319011261000e576004356000818152600260205260409020546104dc91610cef916114d2906001600160a01b031615156108cd565b612d53565b503461000e57604036600319011261000e576114f1610598565b6024356114fd8161078c565b6115068261372c565b6001600160a01b0382169133831461158857816115456115569233600052600560205260406000209060018060a01b0316600052602052604060002090565b9060ff801983541691151516179055565b604051901515815233907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190602090a3005b60405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606490fd5b503461000e57602036600319011261000e57600435600081815260026020526040902054611605906001600160a01b031615156108cd565b600052600d602052602061ffff60056040600020015460281c16604051908152f35b503461000e5760008060031936011261056457600a54604051630f6266a760e01b815230600482015233602482015261168691602090829060449082906001600160a01b03165afa908115611691575b839161117457506108d5612668565b806007558060095580f35b61169961262a565b611677565b6104809060208152825160208201526020830151604082015260408301516101606116f06116da6102a0938460608701526102c086019061044a565b6060870151858203601f1901608087015261044a565b94611703608082015160a0860190610f5e565b60a081015160ff166101e085015260c081015160ff1661020085015260e081015115156102208501526101008101511515610240850152610120810151151561026085015261014081015161ffff1661028085015201516001600160a01b0316910152565b503461000e57602036600319011261000e57604051611786816106d4565b61016060009182815282602082015260606040820152606080820152826040516117af81610718565b610140908136823760808401528160a08401528160c08401528160e0840152816101008401528161012084015282015201526104dc6117ef600435613524565b6040519182918261169e565b6020906001600160401b038111611818575b601f01601f19160190565b6118206106bd565b61180d565b929192611831826117fb565b9161183f604051938461074f565b82948184528183011161000e578281602093846000960137010152565b503461000e57608036600319011261000e57611876610598565b61187e6105ae565b90604435606435926001600160401b03841161000e573660238501121561000e576118b6610c6a943690602481600401359101611825565b92336001600160a01b03821603610c8e57610c5a610963843361396a565b503461000e57600036600319011261000e57600060206040516118f6816106fd565b828152015260408051611908816106fd565b6009546001600160601b039081602081831694858152019160601c168152835192835251166020820152f35b503461000e57602036600319011261000e5760043560008181526002602052604090205461196c906001600160a01b031615156108cd565b80600052600d60205261198f60ff60056040600020015460181c166108d5613652565b600052600d6020526020600160406000200154604051908152f35b503461000e57602036600319011261000e576004356000818152600260205260409020546104dc91610cef916119ea906001600160a01b031615156108cd565b612c07565b503461000e57604036600319011261000e57600a54604051630f6266a760e01b81523060048281019190915233602483810191909152903592903591611a489160209082906001600160a01b0316818060448101611086565b600082815260026020526040902054611a6b906001600160a01b031615156108cd565b81600052600d602052611a8f60ff60056040600020015460181c16156108d5612750565b81600052600d602052611ab66005604060002001630100000063ff00000019825416179055565b426001611acd84600052600d602052604060002090565b015560405142815282907f0e7e776cee3c1f43042c55d3a3ea44e339eb68b3b0fcd94d4a6ad312d873a48190602090a242811015611b1e5750611b1b4291600052600d602052604060002090565b55005b90611b1b90600052600d602052604060002090565b503461000e57602036600319011261000e57600a54604051630f6266a760e01b8152306004828101919091523360248301523591611b85919060209082906001600160a01b0316818060448101611086565b600081815260026020526040902054611ba8906001600160a01b031615156108cd565b80600052600d60205260ff60056040600020015460101c1615611bc757005b61062590611be760ff60056040600020015460081c1615156108d561360d565b6005611c28611c17611c1283611c0786600052600d602052604060002090565b015460081c60ff1690565b61363f565b92600052600d602052604060002090565b019061ff0082549160081b169061ff001916179055565b503461000e57602036600319011261000e57600435600081815260026020526040902054611c77906001600160a01b031615156108cd565b600052600d6020526020604060002054604051908152f35b503461000e57604036600319011261000e57600a54604051630f6266a760e01b8152306004828101919091523360248301523591611ce1919060209082906001600160a01b0316818060448101611086565b600081815260026020526040902054611d04906001600160a01b031615156108cd565b80600052600d602052611d2760ff60056040600020015460181c166108d5613652565b600052600d602052602435604060002055600080f35b503461000e57606036600319011261000e576004356001600160401b0360243581811161000e57611d72903690600401610d03565b909160443590811161000e5783928391611d90903690600401610d03565b600a54604051630f6266a760e01b8152306004820152336024820152919560209283928390829060449082906001600160a01b03165afa9580898785878b159e7fa71f99523c780fb4bcd7f7129790ed473c6630bbf6c842e62e24f38e75e1164b9f610e9e610f159f611f8a9f611f7e9d611ec4610e9e610e9a611f509f610eb7611f389f60039d611ebd8f610ef59f90610e50611ee59f9d611e55610e9a9f9e6106619f9a611eaf966106619c611fb6575b600092611f99575b50506108d5612668565b600081815260026020526040902054611e78906001600160a01b031615156108cd565b611e9f611e97610e9a6005610e2185600052600d602052604060002090565b6108d5612947565b600052600d602052604060002090565b898151910120610e6461271d565b3691611825565b611ecf368b8b611825565b908151910120600052600e602052604060002090565b611f0c610ecd611ef6368c8b611825565b8d8151910120600052600e602052604060002090565b611f1d610ecd611ef6368888611825565b611e9f89886002610ef585600052600d602052604060002090565b611f406128e0565b9260405198899487860190612903565b0392611f64601f199485810188528761074f565b611f6c6128e0565b96610f15604051988995860190612903565b0390810184528361074f565b610f3560405192839283612980565b611faf9250803d10610bd057610bc2818361074f565b388f611e4b565b611fbe61262a565b611e43565b503461000e57604036600319011261000e57602060ff612015611fe4610598565b611fec6105ae565b6001600160a01b0391821660009081526005865260408082209290931681526020919091522090565b54166040519015158152f35b503461000e57602036600319011261000e57600435600081815260026020526040902054612059906001600160a01b031615156108cd565b600052600d602052602060ff60056040600020015460181c166040519015158152f35b503461000e57602036600319011261000e57612096610598565b6006546001600160a01b03906120af908216331461232a565b8116156120bf5761062590612375565b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b503461000e57606036600319011261000e5761212d610598565b612135611013565b61213d610ffd565b600a54604051630f6266a760e01b81523060048201523360248201526020946001600160a01b0394929091612191918790829060449082908a165afa90811561231d575b60009161230657506108d5612668565b6001600160601b03936121b961271086861687861601968088116122f9575b871611156136cd565b81169384156122b457946122316122919261220a7fb8e5032b0e405c7f726d44adcae73cc1939b1c7988441ea33922a7723d3345b597986121fb6110d2610770565b6001600160601b031682850152565b805160209091015160a01b6001600160a01b0319166001600160a01b039190911617600755565b61225a8461223d610770565b6001600160601b0386168152928301906001600160601b03169052565b6001600160601b038151166009549160206001600160601b0360601b91015160601b16916001600160401b0360c01b161717600955565b604080516001600160601b03928316815292909116602083015281908101610f35565b60405162461bcd60e51b815260048101879052601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606490fd5b6123016125fe565b6121b0565b610bca9150873d8911610bd057610bc2818361074f565b61232561262a565b612181565b1561233157565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b600680546001600160a01b039283166001600160a01b0319821681179092559091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b6000908152600260205260409020546001600160a01b031680156123df5790565b60405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608490fd5b90600182811c92168015612466575b602083101461245057565b634e487b7160e01b600052602260045260246000fd5b91607f1691612445565b906000929180549161248183612436565b9182825260019384811690816000146124e357506001146124a3575b50505050565b90919394506000526020928360002092846000945b8386106124cf57505050500101903880808061249d565b8054858701830152940193859082016124b8565b9294505050602093945060ff191683830152151560051b0101903880808061249d565b9061077d61251a9260405193848092612470565b038361074f565b6000818152600260205260409020546001600160a01b031615612559576000908152600460205260409020546001600160a01b031690565b60405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608490fd5b604051906125c0826106fd565b6007546001600160a01b038116835260a01c6020830152565b906040516125e6816106fd565b91546001600160a01b038116835260a01c6020830152565b50634e487b7160e01b600052601160045260246000fd5b9081602091031261000e57516104808161078c565b506040513d6000823e3d90fd5b60405190602082018281106001600160401b0382111761265b575b60405260008252565b6126636106bd565b612652565b60405190612675826106fd565b601082526f47756172643a204e6f2072696768747360801b6020830152565b1561269c5750565b60405162461bcd60e51b815260206004820152908190610c8a90602483019061044a565b604051906126cd826106fd565b600f82526e1058dd1bdc8e881ddc9bdb99c81a59608a1b6020830152565b604051906126f8826106fd565b60168252754163746f723a206f6e6c7920696d6d6163756c61746560501b6020830152565b600060405161272b81610734565b527fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47090565b6040519061275d826106fd565b60128252711058dd1bdc8e88185b1c9958591e481cd95d60721b6020830152565b6040519061278b826106fd565b601882527f4163746f723a206d65746120616c7265616479207573656400000000000000006020830152565b90601f81116127c557505050565b600091825260208220906020601f850160051c83019410612801575b601f0160051c01915b8281106127f657505050565b8181556001016127ea565b90925082906127e1565b9092916001600160401b0381116128d3575b6128318161282b8454612436565b846127b7565b6000601f821160011461286b5781929394600092612860575b50508160011b916000199060031b1c1916179055565b01359050388061284a565b601f1982169461288084600052602060002090565b91805b8781106128bb5750836001959697106128a1575b505050811b019055565b0135600019600384901b60f8161c19169055388080612897565b90926020600181928686013581550194019101612883565b6128db6106bd565b61281d565b604051906128ed826106fd565b6007825266697066733a2f2f60c81b6020830152565b9061291660209282815194859201610427565b0190565b908092918237016000815290565b906060610480926040815260006040820152816020820152019061044a565b60405190612954826106fd565b601982527f4163746f723a206f6e6c79206e6f6e696d6d6163756c617465000000000000006020830152565b90916129976104809360408452604084019061044a565b91602081840391015261044a565b90612a7b604051925461ffff6129c08582841661ffff169052565b6129d560208601828460101c1661ffff169052565b6129ea60408601828460201c1661ffff169052565b6129ff60608601828460301c1661ffff169052565b612a1460808601828460401c1661ffff169052565b612a2960a08601828460501c1661ffff169052565b612a3e60c08601828460601c1661ffff169052565b612a5360e08601828460701c1661ffff169052565b612a696101008601828460801c1661ffff169052565b61012085019160901c1661ffff169052565b61077d82610718565b9061077d6005612a9261077f565b938054855260018101546020860152612aad60028201612506565b6040860152612abe60038201612506565b6060860152612acf600482016129a5565b6080860152015460ff811660a0850152600881901c60ff1660c0850152601081901c60ff16151560e0850152601881901c60ff161515610100850152602081901c60ff161515610120850152602881901c61ffff1661014085015260381c6001600160a01b0316610160840152565b60405190612b4b826106fd565b60038252621ada5960ea1b6020830152565b60405190612b6a826106fd565b600282526130b360f11b6020830152565b60405190612b88826106fd565b6002825261616d60f01b6020830152565b60405190606082018281106001600160401b03821117612bfa575b604052602e82526d2d1a2a232aa233b3a3a1229b343160911b6040837f516d5a3962435452424e7767796875615836503758666d38443163376a63554d60208201520152565b612c026106bd565b612bb4565b612c1081613683565b15612d3457612c2e6003610e5083600052600d602052604060002090565b905b81516020830120612c3f61271d565b14612c6e5750610480612c6891610f1b612c576128e0565b916040519485936020850190612903565b90612903565b9050612c95612c8f612c8a83600052600d602052604060002090565b612a84565b91613683565b15612d255760e0015115612d1257612c68610480612cb1612b7b565b610f1b612cfd612cf0612cc26128e0565b93612c68612cf0612cd1612b99565b612c68612cf0612cdf6136af565b926040519c8d9b60208d0190612903565b602f60f81b815260010190565b6836b2ba30973539b7b760b91b815260090190565b612c68610480612d20612b5d565b612cb1565b50612c68610480612d20612b3e565b612d4d6002610e5083600052600d602052604060002090565b90612c30565b600090815261251a602091600d8352612d786002604083200160405193848092612470565b81519083830191822081604051612d8e81610734565b5281802014612ddd57509161048091612dd193612da96128e0565b916040519583612dc28895518092888089019101610427565b84019151809386840190610427565b0103808452018261074f565b9250505060405190612dee82610734565b815290565b600052600d6020526040600020612ebb612e0b61077f565b8254815260018301546020820152612e2560028401612506565b60408201526101606005612e3b60038601612506565b9460608401958652612e4f600482016129a5565b6080850152015460ff811660a0840152600881901c60ff1660c0840152601081901c60ff16151560e0840152601881901c60ff161515610100840152602081901c60ff161515610120840152602881901c61ffff1661014084015260381c6001600160a01b0316910152565b5180516020820120612ecb61271d565b14612ee257610480612c6891610f1b612c576128e0565b50610480612637565b600a54604051630f6266a760e01b815230600482015233602482015295986001600160a01b039793969095939493869390929091612f359160209082908c16818060448101611086565b612f436001600b5401600b55565b8015613109579889985b612f578a896133ea565b61ffff92612fd0612fc3612fb6612fa9612f9c612f8f8b8a6040612f8582845116836020860151169061313e565b920151169061313e565b8960608d0151169061313e565b8860808c0151169061313e565b8760a08b0151169061313e565b8660c08a0151169061313e565b8560e0890151169061313e565b91613004612ff9612fea6101009588878c0151169061313e565b61012097888b0151169061313e565b61ffff600a91160490565b96846000998a916130ed575b5061301961077f565b998a5260208a0152613029612637565b60408a0152613036612637565b60608a0152608089015260ff1660a0880181905260c0880152151560e0870152901515908501529015159083015261ffff166101408201526001600160a01b0383166101608201526000858152600d602052604090209061309691613263565b156130c457167f6b32c47558f5691d402acb24c91df9759c85f521416baa57906aab75eb5ae3d1600080a390565b167f30385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfe600080a390565b429a5090508981111561310257985b38613010565b50886130fc565b5061311d613118600c54613128565b600c55565b600c54988998612f4d565b906001820180921161313657565b61077d6125fe565b91909161ffff8080941691160191821161313657565b91909182516001600160401b03811161321b575b6131768161282b8454612436565b602080601f83116001146131b15750819293946000926131a65750508160011b916000199060031b1c1916179055565b01519050388061284a565b90601f198316956131c785600052602060002090565b926000905b888210613203575050836001959697106131ea57505050811b019055565b015160001960f88460031b161c19169055388080612897565b806001859682949686015181550195019301906131cc565b6132236106bd565b613168565b600091825b600a811061323a57505055565b9092602060019161ffff9081875116918560041b90811b9283911b16911916179401910161322d565b906133bc610160600561077d94845181556020850151600182015561328f604086015160028301613154565b6132a0606086015160038301613154565b6132b1608086015160048301613228565b01926132d46132c460a083015160ff1690565b855460ff191660ff909116178555565b6132fb6132e560c083015160ff1690565b855461ff00191660089190911b61ff0016178555565b61332361330b60e0830151151590565b855462ff0000191690151560101b62ff000016178555565b61334e613334610100830151151590565b855463ff000000191690151560181b63ff00000016178555565b61337b61335f610120830151151590565b855464ff00000000191690151560201b64ff0000000016178555565b6133ae61338e61014083015161ffff1690565b855466ffff0000000000191660289190911b66ffff000000000016178555565b01516001600160a01b031690565b8154670100000000000000600160d81b03191660389190911b670100000000000000600160d81b0316179055565b6001600160a01b0381169081156134e0576000838152600260205260409020546001600160a01b031661349b576001600160a01b0381166000908152600360205260409020613473919061343e8154613128565b9055613454846000526002602052604060002090565b80546001600160a01b0319166001600160a01b03909216919091179055565b60007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4565b60405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606490fd5b606460405162461bcd60e51b815260206004820152602060248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152fd5b600081815260026020526040902054613547906001600160a01b031615156108cd565b600052600d6020526040600020610480600561356161077f565b92805484526001810154602085015261357c60028201612506565b604085015261358d60038201612506565b606085015261359e600482016129a5565b6080850152015460ff811660a0840152600881901c60ff1660c0840152601081901c60ff16151560e0840152601881901c60ff161515610100840152602081901c60ff161515610120840152602881901c61ffff1661014084015260381c6001600160a01b0316610160830152565b6040519061361a826106fd565b60168252754163746f723a20746f6f206d756368206368696c647360501b6020830152565b60ff6000199116019060ff821161313657565b6040519061365f826106fd565b60158252741058dd1bdc8e881b9bdd08189bdc9b9959081e595d605a1b6020830152565b600052600d60205260ff60056040600020015460181c16806136a25790565b5060406000205442101590565b604051906136bc826106fd565b60028252617a6f60f01b6020830152565b156136d457565b60405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608490fd5b6daaeb6d7670e522a718067333cd4e803b613745575050565b604051633185c44d60e21b81523060048201526001600160a01b038316602482015290602090829060449082905afa9081156137cd575b6000916137af575b501561378d5750565b604051633b79c77360e21b81526001600160a01b039091166004820152602490fd5b6137c7915060203d8111610bd057610bc2818361074f565b38613784565b6137d561262a565b61377c565b156137e157565b60405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608490fd5b600081815260046020526040812080546001600160a01b03191690556001600160a01b03613879836123be565b167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258280a4565b600082815260046020526040902080546001600160a01b0319166001600160a01b0383161790556001600160a01b03806138d9846123be565b169116907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600080a4565b1561390b57565b60405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b6064820152608490fd5b6000828152600260205260409020546001600160a01b031615613a0057613990826123be565b9160018060a01b03908183169282851684149485156139cf575b505083156139b9575b50505090565b6139c591929350612521565b16143880806139b3565b6001600160a01b0316600090815260056020526040902091945060ff916139f6919061064a565b54169238806139aa565b60405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608490fd5b15613a6157565b60405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608490fd5b60001981019190821161313657565b90613acb836123be565b6001600160a01b038381169290918216839003613b8557613b1a613b5e92821694613af7861515613a5a565b613b008761384c565b6001600160a01b0316600090815260036020526040902090565b613b248154613ab2565b90556001600160a01b0381166000908152600360205260409020613b488154613128565b9055613454856000526002602052604060002090565b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4565b60405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608490fd5b60809060208152603260208201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60608201520190565b9081602091031261000e57516104808161038c565b6001600160a01b0391821681529116602082015260408101919091526080606082018190526104809291019061044a565b3d15613c9c573d90613c82826117fb565b91613c90604051938461074f565b82523d6000602084013e565b606090565b92909190823b15613d5b57613cd4926020926000604051809681958294630a85bd0160e11b9a8b85523360048601613c40565b03926001600160a01b03165af160009181613d2b575b50613d1d57613cf7613c71565b80519081613d185760405162461bcd60e51b815280610c8a60048201613bd8565b602001fd5b6001600160e01b0319161490565b613d4d91925060203d8111613d54575b613d45818361074f565b810190613c2b565b9038613cea565b503d613d3b565b5050505060019056fea2646970667358221220ab9ec524d5ec0b95376529ab2b14df652adf4f7cc030911d0feae1ffbb8e10c564736f6c63430008110033