ETH Price: $2,410.77 (-2.87%)
 

Overview

Max Total Supply

8,483 CARB

Holders

236

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
*敢rug你妈必死.eth
Balance
0.000000000000000001 CARB

Value
$0.00
0xadeaf5ce70978f7f91b3bdd39d9e28ccf07c7510
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
CarbonCrate

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
File 1 of 18 : CarbonCrate.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
import {ERC404} from "../ERC404.sol";
import {ERC404MerkleClaim} from "../extensions/ERC404MerkleClaim.sol";

contract CarbonCrate is Ownable, ERC404, ERC404MerkleClaim {
    string public dataURI;
    string public baseTokenURI;
    uint256 public remainingAirdropBalance;
    uint256 public maxTotalSupplyERC721;

    constructor(
        string memory name_,
        string memory symbol_,
        uint8 decimals_,
        uint256 maxTotalSupplyERC721_,
        uint256 amountToAirdrop_,
        address initialOwner_,
        address initialMintRecipient_,
        string memory dataURI_
    ) ERC404(name_, symbol_, decimals_) Ownable(initialOwner_) {
        // Do not mint the ERC721s to the initial owner, as it's a waste of gas.
        _setERC721TransferExempt(initialMintRecipient_, true);
        _mintERC20(
            initialMintRecipient_,
            (maxTotalSupplyERC721_ - amountToAirdrop_) * units
        );
        remainingAirdropBalance = amountToAirdrop_ * units;
        maxTotalSupplyERC721 = maxTotalSupplyERC721_;
        dataURI = dataURI_;
    }

    function tokenURI(uint256 id) public view override returns (string memory) {
        if (bytes(baseTokenURI).length > 0) {
            return string.concat(baseTokenURI, Strings.toString(id));
        } else {
            require(_isValidTokenId(id), "Invalid token id");
            uint8 seed = uint8(bytes1(keccak256(abi.encodePacked(id))));
            string memory image;
            string memory glow;
            string memory contents;
            uint256 tokenId = id - ID_ENCODING_PREFIX;

            if (seed <= 100) {
                image = "Red.gif";
                glow = "Red";
                contents = "1";
            } else if (seed <= 170) {
                image = "Orange.gif";
                glow = "Orange";
                contents = "2";
            } else if (seed <= 210) {
                image = "Pink.gif";
                glow = "Pink";
                contents = "3";
            } else if (seed <= 240) {
                image = "Green.gif";
                glow = "Green";
                contents = "4";
            } else if (seed <= 255) {
                image = "Blue.gif";
                glow = "Blue";
                contents = "5";
            }

            string memory jsonPreImage = string.concat(
                '{"name": "Carbon Crate',
                " #",
                Strings.toString(tokenId),
                '","description":"A collection of 10,000 ERC404 RWA Carbon Crates, the first of its kind. What do you think is inside?","external_url":"https://ecosapiens.xyz/login","image":"',
                dataURI,
                image
            );

            string memory jsonPostImage = string.concat(
                '","attributes":[{"trait_type":"Glow","value":"',
                glow,
                '"},{"trait_type":"Contents","value":"',
                contents,
                '"},{"trait_type":"Ecopoints","value":"50,000'
            );
            string memory jsonPostTraits = '"}]}';

            return
                string.concat(
                    "data:application/json;utf8,",
                    string.concat(
                        string.concat(jsonPreImage, jsonPostImage),
                        jsonPostTraits
                    )
                );
        }
    }

    function airdropMint(
        bytes32[] memory proof_,
        uint256 value_
    ) public override whenAirdropIsOpen {
        require(
            remainingAirdropBalance > 0,
            "Airdrops have all been withdrawn"
        );
        super.airdropMint(proof_, value_);
        remainingAirdropBalance -= value_;
        _mintERC20(msg.sender, value_);
    }

    function setAirdropMerkleRoot(
        bytes32 airdropMerkleRoot_
    ) external onlyOwner {
        _setAirdropMerkleRoot(airdropMerkleRoot_);
    }

    function toggleAirdropIsOpen() external onlyOwner {
        _toggleAirdropIsOpen();
    }

    function setERC721TransferExempt(
        address account_,
        bool value_
    ) external onlyOwner {
        _setERC721TransferExempt(account_, value_);
    }

    function setDataURI(string memory _dataURI) public onlyOwner {
        dataURI = _dataURI;
    }

    function setTokenURI(string memory _tokenURI) public onlyOwner {
        baseTokenURI = _tokenURI;
    }
}

File 2 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. This can
 * later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

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

File 3 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../utils/introspection/IERC165.sol";

File 4 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC721Receiver.sol)

pragma solidity ^0.8.20;

import {IERC721Receiver} from "../token/ERC721/IERC721Receiver.sol";

