ETH Price: $2,195.62 (-1.60%)

Token

Legendary League (LL)

Overview

Max Total Supply

1,102 LL

Holders

357

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Balance
2 LL
0x0b3ad4f232aa52a2d924cc545082e81067178273
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
LegendaryLeague

Compiler Version
v0.8.27+commit.40a35a09

ZkSolc Version
v1.5.11

Optimization Enabled:
Yes with Mode 3

Other Settings:
paris EvmVersion
File 1 of 37 : LegendaryLeague.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import "@limitbreak/creator-token-standards/src/access/OwnableBasic.sol";
import "@limitbreak/creator-token-standards/src/erc721c/ERC721AC.sol";
import "@limitbreak/creator-token-standards/src/programmable-royalties/BasicRoyalties.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "./Supply.sol";
import "./OwnerMint.sol";
import "./UriManager.sol";

error TransferError();
error InsufficientFunds();
error UnauthorizedRequest();
error InvalidStage();
error InvalidAccount();
error ExceedsLimit();
error ExceedsPoolLimit();

contract LegendaryLeague is
    OwnableBasic,
    ERC721AC,
    BasicRoyalties,
    Pausable,
    EIP712,
    Supply,
    OwnerMint,
    UriManager,
    ReentrancyGuard
{
    Stage public stage;
    address public signer;
    uint256 public mintPrice;
    uint256 public whitelistPoolLimit;
    uint256 public vipPoolLimit;
    uint256 public whitelistMinted;
    uint256 public vipMinted;

    mapping(address => mapping(uint8 => uint8)) public mintLimitsByStage;
    mapping(address => bool) public mintedInVip;

    enum Stage {
        Whitelist,
        Public
    }

    struct MintRequest {
        address account;
        uint8 stage;
        uint8 mintLimit;
        bool vip;
    }

    bytes32 private constant MINT_REQUEST_TYPE_HASH =
        keccak256(
            "MintRequest(address account,uint8 stage,uint8 mintLimit,bool vip)"
        );

    constructor(
        string memory name_,
        string memory symbol_,
        uint256 maxSupply_,
        string memory prefix_,
        string memory suffix_,
        address royaltyReceiver_,
        uint96 royaltyFeeNumerator_,
        address signer_
    )
        ERC721AC(name_, symbol_)
        BasicRoyalties(royaltyReceiver_, royaltyFeeNumerator_)
        EIP712("LL-NFT", "0.1.0")
        Supply(maxSupply_)
        UriManager(prefix_, suffix_)
        Ownable(msg.sender)
    {
        _pause();
        signer = signer_;
        mintPrice = 0.045 ether;
        stage = Stage.Whitelist;
        whitelistPoolLimit = 1784;
        vipPoolLimit = 115;
    }

    function mint(
        uint8 amount_,
        MintRequest calldata request_,
        bytes calldata signature_
    )
        external
        payable
        whenAuthorized(request_, signature_)
        whenNotPaused
        nonReentrant
    {
        if (Stage(request_.stage) != stage) {
            revert InvalidStage();
        }

        if (request_.account != msg.sender) {
            revert InvalidAccount();
        }

        if (
            mintLimitsByStage[request_.account][request_.stage] + amount_ >
            request_.mintLimit
        ) {
            revert ExceedsLimit();
        }

        if (Stage(request_.stage) == Stage.Whitelist) {
            _whitelistedMint(amount_, request_);
        } else {
            _publicMint(amount_, request_);
        }
    }

    function _whitelistedMint(
        uint8 amount_,
        MintRequest calldata request_
    ) internal {
        uint8 vipAmount = 0;
        uint8 whitelistAmount = amount_;
        if (request_.vip && !mintedInVip[request_.account]) {
            vipAmount = 1;
            whitelistAmount = amount_ - 1;
            mintedInVip[request_.account] = true;
        }

        if (vipMinted + vipAmount > vipPoolLimit) {
            revert ExceedsPoolLimit();
        }

        uint256 availableWhitelist = whitelistPoolLimit - whitelistMinted;

        if (whitelistAmount > availableWhitelist) {
            whitelistAmount = uint8(availableWhitelist);
        }

        if (whitelistMinted + whitelistAmount > whitelistPoolLimit) {
            revert ExceedsPoolLimit();
        }

        vipMinted += vipAmount;
        whitelistMinted += whitelistAmount;
        uint8 mintAmount = vipAmount + whitelistAmount;

        if (mintAmount == 0) {
            revert ExceedsPoolLimit();
        }

        mintLimitsByStage[request_.account][request_.stage] += mintAmount;
        _handlePayment(mintAmount * mintPrice);
        _callMint(msg.sender, mintAmount);
    }

    function _publicMint(
        uint8 amount_,
        MintRequest calldata request_
    ) internal {
        uint256 availableAmount = _maxSupply - whitelistMinted - vipMinted;
        uint8 mintAmount = amount_;
        if (mintAmount > availableAmount) {
            mintAmount = uint8(availableAmount);
        }
        mintLimitsByStage[request_.account][request_.stage] += mintAmount;
        _handlePayment(mintAmount * mintPrice);
        _callMint(msg.sender, mintAmount);
    }

    function adminWithdraw(address payable account_) public {
        _requireCallerIsContractOwner();
        (bool success, ) = account_.call{value: address(this).balance}("");

        if (!success) {
            revert TransferError();
        }
    }

    function setStage(uint8 stage_) public {
        _requireCallerIsContractOwner();
        stage = Stage(stage_);
    }

    function setSigner(address signer_) public {
        _requireCallerIsContractOwner();
        signer = signer_;
    }

    function setDefaultRoyalty(address receiver_, uint96 feeNumerator_) public {
        _requireCallerIsContractOwner();
        _setDefaultRoyalty(receiver_, feeNumerator_);
    }

    function setMintPrice(uint256 mintPrice_) public {
        _requireCallerIsContractOwner();
        mintPrice = mintPrice_;
    }

    function setWhitelistPoolLimit(uint256 whitelistPoolLimit_) public {
        _requireCallerIsContractOwner();
        whitelistPoolLimit = whitelistPoolLimit_;
    }

    function setVipPoolLimit(uint256 vipPoolLimit_) public {
        _requireCallerIsContractOwner();
        vipPoolLimit = vipPoolLimit_;
    }

    function pause() public {
        _requireCallerIsContractOwner();
        _pause();
    }

    function unpause() public {
        _requireCallerIsContractOwner();
        _unpause();
    }

    function tokenURI(
        uint256 tokenId_
    ) public view override returns (string memory) {
        if (!_exists(tokenId_)) {
            revert URIQueryForNonexistentToken();
        }

        return _buildUri(tokenId_);
    }

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

    function _ownerMint(address account_, uint256 amount_) internal override {
        _callMint(account_, amount_);
    }

    function _callMint(
        address account_,
        uint256 amount_
    ) internal onlyInSupply(amount_) {
        _safeMint(account_, amount_);
    }

    function _currentSupply() internal view override returns (uint256) {
        return totalSupply();
    }

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

    function _hashTypedData(
        MintRequest calldata request_
    ) internal pure returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    MINT_REQUEST_TYPE_HASH,
                    request_.account,
                    request_.stage,
                    request_.mintLimit,
                    request_.vip
                )
            );
    }

    function _handlePayment(uint256 cost_) internal {
        if (msg.value < cost_) {
            revert InsufficientFunds();
        }

        uint256 difference = msg.value - cost_;
        if (difference > 0) {
            (bool success, ) = payable(msg.sender).call{value: difference}("");
            if (!success) {
                revert TransferError();
            }
        }
    }

    modifier whenAuthorized(
        MintRequest calldata request_,
        bytes calldata signature_
    ) {
        bytes32 structHash = _hashTypedData(request_);
        bytes32 digest = _hashTypedDataV4(structHash);
        address recoveredSigner = ECDSA.recover(digest, signature_);
        if (recoveredSigner != signer) {
            revert UnauthorizedRequest();
        }
        _;
    }
}

File 2 of 37 : Supply.sol
//SPDX-License-Identifier: MIT

pragma solidity ^0.8.17;

import "@limitbreak/creator-token-standards/src/access/OwnablePermissions.sol";

abstract contract Supply is OwnablePermissions {
    uint256 internal _maxSupply;

    constructor(uint256 maxSupply_) {
        _maxSupply = maxSupply_;
    }

    function setMaxSupply(uint256 maxSupply_) external {
        _requireCallerIsContractOwner();
        _maxSupply = maxSupply_;
    }

    function maxSupply() external view returns (uint256) {
        return _maxSupply;
    }

    function _currentSupply() internal view virtual returns (uint256);

    modifier onlyInSupply(uint256 amount_) {
        require(_currentSupply() + amount_ <= _maxSupply, "Exceeds supply");
        _;
    }
}

File 3 of 37 : UriManager.sol
//SPDX-License-Identifier: MIT

pragma solidity ^0.8.17;

import "@limitbreak/creator-token-standards/src/access/OwnablePermissions.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

abstract contract UriManager is OwnablePermissions {
    using Strings for uint256;

    string internal _prefix;
    string internal _suffix;

    constructor(string memory prefix_, string memory suffix_) {
        _prefix = prefix_;
        _suffix = suffix_;
    }

    function prefix() public view returns (string memory) {
        return _prefix;
    }

    function suffix() public view returns (string memory) {
        return _suffix;
    }

    function _buildUri(uint256 tokenId) internal view returns (string memory) {
        return string(abi.encodePacked(_prefix, tokenId.toString(), _suffix));
    }

    function setPrefix(string calldata prefix_) public {
        _requireCallerIsContractOwner();
        _prefix = prefix_;
    }

    function setSuffix(string calldata suffix_) public {
        _requireCallerIsContractOwner();
        _suffix = suffix_;
    }
}

File 4 of 37 : OwnerMint.sol
//SPDX-License-Identifier: MIT

pragma solidity ^0.8.17;

import "@limitbreak/creator-token-standards/src/access/OwnablePermissions.sol";

abstract contract OwnerMint is OwnablePermissions {
    function ownerMint(
        address[] calldata accounts_,
        uint256[] calldata amounts_
    ) external {
        _requireCallerIsContractOwner();
        uint256 accountsLength = accounts_.length;
        require(accountsLength == amounts_.length, "Owner mint: bad request");
        for (uint256 i; i < accountsLength; i++) {
            _ownerMint(accounts_[i], amounts_[i]);
        }
    }

    function _ownerMint(address account_, uint256 amount_) internal virtual;
}

File 5 of 37 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    bool private _paused;

    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 6 of 37 : 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 7 of 37 : ERC721AC.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "../utils/AutomaticValidatorTransferApproval.sol";
import "../utils/CreatorTokenBase.sol";
import "erc721a/contracts/ERC721A.sol";
import {TOKEN_TYPE_ERC721} from "@limitbreak/permit-c/src/Constants.sol";

/**
 * @title ERC721AC
 * @author Limit Break, Inc.
 * @notice Extends Azuki's ERC721-A 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 ERC721AC is ERC721A, CreatorTokenBase, AutomaticValidatorTransferApproval {

    constructor(string memory name_, string memory symbol_) CreatorTokenBase() ERC721A(name_, symbol_) {}

    /**
     * @notice Overrides behavior of isApprovedFor all such that if an operator is not explicitly approved
     *         for all, the contract owner can optionally auto-approve the 721-C transfer validator for transfers.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool isApproved) {
        isApproved = super.isApprovedForAll(owner, operator);

        if (!isApproved) {
            if (autoApproveTransfersFromValidator) {
                isApproved = operator == address(getTransferValidator());
            }
        }
    }

    /**
     * @notice Indicates whether the contract implements the specified interface.
     * @dev Overrides supportsInterface in ERC165.
     * @param interfaceId The interface id
     * @return true if the contract implements the specified interface, false otherwise
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return 
        interfaceId == type(ICreatorToken).interfaceId || 
        interfaceId == type(ICreatorTokenLegacy).interfaceId || 
        super.supportsInterface(interfaceId);
    }

    /**
     * @notice Returns the function selector for the transfer validator's validation function to be called 
     * @notice for transaction simulation. 
     */
    function getTransferValidationFunction() external pure returns (bytes4 functionSignature, bool isViewFunction) {
        functionSignature = bytes4(keccak256("validateTransfer(address,address,address,uint256)"));
        isViewFunction = true;
    }

    /// @dev Ties the erc721a _beforeTokenTransfers hook to more granular transfer validation logic
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual override {
        for (uint256 i = 0; i < quantity;) {
            _validateBeforeTransfer(from, to, startTokenId + i);
            unchecked {
                ++i;
            }
        }
    }

    /// @dev Ties the erc721a _afterTokenTransfer hook to more granular transfer validation logic
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual override {
        for (uint256 i = 0; i < quantity;) {
            _validateAfterTransfer(from, to, startTokenId + i);
            unchecked {
                ++i;
            }
        }
    }

    function _msgSenderERC721A() internal view virtual override returns (address) {
        return _msgSender();
    }

    function _tokenType() internal pure override returns(uint16) {
        return uint16(TOKEN_TYPE_ERC721);
    }
}

File 8 of 37 : 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 9 of 37 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.20;

/**
 * @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
    }

    /**
     * @dev The signature derives the `address(0)`.
     */
    error ECDSAInvalidSignature();

    /**
     * @dev The signature has an invalid length.
     */
    error ECDSAInvalidSignatureLength(uint256 length);

    /**
     * @dev The signature has an S value that is in the upper half order.
     */
    error ECDSAInvalidSignatureS(bytes32 s);

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not
     * return address(0) without also returning an error description. Errors are documented using an enum (error type)
     * and a bytes32 providing additional information about the error.
     *
     * If no error is returned, then the address can be used for verification purposes.
     *
     * The `ecrecover` EVM precompile 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 {MessageHashUtils-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]
     */
    function tryRecover(
        bytes32 hash,
        bytes memory signature
    ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {
        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.
            assembly ("memory-safe") {
                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, bytes32(signature.length));
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM precompile 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 {MessageHashUtils-toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);
        _throwError(error, errorArg);
        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[ERC-2098 short signatures]
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {
        unchecked {
            bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
            // We do not check for an overflow here since the shift operation results in 0 or 1.
            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.
     */
    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
        (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);
        _throwError(error, errorArg);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address recovered, RecoverError err, bytes32 errArg) {
        // 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, s);
        }

        // 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, bytes32(0));
        }

        return (signer, RecoverError.NoError, bytes32(0));
    }

    /**
     * @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, bytes32 errorArg) = tryRecover(hash, v, r, s);
        _throwError(error, errorArg);
        return recovered;
    }

    /**
     * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.
     */
    function _throwError(RecoverError error, bytes32 errorArg) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert ECDSAInvalidSignature();
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert ECDSAInvalidSignatureLength(uint256(errorArg));
        } else if (error == RecoverError.InvalidSignatureS) {
            revert ECDSAInvalidSignatureS(errorArg);
        }
    }
}

File 10 of 37 : EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/EIP712.sol)

pragma solidity ^0.8.20;

import {MessageHashUtils} from "./MessageHashUtils.sol";
import {ShortStrings, ShortString} from "../ShortStrings.sol";
import {IERC5267} from "../../interfaces/IERC5267.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP-712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose
 * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract
 * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to
 * produce the hash of their typed data using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP-712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain
 * separator of the implementation contract. This will cause the {_domainSeparatorV4} function to always rebuild the
 * separator from the immutable values, which is cheaper than accessing a cached version in cold storage.
 *
 * @custom:oz-upgrades-unsafe-allow state-variable-immutable
 */
abstract contract EIP712 is IERC5267 {
    using ShortStrings for *;

    bytes32 private constant TYPE_HASH =
        keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");

    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _cachedDomainSeparator;
    uint256 private immutable _cachedChainId;
    address private immutable _cachedThis;

    bytes32 private immutable _hashedName;
    bytes32 private immutable _hashedVersion;

    ShortString private immutable _name;
    ShortString private immutable _version;
    string private _nameFallback;
    string private _versionFallback;

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP-712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        _name = name.toShortStringWithFallback(_nameFallback);
        _version = version.toShortStringWithFallback(_versionFallback);
        _hashedName = keccak256(bytes(name));
        _hashedVersion = keccak256(bytes(version));

        _cachedChainId = block.chainid;
        _cachedDomainSeparator = _buildDomainSeparator();
        _cachedThis = address(this);
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _cachedThis && block.chainid == _cachedChainId) {
            return _cachedDomainSeparator;
        } else {
            return _buildDomainSeparator();
        }
    }

    function _buildDomainSeparator() private view returns (bytes32) {
        return keccak256(abi.encode(TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);
    }

    /**
     * @dev See {IERC-5267}.
     */
    function eip712Domain()
        public
        view
        virtual
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        )
    {
        return (
            hex"0f", // 01111
            _EIP712Name(),
            _EIP712Version(),
            block.chainid,
            address(this),
            bytes32(0),
            new uint256[](0)
        );
    }

    /**
     * @dev The name parameter for the EIP712 domain.
     *
     * NOTE: By default this function reads _name which is an immutable value.
     * It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
     */
    // solhint-disable-next-line func-name-mixedcase
    function _EIP712Name() internal view returns (string memory) {
        return _name.toStringWithFallback(_nameFallback);
    }

    /**
     * @dev The version parameter for the EIP712 domain.
     *
     * NOTE: By default this function reads _version which is an immutable value.
     * It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
     */
    // solhint-disable-next-line func-name-mixedcase
    function _EIP712Version() internal view returns (string memory) {
        return _version.toStringWithFallback(_versionFallback);
    }
}

File 11 of 37 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at,
 * consider using {ReentrancyGuardTransient} instead.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant NOT_ENTERED = 1;
    uint256 private constant ENTERED = 2;

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // Any calls to nonReentrant after this point will fail
        _status = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

File 12 of 37 : 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 13 of 37 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.2.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev String operations.
 */
library Strings {
    using SafeCast for *;

    bytes16 private constant HEX_DIGITS = "0123456789abcdef";
    uint8 private constant ADDRESS_LENGTH = 20;

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

    /**
     * @dev The string being parsed contains characters that are not in scope of the given base.
     */
    error StringsInvalidChar();

    /**
     * @dev The string being parsed is not a properly formatted address.
     */
    error StringsInvalidAddressFormat();

    /**
     * @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;
            assembly ("memory-safe") {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                assembly ("memory-safe") {
                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

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

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

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its checksummed ASCII `string` hexadecimal
     * representation, according to EIP-55.
     */
    function toChecksumHexString(address addr) internal pure returns (string memory) {
        bytes memory buffer = bytes(toHexString(addr));

        // hash the hex part of buffer (skip length + 2 bytes, length 40)
        uint256 hashValue;
        assembly ("memory-safe") {
            hashValue := shr(96, keccak256(add(buffer, 0x22), 40))
        }

        for (uint256 i = 41; i > 1; --i) {
            // possible values for buffer[i] are 48 (0) to 57 (9) and 97 (a) to 102 (f)
            if (hashValue & 0xf > 7 && uint8(buffer[i]) > 96) {
                // case shift by xoring with 0x20
                buffer[i] ^= 0x20;
            }
            hashValue >>= 4;
        }
        return string(buffer);
    }

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

    /**
     * @dev Parse a decimal string and returns the value as a `uint256`.
     *
     * Requirements:
     * - The string must be formatted as `[0-9]*`
     * - The result must fit into an `uint256` type
     */
    function parseUint(string memory input) internal pure returns (uint256) {
        return parseUint(input, 0, bytes(input).length);
    }

    /**
     * @dev Variant of {parseUint} that parses a substring of `input` located between position `begin` (included) and
     * `end` (excluded).
     *
     * Requirements:
     * - The substring must be formatted as `[0-9]*`
     * - The result must fit into an `uint256` type
     */
    function parseUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {
        (bool success, uint256 value) = tryParseUint(input, begin, end);
        if (!success) revert StringsInvalidChar();
        return value;
    }

    /**
     * @dev Variant of {parseUint-string} that returns false if the parsing fails because of an invalid character.
     *
     * NOTE: This function will revert if the result does not fit in a `uint256`.
     */
    function tryParseUint(string memory input) internal pure returns (bool success, uint256 value) {
        return _tryParseUintUncheckedBounds(input, 0, bytes(input).length);
    }

    /**
     * @dev Variant of {parseUint-string-uint256-uint256} that returns false if the parsing fails because of an invalid
     * character.
     *
     * NOTE: This function will revert if the result does not fit in a `uint256`.
     */
    function tryParseUint(
        string memory input,
        uint256 begin,
        uint256 end
    ) internal pure returns (bool success, uint256 value) {
        if (end > bytes(input).length || begin > end) return (false, 0);
        return _tryParseUintUncheckedBounds(input, begin, end);
    }

    /**
     * @dev Implementation of {tryParseUint} that does not check bounds. Caller should make sure that
     * `begin <= end <= input.length`. Other inputs would result in undefined behavior.
     */
    function _tryParseUintUncheckedBounds(
        string memory input,
        uint256 begin,
        uint256 end
    ) private pure returns (bool success, uint256 value) {
        bytes memory buffer = bytes(input);

        uint256 result = 0;
        for (uint256 i = begin; i < end; ++i) {
            uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));
            if (chr > 9) return (false, 0);
            result *= 10;
            result += chr;
        }
        return (true, result);
    }

    /**
     * @dev Parse a decimal string and returns the value as a `int256`.
     *
     * Requirements:
     * - The string must be formatted as `[-+]?[0-9]*`
     * - The result must fit in an `int256` type.
     */
    function parseInt(string memory input) internal pure returns (int256) {
        return parseInt(input, 0, bytes(input).length);
    }

    /**
     * @dev Variant of {parseInt-string} that parses a substring of `input` located between position `begin` (included) and
     * `end` (excluded).
     *
     * Requirements:
     * - The substring must be formatted as `[-+]?[0-9]*`
     * - The result must fit in an `int256` type.
     */
    function parseInt(string memory input, uint256 begin, uint256 end) internal pure returns (int256) {
        (bool success, int256 value) = tryParseInt(input, begin, end);
        if (!success) revert StringsInvalidChar();
        return value;
    }

    /**
     * @dev Variant of {parseInt-string} that returns false if the parsing fails because of an invalid character or if
     * the result does not fit in a `int256`.
     *
     * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.
     */
    function tryParseInt(string memory input) internal pure returns (bool success, int256 value) {
        return _tryParseIntUncheckedBounds(input, 0, bytes(input).length);
    }

    uint256 private constant ABS_MIN_INT256 = 2 ** 255;

    /**
     * @dev Variant of {parseInt-string-uint256-uint256} that returns false if the parsing fails because of an invalid
     * character or if the result does not fit in a `int256`.
     *
     * NOTE: This function will revert if the absolute value of the result does not fit in a `uint256`.
     */
    function tryParseInt(
        string memory input,
        uint256 begin,
        uint256 end
    ) internal pure returns (bool success, int256 value) {
        if (end > bytes(input).length || begin > end) return (false, 0);
        return _tryParseIntUncheckedBounds(input, begin, end);
    }

    /**
     * @dev Implementation of {tryParseInt} that does not check bounds. Caller should make sure that
     * `begin <= end <= input.length`. Other inputs would result in undefined behavior.
     */
    function _tryParseIntUncheckedBounds(
        string memory input,
        uint256 begin,
        uint256 end
    ) private pure returns (bool success, int256 value) {
        bytes memory buffer = bytes(input);

        // Check presence of a negative sign.
        bytes1 sign = begin == end ? bytes1(0) : bytes1(_unsafeReadBytesOffset(buffer, begin)); // don't do out-of-bound (possibly unsafe) read if sub-string is empty
        bool positiveSign = sign == bytes1("+");
        bool negativeSign = sign == bytes1("-");
        uint256 offset = (positiveSign || negativeSign).toUint();

        (bool absSuccess, uint256 absValue) = tryParseUint(input, begin + offset, end);

        if (absSuccess && absValue < ABS_MIN_INT256) {
            return (true, negativeSign ? -int256(absValue) : int256(absValue));
        } else if (absSuccess && negativeSign && absValue == ABS_MIN_INT256) {
            return (true, type(int256).min);
        } else return (false, 0);
    }

    /**
     * @dev Parse a hexadecimal string (with or without "0x" prefix), and returns the value as a `uint256`.
     *
     * Requirements:
     * - The string must be formatted as `(0x)?[0-9a-fA-F]*`
     * - The result must fit in an `uint256` type.
     */
    function parseHexUint(string memory input) internal pure returns (uint256) {
        return parseHexUint(input, 0, bytes(input).length);
    }

    /**
     * @dev Variant of {parseHexUint} that parses a substring of `input` located between position `begin` (included) and
     * `end` (excluded).
     *
     * Requirements:
     * - The substring must be formatted as `(0x)?[0-9a-fA-F]*`
     * - The result must fit in an `uint256` type.
     */
    function parseHexUint(string memory input, uint256 begin, uint256 end) internal pure returns (uint256) {
        (bool success, uint256 value) = tryParseHexUint(input, begin, end);
        if (!success) revert StringsInvalidChar();
        return value;
    }

    /**
     * @dev Variant of {parseHexUint-string} that returns false if the parsing fails because of an invalid character.
     *
     * NOTE: This function will revert if the result does not fit in a `uint256`.
     */
    function tryParseHexUint(string memory input) internal pure returns (bool success, uint256 value) {
        return _tryParseHexUintUncheckedBounds(input, 0, bytes(input).length);
    }

    /**
     * @dev Variant of {parseHexUint-string-uint256-uint256} that returns false if the parsing fails because of an
     * invalid character.
     *
     * NOTE: This function will revert if the result does not fit in a `uint256`.
     */
    function tryParseHexUint(
        string memory input,
        uint256 begin,
        uint256 end
    ) internal pure returns (bool success, uint256 value) {
        if (end > bytes(input).length || begin > end) return (false, 0);
        return _tryParseHexUintUncheckedBounds(input, begin, end);
    }

    /**
     * @dev Implementation of {tryParseHexUint} that does not check bounds. Caller should make sure that
     * `begin <= end <= input.length`. Other inputs would result in undefined behavior.
     */
    function _tryParseHexUintUncheckedBounds(
        string memory input,
        uint256 begin,
        uint256 end
    ) private pure returns (bool success, uint256 value) {
        bytes memory buffer = bytes(input);

        // skip 0x prefix if present
        bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(buffer, begin)) == bytes2("0x"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty
        uint256 offset = hasPrefix.toUint() * 2;

        uint256 result = 0;
        for (uint256 i = begin + offset; i < end; ++i) {
            uint8 chr = _tryParseChr(bytes1(_unsafeReadBytesOffset(buffer, i)));
            if (chr > 15) return (false, 0);
            result *= 16;
            unchecked {
                // Multiplying by 16 is equivalent to a shift of 4 bits (with additional overflow check).
                // This guaratees that adding a value < 16 will not cause an overflow, hence the unchecked.
                result += chr;
            }
        }
        return (true, result);
    }

    /**
     * @dev Parse a hexadecimal string (with or without "0x" prefix), and returns the value as an `address`.
     *
     * Requirements:
     * - The string must be formatted as `(0x)?[0-9a-fA-F]{40}`
     */
    function parseAddress(string memory input) internal pure returns (address) {
        return parseAddress(input, 0, bytes(input).length);
    }

    /**
     * @dev Variant of {parseAddress} that parses a substring of `input` located between position `begin` (included) and
     * `end` (excluded).
     *
     * Requirements:
     * - The substring must be formatted as `(0x)?[0-9a-fA-F]{40}`
     */
    function parseAddress(string memory input, uint256 begin, uint256 end) internal pure returns (address) {
        (bool success, address value) = tryParseAddress(input, begin, end);
        if (!success) revert StringsInvalidAddressFormat();
        return value;
    }

    /**
     * @dev Variant of {parseAddress-string} that returns false if the parsing fails because the input is not a properly
     * formatted address. See {parseAddress} requirements.
     */
    function tryParseAddress(string memory input) internal pure returns (bool success, address value) {
        return tryParseAddress(input, 0, bytes(input).length);
    }

    /**
     * @dev Variant of {parseAddress-string-uint256-uint256} that returns false if the parsing fails because input is not a properly
     * formatted address. See {parseAddress} requirements.
     */
    function tryParseAddress(
        string memory input,
        uint256 begin,
        uint256 end
    ) internal pure returns (bool success, address value) {
        if (end > bytes(input).length || begin > end) return (false, address(0));

        bool hasPrefix = (end > begin + 1) && bytes2(_unsafeReadBytesOffset(bytes(input), begin)) == bytes2("0x"); // don't do out-of-bound (possibly unsafe) read if sub-string is empty
        uint256 expectedLength = 40 + hasPrefix.toUint() * 2;

        // check that input is the correct length
        if (end - begin == expectedLength) {
            // length guarantees that this does not overflow, and value is at most type(uint160).max
            (bool s, uint256 v) = _tryParseHexUintUncheckedBounds(input, begin, end);
            return (s, address(uint160(v)));
        } else {
            return (false, address(0));
        }
    }

    function _tryParseChr(bytes1 chr) private pure returns (uint8) {
        uint8 value = uint8(chr);

        // Try to parse `chr`:
        // - Case 1: [0-9]
        // - Case 2: [a-f]
        // - Case 3: [A-F]
        // - otherwise not supported
        unchecked {
            if (value > 47 && value < 58) value -= 48;
            else if (value > 96 && value < 103) value -= 87;
            else if (value > 64 && value < 71) value -= 55;
            else return type(uint8).max;
        }

        return value;
    }

    /**
     * @dev Reads a bytes32 from a bytes array without bounds checking.
     *
     * NOTE: making this function internal would mean it could be used with memory unsafe offset, and marking the
     * assembly block as such would prevent some optimizations.
     */
    function _unsafeReadBytesOffset(bytes memory buffer, uint256 offset) private pure returns (bytes32 value) {
        // This is not memory safe in the general case, but all calls to this private function are within bounds.
        assembly ("memory-safe") {
            value := mload(add(buffer, add(0x20, offset)))
        }
    }
}

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

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.20;

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

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

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

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

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

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

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

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

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

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

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

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

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

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

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

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

