ETH Price: $3,255.92 (-2.97%)

Token

CyberPhunks (CYBERPHUNK)
 

Overview

Max Total Supply

10,000 CYBERPHUNK

Holders

1,384

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
benthic.eth
Balance
2 CYBERPHUNK
0x40d0B2074682D33ECE02f2d15795958c5B440452
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
CyberPhunks

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 18 : CyberPhunks.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.0 <0.9.0;
pragma abicoder v2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/Address.sol";

import "base64-sol/base64.sol";
import "erc721a/contracts/ERC721A.sol";

import "./sstore2/SSTORE2.sol";
import "./utils/DynamicBuffer.sol";

import "./StringUtilsLib.sol";

import "hardhat/console.sol";

interface PunkDataInterface {
    function punkImage(uint16 index) external view returns (bytes memory);
    function punkAttributes(uint16 index) external view returns (string memory);
}

interface ExtendedPunkDataInterface {
    enum PunkAttributeType {SEX, HAIR, EYES, BEARD, EARS, LIPS, MOUTH,
                                FACE, EMOTION, NECK, NOSE, CHEEKS, TEETH}
    
    enum PunkAttributeValue {NONE, ALIEN, APE, BANDANA, BEANIE, BIG_BEARD, BIG_SHADES, BLACK_LIPSTICK, BLONDE_BOB, BLONDE_SHORT, BLUE_EYE_SHADOW, BUCK_TEETH, CAP, CAP_FORWARD, CHINSTRAP, CHOKER, CIGARETTE, CLASSIC_SHADES, CLOWN_EYES_BLUE, CLOWN_EYES_GREEN, CLOWN_HAIR_GREEN, CLOWN_NOSE, COWBOY_HAT, CRAZY_HAIR, DARK_HAIR, DO_RAG, EARRING, EYE_MASK, EYE_PATCH, FEDORA, FEMALE, FRONT_BEARD, FRONT_BEARD_DARK, FROWN, FRUMPY_HAIR, GOAT, GOLD_CHAIN, GREEN_EYE_SHADOW, HALF_SHAVED, HANDLEBARS, HEADBAND, HOODIE, HORNED_RIM_GLASSES, HOT_LIPSTICK, KNITTED_CAP, LUXURIOUS_BEARD, MALE, MEDICAL_MASK, MESSY_HAIR, MOHAWK, MOHAWK_DARK, MOHAWK_THIN, MOLE, MUSTACHE, MUTTONCHOPS, NERD_GLASSES, NORMAL_BEARD, NORMAL_BEARD_BLACK, ORANGE_SIDE, PEAK_SPIKE, PIGTAILS, PILOT_HELMET, PINK_WITH_HAT, PIPE, POLICE_CAP, PURPLE_EYE_SHADOW, PURPLE_HAIR, PURPLE_LIPSTICK, RED_MOHAWK, REGULAR_SHADES, ROSY_CHEEKS, SHADOW_BEARD, SHAVED_HEAD, SILVER_CHAIN, SMALL_SHADES, SMILE, SPOTS, STRAIGHT_HAIR, STRAIGHT_HAIR_BLONDE, STRAIGHT_HAIR_DARK, STRINGY_HAIR, TASSLE_HAT, THREE_D_GLASSES, TIARA, TOP_HAT, VAMPIRE_HAIR, VAPE, VR, WELDING_GOGGLES, WILD_BLONDE, WILD_HAIR, WILD_WHITE_HAIR, ZOMBIE}
    
    function attrStringToEnumMapping(string memory) external view returns (ExtendedPunkDataInterface.PunkAttributeValue);
    function attrEnumToStringMapping(PunkAttributeValue) external view returns (string memory);
    function attrValueToTypeEnumMapping(PunkAttributeValue) external view returns (ExtendedPunkDataInterface.PunkAttributeType);
}

contract CyberPhunks is Ownable, ERC721A {
    enum PunkAttributeType {SEX, HAIR, EYES, BEARD, EARS, LIPS, MOUTH,
                                FACE, EMOTION, NECK, NOSE, CHEEKS, TEETH}
    
    enum PunkAttributeValue {NONE, ALIEN, APE, BANDANA, BEANIE, BIG_BEARD, BIG_SHADES, BLACK_LIPSTICK, BLONDE_BOB, BLONDE_SHORT, BLUE_EYE_SHADOW, BUCK_TEETH, CAP, CAP_FORWARD, CHINSTRAP, CHOKER, CIGARETTE, CLASSIC_SHADES, CLOWN_EYES_BLUE, CLOWN_EYES_GREEN, CLOWN_HAIR_GREEN, CLOWN_NOSE, COWBOY_HAT, CRAZY_HAIR, DARK_HAIR, DO_RAG, EARRING, EYE_MASK, EYE_PATCH, FEDORA, FEMALE, FRONT_BEARD, FRONT_BEARD_DARK, FROWN, FRUMPY_HAIR, GOAT, GOLD_CHAIN, GREEN_EYE_SHADOW, HALF_SHAVED, HANDLEBARS, HEADBAND, HOODIE, HORNED_RIM_GLASSES, HOT_LIPSTICK, KNITTED_CAP, LUXURIOUS_BEARD, MALE, MEDICAL_MASK, MESSY_HAIR, MOHAWK, MOHAWK_DARK, MOHAWK_THIN, MOLE, MUSTACHE, MUTTONCHOPS, NERD_GLASSES, NORMAL_BEARD, NORMAL_BEARD_BLACK, ORANGE_SIDE, PEAK_SPIKE, PIGTAILS, PILOT_HELMET, PINK_WITH_HAT, PIPE, POLICE_CAP, PURPLE_EYE_SHADOW, PURPLE_HAIR, PURPLE_LIPSTICK, RED_MOHAWK, REGULAR_SHADES, ROSY_CHEEKS, SHADOW_BEARD, SHAVED_HEAD, SILVER_CHAIN, SMALL_SHADES, SMILE, SPOTS, STRAIGHT_HAIR, STRAIGHT_HAIR_BLONDE, STRAIGHT_HAIR_DARK, STRINGY_HAIR, TASSLE_HAT, THREE_D_GLASSES, TIARA, TOP_HAT, VAMPIRE_HAIR, VAPE, VR, WELDING_GOGGLES, WILD_BLONDE, WILD_HAIR, WILD_WHITE_HAIR, ZOMBIE}
    
    struct CyberPhunk {
        uint16 id;
        PunkAttributeValue sex;
        PunkAttributeValue hair;
        PunkAttributeValue eyes;
        PunkAttributeValue beard;
        PunkAttributeValue ears;
        PunkAttributeValue lips;
        PunkAttributeValue mouth;
        PunkAttributeValue face;
        PunkAttributeValue emotion;
        PunkAttributeValue neck;
        PunkAttributeValue nose;
        PunkAttributeValue cheeks;
        PunkAttributeValue teeth;
    }
    
    using StringUtils for string;
    using Address for address;
    using DynamicBuffer for bytes;
    using Strings for uint256;
    using Strings for uint16;
    using Strings for uint8;
    
    uint public constant costPerToken = 0.005 ether;
    
    uint public constant maxSupply = 10_000;
    
    uint public constant mintBatchSize = 30;
    
    bool public isMintActive;
    
    bytes public constant externalLink = "https://capsule21.com/collections/cyberphunks";
    
    bool public contractSealed;
    
    bytes constant tokenDescription = "One of 10,000 tokens in the CYBERPHUNK collection, an on-chain transformation of the original CryptoPunks.";
    
    PunkDataInterface public immutable punkDataContract;
    ExtendedPunkDataInterface public immutable extendedPunkDataContract;
    
    address private phunkRarities;
    
    mapping (string => string) public colorMapping;
    
    function setColorMapping(string[][] memory _colorMapping) public onlyOwner unsealed {
        for (uint i = 0; i < _colorMapping.length; i++) {
            colorMapping[_colorMapping[i][0]] = _colorMapping[i][1];
        }
    }
    
    mapping(PunkAttributeValue => bool) public attributeIsLit;
    
    function setColorIsLit(PunkAttributeValue[] memory litColors) public onlyOwner unsealed {
        for (uint i = 0; i < litColors.length; i++) {
            attributeIsLit[litColors[i]] = true;
        }
    }
    
    address public phunkColorCounts;
    
    function setPhunkColorCounts(bytes memory counts) public onlyOwner unsealed {
        phunkColorCounts = SSTORE2.write(counts);
    }
    
    function getPhunkColorCount(uint16 punkId) public view returns (uint8) {
        bytes memory allCounts = SSTORE2.read(phunkColorCounts);
        return (uint8(allCounts[punkId]) - 1); // Don't count background
    }
    
    address public phunkRarityRanks;
    
    function setPhunkRarityRanks(bytes memory ranks) public onlyOwner unsealed {
        phunkRarityRanks = SSTORE2.write(ranks);
    }
    
    function getPhunkRarityRank(uint16 punkId) public view returns (uint16) {
        bytes memory allRanks = SSTORE2.read(phunkRarityRanks);
        
        uint big = uint16(uint8(allRanks[punkId * 2]) * 2 ** 8);
        uint small = uint8(allRanks[punkId * 2 + 1]);
        
        return uint16(big + small + 1); // + 1 to account for 0th index
    }
    
    modifier unsealed() {
        require(!contractSealed, "Contract sealed.");
        _;
    }
    
    function sealContract() external onlyOwner unsealed {
        contractSealed = true;
    }
    
    function flipMintState() external onlyOwner {
        isMintActive = !isMintActive;
    }
    
    constructor(address punkDataContractAddress, address extendedPunkDataContractAddress)
        ERC721A("CyberPhunks", "CYBERPHUNK") {
        punkDataContract = PunkDataInterface(punkDataContractAddress);
        extendedPunkDataContract = ExtendedPunkDataInterface(extendedPunkDataContractAddress);
    }
    
    function _internalMint(address toAddress, uint numTokens) private {
        require(msg.value == totalMintCost(numTokens), "Need exact payment");
        require(msg.sender == tx.origin, "Contracts cannot mint");
        require(numTokens + totalSupply() <= maxSupply, "Supply limit reached.");
        require(isMintActive, "Mint is not active");
        require(numTokens > 0, "Mint at least one");
        
        uint batchCount = numTokens / mintBatchSize;
        uint remainder = numTokens % mintBatchSize;
        
        for (uint i; i < batchCount; i++) {
            _mint(toAddress, mintBatchSize);
        }
        
        if (remainder > 0) {
            _mint(toAddress, remainder);
        }
    }
    
    function airdrop(address toAddress, uint numTokens) external payable {
        _internalMint(toAddress, numTokens);
    }
    
    function mint(uint numTokens) external payable {
        _internalMint(msg.sender, numTokens);
    }
    
    function exists(uint tokenId) external view returns (bool) {
        return _exists(tokenId);
    }
    
    function tokenURI(uint256 id) public view override returns (string memory) {
        require(_exists(id), "Token does not exist");

        return constructTokenURI(uint16(id));
    }
    
    function constructTokenURI(uint16 tokenId) private view returns (string memory) {
        bytes memory svg = bytes(tokenImage(tokenId));
        
        bytes memory title = abi.encodePacked("CyberPhunk #", tokenId.toString());
        
        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(
                        bytes(
                            abi.encodePacked(
                                '{',
                                '"name":"', title, '",'
                                '"description":"', tokenDescription, '",'
                                '"image_data":"data:image/svg+xml;base64,', Base64.encode(svg), '",'
                                '"external_url":"', externalLink, '",'
                                '"attributes": ',
                                    punkAttributesAsJSON(tokenId),
                                '}'
                            )
                        )
                    )
                )
            );
    }
    
    function stringCompare(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(abi.encodePacked(a)) == keccak256(abi.encodePacked(b));
    }
    
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
    
    function tokenImage(uint16 tokenId) public view returns (string memory) {
        CyberPhunk memory phunk = initializePunk(tokenId);
        
        bytes memory pixels = punkDataContract.punkImage(uint16(tokenId));
        
        bytes memory svgBytes = DynamicBuffer.allocate(1024 * 128);
        
        svgBytes.appendSafe('<svg width="1200" height="1200" shape-rendering="crispEdges" xmlns="http://www.w3.org/2000/svg" version="1.2" viewBox="0 0 24 24"><style>rect{width:1px;height:1px}</style><rect x="0" y="0" style="width:100%;height:100%" fill="#3c2a3c" />');
        
        bytes memory buffer = new bytes(8);
        for (uint256 y = 0; y < 24; y++) {
            for (uint256 x = 0; x < 24; x++) {
                uint256 p = (y * 24 + x) * 4;
                if (uint8(pixels[p + 3]) > 0) {
                    for (uint256 i = 0; i < 4; i++) {
                        uint8 value = uint8(pixels[p + i]);
                        
                        buffer[i * 2 + 1] = _HEX_SYMBOLS[value & 0xf];
                        value >>= 4;
                        buffer[i * 2] = _HEX_SYMBOLS[value & 0xf];
                    }
                    
                    uint flippedX = 23 - x;
                    
                    string memory oldColor = string(buffer);
                    string memory newColor;
                    
                    uint row = flippedX;
                    uint col = y;
                    
                    if (
                            ((row == 8 && col == 12) || (row == 13 && col == 12)) &&
                            stringCompare(oldColor, "9be0e0ff")
                        ) {
                        newColor = "9be0e0ff";
                    } else if (
                        ((row == 10 && col == 18) || (row == 12 && col == 18)) &&
                        stringCompare(oldColor, "dacdbbff")
                        ) {
                        newColor = "ffffffff";
                    } else if (
                        ((row == 14 && col == 7) || (row == 15 && col == 8) || (row == 14 && col == 9)) &&
                        changeWhite(phunk) &&
                        stringCompare(oldColor, "ffffffff")
                    ) {
                        newColor = "664259ff";
                    } else {
                        newColor = colorMapping[oldColor];
                    }
                    
                    svgBytes.appendSafe(
                        abi.encodePacked(
                            '<rect x="',
                            flippedX.toString(),
                            '" y="',
                            y.toString(),
                            '" fill="#',
                            newColor,
                            '"/>'
                        )
                    );
                }
            }
        }
        
        svgBytes.appendSafe('</svg>');
        return string(svgBytes);
    }
    
    address constant doveAddress = 0x5FD2E3ba05C862E62a34B9F63c45C0DF622Ac112;
    address constant middleAddress = 0xC2172a6315c1D7f6855768F843c420EbB36eDa97;
    
    function withdraw() external {
        require(address(this).balance > 0, "Nothing to withdraw");
        
        uint total = address(this).balance;
        uint half = total / 2;
        
        Address.sendValue(payable(middleAddress), half);
        Address.sendValue(payable(doveAddress), total - half);
    }
    
    function creators() public pure returns (address[2] memory) {
        return [doveAddress, middleAddress];
    }
    
    function totalMintCost(uint numTokens) public pure returns (uint) {
        return numTokens * costPerToken;
    }
    
    function changeWhite(CyberPhunk memory phunk) public pure returns (bool) {
        if (phunk.hair != PunkAttributeValue.WILD_WHITE_HAIR &&
            phunk.hair != PunkAttributeValue.HEADBAND &&
            phunk.hair != PunkAttributeValue.POLICE_CAP) {
                return true;
            }
            
        return false;
    }
    
    function walletOfOwner(address _owner)
        external
        view
        returns (uint[] memory)
    {
        uint ownerTokenCount = balanceOf(_owner);
        uint[] memory ownedTokenIds = new uint[](ownerTokenCount);
        uint currentTokenId = 0;
        uint ownedTokenIndex = 0;

        while (ownedTokenIndex < ownerTokenCount && currentTokenId < maxSupply) {
            address currentTokenOwner = _exists(currentTokenId) ? ownerOf(currentTokenId) : address(0);

            if (currentTokenOwner == _owner) {
                ownedTokenIds[ownedTokenIndex] = currentTokenId;

                ownedTokenIndex++;
            }

            currentTokenId++;
        }

        return ownedTokenIds;
    }
    
    function initializePunk(uint16 punkId) private view returns (CyberPhunk memory) {
        CyberPhunk memory phunk = CyberPhunk({
            id: punkId,
            sex: PunkAttributeValue.NONE,
            hair: PunkAttributeValue.NONE,
            eyes: PunkAttributeValue.NONE,
            beard: PunkAttributeValue.NONE,
            ears: PunkAttributeValue.NONE,
            lips: PunkAttributeValue.NONE,
            mouth: PunkAttributeValue.NONE,
            face: PunkAttributeValue.NONE,
            emotion: PunkAttributeValue.NONE,
            neck: PunkAttributeValue.NONE,
            nose: PunkAttributeValue.NONE,
            cheeks: PunkAttributeValue.NONE,
            teeth: PunkAttributeValue.NONE
        });
        
        phunk.id = punkId;
        
        string memory attributes = punkDataContract.punkAttributes(phunk.id);

        string[] memory attributeArray = attributes.split(",");
        
        for (uint i = 0; i < attributeArray.length; i++) {
            string memory untrimmedAttribute = attributeArray[i];
            string memory trimmedAttribute;
            
            if (i < 1) {
                trimmedAttribute = untrimmedAttribute.split(' ')[0];
            } else {
                trimmedAttribute = untrimmedAttribute._substring(int(bytes(untrimmedAttribute).length - 1), 1);
            }
            
            PunkAttributeValue attrValue = PunkAttributeValue(uint(extendedPunkDataContract.attrStringToEnumMapping(trimmedAttribute)));
            PunkAttributeType attrType = PunkAttributeType(uint(extendedPunkDataContract.attrValueToTypeEnumMapping(ExtendedPunkDataInterface.PunkAttributeValue(uint(attrValue)))));
            
            if (attrType == PunkAttributeType.SEX) {
                phunk.sex = attrValue;
            } else if (attrType == PunkAttributeType.HAIR) {
                phunk.hair = attrValue;
            } else if (attrType == PunkAttributeType.EYES) {
                phunk.eyes = attrValue;
            } else if (attrType == PunkAttributeType.BEARD) {
                phunk.beard = attrValue;
            } else if (attrType == PunkAttributeType.EARS) {
                phunk.ears = attrValue;
            } else if (attrType == PunkAttributeType.LIPS) {
                phunk.lips = attrValue;
            } else if (attrType == PunkAttributeType.MOUTH) {
                phunk.mouth = attrValue;
            } else if (attrType == PunkAttributeType.FACE) {
                phunk.face = attrValue;
            } else if (attrType == PunkAttributeType.EMOTION) {
                phunk.emotion = attrValue;
            } else if (attrType == PunkAttributeType.NECK) {
                phunk.neck = attrValue;
            } else if (attrType == PunkAttributeType.NOSE) {
                phunk.nose = attrValue;
            } else if (attrType == PunkAttributeType.CHEEKS) {
                phunk.cheeks = attrValue;
            } else if (attrType == PunkAttributeType.TEETH) {
                phunk.teeth = attrValue;
            }
        }
        
        return phunk;
    }
    
    function punkAttributeCount(CyberPhunk memory phunk) public view returns (uint totalCount, uint litCount) {
        PunkAttributeValue[13] memory attrArray = [
            phunk.sex,
            phunk.hair,
            phunk.eyes,
            phunk.beard,
            phunk.ears,
            phunk.lips,
            phunk.mouth,
            phunk.face,
            phunk.emotion,
            phunk.neck,
            phunk.nose,
            phunk.cheeks,
            phunk.teeth
        ];
        
        for (uint i = 0; i < 13; ++i) {
            if (attrArray[i] != PunkAttributeValue.NONE) {
                totalCount++;
                
                if (attributeIsLit[attrArray[i]]) {
                    litCount++;
                }
            }
        }
        
        // Don't count sex as an attribute
        totalCount--;
    }
    
    function punkAttributesAsJSON(uint16 punkId) public view returns (string memory json) {
        CyberPhunk memory phunk = initializePunk(punkId);
        
        PunkAttributeValue none = PunkAttributeValue.NONE;
        
        bytes memory outputBytes = DynamicBuffer.allocate(1024 * 64);
        outputBytes.appendSafe("[");
        
        PunkAttributeValue[13] memory attrArray = [
            phunk.sex,
            phunk.hair,
            phunk.eyes,
            phunk.beard,
            phunk.ears,
            phunk.lips,
            phunk.mouth,
            phunk.face,
            phunk.emotion,
            phunk.neck,
            phunk.nose,
            phunk.cheeks,
            phunk.teeth
        ];
        
        (uint attrCount, uint litAttrCount) = punkAttributeCount(phunk);
        
        for (uint i = 0; i < 13; ++i) {
            PunkAttributeValue attrVal = attrArray[i];
            
            if (attrVal != none) {
                outputBytes.appendSafe(bytes(punkAttributeAsJSON(attrVal)));
                
                outputBytes.appendSafe(",");
            }
        }
        
        outputBytes.appendSafe(abi.encodePacked(
            '{"trait_type":"Color Count", "display_type": "number", "max_value": 14, "value":', getPhunkColorCount(phunk.id).toString(), '},'
        ));
        
        outputBytes.appendSafe(abi.encodePacked(
            '{"trait_type":"Trait Count", "display_type": "number", "max_value": 7, "value":', attrCount.toString(), '},'
        ));
        
        outputBytes.appendSafe(abi.encodePacked(
            '{"trait_type":"Glowing Trait Count", "display_type": "number", "max_value": 5, "value":', litAttrCount.toString(), '},'
        ));
        
        outputBytes.appendSafe(abi.encodePacked(
            '{"trait_type":"Rarity Rank", "display_type": "number", "max_value": 10000, "value":', getPhunkRarityRank(phunk.id).toString(), '}'
        ));
        
        return string(abi.encodePacked(outputBytes, "]"));
    }
    
    function punkAttributeAsJSON(PunkAttributeValue attribute) internal view returns (string memory json) {
        require(attribute != PunkAttributeValue.NONE);
        
        string memory attributeAsString = extendedPunkDataContract.attrEnumToStringMapping(ExtendedPunkDataInterface.PunkAttributeValue(uint(attribute)));
        string memory attributeTypeAsString;
        
        PunkAttributeType attrType = PunkAttributeType(
            uint(
                extendedPunkDataContract.attrValueToTypeEnumMapping(
                    ExtendedPunkDataInterface.PunkAttributeValue(
                        uint(
                            attribute
                        )))));

        
        if (attrType == PunkAttributeType.SEX) {
            attributeTypeAsString = "Sex";
        } else if (attrType == PunkAttributeType.HAIR) {
            attributeTypeAsString = "Hair";
        } else if (attrType == PunkAttributeType.EYES) {
            attributeTypeAsString = "Eyes";
        } else if (attrType == PunkAttributeType.BEARD) {
            attributeTypeAsString = "Beard";
        } else if (attrType == PunkAttributeType.EARS) {
            attributeTypeAsString = "Ears";
        } else if (attrType == PunkAttributeType.LIPS) {
            attributeTypeAsString = "Lips";
        } else if (attrType == PunkAttributeType.MOUTH) {
            attributeTypeAsString = "Mouth";
        } else if (attrType == PunkAttributeType.FACE) {
            attributeTypeAsString = "Face";
        } else if (attrType == PunkAttributeType.EMOTION) {
            attributeTypeAsString = "Emotion";
        } else if (attrType == PunkAttributeType.NECK) {
            attributeTypeAsString = "Neck";
        } else if (attrType == PunkAttributeType.NOSE) {
            attributeTypeAsString = "Nose";
        } else if (attrType == PunkAttributeType.CHEEKS) {
            attributeTypeAsString = "Cheeks";
        } else if (attrType == PunkAttributeType.TEETH) {
            attributeTypeAsString = "Teeth";
        }
        
        return string(abi.encodePacked('{"trait_type":"', attributeTypeAsString, '", "value":"', attributeAsString, '"}'));
    }
}

