ETH Price: $3,629.56 (-6.78%)

Contract

0x1DDF1d5c0eF63188eE101845aB5AD182742389f7
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw168959072023-03-24 7:34:47635 days ago1679643287IN
0x1DDF1d5c...2742389f7
0 ETH0.0005450117.87521852
Set Approval For...168569372023-03-18 20:11:59641 days ago1679170319IN
0x1DDF1d5c...2742389f7
0 ETH0.0009332915.64148077
Set Approval For...168167852023-03-13 4:47:35646 days ago1678682855IN
0x1DDF1d5c...2742389f7
0 ETH0.0010396417.41675476
Set Approval For...168074742023-03-11 21:22:35648 days ago1678569755IN
0x1DDF1d5c...2742389f7
0 ETH0.0023548439.46581673
Mint167848582023-03-08 16:55:47651 days ago1678294547IN
0x1DDF1d5c...2742389f7
0.01 ETH0.0035683442.16959594
Mint167847862023-03-08 16:40:47651 days ago1678293647IN
0x1DDF1d5c...2742389f7
0.01 ETH0.0030291735.79783232
Mint167847782023-03-08 16:39:11651 days ago1678293551IN
0x1DDF1d5c...2742389f7
0.01 ETH0.0031977637.79015254
Mint167847592023-03-08 16:35:23651 days ago1678293323IN
0x1DDF1d5c...2742389f7
0.01 ETH0.0029739135.14478604
Mint167846532023-03-08 16:13:23651 days ago1678292003IN
0x1DDF1d5c...2742389f7
0.01 ETH0.0025908730.61807797
Mint167845842023-03-08 15:59:35651 days ago1678291175IN
0x1DDF1d5c...2742389f7
0.01 ETH0.0027041331.95655733
Set Approval For...167843732023-03-08 15:17:11651 days ago1678288631IN
0x1DDF1d5c...2742389f7
0 ETH0.0019623532.88796428
Set Approval For...167843732023-03-08 15:17:11651 days ago1678288631IN
0x1DDF1d5c...2742389f7
0 ETH0.0019631432.88796428
Mint167843582023-03-08 15:14:11651 days ago1678288451IN
0x1DDF1d5c...2742389f7
0.01 ETH0.0034322840.56164344
Mint167843582023-03-08 15:14:11651 days ago1678288451IN
0x1DDF1d5c...2742389f7
0.01 ETH0.0034322840.56164344
Mint167843582023-03-08 15:14:11651 days ago1678288451IN
0x1DDF1d5c...2742389f7
0.01 ETH0.0034322840.56164344
Mint167843582023-03-08 15:14:11651 days ago1678288451IN
0x1DDF1d5c...2742389f7
0.01 ETH0.0034322840.56164344
Mint167843582023-03-08 15:14:11651 days ago1678288451IN
0x1DDF1d5c...2742389f7
0.01 ETH0.0034322840.56164344
Mint167843582023-03-08 15:14:11651 days ago1678288451IN
0x1DDF1d5c...2742389f7
0.01 ETH0.0034322840.56164344
Mint167843552023-03-08 15:13:35651 days ago1678288415IN
0x1DDF1d5c...2742389f7
0.01 ETH0.0032592438.51669415
Mint167843442023-03-08 15:11:23651 days ago1678288283IN
0x1DDF1d5c...2742389f7
0.01 ETH0.0029802435.19792068
Mint167843372023-03-08 15:09:59651 days ago1678288199IN
0x1DDF1d5c...2742389f7
0.01 ETH0.003462340.91644892
Mint167843292023-03-08 15:08:23651 days ago1678288103IN
0x1DDF1d5c...2742389f7
0.01 ETH0.0039396646.55770033
Mint167843172023-03-08 15:05:59651 days ago1678287959IN
0x1DDF1d5c...2742389f7
0.01 ETH0.0028668933.85920211
Mint167843012023-03-08 15:02:47651 days ago1678287767IN
0x1DDF1d5c...2742389f7
0.01 ETH0.0026880131.76604207
Mint167842902023-03-08 15:00:35651 days ago1678287635IN
0x1DDF1d5c...2742389f7
0.01 ETH0.0027325732.29264216
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
168959072023-03-24 7:34:47635 days ago1679643287
0x1DDF1d5c...2742389f7
0.665 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OnChainConundrum

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 20 runs

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

