function opn(){ setTimeout(function(){ document.getElementById('shut').innerHTML=2; document.getElementById("circle").width=window.innerWidth; document.getElementById("circle").height=window.innerHeight; let $hg=window.innerHeight+"px"; let $md=Math.round(parseInt(window.innerWidth,10)*0.5)-(window.innerHeight*0.5); let $hmd=Math.round(parseInt(window.innerHeight,10)*0.5)-(window.innerHeight*0.5); document.getElementById("ihig").innerHTML=window.innerHeight; document.getElementById("pmhig").innerHTML=window.innerHeight; document.getElementById("iwid").innerHTML=window.innerHeight; document.getElementById("canvas").style.top=0; document.getElementById("wrap").style.lineheight=$hg; document.getElementById("di").click(); },500); setTimeout(function(){ document.getElementById("btn2").click(); },1000); setTimeout(function(){ document.getElementById("btn10").click(); },1500); setTimeout(function(){ document.getElementById("btn9").click(); },2000); // setTimeout(function(){document.getElementById("btn").click();},4500); }; var f;f||(f=typeof Module !== 'undefined' ? Module : {});var aa={},l;for(l in f)f.hasOwnProperty(l)&&(aa[l]=f[l]);function ba(a,b){throw b;}var n="",ca,da;"undefined"!==typeof document&&document.currentScript&&(n=document.currentScript.src);n=0!==n.indexOf("blob:")?n.substr(0,n.lastIndexOf("/")+1):"";ca=function(a){var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);return b.responseText}; da=function(a,b,c){var d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=function(){200==d.status||0==d.status&&d.response?b(d.response):c()};d.onerror=c;d.send(null)};var ea=f.print||console.log.bind(console),q=f.printErr||console.warn.bind(console);for(l in aa)aa.hasOwnProperty(l)&&(f[l]=aa[l]);aa=null;f.quit&&(ba=f.quit);function fa(a){ha||(ha={});ha[a]||(ha[a]=1,q(a))}var ha,ia;f.wasmBinary&&(ia=f.wasmBinary);var noExitRuntime=f.noExitRuntime||!0; "object"!==typeof WebAssembly&&t("no native wasm support detected");var ja,ka=!1,la;function ma(a,b){a||t("Assertion failed: "+b)}function na(a){var b=f["_"+a];ma(b,"Cannot call unknown function "+a+", make sure it is exported");return b}var oa="undefined"!==typeof TextDecoder?new TextDecoder("utf8"):void 0; function pa(a,b,c){var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16e?d+=String.fromCharCode(e):(e-=65536,d+=String.fromCharCode(55296|e>>10,56320|e&1023))}}else d+=String.fromCharCode(e)}return d}function v(a,b){return a?pa(x,a,b):""} function qa(a,b,c,d){if(!(0=h){var k=a.charCodeAt(++g);h=65536+((h&1023)<<10)|k&1023}if(127>=h){if(c>=d)break;b[c++]=h}else{if(2047>=h){if(c+1>=d)break;b[c++]=192|h>>6}else{if(65535>=h){if(c+2>=d)break;b[c++]=224|h>>12}else{if(c+3>=d)break;b[c++]=240|h>>18;b[c++]=128|h>>12&63}b[c++]=128|h>>6&63}b[c++]=128|h&63}}b[c]=0;return c-e} function ra(a){for(var b=0,c=0;c=d&&(d=65536+((d&1023)<<10)|a.charCodeAt(++c)&1023);127>=d?++b:b=2047>=d?b+2:65535>=d?b+3:b+4}return b}var sa,y,x,ta,ua,A,va,wa,xa,ya,za=[],Aa=[],Ba=[],Ca=[];function Da(){var a=f.preRun.shift();za.unshift(a)}var B=0,Ea=null,Fa=null;function Ga(){B++;f.monitorRunDependencies&&f.monitorRunDependencies(B)} function Ha(){B--;f.monitorRunDependencies&&f.monitorRunDependencies(B);if(0==B&&(null!==Ea&&(clearInterval(Ea),Ea=null),Fa)){var a=Fa;Fa=null;a()}}f.preloadedImages={};f.preloadedAudios={};function t(a){if(f.onAbort)f.onAbort(a);q(a);ka=!0;la=1;throw new WebAssembly.RuntimeError("abort("+a+"). Build with -s ASSERTIONS=1 for more info.");} function Ia(){var a=D;return String.prototype.startsWith?a.startsWith("data:application/octet-stream;base64,"):0===a.indexOf("data:application/octet-stream;base64,")}var D="sh1.wasm";if(!Ia()){var Ja=D;D=f.locateFile?f.locateFile(Ja,n):n+Ja}function Ka(){var a=D;try{if(a==D&&ia)return new Uint8Array(ia);throw"both async and sync fetching of the wasm failed";}catch(b){t(b)}} function La(){return ia||"function"!==typeof fetch?Promise.resolve().then(function(){return Ka()}):fetch(D,{credentials:"same-origin"}).then(function(a){if(!a.ok)throw"failed to load wasm binary file at '"+D+"'";return a.arrayBuffer()}).catch(function(){return Ka()})}var E,Ma,Na={1912:function(){F("/shader")},1937:function(){return parseInt(document.getElementById("pmhig").innerHTML,10)}}; function Oa(a){for(;0=b||(b=Math.max(b,c*(1048576>c?2:1.125)>>>0),0!=c&&(b=Math.max(b,256)),c=a.Aa,a.Aa=new Uint8Array(b),0=a.node.Da)return 0;a=Math.min(a.node.Da-e,d);if(8b)throw new H(28);return b},pb:function(a,b,c){I.tb(a.node,b+c);a.node.Da=Math.max(a.node.Da,b+c)},Cb:function(a,b,c,d,e,g){if(0!==b)throw new H(28);if(32768!== (a.node.mode&61440))throw new H(43);a=a.node.Aa;if(g&2||a.buffer!==sa){if(0>>0)%K.length}function J(a,b){var c;if(c=(c=lb(a,"x"))?c:a.Ba.Ta?0:2)throw new H(c,a);for(c=K[kb(a.id,b)];c;c=c.Oa){var d=c.name;if(c.parent.id===a.id&&d===b)return c}return a.Ba.Ta(a,b)}function bb(a,b,c,d){a=new mb(a,b,c,d);b=kb(a.parent.id,a.name);a.Oa=K[b];return K[b]=a} var nb={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090};function ob(a){var b=["r","w","rw"][a&3];a&512&&(b+="w");return b}function lb(a,b){if(ib)return 0;if(-1===b.indexOf("r")||a.mode&292){if(-1!==b.indexOf("w")&&!(a.mode&146)||-1!==b.indexOf("x")&&!(a.mode&73))return 2}else return 2;return 0}function pb(a,b){try{return J(a,b),20}catch(c){}return lb(a,"wx")}function qb(a){var b=4096;for(a=a||0;a<=b;a++)if(!gb[a])return a;throw new H(33);} function rb(a,b){sb||(sb=function(){},sb.prototype={});var c=new sb,d;for(d in a)c[d]=a[d];a=c;b=qb(b);a.Ka=b;return gb[b]=a}var ab={open:function(a){a.Ca=fb[a.node.bb].Ca;a.Ca.open&&a.Ca.open(a)},Na:function(){throw new H(70);}};function Wa(a,b){fb[a]={Ca:b}} function tb(a,b){var c="/"===b,d=!b;if(c&&eb)throw new H(10);if(!c&&!d){var e=O(b,{ub:!1});b=e.path;e=e.node;if(e.Ua)throw new H(10);if(16384!==(e.mode&61440))throw new H(54);}b={type:a,zc:{},Db:b,Wb:[]};a=a.Ia(b);a.Ia=b;b.root=a;c?eb=a:e&&(e.Ua=b,e.Ia&&e.Ia.Wb.push(b))}function ub(a,b,c){var d=O(a,{parent:!0}).node;a=Ra(a);if(!a||"."===a||".."===a)throw new H(28);var e=pb(d,a);if(e)throw new H(e);if(!d.Ba.$a)throw new H(63);return d.Ba.$a(d,a,b,c)}function F(a){return ub(a,16895,0)} function vb(a,b,c){"undefined"===typeof c&&(c=b,b=438);return ub(a,b|8192,c)}function wb(a,b){if(!Ta(a))throw new H(44);var c=O(b,{parent:!0}).node;if(!c)throw new H(44);b=Ra(b);var d=pb(c,b);if(d)throw new H(d);if(!c.Ba.cb)throw new H(63);c.Ba.cb(c,b,a)} function xb(a){var b=O(a,{parent:!0}).node,c=Ra(a),d=J(b,c);a:{try{var e=J(b,c)}catch(h){e=h.Ja;break a}var g=lb(b,"wx");e=g?g:16384===(e.mode&61440)?31:0}if(e)throw new H(e);if(!b.Ba.fb)throw new H(63);if(d.Ua)throw new H(10);try{N.willDeletePath&&N.willDeletePath(a)}catch(h){q("FS.trackingDelegate['willDeletePath']('"+a+"') threw an exception: "+h.message)}b.Ba.fb(b,c);b=kb(d.parent.id,d.name);if(K[b]===d)K[b]=d.Oa;else for(b=K[b];b;){if(b.Oa===d){b.Oa=d.Oa;break}b=b.Oa}try{if(N.onDeletePath)N.onDeletePath(a)}catch(h){q("FS.trackingDelegate['onDeletePath']('"+ a+"') threw an exception: "+h.message)}}function jb(a){a=O(a).node;if(!a)throw new H(44);if(!a.Ba.Va)throw new H(28);return Ta(P(a.parent),a.Ba.Va(a))}function yb(a,b){a="string"===typeof a?O(a,{jb:!0}).node:a;if(!a.Ba.Ga)throw new H(63);a.Ba.Ga(a,{mode:b&4095|a.mode&-4096,timestamp:Date.now()})} function Q(a,b,c,d){if(""===a)throw new H(44);if("string"===typeof b){var e=nb[b];if("undefined"===typeof e)throw Error("Unknown file open mode: "+b);b=e}c=b&64?("undefined"===typeof c?438:c)&4095|32768:0;if("object"===typeof a)var g=a;else{a=G(a);try{g=O(a,{jb:!(b&131072)}).node}catch(h){}}e=!1;if(b&64)if(g){if(b&128)throw new H(20);}else g=ub(a,c,0),e=!0;if(!g)throw new H(44);8192===(g.mode&61440)&&(b&=-513);if(b&65536&&16384!==(g.mode&61440))throw new H(54);if(!e&&(c=g?40960===(g.mode&61440)?32: 16384===(g.mode&61440)&&("r"!==ob(b)||b&512)?31:lb(g,ob(b)):44))throw new H(c);if(b&512){c=g;c="string"===typeof c?O(c,{jb:!0}).node:c;if(!c.Ba.Ga)throw new H(63);if(16384===(c.mode&61440))throw new H(31);if(32768!==(c.mode&61440))throw new H(28);if(e=lb(c,"w"))throw new H(e);c.Ba.Ga(c,{size:0,timestamp:Date.now()})}b&=-131713;d=rb({node:g,path:P(g),flags:b,seekable:!0,position:0,Ca:g.Ca,$b:[],error:!1},d);d.Ca.open&&d.Ca.open(d);!f.logReadFiles||b&1||(zb||(zb={}),a in zb||(zb[a]=1,q("FS.trackingDelegate error on read file: "+ a)));try{N.onOpenFile&&(g=0,1!==(b&2097155)&&(g|=1),0!==(b&2097155)&&(g|=2),N.onOpenFile(a,g))}catch(h){q("FS.trackingDelegate['onOpenFile']('"+a+"', flags) threw an exception: "+h.message)}return d}function Ab(a){if(null===a.Ka)throw new H(8);a.kb&&(a.kb=null);try{a.Ca.close&&a.Ca.close(a)}catch(b){throw b;}finally{gb[a.Ka]=null}a.Ka=null} function Bb(a,b,c){if(null===a.Ka)throw new H(8);if(!a.seekable||!a.Ca.Na)throw new H(70);if(0!=c&&1!=c&&2!=c)throw new H(28);a.position=a.Ca.Na(a,b,c);a.$b=[]} function Cb(a,b,c,d,e,g){if(0>d||0>e)throw new H(28);if(null===a.Ka)throw new H(8);if(0===(a.flags&2097155))throw new H(8);if(16384===(a.node.mode&61440))throw new H(31);if(!a.Ca.write)throw new H(28);a.seekable&&a.flags&1024&&Bb(a,0,2);var h="undefined"!==typeof e;if(!h)e=a.position;else if(!a.seekable)throw new H(70);b=a.Ca.write(a,b,c,d,e,g);h||(a.position+=b);try{if(a.path&&N.onWriteToFile)N.onWriteToFile(a.path)}catch(k){q("FS.trackingDelegate['onWriteToFile']('"+a.path+"') threw an exception: "+ k.message)}return b}function Db(a,b){var c=c||{};c.flags=c.flags||577;a=Q(a,c.flags,c.mode);if("string"===typeof b){var d=new Uint8Array(ra(b)+1);b=qa(b,d,0,d.length);Cb(a,d,0,b,void 0,c.Nb)}else if(ArrayBuffer.isView(b))Cb(a,b,0,b.byteLength,void 0,c.Nb);else throw Error("Unsupported data type");Ab(a)} function Eb(){H||(H=function(a,b){this.node=b;this.Zb=function(c){this.Ja=c};this.Zb(a);this.message="FS error"},H.prototype=Error(),H.prototype.constructor=H,[44].forEach(function(a){cb[a]=new H(a);cb[a].stack=""}))}var Fb;function Gb(a,b){var c=0;a&&(c|=365);b&&(c|=146);return c}function Hb(a,b){a="string"===typeof a?a:P(a);for(b=b.split("/").reverse();b.length;){var c=b.pop();if(c){var d=G(a+"/"+c);try{F(d)}catch(e){}a=d}}return d} function Ib(a,b,c,d){a=G(("string"===typeof a?a:P(a))+"/"+b);c=Gb(c,d);return ub(a,(void 0!==c?c:438)&4095|32768,0)}function Jb(a,b,c,d,e,g){a=b?G(("string"===typeof a?a:P(a))+"/"+b):a;d=Gb(d,e);e=ub(a,(void 0!==d?d:438)&4095|32768,0);if(c){if("string"===typeof c){a=Array(c.length);b=0;for(var h=c.length;b= k.length)return 0;r=Math.min(k.length-u,r);if(k.slice)for(var w=0;w>2]}function Rb(a){a=gb[a];if(!a)throw new H(8);return a}var Sb;Sb=function(){return performance.now()}; function Tb(a,b){Ub=a;Vb=b;if(Wb)if(Xb||(Xb=!0),0==a)T=function(){var d=Math.max(0,Yb+b-Sb())|0;setTimeout(Zb,d)};else if(1==a)T=function(){$b(Zb)};else if(2==a){if("undefined"===typeof setImmediate){var c=[];addEventListener("message",function(d){if("setimmediate"===d.data||"setimmediate"===d.data.target)d.stopPropagation(),c.shift()()},!0);setImmediate=function(d){c.push(d);postMessage("setimmediate","*")}}T=function(){setImmediate(Zb)}}} function ac(a,b,c,d,e){function g(){if(h>z-6&63;z-=6;u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[M]}2==z?(u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(w&3)<<4],u+="=="):4==z&&(u+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(w&15)<<2],u+="=");r.src="data:audio/x-"+d.substr(-3)+";base64,"+u;h(r)}};r.src=m;tc(function(){h(r)})}else return k()}});var b=f.canvas;b&&(b.requestPointerLock=b.requestPointerLock||b.mozRequestPointerLock|| b.webkitRequestPointerLock||b.msRequestPointerLock||function(){},b.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||function(){},b.exitPointerLock=b.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",a,!1),document.addEventListener("mozpointerlockchange",a,!1),document.addEventListener("webkitpointerlockchange",a,!1),document.addEventListener("mspointerlockchange",a,!1),f.elementPointerLock&& b.addEventListener("click",function(c){!mc&&f.canvas.requestPointerLock&&(f.canvas.requestPointerLock(),c.preventDefault())},!1))}} function uc(a,b,c,d){if(b&&f.Sa&&a==f.canvas)return f.Sa;var e;if(b){var g={antialias:!1,alpha:!0,stencil:!0,depth:!0,yb:!0,lb:2};if(d)for(var h in d)g[h]=d[h];if("undefined"!==typeof vc&&(e=wc(a,g)))var k=xc[e].Xa}else k=a.getContext("2d");if(!k)return null;c&&(b||ma("undefined"===typeof V,"cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),f.Sa=k,b&&yc(e),f.ac=b,nc.forEach(function(p){p()}),Nb());return k}var zc=!1,Ac=void 0,Bc=void 0; function Cc(a,b){function c(){lc=!1;var g=d.parentNode;(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===g?(d.exitFullscreen=Dc,Ac&&d.requestPointerLock(),lc=!0,Bc?("undefined"!=typeof SDL&&(A[SDL.screen>>2]=va[SDL.screen>>2]|8388608),Ec(f.canvas),Fc()):Ec(d)):(g.parentNode.insertBefore(d,g),g.parentNode.removeChild(g),Bc?("undefined"!=typeof SDL&&(A[SDL.screen>>2]=va[SDL.screen>>2]& -8388609),Ec(f.canvas),Fc()):Ec(d));if(f.onFullScreen)f.onFullScreen(lc);if(f.onFullscreen)f.onFullscreen(lc)}Ac=a;Bc=b;"undefined"===typeof Ac&&(Ac=!0);"undefined"===typeof Bc&&(Bc=!1);var d=f.canvas;zc||(zc=!0,document.addEventListener("fullscreenchange",c,!1),document.addEventListener("mozfullscreenchange",c,!1),document.addEventListener("webkitfullscreenchange",c,!1),document.addEventListener("MSFullscreenChange",c,!1));var e=document.createElement("div");d.parentNode.insertBefore(e,d);e.appendChild(d); e.requestFullscreen=e.requestFullscreen||e.mozRequestFullScreen||e.msRequestFullscreen||(e.webkitRequestFullscreen?function(){e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}:null)||(e.webkitRequestFullScreen?function(){e.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:null);e.requestFullscreen()} function Dc(){if(!lc)return!1;(document.exitFullscreen||document.cancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen||document.webkitCancelFullScreen||function(){}).apply(document,[]);return!0}var Gc=0;function $b(a){if("function"===typeof requestAnimationFrame)requestAnimationFrame(a);else{var b=Date.now();if(0===Gc)Gc=b+1E3/60;else for(;b+2>=Gc;)Gc+=1E3/60;setTimeout(a,Math.max(Gc-b,0))}}function tc(a){setTimeout(function(){kc(a)},1E4)} function sc(a){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[a.substr(a.lastIndexOf(".")+1)]}function Ob(a,b,c){var d="al "+a;da(a,function(e){ma(e,'Loading data file "'+a+'" failed (no arrayBuffer).');b(new Uint8Array(e));d&&Ha(d)},function(){if(c)c();else throw'Loading data file "'+a+'" failed.';});d&&Ga(d)}var Hc=[];function Fc(){var a=f.canvas;Hc.forEach(function(b){b(a.width,a.height)})} function Ec(a,b,c){b&&c?(a.bc=b,a.Rb=c):(b=a.bc,c=a.Rb);var d=b,e=c;f.forcedAspectRatio&&0h;++h)e[h]=g[h]=null}return c}function yc(a){U=xc[a];f.Sa=V=U&&U.Xa;return!(a&&!V)} function Tc(a){a||(a=U);if(!a.Sb){a.Sb=!0;var b=a.Xa;b.lc=b.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");b.uc=b.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");b.mc=b.getExtension("EXT_disjoint_timer_query");b.wc=b.getExtension("WEBGL_multi_draw");(b.getSupportedExtensions()||[]).forEach(function(c){0>c.indexOf("lose_context")&&0>c.indexOf("debug")&&b.getExtension(c)})}}var vc={},Uc,U,Vc,Wc=["default","low-power","high-performance"],Xc=[0,document,window]; function Yc(a,b,c,d){for(var e=0;e>2]=h}}var Zc=[];function mb(a,b,c,d){a||(a=this);this.parent=a;this.Ia=a.Ia;this.Ua=null;this.id=hb++;this.name=b;this.mode=c;this.Ba={};this.Ca={};this.bb=d} Object.defineProperties(mb.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}},Ub:{get:function(){return 16384===(this.mode&61440)}},xb:{get:function(){return 8192===(this.mode&61440)}}});Eb();K=Array(4096);tb(I,"/");F("/tmp");F("/home");F("/home/web_user"); (function(){F("/dev");Wa(259,{read:function(){return 0},write:function(b,c,d,e){return e}});vb("/dev/null",259);Va(1280,Za);Va(1536,$a);vb("/dev/tty",1280);vb("/dev/tty1",1536);var a=Sa();R("/dev","random",a);R("/dev","urandom",a);F("/dev/shm");F("/dev/shm/tmp")})(); (function(){F("/proc");var a=F("/proc/self");F("/proc/self/fd");tb({Ia:function(){var b=bb(a,"fd",16895,73);b.Ba={Ta:function(c,d){var e=gb[+d];if(!e)throw new H(8);c={parent:null,Ia:{Db:"fake"},Ba:{Va:function(){return e.path}}};return c.parent=c}};return b}},"/proc/self/fd")})();f.FS_createPath=Hb;f.FS_createDataFile=Jb;f.FS_createPreloadedFile=Mb;f.FS_createLazyFile=Lb;f.FS_createDevice=R;f.FS_unlink=xb;f.requestFullscreen=function(a,b){Cc(a,b)};f.requestAnimationFrame=function(a){$b(a)}; f.setCanvasSize=function(a,b,c){Ec(f.canvas,a,b);c||Fc()};f.pauseMainLoop=function(){T=null;bc++};f.resumeMainLoop=function(){bc++;var a=Ub,b=Vb,c=Wb;Wb=null;ac(c,0,!1,ec,!0);Tb(a,b);T()};f.getUserMedia=function(){window.getUserMedia||(window.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia);window.getUserMedia(void 0)};f.createContext=function(a,b,c,d){return uc(a,b,c,d)};var V;function Ya(a){var b=Array(ra(a)+1);a=qa(a,b,0,b.length);b.length=a;return b} var ad={o:function(a,b,c){Pb=c;try{var d=Rb(a);switch(b){case 0:var e=Qb();return 0>e?-28:Q(d.path,d.flags,0,e).Ka;case 1:case 2:return 0;case 3:return d.flags;case 4:return e=Qb(),d.flags|=e,0;case 12:return e=Qb(),ta[e+0>>1]=2,0;case 13:case 14:return 0;case 16:case 8:return-28;case 9:return A[$c()>>2]=28,-1;default:return-28}}catch(g){return"undefined"!==typeof S&&g instanceof H||t(g),-g.Ja}},J:function(a,b,c){Pb=c;try{var d=Rb(a);switch(b){case 21509:case 21505:return d.Ea?0:-59;case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:return d.Ea? 0:-59;case 21519:if(!d.Ea)return-59;var e=Qb();return A[e>>2]=0;case 21520:return d.Ea?-28:-59;case 21531:a=e=Qb();if(!d.Ca.Tb)throw new H(59);return d.Ca.Tb(d,b,a);case 21523:return d.Ea?0:-59;case 21524:return d.Ea?0:-59;default:t("bad ioctl syscall "+b)}}catch(g){return"undefined"!==typeof S&&g instanceof H||t(g),-g.Ja}},K:function(a,b,c){Pb=c;try{var d=v(a),e=c?Qb():0;return Q(d,b,e).Ka}catch(g){return"undefined"!==typeof S&&g instanceof H||t(g),-g.Ja}},F:function(){t()},G:function(a,b){if(0=== a)a=Date.now();else if(1===a||4===a)a=Sb();else return A[$c()>>2]=28,-1;A[b>>2]=a/1E3|0;A[b+4>>2]=a%1E3*1E6|0;return 0},U:function(a){return 12448==a?1:0},V:function(a,b,c,d,e){if(62E3!=a)c=0;else{if(b)for(;;){a=A[b>>2];if(12321==a)W.alpha=0>2],a=A[b+4>>2],W.yb=12547!=a;else if(12325==a)W.depth=0>2];else if(12326==a)W.stencil=0>2];else if(12337==a)a=A[b+4>>2],W.antialias=0>2],W.antialias=1==a;else if(12544==a)a=A[b+4>>2],W.yb=12547!=a;else if(12344== a)break;b+=8}c&&d||e?(e&&(A[e>>2]=1),c&&0>2]=62002),c=1):c=0}return c},T:function(a,b,c,d){if(62E3!=a)return 0;for(a=1;;){b=A[d>>2];if(12440==b)a=A[d+4>>2];else if(12344==b)break;else return 0;d+=8}if(2>a||3>2]=1),c&&(A[c>>2]=4),Ic=!0,1):0},R:function(a, b,c,d){if(62E3!=a||0!=d&&62004!=d||0!=c&&62006!=c||0!=b&&62006!=b)return 0;yc(d?Jc:null);return 1},_:function(){return Ic&&f.Sa&&!f.Sa.isContextLost()?1:0},z:function(a,b,c){Zc.length=0;var d;for(c>>=2;d=x[b++];)(d=105>d)&&c&1&&c++,Zc.push(d?xa[c++>>1]:A[c]),++c;return Na[a].apply(null,Zc)},E:function(a,b,c){x.copyWithin(a,b,b+c)},c:function(){t("OOM")},ba:function(a,b,c){a=ya.get(a);ac(a,b,c)},H:function(a){for(var b=Sb();Sb()-b>=2;b={alpha:!!A[b],depth:!!A[b+1],stencil:!!A[b+ 2],antialias:!!A[b+3],premultipliedAlpha:!!A[b+4],preserveDrawingBuffer:!!A[b+5],powerPreference:Wc[A[b+6]],failIfMajorPerformanceCaveat:!!A[b+7],lb:A[b+8],Vb:A[b+9],sb:A[b+10],Pb:A[b+11],Ac:A[b+12],Bc:A[b+13]};a=2>=2;for(var b=0;14>b;++b)A[a+b]=0;A[a]=A[a+1]=A[a+3]=A[a+4]=A[a+8]=A[a+10]=1},Q:function(a){return yc(a)?0:-5},m:function(a){try{var b=Rb(a);Ab(b);return 0}catch(c){return"undefined"!==typeof S&&c instanceof H||t(c),c.Ja}},l:function(a,b,c,d){try{a:{for(var e=Rb(a),g=a=0;g>2],k=e,p=A[b+8*g>>2],m=h,r=void 0,u=y;if(0>m||0>r)throw new H(28);if(null===k.Ka)throw new H(8);if(1===(k.flags&2097155))throw new H(8);if(16384===(k.node.mode&61440))throw new H(31);if(!k.Ca.read)throw new H(28);var w="undefined"!==typeof r;if(!w)r=k.position;else if(!k.seekable)throw new H(70);var z=k.Ca.read(k,u,p,m,r);w||(k.position+=z);var C=z;if(0>C){var M=-1;break a}a+=C;if(C>2]=M;return 0}catch(L){return"undefined"!== typeof S&&L instanceof H||t(L),L.Ja}},D:function(a,b,c,d,e){try{var g=Rb(a);a=4294967296*c+(b>>>0);if(-9007199254740992>=a||9007199254740992<=a)return-61;Bb(g,a,d);Ma=[g.position>>>0,(E=g.position,1<=+Math.abs(E)?0>>0:~~+Math.ceil((E-+(~~E>>>0))/4294967296)>>>0:0)];A[e>>2]=Ma[0];A[e+4>>2]=Ma[1];g.kb&&0===a&&0===d&&(g.kb=null);return 0}catch(h){return"undefined"!==typeof S&&h instanceof H||t(h),h.Ja}},n:function(a,b,c,d){try{a:{for(var e=Rb(a), g=a=0;g>2],A[b+(8*g+4)>>2],void 0);if(0>h){var k=-1;break a}a+=h}k=a}A[d>>2]=k;return 0}catch(p){return"undefined"!==typeof S&&p instanceof H||t(p),p.Ja}},j:function(a){V.activeTexture(a)},t:function(a,b){V.attachShader(X[a],Z[b])},w:function(a,b){34962==a?V.rb=b:34963==a&&(V.ib=b);35051==a?V.jc=b:35052==a&&(V.Ob=b);V.bindBuffer(a,Lc[b])},y:function(a,b){V.bindFramebuffer(a,Mc[b])},e:function(a,b){V.bindTexture(a,Nc[b])},I:function(a){V.bindVertexArray(Oc[a]);a=V.getParameter(34965); V.ib=a?a.name|0:0},fa:function(a,b){V.blendEquationSeparate(a,b)},ea:function(a,b,c,d){V.blendFuncSeparate(a,b,c,d)},u:function(a,b,c,d){c?V.bufferData(a,x,d,c,b):V.bufferData(a,b,d)},v:function(a){V.clear(a)},ca:function(a,b,c,d){V.clearColor(a,b,c,d)},p:function(a){V.compileShader(Z[a])},O:function(){var a=Rc(X),b=V.createProgram();b.name=a;X[a]=b;return a},r:function(a){var b=Rc(Z);Z[b]=V.createShader(a);return b},s:function(a){if(a){var b=Z[a];b?(V.deleteShader(b),Z[a]=null):Uc||(Uc=1281)}},ha:function(a){V.depthMask(!!a)}, f:function(a){V.disable(a)},$:function(a,b,c,d){if(!V.ib){var e=1*Pc[c-5120]*b;var g=jc(e);var h=U.Qa[g];h?g=h:(h=V.getParameter(34965),U.Qa[g]=V.createBuffer(),V.bindBuffer(34963,U.Qa[g]),V.bufferData(34963,1<>2]: -1;e+=v(A[c+4*g>>2],0>h?void 0:h)}V.shaderSource(Z[a],e)},i:function(a,b,c,d,e,g,h,k,p){if(V.Ob)V.texImage2D(a,b,c,d,e,g,h,k,p);else if(p){var m=k-5120;m=0==m?y:1==m?x:2==m?ta:4==m?A:6==m?wa:5==m||28922==m||28520==m||30779==m||30782==m?va:ua;V.texImage2D(a,b,c,d,e,g,h,k,m,p>>31-Math.clz32(m.BYTES_PER_ELEMENT))}else V.texImage2D(a,b,c,d,e,g,h,k,null)},a:function(a,b,c){V.texParameteri(a,b,c)},aa:function(a,b){V.uniform1f(Y[a],b)},d:function(a,b){V.uniform1i(Y[a],b)},ja:function(a,b,c,d){V.uniform3f(Y[a], b,c,d)},ma:function(a){V.useProgram(X[a])},C:function(a,b,c,d,e,g){var h=U.Za[a];V.rb?(h.hb=!1,V.vertexAttribPointer(a,b,c,!!d,e,g)):(h.size=b,h.type=c,h.Gb=d,h.ob=e,h.ab=g,h.hb=!0,h.Lb=function(k,p,m,r,u,w){this.vertexAttribPointer(k,p,m,r,u,w)})},da:function(a,b,c,d){V.viewport(a,b,c,d)}}; (function(){function a(e){f.asm=e.exports;ja=f.asm.na;sa=e=ja.buffer;f.HEAP8=y=new Int8Array(e);f.HEAP16=ta=new Int16Array(e);f.HEAP32=A=new Int32Array(e);f.HEAPU8=x=new Uint8Array(e);f.HEAPU16=ua=new Uint16Array(e);f.HEAPU32=va=new Uint32Array(e);f.HEAPF32=wa=new Float32Array(e);f.HEAPF64=xa=new Float64Array(e);ya=f.asm.za;Aa.unshift(f.asm.oa);Ha("wasm-instantiate")}function b(e){a(e.instance)}function c(e){return La().then(function(g){return WebAssembly.instantiate(g,d)}).then(e,function(g){q("failed to asynchronously prepare wasm: "+ g);t(g)})}var d={a:ad};Ga("wasm-instantiate");if(f.instantiateWasm)try{return f.instantiateWasm(d,a)}catch(e){return q("Module.instantiateWasm callback failed with error: "+e),!1}(function(){return ia||"function"!==typeof WebAssembly.instantiateStreaming||Ia()||"function"!==typeof fetch?c(b):fetch(D,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,d).then(b,function(g){q("wasm streaming compile failed: "+g);q("falling back to ArrayBuffer instantiation");return c(b)})})})(); return{}})();f.___wasm_call_ctors=function(){return(f.___wasm_call_ctors=f.asm.oa).apply(null,arguments)};f._str=function(){return(f._str=f.asm.pa).apply(null,arguments)};f._compile=function(){return(f._compile=f.asm.qa).apply(null,arguments)};f._getShader=function(){return(f._getShader=f.asm.ra).apply(null,arguments)};f._main=function(){return(f._main=f.asm.sa).apply(null,arguments)};var db=f._malloc=function(){return(db=f._malloc=f.asm.ta).apply(null,arguments)}; f._read=function(){return(f._read=f.asm.ua).apply(null,arguments)};var $c=f.___errno_location=function(){return($c=f.___errno_location=f.asm.va).apply(null,arguments)},bd=f.stackSave=function(){return(bd=f.stackSave=f.asm.wa).apply(null,arguments)},cd=f.stackRestore=function(){return(cd=f.stackRestore=f.asm.xa).apply(null,arguments)},dd=f.stackAlloc=function(){return(dd=f.stackAlloc=f.asm.ya).apply(null,arguments)}; f.ccall=function(a,b,c,d){var e={string:function(m){var r=0;if(null!==m&&void 0!==m&&0!==m){var u=(m.length<<2)+1;r=dd(u);qa(m,x,r,u)}return r},array:function(m){var r=dd(m.length);y.set(m,r);return r}},g=na(a),h=[];a=0;if(d)for(var k=0;k 1) text = Array.prototype.slice.call(arguments).join(' '); console.log(text); if (element) { element.value += text + "\n"; element.scrollTop = element.scrollHeight; } } ; } )(), printErr: function(text) { if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' '); if (0) { dump(text + '\n'); } else { console.error(text); } }, canvas: (function() { let canvas = document.getElementById('canvas'); canvas.addEventListener("webglcontextlost", function(e) { alert('WebGL context lost. You will need to reload the page.'); e.preventDefault(); }, false); return canvas; } )(), setStatus: function(text) { if (!Module.setStatus.last) { Module.setStatus.last = { time: Date.now(), text: '' }; } if (text === Module.setStatus.text) { return; } var m = text.match(/([^(]+)\((\d+(\.\d+)?)\/(\d+)\)/); var now = Date.now(); if (m && now - Date.now() < 30) { return; } if (m) { text = m[1]; progressElement.value = parseInt(m[2], 10) * 100; progressElement.max = parseInt(m[4], 10) * 100; progressElement.hidden = false; } else { progressElement.value = null; progressElement.max = null; progressElement.hidden = true; } statusElement.innerHTML = text; }, totalDependencies: 0, monitorRunDependencies: function(left) { this.totalDependencies = Math.max(this.totalDependencies, left); Module.setStatus(left ? 'Preparing...(' + (this.totalDependencies - left) + '/' + this.totalDependencies + ')' : 'All downloads complete.'); } }; Module.setStatus('Downloading...'); window.onerror = function(event) { Module.setStatus('Exception thrown,see JavaScript console'); Module.setStatus = function(text) { if (text) { Module.printErr('[post-exception status] ' + text); } } ; } ;