ETH Price: $3,490.71 (-0.08%)
 

Overview

Max Total Supply

999 TINYFROG

Holders

404

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Balance
2 TINYFROG
0x777c47498b42dbe449fb4cb810871a46cd777777
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

tiny based frogs is Base's fully onchain dynamic NFT collection, featuring unfathomly based onchain interactive mechanics.

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:
TinyFrog

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 12 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 2 of 12 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 3 of 12 : Math.sol
// SPDX-License-Identifier: MIT
// 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 4 of 12 : SignedMath.sol
// SPDX-License-Identifier: MIT
// 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 5 of 12 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";
import "./math/SignedMath.sol";

/**
 * @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 6 of 12 : base64.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0;

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides functions for encoding/decoding base64
library Base64 {
    string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    bytes  internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000"
                                            hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
                                            hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
                                            hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';

        // load the table into memory
        string memory table = TABLE_ENCODE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
                // read 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // write 4 characters
                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(        input,  0x3F))))
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }

        return result;
    }

    function decode(string memory _data) internal pure returns (bytes memory) {
        bytes memory data = bytes(_data);

        if (data.length == 0) return new bytes(0);
        require(data.length % 4 == 0, "invalid base64 decoder input");

        // load the table into memory
        bytes memory table = TABLE_DECODE;

        // every 4 characters represent 3 bytes
        uint256 decodedLen = (data.length / 4) * 3;

        // add some extra buffer at the end required for the writing
        bytes memory result = new bytes(decodedLen + 32);

        assembly {
            // padding with '='
            let lastBytes := mload(add(data, mload(data)))
            if eq(and(lastBytes, 0xFF), 0x3d) {
                decodedLen := sub(decodedLen, 1)
                if eq(and(lastBytes, 0xFFFF), 0x3d3d) {
                    decodedLen := sub(decodedLen, 1)
                }
            }

            // set the actual output length
            mstore(result, decodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 4 characters at a time
            for {} lt(dataPtr, endPtr) {}
            {
               // read 4 characters
               dataPtr := add(dataPtr, 4)
               let input := mload(dataPtr)

               // write 3 bytes
               let output := add(
                   add(
                       shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)),
                       shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))),
                   add(
                       shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)),
                               and(mload(add(tablePtr, and(        input , 0xFF))), 0xFF)
                    )
                )
                mstore(resultPtr, shl(232, output))
                resultPtr := add(resultPtr, 3)
            }
        }

        return result;
    }
}

File 7 of 12 : ITinyFrogRenderer.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

interface ITinyFrogRenderer{
  // svg rendering
  function getSVG(uint256 seed, bool showBasedPlatform) external view returns (string memory);
  function getUnrevealedSVG(uint256 seed) external view returns (string memory);
  function getDeadSVG(uint256 seed) external view returns (string memory);

  // metadata
  function getTraitsMetadata(uint256 seed, bool showBasedPlatform) external view returns (string memory);
}

File 8 of 12 : TinyFrog.sol
// SPDX-License-Identifier: MIT

/**
              @..@
             (----)
            ( >__< )
            ^^ ~~ ^^
             
           * ribbit *
**/

pragma solidity ^0.8.4;

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import 'base64-sol/base64.sol';

import "./ITinyFrogRenderer.sol";
import "./TinyFrogRenderer.sol";

/// @title EIP-721 Metadata Update Extension
interface IERC4906 {
    /// @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);
}

/// @title Tiny Based Frog
/// @author @dailo3000
/// @notice Tiny Based Frog is an interactive 100% fully on-chain tiny friend
//contract TinyFrog is ERC721A, Ownable {
contract TinyFrog is TinyFrogRenderer, ERC721A, IERC4906, Ownable {
    
    uint256 public MAX_TOKEN_SUPPLY = 1000;

    // 3 pricing tiers
    uint256[] public mintSupplyLimits = [0, 250, 500, 750];
    uint256[] public mintPricing = [0.005 ether, 0.01 ether, 0.015 ether, 0.02 ether];

    enum MintStatus {
        CLOSED, // 0
        PUBLIC // 1
    }

    // mint pricing
    MintStatus public mintStatus = MintStatus.CLOSED;
    uint256 public maxTokensOwnableInWallet = 25;

    // flags
    bool public revealed = false;
    bool public morphEnabled = false;
    bool public boilEnabled = false;
    bool public soulbindEnabled = false;

    // character data
    mapping(uint256 => uint256) public seeds; 
    mapping(uint256 => bool) public soulbound; 
    mapping(uint256 => bool) public dead; 

    // contracts
    ITinyFrogRenderer public contractRenderer;

    // events
    event TinyFrogBoiled(uint256 indexed tokenId); // emitted when an TinyFrog gets boiled (burned)
    event TinyFrogMorphed(uint256 indexed tokenId); // emitted when an TinyFrog gets rerolled
    event TinyFrogSoulbound(uint256 indexed tokenId); // emitted when an TinyFrog gets soulbound
    event TinyFrogDied(uint256 indexed tokenId); // emitted when an TinyFrog dies

    // used by storefronts for locking/unlocking
    event TokenLocked(uint256 indexed tokenId, address indexed approvedContract);
    event Lock(address indexed unlocker, uint256 indexed id);
    //event TokenUnlocked(uint256 indexed tokenId, address indexed approvedContract);

    // error when trying to transfer soulbound token
    error TinyFrogIsSoulbound(uint256 tokenId);

    constructor() ERC721A("Tiny Based Frogs", "TINYFROG") {
        contractRenderer = ITinyFrogRenderer(this);
    }

    modifier verifyTokenId(uint256 tokenId) {
        require(tokenId >= _startTokenId() && tokenId <= _totalMinted(), "Invalid tokenId");
        _;
    }

    modifier onlyApprovedOrOwner(uint256 tokenId) {
        require(
            _ownershipOf(tokenId).addr == _msgSender() ||
                getApproved(tokenId) == _msgSender(),
            "Not approved nor owner"
        );
        
        _;
    }

    modifier verifySupply(uint256 numToMint) {
        require(numToMint > 0, "Mint at least 1");
        require(_totalMinted() + numToMint <= MAX_TOKEN_SUPPLY, "Overcap");

        _;
    }

    // randomize seed
    function _saveNewRandomSeed(uint256 tokenId) private {
        seeds[tokenId] = uint256(keccak256(abi.encodePacked(blockhash(block.number - 1), tokenId, msg.sender)));
    }

    /// @notice Boil a frog, make soup
    /// @param tokenId The tokenID for the frog
    function boilFrog(uint256 tokenId) external onlyApprovedOrOwner(tokenId) {
        require(boilEnabled == true);
        _burn(tokenId);
        dead[tokenId] = true;

        emit TinyFrogBoiled(tokenId);
        emit TinyFrogDied(tokenId);
    }

    function _startTokenId() override internal pure virtual returns (uint256) {
        return 1;
    }

    function _mintFrog(address to, uint256 numToMint) verifySupply(numToMint) private {
        uint256 startTokenId = _startTokenId() + _totalMinted();
        for(uint256 tokenId = startTokenId; tokenId < startTokenId+numToMint; tokenId++) {
            _saveNewRandomSeed(tokenId);
        }

         _safeMint(to, numToMint);
    }

    function reserveFrog(address to, uint256 numToMint) external onlyOwner {
        _mintFrog(to, numToMint);
    }

    function reserveFrogMany(address[] calldata recipients, uint256 numToMint) external onlyOwner {
        uint256 num = recipients.length;
        require(num > 0);

        for (uint256 i = 0; i < num; ++i) {
            _mintFrog(recipients[i], numToMint);    
        }
    }

    /// @notice Mint frogs
    /// @param numToMint The number of frogs to mint 
    function publicMintFrog(uint256 numToMint) external payable {
        require(mintStatus == MintStatus.PUBLIC, "Public mint closed");
        require(msg.value >= _getPrice(numToMint), "Incorrect payable" );

        // check max mint
        require(_numberMinted(msg.sender) + numToMint <= maxTokensOwnableInWallet, "Exceeds max mints");

        _mintFrog(msg.sender, numToMint);
    }

    // taken from 'ERC721AQueryable.sol'
    function tokensOfOwner(address owner) external view returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }

    function _getPrice(uint256 numPayable) private view returns (uint256) {
        uint256 numMintedAlready = _totalMinted();
        uint tierIndex = 0;

        for(uint i = mintSupplyLimits.length-1; i >= 0; --i ) {
            if (numMintedAlready >= mintSupplyLimits[i]) {
                tierIndex = i;
                break;
            }
        }

        return numPayable * mintPricing[tierIndex];
    }

    ///////////////////////////
    // -- GETTERS/SETTERS --
    ///////////////////////////
    function getNumMinted() external view returns (uint256) {
        return _totalMinted();
    }

    function setPricing(uint256[] calldata supply, uint256[] calldata pricing) external onlyOwner {
        require(mintSupplyLimits.length == pricing.length);

        mintSupplyLimits = supply;
        mintPricing = pricing;
    }

    function setTokenMaxPerWallet(uint256 maxTokens) external onlyOwner {
        maxTokensOwnableInWallet = maxTokens;
    }

    function getPrice(uint256 numToMint) external view returns (uint256) {
        return _getPrice(numToMint);
    }

    function setMaxTokenSupply(uint256 _maxTokenSupply) external onlyOwner {
        MAX_TOKEN_SUPPLY = _maxTokenSupply;
    }

    function setMintStatus(uint256 _status) external onlyOwner {
        mintStatus = MintStatus(_status);
    }

    function setContractRenderer(address newAddress) external onlyOwner {
        contractRenderer = ITinyFrogRenderer(newAddress);
    }

    function setBoilEnabled(bool _enabled) external onlyOwner {
        boilEnabled = _enabled;
    }

    function setSoulbindEnabled(bool _enabled) external onlyOwner {
        soulbindEnabled = _enabled;
    }

    function setMorphEnabled(bool _enabled) external onlyOwner {
        morphEnabled = _enabled;
    }

    function numberMinted(address addr) external view returns(uint256){
        return _numberMinted(addr);
    }

    function setEnableReveal(bool _revealed) external onlyOwner {
        revealed = _revealed;

        // force metadata update
        emit BatchMetadataUpdate(1, _totalMinted());
    }

    ///////////////////////////
    // -- MORPH --
    ///////////////////////////
    function _morphFrog(uint256 tokenId) private {
        require(!dead[tokenId], "Already dead");
        require(!soulbound[tokenId], "Already soulbound");

        // roll dice to see if dead
        uint256 roll = uint256(keccak256(abi.encodePacked(blockhash(block.number - 1), tokenId, msg.sender, "ribbit")));

        // roll
        if (roll % 3 == 0) { // failed, now frog dies
            soulbound[tokenId] = true;
            dead[tokenId] = true;

            emit TinyFrogSoulbound(tokenId);
            emit TinyFrogDied(tokenId);

            // lock token (for storefronts not to sell)
            emit TokenLocked(tokenId, address(this));
            emit Lock(address(this), tokenId);
        } else { 
            // successfully morphed
            _saveNewRandomSeed(tokenId);
            emit TinyFrogMorphed(tokenId);
        }

        // force storefronts to refresh metadata
        emit MetadataUpdate(tokenId); 
    }

    /// @notice morph frogs, with a chance of dying (being soulbound)
    /// @param tokenIds Array of owned tokenIds of frogs to morph, use format [1,40,50]
    function morphMany(uint256[] calldata tokenIds) external {
        require(morphEnabled, "Morph disabled");

        uint256 num = tokenIds.length;
        for (uint256 i = 0; i < num; ++i) {
            uint256 tokenId = tokenIds[i];
            require(_ownershipOf(tokenId).addr == _msgSender(), "Must own");
            
            _morphFrog(tokenId);
        }
    }

    /// @notice morph a frog, with chance of dying (being soulbound)
    /// @param tokenId tokenId of frogs to morph
    function morphFrog(uint256 tokenId) external {
        require(morphEnabled, "Morph disabled");
        require(_ownershipOf(tokenId).addr == _msgSender(), "Must own");
        
        _morphFrog(tokenId);
    }

    ///////////////////////////
    // -- SOUL BINDING --
    ///////////////////////////

    // prevent token transfers on soulbound frogs
    function _beforeTokenTransfers(address from, address, uint256 startTokenId, uint256 quantity) internal view override {
        // allow for minting
        if (from == address(0))  
            return;

        for (uint256 tokenId = startTokenId; tokenId < startTokenId + quantity; ++tokenId) {
            // if soulbound do not allow transfers/burning
            if (soulbound[tokenId]) {
                revert TinyFrogIsSoulbound(tokenId);
            }
        }
    }

    function isDead(uint256 tokenId) external view verifyTokenId(tokenId) returns (bool) {
        return dead[tokenId];
    }

    function isSoulbound(uint256 tokenId) external view verifyTokenId(tokenId) returns (bool) {
        return soulbound[tokenId];
    }

    /// @notice permanently soulbind several frog
    /// @param tokenIds Array of owned tokenIds of frogs to soulbind, use format [1,40,50]
    function soulbindMany(uint256[] calldata tokenIds) external {
        require(soulbindEnabled);

        uint256 num = tokenIds.length;
        for (uint256 i = 0; i < num; ++i) {
            uint256 tokenId = tokenIds[i];
            require(_ownershipOf(tokenId).addr == _msgSender(), "Must own");
            
            _soulbindFrog(tokenId);
        }
    }

    /// @notice permanently soulbind frog
    /// @param tokenId tokenId of frogs to soulbind
    function soulbindFrog(uint256 tokenId) external {
        require(soulbindEnabled);
        require(_ownershipOf(tokenId).addr == _msgSender(), "Must own");
        
        _soulbindFrog(tokenId);
    }

    // soulbind single frog
    function _soulbindFrog(uint256 tokenId) private {
        require(!soulbound[tokenId], "Already soulbound");
        soulbound[tokenId] = true;

        emit TinyFrogSoulbound(tokenId);
        emit MetadataUpdate(tokenId); // force storefronts to refresh metadata
    }

    ///////////////////////////
    // -- TOKEN URI --
    ///////////////////////////
    function _tokenURI(uint256 tokenId) private view returns (string memory) {
        //string[13] memory lookup = [  '0', '1', '2', '3', '4', '5', '6', '7', '8','9', '10','11', '12'];
        uint256 seed = seeds[tokenId];

        bool isTokenDead = dead[tokenId];
        bool isTokenSoulbound = soulbound[tokenId];

        // get image
        string memory image = isTokenDead ? contractRenderer.getDeadSVG(seed) : contractRenderer.getSVG(seed, isTokenSoulbound);

        string memory json = Base64.encode(
            bytes(string(
                abi.encodePacked(
                    '{"name": ', '"Tiny Based Frog #', Strings.toString(tokenId),'",',
                    '"description": "Tiny Based Frogs is a 100% fully on-chain NFT collection, featuring unfathomly based on-chain interactive mechanics.",',
                    '"attributes":[',
                        contractRenderer.getTraitsMetadata(seed, isTokenSoulbound),
                        _getStatsMetadata(seed),
                        '{"trait_type":"Alive", "value":',isTokenDead ? '"No"' : '"Yes"','},',
                        '{"trait_type":"Soulbound", "value":',isTokenSoulbound ? '"Yes"' : '"No"','}'
                    '],',
                    '"image": "data:image/svg+xml;base64,', Base64.encode(bytes(image)), '"}' 
                )
            ))
        );

        return string(abi.encodePacked('data:application/json;base64,', json));
    }

    function _tokenUnrevealedURI(uint256 tokenId) private view returns (string memory) {
        uint256 seed = seeds[tokenId];
        string memory image = contractRenderer.getUnrevealedSVG(seed);

        string memory json = Base64.encode(
            bytes(string(
                abi.encodePacked(
                    '{"name": ', '"Tiny Based Frog #', Strings.toString(tokenId),'",',
                    '"description": "Tiny Based Frogs is a 100% fully on-chain NFT collection, featuring unfathomly based on-chain interactive mechanics.",',
                    '"attributes":[{"trait_type":"Waiting to hatch", "value":"True"}],',
                    '"image": "data:image/svg+xml;base64,', Base64.encode(bytes(image)), '"}' 
                )
            ))
        );

        return string(abi.encodePacked('data:application/json;base64,', json));
    }

    function tokenURI(uint256 tokenId) override(ERC721A) public view verifyTokenId(tokenId) returns (string memory) {
        if (revealed) 
            return _tokenURI(tokenId);
        else
            return _tokenUnrevealedURI(tokenId);
    }

    function _randStat(uint256 seed, uint256 div, uint256 min, uint256 max) private pure returns (uint256) {
        return min + (seed/div) % (max-min);
    }

    function _getStatsMetadata(uint256 seed) private pure returns (string memory) {
        //string[11] memory lookup = [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10' ];

        string memory metadata = string(abi.encodePacked(
          '{"trait_type":"Hop Power", "display_type": "number", "value":', Strings.toString(_randStat(seed, 2, 1, 5)), '},',
          '{"trait_type":"Stamina", "display_type": "number", "value":', Strings.toString(_randStat(seed, 3, 1, 10)), '},',
          '{"trait_type":"Lily Pad Balance", "display_type": "number", "value":', Strings.toString(_randStat(seed, 4, 1, 10)), '},',
          '{"trait_type":"Swim Speed", "display_type": "number", "value":', Strings.toString(_randStat(seed, 5, 1, 10)), '},'
        ));

        return metadata;
    }

    function withdraw(address to) public onlyOwner {
        uint256 contractBalance = address(this).balance;
        (bool success,) = payable(to).call{ value: contractBalance }("");
        require(success, "WITHDRAWAL_FAILED");
    }
}

File 9 of 12 : TinyFrogData.sol
// SPDX-License-Identifier: MIT
// AUTOGENERATED FILE by Thu Jul 27 2023 00:49:44 GMT-0700 (Pacific Daylight Time)

pragma solidity ^0.8.0;