File 17 of 37 : AutomaticValidatorTransferApproval.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "../access/OwnablePermissions.sol";

/**
 * @title AutomaticValidatorTransferApproval
 * @author Limit Break, Inc.
 * @notice Base contract mix-in that provides boilerplate code giving the contract owner the
 *         option to automatically approve a 721-C transfer validator implementation for transfers.
 */
abstract contract AutomaticValidatorTransferApproval is OwnablePermissions {

    /// @dev Emitted when the automatic approval flag is modified by the creator.
    event AutomaticApprovalOfTransferValidatorSet(bool autoApproved);

    /// @dev If true, the collection's transfer validator is automatically approved to transfer holder's tokens.
    bool public autoApproveTransfersFromValidator;

    /**
     * @notice Sets if the transfer validator is automatically approved as an operator for all token owners.
     * 
     * @dev    Throws when the caller is not the contract owner.
     * 
     * @param autoApprove If true, the collection's transfer validator will be automatically approved to
     *                    transfer holder's tokens.
     */
    function setAutomaticApprovalOfTransfersFromValidator(bool autoApprove) external {
        _requireCallerIsContractOwner();
        autoApproveTransfersFromValidator = autoApprove;
        emit AutomaticApprovalOfTransferValidatorSet(autoApprove);
    }
}

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

import "../access/OwnablePermissions.sol";
import "../interfaces/ICreatorToken.sol";
import "../interfaces/ICreatorTokenLegacy.sol";
import "../interfaces/ITransferValidator.sol";
import "./TransferValidation.sol";
import "../interfaces/ITransferValidatorSetTokenType.sol";

/**
 * @title CreatorTokenBase
 * @author Limit Break, Inc.
 * @notice CreatorTokenBaseV3 is an abstract contract that provides basic functionality for managing token 
 * transfer policies through an implementation of ICreatorTokenTransferValidator/ICreatorTokenTransferValidatorV2/ICreatorTokenTransferValidatorV3. 
 * 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>
 *
 * <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 account and codehash blacklists, whitelists, and graylists.</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>
 *
 * <h4>Compatibility:</h4>
 * <ul>Backward and Forward Compatible - V1/V2/V3 Creator Token Base will work with V1/V2/V3 Transfer Validators.</ul>
 */
abstract contract CreatorTokenBase is OwnablePermissions, TransferValidation, ICreatorToken {

    /// @dev Thrown when setting a transfer validator address that has no deployed code.
    error CreatorTokenBase__InvalidTransferValidatorContract();

    /// @dev The default transfer validator that will be used if no transfer validator has been set by the creator.
    address public constant DEFAULT_TRANSFER_VALIDATOR = address(0x721C002B0059009a671D00aD1700c9748146cd1B);

    /// @dev Used to determine if the default transfer validator is applied.
    /// @dev Set to true when the creator sets a transfer validator address.
    bool private isValidatorInitialized;
    /// @dev Address of the transfer validator to apply to transactions.
    address private transferValidator;

    constructor() {
        _emitDefaultTransferValidator();
        _registerTokenType(DEFAULT_TRANSFER_VALIDATOR);
    }

    /**
     * @notice Sets the transfer validator for the token contract.
     *
     * @dev    Throws when provided validator contract is not the zero address and does not have code.
     * @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 = transferValidator_.code.length > 0;

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

        emit TransferValidatorUpdated(address(getTransferValidator()), transferValidator_);

        isValidatorInitialized = true;
        transferValidator = transferValidator_;

        _registerTokenType(transferValidator_);
    }

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

        if (validator == address(0)) {
            if (!isValidatorInitialized) {
                validator = DEFAULT_TRANSFER_VALIDATOR;
            }
        }
    }

    /**
     * @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 Be aware that if the msg.sender is the transfer validator, the transfer is automatically permitted, as the
     *      transfer validator is expected to pre-validate the transfer.
     *
     * @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.
     * @param tokenId The token id being transferred.
     */
    function _preValidateTransfer(
        address caller, 
        address from, 
        address to, 
        uint256 tokenId, 
        uint256 /*value*/) internal virtual override {
        address validator = getTransferValidator();

        if (validator != address(0)) {
            if (msg.sender == validator) {
                return;
            }

            ITransferValidator(validator).validateTransfer(caller, from, to, tokenId);
        }
    }

    /**
     * @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 Be aware that if the msg.sender is the transfer validator, the transfer is automatically permitted, as the
     *      transfer validator is expected to pre-validate the transfer.
     * 
     * @dev Used for ERC20 and ERC1155 token transfers which have an amount value to validate in the transfer validator.
     * @dev The `tokenId` for ERC20 tokens should be set to `0`.
     *
     * @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.
     * @param tokenId The token id being transferred.
     * @param amount  The amount of token being transferred.
     */
    function _preValidateTransfer(
        address caller, 
        address from, 
        address to, 
        uint256 tokenId, 
        uint256 amount,
        uint256 /*value*/) internal virtual override {
        address validator = getTransferValidator();

        if (validator != address(0)) {
            if (msg.sender == validator) {
                return;
            }

            ITransferValidator(validator).validateTransfer(caller, from, to, tokenId, amount);
        }
    }

    function _tokenType() internal virtual pure returns(uint16);

    function _registerTokenType(address validator) internal {
        if (validator != address(0)) {
            uint256 validatorCodeSize;
            assembly {
                validatorCodeSize := extcodesize(validator)
            }
            if(validatorCodeSize > 0) {
                try ITransferValidatorSetTokenType(validator).setTokenTypeOfCollection(address(this), _tokenType()) {
                } catch { }
            }
        }
    }

    /**
     * @dev  Used during contract deployment for constructable and cloneable creator tokens
     * @dev  to emit the `TransferValidatorUpdated` event signaling the validator for the contract
     * @dev  is the default transfer validator.
     */
    function _emitDefaultTransferValidator() internal {
        emit TransferValidatorUpdated(address(0), DEFAULT_TRANSFER_VALIDATOR);
    }
}

File 19 of 37 : Constants.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/// @dev Constant bytes32 value of 0x000...000
bytes32 constant ZERO_BYTES32 = bytes32(0);

/// @dev Constant value of 0
uint256 constant ZERO = 0;
/// @dev Constant value of 1
uint256 constant ONE = 1;

/// @dev Constant value representing an open order in storage
uint8 constant ORDER_STATE_OPEN = 0;
/// @dev Constant value representing a filled order in storage
uint8 constant ORDER_STATE_FILLED = 1;
/// @dev Constant value representing a cancelled order in storage
uint8 constant ORDER_STATE_CANCELLED = 2;

/// @dev Constant value representing the ERC721 token type for signatures and transfer hooks
uint256 constant TOKEN_TYPE_ERC721 = 721;
/// @dev Constant value representing the ERC1155 token type for signatures and transfer hooks
uint256 constant TOKEN_TYPE_ERC1155 = 1155;
/// @dev Constant value representing the ERC20 token type for signatures and transfer hooks
uint256 constant TOKEN_TYPE_ERC20 = 20;

/// @dev Constant value to mask the upper bits of a signature that uses a packed `vs` value to extract `s`
bytes32 constant UPPER_BIT_MASK = 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;

/// @dev EIP-712 typehash used for validating signature based stored approvals
bytes32 constant UPDATE_APPROVAL_TYPEHASH =
    keccak256("UpdateApprovalBySignature(uint256 tokenType,address token,uint256 id,uint256 amount,uint256 nonce,address operator,uint256 approvalExpiration,uint256 sigDeadline,uint256 masterNonce)");

/// @dev EIP-712 typehash used for validating a single use permit without additional data
bytes32 constant SINGLE_USE_PERMIT_TYPEHASH =
    keccak256("PermitTransferFrom(uint256 tokenType,address token,uint256 id,uint256 amount,uint256 nonce,address operator,uint256 expiration,uint256 masterNonce)");

/// @dev EIP-712 typehash used for validating a single use permit with additional data
string constant SINGLE_USE_PERMIT_TRANSFER_ADVANCED_TYPEHASH_STUB =
    "PermitTransferFromWithAdditionalData(uint256 tokenType,address token,uint256 id,uint256 amount,uint256 nonce,address operator,uint256 expiration,uint256 masterNonce,";

/// @dev EIP-712 typehash used for validating an order permit that updates storage as it fills
string constant PERMIT_ORDER_ADVANCED_TYPEHASH_STUB =
    "PermitOrderWithAdditionalData(uint256 tokenType,address token,uint256 id,uint256 amount,uint256 salt,address operator,uint256 expiration,uint256 masterNonce,";

/// @dev Pausable flag for stored approval transfers of ERC721 assets
uint256 constant PAUSABLE_APPROVAL_TRANSFER_FROM_ERC721 = 1 << 0;
/// @dev Pausable flag for stored approval transfers of ERC1155 assets
uint256 constant PAUSABLE_APPROVAL_TRANSFER_FROM_ERC1155 = 1 << 1;
/// @dev Pausable flag for stored approval transfers of ERC20 assets
uint256 constant PAUSABLE_APPROVAL_TRANSFER_FROM_ERC20 = 1 << 2;

/// @dev Pausable flag for single use permit transfers of ERC721 assets
uint256 constant PAUSABLE_PERMITTED_TRANSFER_FROM_ERC721 = 1 << 3;
/// @dev Pausable flag for single use permit transfers of ERC1155 assets
uint256 constant PAUSABLE_PERMITTED_TRANSFER_FROM_ERC1155 = 1 << 4;
/// @dev Pausable flag for single use permit transfers of ERC20 assets
uint256 constant PAUSABLE_PERMITTED_TRANSFER_FROM_ERC20 = 1 << 5;

/// @dev Pausable flag for order fill transfers of ERC1155 assets
uint256 constant PAUSABLE_ORDER_TRANSFER_FROM_ERC1155 = 1 << 6;
/// @dev Pausable flag for order fill transfers of ERC20 assets
uint256 constant PAUSABLE_ORDER_TRANSFER_FROM_ERC20 = 1 << 7;

File 20 of 37 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.20;

import {IERC2981} from "../../interfaces/IERC2981.sol";
import {IERC165, ERC165} from "../../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 ERC. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

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

    /**
     * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1).
     */
    error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator);

    /**
     * @dev The default royalty receiver is invalid.
     */
    error ERC2981InvalidDefaultRoyaltyReceiver(address receiver);

    /**
     * @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1).
     */
    error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator);

    /**
     * @dev The royalty receiver for `tokenId` is invalid.
     */
    error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver);

    /**
     * @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 returns (address receiver, uint256 amount) {
        RoyaltyInfo storage _royaltyInfo = _tokenRoyaltyInfo[tokenId];
        address royaltyReceiver = _royaltyInfo.receiver;
        uint96 royaltyFraction = _royaltyInfo.royaltyFraction;

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

        uint256 royaltyAmount = (salePrice * royaltyFraction) / _feeDenominator();

        return (royaltyReceiver, 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 {
        uint256 denominator = _feeDenominator();
        if (feeNumerator > denominator) {
            // Royalty fee will exceed the sale price
            revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator);
        }
        if (receiver == address(0)) {
            revert ERC2981InvalidDefaultRoyaltyReceiver(address(0));
        }

        _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 {
        uint256 denominator = _feeDenominator();
        if (feeNumerator > denominator) {
            // Royalty fee will exceed the sale price
            revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator);
        }
        if (receiver == address(0)) {
            revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0));
        }

        _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 21 of 37 : ShortStrings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ShortStrings.sol)

pragma solidity ^0.8.20;

import {StorageSlot} from "./StorageSlot.sol";

// | string  | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA   |
// | length  | 0x                                                              BB |
type ShortString is bytes32;

/**
 * @dev This library provides functions to convert short memory strings
 * into a `ShortString` type that can be used as an immutable variable.
 *
 * Strings of arbitrary length can be optimized using this library if
 * they are short enough (up to 31 bytes) by packing them with their
 * length (1 byte) in a single EVM word (32 bytes). Additionally, a
 * fallback mechanism can be used for every other case.
 *
 * Usage example:
 *
 * ```solidity
 * contract Named {
 *     using ShortStrings for *;
 *
 *     ShortString private immutable _name;
 *     string private _nameFallback;
 *
 *     constructor(string memory contractName) {
 *         _name = contractName.toShortStringWithFallback(_nameFallback);
 *     }
 *
 *     function name() external view returns (string memory) {
 *         return _name.toStringWithFallback(_nameFallback);
 *     }
 * }
 * ```
 */
library ShortStrings {
    // Used as an identifier for strings longer than 31 bytes.
    bytes32 private constant FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;

    error StringTooLong(string str);
    error InvalidShortString();

    /**
     * @dev Encode a string of at most 31 chars into a `ShortString`.
     *
     * This will trigger a `StringTooLong` error is the input string is too long.
     */
    function toShortString(string memory str) internal pure returns (ShortString) {
        bytes memory bstr = bytes(str);
        if (bstr.length > 31) {
            revert StringTooLong(str);
        }
        return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));
    }

    /**
     * @dev Decode a `ShortString` back to a "normal" string.
     */
    function toString(ShortString sstr) internal pure returns (string memory) {
        uint256 len = byteLength(sstr);
        // using `new string(len)` would work locally but is not memory safe.
        string memory str = new string(32);
        assembly ("memory-safe") {
            mstore(str, len)
            mstore(add(str, 0x20), sstr)
        }
        return str;
    }

    /**
     * @dev Return the length of a `ShortString`.
     */
    function byteLength(ShortString sstr) internal pure returns (uint256) {
        uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;
        if (result > 31) {
            revert InvalidShortString();
        }
        return result;
    }

    /**
     * @dev Encode a string into a `ShortString`, or write it to storage if it is too long.
     */
    function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {
        if (bytes(value).length < 32) {
            return toShortString(value);
        } else {
            StorageSlot.getStringSlot(store).value = value;
            return ShortString.wrap(FALLBACK_SENTINEL);
        }
    }

    /**
     * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
     */
    function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {
        if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
            return toString(value);
        } else {
            return store;
        }
    }

    /**
     * @dev Return the length of a string that was encoded to `ShortString` or written to storage using
     * {setWithFallback}.
     *
     * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of
     * actual characters as the UTF-8 encoding of a single character can span over multiple bytes.
     */
    function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {
        if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
            return byteLength(value);
        } else {
            return bytes(store).length;
        }
    }
}

File 22 of 37 : IERC5267.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5267.sol)

pragma solidity ^0.8.20;

interface IERC5267 {
    /**
     * @dev MAY be emitted to signal that the domain could have changed.
     */
    event EIP712DomainChanged();

    /**
     * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
     * signature.
     */
    function eip712Domain()
        external
        view
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        );
}

File 23 of 37 : MessageHashUtils.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/MessageHashUtils.sol)

pragma solidity ^0.8.20;

import {Strings} from "../Strings.sol";

/**
 * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.
 *
 * The library provides methods for generating a hash of a message that conforms to the
 * https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]
 * specifications.
 */