File 5 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.20;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be
     * reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 6 of 18 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 7 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant HEX_DIGITS = "0123456789abcdef";
    uint8 private constant ADDRESS_LENGTH = 20;

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @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), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        uint256 localValue = value;
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = HEX_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal
     * representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 8 of 18 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.20;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the Merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates Merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     *@dev The multiproof provided is not valid.
     */
    error MerkleProofInvalidMultiproof();

    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     */
    function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the Merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        if (leavesLen + proofLen != totalHashes + 1) {
            revert MerkleProofInvalidMultiproof();
        }

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            if (proofPos != proofLen) {
                revert MerkleProofInvalidMultiproof();
            }
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the Merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 proofLen = proof.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        if (leavesLen + proofLen != totalHashes + 1) {
            revert MerkleProofInvalidMultiproof();
        }

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i]
                ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
                : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            if (proofPos != proofLen) {
                revert MerkleProofInvalidMultiproof();
            }
            unchecked {
                return hashes[totalHashes - 1];
            }
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Sorts the pair (a, b) and hashes the result.
     */
    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    /**
     * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.
     */
    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 9 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 10 of 18 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @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 towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (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 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.
            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^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 (unsignedRoundsUp(rounding) && 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
     * towards zero.
     *
     * 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 + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        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 + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        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 + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

File 11 of 18 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @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 12 of 18 : ERC404.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {IERC721Receiver} from "@openzeppelin/contracts/interfaces/IERC721Receiver.sol";
import {IERC165} from "@openzeppelin/contracts/interfaces/IERC165.sol";
import {IERC404} from "./interfaces/IERC404.sol";
import {DoubleEndedQueue} from "./lib/DoubleEndedQueue.sol";
import {ERC721Events} from "./lib/ERC721Events.sol";
import {ERC20Events} from "./lib/ERC20Events.sol";

abstract contract ERC404 is IERC404 {
  using DoubleEndedQueue for DoubleEndedQueue.Uint256Deque;

  /// @dev The queue of ERC-721 tokens stored in the contract.
  DoubleEndedQueue.Uint256Deque private _storedERC721Ids;

  /// @dev Token name
  string public name;

  /// @dev Token symbol
  string public symbol;

  /// @dev Decimals for ERC-20 representation
  uint8 public immutable decimals;

  /// @dev Units for ERC-20 representation
  uint256 public immutable units;

  /// @dev Total supply in ERC-20 representation
  uint256 public totalSupply;

  /// @dev Current mint counter which also represents the highest
  ///      minted id, monotonically increasing to ensure accurate ownership
  uint256 public minted;

  /// @dev Initial chain id for EIP-2612 support
  uint256 internal immutable _INITIAL_CHAIN_ID;

  /// @dev Initial domain separator for EIP-2612 support
  bytes32 internal immutable _INITIAL_DOMAIN_SEPARATOR;

  /// @dev Balance of user in ERC-20 representation
  mapping(address => uint256) public balanceOf;

  /// @dev Allowance of user in ERC-20 representation
  mapping(address => mapping(address => uint256)) public allowance;

  /// @dev Approval in ERC-721 representaion
  mapping(uint256 => address) public getApproved;

  /// @dev Approval for all in ERC-721 representation
  mapping(address => mapping(address => bool)) public isApprovedForAll;

  /// @dev Packed representation of ownerOf and owned indices
  mapping(uint256 => uint256) internal _ownedData;

  /// @dev Array of owned ids in ERC-721 representation
  mapping(address => uint256[]) internal _owned;

  /// @dev Addresses that are exempt from ERC-721 transfer, typically for gas savings (pairs, routers, etc)
  mapping(address => bool) internal _erc721TransferExempt;

  /// @dev EIP-2612 nonces
  mapping(address => uint256) public nonces;

  /// @dev Address bitmask for packed ownership data
  uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

  /// @dev Owned index bitmask for packed ownership data
  uint256 private constant _BITMASK_OWNED_INDEX = ((1 << 96) - 1) << 160;

  /// @dev Constant for token id encoding
  uint256 public constant ID_ENCODING_PREFIX = 1 << 255;

  constructor(string memory name_, string memory symbol_, uint8 decimals_) {
    name = name_;
    symbol = symbol_;

    if (decimals_ < 18) {
      revert DecimalsTooLow();
    }

    decimals = decimals_;
    units = 10 ** decimals;

    // EIP-2612 initialization
    _INITIAL_CHAIN_ID = block.chainid;
    _INITIAL_DOMAIN_SEPARATOR = _computeDomainSeparator();
  }

  /// @notice Function to find owner of a given ERC-721 token
  function ownerOf(
    uint256 id_
  ) public view virtual returns (address erc721Owner) {
    erc721Owner = _getOwnerOf(id_);

    if (!_isValidTokenId(id_)) {
      revert InvalidTokenId();
    }

    if (erc721Owner == address(0)) {
      revert NotFound();
    }
  }

  function owned(
    address owner_
  ) public view virtual returns (uint256[] memory) {
    return _owned[owner_];
  }

  function erc721BalanceOf(
    address owner_
  ) public view virtual returns (uint256) {
    return _owned[owner_].length;
  }

  function erc20BalanceOf(
    address owner_
  ) public view virtual returns (uint256) {
    return balanceOf[owner_];
  }

  function erc20TotalSupply() public view virtual returns (uint256) {
    return totalSupply;
  }

  function erc721TotalSupply() public view virtual returns (uint256) {
    return minted;
  }

  function getERC721QueueLength() public view virtual returns (uint256) {
    return _storedERC721Ids.length();
  }

  function getERC721TokensInQueue(
    uint256 start_,
    uint256 count_
  ) public view virtual returns (uint256[] memory) {
    uint256[] memory tokensInQueue = new uint256[](count_);

    for (uint256 i = start_; i < start_ + count_; ) {
      tokensInQueue[i - start_] = _storedERC721Ids.at(i);

      unchecked {
        ++i;
      }
    }

    return tokensInQueue;
  }

  /// @notice tokenURI must be implemented by child contract
  function tokenURI(uint256 id_) public view virtual returns (string memory);

  /// @notice Function for token approvals
  /// @dev This function assumes the operator is attempting to approve
  ///      an ERC-721 if valueOrId_ is a possibly valid ERC-721 token id.
  ///      Unlike setApprovalForAll, spender_ must be allowed to be 0x0 so
  ///      that approval can be revoked.
  function approve(
    address spender_,
    uint256 valueOrId_
  ) public virtual returns (bool) {
    if (_isValidTokenId(valueOrId_)) {
      erc721Approve(spender_, valueOrId_);
    } else {
      return erc20Approve(spender_, valueOrId_);
    }

    return true;
  }

  function erc721Approve(address spender_, uint256 id_) public virtual {
    // Intention is to approve as ERC-721 token (id).
    address erc721Owner = _getOwnerOf(id_);

    if (
      msg.sender != erc721Owner && !isApprovedForAll[erc721Owner][msg.sender]
    ) {
      revert Unauthorized();
    }

    getApproved[id_] = spender_;

    emit ERC721Events.Approval(erc721Owner, spender_, id_);
  }

  /// @dev Providing type(uint256).max for approval value results in an
  ///      unlimited approval that is not deducted from on transfers.
  function erc20Approve(
    address spender_,
    uint256 value_
  ) public virtual returns (bool) {
    // Prevent granting 0x0 an ERC-20 allowance.
    if (spender_ == address(0)) {
      revert InvalidSpender();
    }

    allowance[msg.sender][spender_] = value_;

    emit ERC20Events.Approval(msg.sender, spender_, value_);

    return true;
  }

  /// @notice Function for ERC-721 approvals
  function setApprovalForAll(address operator_, bool approved_) public virtual {
    // Prevent approvals to 0x0.
    if (operator_ == address(0)) {
      revert InvalidOperator();
    }
    isApprovedForAll[msg.sender][operator_] = approved_;
    emit ERC721Events.ApprovalForAll(msg.sender, operator_, approved_);
  }

  /// @notice Function for mixed transfers from an operator that may be different than 'from'.
  /// @dev This function assumes the operator is attempting to transfer an ERC-721
  ///      if valueOrId is a possible valid token id.
  function transferFrom(
    address from_,
    address to_,
    uint256 valueOrId_
  ) public virtual returns (bool) {
    if (_isValidTokenId(valueOrId_)) {
      erc721TransferFrom(from_, to_, valueOrId_);
    } else {
      // Intention is to transfer as ERC-20 token (value).
      return erc20TransferFrom(from_, to_, valueOrId_);
    }

    return true;
  }

  /// @notice Function for ERC-721 transfers from.
  /// @dev This function is recommended for ERC721 transfers.
  function erc721TransferFrom(
    address from_,
    address to_,
    uint256 id_
  ) public virtual {
    // Prevent minting tokens from 0x0.
    if (from_ == address(0)) {
      revert InvalidSender();
    }

    // Prevent burning tokens to 0x0.
    if (to_ == address(0)) {
      revert InvalidRecipient();
    }

    if (from_ != _getOwnerOf(id_)) {
      revert Unauthorized();
    }

    // Check that the operator is either the sender or approved for the transfer.
    if (
      msg.sender != from_ &&
      !isApprovedForAll[from_][msg.sender] &&
      msg.sender != getApproved[id_]
    ) {
      revert Unauthorized();
    }

    // We only need to check ERC-721 transfer exempt status for the recipient
    // since the sender being ERC-721 transfer exempt means they have already
    // had their ERC-721s stripped away during the rebalancing process.
    if (erc721TransferExempt(to_)) {
      revert RecipientIsERC721TransferExempt();
    }

    // Transfer 1 * units ERC-20 and 1 ERC-721 token.
    // ERC-721 transfer exemptions handled above. Can't make it to this point if either is transfer exempt.
    _transferERC20(from_, to_, units);
    _transferERC721(from_, to_, id_);
  }

  /// @notice Function for ERC-20 transfers from.
  /// @dev This function is recommended for ERC20 transfers
  function erc20TransferFrom(
    address from_,
    address to_,
    uint256 value_
  ) public virtual returns (bool) {
    // Prevent minting tokens from 0x0.
    if (from_ == address(0)) {
      revert InvalidSender();
    }

    // Prevent burning tokens to 0x0.
    if (to_ == address(0)) {
      revert InvalidRecipient();
    }

    uint256 allowed = allowance[from_][msg.sender];

    // Check that the operator has sufficient allowance.
    if (allowed != type(uint256).max) {
      allowance[from_][msg.sender] = allowed - value_;
    }

    // Transferring ERC-20s directly requires the _transferERC20WithERC721 function.
    // Handles ERC-721 exemptions internally.
    return _transferERC20WithERC721(from_, to_, value_);
  }

  /// @notice Function for ERC-20 transfers.
  /// @dev This function assumes the operator is attempting to transfer as ERC-20
  ///      given this function is only supported on the ERC-20 interface.
  ///      Treats even large amounts that are valid ERC-721 ids as ERC-20s.
  function transfer(address to_, uint256 value_) public virtual returns (bool) {
    // Prevent burning tokens to 0x0.
    if (to_ == address(0)) {
      revert InvalidRecipient();
    }

    // Transferring ERC-20s directly requires the _transferERC20WithERC721 function.
    // Handles ERC-721 exemptions internally.
    return _transferERC20WithERC721(msg.sender, to_, value_);
  }

  /// @notice Function for ERC-721 transfers with contract support.
  /// This function only supports moving valid ERC-721 ids, as it does not exist on the ERC-20
  /// spec and will revert otherwise.
  function safeTransferFrom(
    address from_,
    address to_,
    uint256 id_
  ) public virtual {
    safeTransferFrom(from_, to_, id_, "");
  }

  /// @notice Function for ERC-721 transfers with contract support and callback data.
  /// This function only supports moving valid ERC-721 ids, as it does not exist on the
  /// ERC-20 spec and will revert otherwise.
  function safeTransferFrom(
    address from_,
    address to_,
    uint256 id_,
    bytes memory data_
  ) public virtual {
    if (!_isValidTokenId(id_)) {
      revert InvalidTokenId();
    }

    transferFrom(from_, to_, id_);

    if (
      to_.code.length != 0 &&
      IERC721Receiver(to_).onERC721Received(msg.sender, from_, id_, data_) !=
      IERC721Receiver.onERC721Received.selector
    ) {
      revert UnsafeRecipient();
    }
  }

  /// @notice Function for EIP-2612 permits (ERC-20 only).
  /// @dev Providing type(uint256).max for permit value results in an
  ///      unlimited approval that is not deducted from on transfers.
  function permit(
    address owner_,
    address spender_,
    uint256 value_,
    uint256 deadline_,
    uint8 v_,
    bytes32 r_,
    bytes32 s_
  ) public virtual {
    if (deadline_ < block.timestamp) {
      revert PermitDeadlineExpired();
    }

    // permit cannot be used for ERC-721 token approvals, so ensure
    // the value does not fall within the valid range of ERC-721 token ids.
    if (_isValidTokenId(value_)) {
      revert InvalidApproval();
    }

    if (spender_ == address(0)) {
      revert InvalidSpender();
    }

    unchecked {
      address recoveredAddress = ecrecover(
        keccak256(
          abi.encodePacked(
            "\x19\x01",
            DOMAIN_SEPARATOR(),
            keccak256(
              abi.encode(
                keccak256(
                  "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
                ),
                owner_,
                spender_,
                value_,
                nonces[owner_]++,
                deadline_
              )
            )
          )
        ),
        v_,
        r_,
        s_
      );

      if (recoveredAddress == address(0) || recoveredAddress != owner_) {
        revert InvalidSigner();
      }

      allowance[recoveredAddress][spender_] = value_;
    }

    emit ERC20Events.Approval(owner_, spender_, value_);
  }

  /// @notice Returns domain initial domain separator, or recomputes if chain id is not equal to initial chain id
  function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
    return
      block.chainid == _INITIAL_CHAIN_ID
        ? _INITIAL_DOMAIN_SEPARATOR
        : _computeDomainSeparator();
  }

  function supportsInterface(
    bytes4 interfaceId
  ) public view virtual returns (bool) {
    return
      interfaceId == type(IERC404).interfaceId ||
      interfaceId == type(IERC165).interfaceId;
  }

  /// @notice Function for self-exemption
  function setSelfERC721TransferExempt(bool state_) public virtual {
    _setERC721TransferExempt(msg.sender, state_);
  }

  /// @notice Function to check if address is transfer exempt
  function erc721TransferExempt(
    address target_
  ) public view virtual returns (bool) {
    return target_ == address(0) || _erc721TransferExempt[target_];
  }

  /// @notice For a token token id to be considered valid, it just needs
  ///         to fall within the range of possible token ids, it does not
  ///         necessarily have to be minted yet.
  function _isValidTokenId(uint256 id_) internal pure returns (bool) {
    return id_ > ID_ENCODING_PREFIX && id_ != type(uint256).max;
  }

  /// @notice Internal function to compute domain separator for EIP-2612 permits
  function _computeDomainSeparator() internal view virtual returns (bytes32) {
    return
      keccak256(
        abi.encode(
          keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
          ),
          keccak256(bytes(name)),
          keccak256("1"),
          block.chainid,
          address(this)
        )
      );
  }

  /// @notice This is the lowest level ERC-20 transfer function, which
  ///         should be used for both normal ERC-20 transfers as well as minting.
  /// Note that this function allows transfers to and from 0x0.
  function _transferERC20(
    address from_,
    address to_,
    uint256 value_
  ) internal virtual {
    // Minting is a special case for which we should not check the balance of
    // the sender, and we should increase the total supply.
    if (from_ == address(0)) {
      totalSupply += value_;
    } else {
      // Deduct value from sender's balance.
      balanceOf[from_] -= value_;
    }

    // Update the recipient's balance.
    // Can be unchecked because on mint, adding to totalSupply is checked, and on transfer balance deduction is checked.
    unchecked {
      balanceOf[to_] += value_;
    }

    emit ERC20Events.Transfer(from_, to_, value_);
  }

  /// @notice Consolidated record keeping function for transferring ERC-721s.
  /// @dev Assign the token to the new owner, and remove from the old owner.
  /// Note that this function allows transfers to and from 0x0.
  /// Does not handle ERC-721 exemptions.
  function _transferERC721(
    address from_,
    address to_,
    uint256 id_
  ) internal virtual {
    // If this is not a mint, handle record keeping for transfer from previous owner.
    if (from_ != address(0)) {
      // On transfer of an NFT, any previous approval is reset.
      delete getApproved[id_];

      uint256 updatedId = _owned[from_][_owned[from_].length - 1];
      if (updatedId != id_) {
        uint256 updatedIndex = _getOwnedIndex(id_);
        // update _owned for sender
        _owned[from_][updatedIndex] = updatedId;
        // update index for the moved id
        _setOwnedIndex(updatedId, updatedIndex);
      }

      // pop
      _owned[from_].pop();
    }

    // Check if this is a burn.
    if (to_ != address(0)) {
      // If not a burn, update the owner of the token to the new owner.
      // Update owner of the token to the new owner.
      _setOwnerOf(id_, to_);
      // Push token onto the new owner's stack.
      _owned[to_].push(id_);
      // Update index for new owner's stack.
      _setOwnedIndex(id_, _owned[to_].length - 1);
    } else {
      // If this is a burn, reset the owner of the token to 0x0 by deleting the token from _ownedData.
      delete _ownedData[id_];
    }

    emit ERC721Events.Transfer(from_, to_, id_);
  }

  /// @notice Internal function for ERC-20 transfers. Also handles any ERC-721 transfers that may be required.
  // Handles ERC-721 exemptions.
  function _transferERC20WithERC721(
    address from_,
    address to_,
    uint256 value_
  ) internal virtual returns (bool) {
    uint256 erc20BalanceOfSenderBefore = erc20BalanceOf(from_);
    uint256 erc20BalanceOfReceiverBefore = erc20BalanceOf(to_);

    _transferERC20(from_, to_, value_);

    // Preload for gas savings on branches
    bool isFromERC721TransferExempt = erc721TransferExempt(from_);
    bool isToERC721TransferExempt = erc721TransferExempt(to_);

    // Skip _withdrawAndStoreERC721 and/or _retrieveOrMintERC721 for ERC-721 transfer exempt addresses
    // 1) to save gas
    // 2) because ERC-721 transfer exempt addresses won't always have/need ERC-721s corresponding to their ERC20s.
    if (isFromERC721TransferExempt && isToERC721TransferExempt) {
      // Case 1) Both sender and recipient are ERC-721 transfer exempt. No ERC-721s need to be transferred.
      // NOOP.
    } else if (isFromERC721TransferExempt) {
      // Case 2) The sender is ERC-721 transfer exempt, but the recipient is not. Contract should not attempt
      //         to transfer ERC-721s from the sender, but the recipient should receive ERC-721s
      //         from the bank/minted for any whole number increase in their balance.
      // Only cares about whole number increments.
      uint256 tokensToRetrieveOrMint = (balanceOf[to_] / units) -
        (erc20BalanceOfReceiverBefore / units);
      for (uint256 i = 0; i < tokensToRetrieveOrMint; ) {
        _retrieveOrMintERC721(to_);
        unchecked {
          ++i;
        }
      }
    } else if (isToERC721TransferExempt) {
      // Case 3) The sender is not ERC-721 transfer exempt, but the recipient is. Contract should attempt
      //         to withdraw and store ERC-721s from the sender, but the recipient should not
      //         receive ERC-721s from the bank/minted.
      // Only cares about whole number increments.
      uint256 tokensToWithdrawAndStore = (erc20BalanceOfSenderBefore / units) -
        (balanceOf[from_] / units);
      for (uint256 i = 0; i < tokensToWithdrawAndStore; ) {
        _withdrawAndStoreERC721(from_);
        unchecked {
          ++i;
        }
      }
    } else {
      // Case 4) Neither the sender nor the recipient are ERC-721 transfer exempt.
      // Strategy:
      // 1. First deal with the whole tokens. These are easy and will just be transferred.
      // 2. Look at the fractional part of the value:
      //   a) If it causes the sender to lose a whole token that was represented by an NFT due to a
      //      fractional part being transferred, withdraw and store an additional NFT from the sender.
      //   b) If it causes the receiver to gain a whole new token that should be represented by an NFT
      //      due to receiving a fractional part that completes a whole token, retrieve or mint an NFT to the recevier.

      // Whole tokens worth of ERC-20s get transferred as ERC-721s without any burning/minting.
      uint256 nftsToTransfer = value_ / units;
      for (uint256 i = 0; i < nftsToTransfer; ) {
        // Pop from sender's ERC-721 stack and transfer them (LIFO)
        uint256 indexOfLastToken = _owned[from_].length - 1;
        uint256 tokenId = _owned[from_][indexOfLastToken];
        _transferERC721(from_, to_, tokenId);
        unchecked {
          ++i;
        }
      }

      // If the transfer changes either the sender or the recipient's holdings from a fractional to a non-fractional
      // amount (or vice versa), adjust ERC-721s.

      // First check if the send causes the sender to lose a whole token that was represented by an ERC-721
      // due to a fractional part being transferred.
      //
      // Process:
      // Take the difference between the whole number of tokens before and after the transfer for the sender.
      // If that difference is greater than the number of ERC-721s transferred (whole units), then there was
      // an additional ERC-721 lost due to the fractional portion of the transfer.
      // If this is a self-send and the before and after balances are equal (not always the case but often),
      // then no ERC-721s will be lost here.
      if (
        erc20BalanceOfSenderBefore / units - erc20BalanceOf(from_) / units >
        nftsToTransfer
      ) {
        _withdrawAndStoreERC721(from_);
      }

      // Then, check if the transfer causes the receiver to gain a whole new token which requires gaining
      // an additional ERC-721.
      //
      // Process:
      // Take the difference between the whole number of tokens before and after the transfer for the recipient.
      // If that difference is greater than the number of ERC-721s transferred (whole units), then there was
      // an additional ERC-721 gained due to the fractional portion of the transfer.
      // Again, for self-sends where the before and after balances are equal, no ERC-721s will be gained here.
      if (
        erc20BalanceOf(to_) / units - erc20BalanceOfReceiverBefore / units >
        nftsToTransfer
      ) {
        _retrieveOrMintERC721(to_);
      }
    }

    return true;
  }

  /// @notice Internal function for ERC20 minting
  /// @dev This function will allow minting of new ERC20s.
  ///      If mintCorrespondingERC721s_ is true, and the recipient is not ERC-721 exempt, it will
  ///      also mint the corresponding ERC721s.
  /// Handles ERC-721 exemptions.
  function _mintERC20(address to_, uint256 value_) internal virtual {
    /// You cannot mint to the zero address (you can't mint and immediately burn in the same transfer).
    if (to_ == address(0)) {
      revert InvalidRecipient();
    }

    if (totalSupply + value_ > ID_ENCODING_PREFIX) {
      revert MintLimitReached();
    }

    _transferERC20WithERC721(address(0), to_, value_);
  }

  /// @notice Internal function for ERC-721 minting and retrieval from the bank.
  /// @dev This function will allow minting of new ERC-721s up to the total fractional supply. It will
  ///      first try to pull from the bank, and if the bank is empty, it will mint a new token.
  /// Does not handle ERC-721 exemptions.
  function _retrieveOrMintERC721(address to_) internal virtual {
    if (to_ == address(0)) {
      revert InvalidRecipient();
    }

    uint256 id;

    if (!_storedERC721Ids.empty()) {
      // If there are any tokens in the bank, use those first.
      // Pop off the end of the queue (FIFO).
      id = _storedERC721Ids.popBack();
    } else {
      // Otherwise, mint a new token, should not be able to go over the total fractional supply.
      ++minted;

      // Reserve max uint256 for approvals
      if (minted == type(uint256).max) {
        revert MintLimitReached();
      }

      id = ID_ENCODING_PREFIX + minted;
    }

    address erc721Owner = _getOwnerOf(id);

    // The token should not already belong to anyone besides 0x0 or this contract.
    // If it does, something is wrong, as this should never happen.
    if (erc721Owner != address(0)) {
      revert AlreadyExists();
    }

    // Transfer the token to the recipient, either transferring from the contract's bank or minting.
    // Does not handle ERC-721 exemptions.
    _transferERC721(erc721Owner, to_, id);
  }

  /// @notice Internal function for ERC-721 deposits to bank (this contract).
  /// @dev This function will allow depositing of ERC-721s to the bank, which can be retrieved by future minters.
  // Does not handle ERC-721 exemptions.
  function _withdrawAndStoreERC721(address from_) internal virtual {
    if (from_ == address(0)) {
      revert InvalidSender();
    }

    // Retrieve the latest token added to the owner's stack (LIFO).
    uint256 id = _owned[from_][_owned[from_].length - 1];

    // Transfer to 0x0.
    // Does not handle ERC-721 exemptions.
    _transferERC721(from_, address(0), id);

    // Record the token in the contract's bank queue.
    _storedERC721Ids.pushFront(id);
  }

  /// @notice Initialization function to set pairs / etc, saving gas by avoiding mint / burn on unnecessary targets
  function _setERC721TransferExempt(
    address target_,
    bool state_
  ) internal virtual {
    if (target_ == address(0)) {
      revert InvalidExemption();
    }

    // Adjust the ERC721 balances of the target to respect exemption rules.
    // Despite this logic, it is still recommended practice to exempt prior to the target
    // having an active balance.
    if (state_) {
      _clearERC721Balance(target_);
    } else {
      _reinstateERC721Balance(target_);
    }

    _erc721TransferExempt[target_] = state_;
  }

  /// @notice Function to reinstate balance on exemption removal
  function _reinstateERC721Balance(address target_) private {
    uint256 expectedERC721Balance = erc20BalanceOf(target_) / units;
    uint256 actualERC721Balance = erc721BalanceOf(target_);

    for (uint256 i = 0; i < expectedERC721Balance - actualERC721Balance; ) {
      // Transfer ERC721 balance in from pool
      _retrieveOrMintERC721(target_);
      unchecked {
        ++i;
      }
    }
  }

  /// @notice Function to clear balance on exemption inclusion
  function _clearERC721Balance(address target_) private {
    uint256 erc721Balance = erc721BalanceOf(target_);

    for (uint256 i = 0; i < erc721Balance; ) {
      // Transfer out ERC721 balance
      _withdrawAndStoreERC721(target_);
      unchecked {
        ++i;
      }
    }
  }

  function _getOwnerOf(
    uint256 id_
  ) internal view virtual returns (address ownerOf_) {
    uint256 data = _ownedData[id_];

    assembly {
      ownerOf_ := and(data, _BITMASK_ADDRESS)
    }
  }

  function _setOwnerOf(uint256 id_, address owner_) internal virtual {
    uint256 data = _ownedData[id_];

    assembly {
      data := add(
        and(data, _BITMASK_OWNED_INDEX),
        and(owner_, _BITMASK_ADDRESS)
      )
    }

    _ownedData[id_] = data;
  }

  function _getOwnedIndex(
    uint256 id_
  ) internal view virtual returns (uint256 ownedIndex_) {
    uint256 data = _ownedData[id_];

    assembly {
      ownedIndex_ := shr(160, data)
    }
  }

  function _setOwnedIndex(uint256 id_, uint256 index_) internal virtual {
    uint256 data = _ownedData[id_];

    if (index_ > _BITMASK_OWNED_INDEX >> 160) {
      revert OwnedIndexOverflow();
    }

    assembly {
      data := add(
        and(data, _BITMASK_ADDRESS),
        and(shl(160, index_), _BITMASK_OWNED_INDEX)
      )
    }

    _ownedData[id_] = data;
  }
}