contract TinyFrogData {
	string[] public fullPalettes = ['ff00ff', '000000', 'ffffff', 'bcbcbc', '7c7c7c', 'f8b800', 'f0d0b0', '6844fc', 'fcfcfc', 'f83800', 'f8b8f8', 'f7eecb', '004058', 'fce0a8', '940084', '00a800', 'e40058', 'f8d878', '58d854', 'ac7c00', 'd8f878', 'fca044', '503000', '00b800', '006800', 'b8f8b8'];

	///////////////////////////////////////
	// accesories
	bytes[] public accesories = [
		bytes(hex'ff00'),
		bytes(hex'ff000e0003010300030116000101030001010100010103000101'),
		bytes(hex'ff000c00020108000201130001010106010108000101010601011200010101050101080001010105010112000101020601010600010102060101120001010105010108000101010501011300020108000201'),
		bytes(hex'ef0005051a000105050001051a000505'),
		bytes(hex'500003011c000101030801011a000101020802000108010119000101010803000108010119000201030802011a0005011b000101030501011c000301'),
		bytes(hex'ee0001010500010119000201030002011a00020101000201'),
		bytes(hex'ee0005011a000101050701011800010107070101170001010607050114000d01'),
		bytes(hex'ef0005011a000101050701011800010107070101140005010607010113000d01'),
		bytes(hex'cd0007011800010101040101050901011600010101040201050901011500010101040201060901011500010101040201060401011600010101000801'),
		bytes(hex'ad00060118000a01150003010108080113000e0112000e0112000e01120005010300010102000301130003010800010115000201'),
		bytes(hex'ae00030101000201190001010308010102080101170001010408010102080101170001010208010a01010108010a0101180001010208010a01010108010a0101180001010208010a01010108010a01011800010101080200010101080101190001011f000101'),
		bytes(hex'700003011c0001010108020401011b000101030401011c000101010401011d000101010401011a00040101040401160001010904010115000b011a000108'),
		bytes(hex'ec000108010001081e00010105000108010001081e00010142000108010001081e000101'),
		bytes(hex'eb0003011d000101020b010118000501030b010117000101030b0101010b0101020b010116000101040b0101010b19000101020b0101020b1b000101020b0101010b1c000101020b1e000101'),
		bytes(hex'd000040b1a00020b0400020b1700010b0400010b0300010b1500010b0200020b0600010b1400010b0200020b0600010b1300010b0c00010b1200010b0c00010b1200010b0c00010b1200010b0c00010b1300010b0a00010b1400010b0a00010b1500010b0800010b1700020b0400020b1a00040b'),
		bytes(hex'ce00060119000101060c010118000101060c010117000201060d0201150001010a0c010114000c01'),
		bytes(hex'8d0006011900010106090101160002010209010105090101140001010208010903010309020114000101020802010609010115000c01150001010a08010115000a01'),
		bytes(hex'500002011d000101010e01011d000101010e010501011c000101020e01011b0001010105030e01011a000101030e010501011a000101040e010117000c0114000101010e0105030e0105020e0105010e010115000a01'),
		bytes(hex'b00002011d000101020501011b000101040f01011a0001010405010117000c01140001010105010901050109010501090105010901050109010115000a01'),
		bytes(hex'ab0002011e00010101100101010004011800010102100101040501011700020101100105040101050301130001010205010101050101020b0101010501010205010113000101020506100105020115000a01'),
		bytes(hex'cf0004011b000101040b01011900080117000101080b010117000101060b010118000801'),
		bytes(hex'500001011d0005011a000101050801011a0005011d0001011d0005011a000101011103090107010118000101021103090207010117000101021103090107050114000d01'),
		bytes(hex'8e0006011a000101040c01011a000101040c01011a000101040c01011a000101040c010117000301060d0301140001010a0c010115000a01'),
		bytes(hex'8d0001010600010117000101010b010104000101010b010115000101020b010104000101020b010114000101020b0601020b010114000101010b01010304020301040101010b0101150001010204010b0104020302040101160001010404020302040101160001010803010116000a01'),
		bytes(hex'b20002011d000101020501011b000201020502011800020101050101010b01100101010502011400030102050101021001010205010114000101021301010605010115000a01'),
		bytes(hex'8d0008011800010106120101180001010612010119000101021203011a000101011201010305010116000401010b010101050101010503011400010104120101030501010112010115000a01'),
		bytes(hex'ee0006011900010106040101180008011700010108040101160001010804010116000a01'),
		bytes(hex'700002011d000101020b01011d0002011d0001010108011001011c000101021001011b0001010210020801011a0001010308011001011900010102080410010118000101010803100208010119000701'),
		bytes(hex'ce00020102000201190001010213020102130101180001010613010117000201061302011500010101130101060b010101130101140001010a13010115000a01'),
		bytes(hex'500004011b000101040801011900010106080101180001010108010102080101010801011800010101080101020801010108010119000101040801011a00010101080201010801011b00010102000101'),
		bytes(hex'6f000201010002011a0001010210010102100101180001010110010b05100101170001010710010118000101051001011a000101031001011c000101011001011e000101'),
		bytes(hex'510001141f0001141b000114020001141c000114020001141d00011402000114170001140400011403000114160001140300011404000114170001140300011402000114190001141f0001141e0001141f000114')
	];

	string[] public accesories_traits = [
		'Default',
		'Eye Brows',
		'Horns',
		'Hallow',
		'Light Bulb',
		'Angry Eye Brows',
		'Baseball Cap',
		'Backwards Baseball Cap',
		'Fez',
		'Afro',
		'Bunny Ears',
		'Thumb Tack',
		'Flys',
		'Wings',
		'Bubble',
		'Fedora',
		'Santa Hat',
		'Wizard Hat',
		'Sombrero',
		'Pirate Hat',
		'Sailor Hat',
		'Propeller Head',
		'Top Hat',
		'Viking Helm',
		'Crown',
		'Leprechaun Hat',
		'Beanie',
		'Party Hat',
		'Cowboy Hat',
		'Skull',
		'Heart',
		'Stink Lines'
	];

	///////////////////////////////////////
	// base
	bytes[] public base = [
		bytes(hex'ff006f0003010100020119000101030401010204010118000101030401010204010117000201010b0101010b0104010b0101010b0101150001010104010108040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f0003010100020119000101030401010204010118000101030401010204010117000201010b0101010b0104010b0101010b01011500010101040201071001011300010103040101011007011200010104040101061001011300010102040101020406011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f0003010100020119000101030b0101020b010118000101010b0101010b0101010b020117000201030b0104030b0101150001010104010108040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f0003010100020119000101030401010204010118000101030b0101020b010117000201010b0101010b0104010b0101010b01011500010101040101080401011300010104040801120001010504010301010410010113000101020401010204020304011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f0003010100020119000101030401010204010118000101010b0101010b0101010b0201170002010704010115000101010401010804010113000101080404011200010106040503010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f000301010002011900010103040101020401011800080117000201010b0101010b0104010b0101010b010115000101010401010804010113000101040408011200010105040603010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f0003010100020119000101030401010204010115000601010802010108010115000101010003010108020101080301150001010104010108040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f0003010100020119000101030401010204010118000101030401010204010117000201010b0101010b0104010b0101010b010115000101010401010804010113000101050402030201020301011200010105040603010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f0002010300020118000101020403010204010117000101010b020401010204010b010116000201010b0101010b0104010b0101010b0101150001010104010108040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f0003010100020116000b011500010102000201010b0301010b01011700050101040401150001010104010108040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f0003010100020119000101030401010204010118000101030401010204010117000201010b0101010b0104010b0101010b01011500010101040101080401011300010103040101030b02010204010112000101050403010303010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f00030101000201190001010304010102040101180001010104010b010401010104010b010117000201010401010304010101040101150001010104010108040101130001010404080112000101040402010503010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f000301010002011900010103040101020401011800010103040101020401011700050101040401150001010104010108040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f0003010100020119000101030b0101020b010118000101030b0101020b010117000201010b0101010b0104010b0101010b010115000101010401010804010113000101040402010504010112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f0003010100020119000101030b0101020b010118000201020b0101020b010117000201030b0104010b0101010b0101150001010104010108040101130001010504070112000101050403010303010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f0003010100020119000101030401010204010118000101010b0101010b0101010b020117000201070401011500010101040101010401010604010113000101050407011200010106040503010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f0003010100020119000101030401010204010118000101030401010204010117000201010b0101010b0104010b0101010b01011500010101040101080406010e0001010504070101150208011001010d00010105040101050307010d000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f0003010100020119000101030401010204010118000101030401010204010117000201010b0101010b0104010b0101010b01011500010101040101030b0104030b01040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f0003010100030118000101010b0101010b0101010b0101010b010117000101010b0101010b0101010b0101010b010116000201010b0101010b0104010b0101010b0101150001010104010108040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f000301010002011900010103040101020401011800010103040101010b020117000201010b0101010b0404010115000101010401010804010113000101030402010204050112000101060402010303010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f00030101000201190001010304010102040101180001010104010b010401010104010b0101170002010104010b0304010b01040101150001010104010108040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f0003010100020119000101030401010204010118000101010b020401010204010117000201010b0101010b0104010b0101010b0101150001010104010108040101130001010504070112000101060401010403010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f00030101000201190001010304010102040101180001010204010b0101010b0104010117000201010b0101010b0104010b0101010b0101150001010104010108040101130001010404080112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f0003010100020119000101030401010204010118000101030401010204010117000201010b0101010b0104010b0101010b01011500010101040101080401011300010105040101010b0101010b030112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f0003010100020119000101030401010204010118000101030401010204010117000201010b0101010b0104010b0101010b01011500010101040101080401011300010105040701120001010604010301010310010113000101020401010204030303011400020102040101030401010204020112000f01'),
		bytes(hex'ff006f000601190001010204030b01040101180001010204010b0101010b01040101170002010204030b02040101150001010104010108040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01')
	];

	string[] public base_traits = [
		'Default',
		'Pepe',
		'Shoked',
		'Nana Nana Boo Boo',
		'Sus',
		'Unamused',
		'Sunglasses',
		'Model',
		'Angry',
		'Glasses',
		'Charming',
		'Beady eyes',
		'Sleeping',
		'Nervous',
		'Drunk',
		'Smug',
		'Smoker',
		'Sleepy',
		'Alert',
		'Waisted',
		'Blind',
		'Grumpy',
		'Sad',
		'Trailer Park',
		'Tongue',
		'Cylclops'
	];

	///////////////////////////////////////
	// platform
	bytes[] public platform = [
		bytes(hex'ff00ff00a90011010e0001010208040501010108030301010405010801010d0001010108050501010303010801010305020801010d0013010c00010101080f05030801010b001501'),
		bytes(hex'ff00ff00a90011010e00010102130e16011301010d00010101130e16021301010d0013010c00010101130f16031301010b001501'),
		bytes(hex'ff00ff00a70015010a0001010217011801010417010102170118010104170101031701010900010101170118020104180101011801170118010104180201011801170101090001010118090101180901011801010900030107180301071803010a001501'),
		bytes(hex'ff00ff00a90011010e0001010208070403030404010801010d0001010108070403030404020801010d0013010c0001010108060403030604030801010b001501'),
		bytes(hex'ff00ff00a90011010e000101010302040203010c02040203010c02040103010c0104010301010d0001010104010c0203010c0104040c02040103020c0104010301010d0013010c000101010301040103020c01040103010c02040103020c02040103010c0104010301010b001501'),
		bytes(hex'ff00ff00a90011010e00010102040e0c010401010d00010101040e0c020401010d0013010c00010101040f0c030401010b001501')
	];

	string[] public platform_traits = [
		'1',
		'2',
		'3',
		'4',
		'5',
		'6'
	];

	///////////////////////////////////////
	// warts
	bytes[] public warts = [
		bytes(hex'ff00'),
		bytes(hex'ff00ff000f0001031c00010322000103'),
		bytes(hex'ff00ff000e0001033d000103'),
		bytes(hex'ff00ed0001033d00010302000103'),
		bytes(hex'ff00ff000d00010321000103'),
		bytes(hex'ff00ac0001011e00010101031c0002011d00010102031d0001010103020001031c000101'),
		bytes(hex'ff00ac0002011d0001010103410001031d000103'),
		bytes(hex'ff00ca0002011d00010102031d0001010103020001033d000103'),
		bytes(hex'ff00ed0001033d00010322000103'),
		bytes(hex'ff00ff000f0001031d000103'),
		bytes(hex'ff00ed0001033d000103'),
		bytes(hex'ff00cb0001011e000101010321000103'),
		bytes(hex'ff00ff002e0001031d000103'),
		bytes(hex'ff00ed0001033d0001030100010320000103'),
		bytes(hex'ff00ac0001011e00010101033c0001011e0001010103020001031c000101'),
		bytes(hex'ff00ff000e0002031c000103010002031c000103')
	];

	string[] public warts_traits = [
		'1',
		'2',
		'3',
		'4',
		'5',
		'6',
		'7',
		'8',
		'9',
		'10',
		'11',
		'12',
		'13',
		'14',
		'15',
		'16'
	];

	///////////////////////////////////////
	// misc
	bytes[] public misc = [
		bytes(hex'4c00080118000801140004010819040110000401081904010e000201021904080a1902010c000201021904080a1902010a000201021908080a19020108000201021908080a19020108000201021908080a19020108000201021908080a190201060002010619040802190601061902010400020106190408021906010619020104000201021904080419020102190601041902010400020102190408041902010219060104190201040002010219040804190a0104190201040002010219040804190a0104190201040002010a190a0104190201040002010a190a0104190201060002010a19060104190201080002010a19060104190201080002011419020108000201141902010a000201101902010c000201101902010e0004010819040110000401081904011400080118000801'),
		bytes(hex'ff006f000301010002011900010103080101020801011800010103080101020801011700020101080101030801010108010115000101010b010108080101130001010208010b010101080101010801010108030112000101010b0108030b0101010b0101010b0101010b010113000101020b0101010b0108030b03011400020102080101030801010208020112000f01')
	];
}

File 10 of 12 : TinyFrogRenderer.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import 'base64-sol/base64.sol';
import "./ITinyFrogRenderer.sol";
import "./TinyFrogData.sol";

contract TinyFrogRenderer is ITinyFrogRenderer, TinyFrogData {
  struct CharacterData {
    uint background;
    uint palette;

    uint base;
    uint warts;
    uint accesories;
    uint platform;
  }

  string[] public bgPaletteColors = [
    '0058F8', 
    'A4E4FC', 
    'D8B8F8', 
    'F8A4C0', 
    'FCE0A8', 
    'B8F8B8', 
    '00FCFC', 
    'D8D8D8', 
    'B8B8F8', 
    'BCBCBC',
    '4428BC',
    '940084',
    '503000',
    '004058',
    'A80020',
    'A80020'
  ];

  // body color 
  string[] public baseColorLight = [
     'B8F8B8',
     'D8B8F8',
     'A4E4FC',
     'B8B8F8',
     'F8B8F8',
     'F0D0B0',
     'FCE0A8',
     'F8D878',
     'D8F878',
     'B8F8D8'
  ];

  string[] public baseColorDark = [
    '008888',
    '00A800',
    '00B800',
    'AC7C00',
    'E45C10',
    'F83800',
    'E40058',
    'D800CC',
    '6844FC',
    '0078F8'
  ];

  function getSVG(uint256 seed, bool showBasedPlatform) external view override returns (string memory) {
    return _getSVG(seed, showBasedPlatform);
  }

  function _getSVG(uint256 seed, bool showBasedPlatform) internal view returns (string memory) {
    CharacterData memory data = _generateCharacterData(seed);

    string memory colorLight = baseColorLight[data.palette];
    string memory colorDark = baseColorDark[data.palette];

    string memory image = string(abi.encodePacked(
      '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" shape-rendering="crispEdges" width="512" height="512">'
      '<rect width="100%" height="100%" fill="#', bgPaletteColors[data.background], '"/>',

      _renderRectsBaseColorSwap(base[data.base], fullPalettes, colorLight, colorDark),
      _renderRectsBaseColorSwap(warts[data.warts], fullPalettes, colorLight, colorDark),
      _renderRects(accesories[data.accesories], fullPalettes),

      showBasedPlatform ? _renderRects(platform[data.platform], fullPalettes) : "",
      '</svg>'
    ));

    return image;
  }

  function getUnrevealedSVG(uint256 seed) external view override returns (string memory) {
    return _getUnrevealedSVG(seed);
  }

  function _getUnrevealedSVG(uint256 seed) internal view returns (string memory) {
    CharacterData memory data = _generateCharacterData(seed);

    string memory image = string(abi.encodePacked(
      '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" shape-rendering="crispEdges" width="512" height="512">'
      '<rect width="100%" height="100%" fill="#', bgPaletteColors[data.background], '"/>',
      _renderRects(misc[0], fullPalettes),
      '</svg>'
    ));

    return image;
  }

  function getDeadSVG(uint256 seed) external view override returns (string memory) {
    return _getDeadSVG(seed);
  }

  function _getDeadSVG(uint256) internal view returns (string memory) {
    //CharacterData memory data = _generateCharacterData(seed);

    string memory image = string(abi.encodePacked(
      '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" shape-rendering="crispEdges" width="512" height="512">'
      '<rect width="100%" height="100%" fill="#000000"/>',
      _renderRects(misc[1], fullPalettes),
      '</svg>'
    ));

    return image;
  }

  function getTraitsMetadata(uint256 seed, bool showBasedPlatform) external override view returns (string memory) {
    return _getTraitsMetadata(seed, showBasedPlatform);
  }

  function _getTraitsMetadata(uint256 seed, bool showBasedPlatform) internal view returns (string memory) {
    CharacterData memory data = _generateCharacterData(seed);

    // just for backgrounds
    string[17] memory lookup = [
      '0', '1', '2', '3', '4', '5', '6', '7',
      '8', '9', '10', '11', '12', '13', '14',
      '15', '16'
    ];

    string memory metadata = string(abi.encodePacked(
      '{"trait_type":"Background", "value":"', lookup[data.background+1], '"},',
      '{"trait_type":"Palette", "value":"', lookup[data.palette+1], '"},',
      '{"trait_type":"Body", "value":"', base_traits[data.base], '"},',
      '{"trait_type":"Warts", "value":"', warts_traits[data.warts], '"},',
      '{"trait_type":"Accessories", "value":"', accesories_traits[data.accesories], '"},'
      '{"trait_type":"Platform", "value":"', showBasedPlatform ? "None":platform_traits[data.platform], '"},'
      ));

    return metadata;
  }

  function _renderRects(bytes memory data, string[] memory palette) private pure returns (string memory) {
    string[33] memory lookup = [
      '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 
      '10', '11', '12', '13', '14', '15', '16', '17', '18', '19',
      '20', '21', '22', '23', '24', '25', '26', '27', '28', '29',
      '30', '31', '32'
    ];

    string memory rects;
    uint256 drawIndex = 0;

    for (uint256 i = 0; i < data.length; i = i+2) {
      uint8 runLength = uint8(data[i]); // we assume runLength of any non-transparent segment cannot exceed image width (32px)
      uint8 colorIndex = uint8(data[i+1]);

      if (colorIndex != 0) { // transparent
        uint8 x = uint8(drawIndex % 32);
        uint8 y = uint8(drawIndex / 32);
        string memory color = palette[colorIndex];

        rects = string(abi.encodePacked(rects, '<rect width="', lookup[runLength], '" height="1" x="', lookup[x], '" y="', lookup[y], '" fill="#', color, '"/>'));
      }
      drawIndex += runLength;
    }

    return rects;
  }

  function _renderRectsBaseColorSwap(bytes memory data, string[] memory palette, string memory colorLight, string memory colorDark) private pure returns (string memory) {
    string[33] memory lookup = [
      '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 
      '10', '11', '12', '13', '14', '15', '16', '17', '18', '19',
      '20', '21', '22', '23', '24', '25', '26', '27', '28', '29',
      '30', '31', '32'
    ];

    string memory rects;
    uint256 drawIndex = 0;

    for (uint256 i = 0; i < data.length; i = i+2) {
      uint8 runLength = uint8(data[i]); // we assume runLength of any non-transparent segment cannot exceed image width (32px)
      uint8 colorIndex = uint8(data[i+1]);
      uint8 x = uint8(drawIndex % 32);
      uint8 y = uint8(drawIndex / 32);

      if (colorIndex == 0) { // transparent
      }
      else if (colorIndex==3) { // LIGHT GRAY - replace color
        rects = string(abi.encodePacked(rects, '<rect width="', lookup[runLength], '" height="1" x="', lookup[x], '" y="', lookup[y], '" fill="#', colorLight, '"/>'));
      }
      else if (colorIndex==4) { // DARK GRAY - replace color
        rects = string(abi.encodePacked(rects, '<rect width="', lookup[runLength], '" height="1" x="', lookup[x], '" y="', lookup[y], '" fill="#', colorDark, '"/>'));
      }
      else { // any other color
        rects = string(abi.encodePacked(rects, '<rect width="', lookup[runLength], '" height="1" x="', lookup[x], '" y="', lookup[y], '" fill="#', palette[colorIndex], '"/>'));
      }
      drawIndex += runLength;
    }

    return rects;
  }

  function _generateCharacterData(uint256 seed) private view returns (CharacterData memory) {

    return CharacterData({
      background: seed % bgPaletteColors.length,
      palette: (seed/2) % baseColorLight.length,
      base: (seed/3) % base.length,
      warts: (seed/4) % warts.length,
      accesories: (seed/5) % accesories.length,
      platform: (seed/6) % platform.length
    });
  }
}

