0x1808bbab…0434sent to0x0a1bbd57…3676·#16,601,268·view on Etherscan
let mintNumber=parseInt(tokenData.tokenId)%1e6;0===mintNumber&&(tokenData.hash="0x90ced9ecdb0fd1f5c27351492835551f1bdd7612ec59f92a083dc37020af1858");class Random{constructor(){this.useA=!1;let e=function(e){let t=parseInt(e.substr(0,8),16),$=parseInt(e.substr(8,8),16),a=parseInt(e.substr(16,8),16),_=parseInt(e.substr(24,8),16);return function(){a|=0;let e=((t|=0)+($|=0)|0)+(_|=0)|0;return _=_+1|0,t=$^$>>>9,$=a+(a<<3)|0,a=(a=a<<21|a>>>11)+e|0,(e>>>0)/4294967296}};this.prngA=new e(tokenData.hash.substr(2,32)),this.prngB=new e(tokenData.hash.substr(34,32));for(let t=0;t<1e6;t+=2)this.prngA(),this.prngB()}random_dec(){return this.useA=!this.useA,this.useA?this.prngA():this.prngB()}random_num(e,t){return e+(t-e)*this.random_dec()}random_int(e,t){return Math.floor(this.random_num(e,t+1))}random_bool(e){return this.random_dec()<e}random_choice(e){return e[this.random_int(0,e.length-1)]}}function _createV(e,t,$){let a=$;return void 0==a&&(a=0),{x:e,y:t,z:a}}function _dot(e,t){return e.x*t.x+e.y*t.y+e.z*t.z}function _setMag(e,t){let $=_normalize(e);return _scalarMult($,t)}function _normalize(e){let t=_mag(e);return 0==t?e:_scalarMult(e,1/t)}function _scalarMult(e,t){return _createV(e.x*t,e.y*t,e.z*t)}function _add(e,t){return _createV(e.x+t.x,e.y+t.y,e.z+t.z)}function _mag(e){return sqrt(sq(e.x)+sq(e.y)+sq(e.z))}function _magSq(e){return sq(e.x)+sq(e.y)+sq(e.z)}function _rotate(e,t,$,a){let _=cos(t),s=cos($),l=cos(a),r=sin(t),n=sin($),o=sin(a),i={x:e.x,y:e.y,z:e.z},p=_,h=r,c=0,m=-r,d=_,u=0,f=0,y=0,g=1;return i={x:i.x*p+i.y*m+i.z*f,y:i.x*h+i.y*d+i.z*y,z:i.x*c+i.y*u+i.z*g},p=s,h=0,c=n,m=0,d=1,u=0,f=-n,y=0,g=s,i={x:i.x*p+i.y*m+i.z*f,y:i.x*h+i.y*d+i.z*y,z:i.x*c+i.y*u+i.z*g},p=1,h=0,c=0,m=0,d=l,u=o,f=0,y=-o,g=l,i={x:i.x*p+i.y*m+i.z*f,y:i.x*h+i.y*d+i.z*y,z:i.x*c+i.y*u+i.z*g}}function blurMap(e,t,$){let a,_,s,l,r;for(s=0;s<t;s++)for(a=0;a<e.length;a++)for(_=0;_<e[0].length;_++)l=0,r=0,a>0&&(r++,l+=e[a-1][_],_>0&&(r++,l+=e[a-1][_-1]),_<e[0].length-1&&(r++,l+=e[a-1][_+1])),a<e.length-1&&(r++,l+=e[a+1][_],_>0&&(r++,l+=e[a+1][_-1]),_<e[0].length-1&&(r++,l+=e[a+1][_+1])),l+=e[a][_],r++,e[a][_]=lerp(e[a][_],l/r,$)}function handleUrlParams(){let e=window.location.search,t=new URLSearchParams(e),$=t.get("mag");mag=null==$?1:float($)>0?max(float($),1):1}function erode(e,t,$,a){let _=_random(.5,2),s=60*_,l=4*$*10,r=.6*$,n=.6*$,o=.1/_;for(let i=0;i<t;i++){let p=_random(1),h=_random(1),c=createVector(_random(mapW-1),_random(mapH-1)),m=createVector(0,0),d=0,u=1,f=0;for(let y=0;y<s;++y){let g=round(c.x),x=round(c.y);if(g<0||x<0||g>=mapW-1||x>=mapH-1)break;let S,b;S=c.x>g?c.x-g:g-c.x,b=c.y>x?c.y-x:x-c.y;let z=calculateHeightAndGradient(e,g,x);if(isNaN(z[0])||isNaN(z[1])||isNaN(z[2])||(m.x=.5*m.x-.5*z[0],m.y=.5*m.y-.5*z[1],m.normalize(),c.add(m),0==m.x&&0==m.y||c.x<0||c.x>=mapW-1||c.y<0||c.y>=mapH-1))break;let W=calculateHeightAndGradient(e,c.x,c.y)[2];if(isNaN(W))break;let P=W-z[2],C=max(-P*d*u*l,.01);if(f>C||P>0){let M=g,w=x,A=P>0?min(P,f):(f-C)*r*depositMap[M][w];f-=A;let F=(1-S)*(1-b),V=S*(1-b),k=(1-S)*b,H=S*b;e[M][w]+=A*F,e[M+1][w]+=A*V,e[M][w+1]+=A*k,e[M+1][w+1]+=A*H}else for(let D=0;D<=a;D++)for(let v=0;v<=a;v++){let T;T=1/sq(a+1);let q=g+D,E=x+v;if(p<.5&&(q=g-D),h<.5&&(E=x-v),q<0||E<0||q>=mapW-1||E>=mapH-1)break;let N=1*(min((C-f)*n,-P)*erodeMap[q][E]*T),L=e[q][E]<N?e[q][E]:N;e[q][E]-=L,f+=L}if(d=sqrt(d*d+4*abs(P)),(u*=1-o)<1e-4)break}}}function calculateHeightAndGradient(e,t,$){if(t<0||t>=e.length-1||$<0||$>=e[0].length-1)return[0,0,0];let a=floor(t),_=floor($),s=t-a,l=$-_,r=e[a][_],n=e[a+1][_],o=e[a][_+1],i=e[a+1][_+1];return[(n-r)*(1-l)+(i-o)*l,(o-r)*(1-s)+(i-n)*s,r*(1-s)*(1-l)+n*s*(1-l)+o*(1-s)*l+i*s*l]}function preparePalette(e){palettes.push([color("#1a1d28"),color("#377D71"),color("#8879B0"),color("#FBA1A1"),color("#FBC5C5"),]),treePalettes.push([color("#1a1d28"),color("#2d3351"),color("#214942"),color("#214942"),color("#6dad9f"),color("#6dad9f"),color("#f99d9d"),color("#f8b861"),]),bushPalettes.push([color("#1a1d28"),color("#2d3351"),color("#214942"),color("#214942"),color("#6dad9f"),color("#6dad9f"),color("#f99d9d"),color("#f8b861"),]),skyPalettes.push([color("#f99d9d"),color("#f8b861"),color("#f8b861"),color("#f8b861"),color("#FBC5C5"),color("#FBC5C5"),]),oceanPalettes.push([color("#1a1d28"),color("#1a1d28"),color("#304750"),color("#304750"),color("#668099"),color("#f99d9d"),color("#f8b861"),]),cactusPalettes.push([color("#1a1d28"),color("#2d3351"),color("#8879B0"),color("#f99d9d"),color("#f8b861"),]),cactusFruitPalettes.push([color("#440404"),color("#890a0a"),color("#e30f0f"),color("#f45959"),]),petalPalettes.push([color("#f45959"),color("#f99d9d"),color("#f8b861"),]),palettes.push([color("#1a172f"),color("#29264E"),lerpColor(color("#29264E"),color("#9881F5"),.5),color("#9881F5"),lerpColor(color("#9881F5"),color("#82AFF9"),.5),color("#F97D81"),lerpColor(color("#F97D81"),color("#fcbcbe"),.5),color("#fcbcbe"),color("#f7c066"),]),treePalettes.push([color("#1a172f"),color("#29264E"),color("#354e6f"),color("#7d8cb5"),color("#799f89"),color("#efc9d7"),color("#f7c066"),]),bushPalettes.push([color("#1a172f"),color("#29264E"),color("#354e6f"),color("#7d8cb5"),color("#799f89"),color("#efc9d7"),color("#f7c066"),]),skyPalettes.push([color("#9881F5"),lerpColor(color("#9881F5"),color("#82AFF9"),.5),color("#F97D81"),lerpColor(color("#F97D81"),color("#fcbcbe"),.5),color("#fcbcbe"),color("#f7c066"),]),oceanPalettes.push([color("#29264E"),color("#29264E"),lerpColor(color("#29264E"),color("#4d75b3"),.1),lerpColor(color("#29264E"),color("#4d75b3"),.2),lerpColor(color("#29264E"),color("#4d75b3"),.3),color("#4d75b3"),lerpColor(color("#4d75b3"),color("#82AFF9"),.5),color("#F97D81"),lerpColor(color("#F97D81"),color("#fcbcbe"),.5),color("#fcbcbe"),color("#f7c066"),]),cactusPalettes.push([color("#1a172f"),color("#29264E"),color("#F97D81"),color("#efc9d7"),color("#f7c066"),]),cactusFruitPalettes.push([color("#440404"),color("#890a0a"),color("#e30f0f"),color("#f45959"),]),petalPalettes.push([color("#F97D81"),color("#efc9d7"),color("#f7c066"),]),palettes.push([color("#0b0b62"),color("#2f2fd2"),color("#4649FF"),color("#7978FF"),color("#C47AFF"),color("#baaef9"),]),treePalettes.push([color("#0b0b62"),color("#1c4fe6"),color("#4679ff"),color("#7799ff"),color("#C47AFF"),color("#aed3f9"),]),bushPalettes.push([color("#0b0b62"),color("#1c4fe6"),color("#4679ff"),color("#7799ff"),color("#C47AFF"),color("#aed3f9"),]),skyPalettes.push([color("#0b0b62"),color("#2f2fd2"),color("#4649FF"),color("#7978FF"),color("#baaef9"),color("#d1c5e2"),]),oceanPalettes.push([color("#0b0b62"),color("#2f2fd2"),color("#4649FF"),color("#7978FF"),color("#baaef9"),color("#d1c5e2"),]),cactusPalettes.push([color("#0b0b62"),color("#7799ff"),color("#aed3f9"),]),cactusFruitPalettes.push([color("#360062"),color("#530097"),color("#9717ff"),color("#C47AFF"),]),petalPalettes.push([color("#4679ff"),color("#7799ff"),color("#baaef9"),color("#d1c5e2"),]),palettes.push([color("#232601"),color("#4a69fe"),color("#ef412f"),color("#efac25"),color("#eeefd0"),]),treePalettes.push([color("#232601"),color("#232601"),color("#232601"),color("#4a69fe"),color("#226330"),color("#efac25"),color("#efac25"),color("#eeefd0"),color("#eeefd0"),]),bushPalettes.push([color("#232601"),color("#226330"),color("#efac25"),color("#eeefd0"),]),skyPalettes.push([color("#011ea5"),color("#4a69fe"),color("#ef412f"),color("#efac25"),color("#eeefd0"),]),oceanPalettes.push([color("#011ea5"),color("#4a69fe"),color("#ef412f"),color("#efac25"),]),cactusPalettes.push([color("#232601"),color("#226330"),color("#efac25"),color("#eeefd0"),]),cactusFruitPalettes.push([color("#550e06"),color("#941a0c"),color("#ef412f"),color("#f47a6c"),]),petalPalettes.push([color("#efac25"),color("#eeefd0"),]),palette=palettes[e],treePalette=treePalettes[e],bushPalette=bushPalettes[e],skyPalette=skyPalettes[e],oceanPalette=oceanPalettes[e],cactusPalette=cactusPalettes[e],cactusFruitPalette=cactusFruitPalettes[e],petalPalette=petalPalettes[e]}function paletteColor(e){return palette[constrain(floor(e*palette.length),0,palette.length-1)]}function treePaletteColor(e){return treePalette[constrain(floor(e*treePalette.length),0,treePalette.length-1)]}function bushPaletteColor(e){return bushPalette[constrain(floor(e*bushPalette.length),0,bushPalette.length-1)]}function skyPaletteColor(e){return skyPalette[constrain(floor(e*skyPalette.length),0,skyPalette.length-1)]}function oceanPaletteColor(e){return oceanPalette[constrain(floor(e*oceanPalette.length),0,oceanPalette.length-1)]}function cactusPaletteColor(e){return cactusPalette[constrain(floor(e*cactusPalette.length),0,cactusPalette.length-1)]}function cactusFruitPaletteColor(e){return cactusFruitPalette[constrain(floor(e*cactusFruitPalette.length),0,cactusFruitPalette.length-1)]}function petalPaletteColor(e){return petalPalette[constrain(floor(e*petalPalette.length),0,petalPalette.length-1)]}function landscapeColor(e,t){return paletteColor(map(hMap[e][t],0,2*TWO_PI,0,noise(e*noiseScale*4+1e3,t*noiseScale*4+1e3)))}function lightColor(e){return paletteColor(e)}function prepareHeightMap(){let e=(mapW=100*floor(targetSzW/targetSz)+2*mapTrim)*(mapH=100+2*mapTrim)/1e4;landscapeShape=_random(["valleyAbs","valleyCos","valleyCos","mountainAbs","mountainAbs","updownLeft","updownLeft","updownRight","updownRight"]),noiseDetail(1,1),mapScale=_random(.3,.7);let t=map(mapScale,.1,1,.6,.2),$=[[1,1*mapScale],[t,2*mapScale],[pow(t,2),4*mapScale],],a=0;for(let _=0;_<$.length;_++)a+=$[_][0];for(let s=0;s<mapW;s++){let l=[],r=[],n=[];for(let o=0;o<mapH;o++){let i=0;for(let p=0;p<$.length;p++)i+=norm(sNoise.noise2D(s*noiseScale*$[p][1]*2,o*noiseScale*$[p][1]*1),-1,1)*$[p][0];let h=constrain(pow(map(i,0,a,0,1),1),0,1);h*=map(o,0,mapH,1,0),"valleyAbs"==landscapeShape?h*=pow(map(abs(s-mapW/2),0,mapW/2+mapTrim,0,1),1):"valleyCos"==landscapeShape?(h*=pow(map(cos(map(s,0,mapW,0,TAU)),-1,1,0,.8),.53),h*=map(o,0,mapH,.9,1)):"updownLeft"==landscapeShape?(h*=map(sin(map(s+map(noise(o*noiseScale*4),0,1,-1,1)*mapW*0,mapTrim,mapW-mapTrim,0,TAU)),-1,1,0,.65),h*=map(o,0,mapH,.7,1)):"updownRight"==landscapeShape?(h*=map(sin(map(mapW-s+map(noise(o*noiseScale*4),0,1,-1,1)*mapW*.1,mapTrim,mapW-mapTrim,0,TAU)),-1,1,0,.65),h*=map(o,0,mapH,.7,1)):"mountainAbs"==landscapeShape&&(h*=pow(map(abs(s-mapW/2+map(noise(o*noiseScale*4),0,1,-1,1)*mapW*.15),0,mapW/2,.8,0),1),h*=map(o,0,mapH,.8,1)),h=floor(1e5*h)/1e5,h*=2*TAU;let c=map(s,0,mapW,0,targetSzW);c+=cos(h)*warpSz;let m=map(o,0,mapH,0,targetSz);m+=sin(h)*warpSz,minX=min(c,minX),maxX=max(c,maxX),minY=min(m,minY),maxY=max(m,maxY),l.push(h),r.push(.1),n.push(.001)}hMap.push(l),erodeMap.push(r),depositMap.push(n)}erode(hMap,1e4*e,1,4),erode(hMap,1e4*e,1,4),erode(hMap,1e4*e,1,4),erode(hMap,1e4*e,1,2),erode(hMap,1e4*e,1,1),blurMap(hMap,1,.4)}function prepareLigthMap(){for(let e=0;e<mapW;e++){let t=[];for(let $=0;$<mapH;$++){let a=_normalize(hMapNormal(e,$)),_=_dot(a,lgt);t.push(_)}lMap.push(t)}}function hMapNormal(e,t){let $,a=1,_,s=1;return e==mapW-1?($=e-1,a=-1):$=e+1,t==mapH-1?(_=t-1,s=-1):_=t+1,_createV((hMap[$][t]-hMap[e][t])*a,(hMap[e][_]-hMap[e][t])*s)}function hMapNormal2(e,t){let $,a=1,_,s=1;return e==mapW-1?($=e-1,a=-1):$=e+1,t==mapH-1?(_=t-1,s=-1):_=t+1,_createV((hMapNormal($,t).x-hMapNormal(e,t).x)*a,(hMapNormal(e,_).y-hMapNormal(e,t).y)*s)}function openSimplexNoise(e){"use strict";let t=e=>e.split(",").map(e=>new Uint8Array(e.split("").map(e=>Number(e)))),$=(e,t,$)=>new Int8Array($.split("").map($=>parseInt($,t)+e)),a=e=>e.split(",").map(e=>parseInt(e,32)),_=1/47,s=1/103,l=.7320508075688772/2,r=1/3,n=(.5773502691896258-1)/2,o=-.5/3;var i=t("110101000,110101211"),p=t("0000110010101001,2110210120113111,110010101001211021012011");t("0000011000101001001010001,3111031101310113011141111,11000101001001010001211002101021001201102010120011,31110311013101130111211002101021001201102010120011");let h=$(-5,11,"a77a073aa3700330"),c=$(-11,23,"0ff7mf7fmmfffmfffm07f70f77mm7ff0ff7m0f77m77f0mf7fm7ff0077707770m77f07f70");var m=()=>new Uint8Array([0,1,1,0,4,1,17,0,20,2,21,2,22,5,23,5,26,4,39,3,42,4,43,3]),d=()=>