ETH Price: $3,634.01 (-6.67%)

Contract

0xBC69681AF8F73a10e2F43D83777FCBf2d5d652CB
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Switch LSB209309782024-10-09 22:18:4770 days ago1728512327IN
0xBC69681A...2d5d652CB
0 ETH0.000660812.54357245
Switch LSB208772342024-10-02 10:31:3577 days ago1727865095IN
0xBC69681A...2d5d652CB
0 ETH0.000330016.26579108
Switch LSB208518942024-09-28 21:43:3581 days ago1727559815IN
0xBC69681A...2d5d652CB
0 ETH0.000321276.09847158
Switch LSB208518432024-09-28 21:32:5981 days ago1727559179IN
0xBC69681A...2d5d652CB
0 ETH0.000177815.7791787
Switch LSB208518362024-09-28 21:31:3581 days ago1727559095IN
0xBC69681A...2d5d652CB
0 ETH0.00033056.27367453
Switch LSB208487232024-09-28 11:05:5981 days ago1727521559IN
0xBC69681A...2d5d652CB
0 ETH0.000397437.54418011
Switch LSB208092092024-09-22 22:49:2387 days ago1727045363IN
0xBC69681A...2d5d652CB
0 ETH0.0005592410.61559887
Switch LSB207970182024-09-21 5:58:4788 days ago1726898327IN
0xBC69681A...2d5d652CB
0 ETH0.000472638.97363348
Switch LSB207970142024-09-21 5:57:5988 days ago1726898279IN
0xBC69681A...2d5d652CB
0 ETH0.000480679.12634488
Switch LSB207970032024-09-21 5:55:4788 days ago1726898147IN
0xBC69681A...2d5d652CB
0 ETH0.0005773810.95993172
Switch LSB207969982024-09-21 5:54:4788 days ago1726898087IN
0xBC69681A...2d5d652CB
0 ETH0.0005271710.00684201
Switch LSB207898172024-09-20 5:49:1189 days ago1726811351IN
0xBC69681A...2d5d652CB
0 ETH0.0006461912.26616926
Switch LSB207854052024-09-19 15:01:5990 days ago1726758119IN
0xBC69681A...2d5d652CB
0 ETH0.0016541831.4
Switch LSB207851422024-09-19 14:09:1190 days ago1726754951IN
0xBC69681A...2d5d652CB
0 ETH0.0011105921.08637144
Switch LSB207805522024-09-18 22:46:3591 days ago1726699595IN
0xBC69681A...2d5d652CB
0 ETH0.000339096.43685265
Switch LSB207795142024-09-18 19:17:3591 days ago1726687055IN
0xBC69681A...2d5d652CB
0 ETH0.001122821.31323603
Switch LSB207752552024-09-18 5:00:4791 days ago1726635647IN
0xBC69681A...2d5d652CB
0 ETH0.0005844111.09340748
Switch LSB207752492024-09-18 4:59:3591 days ago1726635575IN
0xBC69681A...2d5d652CB
0 ETH0.000292169.49549564
Switch LSB207752172024-09-18 4:53:1191 days ago1726635191IN
0xBC69681A...2d5d652CB
0 ETH0.000341596.48430748
Switch LSB207544092024-09-15 7:05:5994 days ago1726383959IN
0xBC69681A...2d5d652CB
0 ETH0.000126242.39639462
Switch LSB207419622024-09-13 13:22:1196 days ago1726233731IN
0xBC69681A...2d5d652CB
0 ETH0.000158043
Switch LSB207101552024-09-09 2:45:47100 days ago1725849947IN
0xBC69681A...2d5d652CB
0 ETH0.000093781.78018277
Switch LSB206995602024-09-07 15:16:11102 days ago1725722171IN
0xBC69681A...2d5d652CB
0 ETH0.000146742.78553703
Switch LSB203911622024-07-26 13:56:35145 days ago1722002195IN
0xBC69681A...2d5d652CB
0 ETH0.00034876.62063937
Switch LSB203716752024-07-23 20:38:47148 days ago1721767127IN
0xBC69681A...2d5d652CB
0 ETH0.000253144.8062438
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
cypherdudesRenderer

Compiler Version
v0.8.22+commit.4fc1097e

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
File 1 of 15 : CypherDudesRenderer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/access/Ownable.sol";
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
import {Base64} from "./ethfs/solady/utils/Base64.sol";
import {File, Content} from "./ethfs/File.sol";
import {IScriptyBuilderV2, HTMLRequest, HTMLTagType, HTMLTag} from "./scripty.sol/interfaces/IScriptyBuilderV2.sol";

interface ICypherDudes {
    struct TokenData {
        uint256 seed;
        uint256 globalProgression;
        string secretWord;
    }

    function tokenData(
        uint256 tokenId
    ) external view returns (uint256, uint256, string memory);

    function ownerOf(uint256 tokenId) external view returns (address);
}

interface ICypherdudesFileStore {
    function readFile(
        string memory filename
    ) external view returns (string memory content);

    function getFile(
        string memory filename
    ) external view returns (File memory file);
}

/// @title cypherdudesRenderer
/// @author @felixfelixfelix
contract cypherdudesRenderer is Ownable {
    ICypherDudes public cypherdudesContract;
    ICypherdudesFileStore public fileStore;
    address public immutable scriptyStorageAddress;
    address public immutable scriptyBuilderAddress;
    string public cypherdudeScript;

    string public baseImageURI;
    string public website;

    struct Trait {
        string typeName;
        string valueName;
    }

    struct leastSignificantBit {
        uint256 bit;
    }

    mapping(uint256 => leastSignificantBit) public lsb;

    constructor(
        address _scriptyBuilderAddress,
        address _scriptyStorageAddress,
        address filestore_,
        string memory baseImageURI_,
        string memory website_,
        string memory cypherdudeScript_
    ) Ownable(msg.sender) {
        scriptyStorageAddress = _scriptyStorageAddress;
        scriptyBuilderAddress = _scriptyBuilderAddress;
        fileStore = ICypherdudesFileStore(filestore_);
        baseImageURI = baseImageURI_;
        website = website_;
        cypherdudeScript = cypherdudeScript_;
    }

    function setcypherdudesContract(
        address _cypherdudesContract
    ) public onlyOwner {
        cypherdudesContract = ICypherDudes(_cypherdudesContract);
    }

    function setFileStoreContract(address _fileStore) public onlyOwner {
        fileStore = ICypherdudesFileStore(_fileStore);
    }

    function setBaseImageURI(string calldata uri) public onlyOwner {
        baseImageURI = uri;
    }

    function setWebsite(string calldata url) public onlyOwner {
        website = url;
    }

    function setCypherdudeScript(string calldata script) public onlyOwner {
        cypherdudeScript = script;
    }

    function switchLSB(uint256 _bit, uint256 _tokenId) public {
        require(
            msg.sender == cypherdudesContract.ownerOf(_tokenId),
            "Not Authorized"
        );
        lsb[_tokenId].bit = _bit;
    }

    function getMetadataObject(
        bytes memory animationUrl,
        uint256 tokenId,
        uint256 dude,
        uint256 layer2
    ) internal view returns (bytes memory) {
        string memory tid = toString(tokenId);
        (,,string memory secretWord) = cypherdudesContract.tokenData(tokenId);
        string memory st = "";
        if (bytes(secretWord).length != 0) {
            st = " - ";
        }
        return
            abi.encodePacked(
                '{"name": "',
                secretWord,
                st,
                "CYPHERDUDE #",
                tid,
                '", "description":"Cypherdudes is a generative cryptoart series paying tribute to the Cypherpunk movement, which has been campaigning for the protection of privacy on the internet since the early 90s, and was behind the creation of bitcoin in 2008.'
                "This series takes up the graphic universe of a character that I invented and gained some popularity in the crypto art scene : the cryptodude."
                "A personification of crypto culture, the Cypherdude performs actions that visually translate the expressions and behaviors specific to this ecosystem."
                "Each work in the series is unique and generated from an algorithm hosted directly on the blockchain. The parameters composing each work are selected from a wide range of elements created individually by myself and combined in a seeded random way. Each seed is determined by the blockchain on mint."
                "The work and the Message."
                "Each owner of a work from the series has access to a hidden feature : the ability to inscribe an encrypted message in the work itself. The encryption key is decided by the owner on every inscription. This message can then only be decoded by a recipient knowing the key. This way, the work becomes a veritable tool at the service of its owner, who, by using it, makes it evolve visually using a simple steganographic technique."
                'The Cypherdudes thus becomes the visual witness to the presence of a message, and its digital security vault.",',
                '"external_url": "',
                website,
                '", "image": "',
                baseImageURI,
                tid,
                '.svg"',
                ', "animation_url": "',
                animationUrl,
                '", "attributes": [',
                getJSONAttributes(tokenId, dude, layer2),
                "]}"
            );
    }

    function getTokenConstantsScript(
        uint256 tokenId,
        uint256 dude
    ) internal view returns (bytes memory) {
        (uint256 seed,,string memory secretWord) = cypherdudesContract.tokenData(tokenId);
        seed >>= 8;
        uint256 layer1 = seed % 11;
        seed >>= 8;
        seed >>= 8;
        uint256 layer3 = dude == 2 || dude == 3 || dude == 8 ? seed % 8 : 8;
        seed >>= 8;
        uint256 bitEnvironment = seed % 9;
        seed >>= 8;
        uint256 bitPalette = seed % 12;
        return
            abi.encodePacked(
                "let tokenId = ",
                toString(tokenId),
                ";",
                "let layer1 = ",
                toString(layer1),
                ";",
                "let layer3 = ",
                toString(layer3),
                ";",
                "let secretWord = '",
                secretWord,
                "';",
                "let bitEnvironment = ",
                toString(bitEnvironment),
                ";",
                "let bitPalette = ",
                toString(bitPalette),
                ";"
            );
    }

    function getCardConstantsScript(
        uint256 tokenId
    ) internal view returns (bytes memory) {
        (,uint256 globalProgression,) = cypherdudesContract.tokenData(tokenId);
        
        return
            abi.encodePacked(
                "let gridSize = ",
                toString(globalProgression < 97 ? 32 : globalProgression < 193 ? 64 : 128),
                ";",
                "let gridResolution = ",
                toString(2-(((globalProgression - 1) / 32) % 3)),
                ";",
                "let levelProgression = ",
                toString(globalProgression % 32 == 0 ? 1 : 32 - (globalProgression % 32)),
                ";",
                "let ownerAddy = '",
                Strings.toHexString(cypherdudesContract.ownerOf(tokenId)),
                "';",
                "let message = '",
                fileStore.readFile(
                    string.concat("cypherCard_", toString(tokenId))
                ),
                "';",
                "let lsb = ",
                toString(lsb[tokenId].bit),
                ";"
            );
    }

    function tokenURI(uint256 tokenId) external view returns (string memory) {
        HTMLTag[] memory bodyTags = new HTMLTag[](8);
        (uint256 seed, , ) = cypherdudesContract.tokenData(tokenId);
        uint256 dude = seed % 20;
        seed >>= 8;
        seed >>= 8;
        uint256 layer2 = seed % 2 > 0 ? seed % 11 : 11;

        HTMLTag[] memory headTags = new HTMLTag[](1);
        headTags[0].tagOpen = "<style>";
        headTags[0]
            .tagContent = "html{overflow:hidden}body{margin:0;padding:0}";
        headTags[0].tagClose = "</style>";

        bodyTags[0].name = lsb[tokenId].bit > 0
            ? dudeFiles[dude + 20]
            : dudeFiles[dude];
        bodyTags[0].tagType = HTMLTagType.scriptGZIPBase64DataURI;
        bodyTags[0].contractAddress = scriptyStorageAddress;

        bodyTags[1].name = "CypherDudesLayer1";
        bodyTags[1].tagType = HTMLTagType.script;
        bodyTags[1].contractAddress = scriptyStorageAddress;

        bodyTags[2].name = "CypherDudesFonts";
        bodyTags[2].tagType = HTMLTagType.script;
        bodyTags[2].contractAddress = scriptyStorageAddress;

        bodyTags[3].name = layers_2[layer2];
        bodyTags[3].tagType = HTMLTagType.script;
        bodyTags[3].contractAddress = scriptyStorageAddress;

        bodyTags[4].name = cypherdudeScript;
        bodyTags[4].tagType = HTMLTagType.scriptGZIPBase64DataURI;
        bodyTags[4].contractAddress = scriptyStorageAddress;

        bodyTags[5].tagContent = getTokenConstantsScript(tokenId, dude);
        bodyTags[5].tagType = HTMLTagType.script;

        bodyTags[6].tagContent = getCardConstantsScript(tokenId);
        bodyTags[6].tagType = HTMLTagType.script;

        bodyTags[7].name = "gunzipScripts-0.0.1";
        bodyTags[7].tagType = HTMLTagType.script;
        bodyTags[7].contractAddress = scriptyStorageAddress;

        HTMLRequest memory htmlRequest;
        htmlRequest.headTags = headTags;
        htmlRequest.bodyTags = bodyTags;

        bytes memory base64EncodedHTMLDataURI = IScriptyBuilderV2(
            scriptyBuilderAddress
        ).getEncodedHTML(htmlRequest);

        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(
                        getMetadataObject(
                            base64EncodedHTMLDataURI,
                            tokenId,
                            dude,
                            layer2
                        )
                    )
                )
            );
    }

    function getJSONAttributes(
        uint256 tokenId,
        uint256 dude,
        uint256 layer2
    ) internal view returns (string memory) {
        (uint256 seed,uint256 globalProgression,string memory secretWord) = cypherdudesContract.tokenData(tokenId);
        string memory _lsb = lsb[tokenId].bit > 0 ? "01011000 01011000":"01011000 01011001";
        seed >>= 8;
        uint256 layer1 = seed % 11;
        seed >>= 8;
        seed >>= 8;
        uint256 layer3 = dude == 2 || dude == 3 || dude == 8 ? seed % 8 : 8;
        seed >>= 8;
        uint256 bitEnvironment = seed % 9;
        seed >>= 8;
        uint256 bitPalette = seed % 12;

        return
            string(
                abi.encodePacked(
                    '{"trait_type":"Grid Size","value" :"',
                    toString(globalProgression < 97 ? 32 : globalProgression < 193 ? 64 : 128),
                    '"},',
                    '{"trait_type":"Grid Resolution","value" :"',
                    grid_Resolution[((globalProgression - 1) / 32) % 3],
                    '"},',
                    '{"trait_type":"Level Progression","value" :"',
                    toString(globalProgression % 32 == 0 ? 1 : 32 - (globalProgression % 32)),
                    '"},',
                    '{"trait_type":"Action","value" :"',
                    dudeActions[dude],
                    '"},',
                    '{"trait_type":"Layer 1","value" :"',
                    layers_1[layer1],
                    '"},',
                    '{"trait_type":"Layer 2","value" :"',
                    layers_2[layer2],
                    '"},',
                    '{"trait_type":"Layer 3","value" :"',
                    layers_3[layer3],
                    '"},',
                    '{"trait_type":"Secret Word","value" :"',
                    secretWord,
                    '"},',
                    '{"trait_type":"Bit Environment","value" :"',
                    bit_Environment[bitEnvironment],
                    '"},',
                    '{"trait_type":"Bit Palette","value" :"',
                    bit_Palette[bitPalette],
                    '"},',
                    '{"trait_type":"Least Significant Bit","value" :"',
                    _lsb,
                    '"}'
                )
            );
    }

    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    string[] internal grid_Resolution = ["High", "Medium", "Low"];

    string[] internal dudeActions = [
        "Backdoor Dude",
        "Bitruvian Dude",
        "Building Dude",
        "Dude Scrolling", //
        "Fake Dude",
        "Going to Zero Dude",
        "Hashing Dude",
        "Longterm Dude",
        "Over Minting Dude", //
        "Mooning Dude",
        "Pumping Dude",
        "Rabbit Hole Dude",
        "Dude Regulatoors",
        "Eyes on the Charts",
        "Rugged Dude",
        "Scammed Dude",
        "Dude Walking By",
        "Transfer Dude",
        "Follow the Dude",
        "Secret Dude"
    ];
    string[] internal dudeFiles = [
        "Backdoor_Dude",
        "Bitruvian_Dude",
        "Building_Dude",
        "Dude_Scrolling",
        "Fake_Dude",
        "Going_To_Zero_Dude",
        "Hashing_Dude",
        "Longterm_Dude",
        "Over_Minting_Dude",
        "Mooning_Dude",
        "Pumping_Dude",
        "Rabbit_Hole_Dude",
        "Dude_Regulatoors",
        "Eyes_On_The_Chart",
        "Rugged_Dude",
        "Scammed_Dude",
        "Dude_Walking_By",
        "Transfer_Dude",
        "Follow_The_Dude",
        "Secret_Dude",
        "Backdoor_Dude_w",
        "Bitruvian_Dude_w",
        "Building_Dude_w",
        "Dude_Scrolling_w",
        "Fake_Dude_w",
        "Going_To_Zero_Dude_w",
        "Hashing_Dude_w",
        "Longterm_Dude_w",
        "Over_Minting_Dude_w",
        "Mooning_Dude_w",
        "Pumping_Dude_w",
        "Rabbit_Hole_Dude_w",
        "Dude_Regulatoors_w",
        "Eyes_On_The_Chart_w",
        "Rugged_Dude_w",
        "Scammed_Dude_w",
        "Dude_Walking_By_w",
        "Transfer_Dude_w",
        "Follow_The_Dude_w",
        "Secret_Dude_w"
    ];

    string[] internal layers_1 = [
        "Rare_Pepes",
        "CryptoPunks",
        "Coins_Flow",
        "Chart",
        "Moma_Pixels",
        "Pixelmon_Reveal",
        "Crypto_Space",
        "Crypto_Voxel",
        "Circuit_Board",
        "Uniswap",
        "Mooncats"
    ];

    string[] internal layers_2 = [
        "Gas_Wars",
        "PacMan",
        "Hardware_Wallet",
        "Feels_Good_Man",
        "Game_Over",
        "M3t4m4Sk",
        "Promising_Collab",
        "MaxPain",
        "Green_Chart",
        "Press_That_Mint_Button",
        "Trash_Art",
        "none"
    ];

    string[] internal layers_3 = [
        "Rare_Pepes",
        "Chart",
        "Moma_Pixels",
        "Crypto_Space",
        "Crypto_Voxel",
        "Circuit_Board",
        "Uniswap",
        "MaxPain",
        "none"
    ];

    string[] internal bit_Environment = [
        "32 bits",
        "32 bits animated",
        "64 bits",
        "64 bits animated",
        "Who dis ?",
        "Bitcoin genesis block",
        "Data tunnel",
        "Meta Script",
        "The Cypherpunk"
    ];

    string[] internal bit_Palette = [
        "green, white, black",
        "green, black, white",
        "black, green, white",
        "black, green, green",
        "black, white, white",
        "black, white, green",
        "black, fuschia, aqua",
        "black, white, green",
        "blue, red, black",
        "black, red, yellow",
        "blue, yellow, fuschia",
        "black, white, white"
    ];
}

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 15 : 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 4 of 15 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

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

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

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.20;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

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

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

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

