Ape Curtis Testnet

Contract

0x08DB740686dc2FA993E837149871B71038c2056B

Overview

APE Balance

Ape Curtis LogoApe Curtis LogoApe Curtis Logo0 APE

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x20ec271b151592742025-01-28 19:23:563 days ago1738092236IN
0x08DB7406...038c2056B
0 APE0.000000390.01
0x20ec271b151591292025-01-28 19:13:353 days ago1738091615IN
0x08DB7406...038c2056B
0 APE0.000000390.01
0x20ec271b151590542025-01-28 19:10:273 days ago1738091427IN
0x08DB7406...038c2056B
0 APE0.000000390.01
0x20ec271b151590242025-01-28 19:08:323 days ago1738091312IN
0x08DB7406...038c2056B
0 APE0.000000570.01
0x20ec271b151588622025-01-28 18:56:203 days ago1738090580IN
0x08DB7406...038c2056B
0 APE0.00000070.01
0x20ec271b151565392025-01-28 16:31:173 days ago1738081877IN
0x08DB7406...038c2056B
0 APE0.000000570.01
0x20ec271b151563752025-01-28 16:22:533 days ago1738081373IN
0x08DB7406...038c2056B
0 APE0.000000390.01
0x20ec271b151539112025-01-28 14:46:163 days ago1738075576IN
0x08DB7406...038c2056B
0 APE0.000000440.01
0x20ec271b151537992025-01-28 14:40:233 days ago1738075223IN
0x08DB7406...038c2056B
0 APE0.000000570.01
0x20ec271b146084052025-01-15 13:44:4916 days ago1736948689IN
0x08DB7406...038c2056B
0 APE0.000000440.01
0x20ec271b146083632025-01-15 13:42:3016 days ago1736948550IN
0x08DB7406...038c2056B
0 APE0.000000440.01
0x20ec271b146082532025-01-15 13:35:2416 days ago1736948124IN
0x08DB7406...038c2056B
0 APE0.000000440.01
0x80929e5b143624492025-01-06 16:46:3425 days ago1736181994IN
0x08DB7406...038c2056B
0 APE0.000000450.01
0xd5516e7f143577112025-01-06 13:01:4725 days ago1736168507IN
0x08DB7406...038c2056B
0 APE0.000001070.01
0xd5516e7f143577062025-01-06 13:01:3525 days ago1736168495IN
0x08DB7406...038c2056B
0 APE0.000001070.01
0xd5516e7f143577022025-01-06 13:01:2225 days ago1736168482IN
0x08DB7406...038c2056B
0 APE0.000001070.01
0xd5516e7f143576922025-01-06 13:01:0525 days ago1736168465IN
0x08DB7406...038c2056B
0 APE0.000001070.01
0x5aed66dd143576442025-01-06 12:59:0225 days ago1736168342IN
0x08DB7406...038c2056B
0 APE0.000000480.01
0x5aed66dd143576382025-01-06 12:58:4825 days ago1736168328IN
0x08DB7406...038c2056B
0 APE0.000000480.01
0x5aed66dd143576302025-01-06 12:58:3325 days ago1736168313IN
0x08DB7406...038c2056B
0 APE0.000000480.01
0x5aed66dd143576162025-01-06 12:58:0425 days ago1736168284IN
0x08DB7406...038c2056B
0 APE0.000000480.01

Parent Transaction Hash Block From To
View All Internal Transactions

Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
LootChests

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 48 : The8102LootChests.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.21;

import "@limitbreak/creator-token-contracts/contracts/access/OwnableBasic.sol";
import "@limitbreak/creator-token-contracts/contracts/erc1155c/ERC1155C.sol";
import "@limitbreak/creator-token-contracts/contracts/programmable-royalties/BasicRoyalties.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./Recoverable.sol";

contract LootChests is OwnableBasic, ERC1155C, BasicRoyalties, Recoverable {
    using Strings for uint256;

    string public name;
    string public symbol;

    error AirdropFailed_RecipientAmountsMismatch();
    error AirdropFailed_RecipientListEmpty();
    error AirdropFailed_TooLarge();
    error ExceedsMaxSupply();
    error InvalidAmount();
    error BurnNotEnabled();

    event Burned(address indexed account, uint256 tokenId, uint256 amount);
    event BurnedBatch(address indexed account, uint256[] tokenId, uint256[] amount);

    mapping(uint256 => uint256) public maxTokenSupply;
    mapping(uint256 => uint256) private _totalSupply;

    bool public isBurnEnabled = false;

    constructor(
        address royaltyReceiver_,
        uint96 royaltyFeeNumerator_,
        string memory uri_,
        string memory name_,
        string memory symbol_
    ) ERC1155OpenZeppelin(uri_) BasicRoyalties(royaltyReceiver_, royaltyFeeNumerator_) {
        name = name_;
        symbol = symbol_;
        _transferOwnership(royaltyReceiver_);
    }

    function setToken(uint256 tokenId, uint256 maxSupply) external onlyOwner {
        if (totalSupply(tokenId) == 0 || (maxTokenSupply[tokenId] > maxSupply && maxSupply >= totalSupply(tokenId))) {
            maxTokenSupply[tokenId] = maxSupply;
        }
    }

    function setUri(string calldata uri_) external onlyOwner {
        _setURI(uri_);
    }

    function setBurnable(bool isBurnable) external onlyOwner {
        isBurnEnabled = isBurnable;
    }

    function airdrop(uint256 tokenId, address[] calldata recipients, uint256[] calldata amounts) external onlyOwner {
        if (recipients.length > 100) revert AirdropFailed_TooLarge();
        if (recipients.length == 0) revert AirdropFailed_RecipientListEmpty();
        if (recipients.length != amounts.length) revert AirdropFailed_RecipientAmountsMismatch();

        for (uint256 i = 0; i < recipients.length; i++) {
            if (amounts[i] == 0) revert InvalidAmount();
            if (totalSupply(tokenId) + amounts[i] > maxTokenSupply[tokenId]) revert ExceedsMaxSupply();
            _mint(recipients[i], tokenId, amounts[i], "");
            _totalSupply[tokenId] += amounts[i];
        }
    }

    function mint(uint256 tokenId, uint256 amount) external onlyOwner {
        if (amount == 0) revert InvalidAmount();
        if (totalSupply(tokenId) + amount > maxTokenSupply[tokenId]) revert ExceedsMaxSupply();
        _mint(_msgSender(), tokenId, amount, "");
        _totalSupply[tokenId] += amount;
    }

    function burn(uint256 tokenId, uint256 amount) external {
        if (!isBurnEnabled) revert BurnNotEnabled();
        if (amount == 0) revert InvalidAmount();

        _burn(_msgSender(), tokenId, amount);
        _totalSupply[tokenId] -= amount;
        emit Burned(_msgSender(), tokenId, amount);
    }

    function batchBurn(uint256[] calldata tokenIds, uint256[] calldata amounts) external {
        if (!isBurnEnabled) revert BurnNotEnabled();
        if (tokenIds.length == 0 || tokenIds.length != amounts.length) revert InvalidAmount();

        _burnBatch(_msgSender(), tokenIds, amounts);
        for (uint256 i = 0; i < tokenIds.length; i++) {
            _totalSupply[tokenIds[i]] -= amounts[i];
        }
        emit BurnedBatch(_msgSender(), tokenIds, amounts);
    }

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155C, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyOwner {
        _setDefaultRoyalty(receiver, feeNumerator);
    }

    function totalSupply(uint256 tokenId_) public view returns (uint256) {
        return _totalSupply[tokenId_];
    }

    function uri(uint256 tokenId_) public view override returns (string memory) {
        return
            string(
            abi.encodePacked(
                super.uri(tokenId_),
                tokenId_.toString(),
                ".json"
            )
        );
    }
}

File 2 of 48 : OwnableBasic.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import "./OwnablePermissions.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

abstract contract OwnableBasic is OwnablePermissions, Ownable {
    function _requireCallerIsContractOwner() internal view virtual override {
        _checkOwner();
    }
}

File 3 of 48 : OwnablePermissions.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/utils/Context.sol";

abstract contract OwnablePermissions is Context {
    function _requireCallerIsContractOwner() internal view virtual;
}

File 4 of 48 : ERC1155C.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "../utils/CreatorTokenBase.sol";
import "../token/erc1155/ERC1155OpenZeppelin.sol";

/**
 * @title ERC1155C
 * @author Limit Break, Inc.
 * @notice Extends OpenZeppelin's ERC1155 implementation with Creator Token functionality, which
 *         allows the contract owner to update the transfer validation logic by managing a security policy in
 *         an external transfer validation security policy registry.  See {CreatorTokenTransferValidator}.
 */
abstract contract ERC1155C is ERC1155OpenZeppelin, CreatorTokenBase {

    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(ICreatorToken).interfaceId || super.supportsInterface(interfaceId);
    }

    /// @dev Ties the open-zeppelin _beforeTokenTransfer hook to more granular transfer validation logic
    function _beforeTokenTransfer(
        address /*operator*/,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory /*amounts*/,
        bytes memory /*data*/
    ) internal virtual override {
        uint256 idsArrayLength = ids.length;
        for (uint256 i = 0; i < idsArrayLength;) {
            _validateBeforeTransfer(from, to, ids[i]);

            unchecked {
                ++i;
            }
        }
    }

    /// @dev Ties the open-zeppelin _afterTokenTransfer hook to more granular transfer validation logic
    function _afterTokenTransfer(
        address /*operator*/,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory /*amounts*/,
        bytes memory /*data*/
    ) internal virtual override {
        uint256 idsArrayLength = ids.length;
        for (uint256 i = 0; i < idsArrayLength;) {
            _validateAfterTransfer(from, to, ids[i]);

            unchecked {
                ++i;
            }
        }
    }
}

/**
 * @title ERC1155CInitializable
 * @author Limit Break, Inc.
 * @notice Initializable implementation of ERC1155C to allow for EIP-1167 proxy clones.
 */
abstract contract ERC1155CInitializable is ERC1155OpenZeppelinInitializable, CreatorTokenBase {

    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(ICreatorToken).interfaceId || super.supportsInterface(interfaceId);
    }

    /// @dev Ties the open-zeppelin _beforeTokenTransfer hook to more granular transfer validation logic
    function _beforeTokenTransfer(
        address /*operator*/,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory /*amounts*/,
        bytes memory /*data*/
    ) internal virtual override {
        uint256 idsArrayLength = ids.length;
        for (uint256 i = 0; i < idsArrayLength;) {
            _validateBeforeTransfer(from, to, ids[i]);

            unchecked {
                ++i;
            }
        }
    }

    /// @dev Ties the open-zeppelin _afterTokenTransfer hook to more granular transfer validation logic
    function _afterTokenTransfer(
        address /*operator*/,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory /*amounts*/,
        bytes memory /*data*/
    ) internal virtual override {
        uint256 idsArrayLength = ids.length;
        for (uint256 i = 0; i < idsArrayLength;) {
            _validateAfterTransfer(from, to, ids[i]);

            unchecked {
                ++i;
            }
        }
    }
}

File 5 of 48 : ERC721C.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "../utils/CreatorTokenBase.sol";
import "../token/erc721/ERC721OpenZeppelin.sol";

/**
 * @title ERC721C
 * @author Limit Break, Inc.
 * @notice Extends OpenZeppelin's ERC721 implementation with Creator Token functionality, which
 *         allows the contract owner to update the transfer validation logic by managing a security policy in
 *         an external transfer validation security policy registry.  See {CreatorTokenTransferValidator}.
 */
abstract contract ERC721C is ERC721OpenZeppelin, CreatorTokenBase {

    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(ICreatorToken).interfaceId || super.supportsInterface(interfaceId);
    }

    /// @dev Ties the open-zeppelin _beforeTokenTransfer hook to more granular transfer validation logic
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize) internal virtual override {
        for (uint256 i = 0; i < batchSize;) {
            _validateBeforeTransfer(from, to, firstTokenId + i);
            unchecked {
                ++i;
            }
        }
    }

    /// @dev Ties the open-zeppelin _afterTokenTransfer hook to more granular transfer validation logic
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize) internal virtual override {
        for (uint256 i = 0; i < batchSize;) {
            _validateAfterTransfer(from, to, firstTokenId + i);
            unchecked {
                ++i;
            }
        }
    }
}

/**
 * @title ERC721CInitializable
 * @author Limit Break, Inc.
 * @notice Initializable implementation of ERC721C to allow for EIP-1167 proxy clones.
 */
abstract contract ERC721CInitializable is ERC721OpenZeppelinInitializable, CreatorTokenBase {
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(ICreatorToken).interfaceId || super.supportsInterface(interfaceId);
    }

    /// @dev Ties the open-zeppelin _beforeTokenTransfer hook to more granular transfer validation logic
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize) internal virtual override {
        for (uint256 i = 0; i < batchSize;) {
            _validateBeforeTransfer(from, to, firstTokenId + i);
            unchecked {
                ++i;
            }
        }
    }

    /// @dev Ties the open-zeppelin _afterTokenTransfer hook to more granular transfer validation logic
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize) internal virtual override {
        for (uint256 i = 0; i < batchSize;) {
            _validateAfterTransfer(from, to, firstTokenId + i);
            unchecked {
                ++i;
            }
        }
    }
}

File 6 of 48 : ICreatorToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "../interfaces/ICreatorTokenTransferValidator.sol";

interface ICreatorToken {
    event TransferValidatorUpdated(address oldValidator, address newValidator);

    function getTransferValidator() external view returns (ICreatorTokenTransferValidator);
    function getSecurityPolicy() external view returns (CollectionSecurityPolicy memory);
    function getWhitelistedOperators() external view returns (address[] memory);
    function getPermittedContractReceivers() external view returns (address[] memory);
    function isOperatorWhitelisted(address operator) external view returns (bool);
    function isContractReceiverPermitted(address receiver) external view returns (bool);
    function isTransferAllowed(address caller, address from, address to) external view returns (bool);
}

File 7 of 48 : ICreatorTokenTransferValidator.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "./IEOARegistry.sol";
import "./ITransferSecurityRegistry.sol";
import "./ITransferValidator.sol";

interface ICreatorTokenTransferValidator is ITransferSecurityRegistry, ITransferValidator, IEOARegistry {}

File 8 of 48 : IEOARegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

interface IEOARegistry is IERC165 {
    function isVerifiedEOA(address account) external view returns (bool);
}

File 9 of 48 : ITransferSecurityRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "../utils/TransferPolicy.sol";

interface ITransferSecurityRegistry {
    event AddedToAllowlist(AllowlistTypes indexed kind, uint256 indexed id, address indexed account);
    event CreatedAllowlist(AllowlistTypes indexed kind, uint256 indexed id, string indexed name);
    event ReassignedAllowlistOwnership(AllowlistTypes indexed kind, uint256 indexed id, address indexed newOwner);
    event RemovedFromAllowlist(AllowlistTypes indexed kind, uint256 indexed id, address indexed account);
    event SetAllowlist(AllowlistTypes indexed kind, address indexed collection, uint120 indexed id);
    event SetTransferSecurityLevel(address indexed collection, TransferSecurityLevels level);

    function createOperatorWhitelist(string calldata name) external returns (uint120);
    function createPermittedContractReceiverAllowlist(string calldata name) external returns (uint120);
    function reassignOwnershipOfOperatorWhitelist(uint120 id, address newOwner) external;
    function reassignOwnershipOfPermittedContractReceiverAllowlist(uint120 id, address newOwner) external;
    function renounceOwnershipOfOperatorWhitelist(uint120 id) external;
    function renounceOwnershipOfPermittedContractReceiverAllowlist(uint120 id) external;
    function setTransferSecurityLevelOfCollection(address collection, TransferSecurityLevels level) external;
    function setOperatorWhitelistOfCollection(address collection, uint120 id) external;
    function setPermittedContractReceiverAllowlistOfCollection(address collection, uint120 id) external;
    function addOperatorToWhitelist(uint120 id, address operator) external;
    function addPermittedContractReceiverToAllowlist(uint120 id, address receiver) external;
    function removeOperatorFromWhitelist(uint120 id, address operator) external;
    function removePermittedContractReceiverFromAllowlist(uint120 id, address receiver) external;
    function getCollectionSecurityPolicy(address collection) external view returns (CollectionSecurityPolicy memory);
    function getWhitelistedOperators(uint120 id) external view returns (address[] memory);
    function getPermittedContractReceivers(uint120 id) external view returns (address[] memory);
    function isOperatorWhitelisted(uint120 id, address operator) external view returns (bool);
    function isContractReceiverPermitted(uint120 id, address receiver) external view returns (bool);
}

File 10 of 48 : ITransferValidator.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "../utils/TransferPolicy.sol";

interface ITransferValidator {
    function applyCollectionTransferPolicy(address caller, address from, address to) external view;
}

File 11 of 48 : BasicRoyalties.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/common/ERC2981.sol";

/**
 * @title BasicRoyaltiesBase
 * @author Limit Break, Inc.
 * @dev Base functionality of an NFT mix-in contract implementing the most basic form of programmable royalties.
 */
abstract contract BasicRoyaltiesBase is ERC2981 {

    event DefaultRoyaltySet(address indexed receiver, uint96 feeNumerator);
    event TokenRoyaltySet(uint256 indexed tokenId, address indexed receiver, uint96 feeNumerator);

    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual override {
        super._setDefaultRoyalty(receiver, feeNumerator);
        emit DefaultRoyaltySet(receiver, feeNumerator);
    }

    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual override {
        super._setTokenRoyalty(tokenId, receiver, feeNumerator);
        emit TokenRoyaltySet(tokenId, receiver, feeNumerator);
    }
}

/**
 * @title BasicRoyalties
 * @author Limit Break, Inc.
 * @notice Constructable BasicRoyalties Contract implementation.
 */
abstract contract BasicRoyalties is BasicRoyaltiesBase {
    constructor(address receiver, uint96 feeNumerator) {
        _setDefaultRoyalty(receiver, feeNumerator);
    }
}

/**
 * @title BasicRoyaltiesInitializable
 * @author Limit Break, Inc.
 * @notice Initializable BasicRoyalties Contract implementation to allow for EIP-1167 clones. 
 */
abstract contract BasicRoyaltiesInitializable is BasicRoyaltiesBase {}

File 12 of 48 : ERC1155OpenZeppelin.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import "../../access/OwnablePermissions.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";

abstract contract ERC1155OpenZeppelinBase is ERC1155 {

}

abstract contract ERC1155OpenZeppelin is ERC1155OpenZeppelinBase {
    constructor(string memory uri_) ERC1155(uri_) {}
}

abstract contract ERC1155OpenZeppelinInitializable is OwnablePermissions, ERC1155OpenZeppelinBase {

    error ERC1155OpenZeppelinInitializable__AlreadyInitializedERC1155();

    bool private _erc1155Initialized;

    function initializeERC1155(string memory uri_) public {
        _requireCallerIsContractOwner();

        if(_erc1155Initialized) {
            revert ERC1155OpenZeppelinInitializable__AlreadyInitializedERC1155();
        }

        _erc1155Initialized = true;

        _setURI(uri_);
    }
}

File 13 of 48 : ERC721OpenZeppelin.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;

import "../../access/OwnablePermissions.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";

abstract contract ERC721OpenZeppelinBase is ERC721 {

    // Token name
    string internal _contractName;

    // Token symbol
    string internal _contractSymbol;

    function name() public view virtual override returns (string memory) {
        return _contractName;
    }

    function symbol() public view virtual override returns (string memory) {
        return _contractSymbol;
    }

    function _setNameAndSymbol(string memory name_, string memory symbol_) internal {
        _contractName = name_;
        _contractSymbol = symbol_;
    }
}

abstract contract ERC721OpenZeppelin is ERC721OpenZeppelinBase {
    constructor(string memory name_, string memory symbol_) ERC721("", "") {
        _setNameAndSymbol(name_, symbol_);
    }
}

abstract contract ERC721OpenZeppelinInitializable is OwnablePermissions, ERC721OpenZeppelinBase {

    error ERC721OpenZeppelinInitializable__AlreadyInitializedERC721();

    /// @notice Specifies whether or not the contract is initialized
    bool private _erc721Initialized;

    /// @dev Initializes parameters of ERC721 tokens.
    /// These cannot be set in the constructor because this contract is optionally compatible with EIP-1167.
    function initializeERC721(string memory name_, string memory symbol_) public {
        _requireCallerIsContractOwner();

        if(_erc721Initialized) {
            revert ERC721OpenZeppelinInitializable__AlreadyInitializedERC721();
        }

        _erc721Initialized = true;

        _setNameAndSymbol(name_, symbol_);
    }
}

File 14 of 48 : CreatorTokenBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "../access/OwnablePermissions.sol";
import "../interfaces/ICreatorToken.sol";
import "../interfaces/ICreatorTokenTransferValidator.sol";
import "../utils/TransferValidation.sol";
import "@openzeppelin/contracts/interfaces/IERC165.sol";

/**
 * @title CreatorTokenBase
 * @author Limit Break, Inc.
 * @notice CreatorTokenBase is an abstract contract that provides basic functionality for managing token 
 * transfer policies through an implementation of ICreatorTokenTransferValidator. This contract is intended to be used
 * as a base for creator-specific token contracts, enabling customizable transfer restrictions and security policies.
 *
 * <h4>Features:</h4>
 * <ul>Ownable: This contract can have an owner who can set and update the transfer validator.</ul>
 * <ul>TransferValidation: Implements the basic token transfer validation interface.</ul>
 * <ul>ICreatorToken: Implements the interface for creator tokens, providing view functions for token security policies.</ul>
 *
 * <h4>Benefits:</h4>
 * <ul>Provides a flexible and modular way to implement custom token transfer restrictions and security policies.</ul>
 * <ul>Allows creators to enforce policies such as whitelisted operators and permitted contract receivers.</ul>
 * <ul>Can be easily integrated into other token contracts as a base contract.</ul>
 *
 * <h4>Intended Usage:</h4>
 * <ul>Use as a base contract for creator token implementations that require advanced transfer restrictions and 
 *   security policies.</ul>
 * <ul>Set and update the ICreatorTokenTransferValidator implementation contract to enforce desired policies for the 
 *   creator token.</ul>
 */
