@rive-app/webgl 2.10.4 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/rive.js CHANGED
@@ -26,176 +26,4014 @@ var Rive = (() => {
26
26
  return (
27
27
  function(moduleArg = {}) {
28
28
 
29
- var l=moduleArg,aa,ba;l.ready=new Promise((a,b)=>{aa=a;ba=b});
30
- function ca(){function a(g){const h=d;c=b=0;d=new Map;h.forEach(p=>{try{p(g)}catch(m){console.error(m)}});this.rf();e&&e.Yf()}let b=0,c=0,d=new Map,e=null,f=null;this.requestAnimationFrame=function(g){b||(b=requestAnimationFrame(a.bind(this)));const h=++c;d.set(h,g);return h};this.cancelAnimationFrame=function(g){d.delete(g);b&&0==d.size&&(cancelAnimationFrame(b),b=0)};this.Wf=function(g){f&&(document.body.remove(f),f=null);g||(f=document.createElement("div"),f.style.backgroundColor="black",f.style.position=
31
- "fixed",f.style.right=0,f.style.top=0,f.style.color="white",f.style.padding="4px",f.innerHTML="RIVE FPS",g=function(h){f.innerHTML="RIVE FPS "+h.toFixed(1)},document.body.appendChild(f));e=new function(){let h=0,p=0;this.Yf=function(){var m=performance.now();p?(++h,m-=p,1E3<m&&(g(1E3*h/m),h=p=0)):(p=m,h=0)}}};this.rf=function(){}}
32
- function da(){console.assert(!0);const a=new Map;let b=-Infinity;this.push=function(c){c=c+255>>8;a.has(c)&&clearTimeout(a.get(c));a.set(c,setTimeout(function(){a.delete(c);0==a.length?b=-Infinity:c==b&&(b=Math.max(...a.keys()),console.assert(b<c))},1E3));b=Math.max(c,b);return b<<8}}const ea=l.onRuntimeInitialized;
33
- l.onRuntimeInitialized=function(){function a(k){this.Ld=k;this.Ff=k.getContext("2d");this.Kf=e;this.Xd=[];this.oe=0;this.clear=function(){console.assert(0==this.oe);this.Xd=[];f.delete(this)};this.save=function(){++this.oe;this.Xd.push(e.save.bind(e))};this.restore=function(){0<this.oe&&(this.Xd.push(e.restore.bind(e)),--this.oe)};this.transform=function(q){this.Xd.push(e.transform.bind(e,q))};this.align=function(q,w,y,F){this.Xd.push(e.align.bind(e,q,w,y,F))};this.flush=function(){console.assert(0==
34
- this.oe);f.add(this);d&&c()}}function b(k){var q={alpha:1,depth:0,stencil:8,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,preferLowPowerToHighPerformance:0,failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:0,renderViaOffscreenBackBuffer:0},w=k.getContext("webgl2",q);w||(w=k.getContext("webgl",q));var y=w,F=fa(ha),B={handle:F,attributes:q,version:q.Kg,Oe:y};y.canvas&&(y.canvas.Dg=B);ha[F]=B;("undefined"==typeof q.Vf||q.Vf)&&ja(B);n=ha[F];l.Qf=r=n&&n.Oe;q=g(k.width,
35
- k.height);q.Hf=F;q.Ld=k;q.af=k.width;q.$e=k.height;q.Gf=w;return q}function c(){if(e){var k=e.Jf,q=0,w=0,y=0,F=Array(f.size),B=0;for(var K of f)K.ie=Math.min(K.Ld.width,k),K.he=Math.min(K.Ld.height,k),K.Pe=K.he*K.ie,q=Math.max(q,K.ie),w=Math.max(w,K.he),y+=K.Pe,F[B++]=K;f.clear();if(!(0>=y)){q=1<<(0>=q?0:32-Math.clz32(q-1));for(w=1<<(0>=w?0:32-Math.clz32(w-1));w*q<y;)q<=w?q*=2:w*=2;q=Math.min(q,k);q=Math.min(w,k);F.sort((ia,Db)=>Db.Pe-ia.Pe);y=new l.DynamicRectanizer(k);for(K=0;K<F.length;){y.reset(q,
36
- w);for(B=K;B<F.length;++B){var N=F[B],L=y.addRect(N.ie,N.he);if(0>L){console.assert(B>K);break}N.ve=L&65535;N.we=L>>16}N=p.push(y.drawWidth());L=m.push(y.drawHeight());console.assert(N>=y.drawWidth());console.assert(L>=y.drawHeight());console.assert(N<=k);console.assert(L<=k);e.Ld.width!=N&&(e.Ld.width=N);e.Ld.height!=L&&(e.Ld.height=L);e.clear();for(N=K;N<B;++N){L=F[N];e.saveClipRect(L.ve,L.we,L.ve+L.ie,L.we+L.he);let ia=new l.Mat2D;ia.xx=L.ie/L.Ld.width;ia.yy=L.he/L.Ld.height;ia.xy=ia.yx=0;ia.tx=
37
- L.ve;ia.ty=L.we;e.transform(ia);for(const Db of L.Xd)Db();e.restoreClipRect();L.Xd=[]}for(e.flush();K<B;++K)N=F[K],L=N.Ff,L.globalCompositeOperation="copy",L.drawImage(e.Ld,N.ve,N.we,N.ie,N.he,0,0,N.Ld.width,N.Ld.height);K=B}}}}ea&&ea();const d=navigator.userAgent.match(/firefox|fxios/i);let e=null;const f=new Set,g=l.makeRenderer;l.makeRenderer=function(k,q){return q?(e||(e=b(document.createElement("canvas")),q=e.Gf,e.Jf=Math.min(q.getParameter(q.MAX_RENDERBUFFER_SIZE),q.getParameter(q.MAX_TEXTURE_SIZE))),
38
- new a(k)):b(k)};const h=l.Artboard.prototype.draw;l.Artboard.prototype.draw=function(k){k.Xd?k.Xd.push(h.bind(this,k.Kf)):h.call(this,k)};const p=new da,m=new da,t=new ca;l.requestAnimationFrame=t.requestAnimationFrame.bind(t);l.cancelAnimationFrame=t.cancelAnimationFrame.bind(t);l.enableFPSCounter=t.Wf.bind(t);t.rf=c;l.resolveAnimationFrame=c;let u=l.load;l.load=function(k,q,w=!0){const y=new l.FallbackFileAssetLoader;void 0!==q&&y.addLoader(q);w&&(q=new l.CDNFileAssetLoader,y.addLoader(q));return Promise.resolve(u(k,
39
- y))};const x=l.WebGLRenderer.prototype.clear;l.WebGLRenderer.prototype.clear=function(){n=ha[this.Hf];l.Qf=r=n&&n.Oe;const k=this.Ld;if(this.af!=k.width||this.$e!=k.height)this.resize(k.width,k.height),this.af=k.width,this.$e=k.height;x.call(this)};l.decodeImage=function(k,q){k=l.decodeImageSkia(k);q(k)}};const ka=l.onRuntimeInitialized;
40
- l.onRuntimeInitialized=function(){ka&&ka();let a=l.decodeFont;l.decodeFont=function(c,d){c=a(c);d(c)};const b=l.FileAssetLoader;l.ptrToAsset=c=>{let d=l.ptrToFileAsset(c);return d.isImage?l.ptrToImageAsset(c):d.isFont?l.ptrToFontAsset(c):d};l.CustomFileAssetLoader=b.extend("CustomFileAssetLoader",{__construct:function({loadContents:c}){this.__parent.__construct.call(this);this.If=c},loadContents:function(c,d){c=l.ptrToAsset(c);return this.If(c,d)}});l.CDNFileAssetLoader=b.extend("CDNFileAssetLoader",
41
- {__construct:function(){this.__parent.__construct.call(this)},loadContents:function(c){let d=l.ptrToAsset(c);c=d.cdnUuid;if(""===c)return!1;(function(e,f){var g=new XMLHttpRequest;g.responseType="arraybuffer";g.onreadystatechange=function(){4==g.readyState&&200==g.status&&f(g)};g.open("GET",e,!0);g.send(null)})(d.cdnBaseUrl+"/"+c,e=>{d.decode(new Uint8Array(e.response))});return!0}});l.FallbackFileAssetLoader=b.extend("FallbackFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this);
42
- this.lf=[]},addLoader:function(c){this.lf.push(c)},loadContents:function(c,d){for(let e of this.lf)if(e.loadContents(c,d))return!0;return!1}})};var la=Object.assign({},l),ma="./this.program",na="object"==typeof window,oa="function"==typeof importScripts,pa="",qa,ra;
43
- if(na||oa)oa?pa=self.location.href:"undefined"!=typeof document&&document.currentScript&&(pa=document.currentScript.src),_scriptDir&&(pa=_scriptDir),0!==pa.indexOf("blob:")?pa=pa.substr(0,pa.replace(/[?#].*/,"").lastIndexOf("/")+1):pa="",oa&&(ra=a=>{var b=new XMLHttpRequest;b.open("GET",a,!1);b.responseType="arraybuffer";b.send(null);return new Uint8Array(b.response)}),qa=(a,b,c)=>{var d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=()=>{200==d.status||0==d.status&&d.response?
44
- b(d.response):c()};d.onerror=c;d.send(null)};var sa=l.print||console.log.bind(console),ta=l.printErr||console.error.bind(console);Object.assign(l,la);la=null;l.thisProgram&&(ma=l.thisProgram);var ua;l.wasmBinary&&(ua=l.wasmBinary);var noExitRuntime=l.noExitRuntime||!0;"object"!=typeof WebAssembly&&va("no native wasm support detected");var wa,v,xa=!1,z,A,C,ya,D,E,G,za;
45
- function Aa(){var a=wa.buffer;l.HEAP8=z=new Int8Array(a);l.HEAP16=C=new Int16Array(a);l.HEAP32=D=new Int32Array(a);l.HEAPU8=A=new Uint8Array(a);l.HEAPU16=ya=new Uint16Array(a);l.HEAPU32=E=new Uint32Array(a);l.HEAPF32=G=new Float32Array(a);l.HEAPF64=za=new Float64Array(a)}var H,Ba=[],Ca=[],Da=[];function Ea(){var a=l.preRun.shift();Ba.unshift(a)}var Fa=0,Ga=null,Ha=null;
46
- function va(a){if(l.onAbort)l.onAbort(a);a="Aborted("+a+")";ta(a);xa=!0;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");ba(a);throw a;}function Ia(a){return a.startsWith("data:application/octet-stream;base64,")}var Ja;Ja="webgl_advanced.wasm";if(!Ia(Ja)){var Ka=Ja;Ja=l.locateFile?l.locateFile(Ka,pa):pa+Ka}function La(a){if(a==Ja&&ua)return new Uint8Array(ua);if(ra)return ra(a);throw"both async and sync fetching of the wasm failed";}
47
- function Ma(a){if(!ua&&(na||oa)){if("function"==typeof fetch&&!a.startsWith("file://"))return fetch(a,{credentials:"same-origin"}).then(b=>{if(!b.ok)throw"failed to load wasm binary file at '"+a+"'";return b.arrayBuffer()}).catch(()=>La(a));if(qa)return new Promise((b,c)=>{qa(a,d=>b(new Uint8Array(d)),c)})}return Promise.resolve().then(()=>La(a))}function Na(a,b,c){return Ma(a).then(d=>WebAssembly.instantiate(d,b)).then(d=>d).then(c,d=>{ta("failed to asynchronously prepare wasm: "+d);va(d)})}
48
- function Oa(a,b){var c=Ja;return ua||"function"!=typeof WebAssembly.instantiateStreaming||Ia(c)||c.startsWith("file://")||"function"!=typeof fetch?Na(c,a,b):fetch(c,{credentials:"same-origin"}).then(d=>WebAssembly.instantiateStreaming(d,a).then(b,function(e){ta("wasm streaming compile failed: "+e);ta("falling back to ArrayBuffer instantiation");return Na(c,a,b)}))}
49
- var I,J,Sa={416396:(a,b,c,d,e)=>{if("undefined"===typeof window||void 0===(window.AudioContext||window.webkitAudioContext))return 0;if("undefined"===typeof window.yd){window.yd={Je:0};window.yd.Nd={};window.yd.Nd.Ie=a;window.yd.Nd.capture=b;window.yd.Nd.Re=c;window.yd.me={};window.yd.me.stopped=d;window.yd.me.zf=e;let f=window.yd;f.Jd=[];f.Ag=function(g){for(var h=0;h<f.Jd.length;++h)if(null==f.Jd[h])return f.Jd[h]=g,h;f.Jd.push(g);return f.Jd.length-1};f.Ef=function(g){for(f.Jd[g]=null;0<f.Jd.length;)if(null==
50
- f.Jd[f.Jd.length-1])f.Jd.pop();else break};f.Pg=function(g){for(var h=0;h<f.Jd.length;++h)if(f.Jd[h]==g)return f.Ef(h)};f.ze=function(g){return f.Jd[g]};f.Df=["touchend","click"];f.unlock=function(){for(var g=0;g<f.Jd.length;++g){var h=f.Jd[g];null!=h&&null!=h.Od&&h.state===f.me.zf&&h.Od.resume().then(()=>{Pa(h.sf)},p=>{console.error("Failed to resume audiocontext",p)})}f.Df.map(function(p){document.removeEventListener(p,f.unlock,!0)})};f.Df.map(function(g){document.addEventListener(g,f.unlock,!0)})}window.yd.Je+=
51
- 1;return 1},418574:()=>{"undefined"!==typeof window.yd&&(--window.yd.Je,0===window.yd.Je&&delete window.yd)},418738:()=>void 0!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia,418842:()=>{try{var a=new (window.AudioContext||window.webkitAudioContext),b=a.sampleRate;a.close();return b}catch(c){return 0}},419013:(a,b,c,d,e,f)=>{if("undefined"===typeof window.yd)return-1;var g={},h={};a==window.yd.Nd.Ie&&0!=c&&(h.sampleRate=c);g.Od=new (window.AudioContext||window.webkitAudioContext)(h);
52
- g.Od.suspend();g.state=window.yd.me.stopped;c=0;a!=window.yd.Nd.Ie&&(c=b);g.ce=g.Od.createScriptProcessor(d,c,b);g.ce.onaudioprocess=function(p){if(null==g.Ae||0==g.Ae.length)g.Ae=new Float32Array(G.buffer,e,d*b);if(a==window.yd.Nd.capture||a==window.yd.Nd.Re){for(var m=0;m<b;m+=1)for(var t=p.inputBuffer.getChannelData(m),u=g.Ae,x=0;x<d;x+=1)u[x*b+m]=t[x];Qa(f,d,e)}if(a==window.yd.Nd.Ie||a==window.yd.Nd.Re)for(Ra(f,d,e),m=0;m<p.outputBuffer.numberOfChannels;++m)for(t=p.outputBuffer.getChannelData(m),
53
- u=g.Ae,x=0;x<d;x+=1)t[x]=u[x*b+m];else for(m=0;m<p.outputBuffer.numberOfChannels;++m)p.outputBuffer.getChannelData(m).fill(0)};a!=window.yd.Nd.capture&&a!=window.yd.Nd.Re||navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(p){g.Ke=g.Od.createMediaStreamSource(p);g.Ke.connect(g.ce);g.ce.connect(g.Od.destination)}).catch(function(p){console.log("Failed to get user media: "+p)});a==window.yd.Nd.Ie&&g.ce.connect(g.Od.destination);g.sf=f;return window.yd.Ag(g)},421890:a=>window.yd.ze(a).Od.sampleRate,
54
- 421963:a=>{a=window.yd.ze(a);void 0!==a.ce&&(a.ce.onaudioprocess=function(){},a.ce.disconnect(),a.ce=void 0);void 0!==a.Ke&&(a.Ke.disconnect(),a.Ke=void 0);a.Od.close();a.Od=void 0;a.sf=void 0},422363:a=>{window.yd.Ef(a)},422413:a=>{a=window.yd.ze(a);a.Od.resume();a.state=window.yd.me.zf},422552:a=>{a=window.yd.ze(a);a.Od.suspend();a.state=window.yd.me.stopped}},Ta=a=>{for(;0<a.length;)a.shift()(l)},Ua=(a,b)=>{for(var c=0,d=a.length-1;0<=d;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,
55
- 1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c;c--)a.unshift("..");return a},Va=a=>{var b="/"===a.charAt(0),c="/"===a.substr(-1);(a=Ua(a.split("/").filter(d=>!!d),!b).join("/"))||b||(a=".");a&&c&&(a+="/");return(b?"/":"")+a},Wa=a=>{var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&(b=b.substr(0,b.length-1));return a+b},Xa=a=>{if("/"===a)return"/";a=Va(a);a=a.replace(/\/$/,"");var b=a.lastIndexOf("/");return-1===b?a:a.substr(b+1)},
56
- Ya=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return a=>crypto.getRandomValues(a);va("initRandomDevice")},Za=a=>(Za=Ya())(a);function $a(){for(var a="",b=!1,c=arguments.length-1;-1<=c&&!b;c--){b=0<=c?arguments[c]:"/";if("string"!=typeof b)throw new TypeError("Arguments to path.resolve must be strings");if(!b)return"";a=b+"/"+a;b="/"===b.charAt(0)}a=Ua(a.split("/").filter(d=>!!d),!b).join("/");return(b?"/":"")+a||"."}
57
- var ab="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,bb=(a,b,c)=>{var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16<c-b&&a.buffer&&ab)return ab.decode(a.subarray(b,c));for(d="";b<c;){var e=a[b++];if(e&128){var f=a[b++]&63;if(192==(e&224))d+=String.fromCharCode((e&31)<<6|f);else{var g=a[b++]&63;e=224==(e&240)?(e&15)<<12|f<<6|g:(e&7)<<18|f<<12|g<<6|a[b++]&63;65536>e?d+=String.fromCharCode(e):(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023))}}else d+=String.fromCharCode(e)}return d},
58
- cb=[],db=a=>{for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);127>=d?b++:2047>=d?b+=2:55296<=d&&57343>=d?(b+=4,++c):b+=3}return b},eb=(a,b,c,d)=>{if(!(0<d))return 0;var e=c;d=c+d-1;for(var f=0;f<a.length;++f){var g=a.charCodeAt(f);if(55296<=g&&57343>=g){var h=a.charCodeAt(++f);g=65536+((g&1023)<<10)|h&1023}if(127>=g){if(c>=d)break;b[c++]=g}else{if(2047>=g){if(c+1>=d)break;b[c++]=192|g>>6}else{if(65535>=g){if(c+2>=d)break;b[c++]=224|g>>12}else{if(c+3>=d)break;b[c++]=240|g>>18;b[c++]=128|g>>12&
59
- 63}b[c++]=128|g>>6&63}b[c++]=128|g&63}}b[c]=0;return c-e};function fb(a,b){var c=Array(db(a)+1);a=eb(a,c,0,c.length);b&&(c.length=a);return c}var gb=[];function hb(a,b){gb[a]={input:[],Kd:[],Zd:b};ib(a,jb)}
60
- var jb={open:function(a){var b=gb[a.node.qe];if(!b)throw new M(43);a.Ed=b;a.seekable=!1},close:function(a){a.Ed.Zd.ye(a.Ed)},ye:function(a){a.Ed.Zd.ye(a.Ed)},read:function(a,b,c,d){if(!a.Ed||!a.Ed.Zd.jf)throw new M(60);for(var e=0,f=0;f<d;f++){try{var g=a.Ed.Zd.jf(a.Ed)}catch(h){throw new M(29);}if(void 0===g&&0===e)throw new M(6);if(null===g||void 0===g)break;e++;b[c+f]=g}e&&(a.node.timestamp=Date.now());return e},write:function(a,b,c,d){if(!a.Ed||!a.Ed.Zd.Ve)throw new M(60);try{for(var e=0;e<d;e++)a.Ed.Zd.Ve(a.Ed,
61
- b[c+e])}catch(f){throw new M(29);}d&&(a.node.timestamp=Date.now());return e}},kb={jf:function(){a:{if(!cb.length){var a=null;"undefined"!=typeof window&&"function"==typeof window.prompt?(a=window.prompt("Input: "),null!==a&&(a+="\n")):"function"==typeof readline&&(a=readline(),null!==a&&(a+="\n"));if(!a){a=null;break a}cb=fb(a,!0)}a=cb.shift()}return a},Ve:function(a,b){null===b||10===b?(sa(bb(a.Kd,0)),a.Kd=[]):0!=b&&a.Kd.push(b)},ye:function(a){a.Kd&&0<a.Kd.length&&(sa(bb(a.Kd,0)),a.Kd=[])},hg:function(){return{Gg:25856,
62
- Ig:5,Fg:191,Hg:35387,Eg:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},ig:function(){return 0},jg:function(){return[24,80]}},lb={Ve:function(a,b){null===b||10===b?(ta(bb(a.Kd,0)),a.Kd=[]):0!=b&&a.Kd.push(b)},ye:function(a){a.Kd&&0<a.Kd.length&&(ta(bb(a.Kd,0)),a.Kd=[])}};function mb(a,b){var c=a.Bd?a.Bd.length:0;c>=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.Bd,a.Bd=new Uint8Array(b),0<a.Gd&&a.Bd.set(c.subarray(0,a.Gd),0))}
63
- var O={Ud:null,Yd(){return O.createNode(null,"/",16895,0)},createNode(a,b,c,d){if(24576===(c&61440)||4096===(c&61440))throw new M(63);O.Ud||(O.Ud={dir:{node:{Sd:O.Ad.Sd,Vd:O.Ad.Vd,pe:O.Ad.pe,Ge:O.Ad.Ge,xf:O.Ad.xf,Cf:O.Ad.Cf,yf:O.Ad.yf,vf:O.Ad.vf,Le:O.Ad.Le},stream:{ee:O.Cd.ee}},file:{node:{Sd:O.Ad.Sd,Vd:O.Ad.Vd},stream:{ee:O.Cd.ee,read:O.Cd.read,write:O.Cd.write,xe:O.Cd.xe,nf:O.Cd.nf,qf:O.Cd.qf}},link:{node:{Sd:O.Ad.Sd,Vd:O.Ad.Vd,re:O.Ad.re},stream:{}},bf:{node:{Sd:O.Ad.Sd,Vd:O.Ad.Vd},stream:nb}});
64
- c=ob(a,b,c,d);16384===(c.mode&61440)?(c.Ad=O.Ud.dir.node,c.Cd=O.Ud.dir.stream,c.Bd={}):32768===(c.mode&61440)?(c.Ad=O.Ud.file.node,c.Cd=O.Ud.file.stream,c.Gd=0,c.Bd=null):40960===(c.mode&61440)?(c.Ad=O.Ud.link.node,c.Cd=O.Ud.link.stream):8192===(c.mode&61440)&&(c.Ad=O.Ud.bf.node,c.Cd=O.Ud.bf.stream);c.timestamp=Date.now();a&&(a.Bd[b]=c,a.timestamp=c.timestamp);return c},Jg(a){return a.Bd?a.Bd.subarray?a.Bd.subarray(0,a.Gd):new Uint8Array(a.Bd):new Uint8Array(0)},Ad:{Sd(a){var b={};b.Tf=8192===(a.mode&
65
- 61440)?a.id:1;b.kf=a.id;b.mode=a.mode;b.og=1;b.uid=0;b.dg=0;b.qe=a.qe;16384===(a.mode&61440)?b.size=4096:32768===(a.mode&61440)?b.size=a.Gd:40960===(a.mode&61440)?b.size=a.link.length:b.size=0;b.Lf=new Date(a.timestamp);b.mg=new Date(a.timestamp);b.Pf=new Date(a.timestamp);b.Mf=4096;b.Nf=Math.ceil(b.size/b.Mf);return b},Vd(a,b){void 0!==b.mode&&(a.mode=b.mode);void 0!==b.timestamp&&(a.timestamp=b.timestamp);if(void 0!==b.size&&(b=b.size,a.Gd!=b))if(0==b)a.Bd=null,a.Gd=0;else{var c=a.Bd;a.Bd=new Uint8Array(b);
66
- c&&a.Bd.set(c.subarray(0,Math.min(b,a.Gd)));a.Gd=b}},pe(){throw pb[44];},Ge(a,b,c,d){return O.createNode(a,b,c,d)},xf(a,b,c){if(16384===(a.mode&61440)){try{var d=qb(b,c)}catch(f){}if(d)for(var e in d.Bd)throw new M(55);}delete a.parent.Bd[a.name];a.parent.timestamp=Date.now();a.name=c;b.Bd[c]=a;b.timestamp=a.parent.timestamp;a.parent=b},Cf(a,b){delete a.Bd[b];a.timestamp=Date.now()},yf(a,b){var c=qb(a,b),d;for(d in c.Bd)throw new M(55);delete a.Bd[b];a.timestamp=Date.now()},vf(a){var b=[".",".."],
67
- c;for(c in a.Bd)a.Bd.hasOwnProperty(c)&&b.push(c);return b},Le(a,b,c){a=O.createNode(a,b,41471,0);a.link=c;return a},re(a){if(40960!==(a.mode&61440))throw new M(28);return a.link}},Cd:{read(a,b,c,d,e){var f=a.node.Bd;if(e>=a.node.Gd)return 0;a=Math.min(a.node.Gd-e,d);if(8<a&&f.subarray)b.set(f.subarray(e,e+a),c);else for(d=0;d<a;d++)b[c+d]=f[e+d];return a},write(a,b,c,d,e,f){b.buffer===z.buffer&&(f=!1);if(!d)return 0;a=a.node;a.timestamp=Date.now();if(b.subarray&&(!a.Bd||a.Bd.subarray)){if(f)return a.Bd=
68
- b.subarray(c,c+d),a.Gd=d;if(0===a.Gd&&0===e)return a.Bd=b.slice(c,c+d),a.Gd=d;if(e+d<=a.Gd)return a.Bd.set(b.subarray(c,c+d),e),d}mb(a,e+d);if(a.Bd.subarray&&b.subarray)a.Bd.set(b.subarray(c,c+d),e);else for(f=0;f<d;f++)a.Bd[e+f]=b[c+f];a.Gd=Math.max(a.Gd,e+d);return d},ee(a,b,c){1===c?b+=a.position:2===c&&32768===(a.node.mode&61440)&&(b+=a.node.Gd);if(0>b)throw new M(28);return b},xe(a,b,c){mb(a.node,b+c);a.node.Gd=Math.max(a.node.Gd,b+c)},nf(a,b,c,d,e){if(32768!==(a.node.mode&61440))throw new M(43);
69
- a=a.node.Bd;if(e&2||a.buffer!==z.buffer){if(0<c||c+b<a.length)a.subarray?a=a.subarray(c,c+b):a=Array.prototype.slice.call(a,c,c+b);c=!0;b=65536*Math.ceil(b/65536);(e=rb(65536,b))?(A.fill(0,e,e+b),b=e):b=0;if(!b)throw new M(48);z.set(a,b)}else c=!1,b=a.byteOffset;return{Dd:b,Rd:c}},qf(a,b,c,d){O.Cd.write(a,b,0,d,c,!1);return 0}}};function sb(a,b){var c=0;a&&(c|=365);b&&(c|=146);return c}
70
- var tb=null,ub={},vb=[],wb=1,xb=null,yb=!0,M=null,pb={},Ab=(a,b={})=>{a=$a(a);if(!a)return{path:"",node:null};b=Object.assign({gf:!0,Xe:0},b);if(8<b.Xe)throw new M(32);a=a.split("/").filter(g=>!!g);for(var c=tb,d="/",e=0;e<a.length;e++){var f=e===a.length-1;if(f&&b.parent)break;c=qb(c,a[e]);d=Va(d+"/"+a[e]);c.He&&(!f||f&&b.gf)&&(c=c.He.root);if(!f||b.Se)for(f=0;40960===(c.mode&61440);)if(c=zb(d),d=$a(Wa(d),c),c=Ab(d,{Xe:b.Xe+1}).node,40<f++)throw new M(32);}return{path:d,node:c}},Bb=a=>{for(var b;;){if(a===
71
- a.parent)return a=a.Yd.pf,b?"/"!==a[a.length-1]?`${a}/${b}`:a+b:a;b=b?`${a.name}/${b}`:a.name;a=a.parent}},Cb=(a,b)=>{for(var c=0,d=0;d<b.length;d++)c=(c<<5)-c+b.charCodeAt(d)|0;return(a+c>>>0)%xb.length},qb=(a,b)=>{var c;if(c=(c=Eb(a,"x"))?c:a.Ad.pe?0:2)throw new M(c,a);for(c=xb[Cb(a.id,b)];c;c=c.ng){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return a.Ad.pe(a,b)},ob=(a,b,c,d)=>{a=new Fb(a,b,c,d);b=Cb(a.parent.id,a.name);a.ng=xb[b];return xb[b]=a},Gb=a=>{var b=["r","w","rw"][a&3];a&512&&(b+=
72
- "w");return b},Eb=(a,b)=>{if(yb)return 0;if(!b.includes("r")||a.mode&292){if(b.includes("w")&&!(a.mode&146)||b.includes("x")&&!(a.mode&73))return 2}else return 2;return 0},Hb=(a,b)=>{try{return qb(a,b),20}catch(c){}return Eb(a,"wx")},Ib=()=>{for(var a=0;4096>=a;a++)if(!vb[a])return a;throw new M(33);},Jb=a=>{a=vb[a];if(!a)throw new M(8);return a},Lb=(a,b=-1)=>{Kb||(Kb=function(){this.yd={}},Kb.prototype={},Object.defineProperties(Kb.prototype,{object:{get(){return this.node},set(c){this.node=c}},
73
- flags:{get(){return this.yd.flags},set(c){this.yd.flags=c}},position:{get(){return this.yd.position},set(c){this.yd.position=c}}}));a=Object.assign(new Kb,a);-1==b&&(b=Ib());a.be=b;return vb[b]=a},nb={open:a=>{a.Cd=ub[a.node.qe].Cd;a.Cd.open&&a.Cd.open(a)},ee:()=>{throw new M(70);}},ib=(a,b)=>{ub[a]={Cd:b}},Mb=(a,b)=>{var c="/"===b,d=!b;if(c&&tb)throw new M(10);if(!c&&!d){var e=Ab(b,{gf:!1});b=e.path;e=e.node;if(e.He)throw new M(10);if(16384!==(e.mode&61440))throw new M(54);}b={type:a,Ng:{},pf:b,
74
- lg:[]};a=a.Yd(b);a.Yd=b;b.root=a;c?tb=a:e&&(e.He=b,e.Yd&&e.Yd.lg.push(b))},Nb=(a,b,c)=>{var d=Ab(a,{parent:!0}).node;a=Xa(a);if(!a||"."===a||".."===a)throw new M(28);var e=Hb(d,a);if(e)throw new M(e);if(!d.Ad.Ge)throw new M(63);return d.Ad.Ge(d,a,b,c)},Ob=(a,b,c)=>{"undefined"==typeof c&&(c=b,b=438);Nb(a,b|8192,c)},Pb=(a,b)=>{if(!$a(a))throw new M(44);var c=Ab(b,{parent:!0}).node;if(!c)throw new M(44);b=Xa(b);var d=Hb(c,b);if(d)throw new M(d);if(!c.Ad.Le)throw new M(63);c.Ad.Le(c,b,a)},zb=a=>{a=Ab(a).node;
75
- if(!a)throw new M(44);if(!a.Ad.re)throw new M(28);return $a(Bb(a.parent),a.Ad.re(a))},Rb=(a,b,c)=>{if(""===a)throw new M(44);if("string"==typeof b){var d={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[b];if("undefined"==typeof d)throw Error(`Unknown file open mode: ${b}`);b=d}c=b&64?("undefined"==typeof c?438:c)&4095|32768:0;if("object"==typeof a)var e=a;else{a=Va(a);try{e=Ab(a,{Se:!(b&131072)}).node}catch(f){}}d=!1;if(b&64)if(e){if(b&128)throw new M(20);}else e=Nb(a,c,0),d=!0;if(!e)throw new M(44);
76
- 8192===(e.mode&61440)&&(b&=-513);if(b&65536&&16384!==(e.mode&61440))throw new M(54);if(!d&&(c=e?40960===(e.mode&61440)?32:16384===(e.mode&61440)&&("r"!==Gb(b)||b&512)?31:Eb(e,Gb(b)):44))throw new M(c);if(b&512&&!d){c=e;c="string"==typeof c?Ab(c,{Se:!0}).node:c;if(!c.Ad.Vd)throw new M(63);if(16384===(c.mode&61440))throw new M(31);if(32768!==(c.mode&61440))throw new M(28);if(d=Eb(c,"w"))throw new M(d);c.Ad.Vd(c,{size:0,timestamp:Date.now()})}b&=-131713;e=Lb({node:e,path:Bb(e),flags:b,seekable:!0,position:0,
77
- Cd:e.Cd,Bg:[],error:!1});e.Cd.open&&e.Cd.open(e);!l.logReadFiles||b&1||(Qb||(Qb={}),a in Qb||(Qb[a]=1));return e},Sb=(a,b,c)=>{if(null===a.be)throw new M(8);if(!a.seekable||!a.Cd.ee)throw new M(70);if(0!=c&&1!=c&&2!=c)throw new M(28);a.position=a.Cd.ee(a,b,c);a.Bg=[]},Tb=()=>{M||(M=function(a,b){this.name="ErrnoError";this.node=b;this.rg=function(c){this.ae=c};this.rg(a);this.message="FS error"},M.prototype=Error(),M.prototype.constructor=M,[44].forEach(a=>{pb[a]=new M(a);pb[a].stack="<generic error, no stack>"}))},
78
- Ub,Wb=(a,b,c)=>{a=Va("/dev/"+a);var d=sb(!!b,!!c);Vb||(Vb=64);var e=Vb++<<8|0;ib(e,{open:f=>{f.seekable=!1},close:()=>{c&&c.buffer&&c.buffer.length&&c(10)},read:(f,g,h,p)=>{for(var m=0,t=0;t<p;t++){try{var u=b()}catch(x){throw new M(29);}if(void 0===u&&0===m)throw new M(6);if(null===u||void 0===u)break;m++;g[h+t]=u}m&&(f.node.timestamp=Date.now());return m},write:(f,g,h,p)=>{for(var m=0;m<p;m++)try{c(g[h+m])}catch(t){throw new M(29);}p&&(f.node.timestamp=Date.now());return m}});Ob(a,d,e)},Vb,Xb={},
79
- Kb,Qb,Yb=void 0;function Zb(){Yb+=4;return D[Yb-4>>2]}function $b(a){if(void 0===a)return"_unknown";a=a.replace(/[^a-zA-Z0-9_]/g,"$");var b=a.charCodeAt(0);return 48<=b&&57>=b?`_${a}`:a}function ac(a,b){a=$b(a);return{[a]:function(){return b.apply(this,arguments)}}[a]}function bc(){this.Rd=[void 0];this.hf=[]}var P=new bc,cc=void 0;function Q(a){throw new cc(a);}
80
- var dc=a=>{a||Q("Cannot use deleted val. handle = "+a);return P.get(a).value},ec=a=>{switch(a){case void 0:return 1;case null:return 2;case !0:return 3;case !1:return 4;default:return P.xe({wf:1,value:a})}};
81
- function fc(a){var b=Error,c=ac(a,function(d){this.name=a;this.message=d;d=Error(d).stack;void 0!==d&&(this.stack=this.toString()+"\n"+d.replace(/^Error(:[^\n]*)?\n/,""))});c.prototype=Object.create(b.prototype);c.prototype.constructor=c;c.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`};return c}var gc=void 0,hc=void 0;function R(a){for(var b="";A[a];)b+=hc[A[a++]];return b}var ic=[];
82
- function jc(){for(;ic.length;){var a=ic.pop();a.xd.le=!1;a["delete"]()}}var kc=void 0,lc={};function mc(a,b){for(void 0===b&&Q("ptr should not be undefined");a.Hd;)b=a.te(b),a=a.Hd;return b}var nc={};function oc(a){a=pc(a);var b=R(a);qc(a);return b}function rc(a,b){var c=nc[a];void 0===c&&Q(b+" has unknown type "+oc(a));return c}function sc(){}var tc=!1;function uc(a){--a.count.value;0===a.count.value&&(a.Md?a.Qd.$d(a.Md):a.Fd.zd.$d(a.Dd))}
83
- function vc(a,b,c){if(b===c)return a;if(void 0===c.Hd)return null;a=vc(a,b,c.Hd);return null===a?null:c.Uf(a)}var wc={};function xc(a,b){b=mc(a,b);return lc[b]}var yc=void 0;function zc(a){throw new yc(a);}function Ac(a,b){b.Fd&&b.Dd||zc("makeClassHandle requires ptr and ptrType");!!b.Qd!==!!b.Md&&zc("Both smartPtrType and smartPtr must be specified");b.count={value:1};return Bc(Object.create(a,{xd:{value:b}}))}
84
- function Bc(a){if("undefined"===typeof FinalizationRegistry)return Bc=b=>b,a;tc=new FinalizationRegistry(b=>{uc(b.xd)});Bc=b=>{var c=b.xd;c.Md&&tc.register(b,{xd:c},b);return b};sc=b=>{tc.unregister(b)};return Bc(a)}var Cc={};function Dc(a){for(;a.length;){var b=a.pop();a.pop()(b)}}function Ec(a){return this.fromWireType(D[a>>2])}var Fc={},Gc={};
85
- function S(a,b,c){function d(h){h=c(h);h.length!==a.length&&zc("Mismatched type converter count");for(var p=0;p<a.length;++p)Hc(a[p],h[p])}a.forEach(function(h){Gc[h]=b});var e=Array(b.length),f=[],g=0;b.forEach((h,p)=>{nc.hasOwnProperty(h)?e[p]=nc[h]:(f.push(h),Fc.hasOwnProperty(h)||(Fc[h]=[]),Fc[h].push(()=>{e[p]=nc[h];++g;g===f.length&&d(e)}))});0===f.length&&d(e)}
86
- function Ic(a){switch(a){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError(`Unknown type size: ${a}`);}}function Jc(a,b,c={}){var d=b.name;a||Q(`type "${d}" must have a positive integer typeid pointer`);if(nc.hasOwnProperty(a)){if(c.eg)return;Q(`Cannot register type '${d}' twice`)}nc[a]=b;delete Gc[a];Fc.hasOwnProperty(a)&&(b=Fc[a],delete Fc[a],b.forEach(e=>e()))}
87
- function Hc(a,b,c={}){if(!("argPackAdvance"in b))throw new TypeError("registerType registeredInstance requires argPackAdvance");Jc(a,b,c)}function Kc(a){Q(a.xd.Fd.zd.name+" instance already deleted")}function Lc(){}
88
- function Mc(a,b,c){if(void 0===a[b].Id){var d=a[b];a[b]=function(){a[b].Id.hasOwnProperty(arguments.length)||Q(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${a[b].Id})!`);return a[b].Id[arguments.length].apply(this,arguments)};a[b].Id=[];a[b].Id[d.je]=d}}
89
- function Nc(a,b,c){l.hasOwnProperty(a)?((void 0===c||void 0!==l[a].Id&&void 0!==l[a].Id[c])&&Q(`Cannot register public name '${a}' twice`),Mc(l,a,a),l.hasOwnProperty(c)&&Q(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`),l[a].Id[c]=b):(l[a]=b,void 0!==c&&(l[a].Mg=c))}function Oc(a,b,c,d,e,f,g,h){this.name=a;this.constructor=b;this.Td=c;this.$d=d;this.Hd=e;this.Zf=f;this.te=g;this.Uf=h;this.tf=[]}
90
- function Pc(a,b,c){for(;b!==c;)b.te||Q(`Expected null or instance of ${c.name}, got an instance of ${b.name}`),a=b.te(a),b=b.Hd;return a}function Qc(a,b){if(null===b)return this.Ue&&Q(`null is not a valid ${this.name}`),0;b.xd||Q(`Cannot pass "${Rc(b)}" as a ${this.name}`);b.xd.Dd||Q(`Cannot pass deleted object as a pointer of type ${this.name}`);return Pc(b.xd.Dd,b.xd.Fd.zd,this.zd)}
91
- function Sc(a,b){if(null===b){this.Ue&&Q(`null is not a valid ${this.name}`);if(this.Ce){var c=this.We();null!==a&&a.push(this.$d,c);return c}return 0}b.xd||Q(`Cannot pass "${Rc(b)}" as a ${this.name}`);b.xd.Dd||Q(`Cannot pass deleted object as a pointer of type ${this.name}`);!this.Be&&b.xd.Fd.Be&&Q(`Cannot convert argument of type ${b.xd.Qd?b.xd.Qd.name:b.xd.Fd.name} to parameter type ${this.name}`);c=Pc(b.xd.Dd,b.xd.Fd.zd,this.zd);if(this.Ce)switch(void 0===b.xd.Md&&Q("Passing raw pointer to smart pointer is illegal"),
92
- this.vg){case 0:b.xd.Qd===this?c=b.xd.Md:Q(`Cannot convert argument of type ${b.xd.Qd?b.xd.Qd.name:b.xd.Fd.name} to parameter type ${this.name}`);break;case 1:c=b.xd.Md;break;case 2:if(b.xd.Qd===this)c=b.xd.Md;else{var d=b.clone();c=this.qg(c,ec(function(){d["delete"]()}));null!==a&&a.push(this.$d,c)}break;default:Q("Unsupporting sharing policy")}return c}
93
- function Tc(a,b){if(null===b)return this.Ue&&Q(`null is not a valid ${this.name}`),0;b.xd||Q(`Cannot pass "${Rc(b)}" as a ${this.name}`);b.xd.Dd||Q(`Cannot pass deleted object as a pointer of type ${this.name}`);b.xd.Fd.Be&&Q(`Cannot convert argument of type ${b.xd.Fd.name} to parameter type ${this.name}`);return Pc(b.xd.Dd,b.xd.Fd.zd,this.zd)}
94
- function Uc(a,b,c,d){this.name=a;this.zd=b;this.Ue=c;this.Be=d;this.Ce=!1;this.$d=this.qg=this.We=this.uf=this.vg=this.pg=void 0;void 0!==b.Hd?this.toWireType=Sc:(this.toWireType=d?Qc:Tc,this.Pd=null)}function Vc(a,b,c){l.hasOwnProperty(a)||zc("Replacing nonexistant public symbol");void 0!==l[a].Id&&void 0!==c?l[a].Id[c]=b:(l[a]=b,l[a].je=c)}
95
- var Wc=(a,b)=>{var c=[];return function(){c.length=0;Object.assign(c,arguments);if(a.includes("j")){var d=l["dynCall_"+a];d=c&&c.length?d.apply(null,[b].concat(c)):d.call(null,b)}else d=H.get(b).apply(null,c);return d}};function T(a,b){a=R(a);var c=a.includes("j")?Wc(a,b):H.get(b);"function"!=typeof c&&Q(`unknown function pointer with signature ${a}: ${b}`);return c}var Xc=void 0;
96
- function Yc(a,b){function c(f){e[f]||nc[f]||(Gc[f]?Gc[f].forEach(c):(d.push(f),e[f]=!0))}var d=[],e={};b.forEach(c);throw new Xc(`${a}: `+d.map(oc).join([", "]));}
97
- function Zc(a,b,c,d,e){var f=b.length;2>f&&Q("argTypes array size mismatch! Must at least get return value and 'this' types!");var g=null!==b[1]&&null!==c,h=!1;for(c=1;c<b.length;++c)if(null!==b[c]&&void 0===b[c].Pd){h=!0;break}var p="void"!==b[0].name,m=f-2,t=Array(m),u=[],x=[];return function(){arguments.length!==m&&Q(`function ${a} called with ${arguments.length} arguments, expected ${m} args!`);x.length=0;u.length=g?2:1;u[0]=e;if(g){var k=b[1].toWireType(x,this);u[1]=k}for(var q=0;q<m;++q)t[q]=
98
- b[q+2].toWireType(x,arguments[q]),u.push(t[q]);q=d.apply(null,u);if(h)Dc(x);else for(var w=g?1:2;w<b.length;w++){var y=1===w?k:t[w-2];null!==b[w].Pd&&b[w].Pd(y)}k=p?b[0].fromWireType(q):void 0;return k}}function $c(a,b){for(var c=[],d=0;d<a;d++)c.push(E[b+4*d>>2]);return c}
99
- function ad(a,b,c){a instanceof Object||Q(`${c} with invalid "this": ${a}`);a instanceof b.zd.constructor||Q(`${c} incompatible with "this" of type ${a.constructor.name}`);a.xd.Dd||Q(`cannot call emscripten binding method ${c} on deleted object`);return Pc(a.xd.Dd,a.xd.Fd.zd,b.zd)}function bd(a){a>=P.yd&&0===--P.get(a).wf&&P.Cg(a)}
100
- function cd(a,b,c){switch(b){case 0:return function(d){return this.fromWireType((c?z:A)[d])};case 1:return function(d){return this.fromWireType((c?C:ya)[d>>1])};case 2:return function(d){return this.fromWireType((c?D:E)[d>>2])};default:throw new TypeError("Unknown integer type: "+a);}}function Rc(a){if(null===a)return"null";var b=typeof a;return"object"===b||"array"===b||"function"===b?a.toString():""+a}
101
- function dd(a,b){switch(b){case 2:return function(c){return this.fromWireType(G[c>>2])};case 3:return function(c){return this.fromWireType(za[c>>3])};default:throw new TypeError("Unknown float type: "+a);}}
102
- function ed(a,b,c){switch(b){case 0:return c?function(d){return z[d]}:function(d){return A[d]};case 1:return c?function(d){return C[d>>1]}:function(d){return ya[d>>1]};case 2:return c?function(d){return D[d>>2]}:function(d){return E[d>>2]};default:throw new TypeError("Unknown integer type: "+a);}}
103
- var fd="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,gd=(a,b)=>{var c=a>>1;for(var d=c+b/2;!(c>=d)&&ya[c];)++c;c<<=1;if(32<c-a&&fd)return fd.decode(A.subarray(a,c));c="";for(d=0;!(d>=b/2);++d){var e=C[a+2*d>>1];if(0==e)break;c+=String.fromCharCode(e)}return c},hd=(a,b,c)=>{void 0===c&&(c=2147483647);if(2>c)return 0;c-=2;var d=b;c=c<2*a.length?c/2:a.length;for(var e=0;e<c;++e)C[b>>1]=a.charCodeAt(e),b+=2;C[b>>1]=0;return b-d},jd=a=>2*a.length,kd=(a,b)=>{for(var c=0,d="";!(c>=b/
104
- 4);){var e=D[a+4*c>>2];if(0==e)break;++c;65536<=e?(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023)):d+=String.fromCharCode(e)}return d},ld=(a,b,c)=>{void 0===c&&(c=2147483647);if(4>c)return 0;var d=b;c=d+c-4;for(var e=0;e<a.length;++e){var f=a.charCodeAt(e);if(55296<=f&&57343>=f){var g=a.charCodeAt(++e);f=65536+((f&1023)<<10)|g&1023}D[b>>2]=f;b+=4;if(b+4>c)break}D[b>>2]=0;return b-d},md=a=>{for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);55296<=d&&57343>=d&&++c;b+=4}return b},nd={};
105
- function od(a){var b=nd[a];return void 0===b?R(a):b}var pd=[];function qd(a){var b=pd.length;pd.push(a);return b}function rd(a,b){for(var c=Array(a),d=0;d<a;++d)c[d]=rc(E[b+4*d>>2],"parameter "+d);return c}var sd=[],td=[];
106
- function ud(a){var b=a.getExtension("ANGLE_instanced_arrays");b&&(a.vertexAttribDivisor=function(c,d){b.vertexAttribDivisorANGLE(c,d)},a.drawArraysInstanced=function(c,d,e,f){b.drawArraysInstancedANGLE(c,d,e,f)},a.drawElementsInstanced=function(c,d,e,f,g){b.drawElementsInstancedANGLE(c,d,e,f,g)})}
107
- function vd(a){var b=a.getExtension("OES_vertex_array_object");b&&(a.createVertexArray=function(){return b.createVertexArrayOES()},a.deleteVertexArray=function(c){b.deleteVertexArrayOES(c)},a.bindVertexArray=function(c){b.bindVertexArrayOES(c)},a.isVertexArray=function(c){return b.isVertexArrayOES(c)})}function wd(a){var b=a.getExtension("WEBGL_draw_buffers");b&&(a.drawBuffers=function(c,d){b.drawBuffersWEBGL(c,d)})}
108
- var xd=1,zd=[],Ad=[],Bd=[],Cd=[],Dd=[],Ed=[],Fd=[],ha=[],Gd=[],Hd=[],Id={},Jd={},Kd=4;function U(a){Ld||(Ld=a)}function fa(a){for(var b=xd++,c=a.length;c<b;c++)a[c]=null;return b}
109
- function ja(a){a||(a=n);if(!a.fg){a.fg=!0;var b=a.Oe;ud(b);vd(b);wd(b);b.df=b.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");b.mf=b.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");2<=a.version&&(b.ef=b.getExtension("EXT_disjoint_timer_query_webgl2"));if(2>a.version||!b.ef)b.ef=b.getExtension("EXT_disjoint_timer_query");b.Lg=b.getExtension("WEBGL_multi_draw");(b.getSupportedExtensions()||[]).forEach(function(c){c.includes("lose_context")||c.includes("debug")||b.getExtension(c)})}}
110
- var Ld,n;function Md(a,b){r.bindFramebuffer(a,Bd[b])}function Nd(a){r.bindVertexArray(Fd[a])}function Od(a,b){for(var c=0;c<a;c++){var d=D[b+4*c>>2];r.deleteVertexArray(Fd[d]);Fd[d]=null}}var Pd=[];function Qd(a,b,c,d){r.drawElements(a,b,c,d)}function Rd(a,b,c,d){for(var e=0;e<a;e++){var f=r[c](),g=f&&fa(d);f?(f.name=g,d[g]=f):U(1282);D[b+4*e>>2]=g}}function Sd(a,b){Rd(a,b,"createVertexArray",Fd)}
111
- function Td(a,b){if(b){var c=void 0;switch(a){case 36346:c=1;break;case 36344:return;case 34814:case 36345:c=0;break;case 34466:var d=r.getParameter(34467);c=d?d.length:0;break;case 33309:if(2>n.version){U(1282);return}c=2*(r.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(2>n.version){U(1280);return}c=33307==a?3:0}if(void 0===c)switch(d=r.getParameter(a),typeof d){case "number":c=d;break;case "boolean":c=d?1:0;break;case "string":U(1280);return;case "object":if(null===d)switch(a){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:c=
112
- 0;break;default:U(1280);return}else{if(d instanceof Float32Array||d instanceof Uint32Array||d instanceof Int32Array||d instanceof Array){for(a=0;a<d.length;++a)D[b+4*a>>2]=d[a];return}try{c=d.name|0}catch(e){U(1280);ta("GL_INVALID_ENUM in glGet0v: Unknown object returned from WebGL getParameter("+a+")! (error: "+e+")");return}}break;default:U(1280);ta("GL_INVALID_ENUM in glGet0v: Native code calling glGet0v("+a+") and it returns "+d+" of type "+typeof d+"!");return}D[b>>2]=c}else U(1281)}
113
- function Ud(a,b){Td(a,b)}var Wd=a=>{var b=db(a)+1,c=Vd(b);c&&eb(a,A,c,b);return c};function Xd(a){return"]"==a.slice(-1)&&a.lastIndexOf("[")}function Yd(a){a-=5120;return 0==a?z:1==a?A:2==a?C:4==a?D:6==a?G:5==a||28922==a||28520==a||30779==a||30782==a?E:ya}function Zd(a,b,c,d,e){a=Yd(a);var f=31-Math.clz32(a.BYTES_PER_ELEMENT),g=Kd;return a.subarray(e>>f,e+d*(c*({5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[b-6402]||1)*(1<<f)+g-1&-g)>>f)}
114
- function V(a){var b=r.Rf;if(b){var c=b.se[a];"number"==typeof c&&(b.se[a]=c=r.getUniformLocation(b,b.Af[a]+(0<c?"["+c+"]":"")));return c}U(1282)}
115
- var $d=[],ae=[],be={},de=()=>{if(!ce){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:ma||"./this.program"},b;for(b in be)void 0===be[b]?delete a[b]:a[b]=be[b];var c=[];for(b in a)c.push(`${b}=${a[b]}`);ce=c}return ce},ce,ee=a=>0===a%4&&(0!==a%100||0===a%400),fe=[31,29,31,30,31,30,31,31,30,31,30,31],ge=[31,28,31,30,31,30,31,31,30,31,30,31],he=(a,b,c,d)=>
116
- {function e(k,q,w){for(k="number"==typeof k?k.toString():k||"";k.length<q;)k=w[0]+k;return k}function f(k,q){return e(k,q,"0")}function g(k,q){function w(F){return 0>F?-1:0<F?1:0}var y;0===(y=w(k.getFullYear()-q.getFullYear()))&&0===(y=w(k.getMonth()-q.getMonth()))&&(y=w(k.getDate()-q.getDate()));return y}function h(k){switch(k.getDay()){case 0:return new Date(k.getFullYear()-1,11,29);case 1:return k;case 2:return new Date(k.getFullYear(),0,3);case 3:return new Date(k.getFullYear(),0,2);case 4:return new Date(k.getFullYear(),
117
- 0,1);case 5:return new Date(k.getFullYear()-1,11,31);case 6:return new Date(k.getFullYear()-1,11,30)}}function p(k){var q=k.fe;for(k=new Date((new Date(k.ge+1900,0,1)).getTime());0<q;){var w=k.getMonth(),y=(ee(k.getFullYear())?fe:ge)[w];if(q>y-k.getDate())q-=y-k.getDate()+1,k.setDate(1),11>w?k.setMonth(w+1):(k.setMonth(0),k.setFullYear(k.getFullYear()+1));else{k.setDate(k.getDate()+q);break}}w=new Date(k.getFullYear()+1,0,4);q=h(new Date(k.getFullYear(),0,4));w=h(w);return 0>=g(q,k)?0>=g(w,k)?k.getFullYear()+
118
- 1:k.getFullYear():k.getFullYear()-1}var m=D[d+40>>2];d={yg:D[d>>2],xg:D[d+4>>2],Me:D[d+8>>2],Ye:D[d+12>>2],Ne:D[d+16>>2],ge:D[d+20>>2],Wd:D[d+24>>2],fe:D[d+28>>2],Og:D[d+32>>2],wg:D[d+36>>2],zg:m?m?bb(A,m):"":""};c=c?bb(A,c):"";m={"%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",
119
- "%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var t in m)c=c.replace(new RegExp(t,"g"),m[t]);var u="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),x="January February March April May June July August September October November December".split(" ");m={"%a":k=>u[k.Wd].substring(0,3),"%A":k=>u[k.Wd],"%b":k=>x[k.Ne].substring(0,3),"%B":k=>x[k.Ne],"%C":k=>f((k.ge+1900)/100|0,2),"%d":k=>f(k.Ye,2),"%e":k=>e(k.Ye,2," "),"%g":k=>
120
- p(k).toString().substring(2),"%G":k=>p(k),"%H":k=>f(k.Me,2),"%I":k=>{k=k.Me;0==k?k=12:12<k&&(k-=12);return f(k,2)},"%j":k=>{for(var q=0,w=0;w<=k.Ne-1;q+=(ee(k.ge+1900)?fe:ge)[w++]);return f(k.Ye+q,3)},"%m":k=>f(k.Ne+1,2),"%M":k=>f(k.xg,2),"%n":()=>"\n","%p":k=>0<=k.Me&&12>k.Me?"AM":"PM","%S":k=>f(k.yg,2),"%t":()=>"\t","%u":k=>k.Wd||7,"%U":k=>f(Math.floor((k.fe+7-k.Wd)/7),2),"%V":k=>{var q=Math.floor((k.fe+7-(k.Wd+6)%7)/7);2>=(k.Wd+371-k.fe-2)%7&&q++;if(q)53==q&&(w=(k.Wd+371-k.fe)%7,4==w||3==w&&ee(k.ge)||
121
- (q=1));else{q=52;var w=(k.Wd+7-k.fe-1)%7;(4==w||5==w&&ee(k.ge%400-1))&&q++}return f(q,2)},"%w":k=>k.Wd,"%W":k=>f(Math.floor((k.fe+7-(k.Wd+6)%7)/7),2),"%y":k=>(k.ge+1900).toString().substring(2),"%Y":k=>k.ge+1900,"%z":k=>{k=k.wg;var q=0<=k;k=Math.abs(k)/60;return(q?"+":"-")+String("0000"+(k/60*100+k%60)).slice(-4)},"%Z":k=>k.zg,"%%":()=>"%"};c=c.replace(/%%/g,"\x00\x00");for(t in m)c.includes(t)&&(c=c.replace(new RegExp(t,"g"),m[t](d)));c=c.replace(/\0\0/g,"%");t=fb(c,!1);if(t.length>b)return 0;z.set(t,
122
- a);return t.length-1};function Fb(a,b,c,d){a||(a=this);this.parent=a;this.Yd=a.Yd;this.He=null;this.id=wb++;this.name=b;this.mode=c;this.Ad={};this.Cd={};this.qe=d}Object.defineProperties(Fb.prototype,{read:{get:function(){return 365===(this.mode&365)},set:function(a){a?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146===(this.mode&146)},set:function(a){a?this.mode|=146:this.mode&=-147}}});Tb();xb=Array(4096);Mb(O,"/");Nb("/tmp",16895,0);Nb("/home",16895,0);
123
- Nb("/home/web_user",16895,0);(()=>{Nb("/dev",16895,0);ib(259,{read:()=>0,write:(d,e,f,g)=>g});Ob("/dev/null",259);hb(1280,kb);hb(1536,lb);Ob("/dev/tty",1280);Ob("/dev/tty1",1536);var a=new Uint8Array(1024),b=0,c=()=>{0===b&&(b=Za(a).byteLength);return a[--b]};Wb("random",c);Wb("urandom",c);Nb("/dev/shm",16895,0);Nb("/dev/shm/tmp",16895,0)})();
124
- (()=>{Nb("/proc",16895,0);var a=Nb("/proc/self",16895,0);Nb("/proc/self/fd",16895,0);Mb({Yd:()=>{var b=ob(a,"fd",16895,73);b.Ad={pe:(c,d)=>{var e=Jb(+d);c={parent:null,Yd:{pf:"fake"},Ad:{re:()=>e.path}};return c.parent=c}};return b}},"/proc/self/fd")})();Object.assign(bc.prototype,{get(a){return this.Rd[a]},has(a){return void 0!==this.Rd[a]},xe(a){var b=this.hf.pop()||this.Rd.length;this.Rd[b]=a;return b},Cg(a){this.Rd[a]=void 0;this.hf.push(a)}});
125
- cc=l.BindingError=class extends Error{constructor(a){super(a);this.name="BindingError"}};P.Rd.push({value:void 0},{value:null},{value:!0},{value:!1});P.yd=P.Rd.length;l.count_emval_handles=function(){for(var a=0,b=P.yd;b<P.Rd.length;++b)void 0!==P.Rd[b]&&++a;return a};gc=l.PureVirtualError=fc("PureVirtualError");for(var ie=Array(256),je=0;256>je;++je)ie[je]=String.fromCharCode(je);hc=ie;l.getInheritedInstanceCount=function(){return Object.keys(lc).length};
126
- l.getLiveInheritedInstances=function(){var a=[],b;for(b in lc)lc.hasOwnProperty(b)&&a.push(lc[b]);return a};l.flushPendingDeletes=jc;l.setDelayFunction=function(a){kc=a;ic.length&&kc&&kc(jc)};yc=l.InternalError=class extends Error{constructor(a){super(a);this.name="InternalError"}};Lc.prototype.isAliasOf=function(a){if(!(this instanceof Lc&&a instanceof Lc))return!1;var b=this.xd.Fd.zd,c=this.xd.Dd,d=a.xd.Fd.zd;for(a=a.xd.Dd;b.Hd;)c=b.te(c),b=b.Hd;for(;d.Hd;)a=d.te(a),d=d.Hd;return b===d&&c===a};
127
- Lc.prototype.clone=function(){this.xd.Dd||Kc(this);if(this.xd.ne)return this.xd.count.value+=1,this;var a=Bc,b=Object,c=b.create,d=Object.getPrototypeOf(this),e=this.xd;a=a(c.call(b,d,{xd:{value:{count:e.count,le:e.le,ne:e.ne,Dd:e.Dd,Fd:e.Fd,Md:e.Md,Qd:e.Qd}}}));a.xd.count.value+=1;a.xd.le=!1;return a};Lc.prototype["delete"]=function(){this.xd.Dd||Kc(this);this.xd.le&&!this.xd.ne&&Q("Object already scheduled for deletion");sc(this);uc(this.xd);this.xd.ne||(this.xd.Md=void 0,this.xd.Dd=void 0)};
128
- Lc.prototype.isDeleted=function(){return!this.xd.Dd};Lc.prototype.deleteLater=function(){this.xd.Dd||Kc(this);this.xd.le&&!this.xd.ne&&Q("Object already scheduled for deletion");ic.push(this);1===ic.length&&kc&&kc(jc);this.xd.le=!0;return this};Uc.prototype.$f=function(a){this.uf&&(a=this.uf(a));return a};Uc.prototype.cf=function(a){this.$d&&this.$d(a)};Uc.prototype.argPackAdvance=8;Uc.prototype.readValueFromPointer=Ec;Uc.prototype.deleteObject=function(a){if(null!==a)a["delete"]()};
129
- Uc.prototype.fromWireType=function(a){function b(){return this.Ce?Ac(this.zd.Td,{Fd:this.pg,Dd:c,Qd:this,Md:a}):Ac(this.zd.Td,{Fd:this,Dd:a})}var c=this.$f(a);if(!c)return this.cf(a),null;var d=xc(this.zd,c);if(void 0!==d){if(0===d.xd.count.value)return d.xd.Dd=c,d.xd.Md=a,d.clone();d=d.clone();this.cf(a);return d}d=this.zd.Zf(c);d=wc[d];if(!d)return b.call(this);d=this.Be?d.Of:d.pointerType;var e=vc(c,this.zd,d.zd);return null===e?b.call(this):this.Ce?Ac(d.zd.Td,{Fd:d,Dd:e,Qd:this,Md:a}):Ac(d.zd.Td,
130
- {Fd:d,Dd:e})};Xc=l.UnboundTypeError=fc("UnboundTypeError");for(var r,W=0;32>W;++W)Pd.push(Array(W));var ke=new Float32Array(288);for(W=0;288>W;++W)$d[W]=ke.subarray(0,W+1);var le=new Int32Array(288);for(W=0;288>W;++W)ae[W]=le.subarray(0,W+1);
131
- var Be={J:function(a,b,c){Yb=c;try{var d=Jb(a);switch(b){case 0:var e=Zb();return 0>e?-28:Lb(d,e).be;case 1:case 2:return 0;case 3:return d.flags;case 4:return e=Zb(),d.flags|=e,0;case 5:return e=Zb(),C[e+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return D[me()>>2]=28,-1;default:return-28}}catch(f){if("undefined"==typeof Xb||"ErrnoError"!==f.name)throw f;return-f.ae}},tb:function(a,b){try{a:{var c=Jb(a).path;try{var d=Ab(c,{Se:!0}).node;if(!d)throw new M(44);if(!d.Ad.Sd)throw new M(63);
132
- var e=d.Ad.Sd(d)}catch(m){if(m&&m.node&&Va(c)!==Va(Bb(m.node))){var f=-54;break a}throw m;}D[b>>2]=e.Tf;D[b+4>>2]=e.mode;E[b+8>>2]=e.og;D[b+12>>2]=e.uid;D[b+16>>2]=e.dg;D[b+20>>2]=e.qe;J=[e.size>>>0,(I=e.size,1<=+Math.abs(I)?0<I?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)];D[b+24>>2]=J[0];D[b+28>>2]=J[1];D[b+32>>2]=4096;D[b+36>>2]=e.Nf;var g=e.Lf.getTime(),h=e.mg.getTime(),p=e.Pf.getTime();J=[Math.floor(g/1E3)>>>0,(I=Math.floor(g/1E3),1<=+Math.abs(I)?0<I?+Math.floor(I/
133
- 4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)];D[b+40>>2]=J[0];D[b+44>>2]=J[1];E[b+48>>2]=g%1E3*1E3;J=[Math.floor(h/1E3)>>>0,(I=Math.floor(h/1E3),1<=+Math.abs(I)?0<I?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)];D[b+56>>2]=J[0];D[b+60>>2]=J[1];E[b+64>>2]=h%1E3*1E3;J=[Math.floor(p/1E3)>>>0,(I=Math.floor(p/1E3),1<=+Math.abs(I)?0<I?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)];D[b+72>>2]=J[0];D[b+76>>2]=J[1];E[b+80>>2]=
134
- p%1E3*1E3;J=[e.kf>>>0,(I=e.kf,1<=+Math.abs(I)?0<I?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)];D[b+88>>2]=J[0];D[b+92>>2]=J[1];f=0}return f}catch(m){if("undefined"==typeof Xb||"ErrnoError"!==m.name)throw m;return-m.ae}},wb:function(a,b,c){Yb=c;try{var d=Jb(a);switch(b){case 21509:return d.Ed?0:-59;case 21505:if(!d.Ed)return-59;if(d.Ed.Zd.hg){b=[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var e=Zb();D[e>>2]=25856;D[e+4>>2]=5;D[e+8>>2]=
135
- 191;D[e+12>>2]=35387;for(var f=0;32>f;f++)z[e+f+17>>0]=b[f]||0}return 0;case 21510:case 21511:case 21512:return d.Ed?0:-59;case 21506:case 21507:case 21508:if(!d.Ed)return-59;if(d.Ed.Zd.ig)for(e=Zb(),b=[],f=0;32>f;f++)b.push(z[e+f+17>>0]);return 0;case 21519:if(!d.Ed)return-59;e=Zb();return D[e>>2]=0;case 21520:return d.Ed?-28:-59;case 21531:e=Zb();if(!d.Cd.gg)throw new M(59);return d.Cd.gg(d,b,e);case 21523:if(!d.Ed)return-59;d.Ed.Zd.jg&&(f=[24,80],e=Zb(),C[e>>1]=f[0],C[e+2>>1]=f[1]);return 0;case 21524:return d.Ed?
136
- 0:-59;case 21515:return d.Ed?0:-59;default:return-28}}catch(g){if("undefined"==typeof Xb||"ErrnoError"!==g.name)throw g;return-g.ae}},xb:function(a,b,c,d){Yb=d;try{b=b?bb(A,b):"";var e=b;if("/"===e.charAt(0))b=e;else{var f=-100===a?"/":Jb(a).path;if(0==e.length)throw new M(44);b=Va(f+"/"+e)}var g=d?Zb():0;return Rb(b,c,g).be}catch(h){if("undefined"==typeof Xb||"ErrnoError"!==h.name)throw h;return-h.ae}},E:function(a,b,c){a=R(a);b=rc(b,"wrapper");c=dc(c);var d=[].slice,e=b.zd,f=e.Td,g=e.Hd.Td,h=e.Hd.constructor;
137
- a=ac(a,function(){e.Hd.tf.forEach(function(m){if(this[m]===g[m])throw new gc(`Pure virtual function ${m} must be implemented in JavaScript`);}.bind(this));Object.defineProperty(this,"__parent",{value:f});this.__construct.apply(this,d.call(arguments))});f.__construct=function(){this===f&&Q("Pass correct 'this' to __construct");var m=h.implement.apply(void 0,[this].concat(d.call(arguments)));sc(m);var t=m.xd;m.notifyOnDestruction();t.ne=!0;Object.defineProperties(this,{xd:{value:t}});Bc(this);m=t.Dd;
138
- m=mc(e,m);lc.hasOwnProperty(m)?Q(`Tried to register registered instance: ${m}`):lc[m]=this};f.__destruct=function(){this===f&&Q("Pass correct 'this' to __destruct");sc(this);var m=this.xd.Dd;m=mc(e,m);lc.hasOwnProperty(m)?delete lc[m]:Q(`Tried to unregister unregistered instance: ${m}`)};a.prototype=Object.create(f);for(var p in c)a.prototype[p]=c[p];return ec(a)},zb:function(a){var b=Cc[a];delete Cc[a];var c=b.We,d=b.$d,e=b.ff,f=e.map(g=>g.cg).concat(e.map(g=>g.tg));S([a],f,g=>{var h={};e.forEach((p,
139
- m)=>{var t=g[m],u=p.ag,x=p.bg,k=g[m+e.length],q=p.sg,w=p.ug;h[p.Xf]={read:y=>t.fromWireType(u(x,y)),write:(y,F)=>{var B=[];q(w,y,k.toWireType(B,F));Dc(B)}}});return[{name:b.name,fromWireType:function(p){var m={},t;for(t in h)m[t]=h[t].read(p);d(p);return m},toWireType:function(p,m){for(var t in h)if(!(t in m))throw new TypeError(`Missing field: "${t}"`);var u=c();for(t in h)h[t].write(u,m[t]);null!==p&&p.push(d,u);return u},argPackAdvance:8,readValueFromPointer:Ec,Pd:d}]})},ib:function(){},Ab:function(a,
140
- b,c,d,e){var f=Ic(c);b=R(b);Hc(a,{name:b,fromWireType:function(g){return!!g},toWireType:function(g,h){return h?d:e},argPackAdvance:8,readValueFromPointer:function(g){if(1===c)var h=z;else if(2===c)h=C;else if(4===c)h=D;else throw new TypeError("Unknown boolean type size: "+b);return this.fromWireType(h[g>>f])},Pd:null})},i:function(a,b,c,d,e,f,g,h,p,m,t,u,x){t=R(t);f=T(e,f);h&&(h=T(g,h));m&&(m=T(p,m));x=T(u,x);var k=$b(t);Nc(k,function(){Yc(`Cannot construct ${t} due to unbound types`,[d])});S([a,
141
- b,c],d?[d]:[],function(q){q=q[0];if(d){var w=q.zd;var y=w.Td}else y=Lc.prototype;q=ac(k,function(){if(Object.getPrototypeOf(this)!==F)throw new cc("Use 'new' to construct "+t);if(void 0===B.de)throw new cc(t+" has no accessible constructor");var N=B.de[arguments.length];if(void 0===N)throw new cc(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(B.de).toString()}) parameters instead!`);return N.apply(this,arguments)});var F=Object.create(y,
142
- {constructor:{value:q}});q.prototype=F;var B=new Oc(t,q,F,x,w,f,h,m);B.Hd&&(void 0===B.Hd.ue&&(B.Hd.ue=[]),B.Hd.ue.push(B));w=new Uc(t,B,!0,!1);y=new Uc(t+"*",B,!1,!1);var K=new Uc(t+" const*",B,!1,!0);wc[a]={pointerType:y,Of:K};Vc(k,q);return[w,y,K]})},y:function(a,b,c,d,e,f,g){var h=$c(c,d);b=R(b);f=T(e,f);S([],[a],function(p){function m(){Yc(`Cannot call ${t} due to unbound types`,h)}p=p[0];var t=`${p.name}.${b}`;b.startsWith("@@")&&(b=Symbol[b.substring(2)]);var u=p.zd.constructor;void 0===u[b]?
143
- (m.je=c-1,u[b]=m):(Mc(u,b,t),u[b].Id[c-1]=m);S([],h,function(x){x=Zc(t,[x[0],null].concat(x.slice(1)),null,f,g);void 0===u[b].Id?(x.je=c-1,u[b]=x):u[b].Id[c-1]=x;if(p.zd.ue)for(const k of p.zd.ue)k.constructor.hasOwnProperty(b)||(k.constructor[b]=x);return[]});return[]})},C:function(a,b,c,d,e,f,g,h){b=R(b);f=T(e,f);S([],[a],function(p){p=p[0];var m=`${p.name}.${b}`,t={get(){Yc(`Cannot access ${m} due to unbound types`,[c])},enumerable:!0,configurable:!0};t.set=h?()=>{Yc(`Cannot access ${m} due to unbound types`,
144
- [c])}:()=>{Q(`${m} is a read-only property`)};Object.defineProperty(p.zd.constructor,b,t);S([],[c],function(u){u=u[0];var x={get(){return u.fromWireType(f(d))},enumerable:!0};h&&(h=T(g,h),x.set=k=>{var q=[];h(d,u.toWireType(q,k));Dc(q)});Object.defineProperty(p.zd.constructor,b,x);return[]});return[]})},u:function(a,b,c,d,e,f){var g=$c(b,c);e=T(d,e);S([],[a],function(h){h=h[0];var p=`constructor ${h.name}`;void 0===h.zd.de&&(h.zd.de=[]);if(void 0!==h.zd.de[b-1])throw new cc(`Cannot register multiple constructors with identical number of parameters (${b-
145
- 1}) for class '${h.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);h.zd.de[b-1]=()=>{Yc(`Cannot construct ${h.name} due to unbound types`,g)};S([],g,function(m){m.splice(1,0,null);h.zd.de[b-1]=Zc(p,m,null,e,f);return[]});return[]})},c:function(a,b,c,d,e,f,g,h){var p=$c(c,d);b=R(b);f=T(e,f);S([],[a],function(m){function t(){Yc(`Cannot call ${u} due to unbound types`,p)}m=m[0];var u=`${m.name}.${b}`;b.startsWith("@@")&&(b=Symbol[b.substring(2)]);
146
- h&&m.zd.tf.push(b);var x=m.zd.Td,k=x[b];void 0===k||void 0===k.Id&&k.className!==m.name&&k.je===c-2?(t.je=c-2,t.className=m.name,x[b]=t):(Mc(x,b,u),x[b].Id[c-2]=t);S([],p,function(q){q=Zc(u,q,m,f,g);void 0===x[b].Id?(q.je=c-2,x[b]=q):x[b].Id[c-2]=q;return[]});return[]})},d:function(a,b,c,d,e,f,g,h,p,m){b=R(b);e=T(d,e);S([],[a],function(t){t=t[0];var u=`${t.name}.${b}`,x={get(){Yc(`Cannot access ${u} due to unbound types`,[c,g])},enumerable:!0,configurable:!0};x.set=p?()=>{Yc(`Cannot access ${u} due to unbound types`,
147
- [c,g])}:()=>{Q(u+" is a read-only property")};Object.defineProperty(t.zd.Td,b,x);S([],p?[c,g]:[c],function(k){var q=k[0],w={get(){var F=ad(this,t,u+" getter");return q.fromWireType(e(f,F))},enumerable:!0};if(p){p=T(h,p);var y=k[1];w.set=function(F){var B=ad(this,t,u+" setter"),K=[];p(m,B,y.toWireType(K,F));Dc(K)}}Object.defineProperty(t.zd.Td,b,w);return[]});return[]})},yb:function(a,b){b=R(b);Hc(a,{name:b,fromWireType:function(c){var d=dc(c);bd(c);return d},toWireType:function(c,d){return ec(d)},
148
- argPackAdvance:8,readValueFromPointer:Ec,Pd:null})},N:function(a,b,c,d){function e(){}c=Ic(c);b=R(b);e.values={};Hc(a,{name:b,constructor:e,fromWireType:function(f){return this.constructor.values[f]},toWireType:function(f,g){return g.value},argPackAdvance:8,readValueFromPointer:cd(b,c,d),Pd:null});Nc(b,e)},m:function(a,b,c){var d=rc(a,"enum");b=R(b);a=d.constructor;d=Object.create(d.constructor.prototype,{value:{value:c},constructor:{value:ac(`${d.name}_${b}`,function(){})}});a.values[c]=d;a[b]=d},
149
- L:function(a,b,c){c=Ic(c);b=R(b);Hc(a,{name:b,fromWireType:function(d){return d},toWireType:function(d,e){return e},argPackAdvance:8,readValueFromPointer:dd(b,c),Pd:null})},o:function(a,b,c,d,e,f){var g=$c(b,c);a=R(a);e=T(d,e);Nc(a,function(){Yc(`Cannot call ${a} due to unbound types`,g)},b-1);S([],g,function(h){Vc(a,Zc(a,[h[0],null].concat(h.slice(1)),null,e,f),b-1);return[]})},r:function(a,b,c,d,e){b=R(b);-1===e&&(e=4294967295);e=Ic(c);var f=h=>h;if(0===d){var g=32-8*c;f=h=>h<<g>>>g}c=b.includes("unsigned")?
150
- function(h,p){return p>>>0}:function(h,p){return p};Hc(a,{name:b,fromWireType:f,toWireType:c,argPackAdvance:8,readValueFromPointer:ed(b,e,0!==d),Pd:null})},l:function(a,b,c){function d(f){f>>=2;var g=E;return new e(g.buffer,g[f+1],g[f])}var e=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][b];c=R(c);Hc(a,{name:c,fromWireType:d,argPackAdvance:8,readValueFromPointer:d},{eg:!0})},M:function(a,b){b=R(b);var c="std::string"===b;Hc(a,{name:b,fromWireType:function(d){var e=
151
- E[d>>2],f=d+4;if(c)for(var g=f,h=0;h<=e;++h){var p=f+h;if(h==e||0==A[p]){g=g?bb(A,g,p-g):"";if(void 0===m)var m=g;else m+=String.fromCharCode(0),m+=g;g=p+1}}else{m=Array(e);for(h=0;h<e;++h)m[h]=String.fromCharCode(A[f+h]);m=m.join("")}qc(d);return m},toWireType:function(d,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var f="string"==typeof e;f||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||Q("Cannot pass non-string to std::string");var g=c&&f?db(e):e.length;
152
- var h=Vd(4+g+1),p=h+4;E[h>>2]=g;if(c&&f)eb(e,A,p,g+1);else if(f)for(f=0;f<g;++f){var m=e.charCodeAt(f);255<m&&(qc(p),Q("String has UTF-16 code units that do not fit in 8 bits"));A[p+f]=m}else for(f=0;f<g;++f)A[p+f]=e[f];null!==d&&d.push(qc,h);return h},argPackAdvance:8,readValueFromPointer:Ec,Pd:function(d){qc(d)}})},B:function(a,b,c){c=R(c);if(2===b){var d=gd;var e=hd;var f=jd;var g=()=>ya;var h=1}else 4===b&&(d=kd,e=ld,f=md,g=()=>E,h=2);Hc(a,{name:c,fromWireType:function(p){for(var m=E[p>>2],t=
153
- g(),u,x=p+4,k=0;k<=m;++k){var q=p+4+k*b;if(k==m||0==t[q>>h])x=d(x,q-x),void 0===u?u=x:(u+=String.fromCharCode(0),u+=x),x=q+b}qc(p);return u},toWireType:function(p,m){"string"!=typeof m&&Q(`Cannot pass non-string to C++ string type ${c}`);var t=f(m),u=Vd(4+t+b);E[u>>2]=t>>h;e(m,u+4,t+b);null!==p&&p.push(qc,u);return u},argPackAdvance:8,readValueFromPointer:Ec,Pd:function(p){qc(p)}})},Ub:function(a,b,c,d,e,f){Cc[a]={name:R(b),We:T(c,d),$d:T(e,f),ff:[]}},Jb:function(a,b,c,d,e,f,g,h,p,m){Cc[a].ff.push({Xf:R(b),
154
- cg:c,ag:T(d,e),bg:f,tg:g,sg:T(h,p),ug:m})},Bb:function(a,b){b=R(b);Hc(a,{kg:!0,name:b,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},pb:()=>!0,mb:()=>{throw Infinity;},eb:function(a,b,c){a=dc(a);b=rc(b,"emval::as");var d=[],e=ec(d);E[c>>2]=e;return b.toWireType(d,a)},gb:function(a,b,c,d,e){a=pd[a];b=dc(b);c=od(c);var f=[];E[d>>2]=ec(f);return a(b,c,f,e)},I:function(a,b,c,d){a=pd[a];b=dc(b);c=od(c);a(b,c,null,d)},g:bd,A:function(a,b){var c=rd(a,b),d=c[0];b=d.name+"_$"+c.slice(1).map(function(g){return g.name}).join("_")+
155
- "$";var e=sd[b];if(void 0!==e)return e;var f=Array(a-1);e=qd((g,h,p,m)=>{for(var t=0,u=0;u<a-1;++u)f[u]=c[u+1].readValueFromPointer(m+t),t+=c[u+1].argPackAdvance;g=g[h].apply(g,f);for(u=0;u<a-1;++u)c[u+1].Sf&&c[u+1].Sf(f[u]);if(!d.kg)return d.toWireType(p,g)});return sd[b]=e},fb:function(a,b){a=dc(a);b=dc(b);return ec(a[b])},x:function(a){4<a&&(P.get(a).wf+=1)},s:function(a){return ec(od(a))},O:function(){return ec({})},F:function(a){var b=dc(a);Dc(b);bd(a)},q:function(a,b,c){a=dc(a);b=dc(b);c=dc(c);
156
- a[b]=c},w:function(a,b){a=rc(a,"_emval_take_value");a=a.readValueFromPointer(b);return ec(a)},a:()=>{va("")},p:(a,b,c)=>{td.length=0;var d;for(c>>=2;d=A[b++];)c+=105!=d&c,td.push(105==d?D[c]:za[c++>>1]),++c;return Sa[a].apply(null,td)},qb:()=>performance.now(),_a:function(a){r.activeTexture(a)},Za:function(a,b){r.attachShader(Ad[a],Ed[b])},Ya:function(a,b,c){r.bindAttribLocation(Ad[a],b,c?bb(A,c):"")},Xa:function(a,b){35051==a?r.Qe=b:35052==a&&(r.ke=b);r.bindBuffer(a,zd[b])},bc:Md,ac:function(a,b){r.bindRenderbuffer(a,
157
- Cd[b])},Kb:function(a,b){r.bindSampler(a,Gd[b])},Wa:function(a,b){r.bindTexture(a,Dd[b])},tc:Nd,qc:Nd,Va:function(a,b,c,d){r.blendColor(a,b,c,d)},Ua:function(a){r.blendEquation(a)},Ta:function(a,b){r.blendFunc(a,b)},Pb:function(a,b,c,d,e,f,g,h,p,m){r.blitFramebuffer(a,b,c,d,e,f,g,h,p,m)},Sa:function(a,b,c,d){2<=n.version?c&&b?r.bufferData(a,A,d,c,b):r.bufferData(a,b,d):r.bufferData(a,c?A.subarray(c,c+b):b,d)},Ra:function(a,b,c,d){2<=n.version?c&&r.bufferSubData(a,b,A,d,c):r.bufferSubData(a,b,A.subarray(d,
158
- d+c))},$b:function(a){return r.checkFramebufferStatus(a)},Qa:function(a){r.clear(a)},Pa:function(a,b,c,d){r.clearColor(a,b,c,d)},Oa:function(a){r.clearStencil(a)},bb:function(a,b,c,d){return r.clientWaitSync(Hd[a],b,(c>>>0)+4294967296*d)},Na:function(a,b,c,d){r.colorMask(!!a,!!b,!!c,!!d)},Ma:function(a){r.compileShader(Ed[a])},La:function(a,b,c,d,e,f,g,h){2<=n.version?r.ke||!g?r.compressedTexImage2D(a,b,c,d,e,f,g,h):r.compressedTexImage2D(a,b,c,d,e,f,A,h,g):r.compressedTexImage2D(a,b,c,d,e,f,h?A.subarray(h,
159
- h+g):null)},Ka:function(a,b,c,d,e,f,g,h,p){2<=n.version?r.ke||!h?r.compressedTexSubImage2D(a,b,c,d,e,f,g,h,p):r.compressedTexSubImage2D(a,b,c,d,e,f,g,A,p,h):r.compressedTexSubImage2D(a,b,c,d,e,f,g,p?A.subarray(p,p+h):null)},Ja:function(a,b,c,d,e,f,g,h){r.copyTexSubImage2D(a,b,c,d,e,f,g,h)},Ia:function(){var a=fa(Ad),b=r.createProgram();b.name=a;b.Fe=b.De=b.Ee=0;b.Ze=1;Ad[a]=b;return a},Ha:function(a){var b=fa(Ed);Ed[b]=r.createShader(a);return b},Ga:function(a){r.cullFace(a)},Fa:function(a,b){for(var c=
160
- 0;c<a;c++){var d=D[b+4*c>>2],e=zd[d];e&&(r.deleteBuffer(e),e.name=0,zd[d]=null,d==r.Qe&&(r.Qe=0),d==r.ke&&(r.ke=0))}},_b:function(a,b){for(var c=0;c<a;++c){var d=D[b+4*c>>2],e=Bd[d];e&&(r.deleteFramebuffer(e),e.name=0,Bd[d]=null)}},Ea:function(a){if(a){var b=Ad[a];b?(r.deleteProgram(b),b.name=0,Ad[a]=null):U(1281)}},Zb:function(a,b){for(var c=0;c<a;c++){var d=D[b+4*c>>2],e=Cd[d];e&&(r.deleteRenderbuffer(e),e.name=0,Cd[d]=null)}},Ib:function(a,b){for(var c=0;c<a;c++){var d=D[b+4*c>>2],e=Gd[d];e&&(r.deleteSampler(e),
161
- e.name=0,Gd[d]=null)}},Da:function(a){if(a){var b=Ed[a];b?(r.deleteShader(b),Ed[a]=null):U(1281)}},Nb:function(a){if(a){var b=Hd[a];b?(r.deleteSync(b),b.name=0,Hd[a]=null):U(1281)}},Ca:function(a,b){for(var c=0;c<a;c++){var d=D[b+4*c>>2],e=Dd[d];e&&(r.deleteTexture(e),e.name=0,Dd[d]=null)}},sc:Od,pc:Od,Ba:function(a){r.depthMask(!!a)},Aa:function(a){r.disable(a)},za:function(a){r.disableVertexAttribArray(a)},ya:function(a,b,c){r.drawArrays(a,b,c)},nc:function(a,b,c,d){r.drawArraysInstanced(a,b,c,
162
- d)},lc:function(a,b,c,d,e){r.df.drawArraysInstancedBaseInstanceWEBGL(a,b,c,d,e)},jc:function(a,b){for(var c=Pd[a],d=0;d<a;d++)c[d]=D[b+4*d>>2];r.drawBuffers(c)},xa:Qd,mc:function(a,b,c,d,e){r.drawElementsInstanced(a,b,c,d,e)},kc:function(a,b,c,d,e,f,g){r.df.drawElementsInstancedBaseVertexBaseInstanceWEBGL(a,b,c,d,e,f,g)},fc:function(a,b,c,d,e,f){Qd(a,d,e,f)},wa:function(a){r.enable(a)},va:function(a){r.enableVertexAttribArray(a)},Mb:function(a,b){return(a=r.fenceSync(a,b))?(b=fa(Hd),a.name=b,Hd[b]=
163
- a,b):0},ua:function(){r.finish()},ta:function(){r.flush()},Yb:function(a,b,c,d){r.framebufferRenderbuffer(a,b,c,Cd[d])},Xb:function(a,b,c,d,e){r.framebufferTexture2D(a,b,c,Dd[d],e)},sa:function(a){r.frontFace(a)},ra:function(a,b){Rd(a,b,"createBuffer",zd)},Wb:function(a,b){Rd(a,b,"createFramebuffer",Bd)},Vb:function(a,b){Rd(a,b,"createRenderbuffer",Cd)},Hb:function(a,b){Rd(a,b,"createSampler",Gd)},qa:function(a,b){Rd(a,b,"createTexture",Dd)},rc:Sd,oc:Sd,Tb:function(a){r.generateMipmap(a)},pa:function(a,
164
- b,c){c?D[c>>2]=r.getBufferParameter(a,b):U(1281)},oa:function(){var a=r.getError()||Ld;Ld=0;return a},Sb:function(a,b,c,d){a=r.getFramebufferAttachmentParameter(a,b,c);if(a instanceof WebGLRenderbuffer||a instanceof WebGLTexture)a=a.name|0;D[d>>2]=a},$a:Ud,na:function(a,b,c,d){a=r.getProgramInfoLog(Ad[a]);null===a&&(a="(unknown error)");b=0<b&&d?eb(a,A,d,b):0;c&&(D[c>>2]=b)},ma:function(a,b,c){if(c)if(a>=xd)U(1281);else if(a=Ad[a],35716==b)a=r.getProgramInfoLog(a),null===a&&(a="(unknown error)"),
165
- D[c>>2]=a.length+1;else if(35719==b){if(!a.Fe)for(b=0;b<r.getProgramParameter(a,35718);++b)a.Fe=Math.max(a.Fe,r.getActiveUniform(a,b).name.length+1);D[c>>2]=a.Fe}else if(35722==b){if(!a.De)for(b=0;b<r.getProgramParameter(a,35721);++b)a.De=Math.max(a.De,r.getActiveAttrib(a,b).name.length+1);D[c>>2]=a.De}else if(35381==b){if(!a.Ee)for(b=0;b<r.getProgramParameter(a,35382);++b)a.Ee=Math.max(a.Ee,r.getActiveUniformBlockName(a,b).length+1);D[c>>2]=a.Ee}else D[c>>2]=r.getProgramParameter(a,b);else U(1281)},
166
- Rb:function(a,b,c){c?D[c>>2]=r.getRenderbufferParameter(a,b):U(1281)},la:function(a,b,c,d){a=r.getShaderInfoLog(Ed[a]);null===a&&(a="(unknown error)");b=0<b&&d?eb(a,A,d,b):0;c&&(D[c>>2]=b)},Cb:function(a,b,c,d){a=r.getShaderPrecisionFormat(a,b);D[c>>2]=a.rangeMin;D[c+4>>2]=a.rangeMax;D[d>>2]=a.precision},ka:function(a,b,c){c?35716==b?(a=r.getShaderInfoLog(Ed[a]),null===a&&(a="(unknown error)"),D[c>>2]=a?a.length+1:0):35720==b?(a=r.getShaderSource(Ed[a]),D[c>>2]=a?a.length+1:0):D[c>>2]=r.getShaderParameter(Ed[a],
167
- b):U(1281)},z:function(a){var b=Id[a];if(!b){switch(a){case 7939:b=r.getSupportedExtensions()||[];b=b.concat(b.map(function(d){return"GL_"+d}));b=Wd(b.join(" "));break;case 7936:case 7937:case 37445:case 37446:(b=r.getParameter(a))||U(1280);b=b&&Wd(b);break;case 7938:b=r.getParameter(7938);b=2<=n.version?"OpenGL ES 3.0 ("+b+")":"OpenGL ES 2.0 ("+b+")";b=Wd(b);break;case 35724:b=r.getParameter(35724);var c=b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);null!==c&&(3==c[1].length&&(c[1]+="0"),
168
- b="OpenGL ES GLSL ES "+c[1]+" ("+b+")");b=Wd(b);break;default:U(1280)}Id[a]=b}return b},ab:function(a,b){if(2>n.version)return U(1282),0;var c=Jd[a];if(c)return 0>b||b>=c.length?(U(1281),0):c[b];switch(a){case 7939:return c=r.getSupportedExtensions()||[],c=c.concat(c.map(function(d){return"GL_"+d})),c=c.map(function(d){return Wd(d)}),c=Jd[a]=c,0>b||b>=c.length?(U(1281),0):c[b];default:return U(1280),0}},ja:function(a,b){b=b?bb(A,b):"";if(a=Ad[a]){var c=a,d=c.se,e=c.Bf,f;if(!d)for(c.se=d={},c.Af={},
169
- f=0;f<r.getProgramParameter(c,35718);++f){var g=r.getActiveUniform(c,f);var h=g.name;g=g.size;var p=Xd(h);p=0<p?h.slice(0,p):h;var m=c.Ze;c.Ze+=g;e[p]=[g,m];for(h=0;h<g;++h)d[m]=h,c.Af[m++]=p}c=a.se;d=0;e=b;f=Xd(b);0<f&&(d=parseInt(b.slice(f+1))>>>0,e=b.slice(0,f));if((e=a.Bf[e])&&d<e[0]&&(d+=e[1],c[d]=c[d]||r.getUniformLocation(a,b)))return d}else U(1281);return-1},Eb:function(a,b,c){for(var d=Pd[b],e=0;e<b;e++)d[e]=D[c+4*e>>2];r.invalidateFramebuffer(a,d)},Db:function(a,b,c,d,e,f,g){for(var h=Pd[b],
170
- p=0;p<b;p++)h[p]=D[c+4*p>>2];r.invalidateSubFramebuffer(a,h,d,e,f,g)},Lb:function(a){return r.isSync(Hd[a])},ia:function(a){return(a=Dd[a])?r.isTexture(a):0},ha:function(a){r.lineWidth(a)},ga:function(a){a=Ad[a];r.linkProgram(a);a.se=0;a.Bf={}},hc:function(a,b,c,d,e,f){r.mf.multiDrawArraysInstancedBaseInstanceWEBGL(a,D,b>>2,D,c>>2,D,d>>2,E,e>>2,f)},gc:function(a,b,c,d,e,f,g,h){r.mf.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(a,D,b>>2,c,D,d>>2,D,e>>2,D,f>>2,E,g>>2,h)},fa:function(a,b){3317==
171
- a&&(Kd=b);r.pixelStorei(a,b)},ic:function(a){r.readBuffer(a)},ea:function(a,b,c,d,e,f,g){if(2<=n.version)if(r.Qe)r.readPixels(a,b,c,d,e,f,g);else{var h=Yd(f);r.readPixels(a,b,c,d,e,f,h,g>>31-Math.clz32(h.BYTES_PER_ELEMENT))}else(g=Zd(f,e,c,d,g))?r.readPixels(a,b,c,d,e,f,g):U(1280)},Qb:function(a,b,c,d){r.renderbufferStorage(a,b,c,d)},Ob:function(a,b,c,d,e){r.renderbufferStorageMultisample(a,b,c,d,e)},Gb:function(a,b,c){r.samplerParameteri(Gd[a],b,c)},Fb:function(a,b,c){r.samplerParameteri(Gd[a],b,
172
- D[c>>2])},da:function(a,b,c,d){r.scissor(a,b,c,d)},ca:function(a,b,c,d){for(var e="",f=0;f<b;++f){var g=d?D[d+4*f>>2]:-1,h=D[c+4*f>>2];g=h?bb(A,h,0>g?void 0:g):"";e+=g}r.shaderSource(Ed[a],e)},ba:function(a,b,c){r.stencilFunc(a,b,c)},aa:function(a,b,c,d){r.stencilFuncSeparate(a,b,c,d)},$:function(a){r.stencilMask(a)},_:function(a,b){r.stencilMaskSeparate(a,b)},Z:function(a,b,c){r.stencilOp(a,b,c)},Y:function(a,b,c,d){r.stencilOpSeparate(a,b,c,d)},X:function(a,b,c,d,e,f,g,h,p){if(2<=n.version)if(r.ke)r.texImage2D(a,
173
- b,c,d,e,f,g,h,p);else if(p){var m=Yd(h);r.texImage2D(a,b,c,d,e,f,g,h,m,p>>31-Math.clz32(m.BYTES_PER_ELEMENT))}else r.texImage2D(a,b,c,d,e,f,g,h,null);else r.texImage2D(a,b,c,d,e,f,g,h,p?Zd(h,g,d,e,p):null)},W:function(a,b,c){r.texParameterf(a,b,c)},V:function(a,b,c){r.texParameterf(a,b,G[c>>2])},U:function(a,b,c){r.texParameteri(a,b,c)},T:function(a,b,c){r.texParameteri(a,b,D[c>>2])},ec:function(a,b,c,d,e){r.texStorage2D(a,b,c,d,e)},S:function(a,b,c,d,e,f,g,h,p){if(2<=n.version)if(r.ke)r.texSubImage2D(a,
174
- b,c,d,e,f,g,h,p);else if(p){var m=Yd(h);r.texSubImage2D(a,b,c,d,e,f,g,h,m,p>>31-Math.clz32(m.BYTES_PER_ELEMENT))}else r.texSubImage2D(a,b,c,d,e,f,g,h,null);else m=null,p&&(m=Zd(h,g,e,f,p)),r.texSubImage2D(a,b,c,d,e,f,g,h,m)},R:function(a,b){r.uniform1f(V(a),b)},Q:function(a,b,c){if(2<=n.version)b&&r.uniform1fv(V(a),G,c>>2,b);else{if(288>=b)for(var d=$d[b-1],e=0;e<b;++e)d[e]=G[c+4*e>>2];else d=G.subarray(c>>2,c+4*b>>2);r.uniform1fv(V(a),d)}},P:function(a,b){r.uniform1i(V(a),b)},Qc:function(a,b,c){if(2<=
175
- n.version)b&&r.uniform1iv(V(a),D,c>>2,b);else{if(288>=b)for(var d=ae[b-1],e=0;e<b;++e)d[e]=D[c+4*e>>2];else d=D.subarray(c>>2,c+4*b>>2);r.uniform1iv(V(a),d)}},Pc:function(a,b,c){r.uniform2f(V(a),b,c)},Oc:function(a,b,c){if(2<=n.version)b&&r.uniform2fv(V(a),G,c>>2,2*b);else{if(144>=b)for(var d=$d[2*b-1],e=0;e<2*b;e+=2)d[e]=G[c+4*e>>2],d[e+1]=G[c+(4*e+4)>>2];else d=G.subarray(c>>2,c+8*b>>2);r.uniform2fv(V(a),d)}},Nc:function(a,b,c){r.uniform2i(V(a),b,c)},Mc:function(a,b,c){if(2<=n.version)b&&r.uniform2iv(V(a),
176
- D,c>>2,2*b);else{if(144>=b)for(var d=ae[2*b-1],e=0;e<2*b;e+=2)d[e]=D[c+4*e>>2],d[e+1]=D[c+(4*e+4)>>2];else d=D.subarray(c>>2,c+8*b>>2);r.uniform2iv(V(a),d)}},Lc:function(a,b,c,d){r.uniform3f(V(a),b,c,d)},Kc:function(a,b,c){if(2<=n.version)b&&r.uniform3fv(V(a),G,c>>2,3*b);else{if(96>=b)for(var d=$d[3*b-1],e=0;e<3*b;e+=3)d[e]=G[c+4*e>>2],d[e+1]=G[c+(4*e+4)>>2],d[e+2]=G[c+(4*e+8)>>2];else d=G.subarray(c>>2,c+12*b>>2);r.uniform3fv(V(a),d)}},Jc:function(a,b,c,d){r.uniform3i(V(a),b,c,d)},Ic:function(a,
177
- b,c){if(2<=n.version)b&&r.uniform3iv(V(a),D,c>>2,3*b);else{if(96>=b)for(var d=ae[3*b-1],e=0;e<3*b;e+=3)d[e]=D[c+4*e>>2],d[e+1]=D[c+(4*e+4)>>2],d[e+2]=D[c+(4*e+8)>>2];else d=D.subarray(c>>2,c+12*b>>2);r.uniform3iv(V(a),d)}},Hc:function(a,b,c,d,e){r.uniform4f(V(a),b,c,d,e)},Gc:function(a,b,c){if(2<=n.version)b&&r.uniform4fv(V(a),G,c>>2,4*b);else{if(72>=b){var d=$d[4*b-1],e=G;c>>=2;for(var f=0;f<4*b;f+=4){var g=c+f;d[f]=e[g];d[f+1]=e[g+1];d[f+2]=e[g+2];d[f+3]=e[g+3]}}else d=G.subarray(c>>2,c+16*b>>2);
178
- r.uniform4fv(V(a),d)}},Fc:function(a,b,c,d,e){r.uniform4i(V(a),b,c,d,e)},Ec:function(a,b,c){if(2<=n.version)b&&r.uniform4iv(V(a),D,c>>2,4*b);else{if(72>=b)for(var d=ae[4*b-1],e=0;e<4*b;e+=4)d[e]=D[c+4*e>>2],d[e+1]=D[c+(4*e+4)>>2],d[e+2]=D[c+(4*e+8)>>2],d[e+3]=D[c+(4*e+12)>>2];else d=D.subarray(c>>2,c+16*b>>2);r.uniform4iv(V(a),d)}},Dc:function(a,b,c,d){if(2<=n.version)b&&r.uniformMatrix2fv(V(a),!!c,G,d>>2,4*b);else{if(72>=b)for(var e=$d[4*b-1],f=0;f<4*b;f+=4)e[f]=G[d+4*f>>2],e[f+1]=G[d+(4*f+4)>>2],
179
- e[f+2]=G[d+(4*f+8)>>2],e[f+3]=G[d+(4*f+12)>>2];else e=G.subarray(d>>2,d+16*b>>2);r.uniformMatrix2fv(V(a),!!c,e)}},Cc:function(a,b,c,d){if(2<=n.version)b&&r.uniformMatrix3fv(V(a),!!c,G,d>>2,9*b);else{if(32>=b)for(var e=$d[9*b-1],f=0;f<9*b;f+=9)e[f]=G[d+4*f>>2],e[f+1]=G[d+(4*f+4)>>2],e[f+2]=G[d+(4*f+8)>>2],e[f+3]=G[d+(4*f+12)>>2],e[f+4]=G[d+(4*f+16)>>2],e[f+5]=G[d+(4*f+20)>>2],e[f+6]=G[d+(4*f+24)>>2],e[f+7]=G[d+(4*f+28)>>2],e[f+8]=G[d+(4*f+32)>>2];else e=G.subarray(d>>2,d+36*b>>2);r.uniformMatrix3fv(V(a),
180
- !!c,e)}},Bc:function(a,b,c,d){if(2<=n.version)b&&r.uniformMatrix4fv(V(a),!!c,G,d>>2,16*b);else{if(18>=b){var e=$d[16*b-1],f=G;d>>=2;for(var g=0;g<16*b;g+=16){var h=d+g;e[g]=f[h];e[g+1]=f[h+1];e[g+2]=f[h+2];e[g+3]=f[h+3];e[g+4]=f[h+4];e[g+5]=f[h+5];e[g+6]=f[h+6];e[g+7]=f[h+7];e[g+8]=f[h+8];e[g+9]=f[h+9];e[g+10]=f[h+10];e[g+11]=f[h+11];e[g+12]=f[h+12];e[g+13]=f[h+13];e[g+14]=f[h+14];e[g+15]=f[h+15]}}else e=G.subarray(d>>2,d+64*b>>2);r.uniformMatrix4fv(V(a),!!c,e)}},Ac:function(a){a=Ad[a];r.useProgram(a);
181
- r.Rf=a},zc:function(a,b){r.vertexAttrib1f(a,b)},yc:function(a,b){r.vertexAttrib2f(a,G[b>>2],G[b+4>>2])},xc:function(a,b){r.vertexAttrib3f(a,G[b>>2],G[b+4>>2],G[b+8>>2])},wc:function(a,b){r.vertexAttrib4f(a,G[b>>2],G[b+4>>2],G[b+8>>2],G[b+12>>2])},dc:function(a,b){r.vertexAttribDivisor(a,b)},cc:function(a,b,c,d,e){r.vertexAttribIPointer(a,b,c,d,e)},vc:function(a,b,c,d,e,f){r.vertexAttribPointer(a,b,c,!!d,e,f)},uc:function(a,b,c,d){r.viewport(a,b,c,d)},cb:function(a,b,c,d){r.waitSync(Hd[a],b,(c>>>0)+
182
- 4294967296*d)},ob:a=>{var b=A.length;a>>>=0;if(2147483648<a)return!1;for(var c=1;4>=c;c*=2){var d=b*(1+.2/c);d=Math.min(d,a+100663296);var e=Math;d=Math.max(a,d);a:{e=e.min.call(e,2147483648,d+(65536-d%65536)%65536)-wa.buffer.byteLength+65535>>>16;try{wa.grow(e);Aa();var f=1;break a}catch(g){}f=void 0}if(f)return!0}return!1},rb:(a,b)=>{var c=0;de().forEach(function(d,e){var f=b+c;e=E[a+4*e>>2]=f;for(f=0;f<d.length;++f)z[e++>>0]=d.charCodeAt(f);z[e>>0]=0;c+=d.length+1});return 0},sb:(a,b)=>{var c=
183
- de();E[a>>2]=c.length;var d=0;c.forEach(function(e){d+=e.length+1});E[b>>2]=d;return 0},K:function(a){try{var b=Jb(a);if(null===b.be)throw new M(8);b.Te&&(b.Te=null);try{b.Cd.close&&b.Cd.close(b)}catch(c){throw c;}finally{vb[b.be]=null}b.be=null;return 0}catch(c){if("undefined"==typeof Xb||"ErrnoError"!==c.name)throw c;return c.ae}},vb:function(a,b,c,d){try{a:{var e=Jb(a);a=b;for(var f,g=b=0;g<c;g++){var h=E[a>>2],p=E[a+4>>2];a+=8;var m=e,t=h,u=p,x=f,k=z;if(0>u||0>x)throw new M(28);if(null===m.be)throw new M(8);
184
- if(1===(m.flags&2097155))throw new M(8);if(16384===(m.node.mode&61440))throw new M(31);if(!m.Cd.read)throw new M(28);var q="undefined"!=typeof x;if(!q)x=m.position;else if(!m.seekable)throw new M(70);var w=m.Cd.read(m,k,t,u,x);q||(m.position+=w);var y=w;if(0>y){var F=-1;break a}b+=y;if(y<p)break;"undefined"!==typeof f&&(f+=y)}F=b}E[d>>2]=F;return 0}catch(B){if("undefined"==typeof Xb||"ErrnoError"!==B.name)throw B;return B.ae}},hb:function(a,b,c,d,e){b=c+2097152>>>0<4194305-!!b?(b>>>0)+4294967296*
185
- c:NaN;try{if(isNaN(b))return 61;var f=Jb(a);Sb(f,b,d);J=[f.position>>>0,(I=f.position,1<=+Math.abs(I)?0<I?+Math.floor(I/4294967296)>>>0:~~+Math.ceil((I-+(~~I>>>0))/4294967296)>>>0:0)];D[e>>2]=J[0];D[e+4>>2]=J[1];f.Te&&0===b&&0===d&&(f.Te=null);return 0}catch(g){if("undefined"==typeof Xb||"ErrnoError"!==g.name)throw g;return g.ae}},ub:function(a,b,c,d){try{a:{var e=Jb(a);a=b;for(var f,g=b=0;g<c;g++){var h=E[a>>2],p=E[a+4>>2];a+=8;var m=e,t=h,u=p,x=f,k=z;if(0>u||0>x)throw new M(28);if(null===m.be)throw new M(8);
186
- if(0===(m.flags&2097155))throw new M(8);if(16384===(m.node.mode&61440))throw new M(31);if(!m.Cd.write)throw new M(28);m.seekable&&m.flags&1024&&Sb(m,0,2);var q="undefined"!=typeof x;if(!q)x=m.position;else if(!m.seekable)throw new M(70);var w=m.Cd.write(m,k,t,u,x,void 0);q||(m.position+=w);var y=w;if(0>y){var F=-1;break a}b+=y;"undefined"!==typeof f&&(f+=y)}F=b}E[d>>2]=F;return 0}catch(B){if("undefined"==typeof Xb||"ErrnoError"!==B.name)throw B;return B.ae}},db:Md,D:Ud,k:ne,j:oe,n:pe,v:qe,jb:re,H:se,
187
- t:te,f:ue,b:ve,h:we,e:xe,G:ye,lb:ze,kb:Ae,nb:(a,b,c,d)=>he(a,b,c,d)};
188
- (function(){function a(c){v=c=c.exports;wa=v.Rc;Aa();H=v.bd;Ca.unshift(v.Sc);Fa--;l.monitorRunDependencies&&l.monitorRunDependencies(Fa);if(0==Fa&&(null!==Ga&&(clearInterval(Ga),Ga=null),Ha)){var d=Ha;Ha=null;d()}return c}var b={a:Be};Fa++;l.monitorRunDependencies&&l.monitorRunDependencies(Fa);if(l.instantiateWasm)try{return l.instantiateWasm(b,a)}catch(c){ta("Module.instantiateWasm callback failed with error: "+c),ba(c)}Oa(b,function(c){a(c.instance)}).catch(ba);return{}})();
189
- var Vd=a=>(Vd=v.Tc)(a),qc=a=>(qc=v.Uc)(a),Pa=l._ma_device__on_notification_unlocked=a=>(Pa=l._ma_device__on_notification_unlocked=v.Vc)(a);l._ma_malloc_emscripten=(a,b)=>(l._ma_malloc_emscripten=v.Wc)(a,b);l._ma_free_emscripten=(a,b)=>(l._ma_free_emscripten=v.Xc)(a,b);
190
- var Qa=l._ma_device_process_pcm_frames_capture__webaudio=(a,b,c)=>(Qa=l._ma_device_process_pcm_frames_capture__webaudio=v.Yc)(a,b,c),Ra=l._ma_device_process_pcm_frames_playback__webaudio=(a,b,c)=>(Ra=l._ma_device_process_pcm_frames_playback__webaudio=v.Zc)(a,b,c),me=()=>(me=v._c)(),pc=a=>(pc=v.$c)(a);l.__embind_initialize_bindings=()=>(l.__embind_initialize_bindings=v.ad)();var rb=(a,b)=>(rb=v.cd)(a,b),X=(a,b)=>(X=v.dd)(a,b),Y=()=>(Y=v.ed)(),Z=a=>(Z=v.fd)(a);
191
- l.dynCall_iiiij=(a,b,c,d,e,f)=>(l.dynCall_iiiij=v.gd)(a,b,c,d,e,f);l.dynCall_viiij=(a,b,c,d,e,f)=>(l.dynCall_viiij=v.hd)(a,b,c,d,e,f);l.dynCall_iiij=(a,b,c,d,e)=>(l.dynCall_iiij=v.id)(a,b,c,d,e);l.dynCall_viij=(a,b,c,d,e)=>(l.dynCall_viij=v.jd)(a,b,c,d,e);l.dynCall_iiji=(a,b,c,d,e)=>(l.dynCall_iiji=v.kd)(a,b,c,d,e);l.dynCall_iiiji=(a,b,c,d,e,f)=>(l.dynCall_iiiji=v.ld)(a,b,c,d,e,f);l.dynCall_jiji=(a,b,c,d,e)=>(l.dynCall_jiji=v.md)(a,b,c,d,e);l.dynCall_iij=(a,b,c,d)=>(l.dynCall_iij=v.nd)(a,b,c,d);
192
- l.dynCall_jii=(a,b,c)=>(l.dynCall_jii=v.od)(a,b,c);l.dynCall_viiiiij=(a,b,c,d,e,f,g,h)=>(l.dynCall_viiiiij=v.pd)(a,b,c,d,e,f,g,h);l.dynCall_viji=(a,b,c,d,e)=>(l.dynCall_viji=v.qd)(a,b,c,d,e);l.dynCall_ji=(a,b)=>(l.dynCall_ji=v.rd)(a,b);l.dynCall_vij=(a,b,c,d)=>(l.dynCall_vij=v.sd)(a,b,c,d);l.dynCall_viijii=(a,b,c,d,e,f,g)=>(l.dynCall_viijii=v.td)(a,b,c,d,e,f,g);l.dynCall_iiiiij=(a,b,c,d,e,f,g)=>(l.dynCall_iiiiij=v.ud)(a,b,c,d,e,f,g);
193
- l.dynCall_iiiiijj=(a,b,c,d,e,f,g,h,p)=>(l.dynCall_iiiiijj=v.vd)(a,b,c,d,e,f,g,h,p);l.dynCall_iiiiiijj=(a,b,c,d,e,f,g,h,p,m)=>(l.dynCall_iiiiiijj=v.wd)(a,b,c,d,e,f,g,h,p,m);function ne(a,b){var c=Y();try{return H.get(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}function ve(a,b,c){var d=Y();try{H.get(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function ue(a,b){var c=Y();try{H.get(a)(b)}catch(d){Z(c);if(d!==d+0)throw d;X(1,0)}}
194
- function pe(a,b,c,d){var e=Y();try{return H.get(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function we(a,b,c,d){var e=Y();try{H.get(a)(b,c,d)}catch(f){Z(e);if(f!==f+0)throw f;X(1,0)}}function xe(a,b,c,d,e){var f=Y();try{H.get(a)(b,c,d,e)}catch(g){Z(f);if(g!==g+0)throw g;X(1,0)}}function te(a){var b=Y();try{H.get(a)()}catch(c){Z(b);if(c!==c+0)throw c;X(1,0)}}function se(a,b,c,d,e,f,g){var h=Y();try{return H.get(a)(b,c,d,e,f,g)}catch(p){Z(h);if(p!==p+0)throw p;X(1,0)}}
195
- function oe(a,b,c){var d=Y();try{return H.get(a)(b,c)}catch(e){Z(d);if(e!==e+0)throw e;X(1,0)}}function ze(a,b,c,d,e,f,g,h){var p=Y();try{H.get(a)(b,c,d,e,f,g,h)}catch(m){Z(p);if(m!==m+0)throw m;X(1,0)}}function qe(a,b,c,d,e){var f=Y();try{return H.get(a)(b,c,d,e)}catch(g){Z(f);if(g!==g+0)throw g;X(1,0)}}function Ae(a,b,c,d,e,f,g,h,p){var m=Y();try{H.get(a)(b,c,d,e,f,g,h,p)}catch(t){Z(m);if(t!==t+0)throw t;X(1,0)}}
196
- function re(a,b,c,d,e,f){var g=Y();try{return H.get(a)(b,c,d,e,f)}catch(h){Z(g);if(h!==h+0)throw h;X(1,0)}}function ye(a,b,c,d,e,f,g){var h=Y();try{H.get(a)(b,c,d,e,f,g)}catch(p){Z(h);if(p!==p+0)throw p;X(1,0)}}var Ce;Ha=function De(){Ce||Ee();Ce||(Ha=De)};
197
- function Ee(){function a(){if(!Ce&&(Ce=!0,l.calledRun=!0,!xa)){l.noFSInit||Ub||(Ub=!0,Tb(),l.stdin=l.stdin,l.stdout=l.stdout,l.stderr=l.stderr,l.stdin?Wb("stdin",l.stdin):Pb("/dev/tty","/dev/stdin"),l.stdout?Wb("stdout",null,l.stdout):Pb("/dev/tty","/dev/stdout"),l.stderr?Wb("stderr",null,l.stderr):Pb("/dev/tty1","/dev/stderr"),Rb("/dev/stdin",0),Rb("/dev/stdout",1),Rb("/dev/stderr",1));yb=!1;Ta(Ca);aa(l);if(l.onRuntimeInitialized)l.onRuntimeInitialized();if(l.postRun)for("function"==typeof l.postRun&&
198
- (l.postRun=[l.postRun]);l.postRun.length;){var b=l.postRun.shift();Da.unshift(b)}Ta(Da)}}if(!(0<Fa)){if(l.preRun)for("function"==typeof l.preRun&&(l.preRun=[l.preRun]);l.preRun.length;)Ea();Ta(Ba);0<Fa||(l.setStatus?(l.setStatus("Running..."),setTimeout(function(){setTimeout(function(){l.setStatus("")},1);a()},1)):a())}}if(l.preInit)for("function"==typeof l.preInit&&(l.preInit=[l.preInit]);0<l.preInit.length;)l.preInit.pop()();Ee();
29
+ var m = moduleArg, aa, ba;
30
+ m.ready = new Promise((a, b) => {
31
+ aa = a;
32
+ ba = b;
33
+ });
34
+ function ca() {
35
+ function a(g) {
36
+ const k = d;
37
+ c = b = 0;
38
+ d = new Map();
39
+ k.forEach(p => {
40
+ try {
41
+ p(g);
42
+ } catch (n) {
43
+ console.error(n);
44
+ }
45
+ });
46
+ this.lb();
47
+ e && e.Rb();
48
+ }
49
+ let b = 0, c = 0, d = new Map(), e = null, f = null;
50
+ this.requestAnimationFrame = function(g) {
51
+ b || (b = requestAnimationFrame(a.bind(this)));
52
+ const k = ++c;
53
+ d.set(k, g);
54
+ return k;
55
+ };
56
+ this.cancelAnimationFrame = function(g) {
57
+ d.delete(g);
58
+ b && 0 == d.size && (cancelAnimationFrame(b), b = 0);
59
+ };
60
+ this.Pb = function(g) {
61
+ f && (document.body.remove(f), f = null);
62
+ g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(k) {
63
+ f.innerHTML = "RIVE FPS " + k.toFixed(1);
64
+ }, document.body.appendChild(f));
65
+ e = new function() {
66
+ let k = 0, p = 0;
67
+ this.Rb = function() {
68
+ var n = performance.now();
69
+ p ? (++k, n -= p, 1000 < n && (g(1000 * k / n), k = p = 0)) : (p = n, k = 0);
70
+ };
71
+ }();
72
+ };
73
+ this.lb = function() {
74
+ };
75
+ }
76
+ function da() {
77
+ console.assert(!0);
78
+ const a = new Map();
79
+ let b = -Infinity;
80
+ this.push = function(c) {
81
+ c = c + 255 >> 8;
82
+ a.has(c) && clearTimeout(a.get(c));
83
+ a.set(c, setTimeout(function() {
84
+ a.delete(c);
85
+ 0 == a.length ? b = -Infinity : c == b && (b = Math.max(...a.keys()), console.assert(b < c));
86
+ }, 1000));
87
+ b = Math.max(c, b);
88
+ return b << 8;
89
+ };
90
+ }
91
+ const ea = m.onRuntimeInitialized;
92
+ m.onRuntimeInitialized = function() {
93
+ ea && ea();
94
+ let a = m.decodeFont;
95
+ m.decodeFont = function(c, d) {
96
+ c = a(c);
97
+ d(c);
98
+ };
99
+ const b = m.FileAssetLoader;
100
+ m.ptrToAsset = c => {
101
+ let d = m.ptrToFileAsset(c);
102
+ return d.isImage ? m.ptrToImageAsset(c) : d.isFont ? m.ptrToFontAsset(c) : d;
103
+ };
104
+ m.CustomFileAssetLoader = b.extend("CustomFileAssetLoader", {__construct:function({loadContents:c}) {
105
+ this.__parent.__construct.call(this);
106
+ this.Cb = c;
107
+ }, loadContents:function(c, d) {
108
+ c = m.ptrToAsset(c);
109
+ return this.Cb(c, d);
110
+ },});
111
+ m.CDNFileAssetLoader = b.extend("CDNFileAssetLoader", {__construct:function() {
112
+ this.__parent.__construct.call(this);
113
+ }, loadContents:function(c) {
114
+ let d = m.ptrToAsset(c);
115
+ c = d.cdnUuid;
116
+ if ("" === c) {
117
+ return !1;
118
+ }
119
+ (function(e, f) {
120
+ var g = new XMLHttpRequest();
121
+ g.responseType = "arraybuffer";
122
+ g.onreadystatechange = function() {
123
+ 4 == g.readyState && 200 == g.status && f(g);
124
+ };
125
+ g.open("GET", e, !0);
126
+ g.send(null);
127
+ })(d.cdnBaseUrl + "/" + c, e => {
128
+ d.decode(new Uint8Array(e.response));
129
+ });
130
+ return !0;
131
+ },});
132
+ m.FallbackFileAssetLoader = b.extend("FallbackFileAssetLoader", {__construct:function() {
133
+ this.__parent.__construct.call(this);
134
+ this.gb = [];
135
+ }, addLoader:function(c) {
136
+ this.gb.push(c);
137
+ }, loadContents:function(c, d) {
138
+ for (let e of this.gb) {
139
+ if (e.loadContents(c, d)) {
140
+ return !0;
141
+ }
142
+ }
143
+ return !1;
144
+ },});
145
+ };
146
+ const fa = m.onRuntimeInitialized;
147
+ m.onRuntimeInitialized = function() {
148
+ function a(l) {
149
+ this.F = l;
150
+ this.zb = l.getContext("2d");
151
+ this.Eb = e;
152
+ this.S = [];
153
+ this.ja = 0;
154
+ this.clear = function() {
155
+ console.assert(0 == this.ja);
156
+ this.S = [];
157
+ f.delete(this);
158
+ };
159
+ this.save = function() {
160
+ ++this.ja;
161
+ this.S.push(e.save.bind(e));
162
+ };
163
+ this.restore = function() {
164
+ 0 < this.ja && (this.S.push(e.restore.bind(e)), --this.ja);
165
+ };
166
+ this.transform = function(r) {
167
+ this.S.push(e.transform.bind(e, r));
168
+ };
169
+ this.align = function(r, x, z, H) {
170
+ this.S.push(e.align.bind(e, r, x, z, H));
171
+ };
172
+ this.flush = function() {
173
+ console.assert(0 == this.ja);
174
+ f.add(this);
175
+ d && c();
176
+ };
177
+ }
178
+ function b(l) {
179
+ var r = {alpha:1, depth:0, stencil:8, antialias:0, premultipliedAlpha:1, preserveDrawingBuffer:0, preferLowPowerToHighPerformance:0, failIfMajorPerformanceCaveat:0, enableExtensionsByDefault:1, explicitSwapControl:0, renderViaOffscreenBackBuffer:0,}, x = l.getContext("webgl2", r);
180
+ x || (x = l.getContext("webgl", r));
181
+ var z = x, H = ha(ja), C = {handle:H, attributes:r, version:r.Fc, Ua:z};
182
+ z.canvas && (z.canvas.xc = C);
183
+ ja[H] = C;
184
+ ("undefined" == typeof r.Ob || r.Ob) && ka(C);
185
+ la(H);
186
+ r = g(l.width, l.height);
187
+ r.Bb = H;
188
+ r.F = l;
189
+ r.Wa = l.width;
190
+ r.Va = l.height;
191
+ r.Ab = x;
192
+ return r;
193
+ }
194
+ function c() {
195
+ if (e) {
196
+ var l = e.Db, r = 0, x = 0, z = 0, H = Array(f.size), C = 0;
197
+ for (var L of f) {
198
+ L.da = Math.min(L.F.width, l), L.ca = Math.min(L.F.height, l), L.Ja = L.ca * L.da, r = Math.max(r, L.da), x = Math.max(x, L.ca), z += L.Ja, H[C++] = L;
199
+ }
200
+ f.clear();
201
+ if (!(0 >= z)) {
202
+ r = 1 << (0 >= r ? 0 : 32 - Math.clz32(r - 1));
203
+ for (x = 1 << (0 >= x ? 0 : 32 - Math.clz32(x - 1)); x * r < z;) {
204
+ r <= x ? r *= 2 : x *= 2;
205
+ }
206
+ r = Math.min(r, l);
207
+ r = Math.min(x, l);
208
+ H.sort((ia, Fb) => Fb.Ja - ia.Ja);
209
+ z = new m.DynamicRectanizer(l);
210
+ for (L = 0; L < H.length;) {
211
+ z.reset(r, x);
212
+ for (C = L; C < H.length; ++C) {
213
+ var O = H[C], M = z.addRect(O.da, O.ca);
214
+ if (0 > M) {
215
+ console.assert(C > L);
216
+ break;
217
+ }
218
+ O.qa = M & 65535;
219
+ O.ra = M >> 16;
220
+ }
221
+ O = p.push(z.drawWidth());
222
+ M = n.push(z.drawHeight());
223
+ console.assert(O >= z.drawWidth());
224
+ console.assert(M >= z.drawHeight());
225
+ console.assert(O <= l);
226
+ console.assert(M <= l);
227
+ e.F.width != O && (e.F.width = O);
228
+ e.F.height != M && (e.F.height = M);
229
+ e.clear();
230
+ for (O = L; O < C; ++O) {
231
+ M = H[O];
232
+ e.saveClipRect(M.qa, M.ra, M.qa + M.da, M.ra + M.ca);
233
+ let ia = new m.Mat2D();
234
+ ia.xx = M.da / M.F.width;
235
+ ia.yy = M.ca / M.F.height;
236
+ ia.xy = ia.yx = 0;
237
+ ia.tx = M.qa;
238
+ ia.ty = M.ra;
239
+ e.transform(ia);
240
+ for (const Fb of M.S) {
241
+ Fb();
242
+ }
243
+ e.restoreClipRect();
244
+ M.S = [];
245
+ }
246
+ for (e.flush(); L < C; ++L) {
247
+ O = H[L], M = O.zb, M.globalCompositeOperation = "copy", M.drawImage(e.F, O.qa, O.ra, O.da, O.ca, 0, 0, O.F.width, O.F.height);
248
+ }
249
+ L = C;
250
+ }
251
+ }
252
+ }
253
+ }
254
+ fa && fa();
255
+ const d = navigator.userAgent.match(/firefox|fxios/i);
256
+ let e = null;
257
+ const f = new Set(), g = m.makeRenderer;
258
+ m.makeRenderer = function(l, r) {
259
+ return r ? (e || (e = b(document.createElement("canvas")), r = e.Ab, e.Db = Math.min(r.getParameter(r.MAX_RENDERBUFFER_SIZE), r.getParameter(r.MAX_TEXTURE_SIZE))), new a(l)) : b(l);
260
+ };
261
+ const k = m.Artboard.prototype.draw;
262
+ m.Artboard.prototype.draw = function(l) {
263
+ l.S ? l.S.push(k.bind(this, l.Eb)) : k.call(this, l);
264
+ };
265
+ const p = new da(), n = new da(), u = new ca();
266
+ m.requestAnimationFrame = u.requestAnimationFrame.bind(u);
267
+ m.cancelAnimationFrame = u.cancelAnimationFrame.bind(u);
268
+ m.enableFPSCounter = u.Pb.bind(u);
269
+ u.lb = c;
270
+ m.resolveAnimationFrame = c;
271
+ let v = m.load;
272
+ m.load = function(l, r, x = !0) {
273
+ const z = new m.FallbackFileAssetLoader();
274
+ void 0 !== r && z.addLoader(r);
275
+ x && (r = new m.CDNFileAssetLoader(), z.addLoader(r));
276
+ return Promise.resolve(v(l, z));
277
+ };
278
+ const y = m.WebGLRenderer.prototype.clear;
279
+ m.WebGLRenderer.prototype.clear = function() {
280
+ la(this.Bb);
281
+ const l = this.F;
282
+ if (this.Wa != l.width || this.Va != l.height) {
283
+ this.resize(l.width, l.height), this.Wa = l.width, this.Va = l.height;
284
+ }
285
+ y.call(this);
286
+ };
287
+ m.decodeImage = function(l, r) {
288
+ l = m.decodeImageSkia(l);
289
+ r(l);
290
+ };
291
+ };
292
+ var ma = Object.assign({}, m), na = "object" == typeof window, oa = "function" == typeof importScripts, pa = "", qa, ra;
293
+ if (na || oa) {
294
+ oa ? pa = self.location.href : "undefined" != typeof document && document.currentScript && (pa = document.currentScript.src), _scriptDir && (pa = _scriptDir), 0 !== pa.indexOf("blob:") ? pa = pa.substr(0, pa.replace(/[?#].*/, "").lastIndexOf("/") + 1) : pa = "", oa && (ra = a => {
295
+ var b = new XMLHttpRequest();
296
+ b.open("GET", a, !1);
297
+ b.responseType = "arraybuffer";
298
+ b.send(null);
299
+ return new Uint8Array(b.response);
300
+ }), qa = (a, b, c) => {
301
+ var d = new XMLHttpRequest();
302
+ d.open("GET", a, !0);
303
+ d.responseType = "arraybuffer";
304
+ d.onload = () => {
305
+ 200 == d.status || 0 == d.status && d.response ? b(d.response) : c();
306
+ };
307
+ d.onerror = c;
308
+ d.send(null);
309
+ };
310
+ }
311
+ var sa = console.log.bind(console), ta = console.error.bind(console);
312
+ Object.assign(m, ma);
313
+ ma = null;
314
+ var noExitRuntime = !0;
315
+ "object" != typeof WebAssembly && ua("no native wasm support detected");
316
+ var va, q, wa = !1, t, w, xa, ya, A, B, D, za;
317
+ function Aa() {
318
+ var a = va.buffer;
319
+ m.HEAP8 = t = new Int8Array(a);
320
+ m.HEAP16 = xa = new Int16Array(a);
321
+ m.HEAP32 = A = new Int32Array(a);
322
+ m.HEAPU8 = w = new Uint8Array(a);
323
+ m.HEAPU16 = ya = new Uint16Array(a);
324
+ m.HEAPU32 = B = new Uint32Array(a);
325
+ m.HEAPF32 = D = new Float32Array(a);
326
+ m.HEAPF64 = za = new Float64Array(a);
327
+ }
328
+ var Ba, Ca = [], Da = [], Ea = [], Fa = 0, Ga = null, Ha = null;
329
+ function ua(a) {
330
+ a = "Aborted(" + a + ")";
331
+ ta(a);
332
+ wa = !0;
333
+ a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
334
+ ba(a);
335
+ throw a;
336
+ }
337
+ function Ia(a) {
338
+ return a.startsWith("data:application/octet-stream;base64,");
339
+ }
340
+ var Ja;
341
+ Ja = "webgl_advanced.wasm";
342
+ Ia(Ja) || (Ja = pa + Ja);
343
+ function Ka(a) {
344
+ if (ra) {
345
+ return ra(a);
346
+ }
347
+ throw "both async and sync fetching of the wasm failed";
348
+ }
349
+ function La(a) {
350
+ if (na || oa) {
351
+ if ("function" == typeof fetch && !a.startsWith("file://")) {
352
+ return fetch(a, {credentials:"same-origin"}).then(b => {
353
+ if (!b.ok) {
354
+ throw "failed to load wasm binary file at '" + a + "'";
355
+ }
356
+ return b.arrayBuffer();
357
+ }).catch(() => Ka(a));
358
+ }
359
+ if (qa) {
360
+ return new Promise((b, c) => {
361
+ qa(a, d => b(new Uint8Array(d)), c);
362
+ });
363
+ }
364
+ }
365
+ return Promise.resolve().then(() => Ka(a));
366
+ }
367
+ function Ma(a, b, c) {
368
+ return La(a).then(d => WebAssembly.instantiate(d, b)).then(d => d).then(c, d => {
369
+ ta("failed to asynchronously prepare wasm: " + d);
370
+ ua(d);
371
+ });
372
+ }
373
+ function Na(a, b) {
374
+ var c = Ja;
375
+ return "function" != typeof WebAssembly.instantiateStreaming || Ia(c) || c.startsWith("file://") || "function" != typeof fetch ? Ma(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
376
+ ta("wasm streaming compile failed: " + e);
377
+ ta("falling back to ArrayBuffer instantiation");
378
+ return Ma(c, a, b);
379
+ }));
380
+ }
381
+ var E, F, Ra = {490268:(a, b, c, d, e) => {
382
+ if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
383
+ return 0;
384
+ }
385
+ if ("undefined" === typeof window.h) {
386
+ window.h = {Ea:0};
387
+ window.h.H = {};
388
+ window.h.H.Da = a;
389
+ window.h.H.capture = b;
390
+ window.h.H.La = c;
391
+ window.h.ha = {};
392
+ window.h.ha.stopped = d;
393
+ window.h.ha.tb = e;
394
+ let f = window.h;
395
+ f.C = [];
396
+ f.vc = function(g) {
397
+ for (var k = 0; k < f.C.length; ++k) {
398
+ if (null == f.C[k]) {
399
+ return f.C[k] = g, k;
400
+ }
401
+ }
402
+ f.C.push(g);
403
+ return f.C.length - 1;
404
+ };
405
+ f.yb = function(g) {
406
+ for (f.C[g] = null; 0 < f.C.length;) {
407
+ if (null == f.C[f.C.length - 1]) {
408
+ f.C.pop();
409
+ } else {
410
+ break;
411
+ }
412
+ }
413
+ };
414
+ f.Kc = function(g) {
415
+ for (var k = 0; k < f.C.length; ++k) {
416
+ if (f.C[k] == g) {
417
+ return f.yb(k);
418
+ }
419
+ }
420
+ };
421
+ f.ua = function(g) {
422
+ return f.C[g];
423
+ };
424
+ f.xb = ["touchend", "click"];
425
+ f.unlock = function() {
426
+ for (var g = 0; g < f.C.length; ++g) {
427
+ var k = f.C[g];
428
+ null != k && null != k.I && k.state === f.ha.tb && k.I.resume().then(() => {
429
+ Oa(k.mb);
430
+ }, p => {
431
+ console.error("Failed to resume audiocontext", p);
432
+ });
433
+ }
434
+ f.xb.map(function(p) {
435
+ document.removeEventListener(p, f.unlock, !0);
436
+ });
437
+ };
438
+ f.xb.map(function(g) {
439
+ document.addEventListener(g, f.unlock, !0);
440
+ });
441
+ }
442
+ window.h.Ea += 1;
443
+ return 1;
444
+ }, 492446:() => {
445
+ "undefined" !== typeof window.h && (--window.h.Ea, 0 === window.h.Ea && delete window.h);
446
+ }, 492610:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 492714:() => {
447
+ try {
448
+ var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
449
+ a.close();
450
+ return b;
451
+ } catch (c) {
452
+ return 0;
453
+ }
454
+ }, 492885:(a, b, c, d, e, f) => {
455
+ if ("undefined" === typeof window.h) {
456
+ return -1;
457
+ }
458
+ var g = {}, k = {};
459
+ a == window.h.H.Da && 0 != c && (k.sampleRate = c);
460
+ g.I = new (window.AudioContext || window.webkitAudioContext)(k);
461
+ g.I.suspend();
462
+ g.state = window.h.ha.stopped;
463
+ c = 0;
464
+ a != window.h.H.Da && (c = b);
465
+ g.Y = g.I.createScriptProcessor(d, c, b);
466
+ g.Y.onaudioprocess = function(p) {
467
+ if (null == g.va || 0 == g.va.length) {
468
+ g.va = new Float32Array(D.buffer, e, d * b);
469
+ }
470
+ if (a == window.h.H.capture || a == window.h.H.La) {
471
+ for (var n = 0; n < b; n += 1) {
472
+ for (var u = p.inputBuffer.getChannelData(n), v = g.va, y = 0; y < d; y += 1) {
473
+ v[y * b + n] = u[y];
474
+ }
475
+ }
476
+ Pa(f, d, e);
477
+ }
478
+ if (a == window.h.H.Da || a == window.h.H.La) {
479
+ for (Qa(f, d, e), n = 0; n < p.outputBuffer.numberOfChannels; ++n) {
480
+ for (u = p.outputBuffer.getChannelData(n), v = g.va, y = 0; y < d; y += 1) {
481
+ u[y] = v[y * b + n];
482
+ }
483
+ }
484
+ } else {
485
+ for (n = 0; n < p.outputBuffer.numberOfChannels; ++n) {
486
+ p.outputBuffer.getChannelData(n).fill(0.0);
487
+ }
488
+ }
489
+ };
490
+ a != window.h.H.capture && a != window.h.H.La || navigator.mediaDevices.getUserMedia({audio:!0, video:!1}).then(function(p) {
491
+ g.Fa = g.I.createMediaStreamSource(p);
492
+ g.Fa.connect(g.Y);
493
+ g.Y.connect(g.I.destination);
494
+ }).catch(function(p) {
495
+ console.log("Failed to get user media: " + p);
496
+ });
497
+ a == window.h.H.Da && g.Y.connect(g.I.destination);
498
+ g.mb = f;
499
+ return window.h.vc(g);
500
+ }, 495762:a => window.h.ua(a).I.sampleRate, 495835:a => {
501
+ a = window.h.ua(a);
502
+ void 0 !== a.Y && (a.Y.onaudioprocess = function() {
503
+ }, a.Y.disconnect(), a.Y = void 0);
504
+ void 0 !== a.Fa && (a.Fa.disconnect(), a.Fa = void 0);
505
+ a.I.close();
506
+ a.I = void 0;
507
+ a.mb = void 0;
508
+ }, 496235:a => {
509
+ window.h.yb(a);
510
+ }, 496285:a => {
511
+ a = window.h.ua(a);
512
+ a.I.resume();
513
+ a.state = window.h.ha.tb;
514
+ }, 496424:a => {
515
+ a = window.h.ua(a);
516
+ a.I.suspend();
517
+ a.state = window.h.ha.stopped;
518
+ }}, Sa = (a, b) => {
519
+ for (var c = 0, d = a.length - 1; 0 <= d; d--) {
520
+ var e = a[d];
521
+ "." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
522
+ }
523
+ if (b) {
524
+ for (; c; c--) {
525
+ a.unshift("..");
526
+ }
527
+ }
528
+ return a;
529
+ }, Ta = a => {
530
+ var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
531
+ (a = Sa(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
532
+ a && c && (a += "/");
533
+ return (b ? "/" : "") + a;
534
+ }, Ua = a => {
535
+ var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
536
+ a = b[0];
537
+ b = b[1];
538
+ if (!a && !b) {
539
+ return ".";
540
+ }
541
+ b && (b = b.substr(0, b.length - 1));
542
+ return a + b;
543
+ }, Va = a => {
544
+ if ("/" === a) {
545
+ return "/";
546
+ }
547
+ a = Ta(a);
548
+ a = a.replace(/\/$/, "");
549
+ var b = a.lastIndexOf("/");
550
+ return -1 === b ? a : a.substr(b + 1);
551
+ }, Wa = () => {
552
+ if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
553
+ return a => crypto.getRandomValues(a);
554
+ }
555
+ ua("initRandomDevice");
556
+ }, Xa = a => (Xa = Wa())(a);
557
+ function Ya() {
558
+ for (var a = "", b = !1, c = arguments.length - 1; -1 <= c && !b; c--) {
559
+ b = 0 <= c ? arguments[c] : "/";
560
+ if ("string" != typeof b) {
561
+ throw new TypeError("Arguments to path.resolve must be strings");
562
+ }
563
+ if (!b) {
564
+ return "";
565
+ }
566
+ a = b + "/" + a;
567
+ b = "/" === b.charAt(0);
568
+ }
569
+ a = Sa(a.split("/").filter(d => !!d), !b).join("/");
570
+ return (b ? "/" : "") + a || ".";
571
+ }
572
+ var Za = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, $a = (a, b, c) => {
573
+ var d = b + c;
574
+ for (c = b; a[c] && !(c >= d);) {
575
+ ++c;
576
+ }
577
+ if (16 < c - b && a.buffer && Za) {
578
+ return Za.decode(a.subarray(b, c));
579
+ }
580
+ for (d = ""; b < c;) {
581
+ var e = a[b++];
582
+ if (e & 128) {
583
+ var f = a[b++] & 63;
584
+ if (192 == (e & 224)) {
585
+ d += String.fromCharCode((e & 31) << 6 | f);
586
+ } else {
587
+ var g = a[b++] & 63;
588
+ e = 224 == (e & 240) ? (e & 15) << 12 | f << 6 | g : (e & 7) << 18 | f << 12 | g << 6 | a[b++] & 63;
589
+ 65536 > e ? d += String.fromCharCode(e) : (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023));
590
+ }
591
+ } else {
592
+ d += String.fromCharCode(e);
593
+ }
594
+ }
595
+ return d;
596
+ }, ab = [], bb = a => {
597
+ for (var b = 0, c = 0; c < a.length; ++c) {
598
+ var d = a.charCodeAt(c);
599
+ 127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
600
+ }
601
+ return b;
602
+ }, cb = (a, b, c, d) => {
603
+ if (!(0 < d)) {
604
+ return 0;
605
+ }
606
+ var e = c;
607
+ d = c + d - 1;
608
+ for (var f = 0; f < a.length; ++f) {
609
+ var g = a.charCodeAt(f);
610
+ if (55296 <= g && 57343 >= g) {
611
+ var k = a.charCodeAt(++f);
612
+ g = 65536 + ((g & 1023) << 10) | k & 1023;
613
+ }
614
+ if (127 >= g) {
615
+ if (c >= d) {
616
+ break;
617
+ }
618
+ b[c++] = g;
619
+ } else {
620
+ if (2047 >= g) {
621
+ if (c + 1 >= d) {
622
+ break;
623
+ }
624
+ b[c++] = 192 | g >> 6;
625
+ } else {
626
+ if (65535 >= g) {
627
+ if (c + 2 >= d) {
628
+ break;
629
+ }
630
+ b[c++] = 224 | g >> 12;
631
+ } else {
632
+ if (c + 3 >= d) {
633
+ break;
634
+ }
635
+ b[c++] = 240 | g >> 18;
636
+ b[c++] = 128 | g >> 12 & 63;
637
+ }
638
+ b[c++] = 128 | g >> 6 & 63;
639
+ }
640
+ b[c++] = 128 | g & 63;
641
+ }
642
+ }
643
+ b[c] = 0;
644
+ return c - e;
645
+ };
646
+ function db(a, b) {
647
+ var c = Array(bb(a) + 1);
648
+ a = cb(a, c, 0, c.length);
649
+ b && (c.length = a);
650
+ return c;
651
+ }
652
+ var eb = [];
653
+ function fb(a, b) {
654
+ eb[a] = {input:[], D:[], U:b};
655
+ gb(a, hb);
656
+ }
657
+ var hb = {open:function(a) {
658
+ var b = eb[a.node.la];
659
+ if (!b) {
660
+ throw new G(43);
661
+ }
662
+ a.s = b;
663
+ a.seekable = !1;
664
+ }, close:function(a) {
665
+ a.s.U.ta(a.s);
666
+ }, ta:function(a) {
667
+ a.s.U.ta(a.s);
668
+ }, read:function(a, b, c, d) {
669
+ if (!a.s || !a.s.U.eb) {
670
+ throw new G(60);
671
+ }
672
+ for (var e = 0, f = 0; f < d; f++) {
673
+ try {
674
+ var g = a.s.U.eb(a.s);
675
+ } catch (k) {
676
+ throw new G(29);
677
+ }
678
+ if (void 0 === g && 0 === e) {
679
+ throw new G(6);
680
+ }
681
+ if (null === g || void 0 === g) {
682
+ break;
683
+ }
684
+ e++;
685
+ b[c + f] = g;
686
+ }
687
+ e && (a.node.timestamp = Date.now());
688
+ return e;
689
+ }, write:function(a, b, c, d) {
690
+ if (!a.s || !a.s.U.Pa) {
691
+ throw new G(60);
692
+ }
693
+ try {
694
+ for (var e = 0; e < d; e++) {
695
+ a.s.U.Pa(a.s, b[c + e]);
696
+ }
697
+ } catch (f) {
698
+ throw new G(29);
699
+ }
700
+ d && (a.node.timestamp = Date.now());
701
+ return e;
702
+ },}, ib = {eb:function() {
703
+ a: {
704
+ if (!ab.length) {
705
+ var a = null;
706
+ "undefined" != typeof window && "function" == typeof window.prompt ? (a = window.prompt("Input: "), null !== a && (a += "\n")) : "function" == typeof readline && (a = readline(), null !== a && (a += "\n"));
707
+ if (!a) {
708
+ a = null;
709
+ break a;
710
+ }
711
+ ab = db(a, !0);
712
+ }
713
+ a = ab.shift();
714
+ }
715
+ return a;
716
+ }, Pa:function(a, b) {
717
+ null === b || 10 === b ? (sa($a(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
718
+ }, ta:function(a) {
719
+ a.D && 0 < a.D.length && (sa($a(a.D, 0)), a.D = []);
720
+ }, bc:function() {
721
+ return {Ac:25856, Cc:5, zc:191, Bc:35387, yc:[3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]};
722
+ }, cc:function() {
723
+ return 0;
724
+ }, dc:function() {
725
+ return [24, 80];
726
+ },}, jb = {Pa:function(a, b) {
727
+ null === b || 10 === b ? (ta($a(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
728
+ }, ta:function(a) {
729
+ a.D && 0 < a.D.length && (ta($a(a.D, 0)), a.D = []);
730
+ },};
731
+ function kb(a, b) {
732
+ var c = a.l ? a.l.length : 0;
733
+ c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.l, a.l = new Uint8Array(b), 0 < a.v && a.l.set(c.subarray(0, a.v), 0));
734
+ }
735
+ var I = {O:null, T() {
736
+ return I.createNode(null, "/", 16895, 0);
737
+ }, createNode(a, b, c, d) {
738
+ if (24576 === (c & 61440) || 4096 === (c & 61440)) {
739
+ throw new G(63);
740
+ }
741
+ I.O || (I.O = {dir:{node:{M:I.j.M, P:I.j.P, ka:I.j.ka, Ba:I.j.Ba, rb:I.j.rb, wb:I.j.wb, sb:I.j.sb, pb:I.j.pb, Ga:I.j.Ga}, stream:{$:I.m.$}}, file:{node:{M:I.j.M, P:I.j.P}, stream:{$:I.m.$, read:I.m.read, write:I.m.write, sa:I.m.sa, ib:I.m.ib, kb:I.m.kb}}, link:{node:{M:I.j.M, P:I.j.P, ma:I.j.ma}, stream:{}}, Xa:{node:{M:I.j.M, P:I.j.P}, stream:lb}});
742
+ c = mb(a, b, c, d);
743
+ 16384 === (c.mode & 61440) ? (c.j = I.O.dir.node, c.m = I.O.dir.stream, c.l = {}) : 32768 === (c.mode & 61440) ? (c.j = I.O.file.node, c.m = I.O.file.stream, c.v = 0, c.l = null) : 40960 === (c.mode & 61440) ? (c.j = I.O.link.node, c.m = I.O.link.stream) : 8192 === (c.mode & 61440) && (c.j = I.O.Xa.node, c.m = I.O.Xa.stream);
744
+ c.timestamp = Date.now();
745
+ a && (a.l[b] = c, a.timestamp = c.timestamp);
746
+ return c;
747
+ }, Ec(a) {
748
+ return a.l ? a.l.subarray ? a.l.subarray(0, a.v) : new Uint8Array(a.l) : new Uint8Array(0);
749
+ }, j:{M(a) {
750
+ var b = {};
751
+ b.Mb = 8192 === (a.mode & 61440) ? a.id : 1;
752
+ b.fb = a.id;
753
+ b.mode = a.mode;
754
+ b.jc = 1;
755
+ b.uid = 0;
756
+ b.Xb = 0;
757
+ b.la = a.la;
758
+ 16384 === (a.mode & 61440) ? b.size = 4096 : 32768 === (a.mode & 61440) ? b.size = a.v : 40960 === (a.mode & 61440) ? b.size = a.link.length : b.size = 0;
759
+ b.Fb = new Date(a.timestamp);
760
+ b.hc = new Date(a.timestamp);
761
+ b.Jb = new Date(a.timestamp);
762
+ b.Gb = 4096;
763
+ b.Hb = Math.ceil(b.size / b.Gb);
764
+ return b;
765
+ }, P(a, b) {
766
+ void 0 !== b.mode && (a.mode = b.mode);
767
+ void 0 !== b.timestamp && (a.timestamp = b.timestamp);
768
+ if (void 0 !== b.size && (b = b.size, a.v != b)) {
769
+ if (0 == b) {
770
+ a.l = null, a.v = 0;
771
+ } else {
772
+ var c = a.l;
773
+ a.l = new Uint8Array(b);
774
+ c && a.l.set(c.subarray(0, Math.min(b, a.v)));
775
+ a.v = b;
776
+ }
777
+ }
778
+ }, ka() {
779
+ throw nb[44];
780
+ }, Ba(a, b, c, d) {
781
+ return I.createNode(a, b, c, d);
782
+ }, rb(a, b, c) {
783
+ if (16384 === (a.mode & 61440)) {
784
+ try {
785
+ var d = ob(b, c);
786
+ } catch (f) {
787
+ }
788
+ if (d) {
789
+ for (var e in d.l) {
790
+ throw new G(55);
791
+ }
792
+ }
793
+ }
794
+ delete a.parent.l[a.name];
795
+ a.parent.timestamp = Date.now();
796
+ a.name = c;
797
+ b.l[c] = a;
798
+ b.timestamp = a.parent.timestamp;
799
+ a.parent = b;
800
+ }, wb(a, b) {
801
+ delete a.l[b];
802
+ a.timestamp = Date.now();
803
+ }, sb(a, b) {
804
+ var c = ob(a, b), d;
805
+ for (d in c.l) {
806
+ throw new G(55);
807
+ }
808
+ delete a.l[b];
809
+ a.timestamp = Date.now();
810
+ }, pb(a) {
811
+ var b = [".", ".."], c;
812
+ for (c in a.l) {
813
+ a.l.hasOwnProperty(c) && b.push(c);
814
+ }
815
+ return b;
816
+ }, Ga(a, b, c) {
817
+ a = I.createNode(a, b, 41471, 0);
818
+ a.link = c;
819
+ return a;
820
+ }, ma(a) {
821
+ if (40960 !== (a.mode & 61440)) {
822
+ throw new G(28);
823
+ }
824
+ return a.link;
825
+ },}, m:{read(a, b, c, d, e) {
826
+ var f = a.node.l;
827
+ if (e >= a.node.v) {
828
+ return 0;
829
+ }
830
+ a = Math.min(a.node.v - e, d);
831
+ if (8 < a && f.subarray) {
832
+ b.set(f.subarray(e, e + a), c);
833
+ } else {
834
+ for (d = 0; d < a; d++) {
835
+ b[c + d] = f[e + d];
836
+ }
837
+ }
838
+ return a;
839
+ }, write(a, b, c, d, e, f) {
840
+ b.buffer === t.buffer && (f = !1);
841
+ if (!d) {
842
+ return 0;
843
+ }
844
+ a = a.node;
845
+ a.timestamp = Date.now();
846
+ if (b.subarray && (!a.l || a.l.subarray)) {
847
+ if (f) {
848
+ return a.l = b.subarray(c, c + d), a.v = d;
849
+ }
850
+ if (0 === a.v && 0 === e) {
851
+ return a.l = b.slice(c, c + d), a.v = d;
852
+ }
853
+ if (e + d <= a.v) {
854
+ return a.l.set(b.subarray(c, c + d), e), d;
855
+ }
856
+ }
857
+ kb(a, e + d);
858
+ if (a.l.subarray && b.subarray) {
859
+ a.l.set(b.subarray(c, c + d), e);
860
+ } else {
861
+ for (f = 0; f < d; f++) {
862
+ a.l[e + f] = b[c + f];
863
+ }
864
+ }
865
+ a.v = Math.max(a.v, e + d);
866
+ return d;
867
+ }, $(a, b, c) {
868
+ 1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.v);
869
+ if (0 > b) {
870
+ throw new G(28);
871
+ }
872
+ return b;
873
+ }, sa(a, b, c) {
874
+ kb(a.node, b + c);
875
+ a.node.v = Math.max(a.node.v, b + c);
876
+ }, ib(a, b, c, d, e) {
877
+ if (32768 !== (a.node.mode & 61440)) {
878
+ throw new G(43);
879
+ }
880
+ a = a.node.l;
881
+ if (e & 2 || a.buffer !== t.buffer) {
882
+ if (0 < c || c + b < a.length) {
883
+ a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
884
+ }
885
+ c = !0;
886
+ b = 65536 * Math.ceil(b / 65536);
887
+ (e = pb(65536, b)) ? (w.fill(0, e, e + b), b = e) : b = 0;
888
+ if (!b) {
889
+ throw new G(48);
890
+ }
891
+ t.set(a, b);
892
+ } else {
893
+ c = !1, b = a.byteOffset;
894
+ }
895
+ return {o:b, L:c};
896
+ }, kb(a, b, c, d) {
897
+ I.m.write(a, b, 0, d, c, !1);
898
+ return 0;
899
+ },},};
900
+ function qb(a, b) {
901
+ var c = 0;
902
+ a && (c |= 365);
903
+ b && (c |= 146);
904
+ return c;
905
+ }
906
+ var rb = null, sb = {}, tb = [], ub = 1, vb = null, wb = !0, G = null, nb = {}, yb = (a, b = {}) => {
907
+ a = Ya(a);
908
+ if (!a) {
909
+ return {path:"", node:null};
910
+ }
911
+ b = Object.assign({bb:!0, Ra:0}, b);
912
+ if (8 < b.Ra) {
913
+ throw new G(32);
914
+ }
915
+ a = a.split("/").filter(g => !!g);
916
+ for (var c = rb, d = "/", e = 0; e < a.length; e++) {
917
+ var f = e === a.length - 1;
918
+ if (f && b.parent) {
919
+ break;
920
+ }
921
+ c = ob(c, a[e]);
922
+ d = Ta(d + "/" + a[e]);
923
+ c.Ca && (!f || f && b.bb) && (c = c.Ca.root);
924
+ if (!f || b.Ma) {
925
+ for (f = 0; 40960 === (c.mode & 61440);) {
926
+ if (c = xb(d), d = Ya(Ua(d), c), c = yb(d, {Ra:b.Ra + 1}).node, 40 < f++) {
927
+ throw new G(32);
928
+ }
929
+ }
930
+ }
931
+ }
932
+ return {path:d, node:c};
933
+ }, zb = a => {
934
+ for (var b;;) {
935
+ if (a === a.parent) {
936
+ return a = a.T.jb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
937
+ }
938
+ b = b ? `${a.name}/${b}` : a.name;
939
+ a = a.parent;
940
+ }
941
+ }, Ab = (a, b) => {
942
+ for (var c = 0, d = 0; d < b.length; d++) {
943
+ c = (c << 5) - c + b.charCodeAt(d) | 0;
944
+ }
945
+ return (a + c >>> 0) % vb.length;
946
+ }, ob = (a, b) => {
947
+ var c;
948
+ if (c = (c = Bb(a, "x")) ? c : a.j.ka ? 0 : 2) {
949
+ throw new G(c, a);
950
+ }
951
+ for (c = vb[Ab(a.id, b)]; c; c = c.ic) {
952
+ var d = c.name;
953
+ if (c.parent.id === a.id && d === b) {
954
+ return c;
955
+ }
956
+ }
957
+ return a.j.ka(a, b);
958
+ }, mb = (a, b, c, d) => {
959
+ a = new Cb(a, b, c, d);
960
+ b = Ab(a.parent.id, a.name);
961
+ a.ic = vb[b];
962
+ return vb[b] = a;
963
+ }, Db = a => {
964
+ var b = ["r", "w", "rw"][a & 3];
965
+ a & 512 && (b += "w");
966
+ return b;
967
+ }, Bb = (a, b) => {
968
+ if (wb) {
969
+ return 0;
970
+ }
971
+ if (!b.includes("r") || a.mode & 292) {
972
+ if (b.includes("w") && !(a.mode & 146) || b.includes("x") && !(a.mode & 73)) {
973
+ return 2;
974
+ }
975
+ } else {
976
+ return 2;
977
+ }
978
+ return 0;
979
+ }, Eb = (a, b) => {
980
+ try {
981
+ return ob(a, b), 20;
982
+ } catch (c) {
983
+ }
984
+ return Bb(a, "wx");
985
+ }, Gb = () => {
986
+ for (var a = 0; 4096 >= a; a++) {
987
+ if (!tb[a]) {
988
+ return a;
989
+ }
990
+ }
991
+ throw new G(33);
992
+ }, Hb = a => {
993
+ a = tb[a];
994
+ if (!a) {
995
+ throw new G(8);
996
+ }
997
+ return a;
998
+ }, Jb = (a, b = -1) => {
999
+ Ib || (Ib = function() {
1000
+ this.h = {};
1001
+ }, Ib.prototype = {}, Object.defineProperties(Ib.prototype, {object:{get() {
1002
+ return this.node;
1003
+ }, set(c) {
1004
+ this.node = c;
1005
+ }}, flags:{get() {
1006
+ return this.h.flags;
1007
+ }, set(c) {
1008
+ this.h.flags = c;
1009
+ },}, position:{get() {
1010
+ return this.h.position;
1011
+ }, set(c) {
1012
+ this.h.position = c;
1013
+ },},}));
1014
+ a = Object.assign(new Ib(), a);
1015
+ -1 == b && (b = Gb());
1016
+ a.X = b;
1017
+ return tb[b] = a;
1018
+ }, lb = {open:a => {
1019
+ a.m = sb[a.node.la].m;
1020
+ a.m.open && a.m.open(a);
1021
+ }, $:() => {
1022
+ throw new G(70);
1023
+ },}, gb = (a, b) => {
1024
+ sb[a] = {m:b};
1025
+ }, Kb = (a, b) => {
1026
+ var c = "/" === b, d = !b;
1027
+ if (c && rb) {
1028
+ throw new G(10);
1029
+ }
1030
+ if (!c && !d) {
1031
+ var e = yb(b, {bb:!1});
1032
+ b = e.path;
1033
+ e = e.node;
1034
+ if (e.Ca) {
1035
+ throw new G(10);
1036
+ }
1037
+ if (16384 !== (e.mode & 61440)) {
1038
+ throw new G(54);
1039
+ }
1040
+ }
1041
+ b = {type:a, Ic:{}, jb:b, fc:[]};
1042
+ a = a.T(b);
1043
+ a.T = b;
1044
+ b.root = a;
1045
+ c ? rb = a : e && (e.Ca = b, e.T && e.T.fc.push(b));
1046
+ }, Lb = (a, b, c) => {
1047
+ var d = yb(a, {parent:!0}).node;
1048
+ a = Va(a);
1049
+ if (!a || "." === a || ".." === a) {
1050
+ throw new G(28);
1051
+ }
1052
+ var e = Eb(d, a);
1053
+ if (e) {
1054
+ throw new G(e);
1055
+ }
1056
+ if (!d.j.Ba) {
1057
+ throw new G(63);
1058
+ }
1059
+ return d.j.Ba(d, a, b, c);
1060
+ }, Mb = (a, b, c) => {
1061
+ "undefined" == typeof c && (c = b, b = 438);
1062
+ Lb(a, b | 8192, c);
1063
+ }, Nb = (a, b) => {
1064
+ if (!Ya(a)) {
1065
+ throw new G(44);
1066
+ }
1067
+ var c = yb(b, {parent:!0}).node;
1068
+ if (!c) {
1069
+ throw new G(44);
1070
+ }
1071
+ b = Va(b);
1072
+ var d = Eb(c, b);
1073
+ if (d) {
1074
+ throw new G(d);
1075
+ }
1076
+ if (!c.j.Ga) {
1077
+ throw new G(63);
1078
+ }
1079
+ c.j.Ga(c, b, a);
1080
+ }, xb = a => {
1081
+ a = yb(a).node;
1082
+ if (!a) {
1083
+ throw new G(44);
1084
+ }
1085
+ if (!a.j.ma) {
1086
+ throw new G(28);
1087
+ }
1088
+ return Ya(zb(a.parent), a.j.ma(a));
1089
+ }, Pb = (a, b, c) => {
1090
+ if ("" === a) {
1091
+ throw new G(44);
1092
+ }
1093
+ if ("string" == typeof b) {
1094
+ var d = {r:0, "r+":2, w:577, "w+":578, a:1089, "a+":1090,}[b];
1095
+ if ("undefined" == typeof d) {
1096
+ throw Error(`Unknown file open mode: ${b}`);
1097
+ }
1098
+ b = d;
1099
+ }
1100
+ c = b & 64 ? ("undefined" == typeof c ? 438 : c) & 4095 | 32768 : 0;
1101
+ if ("object" == typeof a) {
1102
+ var e = a;
1103
+ } else {
1104
+ a = Ta(a);
1105
+ try {
1106
+ e = yb(a, {Ma:!(b & 131072)}).node;
1107
+ } catch (f) {
1108
+ }
1109
+ }
1110
+ d = !1;
1111
+ if (b & 64) {
1112
+ if (e) {
1113
+ if (b & 128) {
1114
+ throw new G(20);
1115
+ }
1116
+ } else {
1117
+ e = Lb(a, c, 0), d = !0;
1118
+ }
1119
+ }
1120
+ if (!e) {
1121
+ throw new G(44);
1122
+ }
1123
+ 8192 === (e.mode & 61440) && (b &= -513);
1124
+ if (b & 65536 && 16384 !== (e.mode & 61440)) {
1125
+ throw new G(54);
1126
+ }
1127
+ if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Db(b) || b & 512) ? 31 : Bb(e, Db(b)) : 44)) {
1128
+ throw new G(c);
1129
+ }
1130
+ if (b & 512 && !d) {
1131
+ c = e;
1132
+ c = "string" == typeof c ? yb(c, {Ma:!0}).node : c;
1133
+ if (!c.j.P) {
1134
+ throw new G(63);
1135
+ }
1136
+ if (16384 === (c.mode & 61440)) {
1137
+ throw new G(31);
1138
+ }
1139
+ if (32768 !== (c.mode & 61440)) {
1140
+ throw new G(28);
1141
+ }
1142
+ if (d = Bb(c, "w")) {
1143
+ throw new G(d);
1144
+ }
1145
+ c.j.P(c, {size:0, timestamp:Date.now()});
1146
+ }
1147
+ b &= -131713;
1148
+ e = Jb({node:e, path:zb(e), flags:b, seekable:!0, position:0, m:e.m, wc:[], error:!1});
1149
+ e.m.open && e.m.open(e);
1150
+ !m.logReadFiles || b & 1 || (Ob || (Ob = {}), a in Ob || (Ob[a] = 1));
1151
+ return e;
1152
+ }, Qb = (a, b, c) => {
1153
+ if (null === a.X) {
1154
+ throw new G(8);
1155
+ }
1156
+ if (!a.seekable || !a.m.$) {
1157
+ throw new G(70);
1158
+ }
1159
+ if (0 != c && 1 != c && 2 != c) {
1160
+ throw new G(28);
1161
+ }
1162
+ a.position = a.m.$(a, b, c);
1163
+ a.wc = [];
1164
+ }, Rb = () => {
1165
+ G || (G = function(a, b) {
1166
+ this.name = "ErrnoError";
1167
+ this.node = b;
1168
+ this.mc = function(c) {
1169
+ this.W = c;
1170
+ };
1171
+ this.mc(a);
1172
+ this.message = "FS error";
1173
+ }, G.prototype = Error(), G.prototype.constructor = G, [44].forEach(a => {
1174
+ nb[a] = new G(a);
1175
+ nb[a].stack = "<generic error, no stack>";
1176
+ }));
1177
+ }, Sb, Ub = (a, b, c) => {
1178
+ a = Ta("/dev/" + a);
1179
+ var d = qb(!!b, !!c);
1180
+ Tb || (Tb = 64);
1181
+ var e = Tb++ << 8 | 0;
1182
+ gb(e, {open:f => {
1183
+ f.seekable = !1;
1184
+ }, close:() => {
1185
+ c && c.buffer && c.buffer.length && c(10);
1186
+ }, read:(f, g, k, p) => {
1187
+ for (var n = 0, u = 0; u < p; u++) {
1188
+ try {
1189
+ var v = b();
1190
+ } catch (y) {
1191
+ throw new G(29);
1192
+ }
1193
+ if (void 0 === v && 0 === n) {
1194
+ throw new G(6);
1195
+ }
1196
+ if (null === v || void 0 === v) {
1197
+ break;
1198
+ }
1199
+ n++;
1200
+ g[k + u] = v;
1201
+ }
1202
+ n && (f.node.timestamp = Date.now());
1203
+ return n;
1204
+ }, write:(f, g, k, p) => {
1205
+ for (var n = 0; n < p; n++) {
1206
+ try {
1207
+ c(g[k + n]);
1208
+ } catch (u) {
1209
+ throw new G(29);
1210
+ }
1211
+ }
1212
+ p && (f.node.timestamp = Date.now());
1213
+ return n;
1214
+ }});
1215
+ Mb(a, d, e);
1216
+ }, Tb, Vb = {}, Ib, Ob, Wb = void 0;
1217
+ function Xb() {
1218
+ Wb += 4;
1219
+ return A[Wb - 4 >> 2];
1220
+ }
1221
+ function Yb(a) {
1222
+ if (void 0 === a) {
1223
+ return "_unknown";
1224
+ }
1225
+ a = a.replace(/[^a-zA-Z0-9_]/g, "$");
1226
+ var b = a.charCodeAt(0);
1227
+ return 48 <= b && 57 >= b ? `_${a}` : a;
1228
+ }
1229
+ function Zb(a, b) {
1230
+ a = Yb(a);
1231
+ return {[a]:function() {
1232
+ return b.apply(this, arguments);
1233
+ }}[a];
1234
+ }
1235
+ function $b() {
1236
+ this.L = [void 0];
1237
+ this.cb = [];
1238
+ }
1239
+ var J = new $b(), ac = void 0;
1240
+ function K(a) {
1241
+ throw new ac(a);
1242
+ }
1243
+ var bc = a => {
1244
+ a || K("Cannot use deleted val. handle = " + a);
1245
+ return J.get(a).value;
1246
+ }, cc = a => {
1247
+ switch(a) {
1248
+ case void 0:
1249
+ return 1;
1250
+ case null:
1251
+ return 2;
1252
+ case !0:
1253
+ return 3;
1254
+ case !1:
1255
+ return 4;
1256
+ default:
1257
+ return J.sa({qb:1, value:a});
1258
+ }
1259
+ };
1260
+ function dc(a) {
1261
+ var b = Error, c = Zb(a, function(d) {
1262
+ this.name = a;
1263
+ this.message = d;
1264
+ d = Error(d).stack;
1265
+ void 0 !== d && (this.stack = this.toString() + "\n" + d.replace(/^Error(:[^\n]*)?\n/, ""));
1266
+ });
1267
+ c.prototype = Object.create(b.prototype);
1268
+ c.prototype.constructor = c;
1269
+ c.prototype.toString = function() {
1270
+ return void 0 === this.message ? this.name : `${this.name}: ${this.message}`;
1271
+ };
1272
+ return c;
1273
+ }
1274
+ var ec = void 0, fc = void 0;
1275
+ function N(a) {
1276
+ for (var b = ""; w[a];) {
1277
+ b += fc[w[a++]];
1278
+ }
1279
+ return b;
1280
+ }
1281
+ var gc = [];
1282
+ function hc() {
1283
+ for (; gc.length;) {
1284
+ var a = gc.pop();
1285
+ a.g.ga = !1;
1286
+ a["delete"]();
1287
+ }
1288
+ }
1289
+ var ic = void 0, jc = {};
1290
+ function kc(a, b) {
1291
+ for (void 0 === b && K("ptr should not be undefined"); a.A;) {
1292
+ b = a.oa(b), a = a.A;
1293
+ }
1294
+ return b;
1295
+ }
1296
+ var lc = {};
1297
+ function mc(a) {
1298
+ a = nc(a);
1299
+ var b = N(a);
1300
+ oc(a);
1301
+ return b;
1302
+ }
1303
+ function pc(a, b) {
1304
+ var c = lc[a];
1305
+ void 0 === c && K(b + " has unknown type " + mc(a));
1306
+ return c;
1307
+ }
1308
+ function qc() {
1309
+ }
1310
+ var rc = !1;
1311
+ function sc(a) {
1312
+ --a.count.value;
1313
+ 0 === a.count.value && (a.G ? a.K.V(a.G) : a.u.i.V(a.o));
1314
+ }
1315
+ function tc(a, b, c) {
1316
+ if (b === c) {
1317
+ return a;
1318
+ }
1319
+ if (void 0 === c.A) {
1320
+ return null;
1321
+ }
1322
+ a = tc(a, b, c.A);
1323
+ return null === a ? null : c.Nb(a);
1324
+ }
1325
+ var uc = {};
1326
+ function vc(a, b) {
1327
+ b = kc(a, b);
1328
+ return jc[b];
1329
+ }
1330
+ var wc = void 0;
1331
+ function xc(a) {
1332
+ throw new wc(a);
1333
+ }
1334
+ function yc(a, b) {
1335
+ b.u && b.o || xc("makeClassHandle requires ptr and ptrType");
1336
+ !!b.K !== !!b.G && xc("Both smartPtrType and smartPtr must be specified");
1337
+ b.count = {value:1};
1338
+ return zc(Object.create(a, {g:{value:b,},}));
1339
+ }
1340
+ function zc(a) {
1341
+ if ("undefined" === typeof FinalizationRegistry) {
1342
+ return zc = b => b, a;
1343
+ }
1344
+ rc = new FinalizationRegistry(b => {
1345
+ sc(b.g);
1346
+ });
1347
+ zc = b => {
1348
+ var c = b.g;
1349
+ c.G && rc.register(b, {g:c}, b);
1350
+ return b;
1351
+ };
1352
+ qc = b => {
1353
+ rc.unregister(b);
1354
+ };
1355
+ return zc(a);
1356
+ }
1357
+ var Ac = {};
1358
+ function Bc(a) {
1359
+ for (; a.length;) {
1360
+ var b = a.pop();
1361
+ a.pop()(b);
1362
+ }
1363
+ }
1364
+ function Cc(a) {
1365
+ return this.fromWireType(A[a >> 2]);
1366
+ }
1367
+ var Dc = {}, Ec = {};
1368
+ function P(a, b, c) {
1369
+ function d(k) {
1370
+ k = c(k);
1371
+ k.length !== a.length && xc("Mismatched type converter count");
1372
+ for (var p = 0; p < a.length; ++p) {
1373
+ Fc(a[p], k[p]);
1374
+ }
1375
+ }
1376
+ a.forEach(function(k) {
1377
+ Ec[k] = b;
1378
+ });
1379
+ var e = Array(b.length), f = [], g = 0;
1380
+ b.forEach((k, p) => {
1381
+ lc.hasOwnProperty(k) ? e[p] = lc[k] : (f.push(k), Dc.hasOwnProperty(k) || (Dc[k] = []), Dc[k].push(() => {
1382
+ e[p] = lc[k];
1383
+ ++g;
1384
+ g === f.length && d(e);
1385
+ }));
1386
+ });
1387
+ 0 === f.length && d(e);
1388
+ }
1389
+ function Gc(a) {
1390
+ switch(a) {
1391
+ case 1:
1392
+ return 0;
1393
+ case 2:
1394
+ return 1;
1395
+ case 4:
1396
+ return 2;
1397
+ case 8:
1398
+ return 3;
1399
+ default:
1400
+ throw new TypeError(`Unknown type size: ${a}`);
1401
+ }
1402
+ }
1403
+ function Hc(a, b, c = {}) {
1404
+ var d = b.name;
1405
+ a || K(`type "${d}" must have a positive integer typeid pointer`);
1406
+ if (lc.hasOwnProperty(a)) {
1407
+ if (c.Zb) {
1408
+ return;
1409
+ }
1410
+ K(`Cannot register type '${d}' twice`);
1411
+ }
1412
+ lc[a] = b;
1413
+ delete Ec[a];
1414
+ Dc.hasOwnProperty(a) && (b = Dc[a], delete Dc[a], b.forEach(e => e()));
1415
+ }
1416
+ function Fc(a, b, c = {}) {
1417
+ if (!("argPackAdvance" in b)) {
1418
+ throw new TypeError("registerType registeredInstance requires argPackAdvance");
1419
+ }
1420
+ Hc(a, b, c);
1421
+ }
1422
+ function Ic(a) {
1423
+ K(a.g.u.i.name + " instance already deleted");
1424
+ }
1425
+ function Jc() {
1426
+ }
1427
+ function Kc(a, b, c) {
1428
+ if (void 0 === a[b].B) {
1429
+ var d = a[b];
1430
+ a[b] = function() {
1431
+ a[b].B.hasOwnProperty(arguments.length) || K(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${a[b].B})!`);
1432
+ return a[b].B[arguments.length].apply(this, arguments);
1433
+ };
1434
+ a[b].B = [];
1435
+ a[b].B[d.ea] = d;
1436
+ }
1437
+ }
1438
+ function Lc(a, b, c) {
1439
+ m.hasOwnProperty(a) ? ((void 0 === c || void 0 !== m[a].B && void 0 !== m[a].B[c]) && K(`Cannot register public name '${a}' twice`), Kc(m, a, a), m.hasOwnProperty(c) && K(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), m[a].B[c] = b) : (m[a] = b, void 0 !== c && (m[a].Hc = c));
1440
+ }
1441
+ function Mc(a, b, c, d, e, f, g, k) {
1442
+ this.name = a;
1443
+ this.constructor = b;
1444
+ this.N = c;
1445
+ this.V = d;
1446
+ this.A = e;
1447
+ this.Sb = f;
1448
+ this.oa = g;
1449
+ this.Nb = k;
1450
+ this.nb = [];
1451
+ }
1452
+ function Nc(a, b, c) {
1453
+ for (; b !== c;) {
1454
+ b.oa || K(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.oa(a), b = b.A;
1455
+ }
1456
+ return a;
1457
+ }
1458
+ function Oc(a, b) {
1459
+ if (null === b) {
1460
+ return this.Oa && K(`null is not a valid ${this.name}`), 0;
1461
+ }
1462
+ b.g || K(`Cannot pass "${Pc(b)}" as a ${this.name}`);
1463
+ b.g.o || K(`Cannot pass deleted object as a pointer of type ${this.name}`);
1464
+ return Nc(b.g.o, b.g.u.i, this.i);
1465
+ }
1466
+ function Qc(a, b) {
1467
+ if (null === b) {
1468
+ this.Oa && K(`null is not a valid ${this.name}`);
1469
+ if (this.xa) {
1470
+ var c = this.Qa();
1471
+ null !== a && a.push(this.V, c);
1472
+ return c;
1473
+ }
1474
+ return 0;
1475
+ }
1476
+ b.g || K(`Cannot pass "${Pc(b)}" as a ${this.name}`);
1477
+ b.g.o || K(`Cannot pass deleted object as a pointer of type ${this.name}`);
1478
+ !this.wa && b.g.u.wa && K(`Cannot convert argument of type ${b.g.K ? b.g.K.name : b.g.u.name} to parameter type ${this.name}`);
1479
+ c = Nc(b.g.o, b.g.u.i, this.i);
1480
+ if (this.xa) {
1481
+ switch(void 0 === b.g.G && K("Passing raw pointer to smart pointer is illegal"), this.qc) {
1482
+ case 0:
1483
+ b.g.K === this ? c = b.g.G : K(`Cannot convert argument of type ${b.g.K ? b.g.K.name : b.g.u.name} to parameter type ${this.name}`);
1484
+ break;
1485
+ case 1:
1486
+ c = b.g.G;
1487
+ break;
1488
+ case 2:
1489
+ if (b.g.K === this) {
1490
+ c = b.g.G;
1491
+ } else {
1492
+ var d = b.clone();
1493
+ c = this.lc(c, cc(function() {
1494
+ d["delete"]();
1495
+ }));
1496
+ null !== a && a.push(this.V, c);
1497
+ }
1498
+ break;
1499
+ default:
1500
+ K("Unsupporting sharing policy");
1501
+ }
1502
+ }
1503
+ return c;
1504
+ }
1505
+ function Rc(a, b) {
1506
+ if (null === b) {
1507
+ return this.Oa && K(`null is not a valid ${this.name}`), 0;
1508
+ }
1509
+ b.g || K(`Cannot pass "${Pc(b)}" as a ${this.name}`);
1510
+ b.g.o || K(`Cannot pass deleted object as a pointer of type ${this.name}`);
1511
+ b.g.u.wa && K(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
1512
+ return Nc(b.g.o, b.g.u.i, this.i);
1513
+ }
1514
+ function Sc(a, b, c, d) {
1515
+ this.name = a;
1516
+ this.i = b;
1517
+ this.Oa = c;
1518
+ this.wa = d;
1519
+ this.xa = !1;
1520
+ this.V = this.lc = this.Qa = this.ob = this.qc = this.kc = void 0;
1521
+ void 0 !== b.A ? this.toWireType = Qc : (this.toWireType = d ? Oc : Rc, this.J = null);
1522
+ }
1523
+ function Tc(a, b, c) {
1524
+ m.hasOwnProperty(a) || xc("Replacing nonexistant public symbol");
1525
+ void 0 !== m[a].B && void 0 !== c ? m[a].B[c] = b : (m[a] = b, m[a].ea = c);
1526
+ }
1527
+ var Uc = [], Q = a => {
1528
+ var b = Uc[a];
1529
+ b || (a >= Uc.length && (Uc.length = a + 1), Uc[a] = b = Ba.get(a));
1530
+ return b;
1531
+ }, Vc = (a, b) => {
1532
+ var c = [];
1533
+ return function() {
1534
+ c.length = 0;
1535
+ Object.assign(c, arguments);
1536
+ if (a.includes("j")) {
1537
+ var d = m["dynCall_" + a];
1538
+ d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
1539
+ } else {
1540
+ d = Q(b).apply(null, c);
1541
+ }
1542
+ return d;
1543
+ };
1544
+ };
1545
+ function R(a, b) {
1546
+ a = N(a);
1547
+ var c = a.includes("j") ? Vc(a, b) : Q(b);
1548
+ "function" != typeof c && K(`unknown function pointer with signature ${a}: ${b}`);
1549
+ return c;
1550
+ }
1551
+ var Wc = void 0;
1552
+ function Xc(a, b) {
1553
+ function c(f) {
1554
+ e[f] || lc[f] || (Ec[f] ? Ec[f].forEach(c) : (d.push(f), e[f] = !0));
1555
+ }
1556
+ var d = [], e = {};
1557
+ b.forEach(c);
1558
+ throw new Wc(`${a}: ` + d.map(mc).join([", "]));
1559
+ }
1560
+ function Yc(a, b, c, d, e) {
1561
+ var f = b.length;
1562
+ 2 > f && K("argTypes array size mismatch! Must at least get return value and 'this' types!");
1563
+ var g = null !== b[1] && null !== c, k = !1;
1564
+ for (c = 1; c < b.length; ++c) {
1565
+ if (null !== b[c] && void 0 === b[c].J) {
1566
+ k = !0;
1567
+ break;
1568
+ }
1569
+ }
1570
+ var p = "void" !== b[0].name, n = f - 2, u = Array(n), v = [], y = [];
1571
+ return function() {
1572
+ arguments.length !== n && K(`function ${a} called with ${arguments.length} arguments, expected ${n} args!`);
1573
+ y.length = 0;
1574
+ v.length = g ? 2 : 1;
1575
+ v[0] = e;
1576
+ if (g) {
1577
+ var l = b[1].toWireType(y, this);
1578
+ v[1] = l;
1579
+ }
1580
+ for (var r = 0; r < n; ++r) {
1581
+ u[r] = b[r + 2].toWireType(y, arguments[r]), v.push(u[r]);
1582
+ }
1583
+ r = d.apply(null, v);
1584
+ if (k) {
1585
+ Bc(y);
1586
+ } else {
1587
+ for (var x = g ? 1 : 2; x < b.length; x++) {
1588
+ var z = 1 === x ? l : u[x - 2];
1589
+ null !== b[x].J && b[x].J(z);
1590
+ }
1591
+ }
1592
+ l = p ? b[0].fromWireType(r) : void 0;
1593
+ return l;
1594
+ };
1595
+ }
1596
+ function Zc(a, b) {
1597
+ for (var c = [], d = 0; d < a; d++) {
1598
+ c.push(B[b + 4 * d >> 2]);
1599
+ }
1600
+ return c;
1601
+ }
1602
+ function $c(a, b, c) {
1603
+ a instanceof Object || K(`${c} with invalid "this": ${a}`);
1604
+ a instanceof b.i.constructor || K(`${c} incompatible with "this" of type ${a.constructor.name}`);
1605
+ a.g.o || K(`cannot call emscripten binding method ${c} on deleted object`);
1606
+ return Nc(a.g.o, a.g.u.i, b.i);
1607
+ }
1608
+ function ad(a) {
1609
+ a >= J.h && 0 === --J.get(a).qb && J.Yb(a);
1610
+ }
1611
+ function bd(a, b, c) {
1612
+ switch(b) {
1613
+ case 0:
1614
+ return function(d) {
1615
+ return this.fromWireType((c ? t : w)[d]);
1616
+ };
1617
+ case 1:
1618
+ return function(d) {
1619
+ return this.fromWireType((c ? xa : ya)[d >> 1]);
1620
+ };
1621
+ case 2:
1622
+ return function(d) {
1623
+ return this.fromWireType((c ? A : B)[d >> 2]);
1624
+ };
1625
+ default:
1626
+ throw new TypeError("Unknown integer type: " + a);
1627
+ }
1628
+ }
1629
+ function Pc(a) {
1630
+ if (null === a) {
1631
+ return "null";
1632
+ }
1633
+ var b = typeof a;
1634
+ return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
1635
+ }
1636
+ function cd(a, b) {
1637
+ switch(b) {
1638
+ case 2:
1639
+ return function(c) {
1640
+ return this.fromWireType(D[c >> 2]);
1641
+ };
1642
+ case 3:
1643
+ return function(c) {
1644
+ return this.fromWireType(za[c >> 3]);
1645
+ };
1646
+ default:
1647
+ throw new TypeError("Unknown float type: " + a);
1648
+ }
1649
+ }
1650
+ function dd(a, b, c) {
1651
+ switch(b) {
1652
+ case 0:
1653
+ return c ? function(d) {
1654
+ return t[d];
1655
+ } : function(d) {
1656
+ return w[d];
1657
+ };
1658
+ case 1:
1659
+ return c ? function(d) {
1660
+ return xa[d >> 1];
1661
+ } : function(d) {
1662
+ return ya[d >> 1];
1663
+ };
1664
+ case 2:
1665
+ return c ? function(d) {
1666
+ return A[d >> 2];
1667
+ } : function(d) {
1668
+ return B[d >> 2];
1669
+ };
1670
+ default:
1671
+ throw new TypeError("Unknown integer type: " + a);
1672
+ }
1673
+ }
1674
+ var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, fd = (a, b) => {
1675
+ var c = a >> 1;
1676
+ for (var d = c + b / 2; !(c >= d) && ya[c];) {
1677
+ ++c;
1678
+ }
1679
+ c <<= 1;
1680
+ if (32 < c - a && ed) {
1681
+ return ed.decode(w.subarray(a, c));
1682
+ }
1683
+ c = "";
1684
+ for (d = 0; !(d >= b / 2); ++d) {
1685
+ var e = xa[a + 2 * d >> 1];
1686
+ if (0 == e) {
1687
+ break;
1688
+ }
1689
+ c += String.fromCharCode(e);
1690
+ }
1691
+ return c;
1692
+ }, gd = (a, b, c) => {
1693
+ void 0 === c && (c = 2147483647);
1694
+ if (2 > c) {
1695
+ return 0;
1696
+ }
1697
+ c -= 2;
1698
+ var d = b;
1699
+ c = c < 2 * a.length ? c / 2 : a.length;
1700
+ for (var e = 0; e < c; ++e) {
1701
+ xa[b >> 1] = a.charCodeAt(e), b += 2;
1702
+ }
1703
+ xa[b >> 1] = 0;
1704
+ return b - d;
1705
+ }, hd = a => 2 * a.length, jd = (a, b) => {
1706
+ for (var c = 0, d = ""; !(c >= b / 4);) {
1707
+ var e = A[a + 4 * c >> 2];
1708
+ if (0 == e) {
1709
+ break;
1710
+ }
1711
+ ++c;
1712
+ 65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
1713
+ }
1714
+ return d;
1715
+ }, kd = (a, b, c) => {
1716
+ void 0 === c && (c = 2147483647);
1717
+ if (4 > c) {
1718
+ return 0;
1719
+ }
1720
+ var d = b;
1721
+ c = d + c - 4;
1722
+ for (var e = 0; e < a.length; ++e) {
1723
+ var f = a.charCodeAt(e);
1724
+ if (55296 <= f && 57343 >= f) {
1725
+ var g = a.charCodeAt(++e);
1726
+ f = 65536 + ((f & 1023) << 10) | g & 1023;
1727
+ }
1728
+ A[b >> 2] = f;
1729
+ b += 4;
1730
+ if (b + 4 > c) {
1731
+ break;
1732
+ }
1733
+ }
1734
+ A[b >> 2] = 0;
1735
+ return b - d;
1736
+ }, ld = a => {
1737
+ for (var b = 0, c = 0; c < a.length; ++c) {
1738
+ var d = a.charCodeAt(c);
1739
+ 55296 <= d && 57343 >= d && ++c;
1740
+ b += 4;
1741
+ }
1742
+ return b;
1743
+ }, md = {};
1744
+ function nd(a) {
1745
+ var b = md[a];
1746
+ return void 0 === b ? N(a) : b;
1747
+ }
1748
+ var od = [];
1749
+ function pd(a) {
1750
+ var b = od.length;
1751
+ od.push(a);
1752
+ return b;
1753
+ }
1754
+ function qd(a, b) {
1755
+ for (var c = Array(a), d = 0; d < a; ++d) {
1756
+ c[d] = pc(B[b + 4 * d >> 2], "parameter " + d);
1757
+ }
1758
+ return c;
1759
+ }
1760
+ var rd = [], sd = [];
1761
+ function td(a) {
1762
+ var b = a.getExtension("ANGLE_instanced_arrays");
1763
+ b && (a.vertexAttribDivisor = function(c, d) {
1764
+ b.vertexAttribDivisorANGLE(c, d);
1765
+ }, a.drawArraysInstanced = function(c, d, e, f) {
1766
+ b.drawArraysInstancedANGLE(c, d, e, f);
1767
+ }, a.drawElementsInstanced = function(c, d, e, f, g) {
1768
+ b.drawElementsInstancedANGLE(c, d, e, f, g);
1769
+ });
1770
+ }
1771
+ function ud(a) {
1772
+ var b = a.getExtension("OES_vertex_array_object");
1773
+ b && (a.createVertexArray = function() {
1774
+ return b.createVertexArrayOES();
1775
+ }, a.deleteVertexArray = function(c) {
1776
+ b.deleteVertexArrayOES(c);
1777
+ }, a.bindVertexArray = function(c) {
1778
+ b.bindVertexArrayOES(c);
1779
+ }, a.isVertexArray = function(c) {
1780
+ return b.isVertexArrayOES(c);
1781
+ });
1782
+ }
1783
+ function vd(a) {
1784
+ var b = a.getExtension("WEBGL_draw_buffers");
1785
+ b && (a.drawBuffers = function(c, d) {
1786
+ b.drawBuffersWEBGL(c, d);
1787
+ });
1788
+ }
1789
+ var wd = 1, xd = [], yd = [], zd = [], Ad = [], Bd = [], Cd = [], Dd = [], ja = [], Ed = [], Fd = [], Gd = {}, Hd = {}, Id = 4;
1790
+ function S(a) {
1791
+ Jd || (Jd = a);
1792
+ }
1793
+ function ha(a) {
1794
+ for (var b = wd++, c = a.length; c < b; c++) {
1795
+ a[c] = null;
1796
+ }
1797
+ return b;
1798
+ }
1799
+ function la(a) {
1800
+ T = ja[a];
1801
+ m.Dc = U = T && T.Ua;
1802
+ return !(a && !U);
1803
+ }
1804
+ function ka(a) {
1805
+ a || (a = T);
1806
+ if (!a.$b) {
1807
+ a.$b = !0;
1808
+ var b = a.Ua;
1809
+ td(b);
1810
+ ud(b);
1811
+ vd(b);
1812
+ b.Za = b.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
1813
+ b.hb = b.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
1814
+ 2 <= a.version && (b.$a = b.getExtension("EXT_disjoint_timer_query_webgl2"));
1815
+ if (2 > a.version || !b.$a) {
1816
+ b.$a = b.getExtension("EXT_disjoint_timer_query");
1817
+ }
1818
+ b.Gc = b.getExtension("WEBGL_multi_draw");
1819
+ (b.getSupportedExtensions() || []).forEach(function(c) {
1820
+ c.includes("lose_context") || c.includes("debug") || b.getExtension(c);
1821
+ });
1822
+ }
1823
+ }
1824
+ var Jd, T;
1825
+ function Kd(a, b) {
1826
+ U.bindFramebuffer(a, zd[b]);
1827
+ }
1828
+ function Ld(a) {
1829
+ U.bindVertexArray(Dd[a]);
1830
+ }
1831
+ function Md(a, b) {
1832
+ for (var c = 0; c < a; c++) {
1833
+ var d = A[b + 4 * c >> 2];
1834
+ U.deleteVertexArray(Dd[d]);
1835
+ Dd[d] = null;
1836
+ }
1837
+ }
1838
+ var Nd = [];
1839
+ function Od(a, b, c, d) {
1840
+ U.drawElements(a, b, c, d);
1841
+ }
1842
+ function Pd(a, b, c, d) {
1843
+ for (var e = 0; e < a; e++) {
1844
+ var f = U[c](), g = f && ha(d);
1845
+ f ? (f.name = g, d[g] = f) : S(1282);
1846
+ A[b + 4 * e >> 2] = g;
1847
+ }
1848
+ }
1849
+ function Qd(a, b) {
1850
+ Pd(a, b, "createVertexArray", Dd);
1851
+ }
1852
+ function Rd(a, b) {
1853
+ if (b) {
1854
+ var c = void 0;
1855
+ switch(a) {
1856
+ case 36346:
1857
+ c = 1;
1858
+ break;
1859
+ case 36344:
1860
+ return;
1861
+ case 34814:
1862
+ case 36345:
1863
+ c = 0;
1864
+ break;
1865
+ case 34466:
1866
+ var d = U.getParameter(34467);
1867
+ c = d ? d.length : 0;
1868
+ break;
1869
+ case 33309:
1870
+ if (2 > T.version) {
1871
+ S(1282);
1872
+ return;
1873
+ }
1874
+ c = 2 * (U.getSupportedExtensions() || []).length;
1875
+ break;
1876
+ case 33307:
1877
+ case 33308:
1878
+ if (2 > T.version) {
1879
+ S(1280);
1880
+ return;
1881
+ }
1882
+ c = 33307 == a ? 3 : 0;
1883
+ }
1884
+ if (void 0 === c) {
1885
+ switch(d = U.getParameter(a), typeof d) {
1886
+ case "number":
1887
+ c = d;
1888
+ break;
1889
+ case "boolean":
1890
+ c = d ? 1 : 0;
1891
+ break;
1892
+ case "string":
1893
+ S(1280);
1894
+ return;
1895
+ case "object":
1896
+ if (null === d) {
1897
+ switch(a) {
1898
+ case 34964:
1899
+ case 35725:
1900
+ case 34965:
1901
+ case 36006:
1902
+ case 36007:
1903
+ case 32873:
1904
+ case 34229:
1905
+ case 36662:
1906
+ case 36663:
1907
+ case 35053:
1908
+ case 35055:
1909
+ case 36010:
1910
+ case 35097:
1911
+ case 35869:
1912
+ case 32874:
1913
+ case 36389:
1914
+ case 35983:
1915
+ case 35368:
1916
+ case 34068:
1917
+ c = 0;
1918
+ break;
1919
+ default:
1920
+ S(1280);
1921
+ return;
1922
+ }
1923
+ } else {
1924
+ if (d instanceof Float32Array || d instanceof Uint32Array || d instanceof Int32Array || d instanceof Array) {
1925
+ for (a = 0; a < d.length; ++a) {
1926
+ A[b + 4 * a >> 2] = d[a];
1927
+ }
1928
+ return;
1929
+ }
1930
+ try {
1931
+ c = d.name | 0;
1932
+ } catch (e) {
1933
+ S(1280);
1934
+ ta("GL_INVALID_ENUM in glGet0v: Unknown object returned from WebGL getParameter(" + a + ")! (error: " + e + ")");
1935
+ return;
1936
+ }
1937
+ }
1938
+ break;
1939
+ default:
1940
+ S(1280);
1941
+ ta("GL_INVALID_ENUM in glGet0v: Native code calling glGet0v(" + a + ") and it returns " + d + " of type " + typeof d + "!");
1942
+ return;
1943
+ }
1944
+ }
1945
+ A[b >> 2] = c;
1946
+ } else {
1947
+ S(1281);
1948
+ }
1949
+ }
1950
+ function Sd(a, b) {
1951
+ Rd(a, b);
1952
+ }
1953
+ var Ud = a => {
1954
+ var b = bb(a) + 1, c = Td(b);
1955
+ c && cb(a, w, c, b);
1956
+ return c;
1957
+ };
1958
+ function Vd(a) {
1959
+ return "]" == a.slice(-1) && a.lastIndexOf("[");
1960
+ }
1961
+ function Wd(a) {
1962
+ a -= 5120;
1963
+ return 0 == a ? t : 1 == a ? w : 2 == a ? xa : 4 == a ? A : 6 == a ? D : 5 == a || 28922 == a || 28520 == a || 30779 == a || 30782 == a ? B : ya;
1964
+ }
1965
+ function Xd(a, b, c, d, e) {
1966
+ a = Wd(a);
1967
+ var f = 31 - Math.clz32(a.BYTES_PER_ELEMENT), g = Id;
1968
+ return a.subarray(e >> f, e + d * (c * ({5:3, 6:4, 8:2, 29502:3, 29504:4, 26917:2, 26918:2, 29846:3, 29847:4}[b - 6402] || 1) * (1 << f) + g - 1 & -g) >> f);
1969
+ }
1970
+ function V(a) {
1971
+ var b = U.Kb;
1972
+ if (b) {
1973
+ var c = b.na[a];
1974
+ "number" == typeof c && (b.na[a] = c = U.getUniformLocation(b, b.ub[a] + (0 < c ? "[" + c + "]" : "")));
1975
+ return c;
1976
+ }
1977
+ S(1282);
1978
+ }
1979
+ var Yd = [], Zd = [], $d = {}, be = () => {
1980
+ if (!ae) {
1981
+ var a = {USER:"web_user", LOGNAME:"web_user", PATH:"/", PWD:"/", HOME:"/home/web_user", LANG:("object" == typeof navigator && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", _:"./this.program"}, b;
1982
+ for (b in $d) {
1983
+ void 0 === $d[b] ? delete a[b] : a[b] = $d[b];
1984
+ }
1985
+ var c = [];
1986
+ for (b in a) {
1987
+ c.push(`${b}=${a[b]}`);
1988
+ }
1989
+ ae = c;
1990
+ }
1991
+ return ae;
1992
+ }, ae, ce = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), de = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], ee = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], fe = (a, b, c, d) => {
1993
+ function e(l, r, x) {
1994
+ for (l = "number" == typeof l ? l.toString() : l || ""; l.length < r;) {
1995
+ l = x[0] + l;
1996
+ }
1997
+ return l;
1998
+ }
1999
+ function f(l, r) {
2000
+ return e(l, r, "0");
2001
+ }
2002
+ function g(l, r) {
2003
+ function x(H) {
2004
+ return 0 > H ? -1 : 0 < H ? 1 : 0;
2005
+ }
2006
+ var z;
2007
+ 0 === (z = x(l.getFullYear() - r.getFullYear())) && 0 === (z = x(l.getMonth() - r.getMonth())) && (z = x(l.getDate() - r.getDate()));
2008
+ return z;
2009
+ }
2010
+ function k(l) {
2011
+ switch(l.getDay()) {
2012
+ case 0:
2013
+ return new Date(l.getFullYear() - 1, 11, 29);
2014
+ case 1:
2015
+ return l;
2016
+ case 2:
2017
+ return new Date(l.getFullYear(), 0, 3);
2018
+ case 3:
2019
+ return new Date(l.getFullYear(), 0, 2);
2020
+ case 4:
2021
+ return new Date(l.getFullYear(), 0, 1);
2022
+ case 5:
2023
+ return new Date(l.getFullYear() - 1, 11, 31);
2024
+ case 6:
2025
+ return new Date(l.getFullYear() - 1, 11, 30);
2026
+ }
2027
+ }
2028
+ function p(l) {
2029
+ var r = l.aa;
2030
+ for (l = new Date((new Date(l.ba + 1900, 0, 1)).getTime()); 0 < r;) {
2031
+ var x = l.getMonth(), z = (ce(l.getFullYear()) ? de : ee)[x];
2032
+ if (r > z - l.getDate()) {
2033
+ r -= z - l.getDate() + 1, l.setDate(1), 11 > x ? l.setMonth(x + 1) : (l.setMonth(0), l.setFullYear(l.getFullYear() + 1));
2034
+ } else {
2035
+ l.setDate(l.getDate() + r);
2036
+ break;
2037
+ }
2038
+ }
2039
+ x = new Date(l.getFullYear() + 1, 0, 4);
2040
+ r = k(new Date(l.getFullYear(), 0, 4));
2041
+ x = k(x);
2042
+ return 0 >= g(r, l) ? 0 >= g(x, l) ? l.getFullYear() + 1 : l.getFullYear() : l.getFullYear() - 1;
2043
+ }
2044
+ var n = A[d + 40 >> 2];
2045
+ d = {tc:A[d >> 2], sc:A[d + 4 >> 2], Ha:A[d + 8 >> 2], Sa:A[d + 12 >> 2], Ia:A[d + 16 >> 2], ba:A[d + 20 >> 2], R:A[d + 24 >> 2], aa:A[d + 28 >> 2], Jc:A[d + 32 >> 2], rc:A[d + 36 >> 2], uc:n ? n ? $a(w, n) : "" : ""};
2046
+ c = c ? $a(w, c) : "";
2047
+ n = {"%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",};
2048
+ for (var u in n) {
2049
+ c = c.replace(new RegExp(u, "g"), n[u]);
2050
+ }
2051
+ var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), y = "January February March April May June July August September October November December".split(" ");
2052
+ n = {"%a":l => v[l.R].substring(0, 3), "%A":l => v[l.R], "%b":l => y[l.Ia].substring(0, 3), "%B":l => y[l.Ia], "%C":l => f((l.ba + 1900) / 100 | 0, 2), "%d":l => f(l.Sa, 2), "%e":l => e(l.Sa, 2, " "), "%g":l => p(l).toString().substring(2), "%G":l => p(l), "%H":l => f(l.Ha, 2), "%I":l => {
2053
+ l = l.Ha;
2054
+ 0 == l ? l = 12 : 12 < l && (l -= 12);
2055
+ return f(l, 2);
2056
+ }, "%j":l => {
2057
+ for (var r = 0, x = 0; x <= l.Ia - 1; r += (ce(l.ba + 1900) ? de : ee)[x++]) {
2058
+ }
2059
+ return f(l.Sa + r, 3);
2060
+ }, "%m":l => f(l.Ia + 1, 2), "%M":l => f(l.sc, 2), "%n":() => "\n", "%p":l => 0 <= l.Ha && 12 > l.Ha ? "AM" : "PM", "%S":l => f(l.tc, 2), "%t":() => "\t", "%u":l => l.R || 7, "%U":l => f(Math.floor((l.aa + 7 - l.R) / 7), 2), "%V":l => {
2061
+ var r = Math.floor((l.aa + 7 - (l.R + 6) % 7) / 7);
2062
+ 2 >= (l.R + 371 - l.aa - 2) % 7 && r++;
2063
+ if (r) {
2064
+ 53 == r && (x = (l.R + 371 - l.aa) % 7, 4 == x || 3 == x && ce(l.ba) || (r = 1));
2065
+ } else {
2066
+ r = 52;
2067
+ var x = (l.R + 7 - l.aa - 1) % 7;
2068
+ (4 == x || 5 == x && ce(l.ba % 400 - 1)) && r++;
2069
+ }
2070
+ return f(r, 2);
2071
+ }, "%w":l => l.R, "%W":l => f(Math.floor((l.aa + 7 - (l.R + 6) % 7) / 7), 2), "%y":l => (l.ba + 1900).toString().substring(2), "%Y":l => l.ba + 1900, "%z":l => {
2072
+ l = l.rc;
2073
+ var r = 0 <= l;
2074
+ l = Math.abs(l) / 60;
2075
+ return (r ? "+" : "-") + String("0000" + (l / 60 * 100 + l % 60)).slice(-4);
2076
+ }, "%Z":l => l.uc, "%%":() => "%"};
2077
+ c = c.replace(/%%/g, "\x00\x00");
2078
+ for (u in n) {
2079
+ c.includes(u) && (c = c.replace(new RegExp(u, "g"), n[u](d)));
2080
+ }
2081
+ c = c.replace(/\0\0/g, "%");
2082
+ u = db(c, !1);
2083
+ if (u.length > b) {
2084
+ return 0;
2085
+ }
2086
+ t.set(u, a);
2087
+ return u.length - 1;
2088
+ };
2089
+ function Cb(a, b, c, d) {
2090
+ a || (a = this);
2091
+ this.parent = a;
2092
+ this.T = a.T;
2093
+ this.Ca = null;
2094
+ this.id = ub++;
2095
+ this.name = b;
2096
+ this.mode = c;
2097
+ this.j = {};
2098
+ this.m = {};
2099
+ this.la = d;
2100
+ }
2101
+ Object.defineProperties(Cb.prototype, {read:{get:function() {
2102
+ return 365 === (this.mode & 365);
2103
+ }, set:function(a) {
2104
+ a ? this.mode |= 365 : this.mode &= -366;
2105
+ }}, write:{get:function() {
2106
+ return 146 === (this.mode & 146);
2107
+ }, set:function(a) {
2108
+ a ? this.mode |= 146 : this.mode &= -147;
2109
+ }}});
2110
+ Rb();
2111
+ vb = Array(4096);
2112
+ Kb(I, "/");
2113
+ Lb("/tmp", 16895, 0);
2114
+ Lb("/home", 16895, 0);
2115
+ Lb("/home/web_user", 16895, 0);
2116
+ (() => {
2117
+ Lb("/dev", 16895, 0);
2118
+ gb(259, {read:() => 0, write:(d, e, f, g) => g,});
2119
+ Mb("/dev/null", 259);
2120
+ fb(1280, ib);
2121
+ fb(1536, jb);
2122
+ Mb("/dev/tty", 1280);
2123
+ Mb("/dev/tty1", 1536);
2124
+ var a = new Uint8Array(1024), b = 0, c = () => {
2125
+ 0 === b && (b = Xa(a).byteLength);
2126
+ return a[--b];
2127
+ };
2128
+ Ub("random", c);
2129
+ Ub("urandom", c);
2130
+ Lb("/dev/shm", 16895, 0);
2131
+ Lb("/dev/shm/tmp", 16895, 0);
2132
+ })();
2133
+ (() => {
2134
+ Lb("/proc", 16895, 0);
2135
+ var a = Lb("/proc/self", 16895, 0);
2136
+ Lb("/proc/self/fd", 16895, 0);
2137
+ Kb({T:() => {
2138
+ var b = mb(a, "fd", 16895, 73);
2139
+ b.j = {ka:(c, d) => {
2140
+ var e = Hb(+d);
2141
+ c = {parent:null, T:{jb:"fake"}, j:{ma:() => e.path},};
2142
+ return c.parent = c;
2143
+ }};
2144
+ return b;
2145
+ }}, "/proc/self/fd");
2146
+ })();
2147
+ Object.assign($b.prototype, {get(a) {
2148
+ return this.L[a];
2149
+ }, has(a) {
2150
+ return void 0 !== this.L[a];
2151
+ }, sa(a) {
2152
+ var b = this.cb.pop() || this.L.length;
2153
+ this.L[b] = a;
2154
+ return b;
2155
+ }, Yb(a) {
2156
+ this.L[a] = void 0;
2157
+ this.cb.push(a);
2158
+ }});
2159
+ ac = m.BindingError = class extends Error {
2160
+ constructor(a) {
2161
+ super(a);
2162
+ this.name = "BindingError";
2163
+ }
2164
+ };
2165
+ J.L.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
2166
+ J.h = J.L.length;
2167
+ m.count_emval_handles = function() {
2168
+ for (var a = 0, b = J.h; b < J.L.length; ++b) {
2169
+ void 0 !== J.L[b] && ++a;
2170
+ }
2171
+ return a;
2172
+ };
2173
+ ec = m.PureVirtualError = dc("PureVirtualError");
2174
+ for (var ge = Array(256), he = 0; 256 > he; ++he) {
2175
+ ge[he] = String.fromCharCode(he);
2176
+ }
2177
+ fc = ge;
2178
+ m.getInheritedInstanceCount = function() {
2179
+ return Object.keys(jc).length;
2180
+ };
2181
+ m.getLiveInheritedInstances = function() {
2182
+ var a = [], b;
2183
+ for (b in jc) {
2184
+ jc.hasOwnProperty(b) && a.push(jc[b]);
2185
+ }
2186
+ return a;
2187
+ };
2188
+ m.flushPendingDeletes = hc;
2189
+ m.setDelayFunction = function(a) {
2190
+ ic = a;
2191
+ gc.length && ic && ic(hc);
2192
+ };
2193
+ wc = m.InternalError = class extends Error {
2194
+ constructor(a) {
2195
+ super(a);
2196
+ this.name = "InternalError";
2197
+ }
2198
+ };
2199
+ Jc.prototype.isAliasOf = function(a) {
2200
+ if (!(this instanceof Jc && a instanceof Jc)) {
2201
+ return !1;
2202
+ }
2203
+ var b = this.g.u.i, c = this.g.o, d = a.g.u.i;
2204
+ for (a = a.g.o; b.A;) {
2205
+ c = b.oa(c), b = b.A;
2206
+ }
2207
+ for (; d.A;) {
2208
+ a = d.oa(a), d = d.A;
2209
+ }
2210
+ return b === d && c === a;
2211
+ };
2212
+ Jc.prototype.clone = function() {
2213
+ this.g.o || Ic(this);
2214
+ if (this.g.ia) {
2215
+ return this.g.count.value += 1, this;
2216
+ }
2217
+ var a = zc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
2218
+ a = a(c.call(b, d, {g:{value:{count:e.count, ga:e.ga, ia:e.ia, o:e.o, u:e.u, G:e.G, K:e.K,},}}));
2219
+ a.g.count.value += 1;
2220
+ a.g.ga = !1;
2221
+ return a;
2222
+ };
2223
+ Jc.prototype["delete"] = function() {
2224
+ this.g.o || Ic(this);
2225
+ this.g.ga && !this.g.ia && K("Object already scheduled for deletion");
2226
+ qc(this);
2227
+ sc(this.g);
2228
+ this.g.ia || (this.g.G = void 0, this.g.o = void 0);
2229
+ };
2230
+ Jc.prototype.isDeleted = function() {
2231
+ return !this.g.o;
2232
+ };
2233
+ Jc.prototype.deleteLater = function() {
2234
+ this.g.o || Ic(this);
2235
+ this.g.ga && !this.g.ia && K("Object already scheduled for deletion");
2236
+ gc.push(this);
2237
+ 1 === gc.length && ic && ic(hc);
2238
+ this.g.ga = !0;
2239
+ return this;
2240
+ };
2241
+ Sc.prototype.Tb = function(a) {
2242
+ this.ob && (a = this.ob(a));
2243
+ return a;
2244
+ };
2245
+ Sc.prototype.Ya = function(a) {
2246
+ this.V && this.V(a);
2247
+ };
2248
+ Sc.prototype.argPackAdvance = 8;
2249
+ Sc.prototype.readValueFromPointer = Cc;
2250
+ Sc.prototype.deleteObject = function(a) {
2251
+ if (null !== a) {
2252
+ a["delete"]();
2253
+ }
2254
+ };
2255
+ Sc.prototype.fromWireType = function(a) {
2256
+ function b() {
2257
+ return this.xa ? yc(this.i.N, {u:this.kc, o:c, K:this, G:a,}) : yc(this.i.N, {u:this, o:a,});
2258
+ }
2259
+ var c = this.Tb(a);
2260
+ if (!c) {
2261
+ return this.Ya(a), null;
2262
+ }
2263
+ var d = vc(this.i, c);
2264
+ if (void 0 !== d) {
2265
+ if (0 === d.g.count.value) {
2266
+ return d.g.o = c, d.g.G = a, d.clone();
2267
+ }
2268
+ d = d.clone();
2269
+ this.Ya(a);
2270
+ return d;
2271
+ }
2272
+ d = this.i.Sb(c);
2273
+ d = uc[d];
2274
+ if (!d) {
2275
+ return b.call(this);
2276
+ }
2277
+ d = this.wa ? d.Ib : d.pointerType;
2278
+ var e = tc(c, this.i, d.i);
2279
+ return null === e ? b.call(this) : this.xa ? yc(d.i.N, {u:d, o:e, K:this, G:a,}) : yc(d.i.N, {u:d, o:e,});
2280
+ };
2281
+ Wc = m.UnboundTypeError = dc("UnboundTypeError");
2282
+ for (var U, W = 0; 32 > W; ++W) {
2283
+ Nd.push(Array(W));
2284
+ }
2285
+ var ie = new Float32Array(288);
2286
+ for (W = 0; 288 > W; ++W) {
2287
+ Yd[W] = ie.subarray(0, W + 1);
2288
+ }
2289
+ var je = new Int32Array(288);
2290
+ for (W = 0; 288 > W; ++W) {
2291
+ Zd[W] = je.subarray(0, W + 1);
2292
+ }
2293
+ var Ae = {__syscall_fcntl64:function(a, b, c) {
2294
+ Wb = c;
2295
+ try {
2296
+ var d = Hb(a);
2297
+ switch(b) {
2298
+ case 0:
2299
+ var e = Xb();
2300
+ return 0 > e ? -28 : Jb(d, e).X;
2301
+ case 1:
2302
+ case 2:
2303
+ return 0;
2304
+ case 3:
2305
+ return d.flags;
2306
+ case 4:
2307
+ return e = Xb(), d.flags |= e, 0;
2308
+ case 5:
2309
+ return e = Xb(), xa[e + 0 >> 1] = 2, 0;
2310
+ case 6:
2311
+ case 7:
2312
+ return 0;
2313
+ case 16:
2314
+ case 8:
2315
+ return -28;
2316
+ case 9:
2317
+ return A[ke() >> 2] = 28, -1;
2318
+ default:
2319
+ return -28;
2320
+ }
2321
+ } catch (f) {
2322
+ if ("undefined" == typeof Vb || "ErrnoError" !== f.name) {
2323
+ throw f;
2324
+ }
2325
+ return -f.W;
2326
+ }
2327
+ }, __syscall_fstat64:function(a, b) {
2328
+ try {
2329
+ a: {
2330
+ var c = Hb(a).path;
2331
+ try {
2332
+ var d = yb(c, {Ma:!0}).node;
2333
+ if (!d) {
2334
+ throw new G(44);
2335
+ }
2336
+ if (!d.j.M) {
2337
+ throw new G(63);
2338
+ }
2339
+ var e = d.j.M(d);
2340
+ } catch (n) {
2341
+ if (n && n.node && Ta(c) !== Ta(zb(n.node))) {
2342
+ var f = -54;
2343
+ break a;
2344
+ }
2345
+ throw n;
2346
+ }
2347
+ A[b >> 2] = e.Mb;
2348
+ A[b + 4 >> 2] = e.mode;
2349
+ B[b + 8 >> 2] = e.jc;
2350
+ A[b + 12 >> 2] = e.uid;
2351
+ A[b + 16 >> 2] = e.Xb;
2352
+ A[b + 20 >> 2] = e.la;
2353
+ F = [e.size >>> 0, (E = e.size, 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
2354
+ A[b + 24 >> 2] = F[0];
2355
+ A[b + 28 >> 2] = F[1];
2356
+ A[b + 32 >> 2] = 4096;
2357
+ A[b + 36 >> 2] = e.Hb;
2358
+ var g = e.Fb.getTime(), k = e.hc.getTime(), p = e.Jb.getTime();
2359
+ F = [Math.floor(g / 1000) >>> 0, (E = Math.floor(g / 1000), 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
2360
+ A[b + 40 >> 2] = F[0];
2361
+ A[b + 44 >> 2] = F[1];
2362
+ B[b + 48 >> 2] = g % 1000 * 1000;
2363
+ F = [Math.floor(k / 1000) >>> 0, (E = Math.floor(k / 1000), 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
2364
+ A[b + 56 >> 2] = F[0];
2365
+ A[b + 60 >> 2] = F[1];
2366
+ B[b + 64 >> 2] = k % 1000 * 1000;
2367
+ F = [Math.floor(p / 1000) >>> 0, (E = Math.floor(p / 1000), 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
2368
+ A[b + 72 >> 2] = F[0];
2369
+ A[b + 76 >> 2] = F[1];
2370
+ B[b + 80 >> 2] = p % 1000 * 1000;
2371
+ F = [e.fb >>> 0, (E = e.fb, 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
2372
+ A[b + 88 >> 2] = F[0];
2373
+ A[b + 92 >> 2] = F[1];
2374
+ f = 0;
2375
+ }
2376
+ return f;
2377
+ } catch (n) {
2378
+ if ("undefined" == typeof Vb || "ErrnoError" !== n.name) {
2379
+ throw n;
2380
+ }
2381
+ return -n.W;
2382
+ }
2383
+ }, __syscall_ioctl:function(a, b, c) {
2384
+ Wb = c;
2385
+ try {
2386
+ var d = Hb(a);
2387
+ switch(b) {
2388
+ case 21509:
2389
+ return d.s ? 0 : -59;
2390
+ case 21505:
2391
+ if (!d.s) {
2392
+ return -59;
2393
+ }
2394
+ if (d.s.U.bc) {
2395
+ b = [3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,];
2396
+ var e = Xb();
2397
+ A[e >> 2] = 25856;
2398
+ A[e + 4 >> 2] = 5;
2399
+ A[e + 8 >> 2] = 191;
2400
+ A[e + 12 >> 2] = 35387;
2401
+ for (var f = 0; 32 > f; f++) {
2402
+ t[e + f + 17 >> 0] = b[f] || 0;
2403
+ }
2404
+ }
2405
+ return 0;
2406
+ case 21510:
2407
+ case 21511:
2408
+ case 21512:
2409
+ return d.s ? 0 : -59;
2410
+ case 21506:
2411
+ case 21507:
2412
+ case 21508:
2413
+ if (!d.s) {
2414
+ return -59;
2415
+ }
2416
+ if (d.s.U.cc) {
2417
+ for (e = Xb(), b = [], f = 0; 32 > f; f++) {
2418
+ b.push(t[e + f + 17 >> 0]);
2419
+ }
2420
+ }
2421
+ return 0;
2422
+ case 21519:
2423
+ if (!d.s) {
2424
+ return -59;
2425
+ }
2426
+ e = Xb();
2427
+ return A[e >> 2] = 0;
2428
+ case 21520:
2429
+ return d.s ? -28 : -59;
2430
+ case 21531:
2431
+ e = Xb();
2432
+ if (!d.m.ac) {
2433
+ throw new G(59);
2434
+ }
2435
+ return d.m.ac(d, b, e);
2436
+ case 21523:
2437
+ if (!d.s) {
2438
+ return -59;
2439
+ }
2440
+ d.s.U.dc && (f = [24, 80], e = Xb(), xa[e >> 1] = f[0], xa[e + 2 >> 1] = f[1]);
2441
+ return 0;
2442
+ case 21524:
2443
+ return d.s ? 0 : -59;
2444
+ case 21515:
2445
+ return d.s ? 0 : -59;
2446
+ default:
2447
+ return -28;
2448
+ }
2449
+ } catch (g) {
2450
+ if ("undefined" == typeof Vb || "ErrnoError" !== g.name) {
2451
+ throw g;
2452
+ }
2453
+ return -g.W;
2454
+ }
2455
+ }, __syscall_openat:function(a, b, c, d) {
2456
+ Wb = d;
2457
+ try {
2458
+ b = b ? $a(w, b) : "";
2459
+ var e = b;
2460
+ if ("/" === e.charAt(0)) {
2461
+ b = e;
2462
+ } else {
2463
+ var f = -100 === a ? "/" : Hb(a).path;
2464
+ if (0 == e.length) {
2465
+ throw new G(44);
2466
+ }
2467
+ b = Ta(f + "/" + e);
2468
+ }
2469
+ var g = d ? Xb() : 0;
2470
+ return Pb(b, c, g).X;
2471
+ } catch (k) {
2472
+ if ("undefined" == typeof Vb || "ErrnoError" !== k.name) {
2473
+ throw k;
2474
+ }
2475
+ return -k.W;
2476
+ }
2477
+ }, _embind_create_inheriting_constructor:function(a, b, c) {
2478
+ a = N(a);
2479
+ b = pc(b, "wrapper");
2480
+ c = bc(c);
2481
+ var d = [].slice, e = b.i, f = e.N, g = e.A.N, k = e.A.constructor;
2482
+ a = Zb(a, function() {
2483
+ e.A.nb.forEach(function(n) {
2484
+ if (this[n] === g[n]) {
2485
+ throw new ec(`Pure virtual function ${n} must be implemented in JavaScript`);
2486
+ }
2487
+ }.bind(this));
2488
+ Object.defineProperty(this, "__parent", {value:f});
2489
+ this.__construct.apply(this, d.call(arguments));
2490
+ });
2491
+ f.__construct = function() {
2492
+ this === f && K("Pass correct 'this' to __construct");
2493
+ var n = k.implement.apply(void 0, [this].concat(d.call(arguments)));
2494
+ qc(n);
2495
+ var u = n.g;
2496
+ n.notifyOnDestruction();
2497
+ u.ia = !0;
2498
+ Object.defineProperties(this, {g:{value:u}});
2499
+ zc(this);
2500
+ n = u.o;
2501
+ n = kc(e, n);
2502
+ jc.hasOwnProperty(n) ? K(`Tried to register registered instance: ${n}`) : jc[n] = this;
2503
+ };
2504
+ f.__destruct = function() {
2505
+ this === f && K("Pass correct 'this' to __destruct");
2506
+ qc(this);
2507
+ var n = this.g.o;
2508
+ n = kc(e, n);
2509
+ jc.hasOwnProperty(n) ? delete jc[n] : K(`Tried to unregister unregistered instance: ${n}`);
2510
+ };
2511
+ a.prototype = Object.create(f);
2512
+ for (var p in c) {
2513
+ a.prototype[p] = c[p];
2514
+ }
2515
+ return cc(a);
2516
+ }, _embind_finalize_value_object:function(a) {
2517
+ var b = Ac[a];
2518
+ delete Ac[a];
2519
+ var c = b.Qa, d = b.V, e = b.ab, f = e.map(g => g.Wb).concat(e.map(g => g.oc));
2520
+ P([a], f, g => {
2521
+ var k = {};
2522
+ e.forEach((p, n) => {
2523
+ var u = g[n], v = p.Ub, y = p.Vb, l = g[n + e.length], r = p.nc, x = p.pc;
2524
+ k[p.Qb] = {read:z => u.fromWireType(v(y, z)), write:(z, H) => {
2525
+ var C = [];
2526
+ r(x, z, l.toWireType(C, H));
2527
+ Bc(C);
2528
+ }};
2529
+ });
2530
+ return [{name:b.name, fromWireType:function(p) {
2531
+ var n = {}, u;
2532
+ for (u in k) {
2533
+ n[u] = k[u].read(p);
2534
+ }
2535
+ d(p);
2536
+ return n;
2537
+ }, toWireType:function(p, n) {
2538
+ for (var u in k) {
2539
+ if (!(u in n)) {
2540
+ throw new TypeError(`Missing field: "${u}"`);
2541
+ }
2542
+ }
2543
+ var v = c();
2544
+ for (u in k) {
2545
+ k[u].write(v, n[u]);
2546
+ }
2547
+ null !== p && p.push(d, v);
2548
+ return v;
2549
+ }, argPackAdvance:8, readValueFromPointer:Cc, J:d,}];
2550
+ });
2551
+ }, _embind_register_bigint:function() {
2552
+ }, _embind_register_bool:function(a, b, c, d, e) {
2553
+ var f = Gc(c);
2554
+ b = N(b);
2555
+ Fc(a, {name:b, fromWireType:function(g) {
2556
+ return !!g;
2557
+ }, toWireType:function(g, k) {
2558
+ return k ? d : e;
2559
+ }, argPackAdvance:8, readValueFromPointer:function(g) {
2560
+ if (1 === c) {
2561
+ var k = t;
2562
+ } else if (2 === c) {
2563
+ k = xa;
2564
+ } else if (4 === c) {
2565
+ k = A;
2566
+ } else {
2567
+ throw new TypeError("Unknown boolean type size: " + b);
2568
+ }
2569
+ return this.fromWireType(k[g >> f]);
2570
+ }, J:null,});
2571
+ }, _embind_register_class:function(a, b, c, d, e, f, g, k, p, n, u, v, y) {
2572
+ u = N(u);
2573
+ f = R(e, f);
2574
+ k && (k = R(g, k));
2575
+ n && (n = R(p, n));
2576
+ y = R(v, y);
2577
+ var l = Yb(u);
2578
+ Lc(l, function() {
2579
+ Xc(`Cannot construct ${u} due to unbound types`, [d]);
2580
+ });
2581
+ P([a, b, c], d ? [d] : [], function(r) {
2582
+ r = r[0];
2583
+ if (d) {
2584
+ var x = r.i;
2585
+ var z = x.N;
2586
+ } else {
2587
+ z = Jc.prototype;
2588
+ }
2589
+ r = Zb(l, function() {
2590
+ if (Object.getPrototypeOf(this) !== H) {
2591
+ throw new ac("Use 'new' to construct " + u);
2592
+ }
2593
+ if (void 0 === C.Z) {
2594
+ throw new ac(u + " has no accessible constructor");
2595
+ }
2596
+ var O = C.Z[arguments.length];
2597
+ if (void 0 === O) {
2598
+ throw new ac(`Tried to invoke ctor of ${u} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(C.Z).toString()}) parameters instead!`);
2599
+ }
2600
+ return O.apply(this, arguments);
2601
+ });
2602
+ var H = Object.create(z, {constructor:{value:r},});
2603
+ r.prototype = H;
2604
+ var C = new Mc(u, r, H, y, x, f, k, n);
2605
+ C.A && (void 0 === C.A.pa && (C.A.pa = []), C.A.pa.push(C));
2606
+ x = new Sc(u, C, !0, !1);
2607
+ z = new Sc(u + "*", C, !1, !1);
2608
+ var L = new Sc(u + " const*", C, !1, !0);
2609
+ uc[a] = {pointerType:z, Ib:L};
2610
+ Tc(l, r);
2611
+ return [x, z, L];
2612
+ });
2613
+ }, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
2614
+ var k = Zc(c, d);
2615
+ b = N(b);
2616
+ f = R(e, f);
2617
+ P([], [a], function(p) {
2618
+ function n() {
2619
+ Xc(`Cannot call ${u} due to unbound types`, k);
2620
+ }
2621
+ p = p[0];
2622
+ var u = `${p.name}.${b}`;
2623
+ b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2624
+ var v = p.i.constructor;
2625
+ void 0 === v[b] ? (n.ea = c - 1, v[b] = n) : (Kc(v, b, u), v[b].B[c - 1] = n);
2626
+ P([], k, function(y) {
2627
+ y = Yc(u, [y[0], null].concat(y.slice(1)), null, f, g);
2628
+ void 0 === v[b].B ? (y.ea = c - 1, v[b] = y) : v[b].B[c - 1] = y;
2629
+ if (p.i.pa) {
2630
+ for (const l of p.i.pa) {
2631
+ l.constructor.hasOwnProperty(b) || (l.constructor[b] = y);
2632
+ }
2633
+ }
2634
+ return [];
2635
+ });
2636
+ return [];
2637
+ });
2638
+ }, _embind_register_class_class_property:function(a, b, c, d, e, f, g, k) {
2639
+ b = N(b);
2640
+ f = R(e, f);
2641
+ P([], [a], function(p) {
2642
+ p = p[0];
2643
+ var n = `${p.name}.${b}`, u = {get() {
2644
+ Xc(`Cannot access ${n} due to unbound types`, [c]);
2645
+ }, enumerable:!0, configurable:!0};
2646
+ u.set = k ? () => {
2647
+ Xc(`Cannot access ${n} due to unbound types`, [c]);
2648
+ } : () => {
2649
+ K(`${n} is a read-only property`);
2650
+ };
2651
+ Object.defineProperty(p.i.constructor, b, u);
2652
+ P([], [c], function(v) {
2653
+ v = v[0];
2654
+ var y = {get() {
2655
+ return v.fromWireType(f(d));
2656
+ }, enumerable:!0};
2657
+ k && (k = R(g, k), y.set = l => {
2658
+ var r = [];
2659
+ k(d, v.toWireType(r, l));
2660
+ Bc(r);
2661
+ });
2662
+ Object.defineProperty(p.i.constructor, b, y);
2663
+ return [];
2664
+ });
2665
+ return [];
2666
+ });
2667
+ }, _embind_register_class_constructor:function(a, b, c, d, e, f) {
2668
+ var g = Zc(b, c);
2669
+ e = R(d, e);
2670
+ P([], [a], function(k) {
2671
+ k = k[0];
2672
+ var p = `constructor ${k.name}`;
2673
+ void 0 === k.i.Z && (k.i.Z = []);
2674
+ if (void 0 !== k.i.Z[b - 1]) {
2675
+ throw new ac(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${k.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
2676
+ }
2677
+ k.i.Z[b - 1] = () => {
2678
+ Xc(`Cannot construct ${k.name} due to unbound types`, g);
2679
+ };
2680
+ P([], g, function(n) {
2681
+ n.splice(1, 0, null);
2682
+ k.i.Z[b - 1] = Yc(p, n, null, e, f);
2683
+ return [];
2684
+ });
2685
+ return [];
2686
+ });
2687
+ }, _embind_register_class_function:function(a, b, c, d, e, f, g, k) {
2688
+ var p = Zc(c, d);
2689
+ b = N(b);
2690
+ f = R(e, f);
2691
+ P([], [a], function(n) {
2692
+ function u() {
2693
+ Xc(`Cannot call ${v} due to unbound types`, p);
2694
+ }
2695
+ n = n[0];
2696
+ var v = `${n.name}.${b}`;
2697
+ b.startsWith("@@") && (b = Symbol[b.substring(2)]);
2698
+ k && n.i.nb.push(b);
2699
+ var y = n.i.N, l = y[b];
2700
+ void 0 === l || void 0 === l.B && l.className !== n.name && l.ea === c - 2 ? (u.ea = c - 2, u.className = n.name, y[b] = u) : (Kc(y, b, v), y[b].B[c - 2] = u);
2701
+ P([], p, function(r) {
2702
+ r = Yc(v, r, n, f, g);
2703
+ void 0 === y[b].B ? (r.ea = c - 2, y[b] = r) : y[b].B[c - 2] = r;
2704
+ return [];
2705
+ });
2706
+ return [];
2707
+ });
2708
+ }, _embind_register_class_property:function(a, b, c, d, e, f, g, k, p, n) {
2709
+ b = N(b);
2710
+ e = R(d, e);
2711
+ P([], [a], function(u) {
2712
+ u = u[0];
2713
+ var v = `${u.name}.${b}`, y = {get() {
2714
+ Xc(`Cannot access ${v} due to unbound types`, [c, g]);
2715
+ }, enumerable:!0, configurable:!0};
2716
+ y.set = p ? () => {
2717
+ Xc(`Cannot access ${v} due to unbound types`, [c, g]);
2718
+ } : () => {
2719
+ K(v + " is a read-only property");
2720
+ };
2721
+ Object.defineProperty(u.i.N, b, y);
2722
+ P([], p ? [c, g] : [c], function(l) {
2723
+ var r = l[0], x = {get() {
2724
+ var H = $c(this, u, v + " getter");
2725
+ return r.fromWireType(e(f, H));
2726
+ }, enumerable:!0};
2727
+ if (p) {
2728
+ p = R(k, p);
2729
+ var z = l[1];
2730
+ x.set = function(H) {
2731
+ var C = $c(this, u, v + " setter"), L = [];
2732
+ p(n, C, z.toWireType(L, H));
2733
+ Bc(L);
2734
+ };
2735
+ }
2736
+ Object.defineProperty(u.i.N, b, x);
2737
+ return [];
2738
+ });
2739
+ return [];
2740
+ });
2741
+ }, _embind_register_emval:function(a, b) {
2742
+ b = N(b);
2743
+ Fc(a, {name:b, fromWireType:function(c) {
2744
+ var d = bc(c);
2745
+ ad(c);
2746
+ return d;
2747
+ }, toWireType:function(c, d) {
2748
+ return cc(d);
2749
+ }, argPackAdvance:8, readValueFromPointer:Cc, J:null,});
2750
+ }, _embind_register_enum:function(a, b, c, d) {
2751
+ function e() {
2752
+ }
2753
+ c = Gc(c);
2754
+ b = N(b);
2755
+ e.values = {};
2756
+ Fc(a, {name:b, constructor:e, fromWireType:function(f) {
2757
+ return this.constructor.values[f];
2758
+ }, toWireType:function(f, g) {
2759
+ return g.value;
2760
+ }, argPackAdvance:8, readValueFromPointer:bd(b, c, d), J:null,});
2761
+ Lc(b, e);
2762
+ }, _embind_register_enum_value:function(a, b, c) {
2763
+ var d = pc(a, "enum");
2764
+ b = N(b);
2765
+ a = d.constructor;
2766
+ d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:Zb(`${d.name}_${b}`, function() {
2767
+ })},});
2768
+ a.values[c] = d;
2769
+ a[b] = d;
2770
+ }, _embind_register_float:function(a, b, c) {
2771
+ c = Gc(c);
2772
+ b = N(b);
2773
+ Fc(a, {name:b, fromWireType:function(d) {
2774
+ return d;
2775
+ }, toWireType:function(d, e) {
2776
+ return e;
2777
+ }, argPackAdvance:8, readValueFromPointer:cd(b, c), J:null,});
2778
+ }, _embind_register_function:function(a, b, c, d, e, f) {
2779
+ var g = Zc(b, c);
2780
+ a = N(a);
2781
+ e = R(d, e);
2782
+ Lc(a, function() {
2783
+ Xc(`Cannot call ${a} due to unbound types`, g);
2784
+ }, b - 1);
2785
+ P([], g, function(k) {
2786
+ Tc(a, Yc(a, [k[0], null].concat(k.slice(1)), null, e, f), b - 1);
2787
+ return [];
2788
+ });
2789
+ }, _embind_register_integer:function(a, b, c, d, e) {
2790
+ b = N(b);
2791
+ -1 === e && (e = 4294967295);
2792
+ e = Gc(c);
2793
+ var f = k => k;
2794
+ if (0 === d) {
2795
+ var g = 32 - 8 * c;
2796
+ f = k => k << g >>> g;
2797
+ }
2798
+ c = b.includes("unsigned") ? function(k, p) {
2799
+ return p >>> 0;
2800
+ } : function(k, p) {
2801
+ return p;
2802
+ };
2803
+ Fc(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:dd(b, e, 0 !== d), J:null,});
2804
+ }, _embind_register_memory_view:function(a, b, c) {
2805
+ function d(f) {
2806
+ f >>= 2;
2807
+ var g = B;
2808
+ return new e(g.buffer, g[f + 1], g[f]);
2809
+ }
2810
+ var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
2811
+ c = N(c);
2812
+ Fc(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Zb:!0,});
2813
+ }, _embind_register_std_string:function(a, b) {
2814
+ b = N(b);
2815
+ var c = "std::string" === b;
2816
+ Fc(a, {name:b, fromWireType:function(d) {
2817
+ var e = B[d >> 2], f = d + 4;
2818
+ if (c) {
2819
+ for (var g = f, k = 0; k <= e; ++k) {
2820
+ var p = f + k;
2821
+ if (k == e || 0 == w[p]) {
2822
+ g = g ? $a(w, g, p - g) : "";
2823
+ if (void 0 === n) {
2824
+ var n = g;
2825
+ } else {
2826
+ n += String.fromCharCode(0), n += g;
2827
+ }
2828
+ g = p + 1;
2829
+ }
2830
+ }
2831
+ } else {
2832
+ n = Array(e);
2833
+ for (k = 0; k < e; ++k) {
2834
+ n[k] = String.fromCharCode(w[f + k]);
2835
+ }
2836
+ n = n.join("");
2837
+ }
2838
+ oc(d);
2839
+ return n;
2840
+ }, toWireType:function(d, e) {
2841
+ e instanceof ArrayBuffer && (e = new Uint8Array(e));
2842
+ var f = "string" == typeof e;
2843
+ f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || K("Cannot pass non-string to std::string");
2844
+ var g = c && f ? bb(e) : e.length;
2845
+ var k = Td(4 + g + 1), p = k + 4;
2846
+ B[k >> 2] = g;
2847
+ if (c && f) {
2848
+ cb(e, w, p, g + 1);
2849
+ } else {
2850
+ if (f) {
2851
+ for (f = 0; f < g; ++f) {
2852
+ var n = e.charCodeAt(f);
2853
+ 255 < n && (oc(p), K("String has UTF-16 code units that do not fit in 8 bits"));
2854
+ w[p + f] = n;
2855
+ }
2856
+ } else {
2857
+ for (f = 0; f < g; ++f) {
2858
+ w[p + f] = e[f];
2859
+ }
2860
+ }
2861
+ }
2862
+ null !== d && d.push(oc, k);
2863
+ return k;
2864
+ }, argPackAdvance:8, readValueFromPointer:Cc, J:function(d) {
2865
+ oc(d);
2866
+ },});
2867
+ }, _embind_register_std_wstring:function(a, b, c) {
2868
+ c = N(c);
2869
+ if (2 === b) {
2870
+ var d = fd;
2871
+ var e = gd;
2872
+ var f = hd;
2873
+ var g = () => ya;
2874
+ var k = 1;
2875
+ } else {
2876
+ 4 === b && (d = jd, e = kd, f = ld, g = () => B, k = 2);
2877
+ }
2878
+ Fc(a, {name:c, fromWireType:function(p) {
2879
+ for (var n = B[p >> 2], u = g(), v, y = p + 4, l = 0; l <= n; ++l) {
2880
+ var r = p + 4 + l * b;
2881
+ if (l == n || 0 == u[r >> k]) {
2882
+ y = d(y, r - y), void 0 === v ? v = y : (v += String.fromCharCode(0), v += y), y = r + b;
2883
+ }
2884
+ }
2885
+ oc(p);
2886
+ return v;
2887
+ }, toWireType:function(p, n) {
2888
+ "string" != typeof n && K(`Cannot pass non-string to C++ string type ${c}`);
2889
+ var u = f(n), v = Td(4 + u + b);
2890
+ B[v >> 2] = u >> k;
2891
+ e(n, v + 4, u + b);
2892
+ null !== p && p.push(oc, v);
2893
+ return v;
2894
+ }, argPackAdvance:8, readValueFromPointer:Cc, J:function(p) {
2895
+ oc(p);
2896
+ },});
2897
+ }, _embind_register_value_object:function(a, b, c, d, e, f) {
2898
+ Ac[a] = {name:N(b), Qa:R(c, d), V:R(e, f), ab:[],};
2899
+ }, _embind_register_value_object_field:function(a, b, c, d, e, f, g, k, p, n) {
2900
+ Ac[a].ab.push({Qb:N(b), Wb:c, Ub:R(d, e), Vb:f, oc:g, nc:R(k, p), pc:n,});
2901
+ }, _embind_register_void:function(a, b) {
2902
+ b = N(b);
2903
+ Fc(a, {ec:!0, name:b, argPackAdvance:0, fromWireType:function() {
2904
+ }, toWireType:function() {
2905
+ },});
2906
+ }, _emscripten_get_now_is_monotonic:() => !0, _emscripten_throw_longjmp:() => {
2907
+ throw Infinity;
2908
+ }, _emval_as:function(a, b, c) {
2909
+ a = bc(a);
2910
+ b = pc(b, "emval::as");
2911
+ var d = [], e = cc(d);
2912
+ B[c >> 2] = e;
2913
+ return b.toWireType(d, a);
2914
+ }, _emval_call_method:function(a, b, c, d, e) {
2915
+ a = od[a];
2916
+ b = bc(b);
2917
+ c = nd(c);
2918
+ var f = [];
2919
+ B[d >> 2] = cc(f);
2920
+ return a(b, c, f, e);
2921
+ }, _emval_call_void_method:function(a, b, c, d) {
2922
+ a = od[a];
2923
+ b = bc(b);
2924
+ c = nd(c);
2925
+ a(b, c, null, d);
2926
+ }, _emval_decref:ad, _emval_get_method_caller:function(a, b) {
2927
+ var c = qd(a, b), d = c[0];
2928
+ b = d.name + "_$" + c.slice(1).map(function(g) {
2929
+ return g.name;
2930
+ }).join("_") + "$";
2931
+ var e = rd[b];
2932
+ if (void 0 !== e) {
2933
+ return e;
2934
+ }
2935
+ var f = Array(a - 1);
2936
+ e = pd((g, k, p, n) => {
2937
+ for (var u = 0, v = 0; v < a - 1; ++v) {
2938
+ f[v] = c[v + 1].readValueFromPointer(n + u), u += c[v + 1].argPackAdvance;
2939
+ }
2940
+ g = g[k].apply(g, f);
2941
+ for (v = 0; v < a - 1; ++v) {
2942
+ c[v + 1].Lb && c[v + 1].Lb(f[v]);
2943
+ }
2944
+ if (!d.ec) {
2945
+ return d.toWireType(p, g);
2946
+ }
2947
+ });
2948
+ return rd[b] = e;
2949
+ }, _emval_get_property:function(a, b) {
2950
+ a = bc(a);
2951
+ b = bc(b);
2952
+ return cc(a[b]);
2953
+ }, _emval_incref:function(a) {
2954
+ 4 < a && (J.get(a).qb += 1);
2955
+ }, _emval_new_cstring:function(a) {
2956
+ return cc(nd(a));
2957
+ }, _emval_new_object:function() {
2958
+ return cc({});
2959
+ }, _emval_run_destructors:function(a) {
2960
+ var b = bc(a);
2961
+ Bc(b);
2962
+ ad(a);
2963
+ }, _emval_set_property:function(a, b, c) {
2964
+ a = bc(a);
2965
+ b = bc(b);
2966
+ c = bc(c);
2967
+ a[b] = c;
2968
+ }, _emval_take_value:function(a, b) {
2969
+ a = pc(a, "_emval_take_value");
2970
+ a = a.readValueFromPointer(b);
2971
+ return cc(a);
2972
+ }, abort:() => {
2973
+ ua("");
2974
+ }, emscripten_asm_const_int:(a, b, c) => {
2975
+ sd.length = 0;
2976
+ var d;
2977
+ for (c >>= 2; d = w[b++];) {
2978
+ c += 105 != d & c, sd.push(105 == d ? A[c] : za[c++ >> 1]), ++c;
2979
+ }
2980
+ return Ra[a].apply(null, sd);
2981
+ }, emscripten_date_now:function() {
2982
+ return Date.now();
2983
+ }, emscripten_get_now:() => performance.now(), emscripten_glActiveTexture:function(a) {
2984
+ U.activeTexture(a);
2985
+ }, emscripten_glAttachShader:function(a, b) {
2986
+ U.attachShader(yd[a], Cd[b]);
2987
+ }, emscripten_glBindAttribLocation:function(a, b, c) {
2988
+ U.bindAttribLocation(yd[a], b, c ? $a(w, c) : "");
2989
+ }, emscripten_glBindBuffer:function(a, b) {
2990
+ 35051 == a ? U.Ka = b : 35052 == a && (U.fa = b);
2991
+ U.bindBuffer(a, xd[b]);
2992
+ }, emscripten_glBindFramebuffer:Kd, emscripten_glBindRenderbuffer:function(a, b) {
2993
+ U.bindRenderbuffer(a, Ad[b]);
2994
+ }, emscripten_glBindSampler:function(a, b) {
2995
+ U.bindSampler(a, Ed[b]);
2996
+ }, emscripten_glBindTexture:function(a, b) {
2997
+ U.bindTexture(a, Bd[b]);
2998
+ }, emscripten_glBindVertexArray:Ld, emscripten_glBindVertexArrayOES:Ld, emscripten_glBlendColor:function(a, b, c, d) {
2999
+ U.blendColor(a, b, c, d);
3000
+ }, emscripten_glBlendEquation:function(a) {
3001
+ U.blendEquation(a);
3002
+ }, emscripten_glBlendFunc:function(a, b) {
3003
+ U.blendFunc(a, b);
3004
+ }, emscripten_glBlitFramebuffer:function(a, b, c, d, e, f, g, k, p, n) {
3005
+ U.blitFramebuffer(a, b, c, d, e, f, g, k, p, n);
3006
+ }, emscripten_glBufferData:function(a, b, c, d) {
3007
+ 2 <= T.version ? c && b ? U.bufferData(a, w, d, c, b) : U.bufferData(a, b, d) : U.bufferData(a, c ? w.subarray(c, c + b) : b, d);
3008
+ }, emscripten_glBufferSubData:function(a, b, c, d) {
3009
+ 2 <= T.version ? c && U.bufferSubData(a, b, w, d, c) : U.bufferSubData(a, b, w.subarray(d, d + c));
3010
+ }, emscripten_glCheckFramebufferStatus:function(a) {
3011
+ return U.checkFramebufferStatus(a);
3012
+ }, emscripten_glClear:function(a) {
3013
+ U.clear(a);
3014
+ }, emscripten_glClearColor:function(a, b, c, d) {
3015
+ U.clearColor(a, b, c, d);
3016
+ }, emscripten_glClearStencil:function(a) {
3017
+ U.clearStencil(a);
3018
+ }, emscripten_glClientWaitSync:function(a, b, c, d) {
3019
+ return U.clientWaitSync(Fd[a], b, (c >>> 0) + 4294967296 * d);
3020
+ }, emscripten_glColorMask:function(a, b, c, d) {
3021
+ U.colorMask(!!a, !!b, !!c, !!d);
3022
+ }, emscripten_glCompileShader:function(a) {
3023
+ U.compileShader(Cd[a]);
3024
+ }, emscripten_glCompressedTexImage2D:function(a, b, c, d, e, f, g, k) {
3025
+ 2 <= T.version ? U.fa || !g ? U.compressedTexImage2D(a, b, c, d, e, f, g, k) : U.compressedTexImage2D(a, b, c, d, e, f, w, k, g) : U.compressedTexImage2D(a, b, c, d, e, f, k ? w.subarray(k, k + g) : null);
3026
+ }, emscripten_glCompressedTexSubImage2D:function(a, b, c, d, e, f, g, k, p) {
3027
+ 2 <= T.version ? U.fa || !k ? U.compressedTexSubImage2D(a, b, c, d, e, f, g, k, p) : U.compressedTexSubImage2D(a, b, c, d, e, f, g, w, p, k) : U.compressedTexSubImage2D(a, b, c, d, e, f, g, p ? w.subarray(p, p + k) : null);
3028
+ }, emscripten_glCopyTexSubImage2D:function(a, b, c, d, e, f, g, k) {
3029
+ U.copyTexSubImage2D(a, b, c, d, e, f, g, k);
3030
+ }, emscripten_glCreateProgram:function() {
3031
+ var a = ha(yd), b = U.createProgram();
3032
+ b.name = a;
3033
+ b.Aa = b.ya = b.za = 0;
3034
+ b.Ta = 1;
3035
+ yd[a] = b;
3036
+ return a;
3037
+ }, emscripten_glCreateShader:function(a) {
3038
+ var b = ha(Cd);
3039
+ Cd[b] = U.createShader(a);
3040
+ return b;
3041
+ }, emscripten_glCullFace:function(a) {
3042
+ U.cullFace(a);
3043
+ }, emscripten_glDeleteBuffers:function(a, b) {
3044
+ for (var c = 0; c < a; c++) {
3045
+ var d = A[b + 4 * c >> 2], e = xd[d];
3046
+ e && (U.deleteBuffer(e), e.name = 0, xd[d] = null, d == U.Ka && (U.Ka = 0), d == U.fa && (U.fa = 0));
3047
+ }
3048
+ }, emscripten_glDeleteFramebuffers:function(a, b) {
3049
+ for (var c = 0; c < a; ++c) {
3050
+ var d = A[b + 4 * c >> 2], e = zd[d];
3051
+ e && (U.deleteFramebuffer(e), e.name = 0, zd[d] = null);
3052
+ }
3053
+ }, emscripten_glDeleteProgram:function(a) {
3054
+ if (a) {
3055
+ var b = yd[a];
3056
+ b ? (U.deleteProgram(b), b.name = 0, yd[a] = null) : S(1281);
3057
+ }
3058
+ }, emscripten_glDeleteRenderbuffers:function(a, b) {
3059
+ for (var c = 0; c < a; c++) {
3060
+ var d = A[b + 4 * c >> 2], e = Ad[d];
3061
+ e && (U.deleteRenderbuffer(e), e.name = 0, Ad[d] = null);
3062
+ }
3063
+ }, emscripten_glDeleteSamplers:function(a, b) {
3064
+ for (var c = 0; c < a; c++) {
3065
+ var d = A[b + 4 * c >> 2], e = Ed[d];
3066
+ e && (U.deleteSampler(e), e.name = 0, Ed[d] = null);
3067
+ }
3068
+ }, emscripten_glDeleteShader:function(a) {
3069
+ if (a) {
3070
+ var b = Cd[a];
3071
+ b ? (U.deleteShader(b), Cd[a] = null) : S(1281);
3072
+ }
3073
+ }, emscripten_glDeleteSync:function(a) {
3074
+ if (a) {
3075
+ var b = Fd[a];
3076
+ b ? (U.deleteSync(b), b.name = 0, Fd[a] = null) : S(1281);
3077
+ }
3078
+ }, emscripten_glDeleteTextures:function(a, b) {
3079
+ for (var c = 0; c < a; c++) {
3080
+ var d = A[b + 4 * c >> 2], e = Bd[d];
3081
+ e && (U.deleteTexture(e), e.name = 0, Bd[d] = null);
3082
+ }
3083
+ }, emscripten_glDeleteVertexArrays:Md, emscripten_glDeleteVertexArraysOES:Md, emscripten_glDepthMask:function(a) {
3084
+ U.depthMask(!!a);
3085
+ }, emscripten_glDisable:function(a) {
3086
+ U.disable(a);
3087
+ }, emscripten_glDisableVertexAttribArray:function(a) {
3088
+ U.disableVertexAttribArray(a);
3089
+ }, emscripten_glDrawArrays:function(a, b, c) {
3090
+ U.drawArrays(a, b, c);
3091
+ }, emscripten_glDrawArraysInstanced:function(a, b, c, d) {
3092
+ U.drawArraysInstanced(a, b, c, d);
3093
+ }, emscripten_glDrawArraysInstancedBaseInstanceWEBGL:function(a, b, c, d, e) {
3094
+ U.Za.drawArraysInstancedBaseInstanceWEBGL(a, b, c, d, e);
3095
+ }, emscripten_glDrawBuffers:function(a, b) {
3096
+ for (var c = Nd[a], d = 0; d < a; d++) {
3097
+ c[d] = A[b + 4 * d >> 2];
3098
+ }
3099
+ U.drawBuffers(c);
3100
+ }, emscripten_glDrawElements:Od, emscripten_glDrawElementsInstanced:function(a, b, c, d, e) {
3101
+ U.drawElementsInstanced(a, b, c, d, e);
3102
+ }, emscripten_glDrawElementsInstancedBaseVertexBaseInstanceWEBGL:function(a, b, c, d, e, f, g) {
3103
+ U.Za.drawElementsInstancedBaseVertexBaseInstanceWEBGL(a, b, c, d, e, f, g);
3104
+ }, emscripten_glDrawRangeElements:function(a, b, c, d, e, f) {
3105
+ Od(a, d, e, f);
3106
+ }, emscripten_glEnable:function(a) {
3107
+ U.enable(a);
3108
+ }, emscripten_glEnableVertexAttribArray:function(a) {
3109
+ U.enableVertexAttribArray(a);
3110
+ }, emscripten_glFenceSync:function(a, b) {
3111
+ return (a = U.fenceSync(a, b)) ? (b = ha(Fd), a.name = b, Fd[b] = a, b) : 0;
3112
+ }, emscripten_glFinish:function() {
3113
+ U.finish();
3114
+ }, emscripten_glFlush:function() {
3115
+ U.flush();
3116
+ }, emscripten_glFramebufferRenderbuffer:function(a, b, c, d) {
3117
+ U.framebufferRenderbuffer(a, b, c, Ad[d]);
3118
+ }, emscripten_glFramebufferTexture2D:function(a, b, c, d, e) {
3119
+ U.framebufferTexture2D(a, b, c, Bd[d], e);
3120
+ }, emscripten_glFrontFace:function(a) {
3121
+ U.frontFace(a);
3122
+ }, emscripten_glGenBuffers:function(a, b) {
3123
+ Pd(a, b, "createBuffer", xd);
3124
+ }, emscripten_glGenFramebuffers:function(a, b) {
3125
+ Pd(a, b, "createFramebuffer", zd);
3126
+ }, emscripten_glGenRenderbuffers:function(a, b) {
3127
+ Pd(a, b, "createRenderbuffer", Ad);
3128
+ }, emscripten_glGenSamplers:function(a, b) {
3129
+ Pd(a, b, "createSampler", Ed);
3130
+ }, emscripten_glGenTextures:function(a, b) {
3131
+ Pd(a, b, "createTexture", Bd);
3132
+ }, emscripten_glGenVertexArrays:Qd, emscripten_glGenVertexArraysOES:Qd, emscripten_glGenerateMipmap:function(a) {
3133
+ U.generateMipmap(a);
3134
+ }, emscripten_glGetBufferParameteriv:function(a, b, c) {
3135
+ c ? A[c >> 2] = U.getBufferParameter(a, b) : S(1281);
3136
+ }, emscripten_glGetError:function() {
3137
+ var a = U.getError() || Jd;
3138
+ Jd = 0;
3139
+ return a;
3140
+ }, emscripten_glGetFramebufferAttachmentParameteriv:function(a, b, c, d) {
3141
+ a = U.getFramebufferAttachmentParameter(a, b, c);
3142
+ if (a instanceof WebGLRenderbuffer || a instanceof WebGLTexture) {
3143
+ a = a.name | 0;
3144
+ }
3145
+ A[d >> 2] = a;
3146
+ }, emscripten_glGetIntegerv:Sd, emscripten_glGetProgramInfoLog:function(a, b, c, d) {
3147
+ a = U.getProgramInfoLog(yd[a]);
3148
+ null === a && (a = "(unknown error)");
3149
+ b = 0 < b && d ? cb(a, w, d, b) : 0;
3150
+ c && (A[c >> 2] = b);
3151
+ }, emscripten_glGetProgramiv:function(a, b, c) {
3152
+ if (c) {
3153
+ if (a >= wd) {
3154
+ S(1281);
3155
+ } else {
3156
+ if (a = yd[a], 35716 == b) {
3157
+ a = U.getProgramInfoLog(a), null === a && (a = "(unknown error)"), A[c >> 2] = a.length + 1;
3158
+ } else if (35719 == b) {
3159
+ if (!a.Aa) {
3160
+ for (b = 0; b < U.getProgramParameter(a, 35718); ++b) {
3161
+ a.Aa = Math.max(a.Aa, U.getActiveUniform(a, b).name.length + 1);
3162
+ }
3163
+ }
3164
+ A[c >> 2] = a.Aa;
3165
+ } else if (35722 == b) {
3166
+ if (!a.ya) {
3167
+ for (b = 0; b < U.getProgramParameter(a, 35721); ++b) {
3168
+ a.ya = Math.max(a.ya, U.getActiveAttrib(a, b).name.length + 1);
3169
+ }
3170
+ }
3171
+ A[c >> 2] = a.ya;
3172
+ } else if (35381 == b) {
3173
+ if (!a.za) {
3174
+ for (b = 0; b < U.getProgramParameter(a, 35382); ++b) {
3175
+ a.za = Math.max(a.za, U.getActiveUniformBlockName(a, b).length + 1);
3176
+ }
3177
+ }
3178
+ A[c >> 2] = a.za;
3179
+ } else {
3180
+ A[c >> 2] = U.getProgramParameter(a, b);
3181
+ }
3182
+ }
3183
+ } else {
3184
+ S(1281);
3185
+ }
3186
+ }, emscripten_glGetRenderbufferParameteriv:function(a, b, c) {
3187
+ c ? A[c >> 2] = U.getRenderbufferParameter(a, b) : S(1281);
3188
+ }, emscripten_glGetShaderInfoLog:function(a, b, c, d) {
3189
+ a = U.getShaderInfoLog(Cd[a]);
3190
+ null === a && (a = "(unknown error)");
3191
+ b = 0 < b && d ? cb(a, w, d, b) : 0;
3192
+ c && (A[c >> 2] = b);
3193
+ }, emscripten_glGetShaderPrecisionFormat:function(a, b, c, d) {
3194
+ a = U.getShaderPrecisionFormat(a, b);
3195
+ A[c >> 2] = a.rangeMin;
3196
+ A[c + 4 >> 2] = a.rangeMax;
3197
+ A[d >> 2] = a.precision;
3198
+ }, emscripten_glGetShaderiv:function(a, b, c) {
3199
+ c ? 35716 == b ? (a = U.getShaderInfoLog(Cd[a]), null === a && (a = "(unknown error)"), A[c >> 2] = a ? a.length + 1 : 0) : 35720 == b ? (a = U.getShaderSource(Cd[a]), A[c >> 2] = a ? a.length + 1 : 0) : A[c >> 2] = U.getShaderParameter(Cd[a], b) : S(1281);
3200
+ }, emscripten_glGetString:function(a) {
3201
+ var b = Gd[a];
3202
+ if (!b) {
3203
+ switch(a) {
3204
+ case 7939:
3205
+ b = U.getSupportedExtensions() || [];
3206
+ b = b.concat(b.map(function(d) {
3207
+ return "GL_" + d;
3208
+ }));
3209
+ b = Ud(b.join(" "));
3210
+ break;
3211
+ case 7936:
3212
+ case 7937:
3213
+ case 37445:
3214
+ case 37446:
3215
+ (b = U.getParameter(a)) || S(1280);
3216
+ b = b && Ud(b);
3217
+ break;
3218
+ case 7938:
3219
+ b = U.getParameter(7938);
3220
+ b = 2 <= T.version ? "OpenGL ES 3.0 (" + b + ")" : "OpenGL ES 2.0 (" + b + ")";
3221
+ b = Ud(b);
3222
+ break;
3223
+ case 35724:
3224
+ b = U.getParameter(35724);
3225
+ var c = b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);
3226
+ null !== c && (3 == c[1].length && (c[1] += "0"), b = "OpenGL ES GLSL ES " + c[1] + " (" + b + ")");
3227
+ b = Ud(b);
3228
+ break;
3229
+ default:
3230
+ S(1280);
3231
+ }
3232
+ Gd[a] = b;
3233
+ }
3234
+ return b;
3235
+ }, emscripten_glGetStringi:function(a, b) {
3236
+ if (2 > T.version) {
3237
+ return S(1282), 0;
3238
+ }
3239
+ var c = Hd[a];
3240
+ if (c) {
3241
+ return 0 > b || b >= c.length ? (S(1281), 0) : c[b];
3242
+ }
3243
+ switch(a) {
3244
+ case 7939:
3245
+ return c = U.getSupportedExtensions() || [], c = c.concat(c.map(function(d) {
3246
+ return "GL_" + d;
3247
+ })), c = c.map(function(d) {
3248
+ return Ud(d);
3249
+ }), c = Hd[a] = c, 0 > b || b >= c.length ? (S(1281), 0) : c[b];
3250
+ default:
3251
+ return S(1280), 0;
3252
+ }
3253
+ }, emscripten_glGetUniformLocation:function(a, b) {
3254
+ b = b ? $a(w, b) : "";
3255
+ if (a = yd[a]) {
3256
+ var c = a, d = c.na, e = c.vb, f;
3257
+ if (!d) {
3258
+ for (c.na = d = {}, c.ub = {}, f = 0; f < U.getProgramParameter(c, 35718); ++f) {
3259
+ var g = U.getActiveUniform(c, f);
3260
+ var k = g.name;
3261
+ g = g.size;
3262
+ var p = Vd(k);
3263
+ p = 0 < p ? k.slice(0, p) : k;
3264
+ var n = c.Ta;
3265
+ c.Ta += g;
3266
+ e[p] = [g, n];
3267
+ for (k = 0; k < g; ++k) {
3268
+ d[n] = k, c.ub[n++] = p;
3269
+ }
3270
+ }
3271
+ }
3272
+ c = a.na;
3273
+ d = 0;
3274
+ e = b;
3275
+ f = Vd(b);
3276
+ 0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
3277
+ if ((e = a.vb[e]) && d < e[0] && (d += e[1], c[d] = c[d] || U.getUniformLocation(a, b))) {
3278
+ return d;
3279
+ }
3280
+ } else {
3281
+ S(1281);
3282
+ }
3283
+ return -1;
3284
+ }, emscripten_glInvalidateFramebuffer:function(a, b, c) {
3285
+ for (var d = Nd[b], e = 0; e < b; e++) {
3286
+ d[e] = A[c + 4 * e >> 2];
3287
+ }
3288
+ U.invalidateFramebuffer(a, d);
3289
+ }, emscripten_glInvalidateSubFramebuffer:function(a, b, c, d, e, f, g) {
3290
+ for (var k = Nd[b], p = 0; p < b; p++) {
3291
+ k[p] = A[c + 4 * p >> 2];
3292
+ }
3293
+ U.invalidateSubFramebuffer(a, k, d, e, f, g);
3294
+ }, emscripten_glIsSync:function(a) {
3295
+ return U.isSync(Fd[a]);
3296
+ }, emscripten_glIsTexture:function(a) {
3297
+ return (a = Bd[a]) ? U.isTexture(a) : 0;
3298
+ }, emscripten_glLineWidth:function(a) {
3299
+ U.lineWidth(a);
3300
+ }, emscripten_glLinkProgram:function(a) {
3301
+ a = yd[a];
3302
+ U.linkProgram(a);
3303
+ a.na = 0;
3304
+ a.vb = {};
3305
+ }, emscripten_glMultiDrawArraysInstancedBaseInstanceWEBGL:function(a, b, c, d, e, f) {
3306
+ U.hb.multiDrawArraysInstancedBaseInstanceWEBGL(a, A, b >> 2, A, c >> 2, A, d >> 2, B, e >> 2, f);
3307
+ }, emscripten_glMultiDrawElementsInstancedBaseVertexBaseInstanceWEBGL:function(a, b, c, d, e, f, g, k) {
3308
+ U.hb.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(a, A, b >> 2, c, A, d >> 2, A, e >> 2, A, f >> 2, B, g >> 2, k);
3309
+ }, emscripten_glPixelStorei:function(a, b) {
3310
+ 3317 == a && (Id = b);
3311
+ U.pixelStorei(a, b);
3312
+ }, emscripten_glReadBuffer:function(a) {
3313
+ U.readBuffer(a);
3314
+ }, emscripten_glReadPixels:function(a, b, c, d, e, f, g) {
3315
+ if (2 <= T.version) {
3316
+ if (U.Ka) {
3317
+ U.readPixels(a, b, c, d, e, f, g);
3318
+ } else {
3319
+ var k = Wd(f);
3320
+ U.readPixels(a, b, c, d, e, f, k, g >> 31 - Math.clz32(k.BYTES_PER_ELEMENT));
3321
+ }
3322
+ } else {
3323
+ (g = Xd(f, e, c, d, g)) ? U.readPixels(a, b, c, d, e, f, g) : S(1280);
3324
+ }
3325
+ }, emscripten_glRenderbufferStorage:function(a, b, c, d) {
3326
+ U.renderbufferStorage(a, b, c, d);
3327
+ }, emscripten_glRenderbufferStorageMultisample:function(a, b, c, d, e) {
3328
+ U.renderbufferStorageMultisample(a, b, c, d, e);
3329
+ }, emscripten_glSamplerParameteri:function(a, b, c) {
3330
+ U.samplerParameteri(Ed[a], b, c);
3331
+ }, emscripten_glSamplerParameteriv:function(a, b, c) {
3332
+ U.samplerParameteri(Ed[a], b, A[c >> 2]);
3333
+ }, emscripten_glScissor:function(a, b, c, d) {
3334
+ U.scissor(a, b, c, d);
3335
+ }, emscripten_glShaderSource:function(a, b, c, d) {
3336
+ for (var e = "", f = 0; f < b; ++f) {
3337
+ var g = d ? A[d + 4 * f >> 2] : -1, k = A[c + 4 * f >> 2];
3338
+ g = k ? $a(w, k, 0 > g ? void 0 : g) : "";
3339
+ e += g;
3340
+ }
3341
+ U.shaderSource(Cd[a], e);
3342
+ }, emscripten_glStencilFunc:function(a, b, c) {
3343
+ U.stencilFunc(a, b, c);
3344
+ }, emscripten_glStencilFuncSeparate:function(a, b, c, d) {
3345
+ U.stencilFuncSeparate(a, b, c, d);
3346
+ }, emscripten_glStencilMask:function(a) {
3347
+ U.stencilMask(a);
3348
+ }, emscripten_glStencilMaskSeparate:function(a, b) {
3349
+ U.stencilMaskSeparate(a, b);
3350
+ }, emscripten_glStencilOp:function(a, b, c) {
3351
+ U.stencilOp(a, b, c);
3352
+ }, emscripten_glStencilOpSeparate:function(a, b, c, d) {
3353
+ U.stencilOpSeparate(a, b, c, d);
3354
+ }, emscripten_glTexImage2D:function(a, b, c, d, e, f, g, k, p) {
3355
+ if (2 <= T.version) {
3356
+ if (U.fa) {
3357
+ U.texImage2D(a, b, c, d, e, f, g, k, p);
3358
+ } else if (p) {
3359
+ var n = Wd(k);
3360
+ U.texImage2D(a, b, c, d, e, f, g, k, n, p >> 31 - Math.clz32(n.BYTES_PER_ELEMENT));
3361
+ } else {
3362
+ U.texImage2D(a, b, c, d, e, f, g, k, null);
3363
+ }
3364
+ } else {
3365
+ U.texImage2D(a, b, c, d, e, f, g, k, p ? Xd(k, g, d, e, p) : null);
3366
+ }
3367
+ }, emscripten_glTexParameterf:function(a, b, c) {
3368
+ U.texParameterf(a, b, c);
3369
+ }, emscripten_glTexParameterfv:function(a, b, c) {
3370
+ U.texParameterf(a, b, D[c >> 2]);
3371
+ }, emscripten_glTexParameteri:function(a, b, c) {
3372
+ U.texParameteri(a, b, c);
3373
+ }, emscripten_glTexParameteriv:function(a, b, c) {
3374
+ U.texParameteri(a, b, A[c >> 2]);
3375
+ }, emscripten_glTexStorage2D:function(a, b, c, d, e) {
3376
+ U.texStorage2D(a, b, c, d, e);
3377
+ }, emscripten_glTexSubImage2D:function(a, b, c, d, e, f, g, k, p) {
3378
+ if (2 <= T.version) {
3379
+ if (U.fa) {
3380
+ U.texSubImage2D(a, b, c, d, e, f, g, k, p);
3381
+ } else if (p) {
3382
+ var n = Wd(k);
3383
+ U.texSubImage2D(a, b, c, d, e, f, g, k, n, p >> 31 - Math.clz32(n.BYTES_PER_ELEMENT));
3384
+ } else {
3385
+ U.texSubImage2D(a, b, c, d, e, f, g, k, null);
3386
+ }
3387
+ } else {
3388
+ n = null, p && (n = Xd(k, g, e, f, p)), U.texSubImage2D(a, b, c, d, e, f, g, k, n);
3389
+ }
3390
+ }, emscripten_glUniform1f:function(a, b) {
3391
+ U.uniform1f(V(a), b);
3392
+ }, emscripten_glUniform1fv:function(a, b, c) {
3393
+ if (2 <= T.version) {
3394
+ b && U.uniform1fv(V(a), D, c >> 2, b);
3395
+ } else {
3396
+ if (288 >= b) {
3397
+ for (var d = Yd[b - 1], e = 0; e < b; ++e) {
3398
+ d[e] = D[c + 4 * e >> 2];
3399
+ }
3400
+ } else {
3401
+ d = D.subarray(c >> 2, c + 4 * b >> 2);
3402
+ }
3403
+ U.uniform1fv(V(a), d);
3404
+ }
3405
+ }, emscripten_glUniform1i:function(a, b) {
3406
+ U.uniform1i(V(a), b);
3407
+ }, emscripten_glUniform1iv:function(a, b, c) {
3408
+ if (2 <= T.version) {
3409
+ b && U.uniform1iv(V(a), A, c >> 2, b);
3410
+ } else {
3411
+ if (288 >= b) {
3412
+ for (var d = Zd[b - 1], e = 0; e < b; ++e) {
3413
+ d[e] = A[c + 4 * e >> 2];
3414
+ }
3415
+ } else {
3416
+ d = A.subarray(c >> 2, c + 4 * b >> 2);
3417
+ }
3418
+ U.uniform1iv(V(a), d);
3419
+ }
3420
+ }, emscripten_glUniform2f:function(a, b, c) {
3421
+ U.uniform2f(V(a), b, c);
3422
+ }, emscripten_glUniform2fv:function(a, b, c) {
3423
+ if (2 <= T.version) {
3424
+ b && U.uniform2fv(V(a), D, c >> 2, 2 * b);
3425
+ } else {
3426
+ if (144 >= b) {
3427
+ for (var d = Yd[2 * b - 1], e = 0; e < 2 * b; e += 2) {
3428
+ d[e] = D[c + 4 * e >> 2], d[e + 1] = D[c + (4 * e + 4) >> 2];
3429
+ }
3430
+ } else {
3431
+ d = D.subarray(c >> 2, c + 8 * b >> 2);
3432
+ }
3433
+ U.uniform2fv(V(a), d);
3434
+ }
3435
+ }, emscripten_glUniform2i:function(a, b, c) {
3436
+ U.uniform2i(V(a), b, c);
3437
+ }, emscripten_glUniform2iv:function(a, b, c) {
3438
+ if (2 <= T.version) {
3439
+ b && U.uniform2iv(V(a), A, c >> 2, 2 * b);
3440
+ } else {
3441
+ if (144 >= b) {
3442
+ for (var d = Zd[2 * b - 1], e = 0; e < 2 * b; e += 2) {
3443
+ d[e] = A[c + 4 * e >> 2], d[e + 1] = A[c + (4 * e + 4) >> 2];
3444
+ }
3445
+ } else {
3446
+ d = A.subarray(c >> 2, c + 8 * b >> 2);
3447
+ }
3448
+ U.uniform2iv(V(a), d);
3449
+ }
3450
+ }, emscripten_glUniform3f:function(a, b, c, d) {
3451
+ U.uniform3f(V(a), b, c, d);
3452
+ }, emscripten_glUniform3fv:function(a, b, c) {
3453
+ if (2 <= T.version) {
3454
+ b && U.uniform3fv(V(a), D, c >> 2, 3 * b);
3455
+ } else {
3456
+ if (96 >= b) {
3457
+ for (var d = Yd[3 * b - 1], e = 0; e < 3 * b; e += 3) {
3458
+ d[e] = D[c + 4 * e >> 2], d[e + 1] = D[c + (4 * e + 4) >> 2], d[e + 2] = D[c + (4 * e + 8) >> 2];
3459
+ }
3460
+ } else {
3461
+ d = D.subarray(c >> 2, c + 12 * b >> 2);
3462
+ }
3463
+ U.uniform3fv(V(a), d);
3464
+ }
3465
+ }, emscripten_glUniform3i:function(a, b, c, d) {
3466
+ U.uniform3i(V(a), b, c, d);
3467
+ }, emscripten_glUniform3iv:function(a, b, c) {
3468
+ if (2 <= T.version) {
3469
+ b && U.uniform3iv(V(a), A, c >> 2, 3 * b);
3470
+ } else {
3471
+ if (96 >= b) {
3472
+ for (var d = Zd[3 * b - 1], e = 0; e < 3 * b; e += 3) {
3473
+ d[e] = A[c + 4 * e >> 2], d[e + 1] = A[c + (4 * e + 4) >> 2], d[e + 2] = A[c + (4 * e + 8) >> 2];
3474
+ }
3475
+ } else {
3476
+ d = A.subarray(c >> 2, c + 12 * b >> 2);
3477
+ }
3478
+ U.uniform3iv(V(a), d);
3479
+ }
3480
+ }, emscripten_glUniform4f:function(a, b, c, d, e) {
3481
+ U.uniform4f(V(a), b, c, d, e);
3482
+ }, emscripten_glUniform4fv:function(a, b, c) {
3483
+ if (2 <= T.version) {
3484
+ b && U.uniform4fv(V(a), D, c >> 2, 4 * b);
3485
+ } else {
3486
+ if (72 >= b) {
3487
+ var d = Yd[4 * b - 1], e = D;
3488
+ c >>= 2;
3489
+ for (var f = 0; f < 4 * b; f += 4) {
3490
+ var g = c + f;
3491
+ d[f] = e[g];
3492
+ d[f + 1] = e[g + 1];
3493
+ d[f + 2] = e[g + 2];
3494
+ d[f + 3] = e[g + 3];
3495
+ }
3496
+ } else {
3497
+ d = D.subarray(c >> 2, c + 16 * b >> 2);
3498
+ }
3499
+ U.uniform4fv(V(a), d);
3500
+ }
3501
+ }, emscripten_glUniform4i:function(a, b, c, d, e) {
3502
+ U.uniform4i(V(a), b, c, d, e);
3503
+ }, emscripten_glUniform4iv:function(a, b, c) {
3504
+ if (2 <= T.version) {
3505
+ b && U.uniform4iv(V(a), A, c >> 2, 4 * b);
3506
+ } else {
3507
+ if (72 >= b) {
3508
+ for (var d = Zd[4 * b - 1], e = 0; e < 4 * b; e += 4) {
3509
+ d[e] = A[c + 4 * e >> 2], d[e + 1] = A[c + (4 * e + 4) >> 2], d[e + 2] = A[c + (4 * e + 8) >> 2], d[e + 3] = A[c + (4 * e + 12) >> 2];
3510
+ }
3511
+ } else {
3512
+ d = A.subarray(c >> 2, c + 16 * b >> 2);
3513
+ }
3514
+ U.uniform4iv(V(a), d);
3515
+ }
3516
+ }, emscripten_glUniformMatrix2fv:function(a, b, c, d) {
3517
+ if (2 <= T.version) {
3518
+ b && U.uniformMatrix2fv(V(a), !!c, D, d >> 2, 4 * b);
3519
+ } else {
3520
+ if (72 >= b) {
3521
+ for (var e = Yd[4 * b - 1], f = 0; f < 4 * b; f += 4) {
3522
+ e[f] = D[d + 4 * f >> 2], e[f + 1] = D[d + (4 * f + 4) >> 2], e[f + 2] = D[d + (4 * f + 8) >> 2], e[f + 3] = D[d + (4 * f + 12) >> 2];
3523
+ }
3524
+ } else {
3525
+ e = D.subarray(d >> 2, d + 16 * b >> 2);
3526
+ }
3527
+ U.uniformMatrix2fv(V(a), !!c, e);
3528
+ }
3529
+ }, emscripten_glUniformMatrix3fv:function(a, b, c, d) {
3530
+ if (2 <= T.version) {
3531
+ b && U.uniformMatrix3fv(V(a), !!c, D, d >> 2, 9 * b);
3532
+ } else {
3533
+ if (32 >= b) {
3534
+ for (var e = Yd[9 * b - 1], f = 0; f < 9 * b; f += 9) {
3535
+ e[f] = D[d + 4 * f >> 2], e[f + 1] = D[d + (4 * f + 4) >> 2], e[f + 2] = D[d + (4 * f + 8) >> 2], e[f + 3] = D[d + (4 * f + 12) >> 2], e[f + 4] = D[d + (4 * f + 16) >> 2], e[f + 5] = D[d + (4 * f + 20) >> 2], e[f + 6] = D[d + (4 * f + 24) >> 2], e[f + 7] = D[d + (4 * f + 28) >> 2], e[f + 8] = D[d + (4 * f + 32) >> 2];
3536
+ }
3537
+ } else {
3538
+ e = D.subarray(d >> 2, d + 36 * b >> 2);
3539
+ }
3540
+ U.uniformMatrix3fv(V(a), !!c, e);
3541
+ }
3542
+ }, emscripten_glUniformMatrix4fv:function(a, b, c, d) {
3543
+ if (2 <= T.version) {
3544
+ b && U.uniformMatrix4fv(V(a), !!c, D, d >> 2, 16 * b);
3545
+ } else {
3546
+ if (18 >= b) {
3547
+ var e = Yd[16 * b - 1], f = D;
3548
+ d >>= 2;
3549
+ for (var g = 0; g < 16 * b; g += 16) {
3550
+ var k = d + g;
3551
+ e[g] = f[k];
3552
+ e[g + 1] = f[k + 1];
3553
+ e[g + 2] = f[k + 2];
3554
+ e[g + 3] = f[k + 3];
3555
+ e[g + 4] = f[k + 4];
3556
+ e[g + 5] = f[k + 5];
3557
+ e[g + 6] = f[k + 6];
3558
+ e[g + 7] = f[k + 7];
3559
+ e[g + 8] = f[k + 8];
3560
+ e[g + 9] = f[k + 9];
3561
+ e[g + 10] = f[k + 10];
3562
+ e[g + 11] = f[k + 11];
3563
+ e[g + 12] = f[k + 12];
3564
+ e[g + 13] = f[k + 13];
3565
+ e[g + 14] = f[k + 14];
3566
+ e[g + 15] = f[k + 15];
3567
+ }
3568
+ } else {
3569
+ e = D.subarray(d >> 2, d + 64 * b >> 2);
3570
+ }
3571
+ U.uniformMatrix4fv(V(a), !!c, e);
3572
+ }
3573
+ }, emscripten_glUseProgram:function(a) {
3574
+ a = yd[a];
3575
+ U.useProgram(a);
3576
+ U.Kb = a;
3577
+ }, emscripten_glVertexAttrib1f:function(a, b) {
3578
+ U.vertexAttrib1f(a, b);
3579
+ }, emscripten_glVertexAttrib2fv:function(a, b) {
3580
+ U.vertexAttrib2f(a, D[b >> 2], D[b + 4 >> 2]);
3581
+ }, emscripten_glVertexAttrib3fv:function(a, b) {
3582
+ U.vertexAttrib3f(a, D[b >> 2], D[b + 4 >> 2], D[b + 8 >> 2]);
3583
+ }, emscripten_glVertexAttrib4fv:function(a, b) {
3584
+ U.vertexAttrib4f(a, D[b >> 2], D[b + 4 >> 2], D[b + 8 >> 2], D[b + 12 >> 2]);
3585
+ }, emscripten_glVertexAttribDivisor:function(a, b) {
3586
+ U.vertexAttribDivisor(a, b);
3587
+ }, emscripten_glVertexAttribIPointer:function(a, b, c, d, e) {
3588
+ U.vertexAttribIPointer(a, b, c, d, e);
3589
+ }, emscripten_glVertexAttribPointer:function(a, b, c, d, e, f) {
3590
+ U.vertexAttribPointer(a, b, c, !!d, e, f);
3591
+ }, emscripten_glViewport:function(a, b, c, d) {
3592
+ U.viewport(a, b, c, d);
3593
+ }, emscripten_glWaitSync:function(a, b, c, d) {
3594
+ U.waitSync(Fd[a], b, (c >>> 0) + 4294967296 * d);
3595
+ }, emscripten_memcpy_big:(a, b, c) => w.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
3596
+ var b = w.length;
3597
+ a >>>= 0;
3598
+ if (2147483648 < a) {
3599
+ return !1;
3600
+ }
3601
+ for (var c = 1; 4 >= c; c *= 2) {
3602
+ var d = b * (1 + 0.2 / c);
3603
+ d = Math.min(d, a + 100663296);
3604
+ var e = Math;
3605
+ d = Math.max(a, d);
3606
+ a: {
3607
+ e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - va.buffer.byteLength + 65535 >>> 16;
3608
+ try {
3609
+ va.grow(e);
3610
+ Aa();
3611
+ var f = 1;
3612
+ break a;
3613
+ } catch (g) {
3614
+ }
3615
+ f = void 0;
3616
+ }
3617
+ if (f) {
3618
+ return !0;
3619
+ }
3620
+ }
3621
+ return !1;
3622
+ }, emscripten_webgl_get_current_context:function() {
3623
+ return T ? T.handle : 0;
3624
+ }, emscripten_webgl_make_context_current:function(a) {
3625
+ return la(a) ? 0 : -5;
3626
+ }, environ_get:(a, b) => {
3627
+ var c = 0;
3628
+ be().forEach(function(d, e) {
3629
+ var f = b + c;
3630
+ e = B[a + 4 * e >> 2] = f;
3631
+ for (f = 0; f < d.length; ++f) {
3632
+ t[e++ >> 0] = d.charCodeAt(f);
3633
+ }
3634
+ t[e >> 0] = 0;
3635
+ c += d.length + 1;
3636
+ });
3637
+ return 0;
3638
+ }, environ_sizes_get:(a, b) => {
3639
+ var c = be();
3640
+ B[a >> 2] = c.length;
3641
+ var d = 0;
3642
+ c.forEach(function(e) {
3643
+ d += e.length + 1;
3644
+ });
3645
+ B[b >> 2] = d;
3646
+ return 0;
3647
+ }, fd_close:function(a) {
3648
+ try {
3649
+ var b = Hb(a);
3650
+ if (null === b.X) {
3651
+ throw new G(8);
3652
+ }
3653
+ b.Na && (b.Na = null);
3654
+ try {
3655
+ b.m.close && b.m.close(b);
3656
+ } catch (c) {
3657
+ throw c;
3658
+ } finally {
3659
+ tb[b.X] = null;
3660
+ }
3661
+ b.X = null;
3662
+ return 0;
3663
+ } catch (c) {
3664
+ if ("undefined" == typeof Vb || "ErrnoError" !== c.name) {
3665
+ throw c;
3666
+ }
3667
+ return c.W;
3668
+ }
3669
+ }, fd_read:function(a, b, c, d) {
3670
+ try {
3671
+ a: {
3672
+ var e = Hb(a);
3673
+ a = b;
3674
+ for (var f, g = b = 0; g < c; g++) {
3675
+ var k = B[a >> 2], p = B[a + 4 >> 2];
3676
+ a += 8;
3677
+ var n = e, u = k, v = p, y = f, l = t;
3678
+ if (0 > v || 0 > y) {
3679
+ throw new G(28);
3680
+ }
3681
+ if (null === n.X) {
3682
+ throw new G(8);
3683
+ }
3684
+ if (1 === (n.flags & 2097155)) {
3685
+ throw new G(8);
3686
+ }
3687
+ if (16384 === (n.node.mode & 61440)) {
3688
+ throw new G(31);
3689
+ }
3690
+ if (!n.m.read) {
3691
+ throw new G(28);
3692
+ }
3693
+ var r = "undefined" != typeof y;
3694
+ if (!r) {
3695
+ y = n.position;
3696
+ } else if (!n.seekable) {
3697
+ throw new G(70);
3698
+ }
3699
+ var x = n.m.read(n, l, u, v, y);
3700
+ r || (n.position += x);
3701
+ var z = x;
3702
+ if (0 > z) {
3703
+ var H = -1;
3704
+ break a;
3705
+ }
3706
+ b += z;
3707
+ if (z < p) {
3708
+ break;
3709
+ }
3710
+ "undefined" !== typeof f && (f += z);
3711
+ }
3712
+ H = b;
3713
+ }
3714
+ B[d >> 2] = H;
3715
+ return 0;
3716
+ } catch (C) {
3717
+ if ("undefined" == typeof Vb || "ErrnoError" !== C.name) {
3718
+ throw C;
3719
+ }
3720
+ return C.W;
3721
+ }
3722
+ }, fd_seek:function(a, b, c, d, e) {
3723
+ b = c + 2097152 >>> 0 < 4194305 - !!b ? (b >>> 0) + 4294967296 * c : NaN;
3724
+ try {
3725
+ if (isNaN(b)) {
3726
+ return 61;
3727
+ }
3728
+ var f = Hb(a);
3729
+ Qb(f, b, d);
3730
+ F = [f.position >>> 0, (E = f.position, 1.0 <= +Math.abs(E) ? 0.0 < E ? +Math.floor(E / 4294967296.0) >>> 0 : ~~+Math.ceil((E - +(~~E >>> 0)) / 4294967296.0) >>> 0 : 0)];
3731
+ A[e >> 2] = F[0];
3732
+ A[e + 4 >> 2] = F[1];
3733
+ f.Na && 0 === b && 0 === d && (f.Na = null);
3734
+ return 0;
3735
+ } catch (g) {
3736
+ if ("undefined" == typeof Vb || "ErrnoError" !== g.name) {
3737
+ throw g;
3738
+ }
3739
+ return g.W;
3740
+ }
3741
+ }, fd_write:function(a, b, c, d) {
3742
+ try {
3743
+ a: {
3744
+ var e = Hb(a);
3745
+ a = b;
3746
+ for (var f, g = b = 0; g < c; g++) {
3747
+ var k = B[a >> 2], p = B[a + 4 >> 2];
3748
+ a += 8;
3749
+ var n = e, u = k, v = p, y = f, l = t;
3750
+ if (0 > v || 0 > y) {
3751
+ throw new G(28);
3752
+ }
3753
+ if (null === n.X) {
3754
+ throw new G(8);
3755
+ }
3756
+ if (0 === (n.flags & 2097155)) {
3757
+ throw new G(8);
3758
+ }
3759
+ if (16384 === (n.node.mode & 61440)) {
3760
+ throw new G(31);
3761
+ }
3762
+ if (!n.m.write) {
3763
+ throw new G(28);
3764
+ }
3765
+ n.seekable && n.flags & 1024 && Qb(n, 0, 2);
3766
+ var r = "undefined" != typeof y;
3767
+ if (!r) {
3768
+ y = n.position;
3769
+ } else if (!n.seekable) {
3770
+ throw new G(70);
3771
+ }
3772
+ var x = n.m.write(n, l, u, v, y, void 0);
3773
+ r || (n.position += x);
3774
+ var z = x;
3775
+ if (0 > z) {
3776
+ var H = -1;
3777
+ break a;
3778
+ }
3779
+ b += z;
3780
+ "undefined" !== typeof f && (f += z);
3781
+ }
3782
+ H = b;
3783
+ }
3784
+ B[d >> 2] = H;
3785
+ return 0;
3786
+ } catch (C) {
3787
+ if ("undefined" == typeof Vb || "ErrnoError" !== C.name) {
3788
+ throw C;
3789
+ }
3790
+ return C.W;
3791
+ }
3792
+ }, glBindFramebuffer:Kd, glGetIntegerv:Sd, invoke_ii:le, invoke_iii:me, invoke_iiii:ne, invoke_iiiii:oe, invoke_iiiiii:pe, invoke_iiiiiii:qe, invoke_iiiiiiiiii:re, invoke_v:se, invoke_vi:te, invoke_vii:ue, invoke_viii:ve, invoke_viiii:we, invoke_viiiiii:xe, invoke_viiiiiii:ye, invoke_viiiiiiii:ze, strftime_l:(a, b, c, d) => fe(a, b, c, d)};
3793
+ (function() {
3794
+ var a = {env:Ae, wasi_snapshot_preview1:Ae,};
3795
+ Fa++;
3796
+ Na(a, function(b) {
3797
+ q = b.instance.exports;
3798
+ va = q.memory;
3799
+ Aa();
3800
+ Ba = q.__indirect_function_table;
3801
+ Da.unshift(q.__wasm_call_ctors);
3802
+ Fa--;
3803
+ 0 == Fa && (null !== Ga && (clearInterval(Ga), Ga = null), Ha && (b = Ha, Ha = null, b()));
3804
+ }).catch(ba);
3805
+ return {};
3806
+ })();
3807
+ var Td = a => (Td = q.malloc)(a), oc = a => (oc = q.free)(a), Oa = m._ma_device__on_notification_unlocked = a => (Oa = m._ma_device__on_notification_unlocked = q.ma_device__on_notification_unlocked)(a);
3808
+ m._ma_malloc_emscripten = (a, b) => (m._ma_malloc_emscripten = q.ma_malloc_emscripten)(a, b);
3809
+ m._ma_free_emscripten = (a, b) => (m._ma_free_emscripten = q.ma_free_emscripten)(a, b);
3810
+ var Pa = m._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Pa = m._ma_device_process_pcm_frames_capture__webaudio = q.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Qa = m._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Qa = m._ma_device_process_pcm_frames_playback__webaudio = q.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), ke = () => (ke = q.__errno_location)(), nc = a => (nc = q.__getTypeName)(a);
3811
+ m.__embind_initialize_bindings = () => (m.__embind_initialize_bindings = q._embind_initialize_bindings)();
3812
+ var pb = (a, b) => (pb = q.emscripten_builtin_memalign)(a, b), X = (a, b) => (X = q.setThrew)(a, b), Y = () => (Y = q.stackSave)(), Z = a => (Z = q.stackRestore)(a);
3813
+ m.dynCall_iiiij = (a, b, c, d, e, f) => (m.dynCall_iiiij = q.dynCall_iiiij)(a, b, c, d, e, f);
3814
+ m.dynCall_viiij = (a, b, c, d, e, f) => (m.dynCall_viiij = q.dynCall_viiij)(a, b, c, d, e, f);
3815
+ m.dynCall_iiij = (a, b, c, d, e) => (m.dynCall_iiij = q.dynCall_iiij)(a, b, c, d, e);
3816
+ m.dynCall_viij = (a, b, c, d, e) => (m.dynCall_viij = q.dynCall_viij)(a, b, c, d, e);
3817
+ m.dynCall_iiji = (a, b, c, d, e) => (m.dynCall_iiji = q.dynCall_iiji)(a, b, c, d, e);
3818
+ m.dynCall_iiiji = (a, b, c, d, e, f) => (m.dynCall_iiiji = q.dynCall_iiiji)(a, b, c, d, e, f);
3819
+ m.dynCall_jiji = (a, b, c, d, e) => (m.dynCall_jiji = q.dynCall_jiji)(a, b, c, d, e);
3820
+ m.dynCall_iij = (a, b, c, d) => (m.dynCall_iij = q.dynCall_iij)(a, b, c, d);
3821
+ m.dynCall_jii = (a, b, c) => (m.dynCall_jii = q.dynCall_jii)(a, b, c);
3822
+ m.dynCall_viiiiij = (a, b, c, d, e, f, g, k) => (m.dynCall_viiiiij = q.dynCall_viiiiij)(a, b, c, d, e, f, g, k);
3823
+ m.dynCall_viji = (a, b, c, d, e) => (m.dynCall_viji = q.dynCall_viji)(a, b, c, d, e);
3824
+ m.dynCall_ji = (a, b) => (m.dynCall_ji = q.dynCall_ji)(a, b);
3825
+ m.dynCall_vij = (a, b, c, d) => (m.dynCall_vij = q.dynCall_vij)(a, b, c, d);
3826
+ m.dynCall_viijii = (a, b, c, d, e, f, g) => (m.dynCall_viijii = q.dynCall_viijii)(a, b, c, d, e, f, g);
3827
+ m.dynCall_iiiiij = (a, b, c, d, e, f, g) => (m.dynCall_iiiiij = q.dynCall_iiiiij)(a, b, c, d, e, f, g);
3828
+ m.dynCall_iiiiijj = (a, b, c, d, e, f, g, k, p) => (m.dynCall_iiiiijj = q.dynCall_iiiiijj)(a, b, c, d, e, f, g, k, p);
3829
+ m.dynCall_iiiiiijj = (a, b, c, d, e, f, g, k, p, n) => (m.dynCall_iiiiiijj = q.dynCall_iiiiiijj)(a, b, c, d, e, f, g, k, p, n);
3830
+ function le(a, b) {
3831
+ var c = Y();
3832
+ try {
3833
+ return Q(a)(b);
3834
+ } catch (d) {
3835
+ Z(c);
3836
+ if (d !== d + 0) {
3837
+ throw d;
3838
+ }
3839
+ X(1, 0);
3840
+ }
3841
+ }
3842
+ function ue(a, b, c) {
3843
+ var d = Y();
3844
+ try {
3845
+ Q(a)(b, c);
3846
+ } catch (e) {
3847
+ Z(d);
3848
+ if (e !== e + 0) {
3849
+ throw e;
3850
+ }
3851
+ X(1, 0);
3852
+ }
3853
+ }
3854
+ function te(a, b) {
3855
+ var c = Y();
3856
+ try {
3857
+ Q(a)(b);
3858
+ } catch (d) {
3859
+ Z(c);
3860
+ if (d !== d + 0) {
3861
+ throw d;
3862
+ }
3863
+ X(1, 0);
3864
+ }
3865
+ }
3866
+ function ne(a, b, c, d) {
3867
+ var e = Y();
3868
+ try {
3869
+ return Q(a)(b, c, d);
3870
+ } catch (f) {
3871
+ Z(e);
3872
+ if (f !== f + 0) {
3873
+ throw f;
3874
+ }
3875
+ X(1, 0);
3876
+ }
3877
+ }
3878
+ function ve(a, b, c, d) {
3879
+ var e = Y();
3880
+ try {
3881
+ Q(a)(b, c, d);
3882
+ } catch (f) {
3883
+ Z(e);
3884
+ if (f !== f + 0) {
3885
+ throw f;
3886
+ }
3887
+ X(1, 0);
3888
+ }
3889
+ }
3890
+ function we(a, b, c, d, e) {
3891
+ var f = Y();
3892
+ try {
3893
+ Q(a)(b, c, d, e);
3894
+ } catch (g) {
3895
+ Z(f);
3896
+ if (g !== g + 0) {
3897
+ throw g;
3898
+ }
3899
+ X(1, 0);
3900
+ }
3901
+ }
3902
+ function se(a) {
3903
+ var b = Y();
3904
+ try {
3905
+ Q(a)();
3906
+ } catch (c) {
3907
+ Z(b);
3908
+ if (c !== c + 0) {
3909
+ throw c;
3910
+ }
3911
+ X(1, 0);
3912
+ }
3913
+ }
3914
+ function qe(a, b, c, d, e, f, g) {
3915
+ var k = Y();
3916
+ try {
3917
+ return Q(a)(b, c, d, e, f, g);
3918
+ } catch (p) {
3919
+ Z(k);
3920
+ if (p !== p + 0) {
3921
+ throw p;
3922
+ }
3923
+ X(1, 0);
3924
+ }
3925
+ }
3926
+ function me(a, b, c) {
3927
+ var d = Y();
3928
+ try {
3929
+ return Q(a)(b, c);
3930
+ } catch (e) {
3931
+ Z(d);
3932
+ if (e !== e + 0) {
3933
+ throw e;
3934
+ }
3935
+ X(1, 0);
3936
+ }
3937
+ }
3938
+ function ye(a, b, c, d, e, f, g, k) {
3939
+ var p = Y();
3940
+ try {
3941
+ Q(a)(b, c, d, e, f, g, k);
3942
+ } catch (n) {
3943
+ Z(p);
3944
+ if (n !== n + 0) {
3945
+ throw n;
3946
+ }
3947
+ X(1, 0);
3948
+ }
3949
+ }
3950
+ function re(a, b, c, d, e, f, g, k, p, n) {
3951
+ var u = Y();
3952
+ try {
3953
+ return Q(a)(b, c, d, e, f, g, k, p, n);
3954
+ } catch (v) {
3955
+ Z(u);
3956
+ if (v !== v + 0) {
3957
+ throw v;
3958
+ }
3959
+ X(1, 0);
3960
+ }
3961
+ }
3962
+ function oe(a, b, c, d, e) {
3963
+ var f = Y();
3964
+ try {
3965
+ return Q(a)(b, c, d, e);
3966
+ } catch (g) {
3967
+ Z(f);
3968
+ if (g !== g + 0) {
3969
+ throw g;
3970
+ }
3971
+ X(1, 0);
3972
+ }
3973
+ }
3974
+ function ze(a, b, c, d, e, f, g, k, p) {
3975
+ var n = Y();
3976
+ try {
3977
+ Q(a)(b, c, d, e, f, g, k, p);
3978
+ } catch (u) {
3979
+ Z(n);
3980
+ if (u !== u + 0) {
3981
+ throw u;
3982
+ }
3983
+ X(1, 0);
3984
+ }
3985
+ }
3986
+ function pe(a, b, c, d, e, f) {
3987
+ var g = Y();
3988
+ try {
3989
+ return Q(a)(b, c, d, e, f);
3990
+ } catch (k) {
3991
+ Z(g);
3992
+ if (k !== k + 0) {
3993
+ throw k;
3994
+ }
3995
+ X(1, 0);
3996
+ }
3997
+ }
3998
+ function xe(a, b, c, d, e, f, g) {
3999
+ var k = Y();
4000
+ try {
4001
+ Q(a)(b, c, d, e, f, g);
4002
+ } catch (p) {
4003
+ Z(k);
4004
+ if (p !== p + 0) {
4005
+ throw p;
4006
+ }
4007
+ X(1, 0);
4008
+ }
4009
+ }
4010
+ var Be;
4011
+ Ha = function Ce() {
4012
+ Be || De();
4013
+ Be || (Ha = Ce);
4014
+ };
4015
+ function De() {
4016
+ if (!(0 < Fa)) {
4017
+ for (; 0 < Ca.length;) {
4018
+ Ca.shift()(m);
4019
+ }
4020
+ if (!(0 < Fa || Be || (Be = !0, m.calledRun = !0, wa))) {
4021
+ m.noFSInit || Sb || (Sb = !0, Rb(), m.stdin = m.stdin, m.stdout = m.stdout, m.stderr = m.stderr, m.stdin ? Ub("stdin", m.stdin) : Nb("/dev/tty", "/dev/stdin"), m.stdout ? Ub("stdout", null, m.stdout) : Nb("/dev/tty", "/dev/stdout"), m.stderr ? Ub("stderr", null, m.stderr) : Nb("/dev/tty1", "/dev/stderr"), Pb("/dev/stdin", 0), Pb("/dev/stdout", 1), Pb("/dev/stderr", 1));
4022
+ for (wb = !1; 0 < Da.length;) {
4023
+ Da.shift()(m);
4024
+ }
4025
+ aa(m);
4026
+ if (m.onRuntimeInitialized) {
4027
+ m.onRuntimeInitialized();
4028
+ }
4029
+ for (; 0 < Ea.length;) {
4030
+ Ea.shift()(m);
4031
+ }
4032
+ }
4033
+ }
4034
+ }
4035
+ De();
4036
+
199
4037
 
200
4038
 
201
4039
  return moduleArg.ready
@@ -209,7 +4047,7 @@ function Ee(){function a(){if(!Ce&&(Ce=!0,l.calledRun=!0,!xa)){l.noFSInit||Ub||(
209
4047
  /* 2 */
210
4048
  /***/ ((module) => {
211
4049
 
212
- module.exports = JSON.parse('{"name":"@rive-app/webgl","version":"2.10.4","description":"Rive\'s webgl based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
4050
+ module.exports = JSON.parse('{"name":"@rive-app/webgl","version":"2.11.0","description":"Rive\'s webgl based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
213
4051
 
214
4052
  /***/ }),
215
4053
  /* 3 */
@@ -1858,21 +5696,24 @@ var Rive = /** @class */ (function () {
1858
5696
  * Rive class
1859
5697
  */
1860
5698
  Rive.prototype.cleanup = function () {
1861
- var _a, _b, _c;
5699
+ var _a;
1862
5700
  // Stop the renderer if it hasn't already been stopped.
1863
5701
  this.stopRendering();
1864
5702
  // Clean up any artboard, animation or state machine instances.
1865
5703
  this.cleanupInstances();
1866
- // Only CanvasRenderer needs a delete for now, not WebGL.. might be a better
1867
- // way to detect this in the future
1868
- if ((_a = this.runtime) === null || _a === void 0 ? void 0 : _a.CanvasRenderer) {
1869
- (_b = this.renderer) === null || _b === void 0 ? void 0 : _b.delete();
1870
- }
1871
- this.renderer = null;
1872
5704
  // Delete the rive file
1873
- (_c = this.file) === null || _c === void 0 ? void 0 : _c.delete();
5705
+ (_a = this.file) === null || _a === void 0 ? void 0 : _a.delete();
1874
5706
  this.file = null;
1875
5707
  };
5708
+ /**
5709
+ * Cleans up the Renderer object. Only call this API if you no longer
5710
+ * need to render Rive content in your session.
5711
+ */
5712
+ Rive.prototype.deleteRiveRenderer = function () {
5713
+ var _a;
5714
+ (_a = this.renderer) === null || _a === void 0 ? void 0 : _a.delete();
5715
+ this.renderer = null;
5716
+ };
1876
5717
  /**
1877
5718
  * Cleans up any Wasm-generated objects that need to be manually destroyed:
1878
5719
  * artboard instances, animation instances, state machine instances.