pragma solidity 0.8.17;
import "erc721a/contracts/ERC721A.sol";
import "operator-filter-registry/src/DefaultOperatorFilterer.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Base64.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
contract OnChainConundrum is DefaultOperatorFilterer, ERC721A, ReentrancyGuard, Ownable{
  uint256 public MAX_PUBLIC_MINT=2000;
  uint256 public mintPrice=0.005 ether;
  uint256 public maxMintPerWallet=2;
  string[] passables = ["20,66,114","60,42,33","109,103,228","129,12,168","59,24,95","40,42,58",
  "98,79,130","21,0,80","86,43,8","85,57,57","81,85,126"]; // 11
  string[] walls = ["10,38,71","26,18,11","69,60,103","45,3,59","0,0,92","0,0,0","63,59,108","24,39,71","71,45,45","27,36,48"]; // 10
  string[] hints = ["251,86,7","255,0,110","255,190,11","58,134,255","131,56,236"]; // 5
  string[] starts = ["251,248,204","185,251,192","255,207,210","152,245,225","255,214,165","189,178,255","255,255,252","202,255,191","142,236,245", "255,214,165","255,173,173"]; // 11
  string[] glitchAmplitudes = ["0.5", "1", "2"]; // 3
  uint256[] widths = [3, 4, 5, 6]; // 4
  uint256[] gravities = [0, 1, 2]; // 3

  constructor() ERC721A("OnChainConundrum", "OCC") {
  }

  function mint(uint256 quantity) external payable{
      // Mint price: 0.005, collection size 2000, max mint 2.
      require(totalSupply() + quantity <= MAX_PUBLIC_MINT, "Reached max supply");
      require(_numberMinted(msg.sender) + quantity <= maxMintPerWallet, "Max 2 mint per wallet!");
      require(quantity * mintPrice <= msg.value, "Funds not enough.");
      _safeMint(msg.sender, quantity);
  }

  struct Maze {
      bool passHint;
      string passableColor;
      string wallColor;
      string hintColor;
      string startColor;
      string glitchAmplitude;
      uint256 width;
      uint256 gravity;
      uint256 tokenId;
  }

  function random(string memory input) internal pure returns (uint256) {
      return uint256(keccak256(abi.encodePacked(input)));
  }

  function randomRange(uint256 tokenId, string memory keyPrefix, uint256 lower, uint256 upper) internal pure returns (uint256) {
      uint256 rand = random(string(abi.encodePacked(keyPrefix, Strings.toString(tokenId))));
      return (rand % (upper - lower)) + lower;
  }

  function genMaze(uint256 tokenId) public view returns (Maze memory m){
      m.passableColor = passables[randomRange(tokenId, "passableColor", 0, 11)];
      m.wallColor = walls[randomRange(tokenId, "wallColor", 0, 10)];
      m.passHint = (randomRange(tokenId, "passHint?", 0, 2) == 1);
      m.hintColor = hints[randomRange(tokenId, "hintColor", 0, 5)];
      m.startColor = starts[randomRange(tokenId, "startColor", 0, 11)];
      m.width = widths[randomRange(tokenId, "width", 0, 4)];
      m.gravity = gravities[randomRange(tokenId, "gravity", 0, 3)];
      m.glitchAmplitude=glitchAmplitudes[randomRange(tokenId, "glichAmplitudes", 0, 3)];
      m.tokenId = tokenId;
      return m;
  }
  function addTrait(string memory traitType, string memory value) internal pure returns (string memory){
      return string.concat('{"trait_type":"', traitType, '","value":"', value, '"},');
  }
  
  function property(Maze memory m) public pure returns (string memory){
      string memory _property = "";
      if(m.passHint){
          _property = string(abi.encodePacked(_property, 
                                              addTrait("Hint?", "Yes"),
                                              addTrait("Hint Color", m.hintColor)
                                             ));
      }
      else{
          _property = string(abi.encodePacked(_property,
                                              addTrait("Hint?", "No")
                                             ));
      }
      _property = string(abi.encodePacked(
          _property,
          addTrait("Wall Color", m.wallColor),
          addTrait("Passable Color", m.passableColor),
          addTrait("Glitch Amplitude", m.glitchAmplitude),
          addTrait("Start Color", m.startColor)
      )
                        );
      _property = string(abi.encodePacked(
          _property,
          '{"display_type":"number","trait_type":"Width","value":', Strings.toString(m.width), '},',
          '{"display_type":"number","trait_type":"Gravity","value":', Strings.toString(m.gravity), '}'
          )
                        );
      return _property;
  }
  function animatedURI(Maze memory m) public pure returns (string memory){
      string memory head = '<!DOCTYPE html><html lang="en" ><head> <meta charset="UTF-8"> <title>3D Maze</title><style>body {background: #000;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;height: 100vh;width: 100%;}canvas { position: absolute; top: 0%; left: 0%; width: 100vmin; height: 100vmin;display: -webkit-box;display: -ms-flexbox;display: flex;}#win {position: absolute;top: 0%;left: 0%;background-color: rgba(0,0,0,.8);text-align: center;width: 100vmin;height: 100vmin;color: #eee;opacity: 0;display: none;transition: opacity .5s;}#win.showing {display: inline-block;opacity: 1;}#win, button {font: 20px Helvetica;}button {padding: 8px;}</style></head><body><head><meta charset="UTF-8"><title>3D maze</title></head><body> <canvas id="c"></canvas> <div id=win class=showing> <p><button id=beginButton>Start</button></p> </div></body><script> var size=';
      string memory tail = ';</script><script>var speed=5,sens=.05,width=500,axeY=100,tanTheta=5.6572,tanTheta2=tanTheta**2,finish=!1,CANVAS_HEIGHT=CANVAS_WIDTH="800",polygon=[];const wallVertex=[[[0,0,0],[0,0,1],[0,1,1],[0,1,0]],[[0,0,0],[1,0,0],[1,0,1],[0,0,1]],[[0,0,0],[1,0,0],[1,1,0],[0,1,0]]],wallCenter=[[0,.5,.5],[.5,0,.5],[.5,.5,0]];for(var maze=[],allWalls=[],x=0;x<size;++x)for(var y=0;y<size;++y){for(var z=0;z<size;++z)allWalls.push([x,y,z,0]),allWalls.push([x,y,z,1]),allWalls.push([x,y,z,2]);allWalls.push([size,x,y,0]),allWalls.push([x,size,y,1]),allWalls.push([x,y,size,2])}var old,player,keysDown,right,seen=new Set,walls=[],cuts=new Set,starts=new Set,ends=new Set,passed=new Set,pq=(starts.add([0,0,0,0].toString()),starts.add([0,0,0,1].toString()),starts.add([0,0,0,2].toString()),starts.add([1,0,0,0].toString()),starts.add([0,1,0,1].toString()),starts.add([0,0,1,2].toString()),ends.add([size-1,size-1,size-1,0].toString()),ends.add([size-1,size-1,size-1,1].toString()),ends.add([size-1,size-1,size-1,2].toString()),ends.add([size,size-1,size-1,0].toString()),ends.add([size-1,size,size-1,1].toString()),ends.add([size-1,size-1,size,2].toString()),[]),requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/fps)};function genMaze(){maze.length=0,seen=new Set,walls.length=0,cuts=new Set,passed=new Set,finish=!1;for(var e=0;e<size;++e){maze.push([]);for(var a=0;a<size;++a){maze[e].push([]);for(var l=0;l<size;++l)maze[e][a].push(!1)}}function t(e,a,l){function t(e,a,l,t){seen.has([e,a,l,t].toString())||(walls.push([e,a,l,t]),seen.add([e,a,l,t].toString()))}maze[e][a][l]||(maze[e][a][l]=!0,t(e,a,l,0),t(e,a,l,1),t(e,a,l,2),t(e+1,a,l,0),t(e,a+1,l,1),t(e,a,l+1,2))}for(t(0,0,0);0<walls.length;)wall=walls[Math.random()*walls.length|0],walls.splice(walls.indexOf(wall),1),0!=wall[wall[3]]&&wall[0]!=size&&wall[1]!=size&&wall[2]!=size&&(--(cell2=[wall[0],wall[1],wall[2]])[wall[3]],maze[wall[0]][wall[1]][wall[2]]!=maze[cell2[0]][cell2[1]][cell2[2]])&&(cuts.add(wall.toString()),t(wall[0],wall[1],wall[2]),t(cell2[0],cell2[1],cell2[2]))}function clearScreen(){ctx.fillStyle="white",ctx.fillRect(0,0,CANVAS_WIDTH,CANVAS_WIDTH)}var render=function(){clearScreen(),movePlayer(),drawWalls(),drawCompass()};function crossProduct(e,a){return[e[1]*a[2]-e[2]*a[1],e[2]*a[0]-e[0]*a[2],e[0]*a[1]-e[1]*a[0]]}function dotProduct(e,a){return e[0]*a[0]+e[1]*a[1]+e[2]*a[2]}function normalized(e){var a=Math.sqrt(e[0]**2+e[1]**2+e[2]**2);return[e[0]/a,e[1]/a,e[2]/a]}var getLeftBottom=function(e){return[Math.floor(e[0]/width),Math.floor(e[1]/width),Math.floor(e[2]/width)]},aidDealCollision=function(e,a){cuts.has(e.toString())?passed.add(e.toString()):player.l[e[3]]=a[e[3]]},dealCollision=function(e){[x_,y_,z_]=getLeftBottom(player.l),[x__,y__,z__]=getLeftBottom(e),x_-x__==-1&&aidDealCollision([x__,y__,z__,0],e),y_-y__==-1&&aidDealCollision([x__,y__,z__,1],e),z_-z__==-1&&aidDealCollision([x__,y__,z__,2],e),x_-x__==1&&aidDealCollision([x__+1,y__,z__,0],e),y_-y__==1&&aidDealCollision([x__,y__+1,z__,1],e),z_-z__==1&&aidDealCollision([x__,y__,z__+1,2],e),e=player.l.slice(0),[x_,y_,z_]=getLeftBottom(player.l),x_==size-1&&y_==size-1&&z_==size-1&&(finish=!0)},movePlayer=function(){right=normalized(crossProduct(player.dir,player.head)),old=player.l.slice(0),speed=16 in keysDown?10:5,87 in keysDown&&(player.l[0]+=player.dir[0]*speed,player.l[1]+=player.dir[1]*speed,player.l[2]+=player.dir[2]*speed,dealCollision(old)),83 in keysDown&&(player.l[0]-=player.dir[0]*speed,player.l[1]-=player.dir[1]*speed,player.l[2]-=player.dir[2]*speed,dealCollision(old)),68 in keysDown&&(player.l[0]+=right[0]*speed,player.l[1]+=right[1]*speed,player.l[2]+=right[2]*speed,dealCollision(old)),65 in keysDown&&(player.l[0]-=right[0]*speed,player.l[1]-=right[1]*speed,player.l[2]-=right[2]*speed,dealCollision(old)),32 in keysDown&&(player.l[0]+=player.head[0]*speed,player.l[1]+=player.head[1]*speed,player.l[2]+=player.head[2]*speed,dealCollision(old)),player.l[2]-=gravity,dealCollision(old),39 in keysDown&&(player.dir[0]+=right[0]*sens,player.dir[1]+=right[1]*sens,player.dir[2]+=right[2]*sens),37 in keysDown&&(player.dir[0]-=right[0]*sens,player.dir[1]-=right[1]*sens,player.dir[2]-=right[2]*sens),38 in keysDown&&(player.dir[0]+=player.head[0]*sens,player.dir[1]+=player.head[1]*sens,player.dir[2]+=player.head[2]*sens,player.head[0]-=player.dir[0]*sens,player.head[1]-=player.dir[1]*sens,player.head[2]-=player.dir[2]*sens),40 in keysDown&&(player.dir[0]-=player.head[0]*sens,player.dir[1]-=player.head[1]*sens,player.dir[2]-=player.head[2]*sens,player.head[0]+=player.dir[0]*sens,player.head[1]+=player.dir[1]*sens,player.head[2]+=player.dir[2]*sens),player.dir=normalized(player.dir),player.head=normalized(player.head)},getPoint=function(e){return[dotProduct(delta=[e[0]-player.l[0],e[1]-player.l[1],e[2]-player.l[2]],right),dotProduct(delta,player.dir),dotProduct(delta,player.head)]},solver=function(e,a){return a_=(a[0]-e[0])**2+(a[2]-e[2])**2-(a[1]-e[1])**2*tanTheta2,b_=2*((a[0]-e[0])*e[0]+(a[2]-e[2])*e[2]-(a[1]-e[1])*e[1]*tanTheta2),c_=e[0]**2+e[2]**2-e[1]**2*tanTheta2,t=(-b_+Math.sqrt(b_**2-4*a_*c_))/2/a_,t2=(-b_-Math.sqrt(b_**2-4*a_*c_))/2/a_,y1=e[1]+t*(a[1]-e[1]),y2=e[1]+t2*(a[1]-e[1]),y_=!(0<y1&&0<y2)&&0<y2?(t=t2,y2):y1,[(e[0]+t*(a[0]-e[0]))*axeY/y_,(e[2]+t*(a[2]-e[2]))*axeY/y_]},drawLine=function(e,a){theta1=Math.abs(Math.sqrt(e[0]**2+e[2]**2)/e[1]),theta2=Math.abs(Math.sqrt(a[0]**2+a[2]**2)/a[1]),0<e[1]&&theta1<=tanTheta?(polygon.push([e[0]*axeY/e[1],e[2]*axeY/e[1]]),a[1]<=0||theta2>tanTheta?polygon.push(solver(e,a)):polygon.push([a[0]*axeY/a[1],a[2]*axeY/a[1]])):0<a[1]&&theta2<=tanTheta&&(polygon.push(solver(a,e)),polygon.push([a[0]*axeY/a[1],a[2]*axeY/a[1]]))},fillPolygon=function(a){if(0!=polygon.length){let e;a=a.toString();e=cuts.has(a)?starts.has(a)||ends.has(a)?random_rgba(start,.1):passed.has(a)?random_rgba(hint,.1):random_rgba(pass,.1):starts.has(a)||ends.has(a)?random_rgba(start,1):random_rgba(wallC,1),ctx.fillStyle=e,ctx.beginPath(),ctx.moveTo(polygon[0][0],polygon[0][1]);for(var l=1;l<polygon.length;l++)ctx.lineTo(polygon[l][0],polygon[l][1]);ctx.closePath(),ctx.strokeStyle=random_rgba(hint,1),ctx.lineWidth=1,ctx.stroke(),ctx.fill()}},o=Math.round,r=Math.random,s=255;function gliched(e){return o((r()*s+e*amp)/(amp+1))}function random_rgba(e,a){return"rgba("+gliched(e[0])+","+gliched(e[1])+","+gliched(e[2])+","+a+")"}var drawRect=function(e){v0=[(e[0]+wallVertex[e[3]][0][0])*width,(e[1]+wallVertex[e[3]][0][1])*width,(e[2]+wallVertex[e[3]][0][2])*width],v1=[(e[0]+wallVertex[e[3]][1][0])*width,(e[1]+wallVertex[e[3]][1][1])*width,(e[2]+wallVertex[e[3]][1][2])*width],v2=[(e[0]+wallVertex[e[3]][2][0])*width,(e[1]+wallVertex[e[3]][2][1])*width,(e[2]+wallVertex[e[3]][2][2])*width],v3=[(e[0]+wallVertex[e[3]][3][0])*width,(e[1]+wallVertex[e[3]][3][1])*width,(e[2]+wallVertex[e[3]][3][2])*width],v0=getPoint(v0),v1=getPoint(v1),v2=getPoint(v2),v3=getPoint(v3),polygon.length=0,drawLine(v0,v1),drawLine(v1,v2),drawLine(v2,v3),drawLine(v3,v0),fillPolygon(e)};function dist(e){return Math.sqrt(((e[0]+wallCenter[e[3]][0])*width-player.l[0])**2+((e[1]+wallCenter[e[3]][1])*width-player.l[1])**2+((e[2]+wallCenter[e[3]][2])*width-player.l[2])**2)}const swap=(e,a)=>[pq[e],pq[a]]=[pq[a],pq[e]];var addpq=function(l){if(!((priority=dist(l))>6*width)){pq.push([l,priority]);let e=pq.length-1,a;for(;e;){if(a=e-1>>1,priority<=pq[a][1])return;swap(e,a),e=a}}},rmpq=function(){swap(0,pq.length-1);var e=pq.pop();length=pq.length;let a=0,l=2*a+1,t;for(;l<length&&((t=2*a+2)<length&&pq[t][1]>pq[l][1]&&(l=t),!(pq[l][1]<=pq[a][1]));)swap(a,l),l=2*(a=l)+1;return e[0]},drawWalls=function(){for(ctx.setTransform(1,0,0,-1,CANVAS_WIDTH/2,CANVAS_HEIGHT/2),right=normalized(crossProduct(player.dir,player.head)),i=0;i<allWalls.length;i++)addpq(allWalls[i]);for(;0<pq.length;)elem=rmpq(),drawRect(elem);ctx.setTransform(1,0,0,1,0,0)},drawCompass=function(){[x_,y_,z_]=getLeftBottom(player.l);var e=normalized(getPoint([width*(size-.5),width*(size-.5),width*(size-.5)]));drawWords(`(${x_}, ${y_}, ${z_})`,CANVAS_WIDTH*(.5-.1*e[0]),CANVAS_HEIGHT*(.5+.1*e[2])),drawWords(`(${size-1}, ${size-1}, ${size-1})`,CANVAS_WIDTH*(.5+.1*e[0]),CANVAS_HEIGHT*(.5-.1*e[2])),ctx.beginPath(),ctx.moveTo(CANVAS_WIDTH/2+25*e[0],CANVAS_HEIGHT/2-25*e[2]),ctx.lineTo(CANVAS_WIDTH/2-25*e[0],CANVAS_HEIGHT/2+25*e[2]),ctx.lineWidth=5,ctx.strokeStyle="rgba("+pass+"1)",ctx.stroke(),ctx.beginPath(),ctx.arc(CANVAS_WIDTH/2+30*e[0],CANVAS_HEIGHT/2-30*e[2],5,0,2*Math.PI,!0),ctx.lineWidth=5,ctx.stroke()},animationLoop=function e(){window.requestAnimFrame(e),finish&&win.classList.add("showing"),render()};function drawWords(e,a,l){ctx.font="16px Arial",ctx.fillStyle="#000000",ctx.fillText(e,a,l)}function init(){player={l:[width/2,width/2,width/2],dir:[1/1.414,1/1.414,0],head:[0,0,1]},keysDown={},walls=[],finish=!(right=[1,0,0]),genMaze()}beginButton.addEventListener("click",function(){win.classList.remove("showing"),init()}),c.width=CANVAS_WIDTH,c.height=CANVAS_HEIGHT,ctx=c.getContext("2d"),addEventListener("keydown",function(e){e.preventDefault(),keysDown[e.keyCode]=!0},!1),addEventListener("keyup",function(e){delete keysDown[e.keyCode]},!1),init(),animationLoop();</script></body></html>';
      string memory body = string.concat(Strings.toString(m.width), 
                                         ',start=[', m.startColor,
                                         '],hint=[', m.hintColor,
                                         '],wallC=[', m.wallColor
                                        );
      body = string.concat(body,
                          '],pass=[', m.passableColor,
                          '],amp=', m.glitchAmplitude,
                          ',gravity=', Strings.toString(m.gravity)
                          );
      return string(abi.encodePacked("data:text/html;base64,", Base64.encode(bytes(string.concat(head, body, tail)))));
  }

  function addWall(uint256[625] memory maze, uint256[625] memory wallsUnseen, uint256 x, uint256 y, uint256 width, uint256[1] memory wallsLength) internal pure{
      if(maze[x*width+y] == 0){
          wallsUnseen[wallsLength[0]] = x*width + y;
          wallsLength[0] += 1;
      }
  }

  function addCell(uint256[625] memory maze, uint256[625] memory wallsUnseen, uint256 x, uint256 y, uint256 width, uint256[1] memory wallsLength) internal pure{
      if ((x == 0) || (x == width-1) || (y == 0) || (y == width-1)){
          maze[x*width+y] = 1;
      }
      else if(maze[x*width+y] != 0){
      }
      else{
          uint256 count = 0;
          if (maze[(x-1)*width + y] == 2){
              count += 1;
          }
          if (maze[(x+1)*width + y] == 2){
              count += 1;
          }
          if (maze[x*width + y-1] == 2){
              count += 1;
          }
          if (maze[x*width + y+1] == 2){
              count += 1;
          }
          if (count <= 1){
              maze[x*width+y]=2;
              addWall(maze, wallsUnseen, x-1, y, width, wallsLength);
              addWall(maze, wallsUnseen, x, y-1, width, wallsLength);
              addWall(maze, wallsUnseen, x+1, y, width, wallsLength);
              addWall(maze, wallsUnseen, x, y+1, width, wallsLength);
          }
          else{
              maze[x*width+y] = 1;
          }
      }
  }

  function genMazeSVG(Maze memory m) internal pure returns (uint256[625] memory result){ // 13 * 13
      uint256[625] memory wallsUnseen;
      uint256[1] memory wallsLength;
      uint256 realWidth = 4 * m.width + 1;
      addCell(result, wallsUnseen, 1, 1, realWidth, wallsLength);
      uint256 randomSeed = 0;
      while(wallsLength[0] > 0){
          uint256 randomWallIndex = randomRange(m.tokenId + 3000 * randomSeed, "", 0, wallsLength[0]);
          uint256 randomWall = wallsUnseen[randomWallIndex];
          wallsUnseen[randomWallIndex] = wallsUnseen[wallsLength[0]-1];
          wallsLength[0] -= 1;
          addCell(result, wallsUnseen, randomWall / realWidth, randomWall % realWidth, realWidth, wallsLength);
      }
  }
  function randomRGB(uint256 seed) internal pure returns (string memory res){
      res = string.concat(
          "rgb(",
          Strings.toString((seed >> 16) % (2 ** 8)),
          ",",
          Strings.toString((seed >> 8) % (2 ** 8)),
          ",",
          Strings.toString(seed % (2 ** 8)),
          ")"
      );
  }

  function randomTenRGB(uint256 tokenId)internal pure returns (string memory res){
      uint256 randomSeed = random(string(abi.encodePacked(Strings.toString(tokenId), "TENRGB")));
      for (uint256 i=0; i<9; ++i){
          res = string.concat(res, randomRGB(randomSeed >> (24 * i) % (1 << 24)), ";");
      }
      res = string.concat(res, randomRGB(randomSeed >> (24 * 9) % (1 << 24)));
  }

  function localCase(uint256 i, uint256 j)internal pure returns(string memory){
      return string.concat("M", Strings.toString(i*10), " ", Strings.toString(j*10), " h10v10h-10z ");
  }

  function image(Maze memory m) public pure returns (string memory svg){
      uint256 width = m.width*4+1;
      svg = string.concat(
          '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet" viewBox="0 0 ',
          Strings.toString((width)*10),
          " ",
          Strings.toString((width)*10),
          string.concat('"><style>.a {fill: url(#A)} .b {fill: url(#B)}</style><defs><pattern id="A" width="10" height="10" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="10" height="10"><animate attributeName="fill" dur="1s" repeatCount="indefinite" values="',
                        randomTenRGB(m.tokenId),
                        '" keyTimes="0;0.11;0.22;0.33;0.44;0.55;0.66;0.77;0.88;1"/></rect></pattern><pattern id="B" width="10" height="10" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="10" height="10" fill="rgb(',
                        m.startColor,
                        ')"/></pattern></defs>'
                       )
      );
      uint256[625] memory maze = genMazeSVG(m);
      string memory mazeWalls='<path class="a" d="';
      string memory passable=string.concat('<path class="b" d="');
      for (uint256 i=0; i<width; ++i){
          for (uint256 j=0; j<width; ++j){
              if (maze[i*width+j] < 2){
                  mazeWalls = string.concat(mazeWalls, localCase(i, j));
              }
              else{
                  passable = string.concat(passable, localCase(i, j));
              }
          }
      }
      svg = string.concat(
          svg,
          mazeWalls, '"/>',
          passable,
          '"/><rect x="10" y="10" width="10" height="10" fill="rgb(', m.startColor, ')"/></svg>'
      );
      svg = string(abi.encodePacked("data:image/svg+xml;base64,", Base64.encode(bytes(svg))));
  }

  function tokenURI(uint256 tokenId) public view override returns (string memory){
      string memory _name = string(abi.encodePacked("Maze #", Strings.toString(tokenId)));
      string memory _description = "Use WSAD, arrow keys and spacebar to control, even if you don't know where to go.";
      Maze memory m = genMaze(tokenId);
      return string(
          abi.encodePacked(
              "data:application/json;base64,",
              Base64.encode(
                  bytes(
                      abi.encodePacked(
                          '{"name":"', _name,
                          '", "description": "', _description,
                          '", "attributes": [', property(m), 
                          '], "image":"', image(m), 
                          '", "animation_url":"', animatedURI(m), '"}'
                      )
                  )
              )
          )
      );
  }

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

  function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) {
      super.setApprovalForAll(operator, approved);
  }
  
  function approve(address operator, uint256 tokenId) public override payable onlyAllowedOperatorApproval(operator) {
      super.approve(operator, tokenId);

  }

  function transferFrom(address from, address to, uint256 tokenId) public override payable onlyAllowedOperator(from){
      super.transferFrom(from, to, tokenId);
  }

  function safeTransferFrom(address from, address to, uint256 tokenId) public override payable onlyAllowedOperator(from) {
      super.safeTransferFrom(from, to, tokenId);
  }

  function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public override payable onlyAllowedOperator(from){
      super.safeTransferFrom(from, to, tokenId, data);
  }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 3 of 12 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

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 making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

    function _nonReentrantAfter() private {
        // 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 12 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

File 6 of 12 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

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

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

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

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

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

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

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

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

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 12 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

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

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

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

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

File 8 of 12 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

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

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

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

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

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

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

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

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

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public payable virtual override {
        address owner = ownerOf(tokenId);

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

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

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

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

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

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

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

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

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

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

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

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

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

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

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

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

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

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

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

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

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

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

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

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

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

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 9 of 12 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @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,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` 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 payable;

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

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

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

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

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 10 of 12 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 11 of 12 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

File 12 of 12 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_PUBLIC_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bool","name":"passHint","type":"bool"},{"internalType":"string","name":"passableColor","type":"string"},{"internalType":"string","name":"wallColor","type":"string"},{"internalType":"string","name":"hintColor","type":"string"},{"internalType":"string","name":"startColor","type":"string"},{"internalType":"string","name":"glitchAmplitude","type":"string"},{"internalType":"uint256","name":"width","type":"uint256"},{"internalType":"uint256","name":"gravity","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"internalType":"struct OnChainConundrum.Maze","name":"m","type":"tuple"}],"name":"animatedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","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":"genMaze","outputs":[{"components":[{"internalType":"bool","name":"passHint","type":"bool"},{"internalType":"string","name":"passableColor","type":"string"},{"internalType":"string","name":"wallColor","type":"string"},{"internalType":"string","name":"hintColor","type":"string"},{"internalType":"string","name":"startColor","type":"string"},{"internalType":"string","name":"glitchAmplitude","type":"string"},{"internalType":"uint256","name":"width","type":"uint256"},{"internalType":"uint256","name":"gravity","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"internalType":"struct OnChainConundrum.Maze","name":"m","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bool","name":"passHint","type":"bool"},{"internalType":"string","name":"passableColor","type":"string"},{"internalType":"string","name":"wallColor","type":"string"},{"internalType":"string","name":"hintColor","type":"string"},{"internalType":"string","name":"startColor","type":"string"},{"internalType":"string","name":"glitchAmplitude","type":"string"},{"internalType":"uint256","name":"width","type":"uint256"},{"internalType":"uint256","name":"gravity","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"internalType":"struct OnChainConundrum.Maze","name":"m","type":"tuple"}],"name":"image","outputs":[{"internalType":"string","name":"svg","type":"string"}],"stateMutability":"pure","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":"maxMintPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bool","name":"passHint","type":"bool"},{"internalType":"string","name":"passableColor","type":"string"},{"internalType":"string","name":"wallColor","type":"string"},{"internalType":"string","name":"hintColor","type":"string"},{"internalType":"string","name":"startColor","type":"string"},{"internalType":"string","name":"glitchAmplitude","type":"string"},{"internalType":"uint256","name":"width","type":"uint256"},{"internalType":"uint256","name":"gravity","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"internalType":"struct OnChainConundrum.Maze","name":"m","type":"tuple"}],"name":"property","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6107d0600a9081556611c37937e08000600b9081556002600c5560096101e0818152680c8c0b0d8d8b0c4c4d60ba1b61020052608090815260086102208181526736302c34322c333360c01b6102405260a0526102608481526a062607258626066586464760ab1b6102805260c0526102a094855269062647258626458626c760b31b6102c05260e0949094526102e08481526735392c32342c393560c01b61030052610100526103208481526706860586864586a760c31b610340526101205261036082815268039382c37392c3133360bc1b610380526101405260076103a081815266032312c302c38360cc1b6103c052610160526103e0908152660706c58686658760cb1b61040052610180526104209384526738352c35372c353760c01b610440526101a0939093526104a0604052610460908152681c18961c1a9618991b60b91b610480526101c0526200015b91600d9162000838565b506040805161018081018252600861014082018181526731302c33382c373160c01b6101608401528252825180840184528181526732362c31382c313160c01b602082810191909152808401919091528351808501855260098082526836392c36302c31303360b81b828401528486019190915284518086018652600781526634352c332c353960c81b818401526060850152845180860186526006815265181618161c9960d11b8184015260808501528451808601865260058152640302c302c360dc1b8184015260a0850152845180860186529081526806c66586a72586260760bb1b8183015260c0840152835180850185528281526732342c33392c373160c01b8183015260e0840152835180850185528281526737312c34352c343560c01b818301526101008401528351808501909452908352670646e58666c5868760c31b90830152610120810191909152620002bc90600e90600a62000895565b506040805160e081018252600860a08201908152673235312c38362c3760c01b60c0830152815281518083018352600981526803235352c302c3131360bc1b6020828101919091528083019190915282518084018452600a808252693235352c3139302c313160b01b8284015283850191909152835180850185528181526935382c3133342c32353560b01b8184015260608401528351808501909452835269189998961a9b1619199b60b11b9083015260808101919091526200038590600f906005620008e0565b50604080516101a081018252600b61016082018181526a0c8d4c4b0c8d0e0b0c8c0d60aa1b6101808401528252825180840184528181526a189c1a96191a9896189c9960a91b60208281019190915280840191909152835180850185528281526a03235352c3230372c3231360ac1b8183015283850152835180850185528281526a3135322c3234352c32323560a81b818301526060840152835180850185528281526a3235352c3231342c31363560a81b8183018190526080850191909152845180860186528381526a3138392c3137382c32353560a81b8184015260a0850152845180860186528381526a191a9a96191a9a96191a9960a91b8184015260c0850152845180860186528381526a3230322c3235352c31393160a81b8184015260e0850152845180860186528381526a3134322c3233362c32343560a81b81840152610100850152845180860186528381528083019190915261012084015283518085019094528184526a3235352c3137332c31373360a81b908401526101408201929092526200051b916010919062000838565b50604051806060016040528060405180604001604052806003815260200162302e3560e81b8152508152602001604051806040016040528060018152602001603160f81b8152508152602001604051806040016040528060018152602001601960f91b8152508152506011906003620005969291906200092b565b50604080516080810182526003815260046020820181905260059282019290925260066060820152620005cd916012919062000976565b50604080516060810182526000815260016020820152600291810191909152620005fc90601390600362000976565b503480156200060a57600080fd5b50604080518082018252601081526f4f6e436861696e436f6e756e6472756d60801b602080830191909152825180840190935260038352624f434360e81b9083015290733cc6cdda760b79bafa08df41ecfa224f810dceb660016daaeb6d7670e522a718067333cd4e3b15620007a9578015620006f757604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015620006d857600080fd5b505af1158015620006ed573d6000803e3d6000fd5b50505050620007a9565b6001600160a01b03821615620007485760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620006bd565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200078f57600080fd5b505af1158015620007a4573d6000803e3d6000fd5b505050505b5060029050620007ba838262000ae6565b506003620007c9828262000ae6565b506000805550506001600855620007e033620007e6565b62000bb2565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805482825590600052602060002090810192821562000883579160200282015b8281111562000883578251829062000872908262000ae6565b509160200191906001019062000859565b5062000891929150620009c7565b5090565b82805482825590600052602060002090810192821562000883579160200282015b82811115620008835782518290620008cf908262000ae6565b5091602001919060010190620008b6565b82805482825590600052602060002090810192821562000883579160200282015b828111156200088357825182906200091a908262000ae6565b509160200191906001019062000901565b82805482825590600052602060002090810192821562000883579160200282015b8281111562000883578251829062000965908262000ae6565b50916020019190600101906200094c565b828054828255906000526020600020908101928215620009b9579160200282015b82811115620009b9578251829060ff1690559160200191906001019062000997565b5062000891929150620009e8565b8082111562000891576000620009de8282620009ff565b50600101620009c7565b5b80821115620008915760008155600101620009e9565b50805462000a0d9062000a57565b6000825580601f1062000a1e575050565b601f01602090049060005260206000209081019062000a3e9190620009e8565b50565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168062000a6c57607f821691505b60208210810362000a8d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000ae157600081815260208120601f850160051c8101602086101562000abc5750805b601f850160051c820191505b8181101562000add5782815560010162000ac8565b5050505b505050565b81516001600160401b0381111562000b025762000b0262000a41565b62000b1a8162000b13845462000a57565b8462000a93565b602080601f83116001811462000b52576000841562000b395750858301515b600019600386901b1c1916600185901b17855562000add565b600085815260208120601f198616915b8281101562000b835788860151825594840194600190910190840162000b62565b508582101562000ba25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b615f9b8062000bc26000396000f3fe60806040526004361061013c5760003560e01c806301ffc9a71461014157806302c7b0fa1461017657806306fdde03146101a3578063081812fc146101b8578063095ea7b3146101e557806318160ddd146101fa57806323b872dd1461021d5780633929e6ac146102305780633ccfd60b1461025d57806341f434341461027257806342842e0e146102945780636352211e146102a757806365f13097146102c75780636817c76c146102dd57806370a08231146102f3578063715018a6146103135780638da5cb5b1461032857806395d89b411461033d578063a0712d6814610352578063a22cb46514610365578063b228d92514610385578063b88d4fde1461039b578063c627a4d6146103ae578063c87b56dd146103ce578063e985e9c5146103ee578063f14c095c1461040e578063f2fde38b1461042e575b600080fd5b34801561014d57600080fd5b5061016161015c366004612580565b61044e565b60405190151581526020015b60405180910390f35b34801561018257600080fd5b5061019661019136600461268f565b6104a0565b60405161016d919061280e565b3480156101af57600080fd5b506101966105b5565b3480156101c457600080fd5b506101d86101d3366004612821565b610647565b60405161016d919061283a565b6101f86101f3366004612865565b61068b565b005b34801561020657600080fd5b50600154600054035b60405190815260200161016d565b6101f861022b36600461288f565b6106a4565b34801561023c57600080fd5b5061025061024b366004612821565b6106cf565b60405161016d91906128cb565b34801561026957600080fd5b506101f8610c59565b34801561027e57600080fd5b506101d86daaeb6d7670e522a718067333cd4e81565b6101f86102a236600461288f565b610cf4565b3480156102b357600080fd5b506101d86102c2366004612821565b610d19565b3480156102d357600080fd5b5061020f600a5481565b3480156102e957600080fd5b5061020f600b5481565b3480156102ff57600080fd5b5061020f61030e36600461299e565b610d24565b34801561031f57600080fd5b506101f8610d72565b34801561033457600080fd5b506101d8610d86565b34801561034957600080fd5b50610196610d95565b6101f8610360366004612821565b610da4565b34801561037157600080fd5b506101f86103803660046129b9565b610ecf565b34801561039157600080fd5b5061020f600c5481565b6101f86103a93660046129f0565b610ee3565b3480156103ba57600080fd5b506101966103c936600461268f565b610f10565b3480156103da57600080fd5b506101966103e9366004612821565b61115f565b3480156103fa57600080fd5b50610161610409366004612a6b565b6111f7565b34801561041a57600080fd5b5061019661042936600461268f565b611225565b34801561043a57600080fd5b506101f861044936600461299e565b61145f565b60006301ffc9a760e01b6001600160e01b03198316148061047f57506380ac58cd60e01b6001600160e01b03198316145b8061049a5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606000604051806103e001604052806103b581526020016136c86103b59139905060006040518061246001604052806124388152602001613add6124389139905060006104f18560c001516114d5565b8560800151866060015187604001516040516020016105139493929190612aba565b60405160208183030381529060405290508085602001518660a0015161053c8860e001516114d5565b60405160200161054f9493929190612b52565b604051602081830303815290604052905061058c83828460405160200161057893929190612be8565b604051602081830303815290604052611567565b60405160200161059c9190612c2b565b6040516020818303038152906040529350505050919050565b6060600280546105c490612c69565b80601f01602080910402602001604051908101604052809291908181526020018280546105f090612c69565b801561063d5780601f106106125761010080835404028352916020019161063d565b820191906000526020600020905b81548152906001019060200180831161062057829003601f168201915b5050505050905090565b6000610652826116b9565b61066f576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b81610695816116e0565b61069f8383611790565b505050565b826001600160a01b03811633146106be576106be336116e0565b6106c9848484611830565b50505050565b61072060405180610120016040528060001515815260200160608152602001606081526020016060815260200160608152602001606081526020016000815260200160008152602001600081525090565b600d610755836040518060400160405280600d81526020016c3830b9b9b0b13632a1b7b637b960991b8152506000600b6119b7565b8154811061076557610765612ca3565b90600052602060002001805461077a90612c69565b80601f01602080910402602001604051908101604052809291908181526020018280546107a690612c69565b80156107f35780601f106107c8576101008083540402835291602001916107f3565b820191906000526020600020905b8154815290600101906020018083116107d657829003601f168201915b50505050508160200181905250600e61083183604051806040016040528060098152602001683bb0b63621b7b637b960b91b8152506000600a6119b7565b8154811061084157610841612ca3565b90600052602060002001805461085690612c69565b80601f016020809104026020016040519081016040528092919081815260200182805461088290612c69565b80156108cf5780601f106108a4576101008083540402835291602001916108cf565b820191906000526020600020905b8154815290600101906020018083116108b257829003601f168201915b5050505050816040018190525061090b82604051806040016040528060098152602001687061737348696e743f60b81b815250600060026119b7565b60011481526040805180820190915260098152683434b73a21b7b637b960b91b6020820152600f90610942908490600060056119b7565b8154811061095257610952612ca3565b90600052602060002001805461096790612c69565b80601f016020809104026020016040519081016040528092919081815260200182805461099390612c69565b80156109e05780601f106109b5576101008083540402835291602001916109e0565b820191906000526020600020905b8154815290600101906020018083116109c357829003601f168201915b505050505081606001819052506010610a1f836040518060400160405280600a81526020016939ba30b93a21b7b637b960b11b8152506000600b6119b7565b81548110610a2f57610a2f612ca3565b906000526020600020018054610a4490612c69565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7090612c69565b8015610abd5780601f10610a9257610100808354040283529160200191610abd565b820191906000526020600020905b815481529060010190602001808311610aa057829003601f168201915b505050505081608001819052506012610af783604051806040016040528060058152602001640eed2c8e8d60db1b815250600060046119b7565b81548110610b0757610b07612ca3565b90600052602060002001548160c00181815250506013610b4a83604051806040016040528060078152602001666772617669747960c81b815250600060036119b7565b81548110610b5a57610b5a612ca3565b90600052602060002001548160e00181815250506011610ba5836040518060400160405280600f81526020016e676c696368416d706c69747564657360881b815250600060036119b7565b81548110610bb557610bb5612ca3565b906000526020600020018054610bca90612c69565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf690612c69565b8015610c435780601f10610c1857610100808354040283529160200191610c43565b820191906000526020600020905b815481529060010190602001808311610c2657829003601f168201915b505050505060a082015261010081019190915290565b610c61611a19565b604051600090339047908381818185875af1925050503d8060008114610ca3576040519150601f19603f3d011682016040523d82523d6000602084013e610ca8565b606091505b5050905080610cf15760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064015b60405180910390fd5b50565b826001600160a01b0381163314610d0e57610d0e336116e0565b6106c9848484611a78565b600061049a82611a93565b60006001600160a01b038216610d4d576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b610d7a611a19565b610d846000611b01565b565b6009546001600160a01b031690565b6060600380546105c490612c69565b600a5481610db56001546000540390565b610dbf9190612ccf565b1115610e025760405162461bcd60e51b815260206004820152601260248201527152656163686564206d617820737570706c7960701b6044820152606401610ce8565b600c5433600090815260056020526040908190205483911c6001600160401b0316610e2d9190612ccf565b1115610e745760405162461bcd60e51b81526020600482015260166024820152754d61782032206d696e74207065722077616c6c65742160501b6044820152606401610ce8565b34600b5482610e839190612ce2565b1115610ec55760405162461bcd60e51b8152602060048201526011602482015270233ab73239903737ba1032b737bab3b41760791b6044820152606401610ce8565b610cf13382611b53565b81610ed9816116e0565b61069f8383611b71565b836001600160a01b0381163314610efd57610efd336116e0565b610f0985858585611bdd565b5050505050565b60408051602081019091526000815281516060919015610fc55780610f6d6040518060400160405280600581526020016448696e743f60d81b8152506040518060400160405280600381526020016259657360e81b815250611c21565b610f9d6040518060400160405280600a8152602001692434b73a1021b7b637b960b11b8152508660600151611c21565b604051602001610faf93929190612be8565b604051602081830303815290604052905061102a565b806110076040518060400160405280600581526020016448696e743f60d81b815250604051806040016040528060028152602001614e6f60f01b815250611c21565b604051602001611018929190612cf9565b60405160208183030381529060405290505b8061105b6040518060400160405280600a8152602001692bb0b6361021b7b637b960b11b8152508560400151611c21565b61108f6040518060400160405280600e81526020016d2830b9b9b0b136329021b7b637b960911b8152508660200151611c21565b6110c56040518060400160405280601081526020016f476c6974636820416d706c697475646560801b8152508760a00151611c21565b6110f66040518060400160405280600b81526020016a29ba30b93a1021b7b637b960a91b8152508860800151611c21565b60405160200161110a959493929190612d28565b6040516020818303038152906040529050806111298460c001516114d5565b6111368560e001516114d5565b60405160200161114893929190612d93565b60408051601f198184030181529190529392505050565b6060600061116c836114d5565b60405160200161117c9190612e64565b60408051601f1981840301815260808301909152605180835290925060009190615f156020830139905060006111b1856106cf565b90506111e783836111c184610f10565b6111ca85611225565b6111d3866104a0565b604051602001610578959493929190612e92565b60405160200161059c9190612f9e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b606060008260c00151600461123a9190612ce2565b611245906001612ccf565b905061125a61125582600a612ce2565b6114d5565b61126861125583600a612ce2565b611276856101000151611c4d565b856080015160405160200161128c929190612fe3565b60408051601f19818403018152908290526112ab939291602001613249565b604051602081830303815290604052915060006112c784611d0b565b90506000604051806040016040528060138152602001721e3830ba341031b630b9b99e91309110321e9160691b8152509050600060405160200161132490721e3830ba341031b630b9b99e91311110321e9160691b815260130190565b604051602081830303815290604052905060005b848110156114005760005b858110156113ef57600285826113598986612ce2565b6113639190612ccf565b610271811061137457611374612ca3565b602002015110156113b1578361138a8383611e36565b60405160200161139b929190612cf9565b60405160208183030381529060405293506113df565b826113bc8383611e36565b6040516020016113cd929190612cf9565b60405160208183030381529060405292505b6113e88161330d565b9050611343565b506113f98161330d565b9050611338565b50608086015160405161141b91879185918591602001613326565b604051602081830303815290604052945061143585611567565b60405160200161144591906133ef565b604051602081830303815290604052945050505050919050565b611467611a19565b6001600160a01b0381166114cc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ce8565b610cf181611b01565b606060006114e283611e65565b60010190506000816001600160401b038111156115015761150161259d565b6040519080825280601f01601f19166020018201604052801561152b576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461153557509392505050565b6060815160000361158657505060408051602081019091526000815290565b6000604051806060016040528060408152602001613a7d60409139905060006003845160026115b59190612ccf565b6115bf9190613447565b6115ca906004612ce2565b6001600160401b038111156115e1576115e161259d565b6040519080825280601f01601f19166020018201604052801561160b576020820181803683370190505b509050600182016020820185865187015b80821015611677576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f811685015184535060018301925061161c565b505060038651066001811461169357600281146116a6576116ae565b603d6001830353603d60028303536116ae565b603d60018303535b509195945050505050565b600080548210801561049a575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b15610cf157604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561174d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611771919061345b565b610cf15780604051633b79c77360e21b8152600401610ce8919061283a565b600061179b82610d19565b9050336001600160a01b038216146117d4576117b781336111f7565b6117d4576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061183b82611a93565b9050836001600160a01b0316816001600160a01b03161461186e5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176118bb5761189e86336111f7565b6118bb57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166118e257604051633a954ecd60e21b815260040160405180910390fd5b80156118ed57600082555b6001600160a01b0386811660009081526005602052604080822080546000190190559187168152208054600101905561192a85600160e11b611f3b565b600085815260046020526040812091909155600160e11b8416900361197f5760018401600081815260046020526040812054900361197d57600054811461197d5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b0316600080516020613abd83398151915260405160405180910390a45b505050505050565b6000806119ec856119c7886114d5565b6040516020016119d8929190612cf9565b604051602081830303815290604052611f50565b9050836119f98185613478565b611a03908361348b565b611a0d9190612ccf565b9150505b949350505050565b33611a22610d86565b6001600160a01b031614610d845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ce8565b61069f83838360405180602001604052806000815250610ee3565b600081600054811015611ae85760008181526004602052604081205490600160e01b82169003611ae6575b80600003611adf575060001901600081815260046020526040902054611abe565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611b6d828260405180602001604052806000815250611f81565b5050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611be88484846106a4565b6001600160a01b0383163b156106c957611c0484848484611fe7565b6106c9576040516368d2bf6b60e11b815260040160405180910390fd5b60608282604051602001611c3692919061349f565b604051602081830303815290604052905092915050565b60606000611c6d611c5d846114d5565b6040516020016119d89190613511565b905060005b6009811015611cd45782611ca16301000000611c8f846018612ce2565b611c99919061348b565b84901c6120cf565b604051602001611cb292919061353b565b604051602081830303815290604052925080611ccd9061330d565b9050611c72565b5081611ce360d883901c6120cf565b604051602001611cf4929190612cf9565b604051602081830303815290604052915050919050565b611d1361252c565b611d1b61252c565b611d2361254c565b60008460c001516004611d369190612ce2565b611d41906001612ccf565b9050611d528484600180858761212e565b60005b825115611e2d576000611d94611d6d83610bb8612ce2565b886101000151611d7d9190612ccf565b6040805160208101909152600080825287516119b7565b9050600085826102718110611dab57611dab612ca3565b602002015185519091508690611dc390600190613478565b6102718110611dd457611dd4612ca3565b602002015186836102718110611dec57611dec612ca3565b602002015284516001908690611e03908390613478565b905250611e268787611e158785613447565b611e1f888661348b565b888a61212e565b5050611d55565b50505050919050565b6060611e4661125584600a612ce2565b611e5461125584600a612ce2565b604051602001611c36929190613576565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611ea45772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6904ee2d6d415b85acef8160201b8310611ece576904ee2d6d415b85acef8160201b830492506020015b662386f26fc100008310611eec57662386f26fc10000830492506010015b6305f5e1008310611f04576305f5e100830492506008015b6127108310611f1857612710830492506004015b60648310611f2a576064830492506002015b600a831061049a5760010192915050565b4260a01b176001600160a01b03919091161790565b600081604051602001611f6391906135d9565b60408051601f19818403018152919052805160209091012092915050565b611f8b83836123c5565b6001600160a01b0383163b1561069f576000548281035b611fb56000868380600101945086611fe7565b611fd2576040516368d2bf6b60e11b815260040160405180910390fd5b818110611fa2578160005414610f0957600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061201c9033908990889088906004016135f5565b6020604051808303816000875af1925050508015612057575060408051601f3d908101601f1916820190925261205491810190613632565b60015b6120b5573d808015612085576040519150601f19603f3d011682016040523d82523d6000602084013e61208a565b606091505b5080516000036120ad576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a11565b60606120e4611255610100601085901c61348b565b6120f7611255610100600886901c61348b565b6121066112556101008661348b565b6040516020016121189392919061364f565b6040516020818303038152906040529050919050565b8315806121445750612141600183613478565b84145b8061214d575082155b80612161575061215e600183613478565b83145b1561219957600186846121748588612ce2565b61217e9190612ccf565b610271811061218f5761218f612ca3565b60200201526119af565b85836121a58487612ce2565b6121af9190612ccf565b61027181106121c0576121c0612ca3565b60200201516000036119af5760008684846121dc600189613478565b6121e69190612ce2565b6121f09190612ccf565b610271811061220157612201612ca3565b602002015160020361221b57612218600182612ccf565b90505b868484612229886001612ccf565b6122339190612ce2565b61223d9190612ccf565b610271811061224e5761224e612ca3565b602002015160020361226857612265600182612ccf565b90505b866001856122768689612ce2565b6122809190612ccf565b61228a9190613478565b610271811061229b5761229b612ca3565b60200201516002036122b5576122b2600182612ccf565b90505b86846122c18588612ce2565b6122cb9190612ccf565b6122d6906001612ccf565b61027181106122e7576122e7612ca3565b6020020151600203612301576122fe600182612ccf565b90505b6001811161238d57600287856123178689612ce2565b6123219190612ccf565b610271811061233257612332612ca3565b602002015261234f8787612347600189613478565b8787876124ad565b612367878787612360600189613478565b87876124ad565b6123778787612347886001612ccf565b612388878787612360886001612ccf565b6123bc565b6001878561239b8689612ce2565b6123a59190612ccf565b61027181106123b6576123b6612ca3565b60200201525b50505050505050565b60008054908290036123ea5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600090815260056020526040902080546001600160401b018402019055612421836001841460e11b611f3b565b6000828152600460205260408120919091556001600160a01b038416908383019083908390600080516020613abd8339815191528180a4600183015b8181146124835780836000600080516020613abd833981519152600080a460010161245d565b50816000036124a457604051622e076360e81b815260040160405180910390fd5b60005550505050565b85836124b98487612ce2565b6124c39190612ccf565b61027181106124d4576124d4612ca3565b60200201516000036119af57826124eb8386612ce2565b6124f59190612ccf565b81518690610271811061250a5761250a612ca3565b602002015280516001908290612521908390612ccf565b905250505050505050565b60405180614e200160405280610271906020820280368337509192915050565b60405180602001604052806001906020820280368337509192915050565b6001600160e01b031981168114610cf157600080fd5b60006020828403121561259257600080fd5b8135611adf8161256a565b634e487b7160e01b600052604160045260246000fd5b60405161012081016001600160401b03811182821017156125d6576125d661259d565b60405290565b8015158114610cf157600080fd5b80356125f5816125dc565b919050565b60006001600160401b03808411156126145761261461259d565b604051601f8501601f19908116603f0116810190828211818310171561263c5761263c61259d565b8160405280935085815286868601111561265557600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261268057600080fd5b611adf838335602085016125fa565b6000602082840312156126a157600080fd5b81356001600160401b03808211156126b857600080fd5b9083019061012082860312156126cd57600080fd5b6126d56125b3565b6126de836125ea565b81526020830135828111156126f257600080fd5b6126fe8782860161266f565b60208301525060408301358281111561271657600080fd5b6127228782860161266f565b60408301525060608301358281111561273a57600080fd5b6127468782860161266f565b60608301525060808301358281111561275e57600080fd5b61276a8782860161266f565b60808301525060a08301358281111561278257600080fd5b61278e8782860161266f565b60a08301525060c0838101359082015260e080840135908201526101009283013592810192909252509392505050565b60005b838110156127d95781810151838201526020016127c1565b50506000910152565b600081518084526127fa8160208601602086016127be565b601f01601f19169290920160200192915050565b602081526000611adf60208301846127e2565b60006020828403121561283357600080fd5b5035919050565b6001600160a01b0391909116815260200190565b80356001600160a01b03811681146125f557600080fd5b6000806040838503121561287857600080fd5b6128818361284e565b946020939093013593505050565b6000806000606084860312156128a457600080fd5b6128ad8461284e565b92506128bb6020850161284e565b9150604084013590509250925092565b602081526128de60208201835115159052565b600060208301516101208060408501526128fc6101408501836127e2565b91506040850151601f198086850301606087015261291a84836127e2565b9350606087015191508086850301608087015261293784836127e2565b935060808701519150808685030160a087015261295484836127e2565b935060a08701519150808685030160c08701525061297283826127e2565b60c087015160e08781019190915287015161010080880191909152909601519190940152509192915050565b6000602082840312156129b057600080fd5b611adf8261284e565b600080604083850312156129cc57600080fd5b6129d58361284e565b915060208301356129e5816125dc565b809150509250929050565b60008060008060808587031215612a0657600080fd5b612a0f8561284e565b9350612a1d6020860161284e565b92506040850135915060608501356001600160401b03811115612a3f57600080fd5b8501601f81018713612a5057600080fd5b612a5f878235602084016125fa565b91505092959194509250565b60008060408385031215612a7e57600080fd5b612a878361284e565b9150612a956020840161284e565b90509250929050565b60008151612ab08185602086016127be565b9290920192915050565b60008551612acc818460208a016127be565b672c73746172743d5b60c01b9083019081528551612af1816008840160208a016127be565b675d2c68696e743d5b60c01b600892909101918201528451612b1a8160108401602089016127be565b685d2c77616c6c433d5b60b81b601092909101918201528351612b448160198401602088016127be565b016019019695505050505050565b60008551612b64818460208a016127be565b675d2c706173733d5b60c01b9083019081528551612b89816008840160208a016127be565b655d2c616d703d60d01b600892909101918201528451612bb081600e8401602089016127be565b682c677261766974793d60b81b600e92909101918201528351612bda8160178401602088016127be565b016017019695505050505050565b60008451612bfa8184602089016127be565b845190830190612c0e8183602089016127be565b8451910190612c218183602088016127be565b0195945050505050565b7519185d184e9d195e1d0bda1d1b5b0ed8985cd94d8d0b60521b815260008251612c5c8160168501602087016127be565b9190910160160192915050565b600181811c90821680612c7d57607f821691505b602082108103612c9d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561049a5761049a612cb9565b808202811582820484141761049a5761049a612cb9565b60008351612d0b8184602088016127be565b835190830190612d1f8183602088016127be565b01949350505050565b60008651612d3a818460208b016127be565b865190830190612d4e818360208b016127be565b8651910190612d61818360208a016127be565b8551910190612d748183602089016127be565b8451910190612d878183602088016127be565b01979650505050505050565b60008451612da58184602089016127be565b80830190507f7b22646973706c61795f74797065223a226e756d626572222c2274726169745f808252753a3cb832911d112bb4b23a341116113b30b63ab2911d60511b60208301528551612e00816036850160208a016127be565b611f4b60f21b603693909101928301526038820152773a3cb832911d1123b930bb34ba3c9116113b30b63ab2911d60411b60588201528351612e498160708401602088016127be565b607d60f81b6070929091019182015260710195945050505050565b654d617a65202360d01b815260008251612e858160068501602087016127be565b9190910160060192915050565b683d913730b6b2911d1160b91b81528551600090612eb7816009850160208b016127be565b72111610113232b9b1b934b83a34b7b7111d101160691b6009918401918201528651612eea81601c840160208b016127be565b71222c202261747472696275746573223a205b60701b601c92909101918201528551612f1d81602e840160208a016127be565b6009818301019150506b2e96101134b6b0b3b2911d1160a11b60258201528451612f4e8160318401602089016127be565b612f91612f83612f7d603185850101731116101130b734b6b0ba34b7b72fbab936111d1160611b815260140190565b87612a9e565b61227d60f01b815260020190565b9998505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251612fd681601d8501602087016127be565b91909101601d0192915050565b7f223e3c7374796c653e2e61207b66696c6c3a2075726c282341297d202e62207b81527f66696c6c3a2075726c282342297d3c2f7374796c653e3c646566733e3c70617460208201527f7465726e2069643d2241222077696474683d22313022206865696768743d223160408201527f3022207061747465726e556e6974733d227573657253706163654f6e5573652260608201527f3e3c7265637420783d22302220793d2230222077696474683d2231302220686560808201527f696768743d223130223e3c616e696d617465206174747269627574654e616d6560a08201527f3d2266696c6c22206475723d2231732220726570656174436f756e743d22696e60c0820152713232b334b734ba3291103b30b63ab2b99e9160711b60e08201526000835161311a8160f28501602088016127be565b7f22206b657954696d65733d22303b302e31313b302e32323b302e33333b302e3460f2918401918201527f343b302e35353b302e36363b302e37373b302e38383b31222f3e3c2f726563746101128201527f3e3c2f7061747465726e3e3c7061747465726e2069643d2242222077696474686101328201527f3d22313022206865696768743d22313022207061747465726e556e6974733d226101528201527f7573657253706163654f6e557365223e3c7265637420783d22302220793d22306101728201527f222077696474683d22313022206865696768743d223130222066696c6c3d2272610192820152620cec4560eb1b6101b28201526132226101b5820185612a9e565b741491179f1e17b830ba3a32b9371f1e17b232b3399f60591b815260150195945050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f73766722207072657365727665417370656374526174696f3d22784d696020820152780372ca6b4b71036b2b2ba11103b34b2bba137bc1e911810181603d1b6040820152600084516132c98160598501602089016127be565b600160fd1b60599184019182015284516132ea81605a8401602089016127be565b845191019061330081605a8401602088016127be565b01605a0195945050505050565b60006001820161331f5761331f612cb9565b5060010190565b60008551613338818460208a016127be565b85519083019061334c818360208a016127be565b6211179f60e91b9101908152845161336b8160038401602089016127be565b7f222f3e3c7265637420783d2231302220793d223130222077696474683d223130600392909101918201527704440d0cad2ced0e87a4462604440ccd2d8d87a44e4cec4560431b602382015283516133ca81603b8401602088016127be565b691491179f1e17b9bb339f60b11b603b92909101918201526045019695505050505050565b7919185d184e9a5b5859d94bdcdd99cade1b5b0ed8985cd94d8d0b60321b81526000825161342481601a8501602087016127be565b91909101601a0192915050565b634e487b7160e01b600052601260045260246000fd5b60008261345657613456613431565b500490565b60006020828403121561346d57600080fd5b8151611adf816125dc565b8181038181111561049a5761049a612cb9565b60008261349a5761349a613431565b500690565b6e3d913a3930b4ba2fba3cb832911d1160891b815282516000906134ca81600f8501602088016127be565b6a1116113b30b63ab2911d1160a91b600f9184019182015283516134f581601a8401602088016127be565b62089f4b60ea1b601a9290910191820152601d01949350505050565b600082516135238184602087016127be565b652a22a72923a160d11b920191825250600601919050565b6000835161354d8184602088016127be565b8351908301906135618183602088016127be565b603b60f81b9101908152600101949350505050565b604d60f81b8152600083516135928160018501602088016127be565b600160fd1b60019184019182015283516135b38160028401602088016127be565b6c0103418983b1898341698983d1609d1b60029290910191820152600f01949350505050565b600082516135eb8184602087016127be565b9190910192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613628908301846127e2565b9695505050505050565b60006020828403121561364457600080fd5b8151611adf8161256a565b630e4cec4560e31b81526000845161366e8160048501602089016127be565b8083019050600b60fa1b8060048301528551613691816005850160208a016127be565b600592019182015283516136ac8160068401602088016127be565b602960f81b600692909101918201526007019594505050505056fe3c21444f43545950452068746d6c3e3c68746d6c206c616e673d22656e22203e3c686561643e203c6d65746120636861727365743d225554462d38223e203c7469746c653e3344204d617a653c2f7469746c653e3c7374796c653e626f6479207b6261636b67726f756e643a20233030303b646973706c61793a202d7765626b69742d626f783b646973706c61793a202d6d732d666c6578626f783b646973706c61793a20666c65783b2d7765626b69742d626f782d6f7269656e743a20766572746963616c3b2d7765626b69742d626f782d646972656374696f6e3a206e6f726d616c3b2d6d732d666c65782d646972656374696f6e3a20636f6c756d6e3b666c65782d646972656374696f6e3a20636f6c756d6e3b6865696768743a2031303076683b77696474683a20313030253b7d63616e766173207b20706f736974696f6e3a206162736f6c7574653b20746f703a2030253b206c6566743a2030253b2077696474683a20313030766d696e3b206865696768743a20313030766d696e3b646973706c61793a202d7765626b69742d626f783b646973706c61793a202d6d732d666c6578626f783b646973706c61793a20666c65783b7d2377696e207b706f736974696f6e3a206162736f6c7574653b746f703a2030253b6c6566743a2030253b6261636b67726f756e642d636f6c6f723a207267626128302c302c302c2e38293b746578742d616c69676e3a2063656e7465723b77696474683a20313030766d696e3b6865696768743a20313030766d696e3b636f6c6f723a20236565653b6f7061636974793a20303b646973706c61793a206e6f6e653b7472616e736974696f6e3a206f706163697479202e35733b7d2377696e2e73686f77696e67207b646973706c61793a20696e6c696e652d626c6f636b3b6f7061636974793a20313b7d2377696e2c20627574746f6e207b666f6e743a20323070782048656c7665746963613b7d627574746f6e207b70616464696e673a203870783b7d3c2f7374796c653e3c2f686561643e3c626f64793e3c686561643e3c6d65746120636861727365743d225554462d38223e3c7469746c653e3344206d617a653c2f7469746c653e3c2f686561643e3c626f64793e203c63616e7661732069643d2263223e3c2f63616e7661733e203c6469762069643d77696e20636c6173733d73686f77696e673e203c703e3c627574746f6e2069643d626567696e427574746f6e3e53746172743c2f627574746f6e3e3c2f703e203c2f6469763e3c2f626f64793e3c7363726970743e207661722073697a653d4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef3b3c2f7363726970743e3c7363726970743e7661722073706565643d352c73656e733d2e30352c77696474683d3530302c617865593d3130302c74616e54686574613d352e363537322c74616e5468657461323d74616e54686574612a2a322c66696e6973683d21312c43414e5641535f4845494748543d43414e5641535f57494454483d22383030222c706f6c79676f6e3d5b5d3b636f6e73742077616c6c5665727465783d5b5b5b302c302c305d2c5b302c302c315d2c5b302c312c315d2c5b302c312c305d5d2c5b5b302c302c305d2c5b312c302c305d2c5b312c302c315d2c5b302c302c315d5d2c5b5b302c302c305d2c5b312c302c305d2c5b312c312c305d2c5b302c312c305d5d5d2c77616c6c43656e7465723d5b5b302c2e352c2e355d2c5b2e352c302c2e355d2c5b2e352c2e352c305d5d3b666f7228766172206d617a653d5b5d2c616c6c57616c6c733d5b5d2c783d303b783c73697a653b2b2b7829666f722876617220793d303b793c73697a653b2b2b79297b666f7228766172207a3d303b7a3c73697a653b2b2b7a29616c6c57616c6c732e70757368285b782c792c7a2c305d292c616c6c57616c6c732e70757368285b782c792c7a2c315d292c616c6c57616c6c732e70757368285b782c792c7a2c325d293b616c6c57616c6c732e70757368285b73697a652c782c792c305d292c616c6c57616c6c732e70757368285b782c73697a652c792c315d292c616c6c57616c6c732e70757368285b782c792c73697a652c325d297d766172206f6c642c706c617965722c6b657973446f776e2c72696768742c7365656e3d6e6577205365742c77616c6c733d5b5d2c637574733d6e6577205365742c7374617274733d6e6577205365742c656e64733d6e6577205365742c7061737365643d6e6577205365742c70713d287374617274732e616464285b302c302c302c305d2e746f537472696e672829292c7374617274732e616464285b302c302c302c315d2e746f537472696e672829292c7374617274732e616464285b302c302c302c325d2e746f537472696e672829292c7374617274732e616464285b312c302c302c305d2e746f537472696e672829292c7374617274732e616464285b302c312c302c315d2e746f537472696e672829292c7374617274732e616464285b302c302c312c325d2e746f537472696e672829292c656e64732e616464285b73697a652d312c73697a652d312c73697a652d312c305d2e746f537472696e672829292c656e64732e616464285b73697a652d312c73697a652d312c73697a652d312c315d2e746f537472696e672829292c656e64732e616464285b73697a652d312c73697a652d312c73697a652d312c325d2e746f537472696e672829292c656e64732e616464285b73697a652c73697a652d312c73697a652d312c305d2e746f537472696e672829292c656e64732e616464285b73697a652d312c73697a652c73697a652d312c315d2e746f537472696e672829292c656e64732e616464285b73697a652d312c73697a652d312c73697a652c325d2e746f537472696e672829292c5b5d292c72657175657374416e696d4672616d653d77696e646f772e72657175657374416e696d6174696f6e4672616d657c7c77696e646f772e7765626b697452657175657374416e696d6174696f6e4672616d657c7c77696e646f772e6d6f7a52657175657374416e696d6174696f6e4672616d657c7c66756e6374696f6e2865297b77696e646f772e73657454696d656f757428652c3165332f667073297d3b66756e6374696f6e2067656e4d617a6528297b6d617a652e6c656e6774683d302c7365656e3d6e6577205365742c77616c6c732e6c656e6774683d302c637574733d6e6577205365742c7061737365643d6e6577205365742c66696e6973683d21313b666f722876617220653d303b653c73697a653b2b2b65297b6d617a652e70757368285b5d293b666f722876617220613d303b613c73697a653b2b2b61297b6d617a655b655d2e70757368285b5d293b666f7228766172206c3d303b6c3c73697a653b2b2b6c296d617a655b655d5b615d2e70757368282131297d7d66756e6374696f6e207428652c612c6c297b66756e6374696f6e207428652c612c6c2c74297b7365656e2e686173285b652c612c6c2c745d2e746f537472696e672829297c7c2877616c6c732e70757368285b652c612c6c2c745d292c7365656e2e616464285b652c612c6c2c745d2e746f537472696e67282929297d6d617a655b655d5b615d5b6c5d7c7c286d617a655b655d5b615d5b6c5d3d21302c7428652c612c6c2c30292c7428652c612c6c2c31292c7428652c612c6c2c32292c7428652b312c612c6c2c30292c7428652c612b312c6c2c31292c7428652c612c6c2b312c3229297d666f72287428302c302c30293b303c77616c6c732e6c656e6774683b2977616c6c3d77616c6c735b4d6174682e72616e646f6d28292a77616c6c732e6c656e6774687c305d2c77616c6c732e73706c6963652877616c6c732e696e6465784f662877616c6c292c31292c30213d77616c6c5b77616c6c5b335d5d262677616c6c5b305d213d73697a65262677616c6c5b315d213d73697a65262677616c6c5b325d213d73697a652626282d2d2863656c6c323d5b77616c6c5b305d2c77616c6c5b315d2c77616c6c5b325d5d295b77616c6c5b335d5d2c6d617a655b77616c6c5b305d5d5b77616c6c5b315d5d5b77616c6c5b325d5d213d6d617a655b63656c6c325b305d5d5b63656c6c325b315d5d5b63656c6c325b325d5d29262628637574732e6164642877616c6c2e746f537472696e672829292c742877616c6c5b305d2c77616c6c5b315d2c77616c6c5b325d292c742863656c6c325b305d2c63656c6c325b315d2c63656c6c325b325d29297d66756e6374696f6e20636c65617253637265656e28297b6374782e66696c6c5374796c653d227768697465222c6374782e66696c6c5265637428302c302c43414e5641535f57494454482c43414e5641535f5749445448297d7661722072656e6465723d66756e6374696f6e28297b636c65617253637265656e28292c6d6f7665506c6179657228292c6472617757616c6c7328292c64726177436f6d7061737328297d3b66756e6374696f6e2063726f737350726f6475637428652c61297b72657475726e5b655b315d2a615b325d2d655b325d2a615b315d2c655b325d2a615b305d2d655b305d2a615b325d2c655b305d2a615b315d2d655b315d2a615b305d5d7d66756e6374696f6e20646f7450726f6475637428652c61297b72657475726e20655b305d2a615b305d2b655b315d2a615b315d2b655b325d2a615b325d7d66756e6374696f6e206e6f726d616c697a65642865297b76617220613d4d6174682e7371727428655b305d2a2a322b655b315d2a2a322b655b325d2a2a32293b72657475726e5b655b305d2f612c655b315d2f612c655b325d2f615d7d766172206765744c656674426f74746f6d3d66756e6374696f6e2865297b72657475726e5b4d6174682e666c6f6f7228655b305d2f7769647468292c4d6174682e666c6f6f7228655b315d2f7769647468292c4d6174682e666c6f6f7228655b325d2f7769647468295d7d2c6169644465616c436f6c6c6973696f6e3d66756e6374696f6e28652c61297b637574732e68617328652e746f537472696e672829293f7061737365642e61646428652e746f537472696e672829293a706c617965722e6c5b655b335d5d3d615b655b335d5d7d2c6465616c436f6c6c6973696f6e3d66756e6374696f6e2865297b5b785f2c795f2c7a5f5d3d6765744c656674426f74746f6d28706c617965722e6c292c5b785f5f2c795f5f2c7a5f5f5d3d6765744c656674426f74746f6d2865292c785f2d785f5f3d3d2d3126266169644465616c436f6c6c6973696f6e285b785f5f2c795f5f2c7a5f5f2c305d2c65292c795f2d795f5f3d3d2d3126266169644465616c436f6c6c6973696f6e285b785f5f2c795f5f2c7a5f5f2c315d2c65292c7a5f2d7a5f5f3d3d2d3126266169644465616c436f6c6c6973696f6e285b785f5f2c795f5f2c7a5f5f2c325d2c65292c785f2d785f5f3d3d3126266169644465616c436f6c6c6973696f6e285b785f5f2b312c795f5f2c7a5f5f2c305d2c65292c795f2d795f5f3d3d3126266169644465616c436f6c6c6973696f6e285b785f5f2c795f5f2b312c7a5f5f2c315d2c65292c7a5f2d7a5f5f3d3d3126266169644465616c436f6c6c6973696f6e285b785f5f2c795f5f2c7a5f5f2b312c325d2c65292c653d706c617965722e6c2e736c6963652830292c5b785f2c795f2c7a5f5d3d6765744c656674426f74746f6d28706c617965722e6c292c785f3d3d73697a652d312626795f3d3d73697a652d3126267a5f3d3d73697a652d3126262866696e6973683d2130297d2c6d6f7665506c617965723d66756e6374696f6e28297b72696768743d6e6f726d616c697a65642863726f737350726f6475637428706c617965722e6469722c706c617965722e6865616429292c6f6c643d706c617965722e6c2e736c6963652830292c73706565643d313620696e206b657973446f776e3f31303a352c383720696e206b657973446f776e262628706c617965722e6c5b305d2b3d706c617965722e6469725b305d2a73706565642c706c617965722e6c5b315d2b3d706c617965722e6469725b315d2a73706565642c706c617965722e6c5b325d2b3d706c617965722e6469725b325d2a73706565642c6465616c436f6c6c6973696f6e286f6c6429292c383320696e206b657973446f776e262628706c617965722e6c5b305d2d3d706c617965722e6469725b305d2a73706565642c706c617965722e6c5b315d2d3d706c617965722e6469725b315d2a73706565642c706c617965722e6c5b325d2d3d706c617965722e6469725b325d2a73706565642c6465616c436f6c6c6973696f6e286f6c6429292c363820696e206b657973446f776e262628706c617965722e6c5b305d2b3d72696768745b305d2a73706565642c706c617965722e6c5b315d2b3d72696768745b315d2a73706565642c706c617965722e6c5b325d2b3d72696768745b325d2a73706565642c6465616c436f6c6c6973696f6e286f6c6429292c363520696e206b657973446f776e262628706c617965722e6c5b305d2d3d72696768745b305d2a73706565642c706c617965722e6c5b315d2d3d72696768745b315d2a73706565642c706c617965722e6c5b325d2d3d72696768745b325d2a73706565642c6465616c436f6c6c6973696f6e286f6c6429292c333220696e206b657973446f776e262628706c617965722e6c5b305d2b3d706c617965722e686561645b305d2a73706565642c706c617965722e6c5b315d2b3d706c617965722e686561645b315d2a73706565642c706c617965722e6c5b325d2b3d706c617965722e686561645b325d2a73706565642c6465616c436f6c6c6973696f6e286f6c6429292c706c617965722e6c5b325d2d3d677261766974792c6465616c436f6c6c6973696f6e286f6c64292c333920696e206b657973446f776e262628706c617965722e6469725b305d2b3d72696768745b305d2a73656e732c706c617965722e6469725b315d2b3d72696768745b315d2a73656e732c706c617965722e6469725b325d2b3d72696768745b325d2a73656e73292c333720696e206b657973446f776e262628706c617965722e6469725b305d2d3d72696768745b305d2a73656e732c706c617965722e6469725b315d2d3d72696768745b315d2a73656e732c706c617965722e6469725b325d2d3d72696768745b325d2a73656e73292c333820696e206b657973446f776e262628706c617965722e6469725b305d2b3d706c617965722e686561645b305d2a73656e732c706c617965722e6469725b315d2b3d706c617965722e686561645b315d2a73656e732c706c617965722e6469725b325d2b3d706c617965722e686561645b325d2a73656e732c706c617965722e686561645b305d2d3d706c617965722e6469725b305d2a73656e732c706c617965722e686561645b315d2d3d706c617965722e6469725b315d2a73656e732c706c617965722e686561645b325d2d3d706c617965722e6469725b325d2a73656e73292c343020696e206b657973446f776e262628706c617965722e6469725b305d2d3d706c617965722e686561645b305d2a73656e732c706c617965722e6469725b315d2d3d706c617965722e686561645b315d2a73656e732c706c617965722e6469725b325d2d3d706c617965722e686561645b325d2a73656e732c706c617965722e686561645b305d2b3d706c617965722e6469725b305d2a73656e732c706c617965722e686561645b315d2b3d706c617965722e6469725b315d2a73656e732c706c617965722e686561645b325d2b3d706c617965722e6469725b325d2a73656e73292c706c617965722e6469723d6e6f726d616c697a656428706c617965722e646972292c706c617965722e686561643d6e6f726d616c697a656428706c617965722e68656164297d2c676574506f696e743d66756e6374696f6e2865297b72657475726e5b646f7450726f647563742864656c74613d5b655b305d2d706c617965722e6c5b305d2c655b315d2d706c617965722e6c5b315d2c655b325d2d706c617965722e6c5b325d5d2c7269676874292c646f7450726f647563742864656c74612c706c617965722e646972292c646f7450726f647563742864656c74612c706c617965722e68656164295d7d2c736f6c7665723d66756e6374696f6e28652c61297b72657475726e20615f3d28615b305d2d655b305d292a2a322b28615b325d2d655b325d292a2a322d28615b315d2d655b315d292a2a322a74616e5468657461322c625f3d322a2828615b305d2d655b305d292a655b305d2b28615b325d2d655b325d292a655b325d2d28615b315d2d655b315d292a655b315d2a74616e546865746132292c635f3d655b305d2a2a322b655b325d2a2a322d655b315d2a2a322a74616e5468657461322c743d282d625f2b4d6174682e7371727428625f2a2a322d342a615f2a635f29292f322f615f2c74323d282d625f2d4d6174682e7371727428625f2a2a322d342a615f2a635f29292f322f615f2c79313d655b315d2b742a28615b315d2d655b315d292c79323d655b315d2b74322a28615b315d2d655b315d292c795f3d2128303c79312626303c7932292626303c79323f28743d74322c7932293a79312c5b28655b305d2b742a28615b305d2d655b305d29292a617865592f795f2c28655b325d2b742a28615b325d2d655b325d29292a617865592f795f5d7d2c647261774c696e653d66756e6374696f6e28652c61297b7468657461313d4d6174682e616273284d6174682e7371727428655b305d2a2a322b655b325d2a2a32292f655b315d292c7468657461323d4d6174682e616273284d6174682e7371727428615b305d2a2a322b615b325d2a2a32292f615b315d292c303c655b315d26267468657461313c3d74616e54686574613f28706f6c79676f6e2e70757368285b655b305d2a617865592f655b315d2c655b325d2a617865592f655b315d5d292c615b315d3c3d307c7c7468657461323e74616e54686574613f706f6c79676f6e2e7075736828736f6c76657228652c6129293a706f6c79676f6e2e70757368285b615b305d2a617865592f615b315d2c615b325d2a617865592f615b315d5d29293a303c615b315d26267468657461323c3d74616e5468657461262628706f6c79676f6e2e7075736828736f6c76657228612c6529292c706f6c79676f6e2e70757368285b615b305d2a617865592f615b315d2c615b325d2a617865592f615b315d5d29297d2c66696c6c506f6c79676f6e3d66756e6374696f6e2861297b69662830213d706f6c79676f6e2e6c656e677468297b6c657420653b613d612e746f537472696e6728293b653d637574732e6861732861293f7374617274732e6861732861297c7c656e64732e6861732861293f72616e646f6d5f726762612873746172742c2e31293a7061737365642e6861732861293f72616e646f6d5f726762612868696e742c2e31293a72616e646f6d5f7267626128706173732c2e31293a7374617274732e6861732861297c7c656e64732e6861732861293f72616e646f6d5f726762612873746172742c31293a72616e646f6d5f726762612877616c6c432c31292c6374782e66696c6c5374796c653d652c6374782e626567696e5061746828292c6374782e6d6f7665546f28706f6c79676f6e5b305d5b305d2c706f6c79676f6e5b305d5b315d293b666f7228766172206c3d313b6c3c706f6c79676f6e2e6c656e6774683b6c2b2b296374782e6c696e65546f28706f6c79676f6e5b6c5d5b305d2c706f6c79676f6e5b6c5d5b315d293b6374782e636c6f73655061746828292c6374782e7374726f6b655374796c653d72616e646f6d5f726762612868696e742c31292c6374782e6c696e6557696474683d312c6374782e7374726f6b6528292c6374782e66696c6c28297d7d2c6f3d4d6174682e726f756e642c723d4d6174682e72616e646f6d2c733d3235353b66756e6374696f6e20676c69636865642865297b72657475726e206f28287228292a732b652a616d70292f28616d702b3129297d66756e6374696f6e2072616e646f6d5f7267626128652c61297b72657475726e227267626128222b676c696368656428655b305d292b222c222b676c696368656428655b315d292b222c222b676c696368656428655b325d292b222c222b612b2229227d7661722064726177526563743d66756e6374696f6e2865297b76303d5b28655b305d2b77616c6c5665727465785b655b335d5d5b305d5b305d292a77696474682c28655b315d2b77616c6c5665727465785b655b335d5d5b305d5b315d292a77696474682c28655b325d2b77616c6c5665727465785b655b335d5d5b305d5b325d292a77696474685d2c76313d5b28655b305d2b77616c6c5665727465785b655b335d5d5b315d5b305d292a77696474682c28655b315d2b77616c6c5665727465785b655b335d5d5b315d5b315d292a77696474682c28655b325d2b77616c6c5665727465785b655b335d5d5b315d5b325d292a77696474685d2c76323d5b28655b305d2b77616c6c5665727465785b655b335d5d5b325d5b305d292a77696474682c28655b315d2b77616c6c5665727465785b655b335d5d5b325d5b315d292a77696474682c28655b325d2b77616c6c5665727465785b655b335d5d5b325d5b325d292a77696474685d2c76333d5b28655b305d2b77616c6c5665727465785b655b335d5d5b335d5b305d292a77696474682c28655b315d2b77616c6c5665727465785b655b335d5d5b335d5b315d292a77696474682c28655b325d2b77616c6c5665727465785b655b335d5d5b335d5b325d292a77696474685d2c76303d676574506f696e74287630292c76313d676574506f696e74287631292c76323d676574506f696e74287632292c76333d676574506f696e74287633292c706f6c79676f6e2e6c656e6774683d302c647261774c696e652876302c7631292c647261774c696e652876312c7632292c647261774c696e652876322c7633292c647261774c696e652876332c7630292c66696c6c506f6c79676f6e2865297d3b66756e6374696f6e20646973742865297b72657475726e204d6174682e73717274282828655b305d2b77616c6c43656e7465725b655b335d5d5b305d292a77696474682d706c617965722e6c5b305d292a2a322b2828655b315d2b77616c6c43656e7465725b655b335d5d5b315d292a77696474682d706c617965722e6c5b315d292a2a322b2828655b325d2b77616c6c43656e7465725b655b335d5d5b325d292a77696474682d706c617965722e6c5b325d292a2a32297d636f6e737420737761703d28652c61293d3e5b70715b655d2c70715b615d5d3d5b70715b615d2c70715b655d5d3b7661722061646470713d66756e6374696f6e286c297b6966282128287072696f726974793d64697374286c29293e362a776964746829297b70712e70757368285b6c2c7072696f726974795d293b6c657420653d70712e6c656e6774682d312c613b666f72283b653b297b696628613d652d313e3e312c7072696f726974793c3d70715b615d5b315d2972657475726e3b7377617028652c61292c653d617d7d7d2c726d70713d66756e6374696f6e28297b7377617028302c70712e6c656e6774682d31293b76617220653d70712e706f7028293b6c656e6774683d70712e6c656e6774683b6c657420613d302c6c3d322a612b312c743b666f72283b6c3c6c656e67746826262828743d322a612b32293c6c656e677468262670715b745d5b315d3e70715b6c5d5b315d2626286c3d74292c212870715b6c5d5b315d3c3d70715b615d5b315d29293b297377617028612c6c292c6c3d322a28613d6c292b313b72657475726e20655b305d7d2c6472617757616c6c733d66756e6374696f6e28297b666f72286374782e7365745472616e73666f726d28312c302c302c2d312c43414e5641535f57494454482f322c43414e5641535f4845494748542f32292c72696768743d6e6f726d616c697a65642863726f737350726f6475637428706c617965722e6469722c706c617965722e6865616429292c693d303b693c616c6c57616c6c732e6c656e6774683b692b2b29616464707128616c6c57616c6c735b695d293b666f72283b303c70712e6c656e6774683b29656c656d3d726d707128292c647261775265637428656c656d293b6374782e7365745472616e73666f726d28312c302c302c312c302c30297d2c64726177436f6d706173733d66756e6374696f6e28297b5b785f2c795f2c7a5f5d3d6765744c656674426f74746f6d28706c617965722e6c293b76617220653d6e6f726d616c697a656428676574506f696e74285b77696474682a2873697a652d2e35292c77696474682a2873697a652d2e35292c77696474682a2873697a652d2e35295d29293b64726177576f726473286028247b785f7d2c20247b795f7d2c20247b7a5f7d29602c43414e5641535f57494454482a282e352d2e312a655b305d292c43414e5641535f4845494748542a282e352b2e312a655b325d29292c64726177576f726473286028247b73697a652d317d2c20247b73697a652d317d2c20247b73697a652d317d29602c43414e5641535f57494454482a282e352b2e312a655b305d292c43414e5641535f4845494748542a282e352d2e312a655b325d29292c6374782e626567696e5061746828292c6374782e6d6f7665546f2843414e5641535f57494454482f322b32352a655b305d2c43414e5641535f4845494748542f322d32352a655b325d292c6374782e6c696e65546f2843414e5641535f57494454482f322d32352a655b305d2c43414e5641535f4845494748542f322b32352a655b325d292c6374782e6c696e6557696474683d352c6374782e7374726f6b655374796c653d227267626128222b706173732b223129222c6374782e7374726f6b6528292c6374782e626567696e5061746828292c6374782e6172632843414e5641535f57494454482f322b33302a655b305d2c43414e5641535f4845494748542f322d33302a655b325d2c352c302c322a4d6174682e50492c2130292c6374782e6c696e6557696474683d352c6374782e7374726f6b6528297d2c616e696d6174696f6e4c6f6f703d66756e6374696f6e206528297b77696e646f772e72657175657374416e696d4672616d652865292c66696e697368262677696e2e636c6173734c6973742e616464282273686f77696e6722292c72656e64657228297d3b66756e6374696f6e2064726177576f72647328652c612c6c297b6374782e666f6e743d223136707820417269616c222c6374782e66696c6c5374796c653d2223303030303030222c6374782e66696c6c5465787428652c612c6c297d66756e6374696f6e20696e697428297b706c617965723d7b6c3a5b77696474682f322c77696474682f322c77696474682f325d2c6469723a5b312f312e3431342c312f312e3431342c305d2c686561643a5b302c302c315d7d2c6b657973446f776e3d7b7d2c77616c6c733d5b5d2c66696e6973683d212872696768743d5b312c302c305d292c67656e4d617a6528297d626567696e427574746f6e2e6164644576656e744c697374656e65722822636c69636b222c66756e6374696f6e28297b77696e2e636c6173734c6973742e72656d6f7665282273686f77696e6722292c696e697428297d292c632e77696474683d43414e5641535f57494454482c632e6865696768743d43414e5641535f4845494748542c6374783d632e676574436f6e746578742822326422292c6164644576656e744c697374656e657228226b6579646f776e222c66756e6374696f6e2865297b652e70726576656e7444656661756c7428292c6b657973446f776e5b652e6b6579436f64655d3d21307d2c2131292c6164644576656e744c697374656e657228226b65797570222c66756e6374696f6e2865297b64656c657465206b657973446f776e5b652e6b6579436f64655d7d2c2131292c696e697428292c616e696d6174696f6e4c6f6f7028293b3c2f7363726970743e3c2f626f64793e3c2f68746d6c3e55736520575341442c206172726f77206b65797320616e6420737061636562617220746f20636f6e74726f6c2c206576656e20696620796f7520646f6e2774206b6e6f7720776865726520746f20676f2ea2646970667358221220d8c976e2c42df25614c3bc348e1c8d43d54889e8ba5b07a768547e68cee6d06664736f6c63430008110033

Deployed Bytecode

0x60806040526004361061013c5760003560e01c806301ffc9a71461014157806302c7b0fa1461017657806306fdde03146101a3578063081812fc146101b8578063095ea7b3146101e557806318160ddd146101fa57806323b872dd1461021d5780633929e6ac146102305780633ccfd60b1461025d57806341f434341461027257806342842e0e146102945780636352211e146102a757806365f13097146102c75780636817c76c146102dd57806370a08231146102f3578063715018a6146103135780638da5cb5b1461032857806395d89b411461033d578063a0712d6814610352578063a22cb46514610365578063b228d92514610385578063b88d4fde1461039b578063c627a4d6146103ae578063c87b56dd146103ce578063e985e9c5146103ee578063f14c095c1461040e578063f2fde38b1461042e575b600080fd5b34801561014d57600080fd5b5061016161015c366004612580565b61044e565b60405190151581526020015b60405180910390f35b34801561018257600080fd5b5061019661019136600461268f565b6104a0565b60405161016d919061280e565b3480156101af57600080fd5b506101966105b5565b3480156101c457600080fd5b506101d86101d3366004612821565b610647565b60405161016d919061283a565b6101f86101f3366004612865565b61068b565b005b34801561020657600080fd5b50600154600054035b60405190815260200161016d565b6101f861022b36600461288f565b6106a4565b34801561023c57600080fd5b5061025061024b366004612821565b6106cf565b60405161016d91906128cb565b34801561026957600080fd5b506101f8610c59565b34801561027e57600080fd5b506101d86daaeb6d7670e522a718067333cd4e81565b6101f86102a236600461288f565b610cf4565b3480156102b357600080fd5b506101d86102c2366004612821565b610d19565b3480156102d357600080fd5b5061020f600a5481565b3480156102e957600080fd5b5061020f600b5481565b3480156102ff57600080fd5b5061020f61030e36600461299e565b610d24565b34801561031f57600080fd5b506101f8610d72565b34801561033457600080fd5b506101d8610d86565b34801561034957600080fd5b50610196610d95565b6101f8610360366004612821565b610da4565b34801561037157600080fd5b506101f86103803660046129b9565b610ecf565b34801561039157600080fd5b5061020f600c5481565b6101f86103a93660046129f0565b610ee3565b3480156103ba57600080fd5b506101966103c936600461268f565b610f10565b3480156103da57600080fd5b506101966103e9366004612821565b61115f565b3480156103fa57600080fd5b50610161610409366004612a6b565b6111f7565b34801561041a57600080fd5b5061019661042936600461268f565b611225565b34801561043a57600080fd5b506101f861044936600461299e565b61145f565b60006301ffc9a760e01b6001600160e01b03198316148061047f57506380ac58cd60e01b6001600160e01b03198316145b8061049a5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606000604051806103e001604052806103b581526020016136c86103b59139905060006040518061246001604052806124388152602001613add6124389139905060006104f18560c001516114d5565b8560800151866060015187604001516040516020016105139493929190612aba565b60405160208183030381529060405290508085602001518660a0015161053c8860e001516114d5565b60405160200161054f9493929190612b52565b604051602081830303815290604052905061058c83828460405160200161057893929190612be8565b604051602081830303815290604052611567565b60405160200161059c9190612c2b565b6040516020818303038152906040529350505050919050565b6060600280546105c490612c69565b80601f01602080910402602001604051908101604052809291908181526020018280546105f090612c69565b801561063d5780601f106106125761010080835404028352916020019161063d565b820191906000526020600020905b81548152906001019060200180831161062057829003601f168201915b5050505050905090565b6000610652826116b9565b61066f576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b81610695816116e0565b61069f8383611790565b505050565b826001600160a01b03811633146106be576106be336116e0565b6106c9848484611830565b50505050565b61072060405180610120016040528060001515815260200160608152602001606081526020016060815260200160608152602001606081526020016000815260200160008152602001600081525090565b600d610755836040518060400160405280600d81526020016c3830b9b9b0b13632a1b7b637b960991b8152506000600b6119b7565b8154811061076557610765612ca3565b90600052602060002001805461077a90612c69565b80601f01602080910402602001604051908101604052809291908181526020018280546107a690612c69565b80156107f35780601f106107c8576101008083540402835291602001916107f3565b820191906000526020600020905b8154815290600101906020018083116107d657829003601f168201915b50505050508160200181905250600e61083183604051806040016040528060098152602001683bb0b63621b7b637b960b91b8152506000600a6119b7565b8154811061084157610841612ca3565b90600052602060002001805461085690612c69565b80601f016020809104026020016040519081016040528092919081815260200182805461088290612c69565b80156108cf5780601f106108a4576101008083540402835291602001916108cf565b820191906000526020600020905b8154815290600101906020018083116108b257829003601f168201915b5050505050816040018190525061090b82604051806040016040528060098152602001687061737348696e743f60b81b815250600060026119b7565b60011481526040805180820190915260098152683434b73a21b7b637b960b91b6020820152600f90610942908490600060056119b7565b8154811061095257610952612ca3565b90600052602060002001805461096790612c69565b80601f016020809104026020016040519081016040528092919081815260200182805461099390612c69565b80156109e05780601f106109b5576101008083540402835291602001916109e0565b820191906000526020600020905b8154815290600101906020018083116109c357829003601f168201915b505050505081606001819052506010610a1f836040518060400160405280600a81526020016939ba30b93a21b7b637b960b11b8152506000600b6119b7565b81548110610a2f57610a2f612ca3565b906000526020600020018054610a4490612c69565b80601f0160208091040260200160405190810160405280929190818152602001828054610a7090612c69565b8015610abd5780601f10610a9257610100808354040283529160200191610abd565b820191906000526020600020905b815481529060010190602001808311610aa057829003601f168201915b505050505081608001819052506012610af783604051806040016040528060058152602001640eed2c8e8d60db1b815250600060046119b7565b81548110610b0757610b07612ca3565b90600052602060002001548160c00181815250506013610b4a83604051806040016040528060078152602001666772617669747960c81b815250600060036119b7565b81548110610b5a57610b5a612ca3565b90600052602060002001548160e00181815250506011610ba5836040518060400160405280600f81526020016e676c696368416d706c69747564657360881b815250600060036119b7565b81548110610bb557610bb5612ca3565b906000526020600020018054610bca90612c69565b80601f0160208091040260200160405190810160405280929190818152602001828054610bf690612c69565b8015610c435780601f10610c1857610100808354040283529160200191610c43565b820191906000526020600020905b815481529060010190602001808311610c2657829003601f168201915b505050505060a082015261010081019190915290565b610c61611a19565b604051600090339047908381818185875af1925050503d8060008114610ca3576040519150601f19603f3d011682016040523d82523d6000602084013e610ca8565b606091505b5050905080610cf15760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064015b60405180910390fd5b50565b826001600160a01b0381163314610d0e57610d0e336116e0565b6106c9848484611a78565b600061049a82611a93565b60006001600160a01b038216610d4d576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b610d7a611a19565b610d846000611b01565b565b6009546001600160a01b031690565b6060600380546105c490612c69565b600a5481610db56001546000540390565b610dbf9190612ccf565b1115610e025760405162461bcd60e51b815260206004820152601260248201527152656163686564206d617820737570706c7960701b6044820152606401610ce8565b600c5433600090815260056020526040908190205483911c6001600160401b0316610e2d9190612ccf565b1115610e745760405162461bcd60e51b81526020600482015260166024820152754d61782032206d696e74207065722077616c6c65742160501b6044820152606401610ce8565b34600b5482610e839190612ce2565b1115610ec55760405162461bcd60e51b8152602060048201526011602482015270233ab73239903737ba1032b737bab3b41760791b6044820152606401610ce8565b610cf13382611b53565b81610ed9816116e0565b61069f8383611b71565b836001600160a01b0381163314610efd57610efd336116e0565b610f0985858585611bdd565b5050505050565b60408051602081019091526000815281516060919015610fc55780610f6d6040518060400160405280600581526020016448696e743f60d81b8152506040518060400160405280600381526020016259657360e81b815250611c21565b610f9d6040518060400160405280600a8152602001692434b73a1021b7b637b960b11b8152508660600151611c21565b604051602001610faf93929190612be8565b604051602081830303815290604052905061102a565b806110076040518060400160405280600581526020016448696e743f60d81b815250604051806040016040528060028152602001614e6f60f01b815250611c21565b604051602001611018929190612cf9565b60405160208183030381529060405290505b8061105b6040518060400160405280600a8152602001692bb0b6361021b7b637b960b11b8152508560400151611c21565b61108f6040518060400160405280600e81526020016d2830b9b9b0b136329021b7b637b960911b8152508660200151611c21565b6110c56040518060400160405280601081526020016f476c6974636820416d706c697475646560801b8152508760a00151611c21565b6110f66040518060400160405280600b81526020016a29ba30b93a1021b7b637b960a91b8152508860800151611c21565b60405160200161110a959493929190612d28565b6040516020818303038152906040529050806111298460c001516114d5565b6111368560e001516114d5565b60405160200161114893929190612d93565b60408051601f198184030181529190529392505050565b6060600061116c836114d5565b60405160200161117c9190612e64565b60408051601f1981840301815260808301909152605180835290925060009190615f156020830139905060006111b1856106cf565b90506111e783836111c184610f10565b6111ca85611225565b6111d3866104a0565b604051602001610578959493929190612e92565b60405160200161059c9190612f9e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b606060008260c00151600461123a9190612ce2565b611245906001612ccf565b905061125a61125582600a612ce2565b6114d5565b61126861125583600a612ce2565b611276856101000151611c4d565b856080015160405160200161128c929190612fe3565b60408051601f19818403018152908290526112ab939291602001613249565b604051602081830303815290604052915060006112c784611d0b565b90506000604051806040016040528060138152602001721e3830ba341031b630b9b99e91309110321e9160691b8152509050600060405160200161132490721e3830ba341031b630b9b99e91311110321e9160691b815260130190565b604051602081830303815290604052905060005b848110156114005760005b858110156113ef57600285826113598986612ce2565b6113639190612ccf565b610271811061137457611374612ca3565b602002015110156113b1578361138a8383611e36565b60405160200161139b929190612cf9565b60405160208183030381529060405293506113df565b826113bc8383611e36565b6040516020016113cd929190612cf9565b60405160208183030381529060405292505b6113e88161330d565b9050611343565b506113f98161330d565b9050611338565b50608086015160405161141b91879185918591602001613326565b604051602081830303815290604052945061143585611567565b60405160200161144591906133ef565b604051602081830303815290604052945050505050919050565b611467611a19565b6001600160a01b0381166114cc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ce8565b610cf181611b01565b606060006114e283611e65565b60010190506000816001600160401b038111156115015761150161259d565b6040519080825280601f01601f19166020018201604052801561152b576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461153557509392505050565b6060815160000361158657505060408051602081019091526000815290565b6000604051806060016040528060408152602001613a7d60409139905060006003845160026115b59190612ccf565b6115bf9190613447565b6115ca906004612ce2565b6001600160401b038111156115e1576115e161259d565b6040519080825280601f01601f19166020018201604052801561160b576020820181803683370190505b509050600182016020820185865187015b80821015611677576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f811685015184535060018301925061161c565b505060038651066001811461169357600281146116a6576116ae565b603d6001830353603d60028303536116ae565b603d60018303535b509195945050505050565b600080548210801561049a575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b15610cf157604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561174d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611771919061345b565b610cf15780604051633b79c77360e21b8152600401610ce8919061283a565b600061179b82610d19565b9050336001600160a01b038216146117d4576117b781336111f7565b6117d4576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061183b82611a93565b9050836001600160a01b0316816001600160a01b03161461186e5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176118bb5761189e86336111f7565b6118bb57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166118e257604051633a954ecd60e21b815260040160405180910390fd5b80156118ed57600082555b6001600160a01b0386811660009081526005602052604080822080546000190190559187168152208054600101905561192a85600160e11b611f3b565b600085815260046020526040812091909155600160e11b8416900361197f5760018401600081815260046020526040812054900361197d57600054811461197d5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b0316600080516020613abd83398151915260405160405180910390a45b505050505050565b6000806119ec856119c7886114d5565b6040516020016119d8929190612cf9565b604051602081830303815290604052611f50565b9050836119f98185613478565b611a03908361348b565b611a0d9190612ccf565b9150505b949350505050565b33611a22610d86565b6001600160a01b031614610d845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ce8565b61069f83838360405180602001604052806000815250610ee3565b600081600054811015611ae85760008181526004602052604081205490600160e01b82169003611ae6575b80600003611adf575060001901600081815260046020526040902054611abe565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611b6d828260405180602001604052806000815250611f81565b5050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611be88484846106a4565b6001600160a01b0383163b156106c957611c0484848484611fe7565b6106c9576040516368d2bf6b60e11b815260040160405180910390fd5b60608282604051602001611c3692919061349f565b604051602081830303815290604052905092915050565b60606000611c6d611c5d846114d5565b6040516020016119d89190613511565b905060005b6009811015611cd45782611ca16301000000611c8f846018612ce2565b611c99919061348b565b84901c6120cf565b604051602001611cb292919061353b565b604051602081830303815290604052925080611ccd9061330d565b9050611c72565b5081611ce360d883901c6120cf565b604051602001611cf4929190612cf9565b604051602081830303815290604052915050919050565b611d1361252c565b611d1b61252c565b611d2361254c565b60008460c001516004611d369190612ce2565b611d41906001612ccf565b9050611d528484600180858761212e565b60005b825115611e2d576000611d94611d6d83610bb8612ce2565b886101000151611d7d9190612ccf565b6040805160208101909152600080825287516119b7565b9050600085826102718110611dab57611dab612ca3565b602002015185519091508690611dc390600190613478565b6102718110611dd457611dd4612ca3565b602002015186836102718110611dec57611dec612ca3565b602002015284516001908690611e03908390613478565b905250611e268787611e158785613447565b611e1f888661348b565b888a61212e565b5050611d55565b50505050919050565b6060611e4661125584600a612ce2565b611e5461125584600a612ce2565b604051602001611c36929190613576565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611ea45772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6904ee2d6d415b85acef8160201b8310611ece576904ee2d6d415b85acef8160201b830492506020015b662386f26fc100008310611eec57662386f26fc10000830492506010015b6305f5e1008310611f04576305f5e100830492506008015b6127108310611f1857612710830492506004015b60648310611f2a576064830492506002015b600a831061049a5760010192915050565b4260a01b176001600160a01b03919091161790565b600081604051602001611f6391906135d9565b60408051601f19818403018152919052805160209091012092915050565b611f8b83836123c5565b6001600160a01b0383163b1561069f576000548281035b611fb56000868380600101945086611fe7565b611fd2576040516368d2bf6b60e11b815260040160405180910390fd5b818110611fa2578160005414610f0957600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061201c9033908990889088906004016135f5565b6020604051808303816000875af1925050508015612057575060408051601f3d908101601f1916820190925261205491810190613632565b60015b6120b5573d808015612085576040519150601f19603f3d011682016040523d82523d6000602084013e61208a565b606091505b5080516000036120ad576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a11565b60606120e4611255610100601085901c61348b565b6120f7611255610100600886901c61348b565b6121066112556101008661348b565b6040516020016121189392919061364f565b6040516020818303038152906040529050919050565b8315806121445750612141600183613478565b84145b8061214d575082155b80612161575061215e600183613478565b83145b1561219957600186846121748588612ce2565b61217e9190612ccf565b610271811061218f5761218f612ca3565b60200201526119af565b85836121a58487612ce2565b6121af9190612ccf565b61027181106121c0576121c0612ca3565b60200201516000036119af5760008684846121dc600189613478565b6121e69190612ce2565b6121f09190612ccf565b610271811061220157612201612ca3565b602002015160020361221b57612218600182612ccf565b90505b868484612229886001612ccf565b6122339190612ce2565b61223d9190612ccf565b610271811061224e5761224e612ca3565b602002015160020361226857612265600182612ccf565b90505b866001856122768689612ce2565b6122809190612ccf565b61228a9190613478565b610271811061229b5761229b612ca3565b60200201516002036122b5576122b2600182612ccf565b90505b86846122c18588612ce2565b6122cb9190612ccf565b6122d6906001612ccf565b61027181106122e7576122e7612ca3565b6020020151600203612301576122fe600182612ccf565b90505b6001811161238d57600287856123178689612ce2565b6123219190612ccf565b610271811061233257612332612ca3565b602002015261234f8787612347600189613478565b8787876124ad565b612367878787612360600189613478565b87876124ad565b6123778787612347886001612ccf565b612388878787612360886001612ccf565b6123bc565b6001878561239b8689612ce2565b6123a59190612ccf565b61027181106123b6576123b6612ca3565b60200201525b50505050505050565b60008054908290036123ea5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038316600090815260056020526040902080546001600160401b018402019055612421836001841460e11b611f3b565b6000828152600460205260408120919091556001600160a01b038416908383019083908390600080516020613abd8339815191528180a4600183015b8181146124835780836000600080516020613abd833981519152600080a460010161245d565b50816000036124a457604051622e076360e81b815260040160405180910390fd5b60005550505050565b85836124b98487612ce2565b6124c39190612ccf565b61027181106124d4576124d4612ca3565b60200201516000036119af57826124eb8386612ce2565b6124f59190612ccf565b81518690610271811061250a5761250a612ca3565b602002015280516001908290612521908390612ccf565b905250505050505050565b60405180614e200160405280610271906020820280368337509192915050565b60405180602001604052806001906020820280368337509192915050565b6001600160e01b031981168114610cf157600080fd5b60006020828403121561259257600080fd5b8135611adf8161256a565b634e487b7160e01b600052604160045260246000fd5b60405161012081016001600160401b03811182821017156125d6576125d661259d565b60405290565b8015158114610cf157600080fd5b80356125f5816125dc565b919050565b60006001600160401b03808411156126145761261461259d565b604051601f8501601f19908116603f0116810190828211818310171561263c5761263c61259d565b8160405280935085815286868601111561265557600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261268057600080fd5b611adf838335602085016125fa565b6000602082840312156126a157600080fd5b81356001600160401b03808211156126b857600080fd5b9083019061012082860312156126cd57600080fd5b6126d56125b3565b6126de836125ea565b81526020830135828111156126f257600080fd5b6126fe8782860161266f565b60208301525060408301358281111561271657600080fd5b6127228782860161266f565b60408301525060608301358281111561273a57600080fd5b6127468782860161266f565b60608301525060808301358281111561275e57600080fd5b61276a8782860161266f565b60808301525060a08301358281111561278257600080fd5b61278e8782860161266f565b60a08301525060c0838101359082015260e080840135908201526101009283013592810192909252509392505050565b60005b838110156127d95781810151838201526020016127c1565b50506000910152565b600081518084526127fa8160208601602086016127be565b601f01601f19169290920160200192915050565b602081526000611adf60208301846127e2565b60006020828403121561283357600080fd5b5035919050565b6001600160a01b0391909116815260200190565b80356001600160a01b03811681146125f557600080fd5b6000806040838503121561287857600080fd5b6128818361284e565b946020939093013593505050565b6000806000606084860312156128a457600080fd5b6128ad8461284e565b92506128bb6020850161284e565b9150604084013590509250925092565b602081526128de60208201835115159052565b600060208301516101208060408501526128fc6101408501836127e2565b91506040850151601f198086850301606087015261291a84836127e2565b9350606087015191508086850301608087015261293784836127e2565b935060808701519150808685030160a087015261295484836127e2565b935060a08701519150808685030160c08701525061297283826127e2565b60c087015160e08781019190915287015161010080880191909152909601519190940152509192915050565b6000602082840312156129b057600080fd5b611adf8261284e565b600080604083850312156129cc57600080fd5b6129d58361284e565b915060208301356129e5816125dc565b809150509250929050565b60008060008060808587031215612a0657600080fd5b612a0f8561284e565b9350612a1d6020860161284e565b92506040850135915060608501356001600160401b03811115612a3f57600080fd5b8501601f81018713612a5057600080fd5b612a5f878235602084016125fa565b91505092959194509250565b60008060408385031215612a7e57600080fd5b612a878361284e565b9150612a956020840161284e565b90509250929050565b60008151612ab08185602086016127be565b9290920192915050565b60008551612acc818460208a016127be565b672c73746172743d5b60c01b9083019081528551612af1816008840160208a016127be565b675d2c68696e743d5b60c01b600892909101918201528451612b1a8160108401602089016127be565b685d2c77616c6c433d5b60b81b601092909101918201528351612b448160198401602088016127be565b016019019695505050505050565b60008551612b64818460208a016127be565b675d2c706173733d5b60c01b9083019081528551612b89816008840160208a016127be565b655d2c616d703d60d01b600892909101918201528451612bb081600e8401602089016127be565b682c677261766974793d60b81b600e92909101918201528351612bda8160178401602088016127be565b016017019695505050505050565b60008451612bfa8184602089016127be565b845190830190612c0e8183602089016127be565b8451910190612c218183602088016127be565b0195945050505050565b7519185d184e9d195e1d0bda1d1b5b0ed8985cd94d8d0b60521b815260008251612c5c8160168501602087016127be565b9190910160160192915050565b600181811c90821680612c7d57607f821691505b602082108103612c9d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111561049a5761049a612cb9565b808202811582820484141761049a5761049a612cb9565b60008351612d0b8184602088016127be565b835190830190612d1f8183602088016127be565b01949350505050565b60008651612d3a818460208b016127be565b865190830190612d4e818360208b016127be565b8651910190612d61818360208a016127be565b8551910190612d748183602089016127be565b8451910190612d878183602088016127be565b01979650505050505050565b60008451612da58184602089016127be565b80830190507f7b22646973706c61795f74797065223a226e756d626572222c2274726169745f808252753a3cb832911d112bb4b23a341116113b30b63ab2911d60511b60208301528551612e00816036850160208a016127be565b611f4b60f21b603693909101928301526038820152773a3cb832911d1123b930bb34ba3c9116113b30b63ab2911d60411b60588201528351612e498160708401602088016127be565b607d60f81b6070929091019182015260710195945050505050565b654d617a65202360d01b815260008251612e858160068501602087016127be565b9190910160060192915050565b683d913730b6b2911d1160b91b81528551600090612eb7816009850160208b016127be565b72111610113232b9b1b934b83a34b7b7111d101160691b6009918401918201528651612eea81601c840160208b016127be565b71222c202261747472696275746573223a205b60701b601c92909101918201528551612f1d81602e840160208a016127be565b6009818301019150506b2e96101134b6b0b3b2911d1160a11b60258201528451612f4e8160318401602089016127be565b612f91612f83612f7d603185850101731116101130b734b6b0ba34b7b72fbab936111d1160611b815260140190565b87612a9e565b61227d60f01b815260020190565b9998505050505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251612fd681601d8501602087016127be565b91909101601d0192915050565b7f223e3c7374796c653e2e61207b66696c6c3a2075726c282341297d202e62207b81527f66696c6c3a2075726c282342297d3c2f7374796c653e3c646566733e3c70617460208201527f7465726e2069643d2241222077696474683d22313022206865696768743d223160408201527f3022207061747465726e556e6974733d227573657253706163654f6e5573652260608201527f3e3c7265637420783d22302220793d2230222077696474683d2231302220686560808201527f696768743d223130223e3c616e696d617465206174747269627574654e616d6560a08201527f3d2266696c6c22206475723d2231732220726570656174436f756e743d22696e60c0820152713232b334b734ba3291103b30b63ab2b99e9160711b60e08201526000835161311a8160f28501602088016127be565b7f22206b657954696d65733d22303b302e31313b302e32323b302e33333b302e3460f2918401918201527f343b302e35353b302e36363b302e37373b302e38383b31222f3e3c2f726563746101128201527f3e3c2f7061747465726e3e3c7061747465726e2069643d2242222077696474686101328201527f3d22313022206865696768743d22313022207061747465726e556e6974733d226101528201527f7573657253706163654f6e557365223e3c7265637420783d22302220793d22306101728201527f222077696474683d22313022206865696768743d223130222066696c6c3d2272610192820152620cec4560eb1b6101b28201526132226101b5820185612a9e565b741491179f1e17b830ba3a32b9371f1e17b232b3399f60591b815260150195945050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f73766722207072657365727665417370656374526174696f3d22784d696020820152780372ca6b4b71036b2b2ba11103b34b2bba137bc1e911810181603d1b6040820152600084516132c98160598501602089016127be565b600160fd1b60599184019182015284516132ea81605a8401602089016127be565b845191019061330081605a8401602088016127be565b01605a0195945050505050565b60006001820161331f5761331f612cb9565b5060010190565b60008551613338818460208a016127be565b85519083019061334c818360208a016127be565b6211179f60e91b9101908152845161336b8160038401602089016127be565b7f222f3e3c7265637420783d2231302220793d223130222077696474683d223130600392909101918201527704440d0cad2ced0e87a4462604440ccd2d8d87a44e4cec4560431b602382015283516133ca81603b8401602088016127be565b691491179f1e17b9bb339f60b11b603b92909101918201526045019695505050505050565b7919185d184e9a5b5859d94bdcdd99cade1b5b0ed8985cd94d8d0b60321b81526000825161342481601a8501602087016127be565b91909101601a0192915050565b634e487b7160e01b600052601260045260246000fd5b60008261345657613456613431565b500490565b60006020828403121561346d57600080fd5b8151611adf816125dc565b8181038181111561049a5761049a612cb9565b60008261349a5761349a613431565b500690565b6e3d913a3930b4ba2fba3cb832911d1160891b815282516000906134ca81600f8501602088016127be565b6a1116113b30b63ab2911d1160a91b600f9184019182015283516134f581601a8401602088016127be565b62089f4b60ea1b601a9290910191820152601d01949350505050565b600082516135238184602087016127be565b652a22a72923a160d11b920191825250600601919050565b6000835161354d8184602088016127be565b8351908301906135618183602088016127be565b603b60f81b9101908152600101949350505050565b604d60f81b8152600083516135928160018501602088016127be565b600160fd1b60019184019182015283516135b38160028401602088016127be565b6c0103418983b1898341698983d1609d1b60029290910191820152600f01949350505050565b600082516135eb8184602087016127be565b9190910192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613628908301846127e2565b9695505050505050565b60006020828403121561364457600080fd5b8151611adf8161256a565b630e4cec4560e31b81526000845161366e8160048501602089016127be565b8083019050600b60fa1b8060048301528551613691816005850160208a016127be565b600592019182015283516136ac8160068401602088016127be565b602960f81b600692909101918201526007019594505050505056fe3c21444f43545950452068746d6c3e3c68746d6c206c616e673d22656e22203e3c686561643e203c6d65746120636861727365743d225554462d38223e203c7469746c653e3344204d617a653c2f7469746c653e3c7374796c653e626f6479207b6261636b67726f756e643a20233030303b646973706c61793a202d7765626b69742d626f783b646973706c61793a202d6d732d666c6578626f783b646973706c61793a20666c65783b2d7765626b69742d626f782d6f7269656e743a20766572746963616c3b2d7765626b69742d626f782d646972656374696f6e3a206e6f726d616c3b2d6d732d666c65782d646972656374696f6e3a20636f6c756d6e3b666c65782d646972656374696f6e3a20636f6c756d6e3b6865696768743a2031303076683b77696474683a20313030253b7d63616e766173207b20706f736974696f6e3a206162736f6c7574653b20746f703a2030253b206c6566743a2030253b2077696474683a20313030766d696e3b206865696768743a20313030766d696e3b646973706c61793a202d7765626b69742d626f783b646973706c61793a202d6d732d666c6578626f783b646973706c61793a20666c65783b7d2377696e207b706f736974696f6e3a206162736f6c7574653b746f703a2030253b6c6566743a2030253b6261636b67726f756e642d636f6c6f723a207267626128302c302c302c2e38293b746578742d616c69676e3a2063656e7465723b77696474683a20313030766d696e3b6865696768743a20313030766d696e3b636f6c6f723a20236565653b6f7061636974793a20303b646973706c61793a206e6f6e653b7472616e736974696f6e3a206f706163697479202e35733b7d2377696e2e73686f77696e67207b646973706c61793a20696e6c696e652d626c6f636b3b6f7061636974793a20313b7d2377696e2c20627574746f6e207b666f6e743a20323070782048656c7665746963613b7d627574746f6e207b70616464696e673a203870783b7d3c2f7374796c653e3c2f686561643e3c626f64793e3c686561643e3c6d65746120636861727365743d225554462d38223e3c7469746c653e3344206d617a653c2f7469746c653e3c2f686561643e3c626f64793e203c63616e7661732069643d2263223e3c2f63616e7661733e203c6469762069643d77696e20636c6173733d73686f77696e673e203c703e3c627574746f6e2069643d626567696e427574746f6e3e53746172743c2f627574746f6e3e3c2f703e203c2f6469763e3c2f626f64793e3c7363726970743e207661722073697a653d4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef3b3c2f7363726970743e3c7363726970743e7661722073706565643d352c73656e733d2e30352c77696474683d3530302c617865593d3130302c74616e54686574613d352e363537322c74616e5468657461323d74616e54686574612a2a322c66696e6973683d21312c43414e5641535f4845494748543d43414e5641535f57494454483d22383030222c706f6c79676f6e3d5b5d3b636f6e73742077616c6c5665727465783d5b5b5b302c302c305d2c5b302c302c315d2c5b302c312c315d2c5b302c312c305d5d2c5b5b302c302c305d2c5b312c302c305d2c5b312c302c315d2c5b302c302c315d5d2c5b5b302c302c305d2c5b312c302c305d2c5b312c312c305d2c5b302c312c305d5d5d2c77616c6c43656e7465723d5b5b302c2e352c2e355d2c5b2e352c302c2e355d2c5b2e352c2e352c305d5d3b666f7228766172206d617a653d5b5d2c616c6c57616c6c733d5b5d2c783d303b783c73697a653b2b2b7829666f722876617220793d303b793c73697a653b2b2b79297b666f7228766172207a3d303b7a3c73697a653b2b2b7a29616c6c57616c6c732e70757368285b782c792c7a2c305d292c616c6c57616c6c732e70757368285b782c792c7a2c315d292c616c6c57616c6c732e70757368285b782c792c7a2c325d293b616c6c57616c6c732e70757368285b73697a652c782c792c305d292c616c6c57616c6c732e70757368285b782c73697a652c792c315d292c616c6c57616c6c732e70757368285b782c792c73697a652c325d297d766172206f6c642c706c617965722c6b657973446f776e2c72696768742c7365656e3d6e6577205365742c77616c6c733d5b5d2c637574733d6e6577205365742c7374617274733d6e6577205365742c656e64733d6e6577205365742c7061737365643d6e6577205365742c70713d287374617274732e616464285b302c302c302c305d2e746f537472696e672829292c7374617274732e616464285b302c302c302c315d2e746f537472696e672829292c7374617274732e616464285b302c302c302c325d2e746f537472696e672829292c7374617274732e616464285b312c302c302c305d2e746f537472696e672829292c7374617274732e616464285b302c312c302c315d2e746f537472696e672829292c7374617274732e616464285b302c302c312c325d2e746f537472696e672829292c656e64732e616464285b73697a652d312c73697a652d312c73697a652d312c305d2e746f537472696e672829292c656e64732e616464285b73697a652d312c73697a652d312c73697a652d312c315d2e746f537472696e672829292c656e64732e616464285b73697a652d312c73697a652d312c73697a652d312c325d2e746f537472696e672829292c656e64732e616464285b73697a652c73697a652d312c73697a652d312c305d2e746f537472696e672829292c656e64732e616464285b73697a652d312c73697a652c73697a652d312c315d2e746f537472696e672829292c656e64732e616464285b73697a652d312c73697a652d312c73697a652c325d2e746f537472696e672829292c5b5d292c72657175657374416e696d4672616d653d77696e646f772e72657175657374416e696d6174696f6e4672616d657c7c77696e646f772e7765626b697452657175657374416e696d6174696f6e4672616d657c7c77696e646f772e6d6f7a52657175657374416e696d6174696f6e4672616d657c7c66756e6374696f6e2865297b77696e646f772e73657454696d656f757428652c3165332f667073297d3b66756e6374696f6e2067656e4d617a6528297b6d617a652e6c656e6774683d302c7365656e3d6e6577205365742c77616c6c732e6c656e6774683d302c637574733d6e6577205365742c7061737365643d6e6577205365742c66696e6973683d21313b666f722876617220653d303b653c73697a653b2b2b65297b6d617a652e70757368285b5d293b666f722876617220613d303b613c73697a653b2b2b61297b6d617a655b655d2e70757368285b5d293b666f7228766172206c3d303b6c3c73697a653b2b2b6c296d617a655b655d5b615d2e70757368282131297d7d66756e6374696f6e207428652c612c6c297b66756e6374696f6e207428652c612c6c2c74297b7365656e2e686173285b652c612c6c2c745d2e746f537472696e672829297c7c2877616c6c732e70757368285b652c612c6c2c745d292c7365656e2e616464285b652c612c6c2c745d2e746f537472696e67282929297d6d617a655b655d5b615d5b6c5d7c7c286d617a655b655d5b615d5b6c5d3d21302c7428652c612c6c2c30292c7428652c612c6c2c31292c7428652c612c6c2c32292c7428652b312c612c6c2c30292c7428652c612b312c6c2c31292c7428652c612c6c2b312c3229297d666f72287428302c302c30293b303c77616c6c732e6c656e6774683b2977616c6c3d77616c6c735b4d6174682e72616e646f6d28292a77616c6c732e6c656e6774687c305d2c77616c6c732e73706c6963652877616c6c732e696e6465784f662877616c6c292c31292c30213d77616c6c5b77616c6c5b335d5d262677616c6c5b305d213d73697a65262677616c6c5b315d213d73697a65262677616c6c5b325d213d73697a652626282d2d2863656c6c323d5b77616c6c5b305d2c77616c6c5b315d2c77616c6c5b325d5d295b77616c6c5b335d5d2c6d617a655b77616c6c5b305d5d5b77616c6c5b315d5d5b77616c6c5b325d5d213d6d617a655b63656c6c325b305d5d5b63656c6c325b315d5d5b63656c6c325b325d5d29262628637574732e6164642877616c6c2e746f537472696e672829292c742877616c6c5b305d2c77616c6c5b315d2c77616c6c5b325d292c742863656c6c325b305d2c63656c6c325b315d2c63656c6c325b325d29297d66756e6374696f6e20636c65617253637265656e28297b6374782e66696c6c5374796c653d227768697465222c6374782e66696c6c5265637428302c302c43414e5641535f57494454482c43414e5641535f5749445448297d7661722072656e6465723d66756e6374696f6e28297b636c65617253637265656e28292c6d6f7665506c6179657228292c6472617757616c6c7328292c64726177436f6d7061737328297d3b66756e6374696f6e2063726f737350726f6475637428652c61297b72657475726e5b655b315d2a615b325d2d655b325d2a615b315d2c655b325d2a615b305d2d655b305d2a615b325d2c655b305d2a615b315d2d655b315d2a615b305d5d7d66756e6374696f6e20646f7450726f6475637428652c61297b72657475726e20655b305d2a615b305d2b655b315d2a615b315d2b655b325d2a615b325d7d66756e6374696f6e206e6f726d616c697a65642865297b76617220613d4d6174682e7371727428655b305d2a2a322b655b315d2a2a322b655b325d2a2a32293b72657475726e5b655b305d2f612c655b315d2f612c655b325d2f615d7d766172206765744c656674426f74746f6d3d66756e6374696f6e2865297b72657475726e5b4d6174682e666c6f6f7228655b305d2f7769647468292c4d6174682e666c6f6f7228655b315d2f7769647468292c4d6174682e666c6f6f7228655b325d2f7769647468295d7d2c6169644465616c436f6c6c6973696f6e3d66756e6374696f6e28652c61297b637574732e68617328652e746f537472696e672829293f7061737365642e61646428652e746f537472696e672829293a706c617965722e6c5b655b335d5d3d615b655b335d5d7d2c6465616c436f6c6c6973696f6e3d66756e6374696f6e2865297b5b785f2c795f2c7a5f5d3d6765744c656674426f74746f6d28706c617965722e6c292c5b785f5f2c795f5f2c7a5f5f5d3d6765744c656674426f74746f6d2865292c785f2d785f5f3d3d2d3126266169644465616c436f6c6c6973696f6e285b785f5f2c795f5f2c7a5f5f2c305d2c65292c795f2d795f5f3d3d2d3126266169644465616c436f6c6c6973696f6e285b785f5f2c795f5f2c7a5f5f2c315d2c65292c7a5f2d7a5f5f3d3d2d3126266169644465616c436f6c6c6973696f6e285b785f5f2c795f5f2c7a5f5f2c325d2c65292c785f2d785f5f3d3d3126266169644465616c436f6c6c6973696f6e285b785f5f2b312c795f5f2c7a5f5f2c305d2c65292c795f2d795f5f3d3d3126266169644465616c436f6c6c6973696f6e285b785f5f2c795f5f2b312c7a5f5f2c315d2c65292c7a5f2d7a5f5f3d3d3126266169644465616c436f6c6c6973696f6e285b785f5f2c795f5f2c7a5f5f2b312c325d2c65292c653d706c617965722e6c2e736c6963652830292c5b785f2c795f2c7a5f5d3d6765744c656674426f74746f6d28706c617965722e6c292c785f3d3d73697a652d312626795f3d3d73697a652d3126267a5f3d3d73697a652d3126262866696e6973683d2130297d2c6d6f7665506c617965723d66756e6374696f6e28297b72696768743d6e6f726d616c697a65642863726f737350726f6475637428706c617965722e6469722c706c617965722e6865616429292c6f6c643d706c617965722e6c2e736c6963652830292c73706565643d313620696e206b657973446f776e3f31303a352c383720696e206b657973446f776e262628706c617965722e6c5b305d2b3d706c617965722e6469725b305d2a73706565642c706c617965722e6c5b315d2b3d706c617965722e6469725b315d2a73706565642c706c617965722e6c5b325d2b3d706c617965722e6469725b325d2a73706565642c6465616c436f6c6c6973696f6e286f6c6429292c383320696e206b657973446f776e262628706c617965722e6c5b305d2d3d706c617965722e6469725b305d2a73706565642c706c617965722e6c5b315d2d3d706c617965722e6469725b315d2a73706565642c706c617965722e6c5b325d2d3d706c617965722e6469725b325d2a73706565642c6465616c436f6c6c6973696f6e286f6c6429292c363820696e206b657973446f776e262628706c617965722e6c5b305d2b3d72696768745b305d2a73706565642c706c617965722e6c5b315d2b3d72696768745b315d2a73706565642c706c617965722e6c5b325d2b3d72696768745b325d2a73706565642c6465616c436f6c6c6973696f6e286f6c6429292c363520696e206b657973446f776e262628706c617965722e6c5b305d2d3d72696768745b305d2a73706565642c706c617965722e6c5b315d2d3d72696768745b315d2a73706565642c706c617965722e6c5b325d2d3d72696768745b325d2a73706565642c6465616c436f6c6c6973696f6e286f6c6429292c333220696e206b657973446f776e262628706c617965722e6c5b305d2b3d706c617965722e686561645b305d2a73706565642c706c617965722e6c5b315d2b3d706c617965722e686561645b315d2a73706565642c706c617965722e6c5b325d2b3d706c617965722e686561645b325d2a73706565642c6465616c436f6c6c6973696f6e286f6c6429292c706c617965722e6c5b325d2d3d677261766974792c6465616c436f6c6c6973696f6e286f6c64292c333920696e206b657973446f776e262628706c617965722e6469725b305d2b3d72696768745b305d2a73656e732c706c617965722e6469725b315d2b3d72696768745b315d2a73656e732c706c617965722e6469725b325d2b3d72696768745b325d2a73656e73292c333720696e206b657973446f776e262628706c617965722e6469725b305d2d3d72696768745b305d2a73656e732c706c617965722e6469725b315d2d3d72696768745b315d2a73656e732c706c617965722e6469725b325d2d3d72696768745b325d2a73656e73292c333820696e206b657973446f776e262628706c617965722e6469725b305d2b3d706c617965722e686561645b305d2a73656e732c706c617965722e6469725b315d2b3d706c617965722e686561645b315d2a73656e732c706c617965722e6469725b325d2b3d706c617965722e686561645b325d2a73656e732c706c617965722e686561645b305d2d3d706c617965722e6469725b305d2a73656e732c706c617965722e686561645b315d2d3d706c617965722e6469725b315d2a73656e732c706c617965722e686561645b325d2d3d706c617965722e6469725b325d2a73656e73292c343020696e206b657973446f776e262628706c617965722e6469725b305d2d3d706c617965722e686561645b305d2a73656e732c706c617965722e6469725b315d2d3d706c617965722e686561645b315d2a73656e732c706c617965722e6469725b325d2d3d706c617965722e686561645b325d2a73656e732c706c617965722e686561645b305d2b3d706c617965722e6469725b305d2a73656e732c706c617965722e686561645b315d2b3d706c617965722e6469725b315d2a73656e732c706c617965722e686561645b325d2b3d706c617965722e6469725b325d2a73656e73292c706c617965722e6469723d6e6f726d616c697a656428706c617965722e646972292c706c617965722e686561643d6e6f726d616c697a656428706c617965722e68656164297d2c676574506f696e743d66756e6374696f6e2865297b72657475726e5b646f7450726f647563742864656c74613d5b655b305d2d706c617965722e6c5b305d2c655b315d2d706c617965722e6c5b315d2c655b325d2d706c617965722e6c5b325d5d2c7269676874292c646f7450726f647563742864656c74612c706c617965722e646972292c646f7450726f647563742864656c74612c706c617965722e68656164295d7d2c736f6c7665723d66756e6374696f6e28652c61297b72657475726e20615f3d28615b305d2d655b305d292a2a322b28615b325d2d655b325d292a2a322d28615b315d2d655b315d292a2a322a74616e5468657461322c625f3d322a2828615b305d2d655b305d292a655b305d2b28615b325d2d655b325d292a655b325d2d28615b315d2d655b315d292a655b315d2a74616e546865746132292c635f3d655b305d2a2a322b655b325d2a2a322d655b315d2a2a322a74616e5468657461322c743d282d625f2b4d6174682e7371727428625f2a2a322d342a615f2a635f29292f322f615f2c74323d282d625f2d4d6174682e7371727428625f2a2a322d342a615f2a635f29292f322f615f2c79313d655b315d2b742a28615b315d2d655b315d292c79323d655b315d2b74322a28615b315d2d655b315d292c795f3d2128303c79312626303c7932292626303c79323f28743d74322c7932293a79312c5b28655b305d2b742a28615b305d2d655b305d29292a617865592f795f2c28655b325d2b742a28615b325d2d655b325d29292a617865592f795f5d7d2c647261774c696e653d66756e6374696f6e28652c61297b7468657461313d4d6174682e616273284d6174682e7371727428655b305d2a2a322b655b325d2a2a32292f655b315d292c7468657461323d4d6174682e616273284d6174682e7371727428615b305d2a2a322b615b325d2a2a32292f615b315d292c303c655b315d26267468657461313c3d74616e54686574613f28706f6c79676f6e2e70757368285b655b305d2a617865592f655b315d2c655b325d2a617865592f655b315d5d292c615b315d3c3d307c7c7468657461323e74616e54686574613f706f6c79676f6e2e7075736828736f6c76657228652c6129293a706f6c79676f6e2e70757368285b615b305d2a617865592f615b315d2c615b325d2a617865592f615b315d5d29293a303c615b315d26267468657461323c3d74616e5468657461262628706f6c79676f6e2e7075736828736f6c76657228612c6529292c706f6c79676f6e2e70757368285b615b305d2a617865592f615b315d2c615b325d2a617865592f615b315d5d29297d2c66696c6c506f6c79676f6e3d66756e6374696f6e2861297b69662830213d706f6c79676f6e2e6c656e677468297b6c657420653b613d612e746f537472696e6728293b653d637574732e6861732861293f7374617274732e6861732861297c7c656e64732e6861732861293f72616e646f6d5f726762612873746172742c2e31293a7061737365642e6861732861293f72616e646f6d5f726762612868696e742c2e31293a72616e646f6d5f7267626128706173732c2e31293a7374617274732e6861732861297c7c656e64732e6861732861293f72616e646f6d5f726762612873746172742c31293a72616e646f6d5f726762612877616c6c432c31292c6374782e66696c6c5374796c653d652c6374782e626567696e5061746828292c6374782e6d6f7665546f28706f6c79676f6e5b305d5b305d2c706f6c79676f6e5b305d5b315d293b666f7228766172206c3d313b6c3c706f6c79676f6e2e6c656e6774683b6c2b2b296374782e6c696e65546f28706f6c79676f6e5b6c5d5b305d2c706f6c79676f6e5b6c5d5b315d293b6374782e636c6f73655061746828292c6374782e7374726f6b655374796c653d72616e646f6d5f726762612868696e742c31292c6374782e6c696e6557696474683d312c6374782e7374726f6b6528292c6374782e66696c6c28297d7d2c6f3d4d6174682e726f756e642c723d4d6174682e72616e646f6d2c733d3235353b66756e6374696f6e20676c69636865642865297b72657475726e206f28287228292a732b652a616d70292f28616d702b3129297d66756e6374696f6e2072616e646f6d5f7267626128652c61297b72657475726e227267626128222b676c696368656428655b305d292b222c222b676c696368656428655b315d292b222c222b676c696368656428655b325d292b222c222b612b2229227d7661722064726177526563743d66756e6374696f6e2865297b76303d5b28655b305d2b77616c6c5665727465785b655b335d5d5b305d5b305d292a77696474682c28655b315d2b77616c6c5665727465785b655b335d5d5b305d5b315d292a77696474682c28655b325d2b77616c6c5665727465785b655b335d5d5b305d5b325d292a77696474685d2c76313d5b28655b305d2b77616c6c5665727465785b655b335d5d5b315d5b305d292a77696474682c28655b315d2b77616c6c5665727465785b655b335d5d5b315d5b315d292a77696474682c28655b325d2b77616c6c5665727465785b655b335d5d5b315d5b325d292a77696474685d2c76323d5b28655b305d2b77616c6c5665727465785b655b335d5d5b325d5b305d292a77696474682c28655b315d2b77616c6c5665727465785b655b335d5d5b325d5b315d292a77696474682c28655b325d2b77616c6c5665727465785b655b335d5d5b325d5b325d292a77696474685d2c76333d5b28655b305d2b77616c6c5665727465785b655b335d5d5b335d5b305d292a77696474682c28655b315d2b77616c6c5665727465785b655b335d5d5b335d5b315d292a77696474682c28655b325d2b77616c6c5665727465785b655b335d5d5b335d5b325d292a77696474685d2c76303d676574506f696e74287630292c76313d676574506f696e74287631292c76323d676574506f696e74287632292c76333d676574506f696e74287633292c706f6c79676f6e2e6c656e6774683d302c647261774c696e652876302c7631292c647261774c696e652876312c7632292c647261774c696e652876322c7633292c647261774c696e652876332c7630292c66696c6c506f6c79676f6e2865297d3b66756e6374696f6e20646973742865297b72657475726e204d6174682e73717274282828655b305d2b77616c6c43656e7465725b655b335d5d5b305d292a77696474682d706c617965722e6c5b305d292a2a322b2828655b315d2b77616c6c43656e7465725b655b335d5d5b315d292a77696474682d706c617965722e6c5b315d292a2a322b2828655b325d2b77616c6c43656e7465725b655b335d5d5b325d292a77696474682d706c617965722e6c5b325d292a2a32297d636f6e737420737761703d28652c61293d3e5b70715b655d2c70715b615d5d3d5b70715b615d2c70715b655d5d3b7661722061646470713d66756e6374696f6e286c297b6966282128287072696f726974793d64697374286c29293e362a776964746829297b70712e70757368285b6c2c7072696f726974795d293b6c657420653d70712e6c656e6774682d312c613b666f72283b653b297b696628613d652d313e3e312c7072696f726974793c3d70715b615d5b315d2972657475726e3b7377617028652c61292c653d617d7d7d2c726d70713d66756e6374696f6e28297b7377617028302c70712e6c656e6774682d31293b76617220653d70712e706f7028293b6c656e6774683d70712e6c656e6774683b6c657420613d302c6c3d322a612b312c743b666f72283b6c3c6c656e67746826262828743d322a612b32293c6c656e677468262670715b745d5b315d3e70715b6c5d5b315d2626286c3d74292c212870715b6c5d5b315d3c3d70715b615d5b315d29293b297377617028612c6c292c6c3d322a28613d6c292b313b72657475726e20655b305d7d2c6472617757616c6c733d66756e6374696f6e28297b666f72286374782e7365745472616e73666f726d28312c302c302c2d312c43414e5641535f57494454482f322c43414e5641535f4845494748542f32292c72696768743d6e6f726d616c697a65642863726f737350726f6475637428706c617965722e6469722c706c617965722e6865616429292c693d303b693c616c6c57616c6c732e6c656e6774683b692b2b29616464707128616c6c57616c6c735b695d293b666f72283b303c70712e6c656e6774683b29656c656d3d726d707128292c647261775265637428656c656d293b6374782e7365745472616e73666f726d28312c302c302c312c302c30297d2c64726177436f6d706173733d66756e6374696f6e28297b5b785f2c795f2c7a5f5d3d6765744c656674426f74746f6d28706c617965722e6c293b76617220653d6e6f726d616c697a656428676574506f696e74285b77696474682a2873697a652d2e35292c77696474682a2873697a652d2e35292c77696474682a2873697a652d2e35295d29293b64726177576f726473286028247b785f7d2c20247b795f7d2c20247b7a5f7d29602c43414e5641535f57494454482a282e352d2e312a655b305d292c43414e5641535f4845494748542a282e352b2e312a655b325d29292c64726177576f726473286028247b73697a652d317d2c20247b73697a652d317d2c20247b73697a652d317d29602c43414e5641535f57494454482a282e352b2e312a655b305d292c43414e5641535f4845494748542a282e352d2e312a655b325d29292c6374782e626567696e5061746828292c6374782e6d6f7665546f2843414e5641535f57494454482f322b32352a655b305d2c43414e5641535f4845494748542f322d32352a655b325d292c6374782e6c696e65546f2843414e5641535f57494454482f322d32352a655b305d2c43414e5641535f4845494748542f322b32352a655b325d292c6374782e6c696e6557696474683d352c6374782e7374726f6b655374796c653d227267626128222b706173732b223129222c6374782e7374726f6b6528292c6374782e626567696e5061746828292c6374782e6172632843414e5641535f57494454482f322b33302a655b305d2c43414e5641535f4845494748542f322d33302a655b325d2c352c302c322a4d6174682e50492c2130292c6374782e6c696e6557696474683d352c6374782e7374726f6b6528297d2c616e696d6174696f6e4c6f6f703d66756e6374696f6e206528297b77696e646f772e72657175657374416e696d4672616d652865292c66696e697368262677696e2e636c6173734c6973742e616464282273686f77696e6722292c72656e64657228297d3b66756e6374696f6e2064726177576f72647328652c612c6c297b6374782e666f6e743d223136707820417269616c222c6374782e66696c6c5374796c653d2223303030303030222c6374782e66696c6c5465787428652c612c6c297d66756e6374696f6e20696e697428297b706c617965723d7b6c3a5b77696474682f322c77696474682f322c77696474682f325d2c6469723a5b312f312e3431342c312f312e3431342c305d2c686561643a5b302c302c315d7d2c6b657973446f776e3d7b7d2c77616c6c733d5b5d2c66696e6973683d212872696768743d5b312c302c305d292c67656e4d617a6528297d626567696e427574746f6e2e6164644576656e744c697374656e65722822636c69636b222c66756e6374696f6e28297b77696e2e636c6173734c6973742e72656d6f7665282273686f77696e6722292c696e697428297d292c632e77696474683d43414e5641535f57494454482c632e6865696768743d43414e5641535f4845494748542c6374783d632e676574436f6e746578742822326422292c6164644576656e744c697374656e657228226b6579646f776e222c66756e6374696f6e2865297b652e70726576656e7444656661756c7428292c6b657973446f776e5b652e6b6579436f64655d3d21307d2c2131292c6164644576656e744c697374656e657228226b65797570222c66756e6374696f6e2865297b64656c657465206b657973446f776e5b652e6b6579436f64655d7d2c2131292c696e697428292c616e696d6174696f6e4c6f6f7028293b3c2f7363726970743e3c2f626f64793e3c2f68746d6c3e55736520575341442c206172726f77206b65797320616e6420737061636562617220746f20636f6e74726f6c2c206576656e20696620796f7520646f6e2774206b6e6f7720776865726520746f20676f2ea2646970667358221220d8c976e2c42df25614c3bc348e1c8d43d54889e8ba5b07a768547e68cee6d06664736f6c63430008110033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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