Contract 0x76abdc570c37c8f9756b3506eafac501609177cc

 

Contract Overview

ArpaCorpX: Arpa Games Dice Roller
Balance:
1.709547514030101539 Ether

EtherValue:
$2,598.79 (@ $1,520.16/ETH)

Token:
Ad
Ad
Txn Hash
Block
From
To
Value
0x30cec15e853502377682ed3ff9cef552c558b053f693fe9f3a8214acbfce405d112323412020-11-10 21:57:48108 days 8 hrs ago0x00004242f4449d49ec9c64ad6f9385a56b2a6297 IN  ArpaCorpX: Arpa Games Dice Roller0 Ether0.003398520
0x9d8634779d7b37d14c9e5966dbb4c7af5bbfaed3683eff1cb4ec61c380ee0edd112323392020-11-10 21:57:27108 days 8 hrs agoArpaCorpX: Deployer IN  ArpaCorpX: Arpa Games Dice Roller0.2 Ether0.005058654119.1
0x3e1abb01e6e6f11c634ba1bb4885080fc3da628475d5347f0eb1e68112dcf5b0112057962020-11-06 20:00:15112 days 10 hrs ago0x00004242ca3469e30ae4a62775fee6584ed3fdca IN  ArpaCorpX: Arpa Games Dice Roller0 Ether0.003398520
0x0d1627a502d3bff5a676b11af9f4b4b18d21606271cbcd8e1a2737fab5102069112057012020-11-06 19:36:36112 days 11 hrs agoArpaCorpX: Deployer IN  ArpaCorpX: Arpa Games Dice Roller0.2 Ether0.007283402527.5
0xbfbdb815ac120a182738a788a758e53569b5d7bd1dd679d5e1a591edbcf8007a111970592020-11-05 11:54:23113 days 18 hrs ago0x000042425e06b0b1e8e20a811c91d6864608324b IN  ArpaCorpX: Arpa Games Dice Roller0 Ether0.0038336820
0x052032849dddf420423db12ed339132bee8220d593a1e23a5b2e35d6b1061a92111970252020-11-05 11:46:16113 days 19 hrs agoArpaCorpX: Deployer IN  ArpaCorpX: Arpa Games Dice Roller0.4 Ether0.00874008306133.000000233
0x30d99e998471b43ff3deec0db24ac9bc838505751a7a9ee18e1527e994f2a53f111915932020-11-04 15:54:49114 days 14 hrs ago0x000042425e06b0b1e8e20a811c91d6864608324b IN  ArpaCorpX: Arpa Games Dice Roller0 Ether0.0034662820
0x7fa1e08b4c2bcf7531e02139f08b1a846207d31e13ad970f1775822bcae3b163111915022020-11-04 15:34:51114 days 15 hrs agoArpaCorpX: Deployer IN  ArpaCorpX: Arpa Games Dice Roller0.4 Ether0.01032987761239.0026
0xac1f53d710d36c867aeec8cf5c9da1c1d7b3938dfe52d9f62266445546ada504111900612020-11-04 10:10:15114 days 20 hrs ago0x000042425e06b0b1e8e20a811c91d6864608324b IN  ArpaCorpX: Arpa Games Dice Roller0 Ether0.0039245420
0xb059acd2ca5c0685ea9a3cf2fcb4532574cf3ea4dfaf2f015ca2f96878cee519111900592020-11-04 10:10:10114 days 20 hrs agoArpaCorpX: Deployer IN  ArpaCorpX: Arpa Games Dice Roller0.2 Ether0.00582672222
0x3ee61a3b6fc0d2f56417967394834ef52ca4e72cae8c0ba12102247b39f77e9e111900512020-11-04 10:07:19114 days 20 hrs ago0x000042425e06b0b1e8e20a811c91d6864608324b IN  ArpaCorpX: Arpa Games Dice Roller0 Ether0.00391320
0x3ecf5cb9cffd0774135cfcfc12db4d7839ef604e64206bb25820160c64084ccf111900492020-11-04 10:07:10114 days 20 hrs agoArpaCorpX: Deployer IN  ArpaCorpX: Arpa Games Dice Roller0.2 Ether0.0047169963117.81
0x4a1919f4b62378448a98a5122619001f2698bb3bb1653dd0215d0a500d7d45b3111891742020-11-04 6:52:09115 days 1 min ago0x00004242ca3469e30ae4a62775fee6584ed3fdca IN  ArpaCorpX: Arpa Games Dice Roller0 Ether0.003478320
0xf9073e7ce4c16e62f13fcbdedb58d61fcfb8694d10b9425c5bb84444d7c8e8c6111891722020-11-04 6:52:06115 days 1 min agoArpaCorpX: Deployer IN  ArpaCorpX: Arpa Games Dice Roller0.3 Ether0.003999250115.1
0x7e96b272189649e240d23e6a3cc9cfe80902280dc28890043253cd2c9dfad14b111890922020-11-04 6:34:04115 days 19 mins ago0x00004242f4449d49ec9c64ad6f9385a56b2a6297 IN  ArpaCorpX: Arpa Games Dice Roller0 Ether0.0034780620
0xa02cf04dc2b2842363ab4bcb837575cc3b4584924a9ef928282a888472df300a111890892020-11-04 6:32:55115 days 21 mins agoArpaCorpX: Deployer IN  ArpaCorpX: Arpa Games Dice Roller0.2 Ether0.00503216919
0x4c880c549f66a4cffd35edc7f02622691e92e71b97d207a936620ce2febbaeb9111886772020-11-04 4:58:46115 days 1 hr ago0x000042425e06b0b1e8e20a811c91d6864608324b IN  ArpaCorpX: Arpa Games Dice Roller0 Ether0.0038452220
0x9737774e50a147375f930f1f7814e2987f4cf37556a1f2d6e162b5591bb96c28111886752020-11-04 4:58:35115 days 1 hr ago0xc561437966e322d1c6bb595b5c0552ccb9697ad6 IN  ArpaCorpX: Arpa Games Dice Roller0.2 Ether0.004264101116.1
0x038e4a667ec8d942ffa39967aebf39017ef3fcefbaf5b4f2ab7f64486f55d50e111885792020-11-04 4:38:39115 days 2 hrs ago0x00004242ca3469e30ae4a62775fee6584ed3fdca IN  ArpaCorpX: Arpa Games Dice Roller0 Ether0.0039245420
0x01cd5b8b462632e3ae7c6e22f635c75295d2f7a9619b848c92176a02ce9c0660111885762020-11-04 4:38:21115 days 2 hrs agoArpaCorpX: Deployer IN  ArpaCorpX: Arpa Games Dice Roller0.3 Ether0.004264101116.1
0x4846e79ed432be6025812101fd6eb6cebffd9aa7e2daac86e89aaa8648526ceb111885632020-11-04 4:35:19115 days 2 hrs ago0x00004242f4449d49ec9c64ad6f9385a56b2a6297 IN  ArpaCorpX: Arpa Games Dice Roller0 Ether0.003398520
0x79d70dbc6d881e110761945385b869921d3c518d3047f8dd063791d684445c99111885592020-11-04 4:35:07115 days 2 hrs agoArpaCorpX: Deployer IN  ArpaCorpX: Arpa Games Dice Roller0.2 Ether0.004264101116.1
0x44786b1b134fd0d5d4a832fdffc78d35daecb7cb298b91c4af0d862c877d6879111885532020-11-04 4:34:04115 days 2 hrs ago0x00004242f4449d49ec9c64ad6f9385a56b2a6297 IN  ArpaCorpX: Arpa Games Dice Roller0 Ether0.0038334420
0xd89cb776511ad52b4aef872f90a387dedbbf72062391b73d5c2ef9b500f35eec111885502020-11-04 4:33:07115 days 2 hrs ago0xc561437966e322d1c6bb595b5c0552ccb9697ad6 IN  ArpaCorpX: Arpa Games Dice Roller0.2 Ether0.004264101116.1
0x4aea37f7916e4d18bfcb5c5b6836ee256231ff03d6225d65173678bf64ee3466111881432020-11-04 3:04:42115 days 3 hrs ago0x00004242ca3469e30ae4a62775fee6584ed3fdca IN  ArpaCorpX: Arpa Games Dice Roller0 Ether0.0039132420
[ Download CSV Export 

OVERVIEW

Provable © verifiable fair bets paying Ether, backed by open-sourced smart contract. No sign-ups or deposits required, just 1% house edge and roll the dices! Get 100 ArpaCorpX (ARPAX) tokens with each win roll.

Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x30cec15e853502377682ed3ff9cef552c558b053f693fe9f3a8214acbfce405d112323412020-11-10 21:57:48108 days 8 hrs ago ArpaCorpX: Arpa Games Dice RollerArpaCorpX: Deployer1 wei
0x9d8634779d7b37d14c9e5966dbb4c7af5bbfaed3683eff1cb4ec61c380ee0edd112323392020-11-10 21:57:27108 days 8 hrs ago ArpaCorpX: Arpa Games Dice Roller 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00812599536337065 Ether
0x3e1abb01e6e6f11c634ba1bb4885080fc3da628475d5347f0eb1e68112dcf5b0112057962020-11-06 20:00:15112 days 10 hrs ago ArpaCorpX: Arpa Games Dice RollerArpaCorpX: Deployer1 wei
0x0d1627a502d3bff5a676b11af9f4b4b18d21606271cbcd8e1a2737fab5102069112057012020-11-06 19:36:36112 days 11 hrs ago ArpaCorpX: Arpa Games Dice Roller 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00812599536337065 Ether
0xbfbdb815ac120a182738a788a758e53569b5d7bd1dd679d5e1a591edbcf8007a111970592020-11-05 11:54:23113 days 18 hrs ago ArpaCorpX: Arpa Games Dice RollerArpaCorpX: Deployer0.501265822784810125 Ether
0x052032849dddf420423db12ed339132bee8220d593a1e23a5b2e35d6b1061a92111970252020-11-05 11:46:16113 days 19 hrs ago ArpaCorpX: Arpa Games Dice Roller 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00812599536337065 Ether
0x30d99e998471b43ff3deec0db24ac9bc838505751a7a9ee18e1527e994f2a53f111915932020-11-04 15:54:49114 days 14 hrs ago ArpaCorpX: Arpa Games Dice RollerArpaCorpX: Deployer1 wei
0x7fa1e08b4c2bcf7531e02139f08b1a846207d31e13ad970f1775822bcae3b163111915022020-11-04 15:34:51114 days 15 hrs ago ArpaCorpX: Arpa Games Dice Roller 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00812599536337065 Ether
0xac1f53d710d36c867aeec8cf5c9da1c1d7b3938dfe52d9f62266445546ada504111900612020-11-04 10:10:15114 days 20 hrs ago ArpaCorpX: Arpa Games Dice RollerArpaCorpX: Deployer0.707142857142857142 Ether
0xb059acd2ca5c0685ea9a3cf2fcb4532574cf3ea4dfaf2f015ca2f96878cee519111900592020-11-04 10:10:10114 days 20 hrs ago ArpaCorpX: Arpa Games Dice Roller 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00812599536337065 Ether
0x3ee61a3b6fc0d2f56417967394834ef52ca4e72cae8c0ba12102247b39f77e9e111900512020-11-04 10:07:19114 days 20 hrs ago ArpaCorpX: Arpa Games Dice RollerArpaCorpX: Deployer0.404081632653061223 Ether
0x3ecf5cb9cffd0774135cfcfc12db4d7839ef604e64206bb25820160c64084ccf111900492020-11-04 10:07:10114 days 20 hrs ago ArpaCorpX: Arpa Games Dice Roller 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00812599536337065 Ether
0x4a1919f4b62378448a98a5122619001f2698bb3bb1653dd0215d0a500d7d45b3111891742020-11-04 6:52:09115 days 1 min ago ArpaCorpX: Arpa Games Dice RollerArpaCorpX: Deployer1 wei
0xf9073e7ce4c16e62f13fcbdedb58d61fcfb8694d10b9425c5bb84444d7c8e8c6111891722020-11-04 6:52:06115 days 1 min ago ArpaCorpX: Arpa Games Dice Roller 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00812599536337065 Ether
0x7e96b272189649e240d23e6a3cc9cfe80902280dc28890043253cd2c9dfad14b111890922020-11-04 6:34:04115 days 19 mins ago ArpaCorpX: Arpa Games Dice RollerArpaCorpX: Deployer1 wei
0xa02cf04dc2b2842363ab4bcb837575cc3b4584924a9ef928282a888472df300a111890892020-11-04 6:32:55115 days 21 mins ago ArpaCorpX: Arpa Games Dice Roller 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00812599536337065 Ether
0x4c880c549f66a4cffd35edc7f02622691e92e71b97d207a936620ce2febbaeb9111886772020-11-04 4:58:46115 days 1 hr ago ArpaCorpX: Arpa Games Dice Roller0xc561437966e322d1c6bb595b5c0552ccb9697ad60.2475 Ether
0x9737774e50a147375f930f1f7814e2987f4cf37556a1f2d6e162b5591bb96c28111886752020-11-04 4:58:35115 days 1 hr ago ArpaCorpX: Arpa Games Dice Roller 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00812599536337065 Ether
0x038e4a667ec8d942ffa39967aebf39017ef3fcefbaf5b4f2ab7f64486f55d50e111885792020-11-04 4:38:39115 days 2 hrs ago ArpaCorpX: Arpa Games Dice RollerArpaCorpX: Deployer0.503389830508474575 Ether
0x01cd5b8b462632e3ae7c6e22f635c75295d2f7a9619b848c92176a02ce9c0660111885762020-11-04 4:38:21115 days 2 hrs ago ArpaCorpX: Arpa Games Dice Roller 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00812599536337065 Ether
0x4846e79ed432be6025812101fd6eb6cebffd9aa7e2daac86e89aaa8648526ceb111885632020-11-04 4:35:19115 days 2 hrs ago ArpaCorpX: Arpa Games Dice RollerArpaCorpX: Deployer1 wei
0x79d70dbc6d881e110761945385b869921d3c518d3047f8dd063791d684445c99111885592020-11-04 4:35:07115 days 2 hrs ago ArpaCorpX: Arpa Games Dice Roller 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00812599536337065 Ether
0x44786b1b134fd0d5d4a832fdffc78d35daecb7cb298b91c4af0d862c877d6879111885532020-11-04 4:34:04115 days 2 hrs ago ArpaCorpX: Arpa Games Dice Roller0xc561437966e322d1c6bb595b5c0552ccb9697ad60.2475 Ether
0xd89cb776511ad52b4aef872f90a387dedbbf72062391b73d5c2ef9b500f35eec111885502020-11-04 4:33:07115 days 2 hrs ago ArpaCorpX: Arpa Games Dice Roller 0x3dbdc81a6edc94c720b0b88fb65dbd7e395fdcf60.00812599536337065 Ether
0x4aea37f7916e4d18bfcb5c5b6836ee256231ff03d6225d65173678bf64ee3466111881432020-11-04 3:04:42115 days 3 hrs ago ArpaCorpX: Arpa Games Dice RollerArpaCorpX: Deployer0.396 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ArpaGamesDiceRoller

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-10-21
*/

pragma solidity >= 0.5.0 < 0.6.0;

/// Arpa Corp GAMES Dice Roller
/// @title A Roll Dicer Game paying Ethers
/// @author Carlos Mayorga Aguirre https://github.com/cmayorga
///
/// Revised by www.buclelabs.com

//                 ,###########      ,####################*,.   /#################(,,.        (##########*       
//                ,############(     ,#########################((#######################(,   (###########(,      
//               ,###############    ,#######(,.....*//#################,       .(########*.(##############*     
//              ,#######,.(#######.  ,#######*         #################.        ,################# ,#######*  
//             /#######*  .(#######. ,########(((((((########(,./##############(##################   /#######* 
//            /#######*    *#######(.,########################/./##################((//,*(######(    .(######(,
//           ################################*.     .,##################,              *#######################*
//         .#################################*        .#################,             *########################(,
//         ########/          /##############*         #################,            *#######(.         ,(#######*
//
//               ,@########&/           ##(,/      *,(###       .///(##/**,. (############(**,.  (########/  
//           ,*(#(,.      ./#(*.       ##&#/        .(###/      ./**###,  .,/(##             .,(##,      ,*(.
//         ,//##/                    ,##(.##/        /#(##,     .//#((#,    ,(##               /##/           
//        ,/*(##                    ,##(  .##*       /## (#,    ./##**#,    *(##               /###          
//        */.(#                     (#(    .##*      /## *##    .##(*(#////*.(##////((((/**///*, .(####/*    
//        ,/,(#      ./////(##.    (##,     .##*     /## ,/#(. .##/  *#*     (##                       //##(.
//         */###           *##.   (##//.     ,##,    /##,// #(.##(*  *#(/*   (##                          .##
//          ,/###          *##/, *(#  ,/*.    *#(.   /##/,  ,###(/*  *#, ,/* (##              ,.          .##
//             .*(##(*,,,,*(##/. .(#     .**/*,*(#/ /(##     //*./*  *#,    ,/###///////////   ,(###,..,..,##(,


//file "https://github.com/provable-things/ethereum-api/blob/master/provableAPI_0.5.sol";

// <provableAPI>
/*
Copyright (c) 2015-2016 Oraclize SRL
Copyright (c) 2016-2019 Oraclize LTD
Copyright (c) 2019 Provable Things Limited
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
pragma solidity >= 0.5.0 < 0.6.0; // Incompatible compiler version - please select a compiler within the stated pragma range, or use a different version of the provableAPI!

// Dummy contract only used to emit to end-user they are using wrong solc
contract solcChecker {
/* INCOMPATIBLE SOLC: import the following instead: "github.com/oraclize/ethereum-api/oraclizeAPI_0.4.sol" */ function f(bytes calldata x) external;
}

contract ProvableI {

    address public cbAddress;

    function setProofType(byte _proofType) external;
    function setCustomGasPrice(uint _gasPrice) external;
    function getPrice(string memory _datasource) public returns (uint _dsprice);
    function randomDS_getSessionPubKeyHash() external view returns (bytes32 _sessionKeyHash);
    function getPrice(string memory _datasource, uint _gasLimit) public returns (uint _dsprice);
    function queryN(uint _timestamp, string memory _datasource, bytes memory _argN) public payable returns (bytes32 _id);
    function query(uint _timestamp, string calldata _datasource, string calldata _arg) external payable returns (bytes32 _id);
    function query2(uint _timestamp, string memory _datasource, string memory _arg1, string memory _arg2) public payable returns (bytes32 _id);
    function query_withGasLimit(uint _timestamp, string calldata _datasource, string calldata _arg, uint _gasLimit) external payable returns (bytes32 _id);
    function queryN_withGasLimit(uint _timestamp, string calldata _datasource, bytes calldata _argN, uint _gasLimit) external payable returns (bytes32 _id);
    function query2_withGasLimit(uint _timestamp, string calldata _datasource, string calldata _arg1, string calldata _arg2, uint _gasLimit) external payable returns (bytes32 _id);
}

contract OracleAddrResolverI {
    function getAddress() public returns (address _address);
}
/*
Begin solidity-cborutils
https://github.com/smartcontractkit/solidity-cborutils
MIT License
Copyright (c) 2018 SmartContract ChainLink, Ltd.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
library Buffer {

    struct buffer {
        bytes buf;
        uint capacity;
    }

    function init(buffer memory _buf, uint _capacity) internal pure {
        uint capacity = _capacity;
        if (capacity % 32 != 0) {
            capacity += 32 - (capacity % 32);
        }
        _buf.capacity = capacity; // Allocate space for the buffer data
        assembly {
            let ptr := mload(0x40)
            mstore(_buf, ptr)
            mstore(ptr, 0)
            mstore(0x40, add(ptr, capacity))
        }
    }

    function resize(buffer memory _buf, uint _capacity) private pure {
        bytes memory oldbuf = _buf.buf;
        init(_buf, _capacity);
        append(_buf, oldbuf);
    }

    function max(uint _a, uint _b) private pure returns (uint _max) {
        if (_a > _b) {
            return _a;
        }
        return _b;
    }
    /**
      * @dev Appends a byte array to the end of the buffer. Resizes if doing so
      *      would exceed the capacity of the buffer.
      * @param _buf The buffer to append to.
      * @param _data The data to append.
      * @return The original buffer.
      *
      */
    function append(buffer memory _buf, bytes memory _data) internal pure returns (buffer memory _buffer) {
        if (_data.length + _buf.buf.length > _buf.capacity) {
            resize(_buf, max(_buf.capacity, _data.length) * 2);
        }
        uint dest;
        uint src;
        uint len = _data.length;
        assembly {
            let bufptr := mload(_buf) // Memory address of the buffer data
            let buflen := mload(bufptr) // Length of existing buffer data
            dest := add(add(bufptr, buflen), 32) // Start address = buffer address + buffer length + sizeof(buffer length)
            mstore(bufptr, add(buflen, mload(_data))) // Update buffer length
            src := add(_data, 32)
        }
        for(; len >= 32; len -= 32) { // Copy word-length chunks while possible
            assembly {
                mstore(dest, mload(src))
            }
            dest += 32;
            src += 32;
        }
        uint mask = 256 ** (32 - len) - 1; // Copy remaining bytes
        assembly {
            let srcpart := and(mload(src), not(mask))
            let destpart := and(mload(dest), mask)
            mstore(dest, or(destpart, srcpart))
        }
        return _buf;
    }
    /**
      *
      * @dev Appends a byte to the end of the buffer. Resizes if doing so would
      * exceed the capacity of the buffer.
      * @param _buf The buffer to append to.
      * @param _data The data to append.
      * @return The original buffer.
      *
      */
    function append(buffer memory _buf, uint8 _data) internal pure {
        if (_buf.buf.length + 1 > _buf.capacity) {
            resize(_buf, _buf.capacity * 2);
        }
        assembly {
            let bufptr := mload(_buf) // Memory address of the buffer data
            let buflen := mload(bufptr) // Length of existing buffer data
            let dest := add(add(bufptr, buflen), 32) // Address = buffer address + buffer length + sizeof(buffer length)
            mstore8(dest, _data)
            mstore(bufptr, add(buflen, 1)) // Update buffer length
        }
    }
    /**
      *
      * @dev Appends a byte to the end of the buffer. Resizes if doing so would
      * exceed the capacity of the buffer.
      * @param _buf The buffer to append to.
      * @param _data The data to append.
      * @return The original buffer.
      *
      */
    function appendInt(buffer memory _buf, uint _data, uint _len) internal pure returns (buffer memory _buffer) {
        if (_len + _buf.buf.length > _buf.capacity) {
            resize(_buf, max(_buf.capacity, _len) * 2);
        }
        uint mask = 256 ** _len - 1;
        assembly {
            let bufptr := mload(_buf) // Memory address of the buffer data
            let buflen := mload(bufptr) // Length of existing buffer data
            let dest := add(add(bufptr, buflen), _len) // Address = buffer address + buffer length + sizeof(buffer length) + len
            mstore(dest, or(and(mload(dest), not(mask)), _data))
            mstore(bufptr, add(buflen, _len)) // Update buffer length
        }
        return _buf;
    }
}

