Contract 0xc946a04c1945a1516ed3cf07974ce8dbd4d19005

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x7602179a2ec3f2633f3ce82dce2d02a8f183781e89473a2faaaf792b75c38451Multi Claim121272112021-10-27 5:32:1715 hrs 36 mins ago0x5fa644d8e4a727eaee7ac138f13d3f201dea8873 IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.000138645
0xa09c988317d88e0bee506e20cb7449402d5e0ab1e9aba1152fd85889bb7f9618Multi Claim121271712021-10-27 5:30:1715 hrs 38 mins ago0x5fa644d8e4a727eaee7ac138f13d3f201dea8873 IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.000930215
0x371d81a998dbaa19b6209a7caba454bd7b7461b4b5f5e3e9073e2235d1a990b1Multi Claim118295462021-10-16 18:29:3611 days 2 hrs ago0x3ce08e6e3dfe2743d385d8003c2d6d64ea5941cc IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.00061751
0x14bd95ca437c83ffe2ed45942334f7838e30e1ed6baf4302f8e1a1fa9db7dc54Multi Claim118278332021-10-16 17:01:4311 days 4 hrs ago0x4e806c8246e0733559f3c7d97230ecfaaaac84fb IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.000855145
0xddf77d3642801c6887b332c33a2b23e7990174afc79a071a6fa75fb5820d5c5aMulti Claim117830412021-10-15 3:32:3212 days 17 hrs ago0x109f86efba0d62b6ecd4637b141a0de519a642cf IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.00061751
0xbb885d2f4a2686b1ec140601722fab33903b1ab543851707ea28841c97036752Multi Claim115204202021-10-05 23:00:4221 days 22 hrs ago0x3d39deb473d122eaccb4ef782644ab91ea21df97 IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.00061751
0x073a2f4cfd9bd44b787e8380772501f01d2172717de5e90a2a1c65f816e2ef49Multi Claim113176862021-09-28 20:51:1329 days 17 mins ago0xdbd29760d4ec6bfa572a0dd8f53ad0c69cfb1d67 IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.00061751
0x02d7de4fa8d0685339a1599a808e26527f283190b0ef6bd1708b92920fbfb8a9Multi Claim111100942021-09-21 14:28:1236 days 6 hrs ago0x207ea55e8746cadaf0c58d93525bab36c1d76ca3 IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.00061751
0x53a194afe303394df1caf253b56382525c7c11aa2bd69da5b2bd2744e34840b7Multi Claim110562272021-09-19 17:29:2938 days 3 hrs ago0xfe34318af332cabe31855efd0261a27919a3d69d IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.00061751
0x5fae5a17653ca722a32e0a71c95dd2f9d998799e01605e072af77b210fff71c2Multi Claim110044672021-09-17 22:02:3439 days 23 hrs ago0x0af315e7003a0a6e9910d347b219fcc4984efd04 IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.00061758
0xfda89826f7b24939dd4db039020351a8b951d33c68a811a00c88c3e4e1b7df67Multi Claim110026092021-09-17 20:29:3740 days 39 mins ago0xbe4db9d8c7a8dea43b14c4755a96a54b0149742c IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.00054251
0x36cc321cf6781a14866fbf6ccfa903e4baf6155c5c17aeacf6ceccfbcb6170b4Draw And Reset109379382021-09-15 14:31:2842 days 6 hrs ago0x24335d608fca8171864a15246cf662c468405442 IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.00248594
0xd4e50cbf028b0ee14e6bc9dcf4bf6f767961c0686972ee505d52d819b6126d32Multi Buy108823792021-09-13 16:03:2744 days 5 hrs ago0x207ea55e8746cadaf0c58d93525bab36c1d76ca3 IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.00239898
0xb507285e7d86b31f2962f49eb9b8f723190deca547a0ff1d9fac4b57221f79aeMulti Buy108065332021-09-11 0:33:2646 days 20 hrs ago0x1d0b10032bd425bea8f2cde0d52a280243c66965 IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.004385685
0xced3d3828d3600d6fb979bf5ddde665f8ee209d1b94ff6e46f7ad111d873192cMulti Buy107992032021-09-10 18:22:2447 days 2 hrs ago0xbff3720d0eda9c1335219ed28e4fe3163b6a0182 IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.00280308
0xc869a1e295ae9e04c57e0fb5f4a18fac9fed3b4298b7c80819e73cbf34e0eb82Multi Buy107798162021-09-10 1:59:2547 days 19 hrs ago0x1d0b10032bd425bea8f2cde0d52a280243c66965 IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.00250308
0x3efc5e1edf6f0f220a73f40c2dc75e2678b6f0c2fb6671e81d86690248b9b6ebMulti Buy103503622021-08-25 23:43:3462 days 21 hrs ago0xf5c0d6c275dc45f036861e0850ccc0d45dd83dbc IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.006392525
0x90409f17a5d4fc942c3d40dea9b2d4cbffd8519e1fe965bf6f0b6877ee96190fMulti Buy102517072021-08-22 13:06:2266 days 8 hrs ago0xfe34318af332cabe31855efd0261a27919a3d69d IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.01668074
0xb960a747e6b9adc209b2a8b0ea3ad9ede1bf47b401cce2f8b64cc25481c9e335Multi Buy99761022021-08-12 21:50:3875 days 23 hrs ago0xc6b9196c17ccb32a668f19487901b90f5fcb0f49 IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.00272808
0xf9ec83770139ee177fe0e6757fc57a73b67b31c074e6bb43ec1b8d8036378a1bMulti Buy94528482021-07-25 1:53:3594 days 19 hrs ago0x4cce7619052d0d762839045a6092427a5295e3c7 IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.00257808
0xc3f87ced072440247ad23d53846fd26f0c572cb14d29fe385b9cb8535986bae4Multi Buy94286022021-07-24 5:29:0095 days 15 hrs ago0x917b9fed63bef7ea0f4701c84043a3b442a9b34d IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.006447425
0x65180dc0acb512f5d92a529150249e0e6d0d4466041a7b6e91e6eaa2bee4608dMulti Buy92503062021-07-18 0:42:42101 days 20 hrs ago0xde3256399fafb4d7f593d57d654a8f1368c8a6d8 IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.004639785
0x13b0fc36905f05792757f5a00ce93371072a4f9091ce83840e91765b91568081Multi Buy90481302021-07-11 0:10:15108 days 20 hrs ago0x0af315e7003a0a6e9910d347b219fcc4984efd04 IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.006651425
0x5bfab31cbff3068709755b72c2e1fb29784cc9ae1575e56f18514afdcde7d57dMulti Buy89981052021-07-09 6:28:36110 days 14 hrs ago0x57f96233b65be16f5e8b457e3f792fcfab5ea2d8 IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.00182347
0x17dc40f74f7e14bb36c7825e6b6c1da2c7ff4437c200983925dc31451566776aMulti Buy89980562021-07-09 6:26:09110 days 14 hrs ago0x57f96233b65be16f5e8b457e3f792fcfab5ea2d8 IN  0xc946a04c1945a1516ed3cf07974ce8dbd4d190050 BNB0.004789785
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Lottery

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, GNU GPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-04-17
*/

pragma solidity 0.6.12;


// 
/*
 * @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 GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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;
}

// 
/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {

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

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

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

// 
/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

// 
/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

// 
/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// 
/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// 
/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

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

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

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

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

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

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

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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


    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

// 
/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
 * supported.
 */
library EnumerableMap {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

    struct Map {
        // Storage of map keys and values
        MapEntry[] _entries;

        // Position of the entry defined by a key in the `entries` array, plus 1
        // because index 0 means a key is not in the map.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex == 0) { // Equivalent to !contains(map, key)
            map._entries.push(MapEntry({ _key: key, _value: value }));
            // The entry is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            map._indexes[key] = map._entries.length;
            return true;
        } else {
            map._entries[keyIndex - 1]._value = value;
            return false;
        }
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function _remove(Map storage map, bytes32 key) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex != 0) { // Equivalent to contains(map, key)
            // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one
            // in the array, and then remove the last entry (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = keyIndex - 1;
            uint256 lastIndex = map._entries.length - 1;

            // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            MapEntry storage lastEntry = map._entries[lastIndex];

            // Move the last entry to the index where the entry to delete is
            map._entries[toDeleteIndex] = lastEntry;
            // Update the index for the moved entry
            map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved entry was stored
            map._entries.pop();

            // Delete the index for the deleted slot
            delete map._indexes[key];

            return true;
        } else {
            return false;
        }
    }

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

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function _length(Map storage map) private view returns (uint256) {
        return map._entries.length;
    }

   /**
    * @dev Returns the key-value pair stored at position `index` in the map. O(1).
    *
    * Note that there are no guarantees on the ordering of entries inside the
    * array, and it may change when more entries are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {
        require(map._entries.length > index, "EnumerableMap: index out of bounds");

        MapEntry storage entry = map._entries[index];
        return (entry._key, entry._value);
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        return _get(map, key, "EnumerableMap: nonexistent key");
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     */
    function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {
        return _set(map._inner, bytes32(key), bytes32(uint256(value)));
    }

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

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

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

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

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
        return address(uint256(_get(map._inner, bytes32(key))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     */
    function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {
        return address(uint256(_get(map._inner, bytes32(key), errorMessage)));
    }
}

// 
/**
 * @dev String operations.
 */
library Strings {
    /**
     * @dev Converts a `uint256` to its ASCII `string` 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);
        uint256 index = digits - 1;
        temp = value;
        while (temp != 0) {
            buffer[index--] = byte(uint8(48 + temp % 10));
            temp /= 10;
        }
        return string(buffer);
    }
}

// 
/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using SafeMath for uint256;
    using Address for address;
    using EnumerableSet for EnumerableSet.UintSet;
    using EnumerableMap for EnumerableMap.UintToAddressMap;
    using Strings for uint256;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    // Mapping from holder address to their (enumerable) set of owned tokens
    mapping (address => EnumerableSet.UintSet) private _holderTokens;

    // Enumerable mapping from token ids to their owners
    EnumerableMap.UintToAddressMap private _tokenOwners;

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Optional mapping for token URIs
    mapping (uint256 => string) private _tokenURIs;

    // Base URI
    string private _baseURI;

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
     *        0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

    /*
     *     bytes4(keccak256('name()')) == 0x06fdde03
     *     bytes4(keccak256('symbol()')) == 0x95d89b41
     *     bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
     *
     *     => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
     */
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139f;

    /*
     *     bytes4(keccak256('totalSupply()')) == 0x18160ddd
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) == 0x2f745c59
     *     bytes4(keccak256('tokenByIndex(uint256)')) == 0x4f6ccce7
     *
     *     => 0x18160ddd ^ 0x2f745c59 ^ 0x4f6ccce7 == 0x780e9d63
     */
    bytes4 private constant _INTERFACE_ID_ERC721_ENUMERABLE = 0x780e9d63;

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

        // register the supported interfaces to conform to ERC721 via ERC165
        _registerInterface(_INTERFACE_ID_ERC721);
        _registerInterface(_INTERFACE_ID_ERC721_METADATA);
        _registerInterface(_INTERFACE_ID_ERC721_ENUMERABLE);
    }

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

        return _holderTokens[owner].length();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token");
    }

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

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

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

        string memory _tokenURI = _tokenURIs[tokenId];

        // If there is no base URI, return the token URI.
        if (bytes(_baseURI).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(_baseURI, _tokenURI));
        }
        // If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
        return string(abi.encodePacked(_baseURI, tokenId.toString()));
    }

    /**
    * @dev Returns the base URI set via {_setBaseURI}. This will be
    * automatically added as a prefix in {tokenURI} to each token's URI, or
    * to the token ID if no specific URI is set for that token ID.
    */
    function baseURI() public view returns (string memory) {
        return _baseURI;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        return _holderTokens[owner].at(index);
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
        return _tokenOwners.length();
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        (uint256 tokenId, ) = _tokenOwners.at(index);
        return tokenId;
    }

    /**
     * @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 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 override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view 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:
     d*
     * - `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);

        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, 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);

        // Clear metadata (if any)
        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }

        _holderTokens[owner].remove(tokenId);

        _tokenOwners.remove(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);

        _holderTokens[from].remove(tokenId);
        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev Internal function to set the base URI for all token IDs. It is
     * automatically added as a prefix to the value returned in {tokenURI},
     * or to the token ID if {tokenURI} is empty.
     */
    function _setBaseURI(string memory baseURI_) internal virtual {
        _baseURI = baseURI_;
    }

    /**
     * @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()) {
            return true;
        }
        bytes memory returndata = to.functionCall(abi.encodeWithSelector(
            IERC721Receiver(to).onERC721Received.selector,
            _msgSender(),
            from,
            tokenId,
            _data
        ), "ERC721: transfer to non ERC721Receiver implementer");
        bytes4 retval = abi.decode(returndata, (bytes4));
        return (retval == _ERC721_RECEIVED);
    }

    function _approve(address to, uint256 tokenId) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(ownerOf(tokenId), to, tokenId);
    }

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 { }
}

// 
/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. 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;`
 * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}
 * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never
 * directly accessed.
 */