File 2 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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

File 3 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    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);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

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

File 4 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 5 of 18 : base64.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return result;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        return result;
    }
}

File 6 of 18 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721A {
    using Address for address;
    using Strings for uint256;

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

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

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

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

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

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

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

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr) if (curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

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

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

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

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

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

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

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

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

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

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

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

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex < end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex < end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

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

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, from);

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

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

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

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

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, from);

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

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

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        address owner
    ) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

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

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

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

File 7 of 18 : SSTORE2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./utils/Bytecode.sol";

/**
  @title A key-value storage with auto-generated keys for storing chunks of data with a lower write & read cost.
  @author Agustin Aguilar <[email protected]>

  Readme: https://github.com/0xsequence/sstore2#readme
*/
library SSTORE2 {
  error WriteError();

  /**
    @notice Stores `_data` and returns `pointer` as key for later retrieval
    @dev The pointer is a contract address with `_data` as code
    @param _data to be written
    @return pointer Pointer to the written `_data`
  */
  function write(bytes memory _data) internal returns (address pointer) {
    // Append 00 to _data so contract can't be called
    // Build init code
    bytes memory code = Bytecode.creationCodeFor(
      abi.encodePacked(
        hex'00',
        _data
      )
    );

    // Deploy contract using create
    assembly { pointer := create(0, add(code, 32), mload(code)) }

    // Address MUST be non-zero
    if (pointer == address(0)) revert WriteError();
  }

  /**
    @notice Reads the contents of the `_pointer` code as data, skips the first byte 
    @dev The function is intended for reading pointers generated by `write`
    @param _pointer to be read
    @return data read from `_pointer` contract
  */
  function read(address _pointer) internal view returns (bytes memory) {
    return Bytecode.codeAt(_pointer, 1, type(uint256).max);
  }

  /**
    @notice Reads the contents of the `_pointer` code as data, skips the first byte 
    @dev The function is intended for reading pointers generated by `write`
    @param _pointer to be read
    @param _start number of bytes to skip
    @return data read from `_pointer` contract
  */
  function read(address _pointer, uint256 _start) internal view returns (bytes memory) {
    return Bytecode.codeAt(_pointer, _start + 1, type(uint256).max);
  }

  /**
    @notice Reads the contents of the `_pointer` code as data, skips the first byte 
    @dev The function is intended for reading pointers generated by `write`
    @param _pointer to be read
    @param _start number of bytes to skip
    @param _end index before which to end extraction
    @return data read from `_pointer` contract
  */
  function read(address _pointer, uint256 _start, uint256 _end) internal view returns (bytes memory) {
    return Bytecode.codeAt(_pointer, _start + 1, _end + 1);
  }
}

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

pragma solidity >=0.8.0;

/// @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 {
        uint256 capacity;
        uint256 length;
        assembly {
            capacity := sub(mload(sub(buffer, 0x20)), 0x40)
            length := mload(buffer)
        }

        require(
            length + data.length <= capacity,
            "DynamicBuffer: Appending out of bounds."
        );
        appendUnchecked(buffer, data);
    }
}

File 9 of 18 : StringUtilsLib.sol
pragma solidity ^0.8.0;

/**
 * Strings Library
 * 
 * In summary this is a simple library of string functions which make simple 
 * string operations less tedious in solidity.
 * 
 * Please be aware these functions can be quite gas heavy so use them only when
 * necessary not to clog the blockchain with expensive transactions.
 * 
 * @author James Lockhart <[email protected]>
 */
library StringUtils {

    /**
     * Concat (High gas cost)
     * 
     * Appends two strings together and returns a new value
     * 
     * @param _base When being used for a data type this is the extended object
     *              otherwise this is the string which will be the concatenated
     *              prefix
     * @param _value The value to be the concatenated suffix
     * @return string The resulting string from combinging the base and value
     */
    function concat(string memory _base, string memory _value)
        internal
        pure
        returns (string memory) {
        bytes memory _baseBytes = bytes(_base);
        bytes memory _valueBytes = bytes(_value);

        assert(_valueBytes.length > 0);

        string memory _tmpValue = new string(_baseBytes.length +
            _valueBytes.length);
        bytes memory _newValue = bytes(_tmpValue);

        uint i;
        uint j;

        for (i = 0; i < _baseBytes.length; i++) {
            _newValue[j++] = _baseBytes[i];
        }

        for (i = 0; i < _valueBytes.length; i++) {
            _newValue[j++] = _valueBytes[i];
        }

        return string(_newValue);
    }

    /**
     * Index Of
     *
     * Locates and returns the position of a character within a string
     * 
     * @param _base When being used for a data type this is the extended object
     *              otherwise this is the string acting as the haystack to be
     *              searched
     * @param _value The needle to search for, at present this is currently
     *               limited to one character
     * @return int The position of the needle starting from 0 and returning -1
     *             in the case of no matches found
     */
    function indexOf(string memory _base, string memory _value)
        internal
        pure
        returns (int) {
        return _indexOf(_base, _value, 0);
    }

    /**
     * Index Of
     *
     * Locates and returns the position of a character within a string starting
     * from a defined offset
     * 
     * @param _base When being used for a data type this is the extended object
     *              otherwise this is the string acting as the haystack to be
     *              searched
     * @param _value The needle to search for, at present this is currently
     *               limited to one character
     * @param _offset The starting point to start searching from which can start
     *                from 0, but must not exceed the length of the string
     * @return int The position of the needle starting from 0 and returning -1
     *             in the case of no matches found
     */
    function _indexOf(string memory _base, string memory _value, uint _offset)
        internal
        pure
        returns (int) {
        bytes memory _baseBytes = bytes(_base);
        bytes memory _valueBytes = bytes(_value);

        assert(_valueBytes.length == 1);

        for (uint i = _offset; i < _baseBytes.length; i++) {
            if (_baseBytes[i] == _valueBytes[0]) {
                return int(i);
            }
        }

        return -1;
    }

    /**
     * Length
     * 
     * Returns the length of the specified string
     * 
     * @param _base When being used for a data type this is the extended object
     *              otherwise this is the string to be measured
     * @return uint The length of the passed string
     */
    function length(string memory _base)
        internal
        pure
        returns (uint) {
        bytes memory _baseBytes = bytes(_base);
        return _baseBytes.length;
    }

    /**
     * Sub String
     * 
     * Extracts the beginning part of a string based on the desired length
     * 
     * @param _base When being used for a data type this is the extended object
     *              otherwise this is the string that will be used for 
     *              extracting the sub string from
     * @param _length The length of the sub string to be extracted from the base
     * @return string The extracted sub string
     */
    function substring(string memory _base, int _length)
        internal
        pure
        returns (string memory) {
        return _substring(_base, _length, 0);
    }

    /**
     * Sub String
     * 
     * Extracts the part of a string based on the desired length and offset. The
     * offset and length must not exceed the lenth of the base string.
     * 
     * @param _base When being used for a data type this is the extended object
     *              otherwise this is the string that will be used for 
     *              extracting the sub string from
     * @param _length The length of the sub string to be extracted from the base
     * @param _offset The starting point to extract the sub string from
     * @return string The extracted sub string
     */
    function _substring(string memory _base, int _length, int _offset)
        internal
        pure
        returns (string memory) {
        bytes memory _baseBytes = bytes(_base);

        assert(uint(_offset + _length) <= _baseBytes.length);

        string memory _tmp = new string(uint(_length));
        bytes memory _tmpBytes = bytes(_tmp);

        uint j = 0;
        for (uint i = uint(_offset); i < uint(_offset + _length); i++) {
            _tmpBytes[j++] = _baseBytes[i];
        }

        return string(_tmpBytes);
    }


    function split(string memory _base, string memory _value)
        internal
        pure
        returns (string[] memory splitArr) {
        bytes memory _baseBytes = bytes(_base);

        uint _offset = 0;
        uint _splitsCount = 1;
        while (_offset < _baseBytes.length - 1) {
            int _limit = _indexOf(_base, _value, _offset);
            if (_limit == -1)
                break;
            else {
                _splitsCount++;
                _offset = uint(_limit) + 1;
            }
        }

        splitArr = new string[](_splitsCount);

        _offset = 0;
        _splitsCount = 0;
        while (_offset < _baseBytes.length - 1) {

            int _limit = _indexOf(_base, _value, _offset);
            if (_limit == - 1) {
                _limit = int(_baseBytes.length);
            }

            string memory _tmp = new string(uint(_limit) - _offset);
            bytes memory _tmpBytes = bytes(_tmp);

            uint j = 0;
            for (uint i = _offset; i < uint(_limit); i++) {
                _tmpBytes[j++] = _baseBytes[i];
            }
            _offset = uint(_limit) + 1;
            splitArr[_splitsCount++] = string(_tmpBytes);
        }
        return splitArr;
    }

    /**
     * Compare To
     * 
     * Compares the characters of two strings, to ensure that they have an 
     * identical footprint
     * 
     * @param _base When being used for a data type this is the extended object
     *               otherwise this is the string base to compare against
     * @param _value The string the base is being compared to
     * @return bool Simply notates if the two string have an equivalent
     */
    function compareTo(string memory _base, string memory _value)
        internal
        pure
        returns (bool) {
        bytes memory _baseBytes = bytes(_base);
        bytes memory _valueBytes = bytes(_value);

        if (_baseBytes.length != _valueBytes.length) {
            return false;
        }

        for (uint i = 0; i < _baseBytes.length; i++) {
            if (_baseBytes[i] != _valueBytes[i]) {
                return false;
            }
        }

        return true;
    }

    /**
     * Compare To Ignore Case (High gas cost)
     * 
     * Compares the characters of two strings, converting them to the same case
     * where applicable to alphabetic characters to distinguish if the values
     * match.
     * 
     * @param _base When being used for a data type this is the extended object
     *               otherwise this is the string base to compare against
     * @param _value The string the base is being compared to
     * @return bool Simply notates if the two string have an equivalent value
     *              discarding case
     */
    function compareToIgnoreCase(string memory _base, string memory _value)
        internal
        pure
        returns (bool) {
        bytes memory _baseBytes = bytes(_base);
        bytes memory _valueBytes = bytes(_value);

        if (_baseBytes.length != _valueBytes.length) {
            return false;
        }

        for (uint i = 0; i < _baseBytes.length; i++) {
            if (_baseBytes[i] != _valueBytes[i] &&
            _upper(_baseBytes[i]) != _upper(_valueBytes[i])) {
                return false;
            }
        }

        return true;
    }

    /**
     * Upper
     * 
     * Converts all the values of a string to their corresponding upper case
     * value.
     * 
     * @param _base When being used for a data type this is the extended object
     *              otherwise this is the string base to convert to upper case
     * @return string 
     */
    function upper(string memory _base)
        internal
        pure
        returns (string memory) {
        bytes memory _baseBytes = bytes(_base);
        for (uint i = 0; i < _baseBytes.length; i++) {
            _baseBytes[i] = _upper(_baseBytes[i]);
        }
        return string(_baseBytes);
    }

    /**
     * Lower
     * 
     * Converts all the values of a string to their corresponding lower case
     * value.
     * 
     * @param _base When being used for a data type this is the extended object
     *              otherwise this is the string base to convert to lower case
     * @return string 
     */
    function lower(string memory _base)
        internal
        pure
        returns (string memory) {
        bytes memory _baseBytes = bytes(_base);
        for (uint i = 0; i < _baseBytes.length; i++) {
            _baseBytes[i] = _lower(_baseBytes[i]);
        }
        return string(_baseBytes);
    }

    /**
     * Upper
     * 
     * Convert an alphabetic character to upper case and return the original
     * value when not alphabetic
     * 
     * @param _b1 The byte to be converted to upper case
     * @return bytes1 The converted value if the passed value was alphabetic
     *                and in a lower case otherwise returns the original value
     */
    function _upper(bytes1 _b1)
        private
        pure
        returns (bytes1) {

        if (_b1 >= 0x61 && _b1 <= 0x7A) {
            return bytes1(uint8(_b1) - 32);
        }

        return _b1;
    }

    /**
     * Lower
     * 
     * Convert an alphabetic character to lower case and return the original
     * value when not alphabetic
     * 
     * @param _b1 The byte to be converted to lower case
     * @return bytes1 The converted value if the passed value was alphabetic
     *                and in a upper case otherwise returns the original value
     */
    function _lower(bytes1 _b1)
        private
        pure
        returns (bytes1) {

        if (_b1 >= 0x41 && _b1 <= 0x5A) {
            return bytes1(uint8(_b1) + 32);
        }

        return _b1;
    }
}