library CBOR {

    using Buffer for Buffer.buffer;

    uint8 private constant MAJOR_TYPE_INT = 0;
    uint8 private constant MAJOR_TYPE_MAP = 5;
    uint8 private constant MAJOR_TYPE_BYTES = 2;
    uint8 private constant MAJOR_TYPE_ARRAY = 4;
    uint8 private constant MAJOR_TYPE_STRING = 3;
    uint8 private constant MAJOR_TYPE_NEGATIVE_INT = 1;
    uint8 private constant MAJOR_TYPE_CONTENT_FREE = 7;

    function encodeType(Buffer.buffer memory _buf, uint8 _major, uint _value) private pure {
        if (_value <= 23) {
            _buf.append(uint8((_major << 5) | _value));
        } else if (_value <= 0xFF) {
            _buf.append(uint8((_major << 5) | 24));
            _buf.appendInt(_value, 1);
        } else if (_value <= 0xFFFF) {
            _buf.append(uint8((_major << 5) | 25));
            _buf.appendInt(_value, 2);
        } else if (_value <= 0xFFFFFFFF) {
            _buf.append(uint8((_major << 5) | 26));
            _buf.appendInt(_value, 4);
        } else if (_value <= 0xFFFFFFFFFFFFFFFF) {
            _buf.append(uint8((_major << 5) | 27));
            _buf.appendInt(_value, 8);
        }
    }

    function encodeIndefiniteLengthType(Buffer.buffer memory _buf, uint8 _major) private pure {
        _buf.append(uint8((_major << 5) | 31));
    }

    function encodeUInt(Buffer.buffer memory _buf, uint _value) internal pure {
        encodeType(_buf, MAJOR_TYPE_INT, _value);
    }

    function encodeInt(Buffer.buffer memory _buf, int _value) internal pure {
        if (_value >= 0) {
            encodeType(_buf, MAJOR_TYPE_INT, uint(_value));
        } else {
            encodeType(_buf, MAJOR_TYPE_NEGATIVE_INT, uint(-1 - _value));
        }
    }

    function encodeBytes(Buffer.buffer memory _buf, bytes memory _value) internal pure {
        encodeType(_buf, MAJOR_TYPE_BYTES, _value.length);
        _buf.append(_value);
    }

    function encodeString(Buffer.buffer memory _buf, string memory _value) internal pure {
        encodeType(_buf, MAJOR_TYPE_STRING, bytes(_value).length);
        _buf.append(bytes(_value));
    }

    function startArray(Buffer.buffer memory _buf) internal pure {
        encodeIndefiniteLengthType(_buf, MAJOR_TYPE_ARRAY);
    }

    function startMap(Buffer.buffer memory _buf) internal pure {
        encodeIndefiniteLengthType(_buf, MAJOR_TYPE_MAP);
    }

    function endSequence(Buffer.buffer memory _buf) internal pure {
        encodeIndefiniteLengthType(_buf, MAJOR_TYPE_CONTENT_FREE);
    }
}
/*
End solidity-cborutils
*/
contract usingProvable {

    using CBOR for Buffer.buffer;

    ProvableI provable;
    OracleAddrResolverI OAR;

    uint constant day = 60 * 60 * 24;
    uint constant week = 60 * 60 * 24 * 7;
    uint constant month = 60 * 60 * 24 * 30;

    byte constant proofType_NONE = 0x00;
    byte constant proofType_Ledger = 0x30;
    byte constant proofType_Native = 0xF0;
    byte constant proofStorage_IPFS = 0x01;
    byte constant proofType_Android = 0x40;
    byte constant proofType_TLSNotary = 0x10;

    string provable_network_name;
    uint8 constant networkID_auto = 0;
    uint8 constant networkID_morden = 2;
    uint8 constant networkID_mainnet = 1;
    uint8 constant networkID_testnet = 2;
    uint8 constant networkID_consensys = 161;

    mapping(bytes32 => bytes32) provable_randomDS_args;
    mapping(bytes32 => bool) provable_randomDS_sessionKeysHashVerified;

    modifier provableAPI {
        if ((address(OAR) == address(0)) || (getCodeSize(address(OAR)) == 0)) {
            provable_setNetwork(networkID_auto);
        }
        if (address(provable) != OAR.getAddress()) {
            provable = ProvableI(OAR.getAddress());
        }
        _;
    }

    modifier provable_randomDS_proofVerify(bytes32 _queryId, string memory _result, bytes memory _proof) {
        // RandomDS Proof Step 1: The prefix has to match 'LP\x01' (Ledger Proof version 1)
        require((_proof[0] == "L") && (_proof[1] == "P") && (uint8(_proof[2]) == uint8(1)));
        bool proofVerified = provable_randomDS_proofVerify__main(_proof, _queryId, bytes(_result), provable_getNetworkName());
        require(proofVerified);
        _;
    }

    function provable_setNetwork(uint8 _networkID) internal returns (bool _networkSet) {
      _networkID; // NOTE: Silence the warning and remain backwards compatible
      return provable_setNetwork();
    }

    function provable_setNetworkName(string memory _network_name) internal {
        provable_network_name = _network_name;
    }

    function provable_getNetworkName() internal view returns (string memory _networkName) {
        return provable_network_name;
    }

    function provable_setNetwork() internal returns (bool _networkSet) {
        if (getCodeSize(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed) > 0) { //mainnet
            OAR = OracleAddrResolverI(0x1d3B2638a7cC9f2CB3D298A3DA7a90B67E5506ed);
            provable_setNetworkName("eth_mainnet");
            return true;
        }
        if (getCodeSize(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1) > 0) { //ropsten testnet
            OAR = OracleAddrResolverI(0xc03A2615D5efaf5F49F60B7BB6583eaec212fdf1);
            provable_setNetworkName("eth_ropsten3");
            return true;
        }
        if (getCodeSize(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e) > 0) { //kovan testnet
            OAR = OracleAddrResolverI(0xB7A07BcF2Ba2f2703b24C0691b5278999C59AC7e);
            provable_setNetworkName("eth_kovan");
            return true;
        }
        if (getCodeSize(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48) > 0) { //rinkeby testnet
            OAR = OracleAddrResolverI(0x146500cfd35B22E4A392Fe0aDc06De1a1368Ed48);
            provable_setNetworkName("eth_rinkeby");
            return true;
        }
        if (getCodeSize(0xa2998EFD205FB9D4B4963aFb70778D6354ad3A41) > 0) { //goerli testnet
            OAR = OracleAddrResolverI(0xa2998EFD205FB9D4B4963aFb70778D6354ad3A41);
            provable_setNetworkName("eth_goerli");
            return true;
        }
        if (getCodeSize(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475) > 0) { //ethereum-bridge
            OAR = OracleAddrResolverI(0x6f485C8BF6fc43eA212E93BBF8ce046C7f1cb475);
            return true;
        }
        if (getCodeSize(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF) > 0) { //ether.camp ide
            OAR = OracleAddrResolverI(0x20e12A1F859B3FeaE5Fb2A0A32C18F5a65555bBF);
            return true;
        }
        if (getCodeSize(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA) > 0) { //browser-solidity
            OAR = OracleAddrResolverI(0x51efaF4c8B3C9AfBD5aB9F4bbC82784Ab6ef8fAA);
            return true;
        }
        return false;
    }
    /**
     * @dev The following `__callback` functions are just placeholders ideally
     *      meant to be defined in child contract when proofs are used.
     *      The function bodies simply silence compiler warnings.
     */
    function __callback(bytes32 _myid, string memory _result) public {
        __callback(_myid, _result, new bytes(0));
    }

    function __callback(bytes32 _myid, string memory _result, bytes memory _proof) public {
      _myid; _result; _proof;
      provable_randomDS_args[bytes32(0)] = bytes32(0);
    }

    function provable_getPrice(string memory _datasource) provableAPI internal returns (uint _queryPrice) {
        return provable.getPrice(_datasource);
    }

    function provable_getPrice(string memory _datasource, uint _gasLimit) provableAPI internal returns (uint _queryPrice) {
        return provable.getPrice(_datasource, _gasLimit);
    }

    function provable_query(string memory _datasource, string memory _arg) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource);
        if (price > 1 ether + tx.gasprice * 200000) {
            return 0; // Unexpectedly high price
        }
        return provable.query.value(price)(0, _datasource, _arg);
    }

    function provable_query(uint _timestamp, string memory _datasource, string memory _arg) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource);
        if (price > 1 ether + tx.gasprice * 200000) {
            return 0; // Unexpectedly high price
        }
        return provable.query.value(price)(_timestamp, _datasource, _arg);
    }

    function provable_query(uint _timestamp, string memory _datasource, string memory _arg, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource,_gasLimit);
        if (price > 1 ether + tx.gasprice * _gasLimit) {
            return 0; // Unexpectedly high price
        }
        return provable.query_withGasLimit.value(price)(_timestamp, _datasource, _arg, _gasLimit);
    }

    function provable_query(string memory _datasource, string memory _arg, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource, _gasLimit);
        if (price > 1 ether + tx.gasprice * _gasLimit) {
           return 0; // Unexpectedly high price
        }
        return provable.query_withGasLimit.value(price)(0, _datasource, _arg, _gasLimit);
    }

    function provable_query(string memory _datasource, string memory _arg1, string memory _arg2) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource);
        if (price > 1 ether + tx.gasprice * 200000) {
            return 0; // Unexpectedly high price
        }
        return provable.query2.value(price)(0, _datasource, _arg1, _arg2);
    }

    function provable_query(uint _timestamp, string memory _datasource, string memory _arg1, string memory _arg2) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource);
        if (price > 1 ether + tx.gasprice * 200000) {
            return 0; // Unexpectedly high price
        }
        return provable.query2.value(price)(_timestamp, _datasource, _arg1, _arg2);
    }

    function provable_query(uint _timestamp, string memory _datasource, string memory _arg1, string memory _arg2, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource, _gasLimit);
        if (price > 1 ether + tx.gasprice * _gasLimit) {
            return 0; // Unexpectedly high price
        }
        return provable.query2_withGasLimit.value(price)(_timestamp, _datasource, _arg1, _arg2, _gasLimit);
    }

    function provable_query(string memory _datasource, string memory _arg1, string memory _arg2, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource, _gasLimit);
        if (price > 1 ether + tx.gasprice * _gasLimit) {
            return 0; // Unexpectedly high price
        }
        return provable.query2_withGasLimit.value(price)(0, _datasource, _arg1, _arg2, _gasLimit);
    }

    function provable_query(string memory _datasource, string[] memory _argN) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource);
        if (price > 1 ether + tx.gasprice * 200000) {
            return 0; // Unexpectedly high price
        }
        bytes memory args = stra2cbor(_argN);
        return provable.queryN.value(price)(0, _datasource, args);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[] memory _argN) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource);
        if (price > 1 ether + tx.gasprice * 200000) {
            return 0; // Unexpectedly high price
        }
        bytes memory args = stra2cbor(_argN);
        return provable.queryN.value(price)(_timestamp, _datasource, args);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[] memory _argN, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource, _gasLimit);
        if (price > 1 ether + tx.gasprice * _gasLimit) {
            return 0; // Unexpectedly high price
        }
        bytes memory args = stra2cbor(_argN);
        return provable.queryN_withGasLimit.value(price)(_timestamp, _datasource, args, _gasLimit);
    }

    function provable_query(string memory _datasource, string[] memory _argN, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource, _gasLimit);
        if (price > 1 ether + tx.gasprice * _gasLimit) {
            return 0; // Unexpectedly high price
        }
        bytes memory args = stra2cbor(_argN);
        return provable.queryN_withGasLimit.value(price)(0, _datasource, args, _gasLimit);
    }

    function provable_query(string memory _datasource, string[1] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = _args[0];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[1] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = _args[0];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[1] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = _args[0];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, string[1] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](1);
        dynargs[0] = _args[0];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, string[2] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[2] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[2] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, string[2] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](2);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, string[3] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[3] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[3] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, string[3] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](3);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, string[4] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[4] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[4] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, string[4] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](4);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, string[5] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        dynargs[4] = _args[4];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[5] memory _args) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        dynargs[4] = _args[4];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, string[5] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        dynargs[4] = _args[4];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, string[5] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        string[] memory dynargs = new string[](5);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        dynargs[4] = _args[4];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[] memory _argN) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource);
        if (price > 1 ether + tx.gasprice * 200000) {
            return 0; // Unexpectedly high price
        }
        bytes memory args = ba2cbor(_argN);
        return provable.queryN.value(price)(0, _datasource, args);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[] memory _argN) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource);
        if (price > 1 ether + tx.gasprice * 200000) {
            return 0; // Unexpectedly high price
        }
        bytes memory args = ba2cbor(_argN);
        return provable.queryN.value(price)(_timestamp, _datasource, args);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[] memory _argN, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource, _gasLimit);
        if (price > 1 ether + tx.gasprice * _gasLimit) {
            return 0; // Unexpectedly high price
        }
        bytes memory args = ba2cbor(_argN);
        return provable.queryN_withGasLimit.value(price)(_timestamp, _datasource, args, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[] memory _argN, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        uint price = provable.getPrice(_datasource, _gasLimit);
        if (price > 1 ether + tx.gasprice * _gasLimit) {
            return 0; // Unexpectedly high price
        }
        bytes memory args = ba2cbor(_argN);
        return provable.queryN_withGasLimit.value(price)(0, _datasource, args, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[1] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = _args[0];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[1] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = _args[0];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[1] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = _args[0];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[1] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](1);
        dynargs[0] = _args[0];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[2] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[2] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[2] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[2] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](2);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[3] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[3] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[3] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[3] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](3);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[4] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[4] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[4] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[4] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](4);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[5] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        dynargs[4] = _args[4];
        return provable_query(_datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[5] memory _args) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        dynargs[4] = _args[4];
        return provable_query(_timestamp, _datasource, dynargs);
    }

    function provable_query(uint _timestamp, string memory _datasource, bytes[5] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        dynargs[4] = _args[4];
        return provable_query(_timestamp, _datasource, dynargs, _gasLimit);
    }

    function provable_query(string memory _datasource, bytes[5] memory _args, uint _gasLimit) provableAPI internal returns (bytes32 _id) {
        bytes[] memory dynargs = new bytes[](5);
        dynargs[0] = _args[0];
        dynargs[1] = _args[1];
        dynargs[2] = _args[2];
        dynargs[3] = _args[3];
        dynargs[4] = _args[4];
        return provable_query(_datasource, dynargs, _gasLimit);
    }

    function provable_setProof(byte _proofP) provableAPI internal {
        return provable.setProofType(_proofP);
    }


    function provable_cbAddress() provableAPI internal returns (address _callbackAddress) {
        return provable.cbAddress();
    }

    function getCodeSize(address _addr) view internal returns (uint _size) {
        assembly {
            _size := extcodesize(_addr)
        }
    }

    function provable_setCustomGasPrice(uint _gasPrice) provableAPI internal {
        return provable.setCustomGasPrice(_gasPrice);
    }

    function provable_randomDS_getSessionPubKeyHash() provableAPI internal returns (bytes32 _sessionKeyHash) {
        return provable.randomDS_getSessionPubKeyHash();
    }

    function parseAddr(string memory _a) internal pure returns (address _parsedAddress) {
        bytes memory tmp = bytes(_a);
        uint160 iaddr = 0;
        uint160 b1;
        uint160 b2;
        for (uint i = 2; i < 2 + 2 * 20; i += 2) {
            iaddr *= 256;
            b1 = uint160(uint8(tmp[i]));
            b2 = uint160(uint8(tmp[i + 1]));
            if ((b1 >= 97) && (b1 <= 102)) {
                b1 -= 87;
            } else if ((b1 >= 65) && (b1 <= 70)) {
                b1 -= 55;
            } else if ((b1 >= 48) && (b1 <= 57)) {
                b1 -= 48;
            }
            if ((b2 >= 97) && (b2 <= 102)) {
                b2 -= 87;
            } else if ((b2 >= 65) && (b2 <= 70)) {
                b2 -= 55;
            } else if ((b2 >= 48) && (b2 <= 57)) {
                b2 -= 48;
            }
            iaddr += (b1 * 16 + b2);
        }
        return address(iaddr);
    }

    function strCompare(string memory _a, string memory _b) internal pure returns (int _returnCode) {
        bytes memory a = bytes(_a);
        bytes memory b = bytes(_b);
        uint minLength = a.length;
        if (b.length < minLength) {
            minLength = b.length;
        }
        for (uint i = 0; i < minLength; i ++) {
            if (a[i] < b[i]) {
                return -1;
            } else if (a[i] > b[i]) {
                return 1;
            }
        }
        if (a.length < b.length) {
            return -1;
        } else if (a.length > b.length) {
            return 1;
        } else {
            return 0;
        }
    }

    function indexOf(string memory _haystack, string memory _needle) internal pure returns (int _returnCode) {
        bytes memory h = bytes(_haystack);
        bytes memory n = bytes(_needle);
        if (h.length < 1 || n.length < 1 || (n.length > h.length)) {
            return -1;
        } else if (h.length > (2 ** 128 - 1)) {
            return -1;
        } else {
            uint subindex = 0;
            for (uint i = 0; i < h.length; i++) {
                if (h[i] == n[0]) {
                    subindex = 1;
                    while(subindex < n.length && (i + subindex) < h.length && h[i + subindex] == n[subindex]) {
                        subindex++;
                    }
                    if (subindex == n.length) {
                        return int(i);
                    }
                }
            }
            return -1;
        }
    }

    function strConcat(string memory _a, string memory _b) internal pure returns (string memory _concatenatedString) {
        return strConcat(_a, _b, "", "", "");
    }

    function strConcat(string memory _a, string memory _b, string memory _c) internal pure returns (string memory _concatenatedString) {
        return strConcat(_a, _b, _c, "", "");
    }

    function strConcat(string memory _a, string memory _b, string memory _c, string memory _d) internal pure returns (string memory _concatenatedString) {
        return strConcat(_a, _b, _c, _d, "");
    }

    function strConcat(string memory _a, string memory _b, string memory _c, string memory _d, string memory _e) internal pure returns (string memory _concatenatedString) {
        bytes memory _ba = bytes(_a);
        bytes memory _bb = bytes(_b);
        bytes memory _bc = bytes(_c);
        bytes memory _bd = bytes(_d);
        bytes memory _be = bytes(_e);
        string memory abcde = new string(_ba.length + _bb.length + _bc.length + _bd.length + _be.length);
        bytes memory babcde = bytes(abcde);
        uint k = 0;
        uint i = 0;
        for (i = 0; i < _ba.length; i++) {
            babcde[k++] = _ba[i];
        }
        for (i = 0; i < _bb.length; i++) {
            babcde[k++] = _bb[i];
        }
        for (i = 0; i < _bc.length; i++) {
            babcde[k++] = _bc[i];
        }
        for (i = 0; i < _bd.length; i++) {
            babcde[k++] = _bd[i];
        }
        for (i = 0; i < _be.length; i++) {
            babcde[k++] = _be[i];
        }
        return string(babcde);
    }

    function safeParseInt(string memory _a) internal pure returns (uint _parsedInt) {
        return safeParseInt(_a, 0);
    }

    function safeParseInt(string memory _a, uint _b) internal pure returns (uint _parsedInt) {
        bytes memory bresult = bytes(_a);
        uint mint = 0;
        bool decimals = false;
        for (uint i = 0; i < bresult.length; i++) {
            if ((uint(uint8(bresult[i])) >= 48) && (uint(uint8(bresult[i])) <= 57)) {
                if (decimals) {
                   if (_b == 0) break;
                    else _b--;
                }
                mint *= 10;
                mint += uint(uint8(bresult[i])) - 48;
            } else if (uint(uint8(bresult[i])) == 46) {
                require(!decimals, 'More than one decimal encountered in string!');
                decimals = true;
            } else {
                revert("Non-numeral character encountered in string!");
            }
        }
        if (_b > 0) {
            mint *= 10 ** _b;
        }
        return mint;
    }

    function parseInt(string memory _a) internal pure returns (uint _parsedInt) {
        return parseInt(_a, 0);
    }

    function parseInt(string memory _a, uint _b) internal pure returns (uint _parsedInt) {
        bytes memory bresult = bytes(_a);
        uint mint = 0;
        bool decimals = false;
        for (uint i = 0; i < bresult.length; i++) {
            if ((uint(uint8(bresult[i])) >= 48) && (uint(uint8(bresult[i])) <= 57)) {
                if (decimals) {
                   if (_b == 0) {
                       break;
                   } else {
                       _b--;
                   }
                }
                mint *= 10;
                mint += uint(uint8(bresult[i])) - 48;
            } else if (uint(uint8(bresult[i])) == 46) {
                decimals = true;
            }
        }
        if (_b > 0) {
            mint *= 10 ** _b;
        }
        return mint;
    }

    function uint2str(uint _i) internal pure returns (string memory _uintAsString) {
        if (_i == 0) {
            return "0";
        }
        uint j = _i;
        uint len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(len);
        uint k = len - 1;
        while (_i != 0) {
            bstr[k--] = byte(uint8(48 + _i % 10));
            _i /= 10;
        }
        return string(bstr);
    }

    function stra2cbor(string[] memory _arr) internal pure returns (bytes memory _cborEncoding) {
        safeMemoryCleaner();
        Buffer.buffer memory buf;
        Buffer.init(buf, 1024);
        buf.startArray();
        for (uint i = 0; i < _arr.length; i++) {
            buf.encodeString(_arr[i]);
        }
        buf.endSequence();
        return buf.buf;
    }

    function ba2cbor(bytes[] memory _arr) internal pure returns (bytes memory _cborEncoding) {
        safeMemoryCleaner();
        Buffer.buffer memory buf;
        Buffer.init(buf, 1024);
        buf.startArray();
        for (uint i = 0; i < _arr.length; i++) {
            buf.encodeBytes(_arr[i]);
        }
        buf.endSequence();
        return buf.buf;
    }

    function provable_newRandomDSQuery(uint _delay, uint _nbytes, uint _customGasLimit) internal returns (bytes32 _queryId) {
        require((_nbytes > 0) && (_nbytes <= 32));
        _delay *= 10; // Convert from seconds to ledger timer ticks
        bytes memory nbytes = new bytes(1);
        nbytes[0] = byte(uint8(_nbytes));
        bytes memory unonce = new bytes(32);
        bytes memory sessionKeyHash = new bytes(32);
        bytes32 sessionKeyHash_bytes32 = provable_randomDS_getSessionPubKeyHash();
        assembly {
            mstore(unonce, 0x20)
            /*
             The following variables can be relaxed.
             Check the relaxed random contract at https://github.com/oraclize/ethereum-examples
             for an idea on how to override and replace commit hash variables.
            */
            mstore(add(unonce, 0x20), xor(blockhash(sub(number, 1)), xor(coinbase, timestamp)))
            mstore(sessionKeyHash, 0x20)
            mstore(add(sessionKeyHash, 0x20), sessionKeyHash_bytes32)
        }
        bytes memory delay = new bytes(32);
        assembly {
            mstore(add(delay, 0x20), _delay)
        }
        bytes memory delay_bytes8 = new bytes(8);
        copyBytes(delay, 24, 8, delay_bytes8, 0);
        bytes[4] memory args = [unonce, nbytes, sessionKeyHash, delay];
        bytes32 queryId = provable_query("random", args, _customGasLimit);
        bytes memory delay_bytes8_left = new bytes(8);
        assembly {
            let x := mload(add(delay_bytes8, 0x20))
            mstore8(add(delay_bytes8_left, 0x27), div(x, 0x100000000000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x26), div(x, 0x1000000000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x25), div(x, 0x10000000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x24), div(x, 0x100000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x23), div(x, 0x1000000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x22), div(x, 0x10000000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x21), div(x, 0x100000000000000000000000000000000000000000000000000))
            mstore8(add(delay_bytes8_left, 0x20), div(x, 0x1000000000000000000000000000000000000000000000000))
        }
        provable_randomDS_setCommitment(queryId, keccak256(abi.encodePacked(delay_bytes8_left, args[1], sha256(args[0]), args[2])));
        return queryId;
    }

    function provable_randomDS_setCommitment(bytes32 _queryId, bytes32 _commitment) internal {
        provable_randomDS_args[_queryId] = _commitment;
    }

    function verifySig(bytes32 _tosignh, bytes memory _dersig, bytes memory _pubkey) internal returns (bool _sigVerified) {
        bool sigok;
        address signer;
        bytes32 sigr;
        bytes32 sigs;
        bytes memory sigr_ = new bytes(32);
        uint offset = 4 + (uint(uint8(_dersig[3])) - 0x20);
        sigr_ = copyBytes(_dersig, offset, 32, sigr_, 0);
        bytes memory sigs_ = new bytes(32);
        offset += 32 + 2;
        sigs_ = copyBytes(_dersig, offset + (uint(uint8(_dersig[offset - 1])) - 0x20), 32, sigs_, 0);
        assembly {
            sigr := mload(add(sigr_, 32))
            sigs := mload(add(sigs_, 32))
        }
        (sigok, signer) = safer_ecrecover(_tosignh, 27, sigr, sigs);
        if (address(uint160(uint256(keccak256(_pubkey)))) == signer) {
            return true;
        } else {
            (sigok, signer) = safer_ecrecover(_tosignh, 28, sigr, sigs);
            return (address(uint160(uint256(keccak256(_pubkey)))) == signer);
        }
    }

    function provable_randomDS_proofVerify__sessionKeyValidity(bytes memory _proof, uint _sig2offset) internal returns (bool _proofVerified) {
        bool sigok;
        // Random DS Proof Step 6: Verify the attestation signature, APPKEY1 must sign the sessionKey from the correct ledger app (CODEHASH)
        bytes memory sig2 = new bytes(uint(uint8(_proof[_sig2offset + 1])) + 2);
        copyBytes(_proof, _sig2offset, sig2.length, sig2, 0);
        bytes memory appkey1_pubkey = new bytes(64);
        copyBytes(_proof, 3 + 1, 64, appkey1_pubkey, 0);
        bytes memory tosign2 = new bytes(1 + 65 + 32);
        tosign2[0] = byte(uint8(1)); //role
        copyBytes(_proof, _sig2offset - 65, 65, tosign2, 1);
        bytes memory CODEHASH = hex"fd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c";
        copyBytes(CODEHASH, 0, 32, tosign2, 1 + 65);
        sigok = verifySig(sha256(tosign2), sig2, appkey1_pubkey);
        if (!sigok) {
            return false;
        }
        // Random DS Proof Step 7: Verify the APPKEY1 provenance (must be signed by Ledger)
        bytes memory LEDGERKEY = hex"7fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e8537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e4";
        bytes memory tosign3 = new bytes(1 + 65);
        tosign3[0] = 0xFE;
        copyBytes(_proof, 3, 65, tosign3, 1);
        bytes memory sig3 = new bytes(uint(uint8(_proof[3 + 65 + 1])) + 2);
        copyBytes(_proof, 3 + 65, sig3.length, sig3, 0);
        sigok = verifySig(sha256(tosign3), sig3, LEDGERKEY);
        return sigok;
    }

    function provable_randomDS_proofVerify__returnCode(bytes32 _queryId, string memory _result, bytes memory _proof) internal returns (uint8 _returnCode) {
        // Random DS Proof Step 1: The prefix has to match 'LP\x01' (Ledger Proof version 1)
        if ((_proof[0] != "L") || (_proof[1] != "P") || (uint8(_proof[2]) != uint8(1))) {
            return 1;
        }
        bool proofVerified = provable_randomDS_proofVerify__main(_proof, _queryId, bytes(_result), provable_getNetworkName());
        if (!proofVerified) {
            return 2;
        }
        return 0;
    }

    function matchBytes32Prefix(bytes32 _content, bytes memory _prefix, uint _nRandomBytes) internal pure returns (bool _matchesPrefix) {
        bool match_ = true;
        require(_prefix.length == _nRandomBytes);
        for (uint256 i = 0; i< _nRandomBytes; i++) {
            if (_content[i] != _prefix[i]) {
                match_ = false;
            }
        }
        return match_;
    }

    function provable_randomDS_proofVerify__main(bytes memory _proof, bytes32 _queryId, bytes memory _result, string memory _contextName) internal returns (bool _proofVerified) {
        // Random DS Proof Step 2: The unique keyhash has to match with the sha256 of (context name + _queryId)
        uint ledgerProofLength = 3 + 65 + (uint(uint8(_proof[3 + 65 + 1])) + 2) + 32;
        bytes memory keyhash = new bytes(32);
        copyBytes(_proof, ledgerProofLength, 32, keyhash, 0);
        if (!(keccak256(keyhash) == keccak256(abi.encodePacked(sha256(abi.encodePacked(_contextName, _queryId)))))) {
            return false;
        }
        bytes memory sig1 = new bytes(uint(uint8(_proof[ledgerProofLength + (32 + 8 + 1 + 32) + 1])) + 2);
        copyBytes(_proof, ledgerProofLength + (32 + 8 + 1 + 32), sig1.length, sig1, 0);
        // Random DS Proof Step 3: We assume sig1 is valid (it will be verified during step 5) and we verify if '_result' is the _prefix of sha256(sig1)
        if (!matchBytes32Prefix(sha256(sig1), _result, uint(uint8(_proof[ledgerProofLength + 32 + 8])))) {
            return false;
        }
        // Random DS Proof Step 4: Commitment match verification, keccak256(delay, nbytes, unonce, sessionKeyHash) == commitment in storage.
        // This is to verify that the computed args match with the ones specified in the query.
        bytes memory commitmentSlice1 = new bytes(8 + 1 + 32);
        copyBytes(_proof, ledgerProofLength + 32, 8 + 1 + 32, commitmentSlice1, 0);
        bytes memory sessionPubkey = new bytes(64);
        uint sig2offset = ledgerProofLength + 32 + (8 + 1 + 32) + sig1.length + 65;
        copyBytes(_proof, sig2offset - 64, 64, sessionPubkey, 0);
        bytes32 sessionPubkeyHash = sha256(sessionPubkey);
        if (provable_randomDS_args[_queryId] == keccak256(abi.encodePacked(commitmentSlice1, sessionPubkeyHash))) { //unonce, nbytes and sessionKeyHash match
            delete provable_randomDS_args[_queryId];
        } else return false;
        // Random DS Proof Step 5: Validity verification for sig1 (keyhash and args signed with the sessionKey)
        bytes memory tosign1 = new bytes(32 + 8 + 1 + 32);
        copyBytes(_proof, ledgerProofLength, 32 + 8 + 1 + 32, tosign1, 0);
        if (!verifySig(sha256(tosign1), sig1, sessionPubkey)) {
            return false;
        }
        // Verify if sessionPubkeyHash was verified already, if not.. let's do it!
        if (!provable_randomDS_sessionKeysHashVerified[sessionPubkeyHash]) {
            provable_randomDS_sessionKeysHashVerified[sessionPubkeyHash] = provable_randomDS_proofVerify__sessionKeyValidity(_proof, sig2offset);
        }
        return provable_randomDS_sessionKeysHashVerified[sessionPubkeyHash];
    }
    /*
     The following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license
    */
    function copyBytes(bytes memory _from, uint _fromOffset, uint _length, bytes memory _to, uint _toOffset) internal pure returns (bytes memory _copiedBytes) {
        uint minLength = _length + _toOffset;
        require(_to.length >= minLength); // Buffer too small. Should be a better way?
        uint i = 32 + _fromOffset; // NOTE: the offset 32 is added to skip the `size` field of both bytes variables
        uint j = 32 + _toOffset;
        while (i < (32 + _fromOffset + _length)) {
            assembly {
                let tmp := mload(add(_from, i))
                mstore(add(_to, j), tmp)
            }
            i += 32;
            j += 32;
        }
        return _to;
    }
    /*
     The following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license
     Duplicate Solidity's ecrecover, but catching the CALL return value
    */
    function safer_ecrecover(bytes32 _hash, uint8 _v, bytes32 _r, bytes32 _s) internal returns (bool _success, address _recoveredAddress) {
        /*
         We do our own memory management here. Solidity uses memory offset
         0x40 to store the current end of memory. We write past it (as
         writes are memory extensions), but don't update the offset so
         Solidity will reuse it. The memory used here is only needed for
         this context.
         FIXME: inline assembly can't access return values
        */
        bool ret;
        address addr;
        assembly {
            let size := mload(0x40)
            mstore(size, _hash)
            mstore(add(size, 32), _v)
            mstore(add(size, 64), _r)
            mstore(add(size, 96), _s)
            ret := call(3000, 1, 0, size, 128, size, 32) // NOTE: we can reuse the request memory because we deal with the return code.
            addr := mload(size)
        }
        return (ret, addr);
    }
    /*
     The following function has been written by Alex Beregszaszi (@axic), use it under the terms of the MIT license
    */
    function ecrecovery(bytes32 _hash, bytes memory _sig) internal returns (bool _success, address _recoveredAddress) {
        bytes32 r;
        bytes32 s;
        uint8 v;
        if (_sig.length != 65) {
            return (false, address(0));
        }
        /*
         The signature format is a compact form of:
           {bytes32 r}{bytes32 s}{uint8 v}
         Compact means, uint8 is not padded to 32 bytes.
        */
        assembly {
            r := mload(add(_sig, 32))
            s := mload(add(_sig, 64))
            /*
             Here we are loading the last 32 bytes. We exploit the fact that
             'mload' will pad with zeroes if we overread.
             There is no 'mload8' to do this, but that would be nicer.
            */
            v := byte(0, mload(add(_sig, 96)))
            /*
              Alternative solution:
              'byte' is not working due to the Solidity parser, so lets
              use the second best option, 'and'
              v := and(mload(add(_sig, 65)), 255)
            */
        }
        /*
         albeit non-transactional signatures are not specified by the YP, one would expect it
         to match the YP range of [27, 28]
         geth uses [0, 1] and some clients have followed. This might change, see:
         https://github.com/ethereum/go-ethereum/issues/2053
        */
        if (v < 27) {
            v += 27;
        }
        if (v != 27 && v != 28) {
            return (false, address(0));
        }
        return safer_ecrecover(_hash, v, r, s);
    }

    function safeMemoryCleaner() internal pure {
        assembly {
            let fmem := mload(0x40)
            codecopy(fmem, codesize, sub(msize, fmem))
        }
    }
}
// </provableAPI>