library Counters {
    using SafeMath for uint256;

    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 {
        // The {SafeMath} overflow check can be skipped here, see the comment at the top
        counter._value += 1;
    }

    function decrement(Counter storage counter) internal {
        counter._value = counter._value.sub(1);
    }
}

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

contract LotteryNFT is ERC721, Ownable {
    using Counters for Counters.Counter;
    Counters.Counter private tokenIds;

    mapping (uint256 => uint8[4]) public lotteryInfo;
    mapping (uint256 => uint256) public lotteryAmount;
    mapping (uint256 => uint256) public issueIndex;
    mapping (uint256 => bool) public claimInfo;

    constructor() public ERC721("ZeFi Lottery Ticket", "ZFLT") {}

    function newLotteryItem(address player, uint8[4] memory _lotteryNumbers, uint256 _amount, uint256 _issueIndex)
        external onlyOwner
        returns (uint256)
    {
        tokenIds.increment();

        uint256 newItemId = tokenIds.current();
        _mint(player, newItemId);
        lotteryInfo[newItemId] = _lotteryNumbers;
        lotteryAmount[newItemId] = _amount;
        issueIndex[newItemId] = _issueIndex;
        // claimInfo[newItemId] = false; default is false here
        // _setTokenURI(newItemId, tokenURI);

        return newItemId;
    }

    function getLotteryNumbers(uint256 tokenId) external view returns (uint8[4] memory) {
        return lotteryInfo[tokenId];
    }
    function getLotteryAmount(uint256 tokenId) external view returns (uint256) {
        return lotteryAmount[tokenId];
    }
    function getLotteryIssueIndex(uint256 tokenId) external view returns (uint256) {
        return issueIndex[tokenId];
    }
    function claimReward(uint256 tokenId) external onlyOwner {
        claimInfo[tokenId] = true;
    }
    function multiClaimReward(uint256[] memory _tokenIds) external onlyOwner {
        for (uint i = 0; i < _tokenIds.length; i++) {
            claimInfo[_tokenIds[i]] = true;
        }
    }
    function burn(uint256 tokenId) external onlyOwner {
        _burn(tokenId);
    }
    function getClaimStatus(uint256 tokenId) external view returns (bool) {
        return claimInfo[tokenId];
    }
}

interface IBEP20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the token decimals.
     */
    function decimals() external view returns (uint8);

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

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

    /**
     * @dev Returns the bep token owner.
     */
    function getOwner() external view returns (address);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address _owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// 