abstract contract CreatorTokenBase is OwnablePermissions, TransferValidation, ICreatorToken {
    
    error CreatorTokenBase__InvalidTransferValidatorContract();
    error CreatorTokenBase__SetTransferValidatorFirst();

    address public constant DEFAULT_TRANSFER_VALIDATOR = address(0x0000721C310194CcfC01E523fc93C9cCcFa2A0Ac);
    TransferSecurityLevels public constant DEFAULT_TRANSFER_SECURITY_LEVEL = TransferSecurityLevels.One;
    uint120 public constant DEFAULT_OPERATOR_WHITELIST_ID = uint120(1);

    ICreatorTokenTransferValidator private transferValidator;

    /**
     * @notice Allows the contract owner to set the transfer validator to the official validator contract
     *         and set the security policy to the recommended default settings.
     * @dev    May be overridden to change the default behavior of an individual collection.
     */
    function setToDefaultSecurityPolicy() public virtual {
        _requireCallerIsContractOwner();
        setTransferValidator(DEFAULT_TRANSFER_VALIDATOR);
        ICreatorTokenTransferValidator(DEFAULT_TRANSFER_VALIDATOR).setTransferSecurityLevelOfCollection(address(this), DEFAULT_TRANSFER_SECURITY_LEVEL);
        ICreatorTokenTransferValidator(DEFAULT_TRANSFER_VALIDATOR).setOperatorWhitelistOfCollection(address(this), DEFAULT_OPERATOR_WHITELIST_ID);
    }

    /**
     * @notice Allows the contract owner to set the transfer validator to a custom validator contract
     *         and set the security policy to their own custom settings.
     */
    function setToCustomValidatorAndSecurityPolicy(
        address validator, 
        TransferSecurityLevels level, 
        uint120 operatorWhitelistId, 
        uint120 permittedContractReceiversAllowlistId) public {
        _requireCallerIsContractOwner();

        setTransferValidator(validator);

        ICreatorTokenTransferValidator(validator).
            setTransferSecurityLevelOfCollection(address(this), level);

        ICreatorTokenTransferValidator(validator).
            setOperatorWhitelistOfCollection(address(this), operatorWhitelistId);

        ICreatorTokenTransferValidator(validator).
            setPermittedContractReceiverAllowlistOfCollection(address(this), permittedContractReceiversAllowlistId);
    }

    /**
     * @notice Allows the contract owner to set the security policy to their own custom settings.
     * @dev    Reverts if the transfer validator has not been set.
     */
    function setToCustomSecurityPolicy(
        TransferSecurityLevels level, 
        uint120 operatorWhitelistId, 
        uint120 permittedContractReceiversAllowlistId) public {
        _requireCallerIsContractOwner();

        ICreatorTokenTransferValidator validator = getTransferValidator();
        if (address(validator) == address(0)) {
            revert CreatorTokenBase__SetTransferValidatorFirst();
        }

        validator.setTransferSecurityLevelOfCollection(address(this), level);
        validator.setOperatorWhitelistOfCollection(address(this), operatorWhitelistId);
        validator.setPermittedContractReceiverAllowlistOfCollection(address(this), permittedContractReceiversAllowlistId);
    }

    /**
     * @notice Sets the transfer validator for the token contract.
     *
     * @dev    Throws when provided validator contract is not the zero address and doesn't support 
     *         the ICreatorTokenTransferValidator interface. 
     * @dev    Throws when the caller is not the contract owner.
     *
     * @dev    <h4>Postconditions:</h4>
     *         1. The transferValidator address is updated.
     *         2. The `TransferValidatorUpdated` event is emitted.
     *
     * @param transferValidator_ The address of the transfer validator contract.
     */
    function setTransferValidator(address transferValidator_) public {
        _requireCallerIsContractOwner();

        bool isValidTransferValidator = false;

        if(transferValidator_.code.length > 0) {
            try IERC165(transferValidator_).supportsInterface(type(ICreatorTokenTransferValidator).interfaceId) 
                returns (bool supportsInterface) {
                isValidTransferValidator = supportsInterface;
            } catch {}
        }

        if(transferValidator_ != address(0) && !isValidTransferValidator) {
            revert CreatorTokenBase__InvalidTransferValidatorContract();
        }

        emit TransferValidatorUpdated(address(transferValidator), transferValidator_);

        transferValidator = ICreatorTokenTransferValidator(transferValidator_);
    }

    /**
     * @notice Returns the transfer validator contract address for this token contract.
     */
    function getTransferValidator() public view override returns (ICreatorTokenTransferValidator) {
        return transferValidator;
    }

    /**
     * @notice Returns the security policy for this token contract, which includes:
     *         Transfer security level, operator whitelist id, permitted contract receiver allowlist id.
     */
    function getSecurityPolicy() public view override returns (CollectionSecurityPolicy memory) {
        if (address(transferValidator) != address(0)) {
            return transferValidator.getCollectionSecurityPolicy(address(this));
        }

        return CollectionSecurityPolicy({
            transferSecurityLevel: TransferSecurityLevels.Zero,
            operatorWhitelistId: 0,
            permittedContractReceiversId: 0
        });
    }

    /**
     * @notice Returns the list of all whitelisted operators for this token contract.
     * @dev    This can be an expensive call and should only be used in view-only functions.
     */
    function getWhitelistedOperators() public view override returns (address[] memory) {
        if (address(transferValidator) != address(0)) {
            return transferValidator.getWhitelistedOperators(
                transferValidator.getCollectionSecurityPolicy(address(this)).operatorWhitelistId);
        }

        return new address[](0);
    }

    /**
     * @notice Returns the list of permitted contract receivers for this token contract.
     * @dev    This can be an expensive call and should only be used in view-only functions.
     */
    function getPermittedContractReceivers() public view override returns (address[] memory) {
        if (address(transferValidator) != address(0)) {
            return transferValidator.getPermittedContractReceivers(
                transferValidator.getCollectionSecurityPolicy(address(this)).permittedContractReceiversId);
        }

        return new address[](0);
    }

    /**
     * @notice Checks if an operator is whitelisted for this token contract.
     * @param operator The address of the operator to check.
     */
    function isOperatorWhitelisted(address operator) public view override returns (bool) {
        if (address(transferValidator) != address(0)) {
            return transferValidator.isOperatorWhitelisted(
                transferValidator.getCollectionSecurityPolicy(address(this)).operatorWhitelistId, operator);
        }

        return false;
    }

    /**
     * @notice Checks if a contract receiver is permitted for this token contract.
     * @param receiver The address of the receiver to check.
     */
    function isContractReceiverPermitted(address receiver) public view override returns (bool) {
        if (address(transferValidator) != address(0)) {
            return transferValidator.isContractReceiverPermitted(
                transferValidator.getCollectionSecurityPolicy(address(this)).permittedContractReceiversId, receiver);
        }

        return false;
    }

    /**
     * @notice Determines if a transfer is allowed based on the token contract's security policy.  Use this function
     *         to simulate whether or not a transfer made by the specified `caller` from the `from` address to the `to`
     *         address would be allowed by this token's security policy.
     *
     * @notice This function only checks the security policy restrictions and does not check whether token ownership
     *         or approvals are in place. 
     *
     * @param caller The address of the simulated caller.
     * @param from   The address of the sender.
     * @param to     The address of the receiver.
     * @return       True if the transfer is allowed, false otherwise.
     */
    function isTransferAllowed(address caller, address from, address to) public view override returns (bool) {
        if (address(transferValidator) != address(0)) {
            try transferValidator.applyCollectionTransferPolicy(caller, from, to) {
                return true;
            } catch {
                return false;
            }
        }
        return true;
    }

    /**
     * @dev Pre-validates a token transfer, reverting if the transfer is not allowed by this token's security policy.
     *      Inheriting contracts are responsible for overriding the _beforeTokenTransfer function, or its equivalent
     *      and calling _validateBeforeTransfer so that checks can be properly applied during token transfers.
     *
     * @dev Throws when the transfer doesn't comply with the collection's transfer policy, if the transferValidator is
     *      set to a non-zero address.
     *
     * @param caller  The address of the caller.
     * @param from    The address of the sender.
     * @param to      The address of the receiver.
     */
    function _preValidateTransfer(
        address caller, 
        address from, 
        address to, 
        uint256 /*tokenId*/, 
        uint256 /*value*/) internal virtual override {
        if (address(transferValidator) != address(0)) {
            transferValidator.applyCollectionTransferPolicy(caller, from, to);
        }
    }
}

File 15 of 48 : TransferPolicy.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

enum AllowlistTypes {
    Operators,
    PermittedContractReceivers
}

enum ReceiverConstraints {
    None,
    NoCode,
    EOA
}

enum CallerConstraints {
    None,
    OperatorWhitelistEnableOTC,
    OperatorWhitelistDisableOTC
}

enum StakerConstraints {
    None,
    CallerIsTxOrigin,
    EOA
}

enum TransferSecurityLevels {
    Zero,
    One,
    Two,
    Three,
    Four,
    Five,
    Six
}

struct TransferSecurityPolicy {
    CallerConstraints callerConstraints;
    ReceiverConstraints receiverConstraints;
}

struct CollectionSecurityPolicy {
    TransferSecurityLevels transferSecurityLevel;
    uint120 operatorWhitelistId;
    uint120 permittedContractReceiversId;
}

File 16 of 48 : TransferValidation.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/utils/Context.sol";

/**
 * @title TransferValidation
 * @author Limit Break, Inc.
 * @notice A mix-in that can be combined with ERC-721 contracts to provide more granular hooks.
 * Openzeppelin's ERC721 contract only provides hooks for before and after transfer.  This allows
 * developers to validate or customize transfers within the context of a mint, a burn, or a transfer.
 */
abstract contract TransferValidation is Context {
    
    error ShouldNotMintToBurnAddress();

    /// @dev Inheriting contracts should call this function in the _beforeTokenTransfer function to get more granular hooks.
    function _validateBeforeTransfer(address from, address to, uint256 tokenId) internal virtual {
        bool fromZeroAddress = from == address(0);
        bool toZeroAddress = to == address(0);

        if(fromZeroAddress && toZeroAddress) {
            revert ShouldNotMintToBurnAddress();
        } else if(fromZeroAddress) {
            _preValidateMint(_msgSender(), to, tokenId, msg.value);
        } else if(toZeroAddress) {
            _preValidateBurn(_msgSender(), from, tokenId, msg.value);
        } else {
            _preValidateTransfer(_msgSender(), from, to, tokenId, msg.value);
        }
    }

    /// @dev Inheriting contracts should call this function in the _afterTokenTransfer function to get more granular hooks.
    function _validateAfterTransfer(address from, address to, uint256 tokenId) internal virtual {
        bool fromZeroAddress = from == address(0);
        bool toZeroAddress = to == address(0);

        if(fromZeroAddress && toZeroAddress) {
            revert ShouldNotMintToBurnAddress();
        } else if(fromZeroAddress) {
            _postValidateMint(_msgSender(), to, tokenId, msg.value);
        } else if(toZeroAddress) {
            _postValidateBurn(_msgSender(), from, tokenId, msg.value);
        } else {
            _postValidateTransfer(_msgSender(), from, to, tokenId, msg.value);
        }
    }

    /// @dev Optional validation hook that fires before a mint
    function _preValidateMint(address caller, address to, uint256 tokenId, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires after a mint
    function _postValidateMint(address caller, address to, uint256 tokenId, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires before a burn
    function _preValidateBurn(address caller, address from, uint256 tokenId, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires after a burn
    function _postValidateBurn(address caller, address from, uint256 tokenId, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires before a transfer
    function _preValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 value) internal virtual {}

    /// @dev Optional validation hook that fires after a transfer
    function _postValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 value) internal virtual {}
}

File 17 of 48 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 18 of 48 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1155.sol)

pragma solidity ^0.8.0;

import "../token/ERC1155/IERC1155.sol";

File 19 of 48 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165.sol";

File 20 of 48 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

File 21 of 48 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 22 of 48 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol)

pragma solidity ^0.8.0;

import "../token/ERC721/IERC721.sol";

File 23 of 48 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {
        return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 24 of 48 : ERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC1155).interfaceId ||
            interfaceId == type(IERC1155MetadataURI).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: address zero is not a valid owner");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC1155-isApprovedForAll}.
     */
    function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[account][operator];
    }

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not token owner or approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _afterTokenTransfer(operator, from, to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _afterTokenTransfer(operator, address(0), to, ids, amounts, data);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();
        uint256[] memory ids = _asSingletonArray(id);
        uint256[] memory amounts = _asSingletonArray(amount);

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);

        _afterTokenTransfer(operator, from, address(0), ids, amounts, "");
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `ids` and `amounts` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non-ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 25 of 48 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 26 of 48 : IERC1155.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 27 of 48 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
     * @dev Handles the receipt of a single ERC1155 token type. This function is
     * called at the end of a `safeTransferFrom` after the balance has been updated.
     *
     * NOTE: To accept the transfer, this must return
     * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
     * (i.e. 0xf23a6e61, or its own function selector).
     *
     * @param operator The address which initiated the transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param id The ID of the token being transferred
     * @param value The amount of tokens being transferred
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
     */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
     * @dev Handles the receipt of a multiple ERC1155 token types. This function
     * is called at the end of a `safeBatchTransferFrom` after the balances have
     * been updated.
     *
     * NOTE: To accept the transfer(s), this must return
     * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
     * (i.e. 0xbc197c81, or its own function selector).
     *
     * @param operator The address which initiated the batch transfer (i.e. msg.sender)
     * @param from The address which previously owned the token
     * @param ids An array containing ids of each token being transferred (order and length must match values array)
     * @param values An array containing amounts of each token being transferred (order and length must match ids array)
     * @param data Additional data with no specified format
     * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
     */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 28 of 48 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 29 of 48 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 30 of 48 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 31 of 48 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.2) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _ownerOf(tokenId);
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not token owner or approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _ownerOf(tokenId) != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId, 1);

        // Check that tokenId was not minted by `_beforeTokenTransfer` hook
        require(!_exists(tokenId), "ERC721: token already minted");

        unchecked {
            // Will not overflow unless all 2**256 token ids are minted to the same owner.
            // Given that tokens are minted one by one, it is impossible in practice that
            // this ever happens. Might change if we allow batch minting.
            // The ERC fails to describe this case.
            _balances[to] += 1;
        }

        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId, 1);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId, 1);

        // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook
        owner = ERC721.ownerOf(tokenId);

        // Clear approvals
        delete _tokenApprovals[tokenId];

        unchecked {
            // Cannot overflow, as that would require more tokens to be burned/transferred
            // out than the owner initially received through minting and transferring in.
            _balances[owner] -= 1;
        }
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId, 1);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId, 1);

        // Check that tokenId was not transferred by `_beforeTokenTransfer` hook
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");

        // Clear approvals from the previous owner
        delete _tokenApprovals[tokenId];

        unchecked {
            // `_balances[from]` cannot overflow for the same reason as described in `_burn`:
            // `from`'s balance is the number of token held, which is at least one before the current
            // transfer.
            // `_balances[to]` could overflow in the conditions described in `_mint`. That would require
            // all 2**256 token ids to be minted, which in practice is impossible.
            _balances[from] -= 1;
            _balances[to] += 1;
        }
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId, 1);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`.
     * - When `from` is zero, the tokens will be minted for `to`.
     * - When `to` is zero, ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}

    /**
     * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is
     * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`.
     * - When `from` is zero, the tokens were minted for `to`.
     * - When `to` is zero, ``from``'s tokens were burned.
     * - `from` and `to` are never both zero.
     * - `batchSize` is non-zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 firstTokenId,
        uint256 batchSize
    ) internal virtual {}

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant
     * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such
     * that `ownerOf(tokenId)` is `a`.
     */
    // solhint-disable-next-line func-name-mixedcase
    function __unsafe_increaseBalance(address account, uint256 amount) internal {
        _balances[account] += amount;
    }
}

File 32 of 48 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

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

File 33 of 48 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

File 34 of 48 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface 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 35 of 48 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

File 37 of 48 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 38 of 48 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 39 of 48 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface 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 40 of 48 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

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

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

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

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

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

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

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

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

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

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

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

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

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

File 41 of 48 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

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

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

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

File 42 of 48 : GenericERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.21;

import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";

contract GenericERC1155 is ERC1155 {
    constructor() ERC1155("") {}
}

File 43 of 48 : GenericERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.21;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract GenericERC20 is ERC20 {
    constructor() ERC20("OGY TOKEN", "OGY") {}

    function mint() external {
        _mint(msg.sender, 1000);
    }
}

File 44 of 48 : GenericERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.21;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";

contract GenericERC721 is ERC721 {
    constructor() ERC721("Generic Collection", "GC") {}

    function mint() external {
        _mint(msg.sender, 0);
    }
}

File 45 of 48 : Recoverable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.21;

import "@openzeppelin/contracts/interfaces/IERC20.sol";
import "@openzeppelin/contracts/interfaces/IERC721.sol";
import "@openzeppelin/contracts/interfaces/IERC1155.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

abstract contract Recoverable is Ownable {
    event RecoveredERC20(address indexed token, uint256 amount);
    event RecoveredERC721(address indexed token, uint256 indexed tokenId);
    event RecoveredERC1155(address indexed token, uint256 indexed tokenId, uint256 amount);

    error InvalidTokenAddress();
    error NothingToRecover();

    function recoverERC1155(address tokenAddress, uint256 tokenId) external onlyOwner {
        if (tokenAddress == address(0)) revert InvalidTokenAddress();

        IERC1155 token = IERC1155(tokenAddress);
        uint256 balance = token.balanceOf(address(this), tokenId);
        if (balance == 0) revert NothingToRecover();

        token.safeTransferFrom(address(this), owner(), tokenId, balance, "");
        emit RecoveredERC1155(tokenAddress, tokenId, balance);
    }

    function recoverERC20(address tokenAddress) external onlyOwner {
        if (tokenAddress == address(0)) revert InvalidTokenAddress();

        IERC20 token = IERC20(tokenAddress);
        uint256 balance = token.balanceOf(address(this));
        if (balance == 0) revert NothingToRecover();

        token.transfer(owner(), balance);
        emit RecoveredERC20(tokenAddress, balance);
    }

    function recoverERC721(address tokenAddress, uint256 tokenId) external onlyOwner {
        if (tokenAddress == address(0)) revert InvalidTokenAddress();

        IERC721 token = IERC721(tokenAddress);
        address ownerOfToken = token.ownerOf(tokenId);
        if (ownerOfToken != address(this)) revert NothingToRecover();

        token.safeTransferFrom(address(this), owner(), tokenId);
        emit RecoveredERC721(tokenAddress, tokenId);
    }
}

File 46 of 48 : Signature.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.21;

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";

abstract contract Signature {
    using ECDSA for bytes32;

    address private signer;
    mapping(bytes32 => bool) public nonces;

    function _setSigner(address signer_) internal {
        require(signer_ != address(0), "Invalid signer address");
        signer = signer_;
    }

    function _isValidSignature(
        bytes32 data,
        bytes memory signature
    ) public view returns (bool) {
        return data.toEthSignedMessageHash().recover(signature) == signer;
    }

    function isValidNonce(bytes32 _nonce) public view returns (bool) {
        return !nonces[_nonce];
    }

    function isValidTime(uint128 _start, uint128 _end) public view returns (bool) {
        return _start <= block.timestamp && _end >= block.timestamp;
    }

    function _invalidateNonce(bytes32 _nonce) internal {
        nonces[_nonce] = true;
    }
}

File 47 of 48 : The8102Blueprints.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.21;

import "@limitbreak/creator-token-contracts/contracts/access/OwnableBasic.sol";
import "@limitbreak/creator-token-contracts/contracts/erc721c/ERC721C.sol";
import "@limitbreak/creator-token-contracts/contracts/programmable-royalties/BasicRoyalties.sol";
import "./Signature.sol";
import "./Recoverable.sol";

contract Blueprints is OwnableBasic, ERC721C, BasicRoyalties, Signature, Recoverable {
    string public baseURI;
    bool public isMintEnabled = false;

    error MintNotEnabled();
    error NonceAlreadyUsed();
    error InvalidSignature();
    error InvalidRecipient();
    error InvalidCaller();
    error RequestExpired();

    struct MintRequest {
        address to;
        address from;
        uint256[] tokenIds;
        uint128 validityStartTimestamp;
        uint128 validityEndTimestamp;
        bytes32 nonce;
    }

    constructor(
        address royaltyReceiver_,
        uint96 royaltyFeeNumerator_,
        string memory name_,
        string memory symbol_)
    ERC721OpenZeppelin(name_, symbol_) BasicRoyalties(royaltyReceiver_, royaltyFeeNumerator_) {
        _transferOwnership(royaltyReceiver_);
    }

    function mint(MintRequest calldata req_, bytes calldata signature_) external {
        if (!isMintEnabled) revert MintNotEnabled();
        if (req_.to == address(0)) revert InvalidRecipient();
        if (req_.from == address(0) || req_.from != _msgSender()) revert InvalidCaller();
        if (!isValidNonce(req_.nonce)) revert NonceAlreadyUsed();
        if (!isValidTime(req_.validityStartTimestamp, req_.validityEndTimestamp)) revert RequestExpired();

        _invalidateNonce(req_.nonce);

        bytes32 message = getMintMessageHash(req_.to, req_.from, req_.tokenIds, req_.validityStartTimestamp, req_.validityEndTimestamp, req_.nonce);
        if (!_isValidSignature(message, signature_)) revert InvalidSignature();

        for (uint256 i = 0; i < req_.tokenIds.length; i++) {
            _safeMint(req_.to, req_.tokenIds[i]);
        }
    }

    function getMintMessageHash(
        address to_,
        address from_,
        uint256[] calldata tokenIds_,
        uint128 validityStartTimestamp_,
        uint128 validityEndTimestamp_,
        bytes32 nonce_
    ) public pure returns (bytes32) {
        return keccak256(
            abi.encodePacked(
                to_,
                from_,
                tokenIds_,
                validityStartTimestamp_,
                validityEndTimestamp_,
                nonce_
            )
        );
    }

    function setSigner(address signer_) external onlyOwner {
        _setSigner(signer_);
    }

    function setMintEnabled(bool mintEnabled_) external onlyOwner {
        isMintEnabled = mintEnabled_;
    }

    function supportsInterface(bytes4 interfaceId_) public view virtual override(ERC721C, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId_);
    }

    function setBaseURI(string memory baseUri_) external onlyOwner {
        baseURI = baseUri_;
    }

    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }
}

File 48 of 48 : The8102Mods.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.21;

import "@limitbreak/creator-token-contracts/contracts/access/OwnableBasic.sol";
import "@limitbreak/creator-token-contracts/contracts/erc721c/ERC721C.sol";
import "@limitbreak/creator-token-contracts/contracts/programmable-royalties/BasicRoyalties.sol";
import "./Signature.sol";
import "./Recoverable.sol";

