diff --git a/_expo/static/js/web/SkyBackground-1bf981ca3867554018b8f4cd258d6424.js b/_expo/static/js/web/SkyBackground-82a5c084f0fd19d47c78573f54a07ce3.js similarity index 99% rename from _expo/static/js/web/SkyBackground-1bf981ca3867554018b8f4cd258d6424.js rename to _expo/static/js/web/SkyBackground-82a5c084f0fd19d47c78573f54a07ce3.js index 4007026..7391b2b 100644 --- a/_expo/static/js/web/SkyBackground-1bf981ca3867554018b8f4cd258d6424.js +++ b/_expo/static/js/web/SkyBackground-82a5c084f0fd19d47c78573f54a07ce3.js @@ -1,4 +1,4 @@ -__d((function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SkyBackground=void 0;var n=t(r(d[1])),i=r(d[2]),u=r(d[3]),o=t(r(d[4])),l=t(r(d[5])),s=r(d[6]),f=r(d[7]),c=function(t,n){return Math.random()*(n-t)+t},h=e.SkyBackground=(0,i.memo)((function(t){return(0,n.default)(t),(0,f.jsxs)(u.Canvas,{style:o.default.absoluteFill,children:[(0,f.jsx)(y,{density:400,size:1}),(0,f.jsx)(y,{density:2e3,size:2})]})})),y=(0,i.memo)((function(t){var n=t.size,i=t.density,u=t.animated,o=(0,l.default)(),s=o.width,h=o.height,y=Math.round(s*h/i);return Array(y).fill(null).map((function(t,i){return(0,f.jsx)(v,{x:c(-5,s+5),y:c(-5,h+5),size:n,animated:u},i)}))})),v=(0,i.memo)((function(t){var n=t.size,o=t.x,l=t.y,h=t.animated,y=(0,s.useSharedValue)(0);return(0,i.useEffect)((function(){h&&(y.value=(0,s.withDelay)(c(0,3e3),(0,s.withRepeat)((0,s.withTiming)(1,{duration:2e3}),-1,!0)))}),[h,y]),(0,f.jsx)(u.RoundedRect,{x:o,y:l,width:n,height:n,r:n/2,opacity:h?y:c(.1,1),color:"white"})}));e.default=h}),1150,[50,46,28,1151,59,301,879,27]); +__d((function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SkyBackground=void 0;var i=t(r(d[1])),n=r(d[2]),u=r(d[3]),o=t(r(d[4])),l=t(r(d[5])),s=r(d[6]),f=r(d[7]),h=function(t,i){return Math.random()*(i-t)+t},c=e.SkyBackground=(0,n.memo)((function(t){return(0,i.default)(t),(0,f.jsxs)(u.Canvas,{style:o.default.absoluteFill,children:[(0,f.jsx)(y,{density:400,size:1}),(0,f.jsx)(y,{density:2e3,size:2})]})})),y=(0,n.memo)((function(t){var i=t.size,n=t.density,u=t.animated,o=(0,l.default)(),s=o.width,c=o.height,y=Math.round(s*c/n);return Array(y).fill(null).map((function(t,n){return(0,f.jsx)(v,{x:h(-5,s+5),y:h(-5,c+5),size:i,animated:u},n)}))})),v=(0,n.memo)((function(t){var i=t.size,o=t.x,l=t.y,c=t.animated,y=(0,s.useSharedValue)(0);return(0,n.useEffect)((function(){y.value=c?(0,s.withDelay)(h(0,3e3),(0,s.withRepeat)((0,s.withTiming)(1,{duration:2e3}),-1,!0)):(0,s.withDelay)(h(0,1e4),(0,s.withTiming)(h(.1,1),{duration:2e3}))}),[c,y]),(0,f.jsx)(u.RoundedRect,{x:o,y:l,width:i,height:i,r:i/2,opacity:y,color:"white"})}));e.default=c}),1150,[50,46,28,1151,59,301,879,27]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0});var t={JsiSkImage:!0};Object.defineProperty(e,"JsiSkImage",{enumerable:!0,get:function(){return n.JsiSkImage}}),r(d[0]);var n=r(d[1]),o=r(d[2]);Object.keys(o).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===o[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return o[n]}}))}));var c=r(d[3]);Object.keys(c).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===c[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return c[n]}}))}));var u=r(d[4]);Object.keys(u).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===u[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return u[n]}}))}));var f=r(d[5]);Object.keys(f).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===f[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return f[n]}}))}));var l=r(d[6]);Object.keys(l).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===l[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return l[n]}}))}));var b=r(d[7]);Object.keys(b).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===b[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return b[n]}}))}));var p=r(d[8]);Object.keys(p).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===p[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return p[n]}}))}));var y=r(d[9]);Object.keys(y).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===y[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return y[n]}}))}));var O=r(d[10]);Object.keys(O).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===O[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return O[n]}}))}));var s=r(d[11]);Object.keys(s).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(t,n)||n in e&&e[n]===s[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return s[n]}}))}))}),1151,[1152,1156,1160,1294,1389,1295,1317,1390,1363,1395,1176,1175]); __d((function(g,r,i,a,m,e,d){var n=r(d[0]);r(d[1]),n(r(d[2]))}),1152,[50,1045,1153]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0]);e.default=t.throwOnMissingReanimated}),1153,[1154]); diff --git a/_expo/static/js/web/entry-14833f7ea229856ef3600d994f43074d.js b/_expo/static/js/web/entry-14833f7ea229856ef3600d994f43074d.js index 2ad5912..0a406db 100644 --- a/_expo/static/js/web/entry-14833f7ea229856ef3600d994f43074d.js +++ b/_expo/static/js/web/entry-14833f7ea229856ef3600d994f43074d.js @@ -1116,7 +1116,7 @@ __d((function(g,_r,i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModu __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.LocaleFab=void 0;var o=r(d[0]);e.LocaleFab=(0,o.memo)((function(){return null}))}),1037,[28]); __d((function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorModeFab=void 0;var o=r(d[0]),n=r(d[1]),l=r(d[2]),t=r(d[3]);e.ColorModeFab=(0,o.memo)((function(){var o=(0,n.useColorSchemeStore)().toggleColorScheme;return(0,t.jsx)(l.Fab,{onPress:o,children:(0,t.jsx)(l.Fab.Icon,{type:"material-community-icons",name:"moon-waning-gibbous",className:"!text-xl color-yellow-500"})})}))}),1038,[28,618,1030,27]); __d((function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.ListHeader=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),a=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(a,i,o):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a})(_r(d[3])),n=e(_r(d[4])),i=e(_r(d[5])),o=_r(d[6]),l=_r(d[7]),s=_r(d[8]),c=_r(d[9]),u=_r(d[10]),p=_r(d[11]);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function x(e){for(var r=1;r0&&void 0!==arguments[0]?arguments[0]:{},c=f;c.ready=new Promise((function(e,t){r=e,n=t})),(u=c).Td=u.Td||[],u.Td.push((function(){u.MakeSWCanvasSurface=function(e){var t=e,r="undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas;if(!("undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||r||(t=document.getElementById(e),t)))throw"Canvas with id "+e+" was not found";return(e=u.MakeSurface(t.width,t.height))&&(e.Md=t),e},u.MakeCanvasSurface||(u.MakeCanvasSurface=u.MakeSWCanvasSurface),u.MakeSurface=function(e,t){var r={width:e,height:t,colorType:u.ColorType.RGBA_8888,alphaType:u.AlphaType.Unpremul,colorSpace:u.ColorSpace.SRGB},n=e*t*4,i=u._malloc(n);return(r=u.Surface._makeRasterDirect(r,i,4*e))&&(r.Md=null,r.If=e,r.Ef=t,r.Gf=n,r.cf=i,r.getCanvas().clear(u.TRANSPARENT)),r},u.MakeRasterDirectSurface=function(e,t,r){return u.Surface._makeRasterDirect(e,t.byteOffset,r)},u.Surface.prototype.flush=function(e){if(u.Nd(this.Ld),this._flush(),this.Md){var t=new Uint8ClampedArray(u.HEAPU8.buffer,this.cf,this.Gf);t=new ImageData(t,this.If,this.Ef),e?this.Md.getContext("2d").putImageData(t,0,0,e[0],e[1],e[2]-e[0],e[3]-e[1]):this.Md.getContext("2d").putImageData(t,0,0)}},u.Surface.prototype.dispose=function(){this.cf&&u._free(this.cf),this.delete()},u.Nd=u.Nd||function(){},u.Ue=u.Ue||function(){return null}})),(function(e){e.Td=e.Td||[],e.Td.push((function(){function t(e,t,r){return e&&e.hasOwnProperty(t)?e[t]:r}function r(e){var t=Yt(Ut);return Ut[t]=e,t}function n(e){return e.naturalHeight||e.videoHeight||e.displayHeight||e.height}function i(e){return e.naturalWidth||e.videoWidth||e.displayWidth||e.width}function o(t,r,n,i){return t.bindTexture(t.TEXTURE_2D,r),i||n.alphaType!==e.AlphaType.Premul||t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),r}function a(t,r,n){n||r.alphaType!==e.AlphaType.Premul||t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),t.bindTexture(t.TEXTURE_2D,null)}e.GetWebGLContext=function(e,r){if(!e)throw"null canvas passed into makeWebGLContext";var n={alpha:t(r,"alpha",1),depth:t(r,"depth",1),stencil:t(r,"stencil",8),antialias:t(r,"antialias",0),premultipliedAlpha:t(r,"premultipliedAlpha",1),preserveDrawingBuffer:t(r,"preserveDrawingBuffer",0),preferLowPowerToHighPerformance:t(r,"preferLowPowerToHighPerformance",0),failIfMajorPerformanceCaveat:t(r,"failIfMajorPerformanceCaveat",0),enableExtensionsByDefault:t(r,"enableExtensionsByDefault",1),explicitSwapControl:t(r,"explicitSwapControl",0),renderViaOffscreenBackBuffer:t(r,"renderViaOffscreenBackBuffer",0)};if(n.majorVersion=r&&r.majorVersion?r.majorVersion:"undefined"!=typeof WebGL2RenderingContext?2:1,n.explicitSwapControl)throw"explicitSwapControl is not supported";return(e=zt(e,n))?(qt(e),Jt.ge.getExtension("WEBGL_debug_renderer_info"),e):0},e.deleteContext=function(e){Jt===Ht[e]&&(Jt=null),"object"==typeof JSEvents&&JSEvents.yg(Ht[e].ge.canvas),Ht[e]&&Ht[e].ge.canvas&&(Ht[e].ge.canvas.Af=void 0),Ht[e]=null},e._setTextureCleanup({deleteTexture:function(e,t){var r=Ut[t];r&&Ht[e].ge.deleteTexture(r),Ut[t]=null}}),e.MakeWebGLContext=function(t){if(!this.Nd(t))return null;var r=this._MakeGrContext();if(!r)return null;r.Ld=t;var n=r.delete.bind(r);return r.delete=function(){e.Nd(this.Ld),n()}.bind(r),Jt.gf=r},e.MakeGrContext=e.MakeWebGLContext,e.GrDirectContext.prototype.getResourceCacheLimitBytes=function(){e.Nd(this.Ld),this._getResourceCacheLimitBytes()},e.GrDirectContext.prototype.getResourceCacheUsageBytes=function(){e.Nd(this.Ld),this._getResourceCacheUsageBytes()},e.GrDirectContext.prototype.releaseResourcesAndAbandonContext=function(){e.Nd(this.Ld),this._releaseResourcesAndAbandonContext()},e.GrDirectContext.prototype.setResourceCacheLimitBytes=function(t){e.Nd(this.Ld),this._setResourceCacheLimitBytes(t)},e.MakeOnScreenGLSurface=function(e,t,r,n,i,o){return this.Nd(e.Ld)&&(t=void 0===i||void 0===o?this._MakeOnScreenGLSurface(e,t,r,n):this._MakeOnScreenGLSurface(e,t,r,n,i,o))?(t.Ld=e.Ld,t):null},e.MakeRenderTarget=function(){var e=arguments[0];if(!this.Nd(e.Ld))return null;if(3===arguments.length){var t=this._MakeRenderTargetWH(e,arguments[1],arguments[2]);if(!t)return null}else{if(2!==arguments.length)return null;if(!(t=this._MakeRenderTargetII(e,arguments[1])))return null}return t.Ld=e.Ld,t},e.MakeWebGLCanvasSurface=function(t,r,n){r=r||null;var i=t,o="undefined"!=typeof OffscreenCanvas&&i instanceof OffscreenCanvas;if(!("undefined"!=typeof HTMLCanvasElement&&i instanceof HTMLCanvasElement||o||(i=document.getElementById(t),i)))throw"Canvas with id "+t+" was not found";if(!(t=this.GetWebGLContext(i,n))||0>t)throw"failed to create webgl context: err "+t;return t=this.MakeWebGLContext(t),(r=this.MakeOnScreenGLSurface(t,i.width,i.height,r))||(r=i.cloneNode(!0),i.parentNode.replaceChild(r,i),r.classList.add("ck-replaced"),e.MakeSWCanvasSurface(r))},e.MakeCanvasSurface=e.MakeWebGLCanvasSurface,e.Surface.prototype.makeImageFromTexture=function(t,n){return e.Nd(this.Ld),t=r(t),(n=this._makeImageFromTexture(this.Ld,t,n))&&(n.Me=t),n},e.Surface.prototype.makeImageFromTextureSource=function(t,r,s){r||(r={height:n(t),width:i(t),colorType:e.ColorType.RGBA_8888,alphaType:s?e.AlphaType.Premul:e.AlphaType.Unpremul}),r.colorSpace||(r.colorSpace=e.ColorSpace.SRGB),e.Nd(this.Ld);var u=Jt.ge;return s=o(u,u.createTexture(),r,s),2===Jt.version?u.texImage2D(u.TEXTURE_2D,0,u.RGBA,r.width,r.height,0,u.RGBA,u.UNSIGNED_BYTE,t):u.texImage2D(u.TEXTURE_2D,0,u.RGBA,u.RGBA,u.UNSIGNED_BYTE,t),a(u,r),this._resetContext(),this.makeImageFromTexture(s,r)},e.Surface.prototype.updateTextureFromSource=function(t,s,u){if(t.Me){e.Nd(this.Ld);var l=t.getImageInfo(),f=Jt.ge,c=o(f,Ut[t.Me],l,u);2===Jt.version?f.texImage2D(f.TEXTURE_2D,0,f.RGBA,i(s),n(s),0,f.RGBA,f.UNSIGNED_BYTE,s):f.texImage2D(f.TEXTURE_2D,0,f.RGBA,f.RGBA,f.UNSIGNED_BYTE,s),a(f,l,u),this._resetContext(),Ut[t.Me]=null,t.Me=r(c),l.colorSpace=t.getColorSpace(),s=this._makeImageFromTexture(this.Ld,t.Me,l),u=t.Kd.Sd,f=t.Kd.Zd,t.Kd.Sd=s.Kd.Sd,t.Kd.Zd=s.Kd.Zd,s.Kd.Sd=u,s.Kd.Zd=f,s.delete(),l.colorSpace.delete()}},e.MakeLazyImageFromTextureSource=function(t,s,u){s||(s={height:n(t),width:i(t),colorType:e.ColorType.RGBA_8888,alphaType:u?e.AlphaType.Premul:e.AlphaType.Unpremul}),s.colorSpace||(s.colorSpace=e.ColorSpace.SRGB);var l={makeTexture:function(){var e=Jt,n=e.ge,i=o(n,n.createTexture(),s,u);return 2===e.version?n.texImage2D(n.TEXTURE_2D,0,n.RGBA,s.width,s.height,0,n.RGBA,n.UNSIGNED_BYTE,t):n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),a(n,s,u),r(i)},freeSrc:function(){}};return"VideoFrame"===t.constructor.name&&(l.freeSrc=function(){t.close()}),e.Image._makeFromGenerator(s,l)},e.Nd=function(e){return!!e&&qt(e)},e.Ue=function(){return Jt&&Jt.gf&&!Jt.gf.isDeleted()?Jt.gf:null}}))})(c),(function(e){function t(e,t,r,n,i){for(var o=0;o>>0}function o(e){if(e&&e._ck)return e;if(e instanceof Float32Array){for(var t=Math.floor(e.length/4),r=new Uint32Array(t),n=0;ns;s++)e.HEAPF32[o+i]=t[a][s],i++;t=n}else t=N;r.ce=t}return r}function d(t){if(!t)return N;var r=_.toTypedArray();if(t.length){if(6===t.length||9===t.length)return l(t,"HEAPF32",R),6===t.length&&e.HEAPF32.set($,6+R/4),R;if(16===t.length)return r[0]=t[0],r[1]=t[1],r[2]=t[3],r[3]=t[4],r[4]=t[5],r[5]=t[7],r[6]=t[12],r[7]=t[13],r[8]=t[15],R;throw"invalid matrix size"}if(void 0===t.m11)throw"invalid matrix argument";return r[0]=t.m11,r[1]=t.m21,r[2]=t.m41,r[3]=t.m12,r[4]=t.m22,r[5]=t.m42,r[6]=t.m14,r[7]=t.m24,r[8]=t.m44,R}function h(e){if(!e)return N;var t=P.toTypedArray();if(e.length){if(16!==e.length&&6!==e.length&&9!==e.length)throw"invalid matrix size";return 16===e.length?l(e,"HEAPF32",L):(t.fill(0),t[0]=e[0],t[1]=e[1],t[3]=e[2],t[4]=e[3],t[5]=e[4],t[7]=e[5],t[10]=1,t[12]=e[6],t[13]=e[7],t[15]=e[8],6===e.length&&(t[12]=0,t[13]=0,t[15]=1),L)}if(void 0===e.m11)throw"invalid matrix argument";return t[0]=e.m11,t[1]=e.m21,t[2]=e.m31,t[3]=e.m41,t[4]=e.m12,t[5]=e.m22,t[6]=e.m32,t[7]=e.m42,t[8]=e.m13,t[9]=e.m23,t[10]=e.m33,t[11]=e.m43,t[12]=e.m14,t[13]=e.m24,t[14]=e.m34,t[15]=e.m44,L}function p(e,t){return l(e,"HEAPF32",t||I)}function y(e,t,r,n){var i=M.toTypedArray();return i[0]=e,i[1]=t,i[2]=r,i[3]=n,I}function g(t){for(var r=new Float32Array(4),n=0;4>n;n++)r[n]=e.HEAPF32[t/4+n];return r}function m(e,t){return l(e,"HEAPF32",t||O)}function v(e,t){return l(e,"HEAPF32",t||W)}function b(){for(var e=0,t=0;t>>0},e.Color4f=function(e,t,r,n){return void 0===n&&(n=1),Float32Array.of(e,t,r,n)},Object.defineProperty(e,"TRANSPARENT",{get:function(){return e.Color4f(0,0,0,0)}}),Object.defineProperty(e,"BLACK",{get:function(){return e.Color4f(0,0,0,1)}}),Object.defineProperty(e,"WHITE",{get:function(){return e.Color4f(1,1,1,1)}}),Object.defineProperty(e,"RED",{get:function(){return e.Color4f(1,0,0,1)}}),Object.defineProperty(e,"GREEN",{get:function(){return e.Color4f(0,1,0,1)}}),Object.defineProperty(e,"BLUE",{get:function(){return e.Color4f(0,0,1,1)}}),Object.defineProperty(e,"YELLOW",{get:function(){return e.Color4f(1,1,0,1)}}),Object.defineProperty(e,"CYAN",{get:function(){return e.Color4f(0,1,1,1)}}),Object.defineProperty(e,"MAGENTA",{get:function(){return e.Color4f(1,0,1,1)}}),e.getColorComponents=function(e){return[Math.floor(255*e[0]),Math.floor(255*e[1]),Math.floor(255*e[2]),e[3]]},e.parseColorString=function(t,r){if((t=t.toLowerCase()).startsWith("#")){switch(r=255,t.length){case 9:r=parseInt(t.slice(7,9),16);case 7:var n=parseInt(t.slice(1,3),16),i=parseInt(t.slice(3,5),16),o=parseInt(t.slice(5,7),16);break;case 5:r=17*parseInt(t.slice(4,5),16);case 4:n=17*parseInt(t.slice(1,2),16),i=17*parseInt(t.slice(2,3),16),o=17*parseInt(t.slice(3,4),16)}return e.Color(n,i,o,r/255)}return t.startsWith("rgba")?(t=(t=t.slice(5,-1)).split(","),e.Color(+t[0],+t[1],+t[2],a(t[3]))):t.startsWith("rgb")?(t=(t=t.slice(4,-1)).split(","),e.Color(+t[0],+t[1],+t[2],a(t[3]))):t.startsWith("gray(")||t.startsWith("hsl")||!r||void 0===(t=r[t])?e.BLACK:t},e.multiplyByAlpha=function(e,t){return(e=e.slice())[3]=Math.max(0,Math.min(e[3]*t,1)),e},e.Malloc=function(t,r){var n=e._malloc(r*t.BYTES_PER_ELEMENT);return{_ck:!0,length:r,byteOffset:n,re:null,subarray:function(e,t){return(e=this.toTypedArray().subarray(e,t))._ck=!0,e},toTypedArray:function(){return this.re&&this.re.length||(this.re=new t(e.HEAPU8.buffer,n,r),this.re._ck=!0),this.re}}},e.Free=function(t){e._free(t.byteOffset),t.byteOffset=N,t.toTypedArray=null,t.re=null};var _,P,M,F,T,C,S,k,x,B,R=N,L=N,I=N,O=N,U=N,D=N,j=N,H=N,W=N,G=N,$=Float32Array.of(0,0,1),N=0;e.onRuntimeInitialized=function(){function t(t,r,n,i,o,a,s){a||(a=4*i.width,i.colorType===e.ColorType.RGBA_F16?a*=2:i.colorType===e.ColorType.RGBA_F32&&(a*=4));var u=a*i.height,l=o?o.byteOffset:e._malloc(u);if(s?!t._readPixels(i,l,a,r,n,s):!t._readPixels(i,l,a,r,n))return o||e._free(l),null;if(o)return o.toTypedArray();switch(i.colorType){case e.ColorType.RGBA_8888:case e.ColorType.RGBA_F16:t=new Uint8Array(e.HEAPU8.buffer,l,u).slice();break;case e.ColorType.RGBA_F32:t=new Float32Array(e.HEAPU8.buffer,l,u).slice();break;default:return null}return e._free(l),t}M=e.Malloc(Float32Array,4),I=M.byteOffset,P=e.Malloc(Float32Array,16),L=P.byteOffset,_=e.Malloc(Float32Array,9),R=_.byteOffset,x=e.Malloc(Float32Array,12),W=x.byteOffset,B=e.Malloc(Float32Array,12),G=B.byteOffset,F=e.Malloc(Float32Array,4),O=F.byteOffset,T=e.Malloc(Float32Array,4),U=T.byteOffset,C=e.Malloc(Float32Array,3),D=C.byteOffset,S=e.Malloc(Float32Array,3),j=S.byteOffset,k=e.Malloc(Int32Array,4),H=k.byteOffset,e.ColorSpace.SRGB=e.ColorSpace._MakeSRGB(),e.ColorSpace.DISPLAY_P3=e.ColorSpace._MakeDisplayP3(),e.ColorSpace.ADOBE_RGB=e.ColorSpace._MakeAdobeRGB(),e.GlyphRunFlags={IsWhiteSpace:e._GlyphRunFlags_isWhiteSpace},e.Path.MakeFromCmds=function(t){var r=l(t,"HEAPF32"),n=e.Path._MakeFromCmds(r,t.length);return u(r,t),n},e.Path.MakeFromVerbsPointsWeights=function(t,r,n){var i=l(t,"HEAPU8"),o=l(r,"HEAPF32"),a=l(n,"HEAPF32"),s=e.Path._MakeFromVerbsPointsWeights(i,t.length,o,r.length,a,n&&n.length||0);return u(i,t),u(o,r),u(a,n),s},e.Path.prototype.addArc=function(e,t,r){return e=m(e),this._addArc(e,t,r),this},e.Path.prototype.addCircle=function(e,t,r,n){return this._addCircle(e,t,r,!!n),this},e.Path.prototype.addOval=function(e,t,r){return void 0===r&&(r=1),e=m(e),this._addOval(e,!!t,r),this},e.Path.prototype.addPath=function(){var e=Array.prototype.slice.call(arguments),t=e[0],r=!1;if("boolean"==typeof e[e.length-1]&&(r=e.pop()),1===e.length)this._addPath(t,1,0,0,0,1,0,0,0,1,r);else if(2===e.length)e=e[1],this._addPath(t,e[0],e[1],e[2],e[3],e[4],e[5],e[6]||0,e[7]||0,e[8]||1,r);else{if(7!==e.length&&10!==e.length)return null;this._addPath(t,e[1],e[2],e[3],e[4],e[5],e[6],e[7]||0,e[8]||0,e[9]||1,r)}return this},e.Path.prototype.addPoly=function(e,t){var r=l(e,"HEAPF32");return this._addPoly(r,e.length/2,t),u(r,e),this},e.Path.prototype.addRect=function(e,t){return e=m(e),this._addRect(e,!!t),this},e.Path.prototype.addRRect=function(e,t){return e=v(e),this._addRRect(e,!!t),this},e.Path.prototype.addVerbsPointsWeights=function(e,t,r){var n=l(e,"HEAPU8"),i=l(t,"HEAPF32"),o=l(r,"HEAPF32");this._addVerbsPointsWeights(n,e.length,i,t.length,o,r&&r.length||0),u(n,e),u(i,t),u(o,r)},e.Path.prototype.arc=function(t,r,n,i,o,a){return t=e.LTRBRect(t-n,r-n,t+n,r+n),o=(o-i)/Math.PI*180-360*!!a,(a=new e.Path).addArc(t,i/Math.PI*180,o),this.addPath(a,!0),a.delete(),this},e.Path.prototype.arcToOval=function(e,t,r,n){return e=m(e),this._arcToOval(e,t,r,n),this},e.Path.prototype.arcToRotated=function(e,t,r,n,i,o,a){return this._arcToRotated(e,t,r,!!n,!!i,o,a),this},e.Path.prototype.arcToTangent=function(e,t,r,n,i){return this._arcToTangent(e,t,r,n,i),this},e.Path.prototype.close=function(){return this._close(),this},e.Path.prototype.conicTo=function(e,t,r,n,i){return this._conicTo(e,t,r,n,i),this},e.Path.prototype.computeTightBounds=function(e){this._computeTightBounds(O);var t=F.toTypedArray();return e?(e.set(t),e):t.slice()},e.Path.prototype.cubicTo=function(e,t,r,n,i,o){return this._cubicTo(e,t,r,n,i,o),this},e.Path.prototype.dash=function(e,t,r){return this._dash(e,t,r)?this:null},e.Path.prototype.getBounds=function(e){this._getBounds(O);var t=F.toTypedArray();return e?(e.set(t),e):t.slice()},e.Path.prototype.lineTo=function(e,t){return this._lineTo(e,t),this},e.Path.prototype.moveTo=function(e,t){return this._moveTo(e,t),this},e.Path.prototype.offset=function(e,t){return this._transform(1,0,e,0,1,t,0,0,1),this},e.Path.prototype.quadTo=function(e,t,r,n){return this._quadTo(e,t,r,n),this},e.Path.prototype.rArcTo=function(e,t,r,n,i,o,a){return this._rArcTo(e,t,r,n,i,o,a),this},e.Path.prototype.rConicTo=function(e,t,r,n,i){return this._rConicTo(e,t,r,n,i),this},e.Path.prototype.rCubicTo=function(e,t,r,n,i,o){return this._rCubicTo(e,t,r,n,i,o),this},e.Path.prototype.rLineTo=function(e,t){return this._rLineTo(e,t),this},e.Path.prototype.rMoveTo=function(e,t){return this._rMoveTo(e,t),this},e.Path.prototype.rQuadTo=function(e,t,r,n){return this._rQuadTo(e,t,r,n),this},e.Path.prototype.stroke=function(t){return(t=t||{}).width=t.width||1,t.miter_limit=t.miter_limit||4,t.cap=t.cap||e.StrokeCap.Butt,t.join=t.join||e.StrokeJoin.Miter,t.precision=t.precision||1,this._stroke(t)?this:null},e.Path.prototype.transform=function(){if(1===arguments.length){var e=arguments[0];this._transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6]||0,e[7]||0,e[8]||1)}else{if(6!==arguments.length&&9!==arguments.length)throw"transform expected to take 1 or 9 arguments. Got "+arguments.length;e=arguments,this._transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6]||0,e[7]||0,e[8]||1)}return this},e.Path.prototype.trim=function(e,t,r){return this._trim(e,t,!!r)?this:null},e.Image.prototype.encodeToBytes=function(t,r){var n=e.Ue();return t=t||e.ImageFormat.PNG,r=r||100,n?this._encodeToBytes(t,r,n):this._encodeToBytes(t,r)},e.Image.prototype.makeShaderCubic=function(e,t,r,n,i){return i=d(i),this._makeShaderCubic(e,t,r,n,i)},e.Image.prototype.makeShaderOptions=function(e,t,r,n,i){return i=d(i),this._makeShaderOptions(e,t,r,n,i)},e.Image.prototype.readPixels=function(r,n,i,o,a){return t(this,r,n,i,o,a,e.Ue())},e.Canvas.prototype.clear=function(t){e.Nd(this.Ld),t=p(t),this._clear(t)},e.Canvas.prototype.clipRRect=function(t,r,n){e.Nd(this.Ld),t=v(t),this._clipRRect(t,r,n)},e.Canvas.prototype.clipRect=function(t,r,n){e.Nd(this.Ld),t=m(t),this._clipRect(t,r,n)},e.Canvas.prototype.concat=function(t){e.Nd(this.Ld),t=h(t),this._concat(t)},e.Canvas.prototype.drawArc=function(t,r,n,i,o){e.Nd(this.Ld),t=m(t),this._drawArc(t,r,n,i,o)},e.Canvas.prototype.drawAtlas=function(t,r,n,i,a,s,f){if(t&&i&&r&&n&&r.length===n.length){e.Nd(this.Ld),a||(a=e.BlendMode.SrcOver);var c=l(r,"HEAPF32"),d=l(n,"HEAPF32"),h=n.length/4,p=l(o(s),"HEAPU32");if(f&&"B"in f&&"C"in f)this._drawAtlasCubic(t,d,c,p,h,a,f.B,f.C,i);else{var y=e.FilterMode.Linear,g=e.MipmapMode.None;f&&(y=f.filter,"mipmap"in f&&(g=f.mipmap)),this._drawAtlasOptions(t,d,c,p,h,a,y,g,i)}u(c,r),u(d,n),u(p,s)}},e.Canvas.prototype.drawCircle=function(t,r,n,i){e.Nd(this.Ld),this._drawCircle(t,r,n,i)},e.Canvas.prototype.drawColor=function(t,r){e.Nd(this.Ld),t=p(t),void 0!==r?this._drawColor(t,r):this._drawColor(t)},e.Canvas.prototype.drawColorInt=function(t,r){e.Nd(this.Ld),this._drawColorInt(t,r||e.BlendMode.SrcOver)},e.Canvas.prototype.drawColorComponents=function(t,r,n,i,o){e.Nd(this.Ld),t=y(t,r,n,i),void 0!==o?this._drawColor(t,o):this._drawColor(t)},e.Canvas.prototype.drawDRRect=function(t,r,n){e.Nd(this.Ld),t=v(t,W),r=v(r,G),this._drawDRRect(t,r,n)},e.Canvas.prototype.drawImage=function(t,r,n,i){e.Nd(this.Ld),this._drawImage(t,r,n,i||null)},e.Canvas.prototype.drawImageCubic=function(t,r,n,i,o,a){e.Nd(this.Ld),this._drawImageCubic(t,r,n,i,o,a||null)},e.Canvas.prototype.drawImageOptions=function(t,r,n,i,o,a){e.Nd(this.Ld),this._drawImageOptions(t,r,n,i,o,a||null)},e.Canvas.prototype.drawImageNine=function(t,r,n,i,o){e.Nd(this.Ld),r=l(r,"HEAP32",H),n=m(n),this._drawImageNine(t,r,n,i,o||null)},e.Canvas.prototype.drawImageRect=function(t,r,n,i,o){e.Nd(this.Ld),m(r,O),m(n,U),this._drawImageRect(t,O,U,i,!!o)},e.Canvas.prototype.drawImageRectCubic=function(t,r,n,i,o,a){e.Nd(this.Ld),m(r,O),m(n,U),this._drawImageRectCubic(t,O,U,i,o,a||null)},e.Canvas.prototype.drawImageRectOptions=function(t,r,n,i,o,a){e.Nd(this.Ld),m(r,O),m(n,U),this._drawImageRectOptions(t,O,U,i,o,a||null)},e.Canvas.prototype.drawLine=function(t,r,n,i,o){e.Nd(this.Ld),this._drawLine(t,r,n,i,o)},e.Canvas.prototype.drawOval=function(t,r){e.Nd(this.Ld),t=m(t),this._drawOval(t,r)},e.Canvas.prototype.drawPaint=function(t){e.Nd(this.Ld),this._drawPaint(t)},e.Canvas.prototype.drawParagraph=function(t,r,n){e.Nd(this.Ld),this._drawParagraph(t,r,n)},e.Canvas.prototype.drawPatch=function(t,r,n,i,a){if(24>t.length)throw"Need 12 cubic points";if(r&&4>r.length)throw"Need 4 colors";if(n&&8>n.length)throw"Need 4 shader coordinates";e.Nd(this.Ld);var s=l(t,"HEAPF32"),f=r?l(o(r),"HEAPU32"):N,c=n?l(n,"HEAPF32"):N;i||(i=e.BlendMode.Modulate),this._drawPatch(s,f,c,i,a),u(c,n),u(f,r),u(s,t)},e.Canvas.prototype.drawPath=function(t,r){e.Nd(this.Ld),this._drawPath(t,r)},e.Canvas.prototype.drawPicture=function(t){e.Nd(this.Ld),this._drawPicture(t)},e.Canvas.prototype.drawPoints=function(t,r,n){e.Nd(this.Ld);var i=l(r,"HEAPF32");this._drawPoints(t,i,r.length/2,n),u(i,r)},e.Canvas.prototype.drawRRect=function(t,r){e.Nd(this.Ld),t=v(t),this._drawRRect(t,r)},e.Canvas.prototype.drawRect=function(t,r){e.Nd(this.Ld),t=m(t),this._drawRect(t,r)},e.Canvas.prototype.drawRect4f=function(t,r,n,i,o){e.Nd(this.Ld),this._drawRect4f(t,r,n,i,o)},e.Canvas.prototype.drawShadow=function(t,r,n,i,o,a,s){e.Nd(this.Ld);var f=l(o,"HEAPF32"),c=l(a,"HEAPF32");r=l(r,"HEAPF32",D),n=l(n,"HEAPF32",j),this._drawShadow(t,r,n,i,f,c,s),u(f,o),u(c,a)},e.getShadowLocalBounds=function(e,t,r,n,i,o,a){return e=d(e),r=l(r,"HEAPF32",D),n=l(n,"HEAPF32",j),this._getShadowLocalBounds(e,t,r,n,i,o,O)?(t=F.toTypedArray(),a?(a.set(t),a):t.slice()):null},e.Canvas.prototype.drawTextBlob=function(t,r,n,i){e.Nd(this.Ld),this._drawTextBlob(t,r,n,i)},e.Canvas.prototype.drawVertices=function(t,r,n){e.Nd(this.Ld),this._drawVertices(t,r,n)},e.Canvas.prototype.getDeviceClipBounds=function(e){this._getDeviceClipBounds(H);var t=k.toTypedArray();return e?e.set(t):e=t.slice(),e},e.Canvas.prototype.getLocalToDevice=function(){this._getLocalToDevice(L);for(var t=L,r=Array(16),n=0;16>n;n++)r[n]=e.HEAPF32[t/4+n];return r},e.Canvas.prototype.getTotalMatrix=function(){this._getTotalMatrix(R);for(var t=Array(9),r=0;9>r;r++)t[r]=e.HEAPF32[R/4+r];return t},e.Canvas.prototype.makeSurface=function(e){return(e=this._makeSurface(e)).Ld=this.Ld,e},e.Canvas.prototype.readPixels=function(r,n,i,o,a){return e.Nd(this.Ld),t(this,r,n,i,o,a)},e.Canvas.prototype.saveLayer=function(e,t,r,n){return t=m(t),this._saveLayer(e||null,t,r||null,n||0)},e.Canvas.prototype.writePixels=function(t,r,n,i,o,a,s,f){if(t.byteLength%(r*n))throw"pixels length must be a multiple of the srcWidth * srcHeight";e.Nd(this.Ld);var c=t.byteLength/(r*n);a=a||e.AlphaType.Unpremul,s=s||e.ColorType.RGBA_8888,f=f||e.ColorSpace.SRGB;var d=c*r;return c=l(t,"HEAPU8"),r=this._writePixels({width:r,height:n,colorType:s,alphaType:a,colorSpace:f},c,d,i,o),u(c,t),r},e.ColorFilter.MakeBlend=function(t,r,n){return t=p(t),n=n||e.ColorSpace.SRGB,e.ColorFilter._MakeBlend(t,r,n)},e.ColorFilter.MakeMatrix=function(t){if(!t||20!==t.length)throw"invalid color matrix";var r=l(t,"HEAPF32"),n=e.ColorFilter._makeMatrix(r);return u(r,t),n},e.ContourMeasure.prototype.getPosTan=function(e,t){return this._getPosTan(e,O),e=F.toTypedArray(),t?(t.set(e),t):e.slice()},e.ImageFilter.prototype.getOutputBounds=function(e,t,r){return e=m(e,O),t=d(t),this._getOutputBounds(e,t,H),t=k.toTypedArray(),r?(r.set(t),r):t.slice()},e.ImageFilter.MakeDropShadow=function(t,r,n,i,o,a){return o=p(o,I),e.ImageFilter._MakeDropShadow(t,r,n,i,o,a)},e.ImageFilter.MakeDropShadowOnly=function(t,r,n,i,o,a){return o=p(o,I),e.ImageFilter._MakeDropShadowOnly(t,r,n,i,o,a)},e.ImageFilter.MakeImage=function(t,r,n,i){if(n=m(n,O),i=m(i,U),"B"in r&&"C"in r)return e.ImageFilter._MakeImageCubic(t,r.B,r.C,n,i);var o=r.filter,a=e.MipmapMode.None;return"mipmap"in r&&(a=r.mipmap),e.ImageFilter._MakeImageOptions(t,o,a,n,i)},e.ImageFilter.MakeMatrixTransform=function(t,r,n){if(t=d(t),"B"in r&&"C"in r)return e.ImageFilter._MakeMatrixTransformCubic(t,r.B,r.C,n);var i=r.filter,o=e.MipmapMode.None;return"mipmap"in r&&(o=r.mipmap),e.ImageFilter._MakeMatrixTransformOptions(t,i,o,n)},e.Paint.prototype.getColor=function(){return this._getColor(I),g(I)},e.Paint.prototype.setColor=function(e,t){t=t||null,e=p(e),this._setColor(e,t)},e.Paint.prototype.setColorComponents=function(e,t,r,n,i){i=i||null,e=y(e,t,r,n),this._setColor(e,i)},e.Path.prototype.getPoint=function(e,t){return this._getPoint(e,O),e=F.toTypedArray(),t?(t[0]=e[0],t[1]=e[1],t):e.slice(0,2)},e.Picture.prototype.makeShader=function(e,t,r,n,i){return n=d(n),i=m(i),this._makeShader(e,t,r,n,i)},e.Picture.prototype.cullRect=function(e){this._cullRect(O);var t=F.toTypedArray();return e?(e.set(t),e):t.slice()},e.PictureRecorder.prototype.beginRecording=function(e,t){return e=m(e),this._beginRecording(e,!!t)},e.Surface.prototype.getCanvas=function(){var e=this._getCanvas();return e.Ld=this.Ld,e},e.Surface.prototype.makeImageSnapshot=function(t){return e.Nd(this.Ld),t=l(t,"HEAP32",H),this._makeImageSnapshot(t)},e.Surface.prototype.makeSurface=function(t){return e.Nd(this.Ld),(t=this._makeSurface(t)).Ld=this.Ld,t},e.Surface.prototype.Hf=function(t,r){return this.Ie||(this.Ie=this.getCanvas()),requestAnimationFrame(function(){e.Nd(this.Ld),t(this.Ie),this.flush(r)}.bind(this))},e.Surface.prototype.requestAnimationFrame||(e.Surface.prototype.requestAnimationFrame=e.Surface.prototype.Hf),e.Surface.prototype.Df=function(t,r){this.Ie||(this.Ie=this.getCanvas()),requestAnimationFrame(function(){e.Nd(this.Ld),t(this.Ie),this.flush(r),this.dispose()}.bind(this))},e.Surface.prototype.drawOnce||(e.Surface.prototype.drawOnce=e.Surface.prototype.Df),e.PathEffect.MakeDash=function(t,r){if(r||(r=0),!t.length||1==t.length%2)throw"Intervals array must have even length";var n=l(t,"HEAPF32");return r=e.PathEffect._MakeDash(n,t.length,r),u(n,t),r},e.PathEffect.MakeLine2D=function(t,r){return r=d(r),e.PathEffect._MakeLine2D(t,r)},e.PathEffect.MakePath2D=function(t,r){return t=d(t),e.PathEffect._MakePath2D(t,r)},e.Shader.MakeColor=function(t,r){return r=r||null,t=p(t),e.Shader._MakeColor(t,r)},e.Shader.Blend=e.Shader.MakeBlend,e.Shader.Color=e.Shader.MakeColor,e.Shader.MakeLinearGradient=function(t,r,n,i,o,a,s,c){c=c||null;var h=f(n),p=l(i,"HEAPF32");s=s||0,a=d(a);var y=F.toTypedArray();return y.set(t),y.set(r,2),t=e.Shader._MakeLinearGradient(O,h.ce,h.colorType,p,h.count,o,s,a,c),u(h.ce,n),i&&u(p,i),t},e.Shader.MakeRadialGradient=function(t,r,n,i,o,a,s,c){c=c||null;var h=f(n),p=l(i,"HEAPF32");return s=s||0,a=d(a),t=e.Shader._MakeRadialGradient(t[0],t[1],r,h.ce,h.colorType,p,h.count,o,s,a,c),u(h.ce,n),i&&u(p,i),t},e.Shader.MakeSweepGradient=function(t,r,n,i,o,a,s,c,h,p){p=p||null;var y=f(n),g=l(i,"HEAPF32");return s=s||0,c=c||0,h=h||360,a=d(a),t=e.Shader._MakeSweepGradient(t,r,y.ce,y.colorType,g,y.count,o,c,h,s,a,p),u(y.ce,n),i&&u(g,i),t},e.Shader.MakeTwoPointConicalGradient=function(t,r,n,i,o,a,s,c,h,p){p=p||null;var y=f(o),g=l(a,"HEAPF32");h=h||0,c=d(c);var m=F.toTypedArray();return m.set(t),m.set(n,2),t=e.Shader._MakeTwoPointConicalGradient(O,r,i,y.ce,y.colorType,g,y.count,s,h,c,p),u(y.ce,o),a&&u(g,a),t},e.Vertices.prototype.bounds=function(e){this._bounds(O);var t=F.toTypedArray();return e?(e.set(t),e):t.slice()},e.Td&&e.Td.forEach((function(e){e()}))},e.computeTonalColors=function(e){var t=l(e.ambient,"HEAPF32"),r=l(e.spot,"HEAPF32");this._computeTonalColors(t,r);var n={ambient:g(t),spot:g(r)};return u(t,e.ambient),u(r,e.spot),n},e.LTRBRect=function(e,t,r,n){return Float32Array.of(e,t,r,n)},e.XYWHRect=function(e,t,r,n){return Float32Array.of(e,t,e+r,t+n)},e.LTRBiRect=function(e,t,r,n){return Int32Array.of(e,t,r,n)},e.XYWHiRect=function(e,t,r,n){return Int32Array.of(e,t,e+r,t+n)},e.RRectXY=function(e,t,r){return Float32Array.of(e[0],e[1],e[2],e[3],t,r,t,r,t,r,t,r)},e.MakeAnimatedImageFromEncoded=function(t){t=new Uint8Array(t);var r=e._malloc(t.byteLength);return e.HEAPU8.set(t,r),(t=e._decodeAnimatedImage(r,t.byteLength))?t:null},e.MakeImageFromEncoded=function(t){t=new Uint8Array(t);var r=e._malloc(t.byteLength);return e.HEAPU8.set(t,r),(t=e._decodeImage(r,t.byteLength))?t:null};var V=null;e.MakeImageFromCanvasImageSource=function(t){var r=t.width,n=t.height;V||(V=document.createElement("canvas")),V.width=r,V.height=n;var i=V.getContext("2d",{willReadFrequently:!0});return i.drawImage(t,0,0),t=i.getImageData(0,0,r,n),e.MakeImage({width:r,height:n,alphaType:e.AlphaType.Unpremul,colorType:e.ColorType.RGBA_8888,colorSpace:e.ColorSpace.SRGB},t.data,4*r)},e.MakeImage=function(t,r,n){var i=e._malloc(r.length);return e.HEAPU8.set(r,i),e._MakeImage(t,i,r.length,n)},e.MakeVertices=function(t,r,n,i,a,s){var u=a&&a.length||0,f=0;return n&&n.length&&(f|=1),i&&i.length&&(f|=2),void 0===s||s||(f|=4),l(r,"HEAPF32",(t=new e._VerticesBuilder(t,r.length/2,u,f)).positions()),t.texCoords()&&l(n,"HEAPF32",t.texCoords()),t.colors()&&l(o(i),"HEAPU32",t.colors()),t.indices()&&l(a,"HEAPU16",t.indices()),t.detach()},e.Matrix={},e.Matrix.identity=function(){return r(3)},e.Matrix.invert=function(e){var t=e[0]*e[4]*e[8]+e[1]*e[5]*e[6]+e[2]*e[3]*e[7]-e[2]*e[4]*e[6]-e[1]*e[3]*e[8]-e[0]*e[5]*e[7];return t?[(e[4]*e[8]-e[5]*e[7])/t,(e[2]*e[7]-e[1]*e[8])/t,(e[1]*e[5]-e[2]*e[4])/t,(e[5]*e[6]-e[3]*e[8])/t,(e[0]*e[8]-e[2]*e[6])/t,(e[2]*e[3]-e[0]*e[5])/t,(e[3]*e[7]-e[4]*e[6])/t,(e[1]*e[6]-e[0]*e[7])/t,(e[0]*e[4]-e[1]*e[3])/t]:null},e.Matrix.mapPoints=function(e,t){for(var r=0;ri;i+=5){for(var o=0;4>o;o++)r[n++]=e[i]*t[o]+e[i+1]*t[o+5]+e[i+2]*t[o+10]+e[i+3]*t[o+15];r[n++]=e[i]*t[4]+e[i+1]*t[9]+e[i+2]*t[14]+e[i+3]*t[19]+e[i+4]}return r},(K=c).Td=K.Td||[],K.Td.push((function(){function e(e){return e&&(e.dir=0===e.dir?K.TextDirection.RTL:K.TextDirection.LTR),e}function t(e){if(!e||!e.length)return[];for(var t=[],r=0;rr?(e._free(t),null):(o=new Uint16Array(e.HEAPU8.buffer,t,r),n?(n.set(o),e._free(t),n):(n=Uint16Array.from(o),e._free(t),n))},e.Font.prototype.getGlyphIntercepts=function(e,t,r,n){var i=l(e,"HEAPU16"),o=l(t,"HEAPF32");return this._getGlyphIntercepts(i,e.length,!(e&&e._ck),o,t.length,!(t&&t._ck),r,n)},e.Font.prototype.getGlyphWidths=function(t,r,n){var i=l(t,"HEAPU16"),o=e._malloc(4*t.length);return this._getGlyphWidthBounds(i,t.length,o,N,r||null),r=new Float32Array(e.HEAPU8.buffer,o,t.length),u(i,t),n?(n.set(r),e._free(o),n):(t=Float32Array.from(r),e._free(o),t)},e.FontMgr.FromData=function(){if(!arguments.length)return null;var t=arguments;if(1===t.length&&Array.isArray(t[0])&&(t=arguments[0]),!t.length)return null;for(var r=[],n=[],i=0;ir?(e._free(t),null):(o=new Uint16Array(e.HEAPU8.buffer,t,r),n?(n.set(o),e._free(t),n):(n=Uint16Array.from(o),e._free(t),n))},e.TextBlob.MakeOnPath=function(t,r,n,i){if(t&&t.length&&r&&r.countPoints()){if(1===r.countPoints())return this.MakeFromText(t,n);i||(i=0);var o=n.getGlyphIDs(t);o=n.getGlyphWidths(o);for(var a=[],s=(r=new e.ContourMeasureIter(r,!1,1)).next(),u=new Float32Array(4),l=0;ls.length()){if(s.delete(),!(s=r.next())){t=t.substring(0,l);break}i=f/2}s.getPosTan(i,u);var c=u[2],d=u[3];a.push(c,d,u[0]-f/2*c,u[1]-f/2*d),i+=f/2}return t=this.MakeFromRSXform(t,a,n),s&&s.delete(),r.delete(),t}},e.TextBlob.MakeFromRSXform=function(t,r,n){var i=dt(t)+1,o=e._malloc(i);return ct(t,E,o,i),t=l(r,"HEAPF32"),n=e.TextBlob._MakeFromRSXform(o,i-1,t,n),e._free(o),n||null},e.TextBlob.MakeFromRSXformGlyphs=function(t,r,n){var i=l(t,"HEAPU16");return r=l(r,"HEAPF32"),n=e.TextBlob._MakeFromRSXformGlyphs(i,2*t.length,r,n),u(i,t),n||null},e.TextBlob.MakeFromGlyphs=function(t,r){var n=l(t,"HEAPU16");return r=e.TextBlob._MakeFromGlyphs(n,2*t.length,r),u(n,t),r||null},e.TextBlob.MakeFromText=function(t,r){var n=dt(t)+1,i=e._malloc(n);return ct(t,E,i,n),t=e.TextBlob._MakeFromText(i,n-1,r),e._free(i),t||null},e.MallocGlyphIDs=function(t){return e.Malloc(Uint16Array,t)}})),e.Td=e.Td||[],e.Td.push((function(){e.MakePicture=function(t){t=new Uint8Array(t);var r=e._malloc(t.byteLength);return e.HEAPU8.set(t,r),(t=e._MakePicture(r,t.byteLength))?t:null}})),e.Td=e.Td||[],e.Td.push((function(){e.RuntimeEffect.Make=function(t,r){return e.RuntimeEffect._Make(t,{onError:r||function(e){console.log("RuntimeEffect error",e)}})},e.RuntimeEffect.MakeForBlender=function(t,r){return e.RuntimeEffect._MakeForBlender(t,{onError:r||function(e){console.log("RuntimeEffect error",e)}})},e.RuntimeEffect.prototype.makeShader=function(e,t){var r=!e._ck,n=l(e,"HEAPF32");return t=d(t),this._makeShader(n,4*e.length,r,t)},e.RuntimeEffect.prototype.makeShaderWithChildren=function(e,t,r){var n=!e._ck,i=l(e,"HEAPF32");r=d(r);for(var o=[],a=0;ae||1=e||!e||(this.Le=e,this.Pd.setStrokeWidth(e))}}),Object.defineProperty(this,"miterLimit",{enumerable:!0,get:function(){return this.Pd.getStrokeMiter()},set:function(e){0>=e||!e||this.Pd.setStrokeMiter(e)}}),Object.defineProperty(this,"shadowBlur",{enumerable:!0,get:function(){return this.we},set:function(e){0>e||!isFinite(e)||(this.we=e)}}),Object.defineProperty(this,"shadowColor",{enumerable:!0,get:function(){return r(this.Ke)},set:function(e){this.Ke=i(e)}}),Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,get:function(){return this.xe},set:function(e){isFinite(e)&&(this.xe=e)}}),Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,get:function(){return this.ye},set:function(e){isFinite(e)&&(this.ye=e)}}),Object.defineProperty(this,"strokeStyle",{enumerable:!0,get:function(){return r(this.he)},set:function(e){"string"==typeof e?this.he=i(e):e.ue&&(this.he=e)}}),this.arc=function(e,t,r,n,i,o){p(this.Rd,e,t,r,r,0,n,i,o)},this.arcTo=function(e,t,r,n,i){c(this.Rd,e,t,r,n,i)},this.beginPath=function(){this.Rd.delete(),this.Rd=new e.Path},this.bezierCurveTo=function(e,r,n,i,o,a){var s=this.Rd;t([e,r,n,i,o,a])&&(s.isEmpty()&&s.moveTo(e,r),s.cubicTo(e,r,n,i,o,a))},this.clearRect=function(t,r,n,i){this.Pd.setStyle(e.PaintStyle.Fill),this.Pd.setBlendMode(e.BlendMode.Clear),this.Md.drawRect(e.XYWHRect(t,r,n,i),this.Pd),this.Pd.setBlendMode(this.Od)},this.clip=function(t,r){"string"==typeof t?(r=t,t=this.Rd):t&&t.bf&&(t=t.Vd),t||(t=this.Rd),t=t.copy(),r&&"evenodd"===r.toLowerCase()?t.setFillType(e.FillType.EvenOdd):t.setFillType(e.FillType.Winding),this.Md.clipPath(t,e.ClipOp.Intersect,!0),t.delete()},this.closePath=function(){d(this.Rd)},this.createImageData=function(){if(1===arguments.length){var e=arguments[0];return new l(new Uint8ClampedArray(4*e.width*e.height),e.width,e.height)}if(2===arguments.length){e=arguments[0];var t=arguments[1];return new l(new Uint8ClampedArray(4*e*t),e,t)}throw"createImageData expects 1 or 2 arguments, got "+arguments.length},this.createLinearGradient=function(e,r,n,i){if(t(arguments)){var o=new f(e,r,n,i);return this.Ce.push(o),o}},this.createPattern=function(e,t){return e=new m(e,t),this.Ce.push(e),e},this.createRadialGradient=function(e,r,n,i,o,a){if(t(arguments)){var s=new v(e,r,n,i,o,a);return this.Ce.push(s),s}},this.drawImage=function(t){t instanceof u&&(t=t.uf());var r=this.Re();if(3===arguments.length||5===arguments.length)var n=e.XYWHRect(arguments[1],arguments[2],arguments[3]||t.width(),arguments[4]||t.height()),i=e.XYWHRect(0,0,t.width(),t.height());else{if(9!==arguments.length)throw"invalid number of args for drawImage, need 3, 5, or 9; got "+arguments.length;n=e.XYWHRect(arguments[5],arguments[6],arguments[7],arguments[8]),i=e.XYWHRect(arguments[1],arguments[2],arguments[3],arguments[4])}this.Md.drawImageRect(t,i,n,r,!1),r.dispose()},this.ellipse=function(e,t,r,n,i,o,a,s){p(this.Rd,e,t,r,n,i,o,a,s)},this.Re=function(){var t=this.Pd.copy();if(t.setStyle(e.PaintStyle.Fill),n(this.be)){var r=e.multiplyByAlpha(this.be,this.je);t.setColor(r)}else r=this.be.ue(this.Ud),t.setColor(e.Color(0,0,0,this.je)),t.setShader(r);return t.dispose=function(){this.delete()},t},this.fill=function(t,r){if("string"==typeof t?(r=t,t=this.Rd):t&&t.bf&&(t=t.Vd),"evenodd"===r)this.Rd.setFillType(e.FillType.EvenOdd);else{if("nonzero"!==r&&r)throw"invalid fill rule";this.Rd.setFillType(e.FillType.Winding)}t||(t=this.Rd),r=this.Re();var n=this.ze(r);n&&(this.Md.save(),this.se(),this.Md.drawPath(t,n),this.Md.restore(),n.dispose()),this.Md.drawPath(t,r),r.dispose()},this.fillRect=function(t,r,n,i){var o=this.Re(),a=this.ze(o);a&&(this.Md.save(),this.se(),this.Md.drawRect(e.XYWHRect(t,r,n,i),a),this.Md.restore(),a.dispose()),this.Md.drawRect(e.XYWHRect(t,r,n,i),o),o.dispose()},this.fillText=function(t,r,n){var i=this.Re();t=e.TextBlob.MakeFromText(t,this.ne);var o=this.ze(i);o&&(this.Md.save(),this.se(),this.Md.drawTextBlob(t,r,n,o),this.Md.restore(),o.dispose()),this.Md.drawTextBlob(t,r,n,i),t.delete(),i.dispose()},this.getImageData=function(t,r,n,i){return(t=this.Md.readPixels(t,r,{width:n,height:i,colorType:e.ColorType.RGBA_8888,alphaType:e.AlphaType.Unpremul,colorSpace:e.ColorSpace.SRGB}))?new l(new Uint8ClampedArray(t.buffer),n,i):null},this.getLineDash=function(){return this.ve.slice()},this.nf=function(t){var r=e.Matrix.invert(this.Ud);return e.Matrix.mapPoints(r,t),t},this.isPointInPath=function(t,r,n){var i=arguments;if(3===i.length)var o=this.Rd;else{if(4!==i.length)throw"invalid arg count, need 3 or 4, got "+i.length;o=i[0],t=i[1],r=i[2],n=i[3]}return!(!isFinite(t)||!isFinite(r))&&("nonzero"===(n=n||"nonzero")||"evenodd"===n)&&(t=(i=this.nf([t,r]))[0],r=i[1],o.setFillType("nonzero"===n?e.FillType.Winding:e.FillType.EvenOdd),o.contains(t,r))},this.isPointInStroke=function(t,r){var n=arguments;if(2===n.length)var i=this.Rd;else{if(3!==n.length)throw"invalid arg count, need 2 or 3, got "+n.length;i=n[0],t=n[1],r=n[2]}return!(!isFinite(t)||!isFinite(r))&&(t=(n=this.nf([t,r]))[0],r=n[1],(i=i.copy()).setFillType(e.FillType.Winding),i.stroke({width:this.lineWidth,miter_limit:this.miterLimit,cap:this.Pd.getStrokeCap(),join:this.Pd.getStrokeJoin(),precision:.3}),n=i.contains(t,r),i.delete(),n)},this.lineTo=function(e,t){y(this.Rd,e,t)},this.measureText=function(e){e=this.ne.getGlyphIDs(e),e=this.ne.getGlyphWidths(e);var t=0;for(var r of e)t+=r;return{width:t}},this.moveTo=function(e,r){var n=this.Rd;t([e,r])&&n.moveTo(e,r)},this.putImageData=function(r,n,i,o,a,s,u){if(t([n,i,o,a,s,u]))if(void 0===o)this.Md.writePixels(r.data,r.width,r.height,n,i);else if(o=o||0,a=a||0,s=s||r.width,u=u||r.height,0>s&&(o+=s,s=Math.abs(s)),0>u&&(a+=u,u=Math.abs(u)),0>o&&(s+=o,o=0),0>a&&(u+=a,a=0),!(0>=s||0>=u)){r=e.MakeImage({width:r.width,height:r.height,alphaType:e.AlphaType.Unpremul,colorType:e.ColorType.RGBA_8888,colorSpace:e.ColorSpace.SRGB},r.data,4*r.width);var l=e.XYWHRect(o,a,s,u);n=e.XYWHRect(n+o,i+a,s,u),i=e.Matrix.invert(this.Ud),this.Md.save(),this.Md.concat(i),this.Md.drawImageRect(r,l,n,null,!1),this.Md.restore(),r.delete()}},this.quadraticCurveTo=function(e,r,n,i){var o=this.Rd;t([e,r,n,i])&&(o.isEmpty()&&o.moveTo(e,r),o.quadTo(e,r,n,i))},this.rect=function(r,n,i,o){var a=this.Rd;t(r=e.XYWHRect(r,n,i,o))&&a.addRect(r)},this.resetTransform=function(){this.Rd.transform(this.Ud);var t=e.Matrix.invert(this.Ud);this.Md.concat(t),this.Ud=this.Md.getTotalMatrix()},this.restore=function(){var t=this.mf.pop();if(t){var r=e.Matrix.multiply(this.Ud,e.Matrix.invert(t.Kf));this.Rd.transform(r),this.Pd.delete(),this.Pd=t.bg,this.ve=t.$f,this.Le=t.ng,this.he=t.mg,this.be=t.fs,this.xe=t.kg,this.ye=t.lg,this.we=t.sb,this.Ke=t.jg,this.je=t.ga,this.Od=t.Rf,this.Je=t.ag,this.Se=t.Qf,this.Md.restore(),this.Ud=this.Md.getTotalMatrix()}},this.rotate=function(t){if(isFinite(t)){var r=e.Matrix.rotated(-t);this.Rd.transform(r),this.Md.rotate(t/Math.PI*180,0,0),this.Ud=this.Md.getTotalMatrix()}},this.save=function(){if(this.be.te){var e=this.be.te();this.Ce.push(e)}else e=this.be;if(this.he.te){var t=this.he.te();this.Ce.push(t)}else t=this.he;this.mf.push({Kf:this.Ud.slice(),$f:this.ve.slice(),ng:this.Le,mg:t,fs:e,kg:this.xe,lg:this.ye,sb:this.we,jg:this.Ke,ga:this.je,ag:this.Je,Rf:this.Od,bg:this.Pd.copy(),Qf:this.Se}),this.Md.save()},this.scale=function(r,n){if(t(arguments)){var i=e.Matrix.scaled(1/r,1/n);this.Rd.transform(i),this.Md.scale(r,n),this.Ud=this.Md.getTotalMatrix()}},this.setLineDash=function(e){for(var t=0;te[t])return;1==e.length%2&&Array.prototype.push.apply(e,e),this.ve=e},this.setTransform=function(e,r,n,i,o,a){t(arguments)&&(this.resetTransform(),this.transform(e,r,n,i,o,a))},this.se=function(){var t=e.Matrix.invert(this.Ud);this.Md.concat(t),this.Md.concat(e.Matrix.translated(this.xe,this.ye)),this.Md.concat(this.Ud)},this.ze=function(t){var r=e.multiplyByAlpha(this.Ke,this.je);if(!e.getColorComponents(r)[3]||!(this.we||this.ye||this.xe))return null;(t=t.copy()).setColor(r);var n=e.MaskFilter.MakeBlur(e.BlurStyle.Normal,this.we/2,!1);return t.setMaskFilter(n),t.dispose=function(){n.delete(),this.delete()},t},this.df=function(){var t=this.Pd.copy();if(t.setStyle(e.PaintStyle.Stroke),n(this.he)){var r=e.multiplyByAlpha(this.he,this.je);t.setColor(r)}else r=this.he.ue(this.Ud),t.setColor(e.Color(0,0,0,this.je)),t.setShader(r);if(t.setStrokeWidth(this.Le),this.ve.length){var i=e.PathEffect.MakeDash(this.ve,this.Je);t.setPathEffect(i)}return t.dispose=function(){i&&i.delete(),this.delete()},t},this.stroke=function(e){e=e?e.Vd:this.Rd;var t=this.df(),r=this.ze(t);r&&(this.Md.save(),this.se(),this.Md.drawPath(e,r),this.Md.restore(),r.dispose()),this.Md.drawPath(e,t),t.dispose()},this.strokeRect=function(t,r,n,i){var o=this.df(),a=this.ze(o);a&&(this.Md.save(),this.se(),this.Md.drawRect(e.XYWHRect(t,r,n,i),a),this.Md.restore(),a.dispose()),this.Md.drawRect(e.XYWHRect(t,r,n,i),o),o.dispose()},this.strokeText=function(t,r,n){var i=this.df();t=e.TextBlob.MakeFromText(t,this.ne);var o=this.ze(i);o&&(this.Md.save(),this.se(),this.Md.drawTextBlob(t,r,n,o),this.Md.restore(),o.dispose()),this.Md.drawTextBlob(t,r,n,i),t.delete(),i.dispose()},this.translate=function(r,n){if(t(arguments)){var i=e.Matrix.translated(-r,-n);this.Rd.transform(i),this.Md.translate(r,n),this.Ud=this.Md.getTotalMatrix()}},this.transform=function(t,r,n,i,o,a){t=[t,n,o,r,i,a,0,0,1],r=e.Matrix.invert(t),this.Rd.transform(r),this.Md.concat(t),this.Ud=this.Md.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 s(t){this.ef=t,this.Ld=new a(t.getCanvas()),this.Te=[],this.decodeImage=function(t){if(!(t=e.MakeImageFromEncoded(t)))throw"Invalid input";return this.Te.push(t),new u(t)},this.loadFont=function(t,r){if(!(t=e.Typeface.MakeFreeTypeFaceFromData(t)))return null;this.Te.push(t);var n=(r.style||"normal")+"|"+(r.variant||"normal")+"|"+(r.weight||"normal");r=r.family,w[r]||(w[r]={"*":t}),w[r][n]=t},this.makePath2D=function(e){return e=new g(e),this.Te.push(e.Vd),e},this.getContext=function(e){return"2d"===e?this.Ld:null},this.toDataURL=function(t,r){this.ef.flush();var n=this.ef.makeImageSnapshot();if(n){t=t||"image/png";var i=e.ImageFormat.PNG;if("image/jpeg"===t&&(i=e.ImageFormat.JPEG),r=n.encodeToBytes(i,r||.92)){if(n.delete(),t="data:"+t+";base64,","undefined"!=typeof Buffer)r=Buffer.from(r).toString("base64");else{n=0,i=r.length;for(var o,a="";ne||1e);r++);this.$d.splice(r,0,e),this.de.splice(r,0,t)}},this.te=function(){var e=new f(t,r,n,o);return e.de=this.de.slice(),e.$d=this.$d.slice(),e},this.me=function(){this.Xd&&(this.Xd.delete(),this.Xd=null)},this.ue=function(i){var a=[t,r,n,o];e.Matrix.mapPoints(i,a),i=a[0];var s=a[1],u=a[2];return a=a[3],this.me(),this.Xd=e.Shader.MakeLinearGradient([i,s],[u,a],this.de,this.$d,e.TileMode.Clamp)}}function c(e,r,n,i,o,a){if(t([r,n,i,o,a])){if(0>a)throw"radii cannot be negative";e.isEmpty()&&e.moveTo(r,n),e.arcToTangent(r,n,i,o,a)}}function d(e){if(!e.isEmpty()){var t=e.getBounds();(t[3]-t[1]||t[2]-t[0])&&e.close()}}function h(t,r,n,i,o,a,s){s=(s-a)/Math.PI*180,a=a/Math.PI*180,r=e.LTRBRect(r-i,n-o,r+i,n+o),1e-5>Math.abs(Math.abs(s)-360)?(n=s/2,t.arcToOval(r,a,n,!1),t.arcToOval(r,a+n,n,!1)):t.arcToOval(r,a,s,!1)}function p(r,n,i,o,a,s,u,l,f){if(t([n,i,o,a,s,u,l])){if(0>o||0>a)throw"radii cannot be negative";var c=2*Math.PI,d=u%c;0>d&&(d+=c);var p=d-u;u=d,l+=p,!f&&l-u>=c?l=u+c:f&&u-l>=c?l=u-c:!f&&u>l?l=u+(c-(u-l)%c):f&&ue||1e);r++);this.$d.splice(r,0,e),this.de.splice(r,0,t)}},this.te=function(){var e=new v(t,r,n,o,a,s);return e.de=this.de.slice(),e.$d=this.$d.slice(),e},this.me=function(){this.Xd&&(this.Xd.delete(),this.Xd=null)},this.ue=function(i){var u=[t,r,o,a];e.Matrix.mapPoints(i,u);var l=u[0],f=u[1],c=u[2];u=u[3];var d=(Math.abs(i[0])+Math.abs(i[4]))/2;return i=n*d,d*=s,this.me(),this.Xd=e.Shader.MakeTwoPointConicalGradient([l,f],i,[c,u],d,this.de,this.$d,e.TileMode.Clamp)}}e._testing={};var b={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)};e._testing.parseColor=i,e._testing.colorToString=r;var A=RegExp("(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)(.+)"),w={"Noto Mono":{"*":null},monospace:{"*":null}};e._testing.parseFontString=o,e.MakeCanvas=function(t,r){return(t=e.MakeSurface(t,r))?new s(t):null},e.ImageData=function(){if(2===arguments.length){var e=arguments[0],t=arguments[1];return new l(new Uint8ClampedArray(4*e*t),e,t)}if(3===arguments.length){var r=arguments[0];if(r.prototype.constructor!==Uint8ClampedArray)throw"bytes must be given as a Uint8ClampedArray";if(r%4)throw"bytes must be given in a multiple of 4";if(r%(e=arguments[1]))throw"bytes must divide evenly by width";if((t=arguments[2])&&t!==r/(4*e))throw"invalid height given";return new l(r,e,r/(4*e))}throw"invalid number of arguments - takes 2 or 3, saw "+arguments.length}})()})(c);var d,h,p,y=Object.assign({},c),g="./this.program",m=function(e,t){throw t},v="object"==typeof window,b="function"==typeof importScripts,A="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,w="";if(A){var _=_r(_d2[7]),P=_r(_d2[8]);w=b?P.dirname(w)+"/":__dirname+"/",d=function(e,t){return e=e.startsWith("file://")?new URL(e):P.normalize(e),_.readFileSync(e,t?void 0:"utf8")},p=function(e){return(e=d(e,!0)).buffer||(e=new Uint8Array(e)),e},h=function(e,t,r){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=e.startsWith("file://")?new URL(e):P.normalize(e),_.readFile(e,n?void 0:"utf8",(function(e,i){e?r(e):t(n?i.buffer:i)}))},!c.thisProgram&&1=n);)++r;if(16(i=224==(240&i)?(15&i)<<12|o<<6|a:(7&i)<<18|o<<12|a<<6|63&e[t++])?n+=String.fromCharCode(i):(i-=65536,n+=String.fromCharCode(55296|i>>10,56320|1023&i))}}else n+=String.fromCharCode(i)}return n},ae={};function se(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function ue(e){return this.fromWireType(L[e>>2])}var le={},fe={},ce={},de=void 0;function he(e){throw new de(e)}function pe(e,t,r){function n(t){(t=r(t)).length!==e.length&&he("Mismatched type converter count");for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{},n=t.name;if(e||be(`type "${n}" must have a positive integer typeid pointer`),fe.hasOwnProperty(e)){if(r.Xf)return;be(`Cannot register type '${n}' twice`)}fe[e]=t,delete ce[e],le.hasOwnProperty(e)&&(t=le[e],delete le[e],t.forEach((function(e){return e()})))}function we(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");Ae(e,t,r)}function Pe(e){be(e.Kd.Wd.Qd.name+" instance already deleted")}var Me=!1;function Fe(){}function Te(e){--e.count.value,0===e.count.value&&(e.Zd?e.fe.le(e.Zd):e.Wd.Qd.le(e.Sd))}function Ce(e,t,r){return t===r?e:void 0===r.ae||null===(e=Ce(e,t,r.ae))?null:r.Nf(e)}var Se={},ke=[];function xe(){for(;ke.length;){var e=ke.pop();e.Kd.Fe=!1,e.delete()}}var Ee=void 0,Be={};function Re(e,t){for(void 0===t&&be("ptr should not be undefined");e.ae;)t=e.Pe(t),e=e.ae;return Be[t]}function Le(e,t){return t.Wd&&t.Sd||he("makeClassHandle requires ptr and ptrType"),!!t.fe!=!!t.Zd&&he("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Ie(Object.create(e,{Kd:{value:t}}))}function Ie(e){return"undefined"==typeof FinalizationRegistry?(Ie=function(e){return e},e):(Me=new FinalizationRegistry((function(e){Te(e.Kd)})),Fe=function(e){Me.unregister(e)},(Ie=function(e){var t=e.Kd;return t.Zd&&Me.register(e,{Kd:t},e),e})(e))}function Oe(){}function Ue(e){if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=t&&57>=t?`_${e}`:e}function De(e,t){return e=Ue(e),a({},e,(function(){return t.apply(this,arguments)}))[e]}function je(e,t,r){if(void 0===e[t].Yd){var n=e[t];e[t]=function(){return e[t].Yd.hasOwnProperty(arguments.length)||be(`Function '${r}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[t].Yd})!`),e[t].Yd[arguments.length].apply(this,arguments)},e[t].Yd=[],e[t].Yd[n.De]=n}}function He(e,t,r){c.hasOwnProperty(e)?((void 0===r||void 0!==c[e].Yd&&void 0!==c[e].Yd[r])&&be(`Cannot register public name '${e}' twice`),je(c,e,e),c.hasOwnProperty(r)&&be(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),c[e].Yd[r]=t):(c[e]=t,void 0!==r&&(c[e].xg=r))}function We(e,t,r,n,i,o,a,s){this.name=e,this.constructor=t,this.Ge=r,this.le=n,this.ae=i,this.Sf=o,this.Pe=a,this.Nf=s,this.dg=[]}function Ge(e,t,r){for(;t!==r;)t.Pe||be(`Expected null or instance of ${r.name}, got an instance of ${t.name}`),e=t.Pe(e),t=t.ae;return e}function $e(e,t){return null===t?(this.hf&&be(`null is not a valid ${this.name}`),0):(t.Kd||be(`Cannot pass "${ut(t)}" as a ${this.name}`),t.Kd.Sd||be(`Cannot pass deleted object as a pointer of type ${this.name}`),Ge(t.Kd.Sd,t.Kd.Wd.Qd,this.Qd))}function Ne(e,t){if(null===t){if(this.hf&&be(`null is not a valid ${this.name}`),this.We){var r=this.jf();return null!==e&&e.push(this.le,r),r}return 0}if(t.Kd||be(`Cannot pass "${ut(t)}" as a ${this.name}`),t.Kd.Sd||be(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.Ve&&t.Kd.Wd.Ve&&be(`Cannot convert argument of type ${t.Kd.fe?t.Kd.fe.name:t.Kd.Wd.name} to parameter type ${this.name}`),r=Ge(t.Kd.Sd,t.Kd.Wd.Qd,this.Qd),this.We)switch(void 0===t.Kd.Zd&&be("Passing raw pointer to smart pointer is illegal"),this.ig){case 0:t.Kd.fe===this?r=t.Kd.Zd:be(`Cannot convert argument of type ${t.Kd.fe?t.Kd.fe.name:t.Kd.Wd.name} to parameter type ${this.name}`);break;case 1:r=t.Kd.Zd;break;case 2:if(t.Kd.fe===this)r=t.Kd.Zd;else{var n=t.clone();r=this.eg(r,ot((function(){n.delete()}))),null!==e&&e.push(this.le,r)}break;default:be("Unsupporting sharing policy")}return r}function Ve(e,t){return null===t?(this.hf&&be(`null is not a valid ${this.name}`),0):(t.Kd||be(`Cannot pass "${ut(t)}" as a ${this.name}`),t.Kd.Sd||be(`Cannot pass deleted object as a pointer of type ${this.name}`),t.Kd.Wd.Ve&&be(`Cannot convert argument of type ${t.Kd.Wd.name} to parameter type ${this.name}`),Ge(t.Kd.Sd,t.Kd.Wd.Qd,this.Qd))}function Ke(e,t,r,n,i,o,a,s,u,l,f){this.name=e,this.Qd=t,this.hf=r,this.Ve=n,this.We=i,this.cg=o,this.ig=a,this.wf=s,this.jf=u,this.eg=l,this.le=f,i||void 0!==t.ae?this.toWireType=Ne:(this.toWireType=n?$e:Ve,this.ee=null)}function Ye(e,t,r){c.hasOwnProperty(e)||he("Replacing nonexistant public symbol"),void 0!==c[e].Yd&&void 0!==r?c[e].Yd[r]=t:(c[e]=t,c[e].De=r)}var ze=function(e,t){var r=[];return function(){if(r.length=0,Object.assign(r,arguments),e.includes("j")){var n=c["dynCall_"+e];n=r.length?n.apply(null,[t].concat(r)):n.call(null,t)}else n=H.get(t).apply(null,r);return n}};function Xe(e,t){var r=(e=me(e)).includes("j")?ze(e,t):H.get(t);return"function"!=typeof r&&be(`unknown function pointer with signature ${e}: ${t}`),r}var qe=void 0;function Qe(e){var t=me(e=Rr(e));return Br(e),t}function Je(e,t){var r=[],n={};throw t.forEach((function e(t){n[t]||fe[t]||(ce[t]?ce[t].forEach(e):(r.push(t),n[t]=!0))})),new qe(`${e}: `+r.map(Qe).join([", "]))}function Ze(e,t,r,n,i){var o=t.length;2>o&&be("argTypes array size mismatch! Must at least get return value and 'this' types!");var a=null!==t[1]&&null!==r,s=!1;for(r=1;r>2]);return r}function tt(){this.ke=[void 0],this.tf=[]}var rt=new tt;function nt(e){e>=rt.He&&0==--rt.get(e).xf&&rt.Cf(e)}var it=function(e){return e||be("Cannot use deleted val. handle = "+e),rt.get(e).value},ot=function(e){switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return rt.Bf({xf:1,value:e})}};function at(e,t,r){switch(t){case 0:return function(e){return this.fromWireType((r?x:E)[e])};case 1:return function(e){return this.fromWireType((r?B:R)[e>>1])};case 2:return function(e){return this.fromWireType((r?L:I)[e>>2])};default:throw new TypeError("Unknown integer type: "+e)}}function st(e,t){var r=fe[e];return void 0===r&&be(t+" has unknown type "+Qe(e)),r}function ut(e){if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e}function lt(e,t){switch(t){case 2:return function(e){return this.fromWireType(O[e>>2])};case 3:return function(e){return this.fromWireType(U[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function ft(e,t,r){switch(t){case 0:return r?function(e){return x[e]}:function(e){return E[e]};case 1:return r?function(e){return B[e>>1]}:function(e){return R[e>>1]};case 2:return r?function(e){return L[e>>2]}:function(e){return I[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}var ct=function(e,t,r,n){if(!(0=a&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),127>=a){if(r>=n)break;t[r++]=a}else{if(2047>=a){if(r+1>=n)break;t[r++]=192|a>>6}else{if(65535>=a){if(r+2>=n)break;t[r++]=224|a>>12}else{if(r+3>=n)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63}t[r++]=128|a>>6&63}t[r++]=128|63&a}}return t[r]=0,r-i},dt=function(e){for(var t=0,r=0;r=n?t++:2047>=n?t+=2:55296<=n&&57343>=n?(t+=4,++r):t+=3}return t},ht="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,pt=function(e,t){for(var r=e>>1,n=r+t/2;!(r>=n)&&R[r];)++r;if(32<(r<<=1)-e&&ht)return ht.decode(E.subarray(e,r));for(r="",n=0;!(n>=t/2);++n){var i=B[e+2*n>>1];if(0==i)break;r+=String.fromCharCode(i)}return r},yt=function(e,t,r){if(void 0===r&&(r=2147483647),2>r)return 0;var n=t;r=(r-=2)<2*e.length?r/2:e.length;for(var i=0;i>1]=e.charCodeAt(i),t+=2;return B[t>>1]=0,t-n},gt=function(e){return 2*e.length},mt=function(e,t){for(var r=0,n="";!(r>=t/4);){var i=L[e+4*r>>2];if(0==i)break;++r,65536<=i?(i-=65536,n+=String.fromCharCode(55296|i>>10,56320|1023&i)):n+=String.fromCharCode(i)}return n},vt=function(e,t,r){if(void 0===r&&(r=2147483647),4>r)return 0;var n=t;r=n+r-4;for(var i=0;i=o&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++i)),L[t>>2]=o,(t+=4)+4>r)break}return L[t>>2]=0,t-n},bt=function(e){for(var t=0,r=0;r=n&&++r,t+=4}return t},At={};function wt(e){var t=At[e];return void 0===t?me(e):t}var _t=[];function Pt(){function e(e){e.$$$embind_global$$$=e;var t="object"==typeof $$$embind_global$$$&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if("object"==typeof globalThis)return globalThis;if("object"==typeof $$$embind_global$$$)return $$$embind_global$$$;if("object"==typeof _g&&e(_g)?$$$embind_global$$$=_g:"object"==typeof self&&e(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$)return $$$embind_global$$$;throw Error("unable to get global object.")}function Mt(e){var t=_t.length;return _t.push(e),t}function Ft(e,t){for(var r=Array(e),n=0;n>2],"parameter "+n);return r}var Tt=[];function Ct(e){var t=Array(e+1);return function(r,n,i){t[0]=r;for(var o=0;o>2],"parameter "+o);t[o+1]=a.readValueFromPointer(i),i+=a.argPackAdvance}return r=new(r.bind.apply(r,t)),ot(r)}}var St={};function kt(e){var t=e.getExtension("ANGLE_instanced_arrays");t&&(e.vertexAttribDivisor=function(e,r){t.vertexAttribDivisorANGLE(e,r)},e.drawArraysInstanced=function(e,r,n,i){t.drawArraysInstancedANGLE(e,r,n,i)},e.drawElementsInstanced=function(e,r,n,i,o){t.drawElementsInstancedANGLE(e,r,n,i,o)})}function xt(e){var t=e.getExtension("OES_vertex_array_object");t&&(e.createVertexArray=function(){return t.createVertexArrayOES()},e.deleteVertexArray=function(e){t.deleteVertexArrayOES(e)},e.bindVertexArray=function(e){t.bindVertexArrayOES(e)},e.isVertexArray=function(e){return t.isVertexArrayOES(e)})}function Et(e){var t=e.getExtension("WEBGL_draw_buffers");t&&(e.drawBuffers=function(e,r){t.drawBuffersWEBGL(e,r)})}var Bt=1,Rt=[],Lt=[],It=[],Ot=[],Ut=[],Dt=[],jt=[],Ht=[],Wt=[],Gt=[],$t={},Nt={},Vt=4;function Kt(e){Zt||(Zt=e)}function Yt(e){for(var t=Bt++,r=e.length;re.version||!t.rf)&&(t.rf=t.getExtension("EXT_disjoint_timer_query")),t.wg=t.getExtension("WEBGL_multi_draw"),(t.getSupportedExtensions()||[]).forEach((function(e){e.includes("lose_context")||e.includes("debug")||t.getExtension(e)}))}}var Jt,Zt,er,tr={},rr=function(){if(!er){var e,t={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",_:g||"./this.program"};for(e in tr)void 0===tr[e]?delete t[e]:t[e]=tr[e];var r=[];for(e in t)r.push(`${e}=${t[e]}`);er=r}return er},nr=[null,[],[]];function ir(e){Tr.bindVertexArray(jt[e])}function or(e,t){for(var r=0;r>2];Tr.deleteVertexArray(jt[n]),jt[n]=null}}var ar=[];function sr(e,t,r,n){Tr.drawElements(e,t,r,n)}function ur(e,t,r,n){for(var i=0;i>2]=a}}function lr(e,t){ur(e,t,"createVertexArray",jt)}function fr(e,t,r){if(t){var n=void 0;switch(e){case 36346:n=1;break;case 36344:return void(0!=r&&1!=r&&Kt(1280));case 34814:case 36345:n=0;break;case 34466:var i=Tr.getParameter(34467);n=i?i.length:0;break;case 33309:if(2>Jt.version)return void Kt(1282);n=2*(Tr.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(2>Jt.version)return void Kt(1280);n=33307==e?3:0}if(void 0===n)switch(i=Tr.getParameter(e),typeof i){case"number":n=i;break;case"boolean":n=i?1:0;break;case"string":return void Kt(1280);case"object":if(null===i)switch(e){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:n=0;break;default:return void Kt(1280)}else{if(i instanceof Float32Array||i instanceof Uint32Array||i instanceof Int32Array||i instanceof Array){for(e=0;e>2]=i[e];break;case 2:O[t+4*e>>2]=i[e];break;case 4:x[t+e>>0]=i[e]?1:0}return}try{n=0|i.name}catch(t){return Kt(1280),void T("GL_INVALID_ENUM in glGet"+r+"v: Unknown object returned from WebGL getParameter("+e+")! (error: "+t+")")}}break;default:return Kt(1280),void T("GL_INVALID_ENUM in glGet"+r+"v: Native code calling glGet"+r+"v("+e+") and it returns "+i+" of type "+typeof i+"!")}switch(r){case 1:r=n,I[t>>2]=r,I[t+4>>2]=(r-I[t>>2])/4294967296;break;case 0:L[t>>2]=n;break;case 2:O[t>>2]=n;break;case 4:x[t>>0]=n?1:0}}else Kt(1281)}var cr=function(e){var t=dt(e)+1,r=Er(t);return r&&ct(e,E,r,t),r};function dr(e){return"]"==e.slice(-1)&&e.lastIndexOf("[")}function hr(e){return 0==(e-=5120)?x:1==e?E:2==e?B:4==e?L:6==e?O:5==e||28922==e||28520==e||30779==e||30782==e?I:R}function pr(e,t,r,n,i){e=hr(e);var o=31-Math.clz32(e.BYTES_PER_ELEMENT),a=Vt;return e.subarray(i>>o,i+n*(r*({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[t-6402]||1)*(1<>o)}function yr(e){var t=Tr.Lf;if(t){var r=t.Oe[e];return"number"==typeof r&&(t.Oe[e]=r=Tr.getUniformLocation(t,t.yf[e]+(0e?-1:0n-e.getDate())){e.setDate(e.getDate()+t);break}t-=n-e.getDate()+1,e.setDate(1),11>r?e.setMonth(r+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1))}return r=new Date(e.getFullYear()+1,0,4),t=s(new Date(e.getFullYear(),0,4)),r=s(r),0>=a(t,e)?0>=a(r,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var l=L[n+40>>2];for(var f in n={qg:L[n>>2],pg:L[n+4>>2],$e:L[n+8>>2],kf:L[n+12>>2],af:L[n+16>>2],qe:L[n+20>>2],ie:L[n+24>>2],pe:L[n+28>>2],zg:L[n+32>>2],og:L[n+36>>2],rg:l&&l?oe(E,l):""},r=r?oe(E,r):"",l={"%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"})r=r.replace(new RegExp(f,"g"),l[f]);var c="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),d="January February March April May June July August September October November December".split(" ");for(f in l={"%a":function(e){return c[e.ie].substring(0,3)},"%A":function(e){return c[e.ie]},"%b":function(e){return d[e.af].substring(0,3)},"%B":function(e){return d[e.af]},"%C":function(e){return o((e.qe+1900)/100|0,2)},"%d":function(e){return o(e.kf,2)},"%e":function(e){return i(e.kf,2," ")},"%g":function(e){return u(e).toString().substring(2)},"%G":function(e){return u(e)},"%H":function(e){return o(e.$e,2)},"%I":function(e){return 0==(e=e.$e)?e=12:12e.$e?"AM":"PM"},"%S":function(e){return o(e.qg,2)},"%t":function(){return"\t"},"%u":function(e){return e.ie||7},"%U":function(e){return o(Math.floor((e.pe+7-e.ie)/7),2)},"%V":function(e){var t=Math.floor((e.pe+7-(e.ie+6)%7)/7);if(2>=(e.ie+371-e.pe-2)%7&&t++,t)53==t&&(4==(r=(e.ie+371-e.pe)%7)||3==r&&vr(e.qe)||(t=1));else{t=52;var r=(e.ie+7-e.pe-1)%7;(4==r||5==r&&vr(e.qe%400-1))&&t++}return o(t,2)},"%w":function(e){return e.ie},"%W":function(e){return o(Math.floor((e.pe+7-(e.ie+6)%7)/7),2)},"%y":function(e){return(e.qe+1900).toString().substring(2)},"%Y":function(e){return e.qe+1900},"%z":function(e){var t=0<=(e=e.og);return e=Math.abs(e)/60,(t?"+":"-")+String("0000"+(e/60*100+e%60)).slice(-4)},"%Z":function(e){return e.rg},"%%":function(){return"%"}},r=r.replace(/%%/g,"\0\0"),l)r.includes(f)&&(r=r.replace(new RegExp(f,"g"),l[f](n)));return(f=wr(r=r.replace(/\0\0/g,"%"))).length>t?0:(x.set(f,e),f.length-1)};de=c.InternalError=(function(r){"use strict";function n(e){var r;return t(this,n),(r=s(this,n,[e])).name="InternalError",r}return i(n,r),e(n)})(o(Error));for(var Mr=Array(256),Fr=0;256>Fr;++Fr)Mr[Fr]=String.fromCharCode(Fr);ge=Mr,ve=c.BindingError=(function(r){"use strict";function n(e){var r;return t(this,n),(r=s(this,n,[e])).name="BindingError",r}return i(n,r),e(n)})(o(Error)),Oe.prototype.isAliasOf=function(e){if(!(this instanceof Oe&&e instanceof Oe))return!1;var t=this.Kd.Wd.Qd,r=this.Kd.Sd,n=e.Kd.Wd.Qd;for(e=e.Kd.Sd;t.ae;)r=t.Pe(r),t=t.ae;for(;n.ae;)e=n.Pe(e),n=n.ae;return t===n&&r===e},Oe.prototype.clone=function(){if(this.Kd.Sd||Pe(this),this.Kd.Ne)return this.Kd.count.value+=1,this;var e=Ie,t=Object,r=t.create,n=Object.getPrototypeOf(this),i=this.Kd;return(e=e(r.call(t,n,{Kd:{value:{count:i.count,Fe:i.Fe,Ne:i.Ne,Sd:i.Sd,Wd:i.Wd,Zd:i.Zd,fe:i.fe}}}))).Kd.count.value+=1,e.Kd.Fe=!1,e},Oe.prototype.delete=function(){this.Kd.Sd||Pe(this),this.Kd.Fe&&!this.Kd.Ne&&be("Object already scheduled for deletion"),Fe(this),Te(this.Kd),this.Kd.Ne||(this.Kd.Zd=void 0,this.Kd.Sd=void 0)},Oe.prototype.isDeleted=function(){return!this.Kd.Sd},Oe.prototype.deleteLater=function(){return this.Kd.Sd||Pe(this),this.Kd.Fe&&!this.Kd.Ne&&be("Object already scheduled for deletion"),ke.push(this),1===ke.length&&Ee&&Ee(xe),this.Kd.Fe=!0,this},c.getInheritedInstanceCount=function(){return Object.keys(Be).length},c.getLiveInheritedInstances=function(){var e,t=[];for(e in Be)Be.hasOwnProperty(e)&&t.push(Be[e]);return t},c.flushPendingDeletes=xe,c.setDelayFunction=function(e){Ee=e,ke.length&&Ee&&Ee(xe)},Ke.prototype.Tf=function(e){return this.wf&&(e=this.wf(e)),e},Ke.prototype.pf=function(e){this.le&&this.le(e)},Ke.prototype.argPackAdvance=8,Ke.prototype.readValueFromPointer=ue,Ke.prototype.deleteObject=function(e){null!==e&&e.delete()},Ke.prototype.fromWireType=function(e){function t(){return this.We?Le(this.Qd.Ge,{Wd:this.cg,Sd:r,fe:this,Zd:e}):Le(this.Qd.Ge,{Wd:this,Sd:e})}var r=this.Tf(e);if(!r)return this.pf(e),null;var n=Re(this.Qd,r);if(void 0!==n)return 0===n.Kd.count.value?(n.Kd.Sd=r,n.Kd.Zd=e,n.clone()):(n=n.clone(),this.pf(e),n);if(n=this.Qd.Sf(r),!(n=Se[n]))return t.call(this);n=this.Ve?n.Jf:n.pointerType;var i=Ce(r,this.Qd,n.Qd);return null===i?t.call(this):this.We?Le(n.Qd.Ge,{Wd:n,Sd:i,fe:this,Zd:e}):Le(n.Qd.Ge,{Wd:n,Sd:i})},qe=c.UnboundTypeError=(function(e,t){var r=De(t,(function(e){this.name=t,this.message=e,void 0!==(e=Error(e).stack)&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},r})(Error,"UnboundTypeError"),Object.assign(tt.prototype,{get:function(e){return this.ke[e]},has:function(e){return void 0!==this.ke[e]},Bf:function(e){var t=this.tf.pop()||this.ke.length;return this.ke[t]=e,t},Cf:function(e){this.ke[e]=void 0,this.tf.push(e)}}),rt.ke.push({value:void 0},{value:null},{value:!0},{value:!1}),rt.He=rt.ke.length,c.count_emval_handles=function(){for(var e=0,t=rt.He;tCr;++Cr)ar.push(Array(Cr));var Sr=new Float32Array(288);for(Cr=0;288>Cr;++Cr)gr[Cr]=Sr.subarray(0,Cr+1);var kr=new Int32Array(288);for(Cr=0;288>Cr;++Cr)mr[Cr]=kr.subarray(0,Cr+1);var xr={U:function(){return 0},Bb:function(){},Db:function(){return 0},yb:function(){},zb:function(){},V:function(){},Ab:function(){},E:function(e){var t=ae[e];delete ae[e];var r=t.jf,n=t.le,i=t.sf;pe([e],i.map((function(e){return e.Wf})).concat(i.map((function(e){return e.gg}))),(function(e){var o={};return i.forEach((function(t,r){var n=e[r],a=t.Uf,s=t.Vf,u=e[r+i.length],l=t.fg,f=t.hg;o[t.Pf]={read:function(e){return n.fromWireType(a(s,e))},write:function(e,t){var r=[];l(f,e,u.toWireType(r,t)),se(r)}}})),[{name:t.name,fromWireType:function(e){var t,r={};for(t in o)r[t]=o[t].read(e);return n(e),r},toWireType:function(e,t){for(var i in o)if(!(i in t))throw new TypeError(`Missing field: "${i}"`);var a=r();for(i in o)o[i].write(a,t[i]);return null!==e&&e.push(n,a),a},argPackAdvance:8,readValueFromPointer:ue,ee:n}]}))},qb:function(){},Hb:function(e,t,r,n,i){var o=ye(r);we(e,{name:t=me(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?n:i},argPackAdvance:8,readValueFromPointer:function(e){if(1===r)var n=x;else if(2===r)n=B;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+t);n=L}return this.fromWireType(n[e>>o])},ee:null})},p:function(e,t,r,n,i,o,a,s,u,l,f,c,d){f=me(f),o=Xe(i,o),s&&(s=Xe(a,s)),l&&(l=Xe(u,l)),d=Xe(c,d);var h=Ue(f);He(h,(function(){Je(`Cannot construct ${f} due to unbound types`,[n])})),pe([e,t,r],n?[n]:[],(function(t){if(t=t[0],n)var r=t.Qd,i=r.Ge;else i=Oe.prototype;t=De(h,(function(){if(Object.getPrototypeOf(this)!==a)throw new ve("Use 'new' to construct "+f);if(void 0===u.oe)throw new ve(f+" has no accessible constructor");var e=u.oe[arguments.length];if(void 0===e)throw new ve(`Tried to invoke ctor of ${f} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(u.oe).toString()}) parameters instead!`);return e.apply(this,arguments)}));var a=Object.create(i,{constructor:{value:t}});t.prototype=a;var u=new We(f,t,a,d,r,o,s,l);u.ae&&(void 0===u.ae.Qe&&(u.ae.Qe=[]),u.ae.Qe.push(u)),r=new Ke(f,u,!0,!1,!1),i=new Ke(f+"*",u,!1,!1,!1);var c=new Ke(f+" const*",u,!1,!0,!1);return Se[e]={pointerType:i,Jf:c},Ye(h,t),[r,i,c]}))},i:function(e,t,r,n,i,o,a){var s=et(r,n);t=me(t),o=Xe(i,o),pe([],[e],(function(e){function n(){Je(`Cannot call ${i} due to unbound types`,s)}var i=`${(e=e[0]).name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]);var u=e.Qd.constructor;return void 0===u[t]?(n.De=r-1,u[t]=n):(je(u,t,i),u[t].Yd[r-1]=n),pe([],s,(function(n){if(n=[n[0],null].concat(n.slice(1)),n=Ze(i,n,null,o,a),void 0===u[t].Yd?(n.De=r-1,u[t]=n):u[t].Yd[r-1]=n,e.Qd.Qe)for(var s of e.Qd.Qe)s.constructor.hasOwnProperty(t)||(s.constructor[t]=n);return[]})),[]}))},G:function(e,t,r,n,i,o){var a=et(t,r);i=Xe(n,i),pe([],[e],(function(e){var r=`constructor ${(e=e[0]).name}`;if(void 0===e.Qd.oe&&(e.Qd.oe=[]),void 0!==e.Qd.oe[t-1])throw new ve(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.Qd.oe[t-1]=function(){Je(`Cannot construct ${e.name} due to unbound types`,a)},pe([],a,(function(n){return n.splice(1,0,null),e.Qd.oe[t-1]=Ze(r,n,null,i,o),[]})),[]}))},b:function(e,t,r,n,i,o,a,s){var u=et(r,n);t=me(t),o=Xe(i,o),pe([],[e],(function(e){function n(){Je(`Cannot call ${i} due to unbound types`,u)}var i=`${(e=e[0]).name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.Qd.dg.push(t);var l=e.Qd.Ge,f=l[t];return void 0===f||void 0===f.Yd&&f.className!==e.name&&f.De===r-2?(n.De=r-2,n.className=e.name,l[t]=n):(je(l,t,i),l[t].Yd[r-2]=n),pe([],u,(function(n){return n=Ze(i,n,e,o,a),void 0===l[t].Yd?(n.De=r-2,l[t]=n):l[t].Yd[r-2]=n,[]})),[]}))},v:function(e,t,r){e=me(e),pe([],[t],(function(t){return t=t[0],c[e]=t.fromWireType(r),[]}))},Gb:function(e,t){we(e,{name:t=me(t),fromWireType:function(e){var t=it(e);return nt(e),t},toWireType:function(e,t){return ot(t)},argPackAdvance:8,readValueFromPointer:ue,ee:null})},l:function(e,t,r,n){function i(){}r=ye(r),t=me(t),i.values={},we(e,{name:t,constructor:i,fromWireType:function(e){return this.constructor.values[e]},toWireType:function(e,t){return t.value},argPackAdvance:8,readValueFromPointer:at(t,r,n),ee:null}),He(t,i)},d:function(e,t,r){var n=st(e,"enum");t=me(t),e=n.constructor,n=Object.create(n.constructor.prototype,{value:{value:r},constructor:{value:De(`${n.name}_${t}`,(function(){}))}}),e.values[r]=n,e[t]=n},X:function(e,t,r){r=ye(r),we(e,{name:t=me(t),fromWireType:function(e){return e},toWireType:function(e,t){return t},argPackAdvance:8,readValueFromPointer:lt(t,r),ee:null})},z:function(e,t,r,n,i,o){var a=et(t,r);e=me(e),i=Xe(n,i),He(e,(function(){Je(`Cannot call ${e} due to unbound types`,a)}),t-1),pe([],a,(function(r){return r=[r[0],null].concat(r.slice(1)),Ye(e,Ze(e,r,null,i,o),t-1),[]}))},I:function(e,t,r,n,i){t=me(t),-1===i&&(i=4294967295),i=ye(r);var o=function(e){return e};if(0===n){var a=32-8*r;o=function(e){return e<>>a}}r=t.includes("unsigned")?function(e,t){return t>>>0}:function(e,t){return t},we(e,{name:t,fromWireType:o,toWireType:r,argPackAdvance:8,readValueFromPointer:ft(t,i,0!==n),ee:null})},w:function(e,t,r){function n(e){e>>=2;var t=I;return new i(t.buffer,t[e+1],t[e])}var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];we(e,{name:r=me(r),fromWireType:n,argPackAdvance:8,readValueFromPointer:n},{Xf:!0})},s:function(e,t,r,n,i,o,a,s,u,l,f,c){r=me(r),o=Xe(i,o),s=Xe(a,s),l=Xe(u,l),c=Xe(f,c),pe([e],[t],(function(e){return e=e[0],[new Ke(r,e.Qd,!1,!1,!0,e,n,o,s,l,c)]}))},W:function(e,t){var r="std::string"===(t=me(t));we(e,{name:t,fromWireType:function(e){var t=I[e>>2],n=e+4;if(r)for(var i=n,o=0;o<=t;++o){var a=n+o;if(o==t||0==E[a]){if(i=i?oe(E,i,a-i):"",void 0===s)var s=i;else s+=String.fromCharCode(0),s+=i;i=a+1}}else{for(s=Array(t),o=0;o>2]=i,r&&n)ct(t,E,a,i+1);else if(n)for(n=0;n>2],o=a(),u=e+4,l=0;l<=i;++l){var f=e+4+l*t;l!=i&&0!=o[f>>s]||(u=n(u,f-u),void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),u=f+t)}return Br(e),r},toWireType:function(e,n){"string"!=typeof n&&be(`Cannot pass non-string to C++ string type ${r}`);var a=o(n),u=Er(4+a+t);return I[u>>2]=a>>s,i(n,u+4,a+t),null!==e&&e.push(Br,u),u},argPackAdvance:8,readValueFromPointer:ue,ee:function(e){Br(e)}})},F:function(e,t,r,n,i,o){ae[e]={name:me(t),jf:Xe(r,n),le:Xe(i,o),sf:[]}},f:function(e,t,r,n,i,o,a,s,u,l){ae[e].sf.push({Pf:me(t),Wf:r,Uf:Xe(n,i),Vf:o,gg:a,fg:Xe(s,u),hg:l})},Ib:function(e,t){we(e,{Zf:!0,name:t=me(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},Fb:function(){return!0},ub:function(){throw 1/0},C:function(e,t,r){e=it(e),t=st(t,"emval::as");var n=[],i=ot(n);return I[r>>2]=i,t.toWireType(n,e)},K:function(e,t,r,n,i){e=_t[e],t=it(t),r=wt(r);var o=[];return I[n>>2]=ot(o),e(t,r,o,i)},r:function(e,t,r,n){(e=_t[e])(t=it(t),r=wt(r),null,n)},c:nt,J:function(e){return 0===e?ot(Pt()):(e=wt(e),ot(Pt()[e]))},q:function(e,t){var r=Ft(e,t),n=r[0];t=n.name+"_$"+r.slice(1).map((function(e){return e.name})).join("_")+"$";var i=Tt[t];if(void 0!==i)return i;var o=Array(e-1);return i=Mt((function(t,i,a,s){for(var u=0,l=0;l>>=0))return!1;for(var r=1;4>=r;r*=2){var n=t*(1+.2/r);n=Math.min(n,e+100663296);var i=Math;n=Math.max(e,n);e:{i=i.min.call(i,2147483648,n+(65536-n%65536)%65536)-S.buffer.byteLength+65535>>>16;try{S.grow(i),j();var o=1;break e}catch(e){}o=void 0}if(o)return!0}return!1},lb:function(){return Jt?Jt.handle:0},wb:function(e,t){var r=0;return rr().forEach((function(n,i){var o=t+r;for(i=I[e+4*i>>2]=o,o=0;o>0]=n.charCodeAt(o);x[i>>0]=0,r+=n.length+1})),0},xb:function(e,t){var r=rr();I[e>>2]=r.length;var n=0;return r.forEach((function(e){n+=e.length+1})),I[t>>2]=n,0},Jb:function(e){C||(c.onExit&&c.onExit(e),D=!0),m(e,new re(e))},N:function(){return 52},mb:function(){return 52},Cb:function(){return 52},pb:function(){return 70},T:function(e,t,r,n){for(var i=0,o=0;o>2],s=I[t+4>>2];t+=8;for(var u=0;u>2]=i,0},aa:function(e){Tr.activeTexture(e)},ba:function(e,t){Tr.attachShader(Lt[e],Dt[t])},ca:function(e,t,r){Tr.bindAttribLocation(Lt[e],t,r?oe(E,r):"")},da:function(e,t){35051==e?Tr.ff=t:35052==e&&(Tr.Ee=t),Tr.bindBuffer(e,Rt[t])},$:function(e,t){Tr.bindFramebuffer(e,It[t])},fc:function(e,t){Tr.bindRenderbuffer(e,Ot[t])},Rb:function(e,t){Tr.bindSampler(e,Wt[t])},ea:function(e,t){Tr.bindTexture(e,Ut[t])},zc:ir,Cc:ir,fa:function(e,t,r,n){Tr.blendColor(e,t,r,n)},ga:function(e){Tr.blendEquation(e)},ha:function(e,t){Tr.blendFunc(e,t)},$b:function(e,t,r,n,i,o,a,s,u,l){Tr.blitFramebuffer(e,t,r,n,i,o,a,s,u,l)},ia:function(e,t,r,n){2<=Jt.version?r&&t?Tr.bufferData(e,E,n,r,t):Tr.bufferData(e,t,n):Tr.bufferData(e,r?E.subarray(r,r+t):t,n)},ja:function(e,t,r,n){2<=Jt.version?r&&Tr.bufferSubData(e,t,E,n,r):Tr.bufferSubData(e,t,E.subarray(n,n+r))},gc:function(e){return Tr.checkFramebufferStatus(e)},R:function(e){Tr.clear(e)},_:function(e,t,r,n){Tr.clearColor(e,t,r,n)},S:function(e){Tr.clearStencil(e)},sb:function(e,t,r,n){return Tr.clientWaitSync(Gt[e],t,(r>>>0)+4294967296*n)},ka:function(e,t,r,n){Tr.colorMask(!!e,!!t,!!r,!!n)},la:function(e){Tr.compileShader(Dt[e])},ma:function(e,t,r,n,i,o,a,s){2<=Jt.version?Tr.Ee||!a?Tr.compressedTexImage2D(e,t,r,n,i,o,a,s):Tr.compressedTexImage2D(e,t,r,n,i,o,E,s,a):Tr.compressedTexImage2D(e,t,r,n,i,o,s?E.subarray(s,s+a):null)},na:function(e,t,r,n,i,o,a,s,u){2<=Jt.version?Tr.Ee||!s?Tr.compressedTexSubImage2D(e,t,r,n,i,o,a,s,u):Tr.compressedTexSubImage2D(e,t,r,n,i,o,a,E,u,s):Tr.compressedTexSubImage2D(e,t,r,n,i,o,a,u?E.subarray(u,u+s):null)},Zb:function(e,t,r,n,i){Tr.copyBufferSubData(e,t,r,n,i)},oa:function(e,t,r,n,i,o,a,s){Tr.copyTexSubImage2D(e,t,r,n,i,o,a,s)},pa:function(){var e=Yt(Lt),t=Tr.createProgram();return t.name=e,t.Ze=t.Xe=t.Ye=0,t.lf=1,Lt[e]=t,e},qa:function(e){var t=Yt(Dt);return Dt[t]=Tr.createShader(e),t},ra:function(e){Tr.cullFace(e)},sa:function(e,t){for(var r=0;r>2],i=Rt[n];i&&(Tr.deleteBuffer(i),i.name=0,Rt[n]=null,n==Tr.ff&&(Tr.ff=0),n==Tr.Ee&&(Tr.Ee=0))}},hc:function(e,t){for(var r=0;r>2],i=It[n];i&&(Tr.deleteFramebuffer(i),i.name=0,It[n]=null)}},ta:function(e){if(e){var t=Lt[e];t?(Tr.deleteProgram(t),t.name=0,Lt[e]=null):Kt(1281)}},ic:function(e,t){for(var r=0;r>2],i=Ot[n];i&&(Tr.deleteRenderbuffer(i),i.name=0,Ot[n]=null)}},Sb:function(e,t){for(var r=0;r>2],i=Wt[n];i&&(Tr.deleteSampler(i),i.name=0,Wt[n]=null)}},ua:function(e){if(e){var t=Dt[e];t?(Tr.deleteShader(t),Dt[e]=null):Kt(1281)}},_b:function(e){if(e){var t=Gt[e];t?(Tr.deleteSync(t),t.name=0,Gt[e]=null):Kt(1281)}},va:function(e,t){for(var r=0;r>2],i=Ut[n];i&&(Tr.deleteTexture(i),i.name=0,Ut[n]=null)}},Ac:or,Dc:or,wa:function(e){Tr.depthMask(!!e)},xa:function(e){Tr.disable(e)},ya:function(e){Tr.disableVertexAttribArray(e)},za:function(e,t,r){Tr.drawArrays(e,t,r)},xc:function(e,t,r,n){Tr.drawArraysInstanced(e,t,r,n)},vc:function(e,t,r,n,i){Tr.qf.drawArraysInstancedBaseInstanceWEBGL(e,t,r,n,i)},tc:function(e,t){for(var r=ar[e],n=0;n>2];Tr.drawBuffers(r)},Aa:sr,yc:function(e,t,r,n,i){Tr.drawElementsInstanced(e,t,r,n,i)},wc:function(e,t,r,n,i,o,a){Tr.qf.drawElementsInstancedBaseVertexBaseInstanceWEBGL(e,t,r,n,i,o,a)},nc:function(e,t,r,n,i,o){sr(e,n,i,o)},Ba:function(e){Tr.enable(e)},Ca:function(e){Tr.enableVertexAttribArray(e)},Xb:function(e,t){return(e=Tr.fenceSync(e,t))?(t=Yt(Gt),e.name=t,Gt[t]=e,t):0},Da:function(){Tr.finish()},Ea:function(){Tr.flush()},jc:function(e,t,r,n){Tr.framebufferRenderbuffer(e,t,r,Ot[n])},kc:function(e,t,r,n,i){Tr.framebufferTexture2D(e,t,r,Ut[n],i)},Fa:function(e){Tr.frontFace(e)},Ga:function(e,t){ur(e,t,"createBuffer",Rt)},lc:function(e,t){ur(e,t,"createFramebuffer",It)},mc:function(e,t){ur(e,t,"createRenderbuffer",Ot)},Tb:function(e,t){ur(e,t,"createSampler",Wt)},Ha:function(e,t){ur(e,t,"createTexture",Ut)},Bc:lr,Ec:lr,bc:function(e){Tr.generateMipmap(e)},Ia:function(e,t,r){r?L[r>>2]=Tr.getBufferParameter(e,t):Kt(1281)},Ja:function(){var e=Tr.getError()||Zt;return Zt=0,e},Ka:function(e,t){fr(e,t,2)},cc:function(e,t,r,n){((e=Tr.getFramebufferAttachmentParameter(e,t,r))instanceof WebGLRenderbuffer||e instanceof WebGLTexture)&&(e=0|e.name),L[n>>2]=e},M:function(e,t){fr(e,t,0)},La:function(e,t,r,n){null===(e=Tr.getProgramInfoLog(Lt[e]))&&(e="(unknown error)"),t=0>2]=t)},Ma:function(e,t,r){if(r)if(e>=Bt)Kt(1281);else if(e=Lt[e],35716==t)null===(e=Tr.getProgramInfoLog(e))&&(e="(unknown error)"),L[r>>2]=e.length+1;else if(35719==t){if(!e.Ze)for(t=0;t>2]=e.Ze}else if(35722==t){if(!e.Xe)for(t=0;t>2]=e.Xe}else if(35381==t){if(!e.Ye)for(t=0;t>2]=e.Ye}else L[r>>2]=Tr.getProgramParameter(e,t);else Kt(1281)},dc:function(e,t,r){r?L[r>>2]=Tr.getRenderbufferParameter(e,t):Kt(1281)},Na:function(e,t,r,n){null===(e=Tr.getShaderInfoLog(Dt[e]))&&(e="(unknown error)"),t=0>2]=t)},Ob:function(e,t,r,n){e=Tr.getShaderPrecisionFormat(e,t),L[r>>2]=e.rangeMin,L[r+4>>2]=e.rangeMax,L[n>>2]=e.precision},Oa:function(e,t,r){r?35716==t?(null===(e=Tr.getShaderInfoLog(Dt[e]))&&(e="(unknown error)"),L[r>>2]=e?e.length+1:0):35720==t?(e=Tr.getShaderSource(Dt[e]),L[r>>2]=e?e.length+1:0):L[r>>2]=Tr.getShaderParameter(Dt[e],t):Kt(1281)},Q:function(e){var t=$t[e];if(!t){switch(e){case 7939:t=(t=Tr.getSupportedExtensions()||[]).concat(t.map((function(e){return"GL_"+e}))),t=cr(t.join(" "));break;case 7936:case 7937:case 37445:case 37446:(t=Tr.getParameter(e))||Kt(1280),t=t&&cr(t);break;case 7938:t=Tr.getParameter(7938),t=2<=Jt.version?"OpenGL ES 3.0 ("+t+")":"OpenGL ES 2.0 ("+t+")",t=cr(t);break;case 35724:var r=(t=Tr.getParameter(35724)).match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);null!==r&&(3==r[1].length&&(r[1]+="0"),t="OpenGL ES GLSL ES "+r[1]+" ("+t+")"),t=cr(t);break;default:Kt(1280)}$t[e]=t}return t},jb:function(e,t){if(2>Jt.version)return Kt(1282),0;var r=Nt[e];return r?0>t||t>=r.length?(Kt(1281),0):r[t]:7939===e?(r=(r=(r=Tr.getSupportedExtensions()||[]).concat(r.map((function(e){return"GL_"+e})))).map((function(e){return cr(e)})),r=Nt[e]=r,0>t||t>=r.length?(Kt(1281),0):r[t]):(Kt(1280),0)},Pa:function(e,t){if(t=t?oe(E,t):"",e=Lt[e]){var r,n=e,i=n.Oe,o=n.zf;if(!i)for(n.Oe=i={},n.yf={},r=0;r>>0,o=t.slice(0,r)),(o=e.zf[o])&&i>2];Tr.invalidateFramebuffer(e,n)},Qb:function(e,t,r,n,i,o,a){for(var s=ar[t],u=0;u>2];Tr.invalidateSubFramebuffer(e,s,n,i,o,a)},Yb:function(e){return Tr.isSync(Gt[e])},Qa:function(e){return(e=Ut[e])?Tr.isTexture(e):0},Ra:function(e){Tr.lineWidth(e)},Sa:function(e){e=Lt[e],Tr.linkProgram(e),e.Oe=0,e.zf={}},rc:function(e,t,r,n,i,o){Tr.vf.multiDrawArraysInstancedBaseInstanceWEBGL(e,L,t>>2,L,r>>2,L,n>>2,I,i>>2,o)},sc:function(e,t,r,n,i,o,a,s){Tr.vf.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(e,L,t>>2,r,L,n>>2,L,i>>2,L,o>>2,I,a>>2,s)},Ta:function(e,t){3317==e&&(Vt=t),Tr.pixelStorei(e,t)},uc:function(e){Tr.readBuffer(e)},Ua:function(e,t,r,n,i,o,a){if(2<=Jt.version)if(Tr.ff)Tr.readPixels(e,t,r,n,i,o,a);else{var s=hr(o);Tr.readPixels(e,t,r,n,i,o,s,a>>31-Math.clz32(s.BYTES_PER_ELEMENT))}else(a=pr(o,i,r,n,a))?Tr.readPixels(e,t,r,n,i,o,a):Kt(1280)},ec:function(e,t,r,n){Tr.renderbufferStorage(e,t,r,n)},ac:function(e,t,r,n,i){Tr.renderbufferStorageMultisample(e,t,r,n,i)},Ub:function(e,t,r){Tr.samplerParameterf(Wt[e],t,r)},Vb:function(e,t,r){Tr.samplerParameteri(Wt[e],t,r)},Wb:function(e,t,r){Tr.samplerParameteri(Wt[e],t,L[r>>2])},Va:function(e,t,r,n){Tr.scissor(e,t,r,n)},Wa:function(e,t,r,n){for(var i="",o=0;o>2]:-1,s=L[r+4*o>>2];i+=a=s?oe(E,s,0>a?void 0:a):""}Tr.shaderSource(Dt[e],i)},Xa:function(e,t,r){Tr.stencilFunc(e,t,r)},Ya:function(e,t,r,n){Tr.stencilFuncSeparate(e,t,r,n)},Za:function(e){Tr.stencilMask(e)},_a:function(e,t){Tr.stencilMaskSeparate(e,t)},$a:function(e,t,r){Tr.stencilOp(e,t,r)},ab:function(e,t,r,n){Tr.stencilOpSeparate(e,t,r,n)},bb:function(e,t,r,n,i,o,a,s,u){if(2<=Jt.version)if(Tr.Ee)Tr.texImage2D(e,t,r,n,i,o,a,s,u);else if(u){var l=hr(s);Tr.texImage2D(e,t,r,n,i,o,a,s,l,u>>31-Math.clz32(l.BYTES_PER_ELEMENT))}else Tr.texImage2D(e,t,r,n,i,o,a,s,null);else Tr.texImage2D(e,t,r,n,i,o,a,s,u?pr(s,a,n,i,u):null)},cb:function(e,t,r){Tr.texParameterf(e,t,r)},db:function(e,t,r){Tr.texParameterf(e,t,O[r>>2])},eb:function(e,t,r){Tr.texParameteri(e,t,r)},fb:function(e,t,r){Tr.texParameteri(e,t,L[r>>2])},oc:function(e,t,r,n,i){Tr.texStorage2D(e,t,r,n,i)},gb:function(e,t,r,n,i,o,a,s,u){if(2<=Jt.version)if(Tr.Ee)Tr.texSubImage2D(e,t,r,n,i,o,a,s,u);else if(u){var l=hr(s);Tr.texSubImage2D(e,t,r,n,i,o,a,s,l,u>>31-Math.clz32(l.BYTES_PER_ELEMENT))}else Tr.texSubImage2D(e,t,r,n,i,o,a,s,null);else l=null,u&&(l=pr(s,a,i,o,u)),Tr.texSubImage2D(e,t,r,n,i,o,a,s,l)},hb:function(e,t){Tr.uniform1f(yr(e),t)},ib:function(e,t,r){if(2<=Jt.version)t&&Tr.uniform1fv(yr(e),O,r>>2,t);else{if(288>=t)for(var n=gr[t-1],i=0;i>2];else n=O.subarray(r>>2,r+4*t>>2);Tr.uniform1fv(yr(e),n)}},Zc:function(e,t){Tr.uniform1i(yr(e),t)},_c:function(e,t,r){if(2<=Jt.version)t&&Tr.uniform1iv(yr(e),L,r>>2,t);else{if(288>=t)for(var n=mr[t-1],i=0;i>2];else n=L.subarray(r>>2,r+4*t>>2);Tr.uniform1iv(yr(e),n)}},$c:function(e,t,r){Tr.uniform2f(yr(e),t,r)},ad:function(e,t,r){if(2<=Jt.version)t&&Tr.uniform2fv(yr(e),O,r>>2,2*t);else{if(144>=t)for(var n=gr[2*t-1],i=0;i<2*t;i+=2)n[i]=O[r+4*i>>2],n[i+1]=O[r+(4*i+4)>>2];else n=O.subarray(r>>2,r+8*t>>2);Tr.uniform2fv(yr(e),n)}},Yc:function(e,t,r){Tr.uniform2i(yr(e),t,r)},Xc:function(e,t,r){if(2<=Jt.version)t&&Tr.uniform2iv(yr(e),L,r>>2,2*t);else{if(144>=t)for(var n=mr[2*t-1],i=0;i<2*t;i+=2)n[i]=L[r+4*i>>2],n[i+1]=L[r+(4*i+4)>>2];else n=L.subarray(r>>2,r+8*t>>2);Tr.uniform2iv(yr(e),n)}},Wc:function(e,t,r,n){Tr.uniform3f(yr(e),t,r,n)},Vc:function(e,t,r){if(2<=Jt.version)t&&Tr.uniform3fv(yr(e),O,r>>2,3*t);else{if(96>=t)for(var n=gr[3*t-1],i=0;i<3*t;i+=3)n[i]=O[r+4*i>>2],n[i+1]=O[r+(4*i+4)>>2],n[i+2]=O[r+(4*i+8)>>2];else n=O.subarray(r>>2,r+12*t>>2);Tr.uniform3fv(yr(e),n)}},Uc:function(e,t,r,n){Tr.uniform3i(yr(e),t,r,n)},Tc:function(e,t,r){if(2<=Jt.version)t&&Tr.uniform3iv(yr(e),L,r>>2,3*t);else{if(96>=t)for(var n=mr[3*t-1],i=0;i<3*t;i+=3)n[i]=L[r+4*i>>2],n[i+1]=L[r+(4*i+4)>>2],n[i+2]=L[r+(4*i+8)>>2];else n=L.subarray(r>>2,r+12*t>>2);Tr.uniform3iv(yr(e),n)}},Sc:function(e,t,r,n,i){Tr.uniform4f(yr(e),t,r,n,i)},Rc:function(e,t,r){if(2<=Jt.version)t&&Tr.uniform4fv(yr(e),O,r>>2,4*t);else{if(72>=t){var n=gr[4*t-1],i=O;r>>=2;for(var o=0;o<4*t;o+=4){var a=r+o;n[o]=i[a],n[o+1]=i[a+1],n[o+2]=i[a+2],n[o+3]=i[a+3]}}else n=O.subarray(r>>2,r+16*t>>2);Tr.uniform4fv(yr(e),n)}},Fc:function(e,t,r,n,i){Tr.uniform4i(yr(e),t,r,n,i)},Gc:function(e,t,r){if(2<=Jt.version)t&&Tr.uniform4iv(yr(e),L,r>>2,4*t);else{if(72>=t)for(var n=mr[4*t-1],i=0;i<4*t;i+=4)n[i]=L[r+4*i>>2],n[i+1]=L[r+(4*i+4)>>2],n[i+2]=L[r+(4*i+8)>>2],n[i+3]=L[r+(4*i+12)>>2];else n=L.subarray(r>>2,r+16*t>>2);Tr.uniform4iv(yr(e),n)}},Hc:function(e,t,r,n){if(2<=Jt.version)t&&Tr.uniformMatrix2fv(yr(e),!!r,O,n>>2,4*t);else{if(72>=t)for(var i=gr[4*t-1],o=0;o<4*t;o+=4)i[o]=O[n+4*o>>2],i[o+1]=O[n+(4*o+4)>>2],i[o+2]=O[n+(4*o+8)>>2],i[o+3]=O[n+(4*o+12)>>2];else i=O.subarray(n>>2,n+16*t>>2);Tr.uniformMatrix2fv(yr(e),!!r,i)}},Ic:function(e,t,r,n){if(2<=Jt.version)t&&Tr.uniformMatrix3fv(yr(e),!!r,O,n>>2,9*t);else{if(32>=t)for(var i=gr[9*t-1],o=0;o<9*t;o+=9)i[o]=O[n+4*o>>2],i[o+1]=O[n+(4*o+4)>>2],i[o+2]=O[n+(4*o+8)>>2],i[o+3]=O[n+(4*o+12)>>2],i[o+4]=O[n+(4*o+16)>>2],i[o+5]=O[n+(4*o+20)>>2],i[o+6]=O[n+(4*o+24)>>2],i[o+7]=O[n+(4*o+28)>>2],i[o+8]=O[n+(4*o+32)>>2];else i=O.subarray(n>>2,n+36*t>>2);Tr.uniformMatrix3fv(yr(e),!!r,i)}},Jc:function(e,t,r,n){if(2<=Jt.version)t&&Tr.uniformMatrix4fv(yr(e),!!r,O,n>>2,16*t);else{if(18>=t){var i=gr[16*t-1],o=O;n>>=2;for(var a=0;a<16*t;a+=16){var s=n+a;i[a]=o[s],i[a+1]=o[s+1],i[a+2]=o[s+2],i[a+3]=o[s+3],i[a+4]=o[s+4],i[a+5]=o[s+5],i[a+6]=o[s+6],i[a+7]=o[s+7],i[a+8]=o[s+8],i[a+9]=o[s+9],i[a+10]=o[s+10],i[a+11]=o[s+11],i[a+12]=o[s+12],i[a+13]=o[s+13],i[a+14]=o[s+14],i[a+15]=o[s+15]}}else i=O.subarray(n>>2,n+64*t>>2);Tr.uniformMatrix4fv(yr(e),!!r,i)}},Kc:function(e){e=Lt[e],Tr.useProgram(e),Tr.Lf=e},Lc:function(e,t){Tr.vertexAttrib1f(e,t)},Mc:function(e,t){Tr.vertexAttrib2f(e,O[t>>2],O[t+4>>2])},Nc:function(e,t){Tr.vertexAttrib3f(e,O[t>>2],O[t+4>>2],O[t+8>>2])},Oc:function(e,t){Tr.vertexAttrib4f(e,O[t>>2],O[t+4>>2],O[t+8>>2],O[t+12>>2])},pc:function(e,t){Tr.vertexAttribDivisor(e,t)},qc:function(e,t,r,n,i){Tr.vertexAttribIPointer(e,t,r,n,i)},Pc:function(e,t,r,n,i,o){Tr.vertexAttribPointer(e,t,r,!!n,i,o)},Qc:function(e,t,r,n){Tr.viewport(e,t,r,n)},rb:function(e,t,r,n){Tr.waitSync(Gt[e],t,(r>>>0)+4294967296*n)},j:function(e,t){var r=Or();try{return H.get(e)(t)}catch(e){if(Ur(r),e!==e+0)throw e;Ir(1,0)}},m:function(e,t,r){var n=Or();try{return H.get(e)(t,r)}catch(e){if(Ur(n),e!==e+0)throw e;Ir(1,0)}},k:function(e,t,r,n){var i=Or();try{return H.get(e)(t,r,n)}catch(e){if(Ur(i),e!==e+0)throw e;Ir(1,0)}},H:function(e,t,r,n,i){var o=Or();try{return H.get(e)(t,r,n,i)}catch(e){if(Ur(o),e!==e+0)throw e;Ir(1,0)}},Lb:function(e,t,r,n,i,o){var a=Or();try{return H.get(e)(t,r,n,i,o)}catch(e){if(Ur(a),e!==e+0)throw e;Ir(1,0)}},Z:function(e,t,r,n,i,o,a){var s=Or();try{return H.get(e)(t,r,n,i,o,a)}catch(e){if(Ur(s),e!==e+0)throw e;Ir(1,0)}},Y:function(e,t,r,n,i,o,a,s,u,l){var f=Or();try{return H.get(e)(t,r,n,i,o,a,s,u,l)}catch(e){if(Ur(f),e!==e+0)throw e;Ir(1,0)}},P:function(e){var t=Or();try{H.get(e)()}catch(e){if(Ur(t),e!==e+0)throw e;Ir(1,0)}},o:function(e,t){var r=Or();try{H.get(e)(t)}catch(e){if(Ur(r),e!==e+0)throw e;Ir(1,0)}},y:function(e,t,r){var n=Or();try{H.get(e)(t,r)}catch(e){if(Ur(n),e!==e+0)throw e;Ir(1,0)}},u:function(e,t,r,n){var i=Or();try{H.get(e)(t,r,n)}catch(e){if(Ur(i),e!==e+0)throw e;Ir(1,0)}},t:function(e,t,r,n,i){var o=Or();try{H.get(e)(t,r,n,i)}catch(e){if(Ur(o),e!==e+0)throw e;Ir(1,0)}},Kb:function(e,t,r,n,i,o){var a=Or();try{H.get(e)(t,r,n,i,o)}catch(e){if(Ur(a),e!==e+0)throw e;Ir(1,0)}},Mb:function(e,t,r,n,i,o,a){var s=Or();try{H.get(e)(t,r,n,i,o,a)}catch(e){if(Ur(s),e!==e+0)throw e;Ir(1,0)}},Nb:function(e,t,r,n,i,o,a,s,u,l){var f=Or();try{H.get(e)(t,r,n,i,o,a,s,u,l)}catch(e){if(Ur(f),e!==e+0)throw e;Ir(1,0)}},tb:function(e,t,r,n){return Pr(e,t,r,n)}};!(function(){function e(e){if(k=e=e.exports,S=k.bd,j(),H=k.ed,G.unshift(k.cd),K--,c.monitorRunDependencies&&c.monitorRunDependencies(K),0==K&&(null!==Y&&(clearInterval(Y),Y=null),z)){var t=z;z=null,t()}return e}var t={a:xr};if(K++,c.monitorRunDependencies&&c.monitorRunDependencies(K),c.instantiateWasm)try{return c.instantiateWasm(t,e)}catch(e){T("Module.instantiateWasm callback failed with error: "+e),n(e)}te(t,(function(t){e(t.instance)})).catch(n)})();var Er=c._malloc=function(e){return(Er=c._malloc=k.dd)(e)},Br=c._free=function(e){return(Br=c._free=k.fd)(e)},Rr=function(e){return(Rr=k.gd)(e)};c.__embind_initialize_bindings=function(){return(c.__embind_initialize_bindings=k.hd)()};var Lr,Ir=function(e,t){return(Ir=k.id)(e,t)},Or=function(){return(Or=k.jd)()},Ur=function(e){return(Ur=k.kd)(e)};function Dr(){function e(){if(!Lr&&(Lr=!0,c.calledRun=!0,!D)){if(ne(G),r(c),c.onRuntimeInitialized&&c.onRuntimeInitialized(),c.postRun)for("function"==typeof c.postRun&&(c.postRun=[c.postRun]);c.postRun.length;){var e=c.postRun.shift();$.unshift(e)}ne($)}}if(!(0