File 13 of 18 : ERC404MerkleClaim.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import {IERC404MerkleClaim} from "./IERC404MerkleClaim.sol";

abstract contract ERC404MerkleClaim is IERC404MerkleClaim {
  bool public airdropIsOpen;
  bytes32 public airdropMerkleRoot;
  mapping(address => bool) public hasClaimedAirdrop;

  modifier whenAirdropIsOpen() {
    if (airdropMerkleRoot == 0 || !airdropIsOpen) {
      revert AirdropIsClosed();
    }
    _;
  }

  function verifyProof(
    bytes32[] memory proof_,
    address claimer_,
    uint256 value_
  ) public view returns (bool) {
    bytes32 leaf = keccak256(
      bytes.concat(keccak256(abi.encode(claimer_, value_)))
    );
    if (MerkleProof.verify(proof_, airdropMerkleRoot, leaf)) {
      return true;
    }
    return false;
  }

  // To use, override this function in your contract, call
  // super.airdropMint(proof_) within your override function, then mint tokens.
  function airdropMint(
    bytes32[] memory proof_,
    uint256 value_
  ) public virtual whenAirdropIsOpen {
    _validateAndRecordAirdropClaim(proof_, msg.sender, value_);
  }

  function _setAirdropMerkleRoot(bytes32 airdropMerkleRoot_) internal {
    airdropMerkleRoot = airdropMerkleRoot_;
  }

  function _toggleAirdropIsOpen() internal {
    airdropIsOpen = !airdropIsOpen;
  }

  function _validateAndRecordAirdropClaim(
    bytes32[] memory proof_,
    address claimer_,
    uint256 value_
  ) internal {
    // Check that the address is eligible.
    if (!verifyProof(proof_, claimer_, value_)) {
      revert NotEligibleForAirdrop();
    }

    // Check if address has already claimed their airdrop.
    if (hasClaimedAirdrop[claimer_]) {
      revert AirdropAlreadyClaimed();
    }

    // Mark address as claimed.
    hasClaimedAirdrop[claimer_] = true;
  }
}

File 14 of 18 : IERC404MerkleClaim.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

interface IERC404MerkleClaim {
  error AirdropAlreadyClaimed();
  error NotEligibleForAirdrop();
  error AirdropIsClosed();

  function verifyProof(
    bytes32[] memory proof_,
    address claimer_,
    uint256 value_
  ) external view returns (bool);

  function airdropMint(bytes32[] memory proof_, uint256 value_) external;
}

File 15 of 18 : IERC404.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import {IERC165} from "@openzeppelin/contracts/interfaces/IERC165.sol";

interface IERC404 is IERC165 {
  error NotFound();
  error InvalidTokenId();
  error AlreadyExists();
  error InvalidRecipient();
  error InvalidSender();
  error InvalidSpender();
  error InvalidOperator();
  error UnsafeRecipient();
  error RecipientIsERC721TransferExempt();
  error Unauthorized();
  error InsufficientAllowance();
  error DecimalsTooLow();
  error PermitDeadlineExpired();
  error InvalidSigner();
  error InvalidApproval();
  error OwnedIndexOverflow();
  error MintLimitReached();
  error InvalidExemption();

  function name() external view returns (string memory);
  function symbol() external view returns (string memory);
  function decimals() external view returns (uint8);
  function totalSupply() external view returns (uint256);
  function erc20TotalSupply() external view returns (uint256);
  function erc721TotalSupply() external view returns (uint256);
  function balanceOf(address owner_) external view returns (uint256);
  function erc721BalanceOf(address owner_) external view returns (uint256);
  function erc20BalanceOf(address owner_) external view returns (uint256);
  function erc721TransferExempt(address account_) external view returns (bool);
  function isApprovedForAll(
    address owner_,
    address operator_
  ) external view returns (bool);
  function allowance(
    address owner_,
    address spender_
  ) external view returns (uint256);
  function owned(address owner_) external view returns (uint256[] memory);
  function ownerOf(uint256 id_) external view returns (address erc721Owner);
  function tokenURI(uint256 id_) external view returns (string memory);
  function approve(
    address spender_,
    uint256 valueOrId_
  ) external returns (bool);
  function erc20Approve(
    address spender_,
    uint256 value_
  ) external returns (bool);
  function erc721Approve(address spender_, uint256 id_) external;
  function setApprovalForAll(address operator_, bool approved_) external;
  function transferFrom(
    address from_,
    address to_,
    uint256 valueOrId_
  ) external returns (bool);
  function erc20TransferFrom(
    address from_,
    address to_,
    uint256 value_
  ) external returns (bool);
  function erc721TransferFrom(address from_, address to_, uint256 id_) external;
  function transfer(address to_, uint256 amount_) external returns (bool);
  function getERC721QueueLength() external view returns (uint256);
  function getERC721TokensInQueue(
    uint256 start_,
    uint256 count_
  ) external view returns (uint256[] memory);
  function setSelfERC721TransferExempt(bool state_) external;
  function safeTransferFrom(address from_, address to_, uint256 id_) external;
  function safeTransferFrom(
    address from_,
    address to_,
    uint256 id_,
    bytes calldata data_
  ) external;
  function DOMAIN_SEPARATOR() external view returns (bytes32);
  function permit(
    address owner_,
    address spender_,
    uint256 value_,
    uint256 deadline_,
    uint8 v_,
    bytes32 r_,
    bytes32 s_
  ) external;
}

File 16 of 18 : DoubleEndedQueue.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/DoubleEndedQueue.sol)
// Modified by Pandora Labs to support native uint256 operations
pragma solidity ^0.8.20;

/**
 * @dev A sequence of items with the ability to efficiently push and pop items (i.e. insert and remove) on both ends of
 * the sequence (called front and back). Among other access patterns, it can be used to implement efficient LIFO and
 * FIFO queues. Storage use is optimized, and all operations are O(1) constant time. This includes {clear}, given that
 * the existing queue contents are left in storage.
 *
 * The struct is called `Uint256Deque`. This data structure can only be used in storage, and not in memory.
 *
 * ```solidity
 * DoubleEndedQueue.Uint256Deque queue;
 * ```
 */
library DoubleEndedQueue {
  /**
   * @dev An operation (e.g. {front}) couldn't be completed due to the queue being empty.
   */
  error QueueEmpty();

  /**
   * @dev A push operation couldn't be completed due to the queue being full.
   */
  error QueueFull();

  /**
   * @dev An operation (e.g. {at}) couldn't be completed due to an index being out of bounds.
   */
  error QueueOutOfBounds();

  /**
   * @dev Indices are 128 bits so begin and end are packed in a single storage slot for efficient access.
   *
   * Struct members have an underscore prefix indicating that they are "private" and should not be read or written to
   * directly. Use the functions provided below instead. Modifying the struct manually may violate assumptions and
   * lead to unexpected behavior.
   *
   * The first item is at data[begin] and the last item is at data[end - 1]. This range can wrap around.
   */
  struct Uint256Deque {
    uint128 _begin;
    uint128 _end;
    mapping(uint128 index => uint256) _data;
  }

  /**
   * @dev Inserts an item at the end of the queue.
   *
   * Reverts with {QueueFull} if the queue is full.
   */
  function pushBack(Uint256Deque storage deque, uint256 value) internal {
    unchecked {
      uint128 backIndex = deque._end;
      if (backIndex + 1 == deque._begin) revert QueueFull();
      deque._data[backIndex] = value;
      deque._end = backIndex + 1;
    }
  }

  /**
   * @dev Removes the item at the end of the queue and returns it.
   *
   * Reverts with {QueueEmpty} if the queue is empty.
   */
  function popBack(
    Uint256Deque storage deque
  ) internal returns (uint256 value) {
    unchecked {
      uint128 backIndex = deque._end;
      if (backIndex == deque._begin) revert QueueEmpty();
      --backIndex;
      value = deque._data[backIndex];
      delete deque._data[backIndex];
      deque._end = backIndex;
    }
  }

  /**
   * @dev Inserts an item at the beginning of the queue.
   *
   * Reverts with {QueueFull} if the queue is full.
   */
  function pushFront(Uint256Deque storage deque, uint256 value) internal {
    unchecked {
      uint128 frontIndex = deque._begin - 1;
      if (frontIndex == deque._end) revert QueueFull();
      deque._data[frontIndex] = value;
      deque._begin = frontIndex;
    }
  }

  /**
   * @dev Removes the item at the beginning of the queue and returns it.
   *
   * Reverts with `QueueEmpty` if the queue is empty.
   */
  function popFront(
    Uint256Deque storage deque
  ) internal returns (uint256 value) {
    unchecked {
      uint128 frontIndex = deque._begin;
      if (frontIndex == deque._end) revert QueueEmpty();
      value = deque._data[frontIndex];
      delete deque._data[frontIndex];
      deque._begin = frontIndex + 1;
    }
  }

  /**
   * @dev Returns the item at the beginning of the queue.
   *
   * Reverts with `QueueEmpty` if the queue is empty.
   */
  function front(
    Uint256Deque storage deque
  ) internal view returns (uint256 value) {
    if (empty(deque)) revert QueueEmpty();
    return deque._data[deque._begin];
  }

  /**
   * @dev Returns the item at the end of the queue.
   *
   * Reverts with `QueueEmpty` if the queue is empty.
   */
  function back(
    Uint256Deque storage deque
  ) internal view returns (uint256 value) {
    if (empty(deque)) revert QueueEmpty();
    unchecked {
      return deque._data[deque._end - 1];
    }
  }

  /**
   * @dev Return the item at a position in the queue given by `index`, with the first item at 0 and last item at
   * `length(deque) - 1`.
   *
   * Reverts with `QueueOutOfBounds` if the index is out of bounds.
   */
  function at(
    Uint256Deque storage deque,
    uint256 index
  ) internal view returns (uint256 value) {
    if (index >= length(deque)) revert QueueOutOfBounds();
    // By construction, length is a uint128, so the check above ensures that index can be safely downcast to uint128
    unchecked {
      return deque._data[deque._begin + uint128(index)];
    }
  }

  /**
   * @dev Resets the queue back to being empty.
   *
   * NOTE: The current items are left behind in storage. This does not affect the functioning of the queue, but misses
   * out on potential gas refunds.
   */
  function clear(Uint256Deque storage deque) internal {
    deque._begin = 0;
    deque._end = 0;
  }

  /**
   * @dev Returns the number of items in the queue.
   */
  function length(Uint256Deque storage deque) internal view returns (uint256) {
    unchecked {
      return uint256(deque._end - deque._begin);
    }
  }

  /**
   * @dev Returns true if the queue is empty.
   */
  function empty(Uint256Deque storage deque) internal view returns (bool) {
    return deque._end == deque._begin;
  }
}

File 17 of 18 : ERC20Events.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

library ERC20Events {
  event Approval(address indexed owner, address indexed spender, uint256 value);
  event Transfer(address indexed from, address indexed to, uint256 amount);
}

File 18 of 18 : ERC721Events.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

library ERC721Events {
  event ApprovalForAll(
    address indexed owner,
    address indexed operator,
    bool approved
  );
  event Approval(
    address indexed owner,
    address indexed spender,
    uint256 indexed id
  );
  event Transfer(
    address indexed from,
    address indexed to,
    uint256 indexed id
  );
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "evmVersion": "paris",
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint8","name":"decimals_","type":"uint8"},{"internalType":"uint256","name":"maxTotalSupplyERC721_","type":"uint256"},{"internalType":"uint256","name":"amountToAirdrop_","type":"uint256"},{"internalType":"address","name":"initialOwner_","type":"address"},{"internalType":"address","name":"initialMintRecipient_","type":"address"},{"internalType":"string","name":"dataURI_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AirdropAlreadyClaimed","type":"error"},{"inputs":[],"name":"AirdropIsClosed","type":"error"},{"inputs":[],"name":"AlreadyExists","type":"error"},{"inputs":[],"name":"DecimalsTooLow","type":"error"},{"inputs":[],"name":"InsufficientAllowance","type":"error"},{"inputs":[],"name":"InvalidApproval","type":"error"},{"inputs":[],"name":"InvalidExemption","type":"error"},{"inputs":[],"name":"InvalidOperator","type":"error"},{"inputs":[],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"InvalidSender","type":"error"},{"inputs":[],"name":"InvalidSigner","type":"error"},{"inputs":[],"name":"InvalidSpender","type":"error"},{"inputs":[],"name":"InvalidTokenId","type":"error"},{"inputs":[],"name":"MintLimitReached","type":"error"},{"inputs":[],"name":"NotEligibleForAirdrop","type":"error"},{"inputs":[],"name":"NotFound","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnedIndexOverflow","type":"error"},{"inputs":[],"name":"PermitDeadlineExpired","type":"error"},{"inputs":[],"name":"QueueEmpty","type":"error"},{"inputs":[],"name":"QueueFull","type":"error"},{"inputs":[],"name":"QueueOutOfBounds","type":"error"},{"inputs":[],"name":"RecipientIsERC721TransferExempt","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UnsafeRecipient","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Transfer","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":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ID_ENCODING_PREFIX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"airdropIsOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"airdropMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"},{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"airdropMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender_","type":"address"},{"internalType":"uint256","name":"valueOrId_","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender_","type":"address"},{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"erc20Approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"erc20BalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc20TotalSupply","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":"value_","type":"uint256"}],"name":"erc20TransferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender_","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"erc721Approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"erc721BalanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc721TotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target_","type":"address"}],"name":"erc721TransferExempt","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":"id_","type":"uint256"}],"name":"erc721TransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getERC721QueueLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"start_","type":"uint256"},{"internalType":"uint256","name":"count_","type":"uint256"}],"name":"getERC721TokensInQueue","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasClaimedAirdrop","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTotalSupplyERC721","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"}],"name":"owned","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":"id_","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"erc721Owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"spender_","type":"address"},{"internalType":"uint256","name":"value_","type":"uint256"},{"internalType":"uint256","name":"deadline_","type":"uint256"},{"internalType":"uint8","name":"v_","type":"uint8"},{"internalType":"bytes32","name":"r_","type":"bytes32"},{"internalType":"bytes32","name":"s_","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"remainingAirdropBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"id_","type":"uint256"},{"internalType":"bytes","name":"data_","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"airdropMerkleRoot_","type":"bytes32"}],"name":"setAirdropMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator_","type":"address"},{"internalType":"bool","name":"approved_","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_dataURI","type":"string"}],"name":"setDataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account_","type":"address"},{"internalType":"bool","name":"value_","type":"bool"}],"name":"setERC721TransferExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"state_","type":"bool"}],"name":"setSelfERC721TransferExempt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleAirdropIsOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from_","type":"address"},{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint256","name":"valueOrId_","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"units","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"},{"internalType":"address","name":"claimer_","type":"address"},{"internalType":"uint256","name":"value_","type":"uint256"}],"name":"verifyProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

