ETH Price: $3,649.01 (+1.94%)

Contract

0xec1a297aDF79b5128540cEf25A6e4DC6CD0F758c
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PublicLock

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-04-01
*/

// File: contracts/interfaces/IPublicLock.sol

pragma solidity 0.5.17;

/**
* @title The PublicLock Interface
* @author Nick Furfaro (unlock-protocol.com)
 */


contract IPublicLock
{

// See indentationissue description here:
// https://github.com/duaraghav8/Ethlint/issues/268
// solium-disable indentation

  /// Functions

  function initialize(
    address _lockCreator,
    uint _expirationDuration,
    address _tokenAddress,
    uint _keyPrice,
    uint _maxNumberOfKeys,
    string calldata _lockName
  ) external;

  /**
   * @notice Allow the contract to accept tips in ETH sent directly to the contract.
   * @dev This is okay to use even if the lock is priced in ERC-20 tokens
   */
  function() external payable;

  /**
   * @dev Never used directly
   */
  function initialize() external;

  /**
  * @notice The version number of the current implementation on this network.
  * @return The current version number.
  */
  function publicLockVersion() public pure returns (uint);

  /**
  * @notice Gets the current balance of the account provided.
  * @param _tokenAddress The token type to retrieve the balance of.
  * @param _account The account to get the balance of.
  * @return The number of tokens of the given type for the given address, possibly 0.
  */
  function getBalance(
    address _tokenAddress,
    address _account
  ) external view
    returns (uint);

  /**
  * @notice Used to disable lock before migrating keys and/or destroying contract.
  * @dev Throws if called by other than a lock manager.
  * @dev Throws if lock contract has already been disabled.
  */
  function disableLock() external;

  /**
   * @dev Called by a lock manager or beneficiary to withdraw all funds from the lock and send them to the `beneficiary`.
   * @dev Throws if called by other than a lock manager or beneficiary
   * @param _tokenAddress specifies the token address to withdraw or 0 for ETH. This is usually
   * the same as `tokenAddress` in MixinFunds.
   * @param _amount specifies the max amount to withdraw, which may be reduced when
   * considering the available balance. Set to 0 or MAX_UINT to withdraw everything.
   *  -- however be wary of draining funds as it breaks the `cancelAndRefund` and `expireAndRefundFor`
   * use cases.
   */
  function withdraw(
    address _tokenAddress,
    uint _amount
  ) external;

  /**
   * A function which lets a Lock manager of the lock to change the price for future purchases.
   * @dev Throws if called by other than a Lock manager
   * @dev Throws if lock has been disabled
   * @dev Throws if _tokenAddress is not a valid token
   * @param _keyPrice The new price to set for keys
   * @param _tokenAddress The address of the erc20 token to use for pricing the keys,
   * or 0 to use ETH
   */
  function updateKeyPricing( uint _keyPrice, address _tokenAddress ) external;

  /**
   * A function which lets a Lock manager update the beneficiary account,
   * which receives funds on withdrawal.
   * @dev Throws if called by other than a Lock manager or beneficiary
   * @dev Throws if _beneficiary is address(0)
   * @param _beneficiary The new address to set as the beneficiary
   */
  function updateBeneficiary( address _beneficiary ) external;

    /**
   * Checks if the user has a non-expired key.
   * @param _user The address of the key owner
   */
  function getHasValidKey(
    address _user
  ) external view returns (bool);

  /**
   * @notice Find the tokenId for a given user
   * @return The tokenId of the NFT, else returns 0
   * @param _account The address of the key owner
  */
  function getTokenIdFor(
    address _account
  ) external view returns (uint);

  /**
  * A function which returns a subset of the keys for this Lock as an array
  * @param _page the page of key owners requested when faceted by page size
  * @param _pageSize the number of Key Owners requested per page
  * @dev Throws if there are no key owners yet
  */
  function getOwnersByPage(
    uint _page,
    uint _pageSize
  ) external view returns (address[] memory);

  /**
   * Checks if the given address owns the given tokenId.
   * @param _tokenId The tokenId of the key to check
   * @param _keyOwner The potential key owners address
   */
  function isKeyOwner(
    uint _tokenId,
    address _keyOwner
  ) external view returns (bool);

  /**
  * @dev Returns the key's ExpirationTimestamp field for a given owner.
  * @param _keyOwner address of the user for whom we search the key
  * @dev Returns 0 if the owner has never owned a key for this lock
  */
  function keyExpirationTimestampFor(
    address _keyOwner
  ) external view returns (uint timestamp);

  /**
   * Public function which returns the total number of unique owners (both expired
   * and valid).  This may be larger than totalSupply.
   */
  function numberOfOwners() external view returns (uint);

  /**
   * Allows a Lock manager to assign a descriptive name for this Lock.
   * @param _lockName The new name for the lock
   * @dev Throws if called by other than a Lock manager
   */
  function updateLockName(
    string calldata _lockName
  ) external;

  /**
   * Allows a Lock manager to assign a Symbol for this Lock.
   * @param _lockSymbol The new Symbol for the lock
   * @dev Throws if called by other than a Lock manager
   */
  function updateLockSymbol(
    string calldata _lockSymbol
  ) external;

  /**
    * @dev Gets the token symbol
    * @return string representing the token symbol
    */
  function symbol()
    external view
    returns(string memory);

    /**
   * Allows a Lock manager to update the baseTokenURI for this Lock.
   * @dev Throws if called by other than a Lock manager
   * @param _baseTokenURI String representing the base of the URI for this lock.
   */
  function setBaseTokenURI(
    string calldata _baseTokenURI
  ) external;

  /**  @notice A distinct Uniform Resource Identifier (URI) for a given asset.
   * @dev Throws if `_tokenId` is not a valid NFT. URIs are defined in RFC
   *  3986. The URI may point to a JSON file that conforms to the "ERC721
   *  Metadata JSON Schema".
   * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
   * @param _tokenId The tokenID we're inquiring about
   * @return String representing the URI for the requested token
   */
  function tokenURI(
    uint256 _tokenId
  ) external view returns(string memory);

  /**
   * @notice Allows a Lock manager to add or remove an event hook
   */
  function setEventHooks(
    address _onKeyPurchaseHook,
    address _onKeyCancelHook
  ) external;

  /**
   * Allows a Lock manager to give a collection of users a key with no charge.
   * Each key may be assigned a different expiration date.
   * @dev Throws if called by other than a Lock manager
   * @param _recipients An array of receiving addresses
   * @param _expirationTimestamps An array of expiration Timestamps for the keys being granted
   */
  function grantKeys(
    address[] calldata _recipients,
    uint[] calldata _expirationTimestamps,
    address[] calldata _keyManagers
  ) external;

  /**
  * @dev Purchase function
  * @param _value the number of tokens to pay for this purchase >= the current keyPrice - any applicable discount
  * (_value is ignored when using ETH)
  * @param _recipient address of the recipient of the purchased key
  * @param _referrer address of the user making the referral
  * @param _data arbitrary data populated by the front-end which initiated the sale
  * @dev Throws if lock is disabled. Throws if lock is sold-out. Throws if _recipient == address(0).
  * @dev Setting _value to keyPrice exactly doubles as a security feature. That way if a Lock manager increases the
  * price while my transaction is pending I can't be charged more than I expected (only applicable to ERC-20 when more
  * than keyPrice is approved for spending).
  */
  function purchase(
    uint256 _value,
    address _recipient,
    address _referrer,
    bytes calldata _data
  ) external payable;

  /**
   * @notice returns the minimum price paid for a purchase with these params.
   * @dev this considers any discount from Unlock or the OnKeyPurchase hook.
   */
  function purchasePriceFor(
    address _recipient,
    address _referrer,
    bytes calldata _data
  ) external view
    returns (uint);

  /**
   * Allow a Lock manager to change the transfer fee.
   * @dev Throws if called by other than a Lock manager
   * @param _transferFeeBasisPoints The new transfer fee in basis-points(bps).
   * Ex: 200 bps = 2%
   */
  function updateTransferFee(
    uint _transferFeeBasisPoints
  ) external;

  /**
   * Determines how much of a fee a key owner would need to pay in order to
   * transfer the key to another account.  This is pro-rated so the fee goes down
   * overtime.
   * @dev Throws if _keyOwner does not have a valid key
   * @param _keyOwner The owner of the key check the transfer fee for.
   * @param _time The amount of time to calculate the fee for.
   * @return The transfer fee in seconds.
   */
  function getTransferFee(
    address _keyOwner,
    uint _time
  ) external view returns (uint);

  /**
   * @dev Invoked by a Lock manager to expire the user's key and perform a refund and cancellation of the key
   * @param _keyOwner The key owner to whom we wish to send a refund to
   * @param amount The amount to refund the key-owner
   * @dev Throws if called by other than a Lock manager
   * @dev Throws if _keyOwner does not have a valid key
   */
  function expireAndRefundFor(
    address _keyOwner,
    uint amount
  ) external;

   /**
   * @dev allows the key manager to expire a given tokenId
   * and send a refund to the keyOwner based on the amount of time remaining.
   * @param _tokenId The id of the key to cancel.
   */
  function cancelAndRefund(uint _tokenId) external;

  /**
   * @dev Cancels a key managed by a different user and sends the funds to the keyOwner.
   * @param _keyManager the key managed by this user will be canceled
   * @param _v _r _s getCancelAndRefundApprovalHash signed by the _keyManager
   * @param _tokenId The key to cancel
   */
  function cancelAndRefundFor(
    address _keyManager,
    uint8 _v,
    bytes32 _r,
    bytes32 _s,
    uint _tokenId
  ) external;

  /**
   * @notice Sets the minimum nonce for a valid off-chain approval message from the
   * senders account.
   * @dev This can be used to invalidate a previously signed message.
   */
  function invalidateOffchainApproval(
    uint _nextAvailableNonce
  ) external;

  /**
   * Allow a Lock manager to change the refund penalty.
   * @dev Throws if called by other than a Lock manager
   * @param _freeTrialLength The new duration of free trials for this lock
   * @param _refundPenaltyBasisPoints The new refund penaly in basis-points(bps)
   */
  function updateRefundPenalty(
    uint _freeTrialLength,
    uint _refundPenaltyBasisPoints
  ) external;

  /**
   * @dev Determines how much of a refund a key owner would receive if they issued
   * @param _keyOwner The key owner to get the refund value for.
   * a cancelAndRefund block.timestamp.
   * Note that due to the time required to mine a tx, the actual refund amount will be lower
   * than what the user reads from this call.
   */
  function getCancelAndRefundValueFor(
    address _keyOwner
  ) external view returns (uint refund);

  function keyManagerToNonce(address ) external view returns (uint256 );

  /**
   * @notice returns the hash to sign in order to allow another user to cancel on your behalf.
   * @dev this can be computed in JS instead of read from the contract.
   * @param _keyManager The key manager's address (also the message signer)
   * @param _txSender The address cancelling cancel on behalf of the keyOwner
   * @return approvalHash The hash to sign
   */
  function getCancelAndRefundApprovalHash(
    address _keyManager,
    address _txSender
  ) external view returns (bytes32 approvalHash);

  function addKeyGranter(address account) external;

  function addLockManager(address account) external;

  function isKeyGranter(address account) external view returns (bool);

  function isLockManager(address account) external view returns (bool);

  function onKeyPurchaseHook() external view returns(address);

  function onKeyCancelHook() external view returns(address);

  function revokeKeyGranter(address _granter) external;

  function renounceLockManager() external;

  ///===================================================================
  /// Auto-generated getter functions from public state variables

  function beneficiary() external view returns (address );

  function expirationDuration() external view returns (uint256 );

  function freeTrialLength() external view returns (uint256 );

  function isAlive() external view returns (bool );

  function keyPrice() external view returns (uint256 );

  function maxNumberOfKeys() external view returns (uint256 );

  function owners(uint256 ) external view returns (address );

  function refundPenaltyBasisPoints() external view returns (uint256 );

  function tokenAddress() external view returns (address );

  function transferFeeBasisPoints() external view returns (uint256 );

  function unlockProtocol() external view returns (address );

  function keyManagerOf(uint) external view returns (address );

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

  /**
  * @notice Allows the key owner to safely share their key (parent key) by
  * transferring a portion of the remaining time to a new key (child key).
  * @dev Throws if key is not valid.
  * @dev Throws if `_to` is the zero address
  * @param _to The recipient of the shared key
  * @param _tokenId the key to share
  * @param _timeShared The amount of time shared
  * checks if `_to` is a smart contract (code size > 0). If so, it calls
  * `onERC721Received` on `_to` and throws if the return value is not
  * `bytes4(keccak256('onERC721Received(address,address,uint,bytes)'))`.
  * @dev Emit Transfer event
  */
  function shareKey(
    address _to,
    uint _tokenId,
    uint _timeShared
  ) external;

  /**
  * @notice Update transfer and cancel rights for a given key
  * @param _tokenId The id of the key to assign rights for
  * @param _keyManager The address to assign the rights to for the given key
  */
  function setKeyManagerOf(
    uint _tokenId,
    address _keyManager
  ) external;

  /// @notice A descriptive name for a collection of NFTs in this contract
  function name() external view returns (string memory _name);
  ///===================================================================

  /// From ERC165.sol
  function supportsInterface(bytes4 interfaceId) external view returns (bool );
  ///===================================================================

  /// From ERC-721
  /**
     * @dev Returns the number of NFTs in `owner`'s account.
     */
    function balanceOf(address _owner) public view returns (uint256 balance);

    /**
     * @dev Returns the owner of the NFT specified by `tokenId`.
     */
    function ownerOf(uint256 tokenId) public view returns (address _owner);

    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     *
     *
     * Requirements:
     * - `from`, `to` cannot be zero.
     * - `tokenId` must be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this
     * NFT by either {approve} or {setApprovalForAll}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public;
    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     * Requirements:
     * - If the caller is not `from`, it must be approved to move this NFT by
     * either {approve} or {setApprovalForAll}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public;
    function approve(address to, uint256 tokenId) public;

    /**
    * @notice Get the approved address for a single NFT
    * @dev Throws if `_tokenId` is not a valid NFT.
    * @param _tokenId The NFT to find the approved address for
    * @return The approved address for this NFT, or the zero address if there is none
    */
    function getApproved(uint256 _tokenId) public view returns (address operator);

    function setApprovalForAll(address operator, bool _approved) public;
    function isApprovedForAll(address _owner, address operator) public view returns (bool);

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public;

    function totalSupply() public view returns (uint256);
    function tokenOfOwnerByIndex(address _owner, uint256 index) public view returns (uint256 tokenId);

    function tokenByIndex(uint256 index) public view returns (uint256);
}

// File: @openzeppelin/upgrades/contracts/Initializable.sol

pragma solidity >=0.4.24 <0.7.0;


/**
 * @title Initializable
 *
 * @dev Helper contract to support initializer functions. To use it, replace
 * the constructor with a function that has the `initializer` modifier.
 * WARNING: Unlike constructors, initializer functions must be manually
 * invoked. This applies both to deploying an Initializable contract, as well
 * as extending an Initializable contract via inheritance.
 * WARNING: When used with inheritance, manual care must be taken to not invoke
 * a parent initializer twice, or ensure that all initializers are idempotent,
 * because this is not dealt with automatically as with constructors.
 */
contract Initializable {

  /**
   * @dev Indicates that the contract has been initialized.
   */
  bool private initialized;

  /**
   * @dev Indicates that the contract is in the process of being initialized.
   */
  bool private initializing;

  /**
   * @dev Modifier to use in the initializer function of a contract.
   */
  modifier initializer() {
    require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized");

    bool isTopLevelCall = !initializing;
    if (isTopLevelCall) {
      initializing = true;
      initialized = true;
    }

    _;

    if (isTopLevelCall) {
      initializing = false;
    }
  }

  /// @dev Returns true if and only if the function is running in the constructor
  function isConstructor() private view returns (bool) {
    // extcodesize checks the size of the code stored in an address, and
    // address returns the current address. Since the code is still not
    // deployed when running a constructor, any checks on its code size will
    // yield zero, making it an effective way to detect if a contract is
    // under construction or not.
    address self = address(this);
    uint256 cs;
    assembly { cs := extcodesize(self) }
    return cs == 0;
  }

  // Reserved storage space to allow for layout changes in the future.
  uint256[50] private ______gap;
}

// File: @openzeppelin/contracts-ethereum-package/contracts/introspection/IERC165.sol

pragma solidity ^0.5.0;

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

// File: @openzeppelin/contracts-ethereum-package/contracts/introspection/ERC165.sol

pragma solidity ^0.5.0;



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

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

    function initialize() public initializer {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

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

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

    uint256[50] private ______gap;
}

// File: @openzeppelin/contracts-ethereum-package/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

// File: @openzeppelin/contracts-ethereum-package/contracts/utils/Address.sol

pragma solidity ^0.5.5;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * This test is non-exhaustive, and there may be false-negatives: during the
     * execution of a contract's constructor, its address will be reported as
     * not containing a contract.
     *
     * IMPORTANT: It is unsafe to assume that an address for which this
     * function returns false is an externally-owned account (EOA) and not a
     * contract.
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != 0x0 && codehash != accountHash);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

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

        // solhint-disable-next-line avoid-call-value
        (bool success, ) = recipient.call.value(amount)("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

// File: @openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol

pragma solidity ^0.5.0;

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

        return c;
    }

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

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

// File: @openzeppelin/contracts-ethereum-package/contracts/token/ERC20/SafeERC20.sol

pragma solidity ^0.5.0;




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

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

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

    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

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

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

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: contracts/mixins/MixinFunds.sol

pragma solidity 0.5.17;





/**
 * @title An implementation of the money related functions.
 * @author HardlyDifficult (unlock-protocol.com)
 */
contract MixinFunds
{
  using Address for address payable;
  using SafeERC20 for IERC20;

  /**
   * The token-type that this Lock is priced in.  If 0, then use ETH, else this is
   * a ERC20 token address.
   */
  address public tokenAddress;

  function _initializeMixinFunds(
    address _tokenAddress
  ) internal
  {
    tokenAddress = _tokenAddress;
    require(
      _tokenAddress == address(0) || IERC20(_tokenAddress).totalSupply() > 0,
      'INVALID_TOKEN'
    );
  }

  /**
   * Gets the current balance of the account provided.
   */
  function getBalance(
    address _tokenAddress,
    address _account
  ) public view
    returns (uint)
  {
    if(_tokenAddress == address(0)) {
      return _account.balance;
    } else {
      return IERC20(_tokenAddress).balanceOf(_account);
    }
  }

  /**
   * Transfers funds from the contract to the account provided.
   *
   * Security: be wary of re-entrancy when calling this function.
   */
  function _transfer(
    address _tokenAddress,
    address _to,
    uint _amount
  ) internal
  {
    if(_amount > 0) {
      if(_tokenAddress == address(0)) {
        // https://diligence.consensys.net/blog/2019/09/stop-using-soliditys-transfer-now/
        address(uint160(_to)).sendValue(_amount);
      } else {
        IERC20 token = IERC20(_tokenAddress);
        token.safeTransfer(_to, _amount);
      }
    }
  }
}

// File: @openzeppelin/contracts-ethereum-package/contracts/access/Roles.sol

pragma solidity ^0.5.0;

/**
 * @title Roles
 * @dev Library for managing addresses assigned to a Role.
 */
library Roles {
    struct Role {
        mapping (address => bool) bearer;
    }

    /**
     * @dev Give an account access to this role.
     */
    function add(Role storage role, address account) internal {
        require(!has(role, account), "Roles: account already has role");
        role.bearer[account] = true;
    }

    /**
     * @dev Remove an account's access to this role.
     */
    function remove(Role storage role, address account) internal {
        require(has(role, account), "Roles: account does not have role");
        role.bearer[account] = false;
    }

    /**
     * @dev Check if an account has this role.
     * @return bool
     */
    function has(Role storage role, address account) internal view returns (bool) {
        require(account != address(0), "Roles: account is the zero address");
        return role.bearer[account];
    }
}

// File: contracts/mixins/MixinLockManagerRole.sol

pragma solidity 0.5.17;

// This contract mostly follows the pattern established by openzeppelin in
// openzeppelin/contracts-ethereum-package/contracts/access/roles



contract MixinLockManagerRole {
  using Roles for Roles.Role;

  event LockManagerAdded(address indexed account);
  event LockManagerRemoved(address indexed account);

  Roles.Role private lockManagers;

  function _initializeMixinLockManagerRole(address sender) internal {
    if (!isLockManager(sender)) {
      lockManagers.add(sender);
    }
  }

  modifier onlyLockManager() {
    require(isLockManager(msg.sender), 'MixinLockManager: caller does not have the LockManager role');
    _;
  }

  function isLockManager(address account) public view returns (bool) {
    return lockManagers.has(account);
  }

  function addLockManager(address account) public onlyLockManager {
    lockManagers.add(account);
    emit LockManagerAdded(account);
  }

  function renounceLockManager() public {
    lockManagers.remove(msg.sender);
    emit LockManagerRemoved(msg.sender);
  }
}

// File: contracts/mixins/MixinDisable.sol

pragma solidity 0.5.17;



/**
 * @title Mixin allowing the Lock owner to disable a Lock (preventing new purchases)
 * and then destroy it.
 * @author HardlyDifficult
 * @dev `Mixins` are a design pattern seen in the 0x contracts.  It simply
 * separates logically groupings of code to ease readability.
 */
contract MixinDisable is
  MixinLockManagerRole,
  MixinFunds
{
  // Used to disable payable functions when deprecating an old lock
  bool public isAlive;

  event Disable();

  function _initializeMixinDisable(
  ) internal
  {
    isAlive = true;
  }

  // Only allow usage when contract is Alive
  modifier onlyIfAlive() {
    require(isAlive, 'LOCK_DEPRECATED');
    _;
  }

  /**
  * @dev Used to disable lock before migrating keys and/or destroying contract
   */
  function disableLock()
    external
    onlyLockManager
    onlyIfAlive
  {
    emit Disable();
    isAlive = false;
  }
}

// File: @openzeppelin/contracts-ethereum-package/contracts/token/ERC721/IERC721.sol

pragma solidity ^0.5.0;



/**
 * @dev Required interface of an ERC721 compliant contract.
 */