library MessageHashUtils {
    /**
     * @dev Returns the keccak256 digest of an ERC-191 signed data with version
     * `0x45` (`personal_sign` messages).
     *
     * The digest is calculated by prefixing a bytes32 `messageHash` with
     * `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the
     * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
     *
     * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with
     * keccak256, although any bytes32 value can be safely used because the final digest will
     * be re-hashed.
     *
     * See {ECDSA-recover}.
     */
    function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {
        assembly ("memory-safe") {
            mstore(0x00, "\x19Ethereum Signed Message:\n32") // 32 is the bytes-length of messageHash
            mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix
            digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)
        }
    }

    /**
     * @dev Returns the keccak256 digest of an ERC-191 signed data with version
     * `0x45` (`personal_sign` messages).
     *
     * The digest is calculated by prefixing an arbitrary `message` with
     * `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the
     * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
     *
     * See {ECDSA-recover}.
     */
    function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {
        return
            keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message));
    }

    /**
     * @dev Returns the keccak256 digest of an ERC-191 signed data with version
     * `0x00` (data with intended validator).
     *
     * The digest is calculated by prefixing an arbitrary `data` with `"\x19\x00"` and the intended
     * `validator` address. Then hashing the result.
     *
     * See {ECDSA-recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked(hex"19_00", validator, data));
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-712 typed data (ERC-191 version `0x01`).
     *
     * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with
     * `\x19\x01` and hashing the result. It corresponds to the hash signed by the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.
     *
     * See {ECDSA-recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {
        assembly ("memory-safe") {
            let ptr := mload(0x40)
            mstore(ptr, hex"19_01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            digest := keccak256(ptr, 0x42)
        }
    }
}

File 24 of 37 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

import {Panic} from "../Panic.sol";
import {SafeCast} from "./SafeCast.sol";

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

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

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

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

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

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

    /**
     * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.
     *
     * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.
     * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute
     * one branch when needed, making this function more expensive.
     */
    function ternary(bool condition, uint256 a, uint256 b) internal pure returns (uint256) {
        unchecked {
            // branchless ternary works because:
            // b ^ (a ^ b) == a
            // b ^ 0 == b
            return b ^ ((a ^ b) * SafeCast.toUint(condition));
        }
    }

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

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

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

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            Panic.panic(Panic.DIVISION_BY_ZERO);
        }

        // The following calculation ensures accurate ceiling division without overflow.
        // Since a is non-zero, (a - 1) / b will not overflow.
        // The largest possible result occurs when (a - 1) / b is type(uint256).max,
        // but the largest value we can obtain is type(uint256).max - 1, which happens
        // when a = type(uint256).max and b = 1.
        unchecked {
            return SafeCast.toUint(a > 0) * ((a - 1) / b + 1);
        }
    }

    /**
     * @dev Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
     * denominator == 0.
     *
     * 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²⁵⁶ and mod 2²⁵⁶ - 1, then use
            // the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2²⁵⁶ + prod0.
            uint256 prod0 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

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

            // Make sure the result is less than 2²⁵⁶. Also prevents denominator == 0.
            if (denominator <= prod1) {
                Panic.panic(ternary(denominator == 0, Panic.DIVISION_BY_ZERO, Panic.UNDER_OVERFLOW));
            }

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

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

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

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

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

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

                // Flip twos such that it is 2²⁵⁶ / 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²⁵⁶. Now that denominator is an odd number, it has an inverse modulo 2²⁵⁶ such
            // that denominator * inv ≡ 1 mod 2²⁵⁶. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv ≡ 1 mod 2⁴.
            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⁸
            inverse *= 2 - denominator * inverse; // inverse mod 2¹⁶
            inverse *= 2 - denominator * inverse; // inverse mod 2³²
            inverse *= 2 - denominator * inverse; // inverse mod 2⁶⁴
            inverse *= 2 - denominator * inverse; // inverse mod 2¹²⁸
            inverse *= 2 - denominator * inverse; // inverse mod 2²⁵⁶

            // 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²⁵⁶. Since the preconditions guarantee that the outcome is
            // less than 2²⁵⁶, 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;
        }
    }

    /**
     * @dev 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) {
        return mulDiv(x, y, denominator) + SafeCast.toUint(unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0);
    }

    /**
     * @dev Calculate the modular multiplicative inverse of a number in Z/nZ.
     *
     * If n is a prime, then Z/nZ is a field. In that case all elements are inversible, except 0.
     * If n is not a prime, then Z/nZ is not a field, and some elements might not be inversible.
     *
     * If the input value is not inversible, 0 is returned.
     *
     * NOTE: If you know for sure that n is (big) a prime, it may be cheaper to use Fermat's little theorem and get the
     * inverse using `Math.modExp(a, n - 2, n)`. See {invModPrime}.
     */
    function invMod(uint256 a, uint256 n) internal pure returns (uint256) {
        unchecked {
            if (n == 0) return 0;

            // The inverse modulo is calculated using the Extended Euclidean Algorithm (iterative version)
            // Used to compute integers x and y such that: ax + ny = gcd(a, n).
            // When the gcd is 1, then the inverse of a modulo n exists and it's x.
            // ax + ny = 1
            // ax = 1 + (-y)n
            // ax ≡ 1 (mod n) # x is the inverse of a modulo n

            // If the remainder is 0 the gcd is n right away.
            uint256 remainder = a % n;
            uint256 gcd = n;

            // Therefore the initial coefficients are:
            // ax + ny = gcd(a, n) = n
            // 0a + 1n = n
            int256 x = 0;
            int256 y = 1;

            while (remainder != 0) {
                uint256 quotient = gcd / remainder;

                (gcd, remainder) = (
                    // The old remainder is the next gcd to try.
                    remainder,
                    // Compute the next remainder.
                    // Can't overflow given that (a % gcd) * (gcd // (a % gcd)) <= gcd
                    // where gcd is at most n (capped to type(uint256).max)
                    gcd - remainder * quotient
                );

                (x, y) = (
                    // Increment the coefficient of a.
                    y,
                    // Decrement the coefficient of n.
                    // Can overflow, but the result is casted to uint256 so that the
                    // next value of y is "wrapped around" to a value between 0 and n - 1.
                    x - y * int256(quotient)
                );
            }

            if (gcd != 1) return 0; // No inverse exists.
            return ternary(x < 0, n - uint256(-x), uint256(x)); // Wrap the result if it's negative.
        }
    }

    /**
     * @dev Variant of {invMod}. More efficient, but only works if `p` is known to be a prime greater than `2`.
     *
     * From https://en.wikipedia.org/wiki/Fermat%27s_little_theorem[Fermat's little theorem], we know that if p is
     * prime, then `a**(p-1) ≡ 1 mod p`. As a consequence, we have `a * a**(p-2) ≡ 1 mod p`, which means that
     * `a**(p-2)` is the modular multiplicative inverse of a in Fp.
     *
     * NOTE: this function does NOT check that `p` is a prime greater than `2`.
     */
    function invModPrime(uint256 a, uint256 p) internal view returns (uint256) {
        unchecked {
            return Math.modExp(a, p - 2, p);
        }
    }

    /**
     * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m)
     *
     * Requirements:
     * - modulus can't be zero
     * - underlying staticcall to precompile must succeed
     *
     * IMPORTANT: The result is only valid if the underlying call succeeds. When using this function, make
     * sure the chain you're using it on supports the precompiled contract for modular exponentiation
     * at address 0x05 as specified in https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise,
     * the underlying function will succeed given the lack of a revert, but the result may be incorrectly
     * interpreted as 0.
     */
    function modExp(uint256 b, uint256 e, uint256 m) internal view returns (uint256) {
        (bool success, uint256 result) = tryModExp(b, e, m);
        if (!success) {
            Panic.panic(Panic.DIVISION_BY_ZERO);
        }
        return result;
    }

    /**
     * @dev Returns the modular exponentiation of the specified base, exponent and modulus (b ** e % m).
     * It includes a success flag indicating if the operation succeeded. Operation will be marked as failed if trying
     * to operate modulo 0 or if the underlying precompile reverted.
     *
     * IMPORTANT: The result is only valid if the success flag is true. When using this function, make sure the chain
     * you're using it on supports the precompiled contract for modular exponentiation at address 0x05 as specified in
     * https://eips.ethereum.org/EIPS/eip-198[EIP-198]. Otherwise, the underlying function will succeed given the lack
     * of a revert, but the result may be incorrectly interpreted as 0.
     */
    function tryModExp(uint256 b, uint256 e, uint256 m) internal view returns (bool success, uint256 result) {
        if (m == 0) return (false, 0);
        assembly ("memory-safe") {
            let ptr := mload(0x40)
            // | Offset    | Content    | Content (Hex)                                                      |
            // |-----------|------------|--------------------------------------------------------------------|
            // | 0x00:0x1f | size of b  | 0x0000000000000000000000000000000000000000000000000000000000000020 |
            // | 0x20:0x3f | size of e  | 0x0000000000000000000000000000000000000000000000000000000000000020 |
            // | 0x40:0x5f | size of m  | 0x0000000000000000000000000000000000000000000000000000000000000020 |
            // | 0x60:0x7f | value of b | 0x<.............................................................b> |
            // | 0x80:0x9f | value of e | 0x<.............................................................e> |
            // | 0xa0:0xbf | value of m | 0x<.............................................................m> |
            mstore(ptr, 0x20)
            mstore(add(ptr, 0x20), 0x20)
            mstore(add(ptr, 0x40), 0x20)
            mstore(add(ptr, 0x60), b)
            mstore(add(ptr, 0x80), e)
            mstore(add(ptr, 0xa0), m)

            // Given the result < m, it's guaranteed to fit in 32 bytes,
            // so we can use the memory scratch space located at offset 0.
            success := staticcall(gas(), 0x05, ptr, 0xc0, 0x00, 0x20)
            result := mload(0x00)
        }
    }

    /**
     * @dev Variant of {modExp} that supports inputs of arbitrary length.
     */
    function modExp(bytes memory b, bytes memory e, bytes memory m) internal view returns (bytes memory) {
        (bool success, bytes memory result) = tryModExp(b, e, m);
        if (!success) {
            Panic.panic(Panic.DIVISION_BY_ZERO);
        }
        return result;
    }

    /**
     * @dev Variant of {tryModExp} that supports inputs of arbitrary length.
     */
    function tryModExp(
        bytes memory b,
        bytes memory e,
        bytes memory m
    ) internal view returns (bool success, bytes memory result) {
        if (_zeroBytes(m)) return (false, new bytes(0));

        uint256 mLen = m.length;

        // Encode call args in result and move the free memory pointer
        result = abi.encodePacked(b.length, e.length, mLen, b, e, m);

        assembly ("memory-safe") {
            let dataPtr := add(result, 0x20)
            // Write result on top of args to avoid allocating extra memory.
            success := staticcall(gas(), 0x05, dataPtr, mload(result), dataPtr, mLen)
            // Overwrite the length.
            // result.length > returndatasize() is guaranteed because returndatasize() == m.length
            mstore(result, mLen)
            // Set the memory pointer after the returned data.
            mstore(0x40, add(dataPtr, mLen))
        }
    }

    /**
     * @dev Returns whether the provided byte array is zero.
     */
    function _zeroBytes(bytes memory byteArray) private pure returns (bool) {
        for (uint256 i = 0; i < byteArray.length; ++i) {
            if (byteArray[i] != 0) {
                return false;
            }
        }
        return true;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
     * towards zero.
     *
     * This method is based on Newton's method for computing square roots; the algorithm is restricted to only
     * using integer operations.
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        unchecked {
            // Take care of easy edge cases when a == 0 or a == 1
            if (a <= 1) {
                return a;
            }

            // In this function, we use Newton's method to get a root of `f(x) := x² - a`. It involves building a
            // sequence x_n that converges toward sqrt(a). For each iteration x_n, we also define the error between
            // the current value as `ε_n = | x_n - sqrt(a) |`.
            //
            // For our first estimation, we consider `e` the smallest power of 2 which is bigger than the square root
            // of the target. (i.e. `2**(e-1) ≤ sqrt(a) < 2**e`). We know that `e ≤ 128` because `(2¹²⁸)² = 2²⁵⁶` is
            // bigger than any uint256.
            //
            // By noticing that
            // `2**(e-1) ≤ sqrt(a) < 2**e → (2**(e-1))² ≤ a < (2**e)² → 2**(2*e-2) ≤ a < 2**(2*e)`
            // we can deduce that `e - 1` is `log2(a) / 2`. We can thus compute `x_n = 2**(e-1)` using a method similar
            // to the msb function.
            uint256 aa = a;
            uint256 xn = 1;

            if (aa >= (1 << 128)) {
                aa >>= 128;
                xn <<= 64;
            }
            if (aa >= (1 << 64)) {
                aa >>= 64;
                xn <<= 32;
            }
            if (aa >= (1 << 32)) {
                aa >>= 32;
                xn <<= 16;
            }
            if (aa >= (1 << 16)) {
                aa >>= 16;
                xn <<= 8;
            }
            if (aa >= (1 << 8)) {
                aa >>= 8;
                xn <<= 4;
            }
            if (aa >= (1 << 4)) {
                aa >>= 4;
                xn <<= 2;
            }
            if (aa >= (1 << 2)) {
                xn <<= 1;
            }

            // We now have x_n such that `x_n = 2**(e-1) ≤ sqrt(a) < 2**e = 2 * x_n`. This implies ε_n ≤ 2**(e-1).
            //
            // We can refine our estimation by noticing that the middle of that interval minimizes the error.
            // If we move x_n to equal 2**(e-1) + 2**(e-2), then we reduce the error to ε_n ≤ 2**(e-2).
            // This is going to be our x_0 (and ε_0)
            xn = (3 * xn) >> 1; // ε_0 := | x_0 - sqrt(a) | ≤ 2**(e-2)

            // From here, Newton's method give us:
            // x_{n+1} = (x_n + a / x_n) / 2
            //
            // One should note that:
            // x_{n+1}² - a = ((x_n + a / x_n) / 2)² - a
            //              = ((x_n² + a) / (2 * x_n))² - a
            //              = (x_n⁴ + 2 * a * x_n² + a²) / (4 * x_n²) - a
            //              = (x_n⁴ + 2 * a * x_n² + a² - 4 * a * x_n²) / (4 * x_n²)
            //              = (x_n⁴ - 2 * a * x_n² + a²) / (4 * x_n²)
            //              = (x_n² - a)² / (2 * x_n)²
            //              = ((x_n² - a) / (2 * x_n))²
            //              ≥ 0
            // Which proves that for all n ≥ 1, sqrt(a) ≤ x_n
            //
            // This gives us the proof of quadratic convergence of the sequence:
            // ε_{n+1} = | x_{n+1} - sqrt(a) |
            //         = | (x_n + a / x_n) / 2 - sqrt(a) |
            //         = | (x_n² + a - 2*x_n*sqrt(a)) / (2 * x_n) |
            //         = | (x_n - sqrt(a))² / (2 * x_n) |
            //         = | ε_n² / (2 * x_n) |
            //         = ε_n² / | (2 * x_n) |
            //
            // For the first iteration, we have a special case where x_0 is known:
            // ε_1 = ε_0² / | (2 * x_0) |
            //     ≤ (2**(e-2))² / (2 * (2**(e-1) + 2**(e-2)))
            //     ≤ 2**(2*e-4) / (3 * 2**(e-1))
            //     ≤ 2**(e-3) / 3
            //     ≤ 2**(e-3-log2(3))
            //     ≤ 2**(e-4.5)
            //
            // For the following iterations, we use the fact that, 2**(e-1) ≤ sqrt(a) ≤ x_n:
            // ε_{n+1} = ε_n² / | (2 * x_n) |
            //         ≤ (2**(e-k))² / (2 * 2**(e-1))
            //         ≤ 2**(2*e-2*k) / 2**e
            //         ≤ 2**(e-2*k)
            xn = (xn + a / xn) >> 1; // ε_1 := | x_1 - sqrt(a) | ≤ 2**(e-4.5)  -- special case, see above
            xn = (xn + a / xn) >> 1; // ε_2 := | x_2 - sqrt(a) | ≤ 2**(e-9)    -- general case with k = 4.5
            xn = (xn + a / xn) >> 1; // ε_3 := | x_3 - sqrt(a) | ≤ 2**(e-18)   -- general case with k = 9
            xn = (xn + a / xn) >> 1; // ε_4 := | x_4 - sqrt(a) | ≤ 2**(e-36)   -- general case with k = 18
            xn = (xn + a / xn) >> 1; // ε_5 := | x_5 - sqrt(a) | ≤ 2**(e-72)   -- general case with k = 36
            xn = (xn + a / xn) >> 1; // ε_6 := | x_6 - sqrt(a) | ≤ 2**(e-144)  -- general case with k = 72

            // Because e ≤ 128 (as discussed during the first estimation phase), we know have reached a precision
            // ε_6 ≤ 2**(e-144) < 1. Given we're operating on integers, then we can ensure that xn is now either
            // sqrt(a) or sqrt(a) + 1.
            return xn - SafeCast.toUint(xn > a / xn);
        }
    }

    /**
     * @dev 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 + SafeCast.toUint(unsignedRoundsUp(rounding) && result * result < a);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        uint256 exp;
        unchecked {
            exp = 128 * SafeCast.toUint(value > (1 << 128) - 1);
            value >>= exp;
            result += exp;

            exp = 64 * SafeCast.toUint(value > (1 << 64) - 1);
            value >>= exp;
            result += exp;

            exp = 32 * SafeCast.toUint(value > (1 << 32) - 1);
            value >>= exp;
            result += exp;

            exp = 16 * SafeCast.toUint(value > (1 << 16) - 1);
            value >>= exp;
            result += exp;

            exp = 8 * SafeCast.toUint(value > (1 << 8) - 1);
            value >>= exp;
            result += exp;

            exp = 4 * SafeCast.toUint(value > (1 << 4) - 1);
            value >>= exp;
            result += exp;

            exp = 2 * SafeCast.toUint(value > (1 << 2) - 1);
            value >>= exp;
            result += exp;

            result += SafeCast.toUint(value > 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 + SafeCast.toUint(unsignedRoundsUp(rounding) && 1 << result < value);
        }
    }

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

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

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        uint256 isGt;
        unchecked {
            isGt = SafeCast.toUint(value > (1 << 128) - 1);
            value >>= isGt * 128;
            result += isGt * 16;

            isGt = SafeCast.toUint(value > (1 << 64) - 1);
            value >>= isGt * 64;
            result += isGt * 8;

            isGt = SafeCast.toUint(value > (1 << 32) - 1);
            value >>= isGt * 32;
            result += isGt * 4;

            isGt = SafeCast.toUint(value > (1 << 16) - 1);
            value >>= isGt * 16;
            result += isGt * 2;

            result += SafeCast.toUint(value > (1 << 8) - 1);
        }
        return result;
    }

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

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

File 25 of 37 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

import {SafeCast} from "./SafeCast.sol";

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Branchless ternary evaluation for `a ? b : c`. Gas costs are constant.
     *
     * IMPORTANT: This function may reduce bytecode size and consume less gas when used standalone.
     * However, the compiler may optimize Solidity ternary operations (i.e. `a ? b : c`) to only compute
     * one branch when needed, making this function more expensive.
     */
    function ternary(bool condition, int256 a, int256 b) internal pure returns (int256) {
        unchecked {
            // branchless ternary works because:
            // b ^ (a ^ b) == a
            // b ^ 0 == b
            return b ^ ((a ^ b) * int256(SafeCast.toUint(condition)));
        }
    }

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

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

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // Formula from the "Bit Twiddling Hacks" by Sean Eron Anderson.
            // Since `n` is a signed integer, the generated bytecode will use the SAR opcode to perform the right shift,
            // taking advantage of the most significant (or "sign" bit) in two's complement representation.
            // This opcode adds new most significant bits set to the value of the previous most significant bit. As a result,
            // the mask will either be `bytes32(0)` (if n is positive) or `~bytes32(0)` (if n is negative).
            int256 mask = n >> 255;

            // A `bytes32(0)` mask leaves the input unchanged, while a `~bytes32(0)` mask complements it.
            return uint256((n + mask) ^ mask);
        }
    }
}

File 26 of 37 : SafeCast.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/math/SafeCast.sol)
// This file was procedurally generated from scripts/generate/templates/SafeCast.js.

pragma solidity ^0.8.20;

