ETH Price: $3,642.58 (+1.76%)

Token

CryptoZunks (ZUNK)
 

Overview

Max Total Supply

10,000 ZUNK

Holders

3,316

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 ZUNK
0x341E17acBE018718dD20277414E3eB88921d1672
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Numbered 10,000 - 19,999. Zunkz are the unofficial sequel to CryptoPunks, generated on-chain with randomized attributes and guaranteed to be unique from any other Punk. Originally known as CryptoZunks.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CryptoZunks

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 500 runs

Other Settings:
default evmVersion
File 1 of 18 : CryptoZunks.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableMap.sol";

import "hardhat/console.sol";

contract CryptoZunks is
  Ownable,
  ERC721Enumerable,
  ERC721Burnable,
  ReentrancyGuard
{
  using Strings for uint256;

  enum Slot {
    accessories,
    beard,
    ear,
    eyes,
    hat,
    lips,
    neck,
    smoke
  }

  mapping(string => bool) public unavailableZunks;
  mapping(uint256 => string) public serialIdToZunk;
  mapping(string => bool) public existingZunks;

  mapping(uint256 => uint256[]) public femaleProbabilities;
  mapping(uint256 => uint256[]) public maleProbabilities;

  string NO_OPTIONS = "no options";
  uint256 NO_REROLL_OPTIONS = 99999;

  uint256[8] femaleSlotProbabilities = [
    2608,
    0,
    3959,
    8614,
    10000,
    6625,
    1950,
    2080
  ];
  uint256[8] maleSlotProbabilities = [
    2608,
    7187,
    3959,
    6923,
    10000,
    2437,
    1825,
    3225
  ];
  uint256[] genderProbabilities = [5000, 5000];
  uint256[] skinProbabilities = [14, 36, 2454, 2454, 2454, 2456, 132];

  struct Attributes {
    uint256 accessories;
    uint256 beard;
    uint256 ear;
    uint256 eyes;
    uint256 hat;
    uint256 lips;
    uint256 neck;
    uint256 smoke;
  }

  struct AttributesAsString {
    string accessories;
    string beard;
    string ear;
    string eyes;
    string hat;
    string lips;
    string neck;
    string smoke;
  }

  struct SerialIdAndTokenRepresentation {
    uint256 serialId;
    string tokenRepresentation;
  }

  constructor() ERC721("CryptoZunks", "ZUNK") {
    femaleProbabilities[uint256(Slot.accessories)] = [1913, 5812, 1155, 1119];
    femaleProbabilities[uint256(Slot.beard)] = [
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0
    ];
    femaleProbabilities[uint256(Slot.ear)] = [10000];
    femaleProbabilities[uint256(Slot.eyes)] = [
      402,
      752,
      974,
      706,
      540,
      537,
      412,
      648,
      496,
      752,
      804,
      959,
      741,
      496,
      467,
      315
    ];
    femaleProbabilities[uint256(Slot.hat)] = [
      237,
      0,
      378,
      332,
      347,
      0,
      146,
      237,
      409,
      404,
      0,
      227,
      436,
      378,
      0,
      0,
      414,
      227,
      434,
      424,
      434,
      175,
      0,
      242,
      139,
      244,
      229,
      0,
      378,
      0,
      388,
      370,
      381,
      228,
      229,
      141,
      228,
      0,
      370,
      441,
      350
    ];
    femaleProbabilities[uint256(Slot.lips)] = [
      1567,
      1768,
      1664,
      1768,
      1664,
      1567
    ];
    femaleProbabilities[uint256(Slot.neck)] = [2778, 3756, 3467];
    femaleProbabilities[uint256(Slot.smoke)] = [5571, 1014, 1838, 1577];

    maleProbabilities[uint256(Slot.accessories)] = [1913, 5812, 1155, 1119];
    maleProbabilities[uint256(Slot.beard)] = [
      417,
      805,
      779,
      742,
      842,
      751,
      816,
      822,
      864,
      834,
      825,
      1502
    ];
    maleProbabilities[uint256(Slot.ear)] = [10000];
    maleProbabilities[uint256(Slot.eyes)] = [
      527,
      987,
      566,
      926,
      708,
      704,
      540,
      850,
      0,
      987,
      527,
      0,
      972,
      566,
      612,
      527
    ];
    maleProbabilities[uint256(Slot.hat)] = [
      505,
      75,
      0,
      0,
      369,
      433,
      155,
      242,
      434,
      0,
      512,
      317,
      463,
      0,
      692,
      442,
      440,
      483,
      463,
      451,
      231,
      0,
      517,
      0,
      0,
      0,
      346,
      281,
      231,
      512,
      0,
      0,
      0,
      486,
      0,
      0,
      196,
      251,
      0,
      470,
      0
    ];
    maleProbabilities[uint256(Slot.lips)] = [0, 1351, 2261, 2261, 0, 4125];
    maleProbabilities[uint256(Slot.neck)] = [2600, 2600, 4800];
    maleProbabilities[uint256(Slot.smoke)] = [5571, 1014, 1838, 1577];
  }

  bool public hasDevSingleMinted = false;
  bool public isMintAndRerollEnabled = false;
  uint256 private MAX_SUPPLY = 10000;
  uint256 private currentIndex = 10000;

  uint256 public freeMintsFromPoolRedeemed = 0;
  uint256 public freeMintsAllocatedByDevsCap = 300;
  mapping(address => uint256) freeMintsAllocatedByDevs;
  mapping(address => bool) public hasRedeemedFreeMintFromPool;

  event Zunk(
    address indexed user,
    uint256 serialId,
    string tokenRepresentation,
    bool isReroll
  );

  function _numMintedSoFar() internal view returns (uint256) {
    return currentIndex - 10000;
  }

  function freeMintOne() public payable nonReentrant {
    require(userHasFreeMint(msg.sender), "You have no free mints available (pool has ran out).");
    if (freeMintsAllocatedByDevs[msg.sender] > 0) {
      freeMintsAllocatedByDevs[msg.sender]--;
    } else {
      freeMintsFromPoolRedeemed++;
      hasRedeemedFreeMintFromPool[msg.sender] = true;
    }
    _mintNoCostChecks(1);
  }

  function mintOne() public payable nonReentrant {
    _mint(1);
  }

  function mintTwo() public payable nonReentrant {
    _mint(2);
  }

  function mintThree() public payable nonReentrant {
    _mint(3);
  }

  function mintFour() public payable nonReentrant {
    _mint(4);
  }

  function mintFive() public payable nonReentrant {
    _mint(5);
  }

  function mintSix() public payable nonReentrant {
    _mint(6);
  }

  function mintSeven() public payable nonReentrant {
    _mint(7);
  }

  function mintEight() public payable nonReentrant {
    _mint(8);
  }

  function mintNine() public payable nonReentrant {
    _mint(9);
  }

  function mintTen() public payable nonReentrant {
    _mint(10);
  }

  // internal minting function
  function _mint(uint256 _numToMint) internal {
    uint256 _numMinted = _numMintedSoFar();
    require(
      _numMinted + _numToMint <= MAX_SUPPLY,
      "There aren't this many zunks left."
    );
    uint256 costForMint = getCostForMints(_numToMint);
    require(msg.value >= costForMint, "Need to send more ETH.");
    if (msg.value > costForMint) {
      payable(msg.sender).transfer(msg.value - costForMint);
    }
    _mintNoCostChecks(_numToMint);
  }

  function _mintNoCostChecks(uint256 _numToMint) internal {
    require(isMintAndRerollEnabled, "Minting is not enabled.");
    _mintNoChecks(_numToMint);
  }

  function _mintNoChecks(uint256 _numToMint) internal {
    uint256 newSerialId = currentIndex;
    for (uint256 i = 0; i < _numToMint; i++) {
      _safeMint(msg.sender, newSerialId);

      string memory generatedZunk = generateZunk(newSerialId);
      if (isInvalidZunk(generatedZunk) || unableToRerollZunk(generatedZunk)) {
        generatedZunk = generateZunk(newSerialId);
      }
      require(
        !(isInvalidZunk(generatedZunk) || unableToRerollZunk(generatedZunk)),
        "Unable to mint, please try again."
      );
      serialIdToZunk[newSerialId] = generatedZunk;
      existingZunks[generatedZunk] = true;
      emit Zunk(msg.sender, newSerialId, generatedZunk, false);
      newSerialId++;
    }
    currentIndex = newSerialId;
  }

  function validateSlotToRerollValid(
    uint256 slotToReroll,
    Attributes memory attributes
  ) internal pure {
    uint256[] memory validSlots = getValidSlotsForReroll(attributes);
    bool slotToRerollValid = false;

    for (uint256 i = 0; i < validSlots.length; i++) {
      if (slotToReroll == validSlots[i]) {
        slotToRerollValid = true;
        break;
      }
    }

    require(slotToRerollValid, "slotToReroll is not valid for zunk");
  }

  function rerollZunk(uint256 serialId, uint256 slotToReroll) public payable {
    require(isMintAndRerollEnabled, "Reroll is not enabled");
    require(msg.sender == ownerOf(serialId), "Only owner can reroll.");
    require(slotToReroll != uint256(Slot.ear), "Cant reroll earring");
    uint256 costForReroll = getCostForRerollAttribute();
    require(msg.value >= costForReroll, "Need to send more ETH for reroll.");
    if (msg.value > costForReroll) {
      payable(msg.sender).transfer(msg.value - costForReroll);
    }

    string memory zunk = serialIdToZunk[serialId];
    string memory zunkSkinAsString = substring(zunk, 0, 2);
    string memory zunkGenderAsString = substring(zunk, 2, 4);
    Attributes memory attributes = createAttributesFromZunk(zunk);

    validateSlotToRerollValid(slotToReroll, attributes);

    uint256 zunkGender = convertToUint(zunkGenderAsString);
    uint256 zunkSkin = convertToUint(zunkSkinAsString);
    bool isFemale = isZunkFemale(zunkGender);

    string memory rerolledZunk = _rerollZunk(
      isFemale,
      serialId,
      zunkSkin,
      zunkGender,
      attributes,
      slotToReroll,
      zunk
    );

    require(
      !isInvalidZunk(rerolledZunk),
      "Could not reroll into a valid zunk, please try again."
    );

    serialIdToZunk[serialId] = rerolledZunk;
    existingZunks[rerolledZunk] = true;
    existingZunks[zunk] = false;
    emit Zunk(msg.sender, serialId, rerolledZunk, true);
  }

  function createAttributesFromZunk(string memory zunk)
    internal
    pure
    returns (Attributes memory)
  {
    string memory attributes1 = substring(zunk, 4, 6);
    string memory attributes2 = substring(zunk, 6, 8);
    string memory attributes3 = substring(zunk, 8, 10);
    string memory attributes4 = substring(zunk, 10, 12);
    string memory attributes5 = substring(zunk, 12, 14);
    string memory attributes6 = substring(zunk, 14, 16);
    string memory attributes7 = substring(zunk, 16, 18);
    string memory attributes8 = substring(zunk, 18, 20);
    return
      Attributes(
        convertToUint(attributes1),
        convertToUint(attributes2),
        convertToUint(attributes3),
        convertToUint(attributes4),
        convertToUint(attributes5),
        convertToUint(attributes6),
        convertToUint(attributes7),
        convertToUint(attributes8)
      );
  }

  function _rerollZunk(
    bool isFemale,
    uint256 serialId,
    uint256 zunkSkin,
    uint256 zunkGender,
    Attributes memory attributes,
    uint256 slotToReroll,
    string memory zunk
  ) internal view returns (string memory) {
    return
      _rerollZunk(
        isFemale,
        serialId,
        zunkSkin,
        zunkGender,
        attributes,
        slotToReroll,
        zunk,
        true
      );
  }

  function _rerollZunk(
    bool isFemale,
    uint256 serialId,
    uint256 zunkSkin,
    uint256 zunkGender,
    Attributes memory attributes,
    uint256 slotToReroll,
    string memory zunk,
    bool throwIfUnableToReroll
  ) internal view returns (string memory) {
    uint256 rerolledAttribute;
    Attributes memory rerolledAttributes = Attributes(
      attributes.accessories,
      attributes.beard,
      attributes.ear,
      attributes.eyes,
      attributes.hat,
      attributes.lips,
      attributes.neck,
      attributes.smoke
    );

    if (slotToReroll == uint256(Slot.accessories)) {
      rerolledAttribute = rerollZunkSlot(
        isFemale,
        serialId,
        Slot.accessories,
        attributes.accessories,
        zunk,
        throwIfUnableToReroll
      );
      if (rerolledAttribute == NO_REROLL_OPTIONS) {
        return NO_OPTIONS;
      }
      rerolledAttributes.accessories = rerolledAttribute;
    } else if (slotToReroll == uint256(Slot.beard)) {
      rerolledAttribute = rerollZunkSlot(
        isFemale,
        serialId,
        Slot.beard,
        attributes.beard,
        zunk,
        throwIfUnableToReroll
      );
      if (rerolledAttribute == NO_REROLL_OPTIONS) {
        return NO_OPTIONS;
      }
      rerolledAttributes.beard = rerolledAttribute;
    } else if (slotToReroll == uint256(Slot.ear)) {
      rerolledAttribute = rerollZunkSlot(
        isFemale,
        serialId,
        Slot.ear,
        attributes.ear,
        zunk,
        throwIfUnableToReroll
      );
      if (rerolledAttribute == NO_REROLL_OPTIONS) {
        return NO_OPTIONS;
      }
      rerolledAttributes.ear = rerolledAttribute;
    } else if (slotToReroll == uint256(Slot.eyes)) {
      rerolledAttribute = rerollZunkSlot(
        isFemale,
        serialId,
        Slot.eyes,
        attributes.eyes,
        zunk,
        throwIfUnableToReroll
      );
      if (rerolledAttribute == NO_REROLL_OPTIONS) {
        return NO_OPTIONS;
      }
      rerolledAttributes.eyes = rerolledAttribute;
    } else if (slotToReroll == uint256(Slot.hat)) {
      rerolledAttribute = rerollZunkSlot(
        isFemale,
        serialId,
        Slot.hat,
        attributes.hat,
        zunk,
        throwIfUnableToReroll
      );
      if (rerolledAttribute == NO_REROLL_OPTIONS) {
        return NO_OPTIONS;
      }
      rerolledAttributes.hat = rerolledAttribute;
    } else if (slotToReroll == uint256(Slot.lips)) {
      rerolledAttribute = rerollZunkSlot(
        isFemale,
        serialId,
        Slot.lips,
        attributes.lips,
        zunk,
        throwIfUnableToReroll
      );
      if (rerolledAttribute == NO_REROLL_OPTIONS) {
        return NO_OPTIONS;
      }
      rerolledAttributes.lips = rerolledAttribute;
    } else if (slotToReroll == uint256(Slot.neck)) {
      rerolledAttribute = rerollZunkSlot(
        isFemale,
        serialId,
        Slot.neck,
        attributes.neck,
        zunk,
        throwIfUnableToReroll
      );
      if (rerolledAttribute == NO_REROLL_OPTIONS) {
        return NO_OPTIONS;
      }
      rerolledAttributes.neck = rerolledAttribute;
    } else {
      rerolledAttribute = rerollZunkSlot(
        isFemale,
        serialId,
        Slot.smoke,
        attributes.smoke,
        zunk,
        throwIfUnableToReroll
      );
      if (rerolledAttribute == NO_REROLL_OPTIONS) {
        return NO_OPTIONS;
      }
      rerolledAttributes.smoke = rerolledAttribute;
    }

    return
      createZunkStringRepresentation(zunkSkin, zunkGender, rerolledAttributes);
  }

  function rerollZunkSlot(
    bool isFemale,
    uint256 serialId,
    Slot slot,
    uint256 attribute,
    string memory zunk,
    bool throwIfUnableToReroll
  ) internal view returns (uint256) {
    uint256 slotAsUint = uint256(slot);
    uint256[] storage attributeProbabilities = getAttributeProbabilities(
      isFemale,
      slotAsUint
    );
    uint256 probabilitiesLength = attributeProbabilities.length;

    string[] memory rerollCandidates = getRerollCandidates(
      slot,
      zunk,
      probabilitiesLength
    );

    uint256[] memory adjustedProbabilities = getAdjustedProbabilities(
      isFemale,
      slot,
      attribute,
      probabilitiesLength,
      rerollCandidates
    );

    bool atLeastOneValidAttribute = false;
    for (uint256 i = 0; i < probabilitiesLength; i++) {
      if (adjustedProbabilities[i] > 0) {
        atLeastOneValidAttribute = true;
        break;
      }
    }

    if (!atLeastOneValidAttribute) {
      if (throwIfUnableToReroll) {
        require(atLeastOneValidAttribute, "Unable to mint. Please try again.");
      } else {
        return NO_REROLL_OPTIONS;
      }
    }

    return
      pickRandomFromMemory(
        adjustedProbabilities,
        serialId,
        uint256(slot),
        attribute
      );
  }

  function getAdjustedProbabilities(
    bool isFemale,
    Slot slot,
    uint256 attribute,
    uint256 probabilitiesLength,
    string[] memory rerollCandidates
  ) internal view returns (uint256[] memory) {
    bool[] memory validAttribute = new bool[](probabilitiesLength);
    uint256 slotAsUint = uint256(slot);
    uint256[] storage attributeProbabilities = getAttributeProbabilities(
      isFemale,
      slotAsUint
    );

    uint256[] memory adjustedProbabilities = new uint256[](probabilitiesLength);
    uint256 invalidProbabilitiesToDistribute = 0;
    for (uint256 i = 0; i < probabilitiesLength; i++) {
      string memory rerollCandidate = rerollCandidates[i];
      // can't give any attribute already off limits, if it makes a zunk/punk, or their current attribute
      if (
        attributeProbabilities[i] == 0 ||
        isInvalidZunk(rerollCandidate) ||
        i == attribute
      ) {
        invalidProbabilitiesToDistribute += attributeProbabilities[i];
      } else {
        validAttribute[i] = true;
      }
    }

    for (uint256 i = 0; i < probabilitiesLength; i++) {
      if (validAttribute[i]) {
        // the math here is to calculate how much of the invalidProbabilitiesToDistribute to
        // give to each validProbability. If we are removing 2000 from the pool and giving
        // 1000 its share, the additional probability for 1000 is 1000/8000 * 2000
        adjustedProbabilities[i] =
          ((attributeProbabilities[i] * invalidProbabilitiesToDistribute) /
            (10000 - invalidProbabilitiesToDistribute)) +
          attributeProbabilities[i];
      } else {
        adjustedProbabilities[i] = 0;
      }
    }
    return adjustedProbabilities;
  }

  function getRerollCandidates(
    Slot slot,
    string memory zunk,
    uint256 probabilitiesLength
  ) internal pure returns (string[] memory) {
    string memory firstHalf = substring(zunk, 0, 4 + uint256(slot) * 2);
    string memory secondHalf = substring(zunk, 6 + uint256(slot) * 2, 20);
    string[] memory candidates = new string[](probabilitiesLength);

    for (uint256 i = 0; i < probabilitiesLength; i++) {
      candidates[i] = string(
        abi.encodePacked(firstHalf, convertToString(i), secondHalf)
      );
    }

    return candidates;
  }

  function getValidSlotsForReroll(Attributes memory attributes)
    internal
    pure
    returns (uint256[] memory)
  {
    bool[] memory validSlots = new bool[](8);
    uint256 numValidSlots = 0;

    if (attributes.accessories != 99) {
      validSlots[uint256(Slot.accessories)] = true;
      numValidSlots++;
    }
    if (attributes.beard != 99) {
      validSlots[uint256(Slot.beard)] = true;
      numValidSlots++;
    }
    if (attributes.eyes != 99) {
      validSlots[uint256(Slot.eyes)] = true;
      numValidSlots++;
    }
    if (attributes.hat != 99) {
      validSlots[uint256(Slot.hat)] = true;
      numValidSlots++;
    }
    if (attributes.lips != 99) {
      validSlots[uint256(Slot.lips)] = true;
      numValidSlots++;
    }
    if (attributes.neck != 99) {
      validSlots[uint256(Slot.neck)] = true;
      numValidSlots++;
    }
    if (attributes.smoke != 99) {
      validSlots[uint256(Slot.smoke)] = true;
      numValidSlots++;
    }

    uint256[] memory valid = new uint256[](numValidSlots);
    uint256 counter = 0;
    for (uint256 i = 0; i < validSlots.length; i++) {
      if (validSlots[i]) {
        valid[counter] = i;
        counter++;
      }
    }
    return valid;
  }

  function generateZunk(uint256 serialId)
    internal
    view
    returns (string memory)
  {
    // these seed numbers are arbitrary, matches prospectiveSlot and mappingLength used elsewhere
    uint256 zunkSkin = pickRandomFromStorage(skinProbabilities, serialId, 0, 7);
    uint256 zunkGender = pickRandomFromStorage(
      genderProbabilities,
      serialId,
      1,
      2
    );

    bool isFemale = isZunkFemale(zunkGender);

    Attributes memory attributes = getAttributes(isFemale, serialId);
    string memory generatedZunk = createZunkStringRepresentation(
      zunkSkin,
      zunkGender,
      attributes
    );

    if (isInvalidZunk(generatedZunk) || unableToRerollZunk(generatedZunk)) {
      uint256[] memory validSlots = getValidSlotsForReroll(attributes);
      uint256 randomSlotIndex = getRandomNumber(
        zunkGender,
        zunkSkin,
        serialId
      ) % validSlots.length;

      generatedZunk = _rerollZunk(
        isFemale,
        serialId,
        zunkSkin,
        zunkGender,
        attributes,
        validSlots[randomSlotIndex],
        generatedZunk,
        false
      );
    }
    return generatedZunk;
  }

  function convertSlotsToString(Attributes memory attributes)
    internal
    pure
    returns (AttributesAsString memory)
  {
    return
      AttributesAsString(
        convertToString(attributes.accessories),
        convertToString(attributes.beard),
        convertToString(attributes.ear),
        convertToString(attributes.eyes),
        convertToString(attributes.hat),
        convertToString(attributes.lips),
        convertToString(attributes.neck),
        convertToString(attributes.smoke)
      );
  }

  function getAttributes(bool isFemale, uint256 serialId)
    internal
    view
    returns (Attributes memory)
  {
    return
      Attributes(
        maybeGetAttribute(isFemale, Slot.accessories, serialId),
        maybeGetAttribute(isFemale, Slot.beard, serialId),
        maybeGetAttribute(isFemale, Slot.ear, serialId),
        maybeGetAttribute(isFemale, Slot.eyes, serialId),
        maybeGetAttribute(isFemale, Slot.hat, serialId),
        maybeGetAttribute(isFemale, Slot.lips, serialId),
        maybeGetAttribute(isFemale, Slot.neck, serialId),
        maybeGetAttribute(isFemale, Slot.smoke, serialId)
      );
  }

  function maybeGetAttribute(
    bool isFemale,
    Slot slot,
    uint256 serialId
  ) internal view returns (uint256) {
    uint256 slotAsUint = uint256(slot);
    uint256[] storage attributeProbabilities = getAttributeProbabilities(
      isFemale,
      slotAsUint
    );
    uint256 length = attributeProbabilities.length;
    bool isSelected = isSlotSelected(
      slot,
      isFemale,
      serialId,
      slotAsUint,
      length
    );

    if (!isSelected) {
      return 99;
    } else {
      uint256 attribute = pickRandomFromStorage(
        attributeProbabilities,
        serialId,
        slotAsUint,
        length
      );
      return attribute;
    }
  }

  // prospective slots are 0-7
  function isSlotSelected(
    Slot prospectiveSlot,
    bool isFemale,
    uint256 seed1,
    uint256 seed2,
    uint256 seed3
  ) internal view returns (bool) {
    uint256 randomNumber = getRandomNumber(seed1, seed2, seed3);
    if (isFemale) {
      return femaleSlotProbabilities[uint256(prospectiveSlot)] >= randomNumber;
    } else {
      return maleSlotProbabilities[uint256(prospectiveSlot)] >= randomNumber;
    }
  }

  function pickRandomFromStorage(
    uint256[] storage attributeProbabilities,
    uint256 seed1,
    uint256 seed2,
    uint256 seed3
  ) internal view returns (uint256) {
    // mix up ordering of seed to generate diff random number from the random number in isSlotSelected
    uint256 randomNumber = getRandomNumber(seed3, seed2, seed1);
    uint256 sum = 0;
    for (uint256 i = 0; i < attributeProbabilities.length; i++) {
      sum += attributeProbabilities[i];
      if (sum >= randomNumber) {
        return i;
      }
    }
    // return the last one
    return attributeProbabilities.length - 1;
  }

  function pickRandomFromMemory(
    uint256[] memory attributeProbabilities,
    uint256 seed1,
    uint256 seed2,
    uint256 seed3
  ) internal view returns (uint256) {
    // mix up ordering of seed to generate diff random number from the random number in isSlotSelected
    uint256 randomNumber = getRandomNumber(seed3, seed2, seed1);
    uint256 sum = 0;
    for (uint256 i = 0; i < attributeProbabilities.length; i++) {
      sum += attributeProbabilities[i];
      if (sum >= randomNumber) {
        return i;
      }
    }
    // return the last one
    return attributeProbabilities.length - 1;
  }

  function getRandomNumber(
    uint256 seed1,
    uint256 seed2,
    uint256 seed3
  ) internal view returns (uint256) {
    uint256 randomNum = uint256(
      keccak256(
        abi.encode(
          msg.sender,
          tx.gasprice,
          block.number,
          block.timestamp,
          blockhash(block.number - 1),
          seed1,
          seed2,
          seed3
        )
      )
    );

    // never return 0, edge cases where first probability of accessory
    // could be 0 while rerolling
    return (randomNum % 10000) + 1;
  }

  function createZunkStringRepresentation(
    uint256 zunkSkin,
    uint256 zunkGender,
    Attributes memory attribues
  ) internal pure returns (string memory) {
    AttributesAsString memory slotsAsString = convertSlotsToString(attribues);
    return
      appendAttributes(
        convertToString(zunkSkin),
        convertToString(zunkGender),
        slotsAsString
      );
  }

  function appendAttributes(
    string memory zunkSkin,
    string memory zunkGender,
    AttributesAsString memory attributes
  ) internal pure returns (string memory) {
    bytes memory firstHalf = abi.encodePacked(
      zunkSkin,
      zunkGender,
      attributes.accessories,
      attributes.beard,
      attributes.ear
    );
    bytes memory secondHalf = abi.encodePacked(
      attributes.eyes,
      attributes.hat,
      attributes.lips,
      attributes.neck,
      attributes.smoke
    );
    return string(abi.encodePacked(firstHalf, secondHalf));
  }

  function isInvalidZunk(string memory zunk) internal view returns (bool) {
    return unavailableZunks[zunk] || existingZunks[zunk];
  }

  function getAttributeProbabilities(bool isFemale, uint256 slotAsUint)
    internal
    view
    returns (uint256[] storage)
  {
    uint256[] storage attributeProbabilities = femaleProbabilities[slotAsUint];
    if (!isFemale) {
      attributeProbabilities = maleProbabilities[slotAsUint];
    }
    return attributeProbabilities;
  }

  function convertToString(uint256 num) internal pure returns (string memory) {
    if (num == 0) {
      return "00";
    } else if (num == 1) {
      return "01";
    } else if (num == 2) {
      return "02";
    } else if (num == 3) {
      return "03";
    } else if (num == 4) {
      return "04";
    } else if (num == 5) {
      return "05";
    } else if (num == 6) {
      return "06";
    } else if (num == 7) {
      return "07";
    } else if (num == 8) {
      return "08";
    } else if (num == 9) {
      return "09";
    }

    return Strings.toString(num);
  }

  function substring(
    string memory str,
    uint256 startIndex,
    uint256 endIndex
  ) internal pure returns (string memory) {
    bytes memory strBytes = bytes(str);
    bytes memory result = new bytes(endIndex - startIndex);
    for (uint256 i = startIndex; i < endIndex; i++) {
      result[i - startIndex] = strBytes[i];
    }
    return string(result);
  }

  // s will always be len 2
  function convertToUint(string memory s) internal pure returns (uint256) {
    string memory tensDigit = substring(s, 0, 1);
    string memory onesDigit = substring(s, 1, 2);
    return stringToUint(tensDigit) * 10 + stringToUint(onesDigit);
  }

  function stringToUint(string memory s) internal pure returns (uint256) {
    //bytes32 sHash = keccak256(abi.encodePacked(s));
    if (compareStrings(s, "0")) {
      return 0;
    } else if (compareStrings(s, "1")) {
      return 1;
    } else if (compareStrings(s, "2")) {
      return 2;
    } else if (compareStrings(s, "3")) {
      return 3;
    } else if (compareStrings(s, "4")) {
      return 4;
    } else if (compareStrings(s, "5")) {
      return 5;
    } else if (compareStrings(s, "6")) {
      return 6;
    } else if (compareStrings(s, "7")) {
      return 7;
    } else if (compareStrings(s, "8")) {
      return 8;
    } else {
      return 9;
    }
  }

  function unableToRerollZunk(string memory zunk) internal view returns (bool) {
    return compareStrings(zunk, NO_OPTIONS);
  }

  function compareStrings(string memory s1, string memory s2)
    internal
    pure
    returns (bool)
  {
    return keccak256(bytes(s1)) == keccak256(bytes(s2));
  }

  function isZunkFemale(uint256 zunkGender) internal pure returns (bool) {
    return zunkGender == 0;
  }

  function getOwnerZunks(address _owner)
    external
    view
    returns (SerialIdAndTokenRepresentation[] memory)
  {
    uint256 numSerialIds = balanceOf(_owner);
    if (numSerialIds == 0) {
      return new SerialIdAndTokenRepresentation[](0);
    } else {
      SerialIdAndTokenRepresentation[]
        memory result = new SerialIdAndTokenRepresentation[](numSerialIds);
      for (uint256 i = 0; i < numSerialIds; i++) {
        uint256 serialId = tokenOfOwnerByIndex(_owner, i);
        string memory zunk = serialIdToZunk[serialId];
        result[i] = SerialIdAndTokenRepresentation(serialId, zunk);
      }
      return result;
    }
  }

  function getSerialIdTokenRepresentations(uint256[] memory serialIds)
    external
    view
    returns (string[] memory)
  {
    string[] memory tokenRepresentations = new string[](serialIds.length);
    for (uint256 i = 0; i < serialIds.length; i++) {
      tokenRepresentations[i] = serialIdToZunk[serialIds[i]];
    }
    return tokenRepresentations;
  }

  // This does not factor free mints into account
  function getCostForMints(uint256 _numToMint) public pure returns (uint256) {
    uint256 _cost;
    uint256 _index;
    for (_index; _index < _numToMint; _index++) {
      _cost += 0.05 ether;
    }
    return _cost;
  }

  function getCostForRerollAttribute() public pure returns (uint256) {
    return 0.02 ether;
  }

  function hasFreeMintsInPoolRemaining() internal view returns (bool) {
    return 200 - freeMintsFromPoolRedeemed > 0;
  }

  function userHasFreeMint(address userAddress) public view returns (bool) {
    if (freeMintsAllocatedByDevs[userAddress] > 0) {
      return true;
    }
    if (
      !hasRedeemedFreeMintFromPool[userAddress] && hasFreeMintsInPoolRemaining()
    ) {
      // Free mints from pool are only accessible for those who have never free minted from the pool before.
      return true;
    }
    return false;
  }

  function enableMintAndReroll() public onlyOwner {
    isMintAndRerollEnabled = true;
  }

  function disableMintAndReroll() public onlyOwner {
    isMintAndRerollEnabled = false;
  }

  function devSingleMint() public onlyOwner {
    require(!hasDevSingleMinted, "Can only dev single mint once");
    _mintNoChecks(1);
    hasDevSingleMinted = true;
  }

  function seedPunks(string[] memory punks) public onlyOwner {
    for (uint256 i = 0; i < punks.length; i++) {
      unavailableZunks[punks[i]] = true;
    }
  }

  function addFreeMintsAllocatedByDevs(
    address[] memory addresses,
    uint256[] memory numOfFreeMints
  ) public onlyOwner {
    require(
      addresses.length == numOfFreeMints.length,
      "tokenOwners does not match numOfFreeRolls length"
    );
    uint256 freeMintsFromThisSeed = 0;
    for (uint256 i = 0; i < addresses.length; i++) {
      freeMintsAllocatedByDevs[addresses[i]] =
        freeMintsAllocatedByDevs[addresses[i]] +
        numOfFreeMints[i];
      freeMintsFromThisSeed += numOfFreeMints[i];
    }
    require(
      freeMintsFromThisSeed < freeMintsAllocatedByDevsCap,
      "too many freemints allocated by devs"
    );
  }

  // // metadata URI
  string private _baseTokenURI;

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

  function tokenURI(uint256 _serialId)
    public
    view
    override
    returns (string memory)
  {
    string memory base = _baseURI();
    string memory _tokenURI = Strings.toString(_serialId);

    // If there is no base URI, return the token URI.
    if (bytes(base).length == 0) {
      return _tokenURI;
    }

    return string(abi.encodePacked(base, _tokenURI));
  }

  function setBaseURI(string calldata baseURI) external onlyOwner {
    _baseTokenURI = baseURI;
  }

  function withdrawMoney() public payable onlyOwner {
    (bool success, ) = msg.sender.call{value: address(this).balance}("");
    require(success, "Transfer failed.");
  }

  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 serialId
  ) internal virtual override(ERC721, ERC721Enumerable) {
    super._beforeTokenTransfer(from, to, serialId);
  }

  function supportsInterface(bytes4 interfaceId)
    public
    view
    virtual
    override(ERC721, ERC721Enumerable)
    returns (bool)
  {
    return super.supportsInterface(interfaceId);
  }
}