//file "https://github.com/OpenZeppelin/solidity-jwt/blob/master/contracts/Strings.sol";

/*
 * @title String & slice utility library for Solidity contracts.
 * @author Nick Johnson <[email protected]>
 *
 * @dev Functionality in this library is largely implemented using an
 *      abstraction called a 'slice'. A slice represents a part of a string -
 *      anything from the entire string to a single character, or even no
 *      characters at all (a 0-length slice). Since a slice only has to specify
 *      an offset and a length, copying and manipulating slices is a lot less
 *      expensive than copying and manipulating the strings they reference.
 *
 *      To further reduce gas costs, most functions on slice that need to return
 *      a slice modify the original one instead of allocating a new one; for
 *      instance, `s.split(".")` will return the text up to the first '.',
 *      modifying s to only contain the remainder of the string after the '.'.
 *      In situations where you do not want to modify the original slice, you
 *      can make a copy first with `.copy()`, for example:
 *      `s.copy().split(".")`. Try and avoid using this idiom in loops; since
 *      Solidity has no memory management, it will result in allocating many
 *      short-lived slices that are later discarded.
 *
 *      Functions that return two slices come in two versions: a non-allocating
 *      version that takes the second slice as an argument, modifying it in
 *      place, and an allocating version that allocates and returns the second
 *      slice; see `nextRune` for example.
 *
 *      Functions that have to copy string data will return strings rather than
 *      slices; these can be cast back to slices for further processing if
 *      required.
 *
 *      For convenience, some functions are provided with non-modifying
 *      variants that create a new slice and return both; for instance,
 *      `s.splitNew('.')` leaves s unmodified, and returns two values
 *      corresponding to the left and right parts of the string.
 */

pragma solidity ^0.5.0;

library StringUtils {
    struct slice {
        uint _len;
        uint _ptr;
    }

    function memcpy(uint dest, uint src, uint len) private pure {
        // Copy word-length chunks while possible
        for(; len >= 32; len -= 32) {
            assembly {
                mstore(dest, mload(src))
            }
            dest += 32;
            src += 32;
        }

        // Copy remaining bytes
        uint mask = 256 ** (32 - len) - 1;
        assembly {
            let srcpart := and(mload(src), not(mask))
            let destpart := and(mload(dest), mask)
            mstore(dest, or(destpart, srcpart))
        }
    }

    /*
     * @dev Returns a slice containing the entire string.
     * @param self The string to make a slice from.
     * @return A newly allocated slice containing the entire string.
     */
    function toSlice(string memory self) internal pure returns (slice memory) {
        uint ptr;
        assembly {
            ptr := add(self, 0x20)
        }
        return slice(bytes(self).length, ptr);
    }

    /*
     * @dev Returns the length of a null-terminated bytes32 string.
     * @param self The value to find the length of.
     * @return The length of the string, from 0 to 32.
     */
    function len(bytes32 self) internal pure returns (uint) {
        uint ret;
        if (self == 0)
            return 0;
        if (self & bytes32(uint256(0xffffffffffffffffffffffffffffffff)) == 0) {
            ret += 16;
            self = bytes32(uint(self) / 0x100000000000000000000000000000000);
        }
        if (self & bytes32(uint256(0xffffffffffffffff)) == 0) {
            ret += 8;
            self = bytes32(uint(self) / 0x10000000000000000);
        }
        if (self & bytes32(uint256(0xffffffff)) == 0) {
            ret += 4;
            self = bytes32(uint(self) / 0x100000000);
        }
        if (self & bytes32(uint256(0xffff)) == 0) {
            ret += 2;
            self = bytes32(uint(self) / 0x10000);
        }
        if (self & bytes32(uint256(0xff)) == 0) {
            ret += 1;
        }
        return 32 - ret;
    }

    /*
     * @dev Returns a slice containing the entire bytes32, interpreted as a
     *      null-terminated utf-8 string.
     * @param self The bytes32 value to convert to a slice.
     * @return A new slice containing the value of the input argument up to the
     *         first null.
     */
    function toSliceB32(bytes32 self) internal pure returns (slice memory ret) {
        // Allocate space for `self` in memory, copy it there, and point ret at it
        assembly {
            let ptr := mload(0x40)
            mstore(0x40, add(ptr, 0x20))
            mstore(ptr, self)
            mstore(add(ret, 0x20), ptr)
        }
        ret._len = len(self);
    }

    /*
     * @dev Returns a new slice containing the same data as the current slice.
     * @param self The slice to copy.
     * @return A new slice containing the same data as `self`.
     */
    function copy(slice memory self) internal pure returns (slice memory) {
        return slice(self._len, self._ptr);
    }

    /*
     * @dev Copies a slice to a new string.
     * @param self The slice to copy.
     * @return A newly allocated string containing the slice's text.
     */
    function toString(slice memory self) internal pure returns (string memory) {
        string memory ret = new string(self._len);
        uint retptr;
        assembly { retptr := add(ret, 32) }

        memcpy(retptr, self._ptr, self._len);
        return ret;
    }

    /*
     * @dev Returns the length in runes of the slice. Note that this operation
     *      takes time proportional to the length of the slice; avoid using it
     *      in loops, and call `slice.empty()` if you only need to know whether
     *      the slice is empty or not.
     * @param self The slice to operate on.
     * @return The length of the slice in runes.
     */
    function len(slice memory self) internal pure returns (uint l) {
        // Starting at ptr-31 means the LSB will be the byte we care about
        uint ptr = self._ptr - 31;
        uint end = ptr + self._len;
        for (l = 0; ptr < end; l++) {
            uint8 b;
            assembly { b := and(mload(ptr), 0xFF) }
            if (b < 0x80) {
                ptr += 1;
            } else if(b < 0xE0) {
                ptr += 2;
            } else if(b < 0xF0) {
                ptr += 3;
            } else if(b < 0xF8) {
                ptr += 4;
            } else if(b < 0xFC) {
                ptr += 5;
            } else {
                ptr += 6;
            }
        }
    }

    /*
     * @dev Returns true if the slice is empty (has a length of 0).
     * @param self The slice to operate on.
     * @return True if the slice is empty, False otherwise.
     */
    function empty(slice memory self) internal pure returns (bool) {
        return self._len == 0;
    }

    /*
     * @dev Returns a positive number if `other` comes lexicographically after
     *      `self`, a negative number if it comes before, or zero if the
     *      contents of the two slices are equal. Comparison is done per-rune,
     *      on unicode codepoints.
     * @param self The first slice to compare.
     * @param other The second slice to compare.
     * @return The result of the comparison.
     */
    function compare(slice memory self, slice memory other) internal pure returns (int) {
        uint shortest = self._len;
        if (other._len < self._len)
            shortest = other._len;

        uint selfptr = self._ptr;
        uint otherptr = other._ptr;
        for (uint idx = 0; idx < shortest; idx += 32) {
            uint a;
            uint b;
            assembly {
                a := mload(selfptr)
                b := mload(otherptr)
            }
            if (a != b) {
                // Mask out irrelevant bytes and check again
                uint256 mask = uint256(-1); // 0xffff...
                if(shortest < 32) {
                  mask = ~(2 ** (8 * (32 - shortest + idx)) - 1);
                }
                uint256 diff = (a & mask) - (b & mask);
                if (diff != 0)
                    return int(diff);
            }
            selfptr += 32;
            otherptr += 32;
        }
        return int(self._len) - int(other._len);
    }

    /*
     * @dev Returns true if the two slices contain the same text.
     * @param self The first slice to compare.
     * @param self The second slice to compare.
     * @return True if the slices are equal, false otherwise.
     */
    function equals(slice memory self, slice memory other) internal pure returns (bool) {
        return compare(self, other) == 0;
    }

    /*
     * @dev Extracts the first rune in the slice into `rune`, advancing the
     *      slice to point to the next rune and returning `self`.
     * @param self The slice to operate on.
     * @param rune The slice that will contain the first rune.
     * @return `rune`.
     */
    function nextRune(slice memory self, slice memory rune) internal pure returns (slice memory) {
        rune._ptr = self._ptr;

        if (self._len == 0) {
            rune._len = 0;
            return rune;
        }

        uint l;
        uint b;
        // Load the first byte of the rune into the LSBs of b
        assembly { b := and(mload(sub(mload(add(self, 32)), 31)), 0xFF) }
        if (b < 0x80) {
            l = 1;
        } else if(b < 0xE0) {
            l = 2;
        } else if(b < 0xF0) {
            l = 3;
        } else {
            l = 4;
        }

        // Check for truncated codepoints
        if (l > self._len) {
            rune._len = self._len;
            self._ptr += self._len;
            self._len = 0;
            return rune;
        }

        self._ptr += l;
        self._len -= l;
        rune._len = l;
        return rune;
    }

    /*
     * @dev Returns the first rune in the slice, advancing the slice to point
     *      to the next rune.
     * @param self The slice to operate on.
     * @return A slice containing only the first rune from `self`.
     */
    function nextRune(slice memory self) internal pure returns (slice memory ret) {
        nextRune(self, ret);
    }

    /*
     * @dev Returns the number of the first codepoint in the slice.
     * @param self The slice to operate on.
     * @return The number of the first codepoint in the slice.
     */
    function ord(slice memory self) internal pure returns (uint ret) {
        if (self._len == 0) {
            return 0;
        }

        uint word;
        uint length;
        uint divisor = 2 ** 248;

        // Load the rune into the MSBs of b
        assembly { word:= mload(mload(add(self, 32))) }
        uint b = word / divisor;
        if (b < 0x80) {
            ret = b;
            length = 1;
        } else if(b < 0xE0) {
            ret = b & 0x1F;
            length = 2;
        } else if(b < 0xF0) {
            ret = b & 0x0F;
            length = 3;
        } else {
            ret = b & 0x07;
            length = 4;
        }

        // Check for truncated codepoints
        if (length > self._len) {
            return 0;
        }

        for (uint i = 1; i < length; i++) {
            divisor = divisor / 256;
            b = (word / divisor) & 0xFF;
            if (b & 0xC0 != 0x80) {
                // Invalid UTF-8 sequence
                return 0;
            }
            ret = (ret * 64) | (b & 0x3F);
        }

        return ret;
    }

    /*
     * @dev Returns the keccak-256 hash of the slice.
     * @param self The slice to hash.
     * @return The hash of the slice.
     */
    function keccak(slice memory self) internal pure returns (bytes32 ret) {
        assembly {
            ret := keccak256(mload(add(self, 32)), mload(self))
        }
    }

    /*
     * @dev Returns true if `self` starts with `needle`.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return True if the slice starts with the provided text, false otherwise.
     */
    function startsWith(slice memory self, slice memory needle) internal pure returns (bool) {
        if (self._len < needle._len) {
            return false;
        }

        if (self._ptr == needle._ptr) {
            return true;
        }

        bool equal;
        assembly {
            let length := mload(needle)
            let selfptr := mload(add(self, 0x20))
            let needleptr := mload(add(needle, 0x20))
            equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
        }
        return equal;
    }

    /*
     * @dev If `self` starts with `needle`, `needle` is removed from the
     *      beginning of `self`. Otherwise, `self` is unmodified.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return `self`
     */
    function beyond(slice memory self, slice memory needle) internal pure returns (slice memory) {
        if (self._len < needle._len) {
            return self;
        }

        bool equal = true;
        if (self._ptr != needle._ptr) {
            assembly {
                let length := mload(needle)
                let selfptr := mload(add(self, 0x20))
                let needleptr := mload(add(needle, 0x20))
                equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
            }
        }

        if (equal) {
            self._len -= needle._len;
            self._ptr += needle._len;
        }

        return self;
    }

    /*
     * @dev Returns true if the slice ends with `needle`.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return True if the slice starts with the provided text, false otherwise.
     */
    function endsWith(slice memory self, slice memory needle) internal pure returns (bool) {
        if (self._len < needle._len) {
            return false;
        }

        uint selfptr = self._ptr + self._len - needle._len;

        if (selfptr == needle._ptr) {
            return true;
        }

        bool equal;
        assembly {
            let length := mload(needle)
            let needleptr := mload(add(needle, 0x20))
            equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
        }

        return equal;
    }

    /*
     * @dev If `self` ends with `needle`, `needle` is removed from the
     *      end of `self`. Otherwise, `self` is unmodified.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return `self`
     */
    function until(slice memory self, slice memory needle) internal pure returns (slice memory) {
        if (self._len < needle._len) {
            return self;
        }

        uint selfptr = self._ptr + self._len - needle._len;
        bool equal = true;
        if (selfptr != needle._ptr) {
            assembly {
                let length := mload(needle)
                let needleptr := mload(add(needle, 0x20))
                equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
            }
        }

        if (equal) {
            self._len -= needle._len;
        }

        return self;
    }

    // Returns the memory address of the first byte of the first occurrence of
    // `needle` in `self`, or the first byte after `self` if not found.
    function findPtr(uint selflen, uint selfptr, uint needlelen, uint needleptr) private pure returns (uint) {
        uint ptr = selfptr;
        uint idx;

        if (needlelen <= selflen) {
            if (needlelen <= 32) {
                bytes32 mask = bytes32(~(2 ** (8 * (32 - needlelen)) - 1));

                bytes32 needledata;
                assembly { needledata := and(mload(needleptr), mask) }

                uint end = selfptr + selflen - needlelen;
                bytes32 ptrdata;
                assembly { ptrdata := and(mload(ptr), mask) }

                while (ptrdata != needledata) {
                    if (ptr >= end)
                        return selfptr + selflen;
                    ptr++;
                    assembly { ptrdata := and(mload(ptr), mask) }
                }
                return ptr;
            } else {
                // For long needles, use hashing
                bytes32 hash;
                assembly { hash := keccak256(needleptr, needlelen) }

                for (idx = 0; idx <= selflen - needlelen; idx++) {
                    bytes32 testHash;
                    assembly { testHash := keccak256(ptr, needlelen) }
                    if (hash == testHash)
                        return ptr;
                    ptr += 1;
                }
            }
        }
        return selfptr + selflen;
    }

    // Returns the memory address of the first byte after the last occurrence of
    // `needle` in `self`, or the address of `self` if not found.
    function rfindPtr(uint selflen, uint selfptr, uint needlelen, uint needleptr) private pure returns (uint) {
        uint ptr;

        if (needlelen <= selflen) {
            if (needlelen <= 32) {
                bytes32 mask = bytes32(~(2 ** (8 * (32 - needlelen)) - 1));

                bytes32 needledata;
                assembly { needledata := and(mload(needleptr), mask) }

                ptr = selfptr + selflen - needlelen;
                bytes32 ptrdata;
                assembly { ptrdata := and(mload(ptr), mask) }

                while (ptrdata != needledata) {
                    if (ptr <= selfptr)
                        return selfptr;
                    ptr--;
                    assembly { ptrdata := and(mload(ptr), mask) }
                }
                return ptr + needlelen;
            } else {
                // For long needles, use hashing
                bytes32 hash;
                assembly { hash := keccak256(needleptr, needlelen) }
                ptr = selfptr + (selflen - needlelen);
                while (ptr >= selfptr) {
                    bytes32 testHash;
                    assembly { testHash := keccak256(ptr, needlelen) }
                    if (hash == testHash)
                        return ptr + needlelen;
                    ptr -= 1;
                }
            }
        }
        return selfptr;
    }

    /*
     * @dev Modifies `self` to contain everything from the first occurrence of
     *      `needle` to the end of the slice. `self` is set to the empty slice
     *      if `needle` is not found.
     * @param self The slice to search and modify.
     * @param needle The text to search for.
     * @return `self`.
     */
    function find(slice memory self, slice memory needle) internal pure returns (slice memory) {
        uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr);
        self._len -= ptr - self._ptr;
        self._ptr = ptr;
        return self;
    }

    /*
     * @dev Modifies `self` to contain the part of the string from the start of
     *      `self` to the end of the first occurrence of `needle`. If `needle`
     *      is not found, `self` is set to the empty slice.
     * @param self The slice to search and modify.
     * @param needle The text to search for.
     * @return `self`.
     */
    function rfind(slice memory self, slice memory needle) internal pure returns (slice memory) {
        uint ptr = rfindPtr(self._len, self._ptr, needle._len, needle._ptr);
        self._len = ptr - self._ptr;
        return self;
    }

    /*
     * @dev Splits the slice, setting `self` to everything after the first
     *      occurrence of `needle`, and `token` to everything before it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and `token` is set to the entirety of `self`.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @param token An output parameter to which the first token is written.
     * @return `token`.
     */
    function split(slice memory self, slice memory needle, slice memory token) internal pure returns (slice memory) {
        uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr);
        token._ptr = self._ptr;
        token._len = ptr - self._ptr;
        if (ptr == self._ptr + self._len) {
            // Not found
            self._len = 0;
        } else {
            self._len -= token._len + needle._len;
            self._ptr = ptr + needle._len;
        }
        return token;
    }

    /*
     * @dev Splits the slice, setting `self` to everything after the first
     *      occurrence of `needle`, and returning everything before it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and the entirety of `self` is returned.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @return The part of `self` up to the first occurrence of `delim`.
     */
    function split(slice memory self, slice memory needle) internal pure returns (slice memory token) {
        split(self, needle, token);
    }

    /*
     * @dev Splits the slice, setting `self` to everything before the last
     *      occurrence of `needle`, and `token` to everything after it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and `token` is set to the entirety of `self`.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @param token An output parameter to which the first token is written.
     * @return `token`.
     */
    function rsplit(slice memory self, slice memory needle, slice memory token) internal pure returns (slice memory) {
        uint ptr = rfindPtr(self._len, self._ptr, needle._len, needle._ptr);
        token._ptr = ptr;
        token._len = self._len - (ptr - self._ptr);
        if (ptr == self._ptr) {
            // Not found
            self._len = 0;
        } else {
            self._len -= token._len + needle._len;
        }
        return token;
    }

    /*
     * @dev Splits the slice, setting `self` to everything before the last
     *      occurrence of `needle`, and returning everything after it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and the entirety of `self` is returned.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @return The part of `self` after the last occurrence of `delim`.
     */
    function rsplit(slice memory self, slice memory needle) internal pure returns (slice memory token) {
        rsplit(self, needle, token);
    }

    /*
     * @dev Counts the number of nonoverlapping occurrences of `needle` in `self`.
     * @param self The slice to search.
     * @param needle The text to search for in `self`.
     * @return The number of occurrences of `needle` found in `self`.
     */
    function count(slice memory self, slice memory needle) internal pure returns (uint cnt) {
        uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr) + needle._len;
        while (ptr <= self._ptr + self._len) {
            cnt++;
            ptr = findPtr(self._len - (ptr - self._ptr), ptr, needle._len, needle._ptr) + needle._len;
        }
    }

    /*
     * @dev Returns True if `self` contains `needle`.
     * @param self The slice to search.
     * @param needle The text to search for in `self`.
     * @return True if `needle` is found in `self`, false otherwise.
     */
    function contains(slice memory self, slice memory needle) internal pure returns (bool) {
        return rfindPtr(self._len, self._ptr, needle._len, needle._ptr) != self._ptr;
    }

    /*
     * @dev Returns a newly allocated string containing the concatenation of
     *      `self` and `other`.
     * @param self The first slice to concatenate.
     * @param other The second slice to concatenate.
     * @return The concatenation of the two strings.
     */
    function concat(slice memory self, slice memory other) internal pure returns (string memory) {
        string memory ret = new string(self._len + other._len);
        uint retptr;
        assembly { retptr := add(ret, 32) }
        memcpy(retptr, self._ptr, self._len);
        memcpy(retptr + self._len, other._ptr, other._len);
        return ret;
    }

    /*
     * @dev Joins an array of slices, using `self` as a delimiter, returning a
     *      newly allocated string.
     * @param self The delimiter to use.
     * @param parts A list of slices to join.
     * @return A newly allocated string containing all the slices in `parts`,
     *         joined with `self`.
     */
    function join(slice memory self, slice[] memory parts) internal pure returns (string memory) {
        if (parts.length == 0)
            return "";

        uint length = self._len * (parts.length - 1);
        for(uint i = 0; i < parts.length; i++)
            length += parts[i]._len;

        string memory ret = new string(length);
        uint retptr;
        assembly { retptr := add(ret, 32) }

        for(uint i = 0; i < parts.length; i++) {
            memcpy(retptr, parts[i]._ptr, parts[i]._len);
            retptr += parts[i]._len;
            if (i < parts.length - 1) {
                memcpy(retptr, self._ptr, self._len);
                retptr += self._len;
            }
        }

        return ret;
    }
}