File 7 of 15 : File.sol
// SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.20;

struct Content {
    bytes32 checksum;
    address pointer;
}

struct File {
    uint256 size; // content length in bytes, max 24k
    Content[] contents;
}

function read(File memory file) view returns (string memory contents) {
    Content[] memory chunks = file.contents;

    // Adapted from https://gist.github.com/xtremetom/20411eb126aaf35f98c8a8ffa00123cd
    assembly {
        let len := mload(chunks)
        let totalSize := 0x20
        contents := mload(0x40)
        let size
        let chunk
        let pointer

        // loop through all pointer addresses
        // - get content
        // - get address
        // - get data size
        // - get code and add to contents
        // - update total size

        for { let i := 0 } lt(i, len) { i := add(i, 1) } {
            chunk := mload(add(chunks, add(0x20, mul(i, 0x20))))
            pointer := mload(add(chunk, 0x20))

            size := sub(extcodesize(pointer), 1)
            extcodecopy(pointer, add(contents, totalSize), 1, size)
            totalSize := add(totalSize, size)
        }

        // update contents size
        mstore(contents, sub(totalSize, 0x20))
        // store contents
        mstore(0x40, add(contents, and(add(totalSize, 0x1f), not(0x1f))))
    }
}

using {read} for File global;

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

/// @notice Library to encode strings in Base64.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/Base64.sol)
/// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/Base64.sol)
/// @author Modified from (https://github.com/Brechtpd/base64/blob/main/base64.sol) by Brecht Devos - <[email protected]>.
library Base64 {
    /// @dev Encodes `data` using the base64 encoding described in RFC 4648.
    /// See: https://datatracker.ietf.org/doc/html/rfc4648
    /// @param fileSafe  Whether to replace '+' with '-' and '/' with '_'.
    /// @param noPadding Whether to strip away the padding.
    function encode(bytes memory data, bool fileSafe, bool noPadding)
        internal
        pure
        returns (string memory result)
    {
        /// @solidity memory-safe-assembly
        assembly {
            let dataLength := mload(data)

            if dataLength {
                // Multiply by 4/3 rounded up.
                // The `shl(2, ...)` is equivalent to multiplying by 4.
                let encodedLength := shl(2, div(add(dataLength, 2), 3))

                // Set `result` to point to the start of the free memory.
                result := mload(0x40)

                // Store the table into the scratch space.
                // Offsetted by -1 byte so that the `mload` will load the character.
                // We will rewrite the free memory pointer at `0x40` later with
                // the allocated size.
                // The magic constant 0x0230 will translate "-_" + "+/".
                mstore(0x1f, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef")
                mstore(0x3f, sub("ghijklmnopqrstuvwxyz0123456789-_", mul(iszero(fileSafe), 0x0230)))

                // Skip the first slot, which stores the length.
                let ptr := add(result, 0x20)
                let end := add(ptr, encodedLength)

                // Run over the input, 3 bytes at a time.
                for {} 1 {} {
                    data := add(data, 3) // Advance 3 bytes.
                    let input := mload(data)

                    // Write 4 bytes. Optimized for fewer stack operations.
                    mstore8(0, mload(and(shr(18, input), 0x3F)))
                    mstore8(1, mload(and(shr(12, input), 0x3F)))
                    mstore8(2, mload(and(shr(6, input), 0x3F)))
                    mstore8(3, mload(and(input, 0x3F)))
                    mstore(ptr, mload(0x00))

                    ptr := add(ptr, 4) // Advance 4 bytes.
                    if iszero(lt(ptr, end)) { break }
                }
                mstore(0x40, add(end, 0x20)) // Allocate the memory.
                // Equivalent to `o = [0, 2, 1][dataLength % 3]`.
                let o := div(2, mod(dataLength, 3))
                // Offset `ptr` and pad with '='. We can simply write over the end.
                mstore(sub(ptr, o), shl(240, 0x3d3d))
                // Set `o` to zero if there is padding.
                o := mul(iszero(iszero(noPadding)), o)
                mstore(sub(ptr, o), 0) // Zeroize the slot after the string.
                mstore(result, sub(encodedLength, o)) // Store the length.
            }
        }
    }

    /// @dev Encodes `data` using the base64 encoding described in RFC 4648.
    /// Equivalent to `encode(data, false, false)`.
    function encode(bytes memory data) internal pure returns (string memory result) {
        result = encode(data, false, false);
    }

    /// @dev Encodes `data` using the base64 encoding described in RFC 4648.
    /// Equivalent to `encode(data, fileSafe, false)`.
    function encode(bytes memory data, bool fileSafe)
        internal
        pure
        returns (string memory result)
    {
        result = encode(data, fileSafe, false);
    }

    /// @dev Decodes base64 encoded `data`.
    ///
    /// Supports:
    /// - RFC 4648 (both standard and file-safe mode).
    /// - RFC 3501 (63: ',').
    ///
    /// Does not support:
    /// - Line breaks.
    ///
    /// Note: For performance reasons,
    /// this function will NOT revert on invalid `data` inputs.
    /// Outputs for invalid inputs will simply be undefined behaviour.
    /// It is the user's responsibility to ensure that the `data`
    /// is a valid base64 encoded string.
    function decode(string memory data) internal pure returns (bytes memory result) {
        /// @solidity memory-safe-assembly
        assembly {
            let dataLength := mload(data)

            if dataLength {
                let decodedLength := mul(shr(2, dataLength), 3)

                for {} 1 {} {
                    // If padded.
                    if iszero(and(dataLength, 3)) {
                        let t := xor(mload(add(data, dataLength)), 0x3d3d)
                        // forgefmt: disable-next-item
                        decodedLength := sub(
                            decodedLength,
                            add(iszero(byte(30, t)), iszero(byte(31, t)))
                        )
                        break
                    }
                    // If non-padded.
                    decodedLength := add(decodedLength, sub(and(dataLength, 3), 1))
                    break
                }
                result := mload(0x40)

                // Write the length of the bytes.
                mstore(result, decodedLength)

                // Skip the first slot, which stores the length.
                let ptr := add(result, 0x20)
                let end := add(ptr, decodedLength)

                // Load the table into the scratch space.
                // Constants are optimized for smaller bytecode with zero gas overhead.
                // `m` also doubles as the mask of the upper 6 bits.
                let m := 0xfc000000fc00686c7074787c8084888c9094989ca0a4a8acb0b4b8bcc0c4c8cc
                mstore(0x5b, m)
                mstore(0x3b, 0x04080c1014181c2024282c3034383c4044484c5054585c6064)
                mstore(0x1a, 0xf8fcf800fcd0d4d8dce0e4e8ecf0f4)

                for {} 1 {} {
                    // Read 4 bytes.
                    data := add(data, 4)
                    let input := mload(data)

                    // Write 3 bytes.
                    // forgefmt: disable-next-item
                    mstore(ptr, or(
                        and(m, mload(byte(28, input))),
                        shr(6, or(
                            and(m, mload(byte(29, input))),
                            shr(6, or(
                                and(m, mload(byte(30, input))),
                                shr(6, mload(byte(31, input)))
                            ))
                        ))
                    ))
                    ptr := add(ptr, 3)
                    if iszero(lt(ptr, end)) { break }
                }
                mstore(0x40, add(end, 0x20)) // Allocate the memory.
                mstore(end, 0) // Zeroize the slot after the bytes.
                mstore(0x60, 0) // Restore the zero slot.
            }
        }
    }
}

File 9 of 15 : ScriptyCore.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

///////////////////////////////////////////////////////////
// ░██████╗░█████╗░██████╗░██╗██████╗░████████╗██╗░░░██╗ //
// ██╔════╝██╔══██╗██╔══██╗██║██╔══██╗╚══██╔══╝╚██╗░██╔╝ //
// ╚█████╗░██║░░╚═╝██████╔╝██║██████╔╝░░░██║░░░░╚████╔╝░ //
// ░╚═══██╗██║░░██╗██╔══██╗██║██╔═══╝░░░░██║░░░░░╚██╔╝░░ //
// ██████╔╝╚█████╔╝██║░░██║██║██║░░░░░░░░██║░░░░░░██║░░░ //
// ╚═════╝░░╚════╝░╚═╝░░╚═╝╚═╝╚═╝░░░░░░░░╚═╝░░░░░░╚═╝░░░ //
///////////////////////////////////////////////////////////
//░░░░░░░░░░░░░░░░░░░░░░    CORE    ░░░░░░░░░░░░░░░░░░░░░//
///////////////////////////////////////////////////////////

import {HTMLRequest, HTMLTagType, HTMLTag} from "./ScriptyStructs.sol";
import {DynamicBuffer} from "./../utils/DynamicBuffer.sol";
import {IScriptyContractStorage} from "./../interfaces/IScriptyContractStorage.sol";

contract ScriptyCore {
    using DynamicBuffer for bytes;

    // =============================================================
    //                        TAG CONSTANTS
    // =============================================================

    // data:text/html;base64,
    // raw
    // 22 bytes
    bytes public constant DATA_HTML_BASE64_URI_RAW = "data:text/html;base64,";
    // url encoded
    // 21 bytes
    bytes public constant DATA_HTML_URL_SAFE = "data%3Atext%2Fhtml%2C";

    // <html>,
    // raw
    // 6 bytes
    bytes public constant HTML_OPEN_RAW = "<html>";
    // url encoded
    // 10 bytes
    bytes public constant HTML_OPEN_URL_SAFE = "%3Chtml%3E";

    // <head>,
    // raw
    // 6 bytes
    bytes public constant HEAD_OPEN_RAW = "<head>";
    // url encoded
    // 10 bytes
    bytes public constant HEAD_OPEN_URL_SAFE = "%3Chead%3E";

    // </head>,
    // raw
    // 7 bytes
    bytes public constant HEAD_CLOSE_RAW = "</head>";
    // url encoded
    // 13 bytes
    bytes public constant HEAD_CLOSE_URL_SAFE = "%3C%2Fhead%3E";

    // <body>
    // 6 bytes
    bytes public constant BODY_OPEN_RAW = "<body>";
    // url encoded
    // 10 bytes
    bytes public constant BODY_OPEN_URL_SAFE = "%3Cbody%3E";

    // </body></html>
    // 14 bytes
    bytes public constant HTML_BODY_CLOSED_RAW = "</body></html>";
    // 26 bytes
    bytes public constant HTML_BODY_CLOSED_URL_SAFE =
        "%3C%2Fbody%3E%3C%2Fhtml%3E";

    // [RAW]
    // HTML_OPEN + HEAD_OPEN + HEAD_CLOSE + BODY_OPEN + HTML_BODY_CLOSED
    uint256 public constant URLS_RAW_BYTES = 39;

    // [URL_SAFE]
    // DATA_HTML_URL_SAFE + HTML_OPEN + HEAD_OPEN + HEAD_CLOSE + BODY_OPEN + HTML_BODY_CLOSED
    uint256 public constant URLS_SAFE_BYTES = 90;

    // [RAW]
    // HTML_OPEN + HTML_CLOSE
    uint256 public constant HTML_RAW_BYTES = 13;

    // [RAW]
    // HEAD_OPEN + HEAD_CLOSE
    uint256 public constant HEAD_RAW_BYTES = 13;

    // [RAW]
    // BODY_OPEN + BODY_CLOSE
    uint256 public constant BODY_RAW_BYTES = 13;

    // All raw
    // HTML_RAW_BYTES + HEAD_RAW_BYTES + BODY_RAW_BYTES
    uint256 public constant RAW_BYTES = 39;

    // [URL_SAFE]
    // HTML_OPEN + HTML_CLOSE
    uint256 public constant HTML_URL_SAFE_BYTES = 23;

    // [URL_SAFE]
    // HEAD_OPEN + HEAD_CLOSE
    uint256 public constant HEAD_URL_SAFE_BYTES = 23;

    // [URL_SAFE]
    // BODY_OPEN + BODY_CLOSE
    uint256 public constant BODY_SAFE_BYTES = 23;

    // All url safe
    // HTML_URL_SAFE_BYTES + HEAD_URL_SAFE_BYTES + BODY_URL_SAFE_BYTES
    // %3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E
    uint256 public constant URL_SAFE_BYTES = 69;

    // data:text/html;base64,
    uint256 public constant HTML_BASE64_DATA_URI_BYTES = 22;

    // =============================================================
    //                    TAG OPEN CLOSE TEMPLATES
    // =============================================================

    /**
     * @notice Grab tag open and close depending on tag type
     * @dev
     *      tagType: 0/HTMLTagType.useTagOpenAndClose or any other:
     *          [tagOpen][CONTENT][tagClose]
     *
     *      tagType: 1/HTMLTagType.script:
     *          <script>[SCRIPT]</script>
     *
     *      tagType: 2/HTMLTagType.scriptBase64DataURI:
     *          <script src="data:text/javascript;base64,[SCRIPT]"></script>
     *
     *      tagType: 3/HTMLTagType.scriptGZIPBase64DataURI:
     *          <script type="text/javascript+gzip" src="data:text/javascript;base64,[SCRIPT]"></script>
     *
     *      tagType: 4/HTMLTagType.scriptPNGBase64DataURI
     *          <script type="text/javascript+png" name="[NAME]" src="data:text/javascript;base64,[SCRIPT]"></script>
     *
     *      [IMPORTANT NOTE]: The tags `text/javascript+gzip` and `text/javascript+png` are used to identify scripts
     *      during decompression
     *
     * @param htmlTag - HTMLTag data for code
     * @return (tagOpen, tagClose) - Tag open and close as a tuple
     */
    function tagOpenCloseForHTMLTag(
        HTMLTag memory htmlTag
    ) public pure returns (bytes memory, bytes memory) {
        if (htmlTag.tagType == HTMLTagType.script) {
            return ("<script>", "</script>");
        } else if (htmlTag.tagType == HTMLTagType.scriptBase64DataURI) {
            return ('<script src="data:text/javascript;base64,', '"></script>');
        } else if (htmlTag.tagType == HTMLTagType.scriptGZIPBase64DataURI) {
            return (
                '<script type="text/javascript+gzip" src="data:text/javascript;base64,',
                '"></script>'
            );
        } else if (htmlTag.tagType == HTMLTagType.scriptPNGBase64DataURI) {
            return (
                '<script type="text/javascript+png" src="data:text/javascript;base64,',
                '"></script>'
            );
        }
        return (htmlTag.tagOpen, htmlTag.tagClose);
    }

    /**
     * @notice Grab URL safe tag open and close depending on tag type
     * @dev
     *      tagType: 0/HTMLTagType.useTagOpenAndClose or any other:
     *          [tagOpen][scriptContent or scriptFromContract][tagClose]
     *
     *      tagType: 1/HTMLTagType.script:
     *      tagType: 2/HTMLTagType.scriptBase64DataURI:
     *          <script src="data:text/javascript;base64,[SCRIPT]"></script>
     *
     *      tagType: 3/HTMLTagType.scriptGZIPBase64DataURI:
     *          <script type="text/javascript+gzip" src="data:text/javascript;base64,[SCRIPT]"></script>
     *
     *      tagType: 4/HTMLTagType.scriptPNGBase64DataURI
     *          <script type="text/javascript+png" name="[NAME]" src="data:text/javascript;base64,[SCRIPT]"></script>
     *
     *      [IMPORTANT NOTE]: The tags `text/javascript+gzip` and `text/javascript+png` are used to identify scripts
     *      during decompression
     *
     * @param htmlTag - HTMLTag data for code
     * @return (tagOpen, tagClose) - Tag open and close as a tuple
     */
    function tagOpenCloseForHTMLTagURLSafe(
        HTMLTag memory htmlTag
    ) public pure returns (bytes memory, bytes memory) {
        if (
            htmlTag.tagType == HTMLTagType.script ||
            htmlTag.tagType == HTMLTagType.scriptBase64DataURI
        ) {
            // <script src="data:text/javascript;base64,
            // "></script>
            return (
                "%253Cscript%2520src%253D%2522data%253Atext%252Fjavascript%253Bbase64%252C",
                "%2522%253E%253C%252Fscript%253E"
            );
        } else if (htmlTag.tagType == HTMLTagType.scriptGZIPBase64DataURI) {
            // <script type="text/javascript+gzip" src="data:text/javascript;base64,
            // "></script>
            return (
                "%253Cscript%2520type%253D%2522text%252Fjavascript%252Bgzip%2522%2520src%253D%2522data%253Atext%252Fjavascript%253Bbase64%252C",
                "%2522%253E%253C%252Fscript%253E"
            );
        } else if (htmlTag.tagType == HTMLTagType.scriptPNGBase64DataURI) {
            // <script type="text/javascript+png" src="data:text/javascript;base64,
            // "></script>
            return (
                "%253Cscript%2520type%253D%2522text%252Fjavascript%252Bpng%2522%2520src%253D%2522data%253Atext%252Fjavascript%253Bbase64%252C",
                "%2522%253E%253C%252Fscript%253E"
            );
        }
        return (htmlTag.tagOpen, htmlTag.tagClose);
    }

    // =============================================================
    //                      TAG CONTENT FETCHER
    // =============================================================

    /**
     * @notice Grabs requested tag content from storage
     * @dev
     *      If given HTMLTag contains non empty contractAddress
     *      this method will fetch the content from given storage
     *      contract. Otherwise, it will return the tagContent
     *      from the given htmlTag.
     *
     * @param htmlTag - HTMLTag
     */
    function fetchTagContent(
        HTMLTag memory htmlTag
    ) public view returns (bytes memory) {
        if (htmlTag.contractAddress != address(0)) {
            return
                IScriptyContractStorage(htmlTag.contractAddress).getContent(
                    htmlTag.name,
                    htmlTag.contractData
                );
        }
        return htmlTag.tagContent;
    }

    // =============================================================
    //                        SIZE OPERATIONS
    // =============================================================

    /**
     * @notice Calculate the buffer size post base64 encoding
     * @param value - Starting buffer size
     * @return Final buffer size as uint256
     */
    function sizeForBase64Encoding(
        uint256 value
    ) public pure returns (uint256) {
        unchecked {
            return 4 * ((value + 2) / 3);
        }
    }

    /**
     * @notice Adds the required tag open/close and calculates buffer size of tags
     * @dev Effectively multiple functions bundled into one as this saves gas
     * @param htmlTags - Array of HTMLTag
     * @param isURLSafe - Bool to handle tag content/open/close encoding
     * @return Total buffersize of updated HTMLTags
     */
    function _enrichHTMLTags(
        HTMLTag[] memory htmlTags,
        bool isURLSafe
    ) internal view returns (uint256) {
        if (htmlTags.length == 0) {
            return 0;
        }

        bytes memory tagOpen;
        bytes memory tagClose;
        bytes memory tagContent;

        uint256 totalSize;
        uint256 length = htmlTags.length;
        uint256 i;

        unchecked {
            do {
                tagContent = fetchTagContent(htmlTags[i]);
                htmlTags[i].tagContent = tagContent;

                if (isURLSafe && htmlTags[i].tagType == HTMLTagType.script) {
                    totalSize += sizeForBase64Encoding(tagContent.length);
                } else {
                    totalSize += tagContent.length;
                }

                if (isURLSafe) {
                    (tagOpen, tagClose) = tagOpenCloseForHTMLTagURLSafe(
                        htmlTags[i]
                    );
                } else {
                    (tagOpen, tagClose) = tagOpenCloseForHTMLTag(htmlTags[i]);
                }

                htmlTags[i].tagOpen = tagOpen;
                htmlTags[i].tagClose = tagClose;

                totalSize += tagOpen.length;
                totalSize += tagClose.length;
            } while (++i < length);
        }
        return totalSize;
    }

    // =============================================================
    //                     HTML CONCATENATION
    // =============================================================

    /**
     * @notice Append tags to the html buffer for tags
     * @param htmlFile - bytes buffer
     * @param htmlTags - Tags being added to buffer
     * @param base64EncodeTagContent - Bool to handle tag content encoding
     */
    function _appendHTMLTags(
        bytes memory htmlFile,
        HTMLTag[] memory htmlTags,
        bool base64EncodeTagContent
    ) internal pure {
        uint256 i;
        unchecked {
            do {
                _appendHTMLTag(htmlFile, htmlTags[i], base64EncodeTagContent);
            } while (++i < htmlTags.length);
        }
    }

    /**
     * @notice Append tag to the html buffer
     * @param htmlFile - bytes buffer
     * @param htmlTag - Request being added to buffer
     * @param base64EncodeTagContent - Bool to handle tag content encoding
     */
    function _appendHTMLTag(
        bytes memory htmlFile,
        HTMLTag memory htmlTag,
        bool base64EncodeTagContent
    ) internal pure {
        htmlFile.appendSafe(htmlTag.tagOpen);
        if (base64EncodeTagContent) {
            htmlFile.appendSafeBase64(htmlTag.tagContent, false, false);
        } else {
            htmlFile.appendSafe(htmlTag.tagContent);
        }
        htmlFile.appendSafe(htmlTag.tagClose);
    }
}

File 10 of 15 : ScriptyStructs.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

///////////////////////////////////////////////////////////
// ░██████╗░█████╗░██████╗░██╗██████╗░████████╗██╗░░░██╗ //
// ██╔════╝██╔══██╗██╔══██╗██║██╔══██╗╚══██╔══╝╚██╗░██╔╝ //
// ╚█████╗░██║░░╚═╝██████╔╝██║██████╔╝░░░██║░░░░╚████╔╝░ //
// ░╚═══██╗██║░░██╗██╔══██╗██║██╔═══╝░░░░██║░░░░░╚██╔╝░░ //
// ██████╔╝╚█████╔╝██║░░██║██║██║░░░░░░░░██║░░░░░░██║░░░ //
// ╚═════╝░░╚════╝░╚═╝░░╚═╝╚═╝╚═╝░░░░░░░░╚═╝░░░░░░╚═╝░░░ //
///////////////////////////////////////////////////////////
//░░░░░░░░░░░░░░░░░░░    REQUESTS    ░░░░░░░░░░░░░░░░░░░░//
///////////////////////////////////////////////////////////

struct HTMLRequest {
    HTMLTag[] headTags;
    HTMLTag[] bodyTags;
}

enum HTMLTagType {
    useTagOpenAndClose,
    script,
    scriptBase64DataURI,
    scriptGZIPBase64DataURI,
    scriptPNGBase64DataURI
}

struct HTMLTag {
    string name;
    address contractAddress;
    bytes contractData;
    HTMLTagType tagType;
    bytes tagOpen;
    bytes tagClose;
    bytes tagContent;
}

File 11 of 15 : IScriptyBuilderV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

///////////////////////////////////////////////////////////
// ░██████╗░█████╗░██████╗░██╗██████╗░████████╗██╗░░░██╗ //
// ██╔════╝██╔══██╗██╔══██╗██║██╔══██╗╚══██╔══╝╚██╗░██╔╝ //
// ╚█████╗░██║░░╚═╝██████╔╝██║██████╔╝░░░██║░░░░╚████╔╝░ //
// ░╚═══██╗██║░░██╗██╔══██╗██║██╔═══╝░░░░██║░░░░░╚██╔╝░░ //
// ██████╔╝╚█████╔╝██║░░██║██║██║░░░░░░░░██║░░░░░░██║░░░ //
// ╚═════╝░░╚════╝░╚═╝░░╚═╝╚═╝╚═╝░░░░░░░░╚═╝░░░░░░╚═╝░░░ //
///////////////////////////////////////////////////////////

/**
  @title A generic HTML builder that fetches and assembles given JS requests.
  @author @0xthedude
  @author @xtremetom

  Special thanks to @cxkoda and @frolic
*/

import "./IScriptyHTML.sol";
import "./IScriptyHTMLURLSafe.sol";

interface IScriptyBuilderV2 is IScriptyHTML, IScriptyHTMLURLSafe {}

File 12 of 15 : IScriptyContractStorage.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;

///////////////////////////////////////////////////////////
// ░██████╗░█████╗░██████╗░██╗██████╗░████████╗██╗░░░██╗ //
// ██╔════╝██╔══██╗██╔══██╗██║██╔══██╗╚══██╔══╝╚██╗░██╔╝ //
// ╚█████╗░██║░░╚═╝██████╔╝██║██████╔╝░░░██║░░░░╚████╔╝░ //
// ░╚═══██╗██║░░██╗██╔══██╗██║██╔═══╝░░░░██║░░░░░╚██╔╝░░ //
// ██████╔╝╚█████╔╝██║░░██║██║██║░░░░░░░░██║░░░░░░██║░░░ //
// ╚═════╝░░╚════╝░╚═╝░░╚═╝╚═╝╚═╝░░░░░░░░╚═╝░░░░░░╚═╝░░░ //
///////////////////////////////////////////////////////////

interface IScriptyContractStorage {
    // =============================================================
    //                            GETTERS
    // =============================================================

    /**
     * @notice Get the full content
     * @param name - Name given to the script. Eg: threejs.min.js_r148
     * @param data - Arbitrary data to be passed to storage
     * @return script - Full script from merged chunks
     */
    function getContent(string calldata name, bytes memory data)
        external
        view
        returns (bytes memory script);
}

File 13 of 15 : IScriptyHTML.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;

///////////////////////////////////////////////////////////
// ░██████╗░█████╗░██████╗░██╗██████╗░████████╗██╗░░░██╗ //
// ██╔════╝██╔══██╗██╔══██╗██║██╔══██╗╚══██╔══╝╚██╗░██╔╝ //
// ╚█████╗░██║░░╚═╝██████╔╝██║██████╔╝░░░██║░░░░╚████╔╝░ //
// ░╚═══██╗██║░░██╗██╔══██╗██║██╔═══╝░░░░██║░░░░░╚██╔╝░░ //
// ██████╔╝╚█████╔╝██║░░██║██║██║░░░░░░░░██║░░░░░░██║░░░ //
// ╚═════╝░░╚════╝░╚═╝░░╚═╝╚═╝╚═╝░░░░░░░░╚═╝░░░░░░╚═╝░░░ //
///////////////////////////////////////////////////////////

import {HTMLRequest, HTMLTagType, HTMLTag} from "./../core/ScriptyCore.sol";

interface IScriptyHTML {
    // =============================================================
    //                      RAW HTML GETTERS
    // =============================================================

    /**
     * @notice  Get HTML with requested head tags and body tags
     * @dev Your HTML is returned in the following format:
     *      <html>
     *          <head>
     *              [tagOpen[0]][contractRequest[0] | tagContent[0]][tagClose[0]]
     *              [tagOpen[1]][contractRequest[0] | tagContent[1]][tagClose[1]]
     *              ...
     *              [tagOpen[n]][contractRequest[0] | tagContent[n]][tagClose[n]]
     *          </head>
     *          <body>
     *              [tagOpen[0]][contractRequest[0] | tagContent[0]][tagClose[0]]
     *              [tagOpen[1]][contractRequest[0] | tagContent[1]][tagClose[1]]
     *              ...
     *              [tagOpen[n]][contractRequest[0] | tagContent[n]][tagClose[n]]
     *          </body>
     *      </html>
     * @param htmlRequest - HTMLRequest
     * @return Full HTML with head and body tags
     */
    function getHTML(
        HTMLRequest memory htmlRequest
    ) external view returns (bytes memory);

    // =============================================================
    //                      ENCODED HTML GETTERS
    // =============================================================

    /**
     * @notice Get {getHTML} and base64 encode it
     * @param htmlRequest - HTMLRequest
     * @return Full HTML with head and script tags, base64 encoded
     */
    function getEncodedHTML(
        HTMLRequest memory htmlRequest
    ) external view returns (bytes memory);

    // =============================================================
    //                      STRING UTILITIES
    // =============================================================

    /**
     * @notice Convert {getHTML} output to a string
     * @param htmlRequest - HTMLRequest
     * @return {getHTMLWrapped} as a string
     */
    function getHTMLString(
        HTMLRequest memory htmlRequest
    ) external view returns (string memory);

    /**
     * @notice Convert {getEncodedHTML} output to a string
     * @param htmlRequest - HTMLRequest
     * @return {getEncodedHTML} as a string
     */
    function getEncodedHTMLString(
        HTMLRequest memory htmlRequest
    ) external view returns (string memory);
}

File 14 of 15 : IScriptyHTMLURLSafe.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.22;

///////////////////////////////////////////////////////////
// ░██████╗░█████╗░██████╗░██╗██████╗░████████╗██╗░░░██╗ //
// ██╔════╝██╔══██╗██╔══██╗██║██╔══██╗╚══██╔══╝╚██╗░██╔╝ //
// ╚█████╗░██║░░╚═╝██████╔╝██║██████╔╝░░░██║░░░░╚████╔╝░ //
// ░╚═══██╗██║░░██╗██╔══██╗██║██╔═══╝░░░░██║░░░░░╚██╔╝░░ //
// ██████╔╝╚█████╔╝██║░░██║██║██║░░░░░░░░██║░░░░░░██║░░░ //
// ╚═════╝░░╚════╝░╚═╝░░╚═╝╚═╝╚═╝░░░░░░░░╚═╝░░░░░░╚═╝░░░ //
///////////////////////////////////////////////////////////

import {HTMLRequest, HTMLTagType, HTMLTag} from "./../core/ScriptyCore.sol";

interface IScriptyHTMLURLSafe {
    // =============================================================
    //                      RAW HTML GETTERS
    // =============================================================

    /**
     * @notice  Get URL safe HTML with requested head tags and body tags
     * @dev Any tags with tagType = 1/script are converted to base64 and wrapped
     *      with <script src="data:text/javascript;base64,[SCRIPT]"></script>
     *
     *      [WARNING]: Large non-base64 libraries that need base64 encoding
     *      carry a high risk of causing a gas out. Highly advised the use
     *      of base64 encoded scripts where possible
     *
     *      Your HTML is returned in the following format:
     *
     *      <html>
     *          <head>
     *              [tagOpen[0]][contractRequest[0] | tagContent[0]][tagClose[0]]
     *              [tagOpen[1]][contractRequest[0] | tagContent[1]][tagClose[1]]
     *              ...
     *              [tagOpen[n]][contractRequest[0] | tagContent[n]][tagClose[n]]
     *          </head>
     *          <body>
     *              [tagOpen[0]][contractRequest[0] | tagContent[0]][tagClose[0]]
     *              [tagOpen[1]][contractRequest[0] | tagContent[1]][tagClose[1]]
     *              ...
     *              [tagOpen[n]][contractRequest[0] | tagContent[n]][tagClose[n]]
     *          </body>
     *      </html>
     * @param htmlRequest - HTMLRequest
     * @return Full HTML with head and body tags
     */
    function getHTMLURLSafe(
        HTMLRequest memory htmlRequest
    ) external view returns (bytes memory);

    // =============================================================
    //                      STRING UTILITIES
    // =============================================================

    /**
     * @notice Convert {getHTMLURLSafe} output to a string
     * @param htmlRequest - HTMLRequest
     * @return {getHTMLURLSafe} as a string
     */
    function getHTMLURLSafeString(
        HTMLRequest memory htmlRequest
    ) external view returns (string memory);
}

File 15 of 15 : DynamicBuffer.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)

