/home/bdqbpbxa/demo-subdomains/uniferx.goodface.com.ua/static/js/160.57d2cae1.chunk.js
"use strict";(self.webpackChunkuniferx_frontend=self.webpackChunkuniferx_frontend||[]).push([[160],{160:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var n,a=(n=function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')},typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):n),o=((e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports))(((e,t)=>{var r=(()=>{var e=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return typeof __filename<"u"&&(e=e||__filename),function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var r,n,o,i=t;i.ready=new Promise(((e,t)=>{r=e,n=t})),(o=i).Id=o.Id||[],o.Id.push((function(){o.MakeSWCanvasSurface=function(e){var t=e,r=typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas;if(!(typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||r||(t=document.getElementById(e),t)))throw"Canvas with id "+e+" was not found";return(e=o.MakeSurface(t.width,t.height))&&(e.ie=t),e},o.MakeCanvasSurface||(o.MakeCanvasSurface=o.MakeSWCanvasSurface),o.MakeSurface=function(e,t){var r={width:e,height:t,colorType:o.ColorType.RGBA_8888,alphaType:o.AlphaType.Unpremul,colorSpace:o.ColorSpace.SRGB},n=e*t*4,a=o._malloc(n);return(r=o.Surface._makeRasterDirect(r,a,4*e))&&(r.ie=null,r.Pe=e,r.Me=t,r.Ne=n,r.re=a,r.getCanvas().clear(o.TRANSPARENT)),r},o.MakeRasterDirectSurface=function(e,t,r){return o.Surface._makeRasterDirect(e,t.byteOffset,r)},o.Surface.prototype.flush=function(e){if(o.Fd(this.Ed),this._flush(),this.ie){var t=new Uint8ClampedArray(o.HEAPU8.buffer,this.re,this.Ne);t=new ImageData(t,this.Pe,this.Me),e?this.ie.getContext("2d").putImageData(t,0,0,e[0],e[1],e[2]-e[0],e[3]-e[1]):this.ie.getContext("2d").putImageData(t,0,0)}},o.Surface.prototype.dispose=function(){this.re&&o._free(this.re),this.delete()},o.Fd=o.Fd||function(){},o.je=o.je||function(){return null}})),function(e){e.Id=e.Id||[],e.Id.push((function(){function t(e,t,r){return e&&e.hasOwnProperty(t)?e[t]:r}function r(e){var t=Ft(mt);return mt[t]=e,t}function n(e){return e.naturalHeight||e.videoHeight||e.displayHeight||e.height}function a(e){return e.naturalWidth||e.videoWidth||e.displayWidth||e.width}function o(t,r,n,a){return t.bindTexture(t.TEXTURE_2D,r),a||n.alphaType!==e.AlphaType.Premul||t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),r}function i(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:typeof WebGL2RenderingContext<"u"?2:1,n.explicitSwapControl)throw"explicitSwapControl is not supported";return e=function(e,t){e.be||(e.be=e.getContext,e.getContext=function(t,r){return"webgl"==t==(r=e.be(t,r))instanceof WebGLRenderingContext?r:null});var r=1<t.majorVersion?e.getContext("webgl2",t):e.getContext("webgl",t);return r?function(e,t){var r=Ft(bt),n={handle:r,attributes:t,version:t.majorVersion,Qd:e};return e.canvas&&(e.canvas.Ke=n),bt[r]=n,(typeof t.Ue>"u"||t.Ue)&&function(e){if(e||(e=xt),!e.bf){e.bf=!0;var t=e.Qd;(function(e){var t=e.getExtension("ANGLE_instanced_arrays");t&&(e.vertexAttribDivisor=function(e,r){t.vertexAttribDivisorANGLE(e,r)},e.drawArraysInstanced=function(e,r,n,a){t.drawArraysInstancedANGLE(e,r,n,a)},e.drawElementsInstanced=function(e,r,n,a,o){t.drawElementsInstancedANGLE(e,r,n,a,o)})})(t),function(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)})}(t),function(e){var t=e.getExtension("WEBGL_draw_buffers");t&&(e.drawBuffers=function(e,r){t.drawBuffersWEBGL(e,r)})}(t),t.ze=t.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"),t.De=t.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"),2<=e.version&&(t.Ae=t.getExtension("EXT_disjoint_timer_query_webgl2")),(2>e.version||!t.Ae)&&(t.Ae=t.getExtension("EXT_disjoint_timer_query")),t.rf=t.getExtension("WEBGL_multi_draw"),(t.getSupportedExtensions()||[]).forEach((function(e){e.includes("lose_context")||e.includes("debug")||t.getExtension(e)}))}}(n),r}(r,t):0}(e,n),e?(St(e),xt.Qd.getExtension("WEBGL_debug_renderer_info"),e):0},e.deleteContext=function(e){xt===bt[e]&&(xt=null),"object"==typeof JSEvents&&JSEvents.tf(bt[e].Qd.canvas),bt[e]&&bt[e].Qd.canvas&&(bt[e].Qd.canvas.Ke=void 0),bt[e]=null},e._setTextureCleanup({deleteTexture:function(e,t){var r=mt[t];r&&bt[e].Qd.deleteTexture(r),mt[t]=null}}),e.MakeWebGLContext=function(t){if(!this.Fd(t))return null;var r=this._MakeGrContext();if(!r)return null;r.Ed=t;var n=r.delete.bind(r);return r.delete=function(){e.Fd(this.Ed),n()}.bind(r),xt.te=r},e.MakeGrContext=e.MakeWebGLContext,e.GrDirectContext.prototype.getResourceCacheLimitBytes=function(){e.Fd(this.Ed),this._getResourceCacheLimitBytes()},e.GrDirectContext.prototype.getResourceCacheUsageBytes=function(){e.Fd(this.Ed),this._getResourceCacheUsageBytes()},e.GrDirectContext.prototype.releaseResourcesAndAbandonContext=function(){e.Fd(this.Ed),this._releaseResourcesAndAbandonContext()},e.GrDirectContext.prototype.setResourceCacheLimitBytes=function(t){e.Fd(this.Ed),this._setResourceCacheLimitBytes(t)},e.MakeOnScreenGLSurface=function(e,t,r,n,a,o){return this.Fd(e.Ed)&&(t=void 0===a||void 0===o?this._MakeOnScreenGLSurface(e,t,r,n):this._MakeOnScreenGLSurface(e,t,r,n,a,o))?(t.Ed=e.Ed,t):null},e.MakeRenderTarget=function(){var e=arguments[0];if(!this.Fd(e.Ed))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.Ed=e.Ed,t},e.MakeWebGLCanvasSurface=function(t,r,n){r=r||null;var a=t,o=typeof OffscreenCanvas<"u"&&a instanceof OffscreenCanvas;if(!(typeof HTMLCanvasElement<"u"&&a instanceof HTMLCanvasElement||o||(a=document.getElementById(t),a)))throw"Canvas with id "+t+" was not found";if(!(t=this.GetWebGLContext(a,n))||0>t)throw"failed to create webgl context: err "+t;return t=this.MakeWebGLContext(t),(r=this.MakeOnScreenGLSurface(t,a.width,a.height,r))||(r=a.cloneNode(!0),a.parentNode.replaceChild(r,a),r.classList.add("ck-replaced"),e.MakeSWCanvasSurface(r))},e.MakeCanvasSurface=e.MakeWebGLCanvasSurface,e.Surface.prototype.makeImageFromTexture=function(t,n){return e.Fd(this.Ed),t=r(t),(n=this._makeImageFromTexture(this.Ed,t,n))&&(n.de=t),n},e.Surface.prototype.makeImageFromTextureSource=function(t,r,u){r||(r={height:n(t),width:a(t),colorType:e.ColorType.RGBA_8888,alphaType:u?e.AlphaType.Premul:e.AlphaType.Unpremul}),r.colorSpace||(r.colorSpace=e.ColorSpace.SRGB),e.Fd(this.Ed);var c=xt.Qd;return u=o(c,c.createTexture(),r,u),2===xt.version?c.texImage2D(c.TEXTURE_2D,0,c.RGBA,r.width,r.height,0,c.RGBA,c.UNSIGNED_BYTE,t):c.texImage2D(c.TEXTURE_2D,0,c.RGBA,c.RGBA,c.UNSIGNED_BYTE,t),i(c,r),this._resetContext(),this.makeImageFromTexture(u,r)},e.Surface.prototype.updateTextureFromSource=function(t,u,c){if(t.de){e.Fd(this.Ed);var s=t.getImageInfo(),l=xt.Qd,f=o(l,mt[t.de],s,c);2===xt.version?l.texImage2D(l.TEXTURE_2D,0,l.RGBA,a(u),n(u),0,l.RGBA,l.UNSIGNED_BYTE,u):l.texImage2D(l.TEXTURE_2D,0,l.RGBA,l.RGBA,l.UNSIGNED_BYTE,u),i(l,s,c),this._resetContext(),mt[t.de]=null,t.de=r(f),s.colorSpace=t.getColorSpace(),u=this._makeImageFromTexture(this.Ed,t.de,s),c=t.Dd.Hd,l=t.Dd.Ld,t.Dd.Hd=u.Dd.Hd,t.Dd.Ld=u.Dd.Ld,u.Dd.Hd=c,u.Dd.Ld=l,u.delete(),s.colorSpace.delete()}},e.MakeLazyImageFromTextureSource=function(t,u,c){u||(u={height:n(t),width:a(t),colorType:e.ColorType.RGBA_8888,alphaType:c?e.AlphaType.Premul:e.AlphaType.Unpremul}),u.colorSpace||(u.colorSpace=e.ColorSpace.SRGB);var s={makeTexture:function(){var e=xt,n=e.Qd,a=o(n,n.createTexture(),u,c);return 2===e.version?n.texImage2D(n.TEXTURE_2D,0,n.RGBA,u.width,u.height,0,n.RGBA,n.UNSIGNED_BYTE,t):n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,t),i(n,u,c),r(a)},freeSrc:function(){}};return"VideoFrame"===t.constructor.name&&(s.freeSrc=function(){t.close()}),e.Image._makeFromGenerator(u,s)},e.Fd=function(e){return!!e&&St(e)},e.je=function(){return xt&&xt.te&&!xt.te.isDeleted()?xt.te:null}}))}(i),function(e){function t(e){return(a(255*e[3])<<24|a(255*e[0])<<16|a(255*e[1])<<8|a(255*e[2])<<0)>>>0}function r(e){if(e&&e._ck)return e;if(e instanceof Float32Array){for(var r=Math.floor(e.length/4),n=new Uint32Array(r),a=0;a<r;a++)n[a]=t(e.slice(4*a,4*(a+1)));return n}return e instanceof Uint32Array?e:e instanceof Array&&e[0]instanceof Float32Array?e.map(t):void 0}function n(e){if(void 0===e)return 1;var t=parseFloat(e);return e&&-1!==e.indexOf("%")?t/100:t}function a(e){return Math.round(Math.max(0,Math.min(e||0,255)))}function o(t,r){r&&r._ck||e._free(t)}function u(t,r,n){if(!t||!t.length)return L;if(t&&t._ck)return t.byteOffset;var a=e[r].BYTES_PER_ELEMENT;return n||(n=e._malloc(t.length*a)),e[r].set(t,n/a),n}function c(t){var r={Nd:L,count:t.length,colorType:e.ColorType.RGBA_F32};if(t instanceof Float32Array)r.Nd=u(t,"HEAPF32"),r.count=t.length/4;else if(t instanceof Uint32Array)r.Nd=u(t,"HEAPU32"),r.colorType=e.ColorType.RGBA_8888;else{if(!(t instanceof Array))throw"Invalid argument to copyFlexibleColorArray, Not a color array "+typeof t;if(t&&t.length){for(var n=e._malloc(16*t.length),a=0,o=n/4,i=0;i<t.length;i++)for(var c=0;4>c;c++)e.HEAPF32[o+a]=t[i][c],a++;t=n}else t=L;r.Nd=t}return r}function s(t){if(!t)return L;var r=y.toTypedArray();if(t.length){if(6===t.length||9===t.length)return u(t,"HEAPF32",T),6===t.length&&e.HEAPF32.set(G,6+T/4),T;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],T;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,T}function l(e,t){return u(e,"HEAPF32",t||S)}function f(e,t,r,n){var a=m.toTypedArray();return a[0]=e,a[1]=t,a[2]=r,a[3]=n,S}function d(t){for(var r=new Float32Array(4),n=0;4>n;n++)r[n]=e.HEAPF32[t/4+n];return r}function h(e,t){return u(e,"HEAPF32",t||x)}function p(e,t){return u(e,"HEAPF32",t||I)}e.Color=function(t,r,n,o){return void 0===o&&(o=1),e.Color4f(a(t)/255,a(r)/255,a(n)/255,o)},e.ColorAsInt=function(e,t,r,n){return void 0===n&&(n=255),(a(n)<<24|a(e)<<16|a(t)<<8|a(r)<<0&268435455)>>>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 a=parseInt(t.slice(1,3),16),o=parseInt(t.slice(3,5),16),i=parseInt(t.slice(5,7),16);break;case 5:r=17*parseInt(t.slice(4,5),16);case 4:a=17*parseInt(t.slice(1,2),16),o=17*parseInt(t.slice(2,3),16),i=17*parseInt(t.slice(3,4),16)}return e.Color(a,o,i,r/255)}return t.startsWith("rgba")?(t=(t=t.slice(5,-1)).split(","),e.Color(+t[0],+t[1],+t[2],n(t[3]))):t.startsWith("rgb")?(t=(t=t.slice(4,-1)).split(","),e.Color(+t[0],+t[1],+t[2],n(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,Xd:null,subarray:function(e,t){return(e=this.toTypedArray().subarray(e,t))._ck=!0,e},toTypedArray:function(){return this.Xd&&this.Xd.length||(this.Xd=new t(e.HEAPU8.buffer,n,r),this.Xd._ck=!0),this.Xd}}},e.Free=function(t){e._free(t.byteOffset),t.byteOffset=L,t.toTypedArray=null,t.Xd=null};var y,g,m,v,_,b,P,A,E,C,T=L,F=L,S=L,x=L,k=L,M=L,R=L,D=L,I=L,B=L,G=Float32Array.of(0,0,1),L=0;e.onRuntimeInitialized=function(){function t(t,r,n,a,o,i,u){i||(i=4*a.width,a.colorType===e.ColorType.RGBA_F16?i*=2:a.colorType===e.ColorType.RGBA_F32&&(i*=4));var c=i*a.height,s=o?o.byteOffset:e._malloc(c);if(u?!t._readPixels(a,s,i,r,n,u):!t._readPixels(a,s,i,r,n))return o||e._free(s),null;if(o)return o.toTypedArray();switch(a.colorType){case e.ColorType.RGBA_8888:case e.ColorType.RGBA_F16:t=new Uint8Array(e.HEAPU8.buffer,s,c).slice();break;case e.ColorType.RGBA_F32:t=new Float32Array(e.HEAPU8.buffer,s,c).slice();break;default:return null}return e._free(s),t}m=e.Malloc(Float32Array,4),S=m.byteOffset,g=e.Malloc(Float32Array,16),F=g.byteOffset,y=e.Malloc(Float32Array,9),T=y.byteOffset,E=e.Malloc(Float32Array,12),I=E.byteOffset,C=e.Malloc(Float32Array,12),B=C.byteOffset,v=e.Malloc(Float32Array,4),x=v.byteOffset,_=e.Malloc(Float32Array,4),k=_.byteOffset,b=e.Malloc(Float32Array,3),M=b.byteOffset,P=e.Malloc(Float32Array,3),R=P.byteOffset,A=e.Malloc(Int32Array,4),D=A.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=u(t,"HEAPF32"),n=e.Path._MakeFromCmds(r,t.length);return o(r,t),n},e.Path.MakeFromVerbsPointsWeights=function(t,r,n){var a=u(t,"HEAPU8"),i=u(r,"HEAPF32"),c=u(n,"HEAPF32"),s=e.Path._MakeFromVerbsPointsWeights(a,t.length,i,r.length,c,n&&n.length||0);return o(a,t),o(i,r),o(c,n),s},e.Path.prototype.addArc=function(e,t,r){return e=h(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=h(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=u(e,"HEAPF32");return this._addPoly(r,e.length/2,t),o(r,e),this},e.Path.prototype.addRect=function(e,t){return e=h(e),this._addRect(e,!!t),this},e.Path.prototype.addRRect=function(e,t){return e=p(e),this._addRRect(e,!!t),this},e.Path.prototype.addVerbsPointsWeights=function(e,t,r){var n=u(e,"HEAPU8"),a=u(t,"HEAPF32"),i=u(r,"HEAPF32");this._addVerbsPointsWeights(n,e.length,a,t.length,i,r&&r.length||0),o(n,e),o(a,t),o(i,r)},e.Path.prototype.arc=function(t,r,n,a,o,i){return t=e.LTRBRect(t-n,r-n,t+n,r+n),o=(o-a)/Math.PI*180-360*!!i,(i=new e.Path).addArc(t,a/Math.PI*180,o),this.addPath(i,!0),i.delete(),this},e.Path.prototype.arcToOval=function(e,t,r,n){return e=h(e),this._arcToOval(e,t,r,n),this},e.Path.prototype.arcToRotated=function(e,t,r,n,a,o,i){return this._arcToRotated(e,t,r,!!n,!!a,o,i),this},e.Path.prototype.arcToTangent=function(e,t,r,n,a){return this._arcToTangent(e,t,r,n,a),this},e.Path.prototype.close=function(){return this._close(),this},e.Path.prototype.conicTo=function(e,t,r,n,a){return this._conicTo(e,t,r,n,a),this},e.Path.prototype.computeTightBounds=function(e){this._computeTightBounds(x);var t=v.toTypedArray();return e?(e.set(t),e):t.slice()},e.Path.prototype.cubicTo=function(e,t,r,n,a,o){return this._cubicTo(e,t,r,n,a,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(x);var t=v.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,a,o,i){return this._rArcTo(e,t,r,n,a,o,i),this},e.Path.prototype.rConicTo=function(e,t,r,n,a){return this._rConicTo(e,t,r,n,a),this},e.Path.prototype.rCubicTo=function(e,t,r,n,a,o){return this._rCubicTo(e,t,r,n,a,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.je();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,a){return a=s(a),this._makeShaderCubic(e,t,r,n,a)},e.Image.prototype.makeShaderOptions=function(e,t,r,n,a){return a=s(a),this._makeShaderOptions(e,t,r,n,a)},e.Image.prototype.readPixels=function(r,n,a,o,i){return t(this,r,n,a,o,i,e.je())},e.Canvas.prototype.clear=function(t){e.Fd(this.Ed),t=l(t),this._clear(t)},e.Canvas.prototype.clipRRect=function(t,r,n){e.Fd(this.Ed),t=p(t),this._clipRRect(t,r,n)},e.Canvas.prototype.clipRect=function(t,r,n){e.Fd(this.Ed),t=h(t),this._clipRect(t,r,n)},e.Canvas.prototype.concat=function(t){e.Fd(this.Ed),t=function(e){if(!e)return L;var t=g.toTypedArray();if(e.length){if(16!==e.length&&6!==e.length&&9!==e.length)throw"invalid matrix size";return 16===e.length?u(e,"HEAPF32",F):(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),F)}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,F}(t),this._concat(t)},e.Canvas.prototype.drawArc=function(t,r,n,a,o){e.Fd(this.Ed),t=h(t),this._drawArc(t,r,n,a,o)},e.Canvas.prototype.drawAtlas=function(t,n,a,i,c,s,l){if(t&&i&&n&&a&&n.length===a.length){e.Fd(this.Ed),c||(c=e.BlendMode.SrcOver);var f=u(n,"HEAPF32"),d=u(a,"HEAPF32"),h=a.length/4,p=u(r(s),"HEAPU32");if(l&&"B"in l&&"C"in l)this._drawAtlasCubic(t,d,f,p,h,c,l.B,l.C,i);else{let r=e.FilterMode.Linear,n=e.MipmapMode.None;l&&(r=l.filter,"mipmap"in l&&(n=l.mipmap)),this._drawAtlasOptions(t,d,f,p,h,c,r,n,i)}o(f,n),o(d,a),o(p,s)}},e.Canvas.prototype.drawCircle=function(t,r,n,a){e.Fd(this.Ed),this._drawCircle(t,r,n,a)},e.Canvas.prototype.drawColor=function(t,r){e.Fd(this.Ed),t=l(t),void 0!==r?this._drawColor(t,r):this._drawColor(t)},e.Canvas.prototype.drawColorInt=function(t,r){e.Fd(this.Ed),this._drawColorInt(t,r||e.BlendMode.SrcOver)},e.Canvas.prototype.drawColorComponents=function(t,r,n,a,o){e.Fd(this.Ed),t=f(t,r,n,a),void 0!==o?this._drawColor(t,o):this._drawColor(t)},e.Canvas.prototype.drawDRRect=function(t,r,n){e.Fd(this.Ed),t=p(t,I),r=p(r,B),this._drawDRRect(t,r,n)},e.Canvas.prototype.drawImage=function(t,r,n,a){e.Fd(this.Ed),this._drawImage(t,r,n,a||null)},e.Canvas.prototype.drawImageCubic=function(t,r,n,a,o,i){e.Fd(this.Ed),this._drawImageCubic(t,r,n,a,o,i||null)},e.Canvas.prototype.drawImageOptions=function(t,r,n,a,o,i){e.Fd(this.Ed),this._drawImageOptions(t,r,n,a,o,i||null)},e.Canvas.prototype.drawImageNine=function(t,r,n,a,o){e.Fd(this.Ed),r=u(r,"HEAP32",D),n=h(n),this._drawImageNine(t,r,n,a,o||null)},e.Canvas.prototype.drawImageRect=function(t,r,n,a,o){e.Fd(this.Ed),h(r,x),h(n,k),this._drawImageRect(t,x,k,a,!!o)},e.Canvas.prototype.drawImageRectCubic=function(t,r,n,a,o,i){e.Fd(this.Ed),h(r,x),h(n,k),this._drawImageRectCubic(t,x,k,a,o,i||null)},e.Canvas.prototype.drawImageRectOptions=function(t,r,n,a,o,i){e.Fd(this.Ed),h(r,x),h(n,k),this._drawImageRectOptions(t,x,k,a,o,i||null)},e.Canvas.prototype.drawLine=function(t,r,n,a,o){e.Fd(this.Ed),this._drawLine(t,r,n,a,o)},e.Canvas.prototype.drawOval=function(t,r){e.Fd(this.Ed),t=h(t),this._drawOval(t,r)},e.Canvas.prototype.drawPaint=function(t){e.Fd(this.Ed),this._drawPaint(t)},e.Canvas.prototype.drawParagraph=function(t,r,n){e.Fd(this.Ed),this._drawParagraph(t,r,n)},e.Canvas.prototype.drawPatch=function(t,n,a,i,c){if(24>t.length)throw"Need 12 cubic points";if(n&&4>n.length)throw"Need 4 colors";if(a&&8>a.length)throw"Need 4 shader coordinates";e.Fd(this.Ed);let s=u(t,"HEAPF32"),l=n?u(r(n),"HEAPU32"):L,f=a?u(a,"HEAPF32"):L;i||(i=e.BlendMode.Modulate),this._drawPatch(s,l,f,i,c),o(f,a),o(l,n),o(s,t)},e.Canvas.prototype.drawPath=function(t,r){e.Fd(this.Ed),this._drawPath(t,r)},e.Canvas.prototype.drawPicture=function(t){e.Fd(this.Ed),this._drawPicture(t)},e.Canvas.prototype.drawPoints=function(t,r,n){e.Fd(this.Ed);var a=u(r,"HEAPF32");this._drawPoints(t,a,r.length/2,n),o(a,r)},e.Canvas.prototype.drawRRect=function(t,r){e.Fd(this.Ed),t=p(t),this._drawRRect(t,r)},e.Canvas.prototype.drawRect=function(t,r){e.Fd(this.Ed),t=h(t),this._drawRect(t,r)},e.Canvas.prototype.drawRect4f=function(t,r,n,a,o){e.Fd(this.Ed),this._drawRect4f(t,r,n,a,o)},e.Canvas.prototype.drawShadow=function(t,r,n,a,i,c,s){e.Fd(this.Ed);var l=u(i,"HEAPF32"),f=u(c,"HEAPF32");r=u(r,"HEAPF32",M),n=u(n,"HEAPF32",R),this._drawShadow(t,r,n,a,l,f,s),o(l,i),o(f,c)},e.getShadowLocalBounds=function(e,t,r,n,a,o,i){return e=s(e),r=u(r,"HEAPF32",M),n=u(n,"HEAPF32",R),this._getShadowLocalBounds(e,t,r,n,a,o,x)?(t=v.toTypedArray(),i?(i.set(t),i):t.slice()):null},e.Canvas.prototype.drawTextBlob=function(t,r,n,a){e.Fd(this.Ed),this._drawTextBlob(t,r,n,a)},e.Canvas.prototype.drawVertices=function(t,r,n){e.Fd(this.Ed),this._drawVertices(t,r,n)},e.Canvas.prototype.getDeviceClipBounds=function(e){this._getDeviceClipBounds(D);var t=A.toTypedArray();return e?e.set(t):e=t.slice(),e},e.Canvas.prototype.getLocalToDevice=function(){this._getLocalToDevice(F);for(var t=F,r=Array(16),n=0;16>n;n++)r[n]=e.HEAPF32[t/4+n];return r},e.Canvas.prototype.getTotalMatrix=function(){this._getTotalMatrix(T);for(var t=Array(9),r=0;9>r;r++)t[r]=e.HEAPF32[T/4+r];return t},e.Canvas.prototype.makeSurface=function(e){return(e=this._makeSurface(e)).Ed=this.Ed,e},e.Canvas.prototype.readPixels=function(r,n,a,o,i){return e.Fd(this.Ed),t(this,r,n,a,o,i)},e.Canvas.prototype.saveLayer=function(e,t,r,n){return t=h(t),this._saveLayer(e||null,t,r||null,n||0)},e.Canvas.prototype.writePixels=function(t,r,n,a,i,c,s,l){if(t.byteLength%(r*n))throw"pixels length must be a multiple of the srcWidth * srcHeight";e.Fd(this.Ed);var f=t.byteLength/(r*n);c=c||e.AlphaType.Unpremul,s=s||e.ColorType.RGBA_8888,l=l||e.ColorSpace.SRGB;var d=f*r;return f=u(t,"HEAPU8"),r=this._writePixels({width:r,height:n,colorType:s,alphaType:c,colorSpace:l},f,d,a,i),o(f,t),r},e.ColorFilter.MakeBlend=function(t,r,n){return t=l(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=u(t,"HEAPF32"),n=e.ColorFilter._makeMatrix(r);return o(r,t),n},e.ContourMeasure.prototype.getPosTan=function(e,t){return this._getPosTan(e,x),e=v.toTypedArray(),t?(t.set(e),t):e.slice()},e.ImageFilter.prototype.getOutputBounds=function(e,t,r){return e=h(e,x),t=s(t),this._getOutputBounds(e,t,D),t=A.toTypedArray(),r?(r.set(t),r):t.slice()},e.ImageFilter.MakeDropShadow=function(t,r,n,a,o,i){return o=l(o,S),e.ImageFilter._MakeDropShadow(t,r,n,a,o,i)},e.ImageFilter.MakeDropShadowOnly=function(t,r,n,a,o,i){return o=l(o,S),e.ImageFilter._MakeDropShadowOnly(t,r,n,a,o,i)},e.ImageFilter.MakeImage=function(t,r,n,a){if(n=h(n,x),a=h(a,k),"B"in r&&"C"in r)return e.ImageFilter._MakeImageCubic(t,r.B,r.C,n,a);let o=r.filter,i=e.MipmapMode.None;return"mipmap"in r&&(i=r.mipmap),e.ImageFilter._MakeImageOptions(t,o,i,n,a)},e.ImageFilter.MakeMatrixTransform=function(t,r,n){if(t=s(t),"B"in r&&"C"in r)return e.ImageFilter._MakeMatrixTransformCubic(t,r.B,r.C,n);let a=r.filter,o=e.MipmapMode.None;return"mipmap"in r&&(o=r.mipmap),e.ImageFilter._MakeMatrixTransformOptions(t,a,o,n)},e.Paint.prototype.getColor=function(){return this._getColor(S),d(S)},e.Paint.prototype.setColor=function(e,t){t=t||null,e=l(e),this._setColor(e,t)},e.Paint.prototype.setColorComponents=function(e,t,r,n,a){a=a||null,e=f(e,t,r,n),this._setColor(e,a)},e.Path.prototype.getPoint=function(e,t){return this._getPoint(e,x),e=v.toTypedArray(),t?(t[0]=e[0],t[1]=e[1],t):e.slice(0,2)},e.Picture.prototype.makeShader=function(e,t,r,n,a){return n=s(n),a=h(a),this._makeShader(e,t,r,n,a)},e.Picture.prototype.cullRect=function(e){this._cullRect(x);var t=v.toTypedArray();return e?(e.set(t),e):t.slice()},e.PictureRecorder.prototype.beginRecording=function(e,t){return e=h(e),this._beginRecording(e,!!t)},e.Surface.prototype.getCanvas=function(){var e=this._getCanvas();return e.Ed=this.Ed,e},e.Surface.prototype.makeImageSnapshot=function(t){return e.Fd(this.Ed),t=u(t,"HEAP32",D),this._makeImageSnapshot(t)},e.Surface.prototype.makeSurface=function(t){return e.Fd(this.Ed),(t=this._makeSurface(t)).Ed=this.Ed,t},e.Surface.prototype.Oe=function(t,r){return this.ce||(this.ce=this.getCanvas()),requestAnimationFrame(function(){e.Fd(this.Ed),t(this.ce),this.flush(r)}.bind(this))},e.Surface.prototype.requestAnimationFrame||(e.Surface.prototype.requestAnimationFrame=e.Surface.prototype.Oe),e.Surface.prototype.Le=function(t,r){this.ce||(this.ce=this.getCanvas()),requestAnimationFrame(function(){e.Fd(this.Ed),t(this.ce),this.flush(r),this.dispose()}.bind(this))},e.Surface.prototype.drawOnce||(e.Surface.prototype.drawOnce=e.Surface.prototype.Le),e.PathEffect.MakeDash=function(t,r){if(r||(r=0),!t.length||t.length%2===1)throw"Intervals array must have even length";var n=u(t,"HEAPF32");return r=e.PathEffect._MakeDash(n,t.length,r),o(n,t),r},e.PathEffect.MakeLine2D=function(t,r){return r=s(r),e.PathEffect._MakeLine2D(t,r)},e.PathEffect.MakePath2D=function(t,r){return t=s(t),e.PathEffect._MakePath2D(t,r)},e.Shader.MakeColor=function(t,r){return r=r||null,t=l(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,a,i,l,f,d){d=d||null;var h=c(n),p=u(a,"HEAPF32");f=f||0,l=s(l);var y=v.toTypedArray();return y.set(t),y.set(r,2),t=e.Shader._MakeLinearGradient(x,h.Nd,h.colorType,p,h.count,i,f,l,d),o(h.Nd,n),a&&o(p,a),t},e.Shader.MakeRadialGradient=function(t,r,n,a,i,l,f,d){d=d||null;var h=c(n),p=u(a,"HEAPF32");return f=f||0,l=s(l),t=e.Shader._MakeRadialGradient(t[0],t[1],r,h.Nd,h.colorType,p,h.count,i,f,l,d),o(h.Nd,n),a&&o(p,a),t},e.Shader.MakeSweepGradient=function(t,r,n,a,i,l,f,d,h,p){p=p||null;var y=c(n),g=u(a,"HEAPF32");return f=f||0,d=d||0,h=h||360,l=s(l),t=e.Shader._MakeSweepGradient(t,r,y.Nd,y.colorType,g,y.count,i,d,h,f,l,p),o(y.Nd,n),a&&o(g,a),t},e.Shader.MakeTwoPointConicalGradient=function(t,r,n,a,i,l,f,d,h,p){p=p||null;var y=c(i),g=u(l,"HEAPF32");h=h||0,d=s(d);var m=v.toTypedArray();return m.set(t),m.set(n,2),t=e.Shader._MakeTwoPointConicalGradient(x,r,a,y.Nd,y.colorType,g,y.count,f,h,d,p),o(y.Nd,i),l&&o(g,l),t},e.Vertices.prototype.bounds=function(e){this._bounds(x);var t=v.toTypedArray();return e?(e.set(t),e):t.slice()},e.Id&&e.Id.forEach((function(e){e()}))},e.computeTonalColors=function(e){var t=u(e.ambient,"HEAPF32"),r=u(e.spot,"HEAPF32");this._computeTonalColors(t,r);var n={ambient:d(t),spot:d(r)};return o(t,e.ambient),o(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 H,U=null;e.MakeImageFromCanvasImageSource=function(t){var r=t.width,n=t.height;U||(U=document.createElement("canvas")),U.width=r,U.height=n;var a=U.getContext("2d",{willReadFrequently:!0});return a.drawImage(t,0,0),t=a.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 a=e._malloc(r.length);return e.HEAPU8.set(r,a),e._MakeImage(t,a,r.length,n)},e.MakeVertices=function(t,n,a,o,i,c){var s=i&&i.length||0,l=0;return a&&a.length&&(l|=1),o&&o.length&&(l|=2),void 0===c||c||(l|=4),u(n,"HEAPF32",(t=new e._VerticesBuilder(t,n.length/2,s,l)).positions()),t.texCoords()&&u(a,"HEAPF32",t.texCoords()),t.colors()&&u(r(o),"HEAPU32",t.colors()),t.indices()&&u(i,"HEAPU16",t.indices()),t.detach()},(H=i).Id=H.Id||[],H.Id.push((function(){function e(e){return e&&(e.dir=0===e.dir?H.TextDirection.RTL:H.TextDirection.LTR),e}function t(e){if(!e||!e.length)return[];for(var t=[],r=0;r<e.length;r+=5){var n=H.LTRBRect(e[r],e[r+1],e[r+2],e[r+3]),a=H.TextDirection.LTR;0===e[r+4]&&(a=H.TextDirection.RTL),t.push({rect:n,dir:a})}return H._free(e.byteOffset),t}function r(e){return void 0===(e=e||{}).weight&&(e.weight=H.FontWeight.Normal),e.width=e.width||H.FontWidth.Normal,e.slant=e.slant||H.FontSlant.Upright,e}function n(e){if(!e||!e.length)return L;for(var t=[],r=0;r<e.length;r++){var n=a(e[r]);t.push(n)}return u(t,"HEAPU32")}function a(e){if(f[e])return f[e];var t=Qe(e)+1,r=H._malloc(t);return Ke(e,w,r,t),f[e]=r}function i(e){if(e._colorPtr=l(e.color),e._foregroundColorPtr=L,e._backgroundColorPtr=L,e._decorationColorPtr=L,e.foregroundColor&&(e._foregroundColorPtr=l(e.foregroundColor,d)),e.backgroundColor&&(e._backgroundColorPtr=l(e.backgroundColor,h)),e.decorationColor&&(e._decorationColorPtr=l(e.decorationColor,p)),Array.isArray(e.fontFamilies)&&e.fontFamilies.length?(e._fontFamiliesPtr=n(e.fontFamilies),e._fontFamiliesLen=e.fontFamilies.length):(e._fontFamiliesPtr=L,e._fontFamiliesLen=0),e.locale){var t=e.locale;e._localePtr=a(t),e._localeLen=Qe(t)+1}else e._localePtr=L,e._localeLen=0;if(Array.isArray(e.shadows)&&e.shadows.length){var r=(t=e.shadows).map((function(e){return e.color||H.BLACK})),o=t.map((function(e){return e.blurRadius||0}));e._shadowLen=t.length;for(var i=H._malloc(8*t.length),s=i/4,f=0;f<t.length;f++){var y=t[f].offset||[0,0];H.HEAPF32[s]=y[0],H.HEAPF32[s+1]=y[1],s+=2}e._shadowColorsPtr=c(r).Nd,e._shadowOffsetsPtr=i,e._shadowBlurRadiiPtr=u(o,"HEAPF32")}else e._shadowLen=0,e._shadowColorsPtr=L,e._shadowOffsetsPtr=L,e._shadowBlurRadiiPtr=L;Array.isArray(e.fontFeatures)&&e.fontFeatures.length?(r=(t=e.fontFeatures).map((function(e){return e.name})),o=t.map((function(e){return e.value})),e._fontFeatureLen=t.length,e._fontFeatureNamesPtr=n(r),e._fontFeatureValuesPtr=u(o,"HEAPU32")):(e._fontFeatureLen=0,e._fontFeatureNamesPtr=L,e._fontFeatureValuesPtr=L),Array.isArray(e.fontVariations)&&e.fontVariations.length?(r=(t=e.fontVariations).map((function(e){return e.axis})),o=t.map((function(e){return e.value})),e._fontVariationLen=t.length,e._fontVariationAxesPtr=n(r),e._fontVariationValuesPtr=u(o,"HEAPF32")):(e._fontVariationLen=0,e._fontVariationAxesPtr=L,e._fontVariationValuesPtr=L)}function s(e){H._free(e._fontFamiliesPtr),H._free(e._shadowColorsPtr),H._free(e._shadowOffsetsPtr),H._free(e._shadowBlurRadiiPtr),H._free(e._fontFeatureNamesPtr),H._free(e._fontFeatureValuesPtr),H._free(e._fontVariationAxesPtr),H._free(e._fontVariationValuesPtr)}H.Paragraph.prototype.getRectsForRange=function(e,r,n,a){return t(e=this._getRectsForRange(e,r,n,a))},H.Paragraph.prototype.getRectsForPlaceholders=function(){return t(this._getRectsForPlaceholders())},H.Paragraph.prototype.getGlyphInfoAt=function(t){return e(this._getGlyphInfoAt(t))},H.Paragraph.prototype.getClosestGlyphInfoAtCoordinate=function(t,r){return e(this._getClosestGlyphInfoAtCoordinate(t,r))},H.TypefaceFontProvider.prototype.registerFont=function(e,t){if(!(e=H.Typeface.MakeFreeTypeFaceFromData(e)))return null;t=a(t),this._registerFont(e,t)},H.ParagraphStyle=function(e){if(e.disableHinting=e.disableHinting||!1,e.ellipsis){var t=e.ellipsis;e._ellipsisPtr=a(t),e._ellipsisLen=Qe(t)+1}else e._ellipsisPtr=L,e._ellipsisLen=0;return null==e.heightMultiplier&&(e.heightMultiplier=-1),e.maxLines=e.maxLines||0,e.replaceTabCharacters=e.replaceTabCharacters||!1,(t=(t=e.strutStyle)||{}).strutEnabled=t.strutEnabled||!1,t.strutEnabled&&Array.isArray(t.fontFamilies)&&t.fontFamilies.length?(t._fontFamiliesPtr=n(t.fontFamilies),t._fontFamiliesLen=t.fontFamilies.length):(t._fontFamiliesPtr=L,t._fontFamiliesLen=0),t.fontStyle=r(t.fontStyle),null==t.fontSize&&(t.fontSize=-1),null==t.heightMultiplier&&(t.heightMultiplier=-1),t.halfLeading=t.halfLeading||!1,t.leading=t.leading||0,t.forceStrutHeight=t.forceStrutHeight||!1,e.strutStyle=t,e.textAlign=e.textAlign||H.TextAlign.Start,e.textDirection=e.textDirection||H.TextDirection.LTR,e.textHeightBehavior=e.textHeightBehavior||H.TextHeightBehavior.All,e.textStyle=H.TextStyle(e.textStyle),e.applyRoundingHack=!1!==e.applyRoundingHack,e},H.TextStyle=function(e){return e.color||(e.color=H.BLACK),e.decoration=e.decoration||0,e.decorationThickness=e.decorationThickness||0,e.decorationStyle=e.decorationStyle||H.DecorationStyle.Solid,e.textBaseline=e.textBaseline||H.TextBaseline.Alphabetic,null==e.fontSize&&(e.fontSize=-1),e.letterSpacing=e.letterSpacing||0,e.wordSpacing=e.wordSpacing||0,null==e.heightMultiplier&&(e.heightMultiplier=-1),e.halfLeading=e.halfLeading||!1,e.fontStyle=r(e.fontStyle),e};var f={},d=H._malloc(16),h=H._malloc(16),p=H._malloc(16);H.ParagraphBuilder.Make=function(e,t){return i(e.textStyle),t=H.ParagraphBuilder._Make(e,t),s(e.textStyle),t},H.ParagraphBuilder.MakeFromFontProvider=function(e,t){return i(e.textStyle),t=H.ParagraphBuilder._MakeFromFontProvider(e,t),s(e.textStyle),t},H.ParagraphBuilder.MakeFromFontCollection=function(e,t){return i(e.textStyle),t=H.ParagraphBuilder._MakeFromFontCollection(e,t),s(e.textStyle),t},H.ParagraphBuilder.ShapeText=function(e,t,r){let n=0;for(let a of t)n+=a.length;if(n!==e.length)throw"Accumulated block lengths must equal text.length";return H.ParagraphBuilder._ShapeText(e,t,r)},H.ParagraphBuilder.prototype.pushStyle=function(e){i(e),this._pushStyle(e),s(e)},H.ParagraphBuilder.prototype.pushPaintStyle=function(e,t,r){i(e),this._pushPaintStyle(e,t,r),s(e)},H.ParagraphBuilder.prototype.addPlaceholder=function(e,t,r,n,a){r=r||H.PlaceholderAlignment.Baseline,n=n||H.TextBaseline.Alphabetic,this._addPlaceholder(e||0,t||0,r,n,a||0)},H.ParagraphBuilder.prototype.setWordsUtf8=function(e){var t=u(e,"HEAPU32");this._setWordsUtf8(t,e&&e.length||0),o(t,e)},H.ParagraphBuilder.prototype.setWordsUtf16=function(e){var t=u(e,"HEAPU32");this._setWordsUtf16(t,e&&e.length||0),o(t,e)},H.ParagraphBuilder.prototype.setGraphemeBreaksUtf8=function(e){var t=u(e,"HEAPU32");this._setGraphemeBreaksUtf8(t,e&&e.length||0),o(t,e)},H.ParagraphBuilder.prototype.setGraphemeBreaksUtf16=function(e){var t=u(e,"HEAPU32");this._setGraphemeBreaksUtf16(t,e&&e.length||0),o(t,e)},H.ParagraphBuilder.prototype.setLineBreaksUtf8=function(e){var t=u(e,"HEAPU32");this._setLineBreaksUtf8(t,e&&e.length||0),o(t,e)},H.ParagraphBuilder.prototype.setLineBreaksUtf16=function(e){var t=u(e,"HEAPU32");this._setLineBreaksUtf16(t,e&&e.length||0),o(t,e)}})),e.Id=e.Id||[],e.Id.push((function(){e.Path.prototype.op=function(e,t){return this._op(e,t)?this:null},e.Path.prototype.simplify=function(){return this._simplify()?this:null}})),e.Id=e.Id||[],e.Id.push((function(){e.Canvas.prototype.drawText=function(t,r,n,a,o){var i=Qe(t),u=e._malloc(i+1);Ke(t,w,u,i+1),this._drawSimpleText(u,i,r,n,o,a),e._free(u)},e.Canvas.prototype.drawGlyphs=function(t,r,n,a,i,c){if(!(2*t.length<=r.length))throw"Not enough positions for the array of gyphs";e.Fd(this.Ed);let s=u(t,"HEAPU16"),l=u(r,"HEAPF32");this._drawGlyphs(t.length,s,l,n,a,i,c),o(l,r),o(s,t)},e.Font.prototype.getGlyphBounds=function(t,r,n){var a=u(t,"HEAPU16"),i=e._malloc(16*t.length);return this._getGlyphWidthBounds(a,t.length,L,i,r||null),r=new Float32Array(e.HEAPU8.buffer,i,4*t.length),o(a,t),n?(n.set(r),e._free(i),n):(t=Float32Array.from(r),e._free(i),t)},e.Font.prototype.getGlyphIDs=function(t,r,n){r||(r=t.length);var a=Qe(t)+1,o=e._malloc(a);return Ke(t,w,o,a),t=e._malloc(2*r),r=this._getGlyphIDs(o,a-1,r,t),e._free(o),0>r?(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 a=u(e,"HEAPU16"),o=u(t,"HEAPF32");return this._getGlyphIntercepts(a,e.length,!(e&&e._ck),o,t.length,!(t&&t._ck),r,n)},e.Font.prototype.getGlyphWidths=function(t,r,n){var a=u(t,"HEAPU16"),i=e._malloc(4*t.length);return this._getGlyphWidthBounds(a,t.length,i,L,r||null),r=new Float32Array(e.HEAPU8.buffer,i,t.length),o(a,t),n?(n.set(r),e._free(i),n):(t=Float32Array.from(r),e._free(i),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=[],a=0;a<t.length;a++){var o=new Uint8Array(t[a]),i=u(o,"HEAPU8");r.push(i),n.push(o.byteLength)}return r=u(r,"HEAPU32"),n=u(n,"HEAPU32"),t=e.FontMgr._fromData(r,n,t.length),e._free(r),e._free(n),t},e.Typeface.MakeFreeTypeFaceFromData=function(t){var r=u(t=new Uint8Array(t),"HEAPU8");return(t=e.Typeface._MakeFreeTypeFaceFromData(r,t.byteLength))?t:null},e.Typeface.prototype.getGlyphIDs=function(t,r,n){r||(r=t.length);var a=Qe(t)+1,o=e._malloc(a);return Ke(t,w,o,a),t=e._malloc(2*r),r=this._getGlyphIDs(o,a-1,r,t),e._free(o),0>r?(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,a){if(t&&t.length&&r&&r.countPoints()){if(1===r.countPoints())return this.MakeFromText(t,n);a||(a=0);var o=n.getGlyphIDs(t);o=n.getGlyphWidths(o);for(var i=[],u=(r=new e.ContourMeasureIter(r,!1,1)).next(),c=new Float32Array(4),s=0;s<t.length&&u;s++){var l=o[s];if((a+=l/2)>u.length()){if(u.delete(),!(u=r.next())){t=t.substring(0,s);break}a=l/2}u.getPosTan(a,c);var f=c[2],d=c[3];i.push(f,d,c[0]-l/2*f,c[1]-l/2*d),a+=l/2}return t=this.MakeFromRSXform(t,i,n),u&&u.delete(),r.delete(),t}},e.TextBlob.MakeFromRSXform=function(t,r,n){var a=Qe(t)+1,o=e._malloc(a);return Ke(t,w,o,a),t=u(r,"HEAPF32"),n=e.TextBlob._MakeFromRSXform(o,a-1,t,n),e._free(o),n||null},e.TextBlob.MakeFromRSXformGlyphs=function(t,r,n){var a=u(t,"HEAPU16");return r=u(r,"HEAPF32"),n=e.TextBlob._MakeFromRSXformGlyphs(a,2*t.length,r,n),o(a,t),n||null},e.TextBlob.MakeFromGlyphs=function(t,r){var n=u(t,"HEAPU16");return r=e.TextBlob._MakeFromGlyphs(n,2*t.length,r),o(n,t),r||null},e.TextBlob.MakeFromText=function(t,r){var n=Qe(t)+1,a=e._malloc(n);return Ke(t,w,a,n),t=e.TextBlob._MakeFromText(a,n-1,r),e._free(a),t||null},e.MallocGlyphIDs=function(t){return e.Malloc(Uint16Array,t)}})),e.Id=e.Id||[],e.Id.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.Id=e.Id||[],e.Id.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=u(e,"HEAPF32");return t=s(t),this._makeShader(n,4*e.length,r,t)},e.RuntimeEffect.prototype.makeShaderWithChildren=function(e,t,r){var n=!e._ck,a=u(e,"HEAPF32");r=s(r);for(var o=[],i=0;i<t.length;i++)o.push(t[i].Dd.Hd);return t=u(o,"HEAPU32"),this._makeShaderWithChildren(a,4*e.length,n,t,o.length,r)},e.RuntimeEffect.prototype.makeBlender=function(e){var t=!e._ck,r=u(e,"HEAPF32");return this._makeBlender(r,4*e.length,t)}}))}(i);var u,c,s,l=Object.assign({},i),f="./this.program",d="object"==typeof window,h="function"==typeof importScripts,p="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,y="";if(p){var g=a("fs"),m=a("path");y=h?m.dirname(y)+"/":__dirname+"/",u=(e,t)=>(e=e.startsWith("file://")?new URL(e):m.normalize(e),g.readFileSync(e,t?void 0:"utf8")),s=e=>((e=u(e,!0)).buffer||(e=new Uint8Array(e)),e),c=function(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e=e.startsWith("file://")?new URL(e):m.normalize(e),g.readFile(e,n?void 0:"utf8",((e,a)=>{e?r(e):t(n?a.buffer:a)}))},!i.thisProgram&&1<process.argv.length&&(f=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),i.inspect=()=>"[Emscripten Module object]"}else(d||h)&&(h?y=self.location.href:typeof document<"u"&&document.currentScript&&(y=document.currentScript.src),e&&(y=e),y=0!==y.indexOf("blob:")?y.substr(0,y.replace(/[?#].*/,"").lastIndexOf("/")+1):"",u=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},h&&(s=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),c=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)});var v,_=i.print||console.log.bind(console),b=i.printErr||console.error.bind(console);Object.assign(i,l),l=null,i.thisProgram&&(f=i.thisProgram),i.wasmBinary&&(v=i.wasmBinary);i.noExitRuntime;"object"!=typeof WebAssembly&&W("no native wasm support detected");var P,A,E,w,C,T,F,S,x,k,M=!1;function R(){var e=P.buffer;i.HEAP8=E=new Int8Array(e),i.HEAP16=C=new Int16Array(e),i.HEAP32=F=new Int32Array(e),i.HEAPU8=w=new Uint8Array(e),i.HEAPU16=T=new Uint16Array(e),i.HEAPU32=S=new Uint32Array(e),i.HEAPF32=x=new Float32Array(e),i.HEAPF64=k=new Float64Array(e)}var D,I=[],B=[],G=[];function L(){var e=i.preRun.shift();I.unshift(e)}var H,U=0,O=null,j=null;function W(e){throw i.onAbort&&i.onAbort(e),b(e="Aborted("+e+")"),M=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),n(e),e}function V(e){return e.startsWith("data:application/octet-stream;base64,")}if(!V(H="canvaskit.wasm")){var N=H;H=i.locateFile?i.locateFile(N,y):y+N}function $(e){if(e==H&&v)return new Uint8Array(v);if(s)return s(e);throw"both async and sync fetching of the wasm failed"}function Y(e,t,r){return function(e){if(!v&&(d||h)){if("function"==typeof fetch&&!e.startsWith("file://"))return fetch(e,{credentials:"same-origin"}).then((t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()})).catch((()=>$(e)));if(c)return new Promise(((t,r)=>{c(e,(e=>t(new Uint8Array(e))),r)}))}return Promise.resolve().then((()=>$(e)))}(e).then((e=>WebAssembly.instantiate(e,t))).then((e=>e)).then(r,(e=>{b("failed to asynchronously prepare wasm: "+e),W(e)}))}var X=e=>{for(;0<e.length;)e.shift()(i)},q=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,z=(e,t,r)=>{var n=t+r;for(r=t;e[r]&&!(r>=n);)++r;if(16<r-t&&e.buffer&&q)return q.decode(e.subarray(t,r));for(n="";t<r;){var a=e[t++];if(128&a){var o=63&e[t++];if(192==(224&a))n+=String.fromCharCode((31&a)<<6|o);else{var i=63&e[t++];65536>(a=224==(240&a)?(15&a)<<12|o<<6|i:(7&a)<<18|o<<12|i<<6|63&e[t++])?n+=String.fromCharCode(a):(a-=65536,n+=String.fromCharCode(55296|a>>10,56320|1023&a))}}else n+=String.fromCharCode(a)}return n},J={};function K(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function Q(e){return this.fromWireType(F[e>>2])}var Z={},ee={},te={},re=void 0;function ne(e){throw new re(e)}function ae(e,t,r){function n(t){(t=r(t)).length!==e.length&&ne("Mismatched type converter count");for(var n=0;n<e.length;++n)le(e[n],t[n])}e.forEach((function(e){te[e]=t}));var a=Array(t.length),o=[],i=0;t.forEach(((e,t)=>{ee.hasOwnProperty(e)?a[t]=ee[e]:(o.push(e),Z.hasOwnProperty(e)||(Z[e]=[]),Z[e].push((()=>{a[t]=ee[e],++i===o.length&&n(a)})))})),0===o.length&&n(a)}function oe(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: ".concat(e))}}var ie=void 0;function ue(e){for(var t="";w[e];)t+=ie[w[e++]];return t}var ce=void 0;function se(e){throw new ce(e)}function le(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");!function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=t.name;if(e||se('type "'.concat(n,'" must have a positive integer typeid pointer')),ee.hasOwnProperty(e)){if(r.af)return;se("Cannot register type '".concat(n,"' twice"))}ee[e]=t,delete te[e],Z.hasOwnProperty(e)&&(t=Z[e],delete Z[e],t.forEach((e=>e())))}(e,t,r)}function fe(e){se(e.Dd.Jd.Gd.name+" instance already deleted")}var de=!1;function he(){}function pe(e){--e.count.value,0===e.count.value&&(e.Ld?e.Pd.Td(e.Ld):e.Jd.Gd.Td(e.Hd))}function ye(e,t,r){return t===r?e:void 0===r.Md?null:null===(e=ye(e,t,r.Md))?null:r.Te(e)}var ge={},me=[];function ve(){for(;me.length;){var e=me.pop();e.Dd.$d=!1,e.delete()}}var _e=void 0,be={};function Pe(e,t){return t.Jd&&t.Hd||ne("makeClassHandle requires ptr and ptrType"),!!t.Pd!=!!t.Ld&&ne("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Ae(Object.create(e,{Dd:{value:t}}))}function Ae(e){return typeof FinalizationRegistry>"u"?(Ae=e=>e,e):(de=new FinalizationRegistry((e=>{pe(e.Dd)})),he=e=>{de.unregister(e)},(Ae=e=>{var t=e.Dd;return t.Ld&&de.register(e,{Dd:t},e),e})(e))}function Ee(){}function we(e){if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=t&&57>=t?"_".concat(e):e}function Ce(e,t){return{[e=we(e)]:function(){return t.apply(this,arguments)}}[e]}function Te(e,t,r){if(void 0===e[t].Kd){var n=e[t];e[t]=function(){return e[t].Kd.hasOwnProperty(arguments.length)||se("Function '".concat(r,"' called with an invalid number of arguments (").concat(arguments.length,") - expects one of (").concat(e[t].Kd,")!")),e[t].Kd[arguments.length].apply(this,arguments)},e[t].Kd=[],e[t].Kd[n.Yd]=n}}function Fe(e,t,r){i.hasOwnProperty(e)?((void 0===r||void 0!==i[e].Kd&&void 0!==i[e].Kd[r])&&se("Cannot register public name '".concat(e,"' twice")),Te(i,e,e),i.hasOwnProperty(r)&&se("Cannot register multiple overloads of a function with the same number of arguments (".concat(r,")!")),i[e].Kd[r]=t):(i[e]=t,void 0!==r&&(i[e].sf=r))}function Se(e,t,r,n,a,o,i,u){this.name=e,this.constructor=t,this.ae=r,this.Td=n,this.Md=a,this.We=o,this.ge=i,this.Te=u,this.ef=[]}function xe(e,t,r){for(;t!==r;)t.ge||se("Expected null or instance of ".concat(r.name,", got an instance of ").concat(t.name)),e=t.ge(e),t=t.Md;return e}function ke(e,t){return null===t?(this.ue&&se("null is not a valid ".concat(this.name)),0):(t.Dd||se('Cannot pass "'.concat(qe(t),'" as a ').concat(this.name)),t.Dd.Hd||se("Cannot pass deleted object as a pointer of type ".concat(this.name)),xe(t.Dd.Hd,t.Dd.Jd.Gd,this.Gd))}function Me(e,t){if(null===t){if(this.ue&&se("null is not a valid ".concat(this.name)),this.le){var r=this.ve();return null!==e&&e.push(this.Td,r),r}return 0}if(t.Dd||se('Cannot pass "'.concat(qe(t),'" as a ').concat(this.name)),t.Dd.Hd||se("Cannot pass deleted object as a pointer of type ".concat(this.name)),!this.ke&&t.Dd.Jd.ke&&se("Cannot convert argument of type ".concat(t.Dd.Pd?t.Dd.Pd.name:t.Dd.Jd.name," to parameter type ").concat(this.name)),r=xe(t.Dd.Hd,t.Dd.Jd.Gd,this.Gd),this.le)switch(void 0===t.Dd.Ld&&se("Passing raw pointer to smart pointer is illegal"),this.kf){case 0:t.Dd.Pd===this?r=t.Dd.Ld:se("Cannot convert argument of type ".concat(t.Dd.Pd?t.Dd.Pd.name:t.Dd.Jd.name," to parameter type ").concat(this.name));break;case 1:r=t.Dd.Ld;break;case 2:if(t.Dd.Pd===this)r=t.Dd.Ld;else{var n=t.clone();r=this.ff(r,$e((function(){n.delete()}))),null!==e&&e.push(this.Td,r)}break;default:se("Unsupporting sharing policy")}return r}function Re(e,t){return null===t?(this.ue&&se("null is not a valid ".concat(this.name)),0):(t.Dd||se('Cannot pass "'.concat(qe(t),'" as a ').concat(this.name)),t.Dd.Hd||se("Cannot pass deleted object as a pointer of type ".concat(this.name)),t.Dd.Jd.ke&&se("Cannot convert argument of type ".concat(t.Dd.Jd.name," to parameter type ").concat(this.name)),xe(t.Dd.Hd,t.Dd.Jd.Gd,this.Gd))}function De(e,t,r,n,a,o,i,u,c,s,l){this.name=e,this.Gd=t,this.ue=r,this.ke=n,this.le=a,this.df=o,this.kf=i,this.Ee=u,this.ve=c,this.ff=s,this.Td=l,a||void 0!==t.Md?this.toWireType=Me:(this.toWireType=n?ke:Re,this.Od=null)}function Ie(e,t,r){i.hasOwnProperty(e)||ne("Replacing nonexistant public symbol"),void 0!==i[e].Kd&&void 0!==r?i[e].Kd[r]=t:(i[e]=t,i[e].Yd=r)}function Be(e,t){var r=(e=ue(e)).includes("j")?((e,t)=>{var r=[];return function(){if(r.length=0,Object.assign(r,arguments),e.includes("j")){var n=i["dynCall_"+e];n=r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)}else n=D.get(t).apply(null,r);return n}})(e,t):D.get(t);return"function"!=typeof r&&se("unknown function pointer with signature ".concat(e,": ").concat(t)),r}var Ge=void 0;function Le(e){var t=ue(e=cr(e));return ir(e),t}function He(e,t){var r=[],n={};throw t.forEach((function e(t){n[t]||ee[t]||(te[t]?te[t].forEach(e):(r.push(t),n[t]=!0))})),new Ge("".concat(e,": ")+r.map(Le).join([", "]))}function Ue(e,t,r,n,a){var o=t.length;2>o&&se("argTypes array size mismatch! Must at least get return value and 'this' types!");var i=null!==t[1]&&null!==r,u=!1;for(r=1;r<t.length;++r)if(null!==t[r]&&void 0===t[r].Od){u=!0;break}var c="void"!==t[0].name,s=o-2,l=Array(s),f=[],d=[];return function(){if(arguments.length!==s&&se("function ".concat(e," called with ").concat(arguments.length," arguments, expected ").concat(s," args!")),d.length=0,f.length=i?2:1,f[0]=a,i){var r=t[1].toWireType(d,this);f[1]=r}for(var o=0;o<s;++o)l[o]=t[o+2].toWireType(d,arguments[o]),f.push(l[o]);if(o=n.apply(null,f),u)K(d);else for(var h=i?1:2;h<t.length;h++){var p=1===h?r:l[h-2];null!==t[h].Od&&t[h].Od(p)}return r=c?t[0].fromWireType(o):void 0}}function Oe(e,t){for(var r=[],n=0;n<e;n++)r.push(S[t+4*n>>2]);return r}function je(){this.Sd=[void 0],this.Ce=[]}var We=new je;function Ve(e){e>=We.be&&0===--We.get(e).Fe&&We.Je(e)}var Ne=e=>(e||se("Cannot use deleted val. handle = "+e),We.get(e).value),$e=e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return We.Ie({Fe:1,value:e})}};function Ye(e,t,r){switch(t){case 0:return function(e){return this.fromWireType((r?E:w)[e])};case 1:return function(e){return this.fromWireType((r?C:T)[e>>1])};case 2:return function(e){return this.fromWireType((r?F:S)[e>>2])};default:throw new TypeError("Unknown integer type: "+e)}}function Xe(e,t){var r=ee[e];return void 0===r&&se(t+" has unknown type "+Le(e)),r}function qe(e){if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e}function ze(e,t){switch(t){case 2:return function(e){return this.fromWireType(x[e>>2])};case 3:return function(e){return this.fromWireType(k[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function Je(e,t,r){switch(t){case 0:return r?function(e){return E[e]}:function(e){return w[e]};case 1:return r?function(e){return C[e>>1]}:function(e){return T[e>>1]};case 2:return r?function(e){return F[e>>2]}:function(e){return S[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}var Ke=(e,t,r,n)=>{if(!(0<n))return 0;var a=r;n=r+n-1;for(var o=0;o<e.length;++o){var i=e.charCodeAt(o);if(55296<=i&&57343>=i)i=65536+((1023&i)<<10)|1023&e.charCodeAt(++o);if(127>=i){if(r>=n)break;t[r++]=i}else{if(2047>=i){if(r+1>=n)break;t[r++]=192|i>>6}else{if(65535>=i){if(r+2>=n)break;t[r++]=224|i>>12}else{if(r+3>=n)break;t[r++]=240|i>>18,t[r++]=128|i>>12&63}t[r++]=128|i>>6&63}t[r++]=128|63&i}}return t[r]=0,r-a},Qe=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);127>=n?t++:2047>=n?t+=2:55296<=n&&57343>=n?(t+=4,++r):t+=3}return t},Ze=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,et=(e,t)=>{for(var r=e>>1,n=r+t/2;!(r>=n)&&T[r];)++r;if(32<(r<<=1)-e&&Ze)return Ze.decode(w.subarray(e,r));for(r="",n=0;!(n>=t/2);++n){var a=C[e+2*n>>1];if(0==a)break;r+=String.fromCharCode(a)}return r},tt=(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 a=0;a<r;++a)C[t>>1]=e.charCodeAt(a),t+=2;return C[t>>1]=0,t-n},rt=e=>2*e.length,nt=(e,t)=>{for(var r=0,n="";!(r>=t/4);){var a=F[e+4*r>>2];if(0==a)break;++r,65536<=a?(a-=65536,n+=String.fromCharCode(55296|a>>10,56320|1023&a)):n+=String.fromCharCode(a)}return n},at=(e,t,r)=>{if(void 0===r&&(r=2147483647),4>r)return 0;var n=t;r=n+r-4;for(var a=0;a<e.length;++a){var o=e.charCodeAt(a);if(55296<=o&&57343>=o)o=65536+((1023&o)<<10)|1023&e.charCodeAt(++a);if(F[t>>2]=o,(t+=4)+4>r)break}return F[t>>2]=0,t-n},ot=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);55296<=n&&57343>=n&&++r,t+=4}return t},it={};function ut(e){var t=it[e];return void 0===t?ue(e):t}var ct=[];function st(){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$$$||("object"==typeof global&&e(global)?$$$embind_global$$$=global:"object"==typeof self&&e(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$))return $$$embind_global$$$;throw Error("unable to get global object.")}var lt=[];var ft={};var dt=1,ht=[],pt=[],yt=[],gt=[],mt=[],vt=[],_t=[],bt=[],Pt=[],At=[],Et={},wt={},Ct=4;function Tt(e){kt||(kt=e)}function Ft(e){for(var t=dt++,r=e.length;r<t;r++)e[r]=null;return t}function St(e){return xt=bt[e],i.qf=tr=xt&&xt.Qd,!(e&&!tr)}var xt,kt,Mt,Rt={},Dt=()=>{if(!Mt){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",_:f||"./this.program"};for(e in Rt)void 0===Rt[e]?delete t[e]:t[e]=Rt[e];var r=[];for(e in t)r.push("".concat(e,"=").concat(t[e]));Mt=r}return Mt},It=[null,[],[]];function Bt(e){tr.bindVertexArray(_t[e])}function Gt(e,t){for(var r=0;r<e;r++){var n=F[t+4*r>>2];tr.deleteVertexArray(_t[n]),_t[n]=null}}var Lt=[];function Ht(e,t,r,n){tr.drawElements(e,t,r,n)}function Ut(e,t,r,n){for(var a=0;a<e;a++){var o=tr[r](),i=o&&Ft(n);o?(o.name=i,n[i]=o):Tt(1282),F[t+4*a>>2]=i}}function Ot(e,t){Ut(e,t,"createVertexArray",_t)}function jt(e,t,r){if(t){var n=void 0;switch(e){case 36346:n=1;break;case 36344:return void(0!=r&&1!=r&&Tt(1280));case 34814:case 36345:n=0;break;case 34466:var a=tr.getParameter(34467);n=a?a.length:0;break;case 33309:if(2>xt.version)return void Tt(1282);n=2*(tr.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(2>xt.version)return void Tt(1280);n=33307==e?3:0}if(void 0===n)switch(a=tr.getParameter(e),typeof a){case"number":n=a;break;case"boolean":n=a?1:0;break;case"string":return void Tt(1280);case"object":if(null===a)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 Tt(1280)}else{if(a instanceof Float32Array||a instanceof Uint32Array||a instanceof Int32Array||a instanceof Array){for(e=0;e<a.length;++e)switch(r){case 0:F[t+4*e>>2]=a[e];break;case 2:x[t+4*e>>2]=a[e];break;case 4:E[t+e>>0]=a[e]?1:0}return}try{n=0|a.name}catch(o){return Tt(1280),void b("GL_INVALID_ENUM in glGet"+r+"v: Unknown object returned from WebGL getParameter("+e+")! (error: "+o+")")}}break;default:return Tt(1280),void b("GL_INVALID_ENUM in glGet"+r+"v: Native code calling glGet"+r+"v("+e+") and it returns "+a+" of type "+typeof a+"!")}switch(r){case 1:r=n,S[t>>2]=r,S[t+4>>2]=(r-S[t>>2])/4294967296;break;case 0:F[t>>2]=n;break;case 2:x[t>>2]=n;break;case 4:E[t>>0]=n?1:0}}else Tt(1281)}var Wt=e=>{var t=Qe(e)+1,r=ur(t);return r&&Ke(e,w,r,t),r};function Vt(e){return"]"==e.slice(-1)&&e.lastIndexOf("[")}function Nt(e){return 0==(e-=5120)?E:1==e?w:2==e?C:4==e?F:6==e?x:5==e||28922==e||28520==e||30779==e||30782==e?S:T}function $t(e,t,r,n,a){e=Nt(e);var o=31-Math.clz32(e.BYTES_PER_ELEMENT),i=Ct;return e.subarray(a>>o,a+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)+i-1&-i)>>o)}function Yt(e){var t=tr.Re;if(t){var r=t.fe[e];return"number"==typeof r&&(t.fe[e]=r=tr.getUniformLocation(t,t.Ge[e]+(0<r?"["+r+"]":""))),r}Tt(1282)}var Xt=[],qt=[],zt=e=>e%4===0&&(e%100!==0||e%400===0),Jt=[31,29,31,30,31,30,31,31,30,31,30,31],Kt=[31,28,31,30,31,30,31,31,30,31,30,31];var Qt=(e,t,r,n)=>{function a(e,t,r){for(e="number"==typeof e?e.toString():e||"";e.length<t;)e=r[0]+e;return e}function o(e,t){return a(e,t,"0")}function i(e,t){function r(e){return 0>e?-1:0<e?1:0}var n;return 0===(n=r(e.getFullYear()-t.getFullYear()))&&0===(n=r(e.getMonth()-t.getMonth()))&&(n=r(e.getDate()-t.getDate())),n}function u(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function c(e){var t=e.Vd;for(e=new Date(new Date(e.Wd+1900,0,1).getTime());0<t;){var r=e.getMonth(),n=(zt(e.getFullYear())?Jt:Kt)[r];if(!(t>n-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=u(new Date(e.getFullYear(),0,4)),r=u(r),0>=i(t,e)?0>=i(r,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var s=F[n+40>>2];for(var l in n={nf:F[n>>2],mf:F[n+4>>2],pe:F[n+8>>2],we:F[n+12>>2],qe:F[n+16>>2],Wd:F[n+20>>2],Rd:F[n+24>>2],Vd:F[n+28>>2],uf:F[n+32>>2],lf:F[n+36>>2],pf:s&&s?z(w,s):""},r=r?z(w,r):"",s={"%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(l,"g"),s[l]);var f="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),d="January February March April May June July August September October November December".split(" ");for(l in s={"%a":e=>f[e.Rd].substring(0,3),"%A":e=>f[e.Rd],"%b":e=>d[e.qe].substring(0,3),"%B":e=>d[e.qe],"%C":e=>o((e.Wd+1900)/100|0,2),"%d":e=>o(e.we,2),"%e":e=>a(e.we,2," "),"%g":e=>c(e).toString().substring(2),"%G":e=>c(e),"%H":e=>o(e.pe,2),"%I":e=>(0==(e=e.pe)?e=12:12<e&&(e-=12),o(e,2)),"%j":e=>{for(var t=0,r=0;r<=e.qe-1;t+=(zt(e.Wd+1900)?Jt:Kt)[r++]);return o(e.we+t,3)},"%m":e=>o(e.qe+1,2),"%M":e=>o(e.mf,2),"%n":()=>"\n","%p":e=>0<=e.pe&&12>e.pe?"AM":"PM","%S":e=>o(e.nf,2),"%t":()=>"\t","%u":e=>e.Rd||7,"%U":e=>o(Math.floor((e.Vd+7-e.Rd)/7),2),"%V":e=>{var t=Math.floor((e.Vd+7-(e.Rd+6)%7)/7);if(2>=(e.Rd+371-e.Vd-2)%7&&t++,t)53==t&&(4==(r=(e.Rd+371-e.Vd)%7)||3==r&&zt(e.Wd)||(t=1));else{t=52;var r=(e.Rd+7-e.Vd-1)%7;(4==r||5==r&&zt(e.Wd%400-1))&&t++}return o(t,2)},"%w":e=>e.Rd,"%W":e=>o(Math.floor((e.Vd+7-(e.Rd+6)%7)/7),2),"%y":e=>(e.Wd+1900).toString().substring(2),"%Y":e=>e.Wd+1900,"%z":e=>{var t=0<=(e=e.lf);return e=Math.abs(e)/60,(t?"+":"-")+String("0000"+(e/60*100+e%60)).slice(-4)},"%Z":e=>e.pf,"%%":()=>"%"},r=r.replace(/%%/g,"\0\0"),s)r.includes(l)&&(r=r.replace(new RegExp(l,"g"),s[l](n)));return l=function(e){var t=Array(Qe(e)+1);return Ke(e,t,0,t.length),t}(r=r.replace(/\0\0/g,"%")),l.length>t?0:(E.set(l,e),l.length-1)};re=i.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}};for(var Zt=Array(256),er=0;256>er;++er)Zt[er]=String.fromCharCode(er);ie=Zt,ce=i.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Ee.prototype.isAliasOf=function(e){if(!(this instanceof Ee&&e instanceof Ee))return!1;var t=this.Dd.Jd.Gd,r=this.Dd.Hd,n=e.Dd.Jd.Gd;for(e=e.Dd.Hd;t.Md;)r=t.ge(r),t=t.Md;for(;n.Md;)e=n.ge(e),n=n.Md;return t===n&&r===e},Ee.prototype.clone=function(){if(this.Dd.Hd||fe(this),this.Dd.ee)return this.Dd.count.value+=1,this;var e=Ae,t=Object,r=t.create,n=Object.getPrototypeOf(this),a=this.Dd;return(e=e(r.call(t,n,{Dd:{value:{count:a.count,$d:a.$d,ee:a.ee,Hd:a.Hd,Jd:a.Jd,Ld:a.Ld,Pd:a.Pd}}}))).Dd.count.value+=1,e.Dd.$d=!1,e},Ee.prototype.delete=function(){this.Dd.Hd||fe(this),this.Dd.$d&&!this.Dd.ee&&se("Object already scheduled for deletion"),he(this),pe(this.Dd),this.Dd.ee||(this.Dd.Ld=void 0,this.Dd.Hd=void 0)},Ee.prototype.isDeleted=function(){return!this.Dd.Hd},Ee.prototype.deleteLater=function(){return this.Dd.Hd||fe(this),this.Dd.$d&&!this.Dd.ee&&se("Object already scheduled for deletion"),me.push(this),1===me.length&&_e&&_e(ve),this.Dd.$d=!0,this},i.getInheritedInstanceCount=function(){return Object.keys(be).length},i.getLiveInheritedInstances=function(){var e,t=[];for(e in be)be.hasOwnProperty(e)&&t.push(be[e]);return t},i.flushPendingDeletes=ve,i.setDelayFunction=function(e){_e=e,me.length&&_e&&_e(ve)},De.prototype.Xe=function(e){return this.Ee&&(e=this.Ee(e)),e},De.prototype.ye=function(e){this.Td&&this.Td(e)},De.prototype.argPackAdvance=8,De.prototype.readValueFromPointer=Q,De.prototype.deleteObject=function(e){null!==e&&e.delete()},De.prototype.fromWireType=function(e){function t(){return this.le?Pe(this.Gd.ae,{Jd:this.df,Hd:r,Pd:this,Ld:e}):Pe(this.Gd.ae,{Jd:this,Hd:e})}var r=this.Xe(e);if(!r)return this.ye(e),null;var n=function(e,t){for(void 0===t&&se("ptr should not be undefined");e.Md;)t=e.ge(t),e=e.Md;return be[t]}(this.Gd,r);if(void 0!==n)return 0===n.Dd.count.value?(n.Dd.Hd=r,n.Dd.Ld=e,n.clone()):(n=n.clone(),this.ye(e),n);if(n=this.Gd.We(r),!(n=ge[n]))return t.call(this);n=this.ke?n.Qe:n.pointerType;var a=ye(r,this.Gd,n.Gd);return null===a?t.call(this):this.le?Pe(n.Gd.ae,{Jd:n,Hd:a,Pd:this,Ld:e}):Pe(n.Gd.ae,{Jd:n,Hd:a})},Ge=i.UnboundTypeError=function(e,t){var r=Ce(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:"".concat(this.name,": ").concat(this.message)},r}(Error,"UnboundTypeError"),Object.assign(je.prototype,{get(e){return this.Sd[e]},has(e){return void 0!==this.Sd[e]},Ie(e){var t=this.Ce.pop()||this.Sd.length;return this.Sd[t]=e,t},Je(e){this.Sd[e]=void 0,this.Ce.push(e)}}),We.Sd.push({value:void 0},{value:null},{value:!0},{value:!1}),We.be=We.Sd.length,i.count_emval_handles=function(){for(var e=0,t=We.be;t<We.Sd.length;++t)void 0!==We.Sd[t]&&++e;return e};for(var tr,rr=0;32>rr;++rr)Lt.push(Array(rr));var nr=new Float32Array(288);for(rr=0;288>rr;++rr)Xt[rr]=nr.subarray(0,rr+1);var ar=new Int32Array(288);for(rr=0;288>rr;++rr)qt[rr]=ar.subarray(0,rr+1);var or={Q:function(){return 0},Ab:()=>{},Cb:function(){return 0},xb:()=>{},yb:()=>{},R:function(){},zb:()=>{},v:function(e){var t=J[e];delete J[e];var r=t.ve,n=t.Td,a=t.Be;ae([e],a.map((e=>e.$e)).concat(a.map((e=>e.hf))),(e=>{var o={};return a.forEach(((t,r)=>{var n=e[r],i=t.Ye,u=t.Ze,c=e[r+a.length],s=t.gf,l=t.jf;o[t.Ve]={read:e=>n.fromWireType(i(u,e)),write:(e,t)=>{var r=[];s(l,e,c.toWireType(r,t)),K(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 a in o)if(!(a in t))throw new TypeError('Missing field: "'.concat(a,'"'));var i=r();for(a in o)o[a].write(i,t[a]);return null!==e&&e.push(n,i),i},argPackAdvance:8,readValueFromPointer:Q,Od:n}]}))},pb:function(){},Gb:function(e,t,r,n,a){var o=oe(r);le(e,{name:t=ue(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?n:a},argPackAdvance:8,readValueFromPointer:function(e){if(1===r)var n=E;else if(2===r)n=C;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+t);n=F}return this.fromWireType(n[e>>o])},Od:null})},k:function(e,t,r,n,a,o,i,u,c,s,l,f,d){l=ue(l),o=Be(a,o),u&&(u=Be(i,u)),s&&(s=Be(c,s)),d=Be(f,d);var h=we(l);Fe(h,(function(){He("Cannot construct ".concat(l," due to unbound types"),[n])})),ae([e,t,r],n?[n]:[],(function(t){if(t=t[0],n)var r=t.Gd,a=r.ae;else a=Ee.prototype;t=Ce(h,(function(){if(Object.getPrototypeOf(this)!==i)throw new ce("Use 'new' to construct "+l);if(void 0===c.Ud)throw new ce(l+" has no accessible constructor");var e=c.Ud[arguments.length];if(void 0===e)throw new ce("Tried to invoke ctor of ".concat(l," with invalid number of parameters (").concat(arguments.length,") - expected (").concat(Object.keys(c.Ud).toString(),") parameters instead!"));return e.apply(this,arguments)}));var i=Object.create(a,{constructor:{value:t}});t.prototype=i;var c=new Se(l,t,i,d,r,o,u,s);c.Md&&(void 0===c.Md.he&&(c.Md.he=[]),c.Md.he.push(c)),r=new De(l,c,!0,!1,!1),a=new De(l+"*",c,!1,!1,!1);var f=new De(l+" const*",c,!1,!0,!1);return ge[e]={pointerType:a,Qe:f},Ie(h,t),[r,a,f]}))},f:function(e,t,r,n,a,o,i){var u=Oe(r,n);t=ue(t),o=Be(a,o),ae([],[e],(function(e){function n(){He("Cannot call ".concat(a," due to unbound types"),u)}e=e[0];var a="".concat(e.name,".").concat(t);t.startsWith("@@")&&(t=Symbol[t.substring(2)]);var c=e.Gd.constructor;return void 0===c[t]?(n.Yd=r-1,c[t]=n):(Te(c,t,a),c[t].Kd[r-1]=n),ae([],u,(function(n){if(n=[n[0],null].concat(n.slice(1)),n=Ue(a,n,null,o,i),void 0===c[t].Kd?(n.Yd=r-1,c[t]=n):c[t].Kd[r-1]=n,e.Gd.he)for(let r of e.Gd.he)r.constructor.hasOwnProperty(t)||(r.constructor[t]=n);return[]})),[]}))},t:function(e,t,r,n,a,o){var i=Oe(t,r);a=Be(n,a),ae([],[e],(function(e){e=e[0];var r="constructor ".concat(e.name);if(void 0===e.Gd.Ud&&(e.Gd.Ud=[]),void 0!==e.Gd.Ud[t-1])throw new ce("Cannot register multiple constructors with identical number of parameters (".concat(t-1,") for class '").concat(e.name,"'! Overload resolution is currently only performed using the parameter count, not actual type info!"));return e.Gd.Ud[t-1]=()=>{He("Cannot construct ".concat(e.name," due to unbound types"),i)},ae([],i,(function(n){return n.splice(1,0,null),e.Gd.Ud[t-1]=Ue(r,n,null,a,o),[]})),[]}))},b:function(e,t,r,n,a,o,i,u){var c=Oe(r,n);t=ue(t),o=Be(a,o),ae([],[e],(function(e){function n(){He("Cannot call ".concat(a," due to unbound types"),c)}e=e[0];var a="".concat(e.name,".").concat(t);t.startsWith("@@")&&(t=Symbol[t.substring(2)]),u&&e.Gd.ef.push(t);var s=e.Gd.ae,l=s[t];return void 0===l||void 0===l.Kd&&l.className!==e.name&&l.Yd===r-2?(n.Yd=r-2,n.className=e.name,s[t]=n):(Te(s,t,a),s[t].Kd[r-2]=n),ae([],c,(function(n){return n=Ue(a,n,e,o,i),void 0===s[t].Kd?(n.Yd=r-2,s[t]=n):s[t].Kd[r-2]=n,[]})),[]}))},o:function(e,t,r){e=ue(e),ae([],[t],(function(t){return t=t[0],i[e]=t.fromWireType(r),[]}))},Fb:function(e,t){le(e,{name:t=ue(t),fromWireType:function(e){var t=Ne(e);return Ve(e),t},toWireType:function(e,t){return $e(t)},argPackAdvance:8,readValueFromPointer:Q,Od:null})},j:function(e,t,r,n){function a(){}r=oe(r),t=ue(t),a.values={},le(e,{name:t,constructor:a,fromWireType:function(e){return this.constructor.values[e]},toWireType:function(e,t){return t.value},argPackAdvance:8,readValueFromPointer:Ye(t,r,n),Od:null}),Fe(t,a)},c:function(e,t,r){var n=Xe(e,"enum");t=ue(t),e=n.constructor,n=Object.create(n.constructor.prototype,{value:{value:r},constructor:{value:Ce("".concat(n.name,"_").concat(t),(function(){}))}}),e.values[r]=n,e[t]=n},T:function(e,t,r){r=oe(r),le(e,{name:t=ue(t),fromWireType:function(e){return e},toWireType:function(e,t){return t},argPackAdvance:8,readValueFromPointer:ze(t,r),Od:null})},r:function(e,t,r,n,a,o){var i=Oe(t,r);e=ue(e),a=Be(n,a),Fe(e,(function(){He("Cannot call ".concat(e," due to unbound types"),i)}),t-1),ae([],i,(function(r){return r=[r[0],null].concat(r.slice(1)),Ie(e,Ue(e,r,null,a,o),t-1),[]}))},x:function(e,t,r,n,a){t=ue(t),-1===a&&(a=4294967295),a=oe(r);var o=e=>e;if(0===n){var i=32-8*r;o=e=>e<<i>>>i}r=t.includes("unsigned")?function(e,t){return t>>>0}:function(e,t){return t},le(e,{name:t,fromWireType:o,toWireType:r,argPackAdvance:8,readValueFromPointer:Je(t,a,0!==n),Od:null})},n:function(e,t,r){function n(e){e>>=2;var t=S;return new a(t.buffer,t[e+1],t[e])}var a=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];le(e,{name:r=ue(r),fromWireType:n,argPackAdvance:8,readValueFromPointer:n},{af:!0})},m:function(e,t,r,n,a,o,i,u,c,s,l,f){r=ue(r),o=Be(a,o),u=Be(i,u),s=Be(c,s),f=Be(l,f),ae([e],[t],(function(e){return e=e[0],[new De(r,e.Gd,!1,!1,!0,e,n,o,u,s,f)]}))},S:function(e,t){var r="std::string"===(t=ue(t));le(e,{name:t,fromWireType:function(e){var t=S[e>>2],n=e+4;if(r)for(var a=n,o=0;o<=t;++o){var i=n+o;if(o==t||0==w[i]){if(a=a?z(w,a,i-a):"",void 0===u)var u=a;else u+=String.fromCharCode(0),u+=a;a=i+1}}else{for(u=Array(t),o=0;o<t;++o)u[o]=String.fromCharCode(w[n+o]);u=u.join("")}return ir(e),u},toWireType:function(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n="string"==typeof t;n||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||se("Cannot pass non-string to std::string");var a=r&&n?Qe(t):t.length,o=ur(4+a+1),i=o+4;if(S[o>>2]=a,r&&n)Ke(t,w,i,a+1);else if(n)for(n=0;n<a;++n){var u=t.charCodeAt(n);255<u&&(ir(i),se("String has UTF-16 code units that do not fit in 8 bits")),w[i+n]=u}else for(n=0;n<a;++n)w[i+n]=t[n];return null!==e&&e.push(ir,o),o},argPackAdvance:8,readValueFromPointer:Q,Od:function(e){ir(e)}})},K:function(e,t,r){if(r=ue(r),2===t)var n=et,a=tt,o=rt,i=()=>T,u=1;else 4===t&&(n=nt,a=at,o=ot,i=()=>S,u=2);le(e,{name:r,fromWireType:function(e){for(var r,a=S[e>>2],o=i(),c=e+4,s=0;s<=a;++s){var l=e+4+s*t;(s==a||0==o[l>>u])&&(c=n(c,l-c),void 0===r?r=c:(r+=String.fromCharCode(0),r+=c),c=l+t)}return ir(e),r},toWireType:function(e,n){"string"!=typeof n&&se("Cannot pass non-string to C++ string type ".concat(r));var i=o(n),c=ur(4+i+t);return S[c>>2]=i>>u,a(n,c+4,i+t),null!==e&&e.push(ir,c),c},argPackAdvance:8,readValueFromPointer:Q,Od:function(e){ir(e)}})},w:function(e,t,r,n,a,o){J[e]={name:ue(t),ve:Be(r,n),Td:Be(a,o),Be:[]}},e:function(e,t,r,n,a,o,i,u,c,s){J[e].Be.push({Ve:ue(t),$e:r,Ye:Be(n,a),Ze:o,hf:i,gf:Be(u,c),jf:s})},Hb:function(e,t){le(e,{cf:!0,name:t=ue(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},Eb:()=>!0,tb:()=>{throw 1/0},y:function(e,t,r){e=Ne(e),t=Xe(t,"emval::as");var n=[],a=$e(n);return S[r>>2]=a,t.toWireType(n,e)},Y:function(e,t,r,n,a){e=ct[e],t=Ne(t),r=ut(r);var o=[];return S[n>>2]=$e(o),e(t,r,o,a)},q:function(e,t,r,n){(e=ct[e])(t=Ne(t),r=ut(r),null,n)},d:Ve,H:function(e){return 0===e?$e(st()):(e=ut(e),$e(st()[e]))},p:function(e,t){var r=function(e,t){for(var r=Array(e),n=0;n<e;++n)r[n]=Xe(S[t+4*n>>2],"parameter "+n);return r}(e,t),n=r[0];t=n.name+"_$"+r.slice(1).map((function(e){return e.name})).join("_")+"$";var a=lt[t];if(void 0!==a)return a;var o=Array(e-1);return a=function(e){var t=ct.length;return ct.push(e),t}(((t,a,i,u)=>{for(var c=0,s=0;s<e-1;++s)o[s]=r[s+1].readValueFromPointer(u+c),c+=r[s+1].argPackAdvance;for(t=t[a].apply(t,o),s=0;s<e-1;++s)r[s+1].Se&&r[s+1].Se(o[s]);if(!n.cf)return n.toWireType(i,t)})),lt[t]=a},s:function(e,t){return e=Ne(e),t=Ne(t),$e(e[t])},l:function(e){4<e&&(We.get(e).Fe+=1)},G:function(e,t,r,n){e=Ne(e);var a=ft[t];return a||(a=function(e){var t=Array(e+1);return function(r,n,a){t[0]=r;for(var o=0;o<e;++o){var i=Xe(S[n+4*o>>2],"parameter "+o);t[o+1]=i.readValueFromPointer(a),a+=i.argPackAdvance}return r=new(r.bind.apply(r,t)),$e(r)}}(t),ft[t]=a),a(e,r,n)},C:function(){return $e([])},g:function(e){return $e(ut(e))},z:function(){return $e({})},jb:function(e){return!(e=Ne(e))},u:function(e){K(Ne(e)),Ve(e)},i:function(e,t,r){e=Ne(e),t=Ne(t),r=Ne(r),e[t]=r},h:function(e,t){return e=(e=Xe(e,"_emval_take_value")).readValueFromPointer(t),$e(e)},mb:function(){return-52},nb:function(){},a:()=>{W("")},Db:()=>performance.now(),ub:e=>{var t=w.length;if(2147483648<(e>>>=0))return!1;for(var r=1;4>=r;r*=2){var n=t*(1+.2/r);n=Math.min(n,e+100663296);var a=Math;n=Math.max(e,n);e:{a=a.min.call(a,2147483648,n+(65536-n%65536)%65536)-P.buffer.byteLength+65535>>>16;try{P.grow(a),R();var o=1;break e}catch{}o=void 0}if(o)return!0}return!1},kb:function(){return xt?xt.handle:0},vb:(e,t)=>{var r=0;return Dt().forEach((function(n,a){var o=t+r;for(a=S[e+4*a>>2]=o,o=0;o<n.length;++o)E[a++>>0]=n.charCodeAt(o);E[a>>0]=0,r+=n.length+1})),0},wb:(e,t)=>{var r=Dt();S[e>>2]=r.length;var n=0;return r.forEach((function(e){n+=e.length+1})),S[t>>2]=n,0},J:()=>52,lb:function(){return 52},Bb:()=>52,ob:function(){return 70},P:(e,t,r,n)=>{for(var a=0,o=0;o<r;o++){var i=S[t>>2],u=S[t+4>>2];t+=8;for(var c=0;c<u;c++){var s=w[i+c],l=It[e];0===s||10===s?((1===e?_:b)(z(l,0)),l.length=0):l.push(s)}a+=u}return S[n>>2]=a,0},$:function(e){tr.activeTexture(e)},aa:function(e,t){tr.attachShader(pt[e],vt[t])},ba:function(e,t,r){tr.bindAttribLocation(pt[e],t,r?z(w,r):"")},ca:function(e,t){35051==e?tr.se=t:35052==e&&(tr.Zd=t),tr.bindBuffer(e,ht[t])},_:function(e,t){tr.bindFramebuffer(e,yt[t])},ac:function(e,t){tr.bindRenderbuffer(e,gt[t])},Mb:function(e,t){tr.bindSampler(e,Pt[t])},da:function(e,t){tr.bindTexture(e,mt[t])},uc:Bt,xc:Bt,ea:function(e,t,r,n){tr.blendColor(e,t,r,n)},fa:function(e){tr.blendEquation(e)},ga:function(e,t){tr.blendFunc(e,t)},Wb:function(e,t,r,n,a,o,i,u,c,s){tr.blitFramebuffer(e,t,r,n,a,o,i,u,c,s)},ha:function(e,t,r,n){2<=xt.version?r&&t?tr.bufferData(e,w,n,r,t):tr.bufferData(e,t,n):tr.bufferData(e,r?w.subarray(r,r+t):t,n)},ia:function(e,t,r,n){2<=xt.version?r&&tr.bufferSubData(e,t,w,n,r):tr.bufferSubData(e,t,w.subarray(n,n+r))},bc:function(e){return tr.checkFramebufferStatus(e)},N:function(e){tr.clear(e)},Z:function(e,t,r,n){tr.clearColor(e,t,r,n)},O:function(e){tr.clearStencil(e)},rb:function(e,t,r,n){return tr.clientWaitSync(At[e],t,(r>>>0)+4294967296*n)},ja:function(e,t,r,n){tr.colorMask(!!e,!!t,!!r,!!n)},ka:function(e){tr.compileShader(vt[e])},la:function(e,t,r,n,a,o,i,u){2<=xt.version?tr.Zd||!i?tr.compressedTexImage2D(e,t,r,n,a,o,i,u):tr.compressedTexImage2D(e,t,r,n,a,o,w,u,i):tr.compressedTexImage2D(e,t,r,n,a,o,u?w.subarray(u,u+i):null)},ma:function(e,t,r,n,a,o,i,u,c){2<=xt.version?tr.Zd||!u?tr.compressedTexSubImage2D(e,t,r,n,a,o,i,u,c):tr.compressedTexSubImage2D(e,t,r,n,a,o,i,w,c,u):tr.compressedTexSubImage2D(e,t,r,n,a,o,i,c?w.subarray(c,c+u):null)},Ub:function(e,t,r,n,a){tr.copyBufferSubData(e,t,r,n,a)},na:function(e,t,r,n,a,o,i,u){tr.copyTexSubImage2D(e,t,r,n,a,o,i,u)},oa:function(){var e=Ft(pt),t=tr.createProgram();return t.name=e,t.oe=t.me=t.ne=0,t.xe=1,pt[e]=t,e},pa:function(e){var t=Ft(vt);return vt[t]=tr.createShader(e),t},qa:function(e){tr.cullFace(e)},ra:function(e,t){for(var r=0;r<e;r++){var n=F[t+4*r>>2],a=ht[n];a&&(tr.deleteBuffer(a),a.name=0,ht[n]=null,n==tr.se&&(tr.se=0),n==tr.Zd&&(tr.Zd=0))}},cc:function(e,t){for(var r=0;r<e;++r){var n=F[t+4*r>>2],a=yt[n];a&&(tr.deleteFramebuffer(a),a.name=0,yt[n]=null)}},sa:function(e){if(e){var t=pt[e];t?(tr.deleteProgram(t),t.name=0,pt[e]=null):Tt(1281)}},dc:function(e,t){for(var r=0;r<e;r++){var n=F[t+4*r>>2],a=gt[n];a&&(tr.deleteRenderbuffer(a),a.name=0,gt[n]=null)}},Nb:function(e,t){for(var r=0;r<e;r++){var n=F[t+4*r>>2],a=Pt[n];a&&(tr.deleteSampler(a),a.name=0,Pt[n]=null)}},ta:function(e){if(e){var t=vt[e];t?(tr.deleteShader(t),vt[e]=null):Tt(1281)}},Vb:function(e){if(e){var t=At[e];t?(tr.deleteSync(t),t.name=0,At[e]=null):Tt(1281)}},ua:function(e,t){for(var r=0;r<e;r++){var n=F[t+4*r>>2],a=mt[n];a&&(tr.deleteTexture(a),a.name=0,mt[n]=null)}},vc:Gt,yc:Gt,va:function(e){tr.depthMask(!!e)},wa:function(e){tr.disable(e)},xa:function(e){tr.disableVertexAttribArray(e)},ya:function(e,t,r){tr.drawArrays(e,t,r)},sc:function(e,t,r,n){tr.drawArraysInstanced(e,t,r,n)},qc:function(e,t,r,n,a){tr.ze.drawArraysInstancedBaseInstanceWEBGL(e,t,r,n,a)},oc:function(e,t){for(var r=Lt[e],n=0;n<e;n++)r[n]=F[t+4*n>>2];tr.drawBuffers(r)},za:Ht,tc:function(e,t,r,n,a){tr.drawElementsInstanced(e,t,r,n,a)},rc:function(e,t,r,n,a,o,i){tr.ze.drawElementsInstancedBaseVertexBaseInstanceWEBGL(e,t,r,n,a,o,i)},ic:function(e,t,r,n,a,o){Ht(e,n,a,o)},Aa:function(e){tr.enable(e)},Ba:function(e){tr.enableVertexAttribArray(e)},Sb:function(e,t){return(e=tr.fenceSync(e,t))?(t=Ft(At),e.name=t,At[t]=e,t):0},Ca:function(){tr.finish()},Da:function(){tr.flush()},ec:function(e,t,r,n){tr.framebufferRenderbuffer(e,t,r,gt[n])},fc:function(e,t,r,n,a){tr.framebufferTexture2D(e,t,r,mt[n],a)},Ea:function(e){tr.frontFace(e)},Fa:function(e,t){Ut(e,t,"createBuffer",ht)},gc:function(e,t){Ut(e,t,"createFramebuffer",yt)},hc:function(e,t){Ut(e,t,"createRenderbuffer",gt)},Ob:function(e,t){Ut(e,t,"createSampler",Pt)},Ga:function(e,t){Ut(e,t,"createTexture",mt)},wc:Ot,zc:Ot,Yb:function(e){tr.generateMipmap(e)},Ha:function(e,t,r){r?F[r>>2]=tr.getBufferParameter(e,t):Tt(1281)},Ia:function(){var e=tr.getError()||kt;return kt=0,e},Ja:function(e,t){jt(e,t,2)},Zb:function(e,t,r,n){((e=tr.getFramebufferAttachmentParameter(e,t,r))instanceof WebGLRenderbuffer||e instanceof WebGLTexture)&&(e=0|e.name),F[n>>2]=e},I:function(e,t){jt(e,t,0)},Ka:function(e,t,r,n){null===(e=tr.getProgramInfoLog(pt[e]))&&(e="(unknown error)"),t=0<t&&n?Ke(e,w,n,t):0,r&&(F[r>>2]=t)},La:function(e,t,r){if(r)if(e>=dt)Tt(1281);else if(e=pt[e],35716==t)null===(e=tr.getProgramInfoLog(e))&&(e="(unknown error)"),F[r>>2]=e.length+1;else if(35719==t){if(!e.oe)for(t=0;t<tr.getProgramParameter(e,35718);++t)e.oe=Math.max(e.oe,tr.getActiveUniform(e,t).name.length+1);F[r>>2]=e.oe}else if(35722==t){if(!e.me)for(t=0;t<tr.getProgramParameter(e,35721);++t)e.me=Math.max(e.me,tr.getActiveAttrib(e,t).name.length+1);F[r>>2]=e.me}else if(35381==t){if(!e.ne)for(t=0;t<tr.getProgramParameter(e,35382);++t)e.ne=Math.max(e.ne,tr.getActiveUniformBlockName(e,t).length+1);F[r>>2]=e.ne}else F[r>>2]=tr.getProgramParameter(e,t);else Tt(1281)},_b:function(e,t,r){r?F[r>>2]=tr.getRenderbufferParameter(e,t):Tt(1281)},Ma:function(e,t,r,n){null===(e=tr.getShaderInfoLog(vt[e]))&&(e="(unknown error)"),t=0<t&&n?Ke(e,w,n,t):0,r&&(F[r>>2]=t)},Jb:function(e,t,r,n){e=tr.getShaderPrecisionFormat(e,t),F[r>>2]=e.rangeMin,F[r+4>>2]=e.rangeMax,F[n>>2]=e.precision},Na:function(e,t,r){r?35716==t?(null===(e=tr.getShaderInfoLog(vt[e]))&&(e="(unknown error)"),F[r>>2]=e?e.length+1:0):35720==t?(e=tr.getShaderSource(vt[e]),F[r>>2]=e?e.length+1:0):F[r>>2]=tr.getShaderParameter(vt[e],t):Tt(1281)},M:function(e){var t=Et[e];if(!t){switch(e){case 7939:t=(t=tr.getSupportedExtensions()||[]).concat(t.map((function(e){return"GL_"+e}))),t=Wt(t.join(" "));break;case 7936:case 7937:case 37445:case 37446:(t=tr.getParameter(e))||Tt(1280),t=t&&Wt(t);break;case 7938:t=tr.getParameter(7938),t=2<=xt.version?"OpenGL ES 3.0 ("+t+")":"OpenGL ES 2.0 ("+t+")",t=Wt(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=Wt(t);break;default:Tt(1280)}Et[e]=t}return t},ib:function(e,t){if(2>xt.version)return Tt(1282),0;var r=wt[e];return r?0>t||t>=r.length?(Tt(1281),0):r[t]:7939===e?(r=(r=(r=tr.getSupportedExtensions()||[]).concat(r.map((function(e){return"GL_"+e})))).map((function(e){return Wt(e)})),r=wt[e]=r,0>t||t>=r.length?(Tt(1281),0):r[t]):(Tt(1280),0)},Oa:function(e,t){if(t=t?z(w,t):"",e=pt[e]){var r,n=e,a=n.fe,o=n.He;if(!a)for(n.fe=a={},n.Ge={},r=0;r<tr.getProgramParameter(n,35718);++r){var i=tr.getActiveUniform(n,r),u=i.name;i=i.size;var c=Vt(u);c=0<c?u.slice(0,c):u;var s=n.xe;for(n.xe+=i,o[c]=[i,s],u=0;u<i;++u)a[s]=u,n.Ge[s++]=c}if(n=e.fe,a=0,o=t,0<(r=Vt(t))&&(a=parseInt(t.slice(r+1))>>>0,o=t.slice(0,r)),(o=e.He[o])&&a<o[0]&&(n[a+=o[1]]=n[a]||tr.getUniformLocation(e,t)))return a}else Tt(1281);return-1},Kb:function(e,t,r){for(var n=Lt[t],a=0;a<t;a++)n[a]=F[r+4*a>>2];tr.invalidateFramebuffer(e,n)},Lb:function(e,t,r,n,a,o,i){for(var u=Lt[t],c=0;c<t;c++)u[c]=F[r+4*c>>2];tr.invalidateSubFramebuffer(e,u,n,a,o,i)},Tb:function(e){return tr.isSync(At[e])},Pa:function(e){return(e=mt[e])?tr.isTexture(e):0},Qa:function(e){tr.lineWidth(e)},Ra:function(e){e=pt[e],tr.linkProgram(e),e.fe=0,e.He={}},mc:function(e,t,r,n,a,o){tr.De.multiDrawArraysInstancedBaseInstanceWEBGL(e,F,t>>2,F,r>>2,F,n>>2,S,a>>2,o)},nc:function(e,t,r,n,a,o,i,u){tr.De.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(e,F,t>>2,r,F,n>>2,F,a>>2,F,o>>2,S,i>>2,u)},Sa:function(e,t){3317==e&&(Ct=t),tr.pixelStorei(e,t)},pc:function(e){tr.readBuffer(e)},Ta:function(e,t,r,n,a,o,i){if(2<=xt.version)if(tr.se)tr.readPixels(e,t,r,n,a,o,i);else{var u=Nt(o);tr.readPixels(e,t,r,n,a,o,u,i>>31-Math.clz32(u.BYTES_PER_ELEMENT))}else(i=$t(o,a,r,n,i))?tr.readPixels(e,t,r,n,a,o,i):Tt(1280)},$b:function(e,t,r,n){tr.renderbufferStorage(e,t,r,n)},Xb:function(e,t,r,n,a){tr.renderbufferStorageMultisample(e,t,r,n,a)},Pb:function(e,t,r){tr.samplerParameterf(Pt[e],t,r)},Qb:function(e,t,r){tr.samplerParameteri(Pt[e],t,r)},Rb:function(e,t,r){tr.samplerParameteri(Pt[e],t,F[r>>2])},Ua:function(e,t,r,n){tr.scissor(e,t,r,n)},Va:function(e,t,r,n){for(var a="",o=0;o<t;++o){var i=n?F[n+4*o>>2]:-1,u=F[r+4*o>>2];a+=i=u?z(w,u,0>i?void 0:i):""}tr.shaderSource(vt[e],a)},Wa:function(e,t,r){tr.stencilFunc(e,t,r)},Xa:function(e,t,r,n){tr.stencilFuncSeparate(e,t,r,n)},Ya:function(e){tr.stencilMask(e)},Za:function(e,t){tr.stencilMaskSeparate(e,t)},_a:function(e,t,r){tr.stencilOp(e,t,r)},$a:function(e,t,r,n){tr.stencilOpSeparate(e,t,r,n)},ab:function(e,t,r,n,a,o,i,u,c){if(2<=xt.version)if(tr.Zd)tr.texImage2D(e,t,r,n,a,o,i,u,c);else if(c){var s=Nt(u);tr.texImage2D(e,t,r,n,a,o,i,u,s,c>>31-Math.clz32(s.BYTES_PER_ELEMENT))}else tr.texImage2D(e,t,r,n,a,o,i,u,null);else tr.texImage2D(e,t,r,n,a,o,i,u,c?$t(u,i,n,a,c):null)},bb:function(e,t,r){tr.texParameterf(e,t,r)},cb:function(e,t,r){tr.texParameterf(e,t,x[r>>2])},db:function(e,t,r){tr.texParameteri(e,t,r)},eb:function(e,t,r){tr.texParameteri(e,t,F[r>>2])},jc:function(e,t,r,n,a){tr.texStorage2D(e,t,r,n,a)},fb:function(e,t,r,n,a,o,i,u,c){if(2<=xt.version)if(tr.Zd)tr.texSubImage2D(e,t,r,n,a,o,i,u,c);else if(c){var s=Nt(u);tr.texSubImage2D(e,t,r,n,a,o,i,u,s,c>>31-Math.clz32(s.BYTES_PER_ELEMENT))}else tr.texSubImage2D(e,t,r,n,a,o,i,u,null);else s=null,c&&(s=$t(u,i,a,o,c)),tr.texSubImage2D(e,t,r,n,a,o,i,u,s)},gb:function(e,t){tr.uniform1f(Yt(e),t)},hb:function(e,t,r){if(2<=xt.version)t&&tr.uniform1fv(Yt(e),x,r>>2,t);else{if(288>=t)for(var n=Xt[t-1],a=0;a<t;++a)n[a]=x[r+4*a>>2];else n=x.subarray(r>>2,r+4*t>>2);tr.uniform1fv(Yt(e),n)}},Uc:function(e,t){tr.uniform1i(Yt(e),t)},Vc:function(e,t,r){if(2<=xt.version)t&&tr.uniform1iv(Yt(e),F,r>>2,t);else{if(288>=t)for(var n=qt[t-1],a=0;a<t;++a)n[a]=F[r+4*a>>2];else n=F.subarray(r>>2,r+4*t>>2);tr.uniform1iv(Yt(e),n)}},Wc:function(e,t,r){tr.uniform2f(Yt(e),t,r)},Xc:function(e,t,r){if(2<=xt.version)t&&tr.uniform2fv(Yt(e),x,r>>2,2*t);else{if(144>=t)for(var n=Xt[2*t-1],a=0;a<2*t;a+=2)n[a]=x[r+4*a>>2],n[a+1]=x[r+(4*a+4)>>2];else n=x.subarray(r>>2,r+8*t>>2);tr.uniform2fv(Yt(e),n)}},Tc:function(e,t,r){tr.uniform2i(Yt(e),t,r)},Sc:function(e,t,r){if(2<=xt.version)t&&tr.uniform2iv(Yt(e),F,r>>2,2*t);else{if(144>=t)for(var n=qt[2*t-1],a=0;a<2*t;a+=2)n[a]=F[r+4*a>>2],n[a+1]=F[r+(4*a+4)>>2];else n=F.subarray(r>>2,r+8*t>>2);tr.uniform2iv(Yt(e),n)}},Rc:function(e,t,r,n){tr.uniform3f(Yt(e),t,r,n)},Qc:function(e,t,r){if(2<=xt.version)t&&tr.uniform3fv(Yt(e),x,r>>2,3*t);else{if(96>=t)for(var n=Xt[3*t-1],a=0;a<3*t;a+=3)n[a]=x[r+4*a>>2],n[a+1]=x[r+(4*a+4)>>2],n[a+2]=x[r+(4*a+8)>>2];else n=x.subarray(r>>2,r+12*t>>2);tr.uniform3fv(Yt(e),n)}},Pc:function(e,t,r,n){tr.uniform3i(Yt(e),t,r,n)},Oc:function(e,t,r){if(2<=xt.version)t&&tr.uniform3iv(Yt(e),F,r>>2,3*t);else{if(96>=t)for(var n=qt[3*t-1],a=0;a<3*t;a+=3)n[a]=F[r+4*a>>2],n[a+1]=F[r+(4*a+4)>>2],n[a+2]=F[r+(4*a+8)>>2];else n=F.subarray(r>>2,r+12*t>>2);tr.uniform3iv(Yt(e),n)}},Nc:function(e,t,r,n,a){tr.uniform4f(Yt(e),t,r,n,a)},Mc:function(e,t,r){if(2<=xt.version)t&&tr.uniform4fv(Yt(e),x,r>>2,4*t);else{if(72>=t){var n=Xt[4*t-1],a=x;r>>=2;for(var o=0;o<4*t;o+=4){var i=r+o;n[o]=a[i],n[o+1]=a[i+1],n[o+2]=a[i+2],n[o+3]=a[i+3]}}else n=x.subarray(r>>2,r+16*t>>2);tr.uniform4fv(Yt(e),n)}},Ac:function(e,t,r,n,a){tr.uniform4i(Yt(e),t,r,n,a)},Bc:function(e,t,r){if(2<=xt.version)t&&tr.uniform4iv(Yt(e),F,r>>2,4*t);else{if(72>=t)for(var n=qt[4*t-1],a=0;a<4*t;a+=4)n[a]=F[r+4*a>>2],n[a+1]=F[r+(4*a+4)>>2],n[a+2]=F[r+(4*a+8)>>2],n[a+3]=F[r+(4*a+12)>>2];else n=F.subarray(r>>2,r+16*t>>2);tr.uniform4iv(Yt(e),n)}},Cc:function(e,t,r,n){if(2<=xt.version)t&&tr.uniformMatrix2fv(Yt(e),!!r,x,n>>2,4*t);else{if(72>=t)for(var a=Xt[4*t-1],o=0;o<4*t;o+=4)a[o]=x[n+4*o>>2],a[o+1]=x[n+(4*o+4)>>2],a[o+2]=x[n+(4*o+8)>>2],a[o+3]=x[n+(4*o+12)>>2];else a=x.subarray(n>>2,n+16*t>>2);tr.uniformMatrix2fv(Yt(e),!!r,a)}},Dc:function(e,t,r,n){if(2<=xt.version)t&&tr.uniformMatrix3fv(Yt(e),!!r,x,n>>2,9*t);else{if(32>=t)for(var a=Xt[9*t-1],o=0;o<9*t;o+=9)a[o]=x[n+4*o>>2],a[o+1]=x[n+(4*o+4)>>2],a[o+2]=x[n+(4*o+8)>>2],a[o+3]=x[n+(4*o+12)>>2],a[o+4]=x[n+(4*o+16)>>2],a[o+5]=x[n+(4*o+20)>>2],a[o+6]=x[n+(4*o+24)>>2],a[o+7]=x[n+(4*o+28)>>2],a[o+8]=x[n+(4*o+32)>>2];else a=x.subarray(n>>2,n+36*t>>2);tr.uniformMatrix3fv(Yt(e),!!r,a)}},Ec:function(e,t,r,n){if(2<=xt.version)t&&tr.uniformMatrix4fv(Yt(e),!!r,x,n>>2,16*t);else{if(18>=t){var a=Xt[16*t-1],o=x;n>>=2;for(var i=0;i<16*t;i+=16){var u=n+i;a[i]=o[u],a[i+1]=o[u+1],a[i+2]=o[u+2],a[i+3]=o[u+3],a[i+4]=o[u+4],a[i+5]=o[u+5],a[i+6]=o[u+6],a[i+7]=o[u+7],a[i+8]=o[u+8],a[i+9]=o[u+9],a[i+10]=o[u+10],a[i+11]=o[u+11],a[i+12]=o[u+12],a[i+13]=o[u+13],a[i+14]=o[u+14],a[i+15]=o[u+15]}}else a=x.subarray(n>>2,n+64*t>>2);tr.uniformMatrix4fv(Yt(e),!!r,a)}},Fc:function(e){e=pt[e],tr.useProgram(e),tr.Re=e},Gc:function(e,t){tr.vertexAttrib1f(e,t)},Hc:function(e,t){tr.vertexAttrib2f(e,x[t>>2],x[t+4>>2])},Ic:function(e,t){tr.vertexAttrib3f(e,x[t>>2],x[t+4>>2],x[t+8>>2])},Jc:function(e,t){tr.vertexAttrib4f(e,x[t>>2],x[t+4>>2],x[t+8>>2],x[t+12>>2])},kc:function(e,t){tr.vertexAttribDivisor(e,t)},lc:function(e,t,r,n,a){tr.vertexAttribIPointer(e,t,r,n,a)},Kc:function(e,t,r,n,a,o){tr.vertexAttribPointer(e,t,r,!!n,a,o)},Lc:function(e,t,r,n){tr.viewport(e,t,r,n)},qb:function(e,t,r,n){tr.waitSync(At[e],t,(r>>>0)+4294967296*n)},W:function(e,t){var r=fr();try{return D.get(e)(t)}catch(n){if(dr(r),n!==n+0)throw n;lr(1,0)}},F:function(e,t,r){var n=fr();try{return D.get(e)(t,r)}catch(a){if(dr(n),a!==a+0)throw a;lr(1,0)}},E:function(e,t,r,n){var a=fr();try{return D.get(e)(t,r,n)}catch(o){if(dr(a),o!==o+0)throw o;lr(1,0)}},X:function(e,t,r,n,a){var o=fr();try{return D.get(e)(t,r,n,a)}catch(i){if(dr(o),i!==i+0)throw i;lr(1,0)}},Ib:function(e,t,r,n,a,o,i){var u=fr();try{return D.get(e)(t,r,n,a,o,i)}catch(c){if(dr(u),c!==c+0)throw c;lr(1,0)}},V:function(e,t,r,n,a,o,i,u,c,s){var l=fr();try{return D.get(e)(t,r,n,a,o,i,u,c,s)}catch(f){if(dr(l),f!==f+0)throw f;lr(1,0)}},U:function(e){var t=fr();try{D.get(e)()}catch(r){if(dr(t),r!==r+0)throw r;lr(1,0)}},A:function(e,t){var r=fr();try{D.get(e)(t)}catch(n){if(dr(r),n!==n+0)throw n;lr(1,0)}},B:function(e,t,r){var n=fr();try{D.get(e)(t,r)}catch(a){if(dr(n),a!==a+0)throw a;lr(1,0)}},D:function(e,t,r,n){var a=fr();try{D.get(e)(t,r,n)}catch(o){if(dr(a),o!==o+0)throw o;lr(1,0)}},L:function(e,t,r,n,a){var o=fr();try{D.get(e)(t,r,n,a)}catch(i){if(dr(o),i!==i+0)throw i;lr(1,0)}},sb:(e,t,r,n)=>Qt(e,t,r,n)};!function(){function e(e){if(A=e=e.exports,P=A.Yc,R(),D=A._c,B.unshift(A.Zc),U--,i.monitorRunDependencies&&i.monitorRunDependencies(U),0==U&&(null!==O&&(clearInterval(O),O=null),j)){var t=j;j=null,t()}return e}var t={a:or};if(U++,i.monitorRunDependencies&&i.monitorRunDependencies(U),i.instantiateWasm)try{return i.instantiateWasm(t,e)}catch(r){b("Module.instantiateWasm callback failed with error: "+r),n(r)}(function(e,t){var r=H;return v||"function"!=typeof WebAssembly.instantiateStreaming||V(r)||r.startsWith("file://")||p||"function"!=typeof fetch?Y(r,e,t):fetch(r,{credentials:"same-origin"}).then((n=>WebAssembly.instantiateStreaming(n,e).then(t,(function(n){return b("wasm streaming compile failed: "+n),b("falling back to ArrayBuffer instantiation"),Y(r,e,t)}))))})(t,(function(t){e(t.instance)})).catch(n)}();var ir=i._free=e=>(ir=i._free=A.$c)(e),ur=i._malloc=e=>(ur=i._malloc=A.ad)(e),cr=e=>(cr=A.bd)(e);i.__embind_initialize_bindings=()=>(i.__embind_initialize_bindings=A.cd)();var sr,lr=(e,t)=>(lr=A.dd)(e,t),fr=()=>(fr=A.ed)(),dr=e=>(dr=A.fd)(e);function hr(){function e(){if(!sr&&(sr=!0,i.calledRun=!0,!M)){if(X(B),r(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;){var e=i.postRun.shift();G.unshift(e)}X(G)}}if(!(0<U)){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)L();X(I),0<U||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),e()}),1)):e())}}if(i.dynCall_viji=(e,t,r,n,a)=>(i.dynCall_viji=A.gd)(e,t,r,n,a),i.dynCall_vijiii=(e,t,r,n,a,o,u)=>(i.dynCall_vijiii=A.hd)(e,t,r,n,a,o,u),i.dynCall_viiiiij=(e,t,r,n,a,o,u,c)=>(i.dynCall_viiiiij=A.id)(e,t,r,n,a,o,u,c),i.dynCall_jii=(e,t,r)=>(i.dynCall_jii=A.jd)(e,t,r),i.dynCall_vij=(e,t,r,n)=>(i.dynCall_vij=A.kd)(e,t,r,n),i.dynCall_iiij=(e,t,r,n,a)=>(i.dynCall_iiij=A.ld)(e,t,r,n,a),i.dynCall_iiiij=(e,t,r,n,a,o)=>(i.dynCall_iiiij=A.md)(e,t,r,n,a,o),i.dynCall_viij=(e,t,r,n,a)=>(i.dynCall_viij=A.nd)(e,t,r,n,a),i.dynCall_viiij=(e,t,r,n,a,o)=>(i.dynCall_viiij=A.od)(e,t,r,n,a,o),i.dynCall_ji=(e,t)=>(i.dynCall_ji=A.pd)(e,t),i.dynCall_iij=(e,t,r,n)=>(i.dynCall_iij=A.qd)(e,t,r,n),i.dynCall_jiiiiii=(e,t,r,n,a,o,u)=>(i.dynCall_jiiiiii=A.rd)(e,t,r,n,a,o,u),i.dynCall_jiiiiji=(e,t,r,n,a,o,u,c)=>(i.dynCall_jiiiiji=A.sd)(e,t,r,n,a,o,u,c),i.dynCall_iijj=(e,t,r,n,a,o)=>(i.dynCall_iijj=A.td)(e,t,r,n,a,o),i.dynCall_iiiji=(e,t,r,n,a,o)=>(i.dynCall_iiiji=A.ud)(e,t,r,n,a,o),i.dynCall_iiji=(e,t,r,n,a)=>(i.dynCall_iiji=A.vd)(e,t,r,n,a),i.dynCall_iijjiii=(e,t,r,n,a,o,u,c,s)=>(i.dynCall_iijjiii=A.wd)(e,t,r,n,a,o,u,c,s),i.dynCall_vijjjii=(e,t,r,n,a,o,u,c,s,l)=>(i.dynCall_vijjjii=A.xd)(e,t,r,n,a,o,u,c,s,l),i.dynCall_jiji=(e,t,r,n,a)=>(i.dynCall_jiji=A.yd)(e,t,r,n,a),i.dynCall_viijii=(e,t,r,n,a,o,u)=>(i.dynCall_viijii=A.zd)(e,t,r,n,a,o,u),i.dynCall_iiiiij=(e,t,r,n,a,o,u)=>(i.dynCall_iiiiij=A.Ad)(e,t,r,n,a,o,u),i.dynCall_iiiiijj=(e,t,r,n,a,o,u,c,s)=>(i.dynCall_iiiiijj=A.Bd)(e,t,r,n,a,o,u,c,s),i.dynCall_iiiiiijj=(e,t,r,n,a,o,u,c,s,l)=>(i.dynCall_iiiiiijj=A.Cd)(e,t,r,n,a,o,u,c,s,l),j=function e(){sr||hr(),sr||(j=e)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);0<i.preInit.length;)i.preInit.pop()();return hr(),t.ready}})();"object"==typeof e&&"object"==typeof t?t.exports=r:"function"==typeof define&&define.amd&&define([],(()=>r))}));const i=o()}}]);
//# sourceMappingURL=160.57d2cae1.chunk.js.map