/**
 * @title SafeBEP20
 * @dev Wrappers around BEP20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeBEP20 for IBEP20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeBEP20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IBEP20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IBEP20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IBEP20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IBEP20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeBEP20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IBEP20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IBEP20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeBEP20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IBEP20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeBEP20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeBEP20: BEP20 operation did not succeed");
        }
    }
}

// import "@nomiclabs/buidler/console.sol";
// 4 numbers
contract Lottery is Ownable {
    using SafeMath for uint256;
    using SafeMath for uint8;
    using SafeBEP20 for IBEP20;

    uint8 constant keyLengthForEachBuy = 11;
    // Allocation for first/sencond/third reward
    uint8[3] public allocation;
    // The TOKEN to buy lottery
    IBEP20 public zefi;
    // The Lottery NFT for tickets
    LotteryNFT public lotteryNFT;
    
    // maxNumber
    uint8 public maxNumber;
    // minPrice, if decimal is not 18, please reset it
    uint256 public minPrice;

    // issueId => winningNumbers[numbers]
    mapping (uint256 => uint8[4]) public historyNumbers;
    // issueId => [tokenId]
    mapping (uint256 => uint256[]) public lotteryInfo;
    // issueId => [totalAmount, firstMatchAmount, secondMatchingAmount, thirdMatchingAmount]
    mapping (uint256 => uint256[]) public historyAmount;
    // issueId => trickyNumber => buyAmountSum
    mapping (uint256 => mapping(uint64 => uint256)) public userBuyAmountSum;
    // address => [tokenId]
    mapping (address => uint256[]) public userInfo;

    uint256 public issueIndex = 0;
    uint256 public totalAddresses = 0;
    uint256 public totalAmount = 0;
    uint256 public lastTimestamp;

    uint8[4] public winningNumbers;

    // default false
    bool public drawingPhase;

    // =================================

    event Buy(address indexed user, uint256 tokenId);
    event Drawing(uint256 indexed issueIndex, uint8[4] winningNumbers);
    event Claim(address indexed user, uint256 tokenid, uint256 amount);
    event DevWithdraw(address indexed user, uint256 amount);
    event Reset(uint256 indexed issueIndex);
    event MultiClaim(address indexed user, uint256 amount);
    event MultiBuy(address indexed user, uint256 amount);
    event MinPriceChanged(uint256 _price);
    event MaxNumberChanged(uint256 _maxNumber);
    event AllocationChanged(uint8 _allocation1, uint8 _allocation2, uint8 _allocation3);

    constructor(
        IBEP20 _zefi,
        LotteryNFT _lottery,
        uint256 _minPrice,
        uint8 _maxNumber
    ) 
    public
    Ownable()
    {
        zefi = _zefi;
        lotteryNFT = _lottery;
        minPrice = _minPrice;
        maxNumber = _maxNumber;
        lastTimestamp = block.timestamp;
        allocation = [50, 20, 10];
    }

    uint8[4] private nullTicket = [0,0,0,0];

    modifier inDrawingPhase() {
        require(!drawed(), 'drawed, can not buy now');
        require(!drawingPhase, 'drawing, can not buy now');
        _;
    }

    function drawed() public view returns(bool) {
        return winningNumbers[0] != 0;
    }

    function drawAndReset(uint256 _externalRandomNumber) external onlyOwner {
        enterDrawingPhase();
        drawing(_externalRandomNumber);
        reset();
    }

    function reset() public onlyOwner {
        require(drawed(), "drawed?");
        lastTimestamp = block.timestamp;
        totalAddresses = 0;
        totalAmount = 0;
        winningNumbers[0]=0;
        winningNumbers[1]=0;
        winningNumbers[2]=0;
        winningNumbers[3]=0;
        drawingPhase = false;
        issueIndex = issueIndex +1;
        if(getMatchingRewardAmount(issueIndex-1, 4) == 0) {
            uint256 amount = getTotalRewards(issueIndex-1).mul(allocation[0]).div(100);
            internalBuy(amount, nullTicket);
        }
        emit Reset(issueIndex);
    }

    function enterDrawingPhase() public onlyOwner {
        require(!drawed(), 'drawed');
        drawingPhase = true;
    }

    // add externalRandomNumber to prevent node validators exploiting
    function drawing(uint256 _externalRandomNumber) public onlyOwner {
        require(!drawed(), "reset?");
        require(drawingPhase, "enter drawing phase first");
        bytes32 _structHash;
        uint256 _randomNumber;
        uint8 _maxNumber = maxNumber;
        bytes32 _blockhash = blockhash(block.number-1);
        uint256 gasLeft = gasleft();

        // 1
        _structHash = keccak256(
            abi.encode(
                _blockhash,
                totalAddresses,
                gasLeft,
                _externalRandomNumber
            )
        );
        _randomNumber  = uint256(_structHash);
        assembly {_randomNumber := add(mod(_randomNumber, _maxNumber),1)}
        winningNumbers[0]=uint8(_randomNumber);

        // 2
        _structHash = keccak256(
            abi.encode(
                _blockhash,
                totalAmount,
                gasLeft,
                _externalRandomNumber
            )
        );
        _randomNumber  = uint256(_structHash);
        assembly {_randomNumber := add(mod(_randomNumber, _maxNumber),1)}
        winningNumbers[1]=uint8(_randomNumber);

        // 3
        _structHash = keccak256(
            abi.encode(
                _blockhash,
                lastTimestamp,
                gasLeft,
                _externalRandomNumber
            )
        );
        _randomNumber  = uint256(_structHash);
        assembly {_randomNumber := add(mod(_randomNumber, _maxNumber),1)}
        winningNumbers[2]=uint8(_randomNumber);

        // 4
        _structHash = keccak256(
            abi.encode(
                _blockhash,
                gasLeft,
                _externalRandomNumber
            )
        );
        _randomNumber  = uint256(_structHash);
        assembly {_randomNumber := add(mod(_randomNumber, _maxNumber),1)}
        winningNumbers[3]=uint8(_randomNumber);
        historyNumbers[issueIndex] = winningNumbers;
        historyAmount[issueIndex] = calculateMatchingRewardAmount();
        drawingPhase = false;
        emit Drawing(issueIndex, winningNumbers);
    }

    function internalBuy(uint256 _price, uint8[4] memory _numbers) internal {
        require (!drawed(), 'drawed, can not buy now');
        for (uint i = 0; i < 4; i++) {
            require (_numbers[i] <= maxNumber, 'exceed the maximum');
        }
        uint256 tokenId = lotteryNFT.newLotteryItem(address(this), _numbers, _price, issueIndex);
        lotteryInfo[issueIndex].push(tokenId);
        totalAmount = totalAmount.add(_price);
        lastTimestamp = block.timestamp;
        emit Buy(address(this), tokenId);
    }

    function buy(uint256 _price, uint8[4] memory _numbers) external inDrawingPhase {
        require (_price >= minPrice, 'price must above minPrice');
        for (uint i = 0; i < 4; i++) {
            require (_numbers[i] <= maxNumber, 'exceed number scope');
        }
        uint256 tokenId = lotteryNFT.newLotteryItem(msg.sender, _numbers, _price, issueIndex);
        lotteryInfo[issueIndex].push(tokenId);
        if (userInfo[msg.sender].length == 0) {
            totalAddresses = totalAddresses + 1;
        }
        userInfo[msg.sender].push(tokenId);
        totalAmount = totalAmount.add(_price);
        lastTimestamp = block.timestamp;
        uint64[keyLengthForEachBuy] memory userNumberIndex = generateNumberIndexKey(_numbers);
        for (uint i = 0; i < keyLengthForEachBuy; i++) {
            userBuyAmountSum[issueIndex][userNumberIndex[i]]=userBuyAmountSum[issueIndex][userNumberIndex[i]].add(_price);
        }
        zefi.safeTransferFrom(address(msg.sender), address(this), _price);
        emit Buy(msg.sender, tokenId);
    }

    function multiBuy(uint256 _price, uint8[4][] memory _numbers) external inDrawingPhase {
        require (_price >= minPrice, 'price must above minPrice');
        uint256 totalPrice  = 0;
        for (uint i = 0; i < _numbers.length; i++) {
            for (uint j = 0; j < 4; j++) {
                require (_numbers[i][j] <= maxNumber && _numbers[i][j] > 0, 'exceed number scope');
            }
            uint256 tokenId = lotteryNFT.newLotteryItem(msg.sender, _numbers[i], _price, issueIndex);
            lotteryInfo[issueIndex].push(tokenId);
            if (userInfo[msg.sender].length == 0) {
                totalAddresses = totalAddresses + 1;
            }
            userInfo[msg.sender].push(tokenId);
            totalAmount = totalAmount.add(_price);
            lastTimestamp = block.timestamp;
            totalPrice = totalPrice.add(_price);
            uint64[keyLengthForEachBuy] memory numberIndexKey = generateNumberIndexKey(_numbers[i]);
            for (uint k = 0; k < keyLengthForEachBuy; k++) {
                userBuyAmountSum[issueIndex][numberIndexKey[k]]=userBuyAmountSum[issueIndex][numberIndexKey[k]].add(_price);
            }
        }
        zefi.safeTransferFrom(address(msg.sender), address(this), totalPrice);
        emit MultiBuy(msg.sender, totalPrice);
    }

    function claimReward(uint256 _tokenId) external {
        require(msg.sender == lotteryNFT.ownerOf(_tokenId), "not from owner");
        require (!lotteryNFT.getClaimStatus(_tokenId), "claimed");
        uint256 reward = getRewardView(_tokenId);
        lotteryNFT.claimReward(_tokenId);
        if(reward>0) {
            zefi.safeTransfer(address(msg.sender), reward);
        }
        emit Claim(msg.sender, _tokenId, reward);
    }

    function multiClaim(uint256[] memory _tickets) external {
        uint256 totalReward = 0;
        for (uint i = 0; i < _tickets.length; i++) {
            require (msg.sender == lotteryNFT.ownerOf(_tickets[i]), "not from owner");
            require (!lotteryNFT.getClaimStatus(_tickets[i]), "claimed");
            uint256 reward = getRewardView(_tickets[i]);
            if(reward>0) {
                totalReward = reward.add(totalReward);
            }
        }
        lotteryNFT.multiClaimReward(_tickets);
        if(totalReward>0) {
            zefi.safeTransfer(address(msg.sender), totalReward);
        }
        emit MultiClaim(msg.sender, totalReward);
    }

    function generateNumberIndexKey(uint8[4] memory number) public pure returns (uint64[keyLengthForEachBuy] memory) {
        uint64[4] memory tempNumber;
        tempNumber[0]=uint64(number[0]);
        tempNumber[1]=uint64(number[1]);
        tempNumber[2]=uint64(number[2]);
        tempNumber[3]=uint64(number[3]);

        uint64[keyLengthForEachBuy] memory result;
        result[0] = tempNumber[0]*256*256*256*256*256*256 + 1*256*256*256*256*256 + tempNumber[1]*256*256*256*256 + 2*256*256*256 + tempNumber[2]*256*256 + 3*256 + tempNumber[3];

        result[1] = tempNumber[0]*256*256*256*256 + 1*256*256*256 + tempNumber[1]*256*256 + 2*256+ tempNumber[2];
        result[2] = tempNumber[0]*256*256*256*256 + 1*256*256*256 + tempNumber[1]*256*256 + 3*256+ tempNumber[3];
        result[3] = tempNumber[0]*256*256*256*256 + 2*256*256*256 + tempNumber[2]*256*256 + 3*256 + tempNumber[3];
        result[4] = 1*256*256*256*256*256 + tempNumber[1]*256*256*256*256 + 2*256*256*256 + tempNumber[2]*256*256 + 3*256 + tempNumber[3];

        result[5] = tempNumber[0]*256*256 + 1*256+ tempNumber[1];
        result[6] = tempNumber[0]*256*256 + 2*256+ tempNumber[2];
        result[7] = tempNumber[0]*256*256 + 3*256+ tempNumber[3];
        result[8] = 1*256*256*256 + tempNumber[1]*256*256 + 2*256 + tempNumber[2];
        result[9] = 1*256*256*256 + tempNumber[1]*256*256 + 3*256 + tempNumber[3];
        result[10] = 2*256*256*256 + tempNumber[2]*256*256 + 3*256 + tempNumber[3];

        return result;
    }

    function calculateMatchingRewardAmount() internal view returns (uint256[4] memory) {
        uint64[keyLengthForEachBuy] memory numberIndexKey = generateNumberIndexKey(winningNumbers);

        uint256 totalAmout1 = userBuyAmountSum[issueIndex][numberIndexKey[0]];

        uint256 sumForTotalAmout2 = userBuyAmountSum[issueIndex][numberIndexKey[1]];
        sumForTotalAmout2 = sumForTotalAmout2.add(userBuyAmountSum[issueIndex][numberIndexKey[2]]);
        sumForTotalAmout2 = sumForTotalAmout2.add(userBuyAmountSum[issueIndex][numberIndexKey[3]]);
        sumForTotalAmout2 = sumForTotalAmout2.add(userBuyAmountSum[issueIndex][numberIndexKey[4]]);

        uint256 totalAmout2 = sumForTotalAmout2.sub(totalAmout1.mul(4));

        uint256 sumForTotalAmout3 = userBuyAmountSum[issueIndex][numberIndexKey[5]];
        sumForTotalAmout3 = sumForTotalAmout3.add(userBuyAmountSum[issueIndex][numberIndexKey[6]]);
        sumForTotalAmout3 = sumForTotalAmout3.add(userBuyAmountSum[issueIndex][numberIndexKey[7]]);
        sumForTotalAmout3 = sumForTotalAmout3.add(userBuyAmountSum[issueIndex][numberIndexKey[8]]);
        sumForTotalAmout3 = sumForTotalAmout3.add(userBuyAmountSum[issueIndex][numberIndexKey[9]]);
        sumForTotalAmout3 = sumForTotalAmout3.add(userBuyAmountSum[issueIndex][numberIndexKey[10]]);

        uint256 totalAmout3 = sumForTotalAmout3.add(totalAmout1.mul(6)).sub(sumForTotalAmout2.mul(3));

        return [totalAmount, totalAmout1, totalAmout2, totalAmout3];
    }

    function getMatchingRewardAmount(uint256 _issueIndex, uint256 _matchingNumber) public view returns (uint256) {
        require(_matchingNumber <= 5, "matching number should be smaller than 5");
        return historyAmount[_issueIndex][5 - _matchingNumber];
    }

    function getTotalRewards(uint256 _issueIndex) public view returns(uint256) {
        require (_issueIndex <= issueIndex, '_issueIndex <= issueIndex');

        if(!drawed() && _issueIndex == issueIndex) {
            return totalAmount;
        }
        return historyAmount[_issueIndex][0];
    }

    function getRewardView(uint256 _tokenId) public view returns(uint256) {
        uint256 _issueIndex = lotteryNFT.getLotteryIssueIndex(_tokenId);
        uint8[4] memory lotteryNumbers = lotteryNFT.getLotteryNumbers(_tokenId);
        uint8[4] memory _winningNumbers = historyNumbers[_issueIndex];
        require(_winningNumbers[0] != 0, "not drawed");

        uint256 matchingNumber = 0;
        for (uint i = 0; i < lotteryNumbers.length; i++) {
            if (_winningNumbers[i] == lotteryNumbers[i]) {
                matchingNumber= matchingNumber +1;
            }
        }
        uint256 reward = 0;
        if (matchingNumber > 1) {
            uint256 amount = lotteryNFT.getLotteryAmount(_tokenId);
            uint256 poolAmount = getTotalRewards(_issueIndex).mul(allocation[4-matchingNumber]).div(100);
            reward = amount.mul(1e12).div(getMatchingRewardAmount(_issueIndex, matchingNumber)).mul(poolAmount); // CTK-ZEFI-7 scaling is done before
        }
        return reward.div(1e12);
    }

    function seedLottery(uint256 _amount) external onlyOwner {
        internalBuy(_amount, nullTicket);
        zefi.safeTransferFrom(address(msg.sender), address(this), _amount);
    }

    function adminWithdraw(uint256 _amount) external onlyOwner {
        zefi.safeTransfer(address(msg.sender), _amount);
        emit DevWithdraw(msg.sender, _amount);
    }

    function setMinPrice(uint256 _price) external onlyOwner {
        minPrice = _price;
        emit MinPriceChanged(minPrice);
    }

    function setMaxNumber(uint8 _maxNumber) external onlyOwner {
        maxNumber = _maxNumber;
        emit MaxNumberChanged(maxNumber);
    }

    // Set the allocation for one reward
    function setAllocation(uint8 _allocation1, uint8 _allocation2, uint8 _allocation3) external onlyOwner {
        require (_allocation1 + _allocation2 + _allocation3 < 100, 'exceed 100');
        allocation = [_allocation1, _allocation2, _allocation3];
        emit AllocationChanged(_allocation1, _allocation2, _allocation3);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IBEP20","name":"_zefi","type":"address"},{"internalType":"contract LotteryNFT","name":"_lottery","type":"address"},{"internalType":"uint256","name":"_minPrice","type":"uint256"},{"internalType":"uint8","name":"_maxNumber","type":"uint8"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"_allocation1","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"_allocation2","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"_allocation3","type":"uint8"}],"name":"AllocationChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Buy","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DevWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"issueIndex","type":"uint256"},{"indexed":false,"internalType":"uint8[4]","name":"winningNumbers","type":"uint8[4]"}],"name":"Drawing","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_maxNumber","type":"uint256"}],"name":"MaxNumberChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_price","type":"uint256"}],"name":"MinPriceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MultiBuy","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MultiClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"issueIndex","type":"uint256"}],"name":"Reset","type":"event"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"adminWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allocation","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint8[4]","name":"_numbers","type":"uint8[4]"}],"name":"buy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_externalRandomNumber","type":"uint256"}],"name":"drawAndReset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"drawed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_externalRandomNumber","type":"uint256"}],"name":"drawing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"drawingPhase","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"enterDrawingPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8[4]","name":"number","type":"uint8[4]"}],"name":"generateNumberIndexKey","outputs":[{"internalType":"uint64[11]","name":"","type":"uint64[11]"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_issueIndex","type":"uint256"},{"internalType":"uint256","name":"_matchingNumber","type":"uint256"}],"name":"getMatchingRewardAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getRewardView","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_issueIndex","type":"uint256"}],"name":"getTotalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"historyAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"historyNumbers","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"issueIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"lotteryInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lotteryNFT","outputs":[{"internalType":"contract LotteryNFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxNumber","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint8[4][]","name":"_numbers","type":"uint8[4][]"}],"name":"multiBuy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tickets","type":"uint256[]"}],"name":"multiClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"seedLottery","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_allocation1","type":"uint8"},{"internalType":"uint8","name":"_allocation2","type":"uint8"},{"internalType":"uint8","name":"_allocation3","type":"uint8"}],"name":"setAllocation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_maxNumber","type":"uint8"}],"name":"setMaxNumber","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setMinPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAddresses","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint64","name":"","type":"uint64"}],"name":"userBuyAmountSum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"winningNumbers","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"zefi","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040526000600a556000600b556000600c556040518060800160405280600060ff168152602001600060ff168152602001600060ff168152602001600060ff1681525060109060046200005692919062000260565b503480156200006457600080fd5b50604051620059a0380380620059a0833981810160405260808110156200008a57600080fd5b81019080805190602001909291908051906020019092919080519060200190929190805190602001909291905050506000620000cb6200025860201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35083600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160048190555080600360146101000a81548160ff021916908360ff16021790555042600d819055506040518060600160405280603260ff168152602001601460ff168152602001600a60ff1681525060019060036200024d92919062000301565b5050505050620003cc565b600033905090565b826004601f01602090048101928215620002ee5791602002820160005b83821115620002bd57835183826101000a81548160ff021916908360ff16021790555092602001926001016020816000010492830192600103026200027d565b8015620002ec5782816101000a81549060ff0219169055600101602081600001049283019260010302620002bd565b505b509050620002fd9190620003a2565b5090565b826003601f016020900481019282156200038f5791602002820160005b838211156200035e57835183826101000a81548160ff021916908360ff16021790555092602001926001016020816000010492830192600103026200031e565b80156200038d5782816101000a81549060ff02191690556001016020816000010492830192600103026200035e565b505b5090506200039e9190620003a2565b5090565b5b80821115620003c857600081816101000a81549060ff021916905550600101620003a3565b5090565b6155c480620003dc6000396000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c80636a28f82811610130578063c39f49c0116100b8578063d826f88f1161007c578063d826f88f14610ab0578063e134541614610aba578063e45be8eb14610ada578063e8adfbc714610af8578063f2fde38b14610b2c57610227565b8063c39f49c01461098a578063c82c6e2a146109d6578063cfad527714610a04578063d1f7dbcf14610a22578063d411b0fa14610a6e57610227565b8063850bad94116100ff578063850bad941461081457806385dcdf1b146108595780638da5cb5b146108fa578063a42206c91461092e578063ae169a501461095c57610227565b80636a28f8281461078a578063715018a6146107a8578063722095d0146107b25780637c5b4a37146107e657610227565b80633a4f6999116101b3578063552164ee11610182578063552164ee1461063457806359bcbd68146106765780635c17623a146106c55780635ea8cd12146107105780636575243f1461073e57610227565b80633a4f6999146104f6578063438209f5146105175780634e45f095146105375780634ed73d281461057c57610227565b806321ce919d116101fa57806321ce919d146102e15780632bdff851146103435780632f506b2014610441578063324a556214610497578063327af9f8146104c857610227565b806314c20d571461022c57806319d8ac611461029b5780631a39d8ef146102b95780631ff68866146102d7575b600080fd5b610299600480360360a081101561024257600080fd5b810190808035906020019092919080608001906004806020026040519081016040528092919082600460200280828437600081840152601f19601f8201169050808301925050505050509192919290505050610b70565b005b6102a3611141565b6040518082815260200191505060405180910390f35b6102c1611147565b6040518082815260200191505060405180910390f35b6102df61114d565b005b61032d600480360360408110156102f757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506112ad565b6040518082815260200191505060405180910390f35b61043f6004803603604081101561035957600080fd5b81019080803590602001909291908035906020019064010000000081111561038057600080fd5b82018360208201111561039257600080fd5b803590602001918460808302840111640100000000831117156103b457600080fd5b9190808060200260200160405190810160405280939291908181526020016000905b8282101561042d578484839050608002016004806020026040519081016040528092919082600460200280828437600081840152601f19601f820116905080830192505050505050815260200190600101906103d6565b505050505091929192905050506112db565b005b6104816004803603604081101561045757600080fd5b8101908080359060200190929190803567ffffffffffffffff169060200190929190505050611948565b6040518082815260200191505060405180910390f35b6104c6600480360360208110156104ad57600080fd5b81019080803560ff16906020019092919050505061196d565b005b6104f4600480360360208110156104de57600080fd5b8101908080359060200190929190505050611a9c565b005b6104fe611b80565b604051808260ff16815260200191505060405180910390f35b61051f611b93565b60405180821515815260200191505060405180910390f35b6105636004803603602081101561054d57600080fd5b8101908080359060200190929190505050611ba6565b604051808260ff16815260200191505060405180910390f35b6106326004803603602081101561059257600080fd5b81019080803590602001906401000000008111156105af57600080fd5b8201836020820111156105c157600080fd5b803590602001918460208302840111640100000000831117156105e357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290505050611bcd565b005b6106606004803603602081101561064a57600080fd5b8101908080359060200190929190505050612034565b6040518082815260200191505060405180910390f35b6106ac6004803603604081101561068c57600080fd5b810190808035906020019092919080359060200190929190505050612105565b604051808260ff16815260200191505060405180910390f35b61070e600480360360608110156106db57600080fd5b81019080803560ff169060200190929190803560ff169060200190929190803560ff16906020019092919050505061213b565b005b61073c6004803603602081101561072657600080fd5b8101908080359060200190929190505050612313565b005b6107746004803603604081101561075457600080fd5b81019080803590602001909291908035906020019092919050505061241e565b6040518082815260200191505060405180910390f35b61079261244c565b6040518082815260200191505060405180910390f35b6107b0612452565b005b6107ba6125d8565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610812600480360360208110156107fc57600080fd5b81019080803590602001909291905050506125fe565b005b6108406004803603602081101561082a57600080fd5b8101908080359060200190929190505050612764565b604051808260ff16815260200191505060405180910390f35b6108bc6004803603608081101561086f57600080fd5b8101908080608001906004806020026040519081016040528092919082600460200280828437600081840152601f19601f820116905080830192505050505050919291929050505061278b565b6040518082600b60200280838360005b838110156108e75780820151818401526020810190506108cc565b5050505090500191505060405180910390f35b610902612d9a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61095a6004803603602081101561094457600080fd5b8101908080359060200190929190505050612dc3565b005b6109886004803603602081101561097257600080fd5b8101908080359060200190929190505050613299565b005b6109c0600480360360408110156109a057600080fd5b810190808035906020019092919080359060200190929190505050613653565b6040518082815260200191505060405180910390f35b610a02600480360360208110156109ec57600080fd5b8101908080359060200190929190505050613681565b005b610a0c613808565b6040518082815260200191505060405180910390f35b610a5860048036036040811015610a3857600080fd5b81019080803590602001909291908035906020019092919050505061380e565b6040518082815260200191505060405180910390f35b610a9a60048036036020811015610a8457600080fd5b810190808035906020019092919050505061389e565b6040518082815260200191505060405180910390f35b610ab8613cee565b005b610ac2614043565b60405180821515815260200191505060405180910390f35b610ae2614074565b6040518082815260200191505060405180910390f35b610b0061407a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610b6e60048036036020811015610b4257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506140a0565b005b610b78614043565b15610beb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f6472617765642c2063616e206e6f7420627579206e6f7700000000000000000081525060200191505060405180910390fd5b600f60009054906101000a900460ff1615610c6e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f64726177696e672c2063616e206e6f7420627579206e6f77000000000000000081525060200191505060405180910390fd5b600454821015610ce6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f7072696365206d7573742061626f7665206d696e50726963650000000000000081525060200191505060405180910390fd5b60005b6004811015610d9a57600360149054906101000a900460ff1660ff16828260048110610d1157fe5b602002015160ff161115610d8d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f657863656564206e756d6265722073636f70650000000000000000000000000081525060200191505060405180910390fd5b8080600101915050610ce9565b506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166337391c00338486600a546040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff16815260200184600460200280838360005b83811015610e37578082015181840152602081019050610e1c565b50505050905001838152602001828152602001945050505050602060405180830381600087803b158015610e6a57600080fd5b505af1158015610e7e573d6000803e3d6000fd5b505050506040513d6020811015610e9457600080fd5b8101908080519060200190929190505050905060066000600a5481526020019081526020016000208190806001815401808255809150506001900390600052602060002001600090919091909150556000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490501415610f3b576001600b5401600b819055505b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819080600181540180825580915050600190039060005260206000200160009091909190915055610fb683600c546142ab90919063ffffffff16565b600c8190555042600d81905550610fcb6152cf565b610fd48361278b565b905060005b600b60ff1681101561109d576110428560086000600a54815260200190815260200160002060008585600b811061100c57fe5b602002015167ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020546142ab90919063ffffffff16565b60086000600a54815260200190815260200160002060008484600b811061106557fe5b602002015167ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020819055508080600101915050610fd9565b506110ed333086600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16614333909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fe3d4187f6ca4248660cc0ac8b8056515bac4a8132be2eca31d6d0cc170722a7e836040518082815260200191505060405180910390a250505050565b600d5481565b600c5481565b6111556143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611215576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61121d614043565b15611290576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260068152602001807f647261776564000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6001600f60006101000a81548160ff021916908315150217905550565b600960205281600052604060002081815481106112c657fe5b90600052602060002001600091509150505481565b6112e3614043565b15611356576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f6472617765642c2063616e206e6f7420627579206e6f7700000000000000000081525060200191505060405180910390fd5b600f60009054906101000a900460ff16156113d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f64726177696e672c2063616e206e6f7420627579206e6f77000000000000000081525060200191505060405180910390fd5b600454821015611451576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f7072696365206d7573742061626f7665206d696e50726963650000000000000081525060200191505060405180910390fd5b6000805b82518110156118a55760005b600481101561155757600360149054906101000a900460ff1660ff1684838151811061148957fe5b6020026020010151826004811061149c57fe5b602002015160ff16111580156114d8575060008483815181106114bb57fe5b602002602001015182600481106114ce57fe5b602002015160ff16115b61154a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f657863656564206e756d6265722073636f70650000000000000000000000000081525060200191505060405180910390fd5b8080600101915050611461565b506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166337391c00338685815181106115a557fe5b602002602001015188600a546040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff16815260200184600460200280838360005b838110156116075780820151818401526020810190506115ec565b50505050905001838152602001828152602001945050505050602060405180830381600087803b15801561163a57600080fd5b505af115801561164e573d6000803e3d6000fd5b505050506040513d602081101561166457600080fd5b8101908080519060200190929190505050905060066000600a5481526020019081526020016000208190806001815401808255809150506001900390600052602060002001600090919091909150556000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050141561170b576001600b5401600b819055505b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081908060018154018082558091505060019003906000526020600020016000909190919091505561178685600c546142ab90919063ffffffff16565b600c8190555042600d819055506117a685846142ab90919063ffffffff16565b92506117b06152cf565b6117cc8584815181106117bf57fe5b602002602001015161278b565b905060005b600b60ff168110156118955761183a8760086000600a54815260200190815260200160002060008585600b811061180457fe5b602002015167ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020546142ab90919063ffffffff16565b60086000600a54815260200190815260200160002060008484600b811061185d57fe5b602002015167ffffffffffffffff1667ffffffffffffffff1681526020019081526020016000208190555080806001019150506117d1565b5050508080600101915050611455565b506118f5333083600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16614333909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f96c35ad1cc1743f26cb87980c38042de8082358ec6d171a7986d6e11dddfe857826040518082815260200191505060405180910390a2505050565b6008602052816000526040600020602052806000526040600020600091509150505481565b6119756143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a35576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600360146101000a81548160ff021916908360ff1602179055507f40b8c549208ebfc68d7d9944ad59f281e4bf55e10de03f56c0a4bff04c56cdab600360149054906101000a900460ff16604051808260ff16815260200191505060405180910390a150565b611aa46143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b64576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b611b6c61114d565b611b7581612dc3565b611b7d613cee565b50565b600360149054906101000a900460ff1681565b600f60009054906101000a900460ff1681565b600e8160048110611bb357fe5b60209182820401919006915054906101000a900460ff1681565b6000805b8251811015611ebc57600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e848381518110611c2457fe5b60200260200101516040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015611c6057600080fd5b505afa158015611c74573d6000803e3d6000fd5b505050506040513d6020811015611c8a57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d3b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f6e6f742066726f6d206f776e657200000000000000000000000000000000000081525060200191505060405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166336dbd2f9848381518110611d8557fe5b60200260200101516040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015611dc157600080fd5b505afa158015611dd5573d6000803e3d6000fd5b505050506040513d6020811015611deb57600080fd5b810190808051906020019092919050505015611e6f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260078152602001807f636c61696d65640000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000611e8d848381518110611e8057fe5b602002602001015161389e565b90506000811115611eae57611eab83826142ab90919063ffffffff16565b92505b508080600101915050611bd1565b50600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166374310355836040518263ffffffff1660e01b81526004018080602001828103825283818151815260200191508051906020019060200280838360005b83811015611f4e578082015181840152602081019050611f33565b5050505090500192505050600060405180830381600087803b158015611f7357600080fd5b505af1158015611f87573d6000803e3d6000fd5b505050506000811115611fe257611fe13382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166143fc9092919063ffffffff16565b5b3373ffffffffffffffffffffffffffffffffffffffff167f6606374655494f5c0e2d6f392656e9777afd9ac5f61527d1bcad50b7e918a03e826040518082815260200191505060405180910390a25050565b6000600a548211156120ae576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f5f6973737565496e646578203c3d206973737565496e6465780000000000000081525060200191505060405180910390fd5b6120b6614043565b1580156120c45750600a5482145b156120d357600c549050612100565b600760008381526020019081526020016000206000815481106120f257fe5b906000526020600020015490505b919050565b6005602052816000526040600020816004811061211e57fe5b60209182820401919006915091509054906101000a900460ff1681565b6121436143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612203576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6064818385010160ff1610612280576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f657863656564203130300000000000000000000000000000000000000000000081525060200191505060405180910390fd5b60405180606001604052808460ff1660ff1681526020018360ff1660ff1681526020018260ff1660ff1681525060019060036122bd9291906152f2565b507fe49663799279f9ad35c9d7a72ea6270cda1dad70ddc31599db6f05c5d1633ec7838383604051808460ff1681526020018360ff1681526020018260ff168152602001935050505060405180910390a1505050565b61231b6143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146123db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b806004819055507fb7453612ea5b39dc722c37c2a05011d641d761c701bfdda1ef658571d991f8af6004546040518082815260200191505060405180910390a150565b6006602052816000526040600020818154811061243757fe5b90600052602060002001600091509150505481565b600a5481565b61245a6143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461251a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6126066143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146126c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6127133382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166143fc9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f050d1c64cc22ce461b9bc14f6b73852566da02b03c155242bc63169d1fec42aa826040518082815260200191505060405180910390a250565b6001816003811061277157fe5b60209182820401919006915054906101000a900460ff1681565b6127936152cf565b61279b61538c565b826000600481106127a857fe5b602002015160ff16816000600481106127bd57fe5b602002019067ffffffffffffffff16908167ffffffffffffffff1681525050826001600481106127e957fe5b602002015160ff16816001600481106127fe57fe5b602002019067ffffffffffffffff16908167ffffffffffffffff16815250508260026004811061282a57fe5b602002015160ff168160026004811061283f57fe5b602002019067ffffffffffffffff16908167ffffffffffffffff16815250508260036004811061286b57fe5b602002015160ff168160036004811061288057fe5b602002019067ffffffffffffffff16908167ffffffffffffffff16815250506128a76152cf565b816003600481106128b457fe5b602002015161030061010080856002600481106128cd57fe5b6020020151020263020000006101008061010080896001600481106128ee57fe5b602002015102020202650100000000006101008061010080610100808d60006004811061291757fe5b6020020151020202020202010101010101816000600b811061293557fe5b602002019067ffffffffffffffff16908167ffffffffffffffff16815250508160026004811061296157fe5b6020020151610200610100808560016004811061297a57fe5b60200201510202630100000061010080610100808960006004811061299b57fe5b60200201510202020201010101816001600b81106129b557fe5b602002019067ffffffffffffffff16908167ffffffffffffffff1681525050816003600481106129e157fe5b602002015161030061010080856001600481106129fa57fe5b602002015102026301000000610100806101008089600060048110612a1b57fe5b60200201510202020201010101816002600b8110612a3557fe5b602002019067ffffffffffffffff16908167ffffffffffffffff168152505081600360048110612a6157fe5b60200201516103006101008085600260048110612a7a57fe5b602002015102026302000000610100806101008089600060048110612a9b57fe5b60200201510202020201010101816003600b8110612ab557fe5b602002019067ffffffffffffffff16908167ffffffffffffffff168152505081600360048110612ae157fe5b60200201516103006101008085600260048110612afa57fe5b602002015102026302000000610100806101008089600160048110612b1b57fe5b602002015102020202650100000000000101010101816004600b8110612b3d57fe5b602002019067ffffffffffffffff16908167ffffffffffffffff168152505081600160048110612b6957fe5b60200201516101008061010085600060048110612b8257fe5b602002015102020101816005600b8110612b9857fe5b602002019067ffffffffffffffff16908167ffffffffffffffff168152505081600260048110612bc457fe5b60200201516102006101008085600060048110612bdd57fe5b602002015102020101816006600b8110612bf357fe5b602002019067ffffffffffffffff16908167ffffffffffffffff168152505081600360048110612c1f57fe5b60200201516103006101008085600060048110612c3857fe5b602002015102020101816007600b8110612c4e57fe5b602002019067ffffffffffffffff16908167ffffffffffffffff168152505081600260048110612c7a57fe5b60200201516102006101008085600160048110612c9357fe5b602002015102026301000000010101816008600b8110612caf57fe5b602002019067ffffffffffffffff16908167ffffffffffffffff168152505081600360048110612cdb57fe5b60200201516103006101008085600160048110612cf457fe5b602002015102026301000000010101816009600b8110612d1057fe5b602002019067ffffffffffffffff16908167ffffffffffffffff168152505081600360048110612d3c57fe5b60200201516103006101008085600260048110612d5557fe5b60200201510202630200000001010181600a600b8110612d7157fe5b602002019067ffffffffffffffff16908167ffffffffffffffff16815250508092505050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b612dcb6143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612e8b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b612e93614043565b15612f06576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260068152602001807f72657365743f000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b600f60009054906101000a900460ff16612f88576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f656e7465722064726177696e672070686173652066697273740000000000000081525060200191505060405180910390fd5b6000806000600360149054906101000a900460ff16905060006001430340905060005a905081600b548288604051602001808581526020018481526020018381526020018281526020019450505050506040516020818303038152906040528051906020012094508460001c9350600183850601935083600e60006004811061300d57fe5b602091828204019190066101000a81548160ff021916908360ff16021790555081600c548288604051602001808581526020018481526020018381526020018281526020019450505050506040516020818303038152906040528051906020012094508460001c9350600183850601935083600e60016004811061308d57fe5b602091828204019190066101000a81548160ff021916908360ff16021790555081600d548288604051602001808581526020018481526020018381526020018281526020019450505050506040516020818303038152906040528051906020012094508460001c9350600183850601935083600e60026004811061310d57fe5b602091828204019190066101000a81548160ff021916908360ff1602179055508181876040516020018084815260200183815260200182815260200193505050506040516020818303038152906040528051906020012094508460001c9350600183850601935083600e60036004811061318357fe5b602091828204019190066101000a81548160ff021916908360ff160217905550600e60056000600a5481526020019081526020016000209060046131c89291906153ae565b506131d161449e565b60076000600a5481526020019081526020016000209060046131f49291906153f9565b506000600f60006101000a81548160ff021916908315150217905550600a547fa13e935b188993737b3009d62bd916dcbe9e82d8236d75981eeadf26a1460d3d600e604051808260048015613284576020028201916000905b82829054906101000a900460ff1660ff168152602001906001019060208260000104928301926001038202915080841161324d5790505b505091505060405180910390a2505050505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e826040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561330c57600080fd5b505afa158015613320573d6000803e3d6000fd5b505050506040513d602081101561333657600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146133e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f6e6f742066726f6d206f776e657200000000000000000000000000000000000081525060200191505060405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166336dbd2f9826040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561345a57600080fd5b505afa15801561346e573d6000803e3d6000fd5b505050506040513d602081101561348457600080fd5b810190808051906020019092919050505015613508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260078152602001807f636c61696d65640000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b60006135138261389e565b9050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ae169a50836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561358a57600080fd5b505af115801561359e573d6000803e3d6000fd5b5050505060008111156135f9576135f83382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166143fc9092919063ffffffff16565b5b3373ffffffffffffffffffffffffffffffffffffffff167f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf78383604051808381526020018281526020019250505060405180910390a25050565b6007602052816000526040600020818154811061366c57fe5b90600052602060002001600091509150505481565b6136896143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613749576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6137b68160106004806020026040519081016040528092919082600480156137ac576020028201916000905b82829054906101000a900460ff1660ff16815260200190600101906020826000010492830192600103820291508084116137755790505b50505050506149b3565b613805333083600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16614333909392919063ffffffff16565b50565b600b5481565b6000600582111561386a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806155676028913960400191505060405180910390fd5b60076000848152602001908152602001600020826005038154811061388b57fe5b9060005260206000200154905092915050565b600080600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631bf1e00f846040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561391457600080fd5b505afa158015613928573d6000803e3d6000fd5b505050506040513d602081101561393e57600080fd5b81019080805190602001909291905050509050613959615446565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635f8e26a7856040518263ffffffff1660e01b81526004018082815260200191505060806040518083038186803b1580156139cc57600080fd5b505afa1580156139e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506080811015613a0557600080fd5b81019080919050509050613a17615446565b60056000848152602001908152602001600020600480602002604051908101604052809291908260048015613a87576020028201916000905b82829054906101000a900460ff1660ff1681526020019060010190602082600001049283019260010382029150808411613a505790505b50505050509050600081600060048110613a9d57fe5b602002015160ff161415613b19576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f6e6f74206472617765640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000805b6004811015613b6857838160048110613b3257fe5b602002015160ff16838260048110613b4657fe5b602002015160ff161415613b5b576001820191505b8080600101915050613b1d565b5060006001821115613cca576000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f7a0c0ca896040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015613be957600080fd5b505afa158015613bfd573d6000803e3d6000fd5b505050506040513d6020811015613c1357600080fd5b810190808051906020019092919050505090506000613c7e6064613c7060018760040360038110613c4057fe5b602091828204019190069054906101000a900460ff1660ff16613c628b612034565b614ca090919063ffffffff16565b614d2690919063ffffffff16565b9050613cc581613cb7613c918a8861380e565b613ca964e8d4a5100087614ca090919063ffffffff16565b614d2690919063ffffffff16565b614ca090919063ffffffff16565b925050505b613ce264e8d4a5100082614d2690919063ffffffff16565b95505050505050919050565b613cf66143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613db6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b613dbe614043565b613e30576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260078152602001807f6472617765643f0000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b42600d819055506000600b819055506000600c819055506000600e600060048110613e5757fe5b602091828204019190066101000a81548160ff021916908360ff1602179055506000600e600160048110613e8757fe5b602091828204019190066101000a81548160ff021916908360ff1602179055506000600e600260048110613eb757fe5b602091828204019190066101000a81548160ff021916908360ff1602179055506000600e600360048110613ee757fe5b602091828204019190066101000a81548160ff021916908360ff1602179055506000600f60006101000a81548160ff0219169083151502179055506001600a5401600a819055506000613f406001600a5403600461380e565b1415614012576000613fa16064613f936001600060038110613f5e57fe5b602091828204019190069054906101000a900460ff1660ff16613f856001600a5403612034565b614ca090919063ffffffff16565b614d2690919063ffffffff16565b9050614010816010600480602002604051908101604052809291908260048015614006576020028201916000905b82829054906101000a900460ff1660ff1681526020019060010190602082600001049283019260010382029150808411613fcf5790505b50505050506149b3565b505b600a547f01c3cbb0d62726ab09d163873ebf9aed99dd8dc08e57bc938f458132fd178cf660405160405180910390a2565b600080600e60006004811061405457fe5b602091828204019190069054906101000a900460ff1660ff161415905090565b60045481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6140a86143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614614168576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156141ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806154fa6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080828401905083811015614329576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6143ee846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050614d70565b50505050565b600033905090565b6144998363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050614d70565b505050565b6144a6615468565b6144ae6152cf565b61451a600e600480602002604051908101604052809291908260048015614510576020028201916000905b82829054906101000a900460ff1660ff16815260200190600101906020826000010492830192600103820291508084116144d95790505b505050505061278b565b9050600060086000600a5481526020019081526020016000206000836000600b811061454257fe5b602002015167ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020549050600060086000600a5481526020019081526020016000206000846001600b811061459257fe5b602002015167ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002054905061461a60086000600a5481526020019081526020016000206000856002600b81106145e357fe5b602002015167ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002054826142ab90919063ffffffff16565b905061467a60086000600a5481526020019081526020016000206000856003600b811061464357fe5b602002015167ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002054826142ab90919063ffffffff16565b90506146da60086000600a5481526020019081526020016000206000856004600b81106146a357fe5b602002015167ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002054826142ab90919063ffffffff16565b905060006147046146f5600485614ca090919063ffffffff16565b83614e5f90919063ffffffff16565b9050600060086000600a5481526020019081526020016000206000866005600b811061472c57fe5b602002015167ffffffffffffffff1667ffffffffffffffff1681526020019081526020016000205490506147b460086000600a5481526020019081526020016000206000876006600b811061477d57fe5b602002015167ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002054826142ab90919063ffffffff16565b905061481460086000600a5481526020019081526020016000206000876007600b81106147dd57fe5b602002015167ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002054826142ab90919063ffffffff16565b905061487460086000600a5481526020019081526020016000206000876008600b811061483d57fe5b602002015167ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002054826142ab90919063ffffffff16565b90506148d460086000600a5481526020019081526020016000206000876009600b811061489d57fe5b602002015167ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002054826142ab90919063ffffffff16565b905061493460086000600a548152602001908152602001600020600087600a600b81106148fd57fe5b602002015167ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002054826142ab90919063ffffffff16565b9050600061498361494f600386614ca090919063ffffffff16565b614975614966600689614ca090919063ffffffff16565b856142ab90919063ffffffff16565b614e5f90919063ffffffff16565b90506040518060800160405280600c54815260200186815260200184815260200182815250965050505050505090565b6149bb614043565b15614a2e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f6472617765642c2063616e206e6f7420627579206e6f7700000000000000000081525060200191505060405180910390fd5b60005b6004811015614ae257600360149054906101000a900460ff1660ff16828260048110614a5957fe5b602002015160ff161115614ad5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f65786365656420746865206d6178696d756d000000000000000000000000000081525060200191505060405180910390fd5b8080600101915050614a31565b506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166337391c00308486600a546040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff16815260200184600460200280838360005b83811015614b7f578082015181840152602081019050614b64565b50505050905001838152602001828152602001945050505050602060405180830381600087803b158015614bb257600080fd5b505af1158015614bc6573d6000803e3d6000fd5b505050506040513d6020811015614bdc57600080fd5b8101908080519060200190929190505050905060066000600a548152602001908152602001600020819080600181540180825580915050600190039060005260206000200160009091909190915055614c4083600c546142ab90919063ffffffff16565b600c8190555042600d819055503073ffffffffffffffffffffffffffffffffffffffff167fe3d4187f6ca4248660cc0ac8b8056515bac4a8132be2eca31d6d0cc170722a7e826040518082815260200191505060405180910390a2505050565b600080831415614cb35760009050614d20565b6000828402905082848281614cc457fe5b0414614d1b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806155466021913960400191505060405180910390fd5b809150505b92915050565b6000614d6883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250614ea9565b905092915050565b6060614dd2826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16614f6f9092919063ffffffff16565b9050600081511115614e5a57808060200190516020811015614df357600080fd5b8101908080519060200190929190505050614e59576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806154d0602a913960400191505060405180910390fd5b5b505050565b6000614ea183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614f87565b905092915050565b60008083118290614f55576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614f1a578082015181840152602081019050614eff565b50505050905090810190601f168015614f475780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581614f6157fe5b049050809150509392505050565b6060614f7e8484600085615047565b90509392505050565b6000838311158290615034576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614ff9578082015181840152602081019050614fde565b50505050905090810190601f1680156150265780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6060824710156150a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806155206026913960400191505060405180910390fd5b6150ab856151f0565b61511d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061516d578051825260208201915060208101905060208303925061514a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146151cf576040519150601f19603f3d011682016040523d82523d6000602084013e6151d4565b606091505b50915091506151e4828286615203565b92505050949350505050565b600080823b905060008111915050919050565b60608315615213578290506152c8565b6000835111156152265782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561528d578082015181840152602081019050615272565b50505050905090810190601f1680156152ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b9392505050565b604051806101600160405280600b90602082028036833780820191505090505090565b826003601f0160209004810192821561537b5791602002820160005b8382111561534c57835183826101000a81548160ff021916908360ff160217905550926020019260010160208160000104928301926001030261530e565b80156153795782816101000a81549060ff021916905560010160208160000104928301926001030261534c565b505b509050615388919061548a565b5090565b6040518060800160405280600490602082028036833780820191505090505090565b826004601f016020900481019282156153e85791601f016020900482015b828111156153e75782548255916001019190600101906153cc565b5b5090506153f5919061548a565b5090565b828054828255906000526020600020908101928215615435579160200282015b82811115615434578251825591602001919060010190615419565b5b50905061544291906154b2565b5090565b6040518060800160405280600490602082028036833780820191505090505090565b6040518060800160405280600490602082028036833780820191505090505090565b5b808211156154ae57600081816101000a81549060ff02191690555060010161548b565b5090565b5b808211156154cb5760008160009055506001016154b3565b509056fe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f776d61746368696e67206e756d6265722073686f756c6420626520736d616c6c6572207468616e2035a26469706673582212205fc73e7da89f23f3908d618b8871fe4a0583c1886a83dc16463fd22df15c0ccb64736f6c634300060c00330000000000000000000000000288d3e353fe2299f11ea2c2e1696b4a648ecc070000000000000000000000000bc15a0b805e2012c29b95c85bf34e3cf4dcdb35000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000000001

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

0000000000000000000000000288d3e353fe2299f11ea2c2e1696b4a648ecc070000000000000000000000000bc15a0b805e2012c29b95c85bf34e3cf4dcdb35000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000000001

-----Decoded View---------------
Arg [0] : _zefi (address): 0x0288d3e353fe2299f11ea2c2e1696b4a648ecc07
Arg [1] : _lottery (address): 0x0bc15a0b805e2012c29b95c85bf34e3cf4dcdb35
Arg [2] : _minPrice (uint256): 100000000000000000
Arg [3] : _maxNumber (uint8): 1

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000288d3e353fe2299f11ea2c2e1696b4a648ecc07
Arg [1] : 0000000000000000000000000bc15a0b805e2012c29b95c85bf34e3cf4dcdb35
Arg [2] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001


Deployed ByteCode Sourcemap

70712:15666:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77077:1072;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;71906:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;71869:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;74178:123;;;:::i;:::-;;71738:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;78157:1328;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;71631:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;85848:143;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;73387:169;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;71128:22;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;72004:24;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;71943:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;79946:688;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;83976:305;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;71288:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;86041:334;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;85707:133;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;71375:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;71793:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;61437:148;;;:::i;:::-;;71008:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;85526:173;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;70942:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;80642:1531;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60795:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;74380:2142;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;79493:445;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;71525:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;85333:185;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;71829:33;;;:::i;:::-;;;;;;;;;;;;;;;;;;;83702:266;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;84289:1036;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;73564:606;;;:::i;:::-;;73287:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;71213:23;;;:::i;:::-;;;;;;;;;;;;;;;;;;;71069:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;61740:244;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;77077:1072;73162:8;:6;:8::i;:::-;73161:9;73153:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73218:12;;;;;;;;;;;73217:13;73209:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77186:8:::1;;77176:6;:18;;77167:57;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;77240:6;77235:113;77256:1;77252;:5;77235:113;;;77303:9;;;;;;;;;;;77288:24;;:8;77297:1;77288:11;;;;;;;;;;;:24;;;;77279:57;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;77259:3;;;;;;;77235:113;;;;77358:15;77376:10;;;;;;;;;;;:25;;;77402:10;77414:8;77424:6;77432:10;;77376:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;77358:85;;77454:11;:23;77466:10;;77454:23;;;;;;;;;;;77483:7;77454:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77537:1;77506:8;:20;77515:10;77506:20;;;;;;;;;;;;;;;:27;;;;:32;77502:100;;;77589:1;77572:14;;:18;77555:14;:35;;;;77502:100;77612:8;:20;77621:10;77612:20;;;;;;;;;;;;;;;77638:7;77612:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77671:23;77687:6;77671:11;;:15;;:23;;;;:::i;:::-;77657:11;:37;;;;77721:15;77705:13;:31;;;;77747:50;;:::i;:::-;77800:32;77823:8;77800:22;:32::i;:::-;77747:85;;77848:6;77843:183;70883:2;77860:23;;:1;:23;77843:183;;;77954:60;78007:6;77954:16;:28;77971:10;;77954:28;;;;;;;;;;;:48;77983:15;77999:1;77983:18;;;;;;;;;;;77954:48;;;;;;;;;;;;;;;;:52;;:60;;;;:::i;:::-;77905:16;:28;77922:10;;77905:28;;;;;;;;;;;:48;77934:15;77950:1;77934:18;;;;;;;;;;;77905:48;;;;;;;;;;;;;;;:109;;;;77885:3;;;;;;;77843:183;;;;78036:65;78066:10;78087:4;78094:6;78036:4;;;;;;;;;;;:21;;;;:65;;;;;;:::i;:::-;78121:10;78117:24;;;78133:7;78117:24;;;;;;;;;;;;;;;;;;73270:1;;77077:1072:::0;;:::o;71906:28::-;;;;:::o;71869:30::-;;;;:::o;74178:123::-;61017:12;:10;:12::i;:::-;61007:22;;:6;;;;;;;;;;:22;;;60999:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74244:8:::1;:6;:8::i;:::-;74243:9;74235:28;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;74289:4;74274:12;;:19;;;;;;;;;;;;;;;;;;74178:123::o:0;71738:46::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;78157:1328::-;73162:8;:6;:8::i;:::-;73161:9;73153:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73218:12;;;;;;;;;;;73217:13;73209:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78273:8:::1;;78263:6;:18;;78254:57;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;78322:18;78361:6:::0;78356:994:::1;78377:8;:15;78373:1;:19;78356:994;;;78419:6;78414:146;78435:1;78431;:5;78414:146;;;78489:9;;;;;;;;;;;78471:27;;:8;78480:1;78471:11;;;;;;;;;;;;;;78483:1;78471:14;;;;;;;;;;;:27;;;;:49;;;;;78519:1;78502:8;78511:1;78502:11;;;;;;;;;;;;;;78514:1;78502:14;;;;;;;;;;;:18;;;78471:49;78462:82;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;78438:3;;;;;;;78414:146;;;;78574:15;78592:10;;;;;;;;;;;:25;;;78618:10;78630:8;78639:1;78630:11;;;;;;;;;;;;;;78643:6;78651:10;;78592:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;78574:88;;78677:11;:23;78689:10;;78677:23;;;;;;;;;;;78706:7;78677:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78764:1;78733:8;:20;78742:10;78733:20;;;;;;;;;;;;;;;:27;;;;:32;78729:108;;;78820:1;78803:14;;:18;78786:14;:35;;;;78729:108;78851:8;:20;78860:10;78851:20;;;;;;;;;;;;;;;78877:7;78851:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78914:23;78930:6;78914:11;;:15;;:23;;;;:::i;:::-;78900:11;:37;;;;78968:15;78952:13;:31;;;;79011:22;79026:6;79011:10;:14;;:22;;;;:::i;:::-;78998:35;;79048:49;;:::i;:::-;79100:35;79123:8;79132:1;79123:11;;;;;;;;;;;;;;79100:22;:35::i;:::-;79048:87;;79155:6;79150:189;70883:2;79167:23;;:1;:23;79150:189;;;79264:59;79316:6;79264:16;:28;79281:10;;79264:28;;;;;;;;;;;:47;79293:14;79308:1;79293:17;;;;;;;;;;;79264:47;;;;;;;;;;;;;;;;:51;;:59;;;;:::i;:::-;79216:16;:28;79233:10;;79216:28;;;;;;;;;;;:47;79245:14;79260:1;79245:17;;;;;;;;;;;79216:47;;;;;;;;;;;;;;;:107;;;;79192:3;;;;;;;79150:189;;;;78356:994;;78394:3;;;;;;;78356:994;;;;79360:69;79390:10;79411:4;79418:10;79360:4;;;;;;;;;;;:21;;;;:69;;;;;;:::i;:::-;79454:10;79445:32;;;79466:10;79445:32;;;;;;;;;;;;;;;;;;73270:1;78157:1328:::0;;:::o;71631:71::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;85848:143::-;61017:12;:10;:12::i;:::-;61007:22;;:6;;;;;;;;;;:22;;;60999:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85930:10:::1;85918:9;;:22;;;;;;;;;;;;;;;;;;85956:27;85973:9;;;;;;;;;;;85956:27;;;;;;;;;;;;;;;;;;;;85848:143:::0;:::o;73387:169::-;61017:12;:10;:12::i;:::-;61007:22;;:6;;;;;;;;;;:22;;;60999:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73470:19:::1;:17;:19::i;:::-;73500:30;73508:21;73500:7;:30::i;:::-;73541:7;:5;:7::i;:::-;73387:169:::0;:::o;71128:22::-;;;;;;;;;;;;;:::o;72004:24::-;;;;;;;;;;;;;:::o;71943:30::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;79946:688::-;80013:19;80052:6;80047:375;80068:8;:15;80064:1;:19;80047:375;;;80128:10;;;;;;;;;;;:18;;;80147:8;80156:1;80147:11;;;;;;;;;;;;;;80128:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80114:45;;:10;:45;;;80105:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80203:10;;;;;;;;;;;:25;;;80229:8;80238:1;80229:11;;;;;;;;;;;;;;80203:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80202:39;80193:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80268:14;80285:26;80299:8;80308:1;80299:11;;;;;;;;;;;;;;80285:13;:26::i;:::-;80268:43;;80336:1;80329:6;:8;80326:85;;;80372:23;80383:11;80372:6;:10;;:23;;;;:::i;:::-;80358:37;;80326:85;80047:375;80085:3;;;;;;;80047:375;;;;80432:10;;;;;;;;;;;:27;;;80460:8;80432:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80495:1;80483:11;:13;80480:96;;;80513:51;80539:10;80552:11;80513:4;;;;;;;;;;;:17;;;;:51;;;;;:::i;:::-;80480:96;80602:10;80591:35;;;80614:11;80591:35;;;;;;;;;;;;;;;;;;79946:688;;:::o;83976:305::-;84042:7;84086:10;;84071:11;:25;;84062:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84143:8;:6;:8::i;:::-;84142:9;:38;;;;;84170:10;;84155:11;:25;84142:38;84139:88;;;84204:11;;84197:18;;;;84139:88;84244:13;:26;84258:11;84244:26;;;;;;;;;;;84271:1;84244:29;;;;;;;;;;;;;;;;84237:36;;83976:305;;;;:::o;71288:51::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;86041:334::-;61017:12;:10;:12::i;:::-;61007:22;;:6;;;;;;;;;;:22;;;60999:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86208:3:::1;86193:12;86178;86163;:27;:42;:48;;;86154:72;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;86237:55;;;;;;;;86251:12;86237:55;;;;;;;;86265:12;86237:55;;;;;;;;86279:12;86237:55;;;;;;::::0;:10:::1;:55;;;;;;;:::i;:::-;;86308:59;86326:12;86340;86354;86308:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86041:334:::0;;;:::o;85707:133::-;61017:12;:10;:12::i;:::-;61007:22;;:6;;;;;;;;;;:22;;;60999:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85785:6:::1;85774:8;:17;;;;85807:25;85823:8;;85807:25;;;;;;;;;;;;;;;;;;85707:133:::0;:::o;71375:49::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;71793:29::-;;;;:::o;61437:148::-;61017:12;:10;:12::i;:::-;61007:22;;:6;;;;;;;;;;:22;;;60999:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61544:1:::1;61507:40;;61528:6;::::0;::::1;;;;;;;;61507:40;;;;;;;;;;;;61575:1;61558:6:::0;::::1;:19;;;;;;;;;;;;;;;;;;61437:148::o:0;71008:18::-;;;;;;;;;;;;;:::o;85526:173::-;61017:12;:10;:12::i;:::-;61007:22;;:6;;;;;;;;;;:22;;;60999:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85596:47:::1;85622:10;85635:7;85596:4;;;;;;;;;;;:17;;;;:47;;;;;:::i;:::-;85671:10;85659:32;;;85683:7;85659:32;;;;;;;;;;;;;;;;;;85526:173:::0;:::o;70942:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;80642:1531::-;80719:34;;:::i;:::-;80766:27;;:::i;:::-;80825:6;80832:1;80825:9;;;;;;;;;;;80818:17;;80804:10;80815:1;80804:13;;;;;;;;;;:31;;;;;;;;;;;80867:6;80874:1;80867:9;;;;;;;;;;;80860:17;;80846:10;80857:1;80846:13;;;;;;;;;;:31;;;;;;;;;;;80909:6;80916:1;80909:9;;;;;;;;;;;80902:17;;80888:10;80899:1;80888:13;;;;;;;;;;:31;;;;;;;;;;;80951:6;80958:1;80951:9;;;;;;;;;;;80944:17;;80930:10;80941:1;80930:13;;;;;;;;;;:31;;;;;;;;;;;80974:41;;:::i;:::-;81182:10;81193:1;81182:13;;;;;;;;;;;81174:5;81168:3;81164;81150:10;81161:1;81150:13;;;;;;;;;;;:17;:21;81134:13;81128:3;81124;81120;81116;81102:10;81113:1;81102:13;;;;;;;;;;;:17;:21;:25;:29;81078:21;81072:3;81068;81064;81060;81056;81052;81038:10;81049:1;81038:13;;;;;;;;;;;:17;:21;:25;:29;:33;:37;:61;:93;:109;:133;:141;:157;81026:6;81033:1;81026:9;;;;;;;;;;:169;;;;;;;;;;;81299:10;81310:1;81299:13;;;;;;;;;;;81292:5;81286:3;81282;81268:10;81279:1;81268:13;;;;;;;;;;;:17;:21;81252:13;81246:3;81242;81238;81234;81220:10;81231:1;81220:13;;;;;;;;;;;:17;:21;:25;:29;:45;:69;:77;:92;81208:6;81215:1;81208:9;;;;;;;;;;:104;;;;;;;;;;;81414:10;81425:1;81414:13;;;;;;;;;;;81407:5;81401:3;81397;81383:10;81394:1;81383:13;;;;;;;;;;;:17;:21;81367:13;81361:3;81357;81353;81349;81335:10;81346:1;81335:13;;;;;;;;;;;:17;:21;:25;:29;:45;:69;:77;:92;81323:6;81330:1;81323:9;;;;;;;;;;:104;;;;;;;;;;;81530:10;81541:1;81530:13;;;;;;;;;;;81522:5;81516:3;81512;81498:10;81509:1;81498:13;;;;;;;;;;;:17;:21;81482:13;81476:3;81472;81468;81464;81450:10;81461:1;81450:13;;;;;;;;;;;:17;:21;:25;:29;:45;:69;:77;:93;81438:6;81445:1;81438:9;;;;;;;;;;:105;;;;;;;;;;;81670:10;81681:1;81670:13;;;;;;;;;;;81662:5;81656:3;81652;81638:10;81649:1;81638:13;;;;;;;;;;;:17;:21;81622:13;81616:3;81612;81608;81604;81590:10;81601:1;81590:13;;;;;;;;;;;:17;:21;:25;:29;81566:21;:53;:69;:93;:101;:117;81554:6;81561:1;81554:9;;;;;;;;;;:129;;;;;;;;;;;81739:10;81750:1;81739:13;;;;;;;;;;;81732:5;81726:3;81722;81708:10;81719:1;81708:13;;;;;;;;;;;:17;:21;:29;:44;81696:6;81703:1;81696:9;;;;;;;;;;:56;;;;;;;;;;;81806:10;81817:1;81806:13;;;;;;;;;;;81799:5;81793:3;81789;81775:10;81786:1;81775:13;;;;;;;;;;;:17;:21;:29;:44;81763:6;81770:1;81763:9;;;;;;;;;;:56;;;;;;;;;;;81873:10;81884:1;81873:13;;;;;;;;;;;81866:5;81860:3;81856;81842:10;81853:1;81842:13;;;;;;;;;;;:17;:21;:29;:44;81830:6;81837:1;81830:9;;;;;;;;;;:56;;;;;;;;;;;81957:10;81968:1;81957:13;;;;;;;;;;;81949:5;81943:3;81939;81925:10;81936:1;81925:13;;;;;;;;;;;:17;:21;81909:13;:37;:45;:61;81897:6;81904:1;81897:9;;;;;;;;;;:73;;;;;;;;;;;82041:10;82052:1;82041:13;;;;;;;;;;;82033:5;82027:3;82023;82009:10;82020:1;82009:13;;;;;;;;;;;:17;:21;81993:13;:37;:45;:61;81981:6;81988:1;81981:9;;;;;;;;;;:73;;;;;;;;;;;82126:10;82137:1;82126:13;;;;;;;;;;;82118:5;82112:3;82108;82094:10;82105:1;82094:13;;;;;;;;;;;:17;:21;82078:13;:37;:45;:61;82065:6;82072:2;82065:10;;;;;;;;;;:74;;;;;;;;;;;82159:6;82152:13;;;;80642:1531;;;:::o;60795:79::-;60833:7;60860:6;;;;;;;;;;;60853:13;;60795:79;:::o;74380:2142::-;61017:12;:10;:12::i;:::-;61007:22;;:6;;;;;;;;;;:22;;;60999:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74465:8:::1;:6;:8::i;:::-;74464:9;74456:28;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;74503:12;;;;;;;;;;;74495:50;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;74556:19;74586:21:::0;74618:16:::1;74637:9;;;;;;;;;;;74618:28;;74657:18;74701:1;74688:12;:14;74678:25;74657:46;;74714:15;74732:9;74714:27;;74835:10;74864:14;;74897:7;74923:21;74806:153;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74782:188;;;;;;74768:202;;75006:11;74998:20;;74981:37;;75091:1;75079:10;75064:13;75060:30;75056:37;75039:54;;75128:13;75104:14;75119:1;75104:17;;;;;;;;;;;;;;;;:38;;;;;;;;;;;;;;;;;;75236:10;75265:11;;75295:7;75321:21;75207:150;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75183:185;;;;;;75169:199;;75404:11;75396:20;;75379:37;;75489:1;75477:10;75462:13;75458:30;75454:37;75437:54;;75526:13;75502:14;75517:1;75502:17;;;;;;;;;;;;;;;;:38;;;;;;;;;;;;;;;;;;75634:10;75663:13;;75695:7;75721:21;75605:152;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75581:187;;;;;;75567:201;;75804:11;75796:20;;75779:37;;75889:1;75877:10;75862:13;75858:30;75854:37;75837:54;;75926:13;75902:14;75917:1;75902:17;;;;;;;;;;;;;;;;:38;;;;;;;;;;;;;;;;;;76034:10;76063:7;76089:21;76005:120;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75981:155;;;;;;75967:169;;76172:11;76164:20;;76147:37;;76257:1;76245:10;76230:13;76226:30;76222:37;76205:54;;76294:13;76270:14;76285:1;76270:17;;;;;;;;;;;;;;;;:38;;;;;;;;;;;;;;;;;;76348:14;76319;:26;76334:10;;76319:26;;;;;;;;;;;:43;;;;;;;:::i;:::-;;76401:31;:29;:31::i;:::-;76373:13;:25;76387:10;;76373:25;;;;;;;;;;;:59;;;;;;;:::i;:::-;;76458:5;76443:12;;:20;;;;;;;;;;;;;;;;;;76487:10;;76479:35;76499:14;76479:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61077:1;;;;;74380:2142:::0;:::o;79493:445::-;79574:10;;;;;;;;;;;:18;;;79593:8;79574:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79560:42;;:10;:42;;;79552:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79642:10;;;;;;;;;;;:25;;;79668:8;79642:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79641:36;79632:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79700:14;79717:23;79731:8;79717:13;:23::i;:::-;79700:40;;79751:10;;;;;;;;;;;:22;;;79774:8;79751:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79804:1;79797:6;:8;79794:86;;;79822:46;79848:10;79861:6;79822:4;;;;;;;;;;;:17;;;;:46;;;;;:::i;:::-;79794:86;79901:10;79895:35;;;79913:8;79923:6;79895:35;;;;;;;;;;;;;;;;;;;;;;;;79493:445;;:::o;71525:51::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;85333:185::-;61017:12;:10;:12::i;:::-;61007:22;;:6;;;;;;;;;;:22;;;60999:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85401:32:::1;85413:7;85422:10;85401:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:11;:32::i;:::-;85444:66;85474:10;85495:4;85502:7;85444:4;;;;;;;;;;;:21;;;;:66;;;;;;:::i;:::-;85333:185:::0;:::o;71829:33::-;;;;:::o;83702:266::-;83802:7;83849:1;83830:15;:20;;83822:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83913:13;:26;83927:11;83913:26;;;;;;;;;;;83944:15;83940:1;:19;83913:47;;;;;;;;;;;;;;;;83906:54;;83702:266;;;;:::o;84289:1036::-;84350:7;84370:19;84392:10;;;;;;;;;;;:31;;;84424:8;84392:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84370:63;;84444:30;;:::i;:::-;84477:10;;;;;;;;;;;:28;;;84506:8;84477:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84444:71;;84526:31;;:::i;:::-;84560:14;:27;84575:11;84560:27;;;;;;;;;;;84526:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84628:1;84606:15;84622:1;84606:18;;;;;;;;;;;:23;;;;84598:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84657:22;84699:6;84694:188;84715:21;84711:1;:25;84694:188;;;84784:14;84799:1;84784:17;;;;;;;;;;;84762:39;;:15;84778:1;84762:18;;;;;;;;;;;:39;;;84758:113;;;84854:1;84838:14;:17;84822:33;;84758:113;84738:3;;;;;;;84694:188;;;;84892:14;84942:1;84925:14;:18;84921:363;;;84960:14;84977:10;;;;;;;;;;;:27;;;85005:8;84977:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84960:54;;85029:18;85050:71;85117:3;85050:62;85083:10;85096:14;85094:1;:16;85083:28;;;;;;;;;;;;;;;;;;;;;;;;;85050:62;;:28;85066:11;85050:15;:28::i;:::-;:32;;:62;;;;:::i;:::-;:66;;:71;;;;:::i;:::-;85029:92;;85145:90;85224:10;85145:74;85166:52;85190:11;85203:14;85166:23;:52::i;:::-;85145:16;85156:4;85145:6;:10;;:16;;;;:::i;:::-;:20;;:74;;;;:::i;:::-;:78;;:90;;;;:::i;:::-;85136:99;;84921:363;;;85301:16;85312:4;85301:6;:10;;:16;;;;:::i;:::-;85294:23;;;;;;;84289:1036;;;:::o;73564:606::-;61017:12;:10;:12::i;:::-;61007:22;;:6;;;;;;;;;;:22;;;60999:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73617:8:::1;:6;:8::i;:::-;73609:28;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;73664:15;73648:13;:31;;;;73707:1;73690:14;:18;;;;73733:1;73719:11;:15;;;;73763:1;73745:14;73760:1;73745:17;;;;;;;;;;;;;;;;:19;;;;;;;;;;;;;;;;;;73793:1;73775:14;73790:1;73775:17;;;;;;;;;;;;;;;;:19;;;;;;;;;;;;;;;;;;73823:1;73805:14;73820:1;73805:17;;;;;;;;;;;;;;;;:19;;;;;;;;;;;;;;;;;;73853:1;73835:14;73850:1;73835:17;;;;;;;;;;;;;;;;:19;;;;;;;;;;;;;;;;;;73880:5;73865:12;;:20;;;;;;;;;;;;;;;;;;73921:1;73909:10;;:13;73896:10;:26;;;;73980:1;73936:40;73971:1;73960:10;;:12;73974:1;73936:23;:40::i;:::-;:45;73933:197;;;73998:14;74015:57;74068:3;74015:48;74049:10;74060:1;74049:13;;;;;;;;;;;;;;;;;;;;;;;;;74015:48;;:29;74042:1;74031:10;;:12;74015:15;:29::i;:::-;:33;;:48;;;;:::i;:::-;:52;;:57;;;;:::i;:::-;73998:74;;74087:31;74099:6;74107:10;74087:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:11;:31::i;:::-;73933:197;;74151:10;;74145:17;;;;;;;;;;73564:606::o:0;73287:92::-;73325:4;73370:1;73349:14;73364:1;73349:17;;;;;;;;;;;;;;;;;;;;;;;;;:22;;;;73342:29;;73287:92;:::o;71213:23::-;;;;:::o;71069:28::-;;;;;;;;;;;;;:::o;61740:244::-;61017:12;:10;:12::i;:::-;61007:22;;:6;;;;;;;;;;:22;;;60999:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61849:1:::1;61829:22;;:8;:22;;;;61821:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61939:8;61910:38;;61931:6;::::0;::::1;;;;;;;;61910:38;;;;;;;;;;;;61968:8;61959:6;::::0;:17:::1;;;;;;;;;;;;;;;;;;61740:244:::0;:::o;11140:181::-;11198:7;11218:9;11234:1;11230;:5;11218:17;;11259:1;11254;:6;;11246:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11312:1;11305:8;;;11140:181;;;;:::o;67765:205::-;67866:96;67886:5;67916:27;;;67945:4;67951:2;67955:5;67893:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67866:19;:96::i;:::-;67765:205;;;;:::o;577:106::-;630:15;665:10;658:17;;577:106;:::o;67580:177::-;67663:86;67683:5;67713:23;;;67738:2;67742:5;67690:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67663:19;:86::i;:::-;67580:177;;;:::o;82181:1513::-;82245:17;;:::i;:::-;82275:49;;:::i;:::-;82327:38;82350:14;82327:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:22;:38::i;:::-;82275:90;;82378:19;82400:16;:28;82417:10;;82400:28;;;;;;;;;;;:47;82429:14;82444:1;82429:17;;;;;;;;;;;82400:47;;;;;;;;;;;;;;;;82378:69;;82460:25;82488:16;:28;82505:10;;82488:28;;;;;;;;;;;:47;82517:14;82532:1;82517:17;;;;;;;;;;;82488:47;;;;;;;;;;;;;;;;82460:75;;82566:70;82588:16;:28;82605:10;;82588:28;;;;;;;;;;;:47;82617:14;82632:1;82617:17;;;;;;;;;;;82588:47;;;;;;;;;;;;;;;;82566:17;:21;;:70;;;;:::i;:::-;82546:90;;82667:70;82689:16;:28;82706:10;;82689:28;;;;;;;;;;;:47;82718:14;82733:1;82718:17;;;;;;;;;;;82689:47;;;;;;;;;;;;;;;;82667:17;:21;;:70;;;;:::i;:::-;82647:90;;82768:70;82790:16;:28;82807:10;;82790:28;;;;;;;;;;;:47;82819:14;82834:1;82819:17;;;;;;;;;;;82790:47;;;;;;;;;;;;;;;;82768:17;:21;;:70;;;;:::i;:::-;82748:90;;82851:19;82873:41;82895:18;82911:1;82895:11;:15;;:18;;;;:::i;:::-;82873:17;:21;;:41;;;;:::i;:::-;82851:63;;82927:25;82955:16;:28;82972:10;;82955:28;;;;;;;;;;;:47;82984:14;82999:1;82984:17;;;;;;;;;;;82955:47;;;;;;;;;;;;;;;;82927:75;;83033:70;83055:16;:28;83072:10;;83055:28;;;;;;;;;;;:47;83084:14;83099:1;83084:17;;;;;;;;;;;83055:47;;;;;;;;;;;;;;;;83033:17;:21;;:70;;;;:::i;:::-;83013:90;;83134:70;83156:16;:28;83173:10;;83156:28;;;;;;;;;;;:47;83185:14;83200:1;83185:17;;;;;;;;;;;83156:47;;;;;;;;;;;;;;;;83134:17;:21;;:70;;;;:::i;:::-;83114:90;;83235:70;83257:16;:28;83274:10;;83257:28;;;;;;;;;;;:47;83286:14;83301:1;83286:17;;;;;;;;;;;83257:47;;;;;;;;;;;;;;;;83235:17;:21;;:70;;;;:::i;:::-;83215:90;;83336:70;83358:16;:28;83375:10;;83358:28;;;;;;;;;;;:47;83387:14;83402:1;83387:17;;;;;;;;;;;83358:47;;;;;;;;;;;;;;;;83336:17;:21;;:70;;;;:::i;:::-;83316:90;;83437:71;83459:16;:28;83476:10;;83459:28;;;;;;;;;;;:48;83488:14;83503:2;83488:18;;;;;;;;;;;83459:48;;;;;;;;;;;;;;;;83437:17;:21;;:71;;;;:::i;:::-;83417:91;;83521:19;83543:71;83589:24;83611:1;83589:17;:21;;:24;;;;:::i;:::-;83543:41;83565:18;83581:1;83565:11;:15;;:18;;;;:::i;:::-;83543:17;:21;;:41;;;;:::i;:::-;:45;;:71;;;;:::i;:::-;83521:93;;83627:59;;;;;;;;83635:11;;83627:59;;;;83648:11;83627:59;;;;83661:11;83627:59;;;;83674:11;83627:59;;;;;;;;;;;82181:1513;:::o;76530:539::-;76623:8;:6;:8::i;:::-;76622:9;76613:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76675:6;76670:112;76691:1;76687;:5;76670:112;;;76738:9;;;;;;;;;;;76723:24;;:8;76732:1;76723:11;;;;;;;;;;;:24;;;;76714:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76694:3;;;;;;;76670:112;;;;76792:15;76810:10;;;;;;;;;;;:25;;;76844:4;76851:8;76861:6;76869:10;;76810:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76792:88;;76891:11;:23;76903:10;;76891:23;;;;;;;;;;;76920:7;76891:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76953:23;76969:6;76953:11;;:15;;:23;;;;:::i;:::-;76939:11;:37;;;;77003:15;76987:13;:31;;;;77046:4;77034:27;;;77053:7;77034:27;;;;;;;;;;;;;;;;;;76530:539;;;:::o;12494:471::-;12552:7;12802:1;12797;:6;12793:47;;;12827:1;12820:8;;;;12793:47;12852:9;12868:1;12864;:5;12852:17;;12897:1;12892;12888;:5;;;;;;:10;12880:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12956:1;12949:8;;;12494:471;;;;;:::o;13441:132::-;13499:7;13526:39;13530:1;13533;13526:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;13519:46;;13441:132;;;;:::o;69885:761::-;70309:23;70335:69;70363:4;70335:69;;;;;;;;;;;;;;;;;70343:5;70335:27;;;;:69;;;;;:::i;:::-;70309:95;;70439:1;70419:10;:17;:21;70415:224;;;70561:10;70550:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70542:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70415:224;69885:761;;;:::o;11604:136::-;11662:7;11689:43;11693:1;11696;11689:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;11682:50;;11604:136;;;;:::o;14069:278::-;14155:7;14187:1;14183;:5;14190:12;14175:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14214:9;14230:1;14226;:5;;;;;;14214:17;;14338:1;14331:8;;;14069:278;;;;;:::o;19204:195::-;19307:12;19339:52;19361:6;19369:4;19375:1;19378:12;19339:21;:52::i;:::-;19332:59;;19204:195;;;;;:::o;12043:192::-;12129:7;12162:1;12157;:6;;12165:12;12149:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12189:9;12205:1;12201;:5;12189:17;;12226:1;12219:8;;;12043:192;;;;;:::o;20256:530::-;20383:12;20441:5;20416:21;:30;;20408:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20508:18;20519:6;20508:10;:18::i;:::-;20500:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20634:12;20648:23;20675:6;:11;;20695:5;20703:4;20675:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20633:75;;;;20726:52;20744:7;20753:10;20765:12;20726:17;:52::i;:::-;20719:59;;;;20256:530;;;;;;:::o;16286:422::-;16346:4;16554:12;16665:7;16653:20;16645:28;;16699:1;16692:4;:8;16685:15;;;16286:422;;;:::o;21792:742::-;21907:12;21936:7;21932:595;;;21967:10;21960:17;;;;21932:595;22101:1;22081:10;:17;:21;22077:439;;;22344:10;22338:17;22405:15;22392:10;22388:2;22384:19;22377:44;22292:148;22487:12;22480:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21792:742;;;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://5fc73e7da89f23f3908d618b8871fe4a0583c1886a83dc16463fd22df15c0ccb
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.