pragma solidity ^0.8.22;

/// @title DynamicBuffer
/// @author David Huber (@cxkoda) and Simon Fremaux (@dievardump). See also
///         https://raw.githubusercontent.com/dievardump/solidity-dynamic-buffer
/// @notice This library is used to allocate a big amount of container memory
//          which will be subsequently filled without needing to reallocate
///         memory.
/// @dev First, allocate memory.
///      Then use `buffer.appendUnchecked(theBytes)` or `appendSafe()` if
///      bounds checking is required.
library DynamicBuffer {
    /// @notice Allocates container space for the DynamicBuffer
    /// @param capacity_ The intended max amount of bytes in the buffer
    /// @return buffer The memory location of the buffer
    /// @dev Allocates `capacity_ + 0x60` bytes of space
    ///      The buffer array starts at the first container data position,
    ///      (i.e. `buffer = container + 0x20`)
    function allocate(uint256 capacity_)
        internal
        pure
        returns (bytes memory buffer)
    {
        assembly {
            // Get next-free memory address
            let container := mload(0x40)

            // Allocate memory by setting a new next-free address
            {
                // Add 2 x 32 bytes in size for the two length fields
                // Add 32 bytes safety space for 32B chunked copy
                let size := add(capacity_, 0x60)
                let newNextFree := add(container, size)
                mstore(0x40, newNextFree)
            }

            // Set the correct container length
            {
                let length := add(capacity_, 0x40)
                mstore(container, length)
            }

            // The buffer starts at idx 1 in the container (0 is length)
            buffer := add(container, 0x20)

            // Init content with length 0
            mstore(buffer, 0)
        }

        return buffer;
    }

    /// @notice Appends data to buffer, and update buffer length
    /// @param buffer the buffer to append the data to
    /// @param data the data to append
    /// @dev Does not perform out-of-bound checks (container capacity)
    ///      for efficiency.
    function appendUnchecked(bytes memory buffer, bytes memory data)
        internal
        pure
    {
        assembly {
            let length := mload(data)
            for {
                data := add(data, 0x20)
                let dataEnd := add(data, length)
                let copyTo := add(buffer, add(mload(buffer), 0x20))
            } lt(data, dataEnd) {
                data := add(data, 0x20)
                copyTo := add(copyTo, 0x20)
            } {
                // Copy 32B chunks from data to buffer.
                // This may read over data array boundaries and copy invalid
                // bytes, which doesn't matter in the end since we will
                // later set the correct buffer length, and have allocated an
                // additional word to avoid buffer overflow.
                mstore(copyTo, mload(data))
            }

            // Update buffer length
            mstore(buffer, add(mload(buffer), length))
        }
    }

    /// @notice Appends data to buffer, and update buffer length
    /// @param buffer the buffer to append the data to
    /// @param data the data to append
    /// @dev Performs out-of-bound checks and calls `appendUnchecked`.
    function appendSafe(bytes memory buffer, bytes memory data) internal pure {
        checkOverflow(buffer, data.length);
        appendUnchecked(buffer, data);
    }

    /// @notice Appends data encoded as Base64 to buffer.
    /// @param fileSafe  Whether to replace '+' with '-' and '/' with '_'.
    /// @param noPadding Whether to strip away the padding.
    /// @dev Encodes `data` using the base64 encoding described in RFC 4648.
    /// See: https://datatracker.ietf.org/doc/html/rfc4648
    /// Author: Modified from Solady (https://github.com/vectorized/solady/blob/main/src/utils/Base64.sol)
    /// Author: Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/Base64.sol)
    /// Author: Modified from (https://github.com/Brechtpd/base64/blob/main/base64.sol) by Brecht Devos.
    function appendSafeBase64(
        bytes memory buffer,
        bytes memory data,
        bool fileSafe,
        bool noPadding
    ) internal pure {
        uint256 dataLength = data.length;

        if (data.length == 0) {
            return;
        }

        uint256 encodedLength;
        uint256 r;
        assembly {
            // For each 3 bytes block, we will have 4 bytes in the base64
            // encoding: `encodedLength = 4 * divCeil(dataLength, 3)`.
            // The `shl(2, ...)` is equivalent to multiplying by 4.
            encodedLength := shl(2, div(add(dataLength, 2), 3))

            r := mod(dataLength, 3)
            if noPadding {
                // if r == 0 => no modification
                // if r == 1 => encodedLength -= 2
                // if r == 2 => encodedLength -= 1
                encodedLength := sub(
                    encodedLength,
                    add(iszero(iszero(r)), eq(r, 1))
                )
            }
        }

        checkOverflow(buffer, encodedLength);

        assembly {
            let nextFree := mload(0x40)

            // Store the table into the scratch space.
            // Offsetted by -1 byte so that the `mload` will load the character.
            // We will rewrite the free memory pointer at `0x40` later with
            // the allocated size.
            mstore(0x1f, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef")
            mstore(
                0x3f,
                sub(
                    "ghijklmnopqrstuvwxyz0123456789-_",
                    // The magic constant 0x0230 will translate "-_" + "+/".
                    mul(iszero(fileSafe), 0x0230)
                )
            )

            // Skip the first slot, which stores the length.
            let ptr := add(add(buffer, 0x20), mload(buffer))
            let end := add(data, dataLength)

            // Run over the input, 3 bytes at a time.
            // prettier-ignore
            // solhint-disable-next-line no-empty-blocks
            for {} 1 {} {
                    data := add(data, 3) // Advance 3 bytes.
                    let input := mload(data)

                    // Write 4 bytes. Optimized for fewer stack operations.
                    mstore8(    ptr    , mload(and(shr(18, input), 0x3F)))
                    mstore8(add(ptr, 1), mload(and(shr(12, input), 0x3F)))
                    mstore8(add(ptr, 2), mload(and(shr( 6, input), 0x3F)))
                    mstore8(add(ptr, 3), mload(and(        input , 0x3F)))
                    
                    ptr := add(ptr, 4) // Advance 4 bytes.
                    // prettier-ignore
                    if iszero(lt(data, end)) { break }
                }

            if iszero(noPadding) {
                // Offset `ptr` and pad with '='. We can simply write over the end.
                mstore8(sub(ptr, iszero(iszero(r))), 0x3d) // Pad at `ptr - 1` if `r > 0`.
                mstore8(sub(ptr, shl(1, eq(r, 1))), 0x3d) // Pad at `ptr - 2` if `r == 1`.
            }

            mstore(buffer, add(mload(buffer), encodedLength))
            mstore(0x40, nextFree)
        }
    }

    /// @notice Appends data encoded as Base64 to buffer.
    /// @param fileSafe  Whether to replace '+' with '-' and '/' with '_'.
    /// @param noPadding Whether to strip away the padding.
    /// @dev Encodes `data` using the base64 encoding described in RFC 4648.
    /// See: https://datatracker.ietf.org/doc/html/rfc4648
    /// Author: Modified from Solady (https://github.com/vectorized/solady/blob/main/src/utils/Base64.sol)
    /// Author: Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/utils/Base64.sol)
    /// Author: Modified from (https://github.com/Brechtpd/base64/blob/main/base64.sol) by Brecht Devos.
    function appendUncheckedBase64(
        bytes memory buffer,
        bytes memory data,
        bool fileSafe,
        bool noPadding
    ) internal pure {
        uint256 dataLength = data.length;

        if (data.length == 0) {
            return;
        }

        uint256 encodedLength;
        uint256 r;
        assembly {
            // For each 3 bytes block, we will have 4 bytes in the base64
            // encoding: `encodedLength = 4 * divCeil(dataLength, 3)`.
            // The `shl(2, ...)` is equivalent to multiplying by 4.
            encodedLength := shl(2, div(add(dataLength, 2), 3))

            r := mod(dataLength, 3)
            if noPadding {
                // if r == 0 => no modification
                // if r == 1 => encodedLength -= 2
                // if r == 2 => encodedLength -= 1
                encodedLength := sub(
                    encodedLength,
                    add(iszero(iszero(r)), eq(r, 1))
                )
            }
        }

        assembly {
            let nextFree := mload(0x40)

            // Store the table into the scratch space.
            // Offsetted by -1 byte so that the `mload` will load the character.
            // We will rewrite the free memory pointer at `0x40` later with
            // the allocated size.
            mstore(0x1f, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef")
            mstore(
                0x3f,
                sub(
                    "ghijklmnopqrstuvwxyz0123456789-_",
                    // The magic constant 0x0230 will translate "-_" + "+/".
                    mul(iszero(fileSafe), 0x0230)
                )
            )

            // Skip the first slot, which stores the length.
            let ptr := add(add(buffer, 0x20), mload(buffer))
            let end := add(data, dataLength)

            // Run over the input, 3 bytes at a time.
            // prettier-ignore
            // solhint-disable-next-line no-empty-blocks
            for {} 1 {} {
                    data := add(data, 3) // Advance 3 bytes.
                    let input := mload(data)

                    // Write 4 bytes. Optimized for fewer stack operations.
                    mstore8(    ptr    , mload(and(shr(18, input), 0x3F)))
                    mstore8(add(ptr, 1), mload(and(shr(12, input), 0x3F)))
                    mstore8(add(ptr, 2), mload(and(shr( 6, input), 0x3F)))
                    mstore8(add(ptr, 3), mload(and(        input , 0x3F)))
                    
                    ptr := add(ptr, 4) // Advance 4 bytes.
                    // prettier-ignore
                    if iszero(lt(data, end)) { break }
                }

            if iszero(noPadding) {
                // Offset `ptr` and pad with '='. We can simply write over the end.
                mstore8(sub(ptr, iszero(iszero(r))), 0x3d) // Pad at `ptr - 1` if `r > 0`.
                mstore8(sub(ptr, shl(1, eq(r, 1))), 0x3d) // Pad at `ptr - 2` if `r == 1`.
            }

            mstore(buffer, add(mload(buffer), encodedLength))
            mstore(0x40, nextFree)
        }
    }

    /// @notice Returns the capacity of a given buffer.
    function capacity(bytes memory buffer) internal pure returns (uint256) {
        uint256 cap;
        assembly {
            cap := sub(mload(sub(buffer, 0x20)), 0x40)
        }
        return cap;
    }

    /// @notice Reverts if the buffer will overflow after appending a given
    /// number of bytes.
    function checkOverflow(bytes memory buffer, uint256 addedLength)
        internal
        pure
    {
        uint256 cap = capacity(buffer);
        uint256 newLength = buffer.length + addedLength;
        if (cap < newLength) {
            revert("DynamicBuffer: Appending out of bounds.");
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_scriptyBuilderAddress","type":"address"},{"internalType":"address","name":"_scriptyStorageAddress","type":"address"},{"internalType":"address","name":"filestore_","type":"address"},{"internalType":"string","name":"baseImageURI_","type":"string"},{"internalType":"string","name":"website_","type":"string"},{"internalType":"string","name":"cypherdudeScript_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"length","type":"uint256"}],"name":"StringsInsufficientHexLength","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"baseImageURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cypherdudeScript","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cypherdudesContract","outputs":[{"internalType":"contract ICypherDudes","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fileStore","outputs":[{"internalType":"contract ICypherdudesFileStore","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lsb","outputs":[{"internalType":"uint256","name":"bit","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"scriptyBuilderAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"scriptyStorageAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseImageURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"script","type":"string"}],"name":"setCypherdudeScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fileStore","type":"address"}],"name":"setFileStoreContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"url","type":"string"}],"name":"setWebsite","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_cypherdudesContract","type":"address"}],"name":"setcypherdudesContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_bit","type":"uint256"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"switchLSB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"website","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]

