Contract Address Details

0x81a62e5f26Edb1dc5371eD573504D0fB3aae9cAd

Token
mtvScout OnChain V1 (SCOUT)
Creator
0x38398c–4bad37 at 0x12a226–db25b9
Balance
0 MTV ( )
Tokens
Fetching tokens...
Transactions
649 Transactions
Transfers
0 Transfers
Gas Used
2,061,247,520
Last Balance Update
28440246
This contract has been verified via Sourcify. View contract in Sourcify repository
Contract name:
mtvScout_OCV1




Optimization enabled
false
Compiler version
v0.8.12+commit.f00d7308




EVM Version
london




Verified at
2022-08-19T01:41:41.462742Z

mtvScout_OCV1.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/Base64.sol";
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.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";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";
import "github.com/bokkypoobah/BokkyPooBahsDateTimeLibrary/blob/master/contracts/BokkyPooBahsDateTimeLibrary.sol";

contract mtvScout_OCV1 is
    ERC721,
    ERC721Enumerable,
    ERC721URIStorage,
    IERC2981,
    Ownable
{
    using Counters for Counters.Counter;
    using BokkyPooBahsDateTimeLibrary for uint;

    uint public nextYear;

    Counters.Counter private _tokenIdCounter;

	string private _name = "mtvScout OnChain V1";
    string private _symbol = "SCOUT";

    uint256 public constant maxSupply = 100000;
    uint256 public minPrice = 0 ether;

    string public baseURI;
    address private royaltyAddress=0x38398c9b16cb11385C2b09789206F954804baD37;

    string private svgP1 = '<svg width="120mm" height="120mm" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg">';

    string private rectBaseP1 = '<rect id="r2" fill="';
    string private rectBaseFill='#aaa';
    string private rectBaseP2 = '" stroke-width="0.26" width="120" height="120" x="0" y="0"/>';
    string private rectP1 = '<rect id="r1" fill="';
    string private rectFill = 'none';
    string private rectP2 = '" stroke-width="0.26" width="120" height="120" x="0" y="0"/>';

    string private circleP1 = '<circle cx="60" cy="60" r="50" fill="';
    string private circleP2 = '"/><circle cx="60" cy="60" r="48"/>';
    
    string private svgP2 = '<path d="M93.74 68.97v12.09h-3.55V68.97h-1.51v-3.32h1.51V60h3.55v5.65H96.5v3.32zm-17.72-3.32v8.85q0 3.83 3.01 3.83 3.01 0 3.01-3.83v-8.84h3.55v8.92q0 1.85-.46 3.2-.44 1.20-1.53 2.17-1.8 1.57-4.57 1.57-2.76 0-4.56-1.57-1.10-.96-1.56-2.17-.44-1.08-.44-3.2v-8.92zm-23.7 7.6q0-3.34 2.38-5.68 2.38-2.34 5.81-2.34 3.44 0 5.84 2.36 2.37 2.36 2.37 5.79 0 3.47-2.38 5.81-2.4 2.33-5.89 2.33-3.45 0-5.79-2.37-2.33-2.34-2.33-5.89zm3.63.06q0 2.31 1.23 3.66 1.26 1.36 3.33 1.36 2.08 0 3.33-1.35 1.25-1.35 1.25-3.59 0-2.25-1.25-3.59-1.26-1.36-3.33-1.36-2.04 0-3.3 1.36-1.26 1.36-1.26 3.51zm-6.34-6.99v4.73q-1.22-1.49-2.18-2.04-.95-.57-2.22-.57-2.00 0-3.33 1.41-1.33 1.41-1.33 3.53 0 2.17 1.28 3.56 1.29 1.39 3.3 1.39 1.28 0 2.26-.55.95-.54 2.22-2.09v4.7Q47.45 81.5 45.29 81.5q-3.56 0-5.96-2.31-2.4-2.34-2.4-5.77 0-3.5 2.43-5.82 2.43-2.37 5.96-2.37 2.27 0 4.29 1.09zM33.47 68.27l-2.94 1.57q-.69-1.42-1.72-1.42-.49 0-.84.33-.35.32-.35.82 0 .89 2.05 1.76 2.83 1.22 3.80 2.25.98 1.03.98 2.77 0 2.23-1.64 3.73-1.59 1.42-3.85 1.42-3.86 0-5.47-3.78l3.03-1.41q.63 1.11.96 1.41.65.60 1.55.60 1.8 0 1.8-1.65 0-.95-1.39-1.77-.54-.23-1.07-.52-.54-.25-1.09-.52-1.55-.76-2.18-1.52-.81-.96-.81-2.48 0-2.01 1.38-3.32 1.40-1.32 3.41-1.32 2.95 0 4.39 3.05z" fill="#fff"/><path d="M36.48 38.51v3.41l10.8 6.62 10.89-6.62v-3.41L47.28 45.13z" fill="#234ef2"/><path d="m36.38 44.38 2.91 1.75v13.87h-2.91zm10.85 6.3v3.29l8.14-4.75v10.79h2.81l-.01-15.62z" fill="#23d8cf"/><path d="m72.31 43.99 3.77 8.41 3.75-8.41h3.79L76.05 60l-7.51-16.01zm-6.72 3.23v11.75H62.23V47.22h-1.44v-3.23h1.44V38.5h3.36v5.49h2.62v3.23z" fill="#fff" stroke-width=".26"/></svg>';
  
    string private jsonP1 = '{"name": "MTVScout Award","description": "A completely on-chain thank you to the supporters of MTVScout/MultiVacuums","image":"data:image/svg+xml;base64,';
    string private jsonP2 = '","attributes": [ { "trait_type": "Donation","value":"';
    string private jsonP3 = ' MTV" }, { "trait_type": "Year","value":"';
    string private jsonP4 = '" }, { "trait_type": "Month","value":"';
    string private jsonP5 = '" } ] }';

    uint256 public royalty = 0;
    uint randNonce = 0;

    constructor() ERC721(_name, _symbol) {
    }

    function toByte(uint8 _uint8) internal pure returns (bytes1) {
        if(_uint8 < 10) {
            return bytes1(_uint8 + 48);
        } else {
            return bytes1(_uint8 + 87);
        }
    }

    function bytes32ToString(bytes32 _bytes32) internal pure returns (string memory) {
        uint8 i = 0;
        bytes memory bytesArray = new bytes(64);
        for (i = 0; i < bytesArray.length; i++) {

            uint8 _f = uint8(_bytes32[i/2] & 0x0f);
            uint8 _l = uint8(_bytes32[i/2] >> 4);

            bytesArray[i] = toByte(_f);
            i = i + 1;
            bytesArray[i] = toByte(_l);
        }

        return string(bytesArray);
    }

    function random(uint _modulus) internal returns(uint) {
        randNonce++; 

        return uint(keccak256(abi.encodePacked(block.timestamp, msg.sender, randNonce))) % _modulus;
    }

    function substring(string memory str) internal pure returns (string memory ) {
        bytes memory strBytes = bytes(str);
        bytes memory result = new bytes(6);
        for(uint i = 2; i < 8; i++) {
            result[i-2] = strBytes[i];
        }
        return string(result);
    }

    function genColor(uint blocksOffset) internal view returns (string memory) {
        bytes32 bhash = blockhash(block.number - blocksOffset);
        string memory hash = bytes32ToString(bhash);
        string memory color = substring(hash);
        return string.concat("#",color);
    }

    function genGradPattern(string memory color1, string memory color2) internal pure returns (string memory) {
      string memory pat1 = '<defs><linearGradient id="a" x1="0%" y1="0%" x2="100%" y2="80%"><stop offset="0%" style="stop-color:';
      string memory pat2 = ';stop-opacity:0.8"/><stop offset="100%" style="stop-color:';
      string memory pat3 = ';stop-opacity:0.9"/></linearGradient></defs>';
      return string(abi.encodePacked(pat1,color1,pat2,color2,pat3));
    }

    function genCubePattern(string memory color1, string memory color2,bool addT) internal returns (string memory) {

        string memory transform;

        if ( addT )
        {
            uint rotate = random(45);
            uint skewX = random(40);
            uint skewY = random(50);
            uint scaleX = random(98) + 1;
            uint scaleY = random(97) + 2;
            uint scaleX1 = random(25)+1;
            uint scaleY1 = random(40)+1;

            transform = string(abi.encodePacked(" patternTransform=\"rotate(",Strings.toString(rotate),") skewX(",Strings.toString(skewX),") skewY(",Strings.toString(skewY),") scale(",Strings.toString(scaleX1),".",Strings.toString(scaleX),
            ",",Strings.toString(scaleY1),".",Strings.toString(scaleY),")\""));
        }

        string memory pat1 = '<defs><pattern';
        string memory pat2 = ' id="a" x="0" y="10" patternUnits="userSpaceOnUse" width="10" height="16"><g id="x"><path fill="';
        string memory pat3 = '" d="m0 0 5 3v5L0 5z"/><path fill="';
        string memory pat4 = '" d="M10 0 5 3v5l5-3"/></g><use x="5" y="8" href="#x"/><use x="-5" y="8" href="#x"/></pattern></defs>';
        return string(abi.encodePacked(pat1,transform,pat2,color1,pat3,color2,pat4));
    }

    function genCheckPattern(string memory color1) internal pure returns (string memory) {
        string memory pat1 = '<defs><pattern id="a" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path class="checker" fill="';
        string memory pat2 = '" d="M0 0h10v10H0zM10 10h10v10H10z"/></pattern></defs>';
        return string(abi.encodePacked(pat1,color1,pat2));
    }

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

    function reserve(uint256 donation) public onlyOwner {
        internalMint(royaltyAddress, (donation * 1 ether));
    }

    function mint() public payable {
        require(msg.value >= minPrice, "!= $$");
        internalMint(msg.sender, msg.value);
    }

    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721, ERC721URIStorage)
        returns (string memory)
    {
        return super.tokenURI(tokenId);
    }

    function owned(address _owner)
        external
        view
        returns (uint256[] memory)
    {
        uint256 tokenCount = balanceOf(_owner);
        if (tokenCount == 0) {
            return new uint256[](0);
        } else {
            uint256[] memory result = new uint256[](tokenCount);
            uint256 index;
            for (index = 0; index < tokenCount; index++) {
                result[index] = tokenOfOwnerByIndex(_owner, index);
            }
            return result;
        }
    }

    function tokenExists(uint256 _id) external view returns (bool) {
        return (_exists(_id));
    }

    function royaltyInfo(uint256, uint256 _salePrice)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        return (royaltyAddress, (_salePrice * royalty) / 10000);
    }

    function setBaseURI(string memory newBaseURI) public onlyOwner {
        baseURI = newBaseURI;
    }

    function setMinPrice(uint256 newPrice) public onlyOwner {
        minPrice = newPrice;
    }
    
    function setURI(uint256 tokenId, string memory uri) external onlyOwner {
        _setTokenURI(tokenId, uri);
    }
    
    function setRoyalty(uint16 _royalty) external onlyOwner {
        require(_royalty >= 0, "! >=0");
        require(
            _royalty <= 750,
            "! <= 7.5"
        );

        royalty = _royalty;
    }
    
    function setRoyaltyAddress(address _royaltyAddress) external onlyOwner {
        royaltyAddress = _royaltyAddress;
    }

    function internalMint(address to, uint256 value) internal {
        require(totalSupply() < maxSupply, "! >max");

        uint256 ethValue = value / 1 ether;

        _safeMint(to, _tokenIdCounter.current());
        
        string memory color1 = genColor(6);
        string memory color2 = genColor(10);
        string memory pattern;
        string memory circleFill = '#CCC';
        rectBaseFill='#AAA';
        
        bool addT;
        rectFill = 'url(#a)';

        if (ethValue >= 7500 )
        {
            addT = true;
        }
        
        if ( ethValue >= 5000 )
        {
            pattern = genCubePattern(color1,color2,addT);
            circleFill=color2;
        }
        else if ( ethValue >= 1000 )
        {
            uint val = random(50);

            if ( val > 25 )
            {
                pattern = genGradPattern(color1,color2);
            }
            else
            {
                pattern = genCheckPattern(color1);
                rectBaseFill=color2;
            }
            circleFill=color1;
        }
        else if  ( ethValue >= 500)
        {
            pattern = genGradPattern(color1,color2);
            circleFill = 'url(#a)';
            rectFill=color1;
        }
        else
        {
            rectFill=color1;
        }

        if ( ethValue >= 100000 )
        {
            circleFill = '#FFD700';
        }

        if ( ethValue >= 10000 )
        {
            rectBaseFill=genColor(20);
        }

        uint today = block.timestamp;
        uint currentYear = today.getYear();
        uint currentMonth = today.getMonth();
        
        string memory svgFinalDecoded = string(abi.encodePacked(svgP1,pattern,rectBaseP1,rectBaseFill,rectBaseP2,rectP1,rectFill,rectP2,circleP1,circleFill,circleP2,svgP2));
        string memory svgBase64Encoded = Base64.encode(bytes(svgFinalDecoded));
        string memory jsonFinalDecoded = string(abi.encodePacked(jsonP1,svgBase64Encoded,jsonP2,Strings.toString(ethValue),jsonP3,Strings.toString(currentYear),jsonP4,Strings.toString(currentMonth),jsonP5));
        string memory jsonBase64Encoded = Base64.encode(bytes(jsonFinalDecoded));

        string memory finalTokenURI = string.concat("data:application/json;base64,",jsonBase64Encoded);
    
        _setTokenURI(_tokenIdCounter.current(), finalTokenURI);
        _tokenIdCounter.increment();
    }

    function gift(address to, uint256 value) public onlyOwner {
        internalMint(to, (value * 1 ether));
    }
    
    function supportsInterface(bytes4 interfaceId)
        public
        view
        override(ERC721, ERC721Enumerable, IERC165)
        returns (bool)
    {
        return
            interfaceId == type(IERC2981).interfaceId ||
            super.supportsInterface(interfaceId);
    }
    
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function _burn(uint256 tokenId)
        internal
        override(ERC721, ERC721URIStorage)
    {
        super._burn(tokenId);
    }

    function withdraw(uint256 amount) onlyOwner public {
    	payable(owner()).transfer(amount);
    	amount = 0;
  	}
    
    receive() external payable {
    }
}
        

