You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
110 lines
3.6 MiB
110 lines
3.6 MiB
9 years ago
|
(function(global) {
|
||
|
var Module = function(Module) {
|
||
|
Module = Module || {};
|
||
|
|
||
|
var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=typeof window==="object";var ENVIRONMENT_IS_WORKER=typeof importScripts==="function";var ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;var ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;if(ENVIRONMENT_IS_NODE){if(!Module["print"])Module["print"]=function print(x){process["stdout"].write(x+"\n")};if(!Module["printErr"])Module["printErr"]=function printErr(x){process["stderr"].write(x+"\n")};var nodeFS=require("fs");var nodePath=require("path");Module["read"]=function read(filename,binary){filename=nodePath["normalize"](filename);var ret=nodeFS["readFileSync"](filename);if(!ret&&filename!=nodePath["resolve"](filename)){filename=path.join(__dirname,"..","src",filename);ret=nodeFS["readFileSync"](filename)}if(ret&&!binary)ret=ret.toString();return ret};Module["readBinary"]=function readBinary(filename){var ret=Module["read"](filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};Module["load"]=function load(f){globalEval(read(f))};if(!Module["thisProgram"]){if(process["argv"].length>1){Module["thisProgram"]=process["argv"][1].replace(/\\/g,"/")}else{Module["thisProgram"]="unknown-program"}}Module["arguments"]=process["argv"].slice(2);if(typeof module!=="undefined"){module["exports"]=Module}process["on"]("uncaughtException",(function(ex){if(!(ex instanceof ExitStatus)){throw ex}}));Module["inspect"]=(function(){return"[Emscripten Module object]"})}else if(ENVIRONMENT_IS_SHELL){if(!Module["print"])Module["print"]=print;if(typeof printErr!="undefined")Module["printErr"]=printErr;if(typeof read!="undefined"){Module["read"]=read}else{Module["read"]=function read(){throw"no read() available (jsc?)"}}Module["readBinary"]=function readBinary(f){if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}var data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){Module["arguments"]=scriptArgs}else if(typeof arguments!="undefined"){Module["arguments"]=arguments}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){Module["read"]=function read(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};if(typeof arguments!="undefined"){Module["arguments"]=arguments}if(typeof console!=="undefined"){if(!Module["print"])Module["print"]=function print(x){console.log(x)};if(!Module["printErr"])Module["printErr"]=function printErr(x){console.log(x)}}else{var TRY_USE_DUMP=false;if(!Module["print"])Module["print"]=TRY_USE_DUMP&&typeof dump!=="undefined"?(function(x){dump(x)}):(function(x){})}if(ENVIRONMENT_IS_WORKER){Module["load"]=importScripts}if(typeof Module["setWindowTitle"]==="undefined"){Module["setWindowTitle"]=(function(title){document.title=title})}}else{throw"Unknown runtime environment. Where are we?"}function globalEval(x){eval.call(null,x)}if(!Module["load"]&&Module["read"]){Module["load"]=function load(f){globalEval(Module["read"](f))}}if(!Module["print"]){Module["print"]=(function(){})}if(!Module["printErr"]){Module["printErr"]=Module["print"]}if(!Module["arguments"]){Module["arguments"]=[]}if(!Module["thisProgram"]){Module["thisProgram"]="./this.program"}Module.print=Module["print"];Module.printErr=Module["printErr"];Module["preRun"]=[];Module["postRun"]=[];for(var key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}var Runtime={setTempRet0:(function(value){tempRet0=value}),getTempRet0:(function(){return tempRet0}),stackSave:(function(){return STACKTOP}),stackRestore:(function(stackTop){STACKTOP=stackTop}),getNativeTypeSize:(function(type){switch(type){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:{if(type[type.length-1]==="*"){return Runtime.QUANTUM_SIZ
|
||
|
var asm=(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.STACKTOP|0;var j=env.STACK_MAX|0;var k=env.tempDoublePtr|0;var l=env.ABORT|0;var m=env.cttz_i8|0;var n=0;var o=0;var p=0;var q=0;var r=global.NaN,s=global.Infinity;var t=0,u=0,v=0,w=0,x=0.0,y=0,z=0,A=0,B=0.0;var C=0;var D=0;var E=0;var F=0;var G=0;var H=0;var I=0;var J=0;var K=0;var L=0;var M=global.Math.floor;var N=global.Math.abs;var O=global.Math.sqrt;var P=global.Math.pow;var Q=global.Math.cos;var R=global.Math.sin;var S=global.Math.tan;var T=global.Math.acos;var U=global.Math.asin;var V=global.Math.atan;var W=global.Math.atan2;var X=global.Math.exp;var Y=global.Math.log;var Z=global.Math.ceil;var _=global.Math.imul;var $=global.Math.min;var aa=global.Math.clz32;var ba=env.abort;var ca=env.assert;var da=env.invoke_viiiii;var ea=env.invoke_vi;var fa=env.invoke_iiidd;var ga=env.invoke_vii;var ha=env.invoke_iiiiiiiiiii;var ia=env.invoke_ii;var ja=env.invoke_iiiiii;var ka=env.invoke_iiii;var la=env.invoke_viiiiii;var ma=env.invoke_di;var na=env.invoke_iiiiiii;var oa=env.invoke_dddd;var pa=env.invoke_viiiiiii;var qa=env.invoke_viiiiiiiii;var ra=env.invoke_iii;var sa=env.invoke_d;var ta=env.invoke_i;var ua=env.invoke_viiiddi;var va=env.invoke_iiiii;var wa=env.invoke_viii;var xa=env.invoke_v;var ya=env.invoke_viiii;var za=env._pthread_cleanup_pop;var Aa=env._fabs;var Ba=env._sin;var Ca=env._exp;var Da=env._llvm_pow_f64;var Ea=env.___syscall265;var Fa=env.___syscall146;var Ga=env._abort;var Ha=env._llvm_fabs_f64;var Ia=env._atan2;var Ja=env._emscripten_set_main_loop_timing;var Ka=env.___syscall20;var La=env.___assert_fail;var Ma=env._floor;var Na=env._asin;var Oa=env.___buildEnvironment;var Pa=env._longjmp;var Qa=env._cos;var Ra=env._times;var Sa=env.___setErrNo;var Ta=env._sbrk;var Ua=env.___syscall192;var Va=env.___syscall197;var Wa=env.___syscall195;var Xa=env._sysconf;var Ya=env._ceil;var Za=env.___syscall221;var _a=env._emscripten_memcpy_big;var $a=env.___syscall91;var ab=env._atanf;var bb=env._atan;var cb=env._pthread_self;var db=env._acos;var eb=env._getenv;var fb=env._sqrt;var gb=env.___syscall33;var hb=env.___syscall54;var ib=env.___unlock;var jb=env._emscripten_set_main_loop;var kb=env.___syscall10;var lb=env.___syscall5;var mb=env._tan;var nb=env.__exit;var ob=env.___lock;var pb=env.___syscall6;var qb=env._pthread_cleanup_push;var rb=env._setenv;var sb=env._time;var tb=env._emscripten_longjmp;var ub=env._abs;var vb=env.___syscall140;var wb=env._exit;var xb=env.___syscall145;var yb=env._emscripten_asm_const_1;var zb=0.0;
|
||
|
// EMSCRIPTEN_START_FUNCS
|
||
|
function qz(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;f=e+16|0;g=e+12|0;h=e+8|0;j=e+4|0;k=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;d=(c[(c[(c[g>>2]|0)+8>>2]|0)+112>>2]|0)+4|0;c[d>>2]=c[d>>2]|1;c[j>>2]=TA(c[f>>2]|0,c[g>>2]|0)|0;while(1){if(!(c[j>>2]|0))break;d=c[j>>2]|0;c[k>>2]=c[((c[c[j>>2]>>2]&3|0)==2?d:d+-32|0)+28>>2];if((c[k>>2]|0)==(c[g>>2]|0)){d=c[j>>2]|0;c[k>>2]=c[((c[c[j>>2]>>2]&3|0)==3?d:d+32|0)+28>>2]}if(!(c[(c[(c[(c[k>>2]|0)+8>>2]|0)+112>>2]|0)+4>>2]&1)){YA(c[h>>2]|0,c[j>>2]|0,1)|0;c[(c[(c[(c[k>>2]|0)+8>>2]|0)+112>>2]|0)+16>>2]=c[g>>2];qz(c[f>>2]|0,c[k>>2]|0,c[h>>2]|0)}c[j>>2]=UA(c[f>>2]|0,c[j>>2]|0,c[g>>2]|0)|0}i=e;return}function rz(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;d=i;i=i+176|0;e=d+8|0;f=d;g=d+44|0;h=d+40|0;j=d+36|0;k=d+32|0;l=d+28|0;m=d+24|0;n=d+20|0;o=d+16|0;p=d+12|0;q=d+48|0;c[g>>2]=a;c[h>>2]=b;b=c[12966]|0;c[12966]=b+1;c[f>>2]=b;k3(q,133960,f)|0;c[j>>2]=FD(c[g>>2]|0,q,1)|0;MC(c[j>>2]|0,175049,280,1)|0;f=c[12966]|0;c[12966]=f+1;c[e>>2]=f;k3(q,133960,e)|0;c[e>>2]=c[(c[g>>2]|0)+12>>2];c[k>>2]=gB(q,e,0)|0;c[l>>2]=$B(c[g>>2]|0)|0;while(1){if(!(c[l>>2]|0))break;eC(c[j>>2]|0,c[l>>2]|0,1)|0;e=c[k>>2]|0;c[m>>2]=fC(e,wB(c[l>>2]|0)|0,1)|0;MC(c[m>>2]|0,175026,304,1)|0;c[(c[(c[(c[l>>2]|0)+8>>2]|0)+112>>2]|0)+16>>2]=c[m>>2];c[l>>2]=aC(c[g>>2]|0,c[l>>2]|0)|0}c[l>>2]=$B(c[g>>2]|0)|0;while(1){if(!(c[l>>2]|0))break;c[m>>2]=c[(c[(c[(c[l>>2]|0)+8>>2]|0)+112>>2]|0)+16>>2];c[o>>2]=OA(c[g>>2]|0,c[l>>2]|0)|0;while(1){if(!(c[o>>2]|0))break;YA(c[j>>2]|0,c[o>>2]|0,1)|0;e=c[o>>2]|0;c[n>>2]=c[(c[(c[(c[((c[c[o>>2]>>2]&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)|0;c[c[d>>2]>>2]=a;i=b;return}function SN(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0,n=0;f=i;i=i+32|0;g=f+8|0;h=f;j=f+28|0;k=f+24|0;l=f+20|0;m=f+16|0;n=f+12|0;c[j>>2]=b;c[k>>2]=e;c[l>>2]=0;c[m>>2]=0;if(!(c[(c[k>>2]|0)+4>>2]|0))La(144274,144285,202,144296);c[n>>2]=c[(c[k>>2]|0)+4>>2];if(!(c[c[n>>2]>>2]|0))La(144310,144285,205,144296);if(!(c[(c[n>>2]|0)+8>>2]|0)){e=UN(c[c[n>>2]>>2]|0)|0;c[(c[n>>2]|0)+8>>2]=e}if((d[138998]|0|0)!=0?(GH(c[c[n>>2]>>2]|0)|0)!=0:0)c[l>>2]=m;if(!((rS(c[j>>2]|0,c[k>>2]|0,c[l>>2]|0)|0)<<24>>24))VN(c[k>>2]|0,c[l>>2]|0);do if(c[l>>2]|0){j=c[24742]|0;e=c[c[n>>2]>>2]|0;if(c[m>>2]|0){b=c[m>>2]|0;c[h>>2]=e;c[h+4>>2]=b;Y2(j,144321,h)|0;break}else{c[g>>2]=e;Y2(j,144353,g)|0;break}}while(0);g=(c[k>>2]|0)+32|0;c[a>>2]=c[g>>2];c[a+4>>2]=c[g+4>>2];c[a+8>>2]=c[g+8>>2];c[a+12>>2]=c[g+12>>2];i=f;return}function TN(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;c[(c[d>>2]|0)+108>>2]=0;c[(c[d>>2]|0)+108+4>>2]=32;c[(c[d>>2]|0)+108+8>>2]=-1;c[(c[d>>2]|0)+108+12>>2]=37;c[(c[d>>2]|0)+108+16>>2]=60;c[(c[d>>2]|0)+108+20>>2]=55;c[(c[d>>2]|0)+108+24>>2]=0;c[(c[d>>2]|0)+108+28>>2]=0;c[(c[d>>2]|0)+108+32>>2]=0;a=Nz((c[d>>2]|0)+108|0,c[12989]|0)|0;c[(c[d>>2]|0)+144>>2]=a;i=b;return c[(c[d>>2]|0)+144>>2]|0}function UN(a){a=a|0;var b=0,d=0,e=0;b=i;i=i+16|0;d=b;c[d>>2]=a;if((c[14384]|0)!=0?(F3(c[14384]|0,c[d>>2]|0)|0)==0:0){e=c[14708]|0;i=b;return e|0}c[14384]=c[d>>2];c[14708]=v3(57536,57572,35,36,95)|0;e=c[14708]|0;i=b;return e|0}function VN(b,e){b=b|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;f=i;i=i+48|0;g=f+28|0;j=f+24|0;k=f+20|0;l=f;m=f+32|0;n=f+16|0;o=f+12|0;p=f+8|0;c[g>>2]=b;c[j>>2]=e;c[p>>2]=c[c[(c[g>>2]|0)+4>>2]>>2];h[l>>3]=+h[(c[(c[g>>2]|0)+4>>2]|0)+16>>3];h[(c[g>>2]|0)+32>>3]=0.0;h[(c[g>>2]|0)+32+8>>3]=+h[l>>3]*1.2;h[(c[g>>2]|0)+16>>3]=0.0;h[(c[g>>2]|0)+24>>3]=+h[l>>3]*.1;c[(c[g>>2]|0)+8>>2]=0;c[(c[g>>2]|0)+12>>2]=0;do if(O3(c[p>>2]|0,144387,4)|0){if((O3(c[p>>2]|0,144411,5)|0)!=0?(O3(c[p>>2]|0,144417,9)|0)!=0:0){c[o>>2]=144444;c[k>>2]=40856;break}c[o>>2]=144427;c[k>>2]=38808}else{c[o>>2]=144392;c[k>>2]=36760}while(0);if(c[j>>2]|0)c[c[j>>2]>>2]=c[o>>2];o=c[c[g>>2]>>2]|0;c[n>>2]=o;if(!o){i=f;return}while(1){o=c[n>>2]|0;c[n>>2]=o+1;j=a[o>>0]|0;a[m>>0]=j;if(!(j<<24>>24))break;j=(c[g>>2]|0)+32|0;h[j>>3]=+h[j>>3]+ +h[(c[k>>2]|0)+((d[m>>0]|0)<<3)>>3]}m=(c[g>>2]|0)+32|0;h[m>>3]=+h[m>>3]*+h[l>>3];i=f;return}function WN(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0;e=i;i=i+32|0;f=e+12|0;g=e+4|0;j=e;c[e+16>>2]=a;c[f>>2]=b;c[e+8>>2]=d;c[g>>2]=c[f>>2];c[j>>2]=P4(1,32)|0;if(c[c[g>>2]>>2]|0){f=M3(c[c[g>>2]>>2]|0)|0;c[c[j>>2]>>2]=f}if(c[(c[g>>2]|0)+4>>2]|0){f=M3(c[(c[g>>2]|0)+4>>2]|0)|0;c[(c[j>>2]|0)+4>>2]=f}f=(c[j>>2]|0)+24|0;c[f>>2]=c[f>>2]&-128|c[(c[g>>2]|0)+24>>2]&127;h[(c[j>>2]|0)+16>>3]=+h[(c[g>>2]|0)+16>>3];c[(c[j>>2]|0)+8>>2]=c[(c[g>>2]|0)+8>>2];i=e;return c[j>>2]|0}function XN(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;f=e+8|0;g=e;c[e+12>>2]=a;c[f>>2]=b;c[e+4>>2]=d;c[g>>2]=c[f>>2];if(c[c[g>>2]>>2]|0)O4(c[c[g>>2]>>2]|0);if(!(c[(c[g>>2]|0)+4>>2]|0)){h=c[g>>2]|0;O4(h);i=e;return}O4(c[(c[g>>2]|0)+4>>2]|0);h=c[g>>2]|0;O4(h);i=e;return}function YN(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0;f=i;i=i+32|0;g=f+28|0;j=f+20|0;k=f+16|0;l=f+8|0;m=f+4|0;n=f;c[f+24>>2
|
||
|
function Wb(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+15&-16;return b|0}function Xb(){return i|0}function Yb(a){a=a|0;i=a}function Zb(a,b){a=a|0;b=b|0;i=a;j=b}function _b(a,b){a=a|0;b=b|0;if(!n){n=a;o=b}}function $b(b){b=b|0;a[k>>0]=a[b>>0];a[k+1>>0]=a[b+1>>0];a[k+2>>0]=a[b+2>>0];a[k+3>>0]=a[b+3>>0]}function ac(b){b=b|0;a[k>>0]=a[b>>0];a[k+1>>0]=a[b+1>>0];a[k+2>>0]=a[b+2>>0];a[k+3>>0]=a[b+3>>0];a[k+4>>0]=a[b+4>>0];a[k+5>>0]=a[b+5>>0];a[k+6>>0]=a[b+6>>0];a[k+7>>0]=a[b+7>>0]}function bc(a){a=a|0;C=a}function cc(){return C|0}function dc(a){a=a|0;yb(0,a|0)|0;return 0}function ec(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0,l=0;e=i;i=i+16|0;f=e+4|0;g=e;if(!(c[11034]|0)){h=$F()|0;c[11034]=h;dG(h,44140);dG(c[11034]|0,50084);dG(c[11034]|0,50544)}Zz(1)|0;Yz(18)|0;eD(1);h=PB(a)|0;if(!h){j=0;i=e;return j|0}else{k=h;l=0}while(1){if(!l){aG(c[11034]|0,k,d)|0;cG(c[11034]|0,k,b,f,g)|0;gF(c[11034]|0,k)|0}jB(k)|0;k=PB(178518)|0;h=c[f>>2]|0;if(!k){j=h;break}else l=h}i=e;return j|0}function fc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0;g=i;i=i+1072|0;j=g;k=g+24|0;l=g+20|0;m=g+16|0;n=g+32|0;c[k>>2]=b;c[l>>2]=d;a[g+1056>>0]=f;c[m>>2]=c[(c[(c[k>>2]|0)+16>>2]|0)+12>>2];gA(c[44788+(c[m>>2]<<2)>>2]|0,104802)|0;f=c[44788+(c[m>>2]<<2)>>2]|0;c[j>>2]=c[e>>2];c[j+4>>2]=c[e+4>>2];c[j+8>>2]=c[e+8>>2];c[j+12>>2]=c[e+12>>2];gc(f,j);hc(n,+h[e+16>>3]-+h[e>>3]);gA(c[44788+(c[m>>2]<<2)>>2]|0,n)|0;hc(n,+h[e+16+8>>3]-+h[e+8>>3]);gA(c[44788+(c[m>>2]<<2)>>2]|0,n)|0;ic(c[k>>2]|0,178518,c[(c[l>>2]|0)+8>>2]|0);i=g;return}function gc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+1040|0;e=d;f=d+8|0;c[e>>2]=a;hc(f,+h[b>>3]);gA(c[e>>2]|0,f)|0;hc(f,+GK(+h[b+8>>3]));gA(c[e>>2]|0,f)|0;i=d;return}function hc(a,b){a=a|0;b=+b;var d=0,e=0,f=0,g=0;d=i;i=i+32|0;e=d+8|0;f=d+16|0;g=d;c[f>>2]=a;h[g>>3]=b;a=c[f>>2]|0;h[e>>3]=+h[g>>3];k3(a,105074,e)|0;xc(c[f>>2]|0,1);i=d;return}function ic(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;f=e+12|0;g=e+8|0;h=e+4|0;j=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;c[j>>2]=c[(c[(c[f>>2]|0)+16>>2]|0)+12>>2];Cc(c[44788+(c[j>>2]<<2)>>2]|0,c[g>>2]|0,c[h>>2]|0);i=e;return}function jc(a){a=a|0;var b=0,d=0,f=0,g=0,h=0;b=i;i=i+16|0;d=b+12|0;f=b+8|0;g=b+4|0;h=b;c[d>>2]=a;c[h>>2]=c[(c[(c[d>>2]|0)+16>>2]|0)+8>>2];switch(c[(c[d>>2]|0)+60+4>>2]|0){case 0:{JK(c[h>>2]|0);i=b;return}case 1:{if(!((e[(c[(c[h>>2]|0)+8>>2]|0)+136>>1]|0)&1)){i=b;return}GO(c[h>>2]|0);i=b;return}case 4:case 5:case 6:{IK(c[h>>2]|0,g,f);Ec(c[h>>2]|0,c[g>>2]|0,c[f>>2]|0,c[(c[d>>2]|0)+60+4>>2]|0);i=b;return}default:{i=b;return}}}function kc(a){a=a|0;var b=0,d=0,e=0,f=0;b=i;i=i+16|0;d=b+8|0;e=b+4|0;f=b;c[d>>2]=a;c[e>>2]=c[(c[(c[d>>2]|0)+16>>2]|0)+8>>2];if(!(c[11225]|0)){c[11225]=c[13099];c[11226]=57;c[11227]=19}c[f>>2]=c[(c[(c[e>>2]|0)+52>>2]|0)+8>>2];c[(c[(c[e>>2]|0)+52>>2]|0)+8>>2]=44900;switch(c[(c[d>>2]|0)+60+4>>2]|0){case 2:{HK(c[d>>2]|0,c[e>>2]|0,c[d>>2]|0,0);break}case 3:{HK(c[d>>2]|0,c[e>>2]|0,c[d>>2]|0,1);break}case 1:case 0:{if(!(c[(c[d>>2]|0)+152>>2]&134217728))VD(c[e>>2]|0,c[d>>2]|0)|0;break}case 6:case 5:case 4:{Dc(c[e>>2]|0);if(!(c[(c[d>>2]|0)+152>>2]&134217728))VD(c[e>>2]|0,c[d>>2]|0)|0;break}default:{}}c[(c[(c[e>>2]|0)+52>>2]|0)+8>>2]=c[f>>2];i=b;return}function lc(b){b=b|0;var d=0,e=0,f=0,g=0,j=0;d=i;i=i+16|0;e=d+4|0;f=d;c[e>>2]=b;c[f>>2]=c[(c[(c[e>>2]|0)+16>>2]|0)+8>>2];e=c[f>>2]|0;b=c[c[11209]>>2]|0;if((c[(c[11198]|0)+4>>2]|0)>>>0>=(c[(c[11198]|0)+8>>2]|0)>>>0)eA(c[11198]|0,1)|0;g=(c[11198]|0)+4|0;j=c[g>>2]|0;c[g>>2]=j+1;a[j>>0]=0;j=c[c[11198]>>2]|0;c[(c[11198]|0)+4>>2]=j;BA(e,b,j)|0;if(!(c[(c[(c[f>>2]|0)+8>>2]|0)+12>>2]|0)){h[24]=1.0;h[28]=1.0;c[11214]=0;c[11218]=0;i=d;return}j=c[f>>2]|0;f=c[(c[11209]|0)+4>>2]|0;if((c[(c[11202]|0)+4>>2]|0)>>>0>=(c[(c[11202]|0)+8>>2]|0)>>>0)eA(c[11202]|0,1)|0;b=(c[11202]|0)+4|0;e=c[b>>2]|0;c[b>>2]=e+1;a[e>>0]=0;e=c[c[11202]>>2]|0;c[(c[11202]|0)+4>>2]=e;BA(j,f,e)|0;h[24]=1.0;h[28]=1.0;c[11214]=0;c[11218]=0;i=d;return}function mc(b){b=b|0;var d=0,e=0,f=0,g=0,j=0;d=i;i=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|0)+1}i=l;return}function Rp(a,b,d,e){a=a|0;b=b|0;d=d|0;e=+e;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;f=i;i=i+96|0;g=f+80|0;j=f+76|0;k=f+72|0;l=f+56|0;m=f+68|0;n=f+64|0;o=f+40|0;p=f+24|0;q=f+16|0;r=f+8|0;s=f;c[g>>2]=a;c[j>>2]=b;c[k>>2]=d;h[l>>3]=e;h[s>>3]=.017453277777777776;c[m>>2]=0;while(1){if((c[m>>2]|0)>=(c[j>>2]|0))break;h[p+(c[m>>2]<<3)>>3]=0.0;c[m>>2]=(c[m>>2]|0)+1}c[m>>2]=0;while(1){if((c[m>>2]|0)>=(c[g>>2]|0))break;c[n>>2]=0;while(1){t=c[m>>2]|0;if((c[n>>2]|0)>=(c[j>>2]|0))break;d=_(t,c[j>>2]|0)|0;b=p+(c[n>>2]<<3)|0;h[b>>3]=+h[b>>3]+ +h[(c[k>>2]|0)+(d+(c[n>>2]|0)<<3)>>3];c[n>>2]=(c[n>>2]|0)+1}c[m>>2]=t+1}c[m>>2]=0;while(1){if((c[m>>2]|0)>=(c[j>>2]|0))break;t=p+(c[m>>2]<<3)|0;h[t>>3]=+h[t>>3]/+(c[g>>2]|0);c[m>>2]=(c[m>>2]|0)+1}c[m>>2]=0;while(1){if((c[m>>2]|0)>=(c[g>>2]|0))break;c[n>>2]=0;while(1){if((c[n>>2]|0)>=(c[j>>2]|0))break;t=_(c[j>>2]|0,c[m>>2]|0)|0;d=_(c[j>>2]|0,c[m>>2]
|
||
|
function eH(a,b,d,e,f,g){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;j=i;i=i+112|0;k=j+108|0;l=j+104|0;m=j+100|0;n=j+96|0;o=j+92|0;p=j+88|0;q=j+80|0;r=j+16|0;s=j+8|0;t=j;c[k>>2]=a;c[l>>2]=b;c[m>>2]=d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80|0;M=m+76|0;N=m+72|0;O=m+68|0;P=m+64|0;Q=m+60|0;R=m+56|0;S=m+52|0;T=m+48|0;U=m+44|0;V=m+40|0;W=m+36|0;X=m+32|0;Y=m+28|0;Z=m+164|0;_=m+24|0;$=m+20|0;aa=m+16|0;ba=m+12|0;ca=m+8|0;da=m+4|0;ea=m;c[o>>2]=b;c[p>>2]=e;c[q>>2]=f;c[r>>2]=g;c[s>>2]=h;c[t>>2]=j;c[u>>2]=k;a[v>>0]=l;c[w>>2]=c[(c[o>>2]|0)+356>>2];l=c[o>>2]|0;if((c[p>>2]|0)==(c[(c[o>>2]|0)+144>>2]|0)){c[x>>2]=l+288;c[y>>2]=(c[o>>2]|0)+292}else{c[x>>2]=c[l+300>>2];c[y>>2]=(c[(c[o>>2]|0)+300>>2]|0)+4}a:while(1){a[B>>0]=1;c[c[x>>2]>>2]=c[q>>2];c[c[y>>2]>>2]=c[t>>2];b:do if((c[s>>2]|0)<=0){if((d[v>>0]|0)!=0&(c[s>>2]|0)!=0){fa=6;break a}switch(c[s>>2]|0){case 0:{fa=8;break a;break}case -1:{fa=9;break a;break}case -2:{fa=10;break a;break}case -4:{fa=12;break a;break}case -15:{c[s>>2]=0-(c[s>>2]|0);break b;break}default:{c[s>>2]=0-(c[s>>2]|0);c[t>>2]=c[r>>2];break b}}}while(0);c[A>>2]=Gb[c[(c[o>>2]|0)+256>>2]&63]((c[o>>2]|0)+256|0,c[s>>2]|0,c[q>>2]|0,c[t>>2]|0,c[p>>2]|0)|0;c:do switch(c[A>>2]|0){case 2:{fa=74;break a;break}case -1:{fa=231;break a;break}case 1:{c[C>>2]=$Y(c[o>>2]|0,0,c[q>>2]|0,c[t>>2]|0)|0;if(c[C>>2]|0){fa=24;break a}c[p>>2]=c[(c[o>>2]|0)+144>>2];a[B>>0]=0;break}case 4:{if(c[(c[o>>2]|0)+84>>2]|0){l=aZ((c[o>>2]|0)+416|0,c[p>>2]|0,c[q>>2]|0,c[t>>2]|0)|0;c[(c[o>>2]|0)+320>>2]=l;if(!(c[(c[o>>2]|0)+320>>2]|0)){fa=28;break a}c[(c[o>>2]|0)+416+16>>2]=c[(c[o>>2]|0)+416+12>>2];c[(c[o>>2]|0)+328>>2]=0;a[B>>0]=0}c[(c[o>>2]|0)+324>>2]=0;break}case 7:{if(c[(c[o>>2]|0)+84>>2]|0){Ab[c[(c[o>>2]|0)+84>>2]&31](c[(c[o>>2]|0)+4>>2]|0,c[(c[o>>2]|0)+320>>2]|0,c[(c[o>>2]|0)+324>>2]|0,c[(c[o>>2]|0)+328>>2]|0,1);c[(c[o>>2]|0)+320>>2]=0;KY((c[o>>2]|0)+416|0);a[B>>0]=0}break}case 57:{c[D>>2]=$Y(c[o>>2]|0,1,c[q>>2]|0,c[t>>2]|0)|0;if(c[D>>2]|0){fa=34;break a}c[p>>2]=c[(c[o>>2]|0)+144>>2];a[B>>0]=0;break}case 6:{a[(c[o>>2]|0)+489>>0]=0;l=bZ(c[o>>2]|0,(c[w>>2]|0)+132|0,112589,36)|0;c[(c[o>>2]|0)+316>>2]=l;if(!(c[(c[o>>2]|0)+316>>2]|0)){fa=37;break a}a[(c[w>>2]|0)+129>>0]=1;if(c[(c[o>>2]|0)+84>>2]|0){if(!(Sb[c[(c[p>>2]|0)+56>>2]&127](c[p>>2]|0,c[q>>2]|0,c[t>>2]|0,c[x>>2]|0)|0)){fa=40;break a}c[E>>2]=aZ((c[o>>2]|0)+416|0,c[p>>2]|0,(c[q>>2]|0)+(c[(c[p>>2]|0)+68>>2]|0)|0,(c[t>>2]|0)+(0-(c[(c[p>>2]|0)+68>>2]|0))|0)|0;if(!(c[E>>2]|0)){fa=42;break a}cZ(c[E>>2]|0);c[(c[o>>2]|0)+416+16>>2]=c[(c[o>>2]|0)+416+12>>2];c[(c[o>>2]|0)+328>>2]=c[E>>2];a[B>>0]=0;fa=46}else fa=44;break}case 14:{fa=44;break}case 8:{if(c[(c[o>>2]|0)+320>>2]|0){Ab[c[(c[o>>2]|0)+84>>2]&31](c[(c[o>>2]|0)+4>>2]|0,c[(c[o>>2]|0)+320>>2]|0,c[(c[o>>2]|0)+324>>2]|0,c[(c[o>>2]|0)+328>>2]|0,0);KY((c[o>>2]|0)+416|0);a[B>>0]=0}if(!((c[(c[o>>2]|0)+324>>2]|0)==0?(d[(c[o>>2]|0)+489>>0]|0)==0:0)){a[G>>0]=a[(c[w>>2]|0)+129>>0]|0;a[(c[w>>2]|0)+129>>0]=1;do if((c[(c[o>>2]|0)+492>>2]|0)!=0?(c[(c[o>>2]|0)+112>>2]|0)!=0:0){c[H>>2]=bZ(c[o>>2]|0,(c[w>>2]|0)+132|0,112589,36)|0;if(!(c[H>>2]|0)){fa=59;break a}if(a[(c[o>>2]|0)+489>>0]|0)c[(c[H>>2]|0)+20>>2]=c[(c[o>>2]|0)+360>>2];a[(c[w>>2]|0)+131>>0]=0;if(!(Gb[c[(c[o>>2]|0)+112>>2]&63](c[(c[o>>2]|0)+116>>2]|0,0,c[(c[H>>2]|0)+20>>2]|0,c[(c[H>>2]|0)+16>>2]|0,c[(c[H>>2]|0)+24>>2]|0)|0)){fa=63;break a}if(!(a[(c[w>>2]|0)+131>>0]|0)){if(c[(c[o>>2]|0)+324>>2]|0)break;a[(c[w>>2]|0)+129>>0]=a[G>>0]|0;break}if(((a[(c[w>>2]|0)+130>>0]|0)==0?(c[(c[o>>2]|0)+108>>2]|0)!=0:0)?(Fb[c[(c[o>>2]|0)+108>>2]&63](c[(c[o>>2]|0)+4>>2]|0)|0)==0:0){fa=68;break a}}while(0);a[(c[o>>2]|0)+489>>0]=0}if(c[(c[o>>2]|0)+88>>2]|0){Bb[c[(c[o>>2]|0)+88>>2]&127](c[(c[o>>2]|0)+4>>2]|0);a[B>>0]=0}break}case 34:{l=eZ(c[o>>2]|0,c[p>>2]|0,c[q>>2]|0,c[t>>2]|0)|0;c[(c[o>>2]|0)+344>>2]=l;if(c[(c[o>>2]|0)+34
|
||
|
function Ul(b,d){b=b|0;d=d|0;var e=0,f=0,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while(1){if(!(c[r>>2]|0))break;n=c[p>>2]|0;c[g>>2]=w;c[g+4>>2]=x;c[g+8>>2]=t;c[q>>2]=l3(n,126584,g)|0;if((c[q>>2]|0)<2){H=16;break a}c[p>>2]=(c[p>>2]|0)+(c[t>>2]|0);h[c[v>>2]>>3]=+h[w>>3];h[(c[v>>2]|0)+8>>3]=+h[x>>3];c[v>>2]=(c[v>>2]|0)+16;c[r>>2]=(c[r>>2]|0)+-1}while(1){n=(r1(a[c[p>>2]>>0]|0)|0)!=0;I=c[p>>2]|0;if(!n)break;c[p>>2]=I+1}if(!(a[I>>0]|0))c[D>>2]=0;else c[p>>2]=(c[p>>2]|0)+1;c[C>>2]=iN(c[o>>2]|0,c[s>>2]|0)|0;if(c[y>>2]|0){c[(c[C>>2]|0)+8>>2]=c[E>>2];n=(c[C>>2]|0)+16|0;c[n>>2]=c[A>>2];c[n+4>>2]=c[A+4>>2];c[n+8>>2]=c[A+8>>2];c[n+12>>2]=c[A+12>>2]}if(c[z>>2]|0){c[(c[C>>2]|0)+12>>2]=c[F>>2];n=(c[C>>2]|0)+32|0;c[n>>2]=c[B>>2];c[n+4>>2]=c[B+4>>2];c[n+8>>2]=c[B+8>>2];c[n+12>>2]=c[B+12>>2]}c[q>>2]=0;while(1){if((c[q>>2]|0)>=(c[s>>2]|0))break;n=(c[c[C>>2]>>2]|0)+(c[q>>2]<<4)|0;d=(c[u>>2]|0)+(c[q>>2]<<4)|0;c[n>>2]=c[d>>2];c[n+4>>2]=c[d+4>>2];c[n+8>>2]=c[d+8>>2];c[n+12>>2]=c[d+12>>2];c[q>>2]=(c[q>>2]|0)+1}O4(c[u>>2]|0);if(!(c[D>>2]|0)){H=33;break}}if((H|0)==10){SO(c[o>>2]|0);if(!(a[126526]|0)){a[126526]=1;D=c[o>>2]|0;q=wB(c[((c[c[o>>2]>>2]&3|0)==3?D:D+32|0)+28>>2]|0)|0;D=c[o>>2]|0;C=wB(c[((c[c[o>>2]>>2]&3|0)==2?D:D+-32|0)+28>>2]|0)|0;c[j>>2]=q;c[j+4>>2]=C;$z(0,126527,j)|0}c[m>>2]=0;G=c[m>>2]|0;i=e;return G|0}else if((H|0)==16){if(!(a[126526]|0)){a[126526]=1;j=c[o>>2]|0;C=wB(c[((c[c[o>>2]>>2]&3|0)==3?j:j+32|0)+28>>2]|0)|0;j=c[o>>2]|0;q=wB(c[((c[c[o>>2]>>2]&3|0)==2?j:j+-32|0)+28>>2]|0)|0;c[f>>2]=C;c[f+4>>2]=q;$z(0,126594,f)|0}O4(c[u>>2]|0);SO(c[o>>2]|0);c[m>>2]=0;G=c[m>>2]|0;i=e;return G|0}else if((H|0)==33){if(c[(c[(c[o>>2]|0)+8>>2]|0)+96>>2]|0)yl(c[o>>2]|0,c[(c[(c[o>>2]|0)+8>>2]|0)+96>>2]|0,140260);if(c[(c[(c[o>>2]|0)+8>>2]|0)+108>>2]|0)yl(c[o>>2]|0,c[(c[(c[o>>2]|0)+8>>2]|0)+108>>2]|0,140256);if(c[(c[(c[o>>2]|0)+8>>2]|0)+100>>2]|0)yl(c[o>>2]|0,c[(c[(c[o>>2]|0)+8>>2]|0)+100>>2]|0,140263);if(c[(c[(c[o>>2]|0)+8>>2]|0)+104>>2]|0)yl(c[o>>2]|0,c[(c[(c[o>>2]|0)+8>>2]|0)+104>>2]|0,140271);c[m>>2]=1;G=c[m>>2]|0;i=e;return G|0}return 0}function Vl(b){b=b|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;f=e+4|0;g=e;h=e+8|0;c[f>>2]=b;c[g>>2]=0;while(1){b=(r1(d[c[f>>2]>>0]|0)|0)!=0;j=c[f>>2]|0;if(b){c[f>>2]=j+1;continue}b=a[j>>0]|0;a[h>>0]=b;a:do if(b<<24>>24){c[g>>2]=(c[g>>2]|0)+1;while(1){j=a[c[f>>2]>>0]|0;a[h>>0]=j;if(!(j&255))break a;if(r1(d[h>>0]|0)|0)break a;if((d[h>>0]|0|0)==59)break a;c[f>>2]=(c[f>>2]|0)+1}}while(0);if(!(r1(d[h>>0]|0)|0))break}i=e;return c[g>>2]|0}function Wl(a,b,d){a=a|0;b=+b;d=+d;var e=0,f=0,g=0,j=0;e=i;i=i+32|0;f=e+24|0;g=e+16|0;j=e;h[f>>3]=b;h[g>>3]=d;h[j>>3]=+h[f>>3];h[j+8>>3]=+h[g>>3];c[a>>2]=c[j>>2];c[a+4>>2]=c[j+4>>2];c[a+8>>2]=c[j+8>>2];c[a+12>>2]=c[j+12>>2];i=e;return}function Xl(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0,m=0;f=i;i=i+64|0;g=f+48|0;h=f+44|0;j=f+40|0;k=f+36|0;l=f;m=f+32|0;c[g>>2]=a;c[h>>2]=b;c[j>>2]=d;c[k>>2]=e;if((P3(wB(c[g>>2]|0)|0,145613,7)|0)==0?(Yl(c[g>>2]|0,c[k>>2]|0,l)|0)!=0:0){MC(c[g>>2]|0,175049,280,1)|0;e=(c[(c[g>>2]|0)+8>>2]|
|
||
|
function Cv(a,b,d,e,f){a=a|0;b=b|0;d=+d;e=e|0;f=f|0;var g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0.0;g=i;i=i+32|0;j=g+28|0;k=g+24|0;l=g;m=g+20|0;n=g+16|0;o=g+12|0;p=g+8|0;c[j>>2]=a;c[k>>2]=b;h[l>>3]=d;c[m>>2]=e;c[n>>2]=f;c[o>>2]=zv(c[j>>2]|0,c[k>>2]|0,+h[l>>3],c[m>>2]|0)|0;c[k>>2]=c[(c[o>>2]|0)+20>>2];c[p>>2]=0;while(1){if((c[p>>2]|0)>=(c[j>>2]|0))break;d=+h[l>>3];m=(c[k>>2]|0)+(c[p>>2]<<3)|0;q=+h[m>>3];if(!((c[n>>2]|0)%2|0))h[m>>3]=q-d;else h[m>>3]=q+d;c[n>>2]=((c[n>>2]|0)-((c[n>>2]|0)%2|0)|0)/2|0;c[p>>2]=(c[p>>2]|0)+1}i=g;return c[o>>2]|0}function Dv(a,b,d,e,f,g,j,k){a=a|0;b=b|0;d=d|0;e=e|0;f=+f;g=+g;j=+j;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,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;l=i;i=i+160|0;m=l+144|0;n=l+140|0;o=l+136|0;p=l+132|0;q=l+64|0;r=l+56|0;s=l+48|0;t=l+128|0;u=l+124|0;v=l+120|0;w=l+116|0;x=l+112|0;y=l+40|0;z=l+32|0;A=l+24|0;B=l+16|0;C=l+108|0;D=l+104|0;E=l+8|0;F=l;G=l+100|0;H=l+96|0;I=l+92|0;J=l+88|0;K=l+84|0;L=l+80|0;M=l+76|0;N=l+72|0;c[m>>2]=a;c[n>>2]=b;c[o>>2]=d;c[p>>2]=e;h[q>>3]=f;h[r>>3]=g;h[s>>3]=j;c[t>>2]=k;if(!((c[m>>2]|0)!=0&(c[n>>2]|0)!=0)){i=l;return}if((c[c[m>>2]>>2]|0)<=0)La(132101,131933,175,132126);if((c[c[n>>2]>>2]|0)<=0)La(132101,131933,175,132126);c[G>>2]=c[(c[m>>2]|0)+16>>2];c[u>>2]=c[(c[m>>2]|0)+40>>2];c[v>>2]=c[(c[n>>2]|0)+40>>2];h[y>>3]=+Aw(c[(c[m>>2]|0)+32>>2]|0,c[(c[n>>2]|0)+32>>2]|0,c[G>>2]|0);if(+h[(c[m>>2]|0)+24>>3]+ +h[(c[n>>2]|0)+24>>3]<+h[q>>3]*+h[y>>3]){k=c[t>>2]|0;h[k>>3]=+h[k>>3]+1.0;c[w>>2]=c[(c[m>>2]|0)+32>>2];h[E>>3]=+h[(c[m>>2]|0)+8>>3];c[C>>2]=Iv(c[m>>2]|0,c[G>>2]|0)|0;c[x>>2]=c[(c[n>>2]|0)+32>>2];h[F>>3]=+h[(c[n>>2]|0)+8>>3];c[D>>2]=Iv(c[n>>2]|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]>+h[(c[m>>2]|0)+24>>3]))){c[H>>2]=0;while(1){if((c[H>>2]|0)>=(1<<c[G>>2]|0))break;c[M>>2]=c[(c[(c[n>>2]|0)+36>>2]|0)+(c[H>>2]<<2)>>2];Dv(c[M>>2]|0,c[m>>2]|0,c[o>>2]|0,c[p>>2]|0,+h[q
|
||
|
function cU(b,f,g,j){b=b|0;f=f|0;g=g|0;j=j|0;var 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.0,x=0.0,y=0,z=0,A=0,B=0,C=0;k=i;i=i+80|0;l=k+40|0;m=k+32|0;n=k+64|0;o=k+60|0;p=k+56|0;q=k+52|0;r=k+48|0;s=k+16|0;t=k;u=k+44|0;c[n>>2]=b;c[o>>2]=f;c[p>>2]=g;c[q>>2]=j;c[(c[o>>2]|0)+96>>2]=c[p>>2];do if(!(e[(c[o>>2]|0)+36>>1]&64))if(e[(c[p>>2]|0)+36>>1]&64){a[(c[o>>2]|0)+34>>0]=a[(c[p>>2]|0)+34>>0]|0;break}else{a[(c[o>>2]|0)+34>>0]=2;break}while(0);do if(!(e[(c[o>>2]|0)+36>>1]&32)){j=c[p>>2]|0;if((a[(c[p>>2]|0)+88>>0]|0)>=0){a[(c[o>>2]|0)+33>>0]=a[j+88>>0]|0;break}if(e[j+36>>1]&32){a[(c[o>>2]|0)+33>>0]=a[(c[p>>2]|0)+33>>0]|0;break}else{a[(c[o>>2]|0)+33>>0]=1;break}}while(0);do if((a[(c[o>>2]|0)+88+4>>0]|0)!=1)if((a[(c[o>>2]|0)+88+4>>0]|0)==3){c[r>>2]=eU(c[(c[o>>2]|0)+88>>2]|0,c[q>>2]|0)|0;p=(c[(c[o>>2]|0)+88>>2]|0)+16|0;c[t>>2]=c[p>>2];c[t+4>>2]=c[p+4>>2];c[t+8>>2]=c[p+8>>2];c[t+12>>2]=c[p+12>>2];break}else{c[r>>2]=XT(c[(c[(c[n>>2]|0)+8>>2]|0)+144>>2]|0,c[(c[o>>2]|0)+88>>2]|0,c[q>>2]|0)|0;p=(c[(c[o>>2]|0)+88>>2]|0)+8+16|0;c[t>>2]=c[p>>2];c[t+4>>2]=c[p+4>>2];c[t+8>>2]=c[p+8>>2];c[t+12>>2]=c[p+12>>2];break}else{c[r>>2]=UT(c[n>>2]|0,c[(c[o>>2]|0)+88>>2]|0,c[o>>2]|0,c[q>>2]|0)|0;p=(c[(c[o>>2]|0)+88>>2]|0)+48+16|0;c[t>>2]=c[p>>2];c[t+4>>2]=c[p+4>>2];c[t+8>>2]=c[p+8>>2];c[t+12>>2]=c[p+12>>2]}while(0);c[u>>2]=(d[(c[o>>2]|0)+34>>0]|0)+(d[(c[o>>2]|0)+33>>0]|0)<<1;h[s>>3]=+h[t>>3]+ +(c[u>>2]|0);h[s+8>>3]=+h[t+8>>3]+ +(c[u>>2]|0);do if(e[(c[o>>2]|0)+36>>1]&1){if((e[(c[o>>2]|0)+38>>1]|0)!=0?(e[(c[o>>2]|0)+40>>1]|0)!=0:0){if(!(!(+(e[(c[o>>2]|0)+38>>1]|0)<+h[s>>3])?!(+(e[(c[o>>2]|0)+40>>1]|0)<+h[s+8>>3]):0))v=21;if((v|0)==21?(a[(c[o>>2]|0)+88+4>>0]|0)!=3:0){$z(0,175192,m)|0;c[r>>2]=1}h[s+8>>3]=0.0;h[s>>3]=0.0;break}$z(0,175225,l)|0;c[r>>2]=1}while(0);if(+h[s>>3]>+(e[(c[o>>2]|0)+38>>1]|0))w=+h[s>>3];else w=+(e[(c[o>>2]|0)+38>>1]|0);h[(c[o>>2]|0)+48+16>>3]=w;if(+h[s+8>>3]>+(e[(c[o>>2]|0)+40>>1]|0)){x=+h[s+8>>3];y=c[o>>2]|0;z=y+48|0;A=z+16|0;B=A+8|0;h[B>>3]=x;C=c[r>>2]|0;i=k;return C|0}else{x=+(e[(c[o>>2]|0)+40>>1]|0);y=c[o>>2]|0;z=y+48|0;A=z+16|0;B=A+8|0;h[B>>3]=x;C=c[r>>2]|0;i=k;return C|0}return 0}function dU(a,b,d,f){a=a|0;b=b|0;d=d|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;g=i;i=i+48|0;h=g+36|0;j=g+32|0;k=g+28|0;l=g+24|0;m=g+20|0;n=g+16|0;o=g+12|0;p=g+8|0;q=g+4|0;r=g;c[h>>2]=a;c[j>>2]=b;c[k>>2]=d;c[l>>2]=f;c[m>>2]=1;c[r>>2]=(e[(c[l>>2]|0)+80>>1]|0)-1;while(1){s=c[k>>2]|0;if(!(c[m>>2]|0))break;c[n>>2]=s+(c[r>>2]|0);c[q>>2]=c[n>>2];while(1){if((c[q>>2]|0)<(c[k>>2]|0))break;if(_K(c[h>>2]|0,c[q>>2]|0,c[j>>2]|0)|0)break;c[q>>2]=(c[q>>2]|0)+-1}if((c[q>>2]|0)>=(c[k>>2]|0)){c[k>>2]=(c[q>>2]|0)+1;continue}else{c[m>>2]=0;continue}}c[p>>2]=s;while(1){if((c[p>>2]|0)>=((c[k>>2]|0)+(e[(c[l>>2]|0)+80>>1]|0)|0))break;c[o>>2]=c[j>>2];while(1){if((c[o>>2]|0)>=((c[j>>2]|0)+(e[(c[l>>2]|0)+82>>1]|0)|0))break;YK(c[h>>2]|0,c[p>>2]|0,c[o>>2]|0);c[o>>2]=(c[o>>2]|0)+1}c[p>>2]=(c[p>>2]|0)+1}i=g;return c[k>>2]|0}function eU(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,j=0,k=0,l=0,m=0;e=i;i=i+48|0;f=e;g=e+44|0;j=e+40|0;k=e+24|0;l=e+16|0;m=e+8|0;c[g>>2]=b;c[j>>2]=d;c[k+4>>2]=0;c[k>>2]=0;d=k+8|0;FF(m,c[(c[j>>2]|0)+52>>2]|0,c[(c[g>>2]|0)+32>>2]|0);c[d>>2]=c[m>>2];c[d+4>>2]=c[m+4>>2];if((c[k+8>>2]|0)==-1?(c[k+8+4>>2]|0)==-1:0){c[l>>2]=1;c[k+8+4>>2]=0;c[k+8>>2]=0;c[f>>2]=c[(c[g>>2]|0)+32>>2];$z(1,175275,f)|0}else{c[l>>2]=0;a[(c[(c[(c[j>>2]|0)+52>>2]|0)+8>>2]|0)+114>>0]=1}h[c[g>>2]>>3]=+(c[k>>2]|0);h[(c[g>>2]|0)+8>>3]=+(c[k+4>>2]|0);h[(c[g>>2]|0)+16>>3]=+(c[k+8>>2]|0);h[(c[g>>2]|0)+16+8>>3]=+(c[k+8+4>>2]|0);i=e;return c[l>>2]|0}function fU(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0;e=i;i=i+16|0;f=e+8|0;g=e+4|0;h=e;c[f>>2]=b;c[g>>2]=d;if((c[(c[f>>2]|0)+4>>2]|0)!=0?(F3(c[(c[f>>2]|0)+4>>2]|0,c[g>>2]|0)|0)==0:0){c[h>>2]=c[f>>2];j=c[h>>2]|0;i=e;return j|0}if((a[(c[f>>2]|0)+88+4>>0]|0)==1){c[h>>2]=OT(c[(c[f>>2]|0)+88>>2]|0,c[g>>2]|0)|0;j=c[h>>2]|0;i=e;return j|0}else{c[h>>2]=0;j=c[h>>2]|0;i=e;return j|0}return 0}function gU(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;zT((c[d>>2]|0)+88|0,0);wT(c[d>>2]|0);O4(c[d>>2]|0);i=b;return}function hU(d,e,f,g,j,k,l,m){d=d|0;e=e|
|
||
|
function qh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;f=e+12|0;g=e+8|0;h=e+4|0;j=e;c[e+16>>2]=a;c[f>>2]=b;c[g>>2]=d;vk(c[f>>2]|0);Gh(c[f>>2]|0);Hh(c[f>>2]|0);Ih(c[f>>2]|0);c[j>>2]=oh(c[f>>2]|0,2,2,c[g>>2]|0)|0;c[h>>2]=1;while(1){k=c[f>>2]|0;if((c[h>>2]|0)>(c[(c[(c[f>>2]|0)+8>>2]|0)+180>>2]|0))break;d=qh(k,c[(c[(c[(c[f>>2]|0)+8>>2]|0)+184>>2]|0)+(c[h>>2]<<2)>>2]|0,c[g>>2]|0)|0;c[j>>2]=(c[j>>2]|0)+d;c[h>>2]=(c[h>>2]|0)+1}ch(k);i=e;return c[j>>2]|0}function rh(d,e){d=d|0;e=e|0;var f=0,g=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0.0;f=i;i=i+48|0;g=f;j=f+44|0;k=f+40|0;l=f+36|0;m=f+32|0;n=f+28|0;o=f+24|0;p=f+20|0;q=f+16|0;c[j>>2]=d;c[k>>2]=e;if(c[12559]|0){O4(c[12559]|0);c[12559]=0}if(c[12560]|0){O4(c[12560]|0);c[12560]=0}c[o>>2]=1;while(1){if((c[o>>2]|0)>(c[(c[(c[j>>2]|0)+8>>2]|0)+180>>2]|0))break;eh(c[(c[(c[(c[j>>2]|0)+8>>2]|0)+184>>2]|0)+(c[o>>2]<<2)>>2]|0);c[o>>2]=(c[o>>2]|0)+1}c[n>>2]=b[(c[(c[j>>2]|0)+8>>2]|0)+236>>1];while(1){if((c[n>>2]|0)>(b[(c[(c[j>>2]|0)+8>>2]|0)+238>>1]|0))break;c[l>>2]=0;while(1){if((c[l>>2]|0)>=(c[(c[(c[(c[j>>2]|0)+8>>2]|0)+196>>2]|0)+(c[n>>2]<<6)>>2]|0))break;c[p>>2]=c[(c[(c[(c[(c[j>>2]|0)+8>>2]|0)+196>>2]|0)+(c[n>>2]<<6)+4>>2]|0)+(c[l>>2]<<2)>>2];c[(c[(c[p>>2]|0)+8>>2]|0)+236>>2]=c[l>>2];a:do if(c[(c[(c[p>>2]|0)+8>>2]|0)+188>>2]|0){c[m>>2]=0;while(1){o=c[(c[(c[(c[p>>2]|0)+8>>2]|0)+188>>2]|0)+(c[m>>2]<<2)>>2]|0;c[q>>2]=o;if(!o)break a;if((a[(c[(c[q>>2]|0)+8>>2]|0)+112>>0]|0)==4){Ug(c[q>>2]|0);O4(c[(c[q>>2]|0)+8>>2]|0);O4(c[q>>2]|0);c[m>>2]=(c[m>>2]|0)+-1}c[m>>2]=(c[m>>2]|0)+1}}while(0);c[l>>2]=(c[l>>2]|0)+1}Fh(c[(c[(c[(c[j>>2]|0)+8>>2]|0)+196>>2]|0)+(c[n>>2]<<6)+56>>2]|0);c[n>>2]=(c[n>>2]|0)+1}if(!(a[138998]|0)){i=f;return}n=c[24742]|0;l=wB(c[j>>2]|0)|0;j=c[k>>2]|0;r=+$N();c[g>>2]=l;c[g+4>>2]=j;h[g+8>>3]=r;Y2(n,123311,g)|0;i=f;return}function sh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,j=0,k=0;e=i;i=i+32|0;f=e+16|0;g=e+12|0;h=e+8|0;j=e+4|0;k=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=d;d=c[g>>2]|0;c[j>>2]=d;c[k>>2]=d;while(1){d=Ch(c[j>>2]|0,c[h>>2]|0)|0;c[j>>2]=d;if(!d)break;if(Dh(c[f>>2]|0,c[j>>2]|0)|0){c[k>>2]=c[j>>2];continue}if(!(Eh(c[f>>2]|0,c[j>>2]|0)|0))continue;c[k>>2]=c[j>>2]}i=e;return c[k>>2]|0}function th(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,j=0;d=i;i=i+32|0;e=d+16|0;f=d+12|0;g=d+8|0;h=d+4|0;j=d;c[e>>2]=a;c[f>>2]=b;c[j>>2]=c[(c[(c[e>>2]|0)+8>>2]|0)+232>>2];c[g>>2]=c[(c[(c[e>>2]|0)+8>>2]|0)+236>>2];c[h>>2]=c[(c[(c[f>>2]|0)+8>>2]|0)+236>>2];c[(c[(c[e>>2]|0)+8>>2]|0)+236>>2]=c[h>>2];c[(c[(c[(c[(c[12547]|0)+8>>2]|0)+196>>2]|0)+(c[j>>2]<<6)+4>>2]|0)+(c[h>>2]<<2)>>2]=c[e>>2];c[(c[(c[f>>2]|0)+8>>2]|0)+236>>2]=c[g>>2];c[(c[(c[(c[(c[12547]|0)+8>>2]|0)+196>>2]|0)+(c[j>>2]<<6)+4>>2]|0)+(c[g>>2]<<2)>>2]=c[f>>2];i=d;return}function uh(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0;f=i;i=i+16|0;g=f+12|0;h=f+8|0;j=f+4|0;k=f;c[g>>2]=d;c[h>>2]=e;c[j>>2]=b[(c[(c[g>>2]|0)+8>>2]|0)+236>>1];while(1){if((c[j>>2]|0)>(b[(c[(c[g>>2]|0)+8>>2]|0)+238>>1]|0))break;a[(c[(c[(c[g>>2]|0)+8>>2]|0)+196>>2]|0)+(c[j>>2]<<6)+48>>0]=1;c[j>>2]=(c[j>>2]|0)+1}do{c[k>>2]=0;c[j>>2]=b[(c[(c[g>>2]|0)+8>>2]|0)+236>>1];while(1){if((c[j>>2]|0)>(b[(c[(c[g>>2]|0)+8>>2]|0)+238>>1]|0))break;if(a[(c[(c[(c[g>>2]|0)+8>>2]|0)+196>>2]|0)+(c[j>>2]<<6)+48>>0]|0){e=yh(c[g>>2]|0,c[j>>2]|0,c[h>>2]|0)|0;c[k>>2]=(c[k>>2]|0)+e}c[j>>2]=(c[j>>2]|0)+1}}while((c[k>>2]|0)>=1);i=f;return}function vh(d,e){d=d|0;e=e|0;var f=0,g=0,h=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;f=i;i=i+64|0;g=f+48|0;h=f+44|0;j=f+40|0;k=f+36|0;l=f+32|0;m=f+28|0;n=f+24|0;o=f+20|0;p=f+16|0;q=f+12|0;r=f+8|0;s=f+4|0;t=f;c[h>>2]=d;c[j>>2]=e;c[m>>2]=0;c[n>>2]=0;c[q>>2]=c[(c[(c[(c[h>>2]|0)+8>>2]|0)+196>>2]|0)+(c[j>>2]<<6)+4>>2];if((c[12557]|0)<=(c[(c[(c[(c[12547]|0)+8>>2]|0)+196>>2]|0)+((c[j>>2]|0)+1<<6)>>2]|0)){c[12557]=(c[(c[(c[(c[12547]|0)+8>>2]|0)+196>>2]|0)+((c[j>>2]|0)+1<<6)>>2]|0)+1;if(c[12558]|0)u=eK(c[12558]|0,c[12557]<<2)|0;else u=cK(c[12557]<<2)|0;c[12558]=u}c[o>>2]=0;while(1){if((c[o>>2]|0)>=(c[(c[(c[(c[h>>2]|0)+8>>2]|0)+196>>2]|0)+((c[j>>2]|0)+1<<6)>>2]|0))break;c[(c[12558]|0)+(c[o>>2]<<2)>>2]=0;c[o>>2]=(c[o>>2]|0)+1}c[k>>2]=0;while(1){if((c[k>>2]|0)>=(c[(c
|
||
|
function A$(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;g=i;i=i+32|0;h=g+24|0;j=g+20|0;k=g+16|0;l=g+12|0;m=g+8|0;n=g+4|0;o=g;c[j>>2]=a;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;do if((c[k>>2]|0)!=(c[l>>2]|0)){c[n>>2]=c[k>>2];a:while(1){p=c[k>>2]|0;if((c[k>>2]|0)==(c[l>>2]|0)){q=26;break}switch(d[(c[j>>2]|0)+76+(d[p>>0]|0)>>0]|0|0){case 3:{q=9;break a;break}case 30:{q=12;break a;break}case 10:{q=15;break a;break}case 9:{q=18;break a;break}case 5:{c[k>>2]=(c[k>>2]|0)+2;continue a;break}case 6:{c[k>>2]=(c[k>>2]|0)+3;continue a;break}case 7:{c[k>>2]=(c[k>>2]|0)+4;continue a;break}default:{c[k>>2]=(c[k>>2]|0)+1;continue a}}}if((q|0)==9)if((c[k>>2]|0)==(c[n>>2]|0)){c[h>>2]=U$(c[j>>2]|0,(c[k>>2]|0)+1|0,c[l>>2]|0,c[m>>2]|0)|0;break}else{c[c[m>>2]>>2]=c[k>>2];c[h>>2]=6;break}else if((q|0)==12)if((c[k>>2]|0)==(c[n>>2]|0)){c[o>>2]=V$(c[j>>2]|0,(c[k>>2]|0)+1|0,c[l>>2]|0,c[m>>2]|0)|0;c[h>>2]=(c[o>>2]|0)==22?0:c[o>>2]|0;break}else{c[c[m>>2]>>2]=c[k>>2];c[h>>2]=6;break}else if((q|0)==15){f=c[k>>2]|0;if((c[k>>2]|0)==(c[n>>2]|0)){c[c[m>>2]>>2]=f+1;c[h>>2]=7;break}else{c[c[m>>2]>>2]=f;c[h>>2]=6;break}}else if((q|0)==18){f=c[k>>2]|0;if((c[k>>2]|0)!=(c[n>>2]|0)){c[c[m>>2]>>2]=f;c[h>>2]=6;break}c[k>>2]=f+1;if((c[k>>2]|0)==(c[l>>2]|0)){c[h>>2]=-3;break}if((d[(c[j>>2]|0)+76+(d[c[k>>2]>>0]|0)>>0]|0|0)==10)c[k>>2]=(c[k>>2]|0)+1;c[c[m>>2]>>2]=c[k>>2];c[h>>2]=7;break}else if((q|0)==26){c[c[m>>2]>>2]=p;c[h>>2]=6;break}}else c[h>>2]=-4;while(0);i=g;return c[h>>2]|0}function B$(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0;g=i;i=i+16|0;h=g+12|0;j=g+8|0;k=g+4|0;l=g;c[j>>2]=b;c[k>>2]=e;c[l>>2]=f;a:while(1){switch(d[(c[j>>2]|0)+76+(d[c[k>>2]>>0]|0)>>0]|0){case 7:{f=c[k>>2]|0;c[k>>2]=f+1;e=a[f>>0]|0;f=c[l>>2]|0;c[l>>2]=f+1;if((e|0)!=(a[f>>0]|0)){m=4;break a}else m=5;break}case 6:{m=5;break}case 5:break;case 27:case 26:case 25:case 24:case 23:case 22:case 29:{f=c[l>>2]|0;c[l>>2]=f+1;e=a[f>>0]|0;f=c[k>>2]|0;c[k>>2]=f+1;if((e|0)!=(a[f>>0]|0)){m=12;break a}else continue a;break}default:{m=13;break a}}if((m|0)==5?(m=0,f=c[k>>2]|0,c[k>>2]=f+1,e=a[f>>0]|0,f=c[l>>2]|0,c[l>>2]=f+1,(e|0)!=(a[f>>0]|0)):0){m=6;break}f=c[k>>2]|0;c[k>>2]=f+1;e=a[f>>0]|0;f=c[l>>2]|0;c[l>>2]=f+1;if((e|0)!=(a[f>>0]|0)){m=8;break}f=c[k>>2]|0;c[k>>2]=f+1;e=a[f>>0]|0;f=c[l>>2]|0;c[l>>2]=f+1;if((e|0)!=(a[f>>0]|0)){m=10;break}}if((m|0)==4){c[h>>2]=0;n=c[h>>2]|0;i=g;return n|0}else if((m|0)==6){c[h>>2]=0;n=c[h>>2]|0;i=g;return n|0}else if((m|0)==8){c[h>>2]=0;n=c[h>>2]|0;i=g;return n|0}else if((m|0)==10){c[h>>2]=0;n=c[h>>2]|0;i=g;return n|0}else if((m|0)==12){c[h>>2]=0;n=c[h>>2]|0;i=g;return n|0}else if((m|0)==13){if((a[c[k>>2]>>0]|0)==(a[c[l>>2]>>0]|0)){c[h>>2]=1;n=c[h>>2]|0;i=g;return n|0}switch(d[(c[j>>2]|0)+76+(d[c[l>>2]>>0]|0)>>0]|0){case 27:case 26:case 25:case 24:case 23:case 22:case 29:case 7:case 6:case 5:{c[h>>2]=0;n=c[h>>2]|0;i=g;return n|0}default:{c[h>>2]=1;n=c[h>>2]|0;i=g;return n|0}}}return 0}function C$(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,j=0,k=0,l=0,m=0,n=0,o=0;g=i;i=i+32|0;h=g+16|0;j=g+8|0;k=g+4|0;l=g;c[g+12>>2]=b;c[j>>2]=d;c[k>>2]=e;c[l>>2]=f;while(1){m=(c[j>>2]|0)==(c[k>>2]|0);if(!(a[c[l>>2]>>0]|0)){n=8;break}if(m){n=4;break}if((a[c[j>>2]>>0]|0)!=(a[c[l>>2]>>0]|0)){n=6;break}c[j>>2]=(c[j>>2]|0)+1;c[l>>2]=(c[l>>2]|0)+1}if((n|0)==4){c[h>>2]=0;o=c[h>>2]|0;i=g;return o|0}else if((n|0)==6){c[h>>2]=0;o=c[h>>2]|0;i=g;return o|0}else if((n|0)==8){c[h>>2]=m&1;o=c[h>>2]|0;i=g;return o|0}return 0}function D$(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0;e=i;i=i+16|0;f=e+8|0;g=e+4|0;h=e;c[f>>2]=a;c[g>>2]=b;c[h>>2]=c[g>>2];a:while(1)switch(d[(c[f>>2]|0)+76+(d[c[g>>2]>>0]|0)>>0]|0|0){case 5:{c[g>>2]=(c[g>>2]|0)+2;continue a;break}case 6:{c[g>>2]=(c[g>>2]|0)+3;continue a;break}case 7:{c[g>>2]=(c[g>>2]|0)+4;continue a;break}case 27:case 26:case 25:case 24:case 23:case 22:case 29:{c[g>>2]=(c[g>>2]|0)+1;continue a;break}default:break a}i=e;return (c[g>>2]|0)-(c[h>>2]|0)|0}function E$(a,b){a=a|0;b=b|0;var e=0,f=0,g=0;e=i;i=i+16|0;f=e+4|0;g=e;c[f>>2]=a;c[g>>2]=b;a:while(1){switch(d[(c[f>>2]|0)+76+(d[c[g>>2]>>0]|0)>>0]|0|0){case 21:case 9:case 10:break;default:br
|
||
|
function CL(a,b,e,f,g){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;var 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.0,x=0.0,y=0.0,z=0.0,A=0,B=0;j=i;i=i+208|0;k=j+112|0;l=j+104|0;m=j+56|0;n=j;o=j+196|0;p=j+192|0;q=j+188|0;r=j+184|0;s=j+180|0;t=j+176|0;u=j+172|0;v=j+168|0;c[p>>2]=a;c[q>>2]=b;c[r>>2]=e;c[s>>2]=f;c[t>>2]=g;g=c[24742]|0;f=c[s>>2]|0;e=d[(c[t>>2]|0)+32>>0]|0;w=+h[c[t>>2]>>3];x=+h[(c[t>>2]|0)+8>>3];y=+h[(c[t>>2]|0)+16>>3];z=+h[(c[t>>2]|0)+16+8>>3];c[n>>2]=c[q>>2];c[n+4>>2]=f;c[n+8>>2]=e;h[n+16>>3]=w;h[n+24>>3]=x;h[n+32>>3]=y;h[n+40>>3]=z;Y2(g,141696,n)|0;if((d[138998]|0|0)<2){c[o>>2]=0;A=c[o>>2]|0;i=j;return A|0}Y2(c[24742]|0,141756,j+48|0)|0;c[u>>2]=0;while(1){if((c[u>>2]|0)>=(c[q>>2]|0))break;c[v>>2]=c[(c[p>>2]|0)+32>>2];n=c[24742]|0;z=+h[c[p>>2]>>3];y=+h[(c[p>>2]|0)+8>>3];x=+h[(c[p>>2]|0)+16>>3];w=+h[(c[p>>2]|0)+16+8>>3];g=c[(c[p>>2]|0)+32>>2]|0;if(c[v>>2]|0)B=c[c[(c[v>>2]|0)+32>>2]>>2]|0;else B=178518;c[m>>2]=c[u>>2];h[m+8>>3]=z;h[m+16>>3]=y;h[m+24>>3]=x;h[m+32>>3]=w;c[m+40>>2]=g;c[m+44>>2]=B;Y2(n,141765,m)|0;c[p>>2]=(c[p>>2]|0)+40;c[u>>2]=(c[u>>2]|0)+1}Y2(c[24742]|0,141808,l)|0;c[u>>2]=0;while(1){if((c[u>>2]|0)>=(c[s>>2]|0))break;l=c[24742]|0;p=c[r>>2]|0;m=d[(c[r>>2]|0)+36>>0]|0;w=+h[(c[r>>2]|0)+16>>3];x=+h[(c[r>>2]|0)+16+8>>3];y=+h[c[r>>2]>>3];z=+h[(c[r>>2]|0)+8>>3];B=c[c[(c[r>>2]|0)+32>>2]>>2]|0;c[k>>2]=c[u>>2];c[k+4>>2]=p;c[k+8>>2]=m;h[k+16>>3]=w;h[k+24>>3]=x;h[k+32>>3]=y;h[k+40>>3]=z;c[k+48>>2]=B;Y2(l,141817,k)|0;c[r>>2]=(c[r>>2]|0)+40;c[u>>2]=(c[u>>2]|0)+1}c[o>>2]=0;A=c[o>>2]|0;i=j;return A|0}function DL(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+32|0;e=d+16|0;f=d;c[e>>2]=b;b=(c[e>>2]|0)+16|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];h[f>>3]=+h[f>>3]+ +h[c[e>>2]>>3]/2.0;b=f+8|0;h[b>>3]=+h[b>>3]+ +h[(c[e>>2]|0)+8>>3]/2.0;c[a>>2]=c[f>>2];c[a+4>>2]=c[f+4>>2];c[a+8>>2]=c[f+8>>2];c[a+12>>2]=c[f+12>>2];i=d;return}function EL(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,j=0.0,k=0.0,l=0.0;e=i;i=i+32|0;f=e+16|0;g=e;c[f>>2]=b;if(+h[d>>3]<+h[c[f>>2]>>3])j=+h[d>>3];else j=+h[c[f>>2]>>3];h[d>>3]=j;if(+h[d+8>>3]<+h[(c[f>>2]|0)+8>>3])k=+h[d+8>>3];else k=+h[(c[f>>2]|0)+8>>3];h[d+8>>3]=k;h[g>>3]=+h[c[f>>2]>>3]+ +h[(c[f>>2]|0)+16>>3];h[g+8>>3]=+h[(c[f>>2]|0)+8>>3]+ +h[(c[f>>2]|0)+16+8>>3];h[d+16>>3]=+h[d+16>>3]>+h[g>>3]?+h[d+16>>3]:+h[g>>3];if(+h[d+16+8>>3]>+h[g+8>>3])l=+h[d+16+8>>3];else l=+h[g+8>>3];h[d+16+8>>3]=l;c[a>>2]=c[d>>2];c[a+4>>2]=c[d+4>>2];c[a+8>>2]=c[d+8>>2];c[a+12>>2]=c[d+12>>2];c[a+16>>2]=c[d+16>>2];c[a+20>>2]=c[d+20>>2];c[a+24>>2]=c[d+24>>2];c[a+28>>2]=c[d+28>>2];i=e;return}function FL(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,j=0,k=0,l=0;b=i;i=i+32|0;d=b;e=b+24|0;f=b+20|0;g=b+16|0;j=b+12|0;k=b+8|0;l=b+4|0;c[e>>2]=a;a=sO(yA(c[e>>2]|0,143103)|0)|0;c[g>>2]=a;if(!a){c[d>>2]=wB(c[e>>2]|0)|0;$z(0,141865,d)|0;i=b;return}c[j>>2]=LL(c[g>>2]|0)|0;if(!(c[j>>2]|0)){i=b;return}c[k>>2]=c[(c[j>>2]|0)+40>>2];c[l>>2]=c[(c[j>>2]|0)+44>>2];h[(c[(c[e>>2]|0)+8>>2]|0)+32>>3]=+(c[k>>2]|0)/72.0;h[(c[(c[e>>2]|0)+8>>2]|0)+40>>3]=+(c[l>>2]|0)/72.0;g=bK(12)|0;c[f>>2]=g;c[(c[(c[e>>2]|0)+8>>2]|0)+12>>2]=g;c[c[f>>2]>>2]=c[(c[j>>2]|0)+12>>2];c[(c[f>>2]|0)+4>>2]=0-(c[(c[j>>2]|0)+32>>2]|0)-((c[k>>2]|0)/2|0);c[(c[f>>2]|0)+4+4>>2]=0-(c[(c[j>>2]|0)+36>>2]|0)-((c[l>>2]|0)/2|0);i=b;return}function GL(a){a=a|0;var b=0,d=0;b=i;i=i+16|0;d=b;c[d>>2]=a;if(!(c[(c[(c[d>>2]|0)+8>>2]|0)+12>>2]|0)){i=b;return}O4(c[(c[(c[d>>2]|0)+8>>2]|0)+12>>2]|0);i=b;return}function HL(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=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;g=i;i=i+64|0;h=g+8|0;j=g;k=g+44|0;l=g+40|0;m=g+36|0;n=g+32|0;o=g+28|0;p=g+24|0;q=g+20|0;r=g+16|0;s=g+12|0;t=g+48|0;c[k>>2]=b;c[l>>2]=e;c[m>>2]=f;a[t>>0]=1;a:do if(c[l>>2]|0){c[s>>2]=0;while(1){if(!(d[t>>0]|0))break a;f=c[(c[l>>2]|0)+(c[s>>2]<<2)>>2]|0;c[q>>2]=f;if(!f)break a;if(!(a[c[q>>2]>>0]|0))a[t>>0]=0;c[s>>2]=(c[s>>2]|0)+1}}while(0);b:do if(a[t>>0]|0){c[o>>2]=c[m>>2];while(1){if(!(c[c[o>>2]>>2]|0))break b;jF(c[k>>2]|0,c[c[o>>2]>>2]|0)|0;jF(c[k>>2]|0,193392)|0;c[o>>2]=(c[o>>2]|0)+4}}while(0);if(!(c[l>>2]|0)){i=g;return}c[s>>2]=0;while(1){o=c[(c[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[24992]|0)>>>0)Ga();l=h+12|0;if((c[l>>2]|0)==(o|0)){c[l>>2]=p;c[q>>2]=h;s=c[24990]|0;break}else Ga()}else{c[24988]=e&~(1<<r);s=i}while(0);i=(r<<3)-b|0;c[o+4>>2]=b|3;e=o+b|0;c[e+4>>2]=i|1;c[e+i>>2]=i;if(s){h=c[24993]|0;q=s>>>3;p=99992+(q<<1<<2)|0;d=c[24988]|0;f=1<<q;if(d&f){q=p+8|0;k=c[q>>2]|0;if(k>>>0<(c[24992]|0)>>>0)Ga();else{t=q;u=k}}else{c[24988]=d|f;t=p+8|0;u=p}c[t>>2]=h;c[u+12>>2]=h;c[h+8>>2]=u;c[h+12>>2]=p}c[24990]=i;c[24993]=e;n=m;return n|0}e=c[24989]|0;if(e){i=(e&0-e)+-1|0;e=i>>>12&16;p=i>>>e;i=p>>>5&8;h=p>>>i;p=h>>>2&4;f=h>>>p;h=f>>>1&2;d=f>>>h;f=d>>>1&1;k=c[100256+((i|e|p|h|f)+(d>>>f)<<2)>>2]|0;f=(c[k+4>>2]&-8)-b|0;d=k;h=k;while(1){k=c[d+16>>2]|0;if(!k){p=c[d+20>>2]|0;if(!p){v=f;w=h;break}else x=p}else x=k;k=(c[x+4>>2]&-8)-b|0;p=k>>>0<f>>>0;f=p?k:f;d=x;h=p?x:h}h=c[24992]|0;if(w>>>0<h>>>0)Ga();d=w+b|0;if(w>>>0>=d>>>0)Ga();f=c[w+24>>2]|0;m=c[w+12>>2]|0;do if((m|0)==(w|0)){o=w+20|0;r=c[o>>2]|0;if(!r){p=w+16|0;k=c[p>>2]|0;if(!k){y=0;break}else{z=k;A=p}}else{z=r;A=o}while(1){o=z+20|0;r=c[o>>2]|0;if(r){z=r;A=o;continue}o=z+16|0;r=c[o>>2]|0;if(!r){B=z;C=A;break}else{z=r;A=o}}if(C>>>0<h>>>0)Ga();else{c[C>>2]=0;y=B;break}}else{o=c[w+8>>2]|0;if(o>>>0<h>>>0)Ga();r=o+12|0;if((c[r>>2]|0)!=(w|0))Ga();p=m+8|0;if((c[p>>2]|0)==(w|0)){c[r>>2]=m;c[p>>2]=o;y=m;break}else Ga()}while(0);do if(f){m=c[w+28>>2]|0;h=100256+(m<<2)|0;if((w|0)==(c[h>>2]|0)){c[h>>2]=y;if(!y){c[24989]=c[24989]&~(1<<m);break}}else{if(f>>>0<(c[24992]|0)>>>0)Ga();m=f+16|0;if((c[m>>2]|0)==(w|0))c[m>>2]=y;else c[f+20>>2]=y;if(!y)break}m=c[24992]|0;if(y>>>0<m>>>0)Ga();c[y+24>>2]=f;h=c[w+16>>2]|0;do if(h)if(h>>>0<m>>>0)Ga();else{c[y+16>>2]=h;c[h+24>>2]=y;break}while(0);h=c[w+20>>2]|0;if(h)if(h>>>0<(c[24992]|0)>>>0)Ga();else{c[y+20>>2]=h;c[h+24>>2]=y;break}}while(0);if(v>>>0<16){f=v+b|0;c[w+4>>2]=f|3;h=w+f+4|0;c[h>>2]=c[h>>2]|1}else{c[w+4>>2]=b|3;c[d+4>>2]=v|1;c[d+v>>2]=v;h=c[24990]|0;if(h){f=c[24993]|0;m=h>>>3;h=99992+(m<<1<<2)|0;o=c[24988]|0;p=1<<m;if(o&p){m=h+8|0;r=c[m>>2]|0;if(r>>>0<(c[24992]|0)>>>0)Ga();else{D=m;E=r}}else{c[24988]=o|p;D=h+8|0;E=h}c[D>>2]=f;c[E+12>>2]=f;c[f+8>>2]=E;c[f+12>>2]=h}c[24990]=v;c[24993]=d}n=w+8|0;return n|0}else F=b}else F=b}else if(a>>>0<=4294967231){h=a+11|0;f=h&-8;p=c[24989]|0;if(p){o=0-f|0;r=h>>>8;if(r)if(f>>>0>16777215)G=31;else{h=(r+1048320|0)>>>16&8;m=r<<h;r=(m+520192|0)>>>16&4;k=m<<r;m=(k+245760|0)>>>16&2;e=14-(r|h|m)+(k<<m>>>15)|0;G=f>>>(e+7|0)&1|e<<1}else G=0;e=c[100256+(G<<2)>>2]|0;a:do if(!e){H=o;I=0;J=0;K=86}else{m=o;k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,bS,vU,iW,hW,NA,WA,gC,UC,VC,hK,XN,YK,DP,HP,IP,jW,lW,mW,vW,xW,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5,Z5];var Ub=[_5,_N,jK,pK,qK,rK,yU,_5];var Vb=[$5,qc,Qc,dd,pd,zd,Nd,ae,re,De,Pe,_e,qf,pf,of,mf,lf,hf,fc,kf,jf,yM,QM,I$,d$,z_,w3,CP,EP,f_,$5,$5];return{_vizRenderFromString:ec,_i64Subtract:U4,_fflush:T2,_aglasterr:_z,_realloc:Q4,_dtextract:Kz,_memmove:_4,_saveSetjmp:W4,_memset:$4,_malloc:N4,_i64Add:V4,_memcpy:Z4,_bitshift64Lshr:X4,_free:O4,_bitshift64Shl:a5,___errno_location:L1,_testSetjmp:Y4,runPostSets:T4,stackAlloc:Wb,stackSave:Xb,stackRestore:Yb,establishStackSpace:Zb,setThrew:_b,setTempRet0:bc,getTempRet0:cc,dynCall_viiiii:k5,dynCall_vi:l5,dynCall_iiidd:m5,dynCall_vii:n5,dynCall_iiiiiiiiiii:o5,dynCall_ii:p5,dynCall_iiiiii:q5,dynCall_iiii:r5,dynCall_viiiiii:s5,dynCall_di:t5,dynCall_iiiiiii:u5,dynCall_dddd:v5,dynCall_viiiiiii:w5,dynCall_viiiiiiiii:x5,dynCall_iii:y5,dynCall_d:z5,dynCall_i:A5,dynCall_viiiddi:B5,dynCall_iiiii:C5,dynCall_viii:D5,dynCall_v:E5,dynCall_viiii:F5}})
|
||
|
|
||
|
|
||
|
// EMSCRIPTEN_END_ASM
|
||
|
(Module.asmGlobalArg,Module.asmLibraryArg,buffer);var _vizRenderFromString=Module["_vizRenderFromString"]=asm["_vizRenderFromString"];var _i64Subtract=Module["_i64Subtract"]=asm["_i64Subtract"];var _fflush=Module["_fflush"]=asm["_fflush"];var runPostSets=Module["runPostSets"]=asm["runPostSets"];var _aglasterr=Module["_aglasterr"]=asm["_aglasterr"];var _realloc=Module["_realloc"]=asm["_realloc"];var _dtextract=Module["_dtextract"]=asm["_dtextract"];var _memmove=Module["_memmove"]=asm["_memmove"];var _saveSetjmp=Module["_saveSetjmp"]=asm["_saveSetjmp"];var _testSetjmp=Module["_testSetjmp"]=asm["_testSetjmp"];var _memset=Module["_memset"]=asm["_memset"];var _malloc=Module["_malloc"]=asm["_malloc"];var _i64Add=Module["_i64Add"]=asm["_i64Add"];var _memcpy=Module["_memcpy"]=asm["_memcpy"];var _bitshift64Lshr=Module["_bitshift64Lshr"]=asm["_bitshift64Lshr"];var _free=Module["_free"]=asm["_free"];var ___errno_location=Module["___errno_location"]=asm["___errno_location"];var _bitshift64Shl=Module["_bitshift64Shl"]=asm["_bitshift64Shl"];var dynCall_viiiii=Module["dynCall_viiiii"]=asm["dynCall_viiiii"];var dynCall_vi=Module["dynCall_vi"]=asm["dynCall_vi"];var dynCall_iiidd=Module["dynCall_iiidd"]=asm["dynCall_iiidd"];var dynCall_vii=Module["dynCall_vii"]=asm["dynCall_vii"];var dynCall_iiiiiiiiiii=Module["dynCall_iiiiiiiiiii"]=asm["dynCall_iiiiiiiiiii"];var dynCall_ii=Module["dynCall_ii"]=asm["dynCall_ii"];var dynCall_iiiiii=Module["dynCall_iiiiii"]=asm["dynCall_iiiiii"];var dynCall_iiii=Module["dynCall_iiii"]=asm["dynCall_iiii"];var dynCall_viiiiii=Module["dynCall_viiiiii"]=asm["dynCall_viiiiii"];var dynCall_di=Module["dynCall_di"]=asm["dynCall_di"];var dynCall_iiiiiii=Module["dynCall_iiiiiii"]=asm["dynCall_iiiiiii"];var dynCall_dddd=Module["dynCall_dddd"]=asm["dynCall_dddd"];var dynCall_viiiiiii=Module["dynCall_viiiiiii"]=asm["dynCall_viiiiiii"];var dynCall_viiiiiiiii=Module["dynCall_viiiiiiiii"]=asm["dynCall_viiiiiiiii"];var dynCall_iii=Module["dynCall_iii"]=asm["dynCall_iii"];var dynCall_d=Module["dynCall_d"]=asm["dynCall_d"];var dynCall_i=Module["dynCall_i"]=asm["dynCall_i"];var dynCall_viiiddi=Module["dynCall_viiiddi"]=asm["dynCall_viiiddi"];var dynCall_iiiii=Module["dynCall_iiiii"]=asm["dynCall_iiiii"];var dynCall_viii=Module["dynCall_viii"]=asm["dynCall_viii"];var dynCall_v=Module["dynCall_v"]=asm["dynCall_v"];var dynCall_viiii=Module["dynCall_viiii"]=asm["dynCall_viiii"];Runtime.stackAlloc=asm["stackAlloc"];Runtime.stackSave=asm["stackSave"];Runtime.stackRestore=asm["stackRestore"];Runtime.establishStackSpace=asm["establishStackSpace"];Runtime.setTempRet0=asm["setTempRet0"];Runtime.getTempRet0=asm["getTempRet0"];function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}ExitStatus.prototype=new Error;ExitStatus.prototype.constructor=ExitStatus;var initialStackTop;var preloadStartTime=null;var calledMain=false;dependenciesFulfilled=function runCaller(){if(!Module["calledRun"])run();if(!Module["calledRun"])dependenciesFulfilled=runCaller};Module["callMain"]=Module.callMain=function callMain(args){assert(runDependencies==0,"cannot call main when async dependencies remain! (listen on __ATMAIN__)");assert(__ATPRERUN__.length==0,"cannot call main when preRun functions remain to be called");args=args||[];ensureInitRuntime();var argc=args.length+1;function pad(){for(var i=0;i<4-1;i++){argv.push(0)}}var argv=[allocate(intArrayFromString(Module["thisProgram"]),"i8",ALLOC_NORMAL)];pad();for(var i=0;i<argc-1;i=i+1){argv.push(allocate(intArrayFromString(args[i]),"i8",ALLOC_NORMAL));pad()}argv.push(0);argv=allocate(argv,"i32",ALLOC_NORMAL);try{var ret=Module["_main"](argc,argv,0);exit(ret,true)}catch(e){if(e instanceof ExitStatus){return}else if(e=="SimulateInfiniteLoop"){Module["noExitRuntime"]=true;return}else{if(e&&typeof e==="object"&&e.stack)Module.printErr("exception thrown: "+[e,e.stack]);throw e}}finally{calledMain=true}};function run(args){args=args||Module["arguments"];if(preloadStartTime===null)preloadStartTime=Date.now();if(runDependencies>0){return}preRun();
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
return Module;
|
||
|
};
|
||
|
function Viz(src) {
|
||
|
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
|
||
|
var format = options.format === undefined ? "svg" : options.format;
|
||
|
var engine = options.engine === undefined ? "dot" : options.engine;
|
||
|
|
||
|
if (format == "png-image-element") {
|
||
|
return Viz.svgXmlToPngImageElement(render(src, "svg", engine));
|
||
|
} else {
|
||
|
return render(src, format, engine);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var graphviz;
|
||
|
var errors;
|
||
|
|
||
|
function appendError(buf) {
|
||
|
errors += graphviz["Pointer_stringify"](buf);
|
||
|
}
|
||
|
|
||
|
function render(src, format, engine) {
|
||
|
if (typeof graphviz === "undefined") {
|
||
|
graphviz = Module();
|
||
|
}
|
||
|
|
||
|
errors = "";
|
||
|
|
||
|
var resultPointer = graphviz["ccall"]("vizRenderFromString", "number", ["string", "string", "string"], [src, format, engine]);
|
||
|
var resultString = graphviz["Pointer_stringify"](resultPointer);
|
||
|
graphviz["_free"](resultPointer);
|
||
|
|
||
|
if (errors != "") {
|
||
|
throw errors;
|
||
|
}
|
||
|
|
||
|
return resultString;
|
||
|
}
|
||
|
|
||
|
Viz.svgXmlToPngImageElement = function(svgXml) {
|
||
|
var scaleFactor = 1;
|
||
|
|
||
|
if ("devicePixelRatio" in window) {
|
||
|
if (window.devicePixelRatio > 1) {
|
||
|
scaleFactor = window.devicePixelRatio;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var svgImage = new Image();
|
||
|
svgImage.src = "data:image/svg+xml;utf8," + svgXml;
|
||
|
|
||
|
var pngImage = new Image();
|
||
|
|
||
|
svgImage.onload = function() {
|
||
|
var canvas = document.createElement("canvas");
|
||
|
canvas.width = svgImage.width * scaleFactor;
|
||
|
canvas.height = svgImage.height * scaleFactor;
|
||
|
|
||
|
var context = canvas.getContext("2d");
|
||
|
context.drawImage(svgImage, 0, 0, canvas.width, canvas.height);
|
||
|
|
||
|
pngImage.src = canvas.toDataURL("image/png");
|
||
|
pngImage.width = svgImage.width;
|
||
|
pngImage.height = svgImage.height;
|
||
|
}
|
||
|
|
||
|
return pngImage;
|
||
|
}
|
||
|
|
||
|
if (typeof module === "object" && module.exports) {
|
||
|
module.exports = Viz;
|
||
|
} else {
|
||
|
global.Viz = Viz;
|
||
|
}
|
||
|
|
||
|
})(this);
|