Contract 0x8a8dfa0d043cbac64c51cacd91eef6921c6700e3

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
Txn Hash
Block
From
To
Value [Txn Fee]
0x8ba85cc128c3079ec1d5e8c9050851c93586656172faa26ef5d39bb15b94cb8083119732021-06-15 7:08:2344 days 19 hrs ago0xf9ee65c706b22ea1552b4fa9e4064fc602cb20f1 IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.01135786
0xeb98b94a9b34921317cec7e57ae623551168da50fad636fdbbac4bc0535c072482526572021-06-13 5:06:2446 days 21 hrs ago0x9c56f88445006cef92e1f75fb1f63db2ad6b0c43 IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.003
0xac1577195d663808cde9720dbfa57941ec4bf5e8d6fcdfe6bb7235865fcdf8e581312512021-06-08 23:30:1351 days 3 hrs ago0x9980f2ba288c8a677a9c6dd2e6a019a8fc16720b IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.00340174
0x874eef6775d055a3449764cb10767eb40186f230c9d8e71e362e1eab89fe18b080730012021-06-06 22:52:5753 days 3 hrs ago0x6aa4323af7e00ea3c3b7837f53e0d3ace5bccb56 IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.003
0x9ba8f346951f293ca79b7a93d8cdf0ba54703e17695e74c18311d37b8585c6ab80727942021-06-06 22:42:3653 days 3 hrs ago0x6aa4323af7e00ea3c3b7837f53e0d3ace5bccb56 IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.00054136
0x0e418cac2a4318be752111886c0a62409498b57faf33b4d0f46aa326797b483580703922021-06-06 20:42:3053 days 5 hrs agoVanillaCake: Deployer IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.002389085
0x4f13de30494e78ad458b323ecd107d6b7e22e79d4a44d6dcbbc714d721045abc80560952021-06-06 8:45:3353 days 17 hrs ago0x6aa4323af7e00ea3c3b7837f53e0d3ace5bccb56 IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.008621085
0x73755788109a36024d89966949db4c44d4a9fc9e194d44b2840cd73d853192fb80524032021-06-06 5:40:4553 days 20 hrs ago0xf03edf8af793f9d1e260021625d938219bb283b1 IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.013352765
0xf79090e185c350b100716916a3cdb4fd9aaca6f47cb9fa21cc6b44a4076965e580114402021-06-04 19:28:5955 days 7 hrs ago0xa1e7fc2f51649fbbb56b70cdcc81d6d493b15510 IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.005734345
0x7975e05915d2795e2109e0b5922292eac934b9968c238df129d4c15658f4e7ca79861752021-06-03 22:21:1456 days 4 hrs ago0xb7ca75595a3bc22667bec40ac86fa64f57f943a8 IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.00332674
0xf10f2336067fa9b10e93ad3b991d6d78a9ee5327975901b15bd3783f9e42bf3779714912021-06-03 10:04:4156 days 16 hrs ago0x23a7de3068dc5e14cc231ece81a570fcdce9105c IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.005809345
0x390589acb9471abf3c28f013c9c315108ff2af06c118c5a2e7cc8bd671bfa63279714712021-06-03 10:03:4156 days 16 hrs ago0x23a7de3068dc5e14cc231ece81a570fcdce9105c IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.00061636
0xc0a43906b27762458b38bcbd3db5b9379b79dd8b98422a5e91e38a21800543b379358622021-06-02 4:16:5857 days 22 hrs ago0x3f90719be102868ac9404aba7c8a54009970b3c0 IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.00302674
0x3b28f412b5ef5ec907b13c66231b67ad6260dbd162ca376480940799b67a2b2779116412021-06-01 8:03:3558 days 18 hrs ago0xf9ee65c706b22ea1552b4fa9e4064fc602cb20f1 IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.005809345
0x002a322c1f2e6dcff3c196b3aaa1cad8d9f1c2dce3ff4a24a4247629ebba176b79041602021-06-01 1:46:4259 days 50 mins ago0x3bd111ee4766bb56e88ec260ae1a0b06fe0999f6 IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.00332674
0x9669874e9047d4823a364454412a8e526f82baea82760448d50536dcf737b49578950272021-05-31 18:08:0459 days 8 hrs ago0x03fe4d21f0949c515745fe65d0a785b74838c7dc IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.00332674
0xe9dfe1fb2cde78abc56982bd959849d60a4312fe2b3d15f1c5cbd828ca25480f78683242021-05-30 19:46:1960 days 6 hrs ago0x7999353e23872637956995cd18d7d3679dc040a4 IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.00325174
0x4bfb526987e11257dc03d3209ee1c2e9733d1cf982aa0d17b035f18e6da85f7f78622992021-05-30 14:44:1160 days 11 hrs ago0x5b86d7b5060c081d1cbb8f8016b4dc7a39b67894 IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.00054136
0x03c2d93e9df71c50f3ba84cf9c7dd0e3a43551164d6b768ad7af77ee356e365a78608902021-05-30 13:33:4460 days 13 hrs ago0x1d8d337835615d4d6a2620dad51da2ff84655e8b IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.00332674
0xf2975ea21e6aed4e309e076e96a33d52cd777151bb76dbfb77e284455327970c78415212021-05-29 21:23:3661 days 5 hrs ago0x26697598dbf87b05fb1bd7e43bcc00cca8ac068b IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.014019665
0x3ace5927eda8bbaf5b242ee6d65f0e859102d0a79f4aef734e747e07656e2c8e78415112021-05-29 21:23:0661 days 5 hrs ago0x26697598dbf87b05fb1bd7e43bcc00cca8ac068b IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.00314764
0x62f7135083f34389e2058934766247c05809f2841a6048ce396542759008e14078413102021-05-29 21:13:0361 days 5 hrs ago0x26697598dbf87b05fb1bd7e43bcc00cca8ac068b IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.00332674
0xca91da07f0a75ae69ed066da52a99b139dddb282ef8eb7aa1789eda912af5dd678299762021-05-29 11:42:4361 days 14 hrs agoVanillaCake: Deployer IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.002389085
0x75522bcf59df389b8d8cfd83a7986dc5e95bc5582e706bf2d4e5ecdfa35ae28978198972021-05-29 3:17:2461 days 23 hrs ago0xeafe05509ac6bcfc520f198eab3fd403d2ea82b7 IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.005584345
0x8d6a728ef62b8e1541a72662ad79e5acbbfc97e0049e42eea0e21124e149d1cd77960632021-05-28 7:22:2162 days 19 hrs ago0xf065fcfcdbe6b093c330306c219f86186e8f7f64 IN  0x8a8dfa0d043cbac64c51cacd91eef6921c6700e30 BNB0.00299764
[ 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, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-05-16
*/

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("Vcake Lottery Ticket", "VLT") {}

    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 vcake;
    // 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 _vcake,
        LotteryNFT _lottery,
        uint256 _minPrice,
        uint8 _maxNumber
    ) 
    public
    Ownable()
    {
        vcake = _vcake;
        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);
        }
        vcake.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);
            }
        }
        vcake.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) {
            vcake.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) {
            vcake.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-VCAKE-7 scaling is done before
        }
        return reward.div(1e12);
    }

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

    function adminWithdraw(uint256 _amount) external onlyOwner {
        vcake.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 ABI

[{"inputs":[{"internalType":"contract IBEP20","name":"_vcake","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":[],"name":"vcake","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"winningNumbers","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"}]

60806040526000600a556000600b556000600c556040518060800160405280600060ff168152602001600060ff168152602001600060ff168152602001600060ff1681525060109060046200005692919062000260565b503480156200006457600080fd5b50604051620059a0380380620059a0833981810160405260808110156200008a57600080fd5b81019080805190602001909291908051906020019092919080519060200190929190805190602001909291905050506000620000cb6200025860201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35083600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160048190555080600360146101000a81548160ff021916908360ff16021790555042600d819055506040518060600160405280603260ff168152602001601460ff168152602001600a60ff1681525060019060036200024d92919062000301565b5050505050620003cc565b600033905090565b826004601f01602090048101928215620002ee5791602002820160005b83821115620002bd57835183826101000a81548160ff021916908360ff16021790555092602001926001016020816000010492830192600103026200027d565b8015620002ec5782816101000a81549060ff0219169055600101602081600001049283019260010302620002bd565b505b509050620002fd9190620003a2565b5090565b826003601f016020900481019282156200038f5791602002820160005b838211156200035e57835183826101000a81548160ff021916908360ff16021790555092602001926001016020816000010492830192600103026200031e565b80156200038d5782816101000a81549060ff02191690556001016020816000010492830192600103026200035e565b505b5090506200039e9190620003a2565b5090565b5b80821115620003c857600081816101000a81549060ff021916905550600101620003a3565b5090565b6155c480620003dc6000396000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c80636575243f11610130578063c39f49c0116100b8578063d826f88f1161007c578063d826f88f14610ab0578063e134541614610aba578063e45be8eb14610ada578063e8adfbc714610af8578063f2fde38b14610b2c57610227565b8063c39f49c01461098a578063c82c6e2a146109d6578063cfad527714610a04578063d1f7dbcf14610a22578063d411b0fa14610a6e57610227565b8063850bad94116100ff578063850bad941461081457806385dcdf1b146108595780638da5cb5b146108fa578063a42206c91461092e578063ae169a501461095c57610227565b80636575243f146107725780636a28f828146107be578063715018a6146107dc5780637c5b4a37146107e657610227565b8063327af9f8116101b35780634ed73d28116101825780634ed73d28146105b0578063552164ee1461066857806359bcbd68146106aa5780635c17623a146106f95780635ea8cd121461074457610227565b8063327af9f8146104fc5780633a4f69991461052a578063438209f51461054b5780634e45f0951461056b57610227565b806321ce919d116101fa57806321ce919d146102e15780632bdff851146103435780632d66ae64146104415780632f506b2014610475578063324a5562146104cb57610227565b806314c20d571461022c57806319d8ac611461029b5780631a39d8ef146102b95780631ff68866146102d7575b600080fd5b610299600480360360a081101561024257600080fd5b810190808035906020019092919080608001906004806020026040519081016040528092919082600460200280828437600081840152601f19601f8201169050808301925050505050509192919290505050610b70565b005b6102a3611141565b6040518082815260200191505060405180910390f35b6102c1611147565b6040518082815260200191505060405180910390f35b6102df61114d565b005b61032d600480360360408110156102f757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506112ad565b6040518082815260200191505060405180910390f35b61043f6004803603604081101561035957600080fd5b81019080803590602001909291908035906020019064010000000081111561038057600080fd5b82018360208201111561039257600080fd5b803590602001918460808302840111640100000000831117156103b457600080fd5b9190808060200260200160405190810160405280939291908181526020016000905b8282101561042d578484839050608002016004806020026040519081016040528092919082600460200280828437600081840152601f19601f820116905080830192505050505050815260200190600101906103d6565b505050505091929192905050506112db565b005b610449611948565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104b56004803603604081101561048b57600080fd5b8101908080359060200190929190803567ffffffffffffffff16906020019092919050505061196e565b6040518082815260200191505060405180910390f35b6104fa600480360360208110156104e157600080fd5b81019080803560ff169060200190929190505050611993565b005b6105286004803603602081101561051257600080fd5b8101908080359060200190929190505050611ac2565b005b610532611ba6565b604051808260ff16815260200191505060405180910390f35b610553611bb9565b60405180821515815260200191505060405180910390f35b6105976004803603602081101561058157600080fd5b8101908080359060200190929190505050611bcc565b604051808260ff16815260200191505060405180910390f35b610666600480360360208110156105c657600080fd5b81019080803590602001906401000000008111156105e357600080fd5b8201836020820111156105f557600080fd5b8035906020019184602083028401116401000000008311171561061757600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290505050611bf3565b005b6106946004803603602081101561067e57600080fd5b810190808035906020019092919050505061205a565b6040518082815260200191505060405180910390f35b6106e0600480360360408110156106c057600080fd5b81019080803590602001909291908035906020019092919050505061212b565b604051808260ff16815260200191505060405180910390f35b6107426004803603606081101561070f57600080fd5b81019080803560ff169060200190929190803560ff169060200190929190803560ff169060200190929190505050612161565b005b6107706004803603602081101561075a57600080fd5b8101908080359060200190929190505050612339565b005b6107a86004803603604081101561078857600080fd5b810190808035906020019092919080359060200190929190505050612444565b6040518082815260200191505060405180910390f35b6107c6612472565b6040518082815260200191505060405180910390f35b6107e4612478565b005b610812600480360360208110156107fc57600080fd5b81019080803590602001909291905050506125fe565b005b6108406004803603602081101561082a57600080fd5b8101908080359060200190929190505050612764565b604051808260ff16815260200191505060405180910390f35b6108bc6004803603608081101561086f57600080fd5b8101908080608001906004806020026040519081016040528092919082600460200280828437600081840152601f19601f820116905080830192505050505050919291929050505061278b565b6040518082600b60200280838360005b838110156108e75780820151818401526020810190506108cc565b5050505090500191505060405180910390f35b610902612d9a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61095a6004803603602081101561094457600080fd5b8101908080359060200190929190505050612dc3565b005b6109886004803603602081101561097257600080fd5b8101908080359060200190929190505050613299565b005b6109c0600480360360408110156109a057600080fd5b810190808035906020019092919080359060200190929190505050613653565b6040518082815260200191505060405180910390f35b610a02600480360360208110156109ec57600080fd5b8101908080359060200190929190505050613681565b005b610a0c613808565b6040518082815260200191505060405180910390f35b610a5860048036036040811015610a3857600080fd5b81019080803590602001909291908035906020019092919050505061380e565b6040518082815260200191505060405180910390f35b610a9a60048036036020811015610a8457600080fd5b810190808035906020019092919050505061389e565b6040518082815260200191505060405180910390f35b610ab8613cee565b005b610ac2614043565b60405180821515815260200191505060405180910390f35b610ae2614074565b6040518082815260200191505060405180910390f35b610b0061407a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610b6e60048036036020811015610b4257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506140a0565b005b610b78614043565b15610beb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f6472617765642c2063616e206e6f7420627579206e6f7700000000000000000081525060200191505060405180910390fd5b600f60009054906101000a900460ff1615610c6e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f64726177696e672c2063616e206e6f7420627579206e6f77000000000000000081525060200191505060405180910390fd5b600454821015610ce6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f7072696365206d7573742061626f7665206d696e50726963650000000000000081525060200191505060405180910390fd5b60005b6004811015610d9a57600360149054906101000a900460ff1660ff16828260048110610d1157fe5b602002015160ff161115610d8d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f657863656564206e756d6265722073636f70650000000000000000000000000081525060200191505060405180910390fd5b8080600101915050610ce9565b506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166337391c00338486600a546040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff16815260200184600460200280838360005b83811015610e37578082015181840152602081019050610e1c565b50505050905001838152602001828152602001945050505050602060405180830381600087803b158015610e6a57600080fd5b505af1158015610e7e573d6000803e3d6000fd5b505050506040513d6020811015610e9457600080fd5b8101908080519060200190929190505050905060066000600a5481526020019081526020016000208190806001815401808255809150506001900390600052602060002001600090919091909150556000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490501415610f3b576001600b5401600b819055505b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819080600181540180825580915050600190039060005260206000200160009091909190915055610fb683600c546142ab90919063ffffffff16565b600c8190555042600d81905550610fcb6152cf565b610fd48361278b565b905060005b600b60ff1681101561109d576110428560086000600a54815260200190815260200160002060008585600b811061100c57fe5b602002015167ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020546142ab90919063ffffffff16565b60086000600a54815260200190815260200160002060008484600b811061106557fe5b602002015167ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020819055508080600101915050610fd9565b506110ed333086600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16614333909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fe3d4187f6ca4248660cc0ac8b8056515bac4a8132be2eca31d6d0cc170722a7e836040518082815260200191505060405180910390a250505050565b600d5481565b600c5481565b6111556143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611215576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b61121d614043565b15611290576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260068152602001807f647261776564000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6001600f60006101000a81548160ff021916908315150217905550565b600960205281600052604060002081815481106112c657fe5b90600052602060002001600091509150505481565b6112e3614043565b15611356576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f6472617765642c2063616e206e6f7420627579206e6f7700000000000000000081525060200191505060405180910390fd5b600f60009054906101000a900460ff16156113d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260188152602001807f64726177696e672c2063616e206e6f7420627579206e6f77000000000000000081525060200191505060405180910390fd5b600454821015611451576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f7072696365206d7573742061626f7665206d696e50726963650000000000000081525060200191505060405180910390fd5b6000805b82518110156118a55760005b600481101561155757600360149054906101000a900460ff1660ff1684838151811061148957fe5b6020026020010151826004811061149c57fe5b602002015160ff16111580156114d8575060008483815181106114bb57fe5b602002602001015182600481106114ce57fe5b602002015160ff16115b61154a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f657863656564206e756d6265722073636f70650000000000000000000000000081525060200191505060405180910390fd5b8080600101915050611461565b506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166337391c00338685815181106115a557fe5b602002602001015188600a546040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff16815260200184600460200280838360005b838110156116075780820151818401526020810190506115ec565b50505050905001838152602001828152602001945050505050602060405180830381600087803b15801561163a57600080fd5b505af115801561164e573d6000803e3d6000fd5b505050506040513d602081101561166457600080fd5b8101908080519060200190929190505050905060066000600a5481526020019081526020016000208190806001815401808255809150506001900390600052602060002001600090919091909150556000600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050141561170b576001600b5401600b819055505b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081908060018154018082558091505060019003906000526020600020016000909190919091505561178685600c546142ab90919063ffffffff16565b600c8190555042600d819055506117a685846142ab90919063ffffffff16565b92506117b06152cf565b6117cc8584815181106117bf57fe5b602002602001015161278b565b905060005b600b60ff168110156118955761183a8760086000600a54815260200190815260200160002060008585600b811061180457fe5b602002015167ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020546142ab90919063ffffffff16565b60086000600a54815260200190815260200160002060008484600b811061185d57fe5b602002015167ffffffffffffffff1667ffffffffffffffff1681526020019081526020016000208190555080806001019150506117d1565b5050508080600101915050611455565b506118f5333083600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16614333909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f96c35ad1cc1743f26cb87980c38042de8082358ec6d171a7986d6e11dddfe857826040518082815260200191505060405180910390a2505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6008602052816000526040600020602052806000526040600020600091509150505481565b61199b6143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a5b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600360146101000a81548160ff021916908360ff1602179055507f40b8c549208ebfc68d7d9944ad59f281e4bf55e10de03f56c0a4bff04c56cdab600360149054906101000a900460ff16604051808260ff16815260200191505060405180910390a150565b611aca6143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b8a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b611b9261114d565b611b9b81612dc3565b611ba3613cee565b50565b600360149054906101000a900460ff1681565b600f60009054906101000a900460ff1681565b600e8160048110611bd957fe5b60209182820401919006915054906101000a900460ff1681565b6000805b8251811015611ee257600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e848381518110611c4a57fe5b60200260200101516040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015611c8657600080fd5b505afa158015611c9a573d6000803e3d6000fd5b505050506040513d6020811015611cb057600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d61576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f6e6f742066726f6d206f776e657200000000000000000000000000000000000081525060200191505060405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166336dbd2f9848381518110611dab57fe5b60200260200101516040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015611de757600080fd5b505afa158015611dfb573d6000803e3d6000fd5b505050506040513d6020811015611e1157600080fd5b810190808051906020019092919050505015611e95576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260078152602001807f636c61696d65640000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000611eb3848381518110611ea657fe5b602002602001015161389e565b90506000811115611ed457611ed183826142ab90919063ffffffff16565b92505b508080600101915050611bf7565b50600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166374310355836040518263ffffffff1660e01b81526004018080602001828103825283818151815260200191508051906020019060200280838360005b83811015611f74578082015181840152602081019050611f59565b5050505090500192505050600060405180830381600087803b158015611f9957600080fd5b505af1158015611fad573d6000803e3d6000fd5b505050506000811115612008576120073382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166143fc9092919063ffffffff16565b5b3373ffffffffffffffffffffffffffffffffffffffff167f6606374655494f5c0e2d6f392656e9777afd9ac5f61527d1bcad50b7e918a03e826040518082815260200191505060405180910390a25050565b6000600a548211156120d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f5f6973737565496e646578203c3d206973737565496e6465780000000000000081525060200191505060405180910390fd5b6120dc614043565b1580156120ea5750600a5482145b156120f957600c549050612126565b6007600083815260200190815260200160002060008154811061211857fe5b906000526020600020015490505b919050565b6005602052816000526040600020816004811061214457fe5b60209182820401919006915091509054906101000a900460ff1681565b6121696143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612229576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6064818385010160ff16106122a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f657863656564203130300000000000000000000000000000000000000000000081525060200191505060405180910390fd5b60405180606001604052808460ff1660ff1681526020018360ff1660ff1681526020018260ff1660ff1681525060019060036122e39291906152f2565b507fe49663799279f9ad35c9d7a72ea6270cda1dad70ddc31599db6f05c5d1633ec7838383604051808460ff1681526020018360ff1681526020018260ff168152602001935050505060405180910390a1505050565b6123416143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612401576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b806004819055507fb7453612ea5b39dc722c37c2a05011d641d761c701bfdda1ef658571d991f8af6004546040518082815260200191505060405180910390a150565b6006602052816000526040600020818154811061245d57fe5b90600052602060002001600091509150505481565b600a5481565b6124806143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612540576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6126066143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146126c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6127133382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166143fc9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f050d1c64cc22ce461b9bc14f6b73852566da02b03c155242bc63169d1fec42aa826040518082815260200191505060405180910390a250565b6001816003811061277157fe5b60209182820401919006915054906101000a900460ff1681565b6127936152cf565b61279b61538c565b826000600481106127a857fe5b602002015160ff16816000600481106127bd57fe5b602002019067ffffffffffffffff16908167ffffffffffffffff1681525050826001600481106127e957fe5b602002015160ff16816001600481106127fe57fe5b602002019067ffffffffffffffff16908167ffffffffffffffff16815250508260026004811061282a57fe5b602002015160ff168160026004811061283f57fe5b602002019067ffffffffffffffff16908167ffffffffffffffff16815250508260036004811061286b57fe5b602002015160ff168160036004811061288057fe5b602002019067ffffffffffffffff16908167ffffffffffffffff16815250506128a76152cf565b816003600481106128b457fe5b602002015161030061010080856002600481106128cd57fe5b6020020151020263020000006101008061010080896001600481106128ee57fe5b602002015102020202650100000000006101008061010080610100808d60006004811061291757fe5b6020020151020202020202010101010101816000600b811061293557fe5b602002019067ffffffffffffffff16908167ffffffffffffffff16815250508160026004811061296157fe5b6020020151610200610100808560016004811061297a57fe5b60200201510202630100000061010080610100808960006004811061299b57fe5b60200201510202020201010101816001600b81106129b557fe5b602002019067ffffffffffffffff16908167ffffffffffffffff1681525050816003600481106129e157fe5b602002015161030061010080856001600481106129fa57fe5b602002015102026301000000610100806101008089600060048110612a1b57fe5b60200201510202020201010101816002600b8110612a3557fe5b602002019067ffffffffffffffff16908167ffffffffffffffff168152505081600360048110612a6157fe5b60200201516103006101008085600260048110612a7a57fe5b602002015102026302000000610100806101008089600060048110612a9b57fe5b60200201510202020201010101816003600b8110612ab557fe5b602002019067ffffffffffffffff16908167ffffffffffffffff168152505081600360048110612ae157fe5b60200201516103006101008085600260048110612afa57fe5b602002015102026302000000610100806101008089600160048110612b1b57fe5b602002015102020202650100000000000101010101816004600b8110612b3d57fe5b602002019067ffffffffffffffff16908167ffffffffffffffff168152505081600160048110612b6957fe5b60200201516101008061010085600060048110612b8257fe5b602002015102020101816005600b8110612b9857fe5b602002019067ffffffffffffffff16908167ffffffffffffffff168152505081600260048110612bc457fe5b60200201516102006101008085600060048110612bdd57fe5b602002015102020101816006600b8110612bf357fe5b602002019067ffffffffffffffff16908167ffffffffffffffff168152505081600360048110612c1f57fe5b60200201516103006101008085600060048110612c3857fe5b602002015102020101816007600b8110612c4e57fe5b602002019067ffffffffffffffff16908167ffffffffffffffff168152505081600260048110612c7a57fe5b60200201516102006101008085600160048110612c9357fe5b602002015102026301000000010101816008600b8110612caf57fe5b602002019067ffffffffffffffff16908167ffffffffffffffff168152505081600360048110612cdb57fe5b60200201516103006101008085600160048110612cf457fe5b602002015102026301000000010101816009600b8110612d1057fe5b602002019067ffffffffffffffff16908167ffffffffffffffff168152505081600360048110612d3c57fe5b60200201516103006101008085600260048110612d5557fe5b60200201510202630200000001010181600a600b8110612d7157fe5b602002019067ffffffffffffffff16908167ffffffffffffffff16815250508092505050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b612dcb6143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612e8b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b612e93614043565b15612f06576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260068152602001807f72657365743f000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b600f60009054906101000a900460ff16612f88576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f656e7465722064726177696e672070686173652066697273740000000000000081525060200191505060405180910390fd5b6000806000600360149054906101000a900460ff16905060006001430340905060005a905081600b548288604051602001808581526020018481526020018381526020018281526020019450505050506040516020818303038152906040528051906020012094508460001c9350600183850601935083600e60006004811061300d57fe5b602091828204019190066101000a81548160ff021916908360ff16021790555081600c548288604051602001808581526020018481526020018381526020018281526020019450505050506040516020818303038152906040528051906020012094508460001c9350600183850601935083600e60016004811061308d57fe5b602091828204019190066101000a81548160ff021916908360ff16021790555081600d548288604051602001808581526020018481526020018381526020018281526020019450505050506040516020818303038152906040528051906020012094508460001c9350600183850601935083600e60026004811061310d57fe5b602091828204019190066101000a81548160ff021916908360ff1602179055508181876040516020018084815260200183815260200182815260200193505050506040516020818303038152906040528051906020012094508460001c9350600183850601935083600e60036004811061318357fe5b602091828204019190066101000a81548160ff021916908360ff160217905550600e60056000600a5481526020019081526020016000209060046131c89291906153ae565b506131d161449e565b60076000600a5481526020019081526020016000209060046131f49291906153f9565b506000600f60006101000a81548160ff021916908315150217905550600a547fa13e935b188993737b3009d62bd916dcbe9e82d8236d75981eeadf26a1460d3d600e604051808260048015613284576020028201916000905b82829054906101000a900460ff1660ff168152602001906001019060208260000104928301926001038202915080841161324d5790505b505091505060405180910390a2505050505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e826040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561330c57600080fd5b505afa158015613320573d6000803e3d6000fd5b505050506040513d602081101561333657600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146133e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f6e6f742066726f6d206f776e657200000000000000000000000000000000000081525060200191505060405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166336dbd2f9826040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561345a57600080fd5b505afa15801561346e573d6000803e3d6000fd5b505050506040513d602081101561348457600080fd5b810190808051906020019092919050505015613508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260078152602001807f636c61696d65640000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b60006135138261389e565b9050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ae169a50836040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b15801561358a57600080fd5b505af115801561359e573d6000803e3d6000fd5b5050505060008111156135f9576135f83382600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166143fc9092919063ffffffff16565b5b3373ffffffffffffffffffffffffffffffffffffffff167f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf78383604051808381526020018281526020019250505060405180910390a25050565b6007602052816000526040600020818154811061366c57fe5b90600052602060002001600091509150505481565b6136896143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613749576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6137b68160106004806020026040519081016040528092919082600480156137ac576020028201916000905b82829054906101000a900460ff1660ff16815260200190600101906020826000010492830192600103820291508084116137755790505b50505050506149b3565b613805333083600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16614333909392919063ffffffff16565b50565b600b5481565b6000600582111561386a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806155676028913960400191505060405180910390fd5b60076000848152602001908152602001600020826005038154811061388b57fe5b9060005260206000200154905092915050565b600080600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631bf1e00f846040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561391457600080fd5b505afa158015613928573d6000803e3d6000fd5b505050506040513d602081101561393e57600080fd5b81019080805190602001909291905050509050613959615446565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635f8e26a7856040518263ffffffff1660e01b81526004018082815260200191505060806040518083038186803b1580156139cc57600080fd5b505afa1580156139e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506080811015613a0557600080fd5b81019080919050509050613a17615446565b60056000848152602001908152602001600020600480602002604051908101604052809291908260048015613a87576020028201916000905b82829054906101000a900460ff1660ff1681526020019060010190602082600001049283019260010382029150808411613a505790505b50505050509050600081600060048110613a9d57fe5b602002015160ff161415613b19576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f6e6f74206472617765640000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000805b6004811015613b6857838160048110613b3257fe5b602002015160ff16838260048110613b4657fe5b602002015160ff161415613b5b576001820191505b8080600101915050613b1d565b5060006001821115613cca576000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f7a0c0ca896040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015613be957600080fd5b505afa158015613bfd573d6000803e3d6000fd5b505050506040513d6020811015613c1357600080fd5b810190808051906020019092919050505090506000613c7e6064613c7060018760040360038110613c4057fe5b602091828204019190069054906101000a900460ff1660ff16613c628b61205a565b614ca090919063ffffffff16565b614d2690919063ffffffff16565b9050613cc581613cb7613c918a8861380e565b613ca964e8d4a5100087614ca090919063ffffffff16565b614d2690919063ffffffff16565b614ca090919063ffffffff16565b925050505b613ce264e8d4a5100082614d2690919063ffffffff16565b95505050505050919050565b613cf66143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613db6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b613dbe614043565b613e30576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260078152602001807f6472617765643f0000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b42600d819055506000600b819055506000600c819055506000600e600060048110613e5757fe5b602091828204019190066101000a81548160ff021916908360ff1602179055506000600e600160048110613e8757fe5b602091828204019190066101000a81548160ff021916908360ff1602179055506000600e600260048110613eb757fe5b602091828204019190066101000a81548160ff021916908360ff1602179055506000600e600360048110613ee757fe5b602091828204019190066101000a81548160ff021916908360ff1602179055506000600f60006101000a81548160ff0219169083151502179055506001600a5401600a819055506000613f406001600a5403600461380e565b1415614012576000613fa16064613f936001600060038110613f5e57fe5b602091828204019190069054906101000a900460ff1660ff16613f856001600a540361205a565b614ca090919063ffffffff16565b614d2690919063ffffffff16565b9050614010816010600480602002604051908101604052809291908260048015614006576020028201916000905b82829054906101000a900460ff1660ff1681526020019060010190602082600001049283019260010382029150808411613fcf5790505b50505050506149b3565b505b600a547f01c3cbb0d62726ab09d163873ebf9aed99dd8dc08e57bc938f458132fd178cf660405160405180910390a2565b600080600e60006004811061405457fe5b602091828204019190069054906101000a900460ff1660ff161415905090565b60045481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6140a86143f4565b73ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614614168576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156141ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806154fa6026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080828401905083811015614329576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6143ee846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050614d70565b50505050565b600033905090565b6144998363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050614d70565b505050565b6144a6615468565b6144ae6152cf565b61451a600e600480602002604051908101604052809291908260048015614510576020028201916000905b82829054906101000a900460ff1660ff16815260200190600101906020826000010492830192600103820291508084116144d95790505b505050505061278b565b9050600060086000600a5481526020019081526020016000206000836000600b811061454257fe5b602002015167ffffffffffffffff1667ffffffffffffffff168152602001908152602001600020549050600060086000600a5481526020019081526020016000206000846001600b811061459257fe5b602002015167ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002054905061461a60086000600a5481526020019081526020016000206000856002600b81106145e357fe5b602002015167ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002054826142ab90919063ffffffff16565b905061467a60086000600a5481526020019081526020016000206000856003600b811061464357fe5b602002015167ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002054826142ab90919063ffffffff16565b90506146da60086000600a5481526020019081526020016000206000856004600b81106146a357fe5b602002015167ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002054826142ab90919063ffffffff16565b905060006147046146f5600485614ca090919063ffffffff16565b83614e5f90919063ffffffff16565b9050600060086000600a5481526020019081526020016000206000866005600b811061472c57fe5b602002015167ffffffffffffffff1667ffffffffffffffff1681526020019081526020016000205490506147b460086000600a5481526020019081526020016000206000876006600b811061477d57fe5b602002015167ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002054826142ab90919063ffffffff16565b905061481460086000600a5481526020019081526020016000206000876007600b81106147dd57fe5b602002015167ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002054826142ab90919063ffffffff16565b905061487460086000600a5481526020019081526020016000206000876008600b811061483d57fe5b602002015167ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002054826142ab90919063ffffffff16565b90506148d460086000600a5481526020019081526020016000206000876009600b811061489d57fe5b602002015167ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002054826142ab90919063ffffffff16565b905061493460086000600a548152602001908152602001600020600087600a600b81106148fd57fe5b602002015167ffffffffffffffff1667ffffffffffffffff16815260200190815260200160002054826142ab90919063ffffffff16565b9050600061498361494f600386614ca090919063ffffffff16565b614975614966600689614ca090919063ffffffff16565b856142ab90919063ffffffff16565b614e5f90919063ffffffff16565b90506040518060800160405280600c54815260200186815260200184815260200182815250965050505050505090565b6149bb614043565b15614a2e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f6472617765642c2063616e206e6f7420627579206e6f7700000000000000000081525060200191505060405180910390fd5b60005b6004811015614ae257600360149054906101000a900460ff1660ff16828260048110614a5957fe5b602002015160ff161115614ad5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260128152602001807f65786365656420746865206d6178696d756d000000000000000000000000000081525060200191505060405180910390fd5b8080600101915050614a31565b506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166337391c00308486600a546040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff16815260200184600460200280838360005b83811015614b7f578082015181840152602081019050614b64565b50505050905001838152602001828152602001945050505050602060405180830381600087803b158015614bb257600080fd5b505af1158015614bc6573d6000803e3d6000fd5b505050506040513d6020811015614bdc57600080fd5b8101908080519060200190929190505050905060066000600a548152602001908152602001600020819080600181540180825580915050600190039060005260206000200160009091909190915055614c4083600c546142ab90919063ffffffff16565b600c8190555042600d819055503073ffffffffffffffffffffffffffffffffffffffff167fe3d4187f6ca4248660cc0ac8b8056515bac4a8132be2eca31d6d0cc170722a7e826040518082815260200191505060405180910390a2505050565b600080831415614cb35760009050614d20565b6000828402905082848281614cc457fe5b0414614d1b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806155466021913960400191505060405180910390fd5b809150505b92915050565b6000614d6883836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250614ea9565b905092915050565b6060614dd2826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16614f6f9092919063ffffffff16565b9050600081511115614e5a57808060200190516020811015614df357600080fd5b8101908080519060200190929190505050614e59576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a8152602001806154d0602a913960400191505060405180910390fd5b5b505050565b6000614ea183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614f87565b905092915050565b60008083118290614f55576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614f1a578082015181840152602081019050614eff565b50505050905090810190601f168015614f475780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581614f6157fe5b049050809150509392505050565b6060614f7e8484600085615047565b90509392505050565b6000838311158290615034576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614ff9578082015181840152602081019050614fde565b50505050905090810190601f1680156150265780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6060824710156150a2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806155206026913960400191505060405180910390fd5b6150ab856151f0565b61511d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061516d578051825260208201915060208101905060208303925061514a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146151cf576040519150601f19603f3d011682016040523d82523d6000602084013e6151d4565b606091505b50915091506151e4828286615203565b92505050949350505050565b600080823b905060008111915050919050565b60608315615213578290506152c8565b6000835111156152265782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561528d578082015181840152602081019050615272565b50505050905090810190601f1680156152ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b9392505050565b604051806101600160405280600b90602082028036833780820191505090505090565b826003601f0160209004810192821561537b5791602002820160005b8382111561534c57835183826101000a81548160ff021916908360ff160217905550926020019260010160208160000104928301926001030261530e565b80156153795782816101000a81549060ff021916905560010160208160000104928301926001030261534c565b505b509050615388919061548a565b5090565b6040518060800160405280600490602082028036833780820191505090505090565b826004601f016020900481019282156153e85791601f016020900482015b828111156153e75782548255916001019190600101906153cc565b5b5090506153f5919061548a565b5090565b828054828255906000526020600020908101928215615435579160200282015b82811115615434578251825591602001919060010190615419565b5b50905061544291906154b2565b5090565b6040518060800160405280600490602082028036833780820191505090505090565b6040518060800160405280600490602082028036833780820191505090505090565b5b808211156154ae57600081816101000a81549060ff02191690555060010161548b565b5090565b5b808211156154cb5760008160009055506001016154b3565b509056fe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f776d61746368696e67206e756d6265722073686f756c6420626520736d616c6c6572207468616e2035a264697066735822122056c96c34884a9b0f76c18a86028aca00dabd67763045b4358adadf216c982c0564736f6c634300060c0033000000000000000000000000b86f1e870dbe29629134cb52f568575d819ee0a90000000000000000000000002271826dd15711d63bf44a6e584d2a0cb5e729d00000000000000000000000000000000000000000000000008ac7230489e80000000000000000000000000000000000000000000000000000000000000000000a

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

000000000000000000000000b86f1e870dbe29629134cb52f568575d819ee0a90000000000000000000000002271826dd15711d63bf44a6e584d2a0cb5e729d00000000000000000000000000000000000000000000000008ac7230489e80000000000000000000000000000000000000000000000000000000000000000000a

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000b86f1e870dbe29629134cb52f568575d819ee0a9
Arg [1] : 0000000000000000000000002271826dd15711d63bf44a6e584d2a0cb5e729d0
Arg [2] : 0000000000000000000000000000000000000000000000008ac7230489e80000
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000a


Deployed ByteCode Sourcemap

70708:15677:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77077:1073;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;71903:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;71866:30;;;:::i;:::-;;;;;;;;;;;;;;;;;;;74178:123;;;:::i;:::-;;71735:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;78158:1329;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;71004:19;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;71628:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;85855:143;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;73387:169;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;71125:22;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;72001:24;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;71940:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;79949:689;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;83980:305;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;71285:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;86048:334;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;85714:133;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;71372:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;71790:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;61433:148;;;:::i;:::-;;85532:174;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;70938:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;80646:1531;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60791:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;74380:2142;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;79495:446;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;71522:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;85338:186;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;71826:33;;;:::i;:::-;;;;;;;;;;;;;;;;;;;83706:266;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;84293:1037;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;73564:606;;;:::i;:::-;;73287:92;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;71210:23;;;:::i;:::-;;;;;;;;;;;;;;;;;;;71066:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;61736:244;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;77077:1073;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;70879: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:66;78067:10;78088:4;78095:6;78036:5;;;;;;;;;;;:22;;;;:66;;;;;;:::i;:::-;78122:10;78118:24;;;78134:7;78118:24;;;;;;;;;;;;;;;;;;73270:1;;77077:1073:::0;;:::o;71903:28::-;;;;:::o;71866:30::-;;;;:::o;74178:123::-;61013:12;:10;:12::i;:::-;61003:22;;:6;;;;;;;;;;:22;;;60995:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74244:8:::1;:6;:8::i;:::-;74243:9;74235:28;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;74289:4;74274:12;;:19;;;;;;;;;;;;;;;;;;74178:123::o:0;71735:46::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;78158:1329::-;73162:8;:6;:8::i;:::-;73161:9;73153:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73218:12;;;;;;;;;;;73217:13;73209:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78274:8:::1;;78264:6;:18;;78255:57;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;78323:18;78362:6:::0;78357:994:::1;78378:8;:15;78374:1;:19;78357:994;;;78420:6;78415:146;78436:1;78432;:5;78415:146;;;78490:9;;;;;;;;;;;78472:27;;:8;78481:1;78472:11;;;;;;;;;;;;;;78484:1;78472:14;;;;;;;;;;;:27;;;;:49;;;;;78520:1;78503:8;78512:1;78503:11;;;;;;;;;;;;;;78515:1;78503:14;;;;;;;;;;;:18;;;78472:49;78463:82;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;78439:3;;;;;;;78415:146;;;;78575:15;78593:10;;;;;;;;;;;:25;;;78619:10;78631:8;78640:1;78631:11;;;;;;;;;;;;;;78644:6;78652:10;;78593:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;78575:88;;78678:11;:23;78690:10;;78678:23;;;;;;;;;;;78707:7;78678:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78765:1;78734:8;:20;78743:10;78734:20;;;;;;;;;;;;;;;:27;;;;:32;78730:108;;;78821:1;78804:14;;:18;78787:14;:35;;;;78730:108;78852:8;:20;78861:10;78852:20;;;;;;;;;;;;;;;78878:7;78852:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78915:23;78931:6;78915:11;;:15;;:23;;;;:::i;:::-;78901:11;:37;;;;78969:15;78953:13;:31;;;;79012:22;79027:6;79012:10;:14;;:22;;;;:::i;:::-;78999:35;;79049:49;;:::i;:::-;79101:35;79124:8;79133:1;79124:11;;;;;;;;;;;;;;79101:22;:35::i;:::-;79049:87;;79156:6;79151:189;70879:2;79168:23;;:1;:23;79151:189;;;79265:59;79317:6;79265:16;:28;79282:10;;79265:28;;;;;;;;;;;:47;79294:14;79309:1;79294:17;;;;;;;;;;;79265:47;;;;;;;;;;;;;;;;:51;;:59;;;;:::i;:::-;79217:16;:28;79234:10;;79217:28;;;;;;;;;;;:47;79246:14;79261:1;79246:17;;;;;;;;;;;79217:47;;;;;;;;;;;;;;;:107;;;;79193:3;;;;;;;79151:189;;;;78357:994;;78395:3;;;;;;;78357:994;;;;79361:70;79392:10;79413:4;79420:10;79361:5;;;;;;;;;;;:22;;;;:70;;;;;;:::i;:::-;79456:10;79447:32;;;79468:10;79447:32;;;;;;;;;;;;;;;;;;73270:1;78158:1329:::0;;:::o;71004:19::-;;;;;;;;;;;;;:::o;71628:71::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;85855:143::-;61013:12;:10;:12::i;:::-;61003:22;;:6;;;;;;;;;;:22;;;60995:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85937:10:::1;85925:9;;:22;;;;;;;;;;;;;;;;;;85963:27;85980:9;;;;;;;;;;;85963:27;;;;;;;;;;;;;;;;;;;;85855:143:::0;:::o;73387:169::-;61013:12;:10;:12::i;:::-;61003:22;;:6;;;;;;;;;;:22;;;60995:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;73470:19:::1;:17;:19::i;:::-;73500:30;73508:21;73500:7;:30::i;:::-;73541:7;:5;:7::i;:::-;73387:169:::0;:::o;71125:22::-;;;;;;;;;;;;;:::o;72001:24::-;;;;;;;;;;;;;:::o;71940:30::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;79949:689::-;80016:19;80055:6;80050:375;80071:8;:15;80067:1;:19;80050:375;;;80131:10;;;;;;;;;;;:18;;;80150:8;80159:1;80150:11;;;;;;;;;;;;;;80131:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80117:45;;:10;:45;;;80108:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80206:10;;;;;;;;;;;:25;;;80232:8;80241:1;80232:11;;;;;;;;;;;;;;80206:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80205:39;80196:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80271:14;80288:26;80302:8;80311:1;80302:11;;;;;;;;;;;;;;80288:13;:26::i;:::-;80271:43;;80339:1;80332:6;:8;80329:85;;;80375:23;80386:11;80375:6;:10;;:23;;;;:::i;:::-;80361:37;;80329:85;80050:375;80088:3;;;;;;;80050:375;;;;80435:10;;;;;;;;;;;:27;;;80463:8;80435:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80498:1;80486:11;:13;80483:97;;;80516:52;80543:10;80556:11;80516:5;;;;;;;;;;;:18;;;;:52;;;;;:::i;:::-;80483:97;80606:10;80595:35;;;80618:11;80595:35;;;;;;;;;;;;;;;;;;79949:689;;:::o;83980:305::-;84046:7;84090:10;;84075:11;:25;;84066:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84147:8;:6;:8::i;:::-;84146:9;:38;;;;;84174:10;;84159:11;:25;84146:38;84143:88;;;84208:11;;84201:18;;;;84143:88;84248:13;:26;84262:11;84248:26;;;;;;;;;;;84275:1;84248:29;;;;;;;;;;;;;;;;84241:36;;83980:305;;;;:::o;71285:51::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;86048:334::-;61013:12;:10;:12::i;:::-;61003:22;;:6;;;;;;;;;;:22;;;60995:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86215:3:::1;86200:12;86185;86170;:27;:42;:48;;;86161:72;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;86244:55;;;;;;;;86258:12;86244:55;;;;;;;;86272:12;86244:55;;;;;;;;86286:12;86244:55;;;;;;::::0;:10:::1;:55;;;;;;;:::i;:::-;;86315:59;86333:12;86347;86361;86315:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86048:334:::0;;;:::o;85714:133::-;61013:12;:10;:12::i;:::-;61003:22;;:6;;;;;;;;;;:22;;;60995:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85792:6:::1;85781:8;:17;;;;85814:25;85830:8;;85814:25;;;;;;;;;;;;;;;;;;85714:133:::0;:::o;71372:49::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;71790:29::-;;;;:::o;61433:148::-;61013:12;:10;:12::i;:::-;61003:22;;:6;;;;;;;;;;:22;;;60995:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61540:1:::1;61503:40;;61524:6;::::0;::::1;;;;;;;;61503:40;;;;;;;;;;;;61571:1;61554:6:::0;::::1;:19;;;;;;;;;;;;;;;;;;61433:148::o:0;85532:174::-;61013:12;:10;:12::i;:::-;61003:22;;:6;;;;;;;;;;:22;;;60995:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85602:48:::1;85629:10;85642:7;85602:5;;;;;;;;;;;:18;;;;:48;;;;;:::i;:::-;85678:10;85666:32;;;85690:7;85666:32;;;;;;;;;;;;;;;;;;85532:174:::0;:::o;70938:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;80646:1531::-;80723:34;;:::i;:::-;80770:27;;:::i;:::-;80829:6;80836:1;80829:9;;;;;;;;;;;80822:17;;80808:10;80819:1;80808:13;;;;;;;;;;:31;;;;;;;;;;;80871:6;80878:1;80871:9;;;;;;;;;;;80864:17;;80850:10;80861:1;80850:13;;;;;;;;;;:31;;;;;;;;;;;80913:6;80920:1;80913:9;;;;;;;;;;;80906:17;;80892:10;80903:1;80892:13;;;;;;;;;;:31;;;;;;;;;;;80955:6;80962:1;80955:9;;;;;;;;;;;80948:17;;80934:10;80945:1;80934:13;;;;;;;;;;:31;;;;;;;;;;;80978:41;;:::i;:::-;81186:10;81197:1;81186:13;;;;;;;;;;;81178:5;81172:3;81168;81154:10;81165:1;81154:13;;;;;;;;;;;:17;:21;81138:13;81132:3;81128;81124;81120;81106:10;81117:1;81106:13;;;;;;;;;;;:17;:21;:25;:29;81082:21;81076:3;81072;81068;81064;81060;81056;81042:10;81053:1;81042:13;;;;;;;;;;;:17;:21;:25;:29;:33;:37;:61;:93;:109;:133;:141;:157;81030:6;81037:1;81030:9;;;;;;;;;;:169;;;;;;;;;;;81303:10;81314:1;81303:13;;;;;;;;;;;81296:5;81290:3;81286;81272:10;81283:1;81272:13;;;;;;;;;;;:17;:21;81256:13;81250:3;81246;81242;81238;81224:10;81235:1;81224:13;;;;;;;;;;;:17;:21;:25;:29;:45;:69;:77;:92;81212:6;81219:1;81212:9;;;;;;;;;;:104;;;;;;;;;;;81418:10;81429:1;81418:13;;;;;;;;;;;81411:5;81405:3;81401;81387:10;81398:1;81387:13;;;;;;;;;;;:17;:21;81371:13;81365:3;81361;81357;81353;81339:10;81350:1;81339:13;;;;;;;;;;;:17;:21;:25;:29;:45;:69;:77;:92;81327:6;81334:1;81327:9;;;;;;;;;;:104;;;;;;;;;;;81534:10;81545:1;81534:13;;;;;;;;;;;81526:5;81520:3;81516;81502:10;81513:1;81502:13;;;;;;;;;;;:17;:21;81486:13;81480:3;81476;81472;81468;81454:10;81465:1;81454:13;;;;;;;;;;;:17;:21;:25;:29;:45;:69;:77;:93;81442:6;81449:1;81442:9;;;;;;;;;;:105;;;;;;;;;;;81674:10;81685:1;81674:13;;;;;;;;;;;81666:5;81660:3;81656;81642:10;81653:1;81642:13;;;;;;;;;;;:17;:21;81626:13;81620:3;81616;81612;81608;81594:10;81605:1;81594:13;;;;;;;;;;;:17;:21;:25;:29;81570:21;:53;:69;:93;:101;:117;81558:6;81565:1;81558:9;;;;;;;;;;:129;;;;;;;;;;;81743:10;81754:1;81743:13;;;;;;;;;;;81736:5;81730:3;81726;81712:10;81723:1;81712:13;;;;;;;;;;;:17;:21;:29;:44;81700:6;81707:1;81700:9;;;;;;;;;;:56;;;;;;;;;;;81810:10;81821:1;81810:13;;;;;;;;;;;81803:5;81797:3;81793;81779:10;81790:1;81779:13;;;;;;;;;;;:17;:21;:29;:44;81767:6;81774:1;81767:9;;;;;;;;;;:56;;;;;;;;;;;81877:10;81888:1;81877:13;;;;;;;;;;;81870:5;81864:3;81860;81846:10;81857:1;81846:13;;;;;;;;;;;:17;:21;:29;:44;81834:6;81841:1;81834:9;;;;;;;;;;:56;;;;;;;;;;;81961:10;81972:1;81961:13;;;;;;;;;;;81953:5;81947:3;81943;81929:10;81940:1;81929:13;;;;;;;;;;;:17;:21;81913:13;:37;:45;:61;81901:6;81908:1;81901:9;;;;;;;;;;:73;;;;;;;;;;;82045:10;82056:1;82045:13;;;;;;;;;;;82037:5;82031:3;82027;82013:10;82024:1;82013:13;;;;;;;;;;;:17;:21;81997:13;:37;:45;:61;81985:6;81992:1;81985:9;;;;;;;;;;:73;;;;;;;;;;;82130:10;82141:1;82130:13;;;;;;;;;;;82122:5;82116:3;82112;82098:10;82109:1;82098:13;;;;;;;;;;;:17;:21;82082:13;:37;:45;:61;82069:6;82076:2;82069:10;;;;;;;;;;:74;;;;;;;;;;;82163:6;82156:13;;;;80646:1531;;;:::o;60791:79::-;60829:7;60856:6;;;;;;;;;;;60849:13;;60791:79;:::o;74380:2142::-;61013:12;:10;:12::i;:::-;61003:22;;:6;;;;;;;;;;:22;;;60995: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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61073:1;;;;;74380:2142:::0;:::o;79495:446::-;79576:10;;;;;;;;;;;:18;;;79595:8;79576:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79562:42;;:10;:42;;;79554:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79644:10;;;;;;;;;;;:25;;;79670:8;79644:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79643:36;79634:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79702:14;79719:23;79733:8;79719:13;:23::i;:::-;79702:40;;79753:10;;;;;;;;;;;:22;;;79776:8;79753:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79806:1;79799:6;:8;79796:87;;;79824:47;79851:10;79864:6;79824:5;;;;;;;;;;;:18;;;;:47;;;;;:::i;:::-;79796:87;79904:10;79898:35;;;79916:8;79926:6;79898:35;;;;;;;;;;;;;;;;;;;;;;;;79495:446;;:::o;71522:51::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;85338:186::-;61013:12;:10;:12::i;:::-;61003:22;;:6;;;;;;;;;;:22;;;60995:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85406:32:::1;85418:7;85427:10;85406:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:11;:32::i;:::-;85449:67;85480:10;85501:4;85508:7;85449:5;;;;;;;;;;;:22;;;;:67;;;;;;:::i;:::-;85338:186:::0;:::o;71826:33::-;;;;:::o;83706:266::-;83806:7;83853:1;83834:15;:20;;83826:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83917:13;:26;83931:11;83917:26;;;;;;;;;;;83948:15;83944:1;:19;83917:47;;;;;;;;;;;;;;;;83910:54;;83706:266;;;;:::o;84293:1037::-;84354:7;84374:19;84396:10;;;;;;;;;;;:31;;;84428:8;84396:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84374:63;;84448:30;;:::i;:::-;84481:10;;;;;;;;;;;:28;;;84510:8;84481:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84448:71;;84530:31;;:::i;:::-;84564:14;:27;84579:11;84564:27;;;;;;;;;;;84530:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84632:1;84610:15;84626:1;84610:18;;;;;;;;;;;:23;;;;84602:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84661:22;84703:6;84698:188;84719:21;84715:1;:25;84698:188;;;84788:14;84803:1;84788:17;;;;;;;;;;;84766:39;;:15;84782:1;84766:18;;;;;;;;;;;:39;;;84762:113;;;84858:1;84842:14;:17;84826:33;;84762:113;84742:3;;;;;;;84698:188;;;;84896:14;84946:1;84929:14;:18;84925:364;;;84964:14;84981:10;;;;;;;;;;;:27;;;85009:8;84981:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84964:54;;85033:18;85054:71;85121:3;85054:62;85087:10;85100:14;85098:1;:16;85087:28;;;;;;;;;;;;;;;;;;;;;;;;;85054:62;;:28;85070:11;85054:15;:28::i;:::-;:32;;:62;;;;:::i;:::-;:66;;:71;;;;:::i;:::-;85033:92;;85149:90;85228:10;85149:74;85170:52;85194:11;85207:14;85170:23;:52::i;:::-;85149:16;85160:4;85149:6;:10;;:16;;;;:::i;:::-;:20;;:74;;;;:::i;:::-;:78;;:90;;;;:::i;:::-;85140:99;;84925:364;;;85306:16;85317:4;85306:6;:10;;:16;;;;:::i;:::-;85299:23;;;;;;;84293:1037;;;:::o;73564:606::-;61013:12;:10;:12::i;:::-;61003:22;;:6;;;;;;;;;;:22;;;60995: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;71210:23::-;;;;:::o;71066:28::-;;;;;;;;;;;;;:::o;61736:244::-;61013:12;:10;:12::i;:::-;61003:22;;:6;;;;;;;;;;:22;;;60995:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61845:1:::1;61825:22;;:8;:22;;;;61817:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;61935:8;61906:38;;61927:6;::::0;::::1;;;;;;;;61906:38;;;;;;;;;;;;61964:8;61955:6;::::0;:17:::1;;;;;;;;;;;;;;;;;;61736:244:::0;:::o;11136:181::-;11194:7;11214:9;11230:1;11226;:5;11214:17;;11255:1;11250;:6;;11242:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11308:1;11301:8;;;11136:181;;;;:::o;67761:205::-;67862:96;67882:5;67912:27;;;67941:4;67947:2;67951:5;67889:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67862:19;:96::i;:::-;67761:205;;;;:::o;573:106::-;626:15;661:10;654:17;;573:106;:::o;67576:177::-;67659:86;67679:5;67709:23;;;67734:2;67738:5;67686:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67659:19;:86::i;:::-;67576:177;;;:::o;82185:1513::-;82249:17;;:::i;:::-;82279:49;;:::i;:::-;82331:38;82354:14;82331:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:22;:38::i;:::-;82279:90;;82382:19;82404:16;:28;82421:10;;82404:28;;;;;;;;;;;:47;82433:14;82448:1;82433:17;;;;;;;;;;;82404:47;;;;;;;;;;;;;;;;82382:69;;82464:25;82492:16;:28;82509:10;;82492:28;;;;;;;;;;;:47;82521:14;82536:1;82521:17;;;;;;;;;;;82492:47;;;;;;;;;;;;;;;;82464:75;;82570:70;82592:16;:28;82609:10;;82592:28;;;;;;;;;;;:47;82621:14;82636:1;82621:17;;;;;;;;;;;82592:47;;;;;;;;;;;;;;;;82570:17;:21;;:70;;;;:::i;:::-;82550:90;;82671:70;82693:16;:28;82710:10;;82693:28;;;;;;;;;;;:47;82722:14;82737:1;82722:17;;;;;;;;;;;82693:47;;;;;;;;;;;;;;;;82671:17;:21;;:70;;;;:::i;:::-;82651:90;;82772:70;82794:16;:28;82811:10;;82794:28;;;;;;;;;;;:47;82823:14;82838:1;82823:17;;;;;;;;;;;82794:47;;;;;;;;;;;;;;;;82772:17;:21;;:70;;;;:::i;:::-;82752:90;;82855:19;82877:41;82899:18;82915:1;82899:11;:15;;:18;;;;:::i;:::-;82877:17;:21;;:41;;;;:::i;:::-;82855:63;;82931:25;82959:16;:28;82976:10;;82959:28;;;;;;;;;;;:47;82988:14;83003:1;82988:17;;;;;;;;;;;82959:47;;;;;;;;;;;;;;;;82931:75;;83037:70;83059:16;:28;83076:10;;83059:28;;;;;;;;;;;:47;83088:14;83103:1;83088:17;;;;;;;;;;;83059:47;;;;;;;;;;;;;;;;83037:17;:21;;:70;;;;:::i;:::-;83017:90;;83138:70;83160:16;:28;83177:10;;83160:28;;;;;;;;;;;:47;83189:14;83204:1;83189:17;;;;;;;;;;;83160:47;;;;;;;;;;;;;;;;83138:17;:21;;:70;;;;:::i;:::-;83118:90;;83239:70;83261:16;:28;83278:10;;83261:28;;;;;;;;;;;:47;83290:14;83305:1;83290:17;;;;;;;;;;;83261:47;;;;;;;;;;;;;;;;83239:17;:21;;:70;;;;:::i;:::-;83219:90;;83340:70;83362:16;:28;83379:10;;83362:28;;;;;;;;;;;:47;83391:14;83406:1;83391:17;;;;;;;;;;;83362:47;;;;;;;;;;;;;;;;83340:17;:21;;:70;;;;:::i;:::-;83320:90;;83441:71;83463:16;:28;83480:10;;83463:28;;;;;;;;;;;:48;83492:14;83507:2;83492:18;;;;;;;;;;;83463:48;;;;;;;;;;;;;;;;83441:17;:21;;:71;;;;:::i;:::-;83421:91;;83525:19;83547:71;83593:24;83615:1;83593:17;:21;;:24;;;;:::i;:::-;83547:41;83569:18;83585:1;83569:11;:15;;:18;;;;:::i;:::-;83547:17;:21;;:41;;;;:::i;:::-;:45;;:71;;;;:::i;:::-;83525:93;;83631:59;;;;;;;;83639:11;;83631:59;;;;83652:11;83631:59;;;;83665:11;83631:59;;;;83678:11;83631:59;;;;;;;;;;;82185: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;12490:471::-;12548:7;12798:1;12793;:6;12789:47;;;12823:1;12816:8;;;;12789:47;12848:9;12864:1;12860;:5;12848:17;;12893:1;12888;12884;:5;;;;;;:10;12876:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12952:1;12945:8;;;12490:471;;;;;:::o;13437:132::-;13495:7;13522:39;13526:1;13529;13522:39;;;;;;;;;;;;;;;;;:3;:39::i;:::-;13515:46;;13437:132;;;;:::o;69881:761::-;70305:23;70331:69;70359:4;70331:69;;;;;;;;;;;;;;;;;70339:5;70331:27;;;;:69;;;;;:::i;:::-;70305:95;;70435:1;70415:10;:17;:21;70411:224;;;70557:10;70546:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70538:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70411:224;69881:761;;;:::o;11600:136::-;11658:7;11685:43;11689:1;11692;11685:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;11678:50;;11600:136;;;;:::o;14065:278::-;14151:7;14183:1;14179;:5;14186:12;14171:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14210:9;14226:1;14222;:5;;;;;;14210:17;;14334:1;14327:8;;;14065:278;;;;;:::o;19200:195::-;19303:12;19335:52;19357:6;19365:4;19371:1;19374:12;19335:21;:52::i;:::-;19328:59;;19200:195;;;;;:::o;12039:192::-;12125:7;12158:1;12153;:6;;12161:12;12145:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12185:9;12201:1;12197;:5;12185:17;;12222:1;12215:8;;;12039:192;;;;;:::o;20252:530::-;20379:12;20437:5;20412:21;:30;;20404:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20504:18;20515:6;20504:10;:18::i;:::-;20496:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20630:12;20644:23;20671:6;:11;;20691:5;20699:4;20671:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20629:75;;;;20722:52;20740:7;20749:10;20761:12;20722:17;:52::i;:::-;20715:59;;;;20252:530;;;;;;:::o;16282:422::-;16342:4;16550:12;16661:7;16649:20;16641:28;;16695:1;16688:4;:8;16681:15;;;16282:422;;;:::o;21788:742::-;21903:12;21932:7;21928:595;;;21963:10;21956:17;;;;21928:595;22097:1;22077:10;:17;:21;22073:439;;;22340:10;22334:17;22401:15;22388:10;22384:2;22380:19;22373:44;22288:148;22483:12;22476:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21788:742;;;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://56c96c34884a9b0f76c18a86028aca00dabd67763045b4358adadf216c982c05
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.