
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 || {};

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


  return CanvasKitInit
}
);
})();
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;
    