contract IERC721 is Initializable, IERC165 {
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

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

    /**
     * @dev Returns the owner of the NFT specified by `tokenId`.
     */
    function ownerOf(uint256 tokenId) public view returns (address owner);

    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     *
     *
     * Requirements:
     * - `from`, `to` cannot be zero.
     * - `tokenId` must be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this
     * NFT by either {approve} or {setApprovalForAll}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public;
    /**
     * @dev Transfers a specific NFT (`tokenId`) from one account (`from`) to
     * another (`to`).
     *
     * Requirements:
     * - If the caller is not `from`, it must be approved to move this NFT by
     * either {approve} or {setApprovalForAll}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public;
    function approve(address to, uint256 tokenId) public;
    function getApproved(uint256 tokenId) public view returns (address operator);

    function setApprovalForAll(address operator, bool _approved) public;
    function isApprovedForAll(address owner, address operator) public view returns (bool);


    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public;
}

// File: @openzeppelin/contracts-ethereum-package/contracts/token/ERC721/IERC721Enumerable.sol

pragma solidity ^0.5.0;



/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
contract IERC721Enumerable is Initializable, IERC721 {
    function totalSupply() public view returns (uint256);
    function tokenOfOwnerByIndex(address owner, uint256 index) public view returns (uint256 tokenId);

    function tokenByIndex(uint256 index) public view returns (uint256);
}

// File: contracts/interfaces/IUnlock.sol

pragma solidity 0.5.17;


/**
 * @title The Unlock Interface
 * @author Nick Furfaro (unlock-protocol.com)
**/

interface IUnlock
{
  // Use initialize instead of a constructor to support proxies(for upgradeability via zos).
  function initialize(address _unlockOwner) external;

  /**
  * @dev Create lock
  * This deploys a lock for a creator. It also keeps track of the deployed lock.
  * @param _tokenAddress set to the ERC20 token address, or 0 for ETH.
  * @param _salt an identifier for the Lock, which is unique for the user.
  * This may be implemented as a sequence ID or with RNG. It's used with `create2`
  * to know the lock's address before the transaction is mined.
  */
  function createLock(
    uint _expirationDuration,
    address _tokenAddress,
    uint _keyPrice,
    uint _maxNumberOfKeys,
    string calldata _lockName,
    bytes12 _salt
  ) external;

    /**
   * This function keeps track of the added GDP, as well as grants of discount tokens
   * to the referrer, if applicable.
   * The number of discount tokens granted is based on the value of the referal,
   * the current growth rate and the lock's discount token distribution rate
   * This function is invoked by a previously deployed lock only.
   */
  function recordKeyPurchase(
    uint _value,
    address _referrer // solhint-disable-line no-unused-vars
  )
    external;

    /**
   * This function will keep track of consumed discounts by a given user.
   * It will also grant discount tokens to the creator who is granting the discount based on the
   * amount of discount and compensation rate.
   * This function is invoked by a previously deployed lock only.
   */
  function recordConsumedDiscount(
    uint _discount,
    uint _tokens // solhint-disable-line no-unused-vars
  )
    external;

    /**
   * This function returns the discount available for a user, when purchasing a
   * a key from a lock.
   * This does not modify the state. It returns both the discount and the number of tokens
   * consumed to grant that discount.
   */
  function computeAvailableDiscountFor(
    address _purchaser, // solhint-disable-line no-unused-vars
    uint _keyPrice // solhint-disable-line no-unused-vars
  )
    external
    view
    returns(uint discount, uint tokens);

  // Function to read the globalTokenURI field.
  function globalBaseTokenURI()
    external
    view
    returns(string memory);

  /**
   * @dev Redundant with globalBaseTokenURI() for backwards compatibility with v3 & v4 locks.
   */
  function getGlobalBaseTokenURI()
    external
    view
    returns (string memory);

  // Function to read the globalTokenSymbol field.
  function globalTokenSymbol()
    external
    view
    returns(string memory);

  /**
   * @dev Redundant with globalTokenSymbol() for backwards compatibility with v3 & v4 locks.
   */
  function getGlobalTokenSymbol()
    external
    view
    returns (string memory);

  /** Function for the owner to update configuration variables.
   *  Should throw if called by other than owner.
   */
  function configUnlock(
    string calldata _symbol,
    string calldata _URI
  )
    external;

  /**
   * @notice Upgrade the PublicLock template used for future calls to `createLock`.
   * @dev This will initialize the template and revokeOwnership.
   */
  function setLockTemplate(
    address payable _publicLockAddress
  ) external;

  // Allows the owner to change the value tracking variables as needed.
  function resetTrackedValue(
    uint _grossNetworkProduct,
    uint _totalDiscountGranted
  ) external;

  function grossNetworkProduct() external view returns(uint);

  function totalDiscountGranted() external view returns(uint);

  function locks(address) external view returns(bool deployed, uint totalSales, uint yieldedDiscountTokens);

  // The address of the public lock template, used when `createLock` is called
  function publicLockAddress() external view returns(address);

  // Map token address to exchange contract address if the token is supported
  // Used for GDP calculations
  function uniswapExchanges(address) external view returns(address);

  // The version number of the current Unlock implementation on this network
  function unlockVersion() external pure returns(uint16);

  // allows the owner to set the exchange address to use for value conversions
  // setting the _exchangeAddress to address(0) removes support for the token
  function setExchange(
    address _tokenAddress,
    address _exchangeAddress
  ) external;

  /**
   * @dev Returns true if the caller is the current owner.
   */
  function isOwner() external view returns(bool);

  /**
   * @dev Returns the address of the current owner.
   */
  function owner() external view returns(address);

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

  /**
   * @dev Transfers ownership of the contract to a new account (`newOwner`).
   * Can only be called by the current owner.
   */
  function transferOwnership(address newOwner) external;
}

// File: contracts/interfaces/hooks/ILockKeyCancelHook.sol

pragma solidity 0.5.17;


/**
 * @notice Functions to be implemented by a keyCancelHook.
 * @dev Lock hooks are configured by calling `setEventHooks` on the lock.
 */
interface ILockKeyCancelHook
{
  /**
   * @notice If the lock owner has registered an implementer
   * then this hook is called with every key cancel.
   * @param operator the msg.sender issuing the cancel
   * @param to the account which had the key canceled
   * @param refund the amount sent to the `to` account (ETH or a ERC-20 token)
   */
  function onKeyCancel(
    address operator,
    address to,
    uint256 refund
  ) external;
}

// File: contracts/interfaces/hooks/ILockKeyPurchaseHook.sol

pragma solidity 0.5.17;


/**
 * @notice Functions to be implemented by a keyPurchaseHook.
 * @dev Lock hooks are configured by calling `setEventHooks` on the lock.
 */
interface ILockKeyPurchaseHook
{
  /**
   * @notice Used to determine the purchase price before issueing a transaction.
   * This allows the hook to offer a discount on purchases.
   * This may revert to prevent a purchase.
   * @param from the msg.sender making the purchase
   * @param recipient the account which will be granted a key
   * @param referrer the account which referred this key sale
   * @param data arbitrary data populated by the front-end which initiated the sale
   * @return the minimum value/price required to purchase a key with these settings
   * @dev the lock's address is the `msg.sender` when this function is called via
   * the lock's `purchasePriceFor` function
   */
  function keyPurchasePrice(
    address from,
    address recipient,
    address referrer,
    bytes calldata data
  ) external view
    returns (uint minKeyPrice);

  /**
   * @notice If the lock owner has registered an implementer then this hook
   * is called with every key sold.
   * @param from the msg.sender making the purchase
   * @param recipient the account which will be granted a key
   * @param referrer the account which referred this key sale
   * @param data arbitrary data populated by the front-end which initiated the sale
   * @param minKeyPrice the price including any discount granted from calling this
   * hook's `keyPurchasePrice` function
   * @param pricePaid the value/pricePaid included with the purchase transaction
   * @dev the lock's address is the `msg.sender` when this function is called
   */
  function onKeyPurchase(
    address from,
    address recipient,
    address referrer,
    bytes calldata data,
    uint minKeyPrice,
    uint pricePaid
  ) external;
}

// File: contracts/mixins/MixinLockCore.sol

pragma solidity 0.5.17;










/**
 * @title Mixin for core lock data and functions.
 * @author HardlyDifficult
 * @dev `Mixins` are a design pattern seen in the 0x contracts.  It simply
 * separates logically groupings of code to ease readability.
 */
contract MixinLockCore is
  IERC721Enumerable,
  MixinLockManagerRole,
  MixinFunds,
  MixinDisable
{
  using Address for address;

  event Withdrawal(
    address indexed sender,
    address indexed tokenAddress,
    address indexed beneficiary,
    uint amount
  );

  event PricingChanged(
    uint oldKeyPrice,
    uint keyPrice,
    address oldTokenAddress,
    address tokenAddress
  );

  // Unlock Protocol address
  // TODO: should we make that private/internal?
  IUnlock public unlockProtocol;

  // Duration in seconds for which the keys are valid, after creation
  // should we take a smaller type use less gas?
  // TODO: add support for a timestamp instead of duration
  uint public expirationDuration;

  // price in wei of the next key
  // TODO: allow support for a keyPriceCalculator which could set prices dynamically
  uint public keyPrice;

  // Max number of keys sold if the keyReleaseMechanism is public
  uint public maxNumberOfKeys;

  // A count of how many new key purchases there have been
  uint internal _totalSupply;

  // The account which will receive funds on withdrawal
  address public beneficiary;

  // The denominator component for values specified in basis points.
  uint internal constant BASIS_POINTS_DEN = 10000;

  ILockKeyPurchaseHook public onKeyPurchaseHook;
  ILockKeyCancelHook public onKeyCancelHook;

  // Ensure that the Lock has not sold all of its keys.
  modifier notSoldOut() {
    require(maxNumberOfKeys > _totalSupply, 'LOCK_SOLD_OUT');
    _;
  }

  modifier onlyLockManagerOrBeneficiary()
  {
    require(
      isLockManager(msg.sender) || msg.sender == beneficiary,
      'ONLY_LOCK_MANAGER_OR_BENEFICIARY'
    );
    _;
  }

  function _initializeMixinLockCore(
    address _beneficiary,
    uint _expirationDuration,
    uint _keyPrice,
    uint _maxNumberOfKeys
  ) internal
  {
    require(_expirationDuration <= 100 * 365 * 24 * 60 * 60, 'MAX_EXPIRATION_100_YEARS');
    unlockProtocol = IUnlock(msg.sender); // Make sure we link back to Unlock's smart contract.
    beneficiary = _beneficiary;
    expirationDuration = _expirationDuration;
    keyPrice = _keyPrice;
    maxNumberOfKeys = _maxNumberOfKeys;
  }

  // The version number of the current implementation on this network
  function publicLockVersion(
  ) public pure
    returns (uint)
  {
    return 7;
  }

  /**
   * @dev Called by owner to withdraw all funds from the lock and send them to the `beneficiary`.
   * @param _tokenAddress specifies the token address to withdraw or 0 for ETH. This is usually
   * the same as `tokenAddress` in MixinFunds.
   * @param _amount specifies the max amount to withdraw, which may be reduced when
   * considering the available balance. Set to 0 or MAX_UINT to withdraw everything.
   *
   * TODO: consider allowing anybody to trigger this as long as it goes to owner anyway?
   *  -- however be wary of draining funds as it breaks the `cancelAndRefund` and `expireAndRefundFor`
   * use cases.
   */
  function withdraw(
    address _tokenAddress,
    uint _amount
  ) external
    onlyLockManagerOrBeneficiary
  {
    uint balance = getBalance(_tokenAddress, address(this));
    uint amount;
    if(_amount == 0 || _amount > balance)
    {
      require(balance > 0, 'NOT_ENOUGH_FUNDS');
      amount = balance;
    }
    else
    {
      amount = _amount;
    }

    emit Withdrawal(msg.sender, _tokenAddress, beneficiary, amount);
    // Security: re-entrancy not a risk as this is the last line of an external function
    _transfer(_tokenAddress, beneficiary, amount);
  }

  /**
   * A function which lets the owner of the lock change the pricing for future purchases.
   * This consists of 2 parts: The token address and the price in the given token.
   * In order to set the token to ETH, use 0 for the token Address.
   */
  function updateKeyPricing(
    uint _keyPrice,
    address _tokenAddress
  )
    external
    onlyLockManager
    onlyIfAlive
  {
    uint oldKeyPrice = keyPrice;
    address oldTokenAddress = tokenAddress;
    require(
      _tokenAddress == address(0) || IERC20(_tokenAddress).totalSupply() > 0,
      'INVALID_TOKEN'
    );
    keyPrice = _keyPrice;
    tokenAddress = _tokenAddress;
    emit PricingChanged(oldKeyPrice, keyPrice, oldTokenAddress, tokenAddress);
  }

  /**
   * A function which lets the owner of the lock update the beneficiary account,
   * which receives funds on withdrawal.
   */
  function updateBeneficiary(
    address _beneficiary
  ) external
  {
    require(msg.sender == beneficiary || isLockManager(msg.sender), 'ONLY_BENEFICIARY_OR_LOCKMANAGER');
    require(_beneficiary != address(0), 'INVALID_ADDRESS');
    beneficiary = _beneficiary;
  }

  /**
   * @notice Allows a lock manager to add or remove an event hook
   */
  function setEventHooks(
    address _onKeyPurchaseHook,
    address _onKeyCancelHook
  ) external
    onlyLockManager()
  {
    require(_onKeyPurchaseHook == address(0) || _onKeyPurchaseHook.isContract(), 'INVALID_ON_KEY_SOLD_HOOK');
    require(_onKeyCancelHook == address(0) || _onKeyCancelHook.isContract(), 'INVALID_ON_KEY_CANCEL_HOOK');
    onKeyPurchaseHook = ILockKeyPurchaseHook(_onKeyPurchaseHook);
    onKeyCancelHook = ILockKeyCancelHook(_onKeyCancelHook);
  }

  function totalSupply()
    public
    view returns(uint256)
  {
    return _totalSupply;
  }
}

// File: contracts/mixins/MixinKeys.sol

pragma solidity 0.5.17;




/**
 * @title Mixin for managing `Key` data, as well as the * Approval related functions needed to meet the ERC721
 * standard.
 * @author HardlyDifficult
 * @dev `Mixins` are a design pattern seen in the 0x contracts.  It simply
 * separates logically groupings of code to ease readability.
 */
contract MixinKeys is
  MixinLockCore
{
  using SafeMath for uint;

  // The struct for a key
  struct Key {
    uint tokenId;
    uint expirationTimestamp;
  }

  // Emitted when the Lock owner expires a user's Key
  event ExpireKey(uint indexed tokenId);

  // Emitted when the expiration of a key is modified
  event ExpirationChanged(
    uint indexed _tokenId,
    uint _amount,
    bool _timeAdded
  );

  event KeyManagerChanged(uint indexed _tokenId, address indexed _newManager);


  // Keys
  // Each owner can have at most exactly one key
  // TODO: could we use public here? (this could be confusing though because it getter will
  // return 0 values when missing a key)
  mapping (address => Key) internal keyByOwner;

  // Each tokenId can have at most exactly one owner at a time.
  // Returns 0 if the token does not exist
  // TODO: once we decouple tokenId from owner address (incl in js), then we can consider
  // merging this with totalSupply into an array instead.
  mapping (uint => address) internal _ownerOf;

  // Addresses of owners are also stored in an array.
  // Addresses are never removed by design to avoid abuses around referals
  address[] public owners;

  // A given key has both an owner and a manager.
  // If keyManager == address(0) then the key owner is also the manager
  // Each key can have at most 1 keyManager.
  mapping (uint => address) public keyManagerOf;

    // Keeping track of approved transfers
  // This is a mapping of addresses which have approved
  // the transfer of a key to another address where their key can be transferred
  // Note: the approver may actually NOT have a key... and there can only
  // be a single approved address
  mapping (uint => address) private approved;

    // Keeping track of approved operators for a given Key manager.
  // This approves a given operator for all keys managed by the calling "keyManager"
  // The caller may not currently be the keyManager for ANY keys.
  // These approvals are never reset/revoked automatically, unlike "approved",
  // which is reset on transfer.
  mapping (address => mapping (address => bool)) private managerToOperatorApproved;

    // Ensure that the caller is the keyManager of the key
  // or that the caller has been approved
  // for ownership of that key
  modifier onlyKeyManagerOrApproved(
    uint _tokenId
  )
  {
    require(
      _isKeyManager(_tokenId, msg.sender) ||
      _isApproved(_tokenId, msg.sender) ||
      isApprovedForAll(_ownerOf[_tokenId], msg.sender),
      'ONLY_KEY_MANAGER_OR_APPROVED'
    );
    _;
  }

  // Ensures that an owner owns or has owned a key in the past
  modifier ownsOrHasOwnedKey(
    address _keyOwner
  ) {
    require(
      keyByOwner[_keyOwner].expirationTimestamp > 0, 'HAS_NEVER_OWNED_KEY'
    );
    _;
  }

  // Ensures that an owner has a valid key
  modifier hasValidKey(
    address _user
  ) {
    require(
      getHasValidKey(_user), 'KEY_NOT_VALID'
    );
    _;
  }

  // Ensures that a key has an owner
  modifier isKey(
    uint _tokenId
  ) {
    require(
      _ownerOf[_tokenId] != address(0), 'NO_SUCH_KEY'
    );
    _;
  }

  // Ensure that the caller owns the key
  modifier onlyKeyOwner(
    uint _tokenId
  ) {
    require(
      isKeyOwner(_tokenId, msg.sender), 'ONLY_KEY_OWNER'
    );
    _;
  }

  /**
   * In the specific case of a Lock, each owner can own only at most 1 key.
   * @return The number of NFTs owned by `_keyOwner`, either 0 or 1.
  */
  function balanceOf(
    address _keyOwner
  )
    public
    view
    returns (uint)
  {
    require(_keyOwner != address(0), 'INVALID_ADDRESS');
    return getHasValidKey(_keyOwner) ? 1 : 0;
  }

  /**
   * Checks if the user has a non-expired key.
   */
  function getHasValidKey(
    address _keyOwner
  )
    public
    view
    returns (bool)
  {
    return keyByOwner[_keyOwner].expirationTimestamp > block.timestamp;
  }

  /**
   * @notice Find the tokenId for a given user
   * @return The tokenId of the NFT, else returns 0
  */
  function getTokenIdFor(
    address _account
  ) public view
    returns (uint)
  {
    return keyByOwner[_account].tokenId;
  }

 /**
  * A function which returns a subset of the keys for this Lock as an array
  * @param _page the page of key owners requested when faceted by page size
  * @param _pageSize the number of Key Owners requested per page
  */
  function getOwnersByPage(uint _page, uint _pageSize)
    public
    view
    returns (address[] memory)
  {
    require(owners.length > 0, 'NO_OUTSTANDING_KEYS');
    uint pageSize = _pageSize;
    uint _startIndex = _page * pageSize;
    uint endOfPageIndex;

    if (_startIndex + pageSize > owners.length) {
      endOfPageIndex = owners.length;
      pageSize = owners.length - _startIndex;
    } else {
      endOfPageIndex = (_startIndex + pageSize);
    }

    // new temp in-memory array to hold pageSize number of requested owners:
    address[] memory ownersByPage = new address[](pageSize);
    uint pageIndex = 0;

    // Build the requested set of owners into a new temporary array:
    for (uint i = _startIndex; i < endOfPageIndex; i++) {
      ownersByPage[pageIndex] = owners[i];
      pageIndex++;
    }

    return ownersByPage;
  }

  /**
   * Checks if the given address owns the given tokenId.
   */
  function isKeyOwner(
    uint _tokenId,
    address _keyOwner
  ) public view
    returns (bool)
  {
    return _ownerOf[_tokenId] == _keyOwner;
  }

  /**
  * @dev Returns the key's ExpirationTimestamp field for a given owner.
  * @param _keyOwner address of the user for whom we search the key
  * @dev Returns 0 if the owner has never owned a key for this lock
  */
  function keyExpirationTimestampFor(
    address _keyOwner
  ) public view
    returns (uint)
  {
    return keyByOwner[_keyOwner].expirationTimestamp;
  }

  /**
   * Public function which returns the total number of unique owners (both expired
   * and valid).  This may be larger than totalSupply.
   */
  function numberOfOwners()
    public
    view
    returns (uint)
  {
    return owners.length;
  }
  // Returns the owner of a given tokenId
  function ownerOf(
    uint _tokenId
  ) public view
    isKey(_tokenId)
    returns(address)
  {
    return _ownerOf[_tokenId];
  }

  /**
  * @notice Public function for updating transfer and cancel rights for a given key
  * @param _tokenId The id of the key to assign rights for
  * @param _keyManager The address with the manager's rights for the given key.
  * Setting _keyManager to address(0) means the keyOwner is also the keyManager
   */
  function setKeyManagerOf(
    uint _tokenId,
    address _keyManager
  ) public
    isKey(_tokenId)
  {
    require(
      _isKeyManager(_tokenId, msg.sender) ||
      isLockManager(msg.sender),
      'UNAUTHORIZED_KEY_MANAGER_UPDATE'
    );
    _setKeyManagerOf(_tokenId, _keyManager);
  }

  function _setKeyManagerOf(
    uint _tokenId,
    address _keyManager
  ) internal
  {
    if(keyManagerOf[_tokenId] != _keyManager) {
      keyManagerOf[_tokenId] = _keyManager;
      _clearApproval(_tokenId);
      emit KeyManagerChanged(_tokenId, address(0));
    }
  }

    /**
   * This approves _approved to get ownership of _tokenId.
   * Note: that since this is used for both purchase and transfer approvals
   * the approved token may not exist.
   */
  function approve(
    address _approved,
    uint _tokenId
  )
    public
    onlyIfAlive
    onlyKeyManagerOrApproved(_tokenId)
  {
    require(msg.sender != _approved, 'APPROVE_SELF');

    approved[_tokenId] = _approved;
    emit Approval(_ownerOf[_tokenId], _approved, _tokenId);
  }

    /**
   * @notice Get the approved address for a single NFT
   * @dev Throws if `_tokenId` is not a valid NFT.
   * @param _tokenId The NFT to find the approved address for
   * @return The approved address for this NFT, or the zero address if there is none
   */
  function getApproved(
    uint _tokenId
  ) public view
    isKey(_tokenId)
    returns (address)
  {
    address approvedRecipient = approved[_tokenId];
    return approvedRecipient;
  }

    /**
   * @dev Tells whether an operator is approved by a given keyManager
   * @param _owner owner address which you want to query the approval of
   * @param _operator operator address which you want to query the approval of
   * @return bool whether the given operator is approved by the given owner
   */
  function isApprovedForAll(
    address _owner,
    address _operator
  ) public view
    returns (bool)
  {
    uint tokenId = keyByOwner[_owner].tokenId;
    address keyManager = keyManagerOf[tokenId];
    if(keyManager == address(0)) {
      return managerToOperatorApproved[_owner][_operator];
    } else {
      return managerToOperatorApproved[keyManager][_operator];
    }
  }

  /**
  * Returns true if _keyManager is the manager of the key
  * identified by _tokenId
   */
  function _isKeyManager(
    uint _tokenId,
    address _keyManager
  ) internal view
    returns (bool)
  {
    if(keyManagerOf[_tokenId] == _keyManager ||
      (keyManagerOf[_tokenId] == address(0) && isKeyOwner(_tokenId, _keyManager))) {
      return true;
    } else {
      return false;
    }
  }

  /**
   * Assigns the key a new tokenId (from totalSupply) if it does not already have
   * one assigned.
   */
  function _assignNewTokenId(
    Key storage _key
  ) internal
  {
    if (_key.tokenId == 0) {
      // This is a brand new owner
      // We increment the tokenId counter
      _totalSupply++;
      // we assign the incremented `_totalSupply` as the tokenId for the new key
      _key.tokenId = _totalSupply;
    }
  }

  /**
   * Records the owner of a given tokenId
   */
  function _recordOwner(
    address _keyOwner,
    uint _tokenId
  ) internal
  {
    if (_ownerOf[_tokenId] != _keyOwner) {
      // TODO: this may include duplicate entries
      owners.push(_keyOwner);
      // We register the owner of the tokenID
      _ownerOf[_tokenId] = _keyOwner;
    }
  }

  /**
  * @notice Modify the expirationTimestamp of a key
  * by a given amount.
  * @param _tokenId The ID of the key to modify.
  * @param _deltaT The amount of time in seconds by which
  * to modify the keys expirationTimestamp
  * @param _addTime Choose whether to increase or decrease
  * expirationTimestamp (false == decrease, true == increase)
  * @dev Throws if owner does not have a valid key.
  */
  function _timeMachine(
    uint _tokenId,
    uint256 _deltaT,
    bool _addTime
  ) internal
  {
    address tokenOwner = _ownerOf[_tokenId];
    require(tokenOwner != address(0), 'NON_EXISTENT_KEY');
    Key storage key = keyByOwner[tokenOwner];
    uint formerTimestamp = key.expirationTimestamp;
    bool validKey = getHasValidKey(tokenOwner);
    if(_addTime) {
      if(validKey) {
        key.expirationTimestamp = formerTimestamp.add(_deltaT);
      } else {
        key.expirationTimestamp = block.timestamp.add(_deltaT);
      }
    } else {
      key.expirationTimestamp = formerTimestamp.sub(_deltaT);
    }
    emit ExpirationChanged(_tokenId, _deltaT, _addTime);
  }

    /**
   * @dev Sets or unsets the approval of a given operator
   * An operator is allowed to transfer all tokens of the sender on their behalf
   * @param _to operator address to set the approval
   * @param _approved representing the status of the approval to be set
   */
  function setApprovalForAll(
    address _to,
    bool _approved
  ) public
    onlyIfAlive
  {
    require(_to != msg.sender, 'APPROVE_SELF');
    managerToOperatorApproved[msg.sender][_to] = _approved;
    emit ApprovalForAll(msg.sender, _to, _approved);
  }

    /**
   * @dev Checks if the given user is approved to transfer the tokenId.
   */
  function _isApproved(
    uint _tokenId,
    address _user
  ) internal view
    returns (bool)
  {
    return approved[_tokenId] == _user;
  }

    /**
   * @dev Function to clear current approval of a given token ID
   * @param _tokenId uint256 ID of the token to be transferred
   */
  function _clearApproval(
    uint256 _tokenId
  ) internal
  {
    if (approved[_tokenId] != address(0)) {
      approved[_tokenId] = address(0);
    }
  }
}

// File: contracts/mixins/MixinERC721Enumerable.sol

pragma solidity 0.5.17;






/**
 * @title Implements the ERC-721 Enumerable extension.
 */
contract MixinERC721Enumerable is
  IERC721Enumerable,
  ERC165,
  MixinLockCore, // Implements totalSupply
  MixinKeys
{
  function _initializeMixinERC721Enumerable() internal
  {
    /**
     * register the supported interface to conform to ERC721Enumerable via ERC165
     * 0x780e9d63 ===
     *     bytes4(keccak256('totalSupply()')) ^
     *     bytes4(keccak256('tokenOfOwnerByIndex(address,uint256)')) ^
     *     bytes4(keccak256('tokenByIndex(uint256)'))
     */
    _registerInterface(0x780e9d63);
  }

  /// @notice Enumerate valid NFTs
  /// @dev Throws if `_index` >= `totalSupply()`.
  /// @param _index A counter less than `totalSupply()`
  /// @return The token identifier for the `_index`th NFT,
  ///  (sort order not specified)
  function tokenByIndex(
    uint256 _index
  ) public view
    returns (uint256)
  {
    require(_index < _totalSupply, 'OUT_OF_RANGE');
    return _index;
  }

  /// @notice Enumerate NFTs assigned to an owner
  /// @dev Throws if `_index` >= `balanceOf(_keyOwner)` or if
  ///  `_keyOwner` is the zero address, representing invalid NFTs.
  /// @param _keyOwner An address where we are interested in NFTs owned by them
  /// @param _index A counter less than `balanceOf(_keyOwner)`
  /// @return The token identifier for the `_index`th NFT assigned to `_keyOwner`,
  ///   (sort order not specified)
  function tokenOfOwnerByIndex(
    address _keyOwner,
    uint256 _index
  ) public view
    returns (uint256)
  {
    require(_index == 0, 'ONLY_ONE_KEY_PER_OWNER');
    return getTokenIdFor(_keyOwner);
  }
}

// File: contracts/mixins/MixinKeyGranterRole.sol

pragma solidity 0.5.17;

// This contract mostly follows the pattern established by openzeppelin in
// openzeppelin/contracts-ethereum-package/contracts/access/roles




contract MixinKeyGranterRole is MixinLockManagerRole {
  using Roles for Roles.Role;

  event KeyGranterAdded(address indexed account);
  event KeyGranterRemoved(address indexed account);

  Roles.Role private keyGranters;

  function _initializeMixinKeyGranterRole(address sender) internal {
    if (!isKeyGranter(sender)) {
      keyGranters.add(sender);
    }
  }

  modifier onlyKeyGranterOrManager() {
    require(isKeyGranter(msg.sender) || isLockManager(msg.sender), 'MixinKeyGranter: caller does not have the KeyGranter or LockManager role');
    _;
  }

  function isKeyGranter(address account) public view returns (bool) {
    return keyGranters.has(account);
  }

  function addKeyGranter(address account) public onlyLockManager {
    keyGranters.add(account);
    emit KeyGranterAdded(account);
  }

  function revokeKeyGranter(address _granter) public onlyLockManager {
    keyGranters.remove(_granter);
    emit KeyGranterRemoved(_granter);
  }
}

// File: contracts/mixins/MixinGrantKeys.sol

pragma solidity 0.5.17;




/**
 * @title Mixin allowing the Lock owner to grant / gift keys to users.
 * @author HardlyDifficult
 * @dev `Mixins` are a design pattern seen in the 0x contracts.  It simply
 * separates logically groupings of code to ease readability.
 */
contract MixinGrantKeys is
  MixinKeyGranterRole,
  MixinKeys
{
  /**
   * Allows the Lock owner to give a collection of users a key with no charge.
   * Each key may be assigned a different expiration date.
   */
  function grantKeys(
    address[] calldata _recipients,
    uint[] calldata _expirationTimestamps,
    address[] calldata _keyManagers
  ) external
    onlyKeyGranterOrManager
  {
    for(uint i = 0; i < _recipients.length; i++) {
      address recipient = _recipients[i];
      uint expirationTimestamp = _expirationTimestamps[i];
      address keyManager = _keyManagers[i];

      require(recipient != address(0), 'INVALID_ADDRESS');

      Key storage toKey = keyByOwner[recipient];
      require(expirationTimestamp > toKey.expirationTimestamp, 'ALREADY_OWNS_KEY');

      uint idTo = toKey.tokenId;

      if(idTo == 0) {
        _assignNewTokenId(toKey);
        idTo = toKey.tokenId;
        _recordOwner(recipient, idTo);
      }
      // Set the key Manager
      _setKeyManagerOf(idTo, keyManager);
      emit KeyManagerChanged(idTo, keyManager);

      toKey.expirationTimestamp = expirationTimestamp;
      // trigger event
      emit Transfer(
        address(0), // This is a creation.
        recipient,
        idTo
      );
    }
  }
}

// File: contracts/UnlockUtils.sol

pragma solidity 0.5.17;

// This contract provides some utility methods for use with the unlock protocol smart contracts.
// Borrowed from:
// https://github.com/oraclize/ethereum-api/blob/master/oraclizeAPI_0.5.sol#L943

library UnlockUtils {

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

  function uint2Str(
    uint _i
  ) internal pure
    returns (string memory _uintAsString)
  {
    // make a copy of the param to avoid security/no-assign-params error
    uint c = _i;
    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 (c != 0) {
      bstr[k--] = byte(uint8(48 + c % 10));
      c /= 10;
    }
    return string(bstr);
  }

  function address2Str(
    address _addr
  ) internal pure
    returns(string memory)
  {
    bytes32 value = bytes32(uint256(_addr));
    bytes memory alphabet = '0123456789abcdef';
    bytes memory str = new bytes(42);
    str[0] = '0';
    str[1] = 'x';
    for (uint i = 0; i < 20; i++) {
      str[2+i*2] = alphabet[uint8(value[i + 12] >> 4)];
      str[3+i*2] = alphabet[uint8(value[i + 12] & 0x0f)];
    }
    return string(str);
  }
}

// File: contracts/mixins/MixinLockMetadata.sol

pragma solidity 0.5.17;







/**
 * @title Mixin for metadata about the Lock.
 * @author HardlyDifficult
 * @dev `Mixins` are a design pattern seen in the 0x contracts.  It simply
 * separates logically groupings of code to ease readability.
 */
contract MixinLockMetadata is
  IERC721Enumerable,
  ERC165,
  MixinLockManagerRole,
  MixinLockCore,
  MixinKeys
{
  using UnlockUtils for uint;
  using UnlockUtils for address;
  using UnlockUtils for string;

  /// A descriptive name for a collection of NFTs in this contract.Defaults to "Unlock-Protocol" but is settable by lock owner
  string public name;

  /// An abbreviated name for NFTs in this contract. Defaults to "KEY" but is settable by lock owner
  string private lockSymbol;

  // the base Token URI for this Lock. If not set by lock owner, the global URI stored in Unlock is used.
  string private baseTokenURI;

  event NewLockSymbol(
    string symbol
  );

  function _initializeMixinLockMetadata(
    string memory _lockName
  ) internal
  {
    ERC165.initialize();
    name = _lockName;
    // registering the optional erc721 metadata interface with ERC165.sol using
    // the ID specified in the standard: https://eips.ethereum.org/EIPS/eip-721
    _registerInterface(0x5b5e139f);
  }

  /**
   * Allows the Lock owner to assign a descriptive name for this Lock.
   */
  function updateLockName(
    string calldata _lockName
  ) external
    onlyLockManager
  {
    name = _lockName;
  }

  /**
   * Allows the Lock owner to assign a Symbol for this Lock.
   */
  function updateLockSymbol(
    string calldata _lockSymbol
  ) external
    onlyLockManager
  {
    lockSymbol = _lockSymbol;
    emit NewLockSymbol(_lockSymbol);
  }

  /**
    * @dev Gets the token symbol
    * @return string representing the token name
    */
  function symbol()
    external view
    returns(string memory)
  {
    if(bytes(lockSymbol).length == 0) {
      return unlockProtocol.globalTokenSymbol();
    } else {
      return lockSymbol;
    }
  }

  /**
   * Allows the Lock owner to update the baseTokenURI for this Lock.
   */
  function setBaseTokenURI(
    string calldata _baseTokenURI
  ) external
    onlyLockManager
  {
    baseTokenURI = _baseTokenURI;
  }

  /**  @notice A distinct Uniform Resource Identifier (URI) for a given asset.
   * @dev Throws if `_tokenId` is not a valid NFT. URIs are defined in RFC
   *  3986. The URI may point to a JSON file that conforms to the "ERC721
   *  Metadata JSON Schema".
   * https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
   */
  function tokenURI(
    uint256 _tokenId
  ) external
    view
    isKey(_tokenId)
    returns(string memory)
  {
    string memory URI;
    if(bytes(baseTokenURI).length == 0) {
      URI = unlockProtocol.globalBaseTokenURI();
    } else {
      URI = baseTokenURI;
    }

    return URI.strConcat(
      address(this).address2Str(),
      '/',
      _tokenId.uint2Str()
    );
  }
}

// File: contracts/mixins/MixinPurchase.sol

pragma solidity 0.5.17;







/**
 * @title Mixin for the purchase-related functions.
 * @author HardlyDifficult
 * @dev `Mixins` are a design pattern seen in the 0x contracts.  It simply
 * separates logically groupings of code to ease readability.
 */
contract MixinPurchase is
  MixinFunds,
  MixinDisable,
  MixinLockCore,
  MixinKeys
{
  using SafeMath for uint;

  event RenewKeyPurchase(address indexed owner, uint newExpiration);

  /**
  * @dev Purchase function
  * @param _value the number of tokens to pay for this purchase >= the current keyPrice - any applicable discount
  * (_value is ignored when using ETH)
  * @param _recipient address of the recipient of the purchased key
  * @param _referrer address of the user making the referral
  * @param _data arbitrary data populated by the front-end which initiated the sale
  * @dev Setting _value to keyPrice exactly doubles as a security feature. That way if the lock owner increases the
  * price while my transaction is pending I can't be charged more than I expected (only applicable to ERC-20 when more
  * than keyPrice is approved for spending).
  */
  function purchase(
    uint256 _value,
    address _recipient,
    address _referrer,
    bytes calldata _data
  ) external payable
    onlyIfAlive
    notSoldOut
  {
    require(_recipient != address(0), 'INVALID_ADDRESS');

    // Assign the key
    Key storage toKey = keyByOwner[_recipient];
    uint idTo = toKey.tokenId;
    uint newTimeStamp;

    if (idTo == 0) {
      // Assign a new tokenId (if a new owner or previously transferred)
      _assignNewTokenId(toKey);
      // refresh the cached value
      idTo = toKey.tokenId;
      _recordOwner(_recipient, idTo);
      newTimeStamp = block.timestamp + expirationDuration;
      toKey.expirationTimestamp = newTimeStamp;

      // trigger event
      emit Transfer(
        address(0), // This is a creation.
        _recipient,
        idTo
      );
    } else if (toKey.expirationTimestamp > block.timestamp) {
      // This is an existing owner trying to extend their key
      newTimeStamp = toKey.expirationTimestamp.add(expirationDuration);
      toKey.expirationTimestamp = newTimeStamp;
      emit RenewKeyPurchase(_recipient, newTimeStamp);
    } else {
      // This is an existing owner trying to renew their expired key
      // SafeAdd is not required here since expirationDuration is capped to a tiny value
      // (relative to the size of a uint)
      newTimeStamp = block.timestamp + expirationDuration;
      toKey.expirationTimestamp = newTimeStamp;

      // reset the key Manager to 0x00
      _setKeyManagerOf(idTo, address(0));

      emit RenewKeyPurchase(_recipient, newTimeStamp);
    }

    (uint inMemoryKeyPrice, uint discount, uint tokens) = _purchasePriceFor(_recipient, _referrer, _data);
    if (discount > 0)
    {
      unlockProtocol.recordConsumedDiscount(discount, tokens);
    }

    // Record price without any tips
    unlockProtocol.recordKeyPurchase(inMemoryKeyPrice, getHasValidKey(_referrer) ? _referrer : address(0));

    // We explicitly allow for greater amounts of ETH or tokens to allow 'donations'
    uint pricePaid;
    if(tokenAddress != address(0))
    {
      pricePaid = _value;
      IERC20 token = IERC20(tokenAddress);
      token.safeTransferFrom(msg.sender, address(this), _value);
    }
    else
    {
      pricePaid = msg.value;
    }
    require(pricePaid >= inMemoryKeyPrice, 'INSUFFICIENT_VALUE');

    if(address(onKeyPurchaseHook) != address(0))
    {
      onKeyPurchaseHook.onKeyPurchase(msg.sender, _recipient, _referrer, _data, inMemoryKeyPrice, pricePaid);
    }
  }

  /**
   * @notice returns the minimum price paid for a purchase with these params.
   * @dev minKeyPrice considers any discount from Unlock or the OnKeyPurchase hook
   */
  function purchasePriceFor(
    address _recipient,
    address _referrer,
    bytes calldata _data
  ) external view
    returns (uint minKeyPrice)
  {
    (minKeyPrice, , ) = _purchasePriceFor(_recipient, _referrer, _data);
  }

  /**
   * @notice returns the minimum price paid for a purchase with these params.
   * @dev minKeyPrice considers any discount from Unlock or the OnKeyPurchase hook
   * unlockDiscount and unlockTokens are the values returned from `computeAvailableDiscountFor`
   */
  function _purchasePriceFor(
    address _recipient,
    address _referrer,
    bytes memory _data
  ) internal view
    returns (uint minKeyPrice, uint unlockDiscount, uint unlockTokens)
  {
    if(address(onKeyPurchaseHook) != address(0))
    {
      minKeyPrice = onKeyPurchaseHook.keyPurchasePrice(msg.sender, _recipient, _referrer, _data);
    }
    else
    {
      minKeyPrice = keyPrice;
    }

    if(minKeyPrice > 0)
    {
      (unlockDiscount, unlockTokens) = unlockProtocol.computeAvailableDiscountFor(_recipient, minKeyPrice);
      require(unlockDiscount <= minKeyPrice, 'INVALID_DISCOUNT_FROM_UNLOCK');
      minKeyPrice -= unlockDiscount;
    }
  }
}

// File: @openzeppelin/contracts-ethereum-package/contracts/cryptography/ECDSA.sol

pragma solidity ^0.5.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * NOTE: This call _does not revert_ if the signature is invalid, or
     * if the signer is otherwise unable to be retrieved. In those scenarios,
     * the zero address is returned.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // Check the signature length
        if (signature.length != 65) {
            return (address(0));
        }

        // Divide the signature in r, s and v variables
        bytes32 r;
        bytes32 s;
        uint8 v;

        // ecrecover takes the signature parameters, and the only way to get them
        // currently is to use assembly.
        // solhint-disable-next-line no-inline-assembly
        assembly {
            r := mload(add(signature, 0x20))
            s := mload(add(signature, 0x40))
            v := byte(0, mload(add(signature, 0x60)))
        }

        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return address(0);
        }

        if (v != 27 && v != 28) {
            return address(0);
        }

        // If the signature is valid (and not malleable), return the signer address
        return ecrecover(hash, v, r, s);
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * replicates the behavior of the
     * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`]
     * JSON-RPC method.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }
}

// File: contracts/mixins/MixinSignatures.sol

pragma solidity 0.5.17;



contract MixinSignatures
{
  /// @notice emits anytime the nonce used for off-chain approvals changes.
  event NonceChanged(
    address indexed keyManager,
    uint nextAvailableNonce
  );

  // Stores a nonce per user to use for signed messages
  mapping(address => uint) public keyManagerToNonce;

  /// @notice Validates an off-chain approval signature.
  /// @dev If valid the nonce is consumed, else revert.
  modifier consumeOffchainApproval(
    bytes32 _hash,
    address _keyManager,
    uint8 _v,
    bytes32 _r,
    bytes32 _s
  )
  {
    require(
      ecrecover(
        ECDSA.toEthSignedMessageHash(_hash),
        _v,
        _r,
        _s
      ) == _keyManager, 'INVALID_SIGNATURE'
    );
    keyManagerToNonce[_keyManager]++;
    emit NonceChanged(_keyManager, keyManagerToNonce[_keyManager]);
    _;
  }

  /**
   * @notice Sets the minimum nonce for a valid off-chain approval message from the
   * senders account.
   * @dev This can be used to invalidate a previously signed message.
   */
  function invalidateOffchainApproval(
    uint _nextAvailableNonce
  ) external
  {
    require(_nextAvailableNonce > keyManagerToNonce[msg.sender], 'NONCE_ALREADY_USED');
    keyManagerToNonce[msg.sender] = _nextAvailableNonce;
    emit NonceChanged(msg.sender, _nextAvailableNonce);
  }
}

// File: contracts/mixins/MixinRefunds.sol

pragma solidity 0.5.17;








contract MixinRefunds is
  MixinLockManagerRole,
  MixinSignatures,
  MixinFunds,
  MixinLockCore,
  MixinKeys
{
  using SafeMath for uint;

  // CancelAndRefund will return funds based on time remaining minus this penalty.
  // This is calculated as `proRatedRefund * refundPenaltyBasisPoints / BASIS_POINTS_DEN`.
  uint public refundPenaltyBasisPoints;

  uint public freeTrialLength;

  /// @notice The typehash per the EIP-712 standard
  /// @dev This can be computed in JS instead of read from the contract
  bytes32 private constant CANCEL_TYPEHASH = keccak256('cancelAndRefundFor(address _keyOwner)');

  event CancelKey(
    uint indexed tokenId,
    address indexed owner,
    address indexed sendTo,
    uint refund
  );

  event RefundPenaltyChanged(
    uint freeTrialLength,
    uint refundPenaltyBasisPoints
  );

  function _initializeMixinRefunds() internal
  {
    // default to 10%
    refundPenaltyBasisPoints = 1000;
  }

  /**
   * @dev Invoked by the lock owner to destroy the user's ket and perform a refund and cancellation
   * of the key
   */
  function expireAndRefundFor(
    address _keyOwner,
    uint amount
  ) external
    onlyLockManager
    hasValidKey(_keyOwner)
  {
    _cancelAndRefund(_keyOwner, amount);
  }

  /**
   * @dev Destroys the key and sends a refund based on the amount of time remaining.
   * @param _tokenId The id of the key to cancel.
   */
  function cancelAndRefund(uint _tokenId)
    external
    onlyKeyManagerOrApproved(_tokenId)
  {
    address keyOwner = ownerOf(_tokenId);
    uint refund = _getCancelAndRefundValue(keyOwner);

    _cancelAndRefund(keyOwner, refund);
  }

  /**
   * @dev Cancels a key managed by a different user and sends the funds to the msg.sender.
   * @param _keyManager the key managed by this user will be canceled
   * @param _v _r _s getCancelAndRefundApprovalHash signed by the _keyOwner
   * @param _tokenId The key to cancel
   */
  function cancelAndRefundFor(
    address _keyManager,
    uint8 _v,
    bytes32 _r,
    bytes32 _s,
    uint _tokenId
  ) external
    consumeOffchainApproval(
      getCancelAndRefundApprovalHash(_keyManager, msg.sender),
      _keyManager,
      _v,
      _r,
      _s
    )
  {
    address keyOwner = ownerOf(_tokenId);
    uint refund = _getCancelAndRefundValue(keyOwner);
    _cancelAndRefund(keyOwner, refund);
  }

  /**
   * Allow the owner to change the refund penalty.
   */
  function updateRefundPenalty(
    uint _freeTrialLength,
    uint _refundPenaltyBasisPoints
  ) external
    onlyLockManager
  {
    emit RefundPenaltyChanged(
      _freeTrialLength,
      _refundPenaltyBasisPoints
    );

    freeTrialLength = _freeTrialLength;
    refundPenaltyBasisPoints = _refundPenaltyBasisPoints;
  }

  /**
   * @dev Determines how much of a refund a key owner would receive if they issued
   * a cancelAndRefund block.timestamp.
   * Note that due to the time required to mine a tx, the actual refund amount will be lower
   * than what the user reads from this call.
   */
  function getCancelAndRefundValueFor(
    address _keyOwner
  )
    external view
    returns (uint refund)
  {
    return _getCancelAndRefundValue(_keyOwner);
  }

  /**
   * @notice returns the hash to sign in order to allow another user to cancel on your behalf.
   * @dev this can be computed in JS instead of read from the contract.
   * @param _keyManager The key manager's address (also the message signer)
   * @param _txSender The address cancelling cancel on behalf of the keyOwner
   * @return approvalHash The hash to sign
   */
  function getCancelAndRefundApprovalHash(
    address _keyManager,
    address _txSender
  ) public view
    returns (bytes32 approvalHash)
  {
    return keccak256(
      abi.encodePacked(
        // Approval is specific to this Lock
        address(this),
        // The specific function the signer is approving
        CANCEL_TYPEHASH,
        // Approval enables only one cancel call
        keyManagerToNonce[_keyManager],
        // Approval allows only one account to broadcast the tx
        _txSender
      )
    );
  }

  /**
   * @dev cancels the key for the given keyOwner and sends the refund to the msg.sender.
   */
  function _cancelAndRefund(
    address _keyOwner,
    uint refund
  ) internal
  {
    Key storage key = keyByOwner[_keyOwner];

    emit CancelKey(key.tokenId, _keyOwner, msg.sender, refund);
    // expirationTimestamp is a proxy for hasKey, setting this to `block.timestamp` instead
    // of 0 so that we can still differentiate hasKey from hasValidKey.
    key.expirationTimestamp = block.timestamp;

    if (refund > 0) {
      // Security: doing this last to avoid re-entrancy concerns
      _transfer(tokenAddress, _keyOwner, refund);
    }

    // inform the hook if there is one registered
    if(address(onKeyCancelHook) != address(0))
    {
      onKeyCancelHook.onKeyCancel(msg.sender, _keyOwner, refund);
    }
  }

  /**
   * @dev Determines how much of a refund a key owner would receive if they issued
   * a cancelAndRefund now.
   * @param _keyOwner The owner of the key check the refund value for.
   */
  function _getCancelAndRefundValue(
    address _keyOwner
  )
    private view
    hasValidKey(_keyOwner)
    returns (uint refund)
  {
    Key storage key = keyByOwner[_keyOwner];
    // Math: safeSub is not required since `hasValidKey` confirms timeRemaining is positive
    uint timeRemaining = key.expirationTimestamp - block.timestamp;
    if(timeRemaining + freeTrialLength >= expirationDuration) {
      refund = keyPrice;
    } else {
      // Math: using safeMul in case keyPrice or timeRemaining is very large
      refund = keyPrice.mul(timeRemaining) / expirationDuration;
    }

    // Apply the penalty if this is not a free trial
    if(freeTrialLength == 0 || timeRemaining + freeTrialLength < expirationDuration)
    {
      uint penalty = keyPrice.mul(refundPenaltyBasisPoints) / BASIS_POINTS_DEN;
      if (refund > penalty) {
        // Math: safeSub is not required since the if confirms this won't underflow
        refund -= penalty;
      } else {
        refund = 0;
      }
    }
  }
}

// File: @openzeppelin/contracts-ethereum-package/contracts/token/ERC721/IERC721Receiver.sol

pragma solidity ^0.5.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
contract IERC721Receiver {
    /**
     * @notice Handle the receipt of an NFT
     * @dev The ERC721 smart contract calls this function on the recipient
     * after a {IERC721-safeTransferFrom}. This function MUST return the function selector,
     * otherwise the caller will revert the transaction. The selector to be
     * returned can be obtained as `this.onERC721Received.selector`. This
     * function MAY throw to revert and reject the transfer.
     * Note: the ERC721 contract address is always the message sender.
     * @param operator The address which called `safeTransferFrom` function
     * @param from The address which previously owned the token
     * @param tokenId The NFT identifier which is being transferred
     * @param data Additional data with no specified format
     * @return bytes4 `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes memory data)
    public returns (bytes4);
}

