Token 🎨 Nifty.Ink

Overview ERC721

Total Supply:
47,649 🎨

Holders:
9,794 addresses
Balance
1 🎨
0x72d9e579f691d62aa7e0703840db6dd2fa9fae21
Loading
[ Download CSV Export  ] 
Loading
Loading

Click here to update the token ICO / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
NiftyToken

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-08-10
*/

// Sources flattened with buidler v1.4.3 https://buidler.dev

// File contracts/IAMB.sol

pragma solidity >=0.6.0 <0.7.0;

interface IAMB {
    function messageSender() external view returns (address);
    function maxGasPerTx() external view returns (uint256);
    function transactionHash() external view returns (bytes32);
    function messageId() external view returns (bytes32);
    function messageSourceChainId() external view returns (bytes32);
    function messageCallStatus(bytes32 _messageId) external view returns (bool);
    function failedMessageDataHash(bytes32 _messageId) external view returns (bytes32);
    function failedMessageReceiver(bytes32 _messageId) external view returns (address);
    function failedMessageSender(bytes32 _messageId) external view returns (address);
    function requireToPassMessage(address _contract, bytes calldata _data, uint256 _gas) external returns (bytes32);
}


// File contracts/ITokenManagement.sol

pragma solidity >=0.6.0 <0.7.0;

interface ITokenManagement {

  function mint(address to, uint256 tokenId, string calldata inkUrl, string calldata jsonUrl) external returns (uint256);
  function fixFailedMessage(bytes32 _dataHash) external;

}


// File @openzeppelin/contracts/GSN/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }

    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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


// File @openzeppelin/contracts/access/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

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

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(_owner == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}


// File @openzeppelin/contracts/utils/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;

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

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

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


// File contracts/AMBMediator.sol

pragma solidity >=0.6.0 <0.7.0;





contract AMBMediator is Ownable {
    using Address for address;

    constructor() public {
    }

    address public bridgeContractAddress;
    address private otherSideContractAddress;
    uint256 public requestGasLimit;

    mapping (bytes32 => bool) public messageFixed;

    function setBridgeContract(address _bridgeContract) external onlyOwner {
        _setBridgeContract(_bridgeContract);
    }

    function _setBridgeContract(address _bridgeContract) internal {
        require(_bridgeContract.isContract(), 'provided address is not a contract');
        bridgeContractAddress = _bridgeContract;
    }

    function bridgeContract() public view returns (IAMB) {
        return IAMB(bridgeContractAddress);
    }

    function setMediatorContractOnOtherSide(address _mediatorContract) external onlyOwner {
        _setMediatorContractOnOtherSide(_mediatorContract);
    }

    function _setMediatorContractOnOtherSide(address _mediatorContract) internal {
        otherSideContractAddress = _mediatorContract;
    }

    function mediatorContractOnOtherSide() public view returns (address) {
        return otherSideContractAddress;
    }

    function setRequestGasLimit(uint256 _requestGasLimit) external onlyOwner {
        _setRequestGasLimit(_requestGasLimit);
    }

    function _setRequestGasLimit(uint256 _requestGasLimit) internal {
        require(_requestGasLimit <= bridgeContract().maxGasPerTx(),'gas limit is higher than the Bridge maximum');
        requestGasLimit = _requestGasLimit;
    }

    /**
    * @dev Tells the address that generated the message on the other network that is currently being executed by
    * the AMB bridge.
    * @return the address of the message sender.
    */
    function messageSender() internal view returns (address) {
        return bridgeContract().messageSender();
    }

    /**
    * @dev Tells the id of the message originated on the other network.
    * @return the id of the message originated on the other network.
    */
    function messageId() internal view returns (bytes32) {
        return bridgeContract().messageId();
    }


    function setMessageFixed(bytes32 _txHash) internal {
        messageFixed[_txHash] = true;
    }

    function requestFailedMessageFix(bytes32 _txHash) external {
        require(!bridgeContract().messageCallStatus(_txHash));
        require(bridgeContract().failedMessageReceiver(_txHash) == address(this));
        require(bridgeContract().failedMessageSender(_txHash) == mediatorContractOnOtherSide());
        bytes32 dataHash = bridgeContract().failedMessageDataHash(_txHash);

        bytes4 methodSelector = ITokenManagement(address(0)).fixFailedMessage.selector;
        bytes memory data = abi.encodeWithSelector(methodSelector, dataHash);
        bridgeContract().requireToPassMessage(mediatorContractOnOtherSide(), data, requestGasLimit);
    }

}


// File @openzeppelin/contracts/math/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

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

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

        return c;
    }

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

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // 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.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}


// File @openzeppelin/contracts/utils/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;


/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 * Since it is not possible to overflow a 256 bit integer with increments of one, `increment` can skip the {SafeMath}
 * overflow check, thereby saving gas. This does assume however correct usage, in that the underlying `_value` is never
 * directly accessed.
 */
library Counters {
    using SafeMath for uint256;

    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        // The {SafeMath} overflow check can be skipped here, see the comment at the top
        counter._value += 1;
    }

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


// File @opengsn/gsn/contracts/0x/errors/[email protected]

// SPDX-License-Identifier:APACHE-2.0
/*

  Copyright 2020 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity ^0.6.2;


library LibBytesRichErrorsV06 {

    enum InvalidByteOperationErrorCodes {
        FromLessThanOrEqualsToRequired,
        ToLessThanOrEqualsLengthRequired,
        LengthGreaterThanZeroRequired,
        LengthGreaterThanOrEqualsFourRequired,
        LengthGreaterThanOrEqualsTwentyRequired,
        LengthGreaterThanOrEqualsThirtyTwoRequired,
        LengthGreaterThanOrEqualsNestedBytesLengthRequired,
        DestinationLengthGreaterThanOrEqualSourceLengthRequired
    }

    // bytes4(keccak256("InvalidByteOperationError(uint8,uint256,uint256)"))
    bytes4 internal constant INVALID_BYTE_OPERATION_ERROR_SELECTOR =
        0x28006595;

    // solhint-disable func-name-mixedcase
    function InvalidByteOperationError(
        InvalidByteOperationErrorCodes errorCode,
        uint256 offset,
        uint256 required
    )
        internal
        pure
        returns (bytes memory)
    {
        return abi.encodeWithSelector(
            INVALID_BYTE_OPERATION_ERROR_SELECTOR,
            errorCode,
            offset,
            required
        );
    }
}


// File @opengsn/gsn/contracts/0x/errors/[email protected]

// SPDX-License-Identifier:APACHE-2.0
/*

  Copyright 2020 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity ^0.6.2;


library LibRichErrorsV06 {

    // bytes4(keccak256("Error(string)"))
    bytes4 internal constant STANDARD_ERROR_SELECTOR = 0x08c379a0;

    // solhint-disable func-name-mixedcase
    /// @dev ABI encode a standard, string revert error payload.
    ///      This is the same payload that would be included by a `revert(string)`
    ///      solidity statement. It has the function signature `Error(string)`.
    /// @param message The error string.
    /// @return The ABI encoded error.
    function StandardError(string memory message)
        internal
        pure
        returns (bytes memory)
    {
        return abi.encodeWithSelector(
            STANDARD_ERROR_SELECTOR,
            bytes(message)
        );
    }
    // solhint-enable func-name-mixedcase

    /// @dev Reverts an encoded rich revert reason `errorData`.
    /// @param errorData ABI encoded error data.
    function rrevert(bytes memory errorData)
        internal
        pure
    {
        assembly {
            revert(add(errorData, 0x20), mload(errorData))
        }
    }
}


// File @opengsn/gsn/contracts/0x/[email protected]

// SPDX-License-Identifier:APACHE-2.0
/*

  Copyright 2020 ZeroEx Intl.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

*/

pragma solidity ^0.6.2;




library LibBytesV06 {

    using LibBytesV06 for bytes;

    /// @dev Gets the memory address for a byte array.
    /// @param input Byte array to lookup.
    /// @return memoryAddress Memory address of byte array. This
    ///         points to the header of the byte array which contains
    ///         the length.
    function rawAddress(bytes memory input)
        internal
        pure
        returns (uint256 memoryAddress)
    {
        assembly {
            memoryAddress := input
        }
        return memoryAddress;
    }

    /// @dev Gets the memory address for the contents of a byte array.
    /// @param input Byte array to lookup.
    /// @return memoryAddress Memory address of the contents of the byte array.
    function contentAddress(bytes memory input)
        internal
        pure
        returns (uint256 memoryAddress)
    {
        assembly {
            memoryAddress := add(input, 32)
        }
        return memoryAddress;
    }

    /// @dev Copies `length` bytes from memory location `source` to `dest`.
    /// @param dest memory address to copy bytes to.
    /// @param source memory address to copy bytes from.
    /// @param length number of bytes to copy.
    function memCopy(
        uint256 dest,
        uint256 source,
        uint256 length
    )
        internal
        pure
    {
        if (length < 32) {
            // Handle a partial word by reading destination and masking
            // off the bits we are interested in.
            // This correctly handles overlap, zero lengths and source == dest
            assembly {
                let mask := sub(exp(256, sub(32, length)), 1)
                let s := and(mload(source), not(mask))
                let d := and(mload(dest), mask)
                mstore(dest, or(s, d))
            }
        } else {
            // Skip the O(length) loop when source == dest.
            if (source == dest) {
                return;
            }

            // For large copies we copy whole words at a time. The final
            // word is aligned to the end of the range (instead of after the
            // previous) to handle partial words. So a copy will look like this:
            //
            //  ####
            //      ####
            //          ####
            //            ####
            //
            // We handle overlap in the source and destination range by
            // changing the copying direction. This prevents us from
            // overwriting parts of source that we still need to copy.
            //
            // This correctly handles source == dest
            //
            if (source > dest) {
                assembly {
                    // We subtract 32 from `sEnd` and `dEnd` because it
                    // is easier to compare with in the loop, and these
                    // are also the addresses we need for copying the
                    // last bytes.
                    length := sub(length, 32)
                    let sEnd := add(source, length)
                    let dEnd := add(dest, length)

                    // Remember the last 32 bytes of source
                    // This needs to be done here and not after the loop
                    // because we may have overwritten the last bytes in
                    // source already due to overlap.
                    let last := mload(sEnd)

                    // Copy whole words front to back
                    // Note: the first check is always true,
                    // this could have been a do-while loop.
                    // solhint-disable-next-line no-empty-blocks
                    for {} lt(source, sEnd) {} {
                        mstore(dest, mload(source))
                        source := add(source, 32)
                        dest := add(dest, 32)
                    }

                    // Write the last 32 bytes
                    mstore(dEnd, last)
                }
            } else {
                assembly {
                    // We subtract 32 from `sEnd` and `dEnd` because those
                    // are the starting points when copying a word at the end.
                    length := sub(length, 32)
                    let sEnd := add(source, length)
                    let dEnd := add(dest, length)

                    // Remember the first 32 bytes of source
                    // This needs to be done here and not after the loop
                    // because we may have overwritten the first bytes in
                    // source already due to overlap.
                    let first := mload(source)

                    // Copy whole words back to front
                    // We use a signed comparisson here to allow dEnd to become
                    // negative (happens when source and dest < 32). Valid
                    // addresses in local memory will never be larger than
                    // 2**255, so they can be safely re-interpreted as signed.
                    // Note: the first check is always true,
                    // this could have been a do-while loop.
                    // solhint-disable-next-line no-empty-blocks
                    for {} slt(dest, dEnd) {} {
                        mstore(dEnd, mload(sEnd))
                        sEnd := sub(sEnd, 32)
                        dEnd := sub(dEnd, 32)
                    }

                    // Write the first 32 bytes
                    mstore(dest, first)
                }
            }
        }
    }

    /// @dev Returns a slices from a byte array.
    /// @param b The byte array to take a slice from.
    /// @param from The starting index for the slice (inclusive).
    /// @param to The final index for the slice (exclusive).
    /// @return result The slice containing bytes at indices [from, to)
    function slice(
        bytes memory b,
        uint256 from,
        uint256 to
    )
        internal
        pure
        returns (bytes memory result)
    {
        // Ensure that the from and to positions are valid positions for a slice within
        // the byte array that is being used.
        if (from > to) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.FromLessThanOrEqualsToRequired,
                from,
                to
            ));
        }
        if (to > b.length) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.ToLessThanOrEqualsLengthRequired,
                to,
                b.length
            ));
        }

        // Create a new bytes structure and copy contents
        result = new bytes(to - from);
        memCopy(
            result.contentAddress(),
            b.contentAddress() + from,
            result.length
        );
        return result;
    }

    /// @dev Returns a slice from a byte array without preserving the input.
    ///      When `from == 0`, the original array will match the slice.
    ///      In other cases its state will be corrupted.
    /// @param b The byte array to take a slice from. Will be destroyed in the process.
    /// @param from The starting index for the slice (inclusive).
    /// @param to The final index for the slice (exclusive).
    /// @return result The slice containing bytes at indices [from, to)
    function sliceDestructive(
        bytes memory b,
        uint256 from,
        uint256 to
    )
        internal
        pure
        returns (bytes memory result)
    {
        // Ensure that the from and to positions are valid positions for a slice within
        // the byte array that is being used.
        if (from > to) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.FromLessThanOrEqualsToRequired,
                from,
                to
            ));
        }
        if (to > b.length) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.ToLessThanOrEqualsLengthRequired,
                to,
                b.length
            ));
        }

        // Create a new bytes structure around [from, to) in-place.
        assembly {
            result := add(b, from)
            mstore(result, sub(to, from))
        }
        return result;
    }

    /// @dev Pops the last byte off of a byte array by modifying its length.
    /// @param b Byte array that will be modified.
    /// @return result The byte that was popped off.
    function popLastByte(bytes memory b)
        internal
        pure
        returns (bytes1 result)
    {
        if (b.length == 0) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.LengthGreaterThanZeroRequired,
                b.length,
                0
            ));
        }

        // Store last byte.
        result = b[b.length - 1];

        assembly {
            // Decrement length of byte array.
            let newLen := sub(mload(b), 1)
            mstore(b, newLen)
        }
        return result;
    }

    /// @dev Tests equality of two byte arrays.
    /// @param lhs First byte array to compare.
    /// @param rhs Second byte array to compare.
    /// @return equal True if arrays are the same. False otherwise.
    function equals(
        bytes memory lhs,
        bytes memory rhs
    )
        internal
        pure
        returns (bool equal)
    {
        // Keccak gas cost is 30 + numWords * 6. This is a cheap way to compare.
        // We early exit on unequal lengths, but keccak would also correctly
        // handle this.
        return lhs.length == rhs.length && keccak256(lhs) == keccak256(rhs);
    }

    /// @dev Reads an address from a position in a byte array.
    /// @param b Byte array containing an address.
    /// @param index Index in byte array of address.
    /// @return result address from byte array.
    function readAddress(
        bytes memory b,
        uint256 index
    )
        internal
        pure
        returns (address result)
    {
        if (b.length < index + 20) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.LengthGreaterThanOrEqualsTwentyRequired,
                b.length,
                index + 20 // 20 is length of address
            ));
        }

        // Add offset to index:
        // 1. Arrays are prefixed by 32-byte length parameter (add 32 to index)
        // 2. Account for size difference between address length and 32-byte storage word (subtract 12 from index)
        index += 20;

        // Read address from array memory
        assembly {
            // 1. Add index to address of bytes array
            // 2. Load 32-byte word from memory
            // 3. Apply 20-byte mask to obtain address
            result := and(mload(add(b, index)), 0xffffffffffffffffffffffffffffffffffffffff)
        }
        return result;
    }

    /// @dev Writes an address into a specific position in a byte array.
    /// @param b Byte array to insert address into.
    /// @param index Index in byte array of address.
    /// @param input Address to put into byte array.
    function writeAddress(
        bytes memory b,
        uint256 index,
        address input
    )
        internal
        pure
    {
        if (b.length < index + 20) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.LengthGreaterThanOrEqualsTwentyRequired,
                b.length,
                index + 20 // 20 is length of address
            ));
        }

        // Add offset to index:
        // 1. Arrays are prefixed by 32-byte length parameter (add 32 to index)
        // 2. Account for size difference between address length and 32-byte storage word (subtract 12 from index)
        index += 20;

        // Store address into array memory
        assembly {
            // The address occupies 20 bytes and mstore stores 32 bytes.
            // First fetch the 32-byte word where we'll be storing the address, then
            // apply a mask so we have only the bytes in the word that the address will not occupy.
            // Then combine these bytes with the address and store the 32 bytes back to memory with mstore.

            // 1. Add index to address of bytes array
            // 2. Load 32-byte word from memory
            // 3. Apply 12-byte mask to obtain extra bytes occupying word of memory where we'll store the address
            let neighbors := and(
                mload(add(b, index)),
                0xffffffffffffffffffffffff0000000000000000000000000000000000000000
            )

            // Make sure input address is clean.
            // (Solidity does not guarantee this)
            input := and(input, 0xffffffffffffffffffffffffffffffffffffffff)

            // Store the neighbors and address into memory
            mstore(add(b, index), xor(input, neighbors))
        }
    }

    /// @dev Reads a bytes32 value from a position in a byte array.
    /// @param b Byte array containing a bytes32 value.
    /// @param index Index in byte array of bytes32 value.
    /// @return result bytes32 value from byte array.
    function readBytes32(
        bytes memory b,
        uint256 index
    )
        internal
        pure
        returns (bytes32 result)
    {
        if (b.length < index + 32) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.LengthGreaterThanOrEqualsThirtyTwoRequired,
                b.length,
                index + 32
            ));
        }

        // Arrays are prefixed by a 256 bit length parameter
        index += 32;

        // Read the bytes32 from array memory
        assembly {
            result := mload(add(b, index))
        }
        return result;
    }

    /// @dev Writes a bytes32 into a specific position in a byte array.
    /// @param b Byte array to insert <input> into.
    /// @param index Index in byte array of <input>.
    /// @param input bytes32 to put into byte array.
    function writeBytes32(
        bytes memory b,
        uint256 index,
        bytes32 input
    )
        internal
        pure
    {
        if (b.length < index + 32) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.LengthGreaterThanOrEqualsThirtyTwoRequired,
                b.length,
                index + 32
            ));
        }

        // Arrays are prefixed by a 256 bit length parameter
        index += 32;

        // Read the bytes32 from array memory
        assembly {
            mstore(add(b, index), input)
        }
    }

    /// @dev Reads a uint256 value from a position in a byte array.
    /// @param b Byte array containing a uint256 value.
    /// @param index Index in byte array of uint256 value.
    /// @return result uint256 value from byte array.
    function readUint256(
        bytes memory b,
        uint256 index
    )
        internal
        pure
        returns (uint256 result)
    {
        result = uint256(readBytes32(b, index));
        return result;
    }

    /// @dev Writes a uint256 into a specific position in a byte array.
    /// @param b Byte array to insert <input> into.
    /// @param index Index in byte array of <input>.
    /// @param input uint256 to put into byte array.
    function writeUint256(
        bytes memory b,
        uint256 index,
        uint256 input
    )
        internal
        pure
    {
        writeBytes32(b, index, bytes32(input));
    }

    /// @dev Reads an unpadded bytes4 value from a position in a byte array.
    /// @param b Byte array containing a bytes4 value.
    /// @param index Index in byte array of bytes4 value.
    /// @return result bytes4 value from byte array.
    function readBytes4(
        bytes memory b,
        uint256 index
    )
        internal
        pure
        returns (bytes4 result)
    {
        if (b.length < index + 4) {
            LibRichErrorsV06.rrevert(LibBytesRichErrorsV06.InvalidByteOperationError(
                LibBytesRichErrorsV06.InvalidByteOperationErrorCodes.LengthGreaterThanOrEqualsFourRequired,
                b.length,
                index + 4
            ));
        }

        // Arrays are prefixed by a 32 byte length field
        index += 32;

        // Read the bytes4 from array memory
        assembly {
            result := mload(add(b, index))
            // Solidity does not require us to clean the trailing bytes.
            // We do it anyway
            result := and(result, 0xFFFFFFFF00000000000000000000000000000000000000000000000000000000)
        }
        return result;
    }

    /// @dev Writes a new length to a byte array.
    ///      Decreasing length will lead to removing the corresponding lower order bytes from the byte array.
    ///      Increasing length may lead to appending adjacent in-memory bytes to the end of the byte array.
    /// @param b Bytes array to write new length to.
    /// @param length New length of byte array.
    function writeLength(bytes memory b, uint256 length)
        internal
        pure
    {
        assembly {
            mstore(b, length)
        }
    }
}