/**
 * @dev Wrappers over Solidity's uintXX/intXX/bool casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeCast {
    /**
     * @dev Value doesn't fit in an uint of `bits` size.
     */
    error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value);

    /**
     * @dev An int value doesn't fit in an uint of `bits` size.
     */
    error SafeCastOverflowedIntToUint(int256 value);

    /**
     * @dev Value doesn't fit in an int of `bits` size.
     */
    error SafeCastOverflowedIntDowncast(uint8 bits, int256 value);

    /**
     * @dev An uint value doesn't fit in an int of `bits` size.
     */
    error SafeCastOverflowedUintToInt(uint256 value);

    /**
     * @dev Returns the downcasted uint248 from uint256, reverting on
     * overflow (when the input is greater than largest uint248).
     *
     * Counterpart to Solidity's `uint248` operator.
     *
     * Requirements:
     *
     * - input must fit into 248 bits
     */
    function toUint248(uint256 value) internal pure returns (uint248) {
        if (value > type(uint248).max) {
            revert SafeCastOverflowedUintDowncast(248, value);
        }
        return uint248(value);
    }

    /**
     * @dev Returns the downcasted uint240 from uint256, reverting on
     * overflow (when the input is greater than largest uint240).
     *
     * Counterpart to Solidity's `uint240` operator.
     *
     * Requirements:
     *
     * - input must fit into 240 bits
     */
    function toUint240(uint256 value) internal pure returns (uint240) {
        if (value > type(uint240).max) {
            revert SafeCastOverflowedUintDowncast(240, value);
        }
        return uint240(value);
    }

    /**
     * @dev Returns the downcasted uint232 from uint256, reverting on
     * overflow (when the input is greater than largest uint232).
     *
     * Counterpart to Solidity's `uint232` operator.
     *
     * Requirements:
     *
     * - input must fit into 232 bits
     */
    function toUint232(uint256 value) internal pure returns (uint232) {
        if (value > type(uint232).max) {
            revert SafeCastOverflowedUintDowncast(232, value);
        }
        return uint232(value);
    }

    /**
     * @dev Returns the downcasted uint224 from uint256, reverting on
     * overflow (when the input is greater than largest uint224).
     *
     * Counterpart to Solidity's `uint224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     */
    function toUint224(uint256 value) internal pure returns (uint224) {
        if (value > type(uint224).max) {
            revert SafeCastOverflowedUintDowncast(224, value);
        }
        return uint224(value);
    }

    /**
     * @dev Returns the downcasted uint216 from uint256, reverting on
     * overflow (when the input is greater than largest uint216).
     *
     * Counterpart to Solidity's `uint216` operator.
     *
     * Requirements:
     *
     * - input must fit into 216 bits
     */
    function toUint216(uint256 value) internal pure returns (uint216) {
        if (value > type(uint216).max) {
            revert SafeCastOverflowedUintDowncast(216, value);
        }
        return uint216(value);
    }

    /**
     * @dev Returns the downcasted uint208 from uint256, reverting on
     * overflow (when the input is greater than largest uint208).
     *
     * Counterpart to Solidity's `uint208` operator.
     *
     * Requirements:
     *
     * - input must fit into 208 bits
     */
    function toUint208(uint256 value) internal pure returns (uint208) {
        if (value > type(uint208).max) {
            revert SafeCastOverflowedUintDowncast(208, value);
        }
        return uint208(value);
    }

    /**
     * @dev Returns the downcasted uint200 from uint256, reverting on
     * overflow (when the input is greater than largest uint200).
     *
     * Counterpart to Solidity's `uint200` operator.
     *
     * Requirements:
     *
     * - input must fit into 200 bits
     */
    function toUint200(uint256 value) internal pure returns (uint200) {
        if (value > type(uint200).max) {
            revert SafeCastOverflowedUintDowncast(200, value);
        }
        return uint200(value);
    }

    /**
     * @dev Returns the downcasted uint192 from uint256, reverting on
     * overflow (when the input is greater than largest uint192).
     *
     * Counterpart to Solidity's `uint192` operator.
     *
     * Requirements:
     *
     * - input must fit into 192 bits
     */
    function toUint192(uint256 value) internal pure returns (uint192) {
        if (value > type(uint192).max) {
            revert SafeCastOverflowedUintDowncast(192, value);
        }
        return uint192(value);
    }

    /**
     * @dev Returns the downcasted uint184 from uint256, reverting on
     * overflow (when the input is greater than largest uint184).
     *
     * Counterpart to Solidity's `uint184` operator.
     *
     * Requirements:
     *
     * - input must fit into 184 bits
     */
    function toUint184(uint256 value) internal pure returns (uint184) {
        if (value > type(uint184).max) {
            revert SafeCastOverflowedUintDowncast(184, value);
        }
        return uint184(value);
    }

    /**
     * @dev Returns the downcasted uint176 from uint256, reverting on
     * overflow (when the input is greater than largest uint176).
     *
     * Counterpart to Solidity's `uint176` operator.
     *
     * Requirements:
     *
     * - input must fit into 176 bits
     */
    function toUint176(uint256 value) internal pure returns (uint176) {
        if (value > type(uint176).max) {
            revert SafeCastOverflowedUintDowncast(176, value);
        }
        return uint176(value);
    }

    /**
     * @dev Returns the downcasted uint168 from uint256, reverting on
     * overflow (when the input is greater than largest uint168).
     *
     * Counterpart to Solidity's `uint168` operator.
     *
     * Requirements:
     *
     * - input must fit into 168 bits
     */
    function toUint168(uint256 value) internal pure returns (uint168) {
        if (value > type(uint168).max) {
            revert SafeCastOverflowedUintDowncast(168, value);
        }
        return uint168(value);
    }

    /**
     * @dev Returns the downcasted uint160 from uint256, reverting on
     * overflow (when the input is greater than largest uint160).
     *
     * Counterpart to Solidity's `uint160` operator.
     *
     * Requirements:
     *
     * - input must fit into 160 bits
     */
    function toUint160(uint256 value) internal pure returns (uint160) {
        if (value > type(uint160).max) {
            revert SafeCastOverflowedUintDowncast(160, value);
        }
        return uint160(value);
    }

    /**
     * @dev Returns the downcasted uint152 from uint256, reverting on
     * overflow (when the input is greater than largest uint152).
     *
     * Counterpart to Solidity's `uint152` operator.
     *
     * Requirements:
     *
     * - input must fit into 152 bits
     */
    function toUint152(uint256 value) internal pure returns (uint152) {
        if (value > type(uint152).max) {
            revert SafeCastOverflowedUintDowncast(152, value);
        }
        return uint152(value);
    }

    /**
     * @dev Returns the downcasted uint144 from uint256, reverting on
     * overflow (when the input is greater than largest uint144).
     *
     * Counterpart to Solidity's `uint144` operator.
     *
     * Requirements:
     *
     * - input must fit into 144 bits
     */
    function toUint144(uint256 value) internal pure returns (uint144) {
        if (value > type(uint144).max) {
            revert SafeCastOverflowedUintDowncast(144, value);
        }
        return uint144(value);
    }

    /**
     * @dev Returns the downcasted uint136 from uint256, reverting on
     * overflow (when the input is greater than largest uint136).
     *
     * Counterpart to Solidity's `uint136` operator.
     *
     * Requirements:
     *
     * - input must fit into 136 bits
     */
    function toUint136(uint256 value) internal pure returns (uint136) {
        if (value > type(uint136).max) {
            revert SafeCastOverflowedUintDowncast(136, value);
        }
        return uint136(value);
    }

    /**
     * @dev Returns the downcasted uint128 from uint256, reverting on
     * overflow (when the input is greater than largest uint128).
     *
     * Counterpart to Solidity's `uint128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     */
    function toUint128(uint256 value) internal pure returns (uint128) {
        if (value > type(uint128).max) {
            revert SafeCastOverflowedUintDowncast(128, value);
        }
        return uint128(value);
    }

    /**
     * @dev Returns the downcasted uint120 from uint256, reverting on
     * overflow (when the input is greater than largest uint120).
     *
     * Counterpart to Solidity's `uint120` operator.
     *
     * Requirements:
     *
     * - input must fit into 120 bits
     */
    function toUint120(uint256 value) internal pure returns (uint120) {
        if (value > type(uint120).max) {
            revert SafeCastOverflowedUintDowncast(120, value);
        }
        return uint120(value);
    }

    /**
     * @dev Returns the downcasted uint112 from uint256, reverting on
     * overflow (when the input is greater than largest uint112).
     *
     * Counterpart to Solidity's `uint112` operator.
     *
     * Requirements:
     *
     * - input must fit into 112 bits
     */
    function toUint112(uint256 value) internal pure returns (uint112) {
        if (value > type(uint112).max) {
            revert SafeCastOverflowedUintDowncast(112, value);
        }
        return uint112(value);
    }

    /**
     * @dev Returns the downcasted uint104 from uint256, reverting on
     * overflow (when the input is greater than largest uint104).
     *
     * Counterpart to Solidity's `uint104` operator.
     *
     * Requirements:
     *
     * - input must fit into 104 bits
     */
    function toUint104(uint256 value) internal pure returns (uint104) {
        if (value > type(uint104).max) {
            revert SafeCastOverflowedUintDowncast(104, value);
        }
        return uint104(value);
    }

    /**
     * @dev Returns the downcasted uint96 from uint256, reverting on
     * overflow (when the input is greater than largest uint96).
     *
     * Counterpart to Solidity's `uint96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     */
    function toUint96(uint256 value) internal pure returns (uint96) {
        if (value > type(uint96).max) {
            revert SafeCastOverflowedUintDowncast(96, value);
        }
        return uint96(value);
    }

    /**
     * @dev Returns the downcasted uint88 from uint256, reverting on
     * overflow (when the input is greater than largest uint88).
     *
     * Counterpart to Solidity's `uint88` operator.
     *
     * Requirements:
     *
     * - input must fit into 88 bits
     */
    function toUint88(uint256 value) internal pure returns (uint88) {
        if (value > type(uint88).max) {
            revert SafeCastOverflowedUintDowncast(88, value);
        }
        return uint88(value);
    }

    /**
     * @dev Returns the downcasted uint80 from uint256, reverting on
     * overflow (when the input is greater than largest uint80).
     *
     * Counterpart to Solidity's `uint80` operator.
     *
     * Requirements:
     *
     * - input must fit into 80 bits
     */
    function toUint80(uint256 value) internal pure returns (uint80) {
        if (value > type(uint80).max) {
            revert SafeCastOverflowedUintDowncast(80, value);
        }
        return uint80(value);
    }

    /**
     * @dev Returns the downcasted uint72 from uint256, reverting on
     * overflow (when the input is greater than largest uint72).
     *
     * Counterpart to Solidity's `uint72` operator.
     *
     * Requirements:
     *
     * - input must fit into 72 bits
     */
    function toUint72(uint256 value) internal pure returns (uint72) {
        if (value > type(uint72).max) {
            revert SafeCastOverflowedUintDowncast(72, value);
        }
        return uint72(value);
    }

    /**
     * @dev Returns the downcasted uint64 from uint256, reverting on
     * overflow (when the input is greater than largest uint64).
     *
     * Counterpart to Solidity's `uint64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     */
    function toUint64(uint256 value) internal pure returns (uint64) {
        if (value > type(uint64).max) {
            revert SafeCastOverflowedUintDowncast(64, value);
        }
        return uint64(value);
    }

    /**
     * @dev Returns the downcasted uint56 from uint256, reverting on
     * overflow (when the input is greater than largest uint56).
     *
     * Counterpart to Solidity's `uint56` operator.
     *
     * Requirements:
     *
     * - input must fit into 56 bits
     */
    function toUint56(uint256 value) internal pure returns (uint56) {
        if (value > type(uint56).max) {
            revert SafeCastOverflowedUintDowncast(56, value);
        }
        return uint56(value);
    }

    /**
     * @dev Returns the downcasted uint48 from uint256, reverting on
     * overflow (when the input is greater than largest uint48).
     *
     * Counterpart to Solidity's `uint48` operator.
     *
     * Requirements:
     *
     * - input must fit into 48 bits
     */
    function toUint48(uint256 value) internal pure returns (uint48) {
        if (value > type(uint48).max) {
            revert SafeCastOverflowedUintDowncast(48, value);
        }
        return uint48(value);
    }

    /**
     * @dev Returns the downcasted uint40 from uint256, reverting on
     * overflow (when the input is greater than largest uint40).
     *
     * Counterpart to Solidity's `uint40` operator.
     *
     * Requirements:
     *
     * - input must fit into 40 bits
     */
    function toUint40(uint256 value) internal pure returns (uint40) {
        if (value > type(uint40).max) {
            revert SafeCastOverflowedUintDowncast(40, value);
        }
        return uint40(value);
    }

    /**
     * @dev Returns the downcasted uint32 from uint256, reverting on
     * overflow (when the input is greater than largest uint32).
     *
     * Counterpart to Solidity's `uint32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     */
    function toUint32(uint256 value) internal pure returns (uint32) {
        if (value > type(uint32).max) {
            revert SafeCastOverflowedUintDowncast(32, value);
        }
        return uint32(value);
    }

    /**
     * @dev Returns the downcasted uint24 from uint256, reverting on
     * overflow (when the input is greater than largest uint24).
     *
     * Counterpart to Solidity's `uint24` operator.
     *
     * Requirements:
     *
     * - input must fit into 24 bits
     */
    function toUint24(uint256 value) internal pure returns (uint24) {
        if (value > type(uint24).max) {
            revert SafeCastOverflowedUintDowncast(24, value);
        }
        return uint24(value);
    }

    /**
     * @dev Returns the downcasted uint16 from uint256, reverting on
     * overflow (when the input is greater than largest uint16).
     *
     * Counterpart to Solidity's `uint16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     */
    function toUint16(uint256 value) internal pure returns (uint16) {
        if (value > type(uint16).max) {
            revert SafeCastOverflowedUintDowncast(16, value);
        }
        return uint16(value);
    }

    /**
     * @dev Returns the downcasted uint8 from uint256, reverting on
     * overflow (when the input is greater than largest uint8).
     *
     * Counterpart to Solidity's `uint8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits
     */
    function toUint8(uint256 value) internal pure returns (uint8) {
        if (value > type(uint8).max) {
            revert SafeCastOverflowedUintDowncast(8, value);
        }
        return uint8(value);
    }

    /**
     * @dev Converts a signed int256 into an unsigned uint256.
     *
     * Requirements:
     *
     * - input must be greater than or equal to 0.
     */
    function toUint256(int256 value) internal pure returns (uint256) {
        if (value < 0) {
            revert SafeCastOverflowedIntToUint(value);
        }
        return uint256(value);
    }

    /**
     * @dev Returns the downcasted int248 from int256, reverting on
     * overflow (when the input is less than smallest int248 or
     * greater than largest int248).
     *
     * Counterpart to Solidity's `int248` operator.
     *
     * Requirements:
     *
     * - input must fit into 248 bits
     */
    function toInt248(int256 value) internal pure returns (int248 downcasted) {
        downcasted = int248(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(248, value);
        }
    }

    /**
     * @dev Returns the downcasted int240 from int256, reverting on
     * overflow (when the input is less than smallest int240 or
     * greater than largest int240).
     *
     * Counterpart to Solidity's `int240` operator.
     *
     * Requirements:
     *
     * - input must fit into 240 bits
     */
    function toInt240(int256 value) internal pure returns (int240 downcasted) {
        downcasted = int240(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(240, value);
        }
    }

    /**
     * @dev Returns the downcasted int232 from int256, reverting on
     * overflow (when the input is less than smallest int232 or
     * greater than largest int232).
     *
     * Counterpart to Solidity's `int232` operator.
     *
     * Requirements:
     *
     * - input must fit into 232 bits
     */
    function toInt232(int256 value) internal pure returns (int232 downcasted) {
        downcasted = int232(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(232, value);
        }
    }

    /**
     * @dev Returns the downcasted int224 from int256, reverting on
     * overflow (when the input is less than smallest int224 or
     * greater than largest int224).
     *
     * Counterpart to Solidity's `int224` operator.
     *
     * Requirements:
     *
     * - input must fit into 224 bits
     */
    function toInt224(int256 value) internal pure returns (int224 downcasted) {
        downcasted = int224(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(224, value);
        }
    }

    /**
     * @dev Returns the downcasted int216 from int256, reverting on
     * overflow (when the input is less than smallest int216 or
     * greater than largest int216).
     *
     * Counterpart to Solidity's `int216` operator.
     *
     * Requirements:
     *
     * - input must fit into 216 bits
     */
    function toInt216(int256 value) internal pure returns (int216 downcasted) {
        downcasted = int216(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(216, value);
        }
    }

    /**
     * @dev Returns the downcasted int208 from int256, reverting on
     * overflow (when the input is less than smallest int208 or
     * greater than largest int208).
     *
     * Counterpart to Solidity's `int208` operator.
     *
     * Requirements:
     *
     * - input must fit into 208 bits
     */
    function toInt208(int256 value) internal pure returns (int208 downcasted) {
        downcasted = int208(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(208, value);
        }
    }

    /**
     * @dev Returns the downcasted int200 from int256, reverting on
     * overflow (when the input is less than smallest int200 or
     * greater than largest int200).
     *
     * Counterpart to Solidity's `int200` operator.
     *
     * Requirements:
     *
     * - input must fit into 200 bits
     */
    function toInt200(int256 value) internal pure returns (int200 downcasted) {
        downcasted = int200(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(200, value);
        }
    }

    /**
     * @dev Returns the downcasted int192 from int256, reverting on
     * overflow (when the input is less than smallest int192 or
     * greater than largest int192).
     *
     * Counterpart to Solidity's `int192` operator.
     *
     * Requirements:
     *
     * - input must fit into 192 bits
     */
    function toInt192(int256 value) internal pure returns (int192 downcasted) {
        downcasted = int192(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(192, value);
        }
    }

    /**
     * @dev Returns the downcasted int184 from int256, reverting on
     * overflow (when the input is less than smallest int184 or
     * greater than largest int184).
     *
     * Counterpart to Solidity's `int184` operator.
     *
     * Requirements:
     *
     * - input must fit into 184 bits
     */
    function toInt184(int256 value) internal pure returns (int184 downcasted) {
        downcasted = int184(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(184, value);
        }
    }

    /**
     * @dev Returns the downcasted int176 from int256, reverting on
     * overflow (when the input is less than smallest int176 or
     * greater than largest int176).
     *
     * Counterpart to Solidity's `int176` operator.
     *
     * Requirements:
     *
     * - input must fit into 176 bits
     */
    function toInt176(int256 value) internal pure returns (int176 downcasted) {
        downcasted = int176(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(176, value);
        }
    }

    /**
     * @dev Returns the downcasted int168 from int256, reverting on
     * overflow (when the input is less than smallest int168 or
     * greater than largest int168).
     *
     * Counterpart to Solidity's `int168` operator.
     *
     * Requirements:
     *
     * - input must fit into 168 bits
     */
    function toInt168(int256 value) internal pure returns (int168 downcasted) {
        downcasted = int168(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(168, value);
        }
    }

    /**
     * @dev Returns the downcasted int160 from int256, reverting on
     * overflow (when the input is less than smallest int160 or
     * greater than largest int160).
     *
     * Counterpart to Solidity's `int160` operator.
     *
     * Requirements:
     *
     * - input must fit into 160 bits
     */
    function toInt160(int256 value) internal pure returns (int160 downcasted) {
        downcasted = int160(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(160, value);
        }
    }

    /**
     * @dev Returns the downcasted int152 from int256, reverting on
     * overflow (when the input is less than smallest int152 or
     * greater than largest int152).
     *
     * Counterpart to Solidity's `int152` operator.
     *
     * Requirements:
     *
     * - input must fit into 152 bits
     */
    function toInt152(int256 value) internal pure returns (int152 downcasted) {
        downcasted = int152(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(152, value);
        }
    }

    /**
     * @dev Returns the downcasted int144 from int256, reverting on
     * overflow (when the input is less than smallest int144 or
     * greater than largest int144).
     *
     * Counterpart to Solidity's `int144` operator.
     *
     * Requirements:
     *
     * - input must fit into 144 bits
     */
    function toInt144(int256 value) internal pure returns (int144 downcasted) {
        downcasted = int144(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(144, value);
        }
    }

    /**
     * @dev Returns the downcasted int136 from int256, reverting on
     * overflow (when the input is less than smallest int136 or
     * greater than largest int136).
     *
     * Counterpart to Solidity's `int136` operator.
     *
     * Requirements:
     *
     * - input must fit into 136 bits
     */
    function toInt136(int256 value) internal pure returns (int136 downcasted) {
        downcasted = int136(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(136, value);
        }
    }

    /**
     * @dev Returns the downcasted int128 from int256, reverting on
     * overflow (when the input is less than smallest int128 or
     * greater than largest int128).
     *
     * Counterpart to Solidity's `int128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     */
    function toInt128(int256 value) internal pure returns (int128 downcasted) {
        downcasted = int128(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(128, value);
        }
    }

    /**
     * @dev Returns the downcasted int120 from int256, reverting on
     * overflow (when the input is less than smallest int120 or
     * greater than largest int120).
     *
     * Counterpart to Solidity's `int120` operator.
     *
     * Requirements:
     *
     * - input must fit into 120 bits
     */
    function toInt120(int256 value) internal pure returns (int120 downcasted) {
        downcasted = int120(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(120, value);
        }
    }

    /**
     * @dev Returns the downcasted int112 from int256, reverting on
     * overflow (when the input is less than smallest int112 or
     * greater than largest int112).
     *
     * Counterpart to Solidity's `int112` operator.
     *
     * Requirements:
     *
     * - input must fit into 112 bits
     */
    function toInt112(int256 value) internal pure returns (int112 downcasted) {
        downcasted = int112(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(112, value);
        }
    }

    /**
     * @dev Returns the downcasted int104 from int256, reverting on
     * overflow (when the input is less than smallest int104 or
     * greater than largest int104).
     *
     * Counterpart to Solidity's `int104` operator.
     *
     * Requirements:
     *
     * - input must fit into 104 bits
     */
    function toInt104(int256 value) internal pure returns (int104 downcasted) {
        downcasted = int104(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(104, value);
        }
    }

    /**
     * @dev Returns the downcasted int96 from int256, reverting on
     * overflow (when the input is less than smallest int96 or
     * greater than largest int96).
     *
     * Counterpart to Solidity's `int96` operator.
     *
     * Requirements:
     *
     * - input must fit into 96 bits
     */
    function toInt96(int256 value) internal pure returns (int96 downcasted) {
        downcasted = int96(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(96, value);
        }
    }

    /**
     * @dev Returns the downcasted int88 from int256, reverting on
     * overflow (when the input is less than smallest int88 or
     * greater than largest int88).
     *
     * Counterpart to Solidity's `int88` operator.
     *
     * Requirements:
     *
     * - input must fit into 88 bits
     */
    function toInt88(int256 value) internal pure returns (int88 downcasted) {
        downcasted = int88(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(88, value);
        }
    }

    /**
     * @dev Returns the downcasted int80 from int256, reverting on
     * overflow (when the input is less than smallest int80 or
     * greater than largest int80).
     *
     * Counterpart to Solidity's `int80` operator.
     *
     * Requirements:
     *
     * - input must fit into 80 bits
     */
    function toInt80(int256 value) internal pure returns (int80 downcasted) {
        downcasted = int80(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(80, value);
        }
    }

    /**
     * @dev Returns the downcasted int72 from int256, reverting on
     * overflow (when the input is less than smallest int72 or
     * greater than largest int72).
     *
     * Counterpart to Solidity's `int72` operator.
     *
     * Requirements:
     *
     * - input must fit into 72 bits
     */
    function toInt72(int256 value) internal pure returns (int72 downcasted) {
        downcasted = int72(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(72, value);
        }
    }

    /**
     * @dev Returns the downcasted int64 from int256, reverting on
     * overflow (when the input is less than smallest int64 or
     * greater than largest int64).
     *
     * Counterpart to Solidity's `int64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     */
    function toInt64(int256 value) internal pure returns (int64 downcasted) {
        downcasted = int64(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(64, value);
        }
    }

    /**
     * @dev Returns the downcasted int56 from int256, reverting on
     * overflow (when the input is less than smallest int56 or
     * greater than largest int56).
     *
     * Counterpart to Solidity's `int56` operator.
     *
     * Requirements:
     *
     * - input must fit into 56 bits
     */
    function toInt56(int256 value) internal pure returns (int56 downcasted) {
        downcasted = int56(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(56, value);
        }
    }

    /**
     * @dev Returns the downcasted int48 from int256, reverting on
     * overflow (when the input is less than smallest int48 or
     * greater than largest int48).
     *
     * Counterpart to Solidity's `int48` operator.
     *
     * Requirements:
     *
     * - input must fit into 48 bits
     */
    function toInt48(int256 value) internal pure returns (int48 downcasted) {
        downcasted = int48(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(48, value);
        }
    }

    /**
     * @dev Returns the downcasted int40 from int256, reverting on
     * overflow (when the input is less than smallest int40 or
     * greater than largest int40).
     *
     * Counterpart to Solidity's `int40` operator.
     *
     * Requirements:
     *
     * - input must fit into 40 bits
     */
    function toInt40(int256 value) internal pure returns (int40 downcasted) {
        downcasted = int40(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(40, value);
        }
    }

    /**
     * @dev Returns the downcasted int32 from int256, reverting on
     * overflow (when the input is less than smallest int32 or
     * greater than largest int32).
     *
     * Counterpart to Solidity's `int32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     */
    function toInt32(int256 value) internal pure returns (int32 downcasted) {
        downcasted = int32(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(32, value);
        }
    }

    /**
     * @dev Returns the downcasted int24 from int256, reverting on
     * overflow (when the input is less than smallest int24 or
     * greater than largest int24).
     *
     * Counterpart to Solidity's `int24` operator.
     *
     * Requirements:
     *
     * - input must fit into 24 bits
     */
    function toInt24(int256 value) internal pure returns (int24 downcasted) {
        downcasted = int24(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(24, value);
        }
    }

    /**
     * @dev Returns the downcasted int16 from int256, reverting on
     * overflow (when the input is less than smallest int16 or
     * greater than largest int16).
     *
     * Counterpart to Solidity's `int16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     */
    function toInt16(int256 value) internal pure returns (int16 downcasted) {
        downcasted = int16(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(16, value);
        }
    }

    /**
     * @dev Returns the downcasted int8 from int256, reverting on
     * overflow (when the input is less than smallest int8 or
     * greater than largest int8).
     *
     * Counterpart to Solidity's `int8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits
     */
    function toInt8(int256 value) internal pure returns (int8 downcasted) {
        downcasted = int8(value);
        if (downcasted != value) {
            revert SafeCastOverflowedIntDowncast(8, value);
        }
    }

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive
        if (value > uint256(type(int256).max)) {
            revert SafeCastOverflowedUintToInt(value);
        }
        return int256(value);
    }

    /**
     * @dev Cast a boolean (false or true) to a uint256 (0 or 1) with no jump.
     */
    function toUint(bool b) internal pure returns (uint256 u) {
        assembly ("memory-safe") {
            u := iszero(iszero(b))
        }
    }
}

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

interface ICreatorToken {
    event TransferValidatorUpdated(address oldValidator, address newValidator);
    function getTransferValidator() external view returns (address validator);
    function setTransferValidator(address validator) external;
    function getTransferValidationFunction() external view returns (bytes4 functionSignature, bool isViewFunction);
}

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

interface ITransferValidator {
    function applyCollectionTransferPolicy(address caller, address from, address to) external view;
    function validateTransfer(address caller, address from, address to) external view;
    function validateTransfer(address caller, address from, address to, uint256 tokenId) external view;
    function validateTransfer(address caller, address from, address to, uint256 tokenId, uint256 amount) external;

    function beforeAuthorizedTransfer(address operator, address token, uint256 tokenId) external;
    function afterAuthorizedTransfer(address token, uint256 tokenId) external;
    function beforeAuthorizedTransfer(address operator, address token) external;
    function afterAuthorizedTransfer(address token) external;
    function beforeAuthorizedTransfer(address token, uint256 tokenId) external;
    function beforeAuthorizedTransferWithAmount(address token, uint256 tokenId, uint256 amount) external;
    function afterAuthorizedTransferWithAmount(address token, uint256 tokenId) external;
}

File 29 of 37 : ICreatorTokenLegacy.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface ICreatorTokenLegacy {
    event TransferValidatorUpdated(address oldValidator, address newValidator);
    function getTransferValidator() external view returns (address validator);
    function setTransferValidator(address validator) external;
}

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 31 of 37 : ITransferValidatorSetTokenType.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

interface ITransferValidatorSetTokenType {
    function setTokenTypeOfCollection(address collection, uint16 tokenType) external;
}

File 32 of 37 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../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.
 */
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.
     *
     * NOTE: ERC-2981 allows setting the royalty to 100% of the price. In that case all the price would be sent to the
     * royalty receiver and 0 tokens to the seller. Contracts dealing with royalty should consider empty transfers.
     */
    function royaltyInfo(
        uint256 tokenId,
        uint256 salePrice
    ) external view returns (address receiver, uint256 royaltyAmount);
}