File 10 of 18 : console.sol
// SPDX-License-Identifier: MIT
pragma solidity >= 0.4.22 <0.9.0;

library console {
	address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);

	function _sendLogPayload(bytes memory payload) private view {
		uint256 payloadLength = payload.length;
		address consoleAddress = CONSOLE_ADDRESS;
		assembly {
			let payloadStart := add(payload, 32)
			let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0)
		}
	}

	function log() internal view {
		_sendLogPayload(abi.encodeWithSignature("log()"));
	}

	function logInt(int p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(int)", p0));
	}

	function logUint(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function logString(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function logBool(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function logAddress(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function logBytes(bytes memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes)", p0));
	}

	function logBytes1(bytes1 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0));
	}

	function logBytes2(bytes2 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0));
	}

	function logBytes3(bytes3 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0));
	}

	function logBytes4(bytes4 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0));
	}

	function logBytes5(bytes5 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0));
	}

	function logBytes6(bytes6 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0));
	}

	function logBytes7(bytes7 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0));
	}

	function logBytes8(bytes8 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0));
	}

	function logBytes9(bytes9 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0));
	}

	function logBytes10(bytes10 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0));
	}

	function logBytes11(bytes11 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0));
	}

	function logBytes12(bytes12 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0));
	}

	function logBytes13(bytes13 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0));
	}

	function logBytes14(bytes14 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0));
	}

	function logBytes15(bytes15 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0));
	}

	function logBytes16(bytes16 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0));
	}

	function logBytes17(bytes17 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0));
	}

	function logBytes18(bytes18 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0));
	}

	function logBytes19(bytes19 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0));
	}

	function logBytes20(bytes20 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0));
	}

	function logBytes21(bytes21 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0));
	}

	function logBytes22(bytes22 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0));
	}

	function logBytes23(bytes23 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0));
	}

	function logBytes24(bytes24 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0));
	}

	function logBytes25(bytes25 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0));
	}

	function logBytes26(bytes26 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0));
	}

	function logBytes27(bytes27 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0));
	}

	function logBytes28(bytes28 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0));
	}

	function logBytes29(bytes29 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0));
	}

	function logBytes30(bytes30 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0));
	}

	function logBytes31(bytes31 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0));
	}

	function logBytes32(bytes32 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0));
	}

	function log(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function log(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function log(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function log(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function log(uint p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1));
	}

	function log(uint p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1));
	}

	function log(uint p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1));
	}

	function log(uint p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1));
	}

	function log(string memory p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1));
	}

	function log(string memory p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1));
	}

	function log(string memory p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1));
	}

	function log(string memory p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1));
	}

	function log(bool p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1));
	}

	function log(bool p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1));
	}

	function log(bool p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1));
	}

	function log(bool p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1));
	}

	function log(address p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1));
	}

	function log(address p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1));
	}

	function log(address p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1));
	}

	function log(address p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1));
	}

	function log(uint p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2));
	}

	function log(uint p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2));
	}

	function log(uint p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2));
	}

	function log(uint p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2));
	}

	function log(uint p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2));
	}

	function log(uint p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2));
	}

	function log(uint p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2));
	}

	function log(uint p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2));
	}

	function log(uint p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2));
	}

	function log(uint p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2));
	}

	function log(uint p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2));
	}

	function log(uint p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2));
	}

	function log(string memory p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2));
	}

	function log(string memory p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2));
	}

	function log(string memory p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2));
	}

	function log(string memory p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2));
	}

	function log(bool p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2));
	}

	function log(bool p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2));
	}

	function log(bool p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2));
	}

	function log(bool p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2));
	}

	function log(bool p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2));
	}

	function log(bool p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2));
	}

	function log(bool p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2));
	}

	function log(bool p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2));
	}

	function log(bool p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2));
	}

	function log(bool p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2));
	}

	function log(bool p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2));
	}

	function log(bool p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2));
	}

	function log(address p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2));
	}

	function log(address p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2));
	}

	function log(address p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2));
	}

	function log(address p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2));
	}

	function log(address p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2));
	}

	function log(address p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2));
	}

	function log(address p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2));
	}

	function log(address p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2));
	}

	function log(address p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2));
	}

	function log(address p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2));
	}

	function log(address p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2));
	}

	function log(address p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2));
	}

	function log(address p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2));
	}

	function log(address p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2));
	}

	function log(address p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2));
	}

	function log(address p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2));
	}

	function log(uint p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3));
	}

}

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

pragma solidity ^0.8.0;

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

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

File 12 of 18 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';

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

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

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

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

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

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

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

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

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

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

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

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

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     * 
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);
}

File 13 of 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 15 of 18 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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