// File: contracts/mixins/MixinTransfer.sol

pragma solidity 0.5.17;









/**
 * @title Mixin for the transfer-related functions needed to meet the ERC721
 * standard.
 * @author Nick Furfaro
 * @dev `Mixins` are a design pattern seen in the 0x contracts.  It simply
 * separates logically groupings of code to ease readability.
 */

contract MixinTransfer is
  MixinLockManagerRole,
  MixinFunds,
  MixinLockCore,
  MixinKeys
{
  using SafeMath for uint;
  using Address for address;

  event TransferFeeChanged(
    uint transferFeeBasisPoints
  );

  // 0x150b7a02 == bytes4(keccak256('onERC721Received(address,address,uint256,bytes)'))
  bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

  // The fee relative to keyPrice to charge when transfering a Key to another account
  // (potentially on a 0x marketplace).
  // This is calculated as `keyPrice * transferFeeBasisPoints / BASIS_POINTS_DEN`.
  uint public transferFeeBasisPoints;

  /**
  * @notice Allows the key owner to safely share their key (parent key) by
  * transferring a portion of the remaining time to a new key (child key).
  * @param _to The recipient of the shared key
  * @param _tokenId the key to share
  * @param _timeShared The amount of time shared
  */
  function shareKey(
    address _to,
    uint _tokenId,
    uint _timeShared
  ) public
    onlyIfAlive
    onlyKeyManagerOrApproved(_tokenId)
  {
    require(transferFeeBasisPoints < BASIS_POINTS_DEN, 'KEY_TRANSFERS_DISABLED');
    require(_to != address(0), 'INVALID_ADDRESS');
    address keyOwner = _ownerOf[_tokenId];
    require(getHasValidKey(keyOwner), 'KEY_NOT_VALID');
    Key storage fromKey = keyByOwner[keyOwner];
    Key storage toKey = keyByOwner[_to];
    uint idTo = toKey.tokenId;
    uint time;
    // get the remaining time for the origin key
    uint timeRemaining = fromKey.expirationTimestamp - block.timestamp;
    // get the transfer fee based on amount of time wanted share
    uint fee = getTransferFee(keyOwner, _timeShared);
    uint timePlusFee = _timeShared.add(fee);

    // ensure that we don't try to share too much
    if(timePlusFee < timeRemaining) {
      // now we can safely set the time
      time = _timeShared;
      // deduct time from parent key, including transfer fee
      _timeMachine(_tokenId, timePlusFee, false);
    } else {
      // we have to recalculate the fee here
      fee = getTransferFee(keyOwner, timeRemaining);
      time = timeRemaining - fee;
      fromKey.expirationTimestamp = block.timestamp; // Effectively expiring the key
      emit ExpireKey(_tokenId);
    }

    if (idTo == 0) {
      _assignNewTokenId(toKey);
      idTo = toKey.tokenId;
      _recordOwner(_to, idTo);
      emit Transfer(
        address(0), // This is a creation or time-sharing
        _to,
        idTo
      );
    } else if (toKey.expirationTimestamp <= block.timestamp) {
      // reset the key Manager for expired keys
      _setKeyManagerOf(idTo, address(0));
    }

    // add time to new key
    _timeMachine(idTo, time, true);
    // trigger event
    emit Transfer(
      keyOwner,
      _to,
      idTo
    );

    require(_checkOnERC721Received(keyOwner, _to, _tokenId, ''), 'NON_COMPLIANT_ERC721_RECEIVER');
  }

  function transferFrom(
    address _from,
    address _recipient,
    uint _tokenId
  )
    public
    onlyIfAlive
    hasValidKey(_from)
    onlyKeyManagerOrApproved(_tokenId)
  {
    require(isKeyOwner(_tokenId, _from), 'TRANSFER_FROM: NOT_KEY_OWNER');
    require(transferFeeBasisPoints < BASIS_POINTS_DEN, 'KEY_TRANSFERS_DISABLED');
    require(_recipient != address(0), 'INVALID_ADDRESS');
    uint fee = getTransferFee(_from, 0);

    Key storage fromKey = keyByOwner[_from];
    Key storage toKey = keyByOwner[_recipient];

    uint previousExpiration = toKey.expirationTimestamp;
    // subtract the fee from the senders key before the transfer
    _timeMachine(_tokenId, fee, false);

    if (toKey.tokenId == 0) {
      toKey.tokenId = _tokenId;
      _recordOwner(_recipient, _tokenId);
      // Clear any previous approvals
      _clearApproval(_tokenId);
    }

    if (previousExpiration <= block.timestamp) {
      // The recipient did not have a key, or had a key but it expired. The new expiration is the sender's key expiration
      // An expired key is no longer a valid key, so the new tokenID is the sender's tokenID
      toKey.expirationTimestamp = fromKey.expirationTimestamp;
      toKey.tokenId = _tokenId;

      // Reset the key Manager to the key owner
      _setKeyManagerOf(_tokenId, address(0));

      _recordOwner(_recipient, _tokenId);
    } else {
      // The recipient has a non expired key. We just add them the corresponding remaining time
      // SafeSub is not required since the if confirms `previousExpiration - block.timestamp` cannot underflow
      toKey.expirationTimestamp = fromKey
        .expirationTimestamp.add(previousExpiration - block.timestamp);
    }

    // Effectively expiring the key for the previous owner
    fromKey.expirationTimestamp = block.timestamp;

    // Set the tokenID to 0 for the previous owner to avoid duplicates
    fromKey.tokenId = 0;

    // trigger event
    emit Transfer(
      _from,
      _recipient,
      _tokenId
    );
  }

  /**
  * @notice Transfers the ownership of an NFT from one address to another address
  * @dev This works identically to the other function with an extra data parameter,
  *  except this function just sets data to ''
  * @param _from The current owner of the NFT
  * @param _to The new owner
  * @param _tokenId The NFT to transfer
  */
  function safeTransferFrom(
    address _from,
    address _to,
    uint _tokenId
  )
    public
  {
    safeTransferFrom(_from, _to, _tokenId, '');
  }

  /**
  * @notice Transfers the ownership of an NFT from one address to another address.
  * When transfer is complete, this functions
  *  checks if `_to` is a smart contract (code size > 0). If so, it calls
  *  `onERC721Received` on `_to` and throws if the return value is not
  *  `bytes4(keccak256('onERC721Received(address,address,uint,bytes)'))`.
  * @param _from The current owner of the NFT
  * @param _to The new owner
  * @param _tokenId The NFT to transfer
  * @param _data Additional data with no specified format, sent in call to `_to`
  */
  function safeTransferFrom(
    address _from,
    address _to,
    uint _tokenId,
    bytes memory _data
  )
    public
  {
    transferFrom(_from, _to, _tokenId);
    require(_checkOnERC721Received(_from, _to, _tokenId, _data), 'NON_COMPLIANT_ERC721_RECEIVER');

  }

  /**
   * Allow the Lock owner to change the transfer fee.
   */
  function updateTransferFee(
    uint _transferFeeBasisPoints
  )
    external
    onlyLockManager
  {
    emit TransferFeeChanged(
      _transferFeeBasisPoints
    );
    transferFeeBasisPoints = _transferFeeBasisPoints;
  }

  /**
   * Determines how much of a fee a key owner would need to pay in order to
   * transfer the key to another account.  This is pro-rated so the fee goes down
   * overtime.
   * @param _keyOwner The owner of the key check the transfer fee for.
   */
  function getTransferFee(
    address _keyOwner,
    uint _time
  )
    public view
    hasValidKey(_keyOwner)
    returns (uint)
  {
    Key storage key = keyByOwner[_keyOwner];
    uint timeToTransfer;
    uint fee;
    // Math: safeSub is not required since `hasValidKey` confirms timeToTransfer is positive
    // this is for standard key transfers
    if(_time == 0) {
      timeToTransfer = key.expirationTimestamp - block.timestamp;
    } else {
      timeToTransfer = _time;
    }
    fee = timeToTransfer.mul(transferFeeBasisPoints) / BASIS_POINTS_DEN;
    return fee;
  }

  /**
   * @dev Internal function to invoke `onERC721Received` on a target address
   * The call is not executed if the target address is not a contract
   * @param from address representing the previous owner of the given token ID
   * @param to target address that will receive the tokens
   * @param tokenId uint256 ID of the token to be transferred
   * @param _data bytes optional data to send along with the call
   * @return whether the call correctly returned the expected magic value
   */
  function _checkOnERC721Received(
    address from,
    address to,
    uint256 tokenId,
    bytes memory _data
  )
    internal
    returns (bool)
  {
    if (!to.isContract()) {
      return true;
    }
    bytes4 retval = IERC721Receiver(to).onERC721Received(
      msg.sender, from, tokenId, _data);
    return (retval == _ERC721_RECEIVED);
  }

}

// File: contracts/PublicLock.sol

pragma solidity 0.5.17;


















/**
 * @title The Lock contract
 * @author Julien Genestoux (unlock-protocol.com)
 * @dev ERC165 allows our contract to be queried to determine whether it implements a given interface.
 * Every ERC-721 compliant contract must implement the ERC165 interface.
 * https://eips.ethereum.org/EIPS/eip-721
 */
