
var CanvasKitInit = (function() {
  var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
  if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename;
  return (
function(CanvasKitInit) {
  CanvasKitInit = CanvasKitInit || {};


null;var g;g||(g=typeof CanvasKitInit !== 'undefined' ? CanvasKitInit : {});var aa;g.ready=new Promise(function(a){aa=a});
(function(a){a.vk=a.vk||[];a.vk.push(function(){a.MakeSWCanvasSurface=function(b){var c=b;if("CANVAS"!==c.tagName&&(c=document.getElementById(b),!c))throw"Canvas with id "+b+" was not found";if(b=a.MakeSurface(c.width,c.height))b.sk=c;return b};a.MakeCanvasSurface||(a.MakeCanvasSurface=a.MakeSWCanvasSurface);a.MakeSurface=function(b,c){var d={width:b,height:c,colorType:a.ColorType.RGBA_8888,alphaType:a.AlphaType.Unpremul,colorSpace:a.SkColorSpace.SRGB},e=b*c*4,k=a._malloc(e);if(d=this._getRasterDirectSurface(d,
k,4*b))d.sk=null,d.qm=b,d.mm=c,d.pm=e,d.Ql=k,d.getCanvas().clear(a.TRANSPARENT);return d};a.SkSurface.prototype.flush=function(b){this._flush();if(this.sk){var c=new Uint8ClampedArray(a.HEAPU8.buffer,this.Ql,this.pm);c=new ImageData(c,this.qm,this.mm);b?this.sk.getContext("2d").putImageData(c,0,0,b.fLeft,b.fTop,b.fRight-b.fLeft,b.fBottom-b.fTop):this.sk.getContext("2d").putImageData(c,0,0)}};a.SkSurface.prototype.dispose=function(){this.Ql&&a._free(this.Ql);this.delete()};a.currentContext=a.currentContext||
function(){};a.setCurrentContext=a.setCurrentContext||function(){}})})(g);
(function(a){a.vk=a.vk||[];a.vk.push(function(){function b(c,d,e){return c&&c.hasOwnProperty(d)?c[d]:e}a.Nm=function(c,d){if(!c)throw"null canvas passed into makeWebGLContext";d={alpha:b(d,"alpha",1),depth:b(d,"depth",1),stencil:b(d,"stencil",8),antialias:b(d,"antialias",0),premultipliedAlpha:b(d,"premultipliedAlpha",1),preserveDrawingBuffer:b(d,"preserveDrawingBuffer",0),preferLowPowerToHighPerformance:b(d,"preferLowPowerToHighPerformance",0),failIfMajorPerformanceCaveat:b(d,"failIfMajorPerformanceCaveat",
0),enableExtensionsByDefault:b(d,"enableExtensionsByDefault",1),explicitSwapControl:b(d,"explicitSwapControl",0),renderViaOffscreenBackBuffer:b(d,"renderViaOffscreenBackBuffer",0)};if(d.explicitSwapControl)throw"explicitSwapControl is not supported";this.createContext(c,!0,!0,d)};a.GetWebGLContext=function(c,d){this.Nm(c,d);return a.currentContext()||0};a.MakeWebGLCanvasSurface=function(c,d){d=d||null;var e=c;if("CANVAS"!==e.tagName&&(e=document.getElementById(c),!e))throw"Canvas with id "+c+" was not found";
c=this.GetWebGLContext(e);if(!c||0>c)throw"failed to create webgl context: err "+c;var k=this.MakeGrContext(c);d=this.MakeOnScreenGLSurface(k,e.width,e.height,d);if(!d)return d=e.cloneNode(!0),e.parentNode.replaceChild(d,e),d.classList.add("ck-replaced"),a.MakeSWCanvasSurface(d);d.Xk=c;d.grContext=k;return d};a.MakeCanvasSurface=a.MakeWebGLCanvasSurface})})(g);
(function(a){function b(m){return Math.round(Math.max(0,Math.min(m||0,255)))}function c(m){return m?m.constructor===Float32Array&&4===m.length:!1}function d(m){return(b(255*m[3])<<24|b(255*m[0])<<16|b(255*m[1])<<8|b(255*m[2])<<0)>>>0}function e(m){if(m instanceof Float32Array){for(var u=Math.floor(m.length/4),B=new Uint32Array(u),E=0;E<u;E++)B[E]=d(m.slice(4*E,4*(E+1)));return B}if(m instanceof Uint32Array)return m;if(m instanceof Array&&m[0]instanceof Float32Array)return m.map(d)}function k(m){if(void 0===
m)return 1;var u=parseFloat(m);return m&&-1!==m.indexOf("%")?u/100:u}function n(m,u,B){if(!m||!m.length)return 0;if(m._ck)return m.byteOffset;var E=a[u].BYTES_PER_ELEMENT;B||(B=a._malloc(m.length*E));a[u].set(m,B/E);return B}function q(m,u,B){if(!m||!m.length)return 0;var E=a[u].BYTES_PER_ELEMENT;B||(B=a._malloc(m.length*m[0].length*E));u=a[u];var R=0;E=B/E;for(var Y=0;Y<m.length;Y++)for(var f=0;f<m[0].length;f++)u[E+R]=m[Y][f],R++;return B}function v(m){var u={Mk:0,count:m.length,zl:a.ColorType.RGBA_F32};
if(m instanceof Float32Array)u.Mk=n(m,"HEAPF32"),u.count=m.length/4;else if(m instanceof Uint32Array)u.Mk=n(m,"HEAPU32"),u.zl=a.ColorType.RGBA_8888;else if(m instanceof Array&&m[0]instanceof Float32Array)u.Mk=q(m,"HEAPF32");else throw"Invalid argument to copyFlexibleColorArray, Not a color array "+typeof m;return u}function z(m){if(!m)return 0;if(m.length){if(6!==m.length&&9!==m.length)throw"invalid matrix size";var u=n(m,"HEAPF32",Wa);6===m.length&&a.HEAPF32.set(qa,6+u/4);return u}u=hb.toTypedArray();
u[0]=m.m11;u[1]=m.m21;u[2]=m.m41;u[3]=m.m12;u[4]=m.m22;u[5]=m.m42;u[6]=m.m14;u[7]=m.m24;u[8]=m.m44;return Wa}function H(m){if(!m)return 0;var u=Hc.toTypedArray();if(m.length){if(16!==m.length&&6!==m.length&&9!==m.length)throw"invalid matrix size";if(16===m.length)return n(m,"HEAPF32",Xa);u.fill(0);u[0]=m[0];u[1]=m[1];u[3]=m[2];u[4]=m[3];u[5]=m[4];u[7]=m[5];u[12]=m[6];u[13]=m[7];u[15]=m[8];6===m.length&&(u[12]=0,u[13]=0,u[15]=1);return Xa}u[0]=m.m11;u[1]=m.m21;u[2]=m.m31;u[3]=m.m41;u[4]=m.m12;u[5]=
m.m22;u[6]=m.m32;u[7]=m.m42;u[8]=m.m13;u[9]=m.m23;u[10]=m.m33;u[11]=m.m43;u[12]=m.m14;u[13]=m.m24;u[14]=m.m34;u[15]=m.m44;return Xa}function M(m){for(var u=Array(16),B=0;16>B;B++)u[B]=a.HEAPF32[m/4+B];return u}function O(m,u){return n(m,"HEAPF32",u||Db)}function A(m,u,B,E){var R=Ic.toTypedArray();R[0]=m;R[1]=u;R[2]=B;R[3]=E;return Db}function Q(m){for(var u=new Float32Array(4),B=0;4>B;B++)u[B]=a.HEAPF32[m/4+B];return u}function ba(m,u){if(sa)require("fs").writeFile(u,new Buffer(m),function(E){if(E)throw E;
});else{url=window.URL.createObjectURL(new Blob([m],{type:"application/octet-stream"}));var B=document.createElement("a");document.body.appendChild(B);B.href=url;B.download=u;B.click();setTimeout(function(){URL.revokeObjectURL(url);B.remove()},50)}}function S(m,u){u&&!u._ck&&a._free(m)}a.Color=function(m,u,B,E){void 0===E&&(E=1);return a.Color4f(b(m)/255,b(u)/255,b(B)/255,E)};a.ColorAsInt=function(m,u,B,E){void 0===E&&(E=255);return(b(E)<<24|b(m)<<16|b(u)<<8|b(B)<<0&268435455)>>>0};a.Color4f=function(m,
u,B,E){void 0===E&&(E=1);return Float32Array.of(m,u,B,E)};Object.defineProperty(a,"TRANSPARENT",{get:function(){return a.Color4f(0,0,0,0)}});Object.defineProperty(a,"BLACK",{get:function(){return a.Color4f(0,0,0,1)}});Object.defineProperty(a,"WHITE",{get:function(){return a.Color4f(1,1,1,1)}});Object.defineProperty(a,"RED",{get:function(){return a.Color4f(1,0,0,1)}});Object.defineProperty(a,"GREEN",{get:function(){return a.Color4f(0,1,0,1)}});Object.defineProperty(a,"BLUE",{get:function(){return a.Color4f(0,
0,1,1)}});Object.defineProperty(a,"YELLOW",{get:function(){return a.Color4f(1,1,0,1)}});Object.defineProperty(a,"CYAN",{get:function(){return a.Color4f(0,1,1,1)}});Object.defineProperty(a,"MAGENTA",{get:function(){return a.Color4f(1,0,1,1)}});a.getColorComponents=function(m){return[Math.floor(255*m[0]),Math.floor(255*m[1]),Math.floor(255*m[2]),m[3]]};a.parseColorString=function(m,u){m=m.toLowerCase();if(m.startsWith("#")){u=255;switch(m.length){case 9:u=parseInt(m.slice(7,9),16);case 7:var B=parseInt(m.slice(1,
3),16);var E=parseInt(m.slice(3,5),16);var R=parseInt(m.slice(5,7),16);break;case 5:u=17*parseInt(m.slice(4,5),16);case 4:B=17*parseInt(m.slice(1,2),16),E=17*parseInt(m.slice(2,3),16),R=17*parseInt(m.slice(3,4),16)}return a.Color(B,E,R,u/255)}return m.startsWith("rgba")?(m=m.slice(5,-1),m=m.split(","),a.Color(+m[0],+m[1],+m[2],k(m[3]))):m.startsWith("rgb")?(m=m.slice(4,-1),m=m.split(","),a.Color(+m[0],+m[1],+m[2],k(m[3]))):m.startsWith("gray(")||m.startsWith("hsl")||!u||(m=u[m],void 0===m)?a.BLACK:
m};a.multiplyByAlpha=function(m,u){m=m.slice();m[3]=Math.max(0,Math.min(m[3]*u,1));return m};var sa=!(new Function("try {return this===window;}catch(e){ return false;}"))(),qa=Float32Array.of(0,0,1),Wa=0,hb,Xa=0,Hc,Db=0,Ic,Jc={};a.cl=function(){this.Wk=[];this.Ak=null;Object.defineProperty(this,"length",{enumerable:!0,get:function(){return this.Wk.length/4}})};a.cl.prototype.push=function(m,u,B,E){this.Ak||this.Wk.push(m,u,B,E)};a.cl.prototype.set=function(m,u,B,E,R){0>m||m>=this.Wk.length/4||(m*=
4,this.Ak?(m=this.Ak/4+m,a.HEAPF32[m]=u,a.HEAPF32[m+1]=B,a.HEAPF32[m+2]=E,a.HEAPF32[m+3]=R):(this.Wk[m]=u,this.Wk[m+1]=B,this.Wk[m+2]=E,this.Wk[m+3]=R))};a.cl.prototype.build=function(){return this.Ak?this.Ak:this.Ak=n(this.Wk,"HEAPF32")};a.cl.prototype.delete=function(){this.Ak&&(a._free(this.Ak),this.Ak=null)};a.sl=function(){this.yl=[];this.Ak=null;Object.defineProperty(this,"length",{enumerable:!0,get:function(){return this.yl.length}})};a.sl.prototype.push=function(m){this.Ak||this.yl.push(m)};
a.sl.prototype.set=function(m,u){0>m||m>=this.yl.length||(m*=4,this.Ak?a.HEAPU32[this.Ak/4+m]=u:this.yl[m]=u)};a.sl.prototype.build=function(){return this.Ak?this.Ak:this.Ak=n(this.yl,"HEAPU32")};a.sl.prototype.delete=function(){this.Ak&&(a._free(this.Ak),this.Ak=null)};a.SkRectBuilder=a.cl;a.RSXFormBuilder=a.cl;a.SkColorBuilder=a.sl;a.Malloc=function(m,u){var B=a._malloc(u*m.BYTES_PER_ELEMENT);return{_ck:!0,length:u,byteOffset:B,bl:null,subarray:function(E,R){E=this.toTypedArray().subarray(E,R);
E._ck=!0;return E},toTypedArray:function(){if(this.bl&&this.bl.length)return this.bl;this.bl=new m(a.HEAPU8.buffer,B,u);this.bl._ck=!0;return this.bl}}};a.Free=function(m){a._free(m.byteOffset);m.byteOffset=0;m.toTypedArray=null;m.bl=null};a.onRuntimeInitialized=function(){function m(f,p,t,x,D){for(var I=0;I<f.length;I++)p[I*t+(I*D+x+t)%t]=f[I];return p}function u(f){for(var p=f*f,t=Array(p);p--;)t[p]=0==p%(f+1)?1:0;return t}function B(){for(var f=0,p=0;p<arguments.length-1;p+=2)f+=arguments[p]*arguments[p+
1];return f}function E(f,p,t){for(var x=Array(f.length),D=0;D<t;D++)for(var I=0;I<t;I++){for(var T=0,V=0;V<t;V++)T+=f[t*D+V]*p[t*V+I];x[D*t+I]=T}return x}function R(f,p){for(var t=E(p[0],p[1],f),x=2;x<p.length;)t=E(t,p[x],f),x++;return t}Ic=a.Malloc(Float32Array,4);Db=Ic.byteOffset;Hc=a.Malloc(Float32Array,16);Xa=Hc.byteOffset;hb=a.Malloc(Float32Array,9);Wa=hb.byteOffset;a.SkColorSpace.SRGB=a.SkColorSpace._MakeSRGB();a.SkColorSpace.DISPLAY_P3=a.SkColorSpace._MakeDisplayP3();a.SkColorSpace.ADOBE_RGB=
a.SkColorSpace._MakeAdobeRGB();a.SkMatrix={};a.SkMatrix.identity=function(){return u(3)};a.SkMatrix.invert=function(f){var p=f[0]*f[4]*f[8]+f[1]*f[5]*f[6]+f[2]*f[3]*f[7]-f[2]*f[4]*f[6]-f[1]*f[3]*f[8]-f[0]*f[5]*f[7];return p?[(f[4]*f[8]-f[5]*f[7])/p,(f[2]*f[7]-f[1]*f[8])/p,(f[1]*f[5]-f[2]*f[4])/p,(f[5]*f[6]-f[3]*f[8])/p,(f[0]*f[8]-f[2]*f[6])/p,(f[2]*f[3]-f[0]*f[5])/p,(f[3]*f[7]-f[4]*f[6])/p,(f[1]*f[6]-f[0]*f[7])/p,(f[0]*f[4]-f[1]*f[3])/p]:null};a.SkMatrix.mapPoints=function(f,p){for(var t=0;t<p.length;t+=
2){var x=p[t],D=p[t+1],I=f[6]*x+f[7]*D+f[8],T=f[3]*x+f[4]*D+f[5];p[t]=(f[0]*x+f[1]*D+f[2])/I;p[t+1]=T/I}return p};a.SkMatrix.multiply=function(){return R(3,arguments)};a.SkMatrix.rotated=function(f,p,t){p=p||0;t=t||0;var x=Math.sin(f);f=Math.cos(f);return[f,-x,B(x,t,1-f,p),x,f,B(-x,p,1-f,t),0,0,1]};a.SkMatrix.scaled=function(f,p,t,x){t=t||0;x=x||0;var D=m([f,p],u(3),3,0,1);return m([t-f*t,x-p*x],D,3,2,0)};a.SkMatrix.skewed=function(f,p,t,x){t=t||0;x=x||0;var D=m([f,p],u(3),3,1,-1);return m([-f*t,
-p*x],D,3,2,0)};a.SkMatrix.translated=function(f,p){return m(arguments,u(3),3,2,0)};a.SkVector={};a.SkVector.dot=function(f,p){return f.map(function(t,x){return t*p[x]}).reduce(function(t,x){return t+x})};a.SkVector.lengthSquared=function(f){return a.SkVector.dot(f,f)};a.SkVector.length=function(f){return Math.sqrt(a.SkVector.lengthSquared(f))};a.SkVector.mulScalar=function(f,p){return f.map(function(t){return t*p})};a.SkVector.add=function(f,p){return f.map(function(t,x){return t+p[x]})};a.SkVector.sub=
function(f,p){return f.map(function(t,x){return t-p[x]})};a.SkVector.dist=function(f,p){return a.SkVector.length(a.SkVector.sub(f,p))};a.SkVector.normalize=function(f){return a.SkVector.mulScalar(f,1/a.SkVector.length(f))};a.SkVector.cross=function(f,p){return[f[1]*p[2]-f[2]*p[1],f[2]*p[0]-f[0]*p[2],f[0]*p[1]-f[1]*p[0]]};a.SkM44={};a.SkM44.identity=function(){return u(4)};a.SkM44.translated=function(f){return m(f,u(4),4,3,0)};a.SkM44.scaled=function(f){return m(f,u(4),4,0,1)};a.SkM44.rotated=function(f,
p){return a.SkM44.rotatedUnitSinCos(a.SkVector.normalize(f),Math.sin(p),Math.cos(p))};a.SkM44.rotatedUnitSinCos=function(f,p,t){var x=f[0],D=f[1];f=f[2];var I=1-t;return[I*x*x+t,I*x*D-p*f,I*x*f+p*D,0,I*x*D+p*f,I*D*D+t,I*D*f-p*x,0,I*x*f-p*D,I*D*f+p*x,I*f*f+t,0,0,0,0,1]};a.SkM44.lookat=function(f,p,t){p=a.SkVector.normalize(a.SkVector.sub(p,f));t=a.SkVector.normalize(t);t=a.SkVector.normalize(a.SkVector.cross(p,t));var x=a.SkM44.identity();m(t,x,4,0,0);m(a.SkVector.cross(t,p),x,4,1,0);m(a.SkVector.mulScalar(p,
-1),x,4,2,0);m(f,x,4,3,0);f=a.SkM44.invert(x);return null===f?a.SkM44.identity():f};a.SkM44.perspective=function(f,p,t){var x=1/(p-f);t/=2;t=Math.cos(t)/Math.sin(t);return[t,0,0,0,0,t,0,0,0,0,(p+f)*x,2*p*f*x,0,0,-1,1]};a.SkM44.rc=function(f,p,t){return f[4*p+t]};a.SkM44.multiply=function(){return R(4,arguments)};a.SkM44.invert=function(f){var p=f[0],t=f[4],x=f[8],D=f[12],I=f[1],T=f[5],V=f[9],W=f[13],Z=f[2],ka=f[6],ra=f[10],ta=f[14],K=f[3],l=f[7],r=f[11];f=f[15];var y=p*T-t*I,C=p*V-x*I,F=p*W-D*I,J=
t*V-x*T,P=t*W-D*T,da=x*W-D*V,ja=Z*l-ka*K,ua=Z*r-ra*K,va=Z*f-ta*K,ib=ka*r-ra*l,jb=ka*f-ta*l,kb=ra*f-ta*r,pd=y*kb-C*jb+F*ib+J*va-P*ua+da*ja,wa=1/pd;if(0===pd||Infinity===wa)return null;y*=wa;C*=wa;F*=wa;J*=wa;P*=wa;da*=wa;ja*=wa;ua*=wa;va*=wa;ib*=wa;jb*=wa;kb*=wa;p=[T*kb-V*jb+W*ib,V*va-I*kb-W*ua,I*jb-T*va+W*ja,T*ua-I*ib-V*ja,x*jb-t*kb-D*ib,p*kb-x*va+D*ua,t*va-p*jb-D*ja,p*ib-t*ua+x*ja,l*da-r*P+f*J,r*F-K*da-f*C,K*P-l*F+f*y,l*C-K*J-r*y,ra*P-ka*da-ta*J,Z*da-ra*F+ta*C,ka*F-Z*P-ta*y,Z*J-ka*C+ra*y];return p.every(function(qd){return Infinity!==
qd&&-Infinity!==qd})?p:null};a.SkM44.transpose=function(f){return[f[0],f[4],f[8],f[12],f[1],f[5],f[9],f[13],f[2],f[6],f[10],f[14],f[3],f[7],f[11],f[15]]};a.SkM44.mustInvert=function(f){f=a.SkM44.invert(f);if(null===f)throw"Matrix not invertible";return f};a.SkM44.setupCamera=function(f,p,t){var x=a.SkM44.lookat(t.eye,t.coa,t.up);t=a.SkM44.perspective(t.near,t.far,t.angle);p=[(f.fRight-f.fLeft)/2,(f.fBottom-f.fTop)/2,p];f=a.SkM44.multiply(a.SkM44.translated([(f.fLeft+f.fRight)/2,(f.fTop+f.fBottom)/
2,0]),a.SkM44.scaled(p));return a.SkM44.multiply(f,t,x,a.SkM44.mustInvert(f))};a.SkColorMatrix={};a.SkColorMatrix.identity=function(){var f=new Float32Array(20);f[0]=1;f[6]=1;f[12]=1;f[18]=1;return f};a.SkColorMatrix.scaled=function(f,p,t,x){var D=new Float32Array(20);D[0]=f;D[6]=p;D[12]=t;D[18]=x;return D};var Y=[[6,7,11,12],[0,10,2,12],[0,1,5,6]];a.SkColorMatrix.rotated=function(f,p,t){var x=a.SkColorMatrix.identity();f=Y[f];x[f[0]]=t;x[f[1]]=p;x[f[2]]=-p;x[f[3]]=t;return x};a.SkColorMatrix.postTranslate=
function(f,p,t,x,D){f[4]+=p;f[9]+=t;f[14]+=x;f[19]+=D;return f};a.SkColorMatrix.concat=function(f,p){for(var t=new Float32Array(20),x=0,D=0;20>D;D+=5){for(var I=0;4>I;I++)t[x++]=f[D]*p[I]+f[D+1]*p[I+5]+f[D+2]*p[I+10]+f[D+3]*p[I+15];t[x++]=f[D]*p[4]+f[D+1]*p[9]+f[D+2]*p[14]+f[D+3]*p[19]+f[D+4]}return t};a.SkPath.MakeFromCmds=function(f){for(var p=0,t=0;t<f.length;t++)p+=f[t].length;if(Jc[p])var x=Jc[p];else x=new Float32Array(p),Jc[p]=x;var D=0;for(t=0;t<f.length;t++)for(var I=0;I<f[t].length;I++)x[D]=
f[t][I],D++;f=[n(x,"HEAPF32"),p];p=a.SkPath._MakeFromCmds(f[0],f[1]);a._free(f[0]);return p};a.MakePathFromCmds=a.SkPath.MakeFromCmds;a.SkPath.MakeFromVerbsPointsWeights=function(f,p,t){var x=n(f,"HEAPU8"),D=n(p,"HEAPF32"),I=n(t,"HEAPF32"),T=a.SkPath._MakeFromVerbsPointsWeights(x,f.length,D,p.length,I,t&&t.length||0);S(x,f);S(D,p);S(I,t);return T};a.SkPath.prototype.addArc=function(f,p,t){this._addArc(f,p,t);return this};a.SkPath.prototype.addOval=function(f,p,t){void 0===t&&(t=1);this._addOval(f,
!!p,t);return this};a.SkPath.prototype.addPath=function(){var f=Array.prototype.slice.call(arguments),p=f[0],t=!1;"boolean"===typeof f[f.length-1]&&(t=f.pop());if(1===f.length)this._addPath(p,1,0,0,0,1,0,0,0,1,t);else if(2===f.length)f=f[1],this._addPath(p,f[0],f[1],f[2],f[3],f[4],f[5],f[6]||0,f[7]||0,f[8]||1,t);else if(7===f.length||10===f.length)this._addPath(p,f[1],f[2],f[3],f[4],f[5],f[6],f[7]||0,f[8]||0,f[9]||1,t);else return null;return this};a.SkPath.prototype.addPoly=function(f,p){if(f._ck){var t=
f.byteOffset;var x=f.length/2}else t=q(f,"HEAPF32"),x=f.length;this._addPoly(t,x,p);S(t,f);return this};a.SkPath.prototype.addRect=function(){if(1===arguments.length||2===arguments.length){var f=arguments[0];this._addRect(f.fLeft,f.fTop,f.fRight,f.fBottom,arguments[1]||!1)}else if(4===arguments.length||5===arguments.length)f=arguments,this._addRect(f[0],f[1],f[2],f[3],f[4]||!1);else return null;return this};a.SkPath.prototype.addRoundRect=function(){var f=arguments;if(3===f.length||6===f.length)var p=
f[f.length-2];else if(4===f.length||7===f.length){p=f[f.length-3];var t=f[f.length-2];p=[p,t,p,t,p,t,p,t]}else return null;if(8!==p.length)return null;t=n(p,"HEAPF32");if(3===f.length||4===f.length){var x=f[0],D=f[f.length-1];this._addRoundRect(x.fLeft,x.fTop,x.fRight,x.fBottom,t,D)}else 6!==f.length&&7!==f.length||this._addRoundRect(f[0],f[1],f[2],f[3],t,D);S(t,p);return this};a.SkPath.prototype.addVerbsPointsWeights=function(f,p,t){var x=n(f,"HEAPU8"),D=n(p,"HEAPF32"),I=n(t,"HEAPF32");this._addVerbsPointsWeights(x,
f.length,D,p.length,I,t&&t.length||0);S(x,f);S(D,p);S(I,t)};a.SkPath.prototype.arc=function(f,p,t,x,D,I){f=a.LTRBRect(f-t,p-t,f+t,p+t);D=(D-x)/Math.PI*180-360*!!I;I=new a.SkPath;I.addArc(f,x/Math.PI*180,D);this.addPath(I,!0);I.delete();return this};a.SkPath.prototype.arcTo=function(){var f=arguments;if(5===f.length)this._arcTo(f[0],f[1],f[2],f[3],f[4]);else if(4===f.length)this._arcTo(f[0],f[1],f[2],f[3]);else if(7===f.length)this._arcTo(f[0],f[1],f[2],!!f[3],!!f[4],f[5],f[6]);else throw"Invalid args for arcTo. Expected 4, 5, or 7, got "+
f.length;return this};a.SkPath.prototype.close=function(){this._close();return this};a.SkPath.prototype.conicTo=function(f,p,t,x,D){this._conicTo(f,p,t,x,D);return this};a.SkPath.prototype.cubicTo=function(f,p,t,x,D,I){this._cubicTo(f,p,t,x,D,I);return this};a.SkPath.prototype.dash=function(f,p,t){return this._dash(f,p,t)?this:null};a.SkPath.prototype.lineTo=function(f,p){this._lineTo(f,p);return this};a.SkPath.prototype.moveTo=function(f,p){this._moveTo(f,p);return this};a.SkPath.prototype.offset=
function(f,p){this._transform(1,0,f,0,1,p,0,0,1);return this};a.SkPath.prototype.quadTo=function(f,p,t,x){this._quadTo(f,p,t,x);return this};a.SkPath.prototype.rArcTo=function(f,p,t,x,D,I,T){this._rArcTo(f,p,t,x,D,I,T);return this};a.SkPath.prototype.rConicTo=function(f,p,t,x,D){this._rConicTo(f,p,t,x,D);return this};a.SkPath.prototype.rCubicTo=function(f,p,t,x,D,I){this._rCubicTo(f,p,t,x,D,I);return this};a.SkPath.prototype.rLineTo=function(f,p){this._rLineTo(f,p);return this};a.SkPath.prototype.rMoveTo=
function(f,p){this._rMoveTo(f,p);return this};a.SkPath.prototype.rQuadTo=function(f,p,t,x){this._rQuadTo(f,p,t,x);return this};a.SkPath.prototype.stroke=function(f){f=f||{};f.width=f.width||1;f.miter_limit=f.miter_limit||4;f.cap=f.cap||a.StrokeCap.Butt;f.join=f.join||a.StrokeJoin.Miter;f.precision=f.precision||1;return this._stroke(f)?this:null};a.SkPath.prototype.transform=function(){if(1===arguments.length){var f=arguments[0];this._transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6]||0,f[7]||0,f[8]||1)}else if(6===
arguments.length||9===arguments.length)f=arguments,this._transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6]||0,f[7]||0,f[8]||1);else throw"transform expected to take 1 or 9 arguments. Got "+arguments.length;return this};a.SkPath.prototype.trim=function(f,p,t){return this._trim(f,p,!!t)?this:null};a.SkImage.prototype.encodeToData=function(){if(!arguments.length)return this._encodeToData();if(2===arguments.length){var f=arguments;return this._encodeToDataWithFormat(f[0],f[1])}throw"encodeToData expected to take 0 or 2 arguments. Got "+
arguments.length;};a.SkImage.prototype.makeShader=function(f,p,t){t=z(t);return this._makeShader(f,p,t)};a.SkImage.prototype.readPixels=function(f,p,t){switch(f.colorType){case a.ColorType.RGBA_8888:var x=4*f.width;break;case a.ColorType.RGBA_F32:x=16*f.width;break;default:return}var D=x*f.height,I=a._malloc(D);if(!this._readPixels(f,I,x,p,t))return null;p=null;switch(f.colorType){case a.ColorType.RGBA_8888:p=(new Uint8Array(a.HEAPU8.buffer,I,D)).slice();break;case a.ColorType.RGBA_F32:p=(new Float32Array(a.HEAPU8.buffer,
I,D)).slice()}a._free(I);return p};a.SkCanvas.prototype.clear=function(f){f=O(f);this._clear(f)};a.SkCanvas.prototype.concat=function(f){f=H(f);this._concat(f)};a.SkCanvas.prototype.concat44=a.SkCanvas.prototype.concat;a.SkCanvas.prototype.drawAtlas=function(f,p,t,x,D,I){if(f&&x&&p&&t&&p.length===t.length){D||(D=a.BlendMode.SrcOver);var T;p.build?T=p.build():T=n(p,"HEAPF32");if(t.build){var V=t.build();var W=t.length}else V=n(t,"HEAPF32"),W=t.length/4;var Z=0;I&&(I.build?Z=I.build():Z=n(e(I),"HEAPU32"));
this._drawAtlas(f,V,T,Z,W,D,x);T&&!p.build&&S(T,p);V&&!t.build&&S(V,t);Z&&!I.build&&S(Z,I)}};a.SkCanvas.prototype.drawColor=function(f,p){f=O(f);void 0!==p?this._drawColor(f,p):this._drawColor(f)};a.SkCanvas.prototype.drawColorComponents=function(f,p,t,x,D){f=A(f,p,t,x);void 0!==D?this._drawColor(f,D):this._drawColor(f)};a.SkCanvas.prototype.drawPoints=function(f,p,t){if(p._ck){var x=p.byteOffset;var D=p.length/2}else x=q(p,"HEAPF32"),D=p.length;this._drawPoints(f,x,D,t);S(x,p)};a.SkCanvas.prototype.drawShadow=
function(f,p,t,x,D,I,T){var V=n(D,"HEAPF32"),W=n(I,"HEAPF32");this._drawShadow(f,p,t,x,V,W,T);S(V,D);S(W,I)};a.SkCanvas.prototype.getLocalToDevice=function(){this._getLocalToDevice(Xa);return M(Xa)};a.SkCanvas.prototype.findMarkedCTM=function(f){return this._findMarkedCTM(f,Xa)?M(Xa):null};a.SkCanvas.prototype.getTotalMatrix=function(){this._getTotalMatrix(Wa);for(var f=Array(9),p=0;9>p;p++)f[p]=a.HEAPF32[Wa/4+p];return f};a.SkCanvas.prototype.readPixels=function(f,p,t,x,D,I,T,V){D=D||a.AlphaType.Unpremul;
I=I||a.ColorType.RGBA_8888;T=T||a.SkColorSpace.SRGB;var W=4;I===a.ColorType.RGBA_F16&&(W=8);V=V||W*t;var Z=x*V;W=a._malloc(Z);if(!this._readPixels({width:t,height:x,colorType:I,alphaType:D,colorSpace:T},W,V,f,p))return a._free(W),null;f=(new Uint8Array(a.HEAPU8.buffer,W,Z)).slice();a._free(W);return f};a.SkCanvas.prototype.writePixels=function(f,p,t,x,D,I,T,V){if(f.byteLength%(p*t))throw"pixels length must be a multiple of the srcWidth * srcHeight";var W=f.byteLength/(p*t);I=I||a.AlphaType.Unpremul;
T=T||a.ColorType.RGBA_8888;V=V||a.SkColorSpace.SRGB;var Z=W*p;W=n(f,"HEAPU8");p=this._writePixels({width:p,height:t,colorType:T,alphaType:I,colorSpace:V},W,Z,x,D);S(W,f);return p};a.SkColorFilter.MakeBlend=function(f,p){f=O(f);return a.SkColorFilter._MakeBlend(f,p)};a.SkColorFilter.MakeMatrix=function(f){if(!f||20!==f.length)throw"invalid color matrix";var p=n(f,"HEAPF32"),t=a.SkColorFilter._makeMatrix(p);S(p,f);return t};a.SkImageFilter.MakeMatrixTransform=function(f,p,t){f=z(f);return a.SkImageFilter._MakeMatrixTransform(f,
p,t)};a.SkPaint.prototype.getColor=function(){this._getColor(Db);return Q(Db)};a.SkPaint.prototype.setColor=function(f,p){p=p||null;f=O(f);this._setColor(f,p)};a.SkPaint.prototype.setColorComponents=function(f,p,t,x,D){D=D||null;f=A(f,p,t,x);this._setColor(f,D)};a.SkSurface.prototype.captureFrameAsSkPicture=function(f){var p=new a.SkPictureRecorder,t=p.beginRecording(a.LTRBRect(0,0,this.width(),this.height()));f(t);f=p.finishRecordingAsPicture();p.delete();return f};a.SkSurface.prototype.requestAnimationFrame=
function(f,p){this.tl||(this.tl=this.getCanvas());window.requestAnimationFrame(function(){void 0!==this.Xk&&a.setCurrentContext(this.Xk);f(this.tl);this.flush(p)}.bind(this))};a.SkSurface.prototype.drawOnce=function(f,p){this.tl||(this.tl=this.getCanvas());window.requestAnimationFrame(function(){void 0!==this.Xk&&a.setCurrentContext(this.Xk);f(this.tl);this.flush(p);this.dispose()}.bind(this))};a.SkPathEffect.MakeDash=function(f,p){p||(p=0);if(!f.length||1===f.length%2)throw"Intervals array must have even length";
var t=n(f,"HEAPF32");p=a.SkPathEffect._MakeDash(t,f.length,p);S(t,f);return p};a.SkShader.Color=function(f,p){p=p||null;f=O(f);return a.SkShader._Color(f,p)};a.SkShader.MakeLinearGradient=function(f,p,t,x,D,I,T,V){V=V||null;var W=v(t),Z=n(x,"HEAPF32");T=T||0;I=z(I);f=a._MakeLinearGradientShader(f,p,W.Mk,W.zl,Z,W.count,D,T,I,V);S(W.Mk,t);x&&S(Z,x);return f};a.SkShader.MakeRadialGradient=function(f,p,t,x,D,I,T,V){V=V||null;var W=v(t),Z=n(x,"HEAPF32");T=T||0;I=z(I);f=a._MakeRadialGradientShader(f,p,
W.Mk,W.zl,Z,W.count,D,T,I,V);S(W.Mk,t);x&&S(Z,x);return f};a.SkShader.MakeSweepGradient=function(f,p,t,x,D,I,T,V,W,Z){Z=Z||null;var ka=v(t),ra=n(x,"HEAPF32");T=T||0;V=V||0;W=W||360;I=z(I);f=a._MakeSweepGradientShader(f,p,ka.Mk,ka.zl,ra,ka.count,D,V,W,T,I,Z);S(ka.Mk,t);x&&S(ra,x);return f};a.SkShader.MakeTwoPointConicalGradient=function(f,p,t,x,D,I,T,V,W,Z){Z=Z||null;var ka=v(D),ra=n(I,"HEAPF32");W=W||0;V=z(V);f=a._MakeTwoPointConicalGradientShader(f,p,t,x,ka.Mk,ka.zl,ra,ka.count,T,W,V,Z);S(ka.Mk,
D);I&&S(ra,I);return f};a.jn=a.SkPathEffect.MakeDash;a.gn=a.SkShader.MakeLinearGradient;a.hn=a.SkShader.MakeRadialGradient;a.kn=a.SkShader.MakeTwoPointConicalGradient;a.vk&&a.vk.forEach(function(f){f()})};a.computeTonalColors=function(m){var u=n(m.ambient,"HEAPF32"),B=n(m.spot,"HEAPF32");this._computeTonalColors(u,B);var E={ambient:Q(u),spot:Q(B)};S(u,m.ambient);S(B,m.spot);return E};a.LTRBRect=function(m,u,B,E){return{fLeft:m,fTop:u,fRight:B,fBottom:E}};a.XYWHRect=function(m,u,B,E){return{fLeft:m,
fTop:u,fRight:m+B,fBottom:u+E}};a.RRectXY=function(m,u,B){return{rect:m,rx1:u,ry1:B,rx2:u,ry2:B,rx3:u,ry3:B,rx4:u,ry4:B}};a.MakeAnimatedImageFromEncoded=function(m){m=new Uint8Array(m);var u=a._malloc(m.byteLength);a.HEAPU8.set(m,u);return(m=a._decodeAnimatedImage(u,m.byteLength))?m:null};a.MakeImageFromEncoded=function(m){m=new Uint8Array(m);var u=a._malloc(m.byteLength);a.HEAPU8.set(m,u);return(m=a._decodeImage(u,m.byteLength))?m:null};var Eb=null;a.MakeImageFromCanvasImageSource=function(m){var u=
m.width,B=m.height;Eb||(Eb=document.createElement("canvas"));Eb.width=u;Eb.height=B;var E=Eb.getContext("2d");E.drawImage(m,0,0);m=E.getImageData(0,0,u,B);return a.MakeImage(m.data,u,B,a.AlphaType.Unpremul,a.ColorType.RGBA_8888,a.SkColorSpace.SRGB)};a.MakeImage=function(m,u,B,E,R,Y){var f=m.length/(u*B);B={width:u,height:B,alphaType:E,colorType:R,colorSpace:Y};E=n(m,"HEAPU8");return a._MakeImage(B,E,m.length,u*f)};a.MakeSkVertices=function(m,u,B,E,R,Y){var f=R&&R.length||0,p=0;B&&B.length&&(p|=1);
E&&E.length&&(p|=2);void 0===Y||Y||(p|=4);m=new a._SkVerticesBuilder(m,u.length,f,p);q(u,"HEAPF32",m.positions());m.texCoords()&&q(B,"HEAPF32",m.texCoords());if(m.colors()){if(E.build)throw"Color builder not accepted by MakeSkVertices, use array of ints";n(e(E),"HEAPU32",m.colors())}m.indices()&&n(R,"HEAPU16",m.indices());return m.detach()};(function(m){m.vk=m.vk||[];m.vk.push(function(){function u(f){if(E[f])return E[f];var p=ca(f)+1,t=m._malloc(p);ea(f,t,p);return E[f]=t}function B(f){f._colorPtr=
O(f.color);f._foregroundColorPtr=0;f._backgroundColorPtr=0;f.foregroundColor&&(f._foregroundColorPtr=O(f.foregroundColor,R));f.backgroundColor&&(f._backgroundColorPtr=O(f.backgroundColor,Y));if(Array.isArray(f.fontFamilies)&&f.fontFamilies.length){var p;if((p=f.fontFamilies)&&p.length){for(var t=[],x=0;x<p.length;x++){var D=u(p[x]);t.push(D)}p=n(t,"HEAPU32")}else p=0;f._fontFamiliesPtr=p;f._fontFamiliesLen=f.fontFamilies.length}else f._fontFamiliesPtr=0,f._fontFamiliesLen=0}m.Paragraph.prototype.getRectsForRange=
function(f,p,t,x){f=this._getRectsForRange(f,p,t,x);if(!f||!f.length)return[];p=[];for(t=0;t<f.length;t+=5)x=m.LTRBRect(f[t],f[t+1],f[t+2],f[t+3]),x.direction=0===f[t+4]?m.TextDirection.RTL:m.TextDirection.LTR,p.push(x);m._free(f.byteOffset);return p};m.ParagraphStyle=function(f){f.disableHinting=f.disableHinting||!1;if(f.ellipsis){var p=f.ellipsis;f._ellipsisPtr=u(p);f._ellipsisLen=ca(p)+1}else f._ellipsisPtr=0,f._ellipsisLen=0;f.heightMultiplier=f.heightMultiplier||0;f.maxLines=f.maxLines||0;f.textAlign=
f.textAlign||m.TextAlign.Start;f.textDirection=f.textDirection||m.TextDirection.LTR;f.textStyle=m.TextStyle(f.textStyle);return f};m.TextStyle=function(f){f.color||(f.color=m.BLACK);f.decoration=f.decoration||0;f.decorationThickness=f.decorationThickness||0;f.fontSize=f.fontSize||0;var p=f.fontStyle;p=p||{};void 0===p.weight&&(p.weight=m.FontWeight.Normal);p.width=p.width||m.FontWidth.Normal;p.slant=p.slant||m.FontSlant.Upright;f.fontStyle=p;return f};var E={},R=m._malloc(16),Y=m._malloc(16);m.ParagraphBuilder.Make=
function(f,p){B(f.textStyle);p=m.ParagraphBuilder._Make(f,p);m._free(f.textStyle._fontFamiliesPtr);return p};m.ParagraphBuilder.prototype.pushStyle=function(f){B(f);this._pushStyle(f);m._free(f._fontFamiliesPtr)}})})(g);a.MakeManagedAnimation=function(m,u){if(!a._MakeManagedAnimation)throw"Not compiled with MakeManagedAnimation";if(!u)return a._MakeManagedAnimation(m,0,0,0,0);for(var B=[],E=[],R=[],Y=Object.keys(u||{}),f=0;f<Y.length;f++){var p=Y[f],t=new Uint8Array(u[p]),x=a._malloc(t.byteLength);
a.HEAPU8.set(t,x);E.push(x);R.push(t.byteLength);t=ca(p)+1;x=a._malloc(t);ea(p,x,t);B.push(x)}u=n(B,"HEAPU32");E=n(E,"HEAPU32");R=n(R,"HEAPU32");m=a._MakeManagedAnimation(m,Y.length,u,E,R);a._free(u);a._free(E);a._free(R);return m};(function(m){m.vk=m.vk||[];m.vk.push(function(){m.ManagedAnimation.prototype.setColor=function(u,B){B=O(B);this._setColor(u,B)}})})(g);a.MakeParticles=function(m,u){if(!a._MakeParticles)throw"Not compiled with MakeParticles";if(!u)return a._MakeParticles(m,0,0,0,0);for(var B=
[],E=[],R=[],Y=Object.keys(u||{}),f=0;f<Y.length;f++){var p=Y[f],t=new Uint8Array(u[p]),x=a._malloc(t.byteLength);a.HEAPU8.set(t,x);E.push(x);R.push(t.byteLength);t=ca(p)+1;x=a._malloc(t);ea(p,x,t);B.push(x)}u=n(B,"HEAPU32");E=n(E,"HEAPU32");R=n(R,"HEAPU32");m=a._MakeParticles(m,Y.length,u,E,R);a._free(u);a._free(E);a._free(R);return m};a.vk=a.vk||[];a.vk.push(function(){a.SkParticleEffect.prototype.effectUniforms=function(){var m=this._effectUniformPtr(),u=this.getEffectUniformFloatCount();return!m||
0>=u?new Float32Array:new Float32Array(a.HEAPU8.buffer,m,u)};a.SkParticleEffect.prototype.particleUniforms=function(){var m=this._particleUniformPtr(),u=this.getParticleUniformFloatCount();return!m||0>=u?new Float32Array:new Float32Array(a.HEAPU8.buffer,m,u)}});a.vk=a.vk||[];a.vk.push(function(){a.SkPath.prototype.op=function(m,u){return this._op(m,u)?this:null};a.SkPath.prototype.simplify=function(){return this._simplify()?this:null}});a.vk=a.vk||[];a.vk.push(function(){a.SkCanvas.prototype.drawText=
function(m,u,B,E,R){if("string"===typeof m){var Y=ca(m),f=a._malloc(Y+1);ea(m,f,Y+1);this._drawSimpleText(f,Y,u,B,R,E)}else this._drawShapedText(m,u,B,E)};a.SkFont.prototype.getWidths=function(m){var u=m.length+1,B=ca(m)+1,E=a._malloc(B);ea(m,E,B);m=a._malloc(4*u);if(!this._getWidths(E,B,u,m))return a._free(E),a._free(m),null;u=new Float32Array(a.HEAPU8.buffer,m,u);u=Array.from(u);a._free(E);a._free(m);return u};a.SkFontMgr.FromData=function(){if(!arguments.length)return null;var m=arguments;1===
m.length&&Array.isArray(m[0])&&(m=arguments[0]);if(!m.length)return null;for(var u=[],B=[],E=0;E<m.length;E++){var R=new Uint8Array(m[E]),Y=n(R,"HEAPU8");u.push(Y);B.push(R.byteLength)}u=n(u,"HEAPU32");B=n(B,"HEAPU32");m=a.SkFontMgr._fromData(u,B,m.length);a._free(u);a._free(B);return m};a.SkFontMgr.prototype.MakeTypefaceFromData=function(m){m=new Uint8Array(m);var u=n(m,"HEAPU8");return(m=this._makeTypefaceFromData(u,m.byteLength))?m:null};a.SkTextBlob.MakeOnPath=function(m,u,B,E){if(m&&m.length&&
u&&u.countPoints()){if(1===u.countPoints())return this.MakeFromText(m,B);E||(E=0);var R=B.getWidths(m),Y=new a.RSXFormBuilder;u=new a.SkPathMeasure(u,!1,1);for(var f=0;f<m.length;f++){var p=R[f];E+=p/2;if(E>u.getLength()){if(!u.nextContour()){m=m.substring(0,f);break}E=p/2}var t=u.getPosTan(E),x=t[2],D=t[3];Y.push(x,D,t[0]-p/2*x,t[1]-p/2*D);E+=p/2}m=this.MakeFromRSXform(m,Y,B);Y.delete();u.delete();return m}};a.SkTextBlob.MakeFromRSXform=function(m,u,B){var E=ca(m)+1,R=a._malloc(E);ea(m,R,E);m=u.build();
B=a.SkTextBlob._MakeFromRSXform(R,E-1,m,B);if(!B)return null;var Y=B.delete.bind(B);B.delete=function(){a._free(R);Y()};return B};a.SkTextBlob.MakeFromText=function(m,u){var B=ca(m)+1,E=a._malloc(B);ea(m,E,B);m=a.SkTextBlob._MakeFromText(E,B-1,u);if(!m)return null;var R=m.delete.bind(m);m.delete=function(){a._free(E);R()};return m}});a.vk=a.vk||[];a.vk.push(function(){a.MakeSkPicture=function(m){m=new Uint8Array(m);var u=a._malloc(m.byteLength);a.HEAPU8.set(m,u);return(m=a._MakeSkPicture(u,m.byteLength))?
m:null};a.SkPicture.prototype.saveAsFile=function(m){var u=this.serialize();if(u){var B=a.getSkDataBytes(u);ba(B,m);u.delete()}}});a.vk=a.vk||[];a.vk.push(function(){a.SkRuntimeEffect.prototype.makeShader=function(m,u,B){var E=n(m,"HEAPF32");B=z(B);return this._makeShader(E,4*m.length,!!u,B)};a.SkRuntimeEffect.prototype.makeShaderWithChildren=function(m,u,B,E){var R=n(m,"HEAPF32");E=z(E);for(var Y=[],f=0;f<B.length;f++)Y.push(B[f].rk.yk);B=n(Y,"HEAPU32");return this._makeShaderWithChildren(R,4*m.length,
!!u,B,Y.length,E)}});(function(){function m(K){for(var l=0;l<K.length;l++)if(void 0!==K[l]&&!Number.isFinite(K[l]))return!1;return!0}function u(K){var l=a.getColorComponents(K);K=l[0];var r=l[1],y=l[2];l=l[3];if(1===l)return K=K.toString(16).toLowerCase(),r=r.toString(16).toLowerCase(),y=y.toString(16).toLowerCase(),K=1===K.length?"0"+K:K,r=1===r.length?"0"+r:r,y=1===y.length?"0"+y:y,"#"+K+r+y;l=0===l||1===l?l:l.toFixed(8);return"rgba("+K+", "+r+", "+y+", "+l+")"}function B(K){return a.parseColorString(K,
ka)}function E(K){K=ra.exec(K);if(!K)return null;var l=parseFloat(K[4]),r=16;switch(K[5]){case "em":case "rem":r=16*l;break;case "pt":r=4*l/3;break;case "px":r=l;break;case "pc":r=16*l;break;case "in":r=96*l;break;case "cm":r=96*l/2.54;break;case "mm":r=96/25.4*l;break;case "q":r=96/25.4/4*l;break;case "%":r=16/75*l}return{style:K[1],variant:K[2],weight:K[3],sizePx:r,family:K[6].trim()}}function R(K){this.sk=K;this.uk=new a.SkPaint;this.uk.setAntiAlias(!0);this.uk.setStrokeMiter(10);this.uk.setStrokeCap(a.StrokeCap.Butt);
this.uk.setStrokeJoin(a.StrokeJoin.Miter);this.Fl="10px monospace";this.Yk=new a.SkFont(null,10);this.Yk.setSubpixel(!0);this.Ik=this.Qk=a.BLACK;this.hl=0;this.wl=a.TRANSPARENT;this.jl=this.il=0;this.xl=this.Uk=1;this.vl=0;this.gl=[];this.tk=a.BlendMode.SrcOver;this.Zk=a.FilterQuality.Low;this.ul=!0;this.uk.setStrokeWidth(this.xl);this.uk.setBlendMode(this.tk);this.xk=new a.SkPath;this.zk=a.SkMatrix.identity();this.cm=[];this.nl=[];this.Vk=function(){this.xk.delete();this.uk.delete();this.Yk.delete();
this.nl.forEach(function(l){l.Vk()})};Object.defineProperty(this,"currentTransform",{enumerable:!0,get:function(){return{a:this.zk[0],c:this.zk[1],e:this.zk[2],b:this.zk[3],d:this.zk[4],f:this.zk[5]}},set:function(l){l.a&&this.setTransform(l.a,l.b,l.c,l.d,l.e,l.f)}});Object.defineProperty(this,"fillStyle",{enumerable:!0,get:function(){return c(this.Ik)?u(this.Ik):this.Ik},set:function(l){"string"===typeof l?this.Ik=B(l):l.fl&&(this.Ik=l)}});Object.defineProperty(this,"font",{enumerable:!0,get:function(){return this.Fl},
set:function(l){var r=E(l),y=r.family;r.typeface=ta[y]?ta[y][(r.style||"normal")+"|"+(r.variant||"normal")+"|"+(r.weight||"normal")]||ta[y]["*"]:null;r&&(this.Yk.setSize(r.sizePx),this.Yk.setTypeface(r.typeface),this.Fl=l)}});Object.defineProperty(this,"globalAlpha",{enumerable:!0,get:function(){return this.Uk},set:function(l){!isFinite(l)||0>l||1<l||(this.Uk=l)}});Object.defineProperty(this,"globalCompositeOperation",{enumerable:!0,get:function(){switch(this.tk){case a.BlendMode.SrcOver:return"source-over";
case a.BlendMode.DstOver:return"destination-over";case a.BlendMode.Src:return"copy";case a.BlendMode.Dst:return"destination";case a.BlendMode.Clear:return"clear";case a.BlendMode.SrcIn:return"source-in";case a.BlendMode.DstIn:return"destination-in";case a.BlendMode.SrcOut:return"source-out";case a.BlendMode.DstOut:return"destination-out";case a.BlendMode.SrcATop:return"source-atop";case a.BlendMode.DstATop:return"destination-atop";case a.BlendMode.Xor:return"xor";case a.BlendMode.Plus:return"lighter";
case a.BlendMode.Multiply:return"multiply";case a.BlendMode.Screen:return"screen";case a.BlendMode.Overlay:return"overlay";case a.BlendMode.Darken:return"darken";case a.BlendMode.Lighten:return"lighten";case a.BlendMode.ColorDodge:return"color-dodge";case a.BlendMode.ColorBurn:return"color-burn";case a.BlendMode.HardLight:return"hard-light";case a.BlendMode.SoftLight:return"soft-light";case a.BlendMode.Difference:return"difference";case a.BlendMode.Exclusion:return"exclusion";case a.BlendMode.Hue:return"hue";
case a.BlendMode.Saturation:return"saturation";case a.BlendMode.Color:return"color";case a.BlendMode.Luminosity:return"luminosity"}},set:function(l){switch(l){case "source-over":this.tk=a.BlendMode.SrcOver;break;case "destination-over":this.tk=a.BlendMode.DstOver;break;case "copy":this.tk=a.BlendMode.Src;break;case "destination":this.tk=a.BlendMode.Dst;break;case "clear":this.tk=a.BlendMode.Clear;break;case "source-in":this.tk=a.BlendMode.SrcIn;break;case "destination-in":this.tk=a.BlendMode.DstIn;
break;case "source-out":this.tk=a.BlendMode.SrcOut;break;case "destination-out":this.tk=a.BlendMode.DstOut;break;case "source-atop":this.tk=a.BlendMode.SrcATop;break;case "destination-atop":this.tk=a.BlendMode.DstATop;break;case "xor":this.tk=a.BlendMode.Xor;break;case "lighter":this.tk=a.BlendMode.Plus;break;case "plus-lighter":this.tk=a.BlendMode.Plus;break;case "plus-darker":throw"plus-darker is not supported";case "multiply":this.tk=a.BlendMode.Multiply;break;case "screen":this.tk=a.BlendMode.Screen;
break;case "overlay":this.tk=a.BlendMode.Overlay;break;case "darken":this.tk=a.BlendMode.Darken;break;case "lighten":this.tk=a.BlendMode.Lighten;break;case "color-dodge":this.tk=a.BlendMode.ColorDodge;break;case "color-burn":this.tk=a.BlendMode.ColorBurn;break;case "hard-light":this.tk=a.BlendMode.HardLight;break;case "soft-light":this.tk=a.BlendMode.SoftLight;break;case "difference":this.tk=a.BlendMode.Difference;break;case "exclusion":this.tk=a.BlendMode.Exclusion;break;case "hue":this.tk=a.BlendMode.Hue;
break;case "saturation":this.tk=a.BlendMode.Saturation;break;case "color":this.tk=a.BlendMode.Color;break;case "luminosity":this.tk=a.BlendMode.Luminosity;break;default:return}this.uk.setBlendMode(this.tk)}});Object.defineProperty(this,"imageSmoothingEnabled",{enumerable:!0,get:function(){return this.ul},set:function(l){this.ul=!!l}});Object.defineProperty(this,"imageSmoothingQuality",{enumerable:!0,get:function(){switch(this.Zk){case a.FilterQuality.Low:return"low";case a.FilterQuality.Medium:return"medium";
case a.FilterQuality.High:return"high"}},set:function(l){switch(l){case "low":this.Zk=a.FilterQuality.Low;break;case "medium":this.Zk=a.FilterQuality.Medium;break;case "high":this.Zk=a.FilterQuality.High}}});Object.defineProperty(this,"lineCap",{enumerable:!0,get:function(){switch(this.uk.getStrokeCap()){case a.StrokeCap.Butt:return"butt";case a.StrokeCap.Round:return"round";case a.StrokeCap.Square:return"square"}},set:function(l){switch(l){case "butt":this.uk.setStrokeCap(a.StrokeCap.Butt);break;
case "round":this.uk.setStrokeCap(a.StrokeCap.Round);break;case "square":this.uk.setStrokeCap(a.StrokeCap.Square)}}});Object.defineProperty(this,"lineDashOffset",{enumerable:!0,get:function(){return this.vl},set:function(l){isFinite(l)&&(this.vl=l)}});Object.defineProperty(this,"lineJoin",{enumerable:!0,get:function(){switch(this.uk.getStrokeJoin()){case a.StrokeJoin.Miter:return"miter";case a.StrokeJoin.Round:return"round";case a.StrokeJoin.Bevel:return"bevel"}},set:function(l){switch(l){case "miter":this.uk.setStrokeJoin(a.StrokeJoin.Miter);
break;case "round":this.uk.setStrokeJoin(a.StrokeJoin.Round);break;case "bevel":this.uk.setStrokeJoin(a.StrokeJoin.Bevel)}}});Object.defineProperty(this,"lineWidth",{enumerable:!0,get:function(){return this.uk.getStrokeWidth()},set:function(l){0>=l||!l||(this.xl=l,this.uk.setStrokeWidth(l))}});Object.defineProperty(this,"miterLimit",{enumerable:!0,get:function(){return this.uk.getStrokeMiter()},set:function(l){0>=l||!l||this.uk.setStrokeMiter(l)}});Object.defineProperty(this,"shadowBlur",{enumerable:!0,
get:function(){return this.hl},set:function(l){0>l||!isFinite(l)||(this.hl=l)}});Object.defineProperty(this,"shadowColor",{enumerable:!0,get:function(){return u(this.wl)},set:function(l){this.wl=B(l)}});Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,get:function(){return this.il},set:function(l){isFinite(l)&&(this.il=l)}});Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,get:function(){return this.jl},set:function(l){isFinite(l)&&(this.jl=l)}});Object.defineProperty(this,"strokeStyle",
{enumerable:!0,get:function(){return u(this.Qk)},set:function(l){"string"===typeof l?this.Qk=B(l):l.fl&&(this.Qk=l)}});this.arc=function(l,r,y,C,F,J){I(this.xk,l,r,y,y,0,C,F,J)};this.arcTo=function(l,r,y,C,F){t(this.xk,l,r,y,C,F)};this.beginPath=function(){this.xk.delete();this.xk=new a.SkPath};this.bezierCurveTo=function(l,r,y,C,F,J){var P=this.xk;m([l,r,y,C,F,J])&&(P.isEmpty()&&P.moveTo(l,r),P.cubicTo(l,r,y,C,F,J))};this.clearRect=function(l,r,y,C){this.uk.setStyle(a.PaintStyle.Fill);this.uk.setBlendMode(a.BlendMode.Clear);
this.sk.drawRect(a.XYWHRect(l,r,y,C),this.uk);this.uk.setBlendMode(this.tk)};this.clip=function(l,r){"string"===typeof l?(r=l,l=this.xk):l&&l.Pl&&(l=l.Bk);l||(l=this.xk);l=l.copy();r&&"evenodd"===r.toLowerCase()?l.setFillType(a.FillType.EvenOdd):l.setFillType(a.FillType.Winding);this.sk.clipPath(l,a.ClipOp.Intersect,!0);l.delete()};this.closePath=function(){x(this.xk)};this.createImageData=function(){if(1===arguments.length){var l=arguments[0];return new f(new Uint8ClampedArray(4*l.width*l.height),
l.width,l.height)}if(2===arguments.length){l=arguments[0];var r=arguments[1];return new f(new Uint8ClampedArray(4*l*r),l,r)}throw"createImageData expects 1 or 2 arguments, got "+arguments.length;};this.createLinearGradient=function(l,r,y,C){if(m(arguments)){var F=new p(l,r,y,C);this.nl.push(F);return F}};this.createPattern=function(l,r){l=new W(l,r);this.nl.push(l);return l};this.createRadialGradient=function(l,r,y,C,F,J){if(m(arguments)){var P=new Z(l,r,y,C,F,J);this.nl.push(P);return P}};this.om=
function(){var l=this.El();this.ul?l.setFilterQuality(this.Zk):l.setFilterQuality(a.FilterQuality.None);return l};this.drawImage=function(l){var r=this.om();if(3===arguments.length||5===arguments.length)var y=a.XYWHRect(arguments[1],arguments[2],arguments[3]||l.width(),arguments[4]||l.height()),C=a.XYWHRect(0,0,l.width(),l.height());else if(9===arguments.length)y=a.XYWHRect(arguments[5],arguments[6],arguments[7],arguments[8]),C=a.XYWHRect(arguments[1],arguments[2],arguments[3],arguments[4]);else throw"invalid number of args for drawImage, need 3, 5, or 9; got "+
arguments.length;this.sk.drawImageRect(l,C,y,r,!1);r.dispose()};this.ellipse=function(l,r,y,C,F,J,P,da){I(this.xk,l,r,y,C,F,J,P,da)};this.El=function(){var l=this.uk.copy();l.setStyle(a.PaintStyle.Fill);if(c(this.Ik)){var r=a.multiplyByAlpha(this.Ik,this.Uk);l.setColor(r)}else r=this.Ik.fl(this.zk),l.setColor(a.Color(0,0,0,this.Uk)),l.setShader(r);l.dispose=function(){this.delete()};return l};this.fill=function(l,r){"string"===typeof l?(r=l,l=this.xk):l&&l.Pl&&(l=l.Bk);if("evenodd"===r)this.xk.setFillType(a.FillType.EvenOdd);
else{if("nonzero"!==r&&r)throw"invalid fill rule";this.xk.setFillType(a.FillType.Winding)}l||(l=this.xk);r=this.El();var y=this.kl(r);y&&(this.sk.save(),this.dl(),this.sk.drawPath(l,y),this.sk.restore(),y.dispose());this.sk.drawPath(l,r);r.dispose()};this.fillRect=function(l,r,y,C){var F=this.El(),J=this.kl(F);J&&(this.sk.save(),this.dl(),this.sk.drawRect(a.XYWHRect(l,r,y,C),J),this.sk.restore(),J.dispose());this.sk.drawRect(a.XYWHRect(l,r,y,C),F);F.dispose()};this.fillText=function(l,r,y){var C=
this.El();l=a.SkTextBlob.MakeFromText(l,this.Yk);var F=this.kl(C);F&&(this.sk.save(),this.dl(),this.sk.drawTextBlob(l,r,y,F),this.sk.restore(),F.dispose());this.sk.drawTextBlob(l,r,y,C);l.delete();C.dispose()};this.getImageData=function(l,r,y,C){return(l=this.sk.readPixels(l,r,y,C))?new f(new Uint8ClampedArray(l.buffer),y,C):null};this.getLineDash=function(){return this.gl.slice()};this.dm=function(l){var r=a.SkMatrix.invert(this.zk);a.SkMatrix.mapPoints(r,l);return l};this.isPointInPath=function(l,
r,y){var C=arguments;if(3===C.length)var F=this.xk;else if(4===C.length)F=C[0],l=C[1],r=C[2],y=C[3];else throw"invalid arg count, need 3 or 4, got "+C.length;if(!isFinite(l)||!isFinite(r))return!1;y=y||"nonzero";if("nonzero"!==y&&"evenodd"!==y)return!1;C=this.dm([l,r]);l=C[0];r=C[1];F.setFillType("nonzero"===y?a.FillType.Winding:a.FillType.EvenOdd);return F.contains(l,r)};this.isPointInStroke=function(l,r){var y=arguments;if(2===y.length)var C=this.xk;else if(3===y.length)C=y[0],l=y[1],r=y[2];else throw"invalid arg count, need 2 or 3, got "+
y.length;if(!isFinite(l)||!isFinite(r))return!1;y=this.dm([l,r]);l=y[0];r=y[1];C=C.copy();C.setFillType(a.FillType.Winding);C.stroke({width:this.lineWidth,miter_limit:this.miterLimit,cap:this.uk.getStrokeCap(),join:this.uk.getStrokeJoin(),precision:.3});y=C.contains(l,r);C.delete();return y};this.lineTo=function(l,r){T(this.xk,l,r)};this.measureText=function(l){return{width:this.Yk.measureText(l)}};this.moveTo=function(l,r){var y=this.xk;m([l,r])&&y.moveTo(l,r)};this.putImageData=function(l,r,y,C,
F,J,P){if(m([r,y,C,F,J,P]))if(void 0===C)this.sk.writePixels(l.data,l.width,l.height,r,y);else if(C=C||0,F=F||0,J=J||l.width,P=P||l.height,0>J&&(C+=J,J=Math.abs(J)),0>P&&(F+=P,P=Math.abs(P)),0>C&&(J+=C,C=0),0>F&&(P+=F,F=0),!(0>=J||0>=P)){l=a.MakeImage(l.data,l.width,l.height,a.AlphaType.Unpremul,a.ColorType.RGBA_8888,a.SkColorSpace.SRGB);var da=a.XYWHRect(C,F,J,P);r=a.XYWHRect(r+C,y+F,J,P);y=a.SkMatrix.invert(this.zk);this.sk.save();this.sk.concat(y);this.sk.drawImageRect(l,da,r,null,!1);this.sk.restore();
l.delete()}};this.quadraticCurveTo=function(l,r,y,C){var F=this.xk;m([l,r,y,C])&&(F.isEmpty()&&F.moveTo(l,r),F.quadTo(l,r,y,C))};this.rect=function(l,r,y,C){var F=this.xk;m([l,r,y,C])&&F.addRect(l,r,l+y,r+C)};this.resetTransform=function(){this.xk.transform(this.zk);var l=a.SkMatrix.invert(this.zk);this.sk.concat(l);this.zk=this.sk.getTotalMatrix()};this.restore=function(){var l=this.cm.pop();if(l){var r=a.SkMatrix.multiply(this.zk,a.SkMatrix.invert(l.tm));this.xk.transform(r);this.uk.delete();this.uk=
l.Pm;this.gl=l.Km;this.xl=l.$m;this.Qk=l.Zm;this.Ik=l.fs;this.il=l.Xm;this.jl=l.Ym;this.hl=l.Um;this.wl=l.Wm;this.Uk=l.zm;this.tk=l.Am;this.vl=l.Lm;this.ul=l.Im;this.Zk=l.Jm;this.Fl=l.ym;this.sk.restore();this.zk=this.sk.getTotalMatrix()}};this.rotate=function(l){if(isFinite(l)){var r=a.SkMatrix.rotated(-l);this.xk.transform(r);this.sk.rotate(l/Math.PI*180,0,0);this.zk=this.sk.getTotalMatrix()}};this.save=function(){if(this.Ik.el){var l=this.Ik.el();this.nl.push(l)}else l=this.Ik;if(this.Qk.el){var r=
this.Qk.el();this.nl.push(r)}else r=this.Qk;this.cm.push({tm:this.zk.slice(),Km:this.gl.slice(),$m:this.xl,Zm:r,fs:l,Xm:this.il,Ym:this.jl,Um:this.hl,Wm:this.wl,zm:this.Uk,Lm:this.vl,Am:this.tk,Im:this.ul,Jm:this.Zk,Pm:this.uk.copy(),ym:this.Fl});this.sk.save()};this.scale=function(l,r){if(m(arguments)){var y=a.SkMatrix.scaled(1/l,1/r);this.xk.transform(y);this.sk.scale(l,r);this.zk=this.sk.getTotalMatrix()}};this.setLineDash=function(l){for(var r=0;r<l.length;r++)if(!isFinite(l[r])||0>l[r])return;
1===l.length%2&&Array.prototype.push.apply(l,l);this.gl=l};this.setTransform=function(l,r,y,C,F,J){m(arguments)&&(this.resetTransform(),this.transform(l,r,y,C,F,J))};this.dl=function(){var l=a.SkMatrix.invert(this.zk);this.sk.concat(l);this.sk.concat(a.SkMatrix.translated(this.il,this.jl));this.sk.concat(this.zk)};this.kl=function(l){var r=a.multiplyByAlpha(this.wl,this.Uk);if(!a.getColorComponents(r)[3]||!(this.hl||this.jl||this.il))return null;l=l.copy();l.setColor(r);var y=a.SkMaskFilter.MakeBlur(a.BlurStyle.Normal,
this.hl/2,!1);l.setMaskFilter(y);l.dispose=function(){y.delete();this.delete()};return l};this.Rl=function(){var l=this.uk.copy();l.setStyle(a.PaintStyle.Stroke);if(c(this.Qk)){var r=a.multiplyByAlpha(this.Qk,this.Uk);l.setColor(r)}else r=this.Qk.fl(this.zk),l.setColor(a.Color(0,0,0,this.Uk)),l.setShader(r);l.setStrokeWidth(this.xl);if(this.gl.length){var y=a.SkPathEffect.MakeDash(this.gl,this.vl);l.setPathEffect(y)}l.dispose=function(){y&&y.delete();this.delete()};return l};this.stroke=function(l){l=
l?l.Bk:this.xk;var r=this.Rl(),y=this.kl(r);y&&(this.sk.save(),this.dl(),this.sk.drawPath(l,y),this.sk.restore(),y.dispose());this.sk.drawPath(l,r);r.dispose()};this.strokeRect=function(l,r,y,C){var F=this.Rl(),J=this.kl(F);J&&(this.sk.save(),this.dl(),this.sk.drawRect(a.XYWHRect(l,r,y,C),J),this.sk.restore(),J.dispose());this.sk.drawRect(a.XYWHRect(l,r,y,C),F);F.dispose()};this.strokeText=function(l,r,y){var C=this.Rl();l=a.SkTextBlob.MakeFromText(l,this.Yk);var F=this.kl(C);F&&(this.sk.save(),this.dl(),
this.sk.drawTextBlob(l,r,y,F),this.sk.restore(),F.dispose());this.sk.drawTextBlob(l,r,y,C);l.delete();C.dispose()};this.translate=function(l,r){if(m(arguments)){var y=a.SkMatrix.translated(-l,-r);this.xk.transform(y);this.sk.translate(l,r);this.zk=this.sk.getTotalMatrix()}};this.transform=function(l,r,y,C,F,J){l=[l,y,F,r,C,J,0,0,1];r=a.SkMatrix.invert(l);this.xk.transform(r);this.sk.concat(l);this.zk=this.sk.getTotalMatrix()};this.addHitRegion=function(){};this.clearHitRegions=function(){};this.drawFocusIfNeeded=
function(){};this.removeHitRegion=function(){};this.scrollPathIntoView=function(){};Object.defineProperty(this,"canvas",{value:null,writable:!1})}function Y(K){this.Sl=K;this.Xk=new R(K.getCanvas());this.Gl=[];this.lm=a.SkFontMgr.RefDefault();this.decodeImage=function(l){l=a.MakeImageFromEncoded(l);if(!l)throw"Invalid input";this.Gl.push(l);return l};this.loadFont=function(l,r){l=this.lm.MakeTypefaceFromData(l);if(!l)return null;this.Gl.push(l);var y=(r.style||"normal")+"|"+(r.variant||"normal")+
"|"+(r.weight||"normal");r=r.family;ta[r]||(ta[r]={"*":l});ta[r][y]=l};this.makePath2D=function(l){l=new V(l);this.Gl.push(l.Bk);return l};this.getContext=function(l){return"2d"===l?this.Xk:null};this.toDataURL=function(l,r){this.Sl.flush();var y=this.Sl.makeImageSnapshot();if(y){l=l||"image/png";var C=a.ImageFormat.PNG;"image/jpeg"===l&&(C=a.ImageFormat.JPEG);if(r=y.encodeToData(C,r||.92)){r=a.getSkDataBytes(r);l="data:"+l+";base64,";if(sa)r=Buffer.from(r).toString("base64");else{y=0;C=r.length;
for(var F="",J;y<C;)J=r.slice(y,Math.min(y+32768,C)),F+=String.fromCharCode.apply(null,J),y+=32768;r=btoa(F)}return l+r}}};this.dispose=function(){this.Xk.Vk();this.Gl.forEach(function(l){l.delete()});this.Sl.dispose()}}function f(K,l,r){if(!l||0===r)throw"invalid dimensions, width and height must be non-zero";if(K.length%4)throw"arr must be a multiple of 4";r=r||K.length/(4*l);Object.defineProperty(this,"data",{value:K,writable:!1});Object.defineProperty(this,"height",{value:r,writable:!1});Object.defineProperty(this,
"width",{value:l,writable:!1})}function p(K,l,r,y){this.Dk=null;this.Lk=[];this.Gk=[];this.addColorStop=function(C,F){if(0>C||1<C||!isFinite(C))throw"offset must be between 0 and 1 inclusively";F=B(F);var J=this.Gk.indexOf(C);if(-1!==J)this.Lk[J]=F;else{for(J=0;J<this.Gk.length&&!(this.Gk[J]>C);J++);this.Gk.splice(J,0,C);this.Lk.splice(J,0,F)}};this.el=function(){var C=new p(K,l,r,y);C.Lk=this.Lk.slice();C.Gk=this.Gk.slice();return C};this.Vk=function(){this.Dk&&(this.Dk.delete(),this.Dk=null)};this.fl=
function(C){var F=[K,l,r,y];a.SkMatrix.mapPoints(C,F);C=F[0];var J=F[1],P=F[2];F=F[3];this.Vk();return this.Dk=a.SkShader.MakeLinearGradient([C,J],[P,F],this.Lk,this.Gk,a.TileMode.Clamp)}}function t(K,l,r,y,C,F){if(m([l,r,y,C,F])){if(0>F)throw"radii cannot be negative";K.isEmpty()&&K.moveTo(l,r);K.arcTo(l,r,y,C,F)}}function x(K){if(!K.isEmpty()){var l=K.getBounds();(l.fBottom-l.fTop||l.fRight-l.fLeft)&&K.close()}}function D(K,l,r,y,C,F,J){J=(J-F)/Math.PI*180;F=F/Math.PI*180;l=a.LTRBRect(l-y,r-C,l+
y,r+C);1E-5>Math.abs(Math.abs(J)-360)?(r=J/2,K.arcTo(l,F,r,!1),K.arcTo(l,F+r,r,!1)):K.arcTo(l,F,J,!1)}function I(K,l,r,y,C,F,J,P,da){if(m([l,r,y,C,F,J,P])){if(0>y||0>C)throw"radii cannot be negative";var ja=2*Math.PI,ua=J%ja;0>ua&&(ua+=ja);var va=ua-J;J=ua;P+=va;!da&&P-J>=ja?P=J+ja:da&&J-P>=ja?P=J-ja:!da&&J>P?P=J+(ja-(J-P)%ja):da&&J<P&&(P=J-(ja-(P-J)%ja));F?(da=a.SkMatrix.rotated(F,l,r),F=a.SkMatrix.rotated(-F,l,r),K.transform(F),D(K,l,r,y,C,J,P),K.transform(da)):D(K,l,r,y,C,J,P)}}function T(K,l,
r){m([l,r])&&(K.isEmpty()&&K.moveTo(l,r),K.lineTo(l,r))}function V(K){this.Bk=null;"string"===typeof K?this.Bk=a.MakePathFromSVGString(K):K&&K.Pl?this.Bk=K.Bk.copy():this.Bk=new a.SkPath;this.Pl=function(){return this.Bk};this.addPath=function(l,r){r||(r={a:1,c:0,e:0,b:0,d:1,f:0});this.Bk.addPath(l.Bk,[r.a,r.c,r.e,r.b,r.d,r.f])};this.arc=function(l,r,y,C,F,J){I(this.Bk,l,r,y,y,0,C,F,J)};this.arcTo=function(l,r,y,C,F){t(this.Bk,l,r,y,C,F)};this.bezierCurveTo=function(l,r,y,C,F,J){var P=this.Bk;m([l,
r,y,C,F,J])&&(P.isEmpty()&&P.moveTo(l,r),P.cubicTo(l,r,y,C,F,J))};this.closePath=function(){x(this.Bk)};this.ellipse=function(l,r,y,C,F,J,P,da){I(this.Bk,l,r,y,C,F,J,P,da)};this.lineTo=function(l,r){T(this.Bk,l,r)};this.moveTo=function(l,r){var y=this.Bk;m([l,r])&&y.moveTo(l,r)};this.quadraticCurveTo=function(l,r,y,C){var F=this.Bk;m([l,r,y,C])&&(F.isEmpty()&&F.moveTo(l,r),F.quadTo(l,r,y,C))};this.rect=function(l,r,y,C){var F=this.Bk;m([l,r,y,C])&&F.addRect(l,r,l+y,r+C)}}function W(K,l){this.Dk=null;
this.nm=K;this._transform=a.SkMatrix.identity();""===l&&(l="repeat");switch(l){case "repeat-x":this.ll=a.TileMode.Repeat;this.ml=a.TileMode.Decal;break;case "repeat-y":this.ll=a.TileMode.Decal;this.ml=a.TileMode.Repeat;break;case "repeat":this.ml=this.ll=a.TileMode.Repeat;break;case "no-repeat":this.ml=this.ll=a.TileMode.Decal;break;default:throw"invalid repetition mode "+l;}this.setTransform=function(r){r=[r.a,r.c,r.e,r.b,r.d,r.f,0,0,1];m(r)&&(this._transform=r)};this.el=function(){var r=new W;r.ll=
this.ll;r.ml=this.ml;return r};this.Vk=function(){this.Dk&&(this.Dk.delete(),this.Dk=null)};this.fl=function(){this.Vk();return this.Dk=this.nm.makeShader(this.ll,this.ml,this._transform)}}function Z(K,l,r,y,C,F){this.Dk=null;this.Lk=[];this.Gk=[];this.addColorStop=function(J,P){if(0>J||1<J||!isFinite(J))throw"offset must be between 0 and 1 inclusively";P=B(P);var da=this.Gk.indexOf(J);if(-1!==da)this.Lk[da]=P;else{for(da=0;da<this.Gk.length&&!(this.Gk[da]>J);da++);this.Gk.splice(da,0,J);this.Lk.splice(da,
0,P)}};this.el=function(){var J=new Z(K,l,r,y,C,F);J.Lk=this.Lk.slice();J.Gk=this.Gk.slice();return J};this.Vk=function(){this.Dk&&(this.Dk.delete(),this.Dk=null)};this.fl=function(J){var P=[K,l,y,C];a.SkMatrix.mapPoints(J,P);var da=P[0],ja=P[1],ua=P[2];P=P[3];var va=(Math.abs(J[0])+Math.abs(J[4]))/2;J=r*va;va*=F;this.Vk();return this.Dk=a.SkShader.MakeTwoPointConicalGradient([da,ja],J,[ua,P],va,this.Lk,this.Gk,a.TileMode.Clamp)}}a._testing={};var ka={aliceblue:Float32Array.of(.941,.973,1,1),antiquewhite:Float32Array.of(.98,
.922,.843,1),aqua:Float32Array.of(0,1,1,1),aquamarine:Float32Array.of(.498,1,.831,1),azure:Float32Array.of(.941,1,1,1),beige:Float32Array.of(.961,.961,.863,1),bisque:Float32Array.of(1,.894,.769,1),black:Float32Array.of(0,0,0,1),blanchedalmond:Float32Array.of(1,.922,.804,1),blue:Float32Array.of(0,0,1,1),blueviolet:Float32Array.of(.541,.169,.886,1),brown:Float32Array.of(.647,.165,.165,1),burlywood:Float32Array.of(.871,.722,.529,1),cadetblue:Float32Array.of(.373,.62,.627,1),chartreuse:Float32Array.of(.498,
1,0,1),chocolate:Float32Array.of(.824,.412,.118,1),coral:Float32Array.of(1,.498,.314,1),cornflowerblue:Float32Array.of(.392,.584,.929,1),cornsilk:Float32Array.of(1,.973,.863,1),crimson:Float32Array.of(.863,.078,.235,1),cyan:Float32Array.of(0,1,1,1),darkblue:Float32Array.of(0,0,.545,1),darkcyan:Float32Array.of(0,.545,.545,1),darkgoldenrod:Float32Array.of(.722,.525,.043,1),darkgray:Float32Array.of(.663,.663,.663,1),darkgreen:Float32Array.of(0,.392,0,1),darkgrey:Float32Array.of(.663,.663,.663,1),darkkhaki:Float32Array.of(.741,
.718,.42,1),darkmagenta:Float32Array.of(.545,0,.545,1),darkolivegreen:Float32Array.of(.333,.42,.184,1),darkorange:Float32Array.of(1,.549,0,1),darkorchid:Float32Array.of(.6,.196,.8,1),darkred:Float32Array.of(.545,0,0,1),darksalmon:Float32Array.of(.914,.588,.478,1),darkseagreen:Float32Array.of(.561,.737,.561,1),darkslateblue:Float32Array.of(.282,.239,.545,1),darkslategray:Float32Array.of(.184,.31,.31,1),darkslategrey:Float32Array.of(.184,.31,.31,1),darkturquoise:Float32Array.of(0,.808,.82,1),darkviolet:Float32Array.of(.58,
0,.827,1),deeppink:Float32Array.of(1,.078,.576,1),deepskyblue:Float32Array.of(0,.749,1,1),dimgray:Float32Array.of(.412,.412,.412,1),dimgrey:Float32Array.of(.412,.412,.412,1),dodgerblue:Float32Array.of(.118,.565,1,1),firebrick:Float32Array.of(.698,.133,.133,1),floralwhite:Float32Array.of(1,.98,.941,1),forestgreen:Float32Array.of(.133,.545,.133,1),fuchsia:Float32Array.of(1,0,1,1),gainsboro:Float32Array.of(.863,.863,.863,1),ghostwhite:Float32Array.of(.973,.973,1,1),gold:Float32Array.of(1,.843,0,1),goldenrod:Float32Array.of(.855,
.647,.125,1),gray:Float32Array.of(.502,.502,.502,1),green:Float32Array.of(0,.502,0,1),greenyellow:Float32Array.of(.678,1,.184,1),grey:Float32Array.of(.502,.502,.502,1),honeydew:Float32Array.of(.941,1,.941,1),hotpink:Float32Array.of(1,.412,.706,1),indianred:Float32Array.of(.804,.361,.361,1),indigo:Float32Array.of(.294,0,.51,1),ivory:Float32Array.of(1,1,.941,1),khaki:Float32Array.of(.941,.902,.549,1),lavender:Float32Array.of(.902,.902,.98,1),lavenderblush:Float32Array.of(1,.941,.961,1),lawngreen:Float32Array.of(.486,
.988,0,1),lemonchiffon:Float32Array.of(1,.98,.804,1),lightblue:Float32Array.of(.678,.847,.902,1),lightcoral:Float32Array.of(.941,.502,.502,1),lightcyan:Float32Array.of(.878,1,1,1),lightgoldenrodyellow:Float32Array.of(.98,.98,.824,1),lightgray:Float32Array.of(.827,.827,.827,1),lightgreen:Float32Array.of(.565,.933,.565,1),lightgrey:Float32Array.of(.827,.827,.827,1),lightpink:Float32Array.of(1,.714,.757,1),lightsalmon:Float32Array.of(1,.627,.478,1),lightseagreen:Float32Array.of(.125,.698,.667,1),lightskyblue:Float32Array.of(.529,
.808,.98,1),lightslategray:Float32Array.of(.467,.533,.6,1),lightslategrey:Float32Array.of(.467,.533,.6,1),lightsteelblue:Float32Array.of(.69,.769,.871,1),lightyellow:Float32Array.of(1,1,.878,1),lime:Float32Array.of(0,1,0,1),limegreen:Float32Array.of(.196,.804,.196,1),linen:Float32Array.of(.98,.941,.902,1),magenta:Float32Array.of(1,0,1,1),maroon:Float32Array.of(.502,0,0,1),mediumaquamarine:Float32Array.of(.4,.804,.667,1),mediumblue:Float32Array.of(0,0,.804,1),mediumorchid:Float32Array.of(.729,.333,
.827,1),mediumpurple:Float32Array.of(.576,.439,.859,1),mediumseagreen:Float32Array.of(.235,.702,.443,1),mediumslateblue:Float32Array.of(.482,.408,.933,1),mediumspringgreen:Float32Array.of(0,.98,.604,1),mediumturquoise:Float32Array.of(.282,.82,.8,1),mediumvioletred:Float32Array.of(.78,.082,.522,1),midnightblue:Float32Array.of(.098,.098,.439,1),mintcream:Float32Array.of(.961,1,.98,1),mistyrose:Float32Array.of(1,.894,.882,1),moccasin:Float32Array.of(1,.894,.71,1),navajowhite:Float32Array.of(1,.871,.678,
1),navy:Float32Array.of(0,0,.502,1),oldlace:Float32Array.of(.992,.961,.902,1),olive:Float32Array.of(.502,.502,0,1),olivedrab:Float32Array.of(.42,.557,.137,1),orange:Float32Array.of(1,.647,0,1),orangered:Float32Array.of(1,.271,0,1),orchid:Float32Array.of(.855,.439,.839,1),palegoldenrod:Float32Array.of(.933,.91,.667,1),palegreen:Float32Array.of(.596,.984,.596,1),paleturquoise:Float32Array.of(.686,.933,.933,1),palevioletred:Float32Array.of(.859,.439,.576,1),papayawhip:Float32Array.of(1,.937,.835,1),
peachpuff:Float32Array.of(1,.855,.725,1),peru:Float32Array.of(.804,.522,.247,1),pink:Float32Array.of(1,.753,.796,1),plum:Float32Array.of(.867,.627,.867,1),powderblue:Float32Array.of(.69,.878,.902,1),purple:Float32Array.of(.502,0,.502,1),rebeccapurple:Float32Array.of(.4,.2,.6,1),red:Float32Array.of(1,0,0,1),rosybrown:Float32Array.of(.737,.561,.561,1),royalblue:Float32Array.of(.255,.412,.882,1),saddlebrown:Float32Array.of(.545,.271,.075,1),salmon:Float32Array.of(.98,.502,.447,1),sandybrown:Float32Array.of(.957,
.643,.376,1),seagreen:Float32Array.of(.18,.545,.341,1),seashell:Float32Array.of(1,.961,.933,1),sienna:Float32Array.of(.627,.322,.176,1),silver:Float32Array.of(.753,.753,.753,1),skyblue:Float32Array.of(.529,.808,.922,1),slateblue:Float32Array.of(.416,.353,.804,1),slategray:Float32Array.of(.439,.502,.565,1),slategrey:Float32Array.of(.439,.502,.565,1),snow:Float32Array.of(1,.98,.98,1),springgreen:Float32Array.of(0,1,.498,1),steelblue:Float32Array.of(.275,.51,.706,1),tan:Float32Array.of(.824,.706,.549,
1),teal:Float32Array.of(0,.502,.502,1),thistle:Float32Array.of(.847,.749,.847,1),tomato:Float32Array.of(1,.388,.278,1),transparent:Float32Array.of(0,0,0,0),turquoise:Float32Array.of(.251,.878,.816,1),violet:Float32Array.of(.933,.51,.933,1),wheat:Float32Array.of(.961,.871,.702,1),white:Float32Array.of(1,1,1,1),whitesmoke:Float32Array.of(.961,.961,.961,1),yellow:Float32Array.of(1,1,0,1),yellowgreen:Float32Array.of(.604,.804,.196,1)};a._testing.parseColor=B;a._testing.colorToString=u;var ra=/(italic|oblique|normal|)\s*(small-caps|normal|)\s*(bold|bolder|lighter|[1-9]00|normal|)\s*([\d\.]+)(px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q)(.+)/,
ta={"Noto Mono":{"*":null},monospace:{"*":null}};a._testing.parseFontString=E;a.MakeCanvas=function(K,l){return(K=a.MakeSurface(K,l))?new Y(K):null};a.ImageData=function(){if(2===arguments.length){var K=arguments[0],l=arguments[1];return new f(new Uint8ClampedArray(4*K*l),K,l)}if(3===arguments.length){var r=arguments[0];if(r.prototype.constructor!==Uint8ClampedArray)throw"bytes must be given as a Uint8ClampedArray";K=arguments[1];l=arguments[2];if(r%4)throw"bytes must be given in a multiple of 4";
if(r%K)throw"bytes must divide evenly by width";if(l&&l!==r/(4*K))throw"invalid height given";return new f(r,K,r/(4*K))}throw"invalid number of arguments - takes 2 or 3, saw "+arguments.length;}})()})(g);var fa={},ha;for(ha in g)g.hasOwnProperty(ha)&&(fa[ha]=g[ha]);var ia="./this.program";function la(a,b){throw b;}var ma=!1,na=!1,oa=!1,pa=!1;ma="object"===typeof window;na="function"===typeof importScripts;oa="object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node;
pa=!ma&&!oa&&!na;var xa="",ya,za,Aa,Ba;
if(oa)xa=na?require("path").dirname(xa)+"/":__dirname+"/",ya=function(a,b){Aa||(Aa=require("fs"));Ba||(Ba=require("path"));a=Ba.normalize(a);return Aa.readFileSync(a,b?null:"utf8")},za=function(a){a=ya(a,!0);a.buffer||(a=new Uint8Array(a));assert(a.buffer);return a},1<process.argv.length&&(ia=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),process.on("uncaughtException",function(a){if(!(a instanceof Ca))throw a;}),process.on("unhandledRejection",Da),la=function(a){process.exit(a)},g.inspect=
function(){return"[Emscripten Module object]"};else if(pa)"undefined"!=typeof read&&(ya=function(a){return read(a)}),za=function(a){if("function"===typeof readbuffer)return new Uint8Array(readbuffer(a));a=read(a,"binary");assert("object"===typeof a);return a},"function"===typeof quit&&(la=function(a){quit(a)}),"undefined"!==typeof print&&("undefined"===typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!==typeof printErr?printErr:print);else if(ma||na)na?xa=self.location.href:
document.currentScript&&(xa=document.currentScript.src),_scriptDir&&(xa=_scriptDir),0!==xa.indexOf("blob:")?xa=xa.substr(0,xa.lastIndexOf("/")+1):xa="",ya=function(a){var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);return b.responseText},na&&(za=function(a){var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)});var Ea=g.print||console.log.bind(console),Fa=g.printErr||console.warn.bind(console);
for(ha in fa)fa.hasOwnProperty(ha)&&(g[ha]=fa[ha]);fa=null;g.thisProgram&&(ia=g.thisProgram);g.quit&&(la=g.quit);function Ga(a){Ha||(Ha={});Ha[a]||(Ha[a]=1,Fa(a))}var Ha,Ia=0,Ja;g.wasmBinary&&(Ja=g.wasmBinary);var noExitRuntime;g.noExitRuntime&&(noExitRuntime=g.noExitRuntime);"object"!==typeof WebAssembly&&Fa("no native wasm support detected");var Ka,La=new WebAssembly.Table({initial:8646,maximum:8646,element:"anyfunc"}),Ma=!1;function assert(a,b){a||Da("Assertion failed: "+b)}
var Na="undefined"!==typeof TextDecoder?new TextDecoder("utf8"):void 0;
function Oa(a,b,c){var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16<c-b&&a.subarray&&Na)return Na.decode(a.subarray(b,c));for(d="";b<c;){var e=a[b++];if(e&128){var k=a[b++]&63;if(192==(e&224))d+=String.fromCharCode((e&31)<<6|k);else{var n=a[b++]&63;e=224==(e&240)?(e&15)<<12|k<<6|n:(e&7)<<18|k<<12|n<<6|a[b++]&63;65536>e?d+=String.fromCharCode(e):(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023))}}else d+=String.fromCharCode(e)}return d}function Pa(a,b){return a?Oa(Qa,a,b):""}
function Ra(a,b,c,d){if(!(0<d))return 0;var e=c;d=c+d-1;for(var k=0;k<a.length;++k){var n=a.charCodeAt(k);if(55296<=n&&57343>=n){var q=a.charCodeAt(++k);n=65536+((n&1023)<<10)|q&1023}if(127>=n){if(c>=d)break;b[c++]=n}else{if(2047>=n){if(c+1>=d)break;b[c++]=192|n>>6}else{if(65535>=n){if(c+2>=d)break;b[c++]=224|n>>12}else{if(c+3>=d)break;b[c++]=240|n>>18;b[c++]=128|n>>12&63}b[c++]=128|n>>6&63}b[c++]=128|n&63}}b[c]=0;return c-e}function ea(a,b,c){return Ra(a,Qa,b,c)}
function ca(a){for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);55296<=d&&57343>=d&&(d=65536+((d&1023)<<10)|a.charCodeAt(++c)&1023);127>=d?++b:b=2047>=d?b+2:65535>=d?b+3:b+4}return b}var Sa="undefined"!==typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function Ta(a,b){var c=a>>1;for(var d=c+b/2;!(c>=d)&&Ua[c];)++c;c<<=1;if(32<c-a&&Sa)return Sa.decode(Qa.subarray(a,c));c=0;for(d="";;){var e=Va[a+2*c>>1];if(0==e||c==b/2)return d;++c;d+=String.fromCharCode(e)}}
function Ya(a,b,c){void 0===c&&(c=2147483647);if(2>c)return 0;c-=2;var d=b;c=c<2*a.length?c/2:a.length;for(var e=0;e<c;++e)Va[b>>1]=a.charCodeAt(e),b+=2;Va[b>>1]=0;return b-d}function Za(a){return 2*a.length}function $a(a,b){for(var c=0,d="";!(c>=b/4);){var e=h[a+4*c>>2];if(0==e)break;++c;65536<=e?(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023)):d+=String.fromCharCode(e)}return d}
function ab(a,b,c){void 0===c&&(c=2147483647);if(4>c)return 0;var d=b;c=d+c-4;for(var e=0;e<a.length;++e){var k=a.charCodeAt(e);if(55296<=k&&57343>=k){var n=a.charCodeAt(++e);k=65536+((k&1023)<<10)|n&1023}h[b>>2]=k;b+=4;if(b+4>c)break}h[b>>2]=0;return b-d}function bb(a){for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);55296<=d&&57343>=d&&++c;b+=4}return b}function cb(a){var b=ca(a)+1,c=db(b);c&&Ra(a,eb,c,b);return c}var fb,eb,Qa,Va,Ua,h,gb,w,lb;
function mb(a){fb=a;g.HEAP8=eb=new Int8Array(a);g.HEAP16=Va=new Int16Array(a);g.HEAP32=h=new Int32Array(a);g.HEAPU8=Qa=new Uint8Array(a);g.HEAPU16=Ua=new Uint16Array(a);g.HEAPU32=gb=new Uint32Array(a);g.HEAPF32=w=new Float32Array(a);g.HEAPF64=lb=new Float64Array(a)}var nb=g.INITIAL_MEMORY||134217728;g.wasmMemory?Ka=g.wasmMemory:Ka=new WebAssembly.Memory({initial:nb/65536,maximum:32768});Ka&&(fb=Ka.buffer);nb=fb.byteLength;mb(fb);h[458052]=7075248;
function ob(a){for(;0<a.length;){var b=a.shift();if("function"==typeof b)b(g);else{var c=b.gm;"number"===typeof c?void 0===b.Hl?g.dynCall_v(c):g.dynCall_vi(c,b.Hl):c(void 0===b.Hl?null:b.Hl)}}}var pb=[],qb=[],rb=[],sb=[];function tb(){var a=g.preRun.shift();pb.unshift(a)}var ub=Math.ceil,vb=Math.floor,wb=0,xb=null,yb=null;g.preloadedImages={};g.preloadedAudios={};
function Da(a){if(g.onAbort)g.onAbort(a);Ea(a);Fa(a);Ma=!0;throw new WebAssembly.RuntimeError("abort("+a+"). Build with -s ASSERTIONS=1 for more info.");}function zb(a){var b=Ab;return String.prototype.startsWith?b.startsWith(a):0===b.indexOf(a)}function Bb(){return zb("data:application/octet-stream;base64,")}var Ab="canvaskit.wasm";if(!Bb()){var Cb=Ab;Ab=g.locateFile?g.locateFile(Cb,xa):xa+Cb}
function Fb(){try{if(Ja)return new Uint8Array(Ja);if(za)return za(Ab);throw"both async and sync fetching of the wasm failed";}catch(a){Da(a)}}function Gb(){return Ja||!ma&&!na||"function"!==typeof fetch||zb("file://")?new Promise(function(a){a(Fb())}):fetch(Ab,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+Ab+"'";return a.arrayBuffer()}).catch(function(){return Fb()})}qb.push({gm:function(){Hb()}});function Ib(){return 0<Ib.km}
var Jb={},Kb=[null,[],[]],Lb={},Mb={};function Nb(a){for(;a.length;){var b=a.pop();a.pop()(b)}}function Ob(a){return this.fromWireType(gb[a>>2])}var Pb={},Qb={},Rb={};function Sb(a){if(void 0===a)return"_unknown";a=a.replace(/[^a-zA-Z0-9_]/g,"$");var b=a.charCodeAt(0);return 48<=b&&57>=b?"_"+a:a}function Tb(a,b){a=Sb(a);return(new Function("body","return function "+a+'() {\n    "use strict";    return body.apply(this, arguments);\n};\n'))(b)}
function Ub(a){var b=Error,c=Tb(a,function(d){this.name=a;this.message=d;d=Error(d).stack;void 0!==d&&(this.stack=this.toString()+"\n"+d.replace(/^Error(:[^\n]*)?\n/,""))});c.prototype=Object.create(b.prototype);c.prototype.constructor=c;c.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message};return c}var Vb=void 0;function Wb(a){throw new Vb(a);}
function Xb(a,b,c){function d(q){q=c(q);q.length!==a.length&&Wb("Mismatched type converter count");for(var v=0;v<a.length;++v)Yb(a[v],q[v])}a.forEach(function(q){Rb[q]=b});var e=Array(b.length),k=[],n=0;b.forEach(function(q,v){Qb.hasOwnProperty(q)?e[v]=Qb[q]:(k.push(q),Pb.hasOwnProperty(q)||(Pb[q]=[]),Pb[q].push(function(){e[v]=Qb[q];++n;n===k.length&&d(e)}))});0===k.length&&d(e)}var Zb={};
function $b(a){switch(a){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+a);}}var ac=void 0;function bc(a){for(var b="";Qa[a];)b+=ac[Qa[a++]];return b}var cc=void 0;function dc(a){throw new cc(a);}
function Yb(a,b,c){c=c||{};if(!("argPackAdvance"in b))throw new TypeError("registerType registeredInstance requires argPackAdvance");var d=b.name;a||dc('type "'+d+'" must have a positive integer typeid pointer');if(Qb.hasOwnProperty(a)){if(c.Fm)return;dc("Cannot register type '"+d+"' twice")}Qb[a]=b;delete Rb[a];Pb.hasOwnProperty(a)&&(b=Pb[a],delete Pb[a],b.forEach(function(e){e()}))}function ec(a){return{count:a.count,pl:a.pl,Al:a.Al,yk:a.yk,Ck:a.Ck,Kk:a.Kk,Pk:a.Pk}}
function fc(a){dc(a.rk.Ck.wk.name+" instance already deleted")}var hc=!1;function ic(){}function jc(a){--a.count.value;0===a.count.value&&(a.Kk?a.Pk.Ok(a.Kk):a.Ck.wk.Ok(a.yk))}
function kc(a){if("undefined"===typeof FinalizationGroup)return kc=function(b){return b},a;hc=new FinalizationGroup(function(b){for(var c=b.next();!c.done;c=b.next())c=c.value,c.yk?jc(c):console.warn("object already deleted: "+c.yk)});kc=function(b){hc.register(b,b.rk,b.rk);return b};ic=function(b){hc.unregister(b.rk)};return kc(a)}var lc=void 0,mc=[];function nc(){for(;mc.length;){var a=mc.pop();a.rk.pl=!1;a["delete"]()}}function oc(){}var pc={};
function qc(a,b,c){if(void 0===a[b].Fk){var d=a[b];a[b]=function(){a[b].Fk.hasOwnProperty(arguments.length)||dc("Function '"+c+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+a[b].Fk+")!");return a[b].Fk[arguments.length].apply(this,arguments)};a[b].Fk=[];a[b].Fk[d.ol]=d}}
function rc(a,b,c){g.hasOwnProperty(a)?((void 0===c||void 0!==g[a].Fk&&void 0!==g[a].Fk[c])&&dc("Cannot register public name '"+a+"' twice"),qc(g,a,a),g.hasOwnProperty(c)&&dc("Cannot register multiple overloads of a function with the same number of arguments ("+c+")!"),g[a].Fk[c]=b):(g[a]=b,void 0!==c&&(g[a].sn=c))}function sc(a,b,c,d,e,k,n,q){this.name=a;this.constructor=b;this.ql=c;this.Ok=d;this.Rk=e;this.Bm=k;this.Dl=n;this.um=q;this.Rm=[]}
function tc(a,b,c){for(;b!==c;)b.Dl||dc("Expected null or instance of "+c.name+", got an instance of "+b.name),a=b.Dl(a),b=b.Rk;return a}function uc(a,b){if(null===b)return this.Xl&&dc("null is not a valid "+this.name),0;b.rk||dc('Cannot pass "'+vc(b)+'" as a '+this.name);b.rk.yk||dc("Cannot pass deleted object as a pointer of type "+this.name);return tc(b.rk.yk,b.rk.Ck.wk,this.wk)}
function wc(a,b){if(null===b){this.Xl&&dc("null is not a valid "+this.name);if(this.Jl){var c=this.Bl();null!==a&&a.push(this.Ok,c);return c}return 0}b.rk||dc('Cannot pass "'+vc(b)+'" as a '+this.name);b.rk.yk||dc("Cannot pass deleted object as a pointer of type "+this.name);!this.Il&&b.rk.Ck.Il&&dc("Cannot convert argument of type "+(b.rk.Pk?b.rk.Pk.name:b.rk.Ck.name)+" to parameter type "+this.name);c=tc(b.rk.yk,b.rk.Ck.wk,this.wk);if(this.Jl)switch(void 0===b.rk.Kk&&dc("Passing raw pointer to smart pointer is illegal"),
this.Vm){case 0:b.rk.Pk===this?c=b.rk.Kk:dc("Cannot convert argument of type "+(b.rk.Pk?b.rk.Pk.name:b.rk.Ck.name)+" to parameter type "+this.name);break;case 1:c=b.rk.Kk;break;case 2:if(b.rk.Pk===this)c=b.rk.Kk;else{var d=b.clone();c=this.Tm(c,xc(function(){d["delete"]()}));null!==a&&a.push(this.Ok,c)}break;default:dc("Unsupporting sharing policy")}return c}
function yc(a,b){if(null===b)return this.Xl&&dc("null is not a valid "+this.name),0;b.rk||dc('Cannot pass "'+vc(b)+'" as a '+this.name);b.rk.yk||dc("Cannot pass deleted object as a pointer of type "+this.name);b.rk.Ck.Il&&dc("Cannot convert argument of type "+b.rk.Ck.name+" to parameter type "+this.name);return tc(b.rk.yk,b.rk.Ck.wk,this.wk)}function zc(a,b,c){if(b===c)return a;if(void 0===c.Rk)return null;a=zc(a,b,c.Rk);return null===a?null:c.um(a)}var Ac={};
function Bc(a,b){for(void 0===b&&dc("ptr should not be undefined");a.Rk;)b=a.Dl(b),a=a.Rk;return Ac[b]}function Cc(a,b){b.Ck&&b.yk||Wb("makeClassHandle requires ptr and ptrType");!!b.Pk!==!!b.Kk&&Wb("Both smartPtrType and smartPtr must be specified");b.count={value:1};return kc(Object.create(a,{rk:{value:b}}))}
function Dc(a,b,c,d,e,k,n,q,v,z,H){this.name=a;this.wk=b;this.Xl=c;this.Il=d;this.Jl=e;this.Qm=k;this.Vm=n;this.jm=q;this.Bl=v;this.Tm=z;this.Ok=H;e||void 0!==b.Rk?this.toWireType=wc:(this.toWireType=d?uc:yc,this.Jk=null)}function Ec(a,b,c){g.hasOwnProperty(a)||Wb("Replacing nonexistant public symbol");void 0!==g[a].Fk&&void 0!==c?g[a].Fk[c]=b:(g[a]=b,g[a].ol=c)}
function Fc(a,b){a=bc(a);var c=g["dynCall_"+a];for(var d=[],e=1;e<a.length;++e)d.push("a"+e);e="return function dynCall_"+(a+"_"+b)+"("+d.join(", ")+") {\n";e+="    return dynCall(rawFunction"+(d.length?", ":"")+d.join(", ")+");\n";c=(new Function("dynCall","rawFunction",e+"};\n"))(c,b);"function"!==typeof c&&dc("unknown function pointer with signature "+a+": "+b);return c}var Gc=void 0;function Kc(a){a=Lc(a);var b=bc(a);Mc(a);return b}
function Nc(a,b){function c(k){e[k]||Qb[k]||(Rb[k]?Rb[k].forEach(c):(d.push(k),e[k]=!0))}var d=[],e={};b.forEach(c);throw new Gc(a+": "+d.map(Kc).join([", "]));}function Oc(a){var b=Function;if(!(b instanceof Function))throw new TypeError("new_ called with constructor type "+typeof b+" which is not a function");var c=Tb(b.name||"unknownFunctionName",function(){});c.prototype=b.prototype;c=new c;a=b.apply(c,a);return a instanceof Object?a:c}
function Pc(a,b,c,d,e){var k=b.length;2>k&&dc("argTypes array size mismatch! Must at least get return value and 'this' types!");var n=null!==b[1]&&null!==c,q=!1;for(c=1;c<b.length;++c)if(null!==b[c]&&void 0===b[c].Jk){q=!0;break}var v="void"!==b[0].name,z="",H="";for(c=0;c<k-2;++c)z+=(0!==c?", ":"")+"arg"+c,H+=(0!==c?", ":"")+"arg"+c+"Wired";a="return function "+Sb(a)+"("+z+") {\nif (arguments.length !== "+(k-2)+") {\nthrowBindingError('function "+a+" called with ' + arguments.length + ' arguments, expected "+
(k-2)+" args!');\n}\n";q&&(a+="var destructors = [];\n");var M=q?"destructors":"null";z="throwBindingError invoker fn runDestructors retType classParam".split(" ");d=[dc,d,e,Nb,b[0],b[1]];n&&(a+="var thisWired = classParam.toWireType("+M+", this);\n");for(c=0;c<k-2;++c)a+="var arg"+c+"Wired = argType"+c+".toWireType("+M+", arg"+c+"); // "+b[c+2].name+"\n",z.push("argType"+c),d.push(b[c+2]);n&&(H="thisWired"+(0<H.length?", ":"")+H);a+=(v?"var rv = ":"")+"invoker(fn"+(0<H.length?", ":"")+H+");\n";if(q)a+=
"runDestructors(destructors);\n";else for(c=n?1:2;c<b.length;++c)k=1===c?"thisWired":"arg"+(c-2)+"Wired",null!==b[c].Jk&&(a+=k+"_dtor("+k+"); // "+b[c].name+"\n",z.push(k+"_dtor"),d.push(b[c].Jk));v&&(a+="var ret = retType.fromWireType(rv);\nreturn ret;\n");z.push(a+"}\n");return Oc(z).apply(null,d)}function Qc(a,b){for(var c=[],d=0;d<a;d++)c.push(h[(b>>2)+d]);return c}var Rc=[],Sc=[{},{value:void 0},{value:null},{value:!0},{value:!1}];
function Tc(a){4<a&&0===--Sc[a].Yl&&(Sc[a]=void 0,Rc.push(a))}function xc(a){switch(a){case void 0:return 1;case null:return 2;case !0:return 3;case !1:return 4;default:var b=Rc.length?Rc.pop():Sc.length;Sc[b]={Yl:1,value:a};return b}}
function Uc(a,b,c){switch(b){case 0:return function(d){return this.fromWireType((c?eb:Qa)[d])};case 1:return function(d){return this.fromWireType((c?Va:Ua)[d>>1])};case 2:return function(d){return this.fromWireType((c?h:gb)[d>>2])};default:throw new TypeError("Unknown integer type: "+a);}}function Vc(a,b){var c=Qb[a];void 0===c&&dc(b+" has unknown type "+Kc(a));return c}function vc(a){if(null===a)return"null";var b=typeof a;return"object"===b||"array"===b||"function"===b?a.toString():""+a}
function Wc(a,b){switch(b){case 2:return function(c){return this.fromWireType(w[c>>2])};case 3:return function(c){return this.fromWireType(lb[c>>3])};default:throw new TypeError("Unknown float type: "+a);}}
function Xc(a,b,c){switch(b){case 0:return c?function(d){return eb[d]}:function(d){return Qa[d]};case 1:return c?function(d){return Va[d>>1]}:function(d){return Ua[d>>1]};case 2:return c?function(d){return h[d>>2]}:function(d){return gb[d>>2]};default:throw new TypeError("Unknown integer type: "+a);}}var Yc={};function Zc(a){var b=Yc[a];return void 0===b?bc(a):b}var $c=[];function ad(a){a||dc("Cannot use deleted val. handle = "+a);return Sc[a].value}
function bd(a){var b=$c.length;$c.push(a);return b}function cd(a,b){for(var c=Array(a),d=0;d<a;++d)c[d]=Vc(h[(b>>2)+d],"parameter "+d);return c}var dd;oa?dd=function(){var a=process.hrtime();return 1E3*a[0]+a[1]/1E6}:"undefined"!==typeof dateNow?dd=dateNow:dd=function(){return performance.now()};
function ed(a,b){fd=a;gd=b;if(hd)if(0==a)id=function(){var d=Math.max(0,jd+b-dd())|0;setTimeout(kd,d)};else if(1==a)id=function(){ld(kd)};else if(2==a){if("undefined"===typeof setImmediate){var c=[];addEventListener("message",function(d){if("setimmediate"===d.data||"setimmediate"===d.data.target)d.stopPropagation(),c.shift()()},!0);setImmediate=function(d){c.push(d);na?(void 0===g.setImmediates&&(g.setImmediates=[]),g.setImmediates.push(d),postMessage({target:"setimmediate"})):postMessage("setimmediate",
"*")}}id=function(){setImmediate(kd)}}}
function md(a){var b=nd;noExitRuntime=!0;assert(!hd,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters.");hd=a;nd=b;var c="undefined"!==typeof b?function(){g.dynCall_vi(a,b)}:function(){g.dynCall_v(a)};var d=od;kd=function(){if(!Ma)if(0<rd.length){var e=Date.now(),k=rd.shift();k.gm(k.Hl);if(sd){var n=sd,q=0==n%1?n-1:Math.floor(n);sd=k.ln?q:(8*n+(q+.5))/9}console.log('main loop blocker "'+
k.name+'" took '+(Date.now()-e)+" ms");g.setStatus&&(e=g.statusMessage||"Please wait...",k=sd,n=td.pn,k?k<n?g.setStatus(e+" ("+(n-k)+"/"+n+")"):g.setStatus(e):g.setStatus(""));d<od||setTimeout(kd,0)}else if(!(d<od))if(ud=ud+1|0,1==fd&&1<gd&&0!=ud%gd)id();else{0==fd&&(jd=dd());a:if(!(Ma||g.preMainLoop&&!1===g.preMainLoop())){try{c()}catch(v){if(v instanceof Ca)break a;v&&"object"===typeof v&&v.stack&&Fa("exception thrown: "+[v,v.stack]);throw v;}g.postMainLoop&&g.postMainLoop()}d<od||("object"===typeof SDL&&
SDL.audio&&SDL.audio.Sm&&SDL.audio.Sm(),id())}}}var id=null,od=0,hd=null,nd=0,fd=0,gd=0,ud=0,rd=[],td={},jd,kd,sd,vd=!1,wd=!1,xd=[];
function yd(){function a(){wd=document.pointerLockElement===g.canvas||document.mozPointerLockElement===g.canvas||document.webkitPointerLockElement===g.canvas||document.msPointerLockElement===g.canvas}g.preloadPlugins||(g.preloadPlugins=[]);if(!zd){zd=!0;try{Ad=!0}catch(c){Ad=!1,console.log("warning: no blob constructor, cannot create blobs with mimetypes")}Bd="undefined"!=typeof MozBlobBuilder?MozBlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:Ad?null:console.log("warning: no BlobBuilder");
Cd="undefined"!=typeof window?window.URL?window.URL:window.webkitURL:void 0;g.im||"undefined"!==typeof Cd||(console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available."),g.im=!0);g.preloadPlugins.push({canHandle:function(c){return!g.im&&/\.(jpg|jpeg|png|bmp)$/i.test(c)},handle:function(c,d,e,k){var n=null;if(Ad)try{n=new Blob([c],{type:Dd(d)}),n.size!==c.length&&(n=new Blob([(new Uint8Array(c)).buffer],{type:Dd(d)}))}catch(z){Ga("Blob constructor present but fails: "+
z+"; falling back to blob builder")}n||(n=new Bd,n.append((new Uint8Array(c)).buffer),n=n.getBlob());var q=Cd.createObjectURL(n),v=new Image;v.onload=function(){assert(v.complete,"Image "+d+" could not be decoded");var z=document.createElement("canvas");z.width=v.width;z.height=v.height;z.getContext("2d").drawImage(v,0,0);g.preloadedImages[d]=z;Cd.revokeObjectURL(q);e&&e(c)};v.onerror=function(){console.log("Image "+q+" could not be decoded");k&&k()};v.src=q}});g.preloadPlugins.push({canHandle:function(c){return!g.rn&&
c.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(c,d,e,k){function n(M){v||(v=!0,g.preloadedAudios[d]=M,e&&e(c))}function q(){v||(v=!0,g.preloadedAudios[d]=new Audio,k&&k())}var v=!1;if(Ad){try{var z=new Blob([c],{type:Dd(d)})}catch(M){return q()}z=Cd.createObjectURL(z);var H=new Audio;H.addEventListener("canplaythrough",function(){n(H)},!1);H.onerror=function(){if(!v){console.log("warning: browser could not fully decode audio "+d+", trying slower base64 approach");for(var M="",O=0,A=0,
Q=0;Q<c.length;Q++)for(O=O<<8|c[Q],A+=8;6<=A;){var ba=O>>A-6&63;A-=6;M+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[ba]}2==A?(M+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(O&3)<<4],M+="=="):4==A&&(M+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(O&15)<<2],M+="=");H.src="data:audio/x-"+d.substr(-3)+";base64,"+M;n(H)}};H.src=z;Ed(function(){n(H)})}else return q()}});var b=g.canvas;b&&(b.requestPointerLock=b.requestPointerLock||b.mozRequestPointerLock||
b.webkitRequestPointerLock||b.msRequestPointerLock||function(){},b.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||function(){},b.exitPointerLock=b.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",a,!1),document.addEventListener("mozpointerlockchange",a,!1),document.addEventListener("webkitpointerlockchange",a,!1),document.addEventListener("mspointerlockchange",a,!1),g.elementPointerLock&&
b.addEventListener("click",function(c){!wd&&g.canvas.requestPointerLock&&(g.canvas.requestPointerLock(),c.preventDefault())},!1))}}
function Fd(a,b,c,d){if(b&&g.Tl&&a==g.canvas)return g.Tl;var e;if(b){var k={antialias:!1,alpha:!1,hm:"undefined"!==typeof WebGL2RenderingContext?2:1};if(d)for(var n in d)k[n]=d[n];if("undefined"!==typeof Gd&&(e=Hd(a,k)))var q=Id[e].Ol}else q=a.getContext("2d");if(!q)return null;c&&(b||assert("undefined"===typeof G,"cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),g.Tl=q,b&&Jd(e),g.vn=b,xd.forEach(function(v){v()}),yd());return q}var Kd=!1,Ld=void 0,Md=void 0;
function Nd(a,b){function c(){vd=!1;var k=d.parentNode;(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===k?(d.exitFullscreen=Od,Ld&&d.requestPointerLock(),vd=!0,Md?("undefined"!=typeof SDL&&(h[SDL.screen>>2]=gb[SDL.screen>>2]|8388608),Pd(g.canvas),Qd()):Pd(d)):(k.parentNode.insertBefore(d,k),k.parentNode.removeChild(k),Md?("undefined"!=typeof SDL&&(h[SDL.screen>>2]=gb[SDL.screen>>2]&
-8388609),Pd(g.canvas),Qd()):Pd(d));if(g.onFullScreen)g.onFullScreen(vd);if(g.onFullscreen)g.onFullscreen(vd)}Ld=a;Md=b;"undefined"===typeof Ld&&(Ld=!0);"undefined"===typeof Md&&(Md=!1);var d=g.canvas;Kd||(Kd=!0,document.addEventListener("fullscreenchange",c,!1),document.addEventListener("mozfullscreenchange",c,!1),document.addEventListener("webkitfullscreenchange",c,!1),document.addEventListener("MSFullscreenChange",c,!1));var e=document.createElement("div");d.parentNode.insertBefore(e,d);e.appendChild(d);
e.requestFullscreen=e.requestFullscreen||e.mozRequestFullScreen||e.msRequestFullscreen||(e.webkitRequestFullscreen?function(){e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}:null)||(e.webkitRequestFullScreen?function(){e.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:null);e.requestFullscreen()}
function Od(){if(!vd)return!1;(document.exitFullscreen||document.cancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen||document.webkitCancelFullScreen||function(){}).apply(document,[]);return!0}var Rd=0;function ld(a){if("function"===typeof requestAnimationFrame)requestAnimationFrame(a);else{var b=Date.now();if(0===Rd)Rd=b+1E3/60;else for(;b+2>=Rd;)Rd+=1E3/60;setTimeout(a,Math.max(Rd-b,0))}}function Ed(a){noExitRuntime=!0;setTimeout(function(){Ma||a()},1E4)}
function Dd(a){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[a.substr(a.lastIndexOf(".")+1)]}var Sd=[];function Qd(){var a=g.canvas;Sd.forEach(function(b){b(a.width,a.height)})}
function Pd(a,b,c){b&&c?(a.en=b,a.Em=c):(b=a.en,c=a.Em);var d=b,e=c;g.forcedAspectRatio&&0<g.forcedAspectRatio&&(d/e<g.forcedAspectRatio?d=Math.round(e*g.forcedAspectRatio):e=Math.round(d/g.forcedAspectRatio));if((document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===a.parentNode&&"undefined"!=typeof screen){var k=Math.min(screen.width/d,screen.height/e);d=Math.round(d*k);e=Math.round(e*
k)}Md?(a.width!=d&&(a.width=d),a.height!=e&&(a.height=e),"undefined"!=typeof a.style&&(a.style.removeProperty("width"),a.style.removeProperty("height"))):(a.width!=b&&(a.width=b),a.height!=c&&(a.height=c),"undefined"!=typeof a.style&&(d!=b||e!=c?(a.style.setProperty("width",d+"px","important"),a.style.setProperty("height",e+"px","important")):(a.style.removeProperty("width"),a.style.removeProperty("height"))))}var zd,Ad,Bd,Cd,Td={};
function Ud(a){var b=a.getExtension("ANGLE_instanced_arrays");b&&(a.vertexAttribDivisor=function(c,d){b.vertexAttribDivisorANGLE(c,d)},a.drawArraysInstanced=function(c,d,e,k){b.drawArraysInstancedANGLE(c,d,e,k)},a.drawElementsInstanced=function(c,d,e,k,n){b.drawElementsInstancedANGLE(c,d,e,k,n)})}
function Vd(a){var b=a.getExtension("OES_vertex_array_object");b&&(a.createVertexArray=function(){return b.createVertexArrayOES()},a.deleteVertexArray=function(c){b.deleteVertexArrayOES(c)},a.bindVertexArray=function(c){b.bindVertexArrayOES(c)},a.isVertexArray=function(c){return b.isVertexArrayOES(c)})}function Wd(a){var b=a.getExtension("WEBGL_draw_buffers");b&&(a.drawBuffers=function(c,d){b.drawBuffersWEBGL(c,d)})}
var Xd=1,Yd=0,Zd=[],L=[],$d=[],ae=[],be=[],N=[],ce=[],de=[],Id=[],U=null,ee=[],fe=[],ge=[],he=[],ie=[],je={},ke={},le={},me=4;function X(a){Yd||(Yd=a)}function ne(a){for(var b=Xd++,c=a.length;c<b;c++)a[c]=null;return b}var oe=[0],pe=[0];function qe(a,b,c){for(var d="",e=0;e<a;++e){var k=c?h[c+4*e>>2]:-1;d+=Pa(h[b+4*e>>2],0>k?void 0:k)}return d}
function Hd(a,b){if(a=1<b.hm?a.getContext("webgl2",b):a.getContext("webgl",b)){var c=ne(Id),d={Dm:c,attributes:b,version:b.hm,Ol:a};a.canvas&&(a.canvas.fn=d);Id[c]=d;("undefined"===typeof b.wm||b.wm)&&re(d);b=c}else b=0;return b}function Jd(a){U=Id[a];g.Tl=G=U&&U.Ol;return!(a&&!G)}
function re(a){a||(a=U);if(!a.Gm){a.Gm=!0;var b=a.Ol;Ud(b);Vd(b);Wd(b);b.mn=b.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");b.Nk=b.getExtension("EXT_disjoint_timer_query");var c="OES_texture_float OES_texture_half_float OES_standard_derivatives OES_vertex_array_object WEBGL_compressed_texture_s3tc WEBGL_depth_texture OES_element_index_uint EXT_texture_filter_anisotropic EXT_frag_depth WEBGL_draw_buffers ANGLE_instanced_arrays OES_texture_float_linear OES_texture_half_float_linear EXT_blend_minmax EXT_shader_texture_lod EXT_texture_norm16 WEBGL_compressed_texture_pvrtc EXT_color_buffer_half_float WEBGL_color_buffer_float EXT_sRGB WEBGL_compressed_texture_etc1 EXT_disjoint_timer_query WEBGL_compressed_texture_etc WEBGL_compressed_texture_astc EXT_color_buffer_float WEBGL_compressed_texture_s3tc_srgb EXT_disjoint_timer_query_webgl2 WEBKIT_WEBGL_compressed_texture_pvrtc".split(" ");(b.getSupportedExtensions()||
[]).forEach(function(d){-1!=c.indexOf(d)&&b.getExtension(d)})}}function se(a){var b=L[a];a=je[a]={bm:{},Kl:0,Sk:-1,Tk:-1};for(var c=a.bm,d=G.getProgramParameter(b,35718),e=0;e<d;++e){var k=G.getActiveUniform(b,e),n=k.name;a.Kl=Math.max(a.Kl,n.length+1);"]"==n.slice(-1)&&(n=n.slice(0,n.lastIndexOf("[")));var q=G.getUniformLocation(b,n);if(q){var v=ne(N);c[n]=[k.size,v];N[v]=q;for(var z=1;z<k.size;++z)q=G.getUniformLocation(b,n+"["+z+"]"),v=ne(N),N[v]=q}}}var Gd={},te,ue,ve=[];
function we(a,b,c,d){G.drawElements(a,b,c,d)}function xe(a,b,c,d){for(var e=0;e<a;e++){var k=G[c](),n=k&&ne(d);k?(k.name=n,d[n]=k):X(1282);h[b+4*e>>2]=n}}function ye(a,b){gb[a>>2]=b;gb[a+4>>2]=(b-gb[a>>2])/4294967296}
function ze(a,b,c){if(b){var d=void 0;switch(a){case 36346:d=1;break;case 36344:0!=c&&1!=c&&X(1280);return;case 34814:case 36345:d=0;break;case 34466:var e=G.getParameter(34467);d=e?e.length:0;break;case 33309:if(2>U.version){X(1282);return}d=2*(G.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(2>U.version){X(1280);return}d=33307==a?3:0}if(void 0===d)switch(e=G.getParameter(a),typeof e){case "number":d=e;break;case "boolean":d=e?1:0;break;case "string":X(1280);return;case "object":if(null===
e)switch(a){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:d=0;break;default:X(1280);return}else{if(e instanceof Float32Array||e instanceof Uint32Array||e instanceof Int32Array||e instanceof Array){for(a=0;a<e.length;++a)switch(c){case 0:h[b+4*a>>2]=e[a];break;case 2:w[b+4*a>>2]=e[a];break;case 4:eb[b+a>>0]=e[a]?1:0}return}try{d=e.name|0}catch(k){X(1280);
Fa("GL_INVALID_ENUM in glGet"+c+"v: Unknown object returned from WebGL getParameter("+a+")! (error: "+k+")");return}}break;default:X(1280);Fa("GL_INVALID_ENUM in glGet"+c+"v: Native code calling glGet"+c+"v("+a+") and it returns "+e+" of type "+typeof e+"!");return}switch(c){case 1:ye(b,d);break;case 0:h[b>>2]=d;break;case 2:w[b>>2]=d;break;case 4:eb[b>>0]=d?1:0}}else X(1281)}
function Ae(a,b,c,d){if(c){b=G.getIndexedParameter(a,b);switch(typeof b){case "boolean":a=b?1:0;break;case "number":a=b;break;case "object":if(null===b)switch(a){case 35983:case 35368:a=0;break;default:X(1280);return}else if(b instanceof WebGLBuffer)a=b.name|0;else{X(1280);return}break;default:X(1280);return}switch(d){case 1:ye(c,a);break;case 0:h[c>>2]=a;break;case 2:w[c>>2]=a;break;case 4:eb[c>>0]=a?1:0;break;default:throw"internal emscriptenWebGLGetIndexed() error, bad type: "+d;}}else X(1281)}
function Be(a){var b=ca(a)+1,c=db(b);ea(a,c,b);return c}function Ce(a,b,c,d){if(c)if(a=G.getUniform(L[a],N[b]),"number"==typeof a||"boolean"==typeof a)switch(d){case 0:h[c>>2]=a;break;case 2:w[c>>2]=a;break;default:throw"internal emscriptenWebGLGetUniform() error, bad type: "+d;}else for(b=0;b<a.length;b++)switch(d){case 0:h[c+4*b>>2]=a[b];break;case 2:w[c+4*b>>2]=a[b];break;default:throw"internal emscriptenWebGLGetUniform() error, bad type: "+d;}else X(1281)}
function De(a,b,c,d){if(c)if(a=G.getVertexAttrib(a,b),34975==b)h[c>>2]=a&&a.name;else if("number"==typeof a||"boolean"==typeof a)switch(d){case 0:h[c>>2]=a;break;case 2:w[c>>2]=a;break;case 5:h[c>>2]=Math.fround(a);break;default:throw"internal emscriptenWebGLGetVertexAttrib() error, bad type: "+d;}else for(b=0;b<a.length;b++)switch(d){case 0:h[c+4*b>>2]=a[b];break;case 2:w[c+4*b>>2]=a[b];break;case 5:h[c+4*b>>2]=Math.fround(a[b]);break;default:throw"internal emscriptenWebGLGetVertexAttrib() error, bad type: "+
d;}else X(1281)}function Ee(a){a-=5120;return 0==a?eb:1==a?Qa:2==a?Va:4==a?h:6==a?w:5==a||28922==a||28520==a||30779==a||30782==a?gb:Ua}function Fe(a){return 31-Math.clz32(a.BYTES_PER_ELEMENT)}function Ge(a,b,c,d,e){a=Ee(a);var k=Fe(a),n=me;return a.subarray(e>>k,e+d*(c*({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[b-6402]||1)*(1<<k)+n-1&-n)>>k)}var He=0;
function Ie(a,b,c,d){a|=0;b|=0;c|=0;d|=0;var e=0;He=He+1|0;for(h[a>>2]=He;(e|0)<(d|0);){if(0==(h[c+(e<<3)>>2]|0))return h[c+(e<<3)>>2]=He,h[c+((e<<3)+4)>>2]=b,h[c+((e<<3)+8)>>2]=0,Ia=d|0,c|0;e=e+1|0}d=2*d|0;c=Je(c|0,8*(d+1|0)|0)|0;c=Ie(a|0,b|0,c|0,d|0)|0;Ia=d|0;return c|0}var Ke={};
function Le(){if(!Me){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"===typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:ia||"./this.program"},b;for(b in Ke)a[b]=Ke[b];var c=[];for(b in a)c.push(b+"="+a[b]);Me=c}return Me}var Me;function Ne(a){return 0===a%4&&(0!==a%100||0===a%400)}function Oe(a,b){for(var c=0,d=0;d<=b;c+=a[d++]);return c}
var Pe=[31,29,31,30,31,30,31,31,30,31,30,31],Qe=[31,28,31,30,31,30,31,31,30,31,30,31];function Re(a,b){for(a=new Date(a.getTime());0<b;){var c=a.getMonth(),d=(Ne(a.getFullYear())?Pe:Qe)[c];if(b>d-a.getDate())b-=d-a.getDate()+1,a.setDate(1),11>c?a.setMonth(c+1):(a.setMonth(0),a.setFullYear(a.getFullYear()+1));else{a.setDate(a.getDate()+b);break}}return a}
function Se(a,b,c,d){function e(A,Q,ba){for(A="number"===typeof A?A.toString():A||"";A.length<Q;)A=ba[0]+A;return A}function k(A,Q){return e(A,Q,"0")}function n(A,Q){function ba(sa){return 0>sa?-1:0<sa?1:0}var S;0===(S=ba(A.getFullYear()-Q.getFullYear()))&&0===(S=ba(A.getMonth()-Q.getMonth()))&&(S=ba(A.getDate()-Q.getDate()));return S}function q(A){switch(A.getDay()){case 0:return new Date(A.getFullYear()-1,11,29);case 1:return A;case 2:return new Date(A.getFullYear(),0,3);case 3:return new Date(A.getFullYear(),
0,2);case 4:return new Date(A.getFullYear(),0,1);case 5:return new Date(A.getFullYear()-1,11,31);case 6:return new Date(A.getFullYear()-1,11,30)}}function v(A){A=Re(new Date(A.Hk+1900,0,1),A.Nl);var Q=new Date(A.getFullYear()+1,0,4),ba=q(new Date(A.getFullYear(),0,4));Q=q(Q);return 0>=n(ba,A)?0>=n(Q,A)?A.getFullYear()+1:A.getFullYear():A.getFullYear()-1}var z=h[d+40>>2];d={cn:h[d>>2],bn:h[d+4>>2],Ll:h[d+8>>2],Cl:h[d+12>>2],rl:h[d+16>>2],Hk:h[d+20>>2],Ml:h[d+24>>2],Nl:h[d+28>>2],un:h[d+32>>2],an:h[d+
36>>2],dn:z?Pa(z):""};c=Pa(c);z={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var H in z)c=c.replace(new RegExp(H,"g"),z[H]);var M="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
O="January February March April May June July August September October November December".split(" ");z={"%a":function(A){return M[A.Ml].substring(0,3)},"%A":function(A){return M[A.Ml]},"%b":function(A){return O[A.rl].substring(0,3)},"%B":function(A){return O[A.rl]},"%C":function(A){return k((A.Hk+1900)/100|0,2)},"%d":function(A){return k(A.Cl,2)},"%e":function(A){return e(A.Cl,2," ")},"%g":function(A){return v(A).toString().substring(2)},"%G":function(A){return v(A)},"%H":function(A){return k(A.Ll,
2)},"%I":function(A){A=A.Ll;0==A?A=12:12<A&&(A-=12);return k(A,2)},"%j":function(A){return k(A.Cl+Oe(Ne(A.Hk+1900)?Pe:Qe,A.rl-1),3)},"%m":function(A){return k(A.rl+1,2)},"%M":function(A){return k(A.bn,2)},"%n":function(){return"\n"},"%p":function(A){return 0<=A.Ll&&12>A.Ll?"AM":"PM"},"%S":function(A){return k(A.cn,2)},"%t":function(){return"\t"},"%u":function(A){return A.Ml||7},"%U":function(A){var Q=new Date(A.Hk+1900,0,1),ba=0===Q.getDay()?Q:Re(Q,7-Q.getDay());A=new Date(A.Hk+1900,A.rl,A.Cl);return 0>
n(ba,A)?k(Math.ceil((31-ba.getDate()+(Oe(Ne(A.getFullYear())?Pe:Qe,A.getMonth()-1)-31)+A.getDate())/7),2):0===n(ba,Q)?"01":"00"},"%V":function(A){var Q=new Date(A.Hk+1901,0,4),ba=q(new Date(A.Hk+1900,0,4));Q=q(Q);var S=Re(new Date(A.Hk+1900,0,1),A.Nl);return 0>n(S,ba)?"53":0>=n(Q,S)?"01":k(Math.ceil((ba.getFullYear()<A.Hk+1900?A.Nl+32-ba.getDate():A.Nl+1-ba.getDate())/7),2)},"%w":function(A){return A.Ml},"%W":function(A){var Q=new Date(A.Hk,0,1),ba=1===Q.getDay()?Q:Re(Q,0===Q.getDay()?1:7-Q.getDay()+
1);A=new Date(A.Hk+1900,A.rl,A.Cl);return 0>n(ba,A)?k(Math.ceil((31-ba.getDate()+(Oe(Ne(A.getFullYear())?Pe:Qe,A.getMonth()-1)-31)+A.getDate())/7),2):0===n(ba,Q)?"01":"00"},"%y":function(A){return(A.Hk+1900).toString().substring(2)},"%Y":function(A){return A.Hk+1900},"%z":function(A){A=A.an;var Q=0<=A;A=Math.abs(A)/60;return(Q?"+":"-")+String("0000"+(A/60*100+A%60)).slice(-4)},"%Z":function(A){return A.dn},"%%":function(){return"%"}};for(H in z)0<=c.indexOf(H)&&(c=c.replace(new RegExp(H,"g"),z[H](d)));
H=Te(c);if(H.length>b)return 0;eb.set(H,a);return H.length-1}Vb=g.InternalError=Ub("InternalError");for(var Ue=Array(256),Ve=0;256>Ve;++Ve)Ue[Ve]=String.fromCharCode(Ve);ac=Ue;cc=g.BindingError=Ub("BindingError");oc.prototype.isAliasOf=function(a){if(!(this instanceof oc&&a instanceof oc))return!1;var b=this.rk.Ck.wk,c=this.rk.yk,d=a.rk.Ck.wk;for(a=a.rk.yk;b.Rk;)c=b.Dl(c),b=b.Rk;for(;d.Rk;)a=d.Dl(a),d=d.Rk;return b===d&&c===a};
oc.prototype.clone=function(){this.rk.yk||fc(this);if(this.rk.Al)return this.rk.count.value+=1,this;var a=kc(Object.create(Object.getPrototypeOf(this),{rk:{value:ec(this.rk)}}));a.rk.count.value+=1;a.rk.pl=!1;return a};oc.prototype["delete"]=function(){this.rk.yk||fc(this);this.rk.pl&&!this.rk.Al&&dc("Object already scheduled for deletion");ic(this);jc(this.rk);this.rk.Al||(this.rk.Kk=void 0,this.rk.yk=void 0)};oc.prototype.isDeleted=function(){return!this.rk.yk};
oc.prototype.deleteLater=function(){this.rk.yk||fc(this);this.rk.pl&&!this.rk.Al&&dc("Object already scheduled for deletion");mc.push(this);1===mc.length&&lc&&lc(nc);this.rk.pl=!0;return this};Dc.prototype.Cm=function(a){this.jm&&(a=this.jm(a));return a};Dc.prototype.em=function(a){this.Ok&&this.Ok(a)};Dc.prototype.argPackAdvance=8;Dc.prototype.readValueFromPointer=Ob;Dc.prototype.deleteObject=function(a){if(null!==a)a["delete"]()};
Dc.prototype.fromWireType=function(a){function b(){return this.Jl?Cc(this.wk.ql,{Ck:this.Qm,yk:c,Pk:this,Kk:a}):Cc(this.wk.ql,{Ck:this,yk:a})}var c=this.Cm(a);if(!c)return this.em(a),null;var d=Bc(this.wk,c);if(void 0!==d){if(0===d.rk.count.value)return d.rk.yk=c,d.rk.Kk=a,d.clone();d=d.clone();this.em(a);return d}d=this.wk.Bm(c);d=pc[d];if(!d)return b.call(this);d=this.Il?d.sm:d.pointerType;var e=zc(c,this.wk,d.wk);return null===e?b.call(this):this.Jl?Cc(d.wk.ql,{Ck:d,yk:e,Pk:this,Kk:a}):Cc(d.wk.ql,
{Ck:d,yk:e})};g.getInheritedInstanceCount=function(){return Object.keys(Ac).length};g.getLiveInheritedInstances=function(){var a=[],b;for(b in Ac)Ac.hasOwnProperty(b)&&a.push(Ac[b]);return a};g.flushPendingDeletes=nc;g.setDelayFunction=function(a){lc=a;mc.length&&lc&&lc(nc)};Gc=g.UnboundTypeError=Ub("UnboundTypeError");g.count_emval_handles=function(){for(var a=0,b=5;b<Sc.length;++b)void 0!==Sc[b]&&++a;return a};
g.get_first_emval=function(){for(var a=5;a<Sc.length;++a)if(void 0!==Sc[a])return Sc[a];return null};g.requestFullscreen=function(a,b){Nd(a,b)};g.requestAnimationFrame=function(a){ld(a)};g.setCanvasSize=function(a,b,c){Pd(g.canvas,a,b);c||Qd()};g.pauseMainLoop=function(){id=null;od++};g.resumeMainLoop=function(){od++;var a=fd,b=gd,c=hd;hd=null;md(c);ed(a,b);id()};g.getUserMedia=function(){window.getUserMedia||(window.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia);window.getUserMedia(void 0)};
g.createContext=function(a,b,c,d){return Fd(a,b,c,d)};for(var G,We=new Float32Array(256),Xe=0;256>Xe;Xe++)oe[Xe]=We.subarray(0,Xe+1);var Ye=new Int32Array(256);for(Xe=0;256>Xe;Xe++)pe[Xe]=Ye.subarray(0,Xe+1);for(var Ze=0;32>Ze;Ze++)ve.push(Array(Ze));function Te(a){var b=Array(ca(a)+1);Ra(a,b,0,b.length);return b}
var uf={Ae:function(a){return db(a)},pe:function(a){"uncaught_exception"in Ib?Ib.km++:Ib.km=1;throw a;},Bg:function(){h[$e()>>2]=63;return-1},S:function(){return 0},Hg:function(){},Dg:function(){return 0},Eg:function(a,b,c,d,e,k){k<<=12;0!==(d&16)&&0!==a%16384?b=-28:0!==(d&32)?(a=af(16384,b))?(bf(a,0,b),Jb[a]={Om:a,Mm:b,rm:!0,fd:e,tn:c,flags:d,offset:k},b=a):b=-48:b=-52;return b},Fg:function(a,b){if(-1===(a|0)||0===b)a=-28;else{var c=Jb[a];c&&b===c.Mm&&(Jb[a]=null,c.rm&&Mc(c.Om));a=0}return a},U:function(){},
Gg:function(){},T:function(){},I:function(a){var b=Mb[a];delete Mb[a];var c=b.elements,d=c.length,e=c.map(function(q){return q.Wl}).concat(c.map(function(q){return q.$l})),k=b.Bl,n=b.Ok;Xb([a],e,function(q){c.forEach(function(v,z){var H=q[z],M=v.Ul,O=v.Vl,A=q[z+d],Q=v.Zl,ba=v.am;v.read=function(S){return H.fromWireType(M(O,S))};v.write=function(S,sa){var qa=[];Q(ba,S,A.toWireType(qa,sa));Nb(qa)}});return[{name:b.name,fromWireType:function(v){for(var z=Array(d),H=0;H<d;++H)z[H]=c[H].read(v);n(v);return z},
toWireType:function(v,z){if(d!==z.length)throw new TypeError("Incorrect number of tuple elements for "+b.name+": expected="+d+", actual="+z.length);for(var H=k(),M=0;M<d;++M)c[M].write(H,z[M]);null!==v&&v.push(n,H);return H},argPackAdvance:8,readValueFromPointer:Ob,Jk:n}]})},w:function(a){var b=Zb[a];delete Zb[a];var c=b.Bl,d=b.Ok,e=b.fm,k=e.map(function(n){return n.Wl}).concat(e.map(function(n){return n.$l}));Xb([a],k,function(n){var q={};e.forEach(function(v,z){var H=n[z],M=v.Ul,O=v.Vl,A=n[z+e.length],
Q=v.Zl,ba=v.am;q[v.xm]={read:function(S){return H.fromWireType(M(O,S))},write:function(S,sa){var qa=[];Q(ba,S,A.toWireType(qa,sa));Nb(qa)}}});return[{name:b.name,fromWireType:function(v){var z={},H;for(H in q)z[H]=q[H].read(v);d(v);return z},toWireType:function(v,z){for(var H in q)if(!(H in z))throw new TypeError("Missing field");var M=c();for(H in q)q[H].write(M,z[H]);null!==v&&v.push(d,M);return M},argPackAdvance:8,readValueFromPointer:Ob,Jk:d}]})},Jg:function(a,b,c,d,e){var k=$b(c);b=bc(b);Yb(a,
{name:b,fromWireType:function(n){return!!n},toWireType:function(n,q){return q?d:e},argPackAdvance:8,readValueFromPointer:function(n){if(1===c)var q=eb;else if(2===c)q=Va;else if(4===c)q=h;else throw new TypeError("Unknown boolean type size: "+b);return this.fromWireType(q[n>>k])},Jk:null})},i:function(a,b,c,d,e,k,n,q,v,z,H,M,O){H=bc(H);k=Fc(e,k);q&&(q=Fc(n,q));z&&(z=Fc(v,z));O=Fc(M,O);var A=Sb(H);rc(A,function(){Nc("Cannot construct "+H+" due to unbound types",[d])});Xb([a,b,c],d?[d]:[],function(Q){Q=
Q[0];if(d){var ba=Q.wk;var S=ba.ql}else S=oc.prototype;Q=Tb(A,function(){if(Object.getPrototypeOf(this)!==sa)throw new cc("Use 'new' to construct "+H);if(void 0===qa.$k)throw new cc(H+" has no accessible constructor");var hb=qa.$k[arguments.length];if(void 0===hb)throw new cc("Tried to invoke ctor of "+H+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(qa.$k).toString()+") parameters instead!");return hb.apply(this,arguments)});var sa=Object.create(S,{constructor:{value:Q}});
Q.prototype=sa;var qa=new sc(H,Q,sa,O,ba,k,q,z);ba=new Dc(H,qa,!0,!1,!1);S=new Dc(H+"*",qa,!1,!1,!1);var Wa=new Dc(H+" const*",qa,!1,!0,!1);pc[a]={pointerType:S,sm:Wa};Ec(A,Q);return[ba,S,Wa]})},m:function(a,b,c,d,e,k,n){var q=Qc(c,d);b=bc(b);k=Fc(e,k);Xb([],[a],function(v){function z(){Nc("Cannot call "+H+" due to unbound types",q)}v=v[0];var H=v.name+"."+b,M=v.wk.constructor;void 0===M[b]?(z.ol=c-1,M[b]=z):(qc(M,b,H),M[b].Fk[c-1]=z);Xb([],q,function(O){O=[O[0],null].concat(O.slice(1));O=Pc(H,O,
null,k,n);void 0===M[b].Fk?(O.ol=c-1,M[b]=O):M[b].Fk[c-1]=O;return[]});return[]})},y:function(a,b,c,d,e,k){assert(0<b);var n=Qc(b,c);e=Fc(d,e);var q=[k],v=[];Xb([],[a],function(z){z=z[0];var H="constructor "+z.name;void 0===z.wk.$k&&(z.wk.$k=[]);if(void 0!==z.wk.$k[b-1])throw new cc("Cannot register multiple constructors with identical number of parameters ("+(b-1)+") for class '"+z.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");z.wk.$k[b-
1]=function(){Nc("Cannot construct "+z.name+" due to unbound types",n)};Xb([],n,function(M){z.wk.$k[b-1]=function(){arguments.length!==b-1&&dc(H+" called with "+arguments.length+" arguments, expected "+(b-1));v.length=0;q.length=b;for(var O=1;O<b;++O)q[O]=M[O].toWireType(v,arguments[O-1]);O=e.apply(null,q);Nb(v);return M[0].fromWireType(O)};return[]});return[]})},d:function(a,b,c,d,e,k,n,q){var v=Qc(c,d);b=bc(b);k=Fc(e,k);Xb([],[a],function(z){function H(){Nc("Cannot call "+M+" due to unbound types",
v)}z=z[0];var M=z.name+"."+b;q&&z.wk.Rm.push(b);var O=z.wk.ql,A=O[b];void 0===A||void 0===A.Fk&&A.className!==z.name&&A.ol===c-2?(H.ol=c-2,H.className=z.name,O[b]=H):(qc(O,b,M),O[b].Fk[c-2]=H);Xb([],v,function(Q){Q=Pc(M,Q,z,k,n);void 0===O[b].Fk?(Q.ol=c-2,O[b]=Q):O[b].Fk[c-2]=Q;return[]});return[]})},_:function(a,b,c){a=bc(a);Xb([],[b],function(d){d=d[0];g[a]=d.fromWireType(c);return[]})},Ig:function(a,b){b=bc(b);Yb(a,{name:b,fromWireType:function(c){var d=Sc[c].value;Tc(c);return d},toWireType:function(c,
d){return xc(d)},argPackAdvance:8,readValueFromPointer:Ob,Jk:null})},p:function(a,b,c,d){function e(){}c=$b(c);b=bc(b);e.values={};Yb(a,{name:b,constructor:e,fromWireType:function(k){return this.constructor.values[k]},toWireType:function(k,n){return n.value},argPackAdvance:8,readValueFromPointer:Uc(b,c,d),Jk:null});rc(b,e)},o:function(a,b,c){var d=Vc(a,"enum");b=bc(b);a=d.constructor;d=Object.create(d.constructor.prototype,{value:{value:c},constructor:{value:Tb(d.name+"_"+b,function(){})}});a.values[c]=
d;a[b]=d},V:function(a,b,c){c=$b(c);b=bc(b);Yb(a,{name:b,fromWireType:function(d){return d},toWireType:function(d,e){if("number"!==typeof e&&"boolean"!==typeof e)throw new TypeError('Cannot convert "'+vc(e)+'" to '+this.name);return e},argPackAdvance:8,readValueFromPointer:Wc(b,c),Jk:null})},n:function(a,b,c,d,e,k){var n=Qc(b,c);a=bc(a);e=Fc(d,e);rc(a,function(){Nc("Cannot call "+a+" due to unbound types",n)},b-1);Xb([],n,function(q){q=[q[0],null].concat(q.slice(1));Ec(a,Pc(a,q,null,e,k),b-1);return[]})},
A:function(a,b,c,d,e){function k(z){return z}b=bc(b);-1===e&&(e=4294967295);var n=$b(c);if(0===d){var q=32-8*c;k=function(z){return z<<q>>>q}}var v=-1!=b.indexOf("unsigned");Yb(a,{name:b,fromWireType:k,toWireType:function(z,H){if("number"!==typeof H&&"boolean"!==typeof H)throw new TypeError('Cannot convert "'+vc(H)+'" to '+this.name);if(H<d||H>e)throw new TypeError('Passing a number "'+vc(H)+'" from JS side to C/C++ side to an argument of type "'+b+'", which is outside the valid range ['+d+", "+e+
"]!");return v?H>>>0:H|0},argPackAdvance:8,readValueFromPointer:Xc(b,n,0!==d),Jk:null})},z:function(a,b,c){function d(k){k>>=2;var n=gb;return new e(fb,n[k+1],n[k])}var e=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][b];c=bc(c);Yb(a,{name:c,fromWireType:d,argPackAdvance:8,readValueFromPointer:d},{Fm:!0})},r:function(a,b,c,d,e,k,n,q,v,z,H,M){c=bc(c);k=Fc(e,k);q=Fc(n,q);z=Fc(v,z);M=Fc(H,M);Xb([a],[b],function(O){O=O[0];return[new Dc(c,O.wk,!1,!1,!0,O,
d,k,q,z,M)]})},W:function(a,b){b=bc(b);var c="std::string"===b;Yb(a,{name:b,fromWireType:function(d){var e=gb[d>>2];if(c)for(var k=d+4,n=0;n<=e;++n){var q=d+4+n;if(0==Qa[q]||n==e){k=Pa(k,q-k);if(void 0===v)var v=k;else v+=String.fromCharCode(0),v+=k;k=q+1}}else{v=Array(e);for(n=0;n<e;++n)v[n]=String.fromCharCode(Qa[d+4+n]);v=v.join("")}Mc(d);return v},toWireType:function(d,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var k="string"===typeof e;k||e instanceof Uint8Array||e instanceof Uint8ClampedArray||
e instanceof Int8Array||dc("Cannot pass non-string to std::string");var n=(c&&k?function(){return ca(e)}:function(){return e.length})(),q=db(4+n+1);gb[q>>2]=n;if(c&&k)ea(e,q+4,n+1);else if(k)for(k=0;k<n;++k){var v=e.charCodeAt(k);255<v&&(Mc(q),dc("String has UTF-16 code units that do not fit in 8 bits"));Qa[q+4+k]=v}else for(k=0;k<n;++k)Qa[q+4+k]=e[k];null!==d&&d.push(Mc,q);return q},argPackAdvance:8,readValueFromPointer:Ob,Jk:function(d){Mc(d)}})},M:function(a,b,c){c=bc(c);if(2===b){var d=Ta;var e=
Ya;var k=Za;var n=function(){return Ua};var q=1}else 4===b&&(d=$a,e=ab,k=bb,n=function(){return gb},q=2);Yb(a,{name:c,fromWireType:function(v){for(var z=gb[v>>2],H=n(),M,O=v+4,A=0;A<=z;++A){var Q=v+4+A*b;if(0==H[Q>>q]||A==z)O=d(O,Q-O),void 0===M?M=O:(M+=String.fromCharCode(0),M+=O),O=Q+b}Mc(v);return M},toWireType:function(v,z){"string"!==typeof z&&dc("Cannot pass non-string to C++ string type "+c);var H=k(z),M=db(4+H+b);gb[M>>2]=H>>q;e(z,M+4,H+b);null!==v&&v.push(Mc,M);return M},argPackAdvance:8,
readValueFromPointer:Ob,Jk:function(v){Mc(v)}})},K:function(a,b,c,d,e,k){Mb[a]={name:bc(b),Bl:Fc(c,d),Ok:Fc(e,k),elements:[]}},J:function(a,b,c,d,e,k,n,q,v){Mb[a].elements.push({Wl:b,Ul:Fc(c,d),Vl:e,$l:k,Zl:Fc(n,q),am:v})},x:function(a,b,c,d,e,k){Zb[a]={name:bc(b),Bl:Fc(c,d),Ok:Fc(e,k),fm:[]}},h:function(a,b,c,d,e,k,n,q,v,z){Zb[a].fm.push({xm:bc(b),Wl:c,Ul:Fc(d,e),Vl:k,$l:n,Zl:Fc(q,v),am:z})},Kg:function(a,b){b=bc(b);Yb(a,{Hm:!0,name:b,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},
D:function(a,b,c,d){a=$c[a];b=ad(b);c=Zc(c);a(b,c,null,d)},la:Tc,C:function(a,b){b=cd(a,b);for(var c=b[0],d=c.name+"_$"+b.slice(1).map(function(z){return z.name}).join("_")+"$",e=["retType"],k=[c],n="",q=0;q<a-1;++q)n+=(0!==q?", ":"")+"arg"+q,e.push("argType"+q),k.push(b[1+q]);d="return function "+Sb("methodCaller_"+d)+"(handle, name, destructors, args) {\n";var v=0;for(q=0;q<a-1;++q)d+="    var arg"+q+" = argType"+q+".readValueFromPointer(args"+(v?"+"+v:"")+");\n",v+=b[q+1].argPackAdvance;d+="    var rv = handle[name]("+
n+");\n";for(q=0;q<a-1;++q)b[q+1].deleteObject&&(d+="    argType"+q+".deleteObject(arg"+q+");\n");c.Hm||(d+="    return retType.toWireType(destructors, rv);\n");e.push(d+"};\n");a=Oc(e).apply(null,k);return bd(a)},df:function(a){4<a&&(Sc[a].Yl+=1)},wa:function(){return xc([])},Ha:function(a){return xc(Zc(a))},ee:function(){return xc({})},H:function(a,b,c){a=ad(a);b=ad(b);c=ad(c);a[b]=c},B:function(a,b){a=Vc(a,"_emval_take_value");a=a.readValueFromPointer(b);return xc(a)},e:function(){Da()},xg:function(a,
b){if(0===a)a=Date.now();else if(1===a||4===a)a=dd();else return h[$e()>>2]=28,-1;h[b>>2]=a/1E3|0;h[b+4>>2]=a%1E3*1E6|0;return 0},hc:function(){return 0},Pg:function(a){return cf(a)},Yb:function(a,b){if(62E3!=a)return 0;if(Td[b])return Td[b];switch(b){case 12371:a=cb("Emscripten");break;case 12372:a=cb("1.4 Emscripten EGL");break;case 12373:a=cb("");break;case 12429:a=cb("OpenGL_ES");break;default:return 0}return Td[b]=a},ag:function(a){G.activeTexture(a)},$f:function(a,b){G.attachShader(L[a],ce[b])},
ad:function(a,b){G.beginQuery(a,fe[b])},qg:function(a,b){G.Nk.beginQueryEXT(a,ee[b])},Ic:function(a){G.beginTransformFeedback(a)},_f:function(a,b,c){G.bindAttribLocation(L[a],b,Pa(c))},Zf:function(a,b){35051==a?G.al=b:35052==a&&(G.Ek=b);G.bindBuffer(a,Zd[b])},Fc:function(a,b,c){G.bindBufferBase(a,b,Zd[c])},Gc:function(a,b,c,d,e){G.bindBufferRange(a,b,Zd[c],d,e)},Yf:function(a,b){G.bindFramebuffer(a,$d[b])},Xf:function(a,b){G.bindRenderbuffer(a,ae[b])},Ib:function(a,b){G.bindSampler(a,ge[b])},Wf:function(a,
b){G.bindTexture(a,be[b])},zb:function(a,b){G.bindTransformFeedback(a,he[b])},Nc:function(a){G.bindVertexArray(de[a])},ig:function(a){G.bindVertexArray(de[a])},Vf:function(a,b,c,d){G.blendColor(a,b,c,d)},Uf:function(a){G.blendEquation(a)},Tf:function(a,b){G.blendEquationSeparate(a,b)},Sf:function(a,b){G.blendFunc(a,b)},Rf:function(a,b,c,d){G.blendFuncSeparate(a,b,c,d)},Rc:function(a,b,c,d,e,k,n,q,v,z){G.blitFramebuffer(a,b,c,d,e,k,n,q,v,z)},Qf:function(a,b,c,d){2<=U.version?c?G.bufferData(a,Qa,d,
c,b):G.bufferData(a,b,d):G.bufferData(a,c?Qa.subarray(c,c+b):b,d)},Pf:function(a,b,c,d){2<=U.version?G.bufferSubData(a,b,Qa,d,c):G.bufferSubData(a,b,Qa.subarray(d,d+c))},Of:function(a){return G.checkFramebufferStatus(a)},Nf:function(a){G.clear(a)},fc:function(a,b,c,d){G.clearBufferfi(a,b,c,d)},gc:function(a,b,c){G.clearBufferfv(a,b,w,c>>2)},jc:function(a,b,c){G.clearBufferiv(a,b,h,c>>2)},ic:function(a,b,c){G.clearBufferuiv(a,b,gb,c>>2)},Mf:function(a,b,c,d){G.clearColor(a,b,c,d)},Lf:function(a){G.clearDepth(a)},
Kf:function(a){G.clearStencil(a)},Sb:function(a,b,c,d){return G.clientWaitSync(ie[a],b,(c>>>0)+4294967296*d)},Jf:function(a,b,c,d){G.colorMask(!!a,!!b,!!c,!!d)},If:function(a){G.compileShader(ce[a])},Hf:function(a,b,c,d,e,k,n,q){2<=U.version?G.Ek?G.compressedTexImage2D(a,b,c,d,e,k,n,q):G.compressedTexImage2D(a,b,c,d,e,k,Qa,q,n):G.compressedTexImage2D(a,b,c,d,e,k,q?Qa.subarray(q,q+n):null)},fd:function(a,b,c,d,e,k,n,q,v){G.Ek?G.compressedTexImage3D(a,b,c,d,e,k,n,q,v):G.compressedTexImage3D(a,b,c,d,
e,k,n,Qa,v,q)},Gf:function(a,b,c,d,e,k,n,q,v){2<=U.version?G.Ek?G.compressedTexSubImage2D(a,b,c,d,e,k,n,q,v):G.compressedTexSubImage2D(a,b,c,d,e,k,n,Qa,v,q):G.compressedTexSubImage2D(a,b,c,d,e,k,n,v?Qa.subarray(v,v+q):null)},ed:function(a,b,c,d,e,k,n,q,v,z,H){G.Ek?G.compressedTexSubImage3D(a,b,c,d,e,k,n,q,v,z,H):G.compressedTexSubImage3D(a,b,c,d,e,k,n,q,v,Qa,H,z)},dc:function(a,b,c,d,e){G.copyBufferSubData(a,b,c,d,e)},Ff:function(a,b,c,d,e,k,n,q){G.copyTexImage2D(a,b,c,d,e,k,n,q)},Ef:function(a,b,
c,d,e,k,n,q){G.copyTexSubImage2D(a,b,c,d,e,k,n,q)},gd:function(a,b,c,d,e,k,n,q,v){G.copyTexSubImage3D(a,b,c,d,e,k,n,q,v)},Df:function(){var a=ne(L),b=G.createProgram();b.name=a;L[a]=b;return a},Cf:function(a){var b=ne(ce);ce[b]=G.createShader(a);return b},Bf:function(a){G.cullFace(a)},Af:function(a,b){for(var c=0;c<a;c++){var d=h[b+4*c>>2],e=Zd[d];e&&(G.deleteBuffer(e),e.name=0,Zd[d]=null,d==te&&(te=0),d==ue&&(ue=0),d==G.al&&(G.al=0),d==G.Ek&&(G.Ek=0))}},zf:function(a,b){for(var c=0;c<a;++c){var d=
h[b+4*c>>2],e=$d[d];e&&(G.deleteFramebuffer(e),e.name=0,$d[d]=null)}},yf:function(a){if(a){var b=L[a];b?(G.deleteProgram(b),b.name=0,L[a]=null,je[a]=null):X(1281)}},cd:function(a,b){for(var c=0;c<a;c++){var d=h[b+4*c>>2],e=fe[d];e&&(G.deleteQuery(e),fe[d]=null)}},sg:function(a,b){for(var c=0;c<a;c++){var d=h[b+4*c>>2],e=ee[d];e&&(G.Nk.deleteQueryEXT(e),ee[d]=null)}},xf:function(a,b){for(var c=0;c<a;c++){var d=h[b+4*c>>2],e=ae[d];e&&(G.deleteRenderbuffer(e),e.name=0,ae[d]=null)}},Kb:function(a,b){for(var c=
0;c<a;c++){var d=h[b+4*c>>2],e=ge[d];e&&(G.deleteSampler(e),e.name=0,ge[d]=null)}},wf:function(a){if(a){var b=ce[a];b?(G.deleteShader(b),ce[a]=null):X(1281)}},Tb:function(a){if(a){var b=ie[a];b?(G.deleteSync(b),b.name=0,ie[a]=null):X(1281)}},vf:function(a,b){for(var c=0;c<a;c++){var d=h[b+4*c>>2],e=be[d];e&&(G.deleteTexture(e),e.name=0,be[d]=null)}},yb:function(a,b){for(var c=0;c<a;c++){var d=h[b+4*c>>2],e=he[d];e&&(G.deleteTransformFeedback(e),e.name=0,he[d]=null)}},Mc:function(a,b){for(var c=0;c<
a;c++){var d=h[b+4*c>>2];G.deleteVertexArray(de[d]);de[d]=null}},hg:function(a,b){for(var c=0;c<a;c++){var d=h[b+4*c>>2];G.deleteVertexArray(de[d]);de[d]=null}},uf:function(a){G.depthFunc(a)},tf:function(a){G.depthMask(!!a)},sf:function(a,b){G.depthRange(a,b)},rf:function(a,b){G.detachShader(L[a],ce[b])},qf:function(a){G.disable(a)},pf:function(a){G.disableVertexAttribArray(a)},of:function(a,b,c){G.drawArrays(a,b,c)},Xb:function(a,b,c,d){G.drawArraysInstanced(a,b,c,d)},dg:function(a,b,c,d){G.drawArraysInstanced(a,
b,c,d)},hb:function(a,b,c,d){G.drawArraysInstanced(a,b,c,d)},od:function(a,b,c,d){G.drawArraysInstanced(a,b,c,d)},ib:function(a,b,c,d){G.drawArraysInstanced(a,b,c,d)},Yc:function(a,b){for(var c=ve[a],d=0;d<a;d++)c[d]=h[b+4*d>>2];G.drawBuffers(c)},md:function(a,b){for(var c=ve[a],d=0;d<a;d++)c[d]=h[b+4*d>>2];G.drawBuffers(c)},eg:function(a,b){for(var c=ve[a],d=0;d<a;d++)c[d]=h[b+4*d>>2];G.drawBuffers(c)},nf:function(a,b,c,d){G.drawElements(a,b,c,d)},Wb:function(a,b,c,d,e){G.drawElementsInstanced(a,
b,c,d,e)},cg:function(a,b,c,d,e){G.drawElementsInstanced(a,b,c,d,e)},eb:function(a,b,c,d,e){G.drawElementsInstanced(a,b,c,d,e)},fb:function(a,b,c,d,e){G.drawElementsInstanced(a,b,c,d,e)},nd:function(a,b,c,d,e){G.drawElementsInstanced(a,b,c,d,e)},kd:function(a,b,c,d,e,k){we(a,d,e,k)},mf:function(a){G.enable(a)},lf:function(a){G.enableVertexAttribArray(a)},$c:function(a){G.endQuery(a)},pg:function(a){G.Nk.endQueryEXT(a)},Hc:function(){G.endTransformFeedback()},Vb:function(a,b){return(a=G.fenceSync(a,
b))?(b=ne(ie),a.name=b,ie[b]=a,b):0},kf:function(){G.finish()},jf:function(){G.flush()},hf:function(a,b,c,d){G.framebufferRenderbuffer(a,b,c,ae[d])},gf:function(a,b,c,d,e){G.framebufferTexture2D(a,b,c,be[d],e)},Pc:function(a,b,c,d,e){G.framebufferTextureLayer(a,b,be[c],d,e)},ff:function(a){G.frontFace(a)},ef:function(a,b){xe(a,b,"createBuffer",Zd)},bf:function(a,b){xe(a,b,"createFramebuffer",$d)},dd:function(a,b){xe(a,b,"createQuery",fe)},tg:function(a,b){for(var c=0;c<a;c++){var d=G.Nk.createQueryEXT();
if(!d){for(X(1282);c<a;)h[b+4*c++>>2]=0;break}var e=ne(ee);d.name=e;ee[e]=d;h[b+4*c>>2]=e}},af:function(a,b){xe(a,b,"createRenderbuffer",ae)},Lb:function(a,b){xe(a,b,"createSampler",ge)},$e:function(a,b){xe(a,b,"createTexture",be)},xb:function(a,b){xe(a,b,"createTransformFeedback",he)},Lc:function(a,b){xe(a,b,"createVertexArray",de)},gg:function(a,b){xe(a,b,"createVertexArray",de)},cf:function(a){G.generateMipmap(a)},_e:function(a,b,c,d,e,k,n){a=L[a];if(a=G.getActiveAttrib(a,b))c=0<c&&n?ea(a.name,
n,c):0,d&&(h[d>>2]=c),e&&(h[e>>2]=a.size),k&&(h[k>>2]=a.type)},Ze:function(a,b,c,d,e,k,n){a=L[a];if(a=G.getActiveUniform(a,b))c=0<c&&n?ea(a.name,n,c):0,d&&(h[d>>2]=c),e&&(h[e>>2]=a.size),k&&(h[k>>2]=a.type)},_b:function(a,b,c,d,e){a=L[a];if(a=G.getActiveUniformBlockName(a,b))e&&0<c?(c=ea(a,e,c),d&&(h[d>>2]=c)):d&&(h[d>>2]=0)},$b:function(a,b,c,d){if(d)switch(a=L[a],c){case 35393:a=G.getActiveUniformBlockName(a,b);h[d>>2]=a.length+1;break;default:if(a=G.getActiveUniformBlockParameter(a,b,c))if("number"==
typeof a)h[d>>2]=a;else for(b=0;b<a.length;b++)h[d+4*b>>2]=a[b]}else X(1281)},bc:function(a,b,c,d,e){if(e)if(0<b&&0==c)X(1281);else{a=L[a];for(var k=[],n=0;n<b;n++)k.push(h[c+4*n>>2]);if(a=G.getActiveUniforms(a,k,d))for(b=a.length,n=0;n<b;n++)h[e+4*n>>2]=a[n]}else X(1281)},Ye:function(a,b,c,d){a=G.getAttachedShaders(L[a]);var e=a.length;e>b&&(e=b);h[c>>2]=e;for(b=0;b<e;++b)h[d+4*b>>2]=ce.indexOf(a[b])},Xe:function(a,b){return G.getAttribLocation(L[a],Pa(b))},We:function(a,b){ze(a,b,4)},Mb:function(a,
b,c){c?ye(c,G.getBufferParameter(a,b)):X(1281)},Ve:function(a,b,c){c?h[c>>2]=G.getBufferParameter(a,b):X(1281)},Ue:function(){var a=G.getError()||Yd;Yd=0;return a},Te:function(a,b){ze(a,b,2)},tc:function(a,b){return G.getFragDataLocation(L[a],Pa(b))},Se:function(a,b,c,d){a=G.getFramebufferAttachmentParameter(a,b,c);if(a instanceof WebGLRenderbuffer||a instanceof WebGLTexture)a=a.name|0;h[d>>2]=a},Ob:function(a,b,c){Ae(a,b,c,1)},Qb:function(a,b){ze(a,b,1)},Jc:function(a,b,c){Ae(a,b,c,0)},Re:function(a,
b){ze(a,b,0)},lb:function(a,b,c,d,e){if(0>d)X(1281);else if(e){if(a=G.getInternalformatParameter(a,b,c),null!==a)for(b=0;b<a.length&&b<d;++b)h[e+b>>2]=a[b]}else X(1281)},tb:function(){X(1282)},Pe:function(a,b,c,d){a=G.getProgramInfoLog(L[a]);null===a&&(a="(unknown error)");b=0<b&&d?ea(a,d,b):0;c&&(h[c>>2]=b)},Qe:function(a,b,c){if(c)if(a>=Xd)X(1281);else{var d=je[a];if(d)if(35716==b)a=G.getProgramInfoLog(L[a]),null===a&&(a="(unknown error)"),h[c>>2]=a.length+1;else if(35719==b)h[c>>2]=d.Kl;else if(35722==
b){if(-1==d.Sk){a=L[a];var e=G.getProgramParameter(a,35721);for(b=d.Sk=0;b<e;++b)d.Sk=Math.max(d.Sk,G.getActiveAttrib(a,b).name.length+1)}h[c>>2]=d.Sk}else if(35381==b){if(-1==d.Tk)for(a=L[a],e=G.getProgramParameter(a,35382),b=d.Tk=0;b<e;++b)d.Tk=Math.max(d.Tk,G.getActiveUniformBlockName(a,b).length+1);h[c>>2]=d.Tk}else h[c>>2]=G.getProgramParameter(L[a],b);else X(1282)}else X(1281)},kg:function(a,b,c){if(c){a=G.Nk.getQueryObjectEXT(ee[a],b);var d;"boolean"==typeof a?d=a?1:0:d=a;ye(c,d)}else X(1281)},
mg:function(a,b,c){if(c){a=G.Nk.getQueryObjectEXT(ee[a],b);var d;"boolean"==typeof a?d=a?1:0:d=a;h[c>>2]=d}else X(1281)},jg:function(a,b,c){if(c){a=G.Nk.getQueryObjectEXT(ee[a],b);var d;"boolean"==typeof a?d=a?1:0:d=a;ye(c,d)}else X(1281)},Zc:function(a,b,c){if(c){a=G.getQueryParameter(fe[a],b);var d;"boolean"==typeof a?d=a?1:0:d=a;h[c>>2]=d}else X(1281)},lg:function(a,b,c){if(c){a=G.Nk.getQueryObjectEXT(ee[a],b);var d;"boolean"==typeof a?d=a?1:0:d=a;h[c>>2]=d}else X(1281)},_c:function(a,b,c){c?h[c>>
2]=G.getQuery(a,b):X(1281)},ng:function(a,b,c){c?h[c>>2]=G.Nk.getQueryEXT(a,b):X(1281)},Oe:function(a,b,c){c?h[c>>2]=G.getRenderbufferParameter(a,b):X(1281)},Bb:function(a,b,c){c?(a=ge[a],w[c>>2]=G.getSamplerParameter(a,b)):X(1281)},Db:function(a,b,c){c?(a=ge[a],h[c>>2]=G.getSamplerParameter(a,b)):X(1281)},Me:function(a,b,c,d){a=G.getShaderInfoLog(ce[a]);null===a&&(a="(unknown error)");b=0<b&&d?ea(a,d,b):0;c&&(h[c>>2]=b)},Le:function(a,b,c,d){a=G.getShaderPrecisionFormat(a,b);h[c>>2]=a.rangeMin;h[c+
4>>2]=a.rangeMax;h[d>>2]=a.precision},Ke:function(a,b,c,d){if(a=G.getShaderSource(ce[a]))b=0<b&&d?ea(a,d,b):0,c&&(h[c>>2]=b)},Ne:function(a,b,c){c?35716==b?(a=G.getShaderInfoLog(ce[a]),null===a&&(a="(unknown error)"),h[c>>2]=a.length+1):35720==b?(a=G.getShaderSource(ce[a]),h[c>>2]=null===a||0==a.length?0:a.length+1):h[c>>2]=G.getShaderParameter(ce[a],b):X(1281)},Je:function(a){if(ke[a])return ke[a];switch(a){case 7939:var b=G.getSupportedExtensions()||[];b=b.concat(b.map(function(d){return"GL_"+d}));
b=Be(b.join(" "));break;case 7936:case 7937:case 37445:case 37446:(b=G.getParameter(a))||X(1280);b=Be(b);break;case 7938:b=G.getParameter(7938);b=2<=U.version?"OpenGL ES 3.0 ("+b+")":"OpenGL ES 2.0 ("+b+")";b=Be(b);break;case 35724:b=G.getParameter(35724);var c=b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);null!==c&&(3==c[1].length&&(c[1]+="0"),b="OpenGL ES GLSL ES "+c[1]+" ("+b+")");b=Be(b);break;default:return X(1280),0}return ke[a]=b},ec:function(a,b){if(2>U.version)return X(1282),0;
var c=le[a];if(c)return 0>b||b>=c.length?(X(1281),0):c[b];switch(a){case 7939:return c=G.getSupportedExtensions()||[],c=c.concat(c.map(function(d){return"GL_"+d})),c=c.map(function(d){return Be(d)}),c=le[a]=c,0>b||b>=c.length?(X(1281),0):c[b];default:return X(1280),0}},Pb:function(a,b,c,d,e){0>c?X(1281):e?(a=G.getSyncParameter(ie[a],b),h[d>>2]=a,null!==a&&d&&(h[d>>2]=1)):X(1281)},Ie:function(a,b,c){c?w[c>>2]=G.getTexParameter(a,b):X(1281)},He:function(a,b,c){c?h[c>>2]=G.getTexParameter(a,b):X(1281)},
Cc:function(a,b,c,d,e,k,n){a=L[a];if(a=G.getTransformFeedbackVarying(a,b))n&&0<c?(c=ea(a.name,n,c),d&&(h[d>>2]=c)):d&&(h[d>>2]=0),e&&(h[e>>2]=a.size),k&&(h[k>>2]=a.type)},ac:function(a,b){return G.getUniformBlockIndex(L[a],Pa(b))},cc:function(a,b,c,d){if(d)if(0<b&&(0==c||0==d))X(1281);else{a=L[a];for(var e=[],k=0;k<b;k++)e.push(Pa(h[c+4*k>>2]));if(a=G.getUniformIndices(a,e))for(b=a.length,k=0;k<b;k++)h[d+4*k>>2]=a[k]}else X(1281)},Ee:function(a,b){b=Pa(b);var c=0;if("]"==b[b.length-1]){var d=b.lastIndexOf("[");
c="]"!=b[d+1]?parseInt(b.slice(d+1)):0;b=b.slice(0,d)}return(a=je[a]&&je[a].bm[b])&&0<=c&&c<a[0]?a[1]+c:-1},Ge:function(a,b,c){Ce(a,b,c,2)},Fe:function(a,b,c){Ce(a,b,c,0)},uc:function(a,b,c){Ce(a,b,c,0)},Ac:function(a,b,c){De(a,b,c,0)},zc:function(a,b,c){De(a,b,c,0)},Be:function(a,b,c){c?h[c>>2]=G.getVertexAttribOffset(a,b):X(1281)},De:function(a,b,c){De(a,b,c,2)},Ce:function(a,b,c){De(a,b,c,5)},ze:function(a,b){G.hint(a,b)},pb:function(a,b,c){for(var d=ve[b],e=0;e<b;e++)d[e]=h[c+4*e>>2];G.invalidateFramebuffer(a,
d)},ob:function(a,b,c,d,e,k,n){for(var q=ve[b],v=0;v<b;v++)q[v]=h[c+4*v>>2];G.invalidateSubFramebuffer(a,q,d,e,k,n)},ye:function(a){return(a=Zd[a])?G.isBuffer(a):0},xe:function(a){return G.isEnabled(a)},we:function(a){return(a=$d[a])?G.isFramebuffer(a):0},ve:function(a){return(a=L[a])?G.isProgram(a):0},bd:function(a){return(a=fe[a])?G.isQuery(a):0},rg:function(a){return(a=ee[a])?G.Nk.isQueryEXT(a):0},ue:function(a){return(a=ae[a])?G.isRenderbuffer(a):0},Jb:function(a){return(a=ge[a])?G.isSampler(a):
0},te:function(a){return(a=ce[a])?G.isShader(a):0},Ub:function(a){return G.isSync(ie[a])},se:function(a){return(a=be[a])?G.isTexture(a):0},wb:function(a){return G.isTransformFeedback(he[a])},Kc:function(a){return(a=de[a])?G.isVertexArray(a):0},fg:function(a){return(a=de[a])?G.isVertexArray(a):0},re:function(a){G.lineWidth(a)},qe:function(a){G.linkProgram(L[a]);se(a)},vb:function(){G.pauseTransformFeedback()},oe:function(a,b){3317==a&&(me=b);G.pixelStorei(a,b)},ne:function(a,b){G.polygonOffset(a,b)},
sb:function(){X(1280)},qb:function(){X(1280)},og:function(a,b){G.Nk.queryCounterEXT(ee[a],b)},ld:function(a){G.readBuffer(a)},me:function(a,b,c,d,e,k,n){if(2<=U.version)if(G.al)G.readPixels(a,b,c,d,e,k,n);else{var q=Ee(k);G.readPixels(a,b,c,d,e,k,q,n>>Fe(q))}else(n=Ge(k,e,c,d,n))?G.readPixels(a,b,c,d,e,k,n):X(1280)},le:function(){},ke:function(a,b,c,d){G.renderbufferStorage(a,b,c,d)},Qc:function(a,b,c,d,e){G.renderbufferStorageMultisample(a,b,c,d,e)},ub:function(){G.resumeTransformFeedback()},je:function(a,
b){G.sampleCoverage(a,!!b)},Fb:function(a,b,c){G.samplerParameterf(ge[a],b,c)},Eb:function(a,b,c){G.samplerParameterf(ge[a],b,w[c>>2])},Hb:function(a,b,c){G.samplerParameteri(ge[a],b,c)},Gb:function(a,b,c){G.samplerParameteri(ge[a],b,h[c>>2])},ie:function(a,b,c,d){G.scissor(a,b,c,d)},he:function(){X(1280)},ge:function(a,b,c,d){b=qe(b,c,d);G.shaderSource(ce[a],b)},fe:function(a,b,c){G.stencilFunc(a,b,c)},de:function(a,b,c,d){G.stencilFuncSeparate(a,b,c,d)},ce:function(a){G.stencilMask(a)},be:function(a,
b){G.stencilMaskSeparate(a,b)},ae:function(a,b,c){G.stencilOp(a,b,c)},$d:function(a,b,c,d){G.stencilOpSeparate(a,b,c,d)},_d:function(a,b,c,d,e,k,n,q,v){if(2<=U.version)if(G.Ek)G.texImage2D(a,b,c,d,e,k,n,q,v);else if(v){var z=Ee(q);G.texImage2D(a,b,c,d,e,k,n,q,z,v>>Fe(z))}else G.texImage2D(a,b,c,d,e,k,n,q,null);else G.texImage2D(a,b,c,d,e,k,n,q,v?Ge(q,n,d,e,v):null)},jd:function(a,b,c,d,e,k,n,q,v,z){if(G.Ek)G.texImage3D(a,b,c,d,e,k,n,q,v,z);else if(z){var H=Ee(v);G.texImage3D(a,b,c,d,e,k,n,q,v,H,z>>
Fe(H))}else G.texImage3D(a,b,c,d,e,k,n,q,v,null)},Zd:function(a,b,c){G.texParameterf(a,b,c)},Yd:function(a,b,c){G.texParameterf(a,b,w[c>>2])},Xd:function(a,b,c){G.texParameteri(a,b,c)},Wd:function(a,b,c){G.texParameteri(a,b,h[c>>2])},nb:function(a,b,c,d,e){G.texStorage2D(a,b,c,d,e)},mb:function(a,b,c,d,e,k){G.texStorage3D(a,b,c,d,e,k)},Vd:function(a,b,c,d,e,k,n,q,v){if(2<=U.version)if(G.Ek)G.texSubImage2D(a,b,c,d,e,k,n,q,v);else if(v){var z=Ee(q);G.texSubImage2D(a,b,c,d,e,k,n,q,z,v>>Fe(z))}else G.texSubImage2D(a,
b,c,d,e,k,n,q,null);else z=null,v&&(z=Ge(q,n,e,k,v)),G.texSubImage2D(a,b,c,d,e,k,n,q,z)},id:function(a,b,c,d,e,k,n,q,v,z,H){if(G.Ek)G.texSubImage3D(a,b,c,d,e,k,n,q,v,z,H);else if(H){var M=Ee(z);G.texSubImage3D(a,b,c,d,e,k,n,q,v,z,M,H>>Fe(M))}else G.texSubImage3D(a,b,c,d,e,k,n,q,v,z,null)},Ec:function(a,b,c,d){a=L[a];for(var e=[],k=0;k<b;k++)e.push(Pa(h[c+4*k>>2]));G.transformFeedbackVaryings(a,e,d)},Ud:function(a,b){G.uniform1f(N[a],b)},Td:function(a,b,c){if(2<=U.version)G.uniform1fv(N[a],w,c>>2,
b);else{if(256>=b)for(var d=oe[b-1],e=0;e<b;++e)d[e]=w[c+4*e>>2];else d=w.subarray(c>>2,c+4*b>>2);G.uniform1fv(N[a],d)}},Sd:function(a,b){G.uniform1i(N[a],b)},Rd:function(a,b,c){if(2<=U.version)G.uniform1iv(N[a],h,c>>2,b);else{if(256>=b)for(var d=pe[b-1],e=0;e<b;++e)d[e]=h[c+4*e>>2];else d=h.subarray(c>>2,c+4*b>>2);G.uniform1iv(N[a],d)}},rc:function(a,b){G.uniform1ui(N[a],b)},nc:function(a,b,c){G.uniform1uiv(N[a],gb,c>>2,b)},Qd:function(a,b,c){G.uniform2f(N[a],b,c)},Pd:function(a,b,c){if(2<=U.version)G.uniform2fv(N[a],
w,c>>2,2*b);else{if(256>=2*b)for(var d=oe[2*b-1],e=0;e<2*b;e+=2)d[e]=w[c+4*e>>2],d[e+1]=w[c+(4*e+4)>>2];else d=w.subarray(c>>2,c+8*b>>2);G.uniform2fv(N[a],d)}},Od:function(a,b,c){G.uniform2i(N[a],b,c)},Nd:function(a,b,c){if(2<=U.version)G.uniform2iv(N[a],h,c>>2,2*b);else{if(256>=2*b)for(var d=pe[2*b-1],e=0;e<2*b;e+=2)d[e]=h[c+4*e>>2],d[e+1]=h[c+(4*e+4)>>2];else d=h.subarray(c>>2,c+8*b>>2);G.uniform2iv(N[a],d)}},qc:function(a,b,c){G.uniform2ui(N[a],b,c)},mc:function(a,b,c){G.uniform2uiv(N[a],gb,c>>
2,2*b)},Md:function(a,b,c,d){G.uniform3f(N[a],b,c,d)},Ld:function(a,b,c){if(2<=U.version)G.uniform3fv(N[a],w,c>>2,3*b);else{if(256>=3*b)for(var d=oe[3*b-1],e=0;e<3*b;e+=3)d[e]=w[c+4*e>>2],d[e+1]=w[c+(4*e+4)>>2],d[e+2]=w[c+(4*e+8)>>2];else d=w.subarray(c>>2,c+12*b>>2);G.uniform3fv(N[a],d)}},Kd:function(a,b,c,d){G.uniform3i(N[a],b,c,d)},Jd:function(a,b,c){if(2<=U.version)G.uniform3iv(N[a],h,c>>2,3*b);else{if(256>=3*b)for(var d=pe[3*b-1],e=0;e<3*b;e+=3)d[e]=h[c+4*e>>2],d[e+1]=h[c+(4*e+4)>>2],d[e+2]=
h[c+(4*e+8)>>2];else d=h.subarray(c>>2,c+12*b>>2);G.uniform3iv(N[a],d)}},pc:function(a,b,c,d){G.uniform3ui(N[a],b,c,d)},lc:function(a,b,c){G.uniform3uiv(N[a],gb,c>>2,3*b)},Id:function(a,b,c,d,e){G.uniform4f(N[a],b,c,d,e)},Hd:function(a,b,c){if(2<=U.version)G.uniform4fv(N[a],w,c>>2,4*b);else{if(256>=4*b){var d=oe[4*b-1],e=w;c>>=2;for(var k=0;k<4*b;k+=4){var n=c+k;d[k]=e[n];d[k+1]=e[n+1];d[k+2]=e[n+2];d[k+3]=e[n+3]}}else d=w.subarray(c>>2,c+16*b>>2);G.uniform4fv(N[a],d)}},Gd:function(a,b,c,d,e){G.uniform4i(N[a],
b,c,d,e)},Fd:function(a,b,c){if(2<=U.version)G.uniform4iv(N[a],h,c>>2,4*b);else{if(256>=4*b)for(var d=pe[4*b-1],e=0;e<4*b;e+=4)d[e]=h[c+4*e>>2],d[e+1]=h[c+(4*e+4)>>2],d[e+2]=h[c+(4*e+8)>>2],d[e+3]=h[c+(4*e+12)>>2];else d=h.subarray(c>>2,c+16*b>>2);G.uniform4iv(N[a],d)}},oc:function(a,b,c,d,e){G.uniform4ui(N[a],b,c,d,e)},kc:function(a,b,c){G.uniform4uiv(N[a],gb,c>>2,4*b)},Zb:function(a,b,c){a=L[a];G.uniformBlockBinding(a,b,c)},Ed:function(a,b,c,d){if(2<=U.version)G.uniformMatrix2fv(N[a],!!c,w,d>>2,
4*b);else{if(256>=4*b)for(var e=oe[4*b-1],k=0;k<4*b;k+=4)e[k]=w[d+4*k>>2],e[k+1]=w[d+(4*k+4)>>2],e[k+2]=w[d+(4*k+8)>>2],e[k+3]=w[d+(4*k+12)>>2];else e=w.subarray(d>>2,d+16*b>>2);G.uniformMatrix2fv(N[a],!!c,e)}},Xc:function(a,b,c,d){G.uniformMatrix2x3fv(N[a],!!c,w,d>>2,6*b)},Vc:function(a,b,c,d){G.uniformMatrix2x4fv(N[a],!!c,w,d>>2,8*b)},Dd:function(a,b,c,d){if(2<=U.version)G.uniformMatrix3fv(N[a],!!c,w,d>>2,9*b);else{if(256>=9*b)for(var e=oe[9*b-1],k=0;k<9*b;k+=9)e[k]=w[d+4*k>>2],e[k+1]=w[d+(4*k+
4)>>2],e[k+2]=w[d+(4*k+8)>>2],e[k+3]=w[d+(4*k+12)>>2],e[k+4]=w[d+(4*k+16)>>2],e[k+5]=w[d+(4*k+20)>>2],e[k+6]=w[d+(4*k+24)>>2],e[k+7]=w[d+(4*k+28)>>2],e[k+8]=w[d+(4*k+32)>>2];else e=w.subarray(d>>2,d+36*b>>2);G.uniformMatrix3fv(N[a],!!c,e)}},Wc:function(a,b,c,d){G.uniformMatrix3x2fv(N[a],!!c,w,d>>2,6*b)},Tc:function(a,b,c,d){G.uniformMatrix3x4fv(N[a],!!c,w,d>>2,12*b)},Cd:function(a,b,c,d){if(2<=U.version)G.uniformMatrix4fv(N[a],!!c,w,d>>2,16*b);else{if(256>=16*b){var e=oe[16*b-1],k=w;d>>=2;for(var n=
0;n<16*b;n+=16){var q=d+n;e[n]=k[q];e[n+1]=k[q+1];e[n+2]=k[q+2];e[n+3]=k[q+3];e[n+4]=k[q+4];e[n+5]=k[q+5];e[n+6]=k[q+6];e[n+7]=k[q+7];e[n+8]=k[q+8];e[n+9]=k[q+9];e[n+10]=k[q+10];e[n+11]=k[q+11];e[n+12]=k[q+12];e[n+13]=k[q+13];e[n+14]=k[q+14];e[n+15]=k[q+15]}}else e=w.subarray(d>>2,d+64*b>>2);G.uniformMatrix4fv(N[a],!!c,e)}},Uc:function(a,b,c,d){G.uniformMatrix4x2fv(N[a],!!c,w,d>>2,8*b)},Sc:function(a,b,c,d){G.uniformMatrix4x3fv(N[a],!!c,w,d>>2,12*b)},Bd:function(a){G.useProgram(L[a])},Ad:function(a){G.validateProgram(L[a])},
zd:function(a,b){G.vertexAttrib1f(a,b)},yd:function(a,b){G.vertexAttrib1f(a,w[b>>2])},xd:function(a,b,c){G.vertexAttrib2f(a,b,c)},wd:function(a,b){G.vertexAttrib2f(a,w[b>>2],w[b+4>>2])},vd:function(a,b,c,d){G.vertexAttrib3f(a,b,c,d)},ud:function(a,b){G.vertexAttrib3f(a,w[b>>2],w[b+4>>2],w[b+8>>2])},td:function(a,b,c,d,e){G.vertexAttrib4f(a,b,c,d,e)},sd:function(a,b){G.vertexAttrib4f(a,w[b>>2],w[b+4>>2],w[b+8>>2],w[b+12>>2])},Ab:function(a,b){G.vertexAttribDivisor(a,b)},bg:function(a,b){G.vertexAttribDivisor(a,
b)},jb:function(a,b){G.vertexAttribDivisor(a,b)},pd:function(a,b){G.vertexAttribDivisor(a,b)},kb:function(a,b){G.vertexAttribDivisor(a,b)},yc:function(a,b,c,d,e){G.vertexAttribI4i(a,b,c,d,e)},wc:function(a,b){G.vertexAttribI4i(a,h[b>>2],h[b+4>>2],h[b+8>>2],h[b+12>>2])},xc:function(a,b,c,d,e){G.vertexAttribI4ui(a,b,c,d,e)},vc:function(a,b){G.vertexAttribI4ui(a,gb[b>>2],gb[b+4>>2],gb[b+8>>2],gb[b+12>>2])},Bc:function(a,b,c,d,e){G.vertexAttribIPointer(a,b,c,d,e)},rd:function(a,b,c,d,e,k){G.vertexAttribPointer(a,
b,c,!!d,e,k)},qd:function(a,b,c,d){G.viewport(a,b,c,d)},Rb:function(a,b,c,d){G.waitSync(ie[a],b,(c>>>0)+4294967296*d)},f:function(a,b){df(a,b||1);throw"longjmp";},ug:function(a,b,c){Qa.copyWithin(a,b,b+c)},vg:function(a){a>>>=0;var b=Qa.length;if(2147483648<a)return!1;for(var c=1;4>=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,a+100663296);d=Math.max(16777216,a,d);0<d%65536&&(d+=65536-d%65536);a:{try{Ka.grow(Math.min(2147483648,d)-fb.byteLength+65535>>>16);mb(Ka.buffer);var e=1;break a}catch(k){}e=void 0}if(e)return!0}return!1},
Fh:function(){return U?U.Dm:0},aa:function(a){return Jd(a)?0:-5},zg:function(a,b){var c=0;Le().forEach(function(d,e){var k=b+c;e=h[a+4*e>>2]=k;for(k=0;k<d.length;++k)eb[e++>>0]=d.charCodeAt(k);eb[e>>0]=0;c+=d.length+1});return 0},Ag:function(a,b){var c=Le();h[a>>2]=c.length;var d=0;c.forEach(function(e){d+=e.length+1});h[b>>2]=d;return 0},sc:function(a){if(!noExitRuntime&&(Ma=!0,g.onExit))g.onExit(a);la(a,new Ca(a))},L:function(){return 0},yg:function(a,b){a=1==a||2==a?2:Da();eb[b>>0]=a;return 0},
Cg:function(a,b,c,d){a=Lb.qn(a);b=Lb.nn(a,b,c);h[d>>2]=b;return 0},db:function(){},R:function(a,b,c,d){for(var e=0,k=0;k<c;k++){for(var n=h[b+8*k>>2],q=h[b+(8*k+4)>>2],v=0;v<q;v++){var z=Qa[n+v],H=Kb[a];0===z||10===z?((1===a?Ea:Fa)(Oa(H,0)),H.length=0):H.push(z)}e+=q}h[d>>2]=e;return 0},a:function(){return Ia|0},Nb:function(a){G.activeTexture(a)},Cb:function(a,b){G.attachShader(L[a],ce[b])},rb:function(a,b,c){G.bindAttribLocation(L[a],b,Pa(c))},gb:function(a,b){35051==a?G.al=b:35052==a&&(G.Ek=b);
G.bindBuffer(a,Zd[b])},$:function(a,b){G.bindFramebuffer(a,$d[b])},cb:function(a,b){G.bindRenderbuffer(a,ae[b])},bb:function(a,b){G.bindTexture(a,be[b])},ab:function(a,b,c,d){G.blendColor(a,b,c,d)},$a:function(a){G.blendEquation(a)},_a:function(a,b){G.blendFunc(a,b)},Za:function(a,b,c,d){2<=U.version?c?G.bufferData(a,Qa,d,c,b):G.bufferData(a,b,d):G.bufferData(a,c?Qa.subarray(c,c+b):b,d)},Ya:function(a,b,c,d){2<=U.version?G.bufferSubData(a,b,Qa,d,c):G.bufferSubData(a,b,Qa.subarray(d,d+c))},Xa:function(a){return G.checkFramebufferStatus(a)},
N:function(a){G.clear(a)},Q:function(a,b,c,d){G.clearColor(a,b,c,d)},P:function(a){G.clearStencil(a)},Wa:function(a,b,c,d){G.colorMask(!!a,!!b,!!c,!!d)},Va:function(a){G.compileShader(ce[a])},Ua:function(a,b,c,d,e,k,n,q){2<=U.version?G.Ek?G.compressedTexImage2D(a,b,c,d,e,k,n,q):G.compressedTexImage2D(a,b,c,d,e,k,Qa,q,n):G.compressedTexImage2D(a,b,c,d,e,k,q?Qa.subarray(q,q+n):null)},Ta:function(a,b,c,d,e,k,n,q,v){2<=U.version?G.Ek?G.compressedTexSubImage2D(a,b,c,d,e,k,n,q,v):G.compressedTexSubImage2D(a,
b,c,d,e,k,n,Qa,v,q):G.compressedTexSubImage2D(a,b,c,d,e,k,n,v?Qa.subarray(v,v+q):null)},Sa:function(a,b,c,d,e,k,n,q){G.copyTexSubImage2D(a,b,c,d,e,k,n,q)},Ra:function(){var a=ne(L),b=G.createProgram();b.name=a;L[a]=b;return a},Qa:function(a){var b=ne(ce);ce[b]=G.createShader(a);return b},Pa:function(a){G.cullFace(a)},Oa:function(a,b){for(var c=0;c<a;c++){var d=h[b+4*c>>2],e=Zd[d];e&&(G.deleteBuffer(e),e.name=0,Zd[d]=null,d==te&&(te=0),d==ue&&(ue=0),d==G.al&&(G.al=0),d==G.Ek&&(G.Ek=0))}},Na:function(a,
b){for(var c=0;c<a;++c){var d=h[b+4*c>>2],e=$d[d];e&&(G.deleteFramebuffer(e),e.name=0,$d[d]=null)}},Ma:function(a){if(a){var b=L[a];b?(G.deleteProgram(b),b.name=0,L[a]=null,je[a]=null):X(1281)}},La:function(a,b){for(var c=0;c<a;c++){var d=h[b+4*c>>2],e=ae[d];e&&(G.deleteRenderbuffer(e),e.name=0,ae[d]=null)}},Ka:function(a){if(a){var b=ce[a];b?(G.deleteShader(b),ce[a]=null):X(1281)}},Ja:function(a,b){for(var c=0;c<a;c++){var d=h[b+4*c>>2],e=be[d];e&&(G.deleteTexture(e),e.name=0,be[d]=null)}},Ia:function(a){G.depthMask(!!a)},
Ga:function(a){G.disable(a)},Fa:function(a){G.disableVertexAttribArray(a)},Ea:function(a,b,c){G.drawArrays(a,b,c)},Da:we,Ca:function(a){G.enable(a)},Ba:function(a){G.enableVertexAttribArray(a)},Aa:function(){G.finish()},za:function(){G.flush()},ya:function(a,b,c,d){G.framebufferRenderbuffer(a,b,c,ae[d])},xa:function(a,b,c,d,e){G.framebufferTexture2D(a,b,c,be[d],e)},va:function(a){G.frontFace(a)},ua:function(a,b){xe(a,b,"createBuffer",Zd)},ta:function(a,b){xe(a,b,"createFramebuffer",$d)},sa:function(a,
b){xe(a,b,"createRenderbuffer",ae)},ra:function(a,b){xe(a,b,"createTexture",be)},qa:function(a){G.generateMipmap(a)},pa:function(a,b,c){c?h[c>>2]=G.getBufferParameter(a,b):X(1281)},oa:function(){var a=G.getError()||Yd;Yd=0;return a},na:function(a,b,c,d){a=G.getFramebufferAttachmentParameter(a,b,c);if(a instanceof WebGLRenderbuffer||a instanceof WebGLTexture)a=a.name|0;h[d>>2]=a},G:function(a,b){ze(a,b,0)},ma:function(a,b,c,d){a=G.getProgramInfoLog(L[a]);null===a&&(a="(unknown error)");b=0<b&&d?ea(a,
d,b):0;c&&(h[c>>2]=b)},ka:function(a,b,c){if(c)if(a>=Xd)X(1281);else{var d=je[a];if(d)if(35716==b)a=G.getProgramInfoLog(L[a]),null===a&&(a="(unknown error)"),h[c>>2]=a.length+1;else if(35719==b)h[c>>2]=d.Kl;else if(35722==b){if(-1==d.Sk){a=L[a];var e=G.getProgramParameter(a,35721);for(b=d.Sk=0;b<e;++b)d.Sk=Math.max(d.Sk,G.getActiveAttrib(a,b).name.length+1)}h[c>>2]=d.Sk}else if(35381==b){if(-1==d.Tk)for(a=L[a],e=G.getProgramParameter(a,35382),b=d.Tk=0;b<e;++b)d.Tk=Math.max(d.Tk,G.getActiveUniformBlockName(a,
b).length+1);h[c>>2]=d.Tk}else h[c>>2]=G.getProgramParameter(L[a],b);else X(1282)}else X(1281)},ja:function(a,b,c){c?h[c>>2]=G.getRenderbufferParameter(a,b):X(1281)},ia:function(a,b,c,d){a=G.getShaderInfoLog(ce[a]);null===a&&(a="(unknown error)");b=0<b&&d?ea(a,d,b):0;c&&(h[c>>2]=b)},ha:function(a,b,c,d){a=G.getShaderPrecisionFormat(a,b);h[c>>2]=a.rangeMin;h[c+4>>2]=a.rangeMax;h[d>>2]=a.precision},ga:function(a,b,c){c?35716==b?(a=G.getShaderInfoLog(ce[a]),null===a&&(a="(unknown error)"),h[c>>2]=a.length+
1):35720==b?(a=G.getShaderSource(ce[a]),h[c>>2]=null===a||0==a.length?0:a.length+1):h[c>>2]=G.getShaderParameter(ce[a],b):X(1281)},fa:function(a){if(ke[a])return ke[a];switch(a){case 7939:var b=G.getSupportedExtensions()||[];b=b.concat(b.map(function(d){return"GL_"+d}));b=Be(b.join(" "));break;case 7936:case 7937:case 37445:case 37446:(b=G.getParameter(a))||X(1280);b=Be(b);break;case 7938:b=G.getParameter(7938);b=2<=U.version?"OpenGL ES 3.0 ("+b+")":"OpenGL ES 2.0 ("+b+")";b=Be(b);break;case 35724:b=
G.getParameter(35724);var c=b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);null!==c&&(3==c[1].length&&(c[1]+="0"),b="OpenGL ES GLSL ES "+c[1]+" ("+b+")");b=Be(b);break;default:return X(1280),0}return ke[a]=b},ea:function(a,b){b=Pa(b);var c=0;if("]"==b[b.length-1]){var d=b.lastIndexOf("[");c="]"!=b[d+1]?parseInt(b.slice(d+1)):0;b=b.slice(0,d)}return(a=je[a]&&je[a].bm[b])&&0<=c&&c<a[0]?a[1]+c:-1},da:function(a){return(a=be[a])?G.isTexture(a):0},ca:function(a){G.lineWidth(a)},ba:function(a){G.linkProgram(L[a]);
se(a)},Eh:function(a,b){3317==a&&(me=b);G.pixelStorei(a,b)},Dh:function(a,b,c,d,e,k,n){if(2<=U.version)if(G.al)G.readPixels(a,b,c,d,e,k,n);else{var q=Ee(k);G.readPixels(a,b,c,d,e,k,q,n>>Fe(q))}else(n=Ge(k,e,c,d,n))?G.readPixels(a,b,c,d,e,k,n):X(1280)},Ch:function(a,b,c,d){G.renderbufferStorage(a,b,c,d)},Bh:function(a,b,c,d){G.scissor(a,b,c,d)},Ah:function(a,b,c,d){b=qe(b,c,d);G.shaderSource(ce[a],b)},zh:function(a,b,c){G.stencilFunc(a,b,c)},yh:function(a,b,c,d){G.stencilFuncSeparate(a,b,c,d)},xh:function(a){G.stencilMask(a)},
wh:function(a,b){G.stencilMaskSeparate(a,b)},vh:function(a,b,c){G.stencilOp(a,b,c)},uh:function(a,b,c,d){G.stencilOpSeparate(a,b,c,d)},th:function(a,b,c,d,e,k,n,q,v){if(2<=U.version)if(G.Ek)G.texImage2D(a,b,c,d,e,k,n,q,v);else if(v){var z=Ee(q);G.texImage2D(a,b,c,d,e,k,n,q,z,v>>Fe(z))}else G.texImage2D(a,b,c,d,e,k,n,q,null);else G.texImage2D(a,b,c,d,e,k,n,q,v?Ge(q,n,d,e,v):null)},sh:function(a,b,c){G.texParameterf(a,b,c)},rh:function(a,b,c){G.texParameterf(a,b,w[c>>2])},qh:function(a,b,c){G.texParameteri(a,
b,c)},ph:function(a,b,c){G.texParameteri(a,b,h[c>>2])},oh:function(a,b,c,d,e,k,n,q,v){if(2<=U.version)if(G.Ek)G.texSubImage2D(a,b,c,d,e,k,n,q,v);else if(v){var z=Ee(q);G.texSubImage2D(a,b,c,d,e,k,n,q,z,v>>Fe(z))}else G.texSubImage2D(a,b,c,d,e,k,n,q,null);else z=null,v&&(z=Ge(q,n,e,k,v)),G.texSubImage2D(a,b,c,d,e,k,n,q,z)},nh:function(a,b){G.uniform1f(N[a],b)},mh:function(a,b,c){if(2<=U.version)G.uniform1fv(N[a],w,c>>2,b);else{if(256>=b)for(var d=oe[b-1],e=0;e<b;++e)d[e]=w[c+4*e>>2];else d=w.subarray(c>>
2,c+4*b>>2);G.uniform1fv(N[a],d)}},lh:function(a,b){G.uniform1i(N[a],b)},kh:function(a,b,c){if(2<=U.version)G.uniform1iv(N[a],h,c>>2,b);else{if(256>=b)for(var d=pe[b-1],e=0;e<b;++e)d[e]=h[c+4*e>>2];else d=h.subarray(c>>2,c+4*b>>2);G.uniform1iv(N[a],d)}},jh:function(a,b,c){G.uniform2f(N[a],b,c)},ih:function(a,b,c){if(2<=U.version)G.uniform2fv(N[a],w,c>>2,2*b);else{if(256>=2*b)for(var d=oe[2*b-1],e=0;e<2*b;e+=2)d[e]=w[c+4*e>>2],d[e+1]=w[c+(4*e+4)>>2];else d=w.subarray(c>>2,c+8*b>>2);G.uniform2fv(N[a],
d)}},hh:function(a,b,c){G.uniform2i(N[a],b,c)},gh:function(a,b,c){if(2<=U.version)G.uniform2iv(N[a],h,c>>2,2*b);else{if(256>=2*b)for(var d=pe[2*b-1],e=0;e<2*b;e+=2)d[e]=h[c+4*e>>2],d[e+1]=h[c+(4*e+4)>>2];else d=h.subarray(c>>2,c+8*b>>2);G.uniform2iv(N[a],d)}},fh:function(a,b,c,d){G.uniform3f(N[a],b,c,d)},eh:function(a,b,c){if(2<=U.version)G.uniform3fv(N[a],w,c>>2,3*b);else{if(256>=3*b)for(var d=oe[3*b-1],e=0;e<3*b;e+=3)d[e]=w[c+4*e>>2],d[e+1]=w[c+(4*e+4)>>2],d[e+2]=w[c+(4*e+8)>>2];else d=w.subarray(c>>
2,c+12*b>>2);G.uniform3fv(N[a],d)}},dh:function(a,b,c,d){G.uniform3i(N[a],b,c,d)},ch:function(a,b,c){if(2<=U.version)G.uniform3iv(N[a],h,c>>2,3*b);else{if(256>=3*b)for(var d=pe[3*b-1],e=0;e<3*b;e+=3)d[e]=h[c+4*e>>2],d[e+1]=h[c+(4*e+4)>>2],d[e+2]=h[c+(4*e+8)>>2];else d=h.subarray(c>>2,c+12*b>>2);G.uniform3iv(N[a],d)}},bh:function(a,b,c,d,e){G.uniform4f(N[a],b,c,d,e)},ah:function(a,b,c){if(2<=U.version)G.uniform4fv(N[a],w,c>>2,4*b);else{if(256>=4*b){var d=oe[4*b-1],e=w;c>>=2;for(var k=0;k<4*b;k+=4){var n=
c+k;d[k]=e[n];d[k+1]=e[n+1];d[k+2]=e[n+2];d[k+3]=e[n+3]}}else d=w.subarray(c>>2,c+16*b>>2);G.uniform4fv(N[a],d)}},$g:function(a,b,c,d,e){G.uniform4i(N[a],b,c,d,e)},_g:function(a,b,c){if(2<=U.version)G.uniform4iv(N[a],h,c>>2,4*b);else{if(256>=4*b)for(var d=pe[4*b-1],e=0;e<4*b;e+=4)d[e]=h[c+4*e>>2],d[e+1]=h[c+(4*e+4)>>2],d[e+2]=h[c+(4*e+8)>>2],d[e+3]=h[c+(4*e+12)>>2];else d=h.subarray(c>>2,c+16*b>>2);G.uniform4iv(N[a],d)}},Zg:function(a,b,c,d){if(2<=U.version)G.uniformMatrix2fv(N[a],!!c,w,d>>2,4*b);
else{if(256>=4*b)for(var e=oe[4*b-1],k=0;k<4*b;k+=4)e[k]=w[d+4*k>>2],e[k+1]=w[d+(4*k+4)>>2],e[k+2]=w[d+(4*k+8)>>2],e[k+3]=w[d+(4*k+12)>>2];else e=w.subarray(d>>2,d+16*b>>2);G.uniformMatrix2fv(N[a],!!c,e)}},Yg:function(a,b,c,d){if(2<=U.version)G.uniformMatrix3fv(N[a],!!c,w,d>>2,9*b);else{if(256>=9*b)for(var e=oe[9*b-1],k=0;k<9*b;k+=9)e[k]=w[d+4*k>>2],e[k+1]=w[d+(4*k+4)>>2],e[k+2]=w[d+(4*k+8)>>2],e[k+3]=w[d+(4*k+12)>>2],e[k+4]=w[d+(4*k+16)>>2],e[k+5]=w[d+(4*k+20)>>2],e[k+6]=w[d+(4*k+24)>>2],e[k+7]=
w[d+(4*k+28)>>2],e[k+8]=w[d+(4*k+32)>>2];else e=w.subarray(d>>2,d+36*b>>2);G.uniformMatrix3fv(N[a],!!c,e)}},Xg:function(a,b,c,d){if(2<=U.version)G.uniformMatrix4fv(N[a],!!c,w,d>>2,16*b);else{if(256>=16*b){var e=oe[16*b-1],k=w;d>>=2;for(var n=0;n<16*b;n+=16){var q=d+n;e[n]=k[q];e[n+1]=k[q+1];e[n+2]=k[q+2];e[n+3]=k[q+3];e[n+4]=k[q+4];e[n+5]=k[q+5];e[n+6]=k[q+6];e[n+7]=k[q+7];e[n+8]=k[q+8];e[n+9]=k[q+9];e[n+10]=k[q+10];e[n+11]=k[q+11];e[n+12]=k[q+12];e[n+13]=k[q+13];e[n+14]=k[q+14];e[n+15]=k[q+15]}}else e=
w.subarray(d>>2,d+64*b>>2);G.uniformMatrix4fv(N[a],!!c,e)}},Wg:function(a){G.useProgram(L[a])},Vg:function(a,b){G.vertexAttrib1f(a,b)},Ug:function(a,b){G.vertexAttrib2f(a,w[b>>2],w[b+4>>2])},Tg:function(a,b){G.vertexAttrib3f(a,w[b>>2],w[b+4>>2],w[b+8>>2])},Sg:function(a,b){G.vertexAttrib4f(a,w[b>>2],w[b+4>>2],w[b+8>>2],w[b+12>>2])},Rg:function(a,b,c,d,e,k){G.vertexAttribPointer(a,b,c,!!d,e,k)},Qg:function(a,b,c,d){G.viewport(a,b,c,d)},k:ef,v:ff,g:gf,F:hf,Og:jf,Z:kf,Y:lf,X:mf,j:nf,l:of,t:pf,u:qf,Ng:rf,
Lg:sf,Mg:tf,memory:Ka,q:function(a){a=+a;return 0<=a?+vb(a+.5):+ub(a-.5)},E:function(a){a=+a;return 0<=a?+vb(a+.5):+ub(a-.5)},s:Ie,hd:function(){},O:function(){},Oc:function(){},Dc:function(){},b:function(a){Ia=a|0},wg:function(a,b,c,d){return Se(a,b,c,d)},table:La,c:function(a,b,c){a|=0;b|=0;c|=0;for(var d=0,e;(d|0)<(c|0);){e=h[b+(d<<3)>>2]|0;if(0==(e|0))break;if((e|0)==(a|0))return h[b+((d<<3)+4)>>2]|0;d=d+1|0}return 0}},vf=function(){function a(e){g.asm=e.exports;wb--;g.monitorRunDependencies&&
g.monitorRunDependencies(wb);0==wb&&(null!==xb&&(clearInterval(xb),xb=null),yb&&(e=yb,yb=null,e()))}function b(e){a(e.instance)}function c(e){return Gb().then(function(k){return WebAssembly.instantiate(k,d)}).then(e,function(k){Fa("failed to asynchronously prepare wasm: "+k);Da(k)})}var d={a:uf};wb++;g.monitorRunDependencies&&g.monitorRunDependencies(wb);if(g.instantiateWasm)try{return g.instantiateWasm(d,a)}catch(e){return Fa("Module.instantiateWasm callback failed with error: "+e),!1}(function(){if(Ja||
"function"!==typeof WebAssembly.instantiateStreaming||Bb()||zb("file://")||"function"!==typeof fetch)return c(b);fetch(Ab,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,d).then(b,function(k){Fa("wasm streaming compile failed: "+k);Fa("falling back to ArrayBuffer instantiation");c(b)})})})();return{}}();g.asm=vf;
var Hb=g.___wasm_call_ctors=function(){return(Hb=g.___wasm_call_ctors=g.asm.Gh).apply(null,arguments)},bf=g._memset=function(){return(bf=g._memset=g.asm.Hh).apply(null,arguments)},db=g._malloc=function(){return(db=g._malloc=g.asm.Ih).apply(null,arguments)},Mc=g._free=function(){return(Mc=g._free=g.asm.Jh).apply(null,arguments)},Je=g._realloc=function(){return(Je=g._realloc=g.asm.Kh).apply(null,arguments)},$e=g.___errno_location=function(){return($e=g.___errno_location=g.asm.Lh).apply(null,arguments)},
Lc=g.___getTypeName=function(){return(Lc=g.___getTypeName=g.asm.Mh).apply(null,arguments)};g.___embind_register_native_and_builtin_types=function(){return(g.___embind_register_native_and_builtin_types=g.asm.Nh).apply(null,arguments)};
var cf=g._emscripten_GetProcAddress=function(){return(cf=g._emscripten_GetProcAddress=g.asm.Oh).apply(null,arguments)},df=g._setThrew=function(){return(df=g._setThrew=g.asm.Ph).apply(null,arguments)},af=g._memalign=function(){return(af=g._memalign=g.asm.Qh).apply(null,arguments)},wf=g.dynCall_v=function(){return(wf=g.dynCall_v=g.asm.Rh).apply(null,arguments)},xf=g.dynCall_vi=function(){return(xf=g.dynCall_vi=g.asm.Sh).apply(null,arguments)},yf=g.dynCall_vii=function(){return(yf=g.dynCall_vii=g.asm.Th).apply(null,
arguments)},zf=g.dynCall_viii=function(){return(zf=g.dynCall_viii=g.asm.Uh).apply(null,arguments)},Af=g.dynCall_viiii=function(){return(Af=g.dynCall_viiii=g.asm.Vh).apply(null,arguments)},Bf=g.dynCall_viiiii=function(){return(Bf=g.dynCall_viiiii=g.asm.Wh).apply(null,arguments)},Cf=g.dynCall_viiiiii=function(){return(Cf=g.dynCall_viiiiii=g.asm.Xh).apply(null,arguments)},Df=g.dynCall_viiiiiiiii=function(){return(Df=g.dynCall_viiiiiiiii=g.asm.Yh).apply(null,arguments)},Ef=g.dynCall_ii=function(){return(Ef=
g.dynCall_ii=g.asm.Zh).apply(null,arguments)},Ff=g.dynCall_iii=function(){return(Ff=g.dynCall_iii=g.asm._h).apply(null,arguments)},Gf=g.dynCall_iiii=function(){return(Gf=g.dynCall_iiii=g.asm.$h).apply(null,arguments)},Hf=g.dynCall_iiiii=function(){return(Hf=g.dynCall_iiiii=g.asm.ai).apply(null,arguments)},If=g.dynCall_iiiiii=function(){return(If=g.dynCall_iiiiii=g.asm.bi).apply(null,arguments)},Jf=g.dynCall_iiiiiii=function(){return(Jf=g.dynCall_iiiiiii=g.asm.ci).apply(null,arguments)},Kf=g.dynCall_iiiiiiiiii=
function(){return(Kf=g.dynCall_iiiiiiiiii=g.asm.di).apply(null,arguments)},Lf=g.stackSave=function(){return(Lf=g.stackSave=g.asm.ei).apply(null,arguments)},Mf=g.stackRestore=function(){return(Mf=g.stackRestore=g.asm.fi).apply(null,arguments)};g.dynCall_i=function(){return(g.dynCall_i=g.asm.gi).apply(null,arguments)};g.dynCall_vif=function(){return(g.dynCall_vif=g.asm.hi).apply(null,arguments)};g.dynCall_viffi=function(){return(g.dynCall_viffi=g.asm.ii).apply(null,arguments)};
g.dynCall_viifi=function(){return(g.dynCall_viifi=g.asm.ji).apply(null,arguments)};g.dynCall_viiiiiiiiiii=function(){return(g.dynCall_viiiiiiiiiii=g.asm.ki).apply(null,arguments)};g.dynCall_viifiiiiiiii=function(){return(g.dynCall_viifiiiiiiii=g.asm.li).apply(null,arguments)};g.dynCall_viffiiiiiffiii=function(){return(g.dynCall_viffiiiiiffiii=g.asm.mi).apply(null,arguments)};g.dynCall_viififiiiiiiii=function(){return(g.dynCall_viififiiiiiiii=g.asm.ni).apply(null,arguments)};
g.dynCall_viiffii=function(){return(g.dynCall_viiffii=g.asm.oi).apply(null,arguments)};g.dynCall_viiiiiiii=function(){return(g.dynCall_viiiiiiii=g.asm.pi).apply(null,arguments)};g.dynCall_vifffi=function(){return(g.dynCall_vifffi=g.asm.qi).apply(null,arguments)};g.dynCall_viiff=function(){return(g.dynCall_viiff=g.asm.ri).apply(null,arguments)};g.dynCall_viiffi=function(){return(g.dynCall_viiffi=g.asm.si).apply(null,arguments)};
g.dynCall_viffffi=function(){return(g.dynCall_viffffi=g.asm.ti).apply(null,arguments)};g.dynCall_viiiifiii=function(){return(g.dynCall_viiiifiii=g.asm.ui).apply(null,arguments)};g.dynCall_viiiffii=function(){return(g.dynCall_viiiffii=g.asm.vi).apply(null,arguments)};g.dynCall_vifff=function(){return(g.dynCall_vifff=g.asm.wi).apply(null,arguments)};g.dynCall_viff=function(){return(g.dynCall_viff=g.asm.xi).apply(null,arguments)};
g.dynCall_iifii=function(){return(g.dynCall_iifii=g.asm.yi).apply(null,arguments)};g.dynCall_vifii=function(){return(g.dynCall_vifii=g.asm.zi).apply(null,arguments)};g.dynCall_viif=function(){return(g.dynCall_viif=g.asm.Ai).apply(null,arguments)};g.dynCall_fi=function(){return(g.dynCall_fi=g.asm.Bi).apply(null,arguments)};g.dynCall_fii=function(){return(g.dynCall_fii=g.asm.Ci).apply(null,arguments)};g.dynCall_iiffii=function(){return(g.dynCall_iiffii=g.asm.Di).apply(null,arguments)};
g.dynCall_viffii=function(){return(g.dynCall_viffii=g.asm.Ei).apply(null,arguments)};g.dynCall_iiifi=function(){return(g.dynCall_iiifi=g.asm.Fi).apply(null,arguments)};g.dynCall_iif=function(){return(g.dynCall_iif=g.asm.Gi).apply(null,arguments)};g.dynCall_iiiif=function(){return(g.dynCall_iiiif=g.asm.Hi).apply(null,arguments)};g.dynCall_viiif=function(){return(g.dynCall_viiif=g.asm.Ii).apply(null,arguments)};g.dynCall_iiffi=function(){return(g.dynCall_iiffi=g.asm.Ji).apply(null,arguments)};
g.dynCall_iiiiiiii=function(){return(g.dynCall_iiiiiiii=g.asm.Ki).apply(null,arguments)};g.dynCall_viiiiiii=function(){return(g.dynCall_viiiiiii=g.asm.Li).apply(null,arguments)};g.dynCall_viifffffffffi=function(){return(g.dynCall_viifffffffffi=g.asm.Mi).apply(null,arguments)};g.dynCall_viffffii=function(){return(g.dynCall_viffffii=g.asm.Ni).apply(null,arguments)};g.dynCall_vifffff=function(){return(g.dynCall_vifffff=g.asm.Oi).apply(null,arguments)};
g.dynCall_vifffiiff=function(){return(g.dynCall_vifffiiff=g.asm.Pi).apply(null,arguments)};g.dynCall_iiff=function(){return(g.dynCall_iiff=g.asm.Qi).apply(null,arguments)};g.dynCall_viffffff=function(){return(g.dynCall_viffffff=g.asm.Ri).apply(null,arguments)};g.dynCall_viffff=function(){return(g.dynCall_viffff=g.asm.Si).apply(null,arguments)};g.dynCall_vifffffffff=function(){return(g.dynCall_vifffffffff=g.asm.Ti).apply(null,arguments)};
g.dynCall_iifff=function(){return(g.dynCall_iifff=g.asm.Ui).apply(null,arguments)};g.dynCall_iiiiiiiiiiii=function(){return(g.dynCall_iiiiiiiiiiii=g.asm.Vi).apply(null,arguments)};g.dynCall_iiifiiiiiiii=function(){return(g.dynCall_iiifiiiiiiii=g.asm.Wi).apply(null,arguments)};g.dynCall_iiffiiiiiffiii=function(){return(g.dynCall_iiffiiiiiffiii=g.asm.Xi).apply(null,arguments)};g.dynCall_iiififiiiiiiii=function(){return(g.dynCall_iiififiiiiiiii=g.asm.Yi).apply(null,arguments)};
g.dynCall_viifffi=function(){return(g.dynCall_viifffi=g.asm.Zi).apply(null,arguments)};g.dynCall_viiiff=function(){return(g.dynCall_viiiff=g.asm._i).apply(null,arguments)};g.dynCall_viiiffi=function(){return(g.dynCall_viiiffi=g.asm.$i).apply(null,arguments)};g.dynCall_viiffffi=function(){return(g.dynCall_viiffffi=g.asm.aj).apply(null,arguments)};g.dynCall_viiiiifiii=function(){return(g.dynCall_viiiiifiii=g.asm.bj).apply(null,arguments)};
g.dynCall_viiiiffii=function(){return(g.dynCall_viiiiffii=g.asm.cj).apply(null,arguments)};g.dynCall_viifff=function(){return(g.dynCall_viifff=g.asm.dj).apply(null,arguments)};g.dynCall_iiif=function(){return(g.dynCall_iiif=g.asm.ej).apply(null,arguments)};g.dynCall_iiiffi=function(){return(g.dynCall_iiiffi=g.asm.fj).apply(null,arguments)};g.dynCall_iiifff=function(){return(g.dynCall_iiifff=g.asm.gj).apply(null,arguments)};g.dynCall_fiii=function(){return(g.dynCall_fiii=g.asm.hj).apply(null,arguments)};
g.dynCall_viiifffffffffi=function(){return(g.dynCall_viiifffffffffi=g.asm.ij).apply(null,arguments)};g.dynCall_viiffffii=function(){return(g.dynCall_viiffffii=g.asm.jj).apply(null,arguments)};g.dynCall_viifffff=function(){return(g.dynCall_viifffff=g.asm.kj).apply(null,arguments)};g.dynCall_viifffiiff=function(){return(g.dynCall_viifffiiff=g.asm.lj).apply(null,arguments)};g.dynCall_iiiff=function(){return(g.dynCall_iiiff=g.asm.mj).apply(null,arguments)};
g.dynCall_viiffffff=function(){return(g.dynCall_viiffffff=g.asm.nj).apply(null,arguments)};g.dynCall_viiffff=function(){return(g.dynCall_viiffff=g.asm.oj).apply(null,arguments)};g.dynCall_viifffffffff=function(){return(g.dynCall_viifffffffff=g.asm.pj).apply(null,arguments)};g.dynCall_iiiiiiiii=function(){return(g.dynCall_iiiiiiiii=g.asm.qj).apply(null,arguments)};g.dynCall_vidi=function(){return(g.dynCall_vidi=g.asm.rj).apply(null,arguments)};
g.dynCall_vid=function(){return(g.dynCall_vid=g.asm.sj).apply(null,arguments)};g.dynCall_viidi=function(){return(g.dynCall_viidi=g.asm.tj).apply(null,arguments)};g.dynCall_viid=function(){return(g.dynCall_viid=g.asm.uj).apply(null,arguments)};g.dynCall_di=function(){return(g.dynCall_di=g.asm.vj).apply(null,arguments)};g.dynCall_dii=function(){return(g.dynCall_dii=g.asm.wj).apply(null,arguments)};g.dynCall_iiid=function(){return(g.dynCall_iiid=g.asm.xj).apply(null,arguments)};
g.dynCall_fiiiiii=function(){return(g.dynCall_fiiiiii=g.asm.yj).apply(null,arguments)};g.dynCall_viiiiiff=function(){return(g.dynCall_viiiiiff=g.asm.zj).apply(null,arguments)};g.dynCall_viiiiifiiiiii=function(){return(g.dynCall_viiiiifiiiiii=g.asm.Aj).apply(null,arguments)};g.dynCall_iiifii=function(){return(g.dynCall_iiifii=g.asm.Bj).apply(null,arguments)};g.dynCall_ji=function(){return(g.dynCall_ji=g.asm.Cj).apply(null,arguments)};
g.dynCall_iiji=function(){return(g.dynCall_iiji=g.asm.Dj).apply(null,arguments)};g.dynCall_iijjiii=function(){return(g.dynCall_iijjiii=g.asm.Ej).apply(null,arguments)};g.dynCall_iij=function(){return(g.dynCall_iij=g.asm.Fj).apply(null,arguments)};g.dynCall_vijjjii=function(){return(g.dynCall_vijjjii=g.asm.Gj).apply(null,arguments)};g.dynCall_viiiiifi=function(){return(g.dynCall_viiiiifi=g.asm.Hj).apply(null,arguments)};
g.dynCall_viiiiiiifi=function(){return(g.dynCall_viiiiiiifi=g.asm.Ij).apply(null,arguments)};g.dynCall_viiiiiiiiifi=function(){return(g.dynCall_viiiiiiiiifi=g.asm.Jj).apply(null,arguments)};g.dynCall_viiiiiiiiiifi=function(){return(g.dynCall_viiiiiiiiiifi=g.asm.Kj).apply(null,arguments)};g.dynCall_viifii=function(){return(g.dynCall_viifii=g.asm.Lj).apply(null,arguments)};g.dynCall_viiiiiiiiiiii=function(){return(g.dynCall_viiiiiiiiiiii=g.asm.Mj).apply(null,arguments)};
g.dynCall_iidi=function(){return(g.dynCall_iidi=g.asm.Nj).apply(null,arguments)};g.dynCall_viiiiiiiiiiiiiii=function(){return(g.dynCall_viiiiiiiiiiiiiii=g.asm.Oj).apply(null,arguments)};g.dynCall_viji=function(){return(g.dynCall_viji=g.asm.Pj).apply(null,arguments)};g.dynCall_vijiii=function(){return(g.dynCall_vijiii=g.asm.Qj).apply(null,arguments)};g.dynCall_fffff=function(){return(g.dynCall_fffff=g.asm.Rj).apply(null,arguments)};
g.dynCall_viiiiij=function(){return(g.dynCall_viiiiij=g.asm.Sj).apply(null,arguments)};g.dynCall_fiff=function(){return(g.dynCall_fiff=g.asm.Tj).apply(null,arguments)};g.dynCall_viiiiiffii=function(){return(g.dynCall_viiiiiffii=g.asm.Uj).apply(null,arguments)};g.dynCall_viifd=function(){return(g.dynCall_viifd=g.asm.Vj).apply(null,arguments)};g.dynCall_viddi=function(){return(g.dynCall_viddi=g.asm.Wj).apply(null,arguments)};
g.dynCall_viiiiffi=function(){return(g.dynCall_viiiiffi=g.asm.Xj).apply(null,arguments)};g.dynCall_viijii=function(){return(g.dynCall_viijii=g.asm.Yj).apply(null,arguments)};g.dynCall_jii=function(){return(g.dynCall_jii=g.asm.Zj).apply(null,arguments)};g.dynCall_vijii=function(){return(g.dynCall_vijii=g.asm._j).apply(null,arguments)};g.dynCall_viiiiff=function(){return(g.dynCall_viiiiff=g.asm.$j).apply(null,arguments)};g.dynCall_vffff=function(){return(g.dynCall_vffff=g.asm.ak).apply(null,arguments)};
g.dynCall_vf=function(){return(g.dynCall_vf=g.asm.bk).apply(null,arguments)};g.dynCall_viiiiiiiiii=function(){return(g.dynCall_viiiiiiiiii=g.asm.ck).apply(null,arguments)};g.dynCall_iiiij=function(){return(g.dynCall_iiiij=g.asm.dk).apply(null,arguments)};g.dynCall_viiij=function(){return(g.dynCall_viiij=g.asm.ek).apply(null,arguments)};g.dynCall_vij=function(){return(g.dynCall_vij=g.asm.fk).apply(null,arguments)};g.dynCall_iiiiiiiiiii=function(){return(g.dynCall_iiiiiiiiiii=g.asm.gk).apply(null,arguments)};
g.dynCall_jiiii=function(){return(g.dynCall_jiiii=g.asm.hk).apply(null,arguments)};g.dynCall_jiii=function(){return(g.dynCall_jiii=g.asm.ik).apply(null,arguments)};g.dynCall_jiji=function(){return(g.dynCall_jiji=g.asm.jk).apply(null,arguments)};g.dynCall_iidiiii=function(){return(g.dynCall_iidiiii=g.asm.kk).apply(null,arguments)};g.dynCall_iiiiij=function(){return(g.dynCall_iiiiij=g.asm.lk).apply(null,arguments)};g.dynCall_iiiiid=function(){return(g.dynCall_iiiiid=g.asm.mk).apply(null,arguments)};
g.dynCall_iiiiijj=function(){return(g.dynCall_iiiiijj=g.asm.nk).apply(null,arguments)};g.dynCall_iiiiiijj=function(){return(g.dynCall_iiiiiijj=g.asm.ok).apply(null,arguments)};g.dynCall_vff=function(){return(g.dynCall_vff=g.asm.pk).apply(null,arguments)};g.dynCall_vfi=function(){return(g.dynCall_vfi=g.asm.qk).apply(null,arguments)};function ef(a,b){var c=Lf();try{return Ef(a,b)}catch(d){Mf(c);if(d!==d+0&&"longjmp"!==d)throw d;df(1,0)}}
function ff(a,b,c){var d=Lf();try{return Ff(a,b,c)}catch(e){Mf(d);if(e!==e+0&&"longjmp"!==e)throw e;df(1,0)}}function of(a,b,c){var d=Lf();try{yf(a,b,c)}catch(e){Mf(d);if(e!==e+0&&"longjmp"!==e)throw e;df(1,0)}}function gf(a,b,c,d){var e=Lf();try{return Gf(a,b,c,d)}catch(k){Mf(e);if(k!==k+0&&"longjmp"!==k)throw k;df(1,0)}}function nf(a,b){var c=Lf();try{xf(a,b)}catch(d){Mf(c);if(d!==d+0&&"longjmp"!==d)throw d;df(1,0)}}
function pf(a,b,c,d){var e=Lf();try{zf(a,b,c,d)}catch(k){Mf(e);if(k!==k+0&&"longjmp"!==k)throw k;df(1,0)}}function jf(a,b,c,d,e,k){var n=Lf();try{return If(a,b,c,d,e,k)}catch(q){Mf(n);if(q!==q+0&&"longjmp"!==q)throw q;df(1,0)}}function qf(a,b,c,d,e){var k=Lf();try{Af(a,b,c,d,e)}catch(n){Mf(k);if(n!==n+0&&"longjmp"!==n)throw n;df(1,0)}}function kf(a,b,c,d,e,k,n){var q=Lf();try{return Jf(a,b,c,d,e,k,n)}catch(v){Mf(q);if(v!==v+0&&"longjmp"!==v)throw v;df(1,0)}}
function rf(a,b,c,d,e,k){var n=Lf();try{Bf(a,b,c,d,e,k)}catch(q){Mf(n);if(q!==q+0&&"longjmp"!==q)throw q;df(1,0)}}function hf(a,b,c,d,e){var k=Lf();try{return Hf(a,b,c,d,e)}catch(n){Mf(k);if(n!==n+0&&"longjmp"!==n)throw n;df(1,0)}}function tf(a,b,c,d,e,k,n,q,v,z){var H=Lf();try{Df(a,b,c,d,e,k,n,q,v,z)}catch(M){Mf(H);if(M!==M+0&&"longjmp"!==M)throw M;df(1,0)}}function sf(a,b,c,d,e,k,n){var q=Lf();try{Cf(a,b,c,d,e,k,n)}catch(v){Mf(q);if(v!==v+0&&"longjmp"!==v)throw v;df(1,0)}}
function lf(a,b,c,d,e,k,n,q,v,z){var H=Lf();try{return Kf(a,b,c,d,e,k,n,q,v,z)}catch(M){Mf(H);if(M!==M+0&&"longjmp"!==M)throw M;df(1,0)}}function mf(a){var b=Lf();try{wf(a)}catch(c){Mf(b);if(c!==c+0&&"longjmp"!==c)throw c;df(1,0)}}g.asm=vf;var Nf;function Ca(a){this.name="ExitStatus";this.message="Program terminated with exit("+a+")";this.status=a}yb=function Of(){Nf||Pf();Nf||(yb=Of)};
function Pf(){function a(){if(!Nf&&(Nf=!0,g.calledRun=!0,!Ma)){ob(qb);ob(rb);aa(g);if(g.onRuntimeInitialized)g.onRuntimeInitialized();if(g.postRun)for("function"==typeof g.postRun&&(g.postRun=[g.postRun]);g.postRun.length;){var b=g.postRun.shift();sb.unshift(b)}ob(sb)}}if(!(0<wb)){if(g.preRun)for("function"==typeof g.preRun&&(g.preRun=[g.preRun]);g.preRun.length;)tb();ob(pb);0<wb||(g.setStatus?(g.setStatus("Running..."),setTimeout(function(){setTimeout(function(){g.setStatus("")},1);a()},1)):a())}}
g.run=Pf;if(g.preInit)for("function"==typeof g.preInit&&(g.preInit=[g.preInit]);0<g.preInit.length;)g.preInit.pop()();noExitRuntime=!0;Pf();


  return CanvasKitInit.ready
}
);
})();
if (typeof exports === 'object' && typeof module === 'object')
      module.exports = CanvasKitInit;
    else if (typeof define === 'function' && define['amd'])
      define([], function() { return CanvasKitInit; });
    else if (typeof exports === 'object')
      exports["CanvasKitInit"] = CanvasKitInit;
    