contract DSSafeAddSub {
    function safeToAdd(uint a, uint b) internal pure returns (bool) {
        return (a + b >= a);
    }
    function safeAdd(uint a, uint b) internal pure returns (uint) {
        if (!safeToAdd(a, b)) revert();
        return a + b;
    }

    function safeToSubtract(uint a, uint b) internal pure returns (bool) {
        return (b <= a);
    }

    function safeSub(uint a, uint b) internal pure returns (uint) {
        if (!safeToSubtract(a, b)) revert();
        return a - b;
    } 
}

contract ERC20 {
    function totalSupply() external view returns (uint256);
    function balanceOf(address account) external view returns (uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
    function allowance(address owner, address spender) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
    function approveAndCall(address spender, uint tokens, bytes memory data) public returns (bool success);
}

contract ApproveAndCallFallBack {
    function receiveApproval(address _from, uint256 _amount, address _token, bytes memory _data) public;
}

contract ArpaGamesDiceRoller is usingProvable, DSSafeAddSub {
    
    using StringUtils for *;
        
    // Checks player profit, bet size and player number is within allowed range
    modifier betIsValid(uint _betSize, uint _playerNumber) {      
        if(((((_betSize * (100-(safeSub(_playerNumber,1)))) / (safeSub(_playerNumber,1))+_betSize))*houseEdge/houseEdgeDivisor)-_betSize > maxProfit || _betSize < minBet || _playerNumber < minNumber || _playerNumber > maxNumber) 
        revert('Bet conditions amounts do not fit game conditions');
		_;
    }

    modifier gameIsActive {
        require(gamePaused != true, 'Game paused, not available');
		_;
    }    

    // Checks if payouts are currently active
    modifier payoutsAreActive {
        require(payoutsPaused != true, 'Payouts paused,game not available');
		_;
    }    

    modifier onlyOwner {
         require(msg.sender == owner);
         _;
    }
    
    //Variables to control the Game
    uint constant public maxProfitDivisor = 1000000;
    uint constant public houseEdgeDivisor = 1000;    
    uint constant public maxNumber = 95; 
    uint constant public minNumber = 2;
	bool public gamePaused;
    address payable public owner;
    bool public payoutsPaused; 
    uint public contractBalance;
    uint public houseEdge;     
    uint public maxProfit;   
    uint public maxProfitAsPercentOfHouse;                    
    uint public minBet; 
    uint public maxPendingPayouts;
    uint public affiliateTokenSendToWinner = 100;
    address private affiliateTokenAddress = address(0x58c2A89Ff9522cF7f44C3B7b3C3DE2165eea9b5E);

    //Log explained texts - For debug purposes
    string private BET_SENT_FOR_NUMBER = "BetSentWaitingRND";
    string private PROVABLE_CALLBACK_CALLED = "ProvableCBcalled";
    string private BET_REFUND_NO_PROOF = "NoProvableProof,rfnd bet";
    string private BET_REFUND_FAILED = "BetRefundfailed";
    string private BET_REFUND_FROM_OWNER = "Bet rfnd < owner";
    string private BET_WON = "Win snd pfit+tkn 2 winner";
    string private BET_WON_SEND_FAILED = "WinSndPfitFailed";
    string private BET_LOST = "Lost no more Tx";

    //Player Variables
    mapping (bytes32 => address payable) playerAddress;
    mapping (bytes32 => address payable) playerTempAddress;
    mapping (bytes32 => bytes32) playerBetId;
    mapping (bytes32 => uint) playerBetValue;
    mapping (bytes32 => uint) playerTempBetValue;               
    mapping (bytes32 => uint) playerDieResult;
    mapping (bytes32 => uint) playerNumber;
    mapping (address => uint) playerPendingWithdrawals;
    mapping (bytes32 => uint) playerProfit;
    mapping (bytes32 => uint) playerTempReward;           

    //Variables for probable Random Number from third party provider - Provable.xyz
    uint256 constant MAX_INT_FROM_BYTE = 256;
    uint256 constant NUM_RANDOM_BYTES_REQUESTED = 7;
    uint256 constant QUERY_EXECUTION_DELAY = 0;
    uint256 constant GAS_FOR_PROVABLE_CALLBACK = 400000;
    mapping (bytes32 => bool) public queries;
    
    //Web3 Game Events
    event LogBet(bytes32 indexed BetID, address indexed PlayerAddress, uint indexed RewardValue, uint ProfitValue, uint BetValue, uint PlayerNumber, bytes32 provable_qryId, string result_details);      
        // Output to web3 UI on bet result - Status: 0=lose, 1=win, 2=win + failed send, 3=refund, 4=refund + failed send
	event LogResult(uint indexed ResultSerialNumber, bytes32 indexed BetID, address indexed PlayerAddress, uint PlayerNumber, uint DiceResult, uint Value, int Status, bytes Proof, string result_details);   
    event LogRefund(bytes32 indexed BetID, address indexed PlayerAddress, uint indexed RefundValue, string result_details);
    event LogOwnerTransfer(address indexed SentToAddress, uint indexed AmountTransferred);
    
    //Debug events
    event LogDebug(string texto);
    event LogNewProvableQuery(string description);
    event generatedRandomNumber(uint256 randomNumber);    

    // --- Manage Affiliate Tokens
    ERC20 public ERC20Interface;  
  
    //Events to manage Fidelity tokens transfer  
    event TransferSuccessful(address indexed from_, address indexed to_, uint256 amount_);
    event TransferFailed(address indexed from_, address indexed to_, uint256 amount_);  
  
    // Owner can set Fidelity Token
    function setFidelityToken(address tokenaddress) public onlyOwner returns (bool) {  
        affiliateTokenAddress = tokenaddress;
        ERC20Interface = ERC20(affiliateTokenAddress);
        return true;  
    }
    
    function transferTokens(address to_, uint256 amount_) internal payoutsAreActive gameIsActive{  
        require(affiliateTokenAddress != address(0x0));
        require(amount_ > 0);  
        if (!ERC20Interface.transfer(to_, amount_*100000000)){
            emit LogDebug("There are not enough fidelity tokens to transfer");
        }
    }  
    // --- end Manage Affiliate Tokens  
    
    // Allow contract to receive funds 
    function() external payable {}  
  
    constructor() payable public {

        owner = msg.sender;
        provable_setProof(proofType_Ledger);
        
        // init 990 = 99% (1% houseEdge)
        ownerSetHouseEdge(990);
        // init 10,000 = 1% 
        ownerSetMaxProfitAsPercentOfHouse(500000);
        // init min bet (0.2 ether default)
        ownerSetMinBet(200000000000000000);
        ERC20Interface = ERC20(affiliateTokenAddress);        
    }

    // The main public function to roll the dices and get into the action!
    function playerRollDice(uint rollUnder) public payable gameIsActive betIsValid(msg.value, rollUnder)
	{
        bytes32 provable_qryId = provable_newRandomDSQuery(
            QUERY_EXECUTION_DELAY,
            NUM_RANDOM_BYTES_REQUESTED,
            GAS_FOR_PROVABLE_CALLBACK
        );
        queries[provable_qryId] = true;

		playerBetId[provable_qryId] = provable_qryId;
		playerNumber[provable_qryId] = rollUnder;
        playerBetValue[provable_qryId] = msg.value;
        playerAddress[provable_qryId] = msg.sender;
        playerProfit[provable_qryId] = ((((msg.value * (100-(safeSub(rollUnder,1)))) / (safeSub(rollUnder,1))+msg.value))*houseEdge/houseEdgeDivisor)-msg.value;        
        
        maxPendingPayouts = safeAdd(maxPendingPayouts, playerProfit[provable_qryId]);
        
        if(maxPendingPayouts >= contractBalance) revert();
        emit LogBet(playerBetId[provable_qryId], playerAddress[provable_qryId], safeAdd(playerBetValue[provable_qryId], playerProfit[provable_qryId]), playerProfit[provable_qryId], playerBetValue[provable_qryId], playerNumber[provable_qryId], provable_qryId, BET_SENT_FOR_NUMBER);          
    }

    //Provable Proof Callback
	function __callback(bytes32 _queryId, string memory _result, bytes memory _proof) public{
        require(msg.sender == provable_cbAddress(), 'Caller is not the Provable address!');
        require(queries[_queryId], 'QueryID is not an expected one!');
        if (
            provable_randomDS_proofVerify__returnCode(
                _queryId,
                _result,
                _proof
            ) != 0
        ) {
            /**
            * @notice  The proof verification has failed! 
            */
            playerDieResult[_queryId] = 0;
            playerTempAddress[_queryId] = playerAddress[_queryId]; delete playerAddress[_queryId];
            playerTempReward[_queryId] = playerProfit[_queryId]; playerProfit[_queryId] = 0; 
            // Reduce maxPendingPayouts liability
            maxPendingPayouts = safeSub(maxPendingPayouts, playerTempReward[_queryId]);         
            playerTempBetValue[_queryId] = playerBetValue[_queryId]; playerBetValue[_queryId] = 0; 
            /*
            * refund
            * if result is 0 result is empty or no proof refund original bet value
            * if refund fails save refund value to playerPendingWithdrawals
            */
            emit LogResult(0, playerBetId[_queryId], playerTempAddress[_queryId], playerNumber[_queryId], playerDieResult[_queryId], playerTempBetValue[_queryId], 3, _proof, BET_REFUND_NO_PROOF);            
            /*
            * send refund - external call to an untrusted contract
            * if send fails map refund value to playerPendingWithdrawals[address]
            * for withdrawal later via playerWithdrawPendingTransactions
            */
            (bool success,) = playerTempAddress[_queryId].call.value(playerTempBetValue[_queryId])("");
            if(!success){
                emit LogResult(0, playerBetId[_queryId], playerTempAddress[_queryId], playerNumber[_queryId], playerDieResult[_queryId], playerTempBetValue[_queryId], 4, _proof, BET_REFUND_FAILED);              
                /* if send failed let player withdraw via playerWithdrawPendingTransactions */
                playerPendingWithdrawals[playerTempAddress[_queryId]] = safeAdd(playerPendingWithdrawals[playerTempAddress[_queryId]], playerTempBetValue[_queryId]);                        
                setMaxProfit();
                //Fidelity tokens not applicable for refund
            }
            return;
        } else {
            uint256 ceiling = (MAX_INT_FROM_BYTE ** NUM_RANDOM_BYTES_REQUESTED) - 1;
            uint256 randomNumber = uint256(keccak256(abi.encodePacked(_result))) % ceiling;
            uint randomNumberInRange = (randomNumber % 100) + 1;            
            reconciliateCallBackBet(_queryId, randomNumberInRange, _proof);
        }
	}
    
	function reconciliateCallBackBet(bytes32 myid, uint resultNumber, bytes memory proof) internal payoutsAreActive 
	{  
	    require(msg.sender == provable_cbAddress(), 'Caller is not the Provable address!');	    
        require(playerAddress[myid]!=address(0x0));
        
        playerDieResult[myid] = resultNumber;
        playerTempAddress[myid] = playerAddress[myid]; 
        delete playerAddress[myid];
        playerTempReward[myid] = playerProfit[myid]; 
        playerProfit[myid] = 0; 
        // Reduce maxPendingPayouts liability
        maxPendingPayouts = safeSub(maxPendingPayouts, playerTempReward[myid]);         
        playerTempBetValue[myid] = playerBetValue[myid]; playerBetValue[myid] = 0; 
        
        /*
        * pay winner
        * update contract balance to calculate new max bet
        * send reward
        * if send of reward fails save value to playerPendingWithdrawals        
        */        
        if(playerDieResult[myid] < playerNumber[myid]){ 

            /* safely reduce contract balance by player profit */
            contractBalance = safeSub(contractBalance, playerTempReward[myid]); 

            /* safely calculate payout via profit plus original wager */
            playerTempReward[myid] = safeAdd(playerTempReward[myid], playerTempBetValue[myid]); 

            emit LogResult(0, playerBetId[myid], playerTempAddress[myid], playerNumber[myid], playerDieResult[myid], playerTempReward[myid], 1, proof, BET_WON);                            

            /* update maximum profit */
            setMaxProfit();
            
            /*
            * send win - external call to an untrusted contract
            * if send fails map reward value to playerPendingWithdrawals[address]
            * for withdrawal later via playerWithdrawPendingTransactions
            */
            (bool success,) = playerTempAddress[myid].call.value(playerTempReward[myid])("");
            if(!success){
                emit LogResult(0, playerBetId[myid], playerTempAddress[myid], playerNumber[myid], playerDieResult[myid], playerTempReward[myid], 2, proof, BET_WON_SEND_FAILED);                   
                /* if send failed let player withdraw via playerWithdrawPendingTransactions */
                playerPendingWithdrawals[playerTempAddress[myid]] = safeAdd(playerPendingWithdrawals[playerTempAddress[myid]], playerTempReward[myid]);                               
            }
            transferTokens(playerTempAddress[myid], 100);
            return;

        }
        /*
        * no win
        * send 1 wei to a losing bet
        * update contract balance to calculate new max bet
        */
        if(playerDieResult[myid] >= playerNumber[myid]){
            emit LogResult(0, playerBetId[myid], playerTempAddress[myid], playerNumber[myid], playerDieResult[myid], playerTempBetValue[myid], 0, proof, BET_LOST);                                
            /*  
            *  safe adjust contractBalance
            *  setMaxProfit
            *  send 1 wei to losing bet
            */
            contractBalance = safeAdd(contractBalance, (playerTempBetValue[myid]-1));
            /* update maximum profit */
            setMaxProfit(); 
            /*
            * send 1 wei - external call to an untrusted contract                  
            */
            (bool success,) = playerTempAddress[myid].call.value(1)("");
            if(!success){
                /* if send failed let player withdraw via playerWithdrawPendingTransactions */                
               playerPendingWithdrawals[playerTempAddress[myid]] = safeAdd(playerPendingWithdrawals[playerTempAddress[myid]], 1);                                
            }                                   
            return;
        }
    }  
    
    
    // Allow a player to withdraw his pendants payouts
    function playerWithdrawPendingTransactions() public payoutsAreActive returns (bool)
     {
        uint withdrawAmount = playerPendingWithdrawals[msg.sender];
        playerPendingWithdrawals[msg.sender] = 0;
        /* external call to untrusted contract */        
        (bool success,) = msg.sender.call.value(withdrawAmount)("");
        if(!success){
            /* if send failed revert playerPendingWithdrawals[msg.sender] = 0; */
            /* player can try to withdraw again later */
            playerPendingWithdrawals[msg.sender] = withdrawAmount;
            return false;
        }

    }

    // check for pending withdrawals
    function playerGetPendingTxByAddress(address addressToCheck) public view returns (uint) {
        return playerPendingWithdrawals[addressToCheck];
    }
    
    // internal function to set max profit calculated by balance available and pending payouts
    function setMaxProfit() internal {
        maxProfit = (contractBalance*maxProfitAsPercentOfHouse)/maxProfitDivisor;  
    }      


    // set gas price for provable callback
    function ownerSetCallbackGasPrice(uint newCallbackGasPrice) public onlyOwner
	{
        provable_setCustomGasPrice(newCallbackGasPrice);
    }     


    // only owner adjust contract balance variable (only used for max profit calc)
    function ownerUpdateContractBalance(uint newContractBalanceInWei) public onlyOwner
    {        
       contractBalance = newContractBalanceInWei;
       setMaxProfit();
    }    

    // only owner address can set houseEdge
    function ownerSetHouseEdge(uint newHouseEdge) public onlyOwner
    {
        houseEdge = newHouseEdge;
    }

    // only owner address can set maxProfitAsPercentOfHouse
    function ownerSetMaxProfitAsPercentOfHouse(uint newMaxProfitAsPercent) public onlyOwner
    {
        maxProfitAsPercentOfHouse = newMaxProfitAsPercent;
        setMaxProfit();
    }

    // only owner address can set minBet
    function ownerSetMinBet(uint newMinimumBet) public onlyOwner
    {
        minBet = newMinimumBet;
    }       

    // only owner address can transfer ether
    function ownerTransferEther(address payable sendTo, uint amount) public onlyOwner
    {        
        /* safely update contract balance when sending out funds*/
        contractBalance = safeSub(contractBalance, amount);		
        /* update max profit */
        setMaxProfit();
        sendTo.transfer(amount);
        emit LogOwnerTransfer(sendTo, amount); 
    }

    // only owner address can set emergency pause #1
    function ownerPauseGame(bool newStatus) public onlyOwner
    {
		gamePaused = newStatus;
    }

    // only owner address can set emergency pause #2
    function ownerPausePayouts(bool newPayoutStatus) public onlyOwner
    {
		payoutsPaused = newPayoutStatus;
    } 


    // only owner address can set owner address
    function ownerChangeOwner(address payable newOwner) public onlyOwner
	{
        owner = newOwner;
    }

    // only owner address can suicide - emergency
    function ownerkill() public onlyOwner
	{
		selfdestruct(msg.sender);
	}    
}

Contract Security Audit

Contract ABI

[{"inputs":[],"payable":true,"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"BetID","type":"bytes32"},{"indexed":true,"internalType":"address","name":"PlayerAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"RewardValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ProfitValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"BetValue","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"PlayerNumber","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"provable_qryId","type":"bytes32"},{"indexed":false,"internalType":"string","name":"result_details","type":"string"}],"name":"LogBet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"texto","type":"string"}],"name":"LogDebug","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"description","type":"string"}],"name":"LogNewProvableQuery","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"SentToAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"AmountTransferred","type":"uint256"}],"name":"LogOwnerTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"BetID","type":"bytes32"},{"indexed":true,"internalType":"address","name":"PlayerAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"RefundValue","type":"uint256"},{"indexed":false,"internalType":"string","name":"result_details","type":"string"}],"name":"LogRefund","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"ResultSerialNumber","type":"uint256"},{"indexed":true,"internalType":"bytes32","name":"BetID","type":"bytes32"},{"indexed":true,"internalType":"address","name":"PlayerAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"PlayerNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"DiceResult","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"Value","type":"uint256"},{"indexed":false,"internalType":"int256","name":"Status","type":"int256"},{"indexed":false,"internalType":"bytes","name":"Proof","type":"bytes"},{"indexed":false,"internalType":"string","name":"result_details","type":"string"}],"name":"LogResult","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from_","type":"address"},{"indexed":true,"internalType":"address","name":"to_","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"TransferFailed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from_","type":"address"},{"indexed":true,"internalType":"address","name":"to_","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"TransferSuccessful","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"randomNumber","type":"uint256"}],"name":"generatedRandomNumber","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":true,"inputs":[],"name":"ERC20Interface","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"_myid","type":"bytes32"},{"internalType":"string","name":"_result","type":"string"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"_queryId","type":"bytes32"},{"internalType":"string","name":"_result","type":"string"},{"internalType":"bytes","name":"_proof","type":"bytes"}],"name":"__callback","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"affiliateTokenSendToWinner","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"contractBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"gamePaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"houseEdge","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"houseEdgeDivisor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxPendingPayouts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxProfit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxProfitAsPercentOfHouse","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxProfitDivisor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minBet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"minNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address payable","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"newOwner","type":"address"}],"name":"ownerChangeOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bool","name":"newStatus","type":"bool"}],"name":"ownerPauseGame","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bool","name":"newPayoutStatus","type":"bool"}],"name":"ownerPausePayouts","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"newCallbackGasPrice","type":"uint256"}],"name":"ownerSetCallbackGasPrice","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"newHouseEdge","type":"uint256"}],"name":"ownerSetHouseEdge","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"newMaxProfitAsPercent","type":"uint256"}],"name":"ownerSetMaxProfitAsPercentOfHouse","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"newMinimumBet","type":"uint256"}],"name":"ownerSetMinBet","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"sendTo","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ownerTransferEther","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"newContractBalanceInWei","type":"uint256"}],"name":"ownerUpdateContractBalance","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"ownerkill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"payoutsPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"addressToCheck","type":"address"}],"name":"playerGetPendingTxByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"rollUnder","type":"uint256"}],"name":"playerRollDice","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"playerWithdrawPendingTransactions","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"queries","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"tokenaddress","type":"address"}],"name":"setFidelityToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]

