Overview
S Balance
S Value
$0.00More Info
Private Name Tags
ContractCreator
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
VeSixUpgradeable
Compiler Version
v0.8.27+commit.40a35a09
Contract Source Code (Solidity)
/** *Submitted for verification at SonicScan.org on 2025-03-03 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.20; /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * 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[ERC 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); } pragma solidity ^0.8.20; /** * @dev Required interface of an ERC-721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon * a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC-721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev 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 address zero. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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); } pragma solidity ^0.8.20; /** * @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); } pragma solidity ^0.8.20; /** * @title ERC-721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC-721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be * reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } pragma solidity ^0.8.20; /** * @dev Standard ERC-20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC-721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC-1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); } pragma solidity ^0.8.20; /** * @dev Library that provide common ERC-721 utility functions. * * See https://eips.ethereum.org/EIPS/eip-721[ERC-721]. * * _Available since v5.1._ */ library ERC721Utils { /** * @dev Performs an acceptance check for the provided `operator` by calling {IERC721-onERC721Received} * on the `to` address. The `operator` is generally the address that initiated the token transfer (i.e. `msg.sender`). * * The acceptance call is not executed and treated as a no-op if the target address doesn't contain code (i.e. an EOA). * Otherwise, the recipient must implement {IERC721Receiver-onERC721Received} and return the acceptance magic value to accept * the transfer. */ function checkOnERC721Received( address operator, address from, address to, uint256 tokenId, bytes memory data ) internal { if (to.code.length > 0) { try IERC721Receiver(to).onERC721Received(operator, from, tokenId, data) returns (bytes4 retval) { if (retval != IERC721Receiver.onERC721Received.selector) { // Token rejected revert IERC721Errors.ERC721InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { // non-IERC721Receiver implementer revert IERC721Errors.ERC721InvalidReceiver(to); } else { assembly ("memory-safe") { revert(add(32, reason), mload(reason)) } } } } } } pragma solidity ^0.8.20; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ```solidity * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Storage of the initializable contract. * * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions * when using with upgradeable contracts. * * @custom:storage-location erc7201:openzeppelin.storage.Initializable */ struct InitializableStorage { /** * @dev Indicates that the contract has been initialized. */ uint64 _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool _initializing; } // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Initializable")) - 1)) & ~bytes32(uint256(0xff)) bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00; /** * @dev The contract is already initialized. */ error InvalidInitialization(); /** * @dev The contract is not initializing. */ error NotInitializing(); /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint64 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in * production. * * Emits an {Initialized} event. */ modifier initializer() { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); // Cache values to avoid duplicated sloads bool isTopLevelCall = !$._initializing; uint64 initialized = $._initialized; // Allowed calls: // - initialSetup: the contract is not in the initializing state and no previous version was // initialized // - construction: the contract is initialized at version 1 (no reininitialization) and the // current contract is just being deployed bool initialSetup = initialized == 0 && isTopLevelCall; bool construction = initialized == 1 && address(this).code.length == 0; if (!initialSetup && !construction) { revert InvalidInitialization(); } $._initialized = 1; if (isTopLevelCall) { $._initializing = true; } _; if (isTopLevelCall) { $._initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint64 version) { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); if ($._initializing || $._initialized >= version) { revert InvalidInitialization(); } $._initialized = version; $._initializing = true; _; $._initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { _checkInitializing(); _; } /** * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}. */ function _checkInitializing() internal view virtual { if (!_isInitializing()) { revert NotInitializing(); } } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { // solhint-disable-next-line var-name-mixedcase InitializableStorage storage $ = _getInitializableStorage(); if ($._initializing) { revert InvalidInitialization(); } if ($._initialized != type(uint64).max) { $._initialized = type(uint64).max; emit Initialized(type(uint64).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint64) { return _getInitializableStorage()._initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _getInitializableStorage()._initializing; } /** * @dev Returns a pointer to the storage namespace. */ // solhint-disable-next-line var-name-mixedcase function _getInitializableStorage() private pure returns (InitializableStorage storage $) { assembly { $.slot := INITIALIZABLE_STORAGE } } } pragma solidity ^0.8.20; /** * @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 meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } } pragma solidity ^0.8.20; /** * @dev Helper library for emitting standardized panic codes. * * ```solidity * contract Example { * using Panic for uint256; * * // Use any of the declared internal constants * function foo() { Panic.GENERIC.panic(); } * * // Alternatively * function foo() { Panic.panic(Panic.GENERIC); } * } * ``` * * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil]. * * _Available since v5.1._ */ // slither-disable-next-line unused-state library Panic { /// @dev generic / unspecified error uint256 internal constant GENERIC = 0x00; /// @dev used by the assert() builtin uint256 internal constant ASSERT = 0x01; /// @dev arithmetic underflow or overflow uint256 internal constant UNDER_OVERFLOW = 0x11; /// @dev division or modulo by zero uint256 internal constant DIVISION_BY_ZERO = 0x12; /// @dev enum conversion error uint256 internal constant ENUM_CONVERSION_ERROR = 0x21; /// @dev invalid encoding in storage uint256 internal constant STORAGE_ENCODING_ERROR = 0x22; /// @dev empty array pop uint256 internal constant EMPTY_ARRAY_POP = 0x31; /// @dev array out of bounds access uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32; /// @dev resource error (too large allocation or too large array) uint256 internal constant RESOURCE_ERROR = 0x41; /// @dev calling invalid internal function uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51; /// @dev Reverts with a panic code. Recommended to use with /// the internal constants with predefined codes. function panic(uint256 code) internal pure { assembly ("memory-safe") { mstore(0x00, 0x4e487b71) mstore(0x20, code) revert(0x1c, 0x24) } } } // This file was procedurally generated from scripts/generate/templates/SafeCast.js. pragma solidity ^0.8.20; /** * @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow * checks. * * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can * easily result in undesired exploitation or bugs, since developers usually * assume that overflows raise errors. `SafeCast` restores this intuition by * reverting the transaction when such 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 SafeCast { /** * @dev Value doesn't fit in an uint of `bits` size. */ error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value); /** * @dev An int value doesn't fit in an uint of `bits` size. */ error SafeCastOverflowedIntToUint(int256 value); /** * @dev Value doesn't fit in an int of `bits` size. */ error SafeCastOverflowedIntDowncast(uint8 bits, int256 value); /** * @dev An uint value doesn't fit in an int of `bits` size. */ error SafeCastOverflowedUintToInt(uint256 value); /** * @dev Returns the downcasted uint248 from uint256, reverting on * overflow (when the input is greater than largest uint248). * * Counterpart to Solidity's `uint248` operator. * * Requirements: * * - input must fit into 248 bits */ function toUint248(uint256 value) internal pure returns (uint248) { if (value > type(uint248).max) { revert SafeCastOverflowedUintDowncast(248, value); } return uint248(value); } /** * @dev Returns the downcasted uint240 from uint256, reverting on * overflow (when the input is greater than largest uint240). * * Counterpart to Solidity's `uint240` operator. * * Requirements: * * - input must fit into 240 bits */ function toUint240(uint256 value) internal pure returns (uint240) { if (value > type(uint240).max) { revert SafeCastOverflowedUintDowncast(240, value); } return uint240(value); } /** * @dev Returns the downcasted uint232 from uint256, reverting on * overflow (when the input is greater than largest uint232). * * Counterpart to Solidity's `uint232` operator. * * Requirements: * * - input must fit into 232 bits */ function toUint232(uint256 value) internal pure returns (uint232) { if (value > type(uint232).max) { revert SafeCastOverflowedUintDowncast(232, value); } return uint232(value); } /** * @dev Returns the downcasted uint224 from uint256, reverting on * overflow (when the input is greater than largest uint224). * * Counterpart to Solidity's `uint224` operator. * * Requirements: * * - input must fit into 224 bits */ function toUint224(uint256 value) internal pure returns (uint224) { if (value > type(uint224).max) { revert SafeCastOverflowedUintDowncast(224, value); } return uint224(value); } /** * @dev Returns the downcasted uint216 from uint256, reverting on * overflow (when the input is greater than largest uint216). * * Counterpart to Solidity's `uint216` operator. * * Requirements: * * - input must fit into 216 bits */ function toUint216(uint256 value) internal pure returns (uint216) { if (value > type(uint216).max) { revert SafeCastOverflowedUintDowncast(216, value); } return uint216(value); } /** * @dev Returns the downcasted uint208 from uint256, reverting on * overflow (when the input is greater than largest uint208). * * Counterpart to Solidity's `uint208` operator. * * Requirements: * * - input must fit into 208 bits */ function toUint208(uint256 value) internal pure returns (uint208) { if (value > type(uint208).max) { revert SafeCastOverflowedUintDowncast(208, value); } return uint208(value); } /** * @dev Returns the downcasted uint200 from uint256, reverting on * overflow (when the input is greater than largest uint200). * * Counterpart to Solidity's `uint200` operator. * * Requirements: * * - input must fit into 200 bits */ function toUint200(uint256 value) internal pure returns (uint200) { if (value > type(uint200).max) { revert SafeCastOverflowedUintDowncast(200, value); } return uint200(value); } /** * @dev Returns the downcasted uint192 from uint256, reverting on * overflow (when the input is greater than largest uint192). * * Counterpart to Solidity's `uint192` operator. * * Requirements: * * - input must fit into 192 bits */ function toUint192(uint256 value) internal pure returns (uint192) { if (value > type(uint192).max) { revert SafeCastOverflowedUintDowncast(192, value); } return uint192(value); } /** * @dev Returns the downcasted uint184 from uint256, reverting on * overflow (when the input is greater than largest uint184). * * Counterpart to Solidity's `uint184` operator. * * Requirements: * * - input must fit into 184 bits */ function toUint184(uint256 value) internal pure returns (uint184) { if (value > type(uint184).max) { revert SafeCastOverflowedUintDowncast(184, value); } return uint184(value); } /** * @dev Returns the downcasted uint176 from uint256, reverting on * overflow (when the input is greater than largest uint176). * * Counterpart to Solidity's `uint176` operator. * * Requirements: * * - input must fit into 176 bits */ function toUint176(uint256 value) internal pure returns (uint176) { if (value > type(uint176).max) { revert SafeCastOverflowedUintDowncast(176, value); } return uint176(value); } /** * @dev Returns the downcasted uint168 from uint256, reverting on * overflow (when the input is greater than largest uint168). * * Counterpart to Solidity's `uint168` operator. * * Requirements: * * - input must fit into 168 bits */ function toUint168(uint256 value) internal pure returns (uint168) { if (value > type(uint168).max) { revert SafeCastOverflowedUintDowncast(168, value); } return uint168(value); } /** * @dev Returns the downcasted uint160 from uint256, reverting on * overflow (when the input is greater than largest uint160). * * Counterpart to Solidity's `uint160` operator. * * Requirements: * * - input must fit into 160 bits */ function toUint160(uint256 value) internal pure returns (uint160) { if (value > type(uint160).max) { revert SafeCastOverflowedUintDowncast(160, value); } return uint160(value); } /** * @dev Returns the downcasted uint152 from uint256, reverting on * overflow (when the input is greater than largest uint152). * * Counterpart to Solidity's `uint152` operator. * * Requirements: * * - input must fit into 152 bits */ function toUint152(uint256 value) internal pure returns (uint152) { if (value > type(uint152).max) { revert SafeCastOverflowedUintDowncast(152, value); } return uint152(value); } /** * @dev Returns the downcasted uint144 from uint256, reverting on * overflow (when the input is greater than largest uint144). * * Counterpart to Solidity's `uint144` operator. * * Requirements: * * - input must fit into 144 bits */ function toUint144(uint256 value) internal pure returns (uint144) { if (value > type(uint144).max) { revert SafeCastOverflowedUintDowncast(144, value); } return uint144(value); } /** * @dev Returns the downcasted uint136 from uint256, reverting on * overflow (when the input is greater than largest uint136). * * Counterpart to Solidity's `uint136` operator. * * Requirements: * * - input must fit into 136 bits */ function toUint136(uint256 value) internal pure returns (uint136) { if (value > type(uint136).max) { revert SafeCastOverflowedUintDowncast(136, value); } return uint136(value); } /** * @dev Returns the downcasted uint128 from uint256, reverting on * overflow (when the input is greater than largest uint128). * * Counterpart to Solidity's `uint128` operator. * * Requirements: * * - input must fit into 128 bits */ function toUint128(uint256 value) internal pure returns (uint128) { if (value > type(uint128).max) { revert SafeCastOverflowedUintDowncast(128, value); } return uint128(value); } /** * @dev Returns the downcasted uint120 from uint256, reverting on * overflow (when the input is greater than largest uint120). * * Counterpart to Solidity's `uint120` operator. * * Requirements: * * - input must fit into 120 bits */ function toUint120(uint256 value) internal pure returns (uint120) { if (value > type(uint120).max) { revert SafeCastOverflowedUintDowncast(120, value); } return uint120(value); } /** * @dev Returns the downcasted uint112 from uint256, reverting on * overflow (when the input is greater than largest uint112). * * Counterpart to Solidity's `uint112` operator. * * Requirements: * * - input must fit into 112 bits */ function toUint112(uint256 value) internal pure returns (uint112) { if (value > type(uint112).max) { revert SafeCastOverflowedUintDowncast(112, value); } return uint112(value); } /** * @dev Returns the downcasted uint104 from uint256, reverting on * overflow (when the input is greater than largest uint104). * * Counterpart to Solidity's `uint104` operator. * * Requirements: * * - input must fit into 104 bits */ function toUint104(uint256 value) internal pure returns (uint104) { if (value > type(uint104).max) { revert SafeCastOverflowedUintDowncast(104, value); } return uint104(value); } /** * @dev Returns the downcasted uint96 from uint256, reverting on * overflow (when the input is greater than largest uint96). * * Counterpart to Solidity's `uint96` operator. * * Requirements: * * - input must fit into 96 bits */ function toUint96(uint256 value) internal pure returns (uint96) { if (value > type(uint96).max) { revert SafeCastOverflowedUintDowncast(96, value); } return uint96(value); } /** * @dev Returns the downcasted uint88 from uint256, reverting on * overflow (when the input is greater than largest uint88). * * Counterpart to Solidity's `uint88` operator. * * Requirements: * * - input must fit into 88 bits */ function toUint88(uint256 value) internal pure returns (uint88) { if (value > type(uint88).max) { revert SafeCastOverflowedUintDowncast(88, value); } return uint88(value); } /** * @dev Returns the downcasted uint80 from uint256, reverting on * overflow (when the input is greater than largest uint80). * * Counterpart to Solidity's `uint80` operator. * * Requirements: * * - input must fit into 80 bits */ function toUint80(uint256 value) internal pure returns (uint80) { if (value > type(uint80).max) { revert SafeCastOverflowedUintDowncast(80, value); } return uint80(value); } /** * @dev Returns the downcasted uint72 from uint256, reverting on * overflow (when the input is greater than largest uint72). * * Counterpart to Solidity's `uint72` operator. * * Requirements: * * - input must fit into 72 bits */ function toUint72(uint256 value) internal pure returns (uint72) { if (value > type(uint72).max) { revert SafeCastOverflowedUintDowncast(72, value); } return uint72(value); } /** * @dev Returns the downcasted uint64 from uint256, reverting on * overflow (when the input is greater than largest uint64). * * Counterpart to Solidity's `uint64` operator. * * Requirements: * * - input must fit into 64 bits */ function toUint64(uint256 value) internal pure returns (uint64) { if (value > type(uint64).max) { revert SafeCastOverflowedUintDowncast(64, value); } return uint64(value); } /** * @dev Returns the downcasted uint56 from uint256, reverting on * overflow (when the input is greater than largest uint56). * * Counterpart to Solidity's `uint56` operator. * * Requirements: * * - input must fit into 56 bits */ function toUint56(uint256 value) internal pure returns (uint56) { if (value > type(uint56).max) { revert SafeCastOverflowedUintDowncast(56, value); } return uint56(value); } /** * @dev Returns the downcasted uint48 from uint256, reverting on * overflow (when the input is greater than largest uint48). * * Counterpart to Solidity's `uint48` operator. * * Requirements: * * - input must fit into 48 bits */ function toUint48(uint256 value) internal pure returns (uint48) { if (value > type(uint48).max) { revert SafeCastOverflowedUintDowncast(48, value); } return uint48(value); } /** * @dev Returns the downcasted uint40 from uint256, reverting on * overflow (when the input is greater than largest uint40). * * Counterpart to Solidity's `uint40` operator. * * Requirements: * * - input must fit into 40 bits */ function toUint40(uint256 value) internal pure returns (uint40) { if (value > type(uint40).max) { revert SafeCastOverflowedUintDowncast(40, value); } return uint40(value); } /** * @dev Returns the downcasted uint32 from uint256, reverting on * overflow (when the input is greater than largest uint32). * * Counterpart to Solidity's `uint32` operator. * * Requirements: * * - input must fit into 32 bits */ function toUint32(uint256 value) internal pure returns (uint32) { if (value > type(uint32).max) { revert SafeCastOverflowedUintDowncast(32, value); } return uint32(value); } /** * @dev Returns the downcasted uint24 from uint256, reverting on * overflow (when the input is greater than largest uint24). * * Counterpart to Solidity's `uint24` operator. * * Requirements: * * - input must fit into 24 bits */ function toUint24(uint256 value) internal pure returns (uint24) { if (value > type(uint24).max) { revert SafeCastOverflowedUintDowncast(24, value); } return uint24(value); } /** * @dev Returns the downcasted uint16 from uint256, reverting on * overflow (when the input is greater than largest uint16). * * Counterpart to Solidity's `uint16` operator. * * Requirements: * * - input must fit into 16 bits */ function toUint16(uint256 value) internal pure returns (uint16) { if (value > type(uint16).max) { revert SafeCastOverflowedUintDowncast(16, value); } return uint16(value); } /** * @dev Returns the downcasted uint8 from uint256, reverting on * overflow (when the input is greater than largest uint8). * * Counterpart to Solidity's `uint8` operator. * * Requirements: * * - input must fit into 8 bits */ function toUint8(uint256 value) internal pure returns (uint8) { if (value > type(uint8).max) { revert SafeCastOverflowedUintDowncast(8, value); } return uint8(value); } /** * @dev Converts a signed int256 into an unsigned uint256. * * Requirements: * * - input must be greater than or equal to 0. */ function toUint256(int256 value) internal pure returns (uint256) { if (value < 0) { revert SafeCastOverflowedIntToUint(value); } return uint256(value); } /** * @dev Returns the downcasted int248 from int256, reverting on * overflow (when the input is less than smallest int248 or * greater than largest int248). * * Counterpart to Solidity's `int248` operator. * * Requirements: * * - input must fit into 248 bits */ function toInt248(int256 value) internal pure returns (int248 downcasted) { downcasted = int248(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(248, value); } } /** * @dev Returns the downcasted int240 from int256, reverting on * overflow (when the input is less than smallest int240 or * greater than largest int240). * * Counterpart to Solidity's `int240` operator. * * Requirements: * * - input must fit into 240 bits */ function toInt240(int256 value) internal pure returns (int240 downcasted) { downcasted = int240(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(240, value); } } /** * @dev Returns the downcasted int232 from int256, reverting on * overflow (when the input is less than smallest int232 or * greater than largest int232). * * Counterpart to Solidity's `int232` operator. * * Requirements: * * - input must fit into 232 bits */ function toInt232(int256 value) internal pure returns (int232 downcasted) { downcasted = int232(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(232, value); } } /** * @dev Returns the downcasted int224 from int256, reverting on * overflow (when the input is less than smallest int224 or * greater than largest int224). * * Counterpart to Solidity's `int224` operator. * * Requirements: * * - input must fit into 224 bits */ function toInt224(int256 value) internal pure returns (int224 downcasted) { downcasted = int224(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(224, value); } } /** * @dev Returns the downcasted int216 from int256, reverting on * overflow (when the input is less than smallest int216 or * greater than largest int216). * * Counterpart to Solidity's `int216` operator. * * Requirements: * * - input must fit into 216 bits */ function toInt216(int256 value) internal pure returns (int216 downcasted) { downcasted = int216(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(216, value); } } /** * @dev Returns the downcasted int208 from int256, reverting on * overflow (when the input is less than smallest int208 or * greater than largest int208). * * Counterpart to Solidity's `int208` operator. * * Requirements: * * - input must fit into 208 bits */ function toInt208(int256 value) internal pure returns (int208 downcasted) { downcasted = int208(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(208, value); } } /** * @dev Returns the downcasted int200 from int256, reverting on * overflow (when the input is less than smallest int200 or * greater than largest int200). * * Counterpart to Solidity's `int200` operator. * * Requirements: * * - input must fit into 200 bits */ function toInt200(int256 value) internal pure returns (int200 downcasted) { downcasted = int200(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(200, value); } } /** * @dev Returns the downcasted int192 from int256, reverting on * overflow (when the input is less than smallest int192 or * greater than largest int192). * * Counterpart to Solidity's `int192` operator. * * Requirements: * * - input must fit into 192 bits */ function toInt192(int256 value) internal pure returns (int192 downcasted) { downcasted = int192(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(192, value); } } /** * @dev Returns the downcasted int184 from int256, reverting on * overflow (when the input is less than smallest int184 or * greater than largest int184). * * Counterpart to Solidity's `int184` operator. * * Requirements: * * - input must fit into 184 bits */ function toInt184(int256 value) internal pure returns (int184 downcasted) { downcasted = int184(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(184, value); } } /** * @dev Returns the downcasted int176 from int256, reverting on * overflow (when the input is less than smallest int176 or * greater than largest int176). * * Counterpart to Solidity's `int176` operator. * * Requirements: * * - input must fit into 176 bits */ function toInt176(int256 value) internal pure returns (int176 downcasted) { downcasted = int176(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(176, value); } } /** * @dev Returns the downcasted int168 from int256, reverting on * overflow (when the input is less than smallest int168 or * greater than largest int168). * * Counterpart to Solidity's `int168` operator. * * Requirements: * * - input must fit into 168 bits */ function toInt168(int256 value) internal pure returns (int168 downcasted) { downcasted = int168(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(168, value); } } /** * @dev Returns the downcasted int160 from int256, reverting on * overflow (when the input is less than smallest int160 or * greater than largest int160). * * Counterpart to Solidity's `int160` operator. * * Requirements: * * - input must fit into 160 bits */ function toInt160(int256 value) internal pure returns (int160 downcasted) { downcasted = int160(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(160, value); } } /** * @dev Returns the downcasted int152 from int256, reverting on * overflow (when the input is less than smallest int152 or * greater than largest int152). * * Counterpart to Solidity's `int152` operator. * * Requirements: * * - input must fit into 152 bits */ function toInt152(int256 value) internal pure returns (int152 downcasted) { downcasted = int152(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(152, value); } } /** * @dev Returns the downcasted int144 from int256, reverting on * overflow (when the input is less than smallest int144 or * greater than largest int144). * * Counterpart to Solidity's `int144` operator. * * Requirements: * * - input must fit into 144 bits */ function toInt144(int256 value) internal pure returns (int144 downcasted) { downcasted = int144(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(144, value); } } /** * @dev Returns the downcasted int136 from int256, reverting on * overflow (when the input is less than smallest int136 or * greater than largest int136). * * Counterpart to Solidity's `int136` operator. * * Requirements: * * - input must fit into 136 bits */ function toInt136(int256 value) internal pure returns (int136 downcasted) { downcasted = int136(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(136, value); } } /** * @dev Returns the downcasted int128 from int256, reverting on * overflow (when the input is less than smallest int128 or * greater than largest int128). * * Counterpart to Solidity's `int128` operator. * * Requirements: * * - input must fit into 128 bits */ function toInt128(int256 value) internal pure returns (int128 downcasted) { downcasted = int128(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(128, value); } } /** * @dev Returns the downcasted int120 from int256, reverting on * overflow (when the input is less than smallest int120 or * greater than largest int120). * * Counterpart to Solidity's `int120` operator. * * Requirements: * * - input must fit into 120 bits */ function toInt120(int256 value) internal pure returns (int120 downcasted) { downcasted = int120(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(120, value); } } /** * @dev Returns the downcasted int112 from int256, reverting on * overflow (when the input is less than smallest int112 or * greater than largest int112). * * Counterpart to Solidity's `int112` operator. * * Requirements: * * - input must fit into 112 bits */ function toInt112(int256 value) internal pure returns (int112 downcasted) { downcasted = int112(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(112, value); } } /** * @dev Returns the downcasted int104 from int256, reverting on * overflow (when the input is less than smallest int104 or * greater than largest int104). * * Counterpart to Solidity's `int104` operator. * * Requirements: * * - input must fit into 104 bits */ function toInt104(int256 value) internal pure returns (int104 downcasted) { downcasted = int104(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(104, value); } } /** * @dev Returns the downcasted int96 from int256, reverting on * overflow (when the input is less than smallest int96 or * greater than largest int96). * * Counterpart to Solidity's `int96` operator. * * Requirements: * * - input must fit into 96 bits */ function toInt96(int256 value) internal pure returns (int96 downcasted) { downcasted = int96(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(96, value); } } /** * @dev Returns the downcasted int88 from int256, reverting on * overflow (when the input is less than smallest int88 or * greater than largest int88). * * Counterpart to Solidity's `int88` operator. * * Requirements: * * - input must fit into 88 bits */ function toInt88(int256 value) internal pure returns (int88 downcasted) { downcasted = int88(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(88, value); } } /** * @dev Returns the downcasted int80 from int256, reverting on * overflow (when the input is less than smallest int80 or * greater than largest int80). * * Counterpart to Solidity's `int80` operator. * * Requirements: * * - input must fit into 80 bits */ function toInt80(int256 value) internal pure returns (int80 downcasted) { downcasted = int80(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(80, value); } } /** * @dev Returns the downcasted int72 from int256, reverting on * overflow (when the input is less than smallest int72 or * greater than largest int72). * * Counterpart to Solidity's `int72` operator. * * Requirements: * * - input must fit into 72 bits */ function toInt72(int256 value) internal pure returns (int72 downcasted) { downcasted = int72(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(72, value); } } /** * @dev Returns the downcasted int64 from int256, reverting on * overflow (when the input is less than smallest int64 or * greater than largest int64). * * Counterpart to Solidity's `int64` operator. * * Requirements: * * - input must fit into 64 bits */ function toInt64(int256 value) internal pure returns (int64 downcasted) { downcasted = int64(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(64, value); } } /** * @dev Returns the downcasted int56 from int256, reverting on * overflow (when the input is less than smallest int56 or * greater than largest int56). * * Counterpart to Solidity's `int56` operator. * * Requirements: * * - input must fit into 56 bits */ function toInt56(int256 value) internal pure returns (int56 downcasted) { downcasted = int56(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(56, value); } } /** * @dev Returns the downcasted int48 from int256, reverting on * overflow (when the input is less than smallest int48 or * greater than largest int48). * * Counterpart to Solidity's `int48` operator. * * Requirements: * * - input must fit into 48 bits */ function toInt48(int256 value) internal pure returns (int48 downcasted) { downcasted = int48(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(48, value); } } /** * @dev Returns the downcasted int40 from int256, reverting on * overflow (when the input is less than smallest int40 or * greater than largest int40). * * Counterpart to Solidity's `int40` operator. * * Requirements: * * - input must fit into 40 bits */ function toInt40(int256 value) internal pure returns (int40 downcasted) { downcasted = int40(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(40, value); } } /** * @dev Returns the downcasted int32 from int256, reverting on * overflow (when the input is less than smallest int32 or * greater than largest int32). * * Counterpart to Solidity's `int32` operator. * * Requirements: * * - input must fit into 32 bits */ function toInt32(int256 value) internal pure returns (int32 downcasted) { downcasted = int32(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(32, value); } } /** * @dev Returns the downcasted int24 from int256, reverting on * overflow (when the input is less than smallest int24 or * greater than largest int24). * * Counterpart to Solidity's `int24` operator. * * Requirements: * * - input must fit into 24 bits */ function toInt24(int256 value) internal pure returns (int24 downcasted) { downcasted = int24(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(24, value); } } /** * @dev Returns the downcasted int16 from int256, reverting on * overflow (when the input is less than smallest int16 or * greater than largest int16). * * Counterpart to Solidity's `int16` operator. * * Requirements: * * - input must fit into 16 bits */ function toInt16(int256 value) internal pure returns (int16 downcasted) { downcasted = int16(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(16, value); } } /** * @dev Returns the downcasted int8 from int256, reverting on * overflow (when the input is less than smallest int8 or * greater than largest int8). * * Counterpart to Solidity's `int8` operator. * * Requirements: * * - input must fit into 8 bits */ function toInt8(int256 value) internal pure returns (int8 downcasted) { downcasted = int8(value); if (downcasted != value) { revert SafeCastOverflowedIntDowncast(8, value); } } /** * @dev Converts an unsigned uint256 into a signed int256. * * Requirements: * * - input must be less than or equal to maxInt256. */ function toInt256(uint256 value) internal pure returns (int256) { // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive if (value > uint256(type(int256).max)) { revert SafeCastOverflowedUintToInt(value); } return int256(value); } /** * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump. */ function toUint(bool b) internal pure returns (uint256 u) { assembly ("memory-safe") { u := iszero(iszero(b)) } } } pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an success flag (no overflow). */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an success flag (no overflow). */ function trySub(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an success flag (no overflow). */ function tryMul(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { // 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 (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a success flag (no division by zero). */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a success flag (no division by zero). */ function tryMod(uint256 a, uint256 b) internal pure returns (bool success, uint256 result) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant. * * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone. * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute * one branch when needed, making this function more expensive. */ function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) { unchecked { // branchless ternary works because: // b ^ (a ^ b) == a // b ^ 0 == b return b ^ ((a ^ b) * SafeCast.toUint(condition)); } } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return ternary(a > b, a, b); } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return ternary(a < b, a, b); } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. Panic.panic(Panic.DIVISION_BY_ZERO); } // The following calculation ensures accurate ceiling division without overflow. // Since a is non-zero, (a - 1) / b will not overflow. // The largest possible result occurs when (a - 1) / b is type(uint256).max, // but the largest value we can obtain is type(uint256).max - 1, which happens // when a = type(uint256).max and b = 1. unchecked { return SafeCast.toUint(a > 0) * ((a - 1) / b + 1); } } /** * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * * Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2²⁵⁶ and mod 2²⁵⁶ - 1, then use // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2²⁵⁶ + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0. if (denominator <= prod1) { Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW)); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2²⁵⁶ / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv ≡ 1 mod 2⁴. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2⁸ inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶ inverse *= 2 - denominator * inverse; // inverse mod 2³² inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴ inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸ inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶ // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2²⁵⁶. Since the preconditions guarantee that the outcome is // less than 2²⁵⁶, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @dev Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0); } /** * @dev Calculate the modular multiplicative inverse of a number in Z/nZ. * * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0. * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible. * * If the input value is not inversible, 0 is returned. * * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}. */ function invMod(uint256 a, uint256 n) internal pure returns (uint256) { unchecked { if (n == 0) return 0; // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version) // Used to compute integers x and y such that: ax + ny = gcd(a, n). // When the gcd is 1, then the inverse of a modulo n exists and it's x. // ax + ny = 1 // ax = 1 + (-y)n // ax ≡ 1 (mod n) # x is the inverse of a modulo n // If the remainder is 0 the gcd is n right away. uint256 remainder = a % n; uint256 gcd = n; // Therefore the initial coefficients are: // ax + ny = gcd(a, n) = n // 0a + 1n = n int256 x = 0; int256 y = 1; while (remainder != 0) { uint256 quotient = gcd / remainder; (gcd, remainder) = ( // The old remainder is the next gcd to try. remainder, // Compute the next remainder. // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd // where gcd is at most n (capped to type(uint256).max) gcd - remainder * quotient ); (x, y) = ( // Increment the coefficient of a. y, // Decrement the coefficient of n. // Can overflow, but the result is casted to uint256 so that the // next value of y is "wrapped around" to a value between 0 and n - 1. x - y * int256(quotient) ); } if (gcd != 1) return 0; // No inverse exists. return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative. } } /** * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`. * * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that * `a**(p-2)` is the modular multiplicative inverse of a in Fp. * * NOTE: this function does NOT check that `p` is a prime greater than `2`. */ function invModPrime(uint256 a, uint256 p) internal view returns (uint256) { unchecked { return Math.modExp(a, p - 2, p); } } /** * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m) * * Requirements: * - modulus can't be zero * - underlying staticcall to precompile must succeed * * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make * sure the chain you're using it on supports the precompiled contract for modular exponentiation * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, * the underlying function will succeed given the lack of a revert, but the result may be incorrectly * interpreted as 0. */ function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) { (bool success, uint256 result) = tryModExp(b, e, m); if (!success) { Panic.panic(Panic.DIVISION_BY_ZERO); } return result; } /** * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m). * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying * to operate modulo 0 or if the underlying precompile reverted. * * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack * of a revert, but the result may be incorrectly interpreted as 0. */ function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) { if (m == 0) return (false, 0); assembly ("memory-safe") { let ptr := mload(0x40) // | Offset | Content | Content (Hex) | // |-----------|------------|--------------------------------------------------------------------| // | 0x00:0x1f | size of b | 0x0000000000000000000000000000000000000000000000000000000000000020 | // | 0x20:0x3f | size of e | 0x0000000000000000000000000000000000000000000000000000000000000020 | // | 0x40:0x5f | size of m | 0x0000000000000000000000000000000000000000000000000000000000000020 | // | 0x60:0x7f | value of b | 0x<.............................................................b> | // | 0x80:0x9f | value of e | 0x<.............................................................e> | // | 0xa0:0xbf | value of m | 0x<.............................................................m> | mstore(ptr, 0x20) mstore(add(ptr, 0x20), 0x20) mstore(add(ptr, 0x40), 0x20) mstore(add(ptr, 0x60), b) mstore(add(ptr, 0x80), e) mstore(add(ptr, 0xa0), m) // Given the result < m, it's guaranteed to fit in 32 bytes, // so we can use the memory scratch space located at offset 0. success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20) result := mload(0x00) } } /** * @dev Variant of {modExp} that supports inputs of arbitrary length. */ function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) { (bool success, bytes memory result) = tryModExp(b, e, m); if (!success) { Panic.panic(Panic.DIVISION_BY_ZERO); } return result; } /** * @dev Variant of {tryModExp} that supports inputs of arbitrary length. */ function tryModExp( bytes memory b, bytes memory e, bytes memory m ) internal view returns (bool success, bytes memory result) { if (_zeroBytes(m)) return (false, new bytes(0)); uint256 mLen = m.length; // Encode call args in result and move the free memory pointer result = abi.encodePacked(b.length, e.length, mLen, b, e, m); assembly ("memory-safe") { let dataPtr := add(result, 0x20) // Write result on top of args to avoid allocating extra memory. success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen) // Overwrite the length. // result.length > returndatasize() is guaranteed because returndatasize() == m.length mstore(result, mLen) // Set the memory pointer after the returned data. mstore(0x40, add(dataPtr, mLen)) } } /** * @dev Returns whether the provided byte array is zero. */ function _zeroBytes(bytes memory byteArray) private pure returns (bool) { for (uint256 i = 0; i < byteArray.length; ++i) { if (byteArray[i] != 0) { return false; } } return true; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * This method is based on Newton's method for computing square roots; the algorithm is restricted to only * using integer operations. */ function sqrt(uint256 a) internal pure returns (uint256) { unchecked { // Take care of easy edge cases when a == 0 or a == 1 if (a <= 1) { return a; } // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between // the current value as `ε_n = | x_n - sqrt(a) |`. // // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is // bigger than any uint256. // // By noticing that // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)` // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar // to the msb function. uint256 aa = a; uint256 xn = 1; if (aa >= (1 << 128)) { aa >>= 128; xn <<= 64; } if (aa >= (1 << 64)) { aa >>= 64; xn <<= 32; } if (aa >= (1 << 32)) { aa >>= 32; xn <<= 16; } if (aa >= (1 << 16)) { aa >>= 16; xn <<= 8; } if (aa >= (1 << 8)) { aa >>= 8; xn <<= 4; } if (aa >= (1 << 4)) { aa >>= 4; xn <<= 2; } if (aa >= (1 << 2)) { xn <<= 1; } // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1). // // We can refine our estimation by noticing that the middle of that interval minimizes the error. // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2). // This is going to be our x_0 (and ε_0) xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2) // From here, Newton's method give us: // x_{n+1} = (x_n + a / x_n) / 2 // // One should note that: // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a // = ((x_n² + a) / (2 * x_n))² - a // = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a // = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²) // = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²) // = (x_n² - a)² / (2 * x_n)² // = ((x_n² - a) / (2 * x_n))² // ≥ 0 // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n // // This gives us the proof of quadratic convergence of the sequence: // ε_{n+1} = | x_{n+1} - sqrt(a) | // = | (x_n + a / x_n) / 2 - sqrt(a) | // = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) | // = | (x_n - sqrt(a))² / (2 * x_n) | // = | ε_n² / (2 * x_n) | // = ε_n² / | (2 * x_n) | // // For the first iteration, we have a special case where x_0 is known: // ε_1 = ε_0² / | (2 * x_0) | // ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2))) // ≤ 2**(2*e-4) / (3 * 2**(e-1)) // ≤ 2**(e-3) / 3 // ≤ 2**(e-3-log2(3)) // ≤ 2**(e-4.5) // // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n: // ε_{n+1} = ε_n² / | (2 * x_n) | // ≤ (2**(e-k))² / (2 * 2**(e-1)) // ≤ 2**(2*e-2*k) / 2**e // ≤ 2**(e-2*k) xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5) -- special case, see above xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9) -- general case with k = 4.5 xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18) -- general case with k = 9 xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36) -- general case with k = 18 xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72) -- general case with k = 36 xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144) -- general case with k = 72 // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either // sqrt(a) or sqrt(a) + 1. return xn - SafeCast.toUint(xn > a / xn); } } /** * @dev Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; uint256 exp; unchecked { exp = 128 * SafeCast.toUint(value > (1 << 128) - 1); value >>= exp; result += exp; exp = 64 * SafeCast.toUint(value > (1 << 64) - 1); value >>= exp; result += exp; exp = 32 * SafeCast.toUint(value > (1 << 32) - 1); value >>= exp; result += exp; exp = 16 * SafeCast.toUint(value > (1 << 16) - 1); value >>= exp; result += exp; exp = 8 * SafeCast.toUint(value > (1 << 8) - 1); value >>= exp; result += exp; exp = 4 * SafeCast.toUint(value > (1 << 4) - 1); value >>= exp; result += exp; exp = 2 * SafeCast.toUint(value > (1 << 2) - 1); value >>= exp; result += exp; result += SafeCast.toUint(value > 1); } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 10 ** result < value); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; uint256 isGt; unchecked { isGt = SafeCast.toUint(value > (1 << 128) - 1); value >>= isGt * 128; result += isGt * 16; isGt = SafeCast.toUint(value > (1 << 64) - 1); value >>= isGt * 64; result += isGt * 8; isGt = SafeCast.toUint(value > (1 << 32) - 1); value >>= isGt * 32; result += isGt * 4; isGt = SafeCast.toUint(value > (1 << 16) - 1); value >>= isGt * 16; result += isGt * 2; result += SafeCast.toUint(value > (1 << 8) - 1); } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << (result << 3) < value); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } } pragma solidity ^0.8.20; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant. * * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone. * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute * one branch when needed, making this function more expensive. */ function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) { unchecked { // branchless ternary works because: // b ^ (a ^ b) == a // b ^ 0 == b return b ^ ((a ^ b) * int256(SafeCast.toUint(condition))); } } /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return ternary(a > b, a, b); } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return ternary(a < b, a, b); } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // Formula from the "Bit Twiddling Hacks" by Sean Eron Anderson. // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift, // taking advantage of the most significant (or "sign" bit) in two's complement representation. // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result, // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative). int256 mask = n >> 255; // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it. return uint256((n + mask) ^ mask); } } } pragma solidity ^0.8.20; /** * @dev String operations. */ library Strings { bytes16 private constant HEX_DIGITS = "0123456789abcdef"; uint8 private constant ADDRESS_LENGTH = 20; /** * @dev The `value` string doesn't fit in the specified `length`. */ error StringsInsufficientHexLength(uint256 value, uint256 length); /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; assembly ("memory-safe") { ptr := add(buffer, add(32, length)) } while (true) { ptr--; assembly ("memory-safe") { mstore8(ptr, byte(mod(value, 10), HEX_DIGITS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toStringSigned(int256 value) internal pure returns (string memory) { return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { uint256 localValue = value; bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = HEX_DIGITS[localValue & 0xf]; localValue >>= 4; } if (localValue != 0) { revert StringsInsufficientHexLength(value, length); } return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal * representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH); } /** * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal * representation, according to EIP-55. */ function toChecksumHexString(address addr) internal pure returns (string memory) { bytes memory buffer = bytes(toHexString(addr)); // hash the hex part of buffer (skip length + 2 bytes, length 40) uint256 hashValue; assembly ("memory-safe") { hashValue := shr(96, keccak256(add(buffer, 0x22), 40)) } for (uint256 i = 41; i > 1; --i) { // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f) if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) { // case shift by xoring with 0x20 buffer[i] ^= 0x20; } hashValue >>= 4; } return string(buffer); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b)); } } pragma solidity ^0.8.20; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` */ abstract contract ERC165Upgradeable is Initializable, IERC165 { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } } pragma solidity ^0.8.20; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC-721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ abstract contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721, IERC721Metadata, IERC721Errors { using Strings for uint256; /// @custom:storage-location erc7201:openzeppelin.storage.ERC721 struct ERC721Storage { // Token name string _name; // Token symbol string _symbol; mapping(uint256 tokenId => address) _owners; mapping(address owner => uint256) _balances; mapping(uint256 tokenId => address) _tokenApprovals; mapping(address owner => mapping(address operator => bool)) _operatorApprovals; } // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.ERC721")) - 1)) & ~bytes32(uint256(0xff)) bytes32 private constant ERC721StorageLocation = 0x80bb2b638cc20bc4d0a60d66940f3ab4a00c1d7b313497ca82fb0b4ab0079300; function _getERC721Storage() private pure returns (ERC721Storage storage $) { assembly { $.slot := ERC721StorageLocation } } /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC721_init_unchained(name_, symbol_); } function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { ERC721Storage storage $ = _getERC721Storage(); $._name = name_; $._symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual returns (uint256) { ERC721Storage storage $ = _getERC721Storage(); if (owner == address(0)) { revert ERC721InvalidOwner(address(0)); } return $._balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual returns (address) { return _requireOwned(tokenId); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual returns (string memory) { ERC721Storage storage $ = _getERC721Storage(); return $._name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual returns (string memory) { ERC721Storage storage $ = _getERC721Storage(); return $._symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual returns (string memory) { _requireOwned(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string.concat(baseURI, tokenId.toString()) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual { _approve(to, tokenId, _msgSender()); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual returns (address) { _requireOwned(tokenId); return _getApproved(tokenId); } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual returns (bool) { ERC721Storage storage $ = _getERC721Storage(); return $._operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here. address previousOwner = _update(to, tokenId, _msgSender()); if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual { transferFrom(from, to, tokenId); ERC721Utils.checkOnERC721Received(_msgSender(), from, to, tokenId, data); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist * * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the * core ERC-721 logic MUST be matched with the use of {_increaseBalance} to keep balances * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`. */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { ERC721Storage storage $ = _getERC721Storage(); return $._owners[tokenId]; } /** * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted. */ function _getApproved(uint256 tokenId) internal view virtual returns (address) { ERC721Storage storage $ = _getERC721Storage(); return $._tokenApprovals[tokenId]; } /** * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in * particular (ignoring whether it is owned by `owner`). * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) { return spender != address(0) && (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender); } /** * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner. * Reverts if: * - `spender` does not have approval from `owner` for `tokenId`. * - `spender` does not have approval to manage all of `owner`'s assets. * * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this * assumption. */ function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual { if (!_isAuthorized(owner, spender, tokenId)) { if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } else { revert ERC721InsufficientApproval(spender, tokenId); } } } /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that * a uint256 would ever overflow from increments when these increments are bounded to uint128 values. * * WARNING: Increasing an account's balance using this function tends to be paired with an override of the * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership * remain consistent with one another. */ function _increaseBalance(address account, uint128 value) internal virtual { ERC721Storage storage $ = _getERC721Storage(); unchecked { $._balances[account] += value; } } /** * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update. * * The `auth` argument is optional. If the value passed is non 0, then this function will check that * `auth` is either the owner of the token, or approved to operate on the token (by the owner). * * Emits a {Transfer} event. * * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}. */ function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) { ERC721Storage storage $ = _getERC721Storage(); address from = _ownerOf(tokenId); // Perform (optional) operator check if (auth != address(0)) { _checkAuthorized(from, auth, tokenId); } // Execute the update if (from != address(0)) { // Clear approval. No need to re-authorize or emit the Approval event _approve(address(0), tokenId, address(0), false); unchecked { $._balances[from] -= 1; } } if (to != address(0)) { unchecked { $._balances[to] += 1; } } $._owners[tokenId] = to; emit Transfer(from, to, tokenId); return from; } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner != address(0)) { revert ERC721InvalidSender(address(0)); } } /** * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual { _mint(to, tokenId); ERC721Utils.checkOnERC721Received(_msgSender(), address(0), to, tokenId, data); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal { address previousOwner = _update(address(0), tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal { if (to == address(0)) { revert ERC721InvalidReceiver(address(0)); } address previousOwner = _update(to, tokenId, address(0)); if (previousOwner == address(0)) { revert ERC721NonexistentToken(tokenId); } else if (previousOwner != from) { revert ERC721IncorrectOwner(from, tokenId, previousOwner); } } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients * are aware of the ERC-721 standard to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is like {safeTransferFrom} in the sense that it invokes * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `tokenId` token must exist and be owned by `from`. * - `to` cannot be the zero address. * - `from` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId) internal { _safeTransfer(from, to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); ERC721Utils.checkOnERC721Received(_msgSender(), from, to, tokenId, data); } /** * @dev Approve `to` to operate on `tokenId` * * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is * either the owner of the token, or approved to operate on all tokens held by this owner. * * Emits an {Approval} event. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address to, uint256 tokenId, address auth) internal { _approve(to, tokenId, auth, true); } /** * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not * emitted in the context of transfers. */ function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual { ERC721Storage storage $ = _getERC721Storage(); // Avoid reading the owner unless necessary if (emitEvent || auth != address(0)) { address owner = _requireOwned(tokenId); // We do not use _isAuthorized because single-token approvals should not be able to call approve if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) { revert ERC721InvalidApprover(auth); } if (emitEvent) { emit Approval(owner, to, tokenId); } } $._tokenApprovals[tokenId] = to; } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Requirements: * - operator can't be the address zero. * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { ERC721Storage storage $ = _getERC721Storage(); if (operator == address(0)) { revert ERC721InvalidOperator(operator); } $._operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned). * Returns the owner. * * Overrides to ownership logic should be done to {_ownerOf}. */ function _requireOwned(uint256 tokenId) internal view returns (address) { address owner = _ownerOf(tokenId); if (owner == address(0)) { revert ERC721NonexistentToken(tokenId); } return owner; } } pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); } pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20PermitUpgradeable { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. * * CAUTION: See Security Considerations above. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/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.8.0/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"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20Upgradeable { using AddressUpgradeable for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20Upgradeable token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20Upgradeable token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20Upgradeable token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20Upgradeable token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20PermitUpgradeable token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20Upgradeable token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && AddressUpgradeable.isContract(address(token)); } } pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuardUpgradeable is Initializable { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; function __ReentrancyGuard_init() internal onlyInitializing { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal onlyInitializing { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } pragma solidity ^0.8.0; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract PausableUpgradeable is Initializable, ContextUpgradeable { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ function __Pausable_init() internal onlyInitializing { __Pausable_init_unchained(); } function __Pausable_init_unchained() internal onlyInitializing { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } pragma solidity ^0.8.20; /** * @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. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { /// @custom:storage-location erc7201:openzeppelin.storage.Ownable struct OwnableStorage { address _owner; } // keccak256(abi.encode(uint256(keccak256("openzeppelin.storage.Ownable")) - 1)) & ~bytes32(uint256(0xff)) bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300; function _getOwnableStorage() private pure returns (OwnableStorage storage $) { assembly { $.slot := OwnableStorageLocation } } /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ function __Ownable_init(address initialOwner) internal onlyInitializing { __Ownable_init_unchained(initialOwner); } function __Ownable_init_unchained(address initialOwner) internal onlyInitializing { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { OwnableStorage storage $ = _getOwnableStorage(); return $._owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { OwnableStorage storage $ = _getOwnableStorage(); address oldOwner = $._owner; $._owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } pragma solidity 0.8.27; interface IRewardsDistributor { function claim(uint256 tokenId) external returns (uint256); function earned(uint256 tokenId) external view returns (uint256); function checkpoint_token() external; function checkpoint_total_supply() external; function getClaimableRewards(uint256 tokenId) external view returns ( address[] memory tokens, uint256[] memory amounts, uint256[] memory periods ); function getProxyCaller() external view returns (address); } //@author 0xPhant0m based on Andre Cronje's voteEscrow contract for Solidly pragma solidity 0.8.27; contract VeSixUpgradeable is ERC721Upgradeable, ReentrancyGuardUpgradeable, PausableUpgradeable, OwnableUpgradeable { using SafeERC20Upgradeable for IERC20Upgradeable; // Custom errors error InvalidAmount(); error InvalidDuration(); error TransferFailed(); error NotTokenOwner(); error LockNotExpired(); error ZeroReward(); error InvalidToken(); error InvalidArtProxy(); error ZeroAddress(); error DeadlineExpired(); error LockExpired(); error ExceedsMaxLocks(); error InvalidRewardRate(); error SlippageExceeded(); error MaxRewardRateExceeded(); error TokenNotExists(); error LockNotExists(); error MultiplierTooHigh(); error InvalidMultiplier(); error ArithmeticError(); error BatchRecalculationFailed(); struct Point { int128 bias; // Current farming power int128 slope; // Farming power decrease rate uint32 ts; // Timestamp of point uint32 blk; // Block number } struct LockedBalance { int128 amount; uint32 end; } struct LockPosition { uint128 amount; uint128 slope; uint32 endTime; uint32 lastUpdate; } // Constants uint32 private constant MAXTIME = 180 days; uint32 private constant WEEK = 7 * 86400; uint128 private constant MAX_MULTIPLIER = 4e18; uint128 private constant BASE_MULTIPLIER = 1e18; uint128 private constant PRECISION = 1e18; uint8 private constant MAX_LOCKS_PER_USER = 100; uint128 private constant MAX_REWARD_RATE = 1000e18; int128 private constant iMAXTIME = int128(uint128(MAXTIME)); // State variables IERC20Upgradeable private _lockedToken; IRewardsDistributor private _distributor; uint32 private _nextTokenId; mapping(uint256 => LockPosition) public _locks; mapping(address => uint8) public _userLockCount; // Point history state mapping(uint32 => Point) public pointHistory; uint32 public epoch; mapping(uint256 => uint32) public userPointEpoch; mapping(uint256 => mapping(uint32 => Point)) public userPointHistory; mapping(uint32 => int128) public slopeChanges; address public artProxy; uint32 MAX_BLOCK_DRIFT = 15; uint128 private _totalWeightedSupply; // Emergency recovery address private _emergencyRecoveryAddress; bool private _emergencyMode; // Events event Deposit( address indexed user, uint256 indexed tokenId, uint128 amount, uint32 lockTime ); event Withdraw( address indexed user, uint256 indexed tokenId, uint128 amount ); event RewardClaimed( address indexed user, uint256 indexed tokenId, uint128 reward ); event EmergencyModeEnabled(address recoveryAddress); event EmergencyWithdraw( address indexed user, uint256 indexed tokenId, uint128 amount ); event LockExtended( address indexed user, uint256 indexed tokenId, uint32 newEndTime, uint128 newMultiplier ); event AmountIncreased( address indexed user, uint256 indexed tokenId, uint128 additionalAmount, uint128 newTotalAmount, uint128 newMultiplier ); // Event to track point fixes event PointsFixed(uint256 indexed tokenId, uint32 fromEpoch, uint32 toEpoch); // Storage gap for future upgrades uint256[49] private __gap; /// @custom:oz-upgrades-unsafe-allow constructor constructor() { _disableInitializers(); } function initialize( address lockedToken_, address emergencyRecovery, string memory name, string memory symbol ) public initializer { if (lockedToken_ == address(0) || emergencyRecovery == address(0)) revert ZeroAddress(); __ERC721_init(name, symbol); __ReentrancyGuard_init(); __Pausable_init(); __Ownable_init(msg.sender); _pause(); _lockedToken = IERC20Upgradeable(lockedToken_); _emergencyRecoveryAddress = emergencyRecovery; // Initialize point history pointHistory[0].blk = uint32(block.number); pointHistory[0].ts = uint32(block.timestamp); } function setDistributor(address distributor_) external onlyOwner { if (distributor_ == address(0)) revert ZeroAddress(); if (address(_distributor) != address(0)) revert("Distributor already set"); _distributor = IRewardsDistributor(distributor_); } // Modifiers modifier validDeadline(uint256 deadline) { if (block.timestamp > deadline) revert DeadlineExpired(); _; } function _calculateTimeBasedMultiplier(uint32 timeLeft) internal pure returns (uint128) { uint256 timeRatio = (uint256(timeLeft) * PRECISION) / MAXTIME; uint256 multiplierCalc = BASE_MULTIPLIER + (uint256(MAX_MULTIPLIER - BASE_MULTIPLIER) * timeRatio) / PRECISION; uint128 multiplier = uint128(multiplierCalc); return multiplier > MAX_MULTIPLIER ? MAX_MULTIPLIER : multiplier < BASE_MULTIPLIER ? BASE_MULTIPLIER : multiplier; } modifier poke(uint256 tokenId) { LockPosition memory lock = _locks[tokenId]; if (lock.amount > 0 && uint32(block.timestamp) < lock.endTime) { uint32 timeLeft = lock.endTime - uint32(block.timestamp); uint128 newMultiplier = _calculateTimeBasedMultiplier(timeLeft); uint128 newSlope = uint128((uint256(lock.amount) * PRECISION) / MAXTIME); if (lock.slope != newSlope || (block.timestamp - lock.lastUpdate) > 1 days) { uint128 oldMultiplier = lock.slope > 0 ? _calculateTimeBasedMultiplier(timeLeft) : BASE_MULTIPLIER; _updateWeightedSupply(tokenId, lock.amount, newMultiplier); _checkpoint( tokenId, LockedBalance(int128(uint128(lock.amount)), lock.endTime), LockedBalance(int128(uint128(lock.amount)), lock.endTime) ); _locks[tokenId].slope = newSlope; _locks[tokenId].lastUpdate = uint32(block.timestamp); } } _; } function getCurrentMultiplier(uint256 tokenId) public view returns (uint128) { LockPosition memory lock = _locks[tokenId]; if (uint32(block.timestamp) >= lock.endTime) return BASE_MULTIPLIER; // Calculate time-based multiplier - should be proportional to lock duration uint32 timeLeft = lock.endTime - uint32(block.timestamp); // Calculate how much of the maximum time is left (as a ratio) // This ensures amount doesn't affect multiplier, only duration does uint256 timeRatio = (uint256(timeLeft) * PRECISION) / MAXTIME; // Apply linear scaling between BASE_MULTIPLIER (1x) and MAX_MULTIPLIER (4x) uint256 multiplierCalc = BASE_MULTIPLIER + (uint256(MAX_MULTIPLIER - BASE_MULTIPLIER) * timeRatio) / PRECISION; uint128 multiplier = uint128(multiplierCalc); if (multiplier > MAX_MULTIPLIER) return MAX_MULTIPLIER; if (multiplier < BASE_MULTIPLIER) return BASE_MULTIPLIER; return multiplier; } function _checkpoint( uint256 tokenId, LockedBalance memory oldLocked, LockedBalance memory newLocked ) internal { _checkpointGlobal(); if (tokenId != 0) { _checkpointToken( tokenId, oldLocked, newLocked ); } } function _checkpointGlobal() internal { uint32 _epoch = epoch; Point memory lastPoint; // Get the last point if (_epoch > 0) { lastPoint = pointHistory[_epoch - 1]; } else { lastPoint = Point({ bias: 0, slope: 0, ts: uint32(block.timestamp), blk: uint32(block.number) }); } uint32 lastCheckpoint = lastPoint.ts; // Calculate block slope for time interpolation uint128 blockSlope = 0; if (uint32(block.timestamp) > lastCheckpoint) { blockSlope = uint128((PRECISION * (block.number - lastPoint.blk)) / (block.timestamp - lastPoint.ts)); } // Process weekly checkpoints lastPoint = _processWeeklyCheckpoints( lastPoint, lastCheckpoint, blockSlope, _epoch ); epoch = _epoch + 1; pointHistory[_epoch] = lastPoint; // Ensure we're not losing precision in the global state if (lastPoint.bias < 0) { lastPoint.bias = 0; } } function _processWeeklyCheckpoints( Point memory lastPoint, uint32 lastCheckpoint, uint128 blockSlope, uint32 _epoch ) internal returns (Point memory) { uint32 ti = (lastCheckpoint / WEEK) * WEEK; uint32 t = uint32(block.timestamp); for (uint256 i = 0; i < 255;) { ti += WEEK; if (ti > t) { lastPoint.bias -= lastPoint.slope * int128(uint128(t - lastCheckpoint)); lastPoint.ts = t; lastPoint.blk = uint32(block.number); break; } lastPoint.bias -= lastPoint.slope * int128(uint128(ti - lastCheckpoint)); lastPoint.slope += slopeChanges[ti]; lastPoint.ts = ti; lastPoint.blk = uint32(lastPoint.blk + (uint256(blockSlope) * (ti - lastPoint.ts)) / PRECISION); pointHistory[_epoch + 1 + uint32(i)] = lastPoint; lastCheckpoint = ti; unchecked { ++i; } } return lastPoint; } function _checkpointToken( uint256 tokenId, LockedBalance memory oldLocked, LockedBalance memory newLocked ) internal { Point memory uOld; Point memory uNew; _processLockPoint(oldLocked, uOld); _processLockPoint(newLocked, uNew); _processTokenSlopeChanges(oldLocked, newLocked, uOld.slope, uNew.slope); uint32 userEpoch = userPointEpoch[tokenId] + 1; userPointEpoch[tokenId] = userEpoch; uNew.ts = uint32(block.timestamp); uNew.blk = uint32(block.number); userPointHistory[tokenId][userEpoch] = uNew; } function _processLockPoint( LockedBalance memory locked, Point memory point ) internal view returns (bool) { if (locked.end <= uint32(block.timestamp) || locked.amount == 0) return false; uint32 timeLeft = uint32(locked.end - uint32(block.timestamp)); timeLeft = timeLeft > MAXTIME ? MAXTIME : timeLeft; uint128 multiplier = _calculateTimeBasedMultiplier(timeLeft); uint256 scaledAmount = uint256(uint128(locked.amount)); point.bias = int128(uint128((scaledAmount * multiplier) / PRECISION)); point.slope = int128(uint128((scaledAmount * PRECISION) / MAXTIME)); return true; } function _processTokenSlopeChanges( LockedBalance memory oldLocked, LockedBalance memory newLocked, int128 oldSlope, int128 newSlope ) internal { // Handle old lock slope changes if (oldLocked.end > uint32(block.timestamp)) { // Remove the old slope change int128 oldDslope = slopeChanges[oldLocked.end]; oldDslope += oldSlope; // Add because we're removing negative slope // If the new lock ends at the same time, we need to account for its slope too if (newLocked.end == oldLocked.end) { oldDslope -= newSlope; // Subtract new slope that will decrease at this time } slopeChanges[oldLocked.end] = oldDslope; } // Handle new lock slope changes if (newLocked.end > uint32(block.timestamp)) { if (newLocked.end > oldLocked.end) { // Only record new slope changes if the end time is different int128 newDslope = slopeChanges[newLocked.end]; newDslope -= newSlope; // This slope will decrease at the new end time slopeChanges[newLocked.end] = newDslope; } } } function _beforeTokenTransfer( address from, uint256 tokenId ) internal { if (from != address(0) && address(_distributor) != address(0) && _ownerOf(tokenId) != address(0)) { if (_distributor.earned(tokenId) > 0) { _distributor.claim(tokenId); } } } function transferFrom(address from, address to, uint256 tokenId) public virtual override { _beforeTokenTransfer(from, tokenId); super.transferFrom(from,to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual override { _beforeTokenTransfer(from, tokenId); super.safeTransferFrom(from, to, tokenId, data); } function withdraw(uint256 tokenId) external nonReentrant { address owner = _ownerOf(tokenId); if (owner == address(0)) revert TokenNotExists(); if (owner != msg.sender) revert NotTokenOwner(); LockPosition memory lock = _locks[tokenId]; if (lock.amount == 0) revert LockNotExists(); if (uint32(block.timestamp) < lock.endTime) revert LockNotExpired(); uint128 amount = lock.amount; // For expired locks, just subtract balance from weighted supply if (amount > _totalWeightedSupply) { _totalWeightedSupply = 0; } else { _totalWeightedSupply -= amount; } // Clear lock state delete _locks[tokenId]; // Create checkpoint data LockedBalance memory oldLock = LockedBalance({ amount: int128(uint128(amount)), end: lock.endTime }); // Checkpoint after clearing lock _checkpoint(tokenId, oldLock, LockedBalance(0, 0)); // Clean up remaining state delete userPointEpoch[tokenId]; // Transfer tokens before burning NFT _lockedToken.safeTransfer(msg.sender, amount); // Burn NFT last _burn(tokenId); unchecked { _userLockCount[msg.sender]--; } emit Withdraw(msg.sender, tokenId, amount); } function _calculateLockParameters( uint128 amount, uint32 lockDuration, uint128 minMultiplier ) internal pure returns (uint128 slope, uint128 multiplier) { // First divide by MAXTIME to avoid overflow uint256 slopeCalc = uint256(amount) / MAXTIME; // Then multiply by PRECISION slopeCalc = slopeCalc * PRECISION; require(slopeCalc <= type(uint128).max, "Slope overflow"); slope = uint128(slopeCalc); // Calculate multiplier multiplier = _calculateMultiplier(slope, lockDuration); if (multiplier > MAX_MULTIPLIER) revert MultiplierTooHigh(); if (multiplier < minMultiplier) revert SlippageExceeded(); } // Helper function to update weighted supply correctly for the poke operation // This is a differential update based on the change in multiplier function _updateWeightedSupply(uint256 tokenId, uint128 amount, uint128 newMultiplier) internal { // First calculate current weighted amount based on old multiplier // Since we don't store the old multiplier directly, we need to recalculate based on slope LockPosition memory lock = _locks[tokenId]; uint128 oldMultiplier = lock.slope > 0 ? uint128(BASE_MULTIPLIER + (uint256(lock.slope) * (lock.endTime - uint32(block.timestamp)))) : BASE_MULTIPLIER; if (oldMultiplier > MAX_MULTIPLIER) oldMultiplier = MAX_MULTIPLIER; if (oldMultiplier < BASE_MULTIPLIER) oldMultiplier = BASE_MULTIPLIER; // Calculate old and new weighted amounts uint256 oldWeightedAmount = (uint256(amount) * uint256(oldMultiplier)) / PRECISION; uint256 newWeightedAmount = (uint256(amount) * uint256(newMultiplier)) / PRECISION; // Calculate the difference (can be positive or negative) if (newWeightedAmount > oldWeightedAmount) { uint256 increase = newWeightedAmount - oldWeightedAmount; if (increase > type(uint128).max) revert ArithmeticError(); _totalWeightedSupply += uint128(increase); } else if (oldWeightedAmount > newWeightedAmount) { uint256 decrease = oldWeightedAmount - newWeightedAmount; if (decrease > _totalWeightedSupply) { _totalWeightedSupply = 0; // Safeguard against underflow } else { _totalWeightedSupply -= uint128(decrease); } } // If equal, no change needed } function createLock( uint128 amount, uint32 lockDuration, uint256 deadline, uint128 minMultiplier ) external nonReentrant whenNotPaused validDeadline(deadline) returns (uint256 tokenId) { if (amount == 0) revert InvalidAmount(); if (lockDuration == 0 || lockDuration > MAXTIME) revert InvalidDuration(); if (_userLockCount[msg.sender] >= MAX_LOCKS_PER_USER) revert ExceedsMaxLocks(); uint32 unlockTime = uint32(block.timestamp) + lockDuration; (uint128 slope, uint128 multiplier) = _calculateLockParameters(amount, lockDuration, minMultiplier); // Create new lock balance LockedBalance memory newLock = LockedBalance({ amount: int128(uint128(amount)), end: unlockTime }); // Checkpoint before modifying state _checkpoint(0, LockedBalance(0, 0), newLock); // Transfer tokens using SafeERC20 uint256 balanceBefore = _lockedToken.balanceOf(address(this)); _lockedToken.safeTransferFrom(msg.sender, address(this), amount); if (_lockedToken.balanceOf(address(this)) != balanceBefore + amount) revert TransferFailed(); unchecked { tokenId = _nextTokenId++; _userLockCount[msg.sender]++; } _safeMint(msg.sender, tokenId); _locks[tokenId] = LockPosition({ amount: amount, endTime: unlockTime, lastUpdate: uint32(block.timestamp), slope: slope }); _updateWeightedSupply(tokenId, amount, multiplier); emit Deposit(msg.sender, tokenId, amount, unlockTime); } function extendLock( uint256 tokenId, uint32 additionalDuration, uint256 deadline, uint128 minMultiplier ) external nonReentrant whenNotPaused validDeadline(deadline) poke(tokenId) { if (ownerOf(tokenId) != msg.sender) revert NotTokenOwner(); LockPosition memory lock = _locks[tokenId]; if (lock.amount == 0) revert LockNotExists(); // Calculate new end time uint32 newEndTime = lock.endTime + additionalDuration; uint32 totalRemainingDuration = newEndTime - uint32(block.timestamp); if (totalRemainingDuration > MAXTIME) revert InvalidDuration(); // Calculate new slope and multiplier with proper scaling uint128 newSlope = _calculateNewSlope(lock.amount); uint128 multiplier = _calculateMultiplier(newSlope, totalRemainingDuration); if (multiplier < minMultiplier) revert SlippageExceeded(); // Update weighted supply _updateWeightedSupply(tokenId, lock.amount, multiplier); // Checkpoint _checkpoint( tokenId, LockedBalance({ amount: int128(uint128(lock.amount)), end: lock.endTime }), LockedBalance({ amount: int128(uint128(lock.amount)), end: newEndTime }) ); // Update lock state _locks[tokenId] = LockPosition({ amount: lock.amount, endTime: newEndTime, lastUpdate: uint32(block.timestamp), slope: newSlope }); emit LockExtended(msg.sender, tokenId, newEndTime, multiplier); } function _calculateNewSlope(uint128 amount) private pure returns (uint128) { // First divide by MAXTIME to avoid overflow uint256 slopeCalc = uint256(amount) / MAXTIME; // Then multiply by PRECISION slopeCalc = slopeCalc * PRECISION; require(slopeCalc <= type(uint128).max, "Slope too high"); return uint128(slopeCalc); } function _calculateMultiplier(uint128 slope, uint32 duration) internal pure returns (uint128) { // Special case: If slope is 0, return base multiplier to avoid division by zero if (slope == 0) return BASE_MULTIPLIER; // Calculate time ratio first to avoid overflow uint256 timeRatio = (uint256(duration) * PRECISION) / MAXTIME; // Calculate multiplier based on time ratio uint256 multiplier = BASE_MULTIPLIER + ((timeRatio * (MAX_MULTIPLIER - BASE_MULTIPLIER)) / PRECISION); if (multiplier > MAX_MULTIPLIER) return MAX_MULTIPLIER; if (multiplier < BASE_MULTIPLIER) return BASE_MULTIPLIER; return uint128(multiplier); } // Helper function for increasing lock amount logic function _processIncreaseLock( uint256 tokenId, uint128 additionalAmount, uint128 minMultiplier ) private { LockPosition storage lock = _locks[tokenId]; // Get old values and calculate new values uint128 oldAmount = lock.amount; uint128 newAmount = oldAmount + additionalAmount; uint32 endTime = lock.endTime; uint32 remainingDuration = endTime - uint32(block.timestamp); // Calculate new slope and multiplier uint128 newSlope = _calculateNewSlope(newAmount); uint128 multiplier = _calculateMultiplier(newSlope, remainingDuration); // Get current multiplier and use higher value uint128 currentMultiplier = getCurrentMultiplier(tokenId); multiplier = multiplier > currentMultiplier ? multiplier : currentMultiplier; // Slippage check for non-dust amounts if (additionalAmount > PRECISION / 1000 && multiplier < minMultiplier) { revert SlippageExceeded(); } // Checkpoint with correct LockedBalance structs _checkpoint( tokenId, LockedBalance({ amount: int128(uint128(oldAmount)), end: endTime }), LockedBalance({ amount: int128(uint128(newAmount)), end: endTime }) ); // Update lock state lock.amount = newAmount; lock.slope = newSlope; lock.lastUpdate = uint32(block.timestamp); // Update weighted supply _updateWeightedSupply(tokenId, additionalAmount, multiplier); emit AmountIncreased(msg.sender, tokenId, additionalAmount, newAmount, multiplier); } function increaseLockAmount( uint256 tokenId, uint128 additionalAmount, uint256 deadline, uint128 minMultiplier ) external nonReentrant whenNotPaused validDeadline(deadline) poke(tokenId) { // Basic validations if (ownerOf(tokenId) != tx.origin) {if (ownerOf(tokenId) != msg.sender) revert NotTokenOwner();} if (additionalAmount == 0) revert InvalidAmount(); // Check if lock exists and not expired LockPosition storage lock = _locks[tokenId]; if (lock.amount == 0) revert LockNotExists(); if (uint32(block.timestamp) >= lock.endTime) revert LockExpired(); // Transfer tokens uint256 balanceBefore = _lockedToken.balanceOf(address(this)); _lockedToken.safeTransferFrom(msg.sender, address(this), additionalAmount); if (_lockedToken.balanceOf(address(this)) != balanceBefore + additionalAmount) revert TransferFailed(); // Process the lock increase in a separate function _processIncreaseLock(tokenId, additionalAmount, minMultiplier); } function getTotalFarmingPower(uint32 timestamp) public view returns (uint128) { Point memory lastPoint = pointHistory[epoch]; return uint128(_supplyAt(lastPoint, timestamp)); } function _supplyAt(Point memory point, uint32 t) internal view returns (uint128) { uint32 ti = (point.ts / WEEK) * WEEK; for (uint256 i = 0; i < 255;) { ti += WEEK; if (ti > t) { point.bias -= point.slope * int128(uint128(t - point.ts)); break; } point.bias -= point.slope * int128(uint128(ti - point.ts)); point.slope += slopeChanges[ti]; point.ts = ti; unchecked { ++i; } } if (point.bias < 0) point.bias = 0; return uint128(uint256(uint128(point.bias))); } function merge( uint256[] calldata tokenIds, uint256 deadline ) external nonReentrant whenNotPaused validDeadline(deadline) { if (tokenIds.length < 2) revert InvalidAmount(); uint128 totalAmount; uint32 latestEndTime; // First pass: validate ownership and calculate totals for (uint256 i = 0; i < tokenIds.length; i++) { if (ownerOf(tokenIds[i]) != msg.sender) revert NotTokenOwner(); LockPosition memory lock = _locks[tokenIds[i]]; totalAmount += lock.amount; if (lock.endTime > latestEndTime) { latestEndTime = lock.endTime; } } // Create new merged position uint32 remainingDuration = latestEndTime - uint32(block.timestamp); if (remainingDuration > MAXTIME) revert InvalidDuration(); // Use veRAM's approach for slope calculation uint128 newSlope = uint128((uint256(totalAmount) * PRECISION) / MAXTIME); uint256 newTokenId = ++_nextTokenId; _safeMint(msg.sender, newTokenId); // Checkpoint and cleanup old positions for (uint256 i = 0; i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; LockPosition memory oldLock = _locks[tokenId]; LockedBalance memory oldLockedBalance = LockedBalance({ amount: int128(uint128(oldLock.amount)), end: oldLock.endTime }); _checkpoint(tokenId, oldLockedBalance, LockedBalance(0, 0)); delete _locks[tokenId]; _burn(tokenId); } // Create new lock LockedBalance memory newLock = LockedBalance({ amount: int128(uint128(totalAmount)), end: latestEndTime }); _checkpoint(newTokenId, LockedBalance(0, 0), newLock); _locks[newTokenId] = LockPosition({ amount: totalAmount, endTime: latestEndTime, lastUpdate: uint32(block.timestamp), slope: newSlope }); unchecked { _userLockCount[msg.sender] = uint8(_userLockCount[msg.sender] - uint8(tokenIds.length) + 1); } emit Deposit(msg.sender, newTokenId, totalAmount, latestEndTime); } function getFarmingPower(uint256 tokenId, uint32 timestamp) public view returns (uint128) { uint32 userEpoch = userPointEpoch[tokenId]; if (userEpoch == 0) return 0; LockPosition memory lock = _locks[tokenId]; if (lock.amount == 0 || timestamp >= lock.endTime) return 0; for (uint32 i = userEpoch; i >= 1; i--) { Point memory point = userPointHistory[tokenId][i]; if (point.ts <= timestamp) { uint256 timeRatio = (uint256(lock.endTime - timestamp) * PRECISION) / MAXTIME; uint256 multiplier = BASE_MULTIPLIER + ((timeRatio * (MAX_MULTIPLIER - BASE_MULTIPLIER)) / PRECISION); multiplier = multiplier > MAX_MULTIPLIER ? MAX_MULTIPLIER : multiplier < BASE_MULTIPLIER ? BASE_MULTIPLIER : multiplier; uint256 power = (uint256(uint128(point.bias)) * multiplier) / PRECISION; return power > type(uint128).max ? type(uint128).max : uint128(power); } } return 0; } function getExpectedMultiplier(uint128 amount, uint32 duration) public pure returns (uint128) { if (duration == 0 || duration > MAXTIME) revert InvalidDuration(); if (amount == 0) revert InvalidAmount(); // Combine _calculateNewSlope and _calculateMultiplier logic here uint256 slope = (uint256(amount) / MAXTIME) * PRECISION; if (slope == 0) return BASE_MULTIPLIER; uint256 timeRatio = (uint256(duration) * PRECISION) / MAXTIME; uint256 multiplier = BASE_MULTIPLIER + ((timeRatio * (MAX_MULTIPLIER - BASE_MULTIPLIER)) / PRECISION); return multiplier > MAX_MULTIPLIER ? MAX_MULTIPLIER : multiplier < BASE_MULTIPLIER ? BASE_MULTIPLIER : uint128(multiplier); } // Remove redundant pokeLock function since _pokeLockImplementation exists function _pokeLockImplementation(uint256 tokenId) internal poke(tokenId) { // The poke modifier does all the work } // Simplify getMinMultiplier function getMinMultiplier(uint128 amount, uint32 lockDuration) public view returns (uint128) { uint32 minDuration = lockDuration > MAX_BLOCK_DRIFT ? lockDuration - MAX_BLOCK_DRIFT : lockDuration; return getExpectedMultiplier(amount, minDuration); } // Emergency functions function enableEmergencyMode() external onlyOwner { _emergencyMode = true; _pause(); emit EmergencyModeEnabled(_emergencyRecoveryAddress); } function emergencyWithdraw(uint256 tokenId) external nonReentrant { require(_emergencyMode, "Not in emergency mode"); if (ownerOf(tokenId) != msg.sender) revert NotTokenOwner(); LockPosition memory lock = _locks[tokenId]; uint128 amount = lock.amount; delete _locks[tokenId]; _burn(tokenId); unchecked { _userLockCount[msg.sender]--; } _lockedToken.safeTransfer(msg.sender, amount); emit EmergencyWithdraw(msg.sender, tokenId, amount); } function unPause () external onlyOwner { _unpause(); } // View functions function getUserLockCount(address user) external view returns (uint8) { return _userLockCount[user]; } function lockedToken() external view returns (IERC20Upgradeable) { return _lockedToken; } function isEmergencyMode() external view returns (bool) { return _emergencyMode; } function totalWeightedSupply() external view returns (uint128) { return _totalWeightedSupply; } function setArtProxy(address _artProxy) external onlyOwner { if (_artProxy == address(0)) revert ZeroAddress(); artProxy = _artProxy; } function tokensForOwner(address owner) external view returns(uint256[] memory tokenIds) { uint8 count = _userLockCount[owner]; tokenIds = new uint256[](count); if (count == 0) return tokenIds; uint256 currentIndex = 0; for (uint256 id = 0; id < _nextTokenId; id++) { if (_ownerOf(id) == owner) { tokenIds[currentIndex] = id; currentIndex++; if (currentIndex >= count) break; } } return tokenIds; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (_ownerOf(tokenId) == address(0)) revert TokenNotExists(); if (artProxy == address(0)) revert InvalidArtProxy(); // Delegate tokenURI call to art proxy (bool success, bytes memory data) = artProxy.staticcall( abi.encodeWithSignature("tokenURI(uint256)", tokenId) ); require(success, "Art proxy call failed"); return abi.decode(data, (string)); } function createLockFor( address recipient, uint128 amount, uint32 lockDuration, uint256 deadline, uint128 minMultiplier ) external nonReentrant whenNotPaused validDeadline(deadline) returns (uint256 tokenId) { if (amount == 0) revert InvalidAmount(); if (lockDuration == 0 || lockDuration > MAXTIME) revert InvalidDuration(); if (recipient == address(0)) revert ZeroAddress(); if (_userLockCount[recipient] >= MAX_LOCKS_PER_USER) revert ExceedsMaxLocks(); uint32 unlockTime = uint32(block.timestamp) + lockDuration; (uint128 slope, uint128 multiplier) = _calculateLockParameters(amount, lockDuration, minMultiplier); // Create new lock balance LockedBalance memory newLock = LockedBalance({ amount: int128(uint128(amount)), end: unlockTime }); // Checkpoint before modifying state _checkpoint(0, LockedBalance(0, 0), newLock); // Transfer tokens using SafeERC20 uint256 balanceBefore = _lockedToken.balanceOf(address(this)); _lockedToken.safeTransferFrom(msg.sender, address(this), amount); if (_lockedToken.balanceOf(address(this)) != balanceBefore + amount) revert TransferFailed(); unchecked { tokenId = _nextTokenId++; _userLockCount[recipient]++; } _safeMint(recipient, tokenId); _locks[tokenId] = LockPosition({ amount: amount, endTime: unlockTime, lastUpdate: uint32(block.timestamp), slope: slope }); _updateWeightedSupply(tokenId, amount, multiplier); emit Deposit(recipient, tokenId, amount, unlockTime); } function fixHistoricalPoints(uint256[] calldata tokenIds, uint256 batchSize) external { require(batchSize > 0 && batchSize <= 20, "Invalid batch size"); for (uint256 i = 0; i < batchSize && i < tokenIds.length; i++) { uint256 tokenId = tokenIds[i]; uint32 userEpoch = userPointEpoch[tokenId]; if (userEpoch == 0 || userPointHistory[tokenId][1].ts == 0) continue; uint128 currentAmount; uint32 currentEndTime; for (uint32 currentEpoch = 1; currentEpoch <= userEpoch; currentEpoch++) { Point storage point = userPointHistory[tokenId][currentEpoch]; if (point.ts == 0) continue; for (uint32 searchEpoch = currentEpoch; searchEpoch >= 1; searchEpoch--) { Point memory checkPoint = userPointHistory[tokenId][searchEpoch]; if (checkPoint.ts <= point.ts) { currentAmount = uint128(uint256(uint128(checkPoint.bias))); currentEndTime = checkPoint.slope != 0 ? checkPoint.ts + uint32((uint256(uint128(checkPoint.bias)) * PRECISION) / uint256(uint128(checkPoint.slope))) : 0; break; } } uint256 timeLeft = currentEndTime > point.ts ? currentEndTime - point.ts : 0; timeLeft = timeLeft > MAXTIME ? MAXTIME : timeLeft; uint256 timeRatio = (timeLeft * PRECISION) / MAXTIME; uint256 multiplier = BASE_MULTIPLIER + ((timeRatio * (MAX_MULTIPLIER - BASE_MULTIPLIER)) / PRECISION); multiplier = multiplier > MAX_MULTIPLIER ? MAX_MULTIPLIER : multiplier < BASE_MULTIPLIER ? BASE_MULTIPLIER : multiplier; point.slope = int128(uint128((uint256(currentAmount) / MAXTIME) * PRECISION)); point.bias = int128(uint128((uint256(currentAmount) * multiplier) / PRECISION)); if (currentEpoch < userEpoch && userPointHistory[tokenId][currentEpoch + 1].ts > 0) { slopeChanges[userPointHistory[tokenId][currentEpoch + 1].ts] = userPointHistory[tokenId][currentEpoch + 1].slope - point.slope; } } emit PointsFixed(tokenId, 1, userEpoch); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ArithmeticError","type":"error"},{"inputs":[],"name":"BatchRecalculationFailed","type":"error"},{"inputs":[],"name":"DeadlineExpired","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[],"name":"ExceedsMaxLocks","type":"error"},{"inputs":[],"name":"InvalidAmount","type":"error"},{"inputs":[],"name":"InvalidArtProxy","type":"error"},{"inputs":[],"name":"InvalidDuration","type":"error"},{"inputs":[],"name":"InvalidInitialization","type":"error"},{"inputs":[],"name":"InvalidMultiplier","type":"error"},{"inputs":[],"name":"InvalidRewardRate","type":"error"},{"inputs":[],"name":"InvalidToken","type":"error"},{"inputs":[],"name":"LockExpired","type":"error"},{"inputs":[],"name":"LockNotExists","type":"error"},{"inputs":[],"name":"LockNotExpired","type":"error"},{"inputs":[],"name":"MaxRewardRateExceeded","type":"error"},{"inputs":[],"name":"MultiplierTooHigh","type":"error"},{"inputs":[],"name":"NotInitializing","type":"error"},{"inputs":[],"name":"NotTokenOwner","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"SlippageExceeded","type":"error"},{"inputs":[],"name":"TokenNotExists","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"inputs":[],"name":"ZeroReward","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"additionalAmount","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"newTotalAmount","type":"uint128"},{"indexed":false,"internalType":"uint128","name":"newMultiplier","type":"uint128"}],"name":"AmountIncreased","type":"event"},{"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":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"amount","type":"uint128"},{"indexed":false,"internalType":"uint32","name":"lockTime","type":"uint32"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recoveryAddress","type":"address"}],"name":"EmergencyModeEnabled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"amount","type":"uint128"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint64","name":"version","type":"uint64"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint32","name":"newEndTime","type":"uint32"},{"indexed":false,"internalType":"uint128","name":"newMultiplier","type":"uint128"}],"name":"LockExtended","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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint32","name":"fromEpoch","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"toEpoch","type":"uint32"}],"name":"PointsFixed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"reward","type":"uint128"}],"name":"RewardClaimed","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":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"amount","type":"uint128"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_locks","outputs":[{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"uint128","name":"slope","type":"uint128"},{"internalType":"uint32","name":"endTime","type":"uint32"},{"internalType":"uint32","name":"lastUpdate","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_userLockCount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"uint32","name":"lockDuration","type":"uint32"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint128","name":"minMultiplier","type":"uint128"}],"name":"createLock","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"uint32","name":"lockDuration","type":"uint32"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint128","name":"minMultiplier","type":"uint128"}],"name":"createLockFor","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableEmergencyMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"epoch","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint32","name":"additionalDuration","type":"uint32"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint128","name":"minMultiplier","type":"uint128"}],"name":"extendLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256","name":"batchSize","type":"uint256"}],"name":"fixHistoricalPoints","outputs":[],"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":"uint256","name":"tokenId","type":"uint256"}],"name":"getCurrentMultiplier","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"uint32","name":"duration","type":"uint32"}],"name":"getExpectedMultiplier","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint32","name":"timestamp","type":"uint32"}],"name":"getFarmingPower","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"amount","type":"uint128"},{"internalType":"uint32","name":"lockDuration","type":"uint32"}],"name":"getMinMultiplier","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"timestamp","type":"uint32"}],"name":"getTotalFarmingPower","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getUserLockCount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint128","name":"additionalAmount","type":"uint128"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint128","name":"minMultiplier","type":"uint128"}],"name":"increaseLockAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"lockedToken_","type":"address"},{"internalType":"address","name":"emergencyRecovery","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","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":[],"name":"isEmergencyMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockedToken","outputs":[{"internalType":"contract IERC20Upgradeable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"merge","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"","type":"uint32"}],"name":"pointHistory","outputs":[{"internalType":"int128","name":"bias","type":"int128"},{"internalType":"int128","name":"slope","type":"int128"},{"internalType":"uint32","name":"ts","type":"uint32"},{"internalType":"uint32","name":"blk","type":"uint32"}],"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":"address","name":"_artProxy","type":"address"}],"name":"setArtProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"distributor_","type":"address"}],"name":"setDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"","type":"uint32"}],"name":"slopeChanges","outputs":[{"internalType":"int128","name":"","type":"int128"}],"stateMutability":"view","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":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensForOwner","outputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalWeightedSupply","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"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":[],"name":"unPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"userPointEpoch","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"userPointHistory","outputs":[{"internalType":"int128","name":"bias","type":"int128"},{"internalType":"int128","name":"slope","type":"int128"},{"internalType":"uint32","name":"ts","type":"uint32"},{"internalType":"uint32","name":"blk","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052606d805463ffffffff60a01b1916600f60a01b1790553480156024575f5ffd5b50602b602f565b60df565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000900460ff1615607e5760405163f92ee8a960e01b815260040160405180910390fd5b80546001600160401b039081161460dc5780546001600160401b0319166001600160401b0390811782556040519081527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b50565b615d07806100ec5f395ff3fe608060405234801561000f575f5ffd5b5060043610610297575f3560e01c806375619ab511610161578063bcc00225116100ca578063df0c78ef11610084578063df0c78ef1461078b578063df2151571461079e578063e58f5947146107b1578063e985e9c5146107d6578063f2fde38b146107e9578063f7b188a5146107fc575f5ffd5b8063bcc0022514610715578063beb8310914610737578063c5b1c7d01461074a578063c87b56dd14610752578063d89dd26914610765578063ddacc94a14610778575f5ffd5b806395d89b411161011b57806395d89b411461068457806397612d4b1461068c5780639b7d02ad1461069f578063a22cb465146106dc578063b88d4fde146106ef578063bbe33ea514610702575f5ffd5b806375619ab51461053f57806389f839c6146105525780638b25e8c1146105d55780638da5cb5b146105e85780638ff4249014610618578063900cf0cf1461065f575f5ffd5b8063268dc199116102035780635594a045116101bd5780635594a045146104be578063586c2600146104d15780635c975abb146105065780636352211e1461051157806370a0823114610524578063715018a614610537575f5ffd5b8063268dc1991461042c5780632a90752d146104515780632e1a7d4d146104725780632e720f7d1461048557806342842e0e146104985780635312ea8e146104ab575f5ffd5b80631d237a49116102545780631d237a49146103495780631f5ab022146103ce5780632016a0d2146103e157806320a194b8146103f457806323b872dd1461040657806325f521e414610419575f5ffd5b806301ffc9a71461029b57806306fdde03146102c3578063081812fc146102d8578063095ea7b3146103035780630f45cc811461031857806313de148b14610329575b5f5ffd5b6102ae6102a93660046152c5565b610804565b60405190151581526020015b60405180910390f35b6102cb610855565b6040516102ba919061530e565b6102eb6102e6366004615320565b6108f6565b6040516001600160a01b0390911681526020016102ba565b610316610311366004615352565b61090a565b005b6064546001600160a01b03166102eb565b61033c61033736600461537a565b610919565b6040516102ba9190615393565b61039b6103573660046153e8565b606b60209081525f928352604080842090915290825290208054600190910154600f82810b92600160801b9004900b9063ffffffff80821691600160201b90041684565b60408051600f95860b81529390940b602084015263ffffffff9182169383019390935290911660608201526080016102ba565b6103166103dc366004615428565b610a0e565b6103166103ef366004615530565b610f40565b606f54600160a01b900460ff166102ae565b6103166104143660046155b5565b61113b565b6103166104273660046155ef565b611155565b606e546001600160801b03165b6040516001600160801b0390911681526020016102ba565b61046461045f366004615664565b61166f565b6040519081526020016102ba565b610316610480366004615320565b611a65565b61031661049336600461537a565b611cf9565b6103166104a63660046155b5565b611d4a565b6103166104b9366004615320565b611d64565b606d546102eb906001600160a01b031681565b6104f36104df3660046156be565b606c6020525f9081526040902054600f0b81565b604051600f9190910b81526020016102ba565b60325460ff166102ae565b6102eb61051f366004615320565b611ef8565b61046461053236600461537a565b611f02565b610316611f5a565b61031661054d36600461537a565b611f6d565b61059e610560366004615320565b60666020525f9081526040902080546001909101546001600160801b0380831692600160801b9004169063ffffffff80821691600160201b90041684565b604080516001600160801b03958616815294909316602085015263ffffffff918216928401929092521660608201526080016102ba565b6104396105e3366004615320565b612017565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166102eb565b61039b6106263660046156be565b60686020525f908152604090208054600190910154600f82810b92600160801b9004900b9063ffffffff80821691600160201b90041684565b60695461066f9063ffffffff1681565b60405163ffffffff90911681526020016102ba565b6102cb612175565b61043961069a3660046156be565b6121b3565b6106ca6106ad36600461537a565b6001600160a01b03165f9081526067602052604090205460ff1690565b60405160ff90911681526020016102ba565b6103166106ea3660046156e4565b61221f565b6103166106fd366004615719565b61222a565b6103166107103660046155ef565b612240565b6106ca61072336600461537a565b60676020525f908152604090205460ff1681565b610316610745366004615784565b61268e565b610316612ace565b6102cb610760366004615320565b612b34565b6104396107733660046157a7565b612c87565b6104396107863660046153e8565b612de9565b6104396107993660046157a7565b61304c565b6104646107ac3660046157cf565b613096565b61066f6107bf366004615320565b606a6020525f908152604090205463ffffffff1681565b6102ae6107e43660046157f9565b613441565b6103166107f736600461537a565b61348d565b6103166134c7565b5f6001600160e01b031982166380ac58cd60e01b148061083457506001600160e01b03198216635b5e139f60e01b145b8061084f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b5f516020615cb25f395f51905f52805460609190819061087490615821565b80601f01602080910402602001604051908101604052809291908181526020018280546108a090615821565b80156108eb5780601f106108c2576101008083540402835291602001916108eb565b820191905f5260205f20905b8154815290600101906020018083116108ce57829003601f168201915b505050505091505090565b5f610900826134d7565b5061084f8261350e565b610915828233613547565b5050565b6001600160a01b0381165f9081526067602052604090205460609060ff168067ffffffffffffffff8111156109505761095061546b565b604051908082528060200260200182016040528015610979578160200160208202803683370190505b5091508060ff165f0361098c5750919050565b5f805b606554600160a01b900463ffffffff16811015610a0657846001600160a01b03166109b982613554565b6001600160a01b0316036109fe57808483815181106109da576109da615859565b6020908102919091010152816109ef81615881565b9250508260ff16821015610a06575b60010161098f565b505050919050565b610a1661358d565b610a1e6135e4565b8180421115610a4057604051631ab7da6b60e01b815260040160405180910390fd5b5f85815260666020908152604091829020825160808101845281546001600160801b03808216808452600160801b909204169382019390935260019091015463ffffffff80821694830194909452600160201b9004909216606083015286919015801590610abd5750806040015163ffffffff164263ffffffff16105b15610c30575f428260400151610ad39190615899565b90505f610adf8261362a565b83519091505f9062ed4e0090610b0790670de0b6b3a7640000906001600160801b03166158b5565b610b1191906158e0565b9050806001600160801b031684602001516001600160801b0316141580610b4f575062015180846060015163ffffffff1642610b4d91906158f3565b115b15610c2c575f5f85602001516001600160801b031611610b7757670de0b6b3a7640000610b80565b610b808461362a565b9050610b9086865f0151856136f9565b610be3866040518060400160405280885f0151600f0b8152602001886040015163ffffffff168152506040518060400160405280895f0151600f0b8152602001896040015163ffffffff16815250613958565b505f85815260666020526040902080546001600160801b03808416600160801b029116178155600101805463ffffffff4216600160201b0267ffffffff00000000199091161790555b5050505b33610c3a88611ef8565b6001600160a01b031614610c61576040516359dc379f60e01b815260040160405180910390fd5b5f878152606660209081526040808320815160808101835281546001600160801b03808216808452600160801b909204169482019490945260019091015463ffffffff80821693830193909352600160201b900490911660608201529103610cdc57604051632254ea3d60e11b815260040160405180910390fd5b5f878260400151610ced9190615906565b90505f610cfa4283615899565b905062ed4e0063ffffffff82161115610d2657604051637616640160e01b815260040160405180910390fd5b5f610d33845f0151613971565b90505f610d4082846139e7565b9050886001600160801b0316816001600160801b03161015610d7557604051638199f5f360e01b815260040160405180910390fd5b610d838c865f0151836136f9565b610dd28c6040518060400160405280885f0151600f0b8152602001886040015163ffffffff168152506040518060400160405280895f0151600f0b81526020018863ffffffff16815250613958565b6040518060800160405280865f01516001600160801b03168152602001836001600160801b031681526020018563ffffffff1681526020014263ffffffff1681525060665f8e81526020019081526020015f205f820151815f015f6101000a8154816001600160801b0302191690836001600160801b031602179055506020820151815f0160106101000a8154816001600160801b0302191690836001600160801b031602179055506040820151816001015f6101000a81548163ffffffff021916908363ffffffff16021790555060608201518160010160046101000a81548163ffffffff021916908363ffffffff1602179055509050508b336001600160a01b03167f3032be442129e161b4ae1cdee94871a69de2c16ee2007f31fc209a715673455c8684604051610f2192919063ffffffff9290921682526001600160801b0316602082015260400190565b60405180910390a35050505050505050610f3a60015f55565b50505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f81158015610f855750825b90505f8267ffffffffffffffff166001148015610fa15750303b155b905081158015610faf575080155b15610fcd5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610ff757845460ff60401b1916600160401b1785555b6001600160a01b038916158061101457506001600160a01b038816155b156110325760405163d92e233d60e01b815260040160405180910390fd5b61103c8787613ac7565b611044613ad9565b61104c613ae9565b61105533613af9565b61105d613b0a565b606480546001600160a01b03808c166001600160a01b031992831617909255606f8054928b16929091169190911790555f805260686020527fad6f8124f6081c2622ab3a16acd47af73d52fe87b755c3f897263c58ba3fdbd880544263ffffffff90811663ffffffff194392909216600160201b029190911667ffffffffffffffff1990921691909117179055831561113057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050505050565b6111458382613b5f565b611150838383613c80565b505050565b5f81118015611165575060148111155b6111ab5760405162461bcd60e51b8152602060048201526012602482015271496e76616c69642062617463682073697a6560701b60448201526064015b60405180910390fd5b5f5b81811080156111bb57508281105b15610f3a575f8484838181106111d3576111d3615859565b602090810292909201355f818152606a9093526040909220549192505063ffffffff1680158061122257505f828152606b6020908152604080832060018085529252909120015463ffffffff16155b1561122e57505061165d565b5f8060015b8363ffffffff168163ffffffff1611611616575f858152606b6020908152604080832063ffffffff80861685529252822060018101549092911690036112795750611604565b815b60018163ffffffff1610611375575f878152606b6020908152604080832063ffffffff80861685529083529281902081516080810183528154600f81810b8352600160801b909104900b93810193909352600190810154808516928401839052600160201b9004841660608401528501549192919091161061136257805f01516001600160801b031695508060200151600f0b5f0361131a575f61135a565b602081015181516001600160801b039182169161134191670de0b6b3a764000091166158b5565b61134b91906158e0565b816040015161135a9190615906565b945050611375565b508061136d81615922565b91505061127b565b5060018101545f9063ffffffff90811690851611611393575f6113a8565b60018201546113a89063ffffffff1685615899565b63ffffffff16905062ed4e0081116113c057806113c5565b62ed4e005b90505f62ed4e006113de670de0b6b3a7640000846158b5565b6113e891906158e0565b90505f670de0b6b3a764000061140681673782dace9d900000615940565b611419906001600160801b0316846158b5565b61142391906158e0565b61143590670de0b6b3a764000061595f565b9050673782dace9d900000811161146957670de0b6b3a7640000811061145b5780611473565b670de0b6b3a7640000611473565b673782dace9d9000005b9050670de0b6b3a764000061149462ed4e006001600160801b038a166158e0565b61149e91906158b5565b84546001600160801b03918216600160801b02908216178555670de0b6b3a7640000906114ce9083908a166158b5565b6114d891906158e0565b84546001600160801b0319166001600160801b039190911617845563ffffffff88811690861610801561153d57505f898152606b602052604081208161151f886001615906565b63ffffffff908116825260208201929092526040015f206001015416115b156115ff5783545f8a8152606b60205260408120600160801b909204600f0b9190611569886001615906565b63ffffffff16815260208101919091526040015f20546115939190600160801b9004600f0b615972565b5f8a8152606b60205260408120606c9190816115b08a6001615906565b63ffffffff908116825260208083019390935260409182015f908120600101549091168452918301939093529101902080546001600160801b0319166001600160801b03929092169190911790555b505050505b8061160e8161599f565b915050611233565b50604080516001815263ffffffff8516602082015285917fa2efa4b409af0ce90900ca0b356a54ee031dbe16b16c405cd2cde08f592b937d910160405180910390a2505050505b8061166781615881565b9150506111ad565b5f61167861358d565b6116806135e4565b82804211156116a257604051631ab7da6b60e01b815260040160405180910390fd5b856001600160801b03165f036116cb5760405163162908e360e11b815260040160405180910390fd5b63ffffffff851615806116e6575062ed4e0063ffffffff8616115b1561170457604051637616640160e01b815260040160405180910390fd5b6001600160a01b03871661172b5760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b0387165f90815260676020526040902054606460ff909116106117685760405163133cbc4f60e01b815260040160405180910390fd5b5f6117738642615906565b90505f5f611782898988613d03565b915091505f60405180604001604052808b600f0b81526020018563ffffffff1681525090506117cf5f60405180604001604052805f600f0b81526020015f63ffffffff1681525083613958565b6064546040516370a0823160e01b81523060048201525f916001600160a01b0316906370a0823190602401602060405180830381865afa158015611815573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061183991906159c3565b60645490915061185d906001600160a01b031633306001600160801b038f16613df7565b6118706001600160801b038c168261595f565b6064546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156118b6573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118da91906159c3565b146118f8576040516312171d8360e31b815260040160405180910390fd5b60658054600163ffffffff600160a01b80840482168381019092160263ffffffff60a01b19909316929092179092556001600160a01b038e165f908152606760205260409020805460ff80821690940190931660ff199093169290921790915596506119648c88613e62565b604080516080810182526001600160801b03808e168252868116602080840191825263ffffffff808b16858701908152428216606087019081525f8f8152606690945296909220945192518416600160801b0292909316919091178355516001909201805493518216600160201b0267ffffffffffffffff1990941692909116919091179190911790556119f9878c856136f9565b604080516001600160801b038d16815263ffffffff8716602082015288916001600160a01b038f16917fdbd81f1b10e6f1395ede56cabac59119f8be0cb5ca3ef0ca44f8597828934954910160405180910390a3505050505050611a5c60015f55565b95945050505050565b611a6d61358d565b5f611a7782613554565b90506001600160a01b038116611a9f57604051626f708760e21b815260040160405180910390fd5b6001600160a01b0381163314611ac8576040516359dc379f60e01b815260040160405180910390fd5b5f828152606660209081526040808320815160808101835281546001600160801b03808216808452600160801b909204169482019490945260019091015463ffffffff80821693830193909352600160201b900490911660608201529103611b4357604051632254ea3d60e11b815260040160405180910390fd5b806040015163ffffffff164263ffffffff161015611b745760405163342ad40160e11b815260040160405180910390fd5b8051606e546001600160801b039081169082161115611ba257606e80546001600160801b0319169055611be4565b606e80548291905f90611bbf9084906001600160801b0316615940565b92506101000a8154816001600160801b0302191690836001600160801b031602179055505b5f848152606660209081526040808320838155600101805467ffffffffffffffff1916905580518082018252600f85900b81528582015163ffffffff168184015281518083019092528382529181019290925290611c459086908390613958565b5f858152606a60205260409020805463ffffffff19169055606454611c7d906001600160a01b0316336001600160801b038516613e7b565b611c8685613eab565b335f81815260676020908152604091829020805460ff19811660ff9182165f190190911617905590516001600160801b03851681528792917f8903a5b5d08a841e7f68438387f1da20c84dea756379ed37e633ff3854b99b84910160405180910390a350505050611cf660015f55565b50565b611d01613ee3565b6001600160a01b038116611d285760405163d92e233d60e01b815260040160405180910390fd5b606d80546001600160a01b0319166001600160a01b0392909216919091179055565b61115083838360405180602001604052805f81525061222a565b611d6c61358d565b606f54600160a01b900460ff16611dbd5760405162461bcd60e51b81526020600482015260156024820152744e6f7420696e20656d657267656e6379206d6f646560581b60448201526064016111a2565b33611dc782611ef8565b6001600160a01b031614611dee576040516359dc379f60e01b815260040160405180910390fd5b5f818152606660208181526040808420815160808101835281546001600160801b03808216808452600160801b909204168286015260018301805463ffffffff80821696850196909652600160201b810490951660608401528888529590945294905567ffffffffffffffff1916909155611e6883613eab565b335f818152606760205260409020805460ff19811660ff9182165f1901909116179055606454611ead916001600160a01b03909116906001600160801b038416613e7b565b6040516001600160801b0382168152839033907f4f27eb511b2a4633cfb633ac1c4a99b4c298ca6488b29ec26f3504a5927f67289060200160405180910390a35050611cf660015f55565b5f61084f826134d7565b5f5f516020615cb25f395f51905f526001600160a01b038316611f3a576040516322718ad960e21b81525f60048201526024016111a2565b6001600160a01b039092165f908152600390920160205250604090205490565b611f62613ee3565b611f6b5f613f3e565b565b611f75613ee3565b6001600160a01b038116611f9c5760405163d92e233d60e01b815260040160405180910390fd5b6065546001600160a01b031615611ff55760405162461bcd60e51b815260206004820152601760248201527f4469737472696275746f7220616c72656164792073657400000000000000000060448201526064016111a2565b606580546001600160a01b0319166001600160a01b0392909216919091179055565b5f818152606660209081526040808320815160808101835281546001600160801b038082168352600160801b90910416938101939093526001015463ffffffff808216928401839052600160201b909104811660608401524216106120865750670de0b6b3a764000092915050565b5f4282604001516120979190615899565b90505f62ed4e006120b6670de0b6b3a764000063ffffffff85166158b5565b6120c091906158e0565b90505f670de0b6b3a7640000826120df82673782dace9d900000615940565b6001600160801b03166120f291906158b5565b6120fc91906158e0565b61210e90670de0b6b3a764000061595f565b905080673782dace9d9000006001600160801b038216111561213e5750673782dace9d9000009695505050505050565b670de0b6b3a76400006001600160801b038216101561216b5750670de0b6b3a76400009695505050505050565b9695505050505050565b7f80bb2b638cc20bc4d0a60d66940f3ab4a00c1d7b313497ca82fb0b4ab007930180546060915f516020615cb25f395f51905f529161087490615821565b60695463ffffffff9081165f90815260686020908152604080832081516080810183528154600f81810b8352600160801b909104900b938101939093526001015480851691830191909152600160201b90049092166060830152906122188184613fae565b9392505050565b6109153383836140e4565b6122348483613b5f565b610f3a84848484614193565b61224861358d565b6122506135e4565b808042111561227257604051631ab7da6b60e01b815260040160405180910390fd5b60028310156122945760405163162908e360e11b815260040160405180910390fd5b5f80805b8581101561239d57336122c28888848181106122b6576122b6615859565b90506020020135611ef8565b6001600160a01b0316146122e9576040516359dc379f60e01b815260040160405180910390fd5b5f60665f8989858181106122ff576122ff615859565b602090810292909201358352508181019290925260409081015f20815160808101835281546001600160801b03808216808452600160801b909204169482019490945260019091015463ffffffff80821693830193909352600160201b90049091166060820152915061237290856159da565b93508263ffffffff16816040015163ffffffff16111561239457806040015192505b50600101612298565b505f6123a94283615899565b905062ed4e0063ffffffff821611156123d557604051637616640160e01b815260040160405180910390fd5b5f62ed4e006123f5670de0b6b3a76400006001600160801b0387166158b5565b6123ff91906158e0565b90505f6065601481819054906101000a900463ffffffff166124209061599f565b91906101000a81548163ffffffff021916908363ffffffff160217905563ffffffff16905061244f3382613e62565b5f5b8881101561253a575f8a8a8381811061246c5761246c615859565b602090810292909201355f818152606684526040808220815160808101835281546001600160801b038082168352600160801b909104168188015260019091015463ffffffff808216838501908152600160201b90920481166060840152835180850185528351600f0b8152915116818801528251808401909352838352958201929092529194509291506125049084908390613958565b5f838152606660205260408120908155600101805467ffffffffffffffff1916905561252f83613eab565b505050600101612451565b50604080518082018252600f87900b815263ffffffff861660208083019190915282518084019093525f808452908301529061257890839083613958565b604080516080810182526001600160801b038089168252858116602080840191825263ffffffff808b16858701908152428216606087019081525f8a815260668552888120975195518716600160801b0295909616949094178655516001958601805494518316600160201b0267ffffffffffffffff1990951691909216179290921790915533808352606790915290839020805460ff8082168f900390940190931660ff199093169290921790915590518391907fdbd81f1b10e6f1395ede56cabac59119f8be0cb5ca3ef0ca44f859782893495490612676908a908a906001600160801b0392909216825263ffffffff16602082015260400190565b60405180910390a35050505050505061115060015f55565b61269661358d565b61269e6135e4565b81804211156126c057604051631ab7da6b60e01b815260040160405180910390fd5b5f85815260666020908152604091829020825160808101845281546001600160801b03808216808452600160801b909204169382019390935260019091015463ffffffff80821694830194909452600160201b900490921660608301528691901580159061273d5750806040015163ffffffff164263ffffffff16105b156128b0575f4282604001516127539190615899565b90505f61275f8261362a565b83519091505f9062ed4e009061278790670de0b6b3a7640000906001600160801b03166158b5565b61279191906158e0565b9050806001600160801b031684602001516001600160801b03161415806127cf575062015180846060015163ffffffff16426127cd91906158f3565b115b156128ac575f5f85602001516001600160801b0316116127f757670de0b6b3a7640000612800565b6128008461362a565b905061281086865f0151856136f9565b612863866040518060400160405280885f0151600f0b8152602001886040015163ffffffff168152506040518060400160405280895f0151600f0b8152602001896040015163ffffffff16815250613958565b505f85815260666020526040902080546001600160801b03808416600160801b029116178155600101805463ffffffff4216600160201b0267ffffffff00000000199091161790555b5050505b326128ba88611ef8565b6001600160a01b0316146128f957336128d288611ef8565b6001600160a01b0316146128f9576040516359dc379f60e01b815260040160405180910390fd5b856001600160801b03165f036129225760405163162908e360e11b815260040160405180910390fd5b5f878152606660205260408120805490916001600160801b03909116900361295d57604051632254ea3d60e11b815260040160405180910390fd5b600181015463ffffffff908116429091161061298c576040516307b7d7dd60e51b815260040160405180910390fd5b6064546040516370a0823160e01b81523060048201525f916001600160a01b0316906370a0823190602401602060405180830381865afa1580156129d2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906129f691906159c3565b606454909150612a1a906001600160a01b031633306001600160801b038c16613df7565b612a2d6001600160801b0389168261595f565b6064546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612a73573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a9791906159c3565b14612ab5576040516312171d8360e31b815260040160405180910390fd5b612ac08989886141ab565b5050505050610f3a60015f55565b612ad6613ee3565b606f805460ff60a01b1916600160a01b179055612af1613b0a565b606f546040516001600160a01b0390911681527fc0a1c7e9f05b4d536e1ff8606bae9b847cdb43ef4a9b2d7a503a88cee08dccdb906020015b60405180910390a1565b60605f612b4083613554565b6001600160a01b031603612b6657604051626f708760e21b815260040160405180910390fd5b606d546001600160a01b0316612b8f576040516338a69c8d60e21b815260040160405180910390fd5b606d54604051602481018490525f9182916001600160a01b039091169060440160408051601f198184030181529181526020820180516001600160e01b031663c87b56dd60e01b17905251612be491906159f9565b5f60405180830381855afa9150503d805f8114612c1c576040519150601f19603f3d011682016040523d82523d5f602084013e612c21565b606091505b509150915081612c6b5760405162461bcd60e51b8152602060048201526015602482015274105c9d081c1c9bde1e4818d85b1b0819985a5b1959605a1b60448201526064016111a2565b80806020019051810190612c7f9190615a0f565b949350505050565b5f63ffffffff82161580612ca3575062ed4e0063ffffffff8316115b15612cc157604051637616640160e01b815260040160405180910390fd5b826001600160801b03165f03612cea5760405163162908e360e11b815260040160405180910390fd5b5f670de0b6b3a7640000612d0a62ed4e006001600160801b0387166158e0565b612d1491906158b5565b9050805f03612d2e57670de0b6b3a764000091505061084f565b5f62ed4e00612d4b670de0b6b3a764000063ffffffff87166158b5565b612d5591906158e0565b90505f670de0b6b3a7640000612d7381673782dace9d900000615940565b612d86906001600160801b0316846158b5565b612d9091906158e0565b612da290670de0b6b3a764000061595f565b9050673782dace9d9000008111612dd657670de0b6b3a76400008110612dc8578061216b565b670de0b6b3a764000061216b565b673782dace9d9000009695505050505050565b5f828152606a602052604081205463ffffffff16808203612e0d575f91505061084f565b5f84815260666020908152604091829020825160808101845281546001600160801b03808216808452600160801b909204169382019390935260019091015463ffffffff80821694830194909452600160201b900490921660608301521580612e865750806040015163ffffffff168463ffffffff1610155b15612e95575f9250505061084f565b815b60018163ffffffff1610613041575f868152606b6020908152604080832063ffffffff80861685529083529281902081516080810183528154600f81810b8352600160801b909104900b9381019390935260010154808416918301829052600160201b900483166060830152909187161061302e5760408301515f9062ed4e0090670de0b6b3a764000090612f2d908a90615899565b63ffffffff16612f3d91906158b5565b612f4791906158e0565b90505f670de0b6b3a7640000612f6581673782dace9d900000615940565b612f78906001600160801b0316846158b5565b612f8291906158e0565b612f9490670de0b6b3a764000061595f565b9050673782dace9d9000008111612fc857670de0b6b3a76400008110612fba5780612fd2565b670de0b6b3a7640000612fd2565b673782dace9d9000005b83519091505f90670de0b6b3a764000090612ff79084906001600160801b03166158b5565b61300191906158e0565b90506001600160801b0381116130175780613020565b6001600160801b035b97505050505050505061084f565b508061303981615922565b915050612e97565b505f95945050505050565b606d545f90819063ffffffff600160a01b909104811690841611613070578261308a565b606d5461308a90600160a01b900463ffffffff1684615899565b9050612c7f8482612c87565b5f61309f61358d565b6130a76135e4565b82804211156130c957604051631ab7da6b60e01b815260040160405180910390fd5b856001600160801b03165f036130f25760405163162908e360e11b815260040160405180910390fd5b63ffffffff8516158061310d575062ed4e0063ffffffff8616115b1561312b57604051637616640160e01b815260040160405180910390fd5b335f90815260676020526040902054606460ff9091161061315f5760405163133cbc4f60e01b815260040160405180910390fd5b5f61316a8642615906565b90505f5f613179898988613d03565b915091505f60405180604001604052808b600f0b81526020018563ffffffff1681525090506131c65f60405180604001604052805f600f0b81526020015f63ffffffff1681525083613958565b6064546040516370a0823160e01b81523060048201525f916001600160a01b0316906370a0823190602401602060405180830381865afa15801561320c573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061323091906159c3565b606454909150613254906001600160a01b031633306001600160801b038f16613df7565b6132676001600160801b038c168261595f565b6064546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156132ad573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906132d191906159c3565b146132ef576040516312171d8360e31b815260040160405180910390fd5b60658054600163ffffffff600160a01b80840482168381019092160263ffffffff60a01b1990931692909217909255335f818152606760205260409020805460ff80821690950190941660ff199094169390931790925597506133529088613e62565b604080516080810182526001600160801b03808e168252868116602080840191825263ffffffff808b16858701908152428216606087019081525f8f8152606690945296909220945192518416600160801b0292909316919091178355516001909201805493518216600160201b0267ffffffffffffffff1990941692909116919091179190911790556133e7878c856136f9565b604080516001600160801b038d16815263ffffffff87166020820152889133917fdbd81f1b10e6f1395ede56cabac59119f8be0cb5ca3ef0ca44f8597828934954910160405180910390a3505050505050612c7f60015f55565b6001600160a01b039182165f9081527f80bb2b638cc20bc4d0a60d66940f3ab4a00c1d7b313497ca82fb0b4ab00793056020908152604080832093909416825291909152205460ff1690565b613495613ee3565b6001600160a01b0381166134be57604051631e4fbdf760e01b81525f60048201526024016111a2565b611cf681613f3e565b6134cf613ee3565b611f6b61437e565b5f5f6134e283613554565b90506001600160a01b03811661084f57604051637e27328960e01b8152600481018490526024016111a2565b5f9081527f80bb2b638cc20bc4d0a60d66940f3ab4a00c1d7b313497ca82fb0b4ab007930460205260409020546001600160a01b031690565b61115083838360016143b7565b5f9081527f80bb2b638cc20bc4d0a60d66940f3ab4a00c1d7b313497ca82fb0b4ab007930260205260409020546001600160a01b031690565b60025f54036135de5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016111a2565b60025f55565b60325460ff1615611f6b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016111a2565b5f8062ed4e00613648670de0b6b3a764000063ffffffff86166158b5565b61365291906158e0565b90505f670de0b6b3a76400008261367182673782dace9d900000615940565b6001600160801b031661368491906158b5565b61368e91906158e0565b6136a090670de0b6b3a764000061595f565b905080673782dace9d9000006001600160801b038216116136e757670de0b6b3a76400006001600160801b038216106136d95780611a5c565b670de0b6b3a7640000611a5c565b673782dace9d90000095945050505050565b5f838152606660209081526040808320815160808101835281546001600160801b038082168352600160801b9091041693810184905260019091015463ffffffff80821693830193909352600160201b90049091166060820152919061376757670de0b6b3a76400006137a7565b4282604001516137779190615899565b63ffffffff1682602001516001600160801b031661379591906158b5565b6137a790670de0b6b3a764000061595f565b9050673782dace9d9000006001600160801b03821611156137cd5750673782dace9d9000005b670de0b6b3a76400006001600160801b03821610156137f15750670de0b6b3a76400005b5f670de0b6b3a76400006138116001600160801b038481169088166158b5565b61381b91906158e0565b90505f670de0b6b3a764000061383d6001600160801b038781169089166158b5565b61384791906158e0565b9050818111156138cd575f61385c83836158f3565b90506001600160801b0381111561388657604051630fc12e3560e11b815260040160405180910390fd5b606e80548291905f906138a39084906001600160801b03166159da565b92506101000a8154816001600160801b0302191690836001600160801b031602179055505061394f565b8082111561394f575f6138e082846158f3565b606e549091506001600160801b031681111561390b57606e80546001600160801b031916905561394d565b606e80548291905f906139289084906001600160801b0316615940565b92506101000a8154816001600160801b0302191690836001600160801b031602179055505b505b50505050505050565b6139606144ca565b8215611150576111508383836146ad565b5f8061398962ed4e006001600160801b0385166158e0565b905061399d670de0b6b3a7640000826158b5565b90506001600160801b0381111561084f5760405162461bcd60e51b815260206004820152600e60248201526d0a6d8dee0ca40e8dede40d0d2ced60931b60448201526064016111a2565b5f826001600160801b03165f03613a075750670de0b6b3a764000061084f565b5f62ed4e00613a24670de0b6b3a764000063ffffffff86166158b5565b613a2e91906158e0565b90505f670de0b6b3a7640000613a4c81673782dace9d900000615940565b613a5f906001600160801b0316846158b5565b613a6991906158e0565b613a7b90670de0b6b3a764000061595f565b9050673782dace9d900000811115613a9f57673782dace9d9000009250505061084f565b670de0b6b3a7640000811015612c7f57670de0b6b3a76400009250505061084f565b60015f55565b613acf6147dd565b6109158282614826565b613ae16147dd565b611f6b614856565b613af16147dd565b611f6b61485e565b613b016147dd565b611cf681614872565b613b126135e4565b6032805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613b473390565b6040516001600160a01b039091168152602001612b2a565b6001600160a01b03821615801590613b8157506065546001600160a01b031615155b8015613b9e57505f613b9282613554565b6001600160a01b031614155b156109155760655460405163135bb63160e21b8152600481018390525f916001600160a01b031690634d6ed8c490602401602060405180830381865afa158015613bea573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613c0e91906159c3565b11156109155760655460405163379607f560e01b8152600481018390526001600160a01b039091169063379607f5906024016020604051808303815f875af1158015613c5c573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061115091906159c3565b6001600160a01b038216613ca957604051633250574960e11b81525f60048201526024016111a2565b5f613cb583833361487a565b9050836001600160a01b0316816001600160a01b031614610f3a576040516364283d7b60e01b81526001600160a01b03808616600483015260248201849052821660448201526064016111a2565b5f8080613d1c62ed4e006001600160801b0388166158e0565b9050613d30670de0b6b3a7640000826158b5565b90506001600160801b03811115613d7a5760405162461bcd60e51b815260206004820152600e60248201526d536c6f7065206f766572666c6f7760901b60448201526064016111a2565b809250613d8783866139e7565b9150673782dace9d9000006001600160801b0383161115613dbb57604051638f651fb760e01b815260040160405180910390fd5b836001600160801b0316826001600160801b03161015613dee57604051638199f5f360e01b815260040160405180910390fd5b50935093915050565b6040516001600160a01b0380851660248301528316604482015260648101829052610f3a9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261497c565b610915828260405180602001604052805f815250614a4f565b6040516001600160a01b03831660248201526044810182905261115090849063a9059cbb60e01b90606401613e2b565b5f613eb75f835f61487a565b90506001600160a01b03811661091557604051637e27328960e01b8152600481018390526024016111a2565b33613f157f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614611f6b5760405163118cdaa760e01b81523360048201526024016111a2565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f62093a80808560400151613fc49190615a84565b613fce9190615aab565b90505f5b60ff8110156140bf57613fe862093a8083615906565b91508363ffffffff168263ffffffff16111561403c57604085015161400d9085615899565b63ffffffff1685602001516140229190615ad1565b85518690614031908390615972565b600f0b9052506140bf565b604085015161404b9083615899565b63ffffffff1685602001516140609190615ad1565b8551869061406f908390615972565b600f90810b90915263ffffffff84165f908152606c602090815260409091205490880180519190920b92506140a5908390615af0565b600f0b90525063ffffffff82166040860152600101613fd2565b505f845f0151600f0b12156140d2575f84525b505090516001600160801b0316919050565b5f516020615cb25f395f51905f526001600160a01b03831661412457604051630b61174360e31b81526001600160a01b03841660048201526024016111a2565b6001600160a01b038481165f818152600584016020908152604080832094881680845294825291829020805460ff191687151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a350505050565b61419e84848461113b565b610f3a3385858585614a62565b5f838152606660205260408120805490916001600160801b03909116906141d285836159da565b600184015490915063ffffffff165f6141eb4283615899565b90505f6141f784613971565b90505f61420482846139e7565b90505f6142108b612017565b9050806001600160801b0316826001600160801b0316116142315780614233565b815b91506142496103e8670de0b6b3a7640000615b1d565b6001600160801b03168a6001600160801b031611801561427a5750886001600160801b0316826001600160801b0316105b1561429857604051638199f5f360e01b815260040160405180910390fd5b6142dd8b60405180604001604052808a600f0b81526020018863ffffffff1681525060405180604001604052808a600f0b81526020018963ffffffff16815250613958565b6001600160801b03838116600160801b0290871617885560018801805463ffffffff4216600160201b0267ffffffff00000000199091161790556143228b8b846136f9565b604080516001600160801b038c81168252888116602083015284168183015290518c9133917f1381e2f7d0d4b71a58d34dc3db2051dd52769766e65eabf380c9b4ea93f0890b9181900360600190a35050505050505050505050565b614386614b8a565b6032805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33613b47565b5f516020615cb25f395f51905f5281806143d957506001600160a01b03831615155b1561449a575f6143e8856134d7565b90506001600160a01b038416158015906144145750836001600160a01b0316816001600160a01b031614155b801561442757506144258185613441565b155b156144505760405163a9fbf51f60e01b81526001600160a01b03851660048201526024016111a2565b82156144985784866001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b5f93845260040160205250506040902080546001600160a01b0319166001600160a01b0392909216919091179055565b60695463ffffffff166144fc604080516080810182525f80825260208201819052918101829052606081019190915290565b63ffffffff8216156145755760685f614516600185615899565b63ffffffff908116825260208083019390935260409182015f2082516080810184528154600f81810b8352600160801b909104900b948101949094526001015480821692840192909252600160201b90910416606082015290506145a2565b50604080516080810182525f808252602082015263ffffffff428116928201929092524390911660608201525b60408101515f63ffffffff8083164290911611156146035760408301516145cf9063ffffffff16426158f3565b60608401516145e49063ffffffff16436158f3565b6145f690670de0b6b3a76400006158b5565b61460091906158e0565b90505b61460f83838387614bd3565b925061461c846001615906565b6069805463ffffffff92831663ffffffff199091161790558481165f9081526068602090815260408083208751928801516001600160801b03908116600160801b0290841617815590870151600191909101805460608901518616600160201b0267ffffffffffffffff19909116929095169190911793909317909255600f9190910b1215610f3a5750505f905250565b604080516080810182525f808252602082018190529181018290526060810191909152604080516080810182525f8082526020820181905291810182905260608101919091526146fd8483614df7565b506147088382614df7565b5061471d848484602001518460200151614eca565b5f858152606a602052604081205461473c9063ffffffff166001615906565b5f878152606a60209081526040808320805463ffffffff95861663ffffffff199091168117909155428516878301908152438616606089019081529b8552606b84528285209185529083529220855195909101516001600160801b03908116600160801b02951694909417845551600193909301805497518216600160201b0267ffffffffffffffff19909816939091169290921795909517905550505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16611f6b57604051631afcd79f60e31b815260040160405180910390fd5b61482e6147dd565b5f516020615cb25f395f51905f52806148478482615b8e565b5060018101610f3a8382615b8e565b613ac16147dd565b6148666147dd565b6032805460ff19169055565b6134956147dd565b5f5f516020615cb25f395f51905f528161489385613554565b90506001600160a01b038416156148af576148af818587615005565b6001600160a01b038116156148eb576148ca5f865f5f6143b7565b6001600160a01b0381165f908152600383016020526040902080545f190190555b6001600160a01b0386161561491b576001600160a01b0386165f9081526003830160205260409020805460010190555b5f85815260028301602052604080822080546001600160a01b0319166001600160a01b038a811691821790925591518893918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a495945050505050565b5f6149d0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166150699092919063ffffffff16565b905080515f14806149f05750808060200190518101906149f09190615c49565b6111505760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016111a2565b614a598383615077565b611150335f8585855b6001600160a01b0383163b15614b8357604051630a85bd0160e11b81526001600160a01b0384169063150b7a0290614aa4908890889087908790600401615c64565b6020604051808303815f875af1925050508015614ade575060408051601f3d908101601f19168201909252614adb91810190615c96565b60015b614b45573d808015614b0b576040519150601f19603f3d011682016040523d82523d5f602084013e614b10565b606091505b5080515f03614b3d57604051633250574960e11b81526001600160a01b03851660048201526024016111a2565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b14614b8157604051633250574960e11b81526001600160a01b03851660048201526024016111a2565b505b5050505050565b60325460ff16611f6b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016111a2565b604080516080810182525f80825260208201819052918101829052606081018290529062093a80614c048187615a84565b614c0e9190615aab565b9050425f5b60ff811015614deb57614c2962093a8084615906565b92508163ffffffff168363ffffffff161115614c8c57614c498783615899565b63ffffffff168860200151614c5e9190615ad1565b88518990614c6d908390615972565b600f0b90525063ffffffff80831660408a015243166060890152614deb565b614c968784615899565b63ffffffff168860200151614cab9190615ad1565b88518990614cba908390615972565b600f90810b90915263ffffffff85165f908152606c6020908152604090912054908b0180519190920b9250614cf0908390615af0565b600f0b90525063ffffffff831660408901819052670de0b6b3a764000090614d189085615899565b614d319063ffffffff166001600160801b0389166158b5565b614d3b91906158e0565b886060015163ffffffff16614d50919061595f565b63ffffffff1660608901528760685f83614d6b896001615906565b614d759190615906565b63ffffffff908116825260208083019390935260409182015f208451938501516001600160801b03908116600160801b02941693909317835590830151600192830180546060909501518316600160201b0267ffffffffffffffff19909516919092161792909217909155929650869201614c13565b50959695505050505050565b5f4263ffffffff16836020015163ffffffff16111580614e1957508251600f0b155b15614e2557505f61084f565b5f428460200151614e369190615899565b905062ed4e0063ffffffff821611614e4e5780614e53565b62ed4e005b90505f614e5f8261362a565b85519091506001600160801b0390811690670de0b6b3a764000090614e86908416836158b5565b614e9091906158e0565b600f0b855262ed4e00614eab670de0b6b3a7640000836158b5565b614eb591906158e0565b600f0b60208601525060019250505092915050565b4263ffffffff16846020015163ffffffff161115614f6b5760208085015163ffffffff165f908152606c9091526040902054600f0b614f098382615af0565b9050846020015163ffffffff16846020015163ffffffff1603614f3357614f308282615972565b90505b60208581015163ffffffff165f908152606c9091526040902080546001600160801b0319166001600160801b03929092169190911790555b4263ffffffff16836020015163ffffffff161115610f3a57836020015163ffffffff16836020015163ffffffff161115610f3a5760208084015163ffffffff165f908152606c9091526040902054600f0b614fc68282615972565b60208086015163ffffffff165f908152606c9091526040902080546001600160801b039092166001600160801b03199092169190911790555050505050565b6150108383836150d8565b611150576001600160a01b03831661503e57604051637e27328960e01b8152600481018290526024016111a2565b60405163177e802f60e01b81526001600160a01b0383166004820152602481018290526044016111a2565b6060612c7f84845f8561513c565b6001600160a01b0382166150a057604051633250574960e11b81525f60048201526024016111a2565b5f6150ac83835f61487a565b90506001600160a01b03811615611150576040516339e3563760e11b81525f60048201526024016111a2565b5f6001600160a01b03831615801590612c7f5750826001600160a01b0316846001600160a01b0316148061511157506151118484613441565b80612c7f5750826001600160a01b031661512a8361350e565b6001600160a01b031614949350505050565b60608247101561519d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016111a2565b5f5f866001600160a01b031685876040516151b891906159f9565b5f6040518083038185875af1925050503d805f81146151f2576040519150601f19603f3d011682016040523d82523d5f602084013e6151f7565b606091505b509150915061520887838387615213565b979650505050505050565b606083156152815782515f0361527a576001600160a01b0385163b61527a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016111a2565b5081612c7f565b612c7f83838151156152965781518083602001fd5b8060405162461bcd60e51b81526004016111a2919061530e565b6001600160e01b031981168114611cf6575f5ffd5b5f602082840312156152d5575f5ffd5b8135612218816152b0565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f61221860208301846152e0565b5f60208284031215615330575f5ffd5b5035919050565b80356001600160a01b038116811461534d575f5ffd5b919050565b5f5f60408385031215615363575f5ffd5b61536c83615337565b946020939093013593505050565b5f6020828403121561538a575f5ffd5b61221882615337565b602080825282518282018190525f918401906040840190835b818110156153ca5783518352602093840193909201916001016153ac565b509095945050505050565b803563ffffffff8116811461534d575f5ffd5b5f5f604083850312156153f9575f5ffd5b82359150615409602084016153d5565b90509250929050565b80356001600160801b038116811461534d575f5ffd5b5f5f5f5f6080858703121561543b575f5ffd5b8435935061544b602086016153d5565b92506040850135915061546060608601615412565b905092959194509250565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156154a8576154a861546b565b604052919050565b5f67ffffffffffffffff8211156154c9576154c961546b565b50601f01601f191660200190565b5f6154e96154e4846154b0565b61547f565b90508281528383830111156154fc575f5ffd5b828260208301375f602084830101529392505050565b5f82601f830112615521575f5ffd5b612218838335602085016154d7565b5f5f5f5f60808587031215615543575f5ffd5b61554c85615337565b935061555a60208601615337565b9250604085013567ffffffffffffffff811115615575575f5ffd5b61558187828801615512565b925050606085013567ffffffffffffffff81111561559d575f5ffd5b6155a987828801615512565b91505092959194509250565b5f5f5f606084860312156155c7575f5ffd5b6155d084615337565b92506155de60208501615337565b929592945050506040919091013590565b5f5f5f60408486031215615601575f5ffd5b833567ffffffffffffffff811115615617575f5ffd5b8401601f81018613615627575f5ffd5b803567ffffffffffffffff81111561563d575f5ffd5b8660208260051b8401011115615651575f5ffd5b6020918201979096509401359392505050565b5f5f5f5f5f60a08688031215615678575f5ffd5b61568186615337565b945061568f60208701615412565b935061569d604087016153d5565b9250606086013591506156b260808701615412565b90509295509295909350565b5f602082840312156156ce575f5ffd5b612218826153d5565b8015158114611cf6575f5ffd5b5f5f604083850312156156f5575f5ffd5b6156fe83615337565b9150602083013561570e816156d7565b809150509250929050565b5f5f5f5f6080858703121561572c575f5ffd5b61573585615337565b935061574360208601615337565b925060408501359150606085013567ffffffffffffffff811115615765575f5ffd5b8501601f81018713615775575f5ffd5b6155a9878235602084016154d7565b5f5f5f5f60808587031215615797575f5ffd5b8435935061544b60208601615412565b5f5f604083850312156157b8575f5ffd5b6157c183615412565b9150615409602084016153d5565b5f5f5f5f608085870312156157e2575f5ffd5b6157eb85615412565b935061544b602086016153d5565b5f5f6040838503121561580a575f5ffd5b61581383615337565b915061540960208401615337565b600181811c9082168061583557607f821691505b60208210810361585357634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f600182016158925761589261586d565b5060010190565b63ffffffff828116828216039081111561084f5761084f61586d565b808202811582820484141761084f5761084f61586d565b634e487b7160e01b5f52601260045260245ffd5b5f826158ee576158ee6158cc565b500490565b8181038181111561084f5761084f61586d565b63ffffffff818116838216019081111561084f5761084f61586d565b5f63ffffffff8216806159375761593761586d565b5f190192915050565b6001600160801b03828116828216039081111561084f5761084f61586d565b8082018082111561084f5761084f61586d565b600f82810b9082900b0360016001607f1b0319811260016001607f1b038213171561084f5761084f61586d565b5f63ffffffff821663ffffffff81036159ba576159ba61586d565b60010192915050565b5f602082840312156159d3575f5ffd5b5051919050565b6001600160801b03818116838216019081111561084f5761084f61586d565b5f82518060208501845e5f920191825250919050565b5f60208284031215615a1f575f5ffd5b815167ffffffffffffffff811115615a35575f5ffd5b8201601f81018413615a45575f5ffd5b8051615a536154e4826154b0565b818152856020838501011115615a67575f5ffd5b8160208401602083015e5f91810160200191909152949350505050565b5f63ffffffff831680615a9957615a996158cc565b8063ffffffff84160491505092915050565b63ffffffff8181168382160290811690818114615aca57615aca61586d565b5092915050565b5f82600f0b82600f0b0280600f0b9150808214615aca57615aca61586d565b600f81810b9083900b0160016001607f1b03811360016001607f1b03198212171561084f5761084f61586d565b5f6001600160801b03831680615b3557615b356158cc565b806001600160801b0384160491505092915050565b601f82111561115057805f5260205f20601f840160051c81016020851015615b6f5750805b601f840160051c820191505b81811015614b83575f8155600101615b7b565b815167ffffffffffffffff811115615ba857615ba861546b565b615bbc81615bb68454615821565b84615b4a565b6020601f821160018114615bee575f8315615bd75750848201515b5f19600385901b1c1916600184901b178455614b83565b5f84815260208120601f198516915b82811015615c1d5787850151825560209485019460019092019101615bfd565b5084821015615c3a57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f60208284031215615c59575f5ffd5b8151612218816156d7565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f9061216b908301846152e0565b5f60208284031215615ca6575f5ffd5b8151612218816152b056fe80bb2b638cc20bc4d0a60d66940f3ab4a00c1d7b313497ca82fb0b4ab0079300a26469706673582212200837189db24b8823928b0e479d8a73bd25462dfb51f1153d1970a1f3294ea63d64736f6c634300081b0033
Deployed Bytecode
0x608060405234801561000f575f5ffd5b5060043610610297575f3560e01c806375619ab511610161578063bcc00225116100ca578063df0c78ef11610084578063df0c78ef1461078b578063df2151571461079e578063e58f5947146107b1578063e985e9c5146107d6578063f2fde38b146107e9578063f7b188a5146107fc575f5ffd5b8063bcc0022514610715578063beb8310914610737578063c5b1c7d01461074a578063c87b56dd14610752578063d89dd26914610765578063ddacc94a14610778575f5ffd5b806395d89b411161011b57806395d89b411461068457806397612d4b1461068c5780639b7d02ad1461069f578063a22cb465146106dc578063b88d4fde146106ef578063bbe33ea514610702575f5ffd5b806375619ab51461053f57806389f839c6146105525780638b25e8c1146105d55780638da5cb5b146105e85780638ff4249014610618578063900cf0cf1461065f575f5ffd5b8063268dc199116102035780635594a045116101bd5780635594a045146104be578063586c2600146104d15780635c975abb146105065780636352211e1461051157806370a0823114610524578063715018a614610537575f5ffd5b8063268dc1991461042c5780632a90752d146104515780632e1a7d4d146104725780632e720f7d1461048557806342842e0e146104985780635312ea8e146104ab575f5ffd5b80631d237a49116102545780631d237a49146103495780631f5ab022146103ce5780632016a0d2146103e157806320a194b8146103f457806323b872dd1461040657806325f521e414610419575f5ffd5b806301ffc9a71461029b57806306fdde03146102c3578063081812fc146102d8578063095ea7b3146103035780630f45cc811461031857806313de148b14610329575b5f5ffd5b6102ae6102a93660046152c5565b610804565b60405190151581526020015b60405180910390f35b6102cb610855565b6040516102ba919061530e565b6102eb6102e6366004615320565b6108f6565b6040516001600160a01b0390911681526020016102ba565b610316610311366004615352565b61090a565b005b6064546001600160a01b03166102eb565b61033c61033736600461537a565b610919565b6040516102ba9190615393565b61039b6103573660046153e8565b606b60209081525f928352604080842090915290825290208054600190910154600f82810b92600160801b9004900b9063ffffffff80821691600160201b90041684565b60408051600f95860b81529390940b602084015263ffffffff9182169383019390935290911660608201526080016102ba565b6103166103dc366004615428565b610a0e565b6103166103ef366004615530565b610f40565b606f54600160a01b900460ff166102ae565b6103166104143660046155b5565b61113b565b6103166104273660046155ef565b611155565b606e546001600160801b03165b6040516001600160801b0390911681526020016102ba565b61046461045f366004615664565b61166f565b6040519081526020016102ba565b610316610480366004615320565b611a65565b61031661049336600461537a565b611cf9565b6103166104a63660046155b5565b611d4a565b6103166104b9366004615320565b611d64565b606d546102eb906001600160a01b031681565b6104f36104df3660046156be565b606c6020525f9081526040902054600f0b81565b604051600f9190910b81526020016102ba565b60325460ff166102ae565b6102eb61051f366004615320565b611ef8565b61046461053236600461537a565b611f02565b610316611f5a565b61031661054d36600461537a565b611f6d565b61059e610560366004615320565b60666020525f9081526040902080546001909101546001600160801b0380831692600160801b9004169063ffffffff80821691600160201b90041684565b604080516001600160801b03958616815294909316602085015263ffffffff918216928401929092521660608201526080016102ba565b6104396105e3366004615320565b612017565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b03166102eb565b61039b6106263660046156be565b60686020525f908152604090208054600190910154600f82810b92600160801b9004900b9063ffffffff80821691600160201b90041684565b60695461066f9063ffffffff1681565b60405163ffffffff90911681526020016102ba565b6102cb612175565b61043961069a3660046156be565b6121b3565b6106ca6106ad36600461537a565b6001600160a01b03165f9081526067602052604090205460ff1690565b60405160ff90911681526020016102ba565b6103166106ea3660046156e4565b61221f565b6103166106fd366004615719565b61222a565b6103166107103660046155ef565b612240565b6106ca61072336600461537a565b60676020525f908152604090205460ff1681565b610316610745366004615784565b61268e565b610316612ace565b6102cb610760366004615320565b612b34565b6104396107733660046157a7565b612c87565b6104396107863660046153e8565b612de9565b6104396107993660046157a7565b61304c565b6104646107ac3660046157cf565b613096565b61066f6107bf366004615320565b606a6020525f908152604090205463ffffffff1681565b6102ae6107e43660046157f9565b613441565b6103166107f736600461537a565b61348d565b6103166134c7565b5f6001600160e01b031982166380ac58cd60e01b148061083457506001600160e01b03198216635b5e139f60e01b145b8061084f57506301ffc9a760e01b6001600160e01b03198316145b92915050565b5f516020615cb25f395f51905f52805460609190819061087490615821565b80601f01602080910402602001604051908101604052809291908181526020018280546108a090615821565b80156108eb5780601f106108c2576101008083540402835291602001916108eb565b820191905f5260205f20905b8154815290600101906020018083116108ce57829003601f168201915b505050505091505090565b5f610900826134d7565b5061084f8261350e565b610915828233613547565b5050565b6001600160a01b0381165f9081526067602052604090205460609060ff168067ffffffffffffffff8111156109505761095061546b565b604051908082528060200260200182016040528015610979578160200160208202803683370190505b5091508060ff165f0361098c5750919050565b5f805b606554600160a01b900463ffffffff16811015610a0657846001600160a01b03166109b982613554565b6001600160a01b0316036109fe57808483815181106109da576109da615859565b6020908102919091010152816109ef81615881565b9250508260ff16821015610a06575b60010161098f565b505050919050565b610a1661358d565b610a1e6135e4565b8180421115610a4057604051631ab7da6b60e01b815260040160405180910390fd5b5f85815260666020908152604091829020825160808101845281546001600160801b03808216808452600160801b909204169382019390935260019091015463ffffffff80821694830194909452600160201b9004909216606083015286919015801590610abd5750806040015163ffffffff164263ffffffff16105b15610c30575f428260400151610ad39190615899565b90505f610adf8261362a565b83519091505f9062ed4e0090610b0790670de0b6b3a7640000906001600160801b03166158b5565b610b1191906158e0565b9050806001600160801b031684602001516001600160801b0316141580610b4f575062015180846060015163ffffffff1642610b4d91906158f3565b115b15610c2c575f5f85602001516001600160801b031611610b7757670de0b6b3a7640000610b80565b610b808461362a565b9050610b9086865f0151856136f9565b610be3866040518060400160405280885f0151600f0b8152602001886040015163ffffffff168152506040518060400160405280895f0151600f0b8152602001896040015163ffffffff16815250613958565b505f85815260666020526040902080546001600160801b03808416600160801b029116178155600101805463ffffffff4216600160201b0267ffffffff00000000199091161790555b5050505b33610c3a88611ef8565b6001600160a01b031614610c61576040516359dc379f60e01b815260040160405180910390fd5b5f878152606660209081526040808320815160808101835281546001600160801b03808216808452600160801b909204169482019490945260019091015463ffffffff80821693830193909352600160201b900490911660608201529103610cdc57604051632254ea3d60e11b815260040160405180910390fd5b5f878260400151610ced9190615906565b90505f610cfa4283615899565b905062ed4e0063ffffffff82161115610d2657604051637616640160e01b815260040160405180910390fd5b5f610d33845f0151613971565b90505f610d4082846139e7565b9050886001600160801b0316816001600160801b03161015610d7557604051638199f5f360e01b815260040160405180910390fd5b610d838c865f0151836136f9565b610dd28c6040518060400160405280885f0151600f0b8152602001886040015163ffffffff168152506040518060400160405280895f0151600f0b81526020018863ffffffff16815250613958565b6040518060800160405280865f01516001600160801b03168152602001836001600160801b031681526020018563ffffffff1681526020014263ffffffff1681525060665f8e81526020019081526020015f205f820151815f015f6101000a8154816001600160801b0302191690836001600160801b031602179055506020820151815f0160106101000a8154816001600160801b0302191690836001600160801b031602179055506040820151816001015f6101000a81548163ffffffff021916908363ffffffff16021790555060608201518160010160046101000a81548163ffffffff021916908363ffffffff1602179055509050508b336001600160a01b03167f3032be442129e161b4ae1cdee94871a69de2c16ee2007f31fc209a715673455c8684604051610f2192919063ffffffff9290921682526001600160801b0316602082015260400190565b60405180910390a35050505050505050610f3a60015f55565b50505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a008054600160401b810460ff16159067ffffffffffffffff165f81158015610f855750825b90505f8267ffffffffffffffff166001148015610fa15750303b155b905081158015610faf575080155b15610fcd5760405163f92ee8a960e01b815260040160405180910390fd5b845467ffffffffffffffff191660011785558315610ff757845460ff60401b1916600160401b1785555b6001600160a01b038916158061101457506001600160a01b038816155b156110325760405163d92e233d60e01b815260040160405180910390fd5b61103c8787613ac7565b611044613ad9565b61104c613ae9565b61105533613af9565b61105d613b0a565b606480546001600160a01b03808c166001600160a01b031992831617909255606f8054928b16929091169190911790555f805260686020527fad6f8124f6081c2622ab3a16acd47af73d52fe87b755c3f897263c58ba3fdbd880544263ffffffff90811663ffffffff194392909216600160201b029190911667ffffffffffffffff1990921691909117179055831561113057845460ff60401b19168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15b505050505050505050565b6111458382613b5f565b611150838383613c80565b505050565b5f81118015611165575060148111155b6111ab5760405162461bcd60e51b8152602060048201526012602482015271496e76616c69642062617463682073697a6560701b60448201526064015b60405180910390fd5b5f5b81811080156111bb57508281105b15610f3a575f8484838181106111d3576111d3615859565b602090810292909201355f818152606a9093526040909220549192505063ffffffff1680158061122257505f828152606b6020908152604080832060018085529252909120015463ffffffff16155b1561122e57505061165d565b5f8060015b8363ffffffff168163ffffffff1611611616575f858152606b6020908152604080832063ffffffff80861685529252822060018101549092911690036112795750611604565b815b60018163ffffffff1610611375575f878152606b6020908152604080832063ffffffff80861685529083529281902081516080810183528154600f81810b8352600160801b909104900b93810193909352600190810154808516928401839052600160201b9004841660608401528501549192919091161061136257805f01516001600160801b031695508060200151600f0b5f0361131a575f61135a565b602081015181516001600160801b039182169161134191670de0b6b3a764000091166158b5565b61134b91906158e0565b816040015161135a9190615906565b945050611375565b508061136d81615922565b91505061127b565b5060018101545f9063ffffffff90811690851611611393575f6113a8565b60018201546113a89063ffffffff1685615899565b63ffffffff16905062ed4e0081116113c057806113c5565b62ed4e005b90505f62ed4e006113de670de0b6b3a7640000846158b5565b6113e891906158e0565b90505f670de0b6b3a764000061140681673782dace9d900000615940565b611419906001600160801b0316846158b5565b61142391906158e0565b61143590670de0b6b3a764000061595f565b9050673782dace9d900000811161146957670de0b6b3a7640000811061145b5780611473565b670de0b6b3a7640000611473565b673782dace9d9000005b9050670de0b6b3a764000061149462ed4e006001600160801b038a166158e0565b61149e91906158b5565b84546001600160801b03918216600160801b02908216178555670de0b6b3a7640000906114ce9083908a166158b5565b6114d891906158e0565b84546001600160801b0319166001600160801b039190911617845563ffffffff88811690861610801561153d57505f898152606b602052604081208161151f886001615906565b63ffffffff908116825260208201929092526040015f206001015416115b156115ff5783545f8a8152606b60205260408120600160801b909204600f0b9190611569886001615906565b63ffffffff16815260208101919091526040015f20546115939190600160801b9004600f0b615972565b5f8a8152606b60205260408120606c9190816115b08a6001615906565b63ffffffff908116825260208083019390935260409182015f908120600101549091168452918301939093529101902080546001600160801b0319166001600160801b03929092169190911790555b505050505b8061160e8161599f565b915050611233565b50604080516001815263ffffffff8516602082015285917fa2efa4b409af0ce90900ca0b356a54ee031dbe16b16c405cd2cde08f592b937d910160405180910390a2505050505b8061166781615881565b9150506111ad565b5f61167861358d565b6116806135e4565b82804211156116a257604051631ab7da6b60e01b815260040160405180910390fd5b856001600160801b03165f036116cb5760405163162908e360e11b815260040160405180910390fd5b63ffffffff851615806116e6575062ed4e0063ffffffff8616115b1561170457604051637616640160e01b815260040160405180910390fd5b6001600160a01b03871661172b5760405163d92e233d60e01b815260040160405180910390fd5b6001600160a01b0387165f90815260676020526040902054606460ff909116106117685760405163133cbc4f60e01b815260040160405180910390fd5b5f6117738642615906565b90505f5f611782898988613d03565b915091505f60405180604001604052808b600f0b81526020018563ffffffff1681525090506117cf5f60405180604001604052805f600f0b81526020015f63ffffffff1681525083613958565b6064546040516370a0823160e01b81523060048201525f916001600160a01b0316906370a0823190602401602060405180830381865afa158015611815573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061183991906159c3565b60645490915061185d906001600160a01b031633306001600160801b038f16613df7565b6118706001600160801b038c168261595f565b6064546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156118b6573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906118da91906159c3565b146118f8576040516312171d8360e31b815260040160405180910390fd5b60658054600163ffffffff600160a01b80840482168381019092160263ffffffff60a01b19909316929092179092556001600160a01b038e165f908152606760205260409020805460ff80821690940190931660ff199093169290921790915596506119648c88613e62565b604080516080810182526001600160801b03808e168252868116602080840191825263ffffffff808b16858701908152428216606087019081525f8f8152606690945296909220945192518416600160801b0292909316919091178355516001909201805493518216600160201b0267ffffffffffffffff1990941692909116919091179190911790556119f9878c856136f9565b604080516001600160801b038d16815263ffffffff8716602082015288916001600160a01b038f16917fdbd81f1b10e6f1395ede56cabac59119f8be0cb5ca3ef0ca44f8597828934954910160405180910390a3505050505050611a5c60015f55565b95945050505050565b611a6d61358d565b5f611a7782613554565b90506001600160a01b038116611a9f57604051626f708760e21b815260040160405180910390fd5b6001600160a01b0381163314611ac8576040516359dc379f60e01b815260040160405180910390fd5b5f828152606660209081526040808320815160808101835281546001600160801b03808216808452600160801b909204169482019490945260019091015463ffffffff80821693830193909352600160201b900490911660608201529103611b4357604051632254ea3d60e11b815260040160405180910390fd5b806040015163ffffffff164263ffffffff161015611b745760405163342ad40160e11b815260040160405180910390fd5b8051606e546001600160801b039081169082161115611ba257606e80546001600160801b0319169055611be4565b606e80548291905f90611bbf9084906001600160801b0316615940565b92506101000a8154816001600160801b0302191690836001600160801b031602179055505b5f848152606660209081526040808320838155600101805467ffffffffffffffff1916905580518082018252600f85900b81528582015163ffffffff168184015281518083019092528382529181019290925290611c459086908390613958565b5f858152606a60205260409020805463ffffffff19169055606454611c7d906001600160a01b0316336001600160801b038516613e7b565b611c8685613eab565b335f81815260676020908152604091829020805460ff19811660ff9182165f190190911617905590516001600160801b03851681528792917f8903a5b5d08a841e7f68438387f1da20c84dea756379ed37e633ff3854b99b84910160405180910390a350505050611cf660015f55565b50565b611d01613ee3565b6001600160a01b038116611d285760405163d92e233d60e01b815260040160405180910390fd5b606d80546001600160a01b0319166001600160a01b0392909216919091179055565b61115083838360405180602001604052805f81525061222a565b611d6c61358d565b606f54600160a01b900460ff16611dbd5760405162461bcd60e51b81526020600482015260156024820152744e6f7420696e20656d657267656e6379206d6f646560581b60448201526064016111a2565b33611dc782611ef8565b6001600160a01b031614611dee576040516359dc379f60e01b815260040160405180910390fd5b5f818152606660208181526040808420815160808101835281546001600160801b03808216808452600160801b909204168286015260018301805463ffffffff80821696850196909652600160201b810490951660608401528888529590945294905567ffffffffffffffff1916909155611e6883613eab565b335f818152606760205260409020805460ff19811660ff9182165f1901909116179055606454611ead916001600160a01b03909116906001600160801b038416613e7b565b6040516001600160801b0382168152839033907f4f27eb511b2a4633cfb633ac1c4a99b4c298ca6488b29ec26f3504a5927f67289060200160405180910390a35050611cf660015f55565b5f61084f826134d7565b5f5f516020615cb25f395f51905f526001600160a01b038316611f3a576040516322718ad960e21b81525f60048201526024016111a2565b6001600160a01b039092165f908152600390920160205250604090205490565b611f62613ee3565b611f6b5f613f3e565b565b611f75613ee3565b6001600160a01b038116611f9c5760405163d92e233d60e01b815260040160405180910390fd5b6065546001600160a01b031615611ff55760405162461bcd60e51b815260206004820152601760248201527f4469737472696275746f7220616c72656164792073657400000000000000000060448201526064016111a2565b606580546001600160a01b0319166001600160a01b0392909216919091179055565b5f818152606660209081526040808320815160808101835281546001600160801b038082168352600160801b90910416938101939093526001015463ffffffff808216928401839052600160201b909104811660608401524216106120865750670de0b6b3a764000092915050565b5f4282604001516120979190615899565b90505f62ed4e006120b6670de0b6b3a764000063ffffffff85166158b5565b6120c091906158e0565b90505f670de0b6b3a7640000826120df82673782dace9d900000615940565b6001600160801b03166120f291906158b5565b6120fc91906158e0565b61210e90670de0b6b3a764000061595f565b905080673782dace9d9000006001600160801b038216111561213e5750673782dace9d9000009695505050505050565b670de0b6b3a76400006001600160801b038216101561216b5750670de0b6b3a76400009695505050505050565b9695505050505050565b7f80bb2b638cc20bc4d0a60d66940f3ab4a00c1d7b313497ca82fb0b4ab007930180546060915f516020615cb25f395f51905f529161087490615821565b60695463ffffffff9081165f90815260686020908152604080832081516080810183528154600f81810b8352600160801b909104900b938101939093526001015480851691830191909152600160201b90049092166060830152906122188184613fae565b9392505050565b6109153383836140e4565b6122348483613b5f565b610f3a84848484614193565b61224861358d565b6122506135e4565b808042111561227257604051631ab7da6b60e01b815260040160405180910390fd5b60028310156122945760405163162908e360e11b815260040160405180910390fd5b5f80805b8581101561239d57336122c28888848181106122b6576122b6615859565b90506020020135611ef8565b6001600160a01b0316146122e9576040516359dc379f60e01b815260040160405180910390fd5b5f60665f8989858181106122ff576122ff615859565b602090810292909201358352508181019290925260409081015f20815160808101835281546001600160801b03808216808452600160801b909204169482019490945260019091015463ffffffff80821693830193909352600160201b90049091166060820152915061237290856159da565b93508263ffffffff16816040015163ffffffff16111561239457806040015192505b50600101612298565b505f6123a94283615899565b905062ed4e0063ffffffff821611156123d557604051637616640160e01b815260040160405180910390fd5b5f62ed4e006123f5670de0b6b3a76400006001600160801b0387166158b5565b6123ff91906158e0565b90505f6065601481819054906101000a900463ffffffff166124209061599f565b91906101000a81548163ffffffff021916908363ffffffff160217905563ffffffff16905061244f3382613e62565b5f5b8881101561253a575f8a8a8381811061246c5761246c615859565b602090810292909201355f818152606684526040808220815160808101835281546001600160801b038082168352600160801b909104168188015260019091015463ffffffff808216838501908152600160201b90920481166060840152835180850185528351600f0b8152915116818801528251808401909352838352958201929092529194509291506125049084908390613958565b5f838152606660205260408120908155600101805467ffffffffffffffff1916905561252f83613eab565b505050600101612451565b50604080518082018252600f87900b815263ffffffff861660208083019190915282518084019093525f808452908301529061257890839083613958565b604080516080810182526001600160801b038089168252858116602080840191825263ffffffff808b16858701908152428216606087019081525f8a815260668552888120975195518716600160801b0295909616949094178655516001958601805494518316600160201b0267ffffffffffffffff1990951691909216179290921790915533808352606790915290839020805460ff8082168f900390940190931660ff199093169290921790915590518391907fdbd81f1b10e6f1395ede56cabac59119f8be0cb5ca3ef0ca44f859782893495490612676908a908a906001600160801b0392909216825263ffffffff16602082015260400190565b60405180910390a35050505050505061115060015f55565b61269661358d565b61269e6135e4565b81804211156126c057604051631ab7da6b60e01b815260040160405180910390fd5b5f85815260666020908152604091829020825160808101845281546001600160801b03808216808452600160801b909204169382019390935260019091015463ffffffff80821694830194909452600160201b900490921660608301528691901580159061273d5750806040015163ffffffff164263ffffffff16105b156128b0575f4282604001516127539190615899565b90505f61275f8261362a565b83519091505f9062ed4e009061278790670de0b6b3a7640000906001600160801b03166158b5565b61279191906158e0565b9050806001600160801b031684602001516001600160801b03161415806127cf575062015180846060015163ffffffff16426127cd91906158f3565b115b156128ac575f5f85602001516001600160801b0316116127f757670de0b6b3a7640000612800565b6128008461362a565b905061281086865f0151856136f9565b612863866040518060400160405280885f0151600f0b8152602001886040015163ffffffff168152506040518060400160405280895f0151600f0b8152602001896040015163ffffffff16815250613958565b505f85815260666020526040902080546001600160801b03808416600160801b029116178155600101805463ffffffff4216600160201b0267ffffffff00000000199091161790555b5050505b326128ba88611ef8565b6001600160a01b0316146128f957336128d288611ef8565b6001600160a01b0316146128f9576040516359dc379f60e01b815260040160405180910390fd5b856001600160801b03165f036129225760405163162908e360e11b815260040160405180910390fd5b5f878152606660205260408120805490916001600160801b03909116900361295d57604051632254ea3d60e11b815260040160405180910390fd5b600181015463ffffffff908116429091161061298c576040516307b7d7dd60e51b815260040160405180910390fd5b6064546040516370a0823160e01b81523060048201525f916001600160a01b0316906370a0823190602401602060405180830381865afa1580156129d2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906129f691906159c3565b606454909150612a1a906001600160a01b031633306001600160801b038c16613df7565b612a2d6001600160801b0389168261595f565b6064546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015612a73573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a9791906159c3565b14612ab5576040516312171d8360e31b815260040160405180910390fd5b612ac08989886141ab565b5050505050610f3a60015f55565b612ad6613ee3565b606f805460ff60a01b1916600160a01b179055612af1613b0a565b606f546040516001600160a01b0390911681527fc0a1c7e9f05b4d536e1ff8606bae9b847cdb43ef4a9b2d7a503a88cee08dccdb906020015b60405180910390a1565b60605f612b4083613554565b6001600160a01b031603612b6657604051626f708760e21b815260040160405180910390fd5b606d546001600160a01b0316612b8f576040516338a69c8d60e21b815260040160405180910390fd5b606d54604051602481018490525f9182916001600160a01b039091169060440160408051601f198184030181529181526020820180516001600160e01b031663c87b56dd60e01b17905251612be491906159f9565b5f60405180830381855afa9150503d805f8114612c1c576040519150601f19603f3d011682016040523d82523d5f602084013e612c21565b606091505b509150915081612c6b5760405162461bcd60e51b8152602060048201526015602482015274105c9d081c1c9bde1e4818d85b1b0819985a5b1959605a1b60448201526064016111a2565b80806020019051810190612c7f9190615a0f565b949350505050565b5f63ffffffff82161580612ca3575062ed4e0063ffffffff8316115b15612cc157604051637616640160e01b815260040160405180910390fd5b826001600160801b03165f03612cea5760405163162908e360e11b815260040160405180910390fd5b5f670de0b6b3a7640000612d0a62ed4e006001600160801b0387166158e0565b612d1491906158b5565b9050805f03612d2e57670de0b6b3a764000091505061084f565b5f62ed4e00612d4b670de0b6b3a764000063ffffffff87166158b5565b612d5591906158e0565b90505f670de0b6b3a7640000612d7381673782dace9d900000615940565b612d86906001600160801b0316846158b5565b612d9091906158e0565b612da290670de0b6b3a764000061595f565b9050673782dace9d9000008111612dd657670de0b6b3a76400008110612dc8578061216b565b670de0b6b3a764000061216b565b673782dace9d9000009695505050505050565b5f828152606a602052604081205463ffffffff16808203612e0d575f91505061084f565b5f84815260666020908152604091829020825160808101845281546001600160801b03808216808452600160801b909204169382019390935260019091015463ffffffff80821694830194909452600160201b900490921660608301521580612e865750806040015163ffffffff168463ffffffff1610155b15612e95575f9250505061084f565b815b60018163ffffffff1610613041575f868152606b6020908152604080832063ffffffff80861685529083529281902081516080810183528154600f81810b8352600160801b909104900b9381019390935260010154808416918301829052600160201b900483166060830152909187161061302e5760408301515f9062ed4e0090670de0b6b3a764000090612f2d908a90615899565b63ffffffff16612f3d91906158b5565b612f4791906158e0565b90505f670de0b6b3a7640000612f6581673782dace9d900000615940565b612f78906001600160801b0316846158b5565b612f8291906158e0565b612f9490670de0b6b3a764000061595f565b9050673782dace9d9000008111612fc857670de0b6b3a76400008110612fba5780612fd2565b670de0b6b3a7640000612fd2565b673782dace9d9000005b83519091505f90670de0b6b3a764000090612ff79084906001600160801b03166158b5565b61300191906158e0565b90506001600160801b0381116130175780613020565b6001600160801b035b97505050505050505061084f565b508061303981615922565b915050612e97565b505f95945050505050565b606d545f90819063ffffffff600160a01b909104811690841611613070578261308a565b606d5461308a90600160a01b900463ffffffff1684615899565b9050612c7f8482612c87565b5f61309f61358d565b6130a76135e4565b82804211156130c957604051631ab7da6b60e01b815260040160405180910390fd5b856001600160801b03165f036130f25760405163162908e360e11b815260040160405180910390fd5b63ffffffff8516158061310d575062ed4e0063ffffffff8616115b1561312b57604051637616640160e01b815260040160405180910390fd5b335f90815260676020526040902054606460ff9091161061315f5760405163133cbc4f60e01b815260040160405180910390fd5b5f61316a8642615906565b90505f5f613179898988613d03565b915091505f60405180604001604052808b600f0b81526020018563ffffffff1681525090506131c65f60405180604001604052805f600f0b81526020015f63ffffffff1681525083613958565b6064546040516370a0823160e01b81523060048201525f916001600160a01b0316906370a0823190602401602060405180830381865afa15801561320c573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061323091906159c3565b606454909150613254906001600160a01b031633306001600160801b038f16613df7565b6132676001600160801b038c168261595f565b6064546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156132ad573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906132d191906159c3565b146132ef576040516312171d8360e31b815260040160405180910390fd5b60658054600163ffffffff600160a01b80840482168381019092160263ffffffff60a01b1990931692909217909255335f818152606760205260409020805460ff80821690950190941660ff199094169390931790925597506133529088613e62565b604080516080810182526001600160801b03808e168252868116602080840191825263ffffffff808b16858701908152428216606087019081525f8f8152606690945296909220945192518416600160801b0292909316919091178355516001909201805493518216600160201b0267ffffffffffffffff1990941692909116919091179190911790556133e7878c856136f9565b604080516001600160801b038d16815263ffffffff87166020820152889133917fdbd81f1b10e6f1395ede56cabac59119f8be0cb5ca3ef0ca44f8597828934954910160405180910390a3505050505050612c7f60015f55565b6001600160a01b039182165f9081527f80bb2b638cc20bc4d0a60d66940f3ab4a00c1d7b313497ca82fb0b4ab00793056020908152604080832093909416825291909152205460ff1690565b613495613ee3565b6001600160a01b0381166134be57604051631e4fbdf760e01b81525f60048201526024016111a2565b611cf681613f3e565b6134cf613ee3565b611f6b61437e565b5f5f6134e283613554565b90506001600160a01b03811661084f57604051637e27328960e01b8152600481018490526024016111a2565b5f9081527f80bb2b638cc20bc4d0a60d66940f3ab4a00c1d7b313497ca82fb0b4ab007930460205260409020546001600160a01b031690565b61115083838360016143b7565b5f9081527f80bb2b638cc20bc4d0a60d66940f3ab4a00c1d7b313497ca82fb0b4ab007930260205260409020546001600160a01b031690565b60025f54036135de5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016111a2565b60025f55565b60325460ff1615611f6b5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016111a2565b5f8062ed4e00613648670de0b6b3a764000063ffffffff86166158b5565b61365291906158e0565b90505f670de0b6b3a76400008261367182673782dace9d900000615940565b6001600160801b031661368491906158b5565b61368e91906158e0565b6136a090670de0b6b3a764000061595f565b905080673782dace9d9000006001600160801b038216116136e757670de0b6b3a76400006001600160801b038216106136d95780611a5c565b670de0b6b3a7640000611a5c565b673782dace9d90000095945050505050565b5f838152606660209081526040808320815160808101835281546001600160801b038082168352600160801b9091041693810184905260019091015463ffffffff80821693830193909352600160201b90049091166060820152919061376757670de0b6b3a76400006137a7565b4282604001516137779190615899565b63ffffffff1682602001516001600160801b031661379591906158b5565b6137a790670de0b6b3a764000061595f565b9050673782dace9d9000006001600160801b03821611156137cd5750673782dace9d9000005b670de0b6b3a76400006001600160801b03821610156137f15750670de0b6b3a76400005b5f670de0b6b3a76400006138116001600160801b038481169088166158b5565b61381b91906158e0565b90505f670de0b6b3a764000061383d6001600160801b038781169089166158b5565b61384791906158e0565b9050818111156138cd575f61385c83836158f3565b90506001600160801b0381111561388657604051630fc12e3560e11b815260040160405180910390fd5b606e80548291905f906138a39084906001600160801b03166159da565b92506101000a8154816001600160801b0302191690836001600160801b031602179055505061394f565b8082111561394f575f6138e082846158f3565b606e549091506001600160801b031681111561390b57606e80546001600160801b031916905561394d565b606e80548291905f906139289084906001600160801b0316615940565b92506101000a8154816001600160801b0302191690836001600160801b031602179055505b505b50505050505050565b6139606144ca565b8215611150576111508383836146ad565b5f8061398962ed4e006001600160801b0385166158e0565b905061399d670de0b6b3a7640000826158b5565b90506001600160801b0381111561084f5760405162461bcd60e51b815260206004820152600e60248201526d0a6d8dee0ca40e8dede40d0d2ced60931b60448201526064016111a2565b5f826001600160801b03165f03613a075750670de0b6b3a764000061084f565b5f62ed4e00613a24670de0b6b3a764000063ffffffff86166158b5565b613a2e91906158e0565b90505f670de0b6b3a7640000613a4c81673782dace9d900000615940565b613a5f906001600160801b0316846158b5565b613a6991906158e0565b613a7b90670de0b6b3a764000061595f565b9050673782dace9d900000811115613a9f57673782dace9d9000009250505061084f565b670de0b6b3a7640000811015612c7f57670de0b6b3a76400009250505061084f565b60015f55565b613acf6147dd565b6109158282614826565b613ae16147dd565b611f6b614856565b613af16147dd565b611f6b61485e565b613b016147dd565b611cf681614872565b613b126135e4565b6032805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613b473390565b6040516001600160a01b039091168152602001612b2a565b6001600160a01b03821615801590613b8157506065546001600160a01b031615155b8015613b9e57505f613b9282613554565b6001600160a01b031614155b156109155760655460405163135bb63160e21b8152600481018390525f916001600160a01b031690634d6ed8c490602401602060405180830381865afa158015613bea573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613c0e91906159c3565b11156109155760655460405163379607f560e01b8152600481018390526001600160a01b039091169063379607f5906024016020604051808303815f875af1158015613c5c573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061115091906159c3565b6001600160a01b038216613ca957604051633250574960e11b81525f60048201526024016111a2565b5f613cb583833361487a565b9050836001600160a01b0316816001600160a01b031614610f3a576040516364283d7b60e01b81526001600160a01b03808616600483015260248201849052821660448201526064016111a2565b5f8080613d1c62ed4e006001600160801b0388166158e0565b9050613d30670de0b6b3a7640000826158b5565b90506001600160801b03811115613d7a5760405162461bcd60e51b815260206004820152600e60248201526d536c6f7065206f766572666c6f7760901b60448201526064016111a2565b809250613d8783866139e7565b9150673782dace9d9000006001600160801b0383161115613dbb57604051638f651fb760e01b815260040160405180910390fd5b836001600160801b0316826001600160801b03161015613dee57604051638199f5f360e01b815260040160405180910390fd5b50935093915050565b6040516001600160a01b0380851660248301528316604482015260648101829052610f3a9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261497c565b610915828260405180602001604052805f815250614a4f565b6040516001600160a01b03831660248201526044810182905261115090849063a9059cbb60e01b90606401613e2b565b5f613eb75f835f61487a565b90506001600160a01b03811661091557604051637e27328960e01b8152600481018390526024016111a2565b33613f157f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b031614611f6b5760405163118cdaa760e01b81523360048201526024016111a2565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a3505050565b5f5f62093a80808560400151613fc49190615a84565b613fce9190615aab565b90505f5b60ff8110156140bf57613fe862093a8083615906565b91508363ffffffff168263ffffffff16111561403c57604085015161400d9085615899565b63ffffffff1685602001516140229190615ad1565b85518690614031908390615972565b600f0b9052506140bf565b604085015161404b9083615899565b63ffffffff1685602001516140609190615ad1565b8551869061406f908390615972565b600f90810b90915263ffffffff84165f908152606c602090815260409091205490880180519190920b92506140a5908390615af0565b600f0b90525063ffffffff82166040860152600101613fd2565b505f845f0151600f0b12156140d2575f84525b505090516001600160801b0316919050565b5f516020615cb25f395f51905f526001600160a01b03831661412457604051630b61174360e31b81526001600160a01b03841660048201526024016111a2565b6001600160a01b038481165f818152600584016020908152604080832094881680845294825291829020805460ff191687151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a350505050565b61419e84848461113b565b610f3a3385858585614a62565b5f838152606660205260408120805490916001600160801b03909116906141d285836159da565b600184015490915063ffffffff165f6141eb4283615899565b90505f6141f784613971565b90505f61420482846139e7565b90505f6142108b612017565b9050806001600160801b0316826001600160801b0316116142315780614233565b815b91506142496103e8670de0b6b3a7640000615b1d565b6001600160801b03168a6001600160801b031611801561427a5750886001600160801b0316826001600160801b0316105b1561429857604051638199f5f360e01b815260040160405180910390fd5b6142dd8b60405180604001604052808a600f0b81526020018863ffffffff1681525060405180604001604052808a600f0b81526020018963ffffffff16815250613958565b6001600160801b03838116600160801b0290871617885560018801805463ffffffff4216600160201b0267ffffffff00000000199091161790556143228b8b846136f9565b604080516001600160801b038c81168252888116602083015284168183015290518c9133917f1381e2f7d0d4b71a58d34dc3db2051dd52769766e65eabf380c9b4ea93f0890b9181900360600190a35050505050505050505050565b614386614b8a565b6032805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33613b47565b5f516020615cb25f395f51905f5281806143d957506001600160a01b03831615155b1561449a575f6143e8856134d7565b90506001600160a01b038416158015906144145750836001600160a01b0316816001600160a01b031614155b801561442757506144258185613441565b155b156144505760405163a9fbf51f60e01b81526001600160a01b03851660048201526024016111a2565b82156144985784866001600160a01b0316826001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b5f93845260040160205250506040902080546001600160a01b0319166001600160a01b0392909216919091179055565b60695463ffffffff166144fc604080516080810182525f80825260208201819052918101829052606081019190915290565b63ffffffff8216156145755760685f614516600185615899565b63ffffffff908116825260208083019390935260409182015f2082516080810184528154600f81810b8352600160801b909104900b948101949094526001015480821692840192909252600160201b90910416606082015290506145a2565b50604080516080810182525f808252602082015263ffffffff428116928201929092524390911660608201525b60408101515f63ffffffff8083164290911611156146035760408301516145cf9063ffffffff16426158f3565b60608401516145e49063ffffffff16436158f3565b6145f690670de0b6b3a76400006158b5565b61460091906158e0565b90505b61460f83838387614bd3565b925061461c846001615906565b6069805463ffffffff92831663ffffffff199091161790558481165f9081526068602090815260408083208751928801516001600160801b03908116600160801b0290841617815590870151600191909101805460608901518616600160201b0267ffffffffffffffff19909116929095169190911793909317909255600f9190910b1215610f3a5750505f905250565b604080516080810182525f808252602082018190529181018290526060810191909152604080516080810182525f8082526020820181905291810182905260608101919091526146fd8483614df7565b506147088382614df7565b5061471d848484602001518460200151614eca565b5f858152606a602052604081205461473c9063ffffffff166001615906565b5f878152606a60209081526040808320805463ffffffff95861663ffffffff199091168117909155428516878301908152438616606089019081529b8552606b84528285209185529083529220855195909101516001600160801b03908116600160801b02951694909417845551600193909301805497518216600160201b0267ffffffffffffffff19909816939091169290921795909517905550505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054600160401b900460ff16611f6b57604051631afcd79f60e31b815260040160405180910390fd5b61482e6147dd565b5f516020615cb25f395f51905f52806148478482615b8e565b5060018101610f3a8382615b8e565b613ac16147dd565b6148666147dd565b6032805460ff19169055565b6134956147dd565b5f5f516020615cb25f395f51905f528161489385613554565b90506001600160a01b038416156148af576148af818587615005565b6001600160a01b038116156148eb576148ca5f865f5f6143b7565b6001600160a01b0381165f908152600383016020526040902080545f190190555b6001600160a01b0386161561491b576001600160a01b0386165f9081526003830160205260409020805460010190555b5f85815260028301602052604080822080546001600160a01b0319166001600160a01b038a811691821790925591518893918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a495945050505050565b5f6149d0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166150699092919063ffffffff16565b905080515f14806149f05750808060200190518101906149f09190615c49565b6111505760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016111a2565b614a598383615077565b611150335f8585855b6001600160a01b0383163b15614b8357604051630a85bd0160e11b81526001600160a01b0384169063150b7a0290614aa4908890889087908790600401615c64565b6020604051808303815f875af1925050508015614ade575060408051601f3d908101601f19168201909252614adb91810190615c96565b60015b614b45573d808015614b0b576040519150601f19603f3d011682016040523d82523d5f602084013e614b10565b606091505b5080515f03614b3d57604051633250574960e11b81526001600160a01b03851660048201526024016111a2565b805181602001fd5b6001600160e01b03198116630a85bd0160e11b14614b8157604051633250574960e11b81526001600160a01b03851660048201526024016111a2565b505b5050505050565b60325460ff16611f6b5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016111a2565b604080516080810182525f80825260208201819052918101829052606081018290529062093a80614c048187615a84565b614c0e9190615aab565b9050425f5b60ff811015614deb57614c2962093a8084615906565b92508163ffffffff168363ffffffff161115614c8c57614c498783615899565b63ffffffff168860200151614c5e9190615ad1565b88518990614c6d908390615972565b600f0b90525063ffffffff80831660408a015243166060890152614deb565b614c968784615899565b63ffffffff168860200151614cab9190615ad1565b88518990614cba908390615972565b600f90810b90915263ffffffff85165f908152606c6020908152604090912054908b0180519190920b9250614cf0908390615af0565b600f0b90525063ffffffff831660408901819052670de0b6b3a764000090614d189085615899565b614d319063ffffffff166001600160801b0389166158b5565b614d3b91906158e0565b886060015163ffffffff16614d50919061595f565b63ffffffff1660608901528760685f83614d6b896001615906565b614d759190615906565b63ffffffff908116825260208083019390935260409182015f208451938501516001600160801b03908116600160801b02941693909317835590830151600192830180546060909501518316600160201b0267ffffffffffffffff19909516919092161792909217909155929650869201614c13565b50959695505050505050565b5f4263ffffffff16836020015163ffffffff16111580614e1957508251600f0b155b15614e2557505f61084f565b5f428460200151614e369190615899565b905062ed4e0063ffffffff821611614e4e5780614e53565b62ed4e005b90505f614e5f8261362a565b85519091506001600160801b0390811690670de0b6b3a764000090614e86908416836158b5565b614e9091906158e0565b600f0b855262ed4e00614eab670de0b6b3a7640000836158b5565b614eb591906158e0565b600f0b60208601525060019250505092915050565b4263ffffffff16846020015163ffffffff161115614f6b5760208085015163ffffffff165f908152606c9091526040902054600f0b614f098382615af0565b9050846020015163ffffffff16846020015163ffffffff1603614f3357614f308282615972565b90505b60208581015163ffffffff165f908152606c9091526040902080546001600160801b0319166001600160801b03929092169190911790555b4263ffffffff16836020015163ffffffff161115610f3a57836020015163ffffffff16836020015163ffffffff161115610f3a5760208084015163ffffffff165f908152606c9091526040902054600f0b614fc68282615972565b60208086015163ffffffff165f908152606c9091526040902080546001600160801b039092166001600160801b03199092169190911790555050505050565b6150108383836150d8565b611150576001600160a01b03831661503e57604051637e27328960e01b8152600481018290526024016111a2565b60405163177e802f60e01b81526001600160a01b0383166004820152602481018290526044016111a2565b6060612c7f84845f8561513c565b6001600160a01b0382166150a057604051633250574960e11b81525f60048201526024016111a2565b5f6150ac83835f61487a565b90506001600160a01b03811615611150576040516339e3563760e11b81525f60048201526024016111a2565b5f6001600160a01b03831615801590612c7f5750826001600160a01b0316846001600160a01b0316148061511157506151118484613441565b80612c7f5750826001600160a01b031661512a8361350e565b6001600160a01b031614949350505050565b60608247101561519d5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016111a2565b5f5f866001600160a01b031685876040516151b891906159f9565b5f6040518083038185875af1925050503d805f81146151f2576040519150601f19603f3d011682016040523d82523d5f602084013e6151f7565b606091505b509150915061520887838387615213565b979650505050505050565b606083156152815782515f0361527a576001600160a01b0385163b61527a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016111a2565b5081612c7f565b612c7f83838151156152965781518083602001fd5b8060405162461bcd60e51b81526004016111a2919061530e565b6001600160e01b031981168114611cf6575f5ffd5b5f602082840312156152d5575f5ffd5b8135612218816152b0565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f61221860208301846152e0565b5f60208284031215615330575f5ffd5b5035919050565b80356001600160a01b038116811461534d575f5ffd5b919050565b5f5f60408385031215615363575f5ffd5b61536c83615337565b946020939093013593505050565b5f6020828403121561538a575f5ffd5b61221882615337565b602080825282518282018190525f918401906040840190835b818110156153ca5783518352602093840193909201916001016153ac565b509095945050505050565b803563ffffffff8116811461534d575f5ffd5b5f5f604083850312156153f9575f5ffd5b82359150615409602084016153d5565b90509250929050565b80356001600160801b038116811461534d575f5ffd5b5f5f5f5f6080858703121561543b575f5ffd5b8435935061544b602086016153d5565b92506040850135915061546060608601615412565b905092959194509250565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156154a8576154a861546b565b604052919050565b5f67ffffffffffffffff8211156154c9576154c961546b565b50601f01601f191660200190565b5f6154e96154e4846154b0565b61547f565b90508281528383830111156154fc575f5ffd5b828260208301375f602084830101529392505050565b5f82601f830112615521575f5ffd5b612218838335602085016154d7565b5f5f5f5f60808587031215615543575f5ffd5b61554c85615337565b935061555a60208601615337565b9250604085013567ffffffffffffffff811115615575575f5ffd5b61558187828801615512565b925050606085013567ffffffffffffffff81111561559d575f5ffd5b6155a987828801615512565b91505092959194509250565b5f5f5f606084860312156155c7575f5ffd5b6155d084615337565b92506155de60208501615337565b929592945050506040919091013590565b5f5f5f60408486031215615601575f5ffd5b833567ffffffffffffffff811115615617575f5ffd5b8401601f81018613615627575f5ffd5b803567ffffffffffffffff81111561563d575f5ffd5b8660208260051b8401011115615651575f5ffd5b6020918201979096509401359392505050565b5f5f5f5f5f60a08688031215615678575f5ffd5b61568186615337565b945061568f60208701615412565b935061569d604087016153d5565b9250606086013591506156b260808701615412565b90509295509295909350565b5f602082840312156156ce575f5ffd5b612218826153d5565b8015158114611cf6575f5ffd5b5f5f604083850312156156f5575f5ffd5b6156fe83615337565b9150602083013561570e816156d7565b809150509250929050565b5f5f5f5f6080858703121561572c575f5ffd5b61573585615337565b935061574360208601615337565b925060408501359150606085013567ffffffffffffffff811115615765575f5ffd5b8501601f81018713615775575f5ffd5b6155a9878235602084016154d7565b5f5f5f5f60808587031215615797575f5ffd5b8435935061544b60208601615412565b5f5f604083850312156157b8575f5ffd5b6157c183615412565b9150615409602084016153d5565b5f5f5f5f608085870312156157e2575f5ffd5b6157eb85615412565b935061544b602086016153d5565b5f5f6040838503121561580a575f5ffd5b61581383615337565b915061540960208401615337565b600181811c9082168061583557607f821691505b60208210810361585357634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b634e487b7160e01b5f52601160045260245ffd5b5f600182016158925761589261586d565b5060010190565b63ffffffff828116828216039081111561084f5761084f61586d565b808202811582820484141761084f5761084f61586d565b634e487b7160e01b5f52601260045260245ffd5b5f826158ee576158ee6158cc565b500490565b8181038181111561084f5761084f61586d565b63ffffffff818116838216019081111561084f5761084f61586d565b5f63ffffffff8216806159375761593761586d565b5f190192915050565b6001600160801b03828116828216039081111561084f5761084f61586d565b8082018082111561084f5761084f61586d565b600f82810b9082900b0360016001607f1b0319811260016001607f1b038213171561084f5761084f61586d565b5f63ffffffff821663ffffffff81036159ba576159ba61586d565b60010192915050565b5f602082840312156159d3575f5ffd5b5051919050565b6001600160801b03818116838216019081111561084f5761084f61586d565b5f82518060208501845e5f920191825250919050565b5f60208284031215615a1f575f5ffd5b815167ffffffffffffffff811115615a35575f5ffd5b8201601f81018413615a45575f5ffd5b8051615a536154e4826154b0565b818152856020838501011115615a67575f5ffd5b8160208401602083015e5f91810160200191909152949350505050565b5f63ffffffff831680615a9957615a996158cc565b8063ffffffff84160491505092915050565b63ffffffff8181168382160290811690818114615aca57615aca61586d565b5092915050565b5f82600f0b82600f0b0280600f0b9150808214615aca57615aca61586d565b600f81810b9083900b0160016001607f1b03811360016001607f1b03198212171561084f5761084f61586d565b5f6001600160801b03831680615b3557615b356158cc565b806001600160801b0384160491505092915050565b601f82111561115057805f5260205f20601f840160051c81016020851015615b6f5750805b601f840160051c820191505b81811015614b83575f8155600101615b7b565b815167ffffffffffffffff811115615ba857615ba861546b565b615bbc81615bb68454615821565b84615b4a565b6020601f821160018114615bee575f8315615bd75750848201515b5f19600385901b1c1916600184901b178455614b83565b5f84815260208120601f198516915b82811015615c1d5787850151825560209485019460019092019101615bfd565b5084821015615c3a57868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b5f60208284031215615c59575f5ffd5b8151612218816156d7565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f9061216b908301846152e0565b5f60208284031215615ca6575f5ffd5b8151612218816152b056fe80bb2b638cc20bc4d0a60d66940f3ab4a00c1d7b313497ca82fb0b4ab0079300a26469706673582212200837189db24b8823928b0e479d8a73bd25462dfb51f1153d1970a1f3294ea63d64736f6c634300081b0033
Deployed Bytecode Sourcemap
151835:38179:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;101704:316;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;101704:316:0;;;;;;;;102604:149;;;:::i;:::-;;;;;;;:::i;103892:158::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1506:32:1;;;1488:51;;1476:2;1461:18;103892:158:0;1342:203:1;103711:115:0;;;;;;:::i;:::-;;:::i;:::-;;184439:104;184523:12;;-1:-1:-1;;;;;184523:12:0;184439:104;;184926:562;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;154033:68::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;154033:68:0;;;;;;;;;;-1:-1:-1;;;154033:68:0;;;;;;;;;3797:2:1;3786:22;;;3768:41;;3845:22;;;;3840:2;3825:18;;3818:50;3916:10;3904:23;;;3884:18;;;3877:51;;;;3964:23;;;3959:2;3944:18;;3937:51;3755:3;3740:19;154033:68:0;3545:449:1;171654:1764:0;;;;;;:::i;:::-;;:::i;155640:736::-;;;;;;:::i;:::-;;:::i;184551:96::-;184625:14;;-1:-1:-1;;;184625:14:0;;;;184551:96;;165321:191;;;;;;:::i;:::-;;:::i;187690:2319::-;;;;;;:::i;:::-;;:::i;184655:109::-;184736:20;;-1:-1:-1;;;;;184736:20:0;184655:109;;;-1:-1:-1;;;;;7834:47:1;;;7816:66;;7804:2;7789:18;184655:109:0;7670:218:1;185991:1695:0;;;;;;:::i;:::-;;:::i;:::-;;;8566:25:1;;;8554:2;8539:18;185991:1695:0;8420:177:1;165754:1491:0;;;;;;:::i;:::-;;:::i;184772:146::-;;;;;;:::i;:::-;;:::i;105278:134::-;;;;;;:::i;:::-;;:::i;183623:585::-;;;;;;:::i;:::-;;:::i;154160:23::-;;;;;-1:-1:-1;;;;;154160:23:0;;;154108:45;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;8964:2:1;8953:22;;;;8935:41;;8923:2;8908:18;154108:45:0;8791:191:1;145967:86:0;146038:7;;;;145967:86;;102417:120;;;;;;:::i;:::-;;:::i;102084:271::-;;;;;;:::i;:::-;;:::i;150262:103::-;;;:::i;156384:280::-;;;;;;:::i;:::-;;:::i;153759:46::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;153759:46:0;;;;-1:-1:-1;;;153759:46:0;;;;;;;;;-1:-1:-1;;;153759:46:0;;;;;;;;;-1:-1:-1;;;;;9232:47:1;;;9214:66;;9316:47;;;;9311:2;9296:18;;9289:75;9412:10;9400:23;;;9380:18;;;9373:51;;;;9460:23;9455:2;9440:18;;9433:51;9201:3;9186:19;153759:46:0;8987:503:1;158491:1073:0;;;;;;:::i;:::-;;:::i;149527:147::-;148358:22;149658:8;-1:-1:-1;;;;;149658:8:0;149527:147;;153901:44;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;153901:44:0;;;;;;;;;;-1:-1:-1;;;153901:44:0;;;;;153952:19;;;;;;;;;;;;9669:10:1;9657:23;;;9639:42;;9627:2;9612:18;153952:19:0;9495:192:1;102822:153:0;;;:::i;177646:199::-;;;;;;:::i;:::-;;:::i;184315:116::-;;;;;;:::i;:::-;-1:-1:-1;;;;;184403:20:0;184378:5;184403:20;;;:14;:20;;;;;;;;;184315:116;;;;9864:4:1;9852:17;;;9834:36;;9822:2;9807:18;184315:116:0;9692:184:1;104122:146:0;;;;;;:::i;:::-;;:::i;165520:226::-;;;;;;:::i;:::-;;:::i;178507:2466::-;;;;;;:::i;:::-;;:::i;153813:47::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;176486:1152;;;;;;:::i;:::-;;:::i;183443:172::-;;;:::i;185492:495::-;;;;;;:::i;:::-;;:::i;182095:782::-;;;;;;:::i;:::-;;:::i;180981:1106::-;;;;;;:::i;:::-;;:::i;183136:271::-;;;;;;:::i;:::-;;:::i;169846:1800::-;;;;;;:::i;:::-;;:::i;153978:48::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;104339:213;;;;;;:::i;:::-;;:::i;150520:220::-;;;;;;:::i;:::-;;:::i;184216:68::-;;;:::i;101704:316::-;101817:4;-1:-1:-1;;;;;;101854:40:0;;-1:-1:-1;;;101854:40:0;;:105;;-1:-1:-1;;;;;;;101911:48:0;;-1:-1:-1;;;101911:48:0;101854:105;:158;;;-1:-1:-1;;;;;;;;;;99727:40:0;;;101976:36;101834:178;101704:316;-1:-1:-1;;101704:316:0:o;102604:149::-;-1:-1:-1;;;;;;;;;;;102731:14:0;;102649:13;;101087:21;;;102731:14;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;102604:149;:::o;103892:158::-;103959:7;103979:22;103993:7;103979:13;:22::i;:::-;;104021:21;104034:7;104021:12;:21::i;103711:115::-;103783:35;103792:2;103796:7;25439:10;103783:8;:35::i;:::-;103711:115;;:::o;184926:562::-;-1:-1:-1;;;;;185039:21:0;;185025:11;185039:21;;;:14;:21;;;;;;184987:25;;185039:21;;;185082:20;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;185082:20:0;;185071:31;;185117:5;:10;;185126:1;185117:10;185113:31;;185129:15;184926:562;;;:::o;185113:31::-;185165:20;;185200:245;185226:12;;-1:-1:-1;;;185226:12:0;;;;185221:17;;185200:245;;;185281:5;-1:-1:-1;;;;;185265:21:0;:12;185274:2;185265:8;:12::i;:::-;-1:-1:-1;;;;;185265:21:0;;185261:173;;185332:2;185307:8;185316:12;185307:22;;;;;;;;:::i;:::-;;;;;;;;;;:27;185353:14;;;;:::i;:::-;;;;185406:5;185390:21;;:12;:21;185386:32;185413:5;185386:32;;185240:4;;185200:245;;;;185465:15;;184926:562;;;:::o;171654:1764::-;143037:21;:19;:21::i;:::-;145572:19:::1;:17;:19::i;:::-;171852:8:::2;156764;156746:15;:26;156742:56;;;156781:17;;-1:-1:-1::0;;;156781:17:0::2;;;;;;;;;;;156742:56;157371:24:::3;157398:15:::0;;;:6:::3;:15;::::0;;;;;;;;157371:42;;::::3;::::0;::::3;::::0;;;;-1:-1:-1;;;;;157371:42:0;;::::3;::::0;;;-1:-1:-1;;;157371:42:0;;::::3;;::::0;;::::3;::::0;;;;;;;::::3;::::0;::::3;::::0;;::::3;::::0;;;;;;;-1:-1:-1;;;157371:42:0;::::3;::::0;;::::3;::::0;;;;171867:7;;157371:42;157428:15;;;;:57:::3;;;157473:4;:12;;;157447:38;;157454:15;157447:38;;;157428:57;157424:1040;;;157502:15;157542;157520:4;:12;;;:38;;;;:::i;:::-;157502:56;;157573:21;157597:39;157627:8;157597:29;:39::i;:::-;157687:11:::0;;157573:63;;-1:-1:-1;157651:16:0::3;::::0;153201:8:::3;::::0;157679:32:::3;::::0;153407:4:::3;::::0;-1:-1:-1;;;;;157679:20:0::3;:32;:::i;:::-;157678:44;;;;:::i;:::-;157651:72;;157770:8;-1:-1:-1::0;;;;;157756:22:0::3;:4;:10;;;-1:-1:-1::0;;;;;157756:22:0::3;;;:70;;;;157820:6;157801:4;:15;;;157783:33;;:15;:33;;;;:::i;:::-;157782:44;157756:70;157752:701;;;157847:21;157884:1;157871:4;:10;;;-1:-1:-1::0;;;;;157871:14:0::3;;:74;;153359:4;157871:74;;;157888:39;157918:8;157888:29;:39::i;:::-;157847:98;;157982:58;158004:7;158013:4;:11;;;158026:13;157982:21;:58::i;:::-;158077:220;158111:7;158141:57;;;;;;;;158170:4;:11;;;158141:57;;;;;;158185:4;:12;;;158141:57;;;;::::0;158221::::3;;;;;;;;158250:4;:11;;;158221:57;;;;;;158265:4;:12;;;158221:57;;;;::::0;158077:11:::3;:220::i;:::-;-1:-1:-1::0;158334:15:0::3;::::0;;;:6:::3;:15;::::0;;;;:32;;-1:-1:-1;;;;;158334:32:0;;::::3;-1:-1:-1::0;;;158334:32:0::3;::::0;::::3;;::::0;;-1:-1:-1;158385:26:0::3;:52:::0;;::::3;158421:15;158385:52;-1:-1:-1::0;;;158385:52:0::3;-1:-1:-1::0;;158385:52:0;;::::3;;::::0;;157752:701:::3;157487:977;;;157424:1040;171911:10:::4;171891:16;171899:7:::0;171891::::4;:16::i;:::-;-1:-1:-1::0;;;;;171891:30:0::4;;171887:58;;171930:15;;-1:-1:-1::0;;;171930:15:0::4;;;;;;;;;;;171887:58;171966:24;171993:15:::0;;;:6:::4;:15;::::0;;;;;;;171966:42;;::::4;::::0;::::4;::::0;;;;-1:-1:-1;;;;;171966:42:0;;::::4;::::0;;;-1:-1:-1;;;171966:42:0;;::::4;;::::0;;::::4;::::0;;;;;;;::::4;::::0;::::4;::::0;;::::4;::::0;;;;;;;-1:-1:-1;;;171966:42:0;::::4;::::0;;::::4;::::0;;;;;172023:16;172019:44:::4;;172048:15;;-1:-1:-1::0;;;172048:15:0::4;;;;;;;;;;;172019:44;172119:17;172154:18;172139:4;:12;;;:33;;;;:::i;:::-;172119:53:::0;-1:-1:-1;172183:29:0::4;172215:36;172235:15;172119:53:::0;172215:36:::4;:::i;:::-;172183:68:::0;-1:-1:-1;153201:8:0::4;172266:32;::::0;::::4;;172262:62;;;172307:17;;-1:-1:-1::0;;;172307:17:0::4;;;;;;;;;;;172262:62;172412:16;172431:31;172450:4;:11;;;172431:18;:31::i;:::-;172412:50;;172473:18;172494:54;172515:8;172525:22;172494:20;:54::i;:::-;172473:75;;172576:13;-1:-1:-1::0;;;;;172563:26:0::4;:10;-1:-1:-1::0;;;;;172563:26:0::4;;172559:57;;;172598:18;;-1:-1:-1::0;;;172598:18:0::4;;;;;;;;;;;172559:57;172672:55;172694:7;172703:4;:11;;;172716:10;172672:21;:55::i;:::-;172771:314;172797:7;172819:121;;;;;;;;172875:4;:11;;;172819:121;;;;;;172912:4;:12;;;172819:121;;;;::::0;172955:119:::4;;;;;;;;173011:4;:11;;;172955:119;;;;;;173048:10;172955:119;;;;::::0;172771:11:::4;:314::i;:::-;173154:173;;;;;;;;173190:4;:11;;;-1:-1:-1::0;;;;;173154:173:0::4;;;;;173307:8;-1:-1:-1::0;;;;;173154:173:0::4;;;;;173225:10;173154:173;;;;;;173269:15;173154:173;;;;::::0;173136:6:::4;:15;173143:7;173136:15;;;;;;;;;;;:191;;;;;;;;;;;;;-1:-1:-1::0;;;;;173136:191:0::4;;;;;-1:-1:-1::0;;;;;173136:191:0::4;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;173136:191:0::4;;;;;-1:-1:-1::0;;;;;173136:191:0::4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;173378:7;173366:10;-1:-1:-1::0;;;;;173353:57:0::4;;173387:10;173399;173353:57;;;;;;14423:10:1::0;14411:23;;;;14393:42;;-1:-1:-1;;;;;14471:47:1;14466:2;14451:18;;14444:75;14381:2;14366:18;;14221:304;173353:57:0::4;;;;;;;;171876:1542;;;;;157360:1123:::3;156809:1;145602::::2;143081:20:::0;142298:1;143601:7;:22;143418:213;143081:20;171654:1764;;;;:::o;155640:736::-;24569:21;19885:15;;-1:-1:-1;;;19885:15:0;;;;19884:16;;19932:14;;19738:30;20317:16;;:34;;;;;20337:14;20317:34;20297:54;;20362:17;20382:11;:16;;20397:1;20382:16;:50;;;;-1:-1:-1;20410:4:0;20402:25;:30;20382:50;20362:70;;20450:12;20449:13;:30;;;;;20467:12;20466:13;20449:30;20445:93;;;20503:23;;-1:-1:-1;;;20503:23:0;;;;;;;;;;;20445:93;20548:18;;-1:-1:-1;;20548:18:0;20565:1;20548:18;;;20577:69;;;;20612:22;;-1:-1:-1;;;;20612:22:0;-1:-1:-1;;;20612:22:0;;;20577:69;-1:-1:-1;;;;;155836:26:0;::::1;::::0;;:77:::1;;-1:-1:-1::0;;;;;;155882:31:0;::::1;::::0;155836:77:::1;155832:103;;;155922:13;;-1:-1:-1::0;;;155922:13:0::1;;;;;;;;;;;155832:103;155960:27;155974:4;155980:6;155960:13;:27::i;:::-;155998:24;:22;:24::i;:::-;156033:17;:15;:17::i;:::-;156061:26;156076:10;156061:14;:26::i;:::-;156100:8;:6;:8::i;:::-;156119:12;:46:::0;;-1:-1:-1;;;;;156119:46:0;;::::1;-1:-1:-1::0;;;;;;156119:46:0;;::::1;;::::0;;;156176:25:::1;:45:::0;;;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;156119:12:::1;156271:15:::0;;:12:::1;:15;::::0;:19;:42;;156352:15:::1;156271;156324:44:::0;;::::1;-1:-1:-1::0;;156300:12:0::1;156271:42:::0;;;::::1;-1:-1:-1::0;;;156271:42:0::1;156324:44:::0;;;;-1:-1:-1;;156324:44:0;;;;;;;::::1;::::0;;20668:104;;;;20703:23;;-1:-1:-1;;;;20703:23:0;;;20746:14;;-1:-1:-1;14683:50:1;;20746:14:0;;14671:2:1;14656:18;20746:14:0;;;;;;;20668:104;19670:1109;;;;;155640:736;;;;:::o;165321:191::-;165421:35;165442:4;165448:7;165421:20;:35::i;:::-;165467:36;165486:4;165491:2;165495:7;165467:18;:36::i;:::-;165321:191;;;:::o;187690:2319::-;187803:1;187791:9;:13;:32;;;;;187821:2;187808:9;:15;;187791:32;187783:63;;;;-1:-1:-1;;;187783:63:0;;14946:2:1;187783:63:0;;;14928:21:1;14985:2;14965:18;;;14958:30;-1:-1:-1;;;15004:18:1;;;14997:48;15062:18;;187783:63:0;;;;;;;;;187864:9;187859:2147;187883:9;187879:1;:13;:36;;;;-1:-1:-1;187896:19:0;;;187879:36;187859:2147;;;187933:15;187951:8;;187960:1;187951:11;;;;;;;:::i;:::-;;;;;;;;;;187973:16;187992:23;;;:14;:23;;;;;;;;187951:11;;-1:-1:-1;;187992:23:0;;188030:14;;;:54;;-1:-1:-1;188048:25:0;;;;:16;:25;;;;;;;;188074:1;188048:28;;;;;;;;:31;;:28;:31;:36;188030:54;188026:68;;;188086:8;;;;188026:68;188107:21;;188208:1;188181:1768;188227:9;188211:25;;:12;:25;;;188181:1768;;188269:19;188291:25;;;:16;:25;;;;;;;;:39;;;;;;;;;;188349:8;;;;188291:39;;188349:8;;:13;;188345:27;;188364:8;;;188345:27;188415:12;188389:578;188444:1;188429:11;:16;;;188389:578;;188481:23;188507:25;;;:16;:25;;;;;;;;:38;;;;;;;;;;;;;188481:64;;;;;;;;;;;;;;;-1:-1:-1;;;188481:64:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;188481:64:0;;;;;;;;188585:8;;;188481:64;;188585:8;;;;-1:-1:-1;188564:388:0;;188658:10;:15;;;-1:-1:-1;;;;;188642:33:0;188618:58;;188716:10;:16;;;:21;;188736:1;188716:21;:188;;188903:1;188716:188;;;188881:16;;;;188806:15;;-1:-1:-1;;;;;188865:34:0;;;;188790:45;;153407:4;;188790:33;:45;:::i;:::-;188789:110;;;;:::i;:::-;188766:10;:13;;;:134;;;;:::i;:::-;188699:205;;188927:5;;;188564:388;-1:-1:-1;188447:13:0;;;;:::i;:::-;;;;188389:578;;;-1:-1:-1;189019:8:0;;;;188983:16;;189019:8;;;;189002:25;;;;:57;;189058:1;189002:57;;;189047:8;;;;189030:25;;189047:8;;189030:14;:25;:::i;:::-;188983:76;;;-1:-1:-1;153201:8:0;189085:18;;:39;;189116:8;189085:39;;;153201:8;189085:39;189074:50;-1:-1:-1;189139:17:0;153201:8;189160:20;153407:4;189074:50;189160:20;:::i;:::-;189159:32;;;;:::i;:::-;189139:52;-1:-1:-1;189206:18:0;153407:4;189260:32;153407:4;153305;189260:32;:::i;:::-;189247:46;;-1:-1:-1;;;;;189247:46:0;:9;:46;:::i;:::-;189246:60;;;;:::i;:::-;189227:80;;153359:4;189227:80;:::i;:::-;189206:101;-1:-1:-1;153305:4:0;189335:27;;:131;;153359:4;189407:28;;:59;;189456:10;189335:131;;189407:59;153359:4;189335:131;;;153305:4;189335:131;189322:144;-1:-1:-1;153407:4:0;189513:32;153201:8;-1:-1:-1;;;;;189513:22:0;;:32;:::i;:::-;189512:46;;;;:::i;:::-;189483:77;;-1:-1:-1;;;;;189483:77:0;;;-1:-1:-1;;;189483:77:0;;;;;;;153407:4;;189604:35;;189629:10;;189604:22;;:35;:::i;:::-;189603:49;;;;:::i;:::-;189575:79;;-1:-1:-1;;;;;;189575:79:0;-1:-1:-1;;;;;189575:79:0;;;;;;;189675:24;;;;;;;;:78;;;;-1:-1:-1;189752:1:0;189703:25;;;:16;:25;;;;;189752:1;189729:16;:12;189744:1;189729:16;:::i;:::-;189703:43;;;;;;;;;;;;;;;-1:-1:-1;189703:43:0;:46;;;;:50;189675:78;189671:267;;;189911:11;;;189859:25;;;:16;:25;;;;;-1:-1:-1;;;189911:11:0;;;;;;189859:25;189885:16;:12;189900:1;189885:16;:::i;:::-;189859:43;;;;;;;;;;;;;-1:-1:-1;189859:43:0;:49;:63;;;-1:-1:-1;;;189859:49:0;;;;:63;:::i;:::-;189774:60;189787:25;;;:16;:25;;;;;189774:12;;:60;;189813:16;:12;189828:1;189813:16;:::i;:::-;189787:43;;;;;;;;;;;;;;;;;;-1:-1:-1;189787:43:0;;;:46;;;;;;189774:60;;;;;;;;;;;;;:148;;-1:-1:-1;;;;;;189774:148:0;-1:-1:-1;;;;;189774:148:0;;;;;;;;;;189671:267;188254:1695;;;;188181:1768;188238:14;;;;:::i;:::-;;;;188181:1768;;;-1:-1:-1;189964:34:0;;;189985:1;16285:42:1;;16315:10;16363:23;;16358:2;16343:18;;16336:51;189976:7:0;;189964:34;;16258:18:1;189964:34:0;;;;;;;187922:2084;;;;187859:2147;187917:3;;;;:::i;:::-;;;;187859:2147;;185991:1695;186208:15;143037:21;:19;:21::i;:::-;145572:19:::1;:17;:19::i;:::-;186189:8:::2;156764;156746:15;:26;156742:56;;;156781:17;;-1:-1:-1::0;;;156781:17:0::2;;;;;;;;;;;156742:56;186236:6:::3;-1:-1:-1::0;;;;;186236:11:0::3;186246:1;186236:11:::0;186232:39:::3;;186256:15;;-1:-1:-1::0;;;186256:15:0::3;;;;;;;;;;;186232:39;186282:17;::::0;::::3;::::0;;:43:::3;;-1:-1:-1::0;153201:8:0::3;186303:22;::::0;::::3;;186282:43;186278:73;;;186334:17;;-1:-1:-1::0;;;186334:17:0::3;;;;;;;;;;;186278:73;-1:-1:-1::0;;;;;186362:23:0;::::3;186358:49;;186394:13;;-1:-1:-1::0;;;186394:13:0::3;;;;;;;;;;;186358:49;-1:-1:-1::0;;;;;186418:25:0;::::3;;::::0;;;:14:::3;:25;::::0;;;;;153462:3:::3;186418:47;:25:::0;;::::3;:47;186414:77;;186474:17;;-1:-1:-1::0;;;186474:17:0::3;;;;;;;;;;;186414:77;186504:17;186524:38;186550:12:::0;186531:15:::3;186524:38;:::i;:::-;186504:58;;186576:13;186591:18;186613:61;186638:6;186646:12;186660:13;186613:24;:61::i;:::-;186575:99;;;;186719:28;186750:90;;;;;;;;186798:6;186750:90;;;;;;186822:10;186750:90;;;;::::0;186719:121:::3;;186895:44;186907:1;186910:19;;;;;;;;186924:1;186910:19;;;;;;186927:1;186910:19;;;;::::0;186931:7:::3;186895:11;:44::i;:::-;187016:12;::::0;:37:::3;::::0;-1:-1:-1;;;187016:37:0;;187047:4:::3;187016:37;::::0;::::3;1488:51:1::0;186992:21:0::3;::::0;-1:-1:-1;;;;;187016:12:0::3;::::0;:22:::3;::::0;1461:18:1;;187016:37:0::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;187060:12;::::0;186992:61;;-1:-1:-1;187060:64:0::3;::::0;-1:-1:-1;;;;;187060:12:0::3;187090:10;187110:4;-1:-1:-1::0;;;;;187060:64:0;::::3;:29;:64::i;:::-;187176:22;-1:-1:-1::0;;;;;187176:22:0;::::3;:13:::0;:22:::3;:::i;:::-;187135:12;::::0;:37:::3;::::0;-1:-1:-1;;;187135:37:0;;187166:4:::3;187135:37;::::0;::::3;1488:51:1::0;-1:-1:-1;;;;;187135:12:0;;::::3;::::0;:22:::3;::::0;1461:18:1;;187135:37:0::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:63;187131:102;;187217:16;;-1:-1:-1::0;;;187217:16:0::3;;;;;;;;;;;187131:102;187277:12;:14:::0;;::::3;;-1:-1:-1::0;;;187277:14:0;;::::3;::::0;::::3;::::0;;::::3;::::0;;::::3;;-1:-1:-1::0;;;;187277:14:0;;::::3;::::0;;;::::3;::::0;;;-1:-1:-1;;;;;187302:25:0;::::3;-1:-1:-1::0;187302:25:0;;;:14:::3;:25;::::0;;;;:27;;::::3;::::0;;::::3;::::0;;::::3;::::0;;::::3;-1:-1:-1::0;;187302:27:0;;::::3;::::0;;;::::3;::::0;;;187277:14;-1:-1:-1;187349:29:0::3;187317:9:::0;187277:14;187349:9:::3;:29::i;:::-;187409:145;::::0;;::::3;::::0;::::3;::::0;;-1:-1:-1;;;;;187409:145:0;;::::3;::::0;;;;::::3;;::::0;;::::3;::::0;;;::::3;::::0;;::::3;::::0;;;;;;187507:15:::3;187409:145:::0;::::3;::::0;;;;;;-1:-1:-1;187391:15:0;;;:6:::3;:15:::0;;;;;;;:163;;;;;::::3;-1:-1:-1::0;;;187391:163:0::3;::::0;;;::::3;::::0;;;::::3;::::0;;;;;;::::3;::::0;;;;;::::3;-1:-1:-1::0;;;187391:163:0::3;-1:-1:-1::0;;187391:163:0;;;;;;::::3;::::0;;;;;;;::::3;::::0;;187567:50:::3;187398:7:::0;187441:6;187606:10;187567:21:::3;:50::i;:::-;187635:47;::::0;;-1:-1:-1;;;;;16777:47:1;;16759:66;;16873:10;16861:23;;16856:2;16841:18;;16834:51;187654:7:0;;-1:-1:-1;;;;;187635:47:0;::::3;::::0;::::3;::::0;16732:18:1;187635:47:0::3;;;;;;;186225:1461;;;;;145602:1:::2;143081:20:::0;142298:1;143601:7;:22;143418:213;143081:20;185991:1695;;;;;;;:::o;165754:1491::-;143037:21;:19;:21::i;:::-;165822:13:::1;165838:17;165847:7;165838:8;:17::i;:::-;165822:33:::0;-1:-1:-1;;;;;;165870:19:0;::::1;165866:48;;165898:16;;-1:-1:-1::0;;;165898:16:0::1;;;;;;;;;;;165866:48;-1:-1:-1::0;;;;;165929:19:0;::::1;165938:10;165929:19;165925:47;;165957:15;;-1:-1:-1::0;;;165957:15:0::1;;;;;;;;;;;165925:47;165993:24;166020:15:::0;;;:6:::1;:15;::::0;;;;;;;165993:42;;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;165993:42:0;;::::1;::::0;;;-1:-1:-1;;;165993:42:0;;::::1;;::::0;;::::1;::::0;;;;;;;::::1;::::0;::::1;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;165993:42:0;::::1;::::0;;::::1;::::0;;;;;166050:16;166046:44:::1;;166075:15;;-1:-1:-1::0;;;166075:15:0::1;;;;;;;;;;;166046:44;166131:4;:12;;;166105:38;;166112:15;166105:38;;;166101:67;;;166152:16;;-1:-1:-1::0;;;166152:16:0::1;;;;;;;;;;;166101:67;166206:11:::0;;166325:20:::1;::::0;-1:-1:-1;;;;;166325:20:0;;::::1;166316:29:::0;;::::1;;166312:149;;;166362:20;:24:::0;;-1:-1:-1;;;;;;166362:24:0::1;::::0;;166312:149:::1;;;166419:20;:30:::0;;166443:6;;166419:20;::::1;::::0;:30:::1;::::0;166443:6;;-1:-1:-1;;;;;166419:30:0::1;;:::i;:::-;;;;;;;;-1:-1:-1::0;;;;;166419:30:0::1;;;;;-1:-1:-1::0;;;;;166419:30:0::1;;;;;;166312:149;166517:15;::::0;;;:6:::1;:15;::::0;;;;;;;166510:22;;;;::::1;::::0;;-1:-1:-1;;166510:22:0;;;166619:104;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;166699:12;;::::1;::::0;166510:22:::1;166619:104;::::0;;::::1;::::0;166817:19;;;;::::1;::::0;;;;;;;;::::1;::::0;;;;166619:104;166787:50:::1;::::0;166524:7;;166619:104;;166787:11:::1;:50::i;:::-;166902:23;::::0;;;:14:::1;:23;::::0;;;;166895:30;;-1:-1:-1;;166895:30:0::1;::::0;;166993:12:::1;::::0;:45:::1;::::0;-1:-1:-1;;;;;166993:12:0::1;167019:10;-1:-1:-1::0;;;;;166993:45:0;::::1;:25;:45::i;:::-;167085:14;167091:7;167085:5;:14::i;:::-;167150:10;167135:26;::::0;;;:14:::1;:26;::::0;;;;;;;;:28;;-1:-1:-1;;167135:28:0;::::1;;::::0;;::::1;-1:-1:-1::0;;167135:28:0;;;::::1;;::::0;;167200:37;;-1:-1:-1;;;;;7834:47:1;;7816:66;;167221:7:0;;167150:10;167200:37:::1;::::0;7789:18:1;167200:37:0::1;;;;;;;165811:1434;;;;143081:20:::0;142298:1;143601:7;:22;143418:213;143081:20;165754:1491;:::o;184772:146::-;149413:13;:11;:13::i;:::-;-1:-1:-1;;;;;184842:23:0;::::1;184838:49;;184874:13;;-1:-1:-1::0;;;184874:13:0::1;;;;;;;;;;;184838:49;184894:8;:20:::0;;-1:-1:-1;;;;;;184894:20:0::1;-1:-1:-1::0;;;;;184894:20:0;;;::::1;::::0;;;::::1;::::0;;184772:146::o;105278:134::-;105365:39;105382:4;105388:2;105392:7;105365:39;;;;;;;;;;;;:16;:39::i;183623:585::-;143037:21;:19;:21::i;:::-;183708:14:::1;::::0;-1:-1:-1;;;183708:14:0;::::1;;;183700:48;;;::::0;-1:-1:-1;;;183700:48:0;;17098:2:1;183700:48:0::1;::::0;::::1;17080:21:1::0;17137:2;17117:18;;;17110:30;-1:-1:-1;;;17156:18:1;;;17149:51;17217:18;;183700:48:0::1;16896:345:1::0;183700:48:0::1;183783:10;183763:16;183771:7:::0;183763::::1;:16::i;:::-;-1:-1:-1::0;;;;;183763:30:0::1;;183759:58;;183802:15;;-1:-1:-1::0;;;183802:15:0::1;;;;;;;;;;;183759:58;183838:24;183865:15:::0;;;:6:::1;:15;::::0;;;;;;;183838:42;;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;183838:42:0;;::::1;::::0;;;-1:-1:-1;;;183838:42:0;;::::1;;::::0;;::::1;::::0;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;183838:42:0;::::1;::::0;;::::1;::::0;;;;183947:15;;;;;;;183940:22;;;-1:-1:-1;;183940:22:0;;;;183973:14:::1;183872:7:::0;183973:5:::1;:14::i;:::-;184038:10;184023:26;::::0;;;:14:::1;:26;::::0;;;;:28;;-1:-1:-1;;184023:28:0;::::1;;::::0;;::::1;-1:-1:-1::0;;184023:28:0;;;::::1;;::::0;;184083:12:::1;::::0;:45:::1;::::0;-1:-1:-1;;;;;184083:12:0;;::::1;::::0;-1:-1:-1;;;;;184083:45:0;::::1;:25;:45::i;:::-;184154:46;::::0;-1:-1:-1;;;;;7834:47:1;;7816:66;;184184:7:0;;184172:10:::1;::::0;184154:46:::1;::::0;7804:2:1;7789:18;184154:46:0::1;;;;;;;183689:519;;143081:20:::0;142298:1;143601:7;:22;143418:213;102417:120;102480:7;102507:22;102521:7;102507:13;:22::i;102084:271::-;102147:7;-1:-1:-1;;;;;;;;;;;;;;;;102227:19:0;;102223:89;;102270:30;;-1:-1:-1;;;102270:30:0;;102297:1;102270:30;;;1488:51:1;1461:18;;102270:30:0;1342:203:1;102223:89:0;-1:-1:-1;;;;;102329:18:0;;;;;;;:11;;;;:18;;-1:-1:-1;102329:18:0;;;;;102084:271::o;150262:103::-;149413:13;:11;:13::i;:::-;150327:30:::1;150354:1;150327:18;:30::i;:::-;150262:103::o:0;156384:280::-;149413:13;:11;:13::i;:::-;-1:-1:-1;;;;;156464:26:0;::::1;156460:52;;156499:13;;-1:-1:-1::0;;;156499:13:0::1;;;;;;;;;;;156460:52;156535:12;::::0;-1:-1:-1;;;;;156535:12:0::1;156527:35:::0;156523:74:::1;;156564:33;::::0;-1:-1:-1;;;156564:33:0;;17448:2:1;156564:33:0::1;::::0;::::1;17430:21:1::0;17487:2;17467:18;;;17460:30;17526:25;17506:18;;;17499:53;17569:18;;156564:33:0::1;17246:347:1::0;156523:74:0::1;156608:12;:48:::0;;-1:-1:-1;;;;;;156608:48:0::1;-1:-1:-1::0;;;;;156608:48:0;;;::::1;::::0;;;::::1;::::0;;156384:280::o;158491:1073::-;158559:7;158606:15;;;:6;:15;;;;;;;;158579:42;;;;;;;;;-1:-1:-1;;;;;158579:42:0;;;;;-1:-1:-1;;;158579:42:0;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;158579:42:0;;;;;;;;;158643:15;158636:39;;158632:67;;-1:-1:-1;153359:4:0;;158491:1073;-1:-1:-1;;158491:1073:0:o;158632:67::-;158806:15;158846;158824:4;:12;;;:38;;;;:::i;:::-;158806:56;-1:-1:-1;159033:17:0;153201:8;159054:29;153407:4;159053:41;159054:17;;:29;:::i;:::-;159053:41;;;;:::i;:::-;159033:61;-1:-1:-1;159201:22:0;153407:4;159033:61;159253:32;153407:4;153305;159253:32;:::i;:::-;-1:-1:-1;;;;;159245:41:0;:53;;;;:::i;:::-;159244:67;;;;:::i;:::-;159226:85;;153359:4;159226:85;:::i;:::-;159201:110;-1:-1:-1;159201:110:0;153305:4;-1:-1:-1;;;;;159401:27:0;;;159397:54;;;-1:-1:-1;153305:4:0;;158491:1073;-1:-1:-1;;;;;;158491:1073:0:o;159397:54::-;153359:4;-1:-1:-1;;;;;159466:28:0;;;159462:56;;;-1:-1:-1;153359:4:0;;158491:1073;-1:-1:-1;;;;;;158491:1073:0:o;159462:56::-;159546:10;158491:1073;-1:-1:-1;;;;;;158491:1073:0:o;102822:153::-;102958:9;102951:16;;102869:13;;-1:-1:-1;;;;;;;;;;;101087:21:0;102951:16;;;:::i;177646:199::-;177773:5;;;;;;177715:7;177760:19;;;:12;:19;;;;;;;;177735:44;;;;;;;;;;;;;;;-1:-1:-1;;;177735:44:0;;;;;;;;;;;;177773:5;177735:44;;;;;;;;;;;;-1:-1:-1;;;177735:44:0;;;;;;;;;177715:7;177805:31;177735:44;177826:9;177805;:31::i;:::-;177790:47;177646:199;-1:-1:-1;;;177646:199:0:o;104122:146::-;104208:52;25439:10;104241:8;104251;104208:18;:52::i;165520:226::-;165644:35;165665:4;165671:7;165644:20;:35::i;:::-;165691:47;165714:4;165720:2;165724:7;165733:4;165691:22;:47::i;178507:2466::-;143037:21;:19;:21::i;:::-;145572:19:::1;:17;:19::i;:::-;178644:8:::2;156764;156746:15;:26;156742:56;;;156781:17;;-1:-1:-1::0;;;156781:17:0::2;;;;;;;;;;;156742:56;178687:1:::3;178669:19:::0;::::3;178665:47;;;178697:15;;-1:-1:-1::0;;;178697:15:0::3;;;;;;;;;;;178665:47;178733:19;::::0;;178868:376:::3;178888:19:::0;;::::3;178868:376;;;178957:10;178933:20;178941:8:::0;;178950:1;178941:11;;::::3;;;;;:::i;:::-;;;;;;;178933:7;:20::i;:::-;-1:-1:-1::0;;;;;178933:34:0::3;;178929:62;;178976:15;;-1:-1:-1::0;;;178976:15:0::3;;;;;;;;;;;178929:62;179020:24;179047:6;:19;179054:8;;179063:1;179054:11;;;;;;;:::i;:::-;;::::0;;::::3;::::0;;;::::3;;179047:19:::0;;-1:-1:-1;179047:19:0;;::::3;::::0;;;;;;;;-1:-1:-1;179047:19:0;179020:46;;::::3;::::0;::::3;::::0;;;;-1:-1:-1;;;;;179020:46:0;;::::3;::::0;;;-1:-1:-1;;;179020:46:0;;::::3;;::::0;;::::3;::::0;;;;;;;::::3;::::0;::::3;::::0;;::::3;::::0;;;;;;;-1:-1:-1;;;179020:46:0;::::3;::::0;;::::3;::::0;;;;;-1:-1:-1;179095:26:0::3;::::0;;::::3;:::i;:::-;;;179155:13;179140:28;;:4;:12;;;:28;;;179136:97;;;179205:4;:12;;;179189:28;;179136:97;-1:-1:-1::0;178909:3:0::3;;178868:376;;;-1:-1:-1::0;179303:24:0::3;179330:39;179353:15;179330:13:::0;:39:::3;:::i;:::-;179303:66:::0;-1:-1:-1;153201:8:0::3;179384:27;::::0;::::3;;179380:57;;;179420:17;;-1:-1:-1::0;;;179420:17:0::3;;;;;;;;;;;179380:57;179513:16;153201:8;179541:32;153407:4;-1:-1:-1::0;;;;;179541:20:0;::::3;:32;:::i;:::-;179540:44;;;;:::i;:::-;179513:72;;179606:18;179629:12;;179627:14;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;179606:35;;;;179652:33;179662:10;179674;179652:9;:33::i;:::-;179760:9;179755:512;179775:19:::0;;::::3;179755:512;;;179816:15;179834:8;;179843:1;179834:11;;;;;;;:::i;:::-;;::::0;;::::3;::::0;;;::::3;;179860:27;179890:15:::0;;;:6:::3;:15:::0;;;;;;179860:45;;::::3;::::0;::::3;::::0;;;;-1:-1:-1;;;;;179860:45:0;;::::3;::::0;;-1:-1:-1;;;179860:45:0;;::::3;;::::0;;::::3;::::0;;;;::::3;::::0;::::3;::::0;;::::3;::::0;;;;;;-1:-1:-1;;;179860:45:0;;::::3;::::0;::::3;::::0;;;;179974:127;;;;::::3;::::0;;180030:14;;179974:127:::3;;::::0;;180070:15;;179974:127:::3;::::0;;::::3;::::0;180169:19;;;;::::3;::::0;;;;;;;;::::3;::::0;;;;179834:11;;-1:-1:-1;179860:45:0;179974:127;-1:-1:-1;180130:59:0::3;::::0;179834:11;;179974:127;;180130:11:::3;:59::i;:::-;180211:15;::::0;;;:6:::3;:15;::::0;;;;180204:22;;;;::::3;::::0;;-1:-1:-1;;180204:22:0;;;180241:14:::3;180218:7:::0;180241:5:::3;:14::i;:::-;-1:-1:-1::0;;;179796:3:0::3;;179755:512;;;-1:-1:-1::0;180338:110:0::3;::::0;;;;::::3;::::0;;::::3;::::0;;::::3;::::0;;::::3;::::0;::::3;;::::0;;::::3;::::0;;;;180493:19;;;;::::3;::::0;;;180307:28:::3;180493:19:::0;;;;;::::3;::::0;180338:110;180469:53:::3;::::0;180481:10;;180338:110;180469:11:::3;:53::i;:::-;180564:176;::::0;;::::3;::::0;::::3;::::0;;-1:-1:-1;;;;;180564:176:0;;::::3;::::0;;;;::::3;;::::0;;::::3;::::0;;;::::3;::::0;;::::3;::::0;;;;;;180682:15:::3;180564:176:::0;::::3;::::0;;;;;;-1:-1:-1;180543:18:0;;;:6:::3;:18:::0;;;;;:197;;;;;::::3;-1:-1:-1::0;;;180543:197:0::3;::::0;;;::::3;::::0;;;::::3;::::0;;;;;;::::3;::::0;;;;;::::3;-1:-1:-1::0;;;180543:197:0::3;-1:-1:-1::0;;180543:197:0;;;;;;::::3;::::0;;;;::::3;::::0;;;180828:10:::3;180813:26:::0;;;:14:::3;:26:::0;;;;;;;;;::::3;::::0;;::::3;:51:::0;;::::3;:55:::0;;::::3;180778:91:::0;;::::3;-1:-1:-1::0;;180778:91:0;;::::3;::::0;;;::::3;::::0;;;180906:59;;180550:10;;180828;180906:59:::3;::::0;::::3;::::0;180600:11;;180635:13;;-1:-1:-1;;;;;16777:47:1;;;;16759:66;;16873:10;16861:23;16856:2;16841:18;;16834:51;16747:2;16732:18;;16587:304;180906:59:0::3;;;;;;;;178654:2319;;;;;;145602:1:::2;143081:20:::0;142298:1;143601:7;:22;143418:213;176486:1152;143037:21;:19;:21::i;:::-;145572:19:::1;:17;:19::i;:::-;176691:8:::2;156764;156746:15;:26;156742:56;;;156781:17;;-1:-1:-1::0;;;156781:17:0::2;;;;;;;;;;;156742:56;157371:24:::3;157398:15:::0;;;:6:::3;:15;::::0;;;;;;;;157371:42;;::::3;::::0;::::3;::::0;;;;-1:-1:-1;;;;;157371:42:0;;::::3;::::0;;;-1:-1:-1;;;157371:42:0;;::::3;;::::0;;::::3;::::0;;;;;;;::::3;::::0;::::3;::::0;;::::3;::::0;;;;;;;-1:-1:-1;;;157371:42:0;::::3;::::0;;::::3;::::0;;;;176706:7;;157371:42;157428:15;;;;:57:::3;;;157473:4;:12;;;157447:38;;157454:15;157447:38;;;157428:57;157424:1040;;;157502:15;157542;157520:4;:12;;;:38;;;;:::i;:::-;157502:56;;157573:21;157597:39;157627:8;157597:29;:39::i;:::-;157687:11:::0;;157573:63;;-1:-1:-1;157651:16:0::3;::::0;153201:8:::3;::::0;157679:32:::3;::::0;153407:4:::3;::::0;-1:-1:-1;;;;;157679:20:0::3;:32;:::i;:::-;157678:44;;;;:::i;:::-;157651:72;;157770:8;-1:-1:-1::0;;;;;157756:22:0::3;:4;:10;;;-1:-1:-1::0;;;;;157756:22:0::3;;;:70;;;;157820:6;157801:4;:15;;;157783:33;;:15;:33;;;;:::i;:::-;157782:44;157756:70;157752:701;;;157847:21;157884:1;157871:4;:10;;;-1:-1:-1::0;;;;;157871:14:0::3;;:74;;153359:4;157871:74;;;157888:39;157918:8;157888:29;:39::i;:::-;157847:98;;157982:58;158004:7;158013:4;:11;;;158026:13;157982:21;:58::i;:::-;158077:220;158111:7;158141:57;;;;;;;;158170:4;:11;;;158141:57;;;;;;158185:4;:12;;;158141:57;;;;::::0;158221::::3;;;;;;;;158250:4;:11;;;158221:57;;;;;;158265:4;:12;;;158221:57;;;;::::0;158077:11:::3;:220::i;:::-;-1:-1:-1::0;158334:15:0::3;::::0;;;:6:::3;:15;::::0;;;;:32;;-1:-1:-1;;;;;158334:32:0;;::::3;-1:-1:-1::0;;;158334:32:0::3;::::0;::::3;;::::0;;-1:-1:-1;158385:26:0::3;:52:::0;;::::3;158421:15;158385:52;-1:-1:-1::0;;;158385:52:0::3;-1:-1:-1::0;;158385:52:0;;::::3;;::::0;;157752:701:::3;157487:977;;;157424:1040;176780:9:::4;176760:16;176768:7:::0;176760::::4;:16::i;:::-;-1:-1:-1::0;;;;;176760:29:0::4;;176756:106;;176826:10;176806:16;176814:7:::0;176806::::4;:16::i;:::-;-1:-1:-1::0;;;;;176806:30:0::4;;176802:58;;176845:15;;-1:-1:-1::0;;;176845:15:0::4;;;;;;;;;;;176802:58;176876:16;-1:-1:-1::0;;;;;176876:21:0::4;176896:1;176876:21:::0;176872:49:::4;;176906:15;;-1:-1:-1::0;;;176906:15:0::4;;;;;;;;;;;176872:49;176991:25;177019:15:::0;;;:6:::4;:15;::::0;;;;177049:11;;177019:15;;-1:-1:-1;;;;;177049:11:0;;::::4;:16:::0;;177045:44:::4;;177074:15;;-1:-1:-1::0;;;177074:15:0::4;;;;;;;;;;;177045:44;177131:12;::::0;::::4;::::0;::::4;::::0;;::::4;177111:15;177104:39:::0;;::::4;;177100:65;;177152:13;;-1:-1:-1::0;;;177152:13:0::4;;;;;;;;;;;177100:65;177238:12;::::0;:37:::4;::::0;-1:-1:-1;;;177238:37:0;;177269:4:::4;177238:37;::::0;::::4;1488:51:1::0;177214:21:0::4;::::0;-1:-1:-1;;;;;177238:12:0::4;::::0;:22:::4;::::0;1461:18:1;;177238:37:0::4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;177286:12;::::0;177214:61;;-1:-1:-1;177286:74:0::4;::::0;-1:-1:-1;;;;;177286:12:0::4;177316:10;177336:4;-1:-1:-1::0;;;;;177286:74:0;::::4;:29;:74::i;:::-;177416:32;-1:-1:-1::0;;;;;177416:32:0;::::4;:13:::0;:32:::4;:::i;:::-;177375:12;::::0;:37:::4;::::0;-1:-1:-1;;;177375:37:0;;177406:4:::4;177375:37;::::0;::::4;1488:51:1::0;-1:-1:-1;;;;;177375:12:0;;::::4;::::0;:22:::4;::::0;1461:18:1;;177375:37:0::4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:73;177371:115;;177470:16;;-1:-1:-1::0;;;177470:16:0::4;;;;;;;;;;;177371:115;177568:62;177589:7;177598:16;177616:13;177568:20;:62::i;:::-;176715:923;;157360:1123:::3;156809:1;145602::::2;143081:20:::0;142298:1;143601:7;:22;143418:213;183443:172;149413:13;:11;:13::i;:::-;183504:14:::1;:21:::0;;-1:-1:-1;;;;183504:21:0::1;-1:-1:-1::0;;;183504:21:0::1;::::0;;183536:8:::1;:6;:8::i;:::-;183581:25;::::0;183560:47:::1;::::0;-1:-1:-1;;;;;183581:25:0;;::::1;1488:51:1::0;;183560:47:0::1;::::0;1476:2:1;1461:18;183560:47:0::1;;;;;;;;183443:172::o:0;185492:495::-;185565:13;185620:1;185591:17;185600:7;185591:8;:17::i;:::-;-1:-1:-1;;;;;185591:31:0;;185587:60;;185631:16;;-1:-1:-1;;;185631:16:0;;;;;;;;;;;185587:60;185658:8;;-1:-1:-1;;;;;185658:8:0;185654:52;;185689:17;;-1:-1:-1;;;185689:17:0;;;;;;;;;;;185654:52;185799:8;;185829:53;;;;;8566:25:1;;;185764:12:0;;;;-1:-1:-1;;;;;185799:8:0;;;;8539:18:1;;185829:53:0;;;-1:-1:-1;;185829:53:0;;;;;;;;;;;;;;-1:-1:-1;;;;;185829:53:0;-1:-1:-1;;;185829:53:0;;;185799:90;;;185829:53;185799:90;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;185763:126;;;;185904:7;185896:41;;;;-1:-1:-1;;;185896:41:0;;18351:2:1;185896:41:0;;;18333:21:1;18390:2;18370:18;;;18363:30;-1:-1:-1;;;18409:18:1;;;18402:51;18470:18;;185896:41:0;18149:345:1;185896:41:0;185968:4;185957:26;;;;;;;;;;;;:::i;:::-;185950:33;185492:495;-1:-1:-1;;;;185492:495:0:o;182095:782::-;182180:7;182204:13;;;;;:35;;-1:-1:-1;153201:8:0;182221:18;;;;182204:35;182200:65;;;182248:17;;-1:-1:-1;;;182248:17:0;;;;;;;;;;;182200:65;182280:6;-1:-1:-1;;;;;182280:11:0;182290:1;182280:11;182276:39;;182300:15;;-1:-1:-1;;;182300:15:0;;;;;;;;;;;182276:39;182411:13;153407:4;182428:25;153201:8;-1:-1:-1;;;;;182428:15:0;;:25;:::i;:::-;182427:39;;;;:::i;:::-;182411:55;;182481:5;182490:1;182481:10;182477:38;;153359:4;182493:22;;;;;182477:38;182536:17;153201:8;182557:29;153407:4;182556:41;182557:17;;:29;:::i;:::-;182556:41;;;;:::i;:::-;182536:61;-1:-1:-1;182608:18:0;153407:4;182662:32;153407:4;153305;182662:32;:::i;:::-;182649:46;;-1:-1:-1;;;;;182649:46:0;:9;:46;:::i;:::-;182648:60;;;;:::i;:::-;182629:80;;153359:4;182629:80;:::i;:::-;182608:101;-1:-1:-1;153305:4:0;182737:27;;:132;;153359:4;182801:28;;:68;;182858:10;182737:132;;182801:68;153359:4;182737:132;;;153305:4;182730:139;182095:782;-1:-1:-1;;;;;;182095:782:0:o;180981:1106::-;181062:7;181101:23;;;:14;:23;;;;;;;;181139:14;;;181135:28;;181162:1;181155:8;;;;;181135:28;181184:24;181211:15;;;:6;:15;;;;;;;;;181184:42;;;;;;;;;-1:-1:-1;;;;;181184:42:0;;;;;;-1:-1:-1;;;181184:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;181184:42:0;;;;;;;;;181241:16;;:45;;;181274:4;:12;;;181261:25;;:9;:25;;;;181241:45;181237:59;;;181295:1;181288:8;;;;;;181237:59;181325:9;181309:752;181341:1;181336;:6;;;181309:752;;181364:18;181385:25;;;:16;:25;;;;;;;;:28;;;;;;;;;;;;;181364:49;;;;;;;;;;;;;;;-1:-1:-1;;;181364:49:0;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;181364:49:0;;;;;;;;;;181432:21;;-1:-1:-1;181428:622:0;;181503:12;;;;181474:17;;153201:8;;153407:4;;181503:24;;181518:9;;181503:24;:::i;:::-;181495:33;;:45;;;;:::i;:::-;181494:57;;;;:::i;:::-;181474:77;-1:-1:-1;181570:18:0;153407:4;181624:32;153407:4;153305;181624:32;:::i;:::-;181611:46;;-1:-1:-1;;;;;181611:46:0;:9;:46;:::i;:::-;181610:60;;;;:::i;:::-;181591:80;;153359:4;181591:80;:::i;:::-;181570:101;-1:-1:-1;153305:4:0;181703:27;;:135;;153359:4;181779:28;;:59;;181828:10;181703:135;;181779:59;153359:4;181703:135;;;153305:4;181703:135;181908:10;;181690:148;;-1:-1:-1;181875:13:0;;153407:4;;181892:41;;181690:148;;-1:-1:-1;;;;;181892:28:0;:41;:::i;:::-;181891:55;;;;:::i;:::-;181875:71;-1:-1:-1;;;;;;181972:25:0;;:62;;182028:5;181972:62;;;-1:-1:-1;;;;;181972:62:0;181965:69;;;;;;;;;;;181428:622;-1:-1:-1;181344:3:0;;;;:::i;:::-;;;;181309:752;;;-1:-1:-1;182078:1:0;;180981:1106;-1:-1:-1;;;;;180981:1106:0:o;183136:271::-;183276:15;;183220:7;;;;183276:15;-1:-1:-1;;;183276:15:0;;;;;183261:30;;;;:78;;183327:12;183261:78;;;183309:15;;183294:30;;-1:-1:-1;;;183309:15:0;;;;183294:12;:30;:::i;:::-;183240:99;;183357:42;183379:6;183387:11;183357:21;:42::i;169846:1800::-;170056:15;143037:21;:19;:21::i;:::-;145572:19:::1;:17;:19::i;:::-;170037:8:::2;156764;156746:15;:26;156742:56;;;156781:17;;-1:-1:-1::0;;;156781:17:0::2;;;;;;;;;;;156742:56;170088:6:::3;-1:-1:-1::0;;;;;170088:11:0::3;170098:1;170088:11:::0;170084:39:::3;;170108:15;;-1:-1:-1::0;;;170108:15:0::3;;;;;;;;;;;170084:39;170138:17;::::0;::::3;::::0;;:43:::3;;-1:-1:-1::0;153201:8:0::3;170159:22;::::0;::::3;;170138:43;170134:73;;;170190:17;;-1:-1:-1::0;;;170190:17:0::3;;;;;;;;;;;170134:73;170237:10;170222:26;::::0;;;:14:::3;:26;::::0;;;;;153462:3:::3;170222:48;:26:::0;;::::3;:48;170218:78;;170279:17;;-1:-1:-1::0;;;170279:17:0::3;;;;;;;;;;;170218:78;170317:17;170337:38;170363:12:::0;170344:15:::3;170337:38;:::i;:::-;170317:58;;170397:13;170412:18;170434:61;170459:6;170467:12;170481:13;170434:24;:61::i;:::-;170396:99;;;;170552:28;170583:102;;;;;;;;170635:6;170583:102;;;;;;170663:10;170583:102;;;;::::0;170552:133:::3;;170752:44;170764:1;170767:19;;;;;;;;170781:1;170767:19;;;;;;170784:1;170767:19;;;;::::0;170788:7:::3;170752:11;:44::i;:::-;170885:12;::::0;:37:::3;::::0;-1:-1:-1;;;170885:37:0;;170916:4:::3;170885:37;::::0;::::3;1488:51:1::0;170861:21:0::3;::::0;-1:-1:-1;;;;;170885:12:0::3;::::0;:22:::3;::::0;1461:18:1;;170885:37:0::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;170933:12;::::0;170861:61;;-1:-1:-1;170933:64:0::3;::::0;-1:-1:-1;;;;;170933:12:0::3;170963:10;170983:4;-1:-1:-1::0;;;;;170933:64:0;::::3;:29;:64::i;:::-;171053:22;-1:-1:-1::0;;;;;171053:22:0;::::3;:13:::0;:22:::3;:::i;:::-;171012:12;::::0;:37:::3;::::0;-1:-1:-1;;;171012:37:0;;171043:4:::3;171012:37;::::0;::::3;1488:51:1::0;-1:-1:-1;;;;;171012:12:0;;::::3;::::0;:22:::3;::::0;1461:18:1;;171012:37:0::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:63;171008:106;;171098:16;;-1:-1:-1::0;;;171098:16:0::3;;;;;;;;;;;171008:106;171170:12;:14:::0;;::::3;;-1:-1:-1::0;;;171170:14:0;;::::3;::::0;::::3;::::0;;::::3;::::0;;::::3;;-1:-1:-1::0;;;;171170:14:0;;::::3;::::0;;;::::3;::::0;;;171214:10:::3;-1:-1:-1::0;171199:26:0;;;:14:::3;:26;::::0;;;;:28;;::::3;::::0;;::::3;::::0;;::::3;::::0;;::::3;-1:-1:-1::0;;171199:28:0;;::::3;::::0;;;::::3;::::0;;;171170:14;-1:-1:-1;171259:30:0::3;::::0;171170:14;171259:9:::3;:30::i;:::-;171328:165;::::0;;::::3;::::0;::::3;::::0;;-1:-1:-1;;;;;171328:165:0;;::::3;::::0;;;;::::3;;::::0;;::::3;::::0;;;::::3;::::0;;::::3;::::0;;;;;;171438:15:::3;171328:165:::0;::::3;::::0;;;;;;-1:-1:-1;171310:15:0;;;:6:::3;:15:::0;;;;;;;:183;;;;;::::3;-1:-1:-1::0;;;171310:183:0::3;::::0;;;::::3;::::0;;;::::3;::::0;;;;;;::::3;::::0;;;;;::::3;-1:-1:-1::0;;;171310:183:0::3;-1:-1:-1::0;;171310:183:0;;;;;;::::3;::::0;;;;;;;::::3;::::0;;171514:50:::3;171317:7:::0;171364:6;171553:10;171514:21:::3;:50::i;:::-;171590:48;::::0;;-1:-1:-1;;;;;16777:47:1;;16759:66;;16873:10;16861:23;;16856:2;16841:18;;16834:51;171610:7:0;;171598:10:::3;::::0;171590:48:::3;::::0;16732:18:1;171590:48:0::3;;;;;;;170073:1573;;;;;145602:1:::2;143081:20:::0;142298:1;143601:7;:22;143418:213;104339;-1:-1:-1;;;;;104507:27:0;;;104427:4;104507:27;;;:20;:27;;;;;;;;:37;;;;;;;;;;;;;;;104339:213::o;150520:220::-;149413:13;:11;:13::i;:::-;-1:-1:-1;;;;;150605:22:0;::::1;150601:93;;150651:31;::::0;-1:-1:-1;;;150651:31:0;;150679:1:::1;150651:31;::::0;::::1;1488:51:1::0;1461:18;;150651:31:0::1;1342:203:1::0;150601:93:0::1;150704:28;150723:8;150704:18;:28::i;184216:68::-:0;149413:13;:11;:13::i;:::-;184266:10:::1;:8;:10::i;117353:247::-:0;117416:7;117436:13;117452:17;117461:7;117452:8;:17::i;:::-;117436:33;-1:-1:-1;;;;;;117484:19:0;;117480:90;;117527:31;;-1:-1:-1;;;117527:31:0;;;;;8566:25:1;;;8539:18;;117527:31:0;8420:177:1;106540:187:0;106610:7;106693:26;;;:17;:26;;;;;;-1:-1:-1;;;;;106693:26:0;;106540:187::o;115469:122::-;115550:33;115559:2;115563:7;115572:4;115578;115550:8;:33::i;106244:175::-;106310:7;106393:18;;;:9;:18;;;;;;-1:-1:-1;;;;;106393:18:0;;106244:175::o;143117:293::-;142342:1;143251:7;;:19;143243:63;;;;-1:-1:-1;;;143243:63:0;;19393:2:1;143243:63:0;;;19375:21:1;19432:2;19412:18;;;19405:30;19471:33;19451:18;;;19444:61;19522:18;;143243:63:0;19191:355:1;143243:63:0;142342:1;143384:7;:18;143117:293::o;146126:108::-;146038:7;;;;146196:9;146188:38;;;;-1:-1:-1;;;146188:38:0;;19753:2:1;146188:38:0;;;19735:21:1;19792:2;19772:18;;;19765:30;-1:-1:-1;;;19811:18:1;;;19804:46;19867:18;;146188:38:0;19551:340:1;156826:495:0;156905:7;;153201:8;156946:29;153407:4;156945:41;156946:17;;:29;:::i;:::-;156945:41;;;;:::i;:::-;156925:61;-1:-1:-1;156997:22:0;153407:4;156925:61;157049:32;153407:4;153305;157049:32;:::i;:::-;-1:-1:-1;;;;;157041:41:0;:53;;;;:::i;:::-;157040:67;;;;:::i;:::-;157022:85;;153359:4;157022:85;:::i;:::-;156997:110;-1:-1:-1;156997:110:0;153305:4;-1:-1:-1;;;;;157190:27:0;;;:123;;153359:4;-1:-1:-1;;;;;157254:28:0;;;:59;;157303:10;157190:123;;157254:59;153359:4;157190:123;;;153305:4;157183:130;156826:495;-1:-1:-1;;;;;156826:495:0:o;168164:1674::-;168447:24;168474:15;;;:6;:15;;;;;;;;168447:42;;;;;;;;;-1:-1:-1;;;;;168447:42:0;;;;;-1:-1:-1;;;168447:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;168447:42:0;;;;;;;;;;:24;168524:153;;153359:4;168524:153;;;168627:15;168605:4;:12;;;:38;;;;:::i;:::-;168582:62;;168590:4;:10;;;-1:-1:-1;;;;;168582:19:0;:62;;;;:::i;:::-;168563:82;;153359:4;168563:82;:::i;:::-;168500:177;-1:-1:-1;153305:4:0;-1:-1:-1;;;;;168706:30:0;;;168702:66;;;-1:-1:-1;153305:4:0;168702:66;153359:4;-1:-1:-1;;;;;168783:31:0;;;168779:68;;;-1:-1:-1;153359:4:0;168779:68;168919:25;153407:4;168948:40;-1:-1:-1;;;;;168966:22:0;;;;168948:15;;:40;:::i;:::-;168947:54;;;;:::i;:::-;168919:82;-1:-1:-1;169012:25:0;153407:4;169041:40;-1:-1:-1;;;;;169059:22:0;;;;169041:15;;:40;:::i;:::-;169040:54;;;;:::i;:::-;169012:82;;169206:17;169186;:37;169182:610;;;169240:16;169259:37;169279:17;169259;:37;:::i;:::-;169240:56;-1:-1:-1;;;;;;169315:28:0;;169311:58;;;169352:17;;-1:-1:-1;;;169352:17:0;;;;;;;;;;;169311:58;169384:20;:41;;169416:8;;169384:20;;;:41;;169416:8;;-1:-1:-1;;;;;169384:41:0;;:::i;:::-;;;;;;;;-1:-1:-1;;;;;169384:41:0;;;;;-1:-1:-1;;;;;169384:41:0;;;;;;169225:212;169182:610;;;169467:17;169447;:37;169443:349;;;169501:16;169520:37;169540:17;169520;:37;:::i;:::-;169587:20;;169501:56;;-1:-1:-1;;;;;;169587:20:0;169576:31;;169572:209;;;169628:20;:24;;-1:-1:-1;;;;;;169628:24:0;;;169572:209;;;169724:20;:41;;169756:8;;169724:20;;;:41;;169756:8;;-1:-1:-1;;;;;169724:41:0;;:::i;:::-;;;;;;;;-1:-1:-1;;;;;169724:41:0;;;;;-1:-1:-1;;;;;169724:41:0;;;;;;169572:209;169486:306;169443:349;168260:1578;;;;168164:1674;;;:::o;159572:363::-;159728:19;:17;:19::i;:::-;159772:12;;159768:160;;159801:115;159836:7;159863:9;159892;159801:16;:115::i;173426:380::-;173492:7;;173586:25;153201:8;-1:-1:-1;;;;;173586:15:0;;:25;:::i;:::-;173566:45;-1:-1:-1;173673:21:0;153407:4;173566:45;173673:21;:::i;:::-;173661:33;-1:-1:-1;;;;;;173713:30:0;;;173705:57;;;;-1:-1:-1;;;173705:57:0;;20098:2:1;173705:57:0;;;20080:21:1;20137:2;20117:18;;;20110:30;-1:-1:-1;;;20156:18:1;;;20149:44;20210:18;;173705:57:0;19896:338:1;173814:758:0;173899:7;174013:5;-1:-1:-1;;;;;174013:10:0;174022:1;174013:10;174009:38;;-1:-1:-1;153359:4:0;174025:22;;174009:38;174125:17;153201:8;174146:29;153407:4;174145:41;174146:17;;:29;:::i;:::-;174145:41;;;;:::i;:::-;174125:61;-1:-1:-1;174260:18:0;153407:4;174328:32;153407:4;153305;174328:32;:::i;:::-;174315:46;;-1:-1:-1;;;;;174315:46:0;:9;:46;:::i;:::-;174314:60;;;;:::i;:::-;174281:94;;153359:4;174281:94;:::i;:::-;174260:115;-1:-1:-1;153305:4:0;174400:27;;174396:54;;;153305:4;174429:21;;;;;;174396:54;153359:4;174465:28;;174461:56;;;153359:4;174495:22;;;;;;143418:213;142298:1;143601:7;:22;143418:213::o;101250:151::-;22576:20;:18;:20::i;:::-;101354:39:::1;101378:5;101385:7;101354:23;:39::i;142384:113::-:0;22576:20;:18;:20::i;:::-;142455:34:::1;:32;:34::i;145137:99::-:0;22576:20;:18;:20::i;:::-;145201:27:::1;:25;:27::i;148911:129::-:0;22576:20;:18;:20::i;:::-;148994:38:::1;149019:12;148994:24;:38::i;146563:118::-:0;145572:19;:17;:19::i;:::-;146623:7:::1;:14:::0;;-1:-1:-1;;146623:14:0::1;146633:4;146623:14;::::0;;146653:20:::1;146660:12;25439:10:::0;;25359:98;146660:12:::1;146653:20;::::0;-1:-1:-1;;;;;1506:32:1;;;1488:51;;1476:2;1461:18;146653:20:0::1;1342:203:1::0;164965:347:0;-1:-1:-1;;;;;165085:18:0;;;;;;:57;;-1:-1:-1;165115:12:0;;-1:-1:-1;;;;;165115:12:0;165107:35;;165085:57;:92;;;;-1:-1:-1;165175:1:0;165146:17;165155:7;165146:8;:17::i;:::-;-1:-1:-1;;;;;165146:31:0;;;165085:92;165081:224;;;165198:12;;:28;;-1:-1:-1;;;165198:28:0;;;;;8566:25:1;;;165229:1:0;;-1:-1:-1;;;;;165198:12:0;;:19;;8539:18:1;;165198:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:32;165194:100;;;165251:12;;:27;;-1:-1:-1;;;165251:27:0;;;;;8566:25:1;;;-1:-1:-1;;;;;165251:12:0;;;;:18;;8539::1;;165251:27:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;104619:588::-;-1:-1:-1;;;;;104714:16:0;;104710:89;;104754:33;;-1:-1:-1;;;104754:33:0;;104784:1;104754:33;;;1488:51:1;1461:18;;104754:33:0;1342:203:1;104710:89:0;105020:21;105044:34;105052:2;105056:7;25439:10;105044:7;:34::i;:::-;105020:58;;105110:4;-1:-1:-1;;;;;105093:21:0;:13;-1:-1:-1;;;;;105093:21:0;;105089:111;;105138:50;;-1:-1:-1;;;105138:50:0;;-1:-1:-1;;;;;20459:32:1;;;105138:50:0;;;20441:51:1;20508:18;;;20501:34;;;20571:32;;20551:18;;;20544:60;20414:18;;105138:50:0;20239:371:1;167253:748:0;167404:13;;;167524:25;153201:8;-1:-1:-1;;;;;167524:15:0;;:25;:::i;:::-;167504:45;-1:-1:-1;167611:21:0;153407:4;167504:45;167611:21;:::i;:::-;167599:33;-1:-1:-1;;;;;;167651:30:0;;;167643:57;;;;-1:-1:-1;;;167643:57:0;;20817:2:1;167643:57:0;;;20799:21:1;20856:2;20836:18;;;20829:30;-1:-1:-1;;;20875:18:1;;;20868:44;20929:18;;167643:57:0;20615:338:1;167643:57:0;167727:9;167711:26;;167804:41;167825:5;167832:12;167804:20;:41::i;:::-;167791:54;-1:-1:-1;153305:4:0;-1:-1:-1;;;;;167870:27:0;;;167866:59;;;167906:19;;-1:-1:-1;;;167906:19:0;;;;;;;;;;;167866:59;167953:13;-1:-1:-1;;;;;167940:26:0;:10;-1:-1:-1;;;;;167940:26:0;;167936:57;;;167975:18;;-1:-1:-1;;;167975:18:0;;;;;;;;;;;167936:57;167439:562;167253:748;;;;;;:::o;134838:216::-;134977:68;;-1:-1:-1;;;;;21178:32:1;;;134977:68:0;;;21160:51:1;21247:32;;21227:18;;;21220:60;21296:18;;;21289:34;;;134950:96:0;;134970:5;;-1:-1:-1;;;135000:27:0;21133:18:1;;134977:68:0;;;;-1:-1:-1;;134977:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;134977:68:0;-1:-1:-1;;;;;;134977:68:0;;;;;;;;;;134950:19;:96::i;111537:102::-;111605:26;111615:2;111619:7;111605:26;;;;;;;;;;;;:9;:26::i;134405:188::-;134526:58;;-1:-1:-1;;;;;21526:32:1;;134526:58:0;;;21508:51:1;21575:18;;;21568:34;;;134499:86:0;;134519:5;;-1:-1:-1;;;134549:23:0;21481:18:1;;134526:58:0;21334:274:1;112415:232:0;112467:21;112491:40;112507:1;112511:7;112528:1;112491:7;:40::i;:::-;112467:64;-1:-1:-1;;;;;;112546:27:0;;112542:98;;112597:31;;-1:-1:-1;;;112597:31:0;;;;;8566:25:1;;;8539:18;;112597:31:0;8420:177:1;149752:166:0;25439:10;149812:7;148358:22;149658:8;-1:-1:-1;;;;;149658:8:0;;149527:147;149812:7;-1:-1:-1;;;;;149812:23:0;;149808:103;;149859:40;;-1:-1:-1;;;149859:40:0;;25439:10;149859:40;;;1488:51:1;1461:18;;149859:40:0;1342:203:1;150900:253:0;148358:22;151051:8;;-1:-1:-1;;;;;;151070:19:0;;-1:-1:-1;;;;;151070:19:0;;;;;;;;151105:40;;151051:8;;;;;151105:40;;150974:24;;151105:40;150963:190;;150900:253;:::o;177853:646::-;177925:7;177945:9;153247;;177958:5;:8;;;:15;;;;:::i;:::-;177957:24;;;;:::i;:::-;177945:36;-1:-1:-1;178007:9:0;178002:388;178026:3;178022:1;:7;178002:388;;;178047:10;153247:9;178047:10;;:::i;:::-;;;178081:1;178076:6;;:2;:6;;;178072:128;;;178150:8;;;;178146:12;;:1;:12;:::i;:::-;178138:21;;178117:5;:11;;;:43;;;;:::i;:::-;178103:57;;:5;;:57;;;;;:::i;:::-;;;;;-1:-1:-1;178179:5:0;;178072:128;178262:8;;;;178257:13;;:2;:13;:::i;:::-;178249:22;;178228:5;:11;;;:44;;;;:::i;:::-;178214:58;;:5;;:58;;;;;:::i;:::-;;;;;;;;178302:16;;;;;;;:12;:16;;;;;;;;;178287:11;;;:31;;178302:16;;;;;-1:-1:-1;178287:31:0;;178302:16;;178287:31;:::i;:::-;;;;;-1:-1:-1;178333:13:0;;;:8;;;:13;178373:3;;178002:388;;;;178419:1;178406:5;:10;;;:14;;;178402:34;;;178435:1;178422:14;;178402:34;-1:-1:-1;;178478:10:0;;-1:-1:-1;;;;;178462:28:0;;177853:646;-1:-1:-1;177853:646:0:o;116734:376::-;-1:-1:-1;;;;;;;;;;;;;;;;116898:22:0;;116894:93;;116944:31;;-1:-1:-1;;;116944:31:0;;-1:-1:-1;;;;;1506:32:1;;116944:31:0;;;1488:51:1;1461:18;;116944:31:0;1342:203:1;116894:93:0;-1:-1:-1;;;;;116997:27:0;;;;;;;:20;;;:27;;;;;;;;:37;;;;;;;;;;;;;:48;;-1:-1:-1;;116997:48:0;;;;;;;;;;117061:41;;540::1;;;117061::0;;513:18:1;117061:41:0;;;;;;;116827:283;116734:376;;;:::o;105483:236::-;105597:31;105610:4;105616:2;105620:7;105597:12;:31::i;:::-;105639:72;25439:10;105687:4;105693:2;105697:7;105706:4;105639:33;:72::i;174637:1841::-;174786:25;174814:15;;;:6;:15;;;;;174922:11;;174814:15;;-1:-1:-1;;;;;174922:11:0;;;;174964:28;174976:16;174922:11;174964:28;:::i;:::-;175020:12;;;;174944:48;;-1:-1:-1;175020:12:0;;175003:14;175070:33;175087:15;175020:12;175070:33;:::i;:::-;175043:60;;175171:16;175190:29;175209:9;175190:18;:29::i;:::-;175171:48;;175230:18;175251:49;175272:8;175282:17;175251:20;:49::i;:::-;175230:70;;175377:25;175405:29;175426:7;175405:20;:29::i;:::-;175377:57;;175471:17;-1:-1:-1;;;;;175458:30:0;:10;-1:-1:-1;;;;;175458:30:0;;:63;;175504:17;175458:63;;;175491:10;175458:63;175445:76;-1:-1:-1;175613:16:0;175625:4;153407;175613:16;:::i;:::-;-1:-1:-1;;;;;175594:35:0;:16;-1:-1:-1;;;;;175594:35:0;;:65;;;;;175646:13;-1:-1:-1;;;;;175633:26:0;:10;-1:-1:-1;;;;;175633:26:0;;175594:65;175590:123;;;175683:18;;-1:-1:-1;;;175683:18:0;;;;;;;;;;;175590:123;175791:302;175817:7;175839:114;;;;;;;;175895:9;175839:114;;;;;;175930:7;175839:114;;;;;175968;;;;;;;;176024:9;175968:114;;;;;;176059:7;175968:114;;;;;175791:11;:302::i;:::-;-1:-1:-1;;;;;176178:21:0;;;-1:-1:-1;;;176178:21:0;176144:23;;;176178:21;;;176144:23;176210:15;;:41;;;176235:15;176210:41;-1:-1:-1;;;176210:41:0;-1:-1:-1;;176210:41:0;;;;;;176307:60;176329:7;176338:16;176356:10;176307:21;:60::i;:::-;176393:77;;;-1:-1:-1;;;;;22993:47:1;;;22975:66;;23077:47;;;23072:2;23057:18;;23050:75;23161:47;;23141:18;;;23134:75;176393:77:0;;176421:7;;176409:10;;176393:77;;;;;22963:2:1;176393:77:0;;;174775:1703;;;;;;;;174637:1841;;;:::o;146822:120::-;145831:16;:14;:16::i;:::-;146881:7:::1;:15:::0;;-1:-1:-1;;146881:15:0::1;::::0;;146912:22:::1;25439:10:::0;146921:12:::1;25359:98:::0;115779:736;-1:-1:-1;;;;;;;;;;;115997:9:0;;:31;;-1:-1:-1;;;;;;116010:18:0;;;;115997:31;115993:471;;;116045:13;116061:22;116075:7;116061:13;:22::i;:::-;116045:38;-1:-1:-1;;;;;;116214:18:0;;;;;;:35;;;116245:4;-1:-1:-1;;;;;116236:13:0;:5;-1:-1:-1;;;;;116236:13:0;;;116214:35;:69;;;;;116254:29;116271:5;116278:4;116254:16;:29::i;:::-;116253:30;116214:69;116210:144;;;116311:27;;-1:-1:-1;;;116311:27:0;;-1:-1:-1;;;;;1506:32:1;;116311:27:0;;;1488:51:1;1461:18;;116311:27:0;1342:203:1;116210:144:0;116374:9;116370:83;;;116429:7;116425:2;-1:-1:-1;;;;;116409:28:0;116418:5;-1:-1:-1;;;;;116409:28:0;;;;;;;;;;;116370:83;116030:434;115993:471;116476:26;;;;:17;;:26;;-1:-1:-1;;116476:26:0;;;:31;;-1:-1:-1;;;;;;116476:31:0;-1:-1:-1;;;;;116476:31:0;;;;;;;;;;115779:736::o;159943:1236::-;160008:5;;;;160024:22;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;160024:22:0;160102:10;;;;160098:289;;160141:12;:24;160154:10;160163:1;160154:6;:10;:::i;:::-;160141:24;;;;;;;;;;;;;;;;;;-1:-1:-1;160141:24:0;160129:36;;;;;;;;;;;;;;;-1:-1:-1;;;160129:36:0;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;160129:36:0;;;;;;;;;-1:-1:-1;160098:289:0;;;-1:-1:-1;160210:165:0;;;;;;;;-1:-1:-1;160210:165:0;;;;;;;;160299:15;160210:165;;;;;;;;;160346:12;160210:165;;;;;;;160098:289;160423:12;;;;160399:21;160550:40;;;;160557:15;160550:40;;;;160546:198;;;160718:12;;;;160700:30;;;;:15;:30;:::i;:::-;160657:13;;;;160642:28;;;;:12;:28;:::i;:::-;160629:42;;153407:4;160629:42;:::i;:::-;160628:103;;;;:::i;:::-;160607:125;;160546:198;160807:135;160847:9;160871:14;160900:10;160925:6;160807:25;:135::i;:::-;160795:147;-1:-1:-1;160963:10:0;:6;160972:1;160963:10;:::i;:::-;160955:5;:18;;;;;;-1:-1:-1;;160955:18:0;;;;;;160984:20;;;160955:5;160984:20;;;:12;:20;;;;;;;;:32;;;;;;-1:-1:-1;;;;;160984:32:0;;;-1:-1:-1;;;160984:32:0;;;;;;;;;;;160955:18;160984:32;;;;;;;;;;;;-1:-1:-1;;;160984:32:0;-1:-1:-1;;160984:32:0;;;;;;;;;;;;;;;;;;;;;;;161107:18;161103:69;;;-1:-1:-1;;161159:1:0;161142:18;;-1:-1:-1;159943:1236:0:o;162275:660::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;162511:34:0;162529:9;162540:4;162511:17;:34::i;:::-;;162556;162574:9;162585:4;162556:17;:34::i;:::-;;162611:71;162637:9;162648;162659:4;:10;;;162671:4;:10;;;162611:25;:71::i;:::-;162695:16;162714:23;;;:14;:23;;;;;;:27;;:23;;;:27;:::i;:::-;162752:23;;;;:14;:23;;;;;;;;:35;;;;;;-1:-1:-1;;162752:35:0;;;;;;;;162815:15;162798:33;;:7;;;:33;;;162860:12;162842:31;;:8;;;:31;;;162884:25;;;:16;:25;;;;;:36;;;;;;;;:43;;;;;;;-1:-1:-1;;;;;162884:43:0;;;-1:-1:-1;;;162884:43:0;;;;;;;;;;162752:35;162884:43;;;;;;;;;;-1:-1:-1;;;162884:43:0;-1:-1:-1;;162884:43:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;;162275:660:0:o;22736:145::-;24569:21;24250:40;-1:-1:-1;;;24250:40:0;;;;22799:75;;22845:17;;-1:-1:-1;;;22845:17:0;;;;;;;;;;;101409:223;22576:20;:18;:20::i;:::-;-1:-1:-1;;;;;;;;;;;101087:21:0;101579:15:::1;101589:5:::0;101087:21;101579:15:::1;:::i;:::-;-1:-1:-1::0;101605:9:0::1;::::0;::::1;:19;101617:7:::0;101605:9;:19:::1;:::i;142505:111::-:0;22576:20;:18;:20::i;145244:97::-;22576:20;:18;:20::i;:::-;145318:7:::1;:15:::0;;-1:-1:-1;;145318:15:0::1;::::0;;145244:97::o;149048:240::-;22576:20;:18;:20::i;109617:886::-;109703:7;-1:-1:-1;;;;;;;;;;;109703:7:0;109794:17;109803:7;109794:8;:17::i;:::-;109779:32;-1:-1:-1;;;;;;109874:18:0;;;109870:88;;109909:37;109926:4;109932;109938:7;109909:16;:37::i;:::-;-1:-1:-1;;;;;110005:18:0;;;110001:265;;110123:48;110140:1;110144:7;110161:1;110165:5;110123:8;:48::i;:::-;-1:-1:-1;;;;;110217:17:0;;;;;;:11;;;:17;;;;;:22;;-1:-1:-1;;110217:22:0;;;110001:265;-1:-1:-1;;;;;110282:16:0;;;110278:113;;-1:-1:-1;;;;;110344:15:0;;;;;;:11;;;:15;;;;;:20;;110363:1;110344:20;;;110278:113;110403:18;;;;:9;;;:18;;;;;;:23;;-1:-1:-1;;;;;;110403:23:0;-1:-1:-1;;;;;110403:23:0;;;;;;;;;110444:27;;110403:18;;110444:27;;;;;;;110491:4;109617:886;-1:-1:-1;;;;;109617:886:0:o;138828:660::-;139263:23;139289:69;139317:4;139289:69;;;;;;;;;;;;;;;;;139297:5;-1:-1:-1;;;;;139289:27:0;;;:69;;;;;:::i;:::-;139263:95;;139377:10;:17;139398:1;139377:22;:56;;;;139414:10;139403:30;;;;;;;;;;;;:::i;:::-;139369:111;;;;-1:-1:-1;;;139369:111:0;;25796:2:1;139369:111:0;;;25778:21:1;25835:2;25815:18;;;25808:30;25874:34;25854:18;;;25847:62;-1:-1:-1;;;25925:18:1;;;25918:40;25975:19;;139369:111:0;25594:406:1;111866:210:0;111961:18;111967:2;111971:7;111961:5;:18::i;:::-;111990:78;25439:10;112046:1;112050:2;112054:7;112063:4;14632:948;-1:-1:-1;;;;;14819:14:0;;;:18;14815:758;;14858:67;;-1:-1:-1;;;14858:67:0;;-1:-1:-1;;;;;14858:36:0;;;;;:67;;14895:8;;14905:4;;14911:7;;14920:4;;14858:67;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14858:67:0;;;;;;;;-1:-1:-1;;14858:67:0;;;;;;;;;;;;:::i;:::-;;;14854:708;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15221:6;:13;15238:1;15221:18;15217:330;;15327:39;;-1:-1:-1;;;15327:39:0;;-1:-1:-1;;;;;1506:32:1;;15327:39:0;;;1488:51:1;1461:18;;15327:39:0;1342:203:1;15217:330:0;15497:6;15491:13;15482:6;15478:2;15474:15;15467:38;14854:708;-1:-1:-1;;;;;;14973:51:0;;-1:-1:-1;;;14973:51:0;14969:185;;15095:39;;-1:-1:-1;;;15095:39:0;;-1:-1:-1;;;;;1506:32:1;;15095:39:0;;;1488:51:1;1461:18;;15095:39:0;1342:203:1;14969:185:0;14926:243;14854:708;14632:948;;;;;:::o;146311:108::-;146038:7;;;;146370:41;;;;-1:-1:-1;;;146370:41:0;;26951:2:1;146370:41:0;;;26933:21:1;26990:2;26970:18;;;26963:30;-1:-1:-1;;;27009:18:1;;;27002:50;27069:18;;146370:41:0;26749:344:1;161187:1080:0;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;153247:9:0;161403:21;153247:9;161403:14;:21;:::i;:::-;161402:30;;;;:::i;:::-;161390:42;-1:-1:-1;161461:15:0;161443:8;161498:735;161522:3;161518:1;:7;161498:735;;;161543:10;153247:9;161543:10;;:::i;:::-;;;161577:1;161572:6;;:2;:6;;;161568:232;;;161650:18;161654:14;161650:1;:18;:::i;:::-;161642:27;;161617:9;:15;;;:53;;;;:::i;:::-;161599:71;;:9;;:71;;;;;:::i;:::-;;;;;-1:-1:-1;161689:16:0;;;;:12;;;:16;161747:12;161724:36;:13;;;:36;161779:5;;161568:232;161865:19;161870:14;161865:2;:19;:::i;:::-;161857:28;;161832:9;:15;;;:54;;;;:::i;:::-;161814:72;;:9;;:72;;;;;:::i;:::-;;;;;;;;161920:16;;;;;;;:12;:16;;;;;;;;;161901:15;;;:35;;161920:16;;;;;-1:-1:-1;161901:35:0;;161920:16;;161901:35;:::i;:::-;;;;;-1:-1:-1;161951:17:0;;;:12;;;:17;;;153407:4;;162046:17;;161966:2;162046:17;:::i;:::-;162023:41;;;;-1:-1:-1;;;;;162023:19:0;;:41;:::i;:::-;162022:55;;;;:::i;:::-;162006:9;:13;;;:71;;;;;;:::i;:::-;161983:95;;:13;;;:95;:9;162107:12;:36;162140:1;162120:10;:6;162129:1;162120:10;:::i;:::-;:22;;;;:::i;:::-;162107:36;;;;;;;;;;;;;;;;;;-1:-1:-1;162107:36:0;:48;;;;;;-1:-1:-1;;;;;162107:48:0;;;-1:-1:-1;;;162107:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;162107:48:0;-1:-1:-1;;162107:48:0;;;;;;;;;;;;;;;162187:2;;-1:-1:-1;162187:2:0;;162216:3;161498:735;;;-1:-1:-1;162250:9:0;;161187:1080;-1:-1:-1;;;;;;161187:1080:0:o;162943:715::-;163076:4;163118:15;163097:37;;:6;:10;;;:37;;;;:59;;;-1:-1:-1;163138:13:0;;:18;;;163097:59;163093:77;;;-1:-1:-1;163165:5:0;163158:12;;163093:77;163191:15;163236;163216:6;:10;;;:36;;;;:::i;:::-;163191:62;-1:-1:-1;153201:8:0;163275:18;;;;:39;;163306:8;163275:39;;;153201:8;163275:39;163264:50;;163335:18;163356:39;163386:8;163356:29;:39::i;:::-;163445:13;;163335:60;;-1:-1:-1;;;;;;163429:31:0;;;;153407:4;;163500:25;;;;163429:31;163500:25;:::i;:::-;163499:39;;;;:::i;:::-;163471:69;;;;153201:8;163581:24;153407:4;163581:12;:24;:::i;:::-;163580:36;;;;:::i;:::-;163551:67;;:11;;;:67;-1:-1:-1;163646:4:0;;-1:-1:-1;;;162943:715:0;;;;:::o;163666:1291::-;163931:15;163908:39;;:9;:13;;;:39;;;163904:579;;;164040:13;;;;;164027:27;;164008:16;164027:27;;;:12;:27;;;;;;;;;164069:21;164082:8;164027:27;164069:21;:::i;:::-;;;164278:9;:13;;;164261:30;;:9;:13;;;:30;;;164257:147;;164312:21;164325:8;164312:21;;:::i;:::-;;;164257:147;164445:13;;;;;164432:27;;;;;;:12;:27;;;;;;:39;;-1:-1:-1;;;;;;164432:39:0;-1:-1:-1;;;;;164432:39:0;;;;;;;;;;163904:579;164564:15;164541:39;;:9;:13;;;:39;;;164537:413;;;164617:9;:13;;;164601:29;;:9;:13;;;:29;;;164597:342;;;164762:13;;;;;164749:27;;164730:16;164749:27;;;:12;:27;;;;;;;;;164795:21;164808:8;164749:27;164795:21;:::i;:::-;164897:13;;;;;164884:27;;;;;;:12;:27;;;;;;:39;;-1:-1:-1;;;;;164884:39:0;;;-1:-1:-1;;;;;;164884:39:0;;;;;;;;;-1:-1:-1;163666:1291:0;;;;:::o;107766:376::-;107879:38;107893:5;107900:7;107909;107879:13;:38::i;:::-;107874:261;;-1:-1:-1;;;;;107938:19:0;;107934:190;;107985:31;;-1:-1:-1;;;107985:31:0;;;;;8566:25:1;;;8539:18;;107985:31:0;8420:177:1;107934:190:0;108064:44;;-1:-1:-1;;;108064:44:0;;-1:-1:-1;;;;;21526:32:1;;108064:44:0;;;21508:51:1;21575:18;;;21568:34;;;21481:18;;108064:44:0;21334:274:1;128228:229:0;128365:12;128397:52;128419:6;128427:4;128433:1;128436:12;128397:21;:52::i;110839:335::-;-1:-1:-1;;;;;110907:16:0;;110903:89;;110947:33;;-1:-1:-1;;;110947:33:0;;110977:1;110947:33;;;1488:51:1;1461:18;;110947:33:0;1342:203:1;110903:89:0;111002:21;111026:32;111034:2;111038:7;111055:1;111026:7;:32::i;:::-;111002:56;-1:-1:-1;;;;;;111073:27:0;;;111069:98;;111124:31;;-1:-1:-1;;;111124:31:0;;111152:1;111124:31;;;1488:51:1;1461:18;;111124:31:0;1342:203:1;107047:276:0;107150:4;-1:-1:-1;;;;;107187:21:0;;;;;;:128;;;107235:7;-1:-1:-1;;;;;107226:16:0;:5;-1:-1:-1;;;;;107226:16:0;;:52;;;;107246:32;107263:5;107270:7;107246:16;:32::i;:::-;107226:88;;;;107307:7;-1:-1:-1;;;;;107282:32:0;:21;107295:7;107282:12;:21::i;:::-;-1:-1:-1;;;;;107282:32:0;;;107047:276;-1:-1:-1;;;;107047:276:0:o;129314:455::-;129484:12;129542:5;129517:21;:30;;129509:81;;;;-1:-1:-1;;;129509:81:0;;27300:2:1;129509:81:0;;;27282:21:1;27339:2;27319:18;;;27312:30;27378:34;27358:18;;;27351:62;-1:-1:-1;;;27429:18:1;;;27422:36;27475:19;;129509:81:0;27098:402:1;129509:81:0;129602:12;129616:23;129643:6;-1:-1:-1;;;;;129643:11:0;129662:5;129669:4;129643:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;129601:73;;;;129692:69;129719:6;129727:7;129736:10;129748:12;129692:26;:69::i;:::-;129685:76;129314:455;-1:-1:-1;;;;;;;129314:455:0:o;131887:644::-;132072:12;132101:7;132097:427;;;132129:10;:17;132150:1;132129:22;132125:290;;-1:-1:-1;;;;;125768:19:0;;;132339:60;;;;-1:-1:-1;;;132339:60:0;;27707:2:1;132339:60:0;;;27689:21:1;27746:2;27726:18;;;27719:30;27785:31;27765:18;;;27758:59;27834:18;;132339:60:0;27505:353:1;132339:60:0;-1:-1:-1;132436:10:0;132429:17;;132097:427;132479:33;132487:10;132499:12;133234:17;;:21;133230:388;;133466:10;133460:17;133523:15;133510:10;133506:2;133502:19;133495:44;133230:388;133593:12;133586:20;;-1:-1:-1;;;133586:20:0;;;;;;;;:::i;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:289::-;634:3;672:5;666:12;699:6;694:3;687:19;755:6;748:4;741:5;737:16;730:4;725:3;721:14;715:47;807:1;800:4;791:6;786:3;782:16;778:27;771:38;870:4;863:2;859:7;854:2;846:6;842:15;838:29;833:3;829:39;825:50;818:57;;;592:289;;;;:::o;886:220::-;1035:2;1024:9;1017:21;998:4;1055:45;1096:2;1085:9;1081:18;1073:6;1055:45;:::i;1111:226::-;1170:6;1223:2;1211:9;1202:7;1198:23;1194:32;1191:52;;;1239:1;1236;1229:12;1191:52;-1:-1:-1;1284:23:1;;1111:226;-1:-1:-1;1111:226:1:o;1550:173::-;1618:20;;-1:-1:-1;;;;;1667:31:1;;1657:42;;1647:70;;1713:1;1710;1703:12;1647:70;1550:173;;;:::o;1728:300::-;1796:6;1804;1857:2;1845:9;1836:7;1832:23;1828:32;1825:52;;;1873:1;1870;1863:12;1825:52;1896:29;1915:9;1896:29;:::i;:::-;1886:39;1994:2;1979:18;;;;1966:32;;-1:-1:-1;;;1728:300:1:o;2267:186::-;2326:6;2379:2;2367:9;2358:7;2354:23;2350:32;2347:52;;;2395:1;2392;2385:12;2347:52;2418:29;2437:9;2418:29;:::i;2458:611::-;2648:2;2660:21;;;2730:13;;2633:18;;;2752:22;;;2600:4;;2831:15;;;2805:2;2790:18;;;2600:4;2874:169;2888:6;2885:1;2882:13;2874:169;;;2949:13;;2937:26;;2992:2;3018:15;;;;2983:12;;;;2910:1;2903:9;2874:169;;;-1:-1:-1;3060:3:1;;2458:611;-1:-1:-1;;;;;2458:611:1:o;3074:163::-;3141:20;;3201:10;3190:22;;3180:33;;3170:61;;3227:1;3224;3217:12;3242:298;3309:6;3317;3370:2;3358:9;3349:7;3345:23;3341:32;3338:52;;;3386:1;3383;3376:12;3338:52;3431:23;;;-1:-1:-1;3497:37:1;3530:2;3515:18;;3497:37;:::i;:::-;3487:47;;3242:298;;;;;:::o;3999:188::-;4067:20;;-1:-1:-1;;;;;4116:46:1;;4106:57;;4096:85;;4177:1;4174;4167:12;4192:493;4277:6;4285;4293;4301;4354:3;4342:9;4333:7;4329:23;4325:33;4322:53;;;4371:1;4368;4361:12;4322:53;4416:23;;;-1:-1:-1;4482:37:1;4515:2;4500:18;;4482:37;:::i;:::-;4472:47;-1:-1:-1;4592:2:1;4577:18;;4564:32;;-1:-1:-1;4641:38:1;4675:2;4660:18;;4641:38;:::i;:::-;4631:48;;4192:493;;;;;;;:::o;4690:127::-;4751:10;4746:3;4742:20;4739:1;4732:31;4782:4;4779:1;4772:15;4806:4;4803:1;4796:15;4822:275;4893:2;4887:9;4958:2;4939:13;;-1:-1:-1;;4935:27:1;4923:40;;4993:18;4978:34;;5014:22;;;4975:62;4972:88;;;5040:18;;:::i;:::-;5076:2;5069:22;4822:275;;-1:-1:-1;4822:275:1:o;5102:187::-;5151:4;5184:18;5176:6;5173:30;5170:56;;;5206:18;;:::i;:::-;-1:-1:-1;5272:2:1;5251:15;-1:-1:-1;;5247:29:1;5278:4;5243:40;;5102:187::o;5294:338::-;5359:5;5388:53;5404:36;5433:6;5404:36;:::i;:::-;5388:53;:::i;:::-;5379:62;;5464:6;5457:5;5450:21;5504:3;5495:6;5490:3;5486:16;5483:25;5480:45;;;5521:1;5518;5511:12;5480:45;5570:6;5565:3;5558:4;5551:5;5547:16;5534:43;5624:1;5617:4;5608:6;5601:5;5597:18;5593:29;5586:40;5294:338;;;;;:::o;5637:222::-;5680:5;5733:3;5726:4;5718:6;5714:17;5710:27;5700:55;;5751:1;5748;5741:12;5700:55;5773:80;5849:3;5840:6;5827:20;5820:4;5812:6;5808:17;5773:80;:::i;5864:687::-;5970:6;5978;5986;5994;6047:3;6035:9;6026:7;6022:23;6018:33;6015:53;;;6064:1;6061;6054:12;6015:53;6087:29;6106:9;6087:29;:::i;:::-;6077:39;;6135:38;6169:2;6158:9;6154:18;6135:38;:::i;:::-;6125:48;;6224:2;6213:9;6209:18;6196:32;6251:18;6243:6;6240:30;6237:50;;;6283:1;6280;6273:12;6237:50;6306;6348:7;6339:6;6328:9;6324:22;6306:50;:::i;:::-;6296:60;;;6409:2;6398:9;6394:18;6381:32;6438:18;6428:8;6425:32;6422:52;;;6470:1;6467;6460:12;6422:52;6493;6537:7;6526:8;6515:9;6511:24;6493:52;:::i;:::-;6483:62;;;5864:687;;;;;;;:::o;6556:374::-;6633:6;6641;6649;6702:2;6690:9;6681:7;6677:23;6673:32;6670:52;;;6718:1;6715;6708:12;6670:52;6741:29;6760:9;6741:29;:::i;:::-;6731:39;;6789:38;6823:2;6812:9;6808:18;6789:38;:::i;:::-;6556:374;;6779:48;;-1:-1:-1;;;6896:2:1;6881:18;;;;6868:32;;6556:374::o;6935:730::-;7030:6;7038;7046;7099:2;7087:9;7078:7;7074:23;7070:32;7067:52;;;7115:1;7112;7105:12;7067:52;7155:9;7142:23;7188:18;7180:6;7177:30;7174:50;;;7220:1;7217;7210:12;7174:50;7243:22;;7296:4;7288:13;;7284:27;-1:-1:-1;7274:55:1;;7325:1;7322;7315:12;7274:55;7365:2;7352:16;7391:18;7383:6;7380:30;7377:50;;;7423:1;7420;7413:12;7377:50;7478:7;7471:4;7461:6;7458:1;7454:14;7450:2;7446:23;7442:34;7439:47;7436:67;;;7499:1;7496;7489:12;7436:67;7530:4;7522:13;;;;7554:6;;-1:-1:-1;7614:20:1;;7601:34;;6935:730;-1:-1:-1;;;6935:730:1:o;7893:522::-;7987:6;7995;8003;8011;8019;8072:3;8060:9;8051:7;8047:23;8043:33;8040:53;;;8089:1;8086;8079:12;8040:53;8112:29;8131:9;8112:29;:::i;:::-;8102:39;;8160:38;8194:2;8183:9;8179:18;8160:38;:::i;:::-;8150:48;;8217:37;8250:2;8239:9;8235:18;8217:37;:::i;:::-;8207:47;-1:-1:-1;8323:2:1;8308:18;;8295:32;;-1:-1:-1;8370:39:1;8404:3;8389:19;;8370:39;:::i;:::-;8360:49;;7893:522;;;;;;;;:::o;8602:184::-;8660:6;8713:2;8701:9;8692:7;8688:23;8684:32;8681:52;;;8729:1;8726;8719:12;8681:52;8752:28;8770:9;8752:28;:::i;9881:118::-;9967:5;9960:13;9953:21;9946:5;9943:32;9933:60;;9989:1;9986;9979:12;10004:315;10069:6;10077;10130:2;10118:9;10109:7;10105:23;10101:32;10098:52;;;10146:1;10143;10136:12;10098:52;10169:29;10188:9;10169:29;:::i;:::-;10159:39;;10248:2;10237:9;10233:18;10220:32;10261:28;10283:5;10261:28;:::i;:::-;10308:5;10298:15;;;10004:315;;;;;:::o;10324:713::-;10419:6;10427;10435;10443;10496:3;10484:9;10475:7;10471:23;10467:33;10464:53;;;10513:1;10510;10503:12;10464:53;10536:29;10555:9;10536:29;:::i;:::-;10526:39;;10584:38;10618:2;10607:9;10603:18;10584:38;:::i;:::-;10574:48;-1:-1:-1;10691:2:1;10676:18;;10663:32;;-1:-1:-1;10770:2:1;10755:18;;10742:32;10797:18;10786:30;;10783:50;;;10829:1;10826;10819:12;10783:50;10852:22;;10905:4;10897:13;;10893:27;-1:-1:-1;10883:55:1;;10934:1;10931;10924:12;10883:55;10957:74;11023:7;11018:2;11005:16;11000:2;10996;10992:11;10957:74;:::i;11042:495::-;11128:6;11136;11144;11152;11205:3;11193:9;11184:7;11180:23;11176:33;11173:53;;;11222:1;11219;11212:12;11173:53;11267:23;;;-1:-1:-1;11333:38:1;11367:2;11352:18;;11333:38;:::i;11542:258::-;11609:6;11617;11670:2;11658:9;11649:7;11645:23;11641:32;11638:52;;;11686:1;11683;11676:12;11638:52;11709:29;11728:9;11709:29;:::i;:::-;11699:39;;11757:37;11790:2;11779:9;11775:18;11757:37;:::i;11805:447::-;11890:6;11898;11906;11914;11967:3;11955:9;11946:7;11942:23;11938:33;11935:53;;;11984:1;11981;11974:12;11935:53;12007:29;12026:9;12007:29;:::i;:::-;11997:39;;12055:37;12088:2;12077:9;12073:18;12055:37;:::i;12257:260::-;12325:6;12333;12386:2;12374:9;12365:7;12361:23;12357:32;12354:52;;;12402:1;12399;12392:12;12354:52;12425:29;12444:9;12425:29;:::i;:::-;12415:39;;12473:38;12507:2;12496:9;12492:18;12473:38;:::i;12522:380::-;12601:1;12597:12;;;;12644;;;12665:61;;12719:4;12711:6;12707:17;12697:27;;12665:61;12772:2;12764:6;12761:14;12741:18;12738:38;12735:161;;12818:10;12813:3;12809:20;12806:1;12799:31;12853:4;12850:1;12843:15;12881:4;12878:1;12871:15;12735:161;;12522:380;;;:::o;12907:127::-;12968:10;12963:3;12959:20;12956:1;12949:31;12999:4;12996:1;12989:15;13023:4;13020:1;13013:15;13039:127;13100:10;13095:3;13091:20;13088:1;13081:31;13131:4;13128:1;13121:15;13155:4;13152:1;13145:15;13171:135;13210:3;13231:17;;;13228:43;;13251:18;;:::i;:::-;-1:-1:-1;13298:1:1;13287:13;;13171:135::o;13311:170::-;13408:10;13401:18;;;13381;;;13377:43;;13432:20;;13429:46;;;13455:18;;:::i;13486:168::-;13559:9;;;13590;;13607:15;;;13601:22;;13587:37;13577:71;;13628:18;;:::i;13659:127::-;13720:10;13715:3;13711:20;13708:1;13701:31;13751:4;13748:1;13741:15;13775:4;13772:1;13765:15;13791:120;13831:1;13857;13847:35;;13862:18;;:::i;:::-;-1:-1:-1;13896:9:1;;13791:120::o;13916:128::-;13983:9;;;14004:11;;;14001:37;;;14018:18;;:::i;14049:167::-;14144:10;14117:18;;;14137;;;14113:43;;14168:19;;14165:45;;;14190:18;;:::i;15091:185::-;15129:3;15173:10;15166:5;15162:22;15203:7;15193:41;;15214:18;;:::i;:::-;-1:-1:-1;;15250:20:1;;15091:185;-1:-1:-1;;15091:185:1:o;15281:243::-;-1:-1:-1;;;;;15396:42:1;;;15352;;;15348:91;;15451:44;;15448:70;;;15498:18;;:::i;15529:125::-;15594:9;;;15615:10;;;15612:36;;;15628:18;;:::i;15659:249::-;15759:2;15748:17;;;15729;;;;15725:41;-1:-1:-1;;;;;;15781:50:1;;-1:-1:-1;;;;;15833:45:1;;15778:101;15775:127;;;15882:18;;:::i;15913:188::-;15951:3;15995:10;15988:5;15984:22;16030:10;16021:7;16018:23;16015:49;;16044:18;;:::i;:::-;16093:1;16080:15;;15913:188;-1:-1:-1;;15913:188:1:o;16398:184::-;16468:6;16521:2;16509:9;16500:7;16496:23;16492:32;16489:52;;;16537:1;16534;16527:12;16489:52;-1:-1:-1;16560:16:1;;16398:184;-1:-1:-1;16398:184:1:o;17598:240::-;-1:-1:-1;;;;;17667:42:1;;;17711;;;17663:91;;17766:43;;17763:69;;;17812:18;;:::i;17843:301::-;17972:3;18010:6;18004:13;18056:6;18049:4;18041:6;18037:17;18032:3;18026:37;18118:1;18082:16;;18107:13;;;-1:-1:-1;18082:16:1;17843:301;-1:-1:-1;17843:301:1:o;18499:687::-;18579:6;18632:2;18620:9;18611:7;18607:23;18603:32;18600:52;;;18648:1;18645;18638:12;18600:52;18681:9;18675:16;18714:18;18706:6;18703:30;18700:50;;;18746:1;18743;18736:12;18700:50;18769:22;;18822:4;18814:13;;18810:27;-1:-1:-1;18800:55:1;;18851:1;18848;18841:12;18800:55;18884:2;18878:9;18909:53;18925:36;18954:6;18925:36;:::i;18909:53::-;18985:6;18978:5;18971:21;19033:7;19028:2;19019:6;19015:2;19011:15;19007:24;19004:37;19001:57;;;19054:1;19051;19044:12;19001:57;19102:6;19097:2;19093;19089:11;19084:2;19077:5;19073:14;19067:42;19154:1;19129:18;;;19149:2;19125:27;19118:38;;;;19133:5;18499:687;-1:-1:-1;;;;18499:687:1:o;21613:178::-;21652:1;21686:10;21683:1;21679:18;21716:3;21706:37;;21723:18;;:::i;:::-;21781:3;21768:10;21765:1;21761:18;21757:28;21752:33;;;21613:178;;;;:::o;21796:244::-;21907:10;21880:18;;;21900;;;21876:43;21939:28;;;;21986:24;;;21976:58;;22014:18;;:::i;:::-;21976:58;21796:244;;;;:::o;22045:241::-;22084:7;22163:1;22159:2;22148:17;22144:1;22140:2;22129:17;22125:41;22201:11;22197:2;22186:27;22175:38;;22244:11;22235:7;22232:24;22222:58;;22260:18;;:::i;22291:245::-;22389:2;22359:17;;;22378;;;;22355:41;-1:-1:-1;;;;;22411:44:1;;-1:-1:-1;;;;;;22457:49:1;;22408:99;22405:125;;;22510:18;;:::i;22541:227::-;22581:1;-1:-1:-1;;;;;22612:1:1;22608:42;22669:3;22659:37;;22676:18;;:::i;:::-;22758:3;-1:-1:-1;;;;;22718:1:1;22714:42;22710:52;22705:57;;;22541:227;;;;:::o;23346:518::-;23448:2;23443:3;23440:11;23437:421;;;23484:5;23481:1;23474:16;23528:4;23525:1;23515:18;23598:2;23586:10;23582:19;23579:1;23575:27;23569:4;23565:38;23634:4;23622:10;23619:20;23616:47;;;-1:-1:-1;23657:4:1;23616:47;23712:2;23707:3;23703:12;23700:1;23696:20;23690:4;23686:31;23676:41;;23767:81;23785:2;23778:5;23775:13;23767:81;;;23844:1;23830:16;;23811:1;23800:13;23767:81;;24040:1299;24166:3;24160:10;24193:18;24185:6;24182:30;24179:56;;;24215:18;;:::i;:::-;24244:97;24334:6;24294:38;24326:4;24320:11;24294:38;:::i;:::-;24288:4;24244:97;:::i;:::-;24390:4;24421:2;24410:14;;24438:1;24433:649;;;;25126:1;25143:6;25140:89;;;-1:-1:-1;25195:19:1;;;25189:26;25140:89;-1:-1:-1;;23997:1:1;23993:11;;;23989:24;23985:29;23975:40;24021:1;24017:11;;;23972:57;25242:81;;24403:930;;24433:649;23293:1;23286:14;;;23330:4;23317:18;;-1:-1:-1;;24469:20:1;;;24587:222;24601:7;24598:1;24595:14;24587:222;;;24683:19;;;24677:26;24662:42;;24790:4;24775:20;;;;24743:1;24731:14;;;;24617:12;24587:222;;;24591:3;24837:6;24828:7;24825:19;24822:201;;;24898:19;;;24892:26;-1:-1:-1;;24981:1:1;24977:14;;;24993:3;24973:24;24969:37;24965:42;24950:58;24935:74;;24822:201;-1:-1:-1;;;;25069:1:1;25053:14;;;25049:22;25036:36;;-1:-1:-1;24040:1299:1:o;25344:245::-;25411:6;25464:2;25452:9;25443:7;25439:23;25435:32;25432:52;;;25480:1;25477;25470:12;25432:52;25512:9;25506:16;25531:28;25553:5;25531:28;:::i;26005:485::-;-1:-1:-1;;;;;26236:32:1;;;26218:51;;26305:32;;26300:2;26285:18;;26278:60;26369:2;26354:18;;26347:34;;;26417:3;26412:2;26397:18;;26390:31;;;-1:-1:-1;;26438:46:1;;26464:19;;26456:6;26438:46;:::i;26495:249::-;26564:6;26617:2;26605:9;26596:7;26592:23;26588:32;26585:52;;;26633:1;26630;26623:12;26585:52;26665:9;26659:16;26684:30;26708:5;26684:30;:::i
Swarm Source
ipfs://0837189db24b8823928b0e479d8a73bd25462dfb51f1153d1970a1f3294ea63d
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.