60c060405260405180606001604052806040518060400160405280600481526020017f486967680000000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f4d656469756d000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600381526020017f4c6f7700000000000000000000000000000000000000000000000000000000008152508152506007906003620000d092919062001e11565b506040518061028001604052806040518060400160405280600d81526020017f4261636b646f6f7220447564650000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f42697472757669616e204475646500000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f4275696c64696e6720447564650000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f44756465205363726f6c6c696e6700000000000000000000000000000000000081525081526020016040518060400160405280600981526020017f46616b652044756465000000000000000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f476f696e6720746f205a65726f2044756465000000000000000000000000000081525081526020016040518060400160405280600c81526020017f48617368696e672044756465000000000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f4c6f6e677465726d20447564650000000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f4f766572204d696e74696e67204475646500000000000000000000000000000081525081526020016040518060400160405280600c81526020017f4d6f6f6e696e672044756465000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f50756d70696e672044756465000000000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f52616262697420486f6c6520447564650000000000000000000000000000000081525081526020016040518060400160405280601081526020017f4475646520526567756c61746f6f72730000000000000000000000000000000081525081526020016040518060400160405280601281526020017f45796573206f6e2074686520436861727473000000000000000000000000000081525081526020016040518060400160405280600b81526020017f527567676564204475646500000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f5363616d6d65642044756465000000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f447564652057616c6b696e67204279000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f5472616e7366657220447564650000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f466f6c6c6f77207468652044756465000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f536563726574204475646500000000000000000000000000000000000000000081525081525060089060146200058992919062001e71565b506040518061050001604052806040518060400160405280600d81526020017f4261636b646f6f725f447564650000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f42697472757669616e5f4475646500000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f4275696c64696e675f447564650000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f447564655f5363726f6c6c696e6700000000000000000000000000000000000081525081526020016040518060400160405280600981526020017f46616b655f44756465000000000000000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f476f696e675f546f5f5a65726f5f44756465000000000000000000000000000081525081526020016040518060400160405280600c81526020017f48617368696e675f44756465000000000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f4c6f6e677465726d5f447564650000000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f4f7665725f4d696e74696e675f4475646500000000000000000000000000000081525081526020016040518060400160405280600c81526020017f4d6f6f6e696e675f44756465000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f50756d70696e675f44756465000000000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f5261626269745f486f6c655f447564650000000000000000000000000000000081525081526020016040518060400160405280601081526020017f447564655f526567756c61746f6f72730000000000000000000000000000000081525081526020016040518060400160405280601181526020017f457965735f4f6e5f5468655f436861727400000000000000000000000000000081525081526020016040518060400160405280600b81526020017f5275676765645f4475646500000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f5363616d6d65645f44756465000000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f447564655f57616c6b696e675f4279000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f5472616e736665725f447564650000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f466f6c6c6f775f5468655f44756465000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f5365637265745f4475646500000000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f4261636b646f6f725f447564655f77000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f42697472757669616e5f447564655f770000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f4275696c64696e675f447564655f77000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f447564655f5363726f6c6c696e675f770000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f46616b655f447564655f7700000000000000000000000000000000000000000081525081526020016040518060400160405280601481526020017f476f696e675f546f5f5a65726f5f447564655f7700000000000000000000000081525081526020016040518060400160405280600e81526020017f48617368696e675f447564655f7700000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f4c6f6e677465726d5f447564655f77000000000000000000000000000000000081525081526020016040518060400160405280601381526020017f4f7665725f4d696e74696e675f447564655f770000000000000000000000000081525081526020016040518060400160405280600e81526020017f4d6f6f6e696e675f447564655f7700000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f50756d70696e675f447564655f7700000000000000000000000000000000000081525081526020016040518060400160405280601281526020017f5261626269745f486f6c655f447564655f77000000000000000000000000000081525081526020016040518060400160405280601281526020017f447564655f526567756c61746f6f72735f77000000000000000000000000000081525081526020016040518060400160405280601381526020017f457965735f4f6e5f5468655f43686172745f770000000000000000000000000081525081526020016040518060400160405280600d81526020017f5275676765645f447564655f770000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f5363616d6d65645f447564655f7700000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f447564655f57616c6b696e675f42795f7700000000000000000000000000000081525081526020016040518060400160405280600f81526020017f5472616e736665725f447564655f77000000000000000000000000000000000081525081526020016040518060400160405280601181526020017f466f6c6c6f775f5468655f447564655f7700000000000000000000000000000081525081526020016040518060400160405280600d81526020017f5365637265745f447564655f7700000000000000000000000000000000000000815250815250600990602862000ede92919062001ed1565b506040518061016001604052806040518060400160405280600a81526020017f526172655f50657065730000000000000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f43727970746f50756e6b7300000000000000000000000000000000000000000081525081526020016040518060400160405280600a81526020017f436f696e735f466c6f770000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f436861727400000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f4d6f6d615f506978656c7300000000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f506978656c6d6f6e5f52657665616c000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f43727970746f5f5370616365000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f43727970746f5f566f78656c000000000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f436972637569745f426f6172640000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f556e69737761700000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600881526020017f4d6f6f6e63617473000000000000000000000000000000000000000000000000815250815250600a90600b6200118492919062001f31565b506040518061018001604052806040518060400160405280600881526020017f4761735f5761727300000000000000000000000000000000000000000000000081525081526020016040518060400160405280600681526020017f5061634d616e000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600f81526020017f48617264776172655f57616c6c6574000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f4665656c735f476f6f645f4d616e00000000000000000000000000000000000081525081526020016040518060400160405280600981526020017f47616d655f4f766572000000000000000000000000000000000000000000000081525081526020016040518060400160405280600881526020017f4d3374346d34536b00000000000000000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f50726f6d6973696e675f436f6c6c61620000000000000000000000000000000081525081526020016040518060400160405280600781526020017f4d61785061696e0000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f477265656e5f436861727400000000000000000000000000000000000000000081525081526020016040518060400160405280601681526020017f50726573735f546861745f4d696e745f427574746f6e0000000000000000000081525081526020016040518060400160405280600981526020017f54726173685f417274000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f6e6f6e6500000000000000000000000000000000000000000000000000000000815250815250600b90600c6200146592919062001f91565b506040518061012001604052806040518060400160405280600a81526020017f526172655f50657065730000000000000000000000000000000000000000000081525081526020016040518060400160405280600581526020017f436861727400000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f4d6f6d615f506978656c7300000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f43727970746f5f5370616365000000000000000000000000000000000000000081525081526020016040518060400160405280600c81526020017f43727970746f5f566f78656c000000000000000000000000000000000000000081525081526020016040518060400160405280600d81526020017f436972637569745f426f6172640000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f556e69737761700000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600781526020017f4d61785061696e0000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600481526020017f6e6f6e6500000000000000000000000000000000000000000000000000000000815250815250600c9060096200169592919062001ff1565b506040518061012001604052806040518060400160405280600781526020017f333220626974730000000000000000000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f3332206269747320616e696d617465640000000000000000000000000000000081525081526020016040518060400160405280600781526020017f363420626974730000000000000000000000000000000000000000000000000081525081526020016040518060400160405280601081526020017f3634206269747320616e696d617465640000000000000000000000000000000081525081526020016040518060400160405280600981526020017f57686f20646973203f000000000000000000000000000000000000000000000081525081526020016040518060400160405280601581526020017f426974636f696e2067656e6573697320626c6f636b000000000000000000000081525081526020016040518060400160405280600b81526020017f446174612074756e6e656c00000000000000000000000000000000000000000081525081526020016040518060400160405280600b81526020017f4d6574612053637269707400000000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017f5468652043797068657270756e6b000000000000000000000000000000000000815250815250600d906009620018c592919062001ff1565b506040518061018001604052806040518060400160405280601381526020017f677265656e2c2077686974652c20626c61636b0000000000000000000000000081525081526020016040518060400160405280601381526020017f677265656e2c20626c61636b2c2077686974650000000000000000000000000081525081526020016040518060400160405280601381526020017f626c61636b2c20677265656e2c2077686974650000000000000000000000000081525081526020016040518060400160405280601381526020017f626c61636b2c20677265656e2c20677265656e0000000000000000000000000081525081526020016040518060400160405280601381526020017f626c61636b2c2077686974652c2077686974650000000000000000000000000081525081526020016040518060400160405280601381526020017f626c61636b2c2077686974652c20677265656e0000000000000000000000000081525081526020016040518060400160405280601481526020017f626c61636b2c20667573636869612c206171756100000000000000000000000081525081526020016040518060400160405280601381526020017f626c61636b2c2077686974652c20677265656e0000000000000000000000000081525081526020016040518060400160405280601081526020017f626c75652c207265642c20626c61636b0000000000000000000000000000000081525081526020016040518060400160405280601281526020017f626c61636b2c207265642c2079656c6c6f77000000000000000000000000000081525081526020016040518060400160405280601581526020017f626c75652c2079656c6c6f772c2066757363686961000000000000000000000081525081526020016040518060400160405280601381526020017f626c61636b2c2077686974652c20776869746500000000000000000000000000815250815250600e90600c62001ba692919062001f91565b5034801562001bb457600080fd5b50604051620074f4380380620074f4833981810160405281019062001bda9190620022d6565b33600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362001c505760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040162001c479190620023e0565b60405180910390fd5b62001c618162001d4d60201b60201c565b508473ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508573ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff168152505083600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826004908162001d1c919062002648565b50816005908162001d2e919062002648565b50806003908162001d40919062002648565b505050505050506200272f565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b82805482825590600052602060002090810192821562001e5e579160200282015b8281111562001e5d57825182908162001e4c919062002648565b509160200191906001019062001e32565b5b50905062001e6d919062002051565b5090565b82805482825590600052602060002090810192821562001ebe579160200282015b8281111562001ebd57825182908162001eac919062002648565b509160200191906001019062001e92565b5b50905062001ecd919062002051565b5090565b82805482825590600052602060002090810192821562001f1e579160200282015b8281111562001f1d57825182908162001f0c919062002648565b509160200191906001019062001ef2565b5b50905062001f2d919062002051565b5090565b82805482825590600052602060002090810192821562001f7e579160200282015b8281111562001f7d57825182908162001f6c919062002648565b509160200191906001019062001f52565b5b50905062001f8d919062002051565b5090565b82805482825590600052602060002090810192821562001fde579160200282015b8281111562001fdd57825182908162001fcc919062002648565b509160200191906001019062001fb2565b5b50905062001fed919062002051565b5090565b8280548282559060005260206000209081019282156200203e579160200282015b828111156200203d5782518290816200202c919062002648565b509160200191906001019062002012565b5b5090506200204d919062002051565b5090565b5b808211156200207557600081816200206b919062002079565b5060010162002052565b5090565b508054620020879062002437565b6000825580601f106200209b5750620020bc565b601f016020900490600052602060002090810190620020bb9190620020bf565b5b50565b5b80821115620020da576000816000905550600101620020c0565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200211f82620020f2565b9050919050565b620021318162002112565b81146200213d57600080fd5b50565b600081519050620021518162002126565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620021ac8262002161565b810181811067ffffffffffffffff82111715620021ce57620021cd62002172565b5b80604052505050565b6000620021e3620020de565b9050620021f18282620021a1565b919050565b600067ffffffffffffffff82111562002214576200221362002172565b5b6200221f8262002161565b9050602081019050919050565b60005b838110156200224c5780820151818401526020810190506200222f565b60008484015250505050565b60006200226f6200226984620021f6565b620021d7565b9050828152602081018484840111156200228e576200228d6200215c565b5b6200229b8482856200222c565b509392505050565b600082601f830112620022bb57620022ba62002157565b5b8151620022cd84826020860162002258565b91505092915050565b60008060008060008060c08789031215620022f657620022f5620020e8565b5b60006200230689828a0162002140565b96505060206200231989828a0162002140565b95505060406200232c89828a0162002140565b945050606087015167ffffffffffffffff81111562002350576200234f620020ed565b5b6200235e89828a01620022a3565b935050608087015167ffffffffffffffff811115620023825762002381620020ed565b5b6200239089828a01620022a3565b92505060a087015167ffffffffffffffff811115620023b457620023b3620020ed565b5b620023c289828a01620022a3565b9150509295509295509295565b620023da8162002112565b82525050565b6000602082019050620023f76000830184620023cf565b92915050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200245057607f821691505b60208210810362002466576200246562002408565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620024d07fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262002491565b620024dc868362002491565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062002529620025236200251d84620024f4565b620024fe565b620024f4565b9050919050565b6000819050919050565b620025458362002508565b6200255d620025548262002530565b8484546200249e565b825550505050565b600090565b6200257462002565565b620025818184846200253a565b505050565b5b81811015620025a9576200259d6000826200256a565b60018101905062002587565b5050565b601f821115620025f857620025c2816200246c565b620025cd8462002481565b81016020851015620025dd578190505b620025f5620025ec8562002481565b83018262002586565b50505b505050565b600082821c905092915050565b60006200261d60001984600802620025fd565b1980831691505092915050565b60006200263883836200260a565b9150826002028217905092915050565b6200265382620023fd565b67ffffffffffffffff8111156200266f576200266e62002172565b5b6200267b825462002437565b62002688828285620025ad565b600060209050601f831160018114620026c05760008415620026ab578287015190505b620026b785826200262a565b86555062002727565b601f198416620026d0866200246c565b60005b82811015620026fa57848901518255600182019150602085019450602081019050620026d3565b868310156200271a578489015162002716601f8916826200260a565b8355505b6001600288020188555050505b505050505050565b60805160a051614d6e620027866000396000818161131e01526114000152600081816106b601528181610b6001528181610c7801528181610d9001528181610f1901528181611086015261128f0152614d6e6000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c8063a25f751f116100a2578063e3b71f8711610071578063e3b71f87146102a9578063e4cf7151146102c7578063f2fde38b146102e3578063f547f928146102ff578063f87f44b91461031d57610116565b8063a25f751f14610221578063a9cb35ae1461023d578063beb0a4161461025b578063c87b56dd1461027957610116565b806374f82e30116100e957806374f82e301461018f578063858be4dc146101ad5780638647ca76146101c95780638da5cb5b146101e557806394dedad81461020357610116565b80630e8992861461011b578063164743921461014b57806321ea07e114610167578063715018a614610185575b600080fd5b61013560048036038101906101309190612563565b610339565b604051610142919061259f565b60405180910390f35b61016560048036038101906101609190612618565b610357565b005b61016f6103a3565b60405161017c91906126a4565b60405180910390f35b61018d6103c9565b005b6101976103dd565b6040516101a4919061274f565b60405180910390f35b6101c760048036038101906101c29190612771565b61046b565b005b6101e360048036038101906101de9190612816565b610593565b005b6101ed6105b1565b6040516101fa9190612872565b60405180910390f35b61020b6105da565b604051610218919061274f565b60405180910390f35b61023b60048036038101906102369190612618565b610668565b005b6102456106b4565b6040516102529190612872565b60405180910390f35b6102636106d8565b604051610270919061274f565b60405180910390f35b610293600480360381019061028e9190612563565b610766565b6040516102a0919061274f565b60405180910390f35b6102b16113fe565b6040516102be9190612872565b60405180910390f35b6102e160048036038101906102dc9190612816565b611422565b005b6102fd60048036038101906102f89190612618565b611440565b005b6103076114c6565b60405161031491906128ae565b60405180910390f35b61033760048036038101906103329190612816565b6114ec565b005b60066020528060005260406000206000915090508060000154905081565b61035f61150a565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6103d161150a565b6103db6000611591565b565b600480546103ea906128f8565b80601f0160208091040260200160405190810160405280929190818152602001828054610416906128f8565b80156104635780601f1061043857610100808354040283529160200191610463565b820191906000526020600020905b81548152906001019060200180831161044657829003601f168201915b505050505081565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e826040518263ffffffff1660e01b81526004016104c6919061259f565b602060405180830381865afa1580156104e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610507919061293e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610574576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056b906129b7565b60405180910390fd5b8160066000838152602001908152602001600020600001819055505050565b61059b61150a565b8181600491826105ac929190612bb3565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600380546105e7906128f8565b80601f0160208091040260200160405190810160405280929190818152602001828054610613906128f8565b80156106605780601f1061063557610100808354040283529160200191610660565b820191906000526020600020905b81548152906001019060200180831161064357829003601f168201915b505050505081565b61067061150a565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600580546106e5906128f8565b80601f0160208091040260200160405190810160405280929190818152602001828054610711906128f8565b801561075e5780601f106107335761010080835404028352916020019161075e565b820191906000526020600020905b81548152906001019060200180831161074157829003601f168201915b505050505081565b60606000600867ffffffffffffffff811115610785576107846129e2565b5b6040519080825280602002602001820160405280156107be57816020015b6107ab61249a565b8152602001906001900390816107a35790505b5090506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f856040518263ffffffff1660e01b815260040161081e919061259f565b600060405180830381865afa15801561083b573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906108649190612d8a565b5050905060006014826108779190612e28565b9050600882901c9150600882901c91506000806002846108979190612e28565b116108a357600b6108b1565b600b836108b09190612e28565b5b90506000600167ffffffffffffffff8111156108d0576108cf6129e2565b5b60405190808252806020026020018201604052801561090957816020015b6108f661249a565b8152602001906001900390816108ee5790505b5090506040518060400160405280600781526020017f3c7374796c653e000000000000000000000000000000000000000000000000008152508160008151811061095657610955612e59565b5b6020026020010151608001819052506040518060600160405280602d8152602001614d0c602d91398160008151811061099257610991612e59565b5b602002602001015160c001819052506040518060400160405280600881526020017f3c2f7374796c653e000000000000000000000000000000000000000000000000815250816000815181106109eb576109ea612e59565b5b602002602001015160a001819052506000600660008981526020019081526020016000206000015411610a3b5760098381548110610a2c57610a2b612e59565b5b90600052602060002001610a66565b6009601484610a4a9190612eb7565b81548110610a5b57610a5a612e59565b5b906000526020600020015b8054610a71906128f8565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9d906128f8565b8015610aea5780601f10610abf57610100808354040283529160200191610aea565b820191906000526020600020905b815481529060010190602001808311610acd57829003601f168201915b505050505085600081518110610b0357610b02612e59565b5b602002602001015160000181905250600385600081518110610b2857610b27612e59565b5b6020026020010151606001906004811115610b4657610b45612eeb565b5b90816004811115610b5a57610b59612eeb565b5b815250507f000000000000000000000000000000000000000000000000000000000000000085600081518110610b9357610b92612e59565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506040518060400160405280601181526020017f43797068657244756465734c617965723100000000000000000000000000000081525085600181518110610c1b57610c1a612e59565b5b602002602001015160000181905250600185600181518110610c4057610c3f612e59565b5b6020026020010151606001906004811115610c5e57610c5d612eeb565b5b90816004811115610c7257610c71612eeb565b5b815250507f000000000000000000000000000000000000000000000000000000000000000085600181518110610cab57610caa612e59565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506040518060400160405280601081526020017f4379706865724475646573466f6e74730000000000000000000000000000000081525085600281518110610d3357610d32612e59565b5b602002602001015160000181905250600185600281518110610d5857610d57612e59565b5b6020026020010151606001906004811115610d7657610d75612eeb565b5b90816004811115610d8a57610d89612eeb565b5b815250507f000000000000000000000000000000000000000000000000000000000000000085600281518110610dc357610dc2612e59565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600b8281548110610e1557610e14612e59565b5b906000526020600020018054610e2a906128f8565b80601f0160208091040260200160405190810160405280929190818152602001828054610e56906128f8565b8015610ea35780601f10610e7857610100808354040283529160200191610ea3565b820191906000526020600020905b815481529060010190602001808311610e8657829003601f168201915b505050505085600381518110610ebc57610ebb612e59565b5b602002602001015160000181905250600185600381518110610ee157610ee0612e59565b5b6020026020010151606001906004811115610eff57610efe612eeb565b5b90816004811115610f1357610f12612eeb565b5b815250507f000000000000000000000000000000000000000000000000000000000000000085600381518110610f4c57610f4b612e59565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060038054610f97906128f8565b80601f0160208091040260200160405190810160405280929190818152602001828054610fc3906128f8565b80156110105780601f10610fe557610100808354040283529160200191611010565b820191906000526020600020905b815481529060010190602001808311610ff357829003601f168201915b50505050508560048151811061102957611028612e59565b5b60200260200101516000018190525060038560048151811061104e5761104d612e59565b5b602002602001015160600190600481111561106c5761106b612eeb565b5b908160048111156110805761107f612eeb565b5b815250507f0000000000000000000000000000000000000000000000000000000000000000856004815181106110b9576110b8612e59565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506111018784611655565b8560058151811061111557611114612e59565b5b602002602001015160c0018190525060018560058151811061113a57611139612e59565b5b602002602001015160600190600481111561115857611157612eeb565b5b9081600481111561116c5761116b612eeb565b5b81525050611179876117ed565b8560068151811061118d5761118c612e59565b5b602002602001015160c001819052506001856006815181106111b2576111b1612e59565b5b60200260200101516060019060048111156111d0576111cf612eeb565b5b908160048111156111e4576111e3612eeb565b5b815250506040518060400160405280601381526020017f67756e7a6970536372697074732d302e302e31000000000000000000000000008152508560078151811061123257611231612e59565b5b60200260200101516000018190525060018560078151811061125757611256612e59565b5b602002602001015160600190600481111561127557611274612eeb565b5b9081600481111561128957611288612eeb565b5b815250507f0000000000000000000000000000000000000000000000000000000000000000856007815181106112c2576112c1612e59565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506113086124ff565b81816000018190525085816020018190525060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16632bee6807836040518263ffffffff1660e01b815260040161137591906131ce565b600060405180830381865afa158015611392573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906113bb9190613291565b90506113d16113cc828b8888611af0565b611c43565b6040516020016113e19190613362565b604051602081830303815290604052975050505050505050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b61142a61150a565b81816003918261143b929190612bb3565b505050565b61144861150a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036114ba5760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016114b19190612872565b60405180910390fd5b6114c381611591565b50565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6114f461150a565b818160059182611505929190612bb3565b505050565b611512611c58565b73ffffffffffffffffffffffffffffffffffffffff166115306105b1565b73ffffffffffffffffffffffffffffffffffffffff161461158f57611553611c58565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016115869190612872565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6060600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f866040518263ffffffff1660e01b81526004016116b5919061259f565b600060405180830381865afa1580156116d2573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906116fb9190612d8a565b9250509150600882901c91506000600b836117169190612e28565b9050600883901c9250600883901c9250600060028614806117375750600386145b806117425750600886145b61174d57600861175b565b60088461175a9190612e28565b5b9050600884901c935060006009856117739190612e28565b9050600885901c94506000600c8661178b9190612e28565b905061179689611c60565b61179f85611c60565b6117a885611c60565b876117b286611c60565b6117bb86611c60565b6040516020016117d0969594939291906135e4565b604051602081830303815290604052965050505050505092915050565b60606000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f846040518263ffffffff1660e01b815260040161184c919061259f565b600060405180830381865afa158015611869573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906118929190612d8a565b509150506118c3606182106118b85760c182106118b05760806118b3565b60405b6118bb565b60205b60ff16611c60565b6118fc600360206001856118d791906136c0565b6118e191906136f4565b6118eb9190612e28565b60026118f791906136c0565b611c60565b611939600060208561190e9190612e28565b14611931576020846119209190612e28565b602061192c91906136c0565b611934565b60015b611c60565b6119dd600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e886040518263ffffffff1660e01b8152600401611997919061259f565b602060405180830381865afa1580156119b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d8919061293e565b611dc0565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166360f9bb11611a2489611c60565b604051602001611a34919061374b565b6040516020818303038152906040526040518263ffffffff1660e01b8152600401611a5f919061274f565b600060405180830381865afa158015611a7c573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611aa59190613771565b611ac4600660008a815260200190815260200160002060000154611c60565b604051602001611ad996959493929190613982565b604051602081830303815290604052915050919050565b60606000611afd85611c60565b90506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f876040518263ffffffff1660e01b8152600401611b5c919061259f565b600060405180830381865afa158015611b79573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611ba29190612d8a565b9250505060006040518060200160405280600081525090506000825114611bfc576040518060400160405280600381526020017f202d20000000000000000000000000000000000000000000000000000000000081525090505b81818460056004878d611c108e8e8e611ded565b604051602001611c27989796959493929190614451565b6040516020818303038152906040529350505050949350505050565b6060611c5182600080612157565b9050919050565b600033905090565b606060008203611ca7576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611dbb565b600082905060005b60008214611cd9578080611cc290614526565b915050600a82611cd291906136f4565b9150611caf565b60008167ffffffffffffffff811115611cf557611cf46129e2565b5b6040519080825280601f01601f191660200182016040528015611d275781602001600182028036833780820191505090505b5090505b60008514611db457600182611d4091906136c0565b9150600a85611d4f9190612e28565b6030611d5b9190612eb7565b60f81b818381518110611d7157611d70612e59565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611dad91906136f4565b9450611d2b565b8093505050505b919050565b6060611de68273ffffffffffffffffffffffffffffffffffffffff16601460ff16612254565b9050919050565b60606000806000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f886040518263ffffffff1660e01b8152600401611e4f919061259f565b600060405180830381865afa158015611e6c573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611e959190612d8a565b925092509250600080600660008a81526020019081526020016000206000015411611ef5576040518060400160405280601181526020017f3031303131303030203031303131303031000000000000000000000000000000815250611f2c565b6040518060400160405280601181526020017f30313031313030302030313031313030300000000000000000000000000000008152505b9050600884901c93506000600b85611f449190612e28565b9050600885901c9450600885901c945060006002891480611f655750600389145b80611f705750600889145b611f7b576008611f89565b600886611f889190612e28565b5b9050600886901c95506000600987611fa19190612e28565b9050600887901c96506000600c88611fb99190612e28565b9050611fe860618810611fdd5760c18810611fd5576080611fd8565b60405b611fe0565b60205b60ff16611c60565b60076003602060018b611ffb91906136c0565b61200591906136f4565b61200f9190612e28565b815481106120205761201f612e59565b5b90600052602060002001612067600060208b61203c9190612e28565b1461205f5760208a61204e9190612e28565b602061205a91906136c0565b612062565b60015b611c60565b60088e8154811061207b5761207a612e59565b5b90600052602060002001600a888154811061209957612098612e59565b5b90600052602060002001600b8f815481106120b7576120b6612e59565b5b90600052602060002001600c89815481106120d5576120d4612e59565b5b906000526020600020018c600d8a815481106120f4576120f3612e59565b5b90600052602060002001600e8a8154811061211257612111612e59565b5b906000526020600020018e6040516020016121379b9a99989796959493929190614aec565b604051602081830303815290604052985050505050505050509392505050565b60608351801561224c576003600282010460021b60405192507f4142434445464748494a4b4c4d4e4f505152535455565758595a616263646566601f526102308515027f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392d5f03603f52602083018181015b60011561221d576003880197508751603f8160121c1651600053603f81600c1c1651600153603f8160061c1651600253603f8116516003536000518352600483019250818310612217575061221d565b506121c7565b6020810160405260038406600204613d3d60f01b81840352808715150290506000818403528084038652505050505b509392505050565b606060008390506000600284600261226c9190614c77565b6122769190612eb7565b67ffffffffffffffff81111561228f5761228e6129e2565b5b6040519080825280601f01601f1916602001820160405280156122c15781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106122f9576122f8612e59565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061235d5761235c612e59565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600185600261239d9190614c77565b6123a79190612eb7565b90505b6001811115612447577f3031323334353637383961626364656600000000000000000000000000000000600f8416601081106123e9576123e8612e59565b5b1a60f81b828281518110612400576123ff612e59565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600483901c92508061244090614cb9565b90506123aa565b506000821461248f5784846040517fe22e27eb000000000000000000000000000000000000000000000000000000008152600401612486929190614ce2565b60405180910390fd5b809250505092915050565b6040518060e0016040528060608152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160608152602001600060048111156124e4576124e3612eeb565b5b81526020016060815260200160608152602001606081525090565b604051806040016040528060608152602001606081525090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6125408161252d565b811461254b57600080fd5b50565b60008135905061255d81612537565b92915050565b60006020828403121561257957612578612523565b5b60006125878482850161254e565b91505092915050565b6125998161252d565b82525050565b60006020820190506125b46000830184612590565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006125e5826125ba565b9050919050565b6125f5816125da565b811461260057600080fd5b50565b600081359050612612816125ec565b92915050565b60006020828403121561262e5761262d612523565b5b600061263c84828501612603565b91505092915050565b6000819050919050565b600061266a612665612660846125ba565b612645565b6125ba565b9050919050565b600061267c8261264f565b9050919050565b600061268e82612671565b9050919050565b61269e81612683565b82525050565b60006020820190506126b96000830184612695565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156126f95780820151818401526020810190506126de565b60008484015250505050565b6000601f19601f8301169050919050565b6000612721826126bf565b61272b81856126ca565b935061273b8185602086016126db565b61274481612705565b840191505092915050565b600060208201905081810360008301526127698184612716565b905092915050565b6000806040838503121561278857612787612523565b5b60006127968582860161254e565b92505060206127a78582860161254e565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f8401126127d6576127d56127b1565b5b8235905067ffffffffffffffff8111156127f3576127f26127b6565b5b60208301915083600182028301111561280f5761280e6127bb565b5b9250929050565b6000806020838503121561282d5761282c612523565b5b600083013567ffffffffffffffff81111561284b5761284a612528565b5b612857858286016127c0565b92509250509250929050565b61286c816125da565b82525050565b60006020820190506128876000830184612863565b92915050565b600061289882612671565b9050919050565b6128a88161288d565b82525050565b60006020820190506128c3600083018461289f565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061291057607f821691505b602082108103612923576129226128c9565b5b50919050565b600081519050612938816125ec565b92915050565b60006020828403121561295457612953612523565b5b600061296284828501612929565b91505092915050565b7f4e6f7420417574686f72697a6564000000000000000000000000000000000000600082015250565b60006129a1600e836126ca565b91506129ac8261296b565b602082019050919050565b600060208201905081810360008301526129d081612994565b9050919050565b600082905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302612a737fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612a36565b612a7d8683612a36565b95508019841693508086168417925050509392505050565b6000612ab0612aab612aa68461252d565b612645565b61252d565b9050919050565b6000819050919050565b612aca83612a95565b612ade612ad682612ab7565b848454612a43565b825550505050565b600090565b612af3612ae6565b612afe818484612ac1565b505050565b5b81811015612b2257612b17600082612aeb565b600181019050612b04565b5050565b601f821115612b6757612b3881612a11565b612b4184612a26565b81016020851015612b50578190505b612b64612b5c85612a26565b830182612b03565b50505b505050565b600082821c905092915050565b6000612b8a60001984600802612b6c565b1980831691505092915050565b6000612ba38383612b79565b9150826002028217905092915050565b612bbd83836129d7565b67ffffffffffffffff811115612bd657612bd56129e2565b5b612be082546128f8565b612beb828285612b26565b6000601f831160018114612c1a5760008415612c08578287013590505b612c128582612b97565b865550612c7a565b601f198416612c2886612a11565b60005b82811015612c5057848901358255600182019150602085019450602081019050612c2b565b86831015612c6d5784890135612c69601f891682612b79565b8355505b6001600288020188555050505b50505050505050565b600081519050612c9281612537565b92915050565b600080fd5b612ca682612705565b810181811067ffffffffffffffff82111715612cc557612cc46129e2565b5b80604052505050565b6000612cd8612519565b9050612ce48282612c9d565b919050565b600067ffffffffffffffff821115612d0457612d036129e2565b5b612d0d82612705565b9050602081019050919050565b6000612d2d612d2884612ce9565b612cce565b905082815260208101848484011115612d4957612d48612c98565b5b612d548482856126db565b509392505050565b600082601f830112612d7157612d706127b1565b5b8151612d81848260208601612d1a565b91505092915050565b600080600060608486031215612da357612da2612523565b5b6000612db186828701612c83565b9350506020612dc286828701612c83565b925050604084015167ffffffffffffffff811115612de357612de2612528565b5b612def86828701612d5c565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612e338261252d565b9150612e3e8361252d565b925082612e4e57612e4d612df9565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612ec28261252d565b9150612ecd8361252d565b9250828201905080821115612ee557612ee4612e88565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600082825260208201905092915050565b6000612f62826126bf565b612f6c8185612f46565b9350612f7c8185602086016126db565b612f8581612705565b840191505092915050565b612f99816125da565b82525050565b600081519050919050565b600082825260208201905092915050565b6000612fc682612f9f565b612fd08185612faa565b9350612fe08185602086016126db565b612fe981612705565b840191505092915050565b6005811061300557613004612eeb565b5b50565b600081905061301682612ff4565b919050565b600061302682613008565b9050919050565b6130368161301b565b82525050565b600060e08301600083015184820360008601526130598282612f57565b915050602083015161306e6020860182612f90565b50604083015184820360408601526130868282612fbb565b915050606083015161309b606086018261302d565b50608083015184820360808601526130b38282612fbb565b91505060a083015184820360a08601526130cd8282612fbb565b91505060c083015184820360c08601526130e78282612fbb565b9150508091505092915050565b6000613100838361303c565b905092915050565b6000602082019050919050565b600061312082612f1a565b61312a8185612f25565b93508360208202850161313c85612f36565b8060005b85811015613178578484038952815161315985826130f4565b945061316483613108565b925060208a01995050600181019050613140565b50829750879550505050505092915050565b600060408301600083015184820360008601526131a78282613115565b915050602083015184820360208601526131c18282613115565b9150508091505092915050565b600060208201905081810360008301526131e8818461318a565b905092915050565b600067ffffffffffffffff82111561320b5761320a6129e2565b5b61321482612705565b9050602081019050919050565b600061323461322f846131f0565b612cce565b9050828152602081018484840111156132505761324f612c98565b5b61325b8482856126db565b509392505050565b600082601f830112613278576132776127b1565b5b8151613288848260208601613221565b91505092915050565b6000602082840312156132a7576132a6612523565b5b600082015167ffffffffffffffff8111156132c5576132c4612528565b5b6132d184828501613263565b91505092915050565b600081905092915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b600061331b601d836132da565b9150613326826132e5565b601d82019050919050565b600061333c826126bf565b61334681856132da565b93506133568185602086016126db565b80840191505092915050565b600061336d8261330e565b91506133798284613331565b915081905092915050565b7f6c657420746f6b656e4964203d20000000000000000000000000000000000000600082015250565b60006133ba600e836132da565b91506133c582613384565b600e82019050919050565b7f3b00000000000000000000000000000000000000000000000000000000000000600082015250565b60006134066001836132da565b9150613411826133d0565b600182019050919050565b7f6c6574206c6179657231203d2000000000000000000000000000000000000000600082015250565b6000613452600d836132da565b915061345d8261341c565b600d82019050919050565b7f6c6574206c6179657233203d2000000000000000000000000000000000000000600082015250565b600061349e600d836132da565b91506134a982613468565b600d82019050919050565b7f6c657420736563726574576f7264203d20270000000000000000000000000000600082015250565b60006134ea6012836132da565b91506134f5826134b4565b601282019050919050565b7f273b000000000000000000000000000000000000000000000000000000000000600082015250565b60006135366002836132da565b915061354182613500565b600282019050919050565b7f6c657420626974456e7669726f6e6d656e74203d200000000000000000000000600082015250565b60006135826015836132da565b915061358d8261354c565b601582019050919050565b7f6c65742062697450616c65747465203d20000000000000000000000000000000600082015250565b60006135ce6011836132da565b91506135d982613598565b601182019050919050565b60006135ef826133ad565b91506135fb8289613331565b9150613606826133f9565b915061361182613445565b915061361d8288613331565b9150613628826133f9565b915061363382613491565b915061363f8287613331565b915061364a826133f9565b9150613655826134dd565b91506136618286613331565b915061366c82613529565b915061367782613575565b91506136838285613331565b915061368e826133f9565b9150613699826135c1565b91506136a58284613331565b91506136b0826133f9565b9150819050979650505050505050565b60006136cb8261252d565b91506136d68361252d565b92508282039050818111156136ee576136ed612e88565b5b92915050565b60006136ff8261252d565b915061370a8361252d565b92508261371a57613719612df9565b5b828204905092915050565b7f637970686572436172645f000000000000000000000000000000000000000000815250565b600061375682613725565b600b820191506137668284613331565b915081905092915050565b60006020828403121561378757613786612523565b5b600082015167ffffffffffffffff8111156137a5576137a4612528565b5b6137b184828501612d5c565b91505092915050565b7f6c6574206772696453697a65203d200000000000000000000000000000000000600082015250565b60006137f0600f836132da565b91506137fb826137ba565b600f82019050919050565b7f6c657420677269645265736f6c7574696f6e203d200000000000000000000000600082015250565b600061383c6015836132da565b915061384782613806565b601582019050919050565b7f6c6574206c6576656c50726f6772657373696f6e203d20000000000000000000600082015250565b60006138886017836132da565b915061389382613852565b601782019050919050565b7f6c6574206f776e657241646479203d2027000000000000000000000000000000600082015250565b60006138d46011836132da565b91506138df8261389e565b601182019050919050565b7f6c6574206d657373616765203d20270000000000000000000000000000000000600082015250565b6000613920600f836132da565b915061392b826138ea565b600f82019050919050565b7f6c6574206c7362203d2000000000000000000000000000000000000000000000600082015250565b600061396c600a836132da565b915061397782613936565b600a82019050919050565b600061398d826137e3565b91506139998289613331565b91506139a4826133f9565b91506139af8261382f565b91506139bb8288613331565b91506139c6826133f9565b91506139d18261387b565b91506139dd8287613331565b91506139e8826133f9565b91506139f3826138c7565b91506139ff8286613331565b9150613a0a82613529565b9150613a1582613913565b9150613a218285613331565b9150613a2c82613529565b9150613a378261395f565b9150613a438284613331565b9150613a4e826133f9565b9150819050979650505050505050565b7f7b226e616d65223a202200000000000000000000000000000000000000000000600082015250565b6000613a94600a836132da565b9150613a9f82613a5e565b600a82019050919050565b7f4359504845524455444520230000000000000000000000000000000000000000600082015250565b6000613ae0600c836132da565b9150613aeb82613aaa565b600c82019050919050565b7f222c20226465736372697074696f6e223a22437970686572647564657320697360008201527f20612067656e657261746976652063727970746f61727420736572696573207060208201527f6179696e67207472696275746520746f207468652043797068657270756e6b2060408201527f6d6f76656d656e742c20776869636820686173206265656e2063616d7061696760608201527f6e696e6720666f72207468652070726f74656374696f6e206f6620707269766160808201527f6379206f6e2074686520696e7465726e65742073696e6365207468652065617260a08201527f6c79203930732c20616e642077617320626568696e642074686520637265617460c08201527f696f6e206f6620626974636f696e20696e20323030382e54686973207365726960e08201527f65732074616b657320757020746865206772617068696320756e6976657273656101008201527f206f662061206368617261637465722074686174204920696e76656e746564206101208201527f616e64206761696e656420736f6d6520706f70756c617269747920696e2074686101408201527f652063727970746f20617274207363656e65203a207468652063727970746f646101608201527f7564652e4120706572736f6e696669636174696f6e206f662063727970746f206101808201527f63756c747572652c20746865204379706865726475646520706572666f726d736101a08201527f20616374696f6e7320746861742076697375616c6c79207472616e736c6174656101c08201527f207468652065787072657373696f6e7320616e64206265686176696f727320736101e08201527f7065636966696320746f20746869732065636f73797374656d2e4561636820776102008201527f6f726b20696e207468652073657269657320697320756e6971756520616e64206102208201527f67656e6572617465642066726f6d20616e20616c676f726974686d20686f73746102408201527f6564206469726563746c79206f6e2074686520626c6f636b636861696e2e20546102608201527f686520706172616d657465727320636f6d706f73696e67206561636820776f726102808201527f6b206172652073656c65637465642066726f6d206120776964652072616e67656102a08201527f206f6620656c656d656e7473206372656174656420696e646976696475616c6c6102c08201527f79206279206d7973656c6620616e6420636f6d62696e656420696e20612073656102e08201527f656465642072616e646f6d207761792e204561636820736565642069732064656103008201527f7465726d696e65642062792074686520626c6f636b636861696e206f6e206d696103208201527f6e742e54686520776f726b20616e6420746865204d6573736167652e456163686103408201527f206f776e6572206f66206120776f726b2066726f6d20746865207365726965736103608201527f206861732061636365737320746f20612068696464656e2066656174757265206103808201527f3a20746865206162696c69747920746f20696e73637269626520616e20656e636103a08201527f727970746564206d65737361676520696e2074686520776f726b20697473656c6103c08201527f662e2054686520656e6372797074696f6e206b657920697320646563696465646103e08201527f20627920746865206f776e6572206f6e20657665727920696e736372697074696104008201527f6f6e2e2054686973206d6573736167652063616e207468656e206f6e6c7920626104208201527f65206465636f646564206279206120726563697069656e74206b6e6f77696e676104408201527f20746865206b65792e2054686973207761792c2074686520776f726b206265636104608201527f6f6d6573206120766572697461626c6520746f6f6c20617420746865207365726104808201527f76696365206f6620697473206f776e65722c2077686f2c206279207573696e676104a08201527f2069742c206d616b65732069742065766f6c76652076697375616c6c792075736104c08201527f696e6720612073696d706c652073746567616e6f6772617068696320746563686104e08201527f6e697175652e5468652043797068657264756465732074687573206265636f6d6105008201527f6573207468652076697375616c207769746e65737320746f20746865207072656105208201527f73656e6365206f662061206d6573736167652c20616e642069747320646967696105408201527f74616c207365637572697479207661756c742e222c000000000000000000000061056082015250565b60006141b3610575836132da565b91506141be82613af6565b61057582019050919050565b7f2265787465726e616c5f75726c223a2022000000000000000000000000000000600082015250565b60006142006011836132da565b915061420b826141ca565b601182019050919050565b60008154614223816128f8565b61422d81866132da565b94506001821660008114614248576001811461425d57614290565b60ff1983168652811515820286019350614290565b61426685612a11565b60005b8381101561428857815481890152600182019150602081019050614269565b838801955050505b50505092915050565b7f222c2022696d616765223a202200000000000000000000000000000000000000600082015250565b60006142cf600d836132da565b91506142da82614299565b600d82019050919050565b7f2e73766722000000000000000000000000000000000000000000000000000000600082015250565b600061431b6005836132da565b9150614326826142e5565b600582019050919050565b7f2c2022616e696d6174696f6e5f75726c223a2022000000000000000000000000600082015250565b60006143676014836132da565b915061437282614331565b601482019050919050565b600081905092915050565b600061439382612f9f565b61439d818561437d565b93506143ad8185602086016126db565b80840191505092915050565b7f222c202261747472696275746573223a205b0000000000000000000000000000600082015250565b60006143ef6012836132da565b91506143fa826143b9565b601282019050919050565b7f5d7d000000000000000000000000000000000000000000000000000000000000600082015250565b600061443b6002836132da565b915061444682614405565b600282019050919050565b600061445c82613a87565b9150614468828b613331565b9150614474828a613331565b915061447f82613ad3565b915061448b8289613331565b9150614496826141a5565b91506144a1826141f3565b91506144ad8288614216565b91506144b8826142c2565b91506144c48287614216565b91506144d08286613331565b91506144db8261430e565b91506144e68261435a565b91506144f28285614388565b91506144fd826143e2565b91506145098284613331565b91506145148261442e565b91508190509998505050505050505050565b60006145318261252d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361456357614562612e88565b5b600182019050919050565b7f7b2274726169745f74797065223a22477269642053697a65222c2276616c756560008201527f22203a2200000000000000000000000000000000000000000000000000000000602082015250565b60006145ca6024836132da565b91506145d58261456e565b602482019050919050565b7f227d2c0000000000000000000000000000000000000000000000000000000000600082015250565b60006146166003836132da565b9150614621826145e0565b600382019050919050565b7f7b2274726169745f74797065223a2247726964205265736f6c7574696f6e222c60008201527f2276616c756522203a2200000000000000000000000000000000000000000000602082015250565b6000614688602a836132da565b91506146938261462c565b602a82019050919050565b7f7b2274726169745f74797065223a224c6576656c2050726f6772657373696f6e60008201527f222c2276616c756522203a220000000000000000000000000000000000000000602082015250565b60006146fa602c836132da565b91506147058261469e565b602c82019050919050565b7f7b2274726169745f74797065223a22416374696f6e222c2276616c756522203a60008201527f2200000000000000000000000000000000000000000000000000000000000000602082015250565b600061476c6021836132da565b915061477782614710565b602182019050919050565b7f7b2274726169745f74797065223a224c617965722031222c2276616c7565222060008201527f3a22000000000000000000000000000000000000000000000000000000000000602082015250565b60006147de6022836132da565b91506147e982614782565b602282019050919050565b7f7b2274726169745f74797065223a224c617965722032222c2276616c7565222060008201527f3a22000000000000000000000000000000000000000000000000000000000000602082015250565b60006148506022836132da565b915061485b826147f4565b602282019050919050565b7f7b2274726169745f74797065223a224c617965722033222c2276616c7565222060008201527f3a22000000000000000000000000000000000000000000000000000000000000602082015250565b60006148c26022836132da565b91506148cd82614866565b602282019050919050565b7f7b2274726169745f74797065223a2253656372657420576f7264222c2276616c60008201527f756522203a220000000000000000000000000000000000000000000000000000602082015250565b60006149346026836132da565b915061493f826148d8565b602682019050919050565b7f7b2274726169745f74797065223a2242697420456e7669726f6e6d656e74222c60008201527f2276616c756522203a2200000000000000000000000000000000000000000000602082015250565b60006149a6602a836132da565b91506149b18261494a565b602a82019050919050565b7f7b2274726169745f74797065223a224269742050616c65747465222c2276616c60008201527f756522203a220000000000000000000000000000000000000000000000000000602082015250565b6000614a186026836132da565b9150614a23826149bc565b602682019050919050565b7f7b2274726169745f74797065223a224c65617374205369676e69666963616e7460008201527f20426974222c2276616c756522203a2200000000000000000000000000000000602082015250565b6000614a8a6030836132da565b9150614a9582614a2e565b603082019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b6000614ad66002836132da565b9150614ae182614aa0565b600282019050919050565b6000614af7826145bd565b9150614b03828e613331565b9150614b0e82614609565b9150614b198261467b565b9150614b25828d614216565b9150614b3082614609565b9150614b3b826146ed565b9150614b47828c613331565b9150614b5282614609565b9150614b5d8261475f565b9150614b69828b614216565b9150614b7482614609565b9150614b7f826147d1565b9150614b8b828a614216565b9150614b9682614609565b9150614ba182614843565b9150614bad8289614216565b9150614bb882614609565b9150614bc3826148b5565b9150614bcf8288614216565b9150614bda82614609565b9150614be582614927565b9150614bf18287613331565b9150614bfc82614609565b9150614c0782614999565b9150614c138286614216565b9150614c1e82614609565b9150614c2982614a0b565b9150614c358285614216565b9150614c4082614609565b9150614c4b82614a7d565b9150614c578284613331565b9150614c6282614ac9565b91508190509c9b505050505050505050505050565b6000614c828261252d565b9150614c8d8361252d565b9250828202614c9b8161252d565b91508282048414831517614cb257614cb1612e88565b5b5092915050565b6000614cc48261252d565b915060008203614cd757614cd6612e88565b5b600182039050919050565b6000604082019050614cf76000830185612590565b614d046020830184612590565b939250505056fe68746d6c7b6f766572666c6f773a68696464656e7d626f64797b6d617267696e3a303b70616464696e673a307da2646970667358221220952f44bf05a7dcbf6a114b11c696e911bc31fd56c7e3ce7f0772d7d39ff64bf464736f6c63430008160033000000000000000000000000d7587f110e08f4d120a231ba97d3b577a81df022000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b76990000000000000000000000009181580fce530e5fbd8dba7141fc0ccbb8e59b8b00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000003768747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f63797068657264756465732e61707073706f742e636f6d2f000000000000000000000000000000000000000000000000000000000000000000000000000000000f63797068657264756465732e636f6d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d4379706865724475646573563300000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063a25f751f116100a2578063e3b71f8711610071578063e3b71f87146102a9578063e4cf7151146102c7578063f2fde38b146102e3578063f547f928146102ff578063f87f44b91461031d57610116565b8063a25f751f14610221578063a9cb35ae1461023d578063beb0a4161461025b578063c87b56dd1461027957610116565b806374f82e30116100e957806374f82e301461018f578063858be4dc146101ad5780638647ca76146101c95780638da5cb5b146101e557806394dedad81461020357610116565b80630e8992861461011b578063164743921461014b57806321ea07e114610167578063715018a614610185575b600080fd5b61013560048036038101906101309190612563565b610339565b604051610142919061259f565b60405180910390f35b61016560048036038101906101609190612618565b610357565b005b61016f6103a3565b60405161017c91906126a4565b60405180910390f35b61018d6103c9565b005b6101976103dd565b6040516101a4919061274f565b60405180910390f35b6101c760048036038101906101c29190612771565b61046b565b005b6101e360048036038101906101de9190612816565b610593565b005b6101ed6105b1565b6040516101fa9190612872565b60405180910390f35b61020b6105da565b604051610218919061274f565b60405180910390f35b61023b60048036038101906102369190612618565b610668565b005b6102456106b4565b6040516102529190612872565b60405180910390f35b6102636106d8565b604051610270919061274f565b60405180910390f35b610293600480360381019061028e9190612563565b610766565b6040516102a0919061274f565b60405180910390f35b6102b16113fe565b6040516102be9190612872565b60405180910390f35b6102e160048036038101906102dc9190612816565b611422565b005b6102fd60048036038101906102f89190612618565b611440565b005b6103076114c6565b60405161031491906128ae565b60405180910390f35b61033760048036038101906103329190612816565b6114ec565b005b60066020528060005260406000206000915090508060000154905081565b61035f61150a565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6103d161150a565b6103db6000611591565b565b600480546103ea906128f8565b80601f0160208091040260200160405190810160405280929190818152602001828054610416906128f8565b80156104635780601f1061043857610100808354040283529160200191610463565b820191906000526020600020905b81548152906001019060200180831161044657829003601f168201915b505050505081565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e826040518263ffffffff1660e01b81526004016104c6919061259f565b602060405180830381865afa1580156104e3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610507919061293e565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610574576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056b906129b7565b60405180910390fd5b8160066000838152602001908152602001600020600001819055505050565b61059b61150a565b8181600491826105ac929190612bb3565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600380546105e7906128f8565b80601f0160208091040260200160405190810160405280929190818152602001828054610613906128f8565b80156106605780601f1061063557610100808354040283529160200191610660565b820191906000526020600020905b81548152906001019060200180831161064357829003601f168201915b505050505081565b61067061150a565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b769981565b600580546106e5906128f8565b80601f0160208091040260200160405190810160405280929190818152602001828054610711906128f8565b801561075e5780601f106107335761010080835404028352916020019161075e565b820191906000526020600020905b81548152906001019060200180831161074157829003601f168201915b505050505081565b60606000600867ffffffffffffffff811115610785576107846129e2565b5b6040519080825280602002602001820160405280156107be57816020015b6107ab61249a565b8152602001906001900390816107a35790505b5090506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f856040518263ffffffff1660e01b815260040161081e919061259f565b600060405180830381865afa15801561083b573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906108649190612d8a565b5050905060006014826108779190612e28565b9050600882901c9150600882901c91506000806002846108979190612e28565b116108a357600b6108b1565b600b836108b09190612e28565b5b90506000600167ffffffffffffffff8111156108d0576108cf6129e2565b5b60405190808252806020026020018201604052801561090957816020015b6108f661249a565b8152602001906001900390816108ee5790505b5090506040518060400160405280600781526020017f3c7374796c653e000000000000000000000000000000000000000000000000008152508160008151811061095657610955612e59565b5b6020026020010151608001819052506040518060600160405280602d8152602001614d0c602d91398160008151811061099257610991612e59565b5b602002602001015160c001819052506040518060400160405280600881526020017f3c2f7374796c653e000000000000000000000000000000000000000000000000815250816000815181106109eb576109ea612e59565b5b602002602001015160a001819052506000600660008981526020019081526020016000206000015411610a3b5760098381548110610a2c57610a2b612e59565b5b90600052602060002001610a66565b6009601484610a4a9190612eb7565b81548110610a5b57610a5a612e59565b5b906000526020600020015b8054610a71906128f8565b80601f0160208091040260200160405190810160405280929190818152602001828054610a9d906128f8565b8015610aea5780601f10610abf57610100808354040283529160200191610aea565b820191906000526020600020905b815481529060010190602001808311610acd57829003601f168201915b505050505085600081518110610b0357610b02612e59565b5b602002602001015160000181905250600385600081518110610b2857610b27612e59565b5b6020026020010151606001906004811115610b4657610b45612eeb565b5b90816004811115610b5a57610b59612eeb565b5b815250507f000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b769985600081518110610b9357610b92612e59565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506040518060400160405280601181526020017f43797068657244756465734c617965723100000000000000000000000000000081525085600181518110610c1b57610c1a612e59565b5b602002602001015160000181905250600185600181518110610c4057610c3f612e59565b5b6020026020010151606001906004811115610c5e57610c5d612eeb565b5b90816004811115610c7257610c71612eeb565b5b815250507f000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b769985600181518110610cab57610caa612e59565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506040518060400160405280601081526020017f4379706865724475646573466f6e74730000000000000000000000000000000081525085600281518110610d3357610d32612e59565b5b602002602001015160000181905250600185600281518110610d5857610d57612e59565b5b6020026020010151606001906004811115610d7657610d75612eeb565b5b90816004811115610d8a57610d89612eeb565b5b815250507f000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b769985600281518110610dc357610dc2612e59565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600b8281548110610e1557610e14612e59565b5b906000526020600020018054610e2a906128f8565b80601f0160208091040260200160405190810160405280929190818152602001828054610e56906128f8565b8015610ea35780601f10610e7857610100808354040283529160200191610ea3565b820191906000526020600020905b815481529060010190602001808311610e8657829003601f168201915b505050505085600381518110610ebc57610ebb612e59565b5b602002602001015160000181905250600185600381518110610ee157610ee0612e59565b5b6020026020010151606001906004811115610eff57610efe612eeb565b5b90816004811115610f1357610f12612eeb565b5b815250507f000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b769985600381518110610f4c57610f4b612e59565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060038054610f97906128f8565b80601f0160208091040260200160405190810160405280929190818152602001828054610fc3906128f8565b80156110105780601f10610fe557610100808354040283529160200191611010565b820191906000526020600020905b815481529060010190602001808311610ff357829003601f168201915b50505050508560048151811061102957611028612e59565b5b60200260200101516000018190525060038560048151811061104e5761104d612e59565b5b602002602001015160600190600481111561106c5761106b612eeb565b5b908160048111156110805761107f612eeb565b5b815250507f000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b7699856004815181106110b9576110b8612e59565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506111018784611655565b8560058151811061111557611114612e59565b5b602002602001015160c0018190525060018560058151811061113a57611139612e59565b5b602002602001015160600190600481111561115857611157612eeb565b5b9081600481111561116c5761116b612eeb565b5b81525050611179876117ed565b8560068151811061118d5761118c612e59565b5b602002602001015160c001819052506001856006815181106111b2576111b1612e59565b5b60200260200101516060019060048111156111d0576111cf612eeb565b5b908160048111156111e4576111e3612eeb565b5b815250506040518060400160405280601381526020017f67756e7a6970536372697074732d302e302e31000000000000000000000000008152508560078151811061123257611231612e59565b5b60200260200101516000018190525060018560078151811061125757611256612e59565b5b602002602001015160600190600481111561127557611274612eeb565b5b9081600481111561128957611288612eeb565b5b815250507f000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b7699856007815181106112c2576112c1612e59565b5b60200260200101516020019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506113086124ff565b81816000018190525085816020018190525060007f000000000000000000000000d7587f110e08f4d120a231ba97d3b577a81df02273ffffffffffffffffffffffffffffffffffffffff16632bee6807836040518263ffffffff1660e01b815260040161137591906131ce565b600060405180830381865afa158015611392573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906113bb9190613291565b90506113d16113cc828b8888611af0565b611c43565b6040516020016113e19190613362565b604051602081830303815290604052975050505050505050919050565b7f000000000000000000000000d7587f110e08f4d120a231ba97d3b577a81df02281565b61142a61150a565b81816003918261143b929190612bb3565b505050565b61144861150a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036114ba5760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016114b19190612872565b60405180910390fd5b6114c381611591565b50565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6114f461150a565b818160059182611505929190612bb3565b505050565b611512611c58565b73ffffffffffffffffffffffffffffffffffffffff166115306105b1565b73ffffffffffffffffffffffffffffffffffffffff161461158f57611553611c58565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016115869190612872565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6060600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f866040518263ffffffff1660e01b81526004016116b5919061259f565b600060405180830381865afa1580156116d2573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906116fb9190612d8a565b9250509150600882901c91506000600b836117169190612e28565b9050600883901c9250600883901c9250600060028614806117375750600386145b806117425750600886145b61174d57600861175b565b60088461175a9190612e28565b5b9050600884901c935060006009856117739190612e28565b9050600885901c94506000600c8661178b9190612e28565b905061179689611c60565b61179f85611c60565b6117a885611c60565b876117b286611c60565b6117bb86611c60565b6040516020016117d0969594939291906135e4565b604051602081830303815290604052965050505050505092915050565b60606000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f846040518263ffffffff1660e01b815260040161184c919061259f565b600060405180830381865afa158015611869573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906118929190612d8a565b509150506118c3606182106118b85760c182106118b05760806118b3565b60405b6118bb565b60205b60ff16611c60565b6118fc600360206001856118d791906136c0565b6118e191906136f4565b6118eb9190612e28565b60026118f791906136c0565b611c60565b611939600060208561190e9190612e28565b14611931576020846119209190612e28565b602061192c91906136c0565b611934565b60015b611c60565b6119dd600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e886040518263ffffffff1660e01b8152600401611997919061259f565b602060405180830381865afa1580156119b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119d8919061293e565b611dc0565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166360f9bb11611a2489611c60565b604051602001611a34919061374b565b6040516020818303038152906040526040518263ffffffff1660e01b8152600401611a5f919061274f565b600060405180830381865afa158015611a7c573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611aa59190613771565b611ac4600660008a815260200190815260200160002060000154611c60565b604051602001611ad996959493929190613982565b604051602081830303815290604052915050919050565b60606000611afd85611c60565b90506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f876040518263ffffffff1660e01b8152600401611b5c919061259f565b600060405180830381865afa158015611b79573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611ba29190612d8a565b9250505060006040518060200160405280600081525090506000825114611bfc576040518060400160405280600381526020017f202d20000000000000000000000000000000000000000000000000000000000081525090505b81818460056004878d611c108e8e8e611ded565b604051602001611c27989796959493929190614451565b6040516020818303038152906040529350505050949350505050565b6060611c5182600080612157565b9050919050565b600033905090565b606060008203611ca7576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611dbb565b600082905060005b60008214611cd9578080611cc290614526565b915050600a82611cd291906136f4565b9150611caf565b60008167ffffffffffffffff811115611cf557611cf46129e2565b5b6040519080825280601f01601f191660200182016040528015611d275781602001600182028036833780820191505090505b5090505b60008514611db457600182611d4091906136c0565b9150600a85611d4f9190612e28565b6030611d5b9190612eb7565b60f81b818381518110611d7157611d70612e59565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611dad91906136f4565b9450611d2b565b8093505050505b919050565b6060611de68273ffffffffffffffffffffffffffffffffffffffff16601460ff16612254565b9050919050565b60606000806000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f886040518263ffffffff1660e01b8152600401611e4f919061259f565b600060405180830381865afa158015611e6c573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611e959190612d8a565b925092509250600080600660008a81526020019081526020016000206000015411611ef5576040518060400160405280601181526020017f3031303131303030203031303131303031000000000000000000000000000000815250611f2c565b6040518060400160405280601181526020017f30313031313030302030313031313030300000000000000000000000000000008152505b9050600884901c93506000600b85611f449190612e28565b9050600885901c9450600885901c945060006002891480611f655750600389145b80611f705750600889145b611f7b576008611f89565b600886611f889190612e28565b5b9050600886901c95506000600987611fa19190612e28565b9050600887901c96506000600c88611fb99190612e28565b9050611fe860618810611fdd5760c18810611fd5576080611fd8565b60405b611fe0565b60205b60ff16611c60565b60076003602060018b611ffb91906136c0565b61200591906136f4565b61200f9190612e28565b815481106120205761201f612e59565b5b90600052602060002001612067600060208b61203c9190612e28565b1461205f5760208a61204e9190612e28565b602061205a91906136c0565b612062565b60015b611c60565b60088e8154811061207b5761207a612e59565b5b90600052602060002001600a888154811061209957612098612e59565b5b90600052602060002001600b8f815481106120b7576120b6612e59565b5b90600052602060002001600c89815481106120d5576120d4612e59565b5b906000526020600020018c600d8a815481106120f4576120f3612e59565b5b90600052602060002001600e8a8154811061211257612111612e59565b5b906000526020600020018e6040516020016121379b9a99989796959493929190614aec565b604051602081830303815290604052985050505050505050509392505050565b60608351801561224c576003600282010460021b60405192507f4142434445464748494a4b4c4d4e4f505152535455565758595a616263646566601f526102308515027f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392d5f03603f52602083018181015b60011561221d576003880197508751603f8160121c1651600053603f81600c1c1651600153603f8160061c1651600253603f8116516003536000518352600483019250818310612217575061221d565b506121c7565b6020810160405260038406600204613d3d60f01b81840352808715150290506000818403528084038652505050505b509392505050565b606060008390506000600284600261226c9190614c77565b6122769190612eb7565b67ffffffffffffffff81111561228f5761228e6129e2565b5b6040519080825280601f01601f1916602001820160405280156122c15781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000816000815181106122f9576122f8612e59565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061235d5761235c612e59565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600185600261239d9190614c77565b6123a79190612eb7565b90505b6001811115612447577f3031323334353637383961626364656600000000000000000000000000000000600f8416601081106123e9576123e8612e59565b5b1a60f81b828281518110612400576123ff612e59565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600483901c92508061244090614cb9565b90506123aa565b506000821461248f5784846040517fe22e27eb000000000000000000000000000000000000000000000000000000008152600401612486929190614ce2565b60405180910390fd5b809250505092915050565b6040518060e0016040528060608152602001600073ffffffffffffffffffffffffffffffffffffffff16815260200160608152602001600060048111156124e4576124e3612eeb565b5b81526020016060815260200160608152602001606081525090565b604051806040016040528060608152602001606081525090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6125408161252d565b811461254b57600080fd5b50565b60008135905061255d81612537565b92915050565b60006020828403121561257957612578612523565b5b60006125878482850161254e565b91505092915050565b6125998161252d565b82525050565b60006020820190506125b46000830184612590565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006125e5826125ba565b9050919050565b6125f5816125da565b811461260057600080fd5b50565b600081359050612612816125ec565b92915050565b60006020828403121561262e5761262d612523565b5b600061263c84828501612603565b91505092915050565b6000819050919050565b600061266a612665612660846125ba565b612645565b6125ba565b9050919050565b600061267c8261264f565b9050919050565b600061268e82612671565b9050919050565b61269e81612683565b82525050565b60006020820190506126b96000830184612695565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156126f95780820151818401526020810190506126de565b60008484015250505050565b6000601f19601f8301169050919050565b6000612721826126bf565b61272b81856126ca565b935061273b8185602086016126db565b61274481612705565b840191505092915050565b600060208201905081810360008301526127698184612716565b905092915050565b6000806040838503121561278857612787612523565b5b60006127968582860161254e565b92505060206127a78582860161254e565b9150509250929050565b600080fd5b600080fd5b600080fd5b60008083601f8401126127d6576127d56127b1565b5b8235905067ffffffffffffffff8111156127f3576127f26127b6565b5b60208301915083600182028301111561280f5761280e6127bb565b5b9250929050565b6000806020838503121561282d5761282c612523565b5b600083013567ffffffffffffffff81111561284b5761284a612528565b5b612857858286016127c0565b92509250509250929050565b61286c816125da565b82525050565b60006020820190506128876000830184612863565b92915050565b600061289882612671565b9050919050565b6128a88161288d565b82525050565b60006020820190506128c3600083018461289f565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061291057607f821691505b602082108103612923576129226128c9565b5b50919050565b600081519050612938816125ec565b92915050565b60006020828403121561295457612953612523565b5b600061296284828501612929565b91505092915050565b7f4e6f7420417574686f72697a6564000000000000000000000000000000000000600082015250565b60006129a1600e836126ca565b91506129ac8261296b565b602082019050919050565b600060208201905081810360008301526129d081612994565b9050919050565b600082905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302612a737fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612a36565b612a7d8683612a36565b95508019841693508086168417925050509392505050565b6000612ab0612aab612aa68461252d565b612645565b61252d565b9050919050565b6000819050919050565b612aca83612a95565b612ade612ad682612ab7565b848454612a43565b825550505050565b600090565b612af3612ae6565b612afe818484612ac1565b505050565b5b81811015612b2257612b17600082612aeb565b600181019050612b04565b5050565b601f821115612b6757612b3881612a11565b612b4184612a26565b81016020851015612b50578190505b612b64612b5c85612a26565b830182612b03565b50505b505050565b600082821c905092915050565b6000612b8a60001984600802612b6c565b1980831691505092915050565b6000612ba38383612b79565b9150826002028217905092915050565b612bbd83836129d7565b67ffffffffffffffff811115612bd657612bd56129e2565b5b612be082546128f8565b612beb828285612b26565b6000601f831160018114612c1a5760008415612c08578287013590505b612c128582612b97565b865550612c7a565b601f198416612c2886612a11565b60005b82811015612c5057848901358255600182019150602085019450602081019050612c2b565b86831015612c6d5784890135612c69601f891682612b79565b8355505b6001600288020188555050505b50505050505050565b600081519050612c9281612537565b92915050565b600080fd5b612ca682612705565b810181811067ffffffffffffffff82111715612cc557612cc46129e2565b5b80604052505050565b6000612cd8612519565b9050612ce48282612c9d565b919050565b600067ffffffffffffffff821115612d0457612d036129e2565b5b612d0d82612705565b9050602081019050919050565b6000612d2d612d2884612ce9565b612cce565b905082815260208101848484011115612d4957612d48612c98565b5b612d548482856126db565b509392505050565b600082601f830112612d7157612d706127b1565b5b8151612d81848260208601612d1a565b91505092915050565b600080600060608486031215612da357612da2612523565b5b6000612db186828701612c83565b9350506020612dc286828701612c83565b925050604084015167ffffffffffffffff811115612de357612de2612528565b5b612def86828701612d5c565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000612e338261252d565b9150612e3e8361252d565b925082612e4e57612e4d612df9565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612ec28261252d565b9150612ecd8361252d565b9250828201905080821115612ee557612ee4612e88565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600082825260208201905092915050565b6000612f62826126bf565b612f6c8185612f46565b9350612f7c8185602086016126db565b612f8581612705565b840191505092915050565b612f99816125da565b82525050565b600081519050919050565b600082825260208201905092915050565b6000612fc682612f9f565b612fd08185612faa565b9350612fe08185602086016126db565b612fe981612705565b840191505092915050565b6005811061300557613004612eeb565b5b50565b600081905061301682612ff4565b919050565b600061302682613008565b9050919050565b6130368161301b565b82525050565b600060e08301600083015184820360008601526130598282612f57565b915050602083015161306e6020860182612f90565b50604083015184820360408601526130868282612fbb565b915050606083015161309b606086018261302d565b50608083015184820360808601526130b38282612fbb565b91505060a083015184820360a08601526130cd8282612fbb565b91505060c083015184820360c08601526130e78282612fbb565b9150508091505092915050565b6000613100838361303c565b905092915050565b6000602082019050919050565b600061312082612f1a565b61312a8185612f25565b93508360208202850161313c85612f36565b8060005b85811015613178578484038952815161315985826130f4565b945061316483613108565b925060208a01995050600181019050613140565b50829750879550505050505092915050565b600060408301600083015184820360008601526131a78282613115565b915050602083015184820360208601526131c18282613115565b9150508091505092915050565b600060208201905081810360008301526131e8818461318a565b905092915050565b600067ffffffffffffffff82111561320b5761320a6129e2565b5b61321482612705565b9050602081019050919050565b600061323461322f846131f0565b612cce565b9050828152602081018484840111156132505761324f612c98565b5b61325b8482856126db565b509392505050565b600082601f830112613278576132776127b1565b5b8151613288848260208601613221565b91505092915050565b6000602082840312156132a7576132a6612523565b5b600082015167ffffffffffffffff8111156132c5576132c4612528565b5b6132d184828501613263565b91505092915050565b600081905092915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b600061331b601d836132da565b9150613326826132e5565b601d82019050919050565b600061333c826126bf565b61334681856132da565b93506133568185602086016126db565b80840191505092915050565b600061336d8261330e565b91506133798284613331565b915081905092915050565b7f6c657420746f6b656e4964203d20000000000000000000000000000000000000600082015250565b60006133ba600e836132da565b91506133c582613384565b600e82019050919050565b7f3b00000000000000000000000000000000000000000000000000000000000000600082015250565b60006134066001836132da565b9150613411826133d0565b600182019050919050565b7f6c6574206c6179657231203d2000000000000000000000000000000000000000600082015250565b6000613452600d836132da565b915061345d8261341c565b600d82019050919050565b7f6c6574206c6179657233203d2000000000000000000000000000000000000000600082015250565b600061349e600d836132da565b91506134a982613468565b600d82019050919050565b7f6c657420736563726574576f7264203d20270000000000000000000000000000600082015250565b60006134ea6012836132da565b91506134f5826134b4565b601282019050919050565b7f273b000000000000000000000000000000000000000000000000000000000000600082015250565b60006135366002836132da565b915061354182613500565b600282019050919050565b7f6c657420626974456e7669726f6e6d656e74203d200000000000000000000000600082015250565b60006135826015836132da565b915061358d8261354c565b601582019050919050565b7f6c65742062697450616c65747465203d20000000000000000000000000000000600082015250565b60006135ce6011836132da565b91506135d982613598565b601182019050919050565b60006135ef826133ad565b91506135fb8289613331565b9150613606826133f9565b915061361182613445565b915061361d8288613331565b9150613628826133f9565b915061363382613491565b915061363f8287613331565b915061364a826133f9565b9150613655826134dd565b91506136618286613331565b915061366c82613529565b915061367782613575565b91506136838285613331565b915061368e826133f9565b9150613699826135c1565b91506136a58284613331565b91506136b0826133f9565b9150819050979650505050505050565b60006136cb8261252d565b91506136d68361252d565b92508282039050818111156136ee576136ed612e88565b5b92915050565b60006136ff8261252d565b915061370a8361252d565b92508261371a57613719612df9565b5b828204905092915050565b7f637970686572436172645f000000000000000000000000000000000000000000815250565b600061375682613725565b600b820191506137668284613331565b915081905092915050565b60006020828403121561378757613786612523565b5b600082015167ffffffffffffffff8111156137a5576137a4612528565b5b6137b184828501612d5c565b91505092915050565b7f6c6574206772696453697a65203d200000000000000000000000000000000000600082015250565b60006137f0600f836132da565b91506137fb826137ba565b600f82019050919050565b7f6c657420677269645265736f6c7574696f6e203d200000000000000000000000600082015250565b600061383c6015836132da565b915061384782613806565b601582019050919050565b7f6c6574206c6576656c50726f6772657373696f6e203d20000000000000000000600082015250565b60006138886017836132da565b915061389382613852565b601782019050919050565b7f6c6574206f776e657241646479203d2027000000000000000000000000000000600082015250565b60006138d46011836132da565b91506138df8261389e565b601182019050919050565b7f6c6574206d657373616765203d20270000000000000000000000000000000000600082015250565b6000613920600f836132da565b915061392b826138ea565b600f82019050919050565b7f6c6574206c7362203d2000000000000000000000000000000000000000000000600082015250565b600061396c600a836132da565b915061397782613936565b600a82019050919050565b600061398d826137e3565b91506139998289613331565b91506139a4826133f9565b91506139af8261382f565b91506139bb8288613331565b91506139c6826133f9565b91506139d18261387b565b91506139dd8287613331565b91506139e8826133f9565b91506139f3826138c7565b91506139ff8286613331565b9150613a0a82613529565b9150613a1582613913565b9150613a218285613331565b9150613a2c82613529565b9150613a378261395f565b9150613a438284613331565b9150613a4e826133f9565b9150819050979650505050505050565b7f7b226e616d65223a202200000000000000000000000000000000000000000000600082015250565b6000613a94600a836132da565b9150613a9f82613a5e565b600a82019050919050565b7f4359504845524455444520230000000000000000000000000000000000000000600082015250565b6000613ae0600c836132da565b9150613aeb82613aaa565b600c82019050919050565b7f222c20226465736372697074696f6e223a22437970686572647564657320697360008201527f20612067656e657261746976652063727970746f61727420736572696573207060208201527f6179696e67207472696275746520746f207468652043797068657270756e6b2060408201527f6d6f76656d656e742c20776869636820686173206265656e2063616d7061696760608201527f6e696e6720666f72207468652070726f74656374696f6e206f6620707269766160808201527f6379206f6e2074686520696e7465726e65742073696e6365207468652065617260a08201527f6c79203930732c20616e642077617320626568696e642074686520637265617460c08201527f696f6e206f6620626974636f696e20696e20323030382e54686973207365726960e08201527f65732074616b657320757020746865206772617068696320756e6976657273656101008201527f206f662061206368617261637465722074686174204920696e76656e746564206101208201527f616e64206761696e656420736f6d6520706f70756c617269747920696e2074686101408201527f652063727970746f20617274207363656e65203a207468652063727970746f646101608201527f7564652e4120706572736f6e696669636174696f6e206f662063727970746f206101808201527f63756c747572652c20746865204379706865726475646520706572666f726d736101a08201527f20616374696f6e7320746861742076697375616c6c79207472616e736c6174656101c08201527f207468652065787072657373696f6e7320616e64206265686176696f727320736101e08201527f7065636966696320746f20746869732065636f73797374656d2e4561636820776102008201527f6f726b20696e207468652073657269657320697320756e6971756520616e64206102208201527f67656e6572617465642066726f6d20616e20616c676f726974686d20686f73746102408201527f6564206469726563746c79206f6e2074686520626c6f636b636861696e2e20546102608201527f686520706172616d657465727320636f6d706f73696e67206561636820776f726102808201527f6b206172652073656c65637465642066726f6d206120776964652072616e67656102a08201527f206f6620656c656d656e7473206372656174656420696e646976696475616c6c6102c08201527f79206279206d7973656c6620616e6420636f6d62696e656420696e20612073656102e08201527f656465642072616e646f6d207761792e204561636820736565642069732064656103008201527f7465726d696e65642062792074686520626c6f636b636861696e206f6e206d696103208201527f6e742e54686520776f726b20616e6420746865204d6573736167652e456163686103408201527f206f776e6572206f66206120776f726b2066726f6d20746865207365726965736103608201527f206861732061636365737320746f20612068696464656e2066656174757265206103808201527f3a20746865206162696c69747920746f20696e73637269626520616e20656e636103a08201527f727970746564206d65737361676520696e2074686520776f726b20697473656c6103c08201527f662e2054686520656e6372797074696f6e206b657920697320646563696465646103e08201527f20627920746865206f776e6572206f6e20657665727920696e736372697074696104008201527f6f6e2e2054686973206d6573736167652063616e207468656e206f6e6c7920626104208201527f65206465636f646564206279206120726563697069656e74206b6e6f77696e676104408201527f20746865206b65792e2054686973207761792c2074686520776f726b206265636104608201527f6f6d6573206120766572697461626c6520746f6f6c20617420746865207365726104808201527f76696365206f6620697473206f776e65722c2077686f2c206279207573696e676104a08201527f2069742c206d616b65732069742065766f6c76652076697375616c6c792075736104c08201527f696e6720612073696d706c652073746567616e6f6772617068696320746563686104e08201527f6e697175652e5468652043797068657264756465732074687573206265636f6d6105008201527f6573207468652076697375616c207769746e65737320746f20746865207072656105208201527f73656e6365206f662061206d6573736167652c20616e642069747320646967696105408201527f74616c207365637572697479207661756c742e222c000000000000000000000061056082015250565b60006141b3610575836132da565b91506141be82613af6565b61057582019050919050565b7f2265787465726e616c5f75726c223a2022000000000000000000000000000000600082015250565b60006142006011836132da565b915061420b826141ca565b601182019050919050565b60008154614223816128f8565b61422d81866132da565b94506001821660008114614248576001811461425d57614290565b60ff1983168652811515820286019350614290565b61426685612a11565b60005b8381101561428857815481890152600182019150602081019050614269565b838801955050505b50505092915050565b7f222c2022696d616765223a202200000000000000000000000000000000000000600082015250565b60006142cf600d836132da565b91506142da82614299565b600d82019050919050565b7f2e73766722000000000000000000000000000000000000000000000000000000600082015250565b600061431b6005836132da565b9150614326826142e5565b600582019050919050565b7f2c2022616e696d6174696f6e5f75726c223a2022000000000000000000000000600082015250565b60006143676014836132da565b915061437282614331565b601482019050919050565b600081905092915050565b600061439382612f9f565b61439d818561437d565b93506143ad8185602086016126db565b80840191505092915050565b7f222c202261747472696275746573223a205b0000000000000000000000000000600082015250565b60006143ef6012836132da565b91506143fa826143b9565b601282019050919050565b7f5d7d000000000000000000000000000000000000000000000000000000000000600082015250565b600061443b6002836132da565b915061444682614405565b600282019050919050565b600061445c82613a87565b9150614468828b613331565b9150614474828a613331565b915061447f82613ad3565b915061448b8289613331565b9150614496826141a5565b91506144a1826141f3565b91506144ad8288614216565b91506144b8826142c2565b91506144c48287614216565b91506144d08286613331565b91506144db8261430e565b91506144e68261435a565b91506144f28285614388565b91506144fd826143e2565b91506145098284613331565b91506145148261442e565b91508190509998505050505050505050565b60006145318261252d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361456357614562612e88565b5b600182019050919050565b7f7b2274726169745f74797065223a22477269642053697a65222c2276616c756560008201527f22203a2200000000000000000000000000000000000000000000000000000000602082015250565b60006145ca6024836132da565b91506145d58261456e565b602482019050919050565b7f227d2c0000000000000000000000000000000000000000000000000000000000600082015250565b60006146166003836132da565b9150614621826145e0565b600382019050919050565b7f7b2274726169745f74797065223a2247726964205265736f6c7574696f6e222c60008201527f2276616c756522203a2200000000000000000000000000000000000000000000602082015250565b6000614688602a836132da565b91506146938261462c565b602a82019050919050565b7f7b2274726169745f74797065223a224c6576656c2050726f6772657373696f6e60008201527f222c2276616c756522203a220000000000000000000000000000000000000000602082015250565b60006146fa602c836132da565b91506147058261469e565b602c82019050919050565b7f7b2274726169745f74797065223a22416374696f6e222c2276616c756522203a60008201527f2200000000000000000000000000000000000000000000000000000000000000602082015250565b600061476c6021836132da565b915061477782614710565b602182019050919050565b7f7b2274726169745f74797065223a224c617965722031222c2276616c7565222060008201527f3a22000000000000000000000000000000000000000000000000000000000000602082015250565b60006147de6022836132da565b91506147e982614782565b602282019050919050565b7f7b2274726169745f74797065223a224c617965722032222c2276616c7565222060008201527f3a22000000000000000000000000000000000000000000000000000000000000602082015250565b60006148506022836132da565b915061485b826147f4565b602282019050919050565b7f7b2274726169745f74797065223a224c617965722033222c2276616c7565222060008201527f3a22000000000000000000000000000000000000000000000000000000000000602082015250565b60006148c26022836132da565b91506148cd82614866565b602282019050919050565b7f7b2274726169745f74797065223a2253656372657420576f7264222c2276616c60008201527f756522203a220000000000000000000000000000000000000000000000000000602082015250565b60006149346026836132da565b915061493f826148d8565b602682019050919050565b7f7b2274726169745f74797065223a2242697420456e7669726f6e6d656e74222c60008201527f2276616c756522203a2200000000000000000000000000000000000000000000602082015250565b60006149a6602a836132da565b91506149b18261494a565b602a82019050919050565b7f7b2274726169745f74797065223a224269742050616c65747465222c2276616c60008201527f756522203a220000000000000000000000000000000000000000000000000000602082015250565b6000614a186026836132da565b9150614a23826149bc565b602682019050919050565b7f7b2274726169745f74797065223a224c65617374205369676e69666963616e7460008201527f20426974222c2276616c756522203a2200000000000000000000000000000000602082015250565b6000614a8a6030836132da565b9150614a9582614a2e565b603082019050919050565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b6000614ad66002836132da565b9150614ae182614aa0565b600282019050919050565b6000614af7826145bd565b9150614b03828e613331565b9150614b0e82614609565b9150614b198261467b565b9150614b25828d614216565b9150614b3082614609565b9150614b3b826146ed565b9150614b47828c613331565b9150614b5282614609565b9150614b5d8261475f565b9150614b69828b614216565b9150614b7482614609565b9150614b7f826147d1565b9150614b8b828a614216565b9150614b9682614609565b9150614ba182614843565b9150614bad8289614216565b9150614bb882614609565b9150614bc3826148b5565b9150614bcf8288614216565b9150614bda82614609565b9150614be582614927565b9150614bf18287613331565b9150614bfc82614609565b9150614c0782614999565b9150614c138286614216565b9150614c1e82614609565b9150614c2982614a0b565b9150614c358285614216565b9150614c4082614609565b9150614c4b82614a7d565b9150614c578284613331565b9150614c6282614ac9565b91508190509c9b505050505050505050505050565b6000614c828261252d565b9150614c8d8361252d565b9250828202614c9b8161252d565b91508282048414831517614cb257614cb1612e88565b5b5092915050565b6000614cc48261252d565b915060008203614cd757614cd6612e88565b5b600182039050919050565b6000604082019050614cf76000830185612590565b614d046020830184612590565b939250505056fe68746d6c7b6f766572666c6f773a68696464656e7d626f64797b6d617267696e3a303b70616464696e673a307da2646970667358221220952f44bf05a7dcbf6a114b11c696e911bc31fd56c7e3ce7f0772d7d39ff64bf464736f6c63430008160033

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