6064600c55600d80546001600160a01b0319167358c2a89ff9522cf7f44c3b7b3c3de2165eea9b5e17905560c0604052601160808190527010995d14d95b9d15d85a5d1a5b99d49391607a1b60a09081526200005f91600e919062000967565b506040805180820190915260108082526f141c9bdd98589b1950d098d85b1b195960821b60209092019182526200009991600f9162000967565b506040805180820190915260188082527f4e6f50726f7661626c6550726f6f662c72666e642062657400000000000000006020909201918252620000e09160109162000967565b5060408051808201909152600f8082526e10995d1499599d5b9919985a5b1959608a1b6020909201918252620001199160119162000967565b506040805180820190915260108082526f2132ba1039333732101e1037bbb732b960811b6020909201918252620001539160129162000967565b506040805180820190915260198082527f57696e20736e6420706669742b746b6e20322077696e6e65720000000000000060209092019182526200019a9160139162000967565b506040805180820190915260108082526f15da5b94db9914199a5d11985a5b195960821b6020909201918252620001d49160149162000967565b5060408051808201909152600f8082526e098dee6e840dcde40dadee4ca40a8f608b1b60209092019182526200020d9160159162000967565b5060058054610100600160a81b031916336101000217905562000234600360fc1b620002a5565b6200024a6103de6001600160e01b03620004b316565b620002616207a1206001600160e01b03620004d516565b6200027d6702c68af0bb1400006001600160e01b036200050a16565b600d54602180546001600160a01b0319166001600160a01b0390921691909117905562000a09565b6001546001600160a01b03161580620002db5750600154620002d9906001600160a01b03166001600160e01b036200052c16565b155b15620002f857620002f660006001600160e01b036200053016565b505b600160009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156200034957600080fd5b505af11580156200035e573d6000803e3d6000fd5b505050506040513d60208110156200037557600080fd5b50516000546001600160a01b039081169116146200042c57600160009054906101000a90046001600160a01b03166001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015620003de57600080fd5b505af1158015620003f3573d6000803e3d6000fd5b505050506040513d60208110156200040a57600080fd5b5051600080546001600160a01b0319166001600160a01b039092169190911790555b600080546040805163688dcfd760e01b81527fff000000000000000000000000000000000000000000000000000000000000008516600482015290516001600160a01b039092169263688dcfd79260248084019382900301818387803b1580156200049657600080fd5b505af1158015620004ab573d6000803e3d6000fd5b505050505b50565b60055461010090046001600160a01b03163314620004d057600080fd5b600755565b60055461010090046001600160a01b03163314620004f257600080fd5b6009819055620004b06001600160e01b036200054b16565b60055461010090046001600160a01b031633146200052757600080fd5b600a55565b3b90565b6000620005456001600160e01b036200056416565b92915050565b620f424060095460065402816200055e57fe5b04600855565b6000806200058f731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed6001600160e01b036200052c16565b1115620005fb57600180546001600160a01b031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed17905560408051808201909152600b81526a195d1a17db585a5b9b995d60aa1b6020820152620005f2906001600160e01b036200094e16565b5060016200094b565b60006200062573c03a2615d5efaf5f49f60b7bb6583eaec212fdf16001600160e01b036200052c16565b11156200068957600180546001600160a01b03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf117905560408051808201909152600c81526b6574685f726f707374656e3360a01b6020820152620005f2906001600160e01b036200094e16565b6000620006b373b7a07bcf2ba2f2703b24c0691b5278999c59ac7e6001600160e01b036200052c16565b11156200071457600180546001600160a01b03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e17905560408051808201909152600981526832ba342fb5b7bb30b760b91b6020820152620005f2906001600160e01b036200094e16565b60006200073e73146500cfd35b22e4a392fe0adc06de1a1368ed486001600160e01b036200052c16565b1115620007a157600180546001600160a01b03191673146500cfd35b22e4a392fe0adc06de1a1368ed4817905560408051808201909152600b81526a6574685f72696e6b65627960a81b6020820152620005f2906001600160e01b036200094e16565b6000620007cb73a2998efd205fb9d4b4963afb70778d6354ad3a416001600160e01b036200052c16565b11156200082d57600180546001600160a01b03191673a2998efd205fb9d4b4963afb70778d6354ad3a4117905560408051808201909152600a8152696574685f676f65726c6960b01b6020820152620005f2906001600160e01b036200094e16565b600062000857736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4756001600160e01b036200052c16565b11156200088b5750600180546001600160a01b031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb4751781556200094b565b6000620008b57320e12a1f859b3feae5fb2a0a32c18f5a65555bbf6001600160e01b036200052c16565b1115620008e95750600180546001600160a01b0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf1781556200094b565b6000620009137351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa6001600160e01b036200052c16565b1115620009475750600180546001600160a01b0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa1781556200094b565b5060005b90565b80516200096390600290602084019062000967565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620009aa57805160ff1916838001178555620009da565b82800160010185558215620009da579182015b82811115620009da578251825591602001919060010190620009bd565b50620009e8929150620009ec565b5090565b6200094b91905b80821115620009e85760008155600101620009f3565b6145d08062000a196000396000f3fe6080604052600436106101e35760003560e01c806359af55e711610102578063a5f4af3311610095578063d667dcd711610064578063d667dcd71461076b578063dc6dd15214610780578063e5c774de1461079d578063ed62f501146107b2576101e3565b8063a5f4af3314610717578063b539cd551461072c578063c3de1ab914610741578063d263b7eb14610756576101e3565b80637ac37d58116100d15780637ac37d581461069f5780638b7afe2e146106d85780638da5cb5b146106ed5780639619367d14610702576101e3565b806359af55e71461060a5780635e968a491461061f5780636cdf4c90146106495780636eacd48a14610673576101e3565b80633a4f69991161017a57806346121c2f1161014957806346121c2f146105635780634b7fcee7146105965780634f44728d146105c257806355b93031146105f5576101e3565b80633a4f6999146104dc5780633c314a91146104f15780634025b5a81461052457806343c1598d1461054e576101e3565b8063268d50fe116101b6578063268d50fe146102a557806327dc297e146102cf578063301cf6e71461038857806338bbfa501461039d576101e3565b8063126596e7146101e55780631bbc4b831461020f57806321dfb6001461024057806323214fab1461027e575b005b3480156101f157600080fd5b506101e36004803603602081101561020857600080fd5b50356107c7565b34801561021b57600080fd5b506102246107ef565b6040516001600160a01b03909116815260200160405180910390f35b34801561024c57600080fd5b5061026a6004803603602081101561026357600080fd5b50356107fe565b604051901515815260200160405180910390f35b34801561028a57600080fd5b50610293610814565b60405190815260200160405180910390f35b3480156102b157600080fd5b506101e3600480360360208110156102c857600080fd5b503561081a565b3480156102db57600080fd5b506101e3600480360360408110156102f257600080fd5b8135919081019060408101602082013564010000000081111561031457600080fd5b82018360208201111561032657600080fd5b8035906020019184600183028401116401000000008311171561034857600080fd5b91908080601f016020809104026020016040519081016040528181529291906020840183838082843760009201919091525092955061083b945050505050565b34801561039457600080fd5b5061026a610876565b3480156103a957600080fd5b506101e3600480360360608110156103c057600080fd5b813591908101906040810160208201356401000000008111156103e257600080fd5b8201836020820111156103f457600080fd5b8035906020019184600183028401116401000000008311171561041657600080fd5b91908080601f0160208091040260200160405190810160405281815292919060208401838380828437600092019190915250929594936020810193503591505064010000000081111561046857600080fd5b82018360208201111561047a57600080fd5b8035906020019184600183028401116401000000008311171561049c57600080fd5b91908080601f0160208091040260200160405190810160405281815292919060208401838380828437600092019190915250929550610886945050505050565b3480156104e857600080fd5b50610293610ebf565b3480156104fd57600080fd5b506102936004803603602081101561051457600080fd5b50356001600160a01b0316610ec4565b34801561053057600080fd5b506101e36004803603602081101561054757600080fd5b5035610ee3565b34801561055a57600080fd5b50610293610f0c565b34801561056f57600080fd5b5061026a6004803603602081101561058657600080fd5b50356001600160a01b0316610f13565b3480156105a257600080fd5b506101e3600480360360208110156105b957600080fd5b50351515610f65565b3480156105ce57600080fd5b506101e3600480360360208110156105e557600080fd5b50356001600160a01b0316610f9f565b34801561060157600080fd5b50610293610fe3565b34801561061657600080fd5b50610293610fe8565b34801561062b57600080fd5b506101e36004803603602081101561064257600080fd5b5035610fee565b34801561065557600080fd5b506101e36004803603602081101561066c57600080fd5b5035611017565b34801561067f57600080fd5b506101e36004803603602081101561069657600080fd5b50351515611038565b3480156106ab57600080fd5b506101e3600480360360408110156106c257600080fd5b506001600160a01b038135169060200135611067565b3480156106e457600080fd5b5061029361110d565b3480156106f957600080fd5b50610224611113565b34801561070e57600080fd5b50610293611127565b34801561072357600080fd5b5061026a61112d565b34801561073857600080fd5b50610293611217565b34801561074d57600080fd5b5061026a61121d565b34801561076257600080fd5b506101e3611226565b34801561077757600080fd5b50610293611245565b6101e36004803603602081101561079657600080fd5b503561124b565b3480156107a957600080fd5b506102936115a3565b3480156107be57600080fd5b506102936115a9565b60055461010090046001600160a01b031633146107e357600080fd5b6107ec816115af565b50565b6021546001600160a01b031681565b602080528060005260406000205460ff16905081565b60095481565b60055461010090046001600160a01b0316331461083657600080fd5b600755565b61087282826000604051818152601f19601f830116810160200160405290801561086c576020820181803883390190505b50610886565b5050565b600554600160a81b900460ff1681565b61088e611768565b6001600160a01b0316336001600160a01b0316146108dd5760405162461bcd60e51b81526004018080602001828103825260238152602001806145296023913960400191505060405180910390fd5b600083815260208052604090205460ff1661093e5760405162461bcd60e51b815260206004820152601f60248201527f51756572794944206973206e6f7420616e206578706563746564206f6e652100604482015260640160405180910390fd5b610949838383611931565b60ff1615610e22576000838152601b6020526040812055600083815260166020526040902054600084815260176020526001600160a01b03909116906040902080546001600160a01b0319166001600160a01b0392909216919091179055600083815260166020526040902080546001600160a01b03191690556000838152601e60205260409020546000848152601f60205260409020556000838152601e6020526040812055600b546000848152601f602052610a0c919060409020546119e0565b600b556000838152601960205260409020546000848152601a6020526040902055600083815260196020526040812055600083815260176020526040902054600084815260186020526001600160a01b039091169060409020546000858152601c60205260008051602061454c83398151915260408220546000888152601b60205260409020546000898152601a60205260409020546003886010604051808781526020018681526020018581526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015610b00578082015183820152602001610ae8565b50505050905090810190601f168015610b2d5780820380516001836020036101000a031916815260200191505b50838103825284546002600019610100600184161502019091160480825260209091019085908015610ba05780601f10610b7557610100808354040283529160200191610ba0565b820191906000526020600020905b815481529060010190602001808311610b8357829003601f168201915b50509850505050505050505060405180910390a46000838152601760205260408120546000858152601a6020526001600160a01b0390911690604090205460405160006040518083038185875af1925050503d8060008114610c1e576040513d603f01601f191681016040523d815291503d6000602084013e610c23565b606091505b5050905080610e1c57600084815260176020526040902054600085815260186020526001600160a01b039091169060409020546000868152601c60205260008051602061454c83398151915260408220546000898152601b602052604090205460008a8152601a60205260409020546004896011604051808781526020018681526020018581526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015610cf0578082015183820152602001610cd8565b50505050905090810190601f168015610d1d5780820380516001836020036101000a031916815260200191505b50838103825284546002600019610100600184161502019091160480825260209091019085908015610d905780601f10610d6557610100808354040283529160200191610d90565b820191906000526020600020905b815481529060010190602001808311610d7357829003601f168201915b50509850505050505050505060405180910390a460008481526017602052610de890601d9060408120546001600160a01b031681526020810191909152604001600020546000868152601a6020526040902054611a00565b60008581526017602052601d9060408120546001600160a01b03168152602081019190915260400160002055610e1c611a1a565b50610eba565b66ffffffffffffff600081846040516020018082805190602001908083835b60208310610e605780518252601f199092019160209182019101610e41565b6001836020036101000a03801982511681845116179092525050509190910192506040915050516020818303038152906040528051906020012081610ea157fe5b06905060016064820601610eb6868286611a32565b5050505b505050565b605f81565b6001600160a01b0381166000908152601d602052604081205492915050565b60055461010090046001600160a01b03163314610eff57600080fd5b60068190556107ec611a1a565b620f424081565b60055460009061010090046001600160a01b03163314610f3257600080fd5b50600d80546001600160a01b03199081166001600160a01b03938416179182905560218054929093169116179055600190565b60055461010090046001600160a01b03163314610f8157600080fd5b60058054911515600160a81b0260ff60a81b19909216919091179055565b60055461010090046001600160a01b03163314610fbb57600080fd5b600580546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b600281565b600c5481565b60055461010090046001600160a01b0316331461100a57600080fd5b60098190556107ec611a1a565b60055461010090046001600160a01b0316331461103357600080fd5b600a55565b60055461010090046001600160a01b0316331461105457600080fd5b6005805460ff1916911515919091179055565b60055461010090046001600160a01b0316331461108357600080fd5b61108f600654826119e0565b60065561109a611a1a565b6001600160a01b03821681156108fc0282604051600060405180830381858888f193505050501580156110d1573d6000803e3d6000fd5b5080826001600160a01b03167f42c501a185f41a8eb77b0a3e7b72a6435ea7aa752f8a1a0a13ca4628495eca9160405160405180910390a35050565b60065481565b60055461010090046001600160a01b031681565b600a5481565b600554600090600160a81b900460ff1615156001141561117e5760405162461bcd60e51b81526004018080602001828103825260218152602001806144976021913960400191505060405180910390fd5b336000908152601d6020526040812054336000908152601d60205290915060408120556000338260405160006040518083038185875af1925050503d80600081146111e5576040513d603f01601f191681016040523d815291503d6000602084013e6111ea565b606091505b505090508061121157336000908152601d6020528290604090205550600091506112149050565b50505b90565b60085481565b60055460ff1681565b60055461010090046001600160a01b0316331461124257600080fd5b33ff5b60075481565b60055460ff161515600114156112a75760405162461bcd60e51b815260206004820152601a60248201527f47616d65207061757365642c206e6f7420617661696c61626c65000000000000604482015260640160405180910390fd5b3481600854826103e8600754856112bf8660016119e0565b6112ca8760016119e0565b6064038802816112d657fe5b040102816112e057fe5b040311806112ef5750600a5482105b806112fa5750600281105b806113055750605f81115b156113415760405162461bcd60e51b81526004018080602001828103825260318152602001806144b86031913960400191505060405180910390fd5b60006113536000600762061a806122fb565b60008181526020805290915060019060409020805460ff191691151591909117905560008181526018602052819060409020556000818152601c6020528490604090205560008181526019602052349060409020556000818152601660205233906040902060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550346103e8600754346113ef8860016119e0565b6113fa8960016119e0565b60640334028161140657fe5b0401028161141057fe5b0403601e600083815260200190815260200160002055600b546000828152601e60205261144291906040902054611a00565b600b8190556006541161145457600080fd5b6000818152601960205261147b9060409020546000838152601e6020526040902054611a00565b600082815260166020526040902054600083815260186020526001600160a01b039091169060409020546000848152601e6020527f7a40232d87cacc2f5c484f301246eb00d8b3af3c7c9b131da57d9569b80ed4009060409020546000868152601960205260409020546000878152601c602052604090205487600e60405185815260208101859052604081018490526060810183905260a0608082018181528354600260001961010060018416150201909116049183018290529060c08301908490801561158b5780601f106115605761010080835404028352916020019161158b565b820191906000526020600020905b81548152906001019060200180831161156e57829003601f168201915b5050965050505050505060405180910390a450505050565b6103e881565b600b5481565b6001546001600160a01b031615806115d957506001546115d7906001600160a01b031661272a565b155b156115ea576115e8600061272e565b505b6001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561162757600080fd5b505af115801561163b573d6000803e3d6000fd5b505050506040513d602081101561165157600080fd5b8101908080516000546001600160a01b039081169116149250611702915050576001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156116ae57600080fd5b505af11580156116c2573d6000803e3d6000fd5b505050506040513d60208110156116d857600080fd5b810190808051600080546001600160a01b0319166001600160a01b03929092169190911790555050505b6000546001600160a01b031663ca6ad1e4826040516001600160e01b031960e084901b1681526004810191909152602401600060405180830381600087803b15801561174d57600080fd5b505af1158015611761573d6000803e3d6000fd5b5050505050565b6001546000906001600160a01b031615806117955750600154611793906001600160a01b031661272a565b155b156117a6576117a4600061272e565b505b6001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156117e357600080fd5b505af11580156117f7573d6000803e3d6000fd5b505050506040513d602081101561180d57600080fd5b8101908080516000546001600160a01b0390811691161492506118be915050576001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561186a57600080fd5b505af115801561187e573d6000803e3d6000fd5b505050506040513d602081101561189457600080fd5b810190808051600080546001600160a01b0319166001600160a01b03929092169190911790555050505b6000546001600160a01b031663c281d19e6040518163ffffffff1660e01b815260040160206040518083038186803b1580156118f957600080fd5b505afa15801561190d573d6000803e3d6000fd5b505050506040513d602081101561192357600080fd5b810190808051935050505090565b60008160008151811061194057fe5b60200101516001600160f81b031916601360fa1b14158061198057508160018151811061196957fe5b60200101516001600160f81b031916600560fc1b14155b806119a0575060018260028151811061199557fe5b602001015160f81c14155b156119ad575060016119d9565b60006119c28386866119bd612738565b6127da565b9050806119d35760029150506119d9565b60009150505b9392505050565b60006119ec8383612dce565b6119f557600080fd5b508082035b92915050565b6000611a0c8383612dd3565b611a1557600080fd5b500190565b620f42406009546006540281611a2c57fe5b04600855565b600554600160a81b900460ff16151560011415611a805760405162461bcd60e51b81526004018080602001828103825260218152602001806144976021913960400191505060405180910390fd5b611a88611768565b6001600160a01b0316336001600160a01b031614611ad75760405162461bcd60e51b81526004018080602001828103825260238152602001806145296023913960400191505060405180910390fd5b6000838152601660205260408120546001600160a01b03161415611afa57600080fd5b6000838152601b60205282906040902055600083815260166020526040902054600084815260176020526001600160a01b03909116906040902080546001600160a01b0319166001600160a01b0392909216919091179055600083815260166020526040902080546001600160a01b03191690556000838152601e60205260409020546000848152601f60205260409020556000838152601e6020526040812055600b546000848152601f602052611bb7919060409020546119e0565b600b556000838152601960205260409020546000848152601a60205260409020556000838152601960205260408120556000838152601c60205260409020546000848152601b60205260409020541015612064576006546000848152601f602052611c27919060409020546119e0565b6006556000838152601f602052611c519060409020546000858152601a6020526040902054611a00565b6000848152601f6020526040902055600083815260176020526040902054600084815260186020526001600160a01b039091169060409020546000858152601c60205260008051602061454c83398151915260408220546000888152601b60205260409020546000898152601f60205260409020546001886013604051808781526020018681526020018581526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611d24578082015183820152602001611d0c565b50505050905090810190601f168015611d515780820380516001836020036101000a031916815260200191505b50838103825284546002600019610100600184161502019091160480825260209091019085908015611dc45780601f10611d9957610100808354040283529160200191611dc4565b820191906000526020600020905b815481529060010190602001808311611da757829003601f168201915b50509850505050505050505060405180910390a4611de0611a1a565b6000838152601760205260408120546000858152601f6020526001600160a01b0390911690604090205460405160006040518083038185875af1925050503d8060008114611e4a576040513d603f01601f191681016040523d815291503d6000602084013e611e4f565b606091505b505090508061204157600084815260176020526040902054600085815260186020526001600160a01b039091169060409020546000868152601c60205260008051602061454c83398151915260408220546000898152601b602052604090205460008a8152601f60205260409020546002896014604051808781526020018681526020018581526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015611f1c578082015183820152602001611f04565b50505050905090810190601f168015611f495780820380516001836020036101000a031916815260200191505b50838103825284546002600019610100600184161502019091160480825260209091019085908015611fbc5780601f10611f9157610100808354040283529160200191611fbc565b820191906000526020600020905b815481529060010190602001808311611f9f57829003601f168201915b50509850505050505050505060405180910390a46000848152601760205261201490601d9060408120546001600160a01b031681526020810191909152604001600020546000868152601f6020526040902054611a00565b60008581526017602052601d9060408120546001600160a01b031681526020810191909152604001600020555b60008481526017602052610e1c9060409020546001600160a01b03166064612dda565b6000838152601c60205260409020546000848152601b602052604090205410610eba57600083815260176020526040902054600084815260186020526001600160a01b039091169060409020546000858152601c60205260008051602061454c83398151915260408220546000888152601b60205260409020546000898152601a60205260409020546000886015604051808781526020018681526020018581526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561214b578082015183820152602001612133565b50505050905090810190601f1680156121785780820380516001836020036101000a031916815260200191505b508381038252845460026000196101006001841615020190911604808252602090910190859080156121eb5780601f106121c0576101008083540402835291602001916121eb565b820191906000526020600020905b8154815290600101906020018083116121ce57829003601f168201915b50509850505050505050505060405180910390a46006546000848152601a60205261221f9190600190604090205403611a00565b60065561222a611a1a565b6000838152601760205260408120546001600160a01b0316600160405160006040518083038185875af1925050503d8060008114612284576040513d603f01601f191681016040523d815291503d6000602084013e612289565b606091505b5050905080610e1c57600084815260176020526122c990601d9060408120546001600160a01b031681526020810191909152604001600020546001611a00565b60008581526017602052601d9060408120546001600160a01b0316815260208101919091526040016000205550610eba565b6000808311801561230d575060208311155b61231657600080fd5b600a8402935060606001604051818152601f19601f830116810160200160405290801561234a576020820181803883390190505b5090508360f81b8160008151811061235e57fe5b60200101906001600160f81b031916908160001a90535060606020604051818152601f19601f83011681016020016040529080156123a3576020820181803883390190505b50905060606020604051818152601f19601f83011681016020016040529080156123d4576020820181803883390190505b50905060006123e1612f8d565b90506020835242411860014303401860208401526020825280602083015260606020604051818152601f19601f830116810160200160405290801561242d576020820181803883390190505b50905088602082015260606008604051818152601f19601f8301168101602001604052908015612464576020820181803883390190505b509050612477826018600884600061311e565b506124806143c0565b604051806080016040528087815260200188815260200186815260200184815250905060006124cc60405160408082019052600681526572616e646f6d60d01b6020820152838c613168565b905060606008604051818152601f19601f83011681016020016040529080156124fc576020820181803883390190505b5090506020840151600160f81b81046027830153600160f01b81046026830153600160e81b81046025830153600160e01b81046024830153600160d81b81046023830153600160d01b81046022830153600160c81b81046021830153600160c01b810460208301535061271a82826020860151600287516040518082805190602001908083835b602083106125a25780518252601f199092019160209182019101612583565b6001836020036101000a038019825116818451168082178552505050505050905001915050602060405180830381855afa1580156125e4573d6000803e3d6000fd5b5050506040513d60208110156125f957600080fd5b8101908080519250505060408801516040516020018085805190602001908083835b6020831061263a5780518252601f19909201916020918201910161261b565b6001836020036101000a038019825116818451161790925250505091909101905084805190602001908083835b602083106126865780518252601f199092019160209182019101612667565b6001836020036101000a038019825116818451161790925250505091909101848152602001905082805190602001908083835b602083106126d85780518252601f1990920191602091820191016126b9565b6001836020036101000a038019825116818451161790925250505091909101955060409450505050505160208183030381529060405280519060200120613380565b509b9a5050505050505050505050565b3b90565b60006119fa613395565b606060028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156127d05780601f106127a5576101008083540402835291602001916127d0565b820191906000526020600020905b8154815290600101906020018083116127b357829003601f168201915b5050505050905090565b600080856045815181106127ea57fe5b602001015160f81c606601905060606020604051818152601f19601f8301168101602001604052908015612825576020820181803883390190505b5090506128378783602084600061311e565b50600284876040516020018083805190602001908083835b6020831061286e5780518252601f19909201916020918201910161284f565b6001836020036101000a038019825116818451161790925250505091909101928352505060200190506040516020818303038152906040526040518082805190602001908083835b602083106128d55780518252601f1990920191602091820191016128b6565b6001836020036101000a038019825116818451168082178552505050505050905001915050602060405180830381855afa158015612917573d6000803e3d6000fd5b5050506040513d602081101561292c57600080fd5b8101908080519250604091505051602001808281526020019150506040516020818303038152906040528051906020012081805190602001201461297557600092505050612dc6565b606087604a84018151811061298657fe5b602001015160f81c600201604051818152601f19601f83011681016020016040529080156129bb576020820181803883390190505b5090506129d08884604901835184600061311e565b50612a866002826040518082805190602001908083835b60208310612a065780518252601f1990920191602091820191016129e7565b6001836020036101000a038019825116818451168082178552505050505050905001915050602060405180830381855afa158015612a48573d6000803e3d6000fd5b5050506040513d6020811015612a5d57600080fd5b81019080805192508991508b90506028870181518110612a7957fe5b602001015160f81c6136de565b612a965760009350505050612dc6565b60606029604051818152601f19601f8301168101602001604052908015612ac4576020820181803883390190505b509050612ad98985602001602984600061311e565b50606060408051818152601f19601f8301168101602001604052908015612b07576020820181803883390190505b5090506000835186602001602901016041019050612b2d8b60408303604085600061311e565b5060006002836040518082805190602001908083835b60208310612b625780518252601f199092019160209182019101612b43565b6001836020036101000a038019825116818451168082178552505050505050905001915050602060405180830381855afa158015612ba4573d6000803e3d6000fd5b5050506040513d6020811015612bb957600080fd5b810190808051935086925083915060409050516020018083805190602001908083835b60208310612bfb5780518252601f199092019160209182019101612bdc565b6001836020036101000a038019825116818451161790925250505091909101928352505060200190506040516020818303038152906040528051906020012060008c8152600360205260409020541415612c665760008b815260036020526040902060009055612c76565b6000975050505050505050612dc6565b60606049604051818152601f19601f8301168101602001604052908015612ca4576020820181803883390190505b509050612cb68d89604984600061311e565b50612d566002826040518082805190602001908083835b60208310612cec5780518252601f199092019160209182019101612ccd565b6001836020036101000a038019825116818451168082178552505050505050905001915050602060405180830381855afa158015612d2e573d6000803e3d6000fd5b5050506040513d6020811015612d4357600080fd5b810190808051925089915087905061374a565b612d6b57600098505050505050505050612dc6565b60008281526004602052604090205460ff16612da957612d8b8d846138ad565b6000838152600460205260409020805460ff19169115159190911790555b60008281526004602052604090205460ff16985050505050505050505b949350505050565b111590565b8101101590565b600554600160a81b900460ff16151560011415612e285760405162461bcd60e51b81526004018080602001828103825260218152602001806144976021913960400191505060405180910390fd5b60055460ff16151560011415612e845760405162461bcd60e51b815260206004820152601a60248201527f47616d65207061757365642c206e6f7420617661696c61626c65000000000000604482015260640160405180910390fd5b600d546001600160a01b0316612e9957600080fd5b60008111612ea657600080fd5b6021546001600160a01b031663a9059cbb836305f5e10084026040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015612f0557600080fd5b505af1158015612f19573d6000803e3d6000fd5b505050506040513d6020811015612f2f57600080fd5b8101908080519250610872915050577fd44da6836c8376d1693e8b9cacf1c39b9bed3599164ad6d8e60902515f83938e60405180806020018281038252603081526020018061456c6030913960400191505060405180910390a15050565b6001546000906001600160a01b03161580612fba5750600154612fb8906001600160a01b031661272a565b155b15612fcb57612fc9600061272e565b505b6001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561300857600080fd5b505af115801561301c573d6000803e3d6000fd5b505050506040513d602081101561303257600080fd5b8101908080516000546001600160a01b0390811691161492506130e3915050576001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561308f57600080fd5b505af11580156130a3573d6000803e3d6000fd5b505050506040513d60208110156130b957600080fd5b810190808051600080546001600160a01b0319166001600160a01b03929092169190911790555050505b6000546001600160a01b031663abaa5f3e6040518163ffffffff1660e01b815260040160206040518083038186803b1580156118f957600080fd5b6060838201808451101561313157600080fd5b60208087019084015b86886020010182101561315b5781890151868201526020918201910161313a565b5093979650505050505050565b6001546000906001600160a01b031615806131955750600154613193906001600160a01b031661272a565b155b156131a6576131a4600061272e565b505b6001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156131e357600080fd5b505af11580156131f7573d6000803e3d6000fd5b505050506040513d602081101561320d57600080fd5b8101908080516000546001600160a01b0390811691161492506132be915050576001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561326a57600080fd5b505af115801561327e573d6000803e3d6000fd5b505050506040513d602081101561329457600080fd5b810190808051600080546001600160a01b0319166001600160a01b03929092169190911790555050505b606060046040519080825280602002602001820160405280156132f557816020015b60608152602001906001900390816132e05790505b50905083518160008151811061330757fe5b602090810291909101015283600160200201518160018151811061332757fe5b602090810291909101015260408401518160028151811061334457fe5b602090810291909101015260608401518160038151811061336157fe5b6020026020010181905250613377858285613c44565b95945050505050565b60008281526003602052819060409020555050565b6000806133b5731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed61272a565b111561341357600180546001600160a01b031916731d3b2638a7cc9f2cb3d298a3da7a90b67e5506ed17905561340b60405160408082019052600b81526a195d1a17db585a5b9b995d60aa1b6020820152614015565b506001611214565b600061343273c03a2615d5efaf5f49f60b7bb6583eaec212fdf161272a565b111561348957600180546001600160a01b03191673c03a2615d5efaf5f49f60b7bb6583eaec212fdf117905561340b60405160408082019052600c81526b6574685f726f707374656e3360a01b6020820152614015565b60006134a873b7a07bcf2ba2f2703b24c0691b5278999c59ac7e61272a565b11156134fc57600180546001600160a01b03191673b7a07bcf2ba2f2703b24c0691b5278999c59ac7e17905561340b60405160408082019052600981526832ba342fb5b7bb30b760b91b6020820152614015565b600061351b73146500cfd35b22e4a392fe0adc06de1a1368ed4861272a565b111561357157600180546001600160a01b03191673146500cfd35b22e4a392fe0adc06de1a1368ed4817905561340b60405160408082019052600b81526a6574685f72696e6b65627960a81b6020820152614015565b600061359073a2998efd205fb9d4b4963afb70778d6354ad3a4161272a565b11156135e557600180546001600160a01b03191673a2998efd205fb9d4b4963afb70778d6354ad3a4117905561340b60405160408082019052600a8152696574685f676f65726c6960b01b6020820152614015565b6000613604736f485c8bf6fc43ea212e93bbf8ce046c7f1cb47561272a565b11156136365750600180546001600160a01b031916736f485c8bf6fc43ea212e93bbf8ce046c7f1cb475178155611214565b60006136557320e12a1f859b3feae5fb2a0a32c18f5a65555bbf61272a565b11156136875750600180546001600160a01b0319167320e12a1f859b3feae5fb2a0a32c18f5a65555bbf178155611214565b60006136a67351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa61272a565b11156136d85750600180546001600160a01b0319167351efaf4c8b3c9afbd5ab9f4bbc82784ab6ef8faa178155611214565b50600090565b60006001828451146136ef57600080fd5b60005b838110156137415784818151811061370657fe5b60200101516001600160f81b03191686826020811061372157fe5b1a60f81b6001600160f81b0319161461373957600091505b6001016136f2565b50949350505050565b600080600080600060606020604051818152601f19601f8301168101602001604052908015613780576020820181803883390190505b509050600060208960038151811061379457fe5b602001015160f81c60f81b60f81c60ff160360040190506137ba8982602085600061311e565b915060606020604051818152601f19601f83011681016020016040529080156137ea576020820181803883390190505b50905060228201915061381d8a60208c600186038151811061380857fe5b602001015160f81c038401602084600061311e565b9050602083015194506020810151935061383a8b601b8787614028565b90975095506001600160a01b03861689805190602001206001600160a01b031614156138705760019750505050505050506119d9565b61387d8b601c8787614028565b90975095506001600160a01b03861689805190602001206001600160a01b03161497506119d99650505050505050565b60008060608484600101815181106138c157fe5b602001015160f81c600201604051818152601f19601f83011681016020016040529080156138f6576020820181803883390190505b5090506139088585835184600061311e565b50606060408051818152601f19601f8301168101602001604052908015613936576020820181803883390190505b509050613949866004604084600061311e565b5060606062604051818152601f19601f8301168101602001604052908015613978576020820181803883390190505b509050600160f81b8160008151811061398d57fe5b60200101906001600160f81b031916908160001a9053506139b68760418803604184600161311e565b5060606040518060400160405280602081526020017ffd94fa71bc0ba10d39d464d0d8f465efeef0a2764e3887fcc9df41ded20f505c8152509050613a01816000602085604261311e565b50613aa16002836040518082805190602001908083835b60208310613a375780518252601f199092019160209182019101613a18565b6001836020036101000a038019825116818451168082178552505050505050905001915050602060405180830381855afa158015613a79573d6000803e3d6000fd5b5050506040513d6020811015613a8e57600080fd5b810190808051925087915086905061374a565b945084613ab6576000955050505050506119fa565b60606040518060600160405280604081526020016144e960409139905060606042604051818152601f19601f8301168101602001604052908015613b01576020820181803883390190505b509050607f60f91b81600081518110613b1657fe5b60200101906001600160f81b031916908160001a905350613b3d8a6003604184600161311e565b5060608a604581518110613b4d57fe5b602001015160f81c600201604051818152601f19601f8301168101602001604052908015613b82576020820181803883390190505b509050613b958b6044835184600061311e565b50613c356002836040518082805190602001908083835b60208310613bcb5780518252601f199092019160209182019101613bac565b6001836020036101000a038019825116818451168082178552505050505050905001915050602060405180830381855afa158015613c0d573d6000803e3d6000fd5b5050506040513d6020811015613c2257600080fd5b810190808051925084915086905061374a565b9b9a5050505050505050505050565b6001546000906001600160a01b03161580613c715750600154613c6f906001600160a01b031661272a565b155b15613c8257613c80600061272e565b505b6001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015613cbf57600080fd5b505af1158015613cd3573d6000803e3d6000fd5b505050506040513d6020811015613ce957600080fd5b8101908080516000546001600160a01b039081169116149250613d9a915050576001546001600160a01b03166338cc48316040518163ffffffff1660e01b8152600401602060405180830381600087803b158015613d4657600080fd5b505af1158015613d5a573d6000803e3d6000fd5b505050506040513d6020811015613d7057600080fd5b810190808051600080546001600160a01b0319166001600160a01b03929092169190911790555050505b600080546001600160a01b0316632ef3accc86856040518363ffffffff1660e01b81526004018080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015613e00578082015183820152602001613de8565b50505050905090810190601f168015613e2d5780820380516001836020036101000a031916815260200191505b509350505050602060405180830381600087803b158015613e4d57600080fd5b505af1158015613e61573d6000803e3d6000fd5b505050506040513d6020811015613e7757600080fd5b8101908080519350505050670de0b6b3a76400003a840201811115613ea05750600090506119d9565b6060613eab85614068565b600080549192506001600160a01b039091169063c55c1cb69084908985896040518663ffffffff1660e01b8152600401808581526020018060200180602001848152602001838103835286818151815260200191508051906020019080838360005b83811015613f25578082015183820152602001613f0d565b50505050905090810190601f168015613f525780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b83811015613f88578082015183820152602001613f70565b50505050905090810190601f168015613fb55780820380516001836020036101000a031916815260200191505b5096505050505050506020604051808303818588803b158015613fd757600080fd5b505af1158015613feb573d6000803e3d6000fd5b50505050506040513d602081101561400257600080fd5b8101908080519998505050505050505050565b60028180516108729291602001906143e6565b60008060008060405188815287602082015286604082015285606082015260208160808360006001610bb8f1925080519299929850919650505050505050565b60606140726140da565b61407a614464565b614086816104006140e6565b61408f81614114565b60005b83518110156140c7576140bf8482815181106140aa57fe5b6020026020010151839063ffffffff61411f16565b600101614092565b506140d18161413c565b80519392505050565b60405180590338823950565b8060208106156140f95760208106602003015b60208301819052604051928390526000835290910160405250565b6107ec816004614143565b61412c826002835161415e565b610eba828263ffffffff61426916565b6107ec8160075b61087282601f611fe0600585901b161763ffffffff61430216565b601781116141845761417f8360e0600585901b16831763ffffffff61430216565b610eba565b60ff81116141b9576141a7836018611fe0600586901b161763ffffffff61430216565b610e1c8382600163ffffffff61433b16565b61ffff81116141ef576141dd836019611fe0600586901b161763ffffffff61430216565b610e1c8382600263ffffffff61433b16565b63ffffffff81116142275761421583601a611fe0600586901b161763ffffffff61430216565b610e1c8382600463ffffffff61433b16565b67ffffffffffffffff8111610eba5761425183601b611fe0600586901b161763ffffffff61430216565b6142638382600863ffffffff61433b16565b50505050565b614271614464565b8260200151835151835101111561429d5761429d836142958560200151855161438f565b6002026143a6565b60008060008451905085518051602081830101945086510190526020850191505b602081106142de57815183526020928301929190910190601f19016142be565b60001960208290036101000a01801983511681855116179093525093949350505050565b81602001518251516001011115614324576143248283602001516002026143a6565b815180516020818301018381535060010190525050565b614343614464565b836020015184515183011115614365576143658461429586602001518561438f565b60001961010083900a01845180518481830101868419825116179052909301909252509192915050565b6000818311156143a05750816119fa565b50919050565b6060825190506143b683836140e6565b6142638382614269565b604051608081016040526004815b60608152602001906001900390816143ce5790505090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061442757805160ff1916838001178555614454565b82800160010185558215614454579182015b82811115614454578251825591602001919060010190614439565b5061446092915061447c565b5090565b60405160408082019052606081526000602082015290565b61121491905b80821115614460576000815560010161448256fe5061796f757473207061757365642c67616d65206e6f7420617661696c61626c6542657420636f6e646974696f6e7320616d6f756e747320646f206e6f74206669742067616d6520636f6e646974696f6e737fb956469c5c9b89840d55b43537e66a98dd4811ea0a27224272c2e5622911e8537a2f8e86a46baec82864e98dd01e9ccc2f8bc5dfc9cbe5a91a290498dd96e443616c6c6572206973206e6f74207468652050726f7661626c652061646472657373217eb7f9b43870a9f21669ba5628a124e8f04760438cab44301cb70cf4885ac8ca546865726520617265206e6f7420656e6f75676820666964656c69747920746f6b656e7320746f207472616e73666572a265627a7a72315820d480923c38af04b0bbca7867c3e8f6efa6a6fa28c9cff4b4c1874687326ed23664736f6c63430005110032