contract PublicLock is
  IPublicLock,
  Initializable,
  ERC165,
  MixinLockManagerRole,
  MixinKeyGranterRole,
  MixinSignatures,
  MixinFunds,
  MixinDisable,
  MixinLockCore,
  MixinKeys,
  MixinLockMetadata,
  MixinERC721Enumerable,
  MixinGrantKeys,
  MixinPurchase,
  MixinTransfer,
  MixinRefunds
{
  function initialize(
    address _lockCreator,
    uint _expirationDuration,
    address _tokenAddress,
    uint _keyPrice,
    uint _maxNumberOfKeys,
    string memory _lockName
  ) public
    initializer()
  {
    MixinFunds._initializeMixinFunds(_tokenAddress);
    MixinDisable._initializeMixinDisable();
    MixinLockCore._initializeMixinLockCore(_lockCreator, _expirationDuration, _keyPrice, _maxNumberOfKeys);
    MixinLockMetadata._initializeMixinLockMetadata(_lockName);
    MixinERC721Enumerable._initializeMixinERC721Enumerable();
    MixinRefunds._initializeMixinRefunds();
    MixinLockManagerRole._initializeMixinLockManagerRole(_lockCreator);
    MixinKeyGranterRole._initializeMixinKeyGranterRole(_lockCreator);
    // registering the interface for erc721 with ERC165.sol using
    // the ID specified in the standard: https://eips.ethereum.org/EIPS/eip-721
    _registerInterface(0x80ac58cd);
  }

  /**
   * @notice Allow the contract to accept tips in ETH sent directly to the contract.
   * @dev This is okay to use even if the lock is priced in ERC-20 tokens
   */
  function() external payable {}
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"sendTo","type":"address"},{"indexed":false,"internalType":"uint256","name":"refund","type":"uint256"}],"name":"CancelKey","type":"event"},{"anonymous":false,"inputs":[],"name":"Disable","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"bool","name":"_timeAdded","type":"bool"}],"name":"ExpirationChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ExpireKey","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"KeyGranterAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"KeyGranterRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"_newManager","type":"address"}],"name":"KeyManagerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"LockManagerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"}],"name":"LockManagerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"symbol","type":"string"}],"name":"NewLockSymbol","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"keyManager","type":"address"},{"indexed":false,"internalType":"uint256","name":"nextAvailableNonce","type":"uint256"}],"name":"NonceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldKeyPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"keyPrice","type":"uint256"},{"indexed":false,"internalType":"address","name":"oldTokenAddress","type":"address"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"}],"name":"PricingChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"freeTrialLength","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"refundPenaltyBasisPoints","type":"uint256"}],"name":"RefundPenaltyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"newExpiration","type":"uint256"}],"name":"RenewKeyPurchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"transferFeeBasisPoints","type":"uint256"}],"name":"TransferFeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addKeyGranter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addLockManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_approved","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"approve","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_keyOwner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"cancelAndRefund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_keyManager","type":"address"},{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"cancelAndRefundFor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"disableLock","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"expirationDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_keyOwner","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"expireAndRefundFor","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"freeTrialLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"address","name":"_account","type":"address"}],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_keyManager","type":"address"},{"internalType":"address","name":"_txSender","type":"address"}],"name":"getCancelAndRefundApprovalHash","outputs":[{"internalType":"bytes32","name":"approvalHash","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_keyOwner","type":"address"}],"name":"getCancelAndRefundValueFor","outputs":[{"internalType":"uint256","name":"refund","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_keyOwner","type":"address"}],"name":"getHasValidKey","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_page","type":"uint256"},{"internalType":"uint256","name":"_pageSize","type":"uint256"}],"name":"getOwnersByPage","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getTokenIdFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_keyOwner","type":"address"},{"internalType":"uint256","name":"_time","type":"uint256"}],"name":"getTransferFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint256[]","name":"_expirationTimestamps","type":"uint256[]"},{"internalType":"address[]","name":"_keyManagers","type":"address[]"}],"name":"grantKeys","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_lockCreator","type":"address"},{"internalType":"uint256","name":"_expirationDuration","type":"uint256"},{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_keyPrice","type":"uint256"},{"internalType":"uint256","name":"_maxNumberOfKeys","type":"uint256"},{"internalType":"string","name":"_lockName","type":"string"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_nextAvailableNonce","type":"uint256"}],"name":"invalidateOffchainApproval","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isAlive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isKeyGranter","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_keyOwner","type":"address"}],"name":"isKeyOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isLockManager","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_keyOwner","type":"address"}],"name":"keyExpirationTimestampFor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"keyManagerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"keyManagerToNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"keyPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"maxNumberOfKeys","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"numberOfOwners","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"onKeyCancelHook","outputs":[{"internalType":"contract ILockKeyCancelHook","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"onKeyPurchaseHook","outputs":[{"internalType":"contract ILockKeyPurchaseHook","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"owners","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"publicLockVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"address","name":"_referrer","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"purchase","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"address","name":"_referrer","type":"address"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"purchasePriceFor","outputs":[{"internalType":"uint256","name":"minKeyPrice","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"refundPenaltyBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceLockManager","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_granter","type":"address"}],"name":"revokeKeyGranter","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"bool","name":"_approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"_baseTokenURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_onKeyPurchaseHook","type":"address"},{"internalType":"address","name":"_onKeyCancelHook","type":"address"}],"name":"setEventHooks","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_keyManager","type":"address"}],"name":"setKeyManagerOf","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_timeShared","type":"uint256"}],"name":"shareKey","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_keyOwner","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"transferFeeBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"unlockProtocol","outputs":[{"internalType":"contract IUnlock","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_beneficiary","type":"address"}],"name":"updateBeneficiary","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_keyPrice","type":"uint256"},{"internalType":"address","name":"_tokenAddress","type":"address"}],"name":"updateKeyPricing","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"_lockName","type":"string"}],"name":"updateLockName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"string","name":"_lockSymbol","type":"string"}],"name":"updateLockSymbol","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_freeTrialLength","type":"uint256"},{"internalType":"uint256","name":"_refundPenaltyBasisPoints","type":"uint256"}],"name":"updateRefundPenalty","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_transferFeeBasisPoints","type":"uint256"}],"name":"updateTransferFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50615a3c80620000216000396000f3fe6080604052600436106103fa5760003560e01c80636eadde4311610213578063aae4b8f711610123578063d2503485116100ab578063f0ba60401161007a578063f0ba60401461137d578063f12c6b6e14611392578063f3fef3a3146113d1578063fc42b58f1461140a578063fe72e4c114611443576103fa565b8063d2503485146112aa578063d32bfb6c146112dd578063d4fac45d14611307578063e985e9c514611342576103fa565b8063b2e0f6e7116100f2578063b2e0f6e714611137578063b88d4fde14611185578063c1c98d0314611256578063c87b56dd1461126b578063d1bbd49c14611295576103fa565b8063aae4b8f71461105d578063abdf82ce14611090578063ad0e0a4d146110c3578063b11d7ec1146110fe576103fa565b806393fd1844116101a6578063994a8a7111610175578063994a8a7114610f865780639d76ea5814610fbf578063a22cb46514610fd4578063a2e4cd2e1461100f578063a375cb0514611048576103fa565b806393fd184414610ef057806395d89b4114610f05578063970aaeb714610f1a57806397aa390a14610f4d576103fa565b80638129fc1c116101e25780638129fc1c14610d5b57806381a3c94314610d705780638577a6d514610e8b5780638d0361fc14610eb5576103fa565b80636eadde4314610bbc57806370a0823114610c9857806374b6c10614610ccb578063782a4ade14610ce0576103fa565b80632f745c591161030e5780634d025fed116102a1578063550ef3a811610270578063550ef3a814610a9c578063564aa99d14610b1757806356e0d51f14610b4a5780636352211e14610b5f5780636d8ea5b414610b89576103fa565b80634d025fed146109e25780634f6ccce714610a0c57806352b0f63814610a3657806352d6a8e414610a69576103fa565b806339f46986116102dd57806339f46986146108cc5780633f33133a146108fc5780634136aa351461098a57806342842e0e1461099f576103fa565b80632f745c59146107d957806330176e131461081257806335576ad01461088d57806338af3eed146108b7576103fa565b806310803b7211610391578063183767da11610360578063183767da14610724578063217751bc1461073957806323b872dd1461074e5780632af9162a146107915780632d33dd5b146107c4576103fa565b806310803b721461066557806310e56973146106e557806311a4c03a146106fa57806318160ddd1461070f576103fa565b8063095ea7b3116103cd578063095ea7b31461053e578063097ba333146105775780630aaffd2a1461061d5780630f15023b14610650576103fa565b806301ffc9a7146103fc578063025e7c271461044457806306fdde031461048a578063081812fc14610514575b005b34801561040857600080fd5b506104306004803603602081101561041f57600080fd5b50356001600160e01b031916611476565b604080519115158252519081900360200190f35b34801561045057600080fd5b5061046e6004803603602081101561046757600080fd5b5035611499565b604080516001600160a01b039092168252519081900360200190f35b34801561049657600080fd5b5061049f6114c0565b6040805160208082528351818301528351919283929083019185019080838360005b838110156104d95781810151838201526020016104c1565b50505050905090810190601f1680156105065780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561052057600080fd5b5061046e6004803603602081101561053757600080fd5b503561154e565b34801561054a57600080fd5b506103fa6004803603604081101561056157600080fd5b506001600160a01b0381351690602001356115c4565b34801561058357600080fd5b5061060b6004803603606081101561059a57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156105cd57600080fd5b8201836020820111156105df57600080fd5b803590602001918460018302840111600160201b8311171561060057600080fd5b50909250905061174b565b60408051918252519081900360200190f35b34801561062957600080fd5b506103fa6004803603602081101561064057600080fd5b50356001600160a01b031661179a565b34801561065c57600080fd5b5061046e611877565b34801561067157600080fd5b506106956004803603604081101561068857600080fd5b5080359060200135611886565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156106d15781810151838201526020016106b9565b505050509050019250505060405180910390f35b3480156106f157600080fd5b5061060b6119a0565b34801561070657600080fd5b5061060b6119a6565b34801561071b57600080fd5b5061060b6119ac565b34801561073057600080fd5b5061060b6119b3565b34801561074557600080fd5b5061046e6119b9565b34801561075a57600080fd5b506103fa6004803603606081101561077157600080fd5b506001600160a01b038135811691602081013590911690604001356119c8565b34801561079d57600080fd5b506103fa600480360360208110156107b457600080fd5b50356001600160a01b0316611cc7565b3480156107d057600080fd5b5061046e611d53565b3480156107e557600080fd5b5061060b600480360360408110156107fc57600080fd5b506001600160a01b038135169060200135611d62565b34801561081e57600080fd5b506103fa6004803603602081101561083557600080fd5b810190602081018135600160201b81111561084f57600080fd5b82018360208201111561086157600080fd5b803590602001918460018302840111600160201b8311171561088257600080fd5b509092509050611dc0565b34801561089957600080fd5b506103fa600480360360208110156108b057600080fd5b5035611e15565b3480156108c357600080fd5b5061046e611eb7565b3480156108d857600080fd5b506103fa600480360360408110156108ef57600080fd5b5080359060200135611ec6565b6103fa6004803603608081101561091257600080fd5b8135916001600160a01b03602082013581169260408301359091169190810190608081016060820135600160201b81111561094c57600080fd5b82018360208201111561095e57600080fd5b803590602001918460018302840111600160201b8311171561097f57600080fd5b509092509050611f50565b34801561099657600080fd5b50610430612462565b3480156109ab57600080fd5b506103fa600480360360608110156109c257600080fd5b506001600160a01b03813581169160208101359091169060400135612472565b3480156109ee57600080fd5b5061046e60048036036020811015610a0557600080fd5b503561248d565b348015610a1857600080fd5b5061060b60048036036020811015610a2f57600080fd5b50356124a8565b348015610a4257600080fd5b5061043060048036036020811015610a5957600080fd5b50356001600160a01b03166124f3565b348015610a7557600080fd5b5061060b60048036036020811015610a8c57600080fd5b50356001600160a01b0316612506565b348015610aa857600080fd5b506103fa60048036036020811015610abf57600080fd5b810190602081018135600160201b811115610ad957600080fd5b820183602082011115610aeb57600080fd5b803590602001918460018302840111600160201b83111715610b0c57600080fd5b509092509050612511565b348015610b2357600080fd5b506103fa60048036036020811015610b3a57600080fd5b50356001600160a01b0316612561565b348015610b5657600080fd5b5061060b6125ed565b348015610b6b57600080fd5b5061046e60048036036020811015610b8257600080fd5b50356125f3565b348015610b9557600080fd5b5061043060048036036020811015610bac57600080fd5b50356001600160a01b0316612669565b348015610bc857600080fd5b506103fa600480360360c0811015610bdf57600080fd5b6001600160a01b03823581169260208101359260408201359092169160608201359160808101359181019060c0810160a0820135600160201b811115610c2457600080fd5b820183602082011115610c3657600080fd5b803590602001918460018302840111600160201b83111715610c5757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612689945050505050565b348015610ca457600080fd5b5061060b60048036036020811015610cbb57600080fd5b50356001600160a01b0316612789565b348015610cd757600080fd5b5061060b6127f8565b348015610cec57600080fd5b506103fa60048036036020811015610d0357600080fd5b810190602081018135600160201b811115610d1d57600080fd5b820183602082011115610d2f57600080fd5b803590602001918460018302840111600160201b83111715610d5057600080fd5b5090925090506127fe565b348015610d6757600080fd5b506103fa6128b3565b348015610d7c57600080fd5b506103fa60048036036060811015610d9357600080fd5b810190602081018135600160201b811115610dad57600080fd5b820183602082011115610dbf57600080fd5b803590602001918460208302840111600160201b83111715610de057600080fd5b919390929091602081019035600160201b811115610dfd57600080fd5b820183602082011115610e0f57600080fd5b803590602001918460208302840111600160201b83111715610e3057600080fd5b919390929091602081019035600160201b811115610e4d57600080fd5b820183602082011115610e5f57600080fd5b803590602001918460208302840111600160201b83111715610e8057600080fd5b509092509050612965565b348015610e9757600080fd5b506103fa60048036036020811015610eae57600080fd5b5035612b72565b348015610ec157600080fd5b5061060b60048036036040811015610ed857600080fd5b506001600160a01b0381358116916020013516612bee565b348015610efc57600080fd5b5061060b612c79565b348015610f1157600080fd5b5061049f612c7f565b348015610f2657600080fd5b5061060b60048036036020811015610f3d57600080fd5b50356001600160a01b0316612e6e565b348015610f5957600080fd5b506103fa60048036036040811015610f7057600080fd5b506001600160a01b038135169060200135612e89565b348015610f9257600080fd5b5061043060048036036040811015610fa957600080fd5b50803590602001356001600160a01b0316612f22565b348015610fcb57600080fd5b5061046e612f43565b348015610fe057600080fd5b506103fa60048036036040811015610ff757600080fd5b506001600160a01b0381351690602001351515612f52565b34801561101b57600080fd5b506103fa6004803603604081101561103257600080fd5b50803590602001356001600160a01b031661305d565b34801561105457600080fd5b5061060b61322c565b34801561106957600080fd5b506104306004803603602081101561108057600080fd5b50356001600160a01b0316613232565b34801561109c57600080fd5b5061060b600480360360208110156110b357600080fd5b50356001600160a01b0316613245565b3480156110cf57600080fd5b506103fa600480360360408110156110e657600080fd5b506001600160a01b0381358116916020013516613263565b34801561110a57600080fd5b506103fa6004803603604081101561112157600080fd5b50803590602001356001600160a01b03166133bd565b34801561114357600080fd5b506103fa600480360360a081101561115a57600080fd5b506001600160a01b038135169060ff602082013516906040810135906060810135906080013561348a565b34801561119157600080fd5b506103fa600480360360808110156111a857600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156111e257600080fd5b8201836020820111156111f457600080fd5b803590602001918460018302840111600160201b8311171561121557600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506135da945050505050565b34801561126257600080fd5b506103fa613648565b34801561127757600080fd5b5061049f6004803603602081101561128e57600080fd5b5035613714565b3480156112a157600080fd5b5061060b6139a1565b3480156112b657600080fd5b506103fa600480360360208110156112cd57600080fd5b50356001600160a01b03166139a6565b3480156112e957600080fd5b506103fa6004803603602081101561130057600080fd5b5035613a32565b34801561131357600080fd5b5061060b6004803603604081101561132a57600080fd5b506001600160a01b0381358116916020013516613ad8565b34801561134e57600080fd5b506104306004803603604081101561136557600080fd5b506001600160a01b0381358116916020013516613b82565b34801561138957600080fd5b506103fa613c17565b34801561139e57600080fd5b506103fa600480360360608110156113b557600080fd5b506001600160a01b038135169060208101359060400135613c55565b3480156113dd57600080fd5b506103fa600480360360408110156113f457600080fd5b506001600160a01b038135169060200135613fdb565b34801561141657600080fd5b5061060b6004803603604081101561142d57600080fd5b506001600160a01b03813516906020013561411c565b34801561144f57600080fd5b5061060b6004803603602081101561146657600080fd5b50356001600160a01b03166141c5565b6001600160e01b0319811660009081526033602052604090205460ff165b919050565b607481815481106114a657fe5b6000918252602090912001546001600160a01b0316905081565b6078805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156115465780601f1061151b57610100808354040283529160200191611546565b820191906000526020600020905b81548152906001019060200180831161152957829003601f168201915b505050505081565b60008181526073602052604081205482906001600160a01b03166115a7576040805162461bcd60e51b815260206004820152600b60248201526a4e4f5f535543485f4b455960a81b604482015290519081900360640190fd5b50506000908152607660205260409020546001600160a01b031690565b606954600160a01b900460ff16611614576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b8061161f81336141d7565b8061162f575061162f8133614239565b806116575750600081815260736020526040902054611657906001600160a01b031633613b82565b611696576040805162461bcd60e51b815260206004820152601c60248201526000805160206158c4833981519152604482015290519081900360640190fd5b336001600160a01b03841614156116e3576040805162461bcd60e51b815260206004820152600c60248201526b20a8282927ab22afa9a2a62360a11b604482015290519081900360640190fd5b600082815260766020908152604080832080546001600160a01b0319166001600160a01b038881169182179092556073909352818420549151869492909116917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061178e858585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061425a92505050565b50909695505050505050565b606f546001600160a01b03163314806117b757506117b733613232565b611808576040805162461bcd60e51b815260206004820152601f60248201527f4f4e4c595f42454e45464943494152595f4f525f4c4f434b4d414e4147455200604482015290519081900360640190fd5b6001600160a01b038116611855576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b606f80546001600160a01b0319166001600160a01b0392909216919091179055565b606a546001600160a01b031681565b6074546060906118d3576040805162461bcd60e51b81526020600482015260136024820152724e4f5f4f55545354414e44494e475f4b45595360681b604482015290519081900360640190fd5b60745482908482029060009082840111156118f6575060745481810392506118fb565b508082015b606083604051908082528060200260200182016040528015611927578160200160208202803883390190505b5090506000835b83811015611991576074818154811061194357fe5b9060005260206000200160009054906101000a90046001600160a01b031683838151811061196d57fe5b6001600160a01b03909216602092830291909101909101526001918201910161192e565b50909450505050505b92915050565b606c5481565b606b5481565b606e545b90565b607b5481565b6071546001600160a01b031681565b606954600160a01b900460ff16611a18576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b82611a2281612669565b611a63576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b81611a6e81336141d7565b80611a7e5750611a7e8133614239565b80611aa65750600081815260736020526040902054611aa6906001600160a01b031633613b82565b611ae5576040805162461bcd60e51b815260206004820152601c60248201526000805160206158c4833981519152604482015290519081900360640190fd5b611aef8386612f22565b611b40576040805162461bcd60e51b815260206004820152601c60248201527f5452414e534645525f46524f4d3a204e4f545f4b45595f4f574e455200000000604482015290519081900360640190fd5b612710607b5410611b91576040805162461bcd60e51b815260206004820152601660248201527512d15657d514905394d1915494d7d11254d05093115160521b604482015290519081900360640190fd5b6001600160a01b038416611bde576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b6000611beb86600061411c565b6001600160a01b03808816600090815260726020526040808220928916825281206001810154939450919290611c249088908690614466565b8154611c4057868255611c378888614588565b611c4087614610565b428111611c6e5760018084015490830155868255611c5f87600061464b565b611c698888614588565b611c8b565b6001830154611c859042830363ffffffff6146cd16565b60018301555b426001840155600080845560405188916001600160a01b03808c1692908d16916000805160206159be83398151915291a4505050505050505050565b611cd033613232565b611d0b5760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b611d1c60678263ffffffff61472716565b6040516001600160a01b038216907f766f6199fea59554b9ff688e413302b9200f85d74811c053c12d945ac6d8dd7a90600090a250565b6070546001600160a01b031681565b60008115611db0576040805162461bcd60e51b815260206004820152601660248201527527a7262cafa7a722afa5a2acafa822a92fa7aba722a960511b604482015290519081900360640190fd5b611db983612e6e565b9392505050565b611dc933613232565b611e045760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b611e10607a8383615727565b505050565b336000908152606860205260409020548111611e6d576040805162461bcd60e51b81526020600482015260126024820152711393d390d157d053149150511657d554d15160721b604482015290519081900360640190fd5b33600081815260686020908152604091829020849055815184815291517ff5d035b703f1ad8d403dd02e821d04257acafc5f6c5d70a3907bd8abf33a2e0f9281900390910190a250565b606f546001600160a01b031681565b611ecf33613232565b611f0a5760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b604080518381526020810183905281517fd6867bc538320e67d7bdc35860c27c08486eb490b4fd9b820fff18fb28381d3c929181900390910190a1607d91909155607c55565b606954600160a01b900460ff16611fa0576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b606e54606d5411611fe8576040805162461bcd60e51b815260206004820152600d60248201526c1313d0d2d7d4d3d31117d3d555609a1b604482015290519081900360640190fd5b6001600160a01b038416612035576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b6001600160a01b038416600090815260726020526040812080549091816120a55761205f8361478e565b8254915061206d8783614588565b50606b5442016001830181905560405182906001600160a01b038916906000906000805160206159be833981519152908290a461216d565b428360010154111561211557606b5460018401546120c89163ffffffff6146cd16565b600184018190556040805182815290519192506001600160a01b038916917f872bd7c99ad5e7b6ed7f0a890f348839cb8e225c9deaa3909afedae54c93d17d9181900360200190a261216d565b50606b5442016001830181905561212d82600061464b565b6040805182815290516001600160a01b038916917f872bd7c99ad5e7b6ed7f0a890f348839cb8e225c9deaa3909afedae54c93d17d919081900360200190a25b60008060006121b38a8a8a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061425a92505050565b91945092509050811561222d57606a5460408051633652466360e01b8152600481018590526024810184905290516001600160a01b039092169163365246639160448082019260009290919082900301818387803b15801561221457600080fd5b505af1158015612228573d6000803e3d6000fd5b505050505b606a546001600160a01b031663939d9f1f846122488c612669565b612253576000612255565b8b5b6040518363ffffffff1660e01b815260040180838152602001826001600160a01b03166001600160a01b0316815260200192505050600060405180830381600087803b1580156122a457600080fd5b505af11580156122b8573d6000803e3d6000fd5b5050606954600092506001600160a01b03161590506122f857506069548b906001600160a01b03166122f28133308563ffffffff6147a316565b506122fb565b50345b83811015612345576040805162461bcd60e51b8152602060048201526012602482015271494e53554646494349454e545f56414c554560701b604482015290519081900360640190fd5b6070546001600160a01b03161561245457607060009054906101000a90046001600160a01b03166001600160a01b03166398499657338d8d8d8d8a886040518863ffffffff1660e01b815260040180886001600160a01b03166001600160a01b03168152602001876001600160a01b03166001600160a01b03168152602001866001600160a01b03166001600160a01b03168152602001806020018481526020018381526020018281038252868682818152602001925080828437600081840152601f19601f82011690508083019250505098505050505050505050600060405180830381600087803b15801561243b57600080fd5b505af115801561244f573d6000803e3d6000fd5b505050505b505050505050505050505050565b606954600160a01b900460ff1681565b611e10838383604051806020016040528060008152506135da565b6075602052600090815260409020546001600160a01b031681565b6000606e5482106124ef576040805162461bcd60e51b815260206004820152600c60248201526b4f55545f4f465f52414e474560a01b604482015290519081900360640190fd5b5090565b600061199a60678363ffffffff6147fd16565b600061199a82614864565b61251a33613232565b6125555760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b611e1060788383615727565b61256a33613232565b6125a55760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b6125b660678263ffffffff61496b16565b6040516001600160a01b038216907f684f8a71407db0c334454ebe9c9b288549317893a20b10dc779ec5c118dcd12190600090a250565b607c5481565b60008181526073602052604081205482906001600160a01b031661264c576040805162461bcd60e51b815260206004820152600b60248201526a4e4f5f535543485f4b455960a81b604482015290519081900360640190fd5b50506000908152607360205260409020546001600160a01b031690565b6001600160a01b0316600090815260726020526040902060010154421090565b600054610100900460ff16806126a257506126a26149ec565b806126b0575060005460ff16155b6126eb5760405162461bcd60e51b815260040180806020018281038252602e815260200180615990602e913960400191505060405180910390fd5b600054610100900460ff16158015612716576000805460ff1961ff0019909116610100171660011790555b61271f856149f2565b612727614ac1565b61273387878686614ad6565b61273c82614b6c565b612744614b98565b61274c614baa565b61275587614bb2565b61275e87614bd0565b61276e6380ac58cd60e01b614bee565b8015612780576000805461ff00191690555b50505050505050565b60006001600160a01b0382166127d8576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b6127e182612669565b6127ec5760006127ef565b60015b60ff1692915050565b606d5481565b61280733613232565b6128425760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b61284e60798383615727565b507f8868e22e84ebf32da89b2ebcb0ac642816304ea3863b257f240df9098719cb97828260405180806020018281038252848482818152602001925080828437600083820152604051601f909101601f19169092018290039550909350505050a15050565b600054610100900460ff16806128cc57506128cc6149ec565b806128da575060005460ff16155b6129155760405162461bcd60e51b815260040180806020018281038252602e815260200180615990602e913960400191505060405180910390fd5b600054610100900460ff16158015612940576000805460ff1961ff0019909116610100171660011790555b6129506301ffc9a760e01b614bee565b8015612962576000805461ff00191690555b50565b61296e336124f3565b8061297d575061297d33613232565b6129b85760405162461bcd60e51b81526004018080602001828103825260488152602001806158e46048913960600191505060405180910390fd5b60005b858110156127805760008787838181106129d157fe5b905060200201356001600160a01b0316905060008686848181106129f157fe5b9050602002013590506000858585818110612a0857fe5b905060200201356001600160a01b0316905060006001600160a01b0316836001600160a01b03161415612a74576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b6001600160a01b038316600090815260726020526040902060018101548311612ad7576040805162461bcd60e51b815260206004820152601060248201526f414c52454144595f4f574e535f4b455960801b604482015290519081900360640190fd5b805480612af457612ae78261478e565b508054612af48582614588565b612afe818461464b565b6040516001600160a01b0384169082907f9d2895c45a420624de863a2f437b022d879f457bf7a829044055a10c5a6fd5e390600090a36001820184905560405181906001600160a01b038716906000906000805160206159be833981519152908290a45050600190930192506129bb915050565b612b7b33613232565b612bb65760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b6040805182815290517f0496ed1e61eb69727f9659a8e859288db4758ffb1f744d1c1424634f90a257f49181900360200190a1607b55565b600030604051808061582a60259139604080519182900360250182206001600160a01b03881660009081526068602081815291849020546bffffffffffffffffffffffff19606098891b811684880152603487019490945260548601529588901b90911660748401528151808403909501855260889092019052825192019190912091505092915050565b60745490565b60795460609060026000196101006001841615020190911604612ddc57606a60009054906101000a90046001600160a01b03166001600160a01b031663cec410526040518163ffffffff1660e01b815260040160006040518083038186803b158015612cea57600080fd5b505afa158015612cfe573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015612d2757600080fd5b8101908080516040519392919084600160201b821115612d4657600080fd5b908301906020820185811115612d5b57600080fd5b8251600160201b811182820188101715612d7457600080fd5b82525081516020918201929091019080838360005b83811015612da1578181015183820152602001612d89565b50505050905090810190601f168015612dce5780820380516001836020036101000a031916815260200191505b5060405250505090506119b0565b6079805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015612e625780601f10612e3757610100808354040283529160200191612e62565b820191906000526020600020905b815481529060010190602001808311612e4557829003601f168201915b505050505090506119b0565b6001600160a01b031660009081526072602052604090205490565b612e9233613232565b612ecd5760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b81612ed781612669565b612f18576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b611e108383614c72565b600091825260736020526040909120546001600160a01b0391821691161490565b6069546001600160a01b031681565b606954600160a01b900460ff16612fa2576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b6001600160a01b038216331415612fef576040805162461bcd60e51b815260206004820152600c60248201526b20a8282927ab22afa9a2a62360a11b604482015290519081900360640190fd5b3360008181526077602090815260408083206001600160a01b03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b61306633613232565b6130a15760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b606954600160a01b900460ff166130f1576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b606c546069546001600160a01b03908116908316158061317557506000836001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561314757600080fd5b505afa15801561315b573d6000803e3d6000fd5b505050506040513d602081101561317157600080fd5b5051115b6131b6576040805162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a22faa27a5a2a760991b604482015290519081900360640190fd5b606c849055606980546001600160a01b0319166001600160a01b038581169190911791829055604080518581526020810188905284831681830152929091166060830152517f3615065ccf48367ac483ac86701248e2e5ff55bdd9be845007d34a3b68d719d4916080908290030190a150505050565b607d5481565b600061199a60668363ffffffff6147fd16565b6001600160a01b031660009081526072602052604090206001015490565b61326c33613232565b6132a75760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b6001600160a01b03821615806132ca57506132ca826001600160a01b0316614d6d565b61331b576040805162461bcd60e51b815260206004820152601860248201527f494e56414c49445f4f4e5f4b45595f534f4c445f484f4f4b0000000000000000604482015290519081900360640190fd5b6001600160a01b038116158061333e575061333e816001600160a01b0316614d6d565b61338f576040805162461bcd60e51b815260206004820152601a60248201527f494e56414c49445f4f4e5f4b45595f43414e43454c5f484f4f4b000000000000604482015290519081900360640190fd5b607080546001600160a01b039384166001600160a01b03199182161790915560718054929093169116179055565b60008281526073602052604090205482906001600160a01b0316613416576040805162461bcd60e51b815260206004820152600b60248201526a4e4f5f535543485f4b455960a81b604482015290519081900360640190fd5b61342083336141d7565b8061342f575061342f33613232565b613480576040805162461bcd60e51b815260206004820152601f60248201527f554e415554484f52495a45445f4b45595f4d414e414745525f55504441544500604482015290519081900360640190fd5b611e10838361464b565b6134948533612bee565b85858585836001600160a01b031660016134ad87614da4565b85858560405160008152602001604052604051808581526020018460ff1660ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015613507573d6000803e3d6000fd5b505050602060405103516001600160a01b031614613560576040805162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b604482015290519081900360640190fd5b6001600160a01b038416600081815260686020908152604091829020805460010190819055825190815291517ff5d035b703f1ad8d403dd02e821d04257acafc5f6c5d70a3907bd8abf33a2e0f9281900390910190a260006135c1876125f3565b905060006135ce82614864565b90506124548282614c72565b6135e58484846119c8565b6135f184848484614df5565b613642576040805162461bcd60e51b815260206004820152601d60248201527f4e4f4e5f434f4d504c49414e545f4552433732315f5245434549564552000000604482015290519081900360640190fd5b50505050565b61365133613232565b61368c5760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b606954600160a01b900460ff166136dc576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b6040517f25a311358326fb18c62efc24bc28d3126acee8d2a67fd8b2145b757dc8bd1bc190600090a16069805460ff60a01b19169055565b60008181526073602052604090205460609082906001600160a01b0316613770576040805162461bcd60e51b815260206004820152600b60248201526a4e4f5f535543485f4b455960a81b604482015290519081900360640190fd5b607a54606090600260001961010060018416150201909116046138cd57606a60009054906101000a90046001600160a01b03166001600160a01b031663a998e9fb6040518163ffffffff1660e01b815260040160006040518083038186803b1580156137db57600080fd5b505afa1580156137ef573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561381857600080fd5b8101908080516040519392919084600160201b82111561383757600080fd5b90830190602082018581111561384c57600080fd5b8251600160201b81118282018810171561386557600080fd5b82525081516020918201929091019080838360005b8381101561389257818101518382015260200161387a565b50505050905090810190601f1680156138bf5780820380516001836020036101000a031916815260200191505b50604052505050905061395b565b607a805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156139535780601f1061392857610100808354040283529160200191613953565b820191906000526020600020905b81548152906001019060200180831161393657829003601f168201915b505050505090505b61399961396730614f28565b604051806040016040528060018152602001602f60f81b81525061398a876150a4565b8492919063ffffffff61516816565b949350505050565b600790565b6139af33613232565b6139ea5760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b6139fb60668263ffffffff61496b16565b6040516001600160a01b038216907f91d5c045d5bd98bf59a379b259ebca05b93bf79af1845fdf87e3172385d4c7f790600090a250565b80613a3d81336141d7565b80613a4d5750613a4d8133614239565b80613a755750600081815260736020526040902054613a75906001600160a01b031633613b82565b613ab4576040805162461bcd60e51b815260206004820152601c60248201526000805160206158c4833981519152604482015290519081900360640190fd5b6000613abf836125f3565b90506000613acc82614864565b90506136428282614c72565b60006001600160a01b038316613af957506001600160a01b0381163161199a565b826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015613b4f57600080fd5b505afa158015613b63573d6000803e3d6000fd5b505050506040513d6020811015613b7957600080fd5b5051905061199a565b6001600160a01b038083166000908152607260209081526040808320548084526075909252822054919290911680613be5575050506001600160a01b0380831660009081526077602090815260408083209385168352929052205460ff1661199a565b6001600160a01b0390811660009081526077602090815260408083209387168352929052205460ff16915061199a9050565b613c2860663363ffffffff61472716565b60405133907f42885193b8178d25fca25a38e6fcc93918501e91be06d85e0c8afb3bad95238090600090a2565b606954600160a01b900460ff16613ca5576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b81613cb081336141d7565b80613cc05750613cc08133614239565b80613ce85750600081815260736020526040902054613ce8906001600160a01b031633613b82565b613d27576040805162461bcd60e51b815260206004820152601c60248201526000805160206158c4833981519152604482015290519081900360640190fd5b612710607b5410613d78576040805162461bcd60e51b815260206004820152601660248201527512d15657d514905394d1915494d7d11254d05093115160521b604482015290519081900360640190fd5b6001600160a01b038416613dc5576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b6000838152607360205260409020546001600160a01b0316613de681612669565b613e27576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b6001600160a01b0380821660009081526072602052604080822092881682528120805460018401549192909142900381613e61878a61411c565b90506000613e758a8363ffffffff6146cd16565b905082811015613e9357899350613e8e8b826000614466565b613ed7565b613e9d888461411c565b42600189015560405181850395509092508b907f59f2fe866dd27a1c2d34115520888c3150365cbc931aab97fa88c4b9ab40b79590600090a25b84613f1e57613ee58661478e565b85549450613ef38c86614588565b60405185906001600160a01b038e16906000906000805160206159be833981519152908290a4613f34565b42866001015411613f3457613f3485600061464b565b613f4085856001614466565b848c6001600160a01b0316896001600160a01b03166000805160206159be83398151915260405160405180910390a4613f8a888d8d60405180602001604052806000815250614df5565b612454576040805162461bcd60e51b815260206004820152601d60248201527f4e4f4e5f434f4d504c49414e545f4552433732315f5245434549564552000000604482015290519081900360640190fd5b613fe433613232565b80613ff95750606f546001600160a01b031633145b61404a576040805162461bcd60e51b815260206004820181905260248201527f4f4e4c595f4c4f434b5f4d414e414745525f4f525f42454e4546494349415259604482015290519081900360640190fd5b60006140568330613ad8565b9050600082158061406657508183115b156140ba57600082116140b3576040805162461bcd60e51b815260206004820152601060248201526f4e4f545f454e4f5547485f46554e445360801b604482015290519081900360640190fd5b50806140bd565b50815b606f546040805183815290516001600160a01b039283169287169133917f342e7ff505a8a0364cd0dc2ff195c315e43bce86b204846ecd36913e117b109e9181900360200190a4606f546136429085906001600160a01b0316836152b9565b60008261412881612669565b614169576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b6001600160a01b03841660009081526072602052604081209080856141965742836001015403915061419a565b8591505b6127106141b2607b548461530690919063ffffffff16565b816141b957fe5b04979650505050505050565b60686020526000908152604090205481565b6000828152607560205260408120546001600160a01b038381169116148061422457506000838152607560205260409020546001600160a01b031615801561422457506142248383612f22565b156142315750600161199a565b50600061199a565b600091825260766020526040909120546001600160a01b0391821691161490565b607054600090819081906001600160a01b03161561436e5760705460405163221c1fd160e01b815233600482018181526001600160a01b038a811660248501528981166044850152608060648501908152895160848601528951919095169463221c1fd1948c938c938c93919260a40190602085019080838360005b838110156142ee5781810151838201526020016142d6565b50505050905090810190601f16801561431b5780820380516001836020036101000a031916815260200191505b509550505050505060206040518083038186803b15801561433b57600080fd5b505afa15801561434f573d6000803e3d6000fd5b505050506040513d602081101561436557600080fd5b50519250614374565b606c5492505b821561445d57606a5460408051630cb175e360e01b81526001600160a01b038981166004830152602482018790528251931692630cb175e392604480840193919291829003018186803b1580156143ca57600080fd5b505afa1580156143de573d6000803e3d6000fd5b505050506040513d60408110156143f457600080fd5b508051602090910151909250905082821115614457576040805162461bcd60e51b815260206004820152601c60248201527f494e56414c49445f444953434f554e545f46524f4d5f554e4c4f434b00000000604482015290519081900360640190fd5b81830392505b93509350939050565b6000838152607360205260409020546001600160a01b0316806144c3576040805162461bcd60e51b815260206004820152601060248201526f4e4f4e5f4558495354454e545f4b455960801b604482015290519081900360640190fd5b6001600160a01b0381166000908152607260205260408120600181015490916144eb84612669565b9050841561452e57801561451357614509828763ffffffff6146cd16565b6001840155614529565b614523428763ffffffff6146cd16565b60018401555b614544565b61453e828763ffffffff61535f16565b60018401555b604080518781528615156020820152815189927fe9408df99703ae33a9d01185bcad328ea8683fb1f920da9c30959c192f21b5b3928290030190a250505050505050565b6000818152607360205260409020546001600160a01b0383811691161461460c5760748054600181019091557f19a0b39aa25ac793b5f6e9a0534364cc0b3fd1ea9b651e79c7f50a59d48ef8130180546001600160a01b0384166001600160a01b031991821681179092556000838152607360205260409020805490911690911790555b5050565b6000818152607660205260409020546001600160a01b03161561296257600090815260766020526040902080546001600160a01b0319169055565b6000828152607560205260409020546001600160a01b0382811691161461460c57600082815260756020526040902080546001600160a01b0319166001600160a01b03831617905561469c82614610565b60405160009083907f9d2895c45a420624de863a2f437b022d879f457bf7a829044055a10c5a6fd5e3908390a35050565b600082820183811015611db9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b61473182826147fd565b61476c5760405162461bcd60e51b815260040180806020018281038252602181526020018061592c6021913960400191505060405180910390fd5b6001600160a01b0316600090815260209190915260409020805460ff19169055565b805461296257606e8054600101908190559055565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526136429085906153a1565b60006001600160a01b0382166148445760405162461bcd60e51b815260040180806020018281038252602281526020018061596e6022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b60008161487081612669565b6148b1576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b6001600160a01b03831660009081526072602052604090206001810154606b54607d5442909203918201106148ea57606c54935061490b565b606b54606c54614900908363ffffffff61530616565b8161490757fe5b0493505b607d54158061491f5750606b54607d548201105b15614963576000612710614940607c54606c5461530690919063ffffffff16565b8161494757fe5b0490508085111561495c578085039450614961565b600094505b505b505050919050565b61497582826147fd565b156149c7576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b303b1590565b606980546001600160a01b0319166001600160a01b0383169081179091551580614a8057506000816001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015614a5257600080fd5b505afa158015614a66573d6000803e3d6000fd5b505050506040513d6020811015614a7c57600080fd5b5051115b612962576040805162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a22faa27a5a2a760991b604482015290519081900360640190fd5b6069805460ff60a01b1916600160a01b179055565b63bbf81e00831115614b2f576040805162461bcd60e51b815260206004820152601860248201527f4d41585f45585049524154494f4e5f3130305f59454152530000000000000000604482015290519081900360640190fd5b606a8054336001600160a01b031991821617909155606f80549091166001600160a01b039590951694909417909355606b91909155606c55606d55565b614b746128b3565b8051614b879060789060208401906157a1565b50612962635b5e139f60e01b614bee565b614ba863780e9d6360e01b614bee565b565b6103e8607c55565b614bbb81613232565b6129625761296260668263ffffffff61496b16565b614bd9816124f3565b6129625761296260678263ffffffff61496b16565b6001600160e01b03198082161415614c4d576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152603360205260409020805460ff19166001179055565b6001600160a01b03821660008181526072602090815260409182902080548351868152935191943394909391927f0a7068a9989857441c039a14a42b67ed71dd1fcfe5a9b17cc87b252e47bce528929181900390910190a44260018201558115614ced57606954614ced906001600160a01b031684846152b9565b6071546001600160a01b031615611e10576071546040805163b499b6c560e01b81523360048201526001600160a01b038681166024830152604482018690529151919092169163b499b6c591606480830192600092919082900301818387803b158015614d5957600080fd5b505af1158015612780573d6000803e3d6000fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906139995750141592915050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b6000614e09846001600160a01b0316614d6d565b614e1557506001613999565b604051630a85bd0160e11b815233600482018181526001600160a01b03888116602485015260448401879052608060648501908152865160848601528651600095928a169463150b7a029490938c938b938b939260a4019060208501908083838e5b83811015614e8f578181015183820152602001614e77565b50505050905090810190601f168015614ebc5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015614ede57600080fd5b505af1158015614ef2573d6000803e3d6000fd5b505050506040513d6020811015614f0857600080fd5b50516001600160e01b031916630a85bd0160e11b14915050949350505050565b604080518082018252601081526f181899199a1a9b1b9c1cb0b131b232b360811b60208201528151602a80825260608281019094526001600160a01b03851692918491602082018180388339019050509050600360fc1b81600081518110614f8c57fe5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110614fb557fe5b60200101906001600160f81b031916908160001a90535060005b601481101561509b578260048583600c0160208110614fea57fe5b1a60f81b6001600160f81b031916901c60f81c60ff168151811061500a57fe5b602001015160f81c60f81b82826002026002018151811061502757fe5b60200101906001600160f81b031916908160001a905350828482600c016020811061504e57fe5b825191901a600f1690811061505f57fe5b602001015160f81c60f81b82826002026003018151811061507c57fe5b60200101906001600160f81b031916908160001a905350600101614fcf565b50949350505050565b606081806150cb5750506040805180820190915260018152600360fc1b6020820152611494565b8260005b81156150e357600101600a820491506150cf565b6060816040519080825280601f01601f191660200182016040528015615110576020820181803883390190505b50905060001982015b841561515e57600a850660300160f81b8282806001900393508151811061513c57fe5b60200101906001600160f81b031916908160001a905350600a85049450615119565b5095945050505050565b6060848484846040516020018085805190602001908083835b602083106151a05780518252601f199092019160209182019101615181565b51815160209384036101000a600019018019909216911617905287519190930192870191508083835b602083106151e85780518252601f1990920191602091820191016151c9565b51815160209384036101000a600019018019909216911617905286519190930192860191508083835b602083106152305780518252601f199092019160209182019101615211565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b602083106152785780518252601f199092019160209182019101615259565b6001836020036101000a0380198251168184511680821785525050505050509050019450505050506040516020818303038152906040529050949350505050565b8015611e10576001600160a01b0383166152eb576152e66001600160a01b0383168263ffffffff61555916565b611e10565b826136426001600160a01b038216848463ffffffff61563e16565b6000826153155750600061199a565b8282028284828161532257fe5b0414611db95760405162461bcd60e51b815260040180806020018281038252602181526020018061594d6021913960400191505060405180910390fd5b6000611db983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250615690565b6153b3826001600160a01b0316614d6d565b615404576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106154425780518252601f199092019160209182019101615423565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146154a4576040519150601f19603f3d011682016040523d82523d6000602084013e6154a9565b606091505b509150915081615500576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156136425780806020019051602081101561551c57600080fd5b50516136425760405162461bcd60e51b815260040180806020018281038252602a8152602001806159de602a913960400191505060405180910390fd5b804710156155ae576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d80600081146155f9576040519150601f19603f3d011682016040523d82523d6000602084013e6155fe565b606091505b5050905080611e105760405162461bcd60e51b815260040180806020018281038252603a81526020018061588a603a913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611e109084906153a1565b6000818484111561571f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156156e45781810151838201526020016156cc565b50505050905090810190601f1680156157115780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106157685782800160ff19823516178555615795565b82800160010185558215615795579182015b8281111561579557823582559160200191906001019061577a565b506124ef92915061580f565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106157e257805160ff1916838001178555615795565b82800160010185558215615795579182015b828111156157955782518255916020019190600101906157f4565b6119b091905b808211156124ef576000815560010161581556fe63616e63656c416e64526566756e64466f722861646472657373205f6b65794f776e6572294d6978696e4c6f636b4d616e616765723a2063616c6c657220646f6573206e6f74206861766520746865204c6f636b4d616e6167657220726f6c65416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d617920686176652072657665727465644f4e4c595f4b45595f4d414e414745525f4f525f415050524f564544000000004d6978696e4b65794772616e7465723a2063616c6c657220646f6573206e6f74206861766520746865204b65794772616e746572206f72204c6f636b4d616e6167657220726f6c65526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c65536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820e6570f8bf01717c6b35e17be321624c59c8f788bfa8f0a41b0287b41cb66eac564736f6c63430005110032

