ETH Price: $2,024.39 (-1.21%)

Contract

0x8be55af3fC603E8358986A0811B8b371d66874D0
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Approval For...178250732023-08-02 4:57:47602 days ago1690952267IN
0x8be55af3...1d66874D0
0 ETH0.00067914.55130438
Set Approval For...166595142023-02-19 1:56:47767 days ago1676771807IN
0x8be55af3...1d66874D0
0 ETH0.0009360420.05971241
Set Approval For...158708742022-10-31 21:58:47877 days ago1667253527IN
0x8be55af3...1d66874D0
0 ETH0.0008347417.88888578
Set Approval For...158708702022-10-31 21:57:59877 days ago1667253479IN
0x8be55af3...1d66874D0
0 ETH0.0008615818.43076813
Set Approval For...158370612022-10-27 4:36:11881 days ago1666845371IN
0x8be55af3...1d66874D0
0 ETH0.000447049.57526953
Set Approval For...158029762022-10-22 10:13:35886 days ago1666433615IN
0x8be55af3...1d66874D0
0 ETH0.0008022717.18410852
Safe Transfer Fr...158029102022-10-22 10:00:23886 days ago1666432823IN
0x8be55af3...1d66874D0
0 ETH0.0010140116.45885221
Set Approval For...157940272022-10-21 4:14:59887 days ago1666325699IN
0x8be55af3...1d66874D0
0 ETH0.0014006130
Set Approval For...157865062022-10-20 3:04:35888 days ago1666235075IN
0x8be55af3...1d66874D0
0 ETH0.0008878819.0177357
Set Approval For...157856092022-10-20 0:03:59889 days ago1666224239IN
0x8be55af3...1d66874D0
0 ETH0.0011237624.07028656
Set Approval For...157840752022-10-19 18:54:35889 days ago1666205675IN
0x8be55af3...1d66874D0
0 ETH0.0021100745.19618483
Set Approval For...156660032022-10-03 7:01:47905 days ago1664780507IN
0x8be55af3...1d66874D0
0 ETH0.0004713310.10089526
Set Approval For...154137472022-08-26 6:18:39943 days ago1661494719IN
0x8be55af3...1d66874D0
0 ETH0.000358077.67363708
Grant Role153156802022-08-10 17:28:10959 days ago1660152490IN
0x8be55af3...1d66874D0
0 ETH0.0036882871.33468562
Set Approval For...153010572022-08-08 10:35:56961 days ago1659954956IN
0x8be55af3...1d66874D0
0 ETH0.000331297.09965066
Set Approval For...152761342022-08-04 13:23:49965 days ago1659619429IN
0x8be55af3...1d66874D0
0 ETH0.000539511.54087642
Set Approval For...152403632022-07-29 23:36:53971 days ago1659137813IN
0x8be55af3...1d66874D0
0 ETH0.0005995412.84837358
Set Approval For...151257752022-07-12 4:44:22988 days ago1657601062IN
0x8be55af3...1d66874D0
0 ETH0.0005171920.82535274
Set Approval For...150445952022-06-29 10:35:111001 days ago1656498911IN
0x8be55af3...1d66874D0
0 ETH0.000963420.64601405
Set Approval For...149874232022-06-18 22:28:051012 days ago1655591285IN
0x8be55af3...1d66874D0
0 ETH0.0047995102.66979874
Set Approval For...149744492022-06-16 17:00:101014 days ago1655398810IN
0x8be55af3...1d66874D0
0 ETH0.0024773653.0905425
Edit Token148036762022-05-19 7:21:131042 days ago1652944873IN
0x8be55af3...1d66874D0
0 ETH0.001216721.56902927
Edit Token148003442022-05-18 18:23:461043 days ago1652898226IN
0x8be55af3...1d66874D0
0 ETH0.0021130537.4508861
Edit Token147997472022-05-18 16:00:101043 days ago1652889610IN
0x8be55af3...1d66874D0
0 ETH0.0019005434.92234166
Withdraw147436092022-05-09 17:15:301052 days ago1652116530IN
0x8be55af3...1d66874D0
0 ETH0.00679283184.12246419
View all transactions

Latest 4 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
-147436092022-05-09 17:15:301052 days ago1652116530
0x8be55af3...1d66874D0
0.5 ETH
-141163612022-01-31 22:28:391150 days ago1643668119
0x8be55af3...1d66874D0
4 ETH
-136788562021-11-24 18:43:341218 days ago1637779414
0x8be55af3...1d66874D0
2.75 ETH
-136787282021-11-24 18:15:581218 days ago1637777758
0x8be55af3...1d66874D0
12.25 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TheArchive

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : TheArchive.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/AccessControl.sol";
import '@openzeppelin/contracts/utils/math/SafeMath.sol';

import "./Archival.sol";

contract TheArchive is ERC721, AccessControl {
    using SafeMath for uint256;
    using Counters for Counters.Counter;

    Counters.Counter public _tokens;

    uint256 public price = 0.25 * 1e18;
    uint256 public rollMintLimit = 2;
    uint256 public mintLimitSize = 36;
    string public baseUri = 'https://ipfs.infura.io/ipfs/';
    string public imageUri = 'https://api.thedigitalarchive.art/image/';
    bool public onchain=true;
    string public description;
    address withdrawalAddress;

    struct Token {
        bool        exists;
        string      cid;
        bool        snippet;
        uint256     rotation;
        string      film;
        string      color;
    }
    mapping (uint256 => Token) public Tokens;

    bool public saleStart;
    bool public requireIncludeList;
    mapping (address => bool) public    IncludeList;
    mapping (uint256 => mapping (address => uint256)) public    RollWallet;

    constructor(address _withdraw) ERC721("TheArchive", "ARCHIVE") {
        _setupRole(DEFAULT_ADMIN_ROLE, msg.sender);
        withdrawalAddress = _withdraw;
    }

    modifier onlyTeam() {
        require(isTeam(msg.sender));
        _;
    }

    function isTeam(address account) public virtual view returns (bool) {
        return hasRole(DEFAULT_ADMIN_ROLE, account);
    }

    function mint(uint256 tokenId) public payable {
        require(saleStart && !_exists(tokenId) && Tokens[tokenId].exists && msg.value == price);
        if(requireIncludeList) {
            require(IncludeList[msg.sender]);
        }
        uint256 roll = tokenId.div(mintLimitSize);
        require(RollWallet[roll][msg.sender]+1 <= rollMintLimit);

        _safeMint(msg.sender, tokenId);
        RollWallet[roll][msg.sender]++;
    }

    function mintTeam(uint256 tokenId, address receiver) public onlyTeam {
        require(!_exists(tokenId) && Tokens[tokenId].exists);
        _safeMint(receiver, tokenId);
    }

    function createToken(string memory cid, uint256 rotation, string memory film, bool exists, string memory color) public onlyTeam {
        _tokens.increment();
        Tokens[_tokens.current()] = Token(exists, cid, true, rotation, film, color);
    }

    function editToken(uint256 tokenId, string memory cid, uint256 rotation, string memory film, bool exists, string memory color) public onlyTeam {
        Tokens[tokenId].exists = exists;
        Tokens[tokenId].cid = cid;
        Tokens[tokenId].rotation = rotation;
        Tokens[tokenId].film = film;
        Tokens[tokenId].color = color;
    }

    function ownerTokenSettings(uint256 tokenId, bool snippet, uint256 rotation) public {
        require(ownerOf(tokenId) == msg.sender && rotation < 4);
        Tokens[tokenId].rotation = rotation;
        Tokens[tokenId].snippet = snippet;
    }

    function tokenExists(uint256 tokenId) public view returns(bool) {
        return _exists(tokenId);
    }

    function getTokensForSale() public view returns(uint256[] memory tokens) {
        uint256 saleCount = 0;
        for(uint256 i=1; i<= _tokens.current(); i++) {
            if(Tokens[i].exists && !tokenExists(i)) {
                saleCount++;
            }
        }
        tokens = new uint256[](saleCount);
        uint256 index;
        for(uint256 i=1; i<= _tokens.current(); i++) {
            if(Tokens[i].exists && !tokenExists(i)) {
                tokens[index] = i;
                index++;
            }
        }
    }

    function contractSettings(bool _saleStart, bool _requireIncludeList, uint256 _price, string memory _baseUri, string memory _imageUri, bool _onchain, string memory _description, uint256 _rollMintLimit, uint256 _mintLimitSize) public onlyTeam {
        saleStart = _saleStart;
        requireIncludeList = _requireIncludeList;
        price = _price;
        baseUri = _baseUri;
        imageUri = _imageUri;
        onchain = _onchain;
        description = _description;
        rollMintLimit = _rollMintLimit;
        mintLimitSize = _mintLimitSize;
    }

    function addIncludeListBulk(address[] memory include, uint256 total) public onlyTeam {
        for(uint256 i=0; i<total; i++) {
            IncludeList[include[i]] = true;
        }
    }

    function removeIncludeListBulk(address[] memory include, uint256 total) public onlyTeam {
        for(uint256 i=0; i<total; i++) {
            IncludeList[include[i]] = false;
        }
    }

    function tokenURI(uint256 tokenId) override public view returns (string memory output) {
        if(!onchain) {
            output = string(abi.encodePacked(baseUri, tokenId));
        } else {
            string memory attributes = Archival.makeAttributes(Tokens[tokenId].film);
            string memory svg;
            if(!Tokens[tokenId].snippet) {
                svg = string(abi.encodePacked('data:image/svg+xml;base64,', Base64.encode(bytes(Archival.makeSVG(baseUri, Tokens[tokenId].cid, Tokens[tokenId].snippet, Tokens[tokenId].rotation)))));
            } else {
                svg = string(abi.encodePacked('data:image/svg+xml;base64,', Base64.encode(bytes(Archival.makeSVGSnippet(baseUri, Tokens[tokenId].cid, Tokens[tokenId].snippet, Tokens[tokenId].rotation, tokenId, Tokens[tokenId].film, Tokens[tokenId].color)))));
            }
            string memory image = string(abi.encodePacked(imageUri, Archival.toString(tokenId)));
            string memory json = Base64.encode(bytes(Archival.makeJson(Archival.tokenName(tokenId), description, image, svg, attributes)));
            output = string(abi.encodePacked('data:application/json;base64,', json));
        }
    }

    /**
    *   External function for getting all tokens by a specific owner.
    */
    function getByOwner(address _owner) view public returns(uint256[] memory result) {
        result = new uint256[](balanceOf(_owner));
        uint256 resultIndex = 0;
        for (uint256 t = 1; t <= _tokens.current(); t++) {
            if (_exists(t) && ownerOf(t) == _owner) {
                result[resultIndex] = t;
                resultIndex++;
            }
        }
    }

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

    function withdraw() public payable onlyTeam {
        require(payable(withdrawalAddress).send(address(this).balance));
    }

}

library Base64 {
    bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return "";

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

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF))
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

File 2 of 15 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

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

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

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

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

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 3 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 4 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 5 of 15 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

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

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

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

File 6 of 15 : Counters.sol
// SPDX-License-Identifier: MIT

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;
    }
}