Deployed ByteCode Sourcemap

89331:16818:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;104068:145;;8:9:-1;5:2;;;30:1;27;20:12;5:2;104068:145:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;104068:145:0;;:::i;93426:27::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;93426:27:0;;;:::i;:::-;;;-1:-1:-1;;;;;93426:27:0;;;;;;;;;;;;;;92389:40;;8:9:-1;5:2;;;30:1;27;20:12;5:2;92389:40:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;92389:40:0;;:::i;:::-;;;;;;;;;;;;;;;;;90716:37;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90716:37:0;;;:::i;:::-;;;;;;;;;;;;;;;104548:111;;8:9:-1;5:2;;;30:1;27;20:12;5:2;104548:111:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;104548:111:0;;:::i;18037:124::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;18037:124:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;18037:124:0;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;18037:124:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;18037:124:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;18037:124:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1:33:-1;99:1;81:16;;74:27;;;;-1:-1;18037:124:0;;-1:-1:-1;18037:124:0;;-1:-1:-1;;;;;18037:124:0:i;90585:25::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90585:25:0;;;:::i;96182:2826::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;96182:2826:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;96182:2826:0;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;96182:2826:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;96182:2826:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;96182:2826:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1:33:-1;99:1;81:16;;74:27;;;;-1:-1;96182:2826:0;;;;;;;;-1:-1:-1;96182:2826:0;;-1:-1:-1;;21:11;5:28;;2:2;;;46:1;43;36:12;2:2;96182:2826:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;96182:2826:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;96182:2826:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1:33:-1;99:1;81:16;;74:27;;;;-1:-1;96182:2826:0;;-1:-1:-1;96182:2826:0;;-1:-1:-1;;;;;96182:2826:0:i;90440:35::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90440:35:0;;;:::i;103620:154::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;103620:154:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;103620:154:0;-1:-1:-1;;;;;103620:154:0;;:::i;104312:179::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;104312:179:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;104312:179:0;;:::i;90331:47::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90331:47:0;;;:::i;93740:217::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;93740:217:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;93740:217:0;-1:-1:-1;;;;;93740:217:0;;:::i;105728:115::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105728:115:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;105728:115:0;;;;:::i;105903:106::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105903:106:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;105903:106:0;-1:-1:-1;;;;;105903:106:0;;:::i;90483:34::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90483:34:0;;;:::i;90842:44::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90842:44:0;;;:::i;104728:186::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;104728:186:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;104728:186:0;;:::i;104964:107::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;104964:107:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;104964:107:0;;:::i;105569:97::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105569:97:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;105569:97:0;;;;:::i;105132:375::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105132:375:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;105132:375:0;;;;;;;;:::i;90618:27::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90618:27:0;;;:::i;90550:28::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90550:28:0;;;:::i;90780:18::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90780:18:0;;;:::i;102955:619::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;102955:619:0;;;:::i;90685:21::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90685:21:0;;;:::i;90521:22::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90521:22:0;;;:::i;106068:74::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;106068:74:0;;;:::i;90652:21::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90652:21:0;;;:::i;94974:1172::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;94974:1172:0;;:::i;90385:44::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90385:44:0;;;:::i;90806:29::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90806:29:0;;;:::i;104068:145::-;90255:5;;;;;-1:-1:-1;;;;;90255:5:0;90241:10;:19;90233:28;;;;;;104158:47;104185:19;104158:26;:47::i;:::-;104068:145;:::o;93426:27::-;;;-1:-1:-1;;;;;93426:27:0;;:::o;92389:40::-;;;;;;;;;;;;;;-1:-1:-1;92389:40:0;:::o;90716:37::-;;;;:::o;104548:111::-;90255:5;;;;;-1:-1:-1;;;;;90255:5:0;90241:10;:19;90233:28;;;;;;104627:9;:24;104548:111::o;18037:124::-;18113:40;18124:5;18131:7;18150:1;18140:12;;;;;-1:-1:-1;;18140:12:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;18140:12:0;87:34:-1;135:17;;-1:-1;18140:12:0;;18113:10;:40::i;:::-;18037:124;;:::o;90585:25::-;;;-1:-1:-1;;;90585:25:0;;;;;:::o;96182:2826::-;96303:20;:18;:20::i;:::-;-1:-1:-1;;;;;96289:34:0;:10;-1:-1:-1;;;;;96289:34:0;;96281:82;;;;-1:-1:-1;;;96281:82:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;96382:17;;;;:7;:17;;;;;;;;96374:61;;;;-1:-1:-1;;;96374:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;96464:134;96524:8;96551:7;96577:6;96464:41;:134::i;:::-;:139;;;96446:2558;;96751:1;96723:25;;;:15;:25;;;96751:1;96723:25;:29;96797:23;;;;:13;:23;;;;;;;96767:27;;;:17;:27;;-1:-1:-1;;;;;96797:23:0;;;;96767:27;;;:53;;-1:-1:-1;;;;;;96767:53:0;-1:-1:-1;;;;;96767:53:0;;;;;;;;;;-1:-1:-1;96829:23:0;;;:13;:23;;;;;96822:30;;-1:-1:-1;;;;;;96822:30:0;;;96829:23;96896:22;;;:12;:22;;;;;;96867:26;;;;:16;:26;;;;;:51;96945:1;96920:22;;;:12;:22;;;96945:1;96920:22;:26;97041:17;;97060:26;;;;:16;:26;;97033:54;;97041:17;97060:26;;;;97033:7;:54::i;:::-;97013:17;:74;97142:24;;;;:14;:24;;;;;;97111:28;;;;:18;:28;;;;;:55;97195:1;97168:24;;;:14;:24;;;97195:1;97168:24;:28;97468:27;;;;:17;:27;;;;;;;97445:21;;;:11;:21;;-1:-1:-1;;;;;97468:27:0;;;;97445:21;;;;97442:1;97497:22;;;:12;:22;;-1:-1:-1;;;;;;;;;;;97497:22:0;97442:1;97497:22;;97521:25;;;;:15;:25;;;;;;97548:28;;;;:18;:28;;;;;;97578:1;97581:6;97589:19;97432:177;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;97432:177:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;97432:177:0;;;;;;;;-1:-1:-1;;97432:177:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;97894:12;97911:27;;;:17;:27;;;97894:12;97911:27;;;97950:28;;;:18;:28;;-1:-1:-1;;;;;97911:27:0;;;;97950:28;;;;97911:72;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;115:16;133:4;111:27;-1:-1;;107:43;100:51;;94:4;87:65;169:16;159:27;;64:16;-1:-1;225:16;222:1;215:4;208:12;;193:49;7:242;;16:31;36:4;31:9;;7:242;;97893:90:0;;;98002:7;97998:622;;98070:27;;;;:17;:27;;;;;;;98047:21;;;:11;:21;;-1:-1:-1;;;;;98070:27:0;;;;98047:21;;;;98044:1;98099:22;;;:12;:22;;-1:-1:-1;;;;;;;;;;;98099:22:0;98044:1;98099:22;;98123:25;;;;:15;:25;;;;;;98150:28;;;;:18;:28;;;;;;98180:1;98183:6;98191:17;98034:175;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;98034:175:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;98034:175:0;;;;;;;;-1:-1:-1;;98034:175:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98402:53;98427:27;;;:17;:27;;98394:92;;98402:24;;98427:27;98402:53;98427:27;;-1:-1:-1;;;;;98427:27:0;98402:53;;;;;;;;;;;98427:27;98402:53;;98457:28;;;;:18;:28;;;;;;98394:7;:92::i;:::-;98338:53;98363:27;;;:17;:27;;98338:24;;98363:27;98338:53;98363:27;;-1:-1:-1;;;;;98363:27:0;98338:53;;;;;;;;;;;98363:27;98338:53;:148;98529:14;:12;:14::i;:::-;98634:7;;;96446:2558;98691:53;98673:15;98691:53;98817:7;98800:25;;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;377:20;365:33;;;-1:-1;;;98800:25:0;;;;;-1:-1:-1;98800:25:0;;-1:-1:-1;;98800:25:0;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;98800:25:0;;;98790:36;;;;;;98782:55;;;;;;;-1:-1:-1;98902:1:0;98895:3;98880:18;;98879:24;98930:62;98954:8;98879:24;98985:6;98930:23;:62::i;:::-;96446:2558;;;;96182:2826;;;:::o;90440:35::-;90473:2;90440:35;:::o;103620:154::-;-1:-1:-1;;;;;103726:40:0;;103702:4;103726:40;;;:24;:40;;;103702:4;103726:40;;;103620:154;-1:-1:-1;;103620:154:0:o;104312:179::-;90255:5;;;;;-1:-1:-1;;;;;90255:5:0;90241:10;:19;90233:28;;;;;;104418:15;:41;;;104469:14;:12;:14::i;90331:47::-;90371:7;90331:47;:::o;93740:217::-;90255:5;;93814:4;;90255:5;;;-1:-1:-1;;;;;90255:5:0;90241:10;:19;90233:28;;;;;;-1:-1:-1;93833:21:0;:36;;-1:-1:-1;;;;;;93833:36:0;;;-1:-1:-1;;;;;93833:36:0;;;;;;;;93880:14;:45;;93903:21;;;;93880:45;;;;;-1:-1:-1;;93740:217:0:o;105728:115::-;90255:5;;;;;-1:-1:-1;;;;;90255:5:0;90241:10;:19;90233:28;;;;;;105804:13;:31;;;;;-1:-1:-1;;;105804:31:0;-1:-1:-1;;;;105804:31:0;;;;;;;;;105728:115::o;105903:106::-;90255:5;;;;;-1:-1:-1;;;;;90255:5:0;90241:10;:19;90233:28;;;;;;105985:5;:16;;-1:-1:-1;;;;;105985:16:0;;;;;-1:-1:-1;;;;;;105985:16:0;;;;;;;;;105903:106::o;90483:34::-;90516:1;90483:34;:::o;90842:44::-;;;;:::o;104728:186::-;90255:5;;;;;-1:-1:-1;;;;;90255:5:0;90241:10;:19;90233:28;;;;;;104832:25;:49;;;104892:14;:12;:14::i;104964:107::-;90255:5;;;;;-1:-1:-1;;;;;90255:5:0;90241:10;:19;90233:28;;;;;;105041:6;:22;104964:107::o;105569:97::-;90255:5;;;;;-1:-1:-1;;;;;90255:5:0;90241:10;:19;90233:28;;;;;;105636:10;:22;;-1:-1:-1;;105636:22:0;;;;;;;;;;105569:97::o;105132:375::-;90255:5;;;;;-1:-1:-1;;;;;90255:5:0;90241:10;:19;90233:28;;;;;;105324:32;105332:15;;105349:6;105324:7;:32::i;:::-;105306:15;:50;105402:14;:12;:14::i;:::-;-1:-1:-1;;;;;105427:15:0;;:23;;;;105443:6;105427:23;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;105427:23:0;105491:6;105483;-1:-1:-1;;;;;105466:32:0;;;;;;;;;;;105132:375;;:::o;90618:27::-;;;;:::o;90550:28::-;;;;;;-1:-1:-1;;;;;90550:28:0;;:::o;90780:18::-;;;;:::o;102955:619::-;90117:13;;103033:4;;-1:-1:-1;;;90117:13:0;;;;:21;;90134:4;90117:21;;90109:67;;;;-1:-1:-1;;;90109:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;103103:10;103056:19;103078:36;;;:24;:36;;;103056:19;103078:36;;103150:10;103164:1;103125:36;;;:24;:36;;103078;;-1:-1:-1;103125:36:0;103164:1;103125:36;:40;103236:12;103253:10;103275:14;103253:41;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;115:16;133:4;111:27;-1:-1;;107:43;100:51;;94:4;87:65;169:16;159:27;;64:16;-1:-1;225:16;222:1;215:4;208:12;;193:49;7:242;;16:31;36:4;31:9;;7:242;;103235:59:0;;;103309:7;103305:260;;103498:10;103473:36;;;;:24;:36;;103512:14;;103473:36;;;:53;-1:-1:-1;103548:5:0;;-1:-1:-1;103541:12:0;;-1:-1:-1;103541:12:0;103305:260;90181:1;;;102955:619;:::o;90685:21::-;;;;:::o;90521:22::-;;;;;;:::o;106068:74::-;90255:5;;;;;-1:-1:-1;;;;;90255:5:0;90241:10;:19;90233:28;;;;;;106126:10;106113:24;90652:21;;;;:::o;94974:1172::-;89950:10;;;;:18;;:10;:18;;89942:57;;;;-1:-1:-1;;;89942:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;95053:9;95064;89728;;89717:8;90425:4;89689:9;;89678:8;89652:24;89660:13;89674:1;89652:7;:24::i;:::-;89621;89629:13;89643:1;89621:7;:24::i;:::-;89616:3;:30;89604:8;:43;89603:74;;;;;;:83;89601:97;:114;;;;;;89600:125;:137;:158;;;;89752:6;;89741:8;:17;89600:158;:187;;;;90516:1;89762:13;:25;89600:187;:216;;;;90473:2;89791:13;:25;89600:216;89597:290;;;89828:59;;-1:-1:-1;;;89828:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89597:290;95088:22;95113:153;92323:1;92274;92376:6;95113:25;:153::i;:::-;95277:23;;;;:7;:23;;95088:178;;-1:-1:-1;95303:4:0;;95277:23;;;:30;;-1:-1:-1;;95277:30:0;;;;;;;;;;-1:-1:-1;95314:27:0;;;:11;:27;;;;;;;:44;95363:28;;;;:12;:28;;95394:9;;95363:28;;;:40;95414:30;;;;:14;:30;;95447:9;;95414:30;;;:42;95467:29;;;;:13;:29;;95499:10;;95467:29;;;;:42;;;;;-1:-1:-1;;;;;95467:42:0;;;;;-1:-1:-1;;;;;95467:42:0;;;;;;95662:9;90425:4;95634:9;;95622;95600:20;95608:9;95618:1;95600:7;:20::i;:::-;95573;95581:9;95591:1;95573:7;:20::i;:::-;95568:3;:26;95555:9;:40;95554:67;;;;;;:77;95552:91;:108;;;;;;95551:120;95520:12;:28;95533:14;95520:28;;;;;;;;;;;:151;95728:17;;95747:28;;;;:12;:28;;95720:56;;95728:17;95747:28;;;;95720:7;:56::i;:::-;95700:17;:76;;;95821:15;;-1:-1:-1;95797:49:0;;95838:8;;;95797:49;95937:30;;;;:14;:30;;95929:69;;95937:30;;;;95969:28;;;;:12;:28;;;;;;95929:7;:69::i;:::-;95898:29;;;;:13;:29;;;;;;;95869:27;;;:11;:27;;-1:-1:-1;;;;;95898:29:0;;;;95869:27;;;;96000:28;;;;:12;:28;;95862:266;;96000:28;;;;96030:30;;;;:14;:30;;;;;;96062:28;;;;:12;:28;;;;;;96092:14;96108:19;95862:266;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;95862:266:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89892:1;90004;;94974:1172;:::o;90385:44::-;90425:4;90385:44;:::o;90806:29::-;;;;:::o;40674:136::-;14490:3;;-1:-1:-1;;;;;14490:3:0;14482:26;;14481:64;;-1:-1:-1;14534:3:0;;14514:25;;-1:-1:-1;;;;;14534:3:0;14514:11;:25::i;:::-;:30;14481:64;14477:132;;;14562:35;14128:1;14562:19;:35::i;:::-;;14477:132;14644:3;;-1:-1:-1;;;;;14644:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14644:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14644:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14644:16:0;;;;;;14631:8;;-1:-1:-1;;;;;14631:8:0;;;14623:37;;;;-1:-1:-1;14619:108:0;;-1:-1:-1;;14619:108:0;14698:3;;-1:-1:-1;;;;;14698:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14698:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14698:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14698:16:0;;;;;;14677:8;:38;;-1:-1:-1;;;;;;14677:38:0;-1:-1:-1;;;;;14677:38:0;;;;;;;;;;-1:-1:-1;;;14619:108:0;40765:8;;-1:-1:-1;;;;;40765:8:0;:26;40792:9;40765:37;;-1:-1:-1;;;;;;40765:37:0;;;;;;;;;;;;;;;;-1:-1:-1;40765:37:0;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;40765:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;40765:37:0;;;;40674:136;:::o;40375:132::-;14490:3;;40435:24;;-1:-1:-1;;;;;14490:3:0;14482:26;;14481:64;;-1:-1:-1;14534:3:0;;14514:25;;-1:-1:-1;;;;;14534:3:0;14514:11;:25::i;:::-;:30;14481:64;14477:132;;;14562:35;14128:1;14562:19;:35::i;:::-;;14477:132;14644:3;;-1:-1:-1;;;;;14644:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14644:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14644:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14644:16:0;;;;;;14631:8;;-1:-1:-1;;;;;14631:8:0;;;14623:37;;;;-1:-1:-1;14619:108:0;;-1:-1:-1;;14619:108:0;14698:3;;-1:-1:-1;;;;;14698:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14698:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14698:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14698:16:0;;;;;;14677:8;:38;;-1:-1:-1;;;;;;14677:38:0;-1:-1:-1;;;;;14677:38:0;;;;;;;;;;-1:-1:-1;;;14619:108:0;40479:8;;-1:-1:-1;;;;;40479:8:0;:18;:20;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;40479:20:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;40479:20:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;40479:20:0;;;;;;;-1:-1:-1;;;;40375:132:0;:::o;53964:589::-;54095:17;54224:6;54231:1;54224:9;;;;;;;;;;;;-1:-1:-1;;;;;;54224:9:0;-1:-1:-1;;;54224:16:0;;;54223:40;;;54246:6;54253:1;54246:9;;;;;;;;;;;;-1:-1:-1;;;;;;54246:9:0;-1:-1:-1;;;54246:16:0;;54223:40;:74;;;-1:-1:-1;54294:1:0;54274:6;54281:1;54274:6;:9;;;;;;;;;;;;;54268:28;;54223:74;54219:115;;;-1:-1:-1;54321:1:0;54314:8;;54219:115;54344:18;54365:96;54401:6;54409:8;54425:7;54435:25;:23;:25::i;:::-;54365:35;:96::i;:::-;54344:117;;54477:13;54472:55;;54514:1;54507:8;;;;;54472:55;54544:1;54537:8;;;53964:589;;;;;;:::o;88416:139::-;88472:4;88494:20;88509:1;88512;88494:14;:20::i;:::-;88489:35;;88516:8;;;88489:35;-1:-1:-1;88542:5:0;;;88416:139;;;;;:::o;88163:134::-;88219:4;88241:15;88251:1;88254;88241:9;:15::i;:::-;88236:30;;88258:8;;;88236:30;-1:-1:-1;88284:5:0;;88163:134::o;103882:126::-;90371:7;103955:25;;103939:15;;:41;103938:60;;;;;;103926:9;:72;103882:126::o;99017:3862::-;90117:13;;-1:-1:-1;;;90117:13:0;;;;:21;;90134:4;90117:21;;90109:67;;;;-1:-1:-1;;;90109:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;99164:20;:18;:20::i;:::-;-1:-1:-1;;;;;99150:34:0;:10;-1:-1:-1;;;;;99150:34:0;;99142:82;;;;-1:-1:-1;;;99142:82:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;99277:3;99248:19;;;:13;:19;;;99277:3;99248:19;;-1:-1:-1;;;;;99248:19:0;:33;;99240:42;;;;;;99303:21;;;;:15;:21;;99327:12;;99303:21;;;:36;99376:19;;;;:13;:19;;;;;;;99350:23;;;:17;:23;;-1:-1:-1;;;;;99376:19:0;;;;99350:23;;;:45;;-1:-1:-1;;;;;;99350:45:0;-1:-1:-1;;;;;99350:45:0;;;;;;;;;;-1:-1:-1;99414:19:0;;;:13;:19;;;;;99407:26;;-1:-1:-1;;;;;;99407:26:0;;;99414:19;99469:18;;;:12;:18;;;;;;99444:22;;;;:16;:22;;;;;:43;99520:1;99499:18;;;:12;:18;;;99520:1;99499:18;:22;99608:17;;99627:22;;;;:16;:22;;99600:50;;99608:17;99627:22;;;;99600:7;:50::i;:::-;99580:17;:70;99697:20;;;;:14;:20;;;;;;99670:24;;;;:18;:24;;;;;:47;99742:1;99719:20;;;:14;:20;;;99742:1;99719:20;:24;100011:18;;;;:12;:18;;;;;;99987:21;;;;:15;:21;;;;;;:42;99984:1612;;;100141:15;;100158:22;;;;:16;:22;;100133:48;;100141:15;100158:22;;;;100133:7;:48::i;:::-;100115:15;:66;100306:22;;;;:16;:22;;100298:57;;100306:22;;;;100330:24;;;;:18;:24;;;;;;100298:7;:57::i;:::-;100273:22;;;;:16;:22;;;;;:82;100410:23;;;;:17;:23;;;;;;;100391:17;;;:11;:17;;-1:-1:-1;;;;;100410:23:0;;;;100391:17;;;;100388:1;100435:18;;;:12;:18;;-1:-1:-1;;;;;;;;;;;100435:18:0;100388:1;100435:18;;100455:21;;;;:15;:21;;;;;;100478:22;;;;:16;:22;;;;;;100502:1;100505:5;100512:7;100378:142;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;100378:142:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;100378:142:0;;;;;;;;-1:-1:-1;;100378:142:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;100606:14;:12;:14::i;:::-;100904:12;100921:23;;;:17;:23;;;100904:12;100921:23;;;100956:22;;;:16;:22;;-1:-1:-1;;;;;100921:23:0;;;;100956:22;;;;100921:62;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;115:16;133:4;111:27;-1:-1;;107:43;100:51;;94:4;87:65;169:16;159:27;;64:16;-1:-1;225:16;222:1;215:4;208:12;;193:49;7:242;;16:31;36:4;31:9;;7:242;;100903:80:0;;;101002:7;100998:505;;101066:23;;;;:17;:23;;;;;;;101047:17;;;:11;:17;;-1:-1:-1;;;;;101066:23:0;;;;101047:17;;;;101044:1;101091:18;;;:12;:18;;-1:-1:-1;;;;;;;;;;;101091:18:0;101044:1;101091:18;;101111:21;;;;:15;:21;;;;;;101134:22;;;;:16;:22;;;;;;101158:1;101161:5;101168:19;101034:154;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;101034:154:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;101034:154:0;;;;;;;;-1:-1:-1;;101034:154:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;101382:49;101407:23;;;:17;:23;;101374:82;;101382:24;;101407:23;101382:49;101407:23;;-1:-1:-1;;;;;101407:23:0;101382:49;;;;;;;;;;;101407:23;101382:49;;101433:22;;;;:16;:22;;;;;;101374:7;:82::i;:::-;101322:49;101347:23;;;:17;:23;;101322:24;;101347:23;101322:49;101347:23;;-1:-1:-1;;;;;101347:23:0;101322:49;;;;;;;;;;;101347:23;101322:49;:134;100998:505;101532:23;;;;:17;:23;;101517:44;;101532:23;;;;-1:-1:-1;;;;;101532:23:0;101557:3;101517:14;:44::i;99984:1612::-;101774:18;;;;:12;:18;;;;;;101749:21;;;;:15;:21;;;;;;:43;101746:1126;;101845:23;;;;:17;:23;;;;;;;101826:17;;;:11;:17;;-1:-1:-1;;;;;101845:23:0;;;;101826:17;;;;101823:1;101870:18;;;:12;:18;;-1:-1:-1;;;;;;;;;;;101870:18:0;101823:1;101870:18;;101890:21;;;;:15;:21;;;;;;101913:24;;;;:18;:24;;;;;;101939:1;101942:5;101949:8;101813:145;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;101813:145:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;101813:145:0;;;;;;;;-1:-1:-1;;101813:145:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;102179:15;;102197:24;;;;:18;:24;;102171:54;;102179:15;102222:1;;102197:24;;;;:26;102171:7;:54::i;:::-;102153:15;:72;102281:14;:12;:14::i;:::-;102429:12;102446:23;;;:17;:23;;;102429:12;102446:23;;-1:-1:-1;;;;;102446:23:0;;:41;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;115:16;133:4;111:27;-1:-1;;107:43;100:51;;94:4;87:65;169:16;159:27;;64:16;-1:-1;225:16;222:1;215:4;208:12;;193:49;7:242;;16:31;36:4;31:9;;7:242;;102428:59:0;;;102506:7;102502:303;;102704:49;102729:23;;;:17;:23;;102696:61;;102704:24;;102729:23;102704:49;102729:23;;-1:-1:-1;;;;;102729:23:0;102704:49;;;;;;;;;;;102729:23;102704:49;;102755:1;102696:7;:61::i;:::-;102644:49;102669:23;;;:17;:23;;102644:24;;102669:23;102644:49;102669:23;;-1:-1:-1;;;;;102669:23:0;102644:49;;;;;;;;;;;102669:23;102644:49;:113;102854:7;;;48448:2683;48550:16;48598:1;48588:7;:11;48587:32;;;;;48616:2;48605:7;:13;;48587:32;48579:41;;;;;;48641:2;48631:12;;;;48700:19;48732:1;48722:12;;;;;-1:-1:-1;;48722:12:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;48722:12:0;87:34:-1;135:17;;-1:-1;48722:12:0;;48700:34;;48768:7;48757:20;;48745:6;48752:1;48745:9;;;;;;;;;;;:32;-1:-1:-1;;;;;48745:32:0;;;;;;;;;48788:19;48820:2;48810:13;;;;;-1:-1:-1;;48810:13:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;48810:13:0;87:34:-1;135:17;;-1:-1;48810:13:0;;48788:35;;48834:27;48874:2;48864:13;;;;;-1:-1:-1;;48864:13:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;48864:13:0;87:34:-1;135:17;;-1:-1;48864:13:0;;48834:43;;48888:30;48921:40;:38;:40::i;:::-;48888:73;;49011:4;49003:6;48996:20;49364:9;49354:8;49350:24;49345:1;49337:6;49333:14;49323:25;49319:56;49312:4;49304:6;49300:17;49293:83;49413:4;49397:14;49390:28;49466:22;49459:4;49443:14;49439:25;49432:57;49510:18;49541:2;49531:13;;;;;-1:-1:-1;;49531:13:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;49531:13:0;87:34:-1;135:17;;-1:-1;49531:13:0;;49510:34;;49604:6;49597:4;49590:5;49586:16;49579:32;49632:25;49670:1;49660:12;;;;;-1:-1:-1;;49660:12:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;49660:12:0;87:34:-1;135:17;;-1:-1;49660:12:0;;49632:40;;49683;49693:5;49700:2;49704:1;49707:12;49721:1;49683:9;:40::i;:::-;;49734:20;;:::i;:::-;:62;;;;;;;;49758:6;49734:62;;;;49766:6;49734:62;;;;49774:14;49734:62;;;;49790:5;49734:62;;;;;49807:15;49825:47;;;;;;;;;;;;-1:-1:-1;;;49825:47:0;;;;49850:4;49856:15;49825:14;:47::i;:::-;49807:65;;49883:30;49926:1;49916:12;;;;;-1:-1:-1;;49916:12:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;49916:12:0;87:34:-1;135:17;;-1:-1;49916:12:0;;49883:45;;49996:4;49982:12;49978:23;49972:30;-1:-1:-1;;;50058:1:0;50054:73;50047:4;50028:17;50024:28;50016:112;-1:-1:-1;;;50184:1:0;50180:71;50173:4;50154:17;50150:28;50142:110;-1:-1:-1;;;50308:1:0;50304:69;50297:4;50278:17;50274:28;50266:108;-1:-1:-1;;;50430:1:0;50426:67;50419:4;50400:17;50396:28;50388:106;-1:-1:-1;;;50550:1:0;50546:65;50539:4;50520:17;50516:28;50508:104;-1:-1:-1;;;50668:1:0;50664:63;50657:4;50638:17;50634:28;50626:102;-1:-1:-1;;;50784:1:0;50780:61;50773:4;50754:17;50750:28;50742:100;-1:-1:-1;;;50898:1:0;50894:59;50887:4;50868:17;50864:28;50856:98;-1:-1:-1;50975:123:0;51007:7;51043:17;51062:7;;;;51071:15;51078:4;:7;51071:15;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;51071:15:0;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;51071:15:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;51071:15:0;;;;;;;-1:-1:-1;;;51088:7:0;;;;51026:70;;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;377:20;365:33;;;-1:-1;;;51026:70:0;;;;;-1:-1:-1;51026:70:0;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;377:20;365:33;;;-1:-1;;;51026:70:0;;;;;;;;;;-1:-1:-1;51026:70:0;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;377:20;365:33;;;-1:-1;;;51026:70:0;;;;;-1:-1:-1;51026:70:0;;-1:-1:-1;;;;;51026:70:0;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;51026:70:0;;;51016:81;;;;;;50975:31;:123::i;:::-;-1:-1:-1;51116:7:0;48448:2683;-1:-1:-1;;;;;;;;;;;48448:2683:0:o;40515:151::-;40630:18;;40606:53::o;15231:208::-;15296:16;15410:21;:19;:21::i;15582:133::-;15640:26;15686:21;15679:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15582:133;:::o;54972:2791::-;55124:19;55269:22;55315:6;55322:10;55315:18;;;;;;;;;;;;;;55294:51;;;-1:-1:-1;55356:20:0;55343:2;55379:13;;;;;-1:-1:-1;;55379:13:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;55379:13:0;87:34:-1;135:17;;-1:-1;55379:13:0;;55356:36;;55403:52;55413:6;55421:17;55440:2;55444:7;55453:1;55403:9;:52::i;:::-;;55521:48;55545:12;55559:8;55528:40;;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;377:20;365:33;;;-1:-1;;;55528:40:0;;;;;;;-1:-1:-1;;55528:40:0;;;-1:-1:-1;55528:40:0;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;55528:40:0;;;55521:48;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;55521:48:0;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;55521:48:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;55521:48:0;;;;;;;-1:-1:-1;55504:66:0;;-1:-1:-1;;55504:66:0;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;55504:66:0;;;55494:77;;;;;;55482:7;55472:18;;;;;;:99;55466:147;;55596:5;55589:12;;;;;;55466:147;55623:17;55664:6;55671:41;;;55664:6;:49;;;;;;;;;;;;;55718:1;55653:66;55643:77;;;;;-1:-1:-1;;55643:77:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;55643:77:0;87:34:-1;135:17;;-1:-1;55643:77:0;;55623:97;;55731:78;55741:6;55749:17;55770:15;55749:37;55788:4;:11;55801:4;55807:1;55731:9;:78::i;:::-;;55979:90;55998:12;56005:4;55998:12;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;55998:12:0;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;55998:12:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;55998:12:0;;;;;;;-1:-1:-1;56012:7:0;;-1:-1:-1;56032:6:0;;-1:-1:-1;56039:26:0;;;56032:6;:34;;;;;;;;;;;;;55979:18;:90::i;:::-;55974:136;;56093:5;56086:12;;;;;;;55974:136;56359:29;56401:10;56391:21;;;;;-1:-1:-1;;56391:21:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;56391:21:0;87:34:-1;135:17;;-1:-1;56391:21:0;;56359:53;;56423:74;56433:6;56441:17;56461:2;56441:22;56465:10;56477:16;56495:1;56423:9;:74::i;:::-;;56508:26;56547:2;56537:13;;;;;-1:-1:-1;;56537:13:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;56537:13:0;87:34:-1;135:17;;-1:-1;56537:13:0;;56508:42;;56561:15;56619:4;:11;56579:17;56599:2;56579:22;56605:10;56579:37;:51;56633:2;56579:56;56561:74;;56646:56;56656:6;56677:2;56664:10;:15;56681:2;56685:13;56700:1;56646:9;:56::i;:::-;;56713:25;56741:21;56748:13;56741:21;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;56741:21:0;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;56741:21:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;56741:21:0;;;;;;;-1:-1:-1;56840:16:0;;-1:-1:-1;56741:21:0;;-1:-1:-1;56823:53:0;;-1:-1:-1;56823:53:0;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;377:20;365:33;;;-1:-1;;;56823:53:0;;;;;;;-1:-1:-1;;56823:53:0;;;-1:-1:-1;56823:53:0;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;56823:53:0;;;56813:64;;;;;;56777:32;;;;:22;:32;;;;;;:100;56773:232;;;56943:32;;;;:22;:32;;;;;56936:39;;;56773:232;;;57000:5;56993:12;;;;;;;;;;;56773:232;57129:20;57162:15;57152:26;;;;;-1:-1:-1;;57152:26:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;57152:26:0;87:34:-1;135:17;;-1:-1;57152:26:0;;57129:49;;57189:65;57199:6;57207:17;57226:15;57243:7;57252:1;57189:9;:65::i;:::-;;57270:47;57280:15;57287:7;57280:15;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;57280:15:0;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;57280:15:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;57280:15:0;;;;;;;-1:-1:-1;57297:4:0;;-1:-1:-1;57303:13:0;;-1:-1:-1;57270:9:0;:47::i;:::-;57265:93;;57341:5;57334:12;;;;;;;;;;;;57265:93;57457:60;;;;:41;:60;;;;;;;;57452:226;;57597:69;57647:6;57655:10;57597:49;:69::i;:::-;57534:60;;;;:41;:60;;;;;:132;;-1:-1:-1;;57534:132:0;;;;;;;;;;57452:226;57695:60;;;;:41;:60;;;;;;;;;-1:-1:-1;;;;;;;;;54972:2791:0;;;;;;;:::o;88305:103::-;88393:6;;;88305:103::o;88055:102::-;88138:5;;-1:-1:-1;88138:10:0;;88055:102::o;93969:347::-;90117:13;;-1:-1:-1;;;90117:13:0;;;;:21;;90134:4;90117:21;;90109:67;;;;-1:-1:-1;;;90109:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89950:10;;;;:18;;:10;:18;;89942:57;;;;-1:-1:-1;;;89942:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;94082:21;;-1:-1:-1;;;;;94082:21:0;94074:46;;;;;;94149:1;94139:7;:11;94131:20;;;;;;94169:14;;-1:-1:-1;;;;;94169:14:0;:23;94193:3;94206:9;94198:17;;94169:47;;-1:-1:-1;;;;;;94169:47:0;;;;;;;-1:-1:-1;;;;;94169:47:0;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;94169:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;94169:47:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;94169:47:0;;;;;;;-1:-1:-1;94164:145:0;;-1:-1:-1;;94164:145:0;94237:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;93969:347;;:::o;40818:171::-;14490:3;;40898:23;;-1:-1:-1;;;;;14490:3:0;14482:26;;14481:64;;-1:-1:-1;14534:3:0;;14514:25;;-1:-1:-1;;;;;14534:3:0;14514:11;:25::i;:::-;:30;14481:64;14477:132;;;14562:35;14128:1;14562:19;:35::i;:::-;;14477:132;14644:3;;-1:-1:-1;;;;;14644:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14644:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14644:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14644:16:0;;;;;;14631:8;;-1:-1:-1;;;;;14631:8:0;;;14623:37;;;;-1:-1:-1;14619:108:0;;-1:-1:-1;;14619:108:0;14698:3;;-1:-1:-1;;;;;14698:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14698:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14698:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14698:16:0;;;;;;14677:8;:38;;-1:-1:-1;;;;;;14677:38:0;-1:-1:-1;;;;;14677:38:0;;;;;;;;;;-1:-1:-1;;;14619:108:0;40941:8;;-1:-1:-1;;;;;40941:8:0;:38;:40;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;57902:707:0;58030:25;58085:19;;;;58123:3;:10;:23;;58115:32;;;;;;58212:2;:16;;;;58329:14;;58354:227;58385:7;58371:11;58366:2;:16;:26;58361:1;:32;58354:227;;;58466:1;58459:5;58455:13;58449:20;58494:11;;;58487:24;58545:2;58540:7;;;;58562;58354:227;;;-1:-1:-1;58598:3:0;;57902:707;-1:-1:-1;;;;;;;57902:707:0:o;38155:384::-;14490:3;;38275:11;;-1:-1:-1;;;;;14490:3:0;14482:26;;14481:64;;-1:-1:-1;14534:3:0;;14514:25;;-1:-1:-1;;;;;14534:3:0;14514:11;:25::i;:::-;:30;14481:64;14477:132;;;14562:35;14128:1;14562:19;:35::i;:::-;;14477:132;14644:3;;-1:-1:-1;;;;;14644:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14644:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14644:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14644:16:0;;;;;;14631:8;;-1:-1:-1;;;;;14631:8:0;;;14623:37;;;;-1:-1:-1;14619:108:0;;-1:-1:-1;;14619:108:0;14698:3;;-1:-1:-1;;;;;14698:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14698:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14698:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14698:16:0;;;;;;14677:8;:38;;-1:-1:-1;;;;;;14677:38:0;-1:-1:-1;;;;;14677:38:0;;;;;;;;;;-1:-1:-1;;;14619:108:0;38299:22;38336:1;38324:14;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38299:39:0;-1:-1:-1;38362:5:0;:8;38349:7;38357:1;38349:10;;;;;;;;;;;;;;;;;:21;38394:5;38400:1;38394:8;;;;38381:7;38389:1;38381:10;;;;;;;;;;;;;;;;;:21;38426:8;;;;38413:7;38421:1;38413:10;;;;;;;;;;;;;;;;;:21;38458:8;;;;38445:7;38453:1;38445:10;;;;;;;;;;;;;:21;;;;38484:47;38499:11;38512:7;38521:9;38484:14;:47::i;:::-;38477:54;38155:384;-1:-1:-1;;;;;38155:384:0:o;51139:154::-;51239:32;;;;:22;:32;;51274:11;;51239:32;;;:46;-1:-1:-1;;51139:154:0:o;15723:2070::-;15772:16;15863:1;15805:55;15817:42;15805:11;:55::i;:::-;:59;15801:250;;;15891:3;:69;;-1:-1:-1;;;;;;15891:69:0;15917:42;15891:69;;;15975:38;;;;;;;;;;;;-1:-1:-1;;;15975:38:0;;;;:23;:38::i;:::-;-1:-1:-1;16035:4:0;16028:11;;15801:250;16123:1;16065:55;16077:42;16065:11;:55::i;:::-;:59;16061:259;;;16159:3;:69;;-1:-1:-1;;;;;;16159:69:0;16185:42;16159:69;;;16243:39;;;;;;;;;;;;-1:-1:-1;;;16243:39:0;;;;:23;:39::i;16061:259::-;16392:1;16334:55;16346:42;16334:11;:55::i;:::-;:59;16330:254;;;16426:3;:69;;-1:-1:-1;;;;;;16426:69:0;16452:42;16426:69;;;16510:36;;;;;;;;;;;;-1:-1:-1;;;16510:36:0;;;;:23;:36::i;16330:254::-;16656:1;16598:55;16610:42;16598:11;:55::i;:::-;:59;16594:258;;;16692:3;:69;;-1:-1:-1;;;;;;16692:69:0;16718:42;16692:69;;;16776:38;;;;;;;;;;;;-1:-1:-1;;;16776:38:0;;;;:23;:38::i;16594:258::-;16924:1;16866:55;16878:42;16866:11;:55::i;:::-;:59;16862:256;;;16959:3;:69;;-1:-1:-1;;;;;;16959:69:0;16985:42;16959:69;;;17043:37;;;;;;;;;;;;-1:-1:-1;;;17043:37:0;;;;:23;:37::i;16862:256::-;17190:1;17132:55;17144:42;17132:11;:55::i;:::-;:59;17128:205;;;-1:-1:-1;17226:3:0;:69;;-1:-1:-1;;;;;;17226:69:0;17252:42;17226:69;;;17310:11;;17128:205;17405:1;17347:55;17359:42;17347:11;:55::i;:::-;:59;17343:204;;;-1:-1:-1;17440:3:0;:69;;-1:-1:-1;;;;;;17440:69:0;17466:42;17440:69;;;17524:11;;17343:204;17619:1;17561:55;17573:42;17561:11;:55::i;:::-;:59;17557:206;;;-1:-1:-1;17656:3:0;:69;;-1:-1:-1;;;;;;17656:69:0;17682:42;17656:69;;;17740:11;;17557:206;-1:-1:-1;17780:5:0;15723:2070;:::o;54561:403::-;54672:19;54718:4;54759:13;54741:7;:14;:31;54733:40;;;;;;54789:9;54784:149;54807:13;54804:1;:16;54784:149;;;54861:7;54869:1;54861:10;;;;;;;;;;;;-1:-1:-1;;;;;;54861:10:0;54846:8;54855:1;54846:11;;;;;;;;;;-1:-1:-1;;;;;54846:25:0;;;54842:80;;54901:5;54892:14;;54842:80;54822:3;;54784:149;;;-1:-1:-1;54950:6:0;54561:403;-1:-1:-1;;;;54561:403:0:o;51301:1025::-;51400:17;51430:10;51451:14;51476:12;51499;51522:18;51553:2;51543:13;;;;;-1:-1:-1;;51543:13:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;51543:13:0;87:34:-1;135:17;;-1:-1;51543:13:0;;51522:34;;51567:11;51612:4;51597:7;51605:1;51597:10;;;;;;;;;;;;;;;;51591:17;;51586:23;;:30;51581:1;:36;51567:50;;51636:40;51646:7;51655:6;51663:2;51667:5;51674:1;51636:9;:40::i;:::-;51628:48;;51687:18;51718:2;51708:13;;;;;-1:-1:-1;;51708:13:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;51708:13:0;87:34:-1;135:17;;-1:-1;51708:13:0;;51687:34;;51742:6;51732:16;;;;51767:84;51777:7;51831:4;51807:7;51824:1;51815:6;:10;51807:19;;;;;;;;;;;;;;51796:39;51786:50;;51838:2;51842:5;51849:1;51767:9;:84::i;:::-;51759:92;;51911:2;51904:5;51900:14;51894:21;51886:29;;51954:2;51947:5;51943:14;51937:21;51929:29;;51997:41;52013:8;52023:2;52027:4;52033;51997:15;:41::i;:::-;51979:59;;-1:-1:-1;51979:59:0;-1:-1:-1;;;;;;52053:55:0;;52087:7;;52077:18;;;;;-1:-1:-1;;;;;52053:55:0;;52049:270;;;52132:4;52125:11;;;;;;;;;;;52049:270;52187:41;52203:8;52213:2;52217:4;52223;52187:15;:41::i;:::-;52169:59;;-1:-1:-1;52169:59:0;-1:-1:-1;;;;;;52251:55:0;;52285:7;;52275:18;;;;;-1:-1:-1;;;;;52251:55:0;;;-1:-1:-1;52243:64:0;;-1:-1:-1;;;;;;;52243:64:0;52334:1622;52450:19;52482:10;52645:17;52686:6;52693:11;52707:1;52693:15;52686:23;;;;;;;;;;;;;;52714:1;52675:40;52665:51;;;;;-1:-1:-1;;52665:51:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;52665:51:0;87:34:-1;135:17;;-1:-1;52665:51:0;;52645:71;;52727:52;52737:6;52745:11;52758:4;:11;52771:4;52777:1;52727:9;:52::i;:::-;;52790:27;52830:2;52820:13;;;;;-1:-1:-1;;52820:13:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;52820:13:0;87:34:-1;135:17;;-1:-1;52820:13:0;;52790:43;;52844:47;52854:6;52862:5;52869:2;52873:14;52889:1;52844:9;:47::i;:::-;;52902:20;52935:11;52925:22;;;;;-1:-1:-1;;52925:22:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;52925:22:0;87:34:-1;135:17;;-1:-1;52925:22:0;-1:-1:-1;52902:45:0;-1:-1:-1;;;;52902:45:0;52966:1;52902:45;52958:10;;;;;;;;;;:27;-1:-1:-1;;;;;52958:27:0;;;;;;;;;53003:51;53013:6;53035:2;53021:11;:16;53039:2;53043:7;53052:1;53003:9;:51::i;:::-;;53065:21;:93;;;;;;;;;;;;;;;;;;;53169:43;53179:8;53189:1;53192:2;53196:7;53205:6;53169:9;:43::i;:::-;;53231:48;53241:15;53248:7;53241:15;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;53241:15:0;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;53241:15:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;53241:15:0;;;;;;;-1:-1:-1;53258:4:0;;-1:-1:-1;53264:14:0;;-1:-1:-1;53231:9:0;:48::i;:::-;53223:56;;53295:5;53290:51;;53324:5;53317:12;;;;;;;;;53290:51;53444:22;:158;;;;;;;;;;;;;;;;;;;53613:20;53646:6;53636:17;;;;;-1:-1:-1;;53636:17:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;53636:17:0;87:34:-1;135:17;;-1:-1;53636:17:0;-1:-1:-1;53613:40:0;-1:-1:-1;;;;53613:40:0;53672:1;53613:40;53664:10;;;;;;;;;;:17;-1:-1:-1;;;;;53664:17:0;;;;;;;;;53692:36;53702:6;53710:1;53713:2;53717:7;53726:1;53692:9;:36::i;:::-;;53739:17;53780:6;53787:10;53780:18;;;;;;;;;;;;;;53803:1;53769:35;53759:46;;;;;-1:-1:-1;;53759:46:0;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;53759:46:0;87:34:-1;135:17;;-1:-1;53759:46:0;;53739:66;;53816:47;53826:6;53834;53842:4;:11;53855:4;53861:1;53816:9;:47::i;:::-;;53882:43;53892:15;53899:7;53892:15;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;53892:15:0;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;53892:15:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;53892:15:0;;;;;;;-1:-1:-1;53909:4:0;;-1:-1:-1;53915:9:0;;-1:-1:-1;53882:9:0;:43::i;:::-;53874:51;52334:1622;-1:-1:-1;;;;;;;;;;;52334:1622:0:o;32558:461::-;14490:3;;32677:11;;-1:-1:-1;;;;;14490:3:0;14482:26;;14481:64;;-1:-1:-1;14534:3:0;;14514:25;;-1:-1:-1;;;;;14534:3:0;14514:11;:25::i;:::-;:30;14481:64;14477:132;;;14562:35;14128:1;14562:19;:35::i;:::-;;14477:132;14644:3;;-1:-1:-1;;;;;14644:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14644:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14644:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14644:16:0;;;;;;14631:8;;-1:-1:-1;;;;;14631:8:0;;;14623:37;;;;-1:-1:-1;14619:108:0;;-1:-1:-1;;14619:108:0;14698:3;;-1:-1:-1;;;;;14698:3:0;:14;:16;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;14698:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14698:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;14698:16:0;;;;;;14677:8;:38;;-1:-1:-1;;;;;;14677:38:0;-1:-1:-1;;;;;14677:38:0;;;;;;;;;;-1:-1:-1;;;14619:108:0;32701:10;32714:8;;-1:-1:-1;;;;;32714:8:0;:17;32732:11;32745:9;32714:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;32714:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;32714:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32714:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;32714:41:0;;;;;;;-1:-1:-1;;;;32778:7:0;32788:11;:23;;32778:33;32770:41;;32766:109;;;-1:-1:-1;32835:1:0;;-1:-1:-1;32828:8:0;;32766:109;32885:17;32905:14;32913:5;32905:7;:14::i;:::-;32937:8;;;32885:34;;-1:-1:-1;;;;;;32937:8:0;;;;:28;;32972:5;;32982:11;32885:34;33001:9;32937:74;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;32937:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;32937:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;32937:74:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;32937:74:0;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;32937:74:0;;;;;;;32558:461;-1:-1:-1;;;;;;;;;32558:461:0:o;15447:127::-;15529:21;15553:13;;15529:37;;;;;;;;:::i;58821:1003::-;58913:13;58928:25;59368:8;59387:12;59452:4;59446:11;59484:5;59478:4;59471:19;59526:2;59521;59515:4;59511:13;59504:25;59565:2;59560;59554:4;59550:13;59543:25;59604:2;59599;59593:4;59589:13;59582:25;59662:2;59656:4;59651:3;59645:4;59642:1;59639;59633:4;59628:37;59621:44;;59772:4;59766:11;59806:3;;;;-1:-1:-1;58821:1003:0;;-1:-1:-1;;;;;;;58821:1003:0:o;48065:375::-;48126:26;48165:19;:17;:19::i;:::-;48195:24;;:::i;:::-;48230:22;48242:3;48247:4;48230:11;:22::i;:::-;48263:16;:3;:14;:16::i;:::-;48295:6;48290:90;48311:4;:11;48307:1;:15;48290:90;;;48344:24;48360:4;48365:1;48360:7;;;;;;;;;;;;;;48344:3;;:24;:15;:24;:::i;:::-;48324:3;;48290:90;;;;48390:17;:3;:15;:17::i;:::-;48425:3;:7;48418:14;48065:375;-1:-1:-1;;;48065:375:0:o;61556:175::-;61652:4;61646:11;61707:4;61700:5;61696:16;61686:8;61680:4;61671:42;61619:105;:::o;6690:446::-;6781:9;6816:2;6781:9;6805:13;:18;6801:83;;6869:2;6858:8;:13;6852:2;:20;6840:32;6801:83;6894:13;;;:24;;;7008:4;7002:11;7027:17;;;;7070:1;7058:14;;7099:18;;;7093:4;7086:32;-1:-1:-1;6976:153:0:o;13088:130::-;13160:50;13187:4;11195:1;13160:26;:50::i;12693:181::-;12787:49;12798:4;11145:1;12822:6;:13;12787:10;:49::i;:::-;12847:19;:4;12859:6;12847:19;:11;:19;:::i;13360:138::-;13433:57;13460:4;11360:1;12116:147;12217:38;:4;12251:2;12236:11;12246:1;12236:11;;;;12235:18;12217:38;:11;:38;:::i;11370:738::-;11482:2;11472:6;:12;11468:633;;11501:42;:4;11519:22;11530:1;11520:11;;;11519:22;;;11501:42;:11;:42;:::i;:::-;11468:633;;;11575:4;11565:6;:14;11561:540;;11596:38;:4;11630:2;11615:11;11625:1;11615:11;;;;11614:18;11596:38;:11;:38;:::i;:::-;11649:25;:4;11664:6;11672:1;11649:25;:14;:25;:::i;11561:540::-;11706:6;11696;:16;11692:409;;11729:38;:4;11763:2;11748:11;11758:1;11748:11;;;;11747:18;11729:38;:11;:38;:::i;:::-;11782:25;:4;11797:6;11805:1;11782:25;:14;:25;:::i;11692:409::-;11839:10;11829:6;:20;11825:276;;11866:38;:4;11900:2;11885:11;11895:1;11885:11;;;;11884:18;11866:38;:11;:38;:::i;:::-;11919:25;:4;11934:6;11942:1;11919:25;:14;:25;:::i;11825:276::-;11976:18;11966:6;:28;11962:139;;12011:38;:4;12045:2;12030:11;12040:1;12030:11;;;;12029:18;12011:38;:11;:38;:::i;:::-;12064:25;:4;12079:6;12087:1;12064:25;:14;:25;:::i;:::-;;11370:738;;;:::o;7776:1241::-;7855:21;;:::i;:::-;7926:4;:13;;;7908:4;:8;:15;7893:5;:12;:30;:46;7889:129;;;7956:50;7963:4;7969:32;7973:4;:13;;;7988:5;:12;7969:3;:32::i;:::-;8004:1;7969:36;7956:6;:50::i;:::-;8028:9;8048:8;8067;8078:5;:12;8067:23;;8145:4;8139:11;8221:6;8215:13;8309:2;8300:6;8292;8288:19;8284:28;8276:36;;8433:5;8427:12;8415:25;8400:41;;8497:2;8486:14;;;-1:-1:-1;8521:212:0;8534:2;8527:3;:9;8521:212;;8653:3;8647:10;8634:24;;8695:2;8687:10;;;;8712:9;;;;;-1:-1:-1;;8538:9:0;8521:212;;;-1:-1:-1;;8763:2:0;:8;;;8755:3;:17;:21;8866:9;;8860:3;8854:10;8850:26;8923:4;8916;8910:11;8906:22;8955:21;8942:35;;;-1:-1:-1;9005:4:0;;7776:1241;-1:-1:-1;;;;7776:1241:0:o;9311:586::-;9411:4;:13;;;9389:4;:8;:15;9407:1;9389:19;:35;9385:99;;;9441:31;9448:4;9454;:13;;;9470:1;9454:17;9441:6;:31::i;:::-;9538:4;9532:11;9614:6;9608:13;9706:2;9697:6;9689;9685:19;9681:28;9805:5;9799:4;9791:20;-1:-1:-1;9852:1:0;9840:14;9825:30;;-1:-1:-1;;9503:387:0:o;10191:748::-;10276:21;;:::i;:::-;10339:4;:13;;;10321:4;:8;:15;10314:4;:22;:38;10310:113;;;10369:42;10376:4;10382:24;10386:4;:13;;;10401:4;10382:3;:24::i;10369:42::-;-1:-1:-1;;10445:3:0;:11;;;:15;10515:4;10509:11;10591:6;10585:13;10683:4;10674:6;10666;10662:19;10658:30;10821:5;10813:4;10809:9;10802:4;10796:11;10792:27;10789:38;10776:52;;10857:17;;;10842:33;;;-1:-1:-1;10927:4:0;;10191:748;-1:-1:-1;;10191:748:0:o;7329:151::-;7382:9;7413:2;7408;:7;7404:49;;;-1:-1:-1;7439:2:0;7432:9;;7404:49;-1:-1:-1;7470:2:0;7329:151;-1:-1:-1;7329:151:0:o;7144:177::-;7220:19;7242:4;:8;7220:30;;7261:21;7266:4;7272:9;7261:4;:21::i;:::-;7293:20;7300:4;7306:6;7293;:20::i;89331:16818::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;89331:16818:0;;;-1:-1:-1;89331:16818:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;

Swarm Source

bzzr://d480923c38af04b0bbca7867c3e8f6efa6a6fa28c9cff4b4c1874687326ed236
Block Transaction Difficulty Gas Used Reward
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.