/github.com/bokkypoobah/BokkyPooBahsDateTimeLibrary/blob/master/contracts/BokkyPooBahsDateTimeLibrary.sol

// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.9.0;

// ----------------------------------------------------------------------------
// BokkyPooBah's DateTime Library v1.01
//
// A gas-efficient Solidity date and time library
//
// https://github.com/bokkypoobah/BokkyPooBahsDateTimeLibrary
//
// Tested date range 1970/01/01 to 2345/12/31
//
// Conventions:
// Unit      | Range         | Notes
// :-------- |:-------------:|:-----
// timestamp | >= 0          | Unix timestamp, number of seconds since 1970/01/01 00:00:00 UTC
// year      | 1970 ... 2345 |
// month     | 1 ... 12      |
// day       | 1 ... 31      |
// hour      | 0 ... 23      |
// minute    | 0 ... 59      |
// second    | 0 ... 59      |
// dayOfWeek | 1 ... 7       | 1 = Monday, ..., 7 = Sunday
//
//
// Enjoy. (c) BokkyPooBah / Bok Consulting Pty Ltd 2018-2019. The MIT Licence.
// ----------------------------------------------------------------------------

library BokkyPooBahsDateTimeLibrary {

    uint constant SECONDS_PER_DAY = 24 * 60 * 60;
    uint constant SECONDS_PER_HOUR = 60 * 60;
    uint constant SECONDS_PER_MINUTE = 60;
    int constant OFFSET19700101 = 2440588;

    uint constant DOW_MON = 1;
    uint constant DOW_TUE = 2;
    uint constant DOW_WED = 3;
    uint constant DOW_THU = 4;
    uint constant DOW_FRI = 5;
    uint constant DOW_SAT = 6;
    uint constant DOW_SUN = 7;

    // ------------------------------------------------------------------------
    // Calculate the number of days from 1970/01/01 to year/month/day using
    // the date conversion algorithm from
    //   https://aa.usno.navy.mil/faq/JD_formula.html
    // and subtracting the offset 2440588 so that 1970/01/01 is day 0
    //
    // days = day
    //      - 32075
    //      + 1461 * (year + 4800 + (month - 14) / 12) / 4
    //      + 367 * (month - 2 - (month - 14) / 12 * 12) / 12
    //      - 3 * ((year + 4900 + (month - 14) / 12) / 100) / 4
    //      - offset
    // ------------------------------------------------------------------------
    function _daysFromDate(uint year, uint month, uint day) internal pure returns (uint _days) {
        require(year >= 1970);
        int _year = int(year);
        int _month = int(month);
        int _day = int(day);

        int __days = _day
          - 32075
          + 1461 * (_year + 4800 + (_month - 14) / 12) / 4
          + 367 * (_month - 2 - (_month - 14) / 12 * 12) / 12
          - 3 * ((_year + 4900 + (_month - 14) / 12) / 100) / 4
          - OFFSET19700101;

        _days = uint(__days);
    }

    // ------------------------------------------------------------------------
    // Calculate year/month/day from the number of days since 1970/01/01 using
    // the date conversion algorithm from
    //   http://aa.usno.navy.mil/faq/docs/JD_Formula.php
    // and adding the offset 2440588 so that 1970/01/01 is day 0
    //
    // int L = days + 68569 + offset
    // int N = 4 * L / 146097
    // L = L - (146097 * N + 3) / 4
    // year = 4000 * (L + 1) / 1461001
    // L = L - 1461 * year / 4 + 31
    // month = 80 * L / 2447
    // dd = L - 2447 * month / 80
    // L = month / 11
    // month = month + 2 - 12 * L
    // year = 100 * (N - 49) + year + L
    // ------------------------------------------------------------------------
    function _daysToDate(uint _days) internal pure returns (uint year, uint month, uint day) {
        int __days = int(_days);

        int L = __days + 68569 + OFFSET19700101;
        int N = 4 * L / 146097;
        L = L - (146097 * N + 3) / 4;
        int _year = 4000 * (L + 1) / 1461001;
        L = L - 1461 * _year / 4 + 31;
        int _month = 80 * L / 2447;
        int _day = L - 2447 * _month / 80;
        L = _month / 11;
        _month = _month + 2 - 12 * L;
        _year = 100 * (N - 49) + _year + L;

        year = uint(_year);
        month = uint(_month);
        day = uint(_day);
    }

    function timestampFromDate(uint year, uint month, uint day) internal pure returns (uint timestamp) {
        timestamp = _daysFromDate(year, month, day) * SECONDS_PER_DAY;
    }
    function timestampFromDateTime(uint year, uint month, uint day, uint hour, uint minute, uint second) internal pure returns (uint timestamp) {
        timestamp = _daysFromDate(year, month, day) * SECONDS_PER_DAY + hour * SECONDS_PER_HOUR + minute * SECONDS_PER_MINUTE + second;
    }
    function timestampToDate(uint timestamp) internal pure returns (uint year, uint month, uint day) {
        (year, month, day) = _daysToDate(timestamp / SECONDS_PER_DAY);
    }
    function timestampToDateTime(uint timestamp) internal pure returns (uint year, uint month, uint day, uint hour, uint minute, uint second) {
        (year, month, day) = _daysToDate(timestamp / SECONDS_PER_DAY);
        uint secs = timestamp % SECONDS_PER_DAY;
        hour = secs / SECONDS_PER_HOUR;
        secs = secs % SECONDS_PER_HOUR;
        minute = secs / SECONDS_PER_MINUTE;
        second = secs % SECONDS_PER_MINUTE;
    }

    function isValidDate(uint year, uint month, uint day) internal pure returns (bool valid) {
        if (year >= 1970 && month > 0 && month <= 12) {
            uint daysInMonth = _getDaysInMonth(year, month);
            if (day > 0 && day <= daysInMonth) {
                valid = true;
            }
        }
    }
    function isValidDateTime(uint year, uint month, uint day, uint hour, uint minute, uint second) internal pure returns (bool valid) {
        if (isValidDate(year, month, day)) {
            if (hour < 24 && minute < 60 && second < 60) {
                valid = true;
            }
        }
    }
    function isLeapYear(uint timestamp) internal pure returns (bool leapYear) {
        (uint year,,) = _daysToDate(timestamp / SECONDS_PER_DAY);
        leapYear = _isLeapYear(year);
    }
    function _isLeapYear(uint year) internal pure returns (bool leapYear) {
        leapYear = ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0);
    }
    function isWeekDay(uint timestamp) internal pure returns (bool weekDay) {
        weekDay = getDayOfWeek(timestamp) <= DOW_FRI;
    }
    function isWeekEnd(uint timestamp) internal pure returns (bool weekEnd) {
        weekEnd = getDayOfWeek(timestamp) >= DOW_SAT;
    }
    function getDaysInMonth(uint timestamp) internal pure returns (uint daysInMonth) {
        (uint year, uint month,) = _daysToDate(timestamp / SECONDS_PER_DAY);
        daysInMonth = _getDaysInMonth(year, month);
    }
    function _getDaysInMonth(uint year, uint month) internal pure returns (uint daysInMonth) {
        if (month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12) {
            daysInMonth = 31;
        } else if (month != 2) {
            daysInMonth = 30;
        } else {
            daysInMonth = _isLeapYear(year) ? 29 : 28;
        }
    }
    // 1 = Monday, 7 = Sunday
    function getDayOfWeek(uint timestamp) internal pure returns (uint dayOfWeek) {
        uint _days = timestamp / SECONDS_PER_DAY;
        dayOfWeek = (_days + 3) % 7 + 1;
    }

    function getYear(uint timestamp) internal pure returns (uint year) {
        (year,,) = _daysToDate(timestamp / SECONDS_PER_DAY);
    }
    function getMonth(uint timestamp) internal pure returns (uint month) {
        (,month,) = _daysToDate(timestamp / SECONDS_PER_DAY);
    }
    function getDay(uint timestamp) internal pure returns (uint day) {
        (,,day) = _daysToDate(timestamp / SECONDS_PER_DAY);
    }
    function getHour(uint timestamp) internal pure returns (uint hour) {
        uint secs = timestamp % SECONDS_PER_DAY;
        hour = secs / SECONDS_PER_HOUR;
    }
    function getMinute(uint timestamp) internal pure returns (uint minute) {
        uint secs = timestamp % SECONDS_PER_HOUR;
        minute = secs / SECONDS_PER_MINUTE;
    }
    function getSecond(uint timestamp) internal pure returns (uint second) {
        second = timestamp % SECONDS_PER_MINUTE;
    }

    function addYears(uint timestamp, uint _years) internal pure returns (uint newTimestamp) {
        (uint year, uint month, uint day) = _daysToDate(timestamp / SECONDS_PER_DAY);
        year += _years;
        uint daysInMonth = _getDaysInMonth(year, month);
        if (day > daysInMonth) {
            day = daysInMonth;
        }
        newTimestamp = _daysFromDate(year, month, day) * SECONDS_PER_DAY + timestamp % SECONDS_PER_DAY;
        require(newTimestamp >= timestamp);
    }
    function addMonths(uint timestamp, uint _months) internal pure returns (uint newTimestamp) {
        (uint year, uint month, uint day) = _daysToDate(timestamp / SECONDS_PER_DAY);
        month += _months;
        year += (month - 1) / 12;
        month = (month - 1) % 12 + 1;
        uint daysInMonth = _getDaysInMonth(year, month);
        if (day > daysInMonth) {
            day = daysInMonth;
        }
        newTimestamp = _daysFromDate(year, month, day) * SECONDS_PER_DAY + timestamp % SECONDS_PER_DAY;
        require(newTimestamp >= timestamp);
    }
    function addDays(uint timestamp, uint _days) internal pure returns (uint newTimestamp) {
        newTimestamp = timestamp + _days * SECONDS_PER_DAY;
        require(newTimestamp >= timestamp);
    }
    function addHours(uint timestamp, uint _hours) internal pure returns (uint newTimestamp) {
        newTimestamp = timestamp + _hours * SECONDS_PER_HOUR;
        require(newTimestamp >= timestamp);
    }
    function addMinutes(uint timestamp, uint _minutes) internal pure returns (uint newTimestamp) {
        newTimestamp = timestamp + _minutes * SECONDS_PER_MINUTE;
        require(newTimestamp >= timestamp);
    }
    function addSeconds(uint timestamp, uint _seconds) internal pure returns (uint newTimestamp) {
        newTimestamp = timestamp + _seconds;
        require(newTimestamp >= timestamp);
    }

    function subYears(uint timestamp, uint _years) internal pure returns (uint newTimestamp) {
        (uint year, uint month, uint day) = _daysToDate(timestamp / SECONDS_PER_DAY);
        year -= _years;
        uint daysInMonth = _getDaysInMonth(year, month);
        if (day > daysInMonth) {
            day = daysInMonth;
        }
        newTimestamp = _daysFromDate(year, month, day) * SECONDS_PER_DAY + timestamp % SECONDS_PER_DAY;
        require(newTimestamp <= timestamp);
    }
    function subMonths(uint timestamp, uint _months) internal pure returns (uint newTimestamp) {
        (uint year, uint month, uint day) = _daysToDate(timestamp / SECONDS_PER_DAY);
        uint yearMonth = year * 12 + (month - 1) - _months;
        year = yearMonth / 12;
        month = yearMonth % 12 + 1;
        uint daysInMonth = _getDaysInMonth(year, month);
        if (day > daysInMonth) {
            day = daysInMonth;
        }
        newTimestamp = _daysFromDate(year, month, day) * SECONDS_PER_DAY + timestamp % SECONDS_PER_DAY;
        require(newTimestamp <= timestamp);
    }
    function subDays(uint timestamp, uint _days) internal pure returns (uint newTimestamp) {
        newTimestamp = timestamp - _days * SECONDS_PER_DAY;
        require(newTimestamp <= timestamp);
    }
    function subHours(uint timestamp, uint _hours) internal pure returns (uint newTimestamp) {
        newTimestamp = timestamp - _hours * SECONDS_PER_HOUR;
        require(newTimestamp <= timestamp);
    }
    function subMinutes(uint timestamp, uint _minutes) internal pure returns (uint newTimestamp) {
        newTimestamp = timestamp - _minutes * SECONDS_PER_MINUTE;
        require(newTimestamp <= timestamp);
    }
    function subSeconds(uint timestamp, uint _seconds) internal pure returns (uint newTimestamp) {
        newTimestamp = timestamp - _seconds;
        require(newTimestamp <= timestamp);
    }

    function diffYears(uint fromTimestamp, uint toTimestamp) internal pure returns (uint _years) {
        require(fromTimestamp <= toTimestamp);
        (uint fromYear,,) = _daysToDate(fromTimestamp / SECONDS_PER_DAY);
        (uint toYear,,) = _daysToDate(toTimestamp / SECONDS_PER_DAY);
        _years = toYear - fromYear;
    }
    function diffMonths(uint fromTimestamp, uint toTimestamp) internal pure returns (uint _months) {
        require(fromTimestamp <= toTimestamp);
        (uint fromYear, uint fromMonth,) = _daysToDate(fromTimestamp / SECONDS_PER_DAY);
        (uint toYear, uint toMonth,) = _daysToDate(toTimestamp / SECONDS_PER_DAY);
        _months = toYear * 12 + toMonth - fromYear * 12 - fromMonth;
    }
    function diffDays(uint fromTimestamp, uint toTimestamp) internal pure returns (uint _days) {
        require(fromTimestamp <= toTimestamp);
        _days = (toTimestamp - fromTimestamp) / SECONDS_PER_DAY;
    }
    function diffHours(uint fromTimestamp, uint toTimestamp) internal pure returns (uint _hours) {
        require(fromTimestamp <= toTimestamp);
        _hours = (toTimestamp - fromTimestamp) / SECONDS_PER_HOUR;
    }
    function diffMinutes(uint fromTimestamp, uint toTimestamp) internal pure returns (uint _minutes) {
        require(fromTimestamp <= toTimestamp);
        _minutes = (toTimestamp - fromTimestamp) / SECONDS_PER_MINUTE;
    }
    function diffSeconds(uint fromTimestamp, uint toTimestamp) internal pure returns (uint _seconds) {
        require(fromTimestamp <= toTimestamp);
        _seconds = toTimestamp - fromTimestamp;
    }
}
          