// File @opengsn/gsn/contracts/interfaces/[email protected]

// SPDX-License-Identifier:MIT
pragma solidity ^0.6.2;

/**
 * a contract must implement this interface in order to support relayed transaction.
 * It is better to inherit the BaseRelayRecipient as its implementation.
 */
abstract contract IRelayRecipient {

    /**
     * return if the forwarder is trusted to forward relayed transactions to us.
     * the forwarder is required to verify the sender's signature, and verify
     * the call is not a replay.
     */
    function isTrustedForwarder(address forwarder) public virtual view returns(bool);

    /**
     * return the sender of this call.
     * if the call came through our trusted forwarder, then the real sender is appended as the last 20 bytes
     * of the msg.data.
     * otherwise, return `msg.sender`
     * should be used in the contract anywhere instead of msg.sender
     */
    function _msgSender() internal virtual view returns (address payable);

    function versionRecipient() external virtual view returns (string memory);
}


// File @opengsn/gsn/contracts/[email protected]

// SPDX-License-Identifier:MIT
pragma solidity ^0.6.2;



/**
 * A base contract to be inherited by any contract that want to receive relayed transactions
 * A subclass must use "_msgSender()" instead of "msg.sender"
 */
abstract contract BaseRelayRecipient is IRelayRecipient {

    /// the TrustedForwarder singleton we accept calls from.
    // we trust it to verify the caller's signature, and pass the caller's address as last 20 bytes
    address internal trustedForwarder;

    /*
     * require a function to be called through GSN only
     */
    modifier trustedForwarderOnly() {
        require(msg.sender == address(trustedForwarder), "Function can only be called through trustedForwarder");
        _;
    }

    function isTrustedForwarder(address forwarder) public override view returns(bool) {
        return forwarder == trustedForwarder;
    }

    /**
     * return the sender of this call.
     * if the call came through our trusted forwarder, return the original sender.
     * otherwise, return `msg.sender`.
     * should be used in the contract anywhere instead of msg.sender
     */
    function _msgSender() internal override virtual view returns (address payable) {
        if (msg.data.length >= 24 && isTrustedForwarder(msg.sender)) {
            // At this point we know that the sender is a trusted forwarder,
            // so we trust that the last bytes of msg.data are the verified sender address.
            // extract sender address from the end of msg.data
            return address(uint160(LibBytesV06.readAddress(msg.data, msg.data.length - 20)));
        }
        return msg.sender;
    }
}


// File @openzeppelin/contracts/utils/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

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

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

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

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

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

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

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

            bytes32 lastvalue = set._values[lastIndex];

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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


    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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


// File @openzeppelin/contracts/cryptography/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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.
     *
     * 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) {
            revert("ECDSA: invalid signature length");
        }

        // 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) {
            revert("ECDSA: invalid signature 's' value");
        }

        if (v != 27 && v != 28) {
            revert("ECDSA: invalid signature 'v' value");
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    /**
     * @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/IERC1271.sol

// SPDX-License-Identifier: CC0-1.0
pragma solidity >=0.5.0 <0.7.0;

/**
 * @notice ERC-1271: Standard Signature Validation Method for Contracts
 */
interface IERC1271 {

//    bytes4 internal constant _ERC1271MAGICVALUE = 0x1626ba7e;
//    bytes4 internal constant _ERC1271FAILVALUE = 0xffffffff;

    /**
     * @dev Should return whether the signature provided is valid for the provided data
     * @param _hash hash of the data signed//Arbitrary length data signed on the behalf of address(this)
     * @param _signature Signature byte array associated with _data
     *
     * @return magicValue either 0x1626ba7e on success or 0xffffffff failure
     */
    function isValidSignature(
        bytes32 _hash, //bytes memory _data,
        bytes calldata _signature
    )
    external
    view
    returns (bytes4 magicValue);
}


// File contracts/SignatureChecker.sol

pragma solidity >=0.6.0 <0.7.0;





contract SignatureChecker is Ownable {
    using ECDSA for bytes32;
    using Address for address;
    bool public checkSignatureFlag;

    bytes4 internal constant _INTERFACE_ID_ERC1271 = 0x1626ba7e;
    bytes4 internal constant _ERC1271FAILVALUE = 0xffffffff;

    function setCheckSignatureFlag(bool newFlag) public onlyOwner {
      checkSignatureFlag = newFlag;
    }

    function getSigner(bytes32 signedHash, bytes memory signature) public pure returns (address)
    {
        return signedHash.toEthSignedMessageHash().recover(signature);
    }

    function checkSignature(bytes32 signedHash, bytes memory signature, address checkAddress) public view returns (bool) {
      if(checkAddress.isContract()) {
        return IERC1271(checkAddress).isValidSignature(signedHash, signature) == _INTERFACE_ID_ERC1271;
      } else {
        return getSigner(signedHash, signature) == checkAddress;
      }
    }

}


// File contracts/Liker.sol

pragma solidity >=0.6.0 <0.7.0;







contract Liker is Ownable, BaseRelayRecipient, SignatureChecker {
  using ECDSA for bytes32;
  using Counters for Counters.Counter;
  using EnumerableSet for EnumerableSet.UintSet;
  using SafeMath for uint256;

  Counters.Counter public totalLikes;

  event liked(uint256 LikeId, address targetContract, uint256 target, uint256 targetId, address liker);
  event contractAdded(address targetContract, address contractOwner);
  event contractRemoved(address targetContract, address contractOwner);

  struct Like {
    uint256 id;
    address liker;
    uint256 targetId;
    address contractAddress;
    uint256 target;
    bool exists;
  }

  EnumerableSet.UintSet private likeIds;
  mapping(address => bool) public registeredContracts;
  mapping(address => address) public contractOwner;
  mapping(uint256 => Like) private likeById;
  mapping(address => EnumerableSet.UintSet) private addressLikes;
  mapping(uint256 => EnumerableSet.UintSet) private targetLikes;
  mapping(address => EnumerableSet.UintSet) private contractLikes;

  function getTargetId(address contractAddress, uint256 target) public view returns (uint256) {
    return uint256(keccak256(
        abi.encodePacked(
            byte(0x19),
            byte(0),
            address(this),
            contractAddress,
            target
    )));
  }

  function _newLike(address contractAddress, uint256 target, address liker) internal returns (uint256) {
    require(registeredContracts[contractAddress],"this contract is not registered");
    uint256 targetId = getTargetId(contractAddress, target);
    uint256 likeId = uint256(keccak256(abi.encodePacked(byte(0x19),byte(0),address(this),contractAddress,target,liker)));
    require(!likeById[likeId].exists,"this like has already been liked");

    totalLikes.increment();

    Like memory _like = Like({
      id: likeId,
      liker: liker,
      targetId: targetId,
      contractAddress: contractAddress,
      target: target,
      exists: true
    });

    likeIds.add(likeId);
    likeById[likeId] = _like;
    addressLikes[liker].add(likeId);
    targetLikes[targetId].add(likeId);
    contractLikes[contractAddress].add(likeId);

    emit liked(likeId, contractAddress, target, targetId, liker);
  }

  function like(address contractAddress, uint256 target) public returns (uint256) {
    return _newLike(contractAddress, target, _msgSender());
  }

  function likeWithSignature(address contractAddress, uint256 target, address liker, bytes memory signature) public returns (uint256) {
    bytes32 messageHash = keccak256(abi.encodePacked(byte(0x19),byte(0),address(this),contractAddress,target,liker));
    bool isArtistSignature = checkSignature(messageHash, signature, liker);
    require(isArtistSignature || !checkSignatureFlag, "Unable to verify the artist signature");
    return _newLike(contractAddress, target, liker);
  }

  function checkLike(address contractAddress, uint256 target, address liker) public view returns (bool) {
    require(registeredContracts[contractAddress],"this contract is not registered");
    uint256 likeId = uint256(keccak256(abi.encodePacked(byte(0x19),byte(0),address(this),contractAddress,target,liker)));
    return likeById[likeId].exists;
  }

  function getLikeIdByIndex(uint256 index) public view returns (uint256) {
    return likeIds.at(index);
  }

  function getLikeInfoById(uint256 likeId) public view returns (uint256, address, uint256, address, uint256) {
    require(likeById[likeId].exists, 'like does not exist');
    Like storage _like = likeById[likeId];
    return (likeId, _like.liker, _like.targetId, _like.contractAddress, _like.target);
  }

  function getLikesByTargetId(uint256 targetId) public view returns (uint256) {
    return targetLikes[targetId].length();
  }

  function getLikesByTarget(address contractAddress, uint256 target) public view returns (uint256) {
    uint256 targetId = getTargetId(contractAddress, target);
    return targetLikes[targetId].length();
  }

  function getLikesByContract(address contractAddress) public view returns (uint256) {
    require(registeredContracts[contractAddress],"this contract is not registered");
    return contractLikes[contractAddress].length();
  }

  function getLikesByLiker(address liker) public view returns (uint256) {
    return addressLikes[liker].length();
  }

  function addContract(address contractAddress) public returns (bool) {
    require(!registeredContracts[contractAddress],"this contract is already registered");
    registeredContracts[contractAddress] = true;
    address _contractOwner = _msgSender();
    contractOwner[contractAddress] = _contractOwner;
    emit contractAdded(contractAddress, _contractOwner);
    return true;
  }

  function removeContract(address contractAddress) public returns (bool) {
    require(registeredContracts[contractAddress],"this contract is not registered");
    address _contractOwner = _msgSender();
    require(contractOwner[contractAddress] == _contractOwner, 'only the contract owner can remove');
    registeredContracts[contractAddress] = false;
    emit contractRemoved(contractAddress, _contractOwner);
    return false;
  }

  function versionRecipient() external virtual view override returns (string memory) {
    return "1.0";
  }

  function setTrustedForwarder(address _trustedForwarder) public onlyOwner {
    trustedForwarder = _trustedForwarder;
  }

  function getTrustedForwarder() public view returns(address) {
    return trustedForwarder;
  }

  function _msgSender() internal override(BaseRelayRecipient, Context) view returns (address payable) {
      return BaseRelayRecipient._msgSender();
  }
}


// File @openzeppelin/contracts/introspection/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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/token/ERC721/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;


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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from`, `to` cannot be zero.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from`, `to` cannot be zero.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
      * @dev Safely transfers `tokenId` token from `from` to `to`.
      *
      * Requirements:
      *
      * - `from`, `to` cannot be zero.
      * - `tokenId` token must exist and be owned by `from`.
      * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
      * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
      *
      * Emits a {Transfer} event.
      */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;
}


// File @openzeppelin/contracts/token/ERC721/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;


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

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

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

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


// File @openzeppelin/contracts/token/ERC721/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.2;


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

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

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

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}


// File @openzeppelin/contracts/token/ERC721/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
abstract 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 virtual returns (bytes4);
}


// File @openzeppelin/contracts/introspection/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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 IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

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

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

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

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


// File @openzeppelin/contracts/utils/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

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

    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

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

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

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

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

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

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

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

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

            MapEntry storage lastEntry = map._entries[lastIndex];

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

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

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

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

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

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

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

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

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

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

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

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


// File @openzeppelin/contracts/utils/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev String operations.
 */