File 2 of 18 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 18 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 4 of 18 : 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(to).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 5 of 18 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }
}

File 6 of 18 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 18 : 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 8 of 18 : EnumerableMap.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./EnumerableSet.sol";

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
 * supported.
 */
library EnumerableMap {
    using EnumerableSet for EnumerableSet.Bytes32Set;

    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct Map {
        // Storage of keys
        EnumerableSet.Bytes32Set _keys;
        mapping(bytes32 => bytes32) _values;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function _set(
        Map storage map,
        bytes32 key,
        bytes32 value
    ) private returns (bool) {
        map._values[key] = value;
        return map._keys.add(key);
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function _remove(Map storage map, bytes32 key) private returns (bool) {
        delete map._values[key];
        return map._keys.remove(key);
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function _contains(Map storage map, bytes32 key) private view returns (bool) {
        return map._keys.contains(key);
    }

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function _length(Map storage map) private view returns (uint256) {
        return map._keys.length();
    }

    /**
     * @dev Returns the key-value pair stored at position `index` in the map. O(1).
     *
     * Note that there are no guarantees on the ordering of entries inside the
     * array, and it may change when more entries are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {
        bytes32 key = map._keys.at(index);
        return (key, map._values[key]);
    }

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     */
    function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) {
        bytes32 value = map._values[key];
        if (value == bytes32(0)) {
            return (_contains(map, key), bytes32(0));
        } else {
            return (true, value);
        }
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        bytes32 value = map._values[key];
        require(value != 0 || _contains(map, key), "EnumerableMap: nonexistent key");
        return value;
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {_tryGet}.
     */
    function _get(
        Map storage map,
        bytes32 key,
        string memory errorMessage
    ) private view returns (bytes32) {
        bytes32 value = map._values[key];
        require(value != 0 || _contains(map, key), errorMessage);
        return value;
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(
        UintToAddressMap storage map,
        uint256 key,
        address value
    ) internal returns (bool) {
        return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {
        return _remove(map._inner, bytes32(key));
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {
        return _contains(map._inner, bytes32(key));
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(UintToAddressMap storage map) internal view returns (uint256) {
        return _length(map._inner);
    }

    /**
     * @dev Returns the element stored at position `index` in the set. O(1).
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {
        (bytes32 key, bytes32 value) = _at(map._inner, index);
        return (uint256(key), address(uint160(uint256(value))));
    }

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     *
     * _Available since v3.4._
     */
    function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) {
        (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key));
        return (success, address(uint160(uint256(value))));
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
        return address(uint160(uint256(_get(map._inner, bytes32(key)))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(
        UintToAddressMap storage map,
        uint256 key,
        string memory errorMessage
    ) internal view returns (address) {
        return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage))));
    }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

}

File 10 of 18 : 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 11 of 18 : 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 18 : 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 13 of 18 : 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 14 of 18 : 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);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private 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 15 of 18 : 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 16 of 18 : 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 17 of 18 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 500
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"serialId","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenRepresentation","type":"string"},{"indexed":false,"internalType":"bool","name":"isReroll","type":"bool"}],"name":"Zunk","type":"event"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"numOfFreeMints","type":"uint256[]"}],"name":"addFreeMintsAllocatedByDevs","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devSingleMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"disableMintAndReroll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableMintAndReroll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"existingZunks","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"femaleProbabilities","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMintOne","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"freeMintsAllocatedByDevsCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMintsFromPoolRedeemed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numToMint","type":"uint256"}],"name":"getCostForMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getCostForRerollAttribute","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"getOwnerZunks","outputs":[{"components":[{"internalType":"uint256","name":"serialId","type":"uint256"},{"internalType":"string","name":"tokenRepresentation","type":"string"}],"internalType":"struct CryptoZunks.SerialIdAndTokenRepresentation[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"serialIds","type":"uint256[]"}],"name":"getSerialIdTokenRepresentations","outputs":[{"internalType":"string[]","name":"","type":"string[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasDevSingleMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasRedeemedFreeMintFromPool","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMintAndRerollEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"maleProbabilities","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintEight","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintFive","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintFour","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintNine","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintOne","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintSeven","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintSix","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintTen","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintThree","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintTwo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"serialId","type":"uint256"},{"internalType":"uint256","name":"slotToReroll","type":"uint256"}],"name":"rerollZunk","outputs":[],"stateMutability":"payable","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":[{"internalType":"string[]","name":"punks","type":"string[]"}],"name":"seedPunks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"serialIdToZunk","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_serialId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"unavailableZunks","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"}],"name":"userHasFreeMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"payable","type":"function"}]