contract Mods is OwnableBasic, ERC721C, BasicRoyalties, Signature, Recoverable {
    string public baseURI;
    bool public isBurnEnabled = false;
    bool public isMintEnabled = false;

    error BurnNotEnabled();
    error MintNotEnabled();
    error NothingToBurn();
    error NotAllowedToBurn();
    error NonceAlreadyUsed();
    error InvalidSignature();
    error InvalidRecipient();
    error InvalidCaller();
    error RequestExpired();

    event Burned(uint tokenId);

    struct BurnRequest {
        address from;
        uint256[] tokenIds;
        uint128 validityStartTimestamp;
        uint128 validityEndTimestamp;
        bytes32 nonce;
    }

    struct MintRequest {
        address to;
        address from;
        uint256[] tokenIds;
        uint128 validityStartTimestamp;
        uint128 validityEndTimestamp;
        bytes32 nonce;
    }

    constructor(
        address royaltyReceiver_,
        uint96 royaltyFeeNumerator_,
        string memory name_,
        string memory symbol_)
    ERC721OpenZeppelin(name_, symbol_) BasicRoyalties(royaltyReceiver_, royaltyFeeNumerator_) {
        _transferOwnership(royaltyReceiver_);
    }

    function mint(MintRequest calldata req_, bytes calldata signature_) external {
        if (!isMintEnabled) revert MintNotEnabled();
        if (req_.to == address(0)) revert InvalidRecipient();
        if (req_.from == address(0) || req_.from != _msgSender()) revert InvalidCaller();
        if (!isValidNonce(req_.nonce)) revert NonceAlreadyUsed();
        if (!isValidTime(req_.validityStartTimestamp, req_.validityEndTimestamp)) revert RequestExpired();

        _invalidateNonce(req_.nonce);

        bytes32 message = getMintMessageHash(req_.to, req_.from, req_.tokenIds, req_.validityStartTimestamp, req_.validityEndTimestamp, req_.nonce);
        if (!_isValidSignature(message, signature_)) revert InvalidSignature();

        for (uint256 i = 0; i < req_.tokenIds.length; i++) {
            _safeMint(req_.to, req_.tokenIds[i]);
        }
    }

    function burn(BurnRequest calldata req_, bytes calldata signature_) external {
        if (!isBurnEnabled) revert BurnNotEnabled();
        if (req_.from == address(0) || req_.from != _msgSender()) revert InvalidCaller();
        if (!isValidNonce(req_.nonce)) revert NonceAlreadyUsed();
        if (!isValidTime(req_.validityStartTimestamp, req_.validityEndTimestamp)) revert RequestExpired();

        _invalidateNonce(req_.nonce);

        bytes32 message = getBurnMessageHash(req_.from, req_.tokenIds, req_.validityStartTimestamp, req_.validityEndTimestamp, req_.nonce);
        if (!_isValidSignature(message, signature_)) revert InvalidSignature();

        for (uint256 i = 0; i < req_.tokenIds.length; i++) {
            if (!_isApprovedOrOwner(_msgSender(), req_.tokenIds[i])) revert NotAllowedToBurn();
            _burn(req_.tokenIds[i]);
            emit Burned(req_.tokenIds[i]);
        }
    }

    function getMintMessageHash(
        address to_,
        address from_,
        uint256[] calldata tokenIds_,
        uint128 validityStartTimestamp_,
        uint128 validityEndTimestamp_,
        bytes32 nonce_
    ) public pure returns (bytes32) {
        return keccak256(
            abi.encodePacked(
                to_,
                from_,
                tokenIds_,
                validityStartTimestamp_,
                validityEndTimestamp_,
                nonce_
            )
        );
    }

    function getBurnMessageHash(
        address from_,
        uint256[] calldata tokenIds_,
        uint128 validityStartTimestamp_,
        uint128 validityEndTimestamp_,
        bytes32 nonce_
    ) public pure returns (bytes32) {
        return keccak256(
            abi.encodePacked(
                from_,
                tokenIds_,
                validityStartTimestamp_,
                validityEndTimestamp_,
                nonce_
            )
        );
    }

    function setSigner(address signer_) external onlyOwner {
        _setSigner(signer_);
    }

    function setBurnEnabled(bool burnEnabled_) external onlyOwner {
        isBurnEnabled = burnEnabled_;
    }

    function setMintEnabled(bool mintEnabled_) external onlyOwner {
        isMintEnabled = mintEnabled_;
    }

    function supportsInterface(bytes4 interfaceId_) public view virtual override(ERC721C, ERC2981) returns (bool) {
        return super.supportsInterface(interfaceId_);
    }

    function setBaseURI(string memory baseUri_) external onlyOwner {
        baseURI = baseUri_;
    }

    function _baseURI() internal view override returns (string memory) {
        return baseURI;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"royaltyReceiver_","type":"address"},{"internalType":"uint96","name":"royaltyFeeNumerator_","type":"uint96"},{"internalType":"string","name":"uri_","type":"string"},{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AirdropFailed_RecipientAmountsMismatch","type":"error"},{"inputs":[],"name":"AirdropFailed_RecipientListEmpty","type":"error"},{"inputs":[],"name":"AirdropFailed_TooLarge","type":"error"},{"inputs":[],"name":"BurnNotEnabled","type":"error"},{"inputs":[],"name":"CreatorTokenBase__InvalidTransferValidatorContract","type":"error"},{"inputs":[],"name":"CreatorTokenBase__SetTransferValidatorFirst","type":"error"},{"inputs":[],"name":"ExceedsMaxSupply","type":"error"},{"inputs":[],"name":"InvalidAmount","type":"error"},{"inputs":[],"name":"InvalidTokenAddress","type":"error"},{"inputs":[],"name":"NothingToRecover","type":"error"},{"inputs":[],"name":"ShouldNotMintToBurnAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"tokenId","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"amount","type":"uint256[]"}],"name":"BurnedBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"DefaultRoyaltySet","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":"token","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RecoveredERC1155","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RecoveredERC20","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"RecoveredERC721","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"TokenRoyaltySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldValidator","type":"address"},{"indexed":false,"internalType":"address","name":"newValidator","type":"address"}],"name":"TransferValidatorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"inputs":[],"name":"DEFAULT_OPERATOR_WHITELIST_ID","outputs":[{"internalType":"uint120","name":"","type":"uint120"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_TRANSFER_SECURITY_LEVEL","outputs":[{"internalType":"enum TransferSecurityLevels","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_TRANSFER_VALIDATOR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"batchBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getPermittedContractReceivers","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSecurityPolicy","outputs":[{"components":[{"internalType":"enum TransferSecurityLevels","name":"transferSecurityLevel","type":"uint8"},{"internalType":"uint120","name":"operatorWhitelistId","type":"uint120"},{"internalType":"uint120","name":"permittedContractReceiversId","type":"uint120"}],"internalType":"struct CollectionSecurityPolicy","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTransferValidator","outputs":[{"internalType":"contract ICreatorTokenTransferValidator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistedOperators","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isBurnEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"isContractReceiverPermitted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"isOperatorWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"caller","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"isTransferAllowed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"maxTokenSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"recoverERC1155","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"recoverERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","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":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isBurnable","type":"bool"}],"name":"setBurnable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum TransferSecurityLevels","name":"level","type":"uint8"},{"internalType":"uint120","name":"operatorWhitelistId","type":"uint120"},{"internalType":"uint120","name":"permittedContractReceiversAllowlistId","type":"uint120"}],"name":"setToCustomSecurityPolicy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"validator","type":"address"},{"internalType":"enum TransferSecurityLevels","name":"level","type":"uint8"},{"internalType":"uint120","name":"operatorWhitelistId","type":"uint120"},{"internalType":"uint120","name":"permittedContractReceiversAllowlistId","type":"uint120"}],"name":"setToCustomValidatorAndSecurityPolicy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setToDefaultSecurityPolicy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"transferValidator_","type":"address"}],"name":"setTransferValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri_","type":"string"}],"name":"setUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

