Overview
TokenID
79
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Source Code Verified (Exact Match)
Contract Name:
XtraDappNFT
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-07-26 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/Counters.sol // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } } // File: @openzeppelin/contracts/utils/math/SignedMath.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } // File: @openzeppelin/contracts/utils/math/Math.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { 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) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // 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 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { 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 = Math.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 `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { 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); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } } // File: contracts/xtra/Constants.sol pragma solidity ^0.8.17; address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E; address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; // File: contracts/xtra/IOperatorFilterRegistry.sol pragma solidity ^0.8.13; interface IOperatorFilterRegistry { /** * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns * true if supplied registrant address is not registered. */ function isOperatorAllowed(address registrant, address operator) external view returns (bool); /** * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner. */ function register(address registrant) external; /** * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes. */ function registerAndSubscribe(address registrant, address subscription) external; /** * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another * address without subscribing. */ function registerAndCopyEntries(address registrant, address registrantToCopy) external; /** * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner. * Note that this does not remove any filtered addresses or codeHashes. * Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes. */ function unregister(address addr) external; /** * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered. */ function updateOperator(address registrant, address operator, bool filtered) external; /** * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates. */ function updateOperators(address registrant, address[] calldata operators, bool filtered) external; /** * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered. */ function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; /** * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates. */ function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; /** * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous * subscription if present. * Note that accounts with subscriptions may go on to subscribe to other accounts - in this case, * subscriptions will not be forwarded. Instead the former subscription's existing entries will still be * used. */ function subscribe(address registrant, address registrantToSubscribe) external; /** * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes. */ function unsubscribe(address registrant, bool copyExistingEntries) external; /** * @notice Get the subscription address of a given registrant, if any. */ function subscriptionOf(address addr) external returns (address registrant); /** * @notice Get the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscribers(address registrant) external returns (address[] memory); /** * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant. * Note that order is not guaranteed as updates are made. */ function subscriberAt(address registrant, uint256 index) external returns (address); /** * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr. */ function copyEntriesOf(address registrant, address registrantToCopy) external; /** * @notice Returns true if operator is filtered by a given address or its subscription. */ function isOperatorFiltered(address registrant, address operator) external returns (bool); /** * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription. */ function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); /** * @notice Returns true if a codeHash is filtered by a given address or its subscription. */ function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); /** * @notice Returns a list of filtered operators for a given address or its subscription. */ function filteredOperators(address addr) external returns (address[] memory); /** * @notice Returns the set of filtered codeHashes for a given address or its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashes(address addr) external returns (bytes32[] memory); /** * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredOperatorAt(address registrant, uint256 index) external returns (address); /** * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or * its subscription. * Note that order is not guaranteed as updates are made. */ function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); /** * @notice Returns true if an address has registered */ function isRegistered(address addr) external returns (bool); /** * @dev Convenience method to compute the code hash of an arbitrary contract */ function codeHashOf(address addr) external returns (bytes32); } // File: @openzeppelin/contracts-upgradeable/utils/cryptography/MerkleProofUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.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 rebuilds 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 from 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) { unchecked { 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 rebuilds 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 from 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) { unchecked { 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/utils/StorageSlotUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.0; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` * * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._ * _Available since v4.9 for `string`, `bytes`._ */ library StorageSlotUpgradeable { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } } // File: @openzeppelin/contracts-upgradeable/interfaces/IERC1967Upgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol) pragma solidity ^0.8.0; /** * @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC. * * _Available since v4.8.3._ */ interface IERC1967Upgradeable { /** * @dev Emitted when the implementation is upgraded. */ event Upgraded(address indexed implementation); /** * @dev Emitted when the admin account has changed. */ event AdminChanged(address previousAdmin, address newAdmin); /** * @dev Emitted when the beacon is changed. */ event BeaconUpgraded(address indexed beacon); } // File: @openzeppelin/contracts-upgradeable/proxy/beacon/IBeaconUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol) pragma solidity ^0.8.0; /** * @dev This is the interface that {BeaconProxy} expects of its beacon. */ interface IBeaconUpgradeable { /** * @dev Must return an address that can be used as a delegate call target. * * {BeaconProxy} will check that this address is a contract. */ function implementation() external view returns (address); } // File: @openzeppelin/contracts-upgradeable/interfaces/draft-IERC1822Upgradeable.sol // OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol) pragma solidity ^0.8.0; /** * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified * proxy whose upgrades are fully controlled by the current implementation. */ interface IERC1822ProxiableUpgradeable { /** * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation * address. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. */ function proxiableUUID() external view returns (bytes32); } // File: @openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControlUpgradeable { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } // File: @openzeppelin/contracts-upgradeable/utils/math/SignedMathUpgradeable.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMathUpgradeable { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } } // File: @openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.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) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // 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 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } } // File: @openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.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 `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMathUpgradeable.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, 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); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } } // File: @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File: @openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol // OpenZeppelin Contracts (last updated v4.9.0) (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] * ```solidity * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev 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: contracts/xtra/OperatorFiltererUpgradeable.sol pragma solidity ^0.8.13; /** * @title OperatorFiltererUpgradeable * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry when the init function is called. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFiltererUpgradeable is Initializable { /// @notice Emitted when an operator is not allowed. error OperatorNotAllowed(address operator); IOperatorFilterRegistry constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); /// @dev The upgradeable initialize function that should be called when the contract is being upgraded. function __OperatorFilterer_init(address subscriptionOrRegistrantToCopy, bool subscribe) internal onlyInitializing { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isRegistered(address(this))) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } } /** * @dev A helper modifier to check if the operator is allowed. */ modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } /** * @dev A helper modifier to check if the operator approval is allowed. */ modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @dev A helper function to check if the operator is allowed. */ function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { // under normal circumstances, this function will revert rather than return false, but inheriting or // upgraded contracts may specify their own OperatorFilterRegistry implementations, which may behave // differently if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } } // File: contracts/xtra/DefaultOperatorFiltererUpgradeable.sol pragma solidity ^0.8.13; /** * @title DefaultOperatorFiltererUpgradeable * @notice Inherits from OperatorFiltererUpgradeable and automatically subscribes to the default OpenSea subscription * when the init function is called. */ abstract contract DefaultOperatorFiltererUpgradeable is OperatorFiltererUpgradeable { /// @dev The upgradeable initialize function that should be called when the contract is being deployed. function __DefaultOperatorFilterer_init() internal onlyInitializing { OperatorFiltererUpgradeable.__OperatorFilterer_init(CANONICAL_CORI_SUBSCRIPTION, true); } } // File: @openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.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 Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; } // File: @openzeppelin/contracts-upgradeable/proxy/ERC1967/ERC1967UpgradeUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol) pragma solidity ^0.8.2; /** * @dev This abstract contract provides getters and event emitting update functions for * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots. * * _Available since v4.1._ */ abstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable { function __ERC1967Upgrade_init() internal onlyInitializing { } function __ERC1967Upgrade_init_unchained() internal onlyInitializing { } // This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1 bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143; /** * @dev Storage slot with the address of the current implementation. * This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; /** * @dev Returns the current implementation address. */ function _getImplementation() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value; } /** * @dev Stores a new address in the EIP1967 implementation slot. */ function _setImplementation(address newImplementation) private { require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract"); StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } /** * @dev Perform implementation upgrade * * Emits an {Upgraded} event. */ function _upgradeTo(address newImplementation) internal { _setImplementation(newImplementation); emit Upgraded(newImplementation); } /** * @dev Perform implementation upgrade with additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal { _upgradeTo(newImplementation); if (data.length > 0 || forceCall) { AddressUpgradeable.functionDelegateCall(newImplementation, data); } } /** * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call. * * Emits an {Upgraded} event. */ function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal { // Upgrades from old implementations will perform a rollback test. This test requires the new // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing // this special case will break upgrade paths from old UUPS implementation to new ones. if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) { _setImplementation(newImplementation); } else { try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) { require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID"); } catch { revert("ERC1967Upgrade: new implementation is not UUPS"); } _upgradeToAndCall(newImplementation, data, forceCall); } } /** * @dev Storage slot with the admin of the contract. * This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is * validated in the constructor. */ bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103; /** * @dev Returns the current admin. */ function _getAdmin() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value; } /** * @dev Stores a new address in the EIP1967 admin slot. */ function _setAdmin(address newAdmin) private { require(newAdmin != address(0), "ERC1967: new admin is the zero address"); StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin; } /** * @dev Changes the admin of the proxy. * * Emits an {AdminChanged} event. */ function _changeAdmin(address newAdmin) internal { emit AdminChanged(_getAdmin(), newAdmin); _setAdmin(newAdmin); } /** * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy. * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor. */ bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50; /** * @dev Returns the current beacon. */ function _getBeacon() internal view returns (address) { return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value; } /** * @dev Stores a new beacon in the EIP1967 beacon slot. */ function _setBeacon(address newBeacon) private { require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract"); require( AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()), "ERC1967: beacon implementation is not a contract" ); StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon; } /** * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that). * * Emits a {BeaconUpgraded} event. */ function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal { _setBeacon(newBeacon); emit BeaconUpgraded(newBeacon); if (data.length > 0 || forceCall) { AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), 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/proxy/utils/UUPSUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol) pragma solidity ^0.8.0; /** * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy. * * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing * `UUPSUpgradeable` with a custom implementation of upgrades. * * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism. * * _Available since v4.1._ */ abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable { function __UUPSUpgradeable_init() internal onlyInitializing { } function __UUPSUpgradeable_init_unchained() internal onlyInitializing { } /// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment address private immutable __self = address(this); /** * @dev Check that the execution is being performed through a delegatecall call and that the execution context is * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to * fail. */ modifier onlyProxy() { require(address(this) != __self, "Function must be called through delegatecall"); require(_getImplementation() == __self, "Function must be called through active proxy"); _; } /** * @dev Check that the execution is not being performed through a delegate call. This allows a function to be * callable on the implementing contract but not through proxies. */ modifier notDelegated() { require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall"); _; } /** * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the * implementation. It is used to validate the implementation's compatibility when performing an upgrade. * * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier. */ function proxiableUUID() external view virtual override notDelegated returns (bytes32) { return _IMPLEMENTATION_SLOT; } /** * @dev Upgrade the implementation of the proxy to `newImplementation`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. * * @custom:oz-upgrades-unsafe-allow-reachable delegatecall */ function upgradeTo(address newImplementation) public virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, new bytes(0), false); } /** * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call * encoded in `data`. * * Calls {_authorizeUpgrade}. * * Emits an {Upgraded} event. * * @custom:oz-upgrades-unsafe-allow-reachable delegatecall */ function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy { _authorizeUpgrade(newImplementation); _upgradeToAndCallUUPS(newImplementation, data, true); } /** * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by * {upgradeTo} and {upgradeToAndCall}. * * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}. * * ```solidity * function _authorizeUpgrade(address) internal override onlyOwner {} * ``` */ function _authorizeUpgrade(address newImplementation) internal virtual; /** * @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/utils/ContextUpgradeable.sol // 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/security/PausableUpgradeable.sol // 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/token/ERC721/IERC721ReceiverUpgradeable.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721ReceiverUpgradeable { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } // File: @openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts-upgradeable/interfaces/IERC165Upgradeable.sol // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; // File: @openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal onlyInitializing { } function __ERC165_init_unchained() internal onlyInitializing { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } /** * @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/AccessControlUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol) pragma solidity ^0.8.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ```solidity * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ```solidity * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules} * to enforce additional security measures for this role. */ abstract contract AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable { function __AccessControl_init() internal onlyInitializing { } function __AccessControl_init_unchained() internal onlyInitializing { } struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", StringsUpgradeable.toHexString(account), " is missing role ", StringsUpgradeable.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _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/token/ERC721/IERC721Upgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721Upgradeable is IERC165Upgradeable { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the 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 have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the 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); } // File: @openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721EnumerableUpgradeable.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721EnumerableUpgradeable is IERC721Upgradeable { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File: @openzeppelin/contracts-upgradeable/interfaces/IERC721Upgradeable.sol // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol) pragma solidity ^0.8.0; // File: @openzeppelin/contracts-upgradeable/interfaces/IERC4906Upgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC4906.sol) pragma solidity ^0.8.0; /// @title EIP-721 Metadata Update Extension interface IERC4906Upgradeable is IERC165Upgradeable, IERC721Upgradeable { /// @dev This event emits when the metadata of a token is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFT. event MetadataUpdate(uint256 _tokenId); /// @dev This event emits when the metadata of a range of tokens is changed. /// So that the third-party platforms such as NFT market could /// timely update the images and related attributes of the NFTs. event BatchMetadataUpdate(uint256 _fromTokenId, uint256 _toTokenId); } // File: @openzeppelin/contracts-upgradeable/token/ERC721/extensions/IERC721MetadataUpgradeable.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721MetadataUpgradeable is IERC721Upgradeable { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File: @openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721Upgradeable is Initializable, ContextUpgradeable, ERC165Upgradeable, IERC721Upgradeable, IERC721MetadataUpgradeable { using AddressUpgradeable for address; using StringsUpgradeable for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ function __ERC721_init(string memory name_, string memory symbol_) internal onlyInitializing { __ERC721_init_unchained(name_, symbol_); } function __ERC721_init_unchained(string memory name_, string memory symbol_) internal onlyInitializing { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == type(IERC721Upgradeable).interfaceId || interfaceId == type(IERC721MetadataUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721Upgradeable.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @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. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @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 (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721Upgradeable.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721Upgradeable.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721Upgradeable.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721Upgradeable.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721Upgradeable.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721ReceiverUpgradeable(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721ReceiverUpgradeable.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } /** * @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[44] private __gap; } // File: @openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721EnumerableUpgradeable.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721EnumerableUpgradeable is Initializable, ERC721Upgradeable, IERC721EnumerableUpgradeable { function __ERC721Enumerable_init() internal onlyInitializing { } function __ERC721Enumerable_init_unchained() internal onlyInitializing { } // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165Upgradeable, ERC721Upgradeable) returns (bool) { return interfaceId == type(IERC721EnumerableUpgradeable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721Upgradeable.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721EnumerableUpgradeable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev See {ERC721-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual override { super._beforeTokenTransfer(from, to, firstTokenId, batchSize); if (batchSize > 1) { // Will only trigger during construction. Batch transferring (minting) is not available afterwards. revert("ERC721Enumerable: consecutive transfers not supported"); } uint256 tokenId = firstTokenId; if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721Upgradeable.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721Upgradeable.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } /** * @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[46] private __gap; } // File: @openzeppelin/contracts-upgradeable/token/ERC721/extensions/ERC721URIStorageUpgradeable.sol // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorageUpgradeable is Initializable, IERC4906Upgradeable, ERC721Upgradeable { function __ERC721URIStorage_init() internal onlyInitializing { } function __ERC721URIStorage_init_unchained() internal onlyInitializing { } using StringsUpgradeable for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC165-supportsInterface} */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Upgradeable, IERC165Upgradeable) returns (bool) { return interfaceId == bytes4(0x49064906) || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Emits {MetadataUpdate}. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; emit MetadataUpdate(tokenId); } /** * @dev See {ERC721-_burn}. This override additionally checks to see if a * token-specific URI was set for the token, and if so, it deletes the token URI from * the storage mapping. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } /** * @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: contracts/xtra/backendXtraDappNFT.sol /* ) (`-. .-') _ _ .-') ('-. _ .-') _ ('-. _ (`-. _ (`-. ( OO ). ( OO) ) ( \( -O ) ( OO ).-. ( ( OO) ) ( OO ).-. ( (OO ) ( (OO ) (_/. \_)-./ '._ ,------. / . --. / \ .'_ / . --. /_.` \ _.` \ \ `.' / |'--...__)| /`. ' | \-. \ ,`'--..._) | \-. \(__...--''(__...--'' \ /\ '--. .--'| / | |.-'-' | | | | \ '.-'-' | || / | | | / | | \ \ | | | | |_.' | \| |_.' | | | ' | \| |_.' || |_.' | | |_.' | .' \_) | | | . '.' | .-. | | | / : | .-. || .___.' | .___.' / .'. \ | | | |\ \ | | | | | '--' / | | | || | | | '--' '--' `--' `--' '--' `--' `--' `-------' `--' `--'`--' `--' */ pragma solidity >=0.7.0 <0.9.0; /// ======================== Imports ======================== /// @title XtraDappNFT /// @notice ERC721 Mintable by members of a merkle tree /// @author XtraDappNFT /// @dev Solmate ERC721 includes unused _burn logic that can be removed to optimize deployment cost contract XtraDappNFT is Initializable, ERC721URIStorageUpgradeable, AccessControlUpgradeable, ERC721EnumerableUpgradeable, DefaultOperatorFiltererUpgradeable, PausableUpgradeable, ReentrancyGuardUpgradeable, UUPSUpgradeable { using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; /// ==================== State Variables ======================= bytes32 public constant UPGRADER_ROLE = keccak256("UPGRADER"); bytes32 public constant MANAGER_ROLE = keccak256("MANAGER_ROLE"); bytes32 private V_hash; /// ==================== Admins ======================= address public gnosisWallet; address public owner; uint256 public MAX_SUPPLY; //max total collections to be minted uint256 public maxUserMintLimit; //mint limit for whitelist mint uint256 public whitelistFee; uint256 public reserveSupply; //team reserve string public baseTokenUri; string public hiddenMetadataUri; string uri; bool public publicSale; bool public teamReserve; //10% of maxSupply bool public revealed; /// ======================== Mappings ======================== //checks the number of tokens minted mapping(address => uint256) public userToTokensMinted; /// ======================== Initializer ======================== function initialize( bytes32 vhash, string memory _baseTokenUri, string memory _hiddenMetadataUri, uint256 _reserveSupply, uint256 _maxUserMintLimit, uint256 _maxSupply, uint256 _whitelistFee, address _gnosisWallet ) initializer public { __ERC721_init("xtraDappNFT", "XDN"); __ERC721Enumerable_init(); __ERC721URIStorage_init(); __Pausable_init(); __AccessControl_init(); __UUPSUpgradeable_init(); __ReentrancyGuard_init(); __DefaultOperatorFilterer_init(); _setRoleAdmin(MANAGER_ROLE, DEFAULT_ADMIN_ROLE);//only default admin can add admin _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); _setupRole(UPGRADER_ROLE, _msgSender()); V_hash = keccak256(abi.encode(vhash)); baseTokenUri = _baseTokenUri; hiddenMetadataUri = _hiddenMetadataUri; reserveSupply = _reserveSupply; maxUserMintLimit = _maxUserMintLimit; MAX_SUPPLY = _maxSupply; whitelistFee = _whitelistFee; gnosisWallet = _gnosisWallet; owner = _msgSender(); } /// ======================== Events ======================== event updatedWhitelistRoot(bytes32 _merkleRoot); event updatedVerifiedRoot(bytes32 _merkleRoot); event updatedBaseURI(string _newBaseURI); event updatedWhitelistFee(uint256 newPrice); event updatedReserve(uint256 newAmount); event updatedMaxUserMintLimit(uint256 newAmount); event updatedGnosisAddr(address newAddr); event toggledPublicSale(bool); event TokenIds(uint256[] id); event claimMinted(uint256 mintAmt, uint256 feePaid); event reserveMinted(uint256 mintAmt, address to); event whitelistMinted(uint256 mintAmt, uint256 feePaid); event OwnershipTransferred(address previousOwner, address newOwner); /// ======================== Error Handling ======================== error URIQueryForNonexistentToken(); error MaxSupplyReached(); error unauthorizedAccess(); /// ======================== Mint Methods ======================== function mintAction(string memory _uri ) internal{ _tokenIdCounter.increment(); uint256 tokenId = _tokenIdCounter.current(); _safeMint(msg.sender, tokenId); _setTokenURI(tokenId,_uri); } ///@notice can by called by multiple admins function reserveMint(address to, uint256[] calldata _id) external onlyRole(MANAGER_ROLE){ uint256[] memory id = _id; require (teamReserve == false,"team already reserved"); //cannot mint more than once require(msg.sender == tx.origin, "Contract call"); require(totalSupply() + reserveSupply <= MAX_SUPPLY,"Exceeded total supply"); userToTokensMinted[to] = reserveSupply; teamReserve = true; uint8 _index = 0; //loop through multiple random token mint for(uint256 i = 1; i <= reserveSupply; i++){ uri = string.concat(baseTokenUri, Strings.toString(id[_index]), ".json"); mintAction(uri); _index++; } emit reserveMinted(reserveSupply,to); } function whitelistMint(uint256 amount,bytes32 _key,uint256[] calldata _id) external payable { uint256 whitelistPrice = whitelistFee * amount; require(msg.value == whitelistPrice,"Incorrect mint fee"); require(msg.sender == tx.origin, "Contract call"); userToTokensMinted[msg.sender] += amount; require(totalSupply() + amount <= MAX_SUPPLY,"Low supply"); require(amount <= maxUserMintLimit && userToTokensMinted[msg.sender] <= maxUserMintLimit, "User limit reached"); bytes32 key =keccak256(abi.encode(_key)); uint256[] memory id = _id; uint8 _index = 0; for(uint256 i = 1; i <= amount; i++){ uri = string.concat(baseTokenUri, Strings.toString(id[_index]), ".json"); if(publicSale == false && key == V_hash){ mintAction(uri); _index++; } else if (publicSale) { mintAction(uri); _index++; } else{ revert unauthorizedAccess(); } } emit whitelistMinted(amount,whitelistPrice); } /// ======================== Update States ======================== function updateBaseUri(string memory _baseTokenUri) external onlyRole(MANAGER_ROLE){ baseTokenUri = _baseTokenUri; emit updatedBaseURI(_baseTokenUri); } function updateHiddenUri(string memory newHiddenUri) external onlyRole(MANAGER_ROLE){ hiddenMetadataUri = newHiddenUri; emit updatedBaseURI(newHiddenUri); } function updateVerifiedRoot(bytes32 vhash) external onlyRole(MANAGER_ROLE){ V_hash = vhash; emit updatedVerifiedRoot(vhash); } function updatewhitelistFee(uint256 newPrice) external onlyRole(MANAGER_ROLE){ whitelistFee = newPrice; emit updatedWhitelistFee(newPrice); } function togglePublicSale() external onlyRole(MANAGER_ROLE){ publicSale = !publicSale; emit toggledPublicSale(!publicSale); } function UpdateReserveAmount(uint256 newAmount) external onlyRole(MANAGER_ROLE){ reserveSupply = newAmount; emit updatedReserve(newAmount); } function updateMaxUserMintLimit(uint256 newAmount) external onlyRole(MANAGER_ROLE){ maxUserMintLimit = newAmount; emit updatedMaxUserMintLimit(newAmount); } function updateGnosisAddress(address newAddr) external onlyRole(DEFAULT_ADMIN_ROLE){ gnosisWallet = newAddr; emit updatedGnosisAddr(newAddr); } /// ======================== Access Control ======================== /// @dev Add an account to the admin role. Restricted to admins. function addAsManager(address account) external onlyRole(DEFAULT_ADMIN_ROLE) { require(hasRole(MANAGER_ROLE,account) == false,"Already a manager"); _grantRole(MANAGER_ROLE, account); } function addAsDefaultAdmin(address account) external onlyRole(DEFAULT_ADMIN_ROLE) { require(hasRole(DEFAULT_ADMIN_ROLE,account) == false,"Already a default admin"); _grantRole(DEFAULT_ADMIN_ROLE, account); } // Create a bool check to see if a account address has the role admin function isAdmin(address account) external view returns(bool) { return hasRole(MANAGER_ROLE, account); } function isDefaultAdmin(address account) external view returns(bool) { return hasRole(DEFAULT_ADMIN_ROLE, account); } /// ======================== Contract Funds ======================== function getBalance() onlyRole(MANAGER_ROLE) public view returns(uint256) { return address(this).balance; } function withdraw() onlyRole(DEFAULT_ADMIN_ROLE) nonReentrant external returns(bool){ (bool sent,) = payable(gnosisWallet).call{value: getBalance()}(""); require(sent,"Ether not sent:failed transaction"); return true; } /// ======================== Contract Control ======================== function pause() external onlyRole(DEFAULT_ADMIN_ROLE) { _pause(); } function unpause() external onlyRole(DEFAULT_ADMIN_ROLE){ _unpause(); } /** * @dev Allows the current owner to transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */ function transferOwnership(address newOwner) external onlyRole(DEFAULT_ADMIN_ROLE) { require(msg.sender == owner,"only contract owner call"); require(newOwner != address(0),"not address zero"); owner = newOwner; emit OwnershipTransferred(owner, newOwner); } function getTokensByAddress(address _owner) external view returns(uint256[] memory){ uint256 balance = balanceOf(_owner); uint[] memory tokenIds =new uint256[](balance); for(uint256 i=0; i < balance; i++){ uint256 tokenId = tokenOfOwnerByIndex(_owner, i); tokenIds[i] = tokenId; } return(tokenIds); } /// ======================== Solidity Overrides ======================== function _beforeTokenTransfer(address from, address to, uint256 tokenId, uint256 batchSize) internal whenNotPaused override(ERC721Upgradeable, ERC721EnumerableUpgradeable) { super._beforeTokenTransfer(from, to, tokenId, batchSize); } function _authorizeUpgrade(address newImplementation) internal onlyRole(UPGRADER_ROLE) override {} /** * @notice Sets the reveal state * @param _state the reveal state on/off */ function setRevealed(bool _state) external onlyRole(DEFAULT_ADMIN_ROLE) { revealed = _state; } // ====================================== Burn =================================== function _burn(uint256 tokenId) internal override(ERC721Upgradeable, ERC721URIStorageUpgradeable) { super._burn(tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721Upgradeable, ERC721URIStorageUpgradeable) returns (string memory) { if (revealed == false) { return hiddenMetadataUri; } return super.tokenURI(tokenId); } /** * @dev See {IERC721-setApprovalForAll}. * In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry. */ function setApprovalForAll(address operator, bool approved) public override(ERC721Upgradeable, IERC721Upgradeable) onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } /** * @dev See {IERC721-approve}. * In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry. */ function approve(address operator, uint256 tokenId) public override(ERC721Upgradeable, IERC721Upgradeable) onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } /** * @dev See {IERC721-transferFrom}. * In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry. */ function transferFrom(address from, address to, uint256 tokenId) public override(ERC721Upgradeable, IERC721Upgradeable) onlyAllowedOperator(from) { super.transferFrom(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. * In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry. */ function safeTransferFrom(address from, address to, uint256 tokenId) public override(ERC721Upgradeable, IERC721Upgradeable) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. * In this example the added modifier ensures that the operator is allowed by the OperatorFilterRegistry. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override(ERC721Upgradeable, IERC721Upgradeable) onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, data); } function supportsInterface(bytes4 interfaceId) public view override(ERC721URIStorageUpgradeable,ERC721EnumerableUpgradeable, AccessControlUpgradeable) returns (bool) { return super.supportsInterface(interfaceId); } function _beforeConsecutiveTokenTransfer( address from, address to, uint256, uint96 size ) internal {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"name":"MaxSupplyReached","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"unauthorizedAccess","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_toTokenId","type":"uint256"}],"name":"BatchMetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":false,"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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256[]","name":"id","type":"uint256[]"}],"name":"TokenIds","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"mintAmt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feePaid","type":"uint256"}],"name":"claimMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"mintAmt","type":"uint256"},{"indexed":false,"internalType":"address","name":"to","type":"address"}],"name":"reserveMinted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"","type":"bool"}],"name":"toggledPublicSale","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"updatedBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newAddr","type":"address"}],"name":"updatedGnosisAddr","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"updatedMaxUserMintLimit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"updatedReserve","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"updatedVerifiedRoot","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"updatedWhitelistFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"updatedWhitelistRoot","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"mintAmt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"feePaid","type":"uint256"}],"name":"whitelistMinted","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UPGRADER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"UpdateReserveAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addAsDefaultAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addAsManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenUri","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"getTokensByAddress","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gnosisWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenMetadataUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"vhash","type":"bytes32"},{"internalType":"string","name":"_baseTokenUri","type":"string"},{"internalType":"string","name":"_hiddenMetadataUri","type":"string"},{"internalType":"uint256","name":"_reserveSupply","type":"uint256"},{"internalType":"uint256","name":"_maxUserMintLimit","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_whitelistFee","type":"uint256"},{"internalType":"address","name":"_gnosisWallet","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isDefaultAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxUserMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"_id","type":"uint256[]"}],"name":"reserveMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveSupply","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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","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":[],"name":"teamReserve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseTokenUri","type":"string"}],"name":"updateBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddr","type":"address"}],"name":"updateGnosisAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newHiddenUri","type":"string"}],"name":"updateHiddenUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"updateMaxUserMintLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"vhash","type":"bytes32"}],"name":"updateVerifiedRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"updatewhitelistFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userToTokensMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"_key","type":"bytes32"},{"internalType":"uint256[]","name":"_id","type":"uint256[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523060805234801561001457600080fd5b50608051614ade61004c600039600081816111d501528181611215015281816114c10152818161150101526116230152614ade6000f3fe6080604052600436106103ad5760003560e01c8063536add65116101e7578063a217fddf1161010d578063e0a80853116100a0578063f2fde38b1161006f578063f2fde38b14610ad0578063f72c0d8b14610af0578063f7377f0014610b24578063fdfa81f514610b3b57600080fd5b8063e0a8085314610a30578063e222c7f914610a50578063e985e9c514610a65578063ec87621c14610aae57600080fd5b8063b88d4fde116100dc578063b88d4fde146109b0578063c87b56dd146109d0578063d547741f146109f0578063d7ffd18214610a1057600080fd5b8063a217fddf14610946578063a22cb4651461095b578063a45ba8e71461097b578063a49980311461099057600080fd5b80637a0101a2116101855780638a65b381116101545780638a65b381146108d05780638da5cb5b146108f057806391d148541461091157806395d89b411461093157600080fd5b80637a0101a2146108735780638456cb591461088857806387e2e12d1461089d57806388348a12146108b057600080fd5b80635c975abb116101c15780635c975abb146107ec5780636352211e1461080557806370a082311461082557806372e88fc71461084557600080fd5b8063536add651461078b578063587acf9c146107ac578063592aad4a146107cc57600080fd5b806332cb6b0c116102d75780633f897e351161026a5780634f1ef286116102395780634f1ef286146107225780634f6ccce714610735578063518302271461075557806352d1902d1461077657600080fd5b80633f897e35146106a257806342842e0e146106c25780634287f14a146106e257806342c0f2491461070257600080fd5b806339f7e37f116102a657806339f7e37f146106415780633ccfd60b146106615780633dd69636146106765780633f4ba83a1461068d57600080fd5b806332cb6b0c146105cf57806333bc1c5c146105e657806336568abe146106015780633659cfe61461062157600080fd5b8063095ea7b31161034f578063248a9ca31161031e578063248a9ca31461053f57806324d7806c1461056f5780632f2ff15d1461058f5780632f745c59146105af57600080fd5b8063095ea7b3146104d557806312065fe0146104f557806318160ddd1461050a57806323b872dd1461051f57600080fd5b806305e1ecb51161038b57806305e1ecb51461042e57806306fdde031461044e57806307ca364514610470578063081812fc1461049d57600080fd5b806301ffc9a7146103b257806303d41eb6146103e7578063047318b41461040c575b600080fd5b3480156103be57600080fd5b506103d26103cd366004613f41565b610b5b565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b506103fe6101fc5481565b6040519081526020016103de565b34801561041857600080fd5b5061042c610427366004613f7a565b610b6c565b005b34801561043a57600080fd5b5061042c610449366004613fe0565b610be3565b34801561045a57600080fd5b50610463610eb6565b6040516103de9190614082565b34801561047c57600080fd5b5061049061048b366004613f7a565b610f48565b6040516103de9190614095565b3480156104a957600080fd5b506104bd6104b83660046140d9565b610fef565b6040516001600160a01b0390911681526020016103de565b3480156104e157600080fd5b5061042c6104f03660046140f2565b611016565b34801561050157600080fd5b506103fe61102f565b34801561051657600080fd5b5060fd546103fe565b34801561052b57600080fd5b5061042c61053a36600461411c565b611051565b34801561054b57600080fd5b506103fe61055a3660046140d9565b600090815260c9602052604090206001015490565b34801561057b57600080fd5b506103d261058a366004613f7a565b61107c565b34801561059b57600080fd5b5061042c6105aa366004614158565b611096565b3480156105bb57600080fd5b506103fe6105ca3660046140f2565b6110bb565b3480156105db57600080fd5b506103fe6101f95481565b3480156105f257600080fd5b50610200546103d29060ff1681565b34801561060d57600080fd5b5061042c61061c366004614158565b611151565b34801561062d57600080fd5b5061042c61063c366004613f7a565b6111cb565b34801561064d57600080fd5b5061042c61065c366004614226565b6112aa565b34801561066d57600080fd5b506103d261130b565b34801561068257600080fd5b506103fe6101fb5481565b34801561069957600080fd5b5061042c6113e3565b3480156106ae57600080fd5b5061042c6106bd3660046140d9565b6113f6565b3480156106ce57600080fd5b5061042c6106dd36600461411c565b611444565b3480156106ee57600080fd5b50610200546103d290610100900460ff1681565b34801561070e57600080fd5b5061042c61071d3660046140d9565b611469565b61042c61073036600461425a565b6114b7565b34801561074157600080fd5b506103fe6107503660046140d9565b611583565b34801561076157600080fd5b50610200546103d29062010000900460ff1681565b34801561078257600080fd5b506103fe611616565b34801561079757600080fd5b506101f7546104bd906001600160a01b031681565b3480156107b857600080fd5b5061042c6107c7366004613f7a565b6116c9565b3480156107d857600080fd5b506103d26107e7366004613f7a565b611723565b3480156107f857600080fd5b5061012d5460ff166103d2565b34801561081157600080fd5b506104bd6108203660046140d9565b61172f565b34801561083157600080fd5b506103fe610840366004613f7a565b61178f565b34801561085157600080fd5b506103fe610860366004613f7a565b6102016020526000908152604090205481565b34801561087f57600080fd5b50610463611815565b34801561089457600080fd5b5061042c6118a4565b61042c6108ab3660046142a7565b6118b7565b3480156108bc57600080fd5b5061042c6108cb3660046142f9565b611bb0565b3480156108dc57600080fd5b5061042c6108eb3660046140d9565b611e16565b3480156108fc57600080fd5b506101f8546104bd906001600160a01b031681565b34801561091d57600080fd5b506103d261092c366004614158565b611e64565b34801561093d57600080fd5b50610463611e8f565b34801561095257600080fd5b506103fe600081565b34801561096757600080fd5b5061042c6109763660046143ab565b611e9e565b34801561098757600080fd5b50610463611eb2565b34801561099c57600080fd5b5061042c6109ab366004614226565b611ec0565b3480156109bc57600080fd5b5061042c6109cb3660046143e2565b611ee5565b3480156109dc57600080fd5b506104636109eb3660046140d9565b611f12565b3480156109fc57600080fd5b5061042c610a0b366004614158565b611fc7565b348015610a1c57600080fd5b5061042c610a2b3660046140d9565b611fec565b348015610a3c57600080fd5b5061042c610a4b366004614449565b61203a565b348015610a5c57600080fd5b5061042c612063565b348015610a7157600080fd5b506103d2610a80366004614466565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b348015610aba57600080fd5b506103fe600080516020614a6283398151915281565b348015610adc57600080fd5b5061042c610aeb366004613f7a565b6120c9565b348015610afc57600080fd5b506103fe7fa615a8afb6fffcb8c6809ac0997b5c9c12b8cc97651150f14c8f6203168cff4c81565b348015610b3057600080fd5b506103fe6101fa5481565b348015610b4757600080fd5b5061042c610b56366004613f7a565b6121ce565b6000610b668261224a565b92915050565b6000610b778161226f565b610b82600083611e64565b15610bd45760405162461bcd60e51b815260206004820152601760248201527f416c726561647920612064656661756c742061646d696e00000000000000000060448201526064015b60405180910390fd5b610bdf600083612279565b5050565b600080516020614a62833981519152610bfb8161226f565b600083838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050610200549293505050610100900460ff1615610c845760405162461bcd60e51b81526020600482015260156024820152741d19585b48185b1c9958591e481c995cd95c9d9959605a1b6044820152606401610bcb565b333214610cc35760405162461bcd60e51b815260206004820152600d60248201526c10dbdb9d1c9858dd0818d85b1b609a1b6044820152606401610bcb565b6101f9546101fc5460fd54610cd891906144a6565b1115610d1e5760405162461bcd60e51b8152602060048201526015602482015274457863656564656420746f74616c20737570706c7960581b6044820152606401610bcb565b6101fc546001600160a01b03861660009081526102016020526040812091909155610200805461ff00191661010017905560015b6101fc548111610e68576101fd610d84848460ff1681518110610d7757610d776144b9565b60200260200101516122ff565b604051602001610d95929190614509565b6040516020818303038152906040526101ff9081610db391906145e6565b50610e486101ff8054610dc5906144cf565b80601f0160208091040260200160405190810160405280929190818152602001828054610df1906144cf565b8015610e3e5780601f10610e1357610100808354040283529160200191610e3e565b820191906000526020600020905b815481529060010190602001808311610e2157829003601f168201915b5050505050612391565b81610e52816146a5565b9250508080610e60906146c4565b915050610d52565b506101fc54604080519182526001600160a01b03881660208301527f5c337245cb1592a9cdeae01be11927ca57105000608d31f3c3d6c871b5f9dc56910160405180910390a1505050505050565b606060658054610ec5906144cf565b80601f0160208091040260200160405190810160405280929190818152602001828054610ef1906144cf565b8015610f3e5780601f10610f1357610100808354040283529160200191610f3e565b820191906000526020600020905b815481529060010190602001808311610f2157829003601f168201915b5050505050905090565b60606000610f558361178f565b90506000816001600160401b03811115610f7157610f71614184565b604051908082528060200260200182016040528015610f9a578160200160208202803683370190505b50905060005b82811015610fe7576000610fb486836110bb565b905080838381518110610fc957610fc96144b9565b60209081029190910101525080610fdf816146c4565b915050610fa0565b509392505050565b6000610ffa826123c2565b506000908152606960205260409020546001600160a01b031690565b8161102081612421565b61102a83836124da565b505050565b6000600080516020614a628339815191526110498161226f565b4791505b5090565b826001600160a01b038116331461106b5761106b33612421565b6110768484846125ea565b50505050565b6000610b66600080516020614a6283398151915283611e64565b600082815260c960205260409020600101546110b18161226f565b61102a8383612279565b60006110c68361178f565b82106111285760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610bcb565b506001600160a01b0391909116600090815260fb60209081526040808320938352929052205490565b6001600160a01b03811633146111c15760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610bcb565b610bdf828261261b565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036112135760405162461bcd60e51b8152600401610bcb906146dd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661125c600080516020614a42833981519152546001600160a01b031690565b6001600160a01b0316146112825760405162461bcd60e51b8152600401610bcb90614729565b61128b81612682565b604080516000808252602082019092526112a7918391906126ac565b50565b600080516020614a628339815191526112c28161226f565b6101fd6112cf83826145e6565b507f7df317cf8db42e968026594b08be1e33475691d3946ff95855c778ebff789cd9826040516112ff9190614082565b60405180910390a15050565b6000806113178161226f565b61131f612817565b6101f7546000906001600160a01b031661133761102f565b604051600081818185875af1925050503d8060008114611373576040519150601f19603f3d011682016040523d82523d6000602084013e611378565b606091505b50509050806113d35760405162461bcd60e51b815260206004820152602160248201527f4574686572206e6f742073656e743a6661696c6564207472616e73616374696f6044820152603760f91b6064820152608401610bcb565b600192505061104d600161015f55565b60006113ee8161226f565b6112a761287a565b600080516020614a6283398151915261140e8161226f565b6101fa8290556040518281527f5d57e999a55e21a73ce0ec6de844392e6c294968766cfb0ef1ca58d5279bb6eb906020016112ff565b826001600160a01b038116331461145e5761145e33612421565b6110768484846128cd565b600080516020614a628339815191526114818161226f565b6101fc8290556040518281527f41f6187241595bc2853ac13c2f3df88fab9eceffe778304bad6e3d7c0ab66f5d906020016112ff565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036114ff5760405162461bcd60e51b8152600401610bcb906146dd565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316611548600080516020614a42833981519152546001600160a01b031690565b6001600160a01b03161461156e5760405162461bcd60e51b8152600401610bcb90614729565b61157782612682565b610bdf828260016126ac565b600061158e60fd5490565b82106115f15760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610bcb565b60fd8281548110611604576116046144b9565b90600052602060002001549050919050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146116b65760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610bcb565b50600080516020614a4283398151915290565b60006116d48161226f565b6101f780546001600160a01b0319166001600160a01b0384169081179091556040519081527f83cd881e815205e1bd8a8f8679112d7c0314bd047bc6267374baa3f1439e8130906020016112ff565b6000610b668183611e64565b6000818152606760205260408120546001600160a01b031680610b665760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610bcb565b60006001600160a01b0382166117f95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610bcb565b506001600160a01b031660009081526068602052604090205490565b6101fd8054611823906144cf565b80601f016020809104026020016040519081016040528092919081815260200182805461184f906144cf565b801561189c5780601f106118715761010080835404028352916020019161189c565b820191906000526020600020905b81548152906001019060200180831161187f57829003601f168201915b505050505081565b60006118af8161226f565b6112a76128e8565b6000846101fb546118c89190614775565b905080341461190e5760405162461bcd60e51b8152602060048201526012602482015271496e636f7272656374206d696e742066656560701b6044820152606401610bcb565b33321461194d5760405162461bcd60e51b815260206004820152600d60248201526c10dbdb9d1c9858dd0818d85b1b609a1b6044820152606401610bcb565b33600090815261020160205260408120805487929061196d9084906144a6565b90915550506101f9548561198060fd5490565b61198a91906144a6565b11156119c55760405162461bcd60e51b815260206004820152600a6024820152694c6f7720737570706c7960b01b6044820152606401610bcb565b6101fa5485111580156119eb57506101fa54336000908152610201602052604090205411155b611a2c5760405162461bcd60e51b8152602060048201526012602482015271155cd95c881b1a5b5a5d081c995858da195960721b6044820152606401610bcb565b600084604051602001611a4191815260200190565b604051602081830303815290604052805190602001209050600084848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052509394506001925050505b888111611b6c576101fd611ab6848460ff1681518110610d7757610d776144b9565b604051602001611ac7929190614509565b6040516020818303038152906040526101ff9081611ae591906145e6565b506102005460ff16158015611afc57506101f65484145b15611b2457611b126101ff8054610dc5906144cf565b81611b1c816146a5565b925050611b5a565b6102005460ff1615611b4157611b126101ff8054610dc5906144cf565b60405163be7dcdb760e01b815260040160405180910390fd5b80611b64816146c4565b915050611a94565b5060408051898152602081018690527f2605fb60b2a9434c8435cd53521ff0d794906adbe1f29ba61adcea568b3cf4e4910160405180910390a15050505050505050565b600054610100900460ff1615808015611bd05750600054600160ff909116105b80611bea5750303b158015611bea575060005460ff166001145b611c4d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610bcb565b6000805460ff191660011790558015611c70576000805461ff0019166101001790555b611cb86040518060400160405280600b81526020016a1e1d1c9851185c1c13919560aa1b815250604051806040016040528060038152602001622c222760e91b815250612926565b611cc0612957565b611cc8612957565b611cd0612980565b611cd8612957565b611ce0612957565b611ce86129af565b611cf06129de565b611d09600080516020614a628339815191526000612a24565b611d14600033612a6f565b611d3e7fa615a8afb6fffcb8c6809ac0997b5c9c12b8cc97651150f14c8f6203168cff4c33612a6f565b60408051602081018b90520160408051601f1981840301815291905280516020909101206101f6556101fd611d7389826145e6565b506101fe611d8188826145e6565b506101fc8690556101fa8590556101f98490556101fb8390556101f780546001600160a01b0384166001600160a01b0319918216179091556101f88054909116331790558015611e0b576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050505050565b600080516020614a62833981519152611e2e8161226f565b6101f68290556040518281527fbdaa9e15f041222c075b260bb970da2192e82bbb0c81f5314040bcb58e44c1d5906020016112ff565b600091825260c9602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060668054610ec5906144cf565b81611ea881612421565b61102a8383612a79565b6101fe8054611823906144cf565b600080516020614a62833981519152611ed88161226f565b6101fe6112cf83826145e6565b836001600160a01b0381163314611eff57611eff33612421565b611f0b85858585612a84565b5050505050565b6102005460609062010000900460ff161515600003611fbe576101fe8054611f39906144cf565b80601f0160208091040260200160405190810160405280929190818152602001828054611f65906144cf565b8015611fb25780601f10611f8757610100808354040283529160200191611fb2565b820191906000526020600020905b815481529060010190602001808311611f9557829003601f168201915b50505050509050919050565b610b6682612ab6565b600082815260c96020526040902060010154611fe28161226f565b61102a838361261b565b600080516020614a628339815191526120048161226f565b6101fb8290556040518281527f8b9aa33676ea747a9ea00fd09b02e44e115149aac179a4ebc8f0930e3c0ee8ce906020016112ff565b60006120458161226f565b506102008054911515620100000262ff000019909216919091179055565b600080516020614a6283398151915261207b8161226f565b610200805460ff8082161560ff19909216821790925560405191161581527f634498e690b16aa29a900a5842781167d5054372066f68acb750015531ee01da9060200160405180910390a150565b60006120d48161226f565b6101f8546001600160a01b0316331461212f5760405162461bcd60e51b815260206004820152601860248201527f6f6e6c7920636f6e7472616374206f776e65722063616c6c00000000000000006044820152606401610bcb565b6001600160a01b0382166121785760405162461bcd60e51b815260206004820152601060248201526f6e6f742061646472657373207a65726f60801b6044820152606401610bcb565b6101f880546001600160a01b0319166001600160a01b0384169081179091556040805182815260208101929092527f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091016112ff565b60006121d98161226f565b6121f1600080516020614a6283398151915283611e64565b156122325760405162461bcd60e51b815260206004820152601160248201527020b63932b0b23c90309036b0b730b3b2b960791b6044820152606401610bcb565b610bdf600080516020614a6283398151915283612279565b60006001600160e01b0319821663780e9d6360e01b1480610b665750610b6682612bc6565b6112a78133612beb565b6122838282611e64565b610bdf57600082815260c9602090815260408083206001600160a01b03851684529091529020805460ff191660011790556122bb3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6060600061230c83612c44565b60010190506000816001600160401b0381111561232b5761232b614184565b6040519080825280601f01601f191660200182016040528015612355576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461235f57509392505050565b6123a06101f580546001019055565b60006123ac6101f55490565b90506123b83382612d1c565b610bdf8183612d36565b6000818152606760205260409020546001600160a01b03166112a75760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610bcb565b6daaeb6d7670e522a718067333cd4e3b156112a757604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561248e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124b2919061478c565b6112a757604051633b79c77360e21b81526001600160a01b0382166004820152602401610bcb565b60006124e58261172f565b9050806001600160a01b0316836001600160a01b0316036125525760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bcb565b336001600160a01b038216148061256e575061256e8133610a80565b6125e05760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610bcb565b61102a8383612dfa565b6125f43382612e68565b6126105760405162461bcd60e51b8152600401610bcb906147a9565b61102a838383612ee6565b6126258282611e64565b15610bdf57600082815260c9602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b7fa615a8afb6fffcb8c6809ac0997b5c9c12b8cc97651150f14c8f6203168cff4c610bdf8161226f565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156126df5761102a83613057565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015612739575060408051601f3d908101601f19168201909252612736918101906147f6565b60015b61279c5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610bcb565b600080516020614a42833981519152811461280b5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610bcb565b5061102a8383836130f3565b600261015f540361286a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bcb565b600261015f55565b600161015f55565b612882613118565b61012d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b61102a83838360405180602001604052806000815250611ee5565b6128f0613162565b61012d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586128b03390565b600054610100900460ff1661294d5760405162461bcd60e51b8152600401610bcb9061480f565b610bdf82826131a9565b600054610100900460ff1661297e5760405162461bcd60e51b8152600401610bcb9061480f565b565b600054610100900460ff166129a75760405162461bcd60e51b8152600401610bcb9061480f565b61297e6131e9565b600054610100900460ff166129d65760405162461bcd60e51b8152600401610bcb9061480f565b61297e61321d565b600054610100900460ff16612a055760405162461bcd60e51b8152600401610bcb9061480f565b61297e733cc6cdda760b79bafa08df41ecfa224f810dceb66001613244565b600082815260c96020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b610bdf8282612279565b610bdf3383836133eb565b612a8e3383612e68565b612aaa5760405162461bcd60e51b8152600401610bcb906147a9565b611076848484846134b9565b6060612ac1826123c2565b60008281526097602052604081208054612ada906144cf565b80601f0160208091040260200160405190810160405280929190818152602001828054612b06906144cf565b8015612b535780601f10612b2857610100808354040283529160200191612b53565b820191906000526020600020905b815481529060010190602001808311612b3657829003601f168201915b505050505090506000612b7160408051602081019091526000815290565b90508051600003612b83575092915050565b815115612bb5578082604051602001612b9d92919061485a565b60405160208183030381529060405292505050919050565b612bbe846134ec565b949350505050565b60006001600160e01b03198216637965db0b60e01b1480610b665750610b6682613560565b612bf58282611e64565b610bdf57612c0281613585565b612c0d836020613597565b604051602001612c1e929190614889565b60408051601f198184030181529082905262461bcd60e51b8252610bcb91600401614082565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612c835772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612caf576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612ccd57662386f26fc10000830492506010015b6305f5e1008310612ce5576305f5e100830492506008015b6127108310612cf957612710830492506004015b60648310612d0b576064830492506002015b600a8310610b665760010192915050565b610bdf828260405180602001604052806000815250613732565b6000828152606760205260409020546001600160a01b0316612db15760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610bcb565b6000828152609760205260409020612dc982826145e6565b506040518281527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce7906020016112ff565b600081815260696020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612e2f8261172f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612e748361172f565b9050806001600160a01b0316846001600160a01b03161480612ebb57506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b80612bbe5750836001600160a01b0316612ed484610fef565b6001600160a01b031614949350505050565b826001600160a01b0316612ef98261172f565b6001600160a01b031614612f1f5760405162461bcd60e51b8152600401610bcb906148fe565b6001600160a01b038216612f815760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bcb565b612f8e8383836001613765565b826001600160a01b0316612fa18261172f565b6001600160a01b031614612fc75760405162461bcd60e51b8152600401610bcb906148fe565b600081815260696020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260688552838620805460001901905590871680865283862080546001019055868652606790945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0381163b6130c45760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610bcb565b600080516020614a4283398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6130fc83613779565b6000825111806131095750805b1561102a5761107683836137b9565b61012d5460ff1661297e5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610bcb565b61012d5460ff161561297e5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610bcb565b600054610100900460ff166131d05760405162461bcd60e51b8152600401610bcb9061480f565b60656131dc83826145e6565b50606661102a82826145e6565b600054610100900460ff166132105760405162461bcd60e51b8152600401610bcb9061480f565b61012d805460ff19169055565b600054610100900460ff166128725760405162461bcd60e51b8152600401610bcb9061480f565b600054610100900460ff1661326b5760405162461bcd60e51b8152600401610bcb9061480f565b6daaeb6d7670e522a718067333cd4e3b15610bdf5760405163c3c5a54760e01b81523060048201526daaeb6d7670e522a718067333cd4e9063c3c5a547906024016020604051808303816000875af11580156132cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132ef919061478c565b610bdf57801561336b57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b15801561334f57600080fd5b505af1158015613363573d6000803e3d6000fd5b505050505050565b6001600160a01b038216156133ba5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401613335565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401613335565b816001600160a01b0316836001600160a01b03160361344c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bcb565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6134c4848484612ee6565b6134d0848484846137de565b6110765760405162461bcd60e51b8152600401610bcb90614943565b60606134f7826123c2565b600061350e60408051602081019091526000815290565b9050600081511161352e5760405180602001604052806000815250613559565b80613538846138df565b60405160200161354992919061485a565b6040516020818303038152906040525b9392505050565b60006001600160e01b03198216632483248360e11b1480610b665750610b668261396f565b6060610b666001600160a01b03831660145b606060006135a6836002614775565b6135b19060026144a6565b6001600160401b038111156135c8576135c8614184565b6040519080825280601f01601f1916602001820160405280156135f2576020820181803683370190505b509050600360fc1b8160008151811061360d5761360d6144b9565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061363c5761363c6144b9565b60200101906001600160f81b031916908160001a9053506000613660846002614775565b61366b9060016144a6565b90505b60018111156136e3576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061369f5761369f6144b9565b1a60f81b8282815181106136b5576136b56144b9565b60200101906001600160f81b031916908160001a90535060049490941c936136dc81614995565b905061366e565b5083156135595760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610bcb565b61373c83836139bf565b61374960008484846137de565b61102a5760405162461bcd60e51b8152600401610bcb90614943565b61376d613162565b61107684848484613b58565b61378281613057565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606135598383604051806060016040528060278152602001614a8260279139613c85565b60006001600160a01b0384163b156138d457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906138229033908990889088906004016149ac565b6020604051808303816000875af192505050801561385d575060408051601f3d908101601f1916820190925261385a918101906149df565b60015b6138ba573d80801561388b576040519150601f19603f3d011682016040523d82523d6000602084013e613890565b606091505b5080516000036138b25760405162461bcd60e51b8152600401610bcb90614943565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612bbe565b506001949350505050565b606060006138ec83612c44565b60010190506000816001600160401b0381111561390b5761390b614184565b6040519080825280601f01601f191660200182016040528015613935576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508415610fe75761393f565b60006001600160e01b031982166380ac58cd60e01b14806139a057506001600160e01b03198216635b5e139f60e01b145b80610b6657506301ffc9a760e01b6001600160e01b0319831614610b66565b6001600160a01b038216613a155760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bcb565b6000818152606760205260409020546001600160a01b031615613a7a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bcb565b613a88600083836001613765565b6000818152606760205260409020546001600160a01b031615613aed5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bcb565b6001600160a01b038216600081815260686020908152604080832080546001019055848352606790915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001811115613bc75760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b6064820152608401610bcb565b816001600160a01b038516613c2357613c1e8160fd8054600083815260fe60205260408120829055600182018355919091527f9346ac6dd7de6b96975fec380d4d994c4c12e6a8897544f22915316cc6cca2800155565b613c46565b836001600160a01b0316856001600160a01b031614613c4657613c468582613cfd565b6001600160a01b038416613c6257613c5d81613d9a565b611f0b565b846001600160a01b0316846001600160a01b031614611f0b57611f0b8482613e49565b6060600080856001600160a01b031685604051613ca291906149fc565b600060405180830381855af49150503d8060008114613cdd576040519150601f19603f3d011682016040523d82523d6000602084013e613ce2565b606091505b5091509150613cf386838387613e8d565b9695505050505050565b60006001613d0a8461178f565b613d149190614a18565b600083815260fc6020526040902054909150808214613d67576001600160a01b038416600090815260fb60209081526040808320858452825280832054848452818420819055835260fc90915290208190555b50600091825260fc602090815260408084208490556001600160a01b03909416835260fb81528383209183525290812055565b60fd54600090613dac90600190614a18565b600083815260fe602052604081205460fd8054939450909284908110613dd457613dd46144b9565b906000526020600020015490508060fd8381548110613df557613df56144b9565b600091825260208083209091019290925582815260fe909152604080822084905585825281205560fd805480613e2d57613e2d614a2b565b6001900381819060005260206000200160009055905550505050565b6000613e548361178f565b6001600160a01b03909316600090815260fb60209081526040808320868452825280832085905593825260fc9052919091209190915550565b60608315613efc578251600003613ef5576001600160a01b0385163b613ef55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610bcb565b5081612bbe565b612bbe8383815115613f115781518083602001fd5b8060405162461bcd60e51b8152600401610bcb9190614082565b6001600160e01b0319811681146112a757600080fd5b600060208284031215613f5357600080fd5b813561355981613f2b565b80356001600160a01b0381168114613f7557600080fd5b919050565b600060208284031215613f8c57600080fd5b61355982613f5e565b60008083601f840112613fa757600080fd5b5081356001600160401b03811115613fbe57600080fd5b6020830191508360208260051b8501011115613fd957600080fd5b9250929050565b600080600060408486031215613ff557600080fd5b613ffe84613f5e565b925060208401356001600160401b0381111561401957600080fd5b61402586828701613f95565b9497909650939450505050565b60005b8381101561404d578181015183820152602001614035565b50506000910152565b6000815180845261406e816020860160208601614032565b601f01601f19169290920160200192915050565b6020815260006135596020830184614056565b6020808252825182820181905260009190848201906040850190845b818110156140cd578351835292840192918401916001016140b1565b50909695505050505050565b6000602082840312156140eb57600080fd5b5035919050565b6000806040838503121561410557600080fd5b61410e83613f5e565b946020939093013593505050565b60008060006060848603121561413157600080fd5b61413a84613f5e565b925061414860208501613f5e565b9150604084013590509250925092565b6000806040838503121561416b57600080fd5b8235915061417b60208401613f5e565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126141ab57600080fd5b81356001600160401b03808211156141c5576141c5614184565b604051601f8301601f19908116603f011681019082821181831017156141ed576141ed614184565b8160405283815286602085880101111561420657600080fd5b836020870160208301376000602085830101528094505050505092915050565b60006020828403121561423857600080fd5b81356001600160401b0381111561424e57600080fd5b612bbe8482850161419a565b6000806040838503121561426d57600080fd5b61427683613f5e565b915060208301356001600160401b0381111561429157600080fd5b61429d8582860161419a565b9150509250929050565b600080600080606085870312156142bd57600080fd5b843593506020850135925060408501356001600160401b038111156142e157600080fd5b6142ed87828801613f95565b95989497509550505050565b600080600080600080600080610100898b03121561431657600080fd5b8835975060208901356001600160401b038082111561433457600080fd5b6143408c838d0161419a565b985060408b013591508082111561435657600080fd5b506143638b828c0161419a565b965050606089013594506080890135935060a0890135925060c0890135915061438e60e08a01613f5e565b90509295985092959890939650565b80151581146112a757600080fd5b600080604083850312156143be57600080fd5b6143c783613f5e565b915060208301356143d78161439d565b809150509250929050565b600080600080608085870312156143f857600080fd5b61440185613f5e565b935061440f60208601613f5e565b92506040850135915060608501356001600160401b0381111561443157600080fd5b61443d8782880161419a565b91505092959194509250565b60006020828403121561445b57600080fd5b81356135598161439d565b6000806040838503121561447957600080fd5b61448283613f5e565b915061417b60208401613f5e565b634e487b7160e01b600052601160045260246000fd5b80820180821115610b6657610b66614490565b634e487b7160e01b600052603260045260246000fd5b600181811c908216806144e357607f821691505b60208210810361450357634e487b7160e01b600052602260045260246000fd5b50919050565b6000808454614517816144cf565b6001828116801561452f576001811461454457614573565b60ff1984168752821515830287019450614573565b8860005260208060002060005b8581101561456a5781548a820152908401908201614551565b50505082870194505b505050508351614587818360208801614032565b64173539b7b760d91b9101908152600501949350505050565b601f82111561102a57600081815260208120601f850160051c810160208610156145c75750805b601f850160051c820191505b81811015613363578281556001016145d3565b81516001600160401b038111156145ff576145ff614184565b6146138161460d84546144cf565b846145a0565b602080601f83116001811461464857600084156146305750858301515b600019600386901b1c1916600185901b178555613363565b600085815260208120601f198616915b8281101561467757888601518255948401946001909101908401614658565b50858210156146955787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060ff821660ff81036146bb576146bb614490565b60010192915050565b6000600182016146d6576146d6614490565b5060010190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b8082028115828204841417610b6657610b66614490565b60006020828403121561479e57600080fd5b81516135598161439d565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60006020828403121561480857600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6000835161486c818460208801614032565b835190830190614880818360208801614032565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516148c1816017850160208801614032565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516148f2816028840160208801614032565b01602801949350505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000816149a4576149a4614490565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613cf390830184614056565b6000602082840312156149f157600080fd5b815161355981613f2b565b60008251614a0e818460208701614032565b9190910192915050565b81810381811115610b6657610b66614490565b634e487b7160e01b600052603160045260246000fdfe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220184e5494a28565fb289f50a3674e5c3c51975b5e8b60fbc127adf72c2988518c64736f6c63430008130033
Deployed Bytecode
0x6080604052600436106103ad5760003560e01c8063536add65116101e7578063a217fddf1161010d578063e0a80853116100a0578063f2fde38b1161006f578063f2fde38b14610ad0578063f72c0d8b14610af0578063f7377f0014610b24578063fdfa81f514610b3b57600080fd5b8063e0a8085314610a30578063e222c7f914610a50578063e985e9c514610a65578063ec87621c14610aae57600080fd5b8063b88d4fde116100dc578063b88d4fde146109b0578063c87b56dd146109d0578063d547741f146109f0578063d7ffd18214610a1057600080fd5b8063a217fddf14610946578063a22cb4651461095b578063a45ba8e71461097b578063a49980311461099057600080fd5b80637a0101a2116101855780638a65b381116101545780638a65b381146108d05780638da5cb5b146108f057806391d148541461091157806395d89b411461093157600080fd5b80637a0101a2146108735780638456cb591461088857806387e2e12d1461089d57806388348a12146108b057600080fd5b80635c975abb116101c15780635c975abb146107ec5780636352211e1461080557806370a082311461082557806372e88fc71461084557600080fd5b8063536add651461078b578063587acf9c146107ac578063592aad4a146107cc57600080fd5b806332cb6b0c116102d75780633f897e351161026a5780634f1ef286116102395780634f1ef286146107225780634f6ccce714610735578063518302271461075557806352d1902d1461077657600080fd5b80633f897e35146106a257806342842e0e146106c25780634287f14a146106e257806342c0f2491461070257600080fd5b806339f7e37f116102a657806339f7e37f146106415780633ccfd60b146106615780633dd69636146106765780633f4ba83a1461068d57600080fd5b806332cb6b0c146105cf57806333bc1c5c146105e657806336568abe146106015780633659cfe61461062157600080fd5b8063095ea7b31161034f578063248a9ca31161031e578063248a9ca31461053f57806324d7806c1461056f5780632f2ff15d1461058f5780632f745c59146105af57600080fd5b8063095ea7b3146104d557806312065fe0146104f557806318160ddd1461050a57806323b872dd1461051f57600080fd5b806305e1ecb51161038b57806305e1ecb51461042e57806306fdde031461044e57806307ca364514610470578063081812fc1461049d57600080fd5b806301ffc9a7146103b257806303d41eb6146103e7578063047318b41461040c575b600080fd5b3480156103be57600080fd5b506103d26103cd366004613f41565b610b5b565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b506103fe6101fc5481565b6040519081526020016103de565b34801561041857600080fd5b5061042c610427366004613f7a565b610b6c565b005b34801561043a57600080fd5b5061042c610449366004613fe0565b610be3565b34801561045a57600080fd5b50610463610eb6565b6040516103de9190614082565b34801561047c57600080fd5b5061049061048b366004613f7a565b610f48565b6040516103de9190614095565b3480156104a957600080fd5b506104bd6104b83660046140d9565b610fef565b6040516001600160a01b0390911681526020016103de565b3480156104e157600080fd5b5061042c6104f03660046140f2565b611016565b34801561050157600080fd5b506103fe61102f565b34801561051657600080fd5b5060fd546103fe565b34801561052b57600080fd5b5061042c61053a36600461411c565b611051565b34801561054b57600080fd5b506103fe61055a3660046140d9565b600090815260c9602052604090206001015490565b34801561057b57600080fd5b506103d261058a366004613f7a565b61107c565b34801561059b57600080fd5b5061042c6105aa366004614158565b611096565b3480156105bb57600080fd5b506103fe6105ca3660046140f2565b6110bb565b3480156105db57600080fd5b506103fe6101f95481565b3480156105f257600080fd5b50610200546103d29060ff1681565b34801561060d57600080fd5b5061042c61061c366004614158565b611151565b34801561062d57600080fd5b5061042c61063c366004613f7a565b6111cb565b34801561064d57600080fd5b5061042c61065c366004614226565b6112aa565b34801561066d57600080fd5b506103d261130b565b34801561068257600080fd5b506103fe6101fb5481565b34801561069957600080fd5b5061042c6113e3565b3480156106ae57600080fd5b5061042c6106bd3660046140d9565b6113f6565b3480156106ce57600080fd5b5061042c6106dd36600461411c565b611444565b3480156106ee57600080fd5b50610200546103d290610100900460ff1681565b34801561070e57600080fd5b5061042c61071d3660046140d9565b611469565b61042c61073036600461425a565b6114b7565b34801561074157600080fd5b506103fe6107503660046140d9565b611583565b34801561076157600080fd5b50610200546103d29062010000900460ff1681565b34801561078257600080fd5b506103fe611616565b34801561079757600080fd5b506101f7546104bd906001600160a01b031681565b3480156107b857600080fd5b5061042c6107c7366004613f7a565b6116c9565b3480156107d857600080fd5b506103d26107e7366004613f7a565b611723565b3480156107f857600080fd5b5061012d5460ff166103d2565b34801561081157600080fd5b506104bd6108203660046140d9565b61172f565b34801561083157600080fd5b506103fe610840366004613f7a565b61178f565b34801561085157600080fd5b506103fe610860366004613f7a565b6102016020526000908152604090205481565b34801561087f57600080fd5b50610463611815565b34801561089457600080fd5b5061042c6118a4565b61042c6108ab3660046142a7565b6118b7565b3480156108bc57600080fd5b5061042c6108cb3660046142f9565b611bb0565b3480156108dc57600080fd5b5061042c6108eb3660046140d9565b611e16565b3480156108fc57600080fd5b506101f8546104bd906001600160a01b031681565b34801561091d57600080fd5b506103d261092c366004614158565b611e64565b34801561093d57600080fd5b50610463611e8f565b34801561095257600080fd5b506103fe600081565b34801561096757600080fd5b5061042c6109763660046143ab565b611e9e565b34801561098757600080fd5b50610463611eb2565b34801561099c57600080fd5b5061042c6109ab366004614226565b611ec0565b3480156109bc57600080fd5b5061042c6109cb3660046143e2565b611ee5565b3480156109dc57600080fd5b506104636109eb3660046140d9565b611f12565b3480156109fc57600080fd5b5061042c610a0b366004614158565b611fc7565b348015610a1c57600080fd5b5061042c610a2b3660046140d9565b611fec565b348015610a3c57600080fd5b5061042c610a4b366004614449565b61203a565b348015610a5c57600080fd5b5061042c612063565b348015610a7157600080fd5b506103d2610a80366004614466565b6001600160a01b039182166000908152606a6020908152604080832093909416825291909152205460ff1690565b348015610aba57600080fd5b506103fe600080516020614a6283398151915281565b348015610adc57600080fd5b5061042c610aeb366004613f7a565b6120c9565b348015610afc57600080fd5b506103fe7fa615a8afb6fffcb8c6809ac0997b5c9c12b8cc97651150f14c8f6203168cff4c81565b348015610b3057600080fd5b506103fe6101fa5481565b348015610b4757600080fd5b5061042c610b56366004613f7a565b6121ce565b6000610b668261224a565b92915050565b6000610b778161226f565b610b82600083611e64565b15610bd45760405162461bcd60e51b815260206004820152601760248201527f416c726561647920612064656661756c742061646d696e00000000000000000060448201526064015b60405180910390fd5b610bdf600083612279565b5050565b600080516020614a62833981519152610bfb8161226f565b600083838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050610200549293505050610100900460ff1615610c845760405162461bcd60e51b81526020600482015260156024820152741d19585b48185b1c9958591e481c995cd95c9d9959605a1b6044820152606401610bcb565b333214610cc35760405162461bcd60e51b815260206004820152600d60248201526c10dbdb9d1c9858dd0818d85b1b609a1b6044820152606401610bcb565b6101f9546101fc5460fd54610cd891906144a6565b1115610d1e5760405162461bcd60e51b8152602060048201526015602482015274457863656564656420746f74616c20737570706c7960581b6044820152606401610bcb565b6101fc546001600160a01b03861660009081526102016020526040812091909155610200805461ff00191661010017905560015b6101fc548111610e68576101fd610d84848460ff1681518110610d7757610d776144b9565b60200260200101516122ff565b604051602001610d95929190614509565b6040516020818303038152906040526101ff9081610db391906145e6565b50610e486101ff8054610dc5906144cf565b80601f0160208091040260200160405190810160405280929190818152602001828054610df1906144cf565b8015610e3e5780601f10610e1357610100808354040283529160200191610e3e565b820191906000526020600020905b815481529060010190602001808311610e2157829003601f168201915b5050505050612391565b81610e52816146a5565b9250508080610e60906146c4565b915050610d52565b506101fc54604080519182526001600160a01b03881660208301527f5c337245cb1592a9cdeae01be11927ca57105000608d31f3c3d6c871b5f9dc56910160405180910390a1505050505050565b606060658054610ec5906144cf565b80601f0160208091040260200160405190810160405280929190818152602001828054610ef1906144cf565b8015610f3e5780601f10610f1357610100808354040283529160200191610f3e565b820191906000526020600020905b815481529060010190602001808311610f2157829003601f168201915b5050505050905090565b60606000610f558361178f565b90506000816001600160401b03811115610f7157610f71614184565b604051908082528060200260200182016040528015610f9a578160200160208202803683370190505b50905060005b82811015610fe7576000610fb486836110bb565b905080838381518110610fc957610fc96144b9565b60209081029190910101525080610fdf816146c4565b915050610fa0565b509392505050565b6000610ffa826123c2565b506000908152606960205260409020546001600160a01b031690565b8161102081612421565b61102a83836124da565b505050565b6000600080516020614a628339815191526110498161226f565b4791505b5090565b826001600160a01b038116331461106b5761106b33612421565b6110768484846125ea565b50505050565b6000610b66600080516020614a6283398151915283611e64565b600082815260c960205260409020600101546110b18161226f565b61102a8383612279565b60006110c68361178f565b82106111285760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610bcb565b506001600160a01b0391909116600090815260fb60209081526040808320938352929052205490565b6001600160a01b03811633146111c15760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610bcb565b610bdf828261261b565b6001600160a01b037f000000000000000000000000969fa35f20923671049829f2d270d229feea45c11630036112135760405162461bcd60e51b8152600401610bcb906146dd565b7f000000000000000000000000969fa35f20923671049829f2d270d229feea45c16001600160a01b031661125c600080516020614a42833981519152546001600160a01b031690565b6001600160a01b0316146112825760405162461bcd60e51b8152600401610bcb90614729565b61128b81612682565b604080516000808252602082019092526112a7918391906126ac565b50565b600080516020614a628339815191526112c28161226f565b6101fd6112cf83826145e6565b507f7df317cf8db42e968026594b08be1e33475691d3946ff95855c778ebff789cd9826040516112ff9190614082565b60405180910390a15050565b6000806113178161226f565b61131f612817565b6101f7546000906001600160a01b031661133761102f565b604051600081818185875af1925050503d8060008114611373576040519150601f19603f3d011682016040523d82523d6000602084013e611378565b606091505b50509050806113d35760405162461bcd60e51b815260206004820152602160248201527f4574686572206e6f742073656e743a6661696c6564207472616e73616374696f6044820152603760f91b6064820152608401610bcb565b600192505061104d600161015f55565b60006113ee8161226f565b6112a761287a565b600080516020614a6283398151915261140e8161226f565b6101fa8290556040518281527f5d57e999a55e21a73ce0ec6de844392e6c294968766cfb0ef1ca58d5279bb6eb906020016112ff565b826001600160a01b038116331461145e5761145e33612421565b6110768484846128cd565b600080516020614a628339815191526114818161226f565b6101fc8290556040518281527f41f6187241595bc2853ac13c2f3df88fab9eceffe778304bad6e3d7c0ab66f5d906020016112ff565b6001600160a01b037f000000000000000000000000969fa35f20923671049829f2d270d229feea45c11630036114ff5760405162461bcd60e51b8152600401610bcb906146dd565b7f000000000000000000000000969fa35f20923671049829f2d270d229feea45c16001600160a01b0316611548600080516020614a42833981519152546001600160a01b031690565b6001600160a01b03161461156e5760405162461bcd60e51b8152600401610bcb90614729565b61157782612682565b610bdf828260016126ac565b600061158e60fd5490565b82106115f15760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610bcb565b60fd8281548110611604576116046144b9565b90600052602060002001549050919050565b6000306001600160a01b037f000000000000000000000000969fa35f20923671049829f2d270d229feea45c116146116b65760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610bcb565b50600080516020614a4283398151915290565b60006116d48161226f565b6101f780546001600160a01b0319166001600160a01b0384169081179091556040519081527f83cd881e815205e1bd8a8f8679112d7c0314bd047bc6267374baa3f1439e8130906020016112ff565b6000610b668183611e64565b6000818152606760205260408120546001600160a01b031680610b665760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610bcb565b60006001600160a01b0382166117f95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610bcb565b506001600160a01b031660009081526068602052604090205490565b6101fd8054611823906144cf565b80601f016020809104026020016040519081016040528092919081815260200182805461184f906144cf565b801561189c5780601f106118715761010080835404028352916020019161189c565b820191906000526020600020905b81548152906001019060200180831161187f57829003601f168201915b505050505081565b60006118af8161226f565b6112a76128e8565b6000846101fb546118c89190614775565b905080341461190e5760405162461bcd60e51b8152602060048201526012602482015271496e636f7272656374206d696e742066656560701b6044820152606401610bcb565b33321461194d5760405162461bcd60e51b815260206004820152600d60248201526c10dbdb9d1c9858dd0818d85b1b609a1b6044820152606401610bcb565b33600090815261020160205260408120805487929061196d9084906144a6565b90915550506101f9548561198060fd5490565b61198a91906144a6565b11156119c55760405162461bcd60e51b815260206004820152600a6024820152694c6f7720737570706c7960b01b6044820152606401610bcb565b6101fa5485111580156119eb57506101fa54336000908152610201602052604090205411155b611a2c5760405162461bcd60e51b8152602060048201526012602482015271155cd95c881b1a5b5a5d081c995858da195960721b6044820152606401610bcb565b600084604051602001611a4191815260200190565b604051602081830303815290604052805190602001209050600084848080602002602001604051908101604052809392919081815260200183836020028082843760009201829052509394506001925050505b888111611b6c576101fd611ab6848460ff1681518110610d7757610d776144b9565b604051602001611ac7929190614509565b6040516020818303038152906040526101ff9081611ae591906145e6565b506102005460ff16158015611afc57506101f65484145b15611b2457611b126101ff8054610dc5906144cf565b81611b1c816146a5565b925050611b5a565b6102005460ff1615611b4157611b126101ff8054610dc5906144cf565b60405163be7dcdb760e01b815260040160405180910390fd5b80611b64816146c4565b915050611a94565b5060408051898152602081018690527f2605fb60b2a9434c8435cd53521ff0d794906adbe1f29ba61adcea568b3cf4e4910160405180910390a15050505050505050565b600054610100900460ff1615808015611bd05750600054600160ff909116105b80611bea5750303b158015611bea575060005460ff166001145b611c4d5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610bcb565b6000805460ff191660011790558015611c70576000805461ff0019166101001790555b611cb86040518060400160405280600b81526020016a1e1d1c9851185c1c13919560aa1b815250604051806040016040528060038152602001622c222760e91b815250612926565b611cc0612957565b611cc8612957565b611cd0612980565b611cd8612957565b611ce0612957565b611ce86129af565b611cf06129de565b611d09600080516020614a628339815191526000612a24565b611d14600033612a6f565b611d3e7fa615a8afb6fffcb8c6809ac0997b5c9c12b8cc97651150f14c8f6203168cff4c33612a6f565b60408051602081018b90520160408051601f1981840301815291905280516020909101206101f6556101fd611d7389826145e6565b506101fe611d8188826145e6565b506101fc8690556101fa8590556101f98490556101fb8390556101f780546001600160a01b0384166001600160a01b0319918216179091556101f88054909116331790558015611e0b576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b505050505050505050565b600080516020614a62833981519152611e2e8161226f565b6101f68290556040518281527fbdaa9e15f041222c075b260bb970da2192e82bbb0c81f5314040bcb58e44c1d5906020016112ff565b600091825260c9602090815260408084206001600160a01b0393909316845291905290205460ff1690565b606060668054610ec5906144cf565b81611ea881612421565b61102a8383612a79565b6101fe8054611823906144cf565b600080516020614a62833981519152611ed88161226f565b6101fe6112cf83826145e6565b836001600160a01b0381163314611eff57611eff33612421565b611f0b85858585612a84565b5050505050565b6102005460609062010000900460ff161515600003611fbe576101fe8054611f39906144cf565b80601f0160208091040260200160405190810160405280929190818152602001828054611f65906144cf565b8015611fb25780601f10611f8757610100808354040283529160200191611fb2565b820191906000526020600020905b815481529060010190602001808311611f9557829003601f168201915b50505050509050919050565b610b6682612ab6565b600082815260c96020526040902060010154611fe28161226f565b61102a838361261b565b600080516020614a628339815191526120048161226f565b6101fb8290556040518281527f8b9aa33676ea747a9ea00fd09b02e44e115149aac179a4ebc8f0930e3c0ee8ce906020016112ff565b60006120458161226f565b506102008054911515620100000262ff000019909216919091179055565b600080516020614a6283398151915261207b8161226f565b610200805460ff8082161560ff19909216821790925560405191161581527f634498e690b16aa29a900a5842781167d5054372066f68acb750015531ee01da9060200160405180910390a150565b60006120d48161226f565b6101f8546001600160a01b0316331461212f5760405162461bcd60e51b815260206004820152601860248201527f6f6e6c7920636f6e7472616374206f776e65722063616c6c00000000000000006044820152606401610bcb565b6001600160a01b0382166121785760405162461bcd60e51b815260206004820152601060248201526f6e6f742061646472657373207a65726f60801b6044820152606401610bcb565b6101f880546001600160a01b0319166001600160a01b0384169081179091556040805182815260208101929092527f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091016112ff565b60006121d98161226f565b6121f1600080516020614a6283398151915283611e64565b156122325760405162461bcd60e51b815260206004820152601160248201527020b63932b0b23c90309036b0b730b3b2b960791b6044820152606401610bcb565b610bdf600080516020614a6283398151915283612279565b60006001600160e01b0319821663780e9d6360e01b1480610b665750610b6682612bc6565b6112a78133612beb565b6122838282611e64565b610bdf57600082815260c9602090815260408083206001600160a01b03851684529091529020805460ff191660011790556122bb3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6060600061230c83612c44565b60010190506000816001600160401b0381111561232b5761232b614184565b6040519080825280601f01601f191660200182016040528015612355576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461235f57509392505050565b6123a06101f580546001019055565b60006123ac6101f55490565b90506123b83382612d1c565b610bdf8183612d36565b6000818152606760205260409020546001600160a01b03166112a75760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610bcb565b6daaeb6d7670e522a718067333cd4e3b156112a757604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561248e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124b2919061478c565b6112a757604051633b79c77360e21b81526001600160a01b0382166004820152602401610bcb565b60006124e58261172f565b9050806001600160a01b0316836001600160a01b0316036125525760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610bcb565b336001600160a01b038216148061256e575061256e8133610a80565b6125e05760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610bcb565b61102a8383612dfa565b6125f43382612e68565b6126105760405162461bcd60e51b8152600401610bcb906147a9565b61102a838383612ee6565b6126258282611e64565b15610bdf57600082815260c9602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b7fa615a8afb6fffcb8c6809ac0997b5c9c12b8cc97651150f14c8f6203168cff4c610bdf8161226f565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff16156126df5761102a83613057565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015612739575060408051601f3d908101601f19168201909252612736918101906147f6565b60015b61279c5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610bcb565b600080516020614a42833981519152811461280b5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610bcb565b5061102a8383836130f3565b600261015f540361286a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bcb565b600261015f55565b600161015f55565b612882613118565b61012d805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b61102a83838360405180602001604052806000815250611ee5565b6128f0613162565b61012d805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586128b03390565b600054610100900460ff1661294d5760405162461bcd60e51b8152600401610bcb9061480f565b610bdf82826131a9565b600054610100900460ff1661297e5760405162461bcd60e51b8152600401610bcb9061480f565b565b600054610100900460ff166129a75760405162461bcd60e51b8152600401610bcb9061480f565b61297e6131e9565b600054610100900460ff166129d65760405162461bcd60e51b8152600401610bcb9061480f565b61297e61321d565b600054610100900460ff16612a055760405162461bcd60e51b8152600401610bcb9061480f565b61297e733cc6cdda760b79bafa08df41ecfa224f810dceb66001613244565b600082815260c96020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b610bdf8282612279565b610bdf3383836133eb565b612a8e3383612e68565b612aaa5760405162461bcd60e51b8152600401610bcb906147a9565b611076848484846134b9565b6060612ac1826123c2565b60008281526097602052604081208054612ada906144cf565b80601f0160208091040260200160405190810160405280929190818152602001828054612b06906144cf565b8015612b535780601f10612b2857610100808354040283529160200191612b53565b820191906000526020600020905b815481529060010190602001808311612b3657829003601f168201915b505050505090506000612b7160408051602081019091526000815290565b90508051600003612b83575092915050565b815115612bb5578082604051602001612b9d92919061485a565b60405160208183030381529060405292505050919050565b612bbe846134ec565b949350505050565b60006001600160e01b03198216637965db0b60e01b1480610b665750610b6682613560565b612bf58282611e64565b610bdf57612c0281613585565b612c0d836020613597565b604051602001612c1e929190614889565b60408051601f198184030181529082905262461bcd60e51b8252610bcb91600401614082565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612c835772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612caf576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612ccd57662386f26fc10000830492506010015b6305f5e1008310612ce5576305f5e100830492506008015b6127108310612cf957612710830492506004015b60648310612d0b576064830492506002015b600a8310610b665760010192915050565b610bdf828260405180602001604052806000815250613732565b6000828152606760205260409020546001600160a01b0316612db15760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610bcb565b6000828152609760205260409020612dc982826145e6565b506040518281527ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce7906020016112ff565b600081815260696020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612e2f8261172f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080612e748361172f565b9050806001600160a01b0316846001600160a01b03161480612ebb57506001600160a01b038082166000908152606a602090815260408083209388168352929052205460ff165b80612bbe5750836001600160a01b0316612ed484610fef565b6001600160a01b031614949350505050565b826001600160a01b0316612ef98261172f565b6001600160a01b031614612f1f5760405162461bcd60e51b8152600401610bcb906148fe565b6001600160a01b038216612f815760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bcb565b612f8e8383836001613765565b826001600160a01b0316612fa18261172f565b6001600160a01b031614612fc75760405162461bcd60e51b8152600401610bcb906148fe565b600081815260696020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260688552838620805460001901905590871680865283862080546001019055868652606790945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6001600160a01b0381163b6130c45760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610bcb565b600080516020614a4283398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b6130fc83613779565b6000825111806131095750805b1561102a5761107683836137b9565b61012d5460ff1661297e5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610bcb565b61012d5460ff161561297e5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610bcb565b600054610100900460ff166131d05760405162461bcd60e51b8152600401610bcb9061480f565b60656131dc83826145e6565b50606661102a82826145e6565b600054610100900460ff166132105760405162461bcd60e51b8152600401610bcb9061480f565b61012d805460ff19169055565b600054610100900460ff166128725760405162461bcd60e51b8152600401610bcb9061480f565b600054610100900460ff1661326b5760405162461bcd60e51b8152600401610bcb9061480f565b6daaeb6d7670e522a718067333cd4e3b15610bdf5760405163c3c5a54760e01b81523060048201526daaeb6d7670e522a718067333cd4e9063c3c5a547906024016020604051808303816000875af11580156132cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132ef919061478c565b610bdf57801561336b57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b15801561334f57600080fd5b505af1158015613363573d6000803e3d6000fd5b505050505050565b6001600160a01b038216156133ba5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401613335565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401613335565b816001600160a01b0316836001600160a01b03160361344c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bcb565b6001600160a01b038381166000818152606a6020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6134c4848484612ee6565b6134d0848484846137de565b6110765760405162461bcd60e51b8152600401610bcb90614943565b60606134f7826123c2565b600061350e60408051602081019091526000815290565b9050600081511161352e5760405180602001604052806000815250613559565b80613538846138df565b60405160200161354992919061485a565b6040516020818303038152906040525b9392505050565b60006001600160e01b03198216632483248360e11b1480610b665750610b668261396f565b6060610b666001600160a01b03831660145b606060006135a6836002614775565b6135b19060026144a6565b6001600160401b038111156135c8576135c8614184565b6040519080825280601f01601f1916602001820160405280156135f2576020820181803683370190505b509050600360fc1b8160008151811061360d5761360d6144b9565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061363c5761363c6144b9565b60200101906001600160f81b031916908160001a9053506000613660846002614775565b61366b9060016144a6565b90505b60018111156136e3576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811061369f5761369f6144b9565b1a60f81b8282815181106136b5576136b56144b9565b60200101906001600160f81b031916908160001a90535060049490941c936136dc81614995565b905061366e565b5083156135595760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610bcb565b61373c83836139bf565b61374960008484846137de565b61102a5760405162461bcd60e51b8152600401610bcb90614943565b61376d613162565b61107684848484613b58565b61378281613057565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606135598383604051806060016040528060278152602001614a8260279139613c85565b60006001600160a01b0384163b156138d457604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906138229033908990889088906004016149ac565b6020604051808303816000875af192505050801561385d575060408051601f3d908101601f1916820190925261385a918101906149df565b60015b6138ba573d80801561388b576040519150601f19603f3d011682016040523d82523d6000602084013e613890565b606091505b5080516000036138b25760405162461bcd60e51b8152600401610bcb90614943565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612bbe565b506001949350505050565b606060006138ec83612c44565b60010190506000816001600160401b0381111561390b5761390b614184565b6040519080825280601f01601f191660200182016040528015613935576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508415610fe75761393f565b60006001600160e01b031982166380ac58cd60e01b14806139a057506001600160e01b03198216635b5e139f60e01b145b80610b6657506301ffc9a760e01b6001600160e01b0319831614610b66565b6001600160a01b038216613a155760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bcb565b6000818152606760205260409020546001600160a01b031615613a7a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bcb565b613a88600083836001613765565b6000818152606760205260409020546001600160a01b031615613aed5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bcb565b6001600160a01b038216600081815260686020908152604080832080546001019055848352606790915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001811115613bc75760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b6064820152608401610bcb565b816001600160a01b038516613c2357613c1e8160fd8054600083815260fe60205260408120829055600182018355919091527f9346ac6dd7de6b96975fec380d4d994c4c12e6a8897544f22915316cc6cca2800155565b613c46565b836001600160a01b0316856001600160a01b031614613c4657613c468582613cfd565b6001600160a01b038416613c6257613c5d81613d9a565b611f0b565b846001600160a01b0316846001600160a01b031614611f0b57611f0b8482613e49565b6060600080856001600160a01b031685604051613ca291906149fc565b600060405180830381855af49150503d8060008114613cdd576040519150601f19603f3d011682016040523d82523d6000602084013e613ce2565b606091505b5091509150613cf386838387613e8d565b9695505050505050565b60006001613d0a8461178f565b613d149190614a18565b600083815260fc6020526040902054909150808214613d67576001600160a01b038416600090815260fb60209081526040808320858452825280832054848452818420819055835260fc90915290208190555b50600091825260fc602090815260408084208490556001600160a01b03909416835260fb81528383209183525290812055565b60fd54600090613dac90600190614a18565b600083815260fe602052604081205460fd8054939450909284908110613dd457613dd46144b9565b906000526020600020015490508060fd8381548110613df557613df56144b9565b600091825260208083209091019290925582815260fe909152604080822084905585825281205560fd805480613e2d57613e2d614a2b565b6001900381819060005260206000200160009055905550505050565b6000613e548361178f565b6001600160a01b03909316600090815260fb60209081526040808320868452825280832085905593825260fc9052919091209190915550565b60608315613efc578251600003613ef5576001600160a01b0385163b613ef55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610bcb565b5081612bbe565b612bbe8383815115613f115781518083602001fd5b8060405162461bcd60e51b8152600401610bcb9190614082565b6001600160e01b0319811681146112a757600080fd5b600060208284031215613f5357600080fd5b813561355981613f2b565b80356001600160a01b0381168114613f7557600080fd5b919050565b600060208284031215613f8c57600080fd5b61355982613f5e565b60008083601f840112613fa757600080fd5b5081356001600160401b03811115613fbe57600080fd5b6020830191508360208260051b8501011115613fd957600080fd5b9250929050565b600080600060408486031215613ff557600080fd5b613ffe84613f5e565b925060208401356001600160401b0381111561401957600080fd5b61402586828701613f95565b9497909650939450505050565b60005b8381101561404d578181015183820152602001614035565b50506000910152565b6000815180845261406e816020860160208601614032565b601f01601f19169290920160200192915050565b6020815260006135596020830184614056565b6020808252825182820181905260009190848201906040850190845b818110156140cd578351835292840192918401916001016140b1565b50909695505050505050565b6000602082840312156140eb57600080fd5b5035919050565b6000806040838503121561410557600080fd5b61410e83613f5e565b946020939093013593505050565b60008060006060848603121561413157600080fd5b61413a84613f5e565b925061414860208501613f5e565b9150604084013590509250925092565b6000806040838503121561416b57600080fd5b8235915061417b60208401613f5e565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126141ab57600080fd5b81356001600160401b03808211156141c5576141c5614184565b604051601f8301601f19908116603f011681019082821181831017156141ed576141ed614184565b8160405283815286602085880101111561420657600080fd5b836020870160208301376000602085830101528094505050505092915050565b60006020828403121561423857600080fd5b81356001600160401b0381111561424e57600080fd5b612bbe8482850161419a565b6000806040838503121561426d57600080fd5b61427683613f5e565b915060208301356001600160401b0381111561429157600080fd5b61429d8582860161419a565b9150509250929050565b600080600080606085870312156142bd57600080fd5b843593506020850135925060408501356001600160401b038111156142e157600080fd5b6142ed87828801613f95565b95989497509550505050565b600080600080600080600080610100898b03121561431657600080fd5b8835975060208901356001600160401b038082111561433457600080fd5b6143408c838d0161419a565b985060408b013591508082111561435657600080fd5b506143638b828c0161419a565b965050606089013594506080890135935060a0890135925060c0890135915061438e60e08a01613f5e565b90509295985092959890939650565b80151581146112a757600080fd5b600080604083850312156143be57600080fd5b6143c783613f5e565b915060208301356143d78161439d565b809150509250929050565b600080600080608085870312156143f857600080fd5b61440185613f5e565b935061440f60208601613f5e565b92506040850135915060608501356001600160401b0381111561443157600080fd5b61443d8782880161419a565b91505092959194509250565b60006020828403121561445b57600080fd5b81356135598161439d565b6000806040838503121561447957600080fd5b61448283613f5e565b915061417b60208401613f5e565b634e487b7160e01b600052601160045260246000fd5b80820180821115610b6657610b66614490565b634e487b7160e01b600052603260045260246000fd5b600181811c908216806144e357607f821691505b60208210810361450357634e487b7160e01b600052602260045260246000fd5b50919050565b6000808454614517816144cf565b6001828116801561452f576001811461454457614573565b60ff1984168752821515830287019450614573565b8860005260208060002060005b8581101561456a5781548a820152908401908201614551565b50505082870194505b505050508351614587818360208801614032565b64173539b7b760d91b9101908152600501949350505050565b601f82111561102a57600081815260208120601f850160051c810160208610156145c75750805b601f850160051c820191505b81811015613363578281556001016145d3565b81516001600160401b038111156145ff576145ff614184565b6146138161460d84546144cf565b846145a0565b602080601f83116001811461464857600084156146305750858301515b600019600386901b1c1916600185901b178555613363565b600085815260208120601f198616915b8281101561467757888601518255948401946001909101908401614658565b50858210156146955787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060ff821660ff81036146bb576146bb614490565b60010192915050565b6000600182016146d6576146d6614490565b5060010190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b8082028115828204841417610b6657610b66614490565b60006020828403121561479e57600080fd5b81516135598161439d565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60006020828403121561480857600080fd5b5051919050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6000835161486c818460208801614032565b835190830190614880818360208801614032565b01949350505050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516148c1816017850160208801614032565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516148f2816028840160208801614032565b01602801949350505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000816149a4576149a4614490565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613cf390830184614056565b6000602082840312156149f157600080fd5b815161355981613f2b565b60008251614a0e818460208701614032565b9190910192915050565b81810381811115610b6657610b66614490565b634e487b7160e01b600052603160045260246000fdfe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220184e5494a28565fb289f50a3674e5c3c51975b5e8b60fbc127adf72c2988518c64736f6c63430008130033
Deployed Bytecode Sourcemap
153557:14416:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;167576:269;;;;;;;;;;-1:-1:-1;167576:269:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;167576:269:0;;;;;;;;154565:28;;;;;;;;;;;;;;;;;;;738:25:1;;;726:2;711:18;154565:28:0;592:177:1;161944:251:0;;;;;;;;;;-1:-1:-1;161944:251:0;;;;;:::i;:::-;;:::i;:::-;;157843:840;;;;;;;;;;-1:-1:-1;157843:840:0;;;;;:::i;:::-;;:::i;126549:100::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;163879:396::-;;;;;;;;;;-1:-1:-1;163879:396:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;128072:171::-;;;;;;;;;;-1:-1:-1;128072:171:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;3773:32:1;;;3755:51;;3743:2;3728:18;128072:171:0;3609:203:1;166138:196:0;;;;;;;;;;-1:-1:-1;166138:196:0;;;;;:::i;:::-;;:::i;162653:125::-;;;;;;;;;;;;;:::i;143816:113::-;;;;;;;;;;-1:-1:-1;143904:10:0;:17;143816:113;;166517:202;;;;;;;;;;-1:-1:-1;166517:202:0;;;;;:::i;:::-;;:::i;111640:131::-;;;;;;;;;;-1:-1:-1;111640:131:0;;;;;:::i;:::-;111714:7;111741:12;;;:6;:12;;;;;:22;;;;111640:131;162282:130;;;;;;;;;;-1:-1:-1;162282:130:0;;;;;:::i;:::-;;:::i;112081:147::-;;;;;;;;;;-1:-1:-1;112081:147:0;;;;;:::i;:::-;;:::i;143473:267::-;;;;;;;;;;-1:-1:-1;143473:267:0;;;;;:::i;:::-;;:::i;154377:26::-;;;;;;;;;;;;;;;;154723:22;;;;;;;;;;-1:-1:-1;154723:22:0;;;;;;;;113225:218;;;;;;;;;;-1:-1:-1;113225:218:0;;;;;:::i;:::-;;:::i;96978:198::-;;;;;;;;;;-1:-1:-1;96978:198:0;;;;;:::i;:::-;;:::i;159926:::-;;;;;;;;;;-1:-1:-1;159926:198:0;;;;;:::i;:::-;;:::i;162788:275::-;;;;;;;;;;;;;:::i;154526:28::-;;;;;;;;;;;;;;;;163254:89;;;;;;;;;;;;;:::i;161133:200::-;;;;;;;;;;-1:-1:-1;161133:200:0;;;;;:::i;:::-;;:::i;166906:210::-;;;;;;;;;;-1:-1:-1;166906:210:0;;;;;:::i;:::-;;:::i;154756:23::-;;;;;;;;;;-1:-1:-1;154756:23:0;;;;;;;;;;;160934:181;;;;;;;;;;-1:-1:-1;160934:181:0;;;;;:::i;:::-;;:::i;97507:223::-;;;;;;:::i;:::-;;:::i;144006:244::-;;;;;;;;;;-1:-1:-1;144006:244:0;;;;;:::i;:::-;;:::i;154809:20::-;;;;;;;;;;-1:-1:-1;154809:20:0;;;;;;;;;;;96584:133;;;;;;;;;;;;;:::i;154305:27::-;;;;;;;;;;-1:-1:-1;154305:27:0;;;;-1:-1:-1;;;;;154305:27:0;;;161353:186;;;;;;;;;;-1:-1:-1;161353:186:0;;;;;:::i;:::-;;:::i;162422:143::-;;;;;;;;;;-1:-1:-1;162422:143:0;;;;;:::i;:::-;;:::i;101805:86::-;;;;;;;;;;-1:-1:-1;101876:7:0;;;;101805:86;;126259:223;;;;;;;;;;-1:-1:-1;126259:223:0;;;;;:::i;:::-;;:::i;125990:207::-;;;;;;;;;;-1:-1:-1;125990:207:0;;;;;:::i;:::-;;:::i;154978:53::-;;;;;;;;;;-1:-1:-1;154978:53:0;;;;;:::i;:::-;;;;;;;;;;;;;;154621:27;;;;;;;;;;;;;:::i;163156:86::-;;;;;;;;;;;;;:::i;158707:1131::-;;;;;;:::i;:::-;;:::i;155136:1362::-;;;;;;;;;;-1:-1:-1;155136:1362:0;;;;;:::i;:::-;;:::i;160366:171::-;;;;;;;;;;-1:-1:-1;160366:171:0;;;;;:::i;:::-;;:::i;154344:20::-;;;;;;;;;;-1:-1:-1;154344:20:0;;;;-1:-1:-1;;;;;154344:20:0;;;110091:147;;;;;;;;;;-1:-1:-1;110091:147:0;;;;;:::i;:::-;;:::i;126718:104::-;;;;;;;;;;;;;:::i;109185:49::-;;;;;;;;;;-1:-1:-1;109185:49:0;109230:4;109185:49;;165745:215;;;;;;;;;;-1:-1:-1;165745:215:0;;;;;:::i;:::-;;:::i;154659:31::-;;;;;;;;;;;;;:::i;160137:202::-;;;;;;;;;;-1:-1:-1;160137:202:0;;;;;:::i;:::-;;:::i;167303:267::-;;;;;;;;;;-1:-1:-1;167303:267:0;;;;;:::i;:::-;;:::i;165298:262::-;;;;;;;;;;-1:-1:-1;165298:262:0;;;;;:::i;:::-;;:::i;112521:149::-;;;;;;;;;;-1:-1:-1;112521:149:0;;;;;:::i;:::-;;:::i;160547:185::-;;;;;;;;;;-1:-1:-1;160547:185:0;;;;;:::i;:::-;;:::i;164892:131::-;;;;;;;;;;-1:-1:-1;164892:131:0;;;;;:::i;:::-;;:::i;160742:182::-;;;;;;;;;;;;;:::i;128541:164::-;;;;;;;;;;-1:-1:-1;128541:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;128662:25:0;;;128638:4;128662:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;128541:164;154122:64;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;154122:64:0;;163549:320;;;;;;;;;;-1:-1:-1;163549:320:0;;;;;:::i;:::-;;:::i;154050:61::-;;;;;;;;;;;;154090:21;154050:61;;154451:32;;;;;;;;;;;;;;;;161706:228;;;;;;;;;;-1:-1:-1;161706:228:0;;;;;:::i;:::-;;:::i;167576:269::-;167772:4;167801:36;167825:11;167801:23;:36::i;:::-;167794:43;167576:269;-1:-1:-1;;167576:269:0:o;161944:251::-;109230:4;109676:16;109230:4;109676:10;:16::i;:::-;162054:35:::1;109230:4;162081:7:::0;162054::::1;:35::i;:::-;:44;162046:79;;;::::0;-1:-1:-1;;;162046:79:0;;9862:2:1;162046:79:0::1;::::0;::::1;9844:21:1::0;9901:2;9881:18;;;9874:30;9940:25;9920:18;;;9913:53;9983:18;;162046:79:0::1;;;;;;;;;162145:39;109230:4;162176:7:::0;162145:10:::1;:39::i;:::-;161944:251:::0;;:::o;157843:840::-;-1:-1:-1;;;;;;;;;;;109676:16:0;109687:4;109676:10;:16::i;:::-;157948:19:::1;157970:3;;157948:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;;157993:11:0::1;::::0;157948:25;;-1:-1:-1;;;157993:11:0::1;::::0;::::1;;;:20;157984:54;;;::::0;-1:-1:-1;;;157984:54:0;;10214:2:1;157984:54:0::1;::::0;::::1;10196:21:1::0;10253:2;10233:18;;;10226:30;-1:-1:-1;;;10272:18:1;;;10265:51;10333:18;;157984:54:0::1;10012:345:1::0;157984:54:0::1;158086:10;158100:9;158086:23;158078:49;;;::::0;-1:-1:-1;;;158078:49:0;;10564:2:1;158078:49:0::1;::::0;::::1;10546:21:1::0;10603:2;10583:18;;;10576:30;-1:-1:-1;;;10622:18:1;;;10615:43;10675:18;;158078:49:0::1;10362:337:1::0;158078:49:0::1;158179:10;::::0;158162:13:::1;::::0;143904:10;:17;158146:29:::1;;;;:::i;:::-;:43;;158138:76;;;::::0;-1:-1:-1;;;158138:76:0;;11168:2:1;158138:76:0::1;::::0;::::1;11150:21:1::0;11207:2;11187:18;;;11180:30;-1:-1:-1;;;11226:18:1;;;11219:51;11287:18;;158138:76:0::1;10966:345:1::0;158138:76:0::1;158264:13;::::0;-1:-1:-1;;;;;158239:22:0;::::1;;::::0;;;:18:::1;:22;::::0;;;;:38;;;;158302:11:::1;:18:::0;;-1:-1:-1;;158302:18:0::1;;;::::0;;158316:4:::1;158428:200;158452:13;;158447:1;:18;158428:200;;158507:12;158521:28;158538:2;158541:6;158538:10;;;;;;;;;;:::i;:::-;;;;;;;158521:16;:28::i;:::-;158493:66;;;;;;;;;:::i;:::-;;;;;;;;;;;;;158487:3;:72;;;;;;:::i;:::-;;158574:15;158585:3;158574:15;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:10;:15::i;:::-;158606:8:::0;::::1;::::0;::::1;:::i;:::-;;;;158467:3;;;;;:::i;:::-;;;;158428:200;;;-1:-1:-1::0;158658:13:0::1;::::0;158644:31:::1;::::0;;15712:25:1;;;-1:-1:-1;;;;;15773:32:1;;15768:2;15753:18;;15746:60;158644:31:0::1;::::0;15685:18:1;158644:31:0::1;;;;;;;157931:752;;157843:840:::0;;;;:::o;126549:100::-;126603:13;126636:5;126629:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;126549:100;:::o;163879:396::-;163945:16;163975:15;163993:17;164003:6;163993:9;:17::i;:::-;163975:35;;164023:22;164061:7;-1:-1:-1;;;;;164047:22:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;164047:22:0;;164023:46;;164088:9;164084:147;164105:7;164101:1;:11;164084:147;;;164133:15;164151:30;164171:6;164179:1;164151:19;:30::i;:::-;164133:48;;164210:7;164196:8;164205:1;164196:11;;;;;;;;:::i;:::-;;;;;;;;;;:21;-1:-1:-1;164114:3:0;;;;:::i;:::-;;;;164084:147;;;-1:-1:-1;164252:8:0;163879:396;-1:-1:-1;;;163879:396:0:o;128072:171::-;128148:7;128168:23;128183:7;128168:14;:23::i;:::-;-1:-1:-1;128211:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;128211:24:0;;128072:171::o;166138:196::-;166273:8;81573:30;81594:8;81573:20;:30::i;:::-;166294:32:::1;166308:8;166318:7;166294:13;:32::i;:::-;166138:196:::0;;;:::o;162653:125::-;162718:7;-1:-1:-1;;;;;;;;;;;109676:16:0;109687:4;109676:10;:16::i;:::-;162745:21:::1;162738:28;;109703:1;162653:125:::0;;:::o;166517:202::-;166657:4;-1:-1:-1;;;;;81298:18:0;;81306:10;81298:18;81294:83;;81333:32;81354:10;81333:20;:32::i;:::-;166674:37:::1;166693:4;166699:2;166703:7;166674:18;:37::i;:::-;166517:202:::0;;;;:::o;162282:130::-;162338:4;162372:30;-1:-1:-1;;;;;;;;;;;162394:7:0;162372;:30::i;112081:147::-;111714:7;111741:12;;;:6;:12;;;;;:22;;;109676:16;109687:4;109676:10;:16::i;:::-;112195:25:::1;112206:4;112212:7;112195:10;:25::i;143473:267::-:0;143570:7;143606:34;143634:5;143606:27;:34::i;:::-;143598:5;:42;143590:98;;;;-1:-1:-1;;;143590:98:0;;16019:2:1;143590:98:0;;;16001:21:1;16058:2;16038:18;;;16031:30;16097:34;16077:18;;;16070:62;-1:-1:-1;;;16148:18:1;;;16141:41;16199:19;;143590:98:0;15817:407:1;143590:98:0;-1:-1:-1;;;;;;143706:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;143473:267::o;113225:218::-;-1:-1:-1;;;;;113321:23:0;;99482:10;113321:23;113313:83;;;;-1:-1:-1;;;113313:83:0;;16431:2:1;113313:83:0;;;16413:21:1;16470:2;16450:18;;;16443:30;16509:34;16489:18;;;16482:62;-1:-1:-1;;;16560:18:1;;;16553:45;16615:19;;113313:83:0;16229:411:1;113313:83:0;113409:26;113421:4;113427:7;113409:11;:26::i;96978:198::-;-1:-1:-1;;;;;95454:6:0;95437:23;95445:4;95437:23;95429:80;;;;-1:-1:-1;;;95429:80:0;;;;;;;:::i;:::-;95552:6;-1:-1:-1;;;;;95528:30:0;:20;-1:-1:-1;;;;;;;;;;;88226:65:0;-1:-1:-1;;;;;88226:65:0;;88146:153;95528:20;-1:-1:-1;;;;;95528:30:0;;95520:87;;;;-1:-1:-1;;;95520:87:0;;;;;;;:::i;:::-;97060:36:::1;97078:17;97060;:36::i;:::-;97148:12;::::0;;97158:1:::1;97148:12:::0;;;::::1;::::0;::::1;::::0;;;97107:61:::1;::::0;97129:17;;97148:12;97107:21:::1;:61::i;:::-;96978:198:::0;:::o;159926:::-;-1:-1:-1;;;;;;;;;;;109676:16:0;109687:4;109676:10;:16::i;:::-;160027:12:::1;:28;160042:13:::0;160027:12;:28:::1;:::i;:::-;;160082:29;160097:13;160082:29;;;;;;:::i;:::-;;;;;;;;159926:198:::0;;:::o;162788:275::-;162867:4;;109676:16;162867:4;109676:10;:16::i;:::-;85676:21:::1;:19;:21::i;:::-;162913:12:::2;::::0;162891:9:::2;::::0;-1:-1:-1;;;;;162913:12:0::2;162939;:10;:12::i;:::-;162905:51;::::0;::::2;::::0;;;;;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;162890:66;;;162979:4;162971:49;;;::::0;-1:-1:-1;;;162971:49:0;;17883:2:1;162971:49:0::2;::::0;::::2;17865:21:1::0;17922:2;17902:18;;;17895:30;17961:34;17941:18;;;17934:62;-1:-1:-1;;;18012:18:1;;;18005:31;18053:19;;162971:49:0::2;17681:397:1::0;162971:49:0::2;163046:4;163039:11;;;85720:20:::1;84937:1:::0;86240:7;:22;86057:213;163254:89;109230:4;109676:16;109230:4;109676:10;:16::i;:::-;163321:10:::1;:8;:10::i;161133:200::-:0;-1:-1:-1;;;;;;;;;;;109676:16:0;109687:4;109676:10;:16::i;:::-;161234::::1;:28:::0;;;161286:34:::1;::::0;738:25:1;;;161286:34:0::1;::::0;726:2:1;711:18;161286:34:0::1;592:177:1::0;166906:210:0;167050:4;-1:-1:-1;;;;;81298:18:0;;81306:10;81298:18;81294:83;;81333:32;81354:10;81333:20;:32::i;:::-;167067:41:::1;167090:4;167096:2;167100:7;167067:22;:41::i;160934:181::-:0;-1:-1:-1;;;;;;;;;;;109676:16:0;109687:4;109676:10;:16::i;:::-;161029:13:::1;:25:::0;;;161075::::1;::::0;738::1;;;161075::0::1;::::0;726:2:1;711:18;161075:25:0::1;592:177:1::0;97507:223:0;-1:-1:-1;;;;;95454:6:0;95437:23;95445:4;95437:23;95429:80;;;;-1:-1:-1;;;95429:80:0;;;;;;;:::i;:::-;95552:6;-1:-1:-1;;;;;95528:30:0;:20;-1:-1:-1;;;;;;;;;;;88226:65:0;-1:-1:-1;;;;;88226:65:0;;88146:153;95528:20;-1:-1:-1;;;;;95528:30:0;;95520:87;;;;-1:-1:-1;;;95520:87:0;;;;;;;:::i;:::-;97623:36:::1;97641:17;97623;:36::i;:::-;97670:52;97692:17;97711:4;97717;97670:21;:52::i;144006:244::-:0;144081:7;144117:41;143904:10;:17;;143816:113;144117:41;144109:5;:49;144101:106;;;;-1:-1:-1;;;144101:106:0;;18285:2:1;144101:106:0;;;18267:21:1;18324:2;18304:18;;;18297:30;18363:34;18343:18;;;18336:62;-1:-1:-1;;;18414:18:1;;;18407:42;18466:19;;144101:106:0;18083:408:1;144101:106:0;144225:10;144236:5;144225:17;;;;;;;;:::i;:::-;;;;;;;;;144218:24;;144006:244;;;:::o;96584:133::-;96662:7;95890:4;-1:-1:-1;;;;;95899:6:0;95882:23;;95874:92;;;;-1:-1:-1;;;95874:92:0;;18698:2:1;95874:92:0;;;18680:21:1;18737:2;18717:18;;;18710:30;18776:34;18756:18;;;18749:62;18847:26;18827:18;;;18820:54;18891:19;;95874:92:0;18496:420:1;95874:92:0;-1:-1:-1;;;;;;;;;;;;96584:133:0;:::o;161353:186::-;109230:4;109676:16;109230:4;109676:10;:16::i;:::-;161452:12:::1;:22:::0;;-1:-1:-1;;;;;;161452:22:0::1;-1:-1:-1::0;;;;;161452:22:0;::::1;::::0;;::::1;::::0;;;161498:26:::1;::::0;3755:51:1;;;161498:26:0::1;::::0;3743:2:1;3728:18;161498:26:0::1;3609:203:1::0;162422:143:0;162485:4;162519:36;162485:4;162547:7;162519;:36::i;126259:223::-;126331:7;131003:16;;;:7;:16;;;;;;-1:-1:-1;;;;;131003:16:0;;126395:56;;;;-1:-1:-1;;;126395:56:0;;19123:2:1;126395:56:0;;;19105:21:1;19162:2;19142:18;;;19135:30;-1:-1:-1;;;19181:18:1;;;19174:54;19245:18;;126395:56:0;18921:348:1;125990:207:0;126062:7;-1:-1:-1;;;;;126090:19:0;;126082:73;;;;-1:-1:-1;;;126082:73:0;;19476:2:1;126082:73:0;;;19458:21:1;19515:2;19495:18;;;19488:30;19554:34;19534:18;;;19527:62;-1:-1:-1;;;19605:18:1;;;19598:39;19654:19;;126082:73:0;19274:405:1;126082:73:0;-1:-1:-1;;;;;;126173:16:0;;;;;:9;:16;;;;;;;125990:207::o;154621:27::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;163156:86::-;109230:4;109676:16;109230:4;109676:10;:16::i;:::-;163222:8:::1;:6;:8::i;158707:1131::-:0;158809:22;158849:6;158834:12;;:21;;;;:::i;:::-;158809:46;;158888:14;158875:9;:27;158867:57;;;;-1:-1:-1;;;158867:57:0;;20059:2:1;158867:57:0;;;20041:21:1;20098:2;20078:18;;;20071:30;-1:-1:-1;;;20117:18:1;;;20110:48;20175:18;;158867:57:0;19857:342:1;158867:57:0;158943:10;158957:9;158943:23;158935:49;;;;-1:-1:-1;;;158935:49:0;;10564:2:1;158935:49:0;;;10546:21:1;10603:2;10583:18;;;10576:30;-1:-1:-1;;;10622:18:1;;;10615:43;10675:18;;158935:49:0;10362:337:1;158935:49:0;159024:10;159005:30;;;;:18;:30;;;;;:40;;159039:6;;159005:30;:40;;159039:6;;159005:40;:::i;:::-;;;;-1:-1:-1;;159090:10:0;;159080:6;159064:13;143904:10;:17;;143816:113;159064:13;:22;;;;:::i;:::-;:36;;159056:58;;;;-1:-1:-1;;;159056:58:0;;20406:2:1;159056:58:0;;;20388:21:1;20445:2;20425:18;;;20418:30;-1:-1:-1;;;20464:18:1;;;20457:40;20514:18;;159056:58:0;20204:334:1;159056:58:0;159143:16;;159133:6;:26;;:80;;;;-1:-1:-1;159197:16:0;;159182:10;159163:30;;;;:18;:30;;;;;;:50;;159133:80;159125:111;;;;-1:-1:-1;;;159125:111:0;;20745:2:1;159125:111:0;;;20727:21:1;20784:2;20764:18;;;20757:30;-1:-1:-1;;;20803:18:1;;;20796:48;20861:18;;159125:111:0;20543:342:1;159125:111:0;159247:11;159281:4;159270:16;;;;;;738:25:1;;726:2;711:18;;592:177;159270:16:0;;;;;;;;;;;;;159260:27;;;;;;159247:40;;159300:19;159322:3;;159300:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;159300:25:0;;-1:-1:-1;159377:1:0;;-1:-1:-1;;;159361:404:0;159385:6;159380:1;:11;159361:404;;159427:12;159441:28;159458:2;159461:6;159458:10;;;;;;;;;;:::i;159441:28::-;159413:66;;;;;;;;;:::i;:::-;;;;;;;;;;;;;159407:3;:72;;;;;;:::i;:::-;-1:-1:-1;159493:10:0;;;;:19;;;:36;;;159523:6;;159516:3;:13;159493:36;159490:264;;;159542:15;159553:3;159542:15;;;;;:::i;:::-;159570:8;;;;:::i;:::-;;;;159490:264;;;159608:10;;;;159604:150;;;159636:15;159647:3;159636:15;;;;;:::i;159604:150::-;159722:20;;-1:-1:-1;;;159722:20:0;;;;;;;;;;;159604:150;159393:3;;;;:::i;:::-;;;;159361:404;;;-1:-1:-1;159790:38:0;;;21064:25:1;;;21120:2;21105:18;;21098:34;;;159790:38:0;;21037:18:1;159790:38:0;;;;;;;158799:1039;;;;158707:1131;;;;:::o;155136:1362::-;75287:19;75310:13;;;;;;75309:14;;75357:34;;;;-1:-1:-1;75375:12:0;;75390:1;75375:12;;;;:16;75357:34;75356:108;;;-1:-1:-1;75436:4:0;64059:19;:23;;;75397:66;;-1:-1:-1;75446:12:0;;;;;:17;75397:66;75334:204;;;;-1:-1:-1;;;75334:204:0;;21345:2:1;75334:204:0;;;21327:21:1;21384:2;21364:18;;;21357:30;21423:34;21403:18;;;21396:62;-1:-1:-1;;;21474:18:1;;;21467:44;21528:19;;75334:204:0;21143:410:1;75334:204:0;75549:12;:16;;-1:-1:-1;;75549:16:0;75564:1;75549:16;;;75576:67;;;;75611:13;:20;;-1:-1:-1;;75611:20:0;;;;;75576:67;155576:35:::1;;;;;;;;;;;;;;-1:-1:-1::0;;;155576:35:0::1;;::::0;::::1;;;;;;;;;;;;;-1:-1:-1::0;;;155576:35:0::1;;::::0;:13:::1;:35::i;:::-;155624:25;:23;:25::i;:::-;155660;:23;:25::i;:::-;155696:17;:15;:17::i;:::-;155724:22;:20;:22::i;:::-;155757:24;:22;:24::i;:::-;155792;:22;:24::i;:::-;155827:32;:30;:32::i;:::-;155870:47;-1:-1:-1::0;;;;;;;;;;;109230:4:0::1;155870:13;:47::i;:::-;155965:44;109230:4;99482:10:::0;155965::::1;:44::i;:::-;156021:39;154090:21;99482:10:::0;155965::::1;:44::i;156021:39::-;156098:17;::::0;;::::1;::::0;::::1;738:25:1::0;;;711:18;156098:17:0::1;::::0;;-1:-1:-1;;156098:17:0;;::::1;::::0;;;;;;156088:28;;156098:17:::1;156088:28:::0;;::::1;::::0;156079:6:::1;:37:::0;156133:12:::1;:28;156148:13:::0;156133:12;:28:::1;:::i;:::-;-1:-1:-1::0;156178:17:0::1;:38;156198:18:::0;156178:17;:38:::1;:::i;:::-;-1:-1:-1::0;156233:13:0::1;:30:::0;;;156280:16:::1;:36:::0;;;156333:10:::1;:23:::0;;;156373:12:::1;:28:::0;;;156418:12:::1;:28:::0;;-1:-1:-1;;;;;156418:28:0;::::1;-1:-1:-1::0;;;;;;156418:28:0;;::::1;;::::0;;;156466:5:::1;:20:::0;;;;::::1;99482:10:::0;156466:20:::1;::::0;;75665:102;;;;75716:5;75700:21;;-1:-1:-1;;75700:21:0;;;75741:14;;-1:-1:-1;21710:36:1;;75741:14:0;;21698:2:1;21683:18;75741:14:0;;;;;;;75665:102;75276:498;155136:1362;;;;;;;;:::o;160366:171::-;-1:-1:-1;;;;;;;;;;;109676:16:0;109687:4;109676:10;:16::i;:::-;160460:6:::1;:14:::0;;;160503:26:::1;::::0;738:25:1;;;160503:26:0::1;::::0;726:2:1;711:18;160503:26:0::1;592:177:1::0;110091:147:0;110177:4;110201:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;110201:29:0;;;;;;;;;;;;;;;110091:147::o;126718:104::-;126774:13;126807:7;126800:14;;;;;:::i;165745:215::-;165888:8;81573:30;81594:8;81573:20;:30::i;:::-;165909:43:::1;165933:8;165943;165909:23;:43::i;154659:31::-:0;;;;;;;:::i;160137:202::-;-1:-1:-1;;;;;;;;;;;109676:16:0;109687:4;109676:10;:16::i;:::-;160239:17:::1;:32;160259:12:::0;160239:17;:32:::1;:::i;167303:267::-:0;167493:4;-1:-1:-1;;;;;81298:18:0;;81306:10;81298:18;81294:83;;81333:32;81354:10;81333:20;:32::i;:::-;167515:47:::1;167538:4;167544:2;167548:7;167557:4;167515:22;:47::i;:::-;167303:267:::0;;;;;:::o;165298:262::-;165447:8;;165414:13;;165447:8;;;;;:17;;165459:5;165447:17;165443:74;;165488:17;165481:24;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;165298:262;;;:::o;165443:74::-;165528:23;165543:7;165528:14;:23::i;112521:149::-;111714:7;111741:12;;;:6;:12;;;;;:22;;;109676:16;109687:4;109676:10;:16::i;:::-;112636:26:::1;112648:4;112654:7;112636:11;:26::i;160547:185::-:0;-1:-1:-1;;;;;;;;;;;109676:16:0;109687:4;109676:10;:16::i;:::-;160641:12:::1;:23:::0;;;160686:29:::1;::::0;738:25:1;;;160686:29:0::1;::::0;726:2:1;711:18;160686:29:0::1;592:177:1::0;164892:131:0;109230:4;109676:16;109230:4;109676:10;:16::i;:::-;-1:-1:-1;164998:8:0::1;:17:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;164998:17:0;;::::1;::::0;;;::::1;::::0;;164892:131::o;160742:182::-;-1:-1:-1;;;;;;;;;;;109676:16:0;109687:4;109676:10;:16::i;:::-;160834:10:::1;::::0;;::::1;::::0;;::::1;160833:11;-1:-1:-1::0;;160820:24:0;;::::1;::::0;::::1;::::0;;;160868:30:::1;::::0;160887:10;;160886:11:::1;540:41:1::0;;160868:30:0::1;::::0;528:2:1;513:18;160868:30:0::1;;;;;;;160742:182:::0;:::o;163549:320::-;109230:4;109676:16;109230:4;109676:10;:16::i;:::-;163670:5:::1;::::0;-1:-1:-1;;;;;163670:5:0::1;163656:10;:19;163648:55;;;::::0;-1:-1:-1;;;163648:55:0;;21959:2:1;163648:55:0::1;::::0;::::1;21941:21:1::0;21998:2;21978:18;;;21971:30;22037:26;22017:18;;;22010:54;22081:18;;163648:55:0::1;21757:348:1::0;163648:55:0::1;-1:-1:-1::0;;;;;163725:22:0;::::1;163717:50;;;::::0;-1:-1:-1;;;163717:50:0;;22312:2:1;163717:50:0::1;::::0;::::1;22294:21:1::0;22351:2;22331:18;;;22324:30;-1:-1:-1;;;22370:18:1;;;22363:46;22426:18;;163717:50:0::1;22110:340:1::0;163717:50:0::1;163782:5;:16:::0;;-1:-1:-1;;;;;;163782:16:0::1;-1:-1:-1::0;;;;;163782:16:0;::::1;::::0;;::::1;::::0;;;163820:37:::1;::::0;;22667:34:1;;;22732:2;22717:18;;22710:43;;;;163820:37:0::1;::::0;22602:18:1;163820:37:0::1;22455:304:1::0;161706:228:0;109230:4;109676:16;109230:4;109676:10;:16::i;:::-;161811:29:::1;-1:-1:-1::0;;;;;;;;;;;161832:7:0::1;161811;:29::i;:::-;:38;161803:67;;;::::0;-1:-1:-1;;;161803:67:0;;22966:2:1;161803:67:0::1;::::0;::::1;22948:21:1::0;23005:2;22985:18;;;22978:30;-1:-1:-1;;;23024:18:1;;;23017:47;23081:18;;161803:67:0::1;22764:341:1::0;161803:67:0::1;161890:33;-1:-1:-1::0;;;;;;;;;;;161915:7:0::1;161890:10;:33::i;143132:257::-:0;143256:4;-1:-1:-1;;;;;;143280:61:0;;-1:-1:-1;;;143280:61:0;;:101;;;143345:36;143369:11;143345:23;:36::i;110542:105::-;110609:30;110620:4;99482:10;110609;:30::i;114822:238::-;114906:22;114914:4;114920:7;114906;:22::i;:::-;114901:152;;114945:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;114945:29:0;;;;;;;;;:36;;-1:-1:-1;;114945:36:0;114977:4;114945:36;;;115028:12;99482:10;;99402:98;115028:12;-1:-1:-1;;;;;115001:40:0;115019:7;-1:-1:-1;;;;;115001:40:0;115013:4;115001:40;;;;;;;;;;114822:238;;:::o;16420:716::-;16476:13;16527:14;16544:17;16555:5;16544:10;:17::i;:::-;16564:1;16544:21;16527:38;;16580:20;16614:6;-1:-1:-1;;;;;16603:18:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16603:18:0;-1:-1:-1;16580:41:0;-1:-1:-1;16745:28:0;;;16761:2;16745:28;16802:288;-1:-1:-1;;16834:5:0;-1:-1:-1;;;16971:2:0;16960:14;;16955:30;16834:5;16942:44;17032:2;17023:11;;;-1:-1:-1;17053:21:0;16802:288;17053:21;-1:-1:-1;17111:6:0;16420:716;-1:-1:-1;;;16420:716:0:o;157572:216::-;157628:27;:15;1118:19;;1136:1;1118:19;;;1029:127;157628:27;157661:15;157679:25;:15;999:14;;907:114;157679:25;157661:43;;157712:30;157722:10;157734:7;157712:9;:30::i;:::-;157755:26;157768:7;157776:4;157755:12;:26::i;137701:135::-;131405:4;131003:16;;;:7;:16;;;;;;-1:-1:-1;;;;;131003:16:0;137775:53;;;;-1:-1:-1;;;137775:53:0;;19123:2:1;137775:53:0;;;19105:21:1;19162:2;19142:18;;;19135:30;-1:-1:-1;;;19181:18:1;;;19174:54;19245:18;;137775:53:0;18921:348:1;81717:675:0;79667:42;81908:45;:49;81904:481;;82235:67;;-1:-1:-1;;;82235:67:0;;82286:4;82235:67;;;22667:34:1;-1:-1:-1;;;;;22737:15:1;;22717:18;;;22710:43;79667:42:0;;82235;;22602:18:1;;82235:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;82230:144;;82330:28;;-1:-1:-1;;;82330:28:0;;-1:-1:-1;;;;;3773:32:1;;82330:28:0;;;3755:51:1;3728:18;;82330:28:0;3609:203:1;127579:427:0;127660:13;127676:34;127702:7;127676:25;:34::i;:::-;127660:50;;127735:5;-1:-1:-1;;;;;127729:11:0;:2;-1:-1:-1;;;;;127729:11:0;;127721:57;;;;-1:-1:-1;;;127721:57:0;;23694:2:1;127721:57:0;;;23676:21:1;23733:2;23713:18;;;23706:30;23772:34;23752:18;;;23745:62;-1:-1:-1;;;23823:18:1;;;23816:31;23864:19;;127721:57:0;23492:397:1;127721:57:0;99482:10;-1:-1:-1;;;;;127813:21:0;;;;:62;;-1:-1:-1;127838:37:0;127855:5;99482:10;128541:164;:::i;127838:37::-;127791:173;;;;-1:-1:-1;;;127791:173:0;;24096:2:1;127791:173:0;;;24078:21:1;24135:2;24115:18;;;24108:30;24174:34;24154:18;;;24147:62;24245:31;24225:18;;;24218:59;24294:19;;127791:173:0;23894:425:1;127791:173:0;127977:21;127986:2;127990:7;127977:8;:21::i;128772:301::-;128933:41;99482:10;128966:7;128933:18;:41::i;:::-;128925:99;;;;-1:-1:-1;;;128925:99:0;;;;;;;:::i;:::-;129037:28;129047:4;129053:2;129057:7;129037:9;:28::i;115240:239::-;115324:22;115332:4;115338:7;115324;:22::i;:::-;115320:152;;;115395:5;115363:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;115363:29:0;;;;;;;;;;:37;;-1:-1:-1;;115363:37:0;;;115420:40;99482:10;;115363:12;;115420:40;;115395:5;115420:40;115240:239;;:::o;164652:130::-;154090:21;109676:16;109687:4;109676:10;:16::i;89548:958::-;87648:66;89968:59;;;89964:535;;;90044:37;90063:17;90044:18;:37::i;89964:535::-;90147:17;-1:-1:-1;;;;;90118:61:0;;:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;90118:63:0;;;;;;;;-1:-1:-1;;90118:63:0;;;;;;;;;;;;:::i;:::-;;;90114:306;;90348:56;;-1:-1:-1;;;90348:56:0;;25129:2:1;90348:56:0;;;25111:21:1;25168:2;25148:18;;;25141:30;25207:34;25187:18;;;25180:62;-1:-1:-1;;;25258:18:1;;;25251:44;25312:19;;90348:56:0;24927:410:1;90114:306:0;-1:-1:-1;;;;;;;;;;;90232:28:0;;90224:82;;;;-1:-1:-1;;;90224:82:0;;25544:2:1;90224:82:0;;;25526:21:1;25583:2;25563:18;;;25556:30;25622:34;25602:18;;;25595:62;-1:-1:-1;;;25673:18:1;;;25666:39;25722:19;;90224:82:0;25342:405:1;90224:82:0;90182:140;90434:53;90452:17;90471:4;90477:9;90434:17;:53::i;85756:293::-;84981:1;85890:7;;:19;85882:63;;;;-1:-1:-1;;;85882:63:0;;25954:2:1;85882:63:0;;;25936:21:1;25993:2;25973:18;;;25966:30;26032:33;26012:18;;;26005:61;26083:18;;85882:63:0;25752:355:1;85882:63:0;84981:1;86023:7;:18;85756:293::o;86057:213::-;84937:1;86240:7;:22;86057:213::o;102660:120::-;101669:16;:14;:16::i;:::-;102719:7:::1;:15:::0;;-1:-1:-1;;102719:15:0::1;::::0;;102750:22:::1;99482:10:::0;102759:12:::1;102750:22;::::0;-1:-1:-1;;;;;3773:32:1;;;3755:51;;3743:2;3728:18;102750:22:0::1;;;;;;;102660:120::o:0;129144:151::-;129248:39;129265:4;129271:2;129275:7;129248:39;;;;;;;;;;;;:16;:39::i;102401:118::-;101410:19;:17;:19::i;:::-;102461:7:::1;:14:::0;;-1:-1:-1;;102461:14:0::1;102471:4;102461:14;::::0;;102491:20:::1;102498:12;99482:10:::0;;99402:98;125183:151;77430:13;;;;;;;77422:69;;;;-1:-1:-1;;;77422:69:0;;;;;;;:::i;:::-;125287:39:::1;125311:5;125318:7;125287:23;:39::i;142432:69::-:0;77430:13;;;;;;;77422:69;;;;-1:-1:-1;;;77422:69:0;;;;;;;:::i;:::-;142432:::o;100975:99::-;77430:13;;;;;;;77422:69;;;;-1:-1:-1;;;77422:69:0;;;;;;;:::i;:::-;101039:27:::1;:25;:27::i;85023:113::-:0;77430:13;;;;;;;77422:69;;;;-1:-1:-1;;;77422:69:0;;;;;;;:::i;:::-;85094:34:::1;:32;:34::i;82921:173::-:0;77430:13;;;;;;;77422:69;;;;-1:-1:-1;;;77422:69:0;;;;;;;:::i;:::-;83000:86:::1;19047:42;83081:4;83000:51;:86::i;114394:251::-:0;114478:25;111741:12;;;:6;:12;;;;;;:22;;;;114535:34;;;;114585:52;;111741:22;;114535:34;;111741:22;;:12;;114585:52;;114478:25;114585:52;114467:178;114394:251;;:::o;114150:112::-;114229:25;114240:4;114246:7;114229:10;:25::i;128315:155::-;128410:52;99482:10;128443:8;128453;128410:18;:52::i;129366:279::-;129497:41;99482:10;129530:7;129497:18;:41::i;:::-;129489:99;;;;-1:-1:-1;;;129489:99:0;;;;;;;:::i;:::-;129599:38;129613:4;129619:2;129623:7;129632:4;129599:13;:38::i;150526:624::-;150599:13;150625:23;150640:7;150625:14;:23::i;:::-;150661;150687:19;;;:10;:19;;;;;150661:45;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;150717:18;150738:10;127500:9;;;;;;;;;-1:-1:-1;127500:9:0;;;127423:94;150738:10;150717:31;;150830:4;150824:18;150846:1;150824:23;150820:72;;-1:-1:-1;150871:9:0;150526:624;-1:-1:-1;;150526:624:0:o;150820:72::-;150996:23;;:27;150992:108;;151071:4;151077:9;151054:33;;;;;;;;;:::i;:::-;;;;;;;;;;;;;151040:48;;;;150526:624;;;:::o;150992:108::-;151119:23;151134:7;151119:14;:23::i;:::-;151112:30;150526:624;-1:-1:-1;;;;150526:624:0:o;109784:215::-;109869:4;-1:-1:-1;;;;;;109893:58:0;;-1:-1:-1;;;109893:58:0;;:98;;;109955:36;109979:11;109955:23;:36::i;110937:514::-;111026:22;111034:4;111040:7;111026;:22::i;:::-;111021:423;;111214:39;111245:7;111214:30;:39::i;:::-;111326:49;111365:4;111372:2;111326:30;:49::i;:::-;111119:279;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;111119:279:0;;;;;;;;;;-1:-1:-1;;;111065:367:0;;;;;;;:::i;13254:948::-;13307:7;;-1:-1:-1;;;13385:17:0;;13381:106;;-1:-1:-1;;;13423:17:0;;;-1:-1:-1;13469:2:0;13459:12;13381:106;13514:8;13505:5;:17;13501:106;;13552:8;13543:17;;;-1:-1:-1;13589:2:0;13579:12;13501:106;13634:8;13625:5;:17;13621:106;;13672:8;13663:17;;;-1:-1:-1;13709:2:0;13699:12;13621:106;13754:7;13745:5;:16;13741:103;;13791:7;13782:16;;;-1:-1:-1;13827:1:0;13817:11;13741:103;13871:7;13862:5;:16;13858:103;;13908:7;13899:16;;;-1:-1:-1;13944:1:0;13934:11;13858:103;13988:7;13979:5;:16;13975:103;;14025:7;14016:16;;;-1:-1:-1;14061:1:0;14051:11;13975:103;14105:7;14096:5;:16;14092:68;;14143:1;14133:11;14188:6;13254:948;-1:-1:-1;;13254:948:0:o;132252:110::-;132328:26;132338:2;132342:7;132328:26;;;;;;;;;;;;:9;:26::i;151346:258::-;131405:4;131003:16;;;:7;:16;;;;;;-1:-1:-1;;;;;131003:16:0;151438:75;;;;-1:-1:-1;;;151438:75:0;;28044:2:1;151438:75:0;;;28026:21:1;28083:2;28063:18;;;28056:30;28122:34;28102:18;;;28095:62;-1:-1:-1;;;28173:18:1;;;28166:44;28227:19;;151438:75:0;27842:410:1;151438:75:0;151524:19;;;;:10;:19;;;;;:31;151546:9;151524:19;:31;:::i;:::-;-1:-1:-1;151573:23:0;;738:25:1;;;151573:23:0;;726:2:1;711:18;151573:23:0;592:177:1;137003:185:0;137078:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;137078:29:0;-1:-1:-1;;;;;137078:29:0;;;;;;;;:24;;137132:34;137078:24;137132:25;:34::i;:::-;-1:-1:-1;;;;;137123:57:0;;;;;;;;;;;137003:185;;:::o;131635:275::-;131728:4;131745:13;131761:34;131787:7;131761:25;:34::i;:::-;131745:50;;131825:5;-1:-1:-1;;;;;131814:16:0;:7;-1:-1:-1;;;;;131814:16:0;;:52;;;-1:-1:-1;;;;;;128662:25:0;;;128638:4;128662:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;131834:32;131814:87;;;;131894:7;-1:-1:-1;;;;;131870:31:0;:20;131882:7;131870:11;:20::i;:::-;-1:-1:-1;;;;;131870:31:0;;131806:96;131635:275;-1:-1:-1;;;;131635:275:0:o;135633:1251::-;135769:4;-1:-1:-1;;;;;135731:42:0;:34;135757:7;135731:25;:34::i;:::-;-1:-1:-1;;;;;135731:42:0;;135723:92;;;;-1:-1:-1;;;135723:92:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;135834:16:0;;135826:65;;;;-1:-1:-1;;;135826:65:0;;28865:2:1;135826:65:0;;;28847:21:1;28904:2;28884:18;;;28877:30;28943:34;28923:18;;;28916:62;-1:-1:-1;;;28994:18:1;;;28987:34;29038:19;;135826:65:0;28663:400:1;135826:65:0;135904:42;135925:4;135931:2;135935:7;135944:1;135904:20;:42::i;:::-;136087:4;-1:-1:-1;;;;;136049:42:0;:34;136075:7;136049:25;:34::i;:::-;-1:-1:-1;;;;;136049:42:0;;136041:92;;;;-1:-1:-1;;;136041:92:0;;;;;;;:::i;:::-;136205:24;;;;:15;:24;;;;;;;;136198:31;;-1:-1:-1;;;;;;136198:31:0;;;;;;-1:-1:-1;;;;;136681:15:0;;;;;;:9;:15;;;;;:20;;-1:-1:-1;;136681:20:0;;;136716:13;;;;;;;;;:18;;136198:31;136716:18;;;136756:16;;;:7;:16;;;;;;:21;;;;;;;;;;136795:27;;136221:7;;136795:27;;;166138:196;;;:::o;88395:284::-;-1:-1:-1;;;;;64059:19:0;;;88469:106;;;;-1:-1:-1;;;88469:106:0;;29270:2:1;88469:106:0;;;29252:21:1;29309:2;29289:18;;;29282:30;29348:34;29328:18;;;29321:62;-1:-1:-1;;;29399:18:1;;;29392:43;29452:19;;88469:106:0;29068:409:1;88469:106:0;-1:-1:-1;;;;;;;;;;;88586:85:0;;-1:-1:-1;;;;;;88586:85:0;-1:-1:-1;;;;;88586:85:0;;;;;;;;;;88395:284::o;89088:281::-;89197:29;89208:17;89197:10;:29::i;:::-;89255:1;89241:4;:11;:15;:28;;;;89260:9;89241:28;89237:125;;;89286:64;89326:17;89345:4;89286:39;:64::i;102149:108::-;101876:7;;;;102208:41;;;;-1:-1:-1;;;102208:41:0;;29684:2:1;102208:41:0;;;29666:21:1;29723:2;29703:18;;;29696:30;-1:-1:-1;;;29742:18:1;;;29735:50;29802:18;;102208:41:0;29482:344:1;101964:108:0;101876:7;;;;102034:9;102026:38;;;;-1:-1:-1;;;102026:38:0;;30033:2:1;102026:38:0;;;30015:21:1;30072:2;30052:18;;;30045:30;-1:-1:-1;;;30091:18:1;;;30084:46;30147:18;;102026:38:0;29831:340:1;125342:163:0;77430:13;;;;;;;77422:69;;;;-1:-1:-1;;;77422:69:0;;;;;;;:::i;:::-;125456:5:::1;:13;125464:5:::0;125456;:13:::1;:::i;:::-;-1:-1:-1::0;125480:7:0::1;:17;125490:7:::0;125480;:17:::1;:::i;101082:97::-:0;77430:13;;;;;;;77422:69;;;;-1:-1:-1;;;77422:69:0;;;;;;;:::i;:::-;101156:7:::1;:15:::0;;-1:-1:-1;;101156:15:0::1;::::0;;101082:97::o;85144:111::-;77430:13;;;;;;;77422:69;;;;-1:-1:-1;;;77422:69:0;;;;;;;:::i;79828:1111::-;77430:13;;;;;;;77422:69;;;;-1:-1:-1;;;77422:69:0;;;;;;;:::i;:::-;79667:42:::1;80264:45;:49:::0;80260:672:::1;;80335:52;::::0;-1:-1:-1;;;80335:52:0;;80381:4:::1;80335:52;::::0;::::1;3755:51:1::0;79667:42:0::1;::::0;80335:37:::1;::::0;3728:18:1;;80335:52:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;80330:591;;80412:9;80408:498;;;80446:92;::::0;-1:-1:-1;;;80446:92:0;;80500:4:::1;80446:92;::::0;::::1;22667:34:1::0;-1:-1:-1;;;;;22737:15:1;;22717:18;;;22710:43;79667:42:0::1;::::0;80446:45:::1;::::0;22602:18:1;;80446:92:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;161944:251:::0;;:::o;80408:498::-:1;-1:-1:-1::0;;;;;80591:44:0;::::1;::::0;80587:300:::1;;80664:94;::::0;-1:-1:-1;;;80664:94:0;;80720:4:::1;80664:94;::::0;::::1;22667:34:1::0;-1:-1:-1;;;;;22737:15:1;;22717:18;;;22710:43;79667:42:0::1;::::0;80664:47:::1;::::0;22602:18:1;;80664:94:0::1;22455:304:1::0;80587:300:0::1;80815:48;::::0;-1:-1:-1;;;80815:48:0;;80857:4:::1;80815:48;::::0;::::1;3755:51:1::0;79667:42:0::1;::::0;80815:33:::1;::::0;3728:18:1;;80815:48:0::1;3609:203:1::0;137331:281:0;137452:8;-1:-1:-1;;;;;137443:17:0;:5;-1:-1:-1;;;;;137443:17:0;;137435:55;;;;-1:-1:-1;;;137435:55:0;;30378:2:1;137435:55:0;;;30360:21:1;30417:2;30397:18;;;30390:30;30456:27;30436:18;;;30429:55;30501:18;;137435:55:0;30176:349:1;137435:55:0;-1:-1:-1;;;;;137501:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;137501:46:0;;;;;;;;;;137563:41;;540::1;;;137563::0;;513:18:1;137563:41:0;;;;;;;137331:281;;;:::o;130526:270::-;130639:28;130649:4;130655:2;130659:7;130639:9;:28::i;:::-;130686:47;130709:4;130715:2;130719:7;130728:4;130686:22;:47::i;:::-;130678:110;;;;-1:-1:-1;;;130678:110:0;;;;;;;:::i;126893:281::-;126966:13;126992:23;127007:7;126992:14;:23::i;:::-;127028:21;127052:10;127500:9;;;;;;;;;-1:-1:-1;127500:9:0;;;127423:94;127052:10;127028:34;;127104:1;127086:7;127080:21;:25;:86;;;;;;;;;;;;;;;;;127132:7;127141:18;:7;:16;:18::i;:::-;127115:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;127080:86;127073:93;126893:281;-1:-1:-1;;;126893:281:0:o;150226:229::-;150350:4;-1:-1:-1;;;;;;150374:33:0;;-1:-1:-1;;;150374:33:0;;:73;;;150411:36;150435:11;150411:23;:36::i;61870:151::-;61928:13;61961:52;-1:-1:-1;;;;;61973:22:0;;59712:2;61266:447;61341:13;61367:19;61399:10;61403:6;61399:1;:10;:::i;:::-;:14;;61412:1;61399:14;:::i;:::-;-1:-1:-1;;;;;61389:25:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;61389:25:0;;61367:47;;-1:-1:-1;;;61425:6:0;61432:1;61425:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;61425:15:0;;;;;;;;;-1:-1:-1;;;61451:6:0;61458:1;61451:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;61451:15:0;;;;;;;;-1:-1:-1;61482:9:0;61494:10;61498:6;61494:1;:10;:::i;:::-;:14;;61507:1;61494:14;:::i;:::-;61482:26;;61477:131;61514:1;61510;:5;61477:131;;;-1:-1:-1;;;61558:5:0;61566:3;61558:11;61549:21;;;;;;;:::i;:::-;;;;61537:6;61544:1;61537:9;;;;;;;;:::i;:::-;;;;:33;-1:-1:-1;;;;;61537:33:0;;;;;;;;-1:-1:-1;61595:1:0;61585:11;;;;;61517:3;;;:::i;:::-;;;61477:131;;;-1:-1:-1;61626:10:0;;61618:55;;;;-1:-1:-1;;;61618:55:0;;31292:2:1;61618:55:0;;;31274:21:1;;;31311:18;;;31304:30;31370:34;31350:18;;;31343:62;31422:18;;61618:55:0;31090:356:1;132589:285:0;132684:18;132690:2;132694:7;132684:5;:18::i;:::-;132735:53;132766:1;132770:2;132774:7;132783:4;132735:22;:53::i;:::-;132713:153;;;;-1:-1:-1;;;132713:153:0;;;;;;;:::i;164365:279::-;101410:19;:17;:19::i;:::-;164580:56:::1;164607:4;164613:2;164617:7;164626:9;164580:26;:56::i;88792:155::-:0;88859:37;88878:17;88859:18;:37::i;:::-;88912:27;;-1:-1:-1;;;;;88912:27:0;;;;;;;;88792:155;:::o;69156:200::-;69239:12;69271:77;69292:6;69300:4;69271:77;;;;;;;;;;;;;;;;;:20;:77::i;138400:875::-;138554:4;-1:-1:-1;;;;;138575:13:0;;64059:19;:23;138571:697;;138611:82;;-1:-1:-1;;;138611:82:0;;-1:-1:-1;;;;;138611:47:0;;;;;:82;;99482:10;;138673:4;;138679:7;;138688:4;;138611:82;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;138611:82:0;;;;;;;;-1:-1:-1;;138611:82:0;;;;;;;;;;;;:::i;:::-;;;138607:606;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;138874:6;:13;138891:1;138874:18;138870:328;;138917:60;;-1:-1:-1;;;138917:60:0;;;;;;;:::i;138870:328::-;139148:6;139142:13;139133:6;139129:2;139125:15;139118:38;138607:606;-1:-1:-1;;;;;;138744:62:0;-1:-1:-1;;;138744:62:0;;-1:-1:-1;138737:69:0;;138571:697;-1:-1:-1;139252:4:0;138400:875;;;;;;:::o;59821:727::-;59877:13;59928:14;59945:28;59967:5;59945:21;:28::i;:::-;59976:1;59945:32;59928:49;;59992:20;60026:6;-1:-1:-1;;;;;60015:18:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;60015:18:0;-1:-1:-1;59992:41:0;-1:-1:-1;60157:28:0;;;60173:2;60157:28;60214:288;-1:-1:-1;;60246:5:0;-1:-1:-1;;;60383:2:0;60372:14;;60367:30;60246:5;60354:44;60444:2;60435:11;;;-1:-1:-1;60465:21:0;;60481:5;60465:21;60214:288;;125577:349;125701:4;-1:-1:-1;;;;;;125738:51:0;;-1:-1:-1;;;125738:51:0;;:127;;-1:-1:-1;;;;;;;125806:59:0;;-1:-1:-1;;;125806:59:0;125738:127;:180;;;-1:-1:-1;;;;;;;;;;106476:51:0;;;125882:36;106367:168;133210:942;-1:-1:-1;;;;;133290:16:0;;133282:61;;;;-1:-1:-1;;;133282:61:0;;32401:2:1;133282:61:0;;;32383:21:1;;;32420:18;;;32413:30;32479:34;32459:18;;;32452:62;32531:18;;133282:61:0;32199:356:1;133282:61:0;131405:4;131003:16;;;:7;:16;;;;;;-1:-1:-1;;;;;131003:16:0;131429:31;133354:58;;;;-1:-1:-1;;;133354:58:0;;32762:2:1;133354:58:0;;;32744:21:1;32801:2;32781:18;;;32774:30;32840;32820:18;;;32813:58;32888:18;;133354:58:0;32560:352:1;133354:58:0;133425:48;133454:1;133458:2;133462:7;133471:1;133425:20;:48::i;:::-;131405:4;131003:16;;;:7;:16;;;;;;-1:-1:-1;;;;;131003:16:0;131429:31;133563:58;;;;-1:-1:-1;;;133563:58:0;;32762:2:1;133563:58:0;;;32744:21:1;32801:2;32781:18;;;32774:30;32840;32820:18;;;32813:58;32888:18;;133563:58:0;32560:352:1;133563:58:0;-1:-1:-1;;;;;133970:13:0;;;;;;:9;:13;;;;;;;;:18;;133987:1;133970:18;;;134012:16;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;134012:21:0;;;;;134051:33;134020:7;;133970:13;;134051:33;;133970:13;;134051:33;161944:251;;:::o;144324:915::-;144591:1;144579:9;:13;144575:222;;;144722:63;;-1:-1:-1;;;144722:63:0;;33119:2:1;144722:63:0;;;33101:21:1;33158:2;33138:18;;;33131:30;33197:34;33177:18;;;33170:62;-1:-1:-1;;;33248:18:1;;;33241:51;33309:19;;144722:63:0;32917:417:1;144575:222:0;144827:12;-1:-1:-1;;;;;144856:18:0;;144852:187;;144891:40;144923:7;146077:10;:17;;146050:24;;;;:15;:24;;;;;:44;;;146105:24;;;;;;;;;;;;145973:164;144891:40;144852:187;;;144961:2;-1:-1:-1;;;;;144953:10:0;:4;-1:-1:-1;;;;;144953:10:0;;144949:90;;144980:47;145013:4;145019:7;144980:32;:47::i;:::-;-1:-1:-1;;;;;145053:16:0;;145049:183;;145086:45;145123:7;145086:36;:45::i;:::-;145049:183;;;145159:4;-1:-1:-1;;;;;145153:10:0;:2;-1:-1:-1;;;;;145153:10:0;;145149:83;;145180:40;145208:2;145212:7;145180:27;:40::i;69550:332::-;69695:12;69721;69735:23;69762:6;-1:-1:-1;;;;;69762:19:0;69782:4;69762:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69720:67;;;;69805:69;69832:6;69840:7;69849:10;69861:12;69805:26;:69::i;:::-;69798:76;69550:332;-1:-1:-1;;;;;;69550:332:0:o;146764:999::-;147030:22;147091:1;147055:33;147083:4;147055:27;:33::i;:::-;:37;;;;:::i;:::-;147103:18;147124:26;;;:17;:26;;;;;;147030:62;;-1:-1:-1;147257:28:0;;;147253:328;;-1:-1:-1;;;;;147324:18:0;;147302:19;147324:18;;;:12;:18;;;;;;;;:34;;;;;;;;;147375:30;;;;;;:44;;;147492:30;;:17;:30;;;;;:43;;;147253:328;-1:-1:-1;147677:26:0;;;;:17;:26;;;;;;;;147670:33;;;-1:-1:-1;;;;;147721:18:0;;;;;:12;:18;;;;;:34;;;;;;;147714:41;146764:999::o;148058:1079::-;148336:10;:17;148311:22;;148336:21;;148356:1;;148336:21;:::i;:::-;148368:18;148389:24;;;:15;:24;;;;;;148762:10;:26;;148311:46;;-1:-1:-1;148389:24:0;;148311:46;;148762:26;;;;;;:::i;:::-;;;;;;;;;148740:48;;148826:11;148801:10;148812;148801:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;148906:28;;;:15;:28;;;;;;;:41;;;149078:24;;;;;149071:31;149113:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;148129:1008;;;148058:1079;:::o;145540:232::-;145625:14;145642:31;145670:2;145642:27;:31::i;:::-;-1:-1:-1;;;;;145684:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;145729:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;145540:232:0:o;70178:644::-;70363:12;70392:7;70388:427;;;70420:10;:17;70441:1;70420:22;70416:290;;-1:-1:-1;;;;;64059:19:0;;;70630:60;;;;-1:-1:-1;;;70630:60:0;;34098:2:1;70630:60:0;;;34080:21:1;34137:2;34117:18;;;34110:30;34176:31;34156:18;;;34149:59;34225:18;;70630:60:0;33896:353:1;70630:60:0;-1:-1:-1;70727:10:0;70720:17;;70388:427;70770:33;70778:10;70790:12;71525:17;;:21;71521:388;;71757:10;71751:17;71814:15;71801:10;71797:2;71793:19;71786:44;71521:388;71884:12;71877:20;;-1:-1:-1;;;71877:20:0;;;;;;;;:::i;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;774:173::-;842:20;;-1:-1:-1;;;;;891:31:1;;881:42;;871:70;;937:1;934;927:12;871:70;774:173;;;:::o;952:186::-;1011:6;1064:2;1052:9;1043:7;1039:23;1035:32;1032:52;;;1080:1;1077;1070:12;1032:52;1103:29;1122:9;1103:29;:::i;1143:367::-;1206:8;1216:6;1270:3;1263:4;1255:6;1251:17;1247:27;1237:55;;1288:1;1285;1278:12;1237:55;-1:-1:-1;1311:20:1;;-1:-1:-1;;;;;1343:30:1;;1340:50;;;1386:1;1383;1376:12;1340:50;1423:4;1415:6;1411:17;1399:29;;1483:3;1476:4;1466:6;1463:1;1459:14;1451:6;1447:27;1443:38;1440:47;1437:67;;;1500:1;1497;1490:12;1437:67;1143:367;;;;;:::o;1515:511::-;1610:6;1618;1626;1679:2;1667:9;1658:7;1654:23;1650:32;1647:52;;;1695:1;1692;1685:12;1647:52;1718:29;1737:9;1718:29;:::i;:::-;1708:39;;1798:2;1787:9;1783:18;1770:32;-1:-1:-1;;;;;1817:6:1;1814:30;1811:50;;;1857:1;1854;1847:12;1811:50;1896:70;1958:7;1949:6;1938:9;1934:22;1896:70;:::i;:::-;1515:511;;1985:8;;-1:-1:-1;1870:96:1;;-1:-1:-1;;;;1515:511:1:o;2031:250::-;2116:1;2126:113;2140:6;2137:1;2134:13;2126:113;;;2216:11;;;2210:18;2197:11;;;2190:39;2162:2;2155:10;2126:113;;;-1:-1:-1;;2273:1:1;2255:16;;2248:27;2031:250::o;2286:271::-;2328:3;2366:5;2360:12;2393:6;2388:3;2381:19;2409:76;2478:6;2471:4;2466:3;2462:14;2455:4;2448:5;2444:16;2409:76;:::i;:::-;2539:2;2518:15;-1:-1:-1;;2514:29:1;2505:39;;;;2546:4;2501:50;;2286:271;-1:-1:-1;;2286:271:1:o;2562:220::-;2711:2;2700:9;2693:21;2674:4;2731:45;2772:2;2761:9;2757:18;2749:6;2731:45;:::i;2787:632::-;2958:2;3010:21;;;3080:13;;2983:18;;;3102:22;;;2929:4;;2958:2;3181:15;;;;3155:2;3140:18;;;2929:4;3224:169;3238:6;3235:1;3232:13;3224:169;;;3299:13;;3287:26;;3368:15;;;;3333:12;;;;3260:1;3253:9;3224:169;;;-1:-1:-1;3410:3:1;;2787:632;-1:-1:-1;;;;;;2787:632:1:o;3424:180::-;3483:6;3536:2;3524:9;3515:7;3511:23;3507:32;3504:52;;;3552:1;3549;3542:12;3504:52;-1:-1:-1;3575:23:1;;3424:180;-1:-1:-1;3424:180:1:o;3817:254::-;3885:6;3893;3946:2;3934:9;3925:7;3921:23;3917:32;3914:52;;;3962:1;3959;3952:12;3914:52;3985:29;4004:9;3985:29;:::i;:::-;3975:39;4061:2;4046:18;;;;4033:32;;-1:-1:-1;;;3817:254:1:o;4076:328::-;4153:6;4161;4169;4222:2;4210:9;4201:7;4197:23;4193:32;4190:52;;;4238:1;4235;4228:12;4190:52;4261:29;4280:9;4261:29;:::i;:::-;4251:39;;4309:38;4343:2;4332:9;4328:18;4309:38;:::i;:::-;4299:48;;4394:2;4383:9;4379:18;4366:32;4356:42;;4076:328;;;;;:::o;4776:254::-;4844:6;4852;4905:2;4893:9;4884:7;4880:23;4876:32;4873:52;;;4921:1;4918;4911:12;4873:52;4957:9;4944:23;4934:33;;4986:38;5020:2;5009:9;5005:18;4986:38;:::i;:::-;4976:48;;4776:254;;;;;:::o;5035:127::-;5096:10;5091:3;5087:20;5084:1;5077:31;5127:4;5124:1;5117:15;5151:4;5148:1;5141:15;5167:719;5210:5;5263:3;5256:4;5248:6;5244:17;5240:27;5230:55;;5281:1;5278;5271:12;5230:55;5317:6;5304:20;-1:-1:-1;;;;;5380:2:1;5376;5373:10;5370:36;;;5386:18;;:::i;:::-;5461:2;5455:9;5429:2;5515:13;;-1:-1:-1;;5511:22:1;;;5535:2;5507:31;5503:40;5491:53;;;5559:18;;;5579:22;;;5556:46;5553:72;;;5605:18;;:::i;:::-;5645:10;5641:2;5634:22;5680:2;5672:6;5665:18;5726:3;5719:4;5714:2;5706:6;5702:15;5698:26;5695:35;5692:55;;;5743:1;5740;5733:12;5692:55;5807:2;5800:4;5792:6;5788:17;5781:4;5773:6;5769:17;5756:54;5854:1;5847:4;5842:2;5834:6;5830:15;5826:26;5819:37;5874:6;5865:15;;;;;;5167:719;;;;:::o;5891:322::-;5960:6;6013:2;6001:9;5992:7;5988:23;5984:32;5981:52;;;6029:1;6026;6019:12;5981:52;6069:9;6056:23;-1:-1:-1;;;;;6094:6:1;6091:30;6088:50;;;6134:1;6131;6124:12;6088:50;6157;6199:7;6190:6;6179:9;6175:22;6157:50;:::i;6218:395::-;6295:6;6303;6356:2;6344:9;6335:7;6331:23;6327:32;6324:52;;;6372:1;6369;6362:12;6324:52;6395:29;6414:9;6395:29;:::i;:::-;6385:39;;6475:2;6464:9;6460:18;6447:32;-1:-1:-1;;;;;6494:6:1;6491:30;6488:50;;;6534:1;6531;6524:12;6488:50;6557;6599:7;6590:6;6579:9;6575:22;6557:50;:::i;:::-;6547:60;;;6218:395;;;;;:::o;6618:573::-;6722:6;6730;6738;6746;6799:2;6787:9;6778:7;6774:23;6770:32;6767:52;;;6815:1;6812;6805:12;6767:52;6851:9;6838:23;6828:33;;6908:2;6897:9;6893:18;6880:32;6870:42;;6963:2;6952:9;6948:18;6935:32;-1:-1:-1;;;;;6982:6:1;6979:30;6976:50;;;7022:1;7019;7012:12;6976:50;7061:70;7123:7;7114:6;7103:9;7099:22;7061:70;:::i;:::-;6618:573;;;;-1:-1:-1;7150:8:1;-1:-1:-1;;;;6618:573:1:o;7196:962::-;7338:6;7346;7354;7362;7370;7378;7386;7394;7447:3;7435:9;7426:7;7422:23;7418:33;7415:53;;;7464:1;7461;7454:12;7415:53;7500:9;7487:23;7477:33;;7561:2;7550:9;7546:18;7533:32;-1:-1:-1;;;;;7625:2:1;7617:6;7614:14;7611:34;;;7641:1;7638;7631:12;7611:34;7664:50;7706:7;7697:6;7686:9;7682:22;7664:50;:::i;:::-;7654:60;;7767:2;7756:9;7752:18;7739:32;7723:48;;7796:2;7786:8;7783:16;7780:36;;;7812:1;7809;7802:12;7780:36;;7835:52;7879:7;7868:8;7857:9;7853:24;7835:52;:::i;:::-;7825:62;;;7934:2;7923:9;7919:18;7906:32;7896:42;;7985:3;7974:9;7970:19;7957:33;7947:43;;8037:3;8026:9;8022:19;8009:33;7999:43;;8089:3;8078:9;8074:19;8061:33;8051:43;;8113:39;8147:3;8136:9;8132:19;8113:39;:::i;:::-;8103:49;;7196:962;;;;;;;;;;;:::o;8163:118::-;8249:5;8242:13;8235:21;8228:5;8225:32;8215:60;;8271:1;8268;8261:12;8286:315;8351:6;8359;8412:2;8400:9;8391:7;8387:23;8383:32;8380:52;;;8428:1;8425;8418:12;8380:52;8451:29;8470:9;8451:29;:::i;:::-;8441:39;;8530:2;8519:9;8515:18;8502:32;8543:28;8565:5;8543:28;:::i;:::-;8590:5;8580:15;;;8286:315;;;;;:::o;8606:538::-;8701:6;8709;8717;8725;8778:3;8766:9;8757:7;8753:23;8749:33;8746:53;;;8795:1;8792;8785:12;8746:53;8818:29;8837:9;8818:29;:::i;:::-;8808:39;;8866:38;8900:2;8889:9;8885:18;8866:38;:::i;:::-;8856:48;;8951:2;8940:9;8936:18;8923:32;8913:42;;9006:2;8995:9;8991:18;8978:32;-1:-1:-1;;;;;9025:6:1;9022:30;9019:50;;;9065:1;9062;9055:12;9019:50;9088;9130:7;9121:6;9110:9;9106:22;9088:50;:::i;:::-;9078:60;;;8606:538;;;;;;;:::o;9149:241::-;9205:6;9258:2;9246:9;9237:7;9233:23;9229:32;9226:52;;;9274:1;9271;9264:12;9226:52;9313:9;9300:23;9332:28;9354:5;9332:28;:::i;9395:260::-;9463:6;9471;9524:2;9512:9;9503:7;9499:23;9495:32;9492:52;;;9540:1;9537;9530:12;9492:52;9563:29;9582:9;9563:29;:::i;:::-;9553:39;;9611:38;9645:2;9634:9;9630:18;9611:38;:::i;10704:127::-;10765:10;10760:3;10756:20;10753:1;10746:31;10796:4;10793:1;10786:15;10820:4;10817:1;10810:15;10836:125;10901:9;;;10922:10;;;10919:36;;;10935:18;;:::i;11316:127::-;11377:10;11372:3;11368:20;11365:1;11358:31;11408:4;11405:1;11398:15;11432:4;11429:1;11422:15;11448:380;11527:1;11523:12;;;;11570;;;11591:61;;11645:4;11637:6;11633:17;11623:27;;11591:61;11698:2;11690:6;11687:14;11667:18;11664:38;11661:161;;11744:10;11739:3;11735:20;11732:1;11725:31;11779:4;11776:1;11769:15;11807:4;11804:1;11797:15;11661:161;;11448:380;;;:::o;11959:1176::-;12225:3;12254:1;12287:6;12281:13;12317:36;12343:9;12317:36;:::i;:::-;12372:1;12389:18;;;12416:133;;;;12563:1;12558:356;;;;12382:532;;12416:133;-1:-1:-1;;12449:24:1;;12437:37;;12522:14;;12515:22;12503:35;;12494:45;;;-1:-1:-1;12416:133:1;;12558:356;12589:6;12586:1;12579:17;12619:4;12664:2;12661:1;12651:16;12689:1;12703:165;12717:6;12714:1;12711:13;12703:165;;;12795:14;;12782:11;;;12775:35;12838:16;;;;12732:10;;12703:165;;;12707:3;;;12897:6;12892:3;12888:16;12881:23;;12382:532;;;;;12945:6;12939:13;12961:68;13020:8;13015:3;13008:4;13000:6;12996:17;12961:68;:::i;:::-;-1:-1:-1;;;13051:18:1;;13078:22;;;13127:1;13116:13;;11959:1176;-1:-1:-1;;;;11959:1176:1:o;13140:545::-;13242:2;13237:3;13234:11;13231:448;;;13278:1;13303:5;13299:2;13292:17;13348:4;13344:2;13334:19;13418:2;13406:10;13402:19;13399:1;13395:27;13389:4;13385:38;13454:4;13442:10;13439:20;13436:47;;;-1:-1:-1;13477:4:1;13436:47;13532:2;13527:3;13523:12;13520:1;13516:20;13510:4;13506:31;13496:41;;13587:82;13605:2;13598:5;13595:13;13587:82;;;13650:17;;;13631:1;13620:13;13587:82;;13861:1352;13987:3;13981:10;-1:-1:-1;;;;;14006:6:1;14003:30;14000:56;;;14036:18;;:::i;:::-;14065:97;14155:6;14115:38;14147:4;14141:11;14115:38;:::i;:::-;14109:4;14065:97;:::i;:::-;14217:4;;14281:2;14270:14;;14298:1;14293:663;;;;15000:1;15017:6;15014:89;;;-1:-1:-1;15069:19:1;;;15063:26;15014:89;-1:-1:-1;;13818:1:1;13814:11;;;13810:24;13806:29;13796:40;13842:1;13838:11;;;13793:57;15116:81;;14263:944;;14293:663;11906:1;11899:14;;;11943:4;11930:18;;-1:-1:-1;;14329:20:1;;;14447:236;14461:7;14458:1;14455:14;14447:236;;;14550:19;;;14544:26;14529:42;;14642:27;;;;14610:1;14598:14;;;;14477:19;;14447:236;;;14451:3;14711:6;14702:7;14699:19;14696:201;;;14772:19;;;14766:26;-1:-1:-1;;14855:1:1;14851:14;;;14867:3;14847:24;14843:37;14839:42;14824:58;14809:74;;14696:201;-1:-1:-1;;;;;14943:1:1;14927:14;;;14923:22;14910:36;;-1:-1:-1;13861:1352:1:o;15218:175::-;15255:3;15299:4;15292:5;15288:16;15328:4;15319:7;15316:17;15313:43;;15336:18;;:::i;:::-;15385:1;15372:15;;15218:175;-1:-1:-1;;15218:175:1:o;15398:135::-;15437:3;15458:17;;;15455:43;;15478:18;;:::i;:::-;-1:-1:-1;15525:1:1;15514:13;;15398:135::o;16645:408::-;16847:2;16829:21;;;16886:2;16866:18;;;16859:30;16925:34;16920:2;16905:18;;16898:62;-1:-1:-1;;;16991:2:1;16976:18;;16969:42;17043:3;17028:19;;16645:408::o;17058:::-;17260:2;17242:21;;;17299:2;17279:18;;;17272:30;17338:34;17333:2;17318:18;;17311:62;-1:-1:-1;;;17404:2:1;17389:18;;17382:42;17456:3;17441:19;;17058:408::o;19684:168::-;19757:9;;;19788;;19805:15;;;19799:22;;19785:37;19775:71;;19826:18;;:::i;23242:245::-;23309:6;23362:2;23350:9;23341:7;23337:23;23333:32;23330:52;;;23378:1;23375;23368:12;23330:52;23410:9;23404:16;23429:28;23451:5;23429:28;:::i;24324:409::-;24526:2;24508:21;;;24565:2;24545:18;;;24538:30;24604:34;24599:2;24584:18;;24577:62;-1:-1:-1;;;24670:2:1;24655:18;;24648:43;24723:3;24708:19;;24324:409::o;24738:184::-;24808:6;24861:2;24849:9;24840:7;24836:23;24832:32;24829:52;;;24877:1;24874;24867:12;24829:52;-1:-1:-1;24900:16:1;;24738:184;-1:-1:-1;24738:184:1:o;26112:407::-;26314:2;26296:21;;;26353:2;26333:18;;;26326:30;26392:34;26387:2;26372:18;;26365:62;-1:-1:-1;;;26458:2:1;26443:18;;26436:41;26509:3;26494:19;;26112:407::o;26524:496::-;26703:3;26741:6;26735:13;26757:66;26816:6;26811:3;26804:4;26796:6;26792:17;26757:66;:::i;:::-;26886:13;;26845:16;;;;26908:70;26886:13;26845:16;26955:4;26943:17;;26908:70;:::i;:::-;26994:20;;26524:496;-1:-1:-1;;;;26524:496:1:o;27025:812::-;27436:25;27431:3;27424:38;27406:3;27491:6;27485:13;27507:75;27575:6;27570:2;27565:3;27561:12;27554:4;27546:6;27542:17;27507:75;:::i;:::-;-1:-1:-1;;;27641:2:1;27601:16;;;27633:11;;;27626:40;27691:13;;27713:76;27691:13;27775:2;27767:11;;27760:4;27748:17;;27713:76;:::i;:::-;27809:17;27828:2;27805:26;;27025:812;-1:-1:-1;;;;27025:812:1:o;28257:401::-;28459:2;28441:21;;;28498:2;28478:18;;;28471:30;28537:34;28532:2;28517:18;;28510:62;-1:-1:-1;;;28603:2:1;28588:18;;28581:35;28648:3;28633:19;;28257:401::o;30530:414::-;30732:2;30714:21;;;30771:2;30751:18;;;30744:30;30810:34;30805:2;30790:18;;30783:62;-1:-1:-1;;;30876:2:1;30861:18;;30854:48;30934:3;30919:19;;30530:414::o;30949:136::-;30988:3;31016:5;31006:39;;31025:18;;:::i;:::-;-1:-1:-1;;;31061:18:1;;30949:136::o;31451:489::-;-1:-1:-1;;;;;31720:15:1;;;31702:34;;31772:15;;31767:2;31752:18;;31745:43;31819:2;31804:18;;31797:34;;;31867:3;31862:2;31847:18;;31840:31;;;31645:4;;31888:46;;31914:19;;31906:6;31888:46;:::i;31945:249::-;32014:6;32067:2;32055:9;32046:7;32042:23;32038:32;32035:52;;;32083:1;32080;32073:12;32035:52;32115:9;32109:16;32134:30;32158:5;32134:30;:::i;33339:287::-;33468:3;33506:6;33500:13;33522:66;33581:6;33576:3;33569:4;33561:6;33557:17;33522:66;:::i;:::-;33604:16;;;;;33339:287;-1:-1:-1;;33339:287:1:o;33631:128::-;33698:9;;;33719:11;;;33716:37;;;33733:18;;:::i;33764:127::-;33825:10;33820:3;33816:20;33813:1;33806:31;33856:4;33853:1;33846:15;33880:4;33877:1;33870:15
Swarm Source
ipfs://184e5494a28565fb289f50a3674e5c3c51975b5e8b60fbc127adf72c2988518c
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.