/_openzeppelin/contracts/utils/introspection/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);
}
          

/_openzeppelin/contracts/utils/introspection/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;
    }
}
          

/_openzeppelin/contracts/utils/Strings.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // 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);
    }

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

/_openzeppelin/contracts/utils/Counters.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}
          

/_openzeppelin/contracts/utils/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;
    }
}
          

/_openzeppelin/contracts/utils/Base64.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

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

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

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}
          

/_openzeppelin/contracts/utils/Address.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}
          

/_openzeppelin/contracts/token/common/ERC2981.sol

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

/_openzeppelin/contracts/token/ERC721/extensions/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);
}
          

/_openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}
          

/_openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

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

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally checks to see if a
     * token-specific URI was set for the token, and if so, it deletes the token URI from
     * the storage mapping.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}
          

/_openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}
          

/_openzeppelin/contracts/token/ERC721/IERC721Receiver.sol

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

pragma solidity ^0.8.0;

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

/_openzeppelin/contracts/token/ERC721/IERC721.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: 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 Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

/_openzeppelin/contracts/token/ERC721/ERC721.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

        _balances[to] += 1;
        _owners[tokenId] = to;

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

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

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

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

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

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

/_openzeppelin/contracts/interfaces/IERC2981.sol

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

pragma solidity ^0.8.0;

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

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