6080604052600b805460ff191690553480156200001b57600080fd5b50604051620044c6380380620044c68339810160408190526200003e9162000323565b848484806200004d816200009e565b506200005b905033620000b0565b62000067828262000102565b506007905062000078838262000485565b50600862000087828262000485565b506200009385620000b0565b505050505062000551565b6002620000ac828262000485565b5050565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200010e828262000159565b6040516001600160601b03821681526001600160a01b038316907f8a8bae378cb731c5c40b632330c6836c2f916f48edb967699c86736f9a6a76ef9060200160405180910390a25050565b6127106001600160601b0382161115620001cd5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620002255760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620001c4565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600555565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200028657600080fd5b81516001600160401b0380821115620002a357620002a36200025e565b604051601f8301601f19908116603f01168101908282118183101715620002ce57620002ce6200025e565b81604052838152602092508683858801011115620002eb57600080fd5b600091505b838210156200030f5785820183015181830184015290820190620002f0565b600093810190920192909252949350505050565b600080600080600060a086880312156200033c57600080fd5b85516001600160a01b03811681146200035457600080fd5b60208701519095506001600160601b03811681146200037257600080fd5b60408701519094506001600160401b03808211156200039057600080fd5b6200039e89838a0162000274565b94506060880151915080821115620003b557600080fd5b620003c389838a0162000274565b93506080880151915080821115620003da57600080fd5b50620003e98882890162000274565b9150509295509295909350565b600181811c908216806200040b57607f821691505b6020821081036200042c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200048057600081815260208120601f850160051c810160208610156200045b5750805b601f850160051c820191505b818110156200047c5782815560010162000467565b5050505b505050565b81516001600160401b03811115620004a157620004a16200025e565b620004b981620004b28454620003f6565b8462000432565b602080601f831160018114620004f15760008415620004d85750858301515b600019600386901b1c1916600185901b1785556200047c565b600085815260208120601f198616915b82811015620005225788860151825594840194600190910190840162000501565b5085821015620005415787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b613f6580620005616000396000f3fe608060405234801561001057600080fd5b506004361061025d5760003560e01c80636134716211610146578063a22cb465116100c3578063d007af5c11610087578063d007af5c14610581578063d5516e7f14610589578063e985e9c51461059c578063f242432a146105d8578063f2fde38b146105eb578063fd762d92146105fe57600080fd5b8063a22cb46514610513578063a9fc664e14610526578063b390c0ab14610539578063bd85b0391461054c578063be537f431461056c57600080fd5b80638da5cb5b1161010a5780638da5cb5b146104c157806395d89b41146104d25780639b642de1146104da5780639d645a44146104ed5780639e8c708e1461050057600080fd5b806361347162146104785780636c3b86991461048b578063715018a61461049357806380929e5b1461049b578063819d4cc6146104ae57600080fd5b80631c33b328116101df57806336f5cba5116101a357806336f5cba5146103dd578063495c8bf9146103fd5780634e1273f4146104125780635aed66dd146104325780635c654ad9146104455780635d4c1d461461045857600080fd5b80631c33b3281461035d57806320ec271b146103725780632a55205a146103855780632e8da829146103b75780632eb2c2d6146103ca57600080fd5b806307ebec271161022657806307ebec2714610306578063098144d4146103135780630e89341c146103245780631b25b077146103375780631b2ef1ca1461034a57600080fd5b8062fdd58e14610262578063014635461461028857806301ffc9a7146102b957806304634d8d146102dc57806306fdde03146102f1575b600080fd5b610275610270366004612ed3565b610611565b6040519081526020015b60405180910390f35b6102a171721c310194ccfc01e523fc93c9cccfa2a0ac81565b6040516001600160a01b03909116815260200161027f565b6102cc6102c7366004612f15565b6106aa565b604051901515815260200161027f565b6102ef6102ea366004612f32565b6106b5565b005b6102f96106cb565b60405161027f9190612fc7565b600b546102cc9060ff1681565b6004546001600160a01b03166102a1565b6102f9610332366004612fda565b610759565b6102cc610345366004612ff3565b610794565b6102ef61035836600461303e565b61082f565b610365600181565b60405161027f9190613082565b6102ef6103803660046130d4565b6108df565b61039861039336600461303e565b610a5f565b604080516001600160a01b03909316835260208301919091520161027f565b6102cc6103c536600461313f565b610b0d565b6102ef6103d83660046132a5565b610c1a565b6102756103eb366004612fda565b60096020526000908152604090205481565b610405610c66565b60405161027f9190613352565b61042561042036600461339f565b610d78565b60405161027f91906134a6565b6102ef61044036600461303e565b610ea1565b6102ef610453366004612ed3565b610f01565b610460600181565b6040516001600160781b03909116815260200161027f565b6102ef6104863660046134db565b6110ac565b6102ef611217565b6102ef611310565b6102ef6104a9366004613529565b611324565b6102ef6104bc366004612ed3565b61133f565b6003546001600160a01b03166102a1565b6102f96114cc565b6102ef6104e8366004613546565b6114d9565b6102cc6104fb36600461313f565b611520565b6102ef61050e36600461313f565b6115e9565b6102ef6105213660046135b7565b611783565b6102ef61053436600461313f565b61178e565b6102ef61054736600461303e565b6118af565b61027561055a366004612fda565b6000908152600a602052604090205490565b610574611961565b60405161027f91906135e5565b610405611a1d565b6102ef610597366004613621565b611ad7565b6102cc6105aa36600461369a565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6102ef6105e63660046136c8565b611ca2565b6102ef6105f936600461313f565b611ce7565b6102ef61060c366004613730565b611d60565b60006001600160a01b0383166106815760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006106a482611e5f565b6106bd611e84565b6106c78282611ede565b5050565b600780546106d89061378c565b80601f01602080910402602001604051908101604052809291908181526020018280546107049061378c565b80156107515780601f1061072657610100808354040283529160200191610751565b820191906000526020600020905b81548152906001019060200180831161073457829003601f168201915b505050505081565b606061076482611f2c565b61076d83611fc0565b60405160200161077e9291906137c6565b6040516020818303038152906040529050919050565b6004546000906001600160a01b031615610824576004805460405163050bf71960e31b81526001600160a01b03878116938201939093528583166024820152848316604482015291169063285fb8c89060640160006040518083038186803b1580156107ff57600080fd5b505afa925050508015610810575060015b61081c57506000610828565b506001610828565b5060015b9392505050565b610837611e84565b806000036108585760405163162908e360e11b815260040160405180910390fd5b600082815260096020908152604080832054600a9092529091205461087e90839061381b565b111561089d5760405163c30436e960e01b815260040160405180910390fd5b6108b833838360405180602001604052806000815250612052565b6000828152600a6020526040812080548392906108d690849061381b565b90915550505050565b600b5460ff1661090257604051632b7e2ae360e01b815260040160405180910390fd5b82158061090f5750828114155b1561092d5760405163162908e360e11b815260040160405180910390fd5b61099b338585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060408051602080890282810182019093528882529093508892508791829185019084908082843760009201919091525061218492505050565b60005b83811015610a11578282828181106109b8576109b861382e565b90506020020135600a60008787858181106109d5576109d561382e565b90506020020135815260200190815260200160002060008282546109f99190613844565b90915550819050610a0981613857565b91505061099e565b50336001600160a01b03167f5c9b7f613a622104f08e605548b653df10c7e4f860716265d9e3f69dbfb64b2685858585604051610a5194939291906138a2565b60405180910390a250505050565b60008281526006602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610ad45750604080518082019091526005546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610af3906001600160601b0316876138d4565b610afd91906138eb565b91519350909150505b9250929050565b6004546000906001600160a01b031615610c125760048054604051635caaa2a960e11b815230928101929092526001600160a01b03169063d72dde5e90829063b955455290602401606060405180830381865afa158015610b72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b96919061390d565b602001516040516001600160e01b031960e084901b1681526001600160781b0390911660048201526001600160a01b03851660248201526044015b602060405180830381865afa158015610bee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106a4919061397e565b506000919050565b6001600160a01b038516331480610c365750610c3685336105aa565b610c525760405162461bcd60e51b81526004016106789061399b565b610c5f858585858561232a565b5050505050565b6004546060906001600160a01b031615610d655760048054604051635caaa2a960e11b815230928101929092526001600160a01b031690633fe5df9990829063b955455290602401606060405180830381865afa158015610ccb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cef919061390d565b602001516040516001600160e01b031960e084901b1681526001600160781b0390911660048201526024015b600060405180830381865afa158015610d38573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d6091908101906139e9565b905090565b5060408051600081526020810190915290565b60608151835114610ddd5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610678565b600083516001600160401b03811115610df857610df861315c565b604051908082528060200260200182016040528015610e21578160200160208202803683370190505b50905060005b8451811015610e9957610e6c858281518110610e4557610e4561382e565b6020026020010151858381518110610e5f57610e5f61382e565b6020026020010151610611565b828281518110610e7e57610e7e61382e565b6020908102919091010152610e9281613857565b9050610e27565b509392505050565b610ea9611e84565b6000828152600a60205260409020541580610eea575060008281526009602052604090205481108015610eea57506000828152600a60205260409020548110155b156106c75760009182526009602052604090912055565b610f09611e84565b6001600160a01b038216610f3057604051630f58058360e11b815260040160405180910390fd5b604051627eeac760e11b81523060048201526024810182905282906000906001600160a01b0383169062fdd58e90604401602060405180830381865afa158015610f7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa29190613a82565b905080600003610fc55760405163157474a960e31b815260040160405180910390fd5b816001600160a01b031663f242432a30610fe76003546001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604481018690526064810184905260a06084820152600060a482015260c401600060405180830381600087803b15801561104b57600080fd5b505af115801561105f573d6000803e3d6000fd5b5050505082846001600160a01b03167e04b148840595eb234e6148251c2c9c78d692171f32febbd992963e0c1385538360405161109e91815260200190565b60405180910390a350505050565b6110b46124da565b60006110c86004546001600160a01b031690565b90506001600160a01b0381166110f157604051631cffe3dd60e11b815260040160405180910390fd5b604051630368065360e61b81526001600160a01b0382169063da0194c09061111f9030908890600401613a9b565b600060405180830381600087803b15801561113957600080fd5b505af115801561114d573d6000803e3d6000fd5b5050604051631182550160e11b81526001600160a01b0384169250632304aa02915061117f9030908790600401613ab8565b600060405180830381600087803b15801561119957600080fd5b505af11580156111ad573d6000803e3d6000fd5b505060405163235d10c560e21b81526001600160a01b0384169250638d74431491506111df9030908690600401613ab8565b600060405180830381600087803b1580156111f957600080fd5b505af115801561120d573d6000803e3d6000fd5b5050505050505050565b61121f6124da565b61123a71721c310194ccfc01e523fc93c9cccfa2a0ac61178e565b604051630368065360e61b815271721c310194ccfc01e523fc93c9cccfa2a0ac9063da0194c090611272903090600190600401613a9b565b600060405180830381600087803b15801561128c57600080fd5b505af11580156112a0573d6000803e3d6000fd5b5050604051631182550160e11b815271721c310194ccfc01e523fc93c9cccfa2a0ac9250632304aa0291506112dc903090600190600401613ab8565b600060405180830381600087803b1580156112f657600080fd5b505af115801561130a573d6000803e3d6000fd5b50505050565b611318611e84565b61132260006124e2565b565b61132c611e84565b600b805460ff1916911515919091179055565b611347611e84565b6001600160a01b03821661136e57604051630f58058360e11b815260040160405180910390fd5b6040516331a9108f60e11b81526004810182905282906000906001600160a01b03831690636352211e90602401602060405180830381865afa1580156113b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113dc9190613ada565b90506001600160a01b03811630146114075760405163157474a960e31b815260040160405180910390fd5b816001600160a01b03166342842e0e306114296003546001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260448101869052606401600060405180830381600087803b15801561147857600080fd5b505af115801561148c573d6000803e3d6000fd5b50506040518592506001600160a01b03871691507f57519b6a0997d7d44511836bcee0a36871aa79d445816f6c464abb0cd9d3f3e890600090a350505050565b600880546106d89061378c565b6114e1611e84565b6106c782828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061253492505050565b6004546000906001600160a01b031615610c125760048054604051635caaa2a960e11b815230928101929092526001600160a01b031690639445f53090829063b955455290602401606060405180830381865afa158015611585573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115a9919061390d565b60409081015190516001600160e01b031960e084901b1681526001600160781b0390911660048201526001600160a01b0385166024820152604401610bd1565b6115f1611e84565b6001600160a01b03811661161857604051630f58058360e11b815260040160405180910390fd5b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611661573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116859190613a82565b9050806000036116a85760405163157474a960e31b815260040160405180910390fd5b816001600160a01b031663a9059cbb6116c96003546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015611716573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061173a919061397e565b50826001600160a01b03167f55350610fe57096d8c0ffa30beede987326bccfcb0b4415804164d0dd50ce8b18260405161177691815260200190565b60405180910390a2505050565b6106c7338383612540565b6117966124da565b60006001600160a01b0382163b15611811576040516301ffc9a760e01b8152600060048201526001600160a01b038316906301ffc9a790602401602060405180830381865afa925050508015611809575060408051601f3d908101601f191682019092526118069181019061397e565b60015b156118115790505b6001600160a01b03821615801590611827575080155b15611845576040516332483afb60e01b815260040160405180910390fd5b600454604080516001600160a01b03928316815291841660208301527fcc5dc080ff977b3c3a211fa63ab74f90f658f5ba9d3236e92c8f59570f442aac910160405180910390a150600480546001600160a01b0319166001600160a01b0392909216919091179055565b600b5460ff166118d257604051632b7e2ae360e01b815260040160405180910390fd5b806000036118f35760405163162908e360e11b815260040160405180910390fd5b6118fe338383612620565b6000828152600a60205260408120805483929061191c908490613844565b9091555050604080518381526020810183905233917f23ff0e75edf108e3d0392d92e13e8c8a868ef19001bd49f9e94876dc46dff87f91015b60405180910390a25050565b60408051606081018252600080825260208201819052918101919091526004546001600160a01b0316156119fc5760048054604051635caaa2a960e11b815230928101929092526001600160a01b03169063b955455290602401606060405180830381865afa1580156119d8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d60919061390d565b50604080516060810182526000808252602082018190529181019190915290565b6004546060906001600160a01b031615610d655760048054604051635caaa2a960e11b815230928101929092526001600160a01b0316906317e94a6c90829063b955455290602401606060405180830381865afa158015611a82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aa6919061390d565b60409081015190516001600160e01b031960e084901b1681526001600160781b039091166004820152602401610d1b565b611adf611e84565b6064831115611b0157604051634bb6586b60e01b815260040160405180910390fd5b6000839003611b235760405163248d08ff60e21b815260040160405180910390fd5b828114611b4357604051636b378ec560e01b815260040160405180910390fd5b60005b83811015611c9a57828282818110611b6057611b6061382e565b90506020020135600003611b875760405163162908e360e11b815260040160405180910390fd5b600086815260096020526040902054838383818110611ba857611ba861382e565b90506020020135611bc5886000908152600a602052604090205490565b611bcf919061381b565b1115611bee5760405163c30436e960e01b815260040160405180910390fd5b611c47858583818110611c0357611c0361382e565b9050602002016020810190611c18919061313f565b87858585818110611c2b57611c2b61382e565b9050602002013560405180602001604052806000815250612052565b828282818110611c5957611c5961382e565b90506020020135600a60008881526020019081526020016000206000828254611c82919061381b565b90915550819050611c9281613857565b915050611b46565b505050505050565b6001600160a01b038516331480611cbe5750611cbe85336105aa565b611cda5760405162461bcd60e51b81526004016106789061399b565b610c5f8585858585612742565b611cef611e84565b6001600160a01b038116611d545760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610678565b611d5d816124e2565b50565b611d686124da565b611d718461178e565b604051630368065360e61b81526001600160a01b0385169063da0194c090611d9f9030908790600401613a9b565b600060405180830381600087803b158015611db957600080fd5b505af1158015611dcd573d6000803e3d6000fd5b5050604051631182550160e11b81526001600160a01b0387169250632304aa029150611dff9030908690600401613ab8565b600060405180830381600087803b158015611e1957600080fd5b505af1158015611e2d573d6000803e3d6000fd5b505060405163235d10c560e21b81526001600160a01b0387169250638d74431491506111df9030908590600401613ab8565b60006001600160e01b0319821663152a902d60e11b14806106a457506106a482612888565b6003546001600160a01b031633146113225760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610678565b611ee882826128ad565b6040516001600160601b03821681526001600160a01b038316907f8a8bae378cb731c5c40b632330c6836c2f916f48edb967699c86736f9a6a76ef90602001611955565b606060028054611f3b9061378c565b80601f0160208091040260200160405190810160405280929190818152602001828054611f679061378c565b8015611fb45780601f10611f8957610100808354040283529160200191611fb4565b820191906000526020600020905b815481529060010190602001808311611f9757829003601f168201915b50505050509050919050565b60606000611fcd836129aa565b60010190506000816001600160401b03811115611fec57611fec61315c565b6040519080825280601f01601f191660200182016040528015612016576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461202057509392505050565b6001600160a01b0384166120b25760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610678565b3360006120be85612a82565b905060006120cb85612a82565b90506120dc83600089858589612acd565b6000868152602081815260408083206001600160a01b038b1684529091528120805487929061210c90849061381b565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461216c83600089858589612b06565b61217b83600089898989612b3f565b50505050505050565b6001600160a01b0383166121aa5760405162461bcd60e51b815260040161067890613af7565b80518251146121cb5760405162461bcd60e51b815260040161067890613b3a565b60003390506121ee81856000868660405180602001604052806000815250612acd565b60005b83518110156122b357600084828151811061220e5761220e61382e565b60200260200101519050600084838151811061222c5761222c61382e565b602090810291909101810151600084815280835260408082206001600160a01b038c16835290935291909120549091508181101561227c5760405162461bcd60e51b815260040161067890613b82565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806122ab81613857565b9150506121f1565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612304929190613bc6565b60405180910390a461130a81856000868660405180602001604052806000815250612b06565b815183511461234b5760405162461bcd60e51b815260040161067890613b3a565b6001600160a01b0384166123715760405162461bcd60e51b815260040161067890613bf4565b33612380818787878787612acd565b60005b84518110156124665760008582815181106123a0576123a061382e565b6020026020010151905060008583815181106123be576123be61382e565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561240e5760405162461bcd60e51b815260040161067890613c39565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061244b90849061381b565b925050819055505050508061245f90613857565b9050612383565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516124b6929190613bc6565b60405180910390a46124cc818787878787612b06565b611c9a818787878787612c9a565b611322611e84565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60026106c78282613cce565b816001600160a01b0316836001600160a01b0316036125b35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610678565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383166126465760405162461bcd60e51b815260040161067890613af7565b33600061265284612a82565b9050600061265f84612a82565b905061267f83876000858560405180602001604052806000815250612acd565b6000858152602081815260408083206001600160a01b038a168452909152902054848110156126c05760405162461bcd60e51b815260040161067890613b82565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461217b84886000868660405180602001604052806000815250612b06565b6001600160a01b0384166127685760405162461bcd60e51b815260040161067890613bf4565b33600061277485612a82565b9050600061278185612a82565b9050612791838989858589612acd565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156127d25760405162461bcd60e51b815260040161067890613c39565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a1682528120805488929061280f90849061381b565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461286f848a8a86868a612b06565b61287d848a8a8a8a8a612b3f565b505050505050505050565b60006001600160e01b031982166310c8aba560e31b14806106a457506106a482612d55565b6127106001600160601b038216111561291b5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610678565b6001600160a01b0382166129715760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610678565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600555565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106129e95772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612a15576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612a3357662386f26fc10000830492506010015b6305f5e1008310612a4b576305f5e100830492506008015b6127108310612a5f57612710830492506004015b60648310612a71576064830492506002015b600a83106106a45760010192915050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612abc57612abc61382e565b602090810291909101015292915050565b825160005b8181101561120d57612afe8787878481518110612af157612af161382e565b6020026020010151612da5565b600101612ad2565b825160005b8181101561120d57612b378787878481518110612b2a57612b2a61382e565b6020026020010151612dfb565b600101612b0b565b6001600160a01b0384163b15611c9a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612b839089908990889088908890600401613d8d565b6020604051808303816000875af1925050508015612bbe575060408051601f3d908101601f19168201909252612bbb91810190613dc7565b60015b612c6a57612bca613de4565b806308c379a003612c035750612bde613e00565b80612be95750612c05565b8060405162461bcd60e51b81526004016106789190612fc7565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610678565b6001600160e01b0319811663f23a6e6160e01b1461217b5760405162461bcd60e51b815260040161067890613e89565b6001600160a01b0384163b15611c9a5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612cde9089908990889088908890600401613ed1565b6020604051808303816000875af1925050508015612d19575060408051601f3d908101601f19168201909252612d1691810190613dc7565b60015b612d2557612bca613de4565b6001600160e01b0319811663bc197c8160e01b1461217b5760405162461bcd60e51b815260040161067890613e89565b60006001600160e01b03198216636cdb3d1360e11b1480612d8657506001600160e01b031982166303a24d0760e21b145b806106a457506301ffc9a760e01b6001600160e01b03198316146106a4565b6001600160a01b038381161590831615818015612dbf5750805b15612ddd57604051635cbd944160e01b815260040160405180910390fd5b8115612de9575b610c5f565b80612de457610c5f3386868634612e42565b6001600160a01b038381161590831615818015612e155750805b15612e3357604051635cbd944160e01b815260040160405180910390fd5b81612de45780612de457610c5f565b6004546001600160a01b031615610c5f576004805460405163050bf71960e31b81526001600160a01b03888116938201939093528683166024820152858316604482015291169063285fb8c89060640160006040518083038186803b158015612eaa57600080fd5b505afa15801561287d573d6000803e3d6000fd5b6001600160a01b0381168114611d5d57600080fd5b60008060408385031215612ee657600080fd5b8235612ef181612ebe565b946020939093013593505050565b6001600160e01b031981168114611d5d57600080fd5b600060208284031215612f2757600080fd5b813561082881612eff565b60008060408385031215612f4557600080fd5b8235612f5081612ebe565b915060208301356001600160601b0381168114612f6c57600080fd5b809150509250929050565b60005b83811015612f92578181015183820152602001612f7a565b50506000910152565b60008151808452612fb3816020860160208601612f77565b601f01601f19169290920160200192915050565b6020815260006108286020830184612f9b565b600060208284031215612fec57600080fd5b5035919050565b60008060006060848603121561300857600080fd5b833561301381612ebe565b9250602084013561302381612ebe565b9150604084013561303381612ebe565b809150509250925092565b6000806040838503121561305157600080fd5b50508035926020909101359150565b6007811061307e57634e487b7160e01b600052602160045260246000fd5b9052565b602081016106a48284613060565b60008083601f8401126130a257600080fd5b5081356001600160401b038111156130b957600080fd5b6020830191508360208260051b8501011115610b0657600080fd5b600080600080604085870312156130ea57600080fd5b84356001600160401b038082111561310157600080fd5b61310d88838901613090565b9096509450602087013591508082111561312657600080fd5b5061313387828801613090565b95989497509550505050565b60006020828403121561315157600080fd5b813561082881612ebe565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156131975761319761315c565b6040525050565b60006001600160401b038211156131b7576131b761315c565b5060051b60200190565b600082601f8301126131d257600080fd5b813560206131df8261319e565b6040516131ec8282613172565b83815260059390931b850182019282810191508684111561320c57600080fd5b8286015b848110156132275780358352918301918301613210565b509695505050505050565b600082601f83011261324357600080fd5b81356001600160401b0381111561325c5761325c61315c565b604051613273601f8301601f191660200182613172565b81815284602083860101111561328857600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156132bd57600080fd5b85356132c881612ebe565b945060208601356132d881612ebe565b935060408601356001600160401b03808211156132f457600080fd5b61330089838a016131c1565b9450606088013591508082111561331657600080fd5b61332289838a016131c1565b9350608088013591508082111561333857600080fd5b5061334588828901613232565b9150509295509295909350565b6020808252825182820181905260009190848201906040850190845b818110156133935783516001600160a01b03168352928401929184019160010161336e565b50909695505050505050565b600080604083850312156133b257600080fd5b82356001600160401b03808211156133c957600080fd5b818501915085601f8301126133dd57600080fd5b813560206133ea8261319e565b6040516133f78282613172565b83815260059390931b850182019282810191508984111561341757600080fd5b948201945b8386101561343e57853561342f81612ebe565b8252948201949082019061341c565b9650508601359250508082111561345457600080fd5b50613461858286016131c1565b9150509250929050565b600081518084526020808501945080840160005b8381101561349b5781518752958201959082019060010161347f565b509495945050505050565b602081526000610828602083018461346b565b60078110611d5d57600080fd5b6001600160781b0381168114611d5d57600080fd5b6000806000606084860312156134f057600080fd5b83356134fb816134b9565b9250602084013561350b816134c6565b91506040840135613033816134c6565b8015158114611d5d57600080fd5b60006020828403121561353b57600080fd5b81356108288161351b565b6000806020838503121561355957600080fd5b82356001600160401b038082111561357057600080fd5b818501915085601f83011261358457600080fd5b81358181111561359357600080fd5b8660208285010111156135a557600080fd5b60209290920196919550909350505050565b600080604083850312156135ca57600080fd5b82356135d581612ebe565b91506020830135612f6c8161351b565b60006060820190506135f8828451613060565b60208301516001600160781b038082166020850152806040860151166040850152505092915050565b60008060008060006060868803121561363957600080fd5b8535945060208601356001600160401b038082111561365757600080fd5b61366389838a01613090565b9096509450604088013591508082111561367c57600080fd5b5061368988828901613090565b969995985093965092949392505050565b600080604083850312156136ad57600080fd5b82356136b881612ebe565b91506020830135612f6c81612ebe565b600080600080600060a086880312156136e057600080fd5b85356136eb81612ebe565b945060208601356136fb81612ebe565b9350604086013592506060860135915060808601356001600160401b0381111561372457600080fd5b61334588828901613232565b6000806000806080858703121561374657600080fd5b843561375181612ebe565b93506020850135613761816134b9565b92506040850135613771816134c6565b91506060850135613781816134c6565b939692955090935050565b600181811c908216806137a057607f821691505b6020821081036137c057634e487b7160e01b600052602260045260246000fd5b50919050565b600083516137d8818460208801612f77565b8351908301906137ec818360208801612f77565b64173539b7b760d91b9101908152600501949350505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156106a4576106a4613805565b634e487b7160e01b600052603260045260246000fd5b818103818111156106a4576106a4613805565b60006001820161386957613869613805565b5060010190565b81835260006001600160fb1b0383111561388957600080fd5b8260051b80836020870137939093016020019392505050565b6040815260006138b6604083018688613870565b82810360208401526138c9818587613870565b979650505050505050565b80820281158282048414176106a4576106a4613805565b60008261390857634e487b7160e01b600052601260045260246000fd5b500490565b60006060828403121561391f57600080fd5b604051606081018181106001600160401b03821117156139415761394161315c565b604052825161394f816134b9565b8152602083015161395f816134c6565b60208201526040830151613972816134c6565b60408201529392505050565b60006020828403121561399057600080fd5b81516108288161351b565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b600060208083850312156139fc57600080fd5b82516001600160401b03811115613a1257600080fd5b8301601f81018513613a2357600080fd5b8051613a2e8161319e565b604051613a3b8282613172565b82815260059290921b8301840191848101915087831115613a5b57600080fd5b928401925b828410156138c9578351613a7381612ebe565b82529284019290840190613a60565b600060208284031215613a9457600080fd5b5051919050565b6001600160a01b0383168152604081016108286020830184613060565b6001600160a01b039290921682526001600160781b0316602082015260400190565b600060208284031215613aec57600080fd5b815161082881612ebe565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b604081526000613bd9604083018561346b565b8281036020840152613beb818561346b565b95945050505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b601f821115613cc957600081815260208120601f850160051c81016020861015613caa5750805b601f850160051c820191505b81811015611c9a57828155600101613cb6565b505050565b81516001600160401b03811115613ce757613ce761315c565b613cfb81613cf5845461378c565b84613c83565b602080601f831160018114613d305760008415613d185750858301515b600019600386901b1c1916600185901b178555611c9a565b600085815260208120601f198616915b82811015613d5f57888601518255948401946001909101908401613d40565b5085821015613d7d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906138c990830184612f9b565b600060208284031215613dd957600080fd5b815161082881612eff565b600060033d1115613dfd5760046000803e5060005160e01c5b90565b600060443d1015613e0e5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613e3d57505050505090565b8285019150815181811115613e555750505050505090565b843d8701016020828501011115613e6f5750505050505090565b613e7e60208286010187613172565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090613efd9083018661346b565b8281036060840152613f0f818661346b565b90508281036080840152613f238185612f9b565b9897505050505050505056fea26469706673582212206c549f329098f2c7a528f42439208f73dd823d6e70160a0c042afb5f7a4299a764736f6c634300081500330000000000000000000000001cb86e9240e615ed631ccc6e15c073980bc33b5f00000000000000000000000000000000000000000000000000000000000001a400000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000002a68747470733a2f2f7777772e6170692e626f726564383130322e636f6d2f6c6f6f742d6368657374732f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a4c6f6f744368657374730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024c43000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061025d5760003560e01c80636134716211610146578063a22cb465116100c3578063d007af5c11610087578063d007af5c14610581578063d5516e7f14610589578063e985e9c51461059c578063f242432a146105d8578063f2fde38b146105eb578063fd762d92146105fe57600080fd5b8063a22cb46514610513578063a9fc664e14610526578063b390c0ab14610539578063bd85b0391461054c578063be537f431461056c57600080fd5b80638da5cb5b1161010a5780638da5cb5b146104c157806395d89b41146104d25780639b642de1146104da5780639d645a44146104ed5780639e8c708e1461050057600080fd5b806361347162146104785780636c3b86991461048b578063715018a61461049357806380929e5b1461049b578063819d4cc6146104ae57600080fd5b80631c33b328116101df57806336f5cba5116101a357806336f5cba5146103dd578063495c8bf9146103fd5780634e1273f4146104125780635aed66dd146104325780635c654ad9146104455780635d4c1d461461045857600080fd5b80631c33b3281461035d57806320ec271b146103725780632a55205a146103855780632e8da829146103b75780632eb2c2d6146103ca57600080fd5b806307ebec271161022657806307ebec2714610306578063098144d4146103135780630e89341c146103245780631b25b077146103375780631b2ef1ca1461034a57600080fd5b8062fdd58e14610262578063014635461461028857806301ffc9a7146102b957806304634d8d146102dc57806306fdde03146102f1575b600080fd5b610275610270366004612ed3565b610611565b6040519081526020015b60405180910390f35b6102a171721c310194ccfc01e523fc93c9cccfa2a0ac81565b6040516001600160a01b03909116815260200161027f565b6102cc6102c7366004612f15565b6106aa565b604051901515815260200161027f565b6102ef6102ea366004612f32565b6106b5565b005b6102f96106cb565b60405161027f9190612fc7565b600b546102cc9060ff1681565b6004546001600160a01b03166102a1565b6102f9610332366004612fda565b610759565b6102cc610345366004612ff3565b610794565b6102ef61035836600461303e565b61082f565b610365600181565b60405161027f9190613082565b6102ef6103803660046130d4565b6108df565b61039861039336600461303e565b610a5f565b604080516001600160a01b03909316835260208301919091520161027f565b6102cc6103c536600461313f565b610b0d565b6102ef6103d83660046132a5565b610c1a565b6102756103eb366004612fda565b60096020526000908152604090205481565b610405610c66565b60405161027f9190613352565b61042561042036600461339f565b610d78565b60405161027f91906134a6565b6102ef61044036600461303e565b610ea1565b6102ef610453366004612ed3565b610f01565b610460600181565b6040516001600160781b03909116815260200161027f565b6102ef6104863660046134db565b6110ac565b6102ef611217565b6102ef611310565b6102ef6104a9366004613529565b611324565b6102ef6104bc366004612ed3565b61133f565b6003546001600160a01b03166102a1565b6102f96114cc565b6102ef6104e8366004613546565b6114d9565b6102cc6104fb36600461313f565b611520565b6102ef61050e36600461313f565b6115e9565b6102ef6105213660046135b7565b611783565b6102ef61053436600461313f565b61178e565b6102ef61054736600461303e565b6118af565b61027561055a366004612fda565b6000908152600a602052604090205490565b610574611961565b60405161027f91906135e5565b610405611a1d565b6102ef610597366004613621565b611ad7565b6102cc6105aa36600461369a565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b6102ef6105e63660046136c8565b611ca2565b6102ef6105f936600461313f565b611ce7565b6102ef61060c366004613730565b611d60565b60006001600160a01b0383166106815760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b60648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006106a482611e5f565b6106bd611e84565b6106c78282611ede565b5050565b600780546106d89061378c565b80601f01602080910402602001604051908101604052809291908181526020018280546107049061378c565b80156107515780601f1061072657610100808354040283529160200191610751565b820191906000526020600020905b81548152906001019060200180831161073457829003601f168201915b505050505081565b606061076482611f2c565b61076d83611fc0565b60405160200161077e9291906137c6565b6040516020818303038152906040529050919050565b6004546000906001600160a01b031615610824576004805460405163050bf71960e31b81526001600160a01b03878116938201939093528583166024820152848316604482015291169063285fb8c89060640160006040518083038186803b1580156107ff57600080fd5b505afa925050508015610810575060015b61081c57506000610828565b506001610828565b5060015b9392505050565b610837611e84565b806000036108585760405163162908e360e11b815260040160405180910390fd5b600082815260096020908152604080832054600a9092529091205461087e90839061381b565b111561089d5760405163c30436e960e01b815260040160405180910390fd5b6108b833838360405180602001604052806000815250612052565b6000828152600a6020526040812080548392906108d690849061381b565b90915550505050565b600b5460ff1661090257604051632b7e2ae360e01b815260040160405180910390fd5b82158061090f5750828114155b1561092d5760405163162908e360e11b815260040160405180910390fd5b61099b338585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060408051602080890282810182019093528882529093508892508791829185019084908082843760009201919091525061218492505050565b60005b83811015610a11578282828181106109b8576109b861382e565b90506020020135600a60008787858181106109d5576109d561382e565b90506020020135815260200190815260200160002060008282546109f99190613844565b90915550819050610a0981613857565b91505061099e565b50336001600160a01b03167f5c9b7f613a622104f08e605548b653df10c7e4f860716265d9e3f69dbfb64b2685858585604051610a5194939291906138a2565b60405180910390a250505050565b60008281526006602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610ad45750604080518082019091526005546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610af3906001600160601b0316876138d4565b610afd91906138eb565b91519350909150505b9250929050565b6004546000906001600160a01b031615610c125760048054604051635caaa2a960e11b815230928101929092526001600160a01b03169063d72dde5e90829063b955455290602401606060405180830381865afa158015610b72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b96919061390d565b602001516040516001600160e01b031960e084901b1681526001600160781b0390911660048201526001600160a01b03851660248201526044015b602060405180830381865afa158015610bee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106a4919061397e565b506000919050565b6001600160a01b038516331480610c365750610c3685336105aa565b610c525760405162461bcd60e51b81526004016106789061399b565b610c5f858585858561232a565b5050505050565b6004546060906001600160a01b031615610d655760048054604051635caaa2a960e11b815230928101929092526001600160a01b031690633fe5df9990829063b955455290602401606060405180830381865afa158015610ccb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cef919061390d565b602001516040516001600160e01b031960e084901b1681526001600160781b0390911660048201526024015b600060405180830381865afa158015610d38573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d6091908101906139e9565b905090565b5060408051600081526020810190915290565b60608151835114610ddd5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b6064820152608401610678565b600083516001600160401b03811115610df857610df861315c565b604051908082528060200260200182016040528015610e21578160200160208202803683370190505b50905060005b8451811015610e9957610e6c858281518110610e4557610e4561382e565b6020026020010151858381518110610e5f57610e5f61382e565b6020026020010151610611565b828281518110610e7e57610e7e61382e565b6020908102919091010152610e9281613857565b9050610e27565b509392505050565b610ea9611e84565b6000828152600a60205260409020541580610eea575060008281526009602052604090205481108015610eea57506000828152600a60205260409020548110155b156106c75760009182526009602052604090912055565b610f09611e84565b6001600160a01b038216610f3057604051630f58058360e11b815260040160405180910390fd5b604051627eeac760e11b81523060048201526024810182905282906000906001600160a01b0383169062fdd58e90604401602060405180830381865afa158015610f7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa29190613a82565b905080600003610fc55760405163157474a960e31b815260040160405180910390fd5b816001600160a01b031663f242432a30610fe76003546001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604481018690526064810184905260a06084820152600060a482015260c401600060405180830381600087803b15801561104b57600080fd5b505af115801561105f573d6000803e3d6000fd5b5050505082846001600160a01b03167e04b148840595eb234e6148251c2c9c78d692171f32febbd992963e0c1385538360405161109e91815260200190565b60405180910390a350505050565b6110b46124da565b60006110c86004546001600160a01b031690565b90506001600160a01b0381166110f157604051631cffe3dd60e11b815260040160405180910390fd5b604051630368065360e61b81526001600160a01b0382169063da0194c09061111f9030908890600401613a9b565b600060405180830381600087803b15801561113957600080fd5b505af115801561114d573d6000803e3d6000fd5b5050604051631182550160e11b81526001600160a01b0384169250632304aa02915061117f9030908790600401613ab8565b600060405180830381600087803b15801561119957600080fd5b505af11580156111ad573d6000803e3d6000fd5b505060405163235d10c560e21b81526001600160a01b0384169250638d74431491506111df9030908690600401613ab8565b600060405180830381600087803b1580156111f957600080fd5b505af115801561120d573d6000803e3d6000fd5b5050505050505050565b61121f6124da565b61123a71721c310194ccfc01e523fc93c9cccfa2a0ac61178e565b604051630368065360e61b815271721c310194ccfc01e523fc93c9cccfa2a0ac9063da0194c090611272903090600190600401613a9b565b600060405180830381600087803b15801561128c57600080fd5b505af11580156112a0573d6000803e3d6000fd5b5050604051631182550160e11b815271721c310194ccfc01e523fc93c9cccfa2a0ac9250632304aa0291506112dc903090600190600401613ab8565b600060405180830381600087803b1580156112f657600080fd5b505af115801561130a573d6000803e3d6000fd5b50505050565b611318611e84565b61132260006124e2565b565b61132c611e84565b600b805460ff1916911515919091179055565b611347611e84565b6001600160a01b03821661136e57604051630f58058360e11b815260040160405180910390fd5b6040516331a9108f60e11b81526004810182905282906000906001600160a01b03831690636352211e90602401602060405180830381865afa1580156113b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113dc9190613ada565b90506001600160a01b03811630146114075760405163157474a960e31b815260040160405180910390fd5b816001600160a01b03166342842e0e306114296003546001600160a01b031690565b6040516001600160e01b031960e085901b1681526001600160a01b0392831660048201529116602482015260448101869052606401600060405180830381600087803b15801561147857600080fd5b505af115801561148c573d6000803e3d6000fd5b50506040518592506001600160a01b03871691507f57519b6a0997d7d44511836bcee0a36871aa79d445816f6c464abb0cd9d3f3e890600090a350505050565b600880546106d89061378c565b6114e1611e84565b6106c782828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061253492505050565b6004546000906001600160a01b031615610c125760048054604051635caaa2a960e11b815230928101929092526001600160a01b031690639445f53090829063b955455290602401606060405180830381865afa158015611585573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115a9919061390d565b60409081015190516001600160e01b031960e084901b1681526001600160781b0390911660048201526001600160a01b0385166024820152604401610bd1565b6115f1611e84565b6001600160a01b03811661161857604051630f58058360e11b815260040160405180910390fd5b6040516370a0823160e01b815230600482015281906000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611661573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116859190613a82565b9050806000036116a85760405163157474a960e31b815260040160405180910390fd5b816001600160a01b031663a9059cbb6116c96003546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af1158015611716573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061173a919061397e565b50826001600160a01b03167f55350610fe57096d8c0ffa30beede987326bccfcb0b4415804164d0dd50ce8b18260405161177691815260200190565b60405180910390a2505050565b6106c7338383612540565b6117966124da565b60006001600160a01b0382163b15611811576040516301ffc9a760e01b8152600060048201526001600160a01b038316906301ffc9a790602401602060405180830381865afa925050508015611809575060408051601f3d908101601f191682019092526118069181019061397e565b60015b156118115790505b6001600160a01b03821615801590611827575080155b15611845576040516332483afb60e01b815260040160405180910390fd5b600454604080516001600160a01b03928316815291841660208301527fcc5dc080ff977b3c3a211fa63ab74f90f658f5ba9d3236e92c8f59570f442aac910160405180910390a150600480546001600160a01b0319166001600160a01b0392909216919091179055565b600b5460ff166118d257604051632b7e2ae360e01b815260040160405180910390fd5b806000036118f35760405163162908e360e11b815260040160405180910390fd5b6118fe338383612620565b6000828152600a60205260408120805483929061191c908490613844565b9091555050604080518381526020810183905233917f23ff0e75edf108e3d0392d92e13e8c8a868ef19001bd49f9e94876dc46dff87f91015b60405180910390a25050565b60408051606081018252600080825260208201819052918101919091526004546001600160a01b0316156119fc5760048054604051635caaa2a960e11b815230928101929092526001600160a01b03169063b955455290602401606060405180830381865afa1580156119d8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d60919061390d565b50604080516060810182526000808252602082018190529181019190915290565b6004546060906001600160a01b031615610d655760048054604051635caaa2a960e11b815230928101929092526001600160a01b0316906317e94a6c90829063b955455290602401606060405180830381865afa158015611a82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aa6919061390d565b60409081015190516001600160e01b031960e084901b1681526001600160781b039091166004820152602401610d1b565b611adf611e84565b6064831115611b0157604051634bb6586b60e01b815260040160405180910390fd5b6000839003611b235760405163248d08ff60e21b815260040160405180910390fd5b828114611b4357604051636b378ec560e01b815260040160405180910390fd5b60005b83811015611c9a57828282818110611b6057611b6061382e565b90506020020135600003611b875760405163162908e360e11b815260040160405180910390fd5b600086815260096020526040902054838383818110611ba857611ba861382e565b90506020020135611bc5886000908152600a602052604090205490565b611bcf919061381b565b1115611bee5760405163c30436e960e01b815260040160405180910390fd5b611c47858583818110611c0357611c0361382e565b9050602002016020810190611c18919061313f565b87858585818110611c2b57611c2b61382e565b9050602002013560405180602001604052806000815250612052565b828282818110611c5957611c5961382e565b90506020020135600a60008881526020019081526020016000206000828254611c82919061381b565b90915550819050611c9281613857565b915050611b46565b505050505050565b6001600160a01b038516331480611cbe5750611cbe85336105aa565b611cda5760405162461bcd60e51b81526004016106789061399b565b610c5f8585858585612742565b611cef611e84565b6001600160a01b038116611d545760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610678565b611d5d816124e2565b50565b611d686124da565b611d718461178e565b604051630368065360e61b81526001600160a01b0385169063da0194c090611d9f9030908790600401613a9b565b600060405180830381600087803b158015611db957600080fd5b505af1158015611dcd573d6000803e3d6000fd5b5050604051631182550160e11b81526001600160a01b0387169250632304aa029150611dff9030908690600401613ab8565b600060405180830381600087803b158015611e1957600080fd5b505af1158015611e2d573d6000803e3d6000fd5b505060405163235d10c560e21b81526001600160a01b0387169250638d74431491506111df9030908590600401613ab8565b60006001600160e01b0319821663152a902d60e11b14806106a457506106a482612888565b6003546001600160a01b031633146113225760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610678565b611ee882826128ad565b6040516001600160601b03821681526001600160a01b038316907f8a8bae378cb731c5c40b632330c6836c2f916f48edb967699c86736f9a6a76ef90602001611955565b606060028054611f3b9061378c565b80601f0160208091040260200160405190810160405280929190818152602001828054611f679061378c565b8015611fb45780601f10611f8957610100808354040283529160200191611fb4565b820191906000526020600020905b815481529060010190602001808311611f9757829003601f168201915b50505050509050919050565b60606000611fcd836129aa565b60010190506000816001600160401b03811115611fec57611fec61315c565b6040519080825280601f01601f191660200182016040528015612016576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461202057509392505050565b6001600160a01b0384166120b25760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b6064820152608401610678565b3360006120be85612a82565b905060006120cb85612a82565b90506120dc83600089858589612acd565b6000868152602081815260408083206001600160a01b038b1684529091528120805487929061210c90849061381b565b909155505060408051878152602081018790526001600160a01b03808a1692600092918716917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461216c83600089858589612b06565b61217b83600089898989612b3f565b50505050505050565b6001600160a01b0383166121aa5760405162461bcd60e51b815260040161067890613af7565b80518251146121cb5760405162461bcd60e51b815260040161067890613b3a565b60003390506121ee81856000868660405180602001604052806000815250612acd565b60005b83518110156122b357600084828151811061220e5761220e61382e565b60200260200101519050600084838151811061222c5761222c61382e565b602090810291909101810151600084815280835260408082206001600160a01b038c16835290935291909120549091508181101561227c5760405162461bcd60e51b815260040161067890613b82565b6000928352602083815260408085206001600160a01b038b16865290915290922091039055806122ab81613857565b9150506121f1565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051612304929190613bc6565b60405180910390a461130a81856000868660405180602001604052806000815250612b06565b815183511461234b5760405162461bcd60e51b815260040161067890613b3a565b6001600160a01b0384166123715760405162461bcd60e51b815260040161067890613bf4565b33612380818787878787612acd565b60005b84518110156124665760008582815181106123a0576123a061382e565b6020026020010151905060008583815181106123be576123be61382e565b602090810291909101810151600084815280835260408082206001600160a01b038e16835290935291909120549091508181101561240e5760405162461bcd60e51b815260040161067890613c39565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b1682528120805484929061244b90849061381b565b925050819055505050508061245f90613857565b9050612383565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516124b6929190613bc6565b60405180910390a46124cc818787878787612b06565b611c9a818787878787612c9a565b611322611e84565b600380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60026106c78282613cce565b816001600160a01b0316836001600160a01b0316036125b35760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b6064820152608401610678565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b0383166126465760405162461bcd60e51b815260040161067890613af7565b33600061265284612a82565b9050600061265f84612a82565b905061267f83876000858560405180602001604052806000815250612acd565b6000858152602081815260408083206001600160a01b038a168452909152902054848110156126c05760405162461bcd60e51b815260040161067890613b82565b6000868152602081815260408083206001600160a01b038b81168086529184528285208a8703905582518b81529384018a90529092908816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461217b84886000868660405180602001604052806000815250612b06565b6001600160a01b0384166127685760405162461bcd60e51b815260040161067890613bf4565b33600061277485612a82565b9050600061278185612a82565b9050612791838989858589612acd565b6000868152602081815260408083206001600160a01b038c168452909152902054858110156127d25760405162461bcd60e51b815260040161067890613c39565b6000878152602081815260408083206001600160a01b038d8116855292528083208985039055908a1682528120805488929061280f90849061381b565b909155505060408051888152602081018890526001600160a01b03808b16928c821692918816917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a461286f848a8a86868a612b06565b61287d848a8a8a8a8a612b3f565b505050505050505050565b60006001600160e01b031982166310c8aba560e31b14806106a457506106a482612d55565b6127106001600160601b038216111561291b5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610678565b6001600160a01b0382166129715760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610678565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600555565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106129e95772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612a15576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612a3357662386f26fc10000830492506010015b6305f5e1008310612a4b576305f5e100830492506008015b6127108310612a5f57612710830492506004015b60648310612a71576064830492506002015b600a83106106a45760010192915050565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612abc57612abc61382e565b602090810291909101015292915050565b825160005b8181101561120d57612afe8787878481518110612af157612af161382e565b6020026020010151612da5565b600101612ad2565b825160005b8181101561120d57612b378787878481518110612b2a57612b2a61382e565b6020026020010151612dfb565b600101612b0b565b6001600160a01b0384163b15611c9a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612b839089908990889088908890600401613d8d565b6020604051808303816000875af1925050508015612bbe575060408051601f3d908101601f19168201909252612bbb91810190613dc7565b60015b612c6a57612bca613de4565b806308c379a003612c035750612bde613e00565b80612be95750612c05565b8060405162461bcd60e51b81526004016106789190612fc7565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e2d455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b6064820152608401610678565b6001600160e01b0319811663f23a6e6160e01b1461217b5760405162461bcd60e51b815260040161067890613e89565b6001600160a01b0384163b15611c9a5760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612cde9089908990889088908890600401613ed1565b6020604051808303816000875af1925050508015612d19575060408051601f3d908101601f19168201909252612d1691810190613dc7565b60015b612d2557612bca613de4565b6001600160e01b0319811663bc197c8160e01b1461217b5760405162461bcd60e51b815260040161067890613e89565b60006001600160e01b03198216636cdb3d1360e11b1480612d8657506001600160e01b031982166303a24d0760e21b145b806106a457506301ffc9a760e01b6001600160e01b03198316146106a4565b6001600160a01b038381161590831615818015612dbf5750805b15612ddd57604051635cbd944160e01b815260040160405180910390fd5b8115612de9575b610c5f565b80612de457610c5f3386868634612e42565b6001600160a01b038381161590831615818015612e155750805b15612e3357604051635cbd944160e01b815260040160405180910390fd5b81612de45780612de457610c5f565b6004546001600160a01b031615610c5f576004805460405163050bf71960e31b81526001600160a01b03888116938201939093528683166024820152858316604482015291169063285fb8c89060640160006040518083038186803b158015612eaa57600080fd5b505afa15801561287d573d6000803e3d6000fd5b6001600160a01b0381168114611d5d57600080fd5b60008060408385031215612ee657600080fd5b8235612ef181612ebe565b946020939093013593505050565b6001600160e01b031981168114611d5d57600080fd5b600060208284031215612f2757600080fd5b813561082881612eff565b60008060408385031215612f4557600080fd5b8235612f5081612ebe565b915060208301356001600160601b0381168114612f6c57600080fd5b809150509250929050565b60005b83811015612f92578181015183820152602001612f7a565b50506000910152565b60008151808452612fb3816020860160208601612f77565b601f01601f19169290920160200192915050565b6020815260006108286020830184612f9b565b600060208284031215612fec57600080fd5b5035919050565b60008060006060848603121561300857600080fd5b833561301381612ebe565b9250602084013561302381612ebe565b9150604084013561303381612ebe565b809150509250925092565b6000806040838503121561305157600080fd5b50508035926020909101359150565b6007811061307e57634e487b7160e01b600052602160045260246000fd5b9052565b602081016106a48284613060565b60008083601f8401126130a257600080fd5b5081356001600160401b038111156130b957600080fd5b6020830191508360208260051b8501011115610b0657600080fd5b600080600080604085870312156130ea57600080fd5b84356001600160401b038082111561310157600080fd5b61310d88838901613090565b9096509450602087013591508082111561312657600080fd5b5061313387828801613090565b95989497509550505050565b60006020828403121561315157600080fd5b813561082881612ebe565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b03811182821017156131975761319761315c565b6040525050565b60006001600160401b038211156131b7576131b761315c565b5060051b60200190565b600082601f8301126131d257600080fd5b813560206131df8261319e565b6040516131ec8282613172565b83815260059390931b850182019282810191508684111561320c57600080fd5b8286015b848110156132275780358352918301918301613210565b509695505050505050565b600082601f83011261324357600080fd5b81356001600160401b0381111561325c5761325c61315c565b604051613273601f8301601f191660200182613172565b81815284602083860101111561328857600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156132bd57600080fd5b85356132c881612ebe565b945060208601356132d881612ebe565b935060408601356001600160401b03808211156132f457600080fd5b61330089838a016131c1565b9450606088013591508082111561331657600080fd5b61332289838a016131c1565b9350608088013591508082111561333857600080fd5b5061334588828901613232565b9150509295509295909350565b6020808252825182820181905260009190848201906040850190845b818110156133935783516001600160a01b03168352928401929184019160010161336e565b50909695505050505050565b600080604083850312156133b257600080fd5b82356001600160401b03808211156133c957600080fd5b818501915085601f8301126133dd57600080fd5b813560206133ea8261319e565b6040516133f78282613172565b83815260059390931b850182019282810191508984111561341757600080fd5b948201945b8386101561343e57853561342f81612ebe565b8252948201949082019061341c565b9650508601359250508082111561345457600080fd5b50613461858286016131c1565b9150509250929050565b600081518084526020808501945080840160005b8381101561349b5781518752958201959082019060010161347f565b509495945050505050565b602081526000610828602083018461346b565b60078110611d5d57600080fd5b6001600160781b0381168114611d5d57600080fd5b6000806000606084860312156134f057600080fd5b83356134fb816134b9565b9250602084013561350b816134c6565b91506040840135613033816134c6565b8015158114611d5d57600080fd5b60006020828403121561353b57600080fd5b81356108288161351b565b6000806020838503121561355957600080fd5b82356001600160401b038082111561357057600080fd5b818501915085601f83011261358457600080fd5b81358181111561359357600080fd5b8660208285010111156135a557600080fd5b60209290920196919550909350505050565b600080604083850312156135ca57600080fd5b82356135d581612ebe565b91506020830135612f6c8161351b565b60006060820190506135f8828451613060565b60208301516001600160781b038082166020850152806040860151166040850152505092915050565b60008060008060006060868803121561363957600080fd5b8535945060208601356001600160401b038082111561365757600080fd5b61366389838a01613090565b9096509450604088013591508082111561367c57600080fd5b5061368988828901613090565b969995985093965092949392505050565b600080604083850312156136ad57600080fd5b82356136b881612ebe565b91506020830135612f6c81612ebe565b600080600080600060a086880312156136e057600080fd5b85356136eb81612ebe565b945060208601356136fb81612ebe565b9350604086013592506060860135915060808601356001600160401b0381111561372457600080fd5b61334588828901613232565b6000806000806080858703121561374657600080fd5b843561375181612ebe565b93506020850135613761816134b9565b92506040850135613771816134c6565b91506060850135613781816134c6565b939692955090935050565b600181811c908216806137a057607f821691505b6020821081036137c057634e487b7160e01b600052602260045260246000fd5b50919050565b600083516137d8818460208801612f77565b8351908301906137ec818360208801612f77565b64173539b7b760d91b9101908152600501949350505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156106a4576106a4613805565b634e487b7160e01b600052603260045260246000fd5b818103818111156106a4576106a4613805565b60006001820161386957613869613805565b5060010190565b81835260006001600160fb1b0383111561388957600080fd5b8260051b80836020870137939093016020019392505050565b6040815260006138b6604083018688613870565b82810360208401526138c9818587613870565b979650505050505050565b80820281158282048414176106a4576106a4613805565b60008261390857634e487b7160e01b600052601260045260246000fd5b500490565b60006060828403121561391f57600080fd5b604051606081018181106001600160401b03821117156139415761394161315c565b604052825161394f816134b9565b8152602083015161395f816134c6565b60208201526040830151613972816134c6565b60408201529392505050565b60006020828403121561399057600080fd5b81516108288161351b565b6020808252602e908201527f455243313135353a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526d195c881bdc88185c1c1c9bdd995960921b606082015260800190565b600060208083850312156139fc57600080fd5b82516001600160401b03811115613a1257600080fd5b8301601f81018513613a2357600080fd5b8051613a2e8161319e565b604051613a3b8282613172565b82815260059290921b8301840191848101915087831115613a5b57600080fd5b928401925b828410156138c9578351613a7381612ebe565b82529284019290840190613a60565b600060208284031215613a9457600080fd5b5051919050565b6001600160a01b0383168152604081016108286020830184613060565b6001600160a01b039290921682526001600160781b0316602082015260400190565b600060208284031215613aec57600080fd5b815161082881612ebe565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b604081526000613bd9604083018561346b565b8281036020840152613beb818561346b565b95945050505050565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b601f821115613cc957600081815260208120601f850160051c81016020861015613caa5750805b601f850160051c820191505b81811015611c9a57828155600101613cb6565b505050565b81516001600160401b03811115613ce757613ce761315c565b613cfb81613cf5845461378c565b84613c83565b602080601f831160018114613d305760008415613d185750858301515b600019600386901b1c1916600185901b178555611c9a565b600085815260208120601f198616915b82811015613d5f57888601518255948401946001909101908401613d40565b5085821015613d7d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906138c990830184612f9b565b600060208284031215613dd957600080fd5b815161082881612eff565b600060033d1115613dfd5760046000803e5060005160e01c5b90565b600060443d1015613e0e5790565b6040516003193d81016004833e81513d6001600160401b038160248401118184111715613e3d57505050505090565b8285019150815181811115613e555750505050505090565b843d8701016020828501011115613e6f5750505050505090565b613e7e60208286010187613172565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b0386811682528516602082015260a060408201819052600090613efd9083018661346b565b8281036060840152613f0f818661346b565b90508281036080840152613f238185612f9b565b9897505050505050505056fea26469706673582212206c549f329098f2c7a528f42439208f73dd823d6e70160a0c042afb5f7a4299a764736f6c63430008150033

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