library Bytecode {
  error InvalidCodeAtRange(uint256 _size, uint256 _start, uint256 _end);

  /**
    @notice Generate a creation code that results on a contract with `_code` as bytecode
    @param _code The returning value of the resulting `creationCode`
    @return creationCode (constructor) for new contract
  */
  function creationCodeFor(bytes memory _code) internal pure returns (bytes memory) {
    /*
      0x00    0x63         0x63XXXXXX  PUSH4 _code.length  size
      0x01    0x80         0x80        DUP1                size size
      0x02    0x60         0x600e      PUSH1 14            14 size size
      0x03    0x60         0x6000      PUSH1 00            0 14 size size
      0x04    0x39         0x39        CODECOPY            size
      0x05    0x60         0x6000      PUSH1 00            0 size
      0x06    0xf3         0xf3        RETURN
      <CODE>
    */

    return abi.encodePacked(
      hex"63",
      uint32(_code.length),
      hex"80_60_0E_60_00_39_60_00_F3",
      _code
    );
  }

  /**
    @notice Returns the size of the code on a given address
    @param _addr Address that may or may not contain code
    @return size of the code on the given `_addr`
  */
  function codeSize(address _addr) internal view returns (uint256 size) {
    assembly { size := extcodesize(_addr) }
  }

  /**
    @notice Returns the code of a given address
    @dev It will fail if `_end < _start`
    @param _addr Address that may or may not contain code
    @param _start number of bytes of code to skip on read
    @param _end index before which to end extraction
    @return oCode read from `_addr` deployed bytecode

    Forked from: https://gist.github.com/KardanovIR/fe98661df9338c842b4a30306d507fbd
  */
  function codeAt(address _addr, uint256 _start, uint256 _end) internal view returns (bytes memory oCode) {
    uint256 csize = codeSize(_addr);
    if (csize == 0) return bytes("");

    if (_start > csize) return bytes("");
    if (_end < _start) revert InvalidCodeAtRange(csize, _start, _end); 

    unchecked {
      uint256 reqSize = _end - _start;
      uint256 maxSize = csize - _start;

      uint256 size = maxSize < reqSize ? maxSize : reqSize;

      assembly {
        // allocate output byte array - this could also be done without assembly
        // by using o_code = new bytes(size)
        oCode := mload(0x40)
        // new "memory end" including padding
        mstore(0x40, add(oCode, and(add(add(size, 0x20), 0x1f), not(0x1f))))
        // store length in memory
        mstore(oCode, size)
        // actually retrieve the code, this needs assembly
        extcodecopy(_addr, add(oCode, 0x20), _start, size)
      }
    }
  }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"punkDataContractAddress","type":"address"},{"internalType":"address","name":"extendedPunkDataContractAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[{"internalType":"uint256","name":"_size","type":"uint256"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"InvalidCodeAtRange","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"WriteError","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"toAddress","type":"address"},{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"","type":"uint8"}],"name":"attributeIsLit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint16","name":"id","type":"uint16"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"sex","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"hair","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"eyes","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"beard","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"ears","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"lips","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"mouth","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"face","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"emotion","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"neck","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"nose","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"cheeks","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"teeth","type":"uint8"}],"internalType":"struct CyberPhunks.CyberPhunk","name":"phunk","type":"tuple"}],"name":"changeWhite","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"colorMapping","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractSealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"costPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"creators","outputs":[{"internalType":"address[2]","name":"","type":"address[2]"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"extendedPunkDataContract","outputs":[{"internalType":"contract ExtendedPunkDataInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"externalLink","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipMintState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"punkId","type":"uint16"}],"name":"getPhunkColorCount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"punkId","type":"uint16"}],"name":"getPhunkRarityRank","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintBatchSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phunkColorCounts","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"phunkRarityRanks","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint16","name":"id","type":"uint16"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"sex","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"hair","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"eyes","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"beard","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"ears","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"lips","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"mouth","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"face","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"emotion","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"neck","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"nose","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"cheeks","type":"uint8"},{"internalType":"enum CyberPhunks.PunkAttributeValue","name":"teeth","type":"uint8"}],"internalType":"struct CyberPhunks.CyberPhunk","name":"phunk","type":"tuple"}],"name":"punkAttributeCount","outputs":[{"internalType":"uint256","name":"totalCount","type":"uint256"},{"internalType":"uint256","name":"litCount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"punkId","type":"uint16"}],"name":"punkAttributesAsJSON","outputs":[{"internalType":"string","name":"json","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"punkDataContract","outputs":[{"internalType":"contract PunkDataInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sealContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum CyberPhunks.PunkAttributeValue[]","name":"litColors","type":"uint8[]"}],"name":"setColorIsLit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[][]","name":"_colorMapping","type":"string[][]"}],"name":"setColorMapping","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"counts","type":"bytes"}],"name":"setPhunkColorCounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"ranks","type":"bytes"}],"name":"setPhunkRarityRanks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"}],"name":"tokenImage","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numTokens","type":"uint256"}],"name":"totalMintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040523480156200001157600080fd5b50604051620058b9380380620058b9833981016040819052620000349162000214565b6040518060400160405280600b81526020016a43796265725068756e6b7360a81b8152506040518060400160405280600a81526020016943594245525048554e4b60b01b815250620000956200008f620000e060201b60201c565b620000e4565b8151620000aa90600390602085019062000134565b508051620000c090600490602084019062000134565b50600060015550506001600160a01b039182166080521660a0526200029d565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805462000142906200026d565b90600052602060002090601f016020900481019282620001665760008555620001b1565b82601f106200018157805160ff1916838001178555620001b1565b82800160010185558215620001b1579182015b82811115620001b157825182559160200191906001019062000194565b50620001bf929150620001c3565b5090565b5b80821115620001bf5760008155600101620001c4565b60006001600160a01b0382165b92915050565b620001f881620001da565b81146200020457600080fd5b50565b8051620001e781620001ed565b600080604083850312156200022c576200022c600080fd5b60006200023a858562000207565b92505060206200024d8582860162000207565b9150509250929050565b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200028257607f821691505b60208210810362000297576200029762000257565b50919050565b60805160a0516155cc620002ed600039600081816103f3015281816123a8015281816124460152818161283c01526128f50152600081816103b2015281816117ce015261224d01526155cc6000f3fe6080604052600436106102925760003560e01c80635b9db8981161015a578063b5b949d2116100c1578063d5abeb011161007a578063d5abeb01146107fe578063d7c9562e14610814578063e985e9c514610834578063f2fde38b14610854578063f5841dbf14610874578063fbcde940146108a157600080fd5b8063b5b949d21461072f578063b65016371461074f578063b88d4fde1461076e578063c87b56dd1461078e578063cbefe51a146107ae578063d517d948146107de57600080fd5b80638ba4cc3c116101135780638ba4cc3c146106965780638da5cb5b146106a957806395d89b41146106c75780639896ed11146106dc578063a0712d68146106fc578063a22cb4651461070f57600080fd5b80635b9db898146105f75780636352211e1461060c57806368bd580e1461062c57806370a0823114610641578063715018a6146106615780637494964b1461067657600080fd5b80632f2fc416116101fe5780634610d55a116101b75780634610d55a1461052d5780634cd79a921461055a5780634f02f4d21461057a5780634f558e79146105a857806359c74f29146105c85780635b92ac0d146105dd57600080fd5b80632f2fc4161461046e5780632f8b57f9146104905780633ba523c7146104b05780633ccfd60b146104cb57806342842e0e146104e0578063438b63001461050057600080fd5b8063095ea7b311610250578063095ea7b31461037e5780630f5a9f89146103a0578063137fee32146103e157806314dbd3d81461041557806318160ddd1461043557806323b872dd1461044e57600080fd5b806270cb321461029757806301ffc9a7146102cd578063023abe2b146102fa57806304b6d7ce1461032757806306fdde031461033c578063081812fc14610351575b600080fd5b3480156102a357600080fd5b506102b76102b2366004613e1b565b6108c1565b6040516102c49190613e44565b60405180910390f35b3480156102d957600080fd5b506102ed6102e8366004613e6d565b6108da565b6040516102c49190613e96565b34801561030657600080fd5b5061031a610315366004613eb9565b61092a565b6040516102c49190613f38565b34801561033357600080fd5b506102b7601e81565b34801561034857600080fd5b5061031a610d4e565b34801561035d57600080fd5b5061037161036c366004613e1b565b610de0565b6040516102c49190613f63565b34801561038a57600080fd5b5061039e610399366004613f85565b610e24565b005b3480156103ac57600080fd5b506103d47f000000000000000000000000000000000000000000000000000000000000000081565b6040516102c49190613fe1565b3480156103ed57600080fd5b506103d47f000000000000000000000000000000000000000000000000000000000000000081565b34801561042157600080fd5b5061031a6104303660046140e8565b610eaa565b34801561044157600080fd5b50600254600154036102b7565b34801561045a57600080fd5b5061039e610469366004614122565b610f4f565b34801561047a57600080fd5b50610483610f5a565b6040516102c491906141ba565b34801561049c57600080fd5b5061039e6104ab366004614282565b610fa1565b3480156104bc57600080fd5b506102b76611c37937e0800081565b3480156104d757600080fd5b5061039e61107f565b3480156104ec57600080fd5b5061039e6104fb366004614122565b6110f4565b34801561050c57600080fd5b5061052061051b3660046142bc565b61110f565b6040516102c49190614332565b34801561053957600080fd5b5061054d610548366004613eb9565b611200565b6040516102c4919061434d565b34801561056657600080fd5b506102ed6105753660046144a3565b6112ad565b34801561058657600080fd5b5061059a6105953660046144a3565b611322565b6040516102c49291906144c5565b3480156105b457600080fd5b506102ed6105c3366004613e1b565b611644565b3480156105d457600080fd5b5061039e61164f565b3480156105e957600080fd5b506009546102ed9060ff1681565b34801561060357600080fd5b5061031a61168d565b34801561061857600080fd5b50610371610627366004613e1b565b6116a9565b34801561063857600080fd5b5061039e6116bb565b34801561064d57600080fd5b506102b761065c3660046142bc565b61171e565b34801561066d57600080fd5b5061039e61176c565b34801561068257600080fd5b50600c54610371906001600160a01b031681565b61039e6106a4366004613f85565b6117a2565b3480156106b557600080fd5b506000546001600160a01b0316610371565b3480156106d357600080fd5b5061031a6117ac565b3480156106e857600080fd5b5061031a6106f7366004613eb9565b6117bb565b61039e61070a366004613e1b565b611d4d565b34801561071b57600080fd5b5061039e61072a3660046144f3565b611d5a565b34801561073b57600080fd5b5061039e61074a366004614648565b611df2565b34801561075b57600080fd5b506009546102ed90610100900460ff1681565b34801561077a57600080fd5b5061039e610789366004614682565b611efb565b34801561079a57600080fd5b5061031a6107a9366004613e1b565b611f45565b3480156107ba57600080fd5b506102ed6107c9366004614700565b600b6020526000908152604090205460ff1681565b3480156107ea57600080fd5b5061039e6107f93660046140e8565b611f75565b34801561080a57600080fd5b506102b761271081565b34801561082057600080fd5b5061039e61082f3660046140e8565b611ff3565b34801561084057600080fd5b506102ed61084f366004614721565b612071565b34801561086057600080fd5b5061039e61086f3660046142bc565b61209f565b34801561088057600080fd5b5061089461088f366004613eb9565b6120f8565b6040516102c4919061475d565b3480156108ad57600080fd5b50600d54610371906001600160a01b031681565b60006108d46611c37937e0800083614781565b92915050565b60006001600160e01b031982166380ac58cd60e01b148061090b57506001600160e01b03198216635b5e139f60e01b145b806108d457506301ffc9a760e01b6001600160e01b03198316146108d4565b6060600061093783612145565b604080516201006081019091526201004081526000602090910181815291925090610984604051806040016040528060018152602001605b60f81b815250826127d390919063ffffffff16565b6000604051806101a001604052808560200151605c8111156109a8576109a86147a0565b605c8111156109b9576109b96147a0565b81526020018560400151605c8111156109d4576109d46147a0565b605c8111156109e5576109e56147a0565b81526020018560600151605c811115610a0057610a006147a0565b605c811115610a1157610a116147a0565b81526020018560800151605c811115610a2c57610a2c6147a0565b605c811115610a3d57610a3d6147a0565b81526020018560a00151605c811115610a5857610a586147a0565b605c811115610a6957610a696147a0565b81526020018560c00151605c811115610a8457610a846147a0565b605c811115610a9557610a956147a0565b81526020018560e00151605c811115610ab057610ab06147a0565b605c811115610ac157610ac16147a0565b8152602001856101000151605c811115610add57610add6147a0565b605c811115610aee57610aee6147a0565b8152602001856101200151605c811115610b0a57610b0a6147a0565b605c811115610b1b57610b1b6147a0565b8152602001856101400151605c811115610b3757610b376147a0565b605c811115610b4857610b486147a0565b8152602001856101600151605c811115610b6457610b646147a0565b605c811115610b7557610b756147a0565b8152602001856101800151605c811115610b9157610b916147a0565b605c811115610ba257610ba26147a0565b8152602001856101a00151605c811115610bbe57610bbe6147a0565b605c811115610bcf57610bcf6147a0565b90529050600080610bdf86611322565b9150915060005b600d811015610c7a5760008482600d8110610c0357610c036147b6565b6020020151905086605c811115610c1c57610c1c6147a0565b81605c811115610c2e57610c2e6147a0565b14610c6957610c46610c3f82612818565b87906127d3565b6040805180820190915260018152600b60fa1b6020820152610c699087906127d3565b50610c73816147cc565b9050610be6565b50610cbd610c96610c8e88600001516120f8565b60ff16612d0e565b604051602001610ca6919061481a565b60408051601f1981840301815291905285906127d3565b610cd9610cc983612d0e565b604051602001610ca6919061489a565b610cf5610ce582612d0e565b604051602001610ca69190614906565b610d21610d11610d088860000151611200565b61ffff16612d0e565b604051602001610ca6919061498e565b83604051602001610d329190614a1b565b6040516020818303038152906040529650505050505050919050565b606060038054610d5d90614a48565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8990614a48565b8015610dd65780601f10610dab57610100808354040283529160200191610dd6565b820191906000526020600020905b815481529060010190602001808311610db957829003601f168201915b5050505050905090565b6000610deb82612e16565b610e08576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610e2f826116a9565b9050806001600160a01b0316836001600160a01b031603610e635760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610e9a57610e7d8133612071565b610e9a576040516367d9dca160e11b815260040160405180910390fd5b610ea5838383612e42565b505050565b8051602081830181018051600a8252928201919093012091528054610ece90614a48565b80601f0160208091040260200160405190810160405280929190818152602001828054610efa90614a48565b8015610f475780601f10610f1c57610100808354040283529160200191610f47565b820191906000526020600020905b815481529060010190602001808311610f2a57829003601f168201915b505050505081565b610ea5838383612e9e565b610f62613d4c565b5060408051808201909152735fd2e3ba05c862e62a34b9f63c45c0df622ac112815273c2172a6315c1d7f6855768f843c420ebb36eda97602082015290565b6000546001600160a01b03163314610fd45760405162461bcd60e51b8152600401610fcb90614aa3565b60405180910390fd5b600954610100900460ff1615610ffc5760405162461bcd60e51b8152600401610fcb90614ada565b60005b815181101561107b576001600b6000848481518110611020576110206147b6565b6020026020010151605c811115611039576110396147a0565b605c81111561104a5761104a6147a0565b81526020810191909152604001600020805460ff191691151591909117905580611073816147cc565b915050610fff565b5050565b6000471161109f5760405162461bcd60e51b8152600401610fcb90614b14565b4760006110ad600283614b3a565b90506110cd73c2172a6315c1d7f6855768f843c420ebb36eda978261308b565b61107b735fd2e3ba05c862e62a34b9f63c45c0df622ac1126110ef8385614b4e565b61308b565b610ea583838360405180602001604052806000815250611efb565b6060600061111c8361171e565b90506000816001600160401b0381111561113857611138613fef565b604051908082528060200260200182016040528015611161578160200160208202803683370190505b5090506000805b8381108015611178575061271082105b156111f657600061118883612e16565b61119357600061119c565b61119c836116a9565b9050866001600160a01b0316816001600160a01b0316036111e357828483815181106111ca576111ca6147b6565b6020908102919091010152816111df816147cc565b9250505b826111ed816147cc565b93505050611168565b5090949350505050565b600d54600090819061121a906001600160a01b0316613127565b905060008161122a856002614b69565b61ffff168151811061123e5761123e6147b6565b01602001516112529060f81c610100614b69565b61ffff169050600082611266866002614b69565b611271906001614b91565b61ffff1681518110611285576112856147b6565b016020015160f81c90506112998183614bba565b6112a4906001614bba565b95945050505050565b6000605b8260400151605c8111156112c7576112c76147a0565b141580156112eb575060288260400151605c8111156112e8576112e86147a0565b14155b801561130d575060408260400151605c81111561130a5761130a6147a0565b14155b1561131a57506001919050565b506000919050565b6000806000604051806101a001604052808560200151605c811115611349576113496147a0565b605c81111561135a5761135a6147a0565b81526020018560400151605c811115611375576113756147a0565b605c811115611386576113866147a0565b81526020018560600151605c8111156113a1576113a16147a0565b605c8111156113b2576113b26147a0565b81526020018560800151605c8111156113cd576113cd6147a0565b605c8111156113de576113de6147a0565b81526020018560a00151605c8111156113f9576113f96147a0565b605c81111561140a5761140a6147a0565b81526020018560c00151605c811115611425576114256147a0565b605c811115611436576114366147a0565b81526020018560e00151605c811115611451576114516147a0565b605c811115611462576114626147a0565b8152602001856101000151605c81111561147e5761147e6147a0565b605c81111561148f5761148f6147a0565b8152602001856101200151605c8111156114ab576114ab6147a0565b605c8111156114bc576114bc6147a0565b8152602001856101400151605c8111156114d8576114d86147a0565b605c8111156114e9576114e96147a0565b8152602001856101600151605c811115611505576115056147a0565b605c811115611516576115166147a0565b8152602001856101800151605c811115611532576115326147a0565b605c811115611543576115436147a0565b8152602001856101a00151605c81111561155f5761155f6147a0565b605c811115611570576115706147a0565b9052905060005b600d8110156116305760008282600d8110611594576115946147b6565b6020020151605c8111156115aa576115aa6147a0565b1461162057836115b9816147cc565b945050600b60008383600d81106115d2576115d26147b6565b6020020151605c8111156115e8576115e86147a0565b605c8111156115f9576115f96147a0565b815260208101919091526040016000205460ff1615611620578261161c816147cc565b9350505b611629816147cc565b9050611577565b508261163b81614bcd565b93505050915091565b60006108d482612e16565b6000546001600160a01b031633146116795760405162461bcd60e51b8152600401610fcb90614aa3565b6009805460ff19811660ff90911615179055565b6040518060600160405280602d81526020016153d3602d913981565b60006116b482613137565b5192915050565b6000546001600160a01b031633146116e55760405162461bcd60e51b8152600401610fcb90614aa3565b600954610100900460ff161561170d5760405162461bcd60e51b8152600401610fcb90614ada565b6009805461ff001916610100179055565b60006001600160a01b038216611747576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6000546001600160a01b031633146117965760405162461bcd60e51b8152600401610fcb90614aa3565b6117a06000613251565b565b61107b82826132a1565b606060048054610d5d90614a48565b606060006117c883612145565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316633e5e0a96856040518263ffffffff1660e01b8152600401611818919061434d565b600060405180830381865afa158015611835573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261185d9190810190614c3c565b6040805162020060810190915262020040815260006020909101818152919250506118a260405180610120016040528060ed81526020016154aa60ed913982906127d3565b60408051600880825281830190925260009160208201818036833701905050905060005b6018811015611d1b5760005b6018811015611d08576000816118e9846018614781565b6118f39190614bba565b6118fe906004614781565b905060008661190e836003614bba565b8151811061191e5761191e6147b6565b016020015160f81c1115611cf55760005b6004811015611a3f576000876119458385614bba565b81518110611955576119556147b6565b016020015160f81c90506f181899199a1a9b1b9c1cb0b131b232b360811b600f821660108110611987576119876147b6565b1a60f81b86611997846002614781565b6119a2906001614bba565b815181106119b2576119b26147b6565b60200101906001600160f81b031916908160001a90535060041c600f166f181899199a1a9b1b9c1cb0b131b232b360811b81601081106119f4576119f46147b6565b1a60f81b86611a04846002614781565b81518110611a1457611a146147b6565b60200101906001600160f81b031916908160001a905350508080611a37906147cc565b91505061192f565b506000611a4d836017614b4e565b90508460608286600882148015611a64575080600c145b80611a7a575081600d148015611a7a575080600c145b8015611aab5750611aab84604051806040016040528060088152602001671cb132983298333360c11b8152506133b8565b15611ad857604051806040016040528060088152602001671cb132983298333360c11b8152509250611cb0565b81600a148015611ae85750806012145b80611afe575081600c148015611afe5750806012145b8015611b2f5750611b2f84604051806040016040528060088152602001673230b1b23131333360c11b8152506133b8565b15611b5c5760405180604001604052806008815260200167333333333333333360c11b8152509250611cb0565b81600e148015611b6c5750806007145b80611b82575081600f148015611b825750806008145b80611b98575081600e148015611b985750806009145b8015611ba85750611ba88c6112ad565b8015611bd95750611bd98460405180604001604052806008815260200167333333333333333360c11b8152506133b8565b15611c0657604051806040016040528060088152602001671b1b1a191a9cb33360c11b8152509250611cb0565b600a84604051611c169190614c76565b90815260200160405180910390208054611c2f90614a48565b80601f0160208091040260200160405190810160405280929190818152602001828054611c5b90614a48565b8015611ca85780601f10611c7d57610100808354040283529160200191611ca8565b820191906000526020600020905b815481529060010190602001808311611c8b57829003601f168201915b505050505092505b611cef611cbc86612d0e565b611cc58a612d0e565b85604051602001611cd893929190614cb1565b60408051601f198184030181529190528b906127d3565b50505050505b5080611d00816147cc565b9150506118d2565b5080611d13816147cc565b9150506118c6565b506040805180820190915260068152651e17b9bb339f60d11b6020820152611d449083906127d3565b50949350505050565b611d5733826132a1565b50565b336001600160a01b03831603611d835760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611de6908590613e96565b60405180910390a35050565b6000546001600160a01b03163314611e1c5760405162461bcd60e51b8152600401610fcb90614aa3565b600954610100900460ff1615611e445760405162461bcd60e51b8152600401610fcb90614ada565b60005b815181101561107b57818181518110611e6257611e626147b6565b6020026020010151600181518110611e7c57611e7c6147b6565b6020026020010151600a838381518110611e9857611e986147b6565b6020026020010151600081518110611eb257611eb26147b6565b6020026020010151604051611ec79190614c76565b90815260200160405180910390209080519060200190611ee8929190613d6a565b5080611ef3816147cc565b915050611e47565b611f06848484612e9e565b6001600160a01b0383163b15611f3f57611f2284848484613411565b611f3f576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611f5082612e16565b611f6c5760405162461bcd60e51b8152600401610fcb90614d38565b6108d4826134fc565b6000546001600160a01b03163314611f9f5760405162461bcd60e51b8152600401610fcb90614aa3565b600954610100900460ff1615611fc75760405162461bcd60e51b8152600401610fcb90614ada565b611fd0816135cf565b600c80546001600160a01b0319166001600160a01b039290921691909117905550565b6000546001600160a01b0316331461201d5760405162461bcd60e51b8152600401610fcb90614aa3565b600954610100900460ff16156120455760405162461bcd60e51b8152600401610fcb90614ada565b61204e816135cf565b600d80546001600160a01b0319166001600160a01b039290921691909117905550565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6000546001600160a01b031633146120c95760405162461bcd60e51b8152600401610fcb90614aa3565b6001600160a01b0381166120ef5760405162461bcd60e51b8152600401610fcb90614d8e565b611d5781613251565b600c546000908190612112906001600160a01b0316613127565b90506001818461ffff168151811061212c5761212c6147b6565b016020015161213e919060f81c614d9e565b9392505050565b6121b7604080516101c0810190915260008082526020820190815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000905290565b604080516101c0810190915261ffff831681526000906020810182815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000905261ffff84168082526040516376dfe29760e01b81529192506000916001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916376dfe29791612281919060040161434d565b600060405180830381865afa15801561229e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122c69190810190614c3c565b905060006122f6604051806040016040528060018152602001600b60fa1b8152508361363490919063ffffffff16565b905060005b81518110156127c9576000828281518110612318576123186147b6565b6020026020010151905060606001831015612371576040805180820190915260018152600160fd1b6020820152612350908390613634565b600081518110612362576123626147b6565b6020026020010151905061238e565b61238b600183516123829190614b4e565b8390600161381f565b90505b604051631a2d891b60e31b81526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063d16c48d8906123dd908590600401613f38565b602060405180830381865afa1580156123fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061241e9190614dba565b605c81111561242f5761242f6147a0565b605c811115612440576124406147a0565b905060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663683375c483605c811115612485576124856147a0565b605c811115612496576124966147a0565b6040518263ffffffff1660e01b81526004016124b29190614e09565b602060405180830381865afa1580156124cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f39190614e2f565b600c811115612504576125046147a0565b600c811115612515576125156147a0565b9050600081600c81111561252b5761252b6147a0565b03612561576020880182605c811115612546576125466147a0565b9081605c811115612559576125596147a0565b9052506127b2565b600181600c811115612575576125756147a0565b03612590576040880182605c811115612546576125466147a0565b600281600c8111156125a4576125a46147a0565b036125bf576060880182605c811115612546576125466147a0565b600381600c8111156125d3576125d36147a0565b036125ee576080880182605c811115612546576125466147a0565b600481600c811115612602576126026147a0565b0361261d5760a0880182605c811115612546576125466147a0565b600581600c811115612631576126316147a0565b0361264c5760c0880182605c811115612546576125466147a0565b600681600c811115612660576126606147a0565b0361267b5760e0880182605c811115612546576125466147a0565b600781600c81111561268f5761268f6147a0565b036126ab57610100880182605c811115612546576125466147a0565b600881600c8111156126bf576126bf6147a0565b036126db57610120880182605c811115612546576125466147a0565b600981600c8111156126ef576126ef6147a0565b0361270b57610140880182605c811115612546576125466147a0565b600a81600c81111561271f5761271f6147a0565b0361273b57610160880182605c811115612546576125466147a0565b600b81600c81111561274f5761274f6147a0565b0361276b57610180880182605c811115612546576125466147a0565b600c81600c81111561277f5761277f6147a0565b036127b2576101a0880182605c81111561279b5761279b6147a0565b9081605c8111156127ae576127ae6147a0565b9052505b5050505080806127c1906147cc565b9150506122fb565b5091949350505050565b601f1982015182518251603f199092019182906127f09083614bba565b111561280e5760405162461bcd60e51b8152600401610fcb90614e94565b611f3f848461390f565b6060600082605c81111561282e5761282e6147a0565b0361283857600080fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663fc9faca584605c81111561287b5761287b6147a0565b605c81111561288c5761288c6147a0565b6040518263ffffffff1660e01b81526004016128a89190614e09565b600060405180830381865afa1580156128c5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526128ed9190810190614c3c565b9050606060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663683375c486605c811115612934576129346147a0565b605c811115612945576129456147a0565b6040518263ffffffff1660e01b81526004016129619190614e09565b602060405180830381865afa15801561297e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129a29190614e2f565b600c8111156129b3576129b36147a0565b600c8111156129c4576129c46147a0565b9050600081600c8111156129da576129da6147a0565b03612a0257604051806040016040528060038152602001620a6caf60eb1b8152509150612ce2565b600181600c811115612a1657612a166147a0565b03612a3f57604051806040016040528060048152602001632430b4b960e11b8152509150612ce2565b600281600c811115612a5357612a536147a0565b03612a7c57604051806040016040528060048152602001634579657360e01b8152509150612ce2565b600381600c811115612a9057612a906147a0565b03612aba57604051806040016040528060058152602001641099585c9960da1b8152509150612ce2565b600481600c811115612ace57612ace6147a0565b03612af757604051806040016040528060048152602001634561727360e01b8152509150612ce2565b600581600c811115612b0b57612b0b6147a0565b03612b3457604051806040016040528060048152602001634c69707360e01b8152509150612ce2565b600681600c811115612b4857612b486147a0565b03612b72576040518060400160405280600581526020016409adeeae8d60db1b8152509150612ce2565b600781600c811115612b8657612b866147a0565b03612baf57604051806040016040528060048152602001634661636560e01b8152509150612ce2565b600881600c811115612bc357612bc36147a0565b03612bef576040518060400160405280600781526020016622b6b7ba34b7b760c91b8152509150612ce2565b600981600c811115612c0357612c036147a0565b03612c2c57604051806040016040528060048152602001634e65636b60e01b8152509150612ce2565b600a81600c811115612c4057612c406147a0565b03612c6957604051806040016040528060048152602001634e6f736560e01b8152509150612ce2565b600b81600c811115612c7d57612c7d6147a0565b03612ca85760405180604001604052806006815260200165436865656b7360d01b8152509150612ce2565b600c81600c811115612cbc57612cbc6147a0565b03612ce257604051806040016040528060058152602001640a8cacae8d60db1b81525091505b8183604051602001612cf5929190614ecf565b6040516020818303038152906040529350505050919050565b606081600003612d355750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612d5f5780612d49816147cc565b9150612d589050600a83614b3a565b9150612d39565b6000816001600160401b03811115612d7957612d79613fef565b6040519080825280601f01601f191660200182016040528015612da3576020820181803683370190505b5090505b8415612e0e57612db8600183614b4e565b9150612dc5600a86614f15565b612dd0906030614bba565b60f81b818381518110612de557612de56147b6565b60200101906001600160f81b031916908160001a905350612e07600a86614b3a565b9450612da7565b949350505050565b6000600154821080156108d4575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612ea982613137565b9050836001600160a01b031681600001516001600160a01b031614612ee05760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480612efe5750612efe8533612071565b80612f19575033612f0e84610de0565b6001600160a01b0316145b905080612f3957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416612f6057604051633a954ecd60e21b815260040160405180910390fd5b612f6c60008487612e42565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661304057600154821461304057805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b804710156130ab5760405162461bcd60e51b8152600401610fcb90614f5d565b6000826001600160a01b0316826040516130c490614f6d565b60006040518083038185875af1925050503d8060008114613101576040519150601f19603f3d011682016040523d82523d6000602084013e613106565b606091505b5050905080610ea55760405162461bcd60e51b8152600401610fcb90614fcf565b60606108d4826001600019613945565b60408051606081018252600080825260208201819052918101919091528160015481101561323857600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906132365780516001600160a01b0316156131cd579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215613231579392505050565b6131cd565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6132aa816108c1565b34146132c85760405162461bcd60e51b8152600401610fcb90615008565b3332146132e75760405162461bcd60e51b8152600401610fcb90615044565b6127106132f76002546001540390565b6133019083614bba565b111561331f5760405162461bcd60e51b8152600401610fcb90615080565b60095460ff166133415760405162461bcd60e51b8152600401610fcb906150b9565b600081116133615760405162461bcd60e51b8152600401610fcb906150f1565b600061336e601e83614b3a565b9050600061337d601e84614f15565b905060005b828110156133a75761339585601e6139ef565b8061339f816147cc565b915050613382565b508015611f3f57611f3f84826139ef565b6000816040516020016133cb9190614c76565b60405160208183030381529060405280519060200120836040516020016133f29190614c76565b6040516020818303038152906040528051906020012014905092915050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613446903390899088908890600401615101565b6020604051808303816000875af1925050508015613481575060408051601f3d908101601f1916820190925261347e91810190615150565b60015b6134df573d8080156134af576040519150601f19603f3d011682016040523d82523d6000602084013e6134b4565b606091505b5080516000036134d7576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60606000613509836117bb565b9050600061351a8461ffff16612d0e565b60405160200161352a919061518a565b60408051601f1981840301815260a08301909152606a8083529092506135a7918391615440602083013961355d85613b21565b6040518060600160405280602d81526020016153d3602d913961357f8961092a565b6040516020016135939594939291906151af565b604051602081830303815290604052613b21565b6040516020016135b791906152a4565b60405160208183030381529060405292505050919050565b6000806135fa836040516020016135e691906152dc565b604051602081830303815290604052613c85565b90508051602082016000f091506001600160a01b03821661362e5760405163046a55db60e11b815260040160405180910390fd5b50919050565b606082600060015b6001835161364a9190614b4e565b82101561368d57600061365e878785613cb1565b9050801961366c575061368d565b81613676816147cc565b92506136859050816001614bba565b92505061363c565b806001600160401b038111156136a5576136a5613fef565b6040519080825280602002602001820160405280156136d857816020015b60608152602001906001900390816136c35790505b50935060009150600090505b600183516136f29190614b4e565b821015613816576000613706878785613cb1565b90508019613712575082515b600061371e8483614b4e565b6001600160401b0381111561373557613735613fef565b6040519080825280601f01601f19166020018201604052801561375f576020820181803683370190505b509050806000855b848110156137d657878181518110613781576137816147b6565b01602001516001600160f81b031916838361379b816147cc565b9450815181106137ad576137ad6147b6565b60200101906001600160f81b031916908160001a905350806137ce816147cc565b915050613767565b506137e2846001614bba565b95508188866137f0816147cc565b975081518110613802576138026147b6565b6020026020010181905250505050506136e4565b50505092915050565b8251606090849061383085856152e7565b111561383e5761383e615323565b6000846001600160401b0381111561385857613858613fef565b6040519080825280601f01601f191660200182016040528015613882576020820181803683370190505b509050806000855b61389488886152e7565b811015613902578481815181106138ad576138ad6147b6565b01602001516001600160f81b03191683836138c7816147cc565b9450815181106138d9576138d96147b6565b60200101906001600160f81b031916908160001a905350806138fa816147cc565b91505061388a565b5090979650505050505050565b8051602082019150808201602084510184015b8184101561393a578351815260209384019301613922565b505082510190915250565b6060833b600081900361396857505060408051602081019091526000815261213e565b8084111561398657505060408051602081019091526000815261213e565b838310156139ad5780848460405163162544fd60e11b8152600401610fcb93929190615339565b83830384820360008282106139c257826139c4565b815b60408051603f8301601f19168101909152818152955090508087602087018a3c505050509392505050565b6001546001600160a01b038316613a1857604051622e076360e81b815260040160405180910390fd5b81600003613a395760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168a0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168a01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b4290921691909102179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210613ad55750600155505050565b60608151600003613b4057505060408051602081019091526000815290565b60006040518060600160405280604081526020016154006040913990506000600384516002613b6f9190614bba565b613b799190614b3a565b613b84906004614781565b90506000613b93826020614bba565b6001600160401b03811115613baa57613baa613fef565b6040519080825280601f01601f191660200182016040528015613bd4576020820181803683370190505b509050818152600183018586518101602084015b81831015613c40576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101613be8565b600389510660018114613c5a5760028114613c6b57613c77565b613d3d60f01b600119830152613c77565b603d60f81b6000198301525b509398975050505050505050565b6060815182604051602001613c9b9291906153a0565b6040516020818303038152906040529050919050565b815160009084908490600114613cc957613cc9615323565b835b8251811015613d3e5781600081518110613ce757613ce76147b6565b602001015160f81c60f81b6001600160f81b031916838281518110613d0e57613d0e6147b6565b01602001516001600160f81b03191603613d2c57925061213e915050565b80613d36816147cc565b915050613ccb565b506000199695505050505050565b60405180604001604052806002906020820280368337509192915050565b828054613d7690614a48565b90600052602060002090601f016020900481019282613d985760008555613dde565b82601f10613db157805160ff1916838001178555613dde565b82800160010185558215613dde579182015b82811115613dde578251825591602001919060010190613dc3565b50613dea929150613dee565b5090565b5b80821115613dea5760008155600101613def565b805b8114611d5757600080fd5b80356108d481613e03565b600060208284031215613e3057613e30600080fd5b6000612e0e8484613e10565b805b82525050565b602081016108d48284613e3c565b6001600160e01b03198116613e05565b80356108d481613e52565b600060208284031215613e8257613e82600080fd5b6000612e0e8484613e62565b801515613e3e565b602081016108d48284613e8e565b61ffff8116613e05565b80356108d481613ea4565b600060208284031215613ece57613ece600080fd5b6000612e0e8484613eae565b60005b83811015613ef5578181015183820152602001613edd565b83811115611f3f5750506000910152565b6000613f10825190565b808452602084019350613f27818560208601613eda565b601f01601f19169290920192915050565b6020808252810161213e8184613f06565b60006001600160a01b0382166108d4565b613e3e81613f49565b602081016108d48284613f5a565b613e0581613f49565b80356108d481613f71565b60008060408385031215613f9b57613f9b600080fd5b6000613fa78585613f7a565b9250506020613fb885828601613e10565b9150509250929050565b60006108d482613f49565b60006108d482613fc2565b613e3e81613fcd565b602081016108d48284613fd8565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b038211171561402a5761402a613fef565b6040525050565b600061403c60405190565b90506140488282614005565b919050565b60006001600160401b0382111561406657614066613fef565b601f19601f83011660200192915050565b82818337506000910152565b60006140966140918461404d565b614031565b9050828152602081018484840111156140b1576140b1600080fd5b6140bc848285614077565b509392505050565b600082601f8301126140d8576140d8600080fd5b8135612e0e848260208601614083565b6000602082840312156140fd576140fd600080fd5b81356001600160401b0381111561411657614116600080fd5b612e0e848285016140c4565b60008060006060848603121561413a5761413a600080fd5b60006141468686613f7a565b935050602061415786828701613f7a565b925050604061416886828701613e10565b9150509250925092565b600061417e8383613f5a565b505060200190565b6002818060005b838110156141b25781516141a18782614172565b96506020830192505060010161418d565b505050505050565b604081016108d48284614186565b60006001600160401b038211156141e1576141e1613fef565b5060209081020190565b605d8110611d5757600080fd5b80356108d4816141eb565b6000614211614091846141c8565b8381529050602080820190840283018581111561423057614230600080fd5b835b81811015614254578061424588826141f8565b84525060209283019201614232565b5050509392505050565b600082601f83011261427257614272600080fd5b8135612e0e848260208601614203565b60006020828403121561429757614297600080fd5b81356001600160401b038111156142b0576142b0600080fd5b612e0e8482850161425e565b6000602082840312156142d1576142d1600080fd5b6000612e0e8484613f7a565b600061417e8383613e3c565b60006142f3825190565b80845260209384019383018060005b8381101561432757815161431688826142dd565b975060208301925050600101614302565b509495945050505050565b6020808252810161213e81846142e9565b61ffff8116613e3e565b602081016108d48284614343565b60006101c0828403121561437157614371600080fd5b61437c6101c0614031565b9050600061438a8484613eae565b825250602061439b848483016141f8565b60208301525060406143af848285016141f8565b60408301525060606143c3848285016141f8565b60608301525060806143d7848285016141f8565b60808301525060a06143eb848285016141f8565b60a08301525060c06143ff848285016141f8565b60c08301525060e0614413848285016141f8565b60e083015250610100614428848285016141f8565b6101008301525061012061443e848285016141f8565b61012083015250610140614454848285016141f8565b6101408301525061016061446a848285016141f8565b61016083015250610180614480848285016141f8565b610180830152506101a0614496848285016141f8565b6101a08301525092915050565b60006101c082840312156144b9576144b9600080fd5b6000612e0e848461435b565b604081016144d38285613e3c565b61213e6020830184613e3c565b801515613e05565b80356108d4816144e0565b6000806040838503121561450957614509600080fd5b60006145158585613f7a565b9250506020613fb8858286016144e8565b6000614534614091846141c8565b8381529050602080820190840283018581111561455357614553600080fd5b835b818110156142545780356001600160401b0381111561457657614576600080fd5b80860161458389826140c4565b8552505060209283019201614555565b600082601f8301126145a7576145a7600080fd5b8135612e0e848260208601614526565b60006145c5614091846141c8565b838152905060208082019084028301858111156145e4576145e4600080fd5b835b818110156142545780356001600160401b0381111561460757614607600080fd5b8086016146148982614593565b85525050602092830192016145e6565b600082601f83011261463857614638600080fd5b8135612e0e8482602086016145b7565b60006020828403121561465d5761465d600080fd5b81356001600160401b0381111561467657614676600080fd5b612e0e84828501614624565b6000806000806080858703121561469b5761469b600080fd5b60006146a78787613f7a565b94505060206146b887828801613f7a565b93505060406146c987828801613e10565b92505060608501356001600160401b038111156146e8576146e8600080fd5b6146f4878288016140c4565b91505092959194509250565b60006020828403121561471557614715600080fd5b6000612e0e84846141f8565b6000806040838503121561473757614737600080fd5b60006147438585613f7a565b9250506020613fb885828601613f7a565b60ff8116613e3e565b602081016108d48284614754565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561479b5761479b61476b565b500290565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060001982036147df576147df61476b565b5060010190565b60006147f0825190565b6147fe818560208601613eda565b9290920192915050565b611f4b60f21b815260005b5060020190565b7f7b2274726169745f74797065223a22436f6c6f7220436f756e74222c2022646981527f73706c61795f74797065223a20226e756d626572222c20226d61785f76616c7560208201526f32911d10189a1610113b30b63ab2911d60811b60408201526000605082015b915061488f82846147e6565b915061213e82614808565b7f7b2274726169745f74797065223a22547261697420436f756e74222c2022646981527f73706c61795f74797065223a20226e756d626572222c20226d61785f76616c7560208201526e32911d101b9610113b30b63ab2911d60891b60408201526000604f8201614883565b7f7b2274726169745f74797065223a22476c6f77696e6720547261697420436f7581527f6e74222c2022646973706c61795f74797065223a20226e756d626572222c202260208201527f6d61785f76616c7565223a20352c202276616c7565223a0000000000000000006040820152600060578201614883565b607d60f81b815260006147df565b7f7b2274726169745f74797065223a225261726974792052616e6b222c2022646981527f73706c61795f74797065223a20226e756d626572222c20226d61785f76616c7560208201527232911d1018981818181610113b30b63ab2911d60691b60408201526053016000614a0282846147e6565b915061213e82614980565b605d60f81b815260006147df565b6000614a2782846147e6565b915061213e82614a0d565b634e487b7160e01b600052602260045260246000fd5b600281046001821680614a5c57607f821691505b60208210810361362e5761362e614a32565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572910190815260005b5060200190565b602080825281016108d481614a6e565b601081526000602082016f21b7b73a3930b1ba1039b2b0b632b21760811b81529150614a9c565b602080825281016108d481614ab3565b60138152600060208201724e6f7468696e6720746f20776974686472617760681b81529150614a9c565b602080825281016108d481614aea565b634e487b7160e01b600052601260045260246000fd5b600082614b4957614b49614b24565b500490565b6000825b925082821015614b6457614b6461476b565b500390565b600061ffff8216915061ffff831692508161ffff048311821515161561479b5761479b61476b565b600061ffff8216915061ffff831692508261ffff03821115614bb557614bb561476b565b500190565b60008219821115614bb557614bb561476b565b600081614bdc57614bdc61476b565b506000190190565b6000614bf26140918461404d565b905082815260208101848484011115614c0d57614c0d600080fd5b6140bc848285613eda565b600082601f830112614c2c57614c2c600080fd5b8151612e0e848260208601614be4565b600060208284031215614c5157614c51600080fd5b81516001600160401b03811115614c6a57614c6a600080fd5b612e0e84828501614c18565b600061213e82846147e6565b681e3932b1ba103c1e9160b91b815260005b5060090190565b68222066696c6c3d222360b81b81526000614c94565b6000614cbc82614c82565b9150614cc882866147e6565b6411103c9e9160d91b81526005019150614ce282856147e6565b9150614ced82614c9b565b9150614cf982846147e6565b6211179f60e91b81529150600382016112a4565b6014815260006020820173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b81529150614a9c565b602080825281016108d481614d0d565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015291505b5060400190565b602080825281016108d481614d48565b600060ff8216915060ff8316614b52565b80516108d4816141eb565b600060208284031215614dcf57614dcf600080fd5b6000612e0e8484614daf565b605d8110611d5757611d576147a0565b8061404881614ddb565b60006108d482614deb565b613e3e81614df5565b602081016108d48284614e00565b600d8110611d5757600080fd5b80516108d481614e17565b600060208284031215614e4457614e44600080fd5b6000612e0e8484614e24565b602781526000602082017f44796e616d69634275666665723a20417070656e64696e67206f7574206f66208152663137bab732399760c91b60208201529150614d87565b602080825281016108d481614e50565b6b111610113b30b63ab2911d1160a11b815260005b50600c0190565b61227d60f01b81526000614813565b6e3d913a3930b4ba2fba3cb832911d1160891b8152600f016000614ef382856147e6565b9150614efe82614ea4565b9150614f0a82846147e6565b9150612e0e82614ec0565b600082614f2457614f24614b24565b500690565b601d81526000602082017f416464726573733a20696e73756666696369656e742062616c616e636500000081529150614a9c565b602080825281016108d481614f29565b6000816108d4565b603a81526000602082017f416464726573733a20756e61626c6520746f2073656e642076616c75652c207281527f6563697069656e74206d6179206861766520726576657274656400000000000060208201529150614d87565b602080825281016108d481614f75565b60128152600060208201711399595908195e1858dd081c185e5b595b9d60721b81529150614a9c565b602080825281016108d481614fdf565b601581526000602082017410dbdb9d1c9858dd1cc818d85b9b9bdd081b5a5b9d605a1b81529150614a9c565b602080825281016108d481615018565b601581526000602082017429bab838363c903634b6b4ba103932b0b1b432b21760591b81529150614a9c565b602080825281016108d481615054565b60128152600060208201714d696e74206973206e6f742061637469766560701b81529150614a9c565b602080825281016108d481615090565b60118152600060208201704d696e74206174206c65617374206f6e6560781b81529150614a9c565b602080825281016108d4816150c9565b6080810161510f8287613f5a565b61511c6020830186613f5a565b6151296040830185613e3c565b818103606083015261513b8184613f06565b9695505050505050565b80516108d481613e52565b60006020828403121561516557615165600080fd5b6000612e0e8484615145565b6b43796265725068756e6b202360a01b81526000614eb9565b600061519582615171565b915061213e82846147e6565b607b60f81b815260006147df565b60006151ba826151a1565b67113730b6b2911d1160c11b815260080191506151d782886147e6565b701116113232b9b1b934b83a34b7b7111d1160791b815260110191506151fd82876147e6565b7f222c22696d6167655f64617461223a22646174613a696d6167652f7376672b788152691b5b0ed8985cd94d8d0b60b21b6020820152602a01915061524282866147e6565b7111161132bc3a32b93730b62fbab936111d1160711b8152601201915061526982856147e6565b6f011161130ba3a3934b13aba32b9911d160851b8152601001915061528e82846147e6565b915061529982614980565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000601d8201615195565b60008082526147df565b6000615195826152d2565b6000816001600160ff1b03038313600083121516156153085761530861476b565b81600160ff1b038312600083121615614bb557614bb561476b565b634e487b7160e01b600052600160045260246000fd5b606081016153478286613e3c565b6153546020830185613e3c565b612e0e6040830184613e3c565b606360f81b815260006147df565b60006108d48260e01b90565b613e3e63ffffffff821661536f565b6880600e6000396000f360b81b81526000614c94565b60006153ab82615361565b91506153b7828561537b565b6004820191506153c68261538a565b9150612e0e82846147e656fe68747470733a2f2f63617073756c6532312e636f6d2f636f6c6c656374696f6e732f63796265727068756e6b734142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f4f6e65206f662031302c30303020746f6b656e7320696e207468652043594245525048554e4b20636f6c6c656374696f6e2c20616e206f6e2d636861696e207472616e73666f726d6174696f6e206f6620746865206f726967696e616c2043727970746f50756e6b732e3c7376672077696474683d223132303022206865696768743d2231323030222073686170652d72656e646572696e673d22637269737045646765732220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667222076657273696f6e3d22312e32222076696577426f783d22302030203234203234223e3c7374796c653e726563747b77696474683a3170783b6865696768743a3170787d3c2f7374796c653e3c7265637420783d22302220793d223022207374796c653d2277696474683a313030253b6865696768743a31303025222066696c6c3d222333633261336322202f3ea264697066735822122090a483a22eea85316b36368a67a40390b32b71e21702bbac5d925ac554bf7d7064736f6c634300080d003300000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b2000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a

Deployed Bytecode

0x6080604052600436106102925760003560e01c80635b9db8981161015a578063b5b949d2116100c1578063d5abeb011161007a578063d5abeb01146107fe578063d7c9562e14610814578063e985e9c514610834578063f2fde38b14610854578063f5841dbf14610874578063fbcde940146108a157600080fd5b8063b5b949d21461072f578063b65016371461074f578063b88d4fde1461076e578063c87b56dd1461078e578063cbefe51a146107ae578063d517d948146107de57600080fd5b80638ba4cc3c116101135780638ba4cc3c146106965780638da5cb5b146106a957806395d89b41146106c75780639896ed11146106dc578063a0712d68146106fc578063a22cb4651461070f57600080fd5b80635b9db898146105f75780636352211e1461060c57806368bd580e1461062c57806370a0823114610641578063715018a6146106615780637494964b1461067657600080fd5b80632f2fc416116101fe5780634610d55a116101b75780634610d55a1461052d5780634cd79a921461055a5780634f02f4d21461057a5780634f558e79146105a857806359c74f29146105c85780635b92ac0d146105dd57600080fd5b80632f2fc4161461046e5780632f8b57f9146104905780633ba523c7146104b05780633ccfd60b146104cb57806342842e0e146104e0578063438b63001461050057600080fd5b8063095ea7b311610250578063095ea7b31461037e5780630f5a9f89146103a0578063137fee32146103e157806314dbd3d81461041557806318160ddd1461043557806323b872dd1461044e57600080fd5b806270cb321461029757806301ffc9a7146102cd578063023abe2b146102fa57806304b6d7ce1461032757806306fdde031461033c578063081812fc14610351575b600080fd5b3480156102a357600080fd5b506102b76102b2366004613e1b565b6108c1565b6040516102c49190613e44565b60405180910390f35b3480156102d957600080fd5b506102ed6102e8366004613e6d565b6108da565b6040516102c49190613e96565b34801561030657600080fd5b5061031a610315366004613eb9565b61092a565b6040516102c49190613f38565b34801561033357600080fd5b506102b7601e81565b34801561034857600080fd5b5061031a610d4e565b34801561035d57600080fd5b5061037161036c366004613e1b565b610de0565b6040516102c49190613f63565b34801561038a57600080fd5b5061039e610399366004613f85565b610e24565b005b3480156103ac57600080fd5b506103d47f00000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b281565b6040516102c49190613fe1565b3480156103ed57600080fd5b506103d47f000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a81565b34801561042157600080fd5b5061031a6104303660046140e8565b610eaa565b34801561044157600080fd5b50600254600154036102b7565b34801561045a57600080fd5b5061039e610469366004614122565b610f4f565b34801561047a57600080fd5b50610483610f5a565b6040516102c491906141ba565b34801561049c57600080fd5b5061039e6104ab366004614282565b610fa1565b3480156104bc57600080fd5b506102b76611c37937e0800081565b3480156104d757600080fd5b5061039e61107f565b3480156104ec57600080fd5b5061039e6104fb366004614122565b6110f4565b34801561050c57600080fd5b5061052061051b3660046142bc565b61110f565b6040516102c49190614332565b34801561053957600080fd5b5061054d610548366004613eb9565b611200565b6040516102c4919061434d565b34801561056657600080fd5b506102ed6105753660046144a3565b6112ad565b34801561058657600080fd5b5061059a6105953660046144a3565b611322565b6040516102c49291906144c5565b3480156105b457600080fd5b506102ed6105c3366004613e1b565b611644565b3480156105d457600080fd5b5061039e61164f565b3480156105e957600080fd5b506009546102ed9060ff1681565b34801561060357600080fd5b5061031a61168d565b34801561061857600080fd5b50610371610627366004613e1b565b6116a9565b34801561063857600080fd5b5061039e6116bb565b34801561064d57600080fd5b506102b761065c3660046142bc565b61171e565b34801561066d57600080fd5b5061039e61176c565b34801561068257600080fd5b50600c54610371906001600160a01b031681565b61039e6106a4366004613f85565b6117a2565b3480156106b557600080fd5b506000546001600160a01b0316610371565b3480156106d357600080fd5b5061031a6117ac565b3480156106e857600080fd5b5061031a6106f7366004613eb9565b6117bb565b61039e61070a366004613e1b565b611d4d565b34801561071b57600080fd5b5061039e61072a3660046144f3565b611d5a565b34801561073b57600080fd5b5061039e61074a366004614648565b611df2565b34801561075b57600080fd5b506009546102ed90610100900460ff1681565b34801561077a57600080fd5b5061039e610789366004614682565b611efb565b34801561079a57600080fd5b5061031a6107a9366004613e1b565b611f45565b3480156107ba57600080fd5b506102ed6107c9366004614700565b600b6020526000908152604090205460ff1681565b3480156107ea57600080fd5b5061039e6107f93660046140e8565b611f75565b34801561080a57600080fd5b506102b761271081565b34801561082057600080fd5b5061039e61082f3660046140e8565b611ff3565b34801561084057600080fd5b506102ed61084f366004614721565b612071565b34801561086057600080fd5b5061039e61086f3660046142bc565b61209f565b34801561088057600080fd5b5061089461088f366004613eb9565b6120f8565b6040516102c4919061475d565b3480156108ad57600080fd5b50600d54610371906001600160a01b031681565b60006108d46611c37937e0800083614781565b92915050565b60006001600160e01b031982166380ac58cd60e01b148061090b57506001600160e01b03198216635b5e139f60e01b145b806108d457506301ffc9a760e01b6001600160e01b03198316146108d4565b6060600061093783612145565b604080516201006081019091526201004081526000602090910181815291925090610984604051806040016040528060018152602001605b60f81b815250826127d390919063ffffffff16565b6000604051806101a001604052808560200151605c8111156109a8576109a86147a0565b605c8111156109b9576109b96147a0565b81526020018560400151605c8111156109d4576109d46147a0565b605c8111156109e5576109e56147a0565b81526020018560600151605c811115610a0057610a006147a0565b605c811115610a1157610a116147a0565b81526020018560800151605c811115610a2c57610a2c6147a0565b605c811115610a3d57610a3d6147a0565b81526020018560a00151605c811115610a5857610a586147a0565b605c811115610a6957610a696147a0565b81526020018560c00151605c811115610a8457610a846147a0565b605c811115610a9557610a956147a0565b81526020018560e00151605c811115610ab057610ab06147a0565b605c811115610ac157610ac16147a0565b8152602001856101000151605c811115610add57610add6147a0565b605c811115610aee57610aee6147a0565b8152602001856101200151605c811115610b0a57610b0a6147a0565b605c811115610b1b57610b1b6147a0565b8152602001856101400151605c811115610b3757610b376147a0565b605c811115610b4857610b486147a0565b8152602001856101600151605c811115610b6457610b646147a0565b605c811115610b7557610b756147a0565b8152602001856101800151605c811115610b9157610b916147a0565b605c811115610ba257610ba26147a0565b8152602001856101a00151605c811115610bbe57610bbe6147a0565b605c811115610bcf57610bcf6147a0565b90529050600080610bdf86611322565b9150915060005b600d811015610c7a5760008482600d8110610c0357610c036147b6565b6020020151905086605c811115610c1c57610c1c6147a0565b81605c811115610c2e57610c2e6147a0565b14610c6957610c46610c3f82612818565b87906127d3565b6040805180820190915260018152600b60fa1b6020820152610c699087906127d3565b50610c73816147cc565b9050610be6565b50610cbd610c96610c8e88600001516120f8565b60ff16612d0e565b604051602001610ca6919061481a565b60408051601f1981840301815291905285906127d3565b610cd9610cc983612d0e565b604051602001610ca6919061489a565b610cf5610ce582612d0e565b604051602001610ca69190614906565b610d21610d11610d088860000151611200565b61ffff16612d0e565b604051602001610ca6919061498e565b83604051602001610d329190614a1b565b6040516020818303038152906040529650505050505050919050565b606060038054610d5d90614a48565b80601f0160208091040260200160405190810160405280929190818152602001828054610d8990614a48565b8015610dd65780601f10610dab57610100808354040283529160200191610dd6565b820191906000526020600020905b815481529060010190602001808311610db957829003601f168201915b5050505050905090565b6000610deb82612e16565b610e08576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610e2f826116a9565b9050806001600160a01b0316836001600160a01b031603610e635760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610e9a57610e7d8133612071565b610e9a576040516367d9dca160e11b815260040160405180910390fd5b610ea5838383612e42565b505050565b8051602081830181018051600a8252928201919093012091528054610ece90614a48565b80601f0160208091040260200160405190810160405280929190818152602001828054610efa90614a48565b8015610f475780601f10610f1c57610100808354040283529160200191610f47565b820191906000526020600020905b815481529060010190602001808311610f2a57829003601f168201915b505050505081565b610ea5838383612e9e565b610f62613d4c565b5060408051808201909152735fd2e3ba05c862e62a34b9f63c45c0df622ac112815273c2172a6315c1d7f6855768f843c420ebb36eda97602082015290565b6000546001600160a01b03163314610fd45760405162461bcd60e51b8152600401610fcb90614aa3565b60405180910390fd5b600954610100900460ff1615610ffc5760405162461bcd60e51b8152600401610fcb90614ada565b60005b815181101561107b576001600b6000848481518110611020576110206147b6565b6020026020010151605c811115611039576110396147a0565b605c81111561104a5761104a6147a0565b81526020810191909152604001600020805460ff191691151591909117905580611073816147cc565b915050610fff565b5050565b6000471161109f5760405162461bcd60e51b8152600401610fcb90614b14565b4760006110ad600283614b3a565b90506110cd73c2172a6315c1d7f6855768f843c420ebb36eda978261308b565b61107b735fd2e3ba05c862e62a34b9f63c45c0df622ac1126110ef8385614b4e565b61308b565b610ea583838360405180602001604052806000815250611efb565b6060600061111c8361171e565b90506000816001600160401b0381111561113857611138613fef565b604051908082528060200260200182016040528015611161578160200160208202803683370190505b5090506000805b8381108015611178575061271082105b156111f657600061118883612e16565b61119357600061119c565b61119c836116a9565b9050866001600160a01b0316816001600160a01b0316036111e357828483815181106111ca576111ca6147b6565b6020908102919091010152816111df816147cc565b9250505b826111ed816147cc565b93505050611168565b5090949350505050565b600d54600090819061121a906001600160a01b0316613127565b905060008161122a856002614b69565b61ffff168151811061123e5761123e6147b6565b01602001516112529060f81c610100614b69565b61ffff169050600082611266866002614b69565b611271906001614b91565b61ffff1681518110611285576112856147b6565b016020015160f81c90506112998183614bba565b6112a4906001614bba565b95945050505050565b6000605b8260400151605c8111156112c7576112c76147a0565b141580156112eb575060288260400151605c8111156112e8576112e86147a0565b14155b801561130d575060408260400151605c81111561130a5761130a6147a0565b14155b1561131a57506001919050565b506000919050565b6000806000604051806101a001604052808560200151605c811115611349576113496147a0565b605c81111561135a5761135a6147a0565b81526020018560400151605c811115611375576113756147a0565b605c811115611386576113866147a0565b81526020018560600151605c8111156113a1576113a16147a0565b605c8111156113b2576113b26147a0565b81526020018560800151605c8111156113cd576113cd6147a0565b605c8111156113de576113de6147a0565b81526020018560a00151605c8111156113f9576113f96147a0565b605c81111561140a5761140a6147a0565b81526020018560c00151605c811115611425576114256147a0565b605c811115611436576114366147a0565b81526020018560e00151605c811115611451576114516147a0565b605c811115611462576114626147a0565b8152602001856101000151605c81111561147e5761147e6147a0565b605c81111561148f5761148f6147a0565b8152602001856101200151605c8111156114ab576114ab6147a0565b605c8111156114bc576114bc6147a0565b8152602001856101400151605c8111156114d8576114d86147a0565b605c8111156114e9576114e96147a0565b8152602001856101600151605c811115611505576115056147a0565b605c811115611516576115166147a0565b8152602001856101800151605c811115611532576115326147a0565b605c811115611543576115436147a0565b8152602001856101a00151605c81111561155f5761155f6147a0565b605c811115611570576115706147a0565b9052905060005b600d8110156116305760008282600d8110611594576115946147b6565b6020020151605c8111156115aa576115aa6147a0565b1461162057836115b9816147cc565b945050600b60008383600d81106115d2576115d26147b6565b6020020151605c8111156115e8576115e86147a0565b605c8111156115f9576115f96147a0565b815260208101919091526040016000205460ff1615611620578261161c816147cc565b9350505b611629816147cc565b9050611577565b508261163b81614bcd565b93505050915091565b60006108d482612e16565b6000546001600160a01b031633146116795760405162461bcd60e51b8152600401610fcb90614aa3565b6009805460ff19811660ff90911615179055565b6040518060600160405280602d81526020016153d3602d913981565b60006116b482613137565b5192915050565b6000546001600160a01b031633146116e55760405162461bcd60e51b8152600401610fcb90614aa3565b600954610100900460ff161561170d5760405162461bcd60e51b8152600401610fcb90614ada565b6009805461ff001916610100179055565b60006001600160a01b038216611747576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6000546001600160a01b031633146117965760405162461bcd60e51b8152600401610fcb90614aa3565b6117a06000613251565b565b61107b82826132a1565b606060048054610d5d90614a48565b606060006117c883612145565b905060007f00000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b26001600160a01b0316633e5e0a96856040518263ffffffff1660e01b8152600401611818919061434d565b600060405180830381865afa158015611835573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261185d9190810190614c3c565b6040805162020060810190915262020040815260006020909101818152919250506118a260405180610120016040528060ed81526020016154aa60ed913982906127d3565b60408051600880825281830190925260009160208201818036833701905050905060005b6018811015611d1b5760005b6018811015611d08576000816118e9846018614781565b6118f39190614bba565b6118fe906004614781565b905060008661190e836003614bba565b8151811061191e5761191e6147b6565b016020015160f81c1115611cf55760005b6004811015611a3f576000876119458385614bba565b81518110611955576119556147b6565b016020015160f81c90506f181899199a1a9b1b9c1cb0b131b232b360811b600f821660108110611987576119876147b6565b1a60f81b86611997846002614781565b6119a2906001614bba565b815181106119b2576119b26147b6565b60200101906001600160f81b031916908160001a90535060041c600f166f181899199a1a9b1b9c1cb0b131b232b360811b81601081106119f4576119f46147b6565b1a60f81b86611a04846002614781565b81518110611a1457611a146147b6565b60200101906001600160f81b031916908160001a905350508080611a37906147cc565b91505061192f565b506000611a4d836017614b4e565b90508460608286600882148015611a64575080600c145b80611a7a575081600d148015611a7a575080600c145b8015611aab5750611aab84604051806040016040528060088152602001671cb132983298333360c11b8152506133b8565b15611ad857604051806040016040528060088152602001671cb132983298333360c11b8152509250611cb0565b81600a148015611ae85750806012145b80611afe575081600c148015611afe5750806012145b8015611b2f5750611b2f84604051806040016040528060088152602001673230b1b23131333360c11b8152506133b8565b15611b5c5760405180604001604052806008815260200167333333333333333360c11b8152509250611cb0565b81600e148015611b6c5750806007145b80611b82575081600f148015611b825750806008145b80611b98575081600e148015611b985750806009145b8015611ba85750611ba88c6112ad565b8015611bd95750611bd98460405180604001604052806008815260200167333333333333333360c11b8152506133b8565b15611c0657604051806040016040528060088152602001671b1b1a191a9cb33360c11b8152509250611cb0565b600a84604051611c169190614c76565b90815260200160405180910390208054611c2f90614a48565b80601f0160208091040260200160405190810160405280929190818152602001828054611c5b90614a48565b8015611ca85780601f10611c7d57610100808354040283529160200191611ca8565b820191906000526020600020905b815481529060010190602001808311611c8b57829003601f168201915b505050505092505b611cef611cbc86612d0e565b611cc58a612d0e565b85604051602001611cd893929190614cb1565b60408051601f198184030181529190528b906127d3565b50505050505b5080611d00816147cc565b9150506118d2565b5080611d13816147cc565b9150506118c6565b506040805180820190915260068152651e17b9bb339f60d11b6020820152611d449083906127d3565b50949350505050565b611d5733826132a1565b50565b336001600160a01b03831603611d835760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b038716808552925291829020805460ff191685151517905590519091907f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3190611de6908590613e96565b60405180910390a35050565b6000546001600160a01b03163314611e1c5760405162461bcd60e51b8152600401610fcb90614aa3565b600954610100900460ff1615611e445760405162461bcd60e51b8152600401610fcb90614ada565b60005b815181101561107b57818181518110611e6257611e626147b6565b6020026020010151600181518110611e7c57611e7c6147b6565b6020026020010151600a838381518110611e9857611e986147b6565b6020026020010151600081518110611eb257611eb26147b6565b6020026020010151604051611ec79190614c76565b90815260200160405180910390209080519060200190611ee8929190613d6a565b5080611ef3816147cc565b915050611e47565b611f06848484612e9e565b6001600160a01b0383163b15611f3f57611f2284848484613411565b611f3f576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060611f5082612e16565b611f6c5760405162461bcd60e51b8152600401610fcb90614d38565b6108d4826134fc565b6000546001600160a01b03163314611f9f5760405162461bcd60e51b8152600401610fcb90614aa3565b600954610100900460ff1615611fc75760405162461bcd60e51b8152600401610fcb90614ada565b611fd0816135cf565b600c80546001600160a01b0319166001600160a01b039290921691909117905550565b6000546001600160a01b0316331461201d5760405162461bcd60e51b8152600401610fcb90614aa3565b600954610100900460ff16156120455760405162461bcd60e51b8152600401610fcb90614ada565b61204e816135cf565b600d80546001600160a01b0319166001600160a01b039290921691909117905550565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b6000546001600160a01b031633146120c95760405162461bcd60e51b8152600401610fcb90614aa3565b6001600160a01b0381166120ef5760405162461bcd60e51b8152600401610fcb90614d8e565b611d5781613251565b600c546000908190612112906001600160a01b0316613127565b90506001818461ffff168151811061212c5761212c6147b6565b016020015161213e919060f81c614d9e565b9392505050565b6121b7604080516101c0810190915260008082526020820190815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000905290565b604080516101c0810190915261ffff831681526000906020810182815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000905261ffff84168082526040516376dfe29760e01b81529192506000916001600160a01b037f00000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b216916376dfe29791612281919060040161434d565b600060405180830381865afa15801561229e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526122c69190810190614c3c565b905060006122f6604051806040016040528060018152602001600b60fa1b8152508361363490919063ffffffff16565b905060005b81518110156127c9576000828281518110612318576123186147b6565b6020026020010151905060606001831015612371576040805180820190915260018152600160fd1b6020820152612350908390613634565b600081518110612362576123626147b6565b6020026020010151905061238e565b61238b600183516123829190614b4e565b8390600161381f565b90505b604051631a2d891b60e31b81526000906001600160a01b037f000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a169063d16c48d8906123dd908590600401613f38565b602060405180830381865afa1580156123fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061241e9190614dba565b605c81111561242f5761242f6147a0565b605c811115612440576124406147a0565b905060007f000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a6001600160a01b031663683375c483605c811115612485576124856147a0565b605c811115612496576124966147a0565b6040518263ffffffff1660e01b81526004016124b29190614e09565b602060405180830381865afa1580156124cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124f39190614e2f565b600c811115612504576125046147a0565b600c811115612515576125156147a0565b9050600081600c81111561252b5761252b6147a0565b03612561576020880182605c811115612546576125466147a0565b9081605c811115612559576125596147a0565b9052506127b2565b600181600c811115612575576125756147a0565b03612590576040880182605c811115612546576125466147a0565b600281600c8111156125a4576125a46147a0565b036125bf576060880182605c811115612546576125466147a0565b600381600c8111156125d3576125d36147a0565b036125ee576080880182605c811115612546576125466147a0565b600481600c811115612602576126026147a0565b0361261d5760a0880182605c811115612546576125466147a0565b600581600c811115612631576126316147a0565b0361264c5760c0880182605c811115612546576125466147a0565b600681600c811115612660576126606147a0565b0361267b5760e0880182605c811115612546576125466147a0565b600781600c81111561268f5761268f6147a0565b036126ab57610100880182605c811115612546576125466147a0565b600881600c8111156126bf576126bf6147a0565b036126db57610120880182605c811115612546576125466147a0565b600981600c8111156126ef576126ef6147a0565b0361270b57610140880182605c811115612546576125466147a0565b600a81600c81111561271f5761271f6147a0565b0361273b57610160880182605c811115612546576125466147a0565b600b81600c81111561274f5761274f6147a0565b0361276b57610180880182605c811115612546576125466147a0565b600c81600c81111561277f5761277f6147a0565b036127b2576101a0880182605c81111561279b5761279b6147a0565b9081605c8111156127ae576127ae6147a0565b9052505b5050505080806127c1906147cc565b9150506122fb565b5091949350505050565b601f1982015182518251603f199092019182906127f09083614bba565b111561280e5760405162461bcd60e51b8152600401610fcb90614e94565b611f3f848461390f565b6060600082605c81111561282e5761282e6147a0565b0361283857600080fd5b60007f000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a6001600160a01b031663fc9faca584605c81111561287b5761287b6147a0565b605c81111561288c5761288c6147a0565b6040518263ffffffff1660e01b81526004016128a89190614e09565b600060405180830381865afa1580156128c5573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526128ed9190810190614c3c565b9050606060007f000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a6001600160a01b031663683375c486605c811115612934576129346147a0565b605c811115612945576129456147a0565b6040518263ffffffff1660e01b81526004016129619190614e09565b602060405180830381865afa15801561297e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129a29190614e2f565b600c8111156129b3576129b36147a0565b600c8111156129c4576129c46147a0565b9050600081600c8111156129da576129da6147a0565b03612a0257604051806040016040528060038152602001620a6caf60eb1b8152509150612ce2565b600181600c811115612a1657612a166147a0565b03612a3f57604051806040016040528060048152602001632430b4b960e11b8152509150612ce2565b600281600c811115612a5357612a536147a0565b03612a7c57604051806040016040528060048152602001634579657360e01b8152509150612ce2565b600381600c811115612a9057612a906147a0565b03612aba57604051806040016040528060058152602001641099585c9960da1b8152509150612ce2565b600481600c811115612ace57612ace6147a0565b03612af757604051806040016040528060048152602001634561727360e01b8152509150612ce2565b600581600c811115612b0b57612b0b6147a0565b03612b3457604051806040016040528060048152602001634c69707360e01b8152509150612ce2565b600681600c811115612b4857612b486147a0565b03612b72576040518060400160405280600581526020016409adeeae8d60db1b8152509150612ce2565b600781600c811115612b8657612b866147a0565b03612baf57604051806040016040528060048152602001634661636560e01b8152509150612ce2565b600881600c811115612bc357612bc36147a0565b03612bef576040518060400160405280600781526020016622b6b7ba34b7b760c91b8152509150612ce2565b600981600c811115612c0357612c036147a0565b03612c2c57604051806040016040528060048152602001634e65636b60e01b8152509150612ce2565b600a81600c811115612c4057612c406147a0565b03612c6957604051806040016040528060048152602001634e6f736560e01b8152509150612ce2565b600b81600c811115612c7d57612c7d6147a0565b03612ca85760405180604001604052806006815260200165436865656b7360d01b8152509150612ce2565b600c81600c811115612cbc57612cbc6147a0565b03612ce257604051806040016040528060058152602001640a8cacae8d60db1b81525091505b8183604051602001612cf5929190614ecf565b6040516020818303038152906040529350505050919050565b606081600003612d355750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612d5f5780612d49816147cc565b9150612d589050600a83614b3a565b9150612d39565b6000816001600160401b03811115612d7957612d79613fef565b6040519080825280601f01601f191660200182016040528015612da3576020820181803683370190505b5090505b8415612e0e57612db8600183614b4e565b9150612dc5600a86614f15565b612dd0906030614bba565b60f81b818381518110612de557612de56147b6565b60200101906001600160f81b031916908160001a905350612e07600a86614b3a565b9450612da7565b949350505050565b6000600154821080156108d4575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612ea982613137565b9050836001600160a01b031681600001516001600160a01b031614612ee05760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480612efe5750612efe8533612071565b80612f19575033612f0e84610de0565b6001600160a01b0316145b905080612f3957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416612f6057604051633a954ecd60e21b815260040160405180910390fd5b612f6c60008487612e42565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661304057600154821461304057805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b804710156130ab5760405162461bcd60e51b8152600401610fcb90614f5d565b6000826001600160a01b0316826040516130c490614f6d565b60006040518083038185875af1925050503d8060008114613101576040519150601f19603f3d011682016040523d82523d6000602084013e613106565b606091505b5050905080610ea55760405162461bcd60e51b8152600401610fcb90614fcf565b60606108d4826001600019613945565b60408051606081018252600080825260208201819052918101919091528160015481101561323857600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906132365780516001600160a01b0316156131cd579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215613231579392505050565b6131cd565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6132aa816108c1565b34146132c85760405162461bcd60e51b8152600401610fcb90615008565b3332146132e75760405162461bcd60e51b8152600401610fcb90615044565b6127106132f76002546001540390565b6133019083614bba565b111561331f5760405162461bcd60e51b8152600401610fcb90615080565b60095460ff166133415760405162461bcd60e51b8152600401610fcb906150b9565b600081116133615760405162461bcd60e51b8152600401610fcb906150f1565b600061336e601e83614b3a565b9050600061337d601e84614f15565b905060005b828110156133a75761339585601e6139ef565b8061339f816147cc565b915050613382565b508015611f3f57611f3f84826139ef565b6000816040516020016133cb9190614c76565b60405160208183030381529060405280519060200120836040516020016133f29190614c76565b6040516020818303038152906040528051906020012014905092915050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613446903390899088908890600401615101565b6020604051808303816000875af1925050508015613481575060408051601f3d908101601f1916820190925261347e91810190615150565b60015b6134df573d8080156134af576040519150601f19603f3d011682016040523d82523d6000602084013e6134b4565b606091505b5080516000036134d7576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60606000613509836117bb565b9050600061351a8461ffff16612d0e565b60405160200161352a919061518a565b60408051601f1981840301815260a08301909152606a8083529092506135a7918391615440602083013961355d85613b21565b6040518060600160405280602d81526020016153d3602d913961357f8961092a565b6040516020016135939594939291906151af565b604051602081830303815290604052613b21565b6040516020016135b791906152a4565b60405160208183030381529060405292505050919050565b6000806135fa836040516020016135e691906152dc565b604051602081830303815290604052613c85565b90508051602082016000f091506001600160a01b03821661362e5760405163046a55db60e11b815260040160405180910390fd5b50919050565b606082600060015b6001835161364a9190614b4e565b82101561368d57600061365e878785613cb1565b9050801961366c575061368d565b81613676816147cc565b92506136859050816001614bba565b92505061363c565b806001600160401b038111156136a5576136a5613fef565b6040519080825280602002602001820160405280156136d857816020015b60608152602001906001900390816136c35790505b50935060009150600090505b600183516136f29190614b4e565b821015613816576000613706878785613cb1565b90508019613712575082515b600061371e8483614b4e565b6001600160401b0381111561373557613735613fef565b6040519080825280601f01601f19166020018201604052801561375f576020820181803683370190505b509050806000855b848110156137d657878181518110613781576137816147b6565b01602001516001600160f81b031916838361379b816147cc565b9450815181106137ad576137ad6147b6565b60200101906001600160f81b031916908160001a905350806137ce816147cc565b915050613767565b506137e2846001614bba565b95508188866137f0816147cc565b975081518110613802576138026147b6565b6020026020010181905250505050506136e4565b50505092915050565b8251606090849061383085856152e7565b111561383e5761383e615323565b6000846001600160401b0381111561385857613858613fef565b6040519080825280601f01601f191660200182016040528015613882576020820181803683370190505b509050806000855b61389488886152e7565b811015613902578481815181106138ad576138ad6147b6565b01602001516001600160f81b03191683836138c7816147cc565b9450815181106138d9576138d96147b6565b60200101906001600160f81b031916908160001a905350806138fa816147cc565b91505061388a565b5090979650505050505050565b8051602082019150808201602084510184015b8184101561393a578351815260209384019301613922565b505082510190915250565b6060833b600081900361396857505060408051602081019091526000815261213e565b8084111561398657505060408051602081019091526000815261213e565b838310156139ad5780848460405163162544fd60e11b8152600401610fcb93929190615339565b83830384820360008282106139c257826139c4565b815b60408051603f8301601f19168101909152818152955090508087602087018a3c505050509392505050565b6001546001600160a01b038316613a1857604051622e076360e81b815260040160405180910390fd5b81600003613a395760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168a0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168a01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b4290921691909102179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210613ad55750600155505050565b60608151600003613b4057505060408051602081019091526000815290565b60006040518060600160405280604081526020016154006040913990506000600384516002613b6f9190614bba565b613b799190614b3a565b613b84906004614781565b90506000613b93826020614bba565b6001600160401b03811115613baa57613baa613fef565b6040519080825280601f01601f191660200182016040528015613bd4576020820181803683370190505b509050818152600183018586518101602084015b81831015613c40576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101613be8565b600389510660018114613c5a5760028114613c6b57613c77565b613d3d60f01b600119830152613c77565b603d60f81b6000198301525b509398975050505050505050565b6060815182604051602001613c9b9291906153a0565b6040516020818303038152906040529050919050565b815160009084908490600114613cc957613cc9615323565b835b8251811015613d3e5781600081518110613ce757613ce76147b6565b602001015160f81c60f81b6001600160f81b031916838281518110613d0e57613d0e6147b6565b01602001516001600160f81b03191603613d2c57925061213e915050565b80613d36816147cc565b915050613ccb565b506000199695505050505050565b60405180604001604052806002906020820280368337509192915050565b828054613d7690614a48565b90600052602060002090601f016020900481019282613d985760008555613dde565b82601f10613db157805160ff1916838001178555613dde565b82800160010185558215613dde579182015b82811115613dde578251825591602001919060010190613dc3565b50613dea929150613dee565b5090565b5b80821115613dea5760008155600101613def565b805b8114611d5757600080fd5b80356108d481613e03565b600060208284031215613e3057613e30600080fd5b6000612e0e8484613e10565b805b82525050565b602081016108d48284613e3c565b6001600160e01b03198116613e05565b80356108d481613e52565b600060208284031215613e8257613e82600080fd5b6000612e0e8484613e62565b801515613e3e565b602081016108d48284613e8e565b61ffff8116613e05565b80356108d481613ea4565b600060208284031215613ece57613ece600080fd5b6000612e0e8484613eae565b60005b83811015613ef5578181015183820152602001613edd565b83811115611f3f5750506000910152565b6000613f10825190565b808452602084019350613f27818560208601613eda565b601f01601f19169290920192915050565b6020808252810161213e8184613f06565b60006001600160a01b0382166108d4565b613e3e81613f49565b602081016108d48284613f5a565b613e0581613f49565b80356108d481613f71565b60008060408385031215613f9b57613f9b600080fd5b6000613fa78585613f7a565b9250506020613fb885828601613e10565b9150509250929050565b60006108d482613f49565b60006108d482613fc2565b613e3e81613fcd565b602081016108d48284613fd8565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b038211171561402a5761402a613fef565b6040525050565b600061403c60405190565b90506140488282614005565b919050565b60006001600160401b0382111561406657614066613fef565b601f19601f83011660200192915050565b82818337506000910152565b60006140966140918461404d565b614031565b9050828152602081018484840111156140b1576140b1600080fd5b6140bc848285614077565b509392505050565b600082601f8301126140d8576140d8600080fd5b8135612e0e848260208601614083565b6000602082840312156140fd576140fd600080fd5b81356001600160401b0381111561411657614116600080fd5b612e0e848285016140c4565b60008060006060848603121561413a5761413a600080fd5b60006141468686613f7a565b935050602061415786828701613f7a565b925050604061416886828701613e10565b9150509250925092565b600061417e8383613f5a565b505060200190565b6002818060005b838110156141b25781516141a18782614172565b96506020830192505060010161418d565b505050505050565b604081016108d48284614186565b60006001600160401b038211156141e1576141e1613fef565b5060209081020190565b605d8110611d5757600080fd5b80356108d4816141eb565b6000614211614091846141c8565b8381529050602080820190840283018581111561423057614230600080fd5b835b81811015614254578061424588826141f8565b84525060209283019201614232565b5050509392505050565b600082601f83011261427257614272600080fd5b8135612e0e848260208601614203565b60006020828403121561429757614297600080fd5b81356001600160401b038111156142b0576142b0600080fd5b612e0e8482850161425e565b6000602082840312156142d1576142d1600080fd5b6000612e0e8484613f7a565b600061417e8383613e3c565b60006142f3825190565b80845260209384019383018060005b8381101561432757815161431688826142dd565b975060208301925050600101614302565b509495945050505050565b6020808252810161213e81846142e9565b61ffff8116613e3e565b602081016108d48284614343565b60006101c0828403121561437157614371600080fd5b61437c6101c0614031565b9050600061438a8484613eae565b825250602061439b848483016141f8565b60208301525060406143af848285016141f8565b60408301525060606143c3848285016141f8565b60608301525060806143d7848285016141f8565b60808301525060a06143eb848285016141f8565b60a08301525060c06143ff848285016141f8565b60c08301525060e0614413848285016141f8565b60e083015250610100614428848285016141f8565b6101008301525061012061443e848285016141f8565b61012083015250610140614454848285016141f8565b6101408301525061016061446a848285016141f8565b61016083015250610180614480848285016141f8565b610180830152506101a0614496848285016141f8565b6101a08301525092915050565b60006101c082840312156144b9576144b9600080fd5b6000612e0e848461435b565b604081016144d38285613e3c565b61213e6020830184613e3c565b801515613e05565b80356108d4816144e0565b6000806040838503121561450957614509600080fd5b60006145158585613f7a565b9250506020613fb8858286016144e8565b6000614534614091846141c8565b8381529050602080820190840283018581111561455357614553600080fd5b835b818110156142545780356001600160401b0381111561457657614576600080fd5b80860161458389826140c4565b8552505060209283019201614555565b600082601f8301126145a7576145a7600080fd5b8135612e0e848260208601614526565b60006145c5614091846141c8565b838152905060208082019084028301858111156145e4576145e4600080fd5b835b818110156142545780356001600160401b0381111561460757614607600080fd5b8086016146148982614593565b85525050602092830192016145e6565b600082601f83011261463857614638600080fd5b8135612e0e8482602086016145b7565b60006020828403121561465d5761465d600080fd5b81356001600160401b0381111561467657614676600080fd5b612e0e84828501614624565b6000806000806080858703121561469b5761469b600080fd5b60006146a78787613f7a565b94505060206146b887828801613f7a565b93505060406146c987828801613e10565b92505060608501356001600160401b038111156146e8576146e8600080fd5b6146f4878288016140c4565b91505092959194509250565b60006020828403121561471557614715600080fd5b6000612e0e84846141f8565b6000806040838503121561473757614737600080fd5b60006147438585613f7a565b9250506020613fb885828601613f7a565b60ff8116613e3e565b602081016108d48284614754565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561479b5761479b61476b565b500290565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060001982036147df576147df61476b565b5060010190565b60006147f0825190565b6147fe818560208601613eda565b9290920192915050565b611f4b60f21b815260005b5060020190565b7f7b2274726169745f74797065223a22436f6c6f7220436f756e74222c2022646981527f73706c61795f74797065223a20226e756d626572222c20226d61785f76616c7560208201526f32911d10189a1610113b30b63ab2911d60811b60408201526000605082015b915061488f82846147e6565b915061213e82614808565b7f7b2274726169745f74797065223a22547261697420436f756e74222c2022646981527f73706c61795f74797065223a20226e756d626572222c20226d61785f76616c7560208201526e32911d101b9610113b30b63ab2911d60891b60408201526000604f8201614883565b7f7b2274726169745f74797065223a22476c6f77696e6720547261697420436f7581527f6e74222c2022646973706c61795f74797065223a20226e756d626572222c202260208201527f6d61785f76616c7565223a20352c202276616c7565223a0000000000000000006040820152600060578201614883565b607d60f81b815260006147df565b7f7b2274726169745f74797065223a225261726974792052616e6b222c2022646981527f73706c61795f74797065223a20226e756d626572222c20226d61785f76616c7560208201527232911d1018981818181610113b30b63ab2911d60691b60408201526053016000614a0282846147e6565b915061213e82614980565b605d60f81b815260006147df565b6000614a2782846147e6565b915061213e82614a0d565b634e487b7160e01b600052602260045260246000fd5b600281046001821680614a5c57607f821691505b60208210810361362e5761362e614a32565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572910190815260005b5060200190565b602080825281016108d481614a6e565b601081526000602082016f21b7b73a3930b1ba1039b2b0b632b21760811b81529150614a9c565b602080825281016108d481614ab3565b60138152600060208201724e6f7468696e6720746f20776974686472617760681b81529150614a9c565b602080825281016108d481614aea565b634e487b7160e01b600052601260045260246000fd5b600082614b4957614b49614b24565b500490565b6000825b925082821015614b6457614b6461476b565b500390565b600061ffff8216915061ffff831692508161ffff048311821515161561479b5761479b61476b565b600061ffff8216915061ffff831692508261ffff03821115614bb557614bb561476b565b500190565b60008219821115614bb557614bb561476b565b600081614bdc57614bdc61476b565b506000190190565b6000614bf26140918461404d565b905082815260208101848484011115614c0d57614c0d600080fd5b6140bc848285613eda565b600082601f830112614c2c57614c2c600080fd5b8151612e0e848260208601614be4565b600060208284031215614c5157614c51600080fd5b81516001600160401b03811115614c6a57614c6a600080fd5b612e0e84828501614c18565b600061213e82846147e6565b681e3932b1ba103c1e9160b91b815260005b5060090190565b68222066696c6c3d222360b81b81526000614c94565b6000614cbc82614c82565b9150614cc882866147e6565b6411103c9e9160d91b81526005019150614ce282856147e6565b9150614ced82614c9b565b9150614cf982846147e6565b6211179f60e91b81529150600382016112a4565b6014815260006020820173151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b81529150614a9c565b602080825281016108d481614d0d565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b602082015291505b5060400190565b602080825281016108d481614d48565b600060ff8216915060ff8316614b52565b80516108d4816141eb565b600060208284031215614dcf57614dcf600080fd5b6000612e0e8484614daf565b605d8110611d5757611d576147a0565b8061404881614ddb565b60006108d482614deb565b613e3e81614df5565b602081016108d48284614e00565b600d8110611d5757600080fd5b80516108d481614e17565b600060208284031215614e4457614e44600080fd5b6000612e0e8484614e24565b602781526000602082017f44796e616d69634275666665723a20417070656e64696e67206f7574206f66208152663137bab732399760c91b60208201529150614d87565b602080825281016108d481614e50565b6b111610113b30b63ab2911d1160a11b815260005b50600c0190565b61227d60f01b81526000614813565b6e3d913a3930b4ba2fba3cb832911d1160891b8152600f016000614ef382856147e6565b9150614efe82614ea4565b9150614f0a82846147e6565b9150612e0e82614ec0565b600082614f2457614f24614b24565b500690565b601d81526000602082017f416464726573733a20696e73756666696369656e742062616c616e636500000081529150614a9c565b602080825281016108d481614f29565b6000816108d4565b603a81526000602082017f416464726573733a20756e61626c6520746f2073656e642076616c75652c207281527f6563697069656e74206d6179206861766520726576657274656400000000000060208201529150614d87565b602080825281016108d481614f75565b60128152600060208201711399595908195e1858dd081c185e5b595b9d60721b81529150614a9c565b602080825281016108d481614fdf565b601581526000602082017410dbdb9d1c9858dd1cc818d85b9b9bdd081b5a5b9d605a1b81529150614a9c565b602080825281016108d481615018565b601581526000602082017429bab838363c903634b6b4ba103932b0b1b432b21760591b81529150614a9c565b602080825281016108d481615054565b60128152600060208201714d696e74206973206e6f742061637469766560701b81529150614a9c565b602080825281016108d481615090565b60118152600060208201704d696e74206174206c65617374206f6e6560781b81529150614a9c565b602080825281016108d4816150c9565b6080810161510f8287613f5a565b61511c6020830186613f5a565b6151296040830185613e3c565b818103606083015261513b8184613f06565b9695505050505050565b80516108d481613e52565b60006020828403121561516557615165600080fd5b6000612e0e8484615145565b6b43796265725068756e6b202360a01b81526000614eb9565b600061519582615171565b915061213e82846147e6565b607b60f81b815260006147df565b60006151ba826151a1565b67113730b6b2911d1160c11b815260080191506151d782886147e6565b701116113232b9b1b934b83a34b7b7111d1160791b815260110191506151fd82876147e6565b7f222c22696d6167655f64617461223a22646174613a696d6167652f7376672b788152691b5b0ed8985cd94d8d0b60b21b6020820152602a01915061524282866147e6565b7111161132bc3a32b93730b62fbab936111d1160711b8152601201915061526982856147e6565b6f011161130ba3a3934b13aba32b9911d160851b8152601001915061528e82846147e6565b915061529982614980565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c00000081526000601d8201615195565b60008082526147df565b6000615195826152d2565b6000816001600160ff1b03038313600083121516156153085761530861476b565b81600160ff1b038312600083121615614bb557614bb561476b565b634e487b7160e01b600052600160045260246000fd5b606081016153478286613e3c565b6153546020830185613e3c565b612e0e6040830184613e3c565b606360f81b815260006147df565b60006108d48260e01b90565b613e3e63ffffffff821661536f565b6880600e6000396000f360b81b81526000614c94565b60006153ab82615361565b91506153b7828561537b565b6004820191506153c68261538a565b9150612e0e82846147e656fe68747470733a2f2f63617073756c6532312e636f6d2f636f6c6c656374696f6e732f63796265727068756e6b734142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f4f6e65206f662031302c30303020746f6b656e7320696e207468652043594245525048554e4b20636f6c6c656374696f6e2c20616e206f6e2d636861696e207472616e73666f726d6174696f6e206f6620746865206f726967696e616c2043727970746f50756e6b732e3c7376672077696474683d223132303022206865696768743d2231323030222073686170652d72656e646572696e673d22637269737045646765732220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323030302f737667222076657273696f6e3d22312e32222076696577426f783d22302030203234203234223e3c7374796c653e726563747b77696474683a3170783b6865696768743a3170787d3c2f7374796c653e3c7265637420783d22302220793d223022207374796c653d2277696474683a313030253b6865696768743a31303025222066696c6c3d222333633261336322202f3ea264697066735822122090a483a22eea85316b36368a67a40390b32b71e21702bbac5d925ac554bf7d7064736f6c634300080d0033

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

00000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b2000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a

-----Decoded View---------------
Arg [0] : punkDataContractAddress (address): 0x16F5A35647D6F03D5D3da7b35409D65ba03aF3B2
Arg [1] : extendedPunkDataContractAddress (address): 0xf03e345bB89Dc9cFaf8Fda381a9E4417BFB46e7A

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000016f5a35647d6f03d5d3da7b35409d65ba03af3b2
Arg [1] : 000000000000000000000000f03e345bb89dc9cfaf8fda381a9e4417bfb46e7a


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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