/_openzeppelin/contracts/access/Ownable.sol

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"approved","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"event","name":"ApprovalForAll","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"operator","internalType":"address","indexed":true},{"type":"bool","name":"approved","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"tokenId","internalType":"uint256","indexed":true}],"anonymous":false},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"approve","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"baseURI","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"getApproved","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"gift","inputs":[{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isApprovedForAll","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"operator","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxSupply","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"minPrice","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[],"name":"mint","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"nextYear","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"","internalType":"uint256[]"}],"name":"owned","inputs":[{"type":"address","name":"_owner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"ownerOf","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"reserve","inputs":[{"type":"uint256","name":"donation","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"royalty","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"receiver","internalType":"address"},{"type":"uint256","name":"royaltyAmount","internalType":"uint256"}],"name":"royaltyInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"_salePrice","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"safeTransferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"bytes","name":"data","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setApprovalForAll","inputs":[{"type":"address","name":"operator","internalType":"address"},{"type":"bool","name":"approved","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBaseURI","inputs":[{"type":"string","name":"newBaseURI","internalType":"string"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMinPrice","inputs":[{"type":"uint256","name":"newPrice","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRoyalty","inputs":[{"type":"uint16","name":"_royalty","internalType":"uint16"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRoyaltyAddress","inputs":[{"type":"address","name":"_royaltyAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setURI","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"},{"type":"string","name":"uri","internalType":"string"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"supportsInterface","inputs":[{"type":"bytes4","name":"interfaceId","internalType":"bytes4"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenByIndex","inputs":[{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"tokenExists","inputs":[{"type":"uint256","name":"_id","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"tokenOfOwnerByIndex","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"uint256","name":"index","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"tokenURI","inputs":[{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferFrom","inputs":[{"type":"address","name":"from","internalType":"address"},{"type":"address","name":"to","internalType":"address"},{"type":"uint256","name":"tokenId","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdraw","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"receive","stateMutability":"payable"}]
            

Deployed ByteCode

0x6080604052600436106102125760003560e01c80635ea8cd1211610118578063a22cb465116100a0578063cbce4c971161006f578063cbce4c97146107bb578063d5abeb01146107e4578063e45be8eb1461080f578063e985e9c51461083a578063f2fde38b1461087757610219565b8063a22cb465146106ef578063b1ab931714610718578063b88d4fde14610755578063c87b56dd1461077e57610219565b8063715018a6116100e7578063715018a614610630578063819b25ba14610647578063862440e2146106705780638da5cb5b1461069957806395d89b41146106c457610219565b80635ea8cd12146105625780636352211e1461058b5780636c0360eb146105c857806370a08231146105f357610219565b806323b872dd1161019b5780632f745c591161016a5780632f745c591461046d57806336e79a5a146104aa57806342842e0e146104d35780634f6ccce7146104fc57806355f804b31461053957610219565b806323b872dd146103b257806329ee566c146103db5780632a55205a146104065780632e1a7d4d1461044457610219565b8063081812fc116101e2578063081812fc146102ec578063095ea7b3146103295780631249c58b14610352578063146bea7b1461035c57806318160ddd1461038757610219565b8062923f9e1461021e57806301ffc9a71461025b57806306d254da1461029857806306fdde03146102c157610219565b3661021957005b600080fd5b34801561022a57600080fd5b5061024560048036038101906102409190613915565b6108a0565b604051610252919061395d565b60405180910390f35b34801561026757600080fd5b50610282600480360381019061027d91906139d0565b6108b2565b60405161028f919061395d565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba9190613a5b565b61092c565b005b3480156102cd57600080fd5b506102d6610978565b6040516102e39190613b21565b60405180910390f35b3480156102f857600080fd5b50610313600480360381019061030e9190613915565b610a0a565b6040516103209190613b52565b60405180910390f35b34801561033557600080fd5b50610350600480360381019061034b9190613b6d565b610a50565b005b61035a610b68565b005b34801561036857600080fd5b50610371610bb9565b60405161037e9190613bbc565b60405180910390f35b34801561039357600080fd5b5061039c610bbf565b6040516103a99190613bbc565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d49190613bd7565b610bcc565b005b3480156103e757600080fd5b506103f0610c2c565b6040516103fd9190613bbc565b60405180910390f35b34801561041257600080fd5b5061042d60048036038101906104289190613c2a565b610c32565b60405161043b929190613c6a565b60405180910390f35b34801561045057600080fd5b5061046b60048036038101906104669190613915565b610c7e565b005b34801561047957600080fd5b50610494600480360381019061048f9190613b6d565b610cdb565b6040516104a19190613bbc565b60405180910390f35b3480156104b657600080fd5b506104d160048036038101906104cc9190613ccd565b610d80565b005b3480156104df57600080fd5b506104fa60048036038101906104f59190613bd7565b610e27565b005b34801561050857600080fd5b50610523600480360381019061051e9190613915565b610e47565b6040516105309190613bbc565b60405180910390f35b34801561054557600080fd5b50610560600480360381019061055b9190613e2f565b610eb8565b005b34801561056e57600080fd5b5061058960048036038101906105849190613915565b610eda565b005b34801561059757600080fd5b506105b260048036038101906105ad9190613915565b610eec565b6040516105bf9190613b52565b60405180910390f35b3480156105d457600080fd5b506105dd610f9e565b6040516105ea9190613b21565b60405180910390f35b3480156105ff57600080fd5b5061061a60048036038101906106159190613a5b565b61102c565b6040516106279190613bbc565b60405180910390f35b34801561063c57600080fd5b506106456110e4565b005b34801561065357600080fd5b5061066e60048036038101906106699190613915565b6110f8565b005b34801561067c57600080fd5b5061069760048036038101906106929190613e78565b611142565b005b3480156106a557600080fd5b506106ae611158565b6040516106bb9190613b52565b60405180910390f35b3480156106d057600080fd5b506106d9611182565b6040516106e69190613b21565b60405180910390f35b3480156106fb57600080fd5b5061071660048036038101906107119190613f00565b611214565b005b34801561072457600080fd5b5061073f600480360381019061073a9190613a5b565b61122a565b60405161074c9190613ffe565b60405180910390f35b34801561076157600080fd5b5061077c600480360381019061077791906140c1565b611334565b005b34801561078a57600080fd5b506107a560048036038101906107a09190613915565b611396565b6040516107b29190613b21565b60405180910390f35b3480156107c757600080fd5b506107e260048036038101906107dd9190613b6d565b6113a8565b005b3480156107f057600080fd5b506107f96113d1565b6040516108069190613bbc565b60405180910390f35b34801561081b57600080fd5b506108246113d8565b6040516108319190613bbc565b60405180910390f35b34801561084657600080fd5b50610861600480360381019061085c9190614144565b6113de565b60405161086e919061395d565b60405180910390f35b34801561088357600080fd5b5061089e60048036038101906108999190613a5b565b611472565b005b60006108ab826114f6565b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610925575061092482611562565b5b9050919050565b6109346115dc565b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060008054610987906141b3565b80601f01602080910402602001604051908101604052809291908181526020018280546109b3906141b3565b8015610a005780601f106109d557610100808354040283529160200191610a00565b820191906000526020600020905b8154815290600101906020018083116109e357829003601f168201915b5050505050905090565b6000610a158261165a565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a5b82610eec565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610acc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac390614257565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610aeb6116a5565b73ffffffffffffffffffffffffffffffffffffffff161480610b1a5750610b1981610b146116a5565b6113de565b5b610b59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b50906142e9565b60405180910390fd5b610b6383836116ad565b505050565b601054341015610bad576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ba490614355565b60405180910390fd5b610bb73334611766565b565b600c5481565b6000600880549050905090565b610bdd610bd76116a5565b82611b69565b610c1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c13906143e7565b60405180910390fd5b610c27838383611bfe565b505050565b60225481565b600080601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1661271060225485610c699190614436565b610c7391906144bf565b915091509250929050565b610c866115dc565b610c8e611158565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610cd3573d6000803e3d6000fd5b506000905050565b6000610ce68361102c565b8210610d27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1e90614562565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610d886115dc565b60008161ffff161015610dd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc7906145ce565b60405180910390fd5b6102ee8161ffff161115610e19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e109061463a565b60405180910390fd5b8061ffff1660228190555050565b610e4283838360405180602001604052806000815250611334565b505050565b6000610e51610bbf565b8210610e92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e89906146cc565b60405180910390fd5b60088281548110610ea657610ea56146ec565b5b90600052602060002001549050919050565b610ec06115dc565b8060119080519060200190610ed6929190613828565b5050565b610ee26115dc565b8060108190555050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8c90614767565b60405180910390fd5b80915050919050565b60118054610fab906141b3565b80601f0160208091040260200160405190810160405280929190818152602001828054610fd7906141b3565b80156110245780601f10610ff957610100808354040283529160200191611024565b820191906000526020600020905b81548152906001019060200180831161100757829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561109d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611094906147f9565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6110ec6115dc565b6110f66000611e65565b565b6111006115dc565b61113f601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16670de0b6b3a76400008361113a9190614436565b611766565b50565b61114a6115dc565b6111548282611f2b565b5050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054611191906141b3565b80601f01602080910402602001604051908101604052809291908181526020018280546111bd906141b3565b801561120a5780601f106111df5761010080835404028352916020019161120a565b820191906000526020600020905b8154815290600101906020018083116111ed57829003601f168201915b5050505050905090565b61122661121f6116a5565b8383611f9f565b5050565b606060006112378361102c565b9050600081141561129457600067ffffffffffffffff81111561125d5761125c613d04565b5b60405190808252806020026020018201604052801561128b5781602001602082028036833780820191505090505b5091505061132f565b60008167ffffffffffffffff8111156112b0576112af613d04565b5b6040519080825280602002602001820160405280156112de5781602001602082028036833780820191505090505b50905060005b82811015611328576112f68582610cdb565b828281518110611309576113086146ec565b5b602002602001018181525050808061132090614819565b9150506112e4565b8193505050505b919050565b61134561133f6116a5565b83611b69565b611384576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137b906143e7565b60405180910390fd5b6113908484848461210c565b50505050565b60606113a182612168565b9050919050565b6113b06115dc565b6113cd82670de0b6b3a7640000836113c89190614436565b611766565b5050565b620186a081565b60105481565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61147a6115dc565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e1906148d4565b60405180910390fd5b6114f381611e65565b50565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806115d557506115d48261227b565b5b9050919050565b6115e46116a5565b73ffffffffffffffffffffffffffffffffffffffff16611602611158565b73ffffffffffffffffffffffffffffffffffffffff1614611658576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164f90614940565b60405180910390fd5b565b611663816114f6565b6116a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169990614767565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661172083610eec565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b620186a0611772610bbf565b106117b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a9906149ac565b60405180910390fd5b6000670de0b6b3a7640000826117c891906144bf565b90506117dd836117d8600d61235d565b61236b565b60006117e96006612389565b905060006117f7600a612389565b9050606060006040518060400160405280600481526020017f234343430000000000000000000000000000000000000000000000000000000081525090506040518060400160405280600481526020017f234141410000000000000000000000000000000000000000000000000000000081525060159080519060200190611880929190613828565b5060006040518060400160405280600781526020017f75726c2823612900000000000000000000000000000000000000000000000000815250601890805190602001906118ce929190613828565b50611d4c86106118dd57600190505b61138886106118fb576118f18585836123e0565b92508391506119db565b6103e8861061195857600061191060326125b4565b9050601981111561192c576119258686612610565b935061194f565b6119358661269c565b9350846015908051906020019061194d929190613828565b505b859250506119da565b6101f486106119c15761196b8585612610565b92506040518060400160405280600781526020017f75726c2823612900000000000000000000000000000000000000000000000000815250915084601890805190602001906119bb929190613828565b506119d9565b84601890805190602001906119d7929190613828565b505b5b5b620186a08610611a1e576040518060400160405280600781526020017f234646443730300000000000000000000000000000000000000000000000000081525091505b6127108610611a4857611a316014612389565b60159080519060200190611a46929190613828565b505b60004290506000611a5882612705565b90506000611a658361272a565b90506000601387601460156016601760186019601a8e601b601c604051602001611a9a9c9b9a99989796959493929190614a9c565b60405160208183030381529060405290506000611ab682612750565b90506000601d82601e611ac88f6128b4565b601f611ad38a6128b4565b6020611ade8b6128b4565b6021604051602001611af899989796959493929190614b42565b60405160208183030381529060405290506000611b1482612750565b9050600081604051602001611b299190614be7565b6040516020818303038152906040529050611b4d611b47600d61235d565b82611f2b565b611b57600d612a15565b50505050505050505050505050505050565b600080611b7583610eec565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611bb75750611bb681856113de565b5b80611bf557508373ffffffffffffffffffffffffffffffffffffffff16611bdd84610a0a565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611c1e82610eec565b73ffffffffffffffffffffffffffffffffffffffff1614611c74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6b90614c7f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ce4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cdb90614d11565b60405180910390fd5b611cef838383612a2b565b611cfa6000826116ad565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d4a9190614d31565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611da19190614d65565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611e60838383612a3b565b505050565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611f34826114f6565b611f73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6a90614e2d565b60405180910390fd5b80600a60008481526020019081526020016000209080519060200190611f9a929190613828565b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561200e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200590614e99565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120ff919061395d565b60405180910390a3505050565b612117848484611bfe565b61212384848484612a40565b612162576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215990614f2b565b60405180910390fd5b50505050565b60606121738261165a565b6000600a60008481526020019081526020016000208054612193906141b3565b80601f01602080910402602001604051908101604052809291908181526020018280546121bf906141b3565b801561220c5780601f106121e15761010080835404028352916020019161220c565b820191906000526020600020905b8154815290600101906020018083116121ef57829003601f168201915b50505050509050600061221d612bc8565b9050600081511415612233578192505050612276565b600082511115612268578082604051602001612250929190614f4b565b60405160208183030381529060405292505050612276565b61227184612c5a565b925050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061234657507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612356575061235582612cc2565b5b9050919050565b600081600001549050919050565b612385828260405180602001604052806000815250612d2c565b5050565b6060600082436123999190614d31565b40905060006123a782612d87565b905060006123b482612f3d565b9050806040516020016123c79190614f95565b6040516020818303038152906040529350505050919050565b60608082156124e95760006123f5602d6125b4565b9050600061240360286125b4565b9050600061241160326125b4565b90506000600161242160626125b4565b61242b9190614d65565b90506000600261243b60616125b4565b6124459190614d65565b90506000600161245560196125b4565b61245f9190614d65565b90506000600161246f60286125b4565b6124799190614d65565b9050612484876128b4565b61248d876128b4565b612496876128b4565b61249f856128b4565b6124a8886128b4565b6124b1866128b4565b6124ba896128b4565b6040516020016124d097969594939291906151cf565b6040516020818303038152906040529750505050505050505b60006040518060400160405280600e81526020017f3c646566733e3c7061747465726e00000000000000000000000000000000000081525090506000604051806080016040528060608152602001615b906060913990506000604051806060016040528060238152602001615b6d60239139905060006040518060a00160405280606581526020016159f16065913990508385848b858c86604051602001612597979695949392919061528c565b604051602081830303815290604052955050505050509392505050565b6000602360008154809291906125c990614819565b91905055508142336023546040516020016125e69392919061535a565b6040516020818303038152906040528051906020012060001c6126099190615397565b9050919050565b606060006040518060a0016040528060648152602001615a5660649139905060006040518060600160405280603a8152602001615981603a9139905060006040518060600160405280602c8152602001615bf0602c9139905082868387846040516020016126829594939291906153c8565b604051602081830303815290604052935050505092915050565b606060006040518060a0016040528060738152602001615aba60739139905060006040518060600160405280603681526020016159bb6036913990508184826040516020016126ed93929190615413565b60405160208183030381529060405292505050919050565b600061271e620151808361271991906144bf565b613030565b90505080915050919050565b6000612743620151808361273e91906144bf565b613030565b9091505080915050919050565b6060600082511415612773576040518060200160405280600081525090506128af565b6000604051806060016040528060408152602001615b2d60409139905060006003600285516127a29190614d65565b6127ac91906144bf565b60046127b89190614436565b67ffffffffffffffff8111156127d1576127d0613d04565b5b6040519080825280601f01601f1916602001820160405280156128035781602001600182028036833780820191505090505b509050600182016020820185865187015b8082101561286f576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845360018401935050612814565b505060038651066001811461288b576002811461289e576128a6565b603d6001830353603d60028303536128a6565b603d60018303535b50505080925050505b919050565b606060008214156128fc576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612a10565b600082905060005b6000821461292e57808061291790614819565b915050600a8261292791906144bf565b9150612904565b60008167ffffffffffffffff81111561294a57612949613d04565b5b6040519080825280601f01601f19166020018201604052801561297c5781602001600182028036833780820191505090505b5090505b60008514612a09576001826129959190614d31565b9150600a856129a49190615397565b60306129b09190614d65565b60f81b8183815181106129c6576129c56146ec565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612a0291906144bf565b9450612980565b8093505050505b919050565b6001816000016000828254019250508190555050565b612a368383836131cf565b505050565b505050565b6000612a618473ffffffffffffffffffffffffffffffffffffffff166132e3565b15612bbb578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612a8a6116a5565b8786866040518563ffffffff1660e01b8152600401612aac9493929190615499565b6020604051808303816000875af1925050508015612ae857506040513d601f19601f82011682018060405250810190612ae591906154fa565b60015b612b6b573d8060008114612b18576040519150601f19603f3d011682016040523d82523d6000602084013e612b1d565b606091505b50600081511415612b63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5a90614f2b565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612bc0565b600190505b949350505050565b606060118054612bd7906141b3565b80601f0160208091040260200160405190810160405280929190818152602001828054612c03906141b3565b8015612c505780601f10612c2557610100808354040283529160200191612c50565b820191906000526020600020905b815481529060010190602001808311612c3357829003601f168201915b5050505050905090565b6060612c658261165a565b6000612c6f612bc8565b90506000815111612c8f5760405180602001604052806000815250612cba565b80612c99846128b4565b604051602001612caa929190614f4b565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612d368383613306565b612d436000848484612a40565b612d82576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d7990614f2b565b60405180910390fd5b505050565b6060600080604067ffffffffffffffff811115612da757612da6613d04565b5b6040519080825280601f01601f191660200182016040528015612dd95781602001600182028036833780820191505090505b509050600091505b80518260ff161015612f33576000600f60f81b85600285612e029190615534565b60ff1660208110612e1657612e156146ec565b5b1a60f81b1660f81c90506000600486600286612e329190615534565b60ff1660208110612e4657612e456146ec565b5b1a60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c60f81c9050612e7c826134e0565b838560ff1681518110612e9257612e916146ec565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600184612ece9190615565565b9350612ed9816134e0565b838560ff1681518110612eef57612eee6146ec565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535050508180612f2b9061559c565b925050612de1565b8092505050919050565b606060008290506000600667ffffffffffffffff811115612f6157612f60613d04565b5b6040519080825280601f01601f191660200182016040528015612f935781602001600182028036833780820191505090505b5090506000600290505b600881101561302557828181518110612fb957612fb86146ec565b5b602001015160f81c60f81b82600283612fd29190614d31565b81518110612fe357612fe26146ec565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350808061301d90614819565b915050612f9d565b508092505050919050565b600080600080849050600062253d8c62010bd98361304e91906155d0565b61305891906155d0565b9050600062023ab182600461306d9190615664565b613077919061577b565b9050600460038262023ab161308c9190615664565b61309691906155d0565b6130a0919061577b565b826130ab91906157e5565b9150600062164b096001846130c091906155d0565b610fa06130cd9190615664565b6130d7919061577b565b9050601f6004826105b56130eb9190615664565b6130f5919061577b565b8461310091906157e5565b61310a91906155d0565b9250600061098f84605061311e9190615664565b613128919061577b565b9050600060508261098f61313c9190615664565b613146919061577b565b8561315191906157e5565b9050600b82613160919061577b565b945084600c61316f9190615664565b60028361317c91906155d0565b61318691906157e5565b9150848360318661319791906157e5565b60646131a39190615664565b6131ad91906155d0565b6131b791906155d0565b92508298508197508096505050505050509193909250565b6131da83838361351d565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561321d5761321881613522565b61325c565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461325b5761325a838261356b565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561329f5761329a816136d8565b6132de565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146132dd576132dc82826137a9565b5b5b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613376576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161336d906158c5565b60405180910390fd5b61337f816114f6565b156133bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133b690615931565b60405180910390fd5b6133cb60008383612a2b565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461341b9190614d65565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46134dc60008383612a3b565b5050565b6000600a8260ff161015613505576030826134fb9190615565565b60f81b9050613518565b6057826135129190615565565b60f81b90505b919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016135788461102c565b6135829190614d31565b9050600060076000848152602001908152602001600020549050818114613667576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506136ec9190614d31565b905060006009600084815260200190815260200160002054905060006008838154811061371c5761371b6146ec565b5b90600052602060002001549050806008838154811061373e5761373d6146ec565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061378d5761378c615951565b5b6001900381819060005260206000200160009055905550505050565b60006137b48361102c565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b828054613834906141b3565b90600052602060002090601f016020900481019282613856576000855561389d565b82601f1061386f57805160ff191683800117855561389d565b8280016001018555821561389d579182015b8281111561389c578251825591602001919060010190613881565b5b5090506138aa91906138ae565b5090565b5b808211156138c75760008160009055506001016138af565b5090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6138f2816138df565b81146138fd57600080fd5b50565b60008135905061390f816138e9565b92915050565b60006020828403121561392b5761392a6138d5565b5b600061393984828501613900565b91505092915050565b60008115159050919050565b61395781613942565b82525050565b6000602082019050613972600083018461394e565b92915050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6139ad81613978565b81146139b857600080fd5b50565b6000813590506139ca816139a4565b92915050565b6000602082840312156139e6576139e56138d5565b5b60006139f4848285016139bb565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613a28826139fd565b9050919050565b613a3881613a1d565b8114613a4357600080fd5b50565b600081359050613a5581613a2f565b92915050565b600060208284031215613a7157613a706138d5565b5b6000613a7f84828501613a46565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613ac2578082015181840152602081019050613aa7565b83811115613ad1576000848401525b50505050565b6000601f19601f8301169050919050565b6000613af382613a88565b613afd8185613a93565b9350613b0d818560208601613aa4565b613b1681613ad7565b840191505092915050565b60006020820190508181036000830152613b3b8184613ae8565b905092915050565b613b4c81613a1d565b82525050565b6000602082019050613b676000830184613b43565b92915050565b60008060408385031215613b8457613b836138d5565b5b6000613b9285828601613a46565b9250506020613ba385828601613900565b9150509250929050565b613bb6816138df565b82525050565b6000602082019050613bd16000830184613bad565b92915050565b600080600060608486031215613bf057613bef6138d5565b5b6000613bfe86828701613a46565b9350506020613c0f86828701613a46565b9250506040613c2086828701613900565b9150509250925092565b60008060408385031215613c4157613c406138d5565b5b6000613c4f85828601613900565b9250506020613c6085828601613900565b9150509250929050565b6000604082019050613c7f6000830185613b43565b613c8c6020830184613bad565b9392505050565b600061ffff82169050919050565b613caa81613c93565b8114613cb557600080fd5b50565b600081359050613cc781613ca1565b92915050565b600060208284031215613ce357613ce26138d5565b5b6000613cf184828501613cb8565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613d3c82613ad7565b810181811067ffffffffffffffff82111715613d5b57613d5a613d04565b5b80604052505050565b6000613d6e6138cb565b9050613d7a8282613d33565b919050565b600067ffffffffffffffff821115613d9a57613d99613d04565b5b613da382613ad7565b9050602081019050919050565b82818337600083830152505050565b6000613dd2613dcd84613d7f565b613d64565b905082815260208101848484011115613dee57613ded613cff565b5b613df9848285613db0565b509392505050565b600082601f830112613e1657613e15613cfa565b5b8135613e26848260208601613dbf565b91505092915050565b600060208284031215613e4557613e446138d5565b5b600082013567ffffffffffffffff811115613e6357613e626138da565b5b613e6f84828501613e01565b91505092915050565b60008060408385031215613e8f57613e8e6138d5565b5b6000613e9d85828601613900565b925050602083013567ffffffffffffffff811115613ebe57613ebd6138da565b5b613eca85828601613e01565b9150509250929050565b613edd81613942565b8114613ee857600080fd5b50565b600081359050613efa81613ed4565b92915050565b60008060408385031215613f1757613f166138d5565b5b6000613f2585828601613a46565b9250506020613f3685828601613eeb565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613f75816138df565b82525050565b6000613f878383613f6c565b60208301905092915050565b6000602082019050919050565b6000613fab82613f40565b613fb58185613f4b565b9350613fc083613f5c565b8060005b83811015613ff1578151613fd88882613f7b565b9750613fe383613f93565b925050600181019050613fc4565b5085935050505092915050565b600060208201905081810360008301526140188184613fa0565b905092915050565b600067ffffffffffffffff82111561403b5761403a613d04565b5b61404482613ad7565b9050602081019050919050565b600061406461405f84614020565b613d64565b9050828152602081018484840111156140805761407f613cff565b5b61408b848285613db0565b509392505050565b600082601f8301126140a8576140a7613cfa565b5b81356140b8848260208601614051565b91505092915050565b600080600080608085870312156140db576140da6138d5565b5b60006140e987828801613a46565b94505060206140fa87828801613a46565b935050604061410b87828801613900565b925050606085013567ffffffffffffffff81111561412c5761412b6138da565b5b61413887828801614093565b91505092959194509250565b6000806040838503121561415b5761415a6138d5565b5b600061416985828601613a46565b925050602061417a85828601613a46565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806141cb57607f821691505b602082108114156141df576141de614184565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614241602183613a93565b915061424c826141e5565b604082019050919050565b6000602082019050818103600083015261427081614234565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b60006142d3603e83613a93565b91506142de82614277565b604082019050919050565b60006020820190508181036000830152614302816142c6565b9050919050565b7f213d202424000000000000000000000000000000000000000000000000000000600082015250565b600061433f600583613a93565b915061434a82614309565b602082019050919050565b6000602082019050818103600083015261436e81614332565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b60006143d1602e83613a93565b91506143dc82614375565b604082019050919050565b60006020820190508181036000830152614400816143c4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614441826138df565b915061444c836138df565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561448557614484614407565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006144ca826138df565b91506144d5836138df565b9250826144e5576144e4614490565b5b828204905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b600061454c602b83613a93565b9150614557826144f0565b604082019050919050565b6000602082019050818103600083015261457b8161453f565b9050919050565b7f21203e3d30000000000000000000000000000000000000000000000000000000600082015250565b60006145b8600583613a93565b91506145c382614582565b602082019050919050565b600060208201905081810360008301526145e7816145ab565b9050919050565b7f21203c3d20372e35000000000000000000000000000000000000000000000000600082015250565b6000614624600883613a93565b915061462f826145ee565b602082019050919050565b6000602082019050818103600083015261465381614617565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b60006146b6602c83613a93565b91506146c18261465a565b604082019050919050565b600060208201905081810360008301526146e5816146a9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000614751601883613a93565b915061475c8261471b565b602082019050919050565b6000602082019050818103600083015261478081614744565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006147e3602983613a93565b91506147ee82614787565b604082019050919050565b60006020820190508181036000830152614812816147d6565b9050919050565b6000614824826138df565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561485757614856614407565b5b600182019050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006148be602683613a93565b91506148c982614862565b604082019050919050565b600060208201905081810360008301526148ed816148b1565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061492a602083613a93565b9150614935826148f4565b602082019050919050565b600060208201905081810360008301526149598161491d565b9050919050565b7f21203e6d61780000000000000000000000000000000000000000000000000000600082015250565b6000614996600683613a93565b91506149a182614960565b602082019050919050565b600060208201905081810360008301526149c581614989565b9050919050565b600081905092915050565b60008190508160005260206000209050919050565b600081546149f9816141b3565b614a0381866149cc565b94506001821660008114614a1e5760018114614a2f57614a62565b60ff19831686528186019350614a62565b614a38856149d7565b60005b83811015614a5a57815481890152600182019150602081019050614a3b565b838801955050505b50505092915050565b6000614a7682613a88565b614a8081856149cc565b9350614a90818560208601613aa4565b80840191505092915050565b6000614aa8828f6149ec565b9150614ab4828e614a6b565b9150614ac0828d6149ec565b9150614acc828c6149ec565b9150614ad8828b6149ec565b9150614ae4828a6149ec565b9150614af082896149ec565b9150614afc82886149ec565b9150614b0882876149ec565b9150614b148286614a6b565b9150614b2082856149ec565b9150614b2c82846149ec565b91508190509d9c50505050505050505050505050565b6000614b4e828c6149ec565b9150614b5a828b614a6b565b9150614b66828a6149ec565b9150614b728289614a6b565b9150614b7e82886149ec565b9150614b8a8287614a6b565b9150614b9682866149ec565b9150614ba28285614a6b565b9150614bae82846149ec565b91508190509a9950505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815250565b6000614bf282614bc1565b601d82019150614c028284614a6b565b915081905092915050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000614c69602583613a93565b9150614c7482614c0d565b604082019050919050565b60006020820190508181036000830152614c9881614c5c565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614cfb602483613a93565b9150614d0682614c9f565b604082019050919050565b60006020820190508181036000830152614d2a81614cee565b9050919050565b6000614d3c826138df565b9150614d47836138df565b925082821015614d5a57614d59614407565b5b828203905092915050565b6000614d70826138df565b9150614d7b836138df565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614db057614daf614407565b5b828201905092915050565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b6000614e17602e83613a93565b9150614e2282614dbb565b604082019050919050565b60006020820190508181036000830152614e4681614e0a565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614e83601983613a93565b9150614e8e82614e4d565b602082019050919050565b60006020820190508181036000830152614eb281614e76565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614f15603283613a93565b9150614f2082614eb9565b604082019050919050565b60006020820190508181036000830152614f4481614f08565b9050919050565b6000614f578285614a6b565b9150614f638284614a6b565b91508190509392505050565b7f2300000000000000000000000000000000000000000000000000000000000000815250565b6000614fa082614f6f565b600182019150614fb08284614a6b565b915081905092915050565b7f207061747465726e5472616e73666f726d3d22726f7461746528000000000000600082015250565b6000614ff1601a836149cc565b9150614ffc82614fbb565b601a82019050919050565b7f2920736b65775828000000000000000000000000000000000000000000000000600082015250565b600061503d6008836149cc565b915061504882615007565b600882019050919050565b7f2920736b65775928000000000000000000000000000000000000000000000000600082015250565b60006150896008836149cc565b915061509482615053565b600882019050919050565b7f29207363616c6528000000000000000000000000000000000000000000000000600082015250565b60006150d56008836149cc565b91506150e08261509f565b600882019050919050565b7f2e00000000000000000000000000000000000000000000000000000000000000600082015250565b60006151216001836149cc565b915061512c826150eb565b600182019050919050565b7f2c00000000000000000000000000000000000000000000000000000000000000600082015250565b600061516d6001836149cc565b915061517882615137565b600182019050919050565b7f2922000000000000000000000000000000000000000000000000000000000000600082015250565b60006151b96002836149cc565b91506151c482615183565b600282019050919050565b60006151da82614fe4565b91506151e6828a614a6b565b91506151f182615030565b91506151fd8289614a6b565b91506152088261507c565b91506152148288614a6b565b915061521f826150c8565b915061522b8287614a6b565b915061523682615114565b91506152428286614a6b565b915061524d82615160565b91506152598285614a6b565b915061526482615114565b91506152708284614a6b565b915061527b826151ac565b915081905098975050505050505050565b6000615298828a614a6b565b91506152a48289614a6b565b91506152b08288614a6b565b91506152bc8287614a6b565b91506152c88286614a6b565b91506152d48285614a6b565b91506152e08284614a6b565b915081905098975050505050505050565b6000819050919050565b61530c615307826138df565b6152f1565b82525050565b60008160601b9050919050565b600061532a82615312565b9050919050565b600061533c8261531f565b9050919050565b61535461534f82613a1d565b615331565b82525050565b600061536682866152fb565b6020820191506153768285615343565b60148201915061538682846152fb565b602082019150819050949350505050565b60006153a2826138df565b91506153ad836138df565b9250826153bd576153bc614490565b5b828206905092915050565b60006153d48288614a6b565b91506153e08287614a6b565b91506153ec8286614a6b565b91506153f88285614a6b565b91506154048284614a6b565b91508190509695505050505050565b600061541f8286614a6b565b915061542b8285614a6b565b91506154378284614a6b565b9150819050949350505050565b600081519050919050565b600082825260208201905092915050565b600061546b82615444565b615475818561544f565b9350615485818560208601613aa4565b61548e81613ad7565b840191505092915050565b60006080820190506154ae6000830187613b43565b6154bb6020830186613b43565b6154c86040830185613bad565b81810360608301526154da8184615460565b905095945050505050565b6000815190506154f4816139a4565b92915050565b6000602082840312156155105761550f6138d5565b5b600061551e848285016154e5565b91505092915050565b600060ff82169050919050565b600061553f82615527565b915061554a83615527565b92508261555a57615559614490565b5b828204905092915050565b600061557082615527565b915061557b83615527565b92508260ff0382111561559157615590614407565b5b828201905092915050565b60006155a782615527565b915060ff8214156155bb576155ba614407565b5b600182019050919050565b6000819050919050565b60006155db826155c6565b91506155e6836155c6565b9250817f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0383136000831215161561562157615620614407565b5b817f800000000000000000000000000000000000000000000000000000000000000003831260008312161561565957615658614407565b5b828201905092915050565b600061566f826155c6565b915061567a836155c6565b9250827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04821160008413600084131616156156b9576156b8614407565b5b817f800000000000000000000000000000000000000000000000000000000000000005831260008412600084131616156156f6576156f5614407565b5b827f8000000000000000000000000000000000000000000000000000000000000000058212600084136000841216161561573357615732614407565b5b827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff05821260008412600084121616156157705761576f614407565b5b828202905092915050565b6000615786826155c6565b9150615791836155c6565b9250826157a1576157a0614490565b5b600160000383147f8000000000000000000000000000000000000000000000000000000000000000831416156157da576157d9614407565b5b828205905092915050565b60006157f0826155c6565b91506157fb836155c6565b9250827f80000000000000000000000000000000000000000000000000000000000000000182126000841215161561583657615835614407565b5b827f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01821360008412161561586e5761586d614407565b5b828203905092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006158af602083613a93565b91506158ba82615879565b602082019050919050565b600060208201905081810360008301526158de816158a2565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b600061591b601c83613a93565b9150615926826158e5565b602082019050919050565b6000602082019050818103600083015261594a8161590e565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfe3b73746f702d6f7061636974793a302e38222f3e3c73746f70206f66667365743d223130302522207374796c653d2273746f702d636f6c6f723a2220643d224d30203068313076313048307a4d31302031306831307631304831307a222f3e3c2f7061747465726e3e3c2f646566733e2220643d224d313020302035203376356c352d33222f3e3c2f673e3c75736520783d22352220793d22382220687265663d222378222f3e3c75736520783d222d352220793d22382220687265663d222378222f3e3c2f7061747465726e3e3c2f646566733e3c646566733e3c6c696e6561724772616469656e742069643d2261222078313d223025222079313d223025222078323d2231303025222079323d22383025223e3c73746f70206f66667365743d22302522207374796c653d2273746f702d636f6c6f723a3c646566733e3c7061747465726e2069643d22612220783d22302220793d2230222077696474683d22323022206865696768743d22323022207061747465726e556e6974733d227573657253706163654f6e557365223e3c7061746820636c6173733d22636865636b6572222066696c6c3d224142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f2220643d226d3020302035203376354c3020357a222f3e3c706174682066696c6c3d222069643d22612220783d22302220793d22313022207061747465726e556e6974733d227573657253706163654f6e557365222077696474683d22313022206865696768743d223136223e3c672069643d2278223e3c706174682066696c6c3d223b73746f702d6f7061636974793a302e39222f3e3c2f6c696e6561724772616469656e743e3c2f646566733ea264697066735822122073ddd468e02a314fea6d2409244b06e548db7be998ae925d04cd04b884ebbce564736f6c634300080c0033