Address Details
contract
0x27027a9eB4612824d383611efd112f3d860B4F4D
- Contract Name
- StarNFT
- Creator
- 0x7d6740–c9cfce at 0x5d4b29–b86180
- Balance
- 0 CELO ( )
- Locked CELO Balance
- 0.00 CELO
- Voting CELO Balance
- 0.00 CELO
- Pending Unlocked Gold
- 0.00 CELO
- Tokens
-
Fetching tokens...
- Transactions
- 0 Transactions
- Transfers
- 0 Transfers
- Gas Used
- Fetching gas used...
- Last Balance Update
- 8995289
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- StarNFT
- Optimization enabled
- false
- Compiler version
- v0.8.7+commit.e28d00a7
- EVM Version
- london
- Verified at
- 2023-03-08T16:01:47.961469Z
contracts/StarNFT.sol
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721EnumerableUpgradeable.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 StarNFT is Initializable, ContextUpgradeable, OwnableUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable, IERC721EnumerableUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable for uint256; // auto increasement tokenids using CountersUpgradeable for CountersUpgradeable.Counter; CountersUpgradeable.Counter private tokenIds; // Token name string private _name; // Token symbol string private _symbol; // Token base uri string baseURI; // logic contract address logic; // Token struct struct Token { address owner; uint256 cateId; uint256 lastBlock; } // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; // Mapping from token ID to owner address mapping (uint256 => Token) public tokenInfo; // 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; // Mapping from cate to token uri mapping (uint256 => string) public cateUri; function initialize(string memory name_, string memory symbol_) public initializer { __ERC721_init(name_, symbol_); } /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ function __ERC721_init(string memory name_, string memory symbol_) internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); __ERC165_init_unchained(); __ERC721_init_unchained(name_, symbol_); } function __ERC721_init_unchained(string memory name_, string memory symbol_) internal initializer { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC721Upgradeable).interfaceId || interfaceId == type(IERC721MetadataUpgradeable).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 = tokenInfo[tokenId].owner; 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"); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, cateUri[tokenInfo[tokenId].cateId])) : ''; } /** * @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 overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return baseURI; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = 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 { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_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 See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } function mint(address owner, uint256 _cateId) public onlyLogic returns (uint256) { tokenIds.increment(); uint256 _tokenId = tokenIds.current(); _safeMint(owner, _tokenId); tokenInfo[_tokenId].cateId = _cateId; tokenInfo[_tokenId].lastBlock = block.number; return _tokenId; } function massVerifyOwner(address owner, uint256[] memory _tokenIds) view public returns (bool) { for (uint256 i = 0 ; i < _tokenIds.length; i ++) { if (ownerOf(_tokenIds[i]) != owner) return false; } return true; } function massBurn(uint256[] memory _tokenIds) public onlyLogic { for (uint256 i = 0 ; i < _tokenIds.length; i ++) { _burn(_tokenIds[i]); } } function setCateURI(uint256 _cateId, string memory _cateUri) public virtual onlyLogic { require(bytes(_cateUri).length > 0, "uri is empty"); cateUri[_cateId] = _cateUri; } function setLogic(address _logic) public virtual onlyOwner { require(address(0) != _logic); logic = _logic; } function setBaseURI(string memory _newBaseURI) public virtual onlyOwner { baseURI = _newBaseURI; } /** * @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 Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } /** * @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 tokenInfo[tokenId].owner != 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 = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, 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; tokenInfo[tokenId].owner = to; emit Transfer(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 = ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete tokenInfo[tokenId]; emit Transfer(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(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); 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; tokenInfo[tokenId].owner = to; emit Transfer(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(ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns (bool) { if (to.isContract()) { try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } modifier onlyLogic() { require(logic == _msgSender(), "ERC721: not allowed to access"); _; } /** * @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 { if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } uint256[44] private __gap; }
/_openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _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); } uint256[49] private __gap; }
/_openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/utils/Initializable.sol) pragma solidity ^0.8.0; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To initialize the implementation contract, you can either invoke the * initializer manually, or you can include a constructor to automatically mark it as initialized when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() initializer {} * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the // contract may have been reentered. require(_initializing ? _isConstructor() : !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} modifier, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } function _isConstructor() private view returns (bool) { return !AddressUpgradeable.isContract(address(this)); } }
/_openzeppelin/contracts-upgradeable/token/ERC721/IERC721ReceiverUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 IERC721ReceiverUpgradeable { /** * @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 `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
/_openzeppelin/contracts-upgradeable/token/ERC721/IERC721Upgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165Upgradeable.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @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`, 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; }
/_openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721EnumerableUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721EnumerableUpgradeable is IERC721Upgradeable { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
/_openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721Upgradeable.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @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-upgradeable/utils/AddressUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 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 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-upgradeable/utils/ContextUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { __Context_init_unchained(); } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } uint256[50] private __gap; }
/_openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.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 CountersUpgradeable { 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-upgradeable/utils/StringsUpgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { 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-upgradeable/utils/introspection/ERC165Upgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { __ERC165_init_unchained(); } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } uint256[50] private __gap; }
/_openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
Contract ABI
[{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"approved","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"ApprovalForAll","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"operator","internalType":"address","indexed":true},{"type":"bool","name":"approved","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"approve","inputs":[{"type":"address","name":"to","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":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"cateUri","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getApproved","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[{"type":"string","name":"name_","internalType":"string"},{"type":"string","name":"symbol_","internalType":"string"}]},{"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":"nonpayable","outputs":[],"name":"massBurn","inputs":[{"type":"uint256[]","name":"_tokenIds","internalType":"uint256[]"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"massVerifyOwner","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"uint256[]","name":"_tokenIds","internalType":"uint256[]"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"mint","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"uint256","name":"_cateId","internalType":"uint256"}]},{"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":"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":"setApprovalForAll","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"bool","name":"approved","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBaseURI","inputs":[{"type":"string","name":"_newBaseURI","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setCateURI","inputs":[{"type":"uint256","name":"_cateId","internalType":"uint256"},{"type":"string","name":"_cateUri","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLogic","inputs":[{"type":"address","name":"_logic","internalType":"address"}]},{"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":"uint256","name":"","internalType":"uint256"}],"name":"tokenByIndex","inputs":[{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"uint256","name":"cateId","internalType":"uint256"},{"type":"uint256","name":"lastBlock","internalType":"uint256"}],"name":"tokenInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenOfOwnerByIndex","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"tokenURI","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","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"}]}]
Contract Creation Code
0x608060405234801561001057600080fd5b506143c1806100206000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806370a08231116100f9578063b1d7302611610097578063cc33c87511610071578063cc33c87514610513578063cd846f1114610545578063e985e9c514610575578063f2fde38b146105a5576101c4565b8063b1d73026146104ab578063b88d4fde146104c7578063c87b56dd146104e3576101c4565b80638da5cb5b116100d35780638da5cb5b1461043757806395d89b4114610455578063a22cb46514610473578063adc84d2e1461048f576101c4565b806370a08231146103e1578063715018a614610411578063718570001461041b576101c4565b806340c10f19116101665780634f69b862116101405780634f69b862146103355780634f6ccce71461036557806355f804b3146103955780636352211e146103b1576101c4565b806340c10f19146102cd57806342842e0e146102fd5780634cd88b7614610319576101c4565b8063095ea7b3116101a2578063095ea7b31461024757806318160ddd1461026357806323b872dd146102815780632f745c591461029d576101c4565b806301ffc9a7146101c957806306fdde03146101f9578063081812fc14610217575b600080fd5b6101e360048036038101906101de9190612f9f565b6105c1565b6040516101f09190613625565b60405180910390f35b6102016106a3565b60405161020e9190613640565b60405180910390f35b610231600480360381019061022c91906130ba565b610735565b60405161023e9190613587565b60405180910390f35b610261600480360381019061025c9190612f16565b6107ba565b005b61026b6108d2565b6040516102789190613922565b60405180910390f35b61029b60048036038101906102969190612da4565b6108df565b005b6102b760048036038101906102b29190612f16565b61093f565b6040516102c49190613922565b60405180910390f35b6102e760048036038101906102e29190612f16565b6109e4565b6040516102f49190613922565b60405180910390f35b61031760048036038101906103129190612da4565b610adf565b005b610333600480360381019061032e9190613042565b610aff565b005b61034f600480360381019061034a9190612e7a565b610bef565b60405161035c9190613625565b60405180910390f35b61037f600480360381019061037a91906130ba565b610c7e565b60405161038c9190613922565b60405180910390f35b6103af60048036038101906103aa9190612ff9565b610cef565b005b6103cb60048036038101906103c691906130ba565b610d85565b6040516103d89190613587565b60405180910390f35b6103fb60048036038101906103f69190612d37565b610e3a565b6040516104089190613922565b60405180910390f35b610419610ef2565b005b61043560048036038101906104309190612d37565b610f7a565b005b61043f611074565b60405161044c9190613587565b60405180910390f35b61045d61109e565b60405161046a9190613640565b60405180910390f35b61048d60048036038101906104889190612ed6565b611130565b005b6104a960048036038101906104a491906130e7565b6112b1565b005b6104c560048036038101906104c09190612f56565b6113b8565b005b6104e160048036038101906104dc9190612df7565b611495565b005b6104fd60048036038101906104f891906130ba565b6114f7565b60405161050a9190613640565b60405180910390f35b61052d600480360381019061052891906130ba565b6115bf565b60405161053c939291906135ee565b60405180910390f35b61055f600480360381019061055a91906130ba565b611609565b60405161056c9190613640565b60405180910390f35b61058f600480360381019061058a9190612d64565b6116a9565b60405161059c9190613625565b60405180910390f35b6105bf60048036038101906105ba9190612d37565b61173d565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061068c57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061069c575061069b82611835565b5b9050919050565b6060609880546106b290613b88565b80601f01602080910402602001604051908101604052809291908181526020018280546106de90613b88565b801561072b5780601f106107005761010080835404028352916020019161072b565b820191906000526020600020905b81548152906001019060200180831161070e57829003601f168201915b5050505050905090565b60006107408261189f565b61077f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610776906137e2565b60405180910390fd5b60a2600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107c582610d85565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610836576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082d90613882565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661085561190e565b73ffffffffffffffffffffffffffffffffffffffff16148061088457506108838161087e61190e565b6116a9565b5b6108c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ba90613742565b60405180910390fd5b6108cd8383611916565b505050565b6000609e80549050905090565b6108f06108ea61190e565b826119cf565b61092f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610926906138a2565b60405180910390fd5b61093a838383611aad565b505050565b600061094a83610e3a565b821061098b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098290613662565b60405180910390fd5b609c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60006109ee61190e565b73ffffffffffffffffffffffffffffffffffffffff16609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7490613902565b60405180910390fd5b610a876097611d0c565b6000610a936097611d22565b9050610a9f8482611d30565b8260a06000838152602001908152602001600020600101819055504360a06000838152602001908152602001600020600201819055508091505092915050565b610afa83838360405180602001604052806000815250611495565b505050565b600060019054906101000a900460ff16610b275760008054906101000a900460ff1615610b30565b610b2f611d4e565b5b610b6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b66906137a2565b60405180910390fd5b60008060019054906101000a900460ff161590508015610bbf576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b610bc98383611d5f565b8015610bea5760008060016101000a81548160ff0219169083151502179055505b505050565b600080600090505b8251811015610c72578373ffffffffffffffffffffffffffffffffffffffff16610c3a848381518110610c2d57610c2c613cc1565b5b6020026020010151610d85565b73ffffffffffffffffffffffffffffffffffffffff1614610c5f576000915050610c78565b8080610c6a90613beb565b915050610bf7565b50600190505b92915050565b6000610c886108d2565b8210610cc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc0906138c2565b60405180910390fd5b609e8281548110610cdd57610cdc613cc1565b5b90600052602060002001549050919050565b610cf761190e565b73ffffffffffffffffffffffffffffffffffffffff16610d15611074565b73ffffffffffffffffffffffffffffffffffffffff1614610d6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6290613822565b60405180910390fd5b80609a9080519060200190610d81929190612aad565b5050565b60008060a0600084815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2890613782565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610eab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea290613762565b60405180910390fd5b60a160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610efa61190e565b73ffffffffffffffffffffffffffffffffffffffff16610f18611074565b73ffffffffffffffffffffffffffffffffffffffff1614610f6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6590613822565b60405180910390fd5b610f786000611e67565b565b610f8261190e565b73ffffffffffffffffffffffffffffffffffffffff16610fa0611074565b73ffffffffffffffffffffffffffffffffffffffff1614610ff6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fed90613822565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff16141561103057600080fd5b80609b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060609980546110ad90613b88565b80601f01602080910402602001604051908101604052809291908181526020018280546110d990613b88565b80156111265780601f106110fb57610100808354040283529160200191611126565b820191906000526020600020905b81548152906001019060200180831161110957829003601f168201915b5050505050905090565b61113861190e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119d90613702565b60405180910390fd5b8060a360006111b361190e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661126061190e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516112a59190613625565b60405180910390a35050565b6112b961190e565b73ffffffffffffffffffffffffffffffffffffffff16609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611348576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133f90613902565b60405180910390fd5b600081511161138c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138390613802565b60405180910390fd5b8060a4600084815260200190815260200160002090805190602001906113b3929190612aad565b505050565b6113c061190e565b73ffffffffffffffffffffffffffffffffffffffff16609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461144f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144690613902565b60405180910390fd5b60005b81518110156114915761147e82828151811061147157611470613cc1565b5b6020026020010151611f2d565b808061148990613beb565b915050611452565b5050565b6114a66114a061190e565b836119cf565b6114e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114dc906138a2565b60405180910390fd5b6114f184848484612055565b50505050565b60606115028261189f565b611541576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153890613862565b60405180910390fd5b6000609a805461155090613b88565b90501161156c57604051806020016040528060008152506115b8565b609a60a4600060a060008681526020019081526020016000206001015481526020019081526020016000206040516020016115a8929190613563565b6040516020818303038152906040525b9050919050565b60a06020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b60a4602052806000526040600020600091509050805461162890613b88565b80601f016020809104026020016040519081016040528092919081815260200182805461165490613b88565b80156116a15780601f10611676576101008083540402835291602001916116a1565b820191906000526020600020905b81548152906001019060200180831161168457829003601f168201915b505050505081565b600060a360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61174561190e565b73ffffffffffffffffffffffffffffffffffffffff16611763611074565b73ffffffffffffffffffffffffffffffffffffffff16146117b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b090613822565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611829576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611820906136a2565b60405180910390fd5b61183281611e67565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff1660a0600084815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b8160a2600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661198983610d85565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006119da8261189f565b611a19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1090613722565b60405180910390fd5b6000611a2483610d85565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611a9357508373ffffffffffffffffffffffffffffffffffffffff16611a7b84610735565b73ffffffffffffffffffffffffffffffffffffffff16145b80611aa45750611aa381856116a9565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611acd82610d85565b73ffffffffffffffffffffffffffffffffffffffff1614611b23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1a90613842565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8a906136e2565b60405180910390fd5b611b9e8383836120b1565b611ba9600082611916565b600160a160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611bf99190613a9e565b92505081905550600160a160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c509190613a48565b925050819055508160a0600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6001816000016000828254019250508190555050565b600081600001549050919050565b611d4a8282604051806020016040528060008152506121ba565b5050565b6000611d5930612215565b15905090565b600060019054906101000a900460ff16611d875760008054906101000a900460ff1615611d90565b611d8f611d4e565b5b611dcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc6906137a2565b60405180910390fd5b60008060019054906101000a900460ff161590508015611e1f576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611e27612228565b611e2f612279565b611e376122da565b611e41838361232b565b8015611e625760008060016101000a81548160ff0219169083151502179055505b505050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000611f3882610d85565b9050611f46816000846120b1565b611f51600083611916565b600160a160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fa19190613a9e565b9250508190555060a06000838152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560018201600090556002820160009055505081600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b612060848484611aad565b61206c8484848461243f565b6120ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a290613682565b60405180910390fd5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156120f4576120ef816125d6565b612133565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461213257612131838261261f565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612176576121718161278c565b6121b5565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146121b4576121b3828261285d565b5b5b505050565b6121c483836128dc565b6121d1600084848461243f565b612210576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220790613682565b60405180910390fd5b505050565b600080823b905060008111915050919050565b600060019054906101000a900460ff16612277576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226e906138e2565b60405180910390fd5b565b600060019054906101000a900460ff166122c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122bf906138e2565b60405180910390fd5b6122d86122d361190e565b611e67565b565b600060019054906101000a900460ff16612329576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612320906138e2565b60405180910390fd5b565b600060019054906101000a900460ff166123535760008054906101000a900460ff161561235c565b61235b611d4e565b5b61239b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612392906137a2565b60405180910390fd5b60008060019054906101000a900460ff1615905080156123eb576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8260989080519060200190612401929190612aad565b508160999080519060200190612418929190612aad565b50801561243a5760008060016101000a81548160ff0219169083151502179055505b505050565b60006124608473ffffffffffffffffffffffffffffffffffffffff16612215565b156125c9578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261248961190e565b8786866040518563ffffffff1660e01b81526004016124ab94939291906135a2565b602060405180830381600087803b1580156124c557600080fd5b505af19250505080156124f657506040513d601f19601f820116820180604052508101906124f39190612fcc565b60015b612579573d8060008114612526576040519150601f19603f3d011682016040523d82523d6000602084013e61252b565b606091505b50600081511415612571576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256890613682565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506125ce565b600190505b949350505050565b609e80549050609f600083815260200190815260200160002081905550609e81908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161262c84610e3a565b6126369190613a9e565b90506000609d600084815260200190815260200160002054905081811461271b576000609c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080609c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000208190555081609d600083815260200190815260200160002081905550505b609d600084815260200190815260200160002060009055609c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001609e805490506127a09190613a9e565b90506000609f60008481526020019081526020016000205490506000609e83815481106127d0576127cf613cc1565b5b9060005260206000200154905080609e83815481106127f2576127f1613cc1565b5b906000526020600020018190555081609f600083815260200190815260200160002081905550609f600085815260200190815260200160002060009055609e80548061284157612840613c92565b5b6001900381819060005260206000200160009055905550505050565b600061286883610e3a565b905081609c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000208190555080609d600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561294c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612943906137c2565b60405180910390fd5b6129558161189f565b15612995576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298c906136c2565b60405180910390fd5b6129a1600083836120b1565b600160a160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129f19190613a48565b925050819055508160a0600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b828054612ab990613b88565b90600052602060002090601f016020900481019282612adb5760008555612b22565b82601f10612af457805160ff1916838001178555612b22565b82800160010185558215612b22579182015b82811115612b21578251825591602001919060010190612b06565b5b509050612b2f9190612b33565b5090565b5b80821115612b4c576000816000905550600101612b34565b5090565b6000612b63612b5e84613962565b61393d565b90508083825260208201905082856020860282011115612b8657612b85613d24565b5b60005b85811015612bb65781612b9c8882612d22565b845260208401935060208301925050600181019050612b89565b5050509392505050565b6000612bd3612bce8461398e565b61393d565b905082815260208101848484011115612bef57612bee613d29565b5b612bfa848285613b46565b509392505050565b6000612c15612c10846139bf565b61393d565b905082815260208101848484011115612c3157612c30613d29565b5b612c3c848285613b46565b509392505050565b600081359050612c538161432f565b92915050565b600082601f830112612c6e57612c6d613d1f565b5b8135612c7e848260208601612b50565b91505092915050565b600081359050612c9681614346565b92915050565b600081359050612cab8161435d565b92915050565b600081519050612cc08161435d565b92915050565b600082601f830112612cdb57612cda613d1f565b5b8135612ceb848260208601612bc0565b91505092915050565b600082601f830112612d0957612d08613d1f565b5b8135612d19848260208601612c02565b91505092915050565b600081359050612d3181614374565b92915050565b600060208284031215612d4d57612d4c613d33565b5b6000612d5b84828501612c44565b91505092915050565b60008060408385031215612d7b57612d7a613d33565b5b6000612d8985828601612c44565b9250506020612d9a85828601612c44565b9150509250929050565b600080600060608486031215612dbd57612dbc613d33565b5b6000612dcb86828701612c44565b9350506020612ddc86828701612c44565b9250506040612ded86828701612d22565b9150509250925092565b60008060008060808587031215612e1157612e10613d33565b5b6000612e1f87828801612c44565b9450506020612e3087828801612c44565b9350506040612e4187828801612d22565b925050606085013567ffffffffffffffff811115612e6257612e61613d2e565b5b612e6e87828801612cc6565b91505092959194509250565b60008060408385031215612e9157612e90613d33565b5b6000612e9f85828601612c44565b925050602083013567ffffffffffffffff811115612ec057612ebf613d2e565b5b612ecc85828601612c59565b9150509250929050565b60008060408385031215612eed57612eec613d33565b5b6000612efb85828601612c44565b9250506020612f0c85828601612c87565b9150509250929050565b60008060408385031215612f2d57612f2c613d33565b5b6000612f3b85828601612c44565b9250506020612f4c85828601612d22565b9150509250929050565b600060208284031215612f6c57612f6b613d33565b5b600082013567ffffffffffffffff811115612f8a57612f89613d2e565b5b612f9684828501612c59565b91505092915050565b600060208284031215612fb557612fb4613d33565b5b6000612fc384828501612c9c565b91505092915050565b600060208284031215612fe257612fe1613d33565b5b6000612ff084828501612cb1565b91505092915050565b60006020828403121561300f5761300e613d33565b5b600082013567ffffffffffffffff81111561302d5761302c613d2e565b5b61303984828501612cf4565b91505092915050565b6000806040838503121561305957613058613d33565b5b600083013567ffffffffffffffff81111561307757613076613d2e565b5b61308385828601612cf4565b925050602083013567ffffffffffffffff8111156130a4576130a3613d2e565b5b6130b085828601612cf4565b9150509250929050565b6000602082840312156130d0576130cf613d33565b5b60006130de84828501612d22565b91505092915050565b600080604083850312156130fe576130fd613d33565b5b600061310c85828601612d22565b925050602083013567ffffffffffffffff81111561312d5761312c613d2e565b5b61313985828601612cf4565b9150509250929050565b61314c81613ad2565b82525050565b61315b81613ae4565b82525050565b600061316c82613a05565b6131768185613a1b565b9350613186818560208601613b55565b61318f81613d38565b840191505092915050565b60006131a582613a10565b6131af8185613a2c565b93506131bf818560208601613b55565b6131c881613d38565b840191505092915050565b600081546131e081613b88565b6131ea8186613a3d565b94506001821660008114613205576001811461321657613249565b60ff19831686528186019350613249565b61321f856139f0565b60005b8381101561324157815481890152600182019150602081019050613222565b838801955050505b50505092915050565b600061325f602b83613a2c565b915061326a82613d49565b604082019050919050565b6000613282603283613a2c565b915061328d82613d98565b604082019050919050565b60006132a5602683613a2c565b91506132b082613de7565b604082019050919050565b60006132c8601c83613a2c565b91506132d382613e36565b602082019050919050565b60006132eb602483613a2c565b91506132f682613e5f565b604082019050919050565b600061330e601983613a2c565b915061331982613eae565b602082019050919050565b6000613331602c83613a2c565b915061333c82613ed7565b604082019050919050565b6000613354603883613a2c565b915061335f82613f26565b604082019050919050565b6000613377602a83613a2c565b915061338282613f75565b604082019050919050565b600061339a602983613a2c565b91506133a582613fc4565b604082019050919050565b60006133bd602e83613a2c565b91506133c882614013565b604082019050919050565b60006133e0602083613a2c565b91506133eb82614062565b602082019050919050565b6000613403602c83613a2c565b915061340e8261408b565b604082019050919050565b6000613426600c83613a2c565b9150613431826140da565b602082019050919050565b6000613449602083613a2c565b915061345482614103565b602082019050919050565b600061346c602983613a2c565b91506134778261412c565b604082019050919050565b600061348f602f83613a2c565b915061349a8261417b565b604082019050919050565b60006134b2602183613a2c565b91506134bd826141ca565b604082019050919050565b60006134d5603183613a2c565b91506134e082614219565b604082019050919050565b60006134f8602c83613a2c565b915061350382614268565b604082019050919050565b600061351b602b83613a2c565b9150613526826142b7565b604082019050919050565b600061353e601d83613a2c565b915061354982614306565b602082019050919050565b61355d81613b3c565b82525050565b600061356f82856131d3565b915061357b82846131d3565b91508190509392505050565b600060208201905061359c6000830184613143565b92915050565b60006080820190506135b76000830187613143565b6135c46020830186613143565b6135d16040830185613554565b81810360608301526135e38184613161565b905095945050505050565b60006060820190506136036000830186613143565b6136106020830185613554565b61361d6040830184613554565b949350505050565b600060208201905061363a6000830184613152565b92915050565b6000602082019050818103600083015261365a818461319a565b905092915050565b6000602082019050818103600083015261367b81613252565b9050919050565b6000602082019050818103600083015261369b81613275565b9050919050565b600060208201905081810360008301526136bb81613298565b9050919050565b600060208201905081810360008301526136db816132bb565b9050919050565b600060208201905081810360008301526136fb816132de565b9050919050565b6000602082019050818103600083015261371b81613301565b9050919050565b6000602082019050818103600083015261373b81613324565b9050919050565b6000602082019050818103600083015261375b81613347565b9050919050565b6000602082019050818103600083015261377b8161336a565b9050919050565b6000602082019050818103600083015261379b8161338d565b9050919050565b600060208201905081810360008301526137bb816133b0565b9050919050565b600060208201905081810360008301526137db816133d3565b9050919050565b600060208201905081810360008301526137fb816133f6565b9050919050565b6000602082019050818103600083015261381b81613419565b9050919050565b6000602082019050818103600083015261383b8161343c565b9050919050565b6000602082019050818103600083015261385b8161345f565b9050919050565b6000602082019050818103600083015261387b81613482565b9050919050565b6000602082019050818103600083015261389b816134a5565b9050919050565b600060208201905081810360008301526138bb816134c8565b9050919050565b600060208201905081810360008301526138db816134eb565b9050919050565b600060208201905081810360008301526138fb8161350e565b9050919050565b6000602082019050818103600083015261391b81613531565b9050919050565b60006020820190506139376000830184613554565b92915050565b6000613947613958565b90506139538282613bba565b919050565b6000604051905090565b600067ffffffffffffffff82111561397d5761397c613cf0565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156139a9576139a8613cf0565b5b6139b282613d38565b9050602081019050919050565b600067ffffffffffffffff8211156139da576139d9613cf0565b5b6139e382613d38565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613a5382613b3c565b9150613a5e83613b3c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613a9357613a92613c34565b5b828201905092915050565b6000613aa982613b3c565b9150613ab483613b3c565b925082821015613ac757613ac6613c34565b5b828203905092915050565b6000613add82613b1c565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613b73578082015181840152602081019050613b58565b83811115613b82576000848401525b50505050565b60006002820490506001821680613ba057607f821691505b60208210811415613bb457613bb3613c63565b5b50919050565b613bc382613d38565b810181811067ffffffffffffffff82111715613be257613be1613cf0565b5b80604052505050565b6000613bf682613b3c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613c2957613c28613c34565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f75726920697320656d7074790000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b7f4552433732313a206e6f7420616c6c6f77656420746f20616363657373000000600082015250565b61433881613ad2565b811461434357600080fd5b50565b61434f81613ae4565b811461435a57600080fd5b50565b61436681613af0565b811461437157600080fd5b50565b61437d81613b3c565b811461438857600080fd5b5056fea26469706673582212206d1065d746336d59a10e7e7c8237d3df77aeeb003be8194d06e667339076727164736f6c63430008070033
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c806370a08231116100f9578063b1d7302611610097578063cc33c87511610071578063cc33c87514610513578063cd846f1114610545578063e985e9c514610575578063f2fde38b146105a5576101c4565b8063b1d73026146104ab578063b88d4fde146104c7578063c87b56dd146104e3576101c4565b80638da5cb5b116100d35780638da5cb5b1461043757806395d89b4114610455578063a22cb46514610473578063adc84d2e1461048f576101c4565b806370a08231146103e1578063715018a614610411578063718570001461041b576101c4565b806340c10f19116101665780634f69b862116101405780634f69b862146103355780634f6ccce71461036557806355f804b3146103955780636352211e146103b1576101c4565b806340c10f19146102cd57806342842e0e146102fd5780634cd88b7614610319576101c4565b8063095ea7b3116101a2578063095ea7b31461024757806318160ddd1461026357806323b872dd146102815780632f745c591461029d576101c4565b806301ffc9a7146101c957806306fdde03146101f9578063081812fc14610217575b600080fd5b6101e360048036038101906101de9190612f9f565b6105c1565b6040516101f09190613625565b60405180910390f35b6102016106a3565b60405161020e9190613640565b60405180910390f35b610231600480360381019061022c91906130ba565b610735565b60405161023e9190613587565b60405180910390f35b610261600480360381019061025c9190612f16565b6107ba565b005b61026b6108d2565b6040516102789190613922565b60405180910390f35b61029b60048036038101906102969190612da4565b6108df565b005b6102b760048036038101906102b29190612f16565b61093f565b6040516102c49190613922565b60405180910390f35b6102e760048036038101906102e29190612f16565b6109e4565b6040516102f49190613922565b60405180910390f35b61031760048036038101906103129190612da4565b610adf565b005b610333600480360381019061032e9190613042565b610aff565b005b61034f600480360381019061034a9190612e7a565b610bef565b60405161035c9190613625565b60405180910390f35b61037f600480360381019061037a91906130ba565b610c7e565b60405161038c9190613922565b60405180910390f35b6103af60048036038101906103aa9190612ff9565b610cef565b005b6103cb60048036038101906103c691906130ba565b610d85565b6040516103d89190613587565b60405180910390f35b6103fb60048036038101906103f69190612d37565b610e3a565b6040516104089190613922565b60405180910390f35b610419610ef2565b005b61043560048036038101906104309190612d37565b610f7a565b005b61043f611074565b60405161044c9190613587565b60405180910390f35b61045d61109e565b60405161046a9190613640565b60405180910390f35b61048d60048036038101906104889190612ed6565b611130565b005b6104a960048036038101906104a491906130e7565b6112b1565b005b6104c560048036038101906104c09190612f56565b6113b8565b005b6104e160048036038101906104dc9190612df7565b611495565b005b6104fd60048036038101906104f891906130ba565b6114f7565b60405161050a9190613640565b60405180910390f35b61052d600480360381019061052891906130ba565b6115bf565b60405161053c939291906135ee565b60405180910390f35b61055f600480360381019061055a91906130ba565b611609565b60405161056c9190613640565b60405180910390f35b61058f600480360381019061058a9190612d64565b6116a9565b60405161059c9190613625565b60405180910390f35b6105bf60048036038101906105ba9190612d37565b61173d565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061068c57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061069c575061069b82611835565b5b9050919050565b6060609880546106b290613b88565b80601f01602080910402602001604051908101604052809291908181526020018280546106de90613b88565b801561072b5780601f106107005761010080835404028352916020019161072b565b820191906000526020600020905b81548152906001019060200180831161070e57829003601f168201915b5050505050905090565b60006107408261189f565b61077f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610776906137e2565b60405180910390fd5b60a2600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107c582610d85565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610836576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082d90613882565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661085561190e565b73ffffffffffffffffffffffffffffffffffffffff16148061088457506108838161087e61190e565b6116a9565b5b6108c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ba90613742565b60405180910390fd5b6108cd8383611916565b505050565b6000609e80549050905090565b6108f06108ea61190e565b826119cf565b61092f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610926906138a2565b60405180910390fd5b61093a838383611aad565b505050565b600061094a83610e3a565b821061098b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161098290613662565b60405180910390fd5b609c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b60006109ee61190e565b73ffffffffffffffffffffffffffffffffffffffff16609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a7d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7490613902565b60405180910390fd5b610a876097611d0c565b6000610a936097611d22565b9050610a9f8482611d30565b8260a06000838152602001908152602001600020600101819055504360a06000838152602001908152602001600020600201819055508091505092915050565b610afa83838360405180602001604052806000815250611495565b505050565b600060019054906101000a900460ff16610b275760008054906101000a900460ff1615610b30565b610b2f611d4e565b5b610b6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b66906137a2565b60405180910390fd5b60008060019054906101000a900460ff161590508015610bbf576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b610bc98383611d5f565b8015610bea5760008060016101000a81548160ff0219169083151502179055505b505050565b600080600090505b8251811015610c72578373ffffffffffffffffffffffffffffffffffffffff16610c3a848381518110610c2d57610c2c613cc1565b5b6020026020010151610d85565b73ffffffffffffffffffffffffffffffffffffffff1614610c5f576000915050610c78565b8080610c6a90613beb565b915050610bf7565b50600190505b92915050565b6000610c886108d2565b8210610cc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc0906138c2565b60405180910390fd5b609e8281548110610cdd57610cdc613cc1565b5b90600052602060002001549050919050565b610cf761190e565b73ffffffffffffffffffffffffffffffffffffffff16610d15611074565b73ffffffffffffffffffffffffffffffffffffffff1614610d6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d6290613822565b60405180910390fd5b80609a9080519060200190610d81929190612aad565b5050565b60008060a0600084815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2890613782565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610eab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea290613762565b60405180910390fd5b60a160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610efa61190e565b73ffffffffffffffffffffffffffffffffffffffff16610f18611074565b73ffffffffffffffffffffffffffffffffffffffff1614610f6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6590613822565b60405180910390fd5b610f786000611e67565b565b610f8261190e565b73ffffffffffffffffffffffffffffffffffffffff16610fa0611074565b73ffffffffffffffffffffffffffffffffffffffff1614610ff6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fed90613822565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff16141561103057600080fd5b80609b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060609980546110ad90613b88565b80601f01602080910402602001604051908101604052809291908181526020018280546110d990613b88565b80156111265780601f106110fb57610100808354040283529160200191611126565b820191906000526020600020905b81548152906001019060200180831161110957829003601f168201915b5050505050905090565b61113861190e565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119d90613702565b60405180910390fd5b8060a360006111b361190e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661126061190e565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516112a59190613625565b60405180910390a35050565b6112b961190e565b73ffffffffffffffffffffffffffffffffffffffff16609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611348576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133f90613902565b60405180910390fd5b600081511161138c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138390613802565b60405180910390fd5b8060a4600084815260200190815260200160002090805190602001906113b3929190612aad565b505050565b6113c061190e565b73ffffffffffffffffffffffffffffffffffffffff16609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461144f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144690613902565b60405180910390fd5b60005b81518110156114915761147e82828151811061147157611470613cc1565b5b6020026020010151611f2d565b808061148990613beb565b915050611452565b5050565b6114a66114a061190e565b836119cf565b6114e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114dc906138a2565b60405180910390fd5b6114f184848484612055565b50505050565b60606115028261189f565b611541576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153890613862565b60405180910390fd5b6000609a805461155090613b88565b90501161156c57604051806020016040528060008152506115b8565b609a60a4600060a060008681526020019081526020016000206001015481526020019081526020016000206040516020016115a8929190613563565b6040516020818303038152906040525b9050919050565b60a06020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154905083565b60a4602052806000526040600020600091509050805461162890613b88565b80601f016020809104026020016040519081016040528092919081815260200182805461165490613b88565b80156116a15780601f10611676576101008083540402835291602001916116a1565b820191906000526020600020905b81548152906001019060200180831161168457829003601f168201915b505050505081565b600060a360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61174561190e565b73ffffffffffffffffffffffffffffffffffffffff16611763611074565b73ffffffffffffffffffffffffffffffffffffffff16146117b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b090613822565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611829576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611820906136a2565b60405180910390fd5b61183281611e67565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff1660a0600084815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b8160a2600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661198983610d85565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006119da8261189f565b611a19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1090613722565b60405180910390fd5b6000611a2483610d85565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611a9357508373ffffffffffffffffffffffffffffffffffffffff16611a7b84610735565b73ffffffffffffffffffffffffffffffffffffffff16145b80611aa45750611aa381856116a9565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611acd82610d85565b73ffffffffffffffffffffffffffffffffffffffff1614611b23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1a90613842565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8a906136e2565b60405180910390fd5b611b9e8383836120b1565b611ba9600082611916565b600160a160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611bf99190613a9e565b92505081905550600160a160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611c509190613a48565b925050819055508160a0600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6001816000016000828254019250508190555050565b600081600001549050919050565b611d4a8282604051806020016040528060008152506121ba565b5050565b6000611d5930612215565b15905090565b600060019054906101000a900460ff16611d875760008054906101000a900460ff1615611d90565b611d8f611d4e565b5b611dcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dc6906137a2565b60405180910390fd5b60008060019054906101000a900460ff161590508015611e1f576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611e27612228565b611e2f612279565b611e376122da565b611e41838361232b565b8015611e625760008060016101000a81548160ff0219169083151502179055505b505050565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000611f3882610d85565b9050611f46816000846120b1565b611f51600083611916565b600160a160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fa19190613a9e565b9250508190555060a06000838152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905560018201600090556002820160009055505081600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b612060848484611aad565b61206c8484848461243f565b6120ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120a290613682565b60405180910390fd5b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156120f4576120ef816125d6565b612133565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461213257612131838261261f565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612176576121718161278c565b6121b5565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146121b4576121b3828261285d565b5b5b505050565b6121c483836128dc565b6121d1600084848461243f565b612210576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220790613682565b60405180910390fd5b505050565b600080823b905060008111915050919050565b600060019054906101000a900460ff16612277576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226e906138e2565b60405180910390fd5b565b600060019054906101000a900460ff166122c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122bf906138e2565b60405180910390fd5b6122d86122d361190e565b611e67565b565b600060019054906101000a900460ff16612329576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612320906138e2565b60405180910390fd5b565b600060019054906101000a900460ff166123535760008054906101000a900460ff161561235c565b61235b611d4e565b5b61239b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612392906137a2565b60405180910390fd5b60008060019054906101000a900460ff1615905080156123eb576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b8260989080519060200190612401929190612aad565b508160999080519060200190612418929190612aad565b50801561243a5760008060016101000a81548160ff0219169083151502179055505b505050565b60006124608473ffffffffffffffffffffffffffffffffffffffff16612215565b156125c9578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261248961190e565b8786866040518563ffffffff1660e01b81526004016124ab94939291906135a2565b602060405180830381600087803b1580156124c557600080fd5b505af19250505080156124f657506040513d601f19601f820116820180604052508101906124f39190612fcc565b60015b612579573d8060008114612526576040519150601f19603f3d011682016040523d82523d6000602084013e61252b565b606091505b50600081511415612571576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256890613682565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506125ce565b600190505b949350505050565b609e80549050609f600083815260200190815260200160002081905550609e81908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161262c84610e3a565b6126369190613a9e565b90506000609d600084815260200190815260200160002054905081811461271b576000609c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080609c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000208190555081609d600083815260200190815260200160002081905550505b609d600084815260200190815260200160002060009055609c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001609e805490506127a09190613a9e565b90506000609f60008481526020019081526020016000205490506000609e83815481106127d0576127cf613cc1565b5b9060005260206000200154905080609e83815481106127f2576127f1613cc1565b5b906000526020600020018190555081609f600083815260200190815260200160002081905550609f600085815260200190815260200160002060009055609e80548061284157612840613c92565b5b6001900381819060005260206000200160009055905550505050565b600061286883610e3a565b905081609c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000208190555080609d600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561294c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612943906137c2565b60405180910390fd5b6129558161189f565b15612995576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161298c906136c2565b60405180910390fd5b6129a1600083836120b1565b600160a160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129f19190613a48565b925050819055508160a0600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b828054612ab990613b88565b90600052602060002090601f016020900481019282612adb5760008555612b22565b82601f10612af457805160ff1916838001178555612b22565b82800160010185558215612b22579182015b82811115612b21578251825591602001919060010190612b06565b5b509050612b2f9190612b33565b5090565b5b80821115612b4c576000816000905550600101612b34565b5090565b6000612b63612b5e84613962565b61393d565b90508083825260208201905082856020860282011115612b8657612b85613d24565b5b60005b85811015612bb65781612b9c8882612d22565b845260208401935060208301925050600181019050612b89565b5050509392505050565b6000612bd3612bce8461398e565b61393d565b905082815260208101848484011115612bef57612bee613d29565b5b612bfa848285613b46565b509392505050565b6000612c15612c10846139bf565b61393d565b905082815260208101848484011115612c3157612c30613d29565b5b612c3c848285613b46565b509392505050565b600081359050612c538161432f565b92915050565b600082601f830112612c6e57612c6d613d1f565b5b8135612c7e848260208601612b50565b91505092915050565b600081359050612c9681614346565b92915050565b600081359050612cab8161435d565b92915050565b600081519050612cc08161435d565b92915050565b600082601f830112612cdb57612cda613d1f565b5b8135612ceb848260208601612bc0565b91505092915050565b600082601f830112612d0957612d08613d1f565b5b8135612d19848260208601612c02565b91505092915050565b600081359050612d3181614374565b92915050565b600060208284031215612d4d57612d4c613d33565b5b6000612d5b84828501612c44565b91505092915050565b60008060408385031215612d7b57612d7a613d33565b5b6000612d8985828601612c44565b9250506020612d9a85828601612c44565b9150509250929050565b600080600060608486031215612dbd57612dbc613d33565b5b6000612dcb86828701612c44565b9350506020612ddc86828701612c44565b9250506040612ded86828701612d22565b9150509250925092565b60008060008060808587031215612e1157612e10613d33565b5b6000612e1f87828801612c44565b9450506020612e3087828801612c44565b9350506040612e4187828801612d22565b925050606085013567ffffffffffffffff811115612e6257612e61613d2e565b5b612e6e87828801612cc6565b91505092959194509250565b60008060408385031215612e9157612e90613d33565b5b6000612e9f85828601612c44565b925050602083013567ffffffffffffffff811115612ec057612ebf613d2e565b5b612ecc85828601612c59565b9150509250929050565b60008060408385031215612eed57612eec613d33565b5b6000612efb85828601612c44565b9250506020612f0c85828601612c87565b9150509250929050565b60008060408385031215612f2d57612f2c613d33565b5b6000612f3b85828601612c44565b9250506020612f4c85828601612d22565b9150509250929050565b600060208284031215612f6c57612f6b613d33565b5b600082013567ffffffffffffffff811115612f8a57612f89613d2e565b5b612f9684828501612c59565b91505092915050565b600060208284031215612fb557612fb4613d33565b5b6000612fc384828501612c9c565b91505092915050565b600060208284031215612fe257612fe1613d33565b5b6000612ff084828501612cb1565b91505092915050565b60006020828403121561300f5761300e613d33565b5b600082013567ffffffffffffffff81111561302d5761302c613d2e565b5b61303984828501612cf4565b91505092915050565b6000806040838503121561305957613058613d33565b5b600083013567ffffffffffffffff81111561307757613076613d2e565b5b61308385828601612cf4565b925050602083013567ffffffffffffffff8111156130a4576130a3613d2e565b5b6130b085828601612cf4565b9150509250929050565b6000602082840312156130d0576130cf613d33565b5b60006130de84828501612d22565b91505092915050565b600080604083850312156130fe576130fd613d33565b5b600061310c85828601612d22565b925050602083013567ffffffffffffffff81111561312d5761312c613d2e565b5b61313985828601612cf4565b9150509250929050565b61314c81613ad2565b82525050565b61315b81613ae4565b82525050565b600061316c82613a05565b6131768185613a1b565b9350613186818560208601613b55565b61318f81613d38565b840191505092915050565b60006131a582613a10565b6131af8185613a2c565b93506131bf818560208601613b55565b6131c881613d38565b840191505092915050565b600081546131e081613b88565b6131ea8186613a3d565b94506001821660008114613205576001811461321657613249565b60ff19831686528186019350613249565b61321f856139f0565b60005b8381101561324157815481890152600182019150602081019050613222565b838801955050505b50505092915050565b600061325f602b83613a2c565b915061326a82613d49565b604082019050919050565b6000613282603283613a2c565b915061328d82613d98565b604082019050919050565b60006132a5602683613a2c565b91506132b082613de7565b604082019050919050565b60006132c8601c83613a2c565b91506132d382613e36565b602082019050919050565b60006132eb602483613a2c565b91506132f682613e5f565b604082019050919050565b600061330e601983613a2c565b915061331982613eae565b602082019050919050565b6000613331602c83613a2c565b915061333c82613ed7565b604082019050919050565b6000613354603883613a2c565b915061335f82613f26565b604082019050919050565b6000613377602a83613a2c565b915061338282613f75565b604082019050919050565b600061339a602983613a2c565b91506133a582613fc4565b604082019050919050565b60006133bd602e83613a2c565b91506133c882614013565b604082019050919050565b60006133e0602083613a2c565b91506133eb82614062565b602082019050919050565b6000613403602c83613a2c565b915061340e8261408b565b604082019050919050565b6000613426600c83613a2c565b9150613431826140da565b602082019050919050565b6000613449602083613a2c565b915061345482614103565b602082019050919050565b600061346c602983613a2c565b91506134778261412c565b604082019050919050565b600061348f602f83613a2c565b915061349a8261417b565b604082019050919050565b60006134b2602183613a2c565b91506134bd826141ca565b604082019050919050565b60006134d5603183613a2c565b91506134e082614219565b604082019050919050565b60006134f8602c83613a2c565b915061350382614268565b604082019050919050565b600061351b602b83613a2c565b9150613526826142b7565b604082019050919050565b600061353e601d83613a2c565b915061354982614306565b602082019050919050565b61355d81613b3c565b82525050565b600061356f82856131d3565b915061357b82846131d3565b91508190509392505050565b600060208201905061359c6000830184613143565b92915050565b60006080820190506135b76000830187613143565b6135c46020830186613143565b6135d16040830185613554565b81810360608301526135e38184613161565b905095945050505050565b60006060820190506136036000830186613143565b6136106020830185613554565b61361d6040830184613554565b949350505050565b600060208201905061363a6000830184613152565b92915050565b6000602082019050818103600083015261365a818461319a565b905092915050565b6000602082019050818103600083015261367b81613252565b9050919050565b6000602082019050818103600083015261369b81613275565b9050919050565b600060208201905081810360008301526136bb81613298565b9050919050565b600060208201905081810360008301526136db816132bb565b9050919050565b600060208201905081810360008301526136fb816132de565b9050919050565b6000602082019050818103600083015261371b81613301565b9050919050565b6000602082019050818103600083015261373b81613324565b9050919050565b6000602082019050818103600083015261375b81613347565b9050919050565b6000602082019050818103600083015261377b8161336a565b9050919050565b6000602082019050818103600083015261379b8161338d565b9050919050565b600060208201905081810360008301526137bb816133b0565b9050919050565b600060208201905081810360008301526137db816133d3565b9050919050565b600060208201905081810360008301526137fb816133f6565b9050919050565b6000602082019050818103600083015261381b81613419565b9050919050565b6000602082019050818103600083015261383b8161343c565b9050919050565b6000602082019050818103600083015261385b8161345f565b9050919050565b6000602082019050818103600083015261387b81613482565b9050919050565b6000602082019050818103600083015261389b816134a5565b9050919050565b600060208201905081810360008301526138bb816134c8565b9050919050565b600060208201905081810360008301526138db816134eb565b9050919050565b600060208201905081810360008301526138fb8161350e565b9050919050565b6000602082019050818103600083015261391b81613531565b9050919050565b60006020820190506139376000830184613554565b92915050565b6000613947613958565b90506139538282613bba565b919050565b6000604051905090565b600067ffffffffffffffff82111561397d5761397c613cf0565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156139a9576139a8613cf0565b5b6139b282613d38565b9050602081019050919050565b600067ffffffffffffffff8211156139da576139d9613cf0565b5b6139e382613d38565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613a5382613b3c565b9150613a5e83613b3c565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613a9357613a92613c34565b5b828201905092915050565b6000613aa982613b3c565b9150613ab483613b3c565b925082821015613ac757613ac6613c34565b5b828203905092915050565b6000613add82613b1c565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613b73578082015181840152602081019050613b58565b83811115613b82576000848401525b50505050565b60006002820490506001821680613ba057607f821691505b60208210811415613bb457613bb3613c63565b5b50919050565b613bc382613d38565b810181811067ffffffffffffffff82111715613be257613be1613cf0565b5b80604052505050565b6000613bf682613b3c565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613c2957613c28613c34565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f75726920697320656d7074790000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b7f4552433732313a206e6f7420616c6c6f77656420746f20616363657373000000600082015250565b61433881613ad2565b811461434357600080fd5b50565b61434f81613ae4565b811461435a57600080fd5b50565b61436681613af0565b811461437157600080fd5b50565b61437d81613b3c565b811461438857600080fd5b5056fea26469706673582212206d1065d746336d59a10e7e7c8237d3df77aeeb003be8194d06e667339076727164736f6c63430008070033