-
Notifications
You must be signed in to change notification settings - Fork 2
/
opustowavasm.js
18 lines (11 loc) · 398 KB
/
opustowavasm.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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=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 process==="object"&&typeof require==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER}if(ENVIRONMENT_IS_NODE){if(!Module["print"])Module["print"]=console.log;if(!Module["printErr"])Module["printErr"]=console.warn;var nodeFS;var nodePath;Module["read"]=function read(filename,binary){if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);var ret=nodeFS["readFileSync"](filename);return binary?ret:ret.toString()};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"}}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}if(typeof quit==="function"){Module["quit"]=(function(status,toThrow){quit(status)})}}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(ENVIRONMENT_IS_WORKER){Module["readBinary"]=function read(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return xhr.response}}Module["readAsync"]=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response)}else{onerror()}};xhr.onerror=onerror;xhr.send(null)};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.warn(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"}if(!Module["quit"]){Module["quit"]=(function(status,toThrow){throw toThrow})}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]}}moduleOverrides=undefined;var Runtime={setTempRet0:(function(value){tempRet0=value;return 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_SIZE}else if(type[0]==="i"){var bits=parseInt(type.substr(1));assert(bits%8===0);return bits/8}else{return 0}}}}),getNativeFieldSize:(function(type){return Math.max(Runtime.getNativeTypeSize(type),Runtime.QUANTUM_SIZE)}),STACK_ALIGN:16,prepVararg:(function(ptr,type){if(type==="double"||type==="i64"){if(ptr&7){assert((ptr&7)===4);ptr+=4}}else{assert((ptr&3)===0)}return ptr}),getAlignSize:(function(type,size,vararg){if(!vararg&&(type=="i64"||type=="double"))return 8;if(!type)return Math.min(size,8);return Math.min(size||(type?Runtime.getNativeFieldSize(type):0),Runtime.QUANTUM_SIZE)}),dynCall:(function(sig,ptr,args){if(args&&args.length){return Module["dynCall_"+sig].apply(null,[ptr].concat(args))}else{return Module["dynCall_"+sig].call(null,ptr)}}),functionPointers:[],addFunction:(function(func){for(var i=0;i<Runtime.functionPointers.length;i++){if(!Runtime.functionPointers[i]){Runtime.functionPointers[i]=func;return 2*(1+i)}}throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."}),removeFunction:(function(index){Runtime.functionPointers[(index-2)/2]=null}),warnOnce:(function(text){if(!Runtime.warnOnce.shown)Runtime.warnOnce.shown={};if(!Runtime.warnOnce.shown[text]){Runtime.warnOnce.shown[text]=1;Module.printErr(text)}}),funcWrappers:{},getFuncWrapper:(function(func,sig){assert(sig);if(!Runtime.funcWrappers[sig]){Runtime.funcWrappers[sig]={}}var sigCache=Runtime.funcWrappers[sig];if(!sigCache[func]){if(sig.length===1){sigCache[func]=function dynCall_wrapper(){return Runtime.dynCall(sig,func)}}else if(sig.length===2){sigCache[func]=function dynCall_wrapper(arg){return Runtime.dynCall(sig,func,[arg])}}else{sigCache[func]=function dynCall_wrapper(){return Runtime.dynCall(sig,func,Array.prototype.slice.call(arguments))}}}return sigCache[func]}),getCompilerSetting:(function(name){throw"You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work"}),stackAlloc:(function(size){var ret=STACKTOP;STACKTOP=STACKTOP+size|0;STACKTOP=STACKTOP+15&-16;return ret}),staticAlloc:(function(size){var ret=STATICTOP;STATICTOP=STATICTOP+size|0;STATICTOP=STATICTOP+15&-16;return ret}),dynamicAlloc:(function(size){var ret=HEAP32[DYNAMICTOP_PTR>>2];var end=(ret+size+15|0)&-16;HEAP32[DYNAMICTOP_PTR>>2]=end;if(end>=TOTAL_MEMORY){var success=enlargeMemory();if(!success){HEAP32[DYNAMICTOP_PTR>>2]=ret;return 0}}return ret}),alignMemory:(function(size,quantum){var ret=size=Math.ceil(size/(quantum?quantum:16))*(quantum?quantum:16);return ret}),makeBigInt:(function(low,high,unsigned){var ret=unsigned?+(low>>>0)+ +(high>>>0)*+4294967296:+(low>>>0)+ +(high|0)*+4294967296;return ret}),GLOBAL_BASE:8,QUANTUM_SIZE:4,__dummy__:0};Module["Runtime"]=Runtime;var ABORT=0;var EXITSTATUS=0;function assert(condition,text){if(!condition){abort("Assertion failed: "+text)}}function getCFunc(ident){var func=Module["_"+ident];if(!func){try{func=eval("_"+ident)}catch(e){}}assert(func,"Cannot call unknown function "+ident+" (perhaps LLVM optimizations or closure removed it?)");return func}var cwrap,ccall;((function(){var JSfuncs={"stackSave":(function(){Runtime.stackSave()}),"stackRestore":(function(){Runtime.stackRestore()}),"arrayToC":(function(arr){var ret=Runtime.stackAlloc(arr.length);writeArrayToMemory(arr,ret);return ret}),"stringToC":(function(str){var ret=0;if(str!==null&&str!==undefined&&str!==0){var len=(str.length<<2)+1;ret=Runtime.stackAlloc(len);stringToUTF8(str,ret,len)}return ret})};var toC={"string":JSfuncs["stringToC"],"array":JSfuncs["arrayToC"]};ccall=function ccallFunc(ident,returnType,argTypes,args,opts){var func=getCFunc(ident);var cArgs=[];var stack=0;if(args){for(var i=0;i<args.length;i++){var converter=toC[argTypes[i]];if(converter){if(stack===0)stack=Runtime.stackSave();cArgs[i]=converter(args[i])}else{cArgs[i]=args[i]}}}var ret=func.apply(null,cArgs);if(returnType==="string")ret=Pointer_stringify(ret);if(stack!==0){if(opts&&opts.async){EmterpreterAsync.asyncFinalizers.push((function(){Runtime.stackRestore(stack)}));return}Runtime.stackRestore(stack)}return ret};var sourceRegex=/^function\s*[a-zA-Z$_0-9]*\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/;function parseJSFunc(jsfunc){var parsed=jsfunc.toString().match(sourceRegex).slice(1);return{arguments:parsed[0],body:parsed[1],returnValue:parsed[2]}}var JSsource=null;function ensureJSsource(){if(!JSsource){JSsource={};for(var fun in JSfuncs){if(JSfuncs.hasOwnProperty(fun)){JSsource[fun]=parseJSFunc(JSfuncs[fun])}}}}cwrap=function cwrap(ident,returnType,argTypes){argTypes=argTypes||[];var cfunc=getCFunc(ident);var numericArgs=argTypes.every((function(type){return type==="number"}));var numericRet=returnType!=="string";if(numericRet&&numericArgs){return cfunc}var argNames=argTypes.map((function(x,i){return"$"+i}));var funcstr="(function("+argNames.join(",")+") {";var nargs=argTypes.length;if(!numericArgs){ensureJSsource();funcstr+="var stack = "+JSsource["stackSave"].body+";";for(var i=0;i<nargs;i++){var arg=argNames[i],type=argTypes[i];if(type==="number")continue;var convertCode=JSsource[type+"ToC"];funcstr+="var "+convertCode.arguments+" = "+arg+";";funcstr+=convertCode.body+";";funcstr+=arg+"=("+convertCode.returnValue+");"}}var cfuncname=parseJSFunc((function(){return cfunc})).returnValue;funcstr+="var ret = "+cfuncname+"("+argNames.join(",")+");";if(!numericRet){var strgfy=parseJSFunc((function(){return Pointer_stringify})).returnValue;funcstr+="ret = "+strgfy+"(ret);"}if(!numericArgs){ensureJSsource();funcstr+=JSsource["stackRestore"].body.replace("()","(stack)")+";"}funcstr+="return ret})";return eval(funcstr)}}))();Module["ccall"]=ccall;Module["cwrap"]=cwrap;function setValue(ptr,value,type,noSafe){type=type||"i8";if(type.charAt(type.length-1)==="*")type="i32";switch(type){case"i1":HEAP8[ptr>>0]=value;break;case"i8":HEAP8[ptr>>0]=value;break;case"i16":HEAP16[ptr>>1]=value;break;case"i32":HEAP32[ptr>>2]=value;break;case"i64":tempI64=[value>>>0,(tempDouble=value,+Math_abs(tempDouble)>=+1?tempDouble>+0?(Math_min(+Math_floor(tempDouble/+4294967296),+4294967295)|0)>>>0:~~+Math_ceil((tempDouble- +(~~tempDouble>>>0))/+4294967296)>>>0:0)],HEAP32[ptr>>2]=tempI64[0],HEAP32[ptr+4>>2]=tempI64[1];break;case"float":HEAPF32[ptr>>2]=value;break;case"double":HEAPF64[ptr>>3]=value;break;default:abort("invalid type for setValue: "+type)}}Module["setValue"]=setValue;function getValue(ptr,type,noSafe){type=type||"i8";if(type.charAt(type.length-1)==="*")type="i32";switch(type){case"i1":return HEAP8[ptr>>0];case"i8":return HEAP8[ptr>>0];case"i16":return HEAP16[ptr>>1];case"i32":return HEAP32[ptr>>2];case"i64":return HEAP32[ptr>>2];case"float":return HEAPF32[ptr>>2];case"double":return HEAPF64[ptr>>3];default:abort("invalid type for setValue: "+type)}return null}Module["getValue"]=getValue;var ALLOC_NORMAL=0;var ALLOC_STACK=1;var ALLOC_STATIC=2;var ALLOC_DYNAMIC=3;var ALLOC_NONE=4;Module["ALLOC_NORMAL"]=ALLOC_NORMAL;Module["ALLOC_STACK"]=ALLOC_STACK;Module["ALLOC_STATIC"]=ALLOC_STATIC;Module["ALLOC_DYNAMIC"]=ALLOC_DYNAMIC;Module["ALLOC_NONE"]=ALLOC_NONE;function allocate(slab,types,allocator,ptr){var zeroinit,size;if(typeof slab==="number"){zeroinit=true;size=slab}else{zeroinit=false;size=slab.length}var singleType=typeof types==="string"?types:null;var ret;if(allocator==ALLOC_NONE){ret=ptr}else{ret=[typeof _malloc==="function"?_malloc:Runtime.staticAlloc,Runtime.stackAlloc,Runtime.staticAlloc,Runtime.dynamicAlloc][allocator===undefined?ALLOC_STATIC:allocator](Math.max(size,singleType?1:types.length))}if(zeroinit){var ptr=ret,stop;assert((ret&3)==0);stop=ret+(size&~3);for(;ptr<stop;ptr+=4){HEAP32[ptr>>2]=0}stop=ret+size;while(ptr<stop){HEAP8[ptr++>>0]=0}return ret}if(singleType==="i8"){if(slab.subarray||slab.slice){HEAPU8.set(slab,ret)}else{HEAPU8.set(new Uint8Array(slab),ret)}return ret}var i=0,type,typeSize,previousType;while(i<size){var curr=slab[i];if(typeof curr==="function"){curr=Runtime.getFunctionIndex(curr)}type=singleType||types[i];if(type===0){i++;continue}if(type=="i64")type="i32";setValue(ret+i,curr,type);if(previousType!==type){typeSize=Runtime.getNativeTypeSize(type);previousType=type}i+=typeSize}return ret}Module["allocate"]=allocate;function getMemory(size){if(!staticSealed)return Runtime.staticAlloc(size);if(!runtimeInitialized)return Runtime.dynamicAlloc(size);return _malloc(size)}Module["getMemory"]=getMemory;function Pointer_stringify(ptr,length){if(length===0||!ptr)return"";var hasUtf=0;var t;var i=0;while(1){t=HEAPU8[ptr+i>>0];hasUtf|=t;if(t==0&&!length)break;i++;if(length&&i==length)break}if(!length)length=i;var ret="";if(hasUtf<128){var MAX_CHUNK=1024;var curr;while(length>0){curr=String.fromCharCode.apply(String,HEAPU8.subarray(ptr,ptr+Math.min(length,MAX_CHUNK)));ret=ret?ret+curr:curr;ptr+=MAX_CHUNK;length-=MAX_CHUNK}return ret}return Module["UTF8ToString"](ptr)}Module["Pointer_stringify"]=Pointer_stringify;function AsciiToString(ptr){var str="";while(1){var ch=HEAP8[ptr++>>0];if(!ch)return str;str+=String.fromCharCode(ch)}}Module["AsciiToString"]=AsciiToString;function stringToAscii(str,outPtr){return writeAsciiToMemory(str,outPtr,false)}Module["stringToAscii"]=stringToAscii;var UTF8Decoder=typeof TextDecoder!=="undefined"?new TextDecoder("utf8"):undefined;function UTF8ArrayToString(u8Array,idx){var endPtr=idx;while(u8Array[endPtr])++endPtr;if(endPtr-idx>16&&u8Array.subarray&&UTF8Decoder){return UTF8Decoder.decode(u8Array.subarray(idx,endPtr))}else{var u0,u1,u2,u3,u4,u5;var str="";while(1){u0=u8Array[idx++];if(!u0)return str;if(!(u0&128)){str+=String.fromCharCode(u0);continue}u1=u8Array[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}u2=u8Array[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2}else{u3=u8Array[idx++]&63;if((u0&248)==240){u0=(u0&7)<<18|u1<<12|u2<<6|u3}else{u4=u8Array[idx++]&63;if((u0&252)==248){u0=(u0&3)<<24|u1<<18|u2<<12|u3<<6|u4}else{u5=u8Array[idx++]&63;u0=(u0&1)<<30|u1<<24|u2<<18|u3<<12|u4<<6|u5}}}if(u0<65536){str+=String.fromCharCode(u0)}else{var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}}}}Module["UTF8ArrayToString"]=UTF8ArrayToString;function UTF8ToString(ptr){return UTF8ArrayToString(HEAPU8,ptr)}Module["UTF8ToString"]=UTF8ToString;function stringToUTF8Array(str,outU8Array,outIdx,maxBytesToWrite){if(!(maxBytesToWrite>0))return 0;var startIdx=outIdx;var endIdx=outIdx+maxBytesToWrite-1;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127){if(outIdx>=endIdx)break;outU8Array[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;outU8Array[outIdx++]=192|u>>6;outU8Array[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;outU8Array[outIdx++]=224|u>>12;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else if(u<=2097151){if(outIdx+3>=endIdx)break;outU8Array[outIdx++]=240|u>>18;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else if(u<=67108863){if(outIdx+4>=endIdx)break;outU8Array[outIdx++]=248|u>>24;outU8Array[outIdx++]=128|u>>18&63;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}else{if(outIdx+5>=endIdx)break;outU8Array[outIdx++]=252|u>>30;outU8Array[outIdx++]=128|u>>24&63;outU8Array[outIdx++]=128|u>>18&63;outU8Array[outIdx++]=128|u>>12&63;outU8Array[outIdx++]=128|u>>6&63;outU8Array[outIdx++]=128|u&63}}outU8Array[outIdx]=0;return outIdx-startIdx}Module["stringToUTF8Array"]=stringToUTF8Array;function stringToUTF8(str,outPtr,maxBytesToWrite){return stringToUTF8Array(str,HEAPU8,outPtr,maxBytesToWrite)}Module["stringToUTF8"]=stringToUTF8;function lengthBytesUTF8(str){var len=0;for(var i=0;i<str.length;++i){var u=str.charCodeAt(i);if(u>=55296&&u<=57343)u=65536+((u&1023)<<10)|str.charCodeAt(++i)&1023;if(u<=127){++len}else if(u<=2047){len+=2}else if(u<=65535){len+=3}else if(u<=2097151){len+=4}else if(u<=67108863){len+=5}else{len+=6}}return len}Module["lengthBytesUTF8"]=lengthBytesUTF8;var UTF16Decoder=typeof TextDecoder!=="undefined"?new TextDecoder("utf-16le"):undefined;function demangle(func){var __cxa_demangle_func=Module["___cxa_demangle"]||Module["__cxa_demangle"];if(__cxa_demangle_func){try{var s=func.substr(1);var len=lengthBytesUTF8(s)+1;var buf=_malloc(len);stringToUTF8(s,buf,len);var status=_malloc(4);var ret=__cxa_demangle_func(buf,0,0,status);if(getValue(status,"i32")===0&&ret){return Pointer_stringify(ret)}}catch(e){}finally{if(buf)_free(buf);if(status)_free(status);if(ret)_free(ret)}return func}Runtime.warnOnce("warning: build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling");return func}function demangleAll(text){var regex=/__Z[\w\d_]+/g;return text.replace(regex,(function(x){var y=demangle(x);return x===y?x:x+" ["+y+"]"}))}function jsStackTrace(){var err=new Error;if(!err.stack){try{throw new Error(0)}catch(e){err=e}if(!err.stack){return"(no stack trace available)"}}return err.stack.toString()}function stackTrace(){var js=jsStackTrace();if(Module["extraStackTrace"])js+="\n"+Module["extraStackTrace"]();return demangleAll(js)}Module["stackTrace"]=stackTrace;var HEAP;var buffer;var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferViews(){Module["HEAP8"]=HEAP8=new Int8Array(buffer);Module["HEAP16"]=HEAP16=new Int16Array(buffer);Module["HEAP32"]=HEAP32=new Int32Array(buffer);Module["HEAPU8"]=HEAPU8=new Uint8Array(buffer);Module["HEAPU16"]=HEAPU16=new Uint16Array(buffer);Module["HEAPU32"]=HEAPU32=new Uint32Array(buffer);Module["HEAPF32"]=HEAPF32=new Float32Array(buffer);Module["HEAPF64"]=HEAPF64=new Float64Array(buffer)}var STATIC_BASE,STATICTOP,staticSealed;var STACK_BASE,STACKTOP,STACK_MAX;var DYNAMIC_BASE,DYNAMICTOP_PTR;STATIC_BASE=STATICTOP=STACK_BASE=STACKTOP=STACK_MAX=DYNAMIC_BASE=DYNAMICTOP_PTR=0;staticSealed=false;function abortOnCannotGrowMemory(){abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value "+TOTAL_MEMORY+", (2) compile with -s ALLOW_MEMORY_GROWTH=1 which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ")}function enlargeMemory(){abortOnCannotGrowMemory()}var TOTAL_STACK=Module["TOTAL_STACK"]||5242880;var TOTAL_MEMORY=Module["TOTAL_MEMORY"]||16777216;if(TOTAL_MEMORY<TOTAL_STACK)Module.printErr("TOTAL_MEMORY should be larger than TOTAL_STACK, was "+TOTAL_MEMORY+"! (TOTAL_STACK="+TOTAL_STACK+")");if(Module["buffer"]){buffer=Module["buffer"]}else{{buffer=new ArrayBuffer(TOTAL_MEMORY)}}updateGlobalBufferViews();function getTotalMemory(){return TOTAL_MEMORY}HEAP32[0]=1668509029;HEAP16[1]=25459;if(HEAPU8[2]!==115||HEAPU8[3]!==99)throw"Runtime error: expected the system to be little-endian!";Module["HEAP"]=HEAP;Module["buffer"]=buffer;Module["HEAP8"]=HEAP8;Module["HEAP16"]=HEAP16;Module["HEAP32"]=HEAP32;Module["HEAPU8"]=HEAPU8;Module["HEAPU16"]=HEAPU16;Module["HEAPU32"]=HEAPU32;Module["HEAPF32"]=HEAPF32;Module["HEAPF64"]=HEAPF64;function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback();continue}var func=callback.func;if(typeof func==="number"){if(callback.arg===undefined){Module["dynCall_v"](func)}else{Module["dynCall_vi"](func,callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}var __ATPRERUN__=[];var __ATINIT__=[];var __ATMAIN__=[];var __ATEXIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeExited=false;function preRun(){if(Module["preRun"]){if(typeof Module["preRun"]=="function")Module["preRun"]=[Module["preRun"]];while(Module["preRun"].length){addOnPreRun(Module["preRun"].shift())}}callRuntimeCallbacks(__ATPRERUN__)}function ensureInitRuntime(){if(runtimeInitialized)return;runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function exitRuntime(){callRuntimeCallbacks(__ATEXIT__);runtimeExited=true}function postRun(){if(Module["postRun"]){if(typeof Module["postRun"]=="function")Module["postRun"]=[Module["postRun"]];while(Module["postRun"].length){addOnPostRun(Module["postRun"].shift())}}callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(cb){__ATPRERUN__.unshift(cb)}Module["addOnPreRun"]=addOnPreRun;function addOnInit(cb){__ATINIT__.unshift(cb)}Module["addOnInit"]=addOnInit;function addOnPreMain(cb){__ATMAIN__.unshift(cb)}Module["addOnPreMain"]=addOnPreMain;function addOnExit(cb){__ATEXIT__.unshift(cb)}Module["addOnExit"]=addOnExit;function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}Module["addOnPostRun"]=addOnPostRun;function intArrayFromString(stringy,dontAddNull,length){var len=length>0?length:lengthBytesUTF8(stringy)+1;var u8array=new Array(len);var numBytesWritten=stringToUTF8Array(stringy,u8array,0,u8array.length);if(dontAddNull)u8array.length=numBytesWritten;return u8array}Module["intArrayFromString"]=intArrayFromString;function intArrayToString(array){var ret=[];for(var i=0;i<array.length;i++){var chr=array[i];if(chr>255){chr&=255}ret.push(String.fromCharCode(chr))}return ret.join("")}Module["intArrayToString"]=intArrayToString;function writeStringToMemory(string,buffer,dontAddNull){Runtime.warnOnce("writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!");var lastChar,end;if(dontAddNull){end=buffer+lengthBytesUTF8(string);lastChar=HEAP8[end]}stringToUTF8(string,buffer,Infinity);if(dontAddNull)HEAP8[end]=lastChar}Module["writeStringToMemory"]=writeStringToMemory;function writeArrayToMemory(array,buffer){HEAP8.set(array,buffer)}Module["writeArrayToMemory"]=writeArrayToMemory;function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i<str.length;++i){HEAP8[buffer++>>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}Module["writeAsciiToMemory"]=writeAsciiToMemory;if(!Math["imul"]||Math["imul"](4294967295,5)!==-5)Math["imul"]=function imul(a,b){var ah=a>>>16;var al=a&65535;var bh=b>>>16;var bl=b&65535;return al*bl+(ah*bl+al*bh<<16)|0};Math.imul=Math["imul"];if(!Math["clz32"])Math["clz32"]=(function(x){x=x>>>0;for(var i=0;i<32;i++){if(x&1<<31-i)return i}return 32});Math.clz32=Math["clz32"];if(!Math["trunc"])Math["trunc"]=(function(x){return x<0?Math.ceil(x):Math.floor(x)});Math.trunc=Math["trunc"];var Math_abs=Math.abs;var Math_cos=Math.cos;var Math_sin=Math.sin;var Math_tan=Math.tan;var Math_acos=Math.acos;var Math_asin=Math.asin;var Math_atan=Math.atan;var Math_atan2=Math.atan2;var Math_exp=Math.exp;var Math_log=Math.log;var Math_sqrt=Math.sqrt;var Math_ceil=Math.ceil;var Math_floor=Math.floor;var Math_pow=Math.pow;var Math_imul=Math.imul;var Math_fround=Math.fround;var Math_round=Math.round;var Math_min=Math.min;var Math_clz32=Math.clz32;var Math_trunc=Math.trunc;var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function getUniqueRunDependency(id){return id}function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}}Module["addRunDependency"]=addRunDependency;function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}Module["removeRunDependency"]=removeRunDependency;Module["preloadedImages"]={};Module["preloadedAudios"]={};var memoryInitializer=null;var ASM_CONSTS=[];STATIC_BASE=8;STATICTOP=STATIC_BASE+32288;__ATINIT__.push();memoryInitializer="opustowavasm.js.mem";var tempDoublePtr=STATICTOP;STATICTOP+=16;Module["_bitshift64Ashr"]=_bitshift64Ashr;Module["_i64Subtract"]=_i64Subtract;Module["_i64Add"]=_i64Add;Module["_memset"]=_memset;Module["_bitshift64Lshr"]=_bitshift64Lshr;Module["_bitshift64Shl"]=_bitshift64Shl;function _abort(){Module["abort"]()}var cttz_i8=allocate([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0],"i8",ALLOC_STATIC);Module["_llvm_cttz_i32"]=_llvm_cttz_i32;Module["___udivmoddi4"]=___udivmoddi4;Module["___divdi3"]=___divdi3;Module["___remdi3"]=___remdi3;var ERRNO_CODES={EPERM:1,ENOENT:2,ESRCH:3,EINTR:4,EIO:5,ENXIO:6,E2BIG:7,ENOEXEC:8,EBADF:9,ECHILD:10,EAGAIN:11,EWOULDBLOCK:11,ENOMEM:12,EACCES:13,EFAULT:14,ENOTBLK:15,EBUSY:16,EEXIST:17,EXDEV:18,ENODEV:19,ENOTDIR:20,EISDIR:21,EINVAL:22,ENFILE:23,EMFILE:24,ENOTTY:25,ETXTBSY:26,EFBIG:27,ENOSPC:28,ESPIPE:29,EROFS:30,EMLINK:31,EPIPE:32,EDOM:33,ERANGE:34,ENOMSG:42,EIDRM:43,ECHRNG:44,EL2NSYNC:45,EL3HLT:46,EL3RST:47,ELNRNG:48,EUNATCH:49,ENOCSI:50,EL2HLT:51,EDEADLK:35,ENOLCK:37,EBADE:52,EBADR:53,EXFULL:54,ENOANO:55,EBADRQC:56,EBADSLT:57,EDEADLOCK:35,EBFONT:59,ENOSTR:60,ENODATA:61,ETIME:62,ENOSR:63,ENONET:64,ENOPKG:65,EREMOTE:66,ENOLINK:67,EADV:68,ESRMNT:69,ECOMM:70,EPROTO:71,EMULTIHOP:72,EDOTDOT:73,EBADMSG:74,ENOTUNIQ:76,EBADFD:77,EREMCHG:78,ELIBACC:79,ELIBBAD:80,ELIBSCN:81,ELIBMAX:82,ELIBEXEC:83,ENOSYS:38,ENOTEMPTY:39,ENAMETOOLONG:36,ELOOP:40,EOPNOTSUPP:95,EPFNOSUPPORT:96,ECONNRESET:104,ENOBUFS:105,EAFNOSUPPORT:97,EPROTOTYPE:91,ENOTSOCK:88,ENOPROTOOPT:92,ESHUTDOWN:108,ECONNREFUSED:111,EADDRINUSE:98,ECONNABORTED:103,ENETUNREACH:101,ENETDOWN:100,ETIMEDOUT:110,EHOSTDOWN:112,EHOSTUNREACH:113,EINPROGRESS:115,EALREADY:114,EDESTADDRREQ:89,EMSGSIZE:90,EPROTONOSUPPORT:93,ESOCKTNOSUPPORT:94,EADDRNOTAVAIL:99,ENETRESET:102,EISCONN:106,ENOTCONN:107,ETOOMANYREFS:109,EUSERS:87,EDQUOT:122,ESTALE:116,ENOTSUP:95,ENOMEDIUM:123,EILSEQ:84,EOVERFLOW:75,ECANCELED:125,ENOTRECOVERABLE:131,EOWNERDEAD:130,ESTRPIPE:86};var ERRNO_MESSAGES={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"};function ___setErrNo(value){if(Module["___errno_location"])HEAP32[Module["___errno_location"]()>>2]=value;return value}var PATH={splitPath:(function(filename){var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return splitPathRe.exec(filename).slice(1)}),normalizeArray:(function(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up--;up){parts.unshift("..")}}return parts}),normalize:(function(path){var isAbsolute=path.charAt(0)==="/",trailingSlash=path.substr(-1)==="/";path=PATH.normalizeArray(path.split("/").filter((function(p){return!!p})),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path}),dirname:(function(path){var result=PATH.splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir}),basename:(function(path){if(path==="/")return"/";var lastSlash=path.lastIndexOf("/");if(lastSlash===-1)return path;return path.substr(lastSlash+1)}),extname:(function(path){return PATH.splitPath(path)[3]}),join:(function(){var paths=Array.prototype.slice.call(arguments,0);return PATH.normalize(paths.join("/"))}),join2:(function(l,r){return PATH.normalize(l+"/"+r)}),resolve:(function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:FS.cwd();if(typeof path!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){return""}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=path.charAt(0)==="/"}resolvedPath=PATH.normalizeArray(resolvedPath.split("/").filter((function(p){return!!p})),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."}),relative:(function(from,to){from=PATH.resolve(from).substr(1);to=PATH.resolve(to).substr(1);function trim(arr){var start=0;for(;start<arr.length;start++){if(arr[start]!=="")break}var end=arr.length-1;for(;end>=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i<length;i++){if(fromParts[i]!==toParts[i]){samePartsLength=i;break}}var outputParts=[];for(var i=samePartsLength;i<fromParts.length;i++){outputParts.push("..")}outputParts=outputParts.concat(toParts.slice(samePartsLength));return outputParts.join("/")})};var TTY={ttys:[],init:(function(){}),shutdown:(function(){}),register:(function(dev,ops){TTY.ttys[dev]={input:[],output:[],ops:ops};FS.registerDevice(dev,TTY.stream_ops)}),stream_ops:{open:(function(stream){var tty=TTY.ttys[stream.node.rdev];if(!tty){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}stream.tty=tty;stream.seekable=false}),close:(function(stream){stream.tty.ops.flush(stream.tty)}),flush:(function(stream){stream.tty.ops.flush(stream.tty)}),read:(function(stream,buffer,offset,length,pos){if(!stream.tty||!stream.tty.ops.get_char){throw new FS.ErrnoError(ERRNO_CODES.ENXIO)}var bytesRead=0;for(var i=0;i<length;i++){var result;try{result=stream.tty.ops.get_char(stream.tty)}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}if(result===undefined&&bytesRead===0){throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}if(result===null||result===undefined)break;bytesRead++;buffer[offset+i]=result}if(bytesRead){stream.node.timestamp=Date.now()}return bytesRead}),write:(function(stream,buffer,offset,length,pos){if(!stream.tty||!stream.tty.ops.put_char){throw new FS.ErrnoError(ERRNO_CODES.ENXIO)}for(var i=0;i<length;i++){try{stream.tty.ops.put_char(stream.tty,buffer[offset+i])}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}}if(length){stream.node.timestamp=Date.now()}return i})},default_tty_ops:{get_char:(function(tty){if(!tty.input.length){var result=null;if(ENVIRONMENT_IS_NODE){var BUFSIZE=256;var buf=new Buffer(BUFSIZE);var bytesRead=0;var isPosixPlatform=process.platform!="win32";var fd=process.stdin.fd;if(isPosixPlatform){var usingDevice=false;try{fd=fs.openSync("/dev/stdin","r");usingDevice=true}catch(e){}}try{bytesRead=fs.readSync(fd,buf,0,BUFSIZE,null)}catch(e){if(e.toString().indexOf("EOF")!=-1)bytesRead=0;else throw e}if(usingDevice){fs.closeSync(fd)}if(bytesRead>0){result=buf.slice(0,bytesRead).toString("utf-8")}else{result=null}}else if(typeof window!="undefined"&&typeof window.prompt=="function"){result=window.prompt("Input: ");if(result!==null){result+="\n"}}else if(typeof readline=="function"){result=readline();if(result!==null){result+="\n"}}if(!result){return null}tty.input=intArrayFromString(result,true)}return tty.input.shift()}),put_char:(function(tty,val){if(val===null||val===10){Module["print"](UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}}),flush:(function(tty){if(tty.output&&tty.output.length>0){Module["print"](UTF8ArrayToString(tty.output,0));tty.output=[]}})},default_tty1_ops:{put_char:(function(tty,val){if(val===null||val===10){Module["printErr"](UTF8ArrayToString(tty.output,0));tty.output=[]}else{if(val!=0)tty.output.push(val)}}),flush:(function(tty){if(tty.output&&tty.output.length>0){Module["printErr"](UTF8ArrayToString(tty.output,0));tty.output=[]}})}};var MEMFS={ops_table:null,mount:(function(mount){return MEMFS.createNode(null,"/",16384|511,0)}),createNode:(function(parent,name,mode,dev){if(FS.isBlkdev(mode)||FS.isFIFO(mode)){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(!MEMFS.ops_table){MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}}}var node=FS.createNode(parent,name,mode,dev);if(FS.isDir(node.mode)){node.node_ops=MEMFS.ops_table.dir.node;node.stream_ops=MEMFS.ops_table.dir.stream;node.contents={}}else if(FS.isFile(node.mode)){node.node_ops=MEMFS.ops_table.file.node;node.stream_ops=MEMFS.ops_table.file.stream;node.usedBytes=0;node.contents=null}else if(FS.isLink(node.mode)){node.node_ops=MEMFS.ops_table.link.node;node.stream_ops=MEMFS.ops_table.link.stream}else if(FS.isChrdev(node.mode)){node.node_ops=MEMFS.ops_table.chrdev.node;node.stream_ops=MEMFS.ops_table.chrdev.stream}node.timestamp=Date.now();if(parent){parent.contents[name]=node}return node}),getFileDataAsRegularArray:(function(node){if(node.contents&&node.contents.subarray){var arr=[];for(var i=0;i<node.usedBytes;++i)arr.push(node.contents[i]);return arr}return node.contents}),getFileDataAsTypedArray:(function(node){if(!node.contents)return new Uint8Array;if(node.contents.subarray)return node.contents.subarray(0,node.usedBytes);return new Uint8Array(node.contents)}),expandFileStorage:(function(node,newCapacity){if(node.contents&&node.contents.subarray&&newCapacity>node.contents.length){node.contents=MEMFS.getFileDataAsRegularArray(node);node.usedBytes=node.contents.length}if(!node.contents||node.contents.subarray){var prevCapacity=node.contents?node.contents.length:0;if(prevCapacity>=newCapacity)return;var CAPACITY_DOUBLING_MAX=1024*1024;newCapacity=Math.max(newCapacity,prevCapacity*(prevCapacity<CAPACITY_DOUBLING_MAX?2:1.125)|0);if(prevCapacity!=0)newCapacity=Math.max(newCapacity,256);var oldContents=node.contents;node.contents=new Uint8Array(newCapacity);if(node.usedBytes>0)node.contents.set(oldContents.subarray(0,node.usedBytes),0);return}if(!node.contents&&newCapacity>0)node.contents=[];while(node.contents.length<newCapacity)node.contents.push(0)}),resizeFileStorage:(function(node,newSize){if(node.usedBytes==newSize)return;if(newSize==0){node.contents=null;node.usedBytes=0;return}if(!node.contents||node.contents.subarray){var oldContents=node.contents;node.contents=new Uint8Array(new ArrayBuffer(newSize));if(oldContents){node.contents.set(oldContents.subarray(0,Math.min(newSize,node.usedBytes)))}node.usedBytes=newSize;return}if(!node.contents)node.contents=[];if(node.contents.length>newSize)node.contents.length=newSize;else while(node.contents.length<newSize)node.contents.push(0);node.usedBytes=newSize}),node_ops:{getattr:(function(node){var attr={};attr.dev=FS.isChrdev(node.mode)?node.id:1;attr.ino=node.id;attr.mode=node.mode;attr.nlink=1;attr.uid=0;attr.gid=0;attr.rdev=node.rdev;if(FS.isDir(node.mode)){attr.size=4096}else if(FS.isFile(node.mode)){attr.size=node.usedBytes}else if(FS.isLink(node.mode)){attr.size=node.link.length}else{attr.size=0}attr.atime=new Date(node.timestamp);attr.mtime=new Date(node.timestamp);attr.ctime=new Date(node.timestamp);attr.blksize=4096;attr.blocks=Math.ceil(attr.size/attr.blksize);return attr}),setattr:(function(node,attr){if(attr.mode!==undefined){node.mode=attr.mode}if(attr.timestamp!==undefined){node.timestamp=attr.timestamp}if(attr.size!==undefined){MEMFS.resizeFileStorage(node,attr.size)}}),lookup:(function(parent,name){throw FS.genericErrors[ERRNO_CODES.ENOENT]}),mknod:(function(parent,name,mode,dev){return MEMFS.createNode(parent,name,mode,dev)}),rename:(function(old_node,new_dir,new_name){if(FS.isDir(old_node.mode)){var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(new_node){for(var i in new_node.contents){throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY)}}}delete old_node.parent.contents[old_node.name];old_node.name=new_name;new_dir.contents[new_name]=old_node;old_node.parent=new_dir}),unlink:(function(parent,name){delete parent.contents[name]}),rmdir:(function(parent,name){var node=FS.lookupNode(parent,name);for(var i in node.contents){throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY)}delete parent.contents[name]}),readdir:(function(node){var entries=[".",".."];for(var key in node.contents){if(!node.contents.hasOwnProperty(key)){continue}entries.push(key)}return entries}),symlink:(function(parent,newname,oldpath){var node=MEMFS.createNode(parent,newname,511|40960,0);node.link=oldpath;return node}),readlink:(function(node){if(!FS.isLink(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return node.link})},stream_ops:{read:(function(stream,buffer,offset,length,position){var contents=stream.node.contents;if(position>=stream.node.usedBytes)return 0;var size=Math.min(stream.node.usedBytes-position,length);assert(size>=0);if(size>8&&contents.subarray){buffer.set(contents.subarray(position,position+size),offset)}else{for(var i=0;i<size;i++)buffer[offset+i]=contents[position+i]}return size}),write:(function(stream,buffer,offset,length,position,canOwn){if(!length)return 0;var node=stream.node;node.timestamp=Date.now();if(buffer.subarray&&(!node.contents||node.contents.subarray)){if(canOwn){node.contents=buffer.subarray(offset,offset+length);node.usedBytes=length;return length}else if(node.usedBytes===0&&position===0){node.contents=new Uint8Array(buffer.subarray(offset,offset+length));node.usedBytes=length;return length}else if(position+length<=node.usedBytes){node.contents.set(buffer.subarray(offset,offset+length),position);return length}}MEMFS.expandFileStorage(node,position+length);if(node.contents.subarray&&buffer.subarray)node.contents.set(buffer.subarray(offset,offset+length),position);else{for(var i=0;i<length;i++){node.contents[position+i]=buffer[offset+i]}}node.usedBytes=Math.max(node.usedBytes,position+length);return length}),llseek:(function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){position+=stream.node.usedBytes}}if(position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return position}),allocate:(function(stream,offset,length){MEMFS.expandFileStorage(stream.node,offset+length);stream.node.usedBytes=Math.max(stream.node.usedBytes,offset+length)}),mmap:(function(stream,buffer,offset,length,position,prot,flags){if(!FS.isFile(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}var ptr;var allocated;var contents=stream.node.contents;if(!(flags&2)&&(contents.buffer===buffer||contents.buffer===buffer.buffer)){allocated=false;ptr=contents.byteOffset}else{if(position>0||position+length<stream.node.usedBytes){if(contents.subarray){contents=contents.subarray(position,position+length)}else{contents=Array.prototype.slice.call(contents,position,position+length)}}allocated=true;ptr=_malloc(length);if(!ptr){throw new FS.ErrnoError(ERRNO_CODES.ENOMEM)}buffer.set(contents,ptr)}return{ptr:ptr,allocated:allocated}}),msync:(function(stream,buffer,offset,length,mmapFlags){if(!FS.isFile(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}if(mmapFlags&2){return 0}var bytesWritten=MEMFS.stream_ops.write(stream,buffer,0,length,offset,false);return 0})}};var IDBFS={dbs:{},indexedDB:(function(){if(typeof indexedDB!=="undefined")return indexedDB;var ret=null;if(typeof window==="object")ret=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB;assert(ret,"IDBFS used, but indexedDB not supported");return ret}),DB_VERSION:21,DB_STORE_NAME:"FILE_DATA",mount:(function(mount){return MEMFS.mount.apply(null,arguments)}),syncfs:(function(mount,populate,callback){IDBFS.getLocalSet(mount,(function(err,local){if(err)return callback(err);IDBFS.getRemoteSet(mount,(function(err,remote){if(err)return callback(err);var src=populate?remote:local;var dst=populate?local:remote;IDBFS.reconcile(src,dst,callback)}))}))}),getDB:(function(name,callback){var db=IDBFS.dbs[name];if(db){return callback(null,db)}var req;try{req=IDBFS.indexedDB().open(name,IDBFS.DB_VERSION)}catch(e){return callback(e)}if(!req){return callback("Unable to connect to IndexedDB")}req.onupgradeneeded=(function(e){var db=e.target.result;var transaction=e.target.transaction;var fileStore;if(db.objectStoreNames.contains(IDBFS.DB_STORE_NAME)){fileStore=transaction.objectStore(IDBFS.DB_STORE_NAME)}else{fileStore=db.createObjectStore(IDBFS.DB_STORE_NAME)}if(!fileStore.indexNames.contains("timestamp")){fileStore.createIndex("timestamp","timestamp",{unique:false})}});req.onsuccess=(function(){db=req.result;IDBFS.dbs[name]=db;callback(null,db)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),getLocalSet:(function(mount,callback){var entries={};function isRealDir(p){return p!=="."&&p!==".."}function toAbsolute(root){return(function(p){return PATH.join2(root,p)})}var check=FS.readdir(mount.mountpoint).filter(isRealDir).map(toAbsolute(mount.mountpoint));while(check.length){var path=check.pop();var stat;try{stat=FS.stat(path)}catch(e){return callback(e)}if(FS.isDir(stat.mode)){check.push.apply(check,FS.readdir(path).filter(isRealDir).map(toAbsolute(path)))}entries[path]={timestamp:stat.mtime}}return callback(null,{type:"local",entries:entries})}),getRemoteSet:(function(mount,callback){var entries={};IDBFS.getDB(mount.mountpoint,(function(err,db){if(err)return callback(err);var transaction=db.transaction([IDBFS.DB_STORE_NAME],"readonly");transaction.onerror=(function(e){callback(this.error);e.preventDefault()});var store=transaction.objectStore(IDBFS.DB_STORE_NAME);var index=store.index("timestamp");index.openKeyCursor().onsuccess=(function(event){var cursor=event.target.result;if(!cursor){return callback(null,{type:"remote",db:db,entries:entries})}entries[cursor.primaryKey]={timestamp:cursor.key};cursor.continue()})}))}),loadLocalEntry:(function(path,callback){var stat,node;try{var lookup=FS.lookupPath(path);node=lookup.node;stat=FS.stat(path)}catch(e){return callback(e)}if(FS.isDir(stat.mode)){return callback(null,{timestamp:stat.mtime,mode:stat.mode})}else if(FS.isFile(stat.mode)){node.contents=MEMFS.getFileDataAsTypedArray(node);return callback(null,{timestamp:stat.mtime,mode:stat.mode,contents:node.contents})}else{return callback(new Error("node type not supported"))}}),storeLocalEntry:(function(path,entry,callback){try{if(FS.isDir(entry.mode)){FS.mkdir(path,entry.mode)}else if(FS.isFile(entry.mode)){FS.writeFile(path,entry.contents,{encoding:"binary",canOwn:true})}else{return callback(new Error("node type not supported"))}FS.chmod(path,entry.mode);FS.utime(path,entry.timestamp,entry.timestamp)}catch(e){return callback(e)}callback(null)}),removeLocalEntry:(function(path,callback){try{var lookup=FS.lookupPath(path);var stat=FS.stat(path);if(FS.isDir(stat.mode)){FS.rmdir(path)}else if(FS.isFile(stat.mode)){FS.unlink(path)}}catch(e){return callback(e)}callback(null)}),loadRemoteEntry:(function(store,path,callback){var req=store.get(path);req.onsuccess=(function(event){callback(null,event.target.result)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),storeRemoteEntry:(function(store,path,entry,callback){var req=store.put(entry,path);req.onsuccess=(function(){callback(null)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),removeRemoteEntry:(function(store,path,callback){var req=store.delete(path);req.onsuccess=(function(){callback(null)});req.onerror=(function(e){callback(this.error);e.preventDefault()})}),reconcile:(function(src,dst,callback){var total=0;var create=[];Object.keys(src.entries).forEach((function(key){var e=src.entries[key];var e2=dst.entries[key];if(!e2||e.timestamp>e2.timestamp){create.push(key);total++}}));var remove=[];Object.keys(dst.entries).forEach((function(key){var e=dst.entries[key];var e2=src.entries[key];if(!e2){remove.push(key);total++}}));if(!total){return callback(null)}var completed=0;var db=src.type==="remote"?src.db:dst.db;var transaction=db.transaction([IDBFS.DB_STORE_NAME],"readwrite");var store=transaction.objectStore(IDBFS.DB_STORE_NAME);function done(err){if(err){if(!done.errored){done.errored=true;return callback(err)}return}if(++completed>=total){return callback(null)}}transaction.onerror=(function(e){done(this.error);e.preventDefault()});create.sort().forEach((function(path){if(dst.type==="local"){IDBFS.loadRemoteEntry(store,path,(function(err,entry){if(err)return done(err);IDBFS.storeLocalEntry(path,entry,done)}))}else{IDBFS.loadLocalEntry(path,(function(err,entry){if(err)return done(err);IDBFS.storeRemoteEntry(store,path,entry,done)}))}}));remove.sort().reverse().forEach((function(path){if(dst.type==="local"){IDBFS.removeLocalEntry(path,done)}else{IDBFS.removeRemoteEntry(store,path,done)}}))})};var NODEFS={isWindows:false,staticInit:(function(){NODEFS.isWindows=!!process.platform.match(/^win/)}),mount:(function(mount){assert(ENVIRONMENT_IS_NODE);return NODEFS.createNode(null,"/",NODEFS.getMode(mount.opts.root),0)}),createNode:(function(parent,name,mode,dev){if(!FS.isDir(mode)&&!FS.isFile(mode)&&!FS.isLink(mode)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var node=FS.createNode(parent,name,mode);node.node_ops=NODEFS.node_ops;node.stream_ops=NODEFS.stream_ops;return node}),getMode:(function(path){var stat;try{stat=fs.lstatSync(path);if(NODEFS.isWindows){stat.mode=stat.mode|(stat.mode&146)>>1}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}return stat.mode}),realPath:(function(node){var parts=[];while(node.parent!==node){parts.push(node.name);node=node.parent}parts.push(node.mount.opts.root);parts.reverse();return PATH.join.apply(null,parts)}),flagsToPermissionStringMap:{0:"r",1:"r+",2:"r+",64:"r",65:"r+",66:"r+",129:"rx+",193:"rx+",514:"w+",577:"w",578:"w+",705:"wx",706:"wx+",1024:"a",1025:"a",1026:"a+",1089:"a",1090:"a+",1153:"ax",1154:"ax+",1217:"ax",1218:"ax+",4096:"rs",4098:"rs+"},flagsToPermissionString:(function(flags){flags&=~2097152;flags&=~2048;flags&=~32768;flags&=~524288;if(flags in NODEFS.flagsToPermissionStringMap){return NODEFS.flagsToPermissionStringMap[flags]}else{throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}}),node_ops:{getattr:(function(node){var path=NODEFS.realPath(node);var stat;try{stat=fs.lstatSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}if(NODEFS.isWindows&&!stat.blksize){stat.blksize=4096}if(NODEFS.isWindows&&!stat.blocks){stat.blocks=(stat.size+stat.blksize-1)/stat.blksize|0}return{dev:stat.dev,ino:stat.ino,mode:stat.mode,nlink:stat.nlink,uid:stat.uid,gid:stat.gid,rdev:stat.rdev,size:stat.size,atime:stat.atime,mtime:stat.mtime,ctime:stat.ctime,blksize:stat.blksize,blocks:stat.blocks}}),setattr:(function(node,attr){var path=NODEFS.realPath(node);try{if(attr.mode!==undefined){fs.chmodSync(path,attr.mode);node.mode=attr.mode}if(attr.timestamp!==undefined){var date=new Date(attr.timestamp);fs.utimesSync(path,date,date)}if(attr.size!==undefined){fs.truncateSync(path,attr.size)}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),lookup:(function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);var mode=NODEFS.getMode(path);return NODEFS.createNode(parent,name,mode)}),mknod:(function(parent,name,mode,dev){var node=NODEFS.createNode(parent,name,mode,dev);var path=NODEFS.realPath(node);try{if(FS.isDir(node.mode)){fs.mkdirSync(path,node.mode)}else{fs.writeFileSync(path,"",{mode:node.mode})}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}return node}),rename:(function(oldNode,newDir,newName){var oldPath=NODEFS.realPath(oldNode);var newPath=PATH.join2(NODEFS.realPath(newDir),newName);try{fs.renameSync(oldPath,newPath)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),unlink:(function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);try{fs.unlinkSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),rmdir:(function(parent,name){var path=PATH.join2(NODEFS.realPath(parent),name);try{fs.rmdirSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),readdir:(function(node){var path=NODEFS.realPath(node);try{return fs.readdirSync(path)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),symlink:(function(parent,newName,oldPath){var newPath=PATH.join2(NODEFS.realPath(parent),newName);try{fs.symlinkSync(oldPath,newPath)}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),readlink:(function(node){var path=NODEFS.realPath(node);try{path=fs.readlinkSync(path);path=NODEJS_PATH.relative(NODEJS_PATH.resolve(node.mount.opts.root),path);return path}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}})},stream_ops:{open:(function(stream){var path=NODEFS.realPath(stream.node);try{if(FS.isFile(stream.node.mode)){stream.nfd=fs.openSync(path,NODEFS.flagsToPermissionString(stream.flags))}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),close:(function(stream){try{if(FS.isFile(stream.node.mode)&&stream.nfd){fs.closeSync(stream.nfd)}}catch(e){if(!e.code)throw e;throw new FS.ErrnoError(ERRNO_CODES[e.code])}}),read:(function(stream,buffer,offset,length,position){if(length===0)return 0;var nbuffer=new Buffer(length);var res;try{res=fs.readSync(stream.nfd,nbuffer,0,length,position)}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}if(res>0){for(var i=0;i<res;i++){buffer[offset+i]=nbuffer[i]}}return res}),write:(function(stream,buffer,offset,length,position){var nbuffer=new Buffer(buffer.subarray(offset,offset+length));var res;try{res=fs.writeSync(stream.nfd,nbuffer,0,length,position)}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}return res}),llseek:(function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){try{var stat=fs.fstatSync(stream.nfd);position+=stat.size}catch(e){throw new FS.ErrnoError(ERRNO_CODES[e.code])}}}if(position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return position})}};var WORKERFS={DIR_MODE:16895,FILE_MODE:33279,reader:null,mount:(function(mount){assert(ENVIRONMENT_IS_WORKER);if(!WORKERFS.reader)WORKERFS.reader=new FileReaderSync;var root=WORKERFS.createNode(null,"/",WORKERFS.DIR_MODE,0);var createdParents={};function ensureParent(path){var parts=path.split("/");var parent=root;for(var i=0;i<parts.length-1;i++){var curr=parts.slice(0,i+1).join("/");if(!createdParents[curr]){createdParents[curr]=WORKERFS.createNode(parent,parts[i],WORKERFS.DIR_MODE,0)}parent=createdParents[curr]}return parent}function base(path){var parts=path.split("/");return parts[parts.length-1]}Array.prototype.forEach.call(mount.opts["files"]||[],(function(file){WORKERFS.createNode(ensureParent(file.name),base(file.name),WORKERFS.FILE_MODE,0,file,file.lastModifiedDate)}));(mount.opts["blobs"]||[]).forEach((function(obj){WORKERFS.createNode(ensureParent(obj["name"]),base(obj["name"]),WORKERFS.FILE_MODE,0,obj["data"])}));(mount.opts["packages"]||[]).forEach((function(pack){pack["metadata"].files.forEach((function(file){var name=file.filename.substr(1);WORKERFS.createNode(ensureParent(name),base(name),WORKERFS.FILE_MODE,0,pack["blob"].slice(file.start,file.end))}))}));return root}),createNode:(function(parent,name,mode,dev,contents,mtime){var node=FS.createNode(parent,name,mode);node.mode=mode;node.node_ops=WORKERFS.node_ops;node.stream_ops=WORKERFS.stream_ops;node.timestamp=(mtime||new Date).getTime();assert(WORKERFS.FILE_MODE!==WORKERFS.DIR_MODE);if(mode===WORKERFS.FILE_MODE){node.size=contents.size;node.contents=contents}else{node.size=4096;node.contents={}}if(parent){parent.contents[name]=node}return node}),node_ops:{getattr:(function(node){return{dev:1,ino:undefined,mode:node.mode,nlink:1,uid:0,gid:0,rdev:undefined,size:node.size,atime:new Date(node.timestamp),mtime:new Date(node.timestamp),ctime:new Date(node.timestamp),blksize:4096,blocks:Math.ceil(node.size/4096)}}),setattr:(function(node,attr){if(attr.mode!==undefined){node.mode=attr.mode}if(attr.timestamp!==undefined){node.timestamp=attr.timestamp}}),lookup:(function(parent,name){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}),mknod:(function(parent,name,mode,dev){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),rename:(function(oldNode,newDir,newName){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),unlink:(function(parent,name){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),rmdir:(function(parent,name){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),readdir:(function(node){var entries=[".",".."];for(var key in node.contents){if(!node.contents.hasOwnProperty(key)){continue}entries.push(key)}return entries}),symlink:(function(parent,newName,oldPath){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}),readlink:(function(node){throw new FS.ErrnoError(ERRNO_CODES.EPERM)})},stream_ops:{read:(function(stream,buffer,offset,length,position){if(position>=stream.node.size)return 0;var chunk=stream.node.contents.slice(position,position+length);var ab=WORKERFS.reader.readAsArrayBuffer(chunk);buffer.set(new Uint8Array(ab),offset);return chunk.size}),write:(function(stream,buffer,offset,length,position){throw new FS.ErrnoError(ERRNO_CODES.EIO)}),llseek:(function(stream,offset,whence){var position=offset;if(whence===1){position+=stream.position}else if(whence===2){if(FS.isFile(stream.node.mode)){position+=stream.node.size}}if(position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return position})}};STATICTOP+=16;STATICTOP+=16;STATICTOP+=16;var FS={root:null,mounts:[],devices:[null],streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:false,ignorePermissions:true,trackingDelegate:{},tracking:{openFlags:{READ:1,WRITE:2}},ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,handleFSError:(function(e){if(!(e instanceof FS.ErrnoError))throw e+" : "+stackTrace();return ___setErrNo(e.errno)}),lookupPath:(function(path,opts){path=PATH.resolve(FS.cwd(),path);opts=opts||{};if(!path)return{path:"",node:null};var defaults={follow_mount:true,recurse_count:0};for(var key in defaults){if(opts[key]===undefined){opts[key]=defaults[key]}}if(opts.recurse_count>8){throw new FS.ErrnoError(ERRNO_CODES.ELOOP)}var parts=PATH.normalizeArray(path.split("/").filter((function(p){return!!p})),false);var current=FS.root;var current_path="/";for(var i=0;i<parts.length;i++){var islast=i===parts.length-1;if(islast&&opts.parent){break}current=FS.lookupNode(current,parts[i]);current_path=PATH.join2(current_path,parts[i]);if(FS.isMountpoint(current)){if(!islast||islast&&opts.follow_mount){current=current.mounted.root}}if(!islast||opts.follow){var count=0;while(FS.isLink(current.mode)){var link=FS.readlink(current_path);current_path=PATH.resolve(PATH.dirname(current_path),link);var lookup=FS.lookupPath(current_path,{recurse_count:opts.recurse_count});current=lookup.node;if(count++>40){throw new FS.ErrnoError(ERRNO_CODES.ELOOP)}}}}return{path:current_path,node:current}}),getPath:(function(node){var path;while(true){if(FS.isRoot(node)){var mount=node.mount.mountpoint;if(!path)return mount;return mount[mount.length-1]!=="/"?mount+"/"+path:mount+path}path=path?node.name+"/"+path:node.name;node=node.parent}}),hashName:(function(parentid,name){var hash=0;for(var i=0;i<name.length;i++){hash=(hash<<5)-hash+name.charCodeAt(i)|0}return(parentid+hash>>>0)%FS.nameTable.length}),hashAddNode:(function(node){var hash=FS.hashName(node.parent.id,node.name);node.name_next=FS.nameTable[hash];FS.nameTable[hash]=node}),hashRemoveNode:(function(node){var hash=FS.hashName(node.parent.id,node.name);if(FS.nameTable[hash]===node){FS.nameTable[hash]=node.name_next}else{var current=FS.nameTable[hash];while(current){if(current.name_next===node){current.name_next=node.name_next;break}current=current.name_next}}}),lookupNode:(function(parent,name){var err=FS.mayLookup(parent);if(err){throw new FS.ErrnoError(err,parent)}var hash=FS.hashName(parent.id,name);for(var node=FS.nameTable[hash];node;node=node.name_next){var nodeName=node.name;if(node.parent.id===parent.id&&nodeName===name){return node}}return FS.lookup(parent,name)}),createNode:(function(parent,name,mode,rdev){if(!FS.FSNode){FS.FSNode=(function(parent,name,mode,rdev){if(!parent){parent=this}this.parent=parent;this.mount=parent.mount;this.mounted=null;this.id=FS.nextInode++;this.name=name;this.mode=mode;this.node_ops={};this.stream_ops={};this.rdev=rdev});FS.FSNode.prototype={};var readMode=292|73;var writeMode=146;Object.defineProperties(FS.FSNode.prototype,{read:{get:(function(){return(this.mode&readMode)===readMode}),set:(function(val){val?this.mode|=readMode:this.mode&=~readMode})},write:{get:(function(){return(this.mode&writeMode)===writeMode}),set:(function(val){val?this.mode|=writeMode:this.mode&=~writeMode})},isFolder:{get:(function(){return FS.isDir(this.mode)})},isDevice:{get:(function(){return FS.isChrdev(this.mode)})}})}var node=new FS.FSNode(parent,name,mode,rdev);FS.hashAddNode(node);return node}),destroyNode:(function(node){FS.hashRemoveNode(node)}),isRoot:(function(node){return node===node.parent}),isMountpoint:(function(node){return!!node.mounted}),isFile:(function(mode){return(mode&61440)===32768}),isDir:(function(mode){return(mode&61440)===16384}),isLink:(function(mode){return(mode&61440)===40960}),isChrdev:(function(mode){return(mode&61440)===8192}),isBlkdev:(function(mode){return(mode&61440)===24576}),isFIFO:(function(mode){return(mode&61440)===4096}),isSocket:(function(mode){return(mode&49152)===49152}),flagModes:{"r":0,"rs":1052672,"r+":2,"w":577,"wx":705,"xw":705,"w+":578,"wx+":706,"xw+":706,"a":1089,"ax":1217,"xa":1217,"a+":1090,"ax+":1218,"xa+":1218},modeStringToFlags:(function(str){var flags=FS.flagModes[str];if(typeof flags==="undefined"){throw new Error("Unknown file open mode: "+str)}return flags}),flagsToPermissionString:(function(flag){var perms=["r","w","rw"][flag&3];if(flag&512){perms+="w"}return perms}),nodePermissions:(function(node,perms){if(FS.ignorePermissions){return 0}if(perms.indexOf("r")!==-1&&!(node.mode&292)){return ERRNO_CODES.EACCES}else if(perms.indexOf("w")!==-1&&!(node.mode&146)){return ERRNO_CODES.EACCES}else if(perms.indexOf("x")!==-1&&!(node.mode&73)){return ERRNO_CODES.EACCES}return 0}),mayLookup:(function(dir){var err=FS.nodePermissions(dir,"x");if(err)return err;if(!dir.node_ops.lookup)return ERRNO_CODES.EACCES;return 0}),mayCreate:(function(dir,name){try{var node=FS.lookupNode(dir,name);return ERRNO_CODES.EEXIST}catch(e){}return FS.nodePermissions(dir,"wx")}),mayDelete:(function(dir,name,isdir){var node;try{node=FS.lookupNode(dir,name)}catch(e){return e.errno}var err=FS.nodePermissions(dir,"wx");if(err){return err}if(isdir){if(!FS.isDir(node.mode)){return ERRNO_CODES.ENOTDIR}if(FS.isRoot(node)||FS.getPath(node)===FS.cwd()){return ERRNO_CODES.EBUSY}}else{if(FS.isDir(node.mode)){return ERRNO_CODES.EISDIR}}return 0}),mayOpen:(function(node,flags){if(!node){return ERRNO_CODES.ENOENT}if(FS.isLink(node.mode)){return ERRNO_CODES.ELOOP}else if(FS.isDir(node.mode)){if(FS.flagsToPermissionString(flags)!=="r"||flags&512){return ERRNO_CODES.EISDIR}}return FS.nodePermissions(node,FS.flagsToPermissionString(flags))}),MAX_OPEN_FDS:4096,nextfd:(function(fd_start,fd_end){fd_start=fd_start||0;fd_end=fd_end||FS.MAX_OPEN_FDS;for(var fd=fd_start;fd<=fd_end;fd++){if(!FS.streams[fd]){return fd}}throw new FS.ErrnoError(ERRNO_CODES.EMFILE)}),getStream:(function(fd){return FS.streams[fd]}),createStream:(function(stream,fd_start,fd_end){if(!FS.FSStream){FS.FSStream=(function(){});FS.FSStream.prototype={};Object.defineProperties(FS.FSStream.prototype,{object:{get:(function(){return this.node}),set:(function(val){this.node=val})},isRead:{get:(function(){return(this.flags&2097155)!==1})},isWrite:{get:(function(){return(this.flags&2097155)!==0})},isAppend:{get:(function(){return this.flags&1024})}})}var newStream=new FS.FSStream;for(var p in stream){newStream[p]=stream[p]}stream=newStream;var fd=FS.nextfd(fd_start,fd_end);stream.fd=fd;FS.streams[fd]=stream;return stream}),closeStream:(function(fd){FS.streams[fd]=null}),chrdev_stream_ops:{open:(function(stream){var device=FS.getDevice(stream.node.rdev);stream.stream_ops=device.stream_ops;if(stream.stream_ops.open){stream.stream_ops.open(stream)}}),llseek:(function(){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)})},major:(function(dev){return dev>>8}),minor:(function(dev){return dev&255}),makedev:(function(ma,mi){return ma<<8|mi}),registerDevice:(function(dev,ops){FS.devices[dev]={stream_ops:ops}}),getDevice:(function(dev){return FS.devices[dev]}),getMounts:(function(mount){var mounts=[];var check=[mount];while(check.length){var m=check.pop();mounts.push(m);check.push.apply(check,m.mounts)}return mounts}),syncfs:(function(populate,callback){if(typeof populate==="function"){callback=populate;populate=false}FS.syncFSRequests++;if(FS.syncFSRequests>1){console.log("warning: "+FS.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work")}var mounts=FS.getMounts(FS.root.mount);var completed=0;function doCallback(err){assert(FS.syncFSRequests>0);FS.syncFSRequests--;return callback(err)}function done(err){if(err){if(!done.errored){done.errored=true;return doCallback(err)}return}if(++completed>=mounts.length){doCallback(null)}}mounts.forEach((function(mount){if(!mount.type.syncfs){return done(null)}mount.type.syncfs(mount,populate,done)}))}),mount:(function(type,opts,mountpoint){var root=mountpoint==="/";var pseudo=!mountpoint;var node;if(root&&FS.root){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}else if(!root&&!pseudo){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});mountpoint=lookup.path;node=lookup.node;if(FS.isMountpoint(node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}if(!FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}}var mount={type:type,opts:opts,mountpoint:mountpoint,mounts:[]};var mountRoot=type.mount(mount);mountRoot.mount=mount;mount.root=mountRoot;if(root){FS.root=mountRoot}else if(node){node.mounted=mount;if(node.mount){node.mount.mounts.push(mount)}}return mountRoot}),unmount:(function(mountpoint){var lookup=FS.lookupPath(mountpoint,{follow_mount:false});if(!FS.isMountpoint(lookup.node)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var node=lookup.node;var mount=node.mounted;var mounts=FS.getMounts(mount);Object.keys(FS.nameTable).forEach((function(hash){var current=FS.nameTable[hash];while(current){var next=current.name_next;if(mounts.indexOf(current.mount)!==-1){FS.destroyNode(current)}current=next}}));node.mounted=null;var idx=node.mount.mounts.indexOf(mount);assert(idx!==-1);node.mount.mounts.splice(idx,1)}),lookup:(function(parent,name){return parent.node_ops.lookup(parent,name)}),mknod:(function(path,mode,dev){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);if(!name||name==="."||name===".."){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var err=FS.mayCreate(parent,name);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.mknod){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}return parent.node_ops.mknod(parent,name,mode,dev)}),create:(function(path,mode){mode=mode!==undefined?mode:438;mode&=4095;mode|=32768;return FS.mknod(path,mode,0)}),mkdir:(function(path,mode){mode=mode!==undefined?mode:511;mode&=511|512;mode|=16384;return FS.mknod(path,mode,0)}),mkdirTree:(function(path,mode){var dirs=path.split("/");var d="";for(var i=0;i<dirs.length;++i){if(!dirs[i])continue;d+="/"+dirs[i];try{FS.mkdir(d,mode)}catch(e){if(e.errno!=ERRNO_CODES.EEXIST)throw e}}}),mkdev:(function(path,mode,dev){if(typeof dev==="undefined"){dev=mode;mode=438}mode|=8192;return FS.mknod(path,mode,dev)}),symlink:(function(oldpath,newpath){if(!PATH.resolve(oldpath)){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}var lookup=FS.lookupPath(newpath,{parent:true});var parent=lookup.node;if(!parent){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}var newname=PATH.basename(newpath);var err=FS.mayCreate(parent,newname);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.symlink){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}return parent.node_ops.symlink(parent,newname,oldpath)}),rename:(function(old_path,new_path){var old_dirname=PATH.dirname(old_path);var new_dirname=PATH.dirname(new_path);var old_name=PATH.basename(old_path);var new_name=PATH.basename(new_path);var lookup,old_dir,new_dir;try{lookup=FS.lookupPath(old_path,{parent:true});old_dir=lookup.node;lookup=FS.lookupPath(new_path,{parent:true});new_dir=lookup.node}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}if(!old_dir||!new_dir)throw new FS.ErrnoError(ERRNO_CODES.ENOENT);if(old_dir.mount!==new_dir.mount){throw new FS.ErrnoError(ERRNO_CODES.EXDEV)}var old_node=FS.lookupNode(old_dir,old_name);var relative=PATH.relative(old_path,new_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}relative=PATH.relative(new_path,old_dirname);if(relative.charAt(0)!=="."){throw new FS.ErrnoError(ERRNO_CODES.ENOTEMPTY)}var new_node;try{new_node=FS.lookupNode(new_dir,new_name)}catch(e){}if(old_node===new_node){return}var isdir=FS.isDir(old_node.mode);var err=FS.mayDelete(old_dir,old_name,isdir);if(err){throw new FS.ErrnoError(err)}err=new_node?FS.mayDelete(new_dir,new_name,isdir):FS.mayCreate(new_dir,new_name);if(err){throw new FS.ErrnoError(err)}if(!old_dir.node_ops.rename){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isMountpoint(old_node)||new_node&&FS.isMountpoint(new_node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}if(new_dir!==old_dir){err=FS.nodePermissions(old_dir,"w");if(err){throw new FS.ErrnoError(err)}}try{if(FS.trackingDelegate["willMovePath"]){FS.trackingDelegate["willMovePath"](old_path,new_path)}}catch(e){console.log("FS.trackingDelegate['willMovePath']('"+old_path+"', '"+new_path+"') threw an exception: "+e.message)}FS.hashRemoveNode(old_node);try{old_dir.node_ops.rename(old_node,new_dir,new_name)}catch(e){throw e}finally{FS.hashAddNode(old_node)}try{if(FS.trackingDelegate["onMovePath"])FS.trackingDelegate["onMovePath"](old_path,new_path)}catch(e){console.log("FS.trackingDelegate['onMovePath']('"+old_path+"', '"+new_path+"') threw an exception: "+e.message)}}),rmdir:(function(path){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);var node=FS.lookupNode(parent,name);var err=FS.mayDelete(parent,name,true);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.rmdir){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isMountpoint(node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}try{if(FS.trackingDelegate["willDeletePath"]){FS.trackingDelegate["willDeletePath"](path)}}catch(e){console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: "+e.message)}parent.node_ops.rmdir(parent,name);FS.destroyNode(node);try{if(FS.trackingDelegate["onDeletePath"])FS.trackingDelegate["onDeletePath"](path)}catch(e){console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: "+e.message)}}),readdir:(function(path){var lookup=FS.lookupPath(path,{follow:true});var node=lookup.node;if(!node.node_ops.readdir){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}return node.node_ops.readdir(node)}),unlink:(function(path){var lookup=FS.lookupPath(path,{parent:true});var parent=lookup.node;var name=PATH.basename(path);var node=FS.lookupNode(parent,name);var err=FS.mayDelete(parent,name,false);if(err){throw new FS.ErrnoError(err)}if(!parent.node_ops.unlink){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isMountpoint(node)){throw new FS.ErrnoError(ERRNO_CODES.EBUSY)}try{if(FS.trackingDelegate["willDeletePath"]){FS.trackingDelegate["willDeletePath"](path)}}catch(e){console.log("FS.trackingDelegate['willDeletePath']('"+path+"') threw an exception: "+e.message)}parent.node_ops.unlink(parent,name);FS.destroyNode(node);try{if(FS.trackingDelegate["onDeletePath"])FS.trackingDelegate["onDeletePath"](path)}catch(e){console.log("FS.trackingDelegate['onDeletePath']('"+path+"') threw an exception: "+e.message)}}),readlink:(function(path){var lookup=FS.lookupPath(path);var link=lookup.node;if(!link){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(!link.node_ops.readlink){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}return PATH.resolve(FS.getPath(link.parent),link.node_ops.readlink(link))}),stat:(function(path,dontFollow){var lookup=FS.lookupPath(path,{follow:!dontFollow});var node=lookup.node;if(!node){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(!node.node_ops.getattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}return node.node_ops.getattr(node)}),lstat:(function(path){return FS.stat(path,true)}),chmod:(function(path,mode,dontFollow){var node;if(typeof path==="string"){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}node.node_ops.setattr(node,{mode:mode&4095|node.mode&~4095,timestamp:Date.now()})}),lchmod:(function(path,mode){FS.chmod(path,mode,true)}),fchmod:(function(fd,mode){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}FS.chmod(stream.node,mode)}),chown:(function(path,uid,gid,dontFollow){var node;if(typeof path==="string"){var lookup=FS.lookupPath(path,{follow:!dontFollow});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}node.node_ops.setattr(node,{timestamp:Date.now()})}),lchown:(function(path,uid,gid){FS.chown(path,uid,gid,true)}),fchown:(function(fd,uid,gid){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}FS.chown(stream.node,uid,gid)}),truncate:(function(path,len){if(len<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var node;if(typeof path==="string"){var lookup=FS.lookupPath(path,{follow:true});node=lookup.node}else{node=path}if(!node.node_ops.setattr){throw new FS.ErrnoError(ERRNO_CODES.EPERM)}if(FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EISDIR)}if(!FS.isFile(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var err=FS.nodePermissions(node,"w");if(err){throw new FS.ErrnoError(err)}node.node_ops.setattr(node,{size:len,timestamp:Date.now()})}),ftruncate:(function(fd,len){var stream=FS.getStream(fd);if(!stream){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}FS.truncate(stream.node,len)}),utime:(function(path,atime,mtime){var lookup=FS.lookupPath(path,{follow:true});var node=lookup.node;node.node_ops.setattr(node,{timestamp:Math.max(atime,mtime)})}),open:(function(path,flags,mode,fd_start,fd_end){if(path===""){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}flags=typeof flags==="string"?FS.modeStringToFlags(flags):flags;mode=typeof mode==="undefined"?438:mode;if(flags&64){mode=mode&4095|32768}else{mode=0}var node;if(typeof path==="object"){node=path}else{path=PATH.normalize(path);try{var lookup=FS.lookupPath(path,{follow:!(flags&131072)});node=lookup.node}catch(e){}}var created=false;if(flags&64){if(node){if(flags&128){throw new FS.ErrnoError(ERRNO_CODES.EEXIST)}}else{node=FS.mknod(path,mode,0);created=true}}if(!node){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(FS.isChrdev(node.mode)){flags&=~512}if(flags&65536&&!FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}if(!created){var err=FS.mayOpen(node,flags);if(err){throw new FS.ErrnoError(err)}}if(flags&512){FS.truncate(node,0)}flags&=~(128|512);var stream=FS.createStream({node:node,path:FS.getPath(node),flags:flags,seekable:true,position:0,stream_ops:node.stream_ops,ungotten:[],error:false},fd_start,fd_end);if(stream.stream_ops.open){stream.stream_ops.open(stream)}if(Module["logReadFiles"]&&!(flags&1)){if(!FS.readFiles)FS.readFiles={};if(!(path in FS.readFiles)){FS.readFiles[path]=1;Module["printErr"]("read file: "+path)}}try{if(FS.trackingDelegate["onOpenFile"]){var trackingFlags=0;if((flags&2097155)!==1){trackingFlags|=FS.tracking.openFlags.READ}if((flags&2097155)!==0){trackingFlags|=FS.tracking.openFlags.WRITE}FS.trackingDelegate["onOpenFile"](path,trackingFlags)}}catch(e){console.log("FS.trackingDelegate['onOpenFile']('"+path+"', flags) threw an exception: "+e.message)}return stream}),close:(function(stream){if(stream.getdents)stream.getdents=null;try{if(stream.stream_ops.close){stream.stream_ops.close(stream)}}catch(e){throw e}finally{FS.closeStream(stream.fd)}}),llseek:(function(stream,offset,whence){if(!stream.seekable||!stream.stream_ops.llseek){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}stream.position=stream.stream_ops.llseek(stream,offset,whence);stream.ungotten=[];return stream.position}),read:(function(stream,buffer,offset,length,position){if(length<0||position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if((stream.flags&2097155)===1){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if(FS.isDir(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EISDIR)}if(!stream.stream_ops.read){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var seeking=true;if(typeof position==="undefined"){position=stream.position;seeking=false}else if(!stream.seekable){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}var bytesRead=stream.stream_ops.read(stream,buffer,offset,length,position);if(!seeking)stream.position+=bytesRead;return bytesRead}),write:(function(stream,buffer,offset,length,position,canOwn){if(length<0||position<0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if(FS.isDir(stream.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.EISDIR)}if(!stream.stream_ops.write){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if(stream.flags&1024){FS.llseek(stream,0,2)}var seeking=true;if(typeof position==="undefined"){position=stream.position;seeking=false}else if(!stream.seekable){throw new FS.ErrnoError(ERRNO_CODES.ESPIPE)}var bytesWritten=stream.stream_ops.write(stream,buffer,offset,length,position,canOwn);if(!seeking)stream.position+=bytesWritten;try{if(stream.path&&FS.trackingDelegate["onWriteToFile"])FS.trackingDelegate["onWriteToFile"](stream.path)}catch(e){console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: "+e.message)}return bytesWritten}),allocate:(function(stream,offset,length){if(offset<0||length<=0){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}if((stream.flags&2097155)===0){throw new FS.ErrnoError(ERRNO_CODES.EBADF)}if(!FS.isFile(stream.node.mode)&&!FS.isDir(node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}if(!stream.stream_ops.allocate){throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP)}stream.stream_ops.allocate(stream,offset,length)}),mmap:(function(stream,buffer,offset,length,position,prot,flags){if((stream.flags&2097155)===1){throw new FS.ErrnoError(ERRNO_CODES.EACCES)}if(!stream.stream_ops.mmap){throw new FS.ErrnoError(ERRNO_CODES.ENODEV)}return stream.stream_ops.mmap(stream,buffer,offset,length,position,prot,flags)}),msync:(function(stream,buffer,offset,length,mmapFlags){if(!stream||!stream.stream_ops.msync){return 0}return stream.stream_ops.msync(stream,buffer,offset,length,mmapFlags)}),munmap:(function(stream){return 0}),ioctl:(function(stream,cmd,arg){if(!stream.stream_ops.ioctl){throw new FS.ErrnoError(ERRNO_CODES.ENOTTY)}return stream.stream_ops.ioctl(stream,cmd,arg)}),readFile:(function(path,opts){opts=opts||{};opts.flags=opts.flags||"r";opts.encoding=opts.encoding||"binary";if(opts.encoding!=="utf8"&&opts.encoding!=="binary"){throw new Error('Invalid encoding type "'+opts.encoding+'"')}var ret;var stream=FS.open(path,opts.flags);var stat=FS.stat(path);var length=stat.size;var buf=new Uint8Array(length);FS.read(stream,buf,0,length,0);if(opts.encoding==="utf8"){ret=UTF8ArrayToString(buf,0)}else if(opts.encoding==="binary"){ret=buf}FS.close(stream);return ret}),writeFile:(function(path,data,opts){opts=opts||{};opts.flags=opts.flags||"w";opts.encoding=opts.encoding||"utf8";if(opts.encoding!=="utf8"&&opts.encoding!=="binary"){throw new Error('Invalid encoding type "'+opts.encoding+'"')}var stream=FS.open(path,opts.flags,opts.mode);if(opts.encoding==="utf8"){var buf=new Uint8Array(lengthBytesUTF8(data)+1);var actualNumBytes=stringToUTF8Array(data,buf,0,buf.length);FS.write(stream,buf,0,actualNumBytes,0,opts.canOwn)}else if(opts.encoding==="binary"){FS.write(stream,data,0,data.length,0,opts.canOwn)}FS.close(stream)}),cwd:(function(){return FS.currentPath}),chdir:(function(path){var lookup=FS.lookupPath(path,{follow:true});if(lookup.node===null){throw new FS.ErrnoError(ERRNO_CODES.ENOENT)}if(!FS.isDir(lookup.node.mode)){throw new FS.ErrnoError(ERRNO_CODES.ENOTDIR)}var err=FS.nodePermissions(lookup.node,"x");if(err){throw new FS.ErrnoError(err)}FS.currentPath=lookup.path}),createDefaultDirectories:(function(){FS.mkdir("/tmp");FS.mkdir("/home");FS.mkdir("/home/web_user")}),createDefaultDevices:(function(){FS.mkdir("/dev");FS.registerDevice(FS.makedev(1,3),{read:(function(){return 0}),write:(function(stream,buffer,offset,length,pos){return length})});FS.mkdev("/dev/null",FS.makedev(1,3));TTY.register(FS.makedev(5,0),TTY.default_tty_ops);TTY.register(FS.makedev(6,0),TTY.default_tty1_ops);FS.mkdev("/dev/tty",FS.makedev(5,0));FS.mkdev("/dev/tty1",FS.makedev(6,0));var random_device;if(typeof crypto!=="undefined"){var randomBuffer=new Uint8Array(1);random_device=(function(){crypto.getRandomValues(randomBuffer);return randomBuffer[0]})}else if(ENVIRONMENT_IS_NODE){random_device=(function(){return require("crypto").randomBytes(1)[0]})}else{random_device=(function(){return Math.random()*256|0})}FS.createDevice("/dev","random",random_device);FS.createDevice("/dev","urandom",random_device);FS.mkdir("/dev/shm");FS.mkdir("/dev/shm/tmp")}),createSpecialDirectories:(function(){FS.mkdir("/proc");FS.mkdir("/proc/self");FS.mkdir("/proc/self/fd");FS.mount({mount:(function(){var node=FS.createNode("/proc/self","fd",16384|511,73);node.node_ops={lookup:(function(parent,name){var fd=+name;var stream=FS.getStream(fd);if(!stream)throw new FS.ErrnoError(ERRNO_CODES.EBADF);var ret={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:(function(){return stream.path})}};ret.parent=ret;return ret})};return node})},{},"/proc/self/fd")}),createStandardStreams:(function(){if(Module["stdin"]){FS.createDevice("/dev","stdin",Module["stdin"])}else{FS.symlink("/dev/tty","/dev/stdin")}if(Module["stdout"]){FS.createDevice("/dev","stdout",null,Module["stdout"])}else{FS.symlink("/dev/tty","/dev/stdout")}if(Module["stderr"]){FS.createDevice("/dev","stderr",null,Module["stderr"])}else{FS.symlink("/dev/tty1","/dev/stderr")}var stdin=FS.open("/dev/stdin","r");assert(stdin.fd===0,"invalid handle for stdin ("+stdin.fd+")");var stdout=FS.open("/dev/stdout","w");assert(stdout.fd===1,"invalid handle for stdout ("+stdout.fd+")");var stderr=FS.open("/dev/stderr","w");assert(stderr.fd===2,"invalid handle for stderr ("+stderr.fd+")")}),ensureErrnoError:(function(){if(FS.ErrnoError)return;FS.ErrnoError=function ErrnoError(errno,node){this.node=node;this.setErrno=(function(errno){this.errno=errno;for(var key in ERRNO_CODES){if(ERRNO_CODES[key]===errno){this.code=key;break}}});this.setErrno(errno);this.message=ERRNO_MESSAGES[errno]};FS.ErrnoError.prototype=new Error;FS.ErrnoError.prototype.constructor=FS.ErrnoError;[ERRNO_CODES.ENOENT].forEach((function(code){FS.genericErrors[code]=new FS.ErrnoError(code);FS.genericErrors[code].stack="<generic error, no stack>"}))}),staticInit:(function(){FS.ensureErrnoError();FS.nameTable=new Array(4096);FS.mount(MEMFS,{},"/");FS.createDefaultDirectories();FS.createDefaultDevices();FS.createSpecialDirectories();FS.filesystems={"MEMFS":MEMFS,"IDBFS":IDBFS,"NODEFS":NODEFS,"WORKERFS":WORKERFS}}),init:(function(input,output,error){assert(!FS.init.initialized,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)");FS.init.initialized=true;FS.ensureErrnoError();Module["stdin"]=input||Module["stdin"];Module["stdout"]=output||Module["stdout"];Module["stderr"]=error||Module["stderr"];FS.createStandardStreams()}),quit:(function(){FS.init.initialized=false;var fflush=Module["_fflush"];if(fflush)fflush(0);for(var i=0;i<FS.streams.length;i++){var stream=FS.streams[i];if(!stream){continue}FS.close(stream)}}),getMode:(function(canRead,canWrite){var mode=0;if(canRead)mode|=292|73;if(canWrite)mode|=146;return mode}),joinPath:(function(parts,forceRelative){var path=PATH.join.apply(null,parts);if(forceRelative&&path[0]=="/")path=path.substr(1);return path}),absolutePath:(function(relative,base){return PATH.resolve(base,relative)}),standardizePath:(function(path){return PATH.normalize(path)}),findObject:(function(path,dontResolveLastLink){var ret=FS.analyzePath(path,dontResolveLastLink);if(ret.exists){return ret.object}else{___setErrNo(ret.error);return null}}),analyzePath:(function(path,dontResolveLastLink){try{var lookup=FS.lookupPath(path,{follow:!dontResolveLastLink});path=lookup.path}catch(e){}var ret={isRoot:false,exists:false,error:0,name:null,path:null,object:null,parentExists:false,parentPath:null,parentObject:null};try{var lookup=FS.lookupPath(path,{parent:true});ret.parentExists=true;ret.parentPath=lookup.path;ret.parentObject=lookup.node;ret.name=PATH.basename(path);lookup=FS.lookupPath(path,{follow:!dontResolveLastLink});ret.exists=true;ret.path=lookup.path;ret.object=lookup.node;ret.name=lookup.node.name;ret.isRoot=lookup.path==="/"}catch(e){ret.error=e.errno}return ret}),createFolder:(function(parent,name,canRead,canWrite){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);var mode=FS.getMode(canRead,canWrite);return FS.mkdir(path,mode)}),createPath:(function(parent,path,canRead,canWrite){parent=typeof parent==="string"?parent:FS.getPath(parent);var parts=path.split("/").reverse();while(parts.length){var part=parts.pop();if(!part)continue;var current=PATH.join2(parent,part);try{FS.mkdir(current)}catch(e){}parent=current}return current}),createFile:(function(parent,name,properties,canRead,canWrite){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);var mode=FS.getMode(canRead,canWrite);return FS.create(path,mode)}),createDataFile:(function(parent,name,data,canRead,canWrite,canOwn){var path=name?PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name):parent;var mode=FS.getMode(canRead,canWrite);var node=FS.create(path,mode);if(data){if(typeof data==="string"){var arr=new Array(data.length);for(var i=0,len=data.length;i<len;++i)arr[i]=data.charCodeAt(i);data=arr}FS.chmod(node,mode|146);var stream=FS.open(node,"w");FS.write(stream,data,0,data.length,0,canOwn);FS.close(stream);FS.chmod(node,mode)}return node}),createDevice:(function(parent,name,input,output){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);var mode=FS.getMode(!!input,!!output);if(!FS.createDevice.major)FS.createDevice.major=64;var dev=FS.makedev(FS.createDevice.major++,0);FS.registerDevice(dev,{open:(function(stream){stream.seekable=false}),close:(function(stream){if(output&&output.buffer&&output.buffer.length){output(10)}}),read:(function(stream,buffer,offset,length,pos){var bytesRead=0;for(var i=0;i<length;i++){var result;try{result=input()}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}if(result===undefined&&bytesRead===0){throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}if(result===null||result===undefined)break;bytesRead++;buffer[offset+i]=result}if(bytesRead){stream.node.timestamp=Date.now()}return bytesRead}),write:(function(stream,buffer,offset,length,pos){for(var i=0;i<length;i++){try{output(buffer[offset+i])}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EIO)}}if(length){stream.node.timestamp=Date.now()}return i})});return FS.mkdev(path,mode,dev)}),createLink:(function(parent,name,target,canRead,canWrite){var path=PATH.join2(typeof parent==="string"?parent:FS.getPath(parent),name);return FS.symlink(target,path)}),forceLoadFile:(function(obj){if(obj.isDevice||obj.isFolder||obj.link||obj.contents)return true;var success=true;if(typeof XMLHttpRequest!=="undefined"){throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.")}else if(Module["read"]){try{obj.contents=intArrayFromString(Module["read"](obj.url),true);obj.usedBytes=obj.contents.length}catch(e){success=false}}else{throw new Error("Cannot load without read() or XMLHttpRequest.")}if(!success)___setErrNo(ERRNO_CODES.EIO);return success}),createLazyFile:(function(parent,name,url,canRead,canWrite){function LazyUint8Array(){this.lengthKnown=false;this.chunks=[]}LazyUint8Array.prototype.get=function LazyUint8Array_get(idx){if(idx>this.length-1||idx<0){return undefined}var chunkOffset=idx%this.chunkSize;var chunkNum=idx/this.chunkSize|0;return this.getter(chunkNum)[chunkOffset]};LazyUint8Array.prototype.setDataGetter=function LazyUint8Array_setDataGetter(getter){this.getter=getter};LazyUint8Array.prototype.cacheLength=function LazyUint8Array_cacheLength(){var xhr=new XMLHttpRequest;xhr.open("HEAD",url,false);xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);var datalength=Number(xhr.getResponseHeader("Content-length"));var header;var hasByteServing=(header=xhr.getResponseHeader("Accept-Ranges"))&&header==="bytes";var usesGzip=(header=xhr.getResponseHeader("Content-Encoding"))&&header==="gzip";var chunkSize=1024*1024;if(!hasByteServing)chunkSize=datalength;var doXHR=(function(from,to){if(from>to)throw new Error("invalid range ("+from+", "+to+") or no bytes requested!");if(to>datalength-1)throw new Error("only "+datalength+" bytes available! programmer error!");var xhr=new XMLHttpRequest;xhr.open("GET",url,false);if(datalength!==chunkSize)xhr.setRequestHeader("Range","bytes="+from+"-"+to);if(typeof Uint8Array!="undefined")xhr.responseType="arraybuffer";if(xhr.overrideMimeType){xhr.overrideMimeType("text/plain; charset=x-user-defined")}xhr.send(null);if(!(xhr.status>=200&&xhr.status<300||xhr.status===304))throw new Error("Couldn't load "+url+". Status: "+xhr.status);if(xhr.response!==undefined){return new Uint8Array(xhr.response||[])}else{return intArrayFromString(xhr.responseText||"",true)}});var lazyArray=this;lazyArray.setDataGetter((function(chunkNum){var start=chunkNum*chunkSize;var end=(chunkNum+1)*chunkSize-1;end=Math.min(end,datalength-1);if(typeof lazyArray.chunks[chunkNum]==="undefined"){lazyArray.chunks[chunkNum]=doXHR(start,end)}if(typeof lazyArray.chunks[chunkNum]==="undefined")throw new Error("doXHR failed!");return lazyArray.chunks[chunkNum]}));if(usesGzip||!datalength){chunkSize=datalength=1;datalength=this.getter(0).length;chunkSize=datalength;console.log("LazyFiles on gzip forces download of the whole file when length is accessed")}this._length=datalength;this._chunkSize=chunkSize;this.lengthKnown=true};if(typeof XMLHttpRequest!=="undefined"){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var lazyArray=new LazyUint8Array;Object.defineProperties(lazyArray,{length:{get:(function(){if(!this.lengthKnown){this.cacheLength()}return this._length})},chunkSize:{get:(function(){if(!this.lengthKnown){this.cacheLength()}return this._chunkSize})}});var properties={isDevice:false,contents:lazyArray}}else{var properties={isDevice:false,url:url}}var node=FS.createFile(parent,name,properties,canRead,canWrite);if(properties.contents){node.contents=properties.contents}else if(properties.url){node.contents=null;node.url=properties.url}Object.defineProperties(node,{usedBytes:{get:(function(){return this.contents.length})}});var stream_ops={};var keys=Object.keys(node.stream_ops);keys.forEach((function(key){var fn=node.stream_ops[key];stream_ops[key]=function forceLoadLazyFile(){if(!FS.forceLoadFile(node)){throw new FS.ErrnoError(ERRNO_CODES.EIO)}return fn.apply(null,arguments)}}));stream_ops.read=function stream_ops_read(stream,buffer,offset,length,position){if(!FS.forceLoadFile(node)){throw new FS.ErrnoError(ERRNO_CODES.EIO)}var contents=stream.node.contents;if(position>=contents.length)return 0;var size=Math.min(contents.length-position,length);assert(size>=0);if(contents.slice){for(var i=0;i<size;i++){buffer[offset+i]=contents[position+i]}}else{for(var i=0;i<size;i++){buffer[offset+i]=contents.get(position+i)}}return size};node.stream_ops=stream_ops;return node}),createPreloadedFile:(function(parent,name,url,canRead,canWrite,onload,onerror,dontCreateFile,canOwn,preFinish){Browser.init();var fullname=name?PATH.resolve(PATH.join2(parent,name)):parent;var dep=getUniqueRunDependency("cp "+fullname);function processData(byteArray){function finish(byteArray){if(preFinish)preFinish();if(!dontCreateFile){FS.createDataFile(parent,name,byteArray,canRead,canWrite,canOwn)}if(onload)onload();removeRunDependency(dep)}var handled=false;Module["preloadPlugins"].forEach((function(plugin){if(handled)return;if(plugin["canHandle"](fullname)){plugin["handle"](byteArray,fullname,finish,(function(){if(onerror)onerror();removeRunDependency(dep)}));handled=true}}));if(!handled)finish(byteArray)}addRunDependency(dep);if(typeof url=="string"){Browser.asyncLoad(url,(function(byteArray){processData(byteArray)}),onerror)}else{processData(url)}}),indexedDB:(function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB}),DB_NAME:(function(){return"EM_FS_"+window.location.pathname}),DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:(function(paths,onload,onerror){onload=onload||(function(){});onerror=onerror||(function(){});var indexedDB=FS.indexedDB();try{var openRequest=indexedDB.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return onerror(e)}openRequest.onupgradeneeded=function openRequest_onupgradeneeded(){console.log("creating db");var db=openRequest.result;db.createObjectStore(FS.DB_STORE_NAME)};openRequest.onsuccess=function openRequest_onsuccess(){var db=openRequest.result;var transaction=db.transaction([FS.DB_STORE_NAME],"readwrite");var files=transaction.objectStore(FS.DB_STORE_NAME);var ok=0,fail=0,total=paths.length;function finish(){if(fail==0)onload();else onerror()}paths.forEach((function(path){var putRequest=files.put(FS.analyzePath(path).object.contents,path);putRequest.onsuccess=function putRequest_onsuccess(){ok++;if(ok+fail==total)finish()};putRequest.onerror=function putRequest_onerror(){fail++;if(ok+fail==total)finish()}}));transaction.onerror=onerror};openRequest.onerror=onerror}),loadFilesFromDB:(function(paths,onload,onerror){onload=onload||(function(){});onerror=onerror||(function(){});var indexedDB=FS.indexedDB();try{var openRequest=indexedDB.open(FS.DB_NAME(),FS.DB_VERSION)}catch(e){return onerror(e)}openRequest.onupgradeneeded=onerror;openRequest.onsuccess=function openRequest_onsuccess(){var db=openRequest.result;try{var transaction=db.transaction([FS.DB_STORE_NAME],"readonly")}catch(e){onerror(e);return}var files=transaction.objectStore(FS.DB_STORE_NAME);var ok=0,fail=0,total=paths.length;function finish(){if(fail==0)onload();else onerror()}paths.forEach((function(path){var getRequest=files.get(path);getRequest.onsuccess=function getRequest_onsuccess(){if(FS.analyzePath(path).exists){FS.unlink(path)}FS.createDataFile(PATH.dirname(path),PATH.basename(path),getRequest.result,true,true,true);ok++;if(ok+fail==total)finish()};getRequest.onerror=function getRequest_onerror(){fail++;if(ok+fail==total)finish()}}));transaction.onerror=onerror};openRequest.onerror=onerror})};var SYSCALLS={DEFAULT_POLLMASK:5,mappings:{},umask:511,calculateAt:(function(dirfd,path){if(path[0]!=="/"){var dir;if(dirfd===-100){dir=FS.cwd()}else{var dirstream=FS.getStream(dirfd);if(!dirstream)throw new FS.ErrnoError(ERRNO_CODES.EBADF);dir=dirstream.path}path=PATH.join2(dir,path)}return path}),doStat:(function(func,path,buf){try{var stat=func(path)}catch(e){if(e&&e.node&&PATH.normalize(path)!==PATH.normalize(FS.getPath(e.node))){return-ERRNO_CODES.ENOTDIR}throw e}HEAP32[buf>>2]=stat.dev;HEAP32[buf+4>>2]=0;HEAP32[buf+8>>2]=stat.ino;HEAP32[buf+12>>2]=stat.mode;HEAP32[buf+16>>2]=stat.nlink;HEAP32[buf+20>>2]=stat.uid;HEAP32[buf+24>>2]=stat.gid;HEAP32[buf+28>>2]=stat.rdev;HEAP32[buf+32>>2]=0;HEAP32[buf+36>>2]=stat.size;HEAP32[buf+40>>2]=4096;HEAP32[buf+44>>2]=stat.blocks;HEAP32[buf+48>>2]=stat.atime.getTime()/1e3|0;HEAP32[buf+52>>2]=0;HEAP32[buf+56>>2]=stat.mtime.getTime()/1e3|0;HEAP32[buf+60>>2]=0;HEAP32[buf+64>>2]=stat.ctime.getTime()/1e3|0;HEAP32[buf+68>>2]=0;HEAP32[buf+72>>2]=stat.ino;return 0}),doMsync:(function(addr,stream,len,flags){var buffer=new Uint8Array(HEAPU8.subarray(addr,addr+len));FS.msync(stream,buffer,0,len,flags)}),doMkdir:(function(path,mode){path=PATH.normalize(path);if(path[path.length-1]==="/")path=path.substr(0,path.length-1);FS.mkdir(path,mode,0);return 0}),doMknod:(function(path,mode,dev){switch(mode&61440){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-ERRNO_CODES.EINVAL}FS.mknod(path,mode,dev);return 0}),doReadlink:(function(path,buf,bufsize){if(bufsize<=0)return-ERRNO_CODES.EINVAL;var ret=FS.readlink(path);var len=Math.min(bufsize,lengthBytesUTF8(ret));var endChar=HEAP8[buf+len];stringToUTF8(ret,buf,bufsize+1);HEAP8[buf+len]=endChar;return len}),doAccess:(function(path,amode){if(amode&~7){return-ERRNO_CODES.EINVAL}var node;var lookup=FS.lookupPath(path,{follow:true});node=lookup.node;var perms="";if(amode&4)perms+="r";if(amode&2)perms+="w";if(amode&1)perms+="x";if(perms&&FS.nodePermissions(node,perms)){return-ERRNO_CODES.EACCES}return 0}),doDup:(function(path,flags,suggestFD){var suggest=FS.getStream(suggestFD);if(suggest)FS.close(suggest);return FS.open(path,flags,0,suggestFD,suggestFD).fd}),doReadv:(function(stream,iov,iovcnt,offset){var ret=0;for(var i=0;i<iovcnt;i++){var ptr=HEAP32[iov+i*8>>2];var len=HEAP32[iov+(i*8+4)>>2];var curr=FS.read(stream,HEAP8,ptr,len,offset);if(curr<0)return-1;ret+=curr;if(curr<len)break}return ret}),doWritev:(function(stream,iov,iovcnt,offset){var ret=0;for(var i=0;i<iovcnt;i++){var ptr=HEAP32[iov+i*8>>2];var len=HEAP32[iov+(i*8+4)>>2];var curr=FS.write(stream,HEAP8,ptr,len,offset);if(curr<0)return-1;ret+=curr}return ret}),varargs:0,get:(function(varargs){SYSCALLS.varargs+=4;var ret=HEAP32[SYSCALLS.varargs-4>>2];return ret}),getStr:(function(){var ret=Pointer_stringify(SYSCALLS.get());return ret}),getStreamFromFD:(function(){var stream=FS.getStream(SYSCALLS.get());if(!stream)throw new FS.ErrnoError(ERRNO_CODES.EBADF);return stream}),getSocketFromFD:(function(){var socket=SOCKFS.getSocket(SYSCALLS.get());if(!socket)throw new FS.ErrnoError(ERRNO_CODES.EBADF);return socket}),getSocketAddress:(function(allowNull){var addrp=SYSCALLS.get(),addrlen=SYSCALLS.get();if(allowNull&&addrp===0)return null;var info=__read_sockaddr(addrp,addrlen);if(info.errno)throw new FS.ErrnoError(info.errno);info.addr=DNS.lookup_addr(info.addr)||info.addr;return info}),get64:(function(){var low=SYSCALLS.get(),high=SYSCALLS.get();if(low>=0)assert(high===0);else assert(high===-1);return low}),getZero:(function(){assert(SYSCALLS.get()===0)})};function ___syscall5(which,varargs){SYSCALLS.varargs=varargs;try{var pathname=SYSCALLS.getStr(),flags=SYSCALLS.get(),mode=SYSCALLS.get();var stream=FS.open(pathname,flags,mode);return stream.fd}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___lock(){}function ___unlock(){}function ___syscall6(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD();FS.close(stream);return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}Module["___udivdi3"]=___udivdi3;Module["___muldsi3"]=___muldsi3;Module["___muldi3"]=___muldi3;function _llvm_stackrestore(p){var self=_llvm_stacksave;var ret=self.LLVM_SAVEDSTACKS[p];self.LLVM_SAVEDSTACKS.splice(p,1);Runtime.stackRestore(ret)}Module["_sbrk"]=_sbrk;function _llvm_stacksave(){var self=_llvm_stacksave;if(!self.LLVM_SAVEDSTACKS){self.LLVM_SAVEDSTACKS=[]}self.LLVM_SAVEDSTACKS.push(Runtime.stackSave());return self.LLVM_SAVEDSTACKS.length-1}function _emscripten_memcpy_big(dest,src,num){HEAPU8.set(HEAPU8.subarray(src,src+num),dest);return dest}Module["_memcpy"]=_memcpy;Module["_memmove"]=_memmove;Module["___uremdi3"]=___uremdi3;Module["_llvm_bswap_i32"]=_llvm_bswap_i32;function ___syscall140(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),offset_high=SYSCALLS.get(),offset_low=SYSCALLS.get(),result=SYSCALLS.get(),whence=SYSCALLS.get();var offset=offset_low;assert(offset_high===0);FS.llseek(stream,offset,whence);HEAP32[result>>2]=stream.position;if(stream.getdents&&offset===0&&whence===0)stream.getdents=null;return 0}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___syscall146(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),iov=SYSCALLS.get(),iovcnt=SYSCALLS.get();return SYSCALLS.doWritev(stream,iov,iovcnt)}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___syscall54(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),op=SYSCALLS.get();switch(op){case 21505:{if(!stream.tty)return-ERRNO_CODES.ENOTTY;return 0};case 21506:{if(!stream.tty)return-ERRNO_CODES.ENOTTY;return 0};case 21519:{if(!stream.tty)return-ERRNO_CODES.ENOTTY;var argp=SYSCALLS.get();HEAP32[argp>>2]=0;return 0};case 21520:{if(!stream.tty)return-ERRNO_CODES.ENOTTY;return-ERRNO_CODES.EINVAL};case 21531:{var argp=SYSCALLS.get();return FS.ioctl(stream,op,argp)};case 21523:{if(!stream.tty)return-ERRNO_CODES.ENOTTY;return 0};default:abort("bad ioctl syscall "+op)}}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___syscall221(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),cmd=SYSCALLS.get();switch(cmd){case 0:{var arg=SYSCALLS.get();if(arg<0){return-ERRNO_CODES.EINVAL}var newStream;newStream=FS.open(stream.path,stream.flags,0,arg);return newStream.fd};case 1:case 2:return 0;case 3:return stream.flags;case 4:{var arg=SYSCALLS.get();stream.flags|=arg;return 0};case 12:case 12:{var arg=SYSCALLS.get();var offset=0;HEAP16[arg+offset>>1]=2;return 0};case 13:case 14:case 13:case 14:return 0;case 16:case 8:return-ERRNO_CODES.EINVAL;case 9:___setErrNo(ERRNO_CODES.EINVAL);return-1;default:{return-ERRNO_CODES.EINVAL}}}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}function ___syscall145(which,varargs){SYSCALLS.varargs=varargs;try{var stream=SYSCALLS.getStreamFromFD(),iov=SYSCALLS.get(),iovcnt=SYSCALLS.get();return SYSCALLS.doReadv(stream,iov,iovcnt)}catch(e){if(typeof FS==="undefined"||!(e instanceof FS.ErrnoError))abort(e);return-e.errno}}FS.staticInit();__ATINIT__.unshift((function(){if(!Module["noFSInit"]&&!FS.init.initialized)FS.init()}));__ATMAIN__.push((function(){FS.ignorePermissions=false}));__ATEXIT__.push((function(){FS.quit()}));Module["FS_createFolder"]=FS.createFolder;Module["FS_createPath"]=FS.createPath;Module["FS_createDataFile"]=FS.createDataFile;Module["FS_createPreloadedFile"]=FS.createPreloadedFile;Module["FS_createLazyFile"]=FS.createLazyFile;Module["FS_createLink"]=FS.createLink;Module["FS_createDevice"]=FS.createDevice;Module["FS_unlink"]=FS.unlink;__ATINIT__.unshift((function(){TTY.init()}));__ATEXIT__.push((function(){TTY.shutdown()}));if(ENVIRONMENT_IS_NODE){var fs=require("fs");var NODEJS_PATH=require("path");NODEFS.staticInit()}DYNAMICTOP_PTR=allocate(1,"i32",ALLOC_STATIC);STACK_BASE=STACKTOP=Runtime.alignMemory(STATICTOP);STACK_MAX=STACK_BASE+TOTAL_STACK;DYNAMIC_BASE=Runtime.alignMemory(STACK_MAX);HEAP32[DYNAMICTOP_PTR>>2]=DYNAMIC_BASE;staticSealed=true;function invoke_ii(index,a1){try{return Module["dynCall_ii"](index,a1)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}function invoke_iiii(index,a1,a2,a3){try{return Module["dynCall_iiii"](index,a1,a2,a3)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}function invoke_viiiiii(index,a1,a2,a3,a4,a5,a6){try{Module["dynCall_viiiiii"](index,a1,a2,a3,a4,a5,a6)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}function invoke_iiiii(index,a1,a2,a3,a4){try{return Module["dynCall_iiiii"](index,a1,a2,a3,a4)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}function invoke_iiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8){try{return Module["dynCall_iiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}Module.asmGlobalArg={"Math":Math,"Int8Array":Int8Array,"Int16Array":Int16Array,"Int32Array":Int32Array,"Uint8Array":Uint8Array,"Uint16Array":Uint16Array,"Uint32Array":Uint32Array,"Float32Array":Float32Array,"Float64Array":Float64Array,"NaN":NaN,"Infinity":Infinity};Module.asmLibraryArg={"abort":abort,"assert":assert,"enlargeMemory":enlargeMemory,"getTotalMemory":getTotalMemory,"abortOnCannotGrowMemory":abortOnCannotGrowMemory,"invoke_ii":invoke_ii,"invoke_iiii":invoke_iiii,"invoke_viiiiii":invoke_viiiiii,"invoke_iiiii":invoke_iiiii,"invoke_iiiiiiiii":invoke_iiiiiiiii,"___syscall221":___syscall221,"___lock":___lock,"_abort":_abort,"___setErrNo":___setErrNo,"___syscall6":___syscall6,"___syscall140":___syscall140,"___syscall146":___syscall146,"___syscall5":___syscall5,"_emscripten_memcpy_big":_emscripten_memcpy_big,"___syscall54":___syscall54,"___unlock":___unlock,"_llvm_stackrestore":_llvm_stackrestore,"___syscall145":___syscall145,"_llvm_stacksave":_llvm_stacksave,"DYNAMICTOP_PTR":DYNAMICTOP_PTR,"tempDoublePtr":tempDoublePtr,"ABORT":ABORT,"STACKTOP":STACKTOP,"STACK_MAX":STACK_MAX,"cttz_i8":cttz_i8};// EMSCRIPTEN_START_ASM
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.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,z=0,A=0,B=0,C=0.0;var D=0;var E=global.Math.floor;var F=global.Math.abs;var G=global.Math.sqrt;var H=global.Math.pow;var I=global.Math.cos;var J=global.Math.sin;var K=global.Math.tan;var L=global.Math.acos;var M=global.Math.asin;var N=global.Math.atan;var O=global.Math.atan2;var P=global.Math.exp;var Q=global.Math.log;var R=global.Math.ceil;var S=global.Math.imul;var T=global.Math.min;var U=global.Math.max;var V=global.Math.clz32;var W=env.abort;var X=env.assert;var Y=env.enlargeMemory;var Z=env.getTotalMemory;var _=env.abortOnCannotGrowMemory;var $=env.invoke_ii;var aa=env.invoke_iiii;var ba=env.invoke_viiiiii;var ca=env.invoke_iiiii;var da=env.invoke_iiiiiiiii;var ea=env.___syscall221;var fa=env.___lock;var ga=env._abort;var ha=env.___setErrNo;var ia=env.___syscall6;var ja=env.___syscall140;var ka=env.___syscall146;var la=env.___syscall5;var ma=env._emscripten_memcpy_big;var na=env.___syscall54;var oa=env.___unlock;var pa=env._llvm_stackrestore;var qa=env.___syscall145;var ra=env._llvm_stacksave;var sa=0.0;
// EMSCRIPTEN_START_FUNCS
function kc(a,e,f,g,h,i,j,k,m,n,o,p,q,r,s,t,u,v,w){a=a|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;s=s|0;t=t|0;u=u|0;v=v|0;w=w|0;var 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,T=0,U=0,V=0,W=0,X=0,Y=0;Y=l;m=(m|0)>0?m:0;M=c[a+8>>2]|0;T=(m|0)>7?8:0;m=m-T|0;X=(r|0)==2;if(X){y=d[26594+(f-e)>>0]|0;W=(m|0)<(y|0);R=m-y|0;U=(R|0)>7?8:0;m=W?m:R-U|0;U=W?0:U;y=W?0:y}else{U=0;y=0}P=l;l=l+((1*(M<<2)|0)+15&-16)|0;Q=l;l=l+((1*(M<<2)|0)+15&-16)|0;R=l;l=l+((1*(M<<2)|0)+15&-16)|0;N=l;l=l+((1*(M<<2)|0)+15&-16)|0;O=(f|0)>(e|0);if(O){B=r<<3;E=a+32|0;C=c[E>>2]|0;D=f+-1|0;x=S(i+-5-s|0,r)|0;z=s+3|0;i=e;A=b[C+(e<<1)>>1]|0;do{W=i;i=i+1|0;L=A;A=b[C+(i<<1)>>1]|0;L=(A<<16>>16)-(L<<16>>16)|0;K=L*3<<s<<3>>4;c[R+(W<<2)>>2]=(B|0)>(K|0)?B:K;K=(S(S(x,D-W|0)|0,L)|0)<<z>>6;c[N+(W<<2)>>2]=K-((L<<s|0)==1?B:0)}while((i|0)!=(f|0));W=B}else{W=r<<3;E=a+32|0}L=c[a+48>>2]|0;J=a+52|0;K=1;G=L+-1|0;do{H=K+G>>1;a:do if(O){C=c[E>>2]|0;D=c[J>>2]|0;F=S(H,M)|0;i=0;z=0;x=f;while(1){B=x+-1|0;x=b[C+(x<<1)>>1]|0;b:do if(z){x=S((x<<16>>16)-(b[C+(B<<1)>>1]|0)|0,r)|0;x=(S(x,d[D+(B+F)>>0]|0)|0)<<s>>2;if((x|0)>0){x=(c[N+(B<<2)>>2]|0)+x|0;x=(x|0)>0?x:0}z=(c[g+(B<<2)>>2]|0)+x|0;x=B}else{A=x;while(1){x=A;A=b[C+(B<<1)>>1]|0;x=S((x<<16>>16)-(A<<16>>16)|0,r)|0;x=(S(x,d[D+(B+F)>>0]|0)|0)<<s>>2;if((x|0)>0){x=(c[N+(B<<2)>>2]|0)+x|0;x=(x|0)>0?x:0}z=(c[g+(B<<2)>>2]|0)+x|0;if((z|0)>=(c[R+(B<<2)>>2]|0)){x=B;break b}i=((z|0)<(W|0)?0:W)+i|0;if((B|0)<=(e|0))break a;else B=B+-1|0}}while(0);I=c[h+(x<<2)>>2]|0;i=((z|0)<(I|0)?z:I)+i|0;if((x|0)>(e|0))z=1;else break}}else i=0;while(0);I=(i|0)>(m|0);G=I?H+-1|0:G;K=I?K:H+1|0}while((K|0)<=(G|0));if(O){I=c[E>>2]|0;G=c[J>>2]|0;H=S(K+-1|0,M)|0;D=S(K,M)|0;F=(K|0)>1;x=b[I+(e<<1)>>1]|0;if((K|0)<(L|0)){i=e;C=e;B=x;do{A=C;C=C+1|0;z=B;B=b[I+(C<<1)>>1]|0;z=S((B<<16>>16)-(z<<16>>16)|0,r)|0;x=(S(z,d[G+(A+H)>>0]|0)|0)<<s>>2;z=(S(d[G+(A+D)>>0]|0,z)|0)<<s>>2;if((x|0)>0){x=(c[N+(A<<2)>>2]|0)+x|0;x=(x|0)>0?x:0}if((z|0)>0){z=(c[N+(A<<2)>>2]|0)+z|0;z=(z|0)>0?z:0}M=c[g+(A<<2)>>2]|0;L=(F?M:0)+x|0;i=(M|0)>0?A:i;M=M+z-L|0;c[P+(A<<2)>>2]=L;c[Q+(A<<2)>>2]=(M|0)>0?M:0}while((C|0)!=(f|0));F=i}else{i=e;C=e;B=x;do{A=C;C=C+1|0;x=B;B=b[I+(C<<1)>>1]|0;x=S((B<<16>>16)-(x<<16>>16)|0,r)|0;x=(S(x,d[G+(A+H)>>0]|0)|0)<<s>>2;z=c[h+(A<<2)>>2]|0;if((x|0)>0){x=(c[N+(A<<2)>>2]|0)+x|0;x=(x|0)>0?x:0}if((z|0)>0){z=(c[N+(A<<2)>>2]|0)+z|0;z=(z|0)>0?z:0}M=c[g+(A<<2)>>2]|0;L=(F?M:0)+x|0;i=(M|0)>0?A:i;M=M+z-L|0;c[P+(A<<2)>>2]=L;c[Q+(A<<2)>>2]=(M|0)>0?M:0}while((C|0)!=(f|0));F=i}G=(r|0)>1;I=G&1;H=s<<3;if(O){D=0;A=64;B=0;while(1){C=A+D>>1;i=0;z=0;x=f;c:while(1){x=x+-1|0;d:do if(z)z=((S(c[Q+(x<<2)>>2]|0,C)|0)>>6)+(c[P+(x<<2)>>2]|0)|0;else while(1){z=((S(c[Q+(x<<2)>>2]|0,C)|0)>>6)+(c[P+(x<<2)>>2]|0)|0;if((z|0)>=(c[R+(x<<2)>>2]|0))break d;i=((z|0)<(W|0)?0:W)+i|0;if((x|0)>(e|0))x=x+-1|0;else break c}while(0);O=c[h+(x<<2)>>2]|0;i=((z|0)<(O|0)?z:O)+i|0;if((x|0)>(e|0))z=1;else break}i=(i|0)>(m|0);D=i?D:C;B=B+1|0;if((B|0)==6){x=0;i=0;z=f;break}else A=i?C:A}while(1){z=z+-1|0;g=((S(c[Q+(z<<2)>>2]|0,D)|0)>>6)+(c[P+(z<<2)>>2]|0)|0;A=i|0?1:(g|0)>=(c[R+(z<<2)>>2]|0);g=A?g:(g|0)<(W|0)?0:W;O=c[h+(z<<2)>>2]|0;O=(g|0)<(O|0)?g:O;c[o+(z<<2)>>2]=O;x=O+x|0;if((z|0)<=(e|0)){J=F;L=H;M=I;break}else i=A?1:i}}else{J=F;x=0;L=H;M=I}}else{M=(r|0)>1;J=e;x=0;G=M;L=s<<3;M=M&1}i=f+-1|0;e:do if((i|0)>(J|0)){H=W+8|0;F=e+2|0;if(!u){B=f;while(1){A=m-x|0;v=c[E>>2]|0;Q=b[v+(B<<1)>>1]|0;z=b[v+(e<<1)>>1]|0;C=Q-z|0;w=(A>>>0)/(C>>>0)|0;C=A-(S(C,w)|0)|0;v=b[v+(i<<1)>>1]|0;z=C+(z-v)|0;C=o+(i<<2)|0;A=c[C>>2]|0;z=(S(Q-v|0,w)|0)+A+((z|0)>0?z:0)|0;w=c[R+(i<<2)>>2]|0;if((z|0)>=(((w|0)>(H|0)?w:H)|0)){if(Zb(t,1)|0){K=B;break e}z=z+-8|0;x=x+8|0;A=c[C>>2]|0}if((y|0)>0)B=d[26594+(i-e)>>0]|0;else B=y;z=(z|0)<(W|0)?0:W;x=x-(A+y)+z+B|0;c[C>>2]=z;z=i+-1|0;if((z|0)>(J|0)){w=i;y=B;i=z;B=w}else{y=B;V=50;break e}}}else C=f;while(1){P=m-x|0;A=c[E>>2]|0;D=b[A+(C<<1)>>1]|0;B=b[A+(e<<1)>>1]|0;z=D-B|0;Q=(P>>>0)/(z>>>0)|0;z=P-(S(z,Q)|0)|0;A=b[A+(i<<1)>>1]|0;B=z+(B-A)|0;A=D-A|0;D=o+(i<<2)|0;z=c[D>>2]|0;B=(S(A,Q)|0)+z+((B|0)>0?B:0)|0;Q=c[R+(i<<2)>>2]|0;if((B|0)>=(((Q|0)>(H|0)?Q:H)|0)){if((C|0)<=(F|0))break;if(!((i|0)>(w|0)?1:(B|0)<=((S(A,(C|0)<=(v|0)?7:9)|0)<<s<<3>>4|0)))break;Yb(t,0,1);B=B+-8|0;x=x+8|0;z=c[D>>2]|0}if((y|0)>0)A=d[26594+(i-e)>>0]|0;else A=y;Q=(B|0)<(W|0)?0:W;x=x-(z+y)+Q+A|0;c[D>>2]=Q;z=i+-1|0;if((z|0)>(J|0)){C=i;y=A;i=z}else{y=A;V=50;break e}}Yb(t,1,1);K=C}else{i=f;V=50}while(0);if((V|0)==50){K=i;m=m+T|0}do if((y|0)>0)if(!u){i=(Wb(t,1-e+K|0)|0)+e|0;c[j>>2]=i;break}else{i=c[j>>2]|0;i=(i|0)<(K|0)?i:K;c[j>>2]=i;Vb(t,i-e|0,1-e+K|0);i=c[j>>2]|0;break}else{c[j>>2]=0;i=0}while(0);V=(i|0)>(e|0);i=V?0:U;do if((U|0)>0&V)if(!u){c[k>>2]=Zb(t,1)|0;break}else{Yb(t,c[k>>2]|0,1);break}else c[k>>2]=0;while(0);u=i+(m-x)|0;J=c[E>>2]|0;z=b[J+(e<<1)>>1]|0;i=(b[J+(K<<1)>>1]|0)-(z<<16>>16)|0;x=(u>>>0)/(i>>>0)|0;i=u-(S(i,x)|0)|0;if((K|0)>(e|0)){m=e;y=z;do{u=m;m=m+1|0;t=y;y=b[J+(m<<1)>>1]|0;t=S((y<<16>>16)-(t<<16>>16)|0,x)|0;u=o+(u<<2)|0;c[u>>2]=t+(c[u>>2]|0)}while((m|0)!=(K|0));x=e;y=z;while(1){u=x;x=x+1|0;m=y;y=b[J+(x<<1)>>1]|0;m=(y<<16>>16)-(m<<16>>16)|0;m=(i|0)<(m|0)?i:m;u=o+(u<<2)|0;c[u>>2]=m+(c[u>>2]|0);if((x|0)==(K|0))break;else i=i-m|0}I=a+56|0;H=G?4:3;m=0;G=z;do{F=e;e=e+1|0;A=G;G=b[J+(e<<1)>>1]|0;A=(G<<16>>16)-(A<<16>>16)<<s;E=o+(F<<2)|0;x=(c[E>>2]|0)+m|0;if((A|0)>1){i=x-(c[h+(F<<2)>>2]|0)|0;i=(i|0)>0?i:0;D=x-i|0;c[E>>2]=D;x=S(A,r)|0;if(X&(A|0)!=2?(c[k>>2]|0)==0:0)y=(F|0)<(c[j>>2]|0);else y=0;B=(y&1)+x|0;z=S((b[(c[I>>2]|0)+(F<<1)>>1]|0)+L|0,B)|0;y=S(B,-21)|0;C=B<<3;y=((A|0)==2?C>>2:0)+y+(z>>1)|0;x=y+D|0;if((x|0)<(B<<4|0))x=z>>2;else x=(x|0)<(B*24|0)?z>>3:0;u=x+y|0;t=(B<<2)+D+u|0;a=p+(F<<2)|0;t=((((t|0)>0?t:0)>>>0)/(B>>>0)|0)>>>3;c[a>>2]=t;U=S(t,r)|0;V=c[E>>2]|0;t=(U|0)>(V>>3|0)?V>>M>>3:t;t=(t|0)<8?t:8;c[a>>2]=t;t=S(t,C)|0;c[q+(F<<2)>>2]=(t|0)>=((c[E>>2]|0)+u|0)&1;a=S(c[a>>2]|0,W)|0;c[E>>2]=(c[E>>2]|0)-a}else{i=x-W|0;i=(i|0)>0?i:0;c[E>>2]=x-i;c[p+(F<<2)>>2]=0;c[q+(F<<2)>>2]=1}if(!i)m=0;else{V=i>>>H;u=p+(F<<2)|0;t=c[u>>2]|0;a=8-t|0;a=(V|0)<(a|0)?V:a;c[u>>2]=a+t;a=S(a,W)|0;c[q+(F<<2)>>2]=(a|0)>=(i-m|0)&1;m=i-a|0}}while((e|0)!=(K|0));e=K}else m=0;c[n>>2]=m;if((e|0)>=(f|0)){l=Y;return K|0}do{k=o+(e<<2)|0;n=p+(e<<2)|0;c[n>>2]=c[k>>2]>>M>>3;c[k>>2]=0;c[q+(e<<2)>>2]=(c[n>>2]|0)<1&1;e=e+1|0}while((e|0)!=(f|0));l=Y;return K|0}function lc(a,d){a=a|0;d=d|0;var e=0,f=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0.0,r=0,s=0.0,t=0.0,u=0.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.0,K=0.0,L=0.0,M=0.0,N=0.0,O=0.0,P=0,Q=0,R=0.0,T=0.0,U=0.0,V=0.0,W=0,X=0.0,Y=0.0,Z=0.0,_=0.0,$=0,aa=0,ba=0;I=l;l=l+32|0;H=I;f=c[a+8>>2]|0;h=(f|0)>0;c[H>>2]=1;i=0;e=1;while(1){j=i<<1;D=b[a+12+((j|1)<<1)>>1]|0;e=S(e,b[a+12+(j<<1)>>1]|0)|0;j=i+1|0;c[H+(j<<2)>>2]=e;if(D<<16>>16==1)break;else i=j}C=h?f:0;if((i|0)<=-1){l=I;return}D=a+48|0;A=b[a+12+((j<<1)+-1<<1)>>1]|0;while(1){e=i<<1;if(!i)B=1;else B=b[a+12+(e+-1<<1)>>1]|0;a:do switch(b[a+12+(e<<1)>>1]|0){case 2:{h=c[H+(i<<2)>>2]|0;if((h|0)>0){e=d;f=0;while(1){z=e+32|0;u=+g[z>>2];A=e+36|0;t=+g[A>>2];s=+g[e>>2];g[z>>2]=s-u;z=e+4|0;q=+g[z>>2];g[A>>2]=q-t;g[e>>2]=u+s;g[z>>2]=t+q;z=e+40|0;q=+g[z>>2];A=e+44|0;t=+g[A>>2];s=(q+t)*.7071067690849304;q=(t-q)*.7071067690849304;y=e+8|0;t=+g[y>>2];g[z>>2]=t-s;z=e+12|0;u=+g[z>>2];g[A>>2]=u-q;g[y>>2]=t+s;g[z>>2]=q+u;z=e+52|0;u=+g[z>>2];y=e+48|0;q=+g[y>>2];A=e+16|0;s=+g[A>>2];g[y>>2]=s-u;y=e+20|0;t=+g[y>>2];g[z>>2]=q+t;g[A>>2]=u+s;g[y>>2]=t-q;y=e+60|0;q=+g[y>>2];A=e+56|0;t=+g[A>>2];s=(q-t)*.7071067690849304;t=(-q-t)*.7071067690849304;z=e+24|0;q=+g[z>>2];g[A>>2]=q-s;A=e+28|0;u=+g[A>>2];g[y>>2]=u-t;g[z>>2]=q+s;g[A>>2]=t+u;f=f+1|0;if((f|0)==(h|0))break;else e=e+64|0}}break}case 4:{r=c[H+(i<<2)>>2]|0;p=r<<C;if((A|0)==1){if((r|0)>0){e=0;f=d}else break a;while(1){u=+g[f>>2];p=f+16|0;O=+g[p>>2];q=u-O;w=f+4|0;K=+g[w>>2];v=f+20|0;M=+g[v>>2];t=K-M;O=u+O;M=K+M;x=f+8|0;K=+g[x>>2];z=f+24|0;u=+g[z>>2];N=K+u;y=f+12|0;J=+g[y>>2];A=f+28|0;s=+g[A>>2];L=J+s;g[p>>2]=O-N;g[v>>2]=M-L;g[f>>2]=O+N;g[w>>2]=M+L;u=K-u;s=J-s;g[x>>2]=q+s;g[y>>2]=t-u;g[z>>2]=q-s;g[A>>2]=t+u;e=e+1|0;if((e|0)==(r|0))break a;else f=f+32|0}}n=A<<1;o=A*3|0;if((r|0)>0?(E=c[D>>2]|0,F=p<<1,G=p*3|0,(A|0)>0):0){k=0;do{e=0;f=E;h=E;j=E;m=d+((S(k,B)|0)<<3)|0;while(1){w=m+(A<<3)|0;t=+g[w>>2];u=+g[j>>2];x=m+(A<<3)+4|0;L=+g[x>>2];s=+g[j+4>>2];q=t*u-L*s;s=u*L+t*s;Q=m+(n<<3)|0;t=+g[Q>>2];L=+g[h>>2];P=m+(n<<3)+4|0;u=+g[P>>2];J=+g[h+4>>2];K=t*L-u*J;J=L*u+t*J;y=m+(o<<3)|0;t=+g[y>>2];u=+g[f>>2];z=m+(o<<3)+4|0;L=+g[z>>2];M=+g[f+4>>2];O=t*u-L*M;M=u*L+t*M;t=+g[m>>2];L=t-K;v=m+4|0;u=+g[v>>2];N=u-J;t=K+t;g[m>>2]=t;u=J+u;g[v>>2]=u;J=q+O;K=s+M;O=q-O;M=s-M;g[Q>>2]=t-J;g[P>>2]=u-K;g[m>>2]=J+ +g[m>>2];g[v>>2]=K+ +g[v>>2];g[w>>2]=L+M;g[x>>2]=N-O;g[y>>2]=L-M;g[z>>2]=N+O;e=e+1|0;if((e|0)==(A|0))break;else{f=f+(G<<3)|0;h=h+(F<<3)|0;j=j+(p<<3)|0;m=m+8|0}}k=k+1|0}while((k|0)!=(r|0))}break}case 3:{n=c[H+(i<<2)>>2]|0;o=n<<C;m=c[D>>2]|0;p=A<<1;q=+g[m+((S(o,A)|0)<<3)+4>>2];if((n|0)>0){r=o<<1;h=0;do{e=d+((S(h,B)|0)<<3)|0;f=m;j=A;k=m;while(1){P=e+(A<<3)|0;L=+g[P>>2];M=+g[k>>2];Q=e+(A<<3)+4|0;u=+g[Q>>2];K=+g[k+4>>2];J=L*M-u*K;K=M*u+L*K;y=e+(p<<3)|0;L=+g[y>>2];u=+g[f>>2];z=e+(p<<3)+4|0;M=+g[z>>2];N=+g[f+4>>2];O=L*u-M*N;N=u*M+L*N;L=J+O;M=K+N;g[P>>2]=+g[e>>2]-L*.5;x=e+4|0;g[Q>>2]=+g[x>>2]-M*.5;O=q*(J-O);N=q*(K-N);g[e>>2]=L+ +g[e>>2];g[x>>2]=M+ +g[x>>2];g[y>>2]=N+ +g[P>>2];g[z>>2]=+g[Q>>2]-O;g[P>>2]=+g[P>>2]-N;g[Q>>2]=O+ +g[Q>>2];j=j+-1|0;if(!j)break;else{e=e+8|0;f=f+(r<<3)|0;k=k+(o<<3)|0}}h=h+1|0}while((h|0)!=(n|0))}break}case 5:{p=c[H+(i<<2)>>2]|0;r=p<<C;o=c[D>>2]|0;Q=S(r,A)|0;s=+g[o+(Q<<3)>>2];u=+g[o+(Q<<3)+4>>2];Q=S(r<<1,A)|0;q=+g[o+(Q<<3)>>2];t=+g[o+(Q<<3)+4>>2];if((p|0)>0){v=A<<1;w=A*3|0;x=A<<2;y=(A|0)>0;z=r*3|0;m=0;do{e=d+((S(m,B)|0)<<3)|0;if(y){f=e+(A<<3)|0;h=e+(v<<3)|0;j=e+(w<<3)|0;k=e+(x<<3)|0;n=0;while(1){U=+g[e>>2];aa=e+4|0;R=+g[aa>>2];L=+g[f>>2];ba=S(n,r)|0;N=+g[o+(ba<<3)>>2];$=f+4|0;_=+g[$>>2];V=+g[o+(ba<<3)+4>>2];T=L*N-_*V;V=N*_+L*V;L=+g[h>>2];ba=S(n<<1,r)|0;_=+g[o+(ba<<3)>>2];P=h+4|0;N=+g[P>>2];Z=+g[o+(ba<<3)+4>>2];X=L*_-N*Z;Z=_*N+L*Z;L=+g[j>>2];ba=S(z,n)|0;N=+g[o+(ba<<3)>>2];Q=j+4|0;_=+g[Q>>2];J=+g[o+(ba<<3)+4>>2];O=L*N-_*J;J=N*_+L*J;L=+g[k>>2];ba=S(n<<2,r)|0;_=+g[o+(ba<<3)>>2];W=k+4|0;N=+g[W>>2];M=+g[o+(ba<<3)+4>>2];K=L*_-N*M;M=_*N+L*M;L=T+K;N=V+M;K=T-K;M=V-M;V=X+O;T=Z+J;O=X-O;J=Z-J;g[e>>2]=U+(V+L);g[aa>>2]=R+(T+N);Z=q*V+(U+s*L);X=q*T+(R+s*N);_=t*J+u*M;Y=-(u*K)-t*O;g[f>>2]=Z-_;g[$>>2]=X-Y;g[k>>2]=_+Z;g[W>>2]=Y+X;L=s*V+(U+q*L);N=s*T+(R+q*N);M=u*J-t*M;O=t*K-u*O;g[h>>2]=M+L;g[P>>2]=O+N;g[j>>2]=L-M;g[Q>>2]=N-O;n=n+1|0;if((n|0)==(A|0))break;else{f=f+8|0;h=h+8|0;j=j+8|0;k=k+8|0;e=e+8|0}}}m=m+1|0}while((m|0)!=(p|0))}break}default:{}}while(0);if((i|0)>0){i=i+-1|0;A=B}else break}l=I;return}function mc(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var h=0.0,i=0,j=0,k=0.0,m=0.0,n=0.0,o=0.0,p=0.0,q=0.0,r=0.0,s=0.0,t=0.0,u=0.0,v=0,w=0,x=0,y=0,z=0,A=0.0,B=0.0,C=0.0;y=l;l=l+48|0;v=y+16|0;w=y;x=d>>1;j=(x|0)>1;i=c[a>>2]|0;if(j){d=1;do{z=d<<1;g[b+(d<<2)>>2]=(+g[i+(z<<2)>>2]+(+g[i+(z+-1<<2)>>2]+ +g[i+((z|1)<<2)>>2])*.5)*.5;d=d+1|0}while((d|0)!=(x|0))}h=(+g[i+4>>2]*.5+ +g[i>>2])*.5;g[b>>2]=h;if((e|0)==2){i=c[a+4>>2]|0;if(j){d=1;do{j=d<<1;z=b+(d<<2)|0;g[z>>2]=+g[z>>2]+(+g[i+(j<<2)>>2]+(+g[i+(j+-1<<2)>>2]+ +g[i+((j|1)<<2)>>2])*.5)*.5;d=d+1|0}while((d|0)!=(x|0));h=+g[b>>2]}g[b>>2]=h+(+g[i+4>>2]*.5+ +g[i>>2])*.5}pc(b,v,0,0,4,x,f)|0;g[v>>2]=+g[v>>2]*1.000100016593933;z=v+4|0;r=+g[z>>2];g[z>>2]=r-r*.00800000037997961*.00800000037997961;z=v+8|0;r=+g[z>>2];g[z>>2]=r-r*.01600000075995922*.01600000075995922;z=v+12|0;r=+g[z>>2];g[z>>2]=r-r*.024000000208616257*.024000000208616257;z=v+16|0;r=+g[z>>2];g[z>>2]=r-r*.03200000151991844*.03200000151991844;qc(w,v,4);r=+g[w>>2]*.8999999761581421;g[w>>2]=r;z=w+4|0;s=+g[z>>2]*.809999942779541;g[z>>2]=s;z=w+8|0;t=+g[z>>2]*.7289999127388;g[z>>2]=t;z=w+12|0;u=+g[z>>2]*.6560999155044556;g[z>>2]=u;q=r+.800000011920929;r=s+r*.800000011920929;s=t+s*.800000011920929;t=u+t*.800000011920929;u=u*.800000011920929;if((x|0)>0){h=0.0;k=0.0;m=0.0;n=0.0;o=0.0;d=0}else{l=y;return}while(1){z=b+(d<<2)|0;p=+g[z>>2];g[z>>2]=u*h+(t*k+(s*m+(r*n+(q*o+p))));d=d+1|0;if((d|0)==(x|0))break;else{C=o;B=n;A=m;h=k;o=p;n=C;m=B;k=A}}l=y;return}function nc(a,b,d,e,f,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;h=h|0;var i=0.0,j=0.0,k=0.0,m=0,n=0,o=0.0,p=0.0,q=0,r=0,s=0,t=0.0,u=0.0,v=0,w=0.0,x=0,y=0,z=0,A=0.0,B=0,C=0,D=0;D=l;l=l+16|0;x=D;y=D+4|0;c[x>>2]=0;c[y>>2]=0;s=d>>2;C=ra()|0;q=l;l=l+((1*(s<<2)|0)+15&-16)|0;m=e+d>>2;r=l;l=l+((1*(m<<2)|0)+15&-16)|0;z=e>>1;B=l;l=l+((1*(z<<2)|0)+15&-16)|0;n=(s|0)>0;if(n){h=0;do{c[q+(h<<2)>>2]=c[a+(h<<1<<2)>>2];h=h+1|0}while((h|0)!=(s|0))}if((m|0)>0){h=0;do{c[r+(h<<2)>>2]=c[b+(h<<1<<2)>>2];h=h+1|0}while((h|0)!=(m|0))}e=e>>2;oc(q,r,B,s,e,0);c[x>>2]=0;c[y>>2]=1;if(n){h=0;i=1.0;do{u=+g[r+(h<<2)>>2];i=i+u*u;h=h+1|0}while((h|0)!=(s|0))}else i=1.0;if((e|0)>0){m=0;t=0.0;u=-1.0;o=0.0;p=-1.0;while(1){j=+g[B+(m<<2)>>2];if(j>0.0?(w=j*9.999999960041972e-13,w=w*w,o*w>p*i):0){if(t*w>u*i){c[y>>2]=c[x>>2];h=x;j=i;k=w;o=t;p=u}else{h=y;j=t;k=u;o=i;p=w}c[h>>2]=m}else{j=t;k=u}t=+g[r+(m+s<<2)>>2];u=+g[r+(m<<2)>>2];i=i+(t*t-u*u);m=m+1|0;if((m|0)==(e|0))break;else{i=i<1.0?1.0:i;t=j;u=k}}}v=(z|0)>0;a:do if(v){r=c[x>>2]<<1;s=c[y>>2]<<1;q=d>>1;if((q|0)>0)m=0;else{h=0;while(1){m=B+(h<<2)|0;g[m>>2]=0.0;a=h-r|0;if(!((((a|0)>-1?a:0-a|0)|0)>2?(a=h-s|0,(((a|0)>-1?a:0-a|0)|0)>2):0))g[m>>2]=0.0;h=h+1|0;if((h|0)==(z|0))break a}}do{n=B+(m<<2)|0;g[n>>2]=0.0;d=m-r|0;if(!((((d|0)>-1?d:0-d|0)|0)>2?(d=m-s|0,(((d|0)>-1?d:0-d|0)|0)>2):0)){e=b+(m<<2)|0;h=0;i=0.0;do{i=i+ +g[a+(h<<2)>>2]*+g[e+(h<<2)>>2];h=h+1|0}while((h|0)!=(q|0));g[n>>2]=i<-1.0?-1.0:i}m=m+1|0}while((m|0)!=(z|0))}else q=d>>1;while(0);c[x>>2]=0;c[y>>2]=1;if((q|0)>0){h=0;i=1.0;do{w=+g[b+(h<<2)>>2];i=i+w*w;h=h+1|0}while((h|0)!=(q|0))}else i=1.0;if(v){m=0;t=0.0;u=-1.0;o=0.0;p=-1.0}else{B=0;z=0;z=z<<1;B=z-B|0;c[f>>2]=B;pa(C|0);l=D;return}while(1){j=+g[B+(m<<2)>>2];if(j>0.0?(A=j*9.999999960041972e-13,A=A*A,o*A>p*i):0){if(t*A>u*i){c[y>>2]=c[x>>2];h=x;j=i;k=A;o=t;p=u}else{h=y;j=t;k=u;o=i;p=A}c[h>>2]=m}else{j=t;k=u}u=+g[b+(m+q<<2)>>2];w=+g[b+(m<<2)>>2];i=i+(u*u-w*w);m=m+1|0;if((m|0)==(z|0))break;else{i=i<1.0?1.0:i;t=j;u=k}}h=c[x>>2]|0;if(!((h|0)>0&(h|0)<(z+-1|0))){B=0;z=h;z=z<<1;B=z-B|0;c[f>>2]=B;pa(C|0);l=D;return}j=+g[B+(h+-1<<2)>>2];k=+g[B+(h<<2)>>2];i=+g[B+(h+1<<2)>>2];if(i-j>(k-j)*.699999988079071){B=1;z=h;z=z<<1;B=z-B|0;c[f>>2]=B;pa(C|0);l=D;return}B=(j-i>(k-i)*.699999988079071)<<31>>31;z=h;z=z<<1;B=z-B|0;c[f>>2]=B;pa(C|0);l=D;return}function oc(a,b,d,e,f,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;h=h|0;var i=0,k=0.0,l=0,m=0,n=0.0,o=0.0,p=0.0,q=0.0,r=0.0,s=0.0,t=0.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.0,G=0.0,H=0.0,I=0.0,J=0.0,K=0.0,L=0.0;B=f+-3|0;if((f|0)>3){C=e+-3|0;D=(e|0)>3;A=e+-4&-4;z=A+4|0;A=A+7|0;E=a+(z<<2)|0;y=0;do{m=b+(y<<2)|0;k=+g[m>>2];o=+g[m+4>>2];h=m+12|0;n=+g[m+8>>2];if(D){l=0;t=o;i=a;r=0.0;p=0.0;o=0.0;s=0.0;while(1){I=+g[i>>2];q=+g[h>>2];H=+g[i+4>>2];L=k;k=+g[h+4>>2];G=+g[i+8>>2];K=t;t=+g[h+8>>2];F=+g[i+12>>2];J=n;n=+g[h+12>>2];r=r+L*I+K*H+J*G+q*F;p=p+K*I+J*H+q*G+k*F;o=o+J*I+q*H+k*G+t*F;s=s+I*q+H*k+G*t+F*n;l=l+4|0;if((l|0)>=(C|0))break;else{h=h+16|0;i=i+16|0}}h=(g[j>>2]=s,c[j>>2]|0);i=(g[j>>2]=o,c[j>>2]|0);l=(g[j>>2]=p,c[j>>2]|0);u=E;v=m+(A<<2)|0;w=z;m=(g[j>>2]=r,c[j>>2]|0)}else{u=a;v=h;w=0;q=0.0;t=o;m=0;l=0;i=0;h=0;r=0.0;p=0.0;o=0.0;s=0.0}x=w|1;if((w|0)<(e|0)){L=+g[u>>2];q=+g[v>>2];r=r+k*L;m=(g[j>>2]=r,c[j>>2]|0);p=p+t*L;l=(g[j>>2]=p,c[j>>2]|0);o=o+n*L;i=(g[j>>2]=o,c[j>>2]|0);s=s+L*q;u=u+4|0;v=v+4|0;h=(g[j>>2]=s,c[j>>2]|0)}if((x|0)<(e|0)){L=+g[u>>2];k=+g[v>>2];r=r+t*L;m=(g[j>>2]=r,c[j>>2]|0);p=p+n*L;l=(g[j>>2]=p,c[j>>2]|0);o=o+q*L;i=(g[j>>2]=o,c[j>>2]|0);s=s+L*k;u=u+4|0;v=v+4|0;h=(g[j>>2]=s,c[j>>2]|0)}if((x+1|0)<(e|0)){L=+g[u>>2];m=(g[j>>2]=r+n*L,c[j>>2]|0);l=(g[j>>2]=p+q*L,c[j>>2]|0);i=(g[j>>2]=o+k*L,c[j>>2]|0);h=(g[j>>2]=s+L*+g[v>>2],c[j>>2]|0)}c[d+(y<<2)>>2]=m;c[d+((y|1)<<2)>>2]=l;c[d+((y|2)<<2)>>2]=i;c[d+((y|3)<<2)>>2]=h;y=y+4|0}while((y|0)<(B|0));h=f&-4}else h=0;if((h|0)>=(f|0))return;if((e|0)<=0){tf(d+(h<<2)|0,0,f-h<<2|0)|0;return}do{l=b+(h<<2)|0;i=0;k=0.0;do{k=k+ +g[a+(i<<2)>>2]*+g[l+(i<<2)>>2];i=i+1|0}while((i|0)!=(e|0));g[d+(h<<2)>>2]=k;h=h+1|0}while((h|0)!=(f|0));return}function pc(a,b,c,d,e,f,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;h=h|0;var i=0.0,j=0,k=0,m=0,n=0,o=0;n=l;m=f-e|0;k=l;l=l+((1*(f<<2)|0)+15&-16)|0;if(d){if((f|0)>0)Ef(k|0,a|0,f<<2|0)|0;if((d|0)>0){j=0;do{i=+g[c+(j<<2)>>2];g[k+(j<<2)>>2]=+g[a+(j<<2)>>2]*i;o=f-j+-1|0;g[k+(o<<2)>>2]=i*+g[a+(o<<2)>>2];j=j+1|0}while((j|0)!=(d|0));a=k}else a=k}d=e+1|0;oc(a,a,b,m,d,h);if((e|0)<0){l=n;return 0}else c=0;do{j=c+m|0;if((j|0)<(f|0)){i=0.0;do{i=i+ +g[a+(j<<2)>>2]*+g[a+(j-c<<2)>>2];j=j+1|0}while((j|0)!=(f|0))}else i=0.0;o=b+(c<<2)|0;g[o>>2]=i+ +g[o>>2];c=c+1|0}while((c|0)!=(d|0));l=n;return 0}function qc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0.0,f=0.0,h=0,i=0.0,j=0,k=0,l=0,m=0.0,n=0.0,o=0;e=+g[b>>2];tf(a|0,0,c<<2|0)|0;if(+g[b>>2]!=0.0)k=0;else return;while(1){if((k|0)>=(c|0)){d=9;break}if((k|0)>0){d=0;f=0.0;do{f=f+ +g[a+(d<<2)>>2]*+g[b+(k-d<<2)>>2];d=d+1|0}while((d|0)!=(k|0))}else f=0.0;d=k;k=k+1|0;f=(f+ +g[b+(k<<2)>>2])/e;i=-f;g[a+(d<<2)>>2]=i;j=k>>1;if((j|0)>0){h=d+-1|0;d=0;do{o=a+(d<<2)|0;m=+g[o>>2];l=a+(h-d<<2)|0;n=+g[l>>2];g[o>>2]=m+n*i;g[l>>2]=n+m*i;d=d+1|0}while((d|0)!=(j|0))}e=e-e*(f*f);if(e<+g[b>>2]*1.0000000474974513e-03){d=9;break}}if((d|0)==9)return}function rc(a){a=a|0;var b=0;b=jc(48e3,960,0)|0;return (c[b+8>>2]<<5)+88+(S((c[b+4>>2]<<2)+8288|0,a)|0)|0}function sc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;f=l;l=l+16|0;e=jc(48e3,960,0)|0;if(d>>>0>2){e=-1;l=f;return e|0}if(!a){e=-7;l=f;return e|0}g=e+4|0;tf(a|0,0,(c[e+8>>2]<<5)+88+(S((c[g>>2]<<2)+8288|0,d)|0)|0)|0;c[a>>2]=e;c[a+4>>2]=c[g>>2];c[a+8>>2]=d;c[a+12>>2]=d;d=a+16|0;c[d>>2]=1;c[a+20>>2]=0;c[a+24>>2]=c[e+12>>2];c[a+28>>2]=1;c[a+32>>2]=0;tc(a,4028,f)|0;e=gc(b)|0;c[d>>2]=e;e=((e|0)==0)<<31>>31;l=f;return e|0}function tc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,h=0,i=0;f=l;l=l+16|0;e=f;c[e>>2]=d;do switch(b|0){case 10010:{d=(c[e>>2]|0)+(4-1)&~(4-1);b=c[d>>2]|0;c[e>>2]=d+4;if((b|0)>=0?(b|0)<(c[(c[a>>2]|0)+8>>2]|0):0){c[a+20>>2]=b;b=24}else b=25;break}case 10012:{d=(c[e>>2]|0)+(4-1)&~(4-1);b=c[d>>2]|0;c[e>>2]=d+4;if((b|0)>=1?(b|0)<=(c[(c[a>>2]|0)+8>>2]|0):0){c[a+24>>2]=b;b=24}else b=25;break}case 10008:{d=(c[e>>2]|0)+(4-1)&~(4-1);b=c[d>>2]|0;c[e>>2]=d+4;if((b+-1|0)>>>0>1)b=25;else{c[a+12>>2]=b;b=24}break}case 10007:{d=(c[e>>2]|0)+(4-1)&~(4-1);b=c[d>>2]|0;c[e>>2]=d+4;if(!b)b=25;else{a=a+40|0;c[b>>2]=c[a>>2];c[a>>2]=0;b=24}break}case 4027:{d=(c[e>>2]|0)+(4-1)&~(4-1);b=c[d>>2]|0;c[e>>2]=d+4;if(!b)b=25;else{c[b>>2]=(c[a+4>>2]|0)/(c[a+16>>2]|0)|0;b=24}break}case 4028:{h=c[a+8>>2]|0;d=a+88+((S((c[a+4>>2]|0)+2048|0,h)|0)<<2)+(h*24<<2)|0;i=c[a>>2]|0;b=c[i+8>>2]|0;e=b<<1;d=d+(e<<2)|0;e=d+(e<<2)|0;tf(a+36|0,0,(b<<5)+52+(S((c[i+4>>2]<<2)+8288|0,h)|0)|0)|0;if((b|0)>0){b=0;do{g[e+(b<<2)>>2]=-28.0;g[d+(b<<2)>>2]=-28.0;b=b+1|0}while((b|0)<(c[(c[a>>2]|0)+8>>2]<<1|0))}c[a+52>>2]=1;b=24;break}case 4033:{i=(c[e>>2]|0)+(4-1)&~(4-1);b=c[i>>2]|0;c[e>>2]=i+4;if(!b)b=25;else{c[b>>2]=c[a+56>>2];b=24}break}case 10015:{i=(c[e>>2]|0)+(4-1)&~(4-1);b=c[i>>2]|0;c[e>>2]=i+4;if(!b)b=25;else{c[b>>2]=c[a>>2];b=24}break}case 10016:{i=(c[e>>2]|0)+(4-1)&~(4-1);b=c[i>>2]|0;c[e>>2]=i+4;c[a+28>>2]=b;b=24;break}case 4031:{i=(c[e>>2]|0)+(4-1)&~(4-1);b=c[i>>2]|0;c[e>>2]=i+4;if(!b)b=25;else{c[b>>2]=c[a+36>>2];b=24}break}default:{i=-5;l=f;return i|0}}while(0);if((b|0)==24){i=0;l=f;return i|0}else if((b|0)==25){i=-1;l=f;return i|0}return 0}function uc(d,e,f,h,i,j,k){d=d|0;e=e|0;f=f|0;h=h|0;i=i|0;j=j|0;k=k|0;var m=0,n=0.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,T=0,U=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,ia=0,ja=0,ka=0.0,la=0.0;ja=l;l=l+80|0;p=ja+32|0;I=ja+24|0;ia=ja+16|0;J=ja+8|0;K=ja+4|0;L=ja;ea=c[d+8>>2]|0;c[J>>2]=0;c[K>>2]=0;M=c[d+12>>2]|0;fa=c[d>>2]|0;ga=c[fa+8>>2]|0;W=c[fa+4>>2]|0;E=c[fa+32>>2]|0;$=c[d+20>>2]|0;k=c[d+24>>2]|0;ha=d+16|0;aa=S(c[ha>>2]|0,i)|0;o=W+2048|0;ba=d+88+((S(o,ea)|0)<<2)+(ea*24<<2)|0;Z=ga<<1;ca=ba+(Z<<2)|0;da=ca+(Z<<2)|0;Y=da+(Z<<2)|0;i=c[fa+36>>2]|0;if((i|0)<0){h=-1;l=ja;return h|0}R=fa+44|0;m=c[R>>2]|0;P=0;while(1){if((m<<P|0)==(aa|0))break;if((P|0)<(i|0))P=P+1|0;else{k=-1;q=81;break}}if((q|0)==81){l=ja;return k|0}Q=1<<P;if(f>>>0>1275|(h|0)==0){h=-1;l=ja;return h|0}m=0-aa|0;i=0;do{_=d+88+((S(i,o)|0)<<2)|0;c[I+(i<<2)>>2]=_;c[ia+(i<<2)>>2]=_+8192+(m<<2);i=i+1|0}while((i|0)<(ea|0));H=c[fa+12>>2]|0;H=(k|0)>(H|0)?H:k;if((e|0)==0|(f|0)<2){vc(d,aa,P);wc(ia,h,aa,ea,c[ha>>2]|0,+g[fa+16>>2],d+80|0);h=(aa|0)/(c[ha>>2]|0)|0;l=ja;return h|0}_=d+48|0;c[d+52>>2]=(c[_>>2]|0)!=0&1;if(!j)xc(p,e,f);else p=j;N=(M|0)==1;O=(ga|0)>0;if(N&O){i=0;do{X=ba+(i<<2)|0;U=i+ga|0;c[X>>2]=c[ba+((+g[X>>2]>+g[ba+(U<<2)>>2]?i:U)<<2)>>2];i=i+1|0}while((i|0)!=(ga|0))}X=f<<3;T=p+20|0;i=c[T>>2]|0;U=p+28|0;o=c[U>>2]|0;e=i+-32+(V(o|0)|0)|0;if((e|0)<(X|0))if((e|0)==1){m=Zb(p,15)|0;if(!m){m=0;i=1;D=0}else{i=c[T>>2]|0;o=c[U>>2]|0;q=18}}else{m=0;i=e;D=0}else{m=1;q=18}if((q|0)==18){c[T>>2]=X+32-i-(V(o|0)|0)+i;i=X;D=1}if(($|0)!=0|(i+16|0)>(X|0)){n=0.0;j=0;e=0}else{if(!(Zb(p,1)|0)){j=0;n=0.0;e=0}else{i=Wb(p,6)|0;i=(Pb(p,i+4|0)|0)+-1+(16<<i)|0;o=Pb(p,3)|0;if(((c[T>>2]|0)+-30+(V(c[U>>2]|0)|0)|0)>(X|0))e=0;else e=yc(p,26957,2)|0;j=i;n=+(o+1|0)*.09375}i=(c[T>>2]|0)+-32+(V(c[U>>2]|0)|0)|0}if((P|0)<1|(i+3|0)>(X|0))C=0;else{C=Zb(p,3)|0;i=(c[T>>2]|0)+-32+(V(c[U>>2]|0)|0)|0}F=(C|0)!=0;B=F?Q:0;if((i+3|0)>(X|0))i=0;else i=Zb(p,3)|0;zc(fa,$,k,ba,i,p,M,P);G=ra()|0;A=l;l=l+((1*(ga<<2)|0)+15&-16)|0;t=c[p+4>>2]<<3;o=(c[T>>2]|0)+-32+(V(c[U>>2]|0)|0)|0;i=F?2:4;v=(P|0)>0&(o+(i|1)|0)>>>0<=t>>>0;t=t-(v&1)|0;w=($|0)<(k|0);if(w){u=F?4:5;s=i;i=0;q=$;r=0;while(1){if((s+o|0)>>>0<=t>>>0){r=(Zb(p,s)|0)^r;o=(c[T>>2]|0)+-32+(V(c[U>>2]|0)|0)|0;i=r|i}c[A+(q<<2)>>2]=r;q=q+1|0;if((q|0)==(k|0))break;else s=u}}else i=0;if(v?(z=C<<2,(a[i+z+(22349+(P<<3))>>0]|0)!=(a[i+(z|2)+(22349+(P<<3))>>0]|0)):0)i=(Zb(p,1)|0)<<1;else i=0;if(w){o=i+(C<<2)|0;i=$;do{z=A+(i<<2)|0;c[z>>2]=a[o+(c[z>>2]|0)+(22349+(P<<3))>>0];i=i+1|0}while((i|0)!=(k|0))}if(((c[T>>2]|0)+-28+(V(c[U>>2]|0)|0)|0)>(X|0))z=2;else z=yc(p,26960,5)|0;x=l;l=l+((1*(ga<<2)|0)+15&-16)|0;ic(fa,x,P,M);y=l;l=l+((1*(ga<<2)|0)+15&-16)|0;f=f<<6;i=Mb(p)|0;if(w){v=6;o=f;w=$;while(1){t=w;w=w+1|0;r=(S((b[E+(w<<1)>>1]|0)-(b[E+(t<<1)>>1]|0)|0,M)|0)<<P;s=r<<3;r=(r|0)>48?r:48;r=(s|0)<(r|0)?s:r;s=x+(t<<2)|0;u=0;q=v;while(1){if(((q<<3)+i|0)>=(o|0))break;if((u|0)>=(c[s>>2]|0))break;q=Zb(p,q)|0;i=Mb(p)|0;if(!q)break;else{u=u+r|0;q=1;o=o-r|0}}c[y+(t<<2)>>2]=u;q=v+-1|0;if((w|0)==(k|0))break;else v=(u|0)>0?((q|0)>2?q:2):v}}else o=f;w=l;l=l+((1*(ga<<2)|0)+15&-16)|0;if((i+48|0)>(o|0))i=5;else i=yc(p,26964,7)|0;r=f-(Mb(p)|0)+-1|0;s=(P|0)>1&F&(r|0)>=((P<<3)+16|0);t=s?8:0;u=l;l=l+((1*(ga<<2)|0)+15&-16)|0;v=l;l=l+((1*(ga<<2)|0)+15&-16)|0;r=kc(fa,$,k,y,x,i,J,K,r-t|0,L,u,w,v,M,P,p,0,0,0)|0;Ac(fa,$,k,ba,w,p,M);o=((W|0)/2|0)+2048-aa<<2;i=0;do{E=c[I+(i<<2)>>2]|0;Ff(E|0,E+(aa<<2)|0,o|0)|0;i=i+1|0}while((i|0)<(ea|0));o=S(ga,M)|0;i=l;l=l+((1*o|0)+15&-16)|0;y=(S(aa,M)|0)<<2;q=l;l=l+((1*y|0)+15&-16)|0;y=d+36|0;x=d+32|0;Lb(0,fa,$,k,q,(M|0)==2?q+(aa<<2)|0:0,i,0,u,B,z,c[K>>2]|0,c[J>>2]|0,A,f-t|0,c[L>>2]|0,p,P,r,y,c[x>>2]|0);if(s){L=(Pb(p,1)|0)==0;Bc(fa,$,k,ba,w,v,X+32-(c[T>>2]|0)-(V(c[U>>2]|0)|0)|0,p,M);if(!L)Jb(fa,q,i,P,M,aa,$,k,ba,ca,da,u,c[y>>2]|0,c[x>>2]|0)}else Bc(fa,$,k,ba,w,v,X+32-(c[T>>2]|0)-(V(c[U>>2]|0)|0)|0,p,M);if(D&(o|0)>0){i=0;do{g[ba+(i<<2)>>2]=-28.0;i=i+1|0}while((i|0)!=(o|0))}Cc(fa,q,ia,ba,$,H,M,ea,C,P,c[ha>>2]|0,m,c[x>>2]|0);o=d+56|0;q=d+60|0;r=d+68|0;s=d+64|0;t=d+76|0;u=d+72|0;v=fa+60|0;m=(P|0)!=0;if(m){i=0;do{P=c[o>>2]|0;P=(P|0)>15?P:15;c[o>>2]=P;L=c[q>>2]|0;L=(L|0)>15?L:15;c[q>>2]=L;M=c[ia+(i<<2)>>2]|0;hc(M,M,L,P,c[R>>2]|0,+g[r>>2],+g[s>>2],c[t>>2]|0,c[u>>2]|0,c[v>>2]|0,W,c[x>>2]|0);P=c[R>>2]|0;M=M+(P<<2)|0;hc(M,M,c[o>>2]|0,j,aa-P|0,+g[s>>2],n,c[u>>2]|0,e,c[v>>2]|0,W,c[x>>2]|0);i=i+1|0}while((i|0)<(ea|0))}else{i=0;do{P=c[o>>2]|0;P=(P|0)>15?P:15;c[o>>2]=P;M=c[q>>2]|0;M=(M|0)>15?M:15;c[q>>2]=M;L=c[ia+(i<<2)>>2]|0;hc(L,L,M,P,c[R>>2]|0,+g[r>>2],+g[s>>2],c[t>>2]|0,c[u>>2]|0,c[v>>2]|0,W,c[x>>2]|0);i=i+1|0}while((i|0)<(ea|0))}c[q>>2]=c[o>>2];c[r>>2]=c[s>>2];c[t>>2]=c[u>>2];c[o>>2]=j;g[s>>2]=n;c[u>>2]=e;if(m){c[q>>2]=j;g[r>>2]=n;c[t>>2]=e}if(N)Ef(ba+(ga<<2)|0,ba|0,ga<<2|0)|0;do if(F){if(O)i=0;else break;do{Y=ca+(i<<2)|0;W=ba+(i<<2)|0;c[Y>>2]=c[(+g[Y>>2]<+g[W>>2]?Y:W)>>2];i=i+1|0}while((i|0)<(Z|0))}else{W=ga<<3;Ef(da|0,ca|0,W|0)|0;Ef(ca|0,ba|0,W|0)|0;n=(c[_>>2]|0)<10?+(Q|0)*1.0000000474974513e-03:1.0;if(O)i=0;else break;do{W=Y+(i<<2)|0;la=n+ +g[W>>2];ka=+g[ba+(i<<2)>>2];g[W>>2]=la<ka?la:ka;i=i+1|0}while((i|0)<(Z|0))}while(0);m=(k|0)<(ga|0);do if(($|0)>0){i=0;do{g[ba+(i<<2)>>2]=0.0;g[da+(i<<2)>>2]=-28.0;g[ca+(i<<2)>>2]=-28.0;i=i+1|0}while((i|0)!=($|0));if(m){i=k;do{g[ba+(i<<2)>>2]=0.0;g[da+(i<<2)>>2]=-28.0;g[ca+(i<<2)>>2]=-28.0;i=i+1|0}while((i|0)!=(ga|0));i=0}else i=0;do{Z=i+ga|0;g[ba+(Z<<2)>>2]=0.0;g[da+(Z<<2)>>2]=-28.0;g[ca+(Z<<2)>>2]=-28.0;i=i+1|0}while((i|0)!=($|0));if(!m)break;do{$=k+ga|0;g[ba+($<<2)>>2]=0.0;g[da+($<<2)>>2]=-28.0;g[ca+($<<2)>>2]=-28.0;k=k+1|0}while((k|0)!=(ga|0))}else{if(m)i=k;else break;do{g[ba+(i<<2)>>2]=0.0;g[da+(i<<2)>>2]=-28.0;g[ca+(i<<2)>>2]=-28.0;i=i+1|0}while((i|0)!=(ga|0));do{$=k+ga|0;g[ba+($<<2)>>2]=0.0;g[da+($<<2)>>2]=-28.0;g[ca+($<<2)>>2]=-28.0;k=k+1|0}while((k|0)!=(ga|0))}while(0);c[y>>2]=c[U>>2];wc(ia,h,aa,ea,c[ha>>2]|0,+g[fa+16>>2],d+80|0);c[_>>2]=0;if(((c[T>>2]|0)+-32+(V(c[U>>2]|0)|0)|0)>(X|0))k=-3;else{if(c[p+44>>2]|0)c[d+40>>2]=1;k=(aa|0)/(c[ha>>2]|0)|0}pa(G|0);h=k;l=ja;return h|0}function vc(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,h=0,i=0,j=0.0,k=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,A=0.0,B=0,C=0,D=0,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=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,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,qa=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0,Ma=0,Na=0,Oa=0,Pa=0,Qa=0,Ra=0,Sa=0,Ta=0,Ua=0,Va=0,Wa=0,Xa=0,Ya=0,Za=0,_a=0,$a=0,ab=0,bb=0,cb=0,db=0,eb=0,fb=0,gb=0,hb=0,ib=0,jb=0,kb=0,lb=0,mb=0,nb=0,ob=0,pb=0,qb=0,rb=0,sb=0,tb=0,ub=0,vb=0,wb=0,xb=0,yb=0,zb=0.0,Ab=0,Bb=0,Cb=0,Db=0,Eb=0,Fb=0,Gb=0,Ib=0,Jb=0,Lb=0,Mb=0,Nb=0,Ob=0,Pb=0,Qb=0,Rb=0.0,Sb=0;Qb=l;l=l+8208|0;Gb=0-d|0;Ib=Qb+4112|0;Jb=Qb+16|0;Ob=Qb+8|0;x=Qb;Pb=c[a+8>>2]|0;y=c[a>>2]|0;o=c[y+8>>2]|0;Lb=c[y+4>>2]|0;t=c[y+32>>2]|0;h=Lb+2048|0;f=0;do{Nb=a+88+((S(f,h)|0)<<2)|0;c[Ob+(f<<2)>>2]=Nb;c[x+(f<<2)>>2]=Nb+8192+(Gb<<2);f=f+1|0}while((f|0)<(Pb|0));Fb=a+88+((S(h,Pb)|0)<<2)|0;v=Fb+(Pb*24<<2)|0;n=o<<1;n=v+(n<<2)+(n<<2)+(n<<2)|0;Mb=a+48|0;Nb=c[Mb>>2]|0;w=c[a+20>>2]|0;if(!((Nb|0)>4|(w|0)!=0)?(c[a+52>>2]|0)==0:0){Cb=(Nb|0)==0;if(Cb){Bb=a+32|0;Ab=c[Bb>>2]|0;mc(Ob,Jb,2048,Pb,Ab);nc(Jb+1440|0,Jb,1328,620,Ib,Ab);Ab=720-(c[Ib>>2]|0)|0;c[a+44>>2]=Ab;zb=1.0}else{zb=.800000011920929;Ab=c[a+44>>2]|0;Bb=a+32|0}Db=ra()|0;Eb=l;l=l+((1*(Lb<<2)|0)+15&-16)|0;jb=c[y+60>>2]|0;kb=Ab<<1;kb=(kb|0)<1024?kb:1024;lb=2047-kb|0;mb=Ib+4096+(0-kb<<2)|0;nb=kb>>1;ob=(Ab|0)>0;pb=2048-d|0;qb=pb<<2;rb=1024-Ab|0;sb=Lb+d|0;tb=(sb|0)>0;ub=pb+-1|0;vb=(Lb|0)>0;wb=(d|0)>0;xb=a+56|0;yb=a+64|0;m=a+72|0;n=(Lb|0)/2|0;o=(Lb|0)>1;p=Lb+-1|0;q=1024-d+rb|0;r=1024-nb|0;s=1024-kb|0;t=sb<<2;u=lb+-1|0;v=Jb+4|0;w=lb+-2|0;e=Jb+8|0;x=lb+-3|0;y=Jb+12|0;a=lb+-4|0;B=Jb+16|0;C=lb+-5|0;D=Jb+20|0;E=lb+-6|0;F=Jb+24|0;H=lb+-7|0;I=Jb+28|0;J=lb+-8|0;K=Jb+32|0;L=lb+-9|0;M=Jb+36|0;N=lb+-10|0;O=Jb+40|0;P=lb+-11|0;Q=Jb+44|0;R=lb+-12|0;T=Jb+48|0;U=lb+-13|0;V=Jb+52|0;W=lb+-14|0;X=Jb+56|0;Y=lb+-15|0;Z=Jb+60|0;_=lb+-16|0;$=Jb+64|0;aa=lb+-17|0;ba=Jb+68|0;ca=lb+-18|0;da=Jb+72|0;ea=lb+-19|0;fa=Jb+76|0;ga=lb+-20|0;ha=Jb+80|0;ia=lb+-21|0;ja=Jb+84|0;ka=lb+-22|0;la=Jb+88|0;ma=lb+-23|0;na=Jb+92|0;oa=pb+-2|0;qa=Jb+4|0;sa=pb+-3|0;ta=Jb+8|0;ua=pb+-4|0;va=Jb+12|0;wa=pb+-5|0;xa=Jb+16|0;ya=pb+-6|0;za=Jb+20|0;Aa=pb+-7|0;Ba=Jb+24|0;Ca=pb+-8|0;Da=Jb+28|0;Ea=pb+-9|0;Fa=Jb+32|0;Ga=pb+-10|0;Ha=Jb+36|0;Ia=pb+-11|0;Ja=Jb+40|0;Ka=pb+-12|0;La=Jb+44|0;Ma=pb+-13|0;Na=Jb+48|0;Oa=pb+-14|0;Pa=Jb+52|0;Qa=pb+-15|0;Ra=Jb+56|0;Sa=pb+-16|0;Ta=Jb+60|0;Ua=pb+-17|0;Va=Jb+64|0;Wa=pb+-18|0;Xa=Jb+68|0;Ya=pb+-19|0;Za=Jb+72|0;_a=pb+-20|0;$a=Jb+76|0;ab=pb+-21|0;bb=Jb+80|0;cb=pb+-22|0;db=Jb+84|0;eb=pb+-23|0;fb=Jb+88|0;gb=pb+-24|0;hb=Jb+92|0;k=0;do{ib=c[Ob+(k<<2)>>2]|0;f=0;do{c[Ib+(f<<2)>>2]=c[ib+(f+1024<<2)>>2];f=f+1|0}while((f|0)!=1024);if(Cb){pc(Ib,Jb,jb,Lb,24,1024,c[Bb>>2]|0)|0;g[Jb>>2]=+g[Jb>>2]*1.000100016593933;f=1;do{i=Jb+(f<<2)|0;A=+g[i>>2];z=+(f|0);g[i>>2]=A-z*(z*(A*6.400000711437315e-05));f=f+1|0}while((f|0)!=25);i=Fb+(k*24<<2)|0;qc(i,Jb,24)}else i=Fb+(k*24<<2)|0;c[Jb>>2]=c[ib+(lb<<2)>>2];c[v>>2]=c[ib+(u<<2)>>2];c[e>>2]=c[ib+(w<<2)>>2];c[y>>2]=c[ib+(x<<2)>>2];c[B>>2]=c[ib+(a<<2)>>2];c[D>>2]=c[ib+(C<<2)>>2];c[F>>2]=c[ib+(E<<2)>>2];c[I>>2]=c[ib+(H<<2)>>2];c[K>>2]=c[ib+(J<<2)>>2];c[M>>2]=c[ib+(L<<2)>>2];c[O>>2]=c[ib+(N<<2)>>2];c[Q>>2]=c[ib+(P<<2)>>2];c[T>>2]=c[ib+(R<<2)>>2];c[V>>2]=c[ib+(U<<2)>>2];c[X>>2]=c[ib+(W<<2)>>2];c[Z>>2]=c[ib+(Y<<2)>>2];c[$>>2]=c[ib+(_<<2)>>2];c[ba>>2]=c[ib+(aa<<2)>>2];c[da>>2]=c[ib+(ca<<2)>>2];c[fa>>2]=c[ib+(ea<<2)>>2];c[ha>>2]=c[ib+(ga<<2)>>2];c[ja>>2]=c[ib+(ia<<2)>>2];c[la>>2]=c[ib+(ka<<2)>>2];c[na>>2]=c[ib+(ma<<2)>>2];Gc(mb,i,mb,kb,24,Jb,c[Bb>>2]|0);if(ob){z=1.0;j=1.0;f=0;do{A=+g[Ib+(r+f<<2)>>2];j=j+A*A;A=+g[Ib+(s+f<<2)>>2];z=z+A*A;f=f+1|0}while((f|0)<(nb|0))}else{z=1.0;j=1.0}A=+G(+((j<z?j:z)/z));Ff(ib|0,ib+(d<<2)|0,qb|0)|0;if(tb){f=0;j=zb*A;z=0.0;h=0;while(1){Sb=(f|0)<(Ab|0);j=Sb?j:A*j;f=f-(Sb?0:Ab)|0;g[ib+(h+pb<<2)>>2]=j*+g[Ib+(f+rb<<2)>>2];Rb=+g[ib+(q+f<<2)>>2];z=z+Rb*Rb;h=h+1|0;if((h|0)==(sb|0))break;else f=f+1|0}}else z=0.0;c[Jb>>2]=c[ib+(ub<<2)>>2];c[qa>>2]=c[ib+(oa<<2)>>2];c[ta>>2]=c[ib+(sa<<2)>>2];c[va>>2]=c[ib+(ua<<2)>>2];c[xa>>2]=c[ib+(wa<<2)>>2];c[za>>2]=c[ib+(ya<<2)>>2];c[Ba>>2]=c[ib+(Aa<<2)>>2];c[Da>>2]=c[ib+(Ca<<2)>>2];c[Fa>>2]=c[ib+(Ea<<2)>>2];c[Ha>>2]=c[ib+(Ga<<2)>>2];c[Ja>>2]=c[ib+(Ia<<2)>>2];c[La>>2]=c[ib+(Ka<<2)>>2];c[Na>>2]=c[ib+(Ma<<2)>>2];c[Pa>>2]=c[ib+(Oa<<2)>>2];c[Ra>>2]=c[ib+(Qa<<2)>>2];c[Ta>>2]=c[ib+(Sa<<2)>>2];c[Va>>2]=c[ib+(Ua<<2)>>2];c[Xa>>2]=c[ib+(Wa<<2)>>2];c[Za>>2]=c[ib+(Ya<<2)>>2];c[$a>>2]=c[ib+(_a<<2)>>2];c[bb>>2]=c[ib+(ab<<2)>>2];c[db>>2]=c[ib+(cb<<2)>>2];c[fb>>2]=c[ib+(eb<<2)>>2];c[hb>>2]=c[ib+(gb<<2)>>2];h=ib+8192|0;Sb=h+(Gb<<2)|0;Hc(Sb,i,Sb,sb,24,Jb,c[Bb>>2]|0);if(tb){j=0.0;f=0;do{Rb=+g[ib+(f+pb<<2)>>2];j=j+Rb*Rb;f=f+1|0}while((f|0)!=(sb|0))}else j=0.0;if(z>j*.20000000298023224){if(z<j){z=+G(+((z+1.0)/(j+1.0)));if(vb){j=1.0-z;f=0;do{Sb=ib+(f+pb<<2)|0;g[Sb>>2]=+g[Sb>>2]*(1.0-j*+g[jb+(f<<2)>>2]);f=f+1|0}while((f|0)!=(Lb|0))}if(wb){f=Lb;do{Sb=ib+(f+pb<<2)|0;g[Sb>>2]=z*+g[Sb>>2];f=f+1|0}while((f|0)<(sb|0))}}}else if(tb)tf(ib+(pb<<2)|0,0,t|0)|0;i=c[xb>>2]|0;Rb=-+g[yb>>2];Sb=c[m>>2]|0;hc(Eb,h,i,i,Lb,Rb,Rb,Sb,Sb,0,0,c[Bb>>2]|0);if(o){f=0;h=0;while(1){i=p+f|0;g[ib+(h+2048<<2)>>2]=+g[jb+(h<<2)>>2]*+g[Eb+(i<<2)>>2]+ +g[jb+(i<<2)>>2]*+g[Eb+(h<<2)>>2];i=h+1|0;if((i|0)<(n|0)){f=~h;h=i}else break}}k=k+1|0}while((k|0)<(Pb|0));pa(Db|0);Sb=Nb+1|0;c[Mb>>2]=Sb;l=Qb;return}i=c[a+24>>2]|0;m=c[y+12>>2]|0;m=(i|0)<(m|0)?i:m;q=(w|0)>(m|0)?w:m;Sb=S(Pb,d)|0;r=ra()|0;s=l;l=l+((1*(Sb<<2)|0)+15&-16)|0;j=(Nb|0)==0?1.5:.5;if((w|0)<(i|0)){h=0;do{k=S(h,o)|0;f=w;do{Sb=f+k|0;zb=+g[n+(Sb<<2)>>2];Sb=v+(Sb<<2)|0;Rb=+g[Sb>>2]-j;g[Sb>>2]=zb>Rb?zb:Rb;f=f+1|0}while((f|0)!=(i|0));h=h+1|0}while((h|0)<(Pb|0))}p=a+36|0;f=c[p>>2]|0;if((Pb|0)>0?(u=a+32|0,(w|0)<(m|0)):0){n=0;do{o=S(n,d)|0;m=w;do{k=b[t+(m<<1)>>1]|0;i=(k<<e)+o|0;m=m+1|0;k=(b[t+(m<<1)>>1]|0)-k<<e;if((k|0)>0){h=0;do{f=Hb(f)|0;g[s+(h+i<<2)>>2]=+(f>>20|0);h=h+1|0}while((h|0)!=(k|0))}Kb(s+(i<<2)|0,k,1.0,c[u>>2]|0)}while((m|0)<(q|0));n=n+1|0}while((n|0)!=(Pb|0))}c[p>>2]=f;h=2048-d+(Lb>>>1)<<2;f=0;do{Sb=c[Ob+(f<<2)>>2]|0;Ff(Sb|0,Sb+(d<<2)|0,h|0)|0;f=f+1|0}while((f|0)<(Pb|0));Cc(y,s,x,v,w,q,Pb,Pb,0,e,c[a+16>>2]|0,0,c[a+32>>2]|0);pa(r|0);Sb=Nb+1|0;c[Mb>>2]=Sb;l=Qb;return}function wc(a,b,d,e,f,h,i){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;h=+h;i=i|0;var j=0.0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0.0;u=l;q=l;l=l+((1*(d<<2)|0)+15&-16)|0;r=(d|0)/(f|0)|0;s=(r|0)>0;t=(d|0)>0;if((f|0)>1)o=0;else{o=0;do{p=i+(o<<2)|0;j=+g[p>>2];m=c[a+(o<<2)>>2]|0;n=b+(o<<2)|0;if(t){k=0;do{v=j+ +g[m+(k<<2)>>2]+1.0000000031710769e-30;j=v*h;g[n+((S(k,e)|0)<<2)>>2]=v*.000030517578125;k=k+1|0}while((k|0)!=(d|0))}g[p>>2]=j;o=o+1|0}while((o|0)<(e|0));l=u;return}do{n=i+(o<<2)|0;j=+g[n>>2];m=c[a+(o<<2)>>2]|0;p=b+(o<<2)|0;if(t){k=0;do{v=j+ +g[m+(k<<2)>>2]+1.0000000031710769e-30;j=v*h;g[q+(k<<2)>>2]=v;k=k+1|0}while((k|0)!=(d|0))}g[n>>2]=j;if(s){k=0;do{g[p+((S(k,e)|0)<<2)>>2]=+g[q+((S(k,f)|0)<<2)>>2]*.000030517578125;k=k+1|0}while((k|0)!=(r|0))}o=o+1|0}while((o|0)<(e|0));l=u;return}function xc(a,b,e){a=a|0;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;c[a>>2]=b;c[a+4>>2]=e;c[a+8>>2]=0;c[a+12>>2]=0;c[a+16>>2]=0;l=a+20|0;c[l>>2]=9;m=a+24|0;c[m>>2]=0;n=a+28|0;c[n>>2]=128;if(!e){g=0;f=0}else{c[m>>2]=1;g=d[b>>0]|0;f=1}j=a+40|0;c[j>>2]=g;h=g>>>1^127;k=a+32|0;c[k>>2]=h;c[a+44>>2]=0;c[l>>2]=17;c[n>>2]=32768;if(f>>>0<e>>>0){a=f+1|0;c[m>>2]=a;i=d[b+f>>0]|0;f=a}else i=0;c[j>>2]=i;a=(h<<8|(i|g<<8)>>>1&255)^255;c[k>>2]=a;c[l>>2]=25;c[n>>2]=8388608;if(f>>>0<e>>>0){h=f+1|0;c[m>>2]=h;g=d[b+f>>0]|0;f=h}else g=0;c[j>>2]=g;a=(a<<8&2147483392|(g|i<<8)>>>1&255)^255;c[k>>2]=a;c[l>>2]=33;c[n>>2]=-2147483648;if(f>>>0>=e>>>0){m=0;c[j>>2]=m;n=g<<8;n=m|n;n=n>>>1;m=a<<8;n=n&255;m=m&2147483392;n=m|n;n=n^255;c[k>>2]=n;return}c[m>>2]=f+1;m=d[b+f>>0]|0;c[j>>2]=m;n=g<<8;n=m|n;n=n>>>1;m=a<<8;n=n&255;m=m&2147483392;n=m|n;n=n^255;c[k>>2]=n;return}function yc(a,b,e){a=a|0;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;o=a+28|0;f=c[o>>2]|0;p=a+32|0;h=c[p>>2]|0;e=f>>>e;n=-1;while(1){n=n+1|0;g=S(d[b+n>>0]|0,e)|0;if(h>>>0>=g>>>0)break;else f=g}b=h-g|0;c[p>>2]=b;e=f-g|0;c[o>>2]=e;if(e>>>0>=8388609)return n|0;j=a+20|0;k=a+40|0;l=a+24|0;i=c[a+4>>2]|0;m=c[j>>2]|0;f=c[l>>2]|0;h=c[k>>2]|0;g=b;while(1){m=m+8|0;c[j>>2]=m;e=e<<8;c[o>>2]=e;if(f>>>0<i>>>0){b=c[a>>2]|0;q=f+1|0;c[l>>2]=q;b=d[b+f>>0]|0;f=q}else b=0;c[k>>2]=b;g=(g<<8&2147483392|(b|h<<8)>>>1&255)^255;c[p>>2]=g;if(e>>>0>=8388609)break;else h=b}return n|0}function zc(a,b,e,f,h,i,j,k){a=a|0;b=b|0;e=e|0;f=f|0;h=h|0;i=i|0;j=j|0;k=k|0;var 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.0,y=0.0,z=0,A=0.0;w=l;l=l+16|0;v=w;u=v;c[u>>2]=0;c[u+4>>2]=0;if(!h){q=+g[18836+(k<<2)>>2];r=+g[18852+(k<<2)>>2]}else{q=0.0;r=.149993896484375}if((b|0)>=(e|0)){l=w;return}s=i+20|0;t=i+28|0;u=(c[i+4>>2]<<3)+32|0;p=a+8|0;do{o=((b|0)<20?b:20)<<1;n=26618+(k*84|0)+(h*42|0)+o|0;o=(o|1)+(26618+(k*84|0)+(h*42|0))|0;m=0;do{a=u-(c[s>>2]|0)-(V(c[t>>2]|0)|0)|0;do if((a|0)<=14){if((a|0)>1){a=yc(i,26954,2)|0;a=a>>1^0-(a&1);break}if((a|0)==1)a=0-(Zb(i,1)|0)|0;else a=-1}else a=Ec(i,(d[n>>0]|0)<<7,(d[o>>0]|0)<<6)|0;while(0);x=+(a|0);z=f+((S(c[p>>2]|0,m)|0)+b<<2)|0;A=+g[z>>2];a=v+(m<<2)|0;y=+g[a>>2];g[z>>2]=x+(y+q*(A<-9.0?-9.0:A));g[a>>2]=x+y-r*x;m=m+1|0}while((m|0)<(j|0));b=b+1|0}while((b|0)!=(e|0));l=w;return}function Ac(a,b,d,e,f,h,i){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0.0;if((b|0)>=(d|0))return;l=a+8|0;do{k=f+(b<<2)|0;a=c[k>>2]|0;if((a|0)>=1){j=0;do{n=+(Pb(h,a)|0)+.5;a=c[k>>2]|0;m=e+((S(c[l>>2]|0,j)|0)+b<<2)|0;g[m>>2]=+g[m>>2]+(n*+(1<<14-a|0)*.00006103515625+-.5);j=j+1|0}while((j|0)<(i|0))}b=b+1|0}while((b|0)!=(d|0));return}function Bc(a,b,d,e,f,h,i,j,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,n=0,o=0,p=0.0;n=a+8|0;if((b|0)>=(d|0))return;if((i|0)>=(k|0)){m=b;do{l=f+(m<<2)|0;if((c[l>>2]|0)<=7?(c[h+(m<<2)>>2]|0)==0:0){a=0;do{p=+(Pb(j,1)|0)+-.5;o=e+((S(c[n>>2]|0,a)|0)+m<<2)|0;g[o>>2]=+g[o>>2]+p*+(1<<13-(c[l>>2]|0)|0)*.00006103515625;i=i+-1|0;a=a+1|0}while((a|0)<(k|0))}m=m+1|0}while(!((m|0)>=(d|0)|(i|0)<(k|0)))}if((i|0)<(k|0))return;do{l=f+(b<<2)|0;if((c[l>>2]|0)<=7?(c[h+(b<<2)>>2]|0)==1:0){a=0;do{p=+(Pb(j,1)|0)+-.5;o=e+((S(c[n>>2]|0,a)|0)+b<<2)|0;g[o>>2]=+g[o>>2]+p*+(1<<13-(c[l>>2]|0)|0)*.00006103515625;i=i+-1|0;a=a+1|0}while((a|0)<(k|0))}b=b+1|0}while(!((b|0)>=(d|0)|(i|0)<(k|0)));return}function Cc(a,b,d,e,f,h,i,j,k,m,n,o,p){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;h=h|0;i=i|0;j=j|0;k=k|0;m=m|0;n=n|0;o=o|0;p=p|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;A=l;y=c[a+4>>2]|0;s=c[a+8>>2]|0;w=c[a+44>>2]|0;u=w<<m;z=l;l=l+((1*(u<<2)|0)+15&-16)|0;t=1<<m;v=(k|0)==0;x=(c[a+36>>2]|0)-(v?m:0)|0;w=v?u:w;v=v?1:t;if((i|0)==1&(j|0)==2){Ib(a,b,z,e,f,h,t,n,o);j=d+4|0;r=(c[j>>2]|0)+(((y|0)/2|0)<<2)|0;Ef(r|0,z|0,u<<2|0)|0;m=(v|0)>0;if(!m){l=A;return}i=a+64|0;q=a+60|0;k=0;do{u=(c[d>>2]|0)+((S(k,w)|0)<<2)|0;Dc(i,r+(k<<2)|0,u,c[q>>2]|0,y,x,v,p);k=k+1|0}while((k|0)!=(v|0));if(!m){l=A;return}i=a+64|0;m=a+60|0;k=0;do{d=(c[j>>2]|0)+((S(k,w)|0)<<2)|0;Dc(i,z+(k<<2)|0,d,c[m>>2]|0,y,x,v,p);k=k+1|0}while((k|0)!=(v|0));l=A;return}if((i|0)==2&(j|0)==1){m=(c[d>>2]|0)+(((y|0)/2|0)<<2)|0;Ib(a,b,z,e,f,h,t,n,o);Ib(a,b+(u<<2)|0,m,e+(s<<2)|0,f,h,t,n,o);if((u|0)>0){k=0;do{h=z+(k<<2)|0;g[h>>2]=(+g[h>>2]+ +g[m+(k<<2)>>2])*.5;k=k+1|0}while((k|0)!=(u|0))}if((v|0)<=0){l=A;return}i=a+64|0;m=a+60|0;k=0;do{a=(c[d>>2]|0)+((S(k,w)|0)<<2)|0;Dc(i,z+(k<<2)|0,a,c[m>>2]|0,y,x,v,p);k=k+1|0}while((k|0)!=(v|0));l=A;return}else{i=a+64|0;q=a+60|0;if((v|0)>0)k=0;else{k=0;do{Ib(a,b+((S(k,u)|0)<<2)|0,z,e+((S(k,s)|0)<<2)|0,f,h,t,n,o);k=k+1|0}while((k|0)<(j|0));l=A;return}do{Ib(a,b+((S(k,u)|0)<<2)|0,z,e+((S(k,s)|0)<<2)|0,f,h,t,n,o);r=d+(k<<2)|0;m=0;do{B=(c[r>>2]|0)+((S(m,w)|0)<<2)|0;Dc(i,z+(m<<2)|0,B,c[q>>2]|0,y,x,v,p);m=m+1|0}while((m|0)!=(v|0));k=k+1|0}while((k|0)<(j|0));l=A;return}}function Dc(a,d,e,f,h,i,j,k){a=a|0;d=d|0;e=e|0;f=f|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.0,u=0.0,v=0.0,w=0.0,x=0.0,y=0.0;k=c[a>>2]|0;l=c[a+24>>2]|0;n=k>>1;if((i|0)>0){m=0;k=n;while(1){l=l+(k<<2)|0;m=m+1|0;n=k>>1;if((m|0)==(i|0)){r=n;break}else k=n}}else r=n;s=k>>2;q=e+(h>>1<<2)|0;i=c[a+8+(i<<2)>>2]|0;if((s|0)>0){o=j<<1;p=0-o|0;a=d;k=d+((S(r+-1|0,j)|0)<<2)|0;m=c[i+44>>2]|0;n=0;while(1){u=+g[k>>2];w=+g[l+(n<<2)>>2];v=+g[a>>2];t=+g[l+(n+s<<2)>>2];j=b[m>>1]<<1;g[q+((j|1)<<2)>>2]=u*w+v*t;g[q+(j<<2)>>2]=w*v-u*t;n=n+1|0;if((n|0)==(s|0))break;else{a=a+(o<<2)|0;k=k+(p<<2)|0;m=m+2|0}}}lc(i,q);o=s+1>>1;if((o|0)>0){p=s+-1|0;d=r+-1|0;n=q;a=0;i=0;k=q+(r<<2)|0;while(1){m=n+4|0;y=+g[m>>2];u=+g[n>>2];w=+g[l+(i<<2)>>2];x=+g[l+(i+s<<2)>>2];j=k+-4|0;k=k+-8|0;t=+g[j>>2];v=+g[k>>2];g[n>>2]=y*w+u*x;g[j>>2]=y*x-u*w;w=+g[l+(p+a<<2)>>2];u=+g[l+(d+a<<2)>>2];g[k>>2]=t*w+v*u;g[m>>2]=t*u-v*w;m=i+1|0;if((m|0)==(o|0))break;else{n=n+8|0;a=~i;i=m}}}a=(h|0)/2|0;if((h|0)<=1)return;n=f+(h<<2)|0;m=e;k=e+(h<<2)|0;l=0;while(1){n=n+-4|0;k=k+-4|0;v=+g[k>>2];x=+g[m>>2];w=+g[n>>2];y=+g[f>>2];g[m>>2]=x*w-v*y;g[k>>2]=v*w+x*y;l=l+1|0;if((l|0)>=(a|0))break;else{f=f+4|0;m=m+4|0}}return}function Ec(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=Fc(a,15)|0;if(h>>>0<b>>>0){h=b;i=0;c=0;h=h+c|0;g=h>>>0<32768;h=g?h:32768;Ub(a,c,h,32768);return i|0}g=(S(16384-c|0,32736-b|0)|0)>>>15;d=g+1|0;a:do if(!g){e=1;i=5}else{e=1;while(1){f=d<<1;g=f+b|0;if(h>>>0<g>>>0)break a;e=e+1|0;f=(S(f+-2|0,c)|0)>>>15;d=f+1|0;if(!f){b=g;i=5;break}else b=g}}while(0);if((i|0)==5){i=(h-b|0)>>>1;e=i+e|0;b=(i<<1)+b|0}c=b+d|0;g=h>>>0<c>>>0;h=d;i=g?0-e|0:e;c=g?b:c;h=h+c|0;g=h>>>0<32768;h=g?h:32768;Ub(a,c,h,32768);return i|0}function Fc(a,b){a=a|0;b=b|0;var d=0,e=0;e=(c[a+28>>2]|0)>>>b;c[a+36>>2]=e;d=1<<b;b=(((c[a+32>>2]|0)>>>0)/(e>>>0)|0)+1|0;return d-(d>>>0<b>>>0?d:b)|0}function Gc(a,b,d,e,f,h,i){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;h=h|0;i=i|0;var j=0,k=0.0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;r=l;l=l+16|0;n=r;q=l;l=l+((1*(f<<2)|0)+15&-16)|0;p=l;l=l+((1*(f+e<<2)|0)+15&-16)|0;o=(f|0)>0;if(o){j=f+-1|0;i=0;do{c[q+(i<<2)>>2]=c[b+(j-i<<2)>>2];i=i+1|0}while((i|0)!=(f|0));if(o){j=f+-1|0;i=0;do{c[p+(i<<2)>>2]=c[h+(j-i<<2)>>2];i=i+1|0}while((i|0)!=(f|0))}}if((e|0)>0)Ef(p+(f<<2)|0,a|0,e<<2|0)|0;if(o){j=e+-1|0;i=0;do{c[h+(i<<2)>>2]=c[a+(j-i<<2)>>2];i=i+1|0}while((i|0)!=(f|0))}j=e+-3|0;if((e|0)>3){b=n+4|0;h=n+8|0;m=n+12|0;i=0;do{c[n>>2]=0;c[n+4>>2]=0;c[n+8>>2]=0;c[n+12>>2]=0;Ic(q,p+(i<<2)|0,n,f);g[d+(i<<2)>>2]=+g[a+(i<<2)>>2]+ +g[n>>2];s=i|1;g[d+(s<<2)>>2]=+g[a+(s<<2)>>2]+ +g[b>>2];s=i|2;g[d+(s<<2)>>2]=+g[a+(s<<2)>>2]+ +g[h>>2];s=i|3;g[d+(s<<2)>>2]=+g[a+(s<<2)>>2]+ +g[m>>2];i=i+4|0}while((i|0)<(j|0))}else i=0;if((i|0)>=(e|0)){l=r;return}if(!o){do{g[d+(i<<2)>>2]=+g[a+(i<<2)>>2]+0.0;i=i+1|0}while((i|0)!=(e|0));l=r;return}do{j=0;k=0.0;do{k=k+ +g[q+(j<<2)>>2]*+g[p+(j+i<<2)>>2];j=j+1|0}while((j|0)!=(f|0));g[d+(i<<2)>>2]=k+ +g[a+(i<<2)>>2];i=i+1|0}while((i|0)!=(e|0));l=r;return}function Hc(a,b,d,e,f,h,i){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;h=h|0;i=i|0;var j=0,k=0.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.0,z=0.0,A=0,B=0.0,C=0;v=l;l=l+16|0;r=v;s=l;l=l+((1*(f<<2)|0)+15&-16)|0;m=f+e|0;t=l;l=l+((1*(m<<2)|0)+15&-16)|0;u=(f|0)>0;if(u){j=f+-1|0;i=0;do{c[s+(i<<2)>>2]=c[b+(j-i<<2)>>2];i=i+1|0}while((i|0)!=(f|0));if(u){j=f+-1|0;i=0;do{g[t+(i<<2)>>2]=-+g[h+(j-i<<2)>>2];i=i+1|0}while((i|0)!=(f|0));i=f}else i=0}else i=0;if((m|0)>(i|0))tf(t+(i<<2)|0,0,m-i<<2|0)|0;j=e+-3|0;if((e|0)>3){m=r+4|0;n=r+8|0;o=r+12|0;p=b+4|0;q=b+8|0;i=0;do{c[r>>2]=c[a+(i<<2)>>2];C=i|1;c[m>>2]=c[a+(C<<2)>>2];A=i|2;c[n>>2]=c[a+(A<<2)>>2];w=i|3;c[o>>2]=c[a+(w<<2)>>2];Ic(s,t+(i<<2)|0,r,f);B=+g[r>>2];k=-B;x=i+f|0;g[t+(x<<2)>>2]=k;g[d+(i<<2)>>2]=B;B=+g[m>>2]+ +g[b>>2]*k;g[m>>2]=B;y=-B;g[t+(x+1<<2)>>2]=y;g[d+(C<<2)>>2]=B;B=+g[n>>2]+ +g[b>>2]*y+ +g[p>>2]*k;g[n>>2]=B;z=-B;g[t+(x+2<<2)>>2]=z;g[d+(A<<2)>>2]=B;k=+g[o>>2]+ +g[b>>2]*z+ +g[p>>2]*y+ +g[q>>2]*k;g[t+(x+3<<2)>>2]=-k;g[d+(w<<2)>>2]=k;i=i+4|0}while((i|0)<(j|0))}else i=0;a:do if((i|0)<(e|0)){if(!u)while(1){C=c[a+(i<<2)>>2]|0;c[t+(i+f<<2)>>2]=C;c[d+(i<<2)>>2]=C;i=i+1|0;if((i|0)==(e|0))break a}do{j=0;k=+g[a+(i<<2)>>2];do{k=k-+g[s+(j<<2)>>2]*+g[t+(j+i<<2)>>2];j=j+1|0}while((j|0)!=(f|0));g[t+(i+f<<2)>>2]=k;g[d+(i<<2)>>2]=k;i=i+1|0}while((i|0)!=(e|0))}while(0);if(!u){l=v;return}j=e+-1|0;i=0;do{c[h+(i<<2)>>2]=c[d+(j-i<<2)>>2];i=i+1|0}while((i|0)!=(f|0));l=v;return}function Ic(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0.0,h=0.0,i=0.0,j=0,k=0,l=0.0,m=0.0,n=0.0,o=0.0,p=0.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.0;f=+g[b>>2];i=+g[b+4>>2];e=b+12|0;l=+g[b+8>>2];r=d+-3|0;if((d|0)>3){s=c+4|0;t=c+8|0;u=c+12|0;v=d+-4&-4;k=v+4|0;v=v+7|0;q=0;j=a;m=+g[c>>2];n=+g[s>>2];o=+g[t>>2];p=+g[u>>2];while(1){w=+g[j>>2];h=+g[e>>2];A=f*w+m;g[c>>2]=A;z=i*w+n;g[s>>2]=z;y=l*w+o;g[t>>2]=y;w=w*h+p;g[u>>2]=w;x=+g[j+4>>2];f=+g[e+4>>2];A=i*x+A;g[c>>2]=A;z=l*x+z;g[s>>2]=z;y=h*x+y;g[t>>2]=y;w=x*f+w;g[u>>2]=w;x=+g[j+8>>2];i=+g[e+8>>2];A=l*x+A;g[c>>2]=A;z=h*x+z;g[s>>2]=z;y=f*x+y;g[t>>2]=y;w=x*i+w;g[u>>2]=w;x=+g[j+12>>2];l=+g[e+12>>2];m=h*x+A;g[c>>2]=m;n=f*x+z;g[s>>2]=n;o=i*x+y;g[t>>2]=o;p=x*l+w;g[u>>2]=p;q=q+4|0;if((q|0)>=(r|0))break;else{e=e+16|0;j=j+16|0}}a=a+(k<<2)|0;e=b+(v<<2)|0}else{k=0;h=0.0}j=k|1;if((k|0)<(d|0)){A=+g[a>>2];h=+g[e>>2];g[c>>2]=f*A+ +g[c>>2];v=c+4|0;g[v>>2]=i*A+ +g[v>>2];v=c+8|0;g[v>>2]=l*A+ +g[v>>2];v=c+12|0;g[v>>2]=A*h+ +g[v>>2];a=a+4|0;e=e+4|0}if((j|0)<(d|0)){A=+g[a>>2];f=+g[e>>2];g[c>>2]=i*A+ +g[c>>2];v=c+4|0;g[v>>2]=l*A+ +g[v>>2];v=c+8|0;g[v>>2]=h*A+ +g[v>>2];v=c+12|0;g[v>>2]=A*f+ +g[v>>2];a=a+4|0;e=e+4|0}if((j+1|0)>=(d|0))return;z=+g[a>>2];A=+g[e>>2];g[c>>2]=l*z+ +g[c>>2];d=c+4|0;g[d>>2]=h*z+ +g[d>>2];d=c+8|0;g[d>>2]=f*z+ +g[d>>2];d=c+12|0;g[d>>2]=z*A+ +g[d>>2];return}function Jc(a){a=a|0;var d=0,e=0,f=0,g=0;f=a+2340|0;e=c[f>>2]|0;g=32767/(e+1|0)|0;if((e|0)>0){d=0;e=0;do{e=e+g|0;b[a+4052+(d<<1)>>1]=e;d=d+1|0}while((d|0)<(c[f>>2]|0))}c[a+4148>>2]=0;c[a+4152>>2]=3176576;return}function Kc(a,d,e,f){a=a|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,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,T=0,U=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0;K=l;l=l+32|0;J=K;p=a+2772|0;k=a+2316|0;g=c[k>>2]|0;m=a+4156|0;if((g|0)!=(c[m>>2]|0)){i=a+2340|0;I=c[i>>2]|0;j=32767/(I+1|0)|0;if((I|0)>0){g=0;h=0;do{h=h+j|0;b[a+4052+(g<<1)>>1]=h;g=g+1|0}while((g|0)<(c[i>>2]|0));g=c[k>>2]|0}c[a+4148>>2]=0;c[a+4152>>2]=3176576;c[m>>2]=g}o=a+4160|0;if(!(c[o>>2]|0)){if(!(c[a+4164>>2]|0)){h=a+2340|0;if((c[h>>2]|0)>0){g=0;do{I=a+4052+(g<<1)|0;G=b[I>>1]|0;H=(b[a+2344+(g<<1)>>1]|0)-G|0;b[I>>1]=((H>>16)*16348|0)+G+(((H&65535)*16348|0)>>>16);g=g+1|0}while((g|0)<(c[h>>2]|0))}m=a+2324|0;n=c[m>>2]|0;if((n|0)>0){g=0;h=0;i=0;while(1){j=c[d+16+(i<<2)>>2]|0;k=(j|0)>(h|0);g=k?i:g;i=i+1|0;if((i|0)>=(n|0))break;else h=k?j:h}}else g=0;h=a+2332|0;I=c[h>>2]|0;Ff(a+2772+(I<<2)|0,p|0,S((n<<2)+-4|0,I)|0)|0;h=c[h>>2]|0;Ef(p|0,a+4+((S(h,g)|0)<<2)|0,h<<2|0)|0;h=c[m>>2]|0;if((h|0)>0){i=a+4148|0;g=0;j=c[i>>2]|0;do{I=(c[d+16+(g<<2)>>2]|0)-j|0;j=((I>>16)*4634|0)+j+(((I&65535)*4634|0)>>>16)|0;c[i>>2]=j;g=g+1|0}while((g|0)<(h|0))}}if(!(c[o>>2]|0)){tf(a+4084|0,0,c[a+2340>>2]<<2|0)|0;l=K;return}}H=ra()|0;I=l;l=l+((1*(f+16<<2)|0)+15&-16)|0;i=b[a+4224>>1]|0;j=c[a+4244>>2]|0;g=j<<16>>16;i=((S(g,i&65535)|0)>>16)+(S(g,i>>16)|0)+(S((j>>15)+1>>1,i)|0)|0;j=i>>16;g=c[a+4148>>2]|0;h=g>>16;if((g|0)>8388608|(i|0)>2097151){h=S(h,h)|0;m=16;g=S(j,j)|0}else{G=i<<16>>16;m=g<<16>>16;h=((S(m,g&65535)|0)>>16)+(S(m,h)|0)+(S((g>>15)+1>>1,g)|0)|0;m=8;g=((S(G,i&65535)|0)>>16)+(S(G,j)|0)+(S((i>>15)+1>>1,i)|0)|0}g=h-(g<<5)|0;if((g|0)<1)g=0;else{j=V(g|0)|0;h=24-j|0;i=0-h|0;do if(h)if((h|0)<0){g=g>>>(h+32|0)|g<<i;break}else{g=g<<32-h|g>>>h;break}while(0);G=((j&1|0)==0?46214:32768)>>>(j>>>1);g=(S(g&127,13959168)|0)>>>16;g=(S(g,G>>16)|0)+G+((S(g,G&65535)|0)>>>16)|0}k=I+64|0;j=255;while(1)if((j|0)>(f|0))j=j>>1;else break;n=g<<m;i=a+4152|0;g=c[i>>2]|0;m=(f|0)>0;if(m){h=0;do{g=(S(g,196314165)|0)+907633515|0;c[k+(h<<2)>>2]=c[a+2772+((g>>24&j)<<2)>>2];h=h+1|0}while((h|0)!=(f|0))}c[i>>2]=g;j=a+2340|0;Lc(J,a+4052|0,c[j>>2]|0);G=a+4084|0;g=I;h=G;i=g+64|0;do{c[g>>2]=c[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));if(m){A=c[j>>2]|0;a=A>>1;q=b[J>>1]|0;r=b[J+2>>1]|0;s=b[J+4>>1]|0;t=b[J+6>>1]|0;u=b[J+8>>1]|0;v=b[J+10>>1]|0;w=b[J+12>>1]|0;x=b[J+14>>1]|0;y=b[J+16>>1]|0;z=b[J+18>>1]|0;A=(A|0)==16;B=b[J+20>>1]|0;C=b[J+22>>1]|0;D=b[J+24>>1]|0;E=b[J+26>>1]|0;F=b[J+28>>1]|0;p=b[J+30>>1]|0;d=n<<10>>16;j=(n>>21)+1>>1;i=0;g=c[I+60>>2]|0;k=c[I+52>>2]|0;m=c[I+44>>2]|0;n=c[I+36>>2]|0;o=c[I+28>>2]|0;while(1){aa=S(q,g>>16)|0;$=(S(q,g&65535)|0)>>16;X=k;k=c[I+(i+14<<2)>>2]|0;_=S(r,k>>16)|0;Z=(S(r,k&65535)|0)>>16;Y=S(s,X>>16)|0;X=(S(s,X&65535)|0)>>16;R=m;m=c[I+(i+12<<2)>>2]|0;W=S(t,m>>16)|0;U=(S(t,m&65535)|0)>>16;T=S(u,R>>16)|0;R=(S(u,R&65535)|0)>>16;N=n;n=c[I+(i+10<<2)>>2]|0;Q=S(v,n>>16)|0;P=(S(v,n&65535)|0)>>16;O=S(w,N>>16)|0;N=(S(w,N&65535)|0)>>16;J=o;o=c[I+(i+8<<2)>>2]|0;M=S(x,o>>16)|0;L=(S(x,o&65535)|0)>>16;h=S(y,J>>16)|0;J=(S(y,J&65535)|0)>>16;g=c[I+(i+6<<2)>>2]|0;g=aa+a+$+_+Z+Y+X+W+U+T+R+Q+P+O+N+M+L+h+J+(S(z,g>>16)|0)+((S(z,g&65535)|0)>>16)|0;if(A){R=c[I+(i+5<<2)>>2]|0;Q=S(B,R>>16)|0;R=(S(B,R&65535)|0)>>16;U=c[I+(i+4<<2)>>2]|0;T=S(C,U>>16)|0;U=(S(C,U&65535)|0)>>16;X=c[I+(i+3<<2)>>2]|0;W=S(D,X>>16)|0;X=(S(D,X&65535)|0)>>16;Z=c[I+(i+2<<2)>>2]|0;Y=S(E,Z>>16)|0;Z=(S(E,Z&65535)|0)>>16;h=i+1|0;$=c[I+(h<<2)>>2]|0;_=S(F,$>>16)|0;$=(S(F,$&65535)|0)>>16;aa=c[I+(i<<2)>>2]|0;g=Q+g+R+T+U+W+X+Y+Z+_+$+(S(p,aa>>16)|0)+((S(p,aa&65535)|0)>>16)|0}else h=i+1|0;aa=I+(i+16<<2)|0;g=(c[aa>>2]|0)+(g<<4)|0;c[aa>>2]=g;aa=e+(i<<1)|0;$=((S(g>>16,d)|0)+(S(g,j)|0)+((S(g&65535,d)|0)>>16)>>7)+1>>1;$=(($|0)>32767?32767:($|0)>-32768?$:-32768)+(b[aa>>1]|0)|0;b[aa>>1]=($|0)>32767?32767:(($|0)>-32768?$:-32768)&65535;if((h|0)==(f|0))break;else i=h}}g=G;h=I+(f<<2)|0;i=g+64|0;do{c[g>>2]=c[h>>2];g=g+4|0;h=h+4|0}while((g|0)<(i|0));pa(H|0);l=K;return}function Lc(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=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;z=l;l=l+208|0;r=z+136|0;u=z+100|0;v=z+64|0;y=z;h=(f|0)==16?26975:26991;w=(f|0)>0;if(w){g=0;do{q=b[e+(g<<1)>>1]|0;s=q>>8;t=b[19482+(s<<1)>>1]|0;t=((S((b[19482+(s+1<<1)>>1]|0)-t|0,q-(s<<8)|0)|0)+(t<<8)>>3)+1>>1;c[r+(d[h+g>>0]<<2)>>2]=t;g=g+1|0}while((g|0)!=(f|0));g=c[r>>2]|0}else g=0;t=f>>1;c[u>>2]=65536;g=0-g|0;q=u+4|0;c[q>>2]=g;s=(t|0)>1;a:do if(s){j=1;e=g;i=65536;h=g;while(1){m=c[r+(j<<1<<2)>>2]|0;k=((m|0)<0)<<31>>31;n=u+(j<<2)|0;g=Cf(m|0,k|0,h|0,((h|0)<0)<<31>>31|0)|0;g=uf(g|0,D|0,15)|0;g=sf(g|0,D|0,1,0)|0;g=uf(g|0,D|0,1)|0;o=j+1|0;p=u+(o<<2)|0;c[p>>2]=(i<<1)-g;if((j|0)>1){g=c[u+(j+-2<<2)>>2]|0;e=j+-1|0;i=Cf(i|0,((i|0)<0)<<31>>31|0,m|0,k|0)|0;i=uf(i|0,D|0,15)|0;i=sf(i|0,D|0,1,0)|0;i=uf(i|0,D|0,1)|0;c[u+(j<<2)>>2]=g+h-i;if((e|0)>1)do{h=c[u+(e<<2)>>2]|0;i=g;g=c[u+(e+-2<<2)>>2]|0;j=e;e=e+-1|0;i=Cf(i|0,((i|0)<0)<<31>>31|0,m|0,k|0)|0;i=uf(i|0,D|0,15)|0;i=sf(i|0,D|0,1,0)|0;i=uf(i|0,D|0,1)|0;c[u+(j<<2)>>2]=g+h-i}while((e|0)>1);g=c[q>>2]|0}else g=e;g=g-m|0;c[q>>2]=g;if((o|0)==(t|0))break a;j=o;e=g;i=c[n>>2]|0;h=c[p>>2]|0}}while(0);q=r+4|0;c[v>>2]=65536;g=0-(c[q>>2]|0)|0;r=v+4|0;c[r>>2]=g;b:do if(s){h=1;i=65536;k=g;while(1){m=c[q+(h<<1<<2)>>2]|0;j=((m|0)<0)<<31>>31;n=v+(h<<2)|0;s=Cf(m|0,j|0,k|0,((k|0)<0)<<31>>31|0)|0;s=uf(s|0,D|0,15)|0;s=sf(s|0,D|0,1,0)|0;s=uf(s|0,D|0,1)|0;o=h+1|0;p=v+(o<<2)|0;c[p>>2]=(i<<1)-s;if((h|0)>1){g=c[v+(h+-2<<2)>>2]|0;e=h+-1|0;s=Cf(i|0,((i|0)<0)<<31>>31|0,m|0,j|0)|0;s=uf(s|0,D|0,15)|0;s=sf(s|0,D|0,1,0)|0;s=uf(s|0,D|0,1)|0;c[v+(h<<2)>>2]=g+k-s;if((e|0)>1)do{i=c[v+(e<<2)>>2]|0;k=g;g=c[v+(e+-2<<2)>>2]|0;s=e;e=e+-1|0;k=Cf(k|0,((k|0)<0)<<31>>31|0,m|0,j|0)|0;k=uf(k|0,D|0,15)|0;k=sf(k|0,D|0,1,0)|0;k=uf(k|0,D|0,1)|0;c[v+(s<<2)>>2]=g+i-k}while((e|0)>1);g=c[r>>2]|0}g=g-m|0;c[r>>2]=g;if((o|0)==(t|0))break b;h=o;i=c[n>>2]|0;k=c[p>>2]|0}}while(0);if((t|0)>0){e=f+-1|0;g=0;h=c[u>>2]|0;i=c[v>>2]|0;do{s=g;g=g+1|0;r=h;h=c[u+(g<<2)>>2]|0;r=r+h|0;q=i;i=c[v+(g<<2)>>2]|0;q=i-q|0;c[y+(s<<2)>>2]=0-(q+r);c[y+(e-s<<2)>>2]=q-r}while((g|0)!=(t|0))}do if(w){e=0;g=0;while(1){h=0;i=e;e=0;do{u=c[y+(e<<2)>>2]|0;u=(u|0)>0?u:0-u|0;v=(u|0)>(h|0);h=v?u:h;i=v?e:i;e=e+1|0}while((e|0)!=(f|0));e=(h>>4)+1>>1;if((e|0)<=32767)break;v=(e|0)<163838?e:163838;Mc(y,f,65470-(((v<<14)+-536854528|0)/((S(v,i+1|0)|0)>>2|0)|0)|0);g=g+1|0;if((g|0)<10)e=i;else break}if((g|0)==10){if(w)g=0;else{x=0;break}do{v=y+(g<<2)|0;u=(c[v>>2]>>4)+1>>1;u=(u|0)>32767?32767:(u|0)>-32768?u:-32768;b[a+(g<<1)>>1]=u;c[v>>2]=u<<16>>11;g=g+1|0}while((g|0)!=(f|0))}else{if(w)g=0;else{x=0;break}do{b[a+(g<<1)>>1]=(((c[y+(g<<2)>>2]|0)>>>4)+1|0)>>>1;g=g+1|0}while((g|0)!=(f|0))}if(w){g=0;while(1){if((Nc(a,f)|0)>=107374){g=38;break}Mc(y,f,65536-(2<<g)|0);e=0;do{b[a+(e<<1)>>1]=(((c[y+(e<<2)>>2]|0)>>>4)+1|0)>>>1;e=e+1|0}while((e|0)!=(f|0));g=g+1|0;if((g|0)>=16){g=38;break}}if((g|0)==38){l=z;return}}else x=0}else x=0;while(0);while(1){if((Nc(a,f)|0)>=107374){g=38;break}Mc(y,f,65536-(2<<x)|0);x=x+1|0;if((x|0)>=16){g=38;break}}if((g|0)==38){l=z;return}}function Mc(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;h=d+-65536|0;i=b+-1|0;e=d>>16;f=d&65535;if((b|0)>1){g=0;b=d;do{d=a+(g<<2)|0;j=c[d>>2]|0;k=j<<16>>16;c[d>>2]=((S(k,f)|0)>>16)+(S(k,e)|0)+(S((j>>15)+1>>1,b)|0);b=(((S(b,h)|0)>>15)+1>>1)+b|0;g=g+1|0;e=b>>16;f=b&65535}while((g|0)!=(i|0))}else b=d;k=a+(i<<2)|0;j=c[k>>2]|0;i=j<<16>>16;c[k>>2]=((S(i,f)|0)>>16)+(S(i,e)|0)+(S((j>>15)+1>>1,b)|0);return}function Nc(a,d){a=a|0;d=d|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,t=0,u=0;t=l;l=l+128|0;s=t;g=d&1;a:do if((d|0)>0){e=0;f=0;do{r=b[a+(e<<1)>>1]|0;f=r+f|0;c[s+(g<<6)+(e<<2)>>2]=r<<12;e=e+1|0}while((e|0)!=(d|0));if((f|0)>4095){s=0;l=t;return s|0}if((d|0)>1){a=1073741824;f=0;while(1){i=d;d=d+-1|0;e=c[s+(g<<6)+(d<<2)>>2]|0;if((e+16773022|0)>>>0>33546044){e=0;break}p=0-(e<<7)|0;q=((p|0)<0)<<31>>31;Cf(p|0,q|0,p|0,q|0)|0;r=1073741824-D|0;h=V(((r|0)>0?r:0-r|0)|0)|0;m=32-h|0;o=r<<h+-1;j=o>>16;k=536870911/(j|0)|0;n=k<<16;e=n>>16;o=536870912-(S(e,j)|0)-((S(e,o&65535)|0)>>16)<<3;e=(S(o,(k>>15)+1>>1)|0)+n+(S(o>>16,e)|0)+((S(o&65528,e)|0)>>16)|0;h=-30-m+(62-h)|0;if((h|0)<1){o=0-h|0;n=-2147483648>>o;j=2147483647>>>o;h=(n|0)>(j|0);k=h?n:j;n=h?j:n;o=((e|0)>(k|0)?k:(e|0)<(n|0)?n:e)<<o}else o=(h|0)<32?e>>h:0;n=((r|0)<0)<<31>>31;e=d&1;j=i+-2|0;k=((o|0)<0)<<31>>31;i=m+-1|0;if((m|0)==1){h=0;do{i=c[s+(g<<6)+(h<<2)>>2]|0;m=c[s+(g<<6)+(j-h<<2)>>2]|0;m=Cf(m|0,((m|0)<0)<<31>>31|0,p|0,q|0)|0;m=uf(m|0,D|0,30)|0;m=sf(m|0,D|0,1,0)|0;m=uf(m|0,D|0,1)|0;m=i-m|0;m=Cf(m|0,((m|0)<0)<<31>>31|0,o|0,k|0)|0;i=uf(m|0,D|0,1)|0;m=sf(i|0,D|0,m&1|0,0)|0;c[s+(e<<6)+(h<<2)>>2]=m;h=h+1|0}while((h|0)!=(d|0))}else{h=0;do{u=c[s+(g<<6)+(h<<2)>>2]|0;m=c[s+(g<<6)+(j-h<<2)>>2]|0;m=Cf(m|0,((m|0)<0)<<31>>31|0,p|0,q|0)|0;m=uf(m|0,D|0,30)|0;m=sf(m|0,D|0,1,0)|0;m=uf(m|0,D|0,1)|0;m=u-m|0;m=Cf(m|0,((m|0)<0)<<31>>31|0,o|0,k|0)|0;m=qf(m|0,D|0,i|0)|0;m=sf(m|0,D|0,1,0)|0;m=uf(m|0,D|0,1)|0;c[s+(e<<6)+(h<<2)>>2]=m;h=h+1|0}while((h|0)!=(d|0))}a=vf(a|0,f|0,2)|0;a=Cf(a|0,D|0,r|0,n|0)|0;a=qf(a|0,D|0,32)|0;f=D;a=a&-4;if((d|0)<=1)break a;else g=e}l=t;return e|0}else{e=g;a=1073741824;f=0}}else{e=g;a=1073741824;f=0}while(0);e=c[s+(e<<6)>>2]|0;if((e+16773022|0)>>>0>33546044){u=0;l=t;return u|0}s=0-(e<<7)|0;u=((s|0)<0)<<31>>31;Cf(s|0,u|0,s|0,u|0)|0;u=1073741824-D|0;u=Cf(u|0,((u|0)<0)<<31>>31|0,a|0,f|0)|0;u=uf(u|0,D|0,30)|0;u=u&-4;l=t;return u|0}function Oc(d,e,f,g,h,i){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,m=0,n=0,o=0;o=l;l=l+16|0;n=o;a[n+1>>0]=0;m=25519+(((g<<1)+h<<16>>16)*7|0)|0;k=f+8>>4;if((k|0)>0){j=0;f=e}else{l=o;return}while(1){g=c[i+(j<<2)>>2]|0;if((g|0)>0){g=g&31;a[n>>0]=a[m+(g>>>0<6?g:6)>>0]|0;g=0;do{h=f+(g<<1)|0;if((b[h>>1]|0)>0){e=((yc(d,n,8)|0)<<1)+-1|0;b[h>>1]=S(b[h>>1]|0,e)|0}g=g+1|0}while((g|0)!=16)}j=j+1|0;if((j|0)==(k|0))break;else f=f+32|0}l=o;return}function Pc(a){a=a|0;tf(a+4|0,0,4256)|0;c[a+2376>>2]=1;c[a>>2]=65536;Jc(a);Qc(a);return 0}function Qc(a){a=a|0;c[a+4168>>2]=c[a+2328>>2]<<7;c[a+4240>>2]=65536;c[a+4244>>2]=65536;c[a+4256>>2]=20;c[a+4252>>2]=2;return}function Rc(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=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,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,T=0,U=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,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,qa=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0;ka=l;l=l+32|0;ga=ka;ha=d+2336|0;p=c[ha>>2]|0;ia=ra()|0;ja=l;l=l+((1*(p<<1)|0)+15&-16)|0;p=d+2328|0;$=c[p>>2]|0;aa=l;l=l+((1*($+(c[ha>>2]|0)<<2)|0)+15&-16)|0;ba=d+2332|0;ea=c[ba>>2]|0;ca=l;l=l+((1*(ea<<2)|0)+15&-16)|0;da=l;l=l+((1*(ea+16<<2)|0)+15&-16)|0;ea=d+2765|0;fa=(a[d+2767>>0]|0)<4;if(($|0)>0){q=b[19468+(a[ea>>0]>>1<<2)+(a[d+2766>>0]<<1)>>1]<<4;i=a[d+2770>>0]|0;o=0;while(1){k=(S(i,196314165)|0)+907633515|0;j=b[g+(o<<1)>>1]|0;m=j<<16>>16;i=m<<14;n=d+4+(o<<2)|0;c[n>>2]=i;if(j<<16>>16<=0){if(j<<16>>16<0){i=i|1280;s=7}}else{i=i+-1280|0;s=7}if((s|0)==7){s=0;c[n>>2]=i}$=i+q|0;c[n>>2]=(k|0)<0?0-$|0:$;o=o+1|0;if((o|0)>=(c[p>>2]|0))break;else i=m+k|0}}U=d+1284|0;i=da;j=U;k=i+64|0;do{c[i>>2]=c[j>>2];i=i+4|0;j=j+4|0}while((i|0)<(k|0));W=d+2324|0;if((c[W>>2]|0)<=0){i=U;j=da;k=i+64|0;do{c[i>>2]=c[j>>2];i=i+4|0;j=j+4|0}while((i|0)<(k|0));pa(ia|0);l=ka;return}X=d+2340|0;Y=d+4160|0;Z=e+136|0;F=ga+2|0;M=ga+4|0;N=ga+6|0;O=ga+8|0;z=ga+10|0;A=ga+12|0;B=ga+14|0;C=ga+16|0;E=ga+18|0;G=ga+20|0;H=ga+22|0;I=ga+24|0;J=ga+26|0;K=ga+28|0;L=ga+30|0;_=d+4164|0;$=d+2308|0;P=da+60|0;Q=da+44|0;R=da+36|0;T=da+28|0;w=d+4|0;x=0;n=c[ha>>2]|0;y=f;while(1){q=e+32+(x>>1<<5)|0;Ef(ga|0,q|0,c[X>>2]<<1|0)|0;t=e+96+(x*5<<1)|0;g=a[ea>>0]|0;v=c[e+16+(x<<2)>>2]|0;u=v>>>6;p=V(((v|0)>0?v:0-v|0)|0)|0;m=v<<p+-1;i=m>>16;k=536870911/(i|0)|0;j=k<<16;o=j>>16;i=536870912-(S(i,o)|0)-((S(m&65535,o)|0)>>16)<<3;i=(S(i,(k>>15)+1>>1)|0)+j+(S(i>>16,o)|0)+((S(i&65528,o)|0)>>16)|0;j=62-p|0;k=j+-47|0;if((k|0)<1){s=47-j|0;r=-2147483648>>s;j=2147483647>>>s;la=(r|0)>(j|0);k=la?r:j;r=la?j:r;i=((i|0)>(k|0)?k:(i|0)<(r|0)?r:i)<<s}else i=(k|0)<32?i>>k:0;j=c[d>>2]|0;if((v|0)==(j|0))m=65536;else{k=V(((j|0)>0?j:0-j|0)|0)|0;la=j<<k+-1;j=((S(o,la&65535)|0)>>16)+(S(o,la>>16)|0)|0;m=Cf(j|0,((j|0)<0)<<31>>31|0,m|0,((m|0)<0)<<31>>31|0)|0;m=uf(m|0,D|0,29)|0;m=la-(m&-8)|0;m=(S(m>>16,o)|0)+j+((S(m&65535,o)|0)>>16)|0;j=k+28+(1-p)|0;k=j+-16|0;if((j|0)<16){la=16-j|0;s=-2147483648>>la;p=2147483647>>>la;o=(s|0)>(p|0);r=o?s:p;s=o?p:s;m=((m|0)>(r|0)?r:(m|0)<(s|0)?s:m)<<la}else m=(k|0)<32?m>>k:0;k=m>>16;o=m&65535;j=0;do{la=da+(j<<2)|0;s=c[la>>2]|0;r=s<<16>>16;c[la>>2]=((S(r,o)|0)>>16)+(S(r,k)|0)+(S((s>>15)+1>>1,m)|0);j=j+1|0}while((j|0)!=16)}c[d>>2]=v;if(((c[Y>>2]|0)!=0?(c[_>>2]|0)==2:0)?(x|0)<2&g<<24>>24!=2:0){b[t>>1]=0;b[t+2>>1]=0;b[t+4>>1]=0;b[t+6>>1]=0;b[t+8>>1]=0;b[t+4>>1]=4096;r=c[$>>2]|0;c[e+(x<<2)>>2]=r;s=27}else s=24;do if((s|0)==24)if(g<<24>>24==2){r=c[e+(x<<2)>>2]|0;s=27;break}else{t=w;i=c[ba>>2]|0;s=41;break}while(0);if((s|0)==27){s=0;p=(x|0)==0;o=(x|0)==2;if(p|fa&o){k=c[ha>>2]|0;j=c[X>>2]|0;m=-2-r+k-j|0;if(o){Ef(d+1348+(k<<1)|0,f|0,c[ba>>2]<<2|0)|0;k=c[ha>>2]|0;j=c[X>>2]|0}Sc(ja+(m<<1)|0,d+1348+((S(c[ba>>2]|0,x)|0)+m<<1)|0,q,k-m|0,j,h);if(p){la=c[Z>>2]<<16>>16;i=((S(la,i&65535)|0)>>16)+(S(la,i>>16)|0)<<2}if((r|0)>-2){p=i>>16;g=c[ha>>2]|0;k=i&65535;m=n+-1|0;o=r+1|0;i=0;j=0;while(1){la=b[ja+(i+-1+g<<1)>>1]|0;c[aa+(m+i<<2)>>2]=((S(la,k)|0)>>16)+(S(la,p)|0);if((j|0)==(o|0))break;else{i=~j;j=j+1|0}}}}else if((m|0)!=65536&(r|0)>-2){j=m>>16;k=n+-1|0;o=m&65535;p=r+1|0;i=0;while(1){la=aa+(k-i<<2)|0;q=c[la>>2]|0;g=q<<16>>16;c[la>>2]=((S(g,o)|0)>>16)+(S(g,j)|0)+(S((q>>15)+1>>1,m)|0);if((i|0)==(p|0))break;else i=i+1|0}}i=c[ba>>2]|0;if((i|0)>0){o=b[t>>1]|0;p=b[t+2>>1]|0;g=b[t+4>>1]|0;q=b[t+6>>1]|0;m=b[t+8>>1]|0;k=aa+(n+2-r<<2)|0;j=0;while(1){qa=c[k>>2]|0;sa=S(o,qa>>16)|0;qa=(S(o,qa&65535)|0)>>16;na=c[k+-4>>2]|0;oa=S(p,na>>16)|0;na=(S(p,na&65535)|0)>>16;r=c[k+-8>>2]|0;ma=S(g,r>>16)|0;r=(S(g,r&65535)|0)>>16;t=c[k+-12>>2]|0;s=S(q,t>>16)|0;t=(S(q,t&65535)|0)>>16;la=c[k+-16>>2]|0;la=sa+2+qa+oa+na+ma+r+s+t+(S(m,la>>16)|0)+((S(m,la&65535)|0)>>16)|0;la=(la<<1)+(c[w+(j<<2)>>2]|0)|0;c[ca+(j<<2)>>2]=la;c[aa+(n<<2)>>2]=la<<1;n=n+1|0;j=j+1|0;if((j|0)>=(i|0)){t=ca;s=41;break}else k=k+4|0}}else m=i}if((s|0)==41)if((i|0)>0){s=u<<16>>16;p=(v>>21)+1>>1;o=0;i=c[P>>2]|0;g=c[Q>>2]|0;q=c[R>>2]|0;r=c[T>>2]|0;do{sa=c[X>>2]|0;Aa=b[ga>>1]|0;Ba=S(Aa,i>>16)|0;Aa=(S(Aa,i&65535)|0)>>16;ya=c[da+(o+14<<2)>>2]|0;wa=b[F>>1]|0;za=S(wa,ya>>16)|0;ya=(S(wa,ya&65535)|0)>>16;wa=c[da+(o+13<<2)>>2]|0;j=b[M>>1]|0;xa=S(j,wa>>16)|0;wa=(S(j,wa&65535)|0)>>16;j=g;g=c[da+(o+12<<2)>>2]|0;ua=b[N>>1]|0;va=S(ua,g>>16)|0;ua=(S(ua,g&65535)|0)>>16;v=b[O>>1]|0;ta=S(v,j>>16)|0;j=(S(v,j&65535)|0)>>16;v=q;q=c[da+(o+10<<2)>>2]|0;m=b[z>>1]|0;k=S(m,q>>16)|0;m=(S(m,q&65535)|0)>>16;oa=b[A>>1]|0;u=S(oa,v>>16)|0;v=(S(oa,v&65535)|0)>>16;oa=r;r=c[da+(o+8<<2)>>2]|0;ma=b[B>>1]|0;la=S(ma,r>>16)|0;ma=(S(ma,r&65535)|0)>>16;i=b[C>>1]|0;na=S(i,oa>>16)|0;oa=(S(i,oa&65535)|0)>>16;i=c[da+(o+6<<2)>>2]|0;qa=b[E>>1]|0;i=Ba+(sa>>1)+Aa+za+ya+xa+wa+va+ua+ta+j+k+m+u+v+la+ma+na+oa+(S(qa,i>>16)|0)+((S(qa,i&65535)|0)>>16)|0;if((sa|0)==16){qa=c[da+(o+5<<2)>>2]|0;ta=b[G>>1]|0;oa=S(ta,qa>>16)|0;qa=(S(ta,qa&65535)|0)>>16;ta=c[da+(o+4<<2)>>2]|0;va=b[H>>1]|0;sa=S(va,ta>>16)|0;ta=(S(va,ta&65535)|0)>>16;va=c[da+(o+3<<2)>>2]|0;xa=b[I>>1]|0;ua=S(xa,va>>16)|0;va=(S(xa,va&65535)|0)>>16;xa=c[da+(o+2<<2)>>2]|0;za=b[J>>1]|0;wa=S(za,xa>>16)|0;xa=(S(za,xa&65535)|0)>>16;za=c[da+(o+1<<2)>>2]|0;Ba=b[K>>1]|0;ya=S(Ba,za>>16)|0;za=(S(Ba,za&65535)|0)>>16;Ba=c[da+(o<<2)>>2]|0;Aa=b[L>>1]|0;i=oa+i+qa+sa+ta+ua+va+wa+xa+ya+za+(S(Aa,Ba>>16)|0)+((S(Aa,Ba&65535)|0)>>16)|0}k=c[t+(o<<2)>>2]|0;i=(i|0)>134217727?2147483632:((i|0)>-134217728?i:-134217728)<<4;j=i+k|0;if((j|0)>-1)i=(i&k|0)<0?-2147483648:j;else i=(i|k|0)>-1?2147483647:j;c[da+(o+16<<2)>>2]=i;m=((S(i>>16,s)|0)+(S(i,p)|0)+((S(i&65535,s)|0)>>16)>>7)+1>>1;b[y+(o<<1)>>1]=(m|0)>32767?32767:((m|0)>-32768?m:-32768)&65535;o=o+1|0;m=c[ba>>2]|0}while((o|0)<(m|0))}else m=i;i=da;j=da+(m<<2)|0;k=i+64|0;do{c[i>>2]=c[j>>2];i=i+4|0;j=j+4|0}while((i|0)<(k|0));x=x+1|0;if((x|0)>=(c[W>>2]|0))break;else{w=w+(m<<2)|0;y=y+(m<<1)|0}}i=U;j=da;k=i+64|0;do{c[i>>2]=c[j>>2];i=i+4|0;j=j+4|0}while((i|0)<(k|0));pa(ia|0);l=ka;return}function Sc(a,c,d,e,f,g){a=a|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;if((f|0)>=(e|0)){f=f<<1;tf(a|0,0,f|0)|0;return}m=d+2|0;n=d+4|0;o=d+6|0;k=d+8|0;l=d+10|0;if((f|0)>6)g=f;else{g=f;do{i=c+(g+-1<<1)|0;j=S(b[d>>1]|0,b[i>>1]|0)|0;j=(S(b[m>>1]|0,b[i+-2>>1]|0)|0)+j|0;j=j+(S(b[n>>1]|0,b[i+-4>>1]|0)|0)|0;j=j+(S(b[o>>1]|0,b[i+-6>>1]|0)|0)|0;j=j+(S(b[k>>1]|0,b[i+-8>>1]|0)|0)|0;j=j+(S(b[l>>1]|0,b[i+-10>>1]|0)|0)|0;j=((b[i+2>>1]<<12)-j>>11)+1>>1;b[a+(g<<1)>>1]=(j|0)>32767?32767:((j|0)>-32768?j:-32768)&65535;g=g+1|0}while((g|0)!=(e|0));f=f<<1;tf(a|0,0,f|0)|0;return}do{j=c+(g+-1<<1)|0;h=S(b[d>>1]|0,b[j>>1]|0)|0;h=(S(b[m>>1]|0,b[j+-2>>1]|0)|0)+h|0;h=h+(S(b[n>>1]|0,b[j+-4>>1]|0)|0)|0;h=h+(S(b[o>>1]|0,b[j+-6>>1]|0)|0)|0;h=h+(S(b[k>>1]|0,b[j+-8>>1]|0)|0)|0;h=h+(S(b[l>>1]|0,b[j+-10>>1]|0)|0)|0;i=6;do{p=(S(b[d+(i<<1)>>1]|0,b[j+(0-i<<1)>>1]|0)|0)+h|0;h=p+(S(b[d+((i|1)<<1)>>1]|0,b[j+(~i<<1)>>1]|0)|0)|0;i=i+2|0}while((i|0)<(f|0));p=((b[j+2>>1]<<12)-h>>11)+1>>1;b[a+(g<<1)>>1]=(p|0)>32767?32767:((p|0)>-32768?p:-32768)&65535;g=g+1|0}while((g|0)!=(e|0));p=f<<1;tf(a|0,0,p|0)|0;return}function Tc(b,d,e,f,g,h,i){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,m=0,n=0,o=0,p=0,q=0;p=l;l=l+144|0;m=p;n=b+2328|0;o=c[n>>2]|0;c[m+136>>2]=0;switch(g|0){case 0:{j=b+2388|0;k=4;break}case 2:{j=b+2388|0;if((c[b+2420+(c[j>>2]<<2)>>2]|0)==1)k=4;else k=5;break}default:k=5}if((k|0)==4){k=ra()|0;q=l;l=l+((1*((o+15&-16)<<1)|0)+15&-16)|0;Uc(b,d,c[j>>2]|0,g,h);g=b+2765|0;Vc(d,q,a[g>>0]|0,a[b+2766>>0]|0,c[n>>2]|0);Wc(b,m,h);Rc(b,m,e,q,i);Xc(b,m,e,0,i);c[b+4160>>2]=0;c[b+4164>>2]=a[g>>0];c[b+2376>>2]=0;pa(k|0)}else if((k|0)==5)Xc(b,m,e,1,i);i=c[n>>2]|0;q=(c[b+2336>>2]|0)-i|0;Ff(b+1348|0,b+1348+(i<<1)|0,q<<1|0)|0;Ef(b+1348+(q<<1)|0,e|0,c[n>>2]<<1|0)|0;Kc(b,m,e,o);Yc(b,e,o);c[b+2308>>2]=c[m+((c[b+2324>>2]|0)+-1<<2)>>2];c[f>>2]=o;l=p;return 0}function Uc(f,g,h,i,j){f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0;s=l;l=l+48|0;o=s;m=s+32|0;if((i|0)==0?(c[f+2404+(h<<2)>>2]|0)==0:0)h=yc(g,24543,8)|0;else h=(yc(g,24539,8)|0)+2|0;i=h>>>1;k=f+2736|0;r=f+2765|0;a[r>>0]=i;a[f+2766>>0]=h&1;n=(j|0)==2;if(n)a[k>>0]=yc(g,22405,8)|0;else{a[k>>0]=(yc(g,22381+(i<<24>>24<<3)|0,8)|0)<<3;p=yc(g,24568,8)|0;a[k>>0]=(d[k>>0]|0)+p}p=f+2324|0;if((c[p>>2]|0)>1){h=1;do{a[f+2736+h>>0]=yc(g,22405,8)|0;h=h+1|0}while((h|0)<(c[p>>2]|0))}k=f+2732|0;h=c[k>>2]|0;h=yc(g,(c[h+12>>2]|0)+(S(a[r>>0]>>1,b[h>>1]|0)|0)|0,8)|0;a[f+2744>>0]=h;ed(o,m,c[k>>2]|0,h<<24>>24);h=c[k>>2]|0;a:do if((b[h+2>>1]|0)>0){i=0;while(1){h=yc(g,(c[h+24>>2]|0)+(b[o+(i<<1)>>1]|0)|0,8)|0;switch(h|0){case 0:{h=0-(yc(g,24576,8)|0)|0;break}case 8:{h=(yc(g,24576,8)|0)+8|0;break}default:{}}i=i+1|0;a[f+2744+i>>0]=h+252;h=c[k>>2]|0;if((i|0)>=(b[h+2>>1]|0))break a}}while(0);if((c[p>>2]|0)==4)h=(yc(g,24545,8)|0)&255;else h=4;a[f+2767>>0]=h;h=a[r>>0]|0;if(h<<24>>24!=2){r=h;r=r<<24>>24;j=f+2396|0;c[j>>2]=r;j=yc(g,24553,8)|0;j=j&255;g=f+2770|0;a[g>>0]=j;l=s;return}if((n?(c[f+2396>>2]|0)==2:0)?(q=yc(g,24615,8)|0,(q<<16|0)>0):0){h=f+2400|0;i=q+65527+(e[h>>1]|0)&65535;b[f+2762>>1]=i}else{i=(yc(g,24583,8)|0)<<16>>16;h=f+2762|0;b[h>>1]=S(i,c[f+2316>>2]>>1)|0;i=yc(g,c[f+2380>>2]|0,8)|0;i=(e[h>>1]|0)+i&65535;b[h>>1]=i;h=f+2400|0}b[h>>1]=i;a[f+2764>>0]=yc(g,c[f+2384>>2]|0,8)|0;h=yc(g,22446,8)|0;i=f+2768|0;a[i>>0]=h;if((c[p>>2]|0)>0?(a[f+2740>>0]=yc(g,c[1532+(h<<24>>24<<2)>>2]|0,8)|0,(c[p>>2]|0)>1):0){h=1;do{a[f+2740+h>>0]=yc(g,c[1532+(a[i>>0]<<2)>>2]|0,8)|0;h=h+1|0}while((h|0)<(c[p>>2]|0))}if(!j)h=(yc(g,24536,8)|0)&255;else h=0;a[f+2769>>0]=h;r=a[r>>0]|0;r=r<<24>>24;j=f+2396|0;c[j>>2]=r;j=yc(g,24553,8)|0;j=j&255;g=f+2770|0;a[g>>0]=j;l=s;return}function Vc(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var 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+160|0;q=s+80|0;r=s;p=g>>4;p=((p<<4|0)<(g|0)&1)+p|0;i=24696+((yc(a,24876+((e>>1)*9|0)|0,8)|0)*18|0)|0;n=(p|0)>0;if(n)h=0;else{Oc(a,d,g,e,f,q);l=s;return}do{j=r+(h<<2)|0;c[j>>2]=0;o=yc(a,i,8)|0;k=q+(h<<2)|0;c[k>>2]=o;if((o|0)==17){m=0;do{m=m+1|0;c[j>>2]=m;o=yc(a,24858+((m|0)==10&1)|0,8)|0;c[k>>2]=o}while((o|0)==17)}h=h+1|0}while((h|0)!=(p|0));if(n)j=0;else{Oc(a,d,g,e,f,q);l=s;return}do{h=c[q+(j<<2)>>2]|0;i=d+(j<<16>>12<<1)|0;if((h|0)>0)jd(i,a,h);else{h=i+32|0;do{b[i>>1]=0;i=i+2|0}while((i|0)<(h|0))}j=j+1|0}while((j|0)!=(p|0));if(n)k=0;else{Oc(a,d,g,e,f,q);l=s;return}do{m=c[r+(k<<2)>>2]|0;if((m|0)>0){n=d+(k<<16>>12<<1)|0;i=0;do{o=n+(i<<1)|0;h=0;j=b[o>>1]|0;do{j=(yc(a,24534,8)|0)+(j<<1)|0;h=h+1|0}while((h|0)!=(m|0));b[o>>1]=j;i=i+1|0}while((i|0)!=16);o=q+(k<<2)|0;c[o>>2]=c[o>>2]|m<<5}k=k+1|0}while((k|0)!=(p|0));Oc(a,d,g,e,f,q);l=s;return}function Wc(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0;q=l;l=l+64|0;o=q+32|0;m=q;p=d+2324|0;bd(e+16|0,d+2736|0,d+2312|0,(f|0)==2&1,c[p>>2]|0);cd(o,d+2744|0,c[d+2732>>2]|0);i=e+32|0;j=e+64|0;k=d+2340|0;Lc(j,o,c[k>>2]|0);f=d+2767|0;if((c[d+2376>>2]|0)!=1){h=a[f>>0]|0;g=h<<24>>24;if(h<<24>>24<4){h=c[k>>2]|0;if((h|0)>0){f=0;do{r=b[d+2344+(f<<1)>>1]|0;b[m+(f<<1)>>1]=((S((b[o+(f<<1)>>1]|0)-r|0,g)|0)>>>2)+r;f=f+1|0}while((f|0)<(h|0))}Lc(i,m,h)}else n=7}else{a[f>>0]=4;n=7}if((n|0)==7)Ef(i|0,j|0,c[k>>2]<<1|0)|0;f=c[k>>2]|0;Ef(d+2344|0,o|0,f<<1|0)|0;if(c[d+4160>>2]|0){ad(i,f,63570);ad(j,c[k>>2]|0,63570)}if((a[d+2765>>0]|0)!=2){tf(e|0,0,c[p>>2]<<2|0)|0;tf(e+96|0,0,(c[p>>2]|0)*10|0)|0;a[d+2768>>0]=0;d=0;r=e+136|0;c[r>>2]=d;l=q;return}dd(b[d+2762>>1]|0,a[d+2764>>0]|0,e,c[d+2316>>2]|0,c[p>>2]|0);h=c[1544+(a[d+2768>>0]<<2)>>2]|0;g=c[p>>2]|0;if((g|0)>0){f=0;do{p=(a[d+2740+f>>0]|0)*5|0;r=f*5|0;b[e+96+(r<<1)>>1]=a[h+p>>0]<<7;b[e+96+(r+1<<1)>>1]=a[h+(p+1)>>0]<<7;b[e+96+(r+2<<1)>>1]=a[h+(p+2)>>0]<<7;b[e+96+(r+3<<1)>>1]=a[h+(p+3)>>0]<<7;b[e+96+(r+4<<1)>>1]=a[h+(p+4)>>0]<<7;f=f+1|0}while((f|0)<(g|0))}d=b[19476+(a[d+2769>>0]<<1)>>1]|0;r=e+136|0;c[r>>2]=d;l=q;return}function Xc(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;j=c[d+2316>>2]|0;i=d+4248|0;if((j|0)!=(c[i>>2]|0)){c[d+4168>>2]=c[d+2328>>2]<<7;c[d+4240>>2]=65536;c[d+4244>>2]=65536;c[d+4256>>2]=20;c[d+4252>>2]=2;c[i>>2]=j}if(g|0){_c(d,e,f,h);e=d+4160|0;c[e>>2]=(c[e>>2]|0)+1;return}q=d+4168|0;p=a[d+2765>>0]|0;c[d+4164>>2]=p<<24>>24;do if(p<<24>>24==2){g=d+2332|0;f=c[d+2324>>2]|0;m=f+-1|0;n=e+(m<<2)|0;i=c[n>>2]|0;if((f|0)==0|(i|0)<1)h=0;else{o=d+4172|0;p=f+65535|0;h=0;k=0;l=0;while(1){j=(m-l|0)*5|0;j=(b[e+96+(j+1<<1)>>1]|0)+(b[e+96+(j<<1)>>1]|0)+(b[e+96+(j+2<<1)>>1]|0)+(b[e+96+(j+3<<1)>>1]|0)+(b[e+96+(j+4<<1)>>1]|0)|0;if((j|0)>(h|0)){h=e+96+((p+k<<16>>16)*5<<1)|0;b[o>>1]=b[h>>1]|0;b[o+2>>1]=b[h+2>>1]|0;b[o+4>>1]=b[h+4>>1]|0;b[o+6>>1]=b[h+6>>1]|0;b[o+8>>1]=b[h+8>>1]|0;c[q>>2]=c[e+(m+k<<2)>>2]<<8;h=j;i=c[n>>2]|0}j=l+1|0;if((j|0)==(f|0)?1:(S(c[g>>2]|0,j)|0)>=(i|0))break;else{k=~l;l=j}}}i=d+4172|0;c[i>>2]=0;c[i+4>>2]=0;b[i+8>>1]=0;i=d+4176|0;b[i>>1]=h;if((h|0)<11469){b[d+4172>>1]=0;b[d+4174>>1]=0;b[i>>1]=(S((11744256/(((h|0)>1?h:1)>>>0)|0)<<16>>16,h<<16>>16)|0)>>>10;b[d+4178>>1]=0;b[d+4180>>1]=0;break}if((h|0)>15565){b[d+4172>>1]=0;b[d+4174>>1]=0;b[i>>1]=(S((255016960/(h>>>0)|0)<<16>>16,h<<16>>16)|0)>>>14;b[d+4178>>1]=0;b[d+4180>>1]=0}}else{c[q>>2]=(j<<16>>16)*4608;g=d+4172|0;c[g>>2]=0;c[g+4>>2]=0;b[g+8>>1]=0;g=d+2332|0;f=c[d+2324>>2]|0}while(0);Ef(d+4182|0,e+64|0,c[d+2340>>2]<<1|0)|0;b[d+4236>>1]=c[e+136>>2];p=e+16+(f+-2<<2)|0;q=c[p+4>>2]|0;e=d+4240|0;c[e>>2]=c[p>>2];c[e+4>>2]=q;c[d+4256>>2]=c[g>>2];c[d+4252>>2]=f;return}function Yc(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,m=0;k=l;l=l+16|0;g=k+4|0;j=k;if(c[a+4160>>2]|0){Zc(a+4228|0,a+4232|0,d,e);e=a+4216|0;d=1;c[e>>2]=d;l=k;return}f=a+4216|0;if(!(c[f>>2]|0)){e=f;d=0;c[e>>2]=d;l=k;return}Zc(j,g,d,e);g=c[g>>2]|0;h=c[a+4232>>2]|0;if((g|0)<=(h|0)){if((g|0)<(h|0))c[j>>2]=c[j>>2]>>h-g}else{i=a+4228|0;c[i>>2]=c[i>>2]>>g-h}i=c[j>>2]|0;g=a+4228|0;h=c[g>>2]|0;if((i|0)<=(h|0)){e=f;d=0;c[e>>2]=d;l=k;return}m=V(h|0)|0;a=h<<m+-1;c[g>>2]=a;g=25-m|0;g=i>>((g|0)>0?g:0);c[j>>2]=g;g=(a|0)/(((g|0)>1?g:1)|0)|0;if((g|0)<1)g=0;else{a=V(g|0)|0;h=24-a|0;i=0-h|0;do if(h)if((h|0)<0){g=g>>>(h+32|0)|g<<i;break}else{g=g<<32-h|g>>>h;break}while(0);m=((a&1|0)==0?46214:32768)>>>(a>>>1);g=(S(g&127,13959168)|0)>>>16;g=(S(g,m>>16)|0)+m+((S(g,m&65535)|0)>>>16)<<4}i=((65536-g|0)/(e|0)|0)<<2;if((e|0)>0)h=0;else{m=f;e=0;c[m>>2]=e;l=k;return}do{m=d+(h<<1)|0;j=b[m>>1]|0;b[m>>1]=((S(j,g&65532)|0)>>>16)+(S(j,g>>16)|0);g=g+i|0;h=h+1|0}while((g|0)<65537&(h|0)<(e|0));g=0;c[f>>2]=g;l=k;return}function Zc(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;k=f+-1|0;h=0;g=0;while(1){if((g|0)>=(k|0)){i=0;break}l=b[e+(g<<1)>>1]|0;l=(S(l,l)|0)+h|0;i=b[e+((g|1)<<1)>>1]|0;h=l+(S(i,i)|0)|0;g=g+2|0;if((h|0)<0){j=4;break}}if((j|0)==4){i=2;h=h>>>2}if((g|0)<(k|0)){f=g+(f+-2-g&-2)|0;do{l=b[e+(g<<1)>>1]|0;l=S(l,l)|0;j=b[e+(g+1<<1)>>1]|0;l=(((S(j,j)|0)+l|0)>>>i)+h|0;j=(l|0)<0;i=j?i+2|0:i;h=j?l>>>2:l;g=g+2|0}while((g|0)<(k|0));g=f+2|0}if((g|0)!=(k|0)){l=h;j=l>>>0>1073741823;e=l>>>2;k=i+2|0;k=j?k:i;l=j?e:l;c[d>>2]=k;c[a>>2]=l;return}l=b[e+(k<<1)>>1]|0;l=((S(l,l)|0)>>>i)+h|0;j=l>>>0>1073741823;e=l>>>2;k=i+2|0;k=j?k:i;l=j?e:l;c[d>>2]=k;c[a>>2]=l;return}function _c(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=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,T=0,U=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0;W=l;l=l+64|0;h=W+20|0;i=W+16|0;j=W+12|0;k=W+8|0;U=W+24|0;m=W;r=a+2336|0;M=a+2328|0;v=(c[M>>2]|0)+(c[r>>2]|0)|0;T=ra()|0;L=l;l=l+((1*(v<<2)|0)+15&-16)|0;v=l;l=l+((1*(c[r>>2]<<1)|0)+15&-16)|0;c[m>>2]=c[a+4240>>2]>>6;q=a+4244|0;O=c[q>>2]|0;N=O>>6;c[m+4>>2]=N;p=a+4182|0;if(c[a+2376>>2]|0){n=p;o=n+32|0;do{b[n>>1]=0;n=n+2|0}while((n|0)<(o|0))}w=a+2332|0;t=a+2324|0;$c(j,h,k,i,a+4|0,m,c[w>>2]|0,c[t>>2]|0);I=(S((((c[j>>2]>>c[i>>2]|0)<(c[k>>2]>>c[h>>2]|0))<<31>>31)+(c[a+4252>>2]|0)|0,c[a+4256>>2]|0)|0)+-128|0;I=a+4+(((I|0)>0?I:0)<<2)|0;J=a+4172|0;R=a+4224|0;h=b[R>>1]|0;Q=a+4160|0;j=c[Q>>2]|0;j=(j|0)<1?j:1;K=b[22194+(j<<1)>>1]|0;i=a+4164|0;j=b[((c[i>>2]|0)==2?22198:22202)+(j<<1)>>1]|0;o=a+2340|0;ad(p,c[o>>2]|0,64881);k=c[o>>2]|0;Ef(U|0,p|0,k<<1|0)|0;do if(!(c[Q>>2]|0))if((c[i>>2]|0)==2){P=16384-(e[J>>1]|0)-(e[a+4174>>1]|0)-(e[a+4176>>1]|0)|0;Q=e[a+4178>>1]|0;h=e[a+4180>>1]|0;h=(S(b[a+4236>>1]|0,(P-Q-h&65535)<<16>>16>3277?P-Q-h&65535:3277)|0)>>>14&65535;break}else{h=Nc(p,k)|0;h=(h|0)<134217728?h:134217728;h=((h|0)>4194304?h:4194304)<<3;j=((S(h&65528,j)|0)>>16)+(S(h>>16,j)|0)>>14;h=16384;k=c[o>>2]|0;break}while(0);Q=a+4220|0;p=c[Q>>2]|0;H=a+4168|0;s=(c[H>>2]>>7)+1>>1;u=c[r>>2]|0;n=u+-2-k-s|0;Sc(v+(n<<1)|0,a+1348+(n<<1)|0,U,u-n|0,k,g);m=c[q>>2]|0;k=V(((m|0)>0?m:0-m|0)|0)|0;m=m<<k+-1;F=m>>16;G=536870911/(F|0)|0;P=G<<16;i=P>>16;m=536870912-(S(F,i)|0)-((S(m&65535,i)|0)>>16)<<3;i=(S(m,(G>>15)+1>>1)|0)+P+(S(m>>16,i)|0)+((S(m&65528,i)|0)>>16)|0;k=62-k|0;m=k+-46|0;if((m|0)<1){P=46-k|0;G=-2147483648>>P;E=2147483647>>>P;D=(G|0)>(E|0);F=D?G:E;G=D?E:G;i=((i|0)>(F|0)?F:(i|0)<(G|0)?G:i)<<P}else i=(m|0)<32?i>>m:0;k=(i|0)<1073741823?i:1073741823;P=c[o>>2]|0;i=P+n|0;G=c[r>>2]|0;if((i|0)<(G|0)){m=k>>16;k=k&65535;do{F=b[v+(i<<1)>>1]|0;c[L+(i<<2)>>2]=((S(F,k)|0)>>16)+(S(F,m)|0);i=i+1|0}while((i|0)<(G|0))}F=c[t>>2]|0;if((F|0)>0){z=j<<16>>16;A=a+2316|0;B=a+4174|0;C=a+4176|0;D=a+4178|0;E=a+4180|0;x=c[w>>2]|0;y=(x|0)>0;w=0;i=s;o=u;do{if(y){n=h<<16>>16;m=b[J>>1]|0;k=b[B>>1]|0;j=b[C>>1]|0;v=b[D>>1]|0;h=b[E>>1]|0;g=m<<16>>16;r=k<<16>>16;s=j<<16>>16;t=v<<16>>16;u=h<<16>>16;q=L+(o+2-i<<2)|0;i=p;p=0;while(1){ea=c[q>>2]|0;fa=S(g,ea>>16)|0;ea=(S(g,ea&65535)|0)>>16;ca=c[q+-4>>2]|0;da=S(r,ca>>16)|0;ca=(S(r,ca&65535)|0)>>16;aa=c[q+-8>>2]|0;ba=S(s,aa>>16)|0;aa=(S(s,aa&65535)|0)>>16;_=c[q+-12>>2]|0;$=S(t,_>>16)|0;_=(S(t,_&65535)|0)>>16;Y=c[q+-16>>2]|0;Z=S(u,Y>>16)|0;Y=(S(u,Y&65535)|0)>>16;i=(S(i,196314165)|0)+907633515|0;X=c[I+(i>>>25<<2)>>2]|0;c[L+(o<<2)>>2]=fa+2+ea+da+ca+ba+aa+$+_+Z+Y+(S(X>>16,n)|0)+((S(X&65535,n)|0)>>16)<<2;o=o+1|0;p=p+1|0;if((p|0)>=(x|0)){p=i;i=v;break}else q=q+4|0}}else{n=h<<16>>16;m=b[J>>1]|0;k=b[B>>1]|0;j=b[C>>1]|0;i=b[D>>1]|0;h=b[E>>1]|0}b[J>>1]=(S(m<<16>>16,K)|0)>>>15;b[B>>1]=(S(k<<16>>16,K)|0)>>>15;b[C>>1]=(S(j<<16>>16,K)|0)>>>15;b[D>>1]=(S(i<<16>>16,K)|0)>>>15;b[E>>1]=(S(h<<16>>16,K)|0)>>>15;h=(S(n,z)|0)>>>15&65535;fa=c[H>>2]|0;fa=((fa>>16)*655|0)+fa+(((fa&65535)*655|0)>>>16)|0;i=(c[A>>2]<<16>>16)*4608|0;i=(fa|0)<(i|0)?fa:i;c[H>>2]=i;i=(i>>7)+1>>1;w=w+1|0}while((w|0)<(F|0));J=p;I=h}else{i=s;J=p;I=h}H=L+(G+-16<<2)|0;G=a+1284|0;n=H;h=G;o=n+64|0;do{c[n>>2]=c[h>>2];n=n+4|0;h=h+4|0}while((n|0)<(o|0));t=c[M>>2]|0;if((t|0)<=0){h=H+(t<<2)|0;n=G;o=n+64|0;do{c[n>>2]=c[h>>2];n=n+4|0;h=h+4|0}while((n|0)<(o|0));c[Q>>2]=J;b[R>>1]=I;c[d>>2]=i;fa=d+4|0;c[fa>>2]=i;fa=d+8|0;c[fa>>2]=i;fa=d+12|0;c[fa>>2]=i;pa(T|0);l=W;return}u=P>>1;v=b[U>>1]|0;w=b[U+2>>1]|0;x=b[U+4>>1]|0;y=b[U+6>>1]|0;z=b[U+8>>1]|0;A=b[U+10>>1]|0;B=b[U+12>>1]|0;C=b[U+14>>1]|0;D=b[U+16>>1]|0;E=b[U+18>>1]|0;F=(P|0)>10;s=N<<16>>16;o=(O>>21)+1>>1;n=0;h=c[H+60>>2]|0;p=c[H+52>>2]|0;q=c[H+44>>2]|0;g=c[H+36>>2]|0;r=c[H+28>>2]|0;do{m=n+16|0;k=n+15|0;j=S(v,h>>16)|0;K=(S(v,h&65535)|0)>>16;N=p;p=c[H+(n+14<<2)>>2]|0;L=S(w,p>>16)|0;a=(S(w,p&65535)|0)>>16;M=S(x,N>>16)|0;N=(S(x,N&65535)|0)>>16;Z=q;q=c[H+(n+12<<2)>>2]|0;O=S(y,q>>16)|0;X=(S(y,q&65535)|0)>>16;Y=S(z,Z>>16)|0;Z=(S(z,Z&65535)|0)>>16;ba=g;g=c[H+(n+10<<2)>>2]|0;_=S(A,g>>16)|0;$=(S(A,g&65535)|0)>>16;aa=S(B,ba>>16)|0;ba=(S(B,ba&65535)|0)>>16;fa=r;r=c[H+(n+8<<2)>>2]|0;ca=S(C,r>>16)|0;da=(S(C,r&65535)|0)>>16;ea=S(D,fa>>16)|0;fa=(S(D,fa&65535)|0)>>16;h=c[H+(n+6<<2)>>2]|0;h=j+u+K+L+a+M+N+O+X+Y+Z+_+$+aa+ba+ca+da+ea+fa+(S(E,h>>16)|0)+((S(E,h&65535)|0)>>16)|0;if(F){j=10;do{fa=c[H+(k-j<<2)>>2]|0;ea=b[U+(j<<1)>>1]|0;h=(S(ea,fa>>16)|0)+h+((S(ea,fa&65535)|0)>>16)|0;j=j+1|0}while((j|0)!=(P|0))}m=H+(m<<2)|0;k=c[m>>2]|0;h=(h|0)>134217727?2147483632:((h|0)>-134217728?h:-134217728)<<4;j=k+h|0;if((j|0)>-1)h=(k&h|0)<0?-2147483648:j;else h=(k|h|0)>-1?2147483647:j;c[m>>2]=h;fa=(((S(s,h&65535)|0)>>16)+(S(s,h>>16)|0)+(S(o,h)|0)>>7)+1>>1;ea=(fa|0)>32767;fa=(fa|0)>-32768?fa:-32768;b[f+(n<<1)>>1]=ea|(fa|0)>32767&(ea^1)?32767:fa&65535;n=n+1|0}while((n|0)<(t|0));h=H+(t<<2)|0;n=G;o=n+64|0;do{c[n>>2]=c[h>>2];n=n+4|0;h=h+4|0}while((n|0)<(o|0));c[Q>>2]=J;b[R>>1]=I;c[d>>2]=i;fa=d+4|0;c[fa>>2]=i;fa=d+8|0;c[fa>>2]=i;fa=d+12|0;c[fa>>2]=i;pa(T|0);l=W;return}function $c(a,d,e,f,g,h,i,j){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,m=0,n=0,o=0,p=0,q=0,r=0;q=l;p=l;l=l+((1*(i<<1<<1)|0)+15&-16)|0;if((i|0)<=0){g=p+(i<<1)|0;Zc(a,d,p,i);Zc(e,f,g,i);l=q;return}m=S(j+-2|0,i)|0;o=c[h>>2]|0;n=o<<16>>16;o=(o>>15)+1>>1;k=0;do{r=c[g+(k+m<<2)>>2]|0;r=((S(n,r&65535)|0)>>16)+(S(n,r>>16)|0)+(S(o,r)|0)>>8;b[p+(k<<1)>>1]=(r|0)>32767?32767:((r|0)>-32768?r:-32768)&65535;k=k+1|0}while((k|0)!=(i|0));k=p+(i<<1)|0;j=S(j+-1|0,i)|0;o=c[h+4>>2]|0;n=o<<16>>16;o=(o>>15)+1>>1;m=0;do{r=c[g+(m+j<<2)>>2]|0;r=((S(n,r&65535)|0)>>16)+(S(n,r>>16)|0)+(S(o,r)|0)>>8;b[k+(m<<1)>>1]=(r|0)>32767?32767:((r|0)>-32768?r:-32768)&65535;m=m+1|0}while((m|0)!=(i|0));Zc(a,d,p,i);Zc(e,f,k,i);l=q;return}function ad(a,c,d){a=a|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=d+-65536|0;f=c+-1|0;if((c|0)>1){c=0;do{g=a+(c<<1)|0;b[g>>1]=(((S(b[g>>1]|0,d)|0)>>>15)+1|0)>>>1;d=(((S(d,e)|0)>>15)+1>>1)+d|0;c=c+1|0}while((c|0)!=(f|0))}g=a+(f<<1)|0;b[g>>1]=(((S(b[g>>1]|0,d)|0)>>>15)+1|0)>>>1;return}function bd(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0;if((g|0)>0)i=0;else return;do{h=a[d+i>>0]|0;if(!(i|f)){j=(a[e>>0]|0)+-16|0;h=(h|0)>(j|0)?h:j}else{j=h+-4|0;h=a[e>>0]|0;k=h+8|0;h=((j|0)>(k|0)?(j<<1)-k|0:j)+h|0}k=h<<24;k=(k|0)>1056964608?63:(k|0)<0?0:k>>24;a[e>>0]=k;k=(k*29|0)+2090+(k*7281>>16)|0;c[b+(i<<2)>>2]=id((k|0)<3967?k:3967)|0;i=i+1|0}while((i|0)!=(g|0));return}function cd(f,g,h){f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=l;l=l+112|0;q=u+96|0;k=u+64|0;s=u+32|0;t=u;i=a[g>>0]|0;r=h+2|0;p=b[r>>1]|0;j=(c[h+8>>2]|0)+(S(p<<16>>16,i<<24>>24)|0)|0;if(p<<16>>16>0){i=0;do{b[f+(i<<1)>>1]=d[j+i>>0]<<7;i=i+1|0}while((i|0)<(b[r>>1]|0));i=a[g>>0]|0}ed(k,q,h,i<<24>>24);p=g+1|0;i=b[r>>1]|0;if(i<<16>>16>0){i=i<<16>>16;o=b[h+4>>1]|0;j=0;m=i;do{n=m;m=m+-1|0;k=(S(d[q+m>>0]|0,j<<16>>16)|0)>>8;j=a[p+m>>0]|0;g=j<<24>>24<<10;if(j<<24>>24>0)j=g+-102|0;else j=j<<24>>24?g|102:g;j=(S(j>>16,o)|0)+k+((S(j&65535,o)|0)>>16)|0;b[s+(m<<1)>>1]=j}while((n|0)>1)}else i=i<<16>>16;fd(t,f,i);i=b[r>>1]|0;if(i<<16>>16>0)m=0;else{t=i<<16>>16;h=h+32|0;h=c[h>>2]|0;gd(f,h,t);l=u;return}do{i=e[t+(m<<1)>>1]<<16;if((i|0)<1)i=0;else{k=V(i|0)|0;j=24-k|0;g=0-j|0;do if(j)if((j|0)<0){i=i>>>(j+32|0)|i<<g;break}else{i=i<<32-j|i>>>j;break}while(0);q=((k&1|0)==0?46214:32768)>>>(k>>>1);i=(S(i&127,13959168)|0)>>>16;i=(S(i,q>>16)|0)+q+((S(i,q&65535)|0)>>>16)|0}q=f+(m<<1)|0;i=((b[s+(m<<1)>>1]<<14|0)/(i|0)|0)+(b[q>>1]|0)|0;b[q>>1]=(i|0)>32767?32767:((i|0)>0?i:0)&65535;m=m+1|0;i=b[r>>1]|0}while((m|0)<(i|0));h=h+32|0;h=c[h>>2]|0;gd(f,h,i);l=u;return}function dd(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;i=(f|0)==8;k=(g|0)==4;l=i?(k?11:3):k?34:12;k=i?(k?25591:25561):k?25635:25567;i=f<<16;f=i>>15;i=(i>>16)*18|0;j=f+(b<<16>>16)|0;if((g|0)<=0)return;h=d<<24>>24;b=(f|0)>(i|0);d=b?f:i;b=b?i:f;f=0;do{i=j+(a[k+((S(f,l)|0)+h)>>0]|0)|0;c[e+(f<<2)>>2]=(i|0)>(d|0)?d:(i|0)<(b|0)?b:i;f=f+1|0}while((f|0)!=(g|0));return}function ed(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;k=f+2|0;h=b[k>>1]|0;if(h<<16>>16<=0)return;j=f+16|0;i=0;f=(c[f+20>>2]|0)+((S(h<<16>>16,g)|0)/2|0)|0;while(1){l=a[f>>0]|0;g=l&255;b[d+(i<<1)>>1]=(g>>>1&7)*9;a[e+i>>0]=a[(c[j>>2]|0)+(((b[k>>1]|0)+-1&0-(g&1))+i)>>0]|0;h=i|1;b[d+(h<<1)>>1]=((l&255)>>>5)*9&255;a[e+h>>0]=a[(c[j>>2]|0)+(h+((b[k>>1]|0)+-1&0-(g>>>4&1)))>>0]|0;i=i+2|0;if((i|0)>=(b[k>>1]|0))break;else f=f+1|0}return}function fd(a,c,d){a=a|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=b[c>>1]|0;e=(b[c+2>>1]|0)-f|0;e=131072/(((e|0)>1?e:1)>>>0)|0;f=e+(131072/(((f|0)>1?f:1)>>>0)|0)|0;b[a>>1]=f>>>0<32767?f:32767;f=d+-1|0;if((f|0)>1){d=1;do{g=d+1|0;i=c+(g<<1)|0;h=(b[i>>1]|0)-(b[c+(d<<1)>>1]|0)|0;h=131072/(((h|0)>1?h:1)>>>0)|0;e=h+e|0;b[a+(d<<1)>>1]=e>>>0<32767?e:32767;d=d+2|0;e=(b[c+(d<<1)>>1]|0)-(b[i>>1]|0)|0;e=131072/(((e|0)>1?e:1)>>>0)|0;h=e+h|0;b[a+(g<<1)>>1]=h>>>0<32767?h:32767}while((d|0)<(f|0))}i=32768-(b[c+(f<<1)>>1]|0)|0;i=(131072/(((i|0)>1?i:1)>>>0)|0)+e|0;b[a+(f<<1)>>1]=i>>>0<32767?i:32767;return}function gd(a,c,d){a=a|0;c=c|0;d=d|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;q=(d|0)>1;s=a+(d+-1<<1)|0;r=c+(d<<1)|0;o=d+-1|0;n=0;do{h=b[a>>1]|0;j=b[c>>1]|0;f=(h<<16>>16)-(j<<16>>16)|0;if(q){i=1;g=0;do{m=h;h=b[a+(i<<1)>>1]|0;m=(h<<16>>16)-(m<<16>>16)-(b[c+(i<<1)>>1]|0)|0;l=(m|0)<(f|0);g=l?i:g;f=l?m:f;i=i+1|0}while((i|0)!=(d|0))}else g=0;l=b[r>>1]|0;h=l<<16>>16;k=32768-(b[s>>1]|0)-h|0;i=(k|0)<(f|0);m=i?d:g;if(((i?k:f)|0)>-1){p=23;break}if(!m)b[a>>1]=j;else{if((m|0)==(d|0)){f=32768-h|0;g=s}else{if((m|0)>0){f=j<<16>>16;if((m|0)!=1){g=1;do{f=(b[c+(g<<1)>>1]|0)+f|0;g=g+1|0}while((g|0)!=(m|0))}}else f=0;i=c+(m<<1)|0;j=b[i>>1]|0;k=j>>1;h=k+f|0;if((m|0)<(d|0)){f=32768-(l<<16>>16)|0;if((o|0)>(m|0)){g=o;do{f=f-(b[c+(g<<1)>>1]|0)|0;g=g+-1|0}while((g|0)>(m|0))}}else f=32768;t=f-k|0;u=(h|0)>(t|0);l=a+(m+-1<<1)|0;g=a+(m<<1)|0;f=(b[g>>1]|0)+(b[l>>1]|0)|0;f=(f>>1)+(f&1)|0;k=u?h:t;m=u?t:h;f=((f|0)>(k|0)?k:(f|0)<(m|0)?m:f)-(j>>>1)|0;b[l>>1]=f;f=f+(e[i>>1]|0)|0}b[g>>1]=f}n=n+1|0}while((n|0)<20);if((p|0)==23)return;if((n|0)!=20)return;hd(a,d);u=b[a>>1]|0;f=b[c>>1]|0;f=(u|0)>(f|0)?u:f;b[a>>1]=f;if(q){g=1;do{u=a+(g<<1)|0;q=b[u>>1]|0;t=(b[c+(g<<1)>>1]|0)+f|0;t=(t|0)>32767?32767:((t|0)>-32768?t:-32768)<<16>>16;f=(q|0)>(t|0)?q:t;b[u>>1]=f;g=g+1|0}while((g|0)!=(d|0))}f=b[s>>1]|0;g=32768-(b[r>>1]|0)|0;g=(f|0)<(g|0)?f:g;b[s>>1]=g;f=d+-2|0;if((f|0)<=-1)return;while(1){u=a+(f<<1)|0;s=b[u>>1]|0;t=(g<<16>>16)-(b[c+(f+1<<1)>>1]|0)|0;g=(s|0)<(t|0)?s:t;b[u>>1]=g;if((f|0)<=0)break;else f=f+-1|0}return}function hd(a,c){a=a|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;if((c|0)>1)g=1;else return;do{h=b[a+(g<<1)>>1]|0;e=g;while(1){d=e+-1|0;f=b[a+(d<<1)>>1]|0;if(h<<16>>16>=f<<16>>16){d=e;break}b[a+(e<<1)>>1]=f;if((e|0)>1)e=d;else break}b[a+(d<<1)>>1]=h;g=g+1|0}while((g|0)!=(c|0));return}function id(a){a=a|0;var b=0,c=0,d=0,e=0;if((a|0)<0){a=0;return a|0}if((a|0)>3966){a=2147483647;return a|0}d=a>>>7;b=1<<d;e=a&127;e=((S(S(e,-174)|0,128-e|0)|0)>>16)+e|0;c=S(e,b>>7)|0;a=((a|0)<2048?e<<d>>7:c)+b|0;return a|0}function jd(a,c,e){a=a|0;c=c|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;if((e|0)>0){j=yc(c,25350+(d[25502+e>>0]|0)|0,8)|0;h=e-j<<16>>16;j=j<<16;e=j>>16;if((j|0)>0){j=yc(c,25198+(d[25502+e>>0]|0)|0,8)|0;f=e-j<<16>>16;j=j<<16;e=j>>16;if((j|0)>0){j=yc(c,25046+(d[25502+e>>0]|0)|0,8)|0;g=e-j<<16>>16;i=a+2|0;j=j<<16;e=j>>16;if((j|0)>0){l=yc(c,24894+(d[25502+e>>0]|0)|0,8)|0;b[a>>1]=l;j=h;h=e-l&65535;e=i}else{e=h;k=7}}else{e=h;k=4}}else{e=h;f=0;k=4}}else{e=0;f=0;k=4}if((k|0)==4){g=0;i=a+2|0;k=7}if((k|0)==7){b[a>>1]=0;j=e;h=0;e=i}b[e>>1]=h;e=a+4|0;if((g|0)>0){l=yc(c,24894+(d[25502+g>>0]|0)|0,8)|0;b[e>>1]=l;e=g-l&65535}else{b[e>>1]=0;e=0}b[a+6>>1]=e;if((f|0)>0){e=yc(c,25046+(d[25502+f>>0]|0)|0,8)|0;l=e<<16;g=l>>16;f=f-e<<16>>16;e=a+8|0;h=a+10|0;if((l|0)>0){l=yc(c,24894+(d[25502+g>>0]|0)|0,8)|0;b[e>>1]=l;g=g-l&65535;e=h}else k=15}else{f=0;h=a+10|0;e=a+8|0;k=15}if((k|0)==15){b[e>>1]=0;g=0;e=h}b[e>>1]=g;e=a+12|0;if((f|0)>0){l=yc(c,24894+(d[25502+f>>0]|0)|0,8)|0;b[e>>1]=l;e=f-l&65535}else{b[e>>1]=0;e=0}b[a+14>>1]=e;if((j|0)>0){e=yc(c,25198+(d[25502+j>>0]|0)|0,8)|0;l=e<<16;f=l>>16;e=j-e<<16>>16;if((l|0)>0){h=yc(c,25046+(d[25502+f>>0]|0)|0,8)|0;l=h<<16;i=l>>16;h=f-h<<16>>16;g=a+16|0;f=a+18|0;if((l|0)>0){l=yc(c,24894+(d[25502+i>>0]|0)|0,8)|0;b[g>>1]=l;g=i-l&65535}else k=24}else k=21}else{e=0;k=21}if((k|0)==21){h=0;g=a+16|0;f=a+18|0;k=24}if((k|0)==24){b[g>>1]=0;g=0}b[f>>1]=g;f=a+20|0;if((h|0)>0){l=yc(c,24894+(d[25502+h>>0]|0)|0,8)|0;b[f>>1]=l;f=h-l&65535}else{b[f>>1]=0;f=0}b[a+22>>1]=f;if((e|0)>0){g=yc(c,25046+(d[25502+e>>0]|0)|0,8)|0;l=g<<16;h=l>>16;g=e-g<<16>>16;f=a+24|0;e=a+26|0;if((l|0)>0){l=yc(c,24894+(d[25502+h>>0]|0)|0,8)|0;b[f>>1]=l;f=h-l&65535}else k=32}else{g=0;f=a+24|0;e=a+26|0;k=32}if((k|0)==32){b[f>>1]=0;f=0}b[e>>1]=f;f=a+28|0;e=a+30|0;if((g|0)>0){l=yc(c,24894+(d[25502+g>>0]|0)|0,8)|0;b[f>>1]=l;l=g-l&65535;b[e>>1]=l;return}else{b[f>>1]=0;l=0;b[e>>1]=l;return}}function kd(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=d<<16>>16;c[b+2332>>2]=h*5;i=b+2324|0;j=S(c[i>>2]<<16>>16,h*327680>>16)|0;k=b+2316|0;g=b+2320|0;if((c[k>>2]|0)==(d|0)?(c[g>>2]|0)==(e|0):0){f=0;l=4}else{f=ld(b+2432|0,h*1e3|0,e,0)|0;c[g>>2]=e;if((c[k>>2]|0)==(d|0))l=4;else{e=f;g=1}}if((l|0)==4)if((j|0)==(c[b+2328>>2]|0)){l=f;return l|0}else{e=f;g=0}f=(d|0)==8;i=(c[i>>2]|0)==4;c[b+2384>>2]=f?(i?24670:24693):i?24636:24681;if(g){c[b+2336>>2]=h*20;i=(d|4|0)==12;c[b+2340>>2]=i?10:16;c[b+2732>>2]=i?1556:1592;switch(d|0){case 16:{f=24568;l=9;break}case 12:{f=24562;l=9;break}default:if(f){f=24553;l=9}}if((l|0)==9)c[b+2380>>2]=f;c[b+2376>>2]=1;c[b+2308>>2]=100;a[b+2312>>0]=10;c[b+4164>>2]=0;tf(b+1284|0,0,1024)|0}c[k>>2]=d;c[b+2328>>2]=j;l=e;return l|0}function ld(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;tf(b|0,0,300)|0;if(!f){a:do if((d|0)>=12e3)if((d|0)<16e3){switch(d|0){case 12e3:break a;default:f=-1}return f|0}else{switch(d|0){case 16e3:break a;default:f=-1}return f|0}else{switch(d|0){case 8e3:break a;default:f=-1}return f|0}while(0);b:do if((e|0)<16e3)if((e|0)<12e3){switch(e|0){case 8e3:break b;default:f=-1}return f|0}else{switch(e|0){case 12e3:break b;default:f=-1}return f|0}else{if((e|0)<24e3){switch(e|0){case 16e3:break b;default:f=-1}return f|0}if((e|0)<48e3){switch(e|0){case 24e3:break b;default:f=-1}return f|0}else{switch(e|0){case 48e3:break b;default:f=-1}return f|0}}while(0);f=((e>>>12)-((e|0)>16e3&1)>>((e|0)>24e3&1))+-1+(27016+(((d>>>12)+-1|0)*5|0))|0}else{c:do if((d|0)<16e3)if((d|0)<12e3){switch(d|0){case 8e3:break c;default:f=-1}return f|0}else{switch(d|0){case 12e3:break c;default:f=-1}return f|0}else{if((d|0)<24e3){switch(d|0){case 16e3:break c;default:f=-1}return f|0}if((d|0)<48e3){switch(d|0){case 24e3:break c;default:f=-1}return f|0}else{switch(d|0){case 48e3:break c;default:f=-1}return f|0}}while(0);d:do if((e|0)>=12e3)if((e|0)<16e3){switch(e|0){case 12e3:break d;default:f=-1}return f|0}else{switch(e|0){case 16e3:break d;default:f=-1}return f|0}else{switch(e|0){case 8e3:break d;default:f=-1}return f|0}while(0);f=(e>>>12)+-1+(27001+((((d>>>12)-((d|0)>16e3&1)>>((d|0)>24e3&1))+-1|0)*3|0))|0}c[b+292>>2]=a[f>>0];i=(d>>>0)/1e3|0;c[b+284>>2]=i;c[b+288>>2]=(e>>>0)/1e3|0;c[b+268>>2]=i*10;do if((e|0)>(d|0)){f=b+264|0;if((d<<1|0)==(e|0)){c[f>>2]=1;f=0;break}else{c[f>>2]=2;f=1;break}}else{f=b+264|0;if((e|0)>=(d|0)){c[f>>2]=0;f=0;break}c[f>>2]=3;f=e<<2;if((f|0)==(d*3|0)){c[b+280>>2]=3;c[b+276>>2]=18;c[b+296>>2]=19740;f=0;break}g=e*3|0;if((g|0)==(d<<1|0)){c[b+280>>2]=2;c[b+276>>2]=18;c[b+296>>2]=19798;f=0;break}if((e<<1|0)==(d|0)){c[b+280>>2]=1;c[b+276>>2]=24;c[b+296>>2]=19838;f=0;break}if((g|0)==(d|0)){c[b+280>>2]=1;c[b+276>>2]=36;c[b+296>>2]=19866;f=0;break}if((f|0)==(d|0)){c[b+280>>2]=1;c[b+276>>2]=36;c[b+296>>2]=19906;f=0;break}if((e*6|0)==(d|0)){c[b+280>>2]=1;c[b+276>>2]=36;c[b+296>>2]=19946;f=0;break}else{b=-1;return b|0}}while(0);g=e<<16>>16;h=((e>>>15)+1|0)>>>1;i=d<<f;f=((d<<(f|14)|0)/(e|0)|0)<<2;while(1)if(((S(f>>16,g)|0)+(S(f,h)|0)+((S(f&65535,g)|0)>>16)|0)<(i|0))f=f+1|0;else break;c[b+272>>2]=f;b=0;return b|0}function md(a){a=a|0;c[a>>2]=8544;return 0}function nd(a){a=a|0;var b=0,d=0;Pc(a)|0;b=Pc(a+4260|0)|0;d=a+8520|0;c[d>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[a+8540>>2]=0;return b|0}function od(d,f,g,h,i,j,k,m){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;m=m|0;var 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;I=l;l=l+672|0;H=I+20|0;F=I+16|0;E=I+8|0;z=I;v=I+24|0;c[H>>2]=0;C=z;c[C>>2]=0;c[C+4>>2]=0;C=f+4|0;o=c[C>>2]|0;if((h|0)!=0&(o|0)>0){h=0;do{c[d+(h*4260|0)+2388>>2]=0;h=h+1|0}while((h|0)<(o|0))}G=d+8536|0;if((o|0)>(c[G>>2]|0)){n=Pc(d+4260|0)|0;o=c[C>>2]|0}else n=0;if((o|0)==1?(c[G>>2]|0)==2:0)D=(c[f+12>>2]|0)==((c[d+2316>>2]|0)*1e3|0);else D=0;y=d+2388|0;a:do if((c[y>>2]|0)==0&(o|0)>0){q=f+16|0;r=f+12|0;s=f+8|0;p=0;b:while(1){switch(c[q>>2]|0){case 10:case 0:{h=2;o=1;break}case 20:{h=4;o=1;break}case 40:{h=4;o=2;break}case 60:{h=4;o=3;break}default:{h=-203;A=119;break b}}c[d+(p*4260|0)+2392>>2]=o;c[d+(p*4260|0)+2324>>2]=h;h=c[r>>2]>>10;switch(h|0){case 7:case 11:case 15:break;default:{h=-200;A=119;break b}}n=(kd(d+(p*4260|0)|0,h+1|0,c[s>>2]|0)|0)+n|0;p=p+1|0;o=c[C>>2]|0;if((p|0)>=(o|0))break a}if((A|0)==119){l=I;return h|0}}while(0);h=c[f>>2]|0;do if((h|0)==2)if((o|0)==2){if((c[d+8532>>2]|0)!=1?(c[G>>2]|0)!=1:0){h=2;o=2;break}c[d+8520>>2]=0;c[d+8528>>2]=0;Ef(d+6692|0,d+2432|0,300)|0;h=c[f>>2]|0;o=c[C>>2]|0}else h=2;while(0);c[d+8532>>2]=h;c[G>>2]=o;x=f+8|0;if(((c[x>>2]|0)+-8e3|0)>>>0>4e4){d=-200;l=I;return d|0}B=(g|0)==1;if(!B?(c[y>>2]|0)==0:0){if((o|0)>0){q=0;do{p=d+(q*4260|0)+2392|0;w=(c[p>>2]|0)>0;h=Zb(i,1)|0;if(w){o=0;do{c[d+(q*4260|0)+2404+(o<<2)>>2]=h;o=o+1|0;w=(o|0)<(c[p>>2]|0);h=Zb(i,1)|0}while(w)}c[d+(q*4260|0)+2416>>2]=h;q=q+1|0;o=c[C>>2]|0}while((q|0)<(o|0));if((o|0)>0){q=0;do{o=d+(q*4260|0)+2420|0;c[o>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;do if(c[d+(q*4260|0)+2416>>2]|0){p=d+(q*4260|0)+2392|0;h=c[p>>2]|0;if((h|0)==1){c[o>>2]=1;break}o=(yc(i,c[1628+(h+-2<<2)>>2]|0,8)|0)+1|0;if((c[p>>2]|0)>0){h=0;do{c[d+(q*4260|0)+2420+(h<<2)>>2]=o>>>h&1;h=h+1|0}while((h|0)<(c[p>>2]|0))}}while(0);q=q+1|0;o=c[C>>2]|0}while((q|0)<(o|0))}}if((g|0)==0?(u=d+2392|0,(c[u>>2]|0)>0):0){t=d+6680|0;s=0;do{if((o|0)>0){r=t+(s<<2)|0;q=s+-1|0;if((s|0)>0){p=0;do{h=d+(p*4260|0)|0;if(c[d+(p*4260|0)+2420+(s<<2)>>2]|0){do if((p|0)==0&(o|0)==2){pd(i,z);if(c[r>>2]|0)break;qd(i,H)}while(0);Uc(h,i,s,1,(c[d+(p*4260|0)+2420+(q<<2)>>2]|0)==0?0:2);Vc(i,v,a[d+(p*4260|0)+2765>>0]|0,a[d+(p*4260|0)+2766>>0]|0,c[d+(p*4260|0)+2328>>2]|0);o=c[C>>2]|0}p=p+1|0}while((p|0)<(o|0))}else{p=0;do{h=d+(p*4260|0)|0;if(c[d+(p*4260|0)+2420+(s<<2)>>2]|0){do if((p|0)==0&(o|0)==2){pd(i,z);if(c[r>>2]|0)break;qd(i,H)}while(0);Uc(h,i,s,1,0);Vc(i,v,a[d+(p*4260|0)+2765>>0]|0,a[d+(p*4260|0)+2766>>0]|0,c[d+(p*4260|0)+2328>>2]|0);o=c[C>>2]|0}p=p+1|0}while((p|0)<(o|0))}}s=s+1|0}while((s|0)<(c[u>>2]|0))}}do if((o|0)==2){switch(g|0){case 0:{pd(i,z);if(!(c[d+6664+(c[y>>2]<<2)>>2]|0))A=59;else A=60;break}case 2:{if((c[d+2420+(c[y>>2]<<2)>>2]|0)==1){pd(i,z);if(!(c[d+6680+(c[y>>2]<<2)>>2]|0))A=59;else A=60}else A=55;break}default:A=55}if((A|0)==55){c[z>>2]=b[d+8520>>1];c[z+4>>2]=b[d+8522>>1];break}else if((A|0)==59){qd(i,H);break}else if((A|0)==60){c[H>>2]=0;break}}while(0);h=c[C>>2]|0;if((h|0)==2&(c[H>>2]|0)==0)if((c[d+8540>>2]|0)==1){tf(d+5544|0,0,1024)|0;c[d+6568>>2]=100;a[d+6572>>0]=10;c[d+8424>>2]=0;c[d+6636>>2]=1;h=c[C>>2]|0}else h=2;v=S(h,c[f+12>>2]|0)|0;v=(v|0)<(S(c[f>>2]|0,c[x>>2]|0)|0);u=d+2328|0;if(v)h=1;else h=S((c[u>>2]|0)+2|0,h)|0;w=ra()|0;s=l;l=l+((1*(h<<1)|0)+15&-16)|0;s=v?j:s;c[E>>2]=s;r=s+(c[u>>2]<<1)+4|0;t=E+4|0;c[t>>2]=r;if(g)if(c[d+8540>>2]|0){o=c[C>>2]|0;if((g|0)==2&(o|0)==2){h=(c[d+6680+(c[d+6648>>2]<<2)>>2]|0)==1;A=71}else h=0}else{h=1;A=71}else{h=(c[H>>2]|0)==0;A=71}if((A|0)==71)o=c[C>>2]|0;if((o|0)>0){q=(g|0)==2;p=d+8540|0;c:do if(h){o=0;do{h=(c[y>>2]|0)-o|0;do if((h|0)<1)h=0;else{if(q){h=c[d+(o*4260|0)+2420+(h+-1<<2)>>2]|0?2:0;break}if((o|0)>0?c[p>>2]|0:0){h=1;break}h=2}while(0);n=(Tc(d+(o*4260|0)|0,i,(c[E+(o<<2)>>2]|0)+4|0,F,g,h,m)|0)+n|0;h=d+(o*4260|0)+2388|0;c[h>>2]=(c[h>>2]|0)+1;o=o+1|0;h=c[C>>2]|0}while((o|0)<(h|0))}else{p=s+4|0;if(q)o=0;else{o=0;while(1){if(!o)n=(Tc(d,i,p,F,g,(c[y>>2]|0)>0?2:0,m)|0)+n|0;else tf((c[E+(o<<2)>>2]|0)+4|0,0,c[F>>2]<<1|0)|0;h=d+(o*4260|0)+2388|0;c[h>>2]=(c[h>>2]|0)+1;o=o+1|0;h=c[C>>2]|0;if((o|0)>=(h|0))break c}}do{if(!o){h=c[y>>2]|0;if((h|0)<1)h=0;else h=c[d+2420+(h+-1<<2)>>2]|0?2:0;n=(Tc(d,i,p,F,2,h,m)|0)+n|0}else tf((c[E+(o<<2)>>2]|0)+4|0,0,c[F>>2]<<1|0)|0;h=d+(o*4260|0)+2388|0;c[h>>2]=(c[h>>2]|0)+1;o=o+1|0;h=c[C>>2]|0}while((o|0)<(h|0))}while(0);if((h|0)==2&(c[f>>2]|0)==2){q=d+2316|0;rd(d+8520|0,s,r,z,c[q>>2]|0,c[F>>2]|0);s=q;q=c[F>>2]|0}else A=94}else A=94;if((A|0)==94){A=d+8524|0;q=e[A>>1]|e[A+2>>1]<<16;b[s>>1]=q;b[s+2>>1]=q>>>16;q=c[F>>2]|0;s=s+(q<<1)|0;s=e[s>>1]|e[s+2>>1]<<16;b[A>>1]=s;b[A+2>>1]=s>>>16;s=d+2316|0}o=S(c[x>>2]|0,q)|0;o=(o|0)/((c[s>>2]<<16>>16)*1e3|0)|0;c[k>>2]=o;h=c[f>>2]|0;if((h|0)==2){r=l;l=l+((1*(o<<1)|0)+15&-16)|0}else r=j;o=c[C>>2]|0;if(v){A=c[u>>2]|0;m=A+2|0;i=(S(m,o)|0)<<1;z=l;l=l+((1*i|0)+15&-16)|0;Ef(z|0,j|0,S(o<<1,m)|0)|0;c[E>>2]=z;c[t>>2]=z+(A<<1)+4}d:do if((((h|0)<(o|0)?h:o)|0)>0){p=0;h=q;while(1){n=(sd(d+(p*4260|0)+2432|0,r,(c[E+(p<<2)>>2]|0)+2|0,h)|0)+n|0;h=c[f>>2]|0;if((h|0)==2){o=c[k>>2]|0;if((o|0)>0){h=0;do{b[j+((h<<1)+p<<1)>>1]=b[r+(h<<1)>>1]|0;h=h+1|0}while((h|0)<(o|0));h=c[f>>2]|0}else h=2}p=p+1|0;o=c[C>>2]|0;if((p|0)>=(((h|0)<(o|0)?h:o)|0))break d;h=c[F>>2]|0}}while(0);do if((h|0)==2&(o|0)==1)if(D){n=(sd(d+6692|0,r,(c[E>>2]|0)+2|0,c[F>>2]|0)|0)+n|0;o=c[k>>2]|0;if((o|0)>0)h=0;else break;do{b[j+((h<<1|1)<<1)>>1]=b[r+(h<<1)>>1]|0;h=h+1|0}while((h|0)<(o|0))}else{o=c[k>>2]|0;if((o|0)>0)h=0;else break;do{k=h<<1;b[j+((k|1)<<1)>>1]=b[j+(k<<1)>>1]|0;h=h+1|0}while((h|0)<(o|0))}while(0);if((c[d+4164>>2]|0)==2)h=S(c[18868+((c[s>>2]|0)+-8>>2<<2)>>2]|0,c[d+2308>>2]|0)|0;else h=0;c[f+20>>2]=h;if(B){if((c[G>>2]|0)>0){h=0;do{a[d+(h*4260|0)+2312>>0]=10;h=h+1|0}while((h|0)<(c[G>>2]|0))}}else c[d+8540>>2]=c[H>>2];pa(w|0);d=n;l=I;return d|0}function pd(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;g=yc(a,24497,8)|0;e=(g|0)/5|0;g=(S(e,-5)|0)+g|0;j=yc(a,24550,8)|0;i=yc(a,24557,8)|0;h=yc(a,24550,8)|0;f=yc(a,24557,8)|0;a=j+(e*3|0)|0;e=b[19436+(a<<1)>>1]|0;a=(b[19436+(a+1<<1)>>1]|0)-e|0;e=(S((S(a>>16,429522944)|0)+((a&65535)*6554|0)>>16,i<<17>>16|1)|0)+e|0;g=h+(g*3|0)|0;a=b[19436+(g<<1)>>1]|0;g=(b[19436+(g+1<<1)>>1]|0)-a|0;a=(S((S(g>>16,429522944)|0)+((g&65535)*6554|0)>>16,f<<17>>16|1)|0)+a|0;c[d+4>>2]=a;c[d>>2]=e-a;return}function qd(a,b){a=a|0;b=b|0;c[b>>2]=yc(a,24522,8)|0;return}function rd(a,d,f,g,h,i){a=a|0;d=d|0;f=f|0;g=g|0;h=h|0;i=i|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;p=a+4|0;k=e[p>>1]|e[p+2>>1]<<16;b[d>>1]=k;b[d+2>>1]=k>>>16;k=a+8|0;l=e[k>>1]|e[k+2>>1]<<16;b[f>>1]=l;b[f+2>>1]=l>>>16;l=d+(i<<1)|0;l=e[l>>1]|e[l+2>>1]<<16;b[p>>1]=l;b[p+2>>1]=l>>>16;p=f+(i<<1)|0;p=e[p>>1]|e[p+2>>1]<<16;b[k>>1]=p;b[k+2>>1]=p>>>16;k=b[a>>1]|0;p=a+2|0;l=b[p>>1]|0;j=h<<3;q=c[g>>2]|0;m=(65536/(j|0)|0)<<16>>16;n=((S(q-k<<16>>16,m)|0)>>15)+1>>1;o=c[g+4>>2]|0;m=((S(o-l<<16>>16,m)|0)>>15)+1>>1;if((h|0)>0){h=0;g=l;do{k=k+n|0;g=g+m|0;s=h;h=h+1|0;u=b[d+(h<<1)>>1]|0;s=(b[d+(s+2<<1)>>1]|0)+(b[d+(s<<1)>>1]|0)+(u<<1)|0;l=f+(h<<1)|0;r=k<<16>>16;t=g<<16>>16;r=((b[l>>1]<<8)+(S(u>>5,t)|0)+((S(u<<11&63488,t)|0)>>16)+(S(s>>7,r)|0)+((S(s<<9&65024,r)|0)>>16)>>7)+1>>1;b[l>>1]=(r|0)>32767?32767:((r|0)>-32768?r:-32768)&65535}while((h|0)<(j|0))}if((j|0)<(i|0)){g=q<<16>>16;k=o<<16>>16;do{t=j;j=j+1|0;s=b[d+(j<<1)>>1]|0;t=(b[d+(t+2<<1)>>1]|0)+(b[d+(t<<1)>>1]|0)+(s<<1)|0;u=f+(j<<1)|0;t=((b[u>>1]<<8)+(S(s>>5,k)|0)+((S(s<<11&63488,k)|0)>>16)+(S(t>>7,g)|0)+((S(t<<9&65024,g)|0)>>16)>>7)+1>>1;b[u>>1]=(t|0)>32767?32767:((t|0)>-32768?t:-32768)&65535}while((j|0)!=(i|0))}b[a>>1]=q;b[p>>1]=o;if((i|0)>0)j=0;else return;do{j=j+1|0;s=d+(j<<1)|0;q=b[s>>1]|0;u=f+(j<<1)|0;t=b[u>>1]|0;r=t+q|0;t=q-t|0;b[s>>1]=(r|0)>32767?32767:((r|0)>-32768?r:-32768)&65535;b[u>>1]=(t|0)>32767?32767:((t|0)>-32768?t:-32768)&65535}while((j|0)!=(i|0));return}function sd(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;f=a+284|0;g=a+292|0;j=c[g>>2]|0;h=(c[f>>2]|0)-j|0;i=a+168|0;Ef(a+168+(j<<1)|0,d|0,h<<1|0)|0;switch(c[a+264>>2]|0){case 1:{td(a,b,i,c[f>>2]|0);td(a,b+(c[a+288>>2]<<1)|0,d+(h<<1)|0,e-(c[f>>2]|0)|0);break}case 2:{ud(a,b,i,c[f>>2]|0);ud(a,b+(c[a+288>>2]<<1)|0,d+(h<<1)|0,e-(c[f>>2]|0)|0);break}case 3:{vd(a,b,i,c[f>>2]|0);vd(a,b+(c[a+288>>2]<<1)|0,d+(h<<1)|0,e-(c[f>>2]|0)|0);break}default:{Ef(b|0,i|0,c[f>>2]<<1|0)|0;Ef(b+(c[a+288>>2]<<1)|0,d+(h<<1)|0,e-(c[f>>2]|0)<<1|0)|0}}j=c[g>>2]|0;Ef(i|0,d+(e-j<<1)|0,j<<1|0)|0;return 0}function td(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;xd(a,b,c,d);return}function ud(a,d,e,f){a=a|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,o=0,p=0,q=0,r=0,s=0;q=l;n=a+268|0;i=c[n>>2]|0;o=l;l=l+((1*((i<<1)+8<<1)|0)+15&-16)|0;p=a+24|0;b[o>>1]=b[p>>1]|0;b[o+2>>1]=b[p+2>>1]|0;b[o+4>>1]=b[p+4>>1]|0;b[o+6>>1]=b[p+6>>1]|0;b[o+8>>1]=b[p+8>>1]|0;b[o+10>>1]=b[p+10>>1]|0;b[o+12>>1]=b[p+12>>1]|0;b[o+14>>1]=b[p+14>>1]|0;k=c[a+272>>2]|0;m=o+16|0;j=e;e=i;while(1){i=(f|0)<(e|0)?f:e;xd(a,m,j,i);h=i<<17;if((h|0)>0){g=0;e=d;while(1){d=((g&65535)*12|0)>>>16;r=o+(g>>16<<1)|0;s=S(b[19986+(d<<3)>>1]|0,b[r>>1]|0)|0;s=(S(b[19986+(d<<3)+2>>1]|0,b[r+2>>1]|0)|0)+s|0;s=s+(S(b[19986+(d<<3)+4>>1]|0,b[r+4>>1]|0)|0)|0;s=s+(S(b[19986+(d<<3)+6>>1]|0,b[r+6>>1]|0)|0)|0;d=11-d|0;s=s+(S(b[19986+(d<<3)+6>>1]|0,b[r+8>>1]|0)|0)|0;s=s+(S(b[19986+(d<<3)+4>>1]|0,b[r+10>>1]|0)|0)|0;s=s+(S(b[19986+(d<<3)+2>>1]|0,b[r+12>>1]|0)|0)|0;r=(s+(S(b[19986+(d<<3)>>1]|0,b[r+14>>1]|0)|0)>>14)+1>>1;d=e+2|0;b[e>>1]=(r|0)>32767?32767:((r|0)>-32768?r:-32768)&65535;g=g+k|0;if((g|0)>=(h|0))break;else e=d}}f=f-i|0;e=i<<1;if((f|0)<=0)break;e=o+(e<<1)|0;b[o>>1]=b[e>>1]|0;b[o+2>>1]=b[e+2>>1]|0;b[o+4>>1]=b[e+4>>1]|0;b[o+6>>1]=b[e+6>>1]|0;b[o+8>>1]=b[e+8>>1]|0;b[o+10>>1]=b[e+10>>1]|0;b[o+12>>1]=b[e+12>>1]|0;b[o+14>>1]=b[e+14>>1]|0;j=j+(i<<1)|0;e=c[n>>2]|0}s=o+(e<<1)|0;b[p>>1]=b[s>>1]|0;b[p+2>>1]=b[s+2>>1]|0;b[p+4>>1]=b[s+4>>1]|0;b[p+6>>1]=b[s+6>>1]|0;b[p+8>>1]=b[s+8>>1]|0;b[p+10>>1]=b[s+10>>1]|0;b[p+12>>1]=b[s+12>>1]|0;b[p+14>>1]=b[s+14>>1]|0;l=q;return}function vd(a,d,e,f){a=a|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,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,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,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ta=0,ua=0,va=0;M=l;J=a+268|0;g=c[J>>2]|0;K=a+276|0;h=c[K>>2]|0;L=l;l=l+((1*(h+g<<2)|0)+15&-16)|0;n=a+24|0;Ef(L|0,n|0,h<<2|0)|0;o=a+296|0;i=c[o>>2]|0;p=i+4|0;q=c[a+272>>2]|0;r=a+280|0;s=i+6|0;t=i+8|0;u=i+10|0;v=i+12|0;w=i+14|0;x=i+16|0;y=i+18|0;z=i+20|0;A=i+22|0;B=i+24|0;C=i+26|0;D=i+28|0;E=i+30|0;F=i+32|0;G=i+34|0;H=i+36|0;I=i+38|0;while(1){m=(f|0)<(g|0)?f:g;wd(a,L+(h<<2)|0,e,i,m);k=m<<16;g=c[r>>2]|0;switch(c[K>>2]|0){case 18:{if((k|0)>0){j=g<<16>>16;i=g+-1|0;h=0;while(1){N=L+(h>>16<<2)|0;g=(S(h&65535,j)|0)>>16;ba=p+(g*9<<1)|0;ua=c[N>>2]|0;ra=b[ba>>1]|0;ta=S(ra,ua>>16)|0;ua=(S(ra,ua&65535)|0)>>16;ra=c[N+4>>2]|0;pa=b[ba+2>>1]|0;sa=S(pa,ra>>16)|0;ra=(S(pa,ra&65535)|0)>>16;pa=c[N+8>>2]|0;na=b[ba+4>>1]|0;qa=S(na,pa>>16)|0;pa=(S(na,pa&65535)|0)>>16;na=c[N+12>>2]|0;la=b[ba+6>>1]|0;oa=S(la,na>>16)|0;na=(S(la,na&65535)|0)>>16;la=c[N+16>>2]|0;ja=b[ba+8>>1]|0;ma=S(ja,la>>16)|0;la=(S(ja,la&65535)|0)>>16;ja=c[N+20>>2]|0;ha=b[ba+10>>1]|0;ka=S(ha,ja>>16)|0;ja=(S(ha,ja&65535)|0)>>16;ha=c[N+24>>2]|0;fa=b[ba+12>>1]|0;ia=S(fa,ha>>16)|0;ha=(S(fa,ha&65535)|0)>>16;fa=c[N+28>>2]|0;da=b[ba+14>>1]|0;ga=S(da,fa>>16)|0;fa=(S(da,fa&65535)|0)>>16;da=c[N+32>>2]|0;ba=b[ba+16>>1]|0;ea=S(ba,da>>16)|0;da=(S(ba,da&65535)|0)>>16;g=p+((i-g|0)*9<<1)|0;ba=c[N+68>>2]|0;$=b[g>>1]|0;ca=S($,ba>>16)|0;ba=(S($,ba&65535)|0)>>16;$=c[N+64>>2]|0;Z=b[g+2>>1]|0;aa=S(Z,$>>16)|0;$=(S(Z,$&65535)|0)>>16;Z=c[N+60>>2]|0;X=b[g+4>>1]|0;_=S(X,Z>>16)|0;Z=(S(X,Z&65535)|0)>>16;X=c[N+56>>2]|0;V=b[g+6>>1]|0;Y=S(V,X>>16)|0;X=(S(V,X&65535)|0)>>16;V=c[N+52>>2]|0;T=b[g+8>>1]|0;W=S(T,V>>16)|0;V=(S(T,V&65535)|0)>>16;T=c[N+48>>2]|0;Q=b[g+10>>1]|0;U=S(Q,T>>16)|0;T=(S(Q,T&65535)|0)>>16;Q=c[N+44>>2]|0;O=b[g+12>>1]|0;R=S(O,Q>>16)|0;Q=(S(O,Q&65535)|0)>>16;O=c[N+40>>2]|0;va=b[g+14>>1]|0;P=S(va,O>>16)|0;O=(S(va,O&65535)|0)>>16;N=c[N+36>>2]|0;g=b[g+16>>1]|0;N=(ua+ta+sa+ra+qa+pa+oa+na+ma+la+ka+ja+ia+ha+ga+fa+ea+da+ca+ba+aa+$+_+Z+Y+X+W+V+U+T+R+Q+P+O+(S(g,N>>16)|0)+((S(g,N&65535)|0)>>16)>>5)+1>>1;g=d+2|0;b[d>>1]=(N|0)>32767?32767:((N|0)>-32768?N:-32768)&65535;h=h+q|0;if((h|0)>=(k|0)){d=g;break}else d=g}}break}case 24:{if((k|0)>0){h=0;while(1){g=L+(h>>16<<2)|0;va=(c[g+92>>2]|0)+(c[g>>2]|0)|0;$=b[p>>1]|0;aa=S(va>>16,$)|0;$=(S(va&65535,$)|0)>>16;va=(c[g+88>>2]|0)+(c[g+4>>2]|0)|0;ca=b[s>>1]|0;ba=S(va>>16,ca)|0;ca=(S(va&65535,ca)|0)>>16;va=(c[g+84>>2]|0)+(c[g+8>>2]|0)|0;ea=b[t>>1]|0;da=S(va>>16,ea)|0;ea=(S(va&65535,ea)|0)>>16;va=(c[g+80>>2]|0)+(c[g+12>>2]|0)|0;ga=b[u>>1]|0;fa=S(va>>16,ga)|0;ga=(S(va&65535,ga)|0)>>16;va=(c[g+76>>2]|0)+(c[g+16>>2]|0)|0;ia=b[v>>1]|0;ha=S(va>>16,ia)|0;ia=(S(va&65535,ia)|0)>>16;va=(c[g+72>>2]|0)+(c[g+20>>2]|0)|0;ka=b[w>>1]|0;ja=S(va>>16,ka)|0;ka=(S(va&65535,ka)|0)>>16;va=(c[g+68>>2]|0)+(c[g+24>>2]|0)|0;ma=b[x>>1]|0;la=S(va>>16,ma)|0;ma=(S(va&65535,ma)|0)>>16;va=(c[g+64>>2]|0)+(c[g+28>>2]|0)|0;oa=b[y>>1]|0;na=S(va>>16,oa)|0;oa=(S(va&65535,oa)|0)>>16;va=(c[g+60>>2]|0)+(c[g+32>>2]|0)|0;qa=b[z>>1]|0;pa=S(va>>16,qa)|0;qa=(S(va&65535,qa)|0)>>16;va=(c[g+56>>2]|0)+(c[g+36>>2]|0)|0;sa=b[A>>1]|0;ra=S(va>>16,sa)|0;sa=(S(va&65535,sa)|0)>>16;va=(c[g+52>>2]|0)+(c[g+40>>2]|0)|0;ua=b[B>>1]|0;ta=S(va>>16,ua)|0;ua=(S(va&65535,ua)|0)>>16;g=(c[g+48>>2]|0)+(c[g+44>>2]|0)|0;va=b[C>>1]|0;va=($+aa+ba+ca+da+ea+fa+ga+ha+ia+ja+ka+la+ma+na+oa+pa+qa+ra+sa+ta+ua+(S(g>>16,va)|0)+((S(g&65535,va)|0)>>16)>>5)+1>>1;g=d+2|0;b[d>>1]=(va|0)>32767?32767:((va|0)>-32768?va:-32768)&65535;h=h+q|0;if((h|0)>=(k|0)){d=g;break}else d=g}}break}case 36:{if((k|0)>0){h=0;while(1){g=L+(h>>16<<2)|0;va=(c[g+140>>2]|0)+(c[g>>2]|0)|0;O=b[p>>1]|0;P=S(va>>16,O)|0;O=(S(va&65535,O)|0)>>16;va=(c[g+136>>2]|0)+(c[g+4>>2]|0)|0;R=b[s>>1]|0;Q=S(va>>16,R)|0;R=(S(va&65535,R)|0)>>16;va=(c[g+132>>2]|0)+(c[g+8>>2]|0)|0;U=b[t>>1]|0;T=S(va>>16,U)|0;U=(S(va&65535,U)|0)>>16;va=(c[g+128>>2]|0)+(c[g+12>>2]|0)|0;W=b[u>>1]|0;V=S(va>>16,W)|0;W=(S(va&65535,W)|0)>>16;va=(c[g+124>>2]|0)+(c[g+16>>2]|0)|0;Y=b[v>>1]|0;X=S(va>>16,Y)|0;Y=(S(va&65535,Y)|0)>>16;va=(c[g+120>>2]|0)+(c[g+20>>2]|0)|0;_=b[w>>1]|0;Z=S(va>>16,_)|0;_=(S(va&65535,_)|0)>>16;va=(c[g+116>>2]|0)+(c[g+24>>2]|0)|0;aa=b[x>>1]|0;$=S(va>>16,aa)|0;aa=(S(va&65535,aa)|0)>>16;va=(c[g+112>>2]|0)+(c[g+28>>2]|0)|0;ca=b[y>>1]|0;ba=S(va>>16,ca)|0;ca=(S(va&65535,ca)|0)>>16;va=(c[g+108>>2]|0)+(c[g+32>>2]|0)|0;ea=b[z>>1]|0;da=S(va>>16,ea)|0;ea=(S(va&65535,ea)|0)>>16;va=(c[g+104>>2]|0)+(c[g+36>>2]|0)|0;ga=b[A>>1]|0;fa=S(va>>16,ga)|0;ga=(S(va&65535,ga)|0)>>16;va=(c[g+100>>2]|0)+(c[g+40>>2]|0)|0;ia=b[B>>1]|0;ha=S(va>>16,ia)|0;ia=(S(va&65535,ia)|0)>>16;va=(c[g+96>>2]|0)+(c[g+44>>2]|0)|0;ka=b[C>>1]|0;ja=S(va>>16,ka)|0;ka=(S(va&65535,ka)|0)>>16;va=(c[g+92>>2]|0)+(c[g+48>>2]|0)|0;ma=b[D>>1]|0;la=S(va>>16,ma)|0;ma=(S(va&65535,ma)|0)>>16;va=(c[g+88>>2]|0)+(c[g+52>>2]|0)|0;oa=b[E>>1]|0;na=S(va>>16,oa)|0;oa=(S(va&65535,oa)|0)>>16;va=(c[g+84>>2]|0)+(c[g+56>>2]|0)|0;qa=b[F>>1]|0;pa=S(va>>16,qa)|0;qa=(S(va&65535,qa)|0)>>16;va=(c[g+80>>2]|0)+(c[g+60>>2]|0)|0;sa=b[G>>1]|0;ra=S(va>>16,sa)|0;sa=(S(va&65535,sa)|0)>>16;va=(c[g+76>>2]|0)+(c[g+64>>2]|0)|0;ua=b[H>>1]|0;ta=S(va>>16,ua)|0;ua=(S(va&65535,ua)|0)>>16;g=(c[g+72>>2]|0)+(c[g+68>>2]|0)|0;va=b[I>>1]|0;va=(O+P+Q+R+T+U+V+W+X+Y+Z+_+$+aa+ba+ca+da+ea+fa+ga+ha+ia+ja+ka+la+ma+na+oa+pa+qa+ra+sa+ta+ua+(S(g>>16,va)|0)+((S(g&65535,va)|0)>>16)>>5)+1>>1;g=d+2|0;b[d>>1]=(va|0)>32767?32767:((va|0)>-32768?va:-32768)&65535;h=h+q|0;if((h|0)>=(k|0)){d=g;break}else d=g}}break}default:{}}f=f-m|0;h=c[K>>2]|0;g=h<<2;if((f|0)<=1)break;Ef(L|0,L+(m<<2)|0,g|0)|0;e=e+(m<<1)|0;g=c[J>>2]|0;i=c[o>>2]|0}Ef(n|0,L+(m<<2)|0,g|0)|0;l=M;return}function wd(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;if((g|0)<=0)return;j=a+4|0;k=b[f>>1]|0;h=b[f+2>>1]|0;f=0;i=c[a>>2]|0;do{m=(b[e+(f<<1)>>1]<<8)+i|0;c[d+(f<<2)>>2]=m;m=m<<2;l=m>>16;m=m&65532;i=(S(l,k)|0)+(c[j>>2]|0)+((S(m,k)|0)>>16)|0;c[a>>2]=i;c[j>>2]=((S(h,m)|0)>>16)+(S(h,l)|0);f=f+1|0}while((f|0)!=(g|0));return}function xd(a,d,e,f){a=a|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,q=0,r=0,s=0,t=0,u=0,v=0;if((f|0)<=0)return;k=a+4|0;m=a+8|0;o=a+12|0;q=a+16|0;r=a+20|0;g=0;h=c[a>>2]|0;i=c[k>>2]|0;j=c[m>>2]|0;l=c[o>>2]|0;n=c[q>>2]|0;p=c[r>>2]|0;do{u=b[e+(g<<1)>>1]<<10;s=u-h|0;s=(((s&65535)*1746|0)>>>16)+((s>>16)*1746|0)|0;v=s+h|0;h=s+u|0;s=v-i|0;s=(((s&65535)*14986|0)>>>16)+((s>>16)*14986|0)|0;t=s+i|0;i=s+v|0;v=t-j|0;s=((S(v&65535,-26453)|0)>>16)+(S(v>>16,-26453)|0)|0;j=v+t+s|0;t=(s+t>>9)+1>>1;s=g<<1;b[d+(s<<1)>>1]=(t|0)>32767?32767:((t|0)>-32768?t:-32768)&65535;t=u-l|0;t=(((t&65535)*6854|0)>>>16)+((t>>16)*6854|0)|0;v=t+l|0;l=t+u|0;u=v-n|0;u=(((u&65535)*25769|0)>>>16)+((u>>16)*25769|0)|0;t=u+n|0;n=u+v|0;v=t-p|0;u=((S(v&65535,-9994)|0)>>16)+(S(v>>16,-9994)|0)|0;p=v+t+u|0;t=(u+t>>9)+1>>1;b[d+((s|1)<<1)>>1]=(t|0)>32767?32767:((t|0)>-32768?t:-32768)&65535;g=g+1|0}while((g|0)!=(f|0));c[a>>2]=h;c[k>>2]=i;c[m>>2]=j;c[o>>2]=l;c[q>>2]=n;c[r>>2]=p;return}function yd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,h=0.0,i=0.0,j=0.0,k=0,l=0,m=0,n=0,o=0.0,p=0,q=0,r=0,s=0.0,t=0.0;if(!((d|0)!=0&((a|0)!=0&((b|0)>0&(c|0)>0))))return;f=S(c,b)|0;if((f|0)>0){e=0;do{r=a+(e<<2)|0;o=+g[r>>2];p=o>2.0;q=(p?2.0:o)<-2.0;g[r>>2]=p|q?(q?-2.0:2.0):o;e=e+1|0}while((e|0)!=(f|0));q=0}else q=0;do{p=a+(q<<2)|0;r=d+(q<<2)|0;h=+g[r>>2];e=0;do{f=p+((S(e,c)|0)<<2)|0;i=+g[f>>2];j=h*i;if(j>=0.0)break;g[f>>2]=i+i*j;e=e+1|0}while((e|0)<(b|0));o=+g[p>>2];n=0;while(1){a:do if((n|0)<(b|0)){e=n;do{j=+g[p+((S(e,c)|0)<<2)>>2];if(j>1.0|j<-1.0)break a;e=e+1|0}while((e|0)<(b|0))}else e=n;while(0);if((e|0)==(b|0)){h=0.0;break}j=+g[p+((S(e,c)|0)<<2)>>2];h=+F(+j);m=e;while(1){if((m|0)<=0)break;f=m+-1|0;if(!(j*+g[p+((S(f,c)|0)<<2)>>2]>=0.0))break;else m=f}b:do if((e|0)<(b|0)){k=e;i=h;f=e;while(1){h=+g[p+((S(f,c)|0)<<2)>>2];if(!(j*h>=0.0)){h=i;l=f;break b}h=+F(+h);e=h>i;h=e?h:i;e=e?f:k;f=f+1|0;if((f|0)<(b|0)){k=e;i=h}else{k=e;l=f;break}}}else{k=e;l=e}while(0);if(!m)f=j*+g[p>>2]>=0.0;else f=0;h=(h+-1.0)/(h*h);h=h+h*2.4e-07;h=j>0.0?-h:h;if((m|0)<(l|0)){e=m;do{m=p+((S(e,c)|0)<<2)|0;j=+g[m>>2];g[m>>2]=j+j*(h*j);e=e+1|0}while((e|0)!=(l|0))}if((k|0)>1&f?(s=o-+g[p>>2],t=s/+(k|0),(n|0)<(k|0)):0){i=s;e=n;do{i=i-t;n=p+((S(e,c)|0)<<2)|0;j=i+ +g[n>>2];f=j>1.0;m=(f?1.0:j)<-1.0;g[n>>2]=f|m?(m?-1.0:1.0):j;e=e+1|0}while((e|0)!=(k|0))}if((l|0)==(b|0))break;else n=l}g[r>>2]=h;q=q+1|0}while((q|0)!=(c|0));return}function zd(a,b){a=a|0;b=b|0;a=d[a>>0]|0;if(a&128|0){b=(b<<(a>>>3&3)|0)/400|0;return b|0}if((a&96|0)==96){b=(b|0)/((a&8|0?50:100)|0)|0;return b|0}a=a>>>3&3;if((a|0)==3){b=(b*60|0)/1e3|0;return b|0}else{b=(b<<a|0)/100|0;return b|0}return 0}function Ad(e,f,g,h,i,j,k,l){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,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,T=0;if((f|0)<0|(j|0)==0){T=-1;return T|0}if(!f){T=-4;return T|0}T=a[e>>0]|0;n=T&255;do if(!(n&128)){if((n&96|0)==96){n=48e3/((n&8|0?50:100)>>>0)|0;break}n=n>>>3&3;if((n|0)==3)n=2880;else n=(48e3<<n>>>0)/100|0}else n=(48e3<<(n>>>3&3)>>>0)/400|0;while(0);q=e+1|0;s=f+-1|0;a:do switch(T&3){case 0:{E=0;F=1;C=s;D=0;B=q;o=s;u=43;break}case 1:{if(!g)if(!(s&1)){H=(s|0)/2|0;b[j>>1]=H;G=2;I=0;J=q;u=56;break a}else{T=-4;return T|0}else{O=1;Q=2;P=s;R=0;K=s;N=q;u=44}break}case 2:{do if((f|0)>=2){n=a[q>>0]|0;o=n&255;if((n&255)<252){p=1;n=n&255}else{if((f|0)<3)break;p=2;n=(d[e+2>>0]<<2)+o&65535}b[j>>1]=n;o=s-p|0;n=n<<16>>16;if((o|0)<(n|0)){T=-4;return T|0}else{E=0;F=2;C=o-n|0;D=0;B=q+p|0;u=43;break a}}while(0);b[j>>1]=-1;T=-4;return T|0}default:{if((f|0)<2){T=-4;return T|0}p=e+2|0;r=d[q>>0]|0;A=r&63;if((A|0)==0|(S(A,n)|0)>>>0>5760){T=-4;return T|0}f=f+-2|0;if(r&64){n=p;p=0;do{if((f|0)<1){z=-4;u=68;break}x=n;n=n+1|0;x=a[x>>0]|0;y=x<<24>>24==-1;x=y?254:x&255;f=f+-1-x|0;p=x+p|0}while(y);if((u|0)==68)return z|0;if((f|0)<0){T=-4;return T|0}else{w=n;y=p;q=f}}else{w=p;y=0;q=f}x=r>>>7^1;if(!(r&128)){if(g|0){O=x;Q=A;P=s;R=y;K=q;N=w;u=44;break a}p=(q|0)/(A|0)|0;if((S(p,A)|0)!=(q|0)){T=-4;return T|0}f=A+-1|0;if(A>>>0<=1){G=A;H=p;I=y;J=w;u=56;break a}o=p&65535;n=0;while(1){b[j+(n<<1)>>1]=o;n=n+1|0;if((n|0)==(f|0)){E=x;F=A;C=p;D=y;B=w;o=q;u=43;break a}}}u=A+-1|0;if(A>>>0>1){v=q;s=0;t=q;q=w;while(1){r=j+(s<<1)|0;if((t|0)<1){u=34;break}n=a[q>>0]|0;p=n&255;if((n&255)<252){f=1;n=n&255}else{if((t|0)<2){u=34;break}f=2;n=(d[q+1>>0]<<2)+p&65535}b[r>>1]=n;t=t-f|0;n=n<<16>>16;if((n|0)>(t|0)){z=-4;u=68;break}q=q+f|0;v=v-n-f|0;s=s+1|0;if((s|0)>=(u|0)){u=37;break}}if((u|0)==34){b[r>>1]=-1;T=-4;return T|0}else if((u|0)==37){if((v|0)<0)z=-4;else{E=x;F=A;C=v;D=y;B=q;o=t;u=43;break a}return z|0}else if((u|0)==68)return z|0}else{E=x;F=A;C=q;D=y;B=w;o=q;u=43}}}while(0);if((u|0)==43)if(!g){G=F;H=C;I=D;J=B;u=56}else{O=E;Q=F;P=C;R=D;K=o;N=B;u=44}do if((u|0)==44){n=j+(Q<<1)+-2|0;do if((K|0)>=1){m=a[N>>0]|0;if((m&255)<252){r=1;q=m&255;break}if((K|0)>=2){r=2;q=(d[N+1>>0]<<2)+(m&255)&65535}else{r=-1;q=-1}}else{r=-1;q=-1}while(0);b[n>>1]=q;n=K-r|0;p=Q+-1|0;f=j+(p<<1)|0;o=q<<16>>16;if(q<<16>>16<0|(o|0)>(n|0)){T=-4;return T|0}m=N+r|0;if(!O){if((o+r|0)>(P|0))z=-4;else{L=Q;M=R;break}return z|0}if((S(o,Q)|0)>(n|0)){T=-4;return T|0}if((Q|0)>1?(b[j>>1]=q,(p|0)!=1):0){n=1;do{b[j+(n<<1)>>1]=b[f>>1]|0;n=n+1|0}while((n|0)!=(p|0));L=Q;M=R}else{L=Q;M=R}}else if((u|0)==56)if((H|0)>1275){T=-4;return T|0}else{b[j+(G+-1<<1)>>1]=H;L=G;M=I;m=J;break}while(0);if(k|0)c[k>>2]=m-e;if((L|0)>0)if(!i){n=0;do{m=m+(b[j+(n<<1)>>1]|0)|0;n=n+1|0}while((n|0)!=(L|0))}else{n=0;do{c[i+(n<<2)>>2]=m;m=m+(b[j+(n<<1)>>1]|0)|0;n=n+1|0}while((n|0)!=(L|0))}if(l|0)c[l>>2]=M-e+m;if(!h){T=L;return T|0}a[h>>0]=T;T=L;return T|0}function Bd(a){a=a|0;var b=0,d=0;d=l;l=l+16|0;b=d;if((a+-1|0)>>>0>1){b=0;l=d;return b|0}if(md(b)|0){b=0;l=d;return b|0}c[b>>2]=(c[b>>2]|0)+3&-4;a=rc(a)|0;b=a+88+(c[b>>2]|0)|0;l=d;return b|0}function Cd(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=l;l=l+16|0;g=h;e=h+8|0;f=h+4|0;a:do if((b|0)<16e3)if((b|0)<12e3){switch(b|0){case 8e3:break a;default:e=-1}l=h;return e|0}else{switch(b|0){case 12e3:break a;default:e=-1}l=h;return e|0}else{if((b|0)<24e3){switch(b|0){case 16e3:break a;default:e=-1}l=h;return e|0}if((b|0)<48e3){switch(b|0){case 24e3:break a;default:e=-1}l=h;return e|0}else{switch(b|0){case 48e3:break a;default:e=-1}l=h;return e|0}}while(0);if((d+-1|0)>>>0>1){g=-1;l=h;return g|0}if(!(md(e)|0)){c[e>>2]=(c[e>>2]|0)+3&-4;i=rc(d)|0;e=i+88+(c[e>>2]|0)|0}else e=0;tf(a|0,0,e|0)|0;if(md(f)|0){i=-3;l=h;return i|0}e=(c[f>>2]|0)+3&-4;c[f>>2]=e;c[a+4>>2]=88;e=e+88|0;c[a>>2]=e;e=a+e|0;c[a+8>>2]=d;c[a+48>>2]=d;c[a+12>>2]=b;c[a+24>>2]=b;c[a+16>>2]=d;if(nd(a+88|0)|0){i=-3;l=h;return i|0}if(sc(e,b,d)|0){i=-3;l=h;return i|0}c[g>>2]=0;tc(e,10016,g)|0;c[a+60>>2]=0;c[a+64>>2]=(b|0)/400|0;c[a+44>>2]=0;i=0;l=h;return i|0}function Dd(e,f,h,i,j,k,m,n,o){e=e|0;f=f|0;h=h|0;i=i|0;j=j|0;k=k|0;m=m|0;n=n|0;o=o|0;var 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+112|0;t=C;r=C+104|0;B=C+8|0;if(k>>>0>1){j=-1;l=C;return j|0}s=(k|0)!=0;k=(h|0)==0;q=(f|0)==0;if(q|(k|s)?(j|0)%((c[e+12>>2]|0)/400|0|0)|0|0:0){j=-1;l=C;return j|0}if(q|k){k=e+8|0;p=0;do{q=Ed(e,0,0,i+((S(c[k>>2]|0,p)|0)<<2)|0,j-p|0,0)|0;B=(q|0)<0;p=(B?0:q)+p|0;if(B){y=q;A=43;break}}while((p|0)<(j|0));if((A|0)==43){l=C;return y|0}c[e+72>>2]=p;j=p;l=C;return j|0}if((h|0)<0){j=-1;l=C;return j|0}k=d[f>>0]|0;w=(k&128|0)==0;q=(k&96|0)==96;x=w?(q?1001:1e3):1002;do if(w)if(q){u=k>>>4&1|1104;break}else{u=(k>>>5&3)+1101|0;break}else{u=k>>>5&3;u=(u|0)==0?1101:u+1102|0}while(0);k=e+12|0;v=zd(f,c[k>>2]|0)|0;w=((a[f>>0]&4)>>>2)+1|0;n=Ad(f,h,m,r,0,B,t,n)|0;if((n|0)<0){j=n;l=C;return j|0}q=f+(c[t>>2]|0)|0;if(!s){if((S(n,v)|0)>(j|0)){j=-2;l=C;return j|0}c[e+56>>2]=x;c[e+52>>2]=u;c[e+64>>2]=v;c[e+48>>2]=w;a:do if((n|0)>0){m=e+8|0;r=0;p=0;while(1){h=B+(r<<1)|0;k=Ed(e,q,b[h>>1]|0,i+((S(c[m>>2]|0,p)|0)<<2)|0,j-p|0,0)|0;if((k|0)<0){y=k;break}p=k+p|0;r=r+1|0;if((r|0)>=(n|0))break a;else q=q+(b[h>>1]|0)|0}l=C;return y|0}else p=0;while(0);c[e+72>>2]=p;if(!o){g[e+80>>2]=0.0;g[e+76>>2]=0.0;j=p;l=C;return j|0}else{yd(i,p,c[e+8>>2]|0,e+76|0);j=p;l=C;return j|0}}if(!((x|0)==1002|(v|0)>(j|0))?(z=e+56|0,(c[z>>2]|0)!=1002):0){f=e+72|0;m=c[f>>2]|0;n=j-v|0;do if(!n)p=e+8|0;else{if(!((n|0)%((c[k>>2]|0)/400|0|0)|0)){r=e+8|0;k=0;while(1){h=Ed(e,0,0,i+((S(c[r>>2]|0,k)|0)<<2)|0,n-k|0,0)|0;o=(h|0)<0;k=(o?0:h)+k|0;if(o){p=h;break}if((k|0)>=(n|0)){A=30;break}}if((A|0)==30){c[f>>2]=k;p=k}if((p|0)>=0){p=r;break}}else p=-1;c[f>>2]=m;j=p;l=C;return j|0}while(0);c[z>>2]=x;c[e+52>>2]=u;c[e+64>>2]=v;c[e+48>>2]=w;p=Ed(e,q,b[B>>1]|0,i+((S(c[p>>2]|0,n)|0)<<2)|0,v,1)|0;if((p|0)<0){j=p;l=C;return j|0}c[f>>2]=j;l=C;return j|0}if((j|0)%((c[k>>2]|0)/400|0|0)|0|0){j=-1;l=C;return j|0}k=e+8|0;p=0;do{q=Ed(e,0,0,i+((S(c[k>>2]|0,p)|0)<<2)|0,j-p|0,0)|0;B=(q|0)<0;p=(B?0:q)+p|0;if(B){y=q;A=43;break}}while((p|0)<(j|0));if((A|0)==43){l=C;return y|0}c[e+72>>2]=p;j=p;l=C;return j|0}
function ya(a){a=a|0;var b=0;b=l;l=l+a|0;l=l+15&-16;return b|0}function za(){return l|0}function Aa(a){a=a|0;l=a}function Ba(a,b){a=a|0;b=b|0;l=a;m=b}function Ca(a,b){a=a|0;b=b|0;if(!o){o=a;p=b}}function Da(a){a=a|0;D=a}function Ea(){return D|0}function Fa(b,e,f){b=b|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,q=0;if(f>>>0<8){p=-132;return p|0}if(Le(e,22206,8)|0){p=-132;return p|0}if(f>>>0<9){p=-133;return p|0}h=a[e+8>>0]|0;p=h&255;if((h&255)>15){p=-134;return p|0}if(f>>>0<19){p=-133;return p|0}g=a[e+9>>0]|0;k=g&255;l=(d[e+11>>0]|0)<<8|(d[e+10>>0]|0);m=(d[e+13>>0]|0)<<8|(d[e+12>>0]|0)|(d[e+14>>0]|0)<<16|(d[e+15>>0]|0)<<24;n=((d[e+17>>0]|0)<<8|(d[e+16>>0]|0))<<16>>16;i=a[e+18>>0]|0;o=i&255;a:do switch(i<<24>>24){case 0:{if((g+-1&255)>1){p=-133;return p|0}if(f>>>0>19&(h&255)<2){p=-133;return p|0}if(!b){p=0;return p|0}else{a[b+32>>0]=0;a[b+33>>0]=1;f=1;g=k+-1|0;break a}}case 1:{if((g+-1&255)>7){p=-133;return p|0}g=k+21|0;if(g>>>0>f>>>0){p=-133;return p|0}if((h&255)<2&g>>>0<f>>>0){p=-133;return p|0}h=a[e+19>>0]|0;f=h&255;if(!(h<<24>>24)){p=-133;return p|0}i=a[e+20>>0]|0;g=i&255;if((i&255)>(h&255)){p=-133;return p|0}i=g+f|0;h=0;do{q=a[e+(h+21)>>0]|0;h=h+1|0;if(!(q<<24>>24==-1|(q&255)>>>0<i>>>0)){g=-133;j=23;break}}while((h|0)<(k|0));if((j|0)==23)return g|0;if(!b){q=0;return q|0}else{Ef(b+32|0,e+21|0,k|0)|0;break a}}case -1:{q=-130;return q|0}default:{q=-133;return q|0}}while(0);c[b>>2]=p;c[b+4>>2]=k;c[b+8>>2]=l;c[b+12>>2]=m;c[b+16>>2]=n;c[b+20>>2]=o;c[b+24>>2]=f;c[b+28>>2]=g;q=0;return q|0}function Ga(a){a=a|0;var b=0,d=0,e=0;b=c[a>>2]|0;d=((b|0)!=0&1)+(c[a+8>>2]|0)|0;if((d|0)>0)do{e=d;d=d+-1|0;lf(c[b+(d<<2)>>2]|0);b=c[a>>2]|0}while((e|0)>1);lf(b);lf(c[a+4>>2]|0);lf(c[a+12>>2]|0);return}function Ha(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=l;l=l+16|0;f=g;if(!a){f=Ia(0,b,d)|0;l=g;return f|0};c[f>>2]=0;c[f+4>>2]=0;c[f+8>>2]=0;c[f+12>>2]=0;e=Ia(f,b,d)|0;if((e|0)<0){b=c[f>>2]|0;d=((b|0)!=0&1)+(c[f+8>>2]|0)|0;if((d|0)>0)do{a=d;d=d+-1|0;lf(c[b+(d<<2)>>2]|0);b=c[f>>2]|0}while((a|0)>1);lf(b);lf(c[f+4>>2]|0);lf(c[f+12>>2]|0)}else{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]}f=e;l=g;return f|0}function Ia(b,e,f){b=b|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,q=0,r=0;if(f>>>0<8){b=-132;return b|0}if(Le(e,22215,8)|0){b=-132;return b|0}if(f>>>0<16){b=-133;return b|0}i=(d[e+9>>0]|0)<<8|(d[e+8>>0]|0)|(d[e+10>>0]|0)<<16|(d[e+11>>0]|0)<<24;e=e+12|0;f=f+-12|0;if(f>>>0<i>>>0){b=-133;return b|0}m=(b|0)!=0;do if(m){if((i|0)!=-1?(h=kf(i+1|0)|0,h|0):0){Ef(h|0,e|0,i|0)|0;a[h+i>>0]=0;c[b+12>>2]=h;break}c[b+12>>2]=0;b=-129;return b|0}while(0);h=e+i|0;e=f-i|0;if(e>>>0<4){b=-133;return b|0}o=(d[h+1>>0]|0)<<8|(d[h>>0]|0)|(d[h+2>>0]|0)<<16|(d[h+3>>0]|0)<<24;f=h+4|0;l=e+-4|0;if(o>>>0>l>>>2>>>0){b=-133;return b|0}if(o>>>0>2147483646){b=-129;return b|0}do if(m){j=o+1|0;k=j<<2;if((j&1073741823|0)!=(j|0)){b=-129;return b|0}j=c[b+8>>2]|0;h=b+4|0;e=c[h>>2]|0;if(!e)i=0;else i=c[e+(j<<2)>>2]|0;e=mf(e,k)|0;if(!e){b=-129;return b|0}c[e+(o<<2)>>2]=i;c[h>>2]=e;e=c[b>>2]|0;if(!e)h=0;else h=c[e+(j<<2)>>2]|0;e=mf(e,k)|0;if(!e){b=-129;return b|0}else{c[e+(o<<2)>>2]=h;c[b>>2]=e;break}}while(0);a:do if((o|0)>0){j=b+4|0;k=b+8|0;if(!m){i=0;e=l;while(1){if((o-i|0)>>>0>e>>>2>>>0){e=-133;f=40;break}h=(d[f+1>>0]|0)<<8|(d[f>>0]|0)|(d[f+2>>0]|0)<<16|(d[f+3>>0]|0)<<24;e=e+-4|0;if(e>>>0<h>>>0){e=-133;f=40;break}if((h|0)<0){e=-129;f=40;break}f=f+4+h|0;e=e-h|0;i=i+1|0;if((o|0)<=(i|0)){q=f;r=e;break a}}if((f|0)==40)return e|0}else{p=0;g=f;n=l}while(1){if((o-p|0)>>>0>n>>>2>>>0){e=-133;f=40;break}h=(d[g+1>>0]|0)<<8|(d[g>>0]|0)|(d[g+2>>0]|0)<<16|(d[g+3>>0]|0)<<24;g=g+4|0;f=n+-4|0;if(f>>>0<h>>>0){e=-133;f=40;break}if((h|0)<0){e=-129;f=40;break}e=kf(h+1|0)|0;if(!e)e=0;else{Ef(e|0,g|0,h|0)|0;a[e+h>>0]=0}c[(c[b>>2]|0)+(p<<2)>>2]=e;if(!(c[(c[b>>2]|0)+(p<<2)>>2]|0)){e=-129;f=40;break}c[(c[j>>2]|0)+(p<<2)>>2]=h;p=p+1|0;c[k>>2]=p;g=g+h|0;e=f-h|0;if((o|0)<=(p|0)){q=g;r=e;break a}else n=e}if((f|0)==40)return e|0}else{q=f;r=l}while(0);if(!r){b=0;return b|0}if(!(a[q>>0]&1)){b=0;return b|0}if((r|0)<0){b=-129;return b|0}e=kf(r)|0;c[(c[b>>2]|0)+(o<<2)>>2]=e;e=c[(c[b>>2]|0)+(o<<2)>>2]|0;if(!e){b=-129;return b|0}Ef(e|0,q|0,r|0)|0;c[(c[b+4>>2]|0)+(o<<2)>>2]=r;b=0;return b|0}function Ja(b,c,d){b=b|0;c=c|0;d=d|0;b=Pa(b,d,c)|0;if(b|0){d=b;return d|0}d=61-(a[d+c>>0]|0)|0;return d|0}function Ka(a,b){a=a|0;b=b|0;var d=0,e=0;d=c[a+8>>2]|0;e=c[a+4>>2]|0;if(!e){c[b>>2]=0;e=0;return e|0}e=c[e+(d<<2)>>2]|0;c[b>>2]=e;if((e|0)<=0){e=0;return e|0}e=c[(c[a>>2]|0)+(d<<2)>>2]|0;return e|0}function La(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;k=c[b>>2]|0;j=c[b+8>>2]|0;if((j|0)>0)i=0;else{l=-1;return l|0}a:while(1){b=k+(i<<2)|0;e=c[b>>2]|0;b:do if((Pa(22224,e,15)|0)==0?(a[e+15>>0]|0)==61:0){b=c[b>>2]|0;e=b+16|0;switch(a[e>>0]|0){case 45:{h=-1;e=b+17|0;break}case 43:{h=0;e=b+17|0;break}default:h=0}b=a[e>>0]|0;if((b+-48&255)<10){g=32767-h|0;f=0;while(1){f=(b<<24>>24)+-48+(f*10|0)|0;e=e+1|0;if((f|0)>(g|0))break b;b=a[e>>0]|0;if((b+-48&255)>=10){e=f;break}}}else e=0;if(!(b<<24>>24))break a}while(0);i=i+1|0;if((i|0)>=(j|0)){b=-1;l=14;break}}if((l|0)==14)return b|0;c[d>>2]=e+h^h;l=0;return l|0}function Ma(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;k=c[b>>2]|0;j=c[b+8>>2]|0;if((j|0)>0)i=0;else{l=-1;return l|0}a:while(1){b=k+(i<<2)|0;e=c[b>>2]|0;b:do if((Pa(22240,e,15)|0)==0?(a[e+15>>0]|0)==61:0){b=c[b>>2]|0;e=b+16|0;switch(a[e>>0]|0){case 45:{h=-1;e=b+17|0;break}case 43:{h=0;e=b+17|0;break}default:h=0}b=a[e>>0]|0;if((b+-48&255)<10){g=32767-h|0;f=0;while(1){f=(b<<24>>24)+-48+(f*10|0)|0;e=e+1|0;if((f|0)>(g|0))break b;b=a[e>>0]|0;if((b+-48&255)>=10){e=f;break}}}else e=0;if(!(b<<24>>24))break a}while(0);i=i+1|0;if((i|0)>=(j|0)){b=-1;l=14;break}}if((l|0)==14)return b|0;c[d>>2]=e+h^h;l=0;return l|0}function Na(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,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0;f=Pa(27623,e,22)|0;if(!f)f=61-(a[e+22>>0]|0)|0;n=(f|0)==0?e+23|0:e;f=he(n)|0;if(f&3|0){D=-132;return D|0}o=f>>>2;e=o*3|0;if(e>>>0<32){D=-132;return D|0}q=(((a[n+(f+-1)>>0]|0)==61)<<31>>31)+e+(((a[n+(f+-2)>>0]|0)==61)<<31>>31)|0;if(q>>>0<32){D=-132;return D|0}B=kf(q+1|0)|0;if(!B){D=-129;return D|0}a:do if(!o){f=0;e=0;j=0;k=0;l=0;m=0;n=0;o=0;A=22}else{l=0;do{k=l<<2;m=l*3|0;f=a[n+k>>0]|0;e=f&255;b:do switch(f<<24>>24){case 43:{j=62;break}case 47:{j=63;break}default:{if((f+-48&255)<10){j=e+4|0;break b}if((f+-97&255)<26){j=e+-71|0;break b}if((f+-65&255)>=26)if(f<<24>>24==61&m>>>0>q>>>0){j=0;break b}else{g=-132;e=0;f=0;break a}else{j=e+-65|0;break b}}}while(0);f=a[n+(k|1)>>0]|0;e=f&255;c:do switch(f<<24>>24){case 43:{f=62;break}case 47:{f=63;break}default:{if((f+-48&255)<10){f=e+4|0;break c}if((f+-97&255)<26){f=e+-71|0;break c}if((f+-65&255)>=26)if((m+1|0)>>>0>q>>>0&f<<24>>24==61){f=0;break c}else{g=-132;e=0;f=0;break a}else{f=e+-65|0;break c}}}while(0);j=f|j<<6;f=a[n+(k|2)>>0]|0;e=f&255;d:do switch(f<<24>>24){case 43:{f=62;break}case 47:{f=63;break}default:{if((f+-48&255)<10){f=e+4|0;break d}if((f+-97&255)<26){f=e+-71|0;break d}if((f+-65&255)>=26)if((m+2|0)>>>0>q>>>0&f<<24>>24==61){f=0;break d}else{g=-132;e=0;f=0;break a}else{f=e+-65|0;break d}}}while(0);j=f|j<<6;f=a[n+(k|3)>>0]|0;e=f&255;e:do switch(f<<24>>24){case 43:{f=62;break}case 47:{f=63;break}default:{if((f+-48&255)<10){f=e+4|0;break e}if((f+-97&255)<26){f=e+-71|0;break e}if((f+-65&255)>=26)if((m+3|0)>>>0>q>>>0&f<<24>>24==61){f=0;break e}else{g=-132;e=0;f=0;break a}else{f=e+-65|0;break e}}}while(0);f=f|j<<6;a[B+m>>0]=f>>>16;e=m+1|0;if(e>>>0<q>>>0?(a[B+e>>0]=f>>>8,p=m+2|0,p>>>0<q>>>0):0)a[B+p>>0]=f;l=l+1|0}while(l>>>0<o>>>0);f=a[B+3>>0]|0;e=a[B+2>>0]|0;j=a[B+1>>0]|0;k=a[B>>0]|0;l=a[B+7>>0]|0;m=a[B+6>>0]|0;n=a[B+5>>0]|0;o=a[B+4>>0]|0;A=22}while(0);f:do if((A|0)==22){z=(e&255)<<8|f&255|(j&255)<<16|(k&255)<<24;m=(m&255)<<8|l&255|(n&255)<<16|(o&255)<<24;f=q+-32|0;if(f>>>0>=m>>>0){e=kf(m+1|0)|0;if(e){Ef(e|0,B+8|0,m|0)|0;a[e+m>>0]=0;j=B+(m+8)|0;j=d[j+2>>0]<<8|d[j+3>>0]|d[j+1>>0]<<16|d[j>>0]<<24;k=m+12|0;if(j>>>0<=(f-m|0)>>>0){f=kf(j+1|0)|0;if(f){Ef(f|0,B+k|0,j|0)|0;a[f+j>>0]=0;j=j+k|0;x=B+j|0;x=d[x+2>>0]<<8|d[x+3>>0]|d[x+1>>0]<<16|d[x>>0]<<24;w=B+(j+4)|0;w=d[w+2>>0]<<8|d[w+3>>0]|d[w+1>>0]<<16|d[w>>0]<<24;v=B+(j+8)|0;v=d[v+2>>0]<<8|d[v+3>>0]|d[v+1>>0]<<16|d[v>>0]<<24;s=B+(j+12)|0;s=d[s+2>>0]<<8|d[s+3>>0]|d[s+1>>0]<<16|d[s>>0]<<24;p=w|x;k=(p|0)==0;if(!(((x|0)==0|(w|0)==0|(v|0)==0)&(v|p|s|0)!=0)?(D=B+(j+16)|0,D=d[D+2>>0]<<8|d[D+3>>0]|d[D+1>>0]<<16|d[D>>0]<<24,C=j+20|0,D>>>0<=(q-C|0)>>>0):0){l=D+C|0;g:do switch(m|0){case 3:{if(!(fe(e,22256)|0)){if(!((z|0)!=1|k)?(x|0)!=32|(w|0)!=32:0){g=-132;break f}a[B+l>>0]=0;l=l+1|0;m=0;k=s;j=v;i=w;h=x}else{j=-1;k=s;g=v;i=w;h=x;A=92}break}case 10:{if(((((Pa(e,22260,10)|0)==0?(g=B+C|0,D>>>0>10):0)?(Le(g,22271,4)|0)==0:0)?(i=a[g+4>>0]|0,h=a[g+5>>0]|0,((i&255)<<8|h&255)>>>0>15):0)?(Le(g+6|0,22326,5)|0)==0:0)A=55;else{j=-1;k=s;g=v;i=w;h=x;A=92}break}case 9:{if(!(Pa(e,22276,9)|0)){if(D>>>0<=7){j=-1;k=s;g=v;i=w;h=x;A=92;break g}g=B+C|0;if(!(Le(g,22286,8)|0)){A=71;break g}else{j=-1;k=s;g=v;i=w;h=x;A=92;break g}}if((Pa(e,22295,9)|0)==0?(r=B+C|0,D>>>0>5):0)if((Le(r,22305,6)|0)!=0?(Le(r,22312,6)|0)!=0:0){j=-1;k=s;g=v;i=w;h=x;A=92}else{g=r;A=86}else{j=-1;k=s;g=v;i=w;h=x;A=92}break}case 0:{A=45;break}case 6:{if(!(Pa(e,22319,6)|0))A=45;else{j=-1;k=s;g=v;i=w;h=x;A=92}break}default:{j=-1;k=s;g=v;i=w;h=x;A=92}}while(0);do if((A|0)==45){g=B+C|0;if(D>>>0>10)if(((Le(g,22271,4)|0)==0?(t=a[g+4>>0]|0,u=a[g+5>>0]|0,((t&255)<<8|u&255)>>>0>15):0)?(Le(g+6|0,22326,5)|0)==0:0){i=t;h=u;A=55;break}else A=50;else if(D>>>0<=7){if(D>>>0<=5){j=-1;k=s;g=v;i=w;h=x;A=92;break}}else A=50;if((A|0)==50?(Le(g,22286,8)|0)==0:0){A=71;break}if((Le(g,22305,6)|0)!=0?(Le(g,22312,6)|0)!=0:0){j=-1;k=s;g=v;i=w;h=x;A=92}else A=86}while(0);h:do if((A|0)==55)if(((Le(g,22271,4)|0)==0?(y=B+C|0,((i&255)<<8|h&255)>>>0>15):0)?(Le(y+6|0,22326,5)|0)==0:0){g=2;while(1){i:do if(g>>>0<D>>>0)do{if((a[y+g>>0]|0)==-1)break i;g=g+1|0}while(g>>>0<D>>>0);while(0);while(1){h=g+1|0;i=a[y+g>>0]|0;if(g>>>0<D>>>0&i<<24>>24==-1)g=h;else break}if(D>>>0<=h>>>0|(i+40&255)<3){j=1;k=s;g=v;i=w;h=x;A=92;break h}if((i&-8)<<24>>24==-48){g=h;continue}j=D-h|0;if(j>>>0<2){j=1;k=s;g=v;i=w;h=x;A=92;break h}k=d[y+h>>0]<<8|d[y+(g+2)>>0];if(k>>>0<2|j>>>0<k>>>0){j=1;k=s;g=v;i=w;h=x;A=92;break h}if(i<<24>>24==-64)break;if(!((i+63&255)>14|(i&3)==0))break;g=k+h|0}if(k>>>0>7){j=1;k=0;i=d[y+(g+4)>>0]<<8|d[y+(g+5)>>0];h=d[y+(g+6)>>0]<<8|d[y+(g+7)>>0];g=S(d[y+(g+8)>>0]|0,d[y+(g+3)>>0]|0)|0;A=91}else{j=1;k=s;g=v;i=w;h=x;A=92}}else{j=1;k=s;g=v;i=w;h=x;A=92}else if((A|0)==71)if((D+-8|0)>>>0>11&(Le(g,22286,8)|0)==0){m=D+-12|0;n=B+C|0;j=8;k=-1;p=0;i=0;h=0;while(1){g=n+j|0;o=d[g+2>>0]<<8|d[g+3>>0]|d[g+1>>0]<<16|d[g>>0]<<24;if(o>>>0>(m-j|0)>>>0){j=k;g=p;A=90;break}if((o|0)==13?(Le(g+4|0,22331,4)|0)==0:0){h=g+8|0;h=d[h+2>>0]<<8|d[h+3>>0]|d[h+1>>0]<<16|d[h>>0]<<24;i=g+12|0;i=d[i+2>>0]<<8|d[i+3>>0]|d[i+1>>0]<<16|d[i>>0]<<24;k=a[n+(j+17)>>0]|0;if(k<<24>>24==3){k=1;g=24}else{A=77;break}}else if((k|0)>0?(Le(g+4|0,22336,4)|0)==0:0){A=84;break}else g=p;j=j+12+o|0;if((D-j|0)>>>0>11)p=g;else{j=k;A=90;break}}if((A|0)==77){g=d[n+(j+16)>>0]|0;switch(k<<24>>24){case 0:break;case 2:{g=g*3|0;break}case 4:{g=g<<1;break}case 6:{g=g<<2;break}default:{j=2;k=0;g=p;A=91;break h}}j=2;k=0;A=91;break}else if((A|0)==84){j=2;k=(o>>>0)/3|0;g=p;A=91;break}else if((A|0)==90)if((j|0)>-1){j=2;k=0;A=91;break}else{j=2;k=s;g=v;i=w;h=x;A=92;break}}else{j=2;k=s;g=v;i=w;h=x;A=92}else if((A|0)==86){if(!(Le(g,22305,6)|0))g=1;else g=(Le(g,22312,6)|0)==0;if(D>>>0>13&g){j=3;k=1<<((a[B+C+10>>0]&7)+1&255);i=d[B+C+9>>0]<<8|d[B+C+8>>0];h=d[B+C+7>>0]<<8|d[B+C+6>>0];g=24;A=91}else{j=3;k=s;g=v;i=w;h=x;A=92}}while(0);if((A|0)==91)A=92;if((A|0)==92)if((z|0)==1)if((j|0)!=2|(h|0)!=32|(i|0)!=32){g=-132;break}else{m=2;j=g;i=32;h=32}else{m=j;j=g}A=l-C|0;Ff(B|0,B+C|0,A|0)|0;g=mf(B,A)|0;if((A|0)!=0&(g|0)==0)g=-129;else{c[b>>2]=z;c[b+4>>2]=e;c[b+8>>2]=f;c[b+12>>2]=h;c[b+16>>2]=i;c[b+20>>2]=j;c[b+24>>2]=k;c[b+28>>2]=D;c[b+32>>2]=g;c[b+36>>2]=m;D=0;return D|0}}else g=-132}else{g=-129;f=0}}else{g=-132;f=0}}else{g=-129;e=0;f=0}}else{g=-132;e=0;f=0}}while(0);lf(f);lf(e);lf(B);D=g;return D|0}function Oa(a){a=a|0;lf(c[a+8>>2]|0);lf(c[a+4>>2]|0);lf(c[a+32>>2]|0);return}function Pa(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;if((d|0)>0)f=0;else{d=0;return d|0}while(1){i=a[b+f>>0]|0;h=i<<24>>24;g=a[c+f>>0]|0;e=g<<24>>24;e=((i+-97&255)<26?h+-32|0:h)-((g+-97&255)<26?e+-32|0:e)|0;f=f+1|0;if(e|0){f=4;break}if((f|0)>=(d|0)){e=0;f=4;break}}if((f|0)==4)return e|0;return 0}function Qa(a,b,d,e,f){a=a|0;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,o=0,p=0,q=0,r=0;p=l;l=l+16|0;n=p;o=kf(9024)|0;if(!o)b=-129;else{tf(o|0,0,9024)|0;h=o+56|0;c[h>>2]=-1;c[h+4>>2]=-1;h=o+16|0;c[h>>2]=a;c[o>>2]=c[b>>2];c[o+4>>2]=c[b+4>>2];c[o+8>>2]=c[b+8>>2];c[o+12>>2]=c[b+12>>2];a:do if(c[o>>2]|0){g=o+64|0;yb(g)|0;if(e|0){Ef(Ab(g,e)|0,d|0,e|0)|0;Bb(g,e)|0}b=c[b+4>>2]|0;if(b){m=(wa[b&1](a,0,0,1)|0)!=-1;b=m&1;if(m){g=c[o+8>>2]|0;if(!g){b=-131;break}m=ta[g&3](c[h>>2]|0)|0;if((m|0)==(e|0)&(D|0)==0)e=1;else{b=-131;break}}else e=0}else{e=0;b=0}c[o+20>>2]=b;i=o+28|0;c[i>>2]=kf(352)|0;vb(o+136|0,-1)|0;b=c[i>>2]|0;j=o+40|0;k=o+32|0;m=o+36|0;b=Ra(o,b+44|0,b+332|0,j,k,m,0)|0;if((b|0)>=0){g=o+24|0;d=o+48|0;a=o+472|0;h=o+96|0;b:do if(e){c[g>>2]=1;b=c[i>>2]|0;j=b;c[j>>2]=0;c[j+4>>2]=0;j=d;k=c[j+4>>2]|0;m=b+8|0;c[m>>2]=c[j>>2];c[m+4>>2]=k;m=b+24|0;c[m>>2]=-1;c[m+4>>2]=-1;c[b+40>>2]=c[a>>2];b=Sa(o,b,n)|0}else while(1){c[g>>2]=1;b=c[i>>2]|0;r=b;c[r>>2]=0;c[r+4>>2]=0;r=d;q=c[r+4>>2]|0;e=b+8|0;c[e>>2]=c[r>>2];c[e+4>>2]=q;e=b+24|0;c[e>>2]=-1;c[e+4>>2]=-1;c[b+40>>2]=c[a>>2];b=Sa(o,b,n)|0;if((b|0)<1)break b;Ga((c[i>>2]|0)+332|0);c[g>>2]=0;c[h>>2]=(c[h>>2]|0)+1;b=c[i>>2]|0;b=Ra(o,b+44|0,b+332|0,j,k,m,n)|0;if((b|0)<0)break a}while(0);if((b|0)>-1){c[o+92>>2]=1;if(!f){r=o;l=p;return r|0}c[f>>2]=0;r=o;l=p;return r|0}}}else b=-128;while(0);c[o+12>>2]=0;Ta(o);lf(o)}if(!f){r=0;l=p;return r|0}c[f>>2]=b;r=0;l=p;return r|0}function Ra(b,d,e,f,g,h,i){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=l;l=l+48|0;t=u;j=u+32|0;if(!i){q=b+48|0;p=c[q>>2]|0;q=c[q+4>>2]|0;r=(q|0)<2147483647|(q|0)==2147483647&p>>>0<4294901759;q=sf(p|0,q|0,65536,0)|0;Ua(b,j,r?q:-1,r?D:2147483647)|0;if((D|0)<0){t=-132;l=u;return t|0}}else j=i;r=b+92|0;c[r>>2]=2;a:do if(!f){m=b+136|0;k=t+4|0;n=b+48|0;while(1){if(!(sb(j)|0)){o=t;s=27;break a}do if((c[r>>2]|0)<3?(Fb(m,ub(j)|0)|0,Db(m,j)|0,(Gb(m,t)|0)>0):0){i=Fa(d,c[t>>2]|0,c[k>>2]|0)|0;if((i|0)<=-1)if((i|0)==-132)break;else break a;else{c[r>>2]=3;break}}while(0);h=n;f=c[h>>2]|0;h=c[h+4>>2]|0;g=(h|0)<2147483647|(h|0)==2147483647&f>>>0<4294901759;h=sf((g?f:-65537)|0,(g?h:2147483647)|0,65536,0)|0;Ua(b,j,h,D)|0;if((D|0)<0){s=26;break}}}else{c[g>>2]=0;m=b+136|0;k=t+4|0;n=b+48|0;while(1){if(!(sb(j)|0)){o=t;s=27;break a}o=c[f>>2]|0;p=c[g>>2]|0;q=ub(j)|0;if((p|0)>0){i=0;do{if((c[o+(i<<2)>>2]|0)==(q|0)){i=-133;break a}i=i+1|0}while((i|0)<(p|0))}p=ub(j)|0;i=c[f>>2]|0;q=c[g>>2]|0;o=c[h>>2]|0;if((q|0)>=(o|0)){if((o|0)>268435455){i=-129;break a}o=o<<1|1;i=mf(i,o<<2)|0;if(!i){i=-129;break a}}c[i+(q<<2)>>2]=p;c[f>>2]=i;c[g>>2]=q+1;c[h>>2]=o;do if((c[r>>2]|0)<3?(Fb(m,ub(j)|0)|0,Db(m,j)|0,(Gb(m,t)|0)>0):0){i=Fa(d,c[t>>2]|0,c[k>>2]|0)|0;if((i|0)<=-1)if((i|0)==-132)break;else break a;else{c[r>>2]=3;break}}while(0);q=n;o=c[q>>2]|0;q=c[q+4>>2]|0;p=(q|0)<2147483647|(q|0)==2147483647&o>>>0<4294901759;q=sf((p?o:-65537)|0,(p?q:2147483647)|0,65536,0)|0;Ua(b,j,q,D)|0;if((D|0)<0){s=26;break}}}while(0);b:do if((s|0)==26)i=(c[r>>2]|0)<3?-132:-133;else if((s|0)==27)if((c[r>>2]|0)==3){i=b+472|0;s=c[i>>2]|0;if((s|0)==(ub(j)|0))Db(m,j)|0;c:while(1){switch(Gb(m,t)|0){case -1:{i=-133;break b}case 0:break;default:break c}while(1){s=n;h=c[s>>2]|0;s=c[s+4>>2]|0;d=(s|0)<2147483647|(s|0)==2147483647&h>>>0<4294901759;s=sf((d?h:-65537)|0,(d?s:2147483647)|0,65536,0)|0;Ua(b,j,s,D)|0;if((D|0)<0){i=-133;break b}s=c[i>>2]|0;if((s|0)==(ub(j)|0))break;if(sb(j)|0){i=-133;break b}}Db(m,j)|0}i=Ha(e,c[o>>2]|0,c[k>>2]|0)|0;if((i|0)>=0){if((Gb(m,t)|0)==0?(a[(c[j>>2]|0)+((c[j+4>>2]|0)+-1)>>0]|0)!=-1:0){t=0;l=u;return t|0}Ga(e);i=-133}}else i=-132;while(0);c[r>>2]=2;t=i;l=u;return t|0}function Sa(a,b,d){a=a|0;b=b|0;d=d|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,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0;H=l;l=l+1040|0;F=H;f=(d|0)==0?H+1024|0:d;i=a+136|0;j=c[a+472>>2]|0;k=a+56|0;e=k;e=Ua(a,f,c[e>>2]|0,c[e+4>>2]|0)|0;d=D;a:do if((d|0)>=0){g=f+4|0;h=a+120|0;E=a+8660|0;while(1){if(sb(f)|0){G=8;break}if((j|0)==(ub(f)|0)){Db(i,f)|0;B=c[g>>2]|0;C=h;B=sf(c[C>>2]|0,c[C+4>>2]|0,B|0,((B|0)<0)<<31>>31|0)|0;C=h;c[C>>2]=B;c[C+4>>2]=D;do m=Va(a,F)|0;while((m|0)<0);C=c[E>>2]|0;if((C|0)>=1)break}e=k;e=Ua(a,f,c[e>>2]|0,c[e+4>>2]|0)|0;d=D;if((d|0)<0)break a}if((G|0)==8){if(c[b+52>>2]|0){b=-139;l=H;return b|0}G=b+24|0;c[G>>2]=0;c[G+4>>2]=0;c[G+8>>2]=0;c[G+12>>2]=0;G=b+8|0;a=c[G+4>>2]|0;b=b+16|0;c[b>>2]=c[G>>2];c[b+4>>2]=a;b=1;l=H;return b|0}g=0-m|0;f=C+-1|0;A=a+496+(f<<5)+16|0;z=c[A>>2]|0;A=c[A+4>>2]|0;if((z|0)==-1&(A|0)==-1){b=-139;l=H;return b|0}i=(c[a+496+(f<<5)+12>>2]|0)!=0;if(m){B=((m|0)<0)<<31>>31;if(!(((A|0)>-1|(A|0)==-1&z>>>0>4294967295)&((B|0)>(A|0)|(B|0)==(A|0)&m>>>0>z>>>0))){G=rf(0,-2147483648,g|0,((g|0)<0)<<31>>31|0)|0;B=D;if((B|0)>(A|0)|(B|0)==(A|0)&G>>>0>z>>>0){f=1-m+z|0;g=-1;h=2147483647;G=20}else{f=g;g=z;h=A;G=20}}else{f=0;g=0;h=0}}else{f=0;g=z;h=A;G=20}if((G|0)==20){g=sf(f|0,((f|0)<0)<<31>>31|0,g|0,h|0)|0;f=1;h=D}if(i)if(!f)if(A>>>0<0|((A|0)==0?z>>>0<(c[b+52>>2]|0)>>>0:0)){b=-139;l=H;return b|0}else{g=0;B=0}else B=h;else if(f)B=h;else{b=-139;l=H;return b|0}b:do if((C|0)>0){r=uf(z|0,A|0,63)|0;s=D;t=(r|0)==0&(s|0)==0;u=A^-2147483648;v=rf(0,-2147483648,z|0,A|0)|0;w=D;x=sf(v|0,w|0,-2,2147483647)|0;y=D;if(i){f=0;h=g;i=B;j=0;o=0}else{k=0;i=B;j=g;while(1){f=a+496+(k<<5)+16|0;h=c[F+(k<<2)>>2]|0;do if((h|0)>0){if((i|0)<0?(A=~h,z=((A|0)<0)<<31>>31,!((z|0)>(i|0)|(z|0)==(i|0)&A>>>0>j>>>0)):0)break;G=rf(-1,2147483647,h|0,((h|0)<0)<<31>>31|0)|0;A=D;if((A|0)<(i|0)|(A|0)==(i|0)&G>>>0<j>>>0){j=rf(-1,2147483647,j|0,i|0)|0;h=h+~j|0;j=0;i=-2147483648;G=59}else G=59}else if((h|0)<0){if((i|0)>-1|(i|0)==-1&j>>>0>4294967295?(A=0-h|0,z=((A|0)<0)<<31>>31,(z|0)>(i|0)|(z|0)==(i|0)&A>>>0>j>>>0):0)break;G=rf(0,-2147483648,h|0,((h|0)<0)<<31>>31|0)|0;A=D;if((A|0)>(i|0)|(A|0)==(i|0)&G>>>0>j>>>0){h=j+1+h|0;j=-1;i=2147483647;G=59}else G=59}else{h=0;G=59}while(0);if((G|0)==59){G=0;z=sf(h|0,((h|0)<0)<<31>>31|0,j|0,i|0)|0;A=f;c[A>>2]=z;c[A+4>>2]=D}k=k+1|0;if((k|0)==(C|0)){f=C;break b}else{i=c[f+4>>2]|0;j=c[f>>2]|0}}}do{q=uf(h|0,i|0,63)|0;do if((r|0)==(q|0)&(s|0)==(D|0)){j=rf(z|0,A|0,h|0,i|0)|0;m=D}else{if(t)if((u|0)<(i|0)|(u|0)==(i|0)&z>>>0<h>>>0){m=o;break}else{m=0;n=-2147483648;o=h;p=i;k=z;j=u}else{k=rf(-1,2147483647,h|0,i|0)|0;q=D;if((y|0)<(q|0)|(y|0)==(q|0)&x>>>0<k>>>0){m=o;break}else{m=1;n=0;o=v;p=w;j=q}}m=rf(m|0,n|0,o|0,p|0)|0;j=sf(m|0,D|0,k|0,j|0)|0;m=D}while(0);k=c[F+(f<<2)>>2]|0;n=((k|0)<0)<<31>>31;j=rf(k|0,n|0,j|0,m|0)|0;o=D;if((o|0)>0|(o|0)==0&j>>>0>0){if((m|0)<0)break b;h=a+496+(f<<5)+16|0;c[h>>2]=z;c[h+4>>2]=A;c[a+496+(f<<5)+12>>2]=1;h=z;i=A}else{m=a+496+(f<<5)+16|0;do if((k|0)>0){if((i|0)<0?(q=~k,p=((q|0)<0)<<31>>31,!((p|0)>(i|0)|(p|0)==(i|0)&q>>>0>h>>>0)):0)break;G=rf(-1,2147483647,k|0,n|0)|0;q=D;if((q|0)<(i|0)|(q|0)==(i|0)&G>>>0<h>>>0){h=rf(-1,2147483647,h|0,i|0)|0;k=k+~h|0;h=0;i=-2147483648;G=44}else G=44}else if((k|0)<0){if((i|0)>-1|(i|0)==-1&h>>>0>4294967295?(q=0-k|0,p=((q|0)<0)<<31>>31,(p|0)>(i|0)|(p|0)==(i|0)&q>>>0>h>>>0):0)break;G=rf(0,-2147483648,k|0,n|0)|0;q=D;if((q|0)>(i|0)|(q|0)==(i|0)&G>>>0>h>>>0){k=h+1+k|0;h=-1;i=2147483647;G=44}else G=44}else{k=0;G=44}while(0);if((G|0)==44){G=0;p=sf(k|0,((k|0)<0)<<31>>31|0,h|0,i|0)|0;q=m;c[q>>2]=p;c[q+4>>2]=D}i=m;h=c[i>>2]|0;i=c[i+4>>2]|0}f=f+1|0}while((f|0)<(C|0))}else f=0;while(0);c[E>>2]=f;c[a+100>>2]=c[b+52>>2];b=b+32|0;c[b>>2]=g;c[b+4>>2]=B;b=a+104|0;c[b>>2]=g;c[b+4>>2]=B;b=a+112|0;c[b>>2]=e;c[b+4>>2]=d;b=0;l=H;return b|0}while(0);if(!((e|0)==-1&(d|0)==-1)){b=e;l=H;return b|0}if(c[b+52>>2]|0){b=-139;l=H;return b|0}G=b+24|0;c[G>>2]=0;c[G+4>>2]=0;c[G+8>>2]=0;c[G+12>>2]=0;G=b+8|0;a=c[G+4>>2]|0;b=b+16|0;c[b>>2]=c[G>>2];c[b+4>>2]=a;b=0;l=H;return b|0}function Ta(a){a=a|0;var b=0,d=0,e=0;lf(c[a+8696>>2]|0);b=c[a+8664>>2]|0;if(b|0)Sd(b);d=c[a+28>>2]|0;if(!(c[a+20>>2]|0)){e=c[a+92>>2]|0;if((e|0)>2|(e|0)==1)Ga(d+332|0)}else if(d|0?(e=c[a+24>>2]|0,(e|0)>0):0){b=0;do{Ga(d+(b*352|0)+332|0);b=b+1|0}while((b|0)!=(e|0))}lf(d);lf(c[a+40>>2]|0);wb(a+136|0)|0;zb(a+64|0)|0;b=c[a+12>>2]|0;if(!b)return;ta[b&3](c[a+16>>2]|0)|0;return}function Ua(a,b,d,e){a=a|0;b=b|0;d=d|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,s=0;m=a+64|0;p=a+48|0;j=(d|0)==0&(e|0)==0;k=(e|0)<0;l=a+16|0;h=a+72|0;i=a+76|0;a:do if((e|0)<0|(e|0)==0&d>>>0<1){while(1){f=Cb(m,b)|0;if((f|0)<0){g=p;f=rf(c[g>>2]|0,c[g+4>>2]|0,f|0,((f|0)<0)<<31>>31|0)|0;g=p;c[g>>2]=f;c[g+4>>2]=D;continue}if(f|0){o=f;q=24;break a}if(j){f=-1;g=-1;q=25;break}if(k)f=2048;else{s=p;f=c[h>>2]|0;r=c[i>>2]|0;s=sf(f|0,((f|0)<0)<<31>>31|0,c[s>>2]|0,c[s+4>>2]|0)|0;r=rf(s|0,D|0,r|0,((r|0)<0)<<31>>31|0)|0;s=D;f=rf(d|0,e|0,r|0,s|0)|0;g=D;if(!((s|0)<(e|0)|(s|0)==(e|0)&r>>>0<d>>>0)){f=-1;g=-1;q=25;break}s=(g|0)<0|(g|0)==0&f>>>0<2048;f=s?f:2048}s=Ab(m,f)|0;f=ua[c[a>>2]&7](c[l>>2]|0,s,f)|0;if((f|0)<=0){n=f;break a}Bb(m,f)|0}if((q|0)==25){D=f;return g|0}}else{s=p;r=c[s+4>>2]|0;if(!((r|0)<(e|0)|((r|0)==(e|0)?(c[s>>2]|0)>>>0<d>>>0:0))){r=-1;s=-1;D=r;return s|0}while(1){f=Cb(m,b)|0;if((f|0)<0){r=p;r=rf(c[r>>2]|0,c[r+4>>2]|0,f|0,((f|0)<0)<<31>>31|0)|0;s=p;c[s>>2]=r;c[s+4>>2]=D}else{if(f|0){o=f;q=24;break a}if(j){f=-1;g=-1;q=25;break}if(k)f=2048;else{r=p;f=c[h>>2]|0;s=c[i>>2]|0;r=sf(f|0,((f|0)<0)<<31>>31|0,c[r>>2]|0,c[r+4>>2]|0)|0;s=rf(r|0,D|0,s|0,((s|0)<0)<<31>>31|0)|0;r=D;f=rf(d|0,e|0,s|0,r|0)|0;g=D;if(!((r|0)<(e|0)|(r|0)==(e|0)&s>>>0<d>>>0)){f=-1;g=-1;q=25;break}s=(g|0)<0|(g|0)==0&f>>>0<2048;f=s?f:2048}s=Ab(m,f)|0;f=ua[c[a>>2]&7](c[l>>2]|0,s,f)|0;if((f|0)<=0){n=f;break a}Bb(m,f)|0}s=p;r=c[s+4>>2]|0;if(!((r|0)<(e|0)|((r|0)==(e|0)?(c[s>>2]|0)>>>0<d>>>0:0))){f=-1;g=-1;q=25;break}}if((q|0)==25){D=f;return g|0}}while(0);if((q|0)==24){r=p;s=c[r>>2]|0;r=c[r+4>>2]|0;e=sf(s|0,r|0,o|0,((o|0)<0)<<31>>31|0)|0;q=p;c[q>>2]=e;c[q+4>>2]=D;D=r;return s|0}if((n|0)<0){r=-1;s=-128;D=r;return s|0}s=qf(d|0,e|0,63)|0;r=-1;s=s|-137;D=r;return s|0}function Va(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,l=0,m=0,n=0,o=0,p=0,q=0;n=a+136|0;f=a+496|0;g=Gb(n,f)|0;a:do if(!g){e=0;d=0}else{d=0;e=0;do{k=a+496+(e<<5)|0;l=a+496+(e<<5)+4|0;m=b+(e<<2)|0;i=a+496+(e+-1<<5)+16|0;j=a+496+(e<<5)+16|0;b:do if((e|0)>0)while(1){if((g|0)<0){d=-3;break a}g=c[k>>2]|0;h=Gd(g,c[l>>2]|0)|0;if((h|0)>=0?(o=S(zd(g,48e3)|0,h)|0,(o|0)<=5760):0){c[m>>2]=o;if((o|0)>0){f=o;break b}}else c[m>>2]=-136;q=j;h=c[q+4>>2]|0;g=i;c[g>>2]=c[q>>2];c[g+4>>2]=h;g=Gb(n,f)|0;if(!g)break a}else while(1){if((g|0)<0){d=-3;break a}g=c[k>>2]|0;h=Gd(g,c[l>>2]|0)|0;if((h|0)>=0?(p=S(zd(g,48e3)|0,h)|0,(p|0)<=5760):0){c[m>>2]=p;if((p|0)>0){f=p;break b}}else c[m>>2]=-136;g=Gb(n,f)|0;if(!g)break a}while(0);e=e+1|0;d=f+d|0;f=a+496+(e<<5)|0;g=Gb(n,f)|0}while((g|0)!=0)}while(0);c[a+8656>>2]=0;c[a+8660>>2]=e;return d|0}function Wa(a){a=a|0;var b=0,d=0,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,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=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,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0,ra=0,sa=0,ua=0,va=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0,Fa=0,Ga=0,Ha=0,Ia=0,Ja=0,Ka=0,La=0;Ja=l;l=l+2496|0;ia=Ja+2424|0;ja=Ja+2408|0;ka=Ja+360|0;Fa=Ja+2456|0;Ga=Ja;Ia=a+92|0;do if(!(c[a+20>>2]|0))ea=112;else{c[Ia>>2]=2;Ha=a+8660|0;pa=c[Ha>>2]|0;qa=pa<<5;ra=kf(qa)|0;if(ra){sa=a+64|0;c[Fa>>2]=c[sa>>2];c[Fa+4>>2]=c[sa+4>>2];c[Fa+8>>2]=c[sa+8>>2];c[Fa+12>>2]=c[sa+12>>2];c[Fa+16>>2]=c[sa+16>>2];c[Fa+20>>2]=c[sa+20>>2];c[Fa+24>>2]=c[sa+24>>2];ua=a+136|0;Ef(Ga|0,ua|0,360)|0;va=a+112|0;ya=va;xa=c[ya>>2]|0;ya=c[ya+4>>2]|0;za=a+48|0;Ba=za;Aa=c[Ba>>2]|0;Ba=c[Ba+4>>2]|0;Ca=a+496|0;Ef(ra|0,Ca|0,qa|0)|0;yb(sa)|0;vb(ua,-1)|0;Da=a+4|0;Ea=a+16|0;wa[c[Da>>2]&1](c[Ea>>2]|0,0,0,2)|0;A=ta[c[a+8>>2]&3](c[Ea>>2]|0)|0;B=D;C=a+56|0;oa=C;c[oa>>2]=A;c[oa+4>>2]=B;oa=za;c[oa>>2]=A;c[oa+4>>2]=B;oa=a+28|0;do if((B|0)>=0){b=c[oa>>2]|0;i=b+8|0;E=c[i>>2]|0;i=c[i+4>>2]|0;if(!((B|0)<(i|0)|(B|0)==(i|0)&A>>>0<E>>>0)){v=c[b+40>>2]|0;la=a+40|0;w=c[la>>2]|0;ma=a+32|0;x=c[ma>>2]|0;fa=ka+8|0;ga=ka+20|0;y=ka+16|0;ha=ka+24|0;z=(x|0)>0;b=0;e=0;t=65536;s=B;r=A;f=A;d=B;k=-1;h=A;m=-1;g=B;while(1){p=rf(f|0,d|0,t|0,((t|0)<0)<<31>>31|0)|0;q=D;u=(q|0)>0|(q|0)==0&p>>>0>0;f=u?p:0;u=u?q:0;if(!((h|0)==(f|0)&(g|0)==(u|0))){d=c[Da>>2]|0;if(!d){b=-128;ea=36;break}if(wa[d&1](c[Ea>>2]|0,f,u,0)|0){b=-128;ea=36;break}ea=za;c[ea>>2]=f;c[ea+4>>2]=u;Eb(sa)|0}a:do if(z){j=f;n=u;g=k;d=m;while(1){ea=za;da=c[ea+4>>2]|0;if(!((da|0)<(s|0)|((da|0)==(s|0)?(c[ea>>2]|0)>>>0<r>>>0:0))){m=d;k=g;ea=30;break a}m=Ua(a,ja,r,s)|0;o=D;if(!((o|0)<-1|(o|0)==-1&m>>>0<4294967295))if((m|0)==-1&(o|0)==-1){h=5;k=n}else{g=ub(ja)|0;da=ka;c[da>>2]=j;c[da+4>>2]=n;da=fa;c[da>>2]=m;c[da+4>>2]=o;c[ga>>2]=g;da=za;da=rf(c[da>>2]|0,c[da+4>>2]|0,m|0,o|0)|0;c[y>>2]=da;da=tb(ja)|0;ea=ha;c[ea>>2]=da;c[ea+4>>2]=D;if((g|0)==(v|0)){c[ia>>2]=c[ka>>2];c[ia+4>>2]=c[ka+4>>2];c[ia+8>>2]=c[ka+8>>2];c[ia+12>>2]=c[ka+12>>2];c[ia+16>>2]=c[ka+16>>2];c[ia+20>>2]=c[ka+20>>2];c[ia+24>>2]=c[ka+24>>2];c[ia+28>>2]=c[ka+28>>2];e=1}d=0;while(1){if((c[w+(d<<2)>>2]|0)==(g|0))break;d=d+1|0;if((d|0)>=(x|0)){e=0;break}}j=sf(m|0,o|0,1,0)|0;h=0;k=D;g=m;d=o}else{h=1;b=m;k=n}switch(h&7){case 5:{m=d;k=g;ea=30;break a}case 0:{n=k;break}default:{ea=31;break a}}}}else{j=f;n=u;while(1){ea=za;da=c[ea+4>>2]|0;if(!((da|0)<(s|0)|((da|0)==(s|0)?(c[ea>>2]|0)>>>0<r>>>0:0))){ea=30;break a}g=Ua(a,ja,r,s)|0;d=D;if(!((d|0)<-1|(d|0)==-1&g>>>0<4294967295))if((g|0)==-1&(d|0)==-1){h=5;g=k;d=m}else{ea=ub(ja)|0;ca=ka;c[ca>>2]=j;c[ca+4>>2]=n;ca=fa;c[ca>>2]=g;c[ca+4>>2]=d;c[ga>>2]=ea;ca=za;ca=rf(c[ca>>2]|0,c[ca+4>>2]|0,g|0,d|0)|0;c[y>>2]=ca;ca=tb(ja)|0;da=ha;c[da>>2]=ca;c[da+4>>2]=D;if((ea|0)==(v|0)){c[ia>>2]=c[ka>>2];c[ia+4>>2]=c[ka+4>>2];c[ia+8>>2]=c[ka+8>>2];c[ia+12>>2]=c[ka+12>>2];c[ia+16>>2]=c[ka+16>>2];c[ia+20>>2]=c[ka+20>>2];c[ia+24>>2]=c[ka+24>>2];c[ia+28>>2]=c[ka+28>>2]}j=sf(g|0,d|0,1,0)|0;h=0;e=0;n=D}else{h=1;b=g;g=k;d=m}switch(h&7){case 5:{m=d;k=g;ea=30;break a}case 0:{k=g;m=d;break}default:{ea=31;break a}}}}while(0);if((ea|0)==30){d=t<<1;g=sf(f|0,u|0,65306,0)|0;h=D;j=(h|0)<(B|0)|(h|0)==(B|0)&g>>>0<A>>>0;if(((q|0)<0|(q|0)==0&p>>>0<1)&(m|0)<0){b=-137;ea=36;break}else{n=(d|0)<1048576?d:1048576;g=j?g:A;d=j?h:B}}else if((ea|0)==31)if(!h){n=t;m=d;k=g;g=r;d=s}else{ea=38;break}if((m|0)>=0){ea=34;break}ea=za;t=n;s=d;r=g;d=u;h=c[ea>>2]|0;g=c[ea+4>>2]|0}if((ea|0)==34){if(e|0){c[ka>>2]=c[ia>>2];c[ka+4>>2]=c[ia+4>>2];c[ka+8>>2]=c[ia+8>>2];c[ka+12>>2]=c[ia+12>>2];c[ka+16>>2]=c[ia+16>>2];c[ka+20>>2]=c[ia+20>>2];c[ka+24>>2]=c[ia+24>>2];c[ka+28>>2]=c[ia+28>>2]}}else if((ea|0)==36)break;else if((ea|0)==38?(b|0)<0:0)break;da=fa;ca=c[y>>2]|0;da=sf(ca|0,((ca|0)<0)<<31>>31|0,c[da>>2]|0,c[da+4>>2]|0)|0;ca=D;ba=C;c[ba>>2]=da;c[ba+4>>2]=ca;if(!((ca|0)<(i|0)|(ca|0)==(i|0)&da>>>0<E>>>0)){da=a+36|0;b=c[oa>>2]|0;ba=a+24|0;e=c[ba>>2]|0;ca=ja;c[ca>>2]=0;c[ca+4>>2]=0;ca=a+472|0;f=b;d=e;j=1;n=0;o=0;g=E;b:while(1){Y=c[la>>2]|0;Z=c[ma>>2]|0;if((d|0)<(e|0)){aa=f;$=e;_=b}else{if((e|0)>1073741823){b=-129;break}b=e<<1|1;e=mf(f,b*352|0)|0;if(!e){b=-129;break}c[oa>>2]=e;aa=e;$=b;_=e}if((j|0)<=0){ea=103;break}X=(Z|0)>0;if(X){b=0;c:while(1){f=c[ka+(b<<5)+20>>2]|0;e=0;do{if((c[Y+(e<<2)>>2]|0)==(f|0)){e=1;break c}e=e+1|0}while((e|0)<(Z|0));b=b+1|0;if((b|0)>=(j|0)){e=0;break}}if((b|0)<1){ea=103;break}m=b+-1|0;j=ka+(m<<5)|0;f=c[j>>2]|0;j=c[j+4>>2]|0;m=ka+(m<<5)+8|0;k=c[m>>2]|0;m=c[m+4>>2]|0;if(e){h=ka+(b<<5)+8|0;g=c[h>>2]|0;h=c[h+4>>2]|0;e=c[ka+(b<<5)+16>>2]|0;e=sf(e|0,((e|0)<0)<<31>>31|0,g|0,h|0)|0;i=D;if((c[ka+(b<<5)+20>>2]|0)==(c[aa+((d+-1|0)*352|0)+40>>2]|0)){o=ka+(b<<5)+24|0;u=k;t=m;n=c[o>>2]|0;o=c[o+4>>2]|0}else{u=k;t=m;g=n;h=o;n=-1;o=-1}}else{e=g;u=k;t=m;g=n;h=o;n=-1;o=-1}}else{t=j+-1|0;e=ka+(t<<5)|0;t=ka+(t<<5)+8|0;b=j;f=c[e>>2]|0;j=c[e+4>>2]|0;e=g;u=c[t>>2]|0;t=c[t+4>>2]|0;g=n;h=o;n=-1;o=-1}W=d+-1|0;if((d|0)>1){V=aa+(W*352|0)|0;k=c[V>>2]|0;V=c[V+4>>2]|0;S=yf(k|0,V|0,W|0,((W|0)<0)<<31>>31|0)|0;U=D;T=sf(f|0,j|0,-65536,-1)|0;T=rf(T|0,D|0,S|0,U|0)|0;R=D;m=rf(e|0,i|0,S|0,U|0)|0;Q=D;m=((V|0)>(Q|0)|(V|0)==(Q|0)&k>>>0>m>>>0)&((V|0)<(R|0)|(V|0)==(R|0)&k>>>0<T>>>0);V=sf(S|0,U|0,k|0,V|0)|0;k=D;T=(k|0)<(R|0)|(k|0)==(R|0)&V>>>0<T>>>0;k=sf((T?S:0)|0,(T?U:0)|0,V|0,k|0)|0;k=m?k:-1;m=m?D:-1}else{k=-1;m=-1}if((j|0)>(i|0)|(j|0)==(i|0)&f>>>0>e>>>0){V=aa+(W*352|0)+40|0;v=b;b=o;while(1){p=(k|0)==-1&(m|0)==-1;o=rf(f|0,j|0,e|0,i|0)|0;o=qf(o|0,D|0,1)|0;o=sf(o|0,D|0,e|0,i|0)|0;o=p?o:k;p=p?D:m;s=rf(o|0,p|0,e|0,i|0)|0;U=D;s=(U|0)<0|(U|0)==0&s>>>0<65536;o=s?e:o;p=s?i:p;n=s?n:-1;s=s?b:-1;U=za;if(!((c[U>>2]|0)==(o|0)?(c[U+4>>2]|0)==(p|0):0)){b=c[Da>>2]|0;if(!b){b=-128;break b}if(wa[b&1](c[Ea>>2]|0,o,p,0)|0){b=-128;break b}U=za;c[U>>2]=o;c[U+4>>2]=p;Eb(sa)|0}b=ka+(v+-1<<5)+8|0;b=Ua(a,ia,c[b>>2]|0,c[b+4>>2]|0)|0;U=D;if((U|0)<-1|(U|0)==-1&b>>>0<4294967295){ea=65;break b}d:do if((b|0)==-1&(U|0)==-1){T=v;f=o;j=p;R=0;S=0}else{m=ub(ia)|0;q=tb(ia)|0;r=D;e:do if(X){k=0;while(1){if((c[Y+(k<<2)>>2]|0)==(m|0))break;k=k+1|0;if((k|0)>=(Z|0))break e}e=za;Q=(m|0)==(c[V>>2]|0);T=v;i=c[e+4>>2]|0;e=c[e>>2]|0;R=65536;S=0;g=Q?b:g;h=Q?U:h;n=Q?q:n;s=Q?r:s;break d}while(0);if((v|0)>=64){T=v;f=o;j=p;R=0;S=0;u=b;t=U;break}T=ka+(v<<5)|0;c[T>>2]=o;c[T+4>>2]=p;T=ka+(v<<5)+8|0;c[T>>2]=b;c[T+4>>2]=U;T=za;T=rf(c[T>>2]|0,c[T+4>>2]|0,b|0,U|0)|0;c[ka+(v<<5)+16>>2]=T;c[ka+(v<<5)+20>>2]=m;T=ka+(v<<5)+24|0;c[T>>2]=q;c[T+4>>2]=r;T=v+1|0;f=o;j=p;R=0;S=0;u=b;t=U}while(0);P=sf(f|0,j|0,-65536,-1)|0;Q=D;if((Q|0)>(i|0)|(Q|0)==(i|0)&P>>>0>e>>>0){if((T|0)>0){O=0;m=Q;k=P;do{I=ka+(O<<5)+24|0;H=c[I>>2]|0;I=c[I+4>>2]|0;f:do if((I|0)>=0){J=(I|0)>2147483647|(I|0)==2147483647&H>>>0>4294919295;K=rf(-1,2147483647,H|0,I|0)|0;K=47999-K|0;J=sf((J?K:48e3)|0,(J?((K|0)<0)<<31>>31:0)|0,(J?0:H)|0,(J?-2147483648:I)|0)|0;K=D;M=ka+(O<<5)+8|0;L=c[M>>2]|0;M=c[M+4>>2]|0;N=c[ka+(O<<5)+20>>2]|0;if((O|0)>0)F=O;else break;g:while(1){G=F;F=F+-1|0;w=ka+(F<<5)+24|0;v=c[w>>2]|0;w=c[w+4>>2]|0;do if(!((w|0)<(K|0)|(w|0)==(K|0)&v>>>0<J>>>0)){if((c[ka+(F<<5)+20>>2]|0)!=(N|0))break;r=ka+(F<<5)+8|0;q=c[r>>2]|0;r=c[r+4>>2]|0;A=rf(v|0,w|0,H|0,I|0)|0;B=D;x=yf(v|0,w|0,A|0,B|0)|0;y=D;p=rf(q|0,r|0,L|0,M|0)|0;o=D;if((y|0)>0|(y|0)==0&x>>>0>0?(E=rf(q|0,r|0,e|0,i|0)|0,E=yf(E|0,D|0,x|0,y|0)|0,C=D,(C|0)<(o|0)|(C|0)==(o|0)&E>>>0<p>>>0):0)break;C=Cf(x|0,y|0,p|0,o|0)|0;C=rf(q|0,r|0,C|0,D|0)|0;E=D;r=Cf(x|0,y|0,A|0,B|0)|0;v=rf(v|0,w|0,r|0,D|0)|0;r=D;do if((r|0)<(B|0)|(r|0)==(B|0)&v>>>0<A>>>0){if((r|0)<0|(r|0)==0&v>>>0<1){p=0;o=0;break}x=qf(A|0,B|0,1)|0;y=D;w=0;z=0;q=0;while(1){Ka=vf(z|0,q|0,1)|0;q=D;La=(r|0)<(y|0)|(r|0)==(y|0)&v>>>0<x>>>0;r=vf(v|0,r|0,1)|0;v=rf(r|0,D|0,(La?0:A)|0,(La?0:B)|0)|0;z=(La^1)&1|Ka;w=w+1|0;if((w|0)==63)break;else r=D}y=p&1;w=qf(p|0,o|0,1)|0;x=D;v=0;r=z;p=0;o=0;while(1){La=(r&1|0)==0&0==0;Ka=qf(p|0,o|0,1)|0;o=D;B=sf(Ka|0,o|0,w|0,x|0)|0;p=sf(B|0,D|0,y&p|0,0)|0;p=La?Ka:p;o=La?o:D;r=qf(r|0,q|0,1)|0;v=v+1|0;if((v|0)==63)break;else q=D}}while(0);o=rf(R|0,S|0,p|0,o|0)|0;o=sf(o|0,D|0,C|0,E|0)|0;p=D;if(!((p|0)<(i|0)|(p|0)==(i|0)&o>>>0<e>>>0))break g}while(0);if((G|0)<=1)break f}La=(m|0)<(p|0)|(m|0)==(p|0)&k>>>0<o>>>0;k=La?k:o;m=La?m:p}while(0);O=O+1|0}while((O|0)!=(T|0))}else{m=Q;k=P}La=(m|0)>(Q|0)|(m|0)==(Q|0)&k>>>0>=P>>>0;k=La?-1:k;m=La?-1:m}else{k=-1;m=-1}if((j|0)>(i|0)|(j|0)==(i|0)&f>>>0>e>>>0){v=T;b=s}else{j=T;e=s;k=U;m=u;i=t;break}}}else{j=b;e=o;b=-1;k=-1;m=u;i=t}La=aa+(W*352|0)+24|0;if((c[La>>2]|0)==-1?(c[La+4>>2]|0)==-1:0){f=(n|0)==-1&(e|0)==-1;g=f?m:g;h=f?i:h;e=Xa(a,Y,Z,aa+(d*352|0)+-352|0,g,h,c[aa+(W*352|0)+40>>2]|0,n,e,ja)|0;if((e|0)<0){b=e;break}else{b=f?-1:b;e=f?-1:k}}else e=k;e=(b|0)!=(m|0)|(e|0)!=(i|0);if(e?(La=za,!((c[La>>2]|0)==(m|0)?(c[La+4>>2]|0)==(i|0):0)):0){b=c[Da>>2]|0;if(!b){b=-128;break}if(wa[b&1](c[Ea>>2]|0,m,i,0)|0){b=-128;break}La=za;c[La>>2]=m;c[La+4>>2]=i;Eb(sa)|0}f=aa+(d*352|0)|0;b=Ra(a,aa+(d*352|0)+44|0,aa+(d*352|0)+332|0,la,ma,da,e?0:ia)|0;if((b|0)<0)break;Ka=f;c[Ka>>2]=m;c[Ka+4>>2]=i;Ka=za;La=c[Ka+4>>2]|0;b=aa+(d*352|0)+8|0;c[b>>2]=c[Ka>>2];c[b+4>>2]=La;c[aa+(d*352|0)+40>>2]=c[ca>>2];b=aa+(d*352|0)+24|0;c[b>>2]=-1;c[b+4>>2]=-1;b=Sa(a,f,0)|0;d=d+1|0;if((b|0)<0)break;i=za;La=c[i>>2]|0;i=c[i+4>>2]|0;c[ba>>2]=d;f=aa;e=$;n=g;o=h;b=_;g=La}do if((ea|0)!=65)if((ea|0)==103){La=aa+((d+-1|0)*352|0)+24|0;if(((c[La>>2]|0)==-1?(c[La+4>>2]|0)==-1:0)?(La=fa,na=ha,na=Xa(a,Y,Z,aa+(d*352|0)+-352|0,c[La>>2]|0,c[La+4>>2]|0,c[ga>>2]|0,c[na>>2]|0,c[na+4>>2]|0,ja)|0,(na|0)<0):0){b=na;break}b=mf(_,d*352|0)|0;if(b|0)c[oa>>2]=b;lf(c[la>>2]|0);c[la>>2]=0;c[ma>>2]=0;c[da>>2]=0;b=0}while(0)}else b=-137}else b=-137}else b=-128;while(0);wb(ua)|0;zb(sa)|0;c[sa>>2]=c[Fa>>2];c[sa+4>>2]=c[Fa+4>>2];c[sa+8>>2]=c[Fa+8>>2];c[sa+12>>2]=c[Fa+12>>2];c[sa+16>>2]=c[Fa+16>>2];c[sa+20>>2]=c[Fa+20>>2];c[sa+24>>2]=c[Fa+24>>2];Ef(ua|0,Ga|0,360)|0;La=za;c[La>>2]=Aa;c[La+4>>2]=Ba;c[Ha>>2]=pa;Ef(Ca|0,ra|0,qa|0)|0;lf(ra);La=c[oa>>2]|0;Ga=La+32|0;Ha=c[Ga+4>>2]|0;Ka=a+104|0;c[Ka>>2]=c[Ga>>2];c[Ka+4>>2]=Ha;Ka=va;c[Ka>>2]=xa;c[Ka+4>>2]=ya;c[a+100>>2]=c[La+52>>2];if((b|0)>=0){Ka=c[Da>>2]|0;La=c[Ea>>2]|0;Ha=za;Ga=c[a+72>>2]|0;b=c[a+76>>2]|0;Ha=sf(Ga|0,((Ga|0)<0)<<31>>31|0,c[Ha>>2]|0,c[Ha+4>>2]|0)|0;b=rf(Ha|0,D|0,b|0,((b|0)<0)<<31>>31|0)|0;b=(wa[Ka&1](La,b,D,0)|0)>>31&-128;if((b|0)>-1){ea=112;break}else break}}else b=-129}while(0);if((ea|0)==112){c[Ia>>2]=3;b=Ya(a)|0;if((b|0)>-1){La=0;l=Ja;return La|0}}c[a+12>>2]=0;Ta(a);La=b;l=Ja;return La|0}function Xa(a,b,d,e,f,g,h,i,j,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var 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,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0;L=l;l=l+16|0;J=L;K=c[e+40>>2]|0;do if((i|0)==-1&(j|0)==-1|(K|0)!=(h|0)){F=a+48|0;G=a+4|0;H=a+16|0;I=a+64|0;a:do if((d|0)>0){A=65536;B=f;C=g;o=-1;n=-1;h=-1;m=-1;q=0;r=0;x=g;w=f;while(1){y=rf(B|0,C|0,A|0,((A|0)<0)<<31>>31|0)|0;z=D;E=(z|0)>0|(z|0)==0&y>>>0>0;B=E?y:0;C=E?z:0;E=F;if((c[E>>2]|0)==(B|0)?(c[E+4>>2]|0)==(C|0):0)v=0;else{p=c[G>>2]|0;if(!p){h=-128;E=32;break a}if(wa[p&1](c[H>>2]|0,B,C,0)|0){h=-128;E=32;break a}v=F;c[v>>2]=B;c[v+4>>2]=C;Eb(I)|0;v=0}b:while(1){E=F;u=c[E+4>>2]|0;if(!((u|0)<(x|0)|((u|0)==(x|0)?(c[E>>2]|0)>>>0<w>>>0:0))){u=q;t=r;E=16;break}t=Ua(a,J,w,x)|0;u=D;c:do if(!((u|0)<-1|(u|0)==-1&t>>>0<4294967295))if((t|0)==-1&(u|0)==-1){s=5;p=v}else{s=ub(J)|0;if((s|0)==(K|0)){N=tb(J)|0;M=D;E=(N|0)==-1&(M|0)==-1;s=0;p=v;o=E?o:N;n=E?n:M;h=E?h:t;m=E?m:u;break}else p=0;while(1){if((c[b+(p<<2)>>2]|0)==(s|0)){s=0;p=v;break c}p=p+1|0;if((p|0)>=(d|0)){s=0;p=1;break}}}else{s=1;p=v;q=t;r=u}while(0);switch(s&7){case 0:{v=p;break}case 5:{v=p;u=q;t=r;E=16;break b}default:{E=17;break b}}}if((E|0)==16){p=A<<1;q=sf(B|0,C|0,65306,0)|0;r=D;s=(r|0)<(g|0)|(r|0)==(g|0)&q>>>0<f>>>0;if(((z|0)<0|(z|0)==0&y>>>0<1|(v|0)!=0)&(m|0)<0){h=-137;E=32;break a}else{p=(p|0)<1048576?p:1048576;v=s?q:f;s=s?r:g;q=u;r=t}}else if((E|0)==17)if(!s){p=A;v=w;s=x}else{m=r;h=q;E=33;break a}if((m|0)>=0){E=31;break}else{A=p;x=s;w=v}}}else{z=65536;A=f;B=g;p=g;w=f;o=-1;n=-1;h=-1;m=-1;r=0;s=0;while(1){x=rf(A|0,B|0,z|0,((z|0)<0)<<31>>31|0)|0;y=D;N=(y|0)>0|(y|0)==0&x>>>0>0;A=N?x:0;B=N?y:0;N=F;if((c[N>>2]|0)==(A|0)?(c[N+4>>2]|0)==(B|0):0)t=0;else{q=c[G>>2]|0;if(!q){h=-128;E=32;break a}if(wa[q&1](c[H>>2]|0,A,B,0)|0){h=-128;E=32;break a}t=F;c[t>>2]=A;c[t+4>>2]=B;Eb(I)|0;t=0}d:while(1){N=F;M=c[N+4>>2]|0;if(!((M|0)<(p|0)|((M|0)==(p|0)?(c[N>>2]|0)>>>0<w>>>0:0))){E=28;break}q=Ua(a,J,w,p)|0;u=D;if(!((u|0)<-1|(u|0)==-1&q>>>0<4294967295))if(!((q|0)==-1&(u|0)==-1))if((ub(J)|0)==(K|0)){E=tb(J)|0;M=D;N=(E|0)==-1&(M|0)==-1;v=0;o=N?o:E;n=N?n:M;h=N?h:q;m=N?m:u}else{v=0;t=1}else v=5;else{v=1;r=q;s=u}switch(v&7){case 0:break;case 5:{E=28;break d}default:{E=29;break d}}}if((E|0)==28){p=z<<1;q=sf(A|0,B|0,65306,0)|0;u=D;v=(u|0)<(g|0)|(u|0)==(g|0)&q>>>0<f>>>0;if(((y|0)<0|(y|0)==0&x>>>0<1|(t|0)!=0)&(m|0)<0){h=-137;E=32;break a}else{t=(p|0)<1048576?p:1048576;q=v?q:f;p=v?u:g}}else if((E|0)==29)if(!v){t=z;q=w}else{m=s;h=r;E=33;break a}if((m|0)>=0){E=31;break}else{z=t;w=q}}}while(0);if((E|0)==31){i=o;j=n;break}else if((E|0)==32){N=h;l=L;return N|0}else if((E|0)==33){if((m|0)>=0)break;l=L;return h|0}}else{m=g;h=f}while(0);N=e+8|0;M=c[N+4>>2]|0;if((m|0)<(M|0)|((m|0)==(M|0)?h>>>0<(c[N>>2]|0)>>>0:0)){N=-137;l=L;return N|0}r=e+32|0;p=c[r>>2]|0;r=c[r+4>>2]|0;n=uf(i|0,j|0,63)|0;o=D;N=uf(p|0,r|0,63)|0;if((n|0)==(N|0)&(o|0)==(D|0)){p=rf(i|0,j|0,p|0,r|0)|0;o=D}else{if((n|0)==0&(o|0)==0){n=j^-2147483648;if((n|0)<(r|0)|(n|0)==(r|0)&i>>>0<p>>>0){N=-139;l=L;return N|0}else{s=0;t=-2147483648;o=p;q=r;p=i}}else{o=rf(0,-2147483648,i|0,j|0)|0;q=D;p=rf(-1,2147483647,p|0,r|0)|0;n=D;N=sf(o|0,q|0,-2,2147483647)|0;M=D;if((M|0)<(n|0)|(M|0)==(n|0)&N>>>0<p>>>0){N=-139;l=L;return N|0}else{s=1;t=0}}o=rf(s|0,t|0,o|0,q|0)|0;p=sf(o|0,D|0,p|0,n|0)|0;o=D}n=c[e+52>>2]|0;if((o|0)<0|(o|0)==0&p>>>0<n>>>0){N=-139;l=L;return N|0}n=rf(p|0,o|0,n|0,0)|0;o=D;q=k;p=c[q>>2]|0;q=c[q+4>>2]|0;N=rf(-1,2147483647,n|0,o|0)|0;M=D;if((M|0)<(q|0)|(M|0)==(q|0)&N>>>0<p>>>0){N=-139;l=L;return N|0}M=sf(p|0,q|0,n|0,o|0)|0;N=k;c[N>>2]=M;c[N+4>>2]=D;N=e+24|0;c[N>>2]=i;c[N+4>>2]=j;N=e+16|0;c[N>>2]=h;c[N+4>>2]=m;N=0;l=L;return N|0}function Ya(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0;p=l;l=l+16|0;k=p;n=p+4|0;o=a+92|0;b=c[o>>2]|0;if((b|0)>3){o=0;l=p;return o|0}if((b|0)!=3){o=-129;l=p;return o|0}if(!(c[a+20>>2]|0))f=0;else f=c[a+96>>2]|0;e=a+28|0;b=c[e>>2]|0;g=c[b+(f*352|0)+68>>2]|0;h=c[b+(f*352|0)+72>>2]|0;i=c[b+(f*352|0)+48>>2]|0;j=a+8664|0;d=c[j>>2]|0;if(((((d|0)!=0?(c[a+8676>>2]|0)==(g|0):0)?(c[a+8680>>2]|0)==(h|0):0)?(c[a+8684>>2]|0)==(i|0):0)?(Le(a+8688|0,b+(f*352|0)+76|0,i)|0)==0:0)Pd(d,4028,k)|0;else m=11;do if((m|0)==11){Sd(d);b=b+(f*352|0)+76|0;n=Nd(48e3,i,g,h,b,n)|0;c[j>>2]=n;if(n|0){c[a+8676>>2]=g;c[a+8680>>2]=h;c[a+8684>>2]=i;Ef(a+8688|0,b|0,i|0)|0;break}o=-129;l=p;return o|0}while(0);c[o>>2]=4;o=a+120|0;c[a+9016>>2]=0;c[o>>2]=0;c[o+4>>2]=0;c[o+8>>2]=0;c[o+12>>2]=0;c[a+9004>>2]=c[(c[e>>2]|0)+(f*352|0)+40>>2];Za(a);o=0;l=p;return o|0}function Za(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=l;l=l+16|0;g=h;d=h+4|0;if((c[a+92>>2]|0)<4){l=h;return}b=c[a+8712>>2]|0;if(!(c[a+20>>2]|0))f=0;else f=c[a+96>>2]|0;e=c[a+28>>2]|0;switch(c[a+8708>>2]|0){case 3007:{c[d>>2]=0;La(e+(f*352|0)+332|0,d)|0;b=(c[d>>2]|0)+b+(c[e+(f*352|0)+60>>2]|0)|0;break}case 3008:{c[d>>2]=0;Ma(e+(f*352|0)+332|0,d)|0;b=(c[d>>2]|0)+b+(c[e+(f*352|0)+60>>2]|0)|0;break}case 0:{b=(c[e+(f*352|0)+60>>2]|0)+b|0;break}default:{}}f=(b|0)<32767?b:32767;a=c[a+8664>>2]|0;c[g>>2]=(f|0)>-32768?f:-32768;Pd(a,4034,g)|0;l=h;return}function _a(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;g=l;l=l+16|0;f=g;d=ob(f,a,22341)|0;do if(!d)if(!b)a=0;else{c[b>>2]=-129;a=0}else{a=Qa(d,f,0,0,b)|0;if(a|0){e=Wa(a)|0;if((e|0)>-1)break;if(b|0)c[b>>2]=e;lf(a)}ta[c[f+12>>2]&3](d)|0;a=0}while(0);l=g;return a|0}function $a(a){a=a|0;if(!a)return;Ta(a);lf(a);return}function ab(a){a=a|0;return c[a+20>>2]|0}function bb(a){a=a|0;return c[a+24>>2]|0}function cb(a,b){a=a|0;b=b|0;var d=0;d=c[a+24>>2]|0;b=(c[a+20>>2]|0)==0?0:(d|0)>(b|0)?b:d+-1|0;d=c[a+28>>2]|0;if((b|0)>=0){a=b;a=d+(a*352|0)+44|0;return a|0}a=c[a+96>>2]|0;a=d+(a*352|0)+44|0;return a|0}function db(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;if((c[a+92>>2]|0)<2){d=-1;e=-131;D=d;return e|0}if(!(c[a+20>>2]|0)){d=-1;e=-131;D=d;return e|0}e=c[a+24>>2]|0;if((e|0)<=(b|0)){d=-1;e=-131;D=d;return e|0}d=c[a+28>>2]|0;if((b|0)<0){b=a+56|0;e=d;e=rf(c[b>>2]|0,c[b+4>>2]|0,c[e>>2]|0,c[e+4>>2]|0)|0;d=D;D=d;return e|0}else{f=b+1|0;a=(f|0)<(e|0)?d+(f*352|0)|0:a+56|0;e=d+(b*352|0)|0;e=rf(c[a>>2]|0,c[a+4>>2]|0,c[e>>2]|0,c[e+4>>2]|0)|0;d=D;D=d;return e|0}return 0}function eb(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,l=0,m=0,n=0,o=0,p=0;o=c[a+24>>2]|0;if((c[a+92>>2]|0)<2){o=-1;p=-131;D=o;return p|0}if(!((o|0)>(b|0)&(c[a+20>>2]|0)!=0)){o=-1;p=-131;D=o;return p|0}p=c[a+28>>2]|0;if((b|0)>=0){a=p+(b*352|0)+24|0;g=c[a>>2]|0;a=c[a+4>>2]|0;i=p+(b*352|0)+32|0;h=c[i>>2]|0;i=c[i+4>>2]|0;d=uf(g|0,a|0,63)|0;e=D;o=uf(h|0,i|0,63)|0;do if((d|0)==(o|0)&(e|0)==(D|0)){a=rf(g|0,a|0,h|0,i|0)|0;d=D}else{if((d|0)==0&(e|0)==0){a=a^-2147483648;if((a|0)<(i|0)|(a|0)==(i|0)&g>>>0<h>>>0){a=0;d=0;break}else{j=0;k=-2147483648;d=h;f=i;e=g}}else{d=rf(0,-2147483648,g|0,a|0)|0;f=D;e=rf(-1,2147483647,h|0,i|0)|0;a=D;o=sf(d|0,f|0,-2,2147483647)|0;n=D;if((n|0)<(a|0)|(n|0)==(a|0)&o>>>0<e>>>0){a=0;d=0;break}else{j=1;k=0}}d=rf(j|0,k|0,d|0,f|0)|0;a=sf(d|0,D|0,e|0,a|0)|0;d=D}while(0);p=rf(a|0,d|0,c[p+(b*352|0)+52>>2]|0,0)|0;o=D;D=o;return p|0}if((o|0)>0){n=0;e=0;f=0;a=0;d=0}else{o=0;p=0;D=o;return p|0}do{g=p+(n*352|0)+24|0;j=c[g>>2]|0;g=c[g+4>>2]|0;b=p+(n*352|0)+32|0;k=c[b>>2]|0;b=c[b+4>>2]|0;h=uf(j|0,g|0,63)|0;i=D;m=uf(k|0,b|0,63)|0;do if((h|0)==(m|0)&(i|0)==(D|0)){e=rf(j|0,g|0,k|0,b|0)|0;f=D}else{if((h|0)==0&(i|0)==0){h=g^-2147483648;if((h|0)<(b|0)|(h|0)==(b|0)&j>>>0<k>>>0)break;else{l=0;m=-2147483648;g=k;i=b;f=j;e=h}}else{g=rf(0,-2147483648,j|0,g|0)|0;i=D;h=rf(-1,2147483647,k|0,b|0)|0;j=D;m=sf(g|0,i|0,-2,2147483647)|0;l=D;if((l|0)<(j|0)|(l|0)==(j|0)&m>>>0<h>>>0)break;else{l=1;m=0;f=h;e=j}}m=rf(l|0,m|0,g|0,i|0)|0;e=sf(m|0,D|0,f|0,e|0)|0;f=D}while(0);m=c[p+(n*352|0)+52>>2]|0;a=sf(e|0,f|0,a|0,d|0)|0;a=rf(a|0,D|0,m|0,0)|0;d=D;n=n+1|0}while((n|0)!=(o|0));D=d;return a|0}function fb(a,b){a=a|0;b=b|0;var d=0;d=c[a+24>>2]|0;b=(d|0)>(b|0)?b:d+-1|0;if(!(c[a+20>>2]|0)){d=c[a+92>>2]|0;if((d|0)>2|(d|0)==1)b=0;else{d=0;return d|0}}else if((b|0)<0)if((c[a+92>>2]|0)>2)b=c[a+96>>2]|0;else b=0;d=(c[a+28>>2]|0)+(b*352|0)+332|0;return d|0}function gb(a){a=a|0;if((c[a+92>>2]|0)<2){a=-131;return a|0}a=c[a+96>>2]|0;return a|0}function hb(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;if((c[a+92>>2]|0)<2){h=-131;return h|0}f=a+128|0;h=c[f>>2]|0;f=c[f+4>>2]|0;if((h|0)==0&(f|0)==0){h=-1;return h|0}g=a+120|0;b=g;a=c[b>>2]|0;b=c[b+4>>2]|0;d=qf(h|0,f|0,1)|0;e=D;i=rf(-1,2147483647,d|0,e|0)|0;i=yf(i|0,D|0,384e3,0)|0;j=D;if((j|0)<(b|0)|(j|0)==(b|0)&i>>>0<a>>>0){j=yf(a|0,b|0,5592,0)|0;i=D;if((i|0)<(f|0)|(i|0)==(f|0)&j>>>0<h>>>0){i=yf(h|0,f|0,384e3,0)|0;j=D;h=qf(i|0,j|0,1)|0;a=sf(a|0,b|0,h|0,D|0)|0;a=yf(a|0,D|0,i|0,j|0)|0}else a=2147483647}else if((f|0)<0|(f|0)==0&h>>>0<1)a=2147483647;else{a=Cf(a|0,b|0,384e3,0)|0;a=sf(a|0,D|0,d|0,e|0)|0;a=yf(a|0,D|0,h|0,f|0)|0;j=D;i=(j|0)<0|(j|0)==0&a>>>0<2147483647;a=i?a:2147483647};c[g>>2]=0;c[g+4>>2]=0;c[g+8>>2]=0;c[g+12>>2]=0;j=a;return j|0}function ib(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 h=0,i=0,j=0,k=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,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;_=l;l=l+1040|0;X=_+1024|0;Y=_;Z=a+20|0;R=a+28|0;S=c[R>>2]|0;T=(c[Z>>2]|0)!=0;U=a+96|0;if(T)h=c[U>>2]|0;else h=0;V=a+56|0;W=a+92|0;E=(f|0)==0;F=a+8660|0;G=a+8704|0;H=a+104|0;I=X+4|0;J=a+120|0;K=a+24|0;L=a+136|0;M=a+112|0;N=a+100|0;O=S+44|0;P=S+332|0;Q=a+472|0;i=c[S+(h*352|0)+40>>2]|0;f=e;a:while(1){if(!b){d=V;d=Ua(a,X,c[d>>2]|0,c[d+4>>2]|0)|0;C=D}else{c[X>>2]=c[b>>2];c[X+4>>2]=c[b+4>>2];c[X+8>>2]=c[b+8>>2];c[X+12>>2]=c[b+12>>2];C=f}if((C|0)<0){B=8;break}if((c[W>>2]|0)>2?(i|0)!=(ub(X)|0):0)if(sb(X)|0){if(E){f=-2;break}f=c[W>>2]|0;if((f|0)>3){c[F>>2]=0;c[G>>2]=0;c[H>>2]=-1;c[H+4>>2]=-1;c[H+8>>2]=-1;c[H+12>>2]=-1;if(!(c[Z>>2]|0))Ga((c[R>>2]|0)+332|0);c[W>>2]=2;B=20}else B=19}else B=18;else{A=c[I>>2]|0;B=J;A=sf(c[B>>2]|0,c[B+4>>2]|0,A|0,((A|0)<0)<<31>>31|0)|0;B=J;c[B>>2]=A;c[B+4>>2]=D;B=18}if((B|0)==18){f=c[W>>2]|0;B=19}if((B|0)==19)if((f|0)>=3)if((f|0)==3){b=i;B=32}else{A=i;B=33}else B=20;b:do if((B|0)==20){B=0;if(!T){do{f=Ra(a,O,P,0,0,0,X)|0;if((f|0)<0)break a;f=Sa(a,S,X)|0;if((f|0)<0)break a;b=c[Q>>2]|0;c[(c[R>>2]|0)+40>>2]=b;c[U>>2]=(c[U>>2]|0)+1}while((f|0)!=0);if((c[F>>2]|0)<1){f=b;break}else{B=30;break a}}b=ub(X)|0;e=c[K>>2]|0;if((e|0)>0){f=0;while(1){if((c[S+(f*352|0)+40>>2]|0)==(b|0))break;f=f+1|0;if((f|0)>=(e|0)){f=i;break b}}c[U>>2]=f;Fb(L,b)|0;c[W>>2]=3;B=S+(f*352|0)+8|0;A=c[B+4>>2]|0;if((C|0)>(A|0)|((C|0)==(A|0)?d>>>0>(c[B>>2]|0)>>>0:0)){h=f;B=32}else{B=S+(f*352|0)+32|0;g=c[B+4>>2]|0;h=H;c[h>>2]=c[B>>2];c[h+4>>2]=g;h=M;c[h>>2]=-1;c[h+4>>2]=-1;c[N>>2]=c[S+(f*352|0)+52>>2];h=f;g=1;B=32}}else f=i}while(0);if((B|0)==32){B=0;f=Ya(a)|0;if((f|0)<0)break;else{A=b;B=33}}if((B|0)==33){B=0;Db(L,X)|0;if((c[W>>2]|0)>3){f=Va(a,Y)|0;if((f|0)<0){f=Va(a,Y)|0;if(!g){B=36;break}}w=0-f|0;z=c[F>>2]|0;if((z|0)>0){t=z+-1|0;s=a+496+(t<<5)+16|0;r=c[s>>2]|0;s=c[s+4>>2]|0;t=c[a+496+(t<<5)+12>>2]|0;e=H;b=c[e>>2]|0;e=c[e+4>>2]|0;if((b|0)==-1&(e|0)==-1){if(t|0){c[F>>2]=0;b=0;i=A;f=C;continue}m=S+(h*352|0)+32|0;o=c[m>>2]|0;m=c[m+4>>2]|0;do if((r|0)==-1&(s|0)==-1){b=o;e=m}else{if((f|0)<0){if((s|0)<0?(y=f+-1|0,x=((y|0)<0)<<31>>31,!((x|0)>(s|0)|(x|0)==(s|0)&y>>>0>r>>>0)):0){b=o;e=m;break}y=rf(-1,2147483647,w|0,((w|0)<0)<<31>>31|0)|0;x=D;if((x|0)<(s|0)|(x|0)==(s|0)&y>>>0<r>>>0){b=rf(-1,2147483647,r|0,s|0)|0;b=~f-b|0;e=0;i=-2147483648}else{b=w;e=r;i=s}}else if(f){y=((f|0)<0)<<31>>31;if(((s|0)>-1|(s|0)==-1&r>>>0>4294967295)&((y|0)>(s|0)|(y|0)==(s|0)&f>>>0>r>>>0)){b=o;e=m;break}y=rf(0,-2147483648,w|0,((w|0)<0)<<31>>31|0)|0;x=D;if((x|0)>(s|0)|(x|0)==(s|0)&y>>>0>r>>>0){b=1-f+r|0;e=-1;i=2147483647}else{b=w;e=r;i=s}}else{b=0;e=r;i=s}b=sf(b|0,((b|0)<0)<<31>>31|0,e|0,i|0)|0;e=D}while(0);i=uf(b|0,e|0,63)|0;j=D;y=uf(o|0,m|0,63)|0;do if((i|0)==(y|0)&(j|0)==(D|0)){k=rf(b|0,e|0,o|0,m|0)|0;j=D;B=57}else{if((i|0)==0&(j|0)==0){i=e^-2147483648;if((i|0)<(m|0)|(i|0)==(m|0)&b>>>0<o>>>0){i=3840;break}else{p=0;q=-2147483648;k=o;j=b}}else{k=rf(0,-2147483648,b|0,e|0)|0;n=D;j=rf(-1,2147483647,o|0,m|0)|0;i=D;y=sf(k|0,n|0,-2,2147483647)|0;x=D;if((x|0)<(i|0)|(x|0)==(i|0)&y>>>0<j>>>0){i=3840;break}else{p=1;q=0;m=n}}k=rf(p|0,q|0,k|0,m|0)|0;k=sf(k|0,D|0,j|0,i|0)|0;j=D;B=57}while(0);if((B|0)==57){B=0;i=c[S+(h*352|0)+52>>2]|0;if((j|0)>-1|(j|0)==-1&k>>>0>4294967295?(y=i+-3840|0,!((j|0)>0|(j|0)==0&k>>>0>((y|0)>0?y:0)>>>0)):0)i=i-k|0;else i=3840}c[N>>2]=i}do if((r|0)==-1&(s|0)==-1){do if((f|0)>0){if((e|0)<0?(B=~f,y=((B|0)<0)<<31>>31,!((y|0)>(e|0)|(y|0)==(e|0)&B>>>0>b>>>0)):0){B=72;break}B=rf(-1,2147483647,f|0,((f|0)<0)<<31>>31|0)|0;y=D;if((y|0)<(e|0)|(y|0)==(e|0)&B>>>0<b>>>0){i=rf(-1,2147483647,b|0,e|0)|0;i=f+-1-i|0;j=0;k=-2147483648;B=71}else{i=f;j=b;k=e;B=71}}else if((f|0)<0){B=((w|0)<0)<<31>>31;if(!(((e|0)>-1|(e|0)==-1&b>>>0>4294967295)&((B|0)>(e|0)|(B|0)==(e|0)&w>>>0>b>>>0))){B=rf(0,-2147483648,f|0,((f|0)<0)<<31>>31|0)|0;y=D;if((y|0)>(e|0)|(y|0)==(e|0)&B>>>0>b>>>0){i=f+1+b|0;j=-1;k=2147483647;B=71}else{i=f;j=b;k=e;B=71}}else B=72}else{i=0;j=b;k=e;B=71}while(0);if((B|0)==71){B=0;y=sf(i|0,((i|0)<0)<<31>>31|0,j|0,k|0)|0;x=D;break}else if((B|0)==72){B=0;x=S+(h*352|0)+24|0;y=c[x>>2]|0;x=c[x+4>>2]|0;break}}else{y=r;x=s}while(0);c:do if(t){u=uf(y|0,x|0,63)|0;v=D;t=uf(b|0,e|0,63)|0;if((u|0)==(t|0)&(v|0)==(D|0)){o=rf(y|0,x|0,b|0,e|0)|0;m=D}else{if((u|0)==0&(v|0)==0){j=x^-2147483648;if((j|0)<(e|0)|(j|0)==(e|0)&y>>>0<b>>>0){B=122;break}else{n=0;o=-2147483648;i=b;k=e;m=y}}else{i=rf(0,-2147483648,y|0,x|0)|0;k=D;m=rf(-1,2147483647,b|0,e|0)|0;j=D;t=sf(i|0,k|0,-2,2147483647)|0;s=D;if((s|0)<(j|0)|(s|0)==(j|0)&t>>>0<m>>>0){B=122;break}else{n=1;o=0}}o=rf(n|0,o|0,i|0,k|0)|0;o=sf(o|0,D|0,m|0,j|0)|0;m=D}t=((f|0)<0)<<31>>31;if((m|0)<(t|0)|(m|0)==(t|0)&o>>>0<f>>>0){q=x^-2147483648;f=rf(0,-2147483648,y|0,x|0)|0;i=D;s=sf(f|0,i|0,-2,2147483647)|0;t=D;if((u|0)==0&(v|0)==0){i=0;f=e;j=b}else{q=rf(1,0,f|0,i|0)|0;r=D;i=0;f=e;j=b;while(1){k=c[Y+(i<<2)>>2]|0;n=((k|0)<0)<<31>>31;o=rf(k|0,n|0,o|0,m|0)|0;p=D;d:do if((p|0)>0|(p|0)==0&o>>>0>0){if((m|0)<0){f=e;break c}c[a+496+(i<<5)+12>>2]=1;j=y;f=x}else{do if((k|0)>0){if((f|0)<0?(w=~k,m=((w|0)<0)<<31>>31,!((m|0)>(f|0)|(m|0)==(f|0)&w>>>0>j>>>0)):0)break d;w=rf(-1,2147483647,k|0,n|0)|0;n=D;if(!((n|0)<(f|0)|(n|0)==(f|0)&w>>>0<j>>>0))break;j=rf(-1,2147483647,j|0,f|0)|0;k=k+~j|0;j=0;f=-2147483648}else{if((k|0)>=0){k=0;break}if((f|0)>-1|(f|0)==-1&j>>>0>4294967295?(w=0-k|0,m=((w|0)<0)<<31>>31,(m|0)>(f|0)|(m|0)==(f|0)&w>>>0>j>>>0):0)break d;w=rf(0,-2147483648,k|0,n|0)|0;n=D;if(!((n|0)>(f|0)|(n|0)==(f|0)&w>>>0>j>>>0))break;k=j+1+k|0;j=-1;f=2147483647}while(0);j=sf(k|0,((k|0)<0)<<31>>31|0,j|0,f|0)|0;f=D}while(0);w=a+496+(i<<5)+16|0;c[w>>2]=j;c[w+4>>2]=f;w=uf(j|0,f|0,63)|0;if((u|0)==(w|0)&(v|0)==(D|0)){o=rf(y|0,x|0,j|0,f|0)|0;m=D}else{n=rf(-1,2147483647,j|0,f|0)|0;w=D;m=(t|0)<(w|0)|(t|0)==(w|0)&s>>>0<n>>>0;w=sf(q|0,r|0,n|0,w|0)|0;o=m?o:w;m=m?p:D}i=i+1|0;if((i|0)>=(z|0)){f=e;break c}}}while(1){k=c[Y+(i<<2)>>2]|0;n=((k|0)<0)<<31>>31;o=rf(k|0,n|0,o|0,m|0)|0;p=D;e:do if((p|0)>0|(p|0)==0&o>>>0>0){if((m|0)<0){f=e;break c}c[a+496+(i<<5)+12>>2]=1;j=y;f=x;B=99}else{do if((k|0)>0){do if((f|0)<0){B=~k;w=((B|0)<0)<<31>>31;if((w|0)>(f|0)|(w|0)==(f|0)&B>>>0>j>>>0)break;B=a+496+(i<<5)+16|0;c[B>>2]=j;c[B+4>>2]=f;B=100;break e}while(0);B=rf(-1,2147483647,k|0,n|0)|0;w=D;if(!((w|0)<(f|0)|(w|0)==(f|0)&B>>>0<j>>>0))break;j=rf(-1,2147483647,j|0,f|0)|0;k=k+~j|0;j=0;f=-2147483648}else{if((k|0)>=0){k=0;break}do if((f|0)>-1|(f|0)==-1&j>>>0>4294967295){B=0-k|0;w=((B|0)<0)<<31>>31;if(!((w|0)>(f|0)|(w|0)==(f|0)&B>>>0>j>>>0))break;B=a+496+(i<<5)+16|0;c[B>>2]=j;c[B+4>>2]=f;B=102;break e}while(0);B=rf(0,-2147483648,k|0,n|0)|0;w=D;if(!((w|0)>(f|0)|(w|0)==(f|0)&B>>>0>j>>>0))break;k=j+1+k|0;j=-1;f=2147483647}while(0);j=sf(k|0,((k|0)<0)<<31>>31|0,j|0,f|0)|0;f=D;B=99}while(0);if((B|0)==99){B=a+496+(i<<5)+16|0;c[B>>2]=j;c[B+4>>2]=f;if((f|0)>-1|(f|0)==-1&j>>>0>4294967295)B=102;else B=100}do if((B|0)==100){B=0;if((q|0)<(f|0)|(q|0)==(f|0)&y>>>0<j>>>0){k=o;m=p;break}k=rf(0,0,j|0,f|0)|0;k=sf(k|0,D^-2147483648|0,y|0,q|0)|0;m=D}else if((B|0)==102){B=0;k=rf(y|0,x|0,j|0,f|0)|0;m=D}while(0);i=i+1|0;if((i|0)<(z|0))o=k;else{f=e;break}}}else B=122}else B=122;while(0);f:do if((B|0)==122){B=0;do if((f|0)<0){if((x|0)<0?(B=f+-1|0,v=((B|0)<0)<<31>>31,!((v|0)>(x|0)|(v|0)==(x|0)&B>>>0>y>>>0)):0){e=rf(-1,2147483647,y|0,x|0)|0;i=y+1|0;p=1;b=0;q=0;B=134;break}B=rf(-1,2147483647,w|0,((w|0)<0)<<31>>31|0)|0;v=D;if((v|0)<(x|0)|(v|0)==(x|0)&B>>>0<y>>>0){b=rf(-1,2147483647,y|0,x|0)|0;b=~f-b|0;e=0;i=-2147483648;B=133}else{b=w;e=y;i=x;B=133}}else if(f){v=((f|0)<0)<<31>>31;if(((x|0)>-1|(x|0)==-1&y>>>0>4294967295)&((v|0)>(x|0)|(v|0)==(x|0)&f>>>0>y>>>0)){e=rf(-1,2147483647,y|0,x|0)|0;i=y+1|0;p=0;b=0;q=0;break}B=rf(0,-2147483648,w|0,((w|0)<0)<<31>>31|0)|0;v=D;if((v|0)>(x|0)|(v|0)==(x|0)&B>>>0>y>>>0){b=1-f+y|0;e=-1;i=2147483647;B=133}else{b=w;e=y;i=x;B=133}}else{b=0;e=y;i=x;B=133}while(0);if((B|0)==133){B=0;b=sf(b|0,((b|0)<0)<<31>>31|0,e|0,i|0)|0;k=D;j=(x|0)<0;e=rf(-1,2147483647,y|0,x|0)|0;i=y+1|0;if((x|0)>-1|(x|0)==-1&y>>>0>4294967295){p=j;q=k}else{p=j;q=k;B=134}}if((B|0)==134){B=0;o=0;j=w;while(1){do if((f|0)>=0)if(!f){j=0;k=y;m=x;B=164}else{m=rf(0,-2147483648,j|0,((j|0)<0)<<31>>31|0)|0;k=D;m=(k|0)>(x|0)|(k|0)==(x|0)&m>>>0>y>>>0;j=j+(m?i:0)|0;k=m?-1:y;m=m?2147483647:x;B=164}else{if(p?(w=f+-1|0,v=((w|0)<0)<<31>>31,!((v|0)>(x|0)|(v|0)==(x|0)&w>>>0>y>>>0)):0){m=0;j=0;break}B=rf(-1,2147483647,j|0,((j|0)<0)<<31>>31|0)|0;w=D;if(!((w|0)<(x|0)|(w|0)==(x|0)&B>>>0<y>>>0)){k=y;m=x;B=164;break}j=~f-e|0;k=0;m=-2147483648;B=164}while(0);if((B|0)==164){B=0;j=sf(j|0,((j|0)<0)<<31>>31|0,k|0,m|0)|0;m=D}k=c[Y+(o<<2)>>2]|0;n=f-k|0;do if((k|0)>0){if((m|0)<0?(w=~k,v=((w|0)<0)<<31>>31,!((v|0)>(m|0)|(v|0)==(m|0)&w>>>0>j>>>0)):0){f=m;break}B=rf(-1,2147483647,k|0,((k|0)<0)<<31>>31|0)|0;w=D;if(!((w|0)<(m|0)|(w|0)==(m|0)&B>>>0<j>>>0)){f=m;B=175;break}j=rf(-1,2147483647,j|0,m|0)|0;k=k+-1-j|0;j=0;f=-2147483648;B=175}else{if((k|0)>=0){k=0;f=m;B=175;break}if((m|0)>-1|(m|0)==-1&j>>>0>4294967295?(w=0-k|0,v=((w|0)<0)<<31>>31,(v|0)>(m|0)|(v|0)==(m|0)&w>>>0>j>>>0):0){f=m;break}B=rf(0,-2147483648,k|0,((k|0)<0)<<31>>31|0)|0;w=D;if(!((w|0)>(m|0)|(w|0)==(m|0)&B>>>0>j>>>0)){f=m;B=175;break}k=j+1+k|0;j=-1;f=2147483647;B=175}while(0);if((B|0)==175){B=0;j=sf(k|0,((k|0)<0)<<31>>31|0,j|0,f|0)|0;f=D}w=a+496+(o<<5)+16|0;c[w>>2]=j;c[w+4>>2]=f;o=o+1|0;if((o|0)==(z|0)){i=z;f=q;break f}else{f=n;j=0-n|0}}}o=0;j=w;while(1){do if((f|0)<0){if(p?(w=f+-1|0,v=((w|0)<0)<<31>>31,!((v|0)>(x|0)|(v|0)==(x|0)&w>>>0>y>>>0)):0){m=0;j=0;break}B=rf(-1,2147483647,j|0,((j|0)<0)<<31>>31|0)|0;w=D;if((w|0)<(x|0)|(w|0)==(x|0)&B>>>0<y>>>0){j=~f-e|0;k=0;m=-2147483648;B=144}else{k=y;m=x;B=144}}else if(f){w=((f|0)<0)<<31>>31;if((w|0)>(x|0)|(w|0)==(x|0)&f>>>0>y>>>0){m=0;j=0}else{m=rf(0,-2147483648,j|0,((j|0)<0)<<31>>31|0)|0;k=D;m=(k|0)>(x|0)|(k|0)==(x|0)&m>>>0>y>>>0;j=j+(m?i:0)|0;k=m?-1:y;m=m?2147483647:x;B=144}}else{j=0;k=y;m=x;B=144}while(0);if((B|0)==144){B=0;j=sf(j|0,((j|0)<0)<<31>>31|0,k|0,m|0)|0;m=D}k=c[Y+(o<<2)>>2]|0;n=f-k|0;do if((k|0)<=0)if((k|0)<0){if((m|0)>-1|(m|0)==-1&j>>>0>4294967295?(w=0-k|0,v=((w|0)<0)<<31>>31,(v|0)>(m|0)|(v|0)==(m|0)&w>>>0>j>>>0):0){f=m;break}B=rf(0,-2147483648,k|0,((k|0)<0)<<31>>31|0)|0;w=D;if(!((w|0)>(m|0)|(w|0)==(m|0)&B>>>0>j>>>0)){f=m;B=155;break}k=j+1+k|0;j=-1;f=2147483647;B=155}else{k=0;f=m;B=155}else{if((m|0)<0?(w=~k,v=((w|0)<0)<<31>>31,!((v|0)>(m|0)|(v|0)==(m|0)&w>>>0>j>>>0)):0){f=m;break}B=rf(-1,2147483647,k|0,((k|0)<0)<<31>>31|0)|0;w=D;if(!((w|0)<(m|0)|(w|0)==(m|0)&B>>>0<j>>>0)){f=m;B=155;break}j=rf(-1,2147483647,j|0,m|0)|0;k=k+-1-j|0;j=0;f=-2147483648;B=155}while(0);if((B|0)==155){B=0;j=sf(k|0,((k|0)<0)<<31>>31|0,j|0,f|0)|0;f=D}w=a+496+(o<<5)+16|0;c[w>>2]=j;c[w+4>>2]=f;o=o+1|0;if((o|0)==(z|0)){i=z;f=q;break}else{f=n;j=0-n|0}}}while(0);z=H;c[z>>2]=b;c[z+4>>2]=f;z=M;c[z>>2]=d;c[z+4>>2]=C;c[F>>2]=i;if((i|0)>0){B=178;break}}f=A}else f=A}b=0;i=f;f=C}if((B|0)==8)f=(d|0)!=-1|(C|0)!=-1?d:-2;else if((B|0)==30){f=Ya(a)|0;f=(f|0)<0?f:1}else if((B|0)==36){Z=-3;l=_;return Z|0}else if((B|0)==178){Z=1;l=_;return Z|0}Z=f;l=_;return Z|0}function jb(a){a=a|0;var b=0;if((c[a+92>>2]|0)<2){b=-1;a=-131;D=b;return a|0}b=a+48|0;a=c[b+4>>2]|0;b=c[b>>2]|0;D=a;return b|0}function kb(a){a=a|0;var b=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;if((c[a+92>>2]|0)<2){r=-1;s=-131;D=r;return s|0}b=a+104|0;f=c[b>>2]|0;b=c[b+4>>2]|0;if((f|0)==-1&(b|0)==-1){r=0;s=0;D=r;return s|0}d=(c[a+8704>>2]|0)-(c[a+8700>>2]|0)|0;s=(d|0)>0;d=s?d:0;e=0-d|0;if(s)if(!(b>>>0<0|(b|0)==0&f>>>0<d>>>0)){s=rf(0,-2147483648,e|0,((e|0)<0)<<31>>31|0)|0;r=D;if((r|0)>(b|0)|(r|0)==(b|0)&s>>>0>f>>>0){e=f+1-d|0;d=-1;b=2147483647;g=7}else{d=f;g=7}}else e=f;else{e=0;d=f;g=7}if((g|0)==7){e=sf(e|0,((e|0)<0)<<31>>31|0,d|0,b|0)|0;b=D}p=(c[a+20>>2]|0)==0;if(p)s=0;else s=c[a+96>>2]|0;d=c[a+100>>2]|0;do if((d|0)>0){if((b|0)<0?(r=~d,q=((r|0)<0)<<31>>31,!((q|0)>(b|0)|(q|0)==(b|0)&r>>>0>e>>>0)):0){g=21;break}r=rf(-1,2147483647,d|0,((d|0)<0)<<31>>31|0)|0;q=D;if((q|0)<(b|0)|(q|0)==(b|0)&r>>>0<e>>>0){e=rf(-1,2147483647,e|0,b|0)|0;d=d+~e|0;e=0;b=-2147483648;g=20}else g=20}else if((d|0)<0){if((b|0)>-1|(b|0)==-1&e>>>0>4294967295?(r=0-d|0,q=((r|0)<0)<<31>>31,(q|0)>(b|0)|(q|0)==(b|0)&r>>>0>e>>>0):0){g=21;break}r=rf(0,-2147483648,d|0,((d|0)<0)<<31>>31|0)|0;q=D;if((q|0)>(b|0)|(q|0)==(b|0)&r>>>0>e>>>0){d=e+1+d|0;e=-1;b=2147483647;g=20}else g=20}else{d=0;g=20}while(0);if((g|0)==20){d=sf(d|0,((d|0)<0)<<31>>31|0,e|0,b|0)|0;r=c[a+28>>2]|0;q=D}else if((g|0)==21){r=c[a+28>>2]|0;d=r+(s*352|0)+24|0;q=c[d+4>>2]|0;d=c[d>>2]|0}if((s|0)>0){o=0;e=0;a=0;f=0;b=0;do{g=r+(o*352|0)+24|0;j=c[g>>2]|0;g=c[g+4>>2]|0;l=r+(o*352|0)+32|0;k=c[l>>2]|0;l=c[l+4>>2]|0;h=uf(j|0,g|0,63)|0;i=D;n=uf(k|0,l|0,63)|0;do if((h|0)==(n|0)&(i|0)==(D|0)){f=rf(j|0,g|0,k|0,l|0)|0;b=D}else{if((h|0)==0&(i|0)==0){h=g^-2147483648;if((h|0)<(l|0)|(h|0)==(l|0)&j>>>0<k>>>0)break;else{m=0;n=-2147483648;g=k;i=l;f=j;b=h}}else{g=rf(0,-2147483648,j|0,g|0)|0;i=D;h=rf(-1,2147483647,k|0,l|0)|0;j=D;n=sf(g|0,i|0,-2,2147483647)|0;m=D;if((m|0)<(j|0)|(m|0)==(j|0)&n>>>0<h>>>0)break;else{m=1;n=0;f=h;b=j}}n=rf(m|0,n|0,g|0,i|0)|0;f=sf(n|0,D|0,f|0,b|0)|0;b=D}while(0);f=rf(f|0,b|0,c[r+(o*352|0)+52>>2]|0,0)|0;b=D;e=sf(f|0,b|0,e|0,a|0)|0;a=D;o=o+1|0}while((o|0)!=(s|0));k=a}else{e=0;k=0}do if(!p){a=r+(s*352|0)+24|0;g=c[a>>2]|0;a=c[a+4>>2]|0;if((q|0)>=0){o=(a|0)<0;p=(a|0)<(q|0)|(a|0)==(q|0)&g>>>0<d>>>0;f=r+(s*352|0)+32|0;b=c[f+4>>2]|0;f=c[f>>2]|0;d=o?d:p?g:d;a=o?q:p?a:q;g=37;break}if((a|0)>-1|(a|0)==-1&g>>>0>4294967295|((a|0)<(q|0)|(a|0)==(q|0)&g>>>0<d>>>0)){d=g;g=35}else{f=r+(s*352|0)+32|0;b=c[f+4>>2]|0;f=c[f>>2]|0;a=q;g=36}}else{a=q;g=35}while(0);if((g|0)==35){b=r+(s*352|0)+32|0;f=c[b>>2]|0;b=c[b+4>>2]|0;if((a|0)<0)g=36;else g=37}if((g|0)==36)if((b|0)>-1|(b|0)==-1&f>>>0>4294967295)h=a;else g=38;else if((g|0)==37)if((b|0)<0){r=k;s=e;D=r;return s|0}else g=38;if((g|0)==38)if((b|0)<(a|0)|(b|0)==(a|0)&f>>>0<d>>>0)h=a;else{r=k;s=e;D=r;return s|0}a=uf(d|0,h|0,63)|0;g=D;q=uf(f|0,b|0,63)|0;if((a|0)==(q|0)&(g|0)==(D|0)){d=rf(d|0,h|0,f|0,b|0)|0;b=D}else{if((a|0)==0&(g|0)==0){a=h^-2147483648;if((a|0)<(b|0)|(a|0)==(b|0)&d>>>0<f>>>0){r=2147483647;s=-1;D=r;return s|0}else{i=0;j=-2147483648}}else{g=rf(0,-2147483648,d|0,h|0)|0;h=D;d=rf(-1,2147483647,f|0,b|0)|0;a=D;q=sf(g|0,h|0,-2,2147483647)|0;p=D;if((p|0)<(a|0)|(p|0)==(a|0)&q>>>0<d>>>0){r=2147483647;s=-1;D=r;return s|0}else{i=1;j=0;f=g;b=h}}b=rf(i|0,j|0,f|0,b|0)|0;d=sf(b|0,D|0,d|0,a|0)|0;b=D}r=c[r+(s*352|0)+52>>2]|0;s=(b|0)<0|(b|0)==0&d>>>0<r>>>0;r=rf(d|0,b|0,r|0,0)|0;s=sf((s?0:r)|0,(s?0:D)|0,e|0,k|0)|0;r=D;D=r;return s|0}function lb(a,b,d,e){a=a|0;b=b|0;d=d|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,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=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;I=a+92|0;f=c[I>>2]|0;if((f|0)<2){O=-131;return O|0}J=a+28|0;K=a+20|0;N=a+8700|0;v=a+8704|0;w=a+8656|0;x=a+8660|0;y=a+100|0;z=a+104|0;L=a+8696|0;B=a+24|0;C=a+8668|0;u=a+8664|0;E=a+120|0;F=a+128|0;G=a+8672|0;M=a+96|0;a:while(1){do if((f|0)>3){if(!(c[K>>2]|0))f=0;else f=c[M>>2]|0;t=c[(c[J>>2]|0)+(f*352|0)+48>>2]|0;g=c[N>>2]|0;f=(c[v>>2]|0)-g|0;if((f|0)>0){O=8;break a}h=c[w>>2]|0;if((h|0)<(c[x>>2]|0)){q=a+496+(h<<5)|0;c[w>>2]=h+1;r=c[y>>2]|0;f=c[q>>2]|0;s=a+496+(h<<5)+4|0;g=Gd(f,c[s>>2]|0)|0;if((g|0)<0)p=-136;else{p=S(zd(f,48e3)|0,g)|0;p=(p|0)>5760?-136:p}o=a+496+(h<<5)+16|0;n=c[o>>2]|0;o=c[o+4>>2]|0;do if(!(c[a+496+(h<<5)+12>>2]|0))j=p;else{i=z;k=c[i>>2]|0;i=c[i+4>>2]|0;f=(i|0)>-1|(i|0)==-1&k>>>0>4294967295;g=(o|0)>(i|0)|(o|0)==(i|0)&n>>>0>k>>>0;if((o|0)<0){if(!(f|g)){j=0;break}}else if(!(f&g)){j=0;break}f=uf(n|0,o|0,63)|0;g=D;m=uf(k|0,i|0,63)|0;if((f|0)==(m|0)&(g|0)==(D|0)){g=rf(n|0,o|0,k|0,i|0)|0;f=D}else{if((f|0)==0&(g|0)==0){f=o^-2147483648;if((f|0)<(i|0)|(f|0)==(i|0)&n>>>0<k>>>0){j=p;break}else{l=0;m=-2147483648;h=k;g=n}}else{h=rf(0,-2147483648,n|0,o|0)|0;j=D;g=rf(-1,2147483647,k|0,i|0)|0;f=D;m=sf(h|0,j|0,-2,2147483647)|0;l=D;if((l|0)<(f|0)|(l|0)==(f|0)&m>>>0<g>>>0){j=p;break}else{l=1;m=0;i=j}}m=rf(l|0,m|0,h|0,i|0)|0;g=sf(m|0,D|0,g|0,f|0)|0;f=D}m=((p|0)<0)<<31>>31;l=(f|0)<(m|0)|(f|0)==(m|0)&g>>>0<p>>>0;j=l?g:p}while(0);m=z;c[m>>2]=n;c[m+4>>2]=o;if((S(p,t)|0)<=(d|0)){f=c[C>>2]|0;if((f|0)!=0?(H=xa[f&0](c[G>>2]|0,c[u>>2]|0,b,q,p,t,7040,c[M>>2]|0)|0,(H|0)!=6720):0)if((H|0)>0){f=-136;O=55;break a}else f=H;else f=Qd(c[u>>2]|0,c[q>>2]|0,c[s>>2]|0,b,p,0)|0;if((f|0)<0){f=-136;O=55;break a}if((j|0)<=0)break;h=(j|0)<(r|0)?j:r;c[y>>2]=r-h;f=j-h|0;g=(f|0)>0;if((h|0)>0&g)Ff(b|0,b+((S(h,t)|0)<<2)|0,S(t<<2,f)|0)|0;t=c[s>>2]|0;s=E;t=sf(c[s>>2]|0,c[s+4>>2]|0,t|0,((t|0)<0)<<31>>31|0)|0;s=E;c[s>>2]=t;c[s+4>>2]=D;s=F;s=sf(c[s>>2]|0,c[s+4>>2]|0,f|0,((f|0)<0)<<31>>31|0)|0;t=F;c[t>>2]=s;c[t+4>>2]=D;if(g){O=49;break a}else break}f=c[L>>2]|0;if(!f){if(c[K>>2]|0){h=c[J>>2]|0;i=c[B>>2]|0;if((i|0)>0){f=1;g=0;do{o=c[h+(g*352|0)+48>>2]|0;f=(f|0)>(o|0)?f:o;g=g+1|0}while((g|0)!=(i|0));f=f*23040|0}else f=23040}else f=184320;f=kf(f)|0;c[L>>2]=f;if(!f){f=-129;O=55;break a}}g=c[C>>2]|0;if((g|0)!=0?(A=xa[g&0](c[G>>2]|0,c[u>>2]|0,f,q,p,t,7040,c[M>>2]|0)|0,(A|0)!=6720):0)if((A|0)>0){f=-136;O=55;break a}else f=A;else f=Qd(c[u>>2]|0,c[q>>2]|0,c[s>>2]|0,f,p,0)|0;if((f|0)<0){f=-136;O=55;break a}t=(j|0)<(r|0)?j:r;c[y>>2]=r-t;c[N>>2]=t;c[v>>2]=j;r=c[s>>2]|0;s=E;r=sf(c[s>>2]|0,c[s+4>>2]|0,r|0,((r|0)<0)<<31>>31|0)|0;s=E;c[s>>2]=r;c[s+4>>2]=D;s=j-t|0;t=F;s=sf(c[t>>2]|0,c[t+4>>2]|0,s|0,((s|0)<0)<<31>>31|0)|0;t=F;c[t>>2]=s;c[t+4>>2]=D}else O=51}else O=51;while(0);if((O|0)==51){O=0;f=ib(a,0,-1,-1,1,0)|0;if((f|0)==-2){O=52;break}if((f|0)<0){O=55;break}}f=c[I>>2]|0}if((O|0)==8){if((S(f,t)|0)>(d|0))f=(d|0)/(t|0)|0;Ef(b|0,(c[L>>2]|0)+((S(g,t)|0)<<2)|0,S(t<<2,f)|0)|0;c[N>>2]=f+g;if(!e){O=f;return O|0}c[e>>2]=c[M>>2];O=f;return O|0}else if((O|0)==49){if(!e){O=f;return O|0}c[e>>2]=c[M>>2];O=f;return O|0}else if((O|0)==52){if(!e){O=0;return O|0}c[e>>2]=c[M>>2];O=0;return O|0}else if((O|0)==55)return f|0;return 0}function mb(a,d,e,f,h,i){a=a|0;d=d|0;e=e|0;f=f|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0.0,t=0,u=0,v=0,w=0,x=0.0,y=0,z=0,A=0,B=0,C=0,D=0.0;if((S(i,h)|0)>(e|0))h=(e|0)/(i|0)|0;r=a+9016|0;o=(i|0)>0;e=a+8716|0;if((c[r>>2]|0)!=(i|0)&o)tf(e|0,0,i<<2|0)|0;yd(f,h,i,e);if(c[a+9012>>2]|0){j=S(h,i)|0;if((j|0)>0)e=0;else{c[r>>2]=i;return h|0}do{s=+g[f+(e<<2)>>2]*32768.0;q=s<32767.0;a=(q?s:32767.0)<-32768.0;b[d+(e<<1)>>1]=df(a|q^1?(a?-32768.0:32767.0):s)|0;e=e+1|0}while((e|0)!=(j|0));c[r>>2]=i;return h|0}p=a+9004|0;e=c[p>>2]|0;q=a+9008|0;j=(c[r>>2]|0)!=(i|0)?65:c[q>>2]|0;if((j|0)>64)tf(a+8748|0,0,i<<4|0)|0;if((h|0)>0){n=0;do{if(o){m=S(n,i)|0;if((j|0)>16){k=1;l=0;do{u=l+m|0;x=+g[f+(u<<2)>>2];k=x==0.0&k;C=l<<2;t=a+8876+(C<<2)|0;w=a+8748+(C<<2)|0;A=C|1;v=a+8876+(A<<2)|0;A=a+8748+(A<<2)|0;B=C|2;y=a+8876+(B<<2)|0;B=a+8748+(B<<2)|0;D=+g[B>>2];C=C|3;z=a+8876+(C<<2)|0;C=a+8748+(C<<2)|0;s=+g[t>>2]*2.2374000549316406-+g[w>>2]*.902999997138977+0.0+(+g[v>>2]*-.7339000105857849-+g[A>>2]*.011599999852478504)+(+g[y>>2]*-.1251000016927719-D*-.5853000283241272)+(+g[z>>2]*-.6032999753952026-+g[C>>2]*-.257099986076355);g[C>>2]=D;c[B>>2]=c[A>>2];c[A>>2]=c[w>>2];c[z>>2]=c[y>>2];c[y>>2]=c[v>>2];c[v>>2]=c[t>>2];g[w>>2]=s;s=x*32753.0-s+0.0;w=s<32767.0;v=(w?s:32767.0)<-32768.0;b[d+(u<<1)>>1]=df(v|w^1?(v?-32768.0:32767.0):s)|0;g[t>>2]=0.0;l=l+1|0}while((l|0)!=(i|0))}else{k=1;l=0;do{B=l+m|0;x=+g[f+(B<<2)>>2];k=x==0.0&k;t=l<<2;C=a+8876+(t<<2)|0;z=a+8748+(t<<2)|0;v=t|1;A=a+8876+(v<<2)|0;v=a+8748+(v<<2)|0;u=t|2;y=a+8876+(u<<2)|0;u=a+8748+(u<<2)|0;s=+g[u>>2];t=t|3;w=a+8876+(t<<2)|0;t=a+8748+(t<<2)|0;D=+g[C>>2]*2.2374000549316406-+g[z>>2]*.902999997138977+0.0+(+g[A>>2]*-.7339000105857849-+g[v>>2]*.011599999852478504)+(+g[y>>2]*-.1251000016927719-s*-.5853000283241272)+(+g[w>>2]*-.6032999753952026-+g[t>>2]*-.257099986076355);g[t>>2]=s;c[u>>2]=c[v>>2];c[v>>2]=c[z>>2];c[w>>2]=c[y>>2];c[y>>2]=c[A>>2];c[A>>2]=c[C>>2];g[z>>2]=D;D=x*32753.0-D;z=(S(e,96314165)|0)+907633515|0;e=(S(z,96314165)|0)+907633515|0;x=D+(+(z>>>0)*2.3283064365386963e-10-+(e>>>0)*2.3283064365386963e-10);z=x<32767.0;A=(z?x:32767.0)<-32768.0;A=df(A|z^1?(A?-32768.0:32767.0):x)|0;b[d+(B<<1)>>1]=A;D=+(A|0)-D;A=D<1.5;B=(A?D:1.5)<-1.5;g[C>>2]=B|A^1?(B?-1.5:1.5):D;l=l+1|0}while((l|0)!=(i|0))}}else k=1;j=k|0?j+1|0:0;n=n+1|0}while((n|0)!=(h|0))}c[q>>2]=(j|0)<65?j:65;c[p>>2]=e;c[r>>2]=i;return h|0}function nb(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,h=0,i=0.0,j=0.0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0.0;f=lb(a,0,0,0)|0;if((f|0)<=-1){q=f;return q|0}if((c[a+92>>2]|0)<=3){q=f;return q|0}p=a+8700|0;q=c[p>>2]|0;f=(c[a+8704>>2]|0)-q|0;if((f|0)<=0){q=f;return q|0}if(!(c[a+20>>2]|0))h=0;else h=c[a+96>>2]|0;n=c[(c[a+28>>2]|0)+(h*352|0)+48>>2]|0;o=(c[a+8696>>2]|0)+((S(n,q)|0)<<2)|0;if((n|0)==1){f=mb(a,d,e>>1,o,f,1)|0;if((f|0)>0){h=f;do{e=h;h=h+-1|0;o=b[d+(h<<1)>>1]|0;a=h<<1;b[d+((a|1)<<1)>>1]=o;b[d+(a<<1)>>1]=o}while((e|0)>1)}}else{if((n|0)>2){m=e>>1;f=(m|0)>(f|0)?f:m;if((f|0)>0){l=n+-3|0;k=0;do{m=S(k,n)|0;h=0;i=0.0;j=0.0;do{r=+g[o+(h+m<<2)>>2];j=j+ +g[8+(l<<6)+(h<<3)>>2]*r;i=i+r*+g[8+(l<<6)+(h<<3)+4>>2];h=h+1|0}while((h|0)!=(n|0));m=k<<1;g[o+(m<<2)>>2]=j;g[o+((m|1)<<2)>>2]=i;k=k+1|0}while((k|0)<(f|0))}}f=mb(a,d,e,o,f,2)|0}c[p>>2]=f+q;q=f;return q|0}function ob(a,b,d){a=a|0;b=b|0;d=d|0;b=Ye(b,d)|0;if(!b)return b|0;c[a>>2]=c[98];c[a+4>>2]=c[99];c[a+8>>2]=c[100];c[a+12>>2]=c[101];return b|0}function pb(a,b,c){a=a|0;b=b|0;c=c|0;do if((c|0)<1)b=0;else{b=ff(b,1,c,a)|0;if((b|0)==0?(Oe(a)|0)==0:0){b=-128;break}}while(0);return b|0}function qb(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return $e(a,b,d)|0}function rb(a){a=a|0;a=jf(a)|0;D=((a|0)<0)<<31>>31;return a|0}function sb(b){b=b|0;return a[(c[b>>2]|0)+5>>0]&2|0}function tb(a){a=a|0;var b=0;a=c[a>>2]|0;b=vf(d[a+13>>0]|0|0,0,8)|0;b=vf(b|(d[a+12>>0]|0)|0,D|0,8)|0;b=vf(b|(d[a+11>>0]|0)|0,D|0,8)|0;b=vf(b|(d[a+10>>0]|0)|0,D|0,8)|0;b=vf(b|(d[a+9>>0]|0)|0,D|0,8)|0;b=vf(b|(d[a+8>>0]|0)|0,D|0,8)|0;b=vf(b|(d[a+7>>0]|0)|0,D|0,8)|0;return b|(d[a+6>>0]|0)|0}function ub(a){a=a|0;a=c[a>>2]|0;return (d[a+15>>0]|0)<<8|(d[a+14>>0]|0)|(d[a+16>>0]|0)<<16|(d[a+17>>0]|0)<<24|0}function vb(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if(!a){a=-1;return a|0}tf(a+8|0,0,352)|0;c[a+4>>2]=16384;c[a+24>>2]=1024;d=kf(16384)|0;c[a>>2]=d;g=kf(4096)|0;e=a+16|0;c[e>>2]=g;f=kf(8192)|0;h=a+20|0;c[h>>2]=f;do if(!d){d=g;b=g}else{if((f|0)==0|(g|0)==0){lf(d);b=c[e>>2]|0;d=b;break}c[a+336>>2]=b;a=0;return a|0}while(0);if(d|0)lf(b);b=c[h>>2]|0;if(b|0)lf(b);tf(a|0,0,360)|0;a=-1;return a|0}function wb(a){a=a|0;var b=0;if(!a)return 0;b=c[a>>2]|0;if(b|0)lf(b);b=c[a+16>>2]|0;if(b|0)lf(b);b=c[a+20>>2]|0;if(b|0)lf(b);tf(a|0,0,360)|0;return 0}function xb(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=a+24|0;d=c[f>>2]|0;if((d-b|0)>(c[a+28>>2]|0)){a=0;return a|0}if((d|0)>(2147483647-b|0)){b=c[a>>2]|0;if(b|0)lf(b);b=c[a+16>>2]|0;if(b|0)lf(b);b=c[a+20>>2]|0;if(b|0)lf(b);tf(a|0,0,360)|0;a=-1;return a|0}d=d+b|0;d=(d|0)<2147483615?d+32|0:d;g=a+16|0;b=mf(c[g>>2]|0,d<<2)|0;if(!b){b=c[a>>2]|0;if(b|0)lf(b);b=c[g>>2]|0;if(b|0)lf(b);b=c[a+20>>2]|0;if(b|0)lf(b);tf(a|0,0,360)|0;a=-1;return a|0}c[g>>2]=b;e=a+20|0;b=mf(c[e>>2]|0,d<<3)|0;if(b|0){c[e>>2]=b;c[f>>2]=d;a=0;return a|0}b=c[a>>2]|0;if(b|0)lf(b);b=c[g>>2]|0;if(b|0)lf(b);b=c[e>>2]|0;if(b|0)lf(b);tf(a|0,0,360)|0;a=-1;return a|0}function yb(a){a=a|0;if(!a)return 0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;c[a+12>>2]=0;c[a+16>>2]=0;c[a+20>>2]=0;c[a+24>>2]=0;return 0}function zb(a){a=a|0;var b=0;if(!a)return 0;b=c[a>>2]|0;if(b|0)lf(b);c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;c[a+12>>2]=0;c[a+16>>2]=0;c[a+20>>2]=0;c[a+24>>2]=0;return 0}function Ab(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+4|0;d=c[h>>2]|0;if((d|0)<=-1){a=0;return a|0}g=a+12|0;e=c[g>>2]|0;i=a+8|0;if(!e)e=d;else{f=(c[i>>2]|0)-e|0;c[i>>2]=f;if((f|0)>0){d=c[a>>2]|0;Ff(d|0,d+e|0,f|0)|0;d=c[h>>2]|0}c[g>>2]=0;e=d}d=c[i>>2]|0;do if((e-d|0)<(b|0)){f=b+4096+d|0;d=c[a>>2]|0;if(!d)e=kf(f)|0;else e=mf(d,f)|0;if(e|0){c[a>>2]=e;c[h>>2]=f;d=c[i>>2]|0;break}d=c[a>>2]|0;if(d|0)lf(d);c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;c[a+12>>2]=0;c[a+16>>2]=0;c[a+20>>2]=0;c[a+24>>2]=0;a=0;return a|0}else e=c[a>>2]|0;while(0);a=e+d|0;return a|0}function Bb(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[a+4>>2]|0;if((e|0)<=-1){e=-1;return e|0}d=a+8|0;a=(c[d>>2]|0)+b|0;if((a|0)>(e|0)){e=-1;return e|0}c[d>>2]=a;e=0;return e|0}function Cb(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,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=l;l=l+16|0;r=x;g=c[b>>2]|0;w=b+12|0;s=c[w>>2]|0;u=g+s|0;t=b+8|0;s=(c[t>>2]|0)-s|0;if((c[b+4>>2]|0)<=-1){w=0;l=x;return w|0}v=b+20|0;f=c[v>>2]|0;do if(!f){if((s|0)<27){w=0;l=x;return w|0}if(Le(u,22344,4)|0){f=b+24|0;break}j=u+26|0;g=a[j>>0]|0;f=(g&255)+27|0;if((s|0)<(f|0)){w=0;l=x;return w|0}if(g<<24>>24){h=b+24|0;g=0;i=c[h>>2]|0;do{i=i+(d[u+(g+27)>>0]|0)|0;c[h>>2]=i;g=g+1|0}while((g|0)<(d[j>>0]|0|0))}c[v>>2]=f;h=11}else h=11;while(0);do if((h|0)==11){q=b+24|0;if((f+(c[q>>2]|0)|0)>(s|0)){w=0;l=x;return w|0}k=u+22|0;m=d[k>>0]|d[k+1>>0]<<8|d[k+2>>0]<<16|d[k+3>>0]<<24;c[r>>2]=m;a[k>>0]=0;a[k+1>>0]=0;a[k+2>>0]=0;a[k+3>>0]=0;h=c[v>>2]|0;i=u+h|0;j=c[q>>2]|0;n=u+23|0;o=u+24|0;p=u+25|0;a[k>>0]=0;a[k+1>>0]=0;a[k+2>>0]=0;a[k+3>>0]=0;if((h|0)>0){g=0;f=0;do{g=c[408+(((d[u+f>>0]|0)^g>>>24)<<2)>>2]^g<<8;f=f+1|0}while((f|0)!=(h|0))}else g=0;f=g>>>24;if((j|0)>0){h=0;do{g=c[408+(((d[i+h>>0]|0)^f)<<2)>>2]^g<<8;h=h+1|0;f=g>>>24}while((h|0)!=(j|0))}a[k>>0]=g;a[n>>0]=g>>>8;a[o>>0]=g>>>16;a[p>>0]=f;if(Le(r,k,4)|0){a[k>>0]=m;a[k+1>>0]=m>>8;a[k+2>>0]=m>>16;a[k+3>>0]=m>>24;f=q;g=c[b>>2]|0;break}f=c[w>>2]|0;g=(c[b>>2]|0)+f|0;h=c[v>>2]|0;i=c[q>>2]|0;if(e|0){c[e>>2]=g;c[e+4>>2]=h;c[e+8>>2]=g+h;c[e+12>>2]=i}c[b+16>>2]=0;b=i+h|0;c[w>>2]=b+f;c[v>>2]=0;c[q>>2]=0;w=b;l=x;return w|0}while(0);c[v>>2]=0;c[f>>2]=0;f=ge(u+1|0,79,s+-1|0)|0;if(!f)f=g+(c[t>>2]|0)|0;v=f;c[w>>2]=v-g;w=u-v|0;l=x;return w|0}function Db(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,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;y=c[e>>2]|0;g=c[e+8>>2]|0;e=c[e+12>>2]|0;n=a[y+4>>0]|0;t=a[y+5>>0]|0;q=t&1;p=t&2;t=t&4;v=vf(d[y+13>>0]|0|0,0,8)|0;v=vf(v|(d[y+12>>0]|0)|0,D|0,8)|0;v=vf(v|(d[y+11>>0]|0)|0,D|0,8)|0;v=vf(v|(d[y+10>>0]|0)|0,D|0,8)|0;v=vf(v|(d[y+9>>0]|0)|0,D|0,8)|0;v=vf(v|(d[y+8>>0]|0)|0,D|0,8)|0;v=vf(v|(d[y+7>>0]|0)|0,D|0,8)|0;u=D;v=v|(d[y+6>>0]|0);m=(d[y+15>>0]|0)<<8|(d[y+14>>0]|0)|(d[y+16>>0]|0)<<16|(d[y+17>>0]|0)<<24;w=(d[y+19>>0]|0)<<8|(d[y+18>>0]|0)|(d[y+20>>0]|0)<<16|(d[y+21>>0]|0)<<24;r=a[y+26>>0]|0;x=r&255;if(!b){b=-1;return b|0}f=c[b>>2]|0;if(!f){b=-1;return b|0}k=b+36|0;l=c[k>>2]|0;h=b+12|0;i=c[h>>2]|0;if(i|0){s=b+8|0;j=(c[s>>2]|0)-i|0;c[s>>2]=j;if(j|0)Ff(f|0,f+i|0,j|0)|0;c[h>>2]=0}if(l|0){i=b+28|0;f=c[i>>2]|0;h=f-l|0;if(h){f=c[b+16>>2]|0;Ff(f|0,f+(l<<2)|0,h<<2|0)|0;f=c[b+20>>2]|0;Ff(f|0,f+(l<<3)|0,(c[i>>2]|0)-l<<3|0)|0;f=c[i>>2]|0}c[i>>2]=f-l;s=b+32|0;c[s>>2]=(c[s>>2]|0)-l;c[k>>2]=0}if(n<<24>>24?1:(m|0)!=(c[b+336>>2]|0)){b=-1;return b|0}if(xb(b,x+1|0)|0){b=-1;return b|0}s=b+340|0;h=c[s>>2]|0;if((w|0)!=(h|0)){i=b+32|0;j=c[i>>2]|0;k=b+28|0;l=c[k>>2]|0;if((j|0)<(l|0)){m=c[b+16>>2]|0;n=b+8|0;f=j;o=c[n>>2]|0;do{o=o-(c[m+(f<<2)>>2]&255)|0;f=f+1|0}while((f|0)<(l|0));c[n>>2]=o}c[k>>2]=j;if((h|0)!=-1){n=c[b+16>>2]|0;o=j+1|0;c[k>>2]=o;c[n+(j<<2)>>2]=1024;c[i>>2]=o}}a:do if(q<<24>>24){q=c[b+28>>2]|0;if((q|0)>=1?(c[(c[b+16>>2]|0)+(q+-1<<2)>>2]|0)!=1024:0){f=0;break}if(!(r<<24>>24)){p=0;f=0}else{f=0;while(1){r=a[y+(f+27)>>0]|0;q=r&255;g=g+q|0;e=e-q|0;r=r<<24>>24==-1;f=((r^1)&1)+f|0;if(!r){p=0;break a}f=f+1|0;if((f|0)>=(x|0)){p=0;break}}}}else f=0;while(0);if(e|0){j=b+4|0;i=c[j>>2]|0;k=b+8|0;h=c[k>>2]|0;do if((i-e|0)>(h|0))i=c[b>>2]|0;else{if((i|0)>(2147483647-e|0)){e=c[b>>2]|0;if(e|0)lf(e);e=c[b+16>>2]|0;if(e|0)lf(e);e=c[b+20>>2]|0;if(e|0)lf(e);tf(b|0,0,360)|0;b=-1;return b|0}h=i+e|0;h=(h|0)<2147482623?h+1024|0:h;i=mf(c[b>>2]|0,h)|0;if(i|0){c[j>>2]=h;c[b>>2]=i;h=c[k>>2]|0;break}e=c[b>>2]|0;if(e|0)lf(e);e=c[b+16>>2]|0;if(e|0)lf(e);e=c[b+20>>2]|0;if(e|0)lf(e);tf(b|0,0,360)|0;b=-1;return b|0}while(0);Ef(i+h|0,g|0,e|0)|0;c[k>>2]=(c[k>>2]|0)+e}l=b+16|0;m=b+28|0;n=b+20|0;o=b+32|0;k=-1;e=p;b:while(1){while(1){if((f|0)>=(x|0))break b;i=a[y+(f+27)>>0]|0;g=i&255;j=c[m>>2]|0;h=(c[l>>2]|0)+(j<<2)|0;c[h>>2]=g;r=(c[n>>2]|0)+(j<<3)|0;c[r>>2]=-1;c[r+4>>2]=-1;if(e|0)c[h>>2]=g|256;e=j+1|0;c[m>>2]=e;f=f+1|0;if(i<<24>>24!=-1)break;else e=0}c[o>>2]=e;k=j;e=0}if((k|0)!=-1){y=(c[n>>2]|0)+(k<<3)|0;c[y>>2]=v;c[y+4>>2]=u}if(t<<24>>24?(c[b+328>>2]=1,z=c[m>>2]|0,(z|0)>0):0){b=(c[l>>2]|0)+(z+-1<<2)|0;c[b>>2]=c[b>>2]|512}c[s>>2]=w+1;b=0;return b|0}function Eb(a){a=a|0;if((c[a+4>>2]|0)<=-1){a=-1;return a|0}a=a+8|0;c[a>>2]=0;c[a+4>>2]=0;c[a+8>>2]=0;c[a+12>>2]=0;c[a+16>>2]=0;a=0;return a|0}function Fb(a,b){a=a|0;b=b|0;var d=0;if(!a){b=-1;return b|0}if(!(c[a>>2]|0)){b=-1;return b|0}c[a+8>>2]=0;c[a+12>>2]=0;c[a+28>>2]=0;c[a+32>>2]=0;c[a+36>>2]=0;c[a+324>>2]=0;c[a+328>>2]=0;c[a+332>>2]=0;c[a+340>>2]=-1;d=a+344|0;c[d>>2]=0;c[d+4>>2]=0;c[d+8>>2]=0;c[d+12>>2]=0;c[a+336>>2]=b;b=0;return b|0}function Gb(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,l=0,m=0,n=0;if(!a){n=0;return n|0}l=c[a>>2]|0;if(!l){n=0;return n|0}n=a+36|0;e=c[n>>2]|0;if((c[a+32>>2]|0)<=(e|0)){n=0;return n|0}h=c[a+16>>2]|0;d=c[h+(e<<2)>>2]|0;if(d&1024|0){c[n>>2]=e+1;n=a+344|0;m=n;m=sf(c[m>>2]|0,c[m+4>>2]|0,1,0)|0;c[n>>2]=m;c[n+4>>2]=D;n=-1;return n|0}m=(b|0)==0;f=d&255;g=d&512;k=d&256;if((f|0)==255){d=g;f=255;do{e=e+1|0;i=c[h+(e<<2)>>2]|0;j=i&255;d=(i&512|0)==0?d:512;f=j+f|0}while((j|0)==255);j=e;i=f}else{j=e;d=g;i=f}if(m){f=a+12|0;d=a+344|0;h=d;e=f;f=c[f>>2]|0;g=c[h>>2]|0;h=c[h+4>>2]|0}else{c[b+12>>2]=d;c[b+8>>2]=k;e=a+12|0;f=c[e>>2]|0;c[b>>2]=l+f;d=a+344|0;h=d;g=c[h>>2]|0;h=c[h+4>>2]|0;l=b+24|0;c[l>>2]=g;c[l+4>>2]=h;a=(c[a+20>>2]|0)+(j<<3)|0;l=c[a+4>>2]|0;m=b+16|0;c[m>>2]=c[a>>2];c[m+4>>2]=l;c[b+4>>2]=i}c[e>>2]=f+i;c[n>>2]=j+1;m=sf(g|0,h|0,1,0)|0;n=d;c[n>>2]=m;c[n+4>>2]=D;n=1;return n|0}function Hb(a){a=a|0;return (S(a,1664525)|0)+1013904223|0}function Ib(a,d,e,f,h,i,j,k,l){a=a|0;d=d|0;e=e|0;f=f|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;var m=0.0,n=0,o=0,p=0,q=0,r=0,s=0;q=c[a+32>>2]|0;p=S(c[a+44>>2]|0,j)|0;a=S(b[q+(i<<1)>>1]|0,j)|0;if((k|0)!=1){o=(p|0)/(k|0)|0;a=(a|0)<(o|0)?a:o}l=(l|0)==0;o=l?a:0;n=l?i:0;l=l?h:0;i=b[q+(l<<1)>>1]|0;a=S(i<<16>>16,j)|0;if((a|0)>0){tf(e|0,0,a<<2|0)|0;k=e+(a<<2)|0}else k=e;if((l|0)<(n|0))a=d+(a<<2)|0;else{f=e+(o<<2)|0;j=p-o|0;j=j<<2;tf(f|0,0,j|0)|0;return}do{h=S(i<<16>>16,j)|0;r=l;l=l+1|0;i=b[q+(l<<1)>>1]|0;d=S(i<<16>>16,j)|0;m=+P(+((+g[f+(r<<2)>>2]+ +g[1432+(r<<2)>>2])*.6931471805599453));do{s=a;a=a+4|0;r=k;k=k+4|0;g[r>>2]=m*+g[s>>2];h=h+1|0}while((h|0)<(d|0))}while((l|0)!=(n|0));r=e+(o<<2)|0;s=p-o|0;s=s<<2;tf(r|0,0,s|0)|0;return}function Jb(a,e,f,h,i,j,k,l,m,n,o,p,q,r){a=a|0;e=e|0;f=f|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;var s=0.0,t=0.0,u=0,v=0,w=0,x=0,y=0,z=0,A=0.0,B=0,C=0.0,D=0,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0.0,N=0.0;if((k|0)>=(l|0))return;L=a+32|0;F=a+8|0;H=(i|0)==1;I=(h|0)==3;J=1<<h;K=(h|0)==31;do{z=c[L>>2]|0;y=k;k=k+1|0;z=(b[z+(k<<1)>>1]|0)-(b[z+(y<<1)>>1]|0)|0;A=+P(+(+(((((c[p+(y<<2)>>2]|0)+1|0)>>>0)/(z>>>0)|0)>>>h|0)*-.125*.6931471805599453))*.5;B=z<<h;C=1.0/+G(+(+(B|0)));D=S(y,i)|0;E=(z|0)>0;x=0;do{a=c[F>>2]|0;u=(S(a,x)|0)+y|0;s=+g[n+(u<<2)>>2];t=+g[o+(u<<2)>>2];if(H){w=a+y|0;M=+g[n+(w<<2)>>2];N=+g[o+(w<<2)>>2];t=t>N?t:N;s=s>M?s:M}s=+g[m+(u<<2)>>2]-(s<t?s:t);s=+P(+(-(s<0.0?0.0:s)*.6931471805599453))*2.0;s=I?s*1.4142135381698608:s;s=C*(A<s?A:s);w=e+((S(x,j)|0)<<2)|0;w=w+(b[(c[L>>2]|0)+(y<<1)>>1]<<h<<2)|0;if(!K){v=f+(x+D)|0;t=-s;if(E){u=0;a=0;do{if(!(d[v>>0]&1<<u)){a=0;do{q=(S(q,1664525)|0)+1013904223|0;g[w+((a<<h)+u<<2)>>2]=q&32768|0?s:t;a=a+1|0}while((a|0)!=(z|0));a=1}u=u+1|0}while((u|0)<(J|0))}else{v=d[v>>0]|0;u=0;a=0;do{a=(v&1<<u|0)==0?1:a;u=u+1|0}while((u|0)<(J|0))}if(a)Kb(w,B,1.0,r)}x=x+1|0}while((x|0)<(i|0))}while((k|0)!=(l|0));return}function Kb(a,b,c,d){a=a|0;b=b|0;c=+c;d=d|0;var e=0.0,f=0,h=0.0;f=(b|0)>0;if(f){d=0;e=0.0}else return;do{h=+g[a+(d<<2)>>2];e=e+h*h;d=d+1|0}while((d|0)!=(b|0));e=1.0/+G(+(e+1.0000000036274937e-15))*c;if(f)d=0;else return;while(1){g[a>>2]=e*+g[a>>2];d=d+1|0;if((d|0)==(b|0))break;else a=a+4|0}return}function Lb(e,f,h,i,j,k,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A){e=e|0;f=f|0;h=h|0;i=i|0;j=j|0;k=k|0;m=m|0;n=n|0;o=o|0;p=p|0;q=q|0;r=r|0;s=s|0;t=t|0;u=u|0;v=v|0;w=w|0;x=x|0;y=y|0;z=z|0;A=A|0;var B=0,C=0.0,D=0.0,E=0.0,F=0,H=0,I=0,J=0.0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=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,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,qa=0,sa=0,ta=0,ua=0,va=0,wa=0,xa=0,ya=0,za=0,Aa=0,Ba=0,Ca=0,Da=0,Ea=0.0;Ca=l;l=l+80|0;ua=Ca+76|0;va=Ca+72|0;wa=Ca+48|0;xa=Ca;ya=c[f+32>>2]|0;za=(k|0)!=0;Aa=za?2:1;Ba=(e|0)==0;ka=p|0?1<<x:1;la=ya+(h<<1)|0;ma=b[la>>1]<<x;B=f+8|0;qa=S((b[ya+((c[B>>2]|0)+-1<<1)>>1]<<x)-ma|0,Aa)|0;na=ra()|0;oa=l;l=l+((1*(qa<<2)|0)+15&-16)|0;B=b[ya+((c[B>>2]|0)+-1<<1)>>1]<<x;qa=0-ma|0;sa=oa+(B<<2)+(qa<<2)|0;c[xa+32>>2]=n;ja=xa+24|0;c[ja>>2]=w;c[xa>>2]=e;c[xa+12>>2]=s;c[xa+4>>2]=f;p=c[z>>2]|0;ha=xa+36|0;c[ha>>2]=p;c[xa+16>>2]=q;c[xa+40>>2]=A;if((h|0)>=(i|0)){o=p;c[z>>2]=o;pa(na|0);l=Ca;return}da=xa+8|0;ea=i+-1|0;fa=xa+28|0;ga=xa+20|0;X=f+12|0;V=za?oa:0;Y=(1<<ka)+-1|0;W=Ba^1;Z=wa+4|0;_=wa+8|0;$=wa+16|0;aa=wa+20|0;ba=wa+12|0;ca=Aa+-1|0;U=(q|0)!=3|(ka|0)>1;T=h;O=j+(B<<2)|0;e=0;A=1;while(1){c[da>>2]=T;H=(T|0)==(ea|0);I=ya+(T<<1)|0;Q=b[I>>1]<<x;f=j+(Q<<2)|0;q=za?k+(Q<<2)|0:0;P=T+1|0;Q=(b[ya+(P<<1)>>1]<<x)-Q|0;R=Mb(w)|0;M=v-((T|0)==(h|0)?0:R)|0;n=u-R|0;p=n+-1|0;c[fa>>2]=p;if((T|0)<(y|0)?(ta=y-T|0,ta=(c[o+(T<<2)>>2]|0)+((M|0)/(((ta|0)<3?ta:3)|0)|0)|0,ta=(n|0)<(ta|0)?n:ta,(ta|0)>=0):0)N=(ta|0)<16383?ta:16383;else N=0;if(Ba)e=((b[I>>1]<<x)-Q|0)<(b[la>>1]<<x|0)?e:(A|0)!=0|(e|0)==0?T:e;F=c[t+(T<<2)>>2]|0;c[ga>>2]=F;B=(T|0)<(c[X>>2]|0);K=B?f:oa;L=B?q:V;O=H?0:B?O:0;if((e|0)!=0&(U|(F|0)<0)){v=(b[ya+(e<<1)>>1]<<x)-ma-Q|0;v=(v|0)>0?v:0;n=v+ma|0;f=e;do f=f+-1|0;while((b[ya+(f<<1)>>1]<<x|0)>(n|0));n=n+Q|0;q=e+-1|0;while(1){A=q+1|0;if((b[ya+(A<<1)>>1]<<x|0)<(n|0))q=A;else{A=0;n=0;break}}while(1){F=S(f,Aa)|0;n=d[m+F>>0]|n;A=d[m+(ca+F)>>0]|A;if((f|0)<(q|0))f=f+1|0;else{B=A;q=n;break}}}else{v=-1;B=Y;q=Y}A=(r|0)==0;f=(T|0)!=(s|0);if(f|A|W){n=(v|0)!=-1;if(A|f^1)ia=24;else{f=(N|0)/2|0;p=n?oa+(v<<2)|0:0;if(H){p=Nb(xa,K,Q,f,ka,p,x,0,1.0,O,q)|0;A=n?sa+(v<<2)|0:0;n=0}else{p=Nb(xa,K,Q,f,ka,p,x,oa+(b[I>>1]<<x<<2)+(qa<<2)|0,1.0,O,q)|0;A=n?sa+(v<<2)|0:0;n=sa+(b[I>>1]<<x<<2)+(qa<<2)|0}n=Nb(xa,L,Q,f,ka,A,x,n,1.0,O,B)|0}}else{n=b[I>>1]<<x;if((n|0)>(ma|0)){A=n-ma|0;n=0;do{ia=oa+(n<<2)|0;g[ia>>2]=(+g[ia>>2]+ +g[sa+(n<<2)>>2])*.5;n=n+1|0}while((n|0)<(A|0))}n=(v|0)!=-1;ia=24}do if((ia|0)==24){ia=0;F=n?oa+(v<<2)|0:0;if(!L){if(H)p=0;else p=oa+(b[I>>1]<<x<<2)+(qa<<2)|0;p=Nb(xa,K,Q,N,ka,F,x,p,1.0,O,B|q)|0;r=0;n=p;break}if(H)H=0;else H=oa+(b[I>>1]<<x<<2)+(qa<<2)|0;q=B|q;c[ua>>2]=N;c[va>>2]=q;B=(c[xa>>2]|0)==0;r=c[ja>>2]|0;a:do if((Q|0)==1){n=(p|0)>7;if(!B){if(n){Ob(r,+g[K>>2]<0.0&1,1);p=(c[fa>>2]|0)+-8|0;c[fa>>2]=p}if((p|0)>7){Ob(r,+g[L>>2]<0.0&1,1);c[fa>>2]=(c[fa>>2]|0)+-8}}else{if(n){n=Pb(r,1)|0;p=(c[fa>>2]|0)+-8|0;c[fa>>2]=p}else n=0;g[K>>2]=n|0?-1.0:1.0;if((p|0)>7){p=Pb(r,1)|0;c[fa>>2]=(c[fa>>2]|0)+-8}else p=0;g[L>>2]=p|0?-1.0:1.0}if(!H)p=1;else{c[H>>2]=c[K>>2];p=1}}else{Qb(xa,wa,K,L,Q,ua,ka,ka,x,1,va);I=c[wa>>2]|0;v=c[$>>2]|0;n=c[aa>>2]|0;J=+(c[Z>>2]|0)*.000030517578125;C=+(c[_>>2]|0)*.000030517578125;p=c[ua>>2]|0;do if((Q|0)==2){Da=(v|0)!=0&(v|0)!=16384?8:0;A=p-Da|0;f=(v|0)>8192;c[fa>>2]=(c[fa>>2]|0)-(Da+n);n=f?L:K;f=f?K:L;if((v|0)<16384)switch(v|0){case 0:{p=0;break}default:ia=39}else switch(v|0){case 16384:{p=0;break}default:ia=39}do if((ia|0)==39){ia=0;if(B){p=Pb(r,1)|0;break}else{p=+g[n>>2]*+g[f+4>>2]-+g[n+4>>2]*+g[f>>2]<0.0&1;Ob(r,p,1);break}}while(0);Da=1-(p<<1)|0;p=Nb(xa,n,2,A,ka,F,x,H,1.0,O,q)|0;g[f>>2]=+g[n+4>>2]*+(0-Da|0);g[f+4>>2]=+(Da|0)*+g[n>>2];if(!B)break a;g[K>>2]=J*+g[K>>2];H=K+4|0;g[H>>2]=J*+g[H>>2];E=C*+g[L>>2];g[L>>2]=E;Da=L+4|0;g[Da>>2]=C*+g[Da>>2];J=+g[K>>2];g[K>>2]=J-E;g[L>>2]=J+ +g[L>>2];J=+g[H>>2];g[H>>2]=J-+g[Da>>2];g[Da>>2]=J+ +g[Da>>2]}else{q=(p-(c[ba>>2]|0)|0)/2|0;q=(p|0)<(q|0)?p:q;q=(q|0)>0?q:0;f=p-q|0;p=(c[fa>>2]|0)-n|0;c[fa>>2]=p;A=c[va>>2]|0;if((q|0)<(f|0)){n=Nb(xa,L,Q,f,ka,0,x,0,C,0,A>>ka)|0;p=(c[fa>>2]|0)-p+f|0;p=Nb(xa,K,Q,((v|0)!=16384&(p|0)>24?p+-24|0:0)+q|0,ka,F,x,H,1.0,O,A)|0}else{n=Nb(xa,K,Q,q,ka,F,x,H,1.0,O,A)|0;p=(c[fa>>2]|0)-p+q|0;p=Nb(xa,L,Q,((v|0)!=0&(p|0)>24?p+-24|0:0)+f|0,ka,0,x,0,C,0,A>>ka)|0}p=n|p;if(!B)break a;A=(Q|0)>0;if(A){C=0.0;n=0;D=0.0;do{E=+g[L+(n<<2)>>2];C=C+E*+g[K+(n<<2)>>2];D=D+E*E;n=n+1|0}while((n|0)!=(Q|0))}else{D=0.0;C=0.0}E=J*J+D;D=J*C*2.0;C=E-D;D=E+D;if(D<6.000000284984708e-04|C<6.000000284984708e-04){Ef(L|0,K|0,Q<<2|0)|0;break}E=1.0/+G(+C);C=1.0/+G(+D);if(A)n=0;else break a;do{H=K+(n<<2)|0;Ea=J*+g[H>>2];Da=L+(n<<2)|0;D=+g[Da>>2];g[H>>2]=E*(Ea-D);g[Da>>2]=C*(Ea+D);n=n+1|0}while((n|0)!=(Q|0))}while(0);if((Q|0)>0&(I|0)!=0){n=0;do{Da=L+(n<<2)|0;g[Da>>2]=-+g[Da>>2];n=n+1|0}while((n|0)!=(Q|0))}}while(0);r=0;n=p}while(0);Da=S(T,Aa)|0;a[m+Da>>0]=p;a[m+(ca+Da)>>0]=n;if((P|0)==(i|0))break;else{v=M+R+(c[o+(T<<2)>>2]|0)|0;T=P;A=(N|0)>(Q<<3|0)&1}}Da=c[ha>>2]|0;c[z>>2]=Da;pa(na|0);l=Ca;return}function Mb(a){a=a|0;var b=0,d=0,e=0;d=c[a+28>>2]|0;e=32-(V(d|0)|0)|0;d=d>>>(e+-16|0);b=d>>>12;return (S(e,-8)|0)+(c[a+20>>2]<<3)+((d>>>0>(c[6916+(b+-8<<2)>>2]|0)>>>0)<<31>>31)+(8-b)|0}function Nb(a,b,e,f,h,i,j,k,l,m,n){a=a|0;b=b|0;e=e|0;f=f|0;h=h|0;i=i|0;j=j|0;k=k|0;l=+l;m=m|0;n=n|0;var 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,H=0,I=0.0,J=0.0,K=0.0,L=0,M=0;o=c[a>>2]|0;B=(o|0)!=0;r=c[a+20>>2]|0;C=(h|0)==1&1;w=(e>>>0)/(h>>>0)|0;if((e|0)==1){m=c[a+24>>2]|0;i=a+28|0;n=(c[i>>2]|0)>7;if(o){if(n){Ob(m,+g[b>>2]<0.0&1,1);c[i>>2]=(c[i>>2]|0)+-8}}else{if(n){e=Pb(m,1)|0;c[i>>2]=(c[i>>2]|0)+-8;l=e|0?-1.0:1.0}else l=1.0;g[b>>2]=l}if(!k){k=1;return k|0}c[k>>2]=c[b>>2];k=1;return k|0}E=(r|0)>0;F=E?r:0;do if((i|0)!=0&(m|0)!=0){if((r|0)<1?!((h|0)>1|(r|0)!=0&(w&1|0)==0):0){A=i;break}Ef(m|0,i|0,e<<2|0)|0;A=m}else A=i;while(0);a:do if(E){v=(A|0)==0;if(B)s=0;else{o=0;while(1){if((!v?(q=1<<o,s=e>>o>>1,(o|0)!=31):0)?(p=q<<1,(s|0)>0):0){m=0;do{i=0;do{t=A+((S(p,i)|0)+m<<2)|0;K=+g[t>>2]*.7071067690849304;u=A+(((i<<1|1)<<o)+m<<2)|0;J=+g[u>>2]*.7071067690849304;g[t>>2]=K+J;g[u>>2]=K-J;i=i+1|0}while((i|0)!=(s|0));m=m+1|0}while((m|0)!=(q|0))}n=(d[25771+(n>>4)>>0]|0)<<2|(d[25771+(n&15)>>0]|0);o=o+1|0;if((o|0)>=(F|0))break a}}do{p=1<<s;q=e>>s>>1;o=(s|0)==31;if(!o?(t=p<<1,(q|0)>0):0){m=0;do{i=0;do{M=b+((S(t,i)|0)+m<<2)|0;J=+g[M>>2]*.7071067690849304;L=b+(((i<<1|1)<<s)+m<<2)|0;K=+g[L>>2]*.7071067690849304;g[M>>2]=J+K;g[L>>2]=J-K;i=i+1|0}while((i|0)!=(q|0));m=m+1|0}while((m|0)!=(p|0))}if(!(v|o)?(u=p<<1,(q|0)>0):0){m=0;do{i=0;do{L=A+((S(u,i)|0)+m<<2)|0;J=+g[L>>2]*.7071067690849304;M=A+(((i<<1|1)<<s)+m<<2)|0;K=+g[M>>2]*.7071067690849304;g[L>>2]=J+K;g[M>>2]=J-K;i=i+1|0}while((i|0)!=(q|0));m=m+1|0}while((m|0)!=(p|0))}n=(d[25771+(n>>4)>>0]|0)<<2|(d[25771+(n&15)>>0]|0);s=s+1|0}while((s|0)<(F|0))}while(0);i=h>>F;q=w<<F;b:do if((q&1|0)==0&(r|0)<0){t=(A|0)==0;if(B)s=0;else{s=t^1;p=0;while(1){q=q>>1;if((i|0)>0&s?(x=i<<1,(q|0)>0):0){o=0;do{m=0;do{L=A+((S(x,m)|0)+o<<2)|0;J=+g[L>>2]*.7071067690849304;M=A+((S(m<<1|1,i)|0)+o<<2)|0;K=+g[M>>2]*.7071067690849304;g[L>>2]=J+K;g[M>>2]=J-K;m=m+1|0}while((m|0)!=(q|0));o=o+1|0}while((o|0)!=(i|0))}n=n<<i|n;i=i<<1;m=p+1|0;if((q&1|0)==0&(r|0)<-1){r=r+1|0;p=m}else{s=m;break b}}}while(1){q=q>>1;p=(i|0)>0;if(p?(y=i<<1,(q|0)>0):0){o=0;do{m=0;do{L=b+((S(y,m)|0)+o<<2)|0;J=+g[L>>2]*.7071067690849304;M=b+((S(m<<1|1,i)|0)+o<<2)|0;K=+g[M>>2]*.7071067690849304;g[L>>2]=J+K;g[M>>2]=J-K;m=m+1|0}while((m|0)!=(q|0));o=o+1|0}while((o|0)!=(i|0))}if(!(t|p^1)?(z=i<<1,(q|0)>0):0){o=0;do{m=0;do{L=A+((S(z,m)|0)+o<<2)|0;J=+g[L>>2]*.7071067690849304;M=A+((S(m<<1|1,i)|0)+o<<2)|0;K=+g[M>>2]*.7071067690849304;g[L>>2]=J+K;g[M>>2]=J-K;m=m+1|0}while((m|0)!=(q|0));o=o+1|0}while((o|0)!=(i|0))}n=n<<i|n;i=i<<1;m=s+1|0;if((q&1|0)==0&(r|0)<-1){r=r+1|0;s=m}else{s=m;break}}}else s=0;while(0);o=(i|0)>1;if(o){if(B)_b(b,q>>F,i<<F,C);if(A|0)_b(A,q>>F,i<<F,C)}m=$b(a,b,e,f,i,A,j,l,n)|0;if(B){M=m;return M|0}if(o)ac(b,q>>F,i<<F,C);if((s|0)>0){r=0;do{i=i>>1;q=q<<1;m=m>>>i|m;p=q>>1;if((i|0)>0?(D=i<<1,(q|0)>0):0){o=0;do{n=0;do{L=b+((S(D,n)|0)+o<<2)|0;J=+g[L>>2]*.7071067690849304;M=b+((S(n<<1|1,i)|0)+o<<2)|0;K=+g[M>>2]*.7071067690849304;g[L>>2]=J+K;g[M>>2]=J-K;n=n+1|0}while((n|0)!=(p|0));o=o+1|0}while((o|0)!=(i|0))}r=r+1|0}while((r|0)!=(s|0));r=i}else r=i;if(E){q=0;do{m=d[25787+m>>0]|0;o=1<<q;p=e>>q>>1;if((q|0)!=31?(H=o<<1,(p|0)>0):0){n=0;do{i=0;do{L=b+((S(H,i)|0)+n<<2)|0;J=+g[L>>2]*.7071067690849304;M=b+(((i<<1|1)<<q)+n<<2)|0;K=+g[M>>2]*.7071067690849304;g[L>>2]=J+K;g[M>>2]=J-K;i=i+1|0}while((i|0)!=(p|0));n=n+1|0}while((n|0)!=(o|0))}q=q+1|0}while((q|0)<(F|0))}n=r<<F;if(k|0?(I=+G(+(+(e|0))),(e|0)>0):0){i=0;do{g[k+(i<<2)>>2]=I*+g[b+(i<<2)>>2];i=i+1|0}while((i|0)!=(e|0))}M=m&(1<<n)+-1;return M|0}function Ob(b,d,e){b=b|0;d=d|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;p=b+12|0;f=c[p>>2]|0;q=b+16|0;g=c[q>>2]|0;if((g+e|0)>>>0>32){o=b+24|0;k=b+8|0;l=b+4|0;m=b+44|0;n=7-g|0;n=g+((n|0)>-8?n:-8)&-8;j=g;do{h=c[k>>2]|0;i=c[l>>2]|0;if((h+(c[o>>2]|0)|0)>>>0<i>>>0){r=c[b>>2]|0;h=h+1|0;c[k>>2]=h;a[r+(i-h)>>0]=f;h=0}else h=-1;c[m>>2]=c[m>>2]|h;f=f>>>8;j=j+-8|0}while((j|0)>7);g=g+-8-n|0}c[p>>2]=d<<g|f;c[q>>2]=g+e;r=b+20|0;c[r>>2]=(c[r>>2]|0)+e;return}function Pb(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;l=a+12|0;f=c[l>>2]|0;m=a+16|0;e=c[m>>2]|0;if(e>>>0<b>>>0){j=a+8|0;k=e+8|0;k=e+(((k|0)>25?k:25)+-1-e&-8)|0;i=c[a+4>>2]|0;g=c[j>>2]|0;do{if(g>>>0<i>>>0){h=c[a>>2]|0;g=g+1|0;c[j>>2]=g;h=d[h+(i-g)>>0]|0}else h=0;f=h<<e|f;e=e+8|0}while((e|0)<25);e=k+8|0}c[l>>2]=f>>>b;c[m>>2]=e-b;m=a+20|0;c[m>>2]=(c[m>>2]|0)+b;return f&(1<<b)+-1|0}function Qb(a,d,e,f,h,i,j,k,l,m,n){a=a|0;d=d|0;e=e|0;f=f|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;n=n|0;var o=0.0,p=0.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.0;v=c[a+4>>2]|0;w=c[a+8>>2]|0;C=c[a+24>>2]|0;x=c[a+32>>2]|0;B=(b[(c[v+56>>2]|0)+(w<<1)>>1]|0)+(l<<3)|0;u=(m|0)!=0;z=(h|0)==2&u;A=c[i>>2]|0;l=(z?-2:-1)+(h<<1)|0;l=((S((B>>1)-(z?16:4)|0,l)|0)+A|0)/(l|0)|0;B=A-B+-32|0;l=(B|0)<(l|0)?B:l;l=(l|0)<64?l:64;if((l|0)<4)l=1;else l=(b[20082+((l&7)<<1)>>1]>>14-(l>>>3))+1&-2;A=(w|0)<(c[a+12>>2]|0)|u^1?l:1;z=(c[a>>2]|0)!=0;if(z)m=Rb(e,f,m,h,c[a+40>>2]|0)|0;else m=0;B=Mb(C)|0;do if((A|0)==1)if(u){if(z){A=(m|0)>8192;m=A&1;k=(h|0)>0;if(A&k){l=0;do{A=f+(l<<2)|0;g[A>>2]=-+g[A>>2];l=l+1|0}while((l|0)!=(h|0))}o=+g[x+(w<<2)>>2];D=+g[x+((c[v+8>>2]|0)+w<<2)>>2];p=+G(+(o*o+1.0000000036274937e-15+D*D))+1.0000000036274937e-15;o=o/p;p=D/p;if(k){l=0;do{A=e+(l<<2)|0;g[A>>2]=o*+g[A>>2]+p*+g[f+(l<<2)>>2];l=l+1|0}while((l|0)!=(h|0))}}else m=0;if((c[i>>2]|0)>16?(c[a+28>>2]|0)>16:0)if(z){Yb(C,m,2);y=47;break}else{m=Zb(C,2)|0;y=47;break}else{m=0;y=47}}else y=48;else{t=(S(m,A)|0)+8192>>14;t=z?t:m;do if((h|0)>2&u){q=(A|0)/2|0;l=q+1|0;r=l*3|0;s=r+q|0;if(z){m=(t|0)<=(q|0);if(m){k=t*3|0;l=k}else{l=t*3|0;k=r+~q+t|0}Sb(C,k,m?l+3|0:r-q+t|0,s);break}else{k=Tb(C,s)|0;l=(S(l,-2)|0)+k|0;l=(k|0)<(r|0)?(k|0)/3|0:l;k=(l|0)<=(q|0);if(k){a=l*3|0;m=a}else{m=l*3|0;a=r+~q+l|0}Ub(C,a,k?m+3|0:r-q+l|0,s);y=29;break}}else{if((k|0)>1|u){l=A+1|0;if(z){Vb(C,t,l);break}else{l=Wb(C,l)|0;y=29;break}}k=A>>1;m=k+1|0;q=S(m,m)|0;if(z){l=(t|0)<=(k|0);m=t+1|0;k=A+1-t|0;if(l)a=(S(m,t)|0)>>1;else a=q-((S(k,A+2-t|0)|0)>>1)|0;Sb(C,a,a+(l?m:k)|0,q);break}else{l=Tb(C,q)|0;if((l|0)<((S(m,k)|0)>>1|0)){l=((Xb(l<<3|1)|0)+-1|0)>>>1;k=l+1|0;m=(S(k,l)|0)>>>1}else{k=A+1|0;l=((k<<1)-(Xb((q-l<<3)+-7|0)|0)|0)>>>1;k=k-l|0;m=q-((S(k,A+2-l|0)|0)>>1)|0}Ub(C,m,m+k|0,q);y=29;break}}while(0);if((y|0)==29){m=(l<<14>>>0)/(A>>>0)|0;y=48;break}l=t<<14;m=(l>>>0)/(A>>>0)|0;if(u&z)if(A>>>0>l>>>0){o=+g[x+(w<<2)>>2];D=+g[x+((c[v+8>>2]|0)+w<<2)>>2];p=+G(+(o*o+1.0000000036274937e-15+D*D))+1.0000000036274937e-15;o=o/p;p=D/p;if((h|0)>0)l=0;else{m=0;y=47;break}do{A=e+(l<<2)|0;g[A>>2]=o*+g[A>>2]+p*+g[f+(l<<2)>>2];l=l+1|0}while((l|0)!=(h|0));y=48}else{if((h|0)>0)l=0;else{y=48;break}do{z=e+(l<<2)|0;D=+g[z>>2]*.7071067690849304;A=f+(l<<2)|0;p=+g[A>>2]*.7071067690849304;g[z>>2]=D+p;g[A>>2]=p-D;l=l+1|0}while((l|0)!=(h|0));y=48}else y=48}while(0);a:do if((y|0)==47){l=(Mb(C)|0)-B|0;c[i>>2]=(c[i>>2]|0)-l}else if((y|0)==48){l=(Mb(C)|0)-B|0;c[i>>2]=(c[i>>2]|0)-l;b:do if((m|0)<16384)switch(m|0){case 0:{m=0;break a}default:{}}else{switch(m|0){case 16384:break;default:break b}c[n>>2]=c[n>>2]&(1<<j)+-1<<j;C=16384;B=0;h=32767;j=0;i=16384;n=l;c[d>>2]=j;j=d+4|0;c[j>>2]=B;j=d+8|0;c[j>>2]=h;j=d+12|0;c[j>>2]=C;j=d+16|0;c[j>>2]=i;j=d+20|0;c[j>>2]=n;return}while(0);B=m<<16;B=(S(B>>13,B>>16)|0)+32768>>16;B=32768-B+(((S((((S((((S(B,-626)|0)+16384|0)>>>15<<16)+542441472>>16,B)|0)+16384|0)>>>15<<16)+-501415936>>16,B)|0)+16384|0)>>>15)<<16>>16;j=16384-m<<16;j=(S(j>>13,j>>16)|0)+32768>>16;j=32768-j+(((S((((S((((S(j,-626)|0)+16384|0)>>>15<<16)+542441472>>16,j)|0)+16384|0)>>>15<<16)+-501415936>>16,j)|0)+16384|0)>>>15)<<16>>16;n=32-(V(B|0)|0)|0;f=32-(V(j|0)|0)|0;C=j<<15-f<<16>>16;i=B<<15-n<<16>>16;C=(S((f-n<<11)-(((S((((S(i,-2597)|0)+16384|0)>>>15<<16)+519831552>>16,i)|0)+16384|0)>>>15)+(((S((((S(C,-2597)|0)+16384|0)>>>15<<16)+519831552>>16,C)|0)+16384|0)>>>15)<<16>>16,(h<<23)+-8388608>>16)|0)+16384>>15;h=j;j=0;i=m;n=l;c[d>>2]=j;j=d+4|0;c[j>>2]=B;j=d+8|0;c[j>>2]=h;j=d+12|0;c[j>>2]=C;j=d+16|0;c[j>>2]=i;j=d+20|0;c[j>>2]=n;return}while(0);c[n>>2]=c[n>>2]&(1<<j)+-1;C=-16384;B=32767;h=0;j=m;i=0;n=l;c[d>>2]=j;j=d+4|0;c[j>>2]=B;j=d+8|0;c[j>>2]=h;j=d+12|0;c[j>>2]=C;j=d+16|0;c[j>>2]=i;j=d+20|0;c[j>>2]=n;return}function Rb(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0.0,h=0.0,i=0.0,j=0.0,k=0.0;e=(d|0)>0;if(!c)if(e){e=0;f=0.0;do{h=+g[a+(e<<2)>>2];f=f+h*h;e=e+1|0}while((e|0)!=(d|0));h=f+1.0000000036274937e-15;e=0;f=0.0;do{i=+g[b+(e<<2)>>2];f=f+i*i;e=e+1|0}while((e|0)!=(d|0));f=f+1.0000000036274937e-15}else{h=1.0000000036274937e-15;f=1.0000000036274937e-15}else if(e){h=1.0000000036274937e-15;f=1.0000000036274937e-15;e=0;do{k=+g[a+(e<<2)>>2];i=+g[b+(e<<2)>>2];j=k+i;i=k-i;h=h+j*j;f=f+i*i;e=e+1|0}while((e|0)!=(d|0))}else{h=1.0000000036274937e-15;f=1.0000000036274937e-15}return ~~+E(+(+O(+(+G(+f)),+(+G(+h)))*10430.3818359375+.5))|0}function Sb(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,q=0;p=b+28|0;g=c[p>>2]|0;h=(g>>>0)/(f>>>0)|0;if(!d)d=g-(S(h,f-e|0)|0)|0;else{n=g-(S(h,f-d|0)|0)|0;o=b+32|0;c[o>>2]=n+(c[o>>2]|0);d=S(h,e-d|0)|0}c[p>>2]=d;if(d>>>0>=8388609)return;h=b+32|0;i=b+36|0;j=b+20|0;k=b+40|0;l=b+24|0;m=b+8|0;n=b+4|0;o=b+44|0;e=c[h>>2]|0;do{g=e>>>23;if((g|0)==255)c[i>>2]=(c[i>>2]|0)+1;else{f=e>>>31;d=c[k>>2]|0;if((d|0)>-1){e=c[l>>2]|0;if(((c[m>>2]|0)+e|0)>>>0<(c[n>>2]|0)>>>0){q=c[b>>2]|0;c[l>>2]=e+1;a[q+e>>0]=d+f;d=0}else d=-1;c[o>>2]=c[o>>2]|d}d=c[i>>2]|0;if(d|0){f=f+255&255;do{e=c[l>>2]|0;if(((c[m>>2]|0)+e|0)>>>0<(c[n>>2]|0)>>>0){d=c[b>>2]|0;c[l>>2]=e+1;a[d+e>>0]=f;e=0;d=c[i>>2]|0}else e=-1;c[o>>2]=c[o>>2]|e;d=d+-1|0;c[i>>2]=d}while((d|0)!=0)}c[k>>2]=g&255;e=c[h>>2]|0;d=c[p>>2]|0}e=e<<8&2147483392;c[h>>2]=e;d=d<<8;c[p>>2]=d;c[j>>2]=(c[j>>2]|0)+8}while(d>>>0<8388609);return}function Tb(a,b){a=a|0;b=b|0;var d=0;d=((c[a+28>>2]|0)>>>0)/(b>>>0)|0;c[a+36>>2]=d;a=(((c[a+32>>2]|0)>>>0)/(d>>>0)|0)+1|0;return b-(a>>>0>b>>>0?b:a)|0}function Ub(a,b,e,f){a=a|0;b=b|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;g=c[a+36>>2]|0;f=S(g,f-e|0)|0;p=a+32|0;n=(c[p>>2]|0)-f|0;c[p>>2]=n;if(!b){m=a+28|0;o=m;f=(c[m>>2]|0)-f|0}else{o=a+28|0;f=S(g,e-b|0)|0}c[o>>2]=f;if(f>>>0>=8388609)return;j=a+20|0;k=a+40|0;l=a+24|0;i=c[a+4>>2]|0;m=c[j>>2]|0;b=c[l>>2]|0;h=c[k>>2]|0;g=n;while(1){m=m+8|0;c[j>>2]=m;f=f<<8;c[o>>2]=f;if(b>>>0<i>>>0){e=c[a>>2]|0;n=b+1|0;c[l>>2]=n;e=d[e+b>>0]|0;b=n}else e=0;c[k>>2]=e;g=(g<<8&2147483392|(e|h<<8)>>>1&255)^255;c[p>>2]=g;if(f>>>0>=8388609)break;else h=e}return}function Vb(b,d,e){b=b|0;d=d|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;g=e+-1|0;f=32-(V(g|0)|0)|0;if((f|0)<=8){Sb(b,d,d+1|0,e);return}q=f+-8|0;n=d>>>q;Sb(b,n,n+1|0,(g>>>q)+1|0);n=(1<<q)+-1&d;o=b+12|0;e=c[o>>2]|0;p=b+16|0;f=c[p>>2]|0;if((f+q|0)>>>0>32){i=b+24|0;j=b+8|0;k=b+4|0;l=b+44|0;m=7-f|0;m=((m|0)>-8?m:-8)+f|0;h=f;do{d=c[j>>2]|0;g=c[k>>2]|0;if((d+(c[i>>2]|0)|0)>>>0<g>>>0){r=c[b>>2]|0;d=d+1|0;c[j>>2]=d;a[r+(g-d)>>0]=e;d=0}else d=-1;c[l>>2]=c[l>>2]|d;e=e>>>8;h=h+-8|0}while((h|0)>7);f=f+-8-(m&-8)|0}c[o>>2]=n<<f|e;c[p>>2]=f+q;r=b+20|0;c[r>>2]=(c[r>>2]|0)+q;return}function Wb(a,b){a=a|0;b=b|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;s=b+-1|0;e=32-(V(s|0)|0)|0;if((e|0)<=8){o=a+28|0;q=c[o>>2]|0;r=(q>>>0)/(b>>>0)|0;c[a+36>>2]=r;p=a+32|0;f=c[p>>2]|0;e=((f>>>0)/(r>>>0)|0)+1|0;e=b-(e>>>0>b>>>0?b:e)|0;b=S(s-e|0,r)|0;f=f-b|0;c[p>>2]=f;b=(e|0)==0?q-b|0:r;c[o>>2]=b;if(b>>>0>=8388609){a=e;return a|0}k=a+20|0;l=a+40|0;m=a+24|0;j=c[a+4>>2]|0;n=c[k>>2]|0;g=c[m>>2]|0;i=c[l>>2]|0;while(1){n=n+8|0;c[k>>2]=n;b=b<<8;c[o>>2]=b;if(g>>>0<j>>>0){h=c[a>>2]|0;s=g+1|0;c[m>>2]=s;h=d[h+g>>0]|0;g=s}else h=0;c[l>>2]=h;f=((h|i<<8)>>>1&255|f<<8&2147483392)^255;c[p>>2]=f;if(b>>>0>=8388609)break;else i=h}return e|0}r=e+-8|0;p=s>>>r;n=p+1|0;q=a+28|0;o=c[q>>2]|0;e=(o>>>0)/(n>>>0)|0;c[a+36>>2]=e;k=a+32|0;b=c[k>>2]|0;l=((b>>>0)/(e>>>0)|0)+1|0;l=n-(l>>>0>n>>>0?n:l)|0;p=S(p-l|0,e)|0;b=b-p|0;c[k>>2]=b;e=(l|0)==0?o-p|0:e;c[q>>2]=e;if(e>>>0<8388609){m=a+20|0;n=a+40|0;o=a+24|0;j=c[a+4>>2]|0;p=c[m>>2]|0;h=c[o>>2]|0;i=c[n>>2]|0;while(1){p=p+8|0;c[m>>2]=p;e=e<<8;c[q>>2]=e;if(h>>>0<j>>>0){g=c[a>>2]|0;f=h+1|0;c[o>>2]=f;g=d[g+h>>0]|0}else{f=h;g=0}c[n>>2]=g;b=((g|i<<8)>>>1&255|b<<8&2147483392)^255;c[k>>2]=b;if(e>>>0>=8388609)break;else{h=f;i=g}}}l=l<<r;m=a+12|0;b=c[m>>2]|0;n=a+16|0;e=c[n>>2]|0;if(e>>>0<r>>>0){i=a+8|0;j=e+8|0;k=((j|0)>25?j:25)+~e|0;h=c[a+4>>2]|0;f=c[i>>2]|0;do{if(f>>>0<h>>>0){q=c[a>>2]|0;g=f+1|0;c[i>>2]=g;f=g;g=d[q+(h-g)>>0]|0}else g=0;b=g<<e|b;e=e+8|0}while((e|0)<25);e=j+(k&-8)|0}c[m>>2]=b>>>r;c[n>>2]=e-r;e=a+20|0;c[e>>2]=(c[e>>2]|0)+r;e=b&(1<<r)+-1|l;if(e>>>0<=s>>>0){a=e;return a|0}c[a+44>>2]=1;a=s;return a|0}function Xb(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;d=31-(V(a|0)|0)>>1;b=d;c=0;d=1<<d;while(1){e=(c<<1)+d<<b;f=a>>>0<e>>>0;c=(f?0:d)+c|0;if((b|0)<=0)break;else{a=a-(f?0:e)|0;b=b+-1|0;d=d>>>1}}return c|0}function Yb(b,d,e){b=b|0;d=d|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;o=b+28|0;g=c[o>>2]|0;p=b+32|0;f=g>>>e;g=g-f|0;e=(d|0)!=0;if(e)c[p>>2]=(c[p>>2]|0)+g;e=e?f:g;c[o>>2]=e;if(e>>>0>=8388609)return;h=b+36|0;i=b+20|0;j=b+40|0;k=b+24|0;l=b+8|0;m=b+4|0;n=b+44|0;d=c[p>>2]|0;do{g=d>>>23;if((g|0)==255)c[h>>2]=(c[h>>2]|0)+1;else{f=d>>>31;e=c[j>>2]|0;if((e|0)>-1){d=c[k>>2]|0;if(((c[l>>2]|0)+d|0)>>>0<(c[m>>2]|0)>>>0){q=c[b>>2]|0;c[k>>2]=d+1;a[q+d>>0]=e+f;e=0}else e=-1;c[n>>2]=c[n>>2]|e}e=c[h>>2]|0;if(e|0){f=f+255&255;do{d=c[k>>2]|0;if(((c[l>>2]|0)+d|0)>>>0<(c[m>>2]|0)>>>0){e=c[b>>2]|0;c[k>>2]=d+1;a[e+d>>0]=f;d=0;e=c[h>>2]|0}else d=-1;c[n>>2]=c[n>>2]|d;e=e+-1|0;c[h>>2]=e}while((e|0)!=0)}c[j>>2]=g&255;d=c[p>>2]|0;e=c[o>>2]|0}d=d<<8&2147483392;c[p>>2]=d;e=e<<8;c[o>>2]=e;c[i>>2]=(c[i>>2]|0)+8}while(e>>>0<8388609);return}function Zb(a,b){a=a|0;b=b|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;o=a+28|0;e=c[o>>2]|0;p=a+32|0;f=c[p>>2]|0;b=e>>>b;m=f>>>0<b>>>0;n=m&1;if(!m){f=f-b|0;c[p>>2]=f;b=e-b|0}c[o>>2]=b;if(b>>>0>=8388609)return n|0;j=a+20|0;k=a+40|0;l=a+24|0;i=c[a+4>>2]|0;m=c[j>>2]|0;e=c[l>>2]|0;h=c[k>>2]|0;while(1){m=m+8|0;c[j>>2]=m;b=b<<8;c[o>>2]=b;if(e>>>0<i>>>0){g=c[a>>2]|0;q=e+1|0;c[l>>2]=q;g=d[g+e>>0]|0;e=q}else g=0;c[k>>2]=g;f=(f<<8&2147483392|(g|h<<8)>>>1&255)^255;c[p>>2]=f;if(b>>>0>=8388609)break;else h=g}return n|0}function _b(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;k=l;i=S(d,b)|0;j=l;l=l+((1*(i<<2)|0)+15&-16)|0;if(!e){if((d|0)>0&(b|0)>0)f=0;else{i=i<<2;Ef(a|0,j|0,i|0)|0;l=k;return}do{g=S(f,b)|0;e=0;do{c[j+(e+g<<2)>>2]=c[a+((S(e,d)|0)+f<<2)>>2];e=e+1|0}while((e|0)!=(b|0));f=f+1|0}while((f|0)!=(d|0));i=i<<2;Ef(a|0,j|0,i|0)|0;l=k;return}else{g=1636+(d<<2)+-8|0;if((d|0)>0&(b|0)>0)f=0;else{i=i<<2;Ef(a|0,j|0,i|0)|0;l=k;return}do{h=S(c[g+(f<<2)>>2]|0,b)|0;e=0;do{c[j+(h+e<<2)>>2]=c[a+((S(e,d)|0)+f<<2)>>2];e=e+1|0}while((e|0)!=(b|0));f=f+1|0}while((f|0)!=(d|0));i=i<<2;Ef(a|0,j|0,i|0)|0;l=k;return}}function $b(e,f,h,i,j,k,m,n,o){e=e|0;f=f|0;h=h|0;i=i|0;j=j|0;k=k|0;m=m|0;n=+n;o=o|0;var p=0,q=0,r=0.0,s=0.0,t=0,u=0,v=0.0,w=0,x=0,y=0,z=0,A=0,B=0,C=0;C=l;l=l+32|0;y=C+4|0;B=C;q=C+8|0;c[y>>2]=i;c[B>>2]=o;u=(c[e>>2]|0)!=0;t=c[e+4>>2]|0;w=c[e+16>>2]|0;x=c[e+24>>2]|0;t=(c[t+100>>2]|0)+(b[(c[t+96>>2]|0)+((S(c[t+8>>2]|0,m+1|0)|0)+(c[e+8>>2]|0)<<1)>>1]|0)|0;p=a[t>>0]|0;if((m|0)!=-1?((h|0)>2?((d[t+(p&255)>>0]|0)+12|0)<(i|0):0):0){h=h>>>1;z=f+(h<<2)|0;A=m+-1|0;if((j|0)==1)c[B>>2]=o&1|o<<1;w=j+1>>1;Qb(e,q,f,z,h,y,w,j,A,0,B);p=c[q+12>>2]|0;x=c[q+16>>2]|0;i=c[q+20>>2]|0;r=+(c[q+4>>2]|0)*.000030517578125;v=+(c[q+8>>2]|0)*.000030517578125;do if(!((j|0)<2|(x&16383|0)==0))if((x|0)>8192){p=p-(p>>5-m)|0;break}else{p=p+(h<<3>>6-m)|0;p=(p|0)<0?p:0;break}while(0);t=c[y>>2]|0;m=(t-p|0)/2|0;m=(t|0)<(m|0)?t:m;m=(m|0)>0?m:0;t=t-m|0;u=e+28|0;q=(c[u>>2]|0)-i|0;c[u>>2]=q;i=(k|0)==0?0:k+(h<<2)|0;s=r*n;r=v*n;p=c[B>>2]|0;if((m|0)<(t|0)){j=($b(e,z,h,t,w,i,A,r,p>>w)|0)<<(j>>1);B=(c[u>>2]|0)-q+t|0;p=$b(e,f,h,((x|0)!=16384&(B|0)>24?B+-24|0:0)+m|0,w,k,A,s,p)|0|j}else{f=$b(e,f,h,m,w,k,A,s,p)|0;k=(c[u>>2]|0)-q+m|0;p=($b(e,z,h,((x|0)!=0&(k|0)>24?k+-24|0:0)+t|0,w,i,A,r,p>>w)|0)<<(j>>1)|f}f=p;l=C;return f|0}z=p&255;q=i+-1|0;A=(z+1|0)>>>1;i=(d[t+A>>0]|0)<(q|0);p=i?A:0;A=i?z:A;i=(p+1+A|0)>>>1;z=(d[t+i>>0]|0)<(q|0);p=z?i:p;i=z?A:i;A=p+1+i>>1;z=(d[t+A>>0]|0)<(q|0);p=z?A:p;A=z?i:A;i=p+1+A>>1;z=(d[t+i>>0]|0)<(q|0);p=z?i:p;i=z?A:i;A=p+1+i>>1;z=(d[t+A>>0]|0)<(q|0);p=z?A:p;A=z?i:A;i=p+1+A>>1;z=(d[t+i>>0]|0)<(q|0);p=z?i:p;i=z?A:i;if(!p)m=-1;else m=d[t+p>>0]|0;p=(q-m|0)>((d[t+i>>0]|0)-q|0)?i:p;q=e+28|0;a:do if(p|0){while(1){i=c[q>>2]|0;A=i-((d[t+p>>0]|0)+1)|0;c[q>>2]=A;if(!((p|0)>0&(A|0)<0))break;c[q>>2]=i;p=p+-1|0;if(!p)break a}p=(p|0)<8?p:(p&7|8)<<(p>>3)+-1;if(u){f=bc(f,h,p,w,j,x)|0;l=C;return f|0}else{f=cc(f,h,p,w,j,x,n)|0;l=C;return f|0}}while(0);if(u){f=0;l=C;return f|0}p=(1<<j)+-1|0;m=p&o;c[B>>2]=m;if(!m){tf(f|0,0,h<<2|0)|0;f=0;l=C;return f|0}i=(h|0)>0;if(!k){if(i){q=e+36|0;i=0;m=c[q>>2]|0;do{m=(S(m,1664525)|0)+1013904223|0;g[f+(i<<2)>>2]=+(m>>20|0);i=i+1|0}while((i|0)!=(h|0));c[q>>2]=m}}else if(i){i=e+36|0;p=0;q=c[i>>2]|0;do{q=(S(q,1664525)|0)+1013904223|0;g[f+(p<<2)>>2]=+g[k+(p<<2)>>2]+(q&32768|0?.00390625:-.00390625);p=p+1|0}while((p|0)!=(h|0));c[i>>2]=q;p=m}else p=m;Kb(f,h,n,c[e+40>>2]|0);f=p;l=C;return f|0}function ac(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;k=l;i=S(d,b)|0;j=l;l=l+((1*(i<<2)|0)+15&-16)|0;if(!e){if((d|0)>0&(b|0)>0)f=0;else{i=i<<2;Ef(a|0,j|0,i|0)|0;l=k;return}do{g=S(f,b)|0;e=0;do{c[j+((S(e,d)|0)+f<<2)>>2]=c[a+(e+g<<2)>>2];e=e+1|0}while((e|0)!=(b|0));f=f+1|0}while((f|0)!=(d|0));i=i<<2;Ef(a|0,j|0,i|0)|0;l=k;return}else{g=1636+(d<<2)+-8|0;if((d|0)>0&(b|0)>0)f=0;else{i=i<<2;Ef(a|0,j|0,i|0)|0;l=k;return}do{h=S(c[g+(f<<2)>>2]|0,b)|0;e=0;do{c[j+((S(e,d)|0)+f<<2)>>2]=c[a+(h+e<<2)>>2];e=e+1|0}while((e|0)!=(b|0));f=f+1|0}while((f|0)!=(d|0));i=i<<2;Ef(a|0,j|0,i|0)|0;l=k;return}}function bc(a,b,d,e,f,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;h=h|0;var i=0,j=0,k=0,m=0,n=0.0,o=0,p=0.0,q=0.0,r=0.0,s=0.0,t=0.0,u=0,v=0,w=0;w=l;o=l;l=l+((1*(b<<2)|0)+15&-16)|0;v=l;l=l+((1*(b<<2)|0)+15&-16)|0;u=l;l=l+((1*(b<<2)|0)+15&-16)|0;ec(a,b,1,f,d,e);e=((b|0)>1?b:1)<<2;tf(v|0,0,e|0)|0;tf(o|0,0,e|0)|0;e=0;do{i=a+(e<<2)|0;n=+g[i>>2];j=u+(e<<2)|0;if(n>0.0)g[j>>2]=1.0;else{g[j>>2]=-1.0;g[i>>2]=-n}e=e+1|0}while((e|0)<(b|0));if((b>>1|0)<(d|0)){n=0.0;e=0;do{n=n+ +g[a+(e<<2)>>2];e=e+1|0}while((e|0)<(b|0));if(!(n>1.0000000036274937e-15&n<64.0)){g[a>>2]=1.0;tf(a+4|0,0,(((b|0)>2?b:2)<<2)+-4|0)|0;n=1.0}q=+(d+-1|0)*(1.0/n);e=d;p=0.0;n=0.0;i=0;do{s=+g[a+(i<<2)>>2];m=~~+E(+(q*s));c[v+(i<<2)>>2]=m;t=+(m|0);n=n+t*t;p=p+s*t;g[o+(i<<2)>>2]=t*2.0;e=e-m|0;i=i+1|0}while((i|0)<(b|0))}else{e=d;p=0.0;n=0.0}if((e|0)<=(b+3|0))if((e|0)>0){m=0;while(1){t=n+1.0;n=0.0;q=-999999986991104.0;k=0;i=0;while(1){s=p+ +g[a+(i<<2)>>2];r=t+ +g[o+(i<<2)>>2];s=s*s;j=n*s>q*r;k=j?i:k;i=i+1|0;if((i|0)>=(b|0))break;else{n=j?r:n;q=j?s:q}}p=p+ +g[a+(k<<2)>>2];j=o+(k<<2)|0;n=+g[j>>2];g[j>>2]=n+2.0;k=v+(k<<2)|0;c[k>>2]=(c[k>>2]|0)+1;m=m+1|0;if((m|0)==(e|0)){e=0;break}else n=t+n}}else e=0;else{c[v>>2]=(c[v>>2]|0)+e;e=0}do{t=+g[u+(e<<2)>>2];i=a+(e<<2)|0;g[i>>2]=t*+g[i>>2];i=v+(e<<2)|0;if(t<0.0)c[i>>2]=0-(c[i>>2]|0);e=e+1|0}while((e|0)<(b|0));fc(v,b,d,h);if((f|0)<2){v=1;l=w;return v|0}o=(b>>>0)/(f>>>0)|0;m=0;e=0;do{k=S(m,o)|0;i=0;j=0;do{i=c[v+(j+k<<2)>>2]|i;j=j+1|0}while((j|0)<(o|0));e=((i|0)!=0&1)<<m|e;m=m+1|0}while((m|0)!=(f|0));l=w;return e|0}function cc(a,b,d,e,f,h,i){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;h=h|0;i=+i;var j=0,k=0,m=0;m=l;k=l;l=l+((1*(b<<2)|0)+15&-16)|0;i=1.0/+G(+(+dc(k,b,d,h)))*i;h=0;do{g[a+(h<<2)>>2]=i*+(c[k+(h<<2)>>2]|0);h=h+1|0}while((h|0)<(b|0));ec(a,b,-1,f,d,e);if((f|0)<2){k=1;l=m;return k|0}j=(b>>>0)/(f>>>0)|0;e=0;h=0;do{d=S(e,j)|0;a=0;b=0;do{a=c[k+(b+d<<2)>>2]|a;b=b+1|0}while((b|0)<(j|0));h=((a|0)!=0&1)<<e|h;e=e+1|0}while((e|0)!=(f|0));l=m;return h|0}function dc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0.0,g=0,h=0,i=0,j=0,k=0,l=0,m=0.0,n=0.0;l=d+1|0;e=Wb(e,(c[(c[1768+(((l|0)>(b|0)?b:l)<<2)>>2]|0)+(((l|0)<(b|0)?b:l)<<2)>>2]|0)+(c[(c[1768+(((b|0)<(d|0)?b:d)<<2)>>2]|0)+(((b|0)>(d|0)?b:d)<<2)>>2]|0)|0)|0;if((b|0)>2){f=0.0;l=a;k=b;while(1){j=d+1|0;do if((d|0)<(k|0)){g=c[(c[1768+(d<<2)>>2]|0)+(k<<2)>>2]|0;h=c[(c[1768+(j<<2)>>2]|0)+(k<<2)>>2]|0;if(e>>>0>=g>>>0&e>>>0<h>>>0){c[l>>2]=0;e=e-g|0;break}i=e>>>0>=h>>>0;g=e-(i?h:0)|0;while(1){h=d+-1|0;e=c[(c[1768+(h<<2)>>2]|0)+(k<<2)>>2]|0;if(g>>>0<e>>>0)d=h;else break}i=i<<31>>31;d=j+i-d^i;c[l>>2]=d<<16>>16;m=+((d&65535)<<16>>16);f=f+m*m;e=g-e|0;d=h}else{h=c[1768+(k<<2)>>2]|0;j=c[h+(j<<2)>>2]|0;g=e>>>0>=j>>>0;i=g<<31>>31;j=e-(g?j:0)|0;if((c[h+(k<<2)>>2]|0)>>>0>j>>>0){e=k;do{e=e+-1|0;g=c[(c[1768+(e<<2)>>2]|0)+(k<<2)>>2]|0}while(g>>>0>j>>>0);h=e}else{e=d;while(1){g=c[h+(e<<2)>>2]|0;if(g>>>0>j>>>0)e=e+-1|0;else{h=e;break}}}e=i+d-h^i;c[l>>2]=e<<16>>16;m=+((e&65535)<<16>>16);f=f+m*m;e=j-g|0;d=h}while(0);k=k+-1|0;if((k|0)<=2)break;else l=l+4|0}a=a+(b+-2<<2)|0}else f=0.0;b=d<<1|1;l=e>>>0>=b>>>0;k=l<<31>>31;b=e-(l?b:0)|0;l=(b+1|0)>>>1;b=b-((l|0)==0?0:(l<<1)+-1|0)|0;k=k+d-l^k;c[a>>2]=k<<16>>16;n=+((k&65535)<<16>>16);b=l-b^0-b;c[a+4>>2]=b<<16>>16;m=+((b&65535)<<16>>16);return +(f+n*n+m*m)}function ec(a,b,d,e,f,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;h=h|0;var i=0.0,j=0,k=0,l=0,m=0,n=0.0,o=0,p=0,q=0,r=0,s=0.0,t=0,u=0,v=0,w=0,x=0,y=0.0,z=0.0,A=0.0,B=0,C=0.0;if((f<<1|0)>=(b|0)|(h|0)==0)return;z=+(b|0)/+((S(c[1756+(h+-1<<2)>>2]|0,f)|0)+b|0);z=z*z*.5;y=+I(+(z*1.5707963705062866));z=+I(+((1.0-z)*1.5707963705062866));if((e<<3|0)>(b|0))f=0;else{h=e>>2;f=1;while(1)if(((S((S(f,f)|0)+f|0,e)|0)+h|0)<(b|0))f=f+1|0;else break}x=(b>>>0)/(e>>>0)|0;if((e|0)<=0)return;l=(d|0)<0;m=(f|0)==0;n=-z;o=x+-1|0;p=(x|0)>1;q=x+-3|0;r=(x|0)>2;s=-y;t=x-f|0;u=(t|0)>0;w=x-(f<<1)|0;v=w+-1|0;w=(w|0)>0;k=0;do{d=S(k,x)|0;j=a+(d<<2)|0;if(l){if(!m){if(u){h=j;b=0;while(1){A=+g[h>>2];B=h+(f<<2)|0;i=+g[B>>2];g[B>>2]=y*A+z*i;g[h>>2]=z*A+i*s;b=b+1|0;if((b|0)==(t|0))break;else h=h+4|0}}if(w){h=j+(v<<2)|0;b=v;while(1){i=+g[h>>2];B=h+(f<<2)|0;A=+g[B>>2];g[B>>2]=y*i+z*A;g[h>>2]=z*i+A*s;if((b|0)>0){h=h+-4|0;b=b+-1|0}else break}}}if(p){h=j;b=0;i=+g[j>>2];do{B=h;h=h+4|0;A=+g[h>>2];C=i;i=z*i+y*A;g[h>>2]=i;g[B>>2]=y*C+A*n;b=b+1|0}while((b|0)!=(o|0))}if(r){h=a+(d<<2)+(q<<2)|0;b=q;while(1){A=+g[h>>2];B=h+4|0;C=+g[B>>2];g[B>>2]=z*A+y*C;g[h>>2]=y*A+C*n;if((b|0)>0){h=h+-4|0;b=b+-1|0}else break}}}else{if(p){h=j;b=0;i=+g[j>>2];do{B=h;h=h+4|0;C=+g[h>>2];A=i;i=i*n+y*C;g[h>>2]=i;g[B>>2]=y*A+z*C;b=b+1|0}while((b|0)!=(o|0))}if(r){h=j+(q<<2)|0;b=q;while(1){A=+g[h>>2];B=h+4|0;C=+g[B>>2];g[B>>2]=A*n+y*C;g[h>>2]=y*A+z*C;if((b|0)>0){h=h+-4|0;b=b+-1|0}else break}}if(!m){if(u){h=j;b=0;while(1){A=+g[h>>2];B=h+(f<<2)|0;C=+g[B>>2];g[B>>2]=A*s+z*C;g[h>>2]=z*A+y*C;b=b+1|0;if((b|0)==(t|0))break;else h=h+4|0}}if(w){h=j+(v<<2)|0;b=v;while(1){A=+g[h>>2];B=h+(f<<2)|0;C=+g[B>>2];g[B>>2]=A*s+z*C;g[h>>2]=z*A+y*C;if((b|0)>0){h=h+-4|0;b=b+-1|0}else break}}}}k=k+1|0}while((k|0)!=(e|0));return}function fc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;j=b+-1|0;f=c[a+(j<<2)>>2]|0;i=(f|0)>-1?f:0-f|0;f=f>>>31;do{k=j;j=j+-1|0;h=b-j|0;f=(c[(c[1768+(((h|0)<(i|0)?h:i)<<2)>>2]|0)+(((h|0)>(i|0)?h:i)<<2)>>2]|0)+f|0;l=c[a+(j<<2)>>2]|0;i=((l|0)>-1?l:0-l|0)+i|0;g=i+1|0;if((l|0)<0)f=(c[(c[1768+(((h|0)>(i|0)?g:h)<<2)>>2]|0)+(((h|0)>(g|0)?h:g)<<2)>>2]|0)+f|0}while((k|0)>1);l=d+1|0;Vb(e,f,(c[(c[1768+(((l|0)>(b|0)?b:l)<<2)>>2]|0)+(((l|0)<(b|0)?b:l)<<2)>>2]|0)+(c[(c[1768+(((b|0)<(d|0)?b:d)<<2)>>2]|0)+(((b|0)>(d|0)?b:d)<<2)>>2]|0)|0);return}function gc(a){a=a|0;var b=0;a:do if((a|0)<16e3)if((a|0)<12e3){switch(a|0){case 8e3:break;default:{b=6;break a}}a=6;break}else{switch(a|0){case 12e3:break;default:{b=6;break a}}a=4;break}else{if((a|0)<24e3){switch(a|0){case 16e3:break;default:{b=6;break a}}a=3;break}if((a|0)>=48e3)switch(a|0){case 48e3:{a=1;break a}default:{b=6;break a}}switch(a|0){case 24e3:break;default:{b=6;break a}}a=2}while(0);if((b|0)==6)a=0;return a|0}function hc(a,b,c,d,e,f,h,i,j,k,l,m){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=+f;h=+h;i=i|0;j=j|0;k=k|0;l=l|0;m=m|0;var n=0.0,o=0.0,p=0.0,q=0,r=0.0,s=0.0,t=0.0,u=0,v=0,w=0,x=0,y=0.0,z=0.0,A=0.0,B=0.0,C=0.0;w=0-d|0;q=h==0.0;if(f==0.0&q){if((b|0)==(a|0))return;Ff(a|0,b|0,e<<2|0)|0;return}r=+g[6948+(i*12|0)>>2]*f;s=+g[6948+(i*12|0)+4>>2]*f;t=+g[6948+(i*12|0)+8>>2]*f;y=+g[6948+(j*12|0)>>2]*h;z=+g[6948+(j*12|0)+4>>2]*h;A=+g[6948+(j*12|0)+8>>2]*h;x=1-d|0;v=~d;u=-2-d|0;i=(c|0)==(d|0)&f==h&(i|0)==(j|0)?0:l;if((i|0)>0){l=2-d|0;f=+g[b+(u<<2)>>2];h=+g[b+(v<<2)>>2];n=+g[b+(w<<2)>>2];o=+g[b+(x<<2)>>2];m=0;while(1){p=+g[b+(l+m<<2)>>2];C=+g[k+(m<<2)>>2];C=C*C;B=1.0-C;j=m-c|0;g[a+(m<<2)>>2]=(f+p)*(A*C)+((o+h)*(z*C)+(n*(y*C)+(+g[b+(m<<2)>>2]+ +g[b+(j<<2)>>2]*(r*B)+s*B*(+g[b+(j+1<<2)>>2]+ +g[b+(j+-1<<2)>>2])+t*B*(+g[b+(j+2<<2)>>2]+ +g[b+(j+-2<<2)>>2]))));m=m+1|0;if((m|0)==(i|0)){m=i;break}else{B=o;C=n;f=h;o=p;n=B;h=C}}}else m=0;if(q){if((b|0)==(a|0))return;Ff(a+(i<<2)|0,b+(i<<2)|0,e-i<<2|0)|0;return}q=a+(m<<2)|0;j=b+(m<<2)|0;i=e-m|0;if((i|0)<=0)return;l=2-d|0;p=+g[j+(u<<2)>>2];o=+g[j+(v<<2)>>2];n=+g[j+(w<<2)>>2];f=+g[j+(x<<2)>>2];m=0;while(1){h=+g[j+(l+m<<2)>>2];g[q+(m<<2)>>2]=A*(p+h)+(z*(o+f)+(y*n+ +g[j+(m<<2)>>2]));m=m+1|0;if((m|0)==(i|0))break;else{B=f;C=n;p=o;f=h;n=B;o=C}}return}function ic(a,e,f,g){a=a|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0;n=a+8|0;k=c[n>>2]|0;if((k|0)<=0)return;m=g+-1+(f<<1)|0;l=c[a+32>>2]|0;i=c[a+104>>2]|0;h=0;j=b[l>>1]|0;a=k;do{k=h;h=h+1|0;o=j;j=b[l+(h<<1)>>1]|0;c[e+(k<<2)>>2]=(S(S((j<<16>>16)-(o<<16>>16)<<f,g)|0,(d[i+((S(a,m)|0)+k)>>0]|0)+64|0)|0)>>2;a=c[n>>2]|0}while((h|0)<(a|0));return}function jc(a,b,d){a=a|0;b=b|0;d=d|0;if((a|0)==48e3?(b|0)==960|(b&2147483647|0)==480|(b&1073741823|0)==240|(b&536870911|0)==120:0){if(!d){d=6984;return d|0}c[d>>2]=0;d=6984;return d|0}if(!d){d=0;return d|0}c[d>>2]=-1;d=0;return d|0}
function Ed(a,d,e,f,h,i){a=a|0;d=d|0;e=e|0;f=f|0;h=h|0;i=i|0;var j=0,k=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,Q=0,R=0,T=0,U=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0.0,ca=0,da=0,ea=0,fa=0,ga=0.0;fa=l;l=l+144|0;R=fa+80|0;Q=fa+72|0;O=fa+64|0;M=fa+56|0;I=fa+48|0;H=fa+40|0;L=fa+32|0;G=fa+24|0;F=fa+16|0;D=fa+8|0;C=fa;da=fa+96|0;w=fa+88|0;ea=fa+84|0;c[ea>>2]=0;v=a+(c[a+4>>2]|0)|0;N=a+(c[a>>2]|0)|0;$=a+12|0;j=c[$>>2]|0;J=(j|0)/50|0;r=J>>1;_=J>>2;aa=J>>3;if((aa|0)>(h|0)){a=-2;l=fa;return a|0}j=((j|0)/25|0)*3|0;j=(j|0)>(h|0)?h:j;do if((e|0)>=2)if(d){p=c[a+64>>2]|0;n=c[a+56>>2]|0;xc(da,d,e);h=c[a+60>>2]|0;if((h|0)>0){k=(n|0)==1002;h=(h|0)==1002;if(!(!(h|k^1)?!(c[a+68>>2]|0):0)){if(k){k=j;n=1002;h=p;m=1;q=19;break}if(!h){k=j;h=p;m=1;q=19;break}}Z=S(c[a+8>>2]|0,_)|0;h=k?1:Z;o=ra()|0;m=l;l=l+((1*((k?Z:1)<<2)|0)+15&-16)|0;k=(n|0)==1002;if(k){Ed(a,0,0,m,(_|0)<(p|0)?_:p,0)|0;E=d;A=h;u=m;s=1002;y=1;Z=p;m=1;Y=o;B=k}else{E=d;A=h;u=0;s=n;y=1;Z=p;m=1;Y=o;B=k}}else{k=j;h=p;m=1;q=19}}else q=5;else{q=c[a+64>>2]|0;j=(j|0)<(q|0)?j:q;q=5}while(0);do if((q|0)==5){h=c[a+60>>2]|0;if(!h){h=S(c[a+8>>2]|0,j)|0;if((h|0)<=0){a=j;l=fa;return a|0}tf(f|0,0,h<<2|0)|0;a=j;l=fa;return a|0}if((j|0)<=(J|0)){if((j|0)>=(J|0)){d=0;k=j;n=h;h=j;m=0;q=19;break}d=0;k=j;n=h;h=(j|0)>(r|0)?r:(j|0)<(r|0)&((j|0)>(_|0)&(h|0)!=1e3)?_:j;m=0;q=19;break}m=a+8|0;h=f;d=j;while(1){k=Ed(a,0,0,h,(d|0)<(J|0)?d:J,0)|0;d=d-k|0;if((k|0)<0){j=k;q=103;break}h=h+((S(c[m>>2]|0,k)|0)<<2)|0;if((d|0)<=0){q=103;break}}if((q|0)==103){l=fa;return j|0}}while(0);if((q|0)==19){E=d;j=k;A=1;u=0;s=n;y=0;Z=h;Y=ra()|0;B=(n|0)==1002}a:do if((Z|0)>(j|0))j=-1;else{do if(!B){o=a+8|0;r=(S(c[o>>2]|0,(r|0)>(Z|0)?r:Z)|0)<<1;p=l;l=l+((1*r|0)+15&-16)|0;if((c[a+60>>2]|0)==1002)nd(v)|0;r=(Z*1e3|0)/(c[$>>2]|0)|0;n=a+16|0;c[a+32>>2]=(r|0)>10?r:10;if(m){c[a+20>>2]=c[a+48>>2];if((s|0)==1e3){j=c[a+52>>2]|0;j=(j|0)==1101?8e3:(j|0)==1102?12e3:16e3}else j=16e3;c[a+28>>2]=j}d=(E|0)==0?1:i<<1;k=a+44|0;if(!d){j=p;h=0;do{if(od(v,n,0,(h|0)==0&1,da,j,w,c[k>>2]|0)|0){j=-3;break a}t=c[w>>2]|0;j=j+((S(c[o>>2]|0,t)|0)<<1)|0;h=t+h|0}while((h|0)<(Z|0))}else{j=p;h=0;do{if(od(v,n,d,(h|0)==0&1,da,j,w,c[k>>2]|0)|0?(c[w>>2]=Z,t=S(c[o>>2]|0,Z)|0,(t|0)>0):0)tf(j|0,0,t<<1|0)|0;r=c[w>>2]|0;j=j+((S(c[o>>2]|0,r)|0)<<1)|0;h=r+h|0}while((h|0)<(Z|0))}if((i|0)==0&m?(x=da+20|0,z=da+28|0,w=V(c[z>>2]|0)|0,((c[x>>2]|0)+-15+w+((c[a+56>>2]|0)==1001?20:0)|0)<=(e<<3|0)):0){if((s|0)==1001){j=Zb(da,12)|0;if(!j){z=1001;m=0;x=e;r=0;q=0;h=1;o=p;break}m=Zb(da,1)|0;d=(Wb(da,256)|0)+2|0;k=c[x>>2]|0;h=c[z>>2]|0}else{m=Zb(da,1)|0;x=c[x>>2]|0;d=c[z>>2]|0;j=1;k=x;h=d;d=e-(x+-25+(V(d|0)|0)>>3)|0}x=e-d|0;q=(x<<3|0)<(k+-32+(V(h|0)|0)|0);r=q?0:d;z=da+4|0;c[z>>2]=(c[z>>2]|0)-r;z=s;x=q?0:x;q=q?0:j;h=1;o=p}else{z=s;m=0;x=e;r=0;q=0;h=1;o=p}}else{o=l;l=l+16|0;z=1002;m=0;x=e;r=0;q=0;h=0}while(0);n=h?17:0;switch(c[a+52>>2]|0){case 1101:{j=13;break}case 1103:case 1102:{j=17;break}case 1104:{j=19;break}default:j=21}c[C>>2]=j;tc(N,10012,C)|0;c[D>>2]=c[a+48>>2];tc(N,10008,D)|0;w=(q|0)!=0;j=l;l=l+((1*((w?1:A)<<2)|0)+15&-16)|0;t=y&(w^1);if(h&t){Ed(a,0,0,j,(_|0)<(Z|0)?_:Z,0)|0;u=j}if(w){D=(S(c[a+8>>2]|0,_)|0)<<2;j=l;l=l+((1*D|0)+15&-16)|0;if(!m){v=0;k=j;d=0}else{c[F>>2]=0;tc(N,10010,F)|0;uc(N,E+x|0,r,j,_,0,0)|0;c[G>>2]=ea;tc(N,4031,G)|0;v=1;k=j;d=1}}else{k=l;l=l+16|0;v=(m|0)!=0;d=0}c[L>>2]=n;tc(N,10010,L)|0;if((z|0)==1e3){b[L>>1]=-1;j=S(c[a+8>>2]|0,Z)|0;if((j|0)>0)tf(f|0,0,j<<2|0)|0;do if((c[a+60>>2]|0)==1001){if(d?c[a+68>>2]|0:0)break;c[I>>2]=0;tc(N,10010,I)|0;uc(N,L,2,f,aa,0,0)|0}while(0);s=0}else{j=(J|0)<(Z|0)?J:Z;J=c[a+60>>2]|0;if((z|0)!=(J|0)&(J|0)>0?(c[a+68>>2]|0)==0:0)tc(N,4028,H)|0;s=uc(N,i|0?0:E,x,f,j,da,0)|0}if(!B?(K=S(c[a+8>>2]|0,Z)|0,(K|0)>0):0){j=0;do{J=f+(j<<2)|0;g[J>>2]=+g[J>>2]+ +(b[o+(j<<1)>>1]|0)*.000030517578125;j=j+1|0}while((j|0)<(K|0))}c[M>>2]=L;tc(N,10015,M)|0;p=c[(c[L>>2]|0)+60>>2]|0;if(!((q|0)==0|v)?(tc(N,4028,O)|0,c[Q>>2]=0,tc(N,10010,Q)|0,uc(N,E+x|0,r,k,_,0,0)|0,c[R>>2]=ea,tc(N,4031,R)|0,T=c[a+8>>2]|0,U=f+((S(T,Z-aa|0)|0)<<2)|0,W=k+((S(T,aa)|0)<<2)|0,X=48e3/(c[$>>2]|0)|0,(aa|0)>0&(T|0)>0):0){j=0;do{h=0;do{ga=+g[p+((S(h,X)|0)<<2)>>2];ga=ga*ga;Q=(S(h,T)|0)+j|0;R=U+(Q<<2)|0;g[R>>2]=ga*+g[W+(Q<<2)>>2]+(1.0-ga)*+g[R>>2];h=h+1|0}while((h|0)!=(aa|0));j=j+1|0}while((j|0)!=(T|0))}if(d){o=c[a+8>>2]|0;n=(o|0)>0;if(n&(aa|0)>0){j=0;do{h=0;do{X=(S(h,o)|0)+j|0;c[f+(X<<2)>>2]=c[k+(X<<2)>>2];h=h+1|0}while((h|0)!=(aa|0));j=j+1|0}while((j|0)<(o|0))}m=S(o,aa)|0;d=k+(m<<2)|0;k=f+(m<<2)|0;m=48e3/(c[$>>2]|0)|0;if((aa|0)>0&n){j=0;do{h=0;do{ga=+g[p+((S(h,m)|0)<<2)>>2];ga=ga*ga;W=(S(h,o)|0)+j|0;X=k+(W<<2)|0;g[X>>2]=ga*+g[X>>2]+(1.0-ga)*+g[d+(W<<2)>>2];h=h+1|0}while((h|0)!=(aa|0));j=j+1|0}while((j|0)!=(o|0))}}b:do if(t){n=c[a+8>>2]|0;if((Z|0)<(_|0)){d=48e3/(c[$>>2]|0)|0;if((aa|0)>0&(n|0)>0)j=0;else break;while(1){h=0;do{ga=+g[p+((S(h,d)|0)<<2)>>2];ga=ga*ga;_=(S(h,n)|0)+j|0;$=f+(_<<2)|0;g[$>>2]=ga*+g[$>>2]+(1.0-ga)*+g[u+(_<<2)>>2];h=h+1|0}while((h|0)!=(aa|0));j=j+1|0;if((j|0)==(n|0))break b}}h=S(n,aa)|0;if((h|0)>0){j=0;do{c[f+(j<<2)>>2]=c[u+(j<<2)>>2];j=j+1|0}while((j|0)<(h|0))}m=u+(h<<2)|0;k=f+(h<<2)|0;d=48e3/(c[$>>2]|0)|0;if((aa|0)>0&(n|0)>0){j=0;do{h=0;do{ga=+g[p+((S(h,d)|0)<<2)>>2];ga=ga*ga;_=(S(h,n)|0)+j|0;$=k+(_<<2)|0;g[$>>2]=ga*+g[$>>2]+(1.0-ga)*+g[m+(_<<2)>>2];h=h+1|0}while((h|0)!=(aa|0));j=j+1|0}while((j|0)!=(n|0))}}while(0);j=c[a+40>>2]|0;if(j|0?(ba=+P(+(+(j|0)*6.488140788860619e-04*.6931471805599453)),ca=S(c[a+8>>2]|0,Z)|0,(ca|0)>0):0){j=0;do{aa=f+(j<<2)|0;g[aa>>2]=ba*+g[aa>>2];j=j+1|0}while((j|0)<(ca|0))}if((x|0)<2)j=0;else j=c[ea>>2]^c[da+28>>2];c[a+84>>2]=j;c[a+60>>2]=z;c[a+68>>2]=w&(v^1)&1;j=(s|0)<0?s:Z}while(0);pa(Y|0);a=j;l=fa;return a|0}function Fd(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;j=l;l=l+32|0;f=j+8|0;g=j;i=j+16|0;e=c[a+4>>2]|0;h=a+(c[a>>2]|0)|0;c[i>>2]=d;a:do switch(b|0){case 4009:{h=(c[i>>2]|0)+(4-1)&~(4-1);b=c[h>>2]|0;c[i>>2]=h+4;if(!b)e=20;else{c[b>>2]=c[a+52>>2];b=0;e=19}break}case 4031:{h=(c[i>>2]|0)+(4-1)&~(4-1);b=c[h>>2]|0;c[i>>2]=h+4;if(!b)e=20;else{c[b>>2]=c[a+84>>2];b=0;e=19}break}case 4028:{b=a+e|0;e=a+48|0;d=e;f=d+40|0;do{c[d>>2]=0;d=d+4|0}while((d|0)<(f|0));tc(h,4028,g)|0;nd(b)|0;c[e>>2]=c[a+8>>2];c[a+64>>2]=(c[a+12>>2]|0)/400|0;b=0;e=19;break}case 4029:{h=(c[i>>2]|0)+(4-1)&~(4-1);b=c[h>>2]|0;c[i>>2]=h+4;if(!b)e=20;else{c[b>>2]=c[a+12>>2];b=0;e=19}break}case 4033:{g=(c[i>>2]|0)+(4-1)&~(4-1);b=c[g>>2]|0;c[i>>2]=g+4;if(b)if((c[a+60>>2]|0)==1002){c[f>>2]=b;tc(h,4033,f)|0;b=0;e=19;break a}else{c[b>>2]=c[a+36>>2];b=0;e=19;break a}else e=20;break}case 4045:{h=(c[i>>2]|0)+(4-1)&~(4-1);b=c[h>>2]|0;c[i>>2]=h+4;if(!b)e=20;else{c[b>>2]=c[a+40>>2];b=0;e=19}break}case 4034:{h=(c[i>>2]|0)+(4-1)&~(4-1);b=c[h>>2]|0;c[i>>2]=h+4;if((b+32768|0)>>>0>65535)e=20;else{c[a+40>>2]=b;b=0;e=19}break}case 4039:{h=(c[i>>2]|0)+(4-1)&~(4-1);b=c[h>>2]|0;c[i>>2]=h+4;if(!b)e=20;else{c[b>>2]=c[a+72>>2];b=0;e=19}break}default:{b=-5;e=19}}while(0);if((e|0)==19){a=b;l=j;return a|0}else if((e|0)==20){a=-1;l=j;return a|0}return 0}function Gd(b,c){b=b|0;c=c|0;a:do if((c|0)>=1){switch(a[b>>0]&3){case 0:{b=1;break a}case 3:break;default:{b=2;break a}}if((c|0)<2)b=-4;else b=a[b+1>>0]&63}else b=-1;while(0);return b|0}function Hd(b,c,d){b=b|0;c=c|0;d=d|0;if((c|0)<1){d=-1;return d|0}a:do switch(a[b>>0]&3){case 0:{c=1;break}case 3:if((c|0)<2){d=-4;return d|0}else{c=a[b+1>>0]&63;break a}default:c=2}while(0);b=S(zd(b,d)|0,c)|0;d=(b*25|0)>(d*3|0)?-4:b;return d|0}function Id(b){b=b|0;var d=0,e=0,f=0,g=0;e=(c[b+8>>2]|0)+(c[b+4>>2]|0)|0;if((e|0)>255){f=0;return f|0}f=c[b>>2]|0;if((f|0)>0)d=0;else{f=1;return f|0}while(1){g=a[b+12+d>>0]|0;d=d+1|0;if(!(g<<24>>24==-1|(g&255|0)<(e|0))){d=0;b=5;break}if((d|0)>=(f|0)){d=1;b=5;break}}if((b|0)==5)return d|0;return 0}function Jd(a,b,e){a=a|0;b=b|0;e=e|0;var f=0;e=(e|0)<0?0:e+1|0;f=c[a>>2]|0;if((e|0)>=(f|0)){a=-1;return a|0}b=b<<1;while(1){if((d[a+12+e>>0]|0|0)==(b|0)){b=5;break}e=e+1|0;if((e|0)>=(f|0)){e=-1;b=5;break}}if((b|0)==5)return e|0;return 0}function Kd(a,b,e){a=a|0;b=b|0;e=e|0;var f=0;e=(e|0)<0?0:e+1|0;f=c[a>>2]|0;if((e|0)>=(f|0)){a=-1;return a|0}b=b<<1|1;while(1){if((d[a+12+e>>0]|0|0)==(b|0)){b=5;break}e=e+1|0;if((e|0)>=(f|0)){e=-1;b=5;break}}if((b|0)==5)return e|0;return 0}function Ld(a,b,e){a=a|0;b=b|0;e=e|0;var f=0;e=(e|0)<0?0:e+1|0;f=c[a>>2]|0;if((e|0)>=(f|0)){a=-1;return a|0}b=(c[a+8>>2]|0)+b|0;while(1){if((d[a+12+e>>0]|0|0)==(b|0)){b=5;break}e=e+1|0;if((e|0)>=(f|0)){e=-1;b=5;break}}if((b|0)==5)return e|0;return 0}function Md(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0;if((e+-1|0)>>>0>254){d=-1;return d|0}if((255-g|0)<(f|0)|((g|0)<0|((f|0)<1|(g|0)>(f|0)))){d=-1;return d|0}c[b>>2]=e;j=b+4|0;c[j>>2]=f;i=b+8|0;c[i>>2]=g;e=0;do{a[b+12+e>>0]=a[h+e>>0]|0;e=e+1|0}while((e|0)<(c[b>>2]|0));if(!(Id(b)|0)){d=-1;return d|0}f=b+268|0;e=Bd(2)|0;h=Bd(1)|0;a:do if((c[i>>2]|0)>0){b=e+3&-4;g=f;f=0;while(1){e=Cd(g,d,2)|0;if(e|0)break;e=g+b|0;f=f+1|0;if((f|0)<(c[i>>2]|0))g=e;else break a}return e|0}else{e=f;f=0}while(0);if((f|0)>=(c[j>>2]|0)){d=0;return d|0}b=h+3&-4;g=e;while(1){e=Cd(g,d,1)|0;if(e|0){f=14;break}f=f+1|0;if((f|0)>=(c[j>>2]|0)){e=0;f=14;break}else g=g+b|0}if((f|0)==14)return e|0;return 0}function Nd(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 h=0;if((b+-1|0)>>>0<=254?!((255-e|0)<(d|0)|((e|0)<0|((d|0)<1|(d|0)<(e|0)))):0){h=Bd(2)|0;h=kf((S(h+3&-4,e)|0)+268+(S((Bd(1)|0)+3&-4,d-e|0)|0)|0)|0;if(!h){if(!g){g=0;return g|0}c[g>>2]=-7;g=0;return g|0}a=Md(h,a,b,d,e,f)|0;if(g|0)c[g>>2]=a;if(!a){g=h;return g|0}lf(h);g=0;return g|0}if(!g){g=0;return g|0}c[g>>2]=-1;g=0;return g|0}function Od(b,d,e,f,g,h,i,j){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=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;E=l;l=l+112|0;C=E;u=E+16|0;v=E+8|0;k=E+4|0;c[C>>2]=k;Pd(b,4029,C)|0;D=((c[k>>2]|0)/25|0)*3|0;h=(D|0)>(h|0)?h:D;D=ra()|0;z=l;l=l+((1*(h<<1<<2)|0)+15&-16)|0;x=b+268|0;A=Bd(2)|0;B=Bd(1)|0;w=(e|0)==0;if((e|0)<0){g=-1;pa(D|0);l=E;return g|0}y=b+4|0;if(!w){t=c[y>>2]|0;if(((t<<1)+-1|0)>(e|0)){g=-4;pa(D|0);l=E;return g|0}r=c[k>>2]|0;s=t+-1|0;a:do if((t|0)>0){n=0;o=d;p=0;q=e;while(1){if((q|0)<1){k=-4;break a}k=Ad(o,q,(p|0)!=(s|0)&1,C,0,u,0,v)|0;if((k|0)<0)break a;k=Hd(o,c[v>>2]|0,r)|0;if(!((p|0)==0|(n|0)==(k|0))){k=-4;break a}m=c[v>>2]|0;p=p+1|0;if((p|0)>=(t|0))break;else{n=k;o=o+m|0;q=q-m|0}}}else k=0;while(0);m=(k|0)<0;if(m|(k|0)>(h|0)){g=m?k:-2;pa(D|0);l=E;return g|0}else k=e}else k=0;m=c[y>>2]|0;b:do if((m|0)>0){t=b+8|0;r=w^1;s=z+4|0;q=d;p=k;o=0;n=x;while(1){k=n;n=n+(((o|0)<(c[t>>2]|0)?A:B)+3&-4)|0;if((p|0)<1&r){h=-3;break}c[C>>2]=0;h=Dd(k,q,p,z,h,i,(o|0)!=(m+-1|0)&1,C,j)|0;x=c[C>>2]|0;q=q+x|0;p=p-x|0;if((h|0)<1)break;if((o|0)<(c[t>>2]|0)){k=Jd(b,o,-1)|0;if((k|0)!=-1)do{va[g&1](f,c[b>>2]|0,k,z,2,h);k=Jd(b,o,k)|0}while((k|0)!=-1);k=Kd(b,o,-1)|0;if((k|0)!=-1)do{va[g&1](f,c[b>>2]|0,k,s,2,h);k=Kd(b,o,k)|0}while((k|0)!=-1)}else{k=Ld(b,o,-1)|0;if((k|0)!=-1)do{va[g&1](f,c[b>>2]|0,k,z,1,h);k=Ld(b,o,k)|0}while((k|0)!=-1)}o=o+1|0;m=c[y>>2]|0;if((o|0)>=(m|0)){n=b;break b}}g=h;pa(D|0);l=E;return g|0}else n=b;while(0);k=c[n>>2]|0;if((k|0)>0)m=0;else{g=h;pa(D|0);l=E;return g|0}do{if((a[b+12+m>>0]|0)==-1){va[g&1](f,k,m,0,0,h);k=c[n>>2]|0}m=m+1|0}while((m|0)<(k|0));pa(D|0);l=E;return h|0}function Pd(a,b,d){a=a|0;b=b|0;d=d|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;q=l;l=l+48|0;k=q+24|0;i=q+16|0;n=q+8|0;f=q;j=q+32|0;m=q+28|0;c[j>>2]=d;o=Bd(2)|0;p=Bd(1)|0;e=a+268|0;a:do switch(b|0){case 4039:case 4045:case 4029:case 4009:{p=(c[j>>2]|0)+(4-1)&~(4-1);d=c[p>>2]|0;c[j>>2]=p+4;c[f>>2]=d;d=Fd(e,b,f)|0;e=26;break}case 4031:{k=(c[j>>2]|0)+(4-1)&~(4-1);i=c[k>>2]|0;c[j>>2]=k+4;if(!i){e=27;break a}c[i>>2]=0;h=a+4|0;b:do if((c[h>>2]|0)>0){g=a+8|0;b=0;while(1){f=c[g>>2]|0;c[n>>2]=m;d=Fd(e,4031,n)|0;if(d|0)break b;c[i>>2]=c[i>>2]^c[m>>2];d=b+1|0;if((d|0)<(c[h>>2]|0)){e=e+(((b|0)<(f|0)?o:p)+3&-4)|0;b=d}else{d=0;break}}}else d=0;while(0);e=26;break}case 4028:{h=a+4|0;if((c[h>>2]|0)>0){g=a+8|0;f=0;while(1){b=c[g>>2]|0;d=Fd(e,4028,i)|0;if(d|0){e=26;break a}e=e+(((f|0)<(b|0)?o:p)+3&-4)|0;f=f+1|0;if((f|0)>=(c[h>>2]|0)){d=0;e=26;break}}}else{d=0;e=26}break}case 5122:{n=(c[j>>2]|0)+(4-1)&~(4-1);g=c[n>>2]|0;c[j>>2]=n+4;if((g|0)>=0?(g|0)<(c[a+4>>2]|0):0)d=0;else d=-1;n=(c[j>>2]|0)+(4-1)&~(4-1);h=c[n>>2]|0;c[j>>2]=n+4;if(!h)e=27;else{if((g|0)>0){f=c[a+8>>2]|0;b=0;do{e=e+(((b|0)<(f|0)?o:p)+3&-4)|0;b=b+1|0}while((b|0)!=(g|0))}c[h>>2]=e;e=26}break}case 4034:{h=(c[j>>2]|0)+(4-1)&~(4-1);i=c[h>>2]|0;c[j>>2]=h+4;h=a+4|0;if((c[h>>2]|0)>0){g=a+8|0;f=0;while(1){b=c[g>>2]|0;c[k>>2]=i;d=Fd(e,4034,k)|0;if(d|0){e=26;break a}e=e+(((f|0)<(b|0)?o:p)+3&-4)|0;f=f+1|0;if((f|0)>=(c[h>>2]|0)){d=0;e=26;break}}}else{d=0;e=26}break}default:{d=-5;e=26}}while(0);if((e|0)==26){p=d;l=q;return p|0}else if((e|0)==27){p=-1;l=q;return p|0}return 0}function Qd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;return Od(a,b,c,d,1,e,f,0)|0}function Rd(a,b,d,e,f,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;h=h|0;var i=0;i=(h|0)>0;if(!e){if(i)i=0;else return;do{g[a+((S(i,b)|0)+d<<2)>>2]=0.0;i=i+1|0}while((i|0)!=(h|0));return}else{if(i)i=0;else return;do{c[a+((S(i,b)|0)+d<<2)>>2]=c[e+((S(i,f)|0)<<2)>>2];i=i+1|0}while((i|0)!=(h|0));return}}function Sd(a){a=a|0;lf(a);return}function Td(d,e){d=d|0;e=e|0;var 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,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=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,ia=0,ja=0;fa=l;l=l+46416|0;ca=fa+224|0;ba=fa+216|0;X=fa+208|0;W=fa+200|0;V=fa+184|0;U=fa+176|0;T=fa+168|0;S=fa+160|0;R=fa+152|0;Q=fa+144|0;P=fa+136|0;O=fa+112|0;N=fa+104|0;M=fa+96|0;L=fa+88|0;K=fa+80|0;J=fa+72|0;I=fa+64|0;Z=fa+48|0;n=fa+40|0;m=fa+32|0;i=fa+24|0;h=fa+16|0;g=fa+8|0;f=fa;aa=fa+46360|0;da=fa+276|0;E=fa+280|0;F=fa+23320|0;G=fa+272|0;H=fa+232|0;ea=_a(d,da)|0;if(!ea){ea=c[4813]|0;da=c[da>>2]|0;c[f>>2]=d;c[f+4>>2]=da;Ne(ea,27031,f)|0;ea=1;l=fa;return ea|0}$=Ye(e,27061)|0;if(!$){ea=c[4813]|0;c[g>>2]=e;Ne(ea,27064,g)|0;ea=1;l=fa;return ea|0}_=(_e($,0,1)|0)!=-1;do if(ab(ea)|0){e=c[4813]|0;c[h>>2]=bb(ea)|0;Ne(e,27251,h)|0;f=eb(ea,-1)|0;g=D;bf(27278,16,1,e)|0;Ud(e,f,g,3);c[i>>2]=f;Ne(e,27295,i)|0;j=db(ea,-1)|0;i=D;bf(27320,12,1,e)|0;Vd(e,j,i,0,31232);gf(10,e)|0;i=aa;j=27207;k=i+44|0;do{a[i>>0]=a[j>>0]|0;i=i+1|0;j=j+1|0}while((i|0)<(k|0));if((g|0)>0|(g|0)==0&f>>>0>0)if((g|0)>0|(g|0)==0&f>>>0>536870902){bf(27333,47,1,e)|0;bf(27148,58,1,e)|0;Y=f;C=g;break}else{Y=f<<2;C=Y+36|0;a[aa+4>>0]=C;a[aa+5>>0]=C>>>8;a[aa+6>>0]=C>>>16;a[aa+7>>0]=C>>>24;a[aa+40>>0]=Y;a[aa+41>>0]=f>>>6;a[aa+42>>0]=f>>>14;a[aa+43>>0]=f>>>22;Y=f;C=g;break}else{Y=f;C=g}}else{if(!_){Y=c[4813]|0;bf(27099,48,1,Y)|0;bf(27148,58,1,Y)|0}i=aa;j=27207;k=i+44|0;do{a[i>>0]=a[j>>0]|0;i=i+1|0;j=j+1|0}while((i|0)<(k|0));Y=0;C=0}while(0);do if(!(bf(aa,44,1,$)|0)){f=c[4813]|0;c[m>>2]=se(c[(_d()|0)>>2]|0)|0;Ne(f,27381,m)|0;c[da>>2]=1}else{i=kb(ea)|0;j=D;if(!((i|0)==0&(j|0)==0)){B=c[4813]|0;c[n>>2]=i;Ne(B,27411,n)|0}h=nb(ea,E,11520)|0;c[da>>2]=h;a:do if((h|0)>=0){m=sf(i|0,j|0,-48e3,-1)|0;f=c[4813]|0;t=H+4|0;u=H+8|0;v=H+12|0;w=H+16|0;x=H+20|0;y=H+24|0;z=H+36|0;A=H+32|0;B=H+28|0;p=0;s=-1;n=D;g=0;e=0;q=i;r=j;while(1){o=s;s=gb(ea)|0;o=(s|0)!=(o|0);if(o){c[I>>2]=s;Ne(f,27488,I)|0;h=cb(ea,s)|0;c[J>>2]=c[h+4>>2];Ne(f,27533,J)|0;if(ab(ea)|0){j=eb(ea,s)|0;k=D;bf(27549,12,1,f)|0;Ud(f,j,k,3);c[K>>2]=j;Ne(f,27295,K)|0;j=db(ea,s)|0;k=D;bf(27562,8,1,f)|0;Vd(f,j,k,0,31232);gf(10,f)|0}h=c[h+12>>2]|0;if(h|0){c[L>>2]=h;Ne(f,27571,L)|0}j=fb(ea,s)|0;c[M>>2]=c[j+12>>2];Ne(f,27605,M)|0;k=j+8|0;if((c[k>>2]|0)>0){i=0;do{h=c[(c[j>>2]|0)+(i<<2)>>2]|0;if(!(Ja(27623,22,h)|0)){ga=Na(H,h)|0;c[N>>2]=h;Ne(f,27646,N)|0;if((ga|0)>-1){ja=c[t>>2]|0;ia=c[u>>2]|0;ha=c[v>>2]|0;ga=c[w>>2]|0;h=c[x>>2]|0;c[O>>2]=c[H>>2];c[O+4>>2]=ja;c[O+8>>2]=ia;c[O+12>>2]=ha;c[O+16>>2]=ga;c[O+20>>2]=h;Ne(f,27654,O)|0;h=c[y>>2]|0;if(h|0){c[P>>2]=h;Ne(f,27672,P)|0}if(!(c[z>>2]|0)){c[Q>>2]=c[A>>2];Ne(f,27676,Q)|0}else{c[R>>2]=c[B>>2];Ne(f,27681,R)|0}Oa(H)}else bf(27708,28,1,f)|0}else{c[S>>2]=c[(c[j>>2]|0)+(i<<2)>>2];Ne(f,27737,S)|0}i=i+1|0}while((i|0)<(c[k>>2]|0))}if(Ka(j,G)|0){c[T>>2]=c[G>>2];Ne(f,27743,T)|0}gf(10,f)|0;if(!(ab(ea)|0)){i=kb(ea)|0;h=c[da>>2]|0;h=rf(i|0,D|0,h|0,((h|0)<0)<<31>>31|0)|0;i=D;if((h|0)==0&(i|0)==0){h=0;i=0}else{c[U>>2]=s;c[U+4>>2]=h;Ne(f,27782,U)|0}}else{h=q;i=r}}else{i=r;h=q}ja=sf(m|0,n|0,48e3,0)|0;ia=D;if(((i|0)<(ia|0)|(i|0)==(ia|0)&h>>>0<ja>>>0)&(o^1))k=p;else{k=hb(ea)|0;k=(k|0)>-1?k:p;n=jb(ea)|0;m=D;bf(27828,2,1,f)|0;Vd(f,n,m,0,31232);bf(27831,2,1,f)|0;Ud(f,h,i,0);bf(27834,3,1,f)|0;Vd(f,k,((k|0)<0)<<31>>31,1,27838);bf(27840,25,1,f)|0;Te(f)|0;m=h;n=i}q=kb(ea)|0;r=D;j=c[da>>2]|0;ja=sf(j|0,((j|0)<0)<<31>>31|0,h|0,i|0)|0;if(!((ja|0)==(q|0)&(D|0)==(r|0))){c[V>>2]=h;c[V+4>>2]=j;c[V+8>>2]=q;Ne(f,27866,V)|0;j=c[da>>2]|0}if((j|0)<1){i=57;break}i=j<<1;h=0;do{ia=b[E+(h<<1)>>1]|0;ja=h<<1;a[F+ja>>0]=ia;a[F+(ja|1)>>0]=(ia&65535)>>>8;h=h+1|0}while((h|0)<(i|0));if(!(bf(F,j<<2,1,$)|0)){i=54;break}h=c[da>>2]|0;g=sf(h|0,((h|0)<0)<<31>>31|0,g|0,e|0)|0;e=D;h=nb(ea,E,11520)|0;c[da>>2]=h;if((h|0)<0){i=20;break a}else p=k}if((i|0)==54){c[W>>2]=se(c[(_d()|0)>>2]|0)|0;Ne(f,27896,W)|0;i=56;break}else if((i|0)==57){c[da>>2]=0;bf(27935,14,1,f)|0;Ud(f,g,e,3);c[X>>2]=g;Ne(f,27950,X)|0;h=e;break}}else{g=0;e=0;f=c[4813]|0;i=20}while(0);if((i|0)==20){c[Z>>2]=d;c[Z+4>>2]=h;c[Z+8>>2]=11520;Ne(f,27446,Z)|0;i=56}if((i|0)==56){c[da>>2]=1;h=e}e=(g|0)==(Y|0)&(h|0)==(C|0);if(e|(ab(ea)|0)==0){if(e|_^1)break}else{c[ba>>2]=g;c[ba+4>>2]=Y;Ne(f,27976,ba)|0;if(!_){bf(28059,33,1,f)|0;break}}i=aa;j=27207;k=i+44|0;do{a[i>>0]=a[j>>0]|0;i=i+1|0;j=j+1|0}while((i|0)<(k|0));do if((h|0)>0|(h|0)==0&g>>>0>0)if((h|0)>0|(h|0)==0&g>>>0>536870902){bf(27333,47,1,f)|0;bf(27148,58,1,f)|0;break}else{ja=g<<2;ia=ja+36|0;a[aa+4>>0]=ia;a[aa+5>>0]=ia>>>8;a[aa+6>>0]=ia>>>16;a[aa+7>>0]=ia>>>24;a[aa+40>>0]=ja;a[aa+41>>0]=g>>>6;a[aa+42>>0]=g>>>14;a[aa+43>>0]=g>>>22;break}while(0);if((_e($,0,0)|0)==0?bf(aa,44,1,$)|0:0)break;c[ca>>2]=se(c[(_d()|0)>>2]|0)|0;Ne(f,28093,ca)|0;c[da>>2]=1}while(0);$a(ea);Pe($)|0;bf(28125,20,1,f)|0;ja=c[da>>2]|0;l=fa;return ja|0}function Ud(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var 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,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;y=l;l=l+80|0;u=y+64|0;t=y+56|0;s=y+48|0;r=y+40|0;q=y+32|0;w=y+24|0;v=y+16|0;p=y+8|0;o=y;n=(e|0)!=0;A=sf((n?24:24e3)|0,(n?0:0)|0,b|0,d|0)|0;z=D;i=yf(A|0,z|0,48e3,0)|0;d=D;e=Cf(i|0,d|0,-48e3,-1)|0;e=sf(e|0,D|0,A|0,z|0)|0;b=D;g=yf(A|0,z|0,288e4,0)|0;f=D;h=Cf(g|0,f|0,-60,-1)|0;d=sf(h|0,D|0,i|0,d|0)|0;i=yf(A|0,z|0,1728e5,0)|0;h=D;m=Cf(i|0,h|0,-60,-1)|0;f=sf(m|0,D|0,g|0,f|0)|0;g=D;m=yf(A|0,z|0,-147767296,0)|0;k=D;j=Cf(m|0,k|0,-24,-1)|0;h=sf(j|0,D|0,i|0,h|0)|0;i=D;j=yf(A|0,z|0,-1034371072,6)|0;B=Cf(j|0,D|0,-7,-1)|0;k=sf(B|0,D|0,m|0,k|0)|0;m=D;z=sf(A|0,z|0,-1034371073,6)|0;A=D;do if(!(A>>>0>13|(A|0)==13&z>>>0>2226225150))if((k|0)==0&(m|0)==0){if(!((h|0)==0&(i|0)==0)){c[w>>2]=h;Ne(a,28200,w)|0;x=8;break}if((f|0)==0&(g|0)==0){c[t>>2]=d;Ne(a,28219,t)|0;break}else{c[r>>2]=f;Ne(a,28210,r)|0;x=10;break}}else x=5;else{c[o>>2]=j;Ne(a,28185,o)|0;x=5}while(0);if((x|0)==5){c[p>>2]=k;Ne(a,28190,p)|0;c[v>>2]=h;Ne(a,28194,v)|0;x=8}if((x|0)==8){c[q>>2]=f;Ne(a,28204,q)|0;x=10}if((x|0)==10){c[s>>2]=d;Ne(a,28214,s)|0}if(!n){gf(115,a)|0;l=y;return}B=yf(e|0,b|0,48,0)|0;c[u>>2]=B;Ne(a,28222,u)|0;gf(115,a)|0;l=y;return}function Vd(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;u=l;l=l+48|0;s=u+32|0;t=u+16|0;r=u;o=(f|0)!=0;j=o?1e3:1024;f=o?0:0;if(!((f|0)>(e|0)|(f|0)==(e|0)&j>>>0>d>>>0)){h=uf(j|0,f|0,1)|0;i=D;k=o?1e6:1048576;m=o?0:0;q=rf(k|0,m|0,h|0,i|0)|0;p=D;if(!((p|0)>(e|0)|(p|0)==(e|0)&q>>>0>d>>>0)){h=uf(k|0,m|0,1)|0;i=D;j=o?1e9:1073741824;f=o?0:0;q=rf(j|0,f|0,h|0,i|0)|0;p=D;if(!((p|0)>(e|0)|(p|0)==(e|0)&q>>>0>d>>>0)){h=uf(j|0,f|0,1)|0;i=D;m=o?-727379968:0;n=o?232:256;q=rf(m|0,n|0,h|0,i|0)|0;p=D;if(!((p|0)>(e|0)|(p|0)==(e|0)&q>>>0>d>>>0)){f=uf(m|0,n|0,1)|0;h=D;i=o?-1530494976:0;k=o?232830:262144;q=rf(i|0,k|0,f|0,h|0)|0;p=D;if((p|0)>(e|0)|(p|0)==(e|0)&q>>>0>d>>>0){q=4;p=f;o=h;j=m;f=n}else{h=uf(i|0,k|0,1)|0;m=D;j=o?-1486618624:0;f=o?232830643:268435456;n=rf(j|0,f|0,h|0,m|0)|0;p=D;n=(p|0)>(e|0)|(p|0)==(e|0)&n>>>0>d>>>0;p=uf(j|0,f|0,1)|0;q=n?5:6;p=n?h:p;o=n?m:D;j=n?i:j;f=n?k:f}}else{q=3;p=h;o=i}}else{q=2;p=h;o=i;j=k;f=m}}else{q=1;p=h;o=i}i=sf(p|0,o|0,d|0,e|0)|0;i=yf(i|0,D|0,j|0,f|0)|0;h=D;if((h|0)<0|(h|0)==0&i>>>0<10){if(f>>>0>0|(f|0)==0&j>>>0>999999999){s=Af(p|0,o|0,100,0)|0;s=sf(s|0,D|0,d|0,e|0)|0;t=D;d=Af(j|0,f|0,100,0)|0;d=yf(s|0,t|0,d|0,D|0)|0;f=D}else{d=Cf(d|0,e|0,100,0)|0;d=sf(p|0,o|0,d|0,D|0)|0;d=yf(d|0,D|0,j|0,f|0)|0;f=D}e=yf(d|0,f|0,100,0)|0;s=zf(d|0,f|0,100,0)|0;t=a[28146+q>>0]|0;c[r>>2]=e;c[r+4>>2]=s;c[r+8>>2]=g;c[r+12>>2]=t;Ne(b,28153,r)|0;l=u;return}if((h|0)<0|(h|0)==0&i>>>0<100){if(f>>>0>0|(f|0)==0&j>>>0>999999999){r=Af(p|0,o|0,10,0)|0;r=sf(r|0,D|0,d|0,e|0)|0;s=D;d=Af(j|0,f|0,10,0)|0;d=yf(r|0,s|0,d|0,D|0)|0;f=D}else{d=Cf(d|0,e|0,10,0)|0;d=sf(p|0,o|0,d|0,D|0)|0;d=yf(d|0,D|0,j|0,f|0)|0;f=D}e=yf(d|0,f|0,10,0)|0;r=zf(d|0,f|0,10,0)|0;s=a[28146+q>>0]|0;c[t>>2]=e;c[t+4>>2]=r;c[t+8>>2]=g;c[t+12>>2]=s;Ne(b,28166,t)|0;l=u;return}else{f=q;d=i}}else f=0;t=a[28146+f>>0]|0;c[s>>2]=d;c[s+4>>2]=g;c[s+8>>2]=t;Ne(b,28177,s)|0;l=u;return}function Wd(a){a=a|0;var b=0,d=0;b=l;l=l+16|0;d=b;c[d>>2]=ce(c[a+60>>2]|0)|0;a=Zd(ia(6,d|0)|0)|0;l=b;return a|0}function Xd(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=l;l=l+32|0;f=g;c[b+36>>2]=4;if((c[b>>2]&64|0)==0?(c[f>>2]=c[b+60>>2],c[f+4>>2]=21523,c[f+8>>2]=g+16,na(54,f|0)|0):0)a[b+75>>0]=-1;f=be(b,d,e)|0;l=g;return f|0}function Yd(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;f=l;l=l+32|0;g=f;e=f+20|0;c[g>>2]=c[a+60>>2];c[g+4>>2]=0;c[g+8>>2]=b;c[g+12>>2]=e;c[g+16>>2]=d;if((Zd(ja(140,g|0)|0)|0)<0){c[e>>2]=-1;a=-1}else a=c[e>>2]|0;l=f;return a|0}function Zd(a){a=a|0;if(a>>>0>4294963200){c[(_d()|0)>>2]=0-a;a=-1}return a|0}function _d(){return ($d()|0)+64|0}function $d(){return ae()|0}function ae(){return 19004}function be(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0;n=l;l=l+48|0;k=n+16|0;g=n;f=n+32|0;i=a+28|0;e=c[i>>2]|0;c[f>>2]=e;j=a+20|0;e=(c[j>>2]|0)-e|0;c[f+4>>2]=e;c[f+8>>2]=b;c[f+12>>2]=d;e=e+d|0;h=a+60|0;c[g>>2]=c[h>>2];c[g+4>>2]=f;c[g+8>>2]=2;g=Zd(ka(146,g|0)|0)|0;a:do if((e|0)!=(g|0)){b=2;while(1){if((g|0)<0)break;e=e-g|0;p=c[f+4>>2]|0;o=g>>>0>p>>>0;f=o?f+8|0:f;b=(o<<31>>31)+b|0;p=g-(o?p:0)|0;c[f>>2]=(c[f>>2]|0)+p;o=f+4|0;c[o>>2]=(c[o>>2]|0)-p;c[k>>2]=c[h>>2];c[k+4>>2]=f;c[k+8>>2]=b;g=Zd(ka(146,k|0)|0)|0;if((e|0)==(g|0)){m=3;break a}}c[a+16>>2]=0;c[i>>2]=0;c[j>>2]=0;c[a>>2]=c[a>>2]|32;if((b|0)==2)d=0;else d=d-(c[f+4>>2]|0)|0}else m=3;while(0);if((m|0)==3){p=c[a+44>>2]|0;c[a+16>>2]=p+(c[a+48>>2]|0);c[i>>2]=p;c[j>>2]=p}l=n;return d|0}function ce(a){a=a|0;return a|0}function de(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,m=0;k=l;l=l+32|0;f=k;i=k+16|0;c[i>>2]=d;g=i+4|0;j=b+48|0;m=c[j>>2]|0;c[g>>2]=e-((m|0)!=0&1);h=b+44|0;c[i+8>>2]=c[h>>2];c[i+12>>2]=m;c[f>>2]=c[b+60>>2];c[f+4>>2]=i;c[f+8>>2]=2;f=Zd(qa(145,f|0)|0)|0;if((f|0)>=1){i=c[g>>2]|0;if(f>>>0>i>>>0){g=c[h>>2]|0;h=b+4|0;c[h>>2]=g;c[b+8>>2]=g+(f-i);if(!(c[j>>2]|0))f=e;else{c[h>>2]=g+1;a[d+(e+-1)>>0]=a[g>>0]|0;f=e}}}else c[b>>2]=c[b>>2]|f&48^16;l=k;return f|0}function ee(){return 30660}function fe(b,c){b=b|0;c=c|0;var d=0,e=0;d=a[b>>0]|0;e=a[c>>0]|0;if(d<<24>>24==0?1:d<<24>>24!=e<<24>>24)b=e;else{do{b=b+1|0;c=c+1|0;d=a[b>>0]|0;e=a[c>>0]|0}while(!(d<<24>>24==0?1:d<<24>>24!=e<<24>>24));b=e}return (d&255)-(b&255)|0}function ge(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;h=d&255;f=(e|0)!=0;a:do if(f&(b&3|0)!=0){g=d&255;while(1){if((a[b>>0]|0)==g<<24>>24){i=6;break a}b=b+1|0;e=e+-1|0;f=(e|0)!=0;if(!(f&(b&3|0)!=0)){i=5;break}}}else i=5;while(0);if((i|0)==5)if(f)i=6;else e=0;b:do if((i|0)==6){g=d&255;if((a[b>>0]|0)!=g<<24>>24){f=S(h,16843009)|0;c:do if(e>>>0>3)while(1){h=c[b>>2]^f;if((h&-2139062144^-2139062144)&h+-16843009|0)break;b=b+4|0;e=e+-4|0;if(e>>>0<=3){i=11;break c}}else i=11;while(0);if((i|0)==11)if(!e){e=0;break}while(1){if((a[b>>0]|0)==g<<24>>24)break b;b=b+1|0;e=e+-1|0;if(!e){e=0;break}}}}while(0);return (e|0?b:0)|0}function he(b){b=b|0;var d=0,e=0,f=0;f=b;a:do if(!(f&3))e=4;else{d=f;while(1){if(!(a[b>>0]|0)){b=d;break a}b=b+1|0;d=b;if(!(d&3)){e=4;break}}}while(0);if((e|0)==4){while(1){d=c[b>>2]|0;if(!((d&-2139062144^-2139062144)&d+-16843009))b=b+4|0;else break}if((d&255)<<24>>24)do b=b+1|0;while((a[b>>0]|0)!=0)}return b-f|0}function ie(b,d,e){b=b|0;d=d|0;e=e|0;var 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+224|0;n=s+120|0;p=s+80|0;q=s;r=s+136|0;f=p;g=f+40|0;do{c[f>>2]=0;f=f+4|0}while((f|0)<(g|0));c[n>>2]=c[e>>2];if((je(0,d,n,q,p)|0)<0)e=-1;else{if((c[b+76>>2]|0)>-1)o=ke(b)|0;else o=0;e=c[b>>2]|0;m=e&32;if((a[b+74>>0]|0)<1)c[b>>2]=e&-33;f=b+48|0;if(!(c[f>>2]|0)){g=b+44|0;h=c[g>>2]|0;c[g>>2]=r;i=b+28|0;c[i>>2]=r;j=b+20|0;c[j>>2]=r;c[f>>2]=80;k=b+16|0;c[k>>2]=r+80;e=je(b,d,n,q,p)|0;if(h){ua[c[b+36>>2]&7](b,0,0)|0;e=(c[j>>2]|0)==0?-1:e;c[g>>2]=h;c[f>>2]=0;c[k>>2]=0;c[i>>2]=0;c[j>>2]=0}}else e=je(b,d,n,q,p)|0;f=c[b>>2]|0;c[b>>2]=f|m;if(o|0)le(b);e=(f&32|0)==0?e:-1}l=s;return e|0}function je(d,e,f,g,i){d=d|0;e=e|0;f=f|0;g=g|0;i=i|0;var j=0,k=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,E=0,F=0,G=0,H=0;H=l;l=l+64|0;C=H+16|0;E=H;A=H+24|0;F=H+8|0;G=H+20|0;c[C>>2]=e;x=(d|0)!=0;y=A+40|0;z=y;A=A+39|0;B=F+4|0;k=0;j=0;p=0;a:while(1){do if((j|0)>-1)if((k|0)>(2147483647-j|0)){c[(_d()|0)>>2]=75;j=-1;break}else{j=k+j|0;break}while(0);k=a[e>>0]|0;if(!(k<<24>>24)){w=87;break}else m=e;b:while(1){switch(k<<24>>24){case 37:{k=m;w=9;break b}case 0:{k=m;break b}default:{}}v=m+1|0;c[C>>2]=v;k=a[v>>0]|0;m=v}c:do if((w|0)==9)while(1){w=0;if((a[m+1>>0]|0)!=37)break c;k=k+1|0;m=m+2|0;c[C>>2]=m;if((a[m>>0]|0)==37)w=9;else break}while(0);k=k-e|0;if(x)me(d,e,k);if(k|0){e=m;continue}n=m+1|0;k=(a[n>>0]|0)+-48|0;if(k>>>0<10){v=(a[m+2>>0]|0)==36;u=v?k:-1;p=v?1:p;n=v?m+3|0:n}else u=-1;c[C>>2]=n;k=a[n>>0]|0;m=(k<<24>>24)+-32|0;d:do if(m>>>0<32){o=0;q=k;while(1){k=1<<m;if(!(k&75913)){k=q;break d}o=k|o;n=n+1|0;c[C>>2]=n;k=a[n>>0]|0;m=(k<<24>>24)+-32|0;if(m>>>0>=32)break;else q=k}}else o=0;while(0);if(k<<24>>24==42){m=n+1|0;k=(a[m>>0]|0)+-48|0;if(k>>>0<10?(a[n+2>>0]|0)==36:0){c[i+(k<<2)>>2]=10;k=c[g+((a[m>>0]|0)+-48<<3)>>2]|0;p=1;n=n+3|0}else{if(p|0){j=-1;break}if(x){p=(c[f>>2]|0)+(4-1)&~(4-1);k=c[p>>2]|0;c[f>>2]=p+4;p=0;n=m}else{k=0;p=0;n=m}}c[C>>2]=n;v=(k|0)<0;k=v?0-k|0:k;o=v?o|8192:o}else{k=ne(C)|0;if((k|0)<0){j=-1;break}n=c[C>>2]|0}do if((a[n>>0]|0)==46){if((a[n+1>>0]|0)!=42){c[C>>2]=n+1;m=ne(C)|0;n=c[C>>2]|0;break}q=n+2|0;m=(a[q>>0]|0)+-48|0;if(m>>>0<10?(a[n+3>>0]|0)==36:0){c[i+(m<<2)>>2]=10;m=c[g+((a[q>>0]|0)+-48<<3)>>2]|0;n=n+4|0;c[C>>2]=n;break}if(p|0){j=-1;break a}if(x){v=(c[f>>2]|0)+(4-1)&~(4-1);m=c[v>>2]|0;c[f>>2]=v+4}else m=0;c[C>>2]=q;n=q}else m=-1;while(0);t=0;while(1){if(((a[n>>0]|0)+-65|0)>>>0>57){j=-1;break a}v=n+1|0;c[C>>2]=v;q=a[(a[n>>0]|0)+-65+(28228+(t*58|0))>>0]|0;r=q&255;if((r+-1|0)>>>0<8){t=r;n=v}else break}if(!(q<<24>>24)){j=-1;break}s=(u|0)>-1;do if(q<<24>>24==19)if(s){j=-1;break a}else w=49;else{if(s){c[i+(u<<2)>>2]=r;s=g+(u<<3)|0;u=c[s+4>>2]|0;w=E;c[w>>2]=c[s>>2];c[w+4>>2]=u;w=49;break}if(!x){j=0;break a}oe(E,r,f)}while(0);if((w|0)==49?(w=0,!x):0){k=0;e=v;continue}n=a[n>>0]|0;n=(t|0)!=0&(n&15|0)==3?n&-33:n;s=o&-65537;u=(o&8192|0)==0?o:s;e:do switch(n|0){case 110:switch((t&255)<<24>>24){case 0:{c[c[E>>2]>>2]=j;k=0;e=v;continue a}case 1:{c[c[E>>2]>>2]=j;k=0;e=v;continue a}case 2:{k=c[E>>2]|0;c[k>>2]=j;c[k+4>>2]=((j|0)<0)<<31>>31;k=0;e=v;continue a}case 3:{b[c[E>>2]>>1]=j;k=0;e=v;continue a}case 4:{a[c[E>>2]>>0]=j;k=0;e=v;continue a}case 6:{c[c[E>>2]>>2]=j;k=0;e=v;continue a}case 7:{k=c[E>>2]|0;c[k>>2]=j;c[k+4>>2]=((j|0)<0)<<31>>31;k=0;e=v;continue a}default:{k=0;e=v;continue a}}case 112:{n=120;m=m>>>0>8?m:8;e=u|8;w=61;break}case 88:case 120:{e=u;w=61;break}case 111:{n=E;e=c[n>>2]|0;n=c[n+4>>2]|0;r=qe(e,n,y)|0;s=z-r|0;o=0;q=28692;m=(u&8|0)==0|(m|0)>(s|0)?m:s+1|0;s=u;w=67;break}case 105:case 100:{n=E;e=c[n>>2]|0;n=c[n+4>>2]|0;if((n|0)<0){e=rf(0,0,e|0,n|0)|0;n=D;o=E;c[o>>2]=e;c[o+4>>2]=n;o=1;q=28692;w=66;break e}else{o=(u&2049|0)!=0&1;q=(u&2048|0)==0?((u&1|0)==0?28692:28694):28693;w=66;break e}}case 117:{n=E;o=0;q=28692;e=c[n>>2]|0;n=c[n+4>>2]|0;w=66;break}case 99:{a[A>>0]=c[E>>2];e=A;o=0;q=28692;r=y;n=1;m=s;break}case 109:{n=se(c[(_d()|0)>>2]|0)|0;w=71;break}case 115:{n=c[E>>2]|0;n=n|0?n:28702;w=71;break}case 67:{c[F>>2]=c[E>>2];c[B>>2]=0;c[E>>2]=F;r=-1;n=F;w=75;break}case 83:{e=c[E>>2]|0;if(!m){te(d,32,k,0,u);e=0;w=84}else{r=m;n=e;w=75}break}case 65:case 71:case 70:case 69:case 97:case 103:case 102:case 101:{k=ve(d,+h[E>>3],k,m,u,n)|0;e=v;continue a}default:{o=0;q=28692;r=y;n=m;m=u}}while(0);f:do if((w|0)==61){u=E;t=c[u>>2]|0;u=c[u+4>>2]|0;r=pe(t,u,y,n&32)|0;q=(e&8|0)==0|(t|0)==0&(u|0)==0;o=q?0:2;q=q?28692:28692+(n>>4)|0;s=e;e=t;n=u;w=67}else if((w|0)==66){r=re(e,n,y)|0;s=u;w=67}else if((w|0)==71){w=0;u=ge(n,0,m)|0;t=(u|0)==0;e=n;o=0;q=28692;r=t?n+m|0:u;n=t?m:u-n|0;m=s}else if((w|0)==75){w=0;q=n;e=0;m=0;while(1){o=c[q>>2]|0;if(!o)break;m=ue(G,o)|0;if((m|0)<0|m>>>0>(r-e|0)>>>0)break;e=m+e|0;if(r>>>0>e>>>0)q=q+4|0;else break}if((m|0)<0){j=-1;break a}te(d,32,k,e,u);if(!e){e=0;w=84}else{o=0;while(1){m=c[n>>2]|0;if(!m){w=84;break f}m=ue(G,m)|0;o=m+o|0;if((o|0)>(e|0)){w=84;break f}me(d,G,m);if(o>>>0>=e>>>0){w=84;break}else n=n+4|0}}}while(0);if((w|0)==67){w=0;n=(e|0)!=0|(n|0)!=0;u=(m|0)!=0|n;n=((n^1)&1)+(z-r)|0;e=u?r:y;r=y;n=u?((m|0)>(n|0)?m:n):m;m=(m|0)>-1?s&-65537:s}else if((w|0)==84){w=0;te(d,32,k,e,u^8192);k=(k|0)>(e|0)?k:e;e=v;continue}t=r-e|0;s=(n|0)<(t|0)?t:n;u=s+o|0;k=(k|0)<(u|0)?u:k;te(d,32,k,u,m);me(d,q,o);te(d,48,k,u,m^65536);te(d,48,s,t,0);me(d,e,t);te(d,32,k,u,m^8192);e=v}g:do if((w|0)==87)if(!d)if(!p)j=0;else{j=1;while(1){e=c[i+(j<<2)>>2]|0;if(!e)break;oe(g+(j<<3)|0,e,f);j=j+1|0;if((j|0)>=10){j=1;break g}}while(1){if(c[i+(j<<2)>>2]|0){j=-1;break g}j=j+1|0;if((j|0)>=10){j=1;break}}}while(0);l=H;return j|0}function ke(a){a=a|0;return 0}function le(a){a=a|0;return}function me(a,b,d){a=a|0;b=b|0;d=d|0;if(!(c[a>>2]&32))He(b,d,a)|0;return}function ne(b){b=b|0;var d=0,e=0,f=0;e=c[b>>2]|0;f=(a[e>>0]|0)+-48|0;if(f>>>0<10){d=0;do{d=f+(d*10|0)|0;e=e+1|0;c[b>>2]=e;f=(a[e>>0]|0)+-48|0}while(f>>>0<10)}else d=0;return d|0}function oe(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0.0;a:do if(b>>>0<=20)do switch(b|0){case 9:{e=(c[d>>2]|0)+(4-1)&~(4-1);b=c[e>>2]|0;c[d>>2]=e+4;c[a>>2]=b;break a}case 10:{e=(c[d>>2]|0)+(4-1)&~(4-1);b=c[e>>2]|0;c[d>>2]=e+4;e=a;c[e>>2]=b;c[e+4>>2]=((b|0)<0)<<31>>31;break a}case 11:{e=(c[d>>2]|0)+(4-1)&~(4-1);b=c[e>>2]|0;c[d>>2]=e+4;e=a;c[e>>2]=b;c[e+4>>2]=0;break a}case 12:{e=(c[d>>2]|0)+(8-1)&~(8-1);b=e;f=c[b>>2]|0;b=c[b+4>>2]|0;c[d>>2]=e+8;e=a;c[e>>2]=f;c[e+4>>2]=b;break a}case 13:{f=(c[d>>2]|0)+(4-1)&~(4-1);e=c[f>>2]|0;c[d>>2]=f+4;e=(e&65535)<<16>>16;f=a;c[f>>2]=e;c[f+4>>2]=((e|0)<0)<<31>>31;break a}case 14:{f=(c[d>>2]|0)+(4-1)&~(4-1);e=c[f>>2]|0;c[d>>2]=f+4;f=a;c[f>>2]=e&65535;c[f+4>>2]=0;break a}case 15:{f=(c[d>>2]|0)+(4-1)&~(4-1);e=c[f>>2]|0;c[d>>2]=f+4;e=(e&255)<<24>>24;f=a;c[f>>2]=e;c[f+4>>2]=((e|0)<0)<<31>>31;break a}case 16:{f=(c[d>>2]|0)+(4-1)&~(4-1);e=c[f>>2]|0;c[d>>2]=f+4;f=a;c[f>>2]=e&255;c[f+4>>2]=0;break a}case 17:{f=(c[d>>2]|0)+(8-1)&~(8-1);g=+h[f>>3];c[d>>2]=f+8;h[a>>3]=g;break a}case 18:{f=(c[d>>2]|0)+(8-1)&~(8-1);g=+h[f>>3];c[d>>2]=f+8;h[a>>3]=g;break a}default:break a}while(0);while(0);return}function pe(b,c,e,f){b=b|0;c=c|0;e=e|0;f=f|0;if(!((b|0)==0&(c|0)==0))do{e=e+-1|0;a[e>>0]=d[28744+(b&15)>>0]|0|f;b=uf(b|0,c|0,4)|0;c=D}while(!((b|0)==0&(c|0)==0));return e|0}function qe(b,c,d){b=b|0;c=c|0;d=d|0;if(!((b|0)==0&(c|0)==0))do{d=d+-1|0;a[d>>0]=b&7|48;b=uf(b|0,c|0,3)|0;c=D}while(!((b|0)==0&(c|0)==0));return d|0}function re(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if(c>>>0>0|(c|0)==0&b>>>0>4294967295){while(1){e=Gf(b|0,c|0,10,0)|0;d=d+-1|0;a[d>>0]=e&255|48;e=b;b=Af(b|0,c|0,10,0)|0;if(!(c>>>0>9|(c|0)==9&e>>>0>4294967295))break;else c=D}c=b}else c=b;if(c)while(1){d=d+-1|0;a[d>>0]=(c>>>0)%10|0|48;if(c>>>0<10)break;else c=(c>>>0)/10|0}return d|0}function se(a){a=a|0;return Ce(a,c[(Be()|0)+188>>2]|0)|0}function te(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=l;l=l+256|0;f=g;if((c|0)>(d|0)&(e&73728|0)==0){e=c-d|0;tf(f|0,b|0,(e>>>0<256?e:256)|0)|0;if(e>>>0>255){b=c-d|0;do{me(a,f,256);e=e+-256|0}while(e>>>0>255);e=b&255}me(a,f,e)}l=g;return}function ue(a,b){a=a|0;b=b|0;if(!a)a=0;else a=ze(a,b,0)|0;return a|0}function ve(b,e,f,g,h,i){b=b|0;e=+e;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,m=0,n=0,o=0,p=0,q=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,E=0,F=0,G=0,H=0;H=l;l=l+560|0;m=H+8|0;u=H;G=H+524|0;F=G;n=H+512|0;c[u>>2]=0;E=n+12|0;we(e)|0;if((D|0)<0){e=-e;B=1;A=28709}else{B=(h&2049|0)!=0&1;A=(h&2048|0)==0?((h&1|0)==0?28710:28715):28712}we(e)|0;C=D&2146435072;do if(C>>>0<2146435072|(C|0)==2146435072&0<0){r=+xe(e,u)*2.0;j=r!=0.0;if(j)c[u>>2]=(c[u>>2]|0)+-1;w=i|32;if((w|0)==97){s=i&32;q=(s|0)==0?A:A+9|0;p=B|2;j=12-g|0;do if(!(g>>>0>11|(j|0)==0)){e=8.0;do{j=j+-1|0;e=e*16.0}while((j|0)!=0);if((a[q>>0]|0)==45){e=-(e+(-r-e));break}else{e=r+e-e;break}}else e=r;while(0);k=c[u>>2]|0;j=(k|0)<0?0-k|0:k;j=re(j,((j|0)<0)<<31>>31,E)|0;if((j|0)==(E|0)){j=n+11|0;a[j>>0]=48}a[j+-1>>0]=(k>>31&2)+43;o=j+-2|0;a[o>>0]=i+15;n=(g|0)<1;m=(h&8|0)==0;j=G;do{C=~~e;k=j+1|0;a[j>>0]=d[28744+C>>0]|s;e=(e-+(C|0))*16.0;if((k-F|0)==1?!(m&(n&e==0.0)):0){a[k>>0]=46;j=j+2|0}else j=k}while(e!=0.0);C=j-F|0;F=E-o|0;E=(g|0)!=0&(C+-2|0)<(g|0)?g+2|0:C;j=F+p+E|0;te(b,32,f,j,h);me(b,q,p);te(b,48,f,j,h^65536);me(b,G,C);te(b,48,E-C|0,0,0);me(b,o,F);te(b,32,f,j,h^8192);break}k=(g|0)<0?6:g;if(j){j=(c[u>>2]|0)+-28|0;c[u>>2]=j;e=r*268435456.0}else{e=r;j=c[u>>2]|0}C=(j|0)<0?m:m+288|0;m=C;do{y=~~e>>>0;c[m>>2]=y;m=m+4|0;e=(e-+(y>>>0))*1.0e9}while(e!=0.0);if((j|0)>0){n=C;p=m;while(1){o=(j|0)<29?j:29;j=p+-4|0;if(j>>>0>=n>>>0){m=0;do{x=vf(c[j>>2]|0,0,o|0)|0;x=sf(x|0,D|0,m|0,0)|0;y=D;v=Gf(x|0,y|0,1e9,0)|0;c[j>>2]=v;m=Af(x|0,y|0,1e9,0)|0;j=j+-4|0}while(j>>>0>=n>>>0);if(m){n=n+-4|0;c[n>>2]=m}}m=p;while(1){if(m>>>0<=n>>>0)break;j=m+-4|0;if(!(c[j>>2]|0))m=j;else break}j=(c[u>>2]|0)-o|0;c[u>>2]=j;if((j|0)>0)p=m;else break}}else n=C;if((j|0)<0){g=((k+25|0)/9|0)+1|0;t=(w|0)==102;do{s=0-j|0;s=(s|0)<9?s:9;if(n>>>0<m>>>0){o=(1<<s)+-1|0;p=1e9>>>s;q=0;j=n;do{y=c[j>>2]|0;c[j>>2]=(y>>>s)+q;q=S(y&o,p)|0;j=j+4|0}while(j>>>0<m>>>0);j=(c[n>>2]|0)==0?n+4|0:n;if(!q){n=j;j=m}else{c[m>>2]=q;n=j;j=m+4|0}}else{n=(c[n>>2]|0)==0?n+4|0:n;j=m}m=t?C:n;m=(j-m>>2|0)>(g|0)?m+(g<<2)|0:j;j=(c[u>>2]|0)+s|0;c[u>>2]=j}while((j|0)<0);j=n;g=m}else{j=n;g=m}y=C;if(j>>>0<g>>>0){m=(y-j>>2)*9|0;o=c[j>>2]|0;if(o>>>0>=10){n=10;do{n=n*10|0;m=m+1|0}while(o>>>0>=n>>>0)}}else m=0;t=(w|0)==103;v=(k|0)!=0;n=k-((w|0)!=102?m:0)+((v&t)<<31>>31)|0;if((n|0)<(((g-y>>2)*9|0)+-9|0)){n=n+9216|0;s=C+4+(((n|0)/9|0)+-1024<<2)|0;n=((n|0)%9|0)+1|0;if((n|0)<9){o=10;do{o=o*10|0;n=n+1|0}while((n|0)!=9)}else o=10;p=c[s>>2]|0;q=(p>>>0)%(o>>>0)|0;n=(s+4|0)==(g|0);if(!(n&(q|0)==0)){r=(((p>>>0)/(o>>>0)|0)&1|0)==0?9007199254740992.0:9007199254740994.0;x=(o|0)/2|0;e=q>>>0<x>>>0?.5:n&(q|0)==(x|0)?1.0:1.5;if(B){x=(a[A>>0]|0)==45;e=x?-e:e;r=x?-r:r}n=p-q|0;c[s>>2]=n;if(r+e!=r){x=n+o|0;c[s>>2]=x;if(x>>>0>999999999){m=s;while(1){n=m+-4|0;c[m>>2]=0;if(n>>>0<j>>>0){j=j+-4|0;c[j>>2]=0}x=(c[n>>2]|0)+1|0;c[n>>2]=x;if(x>>>0>999999999)m=n;else break}}else n=s;m=(y-j>>2)*9|0;p=c[j>>2]|0;if(p>>>0>=10){o=10;do{o=o*10|0;m=m+1|0}while(p>>>0>=o>>>0)}}else n=s}else n=s;n=n+4|0;n=g>>>0>n>>>0?n:g;x=j}else{n=g;x=j}w=n;while(1){if(w>>>0<=x>>>0){u=0;break}j=w+-4|0;if(!(c[j>>2]|0))w=j;else{u=1;break}}g=0-m|0;do if(t){j=((v^1)&1)+k|0;if((j|0)>(m|0)&(m|0)>-5){o=i+-1|0;k=j+-1-m|0}else{o=i+-2|0;k=j+-1|0}j=h&8;if(!j){if(u?(z=c[w+-4>>2]|0,(z|0)!=0):0)if(!((z>>>0)%10|0)){n=0;j=10;do{j=j*10|0;n=n+1|0}while(!((z>>>0)%(j>>>0)|0|0))}else n=0;else n=9;j=((w-y>>2)*9|0)+-9|0;if((o|32|0)==102){s=j-n|0;s=(s|0)>0?s:0;k=(k|0)<(s|0)?k:s;s=0;break}else{s=j+m-n|0;s=(s|0)>0?s:0;k=(k|0)<(s|0)?k:s;s=0;break}}else s=j}else{o=i;s=h&8}while(0);t=k|s;p=(t|0)!=0&1;q=(o|32|0)==102;if(q){v=0;j=(m|0)>0?m:0}else{j=(m|0)<0?g:m;j=re(j,((j|0)<0)<<31>>31,E)|0;n=E;if((n-j|0)<2)do{j=j+-1|0;a[j>>0]=48}while((n-j|0)<2);a[j+-1>>0]=(m>>31&2)+43;j=j+-2|0;a[j>>0]=o;v=j;j=n-j|0}j=B+1+k+p+j|0;te(b,32,f,j,h);me(b,A,B);te(b,48,f,j,h^65536);if(q){o=x>>>0>C>>>0?C:x;s=G+9|0;p=s;q=G+8|0;n=o;do{m=re(c[n>>2]|0,0,s)|0;if((n|0)==(o|0)){if((m|0)==(s|0)){a[q>>0]=48;m=q}}else if(m>>>0>G>>>0){tf(G|0,48,m-F|0)|0;do m=m+-1|0;while(m>>>0>G>>>0)}me(b,m,p-m|0);n=n+4|0}while(n>>>0<=C>>>0);if(t|0)me(b,28760,1);if(n>>>0<w>>>0&(k|0)>0)while(1){m=re(c[n>>2]|0,0,s)|0;if(m>>>0>G>>>0){tf(G|0,48,m-F|0)|0;do m=m+-1|0;while(m>>>0>G>>>0)}me(b,m,(k|0)<9?k:9);n=n+4|0;m=k+-9|0;if(!(n>>>0<w>>>0&(k|0)>9)){k=m;break}else k=m}te(b,48,k+9|0,9,0)}else{t=u?w:x+4|0;if((k|0)>-1){u=G+9|0;s=(s|0)==0;g=u;p=0-F|0;q=G+8|0;o=x;do{m=re(c[o>>2]|0,0,u)|0;if((m|0)==(u|0)){a[q>>0]=48;m=q}do if((o|0)==(x|0)){n=m+1|0;me(b,m,1);if(s&(k|0)<1){m=n;break}me(b,28760,1);m=n}else{if(m>>>0<=G>>>0)break;tf(G|0,48,m+p|0)|0;do m=m+-1|0;while(m>>>0>G>>>0)}while(0);F=g-m|0;me(b,m,(k|0)>(F|0)?F:k);k=k-F|0;o=o+4|0}while(o>>>0<t>>>0&(k|0)>-1)}te(b,48,k+18|0,18,0);me(b,v,E-v|0)}te(b,32,f,j,h^8192)}else{G=(i&32|0)!=0;j=B+3|0;te(b,32,f,j,h&-65537);me(b,A,B);me(b,e!=e|0.0!=0.0?(G?28736:28740):G?28728:28732,3);te(b,32,f,j,h^8192)}while(0);l=H;return ((j|0)<(f|0)?f:j)|0}function we(a){a=+a;var b=0;h[j>>3]=a;b=c[j>>2]|0;D=c[j+4>>2]|0;return b|0}function xe(a,b){a=+a;b=b|0;return +(+ye(a,b))}function ye(a,b){a=+a;b=b|0;var d=0,e=0,f=0;h[j>>3]=a;d=c[j>>2]|0;e=c[j+4>>2]|0;f=uf(d|0,e|0,52)|0;switch(f&2047){case 0:{if(a!=0.0){a=+ye(a*18446744073709551616.0,b);d=(c[b>>2]|0)+-64|0}else d=0;c[b>>2]=d;break}case 2047:break;default:{c[b>>2]=(f&2047)+-1022;c[j>>2]=d;c[j+4>>2]=e&-2146435073|1071644672;a=+h[j>>3]}}return +a}function ze(b,d,e){b=b|0;d=d|0;e=e|0;do if(b){if(d>>>0<128){a[b>>0]=d;b=1;break}if(!(c[c[(Ae()|0)+188>>2]>>2]|0))if((d&-128|0)==57216){a[b>>0]=d;b=1;break}else{c[(_d()|0)>>2]=84;b=-1;break}if(d>>>0<2048){a[b>>0]=d>>>6|192;a[b+1>>0]=d&63|128;b=2;break}if(d>>>0<55296|(d&-8192|0)==57344){a[b>>0]=d>>>12|224;a[b+1>>0]=d>>>6&63|128;a[b+2>>0]=d&63|128;b=3;break}if((d+-65536|0)>>>0<1048576){a[b>>0]=d>>>18|240;a[b+1>>0]=d>>>12&63|128;a[b+2>>0]=d>>>6&63|128;a[b+3>>0]=d&63|128;b=4;break}else{c[(_d()|0)>>2]=84;b=-1;break}}else b=1;while(0);return b|0}function Ae(){return ae()|0}function Be(){return ae()|0}function Ce(b,e){b=b|0;e=e|0;var f=0,g=0;g=0;while(1){if((d[28762+g>>0]|0)==(b|0)){b=2;break}f=g+1|0;if((f|0)==87){f=28850;g=87;b=5;break}else g=f}if((b|0)==2)if(!g)f=28850;else{f=28850;b=5}if((b|0)==5)while(1){do{b=f;f=f+1|0}while((a[b>>0]|0)!=0);g=g+-1|0;if(!g)break;else b=5}return De(f,c[e+20>>2]|0)|0}function De(a,b){a=a|0;b=b|0;return Ee(a,b)|0}function Ee(a,b){a=a|0;b=b|0;if(!b)b=0;else b=Fe(c[b>>2]|0,c[b+4>>2]|0,a)|0;return (b|0?b:a)|0}function Fe(b,d,e){b=b|0;d=d|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;o=(c[b>>2]|0)+1794895138|0;h=Ge(c[b+8>>2]|0,o)|0;f=Ge(c[b+12>>2]|0,o)|0;g=Ge(c[b+16>>2]|0,o)|0;a:do if((h>>>0<d>>>2>>>0?(n=d-(h<<2)|0,f>>>0<n>>>0&g>>>0<n>>>0):0)?((g|f)&3|0)==0:0){n=f>>>2;m=g>>>2;l=0;while(1){j=h>>>1;k=l+j|0;i=k<<1;g=i+n|0;f=Ge(c[b+(g<<2)>>2]|0,o)|0;g=Ge(c[b+(g+1<<2)>>2]|0,o)|0;if(!(g>>>0<d>>>0&f>>>0<(d-g|0)>>>0)){f=0;break a}if(a[b+(g+f)>>0]|0){f=0;break a}f=fe(e,b+g|0)|0;if(!f)break;f=(f|0)<0;if((h|0)==1){f=0;break a}else{l=f?l:k;h=f?j:h-j|0}}f=i+m|0;g=Ge(c[b+(f<<2)>>2]|0,o)|0;f=Ge(c[b+(f+1<<2)>>2]|0,o)|0;if(f>>>0<d>>>0&g>>>0<(d-f|0)>>>0)f=(a[b+(f+g)>>0]|0)==0?b+f|0:0;else f=0}else f=0;while(0);return f|0}function Ge(a,b){a=a|0;b=b|0;var c=0;c=Hf(a|0)|0;return ((b|0)==0?a:c)|0}function He(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;f=e+16|0;g=c[f>>2]|0;if(!g)if(!(Ie(e)|0)){g=c[f>>2]|0;h=5}else f=0;else h=5;a:do if((h|0)==5){j=e+20|0;i=c[j>>2]|0;f=i;if((g-i|0)>>>0<d>>>0){f=ua[c[e+36>>2]&7](e,b,d)|0;break}b:do if((a[e+75>>0]|0)>-1){i=d;while(1){if(!i){h=0;g=b;break b}g=i+-1|0;if((a[b+g>>0]|0)==10)break;else i=g}f=ua[c[e+36>>2]&7](e,b,i)|0;if(f>>>0<i>>>0)break a;h=i;g=b+i|0;d=d-i|0;f=c[j>>2]|0}else{h=0;g=b}while(0);Ef(f|0,g|0,d|0)|0;c[j>>2]=(c[j>>2]|0)+d;f=h+d|0}while(0);return f|0}function Ie(b){b=b|0;var d=0,e=0;d=b+74|0;e=a[d>>0]|0;a[d>>0]=e+255|e;d=c[b>>2]|0;if(!(d&8)){c[b+8>>2]=0;c[b+4>>2]=0;e=c[b+44>>2]|0;c[b+28>>2]=e;c[b+20>>2]=e;c[b+16>>2]=e+(c[b+48>>2]|0);b=0}else{c[b>>2]=d|32;b=-1}return b|0}function Je(b,c){b=b|0;c=c|0;b=Ke(b,c)|0;return ((a[b>>0]|0)==(c&255)<<24>>24?b:0)|0}function Ke(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=d&255;a:do if(!f)b=b+(he(b)|0)|0;else{if(b&3){e=d&255;do{g=a[b>>0]|0;if(g<<24>>24==0?1:g<<24>>24==e<<24>>24)break a;b=b+1|0}while((b&3|0)!=0)}f=S(f,16843009)|0;e=c[b>>2]|0;b:do if(!((e&-2139062144^-2139062144)&e+-16843009))do{g=e^f;if((g&-2139062144^-2139062144)&g+-16843009|0)break b;b=b+4|0;e=c[b>>2]|0}while(!((e&-2139062144^-2139062144)&e+-16843009|0));while(0);e=d&255;while(1){g=a[b>>0]|0;if(g<<24>>24==0?1:g<<24>>24==e<<24>>24)break;else b=b+1|0}}while(0);return b|0}function Le(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0;a:do if(!d)b=0;else{while(1){e=a[b>>0]|0;f=a[c>>0]|0;if(e<<24>>24!=f<<24>>24)break;d=d+-1|0;if(!d){b=0;break a}else{b=b+1|0;c=c+1|0}}b=(e&255)-(f&255)|0}while(0);return b|0}function Me(b){b=b|0;var d=0,e=0;d=b+74|0;e=a[d>>0]|0;a[d>>0]=e+255|e;d=b+20|0;e=b+28|0;if((c[d>>2]|0)>>>0>(c[e>>2]|0)>>>0)ua[c[b+36>>2]&7](b,0,0)|0;c[b+16>>2]=0;c[e>>2]=0;c[d>>2]=0;d=c[b>>2]|0;if(!(d&4)){e=(c[b+44>>2]|0)+(c[b+48>>2]|0)|0;c[b+8>>2]=e;c[b+4>>2]=e;d=d<<27>>31}else{c[b>>2]=d|32;d=-1}return d|0}function Ne(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=l;l=l+16|0;f=e;c[f>>2]=d;d=ie(a,b,f)|0;l=e;return d|0}function Oe(a){a=a|0;var b=0;if((c[a+76>>2]|0)>-1){b=(ke(a)|0)==0;a=(c[a>>2]|0)>>>4&1}else a=(c[a>>2]|0)>>>4&1;return a|0}function Pe(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;if((c[a+76>>2]|0)>-1)f=ke(a)|0;else f=0;Qe(a);g=(c[a>>2]&1|0)!=0;if(!g){e=Re()|0;d=c[a+52>>2]|0;b=a+56|0;if(d|0)c[d+56>>2]=c[b>>2];b=c[b>>2]|0;if(b|0)c[b+52>>2]=d;if((c[e>>2]|0)==(a|0))c[e>>2]=b;Se()}b=Te(a)|0;b=ta[c[a+12>>2]&3](a)|0|b;d=c[a+92>>2]|0;if(d|0)lf(d);if(g){if(f|0)le(a)}else lf(a);return b|0}function Qe(a){a=a|0;var b=0;if(c[a+68>>2]|0){b=c[a+116>>2]|0;a=a+112|0;if(b|0)c[b+112>>2]=c[a>>2];a=c[a>>2]|0;if(!a)a=(Ve()|0)+232|0;else a=a+116|0;c[a>>2]=b}return}function Re(){fa(30724);return 30732}function Se(){oa(30724);return}function Te(a){a=a|0;var b=0,d=0;do if(a){if((c[a+76>>2]|0)<=-1){b=Ue(a)|0;break}d=(ke(a)|0)==0;b=Ue(a)|0;if(!d)le(a)}else{if(!(c[4812]|0))b=0;else b=Te(c[4812]|0)|0;a=c[(Re()|0)>>2]|0;if(a)do{if((c[a+76>>2]|0)>-1)d=ke(a)|0;else d=0;if((c[a+20>>2]|0)>>>0>(c[a+28>>2]|0)>>>0)b=Ue(a)|0|b;if(d|0)le(a);a=c[a+56>>2]|0}while((a|0)!=0);Se()}while(0);return b|0}function Ue(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;b=a+20|0;h=a+28|0;if((c[b>>2]|0)>>>0>(c[h>>2]|0)>>>0?(ua[c[a+36>>2]&7](a,0,0)|0,(c[b>>2]|0)==0):0)a=-1;else{d=a+4|0;e=c[d>>2]|0;f=a+8|0;g=c[f>>2]|0;if(e>>>0<g>>>0)ua[c[a+40>>2]&7](a,e-g|0,1)|0;c[a+16>>2]=0;c[h>>2]=0;c[b>>2]=0;c[f>>2]=0;c[d>>2]=0;a=0}return a|0}function Ve(){return ae()|0}function We(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0;o=l;l=l+64|0;n=o+40|0;k=o+24|0;j=o+16|0;g=o;m=o+56|0;f=a[d>>0]|0;if(ge(30654,f<<24>>24,4)|0){e=kf(1156)|0;if(!e)e=0;else{h=e;i=h+124|0;do{c[h>>2]=0;h=h+4|0}while((h|0)<(i|0));if(!(Je(d,43)|0))c[e>>2]=f<<24>>24==114?8:4;if(Je(d,101)|0){c[g>>2]=b;c[g+4>>2]=2;c[g+8>>2]=1;ea(221,g|0)|0;f=a[d>>0]|0}if(f<<24>>24==97){c[j>>2]=b;c[j+4>>2]=3;f=ea(221,j|0)|0;if(!(f&1024)){c[k>>2]=b;c[k+4>>2]=4;c[k+8>>2]=f|1024;ea(221,k|0)|0}d=c[e>>2]|128;c[e>>2]=d}else d=c[e>>2]|0;c[e+60>>2]=b;c[e+44>>2]=e+132;c[e+48>>2]=1024;f=e+75|0;a[f>>0]=-1;if((d&8|0)==0?(c[n>>2]=b,c[n+4>>2]=21523,c[n+8>>2]=m,(na(54,n|0)|0)==0):0)a[f>>0]=10;c[e+32>>2]=5;c[e+36>>2]=4;c[e+40>>2]=3;c[e+12>>2]=3;if(!(c[7666]|0))c[e+76>>2]=-1;Xe(e)|0}}else{c[(_d()|0)>>2]=22;e=0}l=o;return e|0}function Xe(a){a=a|0;var b=0,d=0;b=Re()|0;c[a+56>>2]=c[b>>2];d=c[b>>2]|0;if(d|0)c[d+52>>2]=a;c[b>>2]=a;Se();return a|0}function Ye(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;i=l;l=l+48|0;h=i+32|0;g=i+16|0;e=i;if(ge(30654,a[d>>0]|0,4)|0){f=Ze(d)|0;c[e>>2]=b;c[e+4>>2]=f|32768;c[e+8>>2]=438;e=Zd(la(5,e|0)|0)|0;if((e|0)>=0){if(f&524288|0){c[g>>2]=e;c[g+4>>2]=2;c[g+8>>2]=1;ea(221,g|0)|0}b=We(e,d)|0;if(!b){c[h>>2]=e;ia(6,h|0)|0;b=0}}else b=0}else{c[(_d()|0)>>2]=22;b=0}l=i;return b|0}function Ze(b){b=b|0;var c=0,d=0,e=0;d=(Je(b,43)|0)==0;c=a[b>>0]|0;d=d?c<<24>>24!=114&1:2;e=(Je(b,120)|0)==0;d=e?d:d|128;b=(Je(b,101)|0)==0;b=b?d:d|524288;b=c<<24>>24==114?b:b|64;b=c<<24>>24==119?b|512:b;return (c<<24>>24==97?b|1024:b)|0}function _e(a,b,c){a=a|0;b=b|0;c=c|0;return $e(a,b,c)|0}function $e(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if((c[a+76>>2]|0)>-1){e=(ke(a)|0)==0;b=af(a,b,d)|0;if(!e)le(a)}else b=af(a,b,d)|0;return b|0}function af(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;if((d|0)==1)b=b-(c[a+8>>2]|0)+(c[a+4>>2]|0)|0;e=a+20|0;f=a+28|0;if((c[e>>2]|0)>>>0>(c[f>>2]|0)>>>0?(ua[c[a+36>>2]&7](a,0,0)|0,(c[e>>2]|0)==0):0)b=-1;else{c[a+16>>2]=0;c[f>>2]=0;c[e>>2]=0;if((ua[c[a+40>>2]&7](a,b,d)|0)<0)b=-1;else{c[a+8>>2]=0;c[a+4>>2]=0;c[a>>2]=c[a>>2]&-17;b=0}}return b|0}function bf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=S(d,b)|0;d=(b|0)==0?0:d;if((c[e+76>>2]|0)>-1){g=(ke(e)|0)==0;a=He(a,f,e)|0;if(!g)le(e)}else a=He(a,f,e)|0;if((a|0)!=(f|0))d=(a>>>0)/(b>>>0)|0;return d|0}function cf(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,m=0;m=l;l=l+16|0;j=m;k=e&255;a[j>>0]=k;g=b+16|0;h=c[g>>2]|0;if(!h)if(!(Ie(b)|0)){h=c[g>>2]|0;i=4}else f=-1;else i=4;do if((i|0)==4){i=b+20|0;g=c[i>>2]|0;if(g>>>0<h>>>0?(f=e&255,(f|0)!=(a[b+75>>0]|0)):0){c[i>>2]=g+1;a[g>>0]=k;break}if((ua[c[b+36>>2]&7](b,j,1)|0)==1)f=d[j>>0]|0;else f=-1}while(0);l=m;return f|0}function df(a){a=+a;return ~~+ef(a)|0}function ef(a){a=+a;var b=0;b=(g[j>>2]=a,c[j>>2]|0);if((b&2130706432)>>>0<=1249902592){b=(b|0)<0;a=(b?8388608.0:-8388608.0)+((b?-8388608.0:8388608.0)+a);if(a==0.0)a=b?-0.0:0.0}return +a}function ff(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;k=S(e,d)|0;e=(d|0)==0?0:e;if((c[f+76>>2]|0)>-1)j=ke(f)|0;else j=0;g=f+74|0;h=a[g>>0]|0;a[g>>0]=h+255|h;g=f+4|0;h=c[g>>2]|0;m=(c[f+8>>2]|0)-h|0;i=m>>>0<k>>>0?m:k;if((m|0)>0){Ef(b|0,h|0,i|0)|0;c[g>>2]=h+i;g=k-i|0;b=b+i|0}else g=k;a:do if(!g)l=13;else{i=f+32|0;while(1){if(Me(f)|0)break;h=ua[c[i>>2]&7](f,b,g)|0;if((h+1|0)>>>0<2)break;g=g-h|0;if(!g){l=13;break a}else b=b+h|0}if(j|0)le(f);e=((k-g|0)>>>0)/(d>>>0)|0}while(0);if((l|0)==13)if(j)le(f);return e|0}function gf(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=b&255;e=b&255;if((c[d+76>>2]|0)>=0?(ke(d)|0)!=0:0){if((e|0)!=(a[d+75>>0]|0)?(h=d+20|0,i=c[h>>2]|0,i>>>0<(c[d+16>>2]|0)>>>0):0){c[h>>2]=i+1;a[i>>0]=j}else e=cf(d,b)|0;le(d)}else k=3;do if((k|0)==3){if((e|0)!=(a[d+75>>0]|0)?(f=d+20|0,g=c[f>>2]|0,g>>>0<(c[d+16>>2]|0)>>>0):0){c[f>>2]=g+1;a[g>>0]=j;break}e=cf(d,b)|0}while(0);return e|0}function hf(a){a=a|0;var b=0;if(!(c[a>>2]&128))b=1;else b=(c[a+20>>2]|0)>>>0>(c[a+28>>2]|0)>>>0?2:1;b=ua[c[a+40>>2]&7](a,0,b)|0;if((b|0)>=0)b=b-(c[a+8>>2]|0)+(c[a+4>>2]|0)+(c[a+20>>2]|0)-(c[a+28>>2]|0)|0;return b|0}function jf(a){a=a|0;var b=0;if((c[a+76>>2]|0)>-1){b=(ke(a)|0)==0;a=hf(a)|0}else a=hf(a)|0;return a|0}function kf(a){a=a|0;var b=0,d=0,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,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;K=l;l=l+16|0;o=K;do if(a>>>0<245){p=a>>>0<11?16:a+11&-8;a=p>>>3;t=c[7684]|0;d=t>>>a;if(d&3|0){a=(d&1^1)+a|0;d=30776+(a<<1<<2)|0;e=d+8|0;f=c[e>>2]|0;g=f+8|0;h=c[g>>2]|0;do if((d|0)!=(h|0)){if(h>>>0<(c[7688]|0)>>>0)ga();b=h+12|0;if((c[b>>2]|0)==(f|0)){c[b>>2]=d;c[e>>2]=h;break}else ga()}else c[7684]=t&~(1<<a);while(0);J=a<<3;c[f+4>>2]=J|3;J=f+J+4|0;c[J>>2]=c[J>>2]|1;J=g;l=K;return J|0}s=c[7686]|0;if(p>>>0>s>>>0){if(d|0){i=2<<a;a=d<<a&(i|0-i);a=(a&0-a)+-1|0;i=a>>>12&16;a=a>>>i;e=a>>>5&8;a=a>>>e;g=a>>>2&4;a=a>>>g;d=a>>>1&2;a=a>>>d;b=a>>>1&1;b=(e|i|g|d|b)+(a>>>b)|0;a=30776+(b<<1<<2)|0;d=a+8|0;g=c[d>>2]|0;i=g+8|0;e=c[i>>2]|0;do if((a|0)!=(e|0)){if(e>>>0<(c[7688]|0)>>>0)ga();f=e+12|0;if((c[f>>2]|0)==(g|0)){c[f>>2]=a;c[d>>2]=e;j=t;break}else ga()}else{j=t&~(1<<b);c[7684]=j}while(0);h=(b<<3)-p|0;c[g+4>>2]=p|3;e=g+p|0;c[e+4>>2]=h|1;c[e+h>>2]=h;if(s|0){f=c[7689]|0;b=s>>>3;d=30776+(b<<1<<2)|0;b=1<<b;if(j&b){b=d+8|0;a=c[b>>2]|0;if(a>>>0<(c[7688]|0)>>>0)ga();else{k=a;m=b}}else{c[7684]=j|b;k=d;m=d+8|0}c[m>>2]=f;c[k+12>>2]=f;c[f+8>>2]=k;c[f+12>>2]=d}c[7686]=h;c[7689]=e;J=i;l=K;return J|0}k=c[7685]|0;if(k){a=(k&0-k)+-1|0;I=a>>>12&16;a=a>>>I;H=a>>>5&8;a=a>>>H;J=a>>>2&4;a=a>>>J;d=a>>>1&2;a=a>>>d;b=a>>>1&1;b=c[31040+((H|I|J|d|b)+(a>>>b)<<2)>>2]|0;a=(c[b+4>>2]&-8)-p|0;d=c[b+16+(((c[b+16>>2]|0)==0&1)<<2)>>2]|0;if(!d){j=b;h=a}else{do{I=(c[d+4>>2]&-8)-p|0;J=I>>>0<a>>>0;a=J?I:a;b=J?d:b;d=c[d+16+(((c[d+16>>2]|0)==0&1)<<2)>>2]|0}while((d|0)!=0);j=b;h=a}f=c[7688]|0;if(j>>>0<f>>>0)ga();i=j+p|0;if(j>>>0>=i>>>0)ga();g=c[j+24>>2]|0;d=c[j+12>>2]|0;do if((d|0)==(j|0)){a=j+20|0;b=c[a>>2]|0;if(!b){a=j+16|0;b=c[a>>2]|0;if(!b){n=0;break}}while(1){d=b+20|0;e=c[d>>2]|0;if(e|0){b=e;a=d;continue}d=b+16|0;e=c[d>>2]|0;if(!e)break;else{b=e;a=d}}if(a>>>0<f>>>0)ga();else{c[a>>2]=0;n=b;break}}else{e=c[j+8>>2]|0;if(e>>>0<f>>>0)ga();b=e+12|0;if((c[b>>2]|0)!=(j|0))ga();a=d+8|0;if((c[a>>2]|0)==(j|0)){c[b>>2]=d;c[a>>2]=e;n=d;break}else ga()}while(0);a:do if(g|0){b=c[j+28>>2]|0;a=31040+(b<<2)|0;do if((j|0)==(c[a>>2]|0)){c[a>>2]=n;if(!n){c[7685]=k&~(1<<b);break a}}else if(g>>>0>=(c[7688]|0)>>>0){c[g+16+(((c[g+16>>2]|0)!=(j|0)&1)<<2)>>2]=n;if(!n)break a;else break}else ga();while(0);a=c[7688]|0;if(n>>>0<a>>>0)ga();c[n+24>>2]=g;b=c[j+16>>2]|0;do if(b|0)if(b>>>0<a>>>0)ga();else{c[n+16>>2]=b;c[b+24>>2]=n;break}while(0);b=c[j+20>>2]|0;if(b|0)if(b>>>0<(c[7688]|0)>>>0)ga();else{c[n+20>>2]=b;c[b+24>>2]=n;break}}while(0);if(h>>>0<16){J=h+p|0;c[j+4>>2]=J|3;J=j+J+4|0;c[J>>2]=c[J>>2]|1}else{c[j+4>>2]=p|3;c[i+4>>2]=h|1;c[i+h>>2]=h;if(s|0){e=c[7689]|0;b=s>>>3;d=30776+(b<<1<<2)|0;b=1<<b;if(t&b){b=d+8|0;a=c[b>>2]|0;if(a>>>0<(c[7688]|0)>>>0)ga();else{q=a;r=b}}else{c[7684]=t|b;q=d;r=d+8|0}c[r>>2]=e;c[q+12>>2]=e;c[e+8>>2]=q;c[e+12>>2]=d}c[7686]=h;c[7689]=i}J=j+8|0;l=K;return J|0}}}else if(a>>>0<=4294967231){a=a+11|0;p=a&-8;k=c[7685]|0;if(k){e=0-p|0;a=a>>>8;if(a)if(p>>>0>16777215)i=31;else{r=(a+1048320|0)>>>16&8;C=a<<r;q=(C+520192|0)>>>16&4;C=C<<q;i=(C+245760|0)>>>16&2;i=14-(q|r|i)+(C<<i>>>15)|0;i=p>>>(i+7|0)&1|i<<1}else i=0;d=c[31040+(i<<2)>>2]|0;b:do if(!d){d=0;a=0;C=81}else{a=0;h=p<<((i|0)==31?0:25-(i>>>1)|0);g=0;while(1){f=(c[d+4>>2]&-8)-p|0;if(f>>>0<e>>>0)if(!f){a=d;e=0;f=d;C=85;break b}else{a=d;e=f}f=c[d+20>>2]|0;d=c[d+16+(h>>>31<<2)>>2]|0;g=(f|0)==0|(f|0)==(d|0)?g:f;f=(d|0)==0;if(f){d=g;C=81;break}else h=h<<((f^1)&1)}}while(0);if((C|0)==81){if((d|0)==0&(a|0)==0){a=2<<i;a=k&(a|0-a);if(!a)break;r=(a&0-a)+-1|0;m=r>>>12&16;r=r>>>m;j=r>>>5&8;r=r>>>j;n=r>>>2&4;r=r>>>n;q=r>>>1&2;r=r>>>q;d=r>>>1&1;a=0;d=c[31040+((j|m|n|q|d)+(r>>>d)<<2)>>2]|0}if(!d){j=a;i=e}else{f=d;C=85}}if((C|0)==85)while(1){C=0;d=(c[f+4>>2]&-8)-p|0;r=d>>>0<e>>>0;d=r?d:e;a=r?f:a;f=c[f+16+(((c[f+16>>2]|0)==0&1)<<2)>>2]|0;if(!f){j=a;i=d;break}else{e=d;C=85}}if((j|0)!=0?i>>>0<((c[7686]|0)-p|0)>>>0:0){f=c[7688]|0;if(j>>>0<f>>>0)ga();h=j+p|0;if(j>>>0>=h>>>0)ga();g=c[j+24>>2]|0;d=c[j+12>>2]|0;do if((d|0)==(j|0)){a=j+20|0;b=c[a>>2]|0;if(!b){a=j+16|0;b=c[a>>2]|0;if(!b){s=0;break}}while(1){d=b+20|0;e=c[d>>2]|0;if(e|0){b=e;a=d;continue}d=b+16|0;e=c[d>>2]|0;if(!e)break;else{b=e;a=d}}if(a>>>0<f>>>0)ga();else{c[a>>2]=0;s=b;break}}else{e=c[j+8>>2]|0;if(e>>>0<f>>>0)ga();b=e+12|0;if((c[b>>2]|0)!=(j|0))ga();a=d+8|0;if((c[a>>2]|0)==(j|0)){c[b>>2]=d;c[a>>2]=e;s=d;break}else ga()}while(0);c:do if(g){b=c[j+28>>2]|0;a=31040+(b<<2)|0;do if((j|0)==(c[a>>2]|0)){c[a>>2]=s;if(!s){t=k&~(1<<b);c[7685]=t;break c}}else if(g>>>0>=(c[7688]|0)>>>0){c[g+16+(((c[g+16>>2]|0)!=(j|0)&1)<<2)>>2]=s;if(!s){t=k;break c}else break}else ga();while(0);a=c[7688]|0;if(s>>>0<a>>>0)ga();c[s+24>>2]=g;b=c[j+16>>2]|0;do if(b|0)if(b>>>0<a>>>0)ga();else{c[s+16>>2]=b;c[b+24>>2]=s;break}while(0);b=c[j+20>>2]|0;if(b)if(b>>>0<(c[7688]|0)>>>0)ga();else{c[s+20>>2]=b;c[b+24>>2]=s;t=k;break}else t=k}else t=k;while(0);do if(i>>>0>=16){c[j+4>>2]=p|3;c[h+4>>2]=i|1;c[h+i>>2]=i;b=i>>>3;if(i>>>0<256){d=30776+(b<<1<<2)|0;a=c[7684]|0;b=1<<b;if(a&b){b=d+8|0;a=c[b>>2]|0;if(a>>>0<(c[7688]|0)>>>0)ga();else{x=a;y=b}}else{c[7684]=a|b;x=d;y=d+8|0}c[y>>2]=h;c[x+12>>2]=h;c[h+8>>2]=x;c[h+12>>2]=d;break}b=i>>>8;if(b)if(i>>>0>16777215)b=31;else{I=(b+1048320|0)>>>16&8;J=b<<I;H=(J+520192|0)>>>16&4;J=J<<H;b=(J+245760|0)>>>16&2;b=14-(H|I|b)+(J<<b>>>15)|0;b=i>>>(b+7|0)&1|b<<1}else b=0;d=31040+(b<<2)|0;c[h+28>>2]=b;a=h+16|0;c[a+4>>2]=0;c[a>>2]=0;a=1<<b;if(!(t&a)){c[7685]=t|a;c[d>>2]=h;c[h+24>>2]=d;c[h+12>>2]=h;c[h+8>>2]=h;break}a=i<<((b|0)==31?0:25-(b>>>1)|0);e=c[d>>2]|0;while(1){if((c[e+4>>2]&-8|0)==(i|0)){C=139;break}d=e+16+(a>>>31<<2)|0;b=c[d>>2]|0;if(!b){C=136;break}else{a=a<<1;e=b}}if((C|0)==136)if(d>>>0<(c[7688]|0)>>>0)ga();else{c[d>>2]=h;c[h+24>>2]=e;c[h+12>>2]=h;c[h+8>>2]=h;break}else if((C|0)==139){b=e+8|0;a=c[b>>2]|0;J=c[7688]|0;if(a>>>0>=J>>>0&e>>>0>=J>>>0){c[a+12>>2]=h;c[b>>2]=h;c[h+8>>2]=a;c[h+12>>2]=e;c[h+24>>2]=0;break}else ga()}}else{J=i+p|0;c[j+4>>2]=J|3;J=j+J+4|0;c[J>>2]=c[J>>2]|1}while(0);J=j+8|0;l=K;return J|0}}}else p=-1;while(0);d=c[7686]|0;if(d>>>0>=p>>>0){b=d-p|0;a=c[7689]|0;if(b>>>0>15){J=a+p|0;c[7689]=J;c[7686]=b;c[J+4>>2]=b|1;c[J+b>>2]=b;c[a+4>>2]=p|3}else{c[7686]=0;c[7689]=0;c[a+4>>2]=d|3;J=a+d+4|0;c[J>>2]=c[J>>2]|1}J=a+8|0;l=K;return J|0}h=c[7687]|0;if(h>>>0>p>>>0){H=h-p|0;c[7687]=H;J=c[7690]|0;I=J+p|0;c[7690]=I;c[I+4>>2]=H|1;c[J+4>>2]=p|3;J=J+8|0;l=K;return J|0}if(!(c[7802]|0)){c[7804]=4096;c[7803]=4096;c[7805]=-1;c[7806]=-1;c[7807]=0;c[7795]=0;a=o&-16^1431655768;c[o>>2]=a;c[7802]=a;a=4096}else a=c[7804]|0;i=p+48|0;j=p+47|0;g=a+j|0;f=0-a|0;k=g&f;if(k>>>0<=p>>>0){J=0;l=K;return J|0}a=c[7794]|0;if(a|0?(x=c[7792]|0,y=x+k|0,y>>>0<=x>>>0|y>>>0>a>>>0):0){J=0;l=K;return J|0}d:do if(!(c[7795]&4)){d=c[7690]|0;e:do if(d){e=31184;while(1){a=c[e>>2]|0;if(a>>>0<=d>>>0?(w=e+4|0,(a+(c[w>>2]|0)|0)>>>0>d>>>0):0)break;a=c[e+8>>2]|0;if(!a){C=163;break e}else e=a}b=g-h&f;if(b>>>0<2147483647){a=Df(b|0)|0;if((a|0)==((c[e>>2]|0)+(c[w>>2]|0)|0)){if((a|0)!=(-1|0)){h=b;g=a;C=180;break d}}else{e=a;C=171}}else b=0}else C=163;while(0);do if((C|0)==163){d=Df(0)|0;if((d|0)!=(-1|0)?(b=d,u=c[7803]|0,v=u+-1|0,b=((v&b|0)==0?0:(v+b&0-u)-b|0)+k|0,u=c[7792]|0,v=b+u|0,b>>>0>p>>>0&b>>>0<2147483647):0){y=c[7794]|0;if(y|0?v>>>0<=u>>>0|v>>>0>y>>>0:0){b=0;break}a=Df(b|0)|0;if((a|0)==(d|0)){h=b;g=d;C=180;break d}else{e=a;C=171}}else b=0}while(0);do if((C|0)==171){d=0-b|0;if(!(i>>>0>b>>>0&(b>>>0<2147483647&(e|0)!=(-1|0))))if((e|0)==(-1|0)){b=0;break}else{h=b;g=e;C=180;break d}a=c[7804]|0;a=j-b+a&0-a;if(a>>>0>=2147483647){h=b;g=e;C=180;break d}if((Df(a|0)|0)==(-1|0)){Df(d|0)|0;b=0;break}else{h=a+b|0;g=e;C=180;break d}}while(0);c[7795]=c[7795]|4;C=178}else{b=0;C=178}while(0);if(((C|0)==178?k>>>0<2147483647:0)?(B=Df(k|0)|0,y=Df(0)|0,z=y-B|0,A=z>>>0>(p+40|0)>>>0,!((B|0)==(-1|0)|A^1|B>>>0<y>>>0&((B|0)!=(-1|0)&(y|0)!=(-1|0))^1)):0){h=A?z:b;g=B;C=180}if((C|0)==180){b=(c[7792]|0)+h|0;c[7792]=b;if(b>>>0>(c[7793]|0)>>>0)c[7793]=b;k=c[7690]|0;do if(k){b=31184;while(1){a=c[b>>2]|0;d=b+4|0;e=c[d>>2]|0;if((g|0)==(a+e|0)){C=190;break}f=c[b+8>>2]|0;if(!f)break;else b=f}if(((C|0)==190?(c[b+12>>2]&8|0)==0:0)?k>>>0<g>>>0&k>>>0>=a>>>0:0){c[d>>2]=e+h;J=k+8|0;J=(J&7|0)==0?0:0-J&7;I=k+J|0;J=(c[7687]|0)+(h-J)|0;c[7690]=I;c[7687]=J;c[I+4>>2]=J|1;c[I+J+4>>2]=40;c[7691]=c[7806];break}b=c[7688]|0;if(g>>>0<b>>>0){c[7688]=g;i=g}else i=b;d=g+h|0;b=31184;while(1){if((c[b>>2]|0)==(d|0)){C=198;break}a=c[b+8>>2]|0;if(!a)break;else b=a}if((C|0)==198?(c[b+12>>2]&8|0)==0:0){c[b>>2]=g;n=b+4|0;c[n>>2]=(c[n>>2]|0)+h;n=g+8|0;n=g+((n&7|0)==0?0:0-n&7)|0;b=d+8|0;b=d+((b&7|0)==0?0:0-b&7)|0;m=n+p|0;j=b-n-p|0;c[n+4>>2]=p|3;do if((b|0)!=(k|0)){if((b|0)==(c[7689]|0)){J=(c[7686]|0)+j|0;c[7686]=J;c[7689]=m;c[m+4>>2]=J|1;c[m+J>>2]=J;break}a=c[b+4>>2]|0;if((a&3|0)==1){h=a&-8;f=a>>>3;f:do if(a>>>0>=256){g=c[b+24>>2]|0;e=c[b+12>>2]|0;do if((e|0)==(b|0)){e=b+16|0;d=e+4|0;a=c[d>>2]|0;if(!a){a=c[e>>2]|0;if(!a){H=0;break}else d=e}while(1){e=a+20|0;f=c[e>>2]|0;if(f|0){a=f;d=e;continue}e=a+16|0;f=c[e>>2]|0;if(!f)break;else{a=f;d=e}}if(d>>>0<i>>>0)ga();else{c[d>>2]=0;H=a;break}}else{f=c[b+8>>2]|0;if(f>>>0<i>>>0)ga();a=f+12|0;if((c[a>>2]|0)!=(b|0))ga();d=e+8|0;if((c[d>>2]|0)==(b|0)){c[a>>2]=e;c[d>>2]=f;H=e;break}else ga()}while(0);if(!g)break;a=c[b+28>>2]|0;d=31040+(a<<2)|0;do if((b|0)!=(c[d>>2]|0))if(g>>>0>=(c[7688]|0)>>>0){c[g+16+(((c[g+16>>2]|0)!=(b|0)&1)<<2)>>2]=H;if(!H)break f;else break}else ga();else{c[d>>2]=H;if(H|0)break;c[7685]=c[7685]&~(1<<a);break f}while(0);e=c[7688]|0;if(H>>>0<e>>>0)ga();c[H+24>>2]=g;a=b+16|0;d=c[a>>2]|0;do if(d|0)if(d>>>0<e>>>0)ga();else{c[H+16>>2]=d;c[d+24>>2]=H;break}while(0);a=c[a+4>>2]|0;if(!a)break;if(a>>>0<(c[7688]|0)>>>0)ga();else{c[H+20>>2]=a;c[a+24>>2]=H;break}}else{d=c[b+8>>2]|0;e=c[b+12>>2]|0;a=30776+(f<<1<<2)|0;do if((d|0)!=(a|0)){if(d>>>0<i>>>0)ga();if((c[d+12>>2]|0)==(b|0))break;ga()}while(0);if((e|0)==(d|0)){c[7684]=c[7684]&~(1<<f);break}do if((e|0)==(a|0))E=e+8|0;else{if(e>>>0<i>>>0)ga();a=e+8|0;if((c[a>>2]|0)==(b|0)){E=a;break}ga()}while(0);c[d+12>>2]=e;c[E>>2]=d}while(0);b=b+h|0;f=h+j|0}else f=j;b=b+4|0;c[b>>2]=c[b>>2]&-2;c[m+4>>2]=f|1;c[m+f>>2]=f;b=f>>>3;if(f>>>0<256){d=30776+(b<<1<<2)|0;a=c[7684]|0;b=1<<b;do if(!(a&b)){c[7684]=a|b;I=d;J=d+8|0}else{b=d+8|0;a=c[b>>2]|0;if(a>>>0>=(c[7688]|0)>>>0){I=a;J=b;break}ga()}while(0);c[J>>2]=m;c[I+12>>2]=m;c[m+8>>2]=I;c[m+12>>2]=d;break}b=f>>>8;do if(!b)b=0;else{if(f>>>0>16777215){b=31;break}I=(b+1048320|0)>>>16&8;J=b<<I;H=(J+520192|0)>>>16&4;J=J<<H;b=(J+245760|0)>>>16&2;b=14-(H|I|b)+(J<<b>>>15)|0;b=f>>>(b+7|0)&1|b<<1}while(0);e=31040+(b<<2)|0;c[m+28>>2]=b;a=m+16|0;c[a+4>>2]=0;c[a>>2]=0;a=c[7685]|0;d=1<<b;if(!(a&d)){c[7685]=a|d;c[e>>2]=m;c[m+24>>2]=e;c[m+12>>2]=m;c[m+8>>2]=m;break}a=f<<((b|0)==31?0:25-(b>>>1)|0);e=c[e>>2]|0;while(1){if((c[e+4>>2]&-8|0)==(f|0)){C=265;break}d=e+16+(a>>>31<<2)|0;b=c[d>>2]|0;if(!b){C=262;break}else{a=a<<1;e=b}}if((C|0)==262)if(d>>>0<(c[7688]|0)>>>0)ga();else{c[d>>2]=m;c[m+24>>2]=e;c[m+12>>2]=m;c[m+8>>2]=m;break}else if((C|0)==265){b=e+8|0;a=c[b>>2]|0;J=c[7688]|0;if(a>>>0>=J>>>0&e>>>0>=J>>>0){c[a+12>>2]=m;c[b>>2]=m;c[m+8>>2]=a;c[m+12>>2]=e;c[m+24>>2]=0;break}else ga()}}else{J=(c[7687]|0)+j|0;c[7687]=J;c[7690]=m;c[m+4>>2]=J|1}while(0);J=n+8|0;l=K;return J|0}b=31184;while(1){a=c[b>>2]|0;if(a>>>0<=k>>>0?(D=a+(c[b+4>>2]|0)|0,D>>>0>k>>>0):0)break;b=c[b+8>>2]|0}f=D+-47|0;a=f+8|0;a=f+((a&7|0)==0?0:0-a&7)|0;f=k+16|0;a=a>>>0<f>>>0?k:a;b=a+8|0;d=g+8|0;d=(d&7|0)==0?0:0-d&7;J=g+d|0;d=h+-40-d|0;c[7690]=J;c[7687]=d;c[J+4>>2]=d|1;c[J+d+4>>2]=40;c[7691]=c[7806];d=a+4|0;c[d>>2]=27;c[b>>2]=c[7796];c[b+4>>2]=c[7797];c[b+8>>2]=c[7798];c[b+12>>2]=c[7799];c[7796]=g;c[7797]=h;c[7799]=0;c[7798]=b;b=a+24|0;do{J=b;b=b+4|0;c[b>>2]=7}while((J+8|0)>>>0<D>>>0);if((a|0)!=(k|0)){g=a-k|0;c[d>>2]=c[d>>2]&-2;c[k+4>>2]=g|1;c[a>>2]=g;b=g>>>3;if(g>>>0<256){d=30776+(b<<1<<2)|0;a=c[7684]|0;b=1<<b;if(a&b){b=d+8|0;a=c[b>>2]|0;if(a>>>0<(c[7688]|0)>>>0)ga();else{F=a;G=b}}else{c[7684]=a|b;F=d;G=d+8|0}c[G>>2]=k;c[F+12>>2]=k;c[k+8>>2]=F;c[k+12>>2]=d;break}b=g>>>8;if(b)if(g>>>0>16777215)d=31;else{I=(b+1048320|0)>>>16&8;J=b<<I;H=(J+520192|0)>>>16&4;J=J<<H;d=(J+245760|0)>>>16&2;d=14-(H|I|d)+(J<<d>>>15)|0;d=g>>>(d+7|0)&1|d<<1}else d=0;e=31040+(d<<2)|0;c[k+28>>2]=d;c[k+20>>2]=0;c[f>>2]=0;b=c[7685]|0;a=1<<d;if(!(b&a)){c[7685]=b|a;c[e>>2]=k;c[k+24>>2]=e;c[k+12>>2]=k;c[k+8>>2]=k;break}a=g<<((d|0)==31?0:25-(d>>>1)|0);e=c[e>>2]|0;while(1){if((c[e+4>>2]&-8|0)==(g|0)){C=292;break}d=e+16+(a>>>31<<2)|0;b=c[d>>2]|0;if(!b){C=289;break}else{a=a<<1;e=b}}if((C|0)==289)if(d>>>0<(c[7688]|0)>>>0)ga();else{c[d>>2]=k;c[k+24>>2]=e;c[k+12>>2]=k;c[k+8>>2]=k;break}else if((C|0)==292){b=e+8|0;a=c[b>>2]|0;J=c[7688]|0;if(a>>>0>=J>>>0&e>>>0>=J>>>0){c[a+12>>2]=k;c[b>>2]=k;c[k+8>>2]=a;c[k+12>>2]=e;c[k+24>>2]=0;break}else ga()}}}else{J=c[7688]|0;if((J|0)==0|g>>>0<J>>>0)c[7688]=g;c[7796]=g;c[7797]=h;c[7799]=0;c[7693]=c[7802];c[7692]=-1;b=0;do{J=30776+(b<<1<<2)|0;c[J+12>>2]=J;c[J+8>>2]=J;b=b+1|0}while((b|0)!=32);J=g+8|0;J=(J&7|0)==0?0:0-J&7;I=g+J|0;J=h+-40-J|0;c[7690]=I;c[7687]=J;c[I+4>>2]=J|1;c[I+J+4>>2]=40;c[7691]=c[7806]}while(0);b=c[7687]|0;if(b>>>0>p>>>0){H=b-p|0;c[7687]=H;J=c[7690]|0;I=J+p|0;c[7690]=I;c[I+4>>2]=H|1;c[J+4>>2]=p|3;J=J+8|0;l=K;return J|0}}c[(_d()|0)>>2]=12;J=0;l=K;return J|0}function lf(a){a=a|0;var b=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;if(!a)return;d=a+-8|0;h=c[7688]|0;if(d>>>0<h>>>0)ga();a=c[a+-4>>2]|0;b=a&3;if((b|0)==1)ga();e=a&-8;o=d+e|0;a:do if(!(a&1)){a=c[d>>2]|0;if(!b)return;k=d+(0-a)|0;j=a+e|0;if(k>>>0<h>>>0)ga();if((k|0)==(c[7689]|0)){a=o+4|0;b=c[a>>2]|0;if((b&3|0)!=3){r=k;f=j;m=k;break}c[7686]=j;c[a>>2]=b&-2;c[k+4>>2]=j|1;c[k+j>>2]=j;return}e=a>>>3;if(a>>>0<256){b=c[k+8>>2]|0;d=c[k+12>>2]|0;a=30776+(e<<1<<2)|0;if((b|0)!=(a|0)){if(b>>>0<h>>>0)ga();if((c[b+12>>2]|0)!=(k|0))ga()}if((d|0)==(b|0)){c[7684]=c[7684]&~(1<<e);r=k;f=j;m=k;break}if((d|0)!=(a|0)){if(d>>>0<h>>>0)ga();a=d+8|0;if((c[a>>2]|0)==(k|0))g=a;else ga()}else g=d+8|0;c[b+12>>2]=d;c[g>>2]=b;r=k;f=j;m=k;break}g=c[k+24>>2]|0;d=c[k+12>>2]|0;do if((d|0)==(k|0)){d=k+16|0;b=d+4|0;a=c[b>>2]|0;if(!a){a=c[d>>2]|0;if(!a){i=0;break}else b=d}while(1){d=a+20|0;e=c[d>>2]|0;if(e|0){a=e;b=d;continue}d=a+16|0;e=c[d>>2]|0;if(!e)break;else{a=e;b=d}}if(b>>>0<h>>>0)ga();else{c[b>>2]=0;i=a;break}}else{e=c[k+8>>2]|0;if(e>>>0<h>>>0)ga();a=e+12|0;if((c[a>>2]|0)!=(k|0))ga();b=d+8|0;if((c[b>>2]|0)==(k|0)){c[a>>2]=d;c[b>>2]=e;i=d;break}else ga()}while(0);if(g){a=c[k+28>>2]|0;b=31040+(a<<2)|0;do if((k|0)==(c[b>>2]|0)){c[b>>2]=i;if(!i){c[7685]=c[7685]&~(1<<a);r=k;f=j;m=k;break a}}else if(g>>>0>=(c[7688]|0)>>>0){c[g+16+(((c[g+16>>2]|0)!=(k|0)&1)<<2)>>2]=i;if(!i){r=k;f=j;m=k;break a}else break}else ga();while(0);d=c[7688]|0;if(i>>>0<d>>>0)ga();c[i+24>>2]=g;a=k+16|0;b=c[a>>2]|0;do if(b|0)if(b>>>0<d>>>0)ga();else{c[i+16>>2]=b;c[b+24>>2]=i;break}while(0);a=c[a+4>>2]|0;if(a)if(a>>>0<(c[7688]|0)>>>0)ga();else{c[i+20>>2]=a;c[a+24>>2]=i;r=k;f=j;m=k;break}else{r=k;f=j;m=k}}else{r=k;f=j;m=k}}else{r=d;f=e;m=d}while(0);if(m>>>0>=o>>>0)ga();a=o+4|0;b=c[a>>2]|0;if(!(b&1))ga();if(!(b&2)){a=c[7689]|0;if((o|0)==(c[7690]|0)){q=(c[7687]|0)+f|0;c[7687]=q;c[7690]=r;c[r+4>>2]=q|1;if((r|0)!=(a|0))return;c[7689]=0;c[7686]=0;return}if((o|0)==(a|0)){q=(c[7686]|0)+f|0;c[7686]=q;c[7689]=m;c[r+4>>2]=q|1;c[m+q>>2]=q;return}f=(b&-8)+f|0;e=b>>>3;b:do if(b>>>0>=256){g=c[o+24>>2]|0;a=c[o+12>>2]|0;do if((a|0)==(o|0)){d=o+16|0;b=d+4|0;a=c[b>>2]|0;if(!a){a=c[d>>2]|0;if(!a){n=0;break}else b=d}while(1){d=a+20|0;e=c[d>>2]|0;if(e|0){a=e;b=d;continue}d=a+16|0;e=c[d>>2]|0;if(!e)break;else{a=e;b=d}}if(b>>>0<(c[7688]|0)>>>0)ga();else{c[b>>2]=0;n=a;break}}else{b=c[o+8>>2]|0;if(b>>>0<(c[7688]|0)>>>0)ga();d=b+12|0;if((c[d>>2]|0)!=(o|0))ga();e=a+8|0;if((c[e>>2]|0)==(o|0)){c[d>>2]=a;c[e>>2]=b;n=a;break}else ga()}while(0);if(g|0){a=c[o+28>>2]|0;b=31040+(a<<2)|0;do if((o|0)==(c[b>>2]|0)){c[b>>2]=n;if(!n){c[7685]=c[7685]&~(1<<a);break b}}else if(g>>>0>=(c[7688]|0)>>>0){c[g+16+(((c[g+16>>2]|0)!=(o|0)&1)<<2)>>2]=n;if(!n)break b;else break}else ga();while(0);d=c[7688]|0;if(n>>>0<d>>>0)ga();c[n+24>>2]=g;a=o+16|0;b=c[a>>2]|0;do if(b|0)if(b>>>0<d>>>0)ga();else{c[n+16>>2]=b;c[b+24>>2]=n;break}while(0);a=c[a+4>>2]|0;if(a|0)if(a>>>0<(c[7688]|0)>>>0)ga();else{c[n+20>>2]=a;c[a+24>>2]=n;break}}}else{b=c[o+8>>2]|0;d=c[o+12>>2]|0;a=30776+(e<<1<<2)|0;if((b|0)!=(a|0)){if(b>>>0<(c[7688]|0)>>>0)ga();if((c[b+12>>2]|0)!=(o|0))ga()}if((d|0)==(b|0)){c[7684]=c[7684]&~(1<<e);break}if((d|0)!=(a|0)){if(d>>>0<(c[7688]|0)>>>0)ga();a=d+8|0;if((c[a>>2]|0)==(o|0))l=a;else ga()}else l=d+8|0;c[b+12>>2]=d;c[l>>2]=b}while(0);c[r+4>>2]=f|1;c[m+f>>2]=f;if((r|0)==(c[7689]|0)){c[7686]=f;return}}else{c[a>>2]=b&-2;c[r+4>>2]=f|1;c[m+f>>2]=f}a=f>>>3;if(f>>>0<256){d=30776+(a<<1<<2)|0;b=c[7684]|0;a=1<<a;if(b&a){a=d+8|0;b=c[a>>2]|0;if(b>>>0<(c[7688]|0)>>>0)ga();else{p=b;q=a}}else{c[7684]=b|a;p=d;q=d+8|0}c[q>>2]=r;c[p+12>>2]=r;c[r+8>>2]=p;c[r+12>>2]=d;return}a=f>>>8;if(a)if(f>>>0>16777215)a=31;else{p=(a+1048320|0)>>>16&8;q=a<<p;o=(q+520192|0)>>>16&4;q=q<<o;a=(q+245760|0)>>>16&2;a=14-(o|p|a)+(q<<a>>>15)|0;a=f>>>(a+7|0)&1|a<<1}else a=0;e=31040+(a<<2)|0;c[r+28>>2]=a;c[r+20>>2]=0;c[r+16>>2]=0;b=c[7685]|0;d=1<<a;do if(b&d){b=f<<((a|0)==31?0:25-(a>>>1)|0);e=c[e>>2]|0;while(1){if((c[e+4>>2]&-8|0)==(f|0)){a=124;break}d=e+16+(b>>>31<<2)|0;a=c[d>>2]|0;if(!a){a=121;break}else{b=b<<1;e=a}}if((a|0)==121)if(d>>>0<(c[7688]|0)>>>0)ga();else{c[d>>2]=r;c[r+24>>2]=e;c[r+12>>2]=r;c[r+8>>2]=r;break}else if((a|0)==124){a=e+8|0;b=c[a>>2]|0;q=c[7688]|0;if(b>>>0>=q>>>0&e>>>0>=q>>>0){c[b+12>>2]=r;c[a>>2]=r;c[r+8>>2]=b;c[r+12>>2]=e;c[r+24>>2]=0;break}else ga()}}else{c[7685]=b|d;c[e>>2]=r;c[r+24>>2]=e;c[r+12>>2]=r;c[r+8>>2]=r}while(0);r=(c[7692]|0)+-1|0;c[7692]=r;if(!r)a=31192;else return;while(1){a=c[a>>2]|0;if(!a)break;else a=a+8|0}c[7692]=-1;return}function mf(a,b){a=a|0;b=b|0;var d=0,e=0;if(!a){b=kf(b)|0;return b|0}if(b>>>0>4294967231){c[(_d()|0)>>2]=12;b=0;return b|0}d=nf(a+-8|0,b>>>0<11?16:b+11&-8)|0;if(d|0){b=d+8|0;return b|0}d=kf(b)|0;if(!d){b=0;return b|0}e=c[a+-4>>2]|0;e=(e&-8)-((e&3|0)==0?8:4)|0;Ef(d|0,a|0,(e>>>0<b>>>0?e:b)|0)|0;lf(a);b=d;return b|0}function nf(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,l=0,m=0,n=0,o=0;o=a+4|0;n=c[o>>2]|0;d=n&-8;k=a+d|0;i=c[7688]|0;e=n&3;if(!((e|0)!=1&a>>>0>=i>>>0&a>>>0<k>>>0))ga();f=c[k+4>>2]|0;if(!(f&1))ga();if(!e){if(b>>>0<256){a=0;return a|0}if(d>>>0>=(b+4|0)>>>0?(d-b|0)>>>0<=c[7804]<<1>>>0:0)return a|0;a=0;return a|0}if(d>>>0>=b>>>0){d=d-b|0;if(d>>>0<=15)return a|0;m=a+b|0;c[o>>2]=n&1|b|2;c[m+4>>2]=d|3;o=m+d+4|0;c[o>>2]=c[o>>2]|1;of(m,d);return a|0}if((k|0)==(c[7690]|0)){m=(c[7687]|0)+d|0;d=m-b|0;e=a+b|0;if(m>>>0<=b>>>0){a=0;return a|0}c[o>>2]=n&1|b|2;c[e+4>>2]=d|1;c[7690]=e;c[7687]=d;return a|0}if((k|0)==(c[7689]|0)){f=(c[7686]|0)+d|0;if(f>>>0<b>>>0){a=0;return a|0}d=f-b|0;e=n&1;if(d>>>0>15){n=a+b|0;m=n+d|0;c[o>>2]=e|b|2;c[n+4>>2]=d|1;c[m>>2]=d;e=m+4|0;c[e>>2]=c[e>>2]&-2;e=n}else{c[o>>2]=e|f|2;e=a+f+4|0;c[e>>2]=c[e>>2]|1;e=0;d=0}c[7686]=d;c[7689]=e;return a|0}if(f&2|0){a=0;return a|0}l=(f&-8)+d|0;if(l>>>0<b>>>0){a=0;return a|0}m=l-b|0;g=f>>>3;a:do if(f>>>0>=256){h=c[k+24>>2]|0;f=c[k+12>>2]|0;do if((f|0)==(k|0)){f=k+16|0;e=f+4|0;d=c[e>>2]|0;if(!d){d=c[f>>2]|0;if(!d){j=0;break}else e=f}while(1){f=d+20|0;g=c[f>>2]|0;if(g|0){d=g;e=f;continue}f=d+16|0;g=c[f>>2]|0;if(!g)break;else{d=g;e=f}}if(e>>>0<i>>>0)ga();else{c[e>>2]=0;j=d;break}}else{g=c[k+8>>2]|0;if(g>>>0<i>>>0)ga();d=g+12|0;if((c[d>>2]|0)!=(k|0))ga();e=f+8|0;if((c[e>>2]|0)==(k|0)){c[d>>2]=f;c[e>>2]=g;j=f;break}else ga()}while(0);if(h|0){d=c[k+28>>2]|0;e=31040+(d<<2)|0;do if((k|0)==(c[e>>2]|0)){c[e>>2]=j;if(!j){c[7685]=c[7685]&~(1<<d);break a}}else if(h>>>0>=(c[7688]|0)>>>0){c[h+16+(((c[h+16>>2]|0)!=(k|0)&1)<<2)>>2]=j;if(!j)break a;else break}else ga();while(0);f=c[7688]|0;if(j>>>0<f>>>0)ga();c[j+24>>2]=h;d=k+16|0;e=c[d>>2]|0;do if(e|0)if(e>>>0<f>>>0)ga();else{c[j+16>>2]=e;c[e+24>>2]=j;break}while(0);d=c[d+4>>2]|0;if(d|0)if(d>>>0<(c[7688]|0)>>>0)ga();else{c[j+20>>2]=d;c[d+24>>2]=j;break}}}else{e=c[k+8>>2]|0;f=c[k+12>>2]|0;d=30776+(g<<1<<2)|0;if((e|0)!=(d|0)){if(e>>>0<i>>>0)ga();if((c[e+12>>2]|0)!=(k|0))ga()}if((f|0)==(e|0)){c[7684]=c[7684]&~(1<<g);break}if((f|0)!=(d|0)){if(f>>>0<i>>>0)ga();d=f+8|0;if((c[d>>2]|0)==(k|0))h=d;else ga()}else h=f+8|0;c[e+12>>2]=f;c[h>>2]=e}while(0);d=n&1;if(m>>>0<16){c[o>>2]=l|d|2;o=a+l+4|0;c[o>>2]=c[o>>2]|1;return a|0}else{n=a+b|0;c[o>>2]=d|b|2;c[n+4>>2]=m|3;o=n+m+4|0;c[o>>2]=c[o>>2]|1;of(n,m);return a|0}return 0}function of(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,l=0,m=0,n=0,o=0,p=0,q=0,r=0;o=a+b|0;d=c[a+4>>2]|0;a:do if(!(d&1)){g=c[a>>2]|0;if(!(d&3))return;l=a+(0-g)|0;k=g+b|0;i=c[7688]|0;if(l>>>0<i>>>0)ga();if((l|0)==(c[7689]|0)){a=o+4|0;d=c[a>>2]|0;if((d&3|0)!=3){r=l;f=k;break}c[7686]=k;c[a>>2]=d&-2;c[l+4>>2]=k|1;c[l+k>>2]=k;return}e=g>>>3;if(g>>>0<256){d=c[l+8>>2]|0;b=c[l+12>>2]|0;a=30776+(e<<1<<2)|0;if((d|0)!=(a|0)){if(d>>>0<i>>>0)ga();if((c[d+12>>2]|0)!=(l|0))ga()}if((b|0)==(d|0)){c[7684]=c[7684]&~(1<<e);r=l;f=k;break}if((b|0)!=(a|0)){if(b>>>0<i>>>0)ga();a=b+8|0;if((c[a>>2]|0)==(l|0))h=a;else ga()}else h=b+8|0;c[d+12>>2]=b;c[h>>2]=d;r=l;f=k;break}g=c[l+24>>2]|0;b=c[l+12>>2]|0;do if((b|0)==(l|0)){b=l+16|0;d=b+4|0;a=c[d>>2]|0;if(!a){a=c[b>>2]|0;if(!a){j=0;break}else d=b}while(1){b=a+20|0;e=c[b>>2]|0;if(e|0){a=e;d=b;continue}b=a+16|0;e=c[b>>2]|0;if(!e)break;else{a=e;d=b}}if(d>>>0<i>>>0)ga();else{c[d>>2]=0;j=a;break}}else{e=c[l+8>>2]|0;if(e>>>0<i>>>0)ga();a=e+12|0;if((c[a>>2]|0)!=(l|0))ga();d=b+8|0;if((c[d>>2]|0)==(l|0)){c[a>>2]=b;c[d>>2]=e;j=b;break}else ga()}while(0);if(g){a=c[l+28>>2]|0;d=31040+(a<<2)|0;do if((l|0)==(c[d>>2]|0)){c[d>>2]=j;if(!j){c[7685]=c[7685]&~(1<<a);r=l;f=k;break a}}else if(g>>>0>=(c[7688]|0)>>>0){c[g+16+(((c[g+16>>2]|0)!=(l|0)&1)<<2)>>2]=j;if(!j){r=l;f=k;break a}else break}else ga();while(0);b=c[7688]|0;if(j>>>0<b>>>0)ga();c[j+24>>2]=g;a=l+16|0;d=c[a>>2]|0;do if(d|0)if(d>>>0<b>>>0)ga();else{c[j+16>>2]=d;c[d+24>>2]=j;break}while(0);a=c[a+4>>2]|0;if(a)if(a>>>0<(c[7688]|0)>>>0)ga();else{c[j+20>>2]=a;c[a+24>>2]=j;r=l;f=k;break}else{r=l;f=k}}else{r=l;f=k}}else{r=a;f=b}while(0);h=c[7688]|0;if(o>>>0<h>>>0)ga();a=o+4|0;d=c[a>>2]|0;if(!(d&2)){a=c[7689]|0;if((o|0)==(c[7690]|0)){q=(c[7687]|0)+f|0;c[7687]=q;c[7690]=r;c[r+4>>2]=q|1;if((r|0)!=(a|0))return;c[7689]=0;c[7686]=0;return}if((o|0)==(a|0)){q=(c[7686]|0)+f|0;c[7686]=q;c[7689]=r;c[r+4>>2]=q|1;c[r+q>>2]=q;return}f=(d&-8)+f|0;e=d>>>3;b:do if(d>>>0>=256){g=c[o+24>>2]|0;b=c[o+12>>2]|0;do if((b|0)==(o|0)){b=o+16|0;d=b+4|0;a=c[d>>2]|0;if(!a){a=c[b>>2]|0;if(!a){n=0;break}else d=b}while(1){b=a+20|0;e=c[b>>2]|0;if(e|0){a=e;d=b;continue}b=a+16|0;e=c[b>>2]|0;if(!e)break;else{a=e;d=b}}if(d>>>0<h>>>0)ga();else{c[d>>2]=0;n=a;break}}else{e=c[o+8>>2]|0;if(e>>>0<h>>>0)ga();a=e+12|0;if((c[a>>2]|0)!=(o|0))ga();d=b+8|0;if((c[d>>2]|0)==(o|0)){c[a>>2]=b;c[d>>2]=e;n=b;break}else ga()}while(0);if(g|0){a=c[o+28>>2]|0;d=31040+(a<<2)|0;do if((o|0)==(c[d>>2]|0)){c[d>>2]=n;if(!n){c[7685]=c[7685]&~(1<<a);break b}}else if(g>>>0>=(c[7688]|0)>>>0){c[g+16+(((c[g+16>>2]|0)!=(o|0)&1)<<2)>>2]=n;if(!n)break b;else break}else ga();while(0);b=c[7688]|0;if(n>>>0<b>>>0)ga();c[n+24>>2]=g;a=o+16|0;d=c[a>>2]|0;do if(d|0)if(d>>>0<b>>>0)ga();else{c[n+16>>2]=d;c[d+24>>2]=n;break}while(0);a=c[a+4>>2]|0;if(a|0)if(a>>>0<(c[7688]|0)>>>0)ga();else{c[n+20>>2]=a;c[a+24>>2]=n;break}}}else{d=c[o+8>>2]|0;b=c[o+12>>2]|0;a=30776+(e<<1<<2)|0;if((d|0)!=(a|0)){if(d>>>0<h>>>0)ga();if((c[d+12>>2]|0)!=(o|0))ga()}if((b|0)==(d|0)){c[7684]=c[7684]&~(1<<e);break}if((b|0)!=(a|0)){if(b>>>0<h>>>0)ga();a=b+8|0;if((c[a>>2]|0)==(o|0))m=a;else ga()}else m=b+8|0;c[d+12>>2]=b;c[m>>2]=d}while(0);c[r+4>>2]=f|1;c[r+f>>2]=f;if((r|0)==(c[7689]|0)){c[7686]=f;return}}else{c[a>>2]=d&-2;c[r+4>>2]=f|1;c[r+f>>2]=f}a=f>>>3;if(f>>>0<256){b=30776+(a<<1<<2)|0;d=c[7684]|0;a=1<<a;if(d&a){a=b+8|0;d=c[a>>2]|0;if(d>>>0<(c[7688]|0)>>>0)ga();else{p=d;q=a}}else{c[7684]=d|a;p=b;q=b+8|0}c[q>>2]=r;c[p+12>>2]=r;c[r+8>>2]=p;c[r+12>>2]=b;return}a=f>>>8;if(a)if(f>>>0>16777215)a=31;else{p=(a+1048320|0)>>>16&8;q=a<<p;o=(q+520192|0)>>>16&4;q=q<<o;a=(q+245760|0)>>>16&2;a=14-(o|p|a)+(q<<a>>>15)|0;a=f>>>(a+7|0)&1|a<<1}else a=0;e=31040+(a<<2)|0;c[r+28>>2]=a;c[r+20>>2]=0;c[r+16>>2]=0;d=c[7685]|0;b=1<<a;if(!(d&b)){c[7685]=d|b;c[e>>2]=r;c[r+24>>2]=e;c[r+12>>2]=r;c[r+8>>2]=r;return}d=f<<((a|0)==31?0:25-(a>>>1)|0);e=c[e>>2]|0;while(1){if((c[e+4>>2]&-8|0)==(f|0)){a=121;break}b=e+16+(d>>>31<<2)|0;a=c[b>>2]|0;if(!a){a=118;break}else{d=d<<1;e=a}}if((a|0)==118){if(b>>>0<(c[7688]|0)>>>0)ga();c[b>>2]=r;c[r+24>>2]=e;c[r+12>>2]=r;c[r+8>>2]=r;return}else if((a|0)==121){a=e+8|0;d=c[a>>2]|0;q=c[7688]|0;if(!(d>>>0>=q>>>0&e>>>0>=q>>>0))ga();c[d+12>>2]=r;c[a>>2]=r;c[r+8>>2]=d;c[r+12>>2]=e;c[r+24>>2]=0;return}}function pf(){}function qf(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){D=b>>c;return a>>>c|(b&(1<<c)-1)<<32-c}D=(b|0)<0?-1:0;return b>>c-32|0}function rf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;d=b-d-(c>>>0>a>>>0|0)>>>0;return (D=d,a-c>>>0|0)|0}function sf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=a+c>>>0;return (D=b+d+(c>>>0<a>>>0|0)>>>0,c|0)|0}function tf(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;h=b+e|0;d=d&255;if((e|0)>=67){while(b&3){a[b>>0]=d;b=b+1|0}f=h&-4|0;g=f-64|0;i=d|d<<8|d<<16|d<<24;while((b|0)<=(g|0)){c[b>>2]=i;c[b+4>>2]=i;c[b+8>>2]=i;c[b+12>>2]=i;c[b+16>>2]=i;c[b+20>>2]=i;c[b+24>>2]=i;c[b+28>>2]=i;c[b+32>>2]=i;c[b+36>>2]=i;c[b+40>>2]=i;c[b+44>>2]=i;c[b+48>>2]=i;c[b+52>>2]=i;c[b+56>>2]=i;c[b+60>>2]=i;b=b+64|0}while((b|0)<(f|0)){c[b>>2]=i;b=b+4|0}}while((b|0)<(h|0)){a[b>>0]=d;b=b+1|0}return h-e|0}function uf(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){D=b>>>c;return a>>>c|(b&(1<<c)-1)<<32-c}D=0;return b>>>c-32|0}function vf(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){D=b<<c|(a&(1<<c)-1<<32-c)>>>32-c;return a<<c}D=a<<c-32;return 0}function wf(b){b=b|0;var c=0;c=a[n+(b&255)>>0]|0;if((c|0)<8)return c|0;c=a[n+(b>>8&255)>>0]|0;if((c|0)<8)return c+8|0;c=a[n+(b>>16&255)>>0]|0;if((c|0)<8)return c+16|0;return (a[n+(b>>>24)>>0]|0)+24|0}function xf(a,b,d,e,f){a=a|0;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;l=a;j=b;k=j;h=d;n=e;i=n;if(!k){g=(f|0)!=0;if(!i){if(g){c[f>>2]=(l>>>0)%(h>>>0);c[f+4>>2]=0}n=0;f=(l>>>0)/(h>>>0)>>>0;return (D=n,f)|0}else{if(!g){n=0;f=0;return (D=n,f)|0}c[f>>2]=a|0;c[f+4>>2]=b&0;n=0;f=0;return (D=n,f)|0}}g=(i|0)==0;do if(h){if(!g){g=(V(i|0)|0)-(V(k|0)|0)|0;if(g>>>0<=31){m=g+1|0;i=31-g|0;b=g-31>>31;h=m;a=l>>>(m>>>0)&b|k<<i;b=k>>>(m>>>0)&b;g=0;i=l<<i;break}if(!f){n=0;f=0;return (D=n,f)|0}c[f>>2]=a|0;c[f+4>>2]=j|b&0;n=0;f=0;return (D=n,f)|0}g=h-1|0;if(g&h|0){i=(V(h|0)|0)+33-(V(k|0)|0)|0;p=64-i|0;m=32-i|0;j=m>>31;o=i-32|0;b=o>>31;h=i;a=m-1>>31&k>>>(o>>>0)|(k<<m|l>>>(i>>>0))&b;b=b&k>>>(i>>>0);g=l<<p&j;i=(k<<p|l>>>(o>>>0))&j|l<<m&i-33>>31;break}if(f|0){c[f>>2]=g&l;c[f+4>>2]=0}if((h|0)==1){o=j|b&0;p=a|0|0;return (D=o,p)|0}else{p=wf(h|0)|0;o=k>>>(p>>>0)|0;p=k<<32-p|l>>>(p>>>0)|0;return (D=o,p)|0}}else{if(g){if(f|0){c[f>>2]=(k>>>0)%(h>>>0);c[f+4>>2]=0}o=0;p=(k>>>0)/(h>>>0)>>>0;return (D=o,p)|0}if(!l){if(f|0){c[f>>2]=0;c[f+4>>2]=(k>>>0)%(i>>>0)}o=0;p=(k>>>0)/(i>>>0)>>>0;return (D=o,p)|0}g=i-1|0;if(!(g&i)){if(f|0){c[f>>2]=a|0;c[f+4>>2]=g&k|b&0}o=0;p=k>>>((wf(i|0)|0)>>>0);return (D=o,p)|0}g=(V(i|0)|0)-(V(k|0)|0)|0;if(g>>>0<=30){b=g+1|0;i=31-g|0;h=b;a=k<<i|l>>>(b>>>0);b=k>>>(b>>>0);g=0;i=l<<i;break}if(!f){o=0;p=0;return (D=o,p)|0}c[f>>2]=a|0;c[f+4>>2]=j|b&0;o=0;p=0;return (D=o,p)|0}while(0);if(!h){k=i;j=0;i=0}else{m=d|0|0;l=n|e&0;k=sf(m|0,l|0,-1,-1)|0;d=D;j=i;i=0;do{e=j;j=g>>>31|j<<1;g=i|g<<1;e=a<<1|e>>>31|0;n=a>>>31|b<<1|0;rf(k|0,d|0,e|0,n|0)|0;p=D;o=p>>31|((p|0)<0?-1:0)<<1;i=o&1;a=rf(e|0,n|0,o&m|0,(((p|0)<0?-1:0)>>31|((p|0)<0?-1:0)<<1)&l|0)|0;b=D;h=h-1|0}while((h|0)!=0);k=j;j=0}h=0;if(f|0){c[f>>2]=a;c[f+4>>2]=b}o=(g|0)>>>31|(k|h)<<1|(h<<1|g>>>31)&0|j;p=(g<<1|0>>>31)&-2|i;return (D=o,p)|0}function yf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;j=b>>31|((b|0)<0?-1:0)<<1;i=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;f=d>>31|((d|0)<0?-1:0)<<1;e=((d|0)<0?-1:0)>>31|((d|0)<0?-1:0)<<1;h=rf(j^a|0,i^b|0,j|0,i|0)|0;g=D;a=f^j;b=e^i;return rf((xf(h,g,rf(f^c|0,e^d|0,f|0,e|0)|0,D,0)|0)^a|0,D^b|0,a|0,b|0)|0}function zf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=l;l=l+16|0;i=f|0;h=b>>31|((b|0)<0?-1:0)<<1;g=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;k=e>>31|((e|0)<0?-1:0)<<1;j=((e|0)<0?-1:0)>>31|((e|0)<0?-1:0)<<1;a=rf(h^a|0,g^b|0,h|0,g|0)|0;b=D;xf(a,b,rf(k^d|0,j^e|0,k|0,j|0)|0,D,i)|0;e=rf(c[i>>2]^h|0,c[i+4>>2]^g|0,h|0,g|0)|0;d=D;l=f;return (D=d,e)|0}function Af(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return xf(a,b,c,d,0)|0}function Bf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=a&65535;e=b&65535;c=S(e,f)|0;d=a>>>16;a=(c>>>16)+(S(e,d)|0)|0;e=b>>>16;b=S(e,f)|0;return (D=(a>>>16)+(S(e,d)|0)+(((a&65535)+b|0)>>>16)|0,a+b<<16|c&65535|0)|0}function Cf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;e=a;f=c;c=Bf(e,f)|0;a=D;return (D=(S(b,f)|0)+(S(d,e)|0)+a|a&0,c|0|0)|0}function Df(a){a=a|0;var b=0,d=0;d=a+15&-16|0;b=c[i>>2]|0;a=b+d|0;if((d|0)>0&(a|0)<(b|0)|(a|0)<0){_()|0;ha(12);return -1}c[i>>2]=a;if((a|0)>(Z()|0)?(Y()|0)==0:0){ha(12);c[i>>2]=b;return -1}return b|0}function Ef(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if((e|0)>=8192)return ma(b|0,d|0,e|0)|0;h=b|0;g=b+e|0;if((b&3)==(d&3)){while(b&3){if(!e)return h|0;a[b>>0]=a[d>>0]|0;b=b+1|0;d=d+1|0;e=e-1|0}e=g&-4|0;f=e-64|0;while((b|0)<=(f|0)){c[b>>2]=c[d>>2];c[b+4>>2]=c[d+4>>2];c[b+8>>2]=c[d+8>>2];c[b+12>>2]=c[d+12>>2];c[b+16>>2]=c[d+16>>2];c[b+20>>2]=c[d+20>>2];c[b+24>>2]=c[d+24>>2];c[b+28>>2]=c[d+28>>2];c[b+32>>2]=c[d+32>>2];c[b+36>>2]=c[d+36>>2];c[b+40>>2]=c[d+40>>2];c[b+44>>2]=c[d+44>>2];c[b+48>>2]=c[d+48>>2];c[b+52>>2]=c[d+52>>2];c[b+56>>2]=c[d+56>>2];c[b+60>>2]=c[d+60>>2];b=b+64|0;d=d+64|0}while((b|0)<(e|0)){c[b>>2]=c[d>>2];b=b+4|0;d=d+4|0}}else{e=g-4|0;while((b|0)<(e|0)){a[b>>0]=a[d>>0]|0;a[b+1>>0]=a[d+1>>0]|0;a[b+2>>0]=a[d+2>>0]|0;a[b+3>>0]=a[d+3>>0]|0;b=b+4|0;d=d+4|0}}while((b|0)<(g|0)){a[b>>0]=a[d>>0]|0;b=b+1|0;d=d+1|0}return h|0}function Ff(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if((c|0)<(b|0)&(b|0)<(c+d|0)){e=b;c=c+d|0;b=b+d|0;while((d|0)>0){b=b-1|0;c=c-1|0;d=d-1|0;a[b>>0]=a[c>>0]|0}b=e}else Ef(b,c,d)|0;return b|0}function Gf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;g=l;l=l+16|0;f=g|0;xf(a,b,d,e,f)|0;l=g;return (D=c[f+4>>2]|0,c[f>>2]|0)|0}function Hf(a){a=a|0;return (a&255)<<24|(a>>8&255)<<16|(a>>16&255)<<8|a>>>24|0}function If(a,b){a=a|0;b=b|0;return ta[a&3](b|0)|0}function Jf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ua[a&7](b|0,c|0,d|0)|0}function Kf(a,b,c,d,e,f,g){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;va[a&1](b|0,c|0,d|0,e|0,f|0,g|0)}function Lf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return wa[a&1](b|0,c|0,d|0,e|0)|0}function Mf(a,b,c,d,e,f,g,h,i){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;return xa[a&0](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)|0}function Nf(a){a=a|0;W(0);return 0}function Of(a,b,c){a=a|0;b=b|0;c=c|0;W(1);return 0}function Pf(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;W(2)}function Qf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;W(3);return 0}function Rf(a,b,c,d,e,f,g,h){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;W(4);return 0}
// EMSCRIPTEN_END_FUNCS
var ta=[Nf,rb,Pe,Wd];var ua=[Of,pb,Xd,Yd,be,de,Of,Of];var va=[Pf,Rd];var wa=[Qf,qb];var xa=[Rf];return{_memset:tf,_bitshift64Lshr:uf,_opustowav:Td,_fflush:Te,_bitshift64Ashr:qf,_llvm_cttz_i32:wf,_sbrk:Df,_memcpy:Ef,_llvm_bswap_i32:Hf,___muldi3:Cf,_bitshift64Shl:vf,___uremdi3:Gf,___divdi3:yf,_i64Subtract:rf,___udivmoddi4:xf,_i64Add:sf,_emscripten_get_global_libc:ee,___remdi3:zf,___udivdi3:Af,___errno_location:_d,___muldsi3:Bf,_free:lf,_memmove:Ff,_malloc:kf,runPostSets:pf,stackAlloc:ya,stackSave:za,stackRestore:Aa,establishStackSpace:Ba,setTempRet0:Da,getTempRet0:Ea,setThrew:Ca,stackAlloc:ya,stackSave:za,stackRestore:Aa,establishStackSpace:Ba,setThrew:Ca,setTempRet0:Da,getTempRet0:Ea,dynCall_ii:If,dynCall_iiii:Jf,dynCall_viiiiii:Kf,dynCall_iiiii:Lf,dynCall_iiiiiiiii:Mf}})
// EMSCRIPTEN_END_ASM
(Module.asmGlobalArg,Module.asmLibraryArg,buffer);var stackSave=Module["stackSave"]=asm["stackSave"];var getTempRet0=Module["getTempRet0"]=asm["getTempRet0"];var _memset=Module["_memset"]=asm["_memset"];var setThrew=Module["setThrew"]=asm["setThrew"];var _bitshift64Lshr=Module["_bitshift64Lshr"]=asm["_bitshift64Lshr"];var _bitshift64Shl=Module["_bitshift64Shl"]=asm["_bitshift64Shl"];var _fflush=Module["_fflush"]=asm["_fflush"];var _bitshift64Ashr=Module["_bitshift64Ashr"]=asm["_bitshift64Ashr"];var _llvm_cttz_i32=Module["_llvm_cttz_i32"]=asm["_llvm_cttz_i32"];var _sbrk=Module["_sbrk"]=asm["_sbrk"];var _memcpy=Module["_memcpy"]=asm["_memcpy"];var _llvm_bswap_i32=Module["_llvm_bswap_i32"]=asm["_llvm_bswap_i32"];var ___muldi3=Module["___muldi3"]=asm["___muldi3"];var _opustowav=Module["_opustowav"]=asm["_opustowav"];var ___uremdi3=Module["___uremdi3"]=asm["___uremdi3"];var ___divdi3=Module["___divdi3"]=asm["___divdi3"];var stackAlloc=Module["stackAlloc"]=asm["stackAlloc"];var _i64Subtract=Module["_i64Subtract"]=asm["_i64Subtract"];var ___udivmoddi4=Module["___udivmoddi4"]=asm["___udivmoddi4"];var setTempRet0=Module["setTempRet0"]=asm["setTempRet0"];var _i64Add=Module["_i64Add"]=asm["_i64Add"];var _emscripten_get_global_libc=Module["_emscripten_get_global_libc"]=asm["_emscripten_get_global_libc"];var ___remdi3=Module["___remdi3"]=asm["___remdi3"];var ___udivdi3=Module["___udivdi3"]=asm["___udivdi3"];var ___errno_location=Module["___errno_location"]=asm["___errno_location"];var ___muldsi3=Module["___muldsi3"]=asm["___muldsi3"];var _free=Module["_free"]=asm["_free"];var runPostSets=Module["runPostSets"]=asm["runPostSets"];var establishStackSpace=Module["establishStackSpace"]=asm["establishStackSpace"];var _memmove=Module["_memmove"]=asm["_memmove"];var stackRestore=Module["stackRestore"]=asm["stackRestore"];var _malloc=Module["_malloc"]=asm["_malloc"];var dynCall_ii=Module["dynCall_ii"]=asm["dynCall_ii"];var dynCall_iiii=Module["dynCall_iiii"]=asm["dynCall_iiii"];var dynCall_viiiiii=Module["dynCall_viiiiii"]=asm["dynCall_viiiiii"];var dynCall_iiiii=Module["dynCall_iiiii"]=asm["dynCall_iiiii"];var dynCall_iiiiiiiii=Module["dynCall_iiiiiiiii"]=asm["dynCall_iiiiiiiii"];Runtime.stackAlloc=Module["stackAlloc"];Runtime.stackSave=Module["stackSave"];Runtime.stackRestore=Module["stackRestore"];Runtime.establishStackSpace=Module["establishStackSpace"];Runtime.setTempRet0=Module["setTempRet0"];Runtime.getTempRet0=Module["getTempRet0"];Module["asm"]=asm;if(memoryInitializer){if(typeof Module["locateFile"]==="function"){memoryInitializer=Module["locateFile"](memoryInitializer)}else if(Module["memoryInitializerPrefixURL"]){memoryInitializer=Module["memoryInitializerPrefixURL"]+memoryInitializer}if(ENVIRONMENT_IS_NODE||ENVIRONMENT_IS_SHELL){var data=Module["readBinary"](memoryInitializer);HEAPU8.set(data,Runtime.GLOBAL_BASE)}else{addRunDependency("memory initializer");var applyMemoryInitializer=(function(data){if(data.byteLength)data=new Uint8Array(data);HEAPU8.set(data,Runtime.GLOBAL_BASE);if(Module["memoryInitializerRequest"])delete Module["memoryInitializerRequest"].response;removeRunDependency("memory initializer")});function doBrowserLoad(){Module["readAsync"](memoryInitializer,applyMemoryInitializer,(function(){throw"could not load memory initializer "+memoryInitializer}))}if(Module["memoryInitializerRequest"]){function useRequest(){var request=Module["memoryInitializerRequest"];if(request.status!==200&&request.status!==0){console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: "+request.status+", retrying "+memoryInitializer);doBrowserLoad();return}applyMemoryInitializer(request.response)}if(Module["memoryInitializerRequest"].response){setTimeout(useRequest,0)}else{Module["memoryInitializerRequest"].addEventListener("load",useRequest)}}else{doBrowserLoad()}}}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){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{var toLog=e;if(e&&typeof e==="object"&&e.stack){toLog=[e,e.stack]}Module.printErr("exception thrown: "+toLog);Module["quit"](1,e)}}finally{calledMain=true}};function run(args){args=args||Module["arguments"];if(preloadStartTime===null)preloadStartTime=Date.now();if(runDependencies>0){return}preRun();if(runDependencies>0)return;if(Module["calledRun"])return;function doRun(){if(Module["calledRun"])return;Module["calledRun"]=true;if(ABORT)return;ensureInitRuntime();preMain();if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();if(Module["_main"]&&shouldRunNow)Module["callMain"](args);postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout((function(){setTimeout((function(){Module["setStatus"]("")}),1);doRun()}),1)}else{doRun()}}Module["run"]=Module.run=run;function exit(status,implicit){if(implicit&&Module["noExitRuntime"]){return}if(Module["noExitRuntime"]){}else{ABORT=true;EXITSTATUS=status;STACKTOP=initialStackTop;exitRuntime();if(Module["onExit"])Module["onExit"](status)}if(ENVIRONMENT_IS_NODE){process["exit"](status)}Module["quit"](status,new ExitStatus(status))}Module["exit"]=Module.exit=exit;var abortDecorators=[];function abort(what){if(what!==undefined){Module.print(what);Module.printErr(what);what=JSON.stringify(what)}else{what=""}ABORT=true;EXITSTATUS=1;var extra="\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.";var output="abort("+what+") at "+stackTrace()+extra;if(abortDecorators){abortDecorators.forEach((function(decorator){output=decorator(output,what)}))}throw output}Module["abort"]=Module.abort=abort;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}var shouldRunNow=true;if(Module["noInitialRun"]){shouldRunNow=false}run()