File 33 of 37 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC-165 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);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 34 of 37 : 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 {
    
    /// @dev Thrown when the from and to address are both the zero address.
    error ShouldNotMintToBurnAddress();

    /*************************************************************************/
    /*                      Transfers Without Amounts                        */
    /*************************************************************************/

    /// @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 {}

    /*************************************************************************/
    /*                         Transfers With Amounts                        */
    /*************************************************************************/

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

        if(fromZeroAddress && toZeroAddress) {
            revert ShouldNotMintToBurnAddress();
        } else if(fromZeroAddress) {
            _preValidateMint(_msgSender(), to, tokenId, amount, msg.value);
        } else if(toZeroAddress) {
            _preValidateBurn(_msgSender(), from, tokenId, amount, msg.value);
        } else {
            _preValidateTransfer(_msgSender(), from, to, tokenId, amount, 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, uint256 amount) internal virtual {
        bool fromZeroAddress = from == address(0);
        bool toZeroAddress = to == address(0);

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

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

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

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

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

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

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

File 35 of 37 : StorageSlot.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC-1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     // Define the slot. Alternatively, use the SlotDerivation library to derive the slot.
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 *
 * TIP: Consider using this library along with {SlotDerivation}.
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct Int256Slot {
        int256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `Int256Slot` with member `value` located at `slot`.
     */
    function getInt256Slot(bytes32 slot) internal pure returns (Int256Slot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns a `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        assembly ("memory-safe") {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns a `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        assembly ("memory-safe") {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        assembly ("memory-safe") {
            r.slot := store.slot
        }
    }
}

File 36 of 37 : Panic.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/Panic.sol)

pragma solidity ^0.8.20;

/**
 * @dev Helper library for emitting standardized panic codes.
 *
 * ```solidity
 * contract Example {
 *      using Panic for uint256;
 *
 *      // Use any of the declared internal constants
 *      function foo() { Panic.GENERIC.panic(); }
 *
 *      // Alternatively
 *      function foo() { Panic.panic(Panic.GENERIC); }
 * }
 * ```
 *
 * Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil].
 *
 * _Available since v5.1._
 */
// slither-disable-next-line unused-state
library Panic {
    /// @dev generic / unspecified error
    uint256 internal constant GENERIC = 0x00;
    /// @dev used by the assert() builtin
    uint256 internal constant ASSERT = 0x01;
    /// @dev arithmetic underflow or overflow
    uint256 internal constant UNDER_OVERFLOW = 0x11;
    /// @dev division or modulo by zero
    uint256 internal constant DIVISION_BY_ZERO = 0x12;
    /// @dev enum conversion error
    uint256 internal constant ENUM_CONVERSION_ERROR = 0x21;
    /// @dev invalid encoding in storage
    uint256 internal constant STORAGE_ENCODING_ERROR = 0x22;
    /// @dev empty array pop
    uint256 internal constant EMPTY_ARRAY_POP = 0x31;
    /// @dev array out of bounds access
    uint256 internal constant ARRAY_OUT_OF_BOUNDS = 0x32;
    /// @dev resource error (too large allocation or too large array)
    uint256 internal constant RESOURCE_ERROR = 0x41;
    /// @dev calling invalid internal function
    uint256 internal constant INVALID_INTERNAL_FUNCTION = 0x51;

    /// @dev Reverts with a panic code. Recommended to use with
    /// the internal constants with predefined codes.
    function panic(uint256 code) internal pure {
        assembly ("memory-safe") {
            mstore(0x00, 0x4e487b71)
            mstore(0x20, code)
            revert(0x1c, 0x24)
        }
    }
}

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

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * 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[ERC 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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "mode": "3"
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "abi"
      ]
    }
  },
  "detectMissingLibraries": false,
  "forceEVMLA": false,
  "enableEraVMExtensions": false,
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint256","name":"maxSupply_","type":"uint256"},{"internalType":"string","name":"prefix_","type":"string"},{"internalType":"string","name":"suffix_","type":"string"},{"internalType":"address","name":"royaltyReceiver_","type":"address"},{"internalType":"uint96","name":"royaltyFeeNumerator_","type":"uint96"},{"internalType":"address","name":"signer_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CreatorTokenBase__InvalidTransferValidatorContract","type":"error"},{"inputs":[],"name":"ECDSAInvalidSignature","type":"error"},{"inputs":[{"internalType":"uint256","name":"length","type":"uint256"}],"name":"ECDSAInvalidSignatureLength","type":"error"},{"inputs":[{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"ECDSAInvalidSignatureS","type":"error"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidDefaultRoyalty","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidTokenRoyalty","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExceedsLimit","type":"error"},{"inputs":[],"name":"ExceedsPoolLimit","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"InsufficientFunds","type":"error"},{"inputs":[],"name":"InvalidAccount","type":"error"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[],"name":"InvalidStage","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[],"name":"ShouldNotMintToBurnAddress","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferError","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"UnauthorizedRequest","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"autoApproved","type":"bool"}],"name":"AutomaticApprovalOfTransferValidatorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"DefaultRoyaltySet","type":"event"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldValidator","type":"address"},{"indexed":false,"internalType":"address","name":"newValidator","type":"address"}],"name":"TransferValidatorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DEFAULT_TRANSFER_VALIDATOR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"account_","type":"address"}],"name":"adminWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"autoApproveTransfersFromValidator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTransferValidationFunction","outputs":[{"internalType":"bytes4","name":"functionSignature","type":"bytes4"},{"internalType":"bool","name":"isViewFunction","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getTransferValidator","outputs":[{"internalType":"address","name":"validator","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"isApproved","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"amount_","type":"uint8"},{"components":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint8","name":"stage","type":"uint8"},{"internalType":"uint8","name":"mintLimit","type":"uint8"},{"internalType":"bool","name":"vip","type":"bool"}],"internalType":"struct LegendaryLeague.MintRequest","name":"request_","type":"tuple"},{"internalType":"bytes","name":"signature_","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint8","name":"","type":"uint8"}],"name":"mintLimitsByStage","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedInVip","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts_","type":"address[]"},{"internalType":"uint256[]","name":"amounts_","type":"uint256[]"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"autoApprove","type":"bool"}],"name":"setAutomaticApprovalOfTransfersFromValidator","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":"uint256","name":"maxSupply_","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintPrice_","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"prefix_","type":"string"}],"name":"setPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer_","type":"address"}],"name":"setSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"stage_","type":"uint8"}],"name":"setStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"suffix_","type":"string"}],"name":"setSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"transferValidator_","type":"address"}],"name":"setTransferValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vipPoolLimit_","type":"uint256"}],"name":"setVipPoolLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"whitelistPoolLimit_","type":"uint256"}],"name":"setWhitelistPoolLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stage","outputs":[{"internalType":"enum LegendaryLeague.Stage","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"suffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId_","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vipMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vipPoolLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistPoolLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

9c4d535b0000000000000000000000000000000000000000000000000000000000000000010007218d4ff585ec72faebad49234fa06337565859ee329e7d2f807da604e7000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000002200000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000009c400000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000235f6e7d2af953305cc8d08973bcb4c6c355976800000000000000000000000000000000000000000000000000000000000002bc000000000000000000000000fce946ba1c6cf36d929de619e5c13148ae02796700000000000000000000000000000000000000000000000000000000000000104c6567656e64617279204c65616775650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024c4c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004368747470733a2f2f6c6c2d6d696e742d70726f64756374696f6e2d3861333063633332343732312e6865726f6b756170702e636f6d2f6170692f6d657461646174612f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x0002000000000002001300000000000200010000000103550000006003100270000006540030019d000006540330019700000001002001900000046a0000c13d0000008004000039000000400040043f000000040030008c0000015e0000413d000000000201043b000000e002200270000006760020009c0000019b0000c13d000000440030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000402100370000000000202043b000006570020009c0000015e0000213d0000002304200039000000000034004b0000015e0000813d0000000404200039000000000441034f000000000404043b000b00000004001d000006570040009c0000015e0000213d000a00240020003d0000000b0200002900000005022002100000000a02200029000000000032004b0000015e0000213d0000002402100370000000000202043b000006570020009c0000015e0000213d0000002304200039000000000034004b0000015e0000813d0000000404200039000000000141034f000000000101043b000006570010009c0000015e0000213d000900240020003d00000005021002100000000902200029000000000032004b0000015e0000213d0000000802000039000000000202041a00000659022001970000000003000411000000000032004b0000089c0000c13d0000000b02000029000000000012004b000008a20000c13d000000000002004b000008eb0000613d000800800000003d000d00000000001d0000004c0000013d0000000d020000290000000102200039000d00000002001d0000000b0020006c000008eb0000813d0000000d0100002900000005011002100000000a021000290000000102200367000000000202043b001200000002001d000006590020009c0000015e0000213d00000009021000290000000101000039000000000101041a0000071701100167000000000500041a00000000011500190000000102200367000000000402043b000000000041001a000014370000413d0000000001410019000000400300043d0000000f02000039000000000202041a000000000021004b000011a30000213d000f00000003001d000006e00030009c00000b670000213d0000000f010000290000002002100039000000400020043f0000000000010435000000000004004b0000115a0000613d000000120000006b0000129e0000613d00000717035001670000000001000019000000000031004b000014370000213d0000000101100039000000000041004b000000710000413d000c00000003001d000e00000002001d0000001201000029000000000010043f0000000501000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039001100000004001d001300000005001d194a19450000040f000000110300002900000001002001900000015e0000613d000006e1023000d1000000000101043b000000000301041a0000000002230019000000000021041b000006e20100004100000000001004430000000001000414000006540010009c0000065401008041000000c0011002100000066d011001c70000800b02000039194a19450000040f00000001002001900000143d0000613d000000000101043b001000000001001d0000001301000029000000000010043f0000000401000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f000000010020019000000011030000290000015e0000613d0000001002000029000000a002200210000000010030008c0000000003000019000006e303006041000000000223019f0000001206000029000000000262019f000000000101043b000000000021041b0000000001000414000006540010009c0000065401008041000000c00110021000000660011001c70000800d020000390000000403000039000006e40400004100000000050000190000001307000029194a19400000040f000000110300002900000001002001900000015e0000613d001000130030002d00000013070000290000000107700039000000100070006c000000d50000613d0000000001000414000006540010009c0000065401008041000000c00110021000000660011001c70000800d020000390000000403000039000006e40400004100000000050000190000001206000029001300000007001d194a19400000040f00000011030000290000000100200190000000c10000c13d0000015e0000013d0000001001000029000000000010041b00000000010000190000000c02000029000000000021004b000014370000213d0000000101100039000000000031004b000000d90000413d00000665010000410000000000100443000000120100002900000004001004430000000001000414000006540010009c0000065401008041000000c00110021000000666011001c70000800202000039194a19450000040f00000001002001900000143d0000613d000000000101043b000000000001004b0000001101000029000000470000613d000000400700043d000000000200041a001000000002001d0000000003120049000000640170003900000080020000390000000000210435000006e50100004100000000001704350000000401700039000000000200041100000000002104350000004401700039001100000003001d0000000000310435000000240170003900000000000104350000000f01000029000000000101043300000084027000390000000000120435000000a402700039000000000001004b0000000e06000029000001100000613d000000000300001900000000042300190000000005630019000000000505043300000000005404350000002003300039000000000013004b000001090000413d0000001f03100039000007180330019700000000012100190000000000010435000000a401300039000006540010009c00000654010080410000006001100210000006540070009c000006540200004100000000020740190000004002200210000000000121019f0000000002000414000006540020009c0000065402008041000000c002200210000000000112019f0000001202000029001300000007001d194a19400000040f000000130a00002900000060031002700000065403300197000000200030008c00000020040000390000000004034019000000200640019000000000056a0019000001340000613d000000000701034f00000000080a0019000000007907043c0000000008980436000000000058004b000001300000c13d0000001f07400190000001410000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f00000000006504350000000100200190000001600000613d0000001f01400039000000600210018f0000000001a20019000000000021004b00000000020000390000000102004039000006570010009c00000b670000213d000000010020019000000b670000c13d000000400010043f000000200030008c0000015e0000413d00000000020a0433000006e6002001980000015e0000c13d000006e702200197000006e50020009c000001660000c13d00000011030000290000000103300039000000100030006c0000000007010019000000f30000413d000000000100041a000000100010006c000000470000613d00000000010000190000194c00010430000000000003004b0000016a0000c13d00000060020000390000000001020433000000000001004b000001920000c13d0000070101000041000000000010043f000006ce010000410000194c000104300000001f0230003900000655022001970000003f02200039000006df04200197000000400200043d0000000004420019000000000024004b00000000050000390000000105004039000006570040009c00000b670000213d000000010050019000000b670000c13d000000400040043f0000001f0430018f00000000063204360000065605300198000800000006001d0000000003560019000001840000613d000000000601034f0000000807000029000000006806043c0000000007870436000000000037004b000001800000c13d000000000004004b000001630000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000130435000001630000013d0000000802000029000006540020009c00000654020080410000004002200210000006540010009c00000654010080410000006001100210000000000121019f0000194c00010430001300000004001d000006770020009c000001ed0000a13d000006780020009c000002040000213d0000068a0020009c000002480000a13d0000068b0020009c000002af0000a13d0000068c0020009c000003a80000213d0000068f0020009c000005cd0000613d000006900020009c0000015e0000c13d000000440030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000402100370000000000202043b001300000002001d000006590020009c0000015e0000213d0000002401100370000000000201043b000000000002004b0000000001000039000000010100c039001200000002001d000000000012004b0000015e0000c13d0000000001000411000000000010043f0000000701000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000000101043b0000001302000029000000000020043f000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000000101043b000000000201041a00000719022001970000001203000029000000000232019f000000000021041b000000400100043d0000000000310435000006540010009c000006540100804100000040011002100000000002000414000006540020009c0000065402008041000000c002200210000000000112019f0000065e011001c70000800d020000390000000303000039000006f40400004100000000050004110000001306000029000008e80000013d0000069b0020009c000002210000a13d0000069c0020009c0000026a0000a13d0000069d0020009c000002d40000a13d0000069e0020009c0000042e0000213d000006a10020009c000005f10000613d000006a20020009c0000015e0000c13d000000240030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000401100370000000000101043b001300000001001d194a191e0000040f0000000f01000039000008980000013d000006790020009c000002770000a13d0000067a0020009c000002df0000a13d0000067b0020009c000004470000213d0000067e0020009c000006030000613d0000067f0020009c0000015e0000c13d000000240030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000401100370000000000601043b000006590060009c0000015e0000213d0000000801000039000000000201041a00000659032001970000000005000411000000000053004b000008cf0000c13d000000000006004b0000090c0000c13d000006bf01000041000009960000013d000006ad0020009c0000029c0000213d000006b50020009c000002ea0000213d000006b90020009c000006160000613d000006ba0020009c0000061d0000613d000006bb0020009c0000015e0000c13d000000440030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000402100370000000000502043b000006590050009c0000015e0000213d0000002401100370000000000101043b0000065a0010009c0000015e0000213d0000000802000039000000000202041a00000659032001970000000002000411000000000023004b000008d40000c13d0000065a01100197000027110010008c000009930000413d0000067502000041000000000020043f000000040010043f0000271001000039000000240010043f00000668010000410000194c00010430000006940020009c000003490000213d000006980020009c000006310000613d000006990020009c000006700000613d0000069a0020009c0000015e0000c13d0000000001000416000000000001004b0000015e0000c13d0000000801000039000000000101041a00000659021001970000000001000411000000000012004b000008ac0000c13d0000000c02000039000000000302041a000000ff003001900000122a0000c13d000007190330019700000001033001bf000000000032041b000000800010043f0000000001000414000006540010009c0000065401008041000000c001100210000006f5011001c70000800d0200003900000001030000390000067004000041000008e80000013d000006a60020009c000003540000213d000006aa0020009c0000068f0000613d000006ab0020009c0000069a0000613d000006ac0020009c0000015e0000c13d0000000001000416000000000001004b0000015e0000c13d00000015010000390000081f0000013d000006830020009c0000035f0000213d000006870020009c000006ab0000613d000006880020009c000006b60000613d000006890020009c0000015e0000c13d000000840030008c0000015e0000413d0000000402100370000000000202043b001300000002001d000006590020009c0000015e0000213d0000002402100370000000000202043b001200000002001d000006590020009c0000015e0000213d0000006402100370000000000402043b000006570040009c0000015e0000213d0000002302400039000000000032004b0000015e0000813d0000000402400039000000000221034f000000000202043b0000004401100370000000000101043b001100000001001d0000002401400039194a14a70000040f0000000004010019000008150000013d000006ae0020009c000003770000213d000006b20020009c000006dc0000613d000006b30020009c000006e30000613d000006b40020009c0000015e0000c13d0000000001000416000000000001004b0000015e0000c13d0000000101000039000000000101041a0000071701100167000000000200041a0000000001120019000000800010043f000006c1010000410000194b0001042e000006910020009c000006ec0000613d000006920020009c000006f20000613d000006930020009c0000015e0000c13d0000000001000416000000000001004b0000015e0000c13d0000000303000039000000000203041a000000010420019000000001012002700000007f0110618f0000001f0010008c00000000050000390000000105002039000000000552013f000000010050019000000b1e0000c13d000000800010043f000000000004004b000008b10000613d000000000030043f000000000001004b0000000002000019000008b60000613d000006f7030000410000000002000019000000000403041a000000a005200039000000000045043500000001033000390000002002200039000000000012004b000002cc0000413d000008b60000013d000006a30020009c000006f70000613d000006a40020009c000007020000613d000006a50020009c0000015e0000c13d0000000001000416000000000001004b0000015e0000c13d00000014010000390000081f0000013d000006800020009c000007120000613d000006810020009c000007370000613d000006820020009c0000015e0000c13d0000000001000416000000000001004b0000015e0000c13d0000000f010000390000081f0000013d000006b60020009c0000074f0000613d000006b70020009c0000076e0000613d000006b80020009c0000015e0000c13d000000440030008c0000015e0000413d0000000402100370000000000202043b001200000002001d000006590020009c0000015e0000213d0000002401100370000000000101043b001100000001001d000000000001004b000008d90000613d000000000100041a000000110010006c000008d90000a13d0000001101000029000000000010043f0000000401000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000000101043b000000000101041a000006c200100198000008d90000c13d000000000001004b000003260000c13d001300110000002d0000001301000029000000010110008a001300000001001d000000000010043f0000000401000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000000101043b000000000101041a000000000001004b000003130000613d001306590010019b0000000002000411000000130020006c00000aac0000c13d0000001101000029000000000010043f0000000601000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d00000012020000290000065906200197000000000101043b000000000201041a0000065f02200197000000000262019f000000000021041b0000000001000414000006540010009c0000065401008041000000c00110021000000660011001c70000800d0200003900000004030000390000070a0400004100000013050000290000001107000029000008e80000013d000006950020009c000007950000613d000006960020009c000007cb0000613d000006970020009c0000015e0000c13d0000000001000416000000000001004b0000015e0000c13d00000017010000390000081f0000013d000006a70020009c0000080a0000613d000006a80020009c0000081b0000613d000006a90020009c0000015e0000c13d0000000001000416000000000001004b0000015e0000c13d0000000c01000039000003740000013d000006840020009c000008230000613d000006850020009c0000083c0000613d000006860020009c0000015e0000c13d000000240030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000401100370000000000101043b000006590010009c0000015e0000213d000000000010043f0000001a01000039000000200010043f00000040020000390000000001000019194a192b0000040f000000000101041a000000ff00100190000006fd0000013d000006af0020009c0000084a0000613d000006b00020009c000008540000613d000006b10020009c0000015e0000c13d000000440030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000002402100370000000000202043b001300000002001d0000000401100370000000000101043b000000000010043f0000000b01000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000000101043b000000000101041a001206590010019c0000039a0000c13d0000000a01000039000000000101041a001206590010019b000000a0021002700000001301000029194a16780000040f000027100110011a000000400200043d0000002003200039000000000013043500000012010000290000000000120435000006540020009c0000065402008041000000400120021000000706011001c70000194b0001042e0000068d0020009c000008590000613d0000068e0020009c0000015e0000c13d000000c40030008c0000015e0000413d0000000402100370000000000202043b001200000002001d000000ff0020008c0000015e0000213d000000a402100370000000000202043b000006570020009c0000015e0000213d0000002304200039000000000034004b0000015e0000813d001000040020003d0000001004100360000000000404043b001100000004001d000006570040009c0000015e0000213d0000001102200029000f00240020003d0000000f0030006b0000015e0000213d0000002402100370000000000202043b000006590020009c0000015e0000213d0000004403100370000000000303043b000000ff0030008c0000015e0000213d0000006404100370000000000404043b000000ff0040008c0000015e0000213d0000008401100370000000000101043b000000000001004b0000000005000039000000010500c039000000000051004b0000015e0000c13d000006d305000041000000a00050043f000000c00020043f000000e00030043f000001000040043f000001200010043f000000a001000039000000800010043f0000014001000039000000400010043f0000000001000414000006540010009c0000065401008041000000c001100210000006d4011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000000101043b000e00000001001d000006d501000041000000000010044300000000010004120000000400100443000000400100003900000024001004430000000001000414000006540010009c0000065401008041000000c001100210000006d6011001c70000800502000039194a19450000040f00000001002001900000143d0000613d000000000101043b00000659011001970000000002000410000000000012004b00000bca0000c13d000006d501000041000000000010044300000000010004120000000400100443000000200100003900000024001004430000000001000414000006540010009c0000065401008041000000c001100210000006d6011001c70000800502000039194a19450000040f00000001002001900000143d0000613d000000000101043b000d00000001001d0000066c0100004100000000001004430000000001000414000006540010009c0000065401008041000000c0011002100000066d011001c70000800b02000039194a19450000040f00000001002001900000143d0000613d000000000101043b0000000d0010006c00000bca0000c13d000006d50100004100000000001004430000000001000412000000040010044300000024000004430000000001000414000006540010009c0000065401008041000000c001100210000006d6011001c70000800502000039194a19450000040f000000010020019000000c220000c13d0000143d0000013d0000069f0020009c0000087f0000613d000006a00020009c0000015e0000c13d0000000001000416000000000001004b0000015e0000c13d0000000801000039000000000201041a00000659032001970000000005000411000000000053004b000008cf0000c13d0000065f02200197000000000021041b0000000001000414000006540010009c0000065401008041000000c00110021000000660011001c70000800d02000039000000030300003900000661040000410000000006000019000008e80000013d0000067c0020009c0000088e0000613d0000067d0020009c0000015e0000c13d0000000001000416000000000001004b0000015e0000c13d0000001103000039000000000203041a000000010420019000000001012002700000007f0110618f0000001f0010008c00000000050000390000000105002039000000000552013f000000010050019000000b1e0000c13d000000800010043f000000000004004b000008b10000613d000000000030043f000000000001004b0000000002000019000008b60000613d000006bc030000410000000002000019000000000403041a000000a005200039000000000045043500000001033000390000002002200039000000000012004b000004620000413d000008b60000013d0000016004000039000000400040043f0000000002000416000000000002004b0000015e0000c13d0000001f0230003900000655022001970000016002200039000000400020043f0000001f0530018f000006560630019800000160026000390000047c0000613d000000000701034f000000007807043c0000000004840436000000000024004b000004780000c13d000000000005004b000004890000613d000000000161034f0000000304500210000000000502043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f0000000000120435000001000030008c0000015e0000413d000001600400043d000006570040009c0000015e0000213d0000001f01400039000000000031004b000000000200001900000658020080410000065801100197000000000001004b00000000050000190000065805004041000006580010009c000000000502c019000000000005004b0000015e0000c13d00000160014000390000000002010433000006570020009c00000b670000213d0000001f0120003900000718011001970000003f011000390000071801100197000000400600043d0000000005160019001100000006001d000000000065004b00000000010000390000000101004039000006570050009c00000b670000213d000000010010019000000b670000c13d0000016001300039000000400050043f00000011050000290000000005250436001000000005001d00000180044000390000000005420019000000000015004b0000015e0000213d000000000002004b0000001008000029000004c00000613d000000000500001900000000068500190000000007450019000000000707043300000000007604350000002005500039000000000025004b000004b90000413d00000000022800190000000000020435000001800400043d000006570040009c0000015e0000213d0000001f02400039000000000032004b000000000500001900000658050080410000065802200197000000000002004b00000000060000190000065806004041000006580020009c000000000605c019000000000006004b0000015e0000c13d00000160024000390000000002020433000006570020009c00000b670000213d0000001f0520003900000718055001970000003f055000390000071805500197000000400600043d0000000005560019000f00000006001d000000000065004b00000000060000390000000106004039000006570050009c00000b670000213d000000010060019000000b670000c13d000000400050043f0000000f050000290000000005250436000e00000005001d00000180044000390000000005420019000000000015004b0000015e0000213d000000000002004b0000000e08000029000004f60000613d000000000500001900000000068500190000000007450019000000000707043300000000007604350000002005500039000000000025004b000004ef0000413d00000000022800190000000000020435000001c00400043d000006570040009c0000015e0000213d0000001f02400039000000000032004b000000000500001900000658050080410000065802200197000000000002004b00000000060000190000065806004041000006580020009c000000000605c019000000000006004b0000015e0000c13d00000160024000390000000002020433000006570020009c00000b670000213d0000001f0520003900000718055001970000003f055000390000071805500197000000400600043d0000000005560019000d00000006001d000000000065004b00000000060000390000000106004039000006570050009c00000b670000213d000000010060019000000b670000c13d000001a00600043d000c00000006001d000000400050043f0000000d050000290000000005250436001300000005001d00000180044000390000000005420019000000000015004b0000015e0000213d000000000002004b0000052d0000613d000000000500001900000013065000290000000007450019000000000707043300000000007604350000002005500039000000000025004b000005260000413d00000013022000290000000000020435000001e00400043d000006570040009c0000015e0000213d0000001f02400039000000000032004b000000000300001900000658030080410000065802200197000000000002004b00000000050000190000065805004041000006580020009c000000000503c019000000000005004b0000015e0000c13d00000160024000390000000002020433000006570020009c00000b670000213d0000001f0320003900000718033001970000003f033000390000071803300197000000400500043d0000000003350019000b00000005001d000000000053004b00000000050000390000000105004039000006570030009c00000b670000213d000000010050019000000b670000c13d000000400030043f0000000b030000290000000003230436001200000003001d00000180034000390000000004320019000000000014004b0000015e0000213d000000000002004b000005620000613d000000000100001900000012041000290000000005310019000000000505043300000000005404350000002001100039000000000021004b0000055b0000413d00000012012000290000000000010435000002000100043d000a00000001001d000006590010009c0000015e0000213d000002200100043d000900000001001d0000065a0010009c0000015e0000213d000002400100043d000700000001001d000006590010009c0000015e0000213d000000400100043d000800000001001d0000065b0010009c00000b670000213d00000008020000290000004001200039000000400010043f000000060100003900000000021204360000065c01000041000400000002001d0000000000120435000000400100043d000600000001001d0000065b0010009c00000b670000213d00000006020000290000004001200039000000400010043f000000050100003900000000021204360000065d01000041000300000002001d000000000012043500000011010000290000000001010433000500000001001d000006570010009c00000b670000213d0000000201000039000000000101041a000000010210019000000001011002700000007f0110618f000200000001001d0000001f0010008c00000000010000390000000101002039000000000012004b00000b1e0000c13d0000000201000029000000200010008c000005b70000413d0000000201000039000000000010043f0000000001000414000006540010009c0000065401008041000000c0011002100000065e011001c70000801002000039194a19450000040f00000001002001900000015e0000613d00000005030000290000001f023000390000000502200270000000200030008c0000000002004019000000000301043b00000002010000290000001f01100039000000050110027000000000011300190000000002230019000000000012004b000005b70000813d000000000002041b0000000102200039000000000012004b000005b30000413d00000005010000290000001f0010008c0002000100100218000100030010021800000cd20000a13d0000000201000039000000000010043f0000000001000414000006540010009c0000065401008041000000c0011002100000065e011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000200200008a0000000502200180000000000101043b00000cdd0000c13d000000200300003900000ce90000013d000000240030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000401100370000000000101043b000000000001004b0000000002000039000000010200c039000000000021004b0000015e0000c13d0000000802000039000000000202041a00000659032001970000000002000411000000000023004b000008d40000c13d0000000902000039000000000302041a000006d103300197000000000001004b0000000004000019000006d20400c041000000000343019f000000000032041b000000800010043f0000000001000414000006540010009c0000065401008041000000c001100210000006f5011001c70000800d020000390000000103000039000006f604000041000008e80000013d000000240030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000401100370000000000101043b001300000001001d000006590010009c0000015e0000213d194a191e0000040f0000001301000029000000080110021000000672011001970000001302000039000000000302041a000006fe033001970000074b0000013d000000440030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000402100370000000000302043b000006590030009c0000015e0000213d0000002401100370000000000201043b000006590020009c0000015e0000213d0000000001030019194a18b40000040f000000000001004b0000000001000039000000010100c0390000070b0000013d0000000001000416000000000001004b0000015e0000c13d0000066201000041000000800010043f000006c1010000410000194b0001042e000000240030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000401100370000000000201043b000006e6002001980000015e0000c13d0000000101000039000006e702200197000007100020009c000008ff0000a13d000007110020009c000009080000613d000007120020009c000009080000613d000007130020009c000009080000613d000009030000013d000000240030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000402100370000000000402043b000006570040009c0000015e0000213d0000002302400039000000000032004b0000015e0000813d0000000405400039000000000251034f000000000202043b000006570020009c0000015e0000213d00000024044000390000000006420019000000000036004b0000015e0000213d0000000803000039000000000303041a00000659063001970000000003000411000000000036004b0000091b0000c13d0000001103000039000000000703041a000000010070019000000001067002700000007f0660618f0000001f0060008c00000000080000390000000108002039000000000787013f000000010070019000000b1e0000c13d000000200060008c000006680000413d000000000030043f0000001f072000390000000507700270000006fc0770009a000000200020008c000006bc070040410000001f066000390000000506600270000006fc0660009a000000000067004b000006680000813d000000000007041b0000000107700039000000000067004b000006640000413d0000001f0020008c00000a320000a13d000000000030043f000007180620019800000add0000c13d000006bc05000041000000000700001900000af20000013d0000000001000416000000000001004b0000015e0000c13d0000001003000039000000000203041a000000010420019000000001012002700000007f0110618f0000001f0010008c00000000050000390000000105002039000000000552013f000000010050019000000b1e0000c13d000000800010043f000000000004004b000008b10000613d000000000030043f000000000001004b0000000002000019000008b60000613d000006cc030000410000000002000019000000000403041a000000a005200039000000000045043500000001033000390000002002200039000000000012004b000006870000413d000008b60000013d000000240030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000401100370000000000101043b001300000001001d194a191e0000040f0000001501000039000008980000013d0000000001000416000000000001004b0000015e0000c13d0000000801000039000000000101041a00000659021001970000000001000411000000000012004b000008ac0000c13d0000000c02000039000000000302041a000000ff00300190000008dd0000c13d0000070501000041000000000010043f000006ce010000410000194c00010430000000240030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000401100370000000000101043b001300000001001d194a191e0000040f0000001601000039000008980000013d000000240030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000401100370000000000101043b001300000001001d000006590010009c0000015e0000213d0000000801000039000000000101041a00000659021001970000000001000411000000000012004b000008ac0000c13d00000665010000410000000000100443000000130100002900000004001004430000000001000414000006540010009c0000065401008041000000c00110021000000666011001c70000800202000039194a19450000040f00000001002001900000143d0000613d000000130000006b0000092b0000613d000000000101043b000000000001004b0000092b0000c13d000006cf01000041000000000010043f000006ce010000410000194c000104300000000001000416000000000001004b0000015e0000c13d194a14ef0000040f000000800010043f000006c1010000410000194b0001042e0000000001000416000000000001004b0000015e0000c13d0000070701000041000000800010043f0000000101000039000000a00010043f00000708010000410000194b0001042e0000000001000416000000000001004b0000015e0000c13d0000000801000039000000000101041a000008500000013d0000000001000416000000000001004b0000015e0000c13d00000018010000390000081f0000013d0000000001000416000000000001004b0000015e0000c13d0000000901000039000000000101041a000006d0001001980000000001000039000000010100c039000000800010043f000006c1010000410000194b0001042e000000240030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000401100370000000000101043b194a18ea0000040f0000065901100197000000400200043d0000000000120435000006540020009c00000654020080410000004001200210000006c0011001c70000194b0001042e000000240030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000401100370000000000101043b001300000001001d000000000001004b000008c70000613d000000000100041a000000130010006c000008c70000a13d0000001301000029000000000010043f0000000401000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000000101043b000000000101041a000006c200100198000008c70000c13d0000001301000029000006c30010009c000009d40000413d00000040020000390000001301000029000006c30110012a000009dd0000013d000000240030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000401100370000000000101043b000000ff0010008c0000015e0000213d0000000802000039000000000202041a00000659032001970000000002000411000000000023004b000008d40000c13d000000010010008c000008440000213d0000001302000039000000000302041a0000071903300197000000000113019f000000000012041b00000000010000190000194b0001042e0000000001000416000000000001004b0000015e0000c13d0000000203000039000000000203041a000000010420019000000001012002700000007f0110618f0000001f0010008c00000000050000390000000105002039000000000552013f000000010050019000000b1e0000c13d000000800010043f000000000004004b000008b10000613d000000000030043f000000000001004b0000000002000019000008b60000613d0000070d030000410000000002000019000000000403041a000000a005200039000000000045043500000001033000390000002002200039000000000012004b000007660000413d000008b60000013d000000240030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000401100370000000000101043b001300000001001d000000000001004b000008cb0000613d000000000100041a000000130010006c000008cb0000a13d0000001301000029000000000010043f0000000401000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000000101043b000000000101041a000006c200100198000008cb0000c13d0000001301000029000000000010043f0000000601000039000000200010043f00000040020000390000000001000019194a192b0000040f000000000101041a0000070a0000013d0000000001000416000000000001004b0000015e0000c13d000006d501000041000000000010044300000000010004120000000400100443000000a00100003900000024001004430000000001000414000006540010009c0000065401008041000000c001100210000006d6011001c70000800502000039194a19450000040f00000001002001900000143d0000613d000000000101043b000000ff0010008c000008ed0000c13d0000000d02000039000000000102041a000000010310019000000001041002700000007f0440618f001300000004001d0000001f0040008c00000000040000390000000104002039000000000441013f000000010040019000000b1e0000c13d000000400400043d001200000004001d00000013050000290000000004540436001100000004001d000000000003004b0000099a0000613d000000000020043f0000000001000414000006540010009c0000065401008041000000c0011002100000065e011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000130000006b00000a500000c13d000000000100001900000a5b0000013d000000240030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000402100370000000000402043b000006570040009c0000015e0000213d0000002302400039000000000032004b0000015e0000813d0000000405400039000000000251034f000000000202043b000006570020009c0000015e0000213d00000024044000390000000006420019000000000036004b0000015e0000213d0000000803000039000000000303041a00000659063001970000000003000411000000000036004b0000091b0000c13d0000001003000039000000000703041a000000010070019000000001067002700000007f0660618f0000001f0060008c00000000080000390000000108002039000000000787013f000000010070019000000b1e0000c13d000000200060008c000008020000413d000000000030043f0000001f072000390000000507700270000006f80770009a000000200020008c000006cc070040410000001f066000390000000506600270000006f80660009a000000000067004b000008020000813d000000000007041b0000000107700039000000000067004b000007fe0000413d0000001f0020008c00000a320000a13d000000000030043f000007180620019800000ae80000c13d000006cc05000041000000000700001900000af20000013d0000000001030019194a14830000040f001300000001001d001200000002001d001100000003001d000000400100043d001000000001001d0000002002000039194a14950000040f00000010040000290000000000040435000000130100002900000012020000290000001103000029194a16860000040f00000000010000190000194b0001042e0000000001000416000000000001004b0000015e0000c13d0000001601000039000000000101041a000000800010043f000006c1010000410000194b0001042e000000440030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000402100370000000000202043b000006590020009c0000015e0000213d0000002401100370000000000101043b001300000001001d000000ff0010008c0000015e0000213d000000000020043f0000001901000039000000200010043f00000040020000390000000001000019194a192b0000040f0000001302000029194a14df0000040f000000000101041a000000ff0110018f0000070b0000013d0000000001000416000000000001004b0000015e0000c13d0000001301000039000000000101041a000000ff0110018f000000010010008c000009090000a13d000006ee01000041000000000010043f0000002101000039000000040010043f000006be010000410000194c000104300000000001000416000000000001004b0000015e0000c13d0000001301000039000000000101041a00000008011002700000065901100197000000800010043f000006c1010000410000194b0001042e0000000001030019194a14830000040f194a14fa0000040f00000000010000190000194b0001042e000000240030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000401100370000000000101043b001300000001001d000006590010009c0000015e0000213d0000000801000039000000000101041a00000659021001970000000001000411000000000012004b000008ac0000c13d000006f2010000410000000000100443000000000100041000000004001004430000000001000414000006540010009c0000065401008041000000c00110021000000666011001c70000800a02000039194a19450000040f00000001002001900000143d0000613d000000000301043b0000000001000414000006540010009c0000065401008041000000c001100210000000000003004b000009a10000c13d0000001302000029000009a50000013d000000240030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000401100370000000000101043b000006590010009c0000015e0000213d000000000001004b000008f40000c13d000006fd01000041000000000010043f000006ce010000410000194c00010430000000240030008c0000015e0000413d0000000002000416000000000002004b0000015e0000c13d0000000401100370000000000101043b001300000001001d194a191e0000040f00000014010000390000001302000029000000000021041b00000000010000190000194b0001042e000006bd01000041000000000010043f0000000001000411000000040010043f000006be010000410000194c00010430000006e901000041000000800010043f0000002001000039000000840010043f0000001701000039000000a40010043f000006ff01000041000000c40010043f00000700010000410000194c00010430000006bd02000041000000000020043f000000040010043f000006be010000410000194c000104300000071902200197000000a00020043f000000000001004b0000002002000039000000000200603900000020022000390000008001000039194a14950000040f000000400100043d001300000001001d0000008002000039194a146e0000040f00000013020000290000000001210049000006540010009c00000654010080410000006001100210000006540020009c00000654020080410000004002200210000000000121019f0000194b0001042e000006cd01000041000000000010043f000006ce010000410000194c000104300000070c01000041000000000010043f000006ce010000410000194c00010430000006bd01000041000000000010043f000000040050043f000006be010000410000194c00010430000006bd01000041000000000010043f000000040020043f000006be010000410000194c000104300000070b01000041000000000010043f000006ce010000410000194c000104300000071903300197000000000032041b000000800010043f0000000001000414000006540010009c0000065401008041000000c001100210000006f5011001c70000800d0200003900000001030000390000070404000041194a19400000040f00000001002001900000015e0000613d00000000010000190000194b0001042e000000ff0210018f000000200020008c000009200000413d000006f901000041000000000010043f000006ce010000410000194c00010430000000000010043f0000000501000039000000200010043f00000040020000390000000001000019194a192b0000040f000000000101041a0000065701100197000000800010043f000006c1010000410000194b0001042e000007140020009c000009080000613d000007150020009c000009080000613d000007140020009c00000000010000390000000101006039000007160020009c00000001011061bf000000010110018f000000800010043f000006c1010000410000194b0001042e0000065f02200197000000000262019f000000000021041b0000000001000414000006540010009c0000065401008041000000c00110021000000660011001c70000800d0200003900000003030000390000066104000041194a19400000040f0000000100200190000008eb0000c13d0000015e0000013d000006bd01000041000000000010043f000000040030043f000006be010000410000194c00010430000000400300043d001200000003001d0000065b0030009c00000b670000213d00000012040000290000004003400039000000400030043f00000020034000390000000000130435000000000024043500000a690000013d0000000901000039000000000101041a0000065901100198000009340000c13d0000000801000039000000000101041a000006d00010019800000000010000190000066201006041000000400200043d0000002003200039000000130400002900000000004304350000000000120435000006540020009c000006540200804100000040012002100000000002000414000006540020009c0000065402008041000000c002200210000000000112019f00000663011001c70000800d0200003900000001030000390000066404000041194a19400000040f00000001002001900000015e0000613d0000000802000039000000000102041a000006d101100197000006d2011001c7000000000012041b0000000903000039000000000103041a0000065f0110019700000013011001af000000000013041b000000130000006b000008eb0000613d00000665010000410000000000100443000000130100002900000004001004430000000001000414000006540010009c0000065401008041000000c00110021000000666011001c70000800202000039194a19450000040f00000001002001900000143d0000613d000000000101043b000000000001004b000008eb0000613d00000665010000410000000000100443000000130100002900000004001004430000000001000414000006540010009c0000065401008041000000c00110021000000666011001c70000800202000039194a19450000040f00000001002001900000143d0000613d000000000101043b000000000001004b0000015e0000613d000000400300043d0000002401300039000002d102000039000000000021043500000667010000410000000000130435000000040130003900000000020004100000000000210435000006540030009c001200000003001d0000065401000041000000000103401900000040011002100000000002000414000006540020009c0000065402008041000000c002200210000000000112019f00000668011001c70000001302000029194a19400000040f0000000100200190000008eb0000613d0000001201000029000006570010009c00000b670000213d0000001201000029000000400010043f00000000010000190000194b0001042e000000000005004b00000a3e0000c13d0000070f01000041000000000010043f000000040000043f000006be010000410000194c00010430000007190110019700000011020000290000000000120435000000130000006b0000002001000039000000000100603900000a5b0000013d00000660011001c7000080090200003900000013040000290000000005000019194a19400000040f00000060031002700000065403300198000009ce0000613d0000001f0430003900000655044001970000003f04400039000006df04400197000000400500043d0000000004450019000000000054004b00000000060000390000000106004039000006570040009c00000b670000213d000000010060019000000b670000c13d000000400040043f0000001f0430018f000000000635043600000656053001980000000003560019000009c10000613d000000000701034f000000007807043c0000000006860436000000000036004b000009bd0000c13d000000000004004b000009ce0000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000000100200190000008eb0000c13d000006f301000041000000000010043f000006ce010000410000194c000104300000001301000029000006c50010009c000006c40110212a00000000020000390000002002002039000006c60010009c00000010022081bf000006c701108197000006c60110812a000006c80010009c00000008022080390000065701108197000006c80110812a000027100010008c00000004022080390000065401108197000027100110811a000000640010008c00000002022080390000ffff0110818f000000640110811a000000090010008c000000010220203900000718052001970000005f015000390000071806100197000000400300043d0000000001360019000000000061004b00000000060000390000000106004039000006570010009c00000b670000213d000000010060019000000b670000c13d000000400010043f00000001012000390000000001130436000000200650003900000718056001980000001f0460018f00000a060000613d0000000005510019000000000600003100000001066003670000000007010019000000006806043c0000000007870436000000000057004b00000a020000c13d000000000004004b000000000223001900000021022000390000001306000029000000090060008c0000000a4660011a0000000304400210000000010220008a0000000005020433000006c905500197000006ca0440021f000006cb04400197000000000454019f000000000042043500000a0a0000213d0000001006000039000000000506041a000000010750019000000001025002700000007f0220618f0000001f0020008c00000000040000390000000104002039000000000445013f000000010040019000000b1e0000c13d000000400400043d00000000090400190000002004400039000000000007004b00000b030000613d000000000060043f000000000002004b00000b050000613d000006cc0500004100000000060000190000000007460019000000000805041a000000000087043500000001055000390000002006600039000000000026004b00000a2a0000413d00000b050000013d000000000002004b000000000400001900000a380000613d0000002004500039000000000141034f000000000401043b0000000301200210000007170110027f0000071701100167000000000414016f000000010120021000000aff0000013d000000c002000039000000400020043f000000800050043f000000a00010043f000000a002100210000000000252019f0000000a03000039000000000023041b000000c00010043f0000000001000414000006540010009c0000065401008041000000c0011002100000070e011001c70000800d0200003900000002030000390000066904000041000008e80000013d000000000201043b0000000001000019000000110500002900000013060000290000000003510019000000000402041a000000000043043500000001022000390000002001100039000000000061004b00000a540000413d0000001102000029000000120220006a00000000011200190000001f0110003900000718021001970000001201200029000000000021004b00000000020000390000000102004039000006570010009c00000b670000213d000000010020019000000b670000c13d000000400010043f000006d501000041000000000010044300000000010004120000000400100443000000c00100003900000024001004430000000001000414000006540010009c0000065401008041000000c001100210000006d6011001c70000800502000039194a19450000040f00000001002001900000143d0000613d000000000101043b000000ff0010008c00000a9c0000c13d0000000e02000039000000000102041a000000010310019000000001041002700000007f0440618f001300000004001d0000001f0040008c00000000040000390000000104002039000000000441013f000000010040019000000b1e0000c13d000000400400043d001100000004001d00000013050000290000000004540436001000000004001d000000000003004b00000b330000613d000000000020043f0000000001000414000006540010009c0000065401008041000000c0011002100000065e011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000130000006b00000b490000c13d000000000100001900000b540000013d000000ff0210018f0000001f0020008c000008f00000213d000000400300043d001100000003001d0000065b0030009c00000b670000213d00000011040000290000004003400039000000400030043f000000200340003900000000001304350000000000240435000000400100043d001300000001001d00000b640000013d0000001301000029000000000010043f0000000701000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000000101043b00000000020004110000065902200197001000000002001d000000000020043f000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000000101043b000000000101041a000000ff001001900000032a0000c13d0000000901000039000000000101041a000006d00010019800000ad90000613d000006590110019800000ad70000c13d0000000801000039000000000101041a000006d00010019800000000010000190000066201006041000000100010006b0000032a0000613d0000070901000041000000000010043f000006ce010000410000194c00010430000006bc0500004100000000070000190000000008470019000000000881034f000000000808043b000000000085041b00000001055000390000002007700039000000000067004b00000adf0000413d00000af20000013d000006cc0500004100000000070000190000000008470019000000000881034f000000000808043b000000000085041b00000001055000390000002007700039000000000067004b00000aea0000413d000000000026004b00000afd0000813d0000000306200210000000f80660018f000007170660027f00000717066001670000000004470019000000000141034f000000000101043b000000000161016f000000000015041b00000001010000390000000104200210000000000114019f000000000013041b00000000010000190000194b0001042e0000071905500197000000000054043500000000024200190000000003030433000000000003004b00000b110000613d000000000400001900000000052400190000000006140019000000000606043300000000006504350000002004400039000000000034004b00000b0a0000413d000000000123001900000000000104350000001104000039000000000304041a000000010530019000000001023002700000007f0220618f0000001f0020008c00000000060000390000000106002039000000000663013f000000010060019000000b240000613d000006ee01000041000000000010043f0000002201000039000000040010043f000006be010000410000194c00010430000000000005004b00000b3a0000613d000000000040043f000000000002004b00000b3c0000613d000006bc0300004100000000040000190000000005140019000000000603041a000000000065043500000001033000390000002004400039000000000024004b00000b2b0000413d00000b3c0000013d000007190110019700000010020000290000000000120435000000130000006b0000002001000039000000000100603900000b540000013d00000719033001970000000000310435001300000009001d00000000019100490000000002120019000000200120008a00000000001904350000000001090019194a14950000040f000000400100043d001200000001001d0000001302000029194a146e0000040f0000001202000029000008be0000013d000000000201043b0000000001000019000000100500002900000013060000290000000003510019000000000402041a000000000043043500000001022000390000002001100039000000000061004b00000b4d0000413d0000001002000029000000110220006a00000000011200190000001f0110003900000718011001970000001102100029000000000012004b00000000010000390000000101004039001300000002001d000006570020009c00000b670000213d000000010010019000000b670000c13d0000001301000029000000400010043f0000001301000029000006e00010009c00000b6d0000a13d000006ee01000041000000000010043f0000004101000039000000040010043f000006be010000410000194c0001043000000013010000290000002002100039000f00000002001d000000400020043f0000000000010435000000400400043d0000002001400039000000e0020000390000000000210435000006fa010000410000000000140435000000e001400039000000120200002900000000320204340000000000210435001200000004001d0000010001400039000000000002004b00000b880000613d000000000400001900000000051400190000000006430019000000000606043300000000006504350000002004400039000000000024004b00000b810000413d000000000312001900000000000304350000001f02200039000007180220019700000000021200190000001203000029000000000132004900000040033000390000000000130435000000110100002900000000160104340000000005620436000000000006004b00000b9e0000613d000000000200001900000000035200190000000004210019000000000404043300000000004304350000002002200039000000000062004b00000b970000413d001100000005001d001000000006001d000000000156001900000000000104350000066c0100004100000000001004430000000001000414000006540010009c0000065401008041000000c0011002100000066d011001c70000800b02000039194a19450000040f00000001002001900000143d0000613d000000000101043b00000012040000290000008002400039000000000300041000000000003204350000006002400039000000000012043500000010010000290000001f01100039000007180110019700000011011000290000000002410049000000c0034000390000000000230435000000a0024000390000000000020435000000130200002900000000020204330000000001210436000000000002004b00000b470000613d00000000030000190000000f05000029000000005405043400000000014104360000000103300039000000000023004b00000bc40000413d00000b470000013d000000400100043d000d00000001001d00000020021000390000066e01000041000c00000002001d0000000000120435000006d501000041000000000010044300000000010004120000000400100443000000600100003900000024001004430000000001000414000006540010009c0000065401008041000000c001100210000006d6011001c70000800502000039194a19450000040f00000001002001900000143d0000613d000000000101043b0000000d0200002900000040022000390000000000120435000006d501000041000000000010044300000000010004120000000400100443000000800100003900000024001004430000000001000414000006540010009c0000065401008041000000c001100210000006d6011001c70000800502000039194a19450000040f00000001002001900000143d0000613d000000000101043b0000000d02000029000000600220003900000000001204350000066c0100004100000000001004430000000001000414000006540010009c0000065401008041000000c0011002100000066d011001c70000800b02000039194a19450000040f00000001002001900000143d0000613d000000000101043b0000000d04000029000000a0024000390000000003000410000000000032043500000080024000390000000000120435000000a00100003900000000001404350000066f0040009c00000b670000213d0000000d02000029000000c001200039000000400010043f0000000c01000029000006540010009c000006540100804100000040011002100000000002020433000006540020009c00000654020080410000006002200210000000000112019f0000000002000414000006540020009c0000065402008041000000c002200210000000000112019f00000660011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000000101043b000000400200043d00000022032000390000000e040000290000000000430435000006d703000041000000000032043500000002032000390000000000130435000006540020009c000006540200804100000040012002100000000002000414000006540020009c0000065402008041000000c002200210000000000121019f000006d8011001c70000801002000039194a19450000040f00000001002001900000015e0000613d00000011020000290000001f0220003900000718022001970000003f022000390000071803200197000000000101043b000000400200043d0000000003320019000000000023004b00000000040000390000000104004039000006570030009c00000b670000213d000000010040019000000b670000c13d000000400030043f000000110300002900000000033204360000000f05000029000000000050007c0000015e0000213d000000110600002900000718056001980000001f0660018f000000000453001900000010070000290000002007700039000000010770036700000c5b0000613d000000000807034f0000000009030019000000008a08043c0000000009a90436000000000049004b00000c570000c13d000000000006004b00000c680000613d000000000557034f0000000306600210000000000704043300000000076701cf000000000767022f000000000505043b0000010006600089000000000565022f00000000056501cf000000000575019f0000000000540435000000110430002900000000000404350000000004020433000000410040008c00000c730000c13d00000040042000390000000004040433000006da0040009c00000c780000a13d000006f10100004100000c740000013d000006d901000041000000000010043f000000040040043f000006be010000410000194c00010430000000600220003900000000020204330000000003030433000000400500043d0000006006500039000000000046043500000040045000390000000000340435000000f802200270000000200350003900000000002304350000000000150435000000000000043f000006540050009c000006540500804100000040015002100000000002000414000006540020009c0000065402008041000000c002200210000000000112019f000006db011001c70000000102000039194a19450000040f00000060031002700000065403300197000000200030008c000000200400003900000000040340190000001f0540018f000000200440019000000c9e0000613d000000000601034f0000000007000019000000006806043c0000000007870436000000000047004b00000c9a0000c13d000000000005004b00000cab0000613d000000000641034f0000000305500210000000000704043300000000075701cf000000000757022f000000000606043b0000010005500089000000000656022f00000000055601cf000000000575019f0000000000540435000000010020019000000cb40000613d000000000100043d000006590210019800000d3d0000c13d000006f001000041000000000010043f000006ce010000410000194c000104300000001f0530018f0000065606300198000000400200043d000000000462001900000cbf0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000048004b00000cbb0000c13d000000000005004b00000ccc0000613d000000000161034f0000000305500210000000000604043300000000065601cf000000000656022f000000000101043b0000010005500089000000000151022f00000000015101cf000000000161019f00000000001404350000006001300210000006540020009c00000654020080410000004002200210000000000112019f0000194c00010430000000050000006b000000000100001900000cd70000613d00000010010000290000000001010433000000010300008a0000000102300250000000000232013f000000000121016f00000002011001af00000cf50000013d000000010320008a000000050330027000000000043100190000002003000039000000010440003900000011053000290000000005050433000000000051041b00000020033000390000000101100039000000000041004b00000ce20000c13d000000050020006c00000cf30000813d0000000102000029000000f80220018f000007170220027f000007170220016700000011033000290000000003030433000000000223016f000000000021041b000000020100002900000001011001bf0000000202000039000000000012041b0000000f010000290000000001010433001100000001001d000006570010009c00000b670000213d0000000301000039000000000101041a000000010010019000000001021002700000007f0220618f001000000002001d0000001f0020008c00000000020000390000000102002039000000000121013f000000010010019000000b1e0000c13d0000001001000029000000200010008c00000d270000413d0000000301000039000000000010043f0000000001000414000006540010009c0000065401008041000000c0011002100000065e011001c70000801002000039194a19450000040f00000001002001900000015e0000613d00000011030000290000001f023000390000000502200270000000200030008c0000000002004019000000000301043b00000010010000290000001f01100039000000050110027000000000011300190000000002230019000000000012004b00000d270000813d000000000002041b0000000102200039000000000012004b00000d230000413d00000011010000290000001f0010008c0010000100100218000500030010021800000d4f0000a13d0000000301000039000000000010043f0000000001000414000006540010009c0000065401008041000000c0011002100000065e011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000200200008a0000001102200180000000000101043b00000d5a0000c13d000000200300003900000d660000013d0000001301000039000000000101041a00000008031002700000065903300197000000000032004b00000e3b0000c13d0000000c02000039000000000202041a000000ff002001900000122a0000c13d0000001202000039000000000202041a000000020020008c00000e3f0000c13d000006ef01000041000000000010043f000006ce010000410000194c00010430000000110000006b000000000100001900000d540000613d0000000e010000290000000001010433000000010300008a0000000502300250000000000232013f000000000121016f00000010011001af00000d720000013d000000010320008a00000005033002700000000004310019000000200300003900000001044000390000000f053000290000000005050433000000000051041b00000020033000390000000101100039000000000041004b00000d5f0000c13d000000110020006c00000d700000813d0000000502000029000000f80220018f000007170220027f00000717022001670000000f033000290000000003030433000000000223016f000000000021041b000000100100002900000001011001bf0000000302000039000000000012041b0000000101000039000000000010041b0000000001000411000000000001004b0000021f0000613d0000000801000039000000000201041a0000065f032001970000000006000411000000000363019f000000000031041b000000400100043d001100000001001d00000000010004140000065905200197000006540010009c0000065401008041000000c00110021000000660011001c70000800d0200003900000003030000390000066104000041194a19400000040f00000001002001900000015e0000613d00000011020000290000002001200039000006620300004100000000003104350000000000020435000006540020009c000006540200804100000040012002100000000002000414000006540020009c0000065402008041000000c002200210000000000121019f00000663011001c70000800d0200003900000001030000390000066404000041194a19400000040f00000001002001900000015e0000613d00000665010000410000000000100443000006620100004100000004001004430000000001000414000006540010009c0000065401008041000000c00110021000000666011001c70000800202000039194a19450000040f00000001002001900000143d0000613d000000000101043b000000000001004b00000dde0000613d00000665010000410000000000100443000006620100004100000004001004430000000001000414000006540010009c0000065401008041000000c00110021000000666011001c70000800202000039194a19450000040f00000001002001900000143d0000613d000000000101043b000000000001004b0000015e0000613d000000400300043d0000002401300039000002d102000039000000000021043500000667010000410000000000130435000000040130003900000000020004100000000000210435000006540030009c001100000003001d0000065401000041000000000103401900000040011002100000000002000414000006540020009c0000065402008041000000c002200210000000000112019f00000668011001c70000066202000041194a19400000040f000000010020019000000dde0000613d0000001101000029000006570010009c00000b670000213d0000001101000029000000400010043f00000009010000290000065a01100197000027100010008c000002410000213d0000000a020000290000065905200198000009950000613d000000400200043d0000065b0020009c00000b670000213d0000004003200039000000400030043f0000002003200039000000000013043500000000005204350000000902000029000000a002200210000000000252019f0000000a03000039000000000023041b000000400200043d0000000000120435000006540020009c000006540200804100000040012002100000000002000414000006540020009c0000065402008041000000c002200210000000000112019f0000065e011001c70000800d0200003900000002030000390000066904000041194a19400000040f00000001002001900000015e0000613d0000000c02000039000000000102041a0000071901100197000000000012041b00000008010000290000000001010433000000200010008c001100000001001d001000030010021800000e840000413d0000001101000029000006570010009c00000b670000213d0000000d01000039000000000201041a000000010020019000000001012002700000007f0110618f0000001f0010008c00000000030000390000000103002039000000000232013f000000010020019000000b1e0000c13d000000200010008c00000e2a0000413d0000001f01100039000000050110027000000011020000290000001f022000390000000502200270000000000012004b00000e2a0000813d0000066a0110009a0000066a0220009a000000000002041b0000000102200039000000000012004b00000e260000413d0000000d01000039000000000010043f0000000001000414000006540010009c0000065401008041000000c0011002100000065e011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000200200008a0000001102200180000000000101043b00000e8e0000c13d000000200300003900000e9a0000013d000006dc01000041000000000010043f000006ce010000410000194c0001043000000002020000390000001203000039000000000023041b00000001020003670000004403200370000000000303043b000000ff0030008c0000015e0000213d000000020030008c000008440000813d000000ff0110018f000000010010008c000008440000213d000000000013004b00000edf0000c13d0000002401200370000000000101043b000006590010009c0000015e0000213d0000000002000411000000000021004b00000ee30000c13d0000000001000411000000000010043f0000001901000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d00000044020000390000000102200367000000000202043b000000ff0020008c0000015e0000213d000000000101043b000000000020043f000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000000101043b000000000101041a000000ff0110018f0000001201100029000000ff0010008c000014370000213d00000001020003670000006403200370000000000303043b000000ff0030008c0000015e0000213d000000000031004b00000ee70000a13d000006ed01000041000000000010043f000006ce010000410000194c0001043000000010010000290000010001100089000007170110021f000000110000006b000000000100601900000004020000290000000002020433000000000112016f00000011011001af00000eaa0000013d000000010320008a000000050330027000000000043100190000002003000039000000010440003900000008053000290000000005050433000000000051041b00000020033000390000000101100039000000000041004b00000e930000c13d000000110020006c00000ea40000813d0000001002000029000000f80220018f000007170220027f000007170220016700000008033000290000000003030433000000000223016f000000000021041b0000001101000029000000010110021000000001011001bf0000000d02000039000000000012041b000000ff01000039000001200010043f00000006010000290000000001010433000000200010008c001100000001001d001000030010021800000f500000413d0000001101000029000006570010009c00000b670000213d0000000e01000039000000000201041a000000010020019000000001012002700000007f0110618f0000001f0010008c00000000030000390000000103002039000000000232013f000000010020019000000b1e0000c13d000000200010008c00000ece0000413d0000001f01100039000000050110027000000011020000290000001f022000390000000502200270000000000012004b00000ece0000813d0000066b0110009a0000066b0220009a000000000002041b0000000102200039000000000012004b00000eca0000413d0000000e01000039000000000010043f0000000001000414000006540010009c0000065401008041000000c0011002100000065e011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000200200008a0000001102200180000000000101043b00000f5a0000c13d000000200300003900000f660000013d000006dd01000041000000000010043f000006ce010000410000194c00010430000006de01000041000000000010043f000006ce010000410000194c000104300000004401200370000000000101043b000000ff0010008c0000015e0000213d000000010010008c000008440000213d000000000001004b0000002401200370000010230000c13d0000008402200370000000000202043b000000000002004b0000000003000039000000010300c039000000000032004b0000015e0000c13d000000000002004b00000f290000613d000000000101043b000006590010009c0000015e0000213d000000000010043f0000001a01000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000000101043b000000000101041a000000ff0010019000000f290000c13d0000001201000029000000010110008a001200000001001d000000ff0010008c000014370000213d00000024010000390000000101100367000000000101043b000006590010009c0000015e0000213d000000000010043f0000001a01000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000000101043b000000000201041a000007190220019700000001022001bf000000000021041b000000010100003900000f2a0000013d00000000010000190000001802000039000000000202041a000000000012001a000014370000413d00000000021200190000001603000039000000000303041a000000000032004b00000f4c0000213d0000001703000039000000000303041a0000001504000039000000000404041a000000000534004b000014370000413d000000120050006b00000000060500190000001206004029000000000036001a000014370000413d00000000050600190000000003360019000000000043004b00000f4c0000213d0000001804000039000000000024041b0000001702000039000000000032041b0000000001150019001300000001001d000000ff0010008c000014370000213d000000130000006b000010ab0000c13d000006ec01000041000000000010043f000006ce010000410000194c0001043000000010010000290000010001100089000007170110021f000000110000006b000000000100601900000003020000290000000002020433000000000112016f00000011011001af00000f760000013d000000010320008a000000050330027000000000043100190000002003000039000000010440003900000006053000290000000005050433000000000051041b00000020033000390000000101100039000000000041004b00000f5f0000c13d000000110020006c00000f700000813d0000001002000029000000f80220018f000007170220027f000007170220016700000006033000290000000003030433000000000223016f000000000021041b000000ff010000390000001102000029000000010220021000000001022001bf0000000e03000039000000000023041b000001400010043f0000000401000029000006540010009c0000065401008041000000400110021000000008020000290000000002020433000006540020009c00000654020080410000006002200210000000000112019f0000000002000414000006540020009c0000065402008041000000c002200210000000000112019f00000660011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000000101043b001100000001001d000000e00010043f0000000301000029000006540010009c0000065401008041000000400110021000000006020000290000000002020433000006540020009c00000654020080410000006002200210000000000112019f0000000002000414000006540020009c0000065402008041000000c002200210000000000112019f00000660011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000000101043b001000000001001d000001000010043f0000066c0100004100000000001004430000000001000414000006540010009c0000065401008041000000c0011002100000066d011001c70000800b02000039194a19450000040f00000001002001900000143d0000613d000000000201043b000000a00020043f000000400100043d00000080031000390000000000230435000000600210003900000010030000290000000000320435000000400210003900000011030000290000000000320435000000a0020000390000000002210436000000a003100039000000000400041000000000004304350000066e0300004100000000003204350000066f0010009c00000b670000213d000000c003100039000000400030043f000006540020009c000006540200804100000040022002100000000001010433000006540010009c00000654010080410000006001100210000000000121019f0000000002000414000006540020009c0000065402008041000000c002200210000000000112019f00000660011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000000101043b000000800010043f0000000001000410000000c00010043f0000000f010000390000000c02000029000000000021041b0000000d010000290000000001010433001100000001001d000006570010009c00000b670000213d0000001001000039000000000101041a000000010010019000000001021002700000007f0220618f001000000002001d0000001f0020008c00000000020000390000000102002039000000000121013f000000010010019000000b1e0000c13d0000001001000029000000200010008c0000100f0000413d0000001001000039000000000010043f0000000001000414000006540010009c0000065401008041000000c0011002100000065e011001c70000801002000039194a19450000040f00000001002001900000015e0000613d00000011030000290000001f023000390000000502200270000000200030008c0000000002004019000000000301043b00000010010000290000001f01100039000000050110027000000000011300190000000002230019000000000012004b0000100f0000813d000000000002041b0000000102200039000000000012004b0000100b0000413d00000011010000290000001f0010008c000010e30000a13d0000001001000039000000000010043f0000000001000414000006540010009c0000065401008041000000c0011002100000065e011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000200200008a0000001102200180000000000101043b000010f00000c13d0000002003000039000010fc0000013d0000001702000039000000000202041a0000000f03000039000000000303041a000000000223004b000014370000413d0000001803000039000000000303041a000000000232004b000014370000413d000000120020006b00000000030200190000001203004029001200000003001d000000000101043b000006590010009c0000015e0000213d000000000010043f0000001901000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d00000044020000390000000102200367000000000202043b000000ff0020008c0000015e0000213d000000000101043b000000000020043f000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000000101043b000000000201041a000000ff0320018f0000001203300029000000ff0030008c000014370000213d0000071902200197000000000223019f000000000021041b0000001401000039000000000201041a00000012012000b9000000120000006b000010620000613d00000012031000fa000000000023004b000014370000c13d0000000002000416000000000312004b000010df0000413d000010990000613d0000000001000414000006540010009c0000065401008041000000c00110021000000660011001c7000080090200003900000000040004110000000005000019194a19400000040f00000060031002700000065403300198000010970000613d0000001f0430003900000655044001970000003f04400039000006df04400197000000400500043d0000000004450019000000000054004b00000000060000390000000106004039000006570040009c00000b670000213d000000010060019000000b670000c13d000000400040043f0000001f0430018f0000000006350436000006560530019800000000035600190000108a0000613d000000000701034f000000007807043c0000000006860436000000000036004b000010860000c13d000000000004004b000010970000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000000100200190000009d00000613d0000000101000039000000000201041a000000010100008a000000000212013f000000000300041a001100000003001d0000000002230019000000120020002a000014370000413d0000001202200029000000400300043d001000000003001d0000000f03000039000000000303041a000000000032004b000011500000a13d0000001003000029000011a30000013d00000024010000390000000101100367000000000101043b000006590010009c0000015e0000213d000000000010043f0000001901000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d00000044020000390000000102200367000000000202043b000000ff0020008c0000015e0000213d000000000101043b000000000020043f000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000000101043b000000000201041a000000ff0320018f0000001303300029000000ff0030008c000014370000213d0000071902200197000000000223019f000000000021041b0000001401000039000000000201041a00000013012000b900000013031000fa000000000023004b000014370000c13d0000000002000416000000000312004b0000115e0000813d000006eb01000041000000000010043f000006ce010000410000194c00010430000000110000006b0000000001000019000010e80000613d0000001301000029000000000101043300000011040000290000000302400210000007170220027f0000071702200167000000000121016f0000000102400210000000000121019f0000110a0000013d000000010320008a00000005033002700000000004310019000000200300003900000001044000390000000d053000290000000005050433000000000051041b00000020033000390000000101100039000000000041004b000010f50000c13d000000110020006c000011070000813d00000011020000290000000302200210000000f80220018f000007170220027f00000717022001670000000d033000290000000003030433000000000223016f000000000021041b0000001101000029000000010110021000000001011001bf0000001002000039000000000012041b0000000b010000290000000001010433001300000001001d000006570010009c00000b670000213d0000001101000039000000000101041a000000010010019000000001021002700000007f0220618f001100000002001d0000001f0020008c00000000020000390000000102002039000000000121013f000000010010019000000b1e0000c13d0000001101000029000000200010008c0000113c0000413d0000001101000039000000000010043f0000000001000414000006540010009c0000065401008041000000c0011002100000065e011001c70000801002000039194a19450000040f00000001002001900000015e0000613d00000013030000290000001f023000390000000502200270000000200030008c0000000002004019000000000301043b00000011010000290000001f01100039000000050110027000000000011300190000000002230019000000000012004b0000113c0000813d000000000002041b0000000102200039000000000012004b000011380000413d00000013010000290000001f0010008c000011b30000a13d0000001101000039000000000010043f0000000001000414000006540010009c0000065401008041000000c0011002100000065e011001c70000801002000039194a19450000040f00000001002001900000015e0000613d000000200200008a0000001302200180000000000101043b000011c00000c13d0000002003000039000011cc0000013d0000001002000029000006e00020009c00000b670000213d00000010020000290000002003200039000d00000003001d000000400030043f0000000000020435000000120000006b0000122e0000c13d0000070301000041000000000010043f000006ce010000410000194c00010430000011920000613d0000000001000414000006540010009c0000065401008041000000c00110021000000660011001c7000080090200003900000000040004110000000005000019194a19400000040f00000060031002700000065403300198000011900000613d0000001f0430003900000655044001970000003f04400039000006df04400197000000400500043d0000000004450019000000000054004b00000000060000390000000106004039000006570040009c00000b670000213d000000010060019000000b670000c13d000000400040043f0000001f0430018f000000000635043600000656053001980000000003560019000011830000613d000000000701034f000000007807043c0000000006860436000000000036004b0000117f0000c13d000000000004004b000011900000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000000100200190000009d00000613d0000000101000039000000000201041a000000010100008a000000000212013f000000000300041a001200000003001d0000000002230019000000130020002a000014370000413d0000001302200029000000400300043d001100000003001d0000000f03000039000000000303041a000000000032004b000012930000a13d00000011030000290000004401300039000006e802000041000000000021043500000024013000390000000e020000390000000000210435000006e9010000410000000000130435000000040130003900000020020000390000000000210435000006540030009c00000654030080410000004001300210000006ea011001c70000194c00010430000000130000006b0000000001000019000011b80000613d0000001201000029000000000101043300000013040000290000000302400210000007170220027f0000071702200167000000000121016f0000000102400210000000000121019f000011da0000013d000000010320008a00000005033002700000000004310019000000200300003900000001044000390000000b053000290000000005050433000000000051041b00000020033000390000000101100039000000000041004b000011c50000c13d000000130020006c000011d70000813d00000013020000290000000302200210000000f80220018f000007170220027f00000717022001670000000b033000290000000003030433000000000223016f000000000021041b0000001301000029000000010110021000000001011001bf0000001102000039000000000012041b00000012010000390000000102000039000000000021041b0000000c01000039000000000101041a000000ff001001900000122a0000c13d000007190110019700000001011001bf0000000c02000039000000000012041b000000400100043d00000000020004110000000000210435000006540010009c000006540100804100000040011002100000000002000414000006540020009c0000065402008041000000c002200210000000000112019f0000065e011001c70000800d0200003900000001030000390000067004000041194a19400000040f00000001002001900000015e0000613d0000001301000039000000000201041a00000671030000410000001404000039000000000034041b0000000703000029000000080330021000000672033001970000067302200197000000000232019f000000000021041b000006f8010000390000001502000039000000000012041b00000073010000390000001602000039000000000012041b000000800100043d00000140000004430000016000100443000000a00100043d00000020030000390000018000300443000001a0001004430000004001000039000000c00200043d000001c000100443000001e0002004430000006001000039000000e00200043d000002000010044300000220002004430000008001000039000001000200043d00000240001004430000026000200443000001200100043d000000a0020000390000028000200443000002a000100443000000c001000039000001400200043d000002c000100443000002e00020044300000100003004430000000701000039000001200010044300000674010000410000194b0001042e000006fb01000041000000000010043f000006ce010000410000194c000104300000000002000411000000000002004b0000129e0000613d000f00110010015300000000010000190000000f0010006c000014370000213d0000000101100039000000120010006c000012330000413d0000000001000411000000000010043f0000000501000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d0000001202000029000006e1022000d1000000000101043b000000000301041a0000000002230019000000000021041b000006e20100004100000000001004430000000001000414000006540010009c0000065401008041000000c0011002100000066d011001c70000800b02000039194a19450000040f00000001002001900000143d0000613d000000000101043b000e00000001001d0000001101000029000000000010043f0000000401000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d0000000e02000029000000a0022002100000001203000029000000010030008c0000000003000019000006e303006041000000000223019f0000000006000411000000000262019f000000000101043b000000000021041b0000000001000414000006540010009c0000065401008041000000c00110021000000660011001c70000800d020000390000000403000039000006e40400004100000000050000190000001107000029194a19400000040f00000001002001900000015e0000613d0000001102000029000e00120020002d00000011010000290000000101100039001100000001001d0000000e0010006c000012a20000613d0000000001000414000006540010009c0000065401008041000000c00110021000000660011001c70000800d020000390000000403000039000006e404000041000000000500001900000000060004110000001107000029194a19400000040f00000001002001900000127f0000c13d0000015e0000013d0000001102000029000006e00020009c00000b670000213d00000011020000290000002003200039000e00000003001d000000400030043f00000000000204350000000002000411000000000002004b000013290000c13d0000070201000041000000000010043f000006ce010000410000194c000104300000000e01000029000000000010041b00000000010000190000000f0010006c000014370000213d0000000101100039000000120010006c000012a50000413d00000665010000410000000000100443000000000100041100000004001004430000000001000414000006540010009c0000065401008041000000c00110021000000666011001c70000800202000039194a19450000040f00000001002001900000143d0000613d000000000101043b000000000001004b000014320000613d000000400100043d001100000001001d000000000200041a000f00000002001d00120012002000720000001103000029000000640130003900000080020000390000000000210435000006e5010000410000000000130435000000040130003900000000020004110000000000210435000000440130003900000012020000290000000000210435000000240130003900000000000104350000001001000029000000000101043300000084023000390000000000120435000000a402300039000000000001004b000012dc0000613d000000000300001900000000042300190000000d05300029000000000505043300000000005404350000002003300039000000000013004b000012d50000413d0000001f03100039000007180330019700000000012100190000000000010435000000a401300039000006540010009c000006540100804100000060011002100000001102000029001100000002001d000006540020009c00000654020080410000004002200210000000000121019f0000000002000414000006540020009c0000065402008041000000c002200210000000000112019f0000000002000411194a19400000040f00000060031002700000065403300197000000200030008c0000002004000039000000000403401900000020064001900000001105600029000012ff0000613d000000000701034f0000001108000029000000007907043c0000000008980436000000000058004b000012fb0000c13d0000001f074001900000130c0000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f000000000065043500000001002001900000138b0000613d0000001f01400039000000600210018f0000001101200029000000000021004b00000000020000390000000102004039000006570010009c00000b670000213d000000010020019000000b670000c13d000000400010043f000000200030008c0000015e0000413d00000011020000290000000002020433000006e6002001980000015e0000c13d000006e702200197000006e50020009c000001660000c13d00000012030000290000000103300039001200000003001d0000000f0030006c001100000001001d000012bf0000413d0000142f0000013d00100012001001530000000001000019000000100010006c000014370000213d0000000101100039000000130010006c0000132b0000413d0000000001000411000000000010043f0000000501000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d0000001302000029000006e1022000d1000000000101043b000000000301041a0000000002230019000000000021041b000006e20100004100000000001004430000000001000414000006540010009c0000065401008041000000c0011002100000066d011001c70000800b02000039194a19450000040f00000001002001900000143d0000613d000000000101043b000f00000001001d0000001201000029000000000010043f0000000401000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000015e0000613d0000000f02000029000000a0022002100000001303000029000000010030008c0000000003000019000006e303006041000000000223019f0000000006000411000000000262019f000000000101043b000000000021041b0000000001000414000006540010009c0000065401008041000000c00110021000000660011001c70000800d020000390000000403000039000006e40400004100000000050000190000001207000029194a19400000040f00000001002001900000015e0000613d0000001202000029000f00130020002d00000012010000290000000101100039001200000001001d0000000f0010006c000013a80000613d0000000001000414000006540010009c0000065401008041000000c00110021000000660011001c70000800d020000390000000403000039000006e404000041000000000500001900000000060004110000001207000029194a19400000040f0000000100200190000013770000c13d0000015e0000013d000000000003004b000014400000613d0000001f0230003900000655022001970000003f02200039000006df04200197000000400200043d0000000004420019000000000024004b00000000050000390000000105004039000006570040009c00000b670000213d000000010050019000000b670000c13d000000400040043f0000001f0430018f00000000063204360000065605300198001300000006001d00000000035600190000145c0000613d000000000601034f0000001307000029000000006806043c0000000007870436000000000037004b000013a30000c13d0000145c0000013d0000000f01000029000000000010041b0000000001000019000000100010006c000014370000213d0000000101100039000000130010006c000013ab0000413d00000665010000410000000000100443000000000100041100000004001004430000000001000414000006540010009c0000065401008041000000c00110021000000666011001c70000800202000039194a19450000040f00000001002001900000143d0000613d000000000101043b000000000001004b000014320000613d000000400100043d001200000001001d000000000200041a000f00000002001d0010001300200072001300800000003d0000001203000029000000640130003900000080020000390000000000210435000006e5010000410000000000130435000000040130003900000000020004110000000000210435000000440130003900000010020000290000000000210435000000240130003900000000000104350000001101000029000000000101043300000084023000390000000000120435000000a402300039000000000001004b000013e30000613d000000000300001900000000042300190000000e05300029000000000505043300000000005404350000002003300039000000000013004b000013dc0000413d0000001f03100039000007180330019700000000012100190000000000010435000000a401300039000006540010009c000006540100804100000060011002100000001202000029001200000002001d000006540020009c00000654020080410000004002200210000000000121019f0000000002000414000006540020009c0000065402008041000000c002200210000000000112019f0000000002000411194a19400000040f00000060031002700000065403300197000000200030008c0000002004000039000000000403401900000020064001900000001205600029000014060000613d000000000701034f0000001208000029000000007907043c0000000008980436000000000058004b000014020000c13d0000001f07400190000014130000613d000000000661034f0000000307700210000000000805043300000000087801cf000000000878022f000000000606043b0000010007700089000000000676022f00000000067601cf000000000686019f000000000065043500000001002001900000143e0000613d0000001f01400039000000600210018f0000001201200029000000000021004b00000000020000390000000102004039000006570010009c00000b670000213d000000010020019000000b670000c13d000000400010043f000000200030008c0000015e0000413d00000012020000290000000002020433000006e6002001980000015e0000c13d000006e702200197000006e50020009c000001660000c13d00000010030000290000000103300039001000000003001d0000000f0030006c001200000001001d000013c60000413d000000000100041a0000000f0010006c0000015e0000c13d00000001010000390000001202000039000000000012041b00000000010000190000194b0001042e000006ee01000041000000000010043f0000001101000039000000040010043f000006be010000410000194c00010430000000000001042f000000000003004b000014420000c13d0000006002000039000014690000013d0000001f0230003900000655022001970000003f02200039000006df04200197000000400200043d0000000004420019000000000024004b00000000050000390000000105004039000006570040009c00000b670000213d000000010050019000000b670000c13d000000400040043f0000001f0430018f00000000063204360000065605300198001300000006001d00000000035600190000145c0000613d000000000601034f0000001307000029000000006806043c0000000007870436000000000037004b000014580000c13d000000000004004b000014690000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000000001020433000000000001004b000001660000613d0000001302000029000001930000013d00000020030000390000000004310436000000003202043400000000002404350000004001100039000000000002004b0000147d0000613d000000000400001900000000051400190000000006430019000000000606043300000000006504350000002004400039000000000024004b000014760000413d000000000312001900000000000304350000001f0220003900000718022001970000000001120019000000000001042d0000071a0010009c000014930000213d000000630010008c000014930000a13d00000001030003670000000401300370000000000101043b000006590010009c000014930000213d0000002402300370000000000202043b000006590020009c000014930000213d0000004403300370000000000303043b000000000001042d00000000010000190000194c000104300000001f0220003900000718022001970000000001120019000000000021004b00000000020000390000000102004039000006570010009c000014a10000213d0000000100200190000014a10000c13d000000400010043f000000000001042d000006ee01000041000000000010043f0000004101000039000000040010043f000006be010000410000194c000104300000071b0020009c000014d70000813d00000000040100190000001f0120003900000718011001970000003f011000390000071805100197000000400100043d0000000005510019000000000015004b00000000070000390000000107004039000006570050009c000014d70000213d0000000100700190000014d70000c13d000000400050043f00000000052104360000000007420019000000000037004b000014dd0000213d00000718062001980000001f0720018f00000001044003670000000003650019000014c70000613d000000000804034f0000000009050019000000008a08043c0000000009a90436000000000039004b000014c30000c13d000000000007004b000014d40000613d000000000464034f0000000306700210000000000703043300000000076701cf000000000767022f000000000404043b0000010006600089000000000464022f00000000046401cf000000000474019f000000000043043500000000022500190000000000020435000000000001042d000006ee01000041000000000010043f0000004101000039000000040010043f000006be010000410000194c0001043000000000010000190000194c00010430000000ff0220018f000000000020043f000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f0000000100200190000014ed0000613d000000000101043b000000000001042d00000000010000190000194c000104300000000901000039000000000101041a0000065901100198000014f40000613d000000000001042d0000000801000039000000000101041a000006d00010019800000000010000190000066201006041000000000001042d0008000000000002000400000002001d000600000001001d000700000003001d000000000003004b000016410000613d000000000100041a000000070010006c000016410000a13d0000000701000029000000000010043f0000000401000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000163f0000613d000000000101043b000000000101041a000006c200100198000016410000c13d000000000001004b0000152a0000c13d0000000702000029000000010220008a000800000002001d000000000020043f0000000401000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000163f0000613d000000000101043b000000000101041a000000000001004b0000000802000029000015170000613d00000006020000290000065902200197000500000001001d0000065901100197000800000002001d000000000021004b000016460000c13d0000000701000029000000000010043f0000000601000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000163f0000613d000000000201043b000000000302041a00000000050004110000065904500197000000080040006c000015780000613d000000000034004b000015780000613d000100000003001d000200000002001d0000000801000029000000000010043f0000000701000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039000300000004001d194a19450000040f000000030300002900000001002001900000163f0000613d000000000101043b000000000030043f000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f000000030400002900000001002001900000163f0000613d000000000101043b000000000101041a000000ff00100190000000020200002900000001030000290000000005000411000015780000c13d0000000901000039000000000101041a000006d0001001980000164e0000613d0000065901100198000015760000c13d0000000801000039000000000101041a000006d00010019800000000010000190000066201006041000000000014004b0000164e0000c13d0000000401000029000606590010019c0000164a0000613d000000080000006b000015c20000613d0000000901000039000000000101041a0000065906100198000015bb0000613d000000000065004b000015c20000613d000300000004001d000100000003001d000200000002001d00000665010000410000000000100443000400000006001d00000004006004430000000001000414000006540010009c0000065401008041000000c00110021000000666011001c70000800202000039194a19450000040f0000000100200190000016450000613d000000000101043b000000000001004b00000003030000290000163f0000613d000000400400043d0000006401400039000000070200002900000000002104350000004401400039000000060200002900000000002104350000002401400039000000080200002900000000002104350000070701000041000000000014043500000004014000390000000000310435000006540040009c000300000004001d0000065401000041000000000104401900000040011002100000000002000414000006540020009c0000065402008041000000c002200210000000000112019f0000071e011001c70000000402000029194a19450000040f0000000100200190000016520000613d00000003010000290000071b0010009c00000002020000290000000103000029000016720000813d000000400010043f000015c20000013d0000000801000039000000000101041a000006d000100198000015c20000c13d0000066206000041000000000065004b000015830000c13d000000000003004b000015c50000613d000000000002041b0000000801000029000000000010043f0000000501000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000163f0000613d000000000101043b000000000201041a000000010220008a000000000021041b0000000601000029000000000010043f0000000501000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000163f0000613d000000000101043b000000000201041a0000000102200039000000000021041b000006e20100004100000000001004430000000001000414000006540010009c0000065401008041000000c0011002100000066d011001c70000800b02000039194a19450000040f0000000100200190000016450000613d000000000101043b000400000001001d0000000701000029000000000010043f0000000401000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000163f0000613d0000000402000029000000a00220021000000006022001af000006e3022001c7000000000101043b000000000021041b0000000501000029000006e300100198000016300000c13d00000007010000290000000101100039000400000001001d000000000010043f0000000401000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000163f0000613d000000000101043b000000000101041a000000000001004b000016300000c13d000000000100041a000000040010006b000016300000613d0000000401000029000000000010043f0000000401000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f00000001002001900000163f0000613d000000000101043b0000000502000029000000000021041b0000000001000414000006540010009c0000065401008041000000c00110021000000660011001c70000800d020000390000000403000039000006e404000041000000080500002900000006060000290000000707000029194a19400000040f00000001002001900000163f0000613d000000000001042d00000000010000190000194c000104300000070b01000041000000000010043f000006ce010000410000194c00010430000000000001042f0000071c01000041000000000010043f000006ce010000410000194c000104300000071f01000041000000000010043f000006ce010000410000194c000104300000071d01000041000000000010043f000006ce010000410000194c0001043000000060061002700000001f0460018f0000065605600198000000400200043d00000000035200190000165e0000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000038004b0000165a0000c13d0000065406600197000000000004004b0000166c0000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000006001600210000006540020009c00000654020080410000004002200210000000000112019f0000194c00010430000006ee01000041000000000010043f0000004101000039000000040010043f000006be010000410000194c00010430000000000301001900000000011200a9000000000003004b0000167f0000613d00000000033100d9000000000023004b000016800000c13d000000000001042d000006ee01000041000000000010043f0000001101000039000000040010043f000006be010000410000194c00010430000b000000000002000400000004001d000700000002001d000900000001001d000a00000003001d000000000003004b000018420000613d000000000100041a0000000a0010006c000018420000a13d0000000a01000029000000000010043f0000000401000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f0000000100200190000018400000613d000000000101043b000000000101041a000006c200100198000018420000c13d000000000001004b000016b70000c13d0000000a02000029000000010220008a000b00000002001d000000000020043f0000000401000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f0000000100200190000018400000613d000000000101043b000000000101041a000000000001004b0000000b02000029000016a40000613d00000009020000290000065902200197000600000001001d0000065901100197000b00000002001d000000000021004b000018470000c13d0000000a01000029000000000010043f0000000601000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f0000000100200190000018400000613d000000000301043b000000000403041a00000000050004110000065902500197000800000002001d0000000b0020006c000017040000613d000000080040006b000017040000613d000300000004001d000500000003001d0000000b01000029000000000010043f0000000701000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f0000000100200190000018400000613d000000000101043b0000000802000029000000000020043f000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f0000000100200190000018400000613d000000000101043b000000000101041a000000ff00100190000000050300002900000003040000290000000005000411000017040000c13d0000000901000039000000000101041a000006d000100198000018530000613d0000065901100198000017020000c13d0000000801000039000000000101041a000006d00010019800000000010000190000066201006041000000080010006b000018530000c13d0000000701000029000906590010019c0000184b0000613d0000000b0000006b0000174d0000613d0000000901000039000000000101041a0000065902100198000017460000613d000000000025004b0000174d0000613d000300000004001d000500000003001d00000665010000410000000000100443000200000002001d00000004002004430000000001000414000006540010009c0000065401008041000000c00110021000000666011001c70000800202000039194a19450000040f0000000100200190000018460000613d000000000101043b000000000001004b000018400000613d000000400300043d00000064013000390000000a02000029000000000021043500000044013000390000000902000029000000000021043500000024013000390000000b02000029000000000021043500000707010000410000000000130435000000040130003900000008020000290000000000210435000006540030009c000100000003001d0000065401000041000000000103401900000040011002100000000002000414000006540020009c0000065402008041000000c002200210000000000112019f0000071e011001c70000000202000029194a19450000040f00000001002001900000188b0000613d00000001010000290000071b0010009c00000005030000290000000304000029000018850000813d000000400010043f0000174d0000013d0000000801000039000000000101041a000006d0001001980000174d0000c13d0000066202000041000000000025004b0000170f0000c13d000000000004004b000017500000613d000000000003041b0000000b01000029000000000010043f0000000501000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f0000000100200190000018400000613d000000000101043b000000000201041a000000010220008a000000000021041b0000000901000029000000000010043f0000000501000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f0000000100200190000018400000613d000000000101043b000000000201041a0000000102200039000000000021041b000006e20100004100000000001004430000000001000414000006540010009c0000065401008041000000c0011002100000066d011001c70000800b02000039194a19450000040f0000000100200190000018460000613d000000000101043b000500000001001d0000000a01000029000000000010043f0000000401000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f0000000100200190000018400000613d0000000502000029000000a00220021000000009022001af000006e3022001c7000000000101043b000000000021041b0000000601000029000006e300100198000017bb0000c13d0000000a010000290000000101100039000500000001001d000000000010043f0000000401000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f0000000100200190000018400000613d000000000101043b000000000101041a000000000001004b000017bb0000c13d000000000100041a000000050010006b000017bb0000613d0000000501000029000000000010043f0000000401000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f0000000100200190000018400000613d000000000101043b0000000602000029000000000021041b0000000001000414000006540010009c0000065401008041000000c00110021000000660011001c70000800d020000390000000403000039000006e4040000410000000b0500002900000009060000290000000a07000029194a19400000040f0000000100200190000018400000613d00000665010000410000000000100443000000070100002900000004001004430000000001000414000006540010009c0000065401008041000000c00110021000000666011001c70000800202000039194a19450000040f0000000100200190000018460000613d000000000101043b000000000001004b0000183f0000613d000000400700043d00000064017000390000008002000039000700000002001d000000000021043500000044017000390000000a02000029000000000021043500000024017000390000000b020000290000000000210435000006e50100004100000000001704350000000401700039000000080200002900000000002104350000008402700039000000040100002900000000310104340000000000120435000000a402700039000000000001004b000017f80000613d000000000400001900000000052400190000000006430019000000000606043300000000006504350000002004400039000000000014004b000017f10000413d0000001f03100039000007180330019700000000012100190000000000010435000000a401300039000006540010009c00000654010080410000006001100210000006540070009c000006540200004100000000020740190000004002200210000000000121019f0000000002000414000006540020009c0000065402008041000000c002200210000000000112019f0000000902000029000b00000007001d194a19400000040f0000000b0b00002900000060031002700000065403300197000000200030008c000000200400003900000000040340190000001f0640018f000000200740019000000000057b00190000181d0000613d000000000801034f00000000090b0019000000008a08043c0000000009a90436000000000059004b000018190000c13d000000000006004b0000182a0000613d000000000771034f0000000306600210000000000805043300000000086801cf000000000868022f000000000707043b0000010006600089000000000767022f00000000066701cf000000000686019f000000000065043500000001002001900000184f0000613d0000001f01400039000000600210018f0000000001b20019000000000021004b00000000020000390000000102004039000006570010009c000018850000213d0000000100200190000018850000c13d000000400010043f000000200030008c000018400000413d00000000010b0433000006e600100198000018400000c13d000006e701100197000006e50010009c000018810000c13d000000000001042d00000000010000190000194c000104300000070b01000041000000000010043f000006ce010000410000194c00010430000000000001042f0000071c01000041000000000010043f000006ce010000410000194c000104300000071f01000041000000000010043f000006ce010000410000194c00010430000000000003004b000018570000c13d00000060020000390000187e0000013d0000071d01000041000000000010043f000006ce010000410000194c000104300000001f0230003900000655022001970000003f02200039000006df04200197000000400200043d0000000004420019000000000024004b00000000050000390000000105004039000006570040009c000018850000213d0000000100500190000018850000c13d000000400040043f0000001f0430018f00000000063204360000065605300198000700000006001d0000000003560019000018710000613d000000000601034f0000000707000029000000006806043c0000000007870436000000000037004b0000186d0000c13d000000000004004b0000187e0000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000000001020433000000000001004b000018ab0000c13d0000070101000041000000000010043f000006ce010000410000194c00010430000006ee01000041000000000010043f0000004101000039000000040010043f000006be010000410000194c0001043000000060061002700000001f0460018f0000065605600198000000400200043d0000000003520019000018970000613d000000000701034f0000000008020019000000007907043c0000000008980436000000000038004b000018930000c13d0000065406600197000000000004004b000018a50000613d000000000151034f0000000304400210000000000503043300000000054501cf000000000545022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000151019f00000000001304350000006001600210000006540020009c00000654020080410000004002200210000000000112019f0000194c000104300000000702000029000006540020009c00000654020080410000004002200210000006540010009c00000654010080410000006001100210000000000121019f0000194c000104300001000000000002000100000002001d0000065901100197000000000010043f0000000701000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f0000000100200190000018e80000613d000000000101043b00000001020000290000065902200197000100000002001d000000000020043f000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f0000000100200190000018e80000613d000000000101043b000000000101041a000000ff01100190000018d70000613d000000000001042d0000000901000039000000000101041a000006d000100198000018e60000613d0000065901100198000018e20000c13d0000000801000039000000000101041a000006d00010019800000000010000190000066201006041000000010010006b00000000010000390000000101006039000000000001042d0000000001000019000000000001042d00000000010000190000194c000104300001000000000002000000000001004b0000191a0000613d000000000200041a000000000012004b0000191a0000a13d000100000001001d000000000010043f0000000401000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f0000000100200190000019180000613d000000000101043b000000000101041a000006c20010019800000001020000290000191a0000c13d000000000001004b000019170000c13d000000010220008a000100000002001d000000000020043f0000000401000039000000200010043f0000000001000414000006540010009c0000065401008041000000c00110021000000663011001c70000801002000039194a19450000040f0000000100200190000019180000613d000000000101043b000000000101041a000000000001004b0000000102000029000019040000613d000000000001042d00000000010000190000194c000104300000070b01000041000000000010043f000006ce010000410000194c000104300000000801000039000000000101041a00000659021001970000000001000411000000000012004b000019250000c13d000000000001042d000006bd02000041000000000020043f000000040010043f000006be010000410000194c00010430000000000001042f000006540010009c00000654010080410000004001100210000006540020009c00000654020080410000006002200210000000000112019f0000000002000414000006540020009c0000065402008041000000c002200210000000000112019f00000660011001c70000801002000039194a19450000040f00000001002001900000193e0000613d000000000101043b000000000001042d00000000010000190000194c0001043000001943002104210000000102000039000000000001042d0000000002000019000000000001042d00001948002104230000000102000039000000000001042d0000000002000019000000000001042d0000194a000004320000194b0001042e0000194c0001043000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000000000000000000001ffffffe000000000000000000000000000000000000000000000000000000000ffffffe0000000000000000000000000000000000000000000000000ffffffffffffffff8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000ffffffffffffffffffffffff000000000000000000000000000000000000000000000000ffffffffffffffbf4c4c2d4e46540000000000000000000000000000000000000000000000000000302e312e300000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000020000000000000000000000000ffffffffffffffffffffffff000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000008be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0000000000000000000000000721c002b0059009a671d00ad1700c9748146cd1b0200000000000000000000000000000000000040000000000000000000000000cc5dc080ff977b3c3a211fa63ab74f90f658f5ba9d3236e92c8f59570f442aac1806aa1896bbf26568e884a7374b41e002500962caba6a15023a8d90e8508b830200000200000000000000000000000000000024000000000000000000000000fb2de5d70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000440000000000000000000000008a8bae378cb731c5c40b632330c6836c2f916f48edb967699c86736f9a6a76ef284966fefa8e6efe2541488ebb0d5cc7a37fcc532c506816bdc596a17e52e14b4484b5bab23cb6c6dcb7d0f87ddcd612e617dbb100a7d33dfb07aab3c9df3c039a8a0592ac89c5ad3bc6df8224c17b485976f597df104ee20d0df415241f670b02000002000000000000000000000000000000040000000000000000000000008b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f000000000000000000000000000000000000000000000000ffffffffffffff3f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258000000000000000000000000000000000000000000000000009fdf42f6e480000000000000000000000000ffffffffffffffffffffffffffffffffffffffff00ffffffffffffffffffffff00000000000000000000000000000000000000000000000002000000000000000000000000000002000000010000000000000000006f483d09000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000069f7d2f20000000000000000000000000000000000000000000000000000000075d5ae9e00000000000000000000000000000000000000000000000000000000a9ee6aca00000000000000000000000000000000000000000000000000000000c87b56dc00000000000000000000000000000000000000000000000000000000e985e9c400000000000000000000000000000000000000000000000000000000f4a0a52700000000000000000000000000000000000000000000000000000000f4a0a52800000000000000000000000000000000000000000000000000000000f7073c3a00000000000000000000000000000000000000000000000000000000e985e9c500000000000000000000000000000000000000000000000000000000f2fde38b00000000000000000000000000000000000000000000000000000000c87b56dd00000000000000000000000000000000000000000000000000000000ce3cd99700000000000000000000000000000000000000000000000000000000d5abeb0100000000000000000000000000000000000000000000000000000000be6ebd1700000000000000000000000000000000000000000000000000000000be6ebd1800000000000000000000000000000000000000000000000000000000c040e6b800000000000000000000000000000000000000000000000000000000c743d1c600000000000000000000000000000000000000000000000000000000a9ee6acb00000000000000000000000000000000000000000000000000000000a9fc664e00000000000000000000000000000000000000000000000000000000b88d4fde000000000000000000000000000000000000000000000000000000008da5cb5a000000000000000000000000000000000000000000000000000000009e05d23f00000000000000000000000000000000000000000000000000000000a28835b500000000000000000000000000000000000000000000000000000000a28835b600000000000000000000000000000000000000000000000000000000a725053f000000000000000000000000000000000000000000000000000000009e05d24000000000000000000000000000000000000000000000000000000000a22cb465000000000000000000000000000000000000000000000000000000008da5cb5b000000000000000000000000000000000000000000000000000000008eddc7220000000000000000000000000000000000000000000000000000000095d89b410000000000000000000000000000000000000000000000000000000084b0196d0000000000000000000000000000000000000000000000000000000084b0196e0000000000000000000000000000000000000000000000000000000085cb593b000000000000000000000000000000000000000000000000000000008990694f0000000000000000000000000000000000000000000000000000000075d5ae9f0000000000000000000000000000000000000000000000000000000075dadb32000000000000000000000000000000000000000000000000000000008456cb59000000000000000000000000000000000000000000000000000000003e421e14000000000000000000000000000000000000000000000000000000006221d13b000000000000000000000000000000000000000000000000000000006c19e7820000000000000000000000000000000000000000000000000000000070a082300000000000000000000000000000000000000000000000000000000070a0823100000000000000000000000000000000000000000000000000000000715018a6000000000000000000000000000000000000000000000000000000006c19e783000000000000000000000000000000000000000000000000000000006f8b44b0000000000000000000000000000000000000000000000000000000006221d13c000000000000000000000000000000000000000000000000000000006352211e000000000000000000000000000000000000000000000000000000006817c76c0000000000000000000000000000000000000000000000000000000042842e0d0000000000000000000000000000000000000000000000000000000042842e0e0000000000000000000000000000000000000000000000000000000055684952000000000000000000000000000000000000000000000000000000005c975abb000000000000000000000000000000000000000000000000000000003e421e15000000000000000000000000000000000000000000000000000000003f4ba83a0000000000000000000000000000000000000000000000000000000040550a9c00000000000000000000000000000000000000000000000000000000098144d300000000000000000000000000000000000000000000000000000000238ac93200000000000000000000000000000000000000000000000000000000238ac9330000000000000000000000000000000000000000000000000000000023b872dd000000000000000000000000000000000000000000000000000000002a55205a00000000000000000000000000000000000000000000000000000000098144d4000000000000000000000000000000000000000000000000000000000d705df60000000000000000000000000000000000000000000000000000000018160ddd0000000000000000000000000000000000000000000000000000000006fdde020000000000000000000000000000000000000000000000000000000006fdde0300000000000000000000000000000000000000000000000000000000081812fc00000000000000000000000000000000000000000000000000000000095ea7b300000000000000000000000000000000000000000000000000000000014635460000000000000000000000000000000000000000000000000000000001ffc9a70000000000000000000000000000000000000000000000000000000004634d8d31ecc21a745e3968a04e9570e4425bc18fa8019c68028196b546d1669c200c68118cdaa70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000240000000000000000000000001e4fbdf7000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002000000080000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000000000000000000000000000000000000000004ee2d6d415b85acef810000000000000000000000000000000000000000000004ee2d6d415b85acef80ffffffff000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000000000000ffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000000005f5e10000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff30313233343536373839616263646566000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000001b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae672a14c4b5000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000032483afb000000000000000000000000000000000000000000000000000000000000000000000000000000ff0000000000000000000000000000000000000000ffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff000000000000000000000001000000000000000000000000000000000000000021a329090089e047994bc4cc6f7f9de207ae390da9a42987ed18741bff5fc0dc02000000000000000000000000000000000000a0000000a00000000000000000310ab089e4439a4c15d089f94afb7896ff553aecb10793d0ab882de59d99a32e020000020000000000000000000000000000004400000000000000000000000019010000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000042000000000000000000000000fce698f7000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a00000000000000000000000000000000000000080000000000000000000000000865f6cef00000000000000000000000000000000000000000000000000000000e82a5329000000000000000000000000000000000000000000000000000000006d187b280000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003ffffffe0000000000000000000000000000000000000000000000000ffffffffffffffdf0000000000000000000000000000000000000000000000010000000000000001796b89b91644bc98cd93958e4c9038275d622183e25ac5af08cc6b5d955391320000000200000000000000000000000000000000000000000000000000000000ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef150b7a020000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000004578636565647320737570706c7900000000000000000000000000000000000008c379a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064000000000000000000000000356680b7000000000000000000000000000000000000000000000000000000004225b744000000000000000000000000000000000000000000000000000000004f2a1112000000000000000000000000000000000000000000000000000000004e487b71000000000000000000000000000000000000000000000000000000003ee5aeb500000000000000000000000000000000000000000000000000000000f645eedf00000000000000000000000000000000000000000000000000000000d78bce0c000000000000000000000000000000000000000000000000000000009cc7f708afc65944829bd487b90b72536b1951864fbfc14e125fc972a6507f394ffddc7c0000000000000000000000000000000000000000000000000000000017307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3102000000000000000000000000000000000000200000008000000000000000006787c7f9a80aa0f5ceddab2c54f1f5169c0b88e75dd5e19d5e858a64144c7dbcc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85be497b8238be5e4f32f72d877ba0627e627848cb8a6504aa01d21a347d565198eb3512b0c000000000000000000000000000000000000000000000000000000000f00000000000000000000000000000000000000000000000000000000000000d93c066500000000000000000000000000000000000000000000000000000000ce133de58ba1c6975fb16a8f1bbda43e7057fe6397fd7e694ab92e9963dff3988f4eb60400000000000000000000000000000000000000000000000000000000ffffffffffffffffffffff0000000000000000000000000000000000000000ff4f776e6572206d696e743a2062616420726571756573740000000000000000000000000000000000000000000000000000000064000000800000000000000000d1a57ed6000000000000000000000000000000000000000000000000000000005cbd944100000000000000000000000000000000000000000000000000000000b562e8dd000000000000000000000000000000000000000000000000000000005db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa8dfc202b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000caee23ea000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000800000000000000000cfb3b942000000000000000000000000000000000000000000000000000000008c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925df2d9b4200000000000000000000000000000000000000000000000000000000cf4700e400000000000000000000000000000000000000000000000000000000405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0200000000000000000000000000000000000020000000c00000000000000000b6d9900a0000000000000000000000000000000000000000000000000000000080ac58ccffffffffffffffffffffffffffffffffffffffffffffffffffffffff80ac58cd00000000000000000000000000000000000000000000000000000000a07d229a00000000000000000000000000000000000000000000000000000000ad0d7f6c0000000000000000000000000000000000000000000000000000000001ffc9a7000000000000000000000000000000000000000000000000000000005b5e139f000000000000000000000000000000000000000000000000000000002a55205a00000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000000000000000000000000000000000010000000000000000a11481000000000000000000000000000000000000000000000000000000000059c896be000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000084000000000000000000000000ea553b3400000000000000000000000000000000000000000000000000000000ad5330c665c991b2d3779e62149b78a3ecfa014fa18a4961a0df03da9b425d48

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

0000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000009c400000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000235f6e7d2af953305cc8d08973bcb4c6c355976800000000000000000000000000000000000000000000000000000000000002bc000000000000000000000000fce946ba1c6cf36d929de619e5c13148ae02796700000000000000000000000000000000000000000000000000000000000000104c6567656e64617279204c65616775650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024c4c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004368747470733a2f2f6c6c2d6d696e742d70726f64756374696f6e2d3861333063633332343732312e6865726f6b756170702e636f6d2f6170692f6d657461646174612f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : name_ (string): Legendary League
Arg [1] : symbol_ (string): LL
Arg [2] : maxSupply_ (uint256): 2500
Arg [3] : prefix_ (string): https://ll-mint-production-8a30cc324721.herokuapp.com/api/metadata/
Arg [4] : suffix_ (string):
Arg [5] : royaltyReceiver_ (address): 0x235F6E7D2Af953305cc8d08973BCB4c6c3559768
Arg [6] : royaltyFeeNumerator_ (uint96): 700
Arg [7] : signer_ (address): 0xfce946ba1C6Cf36D929de619E5c13148aE027967

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [2] : 00000000000000000000000000000000000000000000000000000000000009c4
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000180
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000200
Arg [5] : 000000000000000000000000235f6e7d2af953305cc8d08973bcb4c6c3559768
Arg [6] : 00000000000000000000000000000000000000000000000000000000000002bc
Arg [7] : 000000000000000000000000fce946ba1c6cf36d929de619e5c13148ae027967
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [9] : 4c6567656e64617279204c656167756500000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [11] : 4c4c000000000000000000000000000000000000000000000000000000000000
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [13] : 68747470733a2f2f6c6c2d6d696e742d70726f64756374696f6e2d3861333063
Arg [14] : 633332343732312e6865726f6b756170702e636f6d2f6170692f6d6574616461
Arg [15] : 74612f0000000000000000000000000000000000000000000000000000000000
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000000


[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.