6101006040523480156200001257600080fd5b50604051620081ca380380620081ca8339818101604052810190620000389190620019b0565b87878785600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000b15760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000a8919062001ae7565b60405180910390fd5b620000c281620001ec60201b60201c565b508260039081620000d4919062001d45565b508160049081620000e6919062001d45565b5060128160ff16101562000126576040517f98790fd500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060ff1660808160ff1681525050608051600a62000145919062001faf565b60a081815250504660c0818152505062000164620002b060201b60201c565b60e08181525050505050620001818260016200034060201b60201c565b620001af8260a051868862000197919062002000565b620001a391906200203b565b6200043260201b60201c565b60a05184620001bf91906200203b565b601481905550846015819055508060129081620001dd919062001d45565b50505050505050505062002341565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6003604051620002e4919062002135565b60405180910390207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc64630604051602001620003259594939291906200217a565b60405160208183030381529060405280519060200120905090565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620003a7576040517fa41e3d3f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015620003c557620003bf826200051c60201b60201c565b620003d7565b620003d6826200055f60201b60201c565b5b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160362000499576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f800000000000000000000000000000000000000000000000000000000000000081600554620004ca9190620021d7565b111562000503576040517f303b682f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6200051760008383620005d460201b60201c565b505050565b60006200052f826200095360201b60201c565b905060005b818110156200055a576200054e836200099f60201b60201c565b80600101905062000534565b505050565b600060a051620005758362000ae760201b60201c565b62000581919062002241565b9050600062000596836200095360201b60201c565b905060005b8183620005a9919062002000565b811015620005ce57620005c28462000b3060201b60201c565b8060010190506200059b565b50505050565b600080620005e88562000ae760201b60201c565b90506000620005fd8562000ae760201b60201c565b90506200061286868662000d0560201b60201c565b6000620006258762000e6d60201b60201c565b905060006200063a8762000e6d60201b60201c565b9050818015620006475750805b62000944578115620006f357600060a0518462000665919062002241565b60a051600760008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054620006b4919062002241565b620006c0919062002000565b905060005b81811015620006eb57620006df8962000b3060201b60201c565b806001019050620006c5565b505062000943565b80156200079a57600060a051600760008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546200074b919062002241565b60a051866200075b919062002241565b62000767919062002000565b905060005b818110156200079257620007868a6200099f60201b60201c565b8060010190506200076c565b505062000942565b600060a05187620007ac919062002241565b905060005b81811015620008935760006001600c60008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506200080d919062002000565b90506000600c60008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811062000865576200086462002279565b5b90600052602060002001549050620008858c8c8362000efa60201b60201c565b8260010192505050620007b1565b508060a051620008a98b62000ae760201b60201c565b620008b5919062002241565b60a05187620008c5919062002241565b620008d1919062002000565b1115620008ea57620008e9896200099f60201b60201c565b5b8060a05185620008fb919062002241565b60a0516200090f8b62000ae760201b60201c565b6200091b919062002241565b62000927919062002000565b111562000940576200093f8862000b3060201b60201c565b5b505b5b5b60019450505050509392505050565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050919050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362000a06576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905062000a98919062002000565b8154811062000aac5762000aab62002279565b5b9060005260206000200154905062000acd8260008362000efa60201b60201c565b62000ae3816001620012a360201b90919060201c565b5050565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362000b97576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600062000bab6001620013c760201b60201c565b62000bca5762000bc260016200143760201b60201c565b905062000c71565b60066000815462000bdb90620022a8565b919050819055507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6006540362000c3e576040517f303b682f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006547f800000000000000000000000000000000000000000000000000000000000000062000c6e9190620021d7565b90505b600062000c84826200159c60201b60201c565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161462000ced576040517f23369fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b62000d0081848462000efa60201b60201c565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160362000d5b57806005600082825462000d4e9190620021d7565b9250508190555062000db4565b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825462000dac919062002000565b925050819055505b80600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405162000e609190620022f5565b60405180910390a3505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16148062000ef35750600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161462001116576009600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905062000ff7919062002000565b815481106200100b576200100a62002279565b5b90600052602060002001549050818114620010ac5760006200103383620015d460201b60201c565b905081600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106200108a576200108962002279565b5b9060005260206000200181905550620010aa8282620015f960201b60201c565b505b600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480620010fe57620010fd62002312565b5b60019003818190600052602060002001600090559055505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146200122b576200115d8183620016cd60201b60201c565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081908060018154018082558091505060019003906000526020600020016000909190919091505562001225816001600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905062001219919062002000565b620015f960201b60201c565b62001243565b600b6000828152602001908152602001600020600090555b808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600060018360000160009054906101000a90046fffffffffffffffffffffffffffffffff160390508260000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16816fffffffffffffffffffffffffffffffff160362001349576040517f8acb5f2700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81836001016000836fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808360000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550505050565b60008160000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168260000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16149050919050565b6000808260000160109054906101000a90046fffffffffffffffffffffffffffffffff1690508260000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16816fffffffffffffffffffffffffffffffff1603620014db576040517f75e52f4f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600190039050826001016000826fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152602001908152602001600020549150826001016000826fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002060009055808360000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555050919050565b600080600b600084815260200190815260200160002054905073ffffffffffffffffffffffffffffffffffffffff8116915050919050565b600080600b60008481526020019081526020016000205490508060a01c915050919050565b6000600b600084815260200190815260200160002054905060a07fffffffffffffffffffffffff0000000000000000000000000000000000000000901c82111562001670576040517ffcb3438c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffff00000000000000000000000000000000000000008260a01b1673ffffffffffffffffffffffffffffffffffffffff821601905080600b600085815260200190815260200160002081905550505050565b6000600b600084815260200190815260200160002054905073ffffffffffffffffffffffffffffffffffffffff82167fffffffffffffffffffffffff0000000000000000000000000000000000000000821601905080600b600085815260200190815260200160002081905550505050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620017a8826200175d565b810181811067ffffffffffffffff82111715620017ca57620017c96200176e565b5b80604052505050565b6000620017df6200173f565b9050620017ed82826200179d565b919050565b600067ffffffffffffffff82111562001810576200180f6200176e565b5b6200181b826200175d565b9050602081019050919050565b60005b83811015620018485780820151818401526020810190506200182b565b60008484015250505050565b60006200186b6200186584620017f2565b620017d3565b9050828152602081018484840111156200188a576200188962001758565b5b6200189784828562001828565b509392505050565b600082601f830112620018b757620018b662001753565b5b8151620018c984826020860162001854565b91505092915050565b600060ff82169050919050565b620018ea81620018d2565b8114620018f657600080fd5b50565b6000815190506200190a81620018df565b92915050565b6000819050919050565b620019258162001910565b81146200193157600080fd5b50565b60008151905062001945816200191a565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062001978826200194b565b9050919050565b6200198a816200196b565b81146200199657600080fd5b50565b600081519050620019aa816200197f565b92915050565b600080600080600080600080610100898b031215620019d457620019d362001749565b5b600089015167ffffffffffffffff811115620019f557620019f46200174e565b5b62001a038b828c016200189f565b985050602089015167ffffffffffffffff81111562001a275762001a266200174e565b5b62001a358b828c016200189f565b975050604062001a488b828c01620018f9565b965050606062001a5b8b828c0162001934565b955050608062001a6e8b828c0162001934565b94505060a062001a818b828c0162001999565b93505060c062001a948b828c0162001999565b92505060e089015167ffffffffffffffff81111562001ab85762001ab76200174e565b5b62001ac68b828c016200189f565b9150509295985092959890939650565b62001ae1816200196b565b82525050565b600060208201905062001afe600083018462001ad6565b92915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062001b5757607f821691505b60208210810362001b6d5762001b6c62001b0f565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b60006008830262001bd77fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262001b98565b62001be3868362001b98565b95508019841693508086168417925050509392505050565b6000819050919050565b600062001c2662001c2062001c1a8462001910565b62001bfb565b62001910565b9050919050565b6000819050919050565b62001c428362001c05565b62001c5a62001c518262001c2d565b84845462001ba5565b825550505050565b600090565b62001c7162001c62565b62001c7e81848462001c37565b505050565b5b8181101562001ca65762001c9a60008262001c67565b60018101905062001c84565b5050565b601f82111562001cf55762001cbf8162001b73565b62001cca8462001b88565b8101602085101562001cda578190505b62001cf262001ce98562001b88565b83018262001c83565b50505b505050565b600082821c905092915050565b600062001d1a6000198460080262001cfa565b1980831691505092915050565b600062001d35838362001d07565b9150826002028217905092915050565b62001d508262001b04565b67ffffffffffffffff81111562001d6c5762001d6b6200176e565b5b62001d78825462001b3e565b62001d8582828562001caa565b600060209050601f83116001811462001dbd576000841562001da8578287015190505b62001db4858262001d27565b86555062001e24565b601f19841662001dcd8662001b73565b60005b8281101562001df75784890151825560018201915060208501945060208101905062001dd0565b8683101562001e17578489015162001e13601f89168262001d07565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b600185111562001eba5780860481111562001e925762001e9162001e2c565b5b600185161562001ea25780820291505b808102905062001eb28562001e5b565b945062001e72565b94509492505050565b60008262001ed5576001905062001fa8565b8162001ee5576000905062001fa8565b816001811462001efe576002811462001f095762001f3f565b600191505062001fa8565b60ff84111562001f1e5762001f1d62001e2c565b5b8360020a91508482111562001f385762001f3762001e2c565b5b5062001fa8565b5060208310610133831016604e8410600b841016171562001f795782820a90508381111562001f735762001f7262001e2c565b5b62001fa8565b62001f88848484600162001e68565b9250905081840481111562001fa25762001fa162001e2c565b5b81810290505b9392505050565b600062001fbc8262001910565b915062001fc983620018d2565b925062001ff87fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848462001ec3565b905092915050565b60006200200d8262001910565b91506200201a8362001910565b925082820390508181111562002035576200203462001e2c565b5b92915050565b6000620020488262001910565b9150620020558362001910565b9250828202620020658162001910565b915082820484148315176200207f576200207e62001e2c565b5b5092915050565b600081905092915050565b60008190508160005260206000209050919050565b60008154620020b58162001b3e565b620020c1818662002086565b94506001821660008114620020df5760018114620020f5576200212c565b60ff19831686528115158202860193506200212c565b620021008562002091565b60005b83811015620021245781548189015260018201915060208101905062002103565b838801955050505b50505092915050565b6000620021438284620020a6565b915081905092915050565b6000819050919050565b62002163816200214e565b82525050565b620021748162001910565b82525050565b600060a08201905062002191600083018862002158565b620021a0602083018762002158565b620021af604083018662002158565b620021be606083018562002169565b620021cd608083018462001ad6565b9695505050505050565b6000620021e48262001910565b9150620021f18362001910565b92508282019050808211156200220c576200220b62001e2c565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006200224e8262001910565b91506200225b8362001910565b9250826200226e576200226d62002212565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000620022b58262001910565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203620022ea57620022e962001e2c565b5b600182019050919050565b60006020820190506200230c600083018462002169565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60805160a05160c05160e051615e02620023c86000396000610df701526000610dc30152600081816112f10152818161264e01528181612fe00152818161300c015281816130b10152818161311c0152818161317c01528181613282015281816132b6015281816132fd015281816133290152613a9e01526000610d9d0152615e026000f3fe608060405234801561001057600080fd5b50600436106103275760003560e01c80638da5cb5b116101b8578063d505accf11610104578063e0df5b6f116100a2578063f2fde38b1161007c578063f2fde38b146109f0578063f4cdda3614610a0c578063f780bc1a14610a3c578063fb4bcd4f14610a6c57610327565b8063e0df5b6f14610986578063e985e9c5146109a2578063f28ca1dd146109d257610327565b8063dc1a9273116100de578063dc1a927314610914578063dd62ed3e1461091e578063dd6376991461094e578063dfabc0331461096a57610327565b8063d505accf146108aa578063d547cfb7146108c6578063d96ca0b9146108e457610327565b8063a9059cbb11610171578063b88d4fde1161014b578063b88d4fde14610824578063c5ab3ba614610840578063c6e672b91461085e578063c87b56dd1461087a57610327565b8063a9059cbb14610794578063b1ab9317146107c4578063b3f9ea34146107f457610327565b80638da5cb5b146106e2578063922c36c31461070057806395d89b411461071e578063976a84351461073c578063a22cb4651461075a578063a5ce30d21461077657610327565b80634d96607211610277578063715018a61161023057806383443c521161020a57806383443c521461066e57806389fb4c661461068c5780638a696e50146106aa5780638b2d8dec146106c657610327565b8063715018a614610604578063726d20fe1461060e5780637ecebe001461063e57610327565b80634d9660721461051a5780634f02c4201461054a57806351f232ef146105685780636352211e146105865780636e8f624b146105b657806370a08231146105d457610327565b806309f0ef65116102e457806323b872dd116102be57806323b872dd14610492578063313ce567146104c25780633644e515146104e057806342842e0e146104fe57610327565b806309f0ef651461042857806318160ddd1461045857806318d217c31461047657610327565b806301ffc9a71461032c57806302519da31461035c57806306fdde031461038c578063081812fc146103aa578063095ea7b3146103da57806309674eb01461040a575b600080fd5b61034660048036038101906103419190614577565b610a88565b60405161035391906145bf565b60405180910390f35b61037660048036038101906103719190614638565b610b5a565b604051610383919061467e565b60405180910390f35b610394610ba3565b6040516103a19190614729565b60405180910390f35b6103c460048036038101906103bf9190614777565b610c31565b6040516103d191906147b3565b60405180910390f35b6103f460048036038101906103ef91906147ce565b610c64565b60405161040191906145bf565b60405180910390f35b610412610c9f565b60405161041f919061467e565b60405180910390f35b610442600480360381019061043d9190614638565b610cb0565b60405161044f91906145bf565b60405180910390f35b610460610d3c565b60405161046d919061467e565b60405180910390f35b610490600480360381019061048b9190614943565b610d42565b005b6104ac60048036038101906104a7919061498c565b610d5d565b6040516104b991906145bf565b60405180910390f35b6104ca610d9b565b6040516104d791906149fb565b60405180910390f35b6104e8610dbf565b6040516104f59190614a2f565b60405180910390f35b6105186004803603810190610513919061498c565b610e1c565b005b610534600480360381019061052f91906147ce565b610e3c565b60405161054191906145bf565b60405180910390f35b610552610f93565b60405161055f919061467e565b60405180910390f35b610570610f99565b60405161057d919061467e565b60405180910390f35b6105a0600480360381019061059b9190614777565b610f9f565b6040516105ad91906147b3565b60405180910390f35b6105be611056565b6040516105cb919061467e565b60405180910390f35b6105ee60048036038101906105e99190614638565b61107a565b6040516105fb919061467e565b60405180910390f35b61060c611092565b005b61062860048036038101906106239190614b3e565b6110a6565b60405161063591906145bf565b60405180910390f35b61065860048036038101906106539190614638565b611123565b604051610665919061467e565b60405180910390f35b61067661113b565b60405161068391906145bf565b60405180910390f35b61069461114e565b6040516106a1919061467e565b60405180910390f35b6106c460048036038101906106bf9190614bd9565b611158565b005b6106e060048036038101906106db9190614c06565b611165565b005b6106ea611232565b6040516106f791906147b3565b60405180910390f35b61070861125b565b604051610715919061467e565b60405180910390f35b610726611261565b6040516107339190614729565b60405180910390f35b6107446112ef565b604051610751919061467e565b60405180910390f35b610774600480360381019061076f9190614c62565b611313565b005b61077e611476565b60405161078b9190614a2f565b60405180910390f35b6107ae60048036038101906107a991906147ce565b61147c565b6040516107bb91906145bf565b60405180910390f35b6107de60048036038101906107d99190614638565b6114f6565b6040516107eb9190614d60565b60405180910390f35b61080e60048036038101906108099190614638565b61158d565b60405161081b919061467e565b60405180910390f35b61083e60048036038101906108399190614e23565b6115d9565b005b61084861174f565b604051610855919061467e565b60405180910390f35b61087860048036038101906108739190614c62565b611759565b005b610894600480360381019061088f9190614777565b61176f565b6040516108a19190614729565b60405180910390f35b6108c460048036038101906108bf9190614ed2565b611d00565b005b6108ce61208d565b6040516108db9190614729565b60405180910390f35b6108fe60048036038101906108f9919061498c565b61211b565b60405161090b91906145bf565b60405180910390f35b61091c612332565b005b61093860048036038101906109339190614f74565b612344565b604051610945919061467e565b60405180910390f35b6109686004803603810190610963919061498c565b612369565b005b610984600480360381019061097f91906147ce565b612682565b005b6109a0600480360381019061099b9190614943565b61283b565b005b6109bc60048036038101906109b79190614f74565b612856565b6040516109c991906145bf565b60405180910390f35b6109da612885565b6040516109e79190614729565b60405180910390f35b610a0a6004803603810190610a059190614638565b612913565b005b610a266004803603810190610a219190614638565b612999565b604051610a3391906145bf565b60405180910390f35b610a566004803603810190610a519190614fb4565b6129b9565b604051610a639190614d60565b60405180910390f35b610a866004803603810190610a819190614ff4565b612a75565b005b60007fcaf91ff5000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b5357507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60038054610bb090615050565b80601f0160208091040260200160405190810160405280929190818152602001828054610bdc90615050565b8015610c295780601f10610bfe57610100808354040283529160200191610c29565b820191906000526020600020905b815481529060010190602001808311610c0c57829003601f168201915b505050505081565b60096020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610c6f82612a89565b15610c8357610c7e8383612682565b610c94565b610c8d8383610e3c565b9050610c99565b600190505b92915050565b6000610cab6001612ae1565b905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480610d355750600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b9050919050565b60055481565b610d4a612b3f565b8060129081610d59919061522d565b5050565b6000610d6882612a89565b15610d7d57610d78848484612369565b610d8f565b610d8884848461211b565b9050610d94565b600190505b9392505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60007f00000000000000000000000000000000000000000000000000000000000000004614610df557610df0612bc6565b610e17565b7f00000000000000000000000000000000000000000000000000000000000000005b905090565b610e37838383604051806020016040528060008152506115d9565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ea3576040517f5461585f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610f81919061467e565b60405180910390a36001905092915050565b60065481565b60145481565b6000610faa82612c52565b9050610fb582612a89565b610feb576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611051576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b7f800000000000000000000000000000000000000000000000000000000000000081565b60076020528060005260406000206000915090505481565b61109a612b3f565b6110a46000612c8a565b565b60008083836040516020016110bc9291906152ff565b604051602081830303815290604052805190602001206040516020016110e29190615349565b6040516020818303038152906040528051906020012090506111078560105483612d4e565b1561111657600191505061111c565b60009150505b9392505050565b600e6020528060005260406000206000915090505481565b600f60009054906101000a900460ff1681565b6000600554905090565b6111623382612d65565b50565b6000801b60105414806111855750600f60009054906101000a900460ff16155b156111bc576040517f2a47e63200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060145411611201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f8906153b0565b60405180910390fd5b61120b8282612e44565b806014600082825461121d91906153ff565b9250508190555061122e3382612eaa565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60155481565b6004805461126e90615050565b80601f016020809104026020016040519081016040528092919081815260200182805461129a90615050565b80156112e75780601f106112bc576101008083540402835291602001916112e7565b820191906000526020600020905b8154815290600101906020018083116112ca57829003601f168201915b505050505081565b7f000000000000000000000000000000000000000000000000000000000000000081565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611379576040517fccea9e6f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161146a91906145bf565b60405180910390a35050565b60105481565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036114e3576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6114ee338484612f88565b905092915050565b6060600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561158157602002820191906000526020600020905b81548152602001906001019080831161156d575b50505050509050919050565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050919050565b6115e282612a89565b611618576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611623848484610d5d565b5060008373ffffffffffffffffffffffffffffffffffffffff163b14158015611712575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168373ffffffffffffffffffffffffffffffffffffffff1663150b7a02338786866040518563ffffffff1660e01b81526004016116ad9493929190615488565b6020604051808303816000875af11580156116cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f091906154e9565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b15611749576040517f3da6393100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6000600654905090565b611761612b3f565b61176b8282612d65565b5050565b606060006013805461178090615050565b905011156117ba57601361179383613388565b6040516020016117a49291906155d5565b6040516020818303038152906040529050611cfb565b6117c382612a89565b611802576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f990615645565b60405180910390fd5b6000826040516020016118159190615686565b6040516020818303038152906040528051906020012060f81c9050606080606060007f80000000000000000000000000000000000000000000000000000000000000008761186391906153ff565b905060648560ff161161191d576040518060400160405280600781526020017f5265642e6769660000000000000000000000000000000000000000000000000081525093506040518060400160405280600381526020017f526564000000000000000000000000000000000000000000000000000000000081525092506040518060400160405280600181526020017f31000000000000000000000000000000000000000000000000000000000000008152509150611bfd565b60aa8560ff16116119d5576040518060400160405280600a81526020017f4f72616e67652e6769660000000000000000000000000000000000000000000081525093506040518060400160405280600681526020017f4f72616e6765000000000000000000000000000000000000000000000000000081525092506040518060400160405280600181526020017f32000000000000000000000000000000000000000000000000000000000000008152509150611bfc565b60d28560ff1611611a8d576040518060400160405280600881526020017f50696e6b2e67696600000000000000000000000000000000000000000000000081525093506040518060400160405280600481526020017f50696e6b0000000000000000000000000000000000000000000000000000000081525092506040518060400160405280600181526020017f33000000000000000000000000000000000000000000000000000000000000008152509150611bfb565b60f08560ff1611611b45576040518060400160405280600981526020017f477265656e2e676966000000000000000000000000000000000000000000000081525093506040518060400160405280600581526020017f477265656e00000000000000000000000000000000000000000000000000000081525092506040518060400160405280600181526020017f34000000000000000000000000000000000000000000000000000000000000008152509150611bfa565b60ff8560ff1611611bf9576040518060400160405280600881526020017f426c75652e67696600000000000000000000000000000000000000000000000081525093506040518060400160405280600481526020017f426c75650000000000000000000000000000000000000000000000000000000081525092506040518060400160405280600181526020017f350000000000000000000000000000000000000000000000000000000000000081525091505b5b5b5b5b6000611c0882613388565b601286604051602001611c1d939291906157f7565b604051602081830303815290604052905060008484604051602001611c439291906159a7565b604051602081830303815290604052905060006040518060400160405280600481526020017f227d5d7d0000000000000000000000000000000000000000000000000000000081525090508282604051602001611ca19291906159ec565b60405160208183030381529060405281604051602001611cc29291906159ec565b604051602081830303815290604052604051602001611ce19190615a36565b604051602081830303815290604052985050505050505050505b919050565b42841015611d3a576040517f05787bdf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611d4385612a89565b15611d7a576040517f1f3e0de800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1603611de0576040517f5461585f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006001611dec610dbf565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98a8a8a600e60008f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190600101919050558b604051602001611e7496959493929190615a5c565b60405160208183030381529060405280519060200120604051602001611e9b929190615b09565b6040516020818303038152906040528051906020012085858560405160008152602001604052604051611ed19493929190615b40565b6020604051602081039080840390855afa158015611ef3573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161480611f6657508773ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b15611f9d576040517f815e1d6400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258760405161207c919061467e565b60405180910390a350505050505050565b6013805461209a90615050565b80601f01602080910402602001604051908101604052809291908181526020018280546120c690615050565b80156121135780601f106120e857610100808354040283529160200191612113565b820191906000526020600020905b8154815290600101906020018083116120f657829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612182576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036121e8576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461231d57828161229c91906153ff565b600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b612328858585612f88565b9150509392505050565b61233a612b3f565b612342613456565b565b6008602052816000526040600020602052806000526040600020600091509150505481565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036123cf576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612435576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61243e81612c52565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146124a2576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580156125655750600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156125d057506009600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15612607576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61261082610cb0565b15612647576040517f5ce7539700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61267283837f0000000000000000000000000000000000000000000000000000000000000000613482565b61267d8383836135e2565b505050565b600061268d82612c52565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580156127525750600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612789576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826009600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b612843612b3f565b8060139081612852919061522d565b5050565b600a6020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b6012805461289290615050565b80601f01602080910402602001604051908101604052809291908181526020018280546128be90615050565b801561290b5780601f106128e05761010080835404028352916020019161290b565b820191906000526020600020905b8154815290600101906020018083116128ee57829003601f168201915b505050505081565b61291b612b3f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361298d5760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161298491906147b3565b60405180910390fd5b61299681612c8a565b50565b60116020528060005260406000206000915054906101000a900460ff1681565b606060008267ffffffffffffffff8111156129d7576129d6614818565b5b604051908082528060200260200182016040528015612a055781602001602082028036833780820191505090505b50905060008490505b8385612a1a9190615b85565b811015612a6a57612a3581600161395a90919063ffffffff16565b828683612a4291906153ff565b81518110612a5357612a52615bb9565b5b602002602001018181525050806001019050612a0e565b508091505092915050565b612a7d612b3f565b612a8681613a01565b50565b60007f800000000000000000000000000000000000000000000000000000000000000082118015612ada57507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214155b9050919050565b60008160000160009054906101000a90046fffffffffffffffffffffffffffffffff168260000160109054906101000a90046fffffffffffffffffffffffffffffffff16036fffffffffffffffffffffffffffffffff169050919050565b612b47613a0b565b73ffffffffffffffffffffffffffffffffffffffff16612b65611232565b73ffffffffffffffffffffffffffffffffffffffff1614612bc457612b88613a0b565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401612bbb91906147b3565b60405180910390fd5b565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6003604051612bf89190615c8b565b60405180910390207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc64630604051602001612c37959493929190615ca2565b60405160208183030381529060405280519060200120905090565b600080600b600084815260200190815260200160002054905073ffffffffffffffffffffffffffffffffffffffff8116915050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600082612d5b8584613a13565b1490509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612dcb576040517fa41e3d3f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015612ddf57612dda82613a69565b612de9565b612de882613a9a565b5b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000801b6010541480612e645750600f60009054906101000a900460ff16155b15612e9b576040517f2a47e63200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612ea6823383613b0f565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612f10576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f800000000000000000000000000000000000000000000000000000000000000081600554612f3f9190615b85565b1115612f77576040517f303b682f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612f8360008383612f88565b505050565b600080612f9485610b5a565b90506000612fa185610b5a565b9050612fae868686613482565b6000612fb987610cb0565b90506000612fc687610cb0565b9050818015612fd25750805b6133795781156130a75760007f00000000000000000000000000000000000000000000000000000000000000008461300a9190615d24565b7f0000000000000000000000000000000000000000000000000000000000000000600760008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546130759190615d24565b61307f91906153ff565b905060005b818110156130a05761309589613c31565b806001019050613084565b5050613378565b80156131785760007f0000000000000000000000000000000000000000000000000000000000000000600760008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461311a9190615d24565b7f0000000000000000000000000000000000000000000000000000000000000000866131469190615d24565b61315091906153ff565b905060005b81811015613171576131668a613ddd565b806001019050613155565b5050613377565b60007f0000000000000000000000000000000000000000000000000000000000000000876131a69190615d24565b905060005b8181101561327e5760006001600c60008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905061320491906153ff565b90506000600c60008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811061325957613258615bb9565b5b906000526020600020015490506132718c8c836135e2565b82600101925050506131ab565b50807f00000000000000000000000000000000000000000000000000000000000000006132aa8b610b5a565b6132b49190615d24565b7f0000000000000000000000000000000000000000000000000000000000000000876132e09190615d24565b6132ea91906153ff565b11156132fa576132f989613ddd565b5b807f0000000000000000000000000000000000000000000000000000000000000000856133279190615d24565b7f00000000000000000000000000000000000000000000000000000000000000006133518b610b5a565b61335b9190615d24565b61336591906153ff565b11156133755761337488613c31565b5b505b5b5b60019450505050509392505050565b60606000600161339784613f15565b01905060008167ffffffffffffffff8111156133b6576133b5614818565b5b6040519080825280601f01601f1916602001820160405280156133e85781602001600182028036833780820191505090505b509050600082602001820190505b60011561344b578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161343f5761343e615cf5565b5b049450600085036133f6575b819350505050919050565b600f60009054906101000a900460ff1615600f60006101000a81548160ff021916908315150217905550565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036134d45780600560008282546134c89190615b85565b9250508190555061352b565b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461352391906153ff565b925050819055505b80600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516135d5919061467e565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146137e1576009600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506136dc91906153ff565b815481106136ed576136ec615bb9565b5b9060005260206000200154905081811461377a57600061370c83614068565b905081600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106137605761375f615bb9565b5b9060005260206000200181905550613778828261408d565b505b600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806137c9576137c8615d55565b5b60019003818190600052602060002001600090559055505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146138e25761381f8183614160565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190806001815401808255809150506001900390600052602060002001600090919091909150556138dd816001600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506138d891906153ff565b61408d565b6138fa565b600b6000828152602001908152602001600020600090555b808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061396583612ae1565b821061399d576040517f580821e700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826001016000838560000160009054906101000a90046fffffffffffffffffffffffffffffffff16016fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b8060108190555050565b600033905090565b60008082905060005b8451811015613a5e57613a4982868381518110613a3c57613a3b615bb9565b5b60200260200101516141d2565b91508080613a5690615d84565b915050613a1c565b508091505092915050565b6000613a748261158d565b905060005b81811015613a9557613a8a83613ddd565b806001019050613a79565b505050565b60007f0000000000000000000000000000000000000000000000000000000000000000613ac683610b5a565b613ad09190615d24565b90506000613add8361158d565b905060005b8183613aee91906153ff565b811015613b0957613afe84613c31565b806001019050613ae2565b50505050565b613b1a8383836110a6565b613b50576040517f7745886e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615613bd4576040517fe4ca4c0b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001601160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613c97576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000613ca360016141fd565b613cb857613cb1600161426d565b9050613d5a565b600660008154613cc790615d84565b919050819055507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60065403613d29576040517f303b682f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006547f8000000000000000000000000000000000000000000000000000000000000000613d579190615b85565b90505b6000613d6582612c52565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614613dcd576040517f23369fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613dd88184846135e2565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613e43576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050613ed391906153ff565b81548110613ee457613ee3615bb9565b5b90600052602060002001549050613efd826000836135e2565b613f118160016143d190919063ffffffff16565b5050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613f73577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613f6957613f68615cf5565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613fb0576d04ee2d6d415b85acef81000000008381613fa657613fa5615cf5565b5b0492506020810190505b662386f26fc100008310613fdf57662386f26fc100008381613fd557613fd4615cf5565b5b0492506010810190505b6305f5e1008310614008576305f5e1008381613ffe57613ffd615cf5565b5b0492506008810190505b612710831061402d57612710838161402357614022615cf5565b5b0492506004810190505b60648310614050576064838161404657614045615cf5565b5b0492506002810190505b600a831061405f576001810190505b80915050919050565b600080600b60008481526020019081526020016000205490508060a01c915050919050565b6000600b600084815260200190815260200160002054905060a07fffffffffffffffffffffffff0000000000000000000000000000000000000000901c821115614103576040517ffcb3438c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffff00000000000000000000000000000000000000008260a01b1673ffffffffffffffffffffffffffffffffffffffff821601905080600b600085815260200190815260200160002081905550505050565b6000600b600084815260200190815260200160002054905073ffffffffffffffffffffffffffffffffffffffff82167fffffffffffffffffffffffff0000000000000000000000000000000000000000821601905080600b600085815260200190815260200160002081905550505050565b60008183106141ea576141e582846144f4565b6141f5565b6141f483836144f4565b5b905092915050565b60008160000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168260000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16149050919050565b6000808260000160109054906101000a90046fffffffffffffffffffffffffffffffff1690508260000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16816fffffffffffffffffffffffffffffffff1603614310576040517f75e52f4f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600190039050826001016000826fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152602001908152602001600020549150826001016000826fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002060009055808360000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555050919050565b600060018360000160009054906101000a90046fffffffffffffffffffffffffffffffff160390508260000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16816fffffffffffffffffffffffffffffffff1603614476576040517f8acb5f2700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81836001016000836fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808360000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550505050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6145548161451f565b811461455f57600080fd5b50565b6000813590506145718161454b565b92915050565b60006020828403121561458d5761458c614515565b5b600061459b84828501614562565b91505092915050565b60008115159050919050565b6145b9816145a4565b82525050565b60006020820190506145d460008301846145b0565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000614605826145da565b9050919050565b614615816145fa565b811461462057600080fd5b50565b6000813590506146328161460c565b92915050565b60006020828403121561464e5761464d614515565b5b600061465c84828501614623565b91505092915050565b6000819050919050565b61467881614665565b82525050565b6000602082019050614693600083018461466f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156146d35780820151818401526020810190506146b8565b60008484015250505050565b6000601f19601f8301169050919050565b60006146fb82614699565b61470581856146a4565b93506147158185602086016146b5565b61471e816146df565b840191505092915050565b6000602082019050818103600083015261474381846146f0565b905092915050565b61475481614665565b811461475f57600080fd5b50565b6000813590506147718161474b565b92915050565b60006020828403121561478d5761478c614515565b5b600061479b84828501614762565b91505092915050565b6147ad816145fa565b82525050565b60006020820190506147c860008301846147a4565b92915050565b600080604083850312156147e5576147e4614515565b5b60006147f385828601614623565b925050602061480485828601614762565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b614850826146df565b810181811067ffffffffffffffff8211171561486f5761486e614818565b5b80604052505050565b600061488261450b565b905061488e8282614847565b919050565b600067ffffffffffffffff8211156148ae576148ad614818565b5b6148b7826146df565b9050602081019050919050565b82818337600083830152505050565b60006148e66148e184614893565b614878565b90508281526020810184848401111561490257614901614813565b5b61490d8482856148c4565b509392505050565b600082601f83011261492a5761492961480e565b5b813561493a8482602086016148d3565b91505092915050565b60006020828403121561495957614958614515565b5b600082013567ffffffffffffffff8111156149775761497661451a565b5b61498384828501614915565b91505092915050565b6000806000606084860312156149a5576149a4614515565b5b60006149b386828701614623565b93505060206149c486828701614623565b92505060406149d586828701614762565b9150509250925092565b600060ff82169050919050565b6149f5816149df565b82525050565b6000602082019050614a1060008301846149ec565b92915050565b6000819050919050565b614a2981614a16565b82525050565b6000602082019050614a446000830184614a20565b92915050565b600067ffffffffffffffff821115614a6557614a64614818565b5b602082029050602081019050919050565b600080fd5b614a8481614a16565b8114614a8f57600080fd5b50565b600081359050614aa181614a7b565b92915050565b6000614aba614ab584614a4a565b614878565b90508083825260208201905060208402830185811115614add57614adc614a76565b5b835b81811015614b065780614af28882614a92565b845260208401935050602081019050614adf565b5050509392505050565b600082601f830112614b2557614b2461480e565b5b8135614b35848260208601614aa7565b91505092915050565b600080600060608486031215614b5757614b56614515565b5b600084013567ffffffffffffffff811115614b7557614b7461451a565b5b614b8186828701614b10565b9350506020614b9286828701614623565b9250506040614ba386828701614762565b9150509250925092565b614bb6816145a4565b8114614bc157600080fd5b50565b600081359050614bd381614bad565b92915050565b600060208284031215614bef57614bee614515565b5b6000614bfd84828501614bc4565b91505092915050565b60008060408385031215614c1d57614c1c614515565b5b600083013567ffffffffffffffff811115614c3b57614c3a61451a565b5b614c4785828601614b10565b9250506020614c5885828601614762565b9150509250929050565b60008060408385031215614c7957614c78614515565b5b6000614c8785828601614623565b9250506020614c9885828601614bc4565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b614cd781614665565b82525050565b6000614ce98383614cce565b60208301905092915050565b6000602082019050919050565b6000614d0d82614ca2565b614d178185614cad565b9350614d2283614cbe565b8060005b83811015614d53578151614d3a8882614cdd565b9750614d4583614cf5565b925050600181019050614d26565b5085935050505092915050565b60006020820190508181036000830152614d7a8184614d02565b905092915050565b600067ffffffffffffffff821115614d9d57614d9c614818565b5b614da6826146df565b9050602081019050919050565b6000614dc6614dc184614d82565b614878565b905082815260208101848484011115614de257614de1614813565b5b614ded8482856148c4565b509392505050565b600082601f830112614e0a57614e0961480e565b5b8135614e1a848260208601614db3565b91505092915050565b60008060008060808587031215614e3d57614e3c614515565b5b6000614e4b87828801614623565b9450506020614e5c87828801614623565b9350506040614e6d87828801614762565b925050606085013567ffffffffffffffff811115614e8e57614e8d61451a565b5b614e9a87828801614df5565b91505092959194509250565b614eaf816149df565b8114614eba57600080fd5b50565b600081359050614ecc81614ea6565b92915050565b600080600080600080600060e0888a031215614ef157614ef0614515565b5b6000614eff8a828b01614623565b9750506020614f108a828b01614623565b9650506040614f218a828b01614762565b9550506060614f328a828b01614762565b9450506080614f438a828b01614ebd565b93505060a0614f548a828b01614a92565b92505060c0614f658a828b01614a92565b91505092959891949750929550565b60008060408385031215614f8b57614f8a614515565b5b6000614f9985828601614623565b9250506020614faa85828601614623565b9150509250929050565b60008060408385031215614fcb57614fca614515565b5b6000614fd985828601614762565b9250506020614fea85828601614762565b9150509250929050565b60006020828403121561500a57615009614515565b5b600061501884828501614a92565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061506857607f821691505b60208210810361507b5761507a615021565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026150e37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826150a6565b6150ed86836150a6565b95508019841693508086168417925050509392505050565b6000819050919050565b600061512a61512561512084614665565b615105565b614665565b9050919050565b6000819050919050565b6151448361510f565b61515861515082615131565b8484546150b3565b825550505050565b600090565b61516d615160565b61517881848461513b565b505050565b5b8181101561519c57615191600082615165565b60018101905061517e565b5050565b601f8211156151e1576151b281615081565b6151bb84615096565b810160208510156151ca578190505b6151de6151d685615096565b83018261517d565b50505b505050565b600082821c905092915050565b6000615204600019846008026151e6565b1980831691505092915050565b600061521d83836151f3565b9150826002028217905092915050565b61523682614699565b67ffffffffffffffff81111561524f5761524e614818565b5b6152598254615050565b6152648282856151a0565b600060209050601f8311600181146152975760008415615285578287015190505b61528f8582615211565b8655506152f7565b601f1984166152a586615081565b60005b828110156152cd578489015182556001820191506020850194506020810190506152a8565b868310156152ea57848901516152e6601f8916826151f3565b8355505b6001600288020188555050505b505050505050565b600060408201905061531460008301856147a4565b615321602083018461466f565b9392505050565b6000819050919050565b61534361533e82614a16565b615328565b82525050565b60006153558284615332565b60208201915081905092915050565b7f41697264726f7073206861766520616c6c206265656e2077697468647261776e600082015250565b600061539a6020836146a4565b91506153a582615364565b602082019050919050565b600060208201905081810360008301526153c98161538d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061540a82614665565b915061541583614665565b925082820390508181111561542d5761542c6153d0565b5b92915050565b600081519050919050565b600082825260208201905092915050565b600061545a82615433565b615464818561543e565b93506154748185602086016146b5565b61547d816146df565b840191505092915050565b600060808201905061549d60008301876147a4565b6154aa60208301866147a4565b6154b7604083018561466f565b81810360608301526154c9818461544f565b905095945050505050565b6000815190506154e38161454b565b92915050565b6000602082840312156154ff576154fe614515565b5b600061550d848285016154d4565b91505092915050565b600081905092915050565b6000815461552e81615050565b6155388186615516565b9450600182166000811461555357600181146155685761559b565b60ff198316865281151582028601935061559b565b61557185615081565b60005b8381101561559357815481890152600182019150602081019050615574565b838801955050505b50505092915050565b60006155af82614699565b6155b98185615516565b93506155c98185602086016146b5565b80840191505092915050565b60006155e18285615521565b91506155ed82846155a4565b91508190509392505050565b7f496e76616c696420746f6b656e20696400000000000000000000000000000000600082015250565b600061562f6010836146a4565b915061563a826155f9565b602082019050919050565b6000602082019050818103600083015261565e81615622565b9050919050565b6000819050919050565b61568061567b82614665565b615665565b82525050565b6000615692828461566f565b60208201915081905092915050565b7f7b226e616d65223a2022436172626f6e20437261746500000000000000000000815250565b7f2023000000000000000000000000000000000000000000000000000000000000815250565b7f222c226465736372697074696f6e223a224120636f6c6c656374696f6e206f6660008201527f2031302c303030204552433430342052574120436172626f6e2043726174657360208201527f2c20746865206669727374206f6620697473206b696e642e205768617420646f60408201527f20796f75207468696e6b20697320696e736964653f222c2265787465726e616c60608201527f5f75726c223a2268747470733a2f2f65636f73617069656e732e78797a2f6c6f60808201527f67696e222c22696d616765223a2200000000000000000000000000000000000060a082015250565b60006157e160ae83615516565b91506157ec826156ed565b60ae82019050919050565b6000615802826156a1565b601682019150615811826156c7565b60028201915061582182866155a4565b915061582c826157d4565b91506158388285615521565b915061584482846155a4565b9150819050949350505050565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a224760008201527f6c6f77222c2276616c7565223a22000000000000000000000000000000000000602082015250565b60006158ad602e83615516565b91506158b882615851565b602e82019050919050565b7f227d2c7b2274726169745f74797065223a22436f6e74656e7473222c2276616c60008201527f7565223a22000000000000000000000000000000000000000000000000000000602082015250565b600061591f602583615516565b915061592a826158c3565b602582019050919050565b7f227d2c7b2274726169745f74797065223a2245636f706f696e7473222c22766160008201527f6c7565223a2235302c3030300000000000000000000000000000000000000000602082015250565b6000615991602c83615516565b915061599c82615935565b602c82019050919050565b60006159b2826158a0565b91506159be82856155a4565b91506159c982615912565b91506159d582846155a4565b91506159e082615984565b91508190509392505050565b60006159f882856155a4565b9150615a0482846155a4565b91508190509392505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c0000000000815250565b6000615a4182615a10565b601b82019150615a5182846155a4565b915081905092915050565b600060c082019050615a716000830189614a20565b615a7e60208301886147a4565b615a8b60408301876147a4565b615a98606083018661466f565b615aa5608083018561466f565b615ab260a083018461466f565b979650505050505050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b6000615af3600283615516565b9150615afe82615abd565b600282019050919050565b6000615b1482615ae6565b9150615b208285615332565b602082019150615b308284615332565b6020820191508190509392505050565b6000608082019050615b556000830187614a20565b615b6260208301866149ec565b615b6f6040830185614a20565b615b7c6060830184614a20565b95945050505050565b6000615b9082614665565b9150615b9b83614665565b9250828201905080821115615bb357615bb26153d0565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b60008190508160005260206000209050919050565b60008154615c1581615050565b615c1f8186615be8565b94506001821660008114615c3a5760018114615c4f57615c82565b60ff1983168652811515820286019350615c82565b615c5885615bf3565b60005b83811015615c7a57815481890152600182019150602081019050615c5b565b838801955050505b50505092915050565b6000615c978284615c08565b915081905092915050565b600060a082019050615cb76000830188614a20565b615cc46020830187614a20565b615cd16040830186614a20565b615cde606083018561466f565b615ceb60808301846147a4565b9695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000615d2f82614665565b9150615d3a83614665565b925082615d4a57615d49615cf5565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6000615d8f82614665565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203615dc157615dc06153d0565b5b60018201905091905056fea26469706673582212205993c76c2b19bb3991212f864c3cc2630b6bae88b99972c22bec79d6c4e1289364736f6c63430008140033000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000007d00000000000000000000000001585e6d3314ed64baf4323608b4bf702a5ff8f7c0000000000000000000000001585e6d3314ed64baf4323608b4bf702a5ff8f7c0000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000d436172626f6e2043726174657300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000443415242000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d506738634c3979666d5735484b37753179757661326a424c393270546f4437757067645038453431523466702f00000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103275760003560e01c80638da5cb5b116101b8578063d505accf11610104578063e0df5b6f116100a2578063f2fde38b1161007c578063f2fde38b146109f0578063f4cdda3614610a0c578063f780bc1a14610a3c578063fb4bcd4f14610a6c57610327565b8063e0df5b6f14610986578063e985e9c5146109a2578063f28ca1dd146109d257610327565b8063dc1a9273116100de578063dc1a927314610914578063dd62ed3e1461091e578063dd6376991461094e578063dfabc0331461096a57610327565b8063d505accf146108aa578063d547cfb7146108c6578063d96ca0b9146108e457610327565b8063a9059cbb11610171578063b88d4fde1161014b578063b88d4fde14610824578063c5ab3ba614610840578063c6e672b91461085e578063c87b56dd1461087a57610327565b8063a9059cbb14610794578063b1ab9317146107c4578063b3f9ea34146107f457610327565b80638da5cb5b146106e2578063922c36c31461070057806395d89b411461071e578063976a84351461073c578063a22cb4651461075a578063a5ce30d21461077657610327565b80634d96607211610277578063715018a61161023057806383443c521161020a57806383443c521461066e57806389fb4c661461068c5780638a696e50146106aa5780638b2d8dec146106c657610327565b8063715018a614610604578063726d20fe1461060e5780637ecebe001461063e57610327565b80634d9660721461051a5780634f02c4201461054a57806351f232ef146105685780636352211e146105865780636e8f624b146105b657806370a08231146105d457610327565b806309f0ef65116102e457806323b872dd116102be57806323b872dd14610492578063313ce567146104c25780633644e515146104e057806342842e0e146104fe57610327565b806309f0ef651461042857806318160ddd1461045857806318d217c31461047657610327565b806301ffc9a71461032c57806302519da31461035c57806306fdde031461038c578063081812fc146103aa578063095ea7b3146103da57806309674eb01461040a575b600080fd5b61034660048036038101906103419190614577565b610a88565b60405161035391906145bf565b60405180910390f35b61037660048036038101906103719190614638565b610b5a565b604051610383919061467e565b60405180910390f35b610394610ba3565b6040516103a19190614729565b60405180910390f35b6103c460048036038101906103bf9190614777565b610c31565b6040516103d191906147b3565b60405180910390f35b6103f460048036038101906103ef91906147ce565b610c64565b60405161040191906145bf565b60405180910390f35b610412610c9f565b60405161041f919061467e565b60405180910390f35b610442600480360381019061043d9190614638565b610cb0565b60405161044f91906145bf565b60405180910390f35b610460610d3c565b60405161046d919061467e565b60405180910390f35b610490600480360381019061048b9190614943565b610d42565b005b6104ac60048036038101906104a7919061498c565b610d5d565b6040516104b991906145bf565b60405180910390f35b6104ca610d9b565b6040516104d791906149fb565b60405180910390f35b6104e8610dbf565b6040516104f59190614a2f565b60405180910390f35b6105186004803603810190610513919061498c565b610e1c565b005b610534600480360381019061052f91906147ce565b610e3c565b60405161054191906145bf565b60405180910390f35b610552610f93565b60405161055f919061467e565b60405180910390f35b610570610f99565b60405161057d919061467e565b60405180910390f35b6105a0600480360381019061059b9190614777565b610f9f565b6040516105ad91906147b3565b60405180910390f35b6105be611056565b6040516105cb919061467e565b60405180910390f35b6105ee60048036038101906105e99190614638565b61107a565b6040516105fb919061467e565b60405180910390f35b61060c611092565b005b61062860048036038101906106239190614b3e565b6110a6565b60405161063591906145bf565b60405180910390f35b61065860048036038101906106539190614638565b611123565b604051610665919061467e565b60405180910390f35b61067661113b565b60405161068391906145bf565b60405180910390f35b61069461114e565b6040516106a1919061467e565b60405180910390f35b6106c460048036038101906106bf9190614bd9565b611158565b005b6106e060048036038101906106db9190614c06565b611165565b005b6106ea611232565b6040516106f791906147b3565b60405180910390f35b61070861125b565b604051610715919061467e565b60405180910390f35b610726611261565b6040516107339190614729565b60405180910390f35b6107446112ef565b604051610751919061467e565b60405180910390f35b610774600480360381019061076f9190614c62565b611313565b005b61077e611476565b60405161078b9190614a2f565b60405180910390f35b6107ae60048036038101906107a991906147ce565b61147c565b6040516107bb91906145bf565b60405180910390f35b6107de60048036038101906107d99190614638565b6114f6565b6040516107eb9190614d60565b60405180910390f35b61080e60048036038101906108099190614638565b61158d565b60405161081b919061467e565b60405180910390f35b61083e60048036038101906108399190614e23565b6115d9565b005b61084861174f565b604051610855919061467e565b60405180910390f35b61087860048036038101906108739190614c62565b611759565b005b610894600480360381019061088f9190614777565b61176f565b6040516108a19190614729565b60405180910390f35b6108c460048036038101906108bf9190614ed2565b611d00565b005b6108ce61208d565b6040516108db9190614729565b60405180910390f35b6108fe60048036038101906108f9919061498c565b61211b565b60405161090b91906145bf565b60405180910390f35b61091c612332565b005b61093860048036038101906109339190614f74565b612344565b604051610945919061467e565b60405180910390f35b6109686004803603810190610963919061498c565b612369565b005b610984600480360381019061097f91906147ce565b612682565b005b6109a0600480360381019061099b9190614943565b61283b565b005b6109bc60048036038101906109b79190614f74565b612856565b6040516109c991906145bf565b60405180910390f35b6109da612885565b6040516109e79190614729565b60405180910390f35b610a0a6004803603810190610a059190614638565b612913565b005b610a266004803603810190610a219190614638565b612999565b604051610a3391906145bf565b60405180910390f35b610a566004803603810190610a519190614fb4565b6129b9565b604051610a639190614d60565b60405180910390f35b610a866004803603810190610a819190614ff4565b612a75565b005b60007fcaf91ff5000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b5357507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6000600760008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60038054610bb090615050565b80601f0160208091040260200160405190810160405280929190818152602001828054610bdc90615050565b8015610c295780601f10610bfe57610100808354040283529160200191610c29565b820191906000526020600020905b815481529060010190602001808311610c0c57829003601f168201915b505050505081565b60096020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610c6f82612a89565b15610c8357610c7e8383612682565b610c94565b610c8d8383610e3c565b9050610c99565b600190505b92915050565b6000610cab6001612ae1565b905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480610d355750600d60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b9050919050565b60055481565b610d4a612b3f565b8060129081610d59919061522d565b5050565b6000610d6882612a89565b15610d7d57610d78848484612369565b610d8f565b610d8884848461211b565b9050610d94565b600190505b9392505050565b7f000000000000000000000000000000000000000000000000000000000000001281565b60007f00000000000000000000000000000000000000000000000000000000000000014614610df557610df0612bc6565b610e17565b7f2073a1c9d06215820d17e3c24330b7a73ff2f056d44730002b278608343ded105b905090565b610e37838383604051806020016040528060008152506115d9565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610ea3576040517f5461585f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610f81919061467e565b60405180910390a36001905092915050565b60065481565b60145481565b6000610faa82612c52565b9050610fb582612a89565b610feb576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611051576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b7f800000000000000000000000000000000000000000000000000000000000000081565b60076020528060005260406000206000915090505481565b61109a612b3f565b6110a46000612c8a565b565b60008083836040516020016110bc9291906152ff565b604051602081830303815290604052805190602001206040516020016110e29190615349565b6040516020818303038152906040528051906020012090506111078560105483612d4e565b1561111657600191505061111c565b60009150505b9392505050565b600e6020528060005260406000206000915090505481565b600f60009054906101000a900460ff1681565b6000600554905090565b6111623382612d65565b50565b6000801b60105414806111855750600f60009054906101000a900460ff16155b156111bc576040517f2a47e63200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600060145411611201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f8906153b0565b60405180910390fd5b61120b8282612e44565b806014600082825461121d91906153ff565b9250508190555061122e3382612eaa565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60155481565b6004805461126e90615050565b80601f016020809104026020016040519081016040528092919081815260200182805461129a90615050565b80156112e75780601f106112bc576101008083540402835291602001916112e7565b820191906000526020600020905b8154815290600101906020018083116112ca57829003601f168201915b505050505081565b7f0000000000000000000000000000000000000000000000000de0b6b3a764000081565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611379576040517fccea9e6f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161146a91906145bf565b60405180910390a35050565b60105481565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036114e3576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6114ee338484612f88565b905092915050565b6060600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548060200260200160405190810160405280929190818152602001828054801561158157602002820191906000526020600020905b81548152602001906001019080831161156d575b50505050509050919050565b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490509050919050565b6115e282612a89565b611618576040517f3f6cc76800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611623848484610d5d565b5060008373ffffffffffffffffffffffffffffffffffffffff163b14158015611712575063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168373ffffffffffffffffffffffffffffffffffffffff1663150b7a02338786866040518563ffffffff1660e01b81526004016116ad9493929190615488565b6020604051808303816000875af11580156116cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f091906154e9565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614155b15611749576040517f3da6393100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6000600654905090565b611761612b3f565b61176b8282612d65565b5050565b606060006013805461178090615050565b905011156117ba57601361179383613388565b6040516020016117a49291906155d5565b6040516020818303038152906040529050611cfb565b6117c382612a89565b611802576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f990615645565b60405180910390fd5b6000826040516020016118159190615686565b6040516020818303038152906040528051906020012060f81c9050606080606060007f80000000000000000000000000000000000000000000000000000000000000008761186391906153ff565b905060648560ff161161191d576040518060400160405280600781526020017f5265642e6769660000000000000000000000000000000000000000000000000081525093506040518060400160405280600381526020017f526564000000000000000000000000000000000000000000000000000000000081525092506040518060400160405280600181526020017f31000000000000000000000000000000000000000000000000000000000000008152509150611bfd565b60aa8560ff16116119d5576040518060400160405280600a81526020017f4f72616e67652e6769660000000000000000000000000000000000000000000081525093506040518060400160405280600681526020017f4f72616e6765000000000000000000000000000000000000000000000000000081525092506040518060400160405280600181526020017f32000000000000000000000000000000000000000000000000000000000000008152509150611bfc565b60d28560ff1611611a8d576040518060400160405280600881526020017f50696e6b2e67696600000000000000000000000000000000000000000000000081525093506040518060400160405280600481526020017f50696e6b0000000000000000000000000000000000000000000000000000000081525092506040518060400160405280600181526020017f33000000000000000000000000000000000000000000000000000000000000008152509150611bfb565b60f08560ff1611611b45576040518060400160405280600981526020017f477265656e2e676966000000000000000000000000000000000000000000000081525093506040518060400160405280600581526020017f477265656e00000000000000000000000000000000000000000000000000000081525092506040518060400160405280600181526020017f34000000000000000000000000000000000000000000000000000000000000008152509150611bfa565b60ff8560ff1611611bf9576040518060400160405280600881526020017f426c75652e67696600000000000000000000000000000000000000000000000081525093506040518060400160405280600481526020017f426c75650000000000000000000000000000000000000000000000000000000081525092506040518060400160405280600181526020017f350000000000000000000000000000000000000000000000000000000000000081525091505b5b5b5b5b6000611c0882613388565b601286604051602001611c1d939291906157f7565b604051602081830303815290604052905060008484604051602001611c439291906159a7565b604051602081830303815290604052905060006040518060400160405280600481526020017f227d5d7d0000000000000000000000000000000000000000000000000000000081525090508282604051602001611ca19291906159ec565b60405160208183030381529060405281604051602001611cc29291906159ec565b604051602081830303815290604052604051602001611ce19190615a36565b604051602081830303815290604052985050505050505050505b919050565b42841015611d3a576040517f05787bdf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611d4385612a89565b15611d7a576040517f1f3e0de800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1603611de0576040517f5461585f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006001611dec610dbf565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98a8a8a600e60008f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190600101919050558b604051602001611e7496959493929190615a5c565b60405160208183030381529060405280519060200120604051602001611e9b929190615b09565b6040516020818303038152906040528051906020012085858560405160008152602001604052604051611ed19493929190615b40565b6020604051602081039080840390855afa158015611ef3573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161480611f6657508773ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b15611f9d576040517f815e1d6400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550508573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258760405161207c919061467e565b60405180910390a350505050505050565b6013805461209a90615050565b80601f01602080910402602001604051908101604052809291908181526020018280546120c690615050565b80156121135780601f106120e857610100808354040283529160200191612113565b820191906000526020600020905b8154815290600101906020018083116120f657829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1603612182576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036121e8576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461231d57828161229c91906153ff565b600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b612328858585612f88565b9150509392505050565b61233a612b3f565b612342613456565b565b6008602052816000526040600020602052806000526040600020600091509150505481565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036123cf576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612435576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61243e81612c52565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146124a2576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580156125655750600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b80156125d057506009600082815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614155b15612607576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61261082610cb0565b15612647576040517f5ce7539700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61267283837f0000000000000000000000000000000000000000000000000de0b6b3a7640000613482565b61267d8383836135e2565b505050565b600061268d82612c52565b90508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580156127525750600a60008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15612789576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826009600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b612843612b3f565b8060139081612852919061522d565b5050565b600a6020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b6012805461289290615050565b80601f01602080910402602001604051908101604052809291908181526020018280546128be90615050565b801561290b5780601f106128e05761010080835404028352916020019161290b565b820191906000526020600020905b8154815290600101906020018083116128ee57829003601f168201915b505050505081565b61291b612b3f565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361298d5760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161298491906147b3565b60405180910390fd5b61299681612c8a565b50565b60116020528060005260406000206000915054906101000a900460ff1681565b606060008267ffffffffffffffff8111156129d7576129d6614818565b5b604051908082528060200260200182016040528015612a055781602001602082028036833780820191505090505b50905060008490505b8385612a1a9190615b85565b811015612a6a57612a3581600161395a90919063ffffffff16565b828683612a4291906153ff565b81518110612a5357612a52615bb9565b5b602002602001018181525050806001019050612a0e565b508091505092915050565b612a7d612b3f565b612a8681613a01565b50565b60007f800000000000000000000000000000000000000000000000000000000000000082118015612ada57507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214155b9050919050565b60008160000160009054906101000a90046fffffffffffffffffffffffffffffffff168260000160109054906101000a90046fffffffffffffffffffffffffffffffff16036fffffffffffffffffffffffffffffffff169050919050565b612b47613a0b565b73ffffffffffffffffffffffffffffffffffffffff16612b65611232565b73ffffffffffffffffffffffffffffffffffffffff1614612bc457612b88613a0b565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401612bbb91906147b3565b60405180910390fd5b565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6003604051612bf89190615c8b565b60405180910390207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc64630604051602001612c37959493929190615ca2565b60405160208183030381529060405280519060200120905090565b600080600b600084815260200190815260200160002054905073ffffffffffffffffffffffffffffffffffffffff8116915050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600082612d5b8584613a13565b1490509392505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612dcb576040517fa41e3d3f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015612ddf57612dda82613a69565b612de9565b612de882613a9a565b5b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000801b6010541480612e645750600f60009054906101000a900460ff16155b15612e9b576040517f2a47e63200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612ea6823383613b0f565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612f10576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f800000000000000000000000000000000000000000000000000000000000000081600554612f3f9190615b85565b1115612f77576040517f303b682f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612f8360008383612f88565b505050565b600080612f9485610b5a565b90506000612fa185610b5a565b9050612fae868686613482565b6000612fb987610cb0565b90506000612fc687610cb0565b9050818015612fd25750805b6133795781156130a75760007f0000000000000000000000000000000000000000000000000de0b6b3a76400008461300a9190615d24565b7f0000000000000000000000000000000000000000000000000de0b6b3a7640000600760008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546130759190615d24565b61307f91906153ff565b905060005b818110156130a05761309589613c31565b806001019050613084565b5050613378565b80156131785760007f0000000000000000000000000000000000000000000000000de0b6b3a7640000600760008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461311a9190615d24565b7f0000000000000000000000000000000000000000000000000de0b6b3a7640000866131469190615d24565b61315091906153ff565b905060005b81811015613171576131668a613ddd565b806001019050613155565b5050613377565b60007f0000000000000000000000000000000000000000000000000de0b6b3a7640000876131a69190615d24565b905060005b8181101561327e5760006001600c60008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054905061320491906153ff565b90506000600c60008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020828154811061325957613258615bb9565b5b906000526020600020015490506132718c8c836135e2565b82600101925050506131ab565b50807f0000000000000000000000000000000000000000000000000de0b6b3a76400006132aa8b610b5a565b6132b49190615d24565b7f0000000000000000000000000000000000000000000000000de0b6b3a7640000876132e09190615d24565b6132ea91906153ff565b11156132fa576132f989613ddd565b5b807f0000000000000000000000000000000000000000000000000de0b6b3a7640000856133279190615d24565b7f0000000000000000000000000000000000000000000000000de0b6b3a76400006133518b610b5a565b61335b9190615d24565b61336591906153ff565b11156133755761337488613c31565b5b505b5b5b60019450505050509392505050565b60606000600161339784613f15565b01905060008167ffffffffffffffff8111156133b6576133b5614818565b5b6040519080825280601f01601f1916602001820160405280156133e85781602001600182028036833780820191505090505b509050600082602001820190505b60011561344b578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161343f5761343e615cf5565b5b049450600085036133f6575b819350505050919050565b600f60009054906101000a900460ff1615600f60006101000a81548160ff021916908315150217905550565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036134d45780600560008282546134c89190615b85565b9250508190555061352b565b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461352391906153ff565b925050819055505b80600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516135d5919061467e565b60405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146137e1576009600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506136dc91906153ff565b815481106136ed576136ec615bb9565b5b9060005260206000200154905081811461377a57600061370c83614068565b905081600c60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002082815481106137605761375f615bb9565b5b9060005260206000200181905550613778828261408d565b505b600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806137c9576137c8615d55565b5b60019003818190600052602060002001600090559055505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146138e25761381f8183614160565b600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190806001815401808255809150506001900390600052602060002001600090919091909150556138dd816001600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506138d891906153ff565b61408d565b6138fa565b600b6000828152602001908152602001600020600090555b808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061396583612ae1565b821061399d576040517f580821e700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b826001016000838560000160009054906101000a90046fffffffffffffffffffffffffffffffff16016fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b8060108190555050565b600033905090565b60008082905060005b8451811015613a5e57613a4982868381518110613a3c57613a3b615bb9565b5b60200260200101516141d2565b91508080613a5690615d84565b915050613a1c565b508091505092915050565b6000613a748261158d565b905060005b81811015613a9557613a8a83613ddd565b806001019050613a79565b505050565b60007f0000000000000000000000000000000000000000000000000de0b6b3a7640000613ac683610b5a565b613ad09190615d24565b90506000613add8361158d565b905060005b8183613aee91906153ff565b811015613b0957613afe84613c31565b806001019050613ae2565b50505050565b613b1a8383836110a6565b613b50576040517f7745886e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b601160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615613bd4576040517fe4ca4c0b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001601160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613c97576040517f9c8d2cd200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000613ca360016141fd565b613cb857613cb1600161426d565b9050613d5a565b600660008154613cc790615d84565b919050819055507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60065403613d29576040517f303b682f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006547f8000000000000000000000000000000000000000000000000000000000000000613d579190615b85565b90505b6000613d6582612c52565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614613dcd576040517f23369fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613dd88184846135e2565b505050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613e43576040517fddb5de5e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050613ed391906153ff565b81548110613ee457613ee3615bb9565b5b90600052602060002001549050613efd826000836135e2565b613f118160016143d190919063ffffffff16565b5050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613f73577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613f6957613f68615cf5565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613fb0576d04ee2d6d415b85acef81000000008381613fa657613fa5615cf5565b5b0492506020810190505b662386f26fc100008310613fdf57662386f26fc100008381613fd557613fd4615cf5565b5b0492506010810190505b6305f5e1008310614008576305f5e1008381613ffe57613ffd615cf5565b5b0492506008810190505b612710831061402d57612710838161402357614022615cf5565b5b0492506004810190505b60648310614050576064838161404657614045615cf5565b5b0492506002810190505b600a831061405f576001810190505b80915050919050565b600080600b60008481526020019081526020016000205490508060a01c915050919050565b6000600b600084815260200190815260200160002054905060a07fffffffffffffffffffffffff0000000000000000000000000000000000000000901c821115614103576040517ffcb3438c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffff00000000000000000000000000000000000000008260a01b1673ffffffffffffffffffffffffffffffffffffffff821601905080600b600085815260200190815260200160002081905550505050565b6000600b600084815260200190815260200160002054905073ffffffffffffffffffffffffffffffffffffffff82167fffffffffffffffffffffffff0000000000000000000000000000000000000000821601905080600b600085815260200190815260200160002081905550505050565b60008183106141ea576141e582846144f4565b6141f5565b6141f483836144f4565b5b905092915050565b60008160000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168260000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16149050919050565b6000808260000160109054906101000a90046fffffffffffffffffffffffffffffffff1690508260000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16816fffffffffffffffffffffffffffffffff1603614310576040517f75e52f4f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600190039050826001016000826fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff168152602001908152602001600020549150826001016000826fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002060009055808360000160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555050919050565b600060018360000160009054906101000a90046fffffffffffffffffffffffffffffffff160390508260000160109054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16816fffffffffffffffffffffffffffffffff1603614476576040517f8acb5f2700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81836001016000836fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff16815260200190815260200160002081905550808360000160006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550505050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6145548161451f565b811461455f57600080fd5b50565b6000813590506145718161454b565b92915050565b60006020828403121561458d5761458c614515565b5b600061459b84828501614562565b91505092915050565b60008115159050919050565b6145b9816145a4565b82525050565b60006020820190506145d460008301846145b0565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000614605826145da565b9050919050565b614615816145fa565b811461462057600080fd5b50565b6000813590506146328161460c565b92915050565b60006020828403121561464e5761464d614515565b5b600061465c84828501614623565b91505092915050565b6000819050919050565b61467881614665565b82525050565b6000602082019050614693600083018461466f565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156146d35780820151818401526020810190506146b8565b60008484015250505050565b6000601f19601f8301169050919050565b60006146fb82614699565b61470581856146a4565b93506147158185602086016146b5565b61471e816146df565b840191505092915050565b6000602082019050818103600083015261474381846146f0565b905092915050565b61475481614665565b811461475f57600080fd5b50565b6000813590506147718161474b565b92915050565b60006020828403121561478d5761478c614515565b5b600061479b84828501614762565b91505092915050565b6147ad816145fa565b82525050565b60006020820190506147c860008301846147a4565b92915050565b600080604083850312156147e5576147e4614515565b5b60006147f385828601614623565b925050602061480485828601614762565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b614850826146df565b810181811067ffffffffffffffff8211171561486f5761486e614818565b5b80604052505050565b600061488261450b565b905061488e8282614847565b919050565b600067ffffffffffffffff8211156148ae576148ad614818565b5b6148b7826146df565b9050602081019050919050565b82818337600083830152505050565b60006148e66148e184614893565b614878565b90508281526020810184848401111561490257614901614813565b5b61490d8482856148c4565b509392505050565b600082601f83011261492a5761492961480e565b5b813561493a8482602086016148d3565b91505092915050565b60006020828403121561495957614958614515565b5b600082013567ffffffffffffffff8111156149775761497661451a565b5b61498384828501614915565b91505092915050565b6000806000606084860312156149a5576149a4614515565b5b60006149b386828701614623565b93505060206149c486828701614623565b92505060406149d586828701614762565b9150509250925092565b600060ff82169050919050565b6149f5816149df565b82525050565b6000602082019050614a1060008301846149ec565b92915050565b6000819050919050565b614a2981614a16565b82525050565b6000602082019050614a446000830184614a20565b92915050565b600067ffffffffffffffff821115614a6557614a64614818565b5b602082029050602081019050919050565b600080fd5b614a8481614a16565b8114614a8f57600080fd5b50565b600081359050614aa181614a7b565b92915050565b6000614aba614ab584614a4a565b614878565b90508083825260208201905060208402830185811115614add57614adc614a76565b5b835b81811015614b065780614af28882614a92565b845260208401935050602081019050614adf565b5050509392505050565b600082601f830112614b2557614b2461480e565b5b8135614b35848260208601614aa7565b91505092915050565b600080600060608486031215614b5757614b56614515565b5b600084013567ffffffffffffffff811115614b7557614b7461451a565b5b614b8186828701614b10565b9350506020614b9286828701614623565b9250506040614ba386828701614762565b9150509250925092565b614bb6816145a4565b8114614bc157600080fd5b50565b600081359050614bd381614bad565b92915050565b600060208284031215614bef57614bee614515565b5b6000614bfd84828501614bc4565b91505092915050565b60008060408385031215614c1d57614c1c614515565b5b600083013567ffffffffffffffff811115614c3b57614c3a61451a565b5b614c4785828601614b10565b9250506020614c5885828601614762565b9150509250929050565b60008060408385031215614c7957614c78614515565b5b6000614c8785828601614623565b9250506020614c9885828601614bc4565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b614cd781614665565b82525050565b6000614ce98383614cce565b60208301905092915050565b6000602082019050919050565b6000614d0d82614ca2565b614d178185614cad565b9350614d2283614cbe565b8060005b83811015614d53578151614d3a8882614cdd565b9750614d4583614cf5565b925050600181019050614d26565b5085935050505092915050565b60006020820190508181036000830152614d7a8184614d02565b905092915050565b600067ffffffffffffffff821115614d9d57614d9c614818565b5b614da6826146df565b9050602081019050919050565b6000614dc6614dc184614d82565b614878565b905082815260208101848484011115614de257614de1614813565b5b614ded8482856148c4565b509392505050565b600082601f830112614e0a57614e0961480e565b5b8135614e1a848260208601614db3565b91505092915050565b60008060008060808587031215614e3d57614e3c614515565b5b6000614e4b87828801614623565b9450506020614e5c87828801614623565b9350506040614e6d87828801614762565b925050606085013567ffffffffffffffff811115614e8e57614e8d61451a565b5b614e9a87828801614df5565b91505092959194509250565b614eaf816149df565b8114614eba57600080fd5b50565b600081359050614ecc81614ea6565b92915050565b600080600080600080600060e0888a031215614ef157614ef0614515565b5b6000614eff8a828b01614623565b9750506020614f108a828b01614623565b9650506040614f218a828b01614762565b9550506060614f328a828b01614762565b9450506080614f438a828b01614ebd565b93505060a0614f548a828b01614a92565b92505060c0614f658a828b01614a92565b91505092959891949750929550565b60008060408385031215614f8b57614f8a614515565b5b6000614f9985828601614623565b9250506020614faa85828601614623565b9150509250929050565b60008060408385031215614fcb57614fca614515565b5b6000614fd985828601614762565b9250506020614fea85828601614762565b9150509250929050565b60006020828403121561500a57615009614515565b5b600061501884828501614a92565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061506857607f821691505b60208210810361507b5761507a615021565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026150e37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826150a6565b6150ed86836150a6565b95508019841693508086168417925050509392505050565b6000819050919050565b600061512a61512561512084614665565b615105565b614665565b9050919050565b6000819050919050565b6151448361510f565b61515861515082615131565b8484546150b3565b825550505050565b600090565b61516d615160565b61517881848461513b565b505050565b5b8181101561519c57615191600082615165565b60018101905061517e565b5050565b601f8211156151e1576151b281615081565b6151bb84615096565b810160208510156151ca578190505b6151de6151d685615096565b83018261517d565b50505b505050565b600082821c905092915050565b6000615204600019846008026151e6565b1980831691505092915050565b600061521d83836151f3565b9150826002028217905092915050565b61523682614699565b67ffffffffffffffff81111561524f5761524e614818565b5b6152598254615050565b6152648282856151a0565b600060209050601f8311600181146152975760008415615285578287015190505b61528f8582615211565b8655506152f7565b601f1984166152a586615081565b60005b828110156152cd578489015182556001820191506020850194506020810190506152a8565b868310156152ea57848901516152e6601f8916826151f3565b8355505b6001600288020188555050505b505050505050565b600060408201905061531460008301856147a4565b615321602083018461466f565b9392505050565b6000819050919050565b61534361533e82614a16565b615328565b82525050565b60006153558284615332565b60208201915081905092915050565b7f41697264726f7073206861766520616c6c206265656e2077697468647261776e600082015250565b600061539a6020836146a4565b91506153a582615364565b602082019050919050565b600060208201905081810360008301526153c98161538d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061540a82614665565b915061541583614665565b925082820390508181111561542d5761542c6153d0565b5b92915050565b600081519050919050565b600082825260208201905092915050565b600061545a82615433565b615464818561543e565b93506154748185602086016146b5565b61547d816146df565b840191505092915050565b600060808201905061549d60008301876147a4565b6154aa60208301866147a4565b6154b7604083018561466f565b81810360608301526154c9818461544f565b905095945050505050565b6000815190506154e38161454b565b92915050565b6000602082840312156154ff576154fe614515565b5b600061550d848285016154d4565b91505092915050565b600081905092915050565b6000815461552e81615050565b6155388186615516565b9450600182166000811461555357600181146155685761559b565b60ff198316865281151582028601935061559b565b61557185615081565b60005b8381101561559357815481890152600182019150602081019050615574565b838801955050505b50505092915050565b60006155af82614699565b6155b98185615516565b93506155c98185602086016146b5565b80840191505092915050565b60006155e18285615521565b91506155ed82846155a4565b91508190509392505050565b7f496e76616c696420746f6b656e20696400000000000000000000000000000000600082015250565b600061562f6010836146a4565b915061563a826155f9565b602082019050919050565b6000602082019050818103600083015261565e81615622565b9050919050565b6000819050919050565b61568061567b82614665565b615665565b82525050565b6000615692828461566f565b60208201915081905092915050565b7f7b226e616d65223a2022436172626f6e20437261746500000000000000000000815250565b7f2023000000000000000000000000000000000000000000000000000000000000815250565b7f222c226465736372697074696f6e223a224120636f6c6c656374696f6e206f6660008201527f2031302c303030204552433430342052574120436172626f6e2043726174657360208201527f2c20746865206669727374206f6620697473206b696e642e205768617420646f60408201527f20796f75207468696e6b20697320696e736964653f222c2265787465726e616c60608201527f5f75726c223a2268747470733a2f2f65636f73617069656e732e78797a2f6c6f60808201527f67696e222c22696d616765223a2200000000000000000000000000000000000060a082015250565b60006157e160ae83615516565b91506157ec826156ed565b60ae82019050919050565b6000615802826156a1565b601682019150615811826156c7565b60028201915061582182866155a4565b915061582c826157d4565b91506158388285615521565b915061584482846155a4565b9150819050949350505050565b7f222c2261747472696275746573223a5b7b2274726169745f74797065223a224760008201527f6c6f77222c2276616c7565223a22000000000000000000000000000000000000602082015250565b60006158ad602e83615516565b91506158b882615851565b602e82019050919050565b7f227d2c7b2274726169745f74797065223a22436f6e74656e7473222c2276616c60008201527f7565223a22000000000000000000000000000000000000000000000000000000602082015250565b600061591f602583615516565b915061592a826158c3565b602582019050919050565b7f227d2c7b2274726169745f74797065223a2245636f706f696e7473222c22766160008201527f6c7565223a2235302c3030300000000000000000000000000000000000000000602082015250565b6000615991602c83615516565b915061599c82615935565b602c82019050919050565b60006159b2826158a0565b91506159be82856155a4565b91506159c982615912565b91506159d582846155a4565b91506159e082615984565b91508190509392505050565b60006159f882856155a4565b9150615a0482846155a4565b91508190509392505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b757466382c0000000000815250565b6000615a4182615a10565b601b82019150615a5182846155a4565b915081905092915050565b600060c082019050615a716000830189614a20565b615a7e60208301886147a4565b615a8b60408301876147a4565b615a98606083018661466f565b615aa5608083018561466f565b615ab260a083018461466f565b979650505050505050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b6000615af3600283615516565b9150615afe82615abd565b600282019050919050565b6000615b1482615ae6565b9150615b208285615332565b602082019150615b308284615332565b6020820191508190509392505050565b6000608082019050615b556000830187614a20565b615b6260208301866149ec565b615b6f6040830185614a20565b615b7c6060830184614a20565b95945050505050565b6000615b9082614665565b9150615b9b83614665565b9250828201905080821115615bb357615bb26153d0565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b60008190508160005260206000209050919050565b60008154615c1581615050565b615c1f8186615be8565b94506001821660008114615c3a5760018114615c4f57615c82565b60ff1983168652811515820286019350615c82565b615c5885615bf3565b60005b83811015615c7a57815481890152600182019150602081019050615c5b565b838801955050505b50505092915050565b6000615c978284615c08565b915081905092915050565b600060a082019050615cb76000830188614a20565b615cc46020830187614a20565b615cd16040830186614a20565b615cde606083018561466f565b615ceb60808301846147a4565b9695505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000615d2f82614665565b9150615d3a83614665565b925082615d4a57615d49615cf5565b5b828204905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6000615d8f82614665565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203615dc157615dc06153d0565b5b60018201905091905056fea26469706673582212205993c76c2b19bb3991212f864c3cc2630b6bae88b99972c22bec79d6c4e1289364736f6c63430008140033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000007d00000000000000000000000001585e6d3314ed64baf4323608b4bf702a5ff8f7c0000000000000000000000001585e6d3314ed64baf4323608b4bf702a5ff8f7c0000000000000000000000000000000000000000000000000000000000000180000000000000000000000000000000000000000000000000000000000000000d436172626f6e2043726174657300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000443415242000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d506738634c3979666d5735484b37753179757661326a424c393270546f4437757067645038453431523466702f00000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Carbon Crates
Arg [1] : symbol_ (string): CARB
Arg [2] : decimals_ (uint8): 18
Arg [3] : maxTotalSupplyERC721_ (uint256): 10000
Arg [4] : amountToAirdrop_ (uint256): 2000
Arg [5] : initialOwner_ (address): 0x1585e6d3314eD64bAf4323608B4bF702a5ff8F7c
Arg [6] : initialMintRecipient_ (address): 0x1585e6d3314eD64bAf4323608B4bF702a5ff8F7c
Arg [7] : dataURI_ (string): ipfs://QmPg8cL9yfmW5HK7u1yuva2jBL92pToD7upgdP8E41R4fp/

-----Encoded View---------------
15 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [3] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [4] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [5] : 0000000000000000000000001585e6d3314ed64baf4323608b4bf702a5ff8f7c
Arg [6] : 0000000000000000000000001585e6d3314ed64baf4323608b4bf702a5ff8f7c
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [9] : 436172626f6e2043726174657300000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [11] : 4341524200000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [13] : 697066733a2f2f516d506738634c3979666d5735484b37753179757661326a42
Arg [14] : 4c393270546f4437757067645038453431523466702f00000000000000000000


Loading...
Loading
Loading...
Loading
[ 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.