File 7 of 15 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 8 of 15 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 10 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 11 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 15 : ERC721.sol
// SPDX-License-Identifier: MIT

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: balance query for the zero address");
        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: owner query for nonexistent token");
        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) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public 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 owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not 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: transfer caller is not 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) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, 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);
    }

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

    /**
     * @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 of token that is not own");
        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);
    }

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

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

File 13 of 15 : IAccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}

File 14 of 15 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IAccessControl.sol";
import "../utils/Context.sol";
import "../utils/Strings.sol";
import "../utils/introspection/ERC165.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role, _msgSender());
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(uint160(account), 20),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    function _grantRole(bytes32 role, address account) private {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

File 15 of 15 : Archival.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import '@openzeppelin/contracts/utils/math/SafeMath.sol';

library Archival {
    using SafeMath for uint256;

    function tokenName(uint256 tokenId) public pure returns (string memory name) {
        uint256 number = tokenId.mod(36);
        if(number == 0) {
            number = 36;
        }
        name = string(abi.encodePacked(toString(36), rollCode(tokenId), toString(number)));
    }

    function rollCode(uint256 tokenId) public pure returns (string memory code) {
        uint256 roll = tokenId.sub(1).div(36);
        uint256 rollPrefix = roll.div(26);
        uint256 rollSuffix = roll.mod(26);
        code = string(abi.encodePacked(letterMap(rollPrefix), letterMap(rollSuffix)));
    }

    function letterMap(uint256 num) public pure returns (string memory letter) {
        string[26] memory letters;
        letters[0] = 'A';
        letters[1] = 'B';
        letters[2] = 'C';
        letters[3] = 'D';
        letters[4] = 'E';
        letters[5] = 'F';
        letters[6] = 'G';
        letters[7] = 'H';
        letters[8] = 'I';
        letters[9] = 'J';
        letters[10] = 'K';
        letters[11] = 'L';
        letters[12] = 'M';
        letters[13] = 'N';
        letters[14] = 'O';
        letters[15] = 'P';
        letters[16] = 'Q';
        letters[17] = 'R';
        letters[18] = 'S';
        letters[19] = 'T';
        letters[20] = 'U';
        letters[21] = 'V';
        letters[22] = 'W';
        letters[23] = 'X';
        letters[24] = 'Y';
        letters[25] = 'Z';
        letter = letters[num];
    }

    function getDefaultSizes() public pure returns (uint256 default_width, uint256 default_height) {
        default_width = 10200;
        default_height = 6900;
    }

    function getWidthAndHeight(bool snippet, uint256 rotation) public pure returns (uint256 s_width, uint256 s_height) {
        (uint256 default_width, uint256 default_height) = getDefaultSizes();
        s_width = default_width;
        s_height = default_height;
        if(snippet) {
            s_height = (default_width / 38) * 35;
            if(rotation == 1 || rotation == 3) {
                s_width = s_height;
                s_height = default_width;
            }
        } else if(rotation == 1 || rotation == 3) {
            s_width = s_height;
            s_height = default_width;
        }
    }

    function makeSVG(string memory baseUri, string memory cid, bool snippet, uint256 rotation) public pure returns (string memory svg){
        (uint256 default_width, uint256 default_height) = getDefaultSizes();
        (uint256 s_width, uint256 s_height) = getWidthAndHeight(snippet, rotation);
        string memory transform;
        if(rotation == 1) {
            transform = string(abi.encodePacked('transform="rotate(90, ', toString(s_width / 2), ', ', toString(s_width / 2), ')"'));
        } else if(rotation == 2) {
            transform = string(abi.encodePacked('transform="rotate(180, ', toString(s_width / 2), ', ', toString(s_height / 2), ')"'));
        } else if(rotation == 3) {
            transform = string(abi.encodePacked('transform="rotate(270, ', toString(s_height / 2), ', ', toString(s_height / 2), ')"'));
        }
        svg = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ';
        svg = string(abi.encodePacked(svg, toString(s_width), ' ', toString(s_height), '"><image href="', baseUri, cid, '" height="', toString(default_height), '" width="', toString(default_width), '" ', transform, ' /></svg>'));
    }

    function makeSVGSnippet(string memory baseUri, string memory cid, bool snippet, uint256 rotation, uint256 tokenId, string memory film, string memory color) public pure returns (string memory svg){
        (uint256 default_width, uint256 default_height) = getDefaultSizes();
        (uint256 s_width, uint256 s_height) = getWidthAndHeight(snippet, rotation);
        uint256 number = tokenId.mod(36);
        if(number == 0) {
            number = 36;
        }
        string[11] memory parts;
        parts[0] = string(abi.encodePacked('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ', toString(s_width), ' ', toString(s_height), '"><g '));
        if(rotation == 1) {
            parts[1] = string(abi.encodePacked('transform="rotate(90, ', toString(s_width / 2), ', ', toString(s_width / 2), ')"'));
        } else if(rotation == 2) {
            parts[1] = string(abi.encodePacked('transform="rotate(180, ', toString(s_width / 2), ', ', toString(s_height / 2), ')"'));
        } else if(rotation == 3) {
            parts[1] = string(abi.encodePacked('transform="rotate(270, ', toString(s_height / 2), ', ', toString(s_height / 2), ')"'));
        }
        parts[2] = string(abi.encodePacked('><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3800 3500" height="', toString((default_width / 38) * 35), '" width="', toString(default_width), '"><path fill="#', color, '" d="M-8.2,3510.8V-8.6h3812.7v3519.4H-8.2z M849.9,343.4c-1.6-34.6,3.6-70-2.9-104.1c-18-59.1-90.5-37.1-136.9-41c-38.5-3.6-67.7,28.1-65.8,63.8c2.3,61.6-4.7,124.5,3.1,185.6c18.4,61.8,96.6,37,145,41.6C870.2,485.1,846.4,396.4,849.9,343.4z M849.9,3154.6c-0.1-30,0.3-60.1-0.2-90.1c-0.8-27.8-22.7-54.3-51.4-55.1c-30-0.8-59.9-0.1-89.9-0.3c-28.8-2.6-55.2,14.7-61.7,43.6c-6,59-0.6,119.2-2.4,178.6c-2.8,33.1,19.9,68.3,55.6,67.8c48.3-5.3,126.5,21.1,146.7-39C854.1,3225.8,848.1,3189.6,849.9,3154.6z M2034.9,343.7c-0.1,30.5,0.3,61.1,0,91.6c-0.2,33.7,32,56.6,64.1,54.2c49.2-2.4,135.5,17.1,139.3-54.7c0.1-60.6-0.2-121.2,0.1-181.7c0-31.2-28.6-56.2-59.3-54.9c-35.4,1.9-72.1-4.4-106.7,3.4c-28.6,9.2-40.6,38-37.5,66.4C2034.9,293.2,2034.9,318.5,2034.9,343.7z M2960.8,342.1c0.2,32.9-0.6,65.8,0.5,98.6c3,28.9,30.8,50,59.3,48.6c34.9-1.4,70.9,3.9,105.3-3.1c24.6-7.2,40.7-33.1,38.6-58.5c0-55.8,0-111.5,0-167.3c2.2-26.1-13-50.3-38.1-58.9c-34.2-7.4-70.3-1.5-105.2-3.3C2940.4,198.8,2964.1,288.2,2960.8,342.1L2960.8,342.1z M1312.4,343.6c-0.7-33.8,1.5-67.8-1.1-101.4c-16.7-62.7-92.7-39.8-140.8-43.9c-32.3-2.4-62.7,23.1-61.8,56.5c0.1,60.1,0.2,120.1,0,180.2c0,24.1,17.7,46.7,41.1,52.1c32.3,5.4,65.6,1.1,98.3,2.4C1334.3,490.2,1308.7,401.2,1312.4,343.6z M2702.2,343.5L2702.2,343.5c-3.2-50.4,18.8-136.9-52.7-144.8c-28.5-1.1-57.1-0.2-85.6-0.5c-37.3-3.7-68.1,24.8-66.7,59.4c0.1,58.6,0.1,117.2,0,175.9c0.5,13.5,5.7,26.4,14.6,36.6c11.8,14.7,30.6,19.5,48.7,19.4c28.5-0.4,57.1,0.4,85.6-0.2C2722.1,484.2,2698.7,395.7,2702.2,343.5z M386.3,345.2c-0.1-31.4,0.2-62.9-0.2-94.4c-1.5-31.8-30.4-54.4-61.4-52.6c-38,3.8-101.5-12.4-127.5,18.6c-11.6,12.2-15.8,27.9-14.4,44.8c0,58.2,0,116.3,0,174.4c0.4,20.6,13.2,38.5,31.4,47.6c35.5,12.1,75,3.1,111.9,5.8c29.8,1.4,59.1-21.8,59.8-52.7C386.6,406.2,386.2,375.7,386.3,345.2L386.3,345.2z M1776.1,344.8c-2.9-58,20.3-149.7-67.1-146.5c-34.8,3.1-91.9-9.8-117.9,14c-13.8,12.1-20,27.5-20.1,45.6c0,57.2-0.1,114.4-0.1,171.6c-1,36.7,30.4,63,66.3,60c33.4-1.9,68.2,4.3,100.9-3.6C1794.9,464.2,1771.3,391.8,1776.1,344.8L1776.1,344.8z M3423.3,343.4c2.7,81.4-22.6,155.1,91.5,146.1c24.8-1.3,51.1,3.4,75.2-3.6c25.4-8.4,38.8-33.3,38.2-59.3c-0.1-55.3-0.1-110.6,0-165.8c-0.2-80.3-86-60.2-141-62.4C3402.4,197.4,3426.7,288.5,3423.3,343.4L3423.3,343.4z M386.3,3155.1c-0.9-34.7,2-69.8-1.5-104.2c-6-21.2-24.9-40.1-47.7-41.3c-29.9-1-59.9-0.3-89.9-0.5c-32.7-3.6-65.1,19.7-64.4,54.5c-0.2,60.5,0,121.1-0.2,181.6c0.8,29.1,24.3,54,53.9,53.7c37.6-1.6,76.9,4.8,113.7-3.3c26.8-9.4,38.8-37.8,36-64.7C386.3,3205.6,386.3,3180.4,386.3,3155.1z M1108.9,3153.8c0.8,34.2-1.7,68.8,1,102.9c6.4,23.7,27.8,42.6,52.9,42.4c31.9,0.1,63.8,0,95.6,0c29.1,0.2,54.2-26.4,53.9-55.5c-0.2-60.1-0.2-120.1,0-180.2c-0.3-33.2-30.8-58.1-63.5-54.3c-25.7,0-51.4,0-77.1,0c-16.2-0.6-32.9,2.2-44.8,14.2c-11.9,11.4-18.3,25-18.1,41.8C1109.1,3094.7,1108.9,3124.3,1108.9,3153.8z M2034.9,3153.9L2034.9,3153.9c-0.1,30.5,0.4,61,0,91.5c0.3,28.9,25,53.9,54,53.5c37.2-1.7,75.8,4.3,112.3-3c21.9-7.6,37-29.2,37.1-52.5c-0.2-60.1-0.2-120.1,0-180.2c-0.4-28.1-23.4-53.4-52.1-54c-29.5-0.6-59-0.1-88.5-0.3c-31.6-3.5-62.8,20.2-62.7,53.3C2034.8,3092.9,2035,3123.4,2034.9,3153.9z M2497.2,3153.4L2497.2,3153.4c1.9,51.3-17.1,146,57.2,145.9c34.1-1.5,68.7,1.6,102.7-1c29.8-6.8,46.9-34.5,45.1-64.4c-0.2-56.2,0.2-112.5-0.1-168.8c-0.8-12.6-4.3-24.4-12.3-34.4c-12-16.2-30.2-22.8-50.2-21.6c-31.4,0.4-62.8-0.8-94.2,0.6C2477.3,3019.4,2501.4,3105,2497.2,3153.4z M1571,3153.3L1571,3153.3c1.2,34.2-2.6,68.9,2,102.8c17.2,64.5,98.6,37.7,147.9,43c33.5,0,57-31.3,55.2-63.6c-0.2-57.2,0.2-114.4-0.1-171.6c-1.5-32.3-29.7-58.3-62.2-54.8c-32.3,0.4-64.7-1-97,0.8C1551.3,3023.7,1575.4,3104.8,1571,3153.3z M2960.8,3153.8c1.8,35.9-4,73.1,3.1,108.2c23.4,58.7,97,30.7,145.2,37.2c33.5,0.7,59.2-31.7,55.3-64.1c-0.4-8.5,0.4-171.7-0.1-175.9c-1-13.9-8.3-26.6-18.4-36c-11.8-11.6-27.4-14.7-43.4-14.1c-30.4,0.2-60.9-0.5-91.3,0.4c-27.1,1-49.8,25.7-50.1,52.8C2960.4,3092.8,2960.9,3123.3,2960.8,3153.8z M3423.3,3153.6L3423.3,3153.6c1.6,35-3.6,71,2.8,105.5c19,60.1,95.4,35.2,143.1,40c36.8,2.4,62.1-31.7,59.1-66.8c-0.1-55.8,0.2-111.5-0.1-167.3c-0.7-9.6-2.6-18.9-7.6-27.3c-11.6-21.1-32.6-30.3-56.3-28.6c-31.4,0.4-62.8-0.9-94.1,0.7C3403.6,3022.6,3427.5,3104.9,3423.3,3153.6z"/></svg>'));
        parts[3] = '<style type="text/css"> @font-face { font-family: Teletactile; src: url("https://archive-app.netlify.app/Teletactile.ttf"); } .t0{font:300px "Teletactile", sans-serif;} </style>';
        parts[4] = '<text x="1850" y="400" class="t0" fill="orange">LH / ARCH</text>';
        parts[5] = string(abi.encodePacked('<text x="9150" y="400" class="t0" fill="orange">', toString(number), '</text>'));
        parts[6] = string(abi.encodePacked('<text x="9150" y="9250" class="t0" fill="orange">', toString(number), '</text>'));
        parts[7] = string(abi.encodePacked('<text x="1850" y="9250" class="t0" fill="orange">36', rollCode(tokenId), '</text>'));
        parts[8] = string(abi.encodePacked('<text x="3650" y="9250" class="t0" fill="orange">', film, '</text>'));
        parts[9] = string(abi.encodePacked('<image href="', baseUri, cid, '" height="6697" width="9900" x="150" y="1341" />'));
        parts[10] = '<g transform="scale(0.049)"><svg xmlns="http://www.w3.org/2000/svg" x="61500" y="181500" viewBox="0 0 130 70" style="enable-background:new 0 0 130 70;" xml:space="preserve"><style type="text/css">.st0{fill:none;stroke:orange;stroke-width:5;stroke-miterlimit:10;}</style><g><line class="st0" x1="3.5" y1="3.4" x2="3.5" y2="68.3"/><line class="st0" x1="5.9" y1="65.8" x2="19.1" y2="65.8"/><line class="st0" x1="19.1" y1="60.7" x2="39.2" y2="60.7"/><line class="st0" x1="5.9" y1="5.9" x2="19" y2="5.9"/><line class="st0" x1="19" y1="10.9" x2="39.1" y2="10.9"/><line class="st0" x1="39.2" y1="55.8" x2="59.3" y2="55.8"/><line class="st0" x1="39.2" y1="15.9" x2="59.2" y2="15.9"/><line class="st0" x1="59.3" y1="50.8" x2="79.4" y2="50.8"/><line class="st0" x1="59.2" y1="20.8" x2="79.3" y2="20.8"/><line class="st0" x1="79.3" y1="45.8" x2="99.4" y2="45.8"/><line class="st0" x1="79.3" y1="25.8" x2="99.4" y2="25.8"/><line class="st0" x1="99.4" y1="30.8" x2="114.4" y2="30.8"/><line class="st0" x1="99.4" y1="40.8" x2="114.4" y2="40.8"/><line class="st0" x1="114.4" y1="35.8" x2="129.3" y2="35.8"/></g></svg></g>';
        svg = string(abi.encodePacked(parts[0], parts[1], parts[2], parts[3], parts[4], parts[5], parts[6], parts[7], parts[8], parts[9], parts[10], '</g></svg>'));
    }

    function makeAttributes(string memory film) public pure returns (string memory attributes) {
        attributes = string(abi.encodePacked('{"trait_type":"Film Type","value":"', film, '"}'));
    }

    function makeJson(string memory name, string memory description, string memory image, string memory svg, string memory attributes) public pure returns (string memory) {
        return string(abi.encodePacked('{"name": "', name, '", "description": "', description, '", "image": "', image, '", "svg": "', svg, '", "attributes": [', attributes, ']}'));
    }

    function toString(uint256 value) public pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT license
        // 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);
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {
    "/Users/Shared/Code/experimental/thearchive/archive-app/contracts/Archival.sol": {
      "Archival": "0x64Cc9E72e43957C8d39F43bF7D087BF21A9485a0"
    }
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_withdraw","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"IncludeList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"RollWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"Tokens","outputs":[{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"string","name":"cid","type":"string"},{"internalType":"bool","name":"snippet","type":"bool"},{"internalType":"uint256","name":"rotation","type":"uint256"},{"internalType":"string","name":"film","type":"string"},{"internalType":"string","name":"color","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_tokens","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"include","type":"address[]"},{"internalType":"uint256","name":"total","type":"uint256"}],"name":"addIncludeListBulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_saleStart","type":"bool"},{"internalType":"bool","name":"_requireIncludeList","type":"bool"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"string","name":"_imageUri","type":"string"},{"internalType":"bool","name":"_onchain","type":"bool"},{"internalType":"string","name":"_description","type":"string"},{"internalType":"uint256","name":"_rollMintLimit","type":"uint256"},{"internalType":"uint256","name":"_mintLimitSize","type":"uint256"}],"name":"contractSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"cid","type":"string"},{"internalType":"uint256","name":"rotation","type":"uint256"},{"internalType":"string","name":"film","type":"string"},{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"string","name":"color","type":"string"}],"name":"createToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"cid","type":"string"},{"internalType":"uint256","name":"rotation","type":"uint256"},{"internalType":"string","name":"film","type":"string"},{"internalType":"bool","name":"exists","type":"bool"},{"internalType":"string","name":"color","type":"string"}],"name":"editToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"getByOwner","outputs":[{"internalType":"uint256[]","name":"result","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokensForSale","outputs":[{"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"imageUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isTeam","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintLimitSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"mintTeam","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onchain","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"snippet","type":"bool"},{"internalType":"uint256","name":"rotation","type":"uint256"}],"name":"ownerTokenSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"include","type":"address[]"},{"internalType":"uint256","name":"total","type":"uint256"}],"name":"removeIncludeListBulk","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requireIncludeList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rollMintLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleStart","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenExists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"output","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

60806040526703782dace9d9000060085560026009556024600a556040518060400160405280601c81526020017f68747470733a2f2f697066732e696e667572612e696f2f697066732f00000000815250600b90805190602001906200006792919062000360565b5060405180606001604052806028815260200162005e6f60289139600c90805190602001906200009992919062000360565b506001600d60006101000a81548160ff021916908315150217905550348015620000c257600080fd5b5060405162005e9738038062005e978339818101604052810190620000e8919062000427565b6040518060400160405280600a81526020017f54686541726368697665000000000000000000000000000000000000000000008152506040518060400160405280600781526020017f415243484956450000000000000000000000000000000000000000000000000081525081600090805190602001906200016c92919062000360565b5080600190805190602001906200018592919062000360565b5050506200019d6000801b33620001e560201b60201c565b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000506565b620001f78282620001fb60201b60201c565b5050565b6200020d8282620002ed60201b60201c565b620002e95760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200028e6200035860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b8280546200036e9062000487565b90600052602060002090601f016020900481019282620003925760008555620003de565b82601f10620003ad57805160ff1916838001178555620003de565b82800160010185558215620003de579182015b82811115620003dd578251825591602001919060010190620003c0565b5b509050620003ed9190620003f1565b5090565b5b808211156200040c576000816000905550600101620003f2565b5090565b6000815190506200042181620004ec565b92915050565b6000602082840312156200043a57600080fd5b60006200044a8482850162000410565b91505092915050565b6000620004608262000467565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006002820490506001821680620004a057607f821691505b60208210811415620004b757620004b6620004bd565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b620004f78162000453565b81146200050357600080fd5b50565b61595980620005166000396000f3fe6080604052600436106102715760003560e01c8063953c81331161014f578063c43fc497116100c1578063e985e9c51161007a578063e985e9c514610998578063eb4ae22d146109d5578063efeb4190146109fe578063f3623d9914610a3b578063fc9c6a4814610a66578063fcb781d814610a8f57610271565b8063c43fc4971461088c578063c87b56dd146108b7578063d4445807146108f4578063d547741f1461091d578063ded50cbf14610946578063df08ed101461096f57610271565b8063a0712d6811610113578063a0712d681461079d578063a217fddf146107b9578063a22cb465146107e4578063ab0bcc411461080d578063acdae89914610838578063b88d4fde1461086357610271565b8063953c81331461069d57806395d89b41146106df5780639abc83201461070a5780639ebc962114610735578063a035b1fe1461077257610271565b8063379c5131116101e857806365e4e1c0116101ac57806365e4e1c01461057957806370a08231146105a45780637284e416146105e15780637bffd7551461060c5780638970d84c1461063557806391d148541461066057610271565b8063379c5131146104a15780633ccfd60b146104de5780633d081e96146104e857806342842e0e146105135780636352211e1461053c57610271565b80630bf82da41161023a5780630bf82da41461038157806323b872dd146103ac57806324851914146103d5578063248a9ca3146104125780632f2ff15d1461044f57806336568abe1461047857610271565b8062923f9e1461027657806301ffc9a7146102b357806306fdde03146102f0578063081812fc1461031b578063095ea7b314610358575b600080fd5b34801561028257600080fd5b5061029d60048036038101906102989190614250565b610ab8565b6040516102aa9190614a92565b60405180910390f35b3480156102bf57600080fd5b506102da60048036038101906102d591906140fe565b610aca565b6040516102e79190614a92565b60405180910390f35b3480156102fc57600080fd5b50610305610c14565b6040516103129190614b3e565b60405180910390f35b34801561032757600080fd5b50610342600480360381019061033d9190614250565b610ca6565b60405161034f9190614a09565b60405180910390f35b34801561036457600080fd5b5061037f600480360381019061037a9190613efb565b610d2b565b005b34801561038d57600080fd5b50610396610e43565b6040516103a39190614b3e565b60405180910390f35b3480156103b857600080fd5b506103d360048036038101906103ce9190613df5565b610ed1565b005b3480156103e157600080fd5b506103fc60048036038101906103f79190613d90565b610f31565b6040516104099190614a92565b60405180910390f35b34801561041e57600080fd5b5061043960048036038101906104349190614099565b610f47565b6040516104469190614b23565b60405180910390f35b34801561045b57600080fd5b50610476600480360381019061047191906140c2565b610f67565b005b34801561048457600080fd5b5061049f600480360381019061049a91906140c2565b610f90565b005b3480156104ad57600080fd5b506104c860048036038101906104c39190613d90565b611013565b6040516104d59190614a70565b60405180910390f35b6104e6611162565b005b3480156104f457600080fd5b506104fd6111d6565b60405161050a9190614a92565b60405180910390f35b34801561051f57600080fd5b5061053a60048036038101906105359190613df5565b6111e9565b005b34801561054857600080fd5b50610563600480360381019061055e9190614250565b611209565b6040516105709190614a09565b60405180910390f35b34801561058557600080fd5b5061058e6112bb565b60405161059b9190614a70565b60405180910390f35b3480156105b057600080fd5b506105cb60048036038101906105c69190613d90565b611465565b6040516105d89190614ed1565b60405180910390f35b3480156105ed57600080fd5b506105f661151d565b6040516106039190614b3e565b60405180910390f35b34801561061857600080fd5b50610633600480360381019061062e9190614279565b6115ab565b005b34801561064157600080fd5b5061064a61160a565b6040516106579190614ed1565b60405180910390f35b34801561066c57600080fd5b50610687600480360381019061068291906140c2565b611616565b6040516106949190614a92565b60405180910390f35b3480156106a957600080fd5b506106c460048036038101906106bf9190614250565b611681565b6040516106d696959493929190614aad565b60405180910390f35b3480156106eb57600080fd5b506106f461186f565b6040516107019190614b3e565b60405180910390f35b34801561071657600080fd5b5061071f611901565b60405161072c9190614b3e565b60405180910390f35b34801561074157600080fd5b5061075c60048036038101906107579190614279565b61198f565b6040516107699190614ed1565b60405180910390f35b34801561077e57600080fd5b506107876119b4565b6040516107949190614ed1565b60405180910390f35b6107b760048036038101906107b29190614250565b6119ba565b005b3480156107c557600080fd5b506107ce611b82565b6040516107db9190614b23565b60405180910390f35b3480156107f057600080fd5b5061080b60048036038101906108069190613ebf565b611b89565b005b34801561081957600080fd5b50610822611d0a565b60405161082f9190614a92565b60405180910390f35b34801561084457600080fd5b5061084d611d1d565b60405161085a9190614a92565b60405180910390f35b34801561086f57600080fd5b5061088a60048036038101906108859190613e44565b611d30565b005b34801561089857600080fd5b506108a1611d92565b6040516108ae9190614ed1565b60405180910390f35b3480156108c357600080fd5b506108de60048036038101906108d99190614250565b611d98565b6040516108eb9190614b3e565b60405180910390f35b34801561090057600080fd5b5061091b60048036038101906109169190613f37565b6122fb565b005b34801561092957600080fd5b50610944600480360381019061093f91906140c2565b6123c8565b005b34801561095257600080fd5b5061096d60048036038101906109689190613f37565b6123f1565b005b34801561097b57600080fd5b50610996600480360381019061099191906142b5565b6124be565b005b3480156109a457600080fd5b506109bf60048036038101906109ba9190613db9565b612558565b6040516109cc9190614a92565b60405180910390f35b3480156109e157600080fd5b506109fc60048036038101906109f79190613f8b565b6125ec565b005b348015610a0a57600080fd5b50610a256004803603810190610a209190613d90565b6126b1565b604051610a329190614a92565b60405180910390f35b348015610a4757600080fd5b50610a506126d1565b604051610a5d9190614ed1565b60405180910390f35b348015610a7257600080fd5b50610a8d6004803603810190610a889190614191565b6126d7565b005b348015610a9b57600080fd5b50610ab66004803603810190610ab19190614304565b6127ec565b005b6000610ac3826128d0565b9050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b9557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610bfd57507f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c0d5750610c0c8261293c565b5b9050919050565b606060008054610c2390615240565b80601f0160208091040260200160405190810160405280929190818152602001828054610c4f90615240565b8015610c9c5780601f10610c7157610100808354040283529160200191610c9c565b820191906000526020600020905b815481529060010190602001808311610c7f57829003601f168201915b5050505050905090565b6000610cb1826128d0565b610cf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce790614e16565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d3682611209565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610da7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9e90614e56565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610dc66129b6565b73ffffffffffffffffffffffffffffffffffffffff161480610df55750610df481610def6129b6565b612558565b5b610e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2b90614d96565b60405180910390fd5b610e3e83836129be565b505050565b600c8054610e5090615240565b80601f0160208091040260200160405190810160405280929190818152602001828054610e7c90615240565b8015610ec95780601f10610e9e57610100808354040283529160200191610ec9565b820191906000526020600020905b815481529060010190602001808311610eac57829003601f168201915b505050505081565b610ee2610edc6129b6565b82612a77565b610f21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1890614e76565b60405180910390fd5b610f2c838383612b55565b505050565b6000610f406000801b83611616565b9050919050565b600060066000838152602001908152602001600020600101549050919050565b610f7082610f47565b610f8181610f7c6129b6565b612db1565b610f8b8383612e4e565b505050565b610f986129b6565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611005576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ffc90614e96565b60405180910390fd5b61100f8282612f2f565b5050565b606061101e82611465565b67ffffffffffffffff81111561105d577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561108b5781602001602082028036833780820191505090505b509050600080600190505b6110a06007613011565b811161115b576110af816128d0565b80156110ee57508373ffffffffffffffffffffffffffffffffffffffff166110d682611209565b73ffffffffffffffffffffffffffffffffffffffff16145b15611148578083838151811061112d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508180611144906152a3565b9250505b8080611153906152a3565b915050611096565b5050919050565b61116b33610f31565b61117457600080fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050506111d457600080fd5b565b601160019054906101000a900460ff1681565b61120483838360405180602001604052806000815250611d30565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a990614dd6565b60405180910390fd5b80915050919050565b6060600080600190505b6112cf6007613011565b8111611332576010600082815260200190815260200160002060000160009054906101000a900460ff16801561130b575061130981610ab8565b155b1561131f57818061131b906152a3565b9250505b808061132a906152a3565b9150506112c5565b508067ffffffffffffffff811115611373577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156113a15781602001602082028036833780820191505090505b509150600080600190505b6113b66007613011565b811161145f576010600082815260200190815260200160002060000160009054906101000a900460ff1680156113f257506113f081610ab8565b155b1561144c5780848381518110611431577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508180611448906152a3565b9250505b8080611457906152a3565b9150506113ac565b50505090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114cd90614db6565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600e805461152a90615240565b80601f016020809104026020016040519081016040528092919081815260200182805461155690615240565b80156115a35780601f10611578576101008083540402835291602001916115a3565b820191906000526020600020905b81548152906001019060200180831161158657829003601f168201915b505050505081565b6115b433610f31565b6115bd57600080fd5b6115c6826128d0565b1580156115f357506010600083815260200190815260200160002060000160009054906101000a900460ff165b6115fc57600080fd5b611606818361301f565b5050565b60078060000154905081565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60106020528060005260406000206000915090508060000160009054906101000a900460ff16908060010180546116b790615240565b80601f01602080910402602001604051908101604052809291908181526020018280546116e390615240565b80156117305780601f1061170557610100808354040283529160200191611730565b820191906000526020600020905b81548152906001019060200180831161171357829003601f168201915b5050505050908060020160009054906101000a900460ff169080600301549080600401805461175e90615240565b80601f016020809104026020016040519081016040528092919081815260200182805461178a90615240565b80156117d75780601f106117ac576101008083540402835291602001916117d7565b820191906000526020600020905b8154815290600101906020018083116117ba57829003601f168201915b5050505050908060050180546117ec90615240565b80601f016020809104026020016040519081016040528092919081815260200182805461181890615240565b80156118655780601f1061183a57610100808354040283529160200191611865565b820191906000526020600020905b81548152906001019060200180831161184857829003601f168201915b5050505050905086565b60606001805461187e90615240565b80601f01602080910402602001604051908101604052809291908181526020018280546118aa90615240565b80156118f75780601f106118cc576101008083540402835291602001916118f7565b820191906000526020600020905b8154815290600101906020018083116118da57829003601f168201915b5050505050905090565b600b805461190e90615240565b80601f016020809104026020016040519081016040528092919081815260200182805461193a90615240565b80156119875780601f1061195c57610100808354040283529160200191611987565b820191906000526020600020905b81548152906001019060200180831161196a57829003601f168201915b505050505081565b6013602052816000526040600020602052806000526040600020600091509150505481565b60085481565b601160009054906101000a900460ff1680156119dc57506119da816128d0565b155b8015611a0857506010600082815260200190815260200160002060000160009054906101000a900460ff165b8015611a15575060085434145b611a1e57600080fd5b601160019054906101000a900460ff1615611a8a57601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611a8957600080fd5b5b6000611aa1600a548361303d90919063ffffffff16565b905060095460016013600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611b039190615041565b1115611b0e57600080fd5b611b18338361301f565b6013600082815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190611b79906152a3565b91905055505050565b6000801b81565b611b916129b6565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611bff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf690614d56565b60405180910390fd5b8060056000611c0c6129b6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611cb96129b6565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611cfe9190614a92565b60405180910390a35050565b601160009054906101000a900460ff1681565b600d60009054906101000a900460ff1681565b611d41611d3b6129b6565b83612a77565b611d80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7790614e76565b60405180910390fd5b611d8c84848484613053565b50505050565b60095481565b6060600d60009054906101000a900460ff16611dd857600b82604051602001611dc2929190614963565b60405160208183030381529060405290506122f6565b60007364cc9e72e43957c8d39f43bf7d087bf21a9485a063d88d08b8601060008681526020019081526020016000206004016040518263ffffffff1660e01b8152600401611e269190614bd6565b60006040518083038186803b158015611e3e57600080fd5b505af4158015611e52573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611e7b9190614150565b905060606010600085815260200190815260200160002060020160009054906101000a900460ff16611fb657611f907364cc9e72e43957c8d39f43bf7d087bf21a9485a06333ef966a600b60106000898152602001908152602001600020600101601060008a815260200190815260200160002060020160009054906101000a900460ff16601060008b8152602001908152602001600020600301546040518563ffffffff1660e01b8152600401611f369493929190614bf8565b60006040518083038186803b158015611f4e57600080fd5b505af4158015611f62573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611f8b9190614150565b6130af565b604051602001611fa091906149e7565b60405160208183030381529060405290506120f1565b6120cf7364cc9e72e43957c8d39f43bf7d087bf21a9485a063ce298d20600b60106000898152602001908152602001600020600101601060008a815260200190815260200160002060020160009054906101000a900460ff16601060008b8152602001908152602001600020600301548a601060008d8152602001908152602001600020600401601060008e81526020019081526020016000206005016040518863ffffffff1660e01b81526004016120759796959493929190614c4b565b60006040518083038186803b15801561208d57600080fd5b505af41580156120a1573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906120ca9190614150565b6130af565b6040516020016120df91906149e7565b60405160208183030381529060405290505b6000600c7364cc9e72e43957c8d39f43bf7d087bf21a9485a0636900a3ae876040518263ffffffff1660e01b815260040161212c9190614eb6565b60006040518083038186803b15801561214457600080fd5b505af4158015612158573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906121819190614150565b60405160200161219292919061493f565b604051602081830303815290604052905060006122cd7364cc9e72e43957c8d39f43bf7d087bf21a9485a063813e2ddd7364cc9e72e43957c8d39f43bf7d087bf21a9485a063e725f8778a6040518263ffffffff1660e01b81526004016121f99190614eb6565b60006040518083038186803b15801561221157600080fd5b505af4158015612225573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061224e9190614150565b600e86888a6040518663ffffffff1660e01b8152600401612273959493929190614b60565b60006040518083038186803b15801561228b57600080fd5b505af415801561229f573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906122c89190614150565b6130af565b9050806040516020016122e0919061498b565b6040516020818303038152906040529450505050505b919050565b61230433610f31565b61230d57600080fd5b60005b818110156123c357600060126000858481518110612357577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080806123bb906152a3565b915050612310565b505050565b6123d182610f47565b6123e2816123dd6129b6565b612db1565b6123ec8383612f2f565b505050565b6123fa33610f31565b61240357600080fd5b60005b818110156124b95760016012600085848151811061244d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080806124b1906152a3565b915050612406565b505050565b3373ffffffffffffffffffffffffffffffffffffffff166124de84611209565b73ffffffffffffffffffffffffffffffffffffffff161480156125015750600481105b61250a57600080fd5b806010600085815260200190815260200160002060030181905550816010600085815260200190815260200160002060020160006101000a81548160ff021916908315150217905550505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6125f533610f31565b6125fe57600080fd5b88601160006101000a81548160ff02191690831515021790555087601160016101000a81548160ff0219169083151502179055508660088190555085600b908051906020019061264f929190613aa1565b5084600c9080519060200190612666929190613aa1565b5083600d60006101000a81548160ff02191690831515021790555082600e9080519060200190612697929190613aa1565b508160098190555080600a81905550505050505050505050565b60126020528060005260406000206000915054906101000a900460ff1681565b600a5481565b6126e033610f31565b6126e957600080fd5b6126f3600761326d565b6040518060c00160405280831515815260200186815260200160011515815260200185815260200184815260200182815250601060006127336007613011565b815260200190815260200160002060008201518160000160006101000a81548160ff021916908315150217905550602082015181600101908051906020019061277d929190613aa1565b5060408201518160020160006101000a81548160ff0219169083151502179055506060820151816003015560808201518160040190805190602001906127c4929190613aa1565b5060a08201518160050190805190602001906127e1929190613aa1565b509050505050505050565b6127f533610f31565b6127fe57600080fd5b816010600088815260200190815260200160002060000160006101000a81548160ff02191690831515021790555084601060008881526020019081526020016000206001019080519060200190612856929190613aa1565b508360106000888152602001908152602001600020600301819055508260106000888152602001908152602001600020600401908051906020019061289c929190613aa1565b50806010600088815260200190815260200160002060050190805190602001906128c7929190613aa1565b50505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806129af57506129ae82613283565b5b9050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612a3183611209565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612a82826128d0565b612ac1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab890614d76565b60405180910390fd5b6000612acc83611209565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612b3b57508373ffffffffffffffffffffffffffffffffffffffff16612b2384610ca6565b73ffffffffffffffffffffffffffffffffffffffff16145b80612b4c5750612b4b8185612558565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612b7582611209565b73ffffffffffffffffffffffffffffffffffffffff1614612bcb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bc290614e36565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612c3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3290614d36565b60405180910390fd5b612c46838383613365565b612c516000826129be565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ca19190615122565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612cf89190615041565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b612dbb8282611616565b612e4a57612de08173ffffffffffffffffffffffffffffffffffffffff16601461336a565b612dee8360001c602061336a565b604051602001612dff9291906149ad565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e419190614b3e565b60405180910390fd5b5050565b612e588282611616565b612f2b5760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612ed06129b6565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b612f398282611616565b1561300d5760006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612fb26129b6565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600081600001549050919050565b613039828260405180602001604052806000815250613664565b5050565b6000818361304b9190615097565b905092915050565b61305e848484612b55565b61306a848484846136bf565b6130a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130a090614cf6565b60405180910390fd5b50505050565b606060008251905060008114156130d85760405180602001604052806000815250915050613268565b600060036002836130e99190615041565b6130f39190615097565b60046130ff91906150c8565b905060006020826131109190615041565b67ffffffffffffffff81111561314f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156131815781602001600182028036833780820191505090505b50905060006040518060600160405280604081526020016158e4604091399050600181016020830160005b868110156132255760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b905080845260048401935050506131ac565b50600386066001811461323f576002811461324f5761325a565b613d3d60f01b600283035261325a565b603d60f81b60018303525b508484525050819450505050505b919050565b6001816000016000828254019250508190555050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061334e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061335e575061335d82613856565b5b9050919050565b505050565b60606000600283600261337d91906150c8565b6133879190615041565b67ffffffffffffffff8111156133c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156133f85781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613456577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106134e0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261352091906150c8565b61352a9190615041565b90505b6001811115613616577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613592577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b8282815181106135cf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061360f90615216565b905061352d565b506000841461365a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161365190614cd6565b60405180910390fd5b8091505092915050565b61366e83836138c0565b61367b60008484846136bf565b6136ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136b190614cf6565b60405180910390fd5b505050565b60006136e08473ffffffffffffffffffffffffffffffffffffffff16613a8e565b15613849578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026137096129b6565b8786866040518563ffffffff1660e01b815260040161372b9493929190614a24565b602060405180830381600087803b15801561374557600080fd5b505af192505050801561377657506040513d601f19601f820116820180604052508101906137739190614127565b60015b6137f9573d80600081146137a6576040519150601f19603f3d011682016040523d82523d6000602084013e6137ab565b606091505b506000815114156137f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137e890614cf6565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061384e565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613930576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161392790614df6565b60405180910390fd5b613939816128d0565b15613979576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161397090614d16565b60405180910390fd5b61398560008383613365565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546139d59190615041565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b828054613aad90615240565b90600052602060002090601f016020900481019282613acf5760008555613b16565b82601f10613ae857805160ff1916838001178555613b16565b82800160010185558215613b16579182015b82811115613b15578251825591602001919060010190613afa565b5b509050613b239190613b27565b5090565b5b80821115613b40576000816000905550600101613b28565b5090565b6000613b57613b5284614f11565b614eec565b90508083825260208201905082856020860282011115613b7657600080fd5b60005b85811015613ba65781613b8c8882613c6a565b845260208401935060208301925050600181019050613b79565b5050509392505050565b6000613bc3613bbe84614f3d565b614eec565b905082815260208101848484011115613bdb57600080fd5b613be68482856151d4565b509392505050565b6000613c01613bfc84614f6e565b614eec565b905082815260208101848484011115613c1957600080fd5b613c248482856151d4565b509392505050565b6000613c3f613c3a84614f6e565b614eec565b905082815260208101848484011115613c5757600080fd5b613c628482856151e3565b509392505050565b600081359050613c7981615870565b92915050565b600082601f830112613c9057600080fd5b8135613ca0848260208601613b44565b91505092915050565b600081359050613cb881615887565b92915050565b600081359050613ccd8161589e565b92915050565b600081359050613ce2816158b5565b92915050565b600081519050613cf7816158b5565b92915050565b600082601f830112613d0e57600080fd5b8135613d1e848260208601613bb0565b91505092915050565b600082601f830112613d3857600080fd5b8135613d48848260208601613bee565b91505092915050565b600082601f830112613d6257600080fd5b8151613d72848260208601613c2c565b91505092915050565b600081359050613d8a816158cc565b92915050565b600060208284031215613da257600080fd5b6000613db084828501613c6a565b91505092915050565b60008060408385031215613dcc57600080fd5b6000613dda85828601613c6a565b9250506020613deb85828601613c6a565b9150509250929050565b600080600060608486031215613e0a57600080fd5b6000613e1886828701613c6a565b9350506020613e2986828701613c6a565b9250506040613e3a86828701613d7b565b9150509250925092565b60008060008060808587031215613e5a57600080fd5b6000613e6887828801613c6a565b9450506020613e7987828801613c6a565b9350506040613e8a87828801613d7b565b925050606085013567ffffffffffffffff811115613ea757600080fd5b613eb387828801613cfd565b91505092959194509250565b60008060408385031215613ed257600080fd5b6000613ee085828601613c6a565b9250506020613ef185828601613ca9565b9150509250929050565b60008060408385031215613f0e57600080fd5b6000613f1c85828601613c6a565b9250506020613f2d85828601613d7b565b9150509250929050565b60008060408385031215613f4a57600080fd5b600083013567ffffffffffffffff811115613f6457600080fd5b613f7085828601613c7f565b9250506020613f8185828601613d7b565b9150509250929050565b60008060008060008060008060006101208a8c031215613faa57600080fd5b6000613fb88c828d01613ca9565b9950506020613fc98c828d01613ca9565b9850506040613fda8c828d01613d7b565b97505060608a013567ffffffffffffffff811115613ff757600080fd5b6140038c828d01613d27565b96505060808a013567ffffffffffffffff81111561402057600080fd5b61402c8c828d01613d27565b95505060a061403d8c828d01613ca9565b94505060c08a013567ffffffffffffffff81111561405a57600080fd5b6140668c828d01613d27565b93505060e06140778c828d01613d7b565b9250506101006140898c828d01613d7b565b9150509295985092959850929598565b6000602082840312156140ab57600080fd5b60006140b984828501613cbe565b91505092915050565b600080604083850312156140d557600080fd5b60006140e385828601613cbe565b92505060206140f485828601613c6a565b9150509250929050565b60006020828403121561411057600080fd5b600061411e84828501613cd3565b91505092915050565b60006020828403121561413957600080fd5b600061414784828501613ce8565b91505092915050565b60006020828403121561416257600080fd5b600082015167ffffffffffffffff81111561417c57600080fd5b61418884828501613d51565b91505092915050565b600080600080600060a086880312156141a957600080fd5b600086013567ffffffffffffffff8111156141c357600080fd5b6141cf88828901613d27565b95505060206141e088828901613d7b565b945050604086013567ffffffffffffffff8111156141fd57600080fd5b61420988828901613d27565b935050606061421a88828901613ca9565b925050608086013567ffffffffffffffff81111561423757600080fd5b61424388828901613d27565b9150509295509295909350565b60006020828403121561426257600080fd5b600061427084828501613d7b565b91505092915050565b6000806040838503121561428c57600080fd5b600061429a85828601613d7b565b92505060206142ab85828601613c6a565b9150509250929050565b6000806000606084860312156142ca57600080fd5b60006142d886828701613d7b565b93505060206142e986828701613ca9565b92505060406142fa86828701613d7b565b9150509250925092565b60008060008060008060c0878903121561431d57600080fd5b600061432b89828a01613d7b565b965050602087013567ffffffffffffffff81111561434857600080fd5b61435489828a01613d27565b955050604061436589828a01613d7b565b945050606087013567ffffffffffffffff81111561438257600080fd5b61438e89828a01613d27565b935050608061439f89828a01613ca9565b92505060a087013567ffffffffffffffff8111156143bc57600080fd5b6143c889828a01613d27565b9150509295509295509295565b60006143e183836148fb565b60208301905092915050565b6143f681615156565b82525050565b600061440782614fc4565b6144118185614ff2565b935061441c83614f9f565b8060005b8381101561444d57815161443488826143d5565b975061443f83614fe5565b925050600181019050614420565b5085935050505092915050565b61446381615168565b82525050565b61447281615168565b82525050565b61448181615174565b82525050565b600061449282614fcf565b61449c8185615003565b93506144ac8185602086016151e3565b6144b5816153b2565b840191505092915050565b60006144cb82614fda565b6144d58185615014565b93506144e58185602086016151e3565b6144ee816153b2565b840191505092915050565b600061450482614fda565b61450e8185615025565b935061451e8185602086016151e3565b614527816153b2565b840191505092915050565b600061453d82614fda565b6145478185615036565b93506145578185602086016151e3565b80840191505092915050565b6000815461457081615240565b61457a8186615025565b9450600182166000811461459557600181146145a7576145da565b60ff19831686526020860193506145da565b6145b085614faf565b60005b838110156145d2578154818901526001820191506020810190506145b3565b808801955050505b50505092915050565b600081546145f081615240565b6145fa8186615036565b94506001821660008114614615576001811461462657614659565b60ff19831686528186019350614659565b61462f85614faf565b60005b8381101561465157815481890152600182019150602081019050614632565b838801955050505b50505092915050565b600061466f602083615014565b915061467a826153c3565b602082019050919050565b6000614692603283615014565b915061469d826153ec565b604082019050919050565b60006146b5601c83615014565b91506146c08261543b565b602082019050919050565b60006146d8602483615014565b91506146e382615464565b604082019050919050565b60006146fb601983615014565b9150614706826154b3565b602082019050919050565b600061471e602c83615014565b9150614729826154dc565b604082019050919050565b6000614741603883615014565b915061474c8261552b565b604082019050919050565b6000614764602a83615014565b915061476f8261557a565b604082019050919050565b6000614787602983615014565b9150614792826155c9565b604082019050919050565b60006147aa602083615014565b91506147b582615618565b602082019050919050565b60006147cd602c83615014565b91506147d882615641565b604082019050919050565b60006147f0602983615014565b91506147fb82615690565b604082019050919050565b6000614813602183615014565b915061481e826156df565b604082019050919050565b6000614836601d83615036565b91506148418261572e565b601d82019050919050565b6000614859603183615014565b915061486482615757565b604082019050919050565b600061487c601783615036565b9150614887826157a6565b601782019050919050565b600061489f601a83615036565b91506148aa826157cf565b601a82019050919050565b60006148c2601183615036565b91506148cd826157f8565b601182019050919050565b60006148e5602f83615014565b91506148f082615821565b604082019050919050565b614904816151ca565b82525050565b614913816151ca565b82525050565b614922816151ca565b82525050565b614939614934826151ca565b6152ec565b82525050565b600061494b82856145e3565b91506149578284614532565b91508190509392505050565b600061496f82856145e3565b915061497b8284614928565b6020820191508190509392505050565b600061499682614829565b91506149a28284614532565b915081905092915050565b60006149b88261486f565b91506149c48285614532565b91506149cf826148b5565b91506149db8284614532565b91508190509392505050565b60006149f282614892565b91506149fe8284614532565b915081905092915050565b6000602082019050614a1e60008301846143ed565b92915050565b6000608082019050614a3960008301876143ed565b614a4660208301866143ed565b614a53604083018561490a565b8181036060830152614a658184614487565b905095945050505050565b60006020820190508181036000830152614a8a81846143fc565b905092915050565b6000602082019050614aa7600083018461445a565b92915050565b600060c082019050614ac2600083018961445a565b8181036020830152614ad481886144c0565b9050614ae3604083018761445a565b614af0606083018661490a565b8181036080830152614b0281856144c0565b905081810360a0830152614b1681846144c0565b9050979650505050505050565b6000602082019050614b386000830184614478565b92915050565b60006020820190508181036000830152614b5881846144c0565b905092915050565b600060a0820190508181036000830152614b7a81886144f9565b90508181036020830152614b8e8187614563565b90508181036040830152614ba281866144f9565b90508181036060830152614bb681856144f9565b90508181036080830152614bca81846144f9565b90509695505050505050565b60006020820190508181036000830152614bf08184614563565b905092915050565b60006080820190508181036000830152614c128187614563565b90508181036020830152614c268186614563565b9050614c356040830185614469565b614c426060830184614919565b95945050505050565b600060e0820190508181036000830152614c65818a614563565b90508181036020830152614c798189614563565b9050614c886040830188614469565b614c956060830187614919565b614ca26080830186614919565b81810360a0830152614cb48185614563565b905081810360c0830152614cc88184614563565b905098975050505050505050565b60006020820190508181036000830152614cef81614662565b9050919050565b60006020820190508181036000830152614d0f81614685565b9050919050565b60006020820190508181036000830152614d2f816146a8565b9050919050565b60006020820190508181036000830152614d4f816146cb565b9050919050565b60006020820190508181036000830152614d6f816146ee565b9050919050565b60006020820190508181036000830152614d8f81614711565b9050919050565b60006020820190508181036000830152614daf81614734565b9050919050565b60006020820190508181036000830152614dcf81614757565b9050919050565b60006020820190508181036000830152614def8161477a565b9050919050565b60006020820190508181036000830152614e0f8161479d565b9050919050565b60006020820190508181036000830152614e2f816147c0565b9050919050565b60006020820190508181036000830152614e4f816147e3565b9050919050565b60006020820190508181036000830152614e6f81614806565b9050919050565b60006020820190508181036000830152614e8f8161484c565b9050919050565b60006020820190508181036000830152614eaf816148d8565b9050919050565b6000602082019050614ecb6000830184614919565b92915050565b6000602082019050614ee6600083018461490a565b92915050565b6000614ef6614f07565b9050614f028282615272565b919050565b6000604051905090565b600067ffffffffffffffff821115614f2c57614f2b615383565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614f5857614f57615383565b5b614f61826153b2565b9050602081019050919050565b600067ffffffffffffffff821115614f8957614f88615383565b5b614f92826153b2565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061504c826151ca565b9150615057836151ca565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561508c5761508b6152f6565b5b828201905092915050565b60006150a2826151ca565b91506150ad836151ca565b9250826150bd576150bc615325565b5b828204905092915050565b60006150d3826151ca565b91506150de836151ca565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615117576151166152f6565b5b828202905092915050565b600061512d826151ca565b9150615138836151ca565b92508282101561514b5761514a6152f6565b5b828203905092915050565b6000615161826151aa565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156152015780820151818401526020810190506151e6565b83811115615210576000848401525b50505050565b6000615221826151ca565b91506000821415615235576152346152f6565b5b600182039050919050565b6000600282049050600182168061525857607f821691505b6020821081141561526c5761526b615354565b5b50919050565b61527b826153b2565b810181811067ffffffffffffffff8211171561529a57615299615383565b5b80604052505050565b60006152ae826151ca565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156152e1576152e06152f6565b5b600182019050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b61587981615156565b811461588457600080fd5b50565b61589081615168565b811461589b57600080fd5b50565b6158a781615174565b81146158b257600080fd5b50565b6158be8161517e565b81146158c957600080fd5b50565b6158d5816151ca565b81146158e057600080fd5b5056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212204e2c1394dddf0d22dccc006af19d8bf98ed7289bcc6b66132d65b101840b6c9564736f6c6343000804003368747470733a2f2f6170692e7468656469676974616c617263686976652e6172742f696d6167652f000000000000000000000000abe35bf0b0a4b1cf2afd155b610f70e2ae91e05c

Deployed Bytecode

0x6080604052600436106102715760003560e01c8063953c81331161014f578063c43fc497116100c1578063e985e9c51161007a578063e985e9c514610998578063eb4ae22d146109d5578063efeb4190146109fe578063f3623d9914610a3b578063fc9c6a4814610a66578063fcb781d814610a8f57610271565b8063c43fc4971461088c578063c87b56dd146108b7578063d4445807146108f4578063d547741f1461091d578063ded50cbf14610946578063df08ed101461096f57610271565b8063a0712d6811610113578063a0712d681461079d578063a217fddf146107b9578063a22cb465146107e4578063ab0bcc411461080d578063acdae89914610838578063b88d4fde1461086357610271565b8063953c81331461069d57806395d89b41146106df5780639abc83201461070a5780639ebc962114610735578063a035b1fe1461077257610271565b8063379c5131116101e857806365e4e1c0116101ac57806365e4e1c01461057957806370a08231146105a45780637284e416146105e15780637bffd7551461060c5780638970d84c1461063557806391d148541461066057610271565b8063379c5131146104a15780633ccfd60b146104de5780633d081e96146104e857806342842e0e146105135780636352211e1461053c57610271565b80630bf82da41161023a5780630bf82da41461038157806323b872dd146103ac57806324851914146103d5578063248a9ca3146104125780632f2ff15d1461044f57806336568abe1461047857610271565b8062923f9e1461027657806301ffc9a7146102b357806306fdde03146102f0578063081812fc1461031b578063095ea7b314610358575b600080fd5b34801561028257600080fd5b5061029d60048036038101906102989190614250565b610ab8565b6040516102aa9190614a92565b60405180910390f35b3480156102bf57600080fd5b506102da60048036038101906102d591906140fe565b610aca565b6040516102e79190614a92565b60405180910390f35b3480156102fc57600080fd5b50610305610c14565b6040516103129190614b3e565b60405180910390f35b34801561032757600080fd5b50610342600480360381019061033d9190614250565b610ca6565b60405161034f9190614a09565b60405180910390f35b34801561036457600080fd5b5061037f600480360381019061037a9190613efb565b610d2b565b005b34801561038d57600080fd5b50610396610e43565b6040516103a39190614b3e565b60405180910390f35b3480156103b857600080fd5b506103d360048036038101906103ce9190613df5565b610ed1565b005b3480156103e157600080fd5b506103fc60048036038101906103f79190613d90565b610f31565b6040516104099190614a92565b60405180910390f35b34801561041e57600080fd5b5061043960048036038101906104349190614099565b610f47565b6040516104469190614b23565b60405180910390f35b34801561045b57600080fd5b50610476600480360381019061047191906140c2565b610f67565b005b34801561048457600080fd5b5061049f600480360381019061049a91906140c2565b610f90565b005b3480156104ad57600080fd5b506104c860048036038101906104c39190613d90565b611013565b6040516104d59190614a70565b60405180910390f35b6104e6611162565b005b3480156104f457600080fd5b506104fd6111d6565b60405161050a9190614a92565b60405180910390f35b34801561051f57600080fd5b5061053a60048036038101906105359190613df5565b6111e9565b005b34801561054857600080fd5b50610563600480360381019061055e9190614250565b611209565b6040516105709190614a09565b60405180910390f35b34801561058557600080fd5b5061058e6112bb565b60405161059b9190614a70565b60405180910390f35b3480156105b057600080fd5b506105cb60048036038101906105c69190613d90565b611465565b6040516105d89190614ed1565b60405180910390f35b3480156105ed57600080fd5b506105f661151d565b6040516106039190614b3e565b60405180910390f35b34801561061857600080fd5b50610633600480360381019061062e9190614279565b6115ab565b005b34801561064157600080fd5b5061064a61160a565b6040516106579190614ed1565b60405180910390f35b34801561066c57600080fd5b50610687600480360381019061068291906140c2565b611616565b6040516106949190614a92565b60405180910390f35b3480156106a957600080fd5b506106c460048036038101906106bf9190614250565b611681565b6040516106d696959493929190614aad565b60405180910390f35b3480156106eb57600080fd5b506106f461186f565b6040516107019190614b3e565b60405180910390f35b34801561071657600080fd5b5061071f611901565b60405161072c9190614b3e565b60405180910390f35b34801561074157600080fd5b5061075c60048036038101906107579190614279565b61198f565b6040516107699190614ed1565b60405180910390f35b34801561077e57600080fd5b506107876119b4565b6040516107949190614ed1565b60405180910390f35b6107b760048036038101906107b29190614250565b6119ba565b005b3480156107c557600080fd5b506107ce611b82565b6040516107db9190614b23565b60405180910390f35b3480156107f057600080fd5b5061080b60048036038101906108069190613ebf565b611b89565b005b34801561081957600080fd5b50610822611d0a565b60405161082f9190614a92565b60405180910390f35b34801561084457600080fd5b5061084d611d1d565b60405161085a9190614a92565b60405180910390f35b34801561086f57600080fd5b5061088a60048036038101906108859190613e44565b611d30565b005b34801561089857600080fd5b506108a1611d92565b6040516108ae9190614ed1565b60405180910390f35b3480156108c357600080fd5b506108de60048036038101906108d99190614250565b611d98565b6040516108eb9190614b3e565b60405180910390f35b34801561090057600080fd5b5061091b60048036038101906109169190613f37565b6122fb565b005b34801561092957600080fd5b50610944600480360381019061093f91906140c2565b6123c8565b005b34801561095257600080fd5b5061096d60048036038101906109689190613f37565b6123f1565b005b34801561097b57600080fd5b50610996600480360381019061099191906142b5565b6124be565b005b3480156109a457600080fd5b506109bf60048036038101906109ba9190613db9565b612558565b6040516109cc9190614a92565b60405180910390f35b3480156109e157600080fd5b506109fc60048036038101906109f79190613f8b565b6125ec565b005b348015610a0a57600080fd5b50610a256004803603810190610a209190613d90565b6126b1565b604051610a329190614a92565b60405180910390f35b348015610a4757600080fd5b50610a506126d1565b604051610a5d9190614ed1565b60405180910390f35b348015610a7257600080fd5b50610a8d6004803603810190610a889190614191565b6126d7565b005b348015610a9b57600080fd5b50610ab66004803603810190610ab19190614304565b6127ec565b005b6000610ac3826128d0565b9050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b9557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610bfd57507f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610c0d5750610c0c8261293c565b5b9050919050565b606060008054610c2390615240565b80601f0160208091040260200160405190810160405280929190818152602001828054610c4f90615240565b8015610c9c5780601f10610c7157610100808354040283529160200191610c9c565b820191906000526020600020905b815481529060010190602001808311610c7f57829003601f168201915b5050505050905090565b6000610cb1826128d0565b610cf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce790614e16565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610d3682611209565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610da7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d9e90614e56565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610dc66129b6565b73ffffffffffffffffffffffffffffffffffffffff161480610df55750610df481610def6129b6565b612558565b5b610e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2b90614d96565b60405180910390fd5b610e3e83836129be565b505050565b600c8054610e5090615240565b80601f0160208091040260200160405190810160405280929190818152602001828054610e7c90615240565b8015610ec95780601f10610e9e57610100808354040283529160200191610ec9565b820191906000526020600020905b815481529060010190602001808311610eac57829003601f168201915b505050505081565b610ee2610edc6129b6565b82612a77565b610f21576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1890614e76565b60405180910390fd5b610f2c838383612b55565b505050565b6000610f406000801b83611616565b9050919050565b600060066000838152602001908152602001600020600101549050919050565b610f7082610f47565b610f8181610f7c6129b6565b612db1565b610f8b8383612e4e565b505050565b610f986129b6565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611005576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ffc90614e96565b60405180910390fd5b61100f8282612f2f565b5050565b606061101e82611465565b67ffffffffffffffff81111561105d577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405190808252806020026020018201604052801561108b5781602001602082028036833780820191505090505b509050600080600190505b6110a06007613011565b811161115b576110af816128d0565b80156110ee57508373ffffffffffffffffffffffffffffffffffffffff166110d682611209565b73ffffffffffffffffffffffffffffffffffffffff16145b15611148578083838151811061112d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508180611144906152a3565b9250505b8080611153906152a3565b915050611096565b5050919050565b61116b33610f31565b61117457600080fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050506111d457600080fd5b565b601160019054906101000a900460ff1681565b61120483838360405180602001604052806000815250611d30565b505050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a990614dd6565b60405180910390fd5b80915050919050565b6060600080600190505b6112cf6007613011565b8111611332576010600082815260200190815260200160002060000160009054906101000a900460ff16801561130b575061130981610ab8565b155b1561131f57818061131b906152a3565b9250505b808061132a906152a3565b9150506112c5565b508067ffffffffffffffff811115611373577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156113a15781602001602082028036833780820191505090505b509150600080600190505b6113b66007613011565b811161145f576010600082815260200190815260200160002060000160009054906101000a900460ff1680156113f257506113f081610ab8565b155b1561144c5780848381518110611431577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508180611448906152a3565b9250505b8080611457906152a3565b9150506113ac565b50505090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156114d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114cd90614db6565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600e805461152a90615240565b80601f016020809104026020016040519081016040528092919081815260200182805461155690615240565b80156115a35780601f10611578576101008083540402835291602001916115a3565b820191906000526020600020905b81548152906001019060200180831161158657829003601f168201915b505050505081565b6115b433610f31565b6115bd57600080fd5b6115c6826128d0565b1580156115f357506010600083815260200190815260200160002060000160009054906101000a900460ff165b6115fc57600080fd5b611606818361301f565b5050565b60078060000154905081565b60006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60106020528060005260406000206000915090508060000160009054906101000a900460ff16908060010180546116b790615240565b80601f01602080910402602001604051908101604052809291908181526020018280546116e390615240565b80156117305780601f1061170557610100808354040283529160200191611730565b820191906000526020600020905b81548152906001019060200180831161171357829003601f168201915b5050505050908060020160009054906101000a900460ff169080600301549080600401805461175e90615240565b80601f016020809104026020016040519081016040528092919081815260200182805461178a90615240565b80156117d75780601f106117ac576101008083540402835291602001916117d7565b820191906000526020600020905b8154815290600101906020018083116117ba57829003601f168201915b5050505050908060050180546117ec90615240565b80601f016020809104026020016040519081016040528092919081815260200182805461181890615240565b80156118655780601f1061183a57610100808354040283529160200191611865565b820191906000526020600020905b81548152906001019060200180831161184857829003601f168201915b5050505050905086565b60606001805461187e90615240565b80601f01602080910402602001604051908101604052809291908181526020018280546118aa90615240565b80156118f75780601f106118cc576101008083540402835291602001916118f7565b820191906000526020600020905b8154815290600101906020018083116118da57829003601f168201915b5050505050905090565b600b805461190e90615240565b80601f016020809104026020016040519081016040528092919081815260200182805461193a90615240565b80156119875780601f1061195c57610100808354040283529160200191611987565b820191906000526020600020905b81548152906001019060200180831161196a57829003601f168201915b505050505081565b6013602052816000526040600020602052806000526040600020600091509150505481565b60085481565b601160009054906101000a900460ff1680156119dc57506119da816128d0565b155b8015611a0857506010600082815260200190815260200160002060000160009054906101000a900460ff165b8015611a15575060085434145b611a1e57600080fd5b601160019054906101000a900460ff1615611a8a57601260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16611a8957600080fd5b5b6000611aa1600a548361303d90919063ffffffff16565b905060095460016013600084815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611b039190615041565b1115611b0e57600080fd5b611b18338361301f565b6013600082815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190611b79906152a3565b91905055505050565b6000801b81565b611b916129b6565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611bff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bf690614d56565b60405180910390fd5b8060056000611c0c6129b6565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611cb96129b6565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611cfe9190614a92565b60405180910390a35050565b601160009054906101000a900460ff1681565b600d60009054906101000a900460ff1681565b611d41611d3b6129b6565b83612a77565b611d80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7790614e76565b60405180910390fd5b611d8c84848484613053565b50505050565b60095481565b6060600d60009054906101000a900460ff16611dd857600b82604051602001611dc2929190614963565b60405160208183030381529060405290506122f6565b60007364cc9e72e43957c8d39f43bf7d087bf21a9485a063d88d08b8601060008681526020019081526020016000206004016040518263ffffffff1660e01b8152600401611e269190614bd6565b60006040518083038186803b158015611e3e57600080fd5b505af4158015611e52573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611e7b9190614150565b905060606010600085815260200190815260200160002060020160009054906101000a900460ff16611fb657611f907364cc9e72e43957c8d39f43bf7d087bf21a9485a06333ef966a600b60106000898152602001908152602001600020600101601060008a815260200190815260200160002060020160009054906101000a900460ff16601060008b8152602001908152602001600020600301546040518563ffffffff1660e01b8152600401611f369493929190614bf8565b60006040518083038186803b158015611f4e57600080fd5b505af4158015611f62573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611f8b9190614150565b6130af565b604051602001611fa091906149e7565b60405160208183030381529060405290506120f1565b6120cf7364cc9e72e43957c8d39f43bf7d087bf21a9485a063ce298d20600b60106000898152602001908152602001600020600101601060008a815260200190815260200160002060020160009054906101000a900460ff16601060008b8152602001908152602001600020600301548a601060008d8152602001908152602001600020600401601060008e81526020019081526020016000206005016040518863ffffffff1660e01b81526004016120759796959493929190614c4b565b60006040518083038186803b15801561208d57600080fd5b505af41580156120a1573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906120ca9190614150565b6130af565b6040516020016120df91906149e7565b60405160208183030381529060405290505b6000600c7364cc9e72e43957c8d39f43bf7d087bf21a9485a0636900a3ae876040518263ffffffff1660e01b815260040161212c9190614eb6565b60006040518083038186803b15801561214457600080fd5b505af4158015612158573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906121819190614150565b60405160200161219292919061493f565b604051602081830303815290604052905060006122cd7364cc9e72e43957c8d39f43bf7d087bf21a9485a063813e2ddd7364cc9e72e43957c8d39f43bf7d087bf21a9485a063e725f8778a6040518263ffffffff1660e01b81526004016121f99190614eb6565b60006040518083038186803b15801561221157600080fd5b505af4158015612225573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061224e9190614150565b600e86888a6040518663ffffffff1660e01b8152600401612273959493929190614b60565b60006040518083038186803b15801561228b57600080fd5b505af415801561229f573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906122c89190614150565b6130af565b9050806040516020016122e0919061498b565b6040516020818303038152906040529450505050505b919050565b61230433610f31565b61230d57600080fd5b60005b818110156123c357600060126000858481518110612357577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080806123bb906152a3565b915050612310565b505050565b6123d182610f47565b6123e2816123dd6129b6565b612db1565b6123ec8383612f2f565b505050565b6123fa33610f31565b61240357600080fd5b60005b818110156124b95760016012600085848151811061244d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080806124b1906152a3565b915050612406565b505050565b3373ffffffffffffffffffffffffffffffffffffffff166124de84611209565b73ffffffffffffffffffffffffffffffffffffffff161480156125015750600481105b61250a57600080fd5b806010600085815260200190815260200160002060030181905550816010600085815260200190815260200160002060020160006101000a81548160ff021916908315150217905550505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6125f533610f31565b6125fe57600080fd5b88601160006101000a81548160ff02191690831515021790555087601160016101000a81548160ff0219169083151502179055508660088190555085600b908051906020019061264f929190613aa1565b5084600c9080519060200190612666929190613aa1565b5083600d60006101000a81548160ff02191690831515021790555082600e9080519060200190612697929190613aa1565b508160098190555080600a81905550505050505050505050565b60126020528060005260406000206000915054906101000a900460ff1681565b600a5481565b6126e033610f31565b6126e957600080fd5b6126f3600761326d565b6040518060c00160405280831515815260200186815260200160011515815260200185815260200184815260200182815250601060006127336007613011565b815260200190815260200160002060008201518160000160006101000a81548160ff021916908315150217905550602082015181600101908051906020019061277d929190613aa1565b5060408201518160020160006101000a81548160ff0219169083151502179055506060820151816003015560808201518160040190805190602001906127c4929190613aa1565b5060a08201518160050190805190602001906127e1929190613aa1565b509050505050505050565b6127f533610f31565b6127fe57600080fd5b816010600088815260200190815260200160002060000160006101000a81548160ff02191690831515021790555084601060008881526020019081526020016000206001019080519060200190612856929190613aa1565b508360106000888152602001908152602001600020600301819055508260106000888152602001908152602001600020600401908051906020019061289c929190613aa1565b50806010600088815260200190815260200160002060050190805190602001906128c7929190613aa1565b50505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806129af57506129ae82613283565b5b9050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612a3183611209565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612a82826128d0565b612ac1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ab890614d76565b60405180910390fd5b6000612acc83611209565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612b3b57508373ffffffffffffffffffffffffffffffffffffffff16612b2384610ca6565b73ffffffffffffffffffffffffffffffffffffffff16145b80612b4c5750612b4b8185612558565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612b7582611209565b73ffffffffffffffffffffffffffffffffffffffff1614612bcb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bc290614e36565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612c3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c3290614d36565b60405180910390fd5b612c46838383613365565b612c516000826129be565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ca19190615122565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612cf89190615041565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b612dbb8282611616565b612e4a57612de08173ffffffffffffffffffffffffffffffffffffffff16601461336a565b612dee8360001c602061336a565b604051602001612dff9291906149ad565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e419190614b3e565b60405180910390fd5b5050565b612e588282611616565b612f2b5760016006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612ed06129b6565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b612f398282611616565b1561300d5760006006600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550612fb26129b6565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b600081600001549050919050565b613039828260405180602001604052806000815250613664565b5050565b6000818361304b9190615097565b905092915050565b61305e848484612b55565b61306a848484846136bf565b6130a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130a090614cf6565b60405180910390fd5b50505050565b606060008251905060008114156130d85760405180602001604052806000815250915050613268565b600060036002836130e99190615041565b6130f39190615097565b60046130ff91906150c8565b905060006020826131109190615041565b67ffffffffffffffff81111561314f577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156131815781602001600182028036833780820191505090505b50905060006040518060600160405280604081526020016158e4604091399050600181016020830160005b868110156132255760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b905080845260048401935050506131ac565b50600386066001811461323f576002811461324f5761325a565b613d3d60f01b600283035261325a565b603d60f81b60018303525b508484525050819450505050505b919050565b6001816000016000828254019250508190555050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061334e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061335e575061335d82613856565b5b9050919050565b505050565b60606000600283600261337d91906150c8565b6133879190615041565b67ffffffffffffffff8111156133c6577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156133f85781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110613456577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106134e0577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506000600184600261352091906150c8565b61352a9190615041565b90505b6001811115613616577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110613592577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b1a60f81b8282815181106135cf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c94508061360f90615216565b905061352d565b506000841461365a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161365190614cd6565b60405180910390fd5b8091505092915050565b61366e83836138c0565b61367b60008484846136bf565b6136ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136b190614cf6565b60405180910390fd5b505050565b60006136e08473ffffffffffffffffffffffffffffffffffffffff16613a8e565b15613849578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026137096129b6565b8786866040518563ffffffff1660e01b815260040161372b9493929190614a24565b602060405180830381600087803b15801561374557600080fd5b505af192505050801561377657506040513d601f19601f820116820180604052508101906137739190614127565b60015b6137f9573d80600081146137a6576040519150601f19603f3d011682016040523d82523d6000602084013e6137ab565b606091505b506000815114156137f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137e890614cf6565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061384e565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613930576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161392790614df6565b60405180910390fd5b613939816128d0565b15613979576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161397090614d16565b60405180910390fd5b61398560008383613365565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546139d59190615041565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b828054613aad90615240565b90600052602060002090601f016020900481019282613acf5760008555613b16565b82601f10613ae857805160ff1916838001178555613b16565b82800160010185558215613b16579182015b82811115613b15578251825591602001919060010190613afa565b5b509050613b239190613b27565b5090565b5b80821115613b40576000816000905550600101613b28565b5090565b6000613b57613b5284614f11565b614eec565b90508083825260208201905082856020860282011115613b7657600080fd5b60005b85811015613ba65781613b8c8882613c6a565b845260208401935060208301925050600181019050613b79565b5050509392505050565b6000613bc3613bbe84614f3d565b614eec565b905082815260208101848484011115613bdb57600080fd5b613be68482856151d4565b509392505050565b6000613c01613bfc84614f6e565b614eec565b905082815260208101848484011115613c1957600080fd5b613c248482856151d4565b509392505050565b6000613c3f613c3a84614f6e565b614eec565b905082815260208101848484011115613c5757600080fd5b613c628482856151e3565b509392505050565b600081359050613c7981615870565b92915050565b600082601f830112613c9057600080fd5b8135613ca0848260208601613b44565b91505092915050565b600081359050613cb881615887565b92915050565b600081359050613ccd8161589e565b92915050565b600081359050613ce2816158b5565b92915050565b600081519050613cf7816158b5565b92915050565b600082601f830112613d0e57600080fd5b8135613d1e848260208601613bb0565b91505092915050565b600082601f830112613d3857600080fd5b8135613d48848260208601613bee565b91505092915050565b600082601f830112613d6257600080fd5b8151613d72848260208601613c2c565b91505092915050565b600081359050613d8a816158cc565b92915050565b600060208284031215613da257600080fd5b6000613db084828501613c6a565b91505092915050565b60008060408385031215613dcc57600080fd5b6000613dda85828601613c6a565b9250506020613deb85828601613c6a565b9150509250929050565b600080600060608486031215613e0a57600080fd5b6000613e1886828701613c6a565b9350506020613e2986828701613c6a565b9250506040613e3a86828701613d7b565b9150509250925092565b60008060008060808587031215613e5a57600080fd5b6000613e6887828801613c6a565b9450506020613e7987828801613c6a565b9350506040613e8a87828801613d7b565b925050606085013567ffffffffffffffff811115613ea757600080fd5b613eb387828801613cfd565b91505092959194509250565b60008060408385031215613ed257600080fd5b6000613ee085828601613c6a565b9250506020613ef185828601613ca9565b9150509250929050565b60008060408385031215613f0e57600080fd5b6000613f1c85828601613c6a565b9250506020613f2d85828601613d7b565b9150509250929050565b60008060408385031215613f4a57600080fd5b600083013567ffffffffffffffff811115613f6457600080fd5b613f7085828601613c7f565b9250506020613f8185828601613d7b565b9150509250929050565b60008060008060008060008060006101208a8c031215613faa57600080fd5b6000613fb88c828d01613ca9565b9950506020613fc98c828d01613ca9565b9850506040613fda8c828d01613d7b565b97505060608a013567ffffffffffffffff811115613ff757600080fd5b6140038c828d01613d27565b96505060808a013567ffffffffffffffff81111561402057600080fd5b61402c8c828d01613d27565b95505060a061403d8c828d01613ca9565b94505060c08a013567ffffffffffffffff81111561405a57600080fd5b6140668c828d01613d27565b93505060e06140778c828d01613d7b565b9250506101006140898c828d01613d7b565b9150509295985092959850929598565b6000602082840312156140ab57600080fd5b60006140b984828501613cbe565b91505092915050565b600080604083850312156140d557600080fd5b60006140e385828601613cbe565b92505060206140f485828601613c6a565b9150509250929050565b60006020828403121561411057600080fd5b600061411e84828501613cd3565b91505092915050565b60006020828403121561413957600080fd5b600061414784828501613ce8565b91505092915050565b60006020828403121561416257600080fd5b600082015167ffffffffffffffff81111561417c57600080fd5b61418884828501613d51565b91505092915050565b600080600080600060a086880312156141a957600080fd5b600086013567ffffffffffffffff8111156141c357600080fd5b6141cf88828901613d27565b95505060206141e088828901613d7b565b945050604086013567ffffffffffffffff8111156141fd57600080fd5b61420988828901613d27565b935050606061421a88828901613ca9565b925050608086013567ffffffffffffffff81111561423757600080fd5b61424388828901613d27565b9150509295509295909350565b60006020828403121561426257600080fd5b600061427084828501613d7b565b91505092915050565b6000806040838503121561428c57600080fd5b600061429a85828601613d7b565b92505060206142ab85828601613c6a565b9150509250929050565b6000806000606084860312156142ca57600080fd5b60006142d886828701613d7b565b93505060206142e986828701613ca9565b92505060406142fa86828701613d7b565b9150509250925092565b60008060008060008060c0878903121561431d57600080fd5b600061432b89828a01613d7b565b965050602087013567ffffffffffffffff81111561434857600080fd5b61435489828a01613d27565b955050604061436589828a01613d7b565b945050606087013567ffffffffffffffff81111561438257600080fd5b61438e89828a01613d27565b935050608061439f89828a01613ca9565b92505060a087013567ffffffffffffffff8111156143bc57600080fd5b6143c889828a01613d27565b9150509295509295509295565b60006143e183836148fb565b60208301905092915050565b6143f681615156565b82525050565b600061440782614fc4565b6144118185614ff2565b935061441c83614f9f565b8060005b8381101561444d57815161443488826143d5565b975061443f83614fe5565b925050600181019050614420565b5085935050505092915050565b61446381615168565b82525050565b61447281615168565b82525050565b61448181615174565b82525050565b600061449282614fcf565b61449c8185615003565b93506144ac8185602086016151e3565b6144b5816153b2565b840191505092915050565b60006144cb82614fda565b6144d58185615014565b93506144e58185602086016151e3565b6144ee816153b2565b840191505092915050565b600061450482614fda565b61450e8185615025565b935061451e8185602086016151e3565b614527816153b2565b840191505092915050565b600061453d82614fda565b6145478185615036565b93506145578185602086016151e3565b80840191505092915050565b6000815461457081615240565b61457a8186615025565b9450600182166000811461459557600181146145a7576145da565b60ff19831686526020860193506145da565b6145b085614faf565b60005b838110156145d2578154818901526001820191506020810190506145b3565b808801955050505b50505092915050565b600081546145f081615240565b6145fa8186615036565b94506001821660008114614615576001811461462657614659565b60ff19831686528186019350614659565b61462f85614faf565b60005b8381101561465157815481890152600182019150602081019050614632565b838801955050505b50505092915050565b600061466f602083615014565b915061467a826153c3565b602082019050919050565b6000614692603283615014565b915061469d826153ec565b604082019050919050565b60006146b5601c83615014565b91506146c08261543b565b602082019050919050565b60006146d8602483615014565b91506146e382615464565b604082019050919050565b60006146fb601983615014565b9150614706826154b3565b602082019050919050565b600061471e602c83615014565b9150614729826154dc565b604082019050919050565b6000614741603883615014565b915061474c8261552b565b604082019050919050565b6000614764602a83615014565b915061476f8261557a565b604082019050919050565b6000614787602983615014565b9150614792826155c9565b604082019050919050565b60006147aa602083615014565b91506147b582615618565b602082019050919050565b60006147cd602c83615014565b91506147d882615641565b604082019050919050565b60006147f0602983615014565b91506147fb82615690565b604082019050919050565b6000614813602183615014565b915061481e826156df565b604082019050919050565b6000614836601d83615036565b91506148418261572e565b601d82019050919050565b6000614859603183615014565b915061486482615757565b604082019050919050565b600061487c601783615036565b9150614887826157a6565b601782019050919050565b600061489f601a83615036565b91506148aa826157cf565b601a82019050919050565b60006148c2601183615036565b91506148cd826157f8565b601182019050919050565b60006148e5602f83615014565b91506148f082615821565b604082019050919050565b614904816151ca565b82525050565b614913816151ca565b82525050565b614922816151ca565b82525050565b614939614934826151ca565b6152ec565b82525050565b600061494b82856145e3565b91506149578284614532565b91508190509392505050565b600061496f82856145e3565b915061497b8284614928565b6020820191508190509392505050565b600061499682614829565b91506149a28284614532565b915081905092915050565b60006149b88261486f565b91506149c48285614532565b91506149cf826148b5565b91506149db8284614532565b91508190509392505050565b60006149f282614892565b91506149fe8284614532565b915081905092915050565b6000602082019050614a1e60008301846143ed565b92915050565b6000608082019050614a3960008301876143ed565b614a4660208301866143ed565b614a53604083018561490a565b8181036060830152614a658184614487565b905095945050505050565b60006020820190508181036000830152614a8a81846143fc565b905092915050565b6000602082019050614aa7600083018461445a565b92915050565b600060c082019050614ac2600083018961445a565b8181036020830152614ad481886144c0565b9050614ae3604083018761445a565b614af0606083018661490a565b8181036080830152614b0281856144c0565b905081810360a0830152614b1681846144c0565b9050979650505050505050565b6000602082019050614b386000830184614478565b92915050565b60006020820190508181036000830152614b5881846144c0565b905092915050565b600060a0820190508181036000830152614b7a81886144f9565b90508181036020830152614b8e8187614563565b90508181036040830152614ba281866144f9565b90508181036060830152614bb681856144f9565b90508181036080830152614bca81846144f9565b90509695505050505050565b60006020820190508181036000830152614bf08184614563565b905092915050565b60006080820190508181036000830152614c128187614563565b90508181036020830152614c268186614563565b9050614c356040830185614469565b614c426060830184614919565b95945050505050565b600060e0820190508181036000830152614c65818a614563565b90508181036020830152614c798189614563565b9050614c886040830188614469565b614c956060830187614919565b614ca26080830186614919565b81810360a0830152614cb48185614563565b905081810360c0830152614cc88184614563565b905098975050505050505050565b60006020820190508181036000830152614cef81614662565b9050919050565b60006020820190508181036000830152614d0f81614685565b9050919050565b60006020820190508181036000830152614d2f816146a8565b9050919050565b60006020820190508181036000830152614d4f816146cb565b9050919050565b60006020820190508181036000830152614d6f816146ee565b9050919050565b60006020820190508181036000830152614d8f81614711565b9050919050565b60006020820190508181036000830152614daf81614734565b9050919050565b60006020820190508181036000830152614dcf81614757565b9050919050565b60006020820190508181036000830152614def8161477a565b9050919050565b60006020820190508181036000830152614e0f8161479d565b9050919050565b60006020820190508181036000830152614e2f816147c0565b9050919050565b60006020820190508181036000830152614e4f816147e3565b9050919050565b60006020820190508181036000830152614e6f81614806565b9050919050565b60006020820190508181036000830152614e8f8161484c565b9050919050565b60006020820190508181036000830152614eaf816148d8565b9050919050565b6000602082019050614ecb6000830184614919565b92915050565b6000602082019050614ee6600083018461490a565b92915050565b6000614ef6614f07565b9050614f028282615272565b919050565b6000604051905090565b600067ffffffffffffffff821115614f2c57614f2b615383565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614f5857614f57615383565b5b614f61826153b2565b9050602081019050919050565b600067ffffffffffffffff821115614f8957614f88615383565b5b614f92826153b2565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061504c826151ca565b9150615057836151ca565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561508c5761508b6152f6565b5b828201905092915050565b60006150a2826151ca565b91506150ad836151ca565b9250826150bd576150bc615325565b5b828204905092915050565b60006150d3826151ca565b91506150de836151ca565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615117576151166152f6565b5b828202905092915050565b600061512d826151ca565b9150615138836151ca565b92508282101561514b5761514a6152f6565b5b828203905092915050565b6000615161826151aa565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156152015780820151818401526020810190506151e6565b83811115615210576000848401525b50505050565b6000615221826151ca565b91506000821415615235576152346152f6565b5b600182039050919050565b6000600282049050600182168061525857607f821691505b6020821081141561526c5761526b615354565b5b50919050565b61527b826153b2565b810181811067ffffffffffffffff8211171561529a57615299615383565b5b80604052505050565b60006152ae826151ca565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156152e1576152e06152f6565b5b600182019050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b7f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000600082015250565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b61587981615156565b811461588457600080fd5b50565b61589081615168565b811461589b57600080fd5b50565b6158a781615174565b81146158b257600080fd5b50565b6158be8161517e565b81146158c957600080fd5b50565b6158d5816151ca565b81146158e057600080fd5b5056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa26469706673582212204e2c1394dddf0d22dccc006af19d8bf98ed7289bcc6b66132d65b101840b6c9564736f6c63430008040033

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

000000000000000000000000abe35bf0b0a4b1cf2afd155b610f70e2ae91e05c

-----Decoded View---------------
Arg [0] : _withdraw (address): 0xAbE35Bf0B0a4b1cF2afd155b610F70e2Ae91E05C

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000abe35bf0b0a4b1cf2afd155b610f70e2ae91e05c


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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