website/projects/rightcoin/game.html

67 lines
4.5 MiB
HTML
Raw Normal View History

2019-06-26 13:30:30 +02:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TIC-80 tiny computer</title>
<style type="text/css">
.modal{display:none;position:fixed;z-index:1;padding-top:100px;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:#000;background-color:rgba(0,0,0,.4)}.modal-content{position:relative;background-color:#fefefe;margin:auto;padding:2px 16px;border:1px solid #888;width:500px;box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);-webkit-animation-name:animatetop;-webkit-animation-duration:.4s;animation-name:animatetop;animation-duration:.4s}@keyframes animatetop{from{top:-300px;opacity:0}to{top:0;opacity:1}}.close{color:#000;float:right;font-size:28px;font-weight:700}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer}
</style>
</head>
<body style="margin:0; padding:0;">
<div>
<canvas style="margin: 0 auto; display: block;" id="canvas" oncontextmenu="event.preventDefault()" onmousedown="window.focus()"></canvas>
</div>
<div id="add-modal" class="modal">
<div class="modal-content">
<span class="close">&times</span>
<p>Select a file to add to the computer</p>
<p><input type="file" id="upload-input"></input></p>
</div>
</div>
<script type="text/javascript">
var Module = {canvas: document.getElementById('canvas')};
</script>
<script type='text/javascript'>
var cartridge = [120,218,237,61,93,143,27,71,114,179,43,121,119,57,94,139,182,207,113,14,7,159,221,94,219,231,225,114,200,157,15,146,203,93,120,100,200,250,184,220,157,108,25,210,42,56,159,162,156,40,114,184,28,137,203,97,56,195,37,25,65,129,96,224,2,231,7,4,56,191,24,9,4,248,97,243,146,23,191,92,94,156,203,65,15,129,19,92,156,32,15,65,16,56,201,75,252,162,124,24,200,99,148,170,254,152,47,14,185,171,245,29,44,75,108,186,150,195,234,234,234,170,174,234,234,234,158,54,52,119,230,121,105,191,242,231,127,1,229,163,139,151,46,109,157,58,125,250,84,80,206,254,130,63,240,234,143,160,122,235,84,122,253,227,151,62,186,248,17,212,94,132,159,91,201,122,105,86,30,232,194,205,117,234,23,226,65,124,159,157,217,239,225,41,247,238,1,184,240,197,161,217,100,0,207,188,246,127,41,220,163,208,108,50,192,231,89,249,218,155,94,216,253,158,244,186,105,50,248,226,117,1,194,230,88,109,154,95,80,248,226,245,16,102,229,235,93,180,189,61,143,193,109,47,124,6,216,140,60,239,221,54,225,123,143,195,109,237,246,222,30,56,130,137,237,7,251,148,217,8,63,224,229,189,247,164,91,202,187,75,183,222,85,226,0,56,172,147,62,249,68,250,184,125,103,249,227,59,237,56,0,14,235,164,187,119,165,207,62,248,252,216,103,159,127,16,7,192,97,221,149,133,43,11,205,68,185,210,108,46,192,2,34,65,37,8,112,11,58,97,255,73,255,113,247,238,173,187,240,213,105,46,180,154,82,115,9,253,211,100,142,118,36,1,166,168,227,126,152,86,166,213,205,10,43,131,117,111,48,88,55,17,60,62,156,38,62,51,156,55,144,174,128,157,184,169,162,128,56,90,55,43,179,50,43,179,50,43,179,50,43,179,50,43,179,50,43,15,205,241,64,100,55,229,193,127,3,13,182,11,176,51,160,224,69,246,247,131,193,34,158,5,44,30,100,255,191,136,244,8,139,179,1,126,64,108,108,226,110,26,192,75,130,23,179,38,110,10,233,254,208,28,152,222,58,56,193,58,175,48,249,38,210,243,76,10,38,7,15,109,12,187,72,201,4,88,231,128,207,136,155,157,14,61,16,230,247,166,1,181,49,158,9,152,48,249,193,166,3,246,9,10,181,49,5,230,5,94,202,9,96,42,44,178,24,48,43,15,162,253,195,18,49,228,98,218,124,101,248,249,223,121,250,62,122,124,74,146,158,124,106,78,146,62,193,19,164,5,233,74,251,142,116,75,90,154,90,151,90,15,117,72,19,171,159,66,51,43,15,64,153,104,251,165,47,233,31,7,244,175,89,121,0,108,255,177,116,229,206,66,48,47,151,18,182,93,198,250,166,168,127,79,154,153,110,86,102,229,235,95,246,123,211,120,11,230,249,123,43,0,239,38,96,133,213,33,188,171,164,131,168,95,1,62,74,2,86,56,239,89,249,106,203,126,111,146,63,94,6,154,38,192,157,4,52,89,29,194,157,118,58,136,250,38,240,105,39,160,201,121,207,202,87,91,246,185,41,32,125,118,12,104,222,7,248,60,1,239,179,58,132,207,63,72,7,81,255,62,240,249,32,1,239,115,222,179,50,43,179,242,149,149,63,105,238,201,123,31,126,184,183,215,108,238,237,125,120,109,239,118,179,185,169,237,237,29,145,110,111,74,146,118,100,54,64,143,64,193,155,95,87,196,39,242,28,214,195,182,111,161,57,70,119,244,15,159,125,244,118,203,83,203,67,121,58,112,200,202,153,190,51,125,103,250,126,229,250,206,195,26,62,55,63,31,91,201,217,239,185,249,135,81,95,12,194,65,36,38,47,166,97,31,94,127,214,244,71,104,254,130,23,99,57,242,200,196,171,177,28,227,97,247,231,100,74,245,80,234,59,55,159,136,206,194,181,143,60,156,250,10,163,206,113,165,217,55,197,206,242,141,153,190,95,187,252,106,74,121,8,245,157,149,89,153,149,175,115,249,248,47,127,254,87,143,146,190,191,252,187,79,255,254,81,210,247,179,127,253,183,127,127,148,244,253,175,255,254,159,47,30,91,43,75,133,2,241,29,191,109,111,18,178,213,178,201,121,103,187,229,147,147,174,211,145,161,166,214,247,91,110,111,147,156,169,93,117,236,14,57,211,179,219,78,103,91,37,111,215,188,122,173,77,222,168,249,254,8,233,26,182,87,7,6,228,108,191,209,223,33,167,106,61,155,148,74,88,225,213,123,78,215,223,36,237,126,77,150,125,75,147,61,171,74,16,223,237,57,190,189,86,183,219,109,226,57,191,111,203,3,203,40,105,242,206,192,26,172,121,114,203,210,205,138,188,211,178,90,240,67,254,110,109,199,190,224,215,124,155,88,228,6,241,252,90,15,24,169,100,27,208,150,206,190,221,93,187,103,25,42,217,169,245,174,219,190,101,146,155,114,189,223,235,217,29,95,52,12,152,20,41,3,185,237,52,161,181,166,201,117,80,245,141,118
var Module=typeof Module!=="undefined"?Module:{};window.addEventListener("keydown",(function(e){if(e.ctrlKey&&[82].indexOf(e.keyCode)>-1||[8,27,33,34,35,36,37,38,39,40,122,58,59,60,61,62].indexOf(e.keyCode)>-1)e.preventDefault()}),false);Module.printErr=(function(){});Module.saveAs=Module.saveAs||(function(e){"use strict";if(typeof e==="undefined"||typeof navigator!=="undefined"&&/MSIE [1-9]\./.test(navigator.userAgent)){return}var t=e.document,n=(function(){return e.URL||e.webkitURL||e}),r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),o="download"in r,i=(function(e){var t=new MouseEvent("click");e.dispatchEvent(t)}),a=/constructor/i.test(e.HTMLElement),f=/CriOS\/[\d]+/.test(navigator.userAgent),u=(function(t){(e.setImmediate||e.setTimeout)((function(){throw t}),0)}),d="application/octet-stream",s=1e3*40,c=(function(e){var t=(function(){if(typeof e==="string"){n().revokeObjectURL(e)}else{e.remove()}});setTimeout(t,s)}),l=(function(e,t,n){t=[].concat(t);var r=t.length;while(r--){var o=e["on"+t[r]];if(typeof o==="function"){try{o.call(e,n||e)}catch(i){u(i)}}}}),p=(function(e){if(/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)){return new Blob([String.fromCharCode(65279),e],{type:e.type})}return e}),v=(function(t,u,s){if(!s){t=p(t)}var v=this,w=t.type,m=w===d,y,h=(function(){l(v,"writestart progress write writeend".split(" "))}),S=(function(){if((f||m&&a)&&e.FileReader){var r=new FileReader;r.onloadend=(function(){var t=f?r.result:r.result.replace(/^data:[^;]*;/,"data:attachment/file;");var n=e.open(t,"_blank");if(!n)e.location.href=t;t=undefined;v.readyState=v.DONE;h()});r.readAsDataURL(t);v.readyState=v.INIT;return}if(!y){y=n().createObjectURL(t)}if(m){e.location.href=y}else{var o=e.open(y,"_blank");if(!o){e.location.href=y}}v.readyState=v.DONE;h();c(y)});v.readyState=v.INIT;if(o){y=n().createObjectURL(t);setTimeout((function(){r.href=y;r.download=u;i(r);h();c(y);v.readyState=v.DONE}));return}S()}),w=v.prototype,m=(function(e,t,n){return new v(e,t||e.name||"download",n)});if(typeof navigator!=="undefined"&&navigator.msSaveOrOpenBlob){return(function(e,t,n){t=t||e.name||"download";if(!n){e=p(e)}return navigator.msSaveOrOpenBlob(e,t)})}w.abort=(function(){});w.readyState=w.INIT=0;w.WRITING=1;w.DONE=2;w.error=w.onwritestart=w.onprogress=w.onwrite=w.onabort=w.onerror=w.onwriteend=null;return m})(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||this.content);if(typeof module!=="undefined"&&module.exports){module.exports.saveAs=saveAs}else if(typeof define!=="undefined"&&define!==null&&define.amd!==null){define([],(function(){return saveAs}))}Module.showAddPopup=(function(callback){var modal=document.getElementById("add-modal");var span=document.getElementsByClassName("close")[0];modal.style.display="block";function cancel(){modal.style.display="none";callback(null,null)}span.onclick=cancel;window.onclick=(function(event){if(event.target==modal)cancel()});var uploadInput=document.getElementById("upload-input");uploadInput.onchange=(function(){var file=uploadInput.files[0];if(!file)return;var reader=new FileReader;reader.onload=(function(event){var rom=new Uint8Array(event.target.result);callback(file.name,rom);uploadInput.value="";modal.style.display="none"});reader.readAsArrayBuffer(file)})});var moduleOverrides={};var key;for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;if(Module["ENVIRONMENT"]){if(Module["ENVIRONMENT"]==="WEB"){ENVIRONMENT_IS_WEB=true}else if(Module["ENVIRONMENT"]==="WORKER"){ENVIRONMENT_IS_WORKER=true}else if(Module["ENVIRONMENT"]==="NODE"){ENVIRONMENT_IS_NODE=true}else if(Module["ENVIRONMENT"]==="SHELL"){ENVIRONMENT_IS_SHELL=true}else{throw new Error("The provided Module['ENVIRONMENT'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.")}}else{ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof pr
var asm=(/** @suppress {uselessCode} */ function(global,env,buffer) {
"use asm";var a=new global.Int8Array(buffer);var b=new global.Int16Array(buffer);var c=new global.Int32Array(buffer);var d=new global.Uint8Array(buffer);var e=new global.Uint16Array(buffer);var f=new global.Uint32Array(buffer);var g=new global.Float32Array(buffer);var h=new global.Float64Array(buffer);var i=env.DYNAMICTOP_PTR|0;var j=env.tempDoublePtr|0;var k=env.ABORT|0;var l=env.STACKTOP|0;var m=env.STACK_MAX|0;var n=env.cttz_i8|0;var o=0;var p=0;var q=0;var r=0;var s=global.NaN,t=global.Infinity;var u=0,v=0,w=0,x=0,y=0.0;var z=0;var A=global.Math.floor;var B=global.Math.abs;var C=global.Math.sqrt;var D=global.Math.pow;var E=global.Math.cos;var F=global.Math.sin;var G=global.Math.tan;var H=global.Math.acos;var I=global.Math.asin;var J=global.Math.atan;var K=global.Math.atan2;var L=global.Math.exp;var M=global.Math.log;var N=global.Math.ceil;var O=global.Math.imul;var P=global.Math.min;var Q=global.Math.max;var R=global.Math.clz32;var S=env.abort;var T=env.assert;var U=env.enlargeMemory;var V=env.getTotalMemory;var W=env.abortOnCannotGrowMemory;var X=env.invoke_dd;var Y=env.invoke_ddd;var Z=env.invoke_di;var _=env.invoke_did;var $=env.invoke_i;var aa=env.invoke_ii;var ba=env.invoke_iii;var ca=env.invoke_iiii;var da=env.invoke_iiiii;var ea=env.invoke_iiiiidii;var fa=env.invoke_iiiiii;var ga=env.invoke_iiiiiii;var ha=env.invoke_iiiiiiii;var ia=env.invoke_iiiiiiiii;var ja=env.invoke_iiiiiiiiii;var ka=env.invoke_v;var la=env.invoke_vd;var ma=env.invoke_vdd;var na=env.invoke_vdddd;var oa=env.invoke_vdddddd;var pa=env.invoke_vdi;var qa=env.invoke_vi;var ra=env.invoke_vid;var sa=env.invoke_vidd;var ta=env.invoke_viddd;var ua=env.invoke_vidddd;var va=env.invoke_viddddddddddddii;var wa=env.invoke_vii;var xa=env.invoke_viid;var ya=env.invoke_viiddddddi;var za=env.invoke_viidddddi;var Aa=env.invoke_viiddddi;var Ba=env.invoke_viidddi;var Ca=env.invoke_viiddi;var Da=env.invoke_viii;var Ea=env.invoke_viiii;var Fa=env.invoke_viiiidd;var Ga=env.invoke_viiiiddd;var Ha=env.invoke_viiiidddd;var Ia=env.invoke_viiiiddddd;var Ja=env.invoke_viiiiddddddd;var Ka=env.invoke_viiiii;var La=env.invoke_viiiiii;var Ma=env.invoke_viiiiiii;var Na=env.invoke_viiiiiiii;var Oa=env.invoke_viiiiiiiii;var Pa=env.invoke_viiiiiiiiiii;var Qa=env.invoke_viiiiiiiiiiii;var Ra=env.invoke_viiiiiiiiiiiii;var Sa=env.___assert_fail;var Ta=env.___buildEnvironment;var Ua=env.___lock;var Va=env.___setErrNo;var Wa=env.___syscall10;var Xa=env.___syscall140;var Ya=env.___syscall145;var Za=env.___syscall146;var _a=env.___syscall15;var $a=env.___syscall195;var ab=env.___syscall197;var bb=env.___syscall220;var cb=env.___syscall221;var db=env.___syscall330;var eb=env.___syscall39;var fb=env.___syscall40;var gb=env.___syscall5;var hb=env.___syscall54;var ib=env.___syscall6;var jb=env.___syscall63;var kb=env.___syscall85;var lb=env.___unlock;var mb=env.__addDays;var nb=env.__arraySum;var ob=env.__emscripten_sample_gamepad_data;var pb=env.__isLeapYear;var qb=env.__registerRestoreOldStyle;var rb=env.__setLetterbox;var sb=env._abort;var tb=env._clock;var ub=env._clock_gettime;var vb=env._difftime;var wb=env._dlclose;var xb=env._dlerror;var yb=env._dlsym;var zb=env._eglBindAPI;var Ab=env._eglChooseConfig;var Bb=env._eglCreateContext;var Cb=env._eglCreateWindowSurface;var Db=env._eglDestroyContext;var Eb=env._eglDestroySurface;var Fb=env._eglGetConfigAttrib;var Gb=env._eglGetDisplay;var Hb=env._eglGetProcAddress;var Ib=env._eglInitialize;var Jb=env._eglMakeCurrent;var Kb=env._eglSwapBuffers;var Lb=env._eglSwapInterval;var Mb=env._eglTerminate;var Nb=env._eglWaitClient;var Ob=env._eglWaitGL;var Pb=env._eglWaitNative;var Qb=env._emscripten_asm_const_i;var Rb=env._emscripten_asm_const_ii;var Sb=env._emscripten_asm_const_iii;var Tb=env._emscripten_asm_const_iiii;var Ub=env._emscripten_asm_const_iiiii;var Vb=env._emscripten_async_wget;var Wb=env._emscripten_cancel_main_loop;var Xb=env._emscripten_do_request_fullscreen;var Yb=env._emscripten_exit_fullscreen;var Zb=env._emscripten_exit_pointerlock;var _b=env._emscripten_get_device_pixel_ratio;var $b=env._emscripten_get_element_css_size;var a
// EMSCRIPTEN_START_FUNCS
function UF(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;r=b+44|0;c[r>>2]=e;k=c[e+28>>2]|0;h=(c[e+32>>2]|0)+-1|0;i=k+(h*12|0)|0;g=c[i>>2]|0;f=c[k+(h*12|0)+8>>2]|0;h=c[(c[k+(h*12|0)+4>>2]|0)+16>>2]|0;k=g+1|0;a:while(1){p=h;q=i;o=k;g=a[g>>0]|0;b:while(1){i=g&255;switch(c[8676+(i<<2)>>2]|0){case 6:{e=2;m=88;break a}case 1:{m=10;break b}case 2:{m=6;break b}case 3:{m=7;break b}case 4:{m=8;break b}case 5:{m=2;break b}case 7:{m=84;break b}case 8:{m=78;break b}case 9:{m=74;break b}case 10:{m=70;break b}case 11:{m=66;break b}case 12:{m=59;break b}case 13:{m=58;break b}case 14:{m=3;break b}case 15:{m=9;break b}case 16:{m=33;break b}case 17:{m=34;break b}case 18:{m=35;break b}case 19:{m=36;break b}case 20:{m=4;break b}case 21:{m=37;break b}case 22:{m=38;break b}case 23:{m=39;break b}case 24:{m=5;break b}case 25:{m=11;break b}case 27:{m=52;break b}case 28:{m=51;break b}case 29:{m=47;break b}case 30:{m=43;break b}case 31:{m=42;break b}case 32:{m=41;break b}case 33:{m=40;break b}case 34:{m=12;break b}case 26:break;default:{m=91;break a}}l=c[(c[p+28>>2]|0)+(((d[o>>0]|0)<<8|(d[o+1>>0]|0))<<3)>>2]|0;k=TM(b,l)|0;n=OF(k)|0;j=e+20|0;m=c[j>>2]|0;c[j>>2]=m+8;c[m>>2]=n;c[m+4>>2]=z;l=l+48|0;m=q+4|0;n=q+8|0;j=0;g=o;while(1){i=g+2|0;h=g+3|0;g=a[i>>0]|0;if((j|0)>=(c[l>>2]|0)){o=h;continue b}h=a[h>>0]|0;if(!(g<<24>>24))c[k+20+(j<<2)>>2]=c[(c[m>>2]|0)+20+((h&255)<<2)>>2];else c[k+20+(j<<2)>>2]=aG(b,e,(c[n>>2]|0)+((h&255)<<3)|0)|0;j=j+1|0;g=i}}switch(m|0){case 2:{i=f+(i+-4<<3)|0;k=c[i>>2]|0;i=c[i+4>>2]|0;g=e+20|0;h=c[g>>2]|0;c[g>>2]=h+8;c[h>>2]=k;c[h+4>>2]=i;h=p;i=q;k=o+1|0;g=o;continue a}case 3:{i=f+((d[o>>0]|0)<<3)|0;k=c[i>>2]|0;i=c[i+4>>2]|0;g=e+20|0;h=c[g>>2]|0;c[g>>2]=h+8;c[h>>2]=k;c[h+4>>2]=i;h=p;i=q;k=o+2|0;g=o+1|0;continue a}case 4:{i=(c[f>>2]|0)+16+((d[o>>0]|0)<<3)|0;k=c[i>>2]|0;i=c[i+4>>2]|0;g=e+20|0;h=c[g>>2]|0;c[g>>2]=h+8;c[h>>2]=k;c[h+4>>2]=i;h=p;i=q;k=o+2|0;g=o+1|0;continue a}case 5:{h=e+20|0;c[h>>2]=(c[h>>2]|0)+-8;h=p;i=q;k=o+1|0;g=o;continue a}case 6:{i=e+20|0;h=c[i>>2]|0;c[i>>2]=h+8;c[h>>2]=1;c[h+4>>2]=2147221504;h=p;i=q;k=o+1|0;g=o;continue a}case 7:{i=e+20|0;h=c[i>>2]|0;c[i>>2]=h+8;c[h>>2]=2;c[h+4>>2]=2147221504;h=p;i=q;k=o+1|0;g=o;continue a}case 8:{i=e+20|0;h=c[i>>2]|0;c[i>>2]=h+8;c[h>>2]=3;c[h+4>>2]=2147221504;h=p;i=q;k=o+1|0;g=o;continue a}case 9:{k=(c[e+20>>2]|0)+-8|0;i=c[k+4>>2]|0;h=f+((d[o>>0]|0)<<3)|0;c[h>>2]=c[k>>2];c[h+4>>2]=i;h=p;i=q;k=o+2|0;g=o+1|0;continue a}case 10:{i=(c[p+28>>2]|0)+(((d[o>>0]|0)<<8|(d[o+1>>0]|0))<<3)|0;k=c[i>>2]|0;i=c[i+4>>2]|0;g=e+20|0;h=c[g>>2]|0;c[g>>2]=h+8;c[h>>2]=k;c[h+4>>2]=i;h=p;i=q;k=o+3|0;g=o+2|0;continue a}case 11:{j=(d[o>>0]|0)<<8|(d[o+1>>0]|0);l=(c[e+20>>2]|0)+(23-i<<3)|0;k=l;g=o+2|0;k=VF(b,c[k>>2]|0,c[k+4>>2]|0)|0;i=i+-23|0;break}case 12:{g=o+4|0;k=c[(c[p+28>>2]|0)+(((d[o+2>>0]|0)<<8|(d[o+3>>0]|0))<<3)>>2]|0;l=(c[e+20>>2]|0)+(40-i<<3)|0;j=(d[o>>0]|0)<<8|(d[o+1>>0]|0);i=i+-40|0;break}case 33:{i=c[(c[(c[q+4>>2]|0)+20+((d[o>>0]|0)<<2)>>2]|0)+16>>2]|0;k=c[i>>2]|0;i=c[i+4>>2]|0;g=e+20|0;h=c[g>>2]|0;c[g>>2]=h+8;c[h>>2]=k;c[h+4>>2]=i;h=p;i=q;k=o+2|0;g=o+1|0;continue a}case 34:{k=(c[e+20>>2]|0)+-8|0;i=c[k+4>>2]|0;h=c[(c[(c[q+4>>2]|0)+20+((d[o>>0]|0)<<2)>>2]|0)+16>>2]|0;c[h>>2]=c[k>>2];c[h+4>>2]=i;h=p;i=q;k=o+2|0;g=o+1|0;continue a}case 35:{i=(c[(c[p+40>>2]|0)+16>>2]|0)+(((d[o>>0]|0)<<8|(d[o+1>>0]|0))<<3)|0;k=c[i>>2]|0;i=c[i+4>>2]|0;g=e+20|0;h=c[g>>2]|0;c[g>>2]=h+8;c[h>>2]=k;c[h+4>>2]=i;h=p;i=q;k=o+3|0;g=o+2|0;continue a}case 36:{k=(c[e+20>>2]|0)+-8|0;i=c[k+4>>2]|0;h=(c[(c[p+40>>2]|0)+16>>2]|0)+(((d[o>>0]|0)<<8|(d[o+1>>0]|0))<<3)|0;c[h>>2]=c[k>>2];c[h+4>>2]=i;h=p;i=q;k=o+3|0;g=o+2|0;continue a}case 37:{k=(c[e+20>>2]|0)+-8|0;i=c[k+4>>2]|0;h=(c[f>>2]|0)+16+((d[o>>0]|0)<<3)|0;c[h>>2]=c[k>>2];c[h+4>>2]=i;h=p;i=q;k=o+2|0;g=o+1|0;continue a}case 38:{i=a[o>>0]|0;g=e+20|0;n=c[g>>2]|0;h=n+-8|0;c[g>>2]=h;i=(c[h>>2]|0)+16+((i&255)<<3)|0;k=c[i>>2]|0;i=c[i+4>>2]|0;c[g>>2]=n;c[h>>2]=k;c[h+4>>2]=i;h=p;i=q;k=o+2|0;g=o+1|0;continue a}case 39:{h=a[o>>0]|0;i=e+20|0;k=c[i>>2]|0;g=k+-8|0;c[i>>2]=g;k=k+-16|0;i=c[k+4>>2]|0;h=(c[g>>2]|0)+16+((h&255)<<3)|0;c[h>>2]=c[k>>2];c[h+4>>2]=i;h=p;i=q;
function eA(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;v=b+12|0;w=c[v>>2]|0;j=w+61|0;switch(a[j>>0]|0){case 7:{e=w+16|0;c[e>>2]=c[w+32>>2]<<2;d=w+76|0;c[d>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;c[d+16>>2]=0;d=c[w+136>>2]|0;if(a[d+5>>0]&3)$z(w,d);if(c[w+48>>2]&64|0?(f=c[w+40>>2]|0,a[f+5>>0]&3):0)$z(w,f);fA(w);d=c[w+96>>2]|0;if(d|0)do{if(a[d+5>>0]&3)$z(w,d);d=c[d>>2]|0}while((d|0)!=0);a[j>>0]=0;w=c[e>>2]|0;return w|0}case 0:{d=w+16|0;c[d>>2]=0;gA(w);if(!(c[w+76>>2]|0))a[j>>0]=1;w=c[d>>2]|0;return w|0}case 1:{d=w+76|0;if(!(c[d>>2]|0))r=w;else{do gA(w);while((c[d>>2]|0)!=0);r=c[v>>2]|0}h=c[r+80>>2]|0;a[r+61>>0]=8;s=r+16|0;c[s>>2]=0;if(a[b+5>>0]&3)$z(r,b);if(c[r+48>>2]&64|0?(e=c[r+40>>2]|0,a[e+5>>0]&3):0)$z(r,e);fA(r);e=r+104|0;d=c[e>>2]|0;a:do if(d|0)do{while(1){f=d+32|0;if((a[d+5>>0]&7)==0?c[f>>2]|0:0)break;o=d+40|0;c[e>>2]=c[o>>2];c[o>>2]=d;d=c[f>>2]|0;if(d|0)do{f=d+8|0;g=f+4|0;if(c[g>>2]|0){d=c[d>>2]|0;if(c[d+8>>2]&64|0?(i=c[d>>2]|0,a[i+5>>0]&3):0)$z(r,i);c[g>>2]=0}d=c[f>>2]|0}while((d|0)!=0);d=c[e>>2]|0;if(!d)break a}e=d+40|0;d=c[e>>2]|0}while((d|0)!=0);while(0);j=r+76|0;if(c[j>>2]|0)do gA(r);while((c[j>>2]|0)!=0);f=c[s>>2]|0;c[j>>2]=h;if(h|0)do gA(r);while((c[j>>2]|0)!=0);c[s>>2]=0;i=r+88|0;while(1){d=c[i>>2]|0;c[i>>2]=0;e=0;b:while(1){do{if(!d)break b;o=d;d=c[d+28>>2]|0}while(!(hA(r,o)|0));if(!(c[j>>2]|0)){e=1;continue}while(1){gA(r);if(!(c[j>>2]|0)){e=1;continue b}}}if(!e)break}k=r+84|0;iA(r,c[k>>2]|0,0);l=r+92|0;iA(r,c[l>>2]|0,0);m=c[k>>2]|0;n=c[l>>2]|0;d=c[s>>2]|0;h=r+96|0;g=h;while(1){e=c[g>>2]|0;if(!e)break;else g=e}o=d+f|0;f=r+72|0;d=c[f>>2]|0;c:do if(d|0){e=g;while(1){g=d;while(1){if(!(a[g+5>>0]&3))break;c[f>>2]=c[g>>2];c[g>>2]=c[e>>2];c[e>>2]=g;d=c[f>>2]|0;if(!d)break c;else{e=g;g=d}}d=c[g>>2]|0;if(!d)break;else f=g}}while(0);c[r+120>>2]=1;d=c[h>>2]|0;if(d|0)do{if(a[d+5>>0]&3)$z(r,d);d=c[d>>2]|0}while((d|0)!=0);if(c[j>>2]|0)do gA(r);while((c[j>>2]|0)!=0);c[s>>2]=0;while(1){d=c[i>>2]|0;c[i>>2]=0;e=0;d:while(1){do{if(!d)break d;h=d;d=c[d+28>>2]|0}while(!(hA(r,h)|0));if(!(c[j>>2]|0)){e=1;continue}while(1){gA(r);if(!(c[j>>2]|0)){e=1;continue d}}}if(!e)break}d=c[i>>2]|0;if(d|0)do{j=a[d+7>>0]|0;e=c[d+16>>2]|0;i=e+(1<<(j&255)<<5)|0;if(j<<24>>24!=31)do{f=e+8|0;do if(c[f>>2]|0?(p=e+24|0,q=c[p>>2]|0,q&64|0):0){g=c[e+16>>2]|0;h=(a[g+5>>0]&3)==0;if((q&15|0)==4){if(h)break;$z(r,g);break}else{if(h)break;c[f>>2]=0;c[p>>2]=10;break}}while(0);e=e+32|0}while(e>>>0<i>>>0);d=c[d+28>>2]|0}while((d|0)!=0);d=c[l>>2]|0;if(d|0)do{q=a[d+7>>0]|0;e=c[d+16>>2]|0;i=e+(1<<(q&255)<<5)|0;if(q<<24>>24!=31)do{f=e+8|0;do if(c[f>>2]|0?(t=e+24|0,u=c[t>>2]|0,u&64|0):0){g=c[e+16>>2]|0;h=(a[g+5>>0]&3)==0;if((u&15|0)==4){if(h)break;$z(r,g);break}else{if(h)break;c[f>>2]=0;c[t>>2]=10;break}}while(0);e=e+32|0}while(e>>>0<i>>>0);d=c[d+28>>2]|0}while((d|0)!=0);iA(r,c[k>>2]|0,m);iA(r,c[l>>2]|0,n);d=r+144|0;f=0;do{e=r+280+(f<<2)|0;if(a[(c[e>>2]|0)+5>>0]&3)c[e>>2]=c[d>>2];f=f+1|0}while((f|0)!=127);h=r+60|0;a[h>>0]=a[h>>0]^3;h=c[s>>2]|0;d=c[v>>2]|0;a[d+61>>0]=2;e=d+64|0;g=0;do{g=g+1|0;f=bA(b,e,1)|0}while((f|0)==(e|0));c[d+68>>2]=f;c[w+20>>2]=(c[w+12>>2]|0)+(c[w+8>>2]|0);w=o+h+(g*5|0)|0;return w|0}case 2:{d=w+72|0;e=w+68|0;f=c[e>>2]|0;if(f|0?(u=w+12|0,v=c[u>>2]|0,b=bA(b,f,80)|0,c[e>>2]=b,w=w+20|0,c[w>>2]=(c[u>>2]|0)-v+(c[w>>2]|0),b|0):0){w=400;return w|0}a[j>>0]=3;c[e>>2]=d;w=0;return w|0}case 3:{d=w+96|0;e=w+68|0;f=c[e>>2]|0;if(f|0?(u=w+12|0,v=c[u>>2]|0,b=bA(b,f,80)|0,c[e>>2]=b,w=w+20|0,c[w>>2]=(c[u>>2]|0)-v+(c[w>>2]|0),b|0):0){w=400;return w|0}a[j>>0]=4;c[e>>2]=d;w=0;return w|0}case 4:{d=w+68|0;e=c[d>>2]|0;if(e|0?(u=w+12|0,v=c[u>>2]|0,b=bA(b,e,80)|0,c[d>>2]=b,w=w+20|0,c[w>>2]=(c[u>>2]|0)-v+(c[w>>2]|0),b|0):0){w=400;return w|0}a[j>>0]=5;c[d>>2]=0;w=0;return w|0}case 5:{v=(c[w+136>>2]|0)+5|0;a[v>>0]=a[w+60>>0]&3|a[v>>0]&-8;if((a[w+62>>0]|0)!=1){e=w+12|0;g=c[e>>2]|0;v=w+108|0;t=c[v>>2]|0;f=w+116|0;d=c[f>>2]|0;u=Uh[c[w>>2]&63](c[w+4>>2]|0,t,d,0)|0;d=(t|0?0-d|0:0)+(c[e>>2]|0)|0;c[e>>2]=d;c[v>>2]=u;c[f>>2]=0;f=c[w+32>>2]|0;if((c[w+28>>2]|0)<((f|0)/4|0|0)){PA(b,(f|0)/2|0);d=c[e>>2]|0}w=w+20|0;c[w>>2]=d-g+(c[w>>2]
function rv(a){a=a|0;var b=0,d=0.0,e=0,f=0,g=0,i=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,t=0,u=0;u=l;l=l+80|0;i=u+64|0;k=u;r=a+68|0;e=c[r>>2]|0;t=a+64|0;m=e-(c[t>>2]|0)>>4;o=a+72|0;b=c[o>>2]|0;if(!b)g=0;else g=(c[b+52>>2]|0)>>>2&1;q=a+56|0;if(e>>>0>=(c[q>>2]|0)>>>0)mr(a,4604);f=Or(a,40)|0;p=a+44|0;b=c[p>>2]|0;c[f>>2]=805322881;b=b+24|0;e=c[b>>2]|0;if(e|0)c[e+12>>2]=f;c[f+12>>2]=0;c[f+8>>2]=e;c[b>>2]=f;b=c[r>>2]|0;c[b>>2]=9;c[b+8>>2]=f;b=f+4|0;c[b>>2]=(c[b>>2]|0)+1;c[r>>2]=(c[r>>2]|0)+16;b=c[a+164>>2]|0;c[f+20>>2]=b;if(b|0){f=b+4|0;c[f>>2]=(c[f>>2]|0)+1}f=(g|0)!=0;if(!((m|0)!=0&f)){if(!(Pf(i|0,0)|0))d=+(c[i>>2]|0)*1.0e3+ +(c[i+4>>2]|0)/1.0e3;else d=0.0;d=+A(+d);h[j>>3]=d;b=c[j>>2]|0;e=c[j+4>>2]|0;p=e&2146435072;if(p>>>0<2146435072|(p|0)==2146435072&0<0?d>=-864.0e13&d<=864.0e13:0){d=+A(+(+B(+d)));d=(e|0)>-1|(e|0)==-1&b>>>0>4294967295?d:-d}else d=s;b=c[r>>2]|0;if(b>>>0>=(c[q>>2]|0)>>>0)mr(a,4215);q=b+16|0;c[r>>2]=q;c[b>>2]=0;h[b+8>>3]=d;t=c[t>>2]|0;b=q-t>>4;b=b>>>0>1?t+(b+-2<<4)|0:0;b=(b|0)==0?368:b;if((c[b>>2]|0)!=9)ar(a,2130,-2,342926);b=c[b+8>>2]|0;if(!b)ar(a,2130,-2,342926);yr(a,b,c[(c[a+304>>2]|0)+404>>2]|0,1);if(f){l=u;return 1}Xr(a,-1)|0;l=u;return 1}if((m|0)==1){Ir(a,0,0);b=c[r>>2]|0;e=c[t>>2]|0;e=(b|0)!=(e|0)?e:0;e=(e|0)==0?368:e;if(((c[e>>2]|0)==8?(n=c[e+8>>2]|0,(n|0)!=0):0)?(c[n>>2]&512|0)==0:0){az(a,n+28|0);f=c[t>>2]|0;b=(c[r>>2]|0)-f>>4;if(!b)Cr(a,376,-1);b=f+(b+-1<<4)|0;o=c[f>>2]|0;e=c[f+8>>2]|0;c[f>>2]=c[b>>2];c[f+4>>2]=c[b+4>>2];c[f+8>>2]=c[b+8>>2];c[f+12>>2]=c[b+12>>2];c[b>>2]=2;b=(c[r>>2]|0)+-16|0;c[r>>2]=b;if((o&8|0)!=0?(n=e+4|0,o=(c[n>>2]|0)+-1|0,c[n>>2]=o,(o|0)==0):0){qr(c[p>>2]|0,e);b=c[r>>2]|0}}e=c[t>>2]|0;if((b|0)==(e|0))Cr(a,300,0);d=+Ar(a,e);m=c[t>>2]|0;o=c[m>>2]|0;n=m+8|0;b=c[n>>2]|0;c[m>>2]=0;h[n>>3]=d;if(o&8|0?(n=b+4|0,o=(c[n>>2]|0)+-1|0,c[n>>2]=o,(o|0)==0):0)qr(c[p>>2]|0,b);h[j>>3]=d;b=c[j>>2]|0;e=c[j+4>>2]|0;p=e&2146435072;if(p>>>0<2146435072|(p|0)==2146435072&0<0?d>=-864.0e13&d<=864.0e13:0){d=+A(+(+B(+d)));d=(e|0)>-1|(e|0)==-1&b>>>0>4294967295?d:-d}else d=s;b=c[r>>2]|0;if(b>>>0>=(c[q>>2]|0)>>>0)mr(a,4215);q=b+16|0;c[r>>2]=q;c[b>>2]=0;h[b+8>>3]=d;t=c[t>>2]|0;b=q-t>>4;b=b>>>0>1?t+(b+-2<<4)|0:0;b=(b|0)==0?368:b;if((c[b>>2]|0)!=9)ar(a,2130,-2,342926);b=c[b+8>>2]|0;if(!b)ar(a,2130,-2,342926);yr(a,b,c[(c[a+304>>2]|0)+404>>2]|0,1);l=u;return 1}$y(a,k,m);d=+Zy(k,16);b=c[r>>2]|0;e=c[q>>2]|0;if(b>>>0>=e>>>0)mr(a,4215);f=b+16|0;c[r>>2]=f;c[b>>2]=0;h[b+8>>3]=d;if(f>>>0>=e>>>0)mr(a,1111);if((f-(c[t>>2]|0)|0)<16)Cr(a,1114,-1);c[r>>2]=b+32;c[f>>2]=c[b>>2];c[f+4>>2]=c[b+4>>2];c[f+8>>2]=c[b+8>>2];c[f+12>>2]=c[b+12>>2];if(c[f>>2]&8|0){n=(c[b+24>>2]|0)+4|0;c[n>>2]=(c[n>>2]|0)+1}b=c[r>>2]|0;f=b-(c[t>>2]|0)|0;n=f>>4;g=n+-3|0;if(n>>>0<=2)Cr(a,300,-3);e=c[(c[a+304>>2]|0)+404>>2]|0;if(b>>>0>=(c[q>>2]|0)>>>0)mr(a,4153);c[r>>2]=b+16;c[b>>2]=8;c[b+8>>2]=e;i=e+4|0;c[i>>2]=(c[i>>2]|0)+1;i=c[t>>2]|0;k=(c[r>>2]|0)-i>>4;f=((f|0)<48?k:0)+g|0;if(f>>>0>=k>>>0)Cr(a,376,g);if((k|0)==1)Cr(a,376,-2);e=k+-2|0;b=c[o>>2]|0;if(!b)b=1;else b=c[b+52>>2]&1;es(a,i+(f<<4)|0,i+(k+-1<<4)|0,c[i+(e<<4)>>2]|0,c[i+(e<<4)+4>>2]|0,+h[i+(e<<4)+8>>3],b)|0;Nt(a);b=c[r>>2]|0;if((b|0)==(c[t>>2]|0))br(a,342583,50337407,342599);t=b+-16|0;c[r>>2]=t;a=c[b+-16>>2]|0;b=c[b+-8>>2]|0;c[t>>2]=2;if(!(a&8)){l=u;return 1}t=b+4|0;a=(c[t>>2]|0)+-1|0;c[t>>2]=a;if(a|0){l=u;return 1}qr(c[p>>2]|0,b);l=u;return 1}function sv(a){a=a|0;var b=0,d=0.0,e=0,f=0;f=l;l=l+16|0;b=f;if(!(Pf(b|0,0)|0))d=+(c[b>>2]|0)*1.0e3+ +(c[b+4>>2]|0)/1.0e3;else d=0.0;b=a+68|0;e=c[b>>2]|0;if(e>>>0<(c[a+56>>2]|0)>>>0){d=+A(+d);c[b>>2]=e+16;c[e>>2]=0;h[e+8>>3]=d;l=f;return 1}else mr(a,4215);return 0}function tv(a){a=a|0;az(a,Xr(a,0)|0);return 1}function uv(a){a=a|0;var b=0.0,d=0,e=0,f=0,g=0.0,i=0,j=0,k=0;k=l;l=l+64|0;d=k;j=a+68|0;f=c[j>>2]|0;e=f-(c[a+64>>2]|0)|0;if((e|0)<32)if(f>>>0<(c[a+56>>2]|0)>>>0){g=s;i=f}else mr(a,4286);else{$y(a,d,e>>>4);b=+Zy(d,0);d=c[j>>2]|0;if(d>>>0<(c[a+56>>2]|0)>>>0){g=b;i=d}else mr(a,4215)}c[j>>2]=i+16;c[i>>2]=0;h[i+8>>3]=g;l=k;return 1}function vv(a){a=a|0;var d=0,f=0,g=0,i=0.0,k=0,m=0;m=l;l=l+32|0;g=m;d=c[a+72>>2]|0;do if(d){f=c[d+16>>2]|0;if(!f){d=(c[d+4>>2]|0)>>>8<<24>>24;b
function hm(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=c[b>>2]|0;Ai[c[g+1262692>>2]&15](g,0,7,240,7,8);g=c[b>>2]|0;Xh[c[g+1262668>>2]&3](g,d,0,8,15,0)|0;g=c[b>>2]|0;h=c[g+1262668>>2]|0;e=b+65660|0;f=(r4(d)|0)*6|0;Xh[h&3](g,e,f,8,15,0)|0;d=r4(d)|0;d=((r4(e)|0)+d|0)*6|0;if((c[b+24>>2]|0)==0?(((c[b+65644>>2]|0)>>>0)%60|0)>>>0>=30:0)return;g=c[b>>2]|0;h=b+65716|0;Ai[c[g+1262692>>2]&15](g,d+-1|0,7,a[h>>0]|0?5:7,7,a[(c[80]|0)+34>>0]|0);g=c[b>>2]|0;Xh[c[g+1262660>>2]&3](g,32,d,8,a[(c[80]|0)+32>>0]|0,(a[h>>0]|0)!=0)|0;return}function im(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=b+4|0;if((r4(c[h>>2]|0)|0)>>>0>65535)return;f=b+8|0;g=c[f>>2]|0;t6(g+1|0,g|0,(r4(g)|0)+1|0)|0;g=c[f>>2]|0;c[f>>2]=g+1;a[g>>0]=d;if(Ml(c[b+65648>>2]|0)|0)Ml(c[b+65652>>2]|0)|0;g=c[b+8>>2]|0;d=c[h>>2]|0;f=g;if(d>>>0<f>>>0){e=d;do{i=e;e=e+1|0;d=(a[i>>0]|0)==10?e:d}while((e|0)!=(f|0))}c[b+16>>2]=g-d;f=b+64|0;u6(f|0,a[(c[80]|0)+30>>0]|0,65536)|0;d=c[b>>2]|0;d=Rh[c[d+1262832>>2]&511](d)|0;e=c[d+24>>2]|0;if(!e)return;ti[e&63](d,c[h>>2]|0,f,(c[80]|0)+24|0);return}function jm(a,b){a=a|0;b=b|0;if(!(c[a+40>>2]|0)){b=1;return b|0}if(!(c[b+40>>2]|0)){b=-1;return b|0}b=e3(a,b)|0;return b|0}function km(b){b=b|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=l;l=l+16|0;o=s;do if(c[(c[b>>2]|0)+65416>>2]|0){r=c[2]|0;if(Uh[c[r+1262808>>2]&63](r,60,20,3)|0){q=b+28|0;c[q>>2]=c[q>>2]&1^1;q=c[2]|0;r=(c[80]|0)+49536|0;r=d[r>>0]|d[r+1>>0]<<8;Ci[c[q+1262752>>2]&7](q,2,(r&65535)>>>8&15,r&7,-1,0,15,0);break}r=c[2]|0;if(!(Uh[c[r+1262808>>2]&63](r,61,20,3)|0)?(r=c[2]|0,!(Uh[c[r+1262808>>2]&63](r,49,20,3)|0)):0){r=c[2]|0;if(!(Uh[c[r+1262808>>2]&63](r,50,20,3)|0)?(r=c[2]|0,!(Uh[c[r+1262808>>2]&63](r,48,20,3)|0)):0)break;e=c[b+12>>2]|0;f=c[b+16>>2]|0;if(!(c[b+28>>2]|0)){li[e&511](1,f);Vi();break}else{li[e&511](0,f);Vi();break}}q=b+28|0;c[q>>2]=c[q>>2]&1^1;q=c[2]|0;r=(c[80]|0)+49536|0;r=d[r>>0]|d[r+1>>0]<<8;Ci[c[q+1262752>>2]&7](q,2,(r&65535)>>>8&15,r&7,-1,0,15,0)}while(0);e=b+4|0;if(!(a[e>>0]|0)){q=c[2]|0;r=(c[80]|0)+49404|0;r=d[r>>0]|d[r+1>>0]<<8;Ci[c[q+1262752>>2]&7](q,0,(r&65535)>>>8&15,r&7,-1,0,15,0);a[e>>0]=1}s6(c[b>>2]|0,c[b+8>>2]|0,16320)|0;p=c[b>>2]|0;f=b+32|0;q=60-(c[f>>2]|0)|0;g=b+36|0;r=37-(c[g>>2]|0)|0;h=r+-6|0;i=c[2]|0;j=d[i+65412>>0]|0;k=d[i+65413>>0]|0;if((((((j|0)>=(q|0)?(n=q+120|0,!((j|0)>=(n|0)|(k|0)<(h|0)|(k|0)>(r|0))):0)?(e=i+16379|0,a[e>>0]=a[e>>0]&-128|1,a[84]|0):0)?(e=c[22]|0,(e|0)>=(q|0)&(e|0)<(n|0)):0)?(n=c[23]|0,!((n|0)<(h|0)|(n|0)>(r|0))):0)?(m=b+48|0,(a[m>>0]|0)==0):0){c[b+40>>2]=(c[f>>2]|0)+j;c[b+44>>2]=(c[g>>2]|0)+k;a[m>>0]=1}e=b+48|0;if(a[e>>0]|0?(n=i+16379|0,a[n>>0]=a[n>>0]&-128|1,c[f>>2]=(c[b+40>>2]|0)-j,c[g>>2]=(c[b+44>>2]|0)-k,!((a[84]|0)!=0&(c[22]|0)>>>0<240&(c[23]|0)>>>0<136)):0)a[e>>0]=0;m=p+1262692|0;Ai[c[m>>2]&15](p,q,r,120,61,8);Ai[c[p+1262696>>2]&15](p,q,r,120,61,15);n=p+1262688|0;f=r+61|0;Ai[c[n>>2]&15](p,q,f,q+119|0,f,0);f=r+-5|0;Ai[c[m>>2]&15](p,q,f,120,5,15);Ai[c[n>>2]&15](p,q+1|0,h,q+118|0,h,15);h=p+1262664|0;n=Xh[c[h>>2]&3](p,93206,0,-6,0,0)|0;Xh[c[h>>2]&3](p,93206,((120-n|0)/2|0)+q|0,f,7,0)|0;a[o>>0]=14;Fi[c[p+1262704>>2]&1](p,c[(c[80]|0)+56>>2]|0,2,q+6|0,r+-4|0,2,2,o,1,1,0,0);f=b+24|0;if((c[f>>2]|0)<=0){p=q+34|0;r=r+45|0;nm(b,93215,p,r,1,6,202,0);q=q+66|0;nm(b,93219,q,r,5,11,203,1);l=s;return}g=b+20|0;e=0;do{n=((120-(Xh[c[h>>2]&3](p,c[(c[g>>2]|0)+(e<<2)>>2]|0,0,-6,0,0)|0)|0)/2|0)+q|0;m=e;e=e+1|0;o=(e*7|0)+r|0;Xh[c[h>>2]&3](p,c[(c[g>>2]|0)+(m<<2)>>2]|0,n,o+1|0,0,0)|0;Xh[c[h>>2]&3](p,c[(c[g>>2]|0)+(m<<2)>>2]|0,n,o,15,0)|0}while((e|0)<(c[f>>2]|0));p=q+34|0;r=r+45|0;nm(b,93215,p,r,1,6,202,0);q=q+66|0;nm(b,93219,q,r,5,11,203,1);l=s;return}function lm(a){a=a|0;li[c[a+12>>2]&511](0,c[a+16>>2]|0);Vi();return}function mm(a){a=a|0;li[c[a+12>>2]&511](1,c[a+16>>2]|0);Vi();return}function nm(b,e,f,g,h,i,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0;q=c[b>>2]|0;n=c[2]|0;l=d[n+65412>>0]|0;m=d[n+65413>>0]|0;do if(((l|0)>=(f|0)?(o=f+20|0,!((l|0)>=(o|0)|(m|0)<(g|0))):0)?(p=g+9|0,(m|0)<(p|0)):0){n=n+16379|0;a[n>>0]=a[n>>0]&-128|1;if(((a[84]|0)!=0?(n=c[22]|0,(n|0)>=(f|0)&(n|0)<(o|0)):0)?(n=c[23]|0,(n|0)>=(g
function At(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0,i=0,k=0.0,m=0,n=0,o=0,p=0;m=l;l=l+16|0;p=m+8|0;g=a+40|0;i=c[g>>2]|0;if(i|0){c[(c[a+72>>2]|0)+36>>2]=c[i>>2];c[g>>2]=0}o=a+44|0;i=c[o>>2]|0;n=i+72|0;if(c[n>>2]|0){c[n>>2]=0;g=c[a+248>>2]|0;if(!g){k=+(b|0);h[m>>3]=k;g=0}else{c[m>>2]=g;k=+h[m>>3];g=9}c[i+84>>2]=1;c[i+96>>2]=g;h[i+104>>3]=k;if(g&8|0){h[j>>3]=k;m=(c[j>>2]|0)+4|0;c[m>>2]=(c[m>>2]|0)+1}xs(a)}c[n>>2]=1;g=a+68|0;m=c[a+52>>2]|0;i=(c[g>>2]|0)-m+528|0;m=m+i|0;n=a+56|0;do if((c[n>>2]|0)>>>0<m>>>0)if((c[a+60>>2]|0)>>>0<m>>>0){Er(a,i,1)|0;break}else{c[n>>2]=m;break}while(0);c[p>>2]=d;ht(a,b|16777216,e,f,392253,p);as(a,105);g=c[g>>2]|0;p=g+-16|0;f=c[o>>2]|0;c[f+84>>2]=1;f=f+96|0;c[f>>2]=c[p>>2];c[f+4>>2]=c[p+4>>2];c[f+8>>2]=c[p+8>>2];c[f+12>>2]=c[p+12>>2];if(c[p>>2]&8|0){p=(c[g+-8>>2]|0)+4|0;c[p>>2]=(c[p>>2]|0)+1}c[(c[o>>2]|0)+72>>2]=0;xs(a)}function Bt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;k=l;l=l+16|0;j=k;e=a+68|0;d=c[e>>2]|0;f=c[a+64>>2]|0;g=(d-f>>4)-b|0;i=g+-1|0;h=f;if((i|b|0)<0)nr(a,342568,55);if(d>>>0>=(c[a+56>>2]|0)>>>0)mr(a,4162);d=d+16|0;c[e>>2]=d;d=d-f>>4;b=((g|0)<0?d:0)+g|0;if(b>>>0>=d>>>0)Cr(a,376,g);e=h+(b<<4)|0;b=h+(d+-1<<4)|0;d=b-e|0;if(!d){Lr(a,i,0)|0;l=k;return};c[j>>2]=c[b>>2];c[j+4>>2]=c[b+4>>2];c[j+8>>2]=c[b+8>>2];c[j+12>>2]=c[b+12>>2];t6(e+16|0,e|0,d|0)|0;c[e>>2]=c[j>>2];c[e+4>>2]=c[j+4>>2];c[e+8>>2]=c[j+8>>2];c[e+12>>2]=c[j+12>>2];Lr(a,i,0)|0;l=k;return}function Ct(a,b){a=a|0;b=b|0;gt(a,c[(c[a+68>>2]|0)+-8>>2]|0);return 0}function Dt(a,b){a=a|0;b=b|0;var d=0,e=0;if(c[a+56>>2]|0)return;d=c[b+8>>2]|0;e=c[b+12>>2]|0;if(!e)c[a+24>>2]=d;else c[e+8>>2]=d;if(d|0)c[d+12>>2]=e;if((c[b>>2]&384|0)==128){e=a+12|0;d=a+16|0;li[c[e>>2]&511](c[d>>2]|0,c[b+20>>2]|0)}else{e=a+12|0;d=a+16|0}li[c[e>>2]&511](c[d>>2]|0,b);return}function Et(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,i=0,j=0;j=a+68|0;i=a+64|0;f=c[i>>2]|0;g=(c[j>>2]|0)-f>>4;e=((b|0)<0?g:0)+b|0;if(e>>>0>=g>>>0)Cr(a,376,b);if(g>>>0<=1)Cr(a,376,-2);d=g+-1|0;b=c[a+72>>2]|0;if(!b)b=1;else b=c[b+52>>2]&1;es(a,f+(e<<4)|0,f+(g+-2<<4)|0,c[f+(d<<4)>>2]|0,c[f+(d<<4)+4>>2]|0,+h[f+(d<<4)+8>>3],b)|0;d=c[j>>2]|0;if((d+-32|0)>>>0<(c[i>>2]|0)>>>0)br(a,342583,50337495,342599);b=d+-16|0;c[j>>2]=b;i=c[d+-16>>2]|0;d=c[d+-8>>2]|0;c[b>>2]=2;if((i&8|0)!=0?(g=d+4|0,i=(c[g>>2]|0)+-1|0,c[g>>2]=i,(i|0)==0):0){qr(c[a+44>>2]|0,d);b=c[j>>2]|0}i=b+-16|0;c[j>>2]=i;j=c[b+-16>>2]|0;b=c[b+-8>>2]|0;c[i>>2]=2;if(!(j&8))return;i=b+4|0;j=(c[i>>2]|0)+-1|0;c[i>>2]=j;if(j|0)return;qr(c[a+44>>2]|0,b);return}function Ft(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,i=0,j=0,k=0,l=0;k=a+68|0;e=c[k>>2]|0;j=a+64|0;f=c[j>>2]|0;l=e-f>>4;g=((b|0)<0?l:0)+b|0;i=f;if(g>>>0>=l>>>0)Cr(a,300,b);if(e>>>0>=(c[a+56>>2]|0)>>>0)mr(a,4274);l=e+16|0;c[k>>2]=l;c[e>>2]=0;h[e+8>>3]=+(d>>>0);f=l-f>>4;d=((g|0)<0?f:0)+g|0;if(d>>>0>=f>>>0)Cr(a,376,g);if((f|0)==1)Cr(a,376,-2);e=f+-2|0;b=c[a+72>>2]|0;if(!b)b=1;else b=c[b+52>>2]&1;es(a,i+(d<<4)|0,i+(f+-1<<4)|0,c[i+(e<<4)>>2]|0,c[i+(e<<4)+4>>2]|0,+h[i+(e<<4)+8>>3],b)|0;e=c[k>>2]|0;if((e+-32|0)>>>0<(c[j>>2]|0)>>>0)br(a,342583,50337495,342599);b=e+-16|0;c[k>>2]=b;l=c[e+-16>>2]|0;e=c[e+-8>>2]|0;c[b>>2]=2;if((l&8|0)!=0?(j=e+4|0,l=(c[j>>2]|0)+-1|0,c[j>>2]=l,(l|0)==0):0){qr(c[a+44>>2]|0,e);b=c[k>>2]|0}j=b+-16|0;c[k>>2]=j;l=c[b+-16>>2]|0;b=c[b+-8>>2]|0;c[j>>2]=2;if(!(l&8))return;k=b+4|0;l=(c[k>>2]|0)+-1|0;c[k>>2]=l;if(l|0)return;qr(c[a+44>>2]|0,b);return}function Gt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;k=l;l=l+16|0;j=k;e=a+68|0;d=c[e>>2]|0;f=c[a+64>>2]|0;i=(d-f>>4)+~c[b>>2]|0;g=i+1|0;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u=5;break}case 3:{if((c[(c[b+12>>2]|0)+12>>2]|0)>0){jA(b);e=c[c[i>>2]>>2]|0;d=c[k>>2]|0}u=e+16|0;d=u>>>0<d>>>0?u:412368;oA(b,d);u=5;break}default:{qB(b,1,361511);d=0}}if((u|0)==5)d=(c[d>>2]|0)+16|0;c[E>>2]=d;c[F>>2]=b;x=F+4|0;c[x>>2]=1;c[F+8>>2]=1;v=c[k>>2]|0;c[v+8>>2]=0;c[k>>2]=v+16;v=W+12|0;c[v>>2]=b;A=W+16|0;c[W>>2]=A;y=W+8|0;c[y>>2]=0;w=W+4|0;c[w>>2]=8192;if(!(a[d>>0]|0)){e=A;d=0}else{q=1;e=0;while(1){p=ID(F,e,E,K,J)|0;o=c[J>>2]|0;r=c[K>>2]|0;t=o+e+r|0;d=o+-1|0;c[J>>2]=d;if((o|0)>0){n=0-o|0;while(1){e=c[y>>2]|0;f=c[w>>2]|0;if(e>>>0>=f>>>0?(B=c[v>>2]|0,(f|0)==(e|0)):0){m=e<<1;m=(m|0)==(e|0)?e+1|0:m;if(m>>>0<e>>>0)oB(B,356281,M);i=zz(B,m)|0;s6(i|0,c[W>>2]|0,c[y>>2]|0)|0;if((c[W>>2]|0)!=(A|0)){k=B+8|0;f=c[k>>2]|0;e=f+-16|0;f=f+-32|0;do{c[X>>2]=c[f>>2];c[X+4>>2]=c[f+4>>2];c[X+8>>2]=c[f+8>>2];c[X+12>>2]=c[f+12>>2];c[f>>2]=c[e>>2];c[f+4>>2]=c[e+4>>2];c[f+8>>2]=c[e+8>>2];c[f+12>>2]=c[e+12>>2];c[e>>2]=c[X>>2];c[e+4>>2]=c[X+4>>2];c[e+8>>2]=c[X+8>>2];c[e+12>>2]=c[X+12>>2];f=f+16|0;e=e+-16|0}while(f>>>0<e>>>0);c[k>>2]=(c[k>>2]|0)+-16}c[W>>2]=i;c[w>>2]=m;e=c[y>>2]|0}c[y>>2]=e+1;a[(c[W>>2]|0)+e>>0]=0;if((d|0)>0)d=d+-1|0;else break}c[J>>2]=(n|0)>-1?o+-2|0:-1}s=q+1|0;switch(p|0){case 0:{o=sB(b,s)|0;p=z;if((r|0)<8?(q=n6(1,0,(r<<3)+-1|0)|0,n=z,m=c6(0,0,q|0,n|0)|0,k=z,!(((p|0)>(k|0)|(p|0)==(k|0)&o>>>0>=m>>>0)&((p|0)<(n|0)|(p|0)==(n|0)&o>>>0<q>>>0))):0)nB(b,s,358243)|0;n=c[x>>2]|0;f=c[v>>2]|0;e=c[w>>2]|0;d=c[y>>2]|0;if((e-d|0)>>>0<r>>>0){k=e<<1;k=(k-d|0)>>>0<r>>>0?d+r|0:k;if(k>>>0<d>>>0|(k-d|0)>>>0<r>>>0)oB(f,356281,N);e=zz(f,k)|0;s6(e|0,c[W>>2]|0,c[y>>2]|0)|0;if((c[W>>2]|0)!=(A|0)){i=f+8|0;f=c[i>>2]|0;d=f+-16|0;f=f+-32|0;do{c[X>>2]=c[f>>2];c[X+4>>2]=c[f+4>>2];c[X+8>>2]=c[f+8>>2];c[X+12>>2]=c[f+12>>2];c[f>>2]=c[d>>2];c[f+4>>2]=c[d+4>>2];c[f+8>>2]=c[d+8>>2];c[f+12>>2]=c[d+12>>2];c[d>>2]=c[X>>2];c[d+4>>2]=c[X+4>>2];c[d+8>>2]=c[X+8>>2];c[d+12>>2]=c[X+12>>2];f=f+16|0;d=d+-16|0}while(f>>>0<d>>>0);c[i>>2]=(c[i>>2]|0)+-16}c[W>>2]=e;c[w>>2]=k;d=c[y>>2]|0}else e=c[W>>2]|0;m=e+d|0;i=(n|0)!=0;k=r+-1|0;a[m+(i?0:k)>>0]=o;do if((r|0)>1){if(i){d=o;e=p;f=1;while(1){d=m6(d|0,e|0,8)|0;a[m+f>>0]=d;f=f+1|0;if((f|0)==(r|0))break;else e=z}}else{d=o;e=p;f=1;while(1){d=m6(d|0,e|0,8)|0;a[m+(k-f)>>0]=d;f=f+1|0;if((f|0)==(r|0))break;else e=z}}if((p|0)<0&(r|0)>8)if(i){u6(m+8|0,-1,r+-8|0)|0;break}else{d=8;do{a[m+(k-d)>>0]=-1;d=d+1|0}while((d|0)!=(r|0))}}while(0);c[y>>2]=(c[y>>2]|0)+r;d=s;e=t;break}case 1:{f=sB(b,s)|0;d=z;if((r|0)<8?(q=n6(1,0,r<<3|0)|0,p=z,!(d>>>0<p>>>0|(d|0)==(p|0)&f>>>0<q>>>0)):0)nB(b,s,358260)|0;o=c[x>>2]|0;k=c[v>>2]|0;i=c[w>>2]|0;e=c[y>>2]|0;if((i-e|0)>>>0<r>>>0){n=i<<1;n=(n-e|0)>>>0<r>>>0?e+r|0:n;if(n>>>0<e>>>0|(n-e|0)>>>0<r>>>0)oB(k,356281,S);i=zz(k,n)|0;s6(i|0,c[W>>2]|0,c[y>>2]|0)|0;if((c[W>>2]|0)!=(A|0)){m=k+8|0;k=c[m>>2]|0;e=k+-16|0;k=k+-32|0;do{c[X>>2]=c[k>>2];c[X+4>>2]=c[k+4>>2];c[X+8>>2]=c[k+8>>2];c[X+12>>2]=c[k+12>>2];c[k>>2]=c[e>>2];c[k+4>>2]=c[e+4>>2];c[k+8>>2]=c[e+8>>2];c[k+12>>2]=c[e+12>>2];c[e>>2]=c[X>>2];c[e+4>>2]=c[X+4>>2];c[e+8>>2]=c[X+8>>2];c[e+12>>2]=c[X+12>>2];k=k+16|0;e=e+-16|0}while(k>>>0<e>>>0);c[m>>2]=(c[m>>2]|0)+-16}c[W>>2]=i;c[w>>2]=n;e=c[y>>2]|0}else i=c[W>>2]|0;k=i+e|0;e=(o|0)!=0;i=r+-1|0;a[k+(e?0:i)>>0]=f;if((r|0)>1)if(e){e=1;while(1){f=m6(f|0,d|0,8)|0;a[k+e>>0]=f;e=e+1|0;if((e|0)==(r|0))break;else d=z}}else{e=1;while(1){f=m6(f|0,d|0,8)|0;a[k+(i-e)>>0]=f;e=e+1|0;if((e|0)==(r|0))break;else d=z}}c[y>>2]=(c[y>>2]|0)+r;d=s;e=t;break}case 2:{f=c[v>>2]|0;e=c[w>>2]|0;d=c[y>>2]|0;if((e-d|0)>>>0<r>>>0){k=e<<1;k=(k-d|0)>>>0<r>>>0?d+r|0:k;if(k>>>0<d>>>0|(k-d|0)>>>0<r>>>0)oB(f,356281,T);e=zz(f,k)|0;s6(e|0,c[W>>2]
function Hi(a){a=a|0;var b=0;b=l;l=l+a|0;l=l+15&-16;return b|0}function Ii(){return l|0}function Ji(a){a=a|0;l=a}function Ki(a,b){a=a|0;b=b|0;l=a;m=b}function Li(a,b){a=a|0;b=b|0;if(!o){o=a;p=b}}function Mi(a){a=a|0;z=a}function Ni(){return z|0}function Oi(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,m=0,n=0;n=l;l=l+16|0;m=n;if(!b){m=0;l=n;return m|0}if(!(Qh[c[(c[40>>2]|0)+4>>2]&15]()|0)){m=0;l=n;return m|0}j=Qh[c[(c[40>>2]|0)+8>>2]&15]()|0;if(!j){m=0;l=n;return m|0}if(f){i=r4(j)|0;if((i|0)>0){f=0;h=0;do{g=a[j+h>>0]|0;if(!(T2(g<<24>>24)|0)){a[j+f>>0]=g;f=f+1|0}h=h+1|0}while((h|0)!=(i|0))}else f=0;a[j+f>>0]=0}f=r4(j)|0;d=(f|0)==(d<<1|0);if(d?(a[m>>0]=a[40384]|0,a[m+1>>0]=a[40385]|0,a[m+2>>0]=a[40386]|0,a[m+3>>0]=a[40387]|0,a[m+4>>0]=a[40388]|0,k=(f|0)/2|0,(f|0)>1):0){i=m+(e?3:2)|0;h=m+(e?2:3)|0;f=j;g=0;while(1){a[i>>0]=a[f>>0]|0;a[h>>0]=a[f+1>>0]|0;a[b+g>>0]=X2(m)|0;g=g+1|0;if((g|0)>=(k|0))break;else f=f+2|0}}fi[c[(c[40>>2]|0)+12>>2]&511](j);m=d;l=n;return m|0}function Pi(){return (c[80]|0)+8|0}function Qi(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;i=0;o=-1;do{k=i*7|0;g=c[2]|0;h=d[g+65412>>0]|0;f=k+7|0;if((d[g+65413>>0]|0)<7&((h|0)>=(k|0)&(h|0)<(f|0))){h=g+16379|0;a[h>>0]=a[h>>0]&-128|1;z5(228,c[392+(i<<2)>>2]|0,39)|0;if(((((a[85]|0)!=0?(j=c[22]|0,(j|0)>=(k|0)):0)?(j|0)<(f|0)&(c[23]|0)>>>0<7:0)?(h=c[24]|0,(h|0)>=(k|0)&(h|0)<(f|0)&(c[25]|0)>>>0<7):0)?(a[85]=0,l=c[412+(i<<2)>>2]|0,m=c[18]|0,(m|0)!=(l|0)):0){f=c[2]|0;a:do if((m|0)==2){fi[c[f+1262788>>2]&511](f);h=c[2]|0;fi[c[h+1262784>>2]&511](h)}else{fi[c[f+1262784>>2]&511](f);switch(m|0){case 10:case 9:case 1:case 0:break a;case 11:{c[19]=3;break a}default:{c[19]=m;break a}}}while(0);switch(l|0){case 6:{Nl(c[79]|0,c[2]|0,c[284+((a[180]|0)*20|0)+8>>2]|0);break}case 2:{_j(c[78]|0,c[77]|0,c[2]|0);break}case 11:{h=c[83]|0;fi[c[h+44>>2]&511](h);break}default:{}}c[18]=l;f=3}else f=3}else f=10;o=(c[18]|0)==(c[412+(i<<2)>>2]|0)?i:o;g=(o|0)==(i|0);if(g){Ri(k,0,40389,e);h=i<<3;Ri(k,1,40397+h|0,0)}else h=i<<3;Ri(k,0,40397+h|0,g?15:f);i=i+1|0}while((i|0)!=5);if((o|0)>-1)h=0;else return;do{g=h*7|0;i=g+144|0;f=c[2]|0;m=d[f+65412>>0]|0;g=g+151|0;b:do if((d[f+65413>>0]|0)<7&((m|0)>=(i|0)&(m|0)<(g|0))){f=f+16379|0;a[f>>0]=a[f>>0]&-128|1;f=c[472+(h<<2)>>2]&255;z5(228,c[492+(h<<2)>>2]|0,39)|0;if(a[84]|0?(m=c[22]|0,!((m|0)>=(g|0)|(m|0)<(i|0)|(c[23]|0)>>>0>6)):0){g=15;break}if((((a[85]|0)!=0?(n=c[22]|0,(n|0)>=(i|0)):0)?(n|0)<(g|0)&(c[23]|0)>>>0<7:0)?(m=c[24]|0,(m|0)>=(i|0)&(m|0)<(g|0)&(c[25]|0)>>>0<7):0){a[85]=0;g=c[19012+(h<<2)>>2]|0;switch(c[18]|0){case 3:{m=c[284+((a[178]|0)*20|0)>>2]|0;li[c[m+65728>>2]&511](m,g);g=f;f=15;break b}case 4:{m=c[284+((a[179]|0)*20|0)+4>>2]|0;li[c[m+68>>2]&511](m,g);g=f;f=15;break b}case 5:{m=c[284+((a[180]|0)*20|0)+8>>2]|0;li[c[m+120>>2]&511](m,g);g=f;f=15;break b}case 7:{m=c[284+((a[181]|0)*20|0)+12>>2]|0;li[c[m+40>>2]&511](m,g);g=f;f=15;break b}case 8:{m=c[284+((a[182]|0)*20|0)+16>>2]|0;li[c[m+96>>2]&511](m,g);g=f;f=15;break b}default:{g=f;f=15;break b}}}else{g=f;f=15}}else{g=10;f=15}while(0);Ai[c[(c[2]|0)+1262692>>2]&15](b,i,0,7,7,f);Ri(i,0,40601+(h<<3)|0,g);h=h+1|0}while((h|0)!=5);if(a[176]|0)return;n=(r4(228)|0)==0;f=c[(c[2]|0)+1262664>>2]|0;if(n){Xh[f&3](b,c[432+(o<<2)>>2]|0,42,1,3,0)|0;return}else{Xh[f&3](b,228,42,1,0,0)|0;return}}function Ri(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;k=b+7|0;l=b+1|0;m=b+2|0;n=b+3|0;o=b+4|0;p=b+5|0;j=b+6|0;i=0;while(1){h=i+d|0;g=a[e>>0]|0;if(g&1){g=c[2]|0;ti[c[g+1262680>>2]&63](g,k,h,f);g=a[e>>0]|0}if(g&2){g=c[2]|0;ti[c[g+1262680>>2]&63](g,j,h,f);g=a[e>>0]|0}if(g&4){g=c[2]|0;ti[c[g+1262680>>2]&63](g,p,h,f);g=a[e>>0]|0}if(g&8){g=c[2]|0;ti[c[g+1262680>>2]&63](g,o,h,f);g=a[e>>0]|0}if(g&16){g=c[2]|0;ti[c[g+1262680>>2]&63](g,n,h,f);g=a[e>>0]|0}if(g&32){g=c[2]|0;ti[c[g+1262680>>2]&63](g,m,h,f);g=a[e>>0]|0}if(g&64){g=c[2]|0;ti[c[g+1262680>>2]&63](g,l,h,f);g=a[e>>0]|0}if(g<<24>>24<=-1){g=c[2]|0;ti[c[g+1262680>>2]&63](g,b,h,f)}i=i+1|0;if((i|0)==8)break;else e=e+1|0}return}function Si(){var a=0,b=0,d=0;b=c[2]|0;d=b+1262804|0;a=Sh[c[d>>2]&255](b,64)|0;if(Sh[c[d>>2]&25
function x_(e,f,h){e=e|0;f=f|0;h=h|0;var i=0,j=0,k=0,m=0.0,n=0,o=0.0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=l;l=l+32|0;s=C+24|0;z=C+16|0;r=C+8|0;q=C;n=e+320|0;p=c[n>>2]|0;i=c[p>>2]|0;a:do if(!i){k=p+4|0;A=c[k>>2]|0;c[p>>2]=A;i=A;if(!A){j=j_(c[e+188>>2]|0)|0;do if(j|0){c[k>>2]=j;c[p>>2]=j;i=c[c[n>>2]>>2]|0;if(!i)break a;G_(i,e+216|0);i=c[c[n>>2]>>2]|0;if(i|0)if(!(c[e+280>>2]|0)){y=c[i+8>>2]|0;A=c[i+12>>2]|0;c[i+36>>2]=0;c[i+40>>2]=0;c[i+44>>2]=y;c[i+48>>2]=A;break}else{G_(i,e+248|0);break}}while(0);i=c[p>>2]|0}if(!i){h=-1;l=C;return h|0}else j=i}else j=i;while(0);A=l;l=l+((1*(h<<3)|0)+15&-16)|0;i=c[e+216>>2]|0;k=c[e+220>>2]|0;y=(h|0)>0;if(!(k|i)){if(y){i=0;do{c[A+(i<<3)>>2]=~~+g[f+(i<<3)>>2];c[A+(i<<3)+4>>2]=~~+g[f+(i<<3)+4>>2];i=i+1|0}while((i|0)!=(h|0))}}else if(y){o=+(i|0);m=+(k|0);i=0;do{c[A+(i<<3)>>2]=~~(o+ +g[f+(i<<3)>>2]);c[A+(i<<3)+4>>2]=~~(m+ +g[f+(i<<3)+4>>2]);i=i+1|0}while((i|0)!=(h|0))}w=c[e+316>>2]|0;n=a[e+312>>0]|0;x=a[e+315>>0]|0;p=a[e+313>>0]|0;f=a[e+314>>0]|0;if(!w){v=j+4|0;i=c[v>>2]|0;u=R_(i,n,p,f,x)|0;if(!j){vV(393700,q);h=-1;l=C;return h|0}if((d[i+8>>0]|0)<8){vV(393822,r);h=-1;l=C;return h|0}q=c[j+36>>2]|0;r=(c[j+44>>2]|0)+q|0;s=c[j+40>>2]|0;t=(c[j+48>>2]|0)+s|0;if(!y){h=0;l=C;return h|0}f=u&255;e=j+20|0;j=j+16|0;k=u&65535;i=0;b:while(1){n=c[A+(i<<3)>>2]|0;p=c[A+(i<<3)+4>>2]|0;c:do if((p|0)<(t|0)&(((n|0)>=(r|0)|(n|0)<(q|0)|(p|0)<(s|0))^1))switch(a[(c[v>>2]|0)+9>>0]|0){case 3:break b;case 1:{a[(c[e>>2]|0)+(O(c[j>>2]|0,p)|0)+n>>0]=f;break c}case 2:{b[(c[e>>2]|0)+(O(c[j>>2]|0,p)|0)+(n<<1)>>1]=k;break c}case 4:{c[(c[e>>2]|0)+(O(c[j>>2]|0,p)|0)+(n<<2)>>2]=u;break c}default:break c}while(0);i=i+1|0;if((i|0)>=(h|0)){i=0;B=46;break}}if((B|0)==46){l=C;return i|0}vV(392516,z);h=-1;l=C;return h|0}else{if(j){i=c[j+4>>2]|0;k=a[i+8>>0]|0;if((k&255)<8)i=393776;else{if((w+-1|0)>>>0<2){t=x&255;v=(((O(t,n&255)|0)>>>0)/255|0)&255;u=(((O(t,p&255)|0)>>>0)/255|0)&255;t=(((O(t,f&255)|0)>>>0)/255|0)&255}else{v=n;u=p;t=f}switch(k<<24>>24){case 15:{if((c[i+12>>2]|0)==31744)s=6;else B=40;break}case 16:{if((c[i+12>>2]|0)==63488)s=7;else B=40;break}case 32:{if((c[i+12>>2]|0)==16711680)s=(c[i+24>>2]|0)==0?3:2;else B=40;break}default:B=40}if((B|0)==40)s=(c[i+24>>2]|0)==0?5:4;f=c[j+36>>2]|0;e=(c[j+44>>2]|0)+f|0;q=c[j+40>>2]|0;r=(c[j+48>>2]|0)+q|0;if(y){p=0;i=0}else{h=0;l=C;return h|0}do{k=c[A+(p<<3)>>2]|0;n=c[A+(p<<3)+4>>2]|0;if((n|0)<(r|0)&(((k|0)>=(e|0)|(k|0)<(f|0)|(n|0)<(q|0))^1))i=Zh[s&7](j,k,n,w,v,u,t,x)|0;p=p+1|0}while((p|0)!=(h|0));l=C;return i|0}}else i=393700;vV(i,s);h=-1;l=C;return h|0}return 0}function y_(e,f,h){e=e|0;f=f|0;h=h|0;var i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0.0,r=0.0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0;I=l;l=l+80|0;z=I+48|0;p=I+40|0;o=I+32|0;A=I+24|0;x=I+16|0;v=I+8|0;s=I;D=I+64|0;E=I+60|0;F=I+56|0;G=I+52|0;m=e+320|0;n=c[m>>2]|0;i=c[n>>2]|0;a:do if(!i){j=n+4|0;H=c[j>>2]|0;c[n>>2]=H;i=H;if(!H){k=j_(c[e+188>>2]|0)|0;do if(k|0){c[j>>2]=k;c[n>>2]=k;i=c[c[m>>2]>>2]|0;if(!i){H=k;break a}G_(i,e+216|0);i=c[c[m>>2]>>2]|0;if(i|0)if(!(c[e+280>>2]|0)){C=c[i+8>>2]|0;H=c[i+12>>2]|0;c[i+36>>2]=0;c[i+40>>2]=0;c[i+44>>2]=C;c[i+48>>2]=H;break}else{G_(i,e+248|0);break}}while(0);i=c[n>>2]|0}if(!i){H=-1;l=I;return H|0}else H=i}else H=i;while(0);C=l;l=l+((1*(h<<3)|0)+15&-16)|0;i=c[e+216>>2]|0;k=c[e+220>>2]|0;j=(h|0)>0;if(!(k|i)){if(j){i=0;do{c[C+(i<<3)>>2]=~~+g[f+(i<<3)>>2];c[C+(i<<3)+4>>2]=~~+g[f+(i<<3)+4>>2];i=i+1|0}while((i|0)!=(h|0))}}else if(j){r=+(i|0);q=+(k|0);i=0;do{c[C+(i<<3)>>2]=~~(r+ +g[f+(i<<3)>>2]);c[C+(i<<3)+4>>2]=~~(q+ +g[f+(i<<3)+4>>2]);i=i+1|0}while((i|0)!=(h|0))}t=c[e+316>>2]|0;i=a[e+312>>0]|0;u=a[e+315>>0]|0;j=a[e+313>>0]|0;k=a[e+314>>0]|0;if(!t){o=H+4|0;m=c[o>>2]|0;e=R_(m,i,j,k,u)|0;b:do if(H){switch(a[m+9>>0]|0){case 1:{if((d[m+8>>0]|0)<8)w=26;else f=6;break}case 2:{f=5;break}case 4:{f=7;break}default:w=26}if((w|0)==26){vV(393656,v);i=-1;break}if((h|0)>1){k=H+36|0;i=c[C>>2]|0;j=1;m=i;n=c[C+4>>2]|0;do{c[D>>2]=m;c[E>>2]=n;m=c[C+(j<<3)>>2]|0;c[F>>2]=m;n=c[C+(j<<3)+4>>2]|0;c[G>>2]=n;if(e$(k,D,E,F,G)|0){B=c[F>>2]|0;z=c[G>>2]|0;Bi[f&15](H,c[D>>2]|0,c[E>>2]|0,B,z,e,((z|0)!=(
function ws(b,f){b=b|0;f=f|0;var g=0,i=0,k=0.0,m=0,n=0.0,o=0,p=0,q=0,r=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,C=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0;fa=l;l=l+32|0;da=fa;$=fa+8|0;aa=fa+4|0;S=b+44|0;T=$+4|0;U=$+8|0;V=$+4|0;W=$+12|0;b=0;a:while(1){ga=c[(c[S>>2]|0)+132>>2]|0;N=ga+40|0;c[N>>2]=aa;O=ga+72|0;I=c[O>>2]|0;H=(c[(c[I+16>>2]|0)+40>>2]|0)+24|0;c[aa>>2]=c[I+36>>2];I=ga+92|0;P=ga+64|0;R=ga+44|0;ha=ga+68|0;Q=ga+56|0;J=ga+304|0;K=ga+104|0;L=ga+112|0;M=ga+132|0;w=b;b:while(1){b=c[I>>2]|0;if((b|0)>0)c[I>>2]=b+-1;else{c[(c[O>>2]|0)+36>>2]=c[aa>>2];Ds(ga)}i=c[aa>>2]|0;g=i+4|0;c[aa>>2]=g;r=c[i>>2]|0;m=r&255;b=g;do switch((r&255)<<24>>24){case -87:{ea=2612;break a}case -86:{ea=2748;break a}case -3:case -4:case -5:case -6:case -7:case -8:case -9:case -10:case -11:case -12:case -13:case -14:case -15:case -16:case -17:case -18:case -19:case -20:case -21:case -22:case -23:case -24:case -25:case -26:case -27:case -28:case -29:case -30:case -31:case -32:case -33:case -34:case -35:case -36:case -37:case -38:case -39:case -40:case -41:case -42:case -43:case -44:case -49:case -2:case -1:{ea=2766;break a}case -50:{ea=2749;break a}case -99:{ea=2593;break b}case -97:{ea=2596;break b}case -96:{ea=2599;break b}case -98:{ea=2600;break b}case -93:{ea=2606;break b}case -92:{ea=2607;break b}case -88:{ea=2611;break b}case 0:{b=c[P>>2]|0;i=b+(r>>>4&4080)|0;b=b+(r>>>12&1048560)|0;if(c[b>>2]&8|0){G=(c[b+8>>2]|0)+4|0;c[G>>2]=(c[G>>2]|0)+1}if(!(c[i>>2]&8)){c[i>>2]=c[b>>2];c[i+4>>2]=c[b+4>>2];c[i+8>>2]=c[b+8>>2];c[i+12>>2]=c[b+12>>2];G=w;w=G;continue b}g=c[i+8>>2]|0;c[i>>2]=c[b>>2];c[i+4>>2]=c[b+4>>2];c[i+8>>2]=c[b+8>>2];c[i+12>>2]=c[b+12>>2];F=g+4|0;G=(c[F>>2]|0)+-1|0;c[F>>2]=G;if(G|0){G=w;w=G;continue b}qr(c[R>>2]|0,g);G=w;w=G;continue b}case 1:{b=c[P>>2]|0;i=b+(r>>>4&4080)|0;b=b+(r>>>12&1048560)|0;if(c[i>>2]&8|0){G=(c[i+8>>2]|0)+4|0;c[G>>2]=(c[G>>2]|0)+1}if(!(c[b>>2]&8)){c[b>>2]=c[i>>2];c[b+4>>2]=c[i+4>>2];c[b+8>>2]=c[i+8>>2];c[b+12>>2]=c[i+12>>2];G=w;w=G;continue b}g=c[b+8>>2]|0;c[b>>2]=c[i>>2];c[b+4>>2]=c[i+4>>2];c[b+8>>2]=c[i+8>>2];c[b+12>>2]=c[i+12>>2];F=g+4|0;G=(c[F>>2]|0)+-1|0;c[F>>2]=G;if(G|0){G=w;w=G;continue b}qr(c[R>>2]|0,g);G=w;w=G;continue b}case 3:{i=(c[P>>2]|0)+(r>>>4&4080)|0;g=H+(r>>>12&1048560)|0;if(c[g>>2]&8|0){G=(c[g+8>>2]|0)+4|0;c[G>>2]=(c[G>>2]|0)+1}if(!(c[i>>2]&8)){c[i>>2]=c[g>>2];c[i+4>>2]=c[g+4>>2];c[i+8>>2]=c[g+8>>2];c[i+12>>2]=c[g+12>>2];G=w;w=G;continue b}b=c[i+8>>2]|0;c[i>>2]=c[g>>2];c[i+4>>2]=c[g+4>>2];c[i+8>>2]=c[g+8>>2];c[i+12>>2]=c[g+12>>2];F=b+4|0;G=(c[F>>2]|0)+-1|0;c[F>>2]=G;if(G|0){G=w;w=G;continue b}qr(c[R>>2]|0,b);G=w;w=G;continue b}case 4:{E=(c[P>>2]|0)+(r>>>4&4080)|0;G=c[E>>2]|0;F=E+8|0;b=c[F>>2]|0;c[E>>2]=0;h[F>>3]=+((r>>>16)+-32768|0);if(!(G&8)){G=w;w=G;continue b}F=b+4|0;G=(c[F>>2]|0)+-1|0;c[F>>2]=G;if(G|0){G=w;w=G;continue b}qr(c[R>>2]|0,b);G=w;w=G;continue b}case 5:{E=(c[P>>2]|0)+(r>>>4&4080)|0;F=E+8|0;n=+h[F>>3];G=c[E>>2]|0;h[j>>3]=n;b=c[j>>2]|0;c[E>>2]=0;h[F>>3]=+(~~n<<16|r>>>16|0);if(!(G&8)){G=w;w=G;continue b}F=b+4|0;G=(c[F>>2]|0)+-1|0;c[F>>2]=G;if(G|0){G=w;w=G;continue b}qr(c[R>>2]|0,b);G=w;w=G;continue b}case 6:{b=c[P>>2]|0;g=b+(r>>>12&1048560)|0;i=b+-16|0;if(c[i>>2]&8|0){G=(c[b+-8>>2]|0)+4|0;c[G>>2]=(c[G>>2]|0)+1}if(!(c[g>>2]&8)){c[g>>2]=c[i>>2];c[g+4>>2]=c[i+4>>2];c[g+8>>2]=c[i+8>>2];c[g+12>>2]=c[i+12>>2];G=w;w=G;continue b}b=c[g+8>>2]|0;c[g>>2]=c[i>>2];c[g+4>>2]=c[i+4>>2];c[g+8>>2]=c[i+8>>2];c[g+12>>2]=c[i+12>>2];F=b+4|0;G=(c[F>>2]|0)+-1|0;c[F>>2]=G;if(G|0){G=w;w=G;continue b}qr(c[R>>2]|0,b);G=w;w=G;continue b}case 7:{F=(c[P>>2]|0)+(r>>>12&1048560)|0;G=c[F>>2]|0;b=c[F+8>>2]|0;c[F>>2]=2;if(!(G&8)){G=w;w=G;continue b}F=b+4|0;G=(c[F>>2]|0)+-1|0;c[F>>2]=G;if(G|0){G=w;w=G;continue b}qr(c[R>>2]|0,b);G=w;w=G;continue b}case 8:{F=(c[P>>2]|0)+(r>>>12&1048560)|0;G=c[F>>2]|0;b=c[F+8>>2]|0;c[F>>2]=3;if(!(G&8)){G=w;w=G;continue b}F=b+4|0;G=(c[F>>2]|0)+-1|0;c[F>>2]=G;if(G|0){G=w;w=G;continue b}qr(c[R>>2]|0,b);G=w;w=G;continue b}case 9:{E=(c[P>>2]|0)+(r>>>12&1048560)|0;G=c[E>>2]|0;F=E+8|0;b=c[F>>2]|0;c[E>>2]=4;c[F>>2]=1;
function oV(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0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]|0;do if(!f){vV(386054,Lc);Ec=0}else{if(b|0?(c[b>>2]|0)==(f+280|0):0){Ec=c[b+48>>2]|0;break}vV(405282,g);Ec=0}while(0);if((Ec&2|0)==0|(Bc|0)!=4|(Fc|0)!=2|(Ic|0)!=0){f=c[104297]|0;if(!f){vV(386054,h);f=c[104297]|0;if(!f){vV(386054,i);f=c[104297]|0;if(!f)vV(386054,j);else Jc=14}else Jc=11}else{c[f+368>>2]=4;Jc=11}if((Jc|0)==11){c[f+356>>2]=2;Jc=14}if((Jc|0)==14)c[f+360>>2]=0;if((qV(b,Ec|2)|0)>=0){vc=1;Jc=16}}else{vc=0;Jc=16}if((Jc|0)==16){f=B2(324)|0;a:do if(!f)vV(392416,k);else{if(c[f+-4>>2]&3|0)u6(f|0,0,324)|0;tc=B2(308)|0;if(!tc){rV(f);vV(392416,m);break}if(c[tc+-4>>2]&3|0)u6(tc|0,0,308)|0;g=f+104|0;h=19804;i=g+84|0;do{c[g>>2]=c[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));hc=f+108|0;c[hc>>2]=10;uc=f+320|0;c[uc>>2]=tc;pc=f+188|0;c[pc>>2]=b;g=sV(b)|0;c[tc>>2]=g;if(!g){rV(f);break}if((tV(b,g)|0)<0){rV(f);break}h=c[104297]|0;b:do if(h){g=c[h+168>>2]|0;if(!g){vV(392332,p);Jc=
function BY(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;i=c[b+24>>2]|0;f=c[b+28>>2]|0;e=c[b>>2]|0;Y=(c[b+16>>2]|0)/4|0;d=c[b+20>>2]|0;X=c[b+36>>2]|0;y=c[b+48>>2]|0;b=f+-1|0;f=(f|0)==0;if(!y){if(f)return;g=(i+7|0)/8|0;f=i&255;a:while(1){switch(f&7){case 0:{h=g;k=d;d=7;break}case 7:{j=g;m=d;d=8;break}case 6:{l=g;o=d;d=9;break}case 5:{n=g;q=d;d=10;break}case 4:{p=g;s=d;d=11;break}case 3:{r=g;u=d;d=12;break}case 2:{t=g;w=d;d=13;break}case 1:{v=g;x=d;d=14;break}default:{d=15;break a}}while(1)if((d|0)==7){j=c[e>>2]|0;a[k>>0]=j>>>22&224|j>>>15&28|j>>>8&3;j=h;m=k+1|0;d=8;continue}else if((d|0)==8){l=c[e>>2]|0;a[m>>0]=l>>>22&224|l>>>15&28|l>>>8&3;l=j;o=m+1|0;d=9;continue}else if((d|0)==9){n=c[e>>2]|0;a[o>>0]=n>>>22&224|n>>>15&28|n>>>8&3;n=l;q=o+1|0;d=10;continue}else if((d|0)==10){p=c[e>>2]|0;a[q>>0]=p>>>22&224|p>>>15&28|p>>>8&3;p=n;s=q+1|0;d=11;continue}else if((d|0)==11){r=c[e>>2]|0;a[s>>0]=r>>>22&224|r>>>15&28|r>>>8&3;r=p;u=s+1|0;d=12;continue}else if((d|0)==12){t=c[e>>2]|0;a[u>>0]=t>>>22&224|t>>>15&28|t>>>8&3;t=r;w=u+1|0;d=13;continue}else if((d|0)==13){v=c[e>>2]|0;a[w>>0]=v>>>22&224|v>>>15&28|v>>>8&3;v=t;x=w+1|0;d=14;continue}else if((d|0)==14){W=c[e>>2]|0;d=x+1|0;a[x>>0]=W>>>22&224|W>>>15&28|W>>>8&3;if((v|0)>1){h=v+-1|0;k=d;d=7;continue}else break}if(!b){d=28;break}else{e=e+(Y<<2)|0;d=d+X|0;b=b+-1|0}}if((d|0)!=15)if((d|0)==28)return}else{if(f)return;h=(i+7|0)/8|0;g=i&255;b:while(1){switch(g&7){case 0:{z=h;B=d;K=e;d=18;break}case 7:{A=h;C=d;M=e;d=19;break}case 6:{D=d;J=h;O=e;d=20;break}case 5:{E=d;L=h;Q=e;d=21;break}case 4:{F=d;N=h;S=e;d=22;break}case 3:{G=d;P=h;U=e;d=23;break}case 2:{H=d;R=h;V=e;d=24;break}case 1:{I=d;T=h;W=e;d=25;break}default:{d=26;break b}}while(1)if((d|0)==18){A=c[K>>2]|0;a[B>>0]=a[y+(A>>>22&224|A>>>15&28|A>>>8&3)>>0]|0;A=z;C=B+1|0;M=K+4|0;d=19;continue}else if((d|0)==19){D=c[M>>2]|0;a[C>>0]=a[y+(D>>>22&224|D>>>15&28|D>>>8&3)>>0]|0;D=C+1|0;J=A;O=M+4|0;d=20;continue}else if((d|0)==20){E=c[O>>2]|0;a[D>>0]=a[y+(E>>>22&224|E>>>15&28|E>>>8&3)>>0]|0;E=D+1|0;L=J;Q=O+4|0;d=21;continue}else if((d|0)==21){F=c[Q>>2]|0;a[E>>0]=a[y+(F>>>22&224|F>>>15&28|F>>>8&3)>>0]|0;F=E+1|0;N=L;S=Q+4|0;d=22;continue}else if((d|0)==22){G=c[S>>2]|0;a[F>>0]=a[y+(G>>>22&224|G>>>15&28|G>>>8&3)>>0]|0;G=F+1|0;P=N;U=S+4|0;d=23;continue}else if((d|0)==23){H=c[U>>2]|0;a[G>>0]=a[y+(H>>>22&224|H>>>15&28|H>>>8&3)>>0]|0;H=G+1|0;R=P;V=U+4|0;d=24;continue}else if((d|0)==24){I=c[V>>2]|0;a[H>>0]=a[y+(I>>>22&224|I>>>15&28|I>>>8&3)>>0]|0;I=H+1|0;T=R;W=V+4|0;d=25;continue}else if((d|0)==25){d=c[W>>2]|0;f=I+1|0;a[I>>0]=a[y+(d>>>22&224|d>>>15&28|d>>>8&3)>>0]|0;d=W+4|0;if((T|0)>1){z=T+-1|0;B=f;K=d;d=18;continue}else break}if(!b){d=28;break}else{e=d+(Y<<2)|0;d=f+X|0;b=b+-1|0}}if((d|0)!=26)if((d|0)==28)return}}function CY(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;f=c[e+24>>2]|0;h=c[e+28>>2]|0;B=c[e+16>>2]|0;C=c[e+36>>2]|0;g=c[e+44>>2]|0;y=a[g+9>>0]|0;z=y&255;if(!h)return;A=(f+7|0)/8|0;x=f&255;q=g+28|0;r=g+32|0;s=g+29|0;t=g+33|0;u=g+30|0;v=g+34|0;w=g+31|0;p=g+35|0;f=c[e>>2]|0;g=c[e+20>>2]|0;a:while(1){h=h+-1|0;switch(x&7){case 0:{o=A;e=4;break}case 7:{o=A;e=10;break}case 6:{o=A;e=16;break}case 5:{o=A;e=22;break}case 4:{o=A;e=28;break}case 3:{o=A;e=34;break}case 2:{o=A;e=40;break}case 1:{o=A;e=46;break}default:{e=52;break a}}while(1)if((e|0)==4){n=c[f>>2]|0;e=n>>>22;i=e&255;j=n>>>12;k=j&255;l=n>>>2;m=l&255;n=d[386921+(n>>>30)>>0]|0;switch(y<<24>>24){case 1:{a[g>>0]=k>>>(d[s>>0]|0)<<(d[t>>0]|0)|i>>>(d[q>>0]|0)<<(d[r>>0]|0)|m>>>(d[u>>0]|0)<<(d[v>>0]|0)|n>>>(d[w>>0]|0)<<(d[p>>0]|0);break}case 2:{b[g>>1]=k>>>(d[s>>0]|0)<<(d[t>>0]|0)|i>>>(d[q>>0]|0)<<(d[r>>0]|0)|m>>>(d[u>>0]|0)<<(d[v>>0]|0)|n>>>(d[w>>0]|0)<<(d[p>>0]|0);break}case 3:{a[g+((d[r>>0]|0)>>>3&255)>>0]=e;a[g+((d[t>>0]|0)>>>3&255)>>0]=j;a[g+((d[v>>0]|0)>>>3&255)>>0]=l;break}case 4:{c[g>>2]=k>>>(d[s>>0]|0)<<(d[t>>0]|0)|i>>>(d[q>>0]|0)<<(d[r>>0]|0)|m>>>(d[u>>0]|0)<<(d[v>>0]|0)|n>>>
function fr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0;m=d+28|0;if(c[m>>2]|0){o=d+16|0;p=d+24|0;r=b+48|0;l=0;do{k=c[o>>2]|0;i=c[p>>2]|0;g=c[k+(i<<4)+(l<<2)>>2]|0;do if(g|0){h=c[g>>2]|0;do if(!(h&4)){c[g>>2]=h|4;e=c[r>>2]|0;if(e>>>0>255){c[b>>2]=c[b>>2]|1;c[g>>2]=h|12;e=k;g=i;h=k;i=k;break}f=e+1|0;c[r>>2]=f;if((h&3)==1){fr(b,g);e=c[o>>2]|0;j=e;g=c[p>>2]|0;f=c[r>>2]|0}else{j=k;g=i;e=k}c[r>>2]=f+-1;h=j;i=j}else{e=k;g=i;h=k;i=k}while(0);f=h+(l<<4)|0;if(!(a[h+(g*20|0)+l>>0]&8)){if(!f)break;if(!(c[f>>2]&8))break;f=c[h+(l<<4)+8>>2]|0;if(!f)break;g=c[f>>2]|0;if(g&4|0)break;c[f>>2]=g|4;e=c[r>>2]|0;if(e>>>0>255){c[b>>2]=c[b>>2]|1;c[f>>2]=g|12;break}e=e+1|0;c[r>>2]=e;if((g&3)==1){fr(b,f);e=c[r>>2]|0}c[r>>2]=e+-1;break}g=c[f>>2]|0;do if((g|0)!=0?(n=c[g>>2]|0,(n&4|0)==0):0){c[g>>2]=n|4;f=c[r>>2]|0;if(f>>>0>255){c[b>>2]=c[b>>2]|1;c[g>>2]=n|12;e=i;break}f=f+1|0;c[r>>2]=f;if((n&3)==1){fr(b,g);e=c[o>>2]|0;f=c[r>>2]|0}c[r>>2]=f+-1}else e=i;while(0);f=c[e+(l<<4)+4>>2]|0;if(f|0?(q=c[f>>2]|0,(q&4|0)==0):0){c[f>>2]=q|4;e=c[r>>2]|0;if(e>>>0>255){c[b>>2]=c[b>>2]|1;c[f>>2]=q|12;break}e=e+1|0;c[r>>2]=e;if((q&3)==1){fr(b,f);e=c[r>>2]|0}c[r>>2]=e+-1}}while(0);l=l+1|0}while(l>>>0<(c[m>>2]|0)>>>0)}k=d+32|0;e=c[k>>2]|0;if(e|0){h=d+16|0;i=d+24|0;j=b+48|0;g=0;do{f=c[i>>2]|0;f=(c[h>>2]|0)+(f*21|0)+(0-f&7)|0;r=f+(g<<4)|0;do if((((r|0)!=0?(c[r>>2]&8|0)!=0:0)?(s=c[f+(g<<4)+8>>2]|0,(s|0)!=0):0)?(t=c[s>>2]|0,(t&4|0)==0):0){c[s>>2]=t|4;f=c[j>>2]|0;if(f>>>0>255){c[b>>2]=c[b>>2]|1;c[s>>2]=t|12;break}f=f+1|0;c[j>>2]=f;if((t&3)==1){fr(b,s);e=c[k>>2]|0;f=c[j>>2]|0}c[j>>2]=f+-1}while(0);g=g+1|0}while(g>>>0<e>>>0)}f=c[d+20>>2]|0;do if(f|0?(u=c[f>>2]|0,(u&4|0)==0):0){c[f>>2]=u|4;g=b+48|0;e=c[g>>2]|0;if(e>>>0>255){c[b>>2]=c[b>>2]|1;c[f>>2]=u|12;break}e=e+1|0;c[g>>2]=e;if((u&3)==1){fr(b,f);e=c[g>>2]|0}c[g>>2]=e+-1}while(0);f=c[d>>2]|0;if(f&16384|0)return;if(f&2048|0){h=d+40|0;f=c[h>>2]|0;do if(f|0?(x=c[f>>2]|0,(x&4|0)==0):0){c[f>>2]=x|4;g=b+48|0;e=c[g>>2]|0;if(e>>>0>255){c[b>>2]=c[b>>2]|1;c[f>>2]=x|12;break}e=e+1|0;c[g>>2]=e;if((x&3)==1){fr(b,f);e=c[g>>2]|0}c[g>>2]=e+-1}while(0);f=c[d+52>>2]|0;do if(f|0?(D=c[f>>2]|0,(D&4|0)==0):0){c[f>>2]=D|4;g=b+48|0;e=c[g>>2]|0;if(e>>>0>255){c[b>>2]=c[b>>2]|1;c[f>>2]=D|12;break}e=e+1|0;c[g>>2]=e;if((D&3)==1){fr(b,f);e=c[g>>2]|0}c[g>>2]=e+-1}while(0);f=c[d+56>>2]|0;do if(f|0?(G=c[f>>2]|0,(G&4|0)==0):0){c[f>>2]=G|4;g=b+48|0;e=c[g>>2]|0;if(e>>>0>255){c[b>>2]=c[b>>2]|1;c[f>>2]=G|12;break}e=e+1|0;c[g>>2]=e;if((G&3)==1){fr(b,f);e=c[g>>2]|0}c[g>>2]=e+-1}while(0);e=c[h>>2]|0;if(!e)return;f=e+24|0;h=d+44|0;e=c[h>>2]|0;if(f>>>0<e>>>0){i=b+48|0;do{do if(((f|0?c[f>>2]&8|0:0)?(J=c[f+8>>2]|0,J|0):0)?(K=c[J>>2]|0,(K&4|0)==0):0){c[J>>2]=K|4;g=c[i>>2]|0;if(g>>>0>255){c[b>>2]=c[b>>2]|1;c[J>>2]=K|12;break}g=g+1|0;c[i>>2]=g;if((K&3)==1){fr(b,J);g=c[i>>2]|0}c[i>>2]=g+-1}while(0);f=f+16|0}while(f>>>0<e>>>0);e=c[h>>2]|0}h=c[d+48>>2]|0;if(e>>>0>=h>>>0)return;i=b+48|0;do{g=c[e>>2]|0;do if(g|0?(P=c[g>>2]|0,(P&4|0)==0):0){c[g>>2]=P|4;f=c[i>>2]|0;if(f>>>0>255){c[b>>2]=c[b>>2]|1;c[g>>2]=P|12;break}f=f+1|0;c[i>>2]=f;if((P&3)==1){fr(b,g);f=c[i>>2]|0}c[i>>2]=f+-1}while(0);e=e+4|0}while(e>>>0<h>>>0);return}e=f>>>27;switch(e&31){case 16:{f=c[d+40>>2]|0;do if(f|0?(y=c[f>>2]|0,(y&4|0)==0):0){c[f>>2]=y|4;g=b+48|0;e=c[g>>2]|0;if(e>>>0>255){c[b>>2]=c[b>>2]|1;c[f>>2]=y|12;break}e=e+1|0;c[g>>2]=e;if((y&3)==1){fr(b,f);e=c[g>>2]|0}c[g>>2]=e+-1}while(0);f=c[d+44>>2]|0;if(!f)return;g=c[f>>2]|0;if(g&4|0)return;c[f>>2]=g|4;h=b+48|0;e=c[h>>2]|0;if(e>>>0>255){c[b>>2]=c[b>>2]|1;c[f>>2]=g|12;return}e=e+1|0;c[h>>2]=e;if((g&3)==1){fr(b,f);e=c[h>>2]|0}c[h>>2]=e+-1;return}case 15:{f=c[d+40>>2]|0;if(!f)return;g=c[f>>2]|0;if(g&4|0)return;c[f>>2]=g|4;h=b+48|0;e=c[h>>2]|0;if(e>>>0>255){c[b>>2]=c[b>>2]|1;c[f>>2]=g|12;return}e=e+1|0;c[h>>2]=e;if((g&3)==1){fr(b,f);e=c[h>>2]|0}c[h>>2]=e+-1;return}default:{if(f&8192|0){f=c[d+40>>2]|0;do if(f|0?(z=c[f>>2]|0,(z&4|0)==0):0){c[f>>2]=z|4;g=b+48|0;e=c[g>>2]|0;if(e>>>0>255){c[b>>2]=c[b>>2]|1;c[f>>2]=z|12;break}e=e+1|0;c[g
function T1(a,b,e,f,g,h,i,j,k){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;u=(j|0)/2|0;s=(k<<1)+j|0;if((i+1|0)>>>0<3|(j+1|0)>>>0<3)return;t=u<<1;r=h+(j<<2)+(k<<2)|0;p=(i|0)/2|0;while(1){q=e+t|0;m=u;n=e+j|0;o=r;k=f;i=g;l=h;while(1){m=m+-1|0;y=d[k>>0]|0;x=(c[a+(y<<2)>>2]|0)+256|0;v=d[i>>0]|0;y=(c[a+((y|256)<<2)>>2]|0)+1024+(c[a+((v|512)<<2)>>2]|0)|0;v=(c[a+((v|768)<<2)>>2]|0)+1792|0;w=d[e>>0]|0;c[l>>2]=c[b+(w+y<<2)>>2]|c[b+(w+x<<2)>>2]|c[b+(w+v<<2)>>2];w=d[e+1>>0]|0;c[l+4>>2]=c[b+(w+y<<2)>>2]|c[b+(w+x<<2)>>2]|c[b+(w+v<<2)>>2];w=d[n>>0]|0;c[o>>2]=c[b+(w+y<<2)>>2]|c[b+(w+x<<2)>>2]|c[b+(w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<<2)>>2]|c[b+(B+C<<2)>>2];c[l+(v<<2)>>2]=B;c[l+(z<<2)>>2]=B;c[l+4>>2]=B;c[l>>2]=B;B=l+8|0;D=d[i+1>>0]|0;C=c[b+(D+F<<2)>>2]|c[b+(D+E<<2)>>2]|c[b+(D+C<<2)>>2];c[B+(v<<2)>>2]=C;c[B+(z<<2)>>2]=C;c[l+12>>2]=C;c[B>>2]=C;if(!m)break;else{n=n+1|0;o=o+1|0;p=p+16|0;i=i+2|0;l=l+16|0;h=h+2|0}}f=f+A|0;g=g+A|0;h=s+(x<<2)|0;i=q+y|0;k=k+(x<<2)|0}if(!r)break;else{s=h+(t<<2)|0;k=k+(t<<2)|0;h=e+j|0;q=i}}return}function V1(a,e,f,g,h,i,j,k,l){a=a|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;s=(k|0)/2|0;if((j|0)==0|(k+1|0)>>>0<3)return;q=s<<2;r=s<<1;while(1){k=s;m=g;g=g+q|0;n=h;o=i;p=f;while(1){k=k+-1|0;w=d[m>>0]|0;v=(c[a+(w<<2)>>2]|0)+256|0;t=d[n>>0]|0;w=(c[a+((w|256)<<2)>>2]|0)+1024+(c[a+((t|512)<<2)>>2]|0)|0;t=(c[a+((t|768)<<2)>>2]|0)+1792|0;u=d[p>>0]|0;b[o>>1]=c[e+(u+w<<2)>>2]|c[e+(u+v<<2)>>2]|c[e+(u+t<<2)>>2];u=d[p+2>>0]|0;b[o+2>>1]=c[e+(u+w<<2)>>2]|c[e+(u+v<<2)>>2]|c[e+(u+t<<2)>>2];if(!k)break;else{m=m+4|0;n=n+4|0;o=o+4|0;p=p+4|0}}j=j+-1|0;if(!j)break;else{h=h+q|0;i=i+(r<<1)+(l<<1)|0;f=f+q|0}}return}function W1(a,b,e,f,g,h,i,j,k){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;q=((k|0)/2|0)+j|0;r=(j|0)/2|0;if((i|0)==0|(j+1|0)>>>0<3)return;o=r<<2;p=r<<1;n=e;while(1){k=r;j=f;f=f+o|0;e=g;l=h;m=n;while(1){k=k+-1|0;w=d[j>>0]|0;v=(c[a+(w<<2)>>2]|0)+256|0;t=d[e>>0]|0;w=(c[a+((w|256)<<2)>>2]|0)+1024+(c[a+((t|512)<<2)>>2]|0)|0;t=(c[a+((t|768)<<2)>>2]|0)+1792|0;s=d[m>>0]|0;s=c[b+(s+w<<2)>>2]|c[b+(s+v<<2)>>2]|c[b+(s+t<<2)>>2];c[l+(q<<2)>>2]=s;c[l>>2]=s;s=l+4|0;u=d[m+2>>0]|0;t=c[b+(u+w<<2)>>2]|c[b+(u+v<<2)>>2]|c[b+(u+t<<2)>>2];c[s+(q<<2)>>2]=t;c[s>>2]=t;if(!k)break;else{j=j+4|0;e=e+4|0;l=l+8|0;m=m+4|0}}i=i+-1|0;if(!i)break;else{g=g+o|0;h=h+(p<<2)+(q<<2)|0;n=n+o|0}}return}function X1(b,e,f,g,h,i,j,k,l){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;var m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;s=(k|0)/2|0;r=l*3|0;if((j|0)==0|(k+1|0)>>>0<3)return;p=s<<2;q=s*6|0;o=f;while(1){l=s;k=g;g=g+p|0;f=h;m=i;n=o;while(1){l=l+-1|0;w=d[k>>0]|0;v=(c[b+(w<<2)>>2]|0)+256|0;t=d[f>>0]|0;w=(c[b+((w|256)<<2)>>2]|0)+1024+(c[b+((t|512)<<2)>>2]|0)|0;t=(c[b+((t|768)<<2)>>2]|0)+1792|0;u=d[n>>0]|0;u=c[e+(u+w<<2)>>2]|c[e+(u+v<<2)>>2]|c[e+(u+t<<2)>>2];a[m>>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,aY,bY,cY,dY,eY,fY,gY,hY,iY,jY,kY,lY,mY,nY,oY,pY,qY,rY,sY,tY,uY,vY,KY,LY,MY,NY,IY,JY,gZ,hZ,iZ,jZ,cZ,dZ,eZ,fZ,qZ,rZ,sZ,tZ,mZ,nZ,oZ,pZ,km,lm,pm,xm,ym,bk,ek,Gk,al,ol,yl,Ol,Tl,Ul,Wl,mm,om,Bm,Dm,Em,Im,Jm,Pl,Ql,Bk,ij,Ln,Mn,Nn,Vn,oq,pq,qq,rq,sq,tq,uq,vq,wq,xq,yq,zq,Aq,Bq,Cq,Dq,E
// EMSCRIPTEN_END_ASM
(Module.asmGlobalArg,Module.asmLibraryArg,buffer);var ___divdi3=Module["___divdi3"]=asm["___divdi3"];var ___errno_location=Module["___errno_location"]=asm["___errno_location"];var ___muldi3=Module["___muldi3"]=asm["___muldi3"];var ___remdi3=Module["___remdi3"]=asm["___remdi3"];var ___udivdi3=Module["___udivdi3"]=asm["___udivdi3"];var ___uremdi3=Module["___uremdi3"]=asm["___uremdi3"];var _bitshift64Ashr=Module["_bitshift64Ashr"]=asm["_bitshift64Ashr"];var _bitshift64Lshr=Module["_bitshift64Lshr"]=asm["_bitshift64Lshr"];var _bitshift64Shl=Module["_bitshift64Shl"]=asm["_bitshift64Shl"];var _emscripten_GetProcAddress=Module["_emscripten_GetProcAddress"]=asm["_emscripten_GetProcAddress"];var _free=Module["_free"]=asm["_free"];var _htonl=Module["_htonl"]=asm["_htonl"];var _htons=Module["_htons"]=asm["_htons"];var _i64Add=Module["_i64Add"]=asm["_i64Add"];var _i64Subtract=Module["_i64Subtract"]=asm["_i64Subtract"];var _llvm_bswap_i16=Module["_llvm_bswap_i16"]=asm["_llvm_bswap_i16"];var _llvm_bswap_i32=Module["_llvm_bswap_i32"]=asm["_llvm_bswap_i32"];var _main=Module["_main"]=asm["_main"];var _malloc=Module["_malloc"]=asm["_malloc"];var _memcpy=Module["_memcpy"]=asm["_memcpy"];var _memmove=Module["_memmove"]=asm["_memmove"];var _memset=Module["_memset"]=asm["_memset"];var _ntohs=Module["_ntohs"]=asm["_ntohs"];var _realloc=Module["_realloc"]=asm["_realloc"];var _round=Module["_round"]=asm["_round"];var _saveSetjmp=Module["_saveSetjmp"]=asm["_saveSetjmp"];var _sbrk=Module["_sbrk"]=asm["_sbrk"];var _strstr=Module["_strstr"]=asm["_strstr"];var _testSetjmp=Module["_testSetjmp"]=asm["_testSetjmp"];var establishStackSpace=Module["establishStackSpace"]=asm["establishStackSpace"];var getTempRet0=Module["getTempRet0"]=asm["getTempRet0"];var runPostSets=Module["runPostSets"]=asm["runPostSets"];var setTempRet0=Module["setTempRet0"]=asm["setTempRet0"];var setThrew=Module["setThrew"]=asm["setThrew"];var stackAlloc=Module["stackAlloc"]=asm["stackAlloc"];var stackRestore=Module["stackRestore"]=asm["stackRestore"];var stackSave=Module["stackSave"]=asm["stackSave"];var dynCall_dd=Module["dynCall_dd"]=asm["dynCall_dd"];var dynCall_ddd=Module["dynCall_ddd"]=asm["dynCall_ddd"];var dynCall_di=Module["dynCall_di"]=asm["dynCall_di"];var dynCall_did=Module["dynCall_did"]=asm["dynCall_did"];var dynCall_i=Module["dynCall_i"]=asm["dynCall_i"];var dynCall_ii=Module["dynCall_ii"]=asm["dynCall_ii"];var dynCall_iii=Module["dynCall_iii"]=asm["dynCall_iii"];var dynCall_iiii=Module["dynCall_iiii"]=asm["dynCall_iiii"];var dynCall_iiiii=Module["dynCall_iiiii"]=asm["dynCall_iiiii"];var dynCall_iiiiidii=Module["dynCall_iiiiidii"]=asm["dynCall_iiiiidii"];var dynCall_iiiiii=Module["dynCall_iiiiii"]=asm["dynCall_iiiiii"];var dynCall_iiiiiii=Module["dynCall_iiiiiii"]=asm["dynCall_iiiiiii"];var dynCall_iiiiiiii=Module["dynCall_iiiiiiii"]=asm["dynCall_iiiiiiii"];var dynCall_iiiiiiiii=Module["dynCall_iiiiiiiii"]=asm["dynCall_iiiiiiiii"];var dynCall_iiiiiiiiii=Module["dynCall_iiiiiiiiii"]=asm["dynCall_iiiiiiiiii"];var dynCall_v=Module["dynCall_v"]=asm["dynCall_v"];var dynCall_vd=Module["dynCall_vd"]=asm["dynCall_vd"];var dynCall_vdd=Module["dynCall_vdd"]=asm["dynCall_vdd"];var dynCall_vdddd=Module["dynCall_vdddd"]=asm["dynCall_vdddd"];var dynCall_vdddddd=Module["dynCall_vdddddd"]=asm["dynCall_vdddddd"];var dynCall_vdi=Module["dynCall_vdi"]=asm["dynCall_vdi"];var dynCall_vi=Module["dynCall_vi"]=asm["dynCall_vi"];var dynCall_vid=Module["dynCall_vid"]=asm["dynCall_vid"];var dynCall_vidd=Module["dynCall_vidd"]=asm["dynCall_vidd"];var dynCall_viddd=Module["dynCall_viddd"]=asm["dynCall_viddd"];var dynCall_vidddd=Module["dynCall_vidddd"]=asm["dynCall_vidddd"];var dynCall_viddddddddddddii=Module["dynCall_viddddddddddddii"]=asm["dynCall_viddddddddddddii"];var dynCall_vii=Module["dynCall_vii"]=asm["dynCall_vii"];var dynCall_viid=Module["dynCall_viid"]=asm["dynCall_viid"];var dynCall_viiddddddi=Module["dynCall_viiddddddi"]=asm["dynCall_viiddddddi"];var dynCall_viidddddi=Module["dynCall_viidddddi"]=asm["dynCall_viidddddi"];var dynCall_viiddddi=Module["dynCall_viiddddi"]=asm["dynCall_vii
</script>
</body>
</html>