File 11 of 12 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256) {
        // Counter underflow is impossible as `_currentIndex` does not decrement,
        // and it is initialized to `_startTokenId()`.
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

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

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * 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) public payable virtual override {
        address owner = ownerOf(tokenId);

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom}
     * for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token IDs
     * are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token IDs
     * have been transferred. This includes minting.
     * And also called after one token has been burned.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 12 of 12 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

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

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

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

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

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

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

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

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200,
    "details": {
      "yul": false
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TinyFrogIsSoulbound","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"unlocker","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Lock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"MetadataUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TinyFrogBoiled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TinyFrogDied","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TinyFrogMorphed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"TinyFrogSoulbound","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"approvedContract","type":"address"}],"name":"TokenLocked","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"},{"inputs":[],"name":"MAX_TOKEN_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"accesories","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"accesories_traits","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"base","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"baseColorDark","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"baseColorLight","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"base_traits","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bgPaletteColors","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"boilEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"boilFrog","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractRenderer","outputs":[{"internalType":"contract ITinyFrogRenderer","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"dead","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"fullPalettes","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":[{"internalType":"uint256","name":"seed","type":"uint256"}],"name":"getDeadSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numToMint","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"bool","name":"showBasedPlatform","type":"bool"}],"name":"getSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"bool","name":"showBasedPlatform","type":"bool"}],"name":"getTraitsMetadata","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"seed","type":"uint256"}],"name":"getUnrevealedSVG","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"uint256","name":"tokenId","type":"uint256"}],"name":"isDead","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isSoulbound","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTokensOwnableInWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintPricing","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintStatus","outputs":[{"internalType":"enum TinyFrog.MintStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintSupplyLimits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"misc","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"morphEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"morphFrog","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"morphMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"platform","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"platform_traits","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numToMint","type":"uint256"}],"name":"publicMintFrog","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numToMint","type":"uint256"}],"name":"reserveFrog","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256","name":"numToMint","type":"uint256"}],"name":"reserveFrogMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"seeds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"_enabled","type":"bool"}],"name":"setBoilEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"setContractRenderer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_revealed","type":"bool"}],"name":"setEnableReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTokenSupply","type":"uint256"}],"name":"setMaxTokenSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_status","type":"uint256"}],"name":"setMintStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setMorphEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"supply","type":"uint256[]"},{"internalType":"uint256[]","name":"pricing","type":"uint256[]"}],"name":"setPricing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setSoulbindEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxTokens","type":"uint256"}],"name":"setTokenMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"soulbindEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"soulbindFrog","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"soulbindMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"soulbound","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"warts","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"warts_traits","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60066103c08181526533331818333360d11b6103e05260809081526104008281526503030303030360d41b6104205260a0526104408281526533333333333360d11b6104605260c0526104808281526562636263626360d01b6104a05260e0526104c08281526537633763376360d01b6104e052610100526105008281526506638623830360d41b61052052610120526105408281526506630643062360d41b61056052610140526105808281526536383434666360d01b6105a052610160526105c08281526566636663666360d01b6105e052610180526106008281526506638333830360d41b610620526101a052610640828152650cc70c470cc760d31b610660526101c05261068082815265331bb2b2b1b160d11b6106a0526101e0526106c0828152650606068606a760d31b6106e05261020052610700828152650ccc6ca60c2760d31b6107205261022052610740828152650e4d0c0c0e0d60d21b61076052610240526107808281526503030613830360d41b6107a052610260526107c0828152650ca6860606a760d31b6107e05261028052610800828152650cc70c8706e760d31b610820526102a052610840828152650d4e190e0d4d60d21b610860526102c0526108808281526506163376330360d41b6108a0526102e0526108c0828152650c870cc706e760d31b6108e05261030052610900828152651998d84c0d0d60d21b61092052610320526109408281526503530333030360d41b61096052610340526109808281526503030623830360d41b6109a052610360526109c08281526503030363830360d41b6109e05261038052610a40604052610a00918252650c470cc70c4760d31b610a20526103a0919091526200028890600090601a62001f75565b506040518061040001604052806040518060400160405280600281526020016001600160f81b031981525081526020016040518060400160405280601a81526020017fff000e00030103000301160001010300010101000101030001010000000000008152508152602001604051806080016040528060528152602001620092506052913981526020016040518060400160405280601081526020017fef0005051a000105050001051a0005050000000000000000000000000000000081525081526020016040518060600160405280603c815260200162008e96603c913981526020016040518060400160405280601881526020017fee0001010500010119000201030002011a00020101000201000000000000000081525081526020016040518060400160405280602081526020017fee0005011a000101050701011800010107070101170001010607050114000d0181525081526020016040518060400160405280602081526020017fef0005011a000101050701011800010107070101140005010607010113000d0181525081526020016040518060600160405280603c8152602001620098e0603c91398152602001604051806060016040528060348152602001620096506034913981526020016040518060a00160405280606681526020016200939a6066913981526020016040518060600160405280603e81526020016200982e603e9139815260200160405180606001604052806024815260200162008b226024913981526020016040518060800160405280604c815260200162009434604c913981526020016040518060a00160405280607481526020016200890c60749139815260200160405180606001604052806028815260200162008df460289139815260200160405180608001604052806042815260200162009684604291398152602001604051806080016040528060568152602001620088426056913981526020016040518060600160405280603e8152602001620086b6603e9139815260200160405180608001604052806052815260200162008770605291398152602001604051806060016040528060248152602001620088e860249139815260200160405180608001604052806044815260200162009a566044913981526020016040518060600160405280603881526020016200859a6038913981526020016040518060a001604052806070815260200162008ed2607091398152602001604051806080016040528060468152602001620089b46046913981526020016040518060800160405280604c8152602001620092a2604c913981526020016040518060600160405280602481526020016200948060249139815260200160405180608001604052806050815260200162008cc860509139815260200160405180606001604052806040815260200162008c14604091398152602001604051806080016040528060508152602001620088986050913981526020016040518060800160405280604481526020016200919260449139815260200160405180608001604052806054815260200162008b466054913990526200071290600190602062001fd9565b5060408051610440810182526007610400820181815266111959985d5b1d60ca1b6104208401528252825180840184526009808252684579652042726f777360b81b6020838101919091528085019290925284518086018652600580825264486f726e7360d81b82850152858701919091528551808701875260068082526548616c6c6f7760d01b82860152606087019190915286518088018852600a808252692634b3b43a10213ab63160b11b82870152608088019190915287518089018952600f81526e416e677279204579652042726f777360881b8187015260a088015287518089018952600c81526b04261736562616c6c204361760a41b8187015260c088015287518089018952601681527f4261636b7761726473204261736562616c6c20436170000000000000000000008187015260e08801528751808901895260038152622332bd60e91b81870152610100880152875180890189526004808252634166726f60e01b828801526101208901919091528851808a018a528281526942756e6e79204561727360b01b818801526101408901528851808a018a52828152695468756d62205461636b60b01b818801526101608901528851808a018a5290815263466c797360e01b81870152610180880152875180890189528381526457696e677360d81b818701526101a08801528751808901895282815265427562626c6560d01b818701526101c088015287518089018952828152654665646f726160d01b818701526101e0880152875180890189528481526814d85b9d184812185d60ba1b81870152610200880152875180890189528181526915da5e985c990812185d60b21b81870152610220880152875180890189526008815267536f6d627265726f60c01b818701526102408801528751808901895281815269141a5c985d194812185d60b21b81870152610260880152875180890189528181526914d85a5b1bdc8812185d60b21b8187015261028088015287518089018952600e8082526d141c9bdc195b1b195c881219585960921b828801526102a08901919091528851808a018a5296875266151bdc0812185d60ca1b878701526102c088019690965287518089018952600b8082526a56696b696e672048656c6d60a81b828801526102e08901919091528851808a018a528481526421b937bbb760d91b818801526103008901528851808a018a529687526d13195c1c9958da185d5b8812185d60921b8787015261032088019690965287518089018952918252654265616e696560d01b82860152610340870191909152865180880188529283526814185c9d1e4812185d60ba1b83850152610360860192909252855180870187529182526910dbddd89bde4812185d60b21b82840152610380850191909152845180860186528181526414dadd5b1b60da1b818401526103a085015284518086018652908152641219585c9d60da1b818301526103c084015283518085019094529083526a5374696e6b204c696e657360a81b838201526103e082019290925262000b7f916002919062002039565b50604080516103e0810190915260786103408201818152829162009a9a61036084013981526020016040518060a00160405280607a8152602001620091d6607a913981526020016040518060a001604052806074815260200162008c546074913981526020016040518060a00160405280607a815260200162008e1c607a913981526020016040518060a00160405280606e815260200162008648606e913981526020016040518060a00160405280606e8152602001620099e8606e913981526020016040518060a00160405280607481526020016200986c6074913981526020016040518060a00160405280607c8152602001620097b2607c913981526020016040518060a00160405280607c8152602001620086f4607c913981526020016040518060a0016040528060688152602001620099806068913981526020016040518060a0016040528060808152602001620091126080913981526020016040518060a00160405280607a8152602001620096c6607a913981526020016040518060a00160405280606c815260200162008d18606c913981526020016040518060a00160405280607c8152602001620094a4607c913981526020016040518060a0016040528060748152602001620084aa6074913981526020016040518060a0016040528060728152602001620097406072913981526020016040518060a001604052806080815260200162009b126080913981526020016040518060a00160405280607e81526020016200904c607e913981526020016040518060c0016040528060888152602001620092ee6088913981526020016040518060a0016040528060768152602001620085d26076913981526020016040518060a00160405280607a815260200162008f42607a913981526020016040518060a00160405280607a815260200162008b9a607a913981526020016040518060a00160405280607c81526020016200851e607c913981526020016040518060a0016040528060808152602001620087c26080913981526020016040518060a00160405280607a815260200162008a68607a913981526020016040518060a001604052806070815260200162008d8460709139905262000ebb90600390601a6200208b565b5060408051610380810182526007610340820181815266111959985d5b1d60ca1b6103608401528252825180840184526004808252635065706560e01b602083810191909152808501929092528451808601865260068082526514da1bdad95960d21b82850152858701919091528551808701875260118152704e616e61204e616e6120426f6f20426f6f60781b8185015260608601528551808701875260038082526253757360e81b82860152608087019190915286518088018852600880825267155b985b5d5cd95960c21b8287015260a088019190915287518089018952600a8082526953756e676c617373657360b01b8288015260c08901919091528851808a018a52600580825264135bd9195b60da1b8289015260e08a01919091528951808b018b5281815264416e67727960d81b818901526101008a01528951808b018b5288815266476c617373657360c81b818901526101208a01528951808b018b5283815267436861726d696e6760c01b818901526101408a01528951808b018b52918252694265616479206579657360b01b828801526101608901919091528851808a018a5282815267536c656570696e6760c01b818801526101808901528851808a018a52878152664e6572766f757360c81b818801526101a08901528851808a018a52818152644472756e6b60d81b818801526101c08901528851808a018a5285815263536d756760e01b818801526101e08901528851808a018a528481526529b6b7b5b2b960d11b818801526102008901528851808a018a5284815265536c6565707960d01b818801526102208901528851808a018a5281815264105b195c9d60da1b818801526102408901528851808a018a529687526615d85a5cdd195960ca1b878701526102608801969096528751808901895295865264109b1a5b9960da1b8686015261028087019590955286518088018852828152654772756d707960d01b818601526102a0870152865180880188529081526214d85960ea1b818501526102c086015285518087018752600c81526b547261696c6572205061726b60a01b818501526102e08601528551808701875290815265546f6e67756560d01b8184015261030085015284518086019095529184526743796c636c6f707360c01b908401526103208201929092526200121e9190601a62001f75565b50604080516101408101909152604860c082018181528291620090ca60e08401398152602001604051806060016040528060348152602001620094006034913981526020016040518060a00160405280606481526020016200991c60649139815260200160405180606001604052806040815260200162008ae26040913981526020016040518060a00160405280606e8152602001620089fa606e9139815260200160405180606001604052806034815260200162008980603491399052620012ec906005906006620020dd565b506040805161010081018252600160c08201818152603160f81b60e0840152825282518084018452818152601960f91b6020828101919091528084019190915283518085018552828152603360f81b818301528385015283518085018552828152600d60fa1b81830152606084015283518085018552828152603560f81b8183015260808401528351808501909452908352601b60f91b9083015260a08101919091526200139e90600690816200212f565b506040518061020001604052806040518060400160405280600281526020016001600160f81b031981525081526020016040518060400160405280601081526020017fff00ff000f0001031c000103220001030000000000000000000000000000000081525081526020016040518060400160405280600c81526020017fff00ff000e0001033d000103000000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017fff00ed0001033d0001030200010300000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017fff00ff000d0001032100010300000000000000000000000000000000000000008152508152602001604051806060016040528060248152602001620093766024913981526020016040518060400160405280601481526020017fff00ac0002011d0001010103410001031d00010300000000000000000000000081525081526020016040518060400160405280601a81526020017fff00ca0002011d00010102031d0001010103020001033d00010300000000000081525081526020016040518060400160405280600e81526020017fff00ed0001033d0001032200010300000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017fff00ff000f0001031d000103000000000000000000000000000000000000000081525081526020016040518060400160405280600a81526020017fff00ed0001033d0001030000000000000000000000000000000000000000000081525081526020016040518060400160405280601081526020017fff00cb0001011e0001010103210001030000000000000000000000000000000081525081526020016040518060400160405280600c81526020017fff00ff002e0001031d000103000000000000000000000000000000000000000081525081526020016040518060400160405280601281526020017fff00ed0001033d0001030100010320000103000000000000000000000000000081525081526020016040518060400160405280601e81526020017fff00ac0001011e00010101033c0001011e0001010103020001031c000101000081525081526020016040518060400160405280601481526020017fff00ff000e0002031c000103010002031c00010300000000000000000000000081525081525060079060106200173792919062002181565b50604080516102408101825260016102008201818152603160f81b610220840152825282518084018452818152601960f91b6020828101919091528084019190915283518085018552828152603360f81b818301528385015283518085018552828152600d60fa1b81830152606084015283518085018552828152603560f81b81830152608084015283518085018552828152601b60f91b8183015260a084015283518085018552828152603760f81b8183015260c084015283518085018552828152600760fb1b8183015260e084015283518085018552918252603960f81b8282015261010083019190915282518084018452600280825261031360f41b828401526101208401919091528351808501855281815261313160f01b818401526101408401528351808501855281815261189960f11b818401526101608401528351808501855281815261313360f01b8184015261018084015283518085018552818152610c4d60f21b818401526101a08401528351808501855281815261313560f01b818401526101c08401528351808501909452835261189b60f11b908301526101e0810191909152620018f2906008906010620021d3565b506040518060400160405280604051806101600160405280610130815260200162009520610130913981526020016040518060c001604052806090815260200162008fbc6090913990526200194c90600990600262002225565b5060408051610240810182526006610200820181815265060606a708c760d31b6102208401528252825180840184528181526541344534464360d01b6020828101919091528084019190915283518085018552828152650887084708c760d31b8183015283850152835180850185528281526504638413443360d41b818301526060840152835180850185528281526508c868a6082760d31b8183015260808401528351808501855282815265084708c7084760d31b8183015260a0840152835180850185528281526530304643464360d01b8183015260c0840152835180850185528281526508870887088760d31b8183015260e084015283518085018552828152650847084708c760d31b81830152610100840152835180850185528281526542434243424360d01b81830152610120840152835180850185528281526534343238424360d01b8183015261014084015283518085018552828152650e4d0c0c0e0d60d21b81830152610160840152835180850185528281526503530333030360d41b8183015261018084015283518085018552828152650606068606a760d31b818301526101a0840152835180850185528281526504138303032360d41b8183018190526101c085019190915284518086019095529184528301526101e081019190915262001b4390600a906010620021d3565b5060408051610180810182526006610140820181815265084708c7084760d31b610160840152825282518084018452818152650887084708c760d31b60208281019190915280840191909152835180850185528281526541344534464360d01b818301528385015283518085018552828152650847084708c760d31b818301526060840152835180850185528281526508c7084708c760d31b818301526080840152835180850185528281526504630443042360d41b8183015260a0840152835180850185528281526508c868a6082760d31b8183015260c0840152835180850185528281526508c7088706e760d31b8183015260e08401528351808501855282815265088708c706e760d31b81830152610100840152835180850190945290835265084708c7088760d31b9083015261012081019190915262001c8c90600b90600a62002277565b506040805161018081018252600661014082018181526506060707070760d31b6101608401528252825180840184528181526503030413830360d41b60208281019190915280840191909152835180850185528281526503030423830360d41b8183015283850152835180850185528281526504143374330360d41b818301526060840152835180850185528281526504534354331360d41b818301526080840152835180850185528281526504638333830360d41b8183015260a0840152835180850185528281526508a6860606a760d31b8183015260c0840152835180850185528281526544383030434360d01b8183015260e0840152835180850185528281526536383434464360d01b81830152610100840152835180850190945290835265060606e708c760d31b9083015261012081019190915262001dd590600c90600a62002277565b506103e8601655604080516080810182526000815260fa60208201526101f4918101919091526102ee606082015262001e13906017906004620022c9565b50604080516080810182526611c37937e080008152662386f26fc10000602082015266354a6ba7a180009181019190915266470de4df820000606082015262001e619060189060046200231b565b506019805460ff19168155601a55601b805463ffffffff1916905534801562001e8957600080fd5b50604080518082018252601081526f54696e792042617365642046726f677360801b60208083019182528351808501909452600884526754494e5946524f4760c01b90840152815191929162001ee291600f9162002364565b50805162001ef890601090602084019062002364565b50506001600d555062001f0b3362001f23565b601f80546001600160a01b03191630179055620024c3565b601580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805482825590600052602060002090810192821562001fc7579160200282015b8281111562001fc7578251805162001fb691849160209091019062002364565b509160200191906001019062001f96565b5062001fd5929150620023e1565b5090565b8280548282559060005260206000209081019282156200202b579160200282015b828111156200202b57825180516200201a91849160209091019062002364565b509160200191906001019062001ffa565b5062001fd592915062002402565b82805482825590600052602060002090810192821562001fc7579160200282015b8281111562001fc757825180516200207a91849160209091019062002364565b50916020019190600101906200205a565b8280548282559060005260206000209081019282156200202b579160200282015b828111156200202b5782518051620020cc91849160209091019062002364565b5091602001919060010190620020ac565b8280548282559060005260206000209081019282156200202b579160200282015b828111156200202b57825180516200211e91849160209091019062002364565b5091602001919060010190620020fe565b82805482825590600052602060002090810192821562001fc7579160200282015b8281111562001fc757825180516200217091849160209091019062002364565b509160200191906001019062002150565b8280548282559060005260206000209081019282156200202b579160200282015b828111156200202b5782518051620021c291849160209091019062002364565b5091602001919060010190620021a2565b82805482825590600052602060002090810192821562001fc7579160200282015b8281111562001fc757825180516200221491849160209091019062002364565b5091602001919060010190620021f4565b8280548282559060005260206000209081019282156200202b579160200282015b828111156200202b57825180516200226691849160209091019062002364565b509160200191906001019062002246565b82805482825590600052602060002090810192821562001fc7579160200282015b8281111562001fc75782518051620022b891849160209091019062002364565b509160200191906001019062002298565b8280548282559060005260206000209081019282156200230d579160200282015b828111156200230d578251829061ffff16905591602001919060010190620022ea565b5062001fd592915062002423565b8280548282559060005260206000209081019282156200230d579160200282015b828111156200230d578251829066ffffffffffffff169055916020019190600101906200233c565b828054620023729062002492565b90600052602060002090601f0160209004810192826200239657600085556200230d565b82601f10620023b157805160ff19168380011785556200230d565b828001600101855582156200230d579182015b828111156200230d578251825591602001919060010190620023c4565b8082111562001fd5576000620023f882826200243a565b50600101620023e1565b8082111562001fd55760006200241982826200243a565b5060010162002402565b5b8082111562001fd5576000815560010162002424565b508054620024489062002492565b6000825580601f1062002459575050565b601f01602090049060005260206000209081019062002479919062002423565b50565b634e487b7160e01b600052602260045260246000fd5b600281046001821680620024a757607f821691505b60208210811415620024bd57620024bd6200247c565b50919050565b615fd780620024d36000396000f3fe6080604052600436106104105760003560e01c80638462151c1161021e578063cb4b1c7711610123578063e6030688116100ab578063e7f1028b1161007a578063e7f1028b14610c49578063e985e9c514610c69578063f0503e8014610cb2578063f2fde38b14610cdf578063f6ad141014610cff57600080fd5b8063e603068814610bac578063e757223014610bcc578063e77f7b4b14610bec578063e7b5ec0f14610c1c57600080fd5b8063d4852044116100f2578063d485204414610b16578063dab56b0e14610b36578063dc33e68114610b56578063e1e8de0a14610b76578063e489d51014610b9657600080fd5b8063cb4b1c7714610a96578063ce4d776c14610ab6578063ce4eded314610ad6578063d04e347114610af657600080fd5b8063a22cb465116101a6578063b53e056e11610175578063b53e056e14610a03578063b88d4fde14610a23578063bd1ce46714610a36578063bfa584d214610a56578063c87b56dd14610a7657600080fd5b8063a22cb46514610984578063a56a58e0146109a4578063af42527f146109c3578063b07ed982146109e357600080fd5b8063911ec470116101ed578063911ec470146108e8578063958ba0bf1461090857806395d89b411461092857806397974b401461093d5780639da3f8fd1461095d57600080fd5b80638462151c1461085d578063887fee311461088a57806389b89f5a146108aa5780638da5cb5b146108ca57600080fd5b80633726230a116103245780636352211e116102ac57806370a082311161027b57806370a08231146107b8578063715018a6146107d857806375326ab6146107ed5780637a1815971461080d5780637a9db9901461083d57600080fd5b80636352211e14610745578063661387bc1461076557806367f02918146107785780636c6eb9d11461079857600080fd5b806347cb5a43116102f357806347cb5a43146106ab5780634bf967ff146106cb57806351830227146106eb57806351cff8d914610705578063532126371461072557600080fd5b80633726230a146106435780633ea126531461065857806342842e0e1461067857806343ff8bf61461068b57600080fd5b806310252bb3116103a75780631ec1a526116103765780631ec1a526146105af5780632009e312146105d057806323b872dd146105f05780632dfd8ffe1461060357806331659b7e1461062357600080fd5b806310252bb31461053c578063104e8a7c1461055257806312ef6b971461057257806318160ddd1461059257600080fd5b8063081812fc116103e3578063081812fc146104ad578063095ea7b3146104da5780630cd19d09146104ef5780630ce1dccd1461051c57600080fd5b806301ffc9a714610415578063027748371461044b57806305184f9c1461047857806306fdde0314610498575b600080fd5b34801561042157600080fd5b50610435610430366004614802565b610d1f565b604051610442919061482d565b60405180910390f35b34801561045757600080fd5b5061046b61046636600461484c565b610d71565b60405161044291906148cb565b34801561048457600080fd5b5061046b61049336600461484c565b610e1d565b3480156104a457600080fd5b5061046b610e2d565b3480156104b957600080fd5b506104cd6104c836600461484c565b610ebf565b60405161044291906148f6565b6104ed6104e8366004614918565b610f03565b005b3480156104fb57600080fd5b5061050f61050a36600461484c565b610fa3565b604051610442919061495b565b34801561052857600080fd5b5061046b61053736600461484c565b610fc4565b34801561054857600080fd5b5061050f601a5481565b34801561055e57600080fd5b5061046b61056d36600461484c565b610fd4565b34801561057e57600080fd5b5061046b61058d36600461497c565b610fe4565b34801561059e57600080fd5b50600e54600d54036000190161050f565b3480156105bb57600080fd5b50601b54610435906301000000900460ff1681565b3480156105dc57600080fd5b506104ed6105eb36600461484c565b610ff7565b6104ed6105fe3660046149af565b6110df565b34801561060f57600080fd5b5061043561061e36600461484c565b611275565b34801561062f57600080fd5b5061046b61063e36600461484c565b6112c7565b34801561064f57600080fd5b5061050f6112d7565b34801561066457600080fd5b506104ed610673366004614a50565b6112e6565b6104ed6106863660046149af565b61131c565b34801561069757600080fd5b506104ed6106a636600461484c565b61133c565b3480156106b757600080fd5b506104ed6106c6366004614ac7565b611349565b3480156106d757600080fd5b5061046b6106e636600461484c565b6113f9565b3480156106f757600080fd5b50601b546104359060ff1681565b34801561071157600080fd5b506104ed610720366004614b0e565b611409565b34801561073157600080fd5b5061046b61074036600461484c565b611492565b34801561075157600080fd5b506104cd61076036600461484c565b6114a2565b6104ed61077336600461484c565b6114ad565b34801561078457600080fd5b5061046b61079336600461497c565b611561565b3480156107a457600080fd5b5061046b6107b336600461484c565b61156d565b3480156107c457600080fd5b5061050f6107d3366004614b0e565b61157d565b3480156107e457600080fd5b506104ed6115cb565b3480156107f957600080fd5b506104ed61080836600461484c565b6115df565b34801561081957600080fd5b5061043561082836600461484c565b601d6020526000908152604090205460ff1681565b34801561084957600080fd5b506104ed610858366004614b2f565b611640565b34801561086957600080fd5b5061087d610878366004614b0e565b611664565b6040516104429190614bad565b34801561089657600080fd5b506104ed6108a536600461484c565b611773565b3480156108b657600080fd5b5061046b6108c536600461484c565b6117b0565b3480156108d657600080fd5b506015546001600160a01b03166104cd565b3480156108f457600080fd5b5061043561090336600461484c565b6117bb565b34801561091457600080fd5b5061046b61092336600461484c565b611809565b34801561093457600080fd5b5061046b611819565b34801561094957600080fd5b5061046b61095836600461484c565b611828565b34801561096957600080fd5b506019546109779060ff1681565b6040516104429190614c07565b34801561099057600080fd5b506104ed61099f366004614c15565b611838565b3480156109b057600080fd5b50601b5461043590610100900460ff1681565b3480156109cf57600080fd5b5061046b6109de36600461484c565b6118a7565b3480156109ef57600080fd5b506104ed6109fe36600461484c565b6118b7565b348015610a0f57600080fd5b506104ed610a1e366004614ac7565b6118c4565b6104ed610a31366004614d23565b61195d565b348015610a4257600080fd5b506104ed610a51366004614b2f565b6119a1565b348015610a6257600080fd5b506104ed610a71366004614b0e565b6119c3565b348015610a8257600080fd5b5061046b610a9136600461484c565b6119ed565b348015610aa257600080fd5b50601b546104359062010000900460ff1681565b348015610ac257600080fd5b506104ed610ad136600461484c565b611a48565b348015610ae257600080fd5b506104ed610af1366004614918565b611a98565b348015610b0257600080fd5b5061050f610b1136600461484c565b611aae565b348015610b2257600080fd5b5061046b610b3136600461484c565b611abe565b348015610b4257600080fd5b506104ed610b51366004614b2f565b611ac9565b348015610b6257600080fd5b5061050f610b71366004614b0e565b611b23565b348015610b8257600080fd5b506104ed610b91366004614b2f565b611b4d565b348015610ba257600080fd5b5061050f60165481565b348015610bb857600080fd5b5061046b610bc736600461484c565b611b73565b348015610bd857600080fd5b5061050f610be736600461484c565b611b83565b348015610bf857600080fd5b50610435610c0736600461484c565b601e6020526000908152604090205460ff1681565b348015610c2857600080fd5b50601f54610c3c906001600160a01b031681565b6040516104429190614de3565b348015610c5557600080fd5b5061046b610c6436600461484c565b611b8e565b348015610c7557600080fd5b50610435610c84366004614df1565b6001600160a01b03918216600090815260146020908152604080832093909416825291909152205460ff1690565b348015610cbe57600080fd5b5061050f610ccd36600461484c565b601c6020526000908152604090205481565b348015610ceb57600080fd5b506104ed610cfa366004614b0e565b611b9e565b348015610d0b57600080fd5b506104ed610d1a366004614e24565b611bd5565b60006301ffc9a760e01b6001600160e01b031983161480610d5057506380ac58cd60e01b6001600160e01b03198316145b80610d6b5750635b5e139f60e01b6001600160e01b03198316145b92915050565b600c8181548110610d8157600080fd5b906000526020600020016000915090508054610d9c90614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054610dc890614e8a565b8015610e155780601f10610dea57610100808354040283529160200191610e15565b820191906000526020600020905b815481529060010190602001808311610df857829003601f168201915b505050505081565b60018181548110610d8157600080fd5b6060600f8054610e3c90614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6890614e8a565b8015610eb55780601f10610e8a57610100808354040283529160200191610eb5565b820191906000526020600020905b815481529060010190602001808311610e9857829003601f168201915b5050505050905090565b6000610eca82611c33565b610ee7576040516333d1c03960e21b815260040160405180910390fd5b506000908152601360205260409020546001600160a01b031690565b6000610f0e826114a2565b9050336001600160a01b03821614610f4757610f2a8133610c84565b610f47576040516367d9dca160e11b815260040160405180910390fd5b60008281526013602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60188181548110610fb357600080fd5b600091825260209091200154905081565b60028181548110610d8157600080fd5b60078181548110610d8157600080fd5b6060610ff08383611c68565b9392505050565b80336110028261244a565b516001600160a01b0316148061102857503361101d82610ebf565b6001600160a01b0316145b61104d5760405162461bcd60e51b815260040161104490614ee1565b60405180910390fd5b601b5462010000900460ff16151560011461106757600080fd5b6110708261247f565b6000828152601e6020526040808220805460ff191660011790555183917f182ced0666d49187358d2301e81a062dbd327bc6c81f685cc02fb0437a545d2291a260405182907fd957aba451d8a829f78badd36c42e3677a4e47e301f6d198dcd8701102bfed9990600090a25050565b60006110ea8261248a565b9050836001600160a01b0316816001600160a01b03161461111d5760405162a1148160e81b815260040160405180910390fd5b600082815260136020526040902080546111498187335b6001600160a01b039081169116811491141790565b611174576111578633610c84565b61117457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661119b57604051633a954ecd60e21b815260040160405180910390fd5b6111a886868660016124f3565b80156111b357600082555b6001600160a01b038681166000908152601260205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260116020526040902055600160e11b831661123e576001840160008181526011602052604090205461123c57600d54811461123c5760008181526011602052604090208490555b505b83856001600160a01b0316876001600160a01b0316600080516020615f8283398151915260405160405180910390a4505050505050565b60008160018110158015611290575061128c61255b565b8111155b6112ac5760405162461bcd60e51b815260040161104490614f17565b6000838152601e602052604090205460ff1691505b50919050565b60048181548110610d8157600080fd5b60006112e161255b565b905090565b6112ee612565565b60175481146112fc57600080fd5b61130860178585614780565b5061131560188383614780565b5050505050565b6113378383836040518060200160405280600081525061195d565b505050565b611344612565565b601a55565b601b54610100900460ff166113705760405162461bcd60e51b815260040161104490614f4c565b8060005b818110156113f357600084848381811061139057611390614f5c565b9050602002013590506113a03390565b6001600160a01b03166113b28261244a565b516001600160a01b0316146113d95760405162461bcd60e51b815260040161104490614f91565b6113e28161258f565b506113ec81614fb7565b9050611374565b50505050565b60068181548110610d8157600080fd5b611411612565565b60004790506000826001600160a01b03168260405161142f90614fd2565b60006040518083038185875af1925050503d806000811461146c576040519150601f19603f3d011682016040523d82523d6000602084013e611471565b606091505b50509050806113375760405162461bcd60e51b815260040161104490615005565b60088181548110610d8157600080fd5b6000610d6b8261248a565b600160195460ff1660018111156114c6576114c6614bbe565b146114e35760405162461bcd60e51b81526004016110449061503e565b6114ec81612789565b34101561150b5760405162461bcd60e51b815260040161104490615076565b601a5433600090815260126020526040908190205483911c6001600160401b03166115369190615086565b11156115545760405162461bcd60e51b8152600401611044906150c6565b61155e338261281c565b50565b6060610ff083836128c1565b60038181548110610d8157600080fd5b60006001600160a01b0382166115a6576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152601260205260409020546001600160401b031690565b6115d3612565565b6115dd6000612c42565b565b601b54610100900460ff166116065760405162461bcd60e51b815260040161104490614f4c565b336116108261244a565b516001600160a01b0316146116375760405162461bcd60e51b815260040161104490614f91565b61155e8161258f565b611648612565565b601b8054911515620100000262ff000019909216919091179055565b606060008060006116748561157d565b90506000816001600160401b0381111561169057611690614c37565b6040519080825280602002602001820160405280156116b9578160200160208202803683370190505b5090506116e660408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614611767576116f981612c94565b915081604001511561170a5761175f565b81516001600160a01b03161561171f57815194505b876001600160a01b0316856001600160a01b0316141561175f578083878060010198508151811061175257611752614f5c565b6020026020010181815250505b6001016116e9565b50909695505050505050565b61177b612565565b80600181111561178d5761178d614bbe565b6019805460ff1916600183818111156117a8576117a8614bbe565b021790555050565b6060610d6b82612cd0565b600081600181101580156117d657506117d261255b565b8111155b6117f25760405162461bcd60e51b815260040161104490614f17565b50506000908152601d602052604090205460ff1690565b60008181548110610d8157600080fd5b606060108054610e3c90614e8a565b600b8181548110610d8157600080fd5b3360008181526014602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061189b90859061482d565b60405180910390a35050565b60098181548110610d8157600080fd5b6118bf612565565b601655565b601b546301000000900460ff166118da57600080fd5b8060005b818110156113f35760008484838181106118fa576118fa614f5c565b90506020020135905061190a3390565b6001600160a01b031661191c8261244a565b516001600160a01b0316146119435760405162461bcd60e51b815260040161104490614f91565b61194c81612e73565b5061195681614fb7565b90506118de565b6119688484846110df565b6001600160a01b0383163b156113f35761198484848484612f11565b6113f3576040516368d2bf6b60e11b815260040160405180910390fd5b6119a9612565565b601b80549115156101000261ff0019909216919091179055565b6119cb612565565b601f80546001600160a01b0319166001600160a01b0392909216919091179055565b60608160018110158015611a085750611a0461255b565b8111155b611a245760405162461bcd60e51b815260040161104490614f17565b601b5460ff1615611a3f57611a3883613008565b91506112c1565b611a38836132d8565b601b546301000000900460ff16611a5e57600080fd5b33611a688261244a565b516001600160a01b031614611a8f5760405162461bcd60e51b815260040161104490614f91565b61155e81612e73565b611aa0612565565b611aaa828261281c565b5050565b60178181548110610fb357600080fd5b6060610d6b826133c4565b611ad1612565565b601b805460ff19168215151790557f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c6001611b0a61255b565b604051611b189291906150eb565b60405180910390a150565b6001600160a01b038116600090815260126020526040808220546001600160401b03911c16610d6b565b611b55612565565b601b805491151563010000000263ff00000019909216919091179055565b600a8181548110610d8157600080fd5b6000610d6b82612789565b60058181548110610d8157600080fd5b611ba6612565565b6001600160a01b038116611bcc5760405162461bcd60e51b815260040161104490615106565b61155e81612c42565b611bdd612565565b8180611be857600080fd5b60005b8181101561131557611c23858583818110611c0857611c08614f5c565b9050602002016020810190611c1d9190614b0e565b8461281c565b611c2c81614fb7565b9050611beb565b600081600111158015611c475750600d5482105b8015610d6b575050600090815260116020526040902054600160e01b161590565b60606000611c7584613597565b90506000600b826020015181548110611c9057611c90614f5c565b906000526020600020018054611ca590614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054611cd190614e8a565b8015611d1e5780601f10611cf357610100808354040283529160200191611d1e565b820191906000526020600020905b815481529060010190602001808311611d0157829003601f168201915b505050505090506000600c836020015181548110611d3e57611d3e614f5c565b906000526020600020018054611d5390614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054611d7f90614e8a565b8015611dcc5780601f10611da157610100808354040283529160200191611dcc565b820191906000526020600020905b815481529060010190602001808311611daf57829003601f168201915b505050505090506000600a846000015181548110611dec57611dec614f5c565b90600052602060002001611f7c6003866040015181548110611e1057611e10614f5c565b906000526020600020018054611e2590614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054611e5190614e8a565b8015611e9e5780601f10611e7357610100808354040283529160200191611e9e565b820191906000526020600020905b815481529060010190602001808311611e8157829003601f168201915b50505050506000805480602002602001604051908101604052809291908181526020016000905b82821015611f71578382906000526020600020018054611ee490614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054611f1090614e8a565b8015611f5d5780601f10611f3257610100808354040283529160200191611f5d565b820191906000526020600020905b815481529060010190602001808311611f4057829003601f168201915b505050505081526020019060010190611ec5565b505050508686613694565b6121026007876060015181548110611f9657611f96614f5c565b906000526020600020018054611fab90614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054611fd790614e8a565b80156120245780601f10611ff957610100808354040283529160200191612024565b820191906000526020600020905b81548152906001019060200180831161200757829003601f168201915b50505050506000805480602002602001604051908101604052809291908181526020016000905b828210156120f757838290600052602060002001805461206a90614e8a565b80601f016020809104026020016040519081016040528092919081815260200182805461209690614e8a565b80156120e35780601f106120b8576101008083540402835291602001916120e3565b820191906000526020600020905b8154815290600101906020018083116120c657829003601f168201915b50505050508152602001906001019061204b565b505050508787613694565b612286600188608001518154811061211c5761211c614f5c565b90600052602060002001805461213190614e8a565b80601f016020809104026020016040519081016040528092919081815260200182805461215d90614e8a565b80156121aa5780601f1061217f576101008083540402835291602001916121aa565b820191906000526020600020905b81548152906001019060200180831161218d57829003601f168201915b50505050506000805480602002602001604051908101604052809291908181526020016000905b8282101561227d5783829060005260206000200180546121f090614e8a565b80601f016020809104026020016040519081016040528092919081815260200182805461221c90614e8a565b80156122695780601f1061223e57610100808354040283529160200191612269565b820191906000526020600020905b81548152906001019060200180831161224c57829003601f168201915b5050505050815260200190600101906121d1565b50505050613c38565b896122a0576040518060200160405280600081525061241b565b61241b60058960a00151815481106122ba576122ba614f5c565b9060005260206000200180546122cf90614e8a565b80601f01602080910402602001604051908101604052809291908181526020018280546122fb90614e8a565b80156123485780601f1061231d57610100808354040283529160200191612348565b820191906000526020600020905b81548152906001019060200180831161232b57829003601f168201915b50505050506000805480602002602001604051908101604052809291908181526020016000905b8282101561227d57838290600052602060002001805461238e90614e8a565b80601f01602080910402602001604051908101604052809291908181526020018280546123ba90614e8a565b80156124075780601f106123dc57610100808354040283529160200191612407565b820191906000526020600020905b8154815290600101906020018083116123ea57829003601f168201915b50505050508152602001906001019061236f565b60405160200161242f9594939291906152ca565b60408051808303601f19018152919052979650505050505050565b604080516080810182526000808252602082018190529181018290526060810191909152610d6b61247a8361248a565b6140e1565b61155e816000614128565b600081806001116124da57600d548110156124da57600081815260116020526040902054600160e01b81166124d8575b80610ff05750600019016000818152601160205260409020546124ba565b505b604051636f96cda160e11b815260040160405180910390fd5b6001600160a01b038416612506576113f3565b815b6125128284615086565b811015611315576000818152601d602052604090205460ff161561254b5780604051630817ac8360e11b8152600401611044919061495b565b61255481614fb7565b9050612508565b600d546000190190565b6015546001600160a01b031633146115dd5760405162461bcd60e51b815260040161104490615364565b6000818152601e602052604090205460ff16156125be5760405162461bcd60e51b815260040161104490615397565b6000818152601d602052604090205460ff16156125ed5760405162461bcd60e51b8152600401611044906153cf565b60006125fa6001436153df565b40823360405160200161260f93929190615431565b60408051601f1981840301815291905280516020909101209050612634600382615482565b612719576000828152601d602090815260408083208054600160ff199182168117909255601e9093528184208054909316179091555183917f76b49988b90e94a5bfed4dea47aad219142c0e805242c3e6af02dba61a61f03291a260405182907fd957aba451d8a829f78badd36c42e3677a4e47e301f6d198dcd8701102bfed9990600090a2604051309083907f9ecfd70e9ff36df72989324a49559383d39f9290d700b10cf5ac10dcb68d264390600090a3604051829030907f625fed9875dada8643f2418b838ae0bc78d9a148a18eee4ee1979ff0f3f5d42790600090a361274e565b61272282614268565b60405182907fab0da20d767422092730fd9d05b4a3c781446cd8d9c37704a7b0f71cb9db3f4290600090a25b7ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce78260405161277d919061495b565b60405180910390a15050565b60008061279461255b565b905060008060016017805490506127ab91906153df565b90505b601781815481106127c1576127c1614f5c565b906000526020600020015483106127da578091506127ea565b6127e381615496565b90506127ae565b50601881815481106127fe576127fe614f5c565b90600052602060002001548461281491906154ad565b949350505050565b806000811161283d5760405162461bcd60e51b8152600401611044906154f2565b6016548161284961255b565b6128539190615086565b11156128715760405162461bcd60e51b815260040161104490615520565b600061287b61255b565b612886906001615086565b9050805b6128948483615086565b8110156128b6576128a481614268565b806128ae81614fb7565b91505061288a565b506113f384846142b0565b606060006128ce84613597565b604080516102608101825260016102208201818152600360fc1b610240840152825282518084018452818152603160f81b6020828101919091528084019190915283518085018552828152601960f91b818301528385015283518085018552828152603360f81b81830152606084015283518085018552828152600d60fa1b81830152608084015283518085018552828152603560f81b8183015260a084015283518085018552828152601b60f91b8183015260c084015283518085018552828152603760f81b8183015260e084015283518085018552828152600760fb1b8183015261010084015283518085018552828152603960f81b8183015261012084015283518085018552600280825261031360f41b828401526101408501919091528451808601865281815261313160f01b818401526101608501528451808601865281815261189960f11b818401526101808501528451808601865281815261313360f01b818401526101a085015284518086018652818152610c4d60f21b818401526101c08501528451808601865281815261313560f01b818401526101e08501528451808601909552845261189b60f11b908401526102008201929092528251929350916000918391612aa291615086565b60118110612ab257612ab2614f5c565b60200201518284602001516001612ac99190615086565b60118110612ad957612ad9614f5c565b60200201516004856040015181548110612af557612af5614f5c565b906000526020600020016008866060015181548110612b1657612b16614f5c565b906000526020600020016002876080015181548110612b3757612b37614f5c565b9060005260206000200189612bf55760068860a0015181548110612b5d57612b5d614f5c565b906000526020600020018054612b7290614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054612b9e90614e8a565b8015612beb5780601f10612bc057610100808354040283529160200191612beb565b820191906000526020600020905b815481529060010190602001808311612bce57829003601f168201915b5050505050612c13565b604051806040016040528060048152602001634e6f6e6560e01b8152505b604051602001612c289695949392919061560c565b60408051808303601f190181529190529695505050505050565b601580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260116020526040902054610d6b906140e1565b60606000612e4c6009600181548110612ceb57612ceb614f5c565b906000526020600020018054612d0090614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054612d2c90614e8a565b8015612d795780601f10612d4e57610100808354040283529160200191612d79565b820191906000526020600020905b815481529060010190602001808311612d5c57829003601f168201915b50505050506000805480602002602001604051908101604052809291908181526020016000905b8282101561227d578382906000526020600020018054612dbf90614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054612deb90614e8a565b8015612e385780601f10612e0d57610100808354040283529160200191612e38565b820191906000526020600020905b815481529060010190602001808311612e1b57829003601f168201915b505050505081526020019060010190612da0565b604051602001612e5c9190615728565b60408051601f198184030181529190529392505050565b6000818152601d602052604090205460ff1615612ea25760405162461bcd60e51b8152600401611044906153cf565b6000818152601d6020526040808220805460ff191660011790555182917f76b49988b90e94a5bfed4dea47aad219142c0e805242c3e6af02dba61a61f03291a27ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce781604051611b18919061495b565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612f46903390899088908890600401615809565b602060405180830381600087803b158015612f6057600080fd5b505af1925050508015612f90575060408051601f3d908101601f19168201909252612f8d91810190615858565b60015b612feb573d808015612fbe576040519150601f19603f3d011682016040523d82523d6000602084013e612fc3565b606091505b508051612fe3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6000818152601c6020908152604080832054601e835281842054601d90935290832054606093919260ff90811692911690826130c957601f546040516312ef6b9760e01b81526001600160a01b03909116906312ef6b97906130709087908690600401615879565b60006040518083038186803b15801561308857600080fd5b505afa15801561309c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526130c491908101906158ec565b61314d565b601f546040516344dc4fad60e11b81526001600160a01b03909116906389b89f5a906130f990879060040161495b565b60006040518083038186803b15801561311157600080fd5b505afa158015613125573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261314d91908101906158ec565b905060006132aa61315d886142ca565b601f54604051630cfe052360e31b81526001600160a01b03909116906367f029189061318f908a908990600401615879565b60006040518083038186803b1580156131a757600080fd5b505afa1580156131bb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526131e391908101906158ec565b6131ec88614366565b876132145760405180604001604052806005815260200164112cb2b99160d91b815250613232565b604051806040016040528060048152602001631127379160e11b8152505b8761325957604051806040016040528060048152602001631127379160e11b815250613278565b60405180604001604052806005815260200164112cb2b99160d91b8152505b613281886143ca565b60405160200161329696959493929190615a89565b6040516020818303038152906040526143ca565b9050806040516020016132bd9190615b8d565b60405160208183030381529060405295505050505050919050565b6000818152601c602052604080822054601f549151633521481160e21b815260609391926001600160a01b03169063d48520449061331a90859060040161495b565b60006040518083038186803b15801561333257600080fd5b505afa158015613346573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261336e91908101906158ec565b9050600061339861337e866142ca565b613387846143ca565b604051602001613296929190615bbf565b9050806040516020016133ab9190615b8d565b6040516020818303038152906040529350505050919050565b606060006133d183613597565b90506000600a8260000151815481106133ec576133ec614f5c565b9060005260206000200161356e600960008154811061340d5761340d614f5c565b90600052602060002001805461342290614e8a565b80601f016020809104026020016040519081016040528092919081815260200182805461344e90614e8a565b801561349b5780601f106134705761010080835404028352916020019161349b565b820191906000526020600020905b81548152906001019060200180831161347e57829003601f168201915b50505050506000805480602002602001604051908101604052809291908181526020016000905b8282101561227d5783829060005260206000200180546134e190614e8a565b80601f016020809104026020016040519081016040528092919081815260200182805461350d90614e8a565b801561355a5780601f1061352f5761010080835404028352916020019161355a565b820191906000526020600020905b81548152906001019060200180831161353d57829003601f168201915b5050505050815260200190600101906134c2565b60405160200161357f929190615c7f565b60408051601f19818403018152919052949350505050565b6135d06040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805160c08101909152600a5481906135ea9085615482565b8152600b54602090910190613600600286615cb8565b61360a9190615482565b81526020016003805490506003856136229190615cb8565b61362c9190615482565b8152600754602090910190613642600486615cb8565b61364c9190615482565b8152600154602090910190613662600586615cb8565b61366c9190615482565b8152600554602090910190613682600686615cb8565b61368c9190615482565b905292915050565b604080516104608101825260016104208201818152600360fc1b610440840152825282518084018452818152603160f81b6020828101919091528084019190915283518085018552828152601960f91b818301528385015283518085018552828152603360f81b8183015260608481019190915284518086018652838152600d60fa1b81840152608085015284518086018652838152603560f81b8184015260a085015284518086018652838152601b60f91b8184015260c085015284518086018652838152603760f81b8184015260e085015284518086018652838152600760fb1b8184015261010085015284518086018652928352603960f81b8383015261012084019290925283518085018552600280825261031360f41b828401526101408501919091528451808601865281815261313160f01b818401526101608501528451808601865281815261189960f11b818401526101808501528451808601865281815261313360f01b818401526101a085015284518086018652818152610c4d60f21b818401526101c08501528451808601865281815261313560f01b818401526101e08501528451808601865281815261189b60f11b818401526102008501528451808601865281815261313760f01b818401526102208501528451808601865281815261062760f31b818401526102408501528451808601865281815261313960f01b818401526102608501528451808601865281815261032360f41b818401526102808501528451808601865281815261323160f01b818401526102a08501528451808601865281815261191960f11b818401526102c08501528451808601865281815261323360f01b818401526102e085015284518086018652818152610c8d60f21b818401526103008501528451808601865281815261323560f01b818401526103208501528451808601865281815261191b60f11b818401526103408501528451808601865281815261323760f01b818401526103608501528451808601865281815261064760f31b818401526103808501528451808601865281815261323960f01b818401526103a08501528451808601865281815261033360f41b818401526103c08501528451808601865281815261333160f01b818401526103e08501528451808601909552845261199960f11b90840152610400820192909252816000805b8851811015613c2b576000898281518110613a1d57613a1d614f5c565b016020015160f81c905060008a613a35846001615086565b81518110613a4557613a45614f5c565b0160209081015160f81c9150600090613a5e9086615482565b90506000613a6d602087615cb8565b905060ff8316613a7c57613c04565b8260ff1660031415613b025786888560ff1660218110613a9e57613a9e614f5c565b6020020151898460ff1660218110613ab857613ab8614f5c565b60200201518a8460ff1660218110613ad257613ad2614f5c565b60200201518e604051602001613aec959493929190615ce2565b6040516020818303038152906040529650613c04565b8260ff1660041415613b725786888560ff1660218110613b2457613b24614f5c565b6020020151898460ff1660218110613b3e57613b3e614f5c565b60200201518a8460ff1660218110613b5857613b58614f5c565b60200201518d604051602001613aec959493929190615ce2565b86888560ff1660218110613b8857613b88614f5c565b6020020151898460ff1660218110613ba257613ba2614f5c565b60200201518a8460ff1660218110613bbc57613bbc614f5c565b60200201518f8760ff1681518110613bd657613bd6614f5c565b6020026020010151604051602001613bf2959493929190615ce2565b60405160208183030381529060405296505b613c1160ff851687615086565b955050505050806002613c249190615086565b9050613a00565b5090979650505050505050565b604080516104608101825260016104208201818152600360fc1b610440840152825282518084018452818152603160f81b6020828101919091528084019190915283518085018552828152601960f91b818301528385015283518085018552828152603360f81b8183015260608481019190915284518086018652838152600d60fa1b81840152608085015284518086018652838152603560f81b8184015260a085015284518086018652838152601b60f91b8184015260c085015284518086018652838152603760f81b8184015260e085015284518086018652838152600760fb1b8184015261010085015284518086018652928352603960f81b8383015261012084019290925283518085018552600280825261031360f41b828401526101408501919091528451808601865281815261313160f01b818401526101608501528451808601865281815261189960f11b818401526101808501528451808601865281815261313360f01b818401526101a085015284518086018652818152610c4d60f21b818401526101c08501528451808601865281815261313560f01b818401526101e08501528451808601865281815261189b60f11b818401526102008501528451808601865281815261313760f01b818401526102208501528451808601865281815261062760f31b818401526102408501528451808601865281815261313960f01b818401526102608501528451808601865281815261032360f41b818401526102808501528451808601865281815261323160f01b818401526102a08501528451808601865281815261191960f11b818401526102c08501528451808601865281815261323360f01b818401526102e085015284518086018652818152610c8d60f21b818401526103008501528451808601865281815261323560f01b818401526103208501528451808601865281815261191b60f11b818401526103408501528451808601865281815261323760f01b818401526103608501528451808601865281815261064760f31b818401526103808501528451808601865281815261323960f01b818401526103a08501528451808601865281815261033360f41b818401526103c08501528451808601865281815261333160f01b818401526103e08501528451808601909552845261199960f11b90840152610400820192909252816000805b86518110156140d6576000878281518110613fc157613fc1614f5c565b016020015160f81c9050600088613fd9846001615086565b81518110613fe957613fe9614f5c565b016020015160f81c905080156140b1576000614006602086615482565b90506000614015602087615cb8565b905060008a8460ff168151811061402e5761402e614f5c565b6020026020010151905087898660ff166021811061404e5761404e614f5c565b60200201518a8560ff166021811061406857614068614f5c565b60200201518b8560ff166021811061408257614082614f5c565b60200201518460405160200161409c959493929190615ce2565b60405160208183030381529060405297505050505b6140be60ff831685615086565b935050508060026140cf9190615086565b9050613fa4565b509095945050505050565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b60006141338361248a565b90508060008061415186600090815260136020526040902080549091565b91509150841561419157614166818433611134565b614191576141748333610c84565b61419157604051632ce44b5f60e11b815260040160405180910390fd5b61419f8360008860016124f3565b80156141aa57600082555b6001600160a01b038316600081815260126020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260116020526040902055600160e11b8416614231576001860160008181526011602052604090205461422f57600d54811461422f5760008181526011602052604090208590555b505b60405186906000906001600160a01b03861690600080516020615f82833981519152908390a45050600e8054600101905550505050565b6142736001436153df565b40813360405160200161428893929190615d71565b60408051601f1981840301815291815281516020928301206000938452601c90925290912055565b611aaa82826040518060200160405280600081525061452f565b606060006142d783614595565b60010190506000816001600160401b038111156142f6576142f6614c37565b6040519080825280601f01601f191660200182016040528015614320576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846143595761435e565b61432a565b509392505050565b6060600061438161437c8460026001600561466d565b6142ca565b61439361437c8560036001600a61466d565b6143a561437c8660046001600a61466d565b6143b761437c8760056001600a61466d565b604051602001612e5c9493929190615da8565b60608151600014156143ea57505060408051602081019091526000815290565b6000604051806060016040528060408152602001615f4260409139905060006003845160026144199190615086565b6144239190615cb8565b61442e9060046154ad565b9050600061443d826020615086565b6001600160401b0381111561445457614454614c37565b6040519080825280601f01601f19166020018201604052801561447e576020820181803683370190505b509050818152600183018586518101602084015b818310156144ea576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101614492565b600389510660018114614504576002811461451557614521565b613d3d60f01b600119830152614521565b603d60f81b6000198301525b509398975050505050505050565b61453983836146a0565b6001600160a01b0383163b1561133757600d548281035b6145636000868380600101945086612f11565b614580576040516368d2bf6b60e11b815260040160405180910390fd5b8181106145505781600d541461131557600080fd5b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106145d45772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310614600576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061461e57662386f26fc10000830492506010015b6305f5e1008310614636576305f5e100830492506008015b612710831061464a57612710830492506004015b6064831061465c576064830492506002015b600a8310610d6b5760010192915050565b600061467983836153df565b6146838587615cb8565b61468d9190615482565b6146979084615086565b95945050505050565b600d54816146c15760405163b562e8dd60e01b815260040160405180910390fd5b6146ce60008483856124f3565b6001600160a01b03831660008181526012602090815260408083208054680100000000000000018802019055848352601190915281206001851460e11b4260a01b17831790558284019083908390600080516020615f828339815191528180a4600183015b8181146147595780836000600080516020615f82833981519152600080a4600101614733565b508161477757604051622e076360e81b815260040160405180910390fd5b600d5550505050565b8280548282559060005260206000209081019282156147bb579160200282015b828111156147bb5782358255916020019190600101906147a0565b506147c79291506147cb565b5090565b5b808211156147c757600081556001016147cc565b6001600160e01b031981165b811461155e57600080fd5b8035610d6b816147e0565b60006020828403121561481757614817600080fd5b600061281484846147f7565b8015155b82525050565b60208101610d6b8284614823565b806147ec565b8035610d6b8161483b565b60006020828403121561486157614861600080fd5b60006128148484614841565b60005b83811015614888578181015183820152602001614870565b838111156113f35750506000910152565b60006148a3825190565b8084526020840193506148ba81856020860161486d565b601f01601f19169290920192915050565b60208082528101610ff08184614899565b60006001600160a01b038216610d6b565b614827816148dc565b60208101610d6b82846148ed565b6147ec816148dc565b8035610d6b81614904565b6000806040838503121561492e5761492e600080fd5b600061493a858561490d565b925050602061494b85828601614841565b9150509250929050565b80614827565b60208101610d6b8284614955565b8015156147ec565b8035610d6b81614969565b6000806040838503121561499257614992600080fd5b600061499e8585614841565b925050602061494b85828601614971565b6000806000606084860312156149c7576149c7600080fd5b60006149d3868661490d565b93505060206149e48682870161490d565b92505060406149f586828701614841565b9150509250925092565b60008083601f840112614a1457614a14600080fd5b5081356001600160401b03811115614a2e57614a2e600080fd5b602083019150836020820283011115614a4957614a49600080fd5b9250929050565b60008060008060408587031215614a6957614a69600080fd5b84356001600160401b03811115614a8257614a82600080fd5b614a8e878288016149ff565b945094505060208501356001600160401b03811115614aaf57614aaf600080fd5b614abb878288016149ff565b95989497509550505050565b60008060208385031215614add57614add600080fd5b82356001600160401b03811115614af657614af6600080fd5b614b02858286016149ff565b92509250509250929050565b600060208284031215614b2357614b23600080fd5b6000612814848461490d565b600060208284031215614b4457614b44600080fd5b60006128148484614971565b6000614b5c8383614955565b505060200190565b6000614b6e825190565b80845260209384019383018060005b83811015614ba2578151614b918882614b50565b975060208301925050600101614b7d565b509495945050505050565b60208082528101610ff08184614b64565b634e487b7160e01b600052602160045260246000fd5b6002811061155e5761155e614bbe565b80614bee81614bd4565b919050565b6000610d6b82614be4565b61482781614bf3565b60208101610d6b8284614bfe565b60008060408385031215614c2b57614c2b600080fd5b600061499e858561490d565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b0382111715614c7257614c72614c37565b6040525050565b6000614c8460405190565b9050614bee8282614c4d565b60006001600160401b03821115614ca957614ca9614c37565b601f19601f83011660200192915050565b82818337506000910152565b6000614cd9614cd484614c90565b614c79565b905082815260208101848484011115614cf457614cf4600080fd5b61435e848285614cba565b600082601f830112614d1357614d13600080fd5b8135612814848260208601614cc6565b60008060008060808587031215614d3c57614d3c600080fd5b6000614d48878761490d565b9450506020614d598782880161490d565b9350506040614d6a87828801614841565b92505060608501356001600160401b03811115614d8957614d89600080fd5b614d9587828801614cff565b91505092959194509250565b6000610d6b6001600160a01b038316614db8565b90565b6001600160a01b031690565b6000610d6b82614da1565b6000610d6b82614dc4565b61482781614dcf565b60208101610d6b8284614dda565b60008060408385031215614e0757614e07600080fd5b6000614e13858561490d565b925050602061494b8582860161490d565b600080600060408486031215614e3c57614e3c600080fd5b83356001600160401b03811115614e5557614e55600080fd5b614e61868287016149ff565b935093505060206149f586828701614841565b634e487b7160e01b600052602260045260246000fd5b600281046001821680614e9e57607f821691505b602082108114156112c1576112c1614e74565b60168152600060208201752737ba1030b8383937bb32b2103737b91037bbb732b960511b815291505b5060200190565b60208082528101610d6b81614eb1565b600f81526000602082016e125b9d985b1a59081d1bdad95b9259608a1b81529150614eda565b60208082528101610d6b81614ef1565b600e81526000602082016d135bdc9c1a08191a5cd8589b195960921b81529150614eda565b60208082528101610d6b81614f27565b634e487b7160e01b600052603260045260246000fd5b600881526000602082016726bab9ba1037bbb760c11b81529150614eda565b60208082528101610d6b81614f72565b634e487b7160e01b600052601160045260246000fd5b6000600019821415614fcb57614fcb614fa1565b5060010190565b6000610d6b82614db5565b601181526000602082017015d2551211149055d05317d19052531151607a1b81529150614eda565b60208082528101610d6b81614fdd565b6012815260006020820171141d589b1a58c81b5a5b9d0818db1bdcd95960721b81529150614eda565b60208082528101610d6b81615015565b6011815260006020820170496e636f72726563742070617961626c6560781b81529150614eda565b60208082528101610d6b8161504e565b6000821982111561509957615099614fa1565b500190565b601181526000602082017045786365656473206d6178206d696e747360781b81529150614eda565b60208082528101610d6b8161509e565b6000610d6b614db58381565b614827816150d6565b604081016150f982856150e2565b610ff06020830184614955565b60208082528101610d6b81602681527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160208201526564647265737360d01b604082015260600190565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d2230203020333220333222207368617060208201527f652d72656e646572696e673d2263726973704564676573222077696474683d2260408201527f35313222206865696768743d22353132223e3c726563742077696474683d223160608201527f30302522206865696768743d2231303025222066696c6c3d22230000000000006080820152609a0190565b6000815461521e81614e8a565b600182168015615235576001811461524657615276565b60ff19831686528186019350615276565b60008581526020902060005b8381101561526e57815488820152600190910190602001615252565b838801955050505b50505092915050565b6211179f60e91b815260005b5060030190565b600061529c825190565b6152aa81856020860161486d565b9290920192915050565b651e17b9bb339f60d11b815260005b5060060190565b60006152d582615150565b91506152e18288615211565b91506152ec8261527f565b91506152f88287615292565b91506153048286615292565b91506153108285615292565b915061531c8284615292565b9150615327826152b4565b979650505050505050565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000614eda565b60208082528101610d6b81615332565b600c81526000602082016b105b1c9958591e481919585960a21b81529150614eda565b60208082528101610d6b81615374565b6011815260006020820170105b1c9958591e481cdbdd5b189bdd5b99607a1b81529150614eda565b60208082528101610d6b816153a7565b6000828210156153f1576153f1614fa1565b500390565b6000610d6b8260601b90565b6000610d6b826153f6565b614827615419826148dc565b615402565b651c9a58989a5d60d21b815260006152c3565b600061543d8286614955565b60208201915061544d8285614955565b60208201915061545d828461540d565b6014820191506146978261541e565b634e487b7160e01b600052601260045260246000fd5b6000826154915761549161546c565b500690565b6000816154a5576154a5614fa1565b506000190190565b60008160001904831182151516156154c7576154c7614fa1565b500290565b600f81526000602082016e4d696e74206174206c65617374203160881b81529150614eda565b60208082528101610d6b816154cc565b600781526000602082016604f7665726361760cc1b81529150614eda565b60208082528101610d6b81615502565b62089f4b60ea1b8152600061528b565b7f7b2274726169745f74797065223a22426f6479222c202276616c7565223a2200815260005b50601f0190565b7f7b2274726169745f74797065223a225761727473222c202276616c7565223a2281526000614eda565b7f7b2274726169745f74797065223a224163636573736f72696573222c20227661815265363ab2911d1160d11b602082015260005b5060260190565b7f227d2c7b2274726169745f74797065223a22506c6174666f726d222c20227661815265363ab2911d1160d11b602082015260006155cc565b7f7b2274726169745f74797065223a224261636b67726f756e64222c202276616c8152643ab2911d1160d91b6020820152602501600061564c8289615292565b915061565782615530565b7f7b2274726169745f74797065223a2250616c65747465222c202276616c7565228152611d1160f11b602082015260220191506156948288615292565b915061569f82615530565b91506156aa82615540565b91506156b68287615211565b91506156c182615530565b91506156cc8261556d565b91506156d88286615211565b91506156e382615530565b91506156ee82615597565b91506156fa8285615211565b9150615705826155d3565b91506157118284615292565b915061571c82615530565b98975050505050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d2230203020333220333222207368617060208201527f652d72656e646572696e673d2263726973704564676573222077696474683d2260408201527f35313222206865696768743d22353132223e3c726563742077696474683d223160608201527f30302522206865696768743d2231303025222066696c6c3d222330303030303060808201526211179f60e91b60a082015260a30160006157fe8284615292565b9150610ff0826152b4565b6080810161581782876148ed565b61582460208301866148ed565b6158316040830185614955565b81810360608301526158438184614899565b9695505050505050565b8051610d6b816147e0565b60006020828403121561586d5761586d600080fd5b6000612814848461584d565b604081016158878285614955565b610ff06020830184614823565b60006158a2614cd484614c90565b9050828152602081018484840111156158bd576158bd600080fd5b61435e84828561486d565b600082601f8301126158dc576158dc600080fd5b8151612814848260208601615894565b60006020828403121561590157615901600080fd5b81516001600160401b0381111561591a5761591a600080fd5b612814848285016158c8565b6803d913730b6b2911d160bd1b815260005b5060090190565b61088b60f21b815260005b5060020190565b7f226465736372697074696f6e223a202254696e792042617365642046726f677381527f206973206120313030252066756c6c79206f6e2d636861696e204e465420636f60208201527f6c6c656374696f6e2c20666561747572696e6720756e666174686f6d6c79206260408201527f61736564206f6e2d636861696e20696e746572616374697665206d656368616e6060820152651a58dccb888b60d21b608082015260860190565b7f7b2274726169745f74797065223a22416c697665222c202276616c7565223a0081526000615566565b611f4b60f21b8152600061594a565b621f574b60ea1b8152600061528b565b7f22696d616765223a2022646174613a696d6167652f7376672b786d6c3b626173815263194d8d0b60e21b602082015260240190565b61227d60f01b8152600061594a565b6000615a9482615926565b712254696e792042617365642046726f67202360701b81526012019150615abb8289615292565b9150615ac68261593f565b9150615ad182615951565b6d2261747472696275746573223a5b60901b8152600e019150615af48288615292565b9150615b008287615292565b9150615b0b826159fb565b9150615b178286615292565b9150615b2282615a25565b7f7b2274726169745f74797065223a22536f756c626f756e64222c202276616c7581526232911d60e91b60208201526023019150615b608285615292565b9150615b6b82615a34565b9150615b7682615a44565b9150615b828284615292565b915061571c82615a7a565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152601d016000610ff08284615292565b6000615bca82615926565b712254696e792042617365642046726f67202360701b81526012019150615bf18285615292565b9150615bfc8261593f565b9150615c0782615951565b7f2261747472696275746573223a5b7b2274726169745f74797065223a2257616981527f74696e6720746f206861746368222c202276616c7565223a2254727565227d5d6020820152600b60fa1b60408201526041019150615c6882615a44565b9150615c748284615292565b915061281482615a7a565b6000615c8a82615150565b9150615c968285615211565b9150615ca18261527f565b9150615cad8284615292565b9150612814826152b4565b600082615cc757615cc761546c565b500490565b68222066696c6c3d222360b81b81526000615938565b6000615cee8288615292565b6c1e3932b1ba103bb4b23a341e9160991b8152600d019150615d108287615292565b6f11103432b4b3b43a1e911891103c1e9160811b81526010019150615d358286615292565b6411103c9e9160d91b81526005019150615d4f8285615292565b9150615d5a82615ccc565b9150615d668284615292565b91506153278261527f565b6000615d7d8286614955565b602082019150615d8d8285614955565b602082019150615d9d828461540d565b506014019392505050565b7f7b2274726169745f74797065223a22486f7020506f776572222c20226469737081527f6c61795f74797065223a20226e756d626572222c202276616c7565223a0000006020820152603d016000615e008287615292565b9150615e0b82615a25565b7f7b2274726169745f74797065223a225374616d696e61222c2022646973706c6181527f795f74797065223a20226e756d626572222c202276616c7565223a00000000006020820152603b019150615e638286615292565b9150615e6e82615a25565b7f7b2274726169745f74797065223a224c696c79205061642042616c616e63652281527f2c2022646973706c61795f74797065223a20226e756d626572222c202276616c6020820152633ab2911d60e11b60408201526044019150615ed38285615292565b9150615ede82615a25565b7f7b2274726169745f74797065223a225377696d205370656564222c202264697381527f706c61795f74797065223a20226e756d626572222c202276616c7565223a00006020820152603e019150615f368284615292565b915061584382615a2556fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122057455db87880c10203bb264fcfecd92b17930a1ca4cfaaee275df0881b37f27864736f6c63430008090033ff006f0003010100020119000101030b0101020b010118000201020b0101020b010117000201030b0104010b0101010b0101150001010104010108040101130001010504070112000101050403010303010113000101020401010204030303011400020102040101030401010204020112000f01ff006f00030101000201190001010304010102040101180001010204010b0101010b0104010117000201010b0101010b0104010b0101010b0101150001010104010108040101130001010404080112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f018e0006011a000101040c01011a000101040c01011a000101040c01011a000101040c010117000301060d0301140001010a0c010115000a01ff006f000301010002011900010103040101020401011800010103040101010b020117000201010b0101010b0404010115000101010401010804010113000101030402010204050112000101060402010303010113000101020401010204030303011400020102040101030401010204020112000f01ff006f0003010100020119000101030401010204010118000101010b0101010b0101010b0201170002010704010115000101010401010804010113000101080404011200010106040503010113000101020401010204030303011400020102040101030401010204020112000f01b00002011d000101020501011b000101040f01011a0001010405010117000c01140001010105010901050109010501090105010901050109010115000a01ff006f0002010300020118000101020403010204010117000101010b020401010204010b010116000201010b0101010b0104010b0101010b0101150001010104010108040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01ab0002011e00010101100101010004011800010102100101040501011700020101100105040101050301130001010205010101050101020b0101010501010205010113000101020506100105020115000a01ff006f0003010100020119000101030401010204010118000101030401010204010117000201010b0101010b0104010b0101010b01011500010101040101080401011300010105040101010b0101010b030112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01500002011d000101010e01011d000101010e010501011c000101020e01011b0001010105030e01011a000101030e010501011a000101040e010117000c0114000101010e0105030e0105020e0105010e010115000a01500004011b000101040801011900010106080101180001010108010102080101010801011800010101080101020801010108010119000101040801011a00010101080201010801011b00010102000101cf0004011b000101040b01011900080117000101080b010117000101060b010118000801d000040b1a00020b0400020b1700010b0400010b0300010b1500010b0200020b0600010b1400010b0200020b0600010b1300010b0c00010b1200010b0c00010b1200010b0c00010b1200010b0c00010b1300010b0a00010b1400010b0a00010b1500010b0800010b1700020b0400020b1a00040bff00ff00a90011010e00010102040e0c010401010d00010101040e0c020401010d0013010c00010101040f0c030401010b001501b20002011d000101020501011b000201020502011800020101050101010b01100101010502011400030102050101021001010205010114000101021301010605010115000a01ff00ff00a90011010e000101010302040203010c02040203010c02040103010c0104010301010d0001010104010c0203010c0104040c02040103020c0104010301010d0013010c000101010301040103020c01040103010c02040103020c02040103010c0104010301010b001501ff006f0003010100020119000101030401010204010118000101030401010204010117000201010b0101010b0104010b0101010b01011500010101040101080401011300010105040701120001010604010301010310010113000101020401010204030303011400020102040101030401010204020112000f01ff00ff00a90011010e0001010208070403030404010801010d0001010108070403030404020801010d0013010c0001010108060403030604030801010b001501ec000108010001081e00010105000108010001081e00010142000108010001081e000101510001141f0001141b000114020001141c000114020001141d00011402000114170001140400011403000114160001140300011404000114170001140300011402000114190001141f0001141e0001141f000114ff006f0003010100020119000101030401010204010118000101010b020401010204010117000201010b0101010b0104010b0101010b0101150001010104010108040101130001010504070112000101060401010403010113000101020401010204030303011400020102040101030401010204020112000f01ce00020102000201190001010213020102130101180001010613010117000201061302011500010101130101060b010101130101140001010a13010115000a01ff006f0003010100020119000101030b0101020b010118000101010b0101010b0101010b020117000201030b0104030b0101150001010104010108040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01700002011d000101020b01011d0002011d0001010108011001011c000101021001011b0001010210020801011a0001010308011001011900010102080410010118000101010803100208010119000701ff006f000301010002011900010103040101020401011800010103040101020401011700050101040401150001010104010108040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01ff006f000601190001010204030b01040101180001010204010b0101010b01040101170002010204030b02040101150001010104010108040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01ce00060119000101060c010118000101060c010117000201060d0201150001010a0c010114000c01ff006f0003010100020119000101030401010204010118000101030b0101020b010117000201010b0101010b0104010b0101010b01011500010101040101080401011300010104040801120001010504010301010410010113000101020401010204020304011400020102040101030401010204020112000f01500003011c000101030801011a000101020802000108010119000101010803000108010119000201030802011a0005011b000101030501011c0003018d0001010600010117000101010b010104000101010b010115000101020b010104000101020b010114000101020b0601020b010114000101010b01010304020301040101010b0101150001010204010b0104020302040101160001010404020302040101160001010803010116000a01ff006f00030101000201190001010304010102040101180001010104010b010401010104010b0101170002010104010b0304010b01040101150001010104010108040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01ff006f000301010002011900010103080101020801011800010103080101020801011700020101080101030801010108010115000101010b010108080101130001010208010b010101080101010801010108030112000101010b0108030b0101010b0101010b0101010b010113000101020b0101010b0108030b03011400020102080101030801010208020112000f01ff006f0003010100020119000101030401010204010118000101030401010204010117000201010b0101010b0104010b0101010b01011500010101040101030b0104030b01040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01ff00ff00a90011010e0001010208040501010108030301010405010801010d0001010108050501010303010801010305020801010d0013010c00010101080f05030801010b001501ff006f0003010100020119000101030401010204010118000101030401010204010117000201010b0101010b0104010b0101010b01011500010101040101080401011300010103040101030b02010204010112000101050403010303010113000101020401010204030303011400020102040101030401010204020112000f016f000201010002011a0001010210010102100101180001010110010b05100101170001010710010118000101051001011a000101031001011c000101011001011e000101ff006f0003010100020119000101030401010204010118000101030401010204010117000201010b0101010b0104010b0101010b01011500010101040201071001011300010103040101011007011200010104040101061001011300010102040101020406011400020102040101030401010204020112000f01ff000c000201080002011300010101060101080001010106010112000101010501010800010101050101120001010206010106000101020601011200010101050101080001010105010113000201080002018d0008011800010106120101180001010612010119000101021203011a000101011201010305010116000401010b010101050101010503011400010104120101030501010112010115000a01ff006f0003010100030118000101010b0101010b0101010b0101010b010117000101010b0101010b0101010b0101010b010116000201010b0101010b0104010b0101010b0101150001010104010108040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01ff00ac0001011e00010101031c0002011d00010102031d0001010103020001031c000101ae00030101000201190001010308010102080101170001010408010102080101170001010208010a01010108010a0101180001010208010a01010108010a0101180001010208010a01010108010a01011800010101080200010101080101190001011f000101ff00ff00a90011010e00010102130e16011301010d00010101130e16021301010d0013010c00010101130f16031301010b001501eb0003011d000101020b010118000501030b010117000101030b0101010b0101020b010116000101040b0101010b19000101020b0101020b1b000101020b0101010b1c000101020b1e000101ee0006011900010106040101180008011700010108040101160001010804010116000a01ff006f0003010100020119000101030b0101020b010118000101030b0101020b010117000201010b0101010b0104010b0101010b010115000101010401010804010113000101040402010504010112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f014c00080118000801140004010819040110000401081904010e000201021904080a1902010c000201021904080a1902010a000201021908080a19020108000201021908080a19020108000201021908080a19020108000201021908080a190201060002010619040802190601061902010400020106190408021906010619020104000201021904080419020102190601041902010400020102190408041902010219060104190201040002010219040804190a0104190201040002010219040804190a0104190201040002010a190a0104190201040002010a190a0104190201060002010a19060104190201080002010a19060104190201080002011419020108000201141902010a000201101902010c000201101902010e0004010819040110000401081904011400080118000801ad00060118000a01150003010108080113000e0112000e0112000e011200050103000101020003011300030108000101150002018d0006011900010106090101160002010209010105090101140001010208010903010309020114000101020802010609010115000c01150001010a08010115000a01ff006f00030101000201190001010304010102040101180001010104010b010401010104010b010117000201010401010304010101040101150001010104010108040101130001010404080112000101040402010503010113000101020401010204030303011400020102040101030401010204020112000f01ff006f0003010100020119000101030401010204010118000101010b0101010b0101010b020117000201070401011500010101040101010401010604010113000101050407011200010106040503010113000101020401010204030303011400020102040101030401010204020112000f01ff006f0003010100020119000101030401010204010118000101030401010204010117000201010b0101010b0104010b0101010b010115000101010401010804010113000101050402030201020301011200010105040603010113000101020401010204030303011400020102040101030401010204020112000f01700003011c0001010108020401011b000101030401011c000101010401011d000101010401011a00040101040401160001010904010115000b011a000108ff006f0003010100020119000101030401010204010115000601010802010108010115000101010003010108020101080301150001010104010108040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01cd0007011800010101040101050901011600010101040201050901011500010101040201060901011500010101040201060401011600010101000801ff00ff00a70015010a0001010217011801010417010102170118010104170101031701010900010101170118020104180101011801170118010104180201011801170101090001010118090101180901011801010900030107180301071803010a001501ff006f0003010100020116000b011500010102000201010b0301010b01011700050101040401150001010104010108040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01ff006f000301010002011900010103040101020401011800080117000201010b0101010b0104010b0101010b010115000101010401010804010113000101040408011200010105040603010113000101020401010204030303011400020102040101030401010204020112000f01500001011d0005011a000101050801011a0005011d0001011d0005011a000101011103090107010118000101021103090207010117000101021103090107050114000d01ff006f0003010100020119000101030401010204010118000101030401010204010117000201010b0101010b0104010b0101010b0101150001010104010108040101130001010504070112000101050401010503010113000101020401010204030303011400020102040101030401010204020112000f01ff006f0003010100020119000101030401010204010118000101030401010204010117000201010b0101010b0104010b0101010b01011500010101040101080406010e0001010504070101150208011001010d00010105040101050307010d000101020401010204030303011400020102040101030401010204020112000f01

