memoscan
← all memos

Memo 0x73b767a8…d4a12a on Ethereum

var shf = `precision highp float;varying vec2 vTexCoord;uniform sampler2D tex0;uniform vec2 tS,u_dir;uniform bool uS;uniform int uRes[2];uniform float t1,u_pA,u_pB,u_pC,u_g,u_br,u_con,uR[100],uR2[100],utK1,utK2,globalK,kT1,kT2,uvWK,wK,t2,e0,e1,fK,e2,qK;float rd(vec2 st){return fract(sin(dot(st.xy,vec2(12.9898,78.233)))*43758.5453123);}vec3 eB(sampler2D t,vec2 texUV,vec2 sS,mat3 cM){vec3 colOut=vec3(0.0);const int sC=9;float gW[sC];gW[0]=cM[0][0];gW[1]=cM[0][1];gW[2]=cM[0][2];gW[3]=cM[1][0];gW[4]=cM[1][1];gW[5]=cM[1][2];gW[6]=cM[2][0];gW[7]=cM[2][1];gW[8]=cM[2][2];float gO[sC];gO[0]=0.66293;gO[1]=2.47904;gO[2]=4.46232;gO[3]=6.44568;gO[4]=8.42917;gO[5]=10.41281;gO[6]=12.39664;gO[7]=14.38070;gO[8]=16.36501;for(int i=0;i < sC;i++){vec2 tCO=gO[i]*sS;vec3 col=texture2D(t,texUV+tCO).xyz+texture2D(t,texUV-tCO).xyz;col*=gW[i];colOut+=col;}return colOut;}vec3 gB(sampler2D t,vec2 texUV,vec2 sS){vec3 u=vec3(0.0);const int sC=9;float gW[sC];gW[0]=0.10855;gW[1]=0.13135;gW[2]=0.10406;gW[3]=0.07216;gW[4]=0.04380;gW[5]=0.02328;gW[6]=0.01083;gW[7]=0.00441;gW[8]=0.00157;float gO[sC];gO[0]=0.66293;gO[1]=2.47904;gO[2]=4.46232;gO[3]=6.44568;gO[4]=8.42917;gO[5]=10.41281;gO[6]=12.39664;gO[7]=14.38070;gO[8]=16.36501;for(int i=0;i < sC;i++){vec2 tCO=gO[i]*sS;vec3 c=texture2D(t,texUV+tCO).xyz+texture2D(t,texUV-tCO).xyz;c*=gW[i];u+=c;}return u;}vec3 bC(vec3 v,float b,float c){return (v-0.5)*c+0.5+b;}float n4(in vec2 st){vec2 i=floor(st);vec2 f=fract(st);float a=rd(i);float b=rd(i+vec2(1.,0.));float c=rd(i+vec2(0.,1.));float d=rd(i+vec2(1.,1.));vec2 u=f*f*(3.-2.*f);return mix(a,b,u.x)+(c-a)*u.y*(1.-u.x)+(d-b)*u.x*u.y;}float fbm(in vec2 st){float v=0.;float a=.52;for(int i=0;i < 9;i++){v+=a*n4(st);st*=5.95*(uR[23]+uR[6]);a*=.5;}return v;}void main(){vec2 uv=vTexCoord;mat3 emb1,emb2;mat2 m2_1=mat2(1.,-0.1*cos(uv.x*10.*uR[1]+uR2[40]+uR2[43]*t1*0.1),-0.1*sin(uv.y*10.*uR[2]+uR2[41]+uR2[45]*t1*0.1),1.);vec2 uv4=uv*(1.-kT2)*m2_1;vec2 uv3=uv4;float xk=0.;float yk=0.;float k2=200.*(2.*uR[41]+uR[73]+uR[77]);uv3.x=float(int(k2*uv3.x))/k2;uv3.y=float(int(k2*uv3.y))/k2;k2=2.*t2*(3.+uR[41]+uR[51]);xk+=sin(0.01*uR[7]*.75*k2*uv3.x+2.*uR2[7]);xk+=sin(0.01*uR[8]*.75*k2*uv3.x+2.*uR2[8]);xk+=sin(0.01*uR[9]*.75*k2*uv3.x+2.*uR2[9]);xk+=sin(0.01*uR[10]*.75*k2*uv3.x+2.*uR2[10]);yk+=sin(0.01*uR[17]*.75*k2*uv3.y+2.*uR2[17]);yk+=sin(0.01*uR[18]*.75*k2*uv3.y+2.*uR2[18]);yk+=sin(0.01*uR[19]*.75*k2*uv3.y+2.*uR2[19]);yk+=sin(0.01*uR[20]*.75*k2*uv3.y+2.*uR2[20]);xk=xk/6.5+1.*pow(uR[4]*xk+uR[5]*yk +1.*xk*yk,1.);yk=yk/6.5+1.*pow(uR[1]*xk+uR[10]*yk+1.*xk*yk,1.);uv3.x += float(int((xk +0.5*rd(uv))* uv.x))/(xk);uv3.y += float(int((yk +0.5*rd(uv))* uv.y))/(yk);float rnd=rd(uv*t1);vec2 uvN;uvN=(uv-vec2(uR2[5],uR2[4]));vec3 tN=vec3(uR[1]*uvN.x+uR[5]*uvN.y,uR[2]*uvN.y+uR[5]*uvN.x,uR[3]*(sin(uvN.x*uR[26]+uvN.y*uR[25]+10.*uR2[26])))*rnd;uv4+=qK*0.5*uv3;if (qK>0.) uv4*=(0.9*qK);uv4=(1.0-uvWK)*uv+uvWK*uv4;vec3 tI_a1=vec3(0.0);float kT=100.*(1.+uR[26]);tI_a1=-0.5+vec3(fbm(vec2(fbm((uR[4]*4.+uR[5]*16.)*sin(uv4+t2/kT+uR[32]*10.)+t2/kT),fbm(2.25*sin(uvN)+t2/kT+uR[32]*200.))*9.792));uv4+=wK*kT2*sin(kT1)*0.04*tI_a1.xy;vec3 tI;if(uS){uv4=uv;}tI=texture2D(tex0,vec2(uv4.x,1.-uv4.y)).xyz;if(!uS){uv4+=wK*kT2*sin(kT1)*0.05*tI_a1.xy+fK*tN.yz;tI+=texture2D(tex0,vec2(uv4.x,1.-uv4.y)).xyz;uv4+=kT2*(2.+pow(sin(kT1+t2),2.))*0.05*tI_a1.xx;tI+=vec3(0.1,0.1,0.9)*0.5*texture2D(tex0,vec2(uv4.x,1.-uv4.y)).xyz;tI/=(3.5/(1.+kT2));}emb1=e0* mat3(3.,0.,0.,0.,e2+0.25*sin(uv4.x*t2*0.1*(uR[7]+uR[28])),0.,0.,0.,e2+0.25*sin(uv4.y*t2*0.01*(uR[2]+uR[17])));emb1+=e1*mat3(1.,0.,0.,0.,1.,0.,0.5+0.5*sin(uR[27]*100.+t2*(uv4.y+uv4.x)),0.,0.);emb2=mat3(0.3,0.21,0.02,0.1,-.95,0.01,.05,0.11,-1.08);vec3 cOut;vec3 b1=gB(tex0,vec2(uv4.x,1.-uv4.y),tS*u_dir);vec3 b2=gB(tex0,vec2(uv4.x,1.-uv4.y),tS*vec2(u_dir.x,u_dir.x));vec3 b3=gB(tex0,vec2(uv4.x,1.-uv4.y),tS*vec2((u_dir.y+u_dir.x)/2.,(u_dir.y+u_dir.x)/2.));vec3 b4=gB(tex0,vec2(uv4.x,1.-uv4.y),1.02*tS*vec2(u_dir.x/1.05,u_dir.x/1.06));vec3 eB1=0.5*eB(tex0,vec2(uv4.x,1.-uv4.y),vec2(1./float(uRes[0]),1./float(uRes[1])),emb1);vec3 eB2=0.5*eB(tex0,vec2(uv4.x,1.-uv4.y),vec2((1.+0.25*sin(t1/99.))/float(uRes[0]),(1.+0.25*sin(t1/100.))/float(uRes[1])),emb2);b1=pow(b1+b2+b3+b4,vec3(1.25))/4.;tI*=(0.69+(0.25+0.25*(0.65*eB1+0.35*eB2)*tN));cOut=bC(tI*(b1*u_pA+u_pB)+tN*u_pC+0.03*tN*(0.5+b1),u_br,u_con);if(!uS){vec3 test=eB(tex0,vec2(uv4.x,1.-uv4.y),vec2(1./float(uRes[0]),1./float(uRes[1])),emb1);test+=eB(tex0,vec2(uv4.x,1.-uv4.y),vec2(1./float(uRes[0]),1./float(uRes[1])),1.1*emb1);cOut*=(utK1+(1.-1.5*utK2)*test);}cOut=pow(cOut,vec3(u_g));if(!uS){cOut=cOut*1.0375+0.0375;cOut=cOut*1.21+0.0375;}cOut*=globalK;gl_FragColor=vec4(cOut,1.0);}`; var shv = `precision mediump float;varying vec2 vTexCoord;attribute vec3 aPosition;attribute vec2 aTexCoord;void main(){vTexCoord=aTexCoord;vec4 positionVec4=vec4(aPosition,1.0);positionVec4.xy=positionVec4.xy*2.0-1.0;gl_Position=positionVec4;}`; const _createFramebuffer=function(t){const e=new Framebuffer(this,t),s=this._renderer.resize;return this._renderer.resize=((t,i)=>{s.call(this._renderer,t,i),e.handleResize()}),e};p5.prototype.createFramebuffer=_createFramebuffer,p5.Graphics.prototype.createFramebuffer=_createFramebuffer,p5.RendererGL.prototype._initContext=function(){try{if(Framebuffer.forceWebGL1||(this.drawingContext=this.canvas.getContext("webgl2",this._pInst._glAttributes)),this.hasWebGL2=!!this.drawingContext,this.drawingContext||(this.drawingContext=this.canvas.getContext("webgl",this._pInst._glAttributes)||this.canvas.getContext("experimental-webgl",this._pInst._glAttributes)),null===this.drawingContext)throw new Error("Error creating webgl context");{const t=this.drawingContext;t.enable(t.DEPTH_TEST),t.depthFunc(t.LEQUAL),t.viewport(0,0,t.drawingBufferWidth,t.drawingBufferHeight),this._viewport=this.drawingContext.getParameter(this.drawingContext.VIEWPORT)}}catch(t){throw t}};const parentGetTexture=p5.RendererGL.prototype.getTexture;p5.RendererGL.prototype.getTexture=function(t){return t instanceof p5.Texture?t:parentGetTexture.call(this,t)};class RawTextureWrapper extends p5.Texture{constructor(t,e,s,i,d){return super(t,e,s),this.width=i,this.height=d,this}_getTextureDataFromSource(){return this.src}init(t){this._renderer.GL,this.glTex=t,this.glWrapS=this._renderer.textureWrapX,this.glWrapT=this._renderer.textureWrapY,this.setWrapMode(this.glWrapS,this.glWrapT),this.setInterpolation(this.glMinFilter,this.glMagFilter)}update(){return!1}}class FramebufferCamera extends p5.Camera{constructor(t){super(t._renderer),this.fbo=t}_computeCameraDefaultSettings(){super._computeCameraDefaultSettings(),this.defaultAspectRatio=this.fbo.width/this.fbo.height,this.defaultEyeZ=this.fbo.height/2/Math.tan(this.defaultCameraFOV/2),this.defaultCameraNear=.1*this.defaultEyeZ,this.defaultCameraFar=10*this.defaultEyeZ}resize(){"default"===this.cameraType?(this._computeCameraDefaultSettings(),this._setDefaultCamera()):this.perspective(this.cameraFOV,this.fbo.width/this.fbo.height)}}class Framebuffer{constructor(t,e={}){this.canvas=t,this._renderer=t._renderer;const s=this._renderer.GL,i=e.size;this.autoSized=!i,i&&(this.width=i.width,this.height=i.height,this.density=i.pixelDensity||t.pixelDensity()),this.antialias=e.antialias||!1,this.colorFormat=this.glColorFormat(e.colorFormat),this.depthFormat=this.glDepthFormat(e.depthFormat),"float"!==e.colorFormat&&"float"!==e.depthFormat||(this._renderer.hasWebGL2?s.getExtension("EXT_color_buffer_float"):s.getExtension("OES_texture_float")&&s.getExtension("OES_texture_float_linear")&&s.getExtension("WEBGL_color_buffer_float"))||("float"===e.colorFormat&&(this.colorFormat=this.glColorFormat()),"float"===e.depthFormat&&(this.depthFormat=this.glDepthFormat()),console.warn("Warning: Unable to create floating point textures in this environment. Falling back to integers"));const d=s.createFramebuffer();if(!d)throw new Error("Unable to create a framebuffer");if(this.framebuffer=d,this.antialias&&this._renderer.hasWebGL2&&(this.aaFramebuffer=s.createFramebuffer(),!this.aaFramebuffer))throw new Error("Unable to create a framebuffer");this.recreateTextures();const r=this._renderer._curCamera;this.cam=this.createCamera(),t.setCamera(r)}createCamera(){const t=new FramebufferCamera(this);return t._computeCameraDefaultSettings(),t._setDefaultCamera(),this._renderer._curCamera=t,t}defaultCamera(){return this.cam}resizeCanvas(t,e){this.autoSized=!1,this.width=t,this.height=e,this.handleResize()}pixelDensity(t){if(!t)return this.density*this.aaDensity;this.autoSized=!1,this.density=t,this.handleResize()}autoSized(t){if(void 0===t)return this.autoSized;this.autoSized=t,this.handleResize()}glColorFormat(t){const e=this._renderer.GL;return"float"===t?e.FLOAT:e.UNSIGNED_BYTE}glDepthFormat(t){const e=this._renderer.GL;return"float"===t?e.FLOAT:e.UNSIGNED_INT}glInternalFormat(t){if(this.antialias&&this._renderer.hasWebGL2)return this.glInternalRenderbufferFormat(t);const e=this._renderer.GL;return this._renderer.hasWebGL2&&this.colorFormat===e.FLOAT?t?e.RGBA16F:e.RGB16F:t?e.RGBA:e.RGB}glInternalRenderbufferFormat(t){const e=this._renderer.GL;if(this.colorFormat===e.FLOAT){if(this._renderer.hasWebGL2)return e.RGBA16F;throw new Error("Antialiased floating point values are not available in WebGL 1 mode")}return t?e.RGBA4:e.RGB565}glDepthInternalFormat(){const t=this._renderer.GL;return this._renderer.hasWebGL2?t.DEPTH_COMPONENT24:t.DEPTH_COMPONENT}glDepthInternalRenderbufferFormat(){const t=this._renderer.GL;return this._renderer.hasWebGL2?t.DEPTH_COMPONENT24:t.DEPTH_COMPONENT16}glFormat(t){const e=this._renderer.GL;return t?e.RGBA:e.RGB}handleResize(){this.cam.resize();const t=this.colorTexture,e=this.depthTexture,s=this.colorRenderbuffer,i=this.depthRenderbuffer;this.recreateTextures(),this.deleteTexture(t),this.deleteTexture(e);const d=this._renderer.GL;s&&d.deleteRenderbuffer(s),i&&d.deleteRenderbuffer(i)}updateSize(){this.autoSized&&(this.width=this._renderer.width,this.height=this._renderer.height,this.density=this._renderer._pInst._pixelDensity),this.aaDensity=this.antialias&&!this._renderer.hasWebGL2?2:1}recreateTextures(){const t=this._renderer.GL;this.updateSize();const e=this._renderer._pInst._glAttributes.alpha,s=t.getParameter(t.TEXTURE_BINDING_2D),i=t.getParameter(t.FRAMEBUFFER_BINDING),d=t.createTexture();if(!d)throw new Error("Unable to create color texture");t.bindTexture(t.TEXTURE_2D,d),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texImage2D(t.TEXTURE_2D,0,this.glInternalFormat(e),this.width*this.density*this.aaDensity,this.height*this.density*this.aaDensity,0,this.glFormat(e),this.colorFormat,null);const r=t.createTexture();if(!r)throw new Error("Unable to create depth texture");t.bindTexture(t.TEXTURE_2D,r),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texImage2D(t.TEXTURE_2D,0,this.glDepthInternalFormat(),this.width*this.density*this.aaDensity,this.height*this.density*this.aaDensity,0,t.DEPTH_COMPONENT,this.depthFormat,null),t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,d,0),t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,r,0),this.antialias&&this._renderer.hasWebGL2&&(this.colorRenderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(t.RENDERBUFFER,this.colorRenderbuffer),this._renderer.hasWebGL2?t.renderbufferStorageMultisample(t.RENDERBUFFER,4,this.glInternalRenderbufferFormat(e),this.width*this.density,this.height*this.density):t.renderbufferStorage(t.RENDERBUFFER,Math.min(4,t.getParameter(t.MAX_SAMPLES)),this.glInternalRenderbufferFormat(e),this.width*this.density,this.height*this.density),this.depthRenderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(t.RENDERBUFFER,this.depthRenderbuffer),this._renderer.hasWebGL2?t.renderbufferStorageMultisample(t.RENDERBUFFER,Math.min(4,t.getParameter(t.MAX_SAMPLES)),this.glDepthInternalRenderbufferFormat(),this.width*this.density,this.height*this.density):t.renderbufferStorage(t.RENDERBUFFER,t.getParameter(t.MAX_SAMPLES),this.glDepthInternalRenderbufferFormat(),this.width*this.density,this.height*this.density),t.bindFramebuffer(t.FRAMEBUFFER,this.aaFramebuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.RENDERBUFFER,this.colorRenderbuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,this.depthRenderbuffer));const h=new RawTextureWrapper(this._renderer,r,{minFilter:"nearest",magFilter:"nearest"},this.width*this.density*this.aaDensity,this.height*this.density*this.aaDensity);this._renderer.textures.push(h);const a=new RawTextureWrapper(this._renderer,d,{glMinFilter:"nearest",glMagFilter:"nearest"},this.width*this.density*this.aaDensity,this.height*this.density*this.aaDensity);this._renderer.textures.push(a),t.bindTexture(t.TEXTURE_2D,s),t.bindFramebuffer(t.FRAMEBUFFER,i),this.depthTexture=r,this.depth=h,this.colorTexture=d,this.color=a}deleteTexture(t){this._renderer.GL.deleteTexture(t);const e=this._renderer.textures.findIndex(e=>e.src===t);-1!==e&&this._renderer.textures.splice(e,1)}draw(t){const e=this._renderer.GL,s=e.getParameter(e.FRAMEBUFFER_BINDING);this.antialias&&this._renderer.hasWebGL2?e.bindFramebuffer(e.FRAMEBUFFER,this.aaFramebuffer):e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer);const i=e.getParameter(e.VIEWPORT);if(e.viewport(0,0,this.width*this.density*this.aaDensity,this.height*this.density*this.aaDensity),this.canvas.push(),this.canvas.setCamera(this.cam),this._renderer.uMVMatrix.set(this._renderer._curCamera.cameraMatrix.mat4[0],this._renderer._curCamera.cameraMatrix.mat4[1],this._renderer._curCamera.cameraMatrix.mat4[2],this._renderer._curCamera.cameraMatrix.mat4[3],this._renderer._curCamera.cameraMatrix.mat4[4],this._renderer._curCamera.cameraMatrix.mat4[5],this._renderer._curCamera.cameraMatrix.mat4[6],this._renderer._curCamera.cameraMatrix.mat4[7],this._renderer._curCamera.cameraMatrix.mat4[8],this._renderer._curCamera.cameraMatrix.mat4[9],this._renderer._curCamera.cameraMatrix.mat4[10],this._renderer._curCamera.cameraMatrix.mat4[11],this._renderer._curCamera.cameraMatrix.mat4[12],this._renderer._curCamera.cameraMatrix.mat4[13],this._renderer._curCamera.cameraMatrix.mat4[14],this._renderer._curCamera.cameraMatrix.mat4[15]),t(),this.antialias&&this._renderer.hasWebGL2){e.bindFramebuffer(e.READ_FRAMEBUFFER,this.aaFramebuffer),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,this.framebuffer);for(const[t,s]of[[e.COLOR_BUFFER_BIT,e.LINEAR],[e.DEPTH_BUFFER_BIT,e.NEAREST]])e.blitFramebuffer(0,0,this.width*this.density*this.aaDensity,this.height*this.density*this.aaDensity,0,0,this.width*this.density*this.aaDensity,this.height*this.density*this.aaDensity,t,s)}e.bindFramebuffer(e.FRAMEBUFFER,s),e.viewport(...i),this.canvas.pop()}remove(){const t=this._renderer.GL;this.deleteTexture(this.colorTexture),this.deleteTexture(this.depthTexture),t.deleteFramebuffer(this.framebuffer),this.aaFramebuffer&&t.deleteFramebuffer(this.aaFramebuffer),this.depthRenderbuffer&&t.deleteRenderbuffer(this.depthRenderbuffer),this.colorRenderbuffer&&t.deleteRenderbuffer(this.colorRenderbuffer)}}Framebuffer.forceWebGL1=!1;class Renderer{constructor(t=window,e={}){this.target=t,this.fbo=t.createFramebuffer(e),this.shader=t.createShader(this.vert(),this.frag())}vert(){throw new Error("Unimplemented")}frag(){throw new Error("Unimplemented")}getUniforms(){return{}}draw(t){this.fbo.draw(()=>{this.target.push(),t(),this.target.pop()});const e=this.getUniforms();this.target.push(),this.target.noStroke(),this.target.rectMode(CENTER),this.target.shader(this.shader);for(const t in e)this.shader.setUniform(t,e[t]);this.target.rect(0,0,this.target.width,-this.target.height),this.target.pop()}remove(){this.fbo.remove()}}const superPerspective=p5.Camera.prototype.perspective;p5.Camera.prototype.perspective=function(t,e,s,i){this._near=void 0===s?this.defaultCameraNear:s,this._far=void 0===i?this.defaultCameraFar:i,superPerspective.call(this,t,e,s,i)};var R,cV,tD=tokenData;const pltArrC={all:["fefefe","100702","db2b39","29335c","f3a712","3c91e6","38608f","fafffd","342e37","653C2F","954927","f56416","e7bb41","c1121f","003049","069B10","13D2B5"]},pltArrBg={bgColors:["303030","303030","303030","2C3869","471111","0A5824","4F0A58"]},PHIinv=1/((Math.sqrt(5)+1)/2),PHI=(Math.sqrt(5)+1)/2,PIdiv2=Math.PI/2;class Random{constructor(){this.useA=!1;let t=function(t){let e=parseInt(t.substring(0,8),16),s=parseInt(t.substring(8,16),16),i=parseInt(t.substring(16,24),16),d=parseInt(t.substring(24,32),16);return function(){let t=((e|=0)+(s|=0)|0)+(d|=0)|0;return d=d+1|0,e=s^s>>>9,s=(i|=0)+(i<<3)|0,i=(i=i<<21|i>>>11)+t|0,(t>>>0)/4294967296}};this.pA=new t(tokenData.hash.substring(2,34)),this.pB=new t(tokenData.hash.substring(34,66));for(let t=0;t<1e6;t+=2)this.pA(),this.pB()}d(){return this.uA=!this.uA,this.uA?this.pA():this.pB()}dd(){return 2*this.d()-1}n(t,e){return t+(e-t)*this.d()}i(t,e){return Math.floor(this.n(t,e+1))}c(t){return t[this.i(0,t.length-1)]}rmM(t){return this.n(t[0],t[1])}sgn(){return(-1)**this.c([0,1])}rNd(){let t=this.d();return Math.sqrt(-2*Math.log(t))*Math.cos(2*Math.PI*t)}}class polyLine{constructor(t,e,s,i,d,r,h=1){this.p1=t,this.p2=e,this.maxNoise=s,this.tC=i,this.segmM=d,this.inclmM=r,this.mode={},this.mode.l=!0,this.mode.p=!1,this.strokeWeight=h,this.skipSegmentProb=0,this.pDensity=.5,this.lDensity=.5,this.pSize=1,this.maxColorNoise=.15}draw(){let t=R.rmM(this.segmM),e=this.maxNoise;for(let s=0;s<t;s++){p.stroke(p.gCwN(this.tC,this.maxColorNoise)),p.strokeWeight(this.strokeWeight*(1+R.n(-d.MPLsSN,d.MPLsSN)));let i=s/t*(1+R.n(-d.MPLsN,d.MPLsN)),r=s/t*(1-R.n(-d.MPLsN,d.MPLsN)),h=cV(p.lerp(this.p1.x,this.p2.x,i)+R.dd()*e+R.rmM(this.inclmM),p.lerp(this.p1.y,this.p2.y,r)+R.dd()*e+R.rmM(this.inclmM));i=(s+1)/t*(1+R.n(-d.MPLsN,d.MPLsN)),r=(s+1)/t*(1+R.n(-d.MPLsN,d.MPLsN));let a=cV(p.lerp(this.p1.x,this.p2.x,i)+R.rNd()*e+R.rmM(this.inclmM),p.lerp(this.p1.y,this.p2.y,r)+R.rNd()*e+R.rmM(this.inclmM));p.line(h.x,h.y,a.x,a.y)}}}class aDiamond{constructor(t,e,s,i,d,r,h,a){let n=e+s+i;this.pL=cV(t.x-n/2+R.dd()*h,R.dd()*h),this.pW1U=cV(this.pL.x+e+R.dd()*h,d/2+R.dd()*h),this.pW2U=cV(this.pW1U.x+s+R.dd()*h,r/2+R.dd()*h),this.pR=cV(t.x+n/2+R.dd()*h,R.dd()*h),this.pW1L=cV(this.pL.x+e+R.dd()*h,-d/2+R.dd()*h),this.pW2L=cV(this.pW1U.x+s+R.dd()*h,-r/2+R.dd()*h),this.nL=10,this.ps=[],this.ps.push(this.pL),this.ps.push(this.pW1U),this.ps.push(this.pW2U),this.ps.push(this.pR),this.ps.push(this.pW2L),this.ps.push(this.pW1L),this.nK=h,this.c=a,this.c.levels[3]=10/this.nL}draw(t=this.c){p.push(),p.stroke(t);for(let t=0;t<this.nL;t++){p.push(),p.translate(5*R.dd(),5*R.dd());for(let t=0;t<6;t++)p.line(this.ps[t].x+R.dd()*this.nK,this.ps[t].y+R.dd()*this.nK,this.ps[(t+1)%6].x+R.dd()*this.nK,this.ps[(t+1)%6].y+R.dd()*this.nK);p.pop()}p.pop()}}class aLine{constructor(t,e,s,i,r,h,a,n){this.p1=t,this.p2=e,this.nSeg=s,this.sW=i,this.noiseK=r,this.a=h,this.aType=a,this.lineRepN=1,this.seg=(1+5*R.d())*p5V.mag(p5V.sub(e,t))/s,this.rotT=R.d()*d.lnRotF1,this.freq=d.lnF2*R.d()*2*p.PI,this.c=n}draw(){let t=d.lnNoiseK2*this.noiseK;p.push(),p.translate(this.p1.x,this.p1.y);for(let e=0;e<this.nSeg;e++){0==this.aType&&p.push(),p.rotate(this.a*(1+.1*R.d())),p.rotateX(this.rotT*e*2*p.PI/this.nSeg);for(let s=0;s<this.lineRepN;s++)p.stroke(p.gCwN(this.c,.15,R.n(.825,.995))),p.strokeWeight(this.sW*(1+R.n(-this.noiseK,this.noiseK))),p.line(R.dd()*t,R.dd()*t,this.seg*Math.sin(e*this.freq)+R.dd()*t,this.seg*Math.sin(e*this.freq)+R.dd()*t);0==this.aType&&p.pop(),p.translate((this.p2.x-this.p1.x)/this.nSeg,(this.p2.y-this.p1.y)/this.nSeg)}p.pop()}}class aPoly{constructor(t,e,s,i){this.w=t,this.nS=e,this.cP=s,this.c=i,this.nP=3,this.sW=1}draw(){p.push(),p.fill(p.gCwN(this.c,.15,R.n(.8,.99)));let t,e,s,i=3+2*p.abs(p.sin(p.frameCount/50+.2)),d=[1,2],r=[-.1,.1],h=this.c;h.levels[3]=80,p._renderer.GL.disable(p._renderer.GL.DEPTH_TEST);for(let a=0;a<this.nP;a++){if(p.translate(this.cP.x-this.w/2+R.dd()*i,this.cP.y+this.w/2+R.dd()*i),p.frameCount%1==0)for(let a=0;a<this.nS;a++)t=cV(this.w*p.sin(2*a*p.PI/this.nS)+R.dd()*i,this.w*p.cos(2*a*p.PI/this.nS)+R.dd()*i),e=cV(this.w*p.sin(2*(a+1)*p.PI/this.nS)+R.dd()*i,this.w*p.cos(2*(a+1)*p.PI/this.nS)+R.dd()*i),(s=new polyLine(t,e,0,h,d,r)).draw();p.strokeWeight(this.sW+.5*R.dd()),p.beginShape();for(let t=0;t<this.nS;t++)p.vertex(this.w*p.sin(2*t*p.PI/this.nS)+R.dd()*i,this.w*p.cos(2*t*p.PI/this.nS)+R.dd()*i);p.endShape()}p._renderer.GL.enable(p._renderer.GL.DEPTH_TEST),p.pop()}}class aFace2{constructor(t,e,s,i=p.color(0,50),r){this.nK=5,this.w=t,this.h=e,this.cP=s,this.c=i,this.orC=i,this.compC=p.color([255-i.levels[0],255-i.levels[1],255-i.levels[2],i.levels[3]]),this.drawSchema=!0,this.nD=r,this.UH=(.4+10*R.dd()*d.HHv)*this.h,this.UH1=(.4+R.dd()*d.HH1v)*this.UH,this.UH2=(.8+R.dd()*d.HH1v)*(this.UH-this.UH1),this.UH3=(.5+R.dd()*d.HH1v)*(this.UH-this.UH1-this.UH2),this.UH4=this.UH-this.UH1-this.UH2-this.UH3,this.LH=this.h-this.UH,this.LH1=(.4+R.dd()*d.HH1v)*this.LH,this.LH2=(.6+R.dd()*d.HH1v)*(this.LH-this.LH1),this.LH3=(.7+R.dd()*d.HH1v)*(this.LH-this.LH1-this.LH2),this.LH4=(.7+R.dd()*d.HH1v)*(this.LH-this.LH1-this.LH2-this.LH3),this.ULSW=this.w*(.5+R.dd()*d.Wv),this.ULSW1=this.ULSW*(.2+R.dd()*d.Wv),this.ULSW2=(this.ULSW-this.ULSW1)*(.6+R.dd()*d.Wv),this.ULSW3=(this.ULSW-this.ULSW1-this.ULSW2)*(.4+R.dd()*d.Wv),this.ULSW4=this.ULSW-this.ULSW1-this.ULSW2-this.ULSW3,this.URSW=this.w-this.ULSW,this.URSW1=this.URSW*(.2+R.dd()*d.Wv),this.URSW2=(this.URSW-this.URSW1)*(.6+R.dd()*d.Wv),this.URSW3=(this.URSW-this.URSW1-this.URSW2)*(.4+R.dd()*d.Wv),this.URSW4=this.URSW-this.URSW1-this.URSW2-this.URSW3,this.LLSW=this.w*(.5+R.dd()*d.Wv),this.LLSW1=this.LLSW*(.1+R.dd()*d.Wv),this.LLSW2=(this.LLSW-this.LLSW1)*(.4+R.dd()*d.Wv),this.LLSW3=(this.LLSW-this.LLSW1-this.LLSW2)*(.5+R.dd()*d.Wv),this.LLSW4=(this.LLSW-this.LLSW1-this.LLSW2-this.LLSW3)*(.6+R.dd()*d.Wv),this.LRSW=this.w*(.5+R.dd()*d.Wv),this.LRSW1=this.LRSW*(.2+R.dd()*d.Wv),this.LRSW2=(this.LRSW-this.LRSW1)*(.4+R.dd()*d.Wv),this.LRSW3=(this.LRSW-this.LRSW1-this.LRSW2)*(.5+R.dd()*d.Wv),this.LRSW4=(this.LRSW-this.LRSW1-this.LRSW2-this.LRSW3)*(.6+R.dd()*d.Wv),this.LEW=.4*this.ULSW+R.dd()*d.Wv,this.LEWpos=.5*(this.ULSW-this.LEW)+R.dd()*d.Wv,this.REW=.4*this.URSW+R.dd()*d.Wv,this.REWpos=.5*(this.URSW-this.REW)+R.dd()*d.Wv,this.LEarP=cV(-this.ULSW,0),this.ULP1=cV(-this.ULSW+this.ULSW1,this.UH1),this.ULP2=cV(-this.ULSW+this.ULSW1+this.ULSW2,this.UH2+this.UH1),this.ULP3=cV(-this.ULSW+this.ULSW1+this.ULSW2+this.ULSW3,this.UH3+this.UH2+this.UH1),this.CrP=cV(0,this.UH),this.REarP=cV(this.URSW,0),this.URP1=cV(this.URSW-this.URSW1,this.UH1),this.URP2=cV(this.URSW-this.URSW1-this.URSW2,this.UH2+this.UH1),this.URP3=cV(+this.URSW-this.URSW1-this.URSW2-this.URSW3,this.UH3+this.UH2+this.UH1),this.LLP1=cV(-this.LLSW+this.LLSW1,-this.LH1),this.LLP2=cV(-this.LLSW+this.LLSW1+this.LLSW2,-this.LH2-this.LH1),this.LLP3=cV(-this.LLSW+this.LLSW1+this.LLSW2+this.LLSW3,-this.LH3-this.LH2-this.LH1),this.LLP4=cV(-this.LLSW+this.LLSW1+this.LLSW2+this.LLSW3+this.LLSW4,-this.LH3-this.LH2-this.LH1-this.LH4),this.LLP5=cV(0,-this.LH),this.LRP1=cV(this.LRSW-this.LRSW1,-this.LH1),this.LRP2=cV(this.LRSW-this.LRSW1-this.LRSW2,-this.LH2-this.LH1),this.LRP3=cV(this.LRSW-this.LRSW1-this.LRSW2-this.LRSW3,-this.LH3-this.LH2-this.LH1),this.LRP4=cV(this.LRSW-this.LRSW1-this.LRSW2-this.LRSW3-this.LRSW4,-this.LH3-this.LH2-this.LH1-this.LH4),this.NdUP=cV(R.dd()*d.Wv,R.dd()*d.Wv),this.NdLP=cV(R.sgn()*(.8+R.dd()*d.Wv)*this.LRSW2,-this.LH*(.35+.15*R.dd())),this.NLLP=cV(R.dd()*this.NdLP.x*.1,this.NdLP.y*(.9+.15*R.dd())),this.McP=cV(.5*this.NdLP.x+R.dd()*d.Wv,this.NdLP.y*(1.2+.1*R.dd())),this.MW=(1.3+2*R.dd())*this.LRSW2,this.McW=.5*