library Strings {
    /**
     * @dev Converts a `uint256` to its ASCII `string` representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        uint256 index = digits - 1;
        temp = value;
        while (temp != 0) {
            buffer[index--] = byte(uint8(48 + temp % 10));
            temp /= 10;
        }
        return string(buffer);
    }
}


// File @openzeppelin/contracts/token/ERC721/[email protected]

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;












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

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

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

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

    // Mapping from token ID to approved address
    mapping (uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping (address => mapping (address => bool)) private _operatorApprovals;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

    // Base URI
    string private _baseURI;

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

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

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

    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;

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

    /**
     * @dev Gets the balance of the specified address.
     * @param owner address to query the balance of
     * @return uint256 representing the amount owned by the passed address
     */
    function balanceOf(address owner) public view override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");

        return _holderTokens[owner].length();
    }

    /**
     * @dev Gets the owner of the specified token ID.
     * @param tokenId uint256 ID of the token to query the owner of
     * @return address currently marked as the owner of the given token ID
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _tokenOwners.get(tokenId, "ERC721: owner query for nonexistent token");
    }

    /**
     * @dev Gets the token name.
     * @return string representing the token name
     */
    function name() public view override returns (string memory) {
        return _name;
    }

    /**
     * @dev Gets the token symbol.
     * @return string representing the token symbol
     */
    function symbol() public view override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the URI for a given token ID. May return an empty string.
     *
     * If a base URI is set (via {_setBaseURI}), it is added as a prefix to the
     * token's own URI (via {_setTokenURI}).
     *
     * If there is a base URI but no token URI, the token's ID will be used as
     * its URI when appending it to the base URI. This pattern for autogenerated
     * token URIs can lead to large gas savings.
     *
     * .Examples
     * |===
     * |`_setBaseURI()` |`_setTokenURI()` |`tokenURI()`
     * | ""
     * | ""
     * | ""
     * | ""
     * | "token.uri/123"
     * | "token.uri/123"
     * | "token.uri/"
     * | "123"
     * | "token.uri/123"
     * | "token.uri/"
     * | ""
     * | "token.uri/<tokenId>"
     * |===
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory _tokenURI = _tokenURIs[tokenId];

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

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

    /**
     * @dev Gets the token ID at a given index of the tokens list of the requested owner.
     * @param owner address owning the tokens list to be accessed
     * @param index uint256 representing the index to be accessed of the requested tokens list
     * @return uint256 token ID at the given index of the tokens list owned by the requested address
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        return _holderTokens[owner].at(index);
    }

    /**
     * @dev Gets the total amount of tokens stored by the contract.
     * @return uint256 representing the total amount of tokens
     */
    function totalSupply() public view override returns (uint256) {
        // _tokenOwners are indexed by tokenIds, so .length() returns the number of tokenIds
        return _tokenOwners.length();
    }

    /**
     * @dev Gets the token ID at a given index of all the tokens in this contract
     * Reverts if the index is greater or equal to the total number of tokens.
     * @param index uint256 representing the index to be accessed of the tokens list
     * @return uint256 token ID at the given index of the tokens list
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        (uint256 tokenId, ) = _tokenOwners.at(index);
        return tokenId;
    }

    /**
     * @dev Approves another address to transfer the given token ID
     * The zero address indicates there is no approved address.
     * There can only be one approved address per token at a given time.
     * Can only be called by the token owner or an approved operator.
     * @param to address to be approved for the given token ID
     * @param tokenId uint256 ID of the token to be approved
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev Gets the approved address for a token ID, or zero if no address set
     * Reverts if the token ID does not exist.
     * @param tokenId uint256 ID of the token to query the approval of
     * @return address currently approved for the given token ID
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @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 operator operator address to set the approval
     * @param approved representing the status of the approval to be set
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev Tells whether an operator is approved by a given owner.
     * @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 override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev Transfers the ownership of a given token ID to another address.
     * Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     * Requires the msg.sender to be the owner, approved, or operator.
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function transferFrom(address from, address to, uint256 tokenId) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement {IERC721Receiver-onERC721Received},
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * Requires the msg.sender to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement {IERC721Receiver-onERC721Received},
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * Requires the _msgSender() to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes data to send along with a safe transfer check
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers the ownership of a given token ID to another address
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * Requires the msg.sender to be the owner, approved, or operator
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes data to send along with a safe transfer check
     */
    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether the specified token exists.
     * @param tokenId uint256 ID of the token to query the existence of
     * @return bool whether the token exists
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _tokenOwners.contains(tokenId);
    }

    /**
     * @dev Returns whether the given spender can transfer a given token ID.
     * @param spender address of the spender to query
     * @param tokenId uint256 ID of the token to be transferred
     * @return bool whether the msg.sender is approved for the given token ID,
     * is an operator of the owner, or is the owner of the token
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Internal function to safely mint a new token.
     * Reverts if the given token ID already exists.
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Internal function to safely mint a new token.
     * Reverts if the given token ID already exists.
     * If the target address is a contract, it must implement `onERC721Received`,
     * which is called upon a safe transfer, and return the magic value
     * `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`; otherwise,
     * the transfer is reverted.
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     * @param _data bytes data to send along with a safe transfer check
     */
    function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual {
        _mint(to, tokenId);
        require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Internal function to mint a new token.
     * Reverts if the given token ID already exists.
     * @param to The address that will own the minted token
     * @param tokenId uint256 ID of the token to be minted
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _holderTokens[to].add(tokenId);

        _tokenOwners.set(tokenId, to);

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Internal function to burn a specific token.
     * Reverts if the token does not exist.
     * @param tokenId uint256 ID of the token being burned
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

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

        _holderTokens[owner].remove(tokenId);

        _tokenOwners.remove(tokenId);

        emit Transfer(owner, address(0), tokenId);
    }

    /**
     * @dev Internal function to transfer ownership of a given token ID to another address.
     * As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     * @param from current owner of the token
     * @param to address to receive the ownership of the given token ID
     * @param tokenId uint256 ID of the token to be transferred
     */
    function _transfer(address from, address to, uint256 tokenId) internal virtual {
        require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

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

        _tokenOwners.set(tokenId, to);

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Internal function to set the token URI for a given token.
     *
     * Reverts if the token ID does not exist.
     *
     * TIP: If all token IDs share a prefix (for example, if your URIs look like
     * `https://api.myproject.com/token/<id>`), use {_setBaseURI} to store
     * it and save gas.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

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

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data)
        private returns (bool)
    {
        if (!to.isContract()) {
            return true;
        }
        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = to.call(abi.encodeWithSelector(
            IERC721Receiver(to).onERC721Received.selector,
            _msgSender(),
            from,
            tokenId,
            _data
        ));
        if (!success) {
            if (returndata.length > 0) {
                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert("ERC721: transfer to non ERC721Receiver implementer");
            }
        } else {
            bytes4 retval = abi.decode(returndata, (bytes4));
            return (retval == _ERC721_RECEIVED);
        }
    }

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - when `from` is zero, `tokenId` will be minted for `to`.
     * - when `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { }
}


// File contracts/NFTINK.sol

pragma solidity >=0.6.0 <0.7.0;







contract NFTINK is BaseRelayRecipient, ERC721, Ownable, SignatureChecker {
    using Counters for Counters.Counter;
    Counters.Counter private _tokenIds;
    Counters.Counter public totalInks;
    using SafeMath for uint256;

    uint artistTake;

    function setArtistTake(uint _take) public onlyOwner {
      artistTake = _take;
    }

    constructor() ERC721("🎨 Nifty.Ink", "🎨") public {
      _setBaseURI('ipfs://ipfs/');
      setCheckSignatureFlag(true);
      setArtistTake(1);
    }

    event newInk(uint256 id, address indexed artist, string inkUrl, string jsonUrl, uint256 limit);
    event mintedInk(uint256 id, string inkUrl, address to);
    event boughtInk(uint256 id, string inkUrl, address buyer, uint256 price);

    struct Ink {
      uint256 id;
      address payable artist;
      address patron;
      string jsonUrl;
      string inkUrl;
      uint256 limit;
      uint256 count;
      bool exists;
      uint256 price;
    }

    mapping (string => uint256) private _inkIdByUrl;
    mapping (uint256 => Ink) private _inkById;
    mapping (string => EnumerableSet.UintSet) private _inkTokens;
    mapping (address => EnumerableSet.UintSet) private _artistInks;
    mapping (string => bytes) private _inkSignatureByUrl;
    mapping (uint256 => uint256) private _inkIdByTokenId;

    mapping (uint256 => uint256) public tokenPrice;

    mapping (bytes32 => uint256) private msgTokenId;
    mapping (bytes32 => address) private msgRecipient;

    function _createInk(string memory inkUrl, string memory jsonUrl, uint256 limit, address payable artist, address patron) internal returns (uint256) {

      totalInks.increment();

      Ink memory _ink = Ink({
        id: totalInks.current(),
        artist: artist,
        patron: patron,
        inkUrl: inkUrl,
        jsonUrl: jsonUrl,
        limit: limit,
        count: 0,
        exists: true,
        price: 0
        });

        _inkIdByUrl[inkUrl] = _ink.id;
        _inkById[_ink.id] = _ink;
        _artistInks[artist].add(_ink.id);

        emit newInk(_ink.id, _ink.artist, _ink.inkUrl, _ink.jsonUrl, _ink.limit);

        return _ink.id;
    }

    function createInk(string memory inkUrl, string memory jsonUrl, uint256 limit) public returns (uint256) {
      require(!(_inkIdByUrl[inkUrl] > 0), "this ink already exists!");

      uint256 inkId = _createInk(inkUrl, jsonUrl, limit, _msgSender(), _msgSender());

      _mintInkToken(_msgSender(), inkId, inkUrl, jsonUrl);

      return inkId;
    }

    function _mintInkToken(address to, uint256 inkId, string memory inkUrl, string memory jsonUrl) internal returns (uint256) {
      _inkById[inkId].count += 1;

      _tokenIds.increment();
      uint256 id = _tokenIds.current();
      _inkTokens[inkUrl].add(id);
      _inkIdByTokenId[id] = inkId;

      _mint(to, id);
      _setTokenURI(id, jsonUrl);

      emit mintedInk(id, inkUrl, to);

      return id;
    }

    function mint(address to, string memory inkUrl) public returns (uint256) {
        uint256 _inkId = _inkIdByUrl[inkUrl];
        require(_inkId > 0, "this ink does not exist!");
        Ink storage _ink = _inkById[_inkId];
        require(_ink.artist == _msgSender(), "only the artist can mint!");
        require(_ink.count < _ink.limit || _ink.limit == 0, "this ink is over the limit!");

        uint256 tokenId = _mintInkToken(to, _inkId, _ink.inkUrl, _ink.jsonUrl);

        return tokenId;
    }


    function setPrice(string memory inkUrl, uint256 price) public returns (uint256) {
      uint256 _inkId = _inkIdByUrl[inkUrl];
      require(_inkId > 0, "this ink does not exist!");
      Ink storage _ink = _inkById[_inkId];
      require(_ink.artist == _msgSender(), "only the artist can set the price!");
      require(_ink.count < _ink.limit || _ink.limit == 0, "this ink is over the limit!");

      _inkById[_inkId].price = price;

      return price;
    }

    function buyInk(string memory inkUrl) public payable returns (uint256) {
      uint256 _inkId = _inkIdByUrl[inkUrl];
      require(_inkId > 0, "this ink does not exist!");
      Ink storage _ink = _inkById[_inkId];
      require(_ink.count < _ink.limit || _ink.limit == 0, "this ink is over the limit!");
      require(_ink.price > 0, "this ink does not have a price set");
      require(msg.value >= _ink.price, "Amount of Ether sent too small");
      address buyer = _msgSender();
      uint256 tokenId = _mintInkToken(buyer, _inkId, inkUrl, _ink.jsonUrl);
      //Note: a pull mechanism would be safer here: https://docs.openzeppelin.com/contracts/2.x/api/payment#PullPayment
      _ink.artist.transfer(msg.value);
      emit boughtInk(tokenId, inkUrl, buyer, msg.value);
      return tokenId;
    }


    function setTokenPrice(uint256 _tokenId, uint256 _price) public returns (uint256) {
      require(_exists(_tokenId), "this token does not exist!");
      require(ownerOf(_tokenId) == _msgSender(), "only the owner can set the price!");

      tokenPrice[_tokenId] = _price;

      return _price;
    }

    function buyToken(uint256 _tokenId) public payable {
      uint256 _price = tokenPrice[_tokenId];
      require(_price > 0, "this token is not for sale");
      require(msg.value >= _price, "Amount of Ether sent too small");
      address _buyer = _msgSender();
      address payable _seller = address(uint160(ownerOf(_tokenId)));
      _transfer(_seller, _buyer, _tokenId);
      //Note: a pull mechanism would be safer here: https://docs.openzeppelin.com/contracts/2.x/api/payment#PullPayment

      uint256 _artistTake = artistTake.mul(msg.value).div(100);
      uint256 _sellerTake = msg.value.sub(_artistTake);

      Ink storage _ink = _inkById[_inkIdByTokenId[_tokenId]];

      _ink.artist.transfer(_artistTake);
      _seller.transfer(_sellerTake);
      delete tokenPrice[_tokenId];
      emit boughtInk(_tokenId, _ink.inkUrl, _buyer, msg.value);
    }

    function createInkFromSignature(string memory inkUrl, string memory jsonUrl, uint256 limit, address payable artist, bytes memory signature) public returns (uint256) {
      require(!(_inkIdByUrl[inkUrl] > 0), "this ink already exists!");

      require(artist!=address(0), "Artist must be specified.");
      bytes32 messageHash = getHash(artist,inkUrl,jsonUrl,limit);
      bool isArtistSignature = checkSignature(messageHash, signature, artist);
      require(isArtistSignature, "Unable to verify the artist signature");

      uint256 inkId = _createInk(inkUrl, jsonUrl, limit, artist, _msgSender());

      _mintInkToken(_msgSender(), inkId, inkUrl, jsonUrl);

      _inkSignatureByUrl[inkUrl] = signature;

      return inkId;
    }

    function getHash(address artist, string memory inkUrl, string memory jsonUrl, uint256 limit) public view returns (bytes32)
    {
        return keccak256(
            abi.encodePacked(
                byte(0x19),
                byte(0),
                address(this),
                artist,
                inkUrl,
                jsonUrl,
                limit
        ));
    }

    function inkTokenByIndex(string memory inkUrl, uint256 index) public view returns (uint256) {
      uint256 _inkId = _inkIdByUrl[inkUrl];
      require(_inkId > 0, "this ink does not exist!");
      Ink storage _ink = _inkById[_inkId];
      require(_ink.count >= index + 1, "this token index does not exist!");
      return _inkTokens[inkUrl].at(index);
    }

    function inkInfoByInkUrl(string memory inkUrl) public view returns (uint256, address, uint256, string memory, bytes memory, uint256) {
      uint256 _inkId = _inkIdByUrl[inkUrl];
      require(_inkId > 0, "this ink does not exist!");
      Ink storage _ink = _inkById[_inkId];
      bytes memory signature = _inkSignatureByUrl[inkUrl];

      return (_inkId, _ink.artist, _ink.count, _ink.jsonUrl, signature, _ink.price);
    }

    function inkIdByUrl(string memory inkUrl) public view returns (uint256) {
      return _inkIdByUrl[inkUrl];
    }

    function inksCreatedBy(address artist) public view returns (uint256) {
      return _artistInks[artist].length();
    }

    function inkOfArtistByIndex(address artist, uint256 index) public view returns (uint256) {
        return _artistInks[artist].at(index);
    }

    function inkInfoById(uint256 id) public view returns (string memory, address, uint256, string memory, bytes memory, uint256) {
      require(_inkById[id].exists, "this ink does not exist!");
      Ink storage _ink = _inkById[id];
      bytes memory signature = _inkSignatureByUrl[_ink.inkUrl];

      return (_ink.jsonUrl, _ink.artist, _ink.count, _ink.inkUrl, signature, _ink.price);
    }

    function versionRecipient() external virtual view override returns (string memory) {
  		return "1.0";
  	}

    function setTrustedForwarder(address _trustedForwarder) public onlyOwner {
      trustedForwarder = _trustedForwarder;
  	}

  	function getTrustedForwarder() public view returns(address) {
  		return trustedForwarder;
  	}

    function _msgSender() internal override(BaseRelayRecipient, Context) view returns (address payable) {
        return BaseRelayRecipient._msgSender();
    }

}


// File contracts/INiftyToken.sol

pragma solidity >=0.6.0 <0.7.0;

interface INiftyToken {
    function inkTokenCount(string calldata) external view returns (uint256);
    function firstMint(address, string calldata, string calldata) external returns (uint256);
    function mint(address, string calldata) external returns (uint256);
    function buyInk(string calldata) external payable returns (uint256);
    function buyToken(uint256) external payable;
    function lock(uint256) external;
    function unlock(uint256, address) external;
    function ownerOf(uint256) external view returns (address);
    function tokenInk(uint) external view returns (string memory);
}


// File contracts/INiftyRegistry.sol

pragma solidity ^0.6.6;

interface INiftyRegistry {
    function inkAddress() external view returns (address);
    function tokenAddress() external view returns (address);
    function bridgeMediatorAddress() external view returns (address);
    function trustedForwarder() external view returns (address);
}


// File contracts/NiftyInk.sol

pragma solidity >=0.6.0 <0.7.0;








contract NiftyInk is BaseRelayRecipient, Ownable, SignatureChecker {

    constructor() public {
      setCheckSignatureFlag(true);
      setArtistTake(1);
    }

    using Counters for Counters.Counter;
    using EnumerableSet for EnumerableSet.UintSet;

    Counters.Counter public totalInks;

    uint public artistTake;

    function setArtistTake(uint _take) public onlyOwner {
      require(_take < 100, 'take is more than 99 percent');
      artistTake = _take;
    }

    address public niftyRegistry;

    function setNiftyRegistry(address _address) public onlyOwner {
      niftyRegistry = _address;
    }

    function niftyToken() private view returns (INiftyToken) {
      return INiftyToken(INiftyRegistry(niftyRegistry).tokenAddress());
    }

    event newInk(uint256 id, address indexed artist, string inkUrl, string jsonUrl, uint256 limit);

    struct Ink {
      uint256 id;
      address payable artist;
      string jsonUrl;
      string inkUrl;
      uint256 limit;
      bytes signature;
      uint256 price;
      Counters.Counter priceNonce;
    }

    mapping (string => uint256) public inkIdByInkUrl;
    mapping (uint256 => Ink) private _inkById;
    mapping (address => EnumerableSet.UintSet) private _artistInks;

    function _createInk(string memory inkUrl, string memory jsonUrl, uint256 limit, address payable artist) internal returns (uint256) {

      totalInks.increment();
      uint256 _inkId = totalInks.current();

      Ink storage _ink = _inkById[_inkId];

      _ink.id = _inkId;
      _ink.artist = artist;
      _ink.inkUrl = inkUrl;
      _ink.jsonUrl = jsonUrl;
      _ink.limit = limit;

      inkIdByInkUrl[inkUrl] = _inkId;
      _artistInks[artist].add(_inkId);

      emit newInk(_ink.id, _ink.artist, _ink.inkUrl, _ink.jsonUrl, _ink.limit);

      return _ink.id;
    }

    function createInk(string memory inkUrl, string memory jsonUrl, uint256 limit) public returns (uint256) {
      require(!(inkIdByInkUrl[inkUrl] > 0), "this ink already exists!");

      uint256 inkId = _createInk(inkUrl, jsonUrl, limit, _msgSender());

      niftyToken().firstMint(_msgSender(), inkUrl, jsonUrl);

      return inkId;
    }

    function createInkFromSignature(string memory inkUrl, string memory jsonUrl, uint256 limit, address payable artist, bytes memory signature) public returns (uint256) {
      require(!(inkIdByInkUrl[inkUrl] > 0), "this ink already exists!");

      require(artist!=address(0), "Artist must be specified.");
      bytes32 messageHash = keccak256(abi.encodePacked(byte(0x19), byte(0), address(this), artist, inkUrl, jsonUrl, limit));
      bool isArtistSignature = checkSignature(messageHash, signature, artist);
      require(isArtistSignature || !checkSignatureFlag, "Artist did not sign this ink");

      uint256 inkId = _createInk(inkUrl, jsonUrl, limit, artist);

      _inkById[inkId].signature = signature;

      niftyToken().firstMint(artist, inkUrl, jsonUrl);

      return inkId;
    }

    function _setPrice(uint256 _inkId, uint256 price) private returns (uint256) {

      _inkById[_inkId].price = price;
      _inkById[_inkId].priceNonce.increment();

      return price;
    }

    function setPrice(string memory inkUrl, uint256 price) public returns (uint256) {
      uint256 _inkId = inkIdByInkUrl[inkUrl];
      require(_inkId > 0, "this ink does not exist!");
      Ink storage _ink = _inkById[_inkId];
      require(_ink.artist == _msgSender(), "only the artist can set the price!");

      return _setPrice(_ink.id, price);
    }

    function setPriceFromSignature(string memory inkUrl, uint256 price, bytes memory signature) public returns (uint256) {
      uint256 _inkId = inkIdByInkUrl[inkUrl];
      require(_inkId > 0, "this ink does not exist!");
      Ink storage _ink = _inkById[_inkId];
      bytes32 messageHash = keccak256(abi.encodePacked(byte(0x19), byte(0), address(this), inkUrl, price, _ink.priceNonce.current()));
      bool isArtistSignature = checkSignature(messageHash, signature, _ink.artist);
      require(isArtistSignature || !checkSignatureFlag, "Artist did not sign this price");

      return _setPrice(_ink.id, price);
    }


    function inkInfoById(uint256 id) public view returns (uint256, address, string memory, bytes memory, uint256, uint256, string memory, uint256) {
      require(id > 0 && id <= totalInks.current(), "this ink does not exist!");
      Ink storage _ink = _inkById[id];

      return (id, _ink.artist, _ink.jsonUrl, _ink.signature, _ink.price, _ink.limit, _ink.inkUrl, _ink.priceNonce.current());
    }

    function inkInfoByInkUrl(string memory inkUrl) public view returns (uint256, address, string memory, bytes memory, uint256, uint256, string memory, uint256) {
      uint256 _inkId = inkIdByInkUrl[inkUrl];

      return inkInfoById(_inkId);
    }

    function inksCreatedBy(address artist) public view returns (uint256) {
      return _artistInks[artist].length();
    }

    function inkOfArtistByIndex(address artist, uint256 index) public view returns (uint256) {
        return _artistInks[artist].at(index);
    }

    function versionRecipient() external virtual view override returns (string memory) {
  		return "1.0";
  	}

    function setTrustedForwarder(address _trustedForwarder) public onlyOwner {
      trustedForwarder = _trustedForwarder;
    }

    function getTrustedForwarder() public view returns(address) {
      return trustedForwarder;
    }

    function _msgSender() internal override(BaseRelayRecipient, Context) view returns (address payable) {
        return BaseRelayRecipient._msgSender();
    }

}


// File contracts/NiftyMain.sol

pragma solidity >=0.6.0 <0.7.0;






contract NiftyMain is ERC721, Ownable, AMBMediator {

    constructor() ERC721("🎨 Nifty.Ink", "🎨") public {
      _setBaseURI('ipfs://ipfs/');
    }

    event mintedInk(uint256 id, string inkUrl, string jsonUrl, address to, bytes32 msgId);

    mapping (string => EnumerableSet.UintSet) private _inkTokens;
    mapping (uint256 => string) public tokenInk;

    function mint(address to, uint256 tokenId, string calldata inkUrl, string calldata jsonUrl) external returns (uint256) {
      require(msg.sender == address(bridgeContract()));
      require(bridgeContract().messageSender() == mediatorContractOnOtherSide());

      _inkTokens[inkUrl].add(tokenId);
      tokenInk[tokenId] = inkUrl;
      _safeMint(to, tokenId);
      _setTokenURI(tokenId, jsonUrl);
      bytes32 msgId = messageId();

      emit mintedInk(tokenId, inkUrl, jsonUrl, to, msgId);

      return tokenId;
    }

    function inkTokenCount(string memory _inkUrl) public view returns(uint256) {
      uint256 _inkTokenCount = _inkTokens[_inkUrl].length();
      return _inkTokenCount;
    }

    function inkTokenByIndex(string memory inkUrl, uint256 index) public view returns (uint256) {
      return _inkTokens[inkUrl].at(index);
    }

}


// File contracts/INiftyInk.sol

pragma solidity >=0.6.0 <0.7.0;

interface INiftyInk {
    function artistTake() external view returns (uint);
    function inkInfoById(uint256) external view returns (uint256, address payable, string memory, bytes memory, uint256, uint256, string memory);
    function inkInfoByInkUrl(string calldata) external view returns (uint256, address payable, string memory, bytes memory, uint256, uint256, string memory);
    function inkIdByInkUrl(string calldata) external view returns (uint256);
}


// File contracts/NiftyMediator.sol

pragma solidity >=0.6.0 <0.7.0;








contract NiftyMediator is BaseRelayRecipient, Ownable, AMBMediator, SignatureChecker {

    constructor() public {
      setCheckSignatureFlag(true);
    }

    event tokenSentViaBridge(uint256 _tokenId, bytes32 _msgId);
    event failedMessageFixed(bytes32 _msgId, address _recipient, uint256 _tokenId);

    address public niftyRegistry;

    function setNiftyRegistry(address _address) public onlyOwner {
      niftyRegistry = _address;
    }

    function niftyToken() private view returns (INiftyToken) {
      return INiftyToken(INiftyRegistry(niftyRegistry).tokenAddress());
    }

    function niftyInk() private view returns (INiftyInk) {
      return INiftyInk(INiftyRegistry(niftyRegistry).inkAddress());
    }

    mapping (bytes32 => uint256) private msgTokenId;
    mapping (bytes32 => address) private msgRecipient;

    function _relayToken(uint256 _tokenId) internal returns (bytes32) {
      niftyToken().lock(_tokenId);

      string memory _inkUrl = niftyToken().tokenInk(_tokenId);

      (, , string memory _jsonUrl, , , , ) = niftyInk().inkInfoByInkUrl(_inkUrl);

      bytes4 methodSelector = ITokenManagement(address(0)).mint.selector;
      bytes memory data = abi.encodeWithSelector(methodSelector, _msgSender(), _tokenId, _inkUrl, _jsonUrl);
      bytes32 msgId = bridgeContract().requireToPassMessage(
          mediatorContractOnOtherSide(),
          data,
          requestGasLimit
      );

      msgTokenId[msgId] = _tokenId;
      msgRecipient[msgId] = _msgSender();

      emit tokenSentViaBridge(_tokenId, msgId);

      return msgId;
    }

    function relayToken(uint256 _tokenId) external returns (bytes32) {
      require(_msgSender() == niftyToken().ownerOf(_tokenId), 'only the owner can upgrade!');

      return _relayToken(_tokenId);
    }


    function relayTokenFromSignature(uint256 _tokenId, bytes calldata signature) external returns (bytes32) {
      address _owner = niftyToken().ownerOf(_tokenId);
      bytes32 messageHash = keccak256(abi.encodePacked(byte(0x19), byte(0), address(this), _owner, _tokenId));
      bool isOwnerSignature = checkSignature(messageHash, signature, _owner);
      require(isOwnerSignature || !checkSignatureFlag, "only the owner can upgrade!");

      return _relayToken(_tokenId);
    }

    function fixFailedMessage(bytes32 _msgId) external {
      require(msg.sender == address(bridgeContract()));
      require(bridgeContract().messageSender() == mediatorContractOnOtherSide());
      require(!messageFixed[_msgId]);

      address _recipient = msgRecipient[_msgId];
      uint256 _tokenId = msgTokenId[_msgId];

      messageFixed[_msgId] = true;
      niftyToken().unlock(_tokenId, _recipient);

      emit failedMessageFixed(_msgId, _recipient, _tokenId);
    }

    function versionRecipient() external virtual view override returns (string memory) {
  		return "1.0";
  	}

    function setTrustedForwarder(address _trustedForwarder) public onlyOwner {
      trustedForwarder = _trustedForwarder;
    }

    function getTrustedForwarder() public view returns(address) {
      return trustedForwarder;
    }

    function _msgSender() internal override(BaseRelayRecipient, Context) view returns (address payable) {
        return BaseRelayRecipient._msgSender();
    }

}


// File contracts/NiftyRegistry.sol

pragma solidity >=0.6.0 <0.7.0;


contract NiftyRegistry is Ownable {

    address public inkAddress;
    address public tokenAddress;
    address public bridgeMediatorAddress;
    address public trustedForwarder;

    function setInkAddress(address _address) public onlyOwner {
      inkAddress = _address;
  	}

    function setTokenAddress(address _address) public onlyOwner {
      tokenAddress = _address;
    }

    function setBridgeMediatorAddress(address _address) public onlyOwner {
      bridgeMediatorAddress = _address;
    }

    function setTrustedForwarder(address _trustedForwarder) public onlyOwner {
      trustedForwarder = _trustedForwarder;
  	}

}


// File contracts/NiftyToken.sol

pragma solidity >=0.6.0 <0.7.0;









contract NiftyToken is BaseRelayRecipient, ERC721, SignatureChecker {

    constructor() ERC721("🎨 Nifty.Ink", "🎨") public {
      _setBaseURI('ipfs://ipfs/');
      setCheckSignatureFlag(true);
    }

    using Counters for Counters.Counter;
    Counters.Counter private _tokenIds;
    using SafeMath for uint256;

    address public niftyRegistry;

    function setNiftyRegistry(address _address) public onlyOwner {
      niftyRegistry = _address;
    }

    function niftyInk() private view returns (INiftyInk) {
      return INiftyInk(INiftyRegistry(niftyRegistry).inkAddress());
    }

    event mintedInk(uint256 id, string inkUrl, address to);
    event boughtInk(uint256 id, string inkUrl, address buyer, uint256 price);
    event boughtToken(uint256 id, string inkUrl, address buyer, uint256 price);
    event lockedInk(uint256 id, address recipient);
    event unlockedInk(uint256 id, address recipient);

    mapping (string => EnumerableSet.UintSet) private _inkTokens;
    mapping (uint256 => string) public tokenInk;

    mapping (uint256 => uint256) public tokenPrice;

    function inkTokenCount(string memory _inkUrl) public view returns(uint256) {
      uint256 _inkTokenCount = _inkTokens[_inkUrl].length();
      return _inkTokenCount;
    }

    function _mintInkToken(address to, string memory inkUrl, string memory jsonUrl) internal returns (uint256) {

      _tokenIds.increment();
      uint256 id = _tokenIds.current();
      _inkTokens[inkUrl].add(id);
      tokenInk[id] = inkUrl;

      _mint(to, id);
      _setTokenURI(id, jsonUrl);

      emit mintedInk(id, inkUrl, to);

      return id;
    }

    function firstMint(address to, string calldata inkUrl, string calldata jsonUrl) external returns (uint256) {
      require(_msgSender() == INiftyRegistry(niftyRegistry).inkAddress());
      _mintInkToken(to, inkUrl, jsonUrl);
    }

    function mint(address to, string memory _inkUrl) public returns (uint256) {
        uint256 _inkId = niftyInk().inkIdByInkUrl(_inkUrl);
        require(_inkId > 0, "this ink does not exist!");
        (, address _artist, string memory _jsonUrl, , , uint256 _limit, ) = niftyInk().inkInfoById(_inkId);

        require(_artist == _msgSender(), "only the artist can mint!");

        require(inkTokenCount(_inkUrl) < _limit || _limit == 0, "this ink is over the limit!");

        uint256 tokenId = _mintInkToken(to, _inkUrl, _jsonUrl);

        return tokenId;
    }

    function mintFromSignature(address to, string memory _inkUrl, bytes memory signature) public returns (uint256) {
        uint256 _inkId = niftyInk().inkIdByInkUrl(_inkUrl);
        require(_inkId > 0, "this ink does not exist!");

        uint256 _count = inkTokenCount(_inkUrl);
        (, address _artist, string memory _jsonUrl, , , uint256 _limit, ) = niftyInk().inkInfoById(_inkId);
        require(_count < _limit || _limit == 0, "this ink is over the limit!");

        bytes32 messageHash = keccak256(abi.encodePacked(byte(0x19), byte(0), address(this), to, _inkUrl, _count));
        bool isArtistSignature = checkSignature(messageHash, signature, _artist);
        require(isArtistSignature || !checkSignatureFlag, "only the artist can mint!");

        uint256 tokenId = _mintInkToken(to, _inkUrl, _jsonUrl);

        return tokenId;
    }

    function lock(uint256 _tokenId) external {
      address _bridgeMediatorAddress = INiftyRegistry(niftyRegistry).bridgeMediatorAddress();
      require(_bridgeMediatorAddress == _msgSender(), 'only the bridgeMediator can lock');
      address from = ownerOf(_tokenId);
      _transfer(from, _msgSender(), _tokenId);
    }

    function unlock(uint256 _tokenId, address _recipient) external {
      require(_msgSender() == INiftyRegistry(niftyRegistry).bridgeMediatorAddress(), 'only the bridgeMediator can unlock');
      require(_msgSender() == ownerOf(_tokenId), 'the bridgeMediator does not hold this token');
      safeTransferFrom(_msgSender(), _recipient, _tokenId);
    }

    function buyInk(string memory _inkUrl) public payable returns (uint256) {
      uint256 _inkId = niftyInk().inkIdByInkUrl(_inkUrl);
      require(_inkId > 0, "this ink does not exist!");
      (, address payable _artist, string memory _jsonUrl, , uint256 _price, uint256 _limit, ) = niftyInk().inkInfoById(_inkId);
      require(inkTokenCount(_inkUrl) < _limit || _limit == 0, "this ink is over the limit!");
      require(_price > 0, "this ink does not have a price set");
      require(msg.value >= _price, "Amount of Ether sent too small");
      address _buyer = _msgSender();
      uint256 _tokenId = _mintInkToken(_buyer, _inkUrl, _jsonUrl);
      //Note: a pull mechanism would be safer here: https://docs.openzeppelin.com/contracts/2.x/api/payment#PullPayment
      _artist.transfer(msg.value);
      emit boughtInk(_tokenId, _inkUrl, _buyer, msg.value);
      return _tokenId;
    }

    function setTokenPrice(uint256 _tokenId, uint256 _price) public returns (uint256) {
      require(_exists(_tokenId), "this token does not exist!");
      require(ownerOf(_tokenId) == _msgSender(), "only the owner can set the price!");

      tokenPrice[_tokenId] = _price;

      return _price;
    }

    function buyToken(uint256 _tokenId) public payable {
      uint256 _price = tokenPrice[_tokenId];
      require(_price > 0, "this token is not for sale");
      require(msg.value >= _price, "Amount of Ether sent too small");
      address _buyer = _msgSender();
      address payable _seller = address(uint160(ownerOf(_tokenId)));
      _transfer(_seller, _buyer, _tokenId);
      //Note: a pull mechanism would be safer here: https://docs.openzeppelin.com/contracts/2.x/api/payment#PullPayment

      uint256 _artistTake = niftyInk().artistTake().mul(msg.value).div(100);
      uint256 _sellerTake = msg.value.sub(_artistTake);
      string memory _inkUrl = tokenInk[_tokenId];

      (, address payable _artist, , , , , ) = niftyInk().inkInfoByInkUrl(_inkUrl);

      _artist.transfer(_artistTake);
      _seller.transfer(_sellerTake);
      delete tokenPrice[_tokenId];
      emit boughtInk(_tokenId, _inkUrl, _buyer, msg.value);
    }

    function inkTokenByIndex(string memory inkUrl, uint256 index) public view returns (uint256) {
      return _inkTokens[inkUrl].at(index);
    }

    function versionRecipient() external virtual view override returns (string memory) {
  		return "1.0";
  	}

    function setTrustedForwarder(address _trustedForwarder) public onlyOwner {
      trustedForwarder = _trustedForwarder;
    }

    function getTrustedForwarder() public view returns(address) {
      return trustedForwarder;
    }

    function _msgSender() internal override(BaseRelayRecipient, Context) view returns (address payable) {
        return BaseRelayRecipient._msgSender();
    }

}


// File contracts/ValidSignatureTester.sol

pragma solidity >=0.6.0 <0.7.0;


contract ValidSignatureTester {

  bytes4 internal constant _ERC1271MAGICVALUE = 0x1626ba7e;
  bytes4 internal constant _ERC1271FAILVALUE = 0xffffffff;

  bool public setting;

  function changeSetting() public returns (bool) {
    setting = !setting;
    return setting;
  }

  function isValidSignature(
      bytes32 _hash, //bytes memory _data,
      bytes calldata _signature
  )
  external
  view
  returns (bytes4 magicValue) {
    if(setting==true) {
      return _ERC1271MAGICVALUE;
    } else {
      return _ERC1271FAILVALUE;
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":"id","type":"uint256"},{"indexed":false,"internalType":"string","name":"inkUrl","type":"string"},{"indexed":false,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"boughtInk","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"string","name":"inkUrl","type":"string"},{"indexed":false,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"boughtToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"}],"name":"lockedInk","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"string","name":"inkUrl","type":"string"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"mintedInk","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"}],"name":"unlockedInk","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_inkUrl","type":"string"}],"name":"buyInk","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"buyToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"signedHash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"address","name":"checkAddress","type":"address"}],"name":"checkSignature","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"checkSignatureFlag","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"inkUrl","type":"string"},{"internalType":"string","name":"jsonUrl","type":"string"}],"name":"firstMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"signedHash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"getSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getTrustedForwarder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"inkUrl","type":"string"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"inkTokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_inkUrl","type":"string"}],"name":"inkTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"forwarder","type":"address"}],"name":"isTrustedForwarder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"_inkUrl","type":"string"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"string","name":"_inkUrl","type":"string"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"mintFromSignature","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"niftyRegistry","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newFlag","type":"bool"}],"name":"setCheckSignatureFlag","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setNiftyRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setTokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_trustedForwarder","type":"address"}],"name":"setTrustedForwarder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenInk","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"versionRecipient","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b50604080518082018252600e81526df09f8ea8204e696674792e496e6b60901b602080830191909152825180840190935260048352631e13f1d560e31b90830152906200006e6301ffc9a760e01b6001600160e01b03620001a316565b81516200008390600790602085019062000463565b5080516200009990600890602084019062000463565b50620000b56380ac58cd60e01b6001600160e01b03620001a316565b620000d0635b5e139f60e01b6001600160e01b03620001a316565b620000eb63780e9d6360e01b6001600160e01b03620001a316565b5060009050620001036001600160e01b036200022b16565b600b80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060408051808201909152600c81526b697066733a2f2f697066732f60a01b602082015262000188906001600160e01b036200024816565b6200019d60016001600160e01b036200026116565b62000505565b6001600160e01b0319808216141562000203576040805162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e7465726661636520696400000000604482015290519081900360640190fd5b6001600160e01b0319166000908152600160208190526040909120805460ff19169091179055565b600062000242620002f560201b620042a71760201c565b90505b90565b80516200025d90600a90602084019062000463565b5050565b620002746001600160e01b036200022b16565b600b546001600160a01b03908116911614620002d7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600b8054911515600160a01b0260ff60a01b19909216919091179055565b60006018361080159062000318575062000318336001600160e01b036200037e16565b156200037957620003716000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050366013190191505062000392602090811b620049a817901c565b905062000245565b503390565b6000546001600160a01b0390811691161490565b60008160140183511015620003d357620003d3620003c26004855185601401620003e560201b62004b871760201c565b6200045b60201b62004bfc1760201c565b5001601401516001600160a01b031690565b6060632800659560e01b848484604051602401808460078111156200040657fe5b60ff1681526020018381526020018281526020019350505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505090509392505050565b805160208201fd5b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620004a657805160ff1916838001178555620004d6565b82800160010185558215620004d6579182015b82811115620004d6578251825591602001919060010190620004b9565b50620004e4929150620004e8565b5090565b6200024591905b80821115620004e45760008155600101620004ef565b61506080620005156000396000f3fe6080604052600436106102515760003560e01c80637352fb9b11610139578063d0def521116100b6578063e5d316b51161007a578063e5d316b514610dd7578063e985e9c514610e01578063eb685c4714610e3c578063f1d2ec1d14610e6c578063f2fde38b14610ea5578063f7b2ec0d14610ed857610251565b8063d0def52114610c7a578063d4ddce8a14610d3b578063da74222814610d65578063dd46706414610d98578063e15221cc14610dc257610251565b80639946aeaf116100fd5780639946aeaf14610afc578063a22cb46514610b2f578063b88d4fde14610b6a578063c87b56dd14610c3b578063ce1b815f14610c6557610251565b80637352fb9b1461083757806374a1aca3146108e8578063897a917814610a2e5780638da5cb5b14610ad257806395d89b4114610ae757610251565b80632f745c59116101d2578063551a23c911610196578063551a23c9146106a2578063572b6c051461077d5780636352211e146107b05780636c0360eb146107da57806370a08231146107ef578063715018a61461082257610251565b80632f745c59146105d257806342842e0e1461060b578063486ff0cd1461064e5780634e42b630146106635780634f6ccce71461067857610251565b806318160ddd1161021957806318160ddd146103d55780631a5dfa9a146103fc57806323b872dd146104af578063286cdf58146104f25780632d296bf1146105b557610251565b806301ffc9a71461025657806306fdde031461029e578063081812fc14610328578063095ea7b31461036e57806316569176146103a9575b600080fd5b34801561026257600080fd5b5061028a6004803603602081101561027957600080fd5b50356001600160e01b031916610f90565b604080519115158252519081900360200190f35b3480156102aa57600080fd5b506102b3610fb3565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102ed5781810151838201526020016102d5565b50505050905090810190601f16801561031a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561033457600080fd5b506103526004803603602081101561034b57600080fd5b503561104a565b604080516001600160a01b039092168252519081900360200190f35b34801561037a57600080fd5b506103a76004803603604081101561039157600080fd5b506001600160a01b0381351690602001356110ac565b005b3480156103b557600080fd5b506103a7600480360360208110156103cc57600080fd5b50351515611187565b3480156103e157600080fd5b506103ea6111fd565b60408051918252519081900360200190f35b34801561040857600080fd5b506103ea6004803603604081101561041f57600080fd5b810190602081018135600160201b81111561043957600080fd5b82018360208201111561044b57600080fd5b803590602001918460018302840111600160201b8311171561046c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550509135925061120e915050565b3480156104bb57600080fd5b506103a7600480360360608110156104d257600080fd5b506001600160a01b03813581169160208101359091169060400135611283565b3480156104fe57600080fd5b5061028a6004803603606081101561051557600080fd5b81359190810190604081016020820135600160201b81111561053657600080fd5b82018360208201111561054857600080fd5b803590602001918460018302840111600160201b8311171561056957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550505090356001600160a01b031691506112da9050565b6103a7600480360360208110156105cb57600080fd5b503561140e565b3480156105de57600080fd5b506103ea600480360360408110156105f557600080fd5b506001600160a01b038135169060200135611a8f565b34801561061757600080fd5b506103a76004803603606081101561062e57600080fd5b506001600160a01b03813581169160208101359091169060400135611ab7565b34801561065a57600080fd5b506102b3611ad2565b34801561066f57600080fd5b5061028a611aef565b34801561068457600080fd5b506103ea6004803603602081101561069b57600080fd5b5035611aff565b3480156106ae57600080fd5b506103ea600480360360608110156106c557600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156106ef57600080fd5b82018360208201111561070157600080fd5b803590602001918460018302840111600160201b8311171561072257600080fd5b919390929091602081019035600160201b81111561073f57600080fd5b82018360208201111561075157600080fd5b803590602001918460018302840111600160201b8311171561077257600080fd5b509092509050611b1b565b34801561078957600080fd5b5061028a600480360360208110156107a057600080fd5b50356001600160a01b0316611c2e565b3480156107bc57600080fd5b50610352600480360360208110156107d357600080fd5b5035611c42565b3480156107e657600080fd5b506102b3611c70565b3480156107fb57600080fd5b506103ea6004803603602081101561081257600080fd5b50356001600160a01b0316611cd1565b34801561082e57600080fd5b506103a7611d39565b34801561084357600080fd5b506103ea6004803603602081101561085a57600080fd5b810190602081018135600160201b81111561087457600080fd5b82018360208201111561088657600080fd5b803590602001918460018302840111600160201b831117156108a757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611ddb945050505050565b3480156108f457600080fd5b506103ea6004803603606081101561090b57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561093557600080fd5b82018360208201111561094757600080fd5b803590602001918460018302840111600160201b8311171561096857600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b8111156109ba57600080fd5b8201836020820111156109cc57600080fd5b803590602001918460018302840111600160201b831117156109ed57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550611e47945050505050565b6103ea60048036036020811015610a4457600080fd5b810190602081018135600160201b811115610a5e57600080fd5b820183602082011115610a7057600080fd5b803590602001918460018302840111600160201b83111715610a9157600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612412945050505050565b348015610ade57600080fd5b50610352612a0c565b348015610af357600080fd5b506102b3612a1b565b348015610b0857600080fd5b506103a760048036036020811015610b1f57600080fd5b50356001600160a01b0316612a7c565b348015610b3b57600080fd5b506103a760048036036040811015610b5257600080fd5b506001600160a01b0381351690602001351515612af6565b348015610b7657600080fd5b506103a760048036036080811015610b8d57600080fd5b6001600160a01b03823581169260208101359091169160408201359190810190608081016060820135600160201b811115610bc757600080fd5b820183602082011115610bd957600080fd5b803590602001918460018302840111600160201b83111715610bfa57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612bfb945050505050565b348015610c4757600080fd5b506102b360048036036020811015610c5e57600080fd5b5035612c59565b348015610c7157600080fd5b50610352612f00565b348015610c8657600080fd5b506103ea60048036036040811015610c9d57600080fd5b6001600160a01b038235169190810190604081016020820135600160201b811115610cc757600080fd5b820183602082011115610cd957600080fd5b803590602001918460018302840111600160201b83111715610cfa57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550612f0f945050505050565b348015610d4757600080fd5b506103ea60048036036020811015610d5e57600080fd5b50356133d4565b348015610d7157600080fd5b506103a760048036036020811015610d8857600080fd5b50356001600160a01b03166133e6565b348015610da457600080fd5b506103a760048036036020811015610dbb57600080fd5b5035613460565b348015610dce57600080fd5b5061035261355f565b348015610de357600080fd5b506102b360048036036020811015610dfa57600080fd5b503561356e565b348015610e0d57600080fd5b5061028a60048036036040811015610e2457600080fd5b506001600160a01b0381358116916020013516613609565b348015610e4857600080fd5b506103ea60048036036040811015610e5f57600080fd5b5080359060200135613637565b348015610e7857600080fd5b506103a760048036036040811015610e8f57600080fd5b50803590602001356001600160a01b0316613708565b348015610eb157600080fd5b506103a760048036036020811015610ec857600080fd5b50356001600160a01b031661384d565b348015610ee457600080fd5b5061035260048036036040811015610efb57600080fd5b81359190810190604081016020820135600160201b811115610f1c57600080fd5b820183602082011115610f2e57600080fd5b803590602001918460018302840111600160201b83111715610f4f57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550613946945050505050565b6001600160e01b0319811660009081526001602052604090205460ff165b919050565b60078054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561103f5780601f106110145761010080835404028352916020019161103f565b820191906000526020600020905b81548152906001019060200180831161102257829003601f168201915b505050505090505b90565b600061105582613961565b6110905760405162461bcd60e51b815260040180806020018281038252602c815260200180614e9a602c913960400191505060405180910390fd5b506000908152600560205260409020546001600160a01b031690565b60006110b782611c42565b9050806001600160a01b0316836001600160a01b0316141561110a5760405162461bcd60e51b8152600401808060200182810382526021815260200180614f956021913960400191505060405180910390fd5b806001600160a01b031661111c613974565b6001600160a01b0316148061113d575061113d81611138613974565b613609565b6111785760405162461bcd60e51b8152600401808060200182810382526038815260200180614daa6038913960400191505060405180910390fd5b611182838361397e565b505050565b61118f613974565b600b546001600160a01b039081169116146111df576040805162461bcd60e51b81526020600482018190526024820152600080516020614f1d833981519152604482015290519081900360640190fd5b600b8054911515600160a01b0260ff60a01b19909216919091179055565b600061120960036139ec565b905090565b600061127a82600e856040518082805190602001908083835b602083106112465780518252601f199092019160209182019101611227565b51815160209384036101000a60001901801990921691161790529201948552506040519384900301909220929150506139f7565b90505b92915050565b61129461128e613974565b82613a03565b6112cf5760405162461bcd60e51b8152600401808060200182810382526031815260200180614fb66031913960400191505060405180910390fd5b611182838383613aa7565b60006112ee826001600160a01b0316613c05565b156113e65760408051630b135d3f60e11b808252600482018781526024830193845286516044840152865191936001600160a01b03871693631626ba7e938a938a9390929091606490910190602085019080838360005b8381101561135d578181015183820152602001611345565b50505050905090810190601f16801561138a5780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b1580156113a857600080fd5b505afa1580156113bc573d6000803e3d6000fd5b505050506040513d60208110156113d257600080fd5b50516001600160e01b031916149050611407565b816001600160a01b03166113fa8585613946565b6001600160a01b03161490505b9392505050565b6000818152601060205260409020548061146f576040805162461bcd60e51b815260206004820152601a60248201527f7468697320746f6b656e206973206e6f7420666f722073616c65000000000000604482015290519081900360640190fd5b803410156114c4576040805162461bcd60e51b815260206004820152601e60248201527f416d6f756e74206f662045746865722073656e7420746f6f20736d616c6c0000604482015290519081900360640190fd5b60006114ce613974565b905060006114db84611c42565b90506114e8818386613aa7565b6000611577606461156b346114fb613c3e565b6001600160a01b03166381830df36040518163ffffffff1660e01b815260040160206040518083038186803b15801561153357600080fd5b505afa158015611547573d6000803e3d6000fd5b505050506040513d602081101561155d57600080fd5b50519063ffffffff613cb416565b9063ffffffff613d0d16565b9050600061158b348363ffffffff613d4f16565b6000878152600f602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845293945060609390918301828280156116245780601f106115f957610100808354040283529160200191611624565b820191906000526020600020905b81548152906001019060200180831161160757829003601f168201915b505050505090506000611635613c3e565b6001600160a01b0316639235a93d836040518263ffffffff1660e01b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611690578181015183820152602001611678565b50505050905090810190601f1680156116bd5780820380516001836020036101000a031916815260200191505b509250505060006040518083038186803b1580156116da57600080fd5b505afa1580156116ee573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260e081101561171757600080fd5b81516020830151604080850180519151939592948301929184600160201b82111561174157600080fd5b90830190602082018581111561175657600080fd5b8251600160201b81118282018810171561176f57600080fd5b82525081516020918201929091019080838360005b8381101561179c578181015183820152602001611784565b50505050905090810190601f1680156117c95780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084600160201b8211156117eb57600080fd5b90830190602082018581111561180057600080fd5b8251600160201b81118282018810171561181957600080fd5b82525081516020918201929091019080838360005b8381101561184657818101518382015260200161182e565b50505050905090810190601f1680156118735780820380516001836020036101000a031916815260200191505b50604081815260208301519083015160609093018051919593949293929184600160201b8211156118a357600080fd5b9083019060208201858111156118b857600080fd5b8251600160201b8111828201881017156118d157600080fd5b82525081516020918201929091019080838360005b838110156118fe5781810151838201526020016118e6565b50505050905090810190601f16801561192b5780820380516001836020036101000a031916815260200191505b506040525050505050505050915050806001600160a01b03166108fc859081150290604051600060405180830381858888f19350505050158015611973573d6000803e3d6000fd5b506040516001600160a01b0386169084156108fc029085906000818181858888f193505050501580156119aa573d6000803e3d6000fd5b5060106000898152602001908152602001600020600090557f1bbd0fe97d65798589fa7d6d49c23fbdc8364b1e23dc9dc13e3b714019fce7c6888388346040518085815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019080838360005b83811015611a48578181015183820152602001611a30565b50505050905090810190601f168015611a755780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a15050505050505050565b6001600160a01b038216600090815260026020526040812061127a908363ffffffff6139f716565b61118283838360405180602001604052806000815250612bfb565b6040805180820190915260038152620312e360ec1b602082015290565b600b54600160a01b900460ff1681565b600080611b1360038463ffffffff613d9116565b509392505050565b600d54604080516351bfab2160e11b815290516000926001600160a01b03169163a37f5642916004808301926020929190829003018186803b158015611b6057600080fd5b505afa158015611b74573d6000803e3d6000fd5b505050506040513d6020811015611b8a57600080fd5b50516001600160a01b0316611b9d613974565b6001600160a01b031614611bb057600080fd5b611c248686868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516020601f8a018190048102820181019092528881529250889150879081908401838280828437600092019190915250613dad92505050565b5095945050505050565b6000546001600160a01b0390811691161490565b600061127d82604051806060016040528060298152602001614e0c602991396003919063ffffffff613f2916565b600a8054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561103f5780601f106110145761010080835404028352916020019161103f565b60006001600160a01b038216611d185760405162461bcd60e51b815260040180806020018281038252602a815260200180614de2602a913960400191505060405180910390fd5b6001600160a01b038216600090815260026020526040902061127d906139ec565b611d41613974565b600b546001600160a01b03908116911614611d91576040805162461bcd60e51b81526020600482018190526024820152600080516020614f1d833981519152604482015290519081900360640190fd5b600b546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600b80546001600160a01b0319169055565b600080611407600e846040518082805190602001908083835b60208310611e135780518252601f199092019160209182019101611df4565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922091506139ec9050565b600080611e52613c3e565b6001600160a01b03166359cace79856040518263ffffffff1660e01b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611ead578181015183820152602001611e95565b50505050905090810190601f168015611eda5780820380516001836020036101000a031916815260200191505b509250505060206040518083038186803b158015611ef757600080fd5b505afa158015611f0b573d6000803e3d6000fd5b505050506040513d6020811015611f2157600080fd5b5051905080611f72576040805162461bcd60e51b81526020600482015260186024820152777468697320696e6b20646f6573206e6f742065786973742160401b604482015290519081900360640190fd5b6000611f7d85611ddb565b9050600060606000611f8d613c3e565b6001600160a01b03166303925351866040518263ffffffff1660e01b81526004018082815260200191505060006040518083038186803b158015611fd057600080fd5b505afa158015611fe4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260e081101561200d57600080fd5b81516020830151604080850180519151939592948301929184600160201b82111561203757600080fd5b90830190602082018581111561204c57600080fd5b8251600160201b81118282018810171561206557600080fd5b82525081516020918201929091019080838360005b8381101561209257818101518382015260200161207a565b50505050905090810190601f1680156120bf5780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084600160201b8211156120e157600080fd5b9083019060208201858111156120f657600080fd5b8251600160201b81118282018810171561210f57600080fd5b82525081516020918201929091019080838360005b8381101561213c578181015183820152602001612124565b50505050905090810190601f1680156121695780820380516001836020036101000a031916815260200191505b50604081815260208301519083015160609093018051919593949293929184600160201b82111561219957600080fd5b9083019060208201858111156121ae57600080fd5b8251600160201b8111828201881017156121c757600080fd5b82525081516020918201929091019080838360005b838110156121f45781810151838201526020016121dc565b50505050905090810190601f1680156122215780820380516001836020036101000a031916815260200191505b50604052505050509550505093509350508084108061223e575080155b61228f576040805162461bcd60e51b815260206004820152601b60248201527f7468697320696e6b206973206f76657220746865206c696d6974210000000000604482015290519081900360640190fd5b6000601960f81b600060f81b308c8c8960405160200180876001600160f81b0319166001600160f81b0319168152600101866001600160f81b0319166001600160f81b0319168152600101856001600160a01b03166001600160a01b031660601b8152601401846001600160a01b03166001600160a01b031660601b815260140183805190602001908083835b6020831061233b5780518252601f19909201916020918201910161231c565b6001836020036101000a03801982511681845116808217855250505050505090500182815260200196505050505050506040516020818303038152906040528051906020012090506000612390828a876112da565b905080806123a85750600b54600160a01b900460ff16155b6123f5576040805162461bcd60e51b81526020600482015260196024820152786f6e6c7920746865206172746973742063616e206d696e742160381b604482015290519081900360640190fd5b60006124028c8c87613dad565b9c9b505050505050505050505050565b60008061241d613c3e565b6001600160a01b03166359cace79846040518263ffffffff1660e01b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612478578181015183820152602001612460565b50505050905090810190601f1680156124a55780820380516001836020036101000a031916815260200191505b509250505060206040518083038186803b1580156124c257600080fd5b505afa1580156124d6573d6000803e3d6000fd5b505050506040513d60208110156124ec57600080fd5b505190508061253d576040805162461bcd60e51b81526020600482015260186024820152777468697320696e6b20646f6573206e6f742065786973742160401b604482015290519081900360640190fd5b6000606060008061254c613c3e565b6001600160a01b03166303925351866040518263ffffffff1660e01b81526004018082815260200191505060006040518083038186803b15801561258f57600080fd5b505afa1580156125a3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260e08110156125cc57600080fd5b81516020830151604080850180519151939592948301929184600160201b8211156125f657600080fd5b90830190602082018581111561260b57600080fd5b8251600160201b81118282018810171561262457600080fd5b82525081516020918201929091019080838360005b83811015612651578181015183820152602001612639565b50505050905090810190601f16801561267e5780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084600160201b8211156126a057600080fd5b9083019060208201858111156126b557600080fd5b8251600160201b8111828201881017156126ce57600080fd5b82525081516020918201929091019080838360005b838110156126fb5781810151838201526020016126e3565b50505050905090810190601f1680156127285780820380516001836020036101000a031916815260200191505b50604081815260208301519083015160609093018051919593949293929184600160201b82111561275857600080fd5b90830190602082018581111561276d57600080fd5b8251600160201b81118282018810171561278657600080fd5b82525081516020918201929091019080838360005b838110156127b357818101518382015260200161279b565b50505050905090810190601f1680156127e05780820380516001836020036101000a031916815260200191505b506040525050505095509550509450945050806127fc88611ddb565b1080612806575080155b612857576040805162461bcd60e51b815260206004820152601b60248201527f7468697320696e6b206973206f76657220746865206c696d6974210000000000604482015290519081900360640190fd5b600082116128965760405162461bcd60e51b8152600401808060200182810382526022815260200180614fe76022913960400191505060405180910390fd5b813410156128eb576040805162461bcd60e51b815260206004820152601e60248201527f416d6f756e74206f662045746865722073656e7420746f6f20736d616c6c0000604482015290519081900360640190fd5b60006128f5613974565b90506000612904828a87613dad565b6040519091506001600160a01b038716903480156108fc02916000818181858888f1935050505015801561293c573d6000803e3d6000fd5b507f1bbd0fe97d65798589fa7d6d49c23fbdc8364b1e23dc9dc13e3b714019fce7c6818a84346040518085815260200180602001846001600160a01b03166001600160a01b03168152602001838152602001828103825285818151815260200191508051906020019080838360005b838110156129c35781810151838201526020016129ab565b50505050905090810190601f1680156129f05780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a198975050505050505050565b600b546001600160a01b031690565b60088054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561103f5780601f106110145761010080835404028352916020019161103f565b612a84613974565b600b546001600160a01b03908116911614612ad4576040805162461bcd60e51b81526020600482018190526024820152600080516020614f1d833981519152604482015290519081900360640190fd5b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b612afe613974565b6001600160a01b0316826001600160a01b03161415612b64576040805162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015290519081900360640190fd5b8060066000612b71613974565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155612bb5613974565b60408051841515815290516001600160a01b0392909216917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319181900360200190a35050565b612c0c612c06613974565b83613a03565b612c475760405162461bcd60e51b8152600401808060200182810382526031815260200180614fb66031913960400191505060405180910390fd5b612c5384848484613f36565b50505050565b6060612c6482613961565b612c9f5760405162461bcd60e51b815260040180806020018281038252602f815260200180614f66602f913960400191505060405180910390fd5b60008281526009602090815260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845260609392830182828015612d345780601f10612d0957610100808354040283529160200191612d34565b820191906000526020600020905b815481529060010190602001808311612d1757829003601f168201915b5050600a5493945050505060026000196101006001841615020190911604612d5d579050610fae565b805115612e2e57600a816040516020018083805460018160011615610100020316600290048015612dc55780601f10612da3576101008083540402835291820191612dc5565b820191906000526020600020905b815481529060010190602001808311612db1575b5050825160208401908083835b60208310612df15780518252601f199092019160209182019101612dd2565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050610fae565b600a612e3984613f88565b6040516020018083805460018160011615610100020316600290048015612e975780601f10612e75576101008083540402835291820191612e97565b820191906000526020600020905b815481529060010190602001808311612e83575b5050825160208401908083835b60208310612ec35780518252601f199092019160209182019101612ea4565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052915050919050565b6000546001600160a01b031690565b600080612f1a613c3e565b6001600160a01b03166359cace79846040518263ffffffff1660e01b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612f75578181015183820152602001612f5d565b50505050905090810190601f168015612fa25780820380516001836020036101000a031916815260200191505b509250505060206040518083038186803b158015612fbf57600080fd5b505afa158015612fd3573d6000803e3d6000fd5b505050506040513d6020811015612fe957600080fd5b505190508061303a576040805162461bcd60e51b81526020600482015260186024820152777468697320696e6b20646f6573206e6f742065786973742160401b604482015290519081900360640190fd5b600060606000613048613c3e565b6001600160a01b03166303925351856040518263ffffffff1660e01b81526004018082815260200191505060006040518083038186803b15801561308b57600080fd5b505afa15801561309f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405260e08110156130c857600080fd5b81516020830151604080850180519151939592948301929184600160201b8211156130f257600080fd5b90830190602082018581111561310757600080fd5b8251600160201b81118282018810171561312057600080fd5b82525081516020918201929091019080838360005b8381101561314d578181015183820152602001613135565b50505050905090810190601f16801561317a5780820380516001836020036101000a031916815260200191505b5060405260200180516040519392919084600160201b82111561319c57600080fd5b9083019060208201858111156131b157600080fd5b8251600160201b8111828201881017156131ca57600080fd5b82525081516020918201929091019080838360005b838110156131f75781810151838201526020016131df565b50505050905090810190601f1680156132245780820380516001836020036101000a031916815260200191505b50604081815260208301519083015160609093018051919593949293929184600160201b82111561325457600080fd5b90830190602082018581111561326957600080fd5b8251600160201b81118282018810171561328257600080fd5b82525081516020918201929091019080838360005b838110156132af578181015183820152602001613297565b50505050905090810190601f1680156132dc5780820380516001836020036101000a031916815260200191505b50604052505050509550505093509350506132f5613974565b6001600160a01b0316836001600160a01b031614613356576040805162461bcd60e51b81526020600482015260196024820152786f6e6c7920746865206172746973742063616e206d696e742160381b604482015290519081900360640190fd5b8061336087611ddb565b108061336a575080155b6133bb576040805162461bcd60e51b815260206004820152601b60248201527f7468697320696e6b206973206f76657220746865206c696d6974210000000000604482015290519081900360640190fd5b60006133c8888885613dad565b98975050505050505050565b60106020526000908152604090205481565b6133ee613974565b600b546001600160a01b0390811691161461343e576040805162461bcd60e51b81526020600482018190526024820152600080516020614f1d833981519152604482015290519081900360640190fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b600d546040805163c61041ff60e01b815290516000926001600160a01b03169163c61041ff916004808301926020929190829003018186803b1580156134a557600080fd5b505afa1580156134b9573d6000803e3d6000fd5b505050506040513d60208110156134cf57600080fd5b505190506134db613974565b6001600160a01b0316816001600160a01b031614613540576040805162461bcd60e51b815260206004820181905260248201527f6f6e6c7920746865206272696467654d65646961746f722063616e206c6f636b604482015290519081900360640190fd5b600061354b83611c42565b905061118281613559613974565b85613aa7565b600d546001600160a01b031681565b600f6020908152600091825260409182902080548351601f6002600019610100600186161502019093169290920491820184900484028101840190945280845290918301828280156136015780601f106135d657610100808354040283529160200191613601565b820191906000526020600020905b8154815290600101906020018083116135e457829003601f168201915b505050505081565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b600061364283613961565b613693576040805162461bcd60e51b815260206004820152601a60248201527f7468697320746f6b656e20646f6573206e6f7420657869737421000000000000604482015290519081900360640190fd5b61369b613974565b6001600160a01b03166136ad84611c42565b6001600160a01b0316146136f25760405162461bcd60e51b8152600401808060200182810382526021815260200180614d176021913960400191505060405180910390fd5b5060009182526010602052604090912081905590565b600d60009054906101000a90046001600160a01b03166001600160a01b031663c61041ff6040518163ffffffff1660e01b815260040160206040518083038186803b15801561375657600080fd5b505afa15801561376a573d6000803e3d6000fd5b505050506040513d602081101561378057600080fd5b50516001600160a01b0316613793613974565b6001600160a01b0316146137d85760405162461bcd60e51b81526004018080602001828103825260228152602001806150096022913960400191505060405180910390fd5b6137e182611c42565b6001600160a01b03166137f2613974565b6001600160a01b0316146138375760405162461bcd60e51b815260040180806020018281038252602b815260200180614ec6602b913960400191505060405180910390fd5b613849613842613974565b8284611ab7565b5050565b613855613974565b600b546001600160a01b039081169116146138a5576040805162461bcd60e51b81526020600482018190526024820152600080516020614f1d833981519152604482015290519081900360640190fd5b6001600160a01b0381166138ea5760405162461bcd60e51b8152600401808060200182810382526026815260200180614cf16026913960400191505060405180910390fd5b600b546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600061127a8261395585614063565b9063ffffffff6140b416565b600061127d60038363ffffffff61429b16565b60006112096142a7565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906139b382611c42565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061127d82614315565b600061127a8383614319565b6000613a0e82613961565b613a495760405162461bcd60e51b815260040180806020018281038252602c815260200180614d7e602c913960400191505060405180910390fd5b6000613a5483611c42565b9050806001600160a01b0316846001600160a01b03161480613a8f5750836001600160a01b0316613a848461104a565b6001600160a01b0316145b80613a9f5750613a9f8185613609565b949350505050565b826001600160a01b0316613aba82611c42565b6001600160a01b031614613aff5760405162461bcd60e51b8152600401808060200182810382526029815260200180614f3d6029913960400191505060405180910390fd5b6001600160a01b038216613b445760405162461bcd60e51b8152600401808060200182810382526024815260200180614d386024913960400191505060405180910390fd5b613b4f838383611182565b613b5a60008261397e565b6001600160a01b0383166000908152600260205260409020613b82908263ffffffff61437d16565b506001600160a01b0382166000908152600260205260409020613bab908263ffffffff61438916565b50613bbe6003828463ffffffff61439516565b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590613a9f575050151592915050565b600d54604080516351bfab2160e11b815290516000926001600160a01b03169163a37f5642916004808301926020929190829003018186803b158015613c8357600080fd5b505afa158015613c97573d6000803e3d6000fd5b505050506040513d6020811015613cad57600080fd5b5051905090565b600082613cc35750600061127d565b82820282848281613cd057fe5b041461127a5760405162461bcd60e51b8152600401808060200182810382526021815260200180614e796021913960400191505060405180910390fd5b600061127a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506143ab565b600061127a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061444d565b6000808080613da086866144a7565b9097909650945050505050565b6000613db9600c614522565b6000613dc5600c614315565b9050613e3181600e866040518082805190602001908083835b60208310613dfd5780518252601f199092019160209182019101613dde565b51815160209384036101000a6000190180199092169116179052920194855250604051938490030190922092915050614389565b506000818152600f602090815260409091208551613e5192870190614c04565b50613e5c858261452b565b613e668184614665565b7fcc18f3721677ee1b39a6a1aba1a4dd0fc1f099757b28b28a34de69b652321c208185876040518084815260200180602001836001600160a01b03166001600160a01b03168152602001828103825284818151815260200191508051906020019080838360005b83811015613ee5578181015183820152602001613ecd565b50505050905090810190601f168015613f125780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a1949350505050565b6000613a9f8484846146c8565b613f41848484613aa7565b613f4d84848484614755565b612c535760405162461bcd60e51b8152600401808060200182810382526032815260200180614cbf6032913960400191505060405180910390fd5b606081613fad57506040805180820190915260018152600360fc1b6020820152610fae565b8160005b8115613fc557600101600a82049150613fb1565b60608167ffffffffffffffff81118015613fde57600080fd5b506040519080825280601f01601f191660200182016040528015614009576020820181803683370190505b50859350905060001982015b831561405a57600a840660300160f81b8282806001900393508151811061403857fe5b60200101906001600160f81b031916908160001a905350600a84049350614015565b50949350505050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b6000815160411461410c576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561417d5760405162461bcd60e51b8152600401808060200182810382526022815260200180614d5c6022913960400191505060405180910390fd5b8060ff16601b1415801561419557508060ff16601c14155b156141d15760405162461bcd60e51b8152600401808060200182810382526022815260200180614e356022913960400191505060405180910390fd5b60408051600080825260208083018085528a905260ff85168385015260608301879052608083018690529251909260019260a080820193601f1981019281900390910190855afa158015614229573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116614291576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b600061127a8383614990565b6000601836108015906142be57506142be33611c2e565b15614310576143096000368080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050601319360191506149a89050565b9050611047565b503390565b5490565b8154600090821061435b5760405162461bcd60e51b8152600401808060200182810382526022815260200180614c9d6022913960400191505060405180910390fd5b82600001828154811061436a57fe5b9060005260206000200154905092915050565b600061127a83836149e0565b600061127a8383614aa6565b6000613a9f84846001600160a01b038516614af0565b600081836144375760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156143fc5781810151838201526020016143e4565b50505050905090810190601f1680156144295780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161444357fe5b0495945050505050565b6000818484111561449f5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156143fc5781810151838201526020016143e4565b505050900390565b8154600090819083106144eb5760405162461bcd60e51b8152600401808060200182810382526022815260200180614e576022913960400191505060405180910390fd5b60008460000184815481106144fc57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b80546001019055565b6001600160a01b038216614586576040805162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015290519081900360640190fd5b61458f81613961565b156145e1576040805162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015290519081900360640190fd5b6145ed60008383611182565b6001600160a01b0382166000908152600260205260409020614615908263ffffffff61438916565b506146286003828463ffffffff61439516565b5060405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b61466e82613961565b6146a95760405162461bcd60e51b815260040180806020018281038252602c815260200180614ef1602c913960400191505060405180910390fd5b6000828152600960209081526040909120825161118292840190614c04565b600082815260018401602052604081205482816147265760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156143fc5781810151838201526020016143e4565b5084600001600182038154811061473957fe5b9060005260206000209060020201600101549150509392505050565b6000614769846001600160a01b0316613c05565b61477557506001613a9f565b600060606001600160a01b038616630a85bd0160e11b614793613974565b89888860405160240180856001600160a01b03166001600160a01b03168152602001846001600160a01b03166001600160a01b0316815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561480c5781810151838201526020016147f4565b50505050905090810190601f1680156148395780820380516001836020036101000a031916815260200191505b5060408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909a16999099178952518151919890975087965094509250829150849050835b602083106148a15780518252601f199092019160209182019101614882565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114614903576040519150601f19603f3d011682016040523d82523d6000602084013e614908565b606091505b509150915081614959578051156149225780518082602001fd5b60405162461bcd60e51b8152600401808060200182810382526032815260200180614cbf6032913960400191505060405180910390fd5b600081806020019051602081101561497057600080fd5b50516001600160e01b031916630a85bd0160e11b149350613a9f92505050565b60009081526001919091016020526040902054151590565b600081601401835110156149ce576149ce6149c96004855185601401614b87565b614bfc565b5001601401516001600160a01b031690565b60008181526001830160205260408120548015614a9c5783546000198083019190810190600090879083908110614a1357fe5b9060005260206000200154905080876000018481548110614a3057fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080614a6057fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061127d565b600091505061127d565b6000614ab28383614990565b614ae85750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561127d565b50600061127d565b600082815260018401602052604081205480614b55575050604080518082018252838152602080820184815286546001818101895560008981528481209551600290930290950191825591519082015586548684528188019092529290912055611407565b82856000016001830381548110614b6857fe5b9060005260206000209060020201600101819055506000915050611407565b6060632800659560e01b84848460405160240180846007811115614ba757fe5b60ff1681526020018381526020018281526020019350505050604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505090509392505050565b805160208201fd5b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10614c4557805160ff1916838001178555614c72565b82800160010185558215614c72579182015b82811115614c72578251825591602001919060010190614c57565b50614c7e929150614c82565b5090565b61104791905b80821115614c7e5760008155600101614c8856fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e64734552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573736f6e6c7920746865206f776e65722063616e2073657420746865207072696365214552433732313a207472616e7366657220746f20746865207a65726f206164647265737345434453413a20696e76616c6964207369676e6174757265202773272076616c75654552433732313a206f70657261746f7220717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6c4552433732313a2062616c616e636520717565727920666f7220746865207a65726f20616464726573734552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656e45434453413a20696e76616c6964207369676e6174757265202776272076616c7565456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e6473536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774552433732313a20617070726f76656420717565727920666f72206e6f6e6578697374656e7420746f6b656e746865206272696467654d65646961746f7220646f6573206e6f7420686f6c64207468697320746f6b656e4552433732314d657461646174613a2055524920736574206f66206e6f6e6578697374656e7420746f6b656e4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65724552433732313a207472616e73666572206f6620746f6b656e2074686174206973206e6f74206f776e4552433732314d657461646174613a2055524920717565727920666f72206e6f6e6578697374656e7420746f6b656e4552433732313a20617070726f76616c20746f2063757272656e74206f776e65724552433732313a207472616e736665722063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f7665647468697320696e6b20646f6573206e6f7420686176652061207072696365207365746f6e6c7920746865206272696467654d65646961746f722063616e20756e6c6f636ba264697066735822122080d86cd5be2749d0badea24a9444020bb3b36390c52e8b068021b1758839358a64736f6c63430006060033

Deployed ByteCode Sourcemap

127729:6951:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;72386:142:0;;5:9:-1;2:2;;;27:1;24;17:12;2:2;72386:142:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;72386:142:0;-1:-1:-1;;;;;;72386:142:0;;:::i;:::-;;;;;;;;;;;;;;;;;;87342:92;;5:9:-1;2:2;;;27:1;24;17:12;2:2;87342:92: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;87342:92:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92126:213;;5:9:-1;2:2;;;27:1;24;17:12;2:2;92126:213:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;92126:213:0;;:::i;:::-;;;;-1:-1:-1;;;;;92126:213:0;;;;;;;;;;;;;;91443:390;;5:9:-1;2:2;;;27:1;24;17:12;2:2;91443:390:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;91443:390:0;;;;;;;;:::i;:::-;;56211:107;;5:9:-1;2:2;;;27:1;24;17:12;2:2;56211:107:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;56211:107:0;;;;:::i;90299:203::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;90299:203:0;;;:::i;:::-;;;;;;;;;;;;;;;;134007:144;;5:9:-1;2:2;;;27:1;24;17:12;2:2;134007:144:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;134007:144:0;;;;;;;;-1:-1:-1;;;11:28;;8:2;;;52:1;49;42:12;8:2;134007:144:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;134007:144: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;134007:144:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;134007:144:0;;-1:-1:-1;;134007:144:0;;;-1:-1:-1;134007:144:0;;-1:-1:-1;;134007:144:0:i;93874:305::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;93874:305:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;93874:305:0;;;;;;;;;;;;;;;;;:::i;56512:360::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;56512:360:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;56512:360:0;;;;;;;;;;;;;;-1:-1:-1;;;11:28;;8:2;;;52:1;49;42:12;8:2;56512:360:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;56512:360: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;56512:360:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;56512:360:0;;-1:-1:-1;;;56512:360:0;;-1:-1:-1;;;;;56512:360:0;;-1:-1:-1;56512:360:0;;-1:-1:-1;56512:360:0:i;133042:957::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;133042:957:0;;:::i;89986:154::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;89986:154:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;89986:154:0;;;;;;;;:::i;94841:151::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;94841:151:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;94841:151:0;;;;;;;;;;;;;;;;;:::i;134159:109::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;134159:109:0;;;:::i;56042:30::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;56042:30:0;;;:::i;90848:164::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;90848:164:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;90848:164:0;;:::i;129419:234::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;129419:234:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;129419:234:0;;;;;;;;;;;;;;;-1:-1:-1;;;11:28;;8:2;;;52:1;49;42:12;8:2;129419:234:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;129419:234: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;129419:234:0;;;;;;;;;;;-1:-1:-1;;;11:28;;8:2;;;52:1;49;42:12;8:2;129419:234:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;129419:234: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;129419:234:0;;-1:-1:-1;129419:234:0;-1:-1:-1;129419:234:0;:::i;42104:137::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;42104:137:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;42104:137:0;-1:-1:-1;;;;;42104:137:0;;:::i;87062:169::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;87062:169:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;87062:169:0;;:::i;89515:89::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;89515:89:0;;;:::i;86621:215::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;86621:215:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;86621:215:0;-1:-1:-1;;;;;86621:215:0;;:::i;4210:148::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;4210:148:0;;;:::i;128856:175::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;128856:175:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;128856:175:0;;;;;;;;-1:-1:-1;;;11:28;;8:2;;;52:1;49;42:12;8:2;128856:175:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;128856:175: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;128856:175:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;128856:175:0;;-1:-1:-1;128856:175:0;;-1:-1:-1;;;;;128856:175:0:i;130246:865::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;130246:865:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;130246:865:0;;;;;;;;;;;;;;;-1:-1:-1;;;11:28;;8:2;;;52:1;49;42:12;8:2;130246:865:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;130246:865: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;130246:865:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;130246:865:0;;;;;;;;-1:-1:-1;130246:865:0;;-1:-1:-1;;;;;11:28;;8:2;;;52:1;49;42:12;8:2;130246:865:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;130246:865: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;130246:865:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;130246:865:0;;-1:-1:-1;130246:865:0;;-1:-1:-1;;;;;130246:865:0:i;131815:904::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;131815:904:0;;;;;;;;-1:-1:-1;;;11:28;;8:2;;;52:1;49;42:12;8:2;131815:904:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;131815:904: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;131815:904:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;131815:904:0;;-1:-1:-1;131815:904:0;;-1:-1:-1;;;;;131815:904:0:i;3568:79::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;3568:79:0;;;:::i;87549:96::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;87549:96:0;;;:::i;128103:102::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;128103:102:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;128103:102:0;-1:-1:-1;;;;;128103:102:0;;:::i;92646:295::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;92646:295:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;92646:295:0;;;;;;;;;;:::i;95729:285::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;95729:285:0;;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;-1:-1;;;;;95729:285:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11:28;;8:2;;;52:1;49;42:12;8:2;95729:285:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;95729:285: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;95729:285:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;95729:285:0;;-1:-1:-1;95729:285:0;;-1:-1:-1;;;;;95729:285:0:i;88521:755::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;88521:755:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;88521:755:0;;:::i;134410:100::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;134410:100:0;;;:::i;129661:577::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;129661:577:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;129661:577:0;;;;;;;;;;;;;;;-1:-1:-1;;;11:28;;8:2;;;52:1;49;42:12;8:2;129661:577:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;129661:577: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;129661:577:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;129661:577:0;;-1:-1:-1;129661:577:0;;-1:-1:-1;;;;;129661:577:0:i;128801:46::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;128801:46:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;128801:46:0;;:::i;134276:126::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;134276:126:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;134276:126:0;-1:-1:-1;;;;;134276:126:0;;:::i;131119:325::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;131119:325:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;131119:325:0;;:::i;128066:28::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;128066:28:0;;;:::i;128749:43::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;128749:43:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;128749:43:0;;:::i;93271:156::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;93271:156:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;;;;;;93271:156:0;;;;;;;;;;:::i;132727:307::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;132727:307:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;132727:307:0;;;;;;;:::i;131452:355::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;131452:355:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;131452:355:0;;;;;;-1:-1:-1;;;;;131452:355:0;;:::i;4513:244::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;4513:244:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;4513:244:0;-1:-1:-1;;;;;4513:244:0;;:::i;56326:178::-;;5:9:-1;2:2;;;27:1;24;17:12;2:2;56326:178:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;56326:178:0;;;;;;;;;;;;;;-1:-1:-1;;;11:28;;8:2;;;52:1;49;42:12;8:2;56326:178:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;56326:178: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;56326:178:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;56326:178:0;;-1:-1:-1;56326:178:0;;-1:-1:-1;;;;;56326:178:0:i;72386:142::-;-1:-1:-1;;;;;;72487:33:0;;72463:4;72487:33;;;:20;:33;;;;;;;;72386:142;;;;:::o;87342:92::-;87421:5;87414:12;;;;;;;;-1:-1:-1;;87414:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87388:13;;87414:12;;87421:5;;87414:12;;87421:5;87414:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87342:92;;:::o;92126:213::-;92194:7;92222:16;92230:7;92222;:16::i;:::-;92214:73;;;;-1:-1:-1;;;92214:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;92307:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;92307:24:0;;92126:213::o;91443:390::-;91524:13;91540:16;91548:7;91540;:16::i;:::-;91524:32;;91581:5;-1:-1:-1;;;;;91575:11:0;:2;-1:-1:-1;;;;;91575:11:0;;;91567:57;;;;-1:-1:-1;;;91567:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91661:5;-1:-1:-1;;;;;91645:21:0;:12;:10;:12::i;:::-;-1:-1:-1;;;;;91645:21:0;;:62;;;;91670:37;91687:5;91694:12;:10;:12::i;:::-;91670:16;:37::i;:::-;91637:154;;;;-1:-1:-1;;;91637:154:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91804:21;91813:2;91817:7;91804:8;:21::i;:::-;91443:390;;;:::o;56211:107::-;3790:12;:10;:12::i;:::-;3780:6;;-1:-1:-1;;;;;3780:6:0;;;:22;;;3772:67;;;;;-1:-1:-1;;;3772:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3772:67:0;;;;;;;;;;;;;;;56282:18:::1;:28:::0;;;::::1;;-1:-1:-1::0;;;56282:28:0::1;-1:-1:-1::0;;;;56282:28:0;;::::1;::::0;;;::::1;::::0;;56211:107::o;90299:203::-;90352:7;90473:21;:12;:19;:21::i;:::-;90466:28;;90299:203;:::o;134007:144::-;134090:7;134115:28;134137:5;134115:10;134126:6;134115:18;;;;;;;;;;;;;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;;134115:18:0;;;;;-1:-1:-1;134115:18:0;;;;;;;;;;;;-1:-1:-1;;134115:21:0;:28::i;:::-;134108:35;;134007:144;;;;;:::o;93874:305::-;94035:41;94054:12;:10;:12::i;:::-;94068:7;94035:18;:41::i;:::-;94027:103;;;;-1:-1:-1;;;94027:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94143:28;94153:4;94159:2;94163:7;94143:9;:28::i;56512:360::-;56623:4;56641:25;:12;-1:-1:-1;;;;;56641:23:0;;:25::i;:::-;56638:227;;;56686:62;;;-1:-1:-1;;;56686:62:0;;;;;;;;;;;;;;;;;;;;;;;56752:21;;-1:-1:-1;;;;;56686:39:0;;;56130:10;;56726;;56738:9;;56686:62;;;;;;;;;;;;;;;;-1:-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;56686:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;56686:62:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;56686:62:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;56686:62:0;-1:-1:-1;;;;;;56686:87:0;;;-1:-1:-1;56679:94:0;;56638:227;56843:12;-1:-1:-1;;;;;56807:48:0;:32;56817:10;56829:9;56807;:32::i;:::-;-1:-1:-1;;;;;56807:48:0;;56800:55;;56638:227;56512:360;;;;;:::o;133042:957::-;133102:14;133119:20;;;:10;:20;;;;;;133156:10;133148:49;;;;;-1:-1:-1;;;133148:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;133227:6;133214:9;:19;;133206:62;;;;;-1:-1:-1;;;133206:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;133277:14;133294:12;:10;:12::i;:::-;133277:29;;133315:23;133357:17;133365:8;133357:7;:17::i;:::-;133315:61;;133385:36;133395:7;133404:6;133412:8;133385:9;:36::i;:::-;133553:19;133575:47;133618:3;133575:38;133603:9;133575:10;:8;:10::i;:::-;-1:-1:-1;;;;;133575:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;133575:23:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;133575:23:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;133575:23:0;;:38;:27;:38;:::i;:::-;:42;:47;:42;:47;:::i;:::-;133553:69;-1:-1:-1;133631:19:0;133653:26;:9;133553:69;133653:26;:13;:26;:::i;:::-;133712:18;;;;:8;:18;;;;;;;;;133688:42;;;;;;-1:-1:-1;;133688:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;133631:48;;-1:-1:-1;133688:21:0;;133712:18;;133688:42;;133712:18;133688:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;133744:23;133781:10;:8;:10::i;:::-;-1:-1:-1;;;;;133781:26:0;;133808:7;133781:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;133781:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;133781:35:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;133781:35:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;133781:35:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;15:3;7:12;;4:2;;;32:1;29;22:12;4:2;133781:35:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;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;133781:35:0;;420:4:-1;411:14;;;;133781:35:0;;;;;411:14:-1;133781: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;133781: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;133781:35:0;;420:4:-1;411:14;;;;133781:35:0;;;;;411:14:-1;133781: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;133781:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;133781:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;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;133781:35:0;;420:4:-1;411:14;;;;133781:35:0;;;;;411:14:-1;133781: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;133781:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;133741:75;;;;;;;;133827:7;-1:-1:-1;;;;;133827:16:0;:29;133844:11;133827:29;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;133865:29:0;;-1:-1:-1;;;;;133865:16:0;;;:29;;;;;133882:11;;133865:29;;;;133882:11;133865:16;:29;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;133865:29:0;133910:10;:20;133921:8;133910:20;;;;;;;;;;;133903:27;;;133944:47;133954:8;133964:7;133973:6;133981:9;133944:47;;;;;;;;;;;;-1:-1:-1;;;;;133944:47:0;-1:-1:-1;;;;;133944:47: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;133944:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;133042:957;;;;;;;;:::o;89986:154::-;-1:-1:-1;;;;;90102:20:0;;90075:7;90102:20;;;:13;:20;;;;;:30;;90126:5;90102:30;:23;:30;:::i;94841:151::-;94945:39;94962:4;94968:2;94972:7;94945:39;;;;;;;;;;;;:16;:39::i;134159:109::-;134249:12;;;;;;;;;;;;-1:-1:-1;;;134249:12:0;;;;134159:109;:::o;56042:30::-;;;-1:-1:-1;;;56042:30:0;;;;;:::o;90848:164::-;90915:7;;90957:22;:12;90973:5;90957:22;:15;:22;:::i;:::-;-1:-1:-1;90935:44:0;90848:164;-1:-1:-1;;;90848:164:0:o;129419:234::-;129574:13;;129559:42;;;-1:-1:-1;;;129559:42:0;;;;129517:7;;-1:-1:-1;;;;;129574:13:0;;129559:40;;:42;;;;;;;;;;;;;;129574:13;129559:42;;;2:2:-1;;;;27:1;24;17:12;2:2;129559:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;129559:42:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;129559:42:0;-1:-1:-1;;;;;129543:58:0;:12;:10;:12::i;:::-;-1:-1:-1;;;;;129543:58:0;;129535:67;;12:1:-1;9;2:12;129535:67:0;129611:34;129625:2;129629:6;;129611:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;;129611:34:0;;;;137:4:-1;129611:34:0;;;;;;;;;;;;;;;;;;-1:-1:-1;129637:7:0;;-1:-1:-1;129637:7:0;;;;129611:34;;129637:7;;;;129611:34;1:33:-1;99:1;81:16;;74:27;;;;-1:-1;129611:13:0;;-1:-1:-1;;;129611:34:0:i;:::-;;129419:234;;;;;;;:::o;42104:137::-;42180:4;42217:16;-1:-1:-1;;;;;42217:16:0;;;42204:29;;;;42104:137::o;87062:169::-;87126:7;87153:70;87170:7;87153:70;;;;;;;;;;;;;;;;;:12;;:70;;:16;:70;:::i;89515:89::-;89588:8;89581:15;;;;;;;;-1:-1:-1;;89581:15:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89555:13;;89581:15;;89588:8;;89581:15;;89588:8;89581:15;;;;;;;;;;;;;;;;;;;;;;;;86621:215;86685:7;-1:-1:-1;;;;;86713:19:0;;86705:74;;;;-1:-1:-1;;;86705:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;86799:20:0;;;;;;:13;:20;;;;;:29;;:27;:29::i;4210:148::-;3790:12;:10;:12::i;:::-;3780:6;;-1:-1:-1;;;;;3780:6:0;;;:22;;;3772:67;;;;;-1:-1:-1;;;3772:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3772:67:0;;;;;;;;;;;;;;;4301:6:::1;::::0;4280:40:::1;::::0;4317:1:::1;::::0;-1:-1:-1;;;;;4301:6:0::1;::::0;4280:40:::1;::::0;4317:1;;4280:40:::1;4331:6;:19:::0;;-1:-1:-1;;;;;;4331:19:0::1;::::0;;4210:148::o;128856:175::-;128922:7;128940:22;128965:28;:10;128976:7;128965:19;;;;;;;;;;;;;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;;128965:19:0;;;;;-1:-1:-1;128965:19:0;;;;;;;;;;;-1:-1:-1;128965:26:0;;-1:-1:-1;128965:28:0:i;130246:865::-;130348:7;130368:14;130385:10;:8;:10::i;:::-;-1:-1:-1;;;;;130385:24:0;;130410:7;130385:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;130385:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;130385:33:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;130385:33:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;130385:33:0;;-1:-1:-1;130437:10:0;130429:47;;;;;-1:-1:-1;;;130429:47:0;;;;;;;;;;;;-1:-1:-1;;;130429:47:0;;;;;;;;;;;;;;;130489:14;130506:22;130520:7;130506:13;:22::i;:::-;130489:39;;130542:15;130559:22;130587:14;130607:10;:8;:10::i;:::-;-1:-1:-1;;;;;130607:22:0;;130630:6;130607:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;130607:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;130607:30:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;130607:30:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;15:3;7:12;;4:2;;;32:1;29;22:12;4:2;130607:30:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;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;130607:30:0;;420:4:-1;411:14;;;;130607:30:0;;;;;411:14:-1;130607:30: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;130607:30: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;130607:30:0;;420:4:-1;411:14;;;;130607:30:0;;;;;411:14:-1;130607:30: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;130607:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;130607:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;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;130607:30:0;;420:4:-1;411:14;;;;130607:30:0;;;;;411:14:-1;130607:30: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;130607:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;130539:98;;;;;;;;;;130665:6;130656;:15;:30;;;-1:-1:-1;130675:11:0;;130656:30;130648:70;;;;;-1:-1:-1;;;130648:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;130731:19;130785:4;130780:10;;130797:1;130792:7;;130809:4;130816:2;130820:7;130829:6;130763:73;;;;;;-1:-1:-1;;;;;130763:73:0;;-1:-1:-1;;;;;130763:73:0;;;;;;;-1:-1:-1;;;;;130763:73:0;;-1:-1:-1;;;;;130763:73:0;;;;;;;-1:-1:-1;;;;;130763:73:0;-1:-1:-1;;;;;130763:73:0;;;;;;;;-1:-1:-1;;;;;130763:73:0;-1:-1:-1;;;;;130763:73: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;;;130763:73:0;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;130763:73:0;;;130753:84;;;;;;130731:106;;130848:22;130873:47;130888:11;130901:9;130912:7;130873:14;:47::i;:::-;130848:72;;130939:17;:40;;;-1:-1:-1;130961:18:0;;-1:-1:-1;;;130961:18:0;;;;130960:19;130939:40;130931:78;;;;;-1:-1:-1;;;130931:78:0;;;;;;;;;;;;-1:-1:-1;;;130931:78:0;;;;;;;;;;;;;;;131022:15;131040:36;131054:2;131058:7;131067:8;131040:13;:36::i;:::-;131022:54;130246:865;-1:-1:-1;;;;;;;;;;;;130246:865:0:o;131815:904::-;131878:7;131896:14;131913:10;:8;:10::i;:::-;-1:-1:-1;;;;;131913:24:0;;131938:7;131913:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;131913:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;131913:33:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;131913:33:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;131913:33:0;;-1:-1:-1;131963:10:0;131955:47;;;;;-1:-1:-1;;;131955:47:0;;;;;;;;;;;;-1:-1:-1;;;131955:47:0;;;;;;;;;;;;;;;132014:23;132039:22;132065:14;132081;132101:10;:8;:10::i;:::-;-1:-1:-1;;;;;132101:22:0;;132124:6;132101:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;132101:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;132101:30:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;132101:30:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;15:3;7:12;;4:2;;;32:1;29;22:12;4:2;132101:30:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;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;132101:30:0;;420:4:-1;411:14;;;;132101:30:0;;;;;411:14:-1;132101:30: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;132101:30: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;132101:30:0;;420:4:-1;411:14;;;;132101:30:0;;;;;411:14:-1;132101:30: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;132101:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;132101:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;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;132101:30:0;;420:4:-1;411:14;;;;132101:30:0;;;;;411:14:-1;132101:30: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;132101:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;132011:120;;;;;;;;;;;132173:6;132148:22;132162:7;132148:13;:22::i;:::-;:31;:46;;;-1:-1:-1;132183:11:0;;132148:46;132140:86;;;;;-1:-1:-1;;;132140:86:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;132252:1;132243:6;:10;132235:57;;;;-1:-1:-1;;;132235:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;132322:6;132309:9;:19;;132301:62;;;;;-1:-1:-1;;;132301:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;132372:14;132389:12;:10;:12::i;:::-;132372:29;;132410:16;132429:40;132443:6;132451:7;132460:8;132429:13;:40::i;:::-;132599:27;;132410:59;;-1:-1:-1;;;;;;132599:16:0;;;132616:9;132599:27;;;;;;;;;132616:9;132599:16;:27;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;132599:27:0;132640:47;132650:8;132660:7;132669:6;132677:9;132640:47;;;;;;;;;;;;-1:-1:-1;;;;;132640:47:0;-1:-1:-1;;;;;132640:47: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;132640:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;132703:8;131815:904;-1:-1:-1;;;;;;;;131815:904:0:o;3568:79::-;3633:6;;-1:-1:-1;;;;;3633:6:0;3568:79;:::o;87549:96::-;87630:7;87623:14;;;;;;;;-1:-1:-1;;87623:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;87597:13;;87623:14;;87630:7;;87623:14;;87630:7;87623:14;;;;;;;;;;;;;;;;;;;;;;;;128103:102;3790:12;:10;:12::i;:::-;3780:6;;-1:-1:-1;;;;;3780:6:0;;;:22;;;3772:67;;;;;-1:-1:-1;;;3772:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3772:67:0;;;;;;;;;;;;;;;128173:13:::1;:24:::0;;-1:-1:-1;;;;;;128173:24:0::1;-1:-1:-1::0;;;;;128173:24:0;;;::::1;::::0;;;::::1;::::0;;128103:102::o;92646:295::-;92761:12;:10;:12::i;:::-;-1:-1:-1;;;;;92749:24:0;:8;-1:-1:-1;;;;;92749:24:0;;;92741:62;;;;;-1:-1:-1;;;92741:62:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;92861:8;92816:18;:32;92835:12;:10;:12::i;:::-;-1:-1:-1;;;;;92816:32:0;;;;;;;;;;;;;;;;;-1:-1:-1;92816:32:0;;;:42;;;;;;;;;;;;:53;;-1:-1:-1;;92816:53:0;;;;;;;;;;;92900:12;:10;:12::i;:::-;92885:48;;;;;;;;;;-1:-1:-1;;;;;92885:48:0;;;;;;;;;;;;;;92646:295;;:::o;95729:285::-;95861:41;95880:12;:10;:12::i;:::-;95894:7;95861:18;:41::i;:::-;95853:103;;;;-1:-1:-1;;;95853:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;95967:39;95981:4;95987:2;95991:7;96000:5;95967:13;:39::i;:::-;95729:285;;;;:::o;88521:755::-;88586:13;88620:16;88628:7;88620;:16::i;:::-;88612:76;;;;-1:-1:-1;;;88612:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;88727:19;;;;:10;:19;;;;;;;;;88701:45;;;;;;-1:-1:-1;;88701:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:23;;:45;;;88727:19;88701:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;88828:8:0;88822:22;88701:45;;-1:-1:-1;;;;88822:22:0;-1:-1:-1;;88822:22:0;;;;;;;;;;;88818:76;;88873:9;-1:-1:-1;88866:16:0;;88818:76;88998:23;;:27;88994:112;;89073:8;89083:9;89056:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;89056:37: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;;;89056:37:0;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;89056:37:0;;;89042:52;;;;;88994:112;89238:8;89248:18;:7;:16;:18::i;:::-;89221:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;89221:46: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;;;89221:46:0;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;89221:46:0;;;89207:61;;;88521:755;;;:::o;134410:100::-;134461:7;134486:16;-1:-1:-1;;;;;134486:16:0;134410:100;:::o;129661:577::-;129726:7;129746:14;129763:10;:8;:10::i;:::-;-1:-1:-1;;;;;129763:24:0;;129788:7;129763:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;129763:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;129763:33:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;129763:33:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;129763:33:0;;-1:-1:-1;129815:10:0;129807:47;;;;;-1:-1:-1;;;129807:47:0;;;;;;;;;;;;-1:-1:-1;;;129807:47:0;;;;;;;;;;;;;;;129868:15;129885:22;129913:14;129933:10;:8;:10::i;:::-;-1:-1:-1;;;;;129933:22:0;;129956:6;129933:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;129933:30:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;129933:30:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;129933:30:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;15:3;7:12;;4:2;;;32:1;29;22:12;4:2;129933:30:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;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;129933:30:0;;420:4:-1;411:14;;;;129933:30:0;;;;;411:14:-1;129933:30: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;129933:30: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;129933:30:0;;420:4:-1;411:14;;;;129933:30:0;;;;;411:14:-1;129933:30: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;129933:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;129933:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;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;129933:30:0;;420:4:-1;411:14;;;;129933:30:0;;;;;411:14:-1;129933:30: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;129933:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;129865:98;;;;;;;;;;129995:12;:10;:12::i;:::-;-1:-1:-1;;;;;129984:23:0;:7;-1:-1:-1;;;;;129984:23:0;;129976:61;;;;;-1:-1:-1;;;129976:61:0;;;;;;;;;;;;-1:-1:-1;;;129976:61:0;;;;;;;;;;;;;;;130083:6;130058:22;130072:7;130058:13;:22::i;:::-;:31;:46;;;-1:-1:-1;130093:11:0;;130058:46;130050:86;;;;;-1:-1:-1;;;130050:86:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;130149:15;130167:36;130181:2;130185:7;130194:8;130167:13;:36::i;:::-;130149:54;129661:577;-1:-1:-1;;;;;;;;129661:577:0:o;128801:46::-;;;;;;;;;;;;;:::o;134276:126::-;3790:12;:10;:12::i;:::-;3780:6;;-1:-1:-1;;;;;3780:6:0;;;:22;;;3772:67;;;;;-1:-1:-1;;;3772:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3772:67:0;;;;;;;;;;;;;;;134358:16:::1;:36:::0;;-1:-1:-1;;;;;;134358:36:0::1;-1:-1:-1::0;;;;;134358:36:0;;;::::1;::::0;;;::::1;::::0;;134276:126::o;131119:325::-;131217:13;;131202:53;;;-1:-1:-1;;;131202:53:0;;;;131169:30;;-1:-1:-1;;;;;131217:13:0;;131202:51;;:53;;;;;;;;;;;;;;131217:13;131202:53;;;2:2:-1;;;;27:1;24;17:12;2:2;131202:53:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;131202:53:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;131202:53:0;;-1:-1:-1;131298:12:0;:10;:12::i;:::-;-1:-1:-1;;;;;131272:38:0;:22;-1:-1:-1;;;;;131272:38:0;;131264:83;;;;;-1:-1:-1;;;131264:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;131356:12;131371:17;131379:8;131371:7;:17::i;:::-;131356:32;;131397:39;131407:4;131413:12;:10;:12::i;:::-;131427:8;131397:9;:39::i;128066:28::-;;;-1:-1:-1;;;;;128066:28:0;;:::o;128749:43::-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;128749:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;93271:156::-;-1:-1:-1;;;;;93384:25:0;;;93360:4;93384:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;93271:156::o;132727:307::-;132800:7;132826:17;132834:8;132826:7;:17::i;:::-;132818:56;;;;;-1:-1:-1;;;132818:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;132912:12;:10;:12::i;:::-;-1:-1:-1;;;;;132891:33:0;:17;132899:8;132891:7;:17::i;:::-;-1:-1:-1;;;;;132891:33:0;;132883:79;;;;-1:-1:-1;;;132883:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;132973:20:0;;;;:10;:20;;;;;;:29;;;;132727:307::o;131452:355::-;131563:13;;;;;;;;;-1:-1:-1;;;;;131563:13:0;-1:-1:-1;;;;;131548:51:0;;:53;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;131548:53:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;131548:53:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;131548:53:0;-1:-1:-1;;;;;131532:69:0;:12;:10;:12::i;:::-;-1:-1:-1;;;;;131532:69:0;;131524:116;;;;-1:-1:-1;;;131524:116:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;131673:17;131681:8;131673:7;:17::i;:::-;-1:-1:-1;;;;;131657:33:0;:12;:10;:12::i;:::-;-1:-1:-1;;;;;131657:33:0;;131649:89;;;;-1:-1:-1;;;131649:89:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;131747:52;131764:12;:10;:12::i;:::-;131778:10;131790:8;131747:16;:52::i;:::-;131452:355;;:::o;4513:244::-;3790:12;:10;:12::i;:::-;3780:6;;-1:-1:-1;;;;;3780:6:0;;;:22;;;3772:67;;;;;-1:-1:-1;;;3772:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;3772:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;4602:22:0;::::1;4594:73;;;;-1:-1:-1::0;;;4594:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4704:6;::::0;4683:38:::1;::::0;-1:-1:-1;;;;;4683:38:0;;::::1;::::0;4704:6:::1;::::0;4683:38:::1;::::0;4704:6:::1;::::0;4683:38:::1;4732:6;:17:::0;;-1:-1:-1;;;;;;4732:17:0::1;-1:-1:-1::0;;;;;4732:17:0;;;::::1;::::0;;;::::1;::::0;;4513:244::o;56326:178::-;56410:7;56442:54;56486:9;56442:35;:10;:33;:35::i;:::-;:43;:54;:43;:54;:::i;97207:119::-;97264:4;97288:30;:12;97310:7;97288:30;:21;:30;:::i;134518:157::-;134601:15;134636:31;:29;:31::i;104409:158::-;104475:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;104475:29:0;-1:-1:-1;;;;;104475:29:0;;;;;;;;:24;;104529:16;104475:24;104529:7;:16::i;:::-;-1:-1:-1;;;;;104520:39:0;;;;;;;;;;;104409:158;;:::o;80435:123::-;80504:7;80531:19;80539:3;80531:7;:19::i;50992:137::-;51063:7;51098:22;51102:3;51114:5;51098:3;:22::i;97696:333::-;97781:4;97806:16;97814:7;97806;:16::i;:::-;97798:73;;;;-1:-1:-1;;;97798:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;97882:13;97898:16;97906:7;97898;:16::i;:::-;97882:32;;97944:5;-1:-1:-1;;;;;97933:16:0;:7;-1:-1:-1;;;;;97933:16:0;;:51;;;;97977:7;-1:-1:-1;;;;;97953:31:0;:20;97965:7;97953:11;:20::i;:::-;-1:-1:-1;;;;;97953:31:0;;97933:51;:87;;;;97988:32;98005:5;98012:7;97988:16;:32::i;:::-;97925:96;97696:333;-1:-1:-1;;;;97696:333:0:o;101295:574::-;101413:4;-1:-1:-1;;;;;101393:24:0;:16;101401:7;101393;:16::i;:::-;-1:-1:-1;;;;;101393:24:0;;101385:78;;;;-1:-1:-1;;;101385:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;101482:16:0;;101474:65;;;;-1:-1:-1;;;101474:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;101552:39;101573:4;101579:2;101583:7;101552:20;:39::i;:::-;101656:29;101673:1;101677:7;101656:8;:29::i;:::-;-1:-1:-1;;;;;101698:19:0;;;;;;:13;:19;;;;;:35;;101725:7;101698:35;:26;:35;:::i;:::-;-1:-1:-1;;;;;;101744:17:0;;;;;;:13;:17;;;;;:30;;101766:7;101744:30;:21;:30;:::i;:::-;-1:-1:-1;101787:29:0;:12;101804:7;101813:2;101787:29;:16;:29;:::i;:::-;;101853:7;101849:2;-1:-1:-1;;;;;101834:27:0;101843:4;-1:-1:-1;;;;;101834:27:0;;;;;;;;;;;101295:574;;;:::o;5569:619::-;5629:4;6097:20;;5940:66;6137:23;;;;;;:42;;-1:-1:-1;;6164:15:0;;;6129:51;-1:-1:-1;;5569:619:0:o;128213:130::-;128307:13;;128292:42;;;-1:-1:-1;;;128292:42:0;;;;128255:9;;-1:-1:-1;;;;;128307:13:0;;128292:40;;:42;;;;;;;;;;;;;;128307:13;128292:42;;;2:2:-1;;;;27:1;24;17:12;2:2;128292:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;128292:42:0;;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;128292:42:0;;-1:-1:-1;128213:130:0;:::o;12846:471::-;12904:7;13149:6;13145:47;;-1:-1:-1;13179:1:0;13172:8;;13145:47;13216:5;;;13220:1;13216;:5;:1;13240:5;;;;;:10;13232:56;;;;-1:-1:-1;;;13232:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13785:132;13843:7;13870:39;13874:1;13877;13870:39;;;;;;;;;;;;;;;;;:3;:39::i;11972:136::-;12030:7;12057:43;12061:1;12064;12057:43;;;;;;;;;;;;;;;;;:3;:43::i;80897:227::-;80977:7;;;;81037:22;81041:3;81053:5;81037:3;:22::i;:::-;81006:53;;;;-1:-1:-1;80897:227:0;-1:-1:-1;;;;;80897:227:0:o;129039:372::-;129137:7;129157:21;:9;:19;:21::i;:::-;129187:10;129200:19;:9;:17;:19::i;:::-;129187:32;;129228:26;129251:2;129228:10;129239:6;129228:18;;;;;;;;;;;;;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;;129228:18:0;;;;;-1:-1:-1;129228:18:0;;;;;;;;;;;;-1:-1:-1;;129228:22:0;:26::i;:::-;-1:-1:-1;129263:12:0;;;;:8;:12;;;;;;;;:21;;;;;;;;:::i;:::-;;129295:13;129301:2;129305;129295:5;:13::i;:::-;129317:25;129330:2;129334:7;129317:12;:25::i;:::-;129358;129368:2;129372:6;129380:2;129358:25;;;;;;;;;;;;-1:-1:-1;;;;;129358:25:0;-1:-1:-1;;;;;129358:25: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;129358:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;129401:2;129039:372;-1:-1:-1;;;;129039:372:0:o;81559:204::-;81666:7;81709:44;81714:3;81734;81740:12;81709:4;:44::i;96733:272::-;96847:28;96857:4;96863:2;96867:7;96847:9;:28::i;:::-;96894:48;96917:4;96923:2;96927:7;96936:5;96894:22;:48::i;:::-;96886:111;;;;-1:-1:-1;;;96886:111:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82045:744;82101:13;82322:10;82318:53;;-1:-1:-1;82349:10:0;;;;;;;;;;;;-1:-1:-1;;;82349:10:0;;;;;;82318:53;82396:5;82381:12;82437:78;82444:9;;82437:78;;82470:8;;82501:2;82493:10;;;;82437:78;;;82525:19;82557:6;82547:17;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;82547:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;21:6:-1;;108:14;82547:17:0;87:42:-1;143:17;;-1:-1;82547:17:0;-1:-1:-1;82619:5:0;;-1:-1:-1;82525:39:0;-1:-1:-1;;;82591:10:0;;82635:115;82642:9;;82635:115;;82709:2;82702:4;:9;82697:2;:14;82686:27;;82668:6;82675:7;;;;;;;82668:15;;;;;;;;;;;:45;-1:-1:-1;;;;;82668:45:0;;;;;;;;-1:-1:-1;82736:2:0;82728:10;;;;82635:115;;;-1:-1:-1;82774:6:0;82045:744;-1:-1:-1;;;;82045:744:0:o;54676:269::-;54878:58;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;54878:58:0;;;;;;;54868:69;;;;;;54676:269::o;52292:2110::-;52370:7;52433:9;:16;52453:2;52433:22;52429:96;;52472:41;;;-1:-1:-1;;;52472:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;52429:96;52886:4;52871:20;;52865:27;52932:4;52917:20;;52911:27;52986:4;52971:20;;52965:27;52594:9;52957:36;53916:66;53903:79;;53899:156;;;53999:44;;-1:-1:-1;;;53999:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53899:156;54071:1;:7;;54076:2;54071:7;;:18;;;;;54082:1;:7;;54087:2;54082:7;;54071:18;54067:95;;;54106:44;;-1:-1:-1;;;54106:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54067:95;54276:24;;;54259:14;54276:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54259:14;;54276:24;;;;;;;-1:-1:-1;;54276:24:0;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;54276:24:0;;-1:-1:-1;;54276:24:0;;;-1:-1:-1;;;;;;;54319:20:0;;54311:57;;;;;-1:-1:-1;;;54311:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;54388:6;52292:2110;-1:-1:-1;;;;;;52292:2110:0:o;80196:151::-;80280:4;80304:35;80314:3;80334;80304:9;:35::i;42501:528::-;42563:15;42614:2;42595:8;:21;;;;:55;;;42620:30;42639:10;42620:18;:30::i;:::-;42591:403;;;42925:55;42949:8;;42925:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;;;;42959:8:0;:20;;-1:-1:-1;42925:23:0;;-1:-1:-1;42925:55:0:i;:::-;42902:80;;;;42591:403;-1:-1:-1;43011:10:0;42501:528;:::o;77818:110::-;77901:19;;77818:110::o;47656:204::-;47751:18;;47723:7;;47751:26;-1:-1:-1;47743:73:0;;;;-1:-1:-1;;;47743:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47834:3;:11;;47846:5;47834:18;;;;;;;;;;;;;;;;47827:25;;47656:204;;;;:::o;50079:137::-;50149:4;50173:35;50181:3;50201:5;50173:7;:35::i;49772:131::-;49839:4;49863:32;49868:3;49888:5;49863:4;:32::i;79628:176::-;79717:4;79741:55;79746:3;79766;-1:-1:-1;;;;;79780:14:0;;79741:4;:55::i;14405:345::-;14491:7;14593:12;14586:5;14578:28;;;;-1:-1:-1;;;14578:28: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;14578:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14617:9;14633:1;14629;:5;;;;;;;14405:345;-1:-1:-1;;;;;14405:345:0:o;12403:192::-;12489:7;12525:12;12517:6;;;;12509:29;;;;-1:-1:-1;;;12509:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;12509:29:0;-1:-1:-1;;;12561:5:0;;;12403:192::o;78283:279::-;78387:19;;78350:7;;;;78387:27;-1:-1:-1;78379:74:0;;;;-1:-1:-1;;;78379:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78466:22;78491:3;:12;;78504:5;78491:19;;;;;;;;;;;;;;;;;;78466:44;;78529:5;:10;;;78541:5;:12;;;78521:33;;;;;78283:279;;;;;:::o;17265:181::-;17419:19;;17437:1;17419:19;;;17265:181::o;99797:404::-;-1:-1:-1;;;;;99877:16:0;;99869:61;;;;;-1:-1:-1;;;99869:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;99950:16;99958:7;99950;:16::i;:::-;99949:17;99941:58;;;;;-1:-1:-1;;;99941:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;100012:45;100041:1;100045:2;100049:7;100012:20;:45::i;:::-;-1:-1:-1;;;;;100070:17:0;;;;;;:13;:17;;;;;:30;;100092:7;100070:30;:21;:30;:::i;:::-;-1:-1:-1;100113:29:0;:12;100130:7;100139:2;100113:29;:16;:29;:::i;:::-;-1:-1:-1;100160:33:0;;100185:7;;-1:-1:-1;;;;;100160:33:0;;;100177:1;;100160:33;;100177:1;;100160:33;99797:404;;:::o;102213:215::-;102313:16;102321:7;102313;:16::i;:::-;102305:73;;;;-1:-1:-1;;;102305:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;102389:19;;;;:10;:19;;;;;;;;:31;;;;;;;;:::i;78985:319::-;79079:7;79118:17;;;:12;;;:17;;;;;;79169:12;79154:13;79146:36;;;;-1:-1:-1;;;79146:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;79146:36:0;;79236:3;:12;;79260:1;79249:8;:12;79236:26;;;;;;;;;;;;;;;;;;:33;;;79229:40;;;78985:319;;;;;:::o;103323:1078::-;103444:4;103471:15;:2;-1:-1:-1;;;;;103471:13:0;;:15::i;:::-;103466:60;;-1:-1:-1;103510:4:0;103503:11;;103466:60;103597:12;103611:23;-1:-1:-1;;;;;103638:7:0;;-1:-1:-1;;;103743:12:0;:10;:12::i;:::-;103770:4;103789:7;103811:5;103646:181;;;;;;-1:-1:-1;;;;;103646:181:0;-1:-1:-1;;;;;103646:181:0;;;;;;-1:-1:-1;;;;;103646:181:0;-1:-1:-1;;;;;103646:181: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;103646:181:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;103646:181:0;;;-1:-1:-1;;26:21;;;22:32;6:49;;103646:181:0;;;49:4:-1;25:18;;61:17;;-1:-1;;;;;182:15;-1:-1;;;;;;103646:181:0;;;179:29:-1;;;;160:49;;103638:190:0;;;103646:181;;103638:190;;-1:-1:-1;103638:190:0;;-1:-1:-1;25:18;-1:-1;103638:190:0;-1:-1:-1;103638:190:0;;-1:-1:-1;103638:190:0;;-1:-1:-1;25:18;36:153;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;;;103638:190:0;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;19;14:27;;;;67:4;61:11;56:16;;134:4;130:9;123:4;105:16;101:27;97:43;94:1;90:51;84:4;77:65;157:16;154:1;147:27;211:16;208:1;201:4;198:1;194:12;179:49;5:228;;14:27;32:4;27:9;;5:228;;103596:232:0;;;;103844:7;103839:555;;103872:17;;:21;103868:384;;104040:10;104034:17;104101:15;104088:10;104084:2;104080:19;104073:44;103988:148;104176:60;;-1:-1:-1;;;104176:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;103839:555;104284:13;104311:10;104300:32;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;104300:32:0;-1:-1:-1;;;;;;104355:26:0;-1:-1:-1;;;104355:26:0;;-1:-1:-1;104347:35:0;;-1:-1:-1;;;104347:35:0;77598:125;77669:4;77693:17;;;:12;;;;;:17;;;;;;:22;;;77598:125::o;32430:1109::-;32557:14;32604:5;32612:2;32604:10;32593:1;:8;:21;32589:336;;;32631:282;32656:256;32722:92;32833:1;:8;32860:5;32868:2;32860:10;32656:47;:256::i;:::-;32631:24;:282::i;:::-;-1:-1:-1;33438:13:0;33176:2;33438:13;33432:20;-1:-1:-1;;;;;33428:69:0;;32430:1109::o;45358:1544::-;45424:4;45563:19;;;:12;;;:19;;;;;;45599:15;;45595:1300;;46034:18;;-1:-1:-1;;45985:14:0;;;;46034:22;;;;45961:21;;46034:3;;:22;;46321;;;;;;;;;;;;;;46301:42;;46467:9;46438:3;:11;;46450:13;46438:26;;;;;;;;;;;;;;;;;;;:38;;;;46544:23;;;46586:1;46544:12;;;:23;;;;;;46570:17;;;46544:43;;46696:17;;46544:3;;46696:17;;;;;;;;;;;;;;;;;;;;;;46791:3;:12;;:19;46804:5;46791:19;;;;;;;;;;;46784:26;;;46834:4;46827:11;;;;;;;;45595:1300;46878:5;46871:12;;;;;44768:414;44831:4;44853:21;44863:3;44868:5;44853:9;:21::i;:::-;44848:327;;-1:-1:-1;27:10;;39:1;23:18;;;45:23;;44891:11:0;:23;;;;;;;;;;;;;45074:18;;45052:19;;;:12;;;:19;;;;;;:40;;;;45107:11;;44848:327;-1:-1:-1;45158:5:0;45151:12;;75098:692;75174:4;75309:17;;;:12;;;:17;;;;;;75343:13;75339:444;;-1:-1:-1;;75428:38:0;;;;;;;;;;;;;;;;;;27:10:-1;;39:1;23:18;;;45:23;;75410:12:0;:57;;;;;;;;;;;;;;;;;;;;;;;;75625:19;;75605:17;;;:12;;;:17;;;;;;;:39;75659:11;;75339:444;75739:5;75703:3;:12;;75727:1;75716:8;:12;75703:26;;;;;;;;;;;;;;;;;;:33;;:41;;;;75766:5;75759:12;;;;;19024:393;19219:12;18961:10;19293:37;;19345:9;19369:6;19390:8;19256:153;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;19256:153:0;;;;-1:-1:-1;;;;;19256:153:0;;38:4:-1;29:7;25:18;67:10;61:17;-1:-1;;;;;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;19256:153:0;19249:160;;19024:393;;;;;:::o;21076:177::-;21224:9;21218:16;21211:4;21200:9;21196:20;21189:46;127729:6951;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;127729:6951:0;;;-1:-1:-1;127729:6951:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://80d86cd5be2749d0badea24a9444020bb3b36390c52e8b068021b1758839358a
Loading