Deployed Bytecode

0x6080604052600436106104105760003560e01c80638462151c1161021e578063cb4b1c7711610123578063e6030688116100ab578063e7f1028b1161007a578063e7f1028b14610c49578063e985e9c514610c69578063f0503e8014610cb2578063f2fde38b14610cdf578063f6ad141014610cff57600080fd5b8063e603068814610bac578063e757223014610bcc578063e77f7b4b14610bec578063e7b5ec0f14610c1c57600080fd5b8063d4852044116100f2578063d485204414610b16578063dab56b0e14610b36578063dc33e68114610b56578063e1e8de0a14610b76578063e489d51014610b9657600080fd5b8063cb4b1c7714610a96578063ce4d776c14610ab6578063ce4eded314610ad6578063d04e347114610af657600080fd5b8063a22cb465116101a6578063b53e056e11610175578063b53e056e14610a03578063b88d4fde14610a23578063bd1ce46714610a36578063bfa584d214610a56578063c87b56dd14610a7657600080fd5b8063a22cb46514610984578063a56a58e0146109a4578063af42527f146109c3578063b07ed982146109e357600080fd5b8063911ec470116101ed578063911ec470146108e8578063958ba0bf1461090857806395d89b411461092857806397974b401461093d5780639da3f8fd1461095d57600080fd5b80638462151c1461085d578063887fee311461088a57806389b89f5a146108aa5780638da5cb5b146108ca57600080fd5b80633726230a116103245780636352211e116102ac57806370a082311161027b57806370a08231146107b8578063715018a6146107d857806375326ab6146107ed5780637a1815971461080d5780637a9db9901461083d57600080fd5b80636352211e14610745578063661387bc1461076557806367f02918146107785780636c6eb9d11461079857600080fd5b806347cb5a43116102f357806347cb5a43146106ab5780634bf967ff146106cb57806351830227146106eb57806351cff8d914610705578063532126371461072557600080fd5b80633726230a146106435780633ea126531461065857806342842e0e1461067857806343ff8bf61461068b57600080fd5b806310252bb3116103a75780631ec1a526116103765780631ec1a526146105af5780632009e312146105d057806323b872dd146105f05780632dfd8ffe1461060357806331659b7e1461062357600080fd5b806310252bb31461053c578063104e8a7c1461055257806312ef6b971461057257806318160ddd1461059257600080fd5b8063081812fc116103e3578063081812fc146104ad578063095ea7b3146104da5780630cd19d09146104ef5780630ce1dccd1461051c57600080fd5b806301ffc9a714610415578063027748371461044b57806305184f9c1461047857806306fdde0314610498575b600080fd5b34801561042157600080fd5b50610435610430366004614802565b610d1f565b604051610442919061482d565b60405180910390f35b34801561045757600080fd5b5061046b61046636600461484c565b610d71565b60405161044291906148cb565b34801561048457600080fd5b5061046b61049336600461484c565b610e1d565b3480156104a457600080fd5b5061046b610e2d565b3480156104b957600080fd5b506104cd6104c836600461484c565b610ebf565b60405161044291906148f6565b6104ed6104e8366004614918565b610f03565b005b3480156104fb57600080fd5b5061050f61050a36600461484c565b610fa3565b604051610442919061495b565b34801561052857600080fd5b5061046b61053736600461484c565b610fc4565b34801561054857600080fd5b5061050f601a5481565b34801561055e57600080fd5b5061046b61056d36600461484c565b610fd4565b34801561057e57600080fd5b5061046b61058d36600461497c565b610fe4565b34801561059e57600080fd5b50600e54600d54036000190161050f565b3480156105bb57600080fd5b50601b54610435906301000000900460ff1681565b3480156105dc57600080fd5b506104ed6105eb36600461484c565b610ff7565b6104ed6105fe3660046149af565b6110df565b34801561060f57600080fd5b5061043561061e36600461484c565b611275565b34801561062f57600080fd5b5061046b61063e36600461484c565b6112c7565b34801561064f57600080fd5b5061050f6112d7565b34801561066457600080fd5b506104ed610673366004614a50565b6112e6565b6104ed6106863660046149af565b61131c565b34801561069757600080fd5b506104ed6106a636600461484c565b61133c565b3480156106b757600080fd5b506104ed6106c6366004614ac7565b611349565b3480156106d757600080fd5b5061046b6106e636600461484c565b6113f9565b3480156106f757600080fd5b50601b546104359060ff1681565b34801561071157600080fd5b506104ed610720366004614b0e565b611409565b34801561073157600080fd5b5061046b61074036600461484c565b611492565b34801561075157600080fd5b506104cd61076036600461484c565b6114a2565b6104ed61077336600461484c565b6114ad565b34801561078457600080fd5b5061046b61079336600461497c565b611561565b3480156107a457600080fd5b5061046b6107b336600461484c565b61156d565b3480156107c457600080fd5b5061050f6107d3366004614b0e565b61157d565b3480156107e457600080fd5b506104ed6115cb565b3480156107f957600080fd5b506104ed61080836600461484c565b6115df565b34801561081957600080fd5b5061043561082836600461484c565b601d6020526000908152604090205460ff1681565b34801561084957600080fd5b506104ed610858366004614b2f565b611640565b34801561086957600080fd5b5061087d610878366004614b0e565b611664565b6040516104429190614bad565b34801561089657600080fd5b506104ed6108a536600461484c565b611773565b3480156108b657600080fd5b5061046b6108c536600461484c565b6117b0565b3480156108d657600080fd5b506015546001600160a01b03166104cd565b3480156108f457600080fd5b5061043561090336600461484c565b6117bb565b34801561091457600080fd5b5061046b61092336600461484c565b611809565b34801561093457600080fd5b5061046b611819565b34801561094957600080fd5b5061046b61095836600461484c565b611828565b34801561096957600080fd5b506019546109779060ff1681565b6040516104429190614c07565b34801561099057600080fd5b506104ed61099f366004614c15565b611838565b3480156109b057600080fd5b50601b5461043590610100900460ff1681565b3480156109cf57600080fd5b5061046b6109de36600461484c565b6118a7565b3480156109ef57600080fd5b506104ed6109fe36600461484c565b6118b7565b348015610a0f57600080fd5b506104ed610a1e366004614ac7565b6118c4565b6104ed610a31366004614d23565b61195d565b348015610a4257600080fd5b506104ed610a51366004614b2f565b6119a1565b348015610a6257600080fd5b506104ed610a71366004614b0e565b6119c3565b348015610a8257600080fd5b5061046b610a9136600461484c565b6119ed565b348015610aa257600080fd5b50601b546104359062010000900460ff1681565b348015610ac257600080fd5b506104ed610ad136600461484c565b611a48565b348015610ae257600080fd5b506104ed610af1366004614918565b611a98565b348015610b0257600080fd5b5061050f610b1136600461484c565b611aae565b348015610b2257600080fd5b5061046b610b3136600461484c565b611abe565b348015610b4257600080fd5b506104ed610b51366004614b2f565b611ac9565b348015610b6257600080fd5b5061050f610b71366004614b0e565b611b23565b348015610b8257600080fd5b506104ed610b91366004614b2f565b611b4d565b348015610ba257600080fd5b5061050f60165481565b348015610bb857600080fd5b5061046b610bc736600461484c565b611b73565b348015610bd857600080fd5b5061050f610be736600461484c565b611b83565b348015610bf857600080fd5b50610435610c0736600461484c565b601e6020526000908152604090205460ff1681565b348015610c2857600080fd5b50601f54610c3c906001600160a01b031681565b6040516104429190614de3565b348015610c5557600080fd5b5061046b610c6436600461484c565b611b8e565b348015610c7557600080fd5b50610435610c84366004614df1565b6001600160a01b03918216600090815260146020908152604080832093909416825291909152205460ff1690565b348015610cbe57600080fd5b5061050f610ccd36600461484c565b601c6020526000908152604090205481565b348015610ceb57600080fd5b506104ed610cfa366004614b0e565b611b9e565b348015610d0b57600080fd5b506104ed610d1a366004614e24565b611bd5565b60006301ffc9a760e01b6001600160e01b031983161480610d5057506380ac58cd60e01b6001600160e01b03198316145b80610d6b5750635b5e139f60e01b6001600160e01b03198316145b92915050565b600c8181548110610d8157600080fd5b906000526020600020016000915090508054610d9c90614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054610dc890614e8a565b8015610e155780601f10610dea57610100808354040283529160200191610e15565b820191906000526020600020905b815481529060010190602001808311610df857829003601f168201915b505050505081565b60018181548110610d8157600080fd5b6060600f8054610e3c90614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054610e6890614e8a565b8015610eb55780601f10610e8a57610100808354040283529160200191610eb5565b820191906000526020600020905b815481529060010190602001808311610e9857829003601f168201915b5050505050905090565b6000610eca82611c33565b610ee7576040516333d1c03960e21b815260040160405180910390fd5b506000908152601360205260409020546001600160a01b031690565b6000610f0e826114a2565b9050336001600160a01b03821614610f4757610f2a8133610c84565b610f47576040516367d9dca160e11b815260040160405180910390fd5b60008281526013602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60188181548110610fb357600080fd5b600091825260209091200154905081565b60028181548110610d8157600080fd5b60078181548110610d8157600080fd5b6060610ff08383611c68565b9392505050565b80336110028261244a565b516001600160a01b0316148061102857503361101d82610ebf565b6001600160a01b0316145b61104d5760405162461bcd60e51b815260040161104490614ee1565b60405180910390fd5b601b5462010000900460ff16151560011461106757600080fd5b6110708261247f565b6000828152601e6020526040808220805460ff191660011790555183917f182ced0666d49187358d2301e81a062dbd327bc6c81f685cc02fb0437a545d2291a260405182907fd957aba451d8a829f78badd36c42e3677a4e47e301f6d198dcd8701102bfed9990600090a25050565b60006110ea8261248a565b9050836001600160a01b0316816001600160a01b03161461111d5760405162a1148160e81b815260040160405180910390fd5b600082815260136020526040902080546111498187335b6001600160a01b039081169116811491141790565b611174576111578633610c84565b61117457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661119b57604051633a954ecd60e21b815260040160405180910390fd5b6111a886868660016124f3565b80156111b357600082555b6001600160a01b038681166000908152601260205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260116020526040902055600160e11b831661123e576001840160008181526011602052604090205461123c57600d54811461123c5760008181526011602052604090208490555b505b83856001600160a01b0316876001600160a01b0316600080516020615f8283398151915260405160405180910390a4505050505050565b60008160018110158015611290575061128c61255b565b8111155b6112ac5760405162461bcd60e51b815260040161104490614f17565b6000838152601e602052604090205460ff1691505b50919050565b60048181548110610d8157600080fd5b60006112e161255b565b905090565b6112ee612565565b60175481146112fc57600080fd5b61130860178585614780565b5061131560188383614780565b5050505050565b6113378383836040518060200160405280600081525061195d565b505050565b611344612565565b601a55565b601b54610100900460ff166113705760405162461bcd60e51b815260040161104490614f4c565b8060005b818110156113f357600084848381811061139057611390614f5c565b9050602002013590506113a03390565b6001600160a01b03166113b28261244a565b516001600160a01b0316146113d95760405162461bcd60e51b815260040161104490614f91565b6113e28161258f565b506113ec81614fb7565b9050611374565b50505050565b60068181548110610d8157600080fd5b611411612565565b60004790506000826001600160a01b03168260405161142f90614fd2565b60006040518083038185875af1925050503d806000811461146c576040519150601f19603f3d011682016040523d82523d6000602084013e611471565b606091505b50509050806113375760405162461bcd60e51b815260040161104490615005565b60088181548110610d8157600080fd5b6000610d6b8261248a565b600160195460ff1660018111156114c6576114c6614bbe565b146114e35760405162461bcd60e51b81526004016110449061503e565b6114ec81612789565b34101561150b5760405162461bcd60e51b815260040161104490615076565b601a5433600090815260126020526040908190205483911c6001600160401b03166115369190615086565b11156115545760405162461bcd60e51b8152600401611044906150c6565b61155e338261281c565b50565b6060610ff083836128c1565b60038181548110610d8157600080fd5b60006001600160a01b0382166115a6576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152601260205260409020546001600160401b031690565b6115d3612565565b6115dd6000612c42565b565b601b54610100900460ff166116065760405162461bcd60e51b815260040161104490614f4c565b336116108261244a565b516001600160a01b0316146116375760405162461bcd60e51b815260040161104490614f91565b61155e8161258f565b611648612565565b601b8054911515620100000262ff000019909216919091179055565b606060008060006116748561157d565b90506000816001600160401b0381111561169057611690614c37565b6040519080825280602002602001820160405280156116b9578160200160208202803683370190505b5090506116e660408051608081018252600080825260208201819052918101829052606081019190915290565b60015b838614611767576116f981612c94565b915081604001511561170a5761175f565b81516001600160a01b03161561171f57815194505b876001600160a01b0316856001600160a01b0316141561175f578083878060010198508151811061175257611752614f5c565b6020026020010181815250505b6001016116e9565b50909695505050505050565b61177b612565565b80600181111561178d5761178d614bbe565b6019805460ff1916600183818111156117a8576117a8614bbe565b021790555050565b6060610d6b82612cd0565b600081600181101580156117d657506117d261255b565b8111155b6117f25760405162461bcd60e51b815260040161104490614f17565b50506000908152601d602052604090205460ff1690565b60008181548110610d8157600080fd5b606060108054610e3c90614e8a565b600b8181548110610d8157600080fd5b3360008181526014602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319061189b90859061482d565b60405180910390a35050565b60098181548110610d8157600080fd5b6118bf612565565b601655565b601b546301000000900460ff166118da57600080fd5b8060005b818110156113f35760008484838181106118fa576118fa614f5c565b90506020020135905061190a3390565b6001600160a01b031661191c8261244a565b516001600160a01b0316146119435760405162461bcd60e51b815260040161104490614f91565b61194c81612e73565b5061195681614fb7565b90506118de565b6119688484846110df565b6001600160a01b0383163b156113f35761198484848484612f11565b6113f3576040516368d2bf6b60e11b815260040160405180910390fd5b6119a9612565565b601b80549115156101000261ff0019909216919091179055565b6119cb612565565b601f80546001600160a01b0319166001600160a01b0392909216919091179055565b60608160018110158015611a085750611a0461255b565b8111155b611a245760405162461bcd60e51b815260040161104490614f17565b601b5460ff1615611a3f57611a3883613008565b91506112c1565b611a38836132d8565b601b546301000000900460ff16611a5e57600080fd5b33611a688261244a565b516001600160a01b031614611a8f5760405162461bcd60e51b815260040161104490614f91565b61155e81612e73565b611aa0612565565b611aaa828261281c565b5050565b60178181548110610fb357600080fd5b6060610d6b826133c4565b611ad1612565565b601b805460ff19168215151790557f6bd5c950a8d8df17f772f5af37cb3655737899cbf903264b9795592da439661c6001611b0a61255b565b604051611b189291906150eb565b60405180910390a150565b6001600160a01b038116600090815260126020526040808220546001600160401b03911c16610d6b565b611b55612565565b601b805491151563010000000263ff00000019909216919091179055565b600a8181548110610d8157600080fd5b6000610d6b82612789565b60058181548110610d8157600080fd5b611ba6612565565b6001600160a01b038116611bcc5760405162461bcd60e51b815260040161104490615106565b61155e81612c42565b611bdd612565565b8180611be857600080fd5b60005b8181101561131557611c23858583818110611c0857611c08614f5c565b9050602002016020810190611c1d9190614b0e565b8461281c565b611c2c81614fb7565b9050611beb565b600081600111158015611c475750600d5482105b8015610d6b575050600090815260116020526040902054600160e01b161590565b60606000611c7584613597565b90506000600b826020015181548110611c9057611c90614f5c565b906000526020600020018054611ca590614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054611cd190614e8a565b8015611d1e5780601f10611cf357610100808354040283529160200191611d1e565b820191906000526020600020905b815481529060010190602001808311611d0157829003601f168201915b505050505090506000600c836020015181548110611d3e57611d3e614f5c565b906000526020600020018054611d5390614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054611d7f90614e8a565b8015611dcc5780601f10611da157610100808354040283529160200191611dcc565b820191906000526020600020905b815481529060010190602001808311611daf57829003601f168201915b505050505090506000600a846000015181548110611dec57611dec614f5c565b90600052602060002001611f7c6003866040015181548110611e1057611e10614f5c565b906000526020600020018054611e2590614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054611e5190614e8a565b8015611e9e5780601f10611e7357610100808354040283529160200191611e9e565b820191906000526020600020905b815481529060010190602001808311611e8157829003601f168201915b50505050506000805480602002602001604051908101604052809291908181526020016000905b82821015611f71578382906000526020600020018054611ee490614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054611f1090614e8a565b8015611f5d5780601f10611f3257610100808354040283529160200191611f5d565b820191906000526020600020905b815481529060010190602001808311611f4057829003601f168201915b505050505081526020019060010190611ec5565b505050508686613694565b6121026007876060015181548110611f9657611f96614f5c565b906000526020600020018054611fab90614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054611fd790614e8a565b80156120245780601f10611ff957610100808354040283529160200191612024565b820191906000526020600020905b81548152906001019060200180831161200757829003601f168201915b50505050506000805480602002602001604051908101604052809291908181526020016000905b828210156120f757838290600052602060002001805461206a90614e8a565b80601f016020809104026020016040519081016040528092919081815260200182805461209690614e8a565b80156120e35780601f106120b8576101008083540402835291602001916120e3565b820191906000526020600020905b8154815290600101906020018083116120c657829003601f168201915b50505050508152602001906001019061204b565b505050508787613694565b612286600188608001518154811061211c5761211c614f5c565b90600052602060002001805461213190614e8a565b80601f016020809104026020016040519081016040528092919081815260200182805461215d90614e8a565b80156121aa5780601f1061217f576101008083540402835291602001916121aa565b820191906000526020600020905b81548152906001019060200180831161218d57829003601f168201915b50505050506000805480602002602001604051908101604052809291908181526020016000905b8282101561227d5783829060005260206000200180546121f090614e8a565b80601f016020809104026020016040519081016040528092919081815260200182805461221c90614e8a565b80156122695780601f1061223e57610100808354040283529160200191612269565b820191906000526020600020905b81548152906001019060200180831161224c57829003601f168201915b5050505050815260200190600101906121d1565b50505050613c38565b896122a0576040518060200160405280600081525061241b565b61241b60058960a00151815481106122ba576122ba614f5c565b9060005260206000200180546122cf90614e8a565b80601f01602080910402602001604051908101604052809291908181526020018280546122fb90614e8a565b80156123485780601f1061231d57610100808354040283529160200191612348565b820191906000526020600020905b81548152906001019060200180831161232b57829003601f168201915b50505050506000805480602002602001604051908101604052809291908181526020016000905b8282101561227d57838290600052602060002001805461238e90614e8a565b80601f01602080910402602001604051908101604052809291908181526020018280546123ba90614e8a565b80156124075780601f106123dc57610100808354040283529160200191612407565b820191906000526020600020905b8154815290600101906020018083116123ea57829003601f168201915b50505050508152602001906001019061236f565b60405160200161242f9594939291906152ca565b60408051808303601f19018152919052979650505050505050565b604080516080810182526000808252602082018190529181018290526060810191909152610d6b61247a8361248a565b6140e1565b61155e816000614128565b600081806001116124da57600d548110156124da57600081815260116020526040902054600160e01b81166124d8575b80610ff05750600019016000818152601160205260409020546124ba565b505b604051636f96cda160e11b815260040160405180910390fd5b6001600160a01b038416612506576113f3565b815b6125128284615086565b811015611315576000818152601d602052604090205460ff161561254b5780604051630817ac8360e11b8152600401611044919061495b565b61255481614fb7565b9050612508565b600d546000190190565b6015546001600160a01b031633146115dd5760405162461bcd60e51b815260040161104490615364565b6000818152601e602052604090205460ff16156125be5760405162461bcd60e51b815260040161104490615397565b6000818152601d602052604090205460ff16156125ed5760405162461bcd60e51b8152600401611044906153cf565b60006125fa6001436153df565b40823360405160200161260f93929190615431565b60408051601f1981840301815291905280516020909101209050612634600382615482565b612719576000828152601d602090815260408083208054600160ff199182168117909255601e9093528184208054909316179091555183917f76b49988b90e94a5bfed4dea47aad219142c0e805242c3e6af02dba61a61f03291a260405182907fd957aba451d8a829f78badd36c42e3677a4e47e301f6d198dcd8701102bfed9990600090a2604051309083907f9ecfd70e9ff36df72989324a49559383d39f9290d700b10cf5ac10dcb68d264390600090a3604051829030907f625fed9875dada8643f2418b838ae0bc78d9a148a18eee4ee1979ff0f3f5d42790600090a361274e565b61272282614268565b60405182907fab0da20d767422092730fd9d05b4a3c781446cd8d9c37704a7b0f71cb9db3f4290600090a25b7ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce78260405161277d919061495b565b60405180910390a15050565b60008061279461255b565b905060008060016017805490506127ab91906153df565b90505b601781815481106127c1576127c1614f5c565b906000526020600020015483106127da578091506127ea565b6127e381615496565b90506127ae565b50601881815481106127fe576127fe614f5c565b90600052602060002001548461281491906154ad565b949350505050565b806000811161283d5760405162461bcd60e51b8152600401611044906154f2565b6016548161284961255b565b6128539190615086565b11156128715760405162461bcd60e51b815260040161104490615520565b600061287b61255b565b612886906001615086565b9050805b6128948483615086565b8110156128b6576128a481614268565b806128ae81614fb7565b91505061288a565b506113f384846142b0565b606060006128ce84613597565b604080516102608101825260016102208201818152600360fc1b610240840152825282518084018452818152603160f81b6020828101919091528084019190915283518085018552828152601960f91b818301528385015283518085018552828152603360f81b81830152606084015283518085018552828152600d60fa1b81830152608084015283518085018552828152603560f81b8183015260a084015283518085018552828152601b60f91b8183015260c084015283518085018552828152603760f81b8183015260e084015283518085018552828152600760fb1b8183015261010084015283518085018552828152603960f81b8183015261012084015283518085018552600280825261031360f41b828401526101408501919091528451808601865281815261313160f01b818401526101608501528451808601865281815261189960f11b818401526101808501528451808601865281815261313360f01b818401526101a085015284518086018652818152610c4d60f21b818401526101c08501528451808601865281815261313560f01b818401526101e08501528451808601909552845261189b60f11b908401526102008201929092528251929350916000918391612aa291615086565b60118110612ab257612ab2614f5c565b60200201518284602001516001612ac99190615086565b60118110612ad957612ad9614f5c565b60200201516004856040015181548110612af557612af5614f5c565b906000526020600020016008866060015181548110612b1657612b16614f5c565b906000526020600020016002876080015181548110612b3757612b37614f5c565b9060005260206000200189612bf55760068860a0015181548110612b5d57612b5d614f5c565b906000526020600020018054612b7290614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054612b9e90614e8a565b8015612beb5780601f10612bc057610100808354040283529160200191612beb565b820191906000526020600020905b815481529060010190602001808311612bce57829003601f168201915b5050505050612c13565b604051806040016040528060048152602001634e6f6e6560e01b8152505b604051602001612c289695949392919061560c565b60408051808303601f190181529190529695505050505050565b601580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260116020526040902054610d6b906140e1565b60606000612e4c6009600181548110612ceb57612ceb614f5c565b906000526020600020018054612d0090614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054612d2c90614e8a565b8015612d795780601f10612d4e57610100808354040283529160200191612d79565b820191906000526020600020905b815481529060010190602001808311612d5c57829003601f168201915b50505050506000805480602002602001604051908101604052809291908181526020016000905b8282101561227d578382906000526020600020018054612dbf90614e8a565b80601f0160208091040260200160405190810160405280929190818152602001828054612deb90614e8a565b8015612e385780601f10612e0d57610100808354040283529160200191612e38565b820191906000526020600020905b815481529060010190602001808311612e1b57829003601f168201915b505050505081526020019060010190612da0565b604051602001612e5c9190615728565b60408051601f198184030181529190529392505050565b6000818152601d602052604090205460ff1615612ea25760405162461bcd60e51b8152600401611044906153cf565b6000818152601d6020526040808220805460ff191660011790555182917f76b49988b90e94a5bfed4dea47aad219142c0e805242c3e6af02dba61a61f03291a27ff8e1a15aba9398e019f0b49df1a4fde98ee17ae345cb5f6b5e2c27f5033e8ce781604051611b18919061495b565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612f46903390899088908890600401615809565b602060405180830381600087803b158015612f6057600080fd5b505af1925050508015612f90575060408051601f3d908101601f19168201909252612f8d91810190615858565b60015b612feb573d808015612fbe576040519150601f19603f3d011682016040523d82523d6000602084013e612fc3565b606091505b508051612fe3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6000818152601c6020908152604080832054601e835281842054601d90935290832054606093919260ff90811692911690826130c957601f546040516312ef6b9760e01b81526001600160a01b03909116906312ef6b97906130709087908690600401615879565b60006040518083038186803b15801561308857600080fd5b505afa15801561309c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526130c491908101906158ec565b61314d565b601f546040516344dc4fad60e11b81526001600160a01b03909116906389b89f5a906130f990879060040161495b565b60006040518083038186803b15801561311157600080fd5b505afa158015613125573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261314d91908101906158ec565b905060006132aa61315d886142ca565b601f54604051630cfe052360e31b81526001600160a01b03909116906367f029189061318f908a908990600401615879565b60006040518083038186803b1580156131a757600080fd5b505afa1580156131bb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526131e391908101906158ec565b6131ec88614366565b876132145760405180604001604052806005815260200164112cb2b99160d91b815250613232565b604051806040016040528060048152602001631127379160e11b8152505b8761325957604051806040016040528060048152602001631127379160e11b815250613278565b60405180604001604052806005815260200164112cb2b99160d91b8152505b613281886143ca565b60405160200161329696959493929190615a89565b6040516020818303038152906040526143ca565b9050806040516020016132bd9190615b8d565b60405160208183030381529060405295505050505050919050565b6000818152601c602052604080822054601f549151633521481160e21b815260609391926001600160a01b03169063d48520449061331a90859060040161495b565b60006040518083038186803b15801561333257600080fd5b505afa158015613346573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261336e91908101906158ec565b9050600061339861337e866142ca565b613387846143ca565b604051602001613296929190615bbf565b9050806040516020016133ab9190615b8d565b6040516020818303038152906040529350505050919050565b606060006133d183613597565b90506000600a8260000151815481106133ec576133ec614f5c565b9060005260206000200161356e600960008154811061340d5761340d614f5c565b90600052602060002001805461342290614e8a565b80601f016020809104026020016040519081016040528092919081815260200182805461344e90614e8a565b801561349b5780601f106134705761010080835404028352916020019161349b565b820191906000526020600020905b81548152906001019060200180831161347e57829003601f168201915b50505050506000805480602002602001604051908101604052809291908181526020016000905b8282101561227d5783829060005260206000200180546134e190614e8a565b80601f016020809104026020016040519081016040528092919081815260200182805461350d90614e8a565b801561355a5780601f1061352f5761010080835404028352916020019161355a565b820191906000526020600020905b81548152906001019060200180831161353d57829003601f168201915b5050505050815260200190600101906134c2565b60405160200161357f929190615c7f565b60408051601f19818403018152919052949350505050565b6135d06040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040805160c08101909152600a5481906135ea9085615482565b8152600b54602090910190613600600286615cb8565b61360a9190615482565b81526020016003805490506003856136229190615cb8565b61362c9190615482565b8152600754602090910190613642600486615cb8565b61364c9190615482565b8152600154602090910190613662600586615cb8565b61366c9190615482565b8152600554602090910190613682600686615cb8565b61368c9190615482565b905292915050565b604080516104608101825260016104208201818152600360fc1b610440840152825282518084018452818152603160f81b6020828101919091528084019190915283518085018552828152601960f91b818301528385015283518085018552828152603360f81b8183015260608481019190915284518086018652838152600d60fa1b81840152608085015284518086018652838152603560f81b8184015260a085015284518086018652838152601b60f91b8184015260c085015284518086018652838152603760f81b8184015260e085015284518086018652838152600760fb1b8184015261010085015284518086018652928352603960f81b8383015261012084019290925283518085018552600280825261031360f41b828401526101408501919091528451808601865281815261313160f01b818401526101608501528451808601865281815261189960f11b818401526101808501528451808601865281815261313360f01b818401526101a085015284518086018652818152610c4d60f21b818401526101c08501528451808601865281815261313560f01b818401526101e08501528451808601865281815261189b60f11b818401526102008501528451808601865281815261313760f01b818401526102208501528451808601865281815261062760f31b818401526102408501528451808601865281815261313960f01b818401526102608501528451808601865281815261032360f41b818401526102808501528451808601865281815261323160f01b818401526102a08501528451808601865281815261191960f11b818401526102c08501528451808601865281815261323360f01b818401526102e085015284518086018652818152610c8d60f21b818401526103008501528451808601865281815261323560f01b818401526103208501528451808601865281815261191b60f11b818401526103408501528451808601865281815261323760f01b818401526103608501528451808601865281815261064760f31b818401526103808501528451808601865281815261323960f01b818401526103a08501528451808601865281815261033360f41b818401526103c08501528451808601865281815261333160f01b818401526103e08501528451808601909552845261199960f11b90840152610400820192909252816000805b8851811015613c2b576000898281518110613a1d57613a1d614f5c565b016020015160f81c905060008a613a35846001615086565b81518110613a4557613a45614f5c565b0160209081015160f81c9150600090613a5e9086615482565b90506000613a6d602087615cb8565b905060ff8316613a7c57613c04565b8260ff1660031415613b025786888560ff1660218110613a9e57613a9e614f5c565b6020020151898460ff1660218110613ab857613ab8614f5c565b60200201518a8460ff1660218110613ad257613ad2614f5c565b60200201518e604051602001613aec959493929190615ce2565b6040516020818303038152906040529650613c04565b8260ff1660041415613b725786888560ff1660218110613b2457613b24614f5c565b6020020151898460ff1660218110613b3e57613b3e614f5c565b60200201518a8460ff1660218110613b5857613b58614f5c565b60200201518d604051602001613aec959493929190615ce2565b86888560ff1660218110613b8857613b88614f5c565b6020020151898460ff1660218110613ba257613ba2614f5c565b60200201518a8460ff1660218110613bbc57613bbc614f5c565b60200201518f8760ff1681518110613bd657613bd6614f5c565b6020026020010151604051602001613bf2959493929190615ce2565b60405160208183030381529060405296505b613c1160ff851687615086565b955050505050806002613c249190615086565b9050613a00565b5090979650505050505050565b604080516104608101825260016104208201818152600360fc1b610440840152825282518084018452818152603160f81b6020828101919091528084019190915283518085018552828152601960f91b818301528385015283518085018552828152603360f81b8183015260608481019190915284518086018652838152600d60fa1b81840152608085015284518086018652838152603560f81b8184015260a085015284518086018652838152601b60f91b8184015260c085015284518086018652838152603760f81b8184015260e085015284518086018652838152600760fb1b8184015261010085015284518086018652928352603960f81b8383015261012084019290925283518085018552600280825261031360f41b828401526101408501919091528451808601865281815261313160f01b818401526101608501528451808601865281815261189960f11b818401526101808501528451808601865281815261313360f01b818401526101a085015284518086018652818152610c4d60f21b818401526101c08501528451808601865281815261313560f01b818401526101e08501528451808601865281815261189b60f11b818401526102008501528451808601865281815261313760f01b818401526102208501528451808601865281815261062760f31b818401526102408501528451808601865281815261313960f01b818401526102608501528451808601865281815261032360f41b818401526102808501528451808601865281815261323160f01b818401526102a08501528451808601865281815261191960f11b818401526102c08501528451808601865281815261323360f01b818401526102e085015284518086018652818152610c8d60f21b818401526103008501528451808601865281815261323560f01b818401526103208501528451808601865281815261191b60f11b818401526103408501528451808601865281815261323760f01b818401526103608501528451808601865281815261064760f31b818401526103808501528451808601865281815261323960f01b818401526103a08501528451808601865281815261033360f41b818401526103c08501528451808601865281815261333160f01b818401526103e08501528451808601909552845261199960f11b90840152610400820192909252816000805b86518110156140d6576000878281518110613fc157613fc1614f5c565b016020015160f81c9050600088613fd9846001615086565b81518110613fe957613fe9614f5c565b016020015160f81c905080156140b1576000614006602086615482565b90506000614015602087615cb8565b905060008a8460ff168151811061402e5761402e614f5c565b6020026020010151905087898660ff166021811061404e5761404e614f5c565b60200201518a8560ff166021811061406857614068614f5c565b60200201518b8560ff166021811061408257614082614f5c565b60200201518460405160200161409c959493929190615ce2565b60405160208183030381529060405297505050505b6140be60ff831685615086565b935050508060026140cf9190615086565b9050613fa4565b509095945050505050565b604080516080810182526001600160a01b038316815260a083901c6001600160401b03166020820152600160e01b831615159181019190915260e89190911c606082015290565b60006141338361248a565b90508060008061415186600090815260136020526040902080549091565b91509150841561419157614166818433611134565b614191576141748333610c84565b61419157604051632ce44b5f60e11b815260040160405180910390fd5b61419f8360008860016124f3565b80156141aa57600082555b6001600160a01b038316600081815260126020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260116020526040902055600160e11b8416614231576001860160008181526011602052604090205461422f57600d54811461422f5760008181526011602052604090208590555b505b60405186906000906001600160a01b03861690600080516020615f82833981519152908390a45050600e8054600101905550505050565b6142736001436153df565b40813360405160200161428893929190615d71565b60408051601f1981840301815291815281516020928301206000938452601c90925290912055565b611aaa82826040518060200160405280600081525061452f565b606060006142d783614595565b60010190506000816001600160401b038111156142f6576142f6614c37565b6040519080825280601f01601f191660200182016040528015614320576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846143595761435e565b61432a565b509392505050565b6060600061438161437c8460026001600561466d565b6142ca565b61439361437c8560036001600a61466d565b6143a561437c8660046001600a61466d565b6143b761437c8760056001600a61466d565b604051602001612e5c9493929190615da8565b60608151600014156143ea57505060408051602081019091526000815290565b6000604051806060016040528060408152602001615f4260409139905060006003845160026144199190615086565b6144239190615cb8565b61442e9060046154ad565b9050600061443d826020615086565b6001600160401b0381111561445457614454614c37565b6040519080825280601f01601f19166020018201604052801561447e576020820181803683370190505b509050818152600183018586518101602084015b818310156144ea576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101614492565b600389510660018114614504576002811461451557614521565b613d3d60f01b600119830152614521565b603d60f81b6000198301525b509398975050505050505050565b61453983836146a0565b6001600160a01b0383163b1561133757600d548281035b6145636000868380600101945086612f11565b614580576040516368d2bf6b60e11b815260040160405180910390fd5b8181106145505781600d541461131557600080fd5b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106145d45772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310614600576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061461e57662386f26fc10000830492506010015b6305f5e1008310614636576305f5e100830492506008015b612710831061464a57612710830492506004015b6064831061465c576064830492506002015b600a8310610d6b5760010192915050565b600061467983836153df565b6146838587615cb8565b61468d9190615482565b6146979084615086565b95945050505050565b600d54816146c15760405163b562e8dd60e01b815260040160405180910390fd5b6146ce60008483856124f3565b6001600160a01b03831660008181526012602090815260408083208054680100000000000000018802019055848352601190915281206001851460e11b4260a01b17831790558284019083908390600080516020615f828339815191528180a4600183015b8181146147595780836000600080516020615f82833981519152600080a4600101614733565b508161477757604051622e076360e81b815260040160405180910390fd5b600d5550505050565b8280548282559060005260206000209081019282156147bb579160200282015b828111156147bb5782358255916020019190600101906147a0565b506147c79291506147cb565b5090565b5b808211156147c757600081556001016147cc565b6001600160e01b031981165b811461155e57600080fd5b8035610d6b816147e0565b60006020828403121561481757614817600080fd5b600061281484846147f7565b8015155b82525050565b60208101610d6b8284614823565b806147ec565b8035610d6b8161483b565b60006020828403121561486157614861600080fd5b60006128148484614841565b60005b83811015614888578181015183820152602001614870565b838111156113f35750506000910152565b60006148a3825190565b8084526020840193506148ba81856020860161486d565b601f01601f19169290920192915050565b60208082528101610ff08184614899565b60006001600160a01b038216610d6b565b614827816148dc565b60208101610d6b82846148ed565b6147ec816148dc565b8035610d6b81614904565b6000806040838503121561492e5761492e600080fd5b600061493a858561490d565b925050602061494b85828601614841565b9150509250929050565b80614827565b60208101610d6b8284614955565b8015156147ec565b8035610d6b81614969565b6000806040838503121561499257614992600080fd5b600061499e8585614841565b925050602061494b85828601614971565b6000806000606084860312156149c7576149c7600080fd5b60006149d3868661490d565b93505060206149e48682870161490d565b92505060406149f586828701614841565b9150509250925092565b60008083601f840112614a1457614a14600080fd5b5081356001600160401b03811115614a2e57614a2e600080fd5b602083019150836020820283011115614a4957614a49600080fd5b9250929050565b60008060008060408587031215614a6957614a69600080fd5b84356001600160401b03811115614a8257614a82600080fd5b614a8e878288016149ff565b945094505060208501356001600160401b03811115614aaf57614aaf600080fd5b614abb878288016149ff565b95989497509550505050565b60008060208385031215614add57614add600080fd5b82356001600160401b03811115614af657614af6600080fd5b614b02858286016149ff565b92509250509250929050565b600060208284031215614b2357614b23600080fd5b6000612814848461490d565b600060208284031215614b4457614b44600080fd5b60006128148484614971565b6000614b5c8383614955565b505060200190565b6000614b6e825190565b80845260209384019383018060005b83811015614ba2578151614b918882614b50565b975060208301925050600101614b7d565b509495945050505050565b60208082528101610ff08184614b64565b634e487b7160e01b600052602160045260246000fd5b6002811061155e5761155e614bbe565b80614bee81614bd4565b919050565b6000610d6b82614be4565b61482781614bf3565b60208101610d6b8284614bfe565b60008060408385031215614c2b57614c2b600080fd5b600061499e858561490d565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b0382111715614c7257614c72614c37565b6040525050565b6000614c8460405190565b9050614bee8282614c4d565b60006001600160401b03821115614ca957614ca9614c37565b601f19601f83011660200192915050565b82818337506000910152565b6000614cd9614cd484614c90565b614c79565b905082815260208101848484011115614cf457614cf4600080fd5b61435e848285614cba565b600082601f830112614d1357614d13600080fd5b8135612814848260208601614cc6565b60008060008060808587031215614d3c57614d3c600080fd5b6000614d48878761490d565b9450506020614d598782880161490d565b9350506040614d6a87828801614841565b92505060608501356001600160401b03811115614d8957614d89600080fd5b614d9587828801614cff565b91505092959194509250565b6000610d6b6001600160a01b038316614db8565b90565b6001600160a01b031690565b6000610d6b82614da1565b6000610d6b82614dc4565b61482781614dcf565b60208101610d6b8284614dda565b60008060408385031215614e0757614e07600080fd5b6000614e13858561490d565b925050602061494b8582860161490d565b600080600060408486031215614e3c57614e3c600080fd5b83356001600160401b03811115614e5557614e55600080fd5b614e61868287016149ff565b935093505060206149f586828701614841565b634e487b7160e01b600052602260045260246000fd5b600281046001821680614e9e57607f821691505b602082108114156112c1576112c1614e74565b60168152600060208201752737ba1030b8383937bb32b2103737b91037bbb732b960511b815291505b5060200190565b60208082528101610d6b81614eb1565b600f81526000602082016e125b9d985b1a59081d1bdad95b9259608a1b81529150614eda565b60208082528101610d6b81614ef1565b600e81526000602082016d135bdc9c1a08191a5cd8589b195960921b81529150614eda565b60208082528101610d6b81614f27565b634e487b7160e01b600052603260045260246000fd5b600881526000602082016726bab9ba1037bbb760c11b81529150614eda565b60208082528101610d6b81614f72565b634e487b7160e01b600052601160045260246000fd5b6000600019821415614fcb57614fcb614fa1565b5060010190565b6000610d6b82614db5565b601181526000602082017015d2551211149055d05317d19052531151607a1b81529150614eda565b60208082528101610d6b81614fdd565b6012815260006020820171141d589b1a58c81b5a5b9d0818db1bdcd95960721b81529150614eda565b60208082528101610d6b81615015565b6011815260006020820170496e636f72726563742070617961626c6560781b81529150614eda565b60208082528101610d6b8161504e565b6000821982111561509957615099614fa1565b500190565b601181526000602082017045786365656473206d6178206d696e747360781b81529150614eda565b60208082528101610d6b8161509e565b6000610d6b614db58381565b614827816150d6565b604081016150f982856150e2565b610ff06020830184614955565b60208082528101610d6b81602681527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160208201526564647265737360d01b604082015260600190565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d2230203020333220333222207368617060208201527f652d72656e646572696e673d2263726973704564676573222077696474683d2260408201527f35313222206865696768743d22353132223e3c726563742077696474683d223160608201527f30302522206865696768743d2231303025222066696c6c3d22230000000000006080820152609a0190565b6000815461521e81614e8a565b600182168015615235576001811461524657615276565b60ff19831686528186019350615276565b60008581526020902060005b8381101561526e57815488820152600190910190602001615252565b838801955050505b50505092915050565b6211179f60e91b815260005b5060030190565b600061529c825190565b6152aa81856020860161486d565b9290920192915050565b651e17b9bb339f60d11b815260005b5060060190565b60006152d582615150565b91506152e18288615211565b91506152ec8261527f565b91506152f88287615292565b91506153048286615292565b91506153108285615292565b915061531c8284615292565b9150615327826152b4565b979650505050505050565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657291019081526000614eda565b60208082528101610d6b81615332565b600c81526000602082016b105b1c9958591e481919585960a21b81529150614eda565b60208082528101610d6b81615374565b6011815260006020820170105b1c9958591e481cdbdd5b189bdd5b99607a1b81529150614eda565b60208082528101610d6b816153a7565b6000828210156153f1576153f1614fa1565b500390565b6000610d6b8260601b90565b6000610d6b826153f6565b614827615419826148dc565b615402565b651c9a58989a5d60d21b815260006152c3565b600061543d8286614955565b60208201915061544d8285614955565b60208201915061545d828461540d565b6014820191506146978261541e565b634e487b7160e01b600052601260045260246000fd5b6000826154915761549161546c565b500690565b6000816154a5576154a5614fa1565b506000190190565b60008160001904831182151516156154c7576154c7614fa1565b500290565b600f81526000602082016e4d696e74206174206c65617374203160881b81529150614eda565b60208082528101610d6b816154cc565b600781526000602082016604f7665726361760cc1b81529150614eda565b60208082528101610d6b81615502565b62089f4b60ea1b8152600061528b565b7f7b2274726169745f74797065223a22426f6479222c202276616c7565223a2200815260005b50601f0190565b7f7b2274726169745f74797065223a225761727473222c202276616c7565223a2281526000614eda565b7f7b2274726169745f74797065223a224163636573736f72696573222c20227661815265363ab2911d1160d11b602082015260005b5060260190565b7f227d2c7b2274726169745f74797065223a22506c6174666f726d222c20227661815265363ab2911d1160d11b602082015260006155cc565b7f7b2274726169745f74797065223a224261636b67726f756e64222c202276616c8152643ab2911d1160d91b6020820152602501600061564c8289615292565b915061565782615530565b7f7b2274726169745f74797065223a2250616c65747465222c202276616c7565228152611d1160f11b602082015260220191506156948288615292565b915061569f82615530565b91506156aa82615540565b91506156b68287615211565b91506156c182615530565b91506156cc8261556d565b91506156d88286615211565b91506156e382615530565b91506156ee82615597565b91506156fa8285615211565b9150615705826155d3565b91506157118284615292565b915061571c82615530565b98975050505050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d2230203020333220333222207368617060208201527f652d72656e646572696e673d2263726973704564676573222077696474683d2260408201527f35313222206865696768743d22353132223e3c726563742077696474683d223160608201527f30302522206865696768743d2231303025222066696c6c3d222330303030303060808201526211179f60e91b60a082015260a30160006157fe8284615292565b9150610ff0826152b4565b6080810161581782876148ed565b61582460208301866148ed565b6158316040830185614955565b81810360608301526158438184614899565b9695505050505050565b8051610d6b816147e0565b60006020828403121561586d5761586d600080fd5b6000612814848461584d565b604081016158878285614955565b610ff06020830184614823565b60006158a2614cd484614c90565b9050828152602081018484840111156158bd576158bd600080fd5b61435e84828561486d565b600082601f8301126158dc576158dc600080fd5b8151612814848260208601615894565b60006020828403121561590157615901600080fd5b81516001600160401b0381111561591a5761591a600080fd5b612814848285016158c8565b6803d913730b6b2911d160bd1b815260005b5060090190565b61088b60f21b815260005b5060020190565b7f226465736372697074696f6e223a202254696e792042617365642046726f677381527f206973206120313030252066756c6c79206f6e2d636861696e204e465420636f60208201527f6c6c656374696f6e2c20666561747572696e6720756e666174686f6d6c79206260408201527f61736564206f6e2d636861696e20696e746572616374697665206d656368616e6060820152651a58dccb888b60d21b608082015260860190565b7f7b2274726169745f74797065223a22416c697665222c202276616c7565223a0081526000615566565b611f4b60f21b8152600061594a565b621f574b60ea1b8152600061528b565b7f22696d616765223a2022646174613a696d6167652f7376672b786d6c3b626173815263194d8d0b60e21b602082015260240190565b61227d60f01b8152600061594a565b6000615a9482615926565b712254696e792042617365642046726f67202360701b81526012019150615abb8289615292565b9150615ac68261593f565b9150615ad182615951565b6d2261747472696275746573223a5b60901b8152600e019150615af48288615292565b9150615b008287615292565b9150615b0b826159fb565b9150615b178286615292565b9150615b2282615a25565b7f7b2274726169745f74797065223a22536f756c626f756e64222c202276616c7581526232911d60e91b60208201526023019150615b608285615292565b9150615b6b82615a34565b9150615b7682615a44565b9150615b828284615292565b915061571c82615a7a565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152601d016000610ff08284615292565b6000615bca82615926565b712254696e792042617365642046726f67202360701b81526012019150615bf18285615292565b9150615bfc8261593f565b9150615c0782615951565b7f2261747472696275746573223a5b7b2274726169745f74797065223a2257616981527f74696e6720746f206861746368222c202276616c7565223a2254727565227d5d6020820152600b60fa1b60408201526041019150615c6882615a44565b9150615c748284615292565b915061281482615a7a565b6000615c8a82615150565b9150615c968285615211565b9150615ca18261527f565b9150615cad8284615292565b9150612814826152b4565b600082615cc757615cc761546c565b500490565b68222066696c6c3d222360b81b81526000615938565b6000615cee8288615292565b6c1e3932b1ba103bb4b23a341e9160991b8152600d019150615d108287615292565b6f11103432b4b3b43a1e911891103c1e9160811b81526010019150615d358286615292565b6411103c9e9160d91b81526005019150615d4f8285615292565b9150615d5a82615ccc565b9150615d668284615292565b91506153278261527f565b6000615d7d8286614955565b602082019150615d8d8285614955565b602082019150615d9d828461540d565b506014019392505050565b7f7b2274726169745f74797065223a22486f7020506f776572222c20226469737081527f6c61795f74797065223a20226e756d626572222c202276616c7565223a0000006020820152603d016000615e008287615292565b9150615e0b82615a25565b7f7b2274726169745f74797065223a225374616d696e61222c2022646973706c6181527f795f74797065223a20226e756d626572222c202276616c7565223a00000000006020820152603b019150615e638286615292565b9150615e6e82615a25565b7f7b2274726169745f74797065223a224c696c79205061642042616c616e63652281527f2c2022646973706c61795f74797065223a20226e756d626572222c202276616c6020820152633ab2911d60e11b60408201526044019150615ed38285615292565b9150615ede82615a25565b7f7b2274726169745f74797065223a225377696d205370656564222c202264697381527f706c61795f74797065223a20226e756d626572222c202276616c7565223a00006020820152603e019150615f368284615292565b915061584382615a2556fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122057455db87880c10203bb264fcfecd92b17930a1ca4cfaaee275df0881b37f27864736f6c63430008090033

[ Download: CSV Export  ]
[ 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.