Deployed Bytecode

0x6080604052600436106103fa5760003560e01c80636eadde4311610213578063aae4b8f711610123578063d2503485116100ab578063f0ba60401161007a578063f0ba60401461137d578063f12c6b6e14611392578063f3fef3a3146113d1578063fc42b58f1461140a578063fe72e4c114611443576103fa565b8063d2503485146112aa578063d32bfb6c146112dd578063d4fac45d14611307578063e985e9c514611342576103fa565b8063b2e0f6e7116100f2578063b2e0f6e714611137578063b88d4fde14611185578063c1c98d0314611256578063c87b56dd1461126b578063d1bbd49c14611295576103fa565b8063aae4b8f71461105d578063abdf82ce14611090578063ad0e0a4d146110c3578063b11d7ec1146110fe576103fa565b806393fd1844116101a6578063994a8a7111610175578063994a8a7114610f865780639d76ea5814610fbf578063a22cb46514610fd4578063a2e4cd2e1461100f578063a375cb0514611048576103fa565b806393fd184414610ef057806395d89b4114610f05578063970aaeb714610f1a57806397aa390a14610f4d576103fa565b80638129fc1c116101e25780638129fc1c14610d5b57806381a3c94314610d705780638577a6d514610e8b5780638d0361fc14610eb5576103fa565b80636eadde4314610bbc57806370a0823114610c9857806374b6c10614610ccb578063782a4ade14610ce0576103fa565b80632f745c591161030e5780634d025fed116102a1578063550ef3a811610270578063550ef3a814610a9c578063564aa99d14610b1757806356e0d51f14610b4a5780636352211e14610b5f5780636d8ea5b414610b89576103fa565b80634d025fed146109e25780634f6ccce714610a0c57806352b0f63814610a3657806352d6a8e414610a69576103fa565b806339f46986116102dd57806339f46986146108cc5780633f33133a146108fc5780634136aa351461098a57806342842e0e1461099f576103fa565b80632f745c59146107d957806330176e131461081257806335576ad01461088d57806338af3eed146108b7576103fa565b806310803b7211610391578063183767da11610360578063183767da14610724578063217751bc1461073957806323b872dd1461074e5780632af9162a146107915780632d33dd5b146107c4576103fa565b806310803b721461066557806310e56973146106e557806311a4c03a146106fa57806318160ddd1461070f576103fa565b8063095ea7b3116103cd578063095ea7b31461053e578063097ba333146105775780630aaffd2a1461061d5780630f15023b14610650576103fa565b806301ffc9a7146103fc578063025e7c271461044457806306fdde031461048a578063081812fc14610514575b005b34801561040857600080fd5b506104306004803603602081101561041f57600080fd5b50356001600160e01b031916611476565b604080519115158252519081900360200190f35b34801561045057600080fd5b5061046e6004803603602081101561046757600080fd5b5035611499565b604080516001600160a01b039092168252519081900360200190f35b34801561049657600080fd5b5061049f6114c0565b6040805160208082528351818301528351919283929083019185019080838360005b838110156104d95781810151838201526020016104c1565b50505050905090810190601f1680156105065780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561052057600080fd5b5061046e6004803603602081101561053757600080fd5b503561154e565b34801561054a57600080fd5b506103fa6004803603604081101561056157600080fd5b506001600160a01b0381351690602001356115c4565b34801561058357600080fd5b5061060b6004803603606081101561059a57600080fd5b6001600160a01b038235811692602081013590911691810190606081016040820135600160201b8111156105cd57600080fd5b8201836020820111156105df57600080fd5b803590602001918460018302840111600160201b8311171561060057600080fd5b50909250905061174b565b60408051918252519081900360200190f35b34801561062957600080fd5b506103fa6004803603602081101561064057600080fd5b50356001600160a01b031661179a565b34801561065c57600080fd5b5061046e611877565b34801561067157600080fd5b506106956004803603604081101561068857600080fd5b5080359060200135611886565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156106d15781810151838201526020016106b9565b505050509050019250505060405180910390f35b3480156106f157600080fd5b5061060b6119a0565b34801561070657600080fd5b5061060b6119a6565b34801561071b57600080fd5b5061060b6119ac565b34801561073057600080fd5b5061060b6119b3565b34801561074557600080fd5b5061046e6119b9565b34801561075a57600080fd5b506103fa6004803603606081101561077157600080fd5b506001600160a01b038135811691602081013590911690604001356119c8565b34801561079d57600080fd5b506103fa600480360360208110156107b457600080fd5b50356001600160a01b0316611cc7565b3480156107d057600080fd5b5061046e611d53565b3480156107e557600080fd5b5061060b600480360360408110156107fc57600080fd5b506001600160a01b038135169060200135611d62565b34801561081e57600080fd5b506103fa6004803603602081101561083557600080fd5b810190602081018135600160201b81111561084f57600080fd5b82018360208201111561086157600080fd5b803590602001918460018302840111600160201b8311171561088257600080fd5b509092509050611dc0565b34801561089957600080fd5b506103fa600480360360208110156108b057600080fd5b5035611e15565b3480156108c357600080fd5b5061046e611eb7565b3480156108d857600080fd5b506103fa600480360360408110156108ef57600080fd5b5080359060200135611ec6565b6103fa6004803603608081101561091257600080fd5b8135916001600160a01b03602082013581169260408301359091169190810190608081016060820135600160201b81111561094c57600080fd5b82018360208201111561095e57600080fd5b803590602001918460018302840111600160201b8311171561097f57600080fd5b509092509050611f50565b34801561099657600080fd5b50610430612462565b3480156109ab57600080fd5b506103fa600480360360608110156109c257600080fd5b506001600160a01b03813581169160208101359091169060400135612472565b3480156109ee57600080fd5b5061046e60048036036020811015610a0557600080fd5b503561248d565b348015610a1857600080fd5b5061060b60048036036020811015610a2f57600080fd5b50356124a8565b348015610a4257600080fd5b5061043060048036036020811015610a5957600080fd5b50356001600160a01b03166124f3565b348015610a7557600080fd5b5061060b60048036036020811015610a8c57600080fd5b50356001600160a01b0316612506565b348015610aa857600080fd5b506103fa60048036036020811015610abf57600080fd5b810190602081018135600160201b811115610ad957600080fd5b820183602082011115610aeb57600080fd5b803590602001918460018302840111600160201b83111715610b0c57600080fd5b509092509050612511565b348015610b2357600080fd5b506103fa60048036036020811015610b3a57600080fd5b50356001600160a01b0316612561565b348015610b5657600080fd5b5061060b6125ed565b348015610b6b57600080fd5b5061046e60048036036020811015610b8257600080fd5b50356125f3565b348015610b9557600080fd5b5061043060048036036020811015610bac57600080fd5b50356001600160a01b0316612669565b348015610bc857600080fd5b506103fa600480360360c0811015610bdf57600080fd5b6001600160a01b03823581169260208101359260408201359092169160608201359160808101359181019060c0810160a0820135600160201b811115610c2457600080fd5b820183602082011115610c3657600080fd5b803590602001918460018302840111600160201b83111715610c5757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612689945050505050565b348015610ca457600080fd5b5061060b60048036036020811015610cbb57600080fd5b50356001600160a01b0316612789565b348015610cd757600080fd5b5061060b6127f8565b348015610cec57600080fd5b506103fa60048036036020811015610d0357600080fd5b810190602081018135600160201b811115610d1d57600080fd5b820183602082011115610d2f57600080fd5b803590602001918460018302840111600160201b83111715610d5057600080fd5b5090925090506127fe565b348015610d6757600080fd5b506103fa6128b3565b348015610d7c57600080fd5b506103fa60048036036060811015610d9357600080fd5b810190602081018135600160201b811115610dad57600080fd5b820183602082011115610dbf57600080fd5b803590602001918460208302840111600160201b83111715610de057600080fd5b919390929091602081019035600160201b811115610dfd57600080fd5b820183602082011115610e0f57600080fd5b803590602001918460208302840111600160201b83111715610e3057600080fd5b919390929091602081019035600160201b811115610e4d57600080fd5b820183602082011115610e5f57600080fd5b803590602001918460208302840111600160201b83111715610e8057600080fd5b509092509050612965565b348015610e9757600080fd5b506103fa60048036036020811015610eae57600080fd5b5035612b72565b348015610ec157600080fd5b5061060b60048036036040811015610ed857600080fd5b506001600160a01b0381358116916020013516612bee565b348015610efc57600080fd5b5061060b612c79565b348015610f1157600080fd5b5061049f612c7f565b348015610f2657600080fd5b5061060b60048036036020811015610f3d57600080fd5b50356001600160a01b0316612e6e565b348015610f5957600080fd5b506103fa60048036036040811015610f7057600080fd5b506001600160a01b038135169060200135612e89565b348015610f9257600080fd5b5061043060048036036040811015610fa957600080fd5b50803590602001356001600160a01b0316612f22565b348015610fcb57600080fd5b5061046e612f43565b348015610fe057600080fd5b506103fa60048036036040811015610ff757600080fd5b506001600160a01b0381351690602001351515612f52565b34801561101b57600080fd5b506103fa6004803603604081101561103257600080fd5b50803590602001356001600160a01b031661305d565b34801561105457600080fd5b5061060b61322c565b34801561106957600080fd5b506104306004803603602081101561108057600080fd5b50356001600160a01b0316613232565b34801561109c57600080fd5b5061060b600480360360208110156110b357600080fd5b50356001600160a01b0316613245565b3480156110cf57600080fd5b506103fa600480360360408110156110e657600080fd5b506001600160a01b0381358116916020013516613263565b34801561110a57600080fd5b506103fa6004803603604081101561112157600080fd5b50803590602001356001600160a01b03166133bd565b34801561114357600080fd5b506103fa600480360360a081101561115a57600080fd5b506001600160a01b038135169060ff602082013516906040810135906060810135906080013561348a565b34801561119157600080fd5b506103fa600480360360808110156111a857600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b8111156111e257600080fd5b8201836020820111156111f457600080fd5b803590602001918460018302840111600160201b8311171561121557600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506135da945050505050565b34801561126257600080fd5b506103fa613648565b34801561127757600080fd5b5061049f6004803603602081101561128e57600080fd5b5035613714565b3480156112a157600080fd5b5061060b6139a1565b3480156112b657600080fd5b506103fa600480360360208110156112cd57600080fd5b50356001600160a01b03166139a6565b3480156112e957600080fd5b506103fa6004803603602081101561130057600080fd5b5035613a32565b34801561131357600080fd5b5061060b6004803603604081101561132a57600080fd5b506001600160a01b0381358116916020013516613ad8565b34801561134e57600080fd5b506104306004803603604081101561136557600080fd5b506001600160a01b0381358116916020013516613b82565b34801561138957600080fd5b506103fa613c17565b34801561139e57600080fd5b506103fa600480360360608110156113b557600080fd5b506001600160a01b038135169060208101359060400135613c55565b3480156113dd57600080fd5b506103fa600480360360408110156113f457600080fd5b506001600160a01b038135169060200135613fdb565b34801561141657600080fd5b5061060b6004803603604081101561142d57600080fd5b506001600160a01b03813516906020013561411c565b34801561144f57600080fd5b5061060b6004803603602081101561146657600080fd5b50356001600160a01b03166141c5565b6001600160e01b0319811660009081526033602052604090205460ff165b919050565b607481815481106114a657fe5b6000918252602090912001546001600160a01b0316905081565b6078805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156115465780601f1061151b57610100808354040283529160200191611546565b820191906000526020600020905b81548152906001019060200180831161152957829003601f168201915b505050505081565b60008181526073602052604081205482906001600160a01b03166115a7576040805162461bcd60e51b815260206004820152600b60248201526a4e4f5f535543485f4b455960a81b604482015290519081900360640190fd5b50506000908152607660205260409020546001600160a01b031690565b606954600160a01b900460ff16611614576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b8061161f81336141d7565b8061162f575061162f8133614239565b806116575750600081815260736020526040902054611657906001600160a01b031633613b82565b611696576040805162461bcd60e51b815260206004820152601c60248201526000805160206158c4833981519152604482015290519081900360640190fd5b336001600160a01b03841614156116e3576040805162461bcd60e51b815260206004820152600c60248201526b20a8282927ab22afa9a2a62360a11b604482015290519081900360640190fd5b600082815260766020908152604080832080546001600160a01b0319166001600160a01b038881169182179092556073909352818420549151869492909116917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061178e858585858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061425a92505050565b50909695505050505050565b606f546001600160a01b03163314806117b757506117b733613232565b611808576040805162461bcd60e51b815260206004820152601f60248201527f4f4e4c595f42454e45464943494152595f4f525f4c4f434b4d414e4147455200604482015290519081900360640190fd5b6001600160a01b038116611855576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b606f80546001600160a01b0319166001600160a01b0392909216919091179055565b606a546001600160a01b031681565b6074546060906118d3576040805162461bcd60e51b81526020600482015260136024820152724e4f5f4f55545354414e44494e475f4b45595360681b604482015290519081900360640190fd5b60745482908482029060009082840111156118f6575060745481810392506118fb565b508082015b606083604051908082528060200260200182016040528015611927578160200160208202803883390190505b5090506000835b83811015611991576074818154811061194357fe5b9060005260206000200160009054906101000a90046001600160a01b031683838151811061196d57fe5b6001600160a01b03909216602092830291909101909101526001918201910161192e565b50909450505050505b92915050565b606c5481565b606b5481565b606e545b90565b607b5481565b6071546001600160a01b031681565b606954600160a01b900460ff16611a18576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b82611a2281612669565b611a63576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b81611a6e81336141d7565b80611a7e5750611a7e8133614239565b80611aa65750600081815260736020526040902054611aa6906001600160a01b031633613b82565b611ae5576040805162461bcd60e51b815260206004820152601c60248201526000805160206158c4833981519152604482015290519081900360640190fd5b611aef8386612f22565b611b40576040805162461bcd60e51b815260206004820152601c60248201527f5452414e534645525f46524f4d3a204e4f545f4b45595f4f574e455200000000604482015290519081900360640190fd5b612710607b5410611b91576040805162461bcd60e51b815260206004820152601660248201527512d15657d514905394d1915494d7d11254d05093115160521b604482015290519081900360640190fd5b6001600160a01b038416611bde576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b6000611beb86600061411c565b6001600160a01b03808816600090815260726020526040808220928916825281206001810154939450919290611c249088908690614466565b8154611c4057868255611c378888614588565b611c4087614610565b428111611c6e5760018084015490830155868255611c5f87600061464b565b611c698888614588565b611c8b565b6001830154611c859042830363ffffffff6146cd16565b60018301555b426001840155600080845560405188916001600160a01b03808c1692908d16916000805160206159be83398151915291a4505050505050505050565b611cd033613232565b611d0b5760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b611d1c60678263ffffffff61472716565b6040516001600160a01b038216907f766f6199fea59554b9ff688e413302b9200f85d74811c053c12d945ac6d8dd7a90600090a250565b6070546001600160a01b031681565b60008115611db0576040805162461bcd60e51b815260206004820152601660248201527527a7262cafa7a722afa5a2acafa822a92fa7aba722a960511b604482015290519081900360640190fd5b611db983612e6e565b9392505050565b611dc933613232565b611e045760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b611e10607a8383615727565b505050565b336000908152606860205260409020548111611e6d576040805162461bcd60e51b81526020600482015260126024820152711393d390d157d053149150511657d554d15160721b604482015290519081900360640190fd5b33600081815260686020908152604091829020849055815184815291517ff5d035b703f1ad8d403dd02e821d04257acafc5f6c5d70a3907bd8abf33a2e0f9281900390910190a250565b606f546001600160a01b031681565b611ecf33613232565b611f0a5760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b604080518381526020810183905281517fd6867bc538320e67d7bdc35860c27c08486eb490b4fd9b820fff18fb28381d3c929181900390910190a1607d91909155607c55565b606954600160a01b900460ff16611fa0576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b606e54606d5411611fe8576040805162461bcd60e51b815260206004820152600d60248201526c1313d0d2d7d4d3d31117d3d555609a1b604482015290519081900360640190fd5b6001600160a01b038416612035576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b6001600160a01b038416600090815260726020526040812080549091816120a55761205f8361478e565b8254915061206d8783614588565b50606b5442016001830181905560405182906001600160a01b038916906000906000805160206159be833981519152908290a461216d565b428360010154111561211557606b5460018401546120c89163ffffffff6146cd16565b600184018190556040805182815290519192506001600160a01b038916917f872bd7c99ad5e7b6ed7f0a890f348839cb8e225c9deaa3909afedae54c93d17d9181900360200190a261216d565b50606b5442016001830181905561212d82600061464b565b6040805182815290516001600160a01b038916917f872bd7c99ad5e7b6ed7f0a890f348839cb8e225c9deaa3909afedae54c93d17d919081900360200190a25b60008060006121b38a8a8a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061425a92505050565b91945092509050811561222d57606a5460408051633652466360e01b8152600481018590526024810184905290516001600160a01b039092169163365246639160448082019260009290919082900301818387803b15801561221457600080fd5b505af1158015612228573d6000803e3d6000fd5b505050505b606a546001600160a01b031663939d9f1f846122488c612669565b612253576000612255565b8b5b6040518363ffffffff1660e01b815260040180838152602001826001600160a01b03166001600160a01b0316815260200192505050600060405180830381600087803b1580156122a457600080fd5b505af11580156122b8573d6000803e3d6000fd5b5050606954600092506001600160a01b03161590506122f857506069548b906001600160a01b03166122f28133308563ffffffff6147a316565b506122fb565b50345b83811015612345576040805162461bcd60e51b8152602060048201526012602482015271494e53554646494349454e545f56414c554560701b604482015290519081900360640190fd5b6070546001600160a01b03161561245457607060009054906101000a90046001600160a01b03166001600160a01b03166398499657338d8d8d8d8a886040518863ffffffff1660e01b815260040180886001600160a01b03166001600160a01b03168152602001876001600160a01b03166001600160a01b03168152602001866001600160a01b03166001600160a01b03168152602001806020018481526020018381526020018281038252868682818152602001925080828437600081840152601f19601f82011690508083019250505098505050505050505050600060405180830381600087803b15801561243b57600080fd5b505af115801561244f573d6000803e3d6000fd5b505050505b505050505050505050505050565b606954600160a01b900460ff1681565b611e10838383604051806020016040528060008152506135da565b6075602052600090815260409020546001600160a01b031681565b6000606e5482106124ef576040805162461bcd60e51b815260206004820152600c60248201526b4f55545f4f465f52414e474560a01b604482015290519081900360640190fd5b5090565b600061199a60678363ffffffff6147fd16565b600061199a82614864565b61251a33613232565b6125555760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b611e1060788383615727565b61256a33613232565b6125a55760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b6125b660678263ffffffff61496b16565b6040516001600160a01b038216907f684f8a71407db0c334454ebe9c9b288549317893a20b10dc779ec5c118dcd12190600090a250565b607c5481565b60008181526073602052604081205482906001600160a01b031661264c576040805162461bcd60e51b815260206004820152600b60248201526a4e4f5f535543485f4b455960a81b604482015290519081900360640190fd5b50506000908152607360205260409020546001600160a01b031690565b6001600160a01b0316600090815260726020526040902060010154421090565b600054610100900460ff16806126a257506126a26149ec565b806126b0575060005460ff16155b6126eb5760405162461bcd60e51b815260040180806020018281038252602e815260200180615990602e913960400191505060405180910390fd5b600054610100900460ff16158015612716576000805460ff1961ff0019909116610100171660011790555b61271f856149f2565b612727614ac1565b61273387878686614ad6565b61273c82614b6c565b612744614b98565b61274c614baa565b61275587614bb2565b61275e87614bd0565b61276e6380ac58cd60e01b614bee565b8015612780576000805461ff00191690555b50505050505050565b60006001600160a01b0382166127d8576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b6127e182612669565b6127ec5760006127ef565b60015b60ff1692915050565b606d5481565b61280733613232565b6128425760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b61284e60798383615727565b507f8868e22e84ebf32da89b2ebcb0ac642816304ea3863b257f240df9098719cb97828260405180806020018281038252848482818152602001925080828437600083820152604051601f909101601f19169092018290039550909350505050a15050565b600054610100900460ff16806128cc57506128cc6149ec565b806128da575060005460ff16155b6129155760405162461bcd60e51b815260040180806020018281038252602e815260200180615990602e913960400191505060405180910390fd5b600054610100900460ff16158015612940576000805460ff1961ff0019909116610100171660011790555b6129506301ffc9a760e01b614bee565b8015612962576000805461ff00191690555b50565b61296e336124f3565b8061297d575061297d33613232565b6129b85760405162461bcd60e51b81526004018080602001828103825260488152602001806158e46048913960600191505060405180910390fd5b60005b858110156127805760008787838181106129d157fe5b905060200201356001600160a01b0316905060008686848181106129f157fe5b9050602002013590506000858585818110612a0857fe5b905060200201356001600160a01b0316905060006001600160a01b0316836001600160a01b03161415612a74576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b6001600160a01b038316600090815260726020526040902060018101548311612ad7576040805162461bcd60e51b815260206004820152601060248201526f414c52454144595f4f574e535f4b455960801b604482015290519081900360640190fd5b805480612af457612ae78261478e565b508054612af48582614588565b612afe818461464b565b6040516001600160a01b0384169082907f9d2895c45a420624de863a2f437b022d879f457bf7a829044055a10c5a6fd5e390600090a36001820184905560405181906001600160a01b038716906000906000805160206159be833981519152908290a45050600190930192506129bb915050565b612b7b33613232565b612bb65760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b6040805182815290517f0496ed1e61eb69727f9659a8e859288db4758ffb1f744d1c1424634f90a257f49181900360200190a1607b55565b600030604051808061582a60259139604080519182900360250182206001600160a01b03881660009081526068602081815291849020546bffffffffffffffffffffffff19606098891b811684880152603487019490945260548601529588901b90911660748401528151808403909501855260889092019052825192019190912091505092915050565b60745490565b60795460609060026000196101006001841615020190911604612ddc57606a60009054906101000a90046001600160a01b03166001600160a01b031663cec410526040518163ffffffff1660e01b815260040160006040518083038186803b158015612cea57600080fd5b505afa158015612cfe573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015612d2757600080fd5b8101908080516040519392919084600160201b821115612d4657600080fd5b908301906020820185811115612d5b57600080fd5b8251600160201b811182820188101715612d7457600080fd5b82525081516020918201929091019080838360005b83811015612da1578181015183820152602001612d89565b50505050905090810190601f168015612dce5780820380516001836020036101000a031916815260200191505b5060405250505090506119b0565b6079805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015612e625780601f10612e3757610100808354040283529160200191612e62565b820191906000526020600020905b815481529060010190602001808311612e4557829003601f168201915b505050505090506119b0565b6001600160a01b031660009081526072602052604090205490565b612e9233613232565b612ecd5760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b81612ed781612669565b612f18576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b611e108383614c72565b600091825260736020526040909120546001600160a01b0391821691161490565b6069546001600160a01b031681565b606954600160a01b900460ff16612fa2576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b6001600160a01b038216331415612fef576040805162461bcd60e51b815260206004820152600c60248201526b20a8282927ab22afa9a2a62360a11b604482015290519081900360640190fd5b3360008181526077602090815260408083206001600160a01b03871680855290835292819020805460ff1916861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b61306633613232565b6130a15760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b606954600160a01b900460ff166130f1576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b606c546069546001600160a01b03908116908316158061317557506000836001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561314757600080fd5b505afa15801561315b573d6000803e3d6000fd5b505050506040513d602081101561317157600080fd5b5051115b6131b6576040805162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a22faa27a5a2a760991b604482015290519081900360640190fd5b606c849055606980546001600160a01b0319166001600160a01b038581169190911791829055604080518581526020810188905284831681830152929091166060830152517f3615065ccf48367ac483ac86701248e2e5ff55bdd9be845007d34a3b68d719d4916080908290030190a150505050565b607d5481565b600061199a60668363ffffffff6147fd16565b6001600160a01b031660009081526072602052604090206001015490565b61326c33613232565b6132a75760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b6001600160a01b03821615806132ca57506132ca826001600160a01b0316614d6d565b61331b576040805162461bcd60e51b815260206004820152601860248201527f494e56414c49445f4f4e5f4b45595f534f4c445f484f4f4b0000000000000000604482015290519081900360640190fd5b6001600160a01b038116158061333e575061333e816001600160a01b0316614d6d565b61338f576040805162461bcd60e51b815260206004820152601a60248201527f494e56414c49445f4f4e5f4b45595f43414e43454c5f484f4f4b000000000000604482015290519081900360640190fd5b607080546001600160a01b039384166001600160a01b03199182161790915560718054929093169116179055565b60008281526073602052604090205482906001600160a01b0316613416576040805162461bcd60e51b815260206004820152600b60248201526a4e4f5f535543485f4b455960a81b604482015290519081900360640190fd5b61342083336141d7565b8061342f575061342f33613232565b613480576040805162461bcd60e51b815260206004820152601f60248201527f554e415554484f52495a45445f4b45595f4d414e414745525f55504441544500604482015290519081900360640190fd5b611e10838361464b565b6134948533612bee565b85858585836001600160a01b031660016134ad87614da4565b85858560405160008152602001604052604051808581526020018460ff1660ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015613507573d6000803e3d6000fd5b505050602060405103516001600160a01b031614613560576040805162461bcd60e51b8152602060048201526011602482015270494e56414c49445f5349474e415455524560781b604482015290519081900360640190fd5b6001600160a01b038416600081815260686020908152604091829020805460010190819055825190815291517ff5d035b703f1ad8d403dd02e821d04257acafc5f6c5d70a3907bd8abf33a2e0f9281900390910190a260006135c1876125f3565b905060006135ce82614864565b90506124548282614c72565b6135e58484846119c8565b6135f184848484614df5565b613642576040805162461bcd60e51b815260206004820152601d60248201527f4e4f4e5f434f4d504c49414e545f4552433732315f5245434549564552000000604482015290519081900360640190fd5b50505050565b61365133613232565b61368c5760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b606954600160a01b900460ff166136dc576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b6040517f25a311358326fb18c62efc24bc28d3126acee8d2a67fd8b2145b757dc8bd1bc190600090a16069805460ff60a01b19169055565b60008181526073602052604090205460609082906001600160a01b0316613770576040805162461bcd60e51b815260206004820152600b60248201526a4e4f5f535543485f4b455960a81b604482015290519081900360640190fd5b607a54606090600260001961010060018416150201909116046138cd57606a60009054906101000a90046001600160a01b03166001600160a01b031663a998e9fb6040518163ffffffff1660e01b815260040160006040518083038186803b1580156137db57600080fd5b505afa1580156137ef573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561381857600080fd5b8101908080516040519392919084600160201b82111561383757600080fd5b90830190602082018581111561384c57600080fd5b8251600160201b81118282018810171561386557600080fd5b82525081516020918201929091019080838360005b8381101561389257818101518382015260200161387a565b50505050905090810190601f1680156138bf5780820380516001836020036101000a031916815260200191505b50604052505050905061395b565b607a805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156139535780601f1061392857610100808354040283529160200191613953565b820191906000526020600020905b81548152906001019060200180831161393657829003601f168201915b505050505090505b61399961396730614f28565b604051806040016040528060018152602001602f60f81b81525061398a876150a4565b8492919063ffffffff61516816565b949350505050565b600790565b6139af33613232565b6139ea5760405162461bcd60e51b815260040180806020018281038252603b81526020018061584f603b913960400191505060405180910390fd5b6139fb60668263ffffffff61496b16565b6040516001600160a01b038216907f91d5c045d5bd98bf59a379b259ebca05b93bf79af1845fdf87e3172385d4c7f790600090a250565b80613a3d81336141d7565b80613a4d5750613a4d8133614239565b80613a755750600081815260736020526040902054613a75906001600160a01b031633613b82565b613ab4576040805162461bcd60e51b815260206004820152601c60248201526000805160206158c4833981519152604482015290519081900360640190fd5b6000613abf836125f3565b90506000613acc82614864565b90506136428282614c72565b60006001600160a01b038316613af957506001600160a01b0381163161199a565b826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b158015613b4f57600080fd5b505afa158015613b63573d6000803e3d6000fd5b505050506040513d6020811015613b7957600080fd5b5051905061199a565b6001600160a01b038083166000908152607260209081526040808320548084526075909252822054919290911680613be5575050506001600160a01b0380831660009081526077602090815260408083209385168352929052205460ff1661199a565b6001600160a01b0390811660009081526077602090815260408083209387168352929052205460ff16915061199a9050565b613c2860663363ffffffff61472716565b60405133907f42885193b8178d25fca25a38e6fcc93918501e91be06d85e0c8afb3bad95238090600090a2565b606954600160a01b900460ff16613ca5576040805162461bcd60e51b815260206004820152600f60248201526e1313d0d2d7d11154149150d0551151608a1b604482015290519081900360640190fd5b81613cb081336141d7565b80613cc05750613cc08133614239565b80613ce85750600081815260736020526040902054613ce8906001600160a01b031633613b82565b613d27576040805162461bcd60e51b815260206004820152601c60248201526000805160206158c4833981519152604482015290519081900360640190fd5b612710607b5410613d78576040805162461bcd60e51b815260206004820152601660248201527512d15657d514905394d1915494d7d11254d05093115160521b604482015290519081900360640190fd5b6001600160a01b038416613dc5576040805162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4144445245535360881b604482015290519081900360640190fd5b6000838152607360205260409020546001600160a01b0316613de681612669565b613e27576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b6001600160a01b0380821660009081526072602052604080822092881682528120805460018401549192909142900381613e61878a61411c565b90506000613e758a8363ffffffff6146cd16565b905082811015613e9357899350613e8e8b826000614466565b613ed7565b613e9d888461411c565b42600189015560405181850395509092508b907f59f2fe866dd27a1c2d34115520888c3150365cbc931aab97fa88c4b9ab40b79590600090a25b84613f1e57613ee58661478e565b85549450613ef38c86614588565b60405185906001600160a01b038e16906000906000805160206159be833981519152908290a4613f34565b42866001015411613f3457613f3485600061464b565b613f4085856001614466565b848c6001600160a01b0316896001600160a01b03166000805160206159be83398151915260405160405180910390a4613f8a888d8d60405180602001604052806000815250614df5565b612454576040805162461bcd60e51b815260206004820152601d60248201527f4e4f4e5f434f4d504c49414e545f4552433732315f5245434549564552000000604482015290519081900360640190fd5b613fe433613232565b80613ff95750606f546001600160a01b031633145b61404a576040805162461bcd60e51b815260206004820181905260248201527f4f4e4c595f4c4f434b5f4d414e414745525f4f525f42454e4546494349415259604482015290519081900360640190fd5b60006140568330613ad8565b9050600082158061406657508183115b156140ba57600082116140b3576040805162461bcd60e51b815260206004820152601060248201526f4e4f545f454e4f5547485f46554e445360801b604482015290519081900360640190fd5b50806140bd565b50815b606f546040805183815290516001600160a01b039283169287169133917f342e7ff505a8a0364cd0dc2ff195c315e43bce86b204846ecd36913e117b109e9181900360200190a4606f546136429085906001600160a01b0316836152b9565b60008261412881612669565b614169576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b6001600160a01b03841660009081526072602052604081209080856141965742836001015403915061419a565b8591505b6127106141b2607b548461530690919063ffffffff16565b816141b957fe5b04979650505050505050565b60686020526000908152604090205481565b6000828152607560205260408120546001600160a01b038381169116148061422457506000838152607560205260409020546001600160a01b031615801561422457506142248383612f22565b156142315750600161199a565b50600061199a565b600091825260766020526040909120546001600160a01b0391821691161490565b607054600090819081906001600160a01b03161561436e5760705460405163221c1fd160e01b815233600482018181526001600160a01b038a811660248501528981166044850152608060648501908152895160848601528951919095169463221c1fd1948c938c938c93919260a40190602085019080838360005b838110156142ee5781810151838201526020016142d6565b50505050905090810190601f16801561431b5780820380516001836020036101000a031916815260200191505b509550505050505060206040518083038186803b15801561433b57600080fd5b505afa15801561434f573d6000803e3d6000fd5b505050506040513d602081101561436557600080fd5b50519250614374565b606c5492505b821561445d57606a5460408051630cb175e360e01b81526001600160a01b038981166004830152602482018790528251931692630cb175e392604480840193919291829003018186803b1580156143ca57600080fd5b505afa1580156143de573d6000803e3d6000fd5b505050506040513d60408110156143f457600080fd5b508051602090910151909250905082821115614457576040805162461bcd60e51b815260206004820152601c60248201527f494e56414c49445f444953434f554e545f46524f4d5f554e4c4f434b00000000604482015290519081900360640190fd5b81830392505b93509350939050565b6000838152607360205260409020546001600160a01b0316806144c3576040805162461bcd60e51b815260206004820152601060248201526f4e4f4e5f4558495354454e545f4b455960801b604482015290519081900360640190fd5b6001600160a01b0381166000908152607260205260408120600181015490916144eb84612669565b9050841561452e57801561451357614509828763ffffffff6146cd16565b6001840155614529565b614523428763ffffffff6146cd16565b60018401555b614544565b61453e828763ffffffff61535f16565b60018401555b604080518781528615156020820152815189927fe9408df99703ae33a9d01185bcad328ea8683fb1f920da9c30959c192f21b5b3928290030190a250505050505050565b6000818152607360205260409020546001600160a01b0383811691161461460c5760748054600181019091557f19a0b39aa25ac793b5f6e9a0534364cc0b3fd1ea9b651e79c7f50a59d48ef8130180546001600160a01b0384166001600160a01b031991821681179092556000838152607360205260409020805490911690911790555b5050565b6000818152607660205260409020546001600160a01b03161561296257600090815260766020526040902080546001600160a01b0319169055565b6000828152607560205260409020546001600160a01b0382811691161461460c57600082815260756020526040902080546001600160a01b0319166001600160a01b03831617905561469c82614610565b60405160009083907f9d2895c45a420624de863a2f437b022d879f457bf7a829044055a10c5a6fd5e3908390a35050565b600082820183811015611db9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b61473182826147fd565b61476c5760405162461bcd60e51b815260040180806020018281038252602181526020018061592c6021913960400191505060405180910390fd5b6001600160a01b0316600090815260209190915260409020805460ff19169055565b805461296257606e8054600101908190559055565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526136429085906153a1565b60006001600160a01b0382166148445760405162461bcd60e51b815260040180806020018281038252602281526020018061596e6022913960400191505060405180910390fd5b506001600160a01b03166000908152602091909152604090205460ff1690565b60008161487081612669565b6148b1576040805162461bcd60e51b815260206004820152600d60248201526c12d15657d393d517d590531251609a1b604482015290519081900360640190fd5b6001600160a01b03831660009081526072602052604090206001810154606b54607d5442909203918201106148ea57606c54935061490b565b606b54606c54614900908363ffffffff61530616565b8161490757fe5b0493505b607d54158061491f5750606b54607d548201105b15614963576000612710614940607c54606c5461530690919063ffffffff16565b8161494757fe5b0490508085111561495c578085039450614961565b600094505b505b505050919050565b61497582826147fd565b156149c7576040805162461bcd60e51b815260206004820152601f60248201527f526f6c65733a206163636f756e7420616c72656164792068617320726f6c6500604482015290519081900360640190fd5b6001600160a01b0316600090815260209190915260409020805460ff19166001179055565b303b1590565b606980546001600160a01b0319166001600160a01b0383169081179091551580614a8057506000816001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015614a5257600080fd5b505afa158015614a66573d6000803e3d6000fd5b505050506040513d6020811015614a7c57600080fd5b5051115b612962576040805162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a22faa27a5a2a760991b604482015290519081900360640190fd5b6069805460ff60a01b1916600160a01b179055565b63bbf81e00831115614b2f576040805162461bcd60e51b815260206004820152601860248201527f4d41585f45585049524154494f4e5f3130305f59454152530000000000000000604482015290519081900360640190fd5b606a8054336001600160a01b031991821617909155606f80549091166001600160a01b039590951694909417909355606b91909155606c55606d55565b614b746128b3565b8051614b879060789060208401906157a1565b50612962635b5e139f60e01b614bee565b614ba863780e9d6360e01b614bee565b565b6103e8607c55565b614bbb81613232565b6129625761296260668263ffffffff61496b16565b614bd9816124f3565b6129625761296260678263ffffffff61496b16565b6001600160e01b03198082161415614c4d576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152603360205260409020805460ff19166001179055565b6001600160a01b03821660008181526072602090815260409182902080548351868152935191943394909391927f0a7068a9989857441c039a14a42b67ed71dd1fcfe5a9b17cc87b252e47bce528929181900390910190a44260018201558115614ced57606954614ced906001600160a01b031684846152b9565b6071546001600160a01b031615611e10576071546040805163b499b6c560e01b81523360048201526001600160a01b038681166024830152604482018690529151919092169163b499b6c591606480830192600092919082900301818387803b158015614d5957600080fd5b505af1158015612780573d6000803e3d6000fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906139995750141592915050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b6000614e09846001600160a01b0316614d6d565b614e1557506001613999565b604051630a85bd0160e11b815233600482018181526001600160a01b03888116602485015260448401879052608060648501908152865160848601528651600095928a169463150b7a029490938c938b938b939260a4019060208501908083838e5b83811015614e8f578181015183820152602001614e77565b50505050905090810190601f168015614ebc5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015614ede57600080fd5b505af1158015614ef2573d6000803e3d6000fd5b505050506040513d6020811015614f0857600080fd5b50516001600160e01b031916630a85bd0160e11b14915050949350505050565b604080518082018252601081526f181899199a1a9b1b9c1cb0b131b232b360811b60208201528151602a80825260608281019094526001600160a01b03851692918491602082018180388339019050509050600360fc1b81600081518110614f8c57fe5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110614fb557fe5b60200101906001600160f81b031916908160001a90535060005b601481101561509b578260048583600c0160208110614fea57fe5b1a60f81b6001600160f81b031916901c60f81c60ff168151811061500a57fe5b602001015160f81c60f81b82826002026002018151811061502757fe5b60200101906001600160f81b031916908160001a905350828482600c016020811061504e57fe5b825191901a600f1690811061505f57fe5b602001015160f81c60f81b82826002026003018151811061507c57fe5b60200101906001600160f81b031916908160001a905350600101614fcf565b50949350505050565b606081806150cb5750506040805180820190915260018152600360fc1b6020820152611494565b8260005b81156150e357600101600a820491506150cf565b6060816040519080825280601f01601f191660200182016040528015615110576020820181803883390190505b50905060001982015b841561515e57600a850660300160f81b8282806001900393508151811061513c57fe5b60200101906001600160f81b031916908160001a905350600a85049450615119565b5095945050505050565b6060848484846040516020018085805190602001908083835b602083106151a05780518252601f199092019160209182019101615181565b51815160209384036101000a600019018019909216911617905287519190930192870191508083835b602083106151e85780518252601f1990920191602091820191016151c9565b51815160209384036101000a600019018019909216911617905286519190930192860191508083835b602083106152305780518252601f199092019160209182019101615211565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b602083106152785780518252601f199092019160209182019101615259565b6001836020036101000a0380198251168184511680821785525050505050509050019450505050506040516020818303038152906040529050949350505050565b8015611e10576001600160a01b0383166152eb576152e66001600160a01b0383168263ffffffff61555916565b611e10565b826136426001600160a01b038216848463ffffffff61563e16565b6000826153155750600061199a565b8282028284828161532257fe5b0414611db95760405162461bcd60e51b815260040180806020018281038252602181526020018061594d6021913960400191505060405180910390fd5b6000611db983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250615690565b6153b3826001600160a01b0316614d6d565b615404576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b602083106154425780518252601f199092019160209182019101615423565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146154a4576040519150601f19603f3d011682016040523d82523d6000602084013e6154a9565b606091505b509150915081615500576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156136425780806020019051602081101561551c57600080fd5b50516136425760405162461bcd60e51b815260040180806020018281038252602a8152602001806159de602a913960400191505060405180910390fd5b804710156155ae576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d80600081146155f9576040519150601f19603f3d011682016040523d82523d6000602084013e6155fe565b606091505b5050905080611e105760405162461bcd60e51b815260040180806020018281038252603a81526020018061588a603a913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611e109084906153a1565b6000818484111561571f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156156e45781810151838201526020016156cc565b50505050905090810190601f1680156157115780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106157685782800160ff19823516178555615795565b82800160010185558215615795579182015b8281111561579557823582559160200191906001019061577a565b506124ef92915061580f565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106157e257805160ff1916838001178555615795565b82800160010185558215615795579182015b828111156157955782518255916020019190600101906157f4565b6119b091905b808211156124ef576000815560010161581556fe63616e63656c416e64526566756e64466f722861646472657373205f6b65794f776e6572294d6978696e4c6f636b4d616e616765723a2063616c6c657220646f6573206e6f74206861766520746865204c6f636b4d616e6167657220726f6c65416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d617920686176652072657665727465644f4e4c595f4b45595f4d414e414745525f4f525f415050524f564544000000004d6978696e4b65794772616e7465723a2063616c6c657220646f6573206e6f74206861766520746865204b65794772616e746572206f72204c6f636b4d616e6167657220726f6c65526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c65536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820e6570f8bf01717c6b35e17be321624c59c8f788bfa8f0a41b0287b41cb66eac564736f6c63430005110032