60c0604052600a6080819052696e6f206f7074696f6e7360b01b60a09081526200002d916011919062000c5e565b506201869f6012556040805161010081018252610a30815260006020820152610f77918101919091526121a6606082015261271060808201526119e160a082015261079e60c082015261082060e08201526200008e90601390600862000ced565b506040805161010081018252610a308152611c136020820152610f7791810191909152611b0b6060820152612710608082015261098560a082015261072160c0820152610c9960e0820152620000e990601b90600862000ced565b506040805180820190915261138880825260208201526200010f90602390600262000d24565b506040805160e081018252600e815260246020820181905261099692820183905260608201839052608082019290925261099860a0820152608460c08201526200015c9190600762000d24565b506025805461ffff191690556127106026819055602755600060285561012c6029553480156200018b57600080fd5b506040518060400160405280600b81526020016a43727970746f5a756e6b7360a81b815250604051806040016040528060048152602001635a554e4b60e01b815250620001e7620001e162000c0a60201b60201c565b62000c0e565b8151620001fc90600190602085019062000c5e565b5080516200021290600290602084019062000c5e565b50506001600b55506040805160808101825261077981526116b46020808301919091526104839282019290925261045f606082015260008052600f9091526200027f907ff4803e074bd026baaf6ed2e288c9515f68c72fb7216eebdd7cae1718a53ec37590600462000d24565b50604080516101808101825260008082526020808301829052928201819052606082018190526080820181905260a0820181905260c0820181905260e08201819052610100820181905261012082018190526101408201819052610160820181905260019052600f90915262000319907f169f97de0d9a84d840042b17d3c6b9638b3d6fd9024c9eb0c7a306a17b49f88f90600c62000d67565b5060408051602080820190925261271081526002600052600f90915262000364907fa74ba3945261e09fde15ba3db55005b205e61eeb4ad811ac0faa2b315bffeead90600162000d24565b50604080516102008101825261019281526102f060208083018290526103ce938301939093526102c2606083015261021c608083015261021960a083015261019c60c083015261028860e08301526101f061010083018190526101208301919091526103246101408301526103bf6101608301526102e56101808301526101a08201526101d36101c082015261013b6101e08201526003600052600f90915262000432907f45f76dafbbad695564362934e24d72eedc57f9fc1a65f39bca62176cc829682890601062000d24565b50604080516105208101825260ed8082526000602080840182905261017a94840185905261014c606085015261015b608085015260a08401829052609260c085015260e0840192909252610199610100840152610194610120840152610140830181905260e361016084018190526101b46101808501526101a084018590526101c084018290526101e0840182905261019e6102008501526102208401526101b261024084018190526101a861026085015261028084015260af6102a08401526102c0830181905260f26102e0840152608b61030084015260f461032084015260e5610340840181905261036084018290526103808401949094526103a083018190526101846103c08401526101726103e0840181905261017d61040085015260e46104208501819052610440850195909552608d6104608501526104808401949094526104a083018190526104c08301939093526101b96104e083015261015e6105008301526004909252600f909152620005d2907f367ccd2d0ac16bf7110a5dffe0801fdc9452a95a1adb7e1a12fe97dd3e9a4edd90602962000d24565b506040805160c08101825261061f8082526106e860208084018290526106809484018590526060840191909152608083019390935260a08201526005600052600f90915262000645907f6bda57492eba051cb4a12a1e19df47c9755d78165341d4009b1d09b3f361620490600662000d24565b5060408051606081018252610ada8152610eac602080830191909152610d8b928201929092526006600052600f909152620006a4907fb5a1e7cda73b1608e93d4d50ab796c3d35aa6216cb006a1f920df154d13ff61890600362000d24565b50604080516080810182526115c381526103f660208083019190915261072e9282019290925261062960608201526007600052600f9091526200070b907f73dfc495eb54bd6713ffc079b9f5e40f2fecd3793d143759ba0128fbedb4025490600462000d24565b506040805160808101825261077981526116b46020808301919091526104839282019290925261045f606082015260008052601090915262000771907f6e0956cda88cad152e89927e53611735b61a5c762d1428573c6931b0a5efcb0190600462000d24565b5060408051610180810182526101a1815261032560208083019190915261030b928201929092526102e6606082015261034a60808201526102ef60a082015261033060c082015261033660e08201526103606101008201526103426101208201526103396101408201526105de610160820152600160005260109091526200081d907f8c6065603763fec3f5742441d3833f3f43b982453612d76adb39a885e3006b5f90600c62000d24565b5060408051602080820190925261271081526002600052601090915262000868907f853b2fefe141400fef543280f93d98bd49996069f632d0d20236afeeed8e46a290600162000d24565b50604080516102008101825261020f8082526103db602080840182905261023694840185905261039e60608501526102c460808501526102c060a085015261021c60c085015261035260e085015260006101008501819052610120850192909252610140840183905261016084018290526103cc6101808501526101a08401949094526102646101c08401526101e08301919091526003905260109182905262000935917fb3edd0d534d647cffdae9f1294f11ad21f3fcf2814bea44c92bbb8d384a57d9e919062000d24565b5060408051610520810182526101f98152604b60208083019190915260009282018390526060820183905261017160808301526101b160a0830152609b60c083015260f260e08301526101b26101008301526101208201839052610200610140830181905261013d6101608401526101cf61018084018190526101a084018590526102b46101c08501526101ba6101e08501526101b8828501526101e36102208501526102408401526101c361026084015260e761028084018190526102a084018590526102056102c08501526102e084018590526103008401859052610320840185905261015a6103408501526101196103608501526103808401526103a08301526103c082018390526103e0820183905261040082018390526101e66104208301526104408201839052610460820183905260c461048083015260fb6104a08301526104c082018390526101d66104e083015261050082018390526004909252601090915262000acb907f1588ac671d87f82adc0e6ae8ab009c0de98f92a20243897597e566bc59b9c12690602962000d24565b506040805160c08101825260008082526105476020808401919091526108d593830184905260608301939093526080820181905261101d60a083015260059052601090915262000b3f907f61a7346ab5ebdac457db2a901eaf1b805239b6049a1b2f34bab85e2e274f39cb90600662000d24565b5060408051606081018252610a288082526020808301919091526112c0928201929092526006600052601090915262000b9c907f20edfb71820f6f00f6a84ccfefb91587cd9f849f8349b0a3182a4795899d9cd990600362000d24565b50604080516080810182526115c381526103f660208083019190915261072e9282019290925261062960608201526007600052601090915262000c03907f4ef6145e44e4298293af15ae5f84f922a836b1d6db608fd5008f32a528b312a990600462000d24565b5062000dfe565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805462000c6c9062000dc1565b90600052602060002090601f01602090048101928262000c90576000855562000cdb565b82601f1062000cab57805160ff191683800117855562000cdb565b8280016001018555821562000cdb579182015b8281111562000cdb57825182559160200191906001019062000cbe565b5062000ce992915062000daa565b5090565b826008810192821562000cdb579160200282015b8281111562000cdb578251829061ffff1690559160200191906001019062000d01565b82805482825590600052602060002090810192821562000cdb579160200282018281111562000cdb578251829061ffff1690559160200191906001019062000d01565b82805482825590600052602060002090810192821562000cdb579160200282015b8281111562000cdb578251829060ff1690559160200191906001019062000d88565b5b8082111562000ce9576000815560010162000dab565b600181811c9082168062000dd657607f821691505b6020821081141562000df857634e487b7160e01b600052602260045260246000fd5b50919050565b61596f8062000e0e6000396000f3fe6080604052600436106103555760003560e01c8063518915cd116101bb57806395d89b41116100f7578063cbb4eb5e11610095578063e985e9c51161006f578063e985e9c5146108a0578063f2fde38b146108e9578063f39cccf914610909578063fd6485511461093657600080fd5b8063cbb4eb5e14610848578063d695d61814610850578063e3ef5c8b1461087057600080fd5b8063b88d4fde116100d1578063b88d4fde146107eb578063be81f3ee1461080b578063c0335ea914610820578063c87b56dd1461082857600080fd5b806395d89b41146107ae578063a22cb465146107c3578063ac446002146107e357600080fd5b80636f0c3d2e1161016457806381575cf91161013e57806381575cf91461074857806387f712d4146107685780638da5cb5b14610770578063922c1b051461078e57600080fd5b80636f0c3d2e146106f957806370a0823114610713578063715018a61461073357600080fd5b80636352211e116101955780636352211e14610697578063636c4b53146106b7578063673012da146106cc57600080fd5b8063518915cd1461065957806355f804b31461066f5780635aa9e2a81461068f57600080fd5b806318160ddd116102955780632f745c59116102335780633eb4f7931161020d5780633eb4f793146105f157806342842e0e146105f957806342966c68146106195780634f6ccce71461063957600080fd5b80632f745c59146105aa578063329c48fd146105ca5780633adeb5ff146105d257600080fd5b80631c0d0e051161026f5780631c0d0e05146105155780631dfc1f991461055057806322391cd91461056a57806323b872dd1461058a57600080fd5b806318160ddd146104ce578063195be933146104ed5780631ae4deae1461050d57600080fd5b806309327fac116103025780630c669a89116102dc5780630c669a89146104895780630ced8637146104a9578063163618cb146104b157806316611119146104b957600080fd5b806309327fac14610426578063095ea7b31461042e5780630bfd79121461044e57600080fd5b806303f8fd441161033357806303f8fd44146103b957806306fdde03146103cc578063081812fc146103ee57600080fd5b806301ffc9a71461035a578063033923e81461038f57806303991f1a146103b1575b600080fd5b34801561036657600080fd5b5061037a6103753660046153c9565b61094c565b60405190151581526020015b60405180910390f35b34801561039b57600080fd5b506103af6103aa3660046152e5565b61095d565b005b6103af610a25565b6103af6103c73660046154b9565b610a7c565b3480156103d857600080fd5b506103e1610e7a565b6040516103869190615705565b3480156103fa57600080fd5b5061040e6104093660046154a1565b610f0c565b6040516001600160a01b039091168152602001610386565b6103af610fa1565b34801561043a57600080fd5b506103af6104493660046151fb565b610ff1565b34801561045a57600080fd5b5061037a61046936600461546e565b8051602081830181018051600c8252928201919093012091525460ff1681565b34801561049557600080fd5b5061037a6104a43660046150c1565b611107565b6103af61116e565b6103af6111be565b3480156104c557600080fd5b506103af61120e565b3480156104da57600080fd5b506009545b604051908152602001610386565b3480156104f957600080fd5b506103af610508366004615224565b611263565b6103af6114a3565b34801561052157600080fd5b5061037a61053036600461546e565b8051602081830181018051600e8252928201919093012091525460ff1681565b34801561055c57600080fd5b5066470de4df8200006104df565b34801561057657600080fd5b506104df6105853660046154b9565b6114f3565b34801561059657600080fd5b506103af6105a536600461510d565b611524565b3480156105b657600080fd5b506104df6105c53660046151fb565b6115a0565b6103af611636565b3480156105de57600080fd5b5060255461037a90610100900460ff1681565b6103af61176b565b34801561060557600080fd5b506103af61061436600461510d565b6117bb565b34801561062557600080fd5b506103af6106343660046154a1565b6117d6565b34801561064557600080fd5b506104df6106543660046154a1565b61185d565b34801561066557600080fd5b506104df60285481565b34801561067b57600080fd5b506103af61068a366004615401565b6118fe565b6103af611952565b3480156106a357600080fd5b5061040e6106b23660046154a1565b6119a2565b3480156106c357600080fd5b506103af611a19565b3480156106d857600080fd5b506106ec6106e73660046150c1565b611a72565b6040516103869190615692565b34801561070557600080fd5b5060255461037a9060ff1681565b34801561071f57600080fd5b506104df61072e3660046150c1565b611c4e565b34801561073f57600080fd5b506103af611cd5565b34801561075457600080fd5b506103e16107633660046154a1565b611d29565b6103af611dc3565b34801561077c57600080fd5b506000546001600160a01b031661040e565b34801561079a57600080fd5b506104df6107a93660046154a1565b611e14565b3480156107ba57600080fd5b506103e1611e4e565b3480156107cf57600080fd5b506103af6107de3660046151c1565b611e5d565b6103af611f22565b3480156107f757600080fd5b506103af610806366004615148565b612002565b34801561081757600080fd5b506103af612084565b6103af612138565b34801561083457600080fd5b506103e16108433660046154a1565b612188565b6103af6121df565b34801561085c57600080fd5b506104df61086b3660046154b9565b61222f565b34801561087c57600080fd5b5061037a61088b3660046150c1565b602b6020526000908152604090205460ff1681565b3480156108ac57600080fd5b5061037a6108bb3660046150db565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156108f557600080fd5b506103af6109043660046150c1565b61224b565b34801561091557600080fd5b50610929610924366004615396565b612301565b6040516103869190615631565b34801561094257600080fd5b506104df60295481565b600061095782612470565b92915050565b6000546001600160a01b031633146109aa5760405162461bcd60e51b8152602060048201819052602482015260008051602061591a83398151915260448201526064015b60405180910390fd5b60005b8151811015610a21576001600c8383815181106109da57634e487b7160e01b600052603260045260246000fd5b60200260200101516040516109ef9190615535565b908152604051908190036020019020805491151560ff1990921691909117905580610a1981615872565b9150506109ad565b5050565b6002600b541415610a665760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b55610a756008612495565b6001600b55565b602554610100900460ff16610ad35760405162461bcd60e51b815260206004820152601560248201527f5265726f6c6c206973206e6f7420656e61626c6564000000000000000000000060448201526064016109a1565b610adc826119a2565b6001600160a01b0316336001600160a01b031614610b3c5760405162461bcd60e51b815260206004820152601660248201527f4f6e6c79206f776e65722063616e207265726f6c6c2e0000000000000000000060448201526064016109a1565b6002811415610b8d5760405162461bcd60e51b815260206004820152601360248201527f43616e74207265726f6c6c2065617272696e670000000000000000000000000060448201526064016109a1565b66470de4df82000034811115610bef5760405162461bcd60e51b815260206004820152602160248201527f4e65656420746f2073656e64206d6f72652045544820666f72207265726f6c6c6044820152601760f91b60648201526084016109a1565b80341115610c2f57336108fc610c0583346157e3565b6040518115909202916000818181858888f19350505050158015610c2d573d6000803e3d6000fd5b505b6000838152600d602052604081208054610c489061583d565b80601f0160208091040260200160405190810160405280929190818152602001828054610c749061583d565b8015610cc15780601f10610c9657610100808354040283529160200191610cc1565b820191906000526020600020905b815481529060010190602001808311610ca457829003601f168201915b505050505090506000610cd782600060026125ae565b90506000610ce883600260046125ae565b90506000610cf5846126bf565b9050610d018682612816565b6000610d0c836128d3565b90506000610d19856128d3565b905081156000610d2e828c8587898f8e612925565b9050610d3981612944565b15610dac5760405162461bcd60e51b815260206004820152603560248201527f436f756c64206e6f74207265726f6c6c20696e746f20612076616c6964207a7560448201527f6e6b2c20706c656173652074727920616761696e2e000000000000000000000060648201526084016109a1565b60008b8152600d602090815260409091208251610dcb92840190614eb7565b506001600e82604051610dde9190615535565b908152604051908190036020018120805492151560ff1990931692909217909155600090600e90610e10908b90615535565b908152604051908190036020018120805492151560ff199093169290921790915533907f0a243cc0f9a9c780fd13164ab86f6e8b1561f98847714dab18ed3064c2e58f4f90610e65908e908590600190615718565b60405180910390a25050505050505050505050565b606060018054610e899061583d565b80601f0160208091040260200160405190810160405280929190818152602001828054610eb59061583d565b8015610f025780601f10610ed757610100808354040283529160200191610f02565b820191906000526020600020905b815481529060010190602001808311610ee557829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610f855760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109a1565b506000908152600560205260409020546001600160a01b031690565b6002600b541415610fe25760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b55610a756005612495565b6000610ffc826119a2565b9050806001600160a01b0316836001600160a01b0316141561106a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109a1565b336001600160a01b0382161480611086575061108681336108bb565b6110f85760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109a1565b6111028383612998565b505050565b6001600160a01b0381166000908152602a60205260408120541561112d57506001919050565b6001600160a01b0382166000908152602b602052604090205460ff161580156111595750611159612a06565b1561116657506001919050565b506000919050565b6002600b5414156111af5760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b55610a756001612495565b6002600b5414156111ff5760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b55610a756007612495565b6000546001600160a01b031633146112565760405162461bcd60e51b8152602060048201819052602482015260008051602061591a83398151915260448201526064016109a1565b6025805461ff0019169055565b6000546001600160a01b031633146112ab5760405162461bcd60e51b8152602060048201819052602482015260008051602061591a83398151915260448201526064016109a1565b80518251146113225760405162461bcd60e51b815260206004820152603060248201527f746f6b656e4f776e65727320646f6573206e6f74206d61746368206e756d4f6660448201527f46726565526f6c6c73206c656e6774680000000000000000000000000000000060648201526084016109a1565b6000805b83518110156114455782818151811061134f57634e487b7160e01b600052603260045260246000fd5b6020026020010151602a600086848151811061137b57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020546113ae9190615798565b602a60008684815181106113d257634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555082818151811061141e57634e487b7160e01b600052603260045260246000fd5b6020026020010151826114319190615798565b91508061143d81615872565b915050611326565b5060295481106111025760405162461bcd60e51b8152602060048201526024808201527f746f6f206d616e7920667265656d696e747320616c6c6f6361746564206279206044820152636465767360e01b60648201526084016109a1565b6002600b5414156114e45760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b55610a756009612495565b600f602052816000526040600020818154811061150f57600080fd5b90600052602060002001600091509150505481565b61152f335b82612a1e565b6115955760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60648201526084016109a1565b611102838383612b11565b60006115ab83611c4e565b821061160d5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016109a1565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6002600b5414156116775760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b5561168533611107565b6116f75760405162461bcd60e51b815260206004820152603460248201527f596f752068617665206e6f2066726565206d696e747320617661696c61626c6560448201527f2028706f6f6c206861732072616e206f7574292e00000000000000000000000060648201526084016109a1565b336000908152602a60205260409020541561173157336000908152602a6020526040812080549161172783615826565b9190505550611761565b6028805490600061174183615872565b9091555050336000908152602b60205260409020805460ff191660011790555b610a756001612cbc565b6002600b5414156117ac5760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b55610a756004612495565b61110283838360405180602001604052806000815250612002565b6117df33611529565b6118515760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f7665640000000000000000000000000000000060648201526084016109a1565b61185a81612d1c565b50565b600061186860095490565b82106118cb5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109a1565b600982815481106118ec57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000546001600160a01b031633146119465760405162461bcd60e51b8152602060048201819052602482015260008051602061591a83398151915260448201526064016109a1565b611102602c8383614f3b565b6002600b5414156119935760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b55610a756003612495565b6000818152600360205260408120546001600160a01b0316806109575760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109a1565b6000546001600160a01b03163314611a615760405162461bcd60e51b8152602060048201819052602482015260008051602061591a83398151915260448201526064016109a1565b6025805461ff001916610100179055565b60606000611a7f83611c4e565b905080611acc576040805160008082526020820190925290611ac4565b604080518082019091526000815260606020820152815260200190600190039081611a9c5790505b509392505050565b60008167ffffffffffffffff811115611af557634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611b3b57816020015b604080518082019091526000815260606020820152815260200190600190039081611b135790505b50905060005b82811015611ac4576000611b5586836115a0565b6000818152600d6020526040812080549293509091611b739061583d565b80601f0160208091040260200160405190810160405280929190818152602001828054611b9f9061583d565b8015611bec5780601f10611bc157610100808354040283529160200191611bec565b820191906000526020600020905b815481529060010190602001808311611bcf57829003601f168201915b50505050509050604051806040016040528083815260200182815250848481518110611c2857634e487b7160e01b600052603260045260246000fd5b602002602001018190525050508080611c4090615872565b915050611b41565b50919050565b60006001600160a01b038216611cb95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109a1565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314611d1d5760405162461bcd60e51b8152602060048201819052602482015260008051602061591a83398151915260448201526064016109a1565b611d276000612dc3565b565b600d6020526000908152604090208054611d429061583d565b80601f0160208091040260200160405190810160405280929190818152602001828054611d6e9061583d565b8015611dbb5780601f10611d9057610100808354040283529160200191611dbb565b820191906000526020600020905b815481529060010190602001808311611d9e57829003601f168201915b505050505081565b6002600b541415611e045760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b819055610a7590612495565b60008060005b83811015611e4757611e3366b1a2bc2ec5000083615798565b915080611e3f81615872565b915050611e1a565b5092915050565b606060028054610e899061583d565b6001600160a01b038216331415611eb65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109a1565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b03163314611f6a5760405162461bcd60e51b8152602060048201819052602482015260008051602061591a83398151915260448201526064016109a1565b604051600090339047908381818185875af1925050503d8060008114611fac576040519150601f19603f3d011682016040523d82523d6000602084013e611fb1565b606091505b505090508061185a5760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e0000000000000000000000000000000060448201526064016109a1565b61200c3383612a1e565b6120725760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60648201526084016109a1565b61207e84848484612e13565b50505050565b6000546001600160a01b031633146120cc5760405162461bcd60e51b8152602060048201819052602482015260008051602061591a83398151915260448201526064016109a1565b60255460ff161561211f5760405162461bcd60e51b815260206004820152601d60248201527f43616e206f6e6c79206465762073696e676c65206d696e74206f6e636500000060448201526064016109a1565b6121296001612e91565b6025805460ff19166001179055565b6002600b5414156121795760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b55610a75600a612495565b60606000612194613005565b905060006121a184613014565b90508151600014156121b4579392505050565b81816040516020016121c7929190615506565b60405160208183030381529060405292505050919050565b6002600b5414156122205760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b55610a756006612495565b6010602052816000526040600020818154811061150f57600080fd5b6000546001600160a01b031633146122935760405162461bcd60e51b8152602060048201819052602482015260008051602061591a83398151915260448201526064016109a1565b6001600160a01b0381166122f85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109a1565b61185a81612dc3565b60606000825167ffffffffffffffff81111561232d57634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561236057816020015b606081526020019060019003908161234b5790505b50905060005b8351811015611e4757600d600085838151811061239357634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002080546123b49061583d565b80601f01602080910402602001604051908101604052809291908181526020018280546123e09061583d565b801561242d5780601f106124025761010080835404028352916020019161242d565b820191906000526020600020905b81548152906001019060200180831161241057829003601f168201915b505050505082828151811061245257634e487b7160e01b600052603260045260246000fd5b6020026020010181905250808061246890615872565b915050612366565b60006001600160e01b0319821663780e9d6360e01b148061095757506109578261312e565b600061249f61317e565b6026549091506124af8383615798565b11156125085760405162461bcd60e51b815260206004820152602260248201527f5468657265206172656e27742074686973206d616e79207a756e6b73206c65666044820152613a1760f11b60648201526084016109a1565b600061251383611e14565b9050803410156125655760405162461bcd60e51b815260206004820152601660248201527f4e65656420746f2073656e64206d6f7265204554482e0000000000000000000060448201526064016109a1565b803411156125a557336108fc61257b83346157e3565b6040518115909202916000818181858888f193505050501580156125a3573d6000803e3d6000fd5b505b61110283612cbc565b60608360006125bd85856157e3565b67ffffffffffffffff8111156125e357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561260d576020820181803683370190505b509050845b848110156126b35782818151811061263a57634e487b7160e01b600052603260045260246000fd5b01602001517fff00000000000000000000000000000000000000000000000000000000000000168261266c88846157e3565b8151811061268a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350806126ab81615872565b915050612612565b509150505b9392505050565b61270760405180610100016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b600061271683600460066125ae565b9050600061272784600660086125ae565b90506000612738856008600a6125ae565b9050600061274986600a600c6125ae565b9050600061275a87600c600e6125ae565b9050600061276b88600e60106125ae565b9050600061277c89601060126125ae565b9050600061278d8a601260146125ae565b90506040518061010001604052806127a48a6128d3565b81526020016127b2896128d3565b81526020016127c0886128d3565b81526020016127ce876128d3565b81526020016127dc866128d3565b81526020016127ea856128d3565b81526020016127f8846128d3565b8152602001612806836128d3565b90529a9950505050505050505050565b600061282182613195565b90506000805b825181101561287a5782818151811061285057634e487b7160e01b600052603260045260246000fd5b6020026020010151851415612868576001915061287a565b8061287281615872565b915050612827565b508061207e5760405162461bcd60e51b815260206004820152602260248201527f736c6f74546f5265726f6c6c206973206e6f742076616c696420666f72207a756044820152616e6b60f01b60648201526084016109a1565b6000806128e383600060016125ae565b905060006128f484600160026125ae565b90506128ff816134c0565b612908836134c0565b61291390600a6157c4565b61291d9190615798565b949350505050565b606061293888888888888888600161378e565b98975050505050505050565b6000600c826040516129569190615535565b9081526040519081900360200190205460ff16806109575750600e8260405161297f9190615535565b9081526040519081900360200190205460ff1692915050565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906129cd826119a2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008060285460c8612a1891906157e3565b11905090565b6000818152600360205260408120546001600160a01b0316612a975760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109a1565b6000612aa2836119a2565b9050806001600160a01b0316846001600160a01b03161480612add5750836001600160a01b0316612ad284610f0c565b6001600160a01b0316145b8061291d57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff1661291d565b826001600160a01b0316612b24826119a2565b6001600160a01b031614612b8c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016109a1565b6001600160a01b038216612bee5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109a1565b612bf9838383613aa6565b612c04600082612998565b6001600160a01b0383166000908152600460205260408120805460019290612c2d9084906157e3565b90915550506001600160a01b0382166000908152600460205260408120805460019290612c5b908490615798565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b602554610100900460ff16612d135760405162461bcd60e51b815260206004820152601760248201527f4d696e74696e67206973206e6f7420656e61626c65642e00000000000000000060448201526064016109a1565b61185a81612e91565b6000612d27826119a2565b9050612d3581600084613aa6565b612d40600083612998565b6001600160a01b0381166000908152600460205260408120805460019290612d699084906157e3565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612e1e848484612b11565b612e2a84848484613ab1565b61207e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109a1565b60275460005b82811015612ffe57612ea93383613c09565b6000612eb483613c23565b9050612ebf81612944565b80612ece5750612ece81613cf6565b15612edf57612edc83613c23565b90505b612ee881612944565b80612ef75750612ef781613cf6565b15612f4e5760405162461bcd60e51b815260206004820152602160248201527f556e61626c6520746f206d696e742c20706c656173652074727920616761696e6044820152601760f91b60648201526084016109a1565b6000838152600d602090815260409091208251612f6d92840190614eb7565b506001600e82604051612f809190615535565b908152604051908190036020018120805492151560ff199093169290921790915533907f0a243cc0f9a9c780fd13164ab86f6e8b1561f98847714dab18ed3064c2e58f4f90612fd59086908590600090615718565b60405180910390a282612fe781615872565b935050508080612ff690615872565b915050612e97565b5060275550565b6060602c8054610e899061583d565b6060816130385750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613062578061304c81615872565b915061305b9050600a836157b0565b915061303c565b60008167ffffffffffffffff81111561308b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156130b5576020820181803683370190505b5090505b841561291d576130ca6001836157e3565b91506130d7600a8661588d565b6130e2906030615798565b60f81b81838151811061310557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613127600a866157b0565b94506130b9565b60006001600160e01b031982166380ac58cd60e01b148061315f57506001600160e01b03198216635b5e139f60e01b145b8061095757506301ffc9a760e01b6001600160e01b0319831614610957565b600061271060275461319091906157e3565b905090565b60408051600880825261012082019092526060916000919060208201610100803683370190505090506000836000015160631461320d576001826000815181106131ef57634e487b7160e01b600052603260045260246000fd5b911515602092830291909101909101528061320981615872565b9150505b836020015160631461325957600182818151811061323b57634e487b7160e01b600052603260045260246000fd5b911515602092830291909101909101528061325581615872565b9150505b83606001516063146132a65760018260038151811061328857634e487b7160e01b600052603260045260246000fd5b91151560209283029190910190910152806132a281615872565b9150505b83608001516063146132f3576001826004815181106132d557634e487b7160e01b600052603260045260246000fd5b91151560209283029190910190910152806132ef81615872565b9150505b8360a001516063146133405760018260058151811061332257634e487b7160e01b600052603260045260246000fd5b911515602092830291909101909101528061333c81615872565b9150505b8360c0015160631461338d5760018260068151811061336f57634e487b7160e01b600052603260045260246000fd5b911515602092830291909101909101528061338981615872565b9150505b8360e001516063146133da576001826007815181106133bc57634e487b7160e01b600052603260045260246000fd5b91151560209283029190910190910152806133d681615872565b9150505b60008167ffffffffffffffff81111561340357634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561342c578160200160208202803683370190505b5090506000805b84518110156134b55784818151811061345c57634e487b7160e01b600052603260045260246000fd5b6020026020010151156134a3578083838151811061348a57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528161349f81615872565b9250505b806134ad81615872565b915050613433565b509095945050505050565b6040805180820190915260018152600360fc1b6020918201528151908201206000907f044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d141561351157506000919050565b6040805180820190915260018152603160f81b6020918201528251908301207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6141561355f57506001919050565b6040805180820190915260018152601960f91b6020918201528251908301207fad7c5bef027816a800da1736444fb58a807ef4c9603b7848673f7e3a68eb14a514156135ad57506002919050565b6040805180820190915260018152603360f81b6020918201528251908301207f2a80e1ef1d7842f27f2e6be0972bb708b9a135c38860dbe73c27c3486c34f4de14156135fb57506003919050565b6040805180820190915260018152600d60fa1b6020918201528251908301207f13600b294191fc92924bb3ce4b969c1e7e2bab8f4c93c3fc6d0a51733df3c060141561364957506004919050565b6040805180820190915260018152603560f81b6020918201528251908301207fceebf77a833b30520287ddd9478ff51abbdffa30aa90a8d655dba0e8a79ce0c1141561369757506005919050565b6040805180820190915260018152601b60f91b6020918201528251908301207fe455bf8ea6e7463a1046a0b52804526e119b4bf5136279614e0b1e8e296a4e2d14156136e557506006919050565b6040805180820190915260018152603760f81b6020918201528251908301207f52f1a9b320cab38e5da8a8f97989383aab0a49165fc91c737310e4f7e9821021141561373357506007919050565b6040805180820190915260018152600760fb1b6020918201528251908301207fe4b1702d9298fee62dfeccc57d322a463ad55ca201256d01f62b45b2e1c21c10141561378157506008919050565b506009919050565b919050565b606060008060405180610100016040528088600001518152602001886020015181526020018860400151815260200188606001518152602001886080015181526020018860a0015181526020018860c0015181526020018860e0015181525090506000600781111561381057634e487b7160e01b600052602160045260246000fd5b8614156138d25761382a8b8b60008a600001518989613d9d565b91506012548214156138ca57601180546138439061583d565b80601f016020809104026020016040519081016040528092919081815260200182805461386f9061583d565b80156138bc5780601f10613891576101008083540402835291602001916138bc565b820191906000526020600020905b81548152906001019060200180831161389f57829003601f168201915b505050505092505050612938565b818152613a8c565b6001861415613913576138ee8b8b60018a602001518989613d9d565b915060125482141561390757601180546138439061583d565b60208101829052613a8c565b60028614156139545761392f8b8b60028a604001518989613d9d565b915060125482141561394857601180546138439061583d565b60408101829052613a8c565b6003861415613995576139708b8b60038a606001518989613d9d565b915060125482141561398957601180546138439061583d565b60608101829052613a8c565b60048614156139d6576139b18b8b60048a608001518989613d9d565b91506012548214156139ca57601180546138439061583d565b60808101829052613a8c565b6005861415613a17576139f28b8b60058a60a001518989613d9d565b9150601254821415613a0b57601180546138439061583d565b60a08101829052613a8c565b6006861415613a5857613a338b8b60068a60c001518989613d9d565b9150601254821415613a4c57601180546138439061583d565b60c08101829052613a8c565b613a6b8b8b60078a60e001518989613d9d565b9150601254821415613a8457601180546138439061583d565b60e081018290525b613a97898983613efe565b9b9a5050505050505050505050565b611102838383613f31565b60006001600160a01b0384163b15613bfe57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613af59033908990889088906004016155ff565b602060405180830381600087803b158015613b0f57600080fd5b505af1925050508015613b3f575060408051601f3d908101601f19168201909252613b3c918101906153e5565b60015b613be4573d808015613b6d576040519150601f19603f3d011682016040523d82523d6000602084013e613b72565b606091505b508051613bdc5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109a1565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061291d565b506001949350505050565b610a21828260405180602001604052806000815250613fe9565b60606000613c3660248460006007614067565b90506000613c4960238560016002614067565b905080156000613c5982876140f9565b90506000613c68858584613efe565b9050613c7381612944565b80613c825750613c8281613cf6565b15613cec576000613c9283613195565b905060008151613ca387898c6141d9565b613cad919061588d565b9050613ce7858a898988878781518110613cd757634e487b7160e01b600052603260045260246000fd5b602002602001015189600061378e565b925050505b9695505050505050565b60006109578260118054613d099061583d565b80601f0160208091040260200160405190810160405280929190818152602001828054613d359061583d565b8015613d825780601f10613d5757610100808354040283529160200191613d82565b820191906000526020600020905b815481529060010190602001808311613d6557829003601f168201915b50505050508051602091820120825192909101919091201490565b600080856007811115613dc057634e487b7160e01b600052602160045260246000fd5b90506000613dce8983614263565b80549091506000613de089888461428b565b90506000613df18c8b8b86866143f6565b90506000805b84811015613e4a576000838281518110613e2157634e487b7160e01b600052603260045260246000fd5b60200260200101511115613e385760019150613e4a565b80613e4281615872565b915050613df7565b5080613ec2578715613eb25780613ead5760405162461bcd60e51b815260206004820152602160248201527f556e61626c6520746f206d696e742e20506c656173652074727920616761696e6044820152601760f91b60648201526084016109a1565b613ec2565b6012549650505050505050613cec565b613eed828d8d6007811115613ee757634e487b7160e01b600052602160045260246000fd5b8d614719565b9d9c50505050505050505050505050565b60606000613f0b8361479d565b9050613f28613f1986614884565b613f2286614884565b83614a11565b95945050505050565b6001600160a01b038316613f8c57613f8781600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b613faf565b816001600160a01b0316836001600160a01b031614613faf57613faf8382614ab5565b6001600160a01b038216613fc65761110281614b52565b826001600160a01b0316826001600160a01b031614611102576111028282614c2b565b613ff38383614c6f565b6140006000848484613ab1565b6111025760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109a1565b6000806140758385876141d9565b90506000805b87548110156140df578781815481106140a457634e487b7160e01b600052603260045260246000fd5b9060005260206000200154826140ba9190615798565b91508282106140cd57925061291d915050565b806140d781615872565b91505061407b565b5086546140ee906001906157e3565b979650505050505050565b61414160405180610100016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b60405180610100016040528061415985600086614dbd565b815260200161416a85600186614dbd565b815260200161417b85600286614dbd565b815260200161418c85600386614dbd565b815260200161419d85600486614dbd565b81526020016141ae85600586614dbd565b81526020016141bf85600686614dbd565b81526020016141d085600786614dbd565b90529392505050565b600080333a43426141eb6001836157e3565b604080516001600160a01b039096166020870152850193909352606084019190915260808301524060a082015260c0810186905260e0810185905261010081018490526101200160408051601f19818403018152919052805160209091012090506142586127108261588d565b613f28906001615798565b6000818152600f60205260408120836126b85750506000908152601060205260409020919050565b606060006142d08460008760078111156142b557634e487b7160e01b600052602160045260246000fd5b6142c09060026157c4565b6142cb906004615798565b6125ae565b90506000614315858760078111156142f857634e487b7160e01b600052602160045260246000fd5b6143039060026157c4565b61430e906006615798565b60146125ae565b905060008467ffffffffffffffff81111561434057634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561437357816020015b606081526020019060019003908161435e5790505b50905060005b858110156143eb578361438b82614884565b8460405160200161439e93929190615551565b6040516020818303038152906040528282815181106143cd57634e487b7160e01b600052603260045260246000fd5b602002602001018190525080806143e390615872565b915050614379565b509695505050505050565b606060008367ffffffffffffffff81111561442157634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561444a578160200160208202803683370190505b509050600086600781111561446f57634e487b7160e01b600052602160045260246000fd5b9050600061447d8983614263565b905060008667ffffffffffffffff8111156144a857634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156144d1578160200160208202803683370190505b5090506000805b888110156145db57600088828151811061450257634e487b7160e01b600052603260045260246000fd5b6020026020010151905084828154811061452c57634e487b7160e01b600052603260045260246000fd5b906000526020600020015460001480614549575061454981612944565b8061455357508a82145b156145955784828154811061457857634e487b7160e01b600052603260045260246000fd5b90600052602060002001548361458e9190615798565b92506145c8565b60018783815181106145b757634e487b7160e01b600052603260045260246000fd5b911515602092830291909101909101525b50806145d381615872565b9150506144d8565b5060005b888110156147095785818151811061460757634e487b7160e01b600052603260045260246000fd5b6020026020010151156146c85783818154811061463457634e487b7160e01b600052603260045260246000fd5b90600052602060002001548261271061464d91906157e3565b8386848154811061466e57634e487b7160e01b600052603260045260246000fd5b906000526020600020015461468391906157c4565b61468d91906157b0565b6146979190615798565b8382815181106146b757634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506146f7565b60008382815181106146ea57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b8061470181615872565b9150506145df565b50909a9950505050505050505050565b6000806147278385876141d9565b90506000805b875181101561478e5787818151811061475657634e487b7160e01b600052603260045260246000fd5b6020026020010151826147699190615798565b915082821061477c57925061291d915050565b8061478681615872565b91505061472d565b50600187516140ee91906157e3565b6147e560405180610100016040528060608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081525090565b6040518061010001604052806147fe8460000151614884565b81526020016148108460200151614884565b81526020016148228460400151614884565b81526020016148348460600151614884565b81526020016148468460800151614884565b81526020016148588460a00151614884565b815260200161486a8460c00151614884565b815260200161487c8460e00151614884565b905292915050565b6060816148a9575050604080518082019091526002815261030360f41b602082015290565b81600114156148d0575050604080518082019091526002815261303160f01b602082015290565b81600214156148f7575050604080518082019091526002815261181960f11b602082015290565b816003141561491e575050604080518082019091526002815261303360f01b602082015290565b81600414156149455750506040805180820190915260028152610c0d60f21b602082015290565b816005141561496c575050604080518082019091526002815261303560f01b602082015290565b8160061415614993575050604080518082019091526002815261181b60f11b602082015290565b81600714156149ba575050604080518082019091526002815261303760f01b602082015290565b81600814156149e1575050604080518082019091526002815261060760f31b602082015290565b8160091415614a08575050604080518082019091526002815261303960f01b602082015290565b61095782613014565b606060008484846000015185602001518660400151604051602001614a3a959493929190615594565b60408051601f19818403018152908290526060850151608086015160a087015160c088015160e0890151949650600095614a779590602001615594565b60405160208183030381529060405290508181604051602001614a9b929190615506565b604051602081830303815290604052925050509392505050565b60006001614ac284611c4e565b614acc91906157e3565b600083815260086020526040902054909150808214614b1f576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090614b64906001906157e3565b6000838152600a602052604081205460098054939450909284908110614b9a57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060098381548110614bc957634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480614c0f57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000614c3683611c4e565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b038216614cc55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109a1565b6000818152600360205260409020546001600160a01b031615614d2a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109a1565b614d3660008383613aa6565b6001600160a01b0382166000908152600460205260408120805460019290614d5f908490615798565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080836007811115614de057634e487b7160e01b600052602160045260246000fd5b90506000614dee8683614263565b80549091506000614e028789888786614e31565b905080614e165760639450505050506126b8565b6000614e2484888786614067565b95506126b8945050505050565b600080614e3f8585856141d9565b90508515614e9457806013886007811115614e6a57634e487b7160e01b600052602160045260246000fd5b60088110614e8857634e487b7160e01b600052603260045260246000fd5b01541015915050613f28565b80601b886007811115614e6a57634e487b7160e01b600052602160045260246000fd5b828054614ec39061583d565b90600052602060002090601f016020900481019282614ee55760008555614f2b565b82601f10614efe57805160ff1916838001178555614f2b565b82800160010185558215614f2b579182015b82811115614f2b578251825591602001919060010190614f10565b50614f37929150614faf565b5090565b828054614f479061583d565b90600052602060002090601f016020900481019282614f695760008555614f2b565b82601f10614f825782800160ff19823516178555614f2b565b82800160010185558215614f2b579182015b82811115614f2b578235825591602001919060010190614f94565b5b80821115614f375760008155600101614fb0565b600067ffffffffffffffff831115614fde57614fde6158cd565b614ff1601f8401601f1916602001615743565b905082815283838301111561500557600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461378957600080fd5b600082601f830112615043578081fd5b8135602061505861505383615774565b615743565b80838252828201915082860187848660051b8901011115615077578586fd5b855b8581101561509557813584529284019290840190600101615079565b5090979650505050505050565b600082601f8301126150b2578081fd5b6126b883833560208501614fc4565b6000602082840312156150d2578081fd5b6126b88261501c565b600080604083850312156150ed578081fd5b6150f68361501c565b91506151046020840161501c565b90509250929050565b600080600060608486031215615121578081fd5b61512a8461501c565b92506151386020850161501c565b9150604084013590509250925092565b6000806000806080858703121561515d578081fd5b6151668561501c565b93506151746020860161501c565b925060408501359150606085013567ffffffffffffffff811115615196578182fd5b8501601f810187136151a6578182fd5b6151b587823560208401614fc4565b91505092959194509250565b600080604083850312156151d3578182fd5b6151dc8361501c565b9150602083013580151581146151f0578182fd5b809150509250929050565b6000806040838503121561520d578182fd5b6152168361501c565b946020939093013593505050565b60008060408385031215615236578182fd5b823567ffffffffffffffff8082111561524d578384fd5b818501915085601f830112615260578384fd5b8135602061527061505383615774565b8083825282820191508286018a848660051b890101111561528f578889fd5b8896505b848710156152b8576152a48161501c565b835260019690960195918301918301615293565b50965050860135925050808211156152ce578283fd5b506152db85828601615033565b9150509250929050565b600060208083850312156152f7578182fd5b823567ffffffffffffffff8082111561530e578384fd5b818501915085601f830112615321578384fd5b813561532f61505382615774565b80828252858201915085850189878560051b880101111561534e578788fd5b875b848110156153875781358681111561536657898afd5b6153748c8a838b01016150a2565b8552509287019290870190600101615350565b50909998505050505050505050565b6000602082840312156153a7578081fd5b813567ffffffffffffffff8111156153bd578182fd5b61291d84828501615033565b6000602082840312156153da578081fd5b81356126b8816158e3565b6000602082840312156153f6578081fd5b81516126b8816158e3565b60008060208385031215615413578182fd5b823567ffffffffffffffff8082111561542a578384fd5b818501915085601f83011261543d578384fd5b81358181111561544b578485fd5b86602082850101111561545c578485fd5b60209290920196919550909350505050565b60006020828403121561547f578081fd5b813567ffffffffffffffff811115615495578182fd5b61291d848285016150a2565b6000602082840312156154b2578081fd5b5035919050565b600080604083850312156154cb578182fd5b50508035926020909101359150565b600081518084526154f28160208601602086016157fa565b601f01601f19169290920160200192915050565b600083516155188184602088016157fa565b83519083019061552c8183602088016157fa565b01949350505050565b600082516155478184602087016157fa565b9190910192915050565b600084516155638184602089016157fa565b8451908301906155778183602089016157fa565b845191019061558a8183602088016157fa565b0195945050505050565b600086516155a6818460208b016157fa565b8651908301906155ba818360208b016157fa565b86519101906155cd818360208a016157fa565b85519101906155e08183602089016157fa565b84519101906155f38183602088016157fa565b01979650505050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613cec60808301846154da565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b8281101561568557603f198886030184526156738583516154da565b94509285019290850190600101615657565b5092979650505050505050565b60006020808301818452808551808352604092508286019150828160051b870101848801865b838110156156f757888303603f190185528151805184528701518784018790526156e4878501826154da565b95880195935050908601906001016156b8565b509098975050505050505050565b6020815260006126b860208301846154da565b83815260606020820152600061573160608301856154da565b90508215156040830152949350505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561576c5761576c6158cd565b604052919050565b600067ffffffffffffffff82111561578e5761578e6158cd565b5060051b60200190565b600082198211156157ab576157ab6158a1565b500190565b6000826157bf576157bf6158b7565b500490565b60008160001904831182151516156157de576157de6158a1565b500290565b6000828210156157f5576157f56158a1565b500390565b60005b838110156158155781810151838201526020016157fd565b8381111561207e5750506000910152565b600081615835576158356158a1565b506000190190565b600181811c9082168061585157607f821691505b60208210811415611c4857634e487b7160e01b600052602260045260246000fd5b6000600019821415615886576158866158a1565b5060010190565b60008261589c5761589c6158b7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461185a57600080fdfe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220c3b5c1fc99f66c27ba1371a07d349e3ad973e93a164f09e5d854fb6fb9f3901664736f6c63430008040033