000000000000000000000000d7587f110e08f4d120a231ba97d3b577a81df022000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b76990000000000000000000000009181580fce530e5fbd8dba7141fc0ccbb8e59b8b00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000003768747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f63797068657264756465732e61707073706f742e636f6d2f000000000000000000000000000000000000000000000000000000000000000000000000000000000f63797068657264756465732e636f6d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d4379706865724475646573563300000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _scriptyBuilderAddress (address): 0xD7587F110E08F4D120A231bA97d3B577A81Df022
Arg [1] : _scriptyStorageAddress (address): 0xbD11994aABB55Da86DC246EBB17C1Be0af5b7699
Arg [2] : filestore_ (address): 0x9181580FCe530e5FBD8DbA7141Fc0cCBb8e59b8B
Arg [3] : baseImageURI_ (string): https://storage.googleapis.com/cypherdudes.appspot.com/
Arg [4] : website_ (string): cypherdudes.com
Arg [5] : cypherdudeScript_ (string): CypherDudesV3

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 000000000000000000000000d7587f110e08f4d120a231ba97d3b577a81df022
Arg [1] : 000000000000000000000000bd11994aabb55da86dc246ebb17c1be0af5b7699
Arg [2] : 0000000000000000000000009181580fce530e5fbd8dba7141fc0ccbb8e59b8b
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000037
Arg [7] : 68747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f63
Arg [8] : 797068657264756465732e61707073706f742e636f6d2f000000000000000000
Arg [9] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [10] : 63797068657264756465732e636f6d0000000000000000000000000000000000
Arg [11] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [12] : 4379706865724475646573563300000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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