Deployed Bytecode Sourcemap

108827:1474:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21355:133;;8:9:-1;5:2;;;30:1;27;20:12;5:2;21355:133:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21355:133:0;-1:-1:-1;;;;;;21355:133:0;;:::i;:::-;;;;;;;;;;;;;;;;;;60731:23;;8:9:-1;5:2;;;30:1;27;20:12;5:2;60731:23:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;60731:23:0;;:::i;:::-;;;;-1:-1:-1;;;;;60731:23:0;;;;;;;;;;;;;;78939:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;78939:18:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;78939:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67698:195;;8:9:-1;5:2;;;30:1;27;20:12;5:2;67698:195:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;67698:195:0;;:::i;67120:299::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;67120:299:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;67120:299:0;;;;;;;;:::i;85367:236::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;85367:236:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;85367:236:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;85367:236:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;85367:236:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;85367:236:0;;-1:-1:-1;85367:236:0;-1:-1:-1;85367:236:0;:::i;:::-;;;;;;;;;;;;;;;;58194:276;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58194:276:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;58194:276:0;-1:-1:-1;;;;;58194:276:0;;:::i;54126:29::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54126:29:0;;;:::i;64053:879::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;64053:879:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;64053:879:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;64053:879:0;;;;;;;;;;;;;;;;;54501:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54501:20:0;;;:::i;54343:30::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54343:30:0;;;:::i;59044:97::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;59044:97:0;;;:::i;100540:34::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;100540:34:0;;;:::i;54986:41::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54986:41:0;;;:::i;102918:2075::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;102918:2075:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;102918:2075:0;;;;;;;;;;;;;;;;;:::i;74951:147::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;74951:147:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;74951:147:0;-1:-1:-1;;;;;74951:147:0;;:::i;54936:45::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54936:45:0;;;:::i;73657:214::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;73657:214:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;73657:214:0;;;;;;;;:::i;80506:140::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;80506:140:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;80506:140:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;80506:140:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;80506:140:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;80506:140:0;;-1:-1:-1;80506:140:0;-1:-1:-1;80506:140:0;:::i;91530:294::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;91530:294:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;91530:294:0;;:::i;54779:26::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54779:26:0;;;:::i;94426:338::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;94426:338:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;94426:338:0;;;;;;;:::i;82602:2582::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;82602:2582:0;;;-1:-1:-1;;;;;82602:2582:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;82602:2582:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;82602:2582:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;82602:2582:0;;-1:-1:-1;82602:2582:0;-1:-1:-1;82602:2582:0;:::i;41969:19::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41969:19:0;;;:::i;105346:159::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;105346:159:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;105346:159:0;;;;;;;;;;;;;;;;;:::i;60931:45::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;60931:45:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;60931:45:0;;:::i;73039:165::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;73039:165:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;73039:165:0;;:::i;74693:110::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;74693:110:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;74693:110:0;-1:-1:-1;;;;;74693:110:0;;:::i;95050:169::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;95050:169:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;95050:169:0;-1:-1:-1;;;;;95050:169:0;;:::i;79721:123::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;79721:123:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;79721:123:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;79721:123:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;79721:123:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;79721:123:0;;-1:-1:-1;79721:123:0;-1:-1:-1;79721:123:0;:::i;74809:136::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;74809:136:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;74809:136:0;-1:-1:-1;;;;;74809:136:0;;:::i;92246:36::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;92246:36:0;;;:::i;65866:138::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;65866:138:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;65866:138:0;;:::i;63384:177::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;63384:177:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;63384:177:0;-1:-1:-1;;;;;63384:177:0;;:::i;109153:934::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;109153:934:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;109153:934:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;109153:934:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;109153:934:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;109153:934:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;109153:934:0;;-1:-1:-1;109153:934:0;;-1:-1:-1;;;;;109153:934:0:i;63112:204::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;63112:204:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;63112:204:0;-1:-1:-1;;;;;63112:204:0;;:::i;54595:27::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;54595:27:0;;;:::i;79926:173::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;79926:173:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;79926:173:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;79926:173:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;79926:173:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;79926:173:0;;-1:-1:-1;79926:173:0;-1:-1:-1;79926:173:0;:::i;20960:238::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;20960:238:0;;;:::i;75659:1086::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;75659:1086:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;75659:1086:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;75659:1086:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;75659:1086:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;75659:1086:0;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;75659:1086:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;75659:1086:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;75659:1086:0;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;75659:1086:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;75659:1086:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;75659:1086:0;;-1:-1:-1;75659:1086:0;-1:-1:-1;75659:1086:0;:::i;106430:235::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;106430:235:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;106430:235:0;;:::i;95608:546::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;95608:546:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;95608:546:0;;;;;;;;;;:::i;65715:104::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;65715:104:0;;;:::i;80204:212::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;80204:212:0;;;:::i;63681:134::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;63681:134:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;63681:134:0;-1:-1:-1;;;;;63681:134:0;;:::i;93031:184::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;93031:184:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;93031:184:0;;;;;;;;:::i;65010:155::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;65010:155:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;65010:155:0;;;;;;-1:-1:-1;;;;;65010:155:0;;:::i;38005:27::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38005:27:0;;;:::i;71273:268::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71273:268:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;71273:268:0;;;;;;;;;;:::i;57564:486::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;57564:486:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;57564:486:0;;;;;;-1:-1:-1;;;;;57564:486:0;;:::i;92289:27::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;92289:27:0;;;:::i;41071:112::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41071:112:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;41071:112:0;-1:-1:-1;;;;;41071:112:0;;:::i;65395:160::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;65395:160:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;65395:160:0;-1:-1:-1;;;;;65395:160:0;;:::i;58557:481::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;58557:481:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;58557:481:0;;;;;;;;;;:::i;66331:302::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;66331:302:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;66331:302:0;;;;;;-1:-1:-1;;;;;66331:302:0;;:::i;93916:438::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;93916:438:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;93916:438:0;;;;;;;;;;;;;;;;;;;;;;;;;:::i;106077:278::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;106077:278:0;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;106077:278:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;106077:278:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;106077:278:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;106077:278:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;106077:278:0;;-1:-1:-1;106077:278:0;;-1:-1:-1;;;;;106077:278:0:i;42326:127::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;42326:127:0;;;:::i;80987:400::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;80987:400:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;80987:400:0;;:::i;55963:89::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;55963:89:0;;;:::i;41189:139::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41189:139:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;41189:139:0;-1:-1:-1;;;;;41189:139:0;;:::i;93372:244::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;93372:244:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;93372:244:0;;:::i;38356:266::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38356:266:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;38356:266:0;;;;;;;;;;:::i;68217:395::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;68217:395:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;68217:395:0;;;;;;;;;;:::i;41334:124::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;41334:124:0;;;:::i;100882:2030::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;100882:2030:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;100882:2030:0;;;;;;;;;;;;;:::i;56704:596::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;56704:596:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;56704:596:0;;;;;;;;:::i;106933:600::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;106933:600:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;106933:600:0;;;;;;;;:::i;90733:49::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;90733:49:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;90733:49:0;-1:-1:-1;;;;;90733:49:0;;:::i;21355:133::-;-1:-1:-1;;;;;;21447:33:0;;21423:4;21447:33;;;:20;:33;;;;;;;;21355:133;;;;:::o;60731:23::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;60731:23:0;;-1:-1:-1;60731:23:0;:::o;78939:18::-;;;;;;;;;;;;;;;-1:-1:-1;;78939:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;67698:195::-;67791:7;62689:18;;;:8;:18;;;;;;67767:8;;-1:-1:-1;;;;;62689:18:0;62673:70;;;;;-1:-1:-1;;;62673:70:0;;;;;;;;;;;;-1:-1:-1;;;62673:70:0;;;;;;;;;;;;;;;-1:-1:-1;;67810:25:0;67838:18;;;:8;:18;;;;;;-1:-1:-1;;;;;67838:18:0;;67698:195::o;67120:299::-;42185:7;;-1:-1:-1;;;42185:7:0;;;;42177:35;;;;;-1:-1:-1;;;42177:35:0;;;;;;;;;;;;-1:-1:-1;;;42177:35:0;;;;;;;;;;;;;;;67245:8;61968:35;61982:8;61992:10;61968:13;:35::i;:::-;:79;;;;62014:33;62026:8;62036:10;62014:11;:33::i;:::-;61968:138;;;-1:-1:-1;62075:18:0;;;;:8;:18;;;;;;62058:48;;-1:-1:-1;;;;;62075:18:0;62095:10;62058:16;:48::i;:::-;61952:200;;;;;-1:-1:-1;;;61952:200:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;61952:200:0;;;;;;;;;;;;;;;67273:10;-1:-1:-1;;;;;67273:23:0;;;;67265:48;;;;;-1:-1:-1;;;67265:48:0;;;;;;;;;;;;-1:-1:-1;;;67265:48:0;;;;;;;;;;;;;;;67322:18;;;;:8;:18;;;;;;;;:30;;-1:-1:-1;;;;;;67322:30:0;-1:-1:-1;;;;;67322:30:0;;;;;;;;;67373:8;:18;;;;;;;67364:49;;67322:18;;67373;;;;;67364:49;;;42219:1;67120:299;;:::o;85367:236::-;85502:16;85550:47;85568:10;85580:9;85591:5;;85550:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;85550:17:0;;-1:-1:-1;;;85550:47:0:i;:::-;-1:-1:-1;85530:67:0;;85367:236;-1:-1:-1;;;;;;85367:236:0:o;58194:276::-;58294:11;;-1:-1:-1;;;;;58294:11:0;58280:10;:25;;:54;;;58309:25;58323:10;58309:13;:25::i;:::-;58272:98;;;;;-1:-1:-1;;;58272:98:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58385:26:0;;58377:54;;;;;-1:-1:-1;;;58377:54:0;;;;;;;;;;;;-1:-1:-1;;;58377:54:0;;;;;;;;;;;;;;;58438:11;:26;;-1:-1:-1;;;;;;58438:26:0;-1:-1:-1;;;;;58438:26:0;;;;;;;;;;58194:276::o;54126:29::-;;;-1:-1:-1;;;;;54126:29:0;;:::o;64053:879::-;64178:6;:13;64142:16;;64170:49;;;;;-1:-1:-1;;;64170:49:0;;;;;;;;;;;;-1:-1:-1;;;64170:49:0;;;;;;;;;;;;;;;64357:6;:13;64242:9;;64277:16;;;;64226:13;;64332:22;;;:38;64328:202;;;-1:-1:-1;64398:6:0;:13;64431:27;;;;-1:-1:-1;64328:202:0;;;-1:-1:-1;64499:22:0;;;64328:202;64616:29;64662:8;64648:23;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;64648:23:0;-1:-1:-1;64616:55:0;-1:-1:-1;64678:14:0;64789:11;64775:124;64806:14;64802:1;:18;64775:124;;;64862:6;64869:1;64862:9;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;64862:9:0;64836:12;64849:9;64836:23;;;;;;;;-1:-1:-1;;;;;64836:35:0;;;:23;;;;;;;;;;;:35;64880:11;;;;;64822:3;64775:124;;;-1:-1:-1;64914:12:0;;-1:-1:-1;;;;;64053:879:0;;;;;:::o;54501:20::-;;;;:::o;54343:30::-;;;;:::o;59044:97::-;59123:12;;59044:97;;:::o;100540:34::-;;;;:::o;54986:41::-;;;-1:-1:-1;;;;;54986:41:0;;:::o;102918:2075::-;42185:7;;-1:-1:-1;;;42185:7:0;;;;42177:35;;;;;-1:-1:-1;;;42177:35:0;;;;;;;;;;;;-1:-1:-1;;;42177:35:0;;;;;;;;;;;;;;;103056:5;62523:21;62538:5;62523:14;:21::i;:::-;62507:61;;;;;-1:-1:-1;;;62507:61:0;;;;;;;;;;;;-1:-1:-1;;;62507:61:0;;;;;;;;;;;;;;;103093:8;61968:35;61982:8;61992:10;61968:13;:35::i;:::-;:79;;;;62014:33;62026:8;62036:10;62014:11;:33::i;:::-;61968:138;;;-1:-1:-1;62075:18:0;;;;:8;:18;;;;;;62058:48;;-1:-1:-1;;;;;62075:18:0;62095:10;62058:16;:48::i;:::-;61952:200;;;;;-1:-1:-1;;;61952:200:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;61952:200:0;;;;;;;;;;;;;;;103121:27;103132:8;103142:5;103121:10;:27::i;:::-;103113:68;;;;;-1:-1:-1;;;103113:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;54924:5;103196:22;;:41;103188:76;;;;;-1:-1:-1;;;103188:76:0;;;;;;;;;;;;-1:-1:-1;;;103188:76:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;103279:24:0;;103271:52;;;;;-1:-1:-1;;;103271:52:0;;;;;;;;;;;;-1:-1:-1;;;103271:52:0;;;;;;;;;;;;;;;103330:8;103341:24;103356:5;103363:1;103341:14;:24::i;:::-;-1:-1:-1;;;;;103396:17:0;;;103374:19;103396:17;;;:10;:17;;;;;;103440:22;;;;;;;103497:25;;;;103330:35;;-1:-1:-1;103396:17:0;;103497:25;103595:34;;103608:8;;103330:35;;103595:12;:34::i;:::-;103642:13;;103638:180;;103671:24;;;103704:34;103717:10;103687:8;103704:12;:34::i;:::-;103786:24;103801:8;103786:14;:24::i;:::-;103852:15;103830:18;:37;103826:847;;104123:27;;;;;104095:25;;;:55;104159:24;;;104243:38;104175:8;-1:-1:-1;104243:16:0;:38::i;:::-;104292:34;104305:10;104317:8;104292:12;:34::i;:::-;103826:847;;;104586:37;;;;:79;;104649:15;104628:36;;104586:79;:41;:79;:::i;:::-;104558:25;;;:107;103826:847;104771:15;104741:27;;;:45;104885:1;104867:19;;;104922:65;;104972:8;;-1:-1:-1;;;;;104922:65:0;;;;;;;;-1:-1:-1;;;;;;;;;;;104922:65:0;;62159:1;;;;62575;42219;102918:2075;;;:::o;74951:147::-;40962:25;40976:10;40962:13;:25::i;:::-;40954:97;;;;-1:-1:-1;;;40954:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75025:28;:11;75044:8;75025:28;:18;:28;:::i;:::-;75065:27;;-1:-1:-1;;;;;75065:27:0;;;;;;;;74951:147;:::o;54936:45::-;;;-1:-1:-1;;;;;54936:45:0;;:::o;73657:214::-;73762:7;73789:11;;73781:46;;;;;-1:-1:-1;;;73781:46:0;;;;;;;;;;;;-1:-1:-1;;;73781:46:0;;;;;;;;;;;;;;;73841:24;73855:9;73841:13;:24::i;:::-;73834:31;73657:214;-1:-1:-1;;;73657:214:0:o;80506:140::-;40962:25;40976:10;40962:13;:25::i;:::-;40954:97;;;;-1:-1:-1;;;40954:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80612:28;:12;80627:13;;80612:28;:::i;:::-;;80506:140;;:::o;91530:294::-;91669:10;91651:29;;;;:17;:29;;;;;;91629:51;;91621:82;;;;;-1:-1:-1;;;91621:82:0;;;;;;;;;;;;-1:-1:-1;;;91621:82:0;;;;;;;;;;;;;;;91728:10;91710:29;;;;:17;:29;;;;;;;;;:51;;;91773:45;;;;;;;;;;;;;;;;;91530:294;:::o;54779:26::-;;;-1:-1:-1;;;;;54779:26:0;;:::o;94426:338::-;40962:25;40976:10;40962:13;:25::i;:::-;40954:97;;;;-1:-1:-1;;;40954:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94570:86;;;;;;;;;;;;;;;;;;;;;;;;;94665:15;:34;;;;94706:24;:52;94426:338::o;82602:2582::-;42185:7;;-1:-1:-1;;;42185:7:0;;;;42177:35;;;;;-1:-1:-1;;;42177:35:0;;;;;;;;;;;;-1:-1:-1;;;42177:35:0;;;;;;;;;;;;;;;55146:12;;55128:15;;:30;55120:56;;;;;-1:-1:-1;;;55120:56:0;;;;;;;;;;;;-1:-1:-1;;;55120:56:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;82790:24:0;;82782:52;;;;;-1:-1:-1;;;82782:52:0;;;;;;;;;;;;-1:-1:-1;;;82782:52:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;82886:22:0;;82866:17;82886:22;;;:10;:22;;;;;82927:13;;82886:22;;82977:9;82973:1252;;83071:24;83089:5;83071:17;:24::i;:::-;83146:13;;;-1:-1:-1;83168:30:0;83181:10;83146:13;83168:12;:30::i;:::-;-1:-1:-1;83240:18:0;;83222:15;:36;83267:25;;;:40;;;83347:97;;83431:4;;-1:-1:-1;;;;;83347:97:0;;;83374:1;;-1:-1:-1;;;;;;;;;;;83347:97:0;83374:1;;83347:97;82973:1252;;;83490:15;83462:5;:25;;;:43;83458:767;;;83624:18;;83594:25;;;;:49;;;:29;:49;:::i;:::-;83652:25;;;:40;;;83706:42;;;;;;;;83579:64;;-1:-1:-1;;;;;;83706:42:0;;;;;;;;;;;;83458:767;;;-1:-1:-1;84007:18:0;;83989:15;:36;84034:25;;;:40;;;84125:34;84142:4;84156:1;84125:16;:34::i;:::-;84175:42;;;;;;;;-1:-1:-1;;;;;84175:42:0;;;;;;;;;;;;;83458:767;84234:21;84257:13;84272:11;84287:47;84305:10;84317:9;84328:5;;84287:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;84287:17:0;;-1:-1:-1;;;84287:47:0:i;:::-;84233:101;;-1:-1:-1;84233:101:0;-1:-1:-1;84233:101:0;-1:-1:-1;84345:12:0;;84341:95;;84373:14;;:55;;;-1:-1:-1;;;84373:55:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;84373:14:0;;;;:37;;:55;;;;;:14;;:55;;;;;;;;:14;;:55;;;5:2:-1;;;;30:1;27;20:12;5:2;84373:55:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;84373:55:0;;;;84341:95;84482:14;;-1:-1:-1;;;;;84482:14:0;:32;84515:16;84533:25;84548:9;84533:14;:25::i;:::-;:50;;84581:1;84533:50;;;84561:9;84533:50;84482:102;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;84482:102:0;-1:-1:-1;;;;;84482:102:0;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;84482:102:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;84703:12:0;;84679:14;;-1:-1:-1;;;;;;84703:12:0;:26;;-1:-1:-1;84700:235:0;;-1:-1:-1;84794:12:0;;84757:6;;-1:-1:-1;;;;;84794:12:0;84816:57;84794:12;84839:10;84859:4;84757:6;84816:57;:22;:57;:::i;:::-;84700:235;;;;-1:-1:-1;84918:9:0;84700:235;84962:16;84949:9;:29;;84941:60;;;;;-1:-1:-1;;;84941:60:0;;;;;;;;;;;;-1:-1:-1;;;84941:60:0;;;;;;;;;;;;;;;85021:17;;-1:-1:-1;;;;;85021:17:0;85013:40;85010:169;;85069:17;;;;;;;;;-1:-1:-1;;;;;85069:17:0;-1:-1:-1;;;;;85069:31:0;;85101:10;85113;85125:9;85136:5;;85143:16;85161:9;85069:102;;;;;;;;;;;;;-1:-1:-1;;;;;85069:102:0;-1:-1:-1;;;;;85069:102:0;;;;;;-1:-1:-1;;;;;85069:102:0;-1:-1:-1;;;;;85069:102:0;;;;;;-1:-1:-1;;;;;85069:102:0;-1:-1:-1;;;;;85069:102:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;85069:102:0;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;85069:102:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;85069:102:0;;;;85010:169;55183:1;;;;;;;82602:2582;;;;;:::o;41969:19::-;;;-1:-1:-1;;;41969:19:0;;;;;:::o;105346:159::-;105457:42;105474:5;105481:3;105486:8;105457:42;;;;;;;;;;;;:16;:42::i;60931:45::-;;;;;;;;;;;;-1:-1:-1;;;;;60931:45:0;;:::o;73039:165::-;73113:7;73149:12;;73140:6;:21;73132:46;;;;;-1:-1:-1;;;73132:46:0;;;;;;;;;;;;-1:-1:-1;;;73132:46:0;;;;;;;;;;;;;;;-1:-1:-1;73192:6:0;73039:165::o;74693:110::-;74753:4;74773:24;:11;74789:7;74773:24;:15;:24;:::i;95050:169::-;95148:11;95178:35;95203:9;95178:24;:35::i;79721:123::-;40962:25;40976:10;40962:13;:25::i;:::-;40954:97;;;;-1:-1:-1;;;40954:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79822:16;:4;79829:9;;79822:16;:::i;74809:136::-;40962:25;40976:10;40962:13;:25::i;:::-;40954:97;;;;-1:-1:-1;;;40954:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74879:24;:11;74895:7;74879:24;:15;:24;:::i;:::-;74915;;-1:-1:-1;;;;;74915:24:0;;;;;;;;74809:136;:::o;92246:36::-;;;;:::o;65866:138::-;65954:7;62689:18;;;:8;:18;;;;;;65931:8;;-1:-1:-1;;;;;62689:18:0;62673:70;;;;;-1:-1:-1;;;62673:70:0;;;;;;;;;;;;-1:-1:-1;;;62673:70:0;;;;;;;;;;;;;;;-1:-1:-1;;65980:18:0;;;;:8;:18;;;;;;-1:-1:-1;;;;;65980:18:0;;65866:138::o;63384:177::-;-1:-1:-1;;;;;63496:21:0;63473:4;63496:21;;;:10;:21;;;;;:41;;;63540:15;-1:-1:-1;;63384:177:0:o;109153:934::-;18421:12;;;;;;;;:31;;;18437:15;:13;:15::i;:::-;18421:47;;;-1:-1:-1;18457:11:0;;;;18456:12;18421:47;18413:106;;;;-1:-1:-1;;;18413:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18528:19;18551:12;;;;;;18550:13;18570:83;;;;18599:12;:19;;-1:-1:-1;;;;18599:19:0;;;;;18627:18;18614:4;18627:18;;;18570:83;109379:47;109412:13;109379:32;:47::i;:::-;109433:38;:36;:38::i;:::-;109478:102;109517:12;109531:19;109552:9;109563:16;109478:38;:102::i;:::-;109587:57;109634:9;109587:46;:57::i;:::-;109651:56;:54;:56::i;:::-;109714:38;:36;:38::i;:::-;109759:66;109812:12;109759:52;:66::i;:::-;109832:64;109883:12;109832:50;:64::i;:::-;110051:30;-1:-1:-1;;;110051:18:0;:30::i;:::-;18675:14;18671:57;;;18715:5;18700:20;;-1:-1:-1;;18700:20:0;;;18671:57;109153:934;;;;;;;:::o;63112:204::-;63196:4;-1:-1:-1;;;;;63220:23:0;;63212:51;;;;;-1:-1:-1;;;63212:51:0;;;;;;;;;;;;-1:-1:-1;;;63212:51:0;;;;;;;;;;;;;;;63277:25;63292:9;63277:14;:25::i;:::-;:33;;63309:1;63277:33;;;63305:1;63277:33;63270:40;;;63112:204;-1:-1:-1;;63112:204:0:o;54595:27::-;;;;:::o;79926:173::-;40962:25;40976:10;40962:13;:25::i;:::-;40954:97;;;;-1:-1:-1;;;40954:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80031:24;:10;80044:11;;80031:24;:::i;:::-;;80067:26;80081:11;;80067:26;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;;74:27;80067:26:0;;137:4:-1;117:14;;;-1:-1;;113:30;157:16;;;80067:26:0;;;;-1:-1:-1;80067:26:0;;-1:-1:-1;;;;80067:26:0;79926:173;;:::o;20960:238::-;18421:12;;;;;;;;:31;;;18437:15;:13;:15::i;:::-;18421:47;;;-1:-1:-1;18457:11:0;;;;18456:12;18421:47;18413:106;;;;-1:-1:-1;;;18413:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18528:19;18551:12;;;;;;18550:13;18570:83;;;;18599:12;:19;;-1:-1:-1;;;;18599:19:0;;;;;18627:18;18614:4;18627:18;;;18570:83;21150:40;-1:-1:-1;;;21150:18:0;:40::i;:::-;18675:14;18671:57;;;18715:5;18700:20;;-1:-1:-1;;18700:20:0;;;18671:57;20960:238;:::o;75659:1086::-;74543:24;74556:10;74543:12;:24::i;:::-;:53;;;;74571:25;74585:10;74571:13;:25::i;:::-;74535:138;;;;-1:-1:-1;;;74535:138:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75854:6;75850:890;75866:22;;;75850:890;;;75904:17;75924:11;;75936:1;75924:14;;;;;;;;;;;;;-1:-1:-1;;;;;75924:14:0;75904:34;;75947:24;75974:21;;75996:1;75974:24;;;;;;;;;;;;;75947:51;;76007:18;76028:12;;76041:1;76028:15;;;;;;;;;;;;;-1:-1:-1;;;;;76028:15:0;76007:36;;76083:1;-1:-1:-1;;;;;76062:23:0;:9;-1:-1:-1;;;;;76062:23:0;;;76054:51;;;;;-1:-1:-1;;;76054:51:0;;;;;;;;;;;;-1:-1:-1;;;76054:51:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;76136:21:0;;76116:17;76136:21;;;:10;:21;;;;;76196:25;;;;76174:47;;76166:76;;;;;-1:-1:-1;;;76166:76:0;;;;;;;;;;;;-1:-1:-1;;;76166:76:0;;;;;;;;;;;;;;;76265:13;;76292:9;76289:130;;76314:24;76332:5;76314:17;:24::i;:::-;-1:-1:-1;76356:13:0;;76380:29;76393:9;76356:13;76380:12;:29::i;:::-;76457:34;76474:4;76480:10;76457:16;:34::i;:::-;76505:35;;-1:-1:-1;;;;;76505:35:0;;;76523:4;;76505:35;;;;;76551:25;;;:47;;;76636:96;;76719:4;;-1:-1:-1;;;;;76636:96:0;;;76663:1;;-1:-1:-1;;;;;;;;;;;76636:96:0;76663:1;;76636:96;-1:-1:-1;;75890:3:0;;;;;-1:-1:-1;75850:890:0;;-1:-1:-1;;75850:890:0;106430:235;40962:25;40976:10;40962:13;:25::i;:::-;40954:97;;;;-1:-1:-1;;;40954:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106547:57;;;;;;;;;;;;;;;;;106611:22;:48;106430:235::o;95608:546::-;95729:20;95867:4;92492:50;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;96017:30:0;;;;;;:17;:30;;;;;;;;;-1:-1:-1;;95786:355:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;95786:355:0;;;;;;95768:380;;;;;;;;;-1:-1:-1;;95608:546:0;;;;:::o;65715:104::-;65800:6;:13;65715:104;:::o;80204:212::-;80288:10;80282:24;80254:13;;80282:24;-1:-1:-1;;80282:24:0;;;;;;;;;;;80279:132;;80329:14;;;;;;;;;-1:-1:-1;;;;;80329:14:0;-1:-1:-1;;;;;80329:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;80329:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;80329:34:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;80329:34:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;80329:34:0;;;;;;;;;;;;;-1:-1:-1;;;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;-1:-1;;;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;372:25;;-1:-1;80329:34:0;;420:4:-1;411:14;;;;80329:34:0;;;;;411:14:-1;80329:34:0;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;80329:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80322:41;;;;80279:132;80393:10;80386:17;;;;;;;;;;;;;-1:-1:-1;;80386:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;80393:10;80386:17;;80393:10;80386:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63681:134;-1:-1:-1;;;;;63781:20:0;63758:4;63781:20;;;:10;:20;;;;;:28;;63681:134::o;93031:184::-;40962:25;40976:10;40962:13;:25::i;:::-;40954:97;;;;-1:-1:-1;;;40954:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;93153:9;62523:21;62538:5;62523:14;:21::i;:::-;62507:61;;;;;-1:-1:-1;;;62507:61:0;;;;;;;;;;;;-1:-1:-1;;;62507:61:0;;;;;;;;;;;;;;;93174:35;93191:9;93202:6;93174:16;:35::i;65010:155::-;65105:4;65128:18;;;:8;:18;;;;;;;-1:-1:-1;;;;;65128:31:0;;;:18;;:31;;65010:155::o;38005:27::-;;;-1:-1:-1;;;;;38005:27:0;;:::o;71273:268::-;42185:7;;-1:-1:-1;;;42185:7:0;;;;42177:35;;;;;-1:-1:-1;;;42177:35:0;;;;;;;;;;;;-1:-1:-1;;;42177:35:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;71386:17:0;;71393:10;71386:17;;71378:42;;;;;-1:-1:-1;;;71378:42:0;;;;;;;;;;;;-1:-1:-1;;;71378:42:0;;;;;;;;;;;;;;;71453:10;71427:37;;;;:25;:37;;;;;;;;-1:-1:-1;;;;;71427:42:0;;;;;;;;;;;;:54;;-1:-1:-1;;71427:54:0;;;;;;;;;;71493:42;;;;;;;71427;;71453:10;71493:42;;;;;;;;;;;71273:268;;:::o;57564:486::-;40962:25;40976:10;40962:13;:25::i;:::-;40954:97;;;;-1:-1:-1;;;40954:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42185:7;;-1:-1:-1;;;42185:7:0;;;;42177:35;;;;;-1:-1:-1;;;42177:35:0;;;;;;;;;;;;-1:-1:-1;;;42177:35:0;;;;;;;;;;;;;;;57725:8;;57766:12;;-1:-1:-1;;;;;57766:12:0;;;;57801:27;;;;:70;;;57870:1;57839:13;-1:-1:-1;;;;;57832:33:0;;:35;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;57832:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;57832:35:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;57832:35:0;:39;57801:70;57785:117;;;;;-1:-1:-1;;;57785:117:0;;;;;;;;;;;;-1:-1:-1;;;57785:117:0;;;;;;;;;;;;;;;57909:8;:20;;;57936:12;:28;;-1:-1:-1;;;;;;57936:28:0;-1:-1:-1;;;;;57936:28:0;;;;;;;;;;;57976:68;;;;;;;;;;;;;;;;;;;58031:12;;;;57976:68;;;;;;;;;;;;;;;42219:1;;57564:486;;:::o;92289:27::-;;;;:::o;41071:112::-;41132:4;41152:25;:12;41169:7;41152:25;:16;:25;:::i;65395:160::-;-1:-1:-1;;;;;65508:21:0;65485:4;65508:21;;;:10;:21;;;;;:41;;;;65395:160::o;58557:481::-;40962:25;40976:10;40962:13;:25::i;:::-;40954:97;;;;-1:-1:-1;;;40954:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58699:32:0;;;;:67;;;58735:31;:18;-1:-1:-1;;;;;58735:29:0;;:31::i;:::-;58691:104;;;;;-1:-1:-1;;;58691:104:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58810:30:0;;;;:63;;;58844:29;:16;-1:-1:-1;;;;;58844:27:0;;:29::i;:::-;58802:102;;;;;-1:-1:-1;;;58802:102:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;58911:17;:60;;-1:-1:-1;;;;;58911:60:0;;;-1:-1:-1;;;;;;58911:60:0;;;;;;;58978:15;:54;;;;;;;;;;;58557:481::o;66331:302::-;62719:1;62689:18;;;:8;:18;;;;;;66425:8;;-1:-1:-1;;;;;62689:18:0;62673:70;;;;;-1:-1:-1;;;62673:70:0;;;;;;;;;;;;-1:-1:-1;;;62673:70:0;;;;;;;;;;;;;;;66461:35;66475:8;66485:10;66461:13;:35::i;:::-;:71;;;;66507:25;66521:10;66507:13;:25::i;:::-;66445:136;;;;;-1:-1:-1;;;66445:136:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;66588:39;66605:8;66615:11;66588:16;:39::i;93916:438::-;94090:55;94121:11;94134:10;94090:30;:55::i;:::-;94154:11;94174:2;94185;94196;91170:11;-1:-1:-1;;;;;91063:118:0;:103;91083:35;91112:5;91083:28;:35::i;:::-;91129:2;91142;91155;91063:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;91063:103:0;;;;;;;;-1:-1:-1;;;;;91063:118:0;;91047:162;;;;;-1:-1:-1;;;91047:162:0;;;;;;;;;;;;-1:-1:-1;;;91047:162:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;91216:30:0;;;;;;:17;:30;;;;;;;;;:32;;;;;;;;91260:57;;;;;;;;;;;;;;;;;94216:16;94235:17;94243:8;94235:7;:17::i;:::-;94216:36;;94259:11;94273:34;94298:8;94273:24;:34::i;:::-;94259:48;;94314:34;94331:8;94341:6;94314:16;:34::i;106077:278::-;106213:34;106226:5;106233:3;106238:8;106213:12;:34::i;:::-;106262:51;106285:5;106292:3;106297:8;106307:5;106262:22;:51::i;:::-;106254:93;;;;;-1:-1:-1;;;106254:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;106077:278;;;;:::o;42326:127::-;40962:25;40976:10;40962:13;:25::i;:::-;40954:97;;;;-1:-1:-1;;;40954:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42185:7;;-1:-1:-1;;;42185:7:0;;;;42177:35;;;;;-1:-1:-1;;;42177:35:0;;;;;;;;;;;;-1:-1:-1;;;42177:35:0;;;;;;;;;;;;;;;42416:9;;;;;;;42432:7;:15;;-1:-1:-1;;;;42432:15:0;;;42326:127::o;80987:400::-;62719:1;62689:18;;;:8;:18;;;;;;81086:13;;81063:8;;-1:-1:-1;;;;;62689:18:0;62673:70;;;;;-1:-1:-1;;;62673:70:0;;;;;;;;;;;;-1:-1:-1;;;62673:70:0;;;;;;;;;;;;;;;81144:12;81138:26;81111:17;;81138:26;-1:-1:-1;;81138:26:0;;;;;;;;;;;81135:135;;81186:14;;;;;;;;;-1:-1:-1;;;;;81186:14:0;-1:-1:-1;;;;;81186:33:0;;:35;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;81186:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;81186:35:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;81186:35:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;13:2;5:11;;2:2;;;29:1;26;19:12;2:2;81186:35:0;;;;;;;;;;;;;-1:-1:-1;;;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;-1:-1;;;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;372:25;;-1:-1;81186:35:0;;420:4:-1;411:14;;;;81186:35:0;;;;;411:14:-1;81186:35:0;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;81186:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81180:41;;81135:135;;;81250:12;81244:18;;;;;;;;;;;;;-1:-1:-1;;81244:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;81250:12;81244:18;;81250:12;81244:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81135:135;81285:96;81307:27;81315:4;81307:25;:27::i;:::-;81285:96;;;;;;;;;;;;;-1:-1:-1;;;81285:96:0;;;81355:19;:8;:17;:19::i;:::-;81285:3;;:96;;;:13;:96;:::i;:::-;81278:103;80987:400;-1:-1:-1;;;;80987:400:0:o;55963:89::-;56045:1;55963:89;:::o;41189:139::-;40962:25;40976:10;40962:13;:25::i;:::-;40954:97;;;;-1:-1:-1;;;40954:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41260:25;:12;41277:7;41260:25;:16;:25;:::i;:::-;41297;;-1:-1:-1;;;;;41297:25:0;;;;;;;;41189:139;:::o;93372:244::-;93456:8;61968:35;61982:8;61992:10;61968:13;:35::i;:::-;:79;;;;62014:33;62026:8;62036:10;62014:11;:33::i;:::-;61968:138;;;-1:-1:-1;62075:18:0;;;;:8;:18;;;;;;62058:48;;-1:-1:-1;;;;;62075:18:0;62095:10;62058:16;:48::i;:::-;61952:200;;;;;-1:-1:-1;;;61952:200:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;61952:200:0;;;;;;;;;;;;;;;93476:16;93495:17;93503:8;93495:7;:17::i;:::-;93476:36;;93519:11;93533:34;93558:8;93533:24;:34::i;:::-;93519:48;;93576:34;93593:8;93603:6;93576:16;:34::i;38356:266::-;38458:4;-1:-1:-1;;;;;38477:27:0;;38474:143;;-1:-1:-1;;;;;;38522:16:0;;;38515:23;;38474:143;38575:13;-1:-1:-1;;;;;38568:31:0;;38600:8;38568:41;;;;;;;;;;;;;-1:-1:-1;;;;;38568:41:0;-1:-1:-1;;;;;38568:41:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38568:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38568:41:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38568:41:0;;-1:-1:-1;38561:48:0;;68217:395;-1:-1:-1;;;;;68350:18:0;;;68319:4;68350:18;;;:10;:18;;;;;;;;:26;68404:21;;;:12;:21;;;;;;68319:4;;68350:26;;68404:21;68435:24;68432:175;;-1:-1:-1;;;;;;;;68477:33:0;;;;;;;:25;:33;;;;;;;;:44;;;;;;;;;;;;68470:51;;68432:175;-1:-1:-1;;;;;68551:37:0;;;;;;;:25;:37;;;;;;;;:48;;;;;;;;;;;;;-1:-1:-1;68544:55:0;;-1:-1:-1;68544:55:0;41334:124;41379:31;:12;41399:10;41379:31;:19;:31;:::i;:::-;41422:30;;41441:10;;41422:30;;;;;41334:124::o;100882:2030::-;42185:7;;-1:-1:-1;;;42185:7:0;;;;42177:35;;;;;-1:-1:-1;;;42177:35:0;;;;;;;;;;;;-1:-1:-1;;;42177:35:0;;;;;;;;;;;;;;;101020:8;61968:35;61982:8;61992:10;61968:13;:35::i;:::-;:79;;;;62014:33;62026:8;62036:10;62014:11;:33::i;:::-;61968:138;;;-1:-1:-1;62075:18:0;;;;:8;:18;;;;;;62058:48;;-1:-1:-1;;;;;62075:18:0;62095:10;62058:16;:48::i;:::-;61952:200;;;;;-1:-1:-1;;;61952:200:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;61952:200:0;;;;;;;;;;;;;;;54924:5;101048:22;;:41;101040:76;;;;;-1:-1:-1;;;101040:76:0;;;;;;;;;;;;-1:-1:-1;;;101040:76:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;101131:17:0;;101123:45;;;;;-1:-1:-1;;;101123:45:0;;;;;;;;;;;;-1:-1:-1;;;101123:45:0;;;;;;;;;;;;;;;101175:16;101194:18;;;:8;:18;;;;;;-1:-1:-1;;;;;101194:18:0;101227:24;101194:18;101227:14;:24::i;:::-;101219:50;;;;;-1:-1:-1;;;101219:50:0;;;;;;;;;;;;-1:-1:-1;;;101219:50:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;101298:20:0;;;101276:19;101298:20;;;:10;:20;;;;;;101345:15;;;;;;;101379:13;;101486:27;;;;101345:15;;101379:13;;101516:15;101486:45;;101276:19;101615:37;101309:8;101640:11;101615:14;:37::i;:::-;101604:48;-1:-1:-1;101659:16:0;101678:20;:11;101604:48;101678:20;:15;:20;:::i;:::-;101659:39;;101775:13;101761:11;:27;101758:489;;;101847:11;101840:18;;101929:42;101942:8;101952:11;101965:5;101929:12;:42::i;:::-;101758:489;;;102046:39;102061:8;102071:13;102046:14;:39::i;:::-;102159:15;102129:27;;;:45;102220:19;;102101;;;;-1:-1:-1;102040:45:0;;-1:-1:-1;102230:8:0;;102220:19;;;;;101758:489;102259:9;102255:392;;102279:24;102297:5;102279:17;:24::i;:::-;102319:13;;;-1:-1:-1;102341:23:0;102354:3;102319:13;102341:12;:23::i;:::-;102378:105;;102470:4;;-1:-1:-1;;;;;102378:105:0;;;102405:1;;-1:-1:-1;;;;;;;;;;;102378:105:0;102405:1;;102378:105;102255:392;;;102530:15;102501:5;:25;;;:44;102497:150;;102605:34;102622:4;102636:1;102605:16;:34::i;:::-;102683:30;102696:4;102702;102708;102683:12;:30::i;:::-;102793:4;102781:3;-1:-1:-1;;;;;102747:57:0;102764:8;-1:-1:-1;;;;;102747:57:0;-1:-1:-1;;;;;;;;;;;102747:57:0;;;;;;;;;102821:51;102844:8;102854:3;102859:8;102821:51;;;;;;;;;;;;:22;:51::i;:::-;102813:93;;;;;-1:-1:-1;;;102813:93:0;;;;;;;;;;;;;;;;;;;;;;;;;;;56704:596;55262:25;55276:10;55262:13;:25::i;:::-;:54;;;-1:-1:-1;55305:11:0;;-1:-1:-1;;;;;55305:11:0;55291:10;:25;55262:54;55246:120;;;;;-1:-1:-1;;;55246:120:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56827:12;56842:40;56853:13;56876:4;56842:10;:40::i;:::-;56827:55;-1:-1:-1;56889:11:0;56910:12;;;:33;;;56936:7;56926;:17;56910:33;56907:174;;;56977:1;56967:7;:11;56959:40;;;;;-1:-1:-1;;;56959:40:0;;;;;;;;;;;;-1:-1:-1;;;56959:40:0;;;;;;;;;;;;;;;-1:-1:-1;57017:7:0;56907:174;;;-1:-1:-1;57066:7:0;56907:174;57132:11;;57094:58;;;;;;;;-1:-1:-1;;;;;57132:11:0;;;;57094:58;;;57105:10;;57094:58;;;;;;;;;57274:11;;57249:45;;57259:13;;-1:-1:-1;;;;;57274:11:0;57287:6;57249:9;:45::i;106933:600::-;107062:4;107037:9;62523:21;62538:5;62523:14;:21::i;:::-;62507:61;;;;;-1:-1:-1;;;62507:61:0;;;;;;;;;;;;-1:-1:-1;;;62507:61:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;107096:21:0;;107078:15;107096:21;;;:10;:21;;;;;;107078:15;107305:10;107302:135;;107369:15;107343:3;:23;;;:41;107326:58;;107302:135;;;107424:5;107407:22;;107302:135;54924:5;107449:42;107468:22;;107449:14;:18;;:42;;;;:::i;:::-;:61;;;;;;;106933:600;-1:-1:-1;;;;;;;106933:600:0:o;90733:49::-;;;;;;;;;;;;;:::o;68719:314::-;68821:4;68840:22;;;:12;:22;;;;;;-1:-1:-1;;;;;68840:37:0;;;:22;;:37;;:123;;-1:-1:-1;68923:1:0;68889:22;;;:12;:22;;;;;;-1:-1:-1;;;;;68889:22:0;:36;:73;;;;;68929:33;68940:8;68950:11;68929:10;:33::i;:::-;68837:191;;;-1:-1:-1;68981:4:0;68974:11;;68837:191;-1:-1:-1;69015:5:0;69008:12;;71636:150;71730:4;71753:18;;;:8;:18;;;;;;;-1:-1:-1;;;;;71753:27:0;;;:18;;:27;;71636:150::o;85883:686::-;86096:17;;86017:16;;;;;;-1:-1:-1;;;;;86096:17:0;86088:40;86085:212;;86158:17;;:76;;-1:-1:-1;;;86158:76:0;;86193:10;86158:76;;;;;;-1:-1:-1;;;;;86158:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:17;;;;;:34;;86205:10;;86217:9;;86228:5;;86158:76;;;;;;;;;;;;:17;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;86158:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;86158:76:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;86158:76:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;86158:76:0;;-1:-1:-1;86085:212:0;;;86281:8;;86267:22;;86085:212;86308:15;;86305:259;;86372:14;;:67;;;-1:-1:-1;;;86372:67:0;;-1:-1:-1;;;;;86372:67:0;;;;;;;;;;;;;;;:14;;;:42;;:67;;;;;;;;;;;;;:14;:67;;;5:2:-1;;;;30:1;27;20:12;5:2;86372:67:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;86372:67:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;86372:67:0;;;;;;;;;-1:-1:-1;86372:67:0;-1:-1:-1;86456:29:0;;;;86448:70;;;;;-1:-1:-1;;;86448:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;86542:14;86527:29;;;;86305:259;85883:686;;;;;;;:::o;70282:701::-;70390:18;70411;;;:8;:18;;;;;;-1:-1:-1;;;;;70411:18:0;70444:24;70436:53;;;;;-1:-1:-1;;;70436:53:0;;;;;;;;;;;;-1:-1:-1;;;70436:53:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;70514:22:0;;70496:15;70514:22;;;:10;:22;;;;;70566:23;;;;70514:22;;70612:26;70525:10;70612:14;:26::i;:::-;70596:42;;70648:8;70645:275;;;70670:8;70667:169;;;70717:28;:15;70737:7;70717:28;:19;:28;:::i;:::-;70691:23;;;:54;70667:169;;;70798:28;:15;70818:7;70798:28;:19;:28;:::i;:::-;70772:23;;;:54;70667:169;70645:275;;;70884:28;:15;70904:7;70884:28;:19;:28;:::i;:::-;70858:23;;;:54;70645:275;70931:46;;;;;;;;;;;;;;;70949:8;;70931:46;;;;;;;;70282:701;;;;;;;:::o;69549:308::-;69643:18;;;;:8;:18;;;;;;-1:-1:-1;;;;;69643:31:0;;;:18;;:31;69639:213;;69736:6;27:10:-1;;39:1;23:18;;45:23;;;69736:22:0;;;;-1:-1:-1;;;;;69736:22:0;;-1:-1:-1;;;;;;69736:22:0;;;;;;;;-1:-1:-1;69814:18:0;;;:8;69736:22;69814:18;;;;:30;;;;;;;;;;69639:213;69549:308;;:::o;71938:162::-;72043:1;72013:18;;;:8;:18;;;;;;-1:-1:-1;;;;;72013:18:0;:32;72009:86;;72085:1;72056:18;;;:8;:18;;;;;:31;;-1:-1:-1;;;;;;72056:31:0;;;71938:162::o;66639:282::-;66738:22;;;;:12;:22;;;;;;-1:-1:-1;;;;;66738:37:0;;;:22;;:37;66735:181;;66786:22;;;;:12;:22;;;;;:36;;-1:-1:-1;;;;;;66786:36:0;-1:-1:-1;;;;;66786:36:0;;;;;66831:24;66786:22;66831:14;:24::i;:::-;66869:39;;66905:1;;66887:8;;66869:39;;66905:1;;66869:39;66639:282;;:::o;29144:181::-;29202:7;29234:5;;;29258:6;;;;29250:46;;;;;-1:-1:-1;;;29250:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;39835:183;39915:18;39919:4;39925:7;39915:3;:18::i;:::-;39907:64;;;;-1:-1:-1;;;39907:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;39982:20:0;40005:5;39982:20;;;;;;;;;;;:28;;-1:-1:-1;;39982:28:0;;;39835:183::o;69156:330::-;69234:12;;69230:251;;69341:12;:14;;;;;;;;69446:27;;69156:330::o;34605:204::-;34732:68;;;-1:-1:-1;;;;;34732:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;34732:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;34706:95:0;;34725:5;;34706:18;:95::i;40113:203::-;40185:4;-1:-1:-1;;;;;40210:21:0;;40202:68;;;;-1:-1:-1;;;40202:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;40288:20:0;:11;:20;;;;;;;;;;;;;;;40113:203::o;97218:1036::-;97341:11;97316:9;62523:21;62538:5;62523:14;:21::i;:::-;62507:61;;;;;-1:-1:-1;;;62507:61:0;;;;;;;;;;;;-1:-1:-1;;;62507:61:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;97382:21:0;;97364:15;97382:21;;;:10;:21;;;;;97524:23;;;;97610:18;;97591:15;;97550;97524:41;;;;97575:31;;:53;97572:250;;97648:8;;97639:17;;97572:250;;;97796:18;;97766:8;;:27;;97779:13;97766:27;:12;:27;:::i;:::-;:48;;;;;;97757:57;;97572:250;97887:15;;:20;;:76;;;97945:18;;97927:15;;97911:13;:31;:52;97887:76;97884:365;;;97979:12;54924:5;97994:38;98007:24;;97994:8;;:12;;:38;;;;:::i;:::-;:57;;;;;;97979:72;;98073:7;98064:6;:16;98060:182;;;98188:7;98178:17;;;;98060:182;;;98231:1;98222:10;;98060:182;97884:365;;62575:1;;97218:1036;;;;:::o;39577:178::-;39655:18;39659:4;39665:7;39655:3;:18::i;:::-;39654:19;39646:63;;;;;-1:-1:-1;;;39646:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;39720:20:0;:11;:20;;;;;;;;;;;:27;;-1:-1:-1;;39720:27:0;39743:4;39720:27;;;39577:178::o;18822:508::-;19239:4;19285:17;19317:7;18822:508;:::o;38039:241::-;38122:12;:28;;-1:-1:-1;;;;;;38122:28:0;-1:-1:-1;;;;;38122:28:0;;;;;;;;38173:27;;:70;;;38242:1;38211:13;-1:-1:-1;;;;;38204:33:0;;:35;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;38204:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;38204:35:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;38204:35:0;:39;38173:70;38157:117;;;;;-1:-1:-1;;;38157:117:0;;;;;;;;;;;;-1:-1:-1;;;38157:117:0;;;;;;;;;;;;;;42017:78;42075:7;:14;;-1:-1:-1;;;;42075:14:0;-1:-1:-1;;;42075:14:0;;;42017:78::o;55386:500::-;55582:24;55559:19;:47;;55551:84;;;;;-1:-1:-1;;;55551:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;55642:14;:36;;55667:10;-1:-1:-1;;;;;;55642:36:0;;;;;;;55739:11;:26;;;;;-1:-1:-1;;;;;55739:26:0;;;;;;;;;;;55772:18;:40;;;;55819:8;:20;55846:15;:34;55386:500::o;79290:339::-;79382:19;:17;:19::i;:::-;79408:16;;;;:4;;:16;;;;;:::i;:::-;-1:-1:-1;79593:30:0;-1:-1:-1;;;79593:18:0;:30::i;72395:399::-;72758:30;-1:-1:-1;;;72758:18:0;:30::i;:::-;72395:399::o;92779:114::-;92883:4;92856:24;:31;92779:114::o;40767:147::-;40845:21;40859:6;40845:13;:21::i;:::-;40840:69;;40877:24;:12;40894:6;40877:24;:16;:24;:::i;74343:144::-;74420:20;74433:6;74420:12;:20::i;:::-;74415:67;;74451:23;:11;74467:6;74451:23;:15;:23;:::i;21895:193::-;-1:-1:-1;;;;;;21971:25:0;;;;;21963:66;;;;;-1:-1:-1;;;21963:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;22040:33:0;;;;;:20;:33;;;;;:40;;-1:-1:-1;;22040:40:0;22076:4;22040:40;;;21895:193::o;96264:749::-;-1:-1:-1;;;;;96374:21:0;;96356:15;96374:21;;;:10;:21;;;;;;;;;96419:11;;96409:53;;;;;;;96374:21;;96443:10;;96374:21;;96419:11;;96409:53;;;;;;;;;;;96661:15;96635:23;;;:41;96689:10;;96685:141;;96786:12;;96776:42;;-1:-1:-1;;;;;96786:12:0;96800:9;96811:6;96776:9;:42::i;:::-;96896:15;;-1:-1:-1;;;;;96896:15:0;96888:38;96885:123;;96942:15;;:58;;;-1:-1:-1;;;96942:58:0;;96970:10;96942:58;;;;-1:-1:-1;;;;;96942:58:0;;;;;;;;;;;;;;;:15;;;;;:27;;:58;;;;;:15;;:58;;;;;;;:15;;:58;;;5:2:-1;;;;30:1;27;20:12;5:2;96942:58:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;25695:810:0;25755:4;26414:20;;26257:66;26454:15;;;;;:42;;-1:-1:-1;26473:23:0;;;25695:810;-1:-1:-1;;25695:810:0:o;90119:269::-;90321:58;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;90321:58:0;;;;;;;90311:69;;;;;;90119:269::o;108047:362::-;108195:4;108216:15;:2;-1:-1:-1;;;;;108216:13:0;;:15::i;:::-;108211:50;;-1:-1:-1;108249:4:0;108242:11;;108211:50;108283:78;;-1:-1:-1;;;108283:78:0;;108328:10;108283:78;;;;;;-1:-1:-1;;;;;108283:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;108267:13;;108283:36;;;;;;108328:10;;108340:4;;108346:7;;108355:5;;108283:78;;;;;;;;;;;108267:13;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;108283:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;108283:78:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;108283:78:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;108283:78:0;-1:-1:-1;;;;;;108376:26:0;-1:-1:-1;;;108376:26:0;;-1:-1:-1;;108047:362:0;;;;;;:::o;77812:454::-;77956:42;;;;;;;;;;;-1:-1:-1;;;77956:42:0;;;;78024:13;;78034:2;78024:13;;;77885;78024;;;;;;-1:-1:-1;;;;;77934:14:0;;;77956:42;77885:13;;78024;;;21:6:-1;;104:10;78024:13:0;87:34:-1;135:17;;-1:-1;78024:13:0;78005:32;;-1:-1:-1;;;78044:3:0;78048:1;78044:6;;;;;;;;;;;:12;-1:-1:-1;;;;;78044:12:0;;;;;;;;;-1:-1:-1;;;78063:3:0;78067:1;78063:6;;;;;;;;;;;:12;-1:-1:-1;;;;;78063:12:0;;;;;;;;-1:-1:-1;78087:6:0;78082:154;78103:2;78099:1;:6;78082:154;;;78134:8;78166:1;78149:5;78155:1;78159:2;78155:6;78149:13;;;;;;;;;;-1:-1:-1;;;;;78149:18:0;;;;78143:25;;78134:35;;;;;;;;;;;;;;;;;;78121:3;78127:1;78129;78127:3;78125:1;:5;78121:10;;;;;;;;;;;:48;-1:-1:-1;;;;;78121:48:0;;;;;;;;;78191:8;78206:5;78212:1;78216:2;78212:6;78206:13;;;;;;;78191:37;;78206:13;;;78222:4;78200:27;;78191:37;;;;;;;;;;;;;;78178:3;78184:1;78186;78184:3;78182:1;:5;78178:10;;;;;;;;;;;:50;-1:-1:-1;;;;;78178:50:0;;;;;;;;-1:-1:-1;78107:3:0;;78082:154;;;-1:-1:-1;78256:3:0;77812:454;-1:-1:-1;;;;77812:454:0:o;77293:513::-;77358:27;77480:2;77493:7;77489:40;;-1:-1:-1;;77511:10:0;;;;;;;;;;;;-1:-1:-1;;;77511:10:0;;;;;;77489:40;77544:2;77535:6;77568:53;77575:6;;77568:53;;77592:5;;77611:2;77606:7;;;;77568:53;;;77627:17;77657:3;77647:14;;;;;;;;;;;;;;;;;;;;;;;;;21:6:-1;;104:10;77647:14:0;87:34:-1;135:17;;-1:-1;77647:14:0;-1:-1:-1;77627:34:0;-1:-1:-1;;;77677:7:0;;77691:84;77698:6;;77691:84;;77747:2;77743:1;:6;77738:2;:11;77727:24;;77715:4;77720:3;;;;;;;77715:9;;;;;;;;;;;:36;-1:-1:-1;;;;;77715:36:0;;;;;;;;-1:-1:-1;77765:2:0;77760:7;;;;77691:84;;;-1:-1:-1;77795:4:0;77293:513;-1:-1:-1;;;;;77293:513:0:o;77045:242::-;77189:33;77265:2;77269;77273;77277;77248:32;;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;77248:32:0;;;;;;;;;;-1:-1:-1;77248:32:0;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;77248:32:0;;;;;;;;;;-1:-1:-1;77248:32:0;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;77248:32:0;;;;;;;;;;-1:-1:-1;77248:32:0;;;36:153:-1;66:2;61:3;58:11;36:153;;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;;;77248:32:0;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;77248:32:0;;;77234:47;;77045:242;;;;;;:::o;38780:436::-;38891:11;;38888:323;;-1:-1:-1;;;;;38916:27:0;;38913:291;;39048:40;-1:-1:-1;;;;;39048:31:0;;39080:7;39048:40;:31;:40;:::i;:::-;38913:291;;;39137:13;39162:32;-1:-1:-1;;;;;39162:18:0;;39181:3;39186:7;39162:32;:18;:32;:::i;30516:471::-;30574:7;30819:6;30815:47;;-1:-1:-1;30849:1:0;30842:8;;30815:47;30886:5;;;30890:1;30886;:5;:1;30910:5;;;;;:10;30902:56;;;;-1:-1:-1;;;30902:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29600:136;29658:7;29685:43;29689:1;29692;29685:43;;;;;;;;;;;;;;;;;:3;:43::i;36460:1114::-;37064:27;37072:5;-1:-1:-1;;;;;37064:25:0;;:27::i;:::-;37056:71;;;;;-1:-1:-1;;;37056:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;37201:12;37215:23;37250:5;-1:-1:-1;;;;;37242:19:0;37262:4;37242:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;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;;;37242:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;37200:67:0;;;;37286:7;37278:52;;;;;-1:-1:-1;;;37278:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37347:17;;:21;37343:224;;37489:10;37478:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;37478:30:0;37470:85;;;;-1:-1:-1;;;37470:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27826:371;27941:6;27916:21;:31;;27908:73;;;;;-1:-1:-1;;;27908:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;28068:32;;28050:12;;-1:-1:-1;;;;;28068:14:0;;;28089:6;;28050:12;28068:32;28050:12;28068:32;28089:6;28068:14;:32;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;28049:51:0;;;28119:7;28111:78;;;;-1:-1:-1;;;28111:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34421:176;34530:58;;;-1:-1:-1;;;;;34530:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;34530:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;34504:85:0;;34523:5;;34504:18;:85::i;30073:192::-;30159:7;30195:12;30187:6;;;;30179:29;;;;-1:-1:-1;;;30179:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;30179:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;30231:5:0;;;30073:192::o;108827:1474::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;108827:1474:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;108827:1474:0;;;-1:-1:-1;108827:1474:0;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

bzzr://e6570f8bf01717c6b35e17be321624c59c8f788bfa8f0a41b0287b41cb66eac5

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.