0x792654e8…f200sent to0x99a9b7c1…b069·#18,928,920·view on Etherscan
///11
drawVerticesUnclosedContour(e,t,_,r=1){const F=e.length;if(2==F){switch(GFXP5.noStroke(),_){case FIL_BK:GFXP5.fill(0);break;case FIL_WH:GFXP5.fill(designBgCol);break;case FIL_NO:GFXP5.noFill()}const t=e[0].x,F=e[0].y,s=e[1].x,o=e[1].y;let c=s-t,l=o-F,a=Math.sqrt(c*c+l*l);if(a>0){let e=r/2;c*=e/a,l*=e/a,GFXP5.quad(t+l,F-c,s+l,o-c,s-l,o+c,t-l,F+c)}}else{switch(t){case STR_NO:GFXP5.noStroke();break;case STR_BK:GFXP5.stroke(0);break;case STR_WH:GFXP5.stroke(designBgCol)}GFXP5.strokeWeight(r),GFXP5.noFill(),GFXP5.beginShape(),GFXP5.curveVertex(e[0].x,e[0].y);for(let t=0;t<F;t++)GFXP5.curveVertex(e[t].x,e[t].y);GFXP5.curveVertex(e[F-1].x,e[F-1].y),GFXP5.endShape()}}
drawVerticesRandomlyDashed(e,t,r,i,n,a,h,l){if(0==h)r?drawVsBzClosed(e,i,n,a):drawVerticesUnclosedContour(e,i,n,a);else{const i=e.length;GFXP5.strokeWeight(a),GFXP5.stroke(0),GFXP5.noFill();let n=0;if(r){let r=i+1,a=~~myRAB(0,i/10);const o=StSh.orientationSensitiveDashNotchWidth,s=StSh.orientationSensitiveOmitDashAngle,G=Math.cos(s),P=Math.sin(s);for(;n<i;){let s=2+myRI(1,l),X=i-n;if(X<=1)break;if(2==X?(t=F,s=1):X<s&&(s=X-1),t){GFXP5.beginShape();let t=(n+a)%i;GFXP5.curveVertex(e[t].x,e[t].y);for(let h=0;h<s;h++)t=(n+a)%i,n<r&&GFXP5.curveVertex(e[t].x,e[t].y),n++;GFXP5.curveVertex(e[t].x,e[t].y),GFXP5.endShape()}else if(StSh.bOrientationSensitiveDashedContours){GFXP5.beginShape();let t=myRA(o),h=F;for(let l=0;l<s;l++){let l=(n+a-1+i)%i,o=(n+a)%i;if(n<r){let r=e[o].x-e[l].x,i=e[o].y-e[l].y,n=Math.sqrt(r*r+i*i),a=r/n*P-i/n*G;t<Math.abs(a)&&!h?GFXP5.vertex(e[o].x,e[o].y):h=T}n++}GFXP5.endShape()}else{GFXP5.beginShape();for(let t=0;t<s;t++){let t=(n+a)%i;n<r&&GFXP5.vertex(e[t].x,e[t].y),n++}GFXP5.endShape()}n+=~~myRAB(1,h)-1}}else{let r=i-1;for(;n<i;){let i=1+Math.round(myRAB(1,l));if(t){GFXP5.beginShape();let t=Math.min(n,r);GFXP5.curveVertex(e[t].x,e[t].y);for(let a=0;a<i;a++)t=Math.min(n,r),GFXP5.curveVertex(e[t].x,e[t].y),n++;GFXP5.curveVertex(e[t].x,e[t].y),GFXP5.endShape()}else{GFXP5.beginShape();for(let t=0;t<i;t++){let t=Math.min(n,r);n<r&&GFXP5.vertex(e[t].x,e[t].y),n++}GFXP5.endShape()}n+=~~myRAB(1,h)-1}}}}
drawVsPolyl(e,_,F,s,t=1){if(e.length>1){switch(F){case STR_NO:GFXP5.noStroke();break;case STR_BK:GFXP5.strokeWeight(t),GFXP5.stroke(0);break;case STR_WH:GFXP5.strokeWeight(t),GFXP5.stroke(designBgCol)}switch(s){case FIL_BK:GFXP5.fill(0);break;case FIL_WH:GFXP5.fill(designBgCol);break;case FIL_NO:GFXP5.noFill()}GFXP5.beginShape();for(let _=0;_<e.length;_++)GFXP5.vertex(e[_].x,e[_].y);_?GFXP5.endShape(CLOSE):GFXP5.endShape()}}
drawVsBzClosed(e,t,_,i=1){const s=e.length;if(s>0){const o=1/3;let r=this.getVxP(e,0,0,o);if(r){let P=T;switch(t){case STR_NO:GFXP5.noStroke(),P=F;break;case STR_BK:GFXP5.strokeWeight(i),GFXP5.stroke(0);break;case STR_WH:GFXP5.strokeWeight(i),GFXP5.stroke(designBgCol)}let X=T;switch(_){case FIL_BK:GFXP5.fill(0);break;case FIL_WH:GFXP5.fill(designBgCol);break;case FIL_NO:GFXP5.noFill(),X=F}GFXP5C.beginPath(),GFXP5C.moveTo(r.x,r.y);for(let t=0;t<s;t++){const _=this.getVxP(e,t,1,o),i=this.getVxP(e,t+1,-1,o),s=this.getVxP(e,t+1,0,o);GFXP5C.bezierCurveTo(_.x,_.y,i.x,i.y,s.x,s.y)}GFXP5C.closePath(),X&&GFXP5C.fill(),P&&GFXP5C.stroke()}}}
getVxP(t,n,s,c){const o=t.length;if(0===s)return t[n%o];{const e=t[(n+o-1)%o],r=t[n%o],x=t[(n+1)%o];let y=e.x-r.x,h=e.y-r.y;const l=Math.sqrt(y*y+h*h);let a=x.x-r.x,f=x.y-r.y;const i=Math.sqrt(a*a+f*f);y/=l,h/=l,a/=i,f/=i;const q=y+a,u=h+f,M=Math.sqrt(q*q+u*u);let g=0;if(M>0){g=c/M;const t=y*f-h*a;g*=1===s?i*(t>0?-1:1):l*(t<0?-1:1)}const V=r.x+u*g,C=r.y-q*g;return CV(V,C)}}
applySpringForces(s){const i=this.springs.length;if(1==s)for(let s=0;s<i;s++)this.springs[s].updatePass1();else if(2==s)for(let s=0;s<i;s++)this.springs[s].updatePass2()}
update(s){const e=this.pIs.length;for(let t=0;t<e;t++){const e=this.pIs[t];myPs[e].update(s)}let t=this.whichParticleIsGrabbed;mouseIsPressed&&t>-1&&myPs[t].p.set(mouseX,mouseY)}};
//DELAUNAY
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).d3=t.d3||{})}(this,(function(t){"use strict";function e(t,e,i,l,s){let n,h,r,a,o=e[0],u=l[0],f=0,_=0;u>o==u>-o?(n=o,o=e[++f]):(n=u,u=l[++_]);let c=0;if(f<t&&_<i)for(u>o==u>-o?(h=o+n,r=n-(h-o),o=e[++f]):(h=u+n,r=n-(h-u),u=l[++_]),n=h,0!==r&&(s[c++]=r);f<t&&_<i;)u>o==u>-o?(a=(h=n+o)-n,r=n-(h-a)+(o-a),o=e[++f]):(a=(h=n+u)-n,r=n-(h-a)+(u-a),u=l[++_]),n=h,0!==r&&(s[c++]=r);for(;f<t;)a=(h=n+o)-n,r=n-(h-a)+(o-a),o=e[++f],n=h,0!==r&&(s[c++]=r);for(;_<i;)a=(h=n+u)-n,r=n-(h-a)+(u-a),u=l[++_],n=h,0!==r&&(s[c++]=r);return 0===n&&0!==c||(s[c++]=n),c}function i(t){return new Float64Array(t)}let l=i(4),s=i(8),n=i(12),h=i(16),r=i(4);function a(t,i,a,o,u,f){let _=(i-f)*(a-u),c=(t-u)*(o-f),d=_-c;if(0===_||0===c||_>0!=c>0)return d;let g=Math.abs(_+c);return Math.abs(d)>=33306690738754716e-32*g?d:-function(t,i,a,o,u,f,_){let c,d,g,y,x,m,p,w,b,v,A,M,T,k,$,P,S,I,z=t-u,F=a-u,U=i-f,K=o-f;k=z*K,p=(m=134217729*z)-(m-z),w=z-p,b=(m=134217729*K)-(m-K),$=w*(v=K-b)-(k-p*b-w*b-p*v),P=U*F,p=(m=134217729*U)-(m-U),w=U-p,b=(m=134217729*F)-(m-F),A=$-(S=w*(v=F-b)-(P-p*b-w*b-p*v)),x=$-A,l[0]=$-(A+x)+(x-S),x=(M=k+A)-k,A=(T=k-(M-x)+(A-x))-P,x=T-A,l[1]=T-(A+x)+(x-P),x=(I=M+A)-M,l[2]=M-(I-x)+(A-x),l[3]=I;let L=function(t,e){let i=e[0];for(let t=1;t<4;t++)i+=e[t];return i}(0,l),j=22204460492503146e-32*_;if(L>=j||-L>=j||(x=t-z,c=t-(z+x)+(x-u),x=a-F,g=a-(F+x)+(x-u),x=i-U,d=i-(U+x)+(x-f),x=o-K,y=o-(K+x)+(x-f),0===c&&0===d&&0===g&&0===y)||(j=11093356479670487e-47*_+33306690738754706e-32*Math.abs(L),(L+=z*y+K*c-(U*g+F*d))>=j||-L>=j))return L;k=c*K,p=(m=134217729*c)-(m-c),w=c-p,b=(m=134217729*K)-(m-K),$=w*(v=K-b)-(k-p*b-w*b-p*v),P=d*F,p=(m=134217729*d)-(m-d),w=d-p,b=(m=134217729*F)-(m-F),A=$-(S=w*(v=F-b)-(P-p*b-w*b-p*v)),x=$-A,r[0]=$-(A+x)+(x-S),x=(M=k+A)-k,A=(T=k-(M-x)+(A-x))-P,x=T-A,r[1]=T-(A+x)+(x-P),x=(I=M+A)-M,r[2]=M-(I-x)+(A-x),r[3]=I;let E=e(4,l,4,r,s);k=z*y,p=(m=134217729*z)-(m-z),w=z-p,b=(m=134217729*y)-(m-y),$=w*(v=y-b)-(k-p*b-w*b-p*v),P=U*g,p=(m=134217729*U)-(m-U),w=U-p,b=(m=134217729*g)-(m-g),A=$-(S=w*(v=g-b)-(P-p*b-w*b-p*v)),x=$-A,r[0]=$-(A+x)+(x-S),x=(M=k+A)-k,A=(T=k-(M-x)+(A-x))-P,x=T-A,r[1]=T-(A+x)+(x-P),x=(I=M+A)-M,r[2]=M-(I-x)+(A-x),r[3]=I;let H=e(E,s,4,r,n);k=c*y,p=(m=134217729*c)-(m-c),w=c-p,b=(m=134217729*y)-(m-y),$=w*(v=y-b)-(k-p*b-w*b-p*v),P=d*g,p=(m=134217729*d)-(m-d),w=d-p,b=(m=134217729*g)-(m-g),A=$-(S=w*(v=g-b)-(P-p*b-w*b-p*v)),x=$-A,r[0]=$-(A+x)+(x-S),x=(M=k+A)-k,A=(T=k-(M-x)+(A-x))-P,x=T-A,r[1]=T-(A+x)+(x-P),x=(I=M+A)-M,r[2]=M-(I-x)+(A-x),r[3]=I;let C=e(H,n,4,r,h);return h[C-1]}(t,i,a,o,u,f,g)}let o=new Uint32Array(512);class u{static from(t,e=y,i=x){let l=t.length,s=new Float64Array(2*l);for(let n=0;n<l;n++){let l=t[n];s[2*n]=e(l),s[2*n+1]=i(l)}return new u(s)}constructor(t){let e=t.length>>1;if(e>0&&"number"!=typeof t[0])throw Error("Expected coords to contain numbers.");this.coords=t;let i=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*i),this._halfedges=new Int32Array(3*i),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.update()}update(){let{coords:t,_hullPrev:e,_hullNext:i,_hullTri:l,_hullHash:s}=this,n=t.length>>1,h=1/0,r=1/0,o=-1/0,u=-1/0;for(let e=0;e<n;e++){let i=t[2*e],l=t[2*e+1];i<h&&(h=i),l<r&&(r=l),i>o&&(o=i),l>u&&(u=l),this._ids[e]=e}let _,g,y,x=(h+o)/2,m=(r+u)/2,p=1/0;for(let e=0;e<n;e++){let i=f(x,m,t[2*e],t[2*e+1]);i<p&&(_=e,p=i)}let w=t[2*_],b=t[2*_+1];p=1/0;for(let e=0;e<n;e++){if(e===_)continue;let i=f(w,b,t[2*e],t[2*e+1]);i<p&&i>0&&(g=e,p=i)}let v=t[2*g],A=t[2*g+1],M=1/0;for(let e=0;e<n;e++){if(e===_||e===g)continue;let i=c(w,b,v,A,t[2*e],t[2*e+1]);i<M&&(y=e,M=i)}let T=t[2*y],k=t[2*y+1];if(M===1/0){for(let e=0;e<n;e++)this._dists[e]=t[2*e]-t[0]||t[2*e+1]-t[1];d(this._ids,this._dists,0,n-1);let e=new Uint32Array(n),i=0;for(let t=0,l=-1/0;t<n;t++){let s=this._ids[t];this._dists[s]>l&&(e[i++]=s,l=this._dists[s])}return this.hull=e.subarray(0,i),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(0>a(w,b,v,A,T,k)){let t=g,e=v,i=A;g=y,v=T,A=k,y=t,T=e,k=i}let $=function(t,e,i,l,s,n){let h=i-t,r=l-e,a=s-t,o=n-e,u=h*h+r*r,f=a*a+o*o,_=.5/(h*o-r*a);return{x:t+(o*u-r*f)*_,y:e+(h*f-a*u)*_}}(w,b,v,A,T,k);this._cx=$.x,this._cy=$.y;for(let e=0;e<n;e++)this._dists[e]=f(t[2*e],t[2*e+1],$.x,$.y);d(this._ids,this._dists,0,n-1),this._hullStart=_;let P=3;i[_]=e[y]=g,i[g]=e[_]=y,i[y]=e[g]=_,l[_]=0,l[g]=1,l[y]=2,s.fill(-1),s[this._hashKey(w,b)]=_,s[this._hashKey(v,A)]=g,s[this._hashKey(T,k)]=y,this.trianglesLen=0,this._addTriangle(_,g,y,-1,-1,-1);for(let n,h,r=0;r<this._ids.length;r++){let o=this._ids[r],u=t[2*o],f=t[2*o+1];if(r>0&&2220446049250313e-31>=Math.abs(u-n)&&2220446049250313e-31>=Math.abs(f-h)||(n=u,h=f,o===_||o===g||o===y))continue;let c=0;for(let t=0,e=this._hashKey(u,f);t<this._hashSize&&(-1===(c=s[(e+t)%this._hashSize])||c===i[c]);t++);let d,x=c=e[c];for(;d=i[x],a(u,f,t[2*x],t[2*x+1],t[2*d],t[2*d+1])>=0;)if((x=d)===c){x=-1;break}if(-1===x)continue;let m=this._addTriangle(x,o,i[x],-1,-1,l[x]);l[o]=this._legalize(m+2),l[x]=m,P++;let p=i[x];for(;d=i[p],0>a(u,f,t[2*p],t[2*p+1],t[2*d],t[2*d+1]);)m=this._addTriangle(p,o,d,l[o],-1,l[p]),l[o]=this._legalize(m+2),i[p]=p,P--,p=d;if(x===c)for(;0>a(u,f,t[2*(d=e[x])],t[2*d+1],t[2*x],t[2*x+1]);)m=this._addTriangle(d,o,x,-1,l[x],l[d]),this._legalize(m+2),l[d]=m,i[x]=x,P--,x=d;this._hullStart=e[o]=x,i[x]=e[p]=o,i[o]=p,s[this._hashKey(u,f)]=o,s[this._hashKey(t[2*x],t[2*x+1])]=x}this.hull=new Uint32Array(P);for(let t=0,e=this._hullStart;t<P;t++)this.hull[t]=e,e=i[e];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,e){return Math.floor(function(t,e){let i=t/(Math.abs(t)+Math.abs(e));return(e>0?3-i:1+i)/4}(t-this._cx,e-this._cy)*this._hashSize)%this._hashSize}_legalize(t){let{_triangles:e,_halfedges:i,coords:l}=this,s=0,n=0;for(;;){let h=i[t],r=t-t%3;if(n=r+(t+2)%3,-1===h){if(0===s)break;t=o[--s];continue}let a=h-h%3,u=r+(t+1)%3,f=a+(h+2)%3,c=e[n],d=e[t],g=e[u],y=e[f];if(_(l[2*c],l[2*c+1],l[2*d],l[2*d+1],l[2*g],l[2*g+1],l[2*y],l[2*y+1])){e[t]=y,e[h]=c;let l=i[f];if(-1===l){let e=this._hullStart;do{if(this._hullTri[e]===f){this._hullTri[e]=t;break}e=this._hullPrev[e]}while(e!==this._hullStart)}this._link(t,l),this._link(h,i[n]),this._link(n,f);let r=a+(h+1)%3;s<o.length&&(o[s++]=r)}else{if(0===s)break;t=o[--s]}}return n}_link(t,e){this._halfedges[t]=e,-1!==e&&(this._halfedges[e]=t)}_addTriangle(t,e,i,l,s,n){let h=this.trianglesLen;return this._triangles[h]=t,this._triangles[h+1]=e,this._triangles[h+2]=i,this._link(h,l),this._link(h+1,s),this._link(h+2,n),this.trianglesLen+=3,h}}function f(t,e,i,l){let s=t-i,n=e-l;return s*s+n*n}function _(t,e,i,l,s,n,h,r){let a=t-h,o=e-r,u=i-h,f=l-r,_=s-h,c=n-r,d=u*u+f*f,g=_*_+c*c;return a*(f*g-d*c)-o*(u*g-d*_)+(a*a+o*o)*(u*c-f*_)<0}function c(t,e,i,l,s,n){let h=i-t,r=l-e,a=s-t,o=n-e,u=h*h+r*r,f=a*a+o*o,_=.5/(h*o-r*a),c=(o*u-r*f)*_,d=(h*f-a*u)*_;return c*c+d*d}function d(t,e,i,l){if(l-i<=20)for(let s=i+1;s<=l;s++){let l=t[s],n=e[l],h=s-1;for(;h>=i&&e[t[h]]>n;)t[h+1]=t[h--];t[h+1]=l}else{let s=i+1,n=l;g(t,i+l>>1,s),e[t[i]]>e[t[l]]&&g(t,i,l),e[t[s]]>e[t[l]]&&g(t,s,l),e[t[i]]>e[t[s]]&&g(t,i,s);let h=t[s],r=e[h];for(;;){do{s++}while(e[t[s]]<r);do{n--}while(e[t[n]]>r);if(n<s)break;g(t,s,n)}t[i+1]=t[n],t[n]=h,l-s+1>=n-i?(d(t,e,s,l),d(t,e,i,n-1)):(d(t,e,i,n-1),d(t,e,s,l))}}function g(t,e,i){let l=t[e];t[e]=t[i],t[i]=l}function y(t){return t[0]}function x(t){return t[1]}class m{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,e){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,e){this._+=`L${this._x1=+t},${this._y1=+e}`}arc(t,e,i){let l=(t=+t)+(i=+i),s=e=+e;if(i<0)throw Error("negative radius");null===this._x1?this._+=`M${l},${s}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-s)>1e-6)&&(this._+="L"+l+","+s),i&&(this._+=`A${i},${i},0,1,1,${t-i},${e}A${i},${i},0,1,1,${this._x1=l},${this._y1=s}`)}rect(t,e,i,l){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${+i}v${+l}h${-i}Z`}value(){return this._||null}}class p{constructor(){this._=[]}moveTo(t,e){this._.push([t,e])}closePath(){this._.push(this._[0].slice())}lineTo(t,e){this._.push([t,e])}value(){return this._.length?this._:null}}class w{constructor(t,[e,i,l,s]=[0,0,960,500]){if(!((l=+l)>=(e=+e)&&(s=+s)>=(i=+i)))throw Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(2*t.points.length),this.vectors=new Float64Array(2*t.points.length),this.xmax=l,this.xmin=e,this.ymax=s,this.ymin=i,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){let{delaunay:{points:t,hull:e,triangles:i},vectors:l}=this,s=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2);for(let e,l,n=0,h=0,r=i.length;n<r;n+=3,h+=2){let r=2*i[n],a=2*i[n+1],o=2*i[n+2],u=t[r],f=t[r+1],_=t[a],c=t[a+1],d=t[o],g=t[o+1],y=_-u,x=c-f,m=d-u,p=g-f,w=2*(y*p-x*m);if(1e-9>Math.abs(w)){let s=1e9,n=2*i[0];s*=Math.sign((t[n]-u)*p-(t[n+1]-f)*m),e=(u+d)/2-s*p,l=(f+g)/2+s*m}else{let t=1/w,i=y*y+x*x,s=m*m+p*p;e=u+(p*i-x*s)*t,l=f+(y*s-m*i)*t}s[h]=e,s[h+1]=l}let n,h,r,a=e[e.length-1],o=4*a,u=t[2*a],f=t[2*a+1];l.fill(0);for(let i=0;i<e.length;++i)a=e[i],n=o,h=u,r=f,o=4*a,u=t[2*a],f=t[2*a+1],l[n+2]=l[o]=r-f,l[n+3]=l[o+1]=u-h}renderCell(t,e){let i=null==e?e=new m:void 0,l=this._clip(t);if(null===l||!l.length)return;e.moveTo(l[0],l[1]);let s=l.length;for(;l[0]===l[s-2]&&l[1]===l[s-1]&&s>1;)s-=2;for(let t=2;t<s;t+=2)l[t]===l[t-2]&&l[t+1]===l[t-1]||e.lineTo(l[t],l[t+1]);return e.closePath(),i&&i.value()}*cellPolygons(){let{delaunay:{points:t}}=this;for(let e=0,i=t.length/2;e<i;++e){let t=this.cellPolygon(e);t&&(t.index=e,yield t)}}cellPolygon(t){let e=new p;return this.renderCell(t,e),e.value()}contains(t,e,i){return(e=+e)==e&&(i=+i)==i&&this.delaunay._step(t,e,i)===t}*neighbors(t){let e=this._clip(t);if(e)for(let i of this.delaunay.neighbors(t)){let t=this._clip(i);if(t)t:for(let l=0,s=e.length;l<s;l+=2)for(let n=0,h=t.length;n<h;n+=2)if(e[l]==t[n]&&e[l+1]==t[n+1]&&e[(l+2)%s]==t[(n+h-2)%h]&&e[(l+3)%s]==t[(n+h-1)%h]){yield i;break t}}}_cell(t){let{circumcenters:e,delaunay:{inedges:i,halfedges:l,triangles:s}}=this,n=i[t];if(-1===n)return null;let h=[],r=n;do{let i=Math.floor(r/3);if(h.push(e[2*i],e[2*i+1]),s[r=r%3==2?r-2:r+1]!==t)break;r=l[r]}while(r!==n&&-1!==r);return h}_clip(t){if(0===t&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];let e=this._cell(t);if(null===e)return null;let{vectors:i}=this,l=4*t;return i[l]||i[l+1]?this._clipInfinite(t,e,i[l],i[l+1],i[l+2],i[l+3]):this._clipFinite(t,e)}_clipFinite(t,e){let i,l,s,n,h=e.length,r=null,a=e[h-2],o=e[h-1],u=this._regioncode(a,o),f=0;for(let _=0;_<h;_+=2)if(i=a,l=o,a=e[_],o=e[_+1],s=u,u=this._regioncode(a,o),0===s&&0===u)n=f,f=0,r?r.push(a,o):r=[a,o];else{let e,h,_,c,d;if(0===s){if(null===(e=this._clipSegment(i,l,a,o,s,u)))continue;[h,_,c,d]=e}else{if(null===(e=this._clipSegment(a,o,i,l,u,s)))continue;[c,d,h,_]=e,n=f,f=this._edgecode(h,_),n&&f&&this._edge(t,n,f,r,r.length),r?r.push(h,_):r=[h,_]}n=f,f=this._edgecode(c,d),n&&f&&this._edge(t,n,f,r,r.length),r?r.push(c,d):r=[c,d]}if(r)n=f,f=this._edgecode(r[0],r[1]),n&&f&&this._edge(t,n,f,r,r.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return r}_clipSegment(t,e,i,l,s,n){for(;;){if(0===s&&0===n)return[t,e,i,l];if(s&n)return null;let h,r,a=s||n;8&a?(h=t+(i-t)*(this.ymax-e)/(l-e),r=this.ymax):4&a?(h=t+(i-t)*(this.ymin-e)/(l-e),r=this.ymin):2&a?(r=e+(l-e)*(this.xmax-t)/(i-t),h=this.xmax):(r=e+(l-e)*(this.xmin-t)/(i-t),h=this.xmin),s?(t=h,e=r,s=this._regioncode(t,e)):(i=h,l=r,n=this._regioncode(i,l))}}_clipInfinite(t,e,i,l,s,n){let h,r=Array.from(e);if((h=this._project(r[0],r[1],i,l))&&r.unshift(h[0],h[1]),(h=this._project(r[r.length-2],r[r.length-1],s,n))&&r.push(h[0],h[1]),r=this._clipFinite(t,r))for(let e,i=0,l=r.length,s=this._edgecode(r[l-2],r[l-1]);i<l;i+=2)e=s,s=this._edgecode(r[i],r[i+1]),e&&s&&(i=this._edge(t,e,s,r,i),l=r.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(r=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return r}_edge(t,e,i,l,s){for(;e!==i;){let i,n;switch(e){case 5:e=4;continue;case 4:e=6,i=this.xmax,n=this.ymin;break;case 6:e=2;continue;case 2:e=10,i=this.xmax,n=this.ymax;break;case 10:e=8;continue;case 8:e=9,i=this.xmin,n=this.ymax;break;case 9:e=1;continue;case 1:e=5,i=this.xmin,n=this.ymin}(l[s]!==i||l[s+1]!==n)&&this.contains(t,i,n)&&(l.splice(s,0,i,n),s+=2)}if(l.length>4)for(let t=0;t<l.length;t+=2){let e=(t+2)%l.length,i=(t+4)%l.length;(l[t]===l[e]&&l[e]===l[i]||l[t+1]===l[e+1]&&l[e+1]===l[i+1])&&(l.splice(e,2),t-=2)}return s}_project(t,e,i,l){let s,n,h,r=1/0;if(l<0){if(e<=this.ymin)return null;(s=(this.ymin-e)/l)<r&&(h=this.ymin,n=t+(r=s)*i)}else if(l>0){if(e>=this.ymax)return null;(s=(this.ymax-e)/l)<r&&(h=this.ymax,n=t+(r=s)*i)}if(i>0){if(t>=this.xmax)return null;(s=(this.xmax-t)/i)<r&&(n=this.xmax,h=e+(r=s)*l)}else if(i<0){if(t<=this.xmin)return null;(s=(this.xmin-t)/i)<r&&(n=this.xmin,h=e+(r=s)*l)}return[n,h]}_edgecode(t,e){return(t===this.xmin?1:t===this.xmax?2:0)|(e===this.ymin?4:e===this.ymax?8:0)}_regioncode(t,e){return(t<this.xmin?1:t>this.xmax?2:0)|(e<this.ymin?4:e>this.ymax?8:0)}}let b=Math.pow;function v(t){return t[0]}function A(t){return t[1]}function M(t,e,i){return[t+Math.sin(t+e)*i,e+Math.cos(t-e)*i]}class T{static from(t,e=v,i=A,l){return new T("length"in t?function(t,e,i,l){let s=t.length,n=new Float64Array(2*s);for(let h=0;h<s;++h){let s=t[h];n[2*h]=e.call(l,s,h,t),n[2*h+1]=i.call(l,s,h,t)}return n}(t,e,i,l):Float64Array.from(function*(t,e,i,l){let s=0;for(let n of t)yield e.call(l,n,s,t),yield i.call(l,n,s,t),++s}(t,e,i,l)))}constructor(t){this._delaunator=new u(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){let t=this._delaunator,e=this.points;if(t.hull&&t.hull.length>2&&function(t){let{triangles:e,coords:i}=t;for(let t=0;t<e.length;t+=3){let l=2*e[t],s=2*e[t+1],n=2*e[t+2];if((i[n]-i[l])*(i[s+1]-i[l+1])-(i[s]-i[l])*(i[n+1]-i[l+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:e.length/2},((t,e)=>e)).sort(((t,i)=>e[2*t]-e[2*i]||e[2*t+1]-e[2*i+1]));let t=this.collinear[0],i=this.collinear[this.collinear.length-1],l=[e[2*t],e[2*t+1],e[2*i],e[2*i+1]],s=1e-8*Math.hypot(l[3]-l[1],l[2]-l[0]);for(let t=0,i=e.length/2;t<i;++t){let i=M(e[2*t],e[2*t+1],s);e[2*t]=i[0],e[2*t+1]=i[1]}this._delaunator=new u(e)}else delete this.collinear;let i=this.halfedges=this._delaunator.halfedges,l=this.hull=this._delaunator.hull,s=this.triangles=this._delaunator.triangles,n=this.inedges.fill(-1),h=this._hullIndex.fill(-1);for(let t=0,e=i.length;t<e;++t){let e=s[t%3==2?t-2:t+1];-1!==i[t]&&-1!==n[e]||(n[e]=t)}for(let t=0,e=l.length;t<e;++t)h[l[t]]=t;l.length<=2&&l.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=l[0],n[l[0]]=1,2===l.length&&(n[l[1]]=0,this.triangles[1]=l[1],this.triangles[2]=l[1]))}voronoi(t){return new w(this,t)}*neighbors(t){let{inedges:e,hull:i,_hullIndex:l,halfedges:s,triangles:n,collinear:h}=this;if(h){let e=h.indexOf(t);return e>0&&(yield h[e-1]),void(e<h.length-1&&(yield h[e+1]))}let r=e[t];if(-1===r)return;let a=r,o=-1;do{if(yield o=n[a],n[a=a%3==2?a-2:a+1]!==t)return;if(-1===(a=s[a])){let e=i[(l[t]+1)%i.length];return void(e!==o&&(yield e))}}while(a!==r)}find(t,e,i=0){if((t=+t)!=t||(e=+e)!=e)return-1;let l,s=i;for(;(l=this._step(i,t,e))>=0&&l!==i&&l!==s;)i=l;return l}_step(t,e,i){let{inedges:l,hull:s,_hullIndex:n,halfedges:h,triangles:r,points:a}=this;if(-1===l[t]||!a.length)return(t+1)%(a.length>>1);let o=t,u=b(e-a[2*t],2)+b(i-a[2*t+1],2),f=l[t],_=f;do{let l=r[_],f=b(e-a[2*l],2)+b(i-a[2*l+1],2);if(f<u&&(u=f,o=l),r[_=_%3==2?_-2:_+1]!==t)break;if(-1===(_=h[_])){if((_=s[(n[t]+1)%s.length])!==l&&b(e-a[2*_],2)+b(i-a[2*_+1],2)<u)return _;break}}while(_!==f);return o}hullPolygon(){let t=new p;return this.renderHull(t),t.value()}renderTriangle(t,e){let i=null==e?e=new m:void 0,{points:l,triangles:s}=this,n=2*s[t*=3],h=2*s[t+1],r=2*s[t+2];return e.moveTo(l[n],l[n+1]),e.lineTo(l[h],l[h+1]),e.lineTo(l[r],l[r+1]),e.closePath(),i&&i.value()}*trianglePolygons(){let{triangles:t}=this;for(let e=0,i=t.length/3;e<i;++e)yield this.trianglePolygon(e)}trianglePolygon(t){let e=new p;return this.renderTriangle(t,e),e.value()}}t.Delaunay=T,t.Voronoi=w,Object.defineProperty(t,"__esModule",{value:!0})}));
//ASEMIC
let asm64,asmImg,asmImgW,asmImgH,bBLpr,bTLpr,bTRpr,bBRpr,bBLpo,bTLpo,bTRpo,bBRpo,nElts,glyImgs=[],glyImgsInv=[],glyCL=[],glyCR=[],nGlyCs=20,glyCW=96;
function designOffscreenGraphicsForReverseText(){if(!bMadeRevTxt){let e=max(SHW,SHH)/512,t=asmImg.height,o=glyCW,r=0,R=0,s=e*myRAB(.2,.28),l=myRAB(.75,.8),m=SHW*myRAB(.69,1),B=Rd(.75*myRAB(-1,1)),a=myRAB(.9,1),p=myRAB(-50,80),h=myRAB(-30,60),g=myRAB(.9,1),x=(SHH-h)/(t*l)/(s*a)*g,S=m/s,T=getWop([[[.15,.1,.15,.6],40],[[.15,.1,.6,.15],20],[[.65,.1,.15,.1],20],[[.1,.1,.4,.4],10],[[.5,.1,.3,.1],10]]);bBLpr=T[0],bTLpr=T[1],bTRpr=T[2],bBRpr=T[3],bBLpo=myRAB(.1,2.8),bTLpo=myRAB(.1,2.8),bTRpo=myRAB(.1,2.8),bBRpo=myRAB(.1,2.8),nElts=getWop([[2,3],[3,82],[4,10],[5,5]]),ogT.clear(),ogT.push(),ogT.translate(SHW,0),ogT.scale(-1,1),ogT.translate(0-SHW/2,0-SHH/2),ogT.rotate(B),ogT.translate(SHW/2,SHH/2),ogT.translate(p,h),ogT.scale(s,s*a);for(let e=0;e<x;e++){let e=0;for(;r<S;){let s=genCompGly();if(r-=s.L,r+s.R>S)break;shoCompGly(s,r,R,o,t),e++;let l=.04*o;(e>=10||Math.pow(myR01(),1.5)<.2)&&e>myRAB(4.5,7.5)&&(l=.33*o,e=0),r+=s.R+l}R+=t*l,r=0}ogT.pop(),bMadeRevTxt=!0}ogB.shader(shBlur),shBlur.setUniform("t0",ogT),shBlur.setUniform("uTexelSize",[1/SHW,1/SHH]),shBlur.setUniform("uBlur",StSh.textBlur*(SHW/512)),shBlur.setUniform("uAlpha",StSh.textAlpha),shBlur.setUniform("uPhase",StSh.textPhase),ogB.rect(0,0,SHW,SHH)}
function shoCompGly(e,o,n,t,p){const g=e.code;for(let e=0;e<nGlyCs;e++)1<<e&g&&ogT.image(glyImgs[e],o,n,t,p)}
function genCompGly(){const o=[19,17,8,10,15],t=[16,13,7],n=[14,18,9],e=[11,12];let l=0;l|=1<<(~~(myRA(7)));let p=0,h=0,f=0,i=0,R=0;do{p=myR01()<bBLpr?1:0,h=myR01()<bTLpr?1:0,f=myR01()<bTRpr?1:0,i=myR01()<bBRpr?1:0,R=p+h+f+i+(myR01()<.8?1:0)}while(R<nElts||R>nElts);if(p>0){l|=1<<o[~~(o.length*pow(myR01(),bBLpo))]}if(h>0){l|=1<<t[~~(t.length*pow(myR01(),bTLpo))]}if(f>0){l|=1<<n[~~(n.length*Math.pow(myR01(),bTRpo))]}if(i>0){l|=1<<e[~~(e.length*Math.pow(myR01(),bBRpo))]}let m=glyCW,y=0;for(let n=0;n<nGlyCs;n++)if(1<<n&l){let e=glyCL[n],l=glyCR[n];if(e<m){if(o.includes(n))continue;m=e}if(l>y){if(t.includes(n))continue;y=l}}return{code:l,L:m,R:y}}
function makeAsmSys(){loadAsm(),convertAsm(),makeSubglys()}
function makeAsmAlph(){glyphSet=[];let e=[],t=genCompGly();for(let o=0;o<22;o++){let o=0;for(;e.includes(t.code)&&o<1e3;)t=genCompGly(),o++;glyphSet.push(t),e.push(t.code)}}
function makeSubglys(){let e=0;for(let g=0;g<nGlyCs;g++){glyImgs[g]=createImage(glyCW,asmImgH),glyImgs[g].loadPixels(),glyImgsInv[g]=createImage(glyCW,asmImgH),glyImgsInv[g].loadPixels();for(let l=0;l<asmImgH;l++)for(let s=0;s<glyCW;s++){let p=l*(4*asmImgW)+4*(e+s),m=asmImg.pixels[p+0],i=asmImg.pixels[p+1],I=asmImg.pixels[p+2],a=asmImg.pixels[p+3];const h=l*(4*glyCW)+4*s;glyImgs[g].pixels[h+0]=m,glyImgs[g].pixels[h+1]=i,glyImgs[g].pixels[h+2]=I,glyImgs[g].pixels[h+3]=a,glyImgsInv[g].pixels[h+0]=255-m,glyImgsInv[g].pixels[h+1]=255-i,glyImgsInv[g].pixels[h+2]=255-I,glyImgsInv[g].pixels[h+3]=a}glyImgs[g].updatePixels(),glyImgsInv[g].updatePixels(),e+=glyCW}}