memoscan
← all memos

Memo 0x351882d4…1d3467 on Ethereum

function e(t){let[e,n,r,o]=[[0,8],[8,8],[16,8],[24,8]].map((e=>parseInt(t.substr(e[0],e[1]),16)));return function(){e>>>=0,n>>>=0,r>>>=0,o>>>=0;let t=e+n|0;return e=n^n>>>9,n=r+(r<<3)|0,r=r<<21|r>>>11,o=o+1|0,t=t+o|0,r=r+t|0,(t>>>0)/4294967296}}function n(){let t=Fe(["random","useA"]);return $e(["random","useA"],!t),t?Fe(["random","prngA"])():Fe(["random","prngB"])()}function r(t,e){if(e>t.length)return t;let r,o,a=t.slice(0),u=t.length,i=u-e;for(;u-- >i;)o=Math.floor((u+1)*n()),r=a[o],a[o]=a[u],a[u]=r;return a.slice(i)}function o(t){return t[Math.floor(n()*t.length)]}function a(t){let e,r,o;for(o=t.length-1;o>0;o--)e=Math.floor(n()*(o+1)),r=t[o],t[o]=t[e],t[e]=r;return t}function u(t=.5){return n()<t?0:1}function i(t=.5){return n()<t?-1:1}function l(t){return c(n(),{max:1,min:0},{max:t[1],min:t[0]})}function s(t){return Math.floor(l(t))}function h(t,e){let n=o(t);for(;n===e&&t.length>1;)n=o(t);return n}function c(t,e,n){return t-e.min==0?n.min:(t-e.min)/(e.max-e.min)*(n.max-n.min)+n.min}function _(t,e,n){let r=c(t,e,n);return r>n.max&&(r=n.max),r<n.min&&(r=n.min),r}function f(t){De({prngA:new e(t.hash.substr(2,32)),prngB:new e(t.hash.substr(34,32)),useA:!1},["random"])}function g(t){let e=[],n=0;for(let r=0;r<t.length;r++)n+=t[r],e.push(n);return e}function p(t,e){let n,r=0,o=t.length;for(;r<o;)n=Math.floor((r+o)/2),t[n]<e?r=n+1:o=n;return r}function d(t,e){let r=g(e),a=r[r.length-1];return a<=0?o(t):t[p(r,n()*a)]}function m(t){return l(Fe(t))}function b(t){return o(Fe(t))}function x(t){return t*Math.PI/180}function y(t,e=0){return[...Array(t).keys()].map((t=>t+e))}function w(){return Array.prototype.slice.call(arguments).reduce((function(t,e){let n=[];return t.forEach((function(t){e.forEach((function(e){n.push(t.concat(e))}))})),n}),[[]])}function v(t,e){return new Array(t).fill(e)}function M(t,e,n){let r,o,a,u;return[r,o]=t,[a,u]=e,[r+Math.cos(n)*(a-r)-Math.sin(n)*(u-o),o+Math.sin(n)*(a-r)+Math.cos(n)*(u-o)]}function E(t,e,n){return e.map((e=>M(t,e,n)))}function k(t,e,n){return t.map(((r,o)=>r+n*[e[0]-t[0],e[1]-t[1]][o]))}function A(t,e,n){return k(t,e,n/$(t,e))}function I(t){let e=0;return t.length<2||t.forEach(((n,r)=>e+=r>0?$(t[r],t[r-1]):0)),e}function P(t){let[e,n,r,o]=t,a=0;return[[e,n],[r,n],[o,r]].forEach((t=>a+=$(...t))),(a+$(o,e))/2}function R(t,e,n){return[t[0]+e,t[1]+n]}function F(t,e,n){return t.map((t=>R(t,e,n)))}function S(){return[Infinity,-Infinity,Infinity,-Infinity]}function $(t,e){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))}function C(t){let[e,n,r,o]=S();for(let a=0;a<t.length;a++){let[u,i]=t[a];e=e<u?e:u,r=r<i?r:i,n=n>u?n:u,o=o>i?o:i}return[e,n,r,o]}function B(t){return[t[0]+(t[1]-t[0])/2,t[2]+(t[3]-t[2])/2]}function L(t){let[e,n,r,o]=C(t);return[e,r,n-e,o-r]}function O(t){let[e,n,r,o]=t;return[e,r,n-e,o-r]}function T(t){return t[1]-t[0]}function z(t,e){let[n,r,o,a]=t,[u,i,l,s]=e;return n<=u&&r>=i&&o<=l&&a>=s}function N(t){let[e,n,r,o]=C(t);return n<0||e>=Fe("w")||o<0||r>Fe("h")}function D(t){let e=t.length,n=0;return t.forEach(((r,o)=>n+=t[o][0]*t[(o+1)%e][1]-t[(o+1)%e][0]*t[o][1])),Math.abs(n)/2}function j(t,e){let n,r,o,a,u;if(n=$(t[0],t[1]),n<e)return[t];r=Math.ceil(n/e),o=e/n,a=t[0],u=[a];for(let i=0;i<r;i++){let e=k(...t,Math.min(1,o*(i+1)));u.push(e),a=e}return u}function U(t,e){if(t.length<1)return[];let n=[];for(let r=1;r<t.length;r++){let o=t[r-1],a=t[r],u=[o,a];n=n.concat($(o,a)>e?j(u,e):u.slice(1))}return n.push([...n[n.length-1]]),n}function H(t){let e=Math.floor(t.length*m(["D","p","sp"]));return t.slice(e,Math.min(Math.floor(t.length*m(["D","p","kl"]))+e,t.length-1))}function V(t,e,n){let r=[];return t.forEach((t=>r.push(t.map((t=>t*e)).map(((t,r)=>t+n.map((t=>(1-e)*t))[r]))))),r}function Y(t,e,n,r){let o=[t[0]*n,t[1]*r],a=(1-n)*e[0],u=(1-r)*e[1];return[o[0]+a,o[1]+u]}function G(t,e,n,r){return t.map((t=>Y(t,e,n,r)))}function q(t,e,n,r,o){let[a,u]=Y(t,e,n,r),[i,l]=t,s=Math.min(a,i),h=Math.max(a,i),c=Math.min(u,l),_=Math.max(u,l);for(let f=s;f<=h;f++)for(let t=c;t<=_;t++)o.push([f,t])}function W(t,e,n,r,o){t.forEach((t=>q(t,e,n,r,o)))}function J(t,e){let n,r;return n=C(t),r=B(n),V(t,e,r)}function X(t,e,n){let r,o,a,u,i,[l,s,h,c]=t,_=s-l,f=c-h,g=Math.sqrt(_**2+f**2),p=[l+_/2,h+f/2],d=[];return a=p[1]-g/2,u=p[1]+g/2,r=p[0]-e,o=p[0]+e,i=x(n),d.push(E(p,[[p[0],a],[p[0],u]],i)),[d,r,o,a,u,p,g,i]}function K(t,e,n,r){let o,a,[u,i,s,h,c,_,f,g]=X(t,e,n);for(;i>_[0]-f/2;)o=[[i,h],[i,c]],a=[[s,h],[s,c]],r&&(o=o.map((t=>t.map((t=>t+l(r))))),a=a.map((t=>t.map((t=>t+l(r)))))),u.push(E(_,o,g)),u.push(E(_,a,g)),i-=e,s+=e;return u}function Q(t,e,n,r){let o,a,u=l(e),[i,s,h,c,_,f,g,p]=X(t,u,n);for(;s>f[0]-g/2;)o=[[s,c],[s,_]],a=[[h,c],[h,_]],r&&(o=o.map((t=>t.map((t=>t+l(r))))),a=a.map((t=>t.map((t=>t+l(r)))))),i.push(E(f,o,p)),i.push(E(f,a,p)),s-=l(e),h+=l(e);return i}function Z(t,e,r){let o=0,a=n()<.5?1:-1,u=t[0],i=$(...t),s=[];for(;o<1;){o+=l(a>0?r:e)/i;let n=k(t[0],t[1],o),h=[u,n];a<0&&s.push(h),a*=-1,u=n}return s}function tt(t,e){return t.forEach(((n,r)=>t[r]+=l(e)))}function et(t,e){return t.forEach((t=>t.forEach(((n,r)=>t[r]+=l(e))))),t}function nt(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=[...t];return o[0]+=2*n,o[1]+=2*r,o}function rt(t){let e=Fe("w"),n=Fe("h");return t.every((t=>(t[0]<0||t[0]>e)&&(t[1]<0||t[1]>n)))}function ot(t,e,n){const r=n[0]-e[0],o=n[1]-e[1];if(0===r&&0===o)return Math.hypot(t[0]-e[0],t[1]-e[1]);const a=((t[0]-e[0])*r+(t[1]-e[1])*o)/(r*r+o*o);if(a<0)return Math.hypot(t[0]-e[0],t[1]-e[1]);if(a>1)return Math.hypot(t[0]-n[0],t[1]-n[1]);const u=e[0]+a*r,i=e[1]+a*o;return Math.hypot(t[0]-u,t[1]-i)}function at(t,e){const n=t.length-1,r=t[n];let o=-1,a=0;for(let u=1;u<n;u++){const e=ot(t[u],t[0],r);e>a&&(o=u,a=e)}if(a>e){const n=at(t.slice(0,o+1),e),r=at(t.slice(o),e);return n.slice(0,n.length-1).concat(r)}return[t[0],r]}function ut(t,e,n,r,o,a){return w(...[[o,n/(o+1),t],[a,r/(a+1),e]].map((t=>y(t[0]).map((e=>(e+1)*t[1]+t[2])))))}function it(t,e,n,r,o){const a=E(t[1],t,-x(n));return[[...t[0]],k(...E(t[0],t,x(e)),r),k(a[1],a[0],o),[...t[1]]]}function lt(t,e,n,r,o){return ct(it(t,e,n,r,o),Fe(["graphics","curve_approx_length"]))}function st(t,e,n,r,o){return lt(t,m(e),m(n),m(r),m(o))}function ht(t,e,n,r,o){let a=[[t,e],[t+n,e],[t+n,e+r],[t,e+r]];return o&&a.push([t,e]),a}function ct(t,e){let n=P(t);if(n>e){let r=e/n,o=r,[a,u]=t[0],[i,l]=t[1],[s,h]=t[2],[c,_]=t[3];const f=[t[0]];for(;o<1;)f.push([(1-o)**3*a+3*o*(1-o)**2*i+3*o**2*(1-o)*s+o**3*c,(1-o)**3*u+3*o*(1-o)**2*l+3*o**2*(1-o)*h+o**3*_]),o+=r;return f.push(t[3]),f}return[t[0],t[3]]}function _t(t,e){let[n,r]=t,o=$(n,r);if(o<=e)return t;let a=e/o,u=[n],i=o/e,[l,s]=n,[h,c]=r;for(let _=1;_<i;_++)u.push(k(l,s,h,c,a*_));return u}function ft(t,e){let n=[];for(let r=0;r<t.length-2;r++)j([t[r],t[r+1]],e).forEach((t=>n.push(t)));return n}function gt(t,e,n,r){const o=y(r).map((o=>[t+n*Math.cos(2*Math.PI*o/r),e+n*Math.sin(2*Math.PI*o/r)]));return o.push([...o[0]]),o}function pt(t,e){return[e[0]-t[0],e[1]-t[1]]}function dt(t,e){const n=Math.hypot(...pt(t[0],t[1])),r=Math.hypot(...pt(t[0],t[3])),o=Math.hypot(...pt(e[0],e[1]))/n,a=Math.hypot(...pt(e[0],e[3]))/r,u=[(t[0][0]+t[2][0])/2,(t[0][1]+t[2][1])/2],i=[(e[0][0]+e[2][0])/2,(e[0][1]+e[2][1])/2],l=[i[0]-u[0],i[1]-u[1]],s=e[0][1]-e[1][1],h=e[0][0]-e[1][0];return[o,a,Math.atan2(s,h),l]}function mt(t,e){e||(e=Fe(["graphics","u"]));let n,r,o,a,u,i,l,s,h,c=I(t),_=Math.ceil(1.5*c/e),f=[];for(let g=0;g<t.length-1;g++){n=0===g?t[g]:t[g-1],r=t[g],o=t[g+1],a=g===t.length-2?t[g+1]:t[g+2];for(let t=0;t<_;t++){u=t/_,i=u*u,l=i*u;let[e,c]=n,[g,p]=r,[d,m]=o,[b,x]=a;s=.5*(2*g+(-e+d)*u+(2*e-5*g+4*d-b)*i+(3*g-e-3*d+b)*l),h=.5*(2*p+(-c+m)*u+(2*c-5*p+4*m-x)*i+(3*p-c-3*m+x)*l),f.push([s,h])}}return f.push(t[t.length-1]),f}function bt(t,e,n){let r=n-e,o=0,a=0;for(let u=e;u<n;u++)o+=t[u][0],a+=t[u][1];return[o/r,a/r]}function xt(t,e,n){if(t.length<3)return t;n||(n=Math.min(2,t.length-1));for(let r=0;r<e;r++)for(let e=0;e<t.length-n;e++){let[r,o]=bt(t,e,e+n);t[e]=[(t[e][0]+r)/2,(t[e][1]+o)/2]}return t}function yt(t){if(t.length<2)return te(t);let e=[];for(let n=0;n<t.length-1;n++){let r=t[n],o=t[n+1];e.push(r),e.push(k(r,o,.5))}return e}function wt(t){if(t.length<3)return te(t);let e=[],n=t[0];for(let r=0;r<t.length-2;r++){let o=t[r+1],a=t[r+2],u=$(n,o),i=$(a,n);Math.abs(i/u)>.5&&(e.push(o),n=e[e.length-1])}return e}function vt(t,e){let n=B(C(t));for(let r=0;r<e;r++)for(let e=0;e<t.length-1;e++){let r=[t[e],t[e+1]];r.sort((function(t,e){let r=$(t,n);return-$(e,n)+r})),r[1][0]=r[0][0]+(r[1][0]-r[0][0])/2,r[1][1]=r[0][1]+(r[1][1]-r[0][1])/2}return t}function Mt(t,e){let n=[...t];for(let r=0;r<e;r++){const t=[],e=[],r=[];for(let o=0;o<n.length;o++){const a=n[o],u=n[(o+1)%n.length],i=[.5*(a[0]+u[0]),.5*(a[1]+u[1])];t.push(i),e.push(i);const l=bt(n,0,n.length),s=[(a[0]+l[0]+e[o][0]+e[(o-1+e.length)%e.length][0])/4,(a[1]+l[1]+e[o][1]+e[(o-1+e.length)%e.length][1])/4];r.push(s)}n=[];for(let o=0;o<t.length;o++)n.push(t[o],r[o])}return n}function Et(t,e,n){const r=[],o=t.length;for(let a=0;a<o;a++){const u=t[(a-1+o)%o],i=t[a],l=t[(a+1)%o],s=t[(a+2)%o],h=0,c=Math.pow(Math.hypot(i[0]-u[0],i[1]-u[1]),n)+h,_=Math.pow(Math.hypot(l[0]-i[0],l[1]-i[1]),n)+c,f=Math.pow(Math.hypot(s[0]-l[0],s[1]-l[1]),n)+_;for(let t=0;t<e;t++){const n=c+t/e*(_-c),o=[(c-n)/(c-h)*u[0]+(n-h)/(c-h)*i[0],(c-n)/(c-h)*u[1]+(n-h)/(c-h)*i[1]],a=[(_-n)/(_-c)*i[0]+(n-c)/(_-c)*l[0],(_-n)/(_-c)*i[1]+(n-c)/(_-c)*l[1]],g=[(f-n)/(f-_)*l[0]+(n-_)/(f-_)*s[0],(f-n)/(f-_)*l[1]+(n-_)/(f-_)*s[1]],p=[(_-n)/(_-h)*o[0]+(n-h)/(_-h)*a[0],(_-n)/(_-h)*o[1]+(n-h)/(_-h)*a[1]],d=[(f-n)/(f-c)*a[0]+(n-c)/(f-c)*g[0],(f-n)/(f-c)*a[1]+(n-c)/(f-c)*g[1]],m=[(_-n)/(_-c)*p[0]+(n-c)/(_-c)*d[0],(_-n)/(_-c)*p[1]+(n-c)/(_-c)*d[1]];r.push(m)}}return r}function kt(t,e){let n=B(C(t)),r=Array(e).fill([]),o=1/(e+1);for(let a=0;a<e;a++){let e=1-(a+1)*o;r[a]=t.map((t=>k(t,n,e)))}return r}function At(t,e){let n=t.map(((t,n)=>[n,$(t,e)]));return n.sort(((t,e)=>e[1]-t[1])),t[n.pop()[0]]}function It(t,e,n){let r=At(t,n),o=Array(e).fill([]),a=1/(e+1);for(let u=0;u<e;u++){let e=1-(u+1)*a;o[u]=t.map((t=>k(t,r,e)))}return o}function Pt(t){return t.forEach((t=>t.forEach(((e,n)=>t[n]=Math.floor(t[n]))))),t}function Rt(t){return t.forEach((t=>t.forEach(((e,n)=>t[n]=Math.round(t[n]))))),t}function Ft(t){return t.map(((e,n)=>t[n]=Math.floor(t[n]/Fe(["clipper","scale_factor"]))))}function St(t){return t.forEach((t=>t.forEach(((e,n)=>t[n]=Math.floor(t[n]/Fe(["clipper","scale_factor"])))))),t}function $t(t){return t.forEach((t=>t.forEach(((e,n)=>t[n]=Math.floor(t[n]*=Fe(["clipper","scale_factor"])))))),t}function Ct(t,e){let[n,r]=Fe(["clipper","shape"]),o=Number.isInteger(t)?t:Math.floor(t),a=Number.isInteger(e)?t:Math.floor(e);return o>=0&&o<n&&a>=0&&a<r}function Bt(t,e,n){return n[t]!==undefined&&n[t][e]!==undefined}function Lt(t,e,n){let r,o,a,u,i,l;return[r,o]=t,[a,u]=e,[i,l]=n,r*(u-l)+a*(l-o)+i*(o-u)==0}function Ot(t,e){return $(t,e)<Fe(["clipper","dist_eps"])[0]}function Tt(t,e){return $(t,e)>Fe(["clipper","dist_eps"])[1]}function zt(){let[t,e]=Fe(["clipper","shape"]);const n=new Array(t);let r=Fe(["clipper","bg_c"]);for(let o=0;o<t;o++){n[o]=new Array(e);for(let t=0;t<e;t++)n[o][t]=r}return n}function Nt(t,e){const n=new Array(t);let r=Fe(["clipper","bg_c"]);for(let o=0;o<t;o++){n[o]=new Array(e);for(let t=0;t<e;t++)n[o][t]=r}return n}function Dt(t){if(t.length<=3)return t;let e,n,r,o;o=[],o.push(t[0]);for(let a=1;a<t.length;a++)e=o[o.length-1],n=t[a],Ot(e,n)||(o.length<2||(r=o[o.length-2],Lt(r,e,n)&&o.pop()),o.push(n));return o.length>1&&Tt(o[0],o[1])&&o.shift(),o}function jt(t){let e,n,r,o,a,u,i,l,s,h,c,_,f,g,p,d,m,b,x,y;[e,n]=t,[r,o]=e,[a,u]=n,l=o,s=r,h=Math.abs(u-o),c=Math.abs(a-r),p=Math.max(h,c)+1,f=Array(p).fill(null),_=Array(p).fill(null),d=a-s>0?1:-1,m=u-l>0?1:-1,i=h>c?1:0,h>c&&([s,l]=[l,s],[c,h]=[h,c],[d,m]=[m,d]),g=2*h-c;for(let w=0;w<c;w++){for(f[w]=i?s:l,_[w]=i?l:s;g>=0;)l+=m,g-=2*c;s+=d,g+=2*h}f[c]=u,_[c]=a,b=[];for(let w=0;w<_.length;w++)x=Math.floor(_[w]),y=Math.floor(f[w]),Ct(y,x)&&b.push([x,y]);return b}function Ut(t,e,n,r){Yt(t).forEach((function(t){e[t[1]][t[0]]===r&&(e[t[1]][t[0]]=n)}))}function Ht(t,e){const n=t[0],r=t[1];let o=!1;for(let a=0,u=e.length-1;a<e.length;u=a++){const t=e[a][0],i=e[a][1],l=e[u][0],s=e[u][1];i>r!=s>r&&n<(l-t)*(r-i)/(s-i)+t&&(o=!o)}return o}function Vt(t,e,n){let[r,o,a,u]=n;return r=Math.max(0,r),a=Math.max(0,a),o=Math.min(o,e),u=Math.min(u,t),[r,o,a,u]}function Yt(t){St(t);let[e,n]=Fe(["clipper","shape"]),[r,o,a,u]=Vt(e,n,C(t));const i=[];for(let l=r;l<=o;l++)for(let e=a;e<=u;e++){const n=[l,e];Ht(n,t)&&i.push(n)}return i}function Gt(t,e,n){if(t.length<3)return[];let r=Yt(t);return r.forEach((function(t){let[r,o]=t;Bt(o,r,e)&&(e[o][r]=n)})),r}function qt(t,e,n,r){if(t.length<3)return[];let o=Yt(t);return o.forEach((function(t){let[o,a]=t;Bt(a,o,e)&&r(a,o)&&(e[a][o]=n)})),o}function Wt(t,e,n,r,o,a,u,i,s){if($(t,e)<i)return!1;s&&(r=l([r,r*s]));let h=A(t,e,r),c=M(n,h,o),_=M(n,h,-o);return a.push(c),u.push(_),!0}function Jt(t,e,n,r){if(n=n||Fe(["clipper","split_length"]),r=r!==undefined?r:Fe(["clipper","dist_eps"])[0],!e)return[t,n,r];let o;return o=U(te(t),n),[o,n,r]}function Xt(t,e,n,r,o,a){if(t.length<2)return[];let u,i,l,s,h,c,_,f,g,p,d,m,b;for([u,r,o]=Jt(t,n,r,o),i=[],l=[],s=.5*Math.PI,h=u[0],c=u[1],Wt(c,h,h,$(h,c)+e,-s,i,l,o,a),_=0,f=1,g=-1;f<u.length-1;){if(h=u[_],c=u[f],f+=1,$(h,c)<o)continue;p=k(h,c,.5),Wt(p,h,p,e,-1*s,i,l,o,a)&&(_=f-1)}return b=u.length,d=u[b-2],m=u[b-1],Wt(d,m,m,$(m,d)+e,s,i,l,o,a),l.reverse(),[i,l]}function Kt(t,e,n,r,o){let a=Xt(t,e,n,r,o);if(2!==a.length)return[];let[u,i]=a;return u.length>0&&i.push([...u[0]]),[...u,...i]}function Qt(t,e){let n,r,o;return n=!1,r=Fe(["clipper","split_length"]),o=Fe(["clipper","dist_eps"])[0],Kt(t,e,false,r,o)}function Zt(t,e){let n,r,o;return n=!0,r=Fe(["clipper","split_length"]),o=Fe(["clipper","dist_eps"])[0],Kt(t,e,true,r,o)}function te(t){return JSON.parse(JSON.stringify(t))}function ee(t,e,n){let r=Fe(["clipper","bg_c"]);for(let o=0;o<t.length;o++){Ut(t[o],e,`${n}_${o}`,r)}}function ne(t,e,n,r){let o=Fe(["clipper","bg_c"]),a=Fe(["clipper","gap_c"]);for(let u=0;u<t.length;u++){let i=t[u];Ut(i,e,`${n}_${u}`,o),Ut(Qt(i,r),e,a,o)}}function re(t,e,n,r,o,a){return t*(1-o)*(1-a)+e*o*(1-a)+n*(1-o)*a+r*o*a}function oe(t,e,n){const r=t.length,o=t[0].length,a=Math.round(r*e),u=Math.round(o*n),i=new Array(a).fill(0).map((()=>new Array(u).fill(0)));for(let l=0;l<u;l++)for(let u=0;u<a;u++){const a=u/e,s=l/n,h=Math.floor(a),c=Math.floor(s),_=Math.min(h+1,r-1),f=Math.min(c+1,o-1),g=a-h,p=s-c,d=re(t[h][c],t[_][c],t[h][f],t[_][f],g,p);i[u][l]=Math.round(d)}return i}function ae(t,e,n,r){let o=ht(t,e,n,r,!0),[a,u,i]=Jt(o,!0);return a}function ue(t,e){Object.keys(e).map((n=>t.style[n]=e[n]))}function ie(t,e){Object.keys(e).map((n=>t.setAttribute(n,e[n])))}function le(){ue(Fe(["holder","mat_container"]),{width:`${Fe(["graphics","w"])}px`,height:`${Fe(["graphics","h"])}px`}),ue(Fe(["holder","canvas_container"]),{height:`${window.innerHeight}px`})}function se(){let t,e,n,r,o,a,u,i,l,s,h,c,_,f,g,p;t=window.innerWidth,e=window.innerHeight,n=Fe("w"),r=Fe("h"),o=n/t,a=r/e,u=o>a?o:a,i=Math.ceil(n/u),l=Math.ceil(r/u),De({w:i,h:l},["graphics"]),s=Fe(["render","render_factor"]),h=s*window.devicePixelRatio,c=i*h,_=l*h,f=1/u*window.devicePixelRatio,$e(["render","point_factor_ratio"],f),g=Fe(["holder","canvas"]),ie(g,{width:c,height:_,viewBox:`0 0 ${c} ${_}`}),g.style["max-width"]="100%",g.style["max-height"]="100%",p=Fe(["render","gl"]),p&&ye()}function he(){let t=document.createElement("div");ue(t,{display:"flex","align-items":"center","align-content":"center","justify-content":"center",width:"100%",height:`${window.innerHeight}px`,margin:"0px",padding:"0px"});let e=document.createElement("div");return De({canvas_container:t,mat_container:e},["holder"]),ue(e,{width:`${Fe(["g","w"])}px`,height:`${Fe(["g","h"])}px`,display:"flex","flex-direction":"row","align-items":"center","align-content":"center","justify-content":"center","flex-wrap":"nowrap"}),t.appendChild(e),[t,e]}function ce(t,e){let n=t.map((t=>[t,$(t,e)])),r=Infinity,o=-Infinity;return n.forEach((function(t){r=Math.min(t[1],r),o=Math.max(t[1],o)})),[n,{min:r,max:o}]}function _e(){ue(document.body,{width:"100%",height:"100%",margin:"0",padding:"0","overflow-y":"hidden","overflow-x":"hidden","-ms-overflow-style":"none","scrollbar-width":"none","image-rendering":"high-quality","background-color":"#FFFFFF"});let t=document.createElement("canvas");$e(["holder","canvas"],t),se();let[e,n]=he();n.appendChild(t),document.body.appendChild(e),se(),le()}function fe(t,e,n){const r=t.createShader(e);return t.shaderSource(r,n),t.compileShader(r),r}function ge(t,e){let n=Fe(["render","gl"]);const r=n.createProgram();return n.attachShader(r,fe(n,n.VERTEX_SHADER,t)),n.attachShader(r,fe(n,n.FRAGMENT_SHADER,e)),n.linkProgram(r),r}function pe(t,e,n){const r=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,r),t.bufferData(t.ARRAY_BUFFER,new Float32Array(e),t.STATIC_DRAW);const o=t.createBuffer();return t.bindBuffer(t.ARRAY_BUFFER,o),t.bufferData(t.ARRAY_BUFFER,new Float32Array(n.flat()),t.STATIC_DRAW),{position:r,color:o}}function de(t,e,n){{const r=2,o=e.FLOAT,a=!1,u=0,i=0;e.bindBuffer(e.ARRAY_BUFFER,t.position),e.vertexAttribPointer(n.attribLocations.vertexPosition,r,o,a,u,i),e.enableVertexAttribArray(n.attribLocations.vertexPosition)}{const r=4,o=e.FLOAT,a=!1,u=0,i=0;e.bindBuffer(e.ARRAY_BUFFER,t.color),e.vertexAttribPointer(n.attribLocations.vertexColor,r,o,a,u,i),e.enableVertexAttribArray(n.attribLocations.vertexColor)}}function me(t,e){e.bindBuffer(e.ARRAY_BUFFER,t.color),e.bindBuffer(e.ARRAY_BUFFER,t.position)}function be(t,e,n){me(t,n),n.drawArrays(n.LINES,0,e)}function xe(){let t=Fe(["render","gl"]);t.enable(t.BLEND);let[e,n,r,o]=Fe(["default","b","m"]);t.blendFuncSeparate(t[e],t[n],t[r],t[o])}function ye(){let t=""+Fe(["render","point_factor_ratio"])*Fe(["render","dot_size"]);t=t.includes(".")?t.slice(0,t.indexOf(".")+2):t+".0";let e=`\nattribute vec4 aVertexPosition;\nattribute vec4 aVertexColor;\nvarying lowp vec4 vColor;\n\nvoid main() {\ngl_Position = aVertexPosition;\nvColor = aVertexColor;\ngl_PointSize = ${t};\n}\n`,n="\nvarying lowp vec4 vColor;\n\nvoid main(void) {\ngl_FragColor=vColor;\n}\n",r=ge(e,n),o=Fe(["render","gl"]);o.viewport(0,0,o.canvas.width,o.canvas.height),De({vs:e,fs:n,programInfo:{program:r,attribLocations:{vertexPosition:o.getAttribLocation(r,"aVertexPosition"),vertexColor:o.getAttribLocation(r,"aVertexColor")}}},["render"]),xe()}function we(t){let e=Fe("w")/2,n=Fe("h")/2;return[(t[0]-e)/e,-(t[1]-n)/n]}function ve(t){let e,n,r;for(e=[],n=0,r=t.length-1-n;n+1<r&&r-1!==n+1;){let o=[n,n+1,r].map((e=>t[e])),a=[r,r-1,n+1].map((e=>t[e]));Lt(...o)||e.push(o),Lt(...a)||e.push(a),n+=1,r-=1}return e}function Me(t,e,n){let r=ve(t);for(let o=0;o<r.length;o++){let t=r[o].map((t=>we(t)));t.forEach((t=>t.forEach((t=>n.wgl.push(t))))),t.forEach((()=>n.rgba.push(e)))}}function Ee(){let t=Fe(["output","collection","points"]),e=Fe(["output","color","full_rgbas"]);for(let n=0;n<t.raw.length;n++){let r=we(t.raw[n]),o=e[t.cid[n]];t.wgl.push(r[0]),t.wgl.push(r[1]),t.rgba.push(o)}}function ke(){let t=Fe(["output","collection","polygons"]),e=Fe(["output","color","full_rgbas"]);for(let n=0;n<t.raw.length;n++){Me(t.raw[n],e[t.cid[n]],t)}}let Ae=96*.7,Ie=Math.floor(23.4*Ae),Pe=Math.floor(33.1*Ae);function Re(t,e){let n=e;if("string"==typeof t)return e[t];for(let o=0;o<t.length;o++)try{n=n[t[o]]}catch(r){return undefined}return n}function Fe(t){return Re(t,window.SETTING)}function Se(t,e,n){let r=e;for(let o=0;o<t.length-1;o++)r=r[t[o]];r[t[t.length-1]]=n}function $e(t,e){return Se(t,window.SETTING,e)}function m(t){return l(Fe(t))}function b(t){return o(Fe(t))}function Ce(t,e){let n=Fe(["output","static",e]),r=Re(t,Fe(["mode",e,n]));return r!==undefined?r:Re([e,...t],Fe(["default"]))}function Be(t,e){return l(Ce(t,e))}function Le(t){return o(Ce(t))}function Oe(t){let e=Fe(["output","color","loc_key"]),n=Fe(["output","geo","focus"]);return Fe(["lambda","color_spec"])[e].p([t],n)}function Te(t,e){let n=Fe(["output","color","loc_key"]),r=Fe(["output","geo","focus"]),o=Fe(["lambda","color_spec"])[n].s;return c(Fe(["lambda","color_spec"])[n].p(e,r),o,{min:t[0],max:t[1]})}function ze(t){return Te([0,1],t)}function Ne(t){let e=t.pop(),n=Fe(t);return n[e]+=1,n[e]}function De(t,e){Object.keys(t).forEach((n=>$e([...e,n],t[n])))}function je(t,e){let n={};return t.forEach((function(t){n[t]=Fe([...e,t])})),n}function Ue(){return Fe(["color","rules",Fe(["output","static","c_rule"])])}function He(t){return["color","rules",Fe(["output","static","c_rule"]),"var_range",t]}function Ve(t,e,n){n/=100;const r=e*Math.min(n,1-n)/100,o=e=>{const o=(e+t/30)%12,a=n-r*Math.max(Math.min(o-3,9-o,1),-1);return Math.round(255*a).toString(16).padStart(2,"0")};return`#${o(0)}${o(8)}${o(4)}`}function Ye(t,e){let n=[];for(let r=0;r<e;r++){let e=[l(t.hue),l(t.saturation),l(t.lightness)];n.push(e)}return n}function Ge(t){let e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}function qe(t){return Ge(t).map((t=>t/255))}function We(t){let e=qe(t);return e.push(1),e}function Je(t,e,n,r){let o=t.r,a=t.rgbas,u=t.hsls,i=Fe(["color","picks",e]),l=Ye(o[e],i);u[e]=l,r[e]=[];let s=[];l.forEach((t=>s.push(We(Ve(t[0],t[1],t[2]))))),a[e]=s,t.ct[e]=s.length,s.forEach((function(t){n.push(t),r[e].push(n.length-1)}))}function Xe(){let t=Ue().rgbas,e=o(y(t[0].ct));De({bg_rgba:t[0][e],bg_rgba_id:e},["output","color"])}function Ke(){let t=Ue();t.ct={},t.hsls={},t.rgbas={};$e(["output","color","full_rgbas"],[])}function Qe(t,e){let n=Fe(["lambda","hsl_checker"]);return t.map((function(t,r){let o=[...e,["h","s","l"][r]];return t+=m(o),n[r](t)}))}function Ze(t){return We(Ve(...t))}function tn(t,e,n,r){let o=Ze(Qe(t,e));o[3]=m([...e,"opacity"]),r.push(o),n.push(r.length-1)}function en(t,e){let n,r,o;n=Fe(["render","gl"]),r=Fe(["render","programInfo"]),o=pe(n,t.wgl,t.rgba),de(o,n,r),me(o,n),n.drawArrays(n[e],0,t.wgl.length/2)}function nn(){let t,e;t=Fe(["render","gl"]),e=Fe(["render","programInfo"]),t.useProgram(e.program);let n=Fe(["output","color","bg_rgba"]);t.clearColor(...n),t.clearDepth(1),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}function rn(){nn(),en(Fe(["output","collection","polygons"]),"TRIANGLES")}function on(){$e(["render","content_ready"],!0),ye(),ke(),requestAnimationFrame(oo)}window.SETTING={w:Ie,h:Pe,offset_rg:[1,5],random:{},render:{content_ready:!1,render_factor:1.25,point_factor_ratio:null,enable_gl:null,gl:null,vs:null,fs:null,programInfo:null,dot_size:1},basic:{},holder:{canvas:null,canvas_container:null,mat_container:null},clipper:{bg_c:0,blob_c:1,gap_c:2,scale_factor:12,shape:[],extract_factor_base:200,extract_factor_bg:1.5,extract_factor_texture:1.5,extract_factor_center:1.5,dist_eps:[1,10],split_length:15,max_line_gap:5,min_border_px_ct:50},graphics:{curve_approx_length:5,u:10,w:null,h:null},texture:{bg:{opacity:[.45,.69],offset_rg:[1,5],cvar:{h:[-20,20],s:[-5,5],l:[-5,5],opacity:[.08,.68]},noise_rg:[-10,10]},signature:{opacity:[.28,.65]},bg_ver_line:{offset_rg:[.5,2.5],cvar:{h:[-10,10],s:[-5,5],l:[-5,5],opacity:[.05,.9]}},bg_cover_line:{offset_rg:[.5,2],cvar:{h:[-10,10],s:[-5,5],l:[-5,5],opacity:[.01,.35]}},bg_pattern:{offset_rg:[10,15]},bg_pattern_texture:{step_ct:[2,15],keep_rate:.85,cvar:{h:[-20,20],s:[-5,5],l:[-5,5],opacity:[.65,.68]},offset:[2,15]},base:{offset_rg:[.5,3],opacity_btm_rg:[.95,.98],opacity_top_rg:[.01,.12]},base_texture:{step_ct:[2,12],keep_rate:.65,cvar:{h:[-10,10],s:[-5,5],l:[-5,5],opacity:[.2,.28]},offset:[2,15]},base_pattern:{offset_rg:[15,20],simplify_eps:.5,smooth_alpha:1.1,opacity_btm_rg:[.9,.98],opacity_top_rg:[.01,.06]},base_pattern_texture:{step_ct:[3,15],keep_rate:.85,cvar:{h:[-10,10],s:[-5,5],l:[-5,5],opacity:[.6,.68]},offset:[2,15],line_offset:[.2,1],line_smooth_factor:[.95,1.5]},base_hor_line:{gap_rg:[10,35],offset_rg:[1,5],"var":{h:[-15,15],s:[-5,5],l:[-15,15],opacity:[.05,.35]}},dot:{gap_rg:[10,37],min_radius:[.5,2],radius_addition:[.5,7],"var":{h:[-5,5],s:[-5,5],l:[-5,5],opacity:[.1,.4]}},center:{opacity:[.95,.99],line_opacity:[.01,.25],line_offset:[.2,1.5],smooth_alpha:1.5},center_highlight:{center_dot_r:[.004,.009],layer_ct:[3,5],layer_gap:[.001,.002],side_ct:[3,15],dot_side:[8,20],radius_dec:[.5,.7],radius_side_inc:[.014,.045],"var":{h:[-15,15],s:[-25,25],l:[-15,25],opacity:[.25,.45]}}},color:{alter_layer_rate:.5,choose_keys:{canvas:["0"],center:["8"],base_highlight:["5","6"],bg:["5","6","7"],bg_highlight:["1","2","3","4","8"],signature:["2","4","6","7"]},mutation_rate:{center:.32,bg:.