Deployed Bytecode

0x6080604052600436106103555760003560e01c8063518915cd116101bb57806395d89b41116100f7578063cbb4eb5e11610095578063e985e9c51161006f578063e985e9c5146108a0578063f2fde38b146108e9578063f39cccf914610909578063fd6485511461093657600080fd5b8063cbb4eb5e14610848578063d695d61814610850578063e3ef5c8b1461087057600080fd5b8063b88d4fde116100d1578063b88d4fde146107eb578063be81f3ee1461080b578063c0335ea914610820578063c87b56dd1461082857600080fd5b806395d89b41146107ae578063a22cb465146107c3578063ac446002146107e357600080fd5b80636f0c3d2e1161016457806381575cf91161013e57806381575cf91461074857806387f712d4146107685780638da5cb5b14610770578063922c1b051461078e57600080fd5b80636f0c3d2e146106f957806370a0823114610713578063715018a61461073357600080fd5b80636352211e116101955780636352211e14610697578063636c4b53146106b7578063673012da146106cc57600080fd5b8063518915cd1461065957806355f804b31461066f5780635aa9e2a81461068f57600080fd5b806318160ddd116102955780632f745c59116102335780633eb4f7931161020d5780633eb4f793146105f157806342842e0e146105f957806342966c68146106195780634f6ccce71461063957600080fd5b80632f745c59146105aa578063329c48fd146105ca5780633adeb5ff146105d257600080fd5b80631c0d0e051161026f5780631c0d0e05146105155780631dfc1f991461055057806322391cd91461056a57806323b872dd1461058a57600080fd5b806318160ddd146104ce578063195be933146104ed5780631ae4deae1461050d57600080fd5b806309327fac116103025780630c669a89116102dc5780630c669a89146104895780630ced8637146104a9578063163618cb146104b157806316611119146104b957600080fd5b806309327fac14610426578063095ea7b31461042e5780630bfd79121461044e57600080fd5b806303f8fd441161033357806303f8fd44146103b957806306fdde03146103cc578063081812fc146103ee57600080fd5b806301ffc9a71461035a578063033923e81461038f57806303991f1a146103b1575b600080fd5b34801561036657600080fd5b5061037a6103753660046153c9565b61094c565b60405190151581526020015b60405180910390f35b34801561039b57600080fd5b506103af6103aa3660046152e5565b61095d565b005b6103af610a25565b6103af6103c73660046154b9565b610a7c565b3480156103d857600080fd5b506103e1610e7a565b6040516103869190615705565b3480156103fa57600080fd5b5061040e6104093660046154a1565b610f0c565b6040516001600160a01b039091168152602001610386565b6103af610fa1565b34801561043a57600080fd5b506103af6104493660046151fb565b610ff1565b34801561045a57600080fd5b5061037a61046936600461546e565b8051602081830181018051600c8252928201919093012091525460ff1681565b34801561049557600080fd5b5061037a6104a43660046150c1565b611107565b6103af61116e565b6103af6111be565b3480156104c557600080fd5b506103af61120e565b3480156104da57600080fd5b506009545b604051908152602001610386565b3480156104f957600080fd5b506103af610508366004615224565b611263565b6103af6114a3565b34801561052157600080fd5b5061037a61053036600461546e565b8051602081830181018051600e8252928201919093012091525460ff1681565b34801561055c57600080fd5b5066470de4df8200006104df565b34801561057657600080fd5b506104df6105853660046154b9565b6114f3565b34801561059657600080fd5b506103af6105a536600461510d565b611524565b3480156105b657600080fd5b506104df6105c53660046151fb565b6115a0565b6103af611636565b3480156105de57600080fd5b5060255461037a90610100900460ff1681565b6103af61176b565b34801561060557600080fd5b506103af61061436600461510d565b6117bb565b34801561062557600080fd5b506103af6106343660046154a1565b6117d6565b34801561064557600080fd5b506104df6106543660046154a1565b61185d565b34801561066557600080fd5b506104df60285481565b34801561067b57600080fd5b506103af61068a366004615401565b6118fe565b6103af611952565b3480156106a357600080fd5b5061040e6106b23660046154a1565b6119a2565b3480156106c357600080fd5b506103af611a19565b3480156106d857600080fd5b506106ec6106e73660046150c1565b611a72565b6040516103869190615692565b34801561070557600080fd5b5060255461037a9060ff1681565b34801561071f57600080fd5b506104df61072e3660046150c1565b611c4e565b34801561073f57600080fd5b506103af611cd5565b34801561075457600080fd5b506103e16107633660046154a1565b611d29565b6103af611dc3565b34801561077c57600080fd5b506000546001600160a01b031661040e565b34801561079a57600080fd5b506104df6107a93660046154a1565b611e14565b3480156107ba57600080fd5b506103e1611e4e565b3480156107cf57600080fd5b506103af6107de3660046151c1565b611e5d565b6103af611f22565b3480156107f757600080fd5b506103af610806366004615148565b612002565b34801561081757600080fd5b506103af612084565b6103af612138565b34801561083457600080fd5b506103e16108433660046154a1565b612188565b6103af6121df565b34801561085c57600080fd5b506104df61086b3660046154b9565b61222f565b34801561087c57600080fd5b5061037a61088b3660046150c1565b602b6020526000908152604090205460ff1681565b3480156108ac57600080fd5b5061037a6108bb3660046150db565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b3480156108f557600080fd5b506103af6109043660046150c1565b61224b565b34801561091557600080fd5b50610929610924366004615396565b612301565b6040516103869190615631565b34801561094257600080fd5b506104df60295481565b600061095782612470565b92915050565b6000546001600160a01b031633146109aa5760405162461bcd60e51b8152602060048201819052602482015260008051602061591a83398151915260448201526064015b60405180910390fd5b60005b8151811015610a21576001600c8383815181106109da57634e487b7160e01b600052603260045260246000fd5b60200260200101516040516109ef9190615535565b908152604051908190036020019020805491151560ff1990921691909117905580610a1981615872565b9150506109ad565b5050565b6002600b541415610a665760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b55610a756008612495565b6001600b55565b602554610100900460ff16610ad35760405162461bcd60e51b815260206004820152601560248201527f5265726f6c6c206973206e6f7420656e61626c6564000000000000000000000060448201526064016109a1565b610adc826119a2565b6001600160a01b0316336001600160a01b031614610b3c5760405162461bcd60e51b815260206004820152601660248201527f4f6e6c79206f776e65722063616e207265726f6c6c2e0000000000000000000060448201526064016109a1565b6002811415610b8d5760405162461bcd60e51b815260206004820152601360248201527f43616e74207265726f6c6c2065617272696e670000000000000000000000000060448201526064016109a1565b66470de4df82000034811115610bef5760405162461bcd60e51b815260206004820152602160248201527f4e65656420746f2073656e64206d6f72652045544820666f72207265726f6c6c6044820152601760f91b60648201526084016109a1565b80341115610c2f57336108fc610c0583346157e3565b6040518115909202916000818181858888f19350505050158015610c2d573d6000803e3d6000fd5b505b6000838152600d602052604081208054610c489061583d565b80601f0160208091040260200160405190810160405280929190818152602001828054610c749061583d565b8015610cc15780601f10610c9657610100808354040283529160200191610cc1565b820191906000526020600020905b815481529060010190602001808311610ca457829003601f168201915b505050505090506000610cd782600060026125ae565b90506000610ce883600260046125ae565b90506000610cf5846126bf565b9050610d018682612816565b6000610d0c836128d3565b90506000610d19856128d3565b905081156000610d2e828c8587898f8e612925565b9050610d3981612944565b15610dac5760405162461bcd60e51b815260206004820152603560248201527f436f756c64206e6f74207265726f6c6c20696e746f20612076616c6964207a7560448201527f6e6b2c20706c656173652074727920616761696e2e000000000000000000000060648201526084016109a1565b60008b8152600d602090815260409091208251610dcb92840190614eb7565b506001600e82604051610dde9190615535565b908152604051908190036020018120805492151560ff1990931692909217909155600090600e90610e10908b90615535565b908152604051908190036020018120805492151560ff199093169290921790915533907f0a243cc0f9a9c780fd13164ab86f6e8b1561f98847714dab18ed3064c2e58f4f90610e65908e908590600190615718565b60405180910390a25050505050505050505050565b606060018054610e899061583d565b80601f0160208091040260200160405190810160405280929190818152602001828054610eb59061583d565b8015610f025780601f10610ed757610100808354040283529160200191610f02565b820191906000526020600020905b815481529060010190602001808311610ee557829003601f168201915b5050505050905090565b6000818152600360205260408120546001600160a01b0316610f855760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109a1565b506000908152600560205260409020546001600160a01b031690565b6002600b541415610fe25760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b55610a756005612495565b6000610ffc826119a2565b9050806001600160a01b0316836001600160a01b0316141561106a5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109a1565b336001600160a01b0382161480611086575061108681336108bb565b6110f85760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109a1565b6111028383612998565b505050565b6001600160a01b0381166000908152602a60205260408120541561112d57506001919050565b6001600160a01b0382166000908152602b602052604090205460ff161580156111595750611159612a06565b1561116657506001919050565b506000919050565b6002600b5414156111af5760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b55610a756001612495565b6002600b5414156111ff5760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b55610a756007612495565b6000546001600160a01b031633146112565760405162461bcd60e51b8152602060048201819052602482015260008051602061591a83398151915260448201526064016109a1565b6025805461ff0019169055565b6000546001600160a01b031633146112ab5760405162461bcd60e51b8152602060048201819052602482015260008051602061591a83398151915260448201526064016109a1565b80518251146113225760405162461bcd60e51b815260206004820152603060248201527f746f6b656e4f776e65727320646f6573206e6f74206d61746368206e756d4f6660448201527f46726565526f6c6c73206c656e6774680000000000000000000000000000000060648201526084016109a1565b6000805b83518110156114455782818151811061134f57634e487b7160e01b600052603260045260246000fd5b6020026020010151602a600086848151811061137b57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020546113ae9190615798565b602a60008684815181106113d257634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555082818151811061141e57634e487b7160e01b600052603260045260246000fd5b6020026020010151826114319190615798565b91508061143d81615872565b915050611326565b5060295481106111025760405162461bcd60e51b8152602060048201526024808201527f746f6f206d616e7920667265656d696e747320616c6c6f6361746564206279206044820152636465767360e01b60648201526084016109a1565b6002600b5414156114e45760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b55610a756009612495565b600f602052816000526040600020818154811061150f57600080fd5b90600052602060002001600091509150505481565b61152f335b82612a1e565b6115955760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60648201526084016109a1565b611102838383612b11565b60006115ab83611c4e565b821061160d5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016109a1565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b6002600b5414156116775760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b5561168533611107565b6116f75760405162461bcd60e51b815260206004820152603460248201527f596f752068617665206e6f2066726565206d696e747320617661696c61626c6560448201527f2028706f6f6c206861732072616e206f7574292e00000000000000000000000060648201526084016109a1565b336000908152602a60205260409020541561173157336000908152602a6020526040812080549161172783615826565b9190505550611761565b6028805490600061174183615872565b9091555050336000908152602b60205260409020805460ff191660011790555b610a756001612cbc565b6002600b5414156117ac5760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b55610a756004612495565b61110283838360405180602001604052806000815250612002565b6117df33611529565b6118515760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f7665640000000000000000000000000000000060648201526084016109a1565b61185a81612d1c565b50565b600061186860095490565b82106118cb5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109a1565b600982815481106118ec57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000546001600160a01b031633146119465760405162461bcd60e51b8152602060048201819052602482015260008051602061591a83398151915260448201526064016109a1565b611102602c8383614f3b565b6002600b5414156119935760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b55610a756003612495565b6000818152600360205260408120546001600160a01b0316806109575760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109a1565b6000546001600160a01b03163314611a615760405162461bcd60e51b8152602060048201819052602482015260008051602061591a83398151915260448201526064016109a1565b6025805461ff001916610100179055565b60606000611a7f83611c4e565b905080611acc576040805160008082526020820190925290611ac4565b604080518082019091526000815260606020820152815260200190600190039081611a9c5790505b509392505050565b60008167ffffffffffffffff811115611af557634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611b3b57816020015b604080518082019091526000815260606020820152815260200190600190039081611b135790505b50905060005b82811015611ac4576000611b5586836115a0565b6000818152600d6020526040812080549293509091611b739061583d565b80601f0160208091040260200160405190810160405280929190818152602001828054611b9f9061583d565b8015611bec5780601f10611bc157610100808354040283529160200191611bec565b820191906000526020600020905b815481529060010190602001808311611bcf57829003601f168201915b50505050509050604051806040016040528083815260200182815250848481518110611c2857634e487b7160e01b600052603260045260246000fd5b602002602001018190525050508080611c4090615872565b915050611b41565b50919050565b60006001600160a01b038216611cb95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109a1565b506001600160a01b031660009081526004602052604090205490565b6000546001600160a01b03163314611d1d5760405162461bcd60e51b8152602060048201819052602482015260008051602061591a83398151915260448201526064016109a1565b611d276000612dc3565b565b600d6020526000908152604090208054611d429061583d565b80601f0160208091040260200160405190810160405280929190818152602001828054611d6e9061583d565b8015611dbb5780601f10611d9057610100808354040283529160200191611dbb565b820191906000526020600020905b815481529060010190602001808311611d9e57829003601f168201915b505050505081565b6002600b541415611e045760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b819055610a7590612495565b60008060005b83811015611e4757611e3366b1a2bc2ec5000083615798565b915080611e3f81615872565b915050611e1a565b5092915050565b606060028054610e899061583d565b6001600160a01b038216331415611eb65760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109a1565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b03163314611f6a5760405162461bcd60e51b8152602060048201819052602482015260008051602061591a83398151915260448201526064016109a1565b604051600090339047908381818185875af1925050503d8060008114611fac576040519150601f19603f3d011682016040523d82523d6000602084013e611fb1565b606091505b505090508061185a5760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e0000000000000000000000000000000060448201526064016109a1565b61200c3383612a1e565b6120725760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b60648201526084016109a1565b61207e84848484612e13565b50505050565b6000546001600160a01b031633146120cc5760405162461bcd60e51b8152602060048201819052602482015260008051602061591a83398151915260448201526064016109a1565b60255460ff161561211f5760405162461bcd60e51b815260206004820152601d60248201527f43616e206f6e6c79206465762073696e676c65206d696e74206f6e636500000060448201526064016109a1565b6121296001612e91565b6025805460ff19166001179055565b6002600b5414156121795760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b55610a75600a612495565b60606000612194613005565b905060006121a184613014565b90508151600014156121b4579392505050565b81816040516020016121c7929190615506565b60405160208183030381529060405292505050919050565b6002600b5414156122205760405162461bcd60e51b815260206004820152601f60248201526000805160206158fa83398151915260448201526064016109a1565b6002600b55610a756006612495565b6010602052816000526040600020818154811061150f57600080fd5b6000546001600160a01b031633146122935760405162461bcd60e51b8152602060048201819052602482015260008051602061591a83398151915260448201526064016109a1565b6001600160a01b0381166122f85760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109a1565b61185a81612dc3565b60606000825167ffffffffffffffff81111561232d57634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561236057816020015b606081526020019060019003908161234b5790505b50905060005b8351811015611e4757600d600085838151811061239357634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002080546123b49061583d565b80601f01602080910402602001604051908101604052809291908181526020018280546123e09061583d565b801561242d5780601f106124025761010080835404028352916020019161242d565b820191906000526020600020905b81548152906001019060200180831161241057829003601f168201915b505050505082828151811061245257634e487b7160e01b600052603260045260246000fd5b6020026020010181905250808061246890615872565b915050612366565b60006001600160e01b0319821663780e9d6360e01b148061095757506109578261312e565b600061249f61317e565b6026549091506124af8383615798565b11156125085760405162461bcd60e51b815260206004820152602260248201527f5468657265206172656e27742074686973206d616e79207a756e6b73206c65666044820152613a1760f11b60648201526084016109a1565b600061251383611e14565b9050803410156125655760405162461bcd60e51b815260206004820152601660248201527f4e65656420746f2073656e64206d6f7265204554482e0000000000000000000060448201526064016109a1565b803411156125a557336108fc61257b83346157e3565b6040518115909202916000818181858888f193505050501580156125a3573d6000803e3d6000fd5b505b61110283612cbc565b60608360006125bd85856157e3565b67ffffffffffffffff8111156125e357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561260d576020820181803683370190505b509050845b848110156126b35782818151811061263a57634e487b7160e01b600052603260045260246000fd5b01602001517fff00000000000000000000000000000000000000000000000000000000000000168261266c88846157e3565b8151811061268a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350806126ab81615872565b915050612612565b509150505b9392505050565b61270760405180610100016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b600061271683600460066125ae565b9050600061272784600660086125ae565b90506000612738856008600a6125ae565b9050600061274986600a600c6125ae565b9050600061275a87600c600e6125ae565b9050600061276b88600e60106125ae565b9050600061277c89601060126125ae565b9050600061278d8a601260146125ae565b90506040518061010001604052806127a48a6128d3565b81526020016127b2896128d3565b81526020016127c0886128d3565b81526020016127ce876128d3565b81526020016127dc866128d3565b81526020016127ea856128d3565b81526020016127f8846128d3565b8152602001612806836128d3565b90529a9950505050505050505050565b600061282182613195565b90506000805b825181101561287a5782818151811061285057634e487b7160e01b600052603260045260246000fd5b6020026020010151851415612868576001915061287a565b8061287281615872565b915050612827565b508061207e5760405162461bcd60e51b815260206004820152602260248201527f736c6f74546f5265726f6c6c206973206e6f742076616c696420666f72207a756044820152616e6b60f01b60648201526084016109a1565b6000806128e383600060016125ae565b905060006128f484600160026125ae565b90506128ff816134c0565b612908836134c0565b61291390600a6157c4565b61291d9190615798565b949350505050565b606061293888888888888888600161378e565b98975050505050505050565b6000600c826040516129569190615535565b9081526040519081900360200190205460ff16806109575750600e8260405161297f9190615535565b9081526040519081900360200190205460ff1692915050565b600081815260056020526040902080546001600160a01b0319166001600160a01b03841690811790915581906129cd826119a2565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008060285460c8612a1891906157e3565b11905090565b6000818152600360205260408120546001600160a01b0316612a975760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109a1565b6000612aa2836119a2565b9050806001600160a01b0316846001600160a01b03161480612add5750836001600160a01b0316612ad284610f0c565b6001600160a01b0316145b8061291d57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff1661291d565b826001600160a01b0316612b24826119a2565b6001600160a01b031614612b8c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016109a1565b6001600160a01b038216612bee5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109a1565b612bf9838383613aa6565b612c04600082612998565b6001600160a01b0383166000908152600460205260408120805460019290612c2d9084906157e3565b90915550506001600160a01b0382166000908152600460205260408120805460019290612c5b908490615798565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b602554610100900460ff16612d135760405162461bcd60e51b815260206004820152601760248201527f4d696e74696e67206973206e6f7420656e61626c65642e00000000000000000060448201526064016109a1565b61185a81612e91565b6000612d27826119a2565b9050612d3581600084613aa6565b612d40600083612998565b6001600160a01b0381166000908152600460205260408120805460019290612d699084906157e3565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b612e1e848484612b11565b612e2a84848484613ab1565b61207e5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109a1565b60275460005b82811015612ffe57612ea93383613c09565b6000612eb483613c23565b9050612ebf81612944565b80612ece5750612ece81613cf6565b15612edf57612edc83613c23565b90505b612ee881612944565b80612ef75750612ef781613cf6565b15612f4e5760405162461bcd60e51b815260206004820152602160248201527f556e61626c6520746f206d696e742c20706c656173652074727920616761696e6044820152601760f91b60648201526084016109a1565b6000838152600d602090815260409091208251612f6d92840190614eb7565b506001600e82604051612f809190615535565b908152604051908190036020018120805492151560ff199093169290921790915533907f0a243cc0f9a9c780fd13164ab86f6e8b1561f98847714dab18ed3064c2e58f4f90612fd59086908590600090615718565b60405180910390a282612fe781615872565b935050508080612ff690615872565b915050612e97565b5060275550565b6060602c8054610e899061583d565b6060816130385750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613062578061304c81615872565b915061305b9050600a836157b0565b915061303c565b60008167ffffffffffffffff81111561308b57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156130b5576020820181803683370190505b5090505b841561291d576130ca6001836157e3565b91506130d7600a8661588d565b6130e2906030615798565b60f81b81838151811061310557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613127600a866157b0565b94506130b9565b60006001600160e01b031982166380ac58cd60e01b148061315f57506001600160e01b03198216635b5e139f60e01b145b8061095757506301ffc9a760e01b6001600160e01b0319831614610957565b600061271060275461319091906157e3565b905090565b60408051600880825261012082019092526060916000919060208201610100803683370190505090506000836000015160631461320d576001826000815181106131ef57634e487b7160e01b600052603260045260246000fd5b911515602092830291909101909101528061320981615872565b9150505b836020015160631461325957600182818151811061323b57634e487b7160e01b600052603260045260246000fd5b911515602092830291909101909101528061325581615872565b9150505b83606001516063146132a65760018260038151811061328857634e487b7160e01b600052603260045260246000fd5b91151560209283029190910190910152806132a281615872565b9150505b83608001516063146132f3576001826004815181106132d557634e487b7160e01b600052603260045260246000fd5b91151560209283029190910190910152806132ef81615872565b9150505b8360a001516063146133405760018260058151811061332257634e487b7160e01b600052603260045260246000fd5b911515602092830291909101909101528061333c81615872565b9150505b8360c0015160631461338d5760018260068151811061336f57634e487b7160e01b600052603260045260246000fd5b911515602092830291909101909101528061338981615872565b9150505b8360e001516063146133da576001826007815181106133bc57634e487b7160e01b600052603260045260246000fd5b91151560209283029190910190910152806133d681615872565b9150505b60008167ffffffffffffffff81111561340357634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561342c578160200160208202803683370190505b5090506000805b84518110156134b55784818151811061345c57634e487b7160e01b600052603260045260246000fd5b6020026020010151156134a3578083838151811061348a57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528161349f81615872565b9250505b806134ad81615872565b915050613433565b509095945050505050565b6040805180820190915260018152600360fc1b6020918201528151908201206000907f044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d141561351157506000919050565b6040805180820190915260018152603160f81b6020918201528251908301207fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6141561355f57506001919050565b6040805180820190915260018152601960f91b6020918201528251908301207fad7c5bef027816a800da1736444fb58a807ef4c9603b7848673f7e3a68eb14a514156135ad57506002919050565b6040805180820190915260018152603360f81b6020918201528251908301207f2a80e1ef1d7842f27f2e6be0972bb708b9a135c38860dbe73c27c3486c34f4de14156135fb57506003919050565b6040805180820190915260018152600d60fa1b6020918201528251908301207f13600b294191fc92924bb3ce4b969c1e7e2bab8f4c93c3fc6d0a51733df3c060141561364957506004919050565b6040805180820190915260018152603560f81b6020918201528251908301207fceebf77a833b30520287ddd9478ff51abbdffa30aa90a8d655dba0e8a79ce0c1141561369757506005919050565b6040805180820190915260018152601b60f91b6020918201528251908301207fe455bf8ea6e7463a1046a0b52804526e119b4bf5136279614e0b1e8e296a4e2d14156136e557506006919050565b6040805180820190915260018152603760f81b6020918201528251908301207f52f1a9b320cab38e5da8a8f97989383aab0a49165fc91c737310e4f7e9821021141561373357506007919050565b6040805180820190915260018152600760fb1b6020918201528251908301207fe4b1702d9298fee62dfeccc57d322a463ad55ca201256d01f62b45b2e1c21c10141561378157506008919050565b506009919050565b919050565b606060008060405180610100016040528088600001518152602001886020015181526020018860400151815260200188606001518152602001886080015181526020018860a0015181526020018860c0015181526020018860e0015181525090506000600781111561381057634e487b7160e01b600052602160045260246000fd5b8614156138d25761382a8b8b60008a600001518989613d9d565b91506012548214156138ca57601180546138439061583d565b80601f016020809104026020016040519081016040528092919081815260200182805461386f9061583d565b80156138bc5780601f10613891576101008083540402835291602001916138bc565b820191906000526020600020905b81548152906001019060200180831161389f57829003601f168201915b505050505092505050612938565b818152613a8c565b6001861415613913576138ee8b8b60018a602001518989613d9d565b915060125482141561390757601180546138439061583d565b60208101829052613a8c565b60028614156139545761392f8b8b60028a604001518989613d9d565b915060125482141561394857601180546138439061583d565b60408101829052613a8c565b6003861415613995576139708b8b60038a606001518989613d9d565b915060125482141561398957601180546138439061583d565b60608101829052613a8c565b60048614156139d6576139b18b8b60048a608001518989613d9d565b91506012548214156139ca57601180546138439061583d565b60808101829052613a8c565b6005861415613a17576139f28b8b60058a60a001518989613d9d565b9150601254821415613a0b57601180546138439061583d565b60a08101829052613a8c565b6006861415613a5857613a338b8b60068a60c001518989613d9d565b9150601254821415613a4c57601180546138439061583d565b60c08101829052613a8c565b613a6b8b8b60078a60e001518989613d9d565b9150601254821415613a8457601180546138439061583d565b60e081018290525b613a97898983613efe565b9b9a5050505050505050505050565b611102838383613f31565b60006001600160a01b0384163b15613bfe57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613af59033908990889088906004016155ff565b602060405180830381600087803b158015613b0f57600080fd5b505af1925050508015613b3f575060408051601f3d908101601f19168201909252613b3c918101906153e5565b60015b613be4573d808015613b6d576040519150601f19603f3d011682016040523d82523d6000602084013e613b72565b606091505b508051613bdc5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109a1565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061291d565b506001949350505050565b610a21828260405180602001604052806000815250613fe9565b60606000613c3660248460006007614067565b90506000613c4960238560016002614067565b905080156000613c5982876140f9565b90506000613c68858584613efe565b9050613c7381612944565b80613c825750613c8281613cf6565b15613cec576000613c9283613195565b905060008151613ca387898c6141d9565b613cad919061588d565b9050613ce7858a898988878781518110613cd757634e487b7160e01b600052603260045260246000fd5b602002602001015189600061378e565b925050505b9695505050505050565b60006109578260118054613d099061583d565b80601f0160208091040260200160405190810160405280929190818152602001828054613d359061583d565b8015613d825780601f10613d5757610100808354040283529160200191613d82565b820191906000526020600020905b815481529060010190602001808311613d6557829003601f168201915b50505050508051602091820120825192909101919091201490565b600080856007811115613dc057634e487b7160e01b600052602160045260246000fd5b90506000613dce8983614263565b80549091506000613de089888461428b565b90506000613df18c8b8b86866143f6565b90506000805b84811015613e4a576000838281518110613e2157634e487b7160e01b600052603260045260246000fd5b60200260200101511115613e385760019150613e4a565b80613e4281615872565b915050613df7565b5080613ec2578715613eb25780613ead5760405162461bcd60e51b815260206004820152602160248201527f556e61626c6520746f206d696e742e20506c656173652074727920616761696e6044820152601760f91b60648201526084016109a1565b613ec2565b6012549650505050505050613cec565b613eed828d8d6007811115613ee757634e487b7160e01b600052602160045260246000fd5b8d614719565b9d9c50505050505050505050505050565b60606000613f0b8361479d565b9050613f28613f1986614884565b613f2286614884565b83614a11565b95945050505050565b6001600160a01b038316613f8c57613f8781600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b613faf565b816001600160a01b0316836001600160a01b031614613faf57613faf8382614ab5565b6001600160a01b038216613fc65761110281614b52565b826001600160a01b0316826001600160a01b031614611102576111028282614c2b565b613ff38383614c6f565b6140006000848484613ab1565b6111025760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b60648201526084016109a1565b6000806140758385876141d9565b90506000805b87548110156140df578781815481106140a457634e487b7160e01b600052603260045260246000fd5b9060005260206000200154826140ba9190615798565b91508282106140cd57925061291d915050565b806140d781615872565b91505061407b565b5086546140ee906001906157e3565b979650505050505050565b61414160405180610100016040528060008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b60405180610100016040528061415985600086614dbd565b815260200161416a85600186614dbd565b815260200161417b85600286614dbd565b815260200161418c85600386614dbd565b815260200161419d85600486614dbd565b81526020016141ae85600586614dbd565b81526020016141bf85600686614dbd565b81526020016141d085600786614dbd565b90529392505050565b600080333a43426141eb6001836157e3565b604080516001600160a01b039096166020870152850193909352606084019190915260808301524060a082015260c0810186905260e0810185905261010081018490526101200160408051601f19818403018152919052805160209091012090506142586127108261588d565b613f28906001615798565b6000818152600f60205260408120836126b85750506000908152601060205260409020919050565b606060006142d08460008760078111156142b557634e487b7160e01b600052602160045260246000fd5b6142c09060026157c4565b6142cb906004615798565b6125ae565b90506000614315858760078111156142f857634e487b7160e01b600052602160045260246000fd5b6143039060026157c4565b61430e906006615798565b60146125ae565b905060008467ffffffffffffffff81111561434057634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561437357816020015b606081526020019060019003908161435e5790505b50905060005b858110156143eb578361438b82614884565b8460405160200161439e93929190615551565b6040516020818303038152906040528282815181106143cd57634e487b7160e01b600052603260045260246000fd5b602002602001018190525080806143e390615872565b915050614379565b509695505050505050565b606060008367ffffffffffffffff81111561442157634e487b7160e01b600052604160045260246000fd5b60405190808252806020026020018201604052801561444a578160200160208202803683370190505b509050600086600781111561446f57634e487b7160e01b600052602160045260246000fd5b9050600061447d8983614263565b905060008667ffffffffffffffff8111156144a857634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156144d1578160200160208202803683370190505b5090506000805b888110156145db57600088828151811061450257634e487b7160e01b600052603260045260246000fd5b6020026020010151905084828154811061452c57634e487b7160e01b600052603260045260246000fd5b906000526020600020015460001480614549575061454981612944565b8061455357508a82145b156145955784828154811061457857634e487b7160e01b600052603260045260246000fd5b90600052602060002001548361458e9190615798565b92506145c8565b60018783815181106145b757634e487b7160e01b600052603260045260246000fd5b911515602092830291909101909101525b50806145d381615872565b9150506144d8565b5060005b888110156147095785818151811061460757634e487b7160e01b600052603260045260246000fd5b6020026020010151156146c85783818154811061463457634e487b7160e01b600052603260045260246000fd5b90600052602060002001548261271061464d91906157e3565b8386848154811061466e57634e487b7160e01b600052603260045260246000fd5b906000526020600020015461468391906157c4565b61468d91906157b0565b6146979190615798565b8382815181106146b757634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506146f7565b60008382815181106146ea57634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b8061470181615872565b9150506145df565b50909a9950505050505050505050565b6000806147278385876141d9565b90506000805b875181101561478e5787818151811061475657634e487b7160e01b600052603260045260246000fd5b6020026020010151826147699190615798565b915082821061477c57925061291d915050565b8061478681615872565b91505061472d565b50600187516140ee91906157e3565b6147e560405180610100016040528060608152602001606081526020016060815260200160608152602001606081526020016060815260200160608152602001606081525090565b6040518061010001604052806147fe8460000151614884565b81526020016148108460200151614884565b81526020016148228460400151614884565b81526020016148348460600151614884565b81526020016148468460800151614884565b81526020016148588460a00151614884565b815260200161486a8460c00151614884565b815260200161487c8460e00151614884565b905292915050565b6060816148a9575050604080518082019091526002815261030360f41b602082015290565b81600114156148d0575050604080518082019091526002815261303160f01b602082015290565b81600214156148f7575050604080518082019091526002815261181960f11b602082015290565b816003141561491e575050604080518082019091526002815261303360f01b602082015290565b81600414156149455750506040805180820190915260028152610c0d60f21b602082015290565b816005141561496c575050604080518082019091526002815261303560f01b602082015290565b8160061415614993575050604080518082019091526002815261181b60f11b602082015290565b81600714156149ba575050604080518082019091526002815261303760f01b602082015290565b81600814156149e1575050604080518082019091526002815261060760f31b602082015290565b8160091415614a08575050604080518082019091526002815261303960f01b602082015290565b61095782613014565b606060008484846000015185602001518660400151604051602001614a3a959493929190615594565b60408051601f19818403018152908290526060850151608086015160a087015160c088015160e0890151949650600095614a779590602001615594565b60405160208183030381529060405290508181604051602001614a9b929190615506565b604051602081830303815290604052925050509392505050565b60006001614ac284611c4e565b614acc91906157e3565b600083815260086020526040902054909150808214614b1f576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090614b64906001906157e3565b6000838152600a602052604081205460098054939450909284908110614b9a57634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060098381548110614bc957634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480614c0f57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000614c3683611c4e565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b6001600160a01b038216614cc55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016109a1565b6000818152600360205260409020546001600160a01b031615614d2a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016109a1565b614d3660008383613aa6565b6001600160a01b0382166000908152600460205260408120805460019290614d5f908490615798565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600080836007811115614de057634e487b7160e01b600052602160045260246000fd5b90506000614dee8683614263565b80549091506000614e028789888786614e31565b905080614e165760639450505050506126b8565b6000614e2484888786614067565b95506126b8945050505050565b600080614e3f8585856141d9565b90508515614e9457806013886007811115614e6a57634e487b7160e01b600052602160045260246000fd5b60088110614e8857634e487b7160e01b600052603260045260246000fd5b01541015915050613f28565b80601b886007811115614e6a57634e487b7160e01b600052602160045260246000fd5b828054614ec39061583d565b90600052602060002090601f016020900481019282614ee55760008555614f2b565b82601f10614efe57805160ff1916838001178555614f2b565b82800160010185558215614f2b579182015b82811115614f2b578251825591602001919060010190614f10565b50614f37929150614faf565b5090565b828054614f479061583d565b90600052602060002090601f016020900481019282614f695760008555614f2b565b82601f10614f825782800160ff19823516178555614f2b565b82800160010185558215614f2b579182015b82811115614f2b578235825591602001919060010190614f94565b5b80821115614f375760008155600101614fb0565b600067ffffffffffffffff831115614fde57614fde6158cd565b614ff1601f8401601f1916602001615743565b905082815283838301111561500557600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461378957600080fd5b600082601f830112615043578081fd5b8135602061505861505383615774565b615743565b80838252828201915082860187848660051b8901011115615077578586fd5b855b8581101561509557813584529284019290840190600101615079565b5090979650505050505050565b600082601f8301126150b2578081fd5b6126b883833560208501614fc4565b6000602082840312156150d2578081fd5b6126b88261501c565b600080604083850312156150ed578081fd5b6150f68361501c565b91506151046020840161501c565b90509250929050565b600080600060608486031215615121578081fd5b61512a8461501c565b92506151386020850161501c565b9150604084013590509250925092565b6000806000806080858703121561515d578081fd5b6151668561501c565b93506151746020860161501c565b925060408501359150606085013567ffffffffffffffff811115615196578182fd5b8501601f810187136151a6578182fd5b6151b587823560208401614fc4565b91505092959194509250565b600080604083850312156151d3578182fd5b6151dc8361501c565b9150602083013580151581146151f0578182fd5b809150509250929050565b6000806040838503121561520d578182fd5b6152168361501c565b946020939093013593505050565b60008060408385031215615236578182fd5b823567ffffffffffffffff8082111561524d578384fd5b818501915085601f830112615260578384fd5b8135602061527061505383615774565b8083825282820191508286018a848660051b890101111561528f578889fd5b8896505b848710156152b8576152a48161501c565b835260019690960195918301918301615293565b50965050860135925050808211156152ce578283fd5b506152db85828601615033565b9150509250929050565b600060208083850312156152f7578182fd5b823567ffffffffffffffff8082111561530e578384fd5b818501915085601f830112615321578384fd5b813561532f61505382615774565b80828252858201915085850189878560051b880101111561534e578788fd5b875b848110156153875781358681111561536657898afd5b6153748c8a838b01016150a2565b8552509287019290870190600101615350565b50909998505050505050505050565b6000602082840312156153a7578081fd5b813567ffffffffffffffff8111156153bd578182fd5b61291d84828501615033565b6000602082840312156153da578081fd5b81356126b8816158e3565b6000602082840312156153f6578081fd5b81516126b8816158e3565b60008060208385031215615413578182fd5b823567ffffffffffffffff8082111561542a578384fd5b818501915085601f83011261543d578384fd5b81358181111561544b578485fd5b86602082850101111561545c578485fd5b60209290920196919550909350505050565b60006020828403121561547f578081fd5b813567ffffffffffffffff811115615495578182fd5b61291d848285016150a2565b6000602082840312156154b2578081fd5b5035919050565b600080604083850312156154cb578182fd5b50508035926020909101359150565b600081518084526154f28160208601602086016157fa565b601f01601f19169290920160200192915050565b600083516155188184602088016157fa565b83519083019061552c8183602088016157fa565b01949350505050565b600082516155478184602087016157fa565b9190910192915050565b600084516155638184602089016157fa565b8451908301906155778183602089016157fa565b845191019061558a8183602088016157fa565b0195945050505050565b600086516155a6818460208b016157fa565b8651908301906155ba818360208b016157fa565b86519101906155cd818360208a016157fa565b85519101906155e08183602089016157fa565b84519101906155f38183602088016157fa565b01979650505050505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613cec60808301846154da565b6000602080830181845280855180835260408601915060408160051b8701019250838701855b8281101561568557603f198886030184526156738583516154da565b94509285019290850190600101615657565b5092979650505050505050565b60006020808301818452808551808352604092508286019150828160051b870101848801865b838110156156f757888303603f190185528151805184528701518784018790526156e4878501826154da565b95880195935050908601906001016156b8565b509098975050505050505050565b6020815260006126b860208301846154da565b83815260606020820152600061573160608301856154da565b90508215156040830152949350505050565b604051601f8201601f1916810167ffffffffffffffff8111828210171561576c5761576c6158cd565b604052919050565b600067ffffffffffffffff82111561578e5761578e6158cd565b5060051b60200190565b600082198211156157ab576157ab6158a1565b500190565b6000826157bf576157bf6158b7565b500490565b60008160001904831182151516156157de576157de6158a1565b500290565b6000828210156157f5576157f56158a1565b500390565b60005b838110156158155781810151838201526020016157fd565b8381111561207e5750506000910152565b600081615835576158356158a1565b506000190190565b600181811c9082168061585157607f821691505b60208210811415611c4857634e487b7160e01b600052602260045260246000fd5b6000600019821415615886576158866158a1565b5060010190565b60008261589c5761589c6158b7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461185a57600080fdfe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220c3b5c1fc99f66c27ba1371a07d349e3ad973e93a164f09e5d854fb6fb9f3901664736f6c63430008040033

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

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