0000000000000000000000001cb86e9240e615ed631ccc6e15c073980bc33b5f00000000000000000000000000000000000000000000000000000000000001a400000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000002a68747470733a2f2f7777772e6170692e626f726564383130322e636f6d2f6c6f6f742d6368657374732f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a4c6f6f744368657374730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024c43000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : royaltyReceiver_ (address): 0x1cB86E9240e615ed631CcC6e15C073980Bc33b5f
Arg [1] : royaltyFeeNumerator_ (uint96): 420
Arg [2] : uri_ (string): https://www.api.bored8102.com/loot-chests/
Arg [3] : name_ (string): LootChests
Arg [4] : symbol_ (string): LC

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000001cb86e9240e615ed631ccc6e15c073980bc33b5f
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001a4
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [5] : 000000000000000000000000000000000000000000000000000000000000002a
Arg [6] : 68747470733a2f2f7777772e6170692e626f726564383130322e636f6d2f6c6f
Arg [7] : 6f742d6368657374732f00000000000000000000000000000000000000000000
Arg [8] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [9] : 4c6f6f7443686573747300000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [11] : 4c43000000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

396:4058:46:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2185:227:21;;;;;;:::i;:::-;;:::i;:::-;;;616:25:48;;;604:2;589:18;2185:227:21;;;;;;;;1930:104:12;;1991:42;1930:104;;;;;-1:-1:-1;;;;;816:32:48;;;798:51;;786:2;771:18;1930:104:12;652:203:48;3734:170:46;;;;;;:::i;:::-;;:::i;:::-;;;1411:14:48;;1404:22;1386:41;;1374:2;1359:18;3734:170:46;1246:187:48;3910:144:46;;;;;;:::i;:::-;;:::i;:::-;;509:18;;;:::i;:::-;;;;;;;:::i;1052:33::-;;;;;;;;;6358:135:12;6469:17;;-1:-1:-1;;;;;6469:17:12;6358:135;;4181:271:46;;;;;;:::i;:::-;;:::i;10057:378:12:-;;;;;;:::i;:::-;;:::i;2630:309:46:-;;;;;;:::i;:::-;;:::i;2040:99:12:-;;2113:26;2040:99;;;;;;;;;:::i;3256:472:46:-;;;;;;:::i;:::-;;:::i;1671:432:32:-;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;5820:32:48;;;5802:51;;5884:2;5869:18;;5862:34;;;;5775:18;1671:432:32;5628:274:48;8437:350:12;;;;;;:::i;:::-;;:::i;4064:426:21:-;;;;;;:::i;:::-;;:::i;942:49:46:-;;;;;;:::i;:::-;;;;;;;;;;;;;;7350:351:12;;;:::i;:::-;;;;;;;:::i;2569:508:21:-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;1457:258:46:-;;;;;;:::i;:::-;;:::i;628:471:43:-;;;;;;:::i;:::-;;:::i;2145:66:12:-;;2209:1;2145:66;;;;;-1:-1:-1;;;;;11913:45:48;;;11895:64;;11883:2;11868:18;2145:66:12;11749:216:48;4151:713:12;;;;;;:::i;:::-;;:::i;2576:459::-;;;:::i;1831:101:15:-;;;:::i;1814:100:46:-;;;;;;:::i;:::-;;:::i;1503:450:43:-;;;;;;:::i;:::-;;:::i;1201:85:15:-;1273:6;;-1:-1:-1;;;;;1273:6:15;1201:85;;533:20:46;;;:::i;1721:87::-;;;;;;:::i;:::-;;:::i;8953:371:12:-;;;;;;:::i;:::-;;:::i;1105:392:43:-;;;;;;:::i;:::-;;:::i;3145:153:21:-;;;;;;:::i;:::-;;:::i;5449:799:12:-;;;;;;:::i;:::-;;:::i;2945:305:46:-;;;;;;:::i;:::-;;:::i;4060:115::-;;;;;;:::i;:::-;4120:7;4146:22;;;:12;:22;;;;;;;4060:115;6704:445:12;;;:::i;:::-;;;;;;;:::i;7905:372::-;;;:::i;1920:704:46:-;;;;;;:::i;:::-;;:::i;3365:166:21:-;;;;;;:::i;:::-;-1:-1:-1;;;;;3487:27:21;;;3464:4;3487:27;;;:18;:27;;;;;;;;:37;;;;;;;;;;;;;;;3365:166;3598:394;;;;;;:::i;:::-;;:::i;2081:198:15:-;;;;;;:::i;:::-;;:::i;3232:732:12:-;;;;;;:::i;:::-;;:::i;2185:227:21:-;2271:7;-1:-1:-1;;;;;2298:21:21;;2290:76;;;;-1:-1:-1;;;2290:76:21;;17623:2:48;2290:76:21;;;17605:21:48;17662:2;17642:18;;;17635:30;17701:34;17681:18;;;17674:62;-1:-1:-1;;;17752:18:48;;;17745:40;17802:19;;2290:76:21;;;;;;;;;-1:-1:-1;2383:9:21;:13;;;;;;;;;;;-1:-1:-1;;;;;2383:22:21;;;;;;;;;;2185:227;;;;;:::o;3734:170:46:-;3838:4;3861:36;3885:11;3861:23;:36::i;3910:144::-;1094:13:15;:11;:13::i;:::-;4005:42:46::1;4024:8;4034:12;4005:18;:42::i;:::-;3910:144:::0;;:::o;509:18::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;4181:271::-;4242:13;4340:19;4350:8;4340:9;:19::i;:::-;4377;:8;:17;:19::i;:::-;4306:129;;;;;;;;;:::i;:::-;;;;;;;;;;;;;4267:178;;4181:271;;;:::o;10057:378:12:-;10184:17;;10156:4;;-1:-1:-1;;;;;10184:17:12;10176:40;10172:236;;10236:17;;;:65;;-1:-1:-1;;;10236:65:12;;-1:-1:-1;;;;;19143:15:48;;;10236:65:12;;;19125:34:48;;;;19195:15;;;19175:18;;;19168:43;19247:15;;;19227:18;;;19220:43;10236:17:12;;;:47;;19060:18:48;;10236:65:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10232:166;;-1:-1:-1;10378:5:12;10371:12;;10232:166;-1:-1:-1;10327:4:12;10320:11;;10232:166;-1:-1:-1;10424:4:12;10057:378;;;;;;:::o;2630:309:46:-;1094:13:15;:11;:13::i;:::-;2710:6:46::1;2720:1;2710:11:::0;2706:39:::1;;2730:15;;-1:-1:-1::0;;;2730:15:46::1;;;;;;;;;;;2706:39;2791:23;::::0;;;:14:::1;:23;::::0;;;;;;;;4146:12;:22;;;;;;;2759:29:::1;::::0;2782:6;;2759:29:::1;:::i;:::-;:55;2755:86;;;2823:18;;-1:-1:-1::0;;;2823:18:46::1;;;;;;;;;;;2755:86;2851:40;719:10:34::0;2871:7:46::1;2880:6;2851:40;;;;;;;;;;;::::0;:5:::1;:40::i;:::-;2901:21;::::0;;;:12:::1;:21;::::0;;;;:31;;2926:6;;2901:21;:31:::1;::::0;2926:6;;2901:31:::1;:::i;:::-;::::0;;;-1:-1:-1;;;;2630:309:46:o;3256:472::-;3356:13;;;;3351:43;;3378:16;;-1:-1:-1;;;3378:16:46;;;;;;;;;;;3351:43;3408:20;;;:57;;-1:-1:-1;3432:33:46;;;;3408:57;3404:85;;;3474:15;;-1:-1:-1;;;3474:15:46;;;;;;;;;;;3404:85;3500:43;719:10:34;3525:8:46;;3500:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3500:43:46;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3535:7:46;;-1:-1:-1;3535:7:46;;;;3500:43;;;3535:7;;3500:43;3535:7;3500:43;;;;;;;;;-1:-1:-1;3500:10:46;;-1:-1:-1;;;3500:43:46:i;:::-;3558:9;3553:110;3573:19;;;3553:110;;;3642:7;;3650:1;3642:10;;;;;;;:::i;:::-;;;;;;;3613:12;:25;3626:8;;3635:1;3626:11;;;;;;;:::i;:::-;;;;;;;3613:25;;;;;;;;;;;;:39;;;;;;;:::i;:::-;;;;-1:-1:-1;3594:3:46;;-1:-1:-1;3594:3:46;;;:::i;:::-;;;;3553:110;;;-1:-1:-1;719:10:34;-1:-1:-1;;;;;3677:44:46;;3703:8;;3713:7;;3677:44;;;;;;;;;:::i;:::-;;;;;;;;3256:472;;;;:::o;1671:432:32:-;1768:7;1825:27;;;:17;:27;;;;;;;;1796:56;;;;;;;;;-1:-1:-1;;;;;1796:56:32;;;;;-1:-1:-1;;;1796:56:32;;;-1:-1:-1;;;;;1796:56:32;;;;;;;;1768:7;;1863:90;;-1:-1:-1;1913:29:32;;;;;;;;;1923:19;1913:29;-1:-1:-1;;;;;1913:29:32;;;;-1:-1:-1;;;1913:29:32;;-1:-1:-1;;;;;1913:29:32;;;;;1863:90;2001:23;;;;1963:21;;2461:5;;1988:36;;-1:-1:-1;;;;;1988:36:32;:10;:36;:::i;:::-;1987:58;;;;:::i;:::-;2064:16;;;-1:-1:-1;1963:82:32;;-1:-1:-1;;1671:432:32;;;;;;:::o;8437:350:12:-;8544:17;;8516:4;;-1:-1:-1;;;;;8544:17:12;8536:40;8532:226;;8599:17;;;8656:60;;-1:-1:-1;;;8656:60:12;;8710:4;8656:60;;;798:51:48;;;;-1:-1:-1;;;;;8599:17:12;;:39;;:17;;8656:45;;771:18:48;;8656:60:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:80;;;8599:148;;-1:-1:-1;;;;;;8599:148:12;;;;;;;-1:-1:-1;;;;;22315:45:48;;;8599:148:12;;;22297:64:48;-1:-1:-1;;;;;22397:32:48;;22377:18;;;22370:60;22270:18;;8599:148:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;8532:226::-;-1:-1:-1;8775:5:12;;8437:350;-1:-1:-1;8437:350:12:o;4064:426:21:-;-1:-1:-1;;;;;4289:20:21;;719:10:34;4289:20:21;;:60;;-1:-1:-1;4313:36:21;4330:4;719:10:34;3365:166:21;:::i;4313:36::-;4268:153;;;;-1:-1:-1;;;4268:153:21;;;;;;;:::i;:::-;4431:52;4454:4;4460:2;4464:3;4469:7;4478:4;4431:22;:52::i;:::-;4064:426;;;;;:::o;7350:351:12:-;7455:17;;7415:16;;-1:-1:-1;;;;;7455:17:12;7447:40;7443:218;;7510:17;;;7569:60;;-1:-1:-1;;;7569:60:12;;7623:4;7569:60;;;798:51:48;;;;-1:-1:-1;;;;;7510:17:12;;:41;;:17;;7569:45;;771:18:48;;7569:60:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:80;;;7510:140;;-1:-1:-1;;;;;;7510:140:12;;;;;;;-1:-1:-1;;;;;11913:45:48;;;7510:140:12;;;11895:64:48;11868:18;;7510:140:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;7510:140:12;;;;;;;;;;;;:::i;:::-;7503:147;;7350:351;:::o;7443:218::-;-1:-1:-1;7678:16:12;;;7692:1;7678:16;;;;;;;;;7350:351::o;2569:508:21:-;2720:16;2779:3;:10;2760:8;:15;:29;2752:83;;;;-1:-1:-1;;;2752:83:21;;24331:2:48;2752:83:21;;;24313:21:48;24370:2;24350:18;;;24343:30;24409:34;24389:18;;;24382:62;-1:-1:-1;;;24460:18:48;;;24453:39;24509:19;;2752:83:21;24129:405:48;2752:83:21;2846:30;2893:8;:15;-1:-1:-1;;;;;2879:30:21;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2879:30:21;;2846:63;;2925:9;2920:120;2944:8;:15;2940:1;:19;2920:120;;;2999:30;3009:8;3018:1;3009:11;;;;;;;;:::i;:::-;;;;;;;3022:3;3026:1;3022:6;;;;;;;;:::i;:::-;;;;;;;2999:9;:30::i;:::-;2980:13;2994:1;2980:16;;;;;;;;:::i;:::-;;;;;;;;;;:49;2961:3;;;:::i;:::-;;;2920:120;;;-1:-1:-1;3057:13:21;2569:508;-1:-1:-1;;;2569:508:21:o;1457:258:46:-;1094:13:15;:11;:13::i;:::-;4120:7:46;4146:22;;;:12;:22;;;;;;1544:25;;:103:::1;;-1:-1:-1::0;1574:23:46::1;::::0;;;:14:::1;:23;::::0;;;;;:35;-1:-1:-1;1574:72:46;::::1;;;-1:-1:-1::0;4120:7:46;4146:22;;;:12;:22;;;;;;1613:9:::1;:33;;1574:72;1540:169;;;1663:23;::::0;;;:14:::1;:23;::::0;;;;;:35;1457:258::o;628:471:43:-;1094:13:15;:11;:13::i;:::-;-1:-1:-1;;;;;724:26:43;::::1;720:60;;759:21;;-1:-1:-1::0;;;759:21:43::1;;;;;;;;;;;720:60;858:39;::::0;-1:-1:-1;;;858:39:43;;882:4:::1;858:39;::::0;::::1;5802:51:48::0;5869:18;;;5862:34;;;817:12:43;;791:14:::1;::::0;-1:-1:-1;;;;;858:15:43;::::1;::::0;::::1;::::0;5775:18:48;;858:39:43::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;840:57;;911:7;922:1;911:12:::0;907:43:::1;;932:18;;-1:-1:-1::0;;;932:18:43::1;;;;;;;;;;;907:43;961:5;-1:-1:-1::0;;;;;961:22:43::1;;992:4;999:7;1273:6:15::0;;-1:-1:-1;;;;;1273:6:15;;1201:85;999:7:43::1;961:68;::::0;-1:-1:-1;;;;;;961:68:43::1;::::0;;;;;;-1:-1:-1;;;;;25079:15:48;;;961:68:43::1;::::0;::::1;25061:34:48::0;25131:15;;25111:18;;;25104:43;25163:18;;;25156:34;;;25206:18;;;25199:34;;;25041:3;25249:19;;;25242:32;-1:-1:-1;25290:19:48;;;25283:30;25330:19;;961:68:43::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;1075:7;1061:12;-1:-1:-1::0;;;;;1044:48:43::1;;1084:7;1044:48;;;;616:25:48::0;;604:2;589:18;;470:177;1044:48:43::1;;;;;;;;710:389;;628:471:::0;;:::o;4151:713:12:-;4336:31;:29;:31::i;:::-;4378:40;4421:22;6469:17;;-1:-1:-1;;;;;6469:17:12;;6358:135;4421:22;4378:65;-1:-1:-1;;;;;;4457:32:12;;4453:115;;4512:45;;-1:-1:-1;;;4512:45:12;;;;;;;;;;;4453:115;4578:68;;-1:-1:-1;;;4578:68:12;;-1:-1:-1;;;;;4578:46:12;;;;;:68;;4633:4;;4640:5;;4578:68;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4656:78:12;;-1:-1:-1;;;4656:78:12;;-1:-1:-1;;;;;4656:42:12;;;-1:-1:-1;4656:42:12;;-1:-1:-1;4656:78:12;;4707:4;;4714:19;;4656:78;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4744:113:12;;-1:-1:-1;;;4744:113:12;;-1:-1:-1;;;;;4744:59:12;;;-1:-1:-1;4744:59:12;;-1:-1:-1;4744:113:12;;4812:4;;4819:37;;4744:113;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4326:538;4151:713;;;:::o;2576:459::-;2639:31;:29;:31::i;:::-;2680:48;1991:42;2680:20;:48::i;:::-;2738:143;;-1:-1:-1;;;2738:143:12;;1991:42;;2738:95;;:143;;2842:4;;2113:26;;2738:143;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2891:137:12;;-1:-1:-1;;;2891:137:12;;1991:42;;-1:-1:-1;2891:91:12;;-1:-1:-1;2891:137:12;;2991:4;;2209:1;;2891:137;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2576:459::o;1831:101:15:-;1094:13;:11;:13::i;:::-;1895:30:::1;1922:1;1895:18;:30::i;:::-;1831:101::o:0;1814:100:46:-;1094:13:15;:11;:13::i;:::-;1881::46::1;:26:::0;;-1:-1:-1;;1881:26:46::1;::::0;::::1;;::::0;;;::::1;::::0;;1814:100::o;1503:450:43:-;1094:13:15;:11;:13::i;:::-;-1:-1:-1;;;;;1598:26:43;::::1;1594:60;;1633:21;;-1:-1:-1::0;;;1633:21:43::1;;;;;;;;;;;1594:60;1735:22;::::0;-1:-1:-1;;;1735:22:43;;::::1;::::0;::::1;616:25:48::0;;;1689:12:43;;1665:13:::1;::::0;-1:-1:-1;;;;;1735:13:43;::::1;::::0;::::1;::::0;589:18:48;;1735:22:43::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1712:45:::0;-1:-1:-1;;;;;;1771:29:43;::::1;1795:4;1771:29;1767:60;;1809:18;;-1:-1:-1::0;;;1809:18:43::1;;;;;;;;;;;1767:60;1838:5;-1:-1:-1::0;;;;;1838:22:43::1;;1869:4;1876:7;1273:6:15::0;;-1:-1:-1;;;;;1273:6:15;;1201:85;1876:7:43::1;1838:55;::::0;-1:-1:-1;;;;;;1838:55:43::1;::::0;;;;;;-1:-1:-1;;;;;26528:15:48;;;1838:55:43::1;::::0;::::1;26510:34:48::0;26580:15;;26560:18;;;26553:43;26612:18;;;26605:34;;;26445:18;;1838:55:43::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;1908:38:43::1;::::0;1938:7;;-1:-1:-1;;;;;;1908:38:43;::::1;::::0;-1:-1:-1;1908:38:43::1;::::0;;;::::1;1584:369;;1503:450:::0;;:::o;533:20:46:-;;;;;;;:::i;1721:87::-;1094:13:15;:11;:13::i;:::-;1788::46::1;1796:4;;1788:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;;-1:-1:-1;1788:7:46::1;::::0;-1:-1:-1;;;1788:13:46:i:1;8953:371:12:-:0;9066:17;;9038:4;;-1:-1:-1;;;;;9066:17:12;9058:40;9054:241;;9121:17;;;9184:60;;-1:-1:-1;;;9184:60:12;;9238:4;9184:60;;;798:51:48;;;;-1:-1:-1;;;;;9121:17:12;;:45;;:17;;9184:45;;771:18:48;;9184:60:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:89;;;;;9121:163;;-1:-1:-1;;;;;;9121:163:12;;;;;;;-1:-1:-1;;;;;22315:45:48;;;9121:163:12;;;22297:64:48;-1:-1:-1;;;;;22397:32:48;;22377:18;;;22370:60;22270:18;;9121:163:12;22123:313:48;1105:392:43;1094:13:15;:11;:13::i;:::-;-1:-1:-1;;;;;1182:26:43;::::1;1178:60;;1217:21;;-1:-1:-1::0;;;1217:21:43::1;;;;;;;;;;;1178:60;1312:30;::::0;-1:-1:-1;;;1312:30:43;;1336:4:::1;1312:30;::::0;::::1;798:51:48::0;1271:12:43;;1249::::1;::::0;-1:-1:-1;;;;;1312:15:43;::::1;::::0;::::1;::::0;771:18:48;;1312:30:43::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1294:48;;1356:7;1367:1;1356:12:::0;1352:43:::1;;1377:18;;-1:-1:-1::0;;;1377:18:43::1;;;;;;;;;;;1352:43;1406:5;-1:-1:-1::0;;;;;1406:14:43::1;;1421:7;1273:6:15::0;;-1:-1:-1;;;;;1273:6:15;;1201:85;1421:7:43::1;1406:32;::::0;-1:-1:-1;;;;;;1406:32:43::1;::::0;;;;;;-1:-1:-1;;;;;5820:32:48;;;1406::43::1;::::0;::::1;5802:51:48::0;5869:18;;;5862:34;;;5775:18;;1406:32:43::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1468:12;-1:-1:-1::0;;;;;1453:37:43::1;;1482:7;1453:37;;;;616:25:48::0;;604:2;589:18;;470:177;1453:37:43::1;;;;;;;;1168:329;;1105:392:::0;:::o;3145:153:21:-;3239:52;719:10:34;3272:8:21;3282;3239:18;:52::i;5449:799:12:-;5524:31;:29;:31::i;:::-;5566:29;-1:-1:-1;;;;;5617:30:12;;;:34;5614:299;;5671:95;;-1:-1:-1;;;5671:95:12;;5717:48;5671:95;;;26794:52:48;-1:-1:-1;;;;;5671:45:12;;;;;26767:18:48;;5671:95:12;;;;;;;;;;;;;;;;;;-1:-1:-1;5671:95:12;;;;;;;;-1:-1:-1;;5671:95:12;;;;;;;;;;;;:::i;:::-;;;5667:236;;;5862:17;-1:-1:-1;5667:236:12;-1:-1:-1;;;;;5926:32:12;;;;;;:61;;;5963:24;5962:25;5926:61;5923:150;;;6010:52;;-1:-1:-1;;;6010:52:12;;;;;;;;;;;5923:150;6121:17;;6088:72;;;-1:-1:-1;;;;;6121:17:12;;;27069:34:48;;27139:15;;;27134:2;27119:18;;27112:43;6088:72:12;;27004:18:48;6088:72:12;;;;;;;-1:-1:-1;6171:17:12;:70;;-1:-1:-1;;;;;;6171:70:12;-1:-1:-1;;;;;6171:70:12;;;;;;;;;;5449:799::o;2945:305:46:-;3016:13;;;;3011:43;;3038:16;;-1:-1:-1;;;3038:16:46;;;;;;;;;;;3011:43;3068:6;3078:1;3068:11;3064:39;;3088:15;;-1:-1:-1;;;3088:15:46;;;;;;;;;;;3064:39;3114:36;719:10:34;3134:7:46;3143:6;3114:5;:36::i;:::-;3160:21;;;;:12;:21;;;;;:31;;3185:6;;3160:21;:31;;3185:6;;3160:31;:::i;:::-;;;;-1:-1:-1;;3206:37:46;;;27340:25:48;;;27396:2;27381:18;;27374:34;;;719:10:34;;3206:37:46;;27313:18:48;3206:37:46;;;;;;;;2945:305;;:::o;6704:445:12:-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;6818:17:12;;-1:-1:-1;;;;;6818:17:12;6810:40;6806:138;;6873:17;;;:60;;-1:-1:-1;;;6873:60:12;;6927:4;6873:60;;;798:51:48;;;;-1:-1:-1;;;;;6873:17:12;;:45;;771:18:48;;6873:60:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;6806:138::-;-1:-1:-1;6961:181:12;;;;;;;;-1:-1:-1;6961:181:12;;;;;;;;;;;;;;;;;6704:445::o;7905:372::-;8016:17;;7976:16;;-1:-1:-1;;;;;8016:17:12;8008:40;8004:233;;8071:17;;;8136:60;;-1:-1:-1;;;8136:60:12;;8190:4;8136:60;;;798:51:48;;;;-1:-1:-1;;;;;8071:17:12;;:47;;:17;;8136:45;;771:18:48;;8136:60:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:89;;;;;8071:155;;-1:-1:-1;;;;;;8071:155:12;;;;;;;-1:-1:-1;;;;;11913:45:48;;;8071:155:12;;;11895:64:48;11868:18;;8071:155:12;11749:216:48;1920:704:46;1094:13:15;:11;:13::i;:::-;2066:3:46::1;2046:23:::0;::::1;2042:60;;;2078:24;;-1:-1:-1::0;;;2078:24:46::1;;;;;;;;;;;2042:60;2137:1;2116:22:::0;;;2112:69:::1;;2147:34;;-1:-1:-1::0;;;2147:34:46::1;;;;;;;;;;;2112:69;2195:35:::0;;::::1;2191:88;;2239:40;;-1:-1:-1::0;;;2239:40:46::1;;;;;;;;;;;2191:88;2295:9;2290:328;2310:21:::0;;::::1;2290:328;;;2356:7;;2364:1;2356:10;;;;;;;:::i;:::-;;;;;;;2370:1;2356:15:::0;2352:43:::1;;2380:15;;-1:-1:-1::0;;;2380:15:46::1;;;;;;;;;;;2352:43;2449:23;::::0;;;:14:::1;:23;::::0;;;;;2436:7;;2444:1;2436:10;;::::1;;;;;:::i;:::-;;;;;;;2413:20;2425:7;4120::::0;4146:22;;;:12;:22;;;;;;;4060:115;2413:20:::1;:33;;;;:::i;:::-;:59;2409:90;;;2481:18;;-1:-1:-1::0;;;2481:18:46::1;;;;;;;;;;;2409:90;2513:45;2519:10;;2530:1;2519:13;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;2534:7;2543;;2551:1;2543:10;;;;;;;:::i;:::-;;;;;;;2513:45;;;;;;;;;;;::::0;:5:::1;:45::i;:::-;2597:7;;2605:1;2597:10;;;;;;;:::i;:::-;;;;;;;2572:12;:21;2585:7;2572:21;;;;;;;;;;;;:35;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;2333:3:46;;-1:-1:-1;2333:3:46::1;::::0;::::1;:::i;:::-;;;;2290:328;;;;1920:704:::0;;;;;:::o;3598:394:21:-;-1:-1:-1;;;;;3798:20:21;;719:10:34;3798:20:21;;:60;;-1:-1:-1;3822:36:21;3839:4;719:10:34;3365:166:21;:::i;3822:36::-;3777:153;;;;-1:-1:-1;;;3777:153:21;;;;;;;:::i;:::-;3940:45;3958:4;3964:2;3968;3972:6;3980:4;3940:17;:45::i;2081:198:15:-;1094:13;:11;:13::i;:::-;-1:-1:-1;;;;;2169:22:15;::::1;2161:73;;;::::0;-1:-1:-1;;;2161:73:15;;27621:2:48;2161:73:15::1;::::0;::::1;27603:21:48::0;27660:2;27640:18;;;27633:30;27699:34;27679:18;;;27672:62;-1:-1:-1;;;27750:18:48;;;27743:36;27796:19;;2161:73:15::1;27419:402:48::0;2161:73:15::1;2244:28;2263:8;2244:18;:28::i;:::-;2081:198:::0;:::o;3232:732:12:-;3457:31;:29;:31::i;:::-;3499;3520:9;3499:20;:31::i;:::-;3541:113;;-1:-1:-1;;;3541:113:12;;-1:-1:-1;;;;;3541:91:12;;;;;:113;;3641:4;;3648:5;;3541:113;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3665:123:12;;-1:-1:-1;;;3665:123:12;;-1:-1:-1;;;;;3665:87:12;;;-1:-1:-1;3665:87:12;;-1:-1:-1;3665:123:12;;3761:4;;3768:19;;3665:123;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3799:158:12;;-1:-1:-1;;;3799:158:12;;-1:-1:-1;;;;;3799:104:12;;;-1:-1:-1;3799:104:12;;-1:-1:-1;3799:158:12;;3912:4;;3919:37;;3799:158;;;:::i;1408:213:32:-;1510:4;-1:-1:-1;;;;;;1533:41:32;;-1:-1:-1;;;1533:41:32;;:81;;;1578:36;1602:11;1578:23;:36::i;1359:130:15:-;1273:6;;-1:-1:-1;;;;;1273:6:15;719:10:34;1422:23:15;1414:68;;;;-1:-1:-1;;;1414:68:15;;28028:2:48;1414:68:15;;;28010:21:48;;;28047:18;;;28040:30;28106:34;28086:18;;;28079:62;28158:18;;1414:68:15;27826:356:48;527:214:9;630:48;655:8;665:12;630:24;:48::i;:::-;693:41;;-1:-1:-1;;;;;28349:39:48;;28331:58;;-1:-1:-1;;;;;693:41:9;;;;;28319:2:48;28304:18;693:41:9;28187:208:48;1940:103:21;2000:13;2032:4;2025:11;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1940:103;;;:::o;415:696:35:-;471:13;520:14;537:17;548:5;537:10;:17::i;:::-;557:1;537:21;520:38;;572:20;606:6;-1:-1:-1;;;;;595:18:35;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;595:18:35;-1:-1:-1;572:41:35;-1:-1:-1;733:28:35;;;749:2;733:28;788:280;-1:-1:-1;;819:5:35;-1:-1:-1;;;953:2:35;942:14;;937:30;819:5;924:44;1012:2;1003:11;;;-1:-1:-1;1032:21:35;788:280;1032:21;-1:-1:-1;1088:6:35;415:696;-1:-1:-1;;;415:696:35:o;8630:709:21:-;-1:-1:-1;;;;;8777:16:21;;8769:62;;;;-1:-1:-1;;;8769:62:21;;28602:2:48;8769:62:21;;;28584:21:48;28641:2;28621:18;;;28614:30;28680:34;28660:18;;;28653:62;-1:-1:-1;;;28731:18:48;;;28724:31;28772:19;;8769:62:21;28400:397:48;8769:62:21;719:10:34;8842:16:21;8906:21;8924:2;8906:17;:21::i;:::-;8883:44;;8937:24;8964:25;8982:6;8964:17;:25::i;:::-;8937:52;;9000:66;9021:8;9039:1;9043:2;9047:3;9052:7;9061:4;9000:20;:66::i;:::-;9077:9;:13;;;;;;;;;;;-1:-1:-1;;;;;9077:17:21;;;;;;;;;:27;;9098:6;;9077:9;:27;;9098:6;;9077:27;:::i;:::-;;;;-1:-1:-1;;9119:52:21;;;27340:25:48;;;27396:2;27381:18;;27374:34;;;-1:-1:-1;;;;;9119:52:21;;;;9152:1;;9119:52;;;;;;27313:18:48;9119:52:21;;;;;;;9182:65;9202:8;9220:1;9224:2;9228:3;9233:7;9242:4;9182:19;:65::i;:::-;9258:74;9289:8;9307:1;9311:2;9315;9319:6;9327:4;9258:30;:74::i;:::-;8759:580;;;8630:709;;;;:::o;11831:943::-;-1:-1:-1;;;;;11978:18:21;;11970:66;;;;-1:-1:-1;;;11970:66:21;;;;;;;:::i;:::-;12068:7;:14;12054:3;:10;:28;12046:81;;;;-1:-1:-1;;;12046:81:21;;;;;;;:::i;:::-;12138:16;719:10:34;12138:31:21;;12180:66;12201:8;12211:4;12225:1;12229:3;12234:7;12180:66;;;;;;;;;;;;:20;:66::i;:::-;12262:9;12257:364;12281:3;:10;12277:1;:14;12257:364;;;12312:10;12325:3;12329:1;12325:6;;;;;;;;:::i;:::-;;;;;;;12312:19;;12345:14;12362:7;12370:1;12362:10;;;;;;;;:::i;:::-;;;;;;;;;;;;12387:19;12409:13;;;;;;;;;;-1:-1:-1;;;;;12409:19:21;;;;;;;;;;;;12362:10;;-1:-1:-1;12450:21:21;;;;12442:70;;;;-1:-1:-1;;;12442:70:21;;;;;;;:::i;:::-;12554:9;:13;;;;;;;;;;;-1:-1:-1;;;;;12554:19:21;;;;;;;;;;12576:20;;12554:42;;12293:3;;;;:::i;:::-;;;;12257:364;;;;12674:1;-1:-1:-1;;;;;12636:55:21;12660:4;-1:-1:-1;;;;;12636:55:21;12650:8;-1:-1:-1;;;;;12636:55:21;;12678:3;12683:7;12636:55;;;;;;;:::i;:::-;;;;;;;;12702:65;12722:8;12732:4;12746:1;12750:3;12755:7;12702:65;;;;;;;;;;;;:19;:65::i;6233:1115::-;6453:7;:14;6439:3;:10;:28;6431:81;;;;-1:-1:-1;;;6431:81:21;;;;;;;:::i;:::-;-1:-1:-1;;;;;6530:16:21;;6522:66;;;;-1:-1:-1;;;6522:66:21;;;;;;;:::i;:::-;719:10:34;6641:60:21;719:10:34;6672:4:21;6678:2;6682:3;6687:7;6696:4;6641:20;:60::i;:::-;6717:9;6712:411;6736:3;:10;6732:1;:14;6712:411;;;6767:10;6780:3;6784:1;6780:6;;;;;;;;:::i;:::-;;;;;;;6767:19;;6800:14;6817:7;6825:1;6817:10;;;;;;;;:::i;:::-;;;;;;;;;;;;6842:19;6864:13;;;;;;;;;;-1:-1:-1;;;;;6864:19:21;;;;;;;;;;;;6817:10;;-1:-1:-1;6905:21:21;;;;6897:76;;;;-1:-1:-1;;;6897:76:21;;;;;;;:::i;:::-;7015:9;:13;;;;;;;;;;;-1:-1:-1;;;;;7015:19:21;;;;;;;;;;7037:20;;;7015:42;;7085:17;;;;;;;:27;;7037:20;;7015:9;7085:27;;7037:20;;7085:27;:::i;:::-;;;;;;;;6753:370;;;6748:3;;;;:::i;:::-;;;6712:411;;;;7168:2;-1:-1:-1;;;;;7138:47:21;7162:4;-1:-1:-1;;;;;7138:47:21;7152:8;-1:-1:-1;;;;;7138:47:21;;7172:3;7177:7;7138:47;;;;;;;:::i;:::-;;;;;;;;7196:59;7216:8;7226:4;7232:2;7236:3;7241:7;7250:4;7196:19;:59::i;:::-;7266:75;7302:8;7312:4;7318:2;7322:3;7327:7;7336:4;7266:35;:75::i;215:102:0:-;297:13;:11;:13::i;2433:187:15:-;2525:6;;;-1:-1:-1;;;;;2541:17:15;;;-1:-1:-1;;;;;;2541:17:15;;;;;;;2573:40;;2525:6;;;2541:17;2525:6;;2573:40;;2506:16;;2573:40;2496:124;2433:187;:::o;8171:86:21:-;8237:4;:13;8244:6;8237:4;:13;:::i;12910:323::-;13060:8;-1:-1:-1;;;;;13051:17:21;:5;-1:-1:-1;;;;;13051:17:21;;13043:71;;;;-1:-1:-1;;;13043:71:21;;33713:2:48;13043:71:21;;;33695:21:48;33752:2;33732:18;;;33725:30;33791:34;33771:18;;;33764:62;-1:-1:-1;;;33842:18:48;;;33835:39;33891:19;;13043:71:21;33511:405:48;13043:71:21;-1:-1:-1;;;;;13124:25:21;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;13124:46:21;;;;;;;;;;13185:41;;1386::48;;;13185::21;;1359:18:48;13185:41:21;;;;;;;12910:323;;;:::o;10806:786::-;-1:-1:-1;;;;;10928:18:21;;10920:66;;;;-1:-1:-1;;;10920:66:21;;;;;;;:::i;:::-;719:10:34;10997:16:21;11061:21;11079:2;11061:17;:21::i;:::-;11038:44;;11092:24;11119:25;11137:6;11119:17;:25::i;:::-;11092:52;;11155:66;11176:8;11186:4;11200:1;11204:3;11209:7;11155:66;;;;;;;;;;;;:20;:66::i;:::-;11232:19;11254:13;;;;;;;;;;;-1:-1:-1;;;;;11254:19:21;;;;;;;;;;11291:21;;;;11283:70;;;;-1:-1:-1;;;11283:70:21;;;;;;;:::i;:::-;11387:9;:13;;;;;;;;;;;-1:-1:-1;;;;;11387:19:21;;;;;;;;;;;;11409:20;;;11387:42;;11455:54;;27340:25:48;;;27381:18;;;27374:34;;;11387:19:21;;11455:54;;;;;;27313:18:48;11455:54:21;;;;;;;11520:65;11540:8;11550:4;11564:1;11568:3;11573:7;11520:65;;;;;;;;;;;;:19;:65::i;4940:947::-;-1:-1:-1;;;;;5121:16:21;;5113:66;;;;-1:-1:-1;;;5113:66:21;;;;;;;:::i;:::-;719:10:34;5190:16:21;5254:21;5272:2;5254:17;:21::i;:::-;5231:44;;5285:24;5312:25;5330:6;5312:17;:25::i;:::-;5285:52;;5348:60;5369:8;5379:4;5385:2;5389:3;5394:7;5403:4;5348:20;:60::i;:::-;5419:19;5441:13;;;;;;;;;;;-1:-1:-1;;;;;5441:19:21;;;;;;;;;;5478:21;;;;5470:76;;;;-1:-1:-1;;;5470:76:21;;;;;;;:::i;:::-;5580:9;:13;;;;;;;;;;;-1:-1:-1;;;;;5580:19:21;;;;;;;;;;5602:20;;;5580:42;;5642:17;;;;;;;:27;;5602:20;;5580:9;5642:27;;5602:20;;5642:27;:::i;:::-;;;;-1:-1:-1;;5685:46:21;;;27340:25:48;;;27396:2;27381:18;;27374:34;;;-1:-1:-1;;;;;5685:46:21;;;;;;;;;;;;;;27313:18:48;5685:46:21;;;;;;;5742:59;5762:8;5772:4;5778:2;5782:3;5787:7;5796:4;5742:19;:59::i;:::-;5812:68;5843:8;5853:4;5859:2;5863;5867:6;5875:4;5812:30;:68::i;:::-;5103:784;;;;4940:947;;;;;:::o;594:201:2:-;679:4;-1:-1:-1;;;;;;702:46:2;;-1:-1:-1;;;702:46:2;;:86;;;752:36;776:11;752:23;:36::i;2734:327:32:-;2461:5;-1:-1:-1;;;;;2836:33:32;;;;2828:88;;;;-1:-1:-1;;;2828:88:32;;34123:2:48;2828:88:32;;;34105:21:48;34162:2;34142:18;;;34135:30;34201:34;34181:18;;;34174:62;-1:-1:-1;;;34252:18:48;;;34245:40;34302:19;;2828:88:32;33921:406:48;2828:88:32;-1:-1:-1;;;;;2934:22:32;;2926:60;;;;-1:-1:-1;;;2926:60:32;;34534:2:48;2926:60:32;;;34516:21:48;34573:2;34553:18;;;34546:30;34612:27;34592:18;;;34585:55;34657:18;;2926:60:32;34332:349:48;2926:60:32;3019:35;;;;;;;;;-1:-1:-1;;;;;3019:35:32;;;;;;-1:-1:-1;;;;;3019:35:32;;;;;;;;;;-1:-1:-1;;;2997:57:32;;;;:19;:57;2734:327::o;9889:890:39:-;9942:7;;-1:-1:-1;;;10017:15:39;;10013:99;;-1:-1:-1;;;10052:15:39;;;-1:-1:-1;10095:2:39;10085:12;10013:99;10138:6;10129:5;:15;10125:99;;10173:6;10164:15;;;-1:-1:-1;10207:2:39;10197:12;10125:99;10250:6;10241:5;:15;10237:99;;10285:6;10276:15;;;-1:-1:-1;10319:2:39;10309:12;10237:99;10362:5;10353;:14;10349:96;;10396:5;10387:14;;;-1:-1:-1;10429:1:39;10419:11;10349:96;10471:5;10462;:14;10458:96;;10505:5;10496:14;;;-1:-1:-1;10538:1:39;10528:11;10458:96;10580:5;10571;:14;10567:96;;10614:5;10605:14;;;-1:-1:-1;10647:1:39;10637:11;10567:96;10689:5;10680;:14;10676:64;;10724:1;10714:11;10766:6;9889:890;-1:-1:-1;;9889:890:39:o;17064:193:21:-;17183:16;;;17197:1;17183:16;;;;;;;;;17130;;17158:22;;17183:16;;;;;;;;;;;;-1:-1:-1;17183:16:21;17158:41;;17220:7;17209:5;17215:1;17209:8;;;;;;;;:::i;:::-;;;;;;;;;;:18;17245:5;17064:193;-1:-1:-1;;17064:193:21:o;906:461:2:-;1174:10;;1149:22;1194:167;1218:14;1214:1;:18;1194:167;;;1249:41;1273:4;1279:2;1283:3;1287:1;1283:6;;;;;;;;:::i;:::-;;;;;;;1249:23;:41::i;:::-;1333:3;;1194:167;;1477:459;1744:10;;1719:22;1764:166;1788:14;1784:1;:18;1764:166;;;1819:40;1842:4;1848:2;1852:3;1856:1;1852:6;;;;;;;;:::i;:::-;;;;;;;1819:22;:40::i;:::-;1902:3;;1764:166;;15535:725:21;-1:-1:-1;;;;;15742:13:21;;1465:19:33;:23;15738:516:21;;15777:72;;-1:-1:-1;;;15777:72:21;;-1:-1:-1;;;;;15777:38:21;;;;;:72;;15816:8;;15826:4;;15832:2;;15836:6;;15844:4;;15777:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15777:72:21;;;;;;;;-1:-1:-1;;15777:72:21;;;;;;;;;;;;:::i;:::-;;;15773:471;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;16120:6;16113:14;;-1:-1:-1;;;16113:14:21;;;;;;;;:::i;15773:471::-;;;16167:62;;-1:-1:-1;;;16167:62:21;;36568:2:48;16167:62:21;;;36550:21:48;36607:2;36587:18;;;36580:30;36646:34;36626:18;;;36619:62;-1:-1:-1;;;36697:18:48;;;36690:50;36757:19;;16167:62:21;36366:416:48;15773:471:21;-1:-1:-1;;;;;;15898:55:21;;-1:-1:-1;;;15898:55:21;15894:152;;15977:50;;-1:-1:-1;;;15977:50:21;;;;;;;:::i;16266:792::-;-1:-1:-1;;;;;16498:13:21;;1465:19:33;:23;16494:558:21;;16533:79;;-1:-1:-1;;;16533:79:21;;-1:-1:-1;;;;;16533:43:21;;;;;:79;;16577:8;;16587:4;;16593:3;;16598:7;;16607:4;;16533:79;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;16533:79:21;;;;;;;;-1:-1:-1;;16533:79:21;;;;;;;;;;;;:::i;:::-;;;16529:513;;;;:::i;:::-;-1:-1:-1;;;;;;16691:60:21;;-1:-1:-1;;;16691:60:21;16687:157;;16775:50;;-1:-1:-1;;;16775:50:21;;;;;;;:::i;1236:305::-;1338:4;-1:-1:-1;;;;;;1373:41:21;;-1:-1:-1;;;1373:41:21;;:109;;-1:-1:-1;;;;;;;1430:52:21;;-1:-1:-1;;;1430:52:21;1373:109;:161;;;-1:-1:-1;;;;;;;;;;937:40:37;;;1498:36:21;829:155:37;697:610:14;-1:-1:-1;;;;;823:18:14;;;;;872:16;;;823:18;902:32;;;;;921:13;902:32;899:402;;;957:28;;-1:-1:-1;;;957:28:14;;;;;;;;;;;899:402;1005:15;1002:299;;;1036:54;1002:299;;;1110:13;1139:56;1107:194;1226:64;719:10:34;1261:4:14;1267:2;1271:7;1280:9;1226:20;:64::i;1437:612::-;-1:-1:-1;;;;;1562:18:14;;;;;1611:16;;;1562:18;1641:32;;;;;1660:13;1641:32;1638:405;;;1696:28;;-1:-1:-1;;;1696:28:14;;;;;;;;;;;1638:405;1744:15;1775:55;1741:302;1850:13;1879:57;1847:196;1967:65;2081:198:15:o;11124:335:12:-;11329:17;;-1:-1:-1;;;;;11329:17:12;11321:40;11317:136;;11377:17;;;:65;;-1:-1:-1;;;11377:65:12;;-1:-1:-1;;;;;19143:15:48;;;11377:65:12;;;19125:34:48;;;;19195:15;;;19175:18;;;19168:43;19247:15;;;19227:18;;;19220:43;11377:17:12;;;:47;;19060:18:48;;11377:65:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:131:48;-1:-1:-1;;;;;89:31:48;;79:42;;69:70;;135:1;132;125:12;150:315;218:6;226;279:2;267:9;258:7;254:23;250:32;247:52;;;295:1;292;285:12;247:52;334:9;321:23;353:31;378:5;353:31;:::i;:::-;403:5;455:2;440:18;;;;427:32;;-1:-1:-1;;;150:315:48:o;860:131::-;-1:-1:-1;;;;;;934:32:48;;924:43;;914:71;;981:1;978;971:12;996:245;1054:6;1107:2;1095:9;1086:7;1082:23;1078:32;1075:52;;;1123:1;1120;1113:12;1075:52;1162:9;1149:23;1181:30;1205:5;1181:30;:::i;1438:435::-;1505:6;1513;1566:2;1554:9;1545:7;1541:23;1537:32;1534:52;;;1582:1;1579;1572:12;1534:52;1621:9;1608:23;1640:31;1665:5;1640:31;:::i;:::-;1690:5;-1:-1:-1;1747:2:48;1732:18;;1719:32;-1:-1:-1;;;;;1782:40:48;;1770:53;;1760:81;;1837:1;1834;1827:12;1760:81;1860:7;1850:17;;;1438:435;;;;;:::o;1878:250::-;1963:1;1973:113;1987:6;1984:1;1981:13;1973:113;;;2063:11;;;2057:18;2044:11;;;2037:39;2009:2;2002:10;1973:113;;;-1:-1:-1;;2120:1:48;2102:16;;2095:27;1878:250::o;2133:271::-;2175:3;2213:5;2207:12;2240:6;2235:3;2228:19;2256:76;2325:6;2318:4;2313:3;2309:14;2302:4;2295:5;2291:16;2256:76;:::i;:::-;2386:2;2365:15;-1:-1:-1;;2361:29:48;2352:39;;;;2393:4;2348:50;;2133:271;-1:-1:-1;;2133:271:48:o;2409:220::-;2558:2;2547:9;2540:21;2521:4;2578:45;2619:2;2608:9;2604:18;2596:6;2578:45;:::i;2880:180::-;2939:6;2992:2;2980:9;2971:7;2967:23;2963:32;2960:52;;;3008:1;3005;2998:12;2960:52;-1:-1:-1;3031:23:48;;2880:180;-1:-1:-1;2880:180:48:o;3065:529::-;3142:6;3150;3158;3211:2;3199:9;3190:7;3186:23;3182:32;3179:52;;;3227:1;3224;3217:12;3179:52;3266:9;3253:23;3285:31;3310:5;3285:31;:::i;:::-;3335:5;-1:-1:-1;3392:2:48;3377:18;;3364:32;3405:33;3364:32;3405:33;:::i;:::-;3457:7;-1:-1:-1;3516:2:48;3501:18;;3488:32;3529:33;3488:32;3529:33;:::i;:::-;3581:7;3571:17;;;3065:529;;;;;:::o;3599:248::-;3667:6;3675;3728:2;3716:9;3707:7;3703:23;3699:32;3696:52;;;3744:1;3741;3734:12;3696:52;-1:-1:-1;;3767:23:48;;;3837:2;3822:18;;;3809:32;;-1:-1:-1;3599:248:48:o;3984:250::-;4078:1;4071:5;4068:12;4058:143;;4123:10;4118:3;4114:20;4111:1;4104:31;4158:4;4155:1;4148:15;4186:4;4183:1;4176:15;4058:143;4210:18;;3984:250::o;4239:234::-;4398:2;4383:18;;4410:57;4387:9;4449:6;4410:57;:::i;4478:367::-;4541:8;4551:6;4605:3;4598:4;4590:6;4586:17;4582:27;4572:55;;4623:1;4620;4613:12;4572:55;-1:-1:-1;4646:20:48;;-1:-1:-1;;;;;4678:30:48;;4675:50;;;4721:1;4718;4711:12;4675:50;4758:4;4750:6;4746:17;4734:29;;4818:3;4811:4;4801:6;4798:1;4794:14;4786:6;4782:27;4778:38;4775:47;4772:67;;;4835:1;4832;4825:12;4850:773;4972:6;4980;4988;4996;5049:2;5037:9;5028:7;5024:23;5020:32;5017:52;;;5065:1;5062;5055:12;5017:52;5105:9;5092:23;-1:-1:-1;;;;;5175:2:48;5167:6;5164:14;5161:34;;;5191:1;5188;5181:12;5161:34;5230:70;5292:7;5283:6;5272:9;5268:22;5230:70;:::i;:::-;5319:8;;-1:-1:-1;5204:96:48;-1:-1:-1;5407:2:48;5392:18;;5379:32;;-1:-1:-1;5423:16:48;;;5420:36;;;5452:1;5449;5442:12;5420:36;;5491:72;5555:7;5544:8;5533:9;5529:24;5491:72;:::i;:::-;4850:773;;;;-1:-1:-1;5582:8:48;-1:-1:-1;;;;4850:773:48:o;5907:247::-;5966:6;6019:2;6007:9;5998:7;5994:23;5990:32;5987:52;;;6035:1;6032;6025:12;5987:52;6074:9;6061:23;6093:31;6118:5;6093:31;:::i;6159:127::-;6220:10;6215:3;6211:20;6208:1;6201:31;6251:4;6248:1;6241:15;6275:4;6272:1;6265:15;6291:249;6401:2;6382:13;;-1:-1:-1;;6378:27:48;6366:40;;-1:-1:-1;;;;;6421:34:48;;6457:22;;;6418:62;6415:88;;;6483:18;;:::i;:::-;6519:2;6512:22;-1:-1:-1;;6291:249:48:o;6545:183::-;6605:4;-1:-1:-1;;;;;6630:6:48;6627:30;6624:56;;;6660:18;;:::i;:::-;-1:-1:-1;6705:1:48;6701:14;6717:4;6697:25;;6545:183::o;6733:724::-;6787:5;6840:3;6833:4;6825:6;6821:17;6817:27;6807:55;;6858:1;6855;6848:12;6807:55;6894:6;6881:20;6920:4;6943:43;6983:2;6943:43;:::i;:::-;7015:2;7009:9;7027:31;7055:2;7047:6;7027:31;:::i;:::-;7093:18;;;7185:1;7181:10;;;;7169:23;;7165:32;;;7127:15;;;;-1:-1:-1;7209:15:48;;;7206:35;;;7237:1;7234;7227:12;7206:35;7273:2;7265:6;7261:15;7285:142;7301:6;7296:3;7293:15;7285:142;;;7367:17;;7355:30;;7405:12;;;;7318;;7285:142;;;-1:-1:-1;7445:6:48;6733:724;-1:-1:-1;;;;;;6733:724:48:o;7462:555::-;7504:5;7557:3;7550:4;7542:6;7538:17;7534:27;7524:55;;7575:1;7572;7565:12;7524:55;7611:6;7598:20;-1:-1:-1;;;;;7633:2:48;7630:26;7627:52;;;7659:18;;:::i;:::-;7708:2;7702:9;7720:67;7775:2;7756:13;;-1:-1:-1;;7752:27:48;7781:4;7748:38;7702:9;7720:67;:::i;:::-;7811:2;7803:6;7796:18;7857:3;7850:4;7845:2;7837:6;7833:15;7829:26;7826:35;7823:55;;;7874:1;7871;7864:12;7823:55;7938:2;7931:4;7923:6;7919:17;7912:4;7904:6;7900:17;7887:54;7985:1;7961:15;;;7978:4;7957:26;7950:37;;;;7965:6;7462:555;-1:-1:-1;;;7462:555:48:o;8022:1071::-;8176:6;8184;8192;8200;8208;8261:3;8249:9;8240:7;8236:23;8232:33;8229:53;;;8278:1;8275;8268:12;8229:53;8317:9;8304:23;8336:31;8361:5;8336:31;:::i;:::-;8386:5;-1:-1:-1;8443:2:48;8428:18;;8415:32;8456:33;8415:32;8456:33;:::i;:::-;8508:7;-1:-1:-1;8566:2:48;8551:18;;8538:32;-1:-1:-1;;;;;8619:14:48;;;8616:34;;;8646:1;8643;8636:12;8616:34;8669:61;8722:7;8713:6;8702:9;8698:22;8669:61;:::i;:::-;8659:71;;8783:2;8772:9;8768:18;8755:32;8739:48;;8812:2;8802:8;8799:16;8796:36;;;8828:1;8825;8818:12;8796:36;8851:63;8906:7;8895:8;8884:9;8880:24;8851:63;:::i;:::-;8841:73;;8967:3;8956:9;8952:19;8939:33;8923:49;;8997:2;8987:8;8984:16;8981:36;;;9013:1;9010;9003:12;8981:36;;9036:51;9079:7;9068:8;9057:9;9053:24;9036:51;:::i;:::-;9026:61;;;8022:1071;;;;;;;;:::o;9098:658::-;9269:2;9321:21;;;9391:13;;9294:18;;;9413:22;;;9240:4;;9269:2;9492:15;;;;9466:2;9451:18;;;9240:4;9535:195;9549:6;9546:1;9543:13;9535:195;;;9614:13;;-1:-1:-1;;;;;9610:39:48;9598:52;;9705:15;;;;9670:12;;;;9646:1;9564:9;9535:195;;;-1:-1:-1;9747:3:48;;9098:658;-1:-1:-1;;;;;;9098:658:48:o;9761:1277::-;9879:6;9887;9940:2;9928:9;9919:7;9915:23;9911:32;9908:52;;;9956:1;9953;9946:12;9908:52;9996:9;9983:23;-1:-1:-1;;;;;10066:2:48;10058:6;10055:14;10052:34;;;10082:1;10079;10072:12;10052:34;10120:6;10109:9;10105:22;10095:32;;10165:7;10158:4;10154:2;10150:13;10146:27;10136:55;;10187:1;10184;10177:12;10136:55;10223:2;10210:16;10245:4;10268:43;10308:2;10268:43;:::i;:::-;10340:2;10334:9;10352:31;10380:2;10372:6;10352:31;:::i;:::-;10418:18;;;10506:1;10502:10;;;;10494:19;;10490:28;;;10452:15;;;;-1:-1:-1;10530:19:48;;;10527:39;;;10562:1;10559;10552:12;10527:39;10586:11;;;;10606:217;10622:6;10617:3;10614:15;10606:217;;;10702:3;10689:17;10719:31;10744:5;10719:31;:::i;:::-;10763:18;;10639:12;;;;10801;;;;10606:217;;;10842:6;-1:-1:-1;;10886:18:48;;10873:32;;-1:-1:-1;;10917:16:48;;;10914:36;;;10946:1;10943;10936:12;10914:36;;10969:63;11024:7;11013:8;11002:9;10998:24;10969:63;:::i;:::-;10959:73;;;9761:1277;;;;;:::o;11043:435::-;11096:3;11134:5;11128:12;11161:6;11156:3;11149:19;11187:4;11216:2;11211:3;11207:12;11200:19;;11253:2;11246:5;11242:14;11274:1;11284:169;11298:6;11295:1;11292:13;11284:169;;;11359:13;;11347:26;;11393:12;;;;11428:15;;;;11320:1;11313:9;11284:169;;;-1:-1:-1;11469:3:48;;11043:435;-1:-1:-1;;;;;11043:435:48:o;11483:261::-;11662:2;11651:9;11644:21;11625:4;11682:56;11734:2;11723:9;11719:18;11711:6;11682:56;:::i;11970:121::-;12065:1;12058:5;12055:12;12045:40;;12081:1;12078;12071:12;12096:144;-1:-1:-1;;;;;12175:5:48;12171:44;12164:5;12161:55;12151:83;;12230:1;12227;12220:12;12245:576;12349:6;12357;12365;12418:2;12406:9;12397:7;12393:23;12389:32;12386:52;;;12434:1;12431;12424:12;12386:52;12473:9;12460:23;12492:51;12537:5;12492:51;:::i;:::-;12562:5;-1:-1:-1;12619:2:48;12604:18;;12591:32;12632:33;12591:32;12632:33;:::i;:::-;12684:7;-1:-1:-1;12743:2:48;12728:18;;12715:32;12756:33;12715:32;12756:33;:::i;12826:118::-;12912:5;12905:13;12898:21;12891:5;12888:32;12878:60;;12934:1;12931;12924:12;12949:241;13005:6;13058:2;13046:9;13037:7;13033:23;13029:32;13026:52;;;13074:1;13071;13064:12;13026:52;13113:9;13100:23;13132:28;13154:5;13132:28;:::i;13195:592::-;13266:6;13274;13327:2;13315:9;13306:7;13302:23;13298:32;13295:52;;;13343:1;13340;13333:12;13295:52;13383:9;13370:23;-1:-1:-1;;;;;13453:2:48;13445:6;13442:14;13439:34;;;13469:1;13466;13459:12;13439:34;13507:6;13496:9;13492:22;13482:32;;13552:7;13545:4;13541:2;13537:13;13533:27;13523:55;;13574:1;13571;13564:12;13523:55;13614:2;13601:16;13640:2;13632:6;13629:14;13626:34;;;13656:1;13653;13646:12;13626:34;13701:7;13696:2;13687:6;13683:2;13679:15;13675:24;13672:37;13669:57;;;13722:1;13719;13712:12;13669:57;13753:2;13745:11;;;;;13775:6;;-1:-1:-1;13195:592:48;;-1:-1:-1;;;;13195:592:48:o;13792:382::-;13857:6;13865;13918:2;13906:9;13897:7;13893:23;13889:32;13886:52;;;13934:1;13931;13924:12;13886:52;13973:9;13960:23;13992:31;14017:5;13992:31;:::i;:::-;14042:5;-1:-1:-1;14099:2:48;14084:18;;14071:32;14112:30;14071:32;14112:30;:::i;14179:536::-;14355:4;14397:2;14386:9;14382:18;14374:26;;14409:64;14463:9;14454:6;14448:13;14409:64;:::i;:::-;14520:4;14512:6;14508:17;14502:24;-1:-1:-1;;;;;14633:2:48;14619:12;14615:21;14608:4;14597:9;14593:20;14586:51;14705:2;14697:4;14689:6;14685:17;14679:24;14675:33;14668:4;14657:9;14653:20;14646:63;;;14179:536;;;;:::o;14720:841::-;14851:6;14859;14867;14875;14883;14936:2;14924:9;14915:7;14911:23;14907:32;14904:52;;;14952:1;14949;14942:12;14904:52;14988:9;14975:23;14965:33;;15049:2;15038:9;15034:18;15021:32;-1:-1:-1;;;;;15113:2:48;15105:6;15102:14;15099:34;;;15129:1;15126;15119:12;15099:34;15168:70;15230:7;15221:6;15210:9;15206:22;15168:70;:::i;:::-;15257:8;;-1:-1:-1;15142:96:48;-1:-1:-1;15345:2:48;15330:18;;15317:32;;-1:-1:-1;15361:16:48;;;15358:36;;;15390:1;15387;15380:12;15358:36;;15429:72;15493:7;15482:8;15471:9;15467:24;15429:72;:::i;:::-;14720:841;;;;-1:-1:-1;14720:841:48;;-1:-1:-1;15520:8:48;;15403:98;14720:841;-1:-1:-1;;;14720:841:48:o;15566:388::-;15634:6;15642;15695:2;15683:9;15674:7;15670:23;15666:32;15663:52;;;15711:1;15708;15701:12;15663:52;15750:9;15737:23;15769:31;15794:5;15769:31;:::i;:::-;15819:5;-1:-1:-1;15876:2:48;15861:18;;15848:32;15889:33;15848:32;15889:33;:::i;15959:734::-;16063:6;16071;16079;16087;16095;16148:3;16136:9;16127:7;16123:23;16119:33;16116:53;;;16165:1;16162;16155:12;16116:53;16204:9;16191:23;16223:31;16248:5;16223:31;:::i;:::-;16273:5;-1:-1:-1;16330:2:48;16315:18;;16302:32;16343:33;16302:32;16343:33;:::i;:::-;16395:7;-1:-1:-1;16449:2:48;16434:18;;16421:32;;-1:-1:-1;16500:2:48;16485:18;;16472:32;;-1:-1:-1;16555:3:48;16540:19;;16527:33;-1:-1:-1;;;;;16572:30:48;;16569:50;;;16615:1;16612;16605:12;16569:50;16638:49;16679:7;16670:6;16659:9;16655:22;16638:49;:::i;16698:718::-;16811:6;16819;16827;16835;16888:3;16876:9;16867:7;16863:23;16859:33;16856:53;;;16905:1;16902;16895:12;16856:53;16944:9;16931:23;16963:31;16988:5;16963:31;:::i;:::-;17013:5;-1:-1:-1;17070:2:48;17055:18;;17042:32;17083:53;17042:32;17083:53;:::i;:::-;17155:7;-1:-1:-1;17214:2:48;17199:18;;17186:32;17227:33;17186:32;17227:33;:::i;:::-;17279:7;-1:-1:-1;17338:2:48;17323:18;;17310:32;17351:33;17310:32;17351:33;:::i;:::-;16698:718;;;;-1:-1:-1;16698:718:48;;-1:-1:-1;;16698:718:48:o;17832:380::-;17911:1;17907:12;;;;17954;;;17975:61;;18029:4;18021:6;18017:17;18007:27;;17975:61;18082:2;18074:6;18071:14;18051:18;18048:38;18045:161;;18128:10;18123:3;18119:20;18116:1;18109:31;18163:4;18160:1;18153:15;18191:4;18188:1;18181:15;18045:161;;17832:380;;;:::o;18217:663::-;18497:3;18535:6;18529:13;18551:66;18610:6;18605:3;18598:4;18590:6;18586:17;18551:66;:::i;:::-;18680:13;;18639:16;;;;18702:70;18680:13;18639:16;18749:4;18737:17;;18702:70;:::i;:::-;-1:-1:-1;;;18794:20:48;;18823:22;;;18872:1;18861:13;;18217:663;-1:-1:-1;;;;18217:663:48:o;19274:127::-;19335:10;19330:3;19326:20;19323:1;19316:31;19366:4;19363:1;19356:15;19390:4;19387:1;19380:15;19406:125;19471:9;;;19492:10;;;19489:36;;;19505:18;;:::i;19536:127::-;19597:10;19592:3;19588:20;19585:1;19578:31;19628:4;19625:1;19618:15;19652:4;19649:1;19642:15;19668:128;19735:9;;;19756:11;;;19753:37;;;19770:18;;:::i;19801:135::-;19840:3;19861:17;;;19858:43;;19881:18;;:::i;:::-;-1:-1:-1;19928:1:48;19917:13;;19801:135::o;19941:311::-;20029:19;;;20011:3;-1:-1:-1;;;;;20060:31:48;;20057:51;;;20104:1;20101;20094:12;20057:51;20140:6;20137:1;20133:14;20192:8;20185:5;20178:4;20173:3;20169:14;20156:45;20221:18;;;;20241:4;20217:29;;19941:311;-1:-1:-1;;;19941:311:48:o;20257:519::-;20534:2;20523:9;20516:21;20497:4;20560:73;20629:2;20618:9;20614:18;20606:6;20598;20560:73;:::i;:::-;20681:9;20673:6;20669:22;20664:2;20653:9;20649:18;20642:50;20709:61;20763:6;20755;20747;20709:61;:::i;:::-;20701:69;20257:519;-1:-1:-1;;;;;;;20257:519:48:o;20781:168::-;20854:9;;;20885;;20902:15;;;20896:22;;20882:37;20872:71;;20923:18;;:::i;21086:217::-;21126:1;21152;21142:132;;21196:10;21191:3;21187:20;21184:1;21177:31;21231:4;21228:1;21221:15;21259:4;21256:1;21249:15;21142:132;-1:-1:-1;21288:9:48;;21086:217::o;21308:810::-;21420:6;21473:2;21461:9;21452:7;21448:23;21444:32;21441:52;;;21489:1;21486;21479:12;21441:52;21522:2;21516:9;21564:2;21556:6;21552:15;21633:6;21621:10;21618:22;-1:-1:-1;;;;;21585:10:48;21582:34;21579:62;21576:88;;;21644:18;;:::i;:::-;21680:2;21673:22;21717:16;;21742:51;21717:16;21742:51;:::i;:::-;21802:21;;21868:2;21853:18;;21847:25;21881:33;21847:25;21881:33;:::i;:::-;21942:2;21930:15;;21923:32;22000:2;21985:18;;21979:25;22013:33;21979:25;22013:33;:::i;:::-;22074:2;22062:15;;22055:32;22066:6;21308:810;-1:-1:-1;;;21308:810:48:o;22441:245::-;22508:6;22561:2;22549:9;22540:7;22536:23;22532:32;22529:52;;;22577:1;22574;22567:12;22529:52;22609:9;22603:16;22628:28;22650:5;22628:28;:::i;22691:410::-;22893:2;22875:21;;;22932:2;22912:18;;;22905:30;22971:34;22966:2;22951:18;;22944:62;-1:-1:-1;;;23037:2:48;23022:18;;23015:44;23091:3;23076:19;;22691:410::o;23106:1018::-;23201:6;23232:2;23275;23263:9;23254:7;23250:23;23246:32;23243:52;;;23291:1;23288;23281:12;23243:52;23324:9;23318:16;-1:-1:-1;;;;;23349:6:48;23346:30;23343:50;;;23389:1;23386;23379:12;23343:50;23412:22;;23465:4;23457:13;;23453:27;-1:-1:-1;23443:55:48;;23494:1;23491;23484:12;23443:55;23523:2;23517:9;23545:43;23585:2;23545:43;:::i;:::-;23617:2;23611:9;23629:31;23657:2;23649:6;23629:31;:::i;:::-;23695:18;;;23783:1;23779:10;;;;23771:19;;23767:28;;;23729:15;;;;-1:-1:-1;23807:19:48;;;23804:39;;;23839:1;23836;23829:12;23804:39;23863:11;;;;23883:210;23899:6;23894:3;23891:15;23883:210;;;23972:3;23966:10;23989:31;24014:5;23989:31;:::i;:::-;24033:18;;23916:12;;;;24071;;;;23883:210;;24539:184;24609:6;24662:2;24650:9;24641:7;24637:23;24633:32;24630:52;;;24678:1;24675;24668:12;24630:52;-1:-1:-1;24701:16:48;;24539:184;-1:-1:-1;24539:184:48:o;25360:331::-;-1:-1:-1;;;;;25577:32:48;;25559:51;;25547:2;25532:18;;25619:66;25681:2;25666:18;;25658:6;25619:66;:::i;25696:313::-;-1:-1:-1;;;;;25888:32:48;;;;25870:51;;-1:-1:-1;;;;;25957:45:48;25952:2;25937:18;;25930:73;25858:2;25843:18;;25696:313::o;26014:251::-;26084:6;26137:2;26125:9;26116:7;26112:23;26108:32;26105:52;;;26153:1;26150;26143:12;26105:52;26185:9;26179:16;26204:31;26229:5;26204:31;:::i;28802:399::-;29004:2;28986:21;;;29043:2;29023:18;;;29016:30;29082:34;29077:2;29062:18;;29055:62;-1:-1:-1;;;29148:2:48;29133:18;;29126:33;29191:3;29176:19;;28802:399::o;29206:404::-;29408:2;29390:21;;;29447:2;29427:18;;;29420:30;29486:34;29481:2;29466:18;;29459:62;-1:-1:-1;;;29552:2:48;29537:18;;29530:38;29600:3;29585:19;;29206:404::o;29615:400::-;29817:2;29799:21;;;29856:2;29836:18;;;29829:30;29895:34;29890:2;29875:18;;29868:62;-1:-1:-1;;;29961:2:48;29946:18;;29939:34;30005:3;29990:19;;29615:400::o;30020:465::-;30277:2;30266:9;30259:21;30240:4;30303:56;30355:2;30344:9;30340:18;30332:6;30303:56;:::i;:::-;30407:9;30399:6;30395:22;30390:2;30379:9;30375:18;30368:50;30435:44;30472:6;30464;30435:44;:::i;:::-;30427:52;30020:465;-1:-1:-1;;;;;30020:465:48:o;30490:401::-;30692:2;30674:21;;;30731:2;30711:18;;;30704:30;30770:34;30765:2;30750:18;;30743:62;-1:-1:-1;;;30836:2:48;30821:18;;30814:35;30881:3;30866:19;;30490:401::o;30896:406::-;31098:2;31080:21;;;31137:2;31117:18;;;31110:30;31176:34;31171:2;31156:18;;31149:62;-1:-1:-1;;;31242:2:48;31227:18;;31220:40;31292:3;31277:19;;30896:406::o;31433:545::-;31535:2;31530:3;31527:11;31524:448;;;31571:1;31596:5;31592:2;31585:17;31641:4;31637:2;31627:19;31711:2;31699:10;31695:19;31692:1;31688:27;31682:4;31678:38;31747:4;31735:10;31732:20;31729:47;;;-1:-1:-1;31770:4:48;31729:47;31825:2;31820:3;31816:12;31813:1;31809:20;31803:4;31799:31;31789:41;;31880:82;31898:2;31891:5;31888:13;31880:82;;;31943:17;;;31924:1;31913:13;31880:82;;31524:448;31433:545;;;:::o;32154:1352::-;32280:3;32274:10;-1:-1:-1;;;;;32299:6:48;32296:30;32293:56;;;32329:18;;:::i;:::-;32358:97;32448:6;32408:38;32440:4;32434:11;32408:38;:::i;:::-;32402:4;32358:97;:::i;:::-;32510:4;;32574:2;32563:14;;32591:1;32586:663;;;;33293:1;33310:6;33307:89;;;-1:-1:-1;33362:19:48;;;33356:26;33307:89;-1:-1:-1;;32111:1:48;32107:11;;;32103:24;32099:29;32089:40;32135:1;32131:11;;;32086:57;33409:81;;32556:944;;32586:663;31380:1;31373:14;;;31417:4;31404:18;;-1:-1:-1;;32622:20:48;;;32740:236;32754:7;32751:1;32748:14;32740:236;;;32843:19;;;32837:26;32822:42;;32935:27;;;;32903:1;32891:14;;;;32770:19;;32740:236;;;32744:3;33004:6;32995:7;32992:19;32989:201;;;33065:19;;;33059:26;-1:-1:-1;;33148:1:48;33144:14;;;33160:3;33140:24;33136:37;33132:42;33117:58;33102:74;;32989:201;-1:-1:-1;;;;;33236:1:48;33220:14;;;33216:22;33203:36;;-1:-1:-1;32154:1352:48:o;34686:561::-;-1:-1:-1;;;;;34983:15:48;;;34965:34;;35035:15;;35030:2;35015:18;;35008:43;35082:2;35067:18;;35060:34;;;35125:2;35110:18;;35103:34;;;34945:3;35168;35153:19;;35146:32;;;34908:4;;35195:46;;35221:19;;35213:6;35195:46;:::i;35252:249::-;35321:6;35374:2;35362:9;35353:7;35349:23;35345:32;35342:52;;;35390:1;35387;35380:12;35342:52;35422:9;35416:16;35441:30;35465:5;35441:30;:::i;35506:179::-;35541:3;35583:1;35565:16;35562:23;35559:120;;;35629:1;35626;35623;35608:23;-1:-1:-1;35666:1:48;35660:8;35655:3;35651:18;35559:120;35506:179;:::o;35690:671::-;35729:3;35771:4;35753:16;35750:26;35747:39;;;35690:671;:::o;35747:39::-;35813:2;35807:9;-1:-1:-1;;35878:16:48;35874:25;;35871:1;35807:9;35850:50;35929:4;35923:11;35953:16;-1:-1:-1;;;;;36059:2:48;36052:4;36044:6;36040:17;36037:25;36032:2;36024:6;36021:14;36018:45;36015:58;;;36066:5;;;;;35690:671;:::o;36015:58::-;36103:6;36097:4;36093:17;36082:28;;36139:3;36133:10;36166:2;36158:6;36155:14;36152:27;;;36172:5;;;;;;35690:671;:::o;36152:27::-;36256:2;36237:16;36231:4;36227:27;36223:36;36216:4;36207:6;36202:3;36198:16;36194:27;36191:69;36188:82;;;36263:5;;;;;;35690:671;:::o;36188:82::-;36279:57;36330:4;36321:6;36313;36309:19;36305:30;36299:4;36279:57;:::i;:::-;-1:-1:-1;36352:3:48;;35690:671;-1:-1:-1;;;;;35690:671:48:o;36787:404::-;36989:2;36971:21;;;37028:2;37008:18;;;37001:30;37067:34;37062:2;37047:18;;37040:62;-1:-1:-1;;;37133:2:48;37118:18;;37111:38;37181:3;37166:19;;36787:404::o;37196:827::-;-1:-1:-1;;;;;37593:15:48;;;37575:34;;37645:15;;37640:2;37625:18;;37618:43;37555:3;37692:2;37677:18;;37670:31;;;37518:4;;37724:57;;37761:19;;37753:6;37724:57;:::i;:::-;37829:9;37821:6;37817:22;37812:2;37801:9;37797:18;37790:50;37863:44;37900:6;37892;37863:44;:::i;:::-;37849:58;;37956:9;37948:6;37944:22;37938:3;37927:9;37923:19;37916:51;37984:33;38010:6;38002;37984:33;:::i;:::-;37976:41;37196:827;-1:-1:-1;;;;;;;;37196:827:48:o

Swarm Source

ipfs://6c549f329098f2c7a528f42439208f73dd823d6e70160a0c042afb5f7a4299a7

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.