Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
MistfitsNFT
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-02-01 */ // SPDX-License-Identifier: MIT // File @openzeppelin/contracts-upgradeable/utils/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) 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 * ==== * * [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://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (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 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); } } } // File @openzeppelin/contracts-upgradeable/proxy/utils/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; /** * @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] * ``` * 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 Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 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 functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _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 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _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() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @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 { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } } // File @openzeppelin/contracts-upgradeable/security/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) 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 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; } // File @openzeppelin/contracts-upgradeable/utils/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with 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; } /** * @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[50] private __gap; } // File @openzeppelin/contracts-upgradeable/access/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @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) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _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 { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } /** * @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; } // File @openzeppelin/contracts-upgradeable/security/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) 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; } // File @openzeppelin/contracts-upgradeable/utils/math/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library MathUpgradeable { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return 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 up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev 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^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 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. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); 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^256 / 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^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. 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^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // 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^256. Since the preconditions guarantee that the outcome is // less than 2^256, 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; } } /** * @notice 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) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice 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 + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 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 + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * 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 + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * 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; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { 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 log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } } // File @openzeppelin/contracts-upgradeable/utils/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library StringsUpgradeable { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = MathUpgradeable.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, MathUpgradeable.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) { 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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); 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); } } // File erc721a-upgradeable/contracts/[email protected] // License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev This is a base storage for the initialization function for upgradeable diamond facet contracts **/ library ERC721A__InitializableStorage { struct Layout { /* * Indicates that the contract has been initialized. */ bool _initialized; /* * Indicates that the contract is in the process of being initialized. */ bool _initializing; } bytes32 internal constant STORAGE_SLOT = keccak256('ERC721A.contracts.storage.initializable.facet'); function layout() internal pure returns (Layout storage l) { bytes32 slot = STORAGE_SLOT; assembly { l.slot := slot } } } // File erc721a-upgradeable/contracts/[email protected] // License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev This is a base contract to aid in writing upgradeable diamond facet 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. * * 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. */ abstract contract ERC721A__Initializable { using ERC721A__InitializableStorage for ERC721A__InitializableStorage.Layout; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializerERC721A() { // If the contract is initializing we ignore whether _initialized is set in order to support multiple // inheritance patterns, but we only do this in the context of a constructor, because in other contexts the // contract may have been reentered. require( ERC721A__InitializableStorage.layout()._initializing ? _isConstructor() : !ERC721A__InitializableStorage.layout()._initialized, 'ERC721A__Initializable: contract is already initialized' ); bool isTopLevelCall = !ERC721A__InitializableStorage.layout()._initializing; if (isTopLevelCall) { ERC721A__InitializableStorage.layout()._initializing = true; ERC721A__InitializableStorage.layout()._initialized = true; } _; if (isTopLevelCall) { ERC721A__InitializableStorage.layout()._initializing = false; } } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} modifier, directly or indirectly. */ modifier onlyInitializingERC721A() { require( ERC721A__InitializableStorage.layout()._initializing, 'ERC721A__Initializable: contract is not initializing' ); _; } /// @dev Returns true if and only if the function is running in the constructor function _isConstructor() private view returns (bool) { // extcodesize checks the size of the code stored in an address, and // address returns the current address. Since the code is still not // deployed when running a constructor, any checks on its code size will // yield zero, making it an effective way to detect if a contract is // under construction or not. address self = address(this); uint256 cs; assembly { cs := extcodesize(self) } return cs == 0; } } // File erc721a-upgradeable/contracts/[email protected] // License-Identifier: MIT pragma solidity ^0.8.0; library ERC721AStorage { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } struct Layout { // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 _currentIndex; // The number of tokens burned. uint256 _burnCounter; // Token name string _name; // Token symbol string _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => ERC721AStorage.TokenApprovalRef) _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) _operatorApprovals; } bytes32 internal constant STORAGE_SLOT = keccak256('ERC721A.contracts.storage.ERC721A'); function layout() internal pure returns (Layout storage l) { bytes32 slot = STORAGE_SLOT; assembly { l.slot := slot } } } // File erc721a-upgradeable/contracts/[email protected] // License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721AUpgradeable { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @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 payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns 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); // ============================================================= // IERC721Metadata // ============================================================= /** * @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); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); } // File erc721a-upgradeable/contracts/[email protected] // License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721ReceiverUpgradeable { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721AUpgradeable is ERC721A__Initializable, IERC721AUpgradeable { using ERC721AStorage for ERC721AStorage.Layout; // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // CONSTRUCTOR // ============================================================= function __ERC721A_init(string memory name_, string memory symbol_) internal onlyInitializingERC721A { __ERC721A_init_unchained(name_, symbol_); } function __ERC721A_init_unchained(string memory name_, string memory symbol_) internal onlyInitializingERC721A { ERC721AStorage.layout()._name = name_; ERC721AStorage.layout()._symbol = symbol_; ERC721AStorage.layout()._currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return ERC721AStorage.layout()._currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return ERC721AStorage.layout()._currentIndex - ERC721AStorage.layout()._burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return ERC721AStorage.layout()._currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return ERC721AStorage.layout()._burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return ERC721AStorage.layout()._packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (ERC721AStorage.layout()._packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (ERC721AStorage.layout()._packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(ERC721AStorage.layout()._packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = ERC721AStorage.layout()._packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); ERC721AStorage.layout()._packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return ERC721AStorage.layout()._name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return ERC721AStorage.layout()._symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @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, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(ERC721AStorage.layout()._packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (ERC721AStorage.layout()._packedOwnerships[index] == 0) { ERC721AStorage.layout()._packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) { if (_startTokenId() <= tokenId) { packed = ERC721AStorage.layout()._packedOwnerships[tokenId]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // If the data at the starting slot does not exist, start the scan. if (packed == 0) { if (tokenId >= ERC721AStorage.layout()._currentIndex) revert OwnerQueryForNonexistentToken(); // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `tokenId` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. for (;;) { unchecked { packed = ERC721AStorage.layout()._packedOwnerships[--tokenId]; } if (packed == 0) continue; return packed; } } // Otherwise, the data exists and is not burned. We can skip the scan. // This is possible because we have already achieved the target condition. // This saves 2143 gas on transfers of initialized tokens. return packed; } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}. * * Requirements: * * - The caller must own the token or be an approved operator. */ function approve(address to, uint256 tokenId) public payable virtual override { _approve(to, tokenId, true); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return ERC721AStorage.layout()._tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { ERC721AStorage.layout()._operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return ERC721AStorage.layout()._operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < ERC721AStorage.layout()._currentIndex && // If within bounds, ERC721AStorage.layout()._packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { ERC721AStorage.TokenApprovalRef storage tokenApproval = ERC721AStorage.layout()._tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --ERC721AStorage.layout()._packedAddressData[from]; // Updates: `balance -= 1`. ++ERC721AStorage.layout()._packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. ERC721AStorage.layout()._packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (ERC721AStorage.layout()._packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != ERC721AStorage.layout()._currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. ERC721AStorage.layout()._packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721ReceiverUpgradeable(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (bytes4 retval) { return retval == ERC721A__IERC721ReceiverUpgradeable(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = ERC721AStorage.layout()._currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. ERC721AStorage.layout()._packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. ERC721AStorage.layout()._packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); ERC721AStorage.layout()._currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = ERC721AStorage.layout()._currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. ERC721AStorage.layout()._packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. ERC721AStorage.layout()._packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); ERC721AStorage.layout()._currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = ERC721AStorage.layout()._currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (ERC721AStorage.layout()._currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Equivalent to `_approve(to, tokenId, false)`. */ function _approve(address to, uint256 tokenId) internal virtual { _approve(to, tokenId, false); } /** * @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: * * - `tokenId` must exist. * * Emits an {Approval} event. */ function _approve( address to, uint256 tokenId, bool approvalCheck ) internal virtual { address owner = ownerOf(tokenId); if (approvalCheck) if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } ERC721AStorage.layout()._tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. ERC721AStorage.layout()._packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. ERC721AStorage.layout()._packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (ERC721AStorage.layout()._packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != ERC721AStorage.layout()._currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. ERC721AStorage.layout()._packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { ERC721AStorage.layout()._burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = ERC721AStorage.layout()._packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); ERC721AStorage.layout()._packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } } // File erc721a-upgradeable/contracts/extensions/[email protected] // License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryableUpgradeable is IERC721AUpgradeable { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); } // File erc721a-upgradeable/contracts/extensions/[email protected] // License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryableUpgradeable is ERC721A__Initializable, ERC721AUpgradeable, IERC721AQueryableUpgradeable { function __ERC721AQueryable_init() internal onlyInitializingERC721A { __ERC721AQueryable_init_unchained(); } function __ERC721AQueryable_init_unchained() internal onlyInitializingERC721A {} /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external view virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } } // File @openzeppelin/contracts-upgradeable/utils/cryptography/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProofUpgradeable { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } // File @openzeppelin/contracts-upgradeable/token/ERC20/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) 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); } // File @openzeppelin/contracts-upgradeable/token/ERC20/extensions/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) 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. */ 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]. */ 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); } // File @openzeppelin/contracts-upgradeable/token/ERC20/utils/[email protected] // License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) 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; function safeTransfer( IERC20Upgradeable token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } 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)); } function safeIncreaseAllowance( IERC20Upgradeable token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } 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"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } 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"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File contracts/MistfitsNFT.sol // License-Identifier: MIT pragma solidity 0.8.17; contract MistfitsNFT is ERC721AUpgradeable, OwnableUpgradeable, PausableUpgradeable, ReentrancyGuardUpgradeable { using StringsUpgradeable for uint256; using SafeERC20Upgradeable for IERC20Upgradeable; address payable public walletAddress; bytes32 public merkleRoot; mapping(address => bool) public whitelistClaimed; mapping(address => bool) public reserveClaimed; string public uriPrefix = ""; string public uriSuffix = ".json"; string public hiddenMetadataUri; uint256 public publicCost; uint256 public whitelistCost; uint256 public maxSupply; uint256 public maxMintAmountPerTxPublic; uint256 public maxMintAmountPerTxWhitelist; uint256 public whitelistSupply; uint256 public reserveSize; bool public whitelistMintEnabled = false; bool public publicMintEnabled = false; bool public revealed = false; address[] private reserveAddresses; modifier mintCompliancePublic(uint256 _mintAmount) { require(publicMintEnabled, "Not in public mint!"); require( _mintAmount > 0 && _mintAmount <= maxMintAmountPerTxPublic, "Invalid mint amount!" ); require( totalSupply() + _mintAmount <= maxSupply, "Max supply exceeded!" ); require(msg.value >= publicCost * _mintAmount, "Insufficient funds!"); _; } modifier mintComplianceWhitelist(uint256 _mintAmount) { require(whitelistMintEnabled, "Not in whitelist mint!"); require(!whitelistClaimed[_msgSender()], "Address already claimed!"); require( _mintAmount > 0 && _mintAmount <= maxMintAmountPerTxWhitelist, "Invalid mint amount!" ); require( totalSupply() + _mintAmount <= maxSupply, "Max supply exceeded!" ); require( totalSupply() + _mintAmount <= whitelistSupply, "Max whitelist supply exceeded!" ); require( msg.value >= whitelistCost * _mintAmount, "Insufficient funds!" ); _; } modifier reserveCompliance() { require( totalSupply() + reserveSize <= maxSupply, "Max supply exceeded!" ); require(!reserveClaimed[_msgSender()], "Already reserved!"); bool found = false; for (uint256 i = 0; i < reserveAddresses.length; i++) { if (reserveAddresses[i] == _msgSender()) { found = true; break; } } require(found, "You can't reserve!"); _; } constructor() initializerERC721A initializer { __Pausable_init(); _pause(); } function initialize( string memory _tokenName, string memory _tokenSymbol, string memory _hiddenMetadataUri, address payable _walletAddress, uint256 _publicCost, uint256 _whitelistCost, uint256 _maxSupply, uint256 _whitelistSupply, uint256 _reserveSize, uint256 _maxMintAmountPerTxPublic, uint256 _maxMintAmountPerTxWhitelist ) public initializerERC721A initializer { __ERC721A_init(_tokenName, _tokenSymbol); __Ownable_init(); __Pausable_init(); __ReentrancyGuard_init(); _pause(); hiddenMetadataUri = _hiddenMetadataUri; walletAddress = _walletAddress; publicCost = _publicCost; whitelistCost = _whitelistCost; maxSupply = _maxSupply; whitelistSupply = _whitelistSupply; reserveSize = _reserveSize; maxMintAmountPerTxPublic = _maxMintAmountPerTxPublic; maxMintAmountPerTxWhitelist = _maxMintAmountPerTxWhitelist; } function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } function setWalletAddress(address payable _walletAddress) external onlyOwner { walletAddress = _walletAddress; } function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } function setReservelist(address[] calldata _reserveAddresses) external onlyOwner { reserveAddresses = _reserveAddresses; } function setReserveSize(uint256 _reserveSize) external onlyOwner { reserveSize = _reserveSize; } function setRevealed(bool _state) external onlyOwner { revealed = _state; } function setPublicCost(uint256 _cost) external onlyOwner { publicCost = _cost; } function setWhitelistCost(uint256 _cost) external onlyOwner { whitelistCost = _cost; } function setWhitelistSupply(uint256 _whitelistSupply) external onlyOwner { whitelistSupply = _whitelistSupply; } function setMaxMintAmountPerTxPublic(uint256 _maxMintAmountPerTx) external onlyOwner { maxMintAmountPerTxPublic = _maxMintAmountPerTx; } function setMaxMintAmountPerTxWhitelist(uint256 _maxMintAmountPerTx) external onlyOwner { maxMintAmountPerTxWhitelist = _maxMintAmountPerTx; } function setHiddenMetadataUri(string calldata _hiddenMetadataUri) external onlyOwner { hiddenMetadataUri = _hiddenMetadataUri; } function setUriPrefix(string calldata _uriPrefix) external onlyOwner { uriPrefix = _uriPrefix; } function setUriSuffix(string calldata _uriSuffix) external onlyOwner { uriSuffix = _uriSuffix; } function setMintEnabled(bool _whitelistMintEnabled, bool _publicMintEnabled) external onlyOwner { whitelistMintEnabled = _whitelistMintEnabled; publicMintEnabled = _publicMintEnabled; } function whitelistMint( uint256 _mintAmount, bytes32[] calldata _merkleProof ) external payable whenNotPaused nonReentrant mintComplianceWhitelist(_mintAmount) { bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); require( MerkleProofUpgradeable.verify(_merkleProof, merkleRoot, leaf), "Invalid proof!" ); whitelistClaimed[_msgSender()] = true; _safeMint(_msgSender(), _mintAmount); if (walletAddress != address(0)) { (bool success, ) = walletAddress.call{value: address(this).balance}( "" ); require(success, "failed"); } } function mint( uint256 _mintAmount ) external payable whenNotPaused nonReentrant mintCompliancePublic(_mintAmount) { _safeMint(_msgSender(), _mintAmount); if (walletAddress != address(0)) { (bool success, ) = walletAddress.call{value: address(this).balance}( "" ); require(success, "failed"); } } function mintForAddress(uint256 _mintAmount, address _receiver) external nonReentrant onlyOwner { require( totalSupply() + _mintAmount <= maxSupply, "Max supply exceeded!" ); _safeMint(_receiver, _mintAmount); } function reserve() external whenNotPaused nonReentrant reserveCompliance { _safeMint(_msgSender(), reserveSize); reserveClaimed[_msgSender()] = true; } function rescueToken(address token) external onlyOwner { require(walletAddress != address(0), "Wallet address not set!"); if (token == address(0x0)) { (bool success, ) = walletAddress.call{value: address(this).balance}(""); require(success, "failed"); return; } IERC20Upgradeable erc20 = IERC20Upgradeable(token); uint256 balance = erc20.balanceOf(address(this)); erc20.safeTransfer(walletAddress, balance); } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require( _exists(_tokenId), "ERC721Metadata: URI query for nonexistent token" ); if (!revealed) { return hiddenMetadataUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked( currentBaseURI, _tokenId.toString(), uriSuffix ) ) : ""; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function _baseURI() internal view virtual override returns (string memory) { return uriPrefix; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","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":"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"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenMetadataUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"string","name":"_hiddenMetadataUri","type":"string"},{"internalType":"address payable","name":"_walletAddress","type":"address"},{"internalType":"uint256","name":"_publicCost","type":"uint256"},{"internalType":"uint256","name":"_whitelistCost","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_whitelistSupply","type":"uint256"},{"internalType":"uint256","name":"_reserveSize","type":"uint256"},{"internalType":"uint256","name":"_maxMintAmountPerTxPublic","type":"uint256"},{"internalType":"uint256","name":"_maxMintAmountPerTxWhitelist","type":"uint256"}],"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":"maxMintAmountPerTxPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTxWhitelist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"mintForAddress","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"rescueToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"reserveClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reserveSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"}],"name":"setMaxMintAmountPerTxPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"}],"name":"setMaxMintAmountPerTxWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_whitelistMintEnabled","type":"bool"},{"internalType":"bool","name":"_publicMintEnabled","type":"bool"}],"name":"setMintEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setPublicCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_reserveSize","type":"uint256"}],"name":"setReserveSize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_reserveAddresses","type":"address[]"}],"name":"setReservelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_walletAddress","type":"address"}],"name":"setWalletAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setWhitelistCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_whitelistSupply","type":"uint256"}],"name":"setWhitelistSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","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":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"walletAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"whitelistMintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040526000608090815260cd906200001a908262000561565b50604080518082019091526005815264173539b7b760d91b602082015260ce9062000046908262000561565b5060d7805462ffffff191690553480156200006057600080fd5b50620000766200031460201b62001dfe1760201c565b54610100900460ff16620000a457620000996200031460201b62001dfe1760201c565b5460ff1615620000a8565b303b155b620001205760405162461bcd60e51b815260206004820152603760248201527f455243373231415f5f496e697469616c697a61626c653a20636f6e747261637460448201527f20697320616c726561647920696e697469616c697a656400000000000000000060648201526084015b60405180910390fd5b6000620001376200031460201b62001dfe1760201c565b54610100900460ff161590508015620001a2576001620001616200031460201b62001dfe1760201c565b60000160016101000a81548160ff0219169083151502179055506001620001926200031460201b62001dfe1760201c565b805460ff19169115159190911790555b600054610100900460ff1615808015620001c35750600054600160ff909116105b80620001f35750620001e0306200033860201b62001e221760201c565b158015620001f3575060005460ff166001145b620002585760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b606482015260840162000117565b6000805460ff1916600117905580156200027c576000805461ff0019166101001790555b6200028662000347565b62000290620003af565b8015620002d7576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5080156200030d576000620002f66200031460201b62001dfe1760201c565b80549115156101000261ff00199092169190911790555b506200062d565b7fee151c8401928dc223602bb187aff91b9a56c7cae5476ef1b3287b085a16c85f90565b6001600160a01b03163b151590565b600054610100900460ff16620003a35760405162461bcd60e51b815260206004820152602b602482015260008051602062003c9383398151915260448201526a6e697469616c697a696e6760a81b606482015260840162000117565b620003ad6200040c565b565b620003b962000474565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620003ef3390565b6040516001600160a01b03909116815260200160405180910390a1565b600054610100900460ff16620004685760405162461bcd60e51b815260206004820152602b602482015260008051602062003c9383398151915260448201526a6e697469616c697a696e6760a81b606482015260840162000117565b6065805460ff19169055565b60655460ff1615620003ad5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640162000117565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620004e757607f821691505b6020821081036200050857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200055c57600081815260208120601f850160051c81016020861015620005375750805b601f850160051c820191505b81811015620005585782815560010162000543565b5050505b505050565b81516001600160401b038111156200057d576200057d620004bc565b62000595816200058e8454620004d2565b846200050e565b602080601f831160018114620005cd5760008415620005b45750858301515b600019600386901b1c1916600185901b17855562000558565b600085815260208120601f198616915b82811015620005fe57888601518255948401946001909101908401620005dd565b50858210156200061d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b613656806200063d6000396000f3fe6080604052600436106103765760003560e01c80636caede3d116101d1578063a4e37fc511610102578063d5abeb01116100a0578063e7b99ec71161006f578063e7b99ec714610972578063e985e9c514610988578063efbd73f4146109a8578063f2fde38b146109c857600080fd5b8063d5abeb01146108f6578063dab4a8761461090c578063db4bec4414610922578063e0a808531461095257600080fd5b8063c87b56dd116100dc578063c87b56dd1461088e578063cd3293de146108ae578063d2cab056146108c3578063d49479eb146108d657600080fd5b8063a4e37fc51461083b578063ac1a386a1461085b578063b88d4fde1461087b57600080fd5b80638693da201161016f57806395d89b411161014957806395d89b41146107de578063a0712d68146107f3578063a22cb46514610806578063a45ba8e71461082657600080fd5b80638693da201461078a5780638da5cb5b146107a05780638fabb454146107be57600080fd5b80637cb64759116101ab5780637cb64759146107155780637ec4a65914610735578063811d2437146107555780638456cb591461077557600080fd5b80636caede3d146106c657806370a08231146106e0578063715018a61461070057600080fd5b80633f4ba83a116102ab5780635503a0e81161024957806362370b3c1161022357806362370b3c1461065157806362b99ad4146106715780636352211e146106865780636ad5b3ea146106a657600080fd5b80635503a0e81461060457806355a63bf4146106195780635c975abb1461063957600080fd5b806348a1c3a31161028557806348a1c3a31461058e5780634a342320146105ae5780634fdd43cb146105c457806351830227146105e457600080fd5b80633f4ba83a1461054657806342842e0e1461055b5780634460d3cf1461056e57600080fd5b80630f4161aa1161031857806323b872dd116102f257806323b872dd146104e757806326203ada146104fa5780632eb4a7ab1461051a57806333e614131461053057600080fd5b80630f4161aa1461049357806316ba10e0146104b257806318160ddd146104d257600080fd5b806307aa88541161035457806307aa8854146103f4578063081812fc14610424578063095ea7b31461045c5780630aaea7ac1461046f57600080fd5b806301ffc9a71461037b57806304c61a5f146103b057806306fdde03146103d2575b600080fd5b34801561038757600080fd5b5061039b610396366004612c0d565b6109e8565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b506103d06103cb366004612c2a565b610a3a565b005b3480156103de57600080fd5b506103e7610a47565b6040516103a79190612c93565b34801561040057600080fd5b5061039b61040f366004612cbb565b60cc6020526000908152604090205460ff1681565b34801561043057600080fd5b5061044461043f366004612c2a565b610ae2565b6040516001600160a01b0390911681526020016103a7565b6103d061046a366004612cd8565b610b2f565b34801561047b57600080fd5b5061048560d65481565b6040519081526020016103a7565b34801561049f57600080fd5b5060d75461039b90610100900460ff1681565b3480156104be57600080fd5b506103d06104cd366004612d04565b610b3f565b3480156104de57600080fd5b50610485610b59565b6103d06104f5366004612d76565b610b79565b34801561050657600080fd5b506103d0610515366004612c2a565b610d70565b34801561052657600080fd5b5061048560ca5481565b34801561053c57600080fd5b5061048560d55481565b34801561055257600080fd5b506103d0610d7d565b6103d0610569366004612d76565b610d8f565b34801561057a57600080fd5b506103d0610589366004612cbb565b610daa565b34801561059a57600080fd5b506103d06105a9366004612c2a565b610f1d565b3480156105ba57600080fd5b5061048560d35481565b3480156105d057600080fd5b506103d06105df366004612d04565b610f2a565b3480156105f057600080fd5b5060d75461039b9062010000900460ff1681565b34801561061057600080fd5b506103e7610f3f565b34801561062557600080fd5b506103d0610634366004612c2a565b610fcd565b34801561064557600080fd5b5060655460ff1661039b565b34801561065d57600080fd5b506103d061066c366004612dc5565b610fda565b34801561067d57600080fd5b506103e7611006565b34801561069257600080fd5b506104446106a1366004612c2a565b611013565b3480156106b257600080fd5b5060c954610444906001600160a01b031681565b3480156106d257600080fd5b5060d75461039b9060ff1681565b3480156106ec57600080fd5b506104856106fb366004612cbb565b61101e565b34801561070c57600080fd5b506103d0611087565b34801561072157600080fd5b506103d0610730366004612c2a565b611099565b34801561074157600080fd5b506103d0610750366004612d04565b6110a6565b34801561076157600080fd5b506103d0610770366004612c2a565b6110bb565b34801561078157600080fd5b506103d06110c8565b34801561079657600080fd5b5061048560d05481565b3480156107ac57600080fd5b506033546001600160a01b0316610444565b3480156107ca57600080fd5b506103d06107d9366004612e4a565b6110d8565b3480156107ea57600080fd5b506103e76110ec565b6103d0610801366004612c2a565b611104565b34801561081257600080fd5b506103d0610821366004612e8c565b6112da565b34801561083257600080fd5b506103e7611357565b34801561084757600080fd5b506103d0610856366004612f61565b611364565b34801561086757600080fd5b506103d0610876366004612cbb565b611608565b6103d061088936600461303c565b611632565b34801561089a57600080fd5b506103e76108a9366004612c2a565b61167c565b3480156108ba57600080fd5b506103d06117ec565b6103d06108d13660046130bc565b611958565b3480156108e257600080fd5b506103d06108f1366004612c2a565b611cc2565b34801561090257600080fd5b5061048560d25481565b34801561091857600080fd5b5061048560d45481565b34801561092e57600080fd5b5061039b61093d366004612cbb565b60cb6020526000908152604090205460ff1681565b34801561095e57600080fd5b506103d061096d366004613108565b611ccf565b34801561097e57600080fd5b5061048560d15481565b34801561099457600080fd5b5061039b6109a3366004613125565b611cf3565b3480156109b457600080fd5b506103d06109c3366004613153565b611d30565b3480156109d457600080fd5b506103d06109e3366004612cbb565b611d88565b60006301ffc9a760e01b6001600160e01b031983161480610a1957506380ac58cd60e01b6001600160e01b03198316145b80610a345750635b5e139f60e01b6001600160e01b03198316145b92915050565b610a42611e31565b60d455565b6060610a51611e8b565b6002018054610a5f90613178565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8b90613178565b8015610ad85780601f10610aad57610100808354040283529160200191610ad8565b820191906000526020600020905b815481529060010190602001808311610abb57829003601f168201915b5050505050905090565b6000610aed82611eaf565b610b0a576040516333d1c03960e21b815260040160405180910390fd5b610b12611e8b565b60009283526006016020525060409020546001600160a01b031690565b610b3b82826001611ef8565b5050565b610b47611e31565b60ce610b548284836131f8565b505050565b60006001610b65611e8b565b60010154610b71611e8b565b540303919050565b6000610b8482611fad565b9050836001600160a01b0316816001600160a01b031614610bb75760405162a1148160e81b815260040160405180910390fd5b600080610bc38461205a565b91509150610be88187610bd33390565b6001600160a01b039081169116811491141790565b610c1357610bf68633611cf3565b610c1357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610c3a57604051633a954ecd60e21b815260040160405180910390fd5b8015610c4557600082555b610c4d611e8b565b6001600160a01b0387166000908152600591909101602052604090208054600019019055610c79611e8b565b6001600160a01b03861660008181526005929092016020526040909120805460010190554260a01b17600160e11b17610cb0611e8b565b60008681526004919091016020526040812091909155600160e11b84169003610d265760018401610cdf611e8b565b600082815260049190910160205260408120549003610d2457610d00611e8b565b548114610d245783610d10611e8b565b600083815260049190910160205260409020555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610d78611e31565b60d655565b610d85611e31565b610d8d612082565b565b610b5483838360405180602001604052806000815250611632565b610db2611e31565b60c9546001600160a01b0316610e0f5760405162461bcd60e51b815260206004820152601760248201527f57616c6c65742061646472657373206e6f74207365742100000000000000000060448201526064015b60405180910390fd5b6001600160a01b038116610e905760c9546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610e6a576040519150601f19603f3d011682016040523d82523d6000602084013e610e6f565b606091505b5050905080610b3b5760405162461bcd60e51b8152600401610e06906132b8565b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610ed9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efd91906132d8565b60c954909150610b54906001600160a01b038481169116836120d4565b50565b610f25611e31565b60d355565b610f32611e31565b60cf610b548284836131f8565b60ce8054610f4c90613178565b80601f0160208091040260200160405190810160405280929190818152602001828054610f7890613178565b8015610fc55780601f10610f9a57610100808354040283529160200191610fc5565b820191906000526020600020905b815481529060010190602001808311610fa857829003601f168201915b505050505081565b610fd5611e31565b60d555565b610fe2611e31565b60d7805461ffff191692151561ff0019169290921761010091151591909102179055565b60cd8054610f4c90613178565b6000610a3482611fad565b60006001600160a01b038216611047576040516323d3ad8160e21b815260040160405180910390fd5b67ffffffffffffffff611058611e8b565b6005016000846001600160a01b03166001600160a01b0316815260200190815260200160002054169050919050565b61108f611e31565b610d8d6000612126565b6110a1611e31565b60ca55565b6110ae611e31565b60cd610b548284836131f8565b6110c3611e31565b60d055565b6110d0611e31565b610d8d612178565b6110e0611e31565b610b5460d88383612b7f565b60606110f6611e8b565b6003018054610a5f90613178565b61110c6121b5565b6111146121fb565b60d7548190610100900460ff166111635760405162461bcd60e51b81526020600482015260136024820152724e6f7420696e207075626c6963206d696e742160681b6044820152606401610e06565b600081118015611175575060d3548111155b6111b85760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d696e7420616d6f756e742160601b6044820152606401610e06565b60d254816111c4610b59565b6111ce9190613307565b11156111ec5760405162461bcd60e51b8152600401610e069061331a565b8060d0546111fa9190613348565b34101561123f5760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610e06565b6112493383612254565b60c9546001600160a01b0316156112cf5760c9546040516000916001600160a01b03169047908381818185875af1925050503d80600081146112a7576040519150601f19603f3d011682016040523d82523d6000602084013e6112ac565b606091505b50509050806112cd5760405162461bcd60e51b8152600401610e06906132b8565b505b50610f1a6001609755565b806112e3611e8b565b336000818152600792909201602090815260408084206001600160a01b03881680865290835293819020805460ff19169515159590951790945592518415158152919290917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60cf8054610f4c90613178565b61136c611dfe565b54610100900460ff1661138b57611381611dfe565b5460ff161561138f565b303b155b6114015760405162461bcd60e51b815260206004820152603760248201527f455243373231415f5f496e697469616c697a61626c653a20636f6e747261637460448201527f20697320616c726561647920696e697469616c697a65640000000000000000006064820152608401610e06565b600061140b611dfe565b54610100900460ff161590508015611457576001611427611dfe565b80549115156101000261ff00199092169190911790556001611447611dfe565b805460ff19169115159190911790555b600054610100900460ff16158080156114775750600054600160ff909116105b806114915750303b158015611491575060005460ff166001145b6114f45760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610e06565b6000805460ff191660011790558015611517576000805461ff0019166101001790555b6115218d8d612275565b6115296122ac565b6115316122db565b61153961230a565b611541612178565b60cf61154d8c8261335f565b5060c980546001600160a01b0319166001600160a01b038c1617905560d089905560d188905560d287905560d586905560d685905560d384905560d483905580156115d2576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5080156115fa5760006115e3611dfe565b80549115156101000261ff00199092169190911790555b505050505050505050505050565b611610611e31565b60c980546001600160a01b0319166001600160a01b0392909216919091179055565b61163d848484610b79565b6001600160a01b0383163b156116765761165984848484612339565b611676576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b606061168782611eaf565b6116eb5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610e06565b60d75462010000900460ff1661178d5760cf805461170890613178565b80601f016020809104026020016040519081016040528092919081815260200182805461173490613178565b80156117815780601f1061175657610100808354040283529160200191611781565b820191906000526020600020905b81548152906001019060200180831161176457829003601f168201915b50505050509050919050565b6000611797612425565b905060008151116117b757604051806020016040528060008152506117e5565b806117c184612434565b60ce6040516020016117d59392919061341f565b6040516020818303038152906040525b9392505050565b6117f46121b5565b6117fc6121fb565b60d25460d65461180a610b59565b6118149190613307565b11156118325760405162461bcd60e51b8152600401610e069061331a565b33600090815260cc602052604090205460ff16156118865760405162461bcd60e51b8152602060048201526011602482015270416c72656164792072657365727665642160781b6044820152606401610e06565b6000805b60d8548110156118e657336001600160a01b031660d882815481106118b1576118b16134bf565b6000918252602090912001546001600160a01b0316036118d457600191506118e6565b806118de816134d5565b91505061188a565b50806119295760405162461bcd60e51b8152602060048201526012602482015271596f752063616e277420726573657276652160701b6044820152606401610e06565b6119353360d654612254565b5033600090815260cc60205260409020805460ff19166001908117909155609755565b6119606121b5565b6119686121fb565b60d754839060ff166119b55760405162461bcd60e51b81526020600482015260166024820152754e6f7420696e2077686974656c697374206d696e742160501b6044820152606401610e06565b33600090815260cb602052604090205460ff1615611a155760405162461bcd60e51b815260206004820152601860248201527f4164647265737320616c726561647920636c61696d65642100000000000000006044820152606401610e06565b600081118015611a27575060d4548111155b611a6a5760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d696e7420616d6f756e742160601b6044820152606401610e06565b60d25481611a76610b59565b611a809190613307565b1115611a9e5760405162461bcd60e51b8152600401610e069061331a565b60d55481611aaa610b59565b611ab49190613307565b1115611b025760405162461bcd60e51b815260206004820152601e60248201527f4d61782077686974656c69737420737570706c792065786365656465642100006044820152606401610e06565b8060d154611b109190613348565b341015611b555760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610e06565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611bcf8484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060ca5491508490506124c7565b611c0c5760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b6044820152606401610e06565b33600081815260cb60205260409020805460ff19166001179055611c309086612254565b60c9546001600160a01b031615611cb65760c9546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611c8e576040519150601f19603f3d011682016040523d82523d6000602084013e611c93565b606091505b5050905080611cb45760405162461bcd60e51b8152600401610e06906132b8565b505b5050610b546001609755565b611cca611e31565b60d155565b611cd7611e31565b60d78054911515620100000262ff000019909216919091179055565b6000611cfd611e8b565b6001600160a01b039384166000908152600791909101602090815260408083209490951682529290925250205460ff1690565b611d386121fb565b611d40611e31565b60d25482611d4c610b59565b611d569190613307565b1115611d745760405162461bcd60e51b8152600401610e069061331a565b611d7e8183612254565b610b3b6001609755565b611d90611e31565b6001600160a01b038116611df55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e06565b610f1a81612126565b7fee151c8401928dc223602bb187aff91b9a56c7cae5476ef1b3287b085a16c85f90565b6001600160a01b03163b151590565b6033546001600160a01b03163314610d8d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e06565b7f2569078dfb4b0305704d3008e7403993ae9601b85f7ae5e742de3de8f8011c4090565b600081600111158015611ec95750611ec5611e8b565b5482105b8015610a345750600160e01b611edd611e8b565b60008481526004919091016020526040902054161592915050565b6000611f0383611013565b90508115611f4257336001600160a01b03821614611f4257611f258133611cf3565b611f42576040516367d9dca160e11b815260040160405180910390fd5b83611f4b611e8b565b6000858152600691909101602052604080822080546001600160a01b0319166001600160a01b0394851617905551859287811692908516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a450505050565b60008160011161204157611fbf611e8b565b600083815260049190910160205260408120549150600160e01b82169003612041578060000361203c57611ff1611e8b565b54821061201157604051636f96cda160e11b815260040160405180910390fd5b612019611e8b565b600019909201600081815260049390930160205260409092205490508015612011575b919050565b604051636f96cda160e11b815260040160405180910390fd5b6000806000612067611e8b565b60009485526006016020525050604090912080549092909150565b61208a6124dd565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610b54908490612526565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6121806121b5565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120b73390565b60655460ff1615610d8d5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e06565b60026097540361224d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e06565b6002609755565b610b3b8282604051806020016040528060008152506125f8565b6001609755565b61227d611dfe565b54610100900460ff166122a25760405162461bcd60e51b8152600401610e06906134ee565b610b3b8282612675565b600054610100900460ff166122d35760405162461bcd60e51b8152600401610e0690613542565b610d8d6126e1565b600054610100900460ff166123025760405162461bcd60e51b8152600401610e0690613542565b610d8d612711565b600054610100900460ff166123315760405162461bcd60e51b8152600401610e0690613542565b610d8d612744565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061236e90339089908890889060040161358d565b6020604051808303816000875af19250505080156123a9575060408051601f3d908101601f191682019092526123a6918101906135ca565b60015b612407573d8080156123d7576040519150601f19603f3d011682016040523d82523d6000602084013e6123dc565b606091505b5080516000036123ff576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606060cd8054610a5f90613178565b606060006124418361276b565b600101905060008167ffffffffffffffff81111561246157612461612eaa565b6040519080825280601f01601f19166020018201604052801561248b576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461249557509392505050565b6000826124d48584612843565b14949350505050565b60655460ff16610d8d5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610e06565b600061257b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166128909092919063ffffffff16565b805190915015610b54578080602001905181019061259991906135e7565b610b545760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610e06565b612602838361289f565b6001600160a01b0383163b15610b5457600061261c611e8b565b5490508281035b6126366000868380600101945086612339565b612653576040516368d2bf6b60e11b815260040160405180910390fd5b8181106126235781612663611e8b565b541461266e57600080fd5b5050505050565b61267d611dfe565b54610100900460ff166126a25760405162461bcd60e51b8152600401610e06906134ee565b816126ab611e8b565b600201906126b9908261335f565b50806126c3611e8b565b600301906126d1908261335f565b5060016126dc611e8b565b555050565b600054610100900460ff166127085760405162461bcd60e51b8152600401610e0690613542565b610d8d33612126565b600054610100900460ff166127385760405162461bcd60e51b8152600401610e0690613542565b6065805460ff19169055565b600054610100900460ff1661226e5760405162461bcd60e51b8152600401610e0690613542565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106127aa5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106127d6576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106127f457662386f26fc10000830492506010015b6305f5e100831061280c576305f5e100830492506008015b612710831061282057612710830492506004015b60648310612832576064830492506002015b600a8310610a345760010192915050565b600081815b84518110156128885761287482868381518110612867576128676134bf565b60200260200101516129da565b915080612880816134d5565b915050612848565b509392505050565b606061241d8484600085612a06565b60006128a9611e8b565b54905060008290036128ce5760405163b562e8dd60e01b815260040160405180910390fd5b6801000000000000000182026128e2611e8b565b6001600160a01b038516600081815260059290920160205260409091208054929092019091554260a01b6001841460e11b171761291d611e8b565b600083815260049190910160205260408120919091556001600160a01b0384169083830190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146129a757808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161296f565b50816000036129c857604051622e076360e81b815260040160405180910390fd5b806129d1611e8b565b5550610b549050565b60008183106129f65760008281526020849052604090206117e5565b5060009182526020526040902090565b606082471015612a675760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610e06565b600080866001600160a01b03168587604051612a839190613604565b60006040518083038185875af1925050503d8060008114612ac0576040519150601f19603f3d011682016040523d82523d6000602084013e612ac5565b606091505b5091509150612ad687838387612ae1565b979650505050505050565b60608315612b50578251600003612b49576001600160a01b0385163b612b495760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610e06565b508161241d565b61241d8383815115612b655781518083602001fd5b8060405162461bcd60e51b8152600401610e069190612c93565b828054828255906000526020600020908101928215612bd2579160200282015b82811115612bd25781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190612b9f565b50612bde929150612be2565b5090565b5b80821115612bde5760008155600101612be3565b6001600160e01b031981168114610f1a57600080fd5b600060208284031215612c1f57600080fd5b81356117e581612bf7565b600060208284031215612c3c57600080fd5b5035919050565b60005b83811015612c5e578181015183820152602001612c46565b50506000910152565b60008151808452612c7f816020860160208601612c43565b601f01601f19169290920160200192915050565b6020815260006117e56020830184612c67565b6001600160a01b0381168114610f1a57600080fd5b600060208284031215612ccd57600080fd5b81356117e581612ca6565b60008060408385031215612ceb57600080fd5b8235612cf681612ca6565b946020939093013593505050565b60008060208385031215612d1757600080fd5b823567ffffffffffffffff80821115612d2f57600080fd5b818501915085601f830112612d4357600080fd5b813581811115612d5257600080fd5b866020828501011115612d6457600080fd5b60209290920196919550909350505050565b600080600060608486031215612d8b57600080fd5b8335612d9681612ca6565b92506020840135612da681612ca6565b929592945050506040919091013590565b8015158114610f1a57600080fd5b60008060408385031215612dd857600080fd5b8235612de381612db7565b91506020830135612df381612db7565b809150509250929050565b60008083601f840112612e1057600080fd5b50813567ffffffffffffffff811115612e2857600080fd5b6020830191508360208260051b8501011115612e4357600080fd5b9250929050565b60008060208385031215612e5d57600080fd5b823567ffffffffffffffff811115612e7457600080fd5b612e8085828601612dfe565b90969095509350505050565b60008060408385031215612e9f57600080fd5b8235612de381612ca6565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612edb57612edb612eaa565b604051601f8501601f19908116603f01168101908282118183101715612f0357612f03612eaa565b81604052809350858152868686011115612f1c57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612f4757600080fd5b6117e583833560208501612ec0565b803561203c81612ca6565b60008060008060008060008060008060006101608c8e031215612f8357600080fd5b67ffffffffffffffff808d351115612f9a57600080fd5b612fa78e8e358f01612f36565b9b508060208e01351115612fba57600080fd5b612fca8e60208f01358f01612f36565b9a508060408e01351115612fdd57600080fd5b50612fee8d60408e01358e01612f36565b9850612ffc60608d01612f56565b9a9d999c50979a60808101359960a0820135995060c0820135985060e0820135975061010082013596506101208201359550610140909101359350915050565b6000806000806080858703121561305257600080fd5b843561305d81612ca6565b9350602085013561306d81612ca6565b925060408501359150606085013567ffffffffffffffff81111561309057600080fd5b8501601f810187136130a157600080fd5b6130b087823560208401612ec0565b91505092959194509250565b6000806000604084860312156130d157600080fd5b83359250602084013567ffffffffffffffff8111156130ef57600080fd5b6130fb86828701612dfe565b9497909650939450505050565b60006020828403121561311a57600080fd5b81356117e581612db7565b6000806040838503121561313857600080fd5b823561314381612ca6565b91506020830135612df381612ca6565b6000806040838503121561316657600080fd5b823591506020830135612df381612ca6565b600181811c9082168061318c57607f821691505b6020821081036131ac57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610b5457600081815260208120601f850160051c810160208610156131d95750805b601f850160051c820191505b81811015610d68578281556001016131e5565b67ffffffffffffffff83111561321057613210612eaa565b6132248361321e8354613178565b836131b2565b6000601f84116001811461325857600085156132405750838201355b600019600387901b1c1916600186901b17835561266e565b600083815260209020601f19861690835b828110156132895786850135825560209485019460019092019101613269565b50868210156132a65760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208082526006908201526519985a5b195960d21b604082015260600190565b6000602082840312156132ea57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610a3457610a346132f1565b6020808252601490820152734d617820737570706c792065786365656465642160601b604082015260600190565b8082028115828204841417610a3457610a346132f1565b815167ffffffffffffffff81111561337957613379612eaa565b61338d816133878454613178565b846131b2565b602080601f8311600181146133c257600084156133aa5750858301515b600019600386901b1c1916600185901b178555610d68565b600085815260208120601f198616915b828110156133f1578886015182559484019460019091019084016133d2565b508582101561340f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000845160206134328285838a01612c43565b8551918401916134458184848a01612c43565b855492019160009061345681613178565b6001828116801561346e5760018114613483576134af565b60ff19841687528215158302870194506134af565b896000528560002060005b848110156134a75781548982015290830190870161348e565b505082870194505b50929a9950505050505050505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016134e7576134e76132f1565b5060010190565b60208082526034908201527f455243373231415f5f496e697469616c697a61626c653a20636f6e7472616374604082015273206973206e6f7420696e697469616c697a696e6760601b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906135c090830184612c67565b9695505050505050565b6000602082840312156135dc57600080fd5b81516117e581612bf7565b6000602082840312156135f957600080fd5b81516117e581612db7565b60008251613616818460208701612c43565b919091019291505056fea264697066735822122090f090f660466e4eae9f31a05ad34792944f443cbd2a74bc44c083a7a899296164736f6c63430008110033496e697469616c697a61626c653a20636f6e7472616374206973206e6f742069
Deployed Bytecode
0x6080604052600436106103765760003560e01c80636caede3d116101d1578063a4e37fc511610102578063d5abeb01116100a0578063e7b99ec71161006f578063e7b99ec714610972578063e985e9c514610988578063efbd73f4146109a8578063f2fde38b146109c857600080fd5b8063d5abeb01146108f6578063dab4a8761461090c578063db4bec4414610922578063e0a808531461095257600080fd5b8063c87b56dd116100dc578063c87b56dd1461088e578063cd3293de146108ae578063d2cab056146108c3578063d49479eb146108d657600080fd5b8063a4e37fc51461083b578063ac1a386a1461085b578063b88d4fde1461087b57600080fd5b80638693da201161016f57806395d89b411161014957806395d89b41146107de578063a0712d68146107f3578063a22cb46514610806578063a45ba8e71461082657600080fd5b80638693da201461078a5780638da5cb5b146107a05780638fabb454146107be57600080fd5b80637cb64759116101ab5780637cb64759146107155780637ec4a65914610735578063811d2437146107555780638456cb591461077557600080fd5b80636caede3d146106c657806370a08231146106e0578063715018a61461070057600080fd5b80633f4ba83a116102ab5780635503a0e81161024957806362370b3c1161022357806362370b3c1461065157806362b99ad4146106715780636352211e146106865780636ad5b3ea146106a657600080fd5b80635503a0e81461060457806355a63bf4146106195780635c975abb1461063957600080fd5b806348a1c3a31161028557806348a1c3a31461058e5780634a342320146105ae5780634fdd43cb146105c457806351830227146105e457600080fd5b80633f4ba83a1461054657806342842e0e1461055b5780634460d3cf1461056e57600080fd5b80630f4161aa1161031857806323b872dd116102f257806323b872dd146104e757806326203ada146104fa5780632eb4a7ab1461051a57806333e614131461053057600080fd5b80630f4161aa1461049357806316ba10e0146104b257806318160ddd146104d257600080fd5b806307aa88541161035457806307aa8854146103f4578063081812fc14610424578063095ea7b31461045c5780630aaea7ac1461046f57600080fd5b806301ffc9a71461037b57806304c61a5f146103b057806306fdde03146103d2575b600080fd5b34801561038757600080fd5b5061039b610396366004612c0d565b6109e8565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b506103d06103cb366004612c2a565b610a3a565b005b3480156103de57600080fd5b506103e7610a47565b6040516103a79190612c93565b34801561040057600080fd5b5061039b61040f366004612cbb565b60cc6020526000908152604090205460ff1681565b34801561043057600080fd5b5061044461043f366004612c2a565b610ae2565b6040516001600160a01b0390911681526020016103a7565b6103d061046a366004612cd8565b610b2f565b34801561047b57600080fd5b5061048560d65481565b6040519081526020016103a7565b34801561049f57600080fd5b5060d75461039b90610100900460ff1681565b3480156104be57600080fd5b506103d06104cd366004612d04565b610b3f565b3480156104de57600080fd5b50610485610b59565b6103d06104f5366004612d76565b610b79565b34801561050657600080fd5b506103d0610515366004612c2a565b610d70565b34801561052657600080fd5b5061048560ca5481565b34801561053c57600080fd5b5061048560d55481565b34801561055257600080fd5b506103d0610d7d565b6103d0610569366004612d76565b610d8f565b34801561057a57600080fd5b506103d0610589366004612cbb565b610daa565b34801561059a57600080fd5b506103d06105a9366004612c2a565b610f1d565b3480156105ba57600080fd5b5061048560d35481565b3480156105d057600080fd5b506103d06105df366004612d04565b610f2a565b3480156105f057600080fd5b5060d75461039b9062010000900460ff1681565b34801561061057600080fd5b506103e7610f3f565b34801561062557600080fd5b506103d0610634366004612c2a565b610fcd565b34801561064557600080fd5b5060655460ff1661039b565b34801561065d57600080fd5b506103d061066c366004612dc5565b610fda565b34801561067d57600080fd5b506103e7611006565b34801561069257600080fd5b506104446106a1366004612c2a565b611013565b3480156106b257600080fd5b5060c954610444906001600160a01b031681565b3480156106d257600080fd5b5060d75461039b9060ff1681565b3480156106ec57600080fd5b506104856106fb366004612cbb565b61101e565b34801561070c57600080fd5b506103d0611087565b34801561072157600080fd5b506103d0610730366004612c2a565b611099565b34801561074157600080fd5b506103d0610750366004612d04565b6110a6565b34801561076157600080fd5b506103d0610770366004612c2a565b6110bb565b34801561078157600080fd5b506103d06110c8565b34801561079657600080fd5b5061048560d05481565b3480156107ac57600080fd5b506033546001600160a01b0316610444565b3480156107ca57600080fd5b506103d06107d9366004612e4a565b6110d8565b3480156107ea57600080fd5b506103e76110ec565b6103d0610801366004612c2a565b611104565b34801561081257600080fd5b506103d0610821366004612e8c565b6112da565b34801561083257600080fd5b506103e7611357565b34801561084757600080fd5b506103d0610856366004612f61565b611364565b34801561086757600080fd5b506103d0610876366004612cbb565b611608565b6103d061088936600461303c565b611632565b34801561089a57600080fd5b506103e76108a9366004612c2a565b61167c565b3480156108ba57600080fd5b506103d06117ec565b6103d06108d13660046130bc565b611958565b3480156108e257600080fd5b506103d06108f1366004612c2a565b611cc2565b34801561090257600080fd5b5061048560d25481565b34801561091857600080fd5b5061048560d45481565b34801561092e57600080fd5b5061039b61093d366004612cbb565b60cb6020526000908152604090205460ff1681565b34801561095e57600080fd5b506103d061096d366004613108565b611ccf565b34801561097e57600080fd5b5061048560d15481565b34801561099457600080fd5b5061039b6109a3366004613125565b611cf3565b3480156109b457600080fd5b506103d06109c3366004613153565b611d30565b3480156109d457600080fd5b506103d06109e3366004612cbb565b611d88565b60006301ffc9a760e01b6001600160e01b031983161480610a1957506380ac58cd60e01b6001600160e01b03198316145b80610a345750635b5e139f60e01b6001600160e01b03198316145b92915050565b610a42611e31565b60d455565b6060610a51611e8b565b6002018054610a5f90613178565b80601f0160208091040260200160405190810160405280929190818152602001828054610a8b90613178565b8015610ad85780601f10610aad57610100808354040283529160200191610ad8565b820191906000526020600020905b815481529060010190602001808311610abb57829003601f168201915b5050505050905090565b6000610aed82611eaf565b610b0a576040516333d1c03960e21b815260040160405180910390fd5b610b12611e8b565b60009283526006016020525060409020546001600160a01b031690565b610b3b82826001611ef8565b5050565b610b47611e31565b60ce610b548284836131f8565b505050565b60006001610b65611e8b565b60010154610b71611e8b565b540303919050565b6000610b8482611fad565b9050836001600160a01b0316816001600160a01b031614610bb75760405162a1148160e81b815260040160405180910390fd5b600080610bc38461205a565b91509150610be88187610bd33390565b6001600160a01b039081169116811491141790565b610c1357610bf68633611cf3565b610c1357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610c3a57604051633a954ecd60e21b815260040160405180910390fd5b8015610c4557600082555b610c4d611e8b565b6001600160a01b0387166000908152600591909101602052604090208054600019019055610c79611e8b565b6001600160a01b03861660008181526005929092016020526040909120805460010190554260a01b17600160e11b17610cb0611e8b565b60008681526004919091016020526040812091909155600160e11b84169003610d265760018401610cdf611e8b565b600082815260049190910160205260408120549003610d2457610d00611e8b565b548114610d245783610d10611e8b565b600083815260049190910160205260409020555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610d78611e31565b60d655565b610d85611e31565b610d8d612082565b565b610b5483838360405180602001604052806000815250611632565b610db2611e31565b60c9546001600160a01b0316610e0f5760405162461bcd60e51b815260206004820152601760248201527f57616c6c65742061646472657373206e6f74207365742100000000000000000060448201526064015b60405180910390fd5b6001600160a01b038116610e905760c9546040516000916001600160a01b03169047908381818185875af1925050503d8060008114610e6a576040519150601f19603f3d011682016040523d82523d6000602084013e610e6f565b606091505b5050905080610b3b5760405162461bcd60e51b8152600401610e06906132b8565b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610ed9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610efd91906132d8565b60c954909150610b54906001600160a01b038481169116836120d4565b50565b610f25611e31565b60d355565b610f32611e31565b60cf610b548284836131f8565b60ce8054610f4c90613178565b80601f0160208091040260200160405190810160405280929190818152602001828054610f7890613178565b8015610fc55780601f10610f9a57610100808354040283529160200191610fc5565b820191906000526020600020905b815481529060010190602001808311610fa857829003601f168201915b505050505081565b610fd5611e31565b60d555565b610fe2611e31565b60d7805461ffff191692151561ff0019169290921761010091151591909102179055565b60cd8054610f4c90613178565b6000610a3482611fad565b60006001600160a01b038216611047576040516323d3ad8160e21b815260040160405180910390fd5b67ffffffffffffffff611058611e8b565b6005016000846001600160a01b03166001600160a01b0316815260200190815260200160002054169050919050565b61108f611e31565b610d8d6000612126565b6110a1611e31565b60ca55565b6110ae611e31565b60cd610b548284836131f8565b6110c3611e31565b60d055565b6110d0611e31565b610d8d612178565b6110e0611e31565b610b5460d88383612b7f565b60606110f6611e8b565b6003018054610a5f90613178565b61110c6121b5565b6111146121fb565b60d7548190610100900460ff166111635760405162461bcd60e51b81526020600482015260136024820152724e6f7420696e207075626c6963206d696e742160681b6044820152606401610e06565b600081118015611175575060d3548111155b6111b85760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d696e7420616d6f756e742160601b6044820152606401610e06565b60d254816111c4610b59565b6111ce9190613307565b11156111ec5760405162461bcd60e51b8152600401610e069061331a565b8060d0546111fa9190613348565b34101561123f5760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610e06565b6112493383612254565b60c9546001600160a01b0316156112cf5760c9546040516000916001600160a01b03169047908381818185875af1925050503d80600081146112a7576040519150601f19603f3d011682016040523d82523d6000602084013e6112ac565b606091505b50509050806112cd5760405162461bcd60e51b8152600401610e06906132b8565b505b50610f1a6001609755565b806112e3611e8b565b336000818152600792909201602090815260408084206001600160a01b03881680865290835293819020805460ff19169515159590951790945592518415158152919290917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60cf8054610f4c90613178565b61136c611dfe565b54610100900460ff1661138b57611381611dfe565b5460ff161561138f565b303b155b6114015760405162461bcd60e51b815260206004820152603760248201527f455243373231415f5f496e697469616c697a61626c653a20636f6e747261637460448201527f20697320616c726561647920696e697469616c697a65640000000000000000006064820152608401610e06565b600061140b611dfe565b54610100900460ff161590508015611457576001611427611dfe565b80549115156101000261ff00199092169190911790556001611447611dfe565b805460ff19169115159190911790555b600054610100900460ff16158080156114775750600054600160ff909116105b806114915750303b158015611491575060005460ff166001145b6114f45760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610e06565b6000805460ff191660011790558015611517576000805461ff0019166101001790555b6115218d8d612275565b6115296122ac565b6115316122db565b61153961230a565b611541612178565b60cf61154d8c8261335f565b5060c980546001600160a01b0319166001600160a01b038c1617905560d089905560d188905560d287905560d586905560d685905560d384905560d483905580156115d2576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5080156115fa5760006115e3611dfe565b80549115156101000261ff00199092169190911790555b505050505050505050505050565b611610611e31565b60c980546001600160a01b0319166001600160a01b0392909216919091179055565b61163d848484610b79565b6001600160a01b0383163b156116765761165984848484612339565b611676576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b606061168782611eaf565b6116eb5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610e06565b60d75462010000900460ff1661178d5760cf805461170890613178565b80601f016020809104026020016040519081016040528092919081815260200182805461173490613178565b80156117815780601f1061175657610100808354040283529160200191611781565b820191906000526020600020905b81548152906001019060200180831161176457829003601f168201915b50505050509050919050565b6000611797612425565b905060008151116117b757604051806020016040528060008152506117e5565b806117c184612434565b60ce6040516020016117d59392919061341f565b6040516020818303038152906040525b9392505050565b6117f46121b5565b6117fc6121fb565b60d25460d65461180a610b59565b6118149190613307565b11156118325760405162461bcd60e51b8152600401610e069061331a565b33600090815260cc602052604090205460ff16156118865760405162461bcd60e51b8152602060048201526011602482015270416c72656164792072657365727665642160781b6044820152606401610e06565b6000805b60d8548110156118e657336001600160a01b031660d882815481106118b1576118b16134bf565b6000918252602090912001546001600160a01b0316036118d457600191506118e6565b806118de816134d5565b91505061188a565b50806119295760405162461bcd60e51b8152602060048201526012602482015271596f752063616e277420726573657276652160701b6044820152606401610e06565b6119353360d654612254565b5033600090815260cc60205260409020805460ff19166001908117909155609755565b6119606121b5565b6119686121fb565b60d754839060ff166119b55760405162461bcd60e51b81526020600482015260166024820152754e6f7420696e2077686974656c697374206d696e742160501b6044820152606401610e06565b33600090815260cb602052604090205460ff1615611a155760405162461bcd60e51b815260206004820152601860248201527f4164647265737320616c726561647920636c61696d65642100000000000000006044820152606401610e06565b600081118015611a27575060d4548111155b611a6a5760405162461bcd60e51b8152602060048201526014602482015273496e76616c6964206d696e7420616d6f756e742160601b6044820152606401610e06565b60d25481611a76610b59565b611a809190613307565b1115611a9e5760405162461bcd60e51b8152600401610e069061331a565b60d55481611aaa610b59565b611ab49190613307565b1115611b025760405162461bcd60e51b815260206004820152601e60248201527f4d61782077686974656c69737420737570706c792065786365656465642100006044820152606401610e06565b8060d154611b109190613348565b341015611b555760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610e06565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611bcf8484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060ca5491508490506124c7565b611c0c5760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b6044820152606401610e06565b33600081815260cb60205260409020805460ff19166001179055611c309086612254565b60c9546001600160a01b031615611cb65760c9546040516000916001600160a01b03169047908381818185875af1925050503d8060008114611c8e576040519150601f19603f3d011682016040523d82523d6000602084013e611c93565b606091505b5050905080611cb45760405162461bcd60e51b8152600401610e06906132b8565b505b5050610b546001609755565b611cca611e31565b60d155565b611cd7611e31565b60d78054911515620100000262ff000019909216919091179055565b6000611cfd611e8b565b6001600160a01b039384166000908152600791909101602090815260408083209490951682529290925250205460ff1690565b611d386121fb565b611d40611e31565b60d25482611d4c610b59565b611d569190613307565b1115611d745760405162461bcd60e51b8152600401610e069061331a565b611d7e8183612254565b610b3b6001609755565b611d90611e31565b6001600160a01b038116611df55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e06565b610f1a81612126565b7fee151c8401928dc223602bb187aff91b9a56c7cae5476ef1b3287b085a16c85f90565b6001600160a01b03163b151590565b6033546001600160a01b03163314610d8d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e06565b7f2569078dfb4b0305704d3008e7403993ae9601b85f7ae5e742de3de8f8011c4090565b600081600111158015611ec95750611ec5611e8b565b5482105b8015610a345750600160e01b611edd611e8b565b60008481526004919091016020526040902054161592915050565b6000611f0383611013565b90508115611f4257336001600160a01b03821614611f4257611f258133611cf3565b611f42576040516367d9dca160e11b815260040160405180910390fd5b83611f4b611e8b565b6000858152600691909101602052604080822080546001600160a01b0319166001600160a01b0394851617905551859287811692908516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259190a450505050565b60008160011161204157611fbf611e8b565b600083815260049190910160205260408120549150600160e01b82169003612041578060000361203c57611ff1611e8b565b54821061201157604051636f96cda160e11b815260040160405180910390fd5b612019611e8b565b600019909201600081815260049390930160205260409092205490508015612011575b919050565b604051636f96cda160e11b815260040160405180910390fd5b6000806000612067611e8b565b60009485526006016020525050604090912080549092909150565b61208a6124dd565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610b54908490612526565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6121806121b5565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586120b73390565b60655460ff1615610d8d5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610e06565b60026097540361224d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610e06565b6002609755565b610b3b8282604051806020016040528060008152506125f8565b6001609755565b61227d611dfe565b54610100900460ff166122a25760405162461bcd60e51b8152600401610e06906134ee565b610b3b8282612675565b600054610100900460ff166122d35760405162461bcd60e51b8152600401610e0690613542565b610d8d6126e1565b600054610100900460ff166123025760405162461bcd60e51b8152600401610e0690613542565b610d8d612711565b600054610100900460ff166123315760405162461bcd60e51b8152600401610e0690613542565b610d8d612744565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061236e90339089908890889060040161358d565b6020604051808303816000875af19250505080156123a9575060408051601f3d908101601f191682019092526123a6918101906135ca565b60015b612407573d8080156123d7576040519150601f19603f3d011682016040523d82523d6000602084013e6123dc565b606091505b5080516000036123ff576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606060cd8054610a5f90613178565b606060006124418361276b565b600101905060008167ffffffffffffffff81111561246157612461612eaa565b6040519080825280601f01601f19166020018201604052801561248b576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461249557509392505050565b6000826124d48584612843565b14949350505050565b60655460ff16610d8d5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610e06565b600061257b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166128909092919063ffffffff16565b805190915015610b54578080602001905181019061259991906135e7565b610b545760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610e06565b612602838361289f565b6001600160a01b0383163b15610b5457600061261c611e8b565b5490508281035b6126366000868380600101945086612339565b612653576040516368d2bf6b60e11b815260040160405180910390fd5b8181106126235781612663611e8b565b541461266e57600080fd5b5050505050565b61267d611dfe565b54610100900460ff166126a25760405162461bcd60e51b8152600401610e06906134ee565b816126ab611e8b565b600201906126b9908261335f565b50806126c3611e8b565b600301906126d1908261335f565b5060016126dc611e8b565b555050565b600054610100900460ff166127085760405162461bcd60e51b8152600401610e0690613542565b610d8d33612126565b600054610100900460ff166127385760405162461bcd60e51b8152600401610e0690613542565b6065805460ff19169055565b600054610100900460ff1661226e5760405162461bcd60e51b8152600401610e0690613542565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106127aa5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106127d6576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106127f457662386f26fc10000830492506010015b6305f5e100831061280c576305f5e100830492506008015b612710831061282057612710830492506004015b60648310612832576064830492506002015b600a8310610a345760010192915050565b600081815b84518110156128885761287482868381518110612867576128676134bf565b60200260200101516129da565b915080612880816134d5565b915050612848565b509392505050565b606061241d8484600085612a06565b60006128a9611e8b565b54905060008290036128ce5760405163b562e8dd60e01b815260040160405180910390fd5b6801000000000000000182026128e2611e8b565b6001600160a01b038516600081815260059290920160205260409091208054929092019091554260a01b6001841460e11b171761291d611e8b565b600083815260049190910160205260408120919091556001600160a01b0384169083830190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146129a757808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161296f565b50816000036129c857604051622e076360e81b815260040160405180910390fd5b806129d1611e8b565b5550610b549050565b60008183106129f65760008281526020849052604090206117e5565b5060009182526020526040902090565b606082471015612a675760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610e06565b600080866001600160a01b03168587604051612a839190613604565b60006040518083038185875af1925050503d8060008114612ac0576040519150601f19603f3d011682016040523d82523d6000602084013e612ac5565b606091505b5091509150612ad687838387612ae1565b979650505050505050565b60608315612b50578251600003612b49576001600160a01b0385163b612b495760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610e06565b508161241d565b61241d8383815115612b655781518083602001fd5b8060405162461bcd60e51b8152600401610e069190612c93565b828054828255906000526020600020908101928215612bd2579160200282015b82811115612bd25781546001600160a01b0319166001600160a01b03843516178255602090920191600190910190612b9f565b50612bde929150612be2565b5090565b5b80821115612bde5760008155600101612be3565b6001600160e01b031981168114610f1a57600080fd5b600060208284031215612c1f57600080fd5b81356117e581612bf7565b600060208284031215612c3c57600080fd5b5035919050565b60005b83811015612c5e578181015183820152602001612c46565b50506000910152565b60008151808452612c7f816020860160208601612c43565b601f01601f19169290920160200192915050565b6020815260006117e56020830184612c67565b6001600160a01b0381168114610f1a57600080fd5b600060208284031215612ccd57600080fd5b81356117e581612ca6565b60008060408385031215612ceb57600080fd5b8235612cf681612ca6565b946020939093013593505050565b60008060208385031215612d1757600080fd5b823567ffffffffffffffff80821115612d2f57600080fd5b818501915085601f830112612d4357600080fd5b813581811115612d5257600080fd5b866020828501011115612d6457600080fd5b60209290920196919550909350505050565b600080600060608486031215612d8b57600080fd5b8335612d9681612ca6565b92506020840135612da681612ca6565b929592945050506040919091013590565b8015158114610f1a57600080fd5b60008060408385031215612dd857600080fd5b8235612de381612db7565b91506020830135612df381612db7565b809150509250929050565b60008083601f840112612e1057600080fd5b50813567ffffffffffffffff811115612e2857600080fd5b6020830191508360208260051b8501011115612e4357600080fd5b9250929050565b60008060208385031215612e5d57600080fd5b823567ffffffffffffffff811115612e7457600080fd5b612e8085828601612dfe565b90969095509350505050565b60008060408385031215612e9f57600080fd5b8235612de381612ca6565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612edb57612edb612eaa565b604051601f8501601f19908116603f01168101908282118183101715612f0357612f03612eaa565b81604052809350858152868686011115612f1c57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112612f4757600080fd5b6117e583833560208501612ec0565b803561203c81612ca6565b60008060008060008060008060008060006101608c8e031215612f8357600080fd5b67ffffffffffffffff808d351115612f9a57600080fd5b612fa78e8e358f01612f36565b9b508060208e01351115612fba57600080fd5b612fca8e60208f01358f01612f36565b9a508060408e01351115612fdd57600080fd5b50612fee8d60408e01358e01612f36565b9850612ffc60608d01612f56565b9a9d999c50979a60808101359960a0820135995060c0820135985060e0820135975061010082013596506101208201359550610140909101359350915050565b6000806000806080858703121561305257600080fd5b843561305d81612ca6565b9350602085013561306d81612ca6565b925060408501359150606085013567ffffffffffffffff81111561309057600080fd5b8501601f810187136130a157600080fd5b6130b087823560208401612ec0565b91505092959194509250565b6000806000604084860312156130d157600080fd5b83359250602084013567ffffffffffffffff8111156130ef57600080fd5b6130fb86828701612dfe565b9497909650939450505050565b60006020828403121561311a57600080fd5b81356117e581612db7565b6000806040838503121561313857600080fd5b823561314381612ca6565b91506020830135612df381612ca6565b6000806040838503121561316657600080fd5b823591506020830135612df381612ca6565b600181811c9082168061318c57607f821691505b6020821081036131ac57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610b5457600081815260208120601f850160051c810160208610156131d95750805b601f850160051c820191505b81811015610d68578281556001016131e5565b67ffffffffffffffff83111561321057613210612eaa565b6132248361321e8354613178565b836131b2565b6000601f84116001811461325857600085156132405750838201355b600019600387901b1c1916600186901b17835561266e565b600083815260209020601f19861690835b828110156132895786850135825560209485019460019092019101613269565b50868210156132a65760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60208082526006908201526519985a5b195960d21b604082015260600190565b6000602082840312156132ea57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610a3457610a346132f1565b6020808252601490820152734d617820737570706c792065786365656465642160601b604082015260600190565b8082028115828204841417610a3457610a346132f1565b815167ffffffffffffffff81111561337957613379612eaa565b61338d816133878454613178565b846131b2565b602080601f8311600181146133c257600084156133aa5750858301515b600019600386901b1c1916600185901b178555610d68565b600085815260208120601f198616915b828110156133f1578886015182559484019460019091019084016133d2565b508582101561340f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000845160206134328285838a01612c43565b8551918401916134458184848a01612c43565b855492019160009061345681613178565b6001828116801561346e5760018114613483576134af565b60ff19841687528215158302870194506134af565b896000528560002060005b848110156134a75781548982015290830190870161348e565b505082870194505b50929a9950505050505050505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016134e7576134e76132f1565b5060010190565b60208082526034908201527f455243373231415f5f496e697469616c697a61626c653a20636f6e7472616374604082015273206973206e6f7420696e697469616c697a696e6760601b606082015260800190565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906135c090830184612c67565b9695505050505050565b6000602082840312156135dc57600080fd5b81516117e581612bf7565b6000602082840312156135f957600080fd5b81516117e581612db7565b60008251613616818460208701612c43565b919091019291505056fea264697066735822122090f090f660466e4eae9f31a05ad34792944f443cbd2a74bc44c083a7a899296164736f6c63430008110033
Deployed Bytecode Sourcemap
130512:9067:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66156:639;;;;;;;;;;-1:-1:-1;66156:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;66156:639:0;;;;;;;;135691:179;;;;;;;;;;-1:-1:-1;135691:179:0;;;;;:::i;:::-;;:::i;:::-;;67058:124;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;130884:46::-;;;;;;;;;;-1:-1:-1;130884:46:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;73650:242;;;;;;;;;;-1:-1:-1;73650:242:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2085:32:1;;;2067:51;;2055:2;2040:18;73650:242:0;1921:203:1;73367:124:0;;;;;;:::i;:::-;;:::i;131284:26::-;;;;;;;;;;;;;;;;;;;2595:25:1;;;2583:2;2568:18;131284:26:0;2449:177:1;131366:37:0;;;;;;;;;;-1:-1:-1;131366:37:0;;;;;;;;;;;136169:110;;;;;;;;;;-1:-1:-1;136169:110:0;;;;;:::i;:::-;;:::i;62543:371::-;;;;;;;;;;;;;:::i;77448:2969::-;;;;;;:::i;:::-;;:::i;134951:110::-;;;;;;;;;;-1:-1:-1;134951:110:0;;;;;:::i;:::-;;:::i;130797:25::-;;;;;;;;;;;;;;;;131247:30;;;;;;;;;;;;;;;;134484:67;;;;;;;;;;;;;:::i;80513:193::-;;;;;;:::i;:::-;;:::i;138111:511::-;;;;;;;;;;-1:-1:-1;138111:511:0;;;;;:::i;:::-;;:::i;135510:173::-;;;;;;;;;;-1:-1:-1;135510:173:0;;;;;:::i;:::-;;:::i;131152:39::-;;;;;;;;;;;;;;;;135878:165;;;;;;;;;;-1:-1:-1;135878:165:0;;;;;:::i;:::-;;:::i;131410:28::-;;;;;;;;;;-1:-1:-1;131410:28:0;;;;;;;;;;;130974:33;;;;;;;;;;;;;:::i;135376:126::-;;;;;;;;;;-1:-1:-1;135376:126:0;;;;;:::i;:::-;;:::i;25517:86::-;;;;;;;;;;-1:-1:-1;25588:7:0;;;;25517:86;;136287:208;;;;;;;;;;-1:-1:-1;136287:208:0;;;;;:::i;:::-;;:::i;130939:28::-;;;;;;;;;;;;;:::i;68499:152::-;;;;;;;;;;-1:-1:-1;68499:152:0;;;;;:::i;:::-;;:::i;130752:36::-;;;;;;;;;;-1:-1:-1;130752:36:0;;;;-1:-1:-1;;;;;130752:36:0;;;131319:40;;;;;;;;;;-1:-1:-1;131319:40:0;;;;;;;;63823:257;;;;;;;;;;-1:-1:-1;63823:257:0;;;;;:::i;:::-;;:::i;22483:103::-;;;;;;;;;;;;;:::i;134693:106::-;;;;;;;;;;-1:-1:-1;134693:106:0;;;;;:::i;:::-;;:::i;136051:110::-;;;;;;;;;;-1:-1:-1;136051:110:0;;;;;:::i;:::-;;:::i;135166:94::-;;;;;;;;;;-1:-1:-1;135166:94:0;;;;;:::i;:::-;;:::i;134413:63::-;;;;;;;;;;;;;:::i;131054:25::-;;;;;;;;;;;;;;;;21835:87;;;;;;;;;;-1:-1:-1;21908:6:0;;-1:-1:-1;;;;;21908:6:0;21835:87;;134807:136;;;;;;;;;;-1:-1:-1;134807:136:0;;;;;:::i;:::-;;:::i;67258:128::-;;;;;;;;;;;;;:::i;137214:398::-;;;;;;:::i;:::-;;:::i;74232:258::-;;;;;;;;;;-1:-1:-1;74232:258:0;;;;;:::i;:::-;;:::i;131014:31::-;;;;;;;;;;;;;:::i;133352:1053::-;;;;;;;;;;-1:-1:-1;133352:1053:0;;;;;:::i;:::-;;:::i;134559:126::-;;;;;;;;;;-1:-1:-1;134559:126:0;;;;;:::i;:::-;;:::i;81304:407::-;;;;;;:::i;:::-;;:::i;138630:719::-;;;;;;;;;;-1:-1:-1;138630:719:0;;;;;:::i;:::-;;:::i;137929:174::-;;;;;;;;;;;;;:::i;136503:703::-;;;;;;:::i;:::-;;:::i;135268:100::-;;;;;;;;;;-1:-1:-1;135268:100:0;;;;;:::i;:::-;;:::i;131121:24::-;;;;;;;;;;;;;;;;131198:42;;;;;;;;;;;;;;;;130829:48;;;;;;;;;;-1:-1:-1;130829:48:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;135069:89;;;;;;;;;;-1:-1:-1;135069:89:0;;;;;:::i;:::-;;:::i;131086:28::-;;;;;;;;;;;;;;;;74647:188;;;;;;;;;;-1:-1:-1;74647:188:0;;;;;:::i;:::-;;:::i;137620:301::-;;;;;;;;;;-1:-1:-1;137620:301:0;;;;;:::i;:::-;;:::i;22741:201::-;;;;;;;;;;-1:-1:-1;22741:201:0;;;;;:::i;:::-;;:::i;66156:639::-;66241:4;-1:-1:-1;;;;;;;;;66565:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;66642:25:0;;;66565:102;:179;;;-1:-1:-1;;;;;;;;;;66719:25:0;;;66565:179;66545:199;66156:639;-1:-1:-1;;66156:639:0:o;135691:179::-;21721:13;:11;:13::i;:::-;135813:27:::1;:49:::0;135691:179::o;67058:124::-;67112:13;67145:23;:21;:23::i;:::-;:29;;67138:36;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67058:124;:::o;73650:242::-;73726:7;73751:16;73759:7;73751;:16::i;:::-;73746:64;;73776:34;;-1:-1:-1;;;73776:34:0;;;;;;;;;;;73746:64;73830:23;:21;:23::i;:::-;:48;;;;:39;;:48;;-1:-1:-1;73830:48:0;;;:54;-1:-1:-1;;;;;73830:54:0;;73650:242::o;73367:124::-;73456:27;73465:2;73469:7;73478:4;73456:8;:27::i;:::-;73367:124;;:::o;136169:110::-;21721:13;:11;:13::i;:::-;136249:9:::1;:22;136261:10:::0;;136249:9;:22:::1;:::i;:::-;;136169:110:::0;;:::o;62543:371::-;62604:7;139449:1;62841:23;:21;:23::i;:::-;:36;;;62801:23;:21;:23::i;:::-;:37;:76;:94;;62543:371;-1:-1:-1;62543:371:0:o;77448:2969::-;77590:27;77620;77639:7;77620:18;:27::i;:::-;77590:57;;77705:4;-1:-1:-1;;;;;77664:45:0;77680:19;-1:-1:-1;;;;;77664:45:0;;77660:86;;77718:28;;-1:-1:-1;;;77718:28:0;;;;;;;;;;;77660:86;77760:27;77789:23;77816:35;77843:7;77816:26;:35::i;:::-;77759:92;;;;77951:68;77976:15;77993:4;77999:19;99493:10;;99406:105;77999:19;-1:-1:-1;;;;;75991:32:0;;;75835:28;;76120:20;;76142:30;;76117:56;;75532:659;77951:68;77946:180;;78039:43;78056:4;99493:10;74647:188;:::i;78039:43::-;78034:92;;78091:35;;-1:-1:-1;;;78091:35:0;;;;;;;;;;;78034:92;-1:-1:-1;;;;;78143:16:0;;78139:52;;78168:23;;-1:-1:-1;;;78168:23:0;;;;;;;;;;;78139:52;78340:15;78337:160;;;78480:1;78459:19;78452:30;78337:160;78877:23;:21;:23::i;:::-;-1:-1:-1;;;;;78877:48:0;;;;;;:42;;;;;:48;;;;;78875:50;;-1:-1:-1;;78875:50:0;;;78970:23;:21;:23::i;:::-;-1:-1:-1;;;;;78970:46:0;;;;;;:42;;;;;:46;;;;;;78968:48;;;;;;72469:11;72444:23;72440:41;72427:63;-1:-1:-1;;;72427:63:0;79287:23;:21;:23::i;:::-;:50;;;;:41;;;;;:50;;;;;:199;;;;-1:-1:-1;;;79606:47:0;;:52;;79602:699;;79711:1;79701:11;;79834:23;:21;:23::i;:::-;:54;;;;:41;;;;;:54;;;;;;:59;;79830:456;;79996:23;:21;:23::i;:::-;:37;79981:52;;79977:290;;80224:19;80167:23;:21;:23::i;:::-;:54;;;;:41;;;;;:54;;;;;:76;79977:290;79660:641;79602:699;80348:7;80344:2;-1:-1:-1;;;;;80329:27:0;80338:4;-1:-1:-1;;;;;80329:27:0;;;;;;;;;;;80367:42;77579:2838;;;77448:2969;;;:::o;134951:110::-;21721:13;:11;:13::i;:::-;135027:11:::1;:26:::0;134951:110::o;134484:67::-;21721:13;:11;:13::i;:::-;134533:10:::1;:8;:10::i;:::-;134484:67::o:0;80513:193::-;80659:39;80676:4;80682:2;80686:7;80659:39;;;;;;;;;;;;:16;:39::i;138111:511::-;21721:13;:11;:13::i;:::-;138185::::1;::::0;-1:-1:-1;;;;;138185:13:0::1;138177:63;;;::::0;-1:-1:-1;;;138177:63:0;;13596:2:1;138177:63:0::1;::::0;::::1;13578:21:1::0;13635:2;13615:18;;;13608:30;13674:25;13654:18;;;13647:53;13717:18;;138177:63:0::1;;;;;;;;;-1:-1:-1::0;;;;;138257:21:0;::::1;138253:187;;138314:13;::::0;:52:::1;::::0;138296:12:::1;::::0;-1:-1:-1;;;;;138314:13:0::1;::::0;138340:21:::1;::::0;138296:12;138314:52;138296:12;138314:52;138340:21;138314:13;:52:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;138295:71;;;138389:7;138381:26;;;;-1:-1:-1::0;;;138381:26:0::1;;;;;;;:::i;138253:187::-;138531:30;::::0;-1:-1:-1;;;138531:30:0;;138555:4:::1;138531:30;::::0;::::1;2067:51:1::0;138496:5:0;;138452:23:::1;::::0;-1:-1:-1;;;;;138531:15:0;::::1;::::0;::::1;::::0;2040:18:1;;138531:30:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;138591:13;::::0;138513:48;;-1:-1:-1;138572:42:0::1;::::0;-1:-1:-1;;;;;138572:18:0;;::::1;::::0;138591:13:::1;138513:48:::0;138572:18:::1;:42::i;21745:1::-;138111:511:::0;:::o;135510:173::-;21721:13;:11;:13::i;:::-;135629:24:::1;:46:::0;135510:173::o;135878:165::-;21721:13;:11;:13::i;:::-;135997:17:::1;:38;136017:18:::0;;135997:17;:38:::1;:::i;130974:33::-:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;135376:126::-;21721:13;:11;:13::i;:::-;135460:15:::1;:34:::0;135376:126::o;136287:208::-;21721:13;:11;:13::i;:::-;136394:20:::1;:44:::0;;-1:-1:-1;;136449:38:0;136394:44;::::1;;-1:-1:-1::0;;136449:38:0;;;;;136394:44:::1;136449:38:::0;::::1;;::::0;;;::::1;;::::0;;136287:208::o;130939:28::-;;;;;;;:::i;68499:152::-;68571:7;68614:27;68633:7;68614:18;:27::i;63823:257::-;63895:7;-1:-1:-1;;;;;63919:19:0;;63915:60;;63947:28;;-1:-1:-1;;;63947:28:0;;;;;;;;;;;63915:60;58971:13;63993:23;:21;:23::i;:::-;:42;;:49;64036:5;-1:-1:-1;;;;;63993:49:0;-1:-1:-1;;;;;63993:49:0;;;;;;;;;;;;;:79;63986:86;;63823:257;;;:::o;22483:103::-;21721:13;:11;:13::i;:::-;22548:30:::1;22575:1;22548:18;:30::i;134693:106::-:0;21721:13;:11;:13::i;:::-;134767:10:::1;:24:::0;134693:106::o;136051:110::-;21721:13;:11;:13::i;:::-;136131:9:::1;:22;136143:10:::0;;136131:9;:22:::1;:::i;135166:94::-:0;21721:13;:11;:13::i;:::-;135234:10:::1;:18:::0;135166:94::o;134413:63::-;21721:13;:11;:13::i;:::-;134460:8:::1;:6;:8::i;134807:136::-:0;21721:13;:11;:13::i;:::-;134899:36:::1;:16;134918:17:::0;;134899:36:::1;:::i;67258:128::-:0;67314:13;67347:23;:21;:23::i;:::-;:31;;67340:38;;;;;:::i;137214:398::-;25122:19;:17;:19::i;:::-;18042:21:::1;:19;:21::i;:::-;131560:17:::2;::::0;137330:11;;131560:17:::2;::::0;::::2;;;131552:49;;;::::0;-1:-1:-1;;;131552:49:0;;14681:2:1;131552:49:0::2;::::0;::::2;14663:21:1::0;14720:2;14700:18;;;14693:30;-1:-1:-1;;;14739:18:1;;;14732:49;14798:18;;131552:49:0::2;14479:343:1::0;131552:49:0::2;131648:1;131634:11;:15;:58;;;;;131668:24;;131653:11;:39;;131634:58;131612:128;;;::::0;-1:-1:-1;;;131612:128:0;;15029:2:1;131612:128:0::2;::::0;::::2;15011:21:1::0;15068:2;15048:18;;;15041:30;-1:-1:-1;;;15087:18:1;;;15080:50;15147:18;;131612:128:0::2;14827:344:1::0;131612:128:0::2;131804:9;;131789:11;131773:13;:11;:13::i;:::-;:27;;;;:::i;:::-;:40;;131751:110;;;;-1:-1:-1::0;;;131751:110:0::2;;;;;;;:::i;:::-;131906:11;131893:10;;:24;;;;:::i;:::-;131880:9;:37;;131872:69;;;::::0;-1:-1:-1;;;131872:69:0;;16162:2:1;131872:69:0::2;::::0;::::2;16144:21:1::0;16201:2;16181:18;;;16174:30;-1:-1:-1;;;16220:18:1;;;16213:49;16279:18;;131872:69:0::2;15960:343:1::0;131872:69:0::2;137354:36:::3;99493:10:::0;137378:11:::3;137354:9;:36::i;:::-;137405:13;::::0;-1:-1:-1;;;;;137405:13:0::3;:27:::0;137401:204:::3;;137468:13;::::0;:84:::3;::::0;137450:12:::3;::::0;-1:-1:-1;;;;;137468:13:0::3;::::0;137494:21:::3;::::0;137450:12;137468:84;137450:12;137468:84;137494:21;137468:13;:84:::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;137449:103;;;137575:7;137567:26;;;;-1:-1:-1::0;;;137567:26:0::3;;;;;;;:::i;:::-;137434:171;137401:204;18074:1:::2;18086:20:::1;17303:1:::0;18606:7;:22;18423:213;74232:258;74403:8;74327:23;:21;:23::i;:::-;99493:10;74327:63;;;;:42;;;;;:63;;;;;;;;-1:-1:-1;;;;;74327:73:0;;;;;;;;;;;;:84;;-1:-1:-1;;74327:84:0;;;;;;;;;;;74427:55;;565:14:1;;558:22;540:41;;74327:73:0;;99493:10;;74427:55;;513:18:1;74427:55:0;;;;;;;74232:258;;:::o;131014:31::-;;;;;;;:::i;133352:1053::-;44671:38;:36;:38::i;:::-;:52;;;;;;:160;;44780:38;:36;:38::i;:::-;:51;;;44779:52;44671:160;;;46282:4;46349:17;46394:7;44743:16;44649:265;;;;-1:-1:-1;;;44649:265:0;;16510:2:1;44649:265:0;;;16492:21:1;16549:2;16529:18;;;16522:30;16588:34;16568:18;;;16561:62;16659:25;16639:18;;;16632:53;16702:19;;44649:265:0;16308:419:1;44649:265:0;44927:19;44950:38;:36;:38::i;:::-;:52;;;;;;44949:53;;-1:-1:-1;45013:179:0;;;;45103:4;45048:38;:36;:38::i;:::-;:59;;;;;;;-1:-1:-1;;45048:59:0;;;;;;;;;:52;45122:38;:36;:38::i;:::-;:58;;-1:-1:-1;;45122:58:0;;;;;;;;;;45013:179;11994:19:::1;12017:13:::0;::::1;::::0;::::1;;;12016:14;::::0;12064:34;::::1;;;-1:-1:-1::0;12082:12:0::1;::::0;12097:1:::1;12082:12;::::0;;::::1;:16;12064:34;12063:108;;;-1:-1:-1::0;12143:4:0::1;1627:19:::0;:23;;;12104:66:::1;;-1:-1:-1::0;12153:12:0::1;::::0;::::1;;::::0;:17:::1;12104:66;12041:204;;;::::0;-1:-1:-1;;;12041:204:0;;16934:2:1;12041:204:0::1;::::0;::::1;16916:21:1::0;16973:2;16953:18;;;16946:30;17012:34;16992:18;;;16985:62;-1:-1:-1;;;17063:18:1;;;17056:44;17117:19;;12041:204:0::1;16732:410:1::0;12041:204:0::1;12256:12;:16:::0;;-1:-1:-1;;12256:16:0::1;12271:1;12256:16;::::0;;12283:67;::::1;;;12318:13;:20:::0;;-1:-1:-1;;12318:20:0::1;;;::::0;;12283:67:::1;133833:40:::2;133848:10;133860:12;133833:14;:40::i;:::-;133884:16;:14;:16::i;:::-;133911:17;:15;:17::i;:::-;133939:24;:22;:24::i;:::-;133974:8;:6;:8::i;:::-;133995:17;:38;134015:18:::0;133995:17;:38:::2;:::i;:::-;-1:-1:-1::0;134044:13:0::2;:30:::0;;-1:-1:-1;;;;;;134044:30:0::2;-1:-1:-1::0;;;;;134044:30:0;::::2;;::::0;;134085:10:::2;:24:::0;;;134120:13:::2;:30:::0;;;134161:9:::2;:22:::0;;;134194:15:::2;:34:::0;;;134239:11:::2;:26:::0;;;134276:24:::2;:52:::0;;;134339:27:::2;:58:::0;;;12372:102;::::1;;;12423:5;12407:21:::0;;-1:-1:-1;;12407:21:0::1;::::0;;12448:14:::1;::::0;-1:-1:-1;18656:36:1;;12448:14:0::1;::::0;18644:2:1;18629:18;12448:14:0::1;;;;;;;12372:102;11983:498;45222:14:::0;45218:107;;;45308:5;45253:38;:36;:38::i;:::-;:60;;;;;;;-1:-1:-1;;45253:60:0;;;;;;;;;45218:107;44364:968;133352:1053;;;;;;;;;;;:::o;134559:126::-;21721:13;:11;:13::i;:::-;134647::::1;:30:::0;;-1:-1:-1;;;;;;134647:30:0::1;-1:-1:-1::0;;;;;134647:30:0;;;::::1;::::0;;;::::1;::::0;;134559:126::o;81304:407::-;81479:31;81492:4;81498:2;81502:7;81479:12;:31::i;:::-;-1:-1:-1;;;;;81525:14:0;;;:19;81521:183;;81564:56;81595:4;81601:2;81605:7;81614:5;81564:30;:56::i;:::-;81559:145;;81648:40;;-1:-1:-1;;;81648:40:0;;;;;;;;;;;81559:145;81304:407;;;;:::o;138630:719::-;138749:13;138802:17;138810:8;138802:7;:17::i;:::-;138780:114;;;;-1:-1:-1;;;138780:114:0;;18905:2:1;138780:114:0;;;18887:21:1;18944:2;18924:18;;;18917:30;18983:34;18963:18;;;18956:62;-1:-1:-1;;;19034:18:1;;;19027:45;19089:19;;138780:114:0;18703:411:1;138780:114:0;138912:8;;;;;;;138907:66;;138944:17;138937:24;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;138630:719;;;:::o;138907:66::-;138985:28;139016:10;:8;:10::i;:::-;138985:41;;139088:1;139063:14;139057:28;:32;:284;;;;;;;;;;;;;;;;;139181:14;139222:19;:8;:17;:19::i;:::-;139268:9;139138:162;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;139057:284;139037:304;138630:719;-1:-1:-1;;;138630:719:0:o;137929:174::-;25122:19;:17;:19::i;:::-;18042:21:::1;:19;:21::i;:::-;132809:9:::2;;132794:11;;132778:13;:11;:13::i;:::-;:27;;;;:::i;:::-;:40;;132756:110;;;;-1:-1:-1::0;;;132756:110:0::2;;;;;;;:::i;:::-;99493:10:::0;132886:28:::2;::::0;;;:14:::2;:28;::::0;;;;;::::2;;132885:29;132877:59;;;::::0;-1:-1:-1;;;132877:59:0;;20582:2:1;132877:59:0::2;::::0;::::2;20564:21:1::0;20621:2;20601:18;;;20594:30;-1:-1:-1;;;20640:18:1;;;20633:47;20697:18;;132877:59:0::2;20380:341:1::0;132877:59:0::2;132949:10;132983:9:::0;132978:192:::2;133002:16;:23:::0;132998:27;::::2;132978:192;;;99493:10:::0;-1:-1:-1;;;;;133051:35:0::2;:16;133068:1;133051:19;;;;;;;;:::i;:::-;;::::0;;;::::2;::::0;;;::::2;::::0;-1:-1:-1;;;;;133051:19:0::2;:35:::0;133047:112:::2;;133115:4;133107:12;;133138:5;;133047:112;133027:3:::0;::::2;::::0;::::2;:::i;:::-;;;;132978:192;;;;133188:5;133180:36;;;::::0;-1:-1:-1;;;133180:36:0;;21200:2:1;133180:36:0::2;::::0;::::2;21182:21:1::0;21239:2;21219:18;;;21212:30;-1:-1:-1;;;21258:18:1;;;21251:48;21316:18;;133180:36:0::2;20998:342:1::0;133180:36:0::2;138013::::3;99493:10:::0;138037:11:::3;;138013:9;:36::i;:::-;-1:-1:-1::0;99493:10:0;138060:28:::3;::::0;;;:14:::3;:28;::::0;;;;:35;;-1:-1:-1;;138060:35:0::3;138091:4;138060:35:::0;;::::3;::::0;;;18606:7;:22;134484:67::o;136503:703::-;25122:19;:17;:19::i;:::-;18042:21:::1;:19;:21::i;:::-;132042:20:::2;::::0;136673:11;;132042:20:::2;;132034:55;;;::::0;-1:-1:-1;;;132034:55:0;;21547:2:1;132034:55:0::2;::::0;::::2;21529:21:1::0;21586:2;21566:18;;;21559:30;-1:-1:-1;;;21605:18:1;;;21598:52;21667:18;;132034:55:0::2;21345:346:1::0;132034:55:0::2;99493:10:::0;132109:30:::2;::::0;;;:16:::2;:30;::::0;;;;;::::2;;132108:31;132100:68;;;::::0;-1:-1:-1;;;132100:68:0;;21898:2:1;132100:68:0::2;::::0;::::2;21880:21:1::0;21937:2;21917:18;;;21910:30;21976:26;21956:18;;;21949:54;22020:18;;132100:68:0::2;21696:348:1::0;132100:68:0::2;132215:1;132201:11;:15;:61;;;;;132235:27;;132220:11;:42;;132201:61;132179:131;;;::::0;-1:-1:-1;;;132179:131:0;;15029:2:1;132179:131:0::2;::::0;::::2;15011:21:1::0;15068:2;15048:18;;;15041:30;-1:-1:-1;;;15087:18:1;;;15080:50;15147:18;;132179:131:0::2;14827:344:1::0;132179:131:0::2;132374:9;;132359:11;132343:13;:11;:13::i;:::-;:27;;;;:::i;:::-;:40;;132321:110;;;;-1:-1:-1::0;;;132321:110:0::2;;;;;;;:::i;:::-;132495:15;;132480:11;132464:13;:11;:13::i;:::-;:27;;;;:::i;:::-;:46;;132442:126;;;::::0;-1:-1:-1;;;132442:126:0;;22251:2:1;132442:126:0::2;::::0;::::2;22233:21:1::0;22290:2;22270:18;;;22263:30;22329:32;22309:18;;;22302:60;22379:18;;132442:126:0::2;22049:354:1::0;132442:126:0::2;132630:11;132614:13;;:27;;;;:::i;:::-;132601:9;:40;;132579:109;;;::::0;-1:-1:-1;;;132579:109:0;;16162:2:1;132579:109:0::2;::::0;::::2;16144:21:1::0;16201:2;16181:18;;;16174:30;-1:-1:-1;;;16220:18:1;;;16213:49;16279:18;;132579:109:0::2;15960:343:1::0;132579:109:0::2;136722:30:::3;::::0;-1:-1:-1;;99493:10:0;22557:2:1;22553:15;22549:53;136722:30:0::3;::::0;::::3;22537:66:1::0;136697:12:0::3;::::0;22619::1;;136722:30:0::3;;;;;;;;;;;;136712:41;;;;;;136697:56;;136786:61;136816:12;;136786:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::3;::::0;;;;-1:-1:-1;;136830:10:0::3;::::0;;-1:-1:-1;136842:4:0;;-1:-1:-1;136786:29:0::3;:61::i;:::-;136764:125;;;::::0;-1:-1:-1;;;136764:125:0;;22844:2:1;136764:125:0::3;::::0;::::3;22826:21:1::0;22883:2;22863:18;;;22856:30;-1:-1:-1;;;22902:18:1;;;22895:44;22956:18;;136764:125:0::3;22642:338:1::0;136764:125:0::3;99493:10:::0;136900:30:::3;::::0;;;:16:::3;:30;::::0;;;;:37;;-1:-1:-1;;136900:37:0::3;136933:4;136900:37;::::0;;136948:36:::3;::::0;136972:11;136948:9:::3;:36::i;:::-;136999:13;::::0;-1:-1:-1;;;;;136999:13:0::3;:27:::0;136995:204:::3;;137062:13;::::0;:84:::3;::::0;137044:12:::3;::::0;-1:-1:-1;;;;;137062:13:0::3;::::0;137088:21:::3;::::0;137044:12;137062:84;137044:12;137062:84;137088:21;137062:13;:84:::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;137043:103;;;137169:7;137161:26;;;;-1:-1:-1::0;;;137161:26:0::3;;;;;;;:::i;:::-;137028:171;136995:204;136686:520;18074:1:::2;18086:20:::1;17303:1:::0;18606:7;:22;18423:213;135268:100;21721:13;:11;:13::i;:::-;135339::::1;:21:::0;135268:100::o;135069:89::-;21721:13;:11;:13::i;:::-;135133:8:::1;:17:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;135133:17:0;;::::1;::::0;;;::::1;::::0;;135069:89::o;74647:188::-;74744:4;74768:23;:21;:23::i;:::-;-1:-1:-1;;;;;74768:49:0;;;;;;;:42;;;;;:49;;;;;;;;:59;;;;;;;;;;-1:-1:-1;74768:59:0;;;;;74647:188::o;137620:301::-;18042:21;:19;:21::i;:::-;21721:13:::1;:11;:13::i;:::-;137812:9:::2;;137797:11;137781:13;:11;:13::i;:::-;:27;;;;:::i;:::-;:40;;137759:110;;;;-1:-1:-1::0;;;137759:110:0::2;;;;;;;:::i;:::-;137880:33;137890:9;137901:11;137880:9;:33::i;:::-;18086:20:::0;17303:1;18606:7;:22;18423:213;22741:201;21721:13;:11;:13::i;:::-;-1:-1:-1;;;;;22830:22:0;::::1;22822:73;;;::::0;-1:-1:-1;;;22822:73:0;;23187:2:1;22822:73:0::1;::::0;::::1;23169:21:1::0;23226:2;23206:18;;;23199:30;23265:34;23245:18;;;23238:62;-1:-1:-1;;;23316:18:1;;;23309:36;23362:19;;22822:73:0::1;22985:402:1::0;22822:73:0::1;22906:28;22925:8;22906:18;:28::i;42831:164::-:0;42764:58;;42831:164::o;1332:326::-;-1:-1:-1;;;;;1627:19:0;;:23;;;1332:326::o;22000:132::-;21908:6;;-1:-1:-1;;;;;21908:6:0;99493:10;22064:23;22056:68;;;;-1:-1:-1;;;22056:68:0;;23594:2:1;22056:68:0;;;23576:21:1;;;23613:18;;;23606:30;23672:34;23652:18;;;23645:62;23724:18;;22056:68:0;23392:356:1;48319:164:0;48264:46;;48319:164::o;75093:330::-;75158:4;75214:7;139449:1;75195:26;;:90;;;;;75248:23;:21;:23::i;:::-;:37;75238:47;;75195:90;:201;;;;;-1:-1:-1;;;75323:23:0;:21;:23::i;:::-;:50;;;;:41;;;;;:50;;;;;;:68;:73;75175:221;75093:330;-1:-1:-1;;75093:330:0:o;92642:516::-;92771:13;92787:16;92795:7;92787;:16::i;:::-;92771:32;;92820:13;92816:219;;;99493:10;-1:-1:-1;;;;;92852:28:0;;;92848:187;;92904:44;92921:5;99493:10;74647:188;:::i;92904:44::-;92899:136;;92980:35;;-1:-1:-1;;;92980:35:0;;;;;;;;;;;92899:136;93104:2;93047:23;:21;:23::i;:::-;:48;;;;:39;;;;;:48;;;;;;:59;;-1:-1:-1;;;;;;93047:59:0;-1:-1:-1;;;;;93047:59:0;;;;;;93122:28;93047:48;;93122:28;;;;;;;;;;93047:48;93122:28;92760:398;92642:516;;;:::o;69726:1784::-;69793:14;69843:7;139449:1;69824:26;69820:1634;;69876:23;:21;:23::i;:::-;:50;;;;:41;;;;;:50;;;;;;;-1:-1:-1;;;;69976:24:0;;:29;;69972:1471;;70115:6;70125:1;70115:11;70111:1029;;70166:23;:21;:23::i;:::-;:37;70155:48;;70151:92;;70212:31;;-1:-1:-1;;;70212:31:0;;;;;;;;;;;70151:92;70926:23;:21;:23::i;:::-;-1:-1:-1;;70968:9:0;;;70926:52;;;;:41;;;;;:52;;;;;;;;-1:-1:-1;71032:25:0;;70840:281;71032:25;;69726:1784;;;:::o;69972:1471::-;71471:31;;-1:-1:-1;;;71471:31:0;;;;;;;;;;;76304:524;76406:27;76435:23;76476:53;76532:23;:21;:23::i;:::-;:48;;;;:39;;:48;;-1:-1:-1;;76532:48:0;;;;76784:26;;76532:48;;76784:26;;-1:-1:-1;76304:524:0:o;26372:120::-;25381:16;:14;:16::i;:::-;26431:7:::1;:15:::0;;-1:-1:-1;;26431:15:0::1;::::0;;26462:22:::1;99493:10:::0;26471:12:::1;26462:22;::::0;-1:-1:-1;;;;;2085:32:1;;;2067:51;;2055:2;2040:18;26462:22:0::1;;;;;;;26372:120::o:0;126541:222::-;126696:58;;;-1:-1:-1;;;;;23945:32:1;;126696:58:0;;;23927:51:1;23994:18;;;;23987:34;;;126696:58:0;;;;;;;;;;23900:18:1;;;;126696:58:0;;;;;;;;-1:-1:-1;;;;;126696:58:0;-1:-1:-1;;;126696:58:0;;;126669:86;;126689:5;;126669:19;:86::i;23102:191::-;23195:6;;;-1:-1:-1;;;;;23212:17:0;;;-1:-1:-1;;;;;;23212:17:0;;;;;;;23245:40;;23195:6;;;23212:17;23195:6;;23245:40;;23176:16;;23245:40;23165:128;23102:191;:::o;26113:118::-;25122:19;:17;:19::i;:::-;26173:7:::1;:14:::0;;-1:-1:-1;;26173:14:0::1;26183:4;26173:14;::::0;;26203:20:::1;26210:12;99493:10:::0;;99406:105;25676:108;25588:7;;;;25746:9;25738:38;;;;-1:-1:-1;;;25738:38:0;;24234:2:1;25738:38:0;;;24216:21:1;24273:2;24253:18;;;24246:30;-1:-1:-1;;;24292:18:1;;;24285:46;24348:18;;25738:38:0;24032:340:1;18122:293:0;17347:1;18256:7;;:19;18248:63;;;;-1:-1:-1;;;18248:63:0;;24579:2:1;18248:63:0;;;24561:21:1;24618:2;24598:18;;;24591:30;24657:33;24637:18;;;24630:61;24708:18;;18248:63:0;24377:355:1;18248:63:0;17347:1;18389:7;:18;18122:293::o;91724:112::-;91801:27;91811:2;91815:8;91801:27;;;;;;;;;;;;:9;:27::i;18423:213::-;17303:1;18606:7;:22;18423:213::o;61246:160::-;45595:38;:36;:38::i;:::-;:52;;;;;;45573:154;;;;-1:-1:-1;;;45573:154:0;;;;;;;:::i;:::-;61358:40:::1;61383:5;61390:7;61358:24;:40::i;21378:97::-:0;14137:13;;;;;;;14129:69;;;;-1:-1:-1;;;14129:69:0;;;;;;;:::i;:::-;21441:26:::1;:24;:26::i;24687:99::-:0;14137:13;;;;;;;14129:69;;;;-1:-1:-1;;;14129:69:0;;;;;;;:::i;:::-;24751:27:::1;:25;:27::i;17389:113::-:0;14137:13;;;;;;;14129:69;;;;-1:-1:-1;;;14129:69:0;;;;;;;:::i;:::-;17460:34:::1;:32;:34::i;83795:736::-:0;83992:99;;-1:-1:-1;;;83992:99:0;;83958:4;;-1:-1:-1;;;;;83992:56:0;;;;;:99;;99493:10;;84070:4;;84076:7;;84085:5;;83992:99;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;83992:99:0;;;;;;;;-1:-1:-1;;83992:99:0;;;;;;;;;;;;:::i;:::-;;;83975:549;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84282:6;:13;84299:1;84282:18;84278:235;;84328:40;;-1:-1:-1;;;84328:40:0;;;;;;;;;;;84278:235;84471:6;84465:13;84456:6;84452:2;84448:15;84441:38;83975:549;-1:-1:-1;;;;;;84147:75:0;-1:-1:-1;;;84147:75:0;;-1:-1:-1;83975:549:0;83795:736;;;;;;:::o;139466:110::-;139526:13;139559:9;139552:16;;;;;:::i;40228:727::-;40284:13;40335:14;40352:28;40374:5;40352:21;:28::i;:::-;40383:1;40352:32;40335:49;;40399:20;40433:6;40422:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40422:18:0;-1:-1:-1;40399:41:0;-1:-1:-1;40564:28:0;;;40580:2;40564:28;40621:288;-1:-1:-1;;40653:5:0;-1:-1:-1;;;40790:2:0;40779:14;;40774:30;40653:5;40761:44;40851:2;40842:11;;;-1:-1:-1;40872:21:0;40621:288;40872:21;-1:-1:-1;40930:6:0;40228:727;-1:-1:-1;;;40228:727:0:o;112043:190::-;112168:4;112221;112192:25;112205:5;112212:4;112192:12;:25::i;:::-;:33;;112043:190;-1:-1:-1;;;;112043:190:0:o;25861:108::-;25588:7;;;;25920:41;;;;-1:-1:-1;;;25920:41:0;;26652:2:1;25920:41:0;;;26634:21:1;26691:2;26671:18;;;26664:30;-1:-1:-1;;;26710:18:1;;;26703:50;26770:18;;25920:41:0;26450:344:1;129674:727:0;130109:23;130135:69;130163:4;130135:69;;;;;;;;;;;;;;;;;130143:5;-1:-1:-1;;;;;130135:27:0;;;:69;;;;;:::i;:::-;130219:17;;130109:95;;-1:-1:-1;130219:21:0;130215:179;;130316:10;130305:30;;;;;;;;;;;;:::i;:::-;130297:85;;;;-1:-1:-1;;;130297:85:0;;27251:2:1;130297:85:0;;;27233:21:1;27290:2;27270:18;;;27263:30;27329:34;27309:18;;;27302:62;-1:-1:-1;;;27380:18:1;;;27373:40;27430:19;;130297:85:0;27049:406:1;90903:737:0;91034:19;91040:2;91044:8;91034:5;:19::i;:::-;-1:-1:-1;;;;;91095:14:0;;;:19;91091:531;;91135:11;91149:23;:21;:23::i;:::-;:37;;-1:-1:-1;91221:14:0;;;91254:233;91285:62;91324:1;91328:2;91332:7;;;;;;91341:5;91285:30;:62::i;:::-;91280:167;;91383:40;;-1:-1:-1;;;91383:40:0;;;;;;;;;;;91280:167;91482:3;91474:5;:11;91254:233;;91593:3;91552:23;:21;:23::i;:::-;:37;:44;91548:58;;91598:8;;;91548:58;91116:506;;90903:737;;;:::o;61414:285::-;45595:38;:36;:38::i;:::-;:52;;;;;;45573:154;;;;-1:-1:-1;;;45573:154:0;;;;;;;:::i;:::-;61568:5:::1;61536:23;:21;:23::i;:::-;:29;;::::0;:37:::1;::::0;:29;:37:::1;:::i;:::-;;61618:7;61584:23;:21;:23::i;:::-;:31;;::::0;:41:::1;::::0;:31;:41:::1;:::i;:::-;-1:-1:-1::0;139449:1:0;61636:23:::1;:21;:23::i;:::-;:55:::0;-1:-1:-1;;61414:285:0:o;21483:113::-;14137:13;;;;;;;14129:69;;;;-1:-1:-1;;;14129:69:0;;;;;;;:::i;:::-;21556:32:::1;99493:10:::0;21556:18:::1;:32::i;24794:97::-:0;14137:13;;;;;;;14129:69;;;;-1:-1:-1;;;14129:69:0;;;;;;;:::i;:::-;24868:7:::1;:15:::0;;-1:-1:-1;;24868:15:0::1;::::0;;24794:97::o;17510:111::-;14137:13;;;;;;;14129:69;;;;-1:-1:-1;;;14129:69:0;;;;;;;:::i;37032:922::-;37085:7;;-1:-1:-1;;;37163:15:0;;37159:102;;-1:-1:-1;;;37199:15:0;;;-1:-1:-1;37243:2:0;37233:12;37159:102;37288:6;37279:5;:15;37275:102;;37324:6;37315:15;;;-1:-1:-1;37359:2:0;37349:12;37275:102;37404:6;37395:5;:15;37391:102;;37440:6;37431:15;;;-1:-1:-1;37475:2:0;37465:12;37391:102;37520:5;37511;:14;37507:99;;37555:5;37546:14;;;-1:-1:-1;37589:1:0;37579:11;37507:99;37633:5;37624;:14;37620:99;;37668:5;37659:14;;;-1:-1:-1;37702:1:0;37692:11;37620:99;37746:5;37737;:14;37733:99;;37781:5;37772:14;;;-1:-1:-1;37815:1:0;37805:11;37733:99;37859:5;37850;:14;37846:66;;37895:1;37885:11;37940:6;37032:922;-1:-1:-1;;37032:922:0:o;112910:296::-;112993:7;113036:4;112993:7;113051:118;113075:5;:12;113071:1;:16;113051:118;;;113124:33;113134:12;113148:5;113154:1;113148:8;;;;;;;;:::i;:::-;;;;;;;113124:9;:33::i;:::-;113109:48;-1:-1:-1;113089:3:0;;;;:::i;:::-;;;;113051:118;;;-1:-1:-1;113186:12:0;112910:296;-1:-1:-1;;;112910:296:0:o;4089:229::-;4226:12;4258:52;4280:6;4288:4;4294:1;4297:12;4258:21;:52::i;84993:3062::-;85066:20;85089:23;:21;:23::i;:::-;:37;;-1:-1:-1;85089:37:0;85141:13;;;85137:44;;85163:18;;-1:-1:-1;;;85163:18:0;;;;;;;;;;;85137:44;85731:32;85719:45;;85669:23;:21;:23::i;:::-;-1:-1:-1;;;;;85669:46:0;;;;;;:42;;;;;:46;;;;;;:95;;;;;;;;;72469:11;72444:23;72440:41;-1:-1:-1;72900:15:0;;72874:24;72870:46;72437:52;72427:63;86007:23;:21;:23::i;:::-;:55;;;;:41;;;;;:55;;;;;:197;;;;-1:-1:-1;;;;;86794:25:0;;;86266:23;;;;86049:12;;86794:25;;87031;86007:55;;86884:335;87545:1;87531:12;87527:20;87485:346;87586:3;87577:7;87574:16;87485:346;;87804:7;87794:8;87791:1;87764:25;87761:1;87758;87753:59;87639:1;87626:15;87485:346;;;87489:77;87864:8;87876:1;87864:13;87860:45;;87886:19;;-1:-1:-1;;;87886:19:0;;;;;;;;;;;87860:45;87962:3;87922:23;:21;:23::i;:::-;:43;-1:-1:-1;87987:60:0;;-1:-1:-1;81304:407:0;119950:149;120013:7;120044:1;120040;:5;:51;;120175:13;120269:15;;;120305:4;120298:15;;;120352:4;120336:21;;120040:51;;;-1:-1:-1;120175:13:0;120269:15;;;120305:4;120298:15;120352:4;120336:21;;;119950:149::o;5209:455::-;5379:12;5437:5;5412:21;:30;;5404:81;;;;-1:-1:-1;;;5404:81:0;;27662:2:1;5404:81:0;;;27644:21:1;27701:2;27681:18;;;27674:30;27740:34;27720:18;;;27713:62;-1:-1:-1;;;27791:18:1;;;27784:36;27837:19;;5404:81:0;27460:402:1;5404:81:0;5497:12;5511:23;5538:6;-1:-1:-1;;;;;5538:11:0;5557:5;5564:4;5538:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5496:73;;;;5587:69;5614:6;5622:7;5631:10;5643:12;5587:26;:69::i;:::-;5580:76;5209:455;-1:-1:-1;;;;;;;5209:455:0:o;6869:644::-;7054:12;7083:7;7079:427;;;7111:10;:17;7132:1;7111:22;7107:290;;-1:-1:-1;;;;;1627:19:0;;;7321:60;;;;-1:-1:-1;;;7321:60:0;;28361:2:1;7321:60:0;;;28343:21:1;28400:2;28380:18;;;28373:30;28439:31;28419:18;;;28412:59;28488:18;;7321:60:0;28159:353:1;7321:60:0;-1:-1:-1;7418:10:0;7411:17;;7079:427;7461:33;7469:10;7481:12;8216:17;;:21;8212:388;;8448:10;8442:17;8505:15;8492:10;8488:2;8484:19;8477:44;8212:388;8575:12;8568:20;;-1:-1:-1;;;8568:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;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:180::-;651:6;704:2;692:9;683:7;679:23;675:32;672:52;;;720:1;717;710:12;672:52;-1:-1:-1;743:23:1;;592:180;-1:-1:-1;592:180:1:o;777:250::-;862:1;872:113;886:6;883:1;880:13;872:113;;;962:11;;;956:18;943:11;;;936:39;908:2;901:10;872:113;;;-1:-1:-1;;1019:1:1;1001:16;;994:27;777:250::o;1032:271::-;1074:3;1112:5;1106:12;1139:6;1134:3;1127:19;1155:76;1224:6;1217:4;1212:3;1208:14;1201:4;1194:5;1190:16;1155:76;:::i;:::-;1285:2;1264:15;-1:-1:-1;;1260:29:1;1251:39;;;;1292:4;1247:50;;1032:271;-1:-1:-1;;1032:271:1:o;1308:220::-;1457:2;1446:9;1439:21;1420:4;1477:45;1518:2;1507:9;1503:18;1495:6;1477:45;:::i;1533:131::-;-1:-1:-1;;;;;1608:31:1;;1598:42;;1588:70;;1654:1;1651;1644:12;1669:247;1728:6;1781:2;1769:9;1760:7;1756:23;1752:32;1749:52;;;1797:1;1794;1787:12;1749:52;1836:9;1823:23;1855:31;1880:5;1855:31;:::i;2129:315::-;2197:6;2205;2258:2;2246:9;2237:7;2233:23;2229:32;2226:52;;;2274:1;2271;2264:12;2226:52;2313:9;2300:23;2332:31;2357:5;2332:31;:::i;:::-;2382:5;2434:2;2419:18;;;;2406:32;;-1:-1:-1;;;2129:315:1:o;2631:592::-;2702:6;2710;2763:2;2751:9;2742:7;2738:23;2734:32;2731:52;;;2779:1;2776;2769:12;2731:52;2819:9;2806:23;2848:18;2889:2;2881:6;2878:14;2875:34;;;2905:1;2902;2895:12;2875:34;2943:6;2932:9;2928:22;2918:32;;2988:7;2981:4;2977:2;2973:13;2969:27;2959:55;;3010:1;3007;3000:12;2959:55;3050:2;3037:16;3076:2;3068:6;3065:14;3062:34;;;3092:1;3089;3082:12;3062:34;3137:7;3132:2;3123:6;3119:2;3115:15;3111:24;3108:37;3105:57;;;3158:1;3155;3148:12;3105:57;3189:2;3181:11;;;;;3211:6;;-1:-1:-1;2631:592:1;;-1:-1:-1;;;;2631:592:1:o;3228:456::-;3305:6;3313;3321;3374:2;3362:9;3353:7;3349:23;3345:32;3342:52;;;3390:1;3387;3380:12;3342:52;3429:9;3416:23;3448:31;3473:5;3448:31;:::i;:::-;3498:5;-1:-1:-1;3555:2:1;3540:18;;3527:32;3568:33;3527:32;3568:33;:::i;:::-;3228:456;;3620:7;;-1:-1:-1;;;3674:2:1;3659:18;;;;3646:32;;3228:456::o;3871:118::-;3957:5;3950:13;3943:21;3936:5;3933:32;3923:60;;3979:1;3976;3969:12;3994:376;4056:6;4064;4117:2;4105:9;4096:7;4092:23;4088:32;4085:52;;;4133:1;4130;4123:12;4085:52;4172:9;4159:23;4191:28;4213:5;4191:28;:::i;:::-;4238:5;-1:-1:-1;4295:2:1;4280:18;;4267:32;4308:30;4267:32;4308:30;:::i;:::-;4357:7;4347:17;;;3994:376;;;;;:::o;4784:367::-;4847:8;4857:6;4911:3;4904:4;4896:6;4892:17;4888:27;4878:55;;4929:1;4926;4919:12;4878:55;-1:-1:-1;4952:20:1;;4995:18;4984:30;;4981:50;;;5027:1;5024;5017:12;4981:50;5064:4;5056:6;5052:17;5040:29;;5124:3;5117:4;5107:6;5104:1;5100:14;5092:6;5088:27;5084:38;5081:47;5078:67;;;5141:1;5138;5131:12;5078:67;4784:367;;;;;:::o;5156:437::-;5242:6;5250;5303:2;5291:9;5282:7;5278:23;5274:32;5271:52;;;5319:1;5316;5309:12;5271:52;5359:9;5346:23;5392:18;5384:6;5381:30;5378:50;;;5424:1;5421;5414:12;5378:50;5463:70;5525:7;5516:6;5505:9;5501:22;5463:70;:::i;:::-;5552:8;;5437:96;;-1:-1:-1;5156:437:1;-1:-1:-1;;;;5156:437:1:o;5598:382::-;5663:6;5671;5724:2;5712:9;5703:7;5699:23;5695:32;5692:52;;;5740:1;5737;5730:12;5692:52;5779:9;5766:23;5798:31;5823:5;5798:31;:::i;5985:127::-;6046:10;6041:3;6037:20;6034:1;6027:31;6077:4;6074:1;6067:15;6101:4;6098:1;6091:15;6117:632;6182:5;6212:18;6253:2;6245:6;6242:14;6239:40;;;6259:18;;:::i;:::-;6334:2;6328:9;6302:2;6388:15;;-1:-1:-1;;6384:24:1;;;6410:2;6380:33;6376:42;6364:55;;;6434:18;;;6454:22;;;6431:46;6428:72;;;6480:18;;:::i;:::-;6520:10;6516:2;6509:22;6549:6;6540:15;;6579:6;6571;6564:22;6619:3;6610:6;6605:3;6601:16;6598:25;6595:45;;;6636:1;6633;6626:12;6595:45;6686:6;6681:3;6674:4;6666:6;6662:17;6649:44;6741:1;6734:4;6725:6;6717;6713:19;6709:30;6702:41;;;;6117:632;;;;;:::o;6754:222::-;6797:5;6850:3;6843:4;6835:6;6831:17;6827:27;6817:55;;6868:1;6865;6858:12;6817:55;6890:80;6966:3;6957:6;6944:20;6937:4;6929:6;6925:17;6890:80;:::i;6981:142::-;7057:20;;7086:31;7057:20;7086:31;:::i;7128:1289::-;7315:6;7323;7331;7339;7347;7355;7363;7371;7379;7387;7395:7;7449:3;7437:9;7428:7;7424:23;7420:33;7417:53;;;7466:1;7463;7456:12;7417:53;7489:18;7547:2;7535:9;7522:23;7519:31;7516:51;;;7563:1;7560;7553:12;7516:51;7586:67;7645:7;7632:9;7619:23;7608:9;7604:39;7586:67;:::i;:::-;7576:77;;7702:2;7696;7685:9;7681:18;7668:32;7665:40;7662:60;;;7718:1;7715;7708:12;7662:60;7741:76;7809:7;7802:2;7791:9;7787:18;7774:32;7763:9;7759:48;7741:76;:::i;:::-;7731:86;;7866:2;7860;7849:9;7845:18;7832:32;7829:40;7826:60;;;7882:1;7879;7872:12;7826:60;;7905:76;7973:7;7966:2;7955:9;7951:18;7938:32;7927:9;7923:48;7905:76;:::i;:::-;7895:86;;8000:46;8042:2;8031:9;8027:18;8000:46;:::i;:::-;7128:1289;;;;-1:-1:-1;7128:1289:1;;8093:3;8078:19;;8065:33;;8145:3;8130:19;;8117:33;;-1:-1:-1;8197:3:1;8182:19;;8169:33;;-1:-1:-1;8249:3:1;8234:19;;8221:33;;-1:-1:-1;8301:3:1;8286:19;;8273:33;;-1:-1:-1;8353:3:1;8338:19;;8325:33;;-1:-1:-1;8406:3:1;8391:19;;;8378:33;;-1:-1:-1;7128:1289:1;-1:-1:-1;;7128:1289:1:o;8682:795::-;8777:6;8785;8793;8801;8854:3;8842:9;8833:7;8829:23;8825:33;8822:53;;;8871:1;8868;8861:12;8822:53;8910:9;8897:23;8929:31;8954:5;8929:31;:::i;:::-;8979:5;-1:-1:-1;9036:2:1;9021:18;;9008:32;9049:33;9008:32;9049:33;:::i;:::-;9101:7;-1:-1:-1;9155:2:1;9140:18;;9127:32;;-1:-1:-1;9210:2:1;9195:18;;9182:32;9237:18;9226:30;;9223:50;;;9269:1;9266;9259:12;9223:50;9292:22;;9345:4;9337:13;;9333:27;-1:-1:-1;9323:55:1;;9374:1;9371;9364:12;9323:55;9397:74;9463:7;9458:2;9445:16;9440:2;9436;9432:11;9397:74;:::i;:::-;9387:84;;;8682:795;;;;;;;:::o;9482:505::-;9577:6;9585;9593;9646:2;9634:9;9625:7;9621:23;9617:32;9614:52;;;9662:1;9659;9652:12;9614:52;9698:9;9685:23;9675:33;;9759:2;9748:9;9744:18;9731:32;9786:18;9778:6;9775:30;9772:50;;;9818:1;9815;9808:12;9772:50;9857:70;9919:7;9910:6;9899:9;9895:22;9857:70;:::i;:::-;9482:505;;9946:8;;-1:-1:-1;9831:96:1;;-1:-1:-1;;;;9482:505:1:o;9992:241::-;10048:6;10101:2;10089:9;10080:7;10076:23;10072:32;10069:52;;;10117:1;10114;10107:12;10069:52;10156:9;10143:23;10175:28;10197:5;10175:28;:::i;10238:388::-;10306:6;10314;10367:2;10355:9;10346:7;10342:23;10338:32;10335:52;;;10383:1;10380;10373:12;10335:52;10422:9;10409:23;10441:31;10466:5;10441:31;:::i;:::-;10491:5;-1:-1:-1;10548:2:1;10533:18;;10520:32;10561:33;10520:32;10561:33;:::i;10631:315::-;10699:6;10707;10760:2;10748:9;10739:7;10735:23;10731:32;10728:52;;;10776:1;10773;10766:12;10728:52;10812:9;10799:23;10789:33;;10872:2;10861:9;10857:18;10844:32;10885:31;10910:5;10885:31;:::i;10951:380::-;11030:1;11026:12;;;;11073;;;11094:61;;11148:4;11140:6;11136:17;11126:27;;11094:61;11201:2;11193:6;11190:14;11170:18;11167:38;11164:161;;11247:10;11242:3;11238:20;11235:1;11228:31;11282:4;11279:1;11272:15;11310:4;11307:1;11300:15;11164:161;;10951:380;;;:::o;11462:545::-;11564:2;11559:3;11556:11;11553:448;;;11600:1;11625:5;11621:2;11614:17;11670:4;11666:2;11656:19;11740:2;11728:10;11724:19;11721:1;11717:27;11711:4;11707:38;11776:4;11764:10;11761:20;11758:47;;;-1:-1:-1;11799:4:1;11758:47;11854:2;11849:3;11845:12;11842:1;11838:20;11832:4;11828:31;11818:41;;11909:82;11927:2;11920:5;11917:13;11909:82;;;11972:17;;;11953:1;11942:13;11909:82;;12183:1206;12307:18;12302:3;12299:27;12296:53;;;12329:18;;:::i;:::-;12358:94;12448:3;12408:38;12440:4;12434:11;12408:38;:::i;:::-;12402:4;12358:94;:::i;:::-;12478:1;12503:2;12498:3;12495:11;12520:1;12515:616;;;;13175:1;13192:3;13189:93;;;-1:-1:-1;13248:19:1;;;13235:33;13189:93;-1:-1:-1;;12140:1:1;12136:11;;;12132:24;12128:29;12118:40;12164:1;12160:11;;;12115:57;13295:78;;12488:895;;12515:616;11409:1;11402:14;;;11446:4;11433:18;;-1:-1:-1;;12551:17:1;;;12652:9;12674:229;12688:7;12685:1;12682:14;12674:229;;;12777:19;;;12764:33;12749:49;;12884:4;12869:20;;;;12837:1;12825:14;;;;12704:12;12674:229;;;12678:3;12931;12922:7;12919:16;12916:159;;;13055:1;13051:6;13045:3;13039;13036:1;13032:11;13028:21;13024:34;13020:39;13007:9;13002:3;12998:19;12985:33;12981:79;12973:6;12966:95;12916:159;;;13118:1;13112:3;13109:1;13105:11;13101:19;13095:4;13088:33;12488:895;;12183:1206;;;:::o;13956:329::-;14158:2;14140:21;;;14197:1;14177:18;;;14170:29;-1:-1:-1;;;14230:2:1;14215:18;;14208:36;14276:2;14261:18;;13956:329::o;14290:184::-;14360:6;14413:2;14401:9;14392:7;14388:23;14384:32;14381:52;;;14429:1;14426;14419:12;14381:52;-1:-1:-1;14452:16:1;;14290:184;-1:-1:-1;14290:184:1:o;15176:127::-;15237:10;15232:3;15228:20;15225:1;15218:31;15268:4;15265:1;15258:15;15292:4;15289:1;15282:15;15308:125;15373:9;;;15394:10;;;15391:36;;;15407:18;;:::i;15438:344::-;15640:2;15622:21;;;15679:2;15659:18;;;15652:30;-1:-1:-1;;;15713:2:1;15698:18;;15691:50;15773:2;15758:18;;15438:344::o;15787:168::-;15860:9;;;15891;;15908:15;;;15902:22;;15888:37;15878:71;;15929:18;;:::i;17147:1352::-;17273:3;17267:10;17300:18;17292:6;17289:30;17286:56;;;17322:18;;:::i;:::-;17351:97;17441:6;17401:38;17433:4;17427:11;17401:38;:::i;:::-;17395:4;17351:97;:::i;:::-;17503:4;;17567:2;17556:14;;17584:1;17579:663;;;;18286:1;18303:6;18300:89;;;-1:-1:-1;18355:19:1;;;18349:26;18300:89;-1:-1:-1;;12140:1:1;12136:11;;;12132:24;12128:29;12118:40;12164:1;12160:11;;;12115:57;18402:81;;17549:944;;17579:663;11409:1;11402:14;;;11446:4;11433:18;;-1:-1:-1;;17615:20:1;;;17733:236;17747:7;17744:1;17741:14;17733:236;;;17836:19;;;17830:26;17815:42;;17928:27;;;;17896:1;17884:14;;;;17763:19;;17733:236;;;17737:3;17997:6;17988:7;17985:19;17982:201;;;18058:19;;;18052:26;-1:-1:-1;;18141:1:1;18137:14;;;18153:3;18133:24;18129:37;18125:42;18110:58;18095:74;;17982:201;-1:-1:-1;;;;;18229:1:1;18213:14;;;18209:22;18196:36;;-1:-1:-1;17147:1352:1:o;19119:1256::-;19343:3;19381:6;19375:13;19407:4;19420:64;19477:6;19472:3;19467:2;19459:6;19455:15;19420:64;:::i;:::-;19547:13;;19506:16;;;;19569:68;19547:13;19506:16;19604:15;;;19569:68;:::i;:::-;19726:13;;19659:20;;;19699:1;;19764:36;19726:13;19764:36;:::i;:::-;19819:1;19836:18;;;19863:141;;;;20018:1;20013:337;;;;19829:521;;19863:141;-1:-1:-1;;19898:24:1;;19884:39;;19975:16;;19968:24;19954:39;;19943:51;;;-1:-1:-1;19863:141:1;;20013:337;20044:6;20041:1;20034:17;20092:2;20089:1;20079:16;20117:1;20131:169;20145:8;20142:1;20139:15;20131:169;;;20227:14;;20212:13;;;20205:37;20270:16;;;;20162:10;;20131:169;;;20135:3;;20331:8;20324:5;20320:20;20313:27;;19829:521;-1:-1:-1;20366:3:1;;19119:1256;-1:-1:-1;;;;;;;;;;19119:1256:1:o;20726:127::-;20787:10;20782:3;20778:20;20775:1;20768:31;20818:4;20815:1;20808:15;20842:4;20839:1;20832:15;20858:135;20897:3;20918:17;;;20915:43;;20938:18;;:::i;:::-;-1:-1:-1;20985:1:1;20974:13;;20858:135::o;24737:416::-;24939:2;24921:21;;;24978:2;24958:18;;;24951:30;25017:34;25012:2;24997:18;;24990:62;-1:-1:-1;;;25083:2:1;25068:18;;25061:50;25143:3;25128:19;;24737:416::o;25158:407::-;25360:2;25342:21;;;25399:2;25379:18;;;25372:30;25438:34;25433:2;25418:18;;25411:62;-1:-1:-1;;;25504:2:1;25489:18;;25482:41;25555:3;25540:19;;25158:407::o;25570:489::-;-1:-1:-1;;;;;25839:15:1;;;25821:34;;25891:15;;25886:2;25871:18;;25864:43;25938:2;25923:18;;25916:34;;;25986:3;25981:2;25966:18;;25959:31;;;25764:4;;26007:46;;26033:19;;26025:6;26007:46;:::i;:::-;25999:54;25570:489;-1:-1:-1;;;;;;25570:489:1:o;26064:249::-;26133:6;26186:2;26174:9;26165:7;26161:23;26157:32;26154:52;;;26202:1;26199;26192:12;26154:52;26234:9;26228:16;26253:30;26277:5;26253:30;:::i;26799:245::-;26866:6;26919:2;26907:9;26898:7;26894:23;26890:32;26887:52;;;26935:1;26932;26925:12;26887:52;26967:9;26961:16;26986:28;27008:5;26986:28;:::i;27867:287::-;27996:3;28034:6;28028:13;28050:66;28109:6;28104:3;28097:4;28089:6;28085:17;28050:66;:::i;:::-;28132:16;;;;;27867:287;-1:-1:-1;;27867:287:1:o
Swarm Source
ipfs://90f090f660466e4eae9f31a05ad34792944f443cbd2a74bc44c083a7a8992961
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.