78f2efe0e4
Also adjust the test runner to remove --always-opt for FAST_VARIANTS. R=machenbach@chromium.org Review URL: https://codereview.chromium.org/1056423004 Cr-Commit-Position: refs/heads/master@{#27989}
19 lines
1.3 MiB
19 lines
1.3 MiB
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_NODE=typeof process==="object"&&typeof require==="function";var ENVIRONMENT_IS_WEB=typeof window==="object";var ENVIRONMENT_IS_WORKER=typeof importScripts==="function";var ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;if(ENVIRONMENT_IS_NODE){if(!Module["print"])Module["print"]=function print(x){process["stdout"].write(x+"\n")};if(!Module["printErr"])Module["printErr"]=function printErr(x){process["stderr"].write(x+"\n")};var nodeFS=require("fs");var nodePath=require("path");Module["read"]=function read(filename,binary){filename=nodePath["normalize"](filename);var ret=nodeFS["readFileSync"](filename);if(!ret&&filename!=nodePath["resolve"](filename)){filename=path.join(__dirname,"..","src",filename);ret=nodeFS["readFileSync"](filename)}if(ret&&!binary)ret=ret.toString();return ret};Module["readBinary"]=function readBinary(filename){return Module["read"](filename,true)};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}}))}else if(ENVIRONMENT_IS_SHELL){if(!Module["print"])Module["print"]=print;if(typeof printErr!="undefined")Module["printErr"]=printErr;if(typeof read!="undefined"){Module["read"]=read}else{Module["read"]=function read(){throw"no read() available (jsc?)"}}Module["readBinary"]=function readBinary(f){if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}var data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){Module["arguments"]=scriptArgs}else if(typeof arguments!="undefined"){Module["arguments"]=arguments}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){Module["read"]=function read(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};if(typeof arguments!="undefined"){Module["arguments"]=arguments}if(typeof console!=="undefined"){if(!Module["print"])Module["print"]=function print(x){console.log(x)};if(!Module["printErr"])Module["printErr"]=function printErr(x){console.log(x)}}else{var TRY_USE_DUMP=false;if(!Module["print"])Module["print"]=TRY_USE_DUMP&&typeof dump!=="undefined"?(function(x){dump(x)}):(function(x){})}if(ENVIRONMENT_IS_WORKER){Module["load"]=importScripts}if(typeof Module["setWindowTitle"]==="undefined"){Module["setWindowTitle"]=(function(title){document.title=title})}}else{throw"Unknown runtime environment. Where are we?"}function globalEval(x){eval.call(null,x)}if(!Module["load"]&&Module["read"]){Module["load"]=function load(f){globalEval(Module["read"](f))}}if(!Module["print"]){Module["print"]=(function(){})}if(!Module["printErr"]){Module["printErr"]=Module["print"]}if(!Module["arguments"]){Module["arguments"]=[]}if(!Module["thisProgram"]){Module["thisProgram"]="./this.program"}Module.print=Module["print"];Module.printErr=Module["printErr"];Module["preRun"]=[];Module["postRun"]=[];for(var key in moduleOverrides){if(moduleOverrides.hasOwnProperty(key)){Module[key]=moduleOverrides[key]}}var Runtime={setTempRet0:(function(value){tempRet0=value}),getTempRet0:(function(){return tempRet0}),stackSave:(function(){return STACKTOP}),stackRestore:(function(stackTop){STACKTOP=stackTop}),getNativeTypeSize:(function(type){switch(type){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:{if(type[type.length-1]==="*"){return Runtime.QUANTUM_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,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){assert(args.length==sig.length-1);if(!args.splice)args=Array.prototype.slice.call(args);args.splice(0,0,ptr);assert("dynCall_"+sig in Module,"bad function pointer type - no table for sig '"+sig+"'");return Module["dynCall_"+sig].apply(null,args)}else{assert(sig.length==1);assert("dynCall_"+sig in Module,"bad function pointer type - no table for sig '"+sig+"'");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}),getAsmConst:(function(code,numArgs){if(!Runtime.asmConstCache)Runtime.asmConstCache={};var func=Runtime.asmConstCache[code];if(func)return func;var args=[];for(var i=0;i<numArgs;i++){args.push(String.fromCharCode(36)+i)}var source=Pointer_stringify(code);if(source[0]==='"'){if(source.indexOf('"',1)===source.length-1){source=source.substr(1,source.length-2)}else{abort("invalid EM_ASM input |"+source+"|. Please use EM_ASM(..code..) (no quotes) or EM_ASM({ ..code($0).. }, input) (to input values)")}}try{var evalled=eval("(function(Module, FS) { return function("+args.join(",")+"){ "+source+" } })")(Module,typeof FS!=="undefined"?FS:null)}catch(e){Module.printErr("error in executing inline EM_ASM code: "+e+" on: \n\n"+source+"\n\nwith args |"+args+"| (make sure to use the right one out of EM_ASM, EM_ASM_ARGS, etc.)");throw e}return Runtime.asmConstCache[code]=evalled}),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]){sigCache[func]=function dynCall_wrapper(){return Runtime.dynCall(sig,func,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;assert((STACKTOP|0)<(STACK_MAX|0)|0)|0;return ret}),staticAlloc:(function(size){var ret=STATICTOP;STATICTOP=STATICTOP+(assert(!staticSealed),size)|0;STATICTOP=STATICTOP+15&-16;return ret}),dynamicAlloc:(function(size){var ret=DYNAMICTOP;DYNAMICTOP=DYNAMICTOP+(assert(DYNAMICTOP>0),size)|0;DYNAMICTOP=DYNAMICTOP+15&-16;if(DYNAMICTOP>=TOTAL_MEMORY){var success=enlargeMemory();if(!success)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 __THREW__=0;var ABORT=false;var EXITSTATUS=0;var undef=0;var tempValue,tempInt,tempBigInt,tempInt2,tempBigInt2,tempPair,tempBigIntI,tempBigIntR,tempBigIntS,tempBigIntP,tempBigIntD,tempDouble,tempFloat;var tempI64,tempI64b;var tempRet0,tempRet1,tempRet2,tempRet3,tempRet4,tempRet5,tempRet6,tempRet7,tempRet8,tempRet9;function assert(condition,text){if(!condition){abort("Assertion failed: "+text)}}var globalScope=this;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){ret=Runtime.stackAlloc((str.length<<2)+1);writeStringToMemory(str,ret)}return ret})};var toC={"string":JSfuncs["stringToC"],"array":JSfuncs["arrayToC"]};ccall=function ccallFunc(ident,returnType,argTypes,args){var func=getCFunc(ident);var cArgs=[];var stack=0;assert(returnType!=="array",'Return type should not be "array".');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)Runtime.stackRestore(stack);return ret};var sourceRegex=/^function\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={};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){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){funcstr+=JSsource["stackRestore"].body.replace("()","(stack)")+";"}funcstr+="return ret})";return eval(funcstr)}}))();Module["cwrap"]=cwrap;Module["ccall"]=ccall;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=[_malloc,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}assert(type,"Must know what type to store in allocate!");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 Pointer_stringify(ptr,length){if(length===0||!ptr)return"";var hasUtf=0;var t;var i=0;while(1){assert(ptr+i<TOTAL_MEMORY);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;function UTF8ArrayToString(u8Array,idx){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){assert(typeof maxBytesToWrite=="number","stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!");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;function UTF16ToString(ptr){var i=0;var str="";while(1){var codeUnit=HEAP16[ptr+i*2>>1];if(codeUnit==0)return str;++i;str+=String.fromCharCode(codeUnit)}}Module["UTF16ToString"]=UTF16ToString;function stringToUTF16(str,outPtr,maxBytesToWrite){assert(typeof maxBytesToWrite=="number","stringToUTF16(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!");if(maxBytesToWrite===undefined){maxBytesToWrite=2147483647}if(maxBytesToWrite<2)return 0;maxBytesToWrite-=2;var startPtr=outPtr;var numCharsToWrite=maxBytesToWrite<str.length*2?maxBytesToWrite/2:str.length;for(var i=0;i<numCharsToWrite;++i){var codeUnit=str.charCodeAt(i);HEAP16[outPtr>>1]=codeUnit;outPtr+=2}HEAP16[outPtr>>1]=0;return outPtr-startPtr}Module["stringToUTF16"]=stringToUTF16;function lengthBytesUTF16(str){return str.length*2}Module["lengthBytesUTF16"]=lengthBytesUTF16;function UTF32ToString(ptr){var i=0;var str="";while(1){var utf32=HEAP32[ptr+i*4>>2];if(utf32==0)return str;++i;if(utf32>=65536){var ch=utf32-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}else{str+=String.fromCharCode(utf32)}}}Module["UTF32ToString"]=UTF32ToString;function stringToUTF32(str,outPtr,maxBytesToWrite){assert(typeof maxBytesToWrite=="number","stringToUTF32(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!");if(maxBytesToWrite===undefined){maxBytesToWrite=2147483647}if(maxBytesToWrite<4)return 0;var startPtr=outPtr;var endPtr=startPtr+maxBytesToWrite-4;for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);if(codeUnit>=55296&&codeUnit<=57343){var trailSurrogate=str.charCodeAt(++i);codeUnit=65536+((codeUnit&1023)<<10)|trailSurrogate&1023}HEAP32[outPtr>>2]=codeUnit;outPtr+=4;if(outPtr+4>endPtr)break}HEAP32[outPtr>>2]=0;return outPtr-startPtr}Module["stringToUTF32"]=stringToUTF32;function lengthBytesUTF32(str){var len=0;for(var i=0;i<str.length;++i){var codeUnit=str.charCodeAt(i);if(codeUnit>=55296&&codeUnit<=57343)++i;len+=4}return len}Module["lengthBytesUTF32"]=lengthBytesUTF32;function demangle(func){var hasLibcxxabi=!!Module["___cxa_demangle"];if(hasLibcxxabi){try{var buf=_malloc(func.length);writeStringToMemory(func.substr(1),buf);var status=_malloc(4);var ret=Module["___cxa_demangle"](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)}}var i=3;var basicTypes={"v":"void","b":"bool","c":"char","s":"short","i":"int","l":"long","f":"float","d":"double","w":"wchar_t","a":"signed char","h":"unsigned char","t":"unsigned short","j":"unsigned int","m":"unsigned long","x":"long long","y":"unsigned long long","z":"..."};var subs=[];var first=true;function dump(x){if(x)Module.print(x);Module.print(func);var pre="";for(var a=0;a<i;a++)pre+=" ";Module.print(pre+"^")}function parseNested(){i++;if(func[i]==="K")i++;var parts=[];while(func[i]!=="E"){if(func[i]==="S"){i++;var next=func.indexOf("_",i);var num=func.substring(i,next)||0;parts.push(subs[num]||"?");i=next+1;continue}if(func[i]==="C"){parts.push(parts[parts.length-1]);i+=2;continue}var size=parseInt(func.substr(i));var pre=size.toString().length;if(!size||!pre){i--;break}var curr=func.substr(i+pre,size);parts.push(curr);subs.push(curr);i+=pre+size}i++;return parts}function parse(rawList,limit,allowVoid){limit=limit||Infinity;var ret="",list=[];function flushList(){return"("+list.join(", ")+")"}var name;if(func[i]==="N"){name=parseNested().join("::");limit--;if(limit===0)return rawList?[name]:name}else{if(func[i]==="K"||first&&func[i]==="L")i++;var size=parseInt(func.substr(i));if(size){var pre=size.toString().length;name=func.substr(i+pre,size);i+=pre+size}}first=false;if(func[i]==="I"){i++;var iList=parse(true);var iRet=parse(true,1,true);ret+=iRet[0]+" "+name+"<"+iList.join(", ")+">"}else{ret=name}paramLoop:while(i<func.length&&limit-->0){var c=func[i++];if(c in basicTypes){list.push(basicTypes[c])}else{switch(c){case"P":list.push(parse(true,1,true)[0]+"*");break;case"R":list.push(parse(true,1,true)[0]+"&");break;case"L":{i++;var end=func.indexOf("E",i);var size=end-i;list.push(func.substr(i,size));i+=size+2;break};case"A":{var size=parseInt(func.substr(i));i+=size.toString().length;if(func[i]!=="_")throw"?";i++;list.push(parse(true,1,true)[0]+" ["+size+"]");break};case"E":break paramLoop;default:ret+="?"+c;break paramLoop}}}if(!allowVoid&&list.length===1&&list[0]==="void")list=[];if(rawList){if(ret){list.push(ret+"?")}return list}else{return ret+flushList()}}var parsed=func;try{if(func=="Object._main"||func=="_main"){return"main()"}if(typeof func==="number")func=Pointer_stringify(func);if(func[0]!=="_")return func;if(func[1]!=="_")return func;if(func[2]!=="Z")return func;switch(func[3]){case"n":return"operator new()";case"d":return"operator delete()"}parsed=parse()}catch(e){parsed+="?"}if(parsed.indexOf("?")>=0&&!hasLibcxxabi){Runtime.warnOnce("warning: a problem occurred in builtin C++ name demangling; build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling")}return parsed}function demangleAll(text){return text.replace(/__Z[\w\d_]+/g,(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(){return demangleAll(jsStackTrace())}Module["stackTrace"]=stackTrace;var PAGE_SIZE=4096;function alignMemoryPage(x){if(x%4096>0){x+=4096-x%4096}return x}var HEAP;var HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;var STATIC_BASE=0,STATICTOP=0,staticSealed=false;var STACK_BASE=0,STACKTOP=0,STACK_MAX=0;var DYNAMIC_BASE=0,DYNAMICTOP=0;function enlargeMemory(){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 ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.")}var TOTAL_STACK=Module["TOTAL_STACK"]||5242880;var TOTAL_MEMORY=Module["TOTAL_MEMORY"]||16777216;var totalMemory=64*1024;while(totalMemory<TOTAL_MEMORY||totalMemory<2*TOTAL_STACK){totalMemory*=2}assert(typeof Int32Array!=="undefined"&&typeof Float64Array!=="undefined"&&!!(new Int32Array(1))["subarray"]&&!!(new Int32Array(1))["set"],"JS engine does not provide full typed array support");var buffer=new ArrayBuffer(TOTAL_MEMORY+16777216);HEAP8=new Int8Array(buffer);HEAP16=new Int16Array(buffer);HEAP32=new Int32Array(buffer);HEAPU8=new Uint8Array(buffer);HEAPU16=new Uint16Array(buffer);HEAPU32=new Uint32Array(buffer);HEAPF32=new Float32Array(buffer);HEAPF64=new Float64Array(buffer);HEAP32[0]=255;assert(HEAPU8[0]===255&&HEAPU8[3]===0,"Typed arrays 2 must be run on a little-endian system");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){Runtime.dynCall("v",func)}else{Runtime.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"]=Module.addOnPreRun=addOnPreRun;function addOnInit(cb){__ATINIT__.unshift(cb)}Module["addOnInit"]=Module.addOnInit=addOnInit;function addOnPreMain(cb){__ATMAIN__.unshift(cb)}Module["addOnPreMain"]=Module.addOnPreMain=addOnPreMain;function addOnExit(cb){__ATEXIT__.unshift(cb)}Module["addOnExit"]=Module.addOnExit=addOnExit;function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}Module["addOnPostRun"]=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){assert(false,"Character code "+chr+" ("+String.fromCharCode(chr)+") at offset "+i+" not in 0x00-0xFF.");chr&=255}ret.push(String.fromCharCode(chr))}return ret.join("")}Module["intArrayToString"]=intArrayToString;function writeStringToMemory(string,buffer,dontAddNull){var array=intArrayFromString(string,dontAddNull);var i=0;while(i<array.length){var chr=array[i];HEAP8[buffer+i>>0]=chr;i=i+1}}Module["writeStringToMemory"]=writeStringToMemory;function writeArrayToMemory(array,buffer){for(var i=0;i<array.length;i++){HEAP8[buffer++>>0]=array[i]}}Module["writeArrayToMemory"]=writeArrayToMemory;function writeAsciiToMemory(str,buffer,dontAddNull){for(var i=0;i<str.length;++i){assert(str.charCodeAt(i)===str.charCodeAt(i)&255);HEAP8[buffer++>>0]=str.charCodeAt(i)}if(!dontAddNull)HEAP8[buffer>>0]=0}Module["writeAsciiToMemory"]=writeAsciiToMemory;function unSign(value,bits,ignore){if(value>=0){return value}return bits<=32?2*Math.abs(1<<bits-1)+value:Math.pow(2,bits)+value}function reSign(value,bits,ignore){if(value<=0){return value}var half=bits<=32?Math.abs(1<<bits-1):Math.pow(2,bits-1);if(value>=half&&(bits<=32||value>half)){value=-2*half+value}return value}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"];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_min=Math.min;var Math_clz32=Math.clz32;var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;var runDependencyTracking={};function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(id){assert(!runDependencyTracking[id]);runDependencyTracking[id]=1;if(runDependencyWatcher===null&&typeof setInterval!=="undefined"){runDependencyWatcher=setInterval((function(){if(ABORT){clearInterval(runDependencyWatcher);runDependencyWatcher=null;return}var shown=false;for(var dep in runDependencyTracking){if(!shown){shown=true;Module.printErr("still waiting on run dependencies:")}Module.printErr("dependency: "+dep)}if(shown){Module.printErr("(end of list)")}}),1e4)}}else{Module.printErr("warning: run dependency added without ID")}}Module["addRunDependency"]=addRunDependency;function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(id){assert(runDependencyTracking[id]);delete runDependencyTracking[id]}else{Module.printErr("warning: run dependency removed without ID")}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;STATIC_BASE=8;STATICTOP=STATIC_BASE+49568;__ATINIT__.push();allocate([32,0,0,0,88,0,0,0,168,0,0,0,224,0,0,0,0,1,0,0,0,0,0,0,67,82,69,65,84,69,32,84,65,66,76,69,32,116,49,40,97,32,73,78,84,69,71,69,82,44,32,98,32,73,78,84,69,71,69,82,44,32,99,32,86,65,82,67,72,65,82,40,49,48,48,41,41,59,0,0,73,78,83,69,82,84,32,73,78,84,79,32,116,49,32,86,65,76,85,69,83,40,49,44,49,51,49,53,51,44,39,116,104,105,114,116,101,101,110,32,116,104,111,117,115,97,110,100,32,111,110,101,32,104,117,110,100,114,101,100,32,102,105,102,116,121,32,116,104,114,101,101,39,41,59,0,0,0,0,0,73,78,83,69,82,84,32,73,78,84,79,32,116,49,32,86,65,76,85,69,83,40,49,44,57,56,55,44,39,115,111,109,101,32,111,116,104,101,114,32,110,117,109,98,101,114,39,41,59,0,0,0,0,0,0,0,83,69,76,69,67,84,32,99,111,117,110,116,40,42,41,32,70,82,79,77,32,116,49,59,0,0,0,0,0,0,0,0,83,69,76,69,67,84,32,97,44,32,98,44,32,99,32,70,82,79,77,32,116,49,59],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE);allocate([114,99,32,61,61,32,83,81,76,73,84,69,95,79,75,0,116,101,115,116,46,99,0,0,116,101,115,116,49,0,0,0,99,111,117,110,116,40,42,41,61,50,97,61,49,98,61,49,51,49,53,51,99,61,116,104,105,114,116,101,101,110,32,116,104,111,117,115,97,110,100,32,111,110,101,32,104,117,110,100,114,101,100,32,102,105,102,116,121,32,116,104,114,101,101,97,61,49,98,61,57,56,55,99,61,115,111,109,101,32,111,116,104,101,114,32,110,117,109,98,101,114,0,0,0,0,0,0,115,116,114,99,109,112,40,98,117,102,102,101,114,44,32,69,88,80,69,67,84,69,68,41,32,61,61,32,48,0,0,0,51,46,56,46,57,0,0,0,83,81,76,73,84,69,95,0,104,191,0,0,120,191,0,0,136,191,0,0,152,191,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,254,255,255,127,0,0,0,0,128,0,0,0,244,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,250,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,3,0,0,0,44,0,0,0,0,2,0,0,0,0,0,0,208,38,0,0,216,38,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,3,0,0,0,44,0,0,0,0,2,0,0,0,0,0,0,224,38,0,0,240,38,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,3,0,0,0,44,0,0,0,0,2,0,0,0,0,0,0,248,38,0,0,8,39,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,3,0,0,0,44,0,0,0,0,2,0,0,0,0,0,0,16,39,0,0,216,38,0,0,1,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,3,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,5,0,0,0,6,0,0,0,117,110,105,120,0,0,0,0,7,0,0,0,0,0,0,0,117,110,105,120,45,110,111,110,101,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,117,110,105,120,45,100,111,116,102,105,108,101,0,0,0,0,9,0,0,0,0,0,0,0,117,110,105,120,45,101,120,99,108,0,0,0,0,0,0,0,115,111,117,114,99,101,32,97,110,100,32,100,101,115,116,105,110,97,116,105,111,110,32,109,117,115,116,32,98,101,32,100,105,115,116,105,110,99,116,0,0,0,0,64,0,0,0,0,4,5,3,5,1,5,1,5,2,5,2,5,1,5,1,5,4,5,3,5,1,5,1,5,2,5,2,5,1,5,1,5,115,116,114,105,110,103,32,111,114,32,98,108,111,98,32,116,111,111,32,98,105,103,0,0,145,0,0,0,54,0,0,0,55,0,0,0,31,1,1,1,70,0,10,1,47,0,0,1,35,1,0,0,16,0,4,0,61,0,0,0,24,0,0,0,99,97,110,110,111,116,32,111,112,101,110,32,118,105,114,116,117,97,108,32,116,97,98,108,101,58,32,37,115,0,0,0,99,97,110,110,111,116,32,111,112,101,110,32,116,97,98,108,101,32,119,105,116,104,111,117,116,32,114,111,119,105,100,58,32,37,115,0,0,0,0,0,99,97,110,110,111,116,32,111,112,101,110,32,118,105,101,119,58,32,37,115,0,0,0,0,110,111,32,115,117,99,104,32,99,111,108,117,109,110,58,32,34,37,115,34,0,0,0,0,102,111,114,101,105,103,110,32,107,101,121,0,0,0,0,0,105,110,100,101,120,101,100,0,99,97,110,110,111,116,32,111,112,101,110,32,37,115,32,99,111,108,117,109,110,32,102,111,114,32,119,114,105,116,105,110,103,0,0,0,0,0,0,0,37,115,0,0,0,0,0,0,42,63,91,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,12,12,12,12,12,12,12,12,12,12,0,0,0,0,0,0,0,10,10,10,10,10,10,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,64,0,42,42,42,42,42,42,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,0,0,0,0,0,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,4,3,2,5,0,0,0,1,0,2,3,4,2,2,2,1,1,2,3,4,2,2,2,1,2,2,2,2,2,2,2,1,3,3,2,4,2,2,2,1,4,2,2,2,4,5,2,6,5,5,5,5,5,5,5,6,6,5,5,5,5,5,7,1,7,5,5,5,5,5,5,99,114,101,97,116,101,0,0,116,114,105,103,103,101,114,0,116,101,109,112,0,0,0,0,116,101,109,112,111,114,97,114,121,0,0,0,0,0,0,0,101,110,100,0,0,0,0,0,101,120,112,108,97,105,110,0,50,48,49,53,45,48,52,45,48,56,32,49,50,58,49,54,58,51,51,32,56,97,56,102,102,99,56,54,50,101,57,54,102,53,55,97,97,54,57,56,102,57,51,100,101,49,48,100,101,101,50,56,101,54,57,102,54,101,48,57,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,234,3,0,0,0,0,8,0,235,3,0,0,0,0,128,0,117,110,107,110,111,119,110,32,100,97,116,97,98,97,115,101,58,32,37,115,0,0,0,0,111,0,117,0,116,0,32,0,111,0,102,0,32,0,109,0,101,0,109,0,111,0,114,0,121,0,0,0,0,0,0,0,108,0,105,0,98,0,114,0,97,0,114,0,121,0,32,0,114,0,111,0,117,0,116,0,105,0,110,0,101,0,32,0,99,0,97,0,108,0,108,0,101,0,100,0,32,0,111,0,117,0,116,0,32,0,111,0,102,0,32,0,115,0,101,0,113,0,117,0,101,0,110,0,99,0,101,0,0,0,0,0,0,202,154,59,0,202,154,59,208,7,0,0,232,3,0,0,244,1,0,0,168,97,0,0,127,0,0,0,10,0,0,0,80,195,0,0,231,3,0,0,232,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,73,78,84,69,71,69,82,0,66,73,78,65,82,89,0,0,110,111,32,115,117,99,104,32,116,97,98,108,101,32,99,111,108,117,109,110,58,32,37,115,46,37,115,0,0,0,0,0,57,50,50,51,51,55,50,48,51,54,56,53,52,55,55,53,56,48,0,0,0,0,0,0,111,110,111,102,102,97,108,115,101,121,101,115,116,114,117,101,102,117,108,108,0,0,0,0,0,1,2,4,9,12,16,0,2,2,3,5,3,4,4,0,1,0,0,0,1,1,2,0,82,69,73,78,68,69,88,69,68,69,83,67,65,80,69,65,67,72,69,67,75,69,89,66,69,70,79,82,69,73,71,78,79,82,69,71,69,88,80,76,65,73,78,83,84,69,65,68,68,65,84,65,66,65,83,69,76,69,67,84,65,66,76,69,70,84,72,69,78,68,69,70,69,82,82,65,66,76,69,76,83,69,88,67,69,80,84,82,65,78,83,65,67,84,73,79,78,65,84,85,82,65,76,84,69,82,65,73,83,69,88,67,76,85,83,73,86,69,88,73,83,84,83,65,86,69,80,79,73,78,84,69,82,83,69,67,84,82,73,71,71,69,82,69,70,69,82,69,78,67,69,83,67,79,78,83,84,82,65,73,78,84,79,70,70,83,69,84,69,77,80,79,82,65,82,89,85,78,73,81,85,69,82,89,87,73,84,72,79,85,84,69,82,69,76,69,65,83,69,65,84,84,65,67,72,65,86,73,78,71,82,79,85,80,68,65,84,69,66,69,71,73,78,78,69,82,69,67,85,82,83,73,86,69,66,69,84,87,69,69,78,79,84,78,85,76,76,73,75,69,67,65,83,67,65,68,69,76,69,84,69,67,65,83,69,67,79,76,76,65,84,69,67,82,69,65,84,69,67,85,82,82,69,78,84,95,68,65,84,69,68,69,84,65,67,72,73,77,77,69,68,73,65,84,69,74,79,73,78,83,69,82,84,77,65,84,67,72,80,76,65,78,65,76,89,90,69,80,82,65,71,77,65,66,79,82,84,86,65,76,85,69,83,86,73,82,84,85,65,76,73,77,73,84,87,72,69,78,87,72,69,82,69,78,65,77,69,65,70,84,69,82,69,80,76,65,67,69,65,78,68,69,70,65,85,76,84,65,85,84,79,73,78,67,82,69,77,69,78,84,67,65,83,84,67,79,76,85,77,78,67,79,77,77,73,84,67,79,78,70,76,73,67,84,67,82,79,83,83,67,85,82,82,69,78,84,95,84,73,77,69,83,84,65,77,80,82,73,77,65,82,89,68,69,70,69,82,82,69,68,73,83,84,73,78,67,84,68,82,79,80,70,65,73,76,70,82,79,77,70,85,76,76,71,76,79,66,89,73,70,73,83,78,85,76,76,79,82,68,69,82,69,83,84,82,73,67,84,82,73,71,72,84,82,79,76,76,66,65,67,75,82,79,87,85,78,73,79,78,85,83,73,78,71,86,65,67,85,85,77,86,73,69,87,73,78,73,84,73,65,76,76,89,0,0,0,0,0,0,0,76,105,117,74,0,45,0,0,82,0,77,0,0,42,12,78,15,0,116,85,54,112,0,19,0,0,121,0,119,115,0,22,93,0,9,0,0,70,71,0,69,6,0,48,90,102,0,118,101,0,0,44,0,103,24,0,17,0,122,53,23,0,5,110,25,96,0,0,124,106,60,123,57,28,55,0,91,0,100,26,0,99,0,0,0,95,92,97,88,109,14,39,108,0,81,0,18,89,111,32,0,120,80,113,62,46,84,0,0,94,40,59,114,0,36,0,0,29,0,86,63,64,0,20,61,0,56,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,13,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,33,0,21,0,0,0,0,0,50,0,43,3,47,0,0,0,0,30,0,58,0,38,0,0,0,1,66,0,0,67,0,41,0,0,0,0,0,0,49,65,0,0,0,0,31,52,16,34,10,0,0,0,0,0,0,0,11,72,79,0,8,0,104,98,0,107,0,87,0,75,51,0,27,37,73,83,0,35,68,0,0,0,0,0,0,7,7,5,4,6,4,5,3,6,7,3,6,6,7,7,3,8,2,6,5,4,4,3,10,4,6,11,6,2,7,5,5,9,6,9,9,7,10,10,4,6,2,3,9,4,2,6,5,7,4,5,7,6,6,5,6,5,5,9,7,7,3,2,4,4,7,3,6,4,7,6,12,6,9,4,6,5,4,7,6,5,6,7,5,4,5,6,5,7,3,7,13,2,2,4,6,6,8,5,17,12,7,8,8,2,4,4,4,4,4,2,2,6,5,8,5,8,3,5,5,6,4,9,3,0,0,0,0,0,0,2,0,2,0,8,0,9,0,14,0,16,0,20,0,23,0,25,0,25,0,29,0,33,0,36,0,41,0,46,0,48,0,53,0,54,0,59,0,62,0,65,0,67,0,69,0,78,0,81,0,86,0,91,0,95,0,96,0,101,0,105,0,109,0,117,0,122,0,128,0,136,0,142,0,152,0,159,0,162,0,162,0,165,0,167,0,167,0,171,0,176,0,179,0,184,0,184,0,188,0,192,0,199,0,204,0,209,0,212,0,218,0,221,0,225,0,234,0,240,0,240,0,240,0,243,0,246,0,250,0,251,0,255,0,5,1,9,1,16,1,22,1,34,1,40,1,49,1,51,1,57,1,62,1,64,1,71,1,76,1,81,1,87,1,93,1,98,1,102,1,105,1,111,1,115,1,122,1,124,1,131,1,133,1,135,1,144,1,148,1,154,1,160,1,168,1,173,1,173,1,189,1,196,1,203,1,204,1,211,1,215,1,219,1,223,1,227,1,230,1,232,1,234,1,240,1,244,1,252,1,1,2,9,2,12,2,17,2,22,2,28,2,32,2,37,2,67,28,140,42,84,44,104,53,35,113,46,47,50,2,49,142,41,24,119,16,98,138,11,112,139,117,6,30,107,98,141,57,9,20,13,118,62,105,99,131,55,54,111,21,21,71,103,3,25,66,98,14,34,128,127,110,5,98,58,74,77,19,52,101,50,37,33,109,136,95,17,69,43,8,124,108,51,4,32,56,29,120,65,129,137,130,68,31,59,72,100,106,15,75,38,39,10,40,98,69,69,102,7,121,73,114,45,123,98,50,36,18,76,126,60,98,12,61,115,125,63,64,48,116,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,82,79,87,73,68,95,0,82,79,87,73,68,0,0,0,79,73,68,0,0,0,0,0,67,82,69,65,84,69,32,84,65,66,76,69,32,115,113,108,105,116,101,95,109,97,115,116,101,114,40,10,32,32,116,121,112,101,32,116,101,120,116,44,10,32,32,110,97,109,101,32,116,101,120,116,44,10,32,32,116,98,108,95,110,97,109,101,32,116,101,120,116,44,10,32,32,114,111,111,116,112,97,103,101,32,105,110,116,101,103,101,114,44,10,32,32,115,113,108,32,116,101,120,116,10,41,0,67,82,69,65,84,69,32,84,69,77,80,32,84,65,66,76,69,32,115,113,108,105,116,101,95,116,101,109,112,95,109,97,115,116,101,114,40,10,32,32,116,121,112,101,32,116,101,120,116,44,10,32,32,110,97,109,101,32,116,101,120,116,44,10,32,32,116,98,108,95,110,97,109,101,32,116,101,120,116,44,10,32,32,114,111,111,116,112,97,103,101,32,105,110,116,101,103,101,114,44,10,32,32,115,113,108,32,116,101,120,116,10,41,0,0,0,0,0,0,0,115,113,108,105,116,101,95,116,101,109,112,95,109,97,115,116,101,114,0,0,0,0,0,0,115,113,108,105,116,101,95,109,97,115,116,101,114,0,0,0,49,0,0,0,0,0,0,0,97,116,116,97,99,104,101,100,32,100,97,116,97,98,97,115,101,115,32,109,117,115,116,32,117,115,101,32,116,104,101,32,115,97,109,101,32,116,101,120,116,32,101,110,99,111,100,105,110,103,32,97,115,32,109,97,105,110,32,100,97,116,97,98,97,115,101,0,0,0,0,0,117,110,115,117,112,112,111,114,116,101,100,32,102,105,108,101,32,102,111,114,109,97,116,0,83,69,76,69,67,84,32,110,97,109,101,44,32,114,111,111,116,112,97,103,101,44,32,115,113,108,32,70,82,79,77,32,39,37,113,39,46,37,115,32,79,82,68,69,82,32,66,89,32,114,111,119,105,100,0,0,115,113,108,105,116,101,95,115,116,97,116,49,0,0,0,0,83,69,76,69,67,84,32,116,98,108,44,105,100,120,44,115,116,97,116,32,70,82,79,77,32,37,81,46,115,113,108,105,116,101,95,115,116,97,116,49,0,0,0,0,0,0,0,0,117,110,111,114,100,101,114,101,100,42,0,0,0,0,0,0,115,122,61,91,48,45,57,93,42,0,0,0,0,0,0,0,110,111,115,107,105,112,115,99,97,110,42,0,0,0,0,0,0,0,2,0,3,0,5,0,6,0,7,0,8,0,9,0,33,0,32,0,30,0,28,0,26,0,0,0,0,0,0,0,105,110,118,97,108,105,100,32,114,111,111,116,112,97,103,101,0,0,0,0,0,0,0,0,63,0,0,0,0,0,0,0,109,97,108,102,111,114,109,101,100,32,100,97,116,97,98,97,115,101,32,115,99,104,101,109,97,32,40,37,115,41,0,0,37,115,32,45,32,37,115,0,100,97,116,97,98,97,115,101,32,99,111,114,114,117,112,116,105,111,110,32,97,116,32,108,105,110,101,32,37,100,32,111,102,32,91,37,46,49,48,115,93,0,0,0,0,0,0,0,109,105,115,117,115,101,32,97,116,32,108,105,110,101,32,37,100,32,111,102,32,91,37,46,49,48,115,93,0,0,0,0,117,110,97,98,108,101,32,116,111,32,100,101,108,101,116,101,47,109,111,100,105,102,121,32,99,111,108,108,97,116,105,111,110,32,115,101,113,117,101,110,99,101,32,100,117,101,32,116,111,32,97,99,116,105,118,101,32,115,116,97,116,101,109,101,110,116,115,0,0,0,0,0,78,79,67,65,83,69,0,0,82,84,82,73,77,0,0,0,109,97,105,110,0,0,0,0,10,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,6,0,0,0,3,0,0,0,11,0,0,0,2,0,0,0,12,0,0,0,13,0,0,0,3,0,0,0,4,0,0,0,7,0,0,0,8,0,0,0,14,0,0,0,3,0,0,0,4,0,0,0,9,0,0,0,10,0,0,0,15,0,0,0,16,0,0,0,17,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,19,0,0,0,1,0,0,0,20,0,0,0,21,0,0,0,22,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,25,0,0,0,26,0,0,0,27,0,0,0,11,0,0,0,6,0,0,0,7,0,0,0,5,0,0,0,6,0,0,0,1,0,0,0,2,0,0,0,4,0,0,0,8,0,0,0,9,0,0,0,28,0,0,0,10,0,0,0,11,0,0,0,12,0,0,0,13,0,0,0,7,0,0,0,14,0,0,0,15,0,0,0,1,0,0,0,2,0,0,0,16,0,0,0,29,0,0,0,1,0,0,0,0,0,0,0,3,0,0,0,17,0,0,0,1,0,0,0,2,0,0,0,18,0,0,0,30,0,0,0,31,0,0,0,32,0,0,0,8,0,0,0,9,0,0,0,12,0,0,0,1,0,0,0,33,0,0,0,19,0,0,0,2,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,2,0,0,0,4,0,0,0,4,0,0,0,3,0,0,0,4,0,0,0,5,0,0,0,6,0,0,0,3,0,0,0,13,0,0,0,14,0,0,0,7,0,0,0,5,0,0,0,20,0,0,0,1,0,0,0,1,0,0,0,21,0,0,0,15,0,0,0,34,0,0,0,16,0,0,0,22,0,0,0,23,0,0,0,24,0,0,0,25,0,0,0,1,0,0,0,26,0,0,0,27,0,0,0,28,0,0,0,29,0,0,0,30,0,0,0,31,0,0,0,32,0,0,0,33,0,0,0,35,0,0,0,17,0,0,0,10,0,0,0,11,0,0,0,34,0,0,0,12,0,0,0,18,0,0,0,35,0,0,0,36,0,0,0,3,0,0,0,6,0,0,0,7,0,0,0,2,0,0,0,8,0,0,0,37,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,0,0,0,38,0,0,0,5,0,0,0,6,0,0,0,39,0,0,0,7,0,0,0,40,0,0,0,36,0,0,0,41,0,0,0,4,0,0,0,4,0,0,0,5,0,0,0,37,0,0,0,6,0,0,0,42,0,0,0,38,0,0,0,19,0,0,0,39,0,0,0,43,0,0,0,10,0,0,0,44,0,0,0,11,0,0,0,45,0,0,0,46,0,0,0,40,0,0,0,47,0,0,0,48,0,0,0,2,0,0,0,20,0,0,0,49,0,0,0,13,0,0,0,50,0,0,0,5,0,0,0,41,0,0,0,5,0,0,0,21,0,0,0,22,0,0,0,0,0,0,0,42,0,0,0,43,0,0,0,23,0,0,0,24,0,0,0,25,0,0,0,51,0,0,0,52,0,0,0,44,0,0,0,45,0,0,0,53,0,0,0,54,0,0,0,55,0,0,0,56,0,0,0,46,0,0,0,26,0,0,0,12,0,0,0,47,0,0,0,13,0,0,0,14,0,0,0,57,0,0,0,3,0,0,0,1,0,0,0,58,0,0,0,14,0,0,0,48,0,0,0,59,0,0,0,27,0,0,0,2,0,0,0,1,0,0,0,1,0,0,0,49,0,0,0,97,117,116,111,109,97,116,105,99,32,101,120,116,101,110,115,105,111,110,32,108,111,97,100,105,110,103,32,102,97,105,108,101,100,58,32,37,115,0,0,77,65,84,67,72,0,0,0,58,109,101,109,111,114,121,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,60,0,0,0,15,0,0,0,16,0,0,0,28,0,0,0,50,0,0,0,51,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,114,101,99,111,118,101,114,101,100,32,37,100,32,112,97,103,101,115,32,102,114,111,109,32,37,115,0,0,0,0,0,0,217,213,5,249,32,161,99,215,99,97,110,110,111,116,32,108,105,109,105,116,32,87,65,76,32,115,105,122,101,58,32,37,115,0,0,0,0,0,0,0,99,97,110,110,111,116,32,111,112,101,110,32,102,105,108,101,32,97,116,32,108,105,110,101,32,37,100,32,111,102,32,91,37,46,49,48,115,93,0,0,114,101,99,111,118,101,114,101,100,32,37,100,32,102,114,97,109,101,115,32,102,114,111,109,32,87,65,76,32,102,105,108,101,32,37,115,0,0,0,0,45,106,111,117,114,110,97,108,0,0,0,0,0,0,0,0,45,119,97,108,0,0,0,0,110,111,108,111,99,107,0,0,105,109,109,117,116,97,98,108,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,102,105,108,101,58,0,0,0,108,111,99,97,108,104,111,115,116,0,0,0,0,0,0,0,105,110,118,97,108,105,100,32,117,114,105,32,97,117,116,104,111,114,105,116,121,58,32,37,46,42,115,0,0,0,0,0,118,102,115,0,0,0,0,0,99,97,99,104,101,0,0,0,232,58,0,0,0,0,2,0,240,58,0,0,0,0,4,0,0,0,0,0,0,0,0,0,115,104,97,114,101,100,0,0,112,114,105,118,97,116,101,0,109,111,100,101,0,0,0,0,40,59,0,0,1,0,0,0,48,59,0,0,2,0,0,0,56,59,0,0,6,0,0,0,64,59,0,0,128,0,0,0,0,0,0,0,0,0,0,0,114,111,0,0,0,0,0,0,114,119,0,0,0,0,0,0,114,119,99,0,0,0,0,0,109,101,109,111,114,121,0,0,97,99,99,101,115,115,0,0,110,111,32,115,117,99,104,32,37,115,32,109,111,100,101,58,32,37,115,0,0,0,0,0,37,115,32,109,111,100,101,32,110,111,116,32,97,108,108,111,119,101,100,58,32,37,115,0,110,111,32,115,117,99,104,32,118,102,115,58,32,37,115,0,105,110,118,97,108,105,100,0,65,80,73,32,99,97,108,108,32,119,105,116,104,32,37,115,32,100,97,116,97,98,97,115,101,32,99,111,110,110,101,99,116,105,111,110,32,112,111,105,110,116,101,114,0,0,0,0,117,110,97,98,108,101,32,116,111,32,117,115,101,32,102,117,110,99,116,105,111,110,32,37,115,32,105,110,32,116,104,101,32,114,101,113,117,101,115,116,101,100,32,99,111,110,116,101,120,116,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7,0,1,2,3,0,1,0,0,117,110,97,98,108,101,32,116,111,32,100,101,108,101,116,101,47,109,111,100,105,102,121,32,117,115,101,114,45,102,117,110,99,116,105,111,110,32,100,117,101,32,116,111,32,97,99,116,105,118,101,32,115,116,97,116,101,109,101,110,116,115,0,0,240,60,0,0,0,61,0,0,0,0,0,0,40,61,0,0,72,61,0,0,104,61,0,0,128,61,0,0,160,61,0,0,176,61,0,0,216,61,0,0,232,61,0,0,248,61,0,0,32,62,0,0,56,62,0,0,88,62,0,0,120,62,0,0,144,62,0,0,168,62,0,0,112,39,0,0,200,62,0,0,224,62,0,0,248,62,0,0,32,63,0,0,64,63,0,0,88,63,0,0,120,63,0,0,160,63,0,0,0,0,0,0,110,111,116,32,97,110,32,101,114,114,111,114,0,0,0,0,83,81,76,32,108,111,103,105,99,32,101,114,114,111,114,32,111,114,32,109,105,115,115,105,110,103,32,100,97,116,97,98,97,115,101,0,0,0,0,0,97,99,99,101,115,115,32,112,101,114,109,105,115,115,105,111,110,32,100,101,110,105,101,100,0,0,0,0,0,0,0,0,99,97,108,108,98,97,99,107,32,114,101,113,117,101,115,116,101,100,32,113,117,101,114,121,32,97,98,111,114,116,0,0,100,97,116,97,98,97,115,101,32,105,115,32,108,111,99,107,101,100,0,0,0,0,0,0,100,97,116,97,98,97,115,101,32,116,97,98,108,101,32,105,115,32,108,111,99,107,101,100,0,0,0,0,0,0,0,0,111,117,116,32,111,102,32,109,101,109,111,114,121,0,0,0,97,116,116,101,109,112,116,32,116,111,32,119,114,105,116,101,32,97,32,114,101,97,100,111,110,108,121,32,100,97,116,97,98,97,115,101,0,0,0,0,105,110,116,101,114,114,117,112,116,101,100,0,0,0,0,0,100,105,115,107,32,73,47,79,32,101,114,114,111,114,0,0,100,97,116,97,98,97,115,101,32,100,105,115,107,32,105,109,97,103,101,32,105,115,32,109,97,108,102,111,114,109,101,100,0,0,0,0,0,0,0,0,117,110,107,110,111,119,110,32,111,112,101,114,97,116,105,111,110,0,0,0,0,0,0,0,100,97,116,97,98,97,115,101,32,111,114,32,100,105,115,107,32,105,115,32,102,117,108,108,0,0,0,0,0,0,0,0,117,110,97,98,108,101,32,116,111,32,111,112,101,110,32,100,97,116,97,98,97,115,101,32,102,105,108,101,0,0,0,0,108,111,99,107,105,110,103,32,112,114,111,116,111,99,111,108,0,0,0,0,0,0,0,0,116,97,98,108,101,32,99,111,110,116,97,105,110,115,32,110,111,32,100,97,116,97,0,0,100,97,116,97,98,97,115,101,32,115,99,104,101,109,97,32,104,97,115,32,99,104,97,110,103,101,100,0,0,0,0,0,99,111,110,115,116,114,97,105,110,116,32,102,97,105,108,101,100,0,0,0,0,0,0,0,100,97,116,97,116,121,112,101,32,109,105,115,109,97,116,99,104,0,0,0,0,0,0,0,108,105,98,114,97,114,121,32,114,111,117,116,105,110,101,32,99,97,108,108,101,100,32,111,117,116,32,111,102,32,115,101,113,117,101,110,99,101,0,0,108,97,114,103,101,32,102,105,108,101,32,115,117,112,112,111,114,116,32,105,115,32,100,105,115,97,98,108,101,100,0,0,97,117,116,104,111,114,105,122,97,116,105,111,110,32,100,101,110,105,101,100,0,0,0,0,97,117,120,105,108,105,97,114,121,32,100,97,116,97,98,97,115,101,32,102,111,114,109,97,116,32,101,114,114,111,114,0,98,105,110,100,32,111,114,32,99,111,108,117,109,110,32,105,110,100,101,120,32,111,117,116,32,111,102,32,114,97,110,103,101,0,0,0,0,0,0,0,102,105,108,101,32,105,115,32,101,110,99,114,121,112,116,101,100,32,111,114,32,105,115,32,110,111,116,32,97,32,100,97,116,97,98,97,115,101,0,0,117,110,107,110,111,119,110,32,101,114,114,111,114,0,0,0,97,98,111,114,116,32,100,117,101,32,116,111,32,82,79,76,76,66,65,67,75,0,0,0,117,110,97,98,108,101,32,116,111,32,99,108,111,115,101,32,100,117,101,32,116,111,32,117,110,102,105,110,97,108,105,122,101,100,32,115,116,97,116,101,109,101,110,116,115,32,111,114,32,117,110,102,105,110,105,115,104,101,100,32,98,97,99,107,117,112,115,0,0,0,0,0,1,0,0,0,0,0,0,0,61,0,0,0,8,0,0,0,29,0,0,0,7,0,0,0,62,0,0,0,30,0,0,0,6,0,0,0,8,0,0,0,8,0,0,0,9,0,0,0,10,0,0,0,0,0,0,0,63,0,0,0,11,0,0,0,52,0,0,0,64,0,0,0,65,0,0,0,66,0,0,0,12,0,0,0,0,0,0,0,102,97,105,108,101,100,32,109,101,109,111,114,121,32,114,101,115,105,122,101,32,37,117,32,116,111,32,37,117,32,98,121,116,101,115,0,0,0,0,0,102,97,105,108,101,100,32,116,111,32,97,108,108,111,99,97,116,101,32,37,117,32,98,121,116,101,115,32,111,102,32,109,101,109,111,114,121,0,0,0,1,0,1,8,1,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,48,73,0,0,0,0,0,0,0,0,0,0,2,0,1,8,1,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,48,73,0,0,0,0,0,0,0,0,0,0,1,0,1,8,2,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,56,73,0,0,0,0,0,0,0,0,0,0,2,0,1,8,2,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,56,73,0,0,0,0,0,0,0,0,0,0,1,0,1,8,3,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,64,73,0,0,0,0,0,0,0,0,0,0,2,0,1,8,3,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,64,73,0,0,0,0,0,0,0,0,0,0,255,255,33,8,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,72,73,0,0,0,0,0,0,0,0,0,0,0,0,33,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,73,0,0,0,0,0,0,0,0,0,0,1,0,33,16,0,0,0,0,0,0,0,0,0,0,0,0,9,0,0,0,13,0,0,0,72,73,0,0,0,0,0,0,0,0,0,0,255,255,33,8,1,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,80,73,0,0,0,0,0,0,0,0,0,0,0,0,33,8,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,73,0,0,0,0,0,0,0,0,0,0,1,0,33,16,1,0,0,0,0,0,0,0,0,0,0,0,9,0,0,0,13,0,0,0,80,73,0,0,0,0,0,0,0,0,0,0,1,0,129,8,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,88,73,0,0,0,0,0,0,0,0,0,0,1,0,65,8,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,96,73,0,0,0,0,0,0,0,0,0,0,2,0,1,8,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,104,73,0,0,0,0,0,0,0,0,0,0,2,0,1,8,0,0,0,0,0,0,0,0,13,0,0,0,0,0,0,0,0,0,0,0,112,73,0,0,0,0,0,0,0,0,0,0,3,0,1,8,0,0,0,0,0,0,0,0,13,0,0,0,0,0,0,0,0,0,0,0,112,73,0,0,0,0,0,0,0,0,0,0,255,255,1,8,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,120,73,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,15,0,0,0,0,0,0,0,0,0,0,0,128,73,0,0,0,0,0,0,0,0,0,0,255,255,1,8,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,136,73,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,17,0,0,0,0,0,0,0,0,0,0,0,144,73,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,152,73,0,0,0,0,0,0,0,0,0,0,2,0,1,8,0,0,0,0,0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,152,73,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,19,0,0,0,0,0,0,0,0,0,0,0,160,73,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,20,0,0,0,0,0,0,0,0,0,0,0,168,73,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,176,73,0,0,0,0,0,0,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,176,73,0,0,0,0,0,0,0,0,0,0,255,255,1,10,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,176,73,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0,192,73,0,0,0,0,0,0,0,0,0,0,2,0,1,10,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,200,73,0,0,0,0,0,0,0,0,0,0,1,0,1,12,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,208,73,0,0,0,0,0,0,0,0,0,0,2,0,1,12,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,224,73,0,0,0,0,0,0,0,0,0,0,1,0,1,12,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,240,73,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0,0,248,73,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,0,0,0,74,0,0,0,0,0,0,0,0,0,0,2,0,33,8,0,0,0,0,0,0,0,0,25,0,0,0,0,0,0,0,0,0,0,0,16,74,0,0,0,0,0,0,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,24,74,0,0,0,0,0,0,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,26,0,0,0,0,0,0,0,0,0,0,0,40,74,0,0,0,0,0,0,0,0,0,0,2,0,1,8,0,0,0,0,0,0,0,0,27,0,0,0,0,0,0,0,0,0,0,0,64,74,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,28,0,0,0,0,0,0,0,0,0,0,0,80,74,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,112,74,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,30,0,0,0,0,0,0,0,0,0,0,0,144,74,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,31,0,0,0,0,0,0,0,0,0,0,0,152,74,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,176,74,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,33,0,0,0,0,0,0,0,0,0,0,0,184,74,0,0,0,0,0,0,0,0,0,0,3,0,1,8,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0,0,0,0,200,74,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,35,0,0,0,0,0,0,0,0,0,0,0,208,74,0,0,0,0,0,0,0,0,0,0,1,0,1,8,0,0,0,0,0,0,0,0,36,0,0,0,0,0,0,0,0,0,0,0,224,74,0,0,0,0,0,0,0,0,0,0,2,0,1,8,0,0,0,0,0,0,0,0,36,0,0,0,0,0,0,0,0,0,0,0,224,74,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,14,0,0,0,240,74,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,15,0,0,0,248,74,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,16,0,0,0,0,75,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,38,0,0,0,17,0,0,0,8,75,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,38,0,0,0,17,0,0,0,8,75,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,39,0,0,0,18,0,0,0,16,75,0,0,0,0,0,0,0,0,0,0,2,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,39,0,0,0,18,0,0,0,16,75,0,0,0,0,0,0,0,0,0,0,2,0,13,8,112,40,0,0,0,0,0,0,40,0,0,0,0,0,0,0,0,0,0,0,32,75,0,0,0,0,0,0,0,0,0,0,2,0,5,8,40,75,0,0,0,0,0,0,40,0,0,0,0,0,0,0,0,0,0,0,48,75,0,0,0,0,0,0,0,0,0,0,3,0,5,8,40,75,0,0,0,0,0,0,40],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+8464);allocate([48,75,0,0,0,0,0,0,0,0,0,0,0,0,0,0,108,116,114,105,109,0,0,0,114,116,114,105,109,0,0,0,116,114,105,109,0,0,0,0,109,105,110,0,0,0,0,0,109,97,120,0,0,0,0,0,116,121,112,101,111,102,0,0,108,101,110,103,116,104,0,0,105,110,115,116,114,0,0,0,115,117,98,115,116,114,0,0,112,114,105,110,116,102,0,0,117,110,105,99,111,100,101,0,99,104,97,114,0,0,0,0,97,98,115,0,0,0,0,0,114,111,117,110,100,0,0,0,117,112,112,101,114,0,0,0,108,111,119,101,114,0,0,0,99,111,97,108,101,115,99,101,0,0,0,0,0,0,0,0,104,101,120,0,0,0,0,0,105,102,110,117,108,108,0,0,117,110,108,105,107,101,108,121,0,0,0,0,0,0,0,0,108,105,107,101,108,105,104,111,111,100,0,0,0,0,0,0,108,105,107,101,108,121,0,0,114,97,110,100,111,109,0,0,114,97,110,100,111,109,98,108,111,98,0,0,0,0,0,0,110,117,108,108,105,102,0,0,115,113,108,105,116,101,95,118,101,114,115,105,111,110,0,0,115,113,108,105,116,101,95,115,111,117,114,99,101,95,105,100,0,0,0,0,0,0,0,0,115,113,108,105,116,101,95,108,111,103,0,0,0,0,0,0,115,113,108,105,116,101,95,99,111,109,112,105,108,101,111,112,116,105,111,110,95,117,115,101,100,0,0,0,0,0,0,0,115,113,108,105,116,101,95,99,111,109,112,105,108,101,111,112,116,105,111,110,95,103,101,116,0,0,0,0,0,0,0,0,113,117,111,116,101,0,0,0,108,97,115,116,95,105,110,115,101,114,116,95,114,111,119,105,100,0,0,0,0,0,0,0,99,104,97,110,103,101,115,0,116,111,116,97,108,95,99,104,97,110,103,101,115,0,0,0,114,101,112,108,97,99,101,0,122,101,114,111,98,108,111,98,0,0,0,0,0,0,0,0,108,111,97,100,95,101,120,116,101,110,115,105,111,110,0,0,115,117,109,0,0,0,0,0,116,111,116,97,108,0,0,0,97,118,103,0,0,0,0,0,99,111,117,110,116,0,0,0,103,114,111,117,112,95,99,111,110,99,97,116,0,0,0,0,103,108,111,98,0,0,0,0,37,95,0,1,0,0,0,0,108,105,107,101,0,0,0,0,2,0,1,8,0,0,0,0,0,0,0,0,41,0,0,0,0,0,0,0,0,0,0,0,168,75,0,0,0,0,0,0,0,0,0,0,2,0,1,8,0,0,0,0,0,0,0,0,42,0,0,0,0,0,0,0,0,0,0,0,192,75,0,0,0,0,0,0,0,0,0,0,3,0,1,8,0,0,0,0,0,0,0,0,43,0,0,0,0,0,0,0,0,0,0,0,216,75,0,0,0,0,0,0,0,0,0,0,0,0,0,0,115,113,108,105,116,101,95,114,101,110,97,109,101,95,116,97,98,108,101,0,0,0,0,0,115,113,108,105,116,101,95,114,101,110,97,109,101,95,116,114,105,103,103,101,114,0,0,0,115,113,108,105,116,101,95,114,101,110,97,109,101,95,112,97,114,101,110,116,0,0,0,0,37,115,37,46,42,115,34,37,119,34,0,0,0,0,0,0,37,115,37,115,0,0,0,0,37,46,42,115,34,37,119,34,37,115,0,0,0,0,0,0,255,255,1,8,0,0,0,0,0,0,0,0,44,0,0,0,0,0,0,0,0,0,0,0,56,77,0,0,0,0,0,0,0,0,0,0,255,255,1,8,0,0,0,0,0,0,0,0,45,0,0,0,0,0,0,0,0,0,0,0,72,77,0,0,0,0,0,0,0,0,0,0,255,255,1,8,0,0,0,0,0,0,0,0,46,0,0,0,0,0,0,0,0,0,0,0,80,77,0,0,0,0,0,0,0,0,0,0,255,255,1,8,0,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,88,77,0,0,0,0,0,0,0,0,0,0,255,255,1,8,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,0,104,77,0,0,0,0,0,0,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0,120,77,0,0,0,0,0,0,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,50,0,0,0,0,0,0,0,0,0,0,0,136,77,0,0,0,0,0,0,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,51,0,0,0,0,0,0,0,0,0,0,0,160,77,0,0,0,0,0,0,0,0,0,0,106,117,108,105,97,110,100,97,121,0,0,0,0,0,0,0,100,97,116,101,0,0,0,0,116,105,109,101,0,0,0,0,100,97,116,101,116,105,109,101,0,0,0,0,0,0,0,0,115,116,114,102,116,105,109,101,0,0,0,0,0,0,0,0,99,117,114,114,101,110,116,95,116,105,109,101,0,0,0,0,99,117,114,114,101,110,116,95,116,105,109,101,115,116,97,109,112,0,0,0,0,0,0,0,99,117,114,114,101,110,116,95,100,97,116,101,0,0,0,0,37,48,50,100,0,0,0,0,37,48,54,46,51,102,0,0,37,48,51,100,0,0,0,0,37,46,49,54,103,0,0,0,37,108,108,100,0,0,0,0,37,48,52,100,0,0,0,0,108,111,99,97,108,116,105,109,101,0,0,0,0,0,0,0,117,110,105,120,101,112,111,99,104,0,0,0,0,0,0,0,117,116,99,0,0,0,0,0,119,101,101,107,100,97,121,32,0,0,0,0,0,0,0,0,115,116,97,114,116,32,111,102,32,0,0,0,0,0,0,0,109,111,110,116,104,0,0,0,121,101,97,114,0,0,0,0,100,97,121,0,0,0,0,0,104,111,117,114,0,0,0,0,109,105,110,117,116,101,0,0,115,101,99,111,110,100,0,0,108,111,99,97,108,32,116,105,109,101,32,117,110,97,118,97,105,108,97,98,108,101,0,0,110,111,119,0,0,0,0,0,37,48,52,100,45,37,48,50,100,45,37,48,50,100,32,37,48,50,100,58,37,48,50,100,58,37,48,50,100,0,0,0,37,48,50,100,58,37,48,50,100,58,37,48,50,100,0,0,37,48,52,100,45,37,48,50,100,45,37,48,50,100,0,0,76,73,75,69,32,111,114,32,71,76,79,66,32,112,97,116,116,101,114,110,32,116,111,111,32,99,111,109,112,108,101,120,0,0,0,0,0,0,0,0,69,83,67,65,80,69,32,101,120,112,114,101,115,115,105,111,110,32,109,117,115,116,32,98,101,32,97,32,115,105,110,103,108,101,32,99,104,97,114,97,99,116,101,114,0,0,0,0,44,0,0,0,0,0,0,0,105,110,116,101,103,101,114,32,111,118,101,114,102,108,111,119,0,0,0,0,0,0,0,0,37,33,46,49,53,103,0,0,37,33,46,50,48,101,0,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,78,85,76,76,0,0,0,0,37,46,42,102,0,0,0,0,105,110,116,101,103,101,114,0,116,101,120,116,0,0,0,0,114,101,97,108,0,0,0,0,98,108,111,98,0,0,0,0,110,117,108,108,0,0,0,0,1,0,0,0,0,0,0,0,152,79,0,0,0,0,0,0,32,0,0,0,0,0,0,0,105,110,116,101,114,114,117,112,116,0,0,0,0,0,0,0,117,110,114,101,99,111,103,110,105,122,101,100,32,116,111,107,101,110,58,32,34,37,84,34,0,0,0,0,0,0,0,0,110,101,97,114,32,34,37,84,34,58,32,115,121,110,116,97,120,32,101,114,114,111,114,0,114,111,119,105,100,0,0,0,117,110,107,110,111,119,110,32,116,97,98,108,101,32,111,112,116,105,111,110,58,32,37,46,42,115,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,116,111,111,32,109,97,110,121,32,116,101,114,109,115,32,105,110,32,99,111,109,112,111,117,110,100,32,83,69,76,69,67,84,0,0,0,0,0,0,0,115,101,116,32,108,105,115,116,0,0,0,0,0,0,0,0,116,111,111,32,109,97,110,121,32,97,114,103,117,109,101,110,116,115,32,111,110,32,102,117,110,99,116,105,111,110,32,37,84,0,0,0,0,0,0,0,8,130,0,0,1,0,0,0,168,51,0,0,1,0,0,0,105,110,100,101,120,0,0,0,113,117,97,108,105,102,105,101,100,32,116,97,98,108,101,32,110,97,109,101,115,32,97,114,101,32,110,111,116,32,97,108,108,111,119,101,100,32,111,110,32,73,78,83,69,82,84,44,32,85,80,68,65,84,69,44,32,97,110,100,32,68,69,76,69,84,69,32,115,116,97,116,101,109,101,110,116,115,32,119,105,116,104,105,110,32,116,114,105,103,103,101,114,115,0,0,116,104,101,32,73,78,68,69,88,69,68,32,66,89,32,99,108,97,117,115,101,32,105,115,32,110,111,116,32,97,108,108,111,119,101,100,32,111,110,32,85,80,68,65,84,69,32,111,114,32,68,69,76,69,84,69,32,115,116,97,116,101,109,101,110,116,115,32,119,105,116,104,105,110,32,116,114,105,103,103,101,114,115,0,0,0,0,0,116,104,101,32,78,79,84,32,73,78,68,69,88,69,68,32,99,108,97,117,115,101,32,105,115,32,110,111,116,32,97,108,108,111,119,101,100,32,111,110,32,85,80,68,65,84,69,32,111,114,32,68,69,76,69,84,69,32,115,116,97,116,101,109,101,110,116,115,32,119,105,116,104,105,110,32,116,114,105,103,103,101,114,115,0,0,0,0,144,1,145,2,145,1,146,1,146,3,147,0,147,1,147,3,148,1,149,3,151,0,151,1,151,2,150,0,150,1,150,1,150,1,149,2,149,2,149,2,153,1,153,0,149,2,149,3,149,5,149,2,154,6,156,1,158,0,158,3,157,1,157,0,155,5,155,2,162,0,162,2,160,3,160,1,164,3,165,1,152,1,152,1,152,1,166,0,166,1,168,1,168,4,168,6,169,1,169,2,170,1,170,1,167,2,167,0,173,2,173,2,173,4,173,3,173,3,173,2,173,2,173,3,173,5,173,2,173,4,173,4,173,1,173,2,178,0,178,1,180,0,180,2,182,2,182,3,182,3,182,3,183,2,183,2,183,1,183,1,183,2,181,3,181,2,184,0,184,2,184,2,161,0,161,2,185,3,185,1,186,1,186,0,187,2,187,7,187,5,187,5,187,10,189,0,189,1,176,0,176,3,190,0,190,2,191,1,191,1,191,1,149,4,193,2,193,0,149,8,149,4,149,1,163,2,195,1,195,3,198,1,198,2,198,1,196,9,196,1,207,4,207,5,199,1,199,1,199,0,210,2,210,0,200,3,200,2,200,4,211,2,211,1,211,0,201,0,201,2,213,2,213,0,212,7,212,7,212,7,159,0,159,2,194,2,214,1,214,2,214,3,214,4,216,2,216,0,215,0,215,3,215,2,217,4,217,0,205,0,205,3,220,4,220,2,177,1,177,1,177,0,203,0,203,3,204,0,204,2,206,0,206,2,206,4,206,4,149,6,202,0,202,2,149,8,221,5,221,3,149,6,149,7,222,2,222,1,223,0,223,3,219,3,219,1,175,1,175,3,174,1,175,1,175,1,175,3,175,5,174,1,174,1,175,1,175,3,175,6,175,5,175,4,174,1,175,3,175,3,175,3,175,3,175,3,175,3,175,3,175,3,224,1,224,2,175,3,175,5,175,2,175,3,175,3,175,4,175,2,175,2,175,2,175,2,225,1,225,2,175,5,226,1,226,2,175,5,175,3,175,5,175,4,175,4,175,5,228,5,228,4,229,2,229,0,227,1,227,0,209,1,209,0,208,3,208,1,149,12,230,1,230,0,179,0,179,3,188,5,188,3,231,0,231,2,149,4,149,1,149,2,149,3,149,5,149,6,149,5,149,6,232,1,232,1,232,1,232,1,232,1,171,2,171,1,172,2,149,5,233,11,235,1,235,1,235,2,235,0,236,1,236,1,236,3,237,0,237,3,238,0,238,2,234,3,234,2,240,1,240,3,241,0,241,3,241,2,239,7,239,5,239,5,239,1,175,4,175,6,192,1,192,1,192,1,149,4,149,6,149,3,243,0,243,2,242,1,242,0,149,1,149,3,149,1,149,3,149,6,149,6,244,1,245,0,245,1,149,1,149,4,246,8,247,1,247,3,248,0,248,2,249,1,249,3,250,1,251,0,251,4,251,2,197,0,197,2,197,3,252,6,252,8,0,0,238,0,186,3,213,0,33,1,54,1,234,0,144,0,61,1,147,255,126,1,121,1,47,1,205,1,133,1,122,1,112,1,46,1,38,1,253,0,139,1,37,1,68,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,254,3,244,3,237,3,230,3,195,3,193,3,191,3,189,3,182,3,179,3,162,3,144,3,105,3,93,3,55,3,42,3,3,3,247,2,208,2,196,2,158,2,145,2,107,2,102,2,100,2,98,2,96,2,94,2,92,2,86,2,83,2,81,2,68,2,30,2,28,2,25,2,23,2,21,2,19,2,17,2,15,2,247,1,130,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,147,1,95,0,191,1,82,0,78,1,248,1,211,1,147,1,221,1,208,1,147,1,147,1,147,1,147,1,92,3,235,2,232,2,17,3,126,2,126,2,158,3,123,3,132,3,131,3,119,3,76,3,72,3,67,3,80,3,62,3,75,3,61,3,24,3,71,3,58,3,225,2,70,3,27,3,21,3,47,0,222,2,18,2,184,2,9,3,199,2,165,2,221,2,218,2,217,2,216,2,215,2,115,2,192,1,64,0,187,0,25,5,22,5,228,4,10,5,249,4,43,5,42,5,41,5,39,5,38,5,36,5,35,5,34,5,33,5,32,5,31,5,30,5,28,5,27,5,24,5,23,5,21,5,18,5,14,5,12,5,9,5,242,4,240,4,235,4,8,5,7,5,214,4,5,5,1,5,0,5,255,4,254,4,227,4,253,4,252,4,251,4,249,4,244,4,243,4,241,4,239,4,237,4,233,4,224,4,213,4,223,4,222,4,219,4,214,4,216,4,211,4,225,4,210,4,209,4,206,4,196,4,190,4,186,4,201,4,195,4,208,4,207,4,173,4,171,4,203,4,200,4,177,4,184,4,218,4,113,4,212,4,205,4,169,4,157,4,197,4,153,4,172,4,155,4,167,4,166,4,162,4,158,4,194,4,192,4,152,4,138,4,159,4,156,4,136,4,175,4,179,4,109,4,71,4,174,4,170,4,164,4,168,4,147,4,145,4,144,4,149,4,150,4,142,4,135,4,117,4,146,4,134,4,143,4,133,4,108,4,121,4,119,4,100,4,104,4,79,4,78,4,76,4,72,4,126,4,125,4,61,4,101,4,56,4,40,4,96,4,73,4,58,4,54,4,49,4,43,4,85,4,83,4,95,4,93,4,92,4,89,4,87,4,84,4,239,3,232,3,234,3,52,4,51,4,57,4,0,0,0,0,50,1,212,0,176,1,187,3,127,2,191,0,187,3,39,1,47,2,88,0,88,0,88,0,88,0,81,0,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,185,0,184,0,183,0,123,2,123,2,36,1,94,2,94,2,88,0,88,0,88,0,88,0,171,2,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,16,0,180,1,85,2,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,172,2,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,47,2,84,0,84,0,84,0,83,0,74,1,65,0,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,123,2,123,2,122,2,121,2,182,0,170,2,38,2,123,1,120,1,119,1,17,0,66,1,94,2,94,2,115,1,198,0,223,1,91,0,118,1,82,0,79,0,165,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,86,2,123,2,123,2,107,0,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,186,0,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,82,2,82,2,142,0,72,1,71,1,228,1,249,0,88,1,238,0,123,2,123,2,122,2,121,2,73,2,192,1,14,2,13,2,229,0,132,1,1,0,138,1,194,1,72,2,193,1,123,2,123,2,123,2,123,2,63,1,139,1,94,2,94,2,199,0,157,0,17,1,126,1,12,1,125,1,187,0,123,2,123,2,122,2,121,2,55,1,43,2,10,1,81,2,81,2,10,1,91,1,76,2,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,222,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,16,1,24,2,122,2,121,2,146,0,98,2,197,0,54,1,63,2,182,0,226,1,15,1,123,1,120,1,119,1,250,1,21,0,122,2,121,2,122,2,121,2,123,2,123,2,118,1,99,2,62,2,36,2,184,1,111,0,51,2,94,2,94,2,122,2,121,2,68,1,223,1,96,2,96,2,96,2,44,1,179,1,61,2,119,0,151,1,210,0,162,0,50,2,115,3,80,2,80,2,50,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,250,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,108,2,111,0,123,2,123,2,105,1,94,2,94,2,102,1,249,0,93,1,248,0,177,1,243,0,223,1,74,2,122,2,121,2,195,0,99,2,93,0,119,0,221,0,63,2,241,1,22,2,22,2,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,62,2,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,77,0,173,1,126,2,61,2,77,2,18,2,240,0,230,0,242,0,105,0,249,0,93,1,248,0,3,2,76,2,208,0,204,1,17,2,52,2,173,0,122,2,121,2,202,3,144,0,174,1,2,0,168,1,228,0,124,1,45,2,94,2,94,2,190,0,153,0,159,0,158,0,2,2,51,0,120,2,119,2,118,2,71,0,24,2,176,1,186,3,196,0,98,2,186,3,102,2,45,0,18,0,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,5,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,96,2,96,2,96,2,30,2,168,1,146,1,129,1,241,0,250,1,195,1,64,1,211,0,31,2,164,0,180,1,130,1,37,1,195,1,75,2,108,0,240,1,111,0,78,1,135,1,79,2,168,1,102,2,27,0,196,1,197,1,94,2,94,2,72,0,1,1,70,0,3,1,196,1,83,1,86,1,52,2,70,2,68,0,159,1,213,1,72,1,71,1,62,0,102,2,45,0,110,0,137,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,152,0,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,110,0,243,1,8,2,26,2,146,1,133,1,168,1,110,0,54,2,244,1,81,2,81,2,198,1,82,0,79,0,165,0,168,1,79,2,128,1,52,2,84,1,103,2,188,0,162,0,168,1,94,1,104,2,168,1,102,2,44,0,94,2,94,2,189,1,70,2,44,1,178,1,151,0,19,0,102,2,9,0,56,2,68,2,92,1,103,2,213,1,55,2,102,2,26,0,104,2,102,2,45,0,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,155,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,67,2,110,0,66,2,9,2,26,1,177,1,142,1,144,1,255,0,230,1,82,0,79,0,165,0,231,1,164,0,82,0,79,0,165,0,232,1,232,1,108,1,131,1,168,1,32,2,32,2,253,1,94,1,106,1,155,0,191,0,94,2,94,2,47,2,130,2,128,2,77,1,82,0,79,0,165,0,49,1,52,2,251,1,56,1,101,1,102,2,45,0,73,1,84,2,83,2,194,0,81,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,20,0,67,1,150,0,7,1,211,0,31,2,165,1,84,2,83,2,102,2,22,0,168,1,193,0,168,1,28,1,168,1,135,1,168,1,253,1,168,1,65,2,168,1,186,0,79,1,168,1,47,2,168,1,57,1,120,0,34,2,94,2,94,2,67,0,102,2,47,0,102,2,50,0,102,2,48,0,102,2,100,0,102,2,99,0,102,2,101,0,64,2,102,2,102,0,102,2,109,0,70,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,50,1,168,1,55,1,168,1,73,2,54,0,168,1,4,2,5,2,78,2,102,2,112,0,168,1,72,2,168,1,60,2,168,1,195,0,168,1,59,2,168,1,67,0,168,1,102,2,94,0,102,2,98,0,168,1,102,2,97,0,8,1,94,2,94,2,195,0,102,2,46,0,102,2,96,0,102,2,30,0,102,2,49,0,102,2,115,0,102,2,114,0,162,1,229,0,132,1,102,2,113,0,50,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,119,0,168,1,78,2,110,0,116,1,94,2,94,2,195,0,53,0,250,0,102,2,29,0,195,0,216,1,182,1,217,2,190,0,46,1,242,1,14,0,11,2,129,2,2,0,102,2,43,0,50,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,168,1,101,2,196,3,196,3,98,1,94,2,94,2,164,1,56,1,64,0,102,2,42,0,135,1,99,1,27,1,181,1,45,1,255,0,158,1,154,1,239,1,236,1,102,2,28,0,215,1,50,1,89,0,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,168,1,110,0,110,0,110,0,110,0,94,2,94,2,110,0,254,0,13,0,102,2,41,0,20,2,19,2,27,1,225,1,19,2,201,1,28,1,119,0,49,2,100,1,102,2,40,0,28,1,50,1,89,0,78,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,110,0,168,1,85,1,220,0,43,2,94,2,94,2,95,1,43,2,62,1,102,2,95,0,157,1,255,0,83,0,74,1,28,1,28,1,255,0,128,2,77,1,100,1,255,0,102,2,39,0,50,1,100,1,90,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,168,1,61,1,60,1,141,0,209,1,94,2,94,2,219,0,107,2,207,1,102,2,10,0,161,1,206,1,255,0,189,0,254,1,41,2,95,1,207,0,107,1,161,0,102,2,38,0,59,1,218,0,255,0,255,0,80,0,88,2,87,2,89,2,89,2,87,0,87,0,88,0,88,0,88,0,88,0,168,1,86,0,86,0,86,0,86,0,85,0,85,0,84,0,84,0,84,0,83,0,74,1,76,0,163,1,255,0,3,0,110,3,205,1,168,1,247,0,75,1,75,1,102,2,37,0,217,0,76,0,163,1,134,1,3,0,216,0,215,0,166,1,4,0,75,1,75,1,168,1,35,2,12,0,168,1,33,2,102,2,36,0,168,1,29,2,166,1,168,1,28,2,168,1,214,0,168,1,152,1,168,1,27,2,147,1,93,2,93,2,237,0,102,2,25,0,119,0,102,2,24,0,76,2,152,1,102,2,45,0,118,0,102,2,35,0,102,2,34,0,102,2,33,0,102,2,23,0,76,2,60,0,223,0,91,2,90,2,1,2,122,1,73,0,74,0,140,0,139,0,168,1,110,0,9,1,75,0,170,1,169,1,59,0,168,1,98,2,73,0,74,0,37,2,146,1,148,1,168,1,117,1,75,0,170,1,169,1,92,2,138,0,98,2,102,2,11,0,136,1,76,0,163,1,181,0,3,0,102,2,32,0,15,1,113,1,75,1,75,1,237,1,102,2,31,0,149,0,96,2,96,2,96,2,95,2,15,0,166,1,109,1,102,2,8,0,137,0,233,1,136,0,190,0,96,2,96,2,96,2,95,2,15,0,229,1,176,0,135,0,7,0,252,0,221,1,152,1,174,0,133,0,175,0,218,1,57,0,56,0,132,0,130,0,119,0,76,0,163,1,76,2,3,0,212,1,245,0,208,1,171,0,75,1,75,1,125,0,123,0,200,1,191,1,122,0,190,1,104,0,80,1,231,0,166,1,166,0,154,0,73,0,74,0,76,1,116,0,175,1,121,0,53,1,75,0,170,1,169,1,222,0,106,0,98,2,52,1,125,2,204,0,152,1,117,2,115,2,116,2,6,0,200,0,172,1,171,1,34,1,203,0,110,2,201,0,76,2,62,0,63,0,33,1,66,0,163,1,143,1,3,0,145,1,32,1,92,0,143,0,75,1,75,1,31,1,96,2,96,2,96,2,95,2,15,0,73,0,74,0,227,0,166,1,69,1,69,0,160,1,75,0,170,1,169,1,100,2,156,1,98,2,192,0,61,0,57,2,209,0,140,1,226,0,22,1,225,0,127,1,152,1,15,2,46,2,20,1,21,2,40,2,16,2,65,1,11,2,114,1,252,1,180,0,76,2,238,1,179,0,110,1,117,0,253,0,13,1,10,2,247,1,96,2,96,2,96,2,95,2,15,0,39,2,246,1,58,0,18,1,12,2,178,0,73,0,74,0,48,1,245,1,112,1,47,1,206,0,75,0,170,1,169,1,235,1,104,1,98,2,213,0,177,0,227,1,131,0,89,1,42,1,41,1,40,1,202,0,38,1,224,1,234,1,210,1,134,0,172,0,129,0,188,1,90,1,214,1,128,0,58,1,203,1,103,0,127,0,126,0,148,0,124,0,167,0,187,1,235,0,96,2,96,2,96,2,95,2,15,0,186,1,183,1,111,2,234,0,43,1,145,0,71,2,35,1,121,1,69,2,160,0,119,0,156,0,14,1,124,2,203,3,169,0,23,1,114,2,8,2,113,2,217,1,112,2,170,0,109,2,106,2,119,0,168,0,55,0,153,1,167,1,25,2,97,2,30,1,29,1,149,1,58,2,48,2,44,2,5,0,52,0,202,1,42,2,147,0,11,1,7,2,248,1,6,2,150,1,6,1,239,0,4,1,0,2,87,1,255,1,2,1,97,1,53,2,0,1,224,0,251,0,103,1,21,1,19,1,220,1,219,1,246,0,96,1,244,0,211,1,199,1,236,0,233,0,232,0,51,1,185,1,25,1,205,0,163,0,141,1,24,1,23,2,249,1,74,1,105,2,203,3,203,3,203,3,203,3,111,1,203,3,203,3,203,3,203,3,203,3,203,3,203,3,203,3,203,3,203,3,203,3,82,1,0,0,0,0,0,0,100,117,112,108,105,99,97,116,101,32,87,73,84,72,32,116,97,98,108,101,32,110,97,109,101,58,32,37,115,0,0,0,110,111,116,32,97,117,116,104,111,114,105,122,101,100,0,0,97,117,116,104,111,114,105,122,101,114,32,109,97,108,102,117,110,99,116,105,111,110,0,0,67,82,69,65,84,69,32,86,73,82,84,85,65,76,32,84,65,66,76,69,32,37,84,0,85,80,68,65,84,69,32,37,81,46,37,115,32,83,69,84,32,116,121,112,101,61,39,116,97,98,108,101,39,44,32,110,97,109,101,61,37,81,44,32,116,98,108,95,110,97,109,101,61,37,81,44,32,114,111,111,116,112,97,103,101,61,48,44,32,115,113,108,61,37,81,32,87,72,69,82,69,32,114,111,119,105,100,61,35,37,100,0,110,97,109,101,61,39,37,113,39,32,65,78,68,32,116,121,112,101,61,39,116,97,98,108,101,39,0,0,0,0,0,0,118,105,114,116,117,97,108,32,116,97,98,108,101,115,32,109,97,121,32,110,111,116,32,98,101,32,97,108,116,101,114,101,100,0,0,0,0,0,0,0,67,97,110,110,111,116,32,97,100,100,32,97,32,99,111,108,117,109,110,32,116,111,32,97,32,118,105,101,119,0,0,0,115,113,108,105,116,101,95,97,108,116,101,114,116,97,98,95,37,115,0,0,0,0,0,0,117,110,97,98,108,101,32,116,111,32,111,112,101,110,32,97,32,116,101,109,112,111,114,97,114,121,32,100,97,116,97,98,97,115,101,32,102,105,108,101,32,102,111,114,32,115,116,111,114,105,110,103,32,116,101,109,112,111,114,97,114,121,32,116,97,98,108,101,115,0,0,0,115,113,108,105,116,101,95,0,116,97,98,108,101,32,37,115,32,109,97,121,32,110,111,116,32,98,101,32,97,108,116,101,114,101,100,0,0,0,0,0,67,97,110,110,111,116,32,97,100,100,32,97,32,80,82,73,77,65,82,89,32,75,69,89,32,99,111,108,117,109,110,0,67,97,110,110,111,116,32,97,100,100,32,97,32,85,78,73,81,85,69,32,99,111,108,117,109,110,0,0,0,0,0,0,67,97,110,110,111,116,32,97,100,100,32,97,32,82,69,70,69,82,69,78,67,69,83,32,99,111,108,117,109,110,32,119,105,116,104,32,110,111,110,45,78,85,76,76,32,100,101,102,97,117,108,116,32,118,97,108,117,101,0,0,0,0,0,0,67,97,110,110,111,116,32,97,100,100,32,97,32,78,79,84,32,78,85,76,76,32,99,111,108,117,109,110,32,119,105,116,104,32,100,101,102,97,117,108,116,32,118,97,108,117,101,32,78,85,76,76,0,0,0,0,67,97,110,110,111,116,32,97,100,100,32,97,32,99,111,108,117,109,110,32,119,105,116,104,32,110,111,110,45,99,111,110,115,116,97,110,116,32,100,101,102,97,117,108,116,0,0,0,85,80,68,65,84,69,32,34,37,119,34,46,37,115,32,83,69,84,32,115,113,108,32,61,32,115,117,98,115,116,114,40,115,113,108,44,49,44,37,100,41,32,124,124,32,39,44,32,39,32,124,124,32,37,81,32,124,124,32,115,117,98,115,116,114,40,115,113,108,44,37,100,41,32,87,72,69,82,69,32,116,121,112,101,32,61,32,39,116,97,98,108,101,39,32,65,78,68,32,110,97,109,101,32,61,32,37,81,0,0,0,0,116,98,108,95,110,97,109,101,61,37,81,0,0,0,0,0,116,121,112,101,61,39,116,114,105,103,103,101,114,39,32,65,78,68,32,40,37,115,41,0,110,97,109,101,61,37,81,0,37,115,32,79,82,32,110,97,109,101,61,37,81,0,0,0,45,0,0,0,0,0,0,0,116,104,101,114,101,32,105,115,32,97,108,114,101,97,100,121,32,97,110,111,116,104,101,114,32,116,97,98,108,101,32,111,114,32,105,110,100,101,120,32,119,105,116,104,32,116,104,105,115,32,110,97,109,101,58,32,37,115,0,0,0,0,0,0,118,105,101,119,32,37,115,32,109,97,121,32,110,111,116,32,98,101,32,97,108,116,101,114,101,100,0,0,0,0,0,0,85,80,68,65,84,69,32,34,37,119,34,46,37,115,32,83,69,84,32,115,113,108,32,61,32,115,113,108,105,116,101,95,114,101,110,97,109,101,95,112,97,114,101,110,116,40,115,113,108,44,32,37,81,44,32,37,81,41,32,87,72,69,82,69,32,37,115,59,0,0,0,0,85,80,68,65,84,69,32,37,81,46,37,115,32,83,69,84,32,115,113,108,32,61,32,67,65,83,69,32,87,72,69,78,32,116,121,112,101,32,61,32,39,116,114,105,103,103,101,114,39,32,84,72,69,78,32,115,113,108,105,116,101,95,114,101,110,97,109,101,95,116,114,105,103,103,101,114,40,115,113,108,44,32,37,81,41,69,76,83,69,32,115,113,108,105,116,101,95,114,101,110,97,109,101,95,116,97,98,108,101,40,115,113,108,44,32,37,81,41,32,69,78,68,44,32,116,98,108,95,110,97,109,101,32,61,32,37,81,44,32,110,97,109,101,32,61,32,67,65,83,69,32,87,72,69,78,32,116,121,112,101,61,39,116,97,98,108,101,39,32,84,72,69,78,32,37,81,32,87,72,69,78,32,110,97,109,101,32,76,73,75,69,32,39,115,113,108,105,116,101,95,97,117,116,111,105,110,100,101,120,37,37,39,32,65,78,68,32,116,121,112,101,61,39,105,110,100,101,120,39,32,84,72,69,78,32,39,115,113,108,105,116,101,95,97,117,116,111,105,110,100,101,120,95,39,32,124,124,32,37,81,32,124,124,32,115,117,98,115,116,114,40,110,97,109,101,44,37,100,43,49,56,41,32,69,76,83,69,32,110,97,109,101,32,69,78,68,32,87,72,69,82,69,32,116,98,108,95,110,97,109,101,61,37,81,32,67,79,76,76,65,84,69,32,110,111,99,97,115,101,32,65,78,68,32,40,116,121,112,101,61,39,116,97,98,108,101,39,32,79,82,32,116,121,112,101,61,39,105,110,100,101,120,39,32,79,82,32,116,121,112,101,61,39,116,114,105,103,103,101,114,39,41,59,0,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,0,85,80,68,65,84,69,32,34,37,119,34,46,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,32,115,101,116,32,110,97,109,101,32,61,32,37,81,32,87,72,69,82,69,32,110,97,109,101,32,61,32,37,81,0,0,0,0,0,0,0,85,80,68,65,84,69,32,115,113,108,105,116,101,95,116,101,109,112,95,109,97,115,116,101,114,32,83,69,84,32,115,113,108,32,61,32,115,113,108,105,116,101,95,114,101,110,97,109,101,95,116,114,105,103,103,101,114,40,115,113,108,44,32,37,81,41,44,32,116,98,108,95,110,97,109,101,32,61,32,37,81,32,87,72,69,82,69,32,37,115,59,0,0,0,0,0,118,105,101,119,32,37,115,32,105,115,32,99,105,114,99,117,108,97,114,108,121,32,100,101,102,105,110,101,100,0,0,0,110,111,32,115,117,99,104,32,99,111,108,108,97,116,105,111,110,32,115,101,113,117,101,110,99,101,58,32,37,115,0,0,3,2,1,0,0,0,0,0,37,115,58,37,100,0,0,0,97,32,71,82,79,85,80,32,66,89,32,99,108,97,117,115,101,32,105,115,32,114,101,113,117,105,114,101,100,32,98,101,102,111,114,101,32,72,65,86,73,78,71,0,0,0,0,0,79,82,68,69,82,0,0,0,71,82,79,85,80,0,0,0,97,103,103,114,101,103,97,116,101,32,102,117,110,99,116,105,111,110,115,32,97,114,101,32,110,111,116,32,97,108,108,111,119,101,100,32,105,110,32,116,104,101,32,71,82,79,85,80,32,66,89,32,99,108,97,117,115,101,0,0,0,0,0,0,116,111,111,32,109,97,110,121,32,116,101,114,109,115,32,105,110,32,79,82,68,69,82,32,66,89,32,99,108,97,117,115,101,0,0,0,0,0,0,0,37,114,32,79,82,68,69,82,32,66,89,32,116,101,114,109,32,100,111,101,115,32,110,111,116,32,109,97,116,99,104,32,97,110,121,32,99,111,108,117,109,110,32,105,110,32,116,104,101,32,114,101,115,117,108,116,32,115,101,116,0,0,0,0,37,114,32,37,115,32,66,89,32,116,101,114,109,32,111,117,116,32,111,102,32,114,97,110,103,101,32,45,32,115,104,111,117,108,100,32,98,101,32,98,101,116,119,101,101,110,32,49,32,97,110,100,32,37,100,0,116,111,111,32,109,97,110,121,32,116,101,114,109,115,32,105,110,32,37,115,32,66,89,32,99,108,97,117,115,101,0,0,69,120,112,114,101,115,115,105,111,110,32,116,114,101,101,32,105,115,32,116,111,111,32,108,97,114,103,101,32,40,109,97,120,105,109,117,109,32,100,101,112,116,104,32,37,100,41,0,102,117,110,99,116,105,111,110,115,0,0,0,0,0,0,0,115,101,99,111,110,100,32,97,114,103,117,109,101,110,116,32,116,111,32,108,105,107,101,108,105,104,111,111,100,40,41,32,109,117,115,116,32,98,101,32,97,32,99,111,110,115,116,97,110,116,32,98,101,116,119,101,101,110,32,48,46,48,32,97,110,100,32,49,46,48,0,0,110,111,116,32,97,117,116,104,111,114,105,122,101,100,32,116,111,32,117,115,101,32,102,117,110,99,116,105,111,110,58,32,37,115,0,0,0,0,0,0,109,105,115,117,115,101,32,111,102,32,97,103,103,114,101,103,97,116,101,32,102,117,110,99,116,105,111,110,32,37,46,42,115,40,41,0,0,0,0,0,110,111,32,115,117,99,104,32,102,117,110,99,116,105,111,110,58,32,37,46,42,115,0,0,119,114,111,110,103,32,110,117,109,98,101,114,32,111,102,32,97,114,103,117,109,101,110,116,115,32,116,111,32,102,117,110,99,116,105,111,110,32,37,46,42,115,40,41,0,0,0,0,115,117,98,113,117,101,114,105,101,115,0,0,0,0,0,0,112,97,114,97,109,101,116,101,114,115,0,0,0,0,0,0,37,115,32,112,114,111,104,105,98,105,116,101,100,32,105,110,32,67,72,69,67,75,32,99,111,110,115,116,114,97,105,110,116,115,0,0,0,0,0,0,37,115,32,112,114,111,104,105,98,105,116,101,100,32,105,110,32,112,97,114,116,105,97,108,32,105,110,100,101,120,32,87,72,69,82,69,32,99,108,97,117,115,101,115,0,0,0,0,110,101,119,0,0,0,0,0,111,108,100,0,0,0,0,0,109,105,115,117,115,101,32,111,102,32,97,108,105,97,115,101,100,32,97,103,103,114,101,103,97,116,101,32,37,115,0,0,110,111,32,115,117,99,104,32,99,111,108,117,109,110,0,0,97,109,98,105,103,117,111,117,115,32,99,111,108,117,109,110,32,110,97,109,101,0,0,0,37,115,58,32,37,115,46,37,115,46,37,115,0,0,0,0,37,115,58,32,37,115,46,37,115,0,0,0,0,0,0,0,37,115,58,32,37,115,0,0,97,99,99,101,115,115,32,116,111,32,37,115,46,37,115,46,37,115,32,105,115,32,112,114,111,104,105,98,105,116,101,100,0,0,0,0,0,0,0,0,97,99,99,101,115,115,32,116,111,32,37,115,46,37,115,32,105,115,32,112,114,111,104,105,98,105,116,101,100,0,0,0,115,113,108,105,116,101,95,115,113,95,37,112,0,0,0,0,116,111,111,32,109,97,110,121,32,114,101,102,101,114,101,110,99,101,115,32,116,111,32,34,37,115,34,58,32,109,97,120,32,54,53,53,51,53,0,0,42,0,0,0,0,0,0,0,37,115,46,37,115,0,0,0,37,115,46,37,115,46,37,115,0,0,0,0,0,0,0,0,110,111,32,115,117,99,104,32,116,97,98,108,101,58,32,37,115,0,0,0,0,0,0,0,110,111,32,116,97,98,108,101,115,32,115,112,101,99,105,102,105,101,100,0,0,0,0,0,116,111,111,32,109,97,110,121,32,99,111,108,117,109,110,115,32,105,110,32,114,101,115,117,108,116,32,115,101,116,0,0,97,32,78,65,84,85,82,65,76,32,106,111,105,110,32,109,97,121,32,110,111,116,32,104,97,118,101,32,97,110,32,79,78,32,111,114,32,85,83,73,78,71,32,99,108,97,117,115,101,0,0,0,0,0,0,0,99,97,110,110,111,116,32,104,97,118,101,32,98,111,116,104,32,79,78,32,97,110,100,32,85,83,73,78,71,32,99,108,97,117,115,101,115,32,105,110,32,116,104,101,32,115,97,109,101,32,106,111,105,110,0,0,99,97,110,110,111,116,32,106,111,105,110,32,117,115,105,110,103,32,99,111,108,117,109,110,32,37,115,32,45,32,99,111,108,117,109,110,32,110,111,116,32,112,114,101,115,101,110,116,32,105,110,32,98,111,116,104,32,116,97,98,108,101,115,0,110,111,32,115,117,99,104,32,105,110,100,101,120,58,32,37,115,0,0,0,0,0,0,0,109,117,108,116,105,112,108,101,32,114,101,102,101,114,101,110,99,101,115,32,116,111,32,114,101,99,117,114,115,105,118,101,32,116,97,98,108,101,58,32,37,115,0,0,0,0,0,0,99,105,114,99,117,108,97,114,32,114,101,102,101,114,101,110,99,101,58,32,37,115,0,0,116,97,98,108,101,32,37,115,32,104,97,115,32,37,100,32,118,97,108,117,101,115,32,102,111,114,32,37,100,32,99,111,108,117,109,110,115,0,0,0,109,117,108,116,105,112,108,101,32,114,101,99,117,114,115,105,118,101,32,114,101,102,101,114,101,110,99,101,115,58,32,37,115,0,0,0,0,0,0,0,114,101,99,117,114,115,105,118,101,32,114,101,102,101,114,101,110,99,101,32,105,110,32,97,32,115,117,98,113,117,101,114,121,58,32,37,115,0,0,0,110,111,32,115,117,99,104,32,109,111,100,117,108,101,58,32,37,115,0,0,0,0,0,0,118,116,97,98,108,101,32,99,111,110,115,116,114,117,99,116,111,114,32,102,97,105,108,101,100,58,32,37,115,0,0,0,118,116,97,98,108,101,32,99,111,110,115,116,114,117,99,116,111,114,32,100,105,100,32,110,111,116,32,100,101,99,108,97,114,101,32,115,99,104,101,109,97,58,32,37,115,0,0,0,104,105,100,100,101,110,0,0,32,104,105,100,100,101,110,0,111,98,106,101,99,116,32,110,97,109,101,32,114,101,115,101,114,118,101,100,32,102,111,114,32,105,110,116,101,114,110,97,108,32,117,115,101,58,32,37,115,0,0,0,0,0,0,0,99,111,114,114,117,112,116,32,100,97,116,97,98,97,115,101,0,0,0,0,0,0,0,0,117,110,107,110,111,119,110,32,100,97,116,97,98,97,115,101,32,37,84,0,0,0,0,0,105,100,120,0,0,0,0,0,116,98,108,0,0,0,0,0,2,0,1,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0,0,0,0,56,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,1,0,0,0,0,0,0,0,0,0,53,0,0,0,0,0,0,0,0,0,0,0,40,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,66,66,66,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,54,0,0,0,0,0,0,0,0,0,0,0,8,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,115,116,97,116,95,103,101,116,0,0,0,0,0,0,0,0,37,108,108,117,0,0,0,0,32,37,108,108,117,0,0,0,115,116,97,116,95,112,117,115,104,0,0,0,0,0,0,0,115,116,97,116,95,105,110,105,116,0,0,0,0,0,0,0,72,52,0,0,96,112,0,0,112,112,0,0,0,0,0,0,128,112,0,0,0,0,0,0,116,98,108,44,105,100,120,44,115,116,97,116,0,0,0,0,115,113,108,105,116,101,95,115,116,97,116,51,0,0,0,0,115,113,108,105,116,101,95,115,116,97,116,52,0,0,0,0,67,82,69,65,84,69,32,84,65,66,76,69,32,37,81,46,37,115,40,37,115,41,0,0,68,69,76,69,84,69,32,70,82,79,77,32,37,81,46,37,115,32,87,72,69,82,69,32,37,115,61,37,81,0,0,0,117,110,97,98,108,101,32,116,111,32,105,100,101,110,116,105,102,121,32,116,104,101,32,111,98,106,101,99,116,32,116,111,32,98,101,32,114,101,105,110,100,101,120,101,100,0,0,0,44,32,0,0,0,0,0,0,46,0,0,0,0,0,0,0,109,105,115,117,115,101,32,111,102,32,97,103,103,114,101,103,97,116,101,58,32,37,115,40],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+18712);allocate([41,0,0,0,0,0,0,0,117,110,107,110,111,119,110,32,102,117,110,99,116,105,111,110,58,32,37,46,42,115,40,41,0,0,0,0,0,0,0,0,82,65,73,83,69,40,41,32,109,97,121,32,111,110,108,121,32,98,101,32,117,115,101,100,32,119,105,116,104,105,110,32,97,32,116,114,105,103,103,101,114,45,112,114,111,103,114,97,109,0,0,0,0,0,0,0,69,88,69,67,85,84,69,32,37,115,37,115,32,83,85,66,81,85,69,82,89,32,37,100,0,0,0,0,0,0,0,0,67,79,82,82,69,76,65,84,69,68,32,0,0,0,0,0,76,73,83,84,0,0,0,0,83,67,65,76,65,82,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,120,0,0,0,0,0,0,104,101,120,32,108,105,116,101,114,97,108,32,116,111,111,32,98,105,103,58,32,37,115,0,1,0,1,0,0,0,0,0,0,0,0,0,55,0,0,0,0,0,0,0,0,0,0,0,32,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,115,113,108,105,116,101,95,100,101,116,97,99,104,0,0,0,110,111,32,115,117,99,104,32,100,97,116,97,98,97,115,101,58,32,37,115,0,0,0,0,99,97,110,110,111,116,32,100,101,116,97,99,104,32,100,97,116,97,98,97,115,101,32,37,115,0,0,0,0,0,0,0,99,97,110,110,111,116,32,68,69,84,65,67,72,32,100,97,116,97,98,97,115,101,32,119,105,116,104,105,110,32,116,114,97,110,115,97,99,116,105,111,110,0,0,0,0,0,0,0,100,97,116,97,98,97,115,101,32,37,115,32,105,115,32,108,111,99,107,101,100,0,0,0,3,0,1,0,0,0,0,0,0,0,0,0,56,0,0,0,0,0,0,0,0,0,0,0,216,114,0,0,0,0,0,0,0,0,0,0,0,0,0,0,115,113,108,105,116,101,95,97,116,116,97,99,104,0,0,0,116,111,111,32,109,97,110,121,32,97,116,116,97,99,104,101,100,32,100,97,116,97,98,97,115,101,115,32,45,32,109,97,120,32,37,100,0,0,0,0,99,97,110,110,111,116,32,65,84,84,65,67,72,32,100,97,116,97,98,97,115,101,32,119,105,116,104,105,110,32,116,114,97,110,115,97,99,116,105,111,110,0,0,0,0,0,0,0,100,97,116,97,98,97,115,101,32,37,115,32,105,115,32,97,108,114,101,97,100,121,32,105,110,32,117,115,101,0,0,0,100,97,116,97,98,97,115,101,32,105,115,32,97,108,114,101,97,100,121,32,97,116,116,97,99,104,101,100,0,0,0,0,117,110,97,98,108,101,32,116,111,32,111,112,101,110,32,100,97,116,97,98,97,115,101,58,32,37,115,0,0,0,0,0,110,111,32,115,117,99,104,32,116,114,105,103,103,101,114,58,32,37,83,0,0,0,0,0,108,0,246,0,97,0,1,0,47,0,1,2,78,2,247,1,97,0,1,0,47,0,0,2,78,2,247,1,95,0,0,0,9,0,254,0,0,0,0,0,116,101,109,112,111,114,97,114,121,32,116,114,105,103,103,101,114,32,109,97,121,32,110,111,116,32,104,97,118,101,32,113,117,97,108,105,102,105,101,100,32,110,97,109,101,0,0,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,116,114,105,103,103,101,114,115,32,111,110,32,118,105,114,116,117,97,108,32,116,97,98,108,101,115,0,0,0,0,0,0,0,0,116,114,105,103,103,101,114,32,37,84,32,97,108,114,101,97,100,121,32,101,120,105,115,116,115,0,0,0,0,0,0,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,116,114,105,103,103,101,114,32,111,110,32,115,121,115,116,101,109,32,116,97,98,108,101,0,0,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,37,115,32,116,114,105,103,103,101,114,32,111,110,32,118,105,101,119,58,32,37,83,0,0,0,0,66,69,70,79,82,69,0,0,65,70,84,69,82,0,0,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,73,78,83,84,69,65,68,32,79,70,32,116,114,105,103,103,101,114,32,111,110,32,116,97,98,108,101,58,32,37,83,0,0,0,37,115,32,37,84,32,99,97,110,110,111,116,32,114,101,102,101,114,101,110,99,101,32,111,98,106,101,99,116,115,32,105,110,32,100,97,116,97,98,97,115,101,32,37,115,0,0,0,37,115,32,99,97,110,110,111,116,32,117,115,101,32,118,97,114,105,97,98,108,101,115,0,73,78,83,69,82,84,32,73,78,84,79,32,37,81,46,37,115,32,86,65,76,85,69,83,40,39,116,114,105,103,103,101,114,39,44,37,81,44,37,81,44,48,44,39,67,82,69,65,84,69,32,84,82,73,71,71,69,82,32,37,113,39,41,0,116,121,112,101,61,39,116,114,105,103,103,101,114,39,32,65,78,68,32,110,97,109,101,61,39,37,113,39,0,0,0,0,45,37,84,0,0,0,0,0,114,101,115,117,108,116,0,0,16,126,0,0,0,0,0,0,8,0,0,0,0,121,0,0,1,1,0,0,0,0,0,0,32,126,0,0,2,0,0,0,0,0,16,0,48,126,0,0,3,0,0,0,0,0,0,0,128,120,0,0,4,1,0,0,0,0,0,0,64,126,0,0,2,0,0,0,16,0,0,0,80,126,0,0,5,0,0,0,0,0,0,0,104,126,0,0,2,0,0,0,8,0,0,0,128,126,0,0,6,0,0,0,0,0,0,0,144,126,0,0,7,0,0,0,0,0,0,0,160,126,0,0,2,0,0,0,128,0,0,0,176,126,0,0,0,2,0,0,15,0,0,0,192,126,0,0,9,1,0,0,0,0,0,0,208,126,0,0,10,1,0,0,0,0,0,0,232,126,0,0,2,0,0,0,0,0,0,1,0,127,0,0,2,0,0,0,0,1,0,0,40,124,0,0,11,0,0,0,0,0,0,0,24,127,0,0,12,1,0,0,0,0,0,0,48,127,0,0,13,1,0,0,0,0,0,0,72,127,0,0,2,0,0,0,0,0,8,0,88,127,0,0,0,2,0,0,0,0,0,0,104,127,0,0,2,0,0,0,32,0,0,0,128,127,0,0,2,0,0,0,4,0,0,0,144,127,0,0,2,0,0,0,0,32,0,0,176,127,0,0,14,1,0,0,0,0,0,0,200,127,0,0,15,1,0,0,0,0,0,0,216,127,0,0,16,1,0,0,0,0,0,0,232,127,0,0,15,1,0,0,1,0,0,0,232,122,0,0,17,1,0,0,0,0,0,0,216,120,0,0,18,1,0,0,0,0,0,0,232,120,0,0,19,0,0,0,0,0,0,0,248,127,0,0,2,0,0,0,0,128,0,0,200,120,0,0,21,0,0,0,0,0,0,0,16,128,0,0,22,1,0,0,0,0,0,0,40,121,0,0,23,0,0,0,0,0,0,0,32,128,0,0,22,1,0,0,0,0,0,0,144,120,0,0,24,0,0,0,0,0,0,0,48,128,0,0,2,0,0,0,0,0,0,2,64,128,0,0,17,1,0,0,0,0,0,0,80,128,0,0,2,0,0,0,0,64,0,0,104,128,0,0,2,0,0,0,0,0,4,0,128,128,0,0,2,0,0,0,0,0,2,0,160,128,0,0,0,0,0,0,1,0,0,0,160,120,0,0,25,0,0,0,0,0,0,0,176,128,0,0,2,0,0,0,64,0,0,0,200,128,0,0,26,0,0,0,0,0,0,0,232,124,0,0,27,0,0,0,0,0,0,0,216,128,0,0,28,1,0,0,0,0,0,0,128,121,0,0,29,1,0,0,0,0,0,0,224,128,0,0,30,1,0,0,0,0,0,0,56,121,0,0,31,0,0,0,0,0,0,0,72,121,0,0,32,0,0,0,0,0,0,0,248,124,0,0,33,0,0,0,0,0,0,0,240,128,0,0,0,0,0,0,6,0,0,0,200,124,0,0,34,0,0,0,0,0,0,0,0,129,0,0,35,1,0,0,0,0,0,0,16,129,0,0,2,0,0,0,0,8,1,0,0,0,0,0,4,0,0,0,51,0,1,3,137,1,8,0,25,0,2,0,90,1,2,1,137,1,8,0,25,0,1,0,156,0,0,0,35,1,1,0,0,0,0,0,99,97,99,104,101,95,115,105,122,101,0,0,0,0,0,0,112,97,103,101,95,115,105,122,101,0,0,0,0,0,0,0,115,101,99,117,114,101,95,100,101,108,101,116,101,0,0,0,110,111,114,109,97,108,0,0,101,120,99,108,117,115,105,118,101,0,0,0,0,0,0,0,108,111,99,107,105,110,103,95,109,111,100,101,0,0,0,0,106,111,117,114,110,97,108,95,109,111,100,101,0,0,0,0,106,111,117,114,110,97,108,95,115,105,122,101,95,108,105,109,105,116,0,0,0,0,0,0,97,117,116,111,95,118,97,99,117,117,109,0,0,0,0,0,4,0,1,0,51,0,1,4,45,1,0,0,24,0,2,0,25,0,1,0,52,0,7,1,109,109,97,112,95,115,105,122,101,0,0,0,0,0,0,0,116,101,109,112,95,115,116,111,114,101,0,0,0,0,0,0,116,101,109,112,95,115,116,111,114,101,95,100,105,114,101,99,116,111,114,121,0,0,0,0,110,111,116,32,97,32,119,114,105,116,97,98,108,101,32,100,105,114,101,99,116,111,114,121,0,0,0,0,0,0,0,0,115,121,110,99,104,114,111,110,111,117,115,0,0,0,0,0,83,97,102,101,116,121,32,108,101,118,101,108,32,109,97,121,32,110,111,116,32,98,101,32,99,104,97,110,103,101,100,32,105,110,115,105,100,101,32,97,32,116,114,97,110,115,97,99,116,105,111,110,0,0,0,0,99,105,100,0,0,0,0,0,110,97,109,101,0,0,0,0,116,121,112,101,0,0,0,0,110,111,116,110,117,108,108,0,100,102,108,116,95,118,97,108,117,101,0,0,0,0,0,0,112,107,0,0,0,0,0,0,116,97,98,108,101,0,0,0,119,105,100,116,104,0,0,0,104,101,105,103,104,116,0,0,115,101,113,110,111,0,0,0,100,101,115,99,0,0,0,0,99,111,108,108,0,0,0,0,107,101,121,0,0,0,0,0,115,101,113,0,0,0,0,0,117,110,105,113,117,101,0,0,111,114,105,103,105,110,0,0,112,97,114,116,105,97,108,0,99,0,0,0,0,0,0,0,117,0,0,0,0,0,0,0,88,122,0,0,96,122,0,0,248,121,0,0,0,0,0,0,102,105,108,101,0,0,0,0,105,100,0,0,0,0,0,0,102,114,111,109,0,0,0,0,116,111,0,0,0,0,0,0,111,110,95,117,112,100,97,116,101,0,0,0,0,0,0,0,111,110,95,100,101,108,101,116,101,0,0,0,0,0,0,0,109,97,116,99,104,0,0,0,78,79,78,69,0,0,0,0,112,97,114,101,110,116,0,0,102,107,105,100,0,0,0,0,138,1,0,0,97,0,3,0,35,3,1,0,0,0,0,0,105,110,116,101,103,114,105,116,121,95,99,104,101,99,107,0,42,42,42,32,105,110,32,100,97,116,97,98,97,115,101,32,37,115,32,42,42,42,10,0,78,85,76,76,32,118,97,108,117,101,32,105,110,32,37,115,46,37,115,0,0,0,0,0,114,111,119,32,0,0,0,0,32,109,105,115,115,105,110,103,32,102,114,111,109,32,105,110,100,101,120,32,0,0,0,0,110,111,110,45,117,110,105,113,117,101,32,101,110,116,114,121,32,105,110,32,105,110,100,101,120,32,0,0,0,0,0,0,119,114,111,110,103,32,35,32,111,102,32,101,110,116,114,105,101,115,32,105,110,32,105,110,100,101,120,32,0,0,0,0,111,107,0,0,0,0,0,0,216,123,0,0,1,0,0,0,224,123,0,0,1,0,0,0,232,123,0,0,2,0,0,0,248,123,0,0,3,0,0,0,8,124,0,0,2,0,0,0,16,124,0,0,3,0,0,0,24,124,0,0,0,0,0,0,32,124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,85,84,70,56,0,0,0,0,85,84,70,45,56,0,0,0,85,84,70,45,49,54,108,101,0,0,0,0,0,0,0,0,85,84,70,45,49,54,98,101,0,0,0,0,0,0,0,0,85,84,70,49,54,108,101,0,85,84,70,49,54,98,101,0,85,84,70,45,49,54,0,0,85,84,70,49,54,0,0,0,101,110,99,111,100,105,110,103,0,0,0,0,0,0,0,0,117,110,115,117,112,112,111,114,116,101,100,32,101,110,99,111,100,105,110,103,58,32,37,115,0,0,0,0,0,0,0,0,4,0,1,0,25,0,1,0,52,0,0,1,0,0,0,0,4,0,0,0,51,0,1,0,35,1,1,0,0,0,0,0,99,111,109,112,105,108,101,95,111,112,116,105,111,110,0,0,102,117,108,108,0,0,0,0,114,101,115,116,97,114,116,0,116,114,117,110,99,97,116,101,0,0,0,0,0,0,0,0,98,117,115,121,0,0,0,0,108,111,103,0,0,0,0,0,99,104,101,99,107,112,111,105,110,116,101,100,0,0,0,0,119,97,108,95,97,117,116,111,99,104,101,99,107,112,111,105,110,116,0,0,0,0,0,0,116,105,109,101,111,117,116,0,115,111,102,116,95,104,101,97,112,95,108,105,109,105,116,0,116,104,114,101,97,100,115,0,37,95,0,0,0,0,0,0,102,111,114,101,105,103,110,32,107,101,121,32,109,105,115,109,97,116,99,104,32,45,32,34,37,119,34,32,114,101,102,101,114,101,110,99,105,110,103,32,34,37,119,34,0,0,0,0,83,69,84,32,78,85,76,76,0,0,0,0,0,0,0,0,83,69,84,32,68,69,70,65,85,76,84,0,0,0,0,0,67,65,83,67,65,68,69,0,82,69,83,84,82,73,67,84,0,0,0,0,0,0,0,0,78,79,32,65,67,84,73,79,78,0,0,0,0,0,0,0,116,101,109,112,111,114,97,114,121,32,115,116,111,114,97,103,101,32,99,97,110,110,111,116,32,98,101,32,99,104,97,110,103,101,100,32,102,114,111,109,32,119,105,116,104,105,110,32,97,32,116,114,97,110,115,97,99,116,105,111,110,0,0,0,110,111,110,101,0,0,0,0,105,110,99,114,101,109,101,110,116,97,108,0,0,0,0,0,240,125,0,0,248,125,0,0,0,126,0,0,152,124,0,0,64,59,0,0,8,126,0,0,100,101,108,101,116,101,0,0,112,101,114,115,105,115,116,0,111,102,102,0,0,0,0,0,119,97,108,0,0,0,0,0,97,112,112,108,105,99,97,116,105,111,110,95,105,100,0,0,97,117,116,111,109,97,116,105,99,95,105,110,100,101,120,0,98,117,115,121,95,116,105,109,101,111,117,116,0,0,0,0,99,97,99,104,101,95,115,112,105,108,108,0,0,0,0,0,99,97,115,101,95,115,101,110,115,105,116,105,118,101,95,108,105,107,101,0,0,0,0,0,99,104,101,99,107,112,111,105,110,116,95,102,117,108,108,102,115,121,110,99,0,0,0,0,99,111,108,108,97,116,105,111,110,95,108,105,115,116,0,0,99,111,109,112,105,108,101,95,111,112,116,105,111,110,115,0,99,111,117,110,116,95,99,104,97,110,103,101,115,0,0,0,100,97,116,97,95,118,101,114,115,105,111,110,0,0,0,0,100,97,116,97,98,97,115,101,95,108,105,115,116,0,0,0,100,101,102,97,117,108,116,95,99,97,99,104,101,95,115,105,122,101,0,0,0,0,0,0,100,101,102,101,114,95,102,111,114,101,105,103,110,95,107,101,121,115,0,0,0,0,0,0,101,109,112,116,121,95,114,101,115,117,108,116,95,99,97,108,108,98,97,99,107,115,0,0,102,111,114,101,105,103,110,95,107,101,121,95,99,104,101,99,107,0,0,0,0,0,0,0,102,111,114,101,105,103,110,95,107,101,121,95,108,105,115,116,0,0,0,0,0,0,0,0,102,111,114,101,105,103,110,95,107,101,121,115,0,0,0,0,102,114,101,101,108,105,115,116,95,99,111,117,110,116,0,0,102,117,108,108,95,99,111,108,117,109,110,95,110,97,109,101,115,0,0,0,0,0,0,0,102,117,108,108,102,115,121,110,99,0,0,0,0,0,0,0,105,103,110,111,114,101,95,99,104,101,99,107,95,99,111,110,115,116,114,97,105,110,116,115,0,0,0,0,0,0,0,0,105,110,99,114,101,109,101,110,116,97,108,95,118,97,99,117,117,109,0,0,0,0,0,0,105,110,100,101,120,95,105,110,102,111,0,0,0,0,0,0,105,110,100,101,120,95,108,105,115,116,0,0,0,0,0,0,105,110,100,101,120,95,120,105,110,102,111,0,0,0,0,0,108,101,103,97,99,121,95,102,105,108,101,95,102,111,114,109,97,116,0,0,0,0,0,0,109,97,120,95,112,97,103,101,95,99,111,117,110,116,0,0,112,97,103,101,95,99,111,117,110,116,0,0,0,0,0,0,113,117,101,114,121,95,111,110,108,121,0,0,0,0,0,0,113,117,105,99,107,95,99,104,101,99,107,0,0,0,0,0,114,101,97,100,95,117,110,99,111,109,109,105,116,116,101,100,0,0,0,0,0,0,0,0,114,101,99,117,114,115,105,118,101,95,116,114,105,103,103,101,114,115,0,0,0,0,0,0,114,101,118,101,114,115,101,95,117,110,111,114,100,101,114,101,100,95,115,101,108,101,99,116,115,0,0,0,0,0,0,0,115,99,104,101,109,97,95,118,101,114,115,105,111,110,0,0,115,104,111,114,116,95,99,111,108,117,109,110,95,110,97,109,101,115,0,0,0,0,0,0,115,104,114,105,110,107,95,109,101,109,111,114,121,0,0,0,115,116,97,116,115,0,0,0,116,97,98,108,101,95,105,110,102,111,0,0,0,0,0,0,117,115,101,114,95,118,101,114,115,105,111,110,0,0,0,0,119,97,108,95,99,104,101,99,107,112,111,105,110,116,0,0,119,114,105,116,97,98,108,101,95,115,99,104,101,109,97,0,110,111,32,115,117,99,104,32,105,110,100,101,120,58,32,37,83,0,0,0,0,0,0,0,105,110,100,101,120,32,97,115,115,111,99,105,97,116,101,100,32,119,105,116,104,32,85,78,73,81,85,69,32,111,114,32,80,82,73,77,65,82,89,32,75,69,89,32,99,111,110,115,116,114,97,105,110,116,32,99,97,110,110,111,116,32,98,101,32,100,114,111,112,112,101,100,0,0,0,0,0,0,0,0,68,69,76,69,84,69,32,70,82,79,77,32,37,81,46,37,115,32,87,72,69,82,69,32,110,97,109,101,61,37,81,32,65,78,68,32,116,121,112,101,61,39,105,110,100,101,120,39,0,0,0,0,0,0,0,0,85,80,68,65,84,69,32,37,81,46,37,115,32,83,69,84,32,114,111,111,116,112,97,103,101,61,37,100,32,87,72,69,82,69,32,35,37,100,32,65,78,68,32,114,111,111,116,112,97,103,101,61,35,37,100,0,115,113,108,105,116,101,95,115,116,97,116,37,100,0,0,0,48,0,0,0,0,0,0,0,118,97,114,105,97,98,108,101,32,110,117,109,98,101,114,32,109,117,115,116,32,98,101,32,98,101,116,119,101,101,110,32,63,49,32,97,110,100,32,63,37,100,0,0,0,0,0,0,116,111,111,32,109,97,110,121,32,83,81,76,32,118,97,114,105,97,98,108,101,115,0,0,116,97,98,108,101,32,37,83,32,104,97,115,32,110,111,32,99,111,108,117,109,110,32,110,97,109,101,100,32,37,115,0,116,97,98,108,101,32,37,83,32,104,97,115,32,37,100,32,99,111,108,117,109,110,115,32,98,117,116,32,37,100,32,118,97,108,117,101,115,32,119,101,114,101,32,115,117,112,112,108,105,101,100,0,0,0,0,0,37,100,32,118,97,108,117,101,115,32,102,111,114,32,37,100,32,99,111,108,117,109,110,115,0,0,0,0,0,0,0,0,114,111,119,115,32,105,110,115,101,114,116,101,100,0,0,0,97,116,32,109,111,115,116,32,37,100,32,116,97,98,108,101,115,32,105,110,32,97,32,106,111,105,110,0,0,0,0,0,65,63,62,64,0,0,0,0,0,0,108,105,65,62,64,63,116,114,113,115,0,0,0,0,9,8,0,0,0,0,0,0,108,105,0,0,0,0,0,0,83,69,65,82,67,72,0,0,83,67,65,78,0,0,0,0,32,83,85,66,81,85,69,82,89,32,37,100,0,0,0,0,32,84,65,66,76,69,32,37,115,0,0,0,0,0,0,0,32,65,83,32,37,115,0,0,80,82,73,77,65,82,89,32,75,69,89,0,0,0,0,0,65,85,84,79,77,65,84,73,67,32,80,65,82,84,73,65,76,32,67,79,86,69,82,73,78,71,32,73,78,68,69,88,0,0,0,0,0,0,0,0,65,85,84,79,77,65,84,73,67,32,67,79,86,69,82,73,78,71,32,73,78,68,69,88,0,0,0,0,0,0,0,0,67,79,86,69,82,73,78,71,32,73,78,68,69,88,32,37,115,0,0,0,0,0,0,0,73,78,68,69,88,32,37,115,0,0,0,0,0,0,0,0,32,85,83,73,78,71,32,0,40,114,111,119,105,100,61,63,41,0,0,0,0,0,0,0,40,114,111,119,105,100,62,63,32,65,78,68,32,114,111,119,105,100,60,63,41,0,0,0,40,114,111,119,105,100,62,63,41,0,0,0,0,0,0,0,40,114,111,119,105,100,60,63,41,0,0,0,0,0,0,0,32,85,83,73,78,71,32,73,78,84,69,71,69,82,32,80,82,73,77,65,82,89,32,75,69,89,32,0,0,0,0,0,32,86,73,82,84,85,65,76,32,84,65,66,76,69,32,73,78,68,69,88,32,37,100,58,37,115,0,0,0,0,0,0,32,40,0,0,0,0,0,0,61,0,0,0,0,0,0,0,32,65,78,68,32,0,0,0,65,78,89,40,37,115,41,0,62,0,0,0,0,0,0,0,60,0,0,0,0,0,0,0,41,0,0,0,0,0,0,0,97,117,116,111,109,97,116,105,99,32,105,110,100,101,120,32,111,110,32,37,115,40,37,115,41,0,0,0,0,0,0,0,97,117,116,111,45,105,110,100,101,120,0,0,0,0,0,0,110,111,32,113,117,101,114,121,32,115,111,108,117,116,105,111,110,0,0,0,0,0,0,0,10,10,9,9,8,8,7,7,7,6,6,6,5,5,5,4,4,4,4,3,3,3,3,3,3,2,2,2,2,2,2,2,37,115,46,120,66,101,115,116,73,110,100,101,120,40,41,32,109,97,108,102,117,110,99,116,105,111,110,0,0,0,0,0,116,97,98,108,101,32,37,115,58,32,120,66,101,115,116,73,110,100,101,120,32,114,101,116,117,114,110,101,100,32,97,110,32,105,110,118,97,108,105,100,32,112,108,97,110,0,0,0,83,81,0,0,0,0,0,0,45,45,32,84,82,73,71,71,69,82,32,37,115,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,2,0,1,0,1,1,4,36,1,4,5,16,0,2,2,2,2,0,2,2,0,0,32,0,0,4,5,4,4,0,0,1,1,5,5,0,0,0,2,2,16,0,0,0,0,0,0,0,0,0,17,17,17,17,8,17,17,17,17,76,76,2,2,0,5,5,21,21,21,21,21,21,0,76,76,76,76,76,76,76,76,76,76,0,36,2,0,0,0,0,0,2,0,1,1,1,1,8,8,0,2,1,1,1,1,2,0,0,2,2,0,0,0,0,0,0,12,69,21,1,2,2,0,1,8,5,5,5,5,5,0,1,0,0,0,0,0,0,0,1,0,2,2,1,0,0,0,0,16,16,2,16,0,0,0,0,0,1,2,3,4,6,8,8,0,0,0,0,0,0,0,0,176,107,0,0,3,0,0,0,168,107,0,0,3,0,0,0,111,105,100,0,0,0,0,0,70,79,82,69,73,71,78,32,75,69,89,32,99,111,110,115,116,114,97,105,110,116,32,102,97,105,108,101,100,0,0,0,37,115,46,114,111,119,105,100,0,0,0,0,0,0,0,0,116,97,98,108,101,32,37,115,32,109,97,121,32,110,111,116,32,98,101,32,109,111,100,105,102,105,101,100,0,0,0,0,99,97,110,110,111,116,32,109,111,100,105,102,121,32,37,115,32,98,101,99,97,117,115,101,32,105,116,32,105,115,32,97,32,118,105,101,119,0,0,0,110,111,32,115,117,99,104,32,99,111,108,117,109,110,58,32,37,115,0,0,0,0,0,0,114,111,119,115,32,117,112,100,97,116,101,100,0,0,0,0,95,114,111,119,105,100,95,0,116,111,111,32,109,97,110,121,32,99,111,108,117,109,110,115,32,105,110,32,37,115,0,0,114,111,119,115,32,100,101,108,101,116,101,100,0,0,0,0,110,97,116,117,114,97,108,101,102,116,111,117,116,101,114,105,103,104,116,102,117,108,108,105,110,110,101,114,99,114,111,115,115,0,0,0,0,0,0,0,0,7,4,6,4,40,10,5,32,14,5,48,19,4,56,23,5,1,28,5,3,0,0,0,117,110,107,110,111,119,110,32,111,114,32,117,110,115,117,112,112,111,114,116,101,100,32,106,111,105,110,32,116,121,112,101,58,32,37,84,32,37,84,37,115,37,84,0,0,0,0,0,82,73,71,72,84,32,97,110,100,32,70,85,76,76,32,79,85,84,69,82,32,74,79,73,78,115,32,97,114,101,32,110,111,116,32,99,117,114,114,101,110,116,108,121,32,115,117,112,112,111,114,116,101,100,0,0,97,32,74,79,73,78,32,99,108,97,117,115,101,32,105,115,32,114,101,113,117,105,114,101,100,32,98,101,102,111,114,101,32,37,115,0,0,0,0,0,79,78,0,0,0,0,0,0,85,83,73,78,71,0,0,0,68,73,83,84,73,78,67,84,0,0,0,0,0,0,0,0,71,82,79,85,80,32,66,89,0,0,0,0,0,0,0,0,82,73,71,72,84,32,80,65,82,84,32,79,70,32,79,82,68,69,82,32,66,89,0,0,79,82,68,69,82,32,66,89,0,0,0,0,0,0,0,0,99,111,108,117,109,110,37,100,0,0,0,0,0,0,0,0,83,67,65,78,32,84,65,66,76,69,32,37,115,37,115,37,115,0,0,0,0,0,0,0,32,85,83,73,78,71,32,67,79,86,69,82,73,78,71,32,73,78,68,69,88,32,0,0,68,73,83,84,73,78,67,84,32,97,103,103,114,101,103,97,116,101,115,32,109,117,115,116,32,104,97,118,101,32,101,120,97,99,116,108,121,32,111,110,101,32,97,114,103,117,109,101,110,116,0,0,0,0,0,0,85,83,69,32,84,69,77,80,32,66,45,84,82,69,69,32,70,79,82,32,37,115,0,0,79,82,68,69,82,32,66,89,32,99,108,97,117,115,101,32,115,104,111,117,108,100,32,99,111,109,101,32,97,102,116,101,114,32,37,115,32,110,111,116,32,98,101,102,111,114,101,0,76,73,77,73,84,32,99,108,97,117,115,101,32,115,104,111,117,108,100,32,99,111,109,101,32,97,102,116,101,114,32,37,115,32,110,111,116,32,98,101,102,111,114,101,0,0,0,0,67,79,77,80,79,85,78,68,32,83,85,66,81,85,69,82,73,69,83,32,37,100,32,65,78,68,32,37,100,32,37,115,40,37,115,41,0,0,0,0,85,83,73,78,71,32,84,69,77,80,32,66,45,84,82,69,69,32,0,0,0,0,0,0,97,108,108,32,86,65,76,85,69,83,32,109,117,115,116,32,104,97,118,101,32,116,104,101,32,115,97,109,101,32,110,117,109,98,101,114,32,111,102,32,116,101,114,109,115,0,0,0,83,69,76,69,67,84,115,32,116,111,32,116,104,101,32,108,101,102,116,32,97,110,100,32,114,105,103,104,116,32,111,102,32,37,115,32,100,111,32,110,111,116,32,104,97,118,101,32,116,104,101,32,115,97,109,101,32,110,117,109,98,101,114,32,111,102,32,114,101,115,117,108,116,32,99,111,108,117,109,110,115,0,0,0,0,0,0,0,85,78,73,79,78,32,65,76,76,0,0,0,0,0,0,0,73,78,84,69,82,83,69,67,84,0,0,0,0,0,0,0,69,88,67,69,80,84,0,0,85,78,73,79,78,0,0,0,111,110,108,121,32,97,32,115,105,110,103,108,101,32,114,101,115,117,108,116,32,97,108,108,111,119,101,100,32,102,111,114,32,97,32,83,69,76,69,67,84,32,116,104,97,116,32,105,115,32,112,97,114,116,32,111,102,32,97,110,32,101,120,112,114,101,115,115,105,111,110,0,112,97,114,97,109,101,116,101,114,115,32,97,114,101,32,110,111,116,32,97,108,108,111,119,101,100,32,105,110,32,118,105,101,119,115,0,0,0,0,0,118,105,101,119,0,0,0,0,115,113,108,105,116,101,95,115,116,97,116,0,0,0,0,0,116,97,98,108,101,32,37,115,32,109,97,121,32,110,111,116,32,98,101,32,100,114,111,112,112,101,100,0,0,0,0,0,117,115,101,32,68,82,79,80,32,84,65,66,76,69,32,116,111,32,100,101,108,101,116,101,32,116,97,98,108,101,32,37,115,0,0,0,0,0,0,0,117,115,101,32,68,82,79,80,32,86,73,69,87,32,116,111,32,100,101,108,101,116,101,32,118,105,101,119,32,37,115,0,68,69,76,69,84,69,32,70,82,79,77,32,37,81,46,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,32,87,72,69,82,69,32,110,97,109,101,61,37,81,0,0,0,0,68,69,76,69,84,69,32,70,82,79,77,32,37,81,46,37,115,32,87,72,69,82,69,32,116,98,108,95,110,97,109,101,61,37,81,32,97,110,100,32,116,121,112,101,33,61,39,116,114,105,103,103,101,114,39,0,102,111,114,101,105,103,110,32,107,101,121,32,111,110,32,37,115,32,115,104,111,117,108,100,32,114,101,102,101,114,101,110,99,101,32,111,110,108,121,32,111,110,101,32,99,111,108,117,109,110,32,111,102,32,116,97,98,108,101,32,37,84,0,0,110,117,109,98,101,114,32,111,102,32,99,111,108,117,109,110,115,32,105,110,32,102,111,114,101,105,103,110,32,107,101,121,32,100,111,101,115,32,110,111,116,32,109,97,116,99,104,32,116,104,101,32,110,117,109,98,101,114,32,111,102,32,99,111,108,117,109,110,115,32,105,110,32,116,104,101,32,114,101,102,101,114,101,110,99,101,100,32,116,97,98,108,101,0,0,0,117,110,107,110,111,119,110,32,99,111,108,117,109,110,32,34,37,115,34,32,105,110,32,102,111,114,101,105,103,110,32,107,101,121,32,100,101,102,105,110,105,116,105,111,110,0,0,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,97,32,84,69,77,80,32,105,110,100,101,120,32,111,110,32,110,111,110,45,84,69,77,80,32,116,97,98,108,101,32,34,37,115,34,0,0,0,0,0,0,0,97,108,116,101,114,116,97,98,95,0,0,0,0,0,0,0,116,97,98,108,101,32,37,115,32,109,97,121,32,110,111,116,32,98,101,32,105,110,100,101,120,101,100,0,0,0,0,0,118,105,101,119,115,32,109,97,121,32,110,111,116,32,98,101,32,105,110,100,101,120,101,100,0,0,0,0,0,0,0,0,118,105,114,116,117,97,108,32,116,97,98,108,101,115,32,109,97,121,32,110,111,116,32,98,101,32,105,110,100,101,120,101,100,0,0,0,0,0,0,0,116,104,101,114,101,32,105,115,32,97,108,114,101,97,100,121,32,97,32,116,97,98,108,101,32,110,97,109,101,100,32,37,115,0,0,0,0,0,0,0,105,110,100,101,120,32,37,115,32,97,108,114,101,97,100,121,32,101,120,105,115,116,115,0,115,113,108,105,116,101,95,97,117,116,111,105,110,100,101,120,95,37,115,95,37,100,0,0,116,97,98,108,101,32,37,115,32,104,97,115,32,110,111,32,99,111,108,117,109,110,32,110,97,109,101,100,32,37,115,0,99,111,110,102,108,105,99,116,105,110,103,32,79,78,32,67,79,78,70,76,73,67,84,32,99,108,97,117,115,101,115,32,115,112,101,99,105,102,105,101,100,0,0,0,0,0,0,0,67,82,69,65,84,69,37,115,32,73,78,68,69,88,32,37,46,42,115,0,0,0,0,0,32,85,78,73,81,85,69,0,73,78,83,69,82,84,32,73,78,84,79,32,37,81,46,37,115,32,86,65,76,85,69,83,40,39,105,110,100,101,120,39,44,37,81,44,37,81,44,35,37,100,44,37,81,41,59,0,110,97,109,101,61,39,37,113,39,32,65,78,68,32,116,121,112,101,61,39,105,110,100,101,120,39,0,0,0,0,0,0,116,97,98,108,101,32,34,37,115,34,32,104,97,115,32,109,111,114,101,32,116,104,97,110,32,111,110,101,32,112,114,105,109,97,114,121,32,107,101,121,0,0,0,0,0,0,0,0,65,85,84,79,73,78,67,82,69,77,69,78,84,32,105,115,32,111,110,108,121,32,97,108,108,111,119,101,100,32,111,110,32,97,110,32,73,78,84,69,71,69,82,32,80,82,73,77,65,82,89,32,75,69,89,0,100,101,102,97,117,108,116,32,118,97,108,117,101,32,111,102,32,99,111,108,117,109,110,32,91,37,115,93,32,105,115,32,110,111,116,32,99,111,110,115,116,97,110,116,0,0,0,0,116,111,111,32,109,97,110,121,32,99,111,108,117,109,110,115,32,111,110,32,37,115,0,0,100,117,112,108,105,99,97,116,101,32,99,111,108,117,109,110,32,110,97,109,101,58,32,37,115,0,0,0,0,0,0,0,65,85,84,79,73,78,67,82,69,77,69,78,84,32,110,111,116,32,97,108,108,111,119,101,100,32,111,110,32,87,73,84,72,79,85,84,32,82,79,87,73,68,32,116,97,98,108,101,115,0,0,0,0,0,0,0,80,82,73,77,65,82,89,32,75,69,89,32,109,105,115,115,105,110,103,32,111,110,32,116,97,98,108,101,32,37,115,0,84,65,66,76,69,0,0,0,86,73,69,87,0,0,0,0,67,82,69,65,84,69,32,37,115,32,37,46,42,115,0,0,85,80,68,65,84,69,32,37,81,46,37,115,32,83,69,84,32,116,121,112,101,61,39,37,115,39,44,32,110,97,109,101,61,37,81,44,32,116,98,108,95,110,97,109,101,61,37,81,44,32,114,111,111,116,112,97,103,101,61,35,37,100,44,32,115,113,108,61,37,81,32,87,72,69,82,69,32,114,111,119,105,100,61,35,37,100,0,0,67,82,69,65,84,69,32,84,65,66,76,69,32,37,81,46,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,40,110,97,109,101,44,115,101,113,41,0,0,0,0,0,0,0,116,98,108,95,110,97,109,101,61,39,37,113,39,32,65,78,68,32,116,121,112,101,33,61,39,116,114,105,103,103,101,114,39,0,0,0,0,0,0,0,10,32,32,0,0,0,0,0,44,10,32,32,0,0,0,0,10,41,0,0,0,0,0,0,67,82,69,65,84,69,32,84,65,66,76,69,32,0,0,0,120,40,0,0,80,144,0,0,88,144,0,0,96,144,0,0,104,144,0,0,0,0,0,0,32,84,69,88,84,0,0,0,32,78,85,77,0,0,0,0,32,73,78,84,0,0,0,0,32,82,69,65,76,0,0,0,116,101,109,112,111,114,97,114,121,32,116,97,98,108,101,32,110,97,109,101,32,109,117,115,116,32,98,101,32,117,110,113,117,97,108,105,102,105,101,100,0,0,0,0,0,0,0,0,116,97,98,108,101,32,37,84,32,97,108,114,101,97,100,121,32,101,120,105,115,116,115,0,116,104,101,114,101,32,105,115,32,97,108,114,101,97,100,121,32,97,110,32,105,110,100,101,120,32,110,97,109,101,100,32,37,115,0,0,0,0,0,0,240,144,0,0,248,144,0,0,0,145,0,0,0,0,0,0,66,69,71,73,78,0,0,0,82,69,76,69,65,83,69,0,82,79,76,76,66,65,67,75,0,0,0,0,0,0,0,0,67,79,77,77,73,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,97,114,115,101,114,32,115,116,97,99,107,32,111,118,101,114,102,108,111,119,0,0,0,224,3,33,4,75,5,132,4,180,4,180,4,1,0,6,1,237,255,135,0,135,0,8,3,180,4,180,4,180,4,180,4,69,0,69,0,53,0,208,0,27,1,243,2,58,0,213,2,136,2,59,2,238,1,161,1,84,1,7,1,212,0,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,59,3,110,3,59,3,161,3,212,3,212,3,46,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,234,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,180,4,185,255,209,255,209,255,209,255,209,255,209,255,0,0,29,0,244,255,27,1,27,1,139,0,91,0,136,1,136,1,126,3,160,2,214,2,103,5,170,255,170,255,170,255,88,0,62,1,62,1,99,0,125,1,236,255,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,112,2,108,3,214,2,160,2,60,5,60,5,60,5,60,5,60,5,60,5,170,255,170,255,170,255,49,1,136,0,136,0,142,0,167,0,226,0,154,0,137,0,152,0,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,80,1,80,1,80,1,27,1,27,1,96,1,27,1,27,1,27,1,27,1,27,1,228,0,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,245,1,57,2,84,2,84,2,84,2,251,1,241,1,185,1,135,1,97,1,156,0,156,0,89,3,97,1,89,3,223,2,45,3,127,2,203,2,156,0,76,1,203,2,203,2,240,1,163,1,134,2,77,5,160,4,160,4,55,5,55,5,160,4,61,5,236,4,120,4,66,5,66,5,66,5,66,5,160,4,26,5,120,4,61,5,236,4,236,4,120,4,160,4,26,5,182,4,4,5,160,4,160,4,26,5,160,4,26,5,160,4,26,5,238,4,183,4,183,4,183,4,250,4,238,4,183,4,193,4,183,4,250,4,183,4,183,4,161,4,176,4,161,4,176,4,161,4,176,4,160,4,160,4,137,4,238,4,178,4,178,4,238,4,130,4,131,4,123,4,128,4,120,4,217,4,215,4,226,4,226,4,230,4,230,4,230,4,230,4,170,255,170,255,170,255,170,255,170,255,170,255,44,4,48,1,14,2,249,0,152,1,173,255,178,1,44,3,27,0,43,3,39,3,34,3,239,2,77,2,139,2,163,0,131,0,162,2,110,1,194,1,43,1,148,0,23,0,102,0,229,0,235,255,221,4,220,4,198,4,75,4,204,4,148,4,199,4,191,4,189,4,91,4,82,4,99,4,86,4,185,4,81,4,188,4,202,4,74,4,65,4,116,4,115,4,80,4,165,4,154,4,70,4,187,4,181,4,163,4,77,4,47,4,129,4,151,4,122,4,114,4,127,4,67,4,140,4,141,4,139,4,45,4,48,4,124,4,88,4,110,4,103,4,105,4,102,4,68,4,90,4,94,4,64,4,66,4,69,4,63,4,60,4,219,3,55,4,53,4,50,4,41,4,156,3,253,3,246,3,236,3,238,3,51,3,227,2,128,3,87,3,36,3,227,2,228,2,224,2,178,2,142,2,153,2,106,2,70,2,56,2,16,2,42,2,123,1,20,2,223,1,199,1,123,1,176,1,115,1,85,1,28,0,82,1,116,0,245,255,199,255,171,255,7,0,248,255,3,0,0,0,0,0,135,2,196,3,196,3,196,3,110,3,110,3,201,3,196,3,6,3,34,3,34,3,170,3,201,3,201,3,201,3,108,3,201,3,201,3,201,3,196,3,201,3,10,3,40,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,169,3,171,3,48,3,47,3,150,3,21,3,45,3,38,3,42,3,111,3,104,3,105,3,103,3,107,3,112,3,201,3,41,3,73,3,88,3,72,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,82,3,87,3,94,3,86,3,83,3,75,3,74,3,76,3,77,3,201,3,201,3,161,2,227,2,201,3,201,3,78,3,201,3,173,2,79,3,91,3,90,3,89,3,168,2,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,135,2,196,3,201,3,201,3,196,3,196,3,196,3,196,3,196,3,196,3,188,3,10,3,0,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,176,3,174,3,201,3,123,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,141,2,201,3,143,3,6,3,6,3,6,3,8,3,242,2,254,2,143,2,44,3,23,3,23,3,155,3,44,3,155,3,198,2,221,2,195,2,34,3,23,3,106,3,34,3,34,3,7,3,254,2,201,3,181,3,14,3,14,3,173,3,173,3,14,3,53,3,231,2,44,3,238,2,238,2,238,2,238,2,14,3,158,2,44,3,53,3,231,2,231,2,44,3,14,3,158,2,149,3,147,3,14,3,14,3,158,2,14,3,158,2,14,3,158,2,116,3,229,2,229,2,229,2,213,2,116,3,229,2,198,2,229,2,213,2,229,2,229,2,27,3,22,3,27,3,22,3,27,3,22,3,14,3,14,3,201,3,116,3,120,3,120,3,116,3,39,3,28,3,37,3,35,3,44,3,164,2,216,2,151,2,151,2,140,2,140,2,140,2,140,2,193,3,193,3,188,3,200,2,200,2,183,2,201,3,201,3,201,3,201,3,201,3,201,3,175,2,201,3,125,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,60,3,201,3,136,2,183,3,201,3,201,3,180,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,153,3,201,3,201,3,201,3,201,3,201,3,201,3,146,3,145,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,245,2,201,3,201,3,201,3,249,2,201,3,201,3,201,3,201,3,201,3,201,3,36,3,201,3,29,3,201,3,109,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,201,3,198,3,201,3,201,3,201,3,197,3,201,3,201,3,201,3,201,3,201,3,62,3,201,3,61,3,65,3,201,3,149,2,201,3,132,2,137,2,192,3,195,3,194,3,191,3,190,3,189,3,184,3,182,3,179,3,178,3,177,3,175,3,172,3,168,3,129,3,127,3,134,3,133,3,132,3,131,3,130,3,128,3,126,3,124,3,50,3,49,3,46,3,43,3,241,2,167,3,122,3,240,2,237,2,236,2,157,2,185,3,152,3,161,3,160,3,159,3,54,3,158,3,157,3,156,3,154,3,151,3,138,3,52,3,51,3,232,2,114,3,113,3,160,2,142,3,141,3,140,3,144,3,148,3,139,3,16,3,239,2,159,2,156,2,163,2,167,2,219,2,220,2,228,2,226,2,225,2,224,2,223,2,222,2,218,2,169,2,174,2,212,2,197,2,196,2,205,2,204,2,210,2,209,2,208,2,207,2,206,2,203,2,202,2,201,2,194,2,193,2,199,2,192,2,215,2,214,2,211,2,191,2,235,2,234,2,233,2,230,2,190,2,189,2,188,2,65,3,187,2,186,2,70,3,69,3,98,3,58,3,243,2,247,2,246,2,250,2,251,2,3,3,2,3,1,3,12,3,13,3,25,3,24,3,56,3,55,3,26,3,11,3,5,3,4,3,20,3,19,3,18,3,17,3,9,3,255,2,31,3,30,3,100,3,15,3,99,3,97,3,166,3,165,3,164,3],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+28952);allocate([163,3,162,3,102,3,199,3,200,3,119,3,121,3,118,3,33,3,32,3,117,3,101,3,71,3,68,3,178,2,179,2,137,3,136,3,135,3,181,2,180,2,177,2,176,2,95,3,92,3,84,3,96,3,93,3,85,3,81,3,80,3,66,3,64,3,63,3,59,3,67,3,248,2,244,2,57,3,253,2,252,2,185,2,184,2,182,2,166,2,165,2,162,2,155,2,153,2,152,2,154,2,150,2,148,2,147,2,146,2,145,2,144,2,172,2,171,2,170,2,142,2,139,2,138,2,134,2,133,2,131,2,0,0,0,0,19,22,22,23,1,24,26,15,27,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,108,109,110,27,28,23,50,51,80,81,82,83,122,85,86,87,88,89,90,91,92,93,94,95,22,70,23,71,72,73,74,75,76,77,78,79,80,81,82,83,122,85,86,87,88,89,90,91,92,93,94,95,19,97,91,92,93,94,95,26,85,86,87,88,89,90,91,92,93,94,95,27,28,97,98,99,122,211,102,103,104,79,19,50,51,19,122,59,55,113,224,225,226,89,90,91,92,93,94,95,23,27,28,26,71,72,73,74,75,76,77,78,79,80,81,82,83,51,85,86,87,88,89,90,91,92,93,94,95,19,132,133,58,89,90,21,108,109,110,27,28,97,98,33,100,7,8,119,120,22,19,107,42,109,27,28,27,28,95,28,50,51,99,100,101,102,103,104,105,27,28,97,98,107,152,112,132,133,112,65,69,71,72,73,74,75,76,77,78,79,80,81,82,83,11,85,86,87,88,89,90,91,92,93,94,95,19,101,97,97,98,24,101,122,157,12,99,103,112,102,103,104,152,22,97,98,97,98,27,28,113,27,29,91,164,165,124,50,51,97,98,219,59,132,133,134,22,23,45,66,47,212,213,124,140,132,133,19,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,164,165,27,28,230,50,51,233,108,109,110,70,16,59,23,97,98,26,97,22,66,185,12,187,27,28,71,72,73,74,75,76,77,78,79,80,81,82,83,29,85,86,87,88,89,90,91,92,93,94,95,19,22,148,149,45,23,47,62,154,64,156,108,109,110,37,69,23,163,59,26,26,97,98,144,145,146,147,152,200,52,23,50,51,26,22,89,90,60,210,7,8,9,138,97,22,23,26,101,26,174,175,197,71,72,73,74,75,76,77,78,79,80,81,82,83,16,85,86,87,88,89,90,91,92,93,94,95,19,132,133,134,23,152,208,209,140,152,152,111,195,196,98,70,163,160,152,23,22,164,165,246,207,27,152,174,175,171,172,50,51,137,62,139,64,171,172,222,124,27,138,24,163,89,90,130,174,175,197,163,71,72,73,74,75,76,77,78,79,80,81,82,83,22,85,86,87,88,89,90,91,92,93,94,95,19,197,181,182,23,208,209,152,197,26,189,132,133,232,224,225,226,152,97,91,26,232,116,212,213,152,222,121,152,174,175,50,51,243,97,22,23,22,234,174,175,177,23,239,116,163,177,174,175,121,174,175,71,72,73,74,75,76,77,78,79,80,81,82,83,24,85,86,87,88,89,90,91,92,93,94,95,19,23,197,11,23,227,70,208,220,152,31,224,225,226,35,98,224,225,226,108,109,110,115,152,117,118,27,222,49,123,24,50,51,27,0,1,2,224,225,226,166,124,168,169,239,174,175,170,171,172,22,194,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,19,22,208,24,23,195,196,170,171,172,174,175,152,26,152,152,152,207,152,97,152,23,152,51,244,152,97,152,247,248,23,50,51,26,174,175,174,175,174,175,174,175,174,175,174,175,23,174,175,174,175,188,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,19,152,107,152,33,24,152,100,101,27,174,175,152,42,152,23,152,26,152,23,152,26,152,174,175,174,175,152,174,175,23,50,51,26,174,175,174,175,174,175,174,175,174,175,174,175,163,119,120,174,175,19,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,66,152,97,197,23,50,51,26,53,23,174,175,26,23,23,23,26,26,26,36,106,146,147,174,175,19,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,152,196,119,120,19,50,51,168,169,26,174,175,207,28,152,249,250,152,163,163,163,163,174,175,163,19,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,152,197,197,197,197,50,51,197,194,36,174,175,191,192,152,191,192,163,152,66,124,152,174,175,152,19,71,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,197,152,100,188,152,50,51,152,152,188,174,175,252,152,94,95,152,152,152,1,2,152,152,174,175,19,152,72,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,152,188,188,22,194,50,51,240,173,194,174,175,252,194,152,36,181,28,152,23,219,122,174,175,219,221,152,152,73,74,75,76,77,78,79,80,81,82,83,152,85,86,87,88,89,90,91,92,93,94,95,19,20,152,22,23,194,152,240,27,28,174,175,240,19,20,26,22,194,194,38,22,27,28,152,23,22,152,116,174,175,152,23,38,152,23,152,221,152,57,152,23,163,50,51,194,174,175,66,174,175,69,57,174,175,40,174,175,174,175,174,175,174,175,69,22,53,74,75,30,53,89,90,22,22,152,197,23,96,97,98,22,152,101,89,90,91,208,209,152,53,96,97,98,101,22,101,174,175,152,19,20,105,22,174,175,112,19,27,28,20,174,175,24,132,133,134,135,136,38,44,174,175,107,61,54,26,132,133,134,135,136,54,107,22,5,140,1,57,36,111,122,28,79,79,131,123,66,19,20,69,22,1,16,20,125,27,28,123,111,120,23,131,23,16,68,142,38,15,22,89,90,3,167,4,248,251,96,97,98,180,180,101,251,151,6,57,151,13,151,26,25,151,161,202,153,162,153,69,130,128,203,19,20,127,22,126,204,129,22,27,28,205,132,133,134,135,136,89,90,231,38,95,137,179,96,97,98,206,179,101,122,107,159,159,125,231,216,228,107,57,184,217,216,176,217,176,48,106,18,184,158,69,159,158,46,71,237,176,176,176,132,133,134,135,136,217,176,137,216,178,158,89,90,179,176,159,179,159,96,97,98,159,159,101,5,158,202,22,18,10,11,12,13,14,190,238,17,190,158,193,41,159,202,193,159,202,245,193,193,223,190,32,159,34,132,133,134,135,136,159,39,155,43,150,223,177,201,178,177,186,66,199,177,152,253,56,215,152,182,152,202,152,63,152,152,66,67,242,229,152,174,152,152,152,152,152,152,152,199,242,202,152,198,152,152,152,183,192,152,215,152,183,215,183,152,241,214,152,211,152,152,211,211,152,152,241,152,152,152,152,152,152,152,114,152,152,235,152,152,152,174,187,95,174,253,253,253,253,236,253,253,253,253,253,253,253,253,253,253,253,141,0,0,0,0,0,0,0,0,0,27,27,27,27,0,27,27,27,0,27,27,27,27,0,0,0,27,0,0,27,0,0,0,27,0,0,0,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,0,0,115,113,108,105,116,101,51,95,103,101,116,95,116,97,98,108,101,40,41,32,99,97,108,108,101,100,32,119,105,116,104,32,116,119,111,32,111,114,32,109,111,114,101,32,105,110,99,111,109,112,97,116,105,98,108,101,32,113,117,101,114,105,101,115,0,0,0,0,0,0,0,0,100,97,116,97,98,97,115,101,32,115,99,104,101,109,97,32,105,115,32,108,111,99,107,101,100,58,32,37,115,0,0,0,115,116,97,116,101,109,101,110,116,32,116,111,111,32,108,111,110,103,0,0,0,0,0,0,128,160,0,0,136,160,0,0,144,160,0,0,152,160,0,0,160,160,0,0,168,160,0,0,176,160,0,0,184,160,0,0,192,160,0,0,208,160,0,0,136,122,0,0,216,160,0,0,97,100,100,114,0,0,0,0,111,112,99,111,100,101,0,0,112,49,0,0,0,0,0,0,112,50,0,0,0,0,0,0,112,51,0,0,0,0,0,0,112,52,0,0,0,0,0,0,112,53,0,0,0,0,0,0,99,111,109,109,101,110,116,0,115,101,108,101,99,116,105,100,0,0,0,0,0,0,0,0,111,114,100,101,114,0,0,0,100,101,116,97,105,108,0,0,115,111,0,0,0,0,0,0,115,113,108,105,116,101,51,95,101,120,116,101,110,115,105,111,110,95,105,110,105,116,0,0,117,110,97,98,108,101,32,116,111,32,111,112,101,110,32,115,104,97,114,101,100,32,108,105,98,114,97,114,121,32,91,37,115,93,0,0,0,0,0,0,108,105,98,0,0,0,0,0,95,105,110,105,116,0,0,0,110,111,32,101,110,116,114,121,32,112,111,105,110,116,32,91,37,115,93,32,105,110,32,115,104,97,114,101,100,32,108,105,98,114,97,114,121,32,91,37,115,93,0,0,0,0,0,0,101,114,114,111,114,32,100,117,114,105,110,103,32,105,110,105,116,105,97,108,105,122,97,116,105,111,110,58,32,37,115,0,117,110,111,112,101,110,101,100,0,0,0,0,0,0,0,0,110,111,32,115,117,99,104,32,118,105,101,119,0,0,0,0,110,111,32,115,117,99,104,32,116,97,98,108,101,0,0,0,99,97,110,110,111,116,32,111,112,101,110,32,118,97,108,117,101,32,111,102,32,116,121,112,101,32,37,115,0,0,0,0,110,111,32,115,117,99,104,32,114,111,119,105,100,58,32,37,108,108,100,0,0,0,0,0,98,105,110,100,32,111,110,32,97,32,98,117,115,121,32,112,114,101,112,97,114,101,100,32,115,116,97,116,101,109,101,110,116,58,32,91,37,115,93,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,80,162,0,0,96,162,0,0,104,162,0,0,112,162,0,0,78,79,84,32,78,85,76,76,0,0,0,0,0,0,0,0,85,78,73,81,85,69,0,0,67,72,69,67,75,0,0,0,70,79,82,69,73,71,78,32,75,69,89,0,0,0,0,0,97,98,111,114,116,32,97,116,32,37,100,32,105,110,32,91,37,115,93,58,32,37,115,0,37,115,32,99,111,110,115,116,114,97,105,110,116,32,102,97,105,108,101,100,58,32,37,115,0,0,0,0,0,0,0,0,37,115,32,99,111,110,115,116,114,97,105,110,116,32,102,97,105,108,101,100,0,0,0,0,0,0,0,0,1,2,0,2,2,0,0,0,0,0,0,0,0,1,2,1,1,1,2,1,2,0,0,0,0,0,0,0,99,97,110,110,111,116,32,111,112,101,110,32,115,97,118,101,112,111,105,110,116,32,45,32,83,81,76,32,115,116,97,116,101,109,101,110,116,115,32,105,110,32,112,114,111,103,114,101,115,115,0,0,0,0,0,0,110,111,32,115,117,99,104,32,115,97,118,101,112,111,105,110,116,58,32,37,115,0,0,0,99,97,110,110,111,116,32,114,101,108,101,97,115,101,32,115,97,118,101,112,111,105,110,116,32,45,32,83,81,76,32,115,116,97,116,101,109,101,110,116,115,32,105,110,32,112,114,111,103,114,101,115,115,0,0,0,99,97,110,110,111,116,32,99,111,109,109,105,116,32,116,114,97,110,115,97,99,116,105,111,110,32,45,32,83,81,76,32,115,116,97,116,101,109,101,110,116,115,32,105,110,32,112,114,111,103,114,101,115,115,0,0,99,97,110,110,111,116,32,115,116,97,114,116,32,97,32,116,114,97,110,115,97,99,116,105,111,110,32,119,105,116,104,105,110,32,97,32,116,114,97,110,115,97,99,116,105,111,110,0,99,97,110,110,111,116,32,114,111,108,108,98,97,99,107,32,45,32,110,111,32,116,114,97,110,115,97,99,116,105,111,110,32,105,115,32,97,99,116,105,118,101,0,0,0,0,0,0,99,97,110,110,111,116,32,99,111,109,109,105,116,32,45,32,110,111,32,116,114,97,110,115,97,99,116,105,111,110,32,105,115,32,97,99,116,105,118,101,0,0,0,0,0,0,0,0,83,69,76,69,67,84,32,110,97,109,101,44,32,114,111,111,116,112,97,103,101,44,32,115,113,108,32,70,82,79,77,32,39,37,113,39,46,37,115,32,87,72,69,82,69,32,37,115,32,79,82,68,69,82,32,66,89,32,114,111,119,105,100,0,116,111,111,32,109,97,110,121,32,108,101,118,101,108,115,32,111,102,32,116,114,105,103,103,101,114,32,114,101,99,117,114,115,105,111,110,0,0,0,0,99,97,110,110,111,116,32,99,104,97,110,103,101,32,37,115,32,119,97,108,32,109,111,100,101,32,102,114,111,109,32,119,105,116,104,105,110,32,97,32,116,114,97,110,115,97,99,116,105,111,110,0,0,0,0,0,105,110,116,111,0,0,0,0,111,117,116,32,111,102,0,0,100,97,116,97,98,97,115,101,32,116,97,98,108,101,32,105,115,32,108,111,99,107,101,100,58,32,37,115,0,0,0,0,115,116,97,116,101,109,101,110,116,32,97,98,111,114,116,115,32,97,116,32,37,100,58,32,91,37,115,93,32,37,115,0,45,45,32,0,0,0,0,0,39,37,46,42,113,39,0,0,122,101,114,111,98,108,111,98,40,37,100,41,0,0,0,0,120,39,0,0,0,0,0,0,37,48,50,120,0,0,0,0,39,0,0,0,0,0,0,0,99,97,110,110,111,116,32,86,65,67,85,85,77,32,102,114,111,109,32,119,105,116,104,105,110,32,97,32,116,114,97,110,115,97,99,116,105,111,110,0,99,97,110,110,111,116,32,86,65,67,85,85,77,32,45,32,83,81,76,32,115,116,97,116,101,109,101,110,116,115,32,105,110,32,112,114,111,103,114,101,115,115,0,0,0,0,0,0,65,84,84,65,67,72,32,39,58,109,101,109,111,114,121,58,39,32,65,83,32,118,97,99,117,117,109,95,100,98,59,0,65,84,84,65,67,72,32,39,39,32,65,83,32,118,97,99,117,117,109,95,100,98,59,0,80,82,65,71,77,65,32,118,97,99,117,117,109,95,100,98,46,115,121,110,99,104,114,111,110,111,117,115,61,79,70,70,0,0,0,0,0,0,0,0,66,69,71,73,78,59,0,0,83,69,76,69,67,84,32,39,67,82,69,65,84,69,32,84,65,66,76,69,32,118,97,99,117,117,109,95,100,98,46,39,32,124,124,32,115,117,98,115,116,114,40,115,113,108,44,49,52,41,32,32,32,70,82,79,77,32,115,113,108,105,116,101,95,109,97,115,116,101,114,32,87,72,69,82,69,32,116,121,112,101,61,39,116,97,98,108,101,39,32,65,78,68,32,110,97,109,101,33,61,39,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,39,32,32,32,65,78,68,32,99,111,97,108,101,115,99,101,40,114,111,111,116,112,97,103,101,44,49,41,62,48,0,0,0,0,0,83,69,76,69,67,84,32,39,67,82,69,65,84,69,32,73,78,68,69,88,32,118,97,99,117,117,109,95,100,98,46,39,32,124,124,32,115,117,98,115,116,114,40,115,113,108,44,49,52,41,32,32,70,82,79,77,32,115,113,108,105,116,101,95,109,97,115,116,101,114,32,87,72,69,82,69,32,115,113,108,32,76,73,75,69,32,39,67,82,69,65,84,69,32,73,78,68,69,88,32,37,39,32,0,83,69,76,69,67,84,32,39,67,82,69,65,84,69,32,85,78,73,81,85,69,32,73,78,68,69,88,32,118,97,99,117,117,109,95,100,98,46,39,32,124,124,32,115,117,98,115,116,114,40,115,113,108,44,50,49,41,32,32,32,70,82,79,77,32,115,113,108,105,116,101,95,109,97,115,116,101,114,32,87,72,69,82,69,32,115,113,108,32,76,73,75,69,32,39,67,82,69,65,84,69,32,85,78,73,81,85,69,32,73,78,68,69,88,32,37,39,0,0,0,83,69,76,69,67,84,32,39,73,78,83,69,82,84,32,73,78,84,79,32,118,97,99,117,117,109,95,100,98,46,39,32,124,124,32,113,117,111,116,101,40,110,97,109,101,41,32,124,124,32,39,32,83,69,76,69,67,84,32,42,32,70,82,79,77,32,109,97,105,110,46,39,32,124,124,32,113,117,111,116,101,40,110,97,109,101,41,32,124,124,32,39,59,39,70,82,79,77,32,109,97,105,110,46,115,113,108,105,116,101,95,109,97,115,116,101,114,32,87,72,69,82,69,32,116,121,112,101,32,61,32,39,116,97,98,108,101,39,32,65,78,68,32,110,97,109,101,33,61,39,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,39,32,32,32,65,78,68,32,99,111,97,108,101,115,99,101,40,114,111,111,116,112,97,103,101,44,49,41,62,48,0,0,0,0,0,83,69,76,69,67,84,32,39,68,69,76,69,84,69,32,70,82,79,77,32,118,97,99,117,117,109,95,100,98,46,39,32,124,124,32,113,117,111,116,101,40,110,97,109,101,41,32,124,124,32,39,59,39,32,70,82,79,77,32,118,97,99,117,117,109,95,100,98,46,115,113,108,105,116,101,95,109,97,115,116,101,114,32,87,72,69,82,69,32,110,97,109,101,61,39,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,39,32,0,0,0,0,0,0,0,0,83,69,76,69,67,84,32,39,73,78,83,69,82,84,32,73,78,84,79,32,118,97,99,117,117,109,95,100,98,46,39,32,124,124,32,113,117,111,116,101,40,110,97,109,101,41,32,124,124,32,39,32,83,69,76,69,67,84,32,42,32,70,82,79,77,32,109,97,105,110,46,39,32,124,124,32,113,117,111,116,101,40,110,97,109,101,41,32,124,124,32,39,59,39,32,70,82,79,77,32,118,97,99,117,117,109,95,100,98,46,115,113,108,105,116,101,95,109,97,115,116,101,114,32,87,72,69,82,69,32,110,97,109,101,61,61,39,115,113,108,105,116,101,95,115,101,113,117,101,110,99,101,39,59,0,0,0,0,0,0,73,78,83,69,82,84,32,73,78,84,79,32,118,97,99,117,117,109,95,100,98,46,115,113,108,105,116,101,95,109,97,115,116,101,114,32,32,32,83,69,76,69,67,84,32,116,121,112,101,44,32,110,97,109,101,44,32,116,98,108,95,110,97,109,101,44,32,114,111,111,116,112,97,103,101,44,32,115,113,108,32,32,32,32,70,82,79,77,32,109,97,105,110,46,115,113,108,105,116,101,95,109,97,115,116,101,114,32,32,32,87,72,69,82,69,32,116,121,112,101,61,39,118,105,101,119,39,32,79,82,32,116,121,112,101,61,39,116,114,105,103,103,101,114,39,32,32,32,32,32,32,79,82,32,40,116,121,112,101,61,39,116,97,98,108,101,39,32,65,78,68,32,114,111,111,116,112,97,103,101,61,48,41,0,1,1,3,0,5,0,6,0,8,0,0,0,0,0,0,0,77,97,105,110,32,102,114,101,101,108,105,115,116,58,32,0,76,105,115,116,32,111,102,32,116,114,101,101,32,114,111,111,116,115,58,32,0,0,0,0,80,97,103,101,32,37,100,32,105,115,32,110,101,118,101,114,32,117,115,101,100,0,0,0,80,111,105,110,116,101,114,32,109,97,112,32,112,97,103,101,32,37,100,32,105,115,32,114,101,102,101,114,101,110,99,101,100,0,0,0,0,0,0,0,79,117,116,115,116,97,110,100,105,110,103,32,112,97,103,101,32,99,111,117,110,116,32,103,111,101,115,32,102,114,111,109,32,37,100,32,116,111,32,37,100,32,100,117,114,105,110,103,32,116,104,105,115,32,97,110,97,108,121,115,105,115,0,0,10,0,0,0,0,0,0,0,80,97,103,101,32,37,100,58,32,0,0,0,0,0,0,0,117,110,97,98,108,101,32,116,111,32,103,101,116,32,116,104,101,32,112,97,103,101,46,32,101,114,114,111,114,32,99,111,100,101,61,37,100,0,0,0,98,116,114,101,101,73,110,105,116,80,97,103,101,40,41,32,114,101,116,117,114,110,115,32,101,114,114,111,114,32,99,111,100,101,32,37,100,0,0,0,79,110,32,116,114,101,101,32,112,97,103,101,32,37,100,32,99,101,108,108,32,37,100,58,32,0,0,0,0,0,0,0,82,111,119,105,100,32,37,108,108,100,32,111,117,116,32,111,102,32,111,114,100,101,114,32,40,112,114,101,118,105,111,117,115,32,119,97,115,32,37,108,108,100,41,0,0,0,0,0,67,104,105,108,100,32,112,97,103,101,32,100,101,112,116,104,32,100,105,102,102,101,114,115,0,0,0,0,0,0,0,0,79,110,32,112,97,103,101,32,37,100,32,97,116,32,114,105,103,104,116,32,99,104,105,108,100,58,32,0,0,0,0,0,82,111,119,105,100,32,37,108,108,100,32,111,117,116,32,111,102,32,111,114,100,101,114,32,40,109,97,120,32,108,97,114,103,101,114,32,116,104,97,110,32,112,97,114,101,110,116,32,109,105,110,32,111,102,32,37,108,108,100,41,0,0,0,0,82,111,119,105,100,32,37,108,108,100,32,111,117,116,32,111,102,32,111,114,100,101,114,32,40,109,105,110,32,108,101,115,115,32,116,104,97,110,32,112,97,114,101,110,116,32,109,105,110,32,111,102,32,37,108,108,100,41,0,0,0,0,0,0,82,111,119,105,100,32,37,108,108,100,32,111,117,116,32,111,102,32,111,114,100,101,114,32,40,109,97,120,32,108,97,114,103,101,114,32,116,104,97,110,32,112,97,114,101,110,116,32,109,97,120,32,111,102,32,37,108,108,100,41,0,0,0,0,82,111,119,105,100,32,37,108,108,100,32,111,117,116,32,111,102,32,111,114,100,101,114,32,40,109,105,110,32,108,101,115,115,32,116,104,97,110,32,112,97,114,101,110,116,32,109,97,120,32,111,102,32,37,108,108,100,41,0,0,0,0,0,0,67,111,114,114,117,112,116,105,111,110,32,100,101,116,101,99,116,101,100,32,105,110,32,99,101,108,108,32,37,100,32,111,110,32,112,97,103,101,32,37,100,0,0,0,0,0,0,0,77,117,108,116,105,112,108,101,32,117,115,101,115,32,102,111,114,32,98,121,116,101,32,37,100,32,111,102,32,112,97,103,101,32,37,100,0,0,0,0,70,114,97,103,109,101,110,116,97,116,105,111,110,32,111,102,32,37,100,32,98,121,116,101,115,32,114,101,112,111,114,116,101,100,32,97,115,32,37,100,32,111,110,32,112,97,103,101,32,37,100,0,0,0,0,0,105,110,118,97,108,105,100,32,112,97,103,101,32,110,117,109,98,101,114,32,37,100,0,0,50,110,100,32,114,101,102,101,114,101,110,99,101,32,116,111,32,112,97,103,101,32,37,100,0,0,0,0,0,0,0,0,70,97,105,108,101,100,32,116,111,32,114,101,97,100,32,112,116,114,109,97,112,32,107,101,121,61,37,100,0,0,0,0,66,97,100,32,112,116,114,32,109,97,112,32,101,110,116,114,121,32,107,101,121,61,37,100,32,101,120,112,101,99,116,101,100,61,40,37,100,44,37,100,41,32,103,111,116,61,40,37,100,44,37,100,41,0,0,0,37,100,32,111,102,32,37,100,32,112,97,103,101,115,32,109,105,115,115,105,110,103,32,102,114,111,109,32,111,118,101,114,102,108,111,119,32,108,105,115,116,32,115,116,97,114,116,105,110,103,32,97,116,32,37,100,0,0,0,0,0,0,0,0,102,97,105,108,101,100,32,116,111,32,103,101,116,32,112,97,103,101,32,37,100,0,0,0,102,114,101,101,108,105,115,116,32,108,101,97,102,32,99,111,117,110,116,32,116,111,111,32,98,105,103,32,111,110,32,112,97,103,101,32,37,100,0,0,83,81,76,105,116,101,32,102,111,114,109,97,116,32,51,0,37,115,45,109,106,88,88,88,88,88,88,57,88,88,122,0,77,74,32,100,101,108,101,116,101,58,32,37,115,0,0,0,77,74,32,99,111,108,108,105,100,101,58,32,37,115,0,0,45,109,106,37,48,54,88,57,37,48,50,88,0,0,0,0,37,46,50,120,0,0,0,0,107,40,37,100,0,0,0,0,110,105,108,0,0,0,0,0,66,0,0,0,0,0,0,0,40,37,46,50,48,115,41,0,37,115,40,37,100,41,0,0,37,100,0,0,0,0,0,0,40,98,108,111,98,41,0,0,118,116,97,98,58,37,112,0,105,110,116,97,114,114,97,121,0,0,0,0,0,0,0,0,112,114,111,103,114,97,109,0,240,52,0,0,176,177,0,0,192,177,0,0,208,177,0,0,224,177,0,0,240,177,0,0,0,178,0,0,16,178,0,0,32,178,0,0,40,178,0,0,48,178,0,0,56,178,0,0,72,178,0,0,88,178,0,0,96,178,0,0,104,178,0,0,112,178,0,0,120,178,0,0,128,178,0,0,136,178,0,0,144,178,0,0,160,178,0,0,176,178,0,0,184,178,0,0,200,178,0,0,208,178,0,0,216,178,0,0,224,178,0,0,232,178,0,0,240,178,0,0,0,179,0,0,8,179,0,0,24,179,0,0,32,179,0,0,40,179,0,0,48,179,0,0,64,179,0,0,72,179,0,0,80,179,0,0,96,179,0,0,112,179,0,0,120,179,0,0,136,179,0,0,144,179,0,0,152,179,0,0,160,179,0,0,168,179,0,0,176,179,0,0,184,179,0,0,200,179,0,0,216,179,0,0,224,179,0,0,240,179,0,0,0,180,0,0,16,180,0,0,32,180,0,0,48,180,0,0,64,180,0,0,80,180,0,0,96,180,0,0,112,180,0,0,128,180,0,0,136,180,0,0,144,180,0,0,152,180,0,0,160,180,0,0,168,180,0,0,176,180,0,0,192,180,0,0,208,180,0,0,216,180,0,0,232,180,0,0,240,180,0,0,248,180,0,0,8,181,0,0,24,181,0,0,32,181,0,0,40,181,0,0,48,181,0,0,56,181,0,0,64,181,0,0,72,181,0,0,80,181,0,0,88,181,0,0,96,181,0,0,112,181,0,0,120,181,0,0,128,181,0,0,144,181,0,0,160,181,0,0,168,181,0,0,184,181,0,0,200,181,0,0,208,181,0,0,224,181,0,0,232,181,0,0,240,181,0,0,248,181,0,0,0,182,0,0,16,182,0,0,32,182,0,0,48,182,0,0,56,182,0,0,64,182,0,0,72,182,0,0,80,182,0,0,88,182,0,0,104,182,0,0,112,182,0,0,120,182,0,0,136,182,0,0,152,182,0,0,168,182,0,0,184,182,0,0,192,182,0,0,200,182,0,0,208,182,0,0,216,182,0,0,224,182,0,0,232,182,0,0,248,182,0,0,8,183,0,0,24,183,0,0,40,183,0,0,56,183,0,0,72,183,0,0,88,183,0,0,104,183,0,0,120,183,0,0,136,183,0,0,152,183,0,0,168,183,0,0,176,183,0,0,184,183,0,0,192,183,0,0,208,183,0,0,224,183,0,0,232,183,0,0,240,183,0,0,248,183,0,0,8,184,0,0,24,184,0,0,40,184,0,0,56,184,0,0,72,184,0,0,80,184,0,0,96,184,0,0,104,184,0,0,112,184,0,0,128,184,0,0,136,184,0,0,144,184,0,0,152,184,0,0,160,184,0,0,176,184,0,0,192,184,0,0,200,184,0,0,208,184,0,0,70,117,110,99,116,105,111,110,0,0,0,0,0,0,0,0,83,97,118,101,112,111,105,110,116,0,0,0,0,0,0,0,65,117,116,111,67,111,109,109,105,116,0,0,0,0,0,0,84,114,97,110,115,97,99,116,105,111,110,0,0,0,0,0,83,111,114,116,101,114,78,101,120,116,0,0,0,0,0,0,80,114,101,118,73,102,79,112,101,110,0,0,0,0,0,0,78,101,120,116,73,102,79,112,101,110,0,0,0,0,0,0,80,114,101,118,0,0,0,0,78,101,120,116,0,0,0,0,65,103,103,83,116,101,112,0,67,104,101,99,107,112,111,105,110,116,0,0,0,0,0,0,74,111,117,114,110,97,108,77,111,100,101,0,0,0,0,0,86,97,99,117,117,109,0,0,86,70,105,108,116,101,114,0,86,85,112,100,97,116,101,0,71,111,116,111,0,0,0,0,71,111,115,117,98,0,0,0,82,101,116,117,114,110,0,0,78,111,116,0,0,0,0,0,73,110,105,116,67,111,114,111,117,116,105,110,101,0,0,0,69,110,100,67,111,114,111,117,116,105,110,101,0,0,0,0,89,105,101,108,100,0,0,0,72,97,108,116,73,102,78,117,108,108,0,0,0,0,0,0,72,97,108,116,0,0,0,0,73,110,116,101,103,101,114,0,73,110,116,54,52,0,0,0,83,116,114,105,110,103,0,0,78,117,108,108,0,0,0,0,83,111,102,116,78,117,108,108,0,0,0,0,0,0,0,0,66,108,111,98,0,0,0,0,86,97,114,105,97,98,108,101,0,0,0,0,0,0,0,0,77,111,118,101,0,0,0,0,67,111,112,121,0,0,0,0,83,67,111,112,121,0,0,0,82,101,115,117,108,116,82,111,119,0,0,0,0,0,0,0,67,111,108,108,83,101,113,0,65,100,100,73,109,109,0,0,77,117,115,116,66,101,73,110,116,0,0,0,0,0,0,0,82,101,97,108,65,102,102,105,110,105,116,121,0,0,0,0,67,97,115,116,0,0,0,0,80,101,114,109,117,116,97,116,105,111,110,0,0,0,0,0,67,111,109,112,97,114,101,0,74,117,109,112,0,0,0,0,79,110,99,101,0,0,0,0,73,102,0,0,0,0,0,0,73,102,78,111,116,0,0,0,67,111,108,117,109,110,0,0,65,102,102,105,110,105,116,121,0,0,0,0,0,0,0,0,77,97,107,101,82,101,99,111,114,100,0,0,0,0,0,0,67,111,117,110,116,0,0,0,82,101,97,100,67,111,111,107,105,101,0,0,0,0,0,0,83,101,116,67,111,111,107,105,101,0,0,0,0,0,0,0,82,101,111,112,101,110,73,100,120,0,0,0,0,0,0,0,79,112,101,110,82,101,97,100,0,0,0,0,0,0,0,0,79,112,101,110,87,114,105,116,101,0,0,0,0,0,0,0,79,112,101,110,65,117,116,111,105,110,100,101,120,0,0,0,79,112,101,110,69,112,104,101,109,101,114,97,108,0,0,0,83,111,114,116,101,114,79,112,101,110,0,0,0,0,0,0,83,101,113,117,101,110,99,101,84,101,115,116,0,0,0,0,79,112,101,110,80,115,101,117,100,111,0,0,0,0,0,0,67,108,111,115,101,0,0,0,83,101,101,107,76,84,0,0,83,101,101,107,76,69,0,0,83,101,101,107,71,69,0,0,83,101,101,107,71,84,0,0,83,101,101,107,0,0,0,0,78,111,67,111,110,102,108,105,99,116,0,0,0,0,0,0,78,111,116,70,111,117,110,100,0,0,0,0,0,0,0,0,70,111,117,110,100,0,0,0,78,111,116,69,120,105,115,116,115,0,0,0,0,0,0,0,79,114,0,0,0,0,0,0,65,110,100,0,0,0,0,0,83,101,113,117,101,110,99,101,0,0,0,0,0,0,0,0,78,101,119,82,111,119,105,100,0,0,0,0,0,0,0,0,73,110,115,101,114,116,0,0,73,115,78,117,108,108,0,0,78,111,116,78,117,108,108,0,78,101,0,0,0,0,0,0,69,113,0,0,0,0,0,0,71,116,0,0,0,0,0,0,76,101,0,0,0,0,0,0,76,116,0,0,0,0,0,0,71,101,0,0,0,0,0,0,73,110,115,101,114,116,73,110,116,0,0,0,0,0,0,0,66,105,116,65,110,100,0,0,66,105,116,79,114,0,0,0,83,104,105,102,116,76,101,102,116,0,0,0,0,0,0,0,83,104,105,102,116,82,105,103,104,116,0,0,0,0,0,0,65,100,100,0,0,0,0,0,83,117,98,116,114,97,99,116,0,0,0,0,0,0,0,0,77,117,108,116,105,112,108,121,0,0,0,0,0,0,0,0,68,105,118,105,100,101,0,0,82,101,109,97,105,110,100,101,114,0,0,0,0,0,0,0,67,111,110,99,97,116,0,0,68,101,108,101,116,101,0,0,66,105,116,78,111,116,0,0,83,116,114,105,110,103,56,0,82,101,115,101,116,67,111,117,110,116,0,0,0,0,0,0,83,111,114,116,101,114,67,111,109,112,97,114,101,0,0,0,83,111,114,116,101,114,68,97,116,97,0,0,0,0,0,0,82,111,119,75,101,121,0,0,82,111,119,68,97,116,97,0,82,111,119,105,100,0,0,0,78,117,108,108,82,111,119,0,76,97,115,116,0,0,0,0,83,111,114,116,101,114,83,111,114,116,0,0,0,0,0,0,83,111,114,116,0,0,0,0,82,101,119,105,110,100,0,0,83,111,114,116,101,114,73,110,115,101,114,116,0,0,0,0,73,100,120,73,110,115,101,114,116,0,0,0,0,0,0,0,73,100,120,68,101,108,101,116,101,0,0,0,0,0,0,0,73,100,120,82,111,119,105,100,0,0,0,0,0,0,0,0,73,100,120,76,69,0,0,0,73,100,120,71,84,0,0,0,73,100,120,76,84,0,0,0,73,100,120,71,69,0,0,0,68,101,115,116,114,111,121,0,67,108,101,97,114,0,0,0,82,101,115,101,116,83,111,114,116,101,114,0,0,0,0,0,67,114,101,97,116,101,73,110,100,101,120,0,0,0,0,0,67,114,101,97,116,101,84,97,98,108,101,0,0,0,0,0,80,97,114,115,101,83,99,104,101,109,97,0,0,0,0,0,76,111,97,100,65,110,97,108,121,115,105,115,0,0,0,0,68,114,111,112,84,97,98,108,101,0,0,0,0,0,0,0,68,114,111,112,73,110,100,101,120,0,0,0,0,0,0,0,68,114,111,112,84,114,105,103,103,101,114,0,0,0,0,0,73,110,116,101,103,114,105,116,121,67,107,0,0,0,0,0,82,111,119,83,101,116,65,100,100,0,0,0,0,0,0,0,82,111,119,83,101,116,82,101,97,100,0,0,0,0,0,0,82,111,119,83,101,116,84,101,115,116,0,0,0,0,0,0,80,114,111,103,114,97,109,0,80,97,114,97,109,0,0,0,82,101,97,108,0,0,0,0,70,107,67,111,117,110,116,101,114,0,0,0,0,0,0,0,70,107,73,102,90,101,114,111,0,0,0,0,0,0,0,0,77,101,109,77,97,120,0,0,73,102,80,111,115,0,0,0,73,102,78,101,103,0,0,0,73,102,78,111,116,90,101,114,111,0,0,0,0,0,0,0,68,101,99,114,74,117,109,112,90,101,114,111,0,0,0,0,74,117,109,112,90,101,114,111,73,110,99,114,0,0,0,0,65,103,103,70,105,110,97,108,0,0,0,0,0,0,0,0,73,110,99,114,86,97,99,117,117,109,0,0,0,0,0,0,69,120,112,105,114,101,0,0,84,97,98,108,101,76,111,99,107,0,0,0,0,0,0,0,86,66,101,103,105,110,0,0,86,67,114,101,97,116,101,0,86,68,101,115,116,114,111,121,0,0,0,0,0,0,0,0,86,79,112,101,110,0,0,0,86,67,111,108,117,109,110,0,86,78,101,120,116,0,0,0,86,82,101,110,97,109,101,0,80,97,103,101,99,111,117,110,116,0,0,0,0,0,0,0,77,97,120,80,103,99,110,116,0,0,0,0,0,0,0,0,73,110,105,116,0,0,0,0,78,111,111,112,0,0,0,0,69,120,112,108,97,105,110,0,65,80,73,32,99,97,108,108,101,100,32,119,105,116,104,32,78,85,76,76,32,112,114,101,112,97,114,101,100,32,115,116,97,116,101,109,101,110,116,0,65,80,73,32,99,97,108,108,101,100,32,119,105,116,104,32,102,105,110,97,108,105,122,101,100,32,112,114,101,112,97,114,101,100,32,115,116,97,116,101,109,101,110,116,0,0,0,0,64,32,32,0,0,0,0,0,100,101,115,116,105,110,97,116,105,111,110,32,100,97,116,97,98,97,115,101,32,105,115,32,105,110,32,117,115,101,0,0,117,110,107,110,111,119,110,32,100,97,116,97,98,97,115,101,32,37,115,0,0,0,0,0,1,0,0,0,67,0,0,0,17,0,0,0,18,0,0,0,31,0,0,0,53,0,0,0,54,0,0,0,55,0,0,0,56,0,0,0,57,0,0,0,32,0,0,0,68,0,0,0,69,0,0,0,0,0,0,0,15,0,0,0,19,0,0,0,58,0,0,0,19,0,0,0,16,0,0,0,0,0,0,0,24,187,0,0,33,0,0,0,0,0,0,0,240,186,0,0,70,0,0,0,0,0,0,0,72,59,0,0,59,0,0,0,0,0,0,0,32,187,0,0,60,0,0,0,0,0,0,0,40,187,0,0,61,0,0,0,0,0,0,0,48,187,0,0,62,0,0,0,0,0,0,0,56,187,0,0,63,0,0,0,0,0,0,0,72,187,0,0,34,0,0,0,0,0,0,0,80,187,0,0,35,0,0,0,0,0,0,0,88,187,0,0,0,0,0,0,0,0,0,0,96,187,0,0,0,0,0,0,0,0,0,0,104,187,0,0,36,0,0,0,0,0,0,0,112,187,0,0,0,0,0,0,0,0,0,0,120,187,0,0,0,0,0,0,0,0,0,0,136,187,0,0,64,0,0,0,0,0,0,0,144,187,0,0,0,0,0,0,0,0,0,0,160,187,0,0,71,0,0,0,0,0,0,0,168,187,0,0,65,0,0,0,0,0,0,0,184,187,0,0,66,0,0,0,0,0,0,0,192,187,0,0,72,0,0,0,0,0,0,0,200,187,0,0,37,0,0,0,0,0,0,0,208,187,0,0,4,0,0,0,0,0,0,0,216,187,0,0,67,0,0,0,0,0,0,0,224,187,0,0,0,0,0,0,0,0,0,0,232,187,0,0,6,0,0,0,0,0,0,0,0,0,0,0,99,108,111,115,101,0,0,0,111,115,95,117,110,105,120,46,99,58,37,100,58,32,40,37,100,41,32,37,115,40,37,115,41,32,45,32,37,115,0,0,111,112,101,110,0,0,0,0,103,101,116,99,119,100,0,0,115,116,97,116,0,0,0,0,102,115,116,97,116,0,0,0,102,116,114,117,110,99,97,116,101,0,0,0,0,0,0,0,102,99,110,116,108,0,0,0,114,101,97,100,0,0,0,0,112,114,101,97,100,0,0,0,112,114,101,97,100,54,52,0,119,114,105,116,101,0,0,0,112,119,114,105,116,101,0,0,112,119,114,105,116,101,54,52,0,0,0,0,0,0,0,0,102,99,104,109,111,100,0,0,102,97,108,108,111,99,97,116,101,0,0,0,0,0,0,0,117,110,108,105,110,107,0,0,111,112,101,110,68,105,114,101,99,116,111,114,121,0,0,0,109,107,100,105,114,0,0,0,114,109,100,105,114,0,0,0,102,99,104,111,119,110,0,0,109,109,97,112,0,0,0,0,109,117,110,109,97,112,0,0,109,114,101,109,97,112,0,0,103,101,116,112,97,103,101,115,105,122,101,0,0,0,0,0,97,116,116,101,109,112,116,32,116,111,32,111,112,101,110,32,34,37,115,34,32,97,115,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,32,37,100,0,0,0,0,0,0,47,100,101,118,47,110,117,108,108,0,0,0,0,0,0,0,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,48,49,50,51,52,53,54,55,56,57,0,0,37,115,47,101,116,105,108,113,115,95,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,168,188,0,0,184,188,0,0,200,188,0,0,0,0,0,0,0,0,0,0,47,118,97,114,47,116,109,112,0,0,0,0,0,0,0,0,47,117,115,114,47,116,109,112,0,0,0,0,0,0,0,0,47,116,109,112,0,0,0,0,83,81,76,73,84,69,95,84,77,80,68,73,82,0,0,0,84,77,80,68,73,82,0,0,102,117,108,108,95,102,115,121,110,99,0,0,0,0,0,0,3,0,0,0,73,0,0,0,17,0,0,0,18,0,0,0,31,0,0,0,53,0,0,0,54,0,0,0,68,0,0,0,69,0,0,0,70,0,0,0,32,0,0,0,68,0,0,0,69,0,0,0,0,0,0,0,15,0,0,0,19,0,0,0,58,0,0,0,19,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,47,100,101,118,47,117,114,97,110,100,111,109,0,0,0,0,47,37,115,0,0,0,0,0,102,115,121,110,99,0,0,0,112,115,111,119,0,0,0,0,3,0,0,0,74,0,0,0,17,0,0,0,18,0,0,0,31,0,0,0,53,0,0,0,54,0,0,0,71,0,0,0,72,0,0,0,73,0,0,0,32,0,0,0,68,0,0,0,69,0,0,0,20,0,0,0,15,0,0,0,19,0,0,0,58,0,0,0,19,0,0,0,16,0,0,0,0,0,0,0,37,115,46,108,111,99,107,0,99,97,110,110,111,116,32,102,115,116,97,116,32,100,98,32,102,105,108,101,32,37,115,0,102,105,108,101,32,117,110,108,105,110,107,101,100,32,119,104,105,108,101,32,111,112,101,110,58,32,37,115,0,0,0,0,109,117,108,116,105,112,108,101,32,108,105,110,107,115,32,116,111,32,102,105,108,101,58,32,37,115,0,0,0,0,0,0,102,105,108,101,32,114,101,110,97,109,101,100,32,119,104,105,108,101,32,111,112,101,110,58,32,37,115,0,0,0,0,0,0,0,0,0,0,0,0,0,37,115,45,115,104,109,0,0,114,101,97,100,111,110,108,121,95,115,104,109,0,0,0,0,37,0,0,0,0,0,0,0,100,10,1,1,0,0,115,0,4,6,0,0,103,0,1,4,30,0,122,0,4,7,0,0,113,0,4,10,0,0,81,0,4,11,0,0,119,0,4,15,0,0,99,0,0,9,0,0,111,8,0,1,0,2,117,10,0,1,0,0,120,16,0,1,16,1,88,16,0,1,0,4,102,0,1,2,0,0,101,0,1,3,30,0,69,0,1,3,14,0,71,0,1,4,14,0,105,10,1,1,0,0,110,0,0,5,0,0,37,0,0,8,0,0,112,16,0,14,0,1,84,0,2,12,0,0,83,0,2,13,0,0,114,10,3,16,0,0,0,0,0,0,0,0,116,104,115,116,110,100,114,100,0,0,0,0,0,0,0,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,0,0,0,0,0,0,0,0,45,120,48,0,88,48,0,0,78,97,78,0,0,0,0,0,45,73,110,102,0,0,0,0,43,73,110,102,0,0,0,0,73,110,102,0,0,0,0,0,40,78,85,76,76,41,0,0,68,73,83,65,66,76,69,95,76,70,83,0,0,0,0,0,73,78,84,54,52,95,84,89,80,69,0,0,0,0,0,0,83,89,83,84,69,77,95,77,65,76,76,79,67,0,0,0,84,72,82,69,65,68,83,65,70,69,61,48],"i8",ALLOC_NONE,Runtime.GLOBAL_BASE+39192);var tempDoublePtr=Runtime.alignMemory(allocate(12,"i8",ALLOC_STATIC),8);assert(tempDoublePtr%8==0);function copyTempFloat(ptr){HEAP8[tempDoublePtr]=HEAP8[ptr];HEAP8[tempDoublePtr+1]=HEAP8[ptr+1];HEAP8[tempDoublePtr+2]=HEAP8[ptr+2];HEAP8[tempDoublePtr+3]=HEAP8[ptr+3]}function copyTempDouble(ptr){HEAP8[tempDoublePtr]=HEAP8[ptr];HEAP8[tempDoublePtr+1]=HEAP8[ptr+1];HEAP8[tempDoublePtr+2]=HEAP8[ptr+2];HEAP8[tempDoublePtr+3]=HEAP8[ptr+3];HEAP8[tempDoublePtr+4]=HEAP8[ptr+4];HEAP8[tempDoublePtr+5]=HEAP8[ptr+5];HEAP8[tempDoublePtr+6]=HEAP8[ptr+6];HEAP8[tempDoublePtr+7]=HEAP8[ptr+7]}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"};var ___errno_state=0;function ___setErrNo(value){HEAP32[___errno_state>>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 fd=process.stdin.fd;var usingDevice=false;try{fd=fs.openSync("/dev/stdin","r");usingDevice=true}catch(e){}bytesRead=fs.readSync(fd,buf,0,BUFSIZE,null);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}},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.buffer.byteLength: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){assert(position===0,"canOwn must imply no weird position inside the file");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}})}};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)}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 errored=false;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){if(flags in NODEFS.flagsToPermissionStringMap){return NODEFS.flagsToPermissionStringMap[flags]}else{return flags}}),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 _stdin=allocate(1,"i32*",ALLOC_STATIC);var _stdout=allocate(1,"i32*",ALLOC_STATIC);var _stderr=allocate(1,"i32*",ALLOC_STATIC);function _fflush(stream){}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:{},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 accmode=flag&2097155;var perms=["r","w","rw"][accmode];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((flags&2097155)!==0||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}),getStreamFromPtr:(function(ptr){return FS.streams[ptr-1]}),getPtrForStream:(function(stream){return stream?stream.fd+1:0}),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}var mounts=FS.getMounts(FS.root.mount);var completed=0;function done(err){if(err){if(!done.errored){done.errored=true;return callback(err)}return}if(++completed>=mounts.length){callback(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)}),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){if(err===ERRNO_CODES.EISDIR)err=ERRNO_CODES.EPERM;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(lookup.node.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(!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){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)}),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(!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(){return 0})});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")}),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");HEAP32[_stdin>>2]=FS.getPtrForStream(stdin);assert(stdin.fd===0,"invalid handle for stdin ("+stdin.fd+")");var stdout=FS.open("/dev/stdout","w");HEAP32[_stdout>>2]=FS.getPtrForStream(stdout);assert(stdout.fd===1,"invalid handle for stdout ("+stdout.fd+")");var stderr=FS.open("/dev/stderr","w");HEAP32[_stderr>>2]=FS.getPtrForStream(stderr);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];if(this.stack)this.stack=demangleAll(this.stack)};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()}),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;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 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]}));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.defineProperty(lazyArray,"length",{get:(function(){if(!this.lengthKnown){this.cacheLength()}return this._length})});Object.defineProperty(lazyArray,"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.defineProperty(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){Browser.init();var fullname=name?PATH.resolve(PATH.join2(parent,name)):parent;function processData(byteArray){function finish(byteArray){if(!dontCreateFile){FS.createDataFile(parent,name,byteArray,canRead,canWrite,canOwn)}if(onload)onload();removeRunDependency("cp "+fullname)}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("cp "+fullname)}));handled=true}}));if(!handled)finish(byteArray)}addRunDependency("cp "+fullname);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})};function _lseek(fildes,offset,whence){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}try{return FS.llseek(stream,offset,whence)}catch(e){FS.handleFSError(e);return-1}}Module["_i64Subtract"]=_i64Subtract;var _DtoILow=true;function ___assert_fail(condition,filename,line,func){ABORT=true;throw"Assertion failed: "+Pointer_stringify(condition)+", at: "+[filename?Pointer_stringify(filename):"unknown filename",line,func?Pointer_stringify(func):"unknown function"]+" at "+stackTrace()}Module["_bitshift64Ashr"]=_bitshift64Ashr;var DLFCN={error:null,errorMsg:null,loadedLibs:{},loadedLibNames:{}};function _dlsym(handle,symbol){symbol="_"+Pointer_stringify(symbol);if(!DLFCN.loadedLibs[handle]){DLFCN.errorMsg="Tried to dlsym() from an unopened handle: "+handle;return 0}else{var lib=DLFCN.loadedLibs[handle];if(lib.cached_functions.hasOwnProperty(symbol)){return lib.cached_functions[symbol]}else{if(!lib.module.hasOwnProperty(symbol)){DLFCN.errorMsg='Tried to lookup unknown symbol "'+symbol+'" in dynamic lib: '+lib.name;return 0}else{var result=lib.module[symbol];if(typeof result=="function"){result=lib.module.SYMBOL_TABLE[symbol];assert(result);lib.cached_functions=result}return result}}}}Module["_memset"]=_memset;var _BDtoILow=true;Module["_strlen"]=_strlen;Module["_strcat"]=_strcat;function _strerror_r(errnum,strerrbuf,buflen){if(errnum in ERRNO_MESSAGES){if(ERRNO_MESSAGES[errnum].length>buflen-1){return ___setErrNo(ERRNO_CODES.ERANGE)}else{var msg=ERRNO_MESSAGES[errnum];writeAsciiToMemory(msg,strerrbuf);return 0}}else{return ___setErrNo(ERRNO_CODES.EINVAL)}}function _strerror(errnum){if(!_strerror.buffer)_strerror.buffer=_malloc(256);_strerror_r(errnum,_strerror.buffer,256);return _strerror.buffer}var _DtoIHigh=true;Module["_bitshift64Shl"]=_bitshift64Shl;function _abort(){Module["abort"]()}function _usleep(useconds){var msec=useconds/1e3;if((ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&self["performance"]&&self["performance"]["now"]){var start=self["performance"]["now"]();while(self["performance"]["now"]()-start<msec){}}else{var start=Date.now();while(Date.now()-start<msec){}}return 0}function _sleep(seconds){return _usleep(seconds*1e6)}function _close(fildes){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}try{FS.close(stream);return 0}catch(e){FS.handleFSError(e);return-1}}function _access(path,amode){path=Pointer_stringify(path);if(amode&~7){___setErrNo(ERRNO_CODES.EINVAL);return-1}var node;try{var lookup=FS.lookupPath(path,{follow:true});node=lookup.node}catch(e){FS.handleFSError(e);return-1}var perms="";if(amode&4)perms+="r";if(amode&2)perms+="w";if(amode&1)perms+="x";if(perms&&FS.nodePermissions(node,perms)){___setErrNo(ERRNO_CODES.EACCES);return-1}return 0}function _unlink(path){path=Pointer_stringify(path);try{FS.unlink(path);return 0}catch(e){FS.handleFSError(e);return-1}}Module["_i64Add"]=_i64Add;function _open(path,oflag,varargs){var mode=HEAP32[varargs>>2];path=Pointer_stringify(path);try{var stream=FS.open(path,oflag,mode);return stream.fd}catch(e){FS.handleFSError(e);return-1}}function _getuid(){return 0}function _geteuid(){return _getuid.apply(null,arguments)}function _mknod(path,mode,dev){path=Pointer_stringify(path);switch(mode&61440){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:___setErrNo(ERRNO_CODES.EINVAL);return-1}try{FS.mknod(path,mode,dev);return 0}catch(e){FS.handleFSError(e);return-1}}function _mkdir(path,mode){path=Pointer_stringify(path);path=PATH.normalize(path);if(path[path.length-1]==="/")path=path.substr(0,path.length-1);try{FS.mkdir(path,mode,0);return 0}catch(e){FS.handleFSError(e);return-1}}function _mkport(){throw"TODO"}var SOCKFS={mount:(function(mount){Module["websocket"]=Module["websocket"]&&"object"===typeof Module["websocket"]?Module["websocket"]:{};Module["websocket"]._callbacks={};Module["websocket"]["on"]=(function(event,callback){if("function"===typeof callback){this._callbacks[event]=callback}return this});Module["websocket"].emit=(function(event,param){if("function"===typeof this._callbacks[event]){this._callbacks[event].call(this,param)}});return FS.createNode(null,"/",16384|511,0)}),createSocket:(function(family,type,protocol){var streaming=type==1;if(protocol){assert(streaming==(protocol==6))}var sock={family:family,type:type,protocol:protocol,server:null,error:null,peers:{},pending:[],recv_queue:[],sock_ops:SOCKFS.websocket_sock_ops};var name=SOCKFS.nextname();var node=FS.createNode(SOCKFS.root,name,49152,0);node.sock=sock;var stream=FS.createStream({path:name,node:node,flags:FS.modeStringToFlags("r+"),seekable:false,stream_ops:SOCKFS.stream_ops});sock.stream=stream;return sock}),getSocket:(function(fd){var stream=FS.getStream(fd);if(!stream||!FS.isSocket(stream.node.mode)){return null}return stream.node.sock}),stream_ops:{poll:(function(stream){var sock=stream.node.sock;return sock.sock_ops.poll(sock)}),ioctl:(function(stream,request,varargs){var sock=stream.node.sock;return sock.sock_ops.ioctl(sock,request,varargs)}),read:(function(stream,buffer,offset,length,position){var sock=stream.node.sock;var msg=sock.sock_ops.recvmsg(sock,length);if(!msg){return 0}buffer.set(msg.buffer,offset);return msg.buffer.length}),write:(function(stream,buffer,offset,length,position){var sock=stream.node.sock;return sock.sock_ops.sendmsg(sock,buffer,offset,length)}),close:(function(stream){var sock=stream.node.sock;sock.sock_ops.close(sock)})},nextname:(function(){if(!SOCKFS.nextname.current){SOCKFS.nextname.current=0}return"socket["+SOCKFS.nextname.current++ +"]"}),websocket_sock_ops:{createPeer:(function(sock,addr,port){var ws;if(typeof addr==="object"){ws=addr;addr=null;port=null}if(ws){if(ws._socket){addr=ws._socket.remoteAddress;port=ws._socket.remotePort}else{var result=/ws[s]?:\/\/([^:]+):(\d+)/.exec(ws.url);if(!result){throw new Error("WebSocket URL must be in the format ws(s)://address:port")}addr=result[1];port=parseInt(result[2],10)}}else{try{var runtimeConfig=Module["websocket"]&&"object"===typeof Module["websocket"];var url="ws:#".replace("#","//");if(runtimeConfig){if("string"===typeof Module["websocket"]["url"]){url=Module["websocket"]["url"]}}if(url==="ws://"||url==="wss://"){var parts=addr.split("/");url=url+parts[0]+":"+port+"/"+parts.slice(1).join("/")}var subProtocols="binary";if(runtimeConfig){if("string"===typeof Module["websocket"]["subprotocol"]){subProtocols=Module["websocket"]["subprotocol"]}}subProtocols=subProtocols.replace(/^ +| +$/g,"").split(/ *, */);var opts=ENVIRONMENT_IS_NODE?{"protocol":subProtocols.toString()}:subProtocols;var WebSocket=ENVIRONMENT_IS_NODE?require("ws"):window["WebSocket"];ws=new WebSocket(url,opts);ws.binaryType="arraybuffer"}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EHOSTUNREACH)}}var peer={addr:addr,port:port,socket:ws,dgram_send_queue:[]};SOCKFS.websocket_sock_ops.addPeer(sock,peer);SOCKFS.websocket_sock_ops.handlePeerEvents(sock,peer);if(sock.type===2&&typeof sock.sport!=="undefined"){peer.dgram_send_queue.push(new Uint8Array([255,255,255,255,"p".charCodeAt(0),"o".charCodeAt(0),"r".charCodeAt(0),"t".charCodeAt(0),(sock.sport&65280)>>8,sock.sport&255]))}return peer}),getPeer:(function(sock,addr,port){return sock.peers[addr+":"+port]}),addPeer:(function(sock,peer){sock.peers[peer.addr+":"+peer.port]=peer}),removePeer:(function(sock,peer){delete sock.peers[peer.addr+":"+peer.port]}),handlePeerEvents:(function(sock,peer){var first=true;var handleOpen=(function(){Module["websocket"].emit("open",sock.stream.fd);try{var queued=peer.dgram_send_queue.shift();while(queued){peer.socket.send(queued);queued=peer.dgram_send_queue.shift()}}catch(e){peer.socket.close()}});function handleMessage(data){assert(typeof data!=="string"&&data.byteLength!==undefined);data=new Uint8Array(data);var wasfirst=first;first=false;if(wasfirst&&data.length===10&&data[0]===255&&data[1]===255&&data[2]===255&&data[3]===255&&data[4]==="p".charCodeAt(0)&&data[5]==="o".charCodeAt(0)&&data[6]==="r".charCodeAt(0)&&data[7]==="t".charCodeAt(0)){var newport=data[8]<<8|data[9];SOCKFS.websocket_sock_ops.removePeer(sock,peer);peer.port=newport;SOCKFS.websocket_sock_ops.addPeer(sock,peer);return}sock.recv_queue.push({addr:peer.addr,port:peer.port,data:data});Module["websocket"].emit("message",sock.stream.fd)}if(ENVIRONMENT_IS_NODE){peer.socket.on("open",handleOpen);peer.socket.on("message",(function(data,flags){if(!flags.binary){return}handleMessage((new Uint8Array(data)).buffer)}));peer.socket.on("close",(function(){Module["websocket"].emit("close",sock.stream.fd)}));peer.socket.on("error",(function(error){sock.error=ERRNO_CODES.ECONNREFUSED;Module["websocket"].emit("error",[sock.stream.fd,sock.error,"ECONNREFUSED: Connection refused"])}))}else{peer.socket.onopen=handleOpen;peer.socket.onclose=(function(){Module["websocket"].emit("close",sock.stream.fd)});peer.socket.onmessage=function peer_socket_onmessage(event){handleMessage(event.data)};peer.socket.onerror=(function(error){sock.error=ERRNO_CODES.ECONNREFUSED;Module["websocket"].emit("error",[sock.stream.fd,sock.error,"ECONNREFUSED: Connection refused"])})}}),poll:(function(sock){if(sock.type===1&&sock.server){return sock.pending.length?64|1:0}var mask=0;var dest=sock.type===1?SOCKFS.websocket_sock_ops.getPeer(sock,sock.daddr,sock.dport):null;if(sock.recv_queue.length||!dest||dest&&dest.socket.readyState===dest.socket.CLOSING||dest&&dest.socket.readyState===dest.socket.CLOSED){mask|=64|1}if(!dest||dest&&dest.socket.readyState===dest.socket.OPEN){mask|=4}if(dest&&dest.socket.readyState===dest.socket.CLOSING||dest&&dest.socket.readyState===dest.socket.CLOSED){mask|=16}return mask}),ioctl:(function(sock,request,arg){switch(request){case 21531:var bytes=0;if(sock.recv_queue.length){bytes=sock.recv_queue[0].data.length}HEAP32[arg>>2]=bytes;return 0;default:return ERRNO_CODES.EINVAL}}),close:(function(sock){if(sock.server){try{sock.server.close()}catch(e){}sock.server=null}var peers=Object.keys(sock.peers);for(var i=0;i<peers.length;i++){var peer=sock.peers[peers[i]];try{peer.socket.close()}catch(e){}SOCKFS.websocket_sock_ops.removePeer(sock,peer)}return 0}),bind:(function(sock,addr,port){if(typeof sock.saddr!=="undefined"||typeof sock.sport!=="undefined"){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}sock.saddr=addr;sock.sport=port||_mkport();if(sock.type===2){if(sock.server){sock.server.close();sock.server=null}try{sock.sock_ops.listen(sock,0)}catch(e){if(!(e instanceof FS.ErrnoError))throw e;if(e.errno!==ERRNO_CODES.EOPNOTSUPP)throw e}}}),connect:(function(sock,addr,port){if(sock.server){throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP)}if(typeof sock.daddr!=="undefined"&&typeof sock.dport!=="undefined"){var dest=SOCKFS.websocket_sock_ops.getPeer(sock,sock.daddr,sock.dport);if(dest){if(dest.socket.readyState===dest.socket.CONNECTING){throw new FS.ErrnoError(ERRNO_CODES.EALREADY)}else{throw new FS.ErrnoError(ERRNO_CODES.EISCONN)}}}var peer=SOCKFS.websocket_sock_ops.createPeer(sock,addr,port);sock.daddr=peer.addr;sock.dport=peer.port;throw new FS.ErrnoError(ERRNO_CODES.EINPROGRESS)}),listen:(function(sock,backlog){if(!ENVIRONMENT_IS_NODE){throw new FS.ErrnoError(ERRNO_CODES.EOPNOTSUPP)}if(sock.server){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var WebSocketServer=require("ws").Server;var host=sock.saddr;sock.server=new WebSocketServer({host:host,port:sock.sport});Module["websocket"].emit("listen",sock.stream.fd);sock.server.on("connection",(function(ws){if(sock.type===1){var newsock=SOCKFS.createSocket(sock.family,sock.type,sock.protocol);var peer=SOCKFS.websocket_sock_ops.createPeer(newsock,ws);newsock.daddr=peer.addr;newsock.dport=peer.port;sock.pending.push(newsock);Module["websocket"].emit("connection",newsock.stream.fd)}else{SOCKFS.websocket_sock_ops.createPeer(sock,ws);Module["websocket"].emit("connection",sock.stream.fd)}}));sock.server.on("closed",(function(){Module["websocket"].emit("close",sock.stream.fd);sock.server=null}));sock.server.on("error",(function(error){sock.error=ERRNO_CODES.EHOSTUNREACH;Module["websocket"].emit("error",[sock.stream.fd,sock.error,"EHOSTUNREACH: Host is unreachable"])}))}),accept:(function(listensock){if(!listensock.server){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}var newsock=listensock.pending.shift();newsock.stream.flags=listensock.stream.flags;return newsock}),getname:(function(sock,peer){var addr,port;if(peer){if(sock.daddr===undefined||sock.dport===undefined){throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN)}addr=sock.daddr;port=sock.dport}else{addr=sock.saddr||0;port=sock.sport||0}return{addr:addr,port:port}}),sendmsg:(function(sock,buffer,offset,length,addr,port){if(sock.type===2){if(addr===undefined||port===undefined){addr=sock.daddr;port=sock.dport}if(addr===undefined||port===undefined){throw new FS.ErrnoError(ERRNO_CODES.EDESTADDRREQ)}}else{addr=sock.daddr;port=sock.dport}var dest=SOCKFS.websocket_sock_ops.getPeer(sock,addr,port);if(sock.type===1){if(!dest||dest.socket.readyState===dest.socket.CLOSING||dest.socket.readyState===dest.socket.CLOSED){throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN)}else if(dest.socket.readyState===dest.socket.CONNECTING){throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}}var data;if(buffer instanceof Array||buffer instanceof ArrayBuffer){data=buffer.slice(offset,offset+length)}else{data=buffer.buffer.slice(buffer.byteOffset+offset,buffer.byteOffset+offset+length)}if(sock.type===2){if(!dest||dest.socket.readyState!==dest.socket.OPEN){if(!dest||dest.socket.readyState===dest.socket.CLOSING||dest.socket.readyState===dest.socket.CLOSED){dest=SOCKFS.websocket_sock_ops.createPeer(sock,addr,port)}dest.dgram_send_queue.push(data);return length}}try{dest.socket.send(data);return length}catch(e){throw new FS.ErrnoError(ERRNO_CODES.EINVAL)}}),recvmsg:(function(sock,length){if(sock.type===1&&sock.server){throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN)}var queued=sock.recv_queue.shift();if(!queued){if(sock.type===1){var dest=SOCKFS.websocket_sock_ops.getPeer(sock,sock.daddr,sock.dport);if(!dest){throw new FS.ErrnoError(ERRNO_CODES.ENOTCONN)}else if(dest.socket.readyState===dest.socket.CLOSING||dest.socket.readyState===dest.socket.CLOSED){return null}else{throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}}else{throw new FS.ErrnoError(ERRNO_CODES.EAGAIN)}}var queuedLength=queued.data.byteLength||queued.data.length;var queuedOffset=queued.data.byteOffset||0;var queuedBuffer=queued.data.buffer||queued.data;var bytesRead=Math.min(length,queuedLength);var res={buffer:new Uint8Array(queuedBuffer,queuedOffset,bytesRead),addr:queued.addr,port:queued.port};if(sock.type===1&&bytesRead<queuedLength){var bytesRemaining=queuedLength-bytesRead;queued.data=new Uint8Array(queuedBuffer,queuedOffset+bytesRead,bytesRemaining);sock.recv_queue.unshift(queued)}return res})}};function _send(fd,buf,len,flags){var sock=SOCKFS.getSocket(fd);if(!sock){___setErrNo(ERRNO_CODES.EBADF);return-1}return _write(fd,buf,len)}function _pwrite(fildes,buf,nbyte,offset){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}try{var slab=HEAP8;return FS.write(stream,slab,buf,nbyte,offset)}catch(e){FS.handleFSError(e);return-1}}function _write(fildes,buf,nbyte){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}try{var slab=HEAP8;return FS.write(stream,slab,buf,nbyte)}catch(e){FS.handleFSError(e);return-1}}var _SItoD=true;function _chmod(path,mode,dontResolveLastLink){path=typeof path!=="string"?Pointer_stringify(path):path;try{FS.chmod(path,mode);return 0}catch(e){FS.handleFSError(e);return-1}}function _fchmod(fildes,mode){try{FS.fchmod(fildes,mode);return 0}catch(e){FS.handleFSError(e);return-1}}function _emscripten_set_main_loop_timing(mode,value){Browser.mainLoop.timingMode=mode;Browser.mainLoop.timingValue=value;if(!Browser.mainLoop.func){console.error("emscripten_set_main_loop_timing: Cannot set timing mode for main loop since a main loop does not exist! Call emscripten_set_main_loop first to set one up.");return 1}if(mode==0){Browser.mainLoop.scheduler=function Browser_mainLoop_scheduler(){setTimeout(Browser.mainLoop.runner,value)};Browser.mainLoop.method="timeout"}else if(mode==1){Browser.mainLoop.scheduler=function Browser_mainLoop_scheduler(){Browser.requestAnimationFrame(Browser.mainLoop.runner)};Browser.mainLoop.method="rAF"}return 0}function _emscripten_set_main_loop(func,fps,simulateInfiniteLoop,arg,noSetTiming){Module["noExitRuntime"]=true;assert(!Browser.mainLoop.func,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters.");Browser.mainLoop.func=func;Browser.mainLoop.arg=arg;var thisMainLoopId=Browser.mainLoop.currentlyRunningMainloop;Browser.mainLoop.runner=function Browser_mainLoop_runner(){if(ABORT)return;if(Browser.mainLoop.queue.length>0){var start=Date.now();var blocker=Browser.mainLoop.queue.shift();blocker.func(blocker.arg);if(Browser.mainLoop.remainingBlockers){var remaining=Browser.mainLoop.remainingBlockers;var next=remaining%1==0?remaining-1:Math.floor(remaining);if(blocker.counted){Browser.mainLoop.remainingBlockers=next}else{next=next+.5;Browser.mainLoop.remainingBlockers=(8*remaining+next)/9}}console.log('main loop blocker "'+blocker.name+'" took '+(Date.now()-start)+" ms");Browser.mainLoop.updateStatus();setTimeout(Browser.mainLoop.runner,0);return}if(thisMainLoopId<Browser.mainLoop.currentlyRunningMainloop)return;Browser.mainLoop.currentFrameNumber=Browser.mainLoop.currentFrameNumber+1|0;if(Browser.mainLoop.timingMode==1&&Browser.mainLoop.timingValue>1&&Browser.mainLoop.currentFrameNumber%Browser.mainLoop.timingValue!=0){Browser.mainLoop.scheduler();return}if(Browser.mainLoop.method==="timeout"&&Module.ctx){Module.printErr("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!");Browser.mainLoop.method=""}Browser.mainLoop.runIter((function(){if(typeof arg!=="undefined"){Runtime.dynCall("vi",func,[arg])}else{Runtime.dynCall("v",func)}}));if(thisMainLoopId<Browser.mainLoop.currentlyRunningMainloop)return;if(typeof SDL==="object"&&SDL.audio&&SDL.audio.queueNewAudioData)SDL.audio.queueNewAudioData();Browser.mainLoop.scheduler()};if(!noSetTiming){if(fps&&fps>0)_emscripten_set_main_loop_timing(0,1e3/fps);else _emscripten_set_main_loop_timing(1,1);Browser.mainLoop.scheduler()}if(simulateInfiniteLoop){throw"SimulateInfiniteLoop"}}var Browser={mainLoop:{scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:(function(){Browser.mainLoop.scheduler=null;Browser.mainLoop.currentlyRunningMainloop++}),resume:(function(){Browser.mainLoop.currentlyRunningMainloop++;var timingMode=Browser.mainLoop.timingMode;var timingValue=Browser.mainLoop.timingValue;var func=Browser.mainLoop.func;Browser.mainLoop.func=null;_emscripten_set_main_loop(func,0,false,Browser.mainLoop.arg,true);_emscripten_set_main_loop_timing(timingMode,timingValue);Browser.mainLoop.scheduler()}),updateStatus:(function(){if(Module["setStatus"]){var message=Module["statusMessage"]||"Please wait...";var remaining=Browser.mainLoop.remainingBlockers;var expected=Browser.mainLoop.expectedBlockers;if(remaining){if(remaining<expected){Module["setStatus"](message+" ("+(expected-remaining)+"/"+expected+")")}else{Module["setStatus"](message)}}else{Module["setStatus"]("")}}}),runIter:(function(func){if(ABORT)return;if(Module["preMainLoop"]){var preRet=Module["preMainLoop"]();if(preRet===false){return}}try{func()}catch(e){if(e instanceof ExitStatus){return}else{if(e&&typeof e==="object"&&e.stack)Module.printErr("exception thrown: "+[e,e.stack]);throw e}}if(Module["postMainLoop"])Module["postMainLoop"]()})},isFullScreen:false,pointerLock:false,moduleContextCreatedCallbacks:[],workers:[],init:(function(){if(!Module["preloadPlugins"])Module["preloadPlugins"]=[];if(Browser.initted)return;Browser.initted=true;try{new Blob;Browser.hasBlobConstructor=true}catch(e){Browser.hasBlobConstructor=false;console.log("warning: no blob constructor, cannot create blobs with mimetypes")}Browser.BlobBuilder=typeof MozBlobBuilder!="undefined"?MozBlobBuilder:typeof WebKitBlobBuilder!="undefined"?WebKitBlobBuilder:!Browser.hasBlobConstructor?console.log("warning: no BlobBuilder"):null;Browser.URLObject=typeof window!="undefined"?window.URL?window.URL:window.webkitURL:undefined;if(!Module.noImageDecoding&&typeof Browser.URLObject==="undefined"){console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available.");Module.noImageDecoding=true}var imagePlugin={};imagePlugin["canHandle"]=function imagePlugin_canHandle(name){return!Module.noImageDecoding&&/\.(jpg|jpeg|png|bmp)$/i.test(name)};imagePlugin["handle"]=function imagePlugin_handle(byteArray,name,onload,onerror){var b=null;if(Browser.hasBlobConstructor){try{b=new Blob([byteArray],{type:Browser.getMimetype(name)});if(b.size!==byteArray.length){b=new Blob([(new Uint8Array(byteArray)).buffer],{type:Browser.getMimetype(name)})}}catch(e){Runtime.warnOnce("Blob constructor present but fails: "+e+"; falling back to blob builder")}}if(!b){var bb=new Browser.BlobBuilder;bb.append((new Uint8Array(byteArray)).buffer);b=bb.getBlob()}var url=Browser.URLObject.createObjectURL(b);assert(typeof url=="string","createObjectURL must return a url as a string");var img=new Image;img.onload=function img_onload(){assert(img.complete,"Image "+name+" could not be decoded");var canvas=document.createElement("canvas");canvas.width=img.width;canvas.height=img.height;var ctx=canvas.getContext("2d");ctx.drawImage(img,0,0);Module["preloadedImages"][name]=canvas;Browser.URLObject.revokeObjectURL(url);if(onload)onload(byteArray)};img.onerror=function img_onerror(event){console.log("Image "+url+" could not be decoded");if(onerror)onerror()};img.src=url};Module["preloadPlugins"].push(imagePlugin);var audioPlugin={};audioPlugin["canHandle"]=function audioPlugin_canHandle(name){return!Module.noAudioDecoding&&name.substr(-4)in{".ogg":1,".wav":1,".mp3":1}};audioPlugin["handle"]=function audioPlugin_handle(byteArray,name,onload,onerror){var done=false;function finish(audio){if(done)return;done=true;Module["preloadedAudios"][name]=audio;if(onload)onload(byteArray)}function fail(){if(done)return;done=true;Module["preloadedAudios"][name]=new Audio;if(onerror)onerror()}if(Browser.hasBlobConstructor){try{var b=new Blob([byteArray],{type:Browser.getMimetype(name)})}catch(e){return fail()}var url=Browser.URLObject.createObjectURL(b);assert(typeof url=="string","createObjectURL must return a url as a string");var audio=new Audio;audio.addEventListener("canplaythrough",(function(){finish(audio)}),false);audio.onerror=function audio_onerror(event){if(done)return;console.log("warning: browser could not fully decode audio "+name+", trying slower base64 approach");function encode64(data){var BASE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var PAD="=";var ret="";var leftchar=0;var leftbits=0;for(var i=0;i<data.length;i++){leftchar=leftchar<<8|data[i];leftbits+=8;while(leftbits>=6){var curr=leftchar>>leftbits-6&63;leftbits-=6;ret+=BASE[curr]}}if(leftbits==2){ret+=BASE[(leftchar&3)<<4];ret+=PAD+PAD}else if(leftbits==4){ret+=BASE[(leftchar&15)<<2];ret+=PAD}return ret}audio.src="data:audio/x-"+name.substr(-3)+";base64,"+encode64(byteArray);finish(audio)};audio.src=url;Browser.safeSetTimeout((function(){finish(audio)}),1e4)}else{return fail()}};Module["preloadPlugins"].push(audioPlugin);var canvas=Module["canvas"];function pointerLockChange(){Browser.pointerLock=document["pointerLockElement"]===canvas||document["mozPointerLockElement"]===canvas||document["webkitPointerLockElement"]===canvas||document["msPointerLockElement"]===canvas}if(canvas){canvas.requestPointerLock=canvas["requestPointerLock"]||canvas["mozRequestPointerLock"]||canvas["webkitRequestPointerLock"]||canvas["msRequestPointerLock"]||(function(){});canvas.exitPointerLock=document["exitPointerLock"]||document["mozExitPointerLock"]||document["webkitExitPointerLock"]||document["msExitPointerLock"]||(function(){});canvas.exitPointerLock=canvas.exitPointerLock.bind(document);document.addEventListener("pointerlockchange",pointerLockChange,false);document.addEventListener("mozpointerlockchange",pointerLockChange,false);document.addEventListener("webkitpointerlockchange",pointerLockChange,false);document.addEventListener("mspointerlockchange",pointerLockChange,false);if(Module["elementPointerLock"]){canvas.addEventListener("click",(function(ev){if(!Browser.pointerLock&&canvas.requestPointerLock){canvas.requestPointerLock();ev.preventDefault()}}),false)}}}),createContext:(function(canvas,useWebGL,setInModule,webGLContextAttributes){if(useWebGL&&Module.ctx&&canvas==Module.canvas)return Module.ctx;var ctx;var contextHandle;if(useWebGL){var contextAttributes={antialias:false,alpha:false};if(webGLContextAttributes){for(var attribute in webGLContextAttributes){contextAttributes[attribute]=webGLContextAttributes[attribute]}}contextHandle=GL.createContext(canvas,contextAttributes);if(contextHandle){ctx=GL.getContext(contextHandle).GLctx}canvas.style.backgroundColor="black"}else{ctx=canvas.getContext("2d")}if(!ctx)return null;if(setInModule){if(!useWebGL)assert(typeof GLctx==="undefined","cannot set in module if GLctx is used, but we are a non-GL context that would replace it");Module.ctx=ctx;if(useWebGL)GL.makeContextCurrent(contextHandle);Module.useWebGL=useWebGL;Browser.moduleContextCreatedCallbacks.forEach((function(callback){callback()}));Browser.init()}return ctx}),destroyContext:(function(canvas,useWebGL,setInModule){}),fullScreenHandlersInstalled:false,lockPointer:undefined,resizeCanvas:undefined,requestFullScreen:(function(lockPointer,resizeCanvas,vrDevice){Browser.lockPointer=lockPointer;Browser.resizeCanvas=resizeCanvas;Browser.vrDevice=vrDevice;if(typeof Browser.lockPointer==="undefined")Browser.lockPointer=true;if(typeof Browser.resizeCanvas==="undefined")Browser.resizeCanvas=false;if(typeof Browser.vrDevice==="undefined")Browser.vrDevice=null;var canvas=Module["canvas"];function fullScreenChange(){Browser.isFullScreen=false;var canvasContainer=canvas.parentNode;if((document["webkitFullScreenElement"]||document["webkitFullscreenElement"]||document["mozFullScreenElement"]||document["mozFullscreenElement"]||document["fullScreenElement"]||document["fullscreenElement"]||document["msFullScreenElement"]||document["msFullscreenElement"]||document["webkitCurrentFullScreenElement"])===canvasContainer){canvas.cancelFullScreen=document["cancelFullScreen"]||document["mozCancelFullScreen"]||document["webkitCancelFullScreen"]||document["msExitFullscreen"]||document["exitFullscreen"]||(function(){});canvas.cancelFullScreen=canvas.cancelFullScreen.bind(document);if(Browser.lockPointer)canvas.requestPointerLock();Browser.isFullScreen=true;if(Browser.resizeCanvas)Browser.setFullScreenCanvasSize()}else{canvasContainer.parentNode.insertBefore(canvas,canvasContainer);canvasContainer.parentNode.removeChild(canvasContainer);if(Browser.resizeCanvas)Browser.setWindowedCanvasSize()}if(Module["onFullScreen"])Module["onFullScreen"](Browser.isFullScreen);Browser.updateCanvasDimensions(canvas)}if(!Browser.fullScreenHandlersInstalled){Browser.fullScreenHandlersInstalled=true;document.addEventListener("fullscreenchange",fullScreenChange,false);document.addEventListener("mozfullscreenchange",fullScreenChange,false);document.addEventListener("webkitfullscreenchange",fullScreenChange,false);document.addEventListener("MSFullscreenChange",fullScreenChange,false)}var canvasContainer=document.createElement("div");canvas.parentNode.insertBefore(canvasContainer,canvas);canvasContainer.appendChild(canvas);canvasContainer.requestFullScreen=canvasContainer["requestFullScreen"]||canvasContainer["mozRequestFullScreen"]||canvasContainer["msRequestFullscreen"]||(canvasContainer["webkitRequestFullScreen"]?(function(){canvasContainer["webkitRequestFullScreen"](Element["ALLOW_KEYBOARD_INPUT"])}):null);if(vrDevice){canvasContainer.requestFullScreen({vrDisplay:vrDevice})}else{canvasContainer.requestFullScreen()}}),nextRAF:0,fakeRequestAnimationFrame:(function(func){var now=Date.now();if(Browser.nextRAF===0){Browser.nextRAF=now+1e3/60}else{while(now+2>=Browser.nextRAF){Browser.nextRAF+=1e3/60}}var delay=Math.max(Browser.nextRAF-now,0);setTimeout(func,delay)}),requestAnimationFrame:function requestAnimationFrame(func){if(typeof window==="undefined"){Browser.fakeRequestAnimationFrame(func)}else{if(!window.requestAnimationFrame){window.requestAnimationFrame=window["requestAnimationFrame"]||window["mozRequestAnimationFrame"]||window["webkitRequestAnimationFrame"]||window["msRequestAnimationFrame"]||window["oRequestAnimationFrame"]||Browser.fakeRequestAnimationFrame}window.requestAnimationFrame(func)}},safeCallback:(function(func){return(function(){if(!ABORT)return func.apply(null,arguments)})}),allowAsyncCallbacks:true,queuedAsyncCallbacks:[],pauseAsyncCallbacks:(function(){Browser.allowAsyncCallbacks=false}),resumeAsyncCallbacks:(function(){Browser.allowAsyncCallbacks=true;if(Browser.queuedAsyncCallbacks.length>0){var callbacks=Browser.queuedAsyncCallbacks;Browser.queuedAsyncCallbacks=[];callbacks.forEach((function(func){func()}))}}),safeRequestAnimationFrame:(function(func){return Browser.requestAnimationFrame((function(){if(ABORT)return;if(Browser.allowAsyncCallbacks){func()}else{Browser.queuedAsyncCallbacks.push(func)}}))}),safeSetTimeout:(function(func,timeout){Module["noExitRuntime"]=true;return setTimeout((function(){if(ABORT)return;if(Browser.allowAsyncCallbacks){func()}else{Browser.queuedAsyncCallbacks.push(func)}}),timeout)}),safeSetInterval:(function(func,timeout){Module["noExitRuntime"]=true;return setInterval((function(){if(ABORT)return;if(Browser.allowAsyncCallbacks){func()}}),timeout)}),getMimetype:(function(name){return{"jpg":"image/jpeg","jpeg":"image/jpeg","png":"image/png","bmp":"image/bmp","ogg":"audio/ogg","wav":"audio/wav","mp3":"audio/mpeg"}[name.substr(name.lastIndexOf(".")+1)]}),getUserMedia:(function(func){if(!window.getUserMedia){window.getUserMedia=navigator["getUserMedia"]||navigator["mozGetUserMedia"]}window.getUserMedia(func)}),getMovementX:(function(event){return event["movementX"]||event["mozMovementX"]||event["webkitMovementX"]||0}),getMovementY:(function(event){return event["movementY"]||event["mozMovementY"]||event["webkitMovementY"]||0}),getMouseWheelDelta:(function(event){var delta=0;switch(event.type){case"DOMMouseScroll":delta=event.detail;break;case"mousewheel":delta=event.wheelDelta;break;case"wheel":delta=event["deltaY"];break;default:throw"unrecognized mouse wheel event: "+event.type}return delta}),mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseEvent:(function(event){if(Browser.pointerLock){if(event.type!="mousemove"&&"mozMovementX"in event){Browser.mouseMovementX=Browser.mouseMovementY=0}else{Browser.mouseMovementX=Browser.getMovementX(event);Browser.mouseMovementY=Browser.getMovementY(event)}if(typeof SDL!="undefined"){Browser.mouseX=SDL.mouseX+Browser.mouseMovementX;Browser.mouseY=SDL.mouseY+Browser.mouseMovementY}else{Browser.mouseX+=Browser.mouseMovementX;Browser.mouseY+=Browser.mouseMovementY}}else{var rect=Module["canvas"].getBoundingClientRect();var cw=Module["canvas"].width;var ch=Module["canvas"].height;var scrollX=typeof window.scrollX!=="undefined"?window.scrollX:window.pageXOffset;var scrollY=typeof window.scrollY!=="undefined"?window.scrollY:window.pageYOffset;assert(typeof scrollX!=="undefined"&&typeof scrollY!=="undefined","Unable to retrieve scroll position, mouse positions likely broken.");if(event.type==="touchstart"||event.type==="touchend"||event.type==="touchmove"){var touch=event.touch;if(touch===undefined){return}var adjustedX=touch.pageX-(scrollX+rect.left);var adjustedY=touch.pageY-(scrollY+rect.top);adjustedX=adjustedX*(cw/rect.width);adjustedY=adjustedY*(ch/rect.height);var coords={x:adjustedX,y:adjustedY};if(event.type==="touchstart"){Browser.lastTouches[touch.identifier]=coords;Browser.touches[touch.identifier]=coords}else if(event.type==="touchend"||event.type==="touchmove"){Browser.lastTouches[touch.identifier]=Browser.touches[touch.identifier];Browser.touches[touch.identifier]={x:adjustedX,y:adjustedY}}return}var x=event.pageX-(scrollX+rect.left);var y=event.pageY-(scrollY+rect.top);x=x*(cw/rect.width);y=y*(ch/rect.height);Browser.mouseMovementX=x-Browser.mouseX;Browser.mouseMovementY=y-Browser.mouseY;Browser.mouseX=x;Browser.mouseY=y}}),xhrLoad:(function(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)}),asyncLoad:(function(url,onload,onerror,noRunDep){Browser.xhrLoad(url,(function(arrayBuffer){assert(arrayBuffer,'Loading data file "'+url+'" failed (no arrayBuffer).');onload(new Uint8Array(arrayBuffer));if(!noRunDep)removeRunDependency("al "+url)}),(function(event){if(onerror){onerror()}else{throw'Loading data file "'+url+'" failed.'}}));if(!noRunDep)addRunDependency("al "+url)}),resizeListeners:[],updateResizeListeners:(function(){var canvas=Module["canvas"];Browser.resizeListeners.forEach((function(listener){listener(canvas.width,canvas.height)}))}),setCanvasSize:(function(width,height,noUpdates){var canvas=Module["canvas"];Browser.updateCanvasDimensions(canvas,width,height);if(!noUpdates)Browser.updateResizeListeners()}),windowedWidth:0,windowedHeight:0,setFullScreenCanvasSize:(function(){if(typeof SDL!="undefined"){var flags=HEAPU32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2];flags=flags|8388608;HEAP32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2]=flags}Browser.updateResizeListeners()}),setWindowedCanvasSize:(function(){if(typeof SDL!="undefined"){var flags=HEAPU32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2];flags=flags&~8388608;HEAP32[SDL.screen+Runtime.QUANTUM_SIZE*0>>2]=flags}Browser.updateResizeListeners()}),updateCanvasDimensions:(function(canvas,wNative,hNative){if(wNative&&hNative){canvas.widthNative=wNative;canvas.heightNative=hNative}else{wNative=canvas.widthNative;hNative=canvas.heightNative}var w=wNative;var h=hNative;if(Module["forcedAspectRatio"]&&Module["forcedAspectRatio"]>0){if(w/h<Module["forcedAspectRatio"]){w=Math.round(h*Module["forcedAspectRatio"])}else{h=Math.round(w/Module["forcedAspectRatio"])}}if((document["webkitFullScreenElement"]||document["webkitFullscreenElement"]||document["mozFullScreenElement"]||document["mozFullscreenElement"]||document["fullScreenElement"]||document["fullscreenElement"]||document["msFullScreenElement"]||document["msFullscreenElement"]||document["webkitCurrentFullScreenElement"])===canvas.parentNode&&typeof screen!="undefined"){var factor=Math.min(screen.width/w,screen.height/h);w=Math.round(w*factor);h=Math.round(h*factor)}if(Browser.resizeCanvas){if(canvas.width!=w)canvas.width=w;if(canvas.height!=h)canvas.height=h;if(typeof canvas.style!="undefined"){canvas.style.removeProperty("width");canvas.style.removeProperty("height")}}else{if(canvas.width!=wNative)canvas.width=wNative;if(canvas.height!=hNative)canvas.height=hNative;if(typeof canvas.style!="undefined"){if(w!=wNative||h!=hNative){canvas.style.setProperty("width",w+"px","important");canvas.style.setProperty("height",h+"px","important")}else{canvas.style.removeProperty("width");canvas.style.removeProperty("height")}}}}),wgetRequests:{},nextWgetRequestHandle:0,getNextWgetRequestHandle:(function(){var handle=Browser.nextWgetRequestHandle;Browser.nextWgetRequestHandle++;return handle})};function _rmdir(path){path=Pointer_stringify(path);try{FS.rmdir(path);return 0}catch(e){FS.handleFSError(e);return-1}}function _time(ptr){var ret=Date.now()/1e3|0;if(ptr){HEAP32[ptr>>2]=ret}return ret}function _munmap(start,num){if(!_mmap.mappings)_mmap.mappings={};var info=_mmap.mappings[start];if(!info)return 0;if(num==info.num){_mmap.mappings[start]=null;if(info.allocated){_free(info.malloc)}}return 0}function _stat(path,buf,dontResolveLastLink){path=typeof path!=="string"?Pointer_stringify(path):path;try{var stat=dontResolveLastLink?FS.lstat(path):FS.stat(path);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}catch(e){if(e.node&&PATH.normalize(path)!==PATH.normalize(FS.getPath(e.node))){e.setErrno(ERRNO_CODES.ENOTDIR)}FS.handleFSError(e);return-1}}function _fstat(fildes,buf){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}return _stat(stream.path,buf)}var ___tm_current=allocate(44,"i8",ALLOC_STATIC);var ___tm_timezone=allocate(intArrayFromString("GMT"),"i8",ALLOC_STATIC);var _tzname=allocate(8,"i32*",ALLOC_STATIC);var _daylight=allocate(1,"i32*",ALLOC_STATIC);var _timezone=allocate(1,"i32*",ALLOC_STATIC);function _tzset(){if(_tzset.called)return;_tzset.called=true;HEAP32[_timezone>>2]=-(new Date).getTimezoneOffset()*60;var winter=new Date(2e3,0,1);var summer=new Date(2e3,6,1);HEAP32[_daylight>>2]=Number(winter.getTimezoneOffset()!=summer.getTimezoneOffset());function extractZone(date){var match=date.toTimeString().match(/\(([A-Za-z ]+)\)$/);return match?match[1]:"GMT"}var winterName=extractZone(winter);var summerName=extractZone(summer);var winterNamePtr=allocate(intArrayFromString(winterName),"i8",ALLOC_NORMAL);var summerNamePtr=allocate(intArrayFromString(summerName),"i8",ALLOC_NORMAL);if(summer.getTimezoneOffset()<winter.getTimezoneOffset()){HEAP32[_tzname>>2]=winterNamePtr;HEAP32[_tzname+4>>2]=summerNamePtr}else{HEAP32[_tzname>>2]=summerNamePtr;HEAP32[_tzname+4>>2]=winterNamePtr}}function _localtime_r(time,tmPtr){_tzset();var date=new Date(HEAP32[time>>2]*1e3);HEAP32[tmPtr>>2]=date.getSeconds();HEAP32[tmPtr+4>>2]=date.getMinutes();HEAP32[tmPtr+8>>2]=date.getHours();HEAP32[tmPtr+12>>2]=date.getDate();HEAP32[tmPtr+16>>2]=date.getMonth();HEAP32[tmPtr+20>>2]=date.getFullYear()-1900;HEAP32[tmPtr+24>>2]=date.getDay();var start=new Date(date.getFullYear(),0,1);var yday=(date.getTime()-start.getTime())/(1e3*60*60*24)|0;HEAP32[tmPtr+28>>2]=yday;HEAP32[tmPtr+36>>2]=-(date.getTimezoneOffset()*60);var summerOffset=(new Date(2e3,6,1)).getTimezoneOffset();var winterOffset=start.getTimezoneOffset();var dst=date.getTimezoneOffset()==Math.min(winterOffset,summerOffset)|0;HEAP32[tmPtr+32>>2]=dst;var zonePtr=HEAP32[_tzname+(dst?Runtime.QUANTUM_SIZE:0)>>2];HEAP32[tmPtr+40>>2]=zonePtr;return tmPtr}function _localtime(time){return _localtime_r(time,___tm_current)}function _fcntl(fildes,cmd,varargs,dup2){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}switch(cmd){case 0:var arg=HEAP32[varargs>>2];if(arg<0){___setErrNo(ERRNO_CODES.EINVAL);return-1}var newStream;try{newStream=FS.open(stream.path,stream.flags,0,arg)}catch(e){FS.handleFSError(e);return-1}return newStream.fd;case 1:case 2:return 0;case 3:return stream.flags;case 4:var arg=HEAP32[varargs>>2];stream.flags|=arg;return 0;case 12:case 12:var arg=HEAP32[varargs>>2];var offset=0;HEAP16[arg+offset>>1]=2;return 0;case 13:case 14:case 13:case 14:return 0;case 8:case 9:___setErrNo(ERRNO_CODES.EINVAL);return-1;default:___setErrNo(ERRNO_CODES.EINVAL);return-1}return-1}function _sysconf(name){switch(name){case 30:return PAGE_SIZE;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 79:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:{if(typeof navigator==="object")return navigator["hardwareConcurrency"]||1;return 1}}___setErrNo(ERRNO_CODES.EINVAL);return-1}function _recv(fd,buf,len,flags){var sock=SOCKFS.getSocket(fd);if(!sock){___setErrNo(ERRNO_CODES.EBADF);return-1}return _read(fd,buf,len)}function _pread(fildes,buf,nbyte,offset){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}try{var slab=HEAP8;return FS.read(stream,slab,buf,nbyte,offset)}catch(e){FS.handleFSError(e);return-1}}function _read(fildes,buf,nbyte){var stream=FS.getStream(fildes);if(!stream){___setErrNo(ERRNO_CODES.EBADF);return-1}try{var slab=HEAP8;return FS.read(stream,slab,buf,nbyte)}catch(e){FS.handleFSError(e);return-1}}var _BDtoIHigh=true;function _getcwd(buf,size){if(size==0){___setErrNo(ERRNO_CODES.EINVAL);return 0}var cwd=FS.cwd();if(size<cwd.length+1){___setErrNo(ERRNO_CODES.ERANGE);return 0}else{writeAsciiToMemory(cwd,buf);return buf}}var PROCINFO={ppid:1,pid:42,sid:42,pgid:42};function _getpid(){return PROCINFO.pid}var _environ=allocate(1,"i32*",ALLOC_STATIC);var ___environ=_environ;function ___buildEnvironment(env){var MAX_ENV_VALUES=64;var TOTAL_ENV_SIZE=1024;var poolPtr;var envPtr;if(!___buildEnvironment.called){___buildEnvironment.called=true;ENV["USER"]="web_user";ENV["PATH"]="/";ENV["PWD"]="/";ENV["HOME"]="/home/web_user";ENV["LANG"]="C";ENV["_"]=Module["thisProgram"];poolPtr=allocate(TOTAL_ENV_SIZE,"i8",ALLOC_STATIC);envPtr=allocate(MAX_ENV_VALUES*4,"i8*",ALLOC_STATIC);HEAP32[envPtr>>2]=poolPtr;HEAP32[_environ>>2]=envPtr}else{envPtr=HEAP32[_environ>>2];poolPtr=HEAP32[envPtr>>2]}var strings=[];var totalSize=0;for(var key in env){if(typeof env[key]==="string"){var line=key+"="+env[key];strings.push(line);totalSize+=line.length}}if(totalSize>TOTAL_ENV_SIZE){throw new Error("Environment size exceeded TOTAL_ENV_SIZE!")}var ptrSize=4;for(var i=0;i<strings.length;i++){var line=strings[i];writeAsciiToMemory(line,poolPtr);HEAP32[envPtr+i*ptrSize>>2]=poolPtr;poolPtr+=line.length+1}HEAP32[envPtr+strings.length*ptrSize>>2]=0}var ENV={};function _getenv(name){if(name===0)return 0;name=Pointer_stringify(name);if(!ENV.hasOwnProperty(name))return 0;if(_getenv.ret)_free(_getenv.ret);_getenv.ret=allocate(intArrayFromString(ENV[name]),"i8",ALLOC_NORMAL);return _getenv.ret}function _gettimeofday(ptr){var now=Date.now();HEAP32[ptr>>2]=now/1e3|0;HEAP32[ptr+4>>2]=now%1e3*1e3|0;return 0}function _chown(path,owner,group,dontResolveLastLink){if(typeof path!=="string")path=Pointer_stringify(path);try{FS.chown(path,owner,group);return 0}catch(e){FS.handleFSError(e);return-1}}function _fchown(fildes,owner,group){try{FS.fchown(fildes,owner,group);return 0}catch(e){FS.handleFSError(e);return-1}}function _dlclose(handle){if(!DLFCN.loadedLibs[handle]){DLFCN.errorMsg="Tried to dlclose() unopened handle: "+handle;return 1}else{var lib_record=DLFCN.loadedLibs[handle];if(--lib_record.refcount==0){if(lib_record.module.cleanups){lib_record.module.cleanups.forEach((function(cleanup){cleanup()}))}delete DLFCN.loadedLibNames[lib_record.name];delete DLFCN.loadedLibs[handle]}return 0}}function _emscripten_memcpy_big(dest,src,num){HEAPU8.set(HEAPU8.subarray(src,src+num),dest);return dest}Module["_memcpy"]=_memcpy;function _dlopen(filename,flag){filename=filename===0?"__self__":(ENV["LD_LIBRARY_PATH"]||"/")+Pointer_stringify(filename);abort("need to build with DLOPEN_SUPPORT=1 to get dlopen support in asm.js");if(DLFCN.loadedLibNames[filename]){var handle=DLFCN.loadedLibNames[filename];DLFCN.loadedLibs[handle].refcount++;return handle}if(filename==="__self__"){var handle=-1;var lib_module=Module;var cached_functions=SYMBOL_TABLE}else{var target=FS.findObject(filename);if(!target||target.isFolder||target.isDevice){DLFCN.errorMsg="Could not find dynamic lib: "+filename;return 0}else{FS.forceLoadFile(target);var lib_data=FS.readFile(filename,{encoding:"utf8"})}try{var lib_module=eval(lib_data)(DLFCN.functionTable.length,Module)}catch(e){Module.printErr("Error in loading dynamic library: "+e);DLFCN.errorMsg="Could not evaluate dynamic lib: "+filename;return 0}var handle=1;for(var key in DLFCN.loadedLibs){if(DLFCN.loadedLibs.hasOwnProperty(key))handle++}if(flag&256){for(var ident in lib_module){if(lib_module.hasOwnProperty(ident)){Module[ident]=lib_module[ident]}}}var cached_functions={}}DLFCN.loadedLibs[handle]={refcount:1,name:filename,module:lib_module,cached_functions:cached_functions};DLFCN.loadedLibNames[filename]=handle;return handle}function _fsync(fildes){var stream=FS.getStream(fildes);if(stream){return 0}else{___setErrNo(ERRNO_CODES.EBADF);return-1}}function _sbrk(bytes){var self=_sbrk;if(!self.called){DYNAMICTOP=alignMemoryPage(DYNAMICTOP);self.called=true;assert(Runtime.dynamicAlloc);self.alloc=Runtime.dynamicAlloc;Runtime.dynamicAlloc=(function(){abort("cannot dynamically allocate, sbrk now has control")})}var ret=DYNAMICTOP;if(bytes!=0){var success=self.alloc(bytes);if(!success)return-1>>>0}return ret}Module["_memmove"]=_memmove;function _dlerror(){if(DLFCN.errorMsg===null){return 0}else{if(DLFCN.error)_free(DLFCN.error);var msgArr=intArrayFromString(DLFCN.errorMsg);DLFCN.error=allocate(msgArr,"i8",ALLOC_NORMAL);DLFCN.errorMsg=null;return DLFCN.error}}function ___errno_location(){return ___errno_state}var _BItoD=true;Module["_bitshift64Lshr"]=_bitshift64Lshr;Module["_llvm_bswap_i32"]=_llvm_bswap_i32;function _mmap(start,num,prot,flags,fd,offset){var MAP_PRIVATE=2;var ptr;var allocated=false;if(!_mmap.mappings)_mmap.mappings={};if(fd==-1){ptr=_malloc(num);if(!ptr)return-1;_memset(ptr,0,num);allocated=true}else{var info=FS.getStream(fd);if(!info)return-1;try{var res=FS.mmap(info,HEAPU8,start,num,offset,prot,flags);ptr=res.ptr;allocated=res.allocated}catch(e){FS.handleFSError(e);return-1}}_mmap.mappings[ptr]={malloc:ptr,num:num,allocated:allocated};return ptr}function _truncate(path,length){if(typeof path!=="string")path=Pointer_stringify(path);try{FS.truncate(path,length);return 0}catch(e){FS.handleFSError(e);return-1}}function _ftruncate(fildes,length){try{FS.ftruncate(fildes,length);return 0}catch(e){FS.handleFSError(e);return-1}}function _utimes(path,times){var time;if(times){var offset=8+0;time=HEAP32[times+offset>>2]*1e3;offset=8+4;time+=HEAP32[times+offset>>2]/1e3}else{time=Date.now()}path=Pointer_stringify(path);try{FS.utime(path,time,time);return 0}catch(e){FS.handleFSError(e);return-1}}FS.staticInit();__ATINIT__.unshift({func:(function(){if(!Module["noFSInit"]&&!FS.init.initialized)FS.init()})});__ATMAIN__.push({func:(function(){FS.ignorePermissions=false})});__ATEXIT__.push({func:(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;___errno_state=Runtime.staticAlloc(4);HEAP32[___errno_state>>2]=0;__ATINIT__.unshift({func:(function(){TTY.init()})});__ATEXIT__.push({func:(function(){TTY.shutdown()})});if(ENVIRONMENT_IS_NODE){var fs=require("fs");var NODEJS_PATH=require("path");NODEFS.staticInit()}__ATINIT__.push({func:(function(){SOCKFS.root=FS.mount(SOCKFS,{},null)})});Module["requestFullScreen"]=function Module_requestFullScreen(lockPointer,resizeCanvas,vrDevice){Browser.requestFullScreen(lockPointer,resizeCanvas,vrDevice)};Module["requestAnimationFrame"]=function Module_requestAnimationFrame(func){Browser.requestAnimationFrame(func)};Module["setCanvasSize"]=function Module_setCanvasSize(width,height,noUpdates){Browser.setCanvasSize(width,height,noUpdates)};Module["pauseMainLoop"]=function Module_pauseMainLoop(){Browser.mainLoop.pause()};Module["resumeMainLoop"]=function Module_resumeMainLoop(){Browser.mainLoop.resume()};Module["getUserMedia"]=function Module_getUserMedia(){Browser.getUserMedia()};___buildEnvironment(ENV);STACK_BASE=STACKTOP=Runtime.alignMemory(STATICTOP);staticSealed=true;STACK_MAX=STACK_BASE+TOTAL_STACK;DYNAMIC_BASE=DYNAMICTOP=Runtime.alignMemory(STACK_MAX);assert(DYNAMIC_BASE<TOTAL_MEMORY,"TOTAL_MEMORY not big enough for stack");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_DYNAMIC);function nullFunc_iiiiiiii(x){Module["printErr"]("Invalid function pointer called with signature 'iiiiiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_iiii(x){Module["printErr"]("Invalid function pointer called with signature 'iiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_viiiiii(x){Module["printErr"]("Invalid function pointer called with signature 'viiiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_vi(x){Module["printErr"]("Invalid function pointer called with signature 'vi'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_viiiii(x){Module["printErr"]("Invalid function pointer called with signature 'viiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_dii(x){Module["printErr"]("Invalid function pointer called with signature 'dii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_vid(x){Module["printErr"]("Invalid function pointer called with signature 'vid'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_di(x){Module["printErr"]("Invalid function pointer called with signature 'di'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_i(x){Module["printErr"]("Invalid function pointer called with signature 'i'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_iiiiiiiiii(x){Module["printErr"]("Invalid function pointer called with signature 'iiiiiiiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_vii(x){Module["printErr"]("Invalid function pointer called with signature 'vii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_iiiiiii(x){Module["printErr"]("Invalid function pointer called with signature 'iiiiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_ii(x){Module["printErr"]("Invalid function pointer called with signature 'ii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_viii(x){Module["printErr"]("Invalid function pointer called with signature 'viii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_v(x){Module["printErr"]("Invalid function pointer called with signature 'v'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_iiiiiiiii(x){Module["printErr"]("Invalid function pointer called with signature 'iiiiiiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_iiiii(x){Module["printErr"]("Invalid function pointer called with signature 'iiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_viiii(x){Module["printErr"]("Invalid function pointer called with signature 'viiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_iii(x){Module["printErr"]("Invalid function pointer called with signature 'iii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_iiid(x){Module["printErr"]("Invalid function pointer called with signature 'iiid'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function nullFunc_iiiiii(x){Module["printErr"]("Invalid function pointer called with signature 'iiiiii'. Perhaps this is an invalid value (e.g. caused by calling a virtual method on a NULL pointer)? Or calling a function with an incorrect type, which will fail? (it is worth building your source files with -Werror (warnings are errors), as warnings can indicate undefined behavior which can cause this)");Module["printErr"]("Build with ASSERTIONS=2 for more info.");abort(x)}function invoke_iiiiiiii(index,a1,a2,a3,a4,a5,a6,a7){try{return Module["dynCall_iiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["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;asm["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;asm["setThrew"](1,0)}}function invoke_vi(index,a1){try{Module["dynCall_vi"](index,a1)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_viiiii(index,a1,a2,a3,a4,a5){try{Module["dynCall_viiiii"](index,a1,a2,a3,a4,a5)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_dii(index,a1,a2){try{return Module["dynCall_dii"](index,a1,a2)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_vid(index,a1,a2){try{Module["dynCall_vid"](index,a1,a2)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_di(index,a1){try{return Module["dynCall_di"](index,a1)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_i(index){try{return Module["dynCall_i"](index)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_iiiiiiiiii(index,a1,a2,a3,a4,a5,a6,a7,a8,a9){try{return Module["dynCall_iiiiiiiiii"](index,a1,a2,a3,a4,a5,a6,a7,a8,a9)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_vii(index,a1,a2){try{Module["dynCall_vii"](index,a1,a2)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_iiiiiii(index,a1,a2,a3,a4,a5,a6){try{return Module["dynCall_iiiiiii"](index,a1,a2,a3,a4,a5,a6)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_ii(index,a1){try{return Module["dynCall_ii"](index,a1)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_viii(index,a1,a2,a3){try{Module["dynCall_viii"](index,a1,a2,a3)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_v(index){try{Module["dynCall_v"](index)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["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;asm["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;asm["setThrew"](1,0)}}function invoke_viiii(index,a1,a2,a3,a4){try{Module["dynCall_viiii"](index,a1,a2,a3,a4)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_iii(index,a1,a2){try{return Module["dynCall_iii"](index,a1,a2)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_iiid(index,a1,a2,a3){try{return Module["dynCall_iiid"](index,a1,a2,a3)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["setThrew"](1,0)}}function invoke_iiiiii(index,a1,a2,a3,a4,a5){try{return Module["dynCall_iiiiii"](index,a1,a2,a3,a4,a5)}catch(e){if(typeof e!=="number"&&e!=="longjmp")throw e;asm["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,"nullFunc_iiiiiiii":nullFunc_iiiiiiii,"nullFunc_iiii":nullFunc_iiii,"nullFunc_viiiiii":nullFunc_viiiiii,"nullFunc_vi":nullFunc_vi,"nullFunc_viiiii":nullFunc_viiiii,"nullFunc_dii":nullFunc_dii,"nullFunc_vid":nullFunc_vid,"nullFunc_di":nullFunc_di,"nullFunc_i":nullFunc_i,"nullFunc_iiiiiiiiii":nullFunc_iiiiiiiiii,"nullFunc_vii":nullFunc_vii,"nullFunc_iiiiiii":nullFunc_iiiiiii,"nullFunc_ii":nullFunc_ii,"nullFunc_viii":nullFunc_viii,"nullFunc_v":nullFunc_v,"nullFunc_iiiiiiiii":nullFunc_iiiiiiiii,"nullFunc_iiiii":nullFunc_iiiii,"nullFunc_viiii":nullFunc_viiii,"nullFunc_iii":nullFunc_iii,"nullFunc_iiid":nullFunc_iiid,"nullFunc_iiiiii":nullFunc_iiiiii,"invoke_iiiiiiii":invoke_iiiiiiii,"invoke_iiii":invoke_iiii,"invoke_viiiiii":invoke_viiiiii,"invoke_vi":invoke_vi,"invoke_viiiii":invoke_viiiii,"invoke_dii":invoke_dii,"invoke_vid":invoke_vid,"invoke_di":invoke_di,"invoke_i":invoke_i,"invoke_iiiiiiiiii":invoke_iiiiiiiiii,"invoke_vii":invoke_vii,"invoke_iiiiiii":invoke_iiiiiii,"invoke_ii":invoke_ii,"invoke_viii":invoke_viii,"invoke_v":invoke_v,"invoke_iiiiiiiii":invoke_iiiiiiiii,"invoke_iiiii":invoke_iiiii,"invoke_viiii":invoke_viiii,"invoke_iii":invoke_iii,"invoke_iiid":invoke_iiid,"invoke_iiiiii":invoke_iiiiii,"_dlerror":_dlerror,"_utimes":_utimes,"_getuid":_getuid,"_send":_send,"_dlsym":_dlsym,"_mknod":_mknod,"_chown":_chown,"_lseek":_lseek,"_emscripten_set_main_loop_timing":_emscripten_set_main_loop_timing,"_access":_access,"_fstat":_fstat,"_chmod":_chmod,"_rmdir":_rmdir,"___assert_fail":___assert_fail,"_usleep":_usleep,"___buildEnvironment":___buildEnvironment,"_fflush":_fflush,"_pwrite":_pwrite,"_strerror_r":_strerror_r,"_localtime_r":_localtime_r,"_tzset":_tzset,"_open":_open,"_getpid":_getpid,"_sbrk":_sbrk,"_fcntl":_fcntl,"_emscripten_memcpy_big":_emscripten_memcpy_big,"_unlink":_unlink,"_sysconf":_sysconf,"_fchmod":_fchmod,"___setErrNo":___setErrNo,"_ftruncate":_ftruncate,"_mkdir":_mkdir,"_pread":_pread,"_mkport":_mkport,"_dlopen":_dlopen,"_dlclose":_dlclose,"_write":_write,"_fsync":_fsync,"___errno_location":___errno_location,"_stat":_stat,"_recv":_recv,"_geteuid":_geteuid,"_getenv":_getenv,"_sleep":_sleep,"_emscripten_set_main_loop":_emscripten_set_main_loop,"_abort":_abort,"_time":_time,"_fchown":_fchown,"_strerror":_strerror,"_gettimeofday":_gettimeofday,"_munmap":_munmap,"_mmap":_mmap,"_localtime":_localtime,"_getcwd":_getcwd,"_close":_close,"_read":_read,"_truncate":_truncate,"STACKTOP":STACKTOP,"STACK_MAX":STACK_MAX,"tempDoublePtr":tempDoublePtr,"ABORT":ABORT,"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.STACKTOP|0;var j=env.STACK_MAX|0;var k=env.tempDoublePtr|0;var l=env.ABORT|0;var m=env.cttz_i8|0;const n=16777215;const o=16777214;const p=16777212;const q=16777208;var r=0;var s=0;var t=0;var u=0;var v=global.NaN,w=global.Infinity;var x=0,y=0,z=0,A=0,B=0.0,C=0,D=0,E=0,F=0.0;var G=0;var H=0;var I=0;var J=0;var K=0;var L=0;var M=0;var N=0;var O=0;var P=0;var Q=global.Math.floor;var R=global.Math.abs;var S=global.Math.sqrt;var T=global.Math.pow;var U=global.Math.cos;var V=global.Math.sin;var W=global.Math.tan;var X=global.Math.acos;var Y=global.Math.asin;var Z=global.Math.atan;var _=global.Math.atan2;var $=global.Math.exp;var aa=global.Math.log;var ba=global.Math.ceil;var ca=global.Math.imul;var da=global.Math.min;var ea=global.Math.clz32;var fa=env.abort;var ga=env.assert;var ha=env.nullFunc_iiiiiiii;var ia=env.nullFunc_iiii;var ja=env.nullFunc_viiiiii;var ka=env.nullFunc_vi;var la=env.nullFunc_viiiii;var ma=env.nullFunc_dii;var na=env.nullFunc_vid;var oa=env.nullFunc_di;var pa=env.nullFunc_i;var qa=env.nullFunc_iiiiiiiiii;var ra=env.nullFunc_vii;var sa=env.nullFunc_iiiiiii;var ta=env.nullFunc_ii;var ua=env.nullFunc_viii;var va=env.nullFunc_v;var wa=env.nullFunc_iiiiiiiii;var xa=env.nullFunc_iiiii;var ya=env.nullFunc_viiii;var za=env.nullFunc_iii;var Aa=env.nullFunc_iiid;var Ba=env.nullFunc_iiiiii;var Ca=env.invoke_iiiiiiii;var Da=env.invoke_iiii;var Ea=env.invoke_viiiiii;var Fa=env.invoke_vi;var Ga=env.invoke_viiiii;var Ha=env.invoke_dii;var Ia=env.invoke_vid;var Ja=env.invoke_di;var Ka=env.invoke_i;var La=env.invoke_iiiiiiiiii;var Ma=env.invoke_vii;var Na=env.invoke_iiiiiii;var Oa=env.invoke_ii;var Pa=env.invoke_viii;var Qa=env.invoke_v;var Ra=env.invoke_iiiiiiiii;var Sa=env.invoke_iiiii;var Ta=env.invoke_viiii;var Ua=env.invoke_iii;var Va=env.invoke_iiid;var Wa=env.invoke_iiiiii;var Xa=env._dlerror;var Ya=env._utimes;var Za=env._getuid;var _a=env._send;var $a=env._dlsym;var ab=env._mknod;var bb=env._chown;var cb=env._lseek;var db=env._emscripten_set_main_loop_timing;var eb=env._access;var fb=env._fstat;var gb=env._chmod;var hb=env._rmdir;var ib=env.___assert_fail;var jb=env._usleep;var kb=env.___buildEnvironment;var lb=env._fflush;var mb=env._pwrite;var nb=env._strerror_r;var ob=env._localtime_r;var pb=env._tzset;var qb=env._open;var rb=env._getpid;var sb=env._sbrk;var tb=env._fcntl;var ub=env._emscripten_memcpy_big;var vb=env._unlink;var wb=env._sysconf;var xb=env._fchmod;var yb=env.___setErrNo;var zb=env._ftruncate;var Ab=env._mkdir;var Bb=env._pread;var Cb=env._mkport;var Db=env._dlopen;var Eb=env._dlclose;var Fb=env._write;var Gb=env._fsync;var Hb=env.___errno_location;var Ib=env._stat;var Jb=env._recv;var Kb=env._geteuid;var Lb=env._getenv;var Mb=env._sleep;var Nb=env._emscripten_set_main_loop;var Ob=env._abort;var Pb=env._time;var Qb=env._fchown;var Rb=env._strerror;var Sb=env._gettimeofday;var Tb=env._munmap;var Ub=env._mmap;var Vb=env._localtime;var Wb=env._getcwd;var Xb=env._close;var Yb=env._read;var Zb=env._truncate;var _b=0.0;function _declare_heap_length(){return a[33554431]|0}
|
|
// EMSCRIPTEN_START_FUNCS
|
|
function hh(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;k=c[(d&p)>>2]|0;l=c[(d&p)+80>>2]|0;h=d+44|0;do if(!(c[(h&p)>>2]|0)){c[(k&p)+52>>2]=l;e=c[(k&p)+236>>2]|0;if(e){d=e+8|0;if(!(b[(d&o)>>1]&9312)){b[(d&o)>>1]=1;break}else{vg(e);break}}}else{i=k+65|0;j=a[(i&n)>>0]|0;d=c[3164]|0;if(d)nc[d&3]();g=k+236|0;d=c[(g&p)>>2]|0;do if(!d){d=mh(k,40,0)|0;if(!d){c[(g&p)>>2]=d;break}else{e=d+0|0;f=e+40|0;do{a[(e&n)>>0]=0;e=e+1|0}while((e|0)<(f|0));b[(d&o)+8>>1]=1;c[(d&p)+32>>2]=k;c[(g&p)>>2]=d;f=8;break}}else f=8;while(0);if((f|0)==8)Xg(d,c[(h&p)>>2]|0,-1,1,-1)|0;d=c[3166]|0;if(d)nc[d&3]();a[(i&n)>>0]=j;c[(k&p)+52>>2]=l}while(0);return l|0}function ih(a,b,d,e,f,g,h){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;c[(g&p)>>2]=0;if(!((Hh(a)|0)==0|(b|0)==0)){k=c[(a&p)+20>>2]|0;if((k|0)>0){l=c[(a&p)+16>>2]|0;n=0;do{m=c[(l+(n<<4)&p)+4>>2]|0;if(m)c[((c[(m&p)+4>>2]|0)&p)+4>>2]=c[(m&p)>>2];n=n+1|0}while((n|0)!=(k|0))}k=Fn(a,b,d,e,f,g,h)|0;if((k|0)==17){md(c[(g&p)>>2]|0)|0;k=Fn(a,b,d,e,f,g,h)|0}}else{c[(k&p)>>2]=105892;c[(k&p)+4>>2]=10788;bd(21,13648,k);k=21}i=o;return k|0}function jh(a,d){a=a|0;d=d|0;var e=0,f=0;f=a+68|0;if((b[(f&o)>>1]|0)>0){e=d+60|0;d=a+60|0;a=0;do{_l((c[(e&p)>>2]|0)+(a*40|0)|0,(c[(d&p)>>2]|0)+(a*40|0)|0);a=a+1|0}while((a|0)<(b[(f&o)>>1]|0))}return}function kh(b,c){b=b|0;c=c|0;var d=0,e=0;if(c){d=c;while(1)if(!(a[(d&n)>>0]|0))break;else d=d+1|0;e=(d-c&1073741823)+1|0;d=mh(b,e,0)|0;if(d)kw(d|0,c|0,e|0)|0;else d=0}else d=0;return d|0}function lh(a,d){a=a|0;d=d|0;var e=0,f=0;f=c[(a&p)+8>>2]|0;if((d|0)>=1){fh(f,d)|0;b[(f&o)+8>>1]=8192;c[(f&p)>>2]=c[(a&p)+4>>2];e=f+16|0;a=c[(e&p)>>2]|0;if(!a)e=0;else{fw(a|0,0,d|0)|0;e=c[(e&p)>>2]|0}}else{e=f+8|0;if(!(b[(e&o)>>1]&9312))b[(e&o)>>1]=1;else vg(f);c[(f&p)+16>>2]=0;e=0}return e|0}function mh(b,d,f){b=b|0;d=d|0;f=f|0;var g=0,h=0,i=0;a:do if(b){i=b+65|0;if(!(a[(i&n)>>0]|0)){do if(a[(b&n)+250>>0]|0){if(0<f>>>0|(0==(f|0)?(e[(b&o)+248>>1]|0)>>>0<d>>>0:0)){g=b+264|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;break}h=b+272|0;g=c[(h&p)>>2]|0;if(!g){g=b+268|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;break}c[(h&p)>>2]=c[(g&p)>>2];f=b+252|0;h=c[(f&p)>>2]|0;d=h+1|0;c[(f&p)>>2]=d;f=b+260|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=b+256|0;if((h|0)>=(c[(f&p)>>2]|0))c[(f&p)>>2]=d;break a}while(0);g=qg(d,f)|0;if(!g){a[(i&n)>>0]=1;g=0}}else g=0}else g=qg(d,f)|0;while(0);return g|0}function nh(a,d){a=a|0;d=d|0;var f=0,g=0;do if(a){f=c[(a&p)+20>>2]|0;if((f|0)!=0?((d|0)>-1?(e[(a&o)+84>>1]|0|0)>(d|0):0):0){f=f+(d*40|0)|0;break}f=c[(a&p)>>2]|0;if((f|0)!=0?(c[(f&p)+52>>2]=25,g=c[(f&p)+236>>2]|0,(g|0)!=0):0){f=g+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;f=41496;break}else{vg(g);f=41496;break}}else f=41496}else f=41496;while(0);return f|0}function oh(a,e,f,g,h,i){a=a|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0;j=ph(a,e)|0;if(!j)if(!f)j=0;else{e=(c[(a&p)+60>>2]|0)+((e+-1|0)*40|0)|0;j=Xg(e,f,g,i,h)|0;if((j|0)!=0|i<<24>>24==0)e=j;else e=Yl(e,d[((c[(a&p)>>2]|0)&n)+62>>0]|0)|0;j=c[(a&p)>>2]|0;c[(j&p)+52>>2]=e;h=c[(j&p)+236>>2]|0;do if(h){g=h+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;break}else{vg(h);j=c[(a&p)>>2]|0;break}}while(0);j=Og(j,e)|0}else{g=h;if(!((g|0)==0|(g|0)==-1))cc[h&31](f)}return j|0}function ph(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;do if(!(ah(a)|0)){if((c[(a&p)+40>>2]|0)==-1108210269?(c[(a&p)+76>>2]|0)<=-1:0){if((d|0)>=1?(b[(a&o)+68>>1]|0)>=(d|0):0){h=d+-1|0;g=c[(a&p)+60>>2]|0;f=g+(h*40|0)|0;e=g+(h*40|0)+8|0;if(!((b[(e&o)>>1]&9312)==0?(c[(g+(h*40|0)&p)+24>>2]|0)==0:0))Qg(f);b[(e&o)>>1]=1;f=c[(a&p)>>2]|0;c[(f&p)+52>>2]=0;f=c[(f&p)+236>>2]|0;do if(f){e=f+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;break}else{vg(f);break}}while(0);g=a+88|0;e=b[(g&o)>>1]|0;if(!(e&256)){e=0;break}f=c[(a&p)+188>>2]|0;if((d|0)<33){if(!((f&1<<h|0)!=0|(f|0)==-1)){e=0;break}}else if((f|0)!=-1){e=0;break}b[(g&o)>>1]=e|8;e=0;break}e=c[(a&p)>>2]|0;c[(e&p)+52>>2]=25;e=c[(e&p)+236>>2]|0;if(!e){e=25;break}f=e+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;e=25;break}else{vg(e);e=25;break}}f=c[(a&p)>>2]|0;c[(f&p)+52>>2]=21;f=c[(f&p)+236>>2]|0;do if(f){e=f+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;break}else{vg(f);break}}while(0);c[(g&p)>>2]=c[(a&p)+168>>2];bd(21,41456,g);c[(g&p)>>2]=69987;c[(g&p)+4>>2]=10788;bd(21,13648,g);e=21}else{c[(g&p)>>2]=69979;c[(g&p)+4>>2]=10788;bd(21,13648,g);e=21}while(0);i=k;return e|0}function qh(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;a:do if(!((d|0)==0|(e|0)==0)?(i=b[(d&o)+70>>1]|0,i<<16>>16>0):0){g=c[(d&p)+64>>2]|0;d=0;while(1){h=c[(g+(d<<2)&p)>>2]|0;if(((h|0)!=0?($v(h,e,f)|0)==0:0)?(a[(h+f&n)>>0]|0)==0:0)break;d=d+1|0;if((d|0)>=(i<<16>>16|0)){d=0;break a}}d=d+1|0}else d=0;while(0);return d|0}function rh(d,f){d=d|0;f=f|0;var g=0,k=0,l=0,m=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();r=s+8|0;m=s;g=a[(d&n)+10>>0]|0;k=d+16|0;l=d+12|0;do if(Tl(c[(k&p)>>2]|0,r,c[(l&p)>>2]|0,g)|0){if(!(Ul(c[(k&p)>>2]|0,m,c[(l&p)>>2]|0,g)|0)){l=m;k=c[(l&p)+4>>2]|0;g=d;c[(g&p)>>2]=c[(l&p)>>2];c[(g&p)+4>>2]=k;g=d+8|0;b[(g&o)>>1]=e[(g&o)>>1]|0|4;break}h[(d&q)>>3]=+h[(r&q)>>3];g=d+8|0;b[(g&o)>>1]=e[(g&o)>>1]|0|8;if(f)dm(d)}while(0);i=s;return}function sh(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if(!(Gn(b)|0)){g=_h(c[(b&p)>>2]|0,e,f)|0;if(!g){g=(d|0)!=0?41368:41384;if(!f){c[(h&p)>>2]=g;c[(h&p)+4>>2]=e;th(b,27680,h)}else{c[(h&p)>>2]=g;c[(h&p)+4>>2]=f;c[(h&p)+8>>2]=e;th(b,27664,h)}a[(b&n)+17>>0]=1;g=0}}else g=0;i=k;return g|0}function th(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();h=g;f=c[(b&p)>>2]|0;c[(h&p)>>2]=e;e=Wk(f,d,h)|0;if(!(a[(f&n)+68>>0]|0)){d=b+64|0;c[(d&p)>>2]=(c[(d&p)>>2]|0)+1;d=b+4|0;mg(f,c[(d&p)>>2]|0);c[(d&p)>>2]=e;c[(b&p)+12>>2]=1}else mg(f,e);i=g;return}function uh(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();f=e;c[(f&p)>>2]=d;a=Wk(a,b,f)|0;i=e;return a|0}function vh(a){a=a|0;var b=0,d=0,e=0;d=c[(a&p)>>2]|0;b=mh(d,208,0)|0;if(!b)b=0;else{fw(b|0,0,208)|0;c[(b&p)>>2]=d;d=d+4|0;e=c[(d&p)>>2]|0;if(e)c[(e&p)+48>>2]=b;c[(b&p)+52>>2]=e;c[(b&p)+48>>2]=0;c[(d&p)>>2]=b;c[(b&p)+40>>2]=649915045;c[(b&p)+24>>2]=a}return b|0}function wh(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;i=b+32|0;h=c[(i&p)>>2]|0;if((c[((c[(b&p)+24>>2]|0)&p)+84>>2]|0)<=(h|0))if(!(Hn(b)|0)){j=c[(i&p)>>2]|0;k=4}else h=1;else{j=h;k=4}if((k|0)==4){c[(i&p)>>2]=j+1;i=c[(b&p)+4>>2]|0;a[(i+(h*20|0)&n)>>0]=d;a[(i+(h*20|0)&n)+3>>0]=0;c[(i+(h*20|0)&p)+4>>2]=e;c[(i+(h*20|0)&p)+8>>2]=f;c[(i+(h*20|0)&p)+12>>2]=g;c[(i+(h*20|0)&p)+16>>2]=0;a[(i+(h*20|0)&n)+1>>0]=0}return h|0}function xh(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;j=c[(b&p)>>2]|0;g=c[(b&p)+4>>2]|0;do if((g|0)!=0?(a[(j&n)+65>>0]|0)==0:0){if((d|0)<0)d=(c[(b&p)+32>>2]|0)+-1|0;i=g+(d*20|0)+1|0;h=g+(d*20|0)+16|0;In(j,a[(i&n)>>0]|0,c[(h&p)>>2]|0);c[(h&p)>>2]=0;if((f|0)==-14){c[(h&p)>>2]=e;a[(i&n)>>0]=-14;break}if(!e){c[(h&p)>>2]=0;a[(i&n)>>0]=0;break}if((f|0)==-6){c[(h&p)>>2]=e;a[(i&n)>>0]=-6;break}else if((f|0)==-10){c[(h&p)>>2]=e;a[(i&n)>>0]=-10;d=e+12|0;c[(d&p)>>2]=(c[(d&p)>>2]|0)+1;break}else{if((f|0)<0){c[(h&p)>>2]=e;a[(i&n)>>0]=f;break}if(!f){d=e;while(1)if(!(a[(d&n)>>0]|0))break;else d=d+1|0;g=d-e&1073741823}else g=f;b=c[(b&p)>>2]|0;d=jw(g|0,((g|0)<0)<<31>>31|0,1,0)|0;d=mh(b,d,G)|0;if(!d)d=0;else{kw(d|0,e|0,g|0)|0;a[(d+g&n)>>0]=0}c[(h&p)>>2]=d;a[(i&n)>>0]=-1;break}}else k=3;while(0);if((k|0)==3?(f|0)!=-10:0)In(j,f,e);return}function yh(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;k=b+32|0;f=c[(k&p)>>2]|0;if((f+d|0)>(c[((c[(b&p)+24>>2]|0)&p)+84>>2]|0))if(!(Hn(b)|0)){f=c[(k&p)>>2]|0;g=4}else f=0;else g=4;if((g|0)==4)if((d|0)>0){i=b+4|0;j=0;while(1){l=a[(e&n)+2>>0]|0;g=l<<24>>24;b=j+f|0;h=c[(i&p)>>2]|0;a[(h+(b*20|0)&n)>>0]=a[(e&n)>>0]|0;c[(h+(b*20|0)&p)+4>>2]=a[(e&n)+1>>0];if(l<<24>>24<0)g=f+~g|0;c[(h+(b*20|0)&p)+8>>2]=g;c[(h+(b*20|0)&p)+12>>2]=a[(e&n)+3>>0];a[(h+(b*20|0)&n)+1>>0]=0;c[(h+(b*20|0)&p)+16>>2]=0;a[(h+(b*20|0)&n)+3>>0]=0;j=j+1|0;if((j|0)==(d|0))break;else e=e+4|0}c[(k&p)>>2]=(c[(k&p)>>2]|0)+d}return f|0}function zh(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+32|0;if((c[(e&p)>>2]|0)>(d|0)?(f=c[(b&p)+4>>2]|0,In(c[(b&p)>>2]|0,a[(f+(d*20|0)&n)+1>>0]|0,c[(f+(d*20|0)&p)+16>>2]|0),b=f+(d*20|0)|0,c[(b&p)>>2]=0,c[(b&p)+4>>2]=0,c[(b&p)+8>>2]=0,c[(b&p)+12>>2]=0,c[(b&p)+16>>2]=0,a[(b&n)>>0]=-100,((c[(e&p)>>2]|0)+-1|0)==(d|0)):0)c[(e&p)>>2]=d;return}function Ah(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=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;N=i;i=i+16|0;if((i|0)>=(j|0))fa();k=N;L=c[(e&p)>>2]|0;F=c[(f&p)+440>>2]|0;g=c[(f&p)+72>>2]|0;E=c[(f&p)+68>>2]|0;c[(k&p)>>2]=c[(f&p)+392>>2];D=c[(f&p)+80>>2]|0;D=(D|0)==0?1:D;g=E+g|0;m=c[(e&p)+4>>2]|0;l=m+((c[(e&p)+32>>2]|0)*20|0)|0;m=m+((c[(f&p)+84>>2]|0)*20|0)|0;Jn(e,k);if(!(a[(f&n)+20>>0]|0))h=0;else h=((a[(f&n)+21>>0]|0)!=0&1)<<5&65535;M=e+88|0;b[(M&o)>>1]=b[(M&o)>>1]&-33|h;K=f+450|0;H=(a[(K&n)>>0]|0)!=0&(g|0)<10?10:g;g=l;fw(l|0,0,m-g|0)|0;b[(M&o)>>1]=b[(M&o)>>1]&-9;G=e+8|0;y=H*40|0;z=e+60|0;A=F*40|0;B=e+12|0;q=(c[(k&p)>>2]<<2)+7&-8;C=e+64|0;r=(F<<2)+7&-8;s=e+56|0;t=(E<<2)+7&-8;u=e+200|0;v=D+7&-8;w=e+172|0;x=L+65|0;l=l+(g&7)|0;while(1){k=c[(G&p)>>2]|0;if(!k){h=l+y|0;g=h>>>0>m>>>0;k=g?0:l;l=g?l:h;g=g?y:0}else g=0;c[(G&p)>>2]=k;k=c[(z&p)>>2]|0;if(!k){O=l+A|0;h=O>>>0>m>>>0;k=h?0:l;l=h?l:O;g=(h?A:0)+g|0}c[(z&p)>>2]=k;k=c[(B&p)>>2]|0;if(!k){O=l+q|0;h=O>>>0>m>>>0;k=h?0:l;l=h?l:O;g=(h?q:0)+g|0}c[(B&p)>>2]=k;k=c[(C&p)>>2]|0;if(!k){O=l+r|0;h=O>>>0>m>>>0;k=h?0:l;l=h?l:O;g=(h?r:0)+g|0}c[(C&p)>>2]=k;k=c[(s&p)>>2]|0;if(!k){O=l+t|0;h=O>>>0>m>>>0;k=h?0:l;l=h?l:O;g=(h?t:0)+g|0}c[(s&p)>>2]=k;k=c[(u&p)>>2]|0;if(!k){h=(l+v|0)>>>0>m>>>0;k=h?0:l;g=(h?v:0)+g|0}c[(u&p)>>2]=k;if(!g)break;h=mh(L,g,((g|0)<0)<<31>>31)|0;if(!h)k=0;else{fw(h|0,0,g|0)|0;k=h}c[(w&p)>>2]=k;if(!(a[(x&n)>>0]|0)){l=h;m=h+g|0}else break}c[(e&p)+36>>2]=E;c[(e&p)+196>>2]=D;h=c[(z&p)>>2]|0;if((h|0)!=0?(b[(e&o)+68>>1]=F,(F|0)>0):0){g=0;do{b[(h+(g*40|0)&o)+8>>1]=1;c[(h+(g*40|0)&p)+32>>2]=L;g=g+1|0}while((g|0)!=(F|0))}h=c[(C&p)>>2]|0;if((h|0)!=0?(I=f+444|0,J=c[(I&p)>>2]|0,(J|0)>0):0){b[(e&o)+70>>1]=J;F=f+472|0;kw(h|0,c[(F&p)>>2]|0,J<<16>>14|0)|0;fw(c[(F&p)>>2]|0,0,c[(I&p)>>2]<<2|0)|0}h=c[(G&p)>>2]|0;if((h|0)!=0?(c[(G&p)>>2]=h+-40,c[(e&p)+28>>2]=H,(H|0)>=1):0){g=1;while(1){b[(h+((g+-1|0)*40|0)&o)+8>>1]=128;c[(h+((g+-1|0)*40|0)&p)+32>>2]=L;if((g|0)==(H|0))break;else g=g+1|0}}b[(M&o)>>1]=b[(M&o)>>1]&-4|d[(K&n)>>0]&3;c[(e&p)+76>>2]=-1;c[(e&p)+80>>2]=0;a[(e&n)+86>>0]=2;c[(e&p)+40>>2]=-1108210269;c[(e&p)+92>>2]=0;c[(e&p)+72>>2]=1;a[(e&n)+87>>0]=-1;c[(e&p)+104>>2]=0;G=e+144|0;c[(G&p)>>2]=0;c[(G&p)+4>>2]=0;i=N;return}function Bh(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();r=s;q=e+20|0;m=c[(q&p)>>2]|0;l=c[(m&p)+60>>2]|0;c[(l&p)>>2]=f;c[(l&p)+4>>2]=g;l=Sd(m)|0;do if((l|0)!=100){k=c[(q&p)>>2]|0;if(k){l=md(k)|0;c[(q&p)>>2]=0;k=c[(e&p)+24>>2]|0;if(!l){l=r;c[(l&p)>>2]=f;c[(l&p)+4>>2]=g;l=1;k=uh(k,41432,r)|0;break}else{c[(r&p)>>2]=Se(k)|0;k=uh(k,10344,r)|0;break}}else k=0}else{l=c[(c[(m&p)+56>>2]&p)>>2]|0;k=c[(e&p)+12>>2]|0;m=c[(l+(k<<2)&p)+84>>2]|0;if(m>>>0>=12){c[(e&p)+8>>2]=c[(l+((b[(l&o)+20>>1]|0)+k<<2)&p)+84>>2];c[(e&p)+4>>2]=(m+-12|0)>>>1;l=c[(l&p)>>2]|0;c[(e&p)+16>>2]=l;l=l+72|0;a[(l&n)>>0]=d[(l&n)>>0]|16;l=0;k=0;break}l=c[(e&p)+24>>2]|0;if(!m)k=20352;else k=(m|0)==7?20336:20320;c[(r&p)>>2]=k;k=uh(l,41400,r)|0;md(c[(q&p)>>2]|0)|0;c[(q&p)>>2]=0;l=1}while(0);c[(h&p)>>2]=k;i=s;return l|0}function Ch(a){a=a|0;var b=0;if(a){b=c[(a&p)>>2]|0;mg(b,c[(a&p)+112>>2]|0);Nk(b,c[(a&p)+316>>2]|0)}return}function Dh(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0;g=a[(b&n)+73>>0]|0;do if(!(g<<24>>24))f=4;else{if((g&255)>2?(f=Kn(b)|0,(f|0)!=0):0)break;f=Lm(b,c,d,e,0)|0}while(0);return f|0}function Eh(a,d,e,f,g){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;if(!a){c[(k&p)>>2]=77646;c[(k&p)+4>>2]=10788;bd(21,13648,k);f=21}else{l=c[(a&p)+24>>2]|0;k=a+20|0;h=c[(k&p)>>2]|0;do if((f|e|0)>=0?(q=jw(f|0,((f|0)<0)<<31>>31|0,e|0,((e|0)<0)<<31>>31|0)|0,s=G,n=c[(a&p)+4>>2]|0,r=((n|0)<0)<<31>>31,!((s|0)>(r|0)|(s|0)==(r|0)&q>>>0>n>>>0)):0)if(h){f=pc[g&31](c[(a&p)+16>>2]|0,(c[(a&p)+8>>2]|0)+f|0,e,d)|0;if((f|0)==4){Ng(h)|0;c[(k&p)>>2]=0;f=4;break}else{c[(h&p)+80>>2]=f;break}}else f=4;else f=1;while(0);c[(l&p)+52>>2]=f;h=c[(l&p)+236>>2]|0;do if(h){k=h+8|0;if(!(b[(k&o)>>1]&9312)){b[(k&o)>>1]=1;break}else{vg(h);break}}while(0);f=Og(l,f)|0}i=m;return f|0}function Fh(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;h=b+73|0;g=a[(h&n)>>0]|0;if((g&255)>2){g=Kn(b)|0;if(!g){g=a[(h&n)>>0]|0;i=4}}else i=4;if((i|0)==4)if(g<<24>>24==1){Ln(c[(b&p)+4>>2]|0,c[(b&p)+60>>2]|0,b)|0;if(!(a[(b&n)+72>>0]&1))g=8;else g=Lm(b,d,e,f,1)|0}else g=4;return g|0}function Gh(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+16|0;if((i|0)>=(j|0))fa();y=A+4|0;z=A;c[(y&p)>>2]=b;c[(z&p)>>2]=e;t=d[(f&n)+1>>0]|0;u=d[(f&n)>>0]|0;x=a[(f&n)+3>>0]|0;w=(g|0)!=0;if(w)v=g;else v=d[(f&n)+2>>0]|0;q=x<<24>>24!=0;m=0;a:while(1){while(1){k=Mn(y)|0;if(!k){s=60;break a}if((k|0)==(u|0)){s=7;break a}if((k|0)!=(v|0))break;if(w){s=40;break}e=Mn(z)|0;if(!e){h=0;break a}l=Mn(y)|0;if((l|0)==94){l=Mn(y)|0;h=1}else h=0;if((l|0)==93){l=Mn(y)|0;o=(e|0)==93&1}else o=0;k=(l|0)==0;if((l|0)!=93&(k^1)){k=0;while(1){if(((l|0)==45?(r=a[(c[(y&p)>>2]&n)>>0]|0,r<<24>>24!=93):0)?r<<24>>24!=0&(k|0)!=0:0){l=e>>>0<k>>>0|e>>>0>(Mn(y)|0)>>>0;b=0;o=l?o:1}else{b=l;o=(e|0)==(l|0)?1:o}l=Mn(y)|0;k=(l|0)==0;if(!((l|0)!=93&(k^1))){l=k;break}else k=b}}else l=k;if(l|(o|0)==(h|0)){h=0;break a}}if((s|0)==40){s=0;k=Mn(y)|0;if(!k){h=0;break}m=c[(y&p)>>2]|0}l=Mn(z)|0;if((k|0)==(l|0))continue;if(q&k>>>0<128&l>>>0<128?(a[(k&255&n)+9328>>0]|0)==(a[(l&255&n)+9328>>0]|0):0)continue;if((k|0)!=(t|0)){h=0;break}if(!((l|0)!=0?(c[(y&p)>>2]|0)!=(m|0):0)){h=0;break}}b:do if((s|0)==7){e=Mn(y)|0;b=(e|0)==(t|0);if((e|0)==(u|0)|b)do{if(b?(Mn(z)|0)==0:0){h=0;break b}e=Mn(y)|0;b=(e|0)==(t|0)}while((e|0)==(u|0)|b);if(e){do if((e|0)==(v|0)){if(w){e=Mn(y)|0;if(!e){h=0;break b}else break}h=c[(z&p)>>2]|0;c:do if(!(a[(h&n)>>0]|0))h=0;else{b=c[(y&p)>>2]|0;while(1){if(Gh(b+-1|0,h,f,0)|0)break;e=h+1|0;c[(z&p)>>2]=e;if((d[(h&n)>>0]|0)>191?(a[(e&n)>>0]&-64)<<24>>24==-128:0){while(1){h=h+2|0;if((a[(h&n)>>0]&-64)<<24>>24==-128){s=e;e=h;h=s}else break}c[(z&p)>>2]=h}else h=e;if(!(a[(h&n)>>0]|0)){h=0;break c}}h=(a[(h&n)>>0]|0)!=0}while(0);h=h&1;break b}while(0);if(e>>>0>=129){h=Mn(z)|0;if(!h){h=0;break}b=c[(y&p)>>2]|0;while(1){if((h|0)==(e|0)?(Gh(b,c[(z&p)>>2]|0,f,g)|0)!=0:0){h=1;break b}h=Mn(z)|0;if(!h){h=0;break b}}}if(!(x<<24>>24)){o=e;m=e}else{m=e&255;o=d[(m&n)+9328>>0]|0;m=((d[(m&n)+10368>>0]|-33)^32)&e}b=c[(z&p)>>2]|0;h=b+1|0;c[(z&p)>>2]=h;e=a[(b&n)>>0]|0;if(!(e<<24>>24))h=0;else{l=c[(y&p)>>2]|0;k=e&255;while(1){if((k|0)==(o|0)|(k|0)==(m|0)?(Gh(l,h,f,g)|0)!=0:0){h=1;break b}e=b+2|0;c[(z&p)>>2]=e;b=a[(h&n)>>0]|0;if(!(b<<24>>24)){h=0;break}else{s=h;k=b&255;h=e;b=s}}}}else h=1}else if((s|0)==60)h=(a[(c[(z&p)>>2]&n)>>0]|0)==0&1;while(0);i=A;return h|0}function Hh(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();b=d;do if(a){a=c[(a&p)+76>>2]|0;if((a|0)==1266094736|(a|0)==-264537850){c[(b&p)>>2]=41352;bd(21,15256,b);a=0;break}else if((a|0)==-1607883113){a=1;break}else{c[(b&p)>>2]=15248;bd(21,15256,b);a=0;break}}else{c[(b&p)>>2]=20304;bd(21,15256,b);a=0}while(0);i=d;return a|0}function Ih(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 k=0,l=0,m=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;l=o+8|0;c[(l&p)>>2]=0;c[(g&p)>>2]=0;if((Hh(b)|0)==0|(d|0)==0){c[(k&p)>>2]=106003;c[(k&p)+4>>2]=10788;bd(21,13648,k);f=21}else{a:do if((e|0)>-1)if((e|0)>0){k=0;do{if((a[(d+k&n)>>0]|0)==0?(a[(d+(k|1)&n)>>0]|0)==0:0)break a;k=k+2|0}while((k|0)<(e|0))}else k=0;else k=e;while(0);m=Rh(b,d,k)|0;if(m){f=ih(b,m,-1,f,0,g,l)|0;k=c[(l&p)>>2]|0;if((k|0)!=0&(h|0)!=0){g=Nn(m,k-m|0)|0;if((g|0)>0){e=0;k=d;do{k=(a[(k&n)+1>>0]&-8)<<24>>24==-40?k+4|0:k+2|0;e=e+1|0}while((e|0)!=(g|0))}else k=d;c[(h&p)>>2]=d+(k-d)}}else f=0;mg(b,m);f=Og(b,f)|0}i=o;return f|0}function Jh(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();q=t;r=b+12|0;h=c[(r&p)>>2]|0;o=(e|0)!=0;g=d<<((h|0)==0&o&1);s=b+20|0;l=b+8|0;k=c[(l&p)>>2]|0;if((g+(c[(s&p)>>2]|0)|0)>>>0>k>>>0){g=g+(k<<1)|0;c[(l&p)>>2]=g;h=c[(b&p)>>2]|0;if((Lc()|0)==0?(m=rg(h,g<<2,0)|0,(m|0)!=0):0){c[(b&p)>>2]=m;h=c[(r&p)>>2]|0;m=5}else m=21}else m=5;a:do if((m|0)==5){g=b+16|0;if(!h){c[(g&p)>>2]=d;if((d|0)>0){g=0;do{c[(q&p)>>2]=c[(f+(g<<2)&p)>>2];h=_c(10344,q)|0;if(!h){m=21;break a}l=c[(s&p)>>2]|0;c[(s&p)>>2]=l+1;c[((c[(b&p)>>2]|0)+(l<<2)&p)>>2]=h;g=g+1|0}while((g|0)<(d|0))}}else if((c[(g&p)>>2]|0)!=(d|0)){g=b+4|0;Wc(c[(g&p)>>2]|0);c[(g&p)>>2]=_c(40912,q)|0;c[(b&p)+24>>2]=1;g=1;break}if(o){if((d|0)>0){l=0;do{k=e+(l<<2)|0;g=c[(k&p)>>2]|0;if(!g)g=0;else{h=g;while(1)if(!(a[(h&n)>>0]|0))break;else h=h+1|0;h=(h-g&1073741823)+1|0;g=Tc(h)|0;if(!g){m=21;break a}kw(g|0,c[(k&p)>>2]|0,h|0)|0}q=c[(s&p)>>2]|0;c[(s&p)>>2]=q+1;c[((c[(b&p)>>2]|0)+(q<<2)&p)>>2]=g;l=l+1|0}while((l|0)<(d|0))}c[(r&p)>>2]=(c[(r&p)>>2]|0)+1;g=0}else g=0}while(0);if((m|0)==21){c[(b&p)+24>>2]=7;g=1}i=t;return g|0}function Kh(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;if(!d)k=0;else{h=d;while(1)if(!(a[(h&n)>>0]|0))break;else h=h+1|0;k=h-d&1073741823}l=b+308|0;h=bn(l,d,m)|0;if((h|0)!=0?(c[(h&p)+8>>2]|0)!=0:0){c[(m&p)>>2]=114188;c[(m&p)+4>>2]=10788;bd(21,13648,m);h=21}else{h=mh(b,k+17|0,0)|0;if((h|0)!=0?(o=h+16|0,kw(o|0,d|0,k+1|0)|0,c[(h&p)+4>>2]=o,c[(h&p)>>2]=e,c[(h&p)+8>>2]=f,c[(h&p)+12>>2]=g,o=Ik(l,o,h)|0,(o|0)!=0):0){a[(b&n)+65>>0]=1;mg(b,o);h=0}else h=0}h=Og(b,h)|0;if((h|0)!=0&(g|0)!=0)cc[g&31](f);i=q;return h|0}function Lh(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=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=i;i=i+16|0;if((i|0)>=(j|0))fa();z=C;o=C+8|0;A=c[(b&p)>>2]|0;l=c[(A&p)+92>>2]|0;if(!(c[(A&p)+148>>2]|0))c[(A&p)+240>>2]=0;B=b+12|0;c[(B&p)>>2]=0;r=b+480|0;c[(r&p)>>2]=d;v=qg(1612,0)|0;if(v){c[(v&p)>>2]=-1;s=A+250|0;t=a[(s&n)>>0]|0;if(c[(A&p)+276>>2]|0)a[(s&n)>>0]=1;u=A+65|0;q=b+504|0;f=b+508|0;m=A+240|0;k=0;h=-1;a:while(1){while(1){if(a[(u&n)>>0]|0){x=19;break a}g=d+k|0;if(!(a[(g&n)>>0]|0)){x=19;break a}c[(q&p)>>2]=g;g=Cn(g,o)|0;c[(f&p)>>2]=g;k=g+k|0;if((k|0)>(l|0)){x=12;break a}g=c[(o&p)>>2]|0;if((g|0)==150){x=16;break a}else if((g|0)==1){h=g;x=17;break}else if((g|0)!=151){h=g;break}if(c[(m&p)>>2]|0){x=15;break a}}if((x|0)==17){x=0;c[(r&p)>>2]=d+k};c[(z&p)>>2]=c[(q&p)>>2];c[(z&p)+4>>2]=c[(q&p)+4>>2];On(v,h,z,b);h=c[(o&p)>>2]|0;if(c[(B&p)>>2]|0){x=19;break}}if((x|0)==12){c[(B&p)>>2]=18;x=19}else if((x|0)==15){th(b,20384,z);c[(B&p)>>2]=9;x=19}else if((x|0)==16){mg(A,c[(e&p)>>2]|0);c[(z&p)>>2]=q;c[(e&p)>>2]=uh(A,20400,z)|0;f=1}if((x|0)==19){k=d+k|0;if((a[(k&n)>>0]|0)==0?(c[(B&p)>>2]|0)==0:0){if((h|0)!=1){c[(z&p)>>2]=c[(q&p)>>2];c[(z&p)+4>>2]=c[(q&p)+4>>2];On(v,1,z,b);c[(r&p)>>2]=k};c[(z&p)>>2]=c[(q&p)>>2];c[(z&p)+4>>2]=c[(q&p)+4>>2];On(v,0,z,b);f=0}else f=0}if((c[(v&p)>>2]|0)>-1)do Pn(v);while((c[(v&p)>>2]|0)>-1);Wc(v);a[(s&n)>>0]=t;if(!(a[(u&n)>>0]|0)){h=c[(B&p)>>2]|0;if(!((h|0)==101|(h|0)==0)){w=h;x=29}}else{c[(B&p)>>2]=7;w=7;x=29}if((x|0)==29?(y=b+4|0,(c[(y&p)>>2]|0)==0):0){if((w|0)!=516){h=w&255;if(h>>>0>26|(h|0)==2)h=16328;else h=c[(h<<2&p)+15488>>2]|0}else h=16344;c[(z&p)>>2]=h;dh(y,A,10344,z)}h=b+4|0;g=c[(h&p)>>2]|0;if(g){c[(e&p)>>2]=g;e=c[(B&p)>>2]|0;c[(z&p)>>2]=g;bd(e,10344,z);c[(h&p)>>2]=0;f=f+1|0}h=b+8|0;g=c[(h&p)>>2]|0;if(((g|0)!=0?(c[(b&p)+64>>2]|0)>0:0)?(a[(b&n)+18>>0]|0)==0:0){Pl(g);c[(h&p)>>2]=0}if(!(a[(b&n)+18>>0]|0)){e=b+400|0;mg(A,c[(e&p)>>2]|0);c[(e&p)>>2]=0;c[(b&p)+396>>2]=0}Wc(c[(b&p)+520>>2]|0);if(!(a[(b&n)+451>>0]|0))kg(A,c[(b&p)+484>>2]|0);if(a[(b&n)+449>>0]|0)Qn(A,c[(b&p)+532>>2]|0);jg(A,c[(b&p)+488>>2]|0);h=c[(b&p)+444>>2]|0;k=b+472|0;g=c[(k&p)>>2]|0;if((h|0)>0)do{h=h+-1|0;mg(A,c[(g+(h<<2)&p)>>2]|0);g=c[(k&p)>>2]|0}while((h|0)>0);mg(A,g);h=b+404|0;g=c[(h&p)>>2]|0;if(g)do{c[(h&p)>>2]=c[(g&p)>>2];mg(A,g);g=c[(h&p)>>2]|0}while((g|0)!=0);h=b+524|0;g=c[(h&p)>>2]|0;if(g)do{c[(h&p)>>2]=c[(g&p)+72>>2];kg(A,g);g=c[(h&p)>>2]|0}while((g|0)!=0);if((f|0)>0?(c[(B&p)>>2]|0)==0:0)c[(B&p)>>2]=1}else{a[(A&n)+65>>0]=1;f=7}i=C;return f|0}function Mh(a){a=a|0;if(a){if(!((b[(a&o)+8>>1]&9312)==0?(c[(a&p)+24>>2]|0)==0:0))Qg(a);mg(c[(a&p)+32>>2]|0,a)}return}function Nh(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,m=0,q=0;if(!(c[(d&p)+252>>2]|0)){q=d+251|0;if(a[(q&n)>>0]|0)Wc(c[(d&p)+276>>2]|0);j=f&-8;h=(j|0)<5?0:j;i=(g|0)<0?0:g;if(!((h|0)==0|(i|0)==0))if(!e){f=c[3164]|0;if(f)nc[f&3]();f=ca(h,i)|0;f=qg(f,((f|0)<0)<<31>>31)|0;g=c[3166]|0;if(g)nc[g&3]();if(!f)f=0;else i=(lc[c[8792>>2]&127](f)|0)/(j|0)|0}else f=e;else{h=0;f=0}g=d+276|0;c[(g&p)>>2]=f;m=d+272|0;c[(m&p)>>2]=0;b[(d&o)+248>>1]=h;if(!f){c[(g&p)>>2]=d;c[(d&p)+280>>2]=d;a[(d&n)+250>>0]=0;f=0}else{if((i|0)>0){g=ca(h,i)|0;l=f+(ca(h,i+-1|0)|0)|0;k=0;j=f;while(1){i=i+-1|0;c[(j&p)>>2]=k;if((i|0)<=0)break;else{k=j;j=j+h|0}}c[(m&p)>>2]=l;f=f+g|0}c[(d&p)+280>>2]=f;a[(d&n)+250>>0]=1;f=(e|0)==0&1}a[(q&n)>>0]=f;f=0}else f=5;return f|0}function Oh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();r=s;do if(!b)e=0;else{l=b+76|0;o=c[(l&p)>>2]|0;if(!((o|0)==1266094736|(o|0)==-1607883113|(o|0)==-264537850)){c[(r&p)>>2]=15248;bd(21,15256,r);c[(r&p)>>2]=128509;c[(r&p)+4>>2]=10788;bd(21,13648,r);e=21;break}m=b+20|0;e=c[(m&p)>>2]|0;a:do if((e|0)>0){o=b+16|0;f=c[(o&p)>>2]|0;h=0;do{g=c[(f+(h<<4)&p)+4>>2]|0;if(g)c[((c[(g&p)+4>>2]|0)&p)+4>>2]=c[(g&p)>>2];h=h+1|0}while((h|0)!=(e|0));k=0;while(1){e=c[(f+(k<<4)&p)+12>>2]|0;if((e|0)!=0?(q=c[(e&p)+16>>2]|0,(q|0)!=0):0){e=q;do{f=c[(e&p)+8>>2]|0;b:do if(a[(f&n)+44>>0]&16){g=f+60|0;while(1){f=c[(g&p)>>2]|0;if(!f)break b;h=f+24|0;if((c[(f&p)>>2]|0)==(b|0))break;else g=h}c[(g&p)>>2]=c[(h&p)>>2];An(f)}while(0);e=c[(e&p)>>2]|0}while((e|0)!=0)}e=k+1|0;if((e|0)>=(c[(m&p)>>2]|0))break a;f=c[(o&p)>>2]|0;k=e}}while(0);rl(b);Rn(b,68);if((d|0)==0?(Jl(b)|0)!=0:0){ug(b,5,16368,r);e=5;break}c[(l&p)>>2]=1691352191;Mg(b);e=0}while(0);i=s;return e|0}function Ph(a,b){a=a|0;b=b|0;if(((b*1e3|0)+1e3|0)>(c[(a&p)+492>>2]|0))b=0;else{b=c[(a&p)>>2]|0;rc[c[(b&p)+60>>2]&127](b,1e6)|0;b=1}return b|0}function Qh(d,f,g,h,k,l,m,q,r){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();w=y;do if(f){u=(l|0)!=0;s=(q|0)!=0;if(u)if(s|(m|0)!=0){x=8;break}else{s=0;t=0}else{t=(m|0)!=0;if(!(t|s^1)){x=8;break}}if(!(t&((u|s)^1)|(g|0)<-1|(g|0)>127)){s=f;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;t=s-f&1073741823;if(t>>>0<=255){v=h&2048;s=h&7;if((s|0)!=4){if((s|0)==5){s=Qh(d,f,g,v|1,k,l,m,q,r)|0;if(s)break;s=Qh(d,f,g,v|2,k,l,m,q,r)|0;if(!s)s=3;else break}}else s=2;u=s&255;h=Sh(d,f,t,g,u,0)|0;if(((h|0)!=0?(e[(h&o)+2>>1]&3|0)==(s|0):0)?(b[(h&o)>>1]|0)==(g|0):0){if(c[(d&p)+148>>2]|0){ug(d,5,15424,w);s=5;break}s=c[(d&p)+4>>2]|0;if(s)do{w=s+88|0;b[(w&o)>>1]=b[(w&o)>>1]|8;s=c[(s&p)+52>>2]|0}while((s|0)!=0)}s=Sh(d,f,t,g,u,1)|0;if(!s)s=7;else{Nl(d,s);if(r)c[(r&p)>>2]=(c[(r&p)>>2]|0)+1;c[(s&p)+32>>2]=r;r=s+2|0;b[(r&o)>>1]=e[(r&o)>>1]&3|v;c[(s&p)+12>>2]=l;c[(s&p)+16>>2]=m;c[(s&p)+20>>2]=q;c[(s&p)+4>>2]=k;b[(s&o)>>1]=g;s=0}}else x=8}else x=8}else x=8;while(0);if((x|0)==8){c[(w&p)>>2]=129075;c[(w&p)+4>>2]=10788;bd(21,13648,w);s=21}i=y;return s|0}function Rh(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+48|0;if((i|0)>=(j|0))fa();k=l;g=k+0|0;h=g+40|0;do{c[(g&p)>>2]=0;g=g+4|0}while((g|0)<(h|0));c[(k&p)+32>>2]=d;Xg(k,e,f,2,0)|0;f=k+8|0;e=c[(f&p)>>2]|0;if(!((e&2|0)==0|(e&16711680|0)==65536))Bn(k,1)|0;if(!(a[(d&n)+65>>0]|0))f=c[(k&p)+16>>2]|0;else{if(!((b[(f&o)>>1]&9312)==0?(c[(k&p)+24>>2]|0)==0:0))Qg(k);c[(k&p)+16>>2]=0;f=0}i=l;return f|0}function Sh(e,f,g,h,i,j){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0;q=((d[((d[(f&n)>>0]|0)&n)+9328>>0]|0)+g|0)%23|0;r=e+336|0;l=Rk(r,q,f,g)|0;if(!l){m=0;k=0}else{m=0;k=0;do{t=Sn(l,h,i)|0;s=(t|0)>(m|0);m=s?t:m;k=s?l:k;l=c[(l&p)+8>>2]|0}while((l|0)!=0)}do if(!(j<<24>>24)){if((k|0)!=0?(c[(e&p)+24>>2]&2097152|0)==0:0){l=0;q=12;break}l=Rk(10840,q,f,g)|0;if(!l){m=0;q=8}else{m=0;do{s=Sn(l,h,i)|0;q=(s|0)>(m|0);m=q?s:m;k=q?l:k;l=c[(l&p)+8>>2]|0}while((l|0)!=0);q=8}}else q=8;while(0);do if((q|0)==8){l=j<<24>>24!=0;if(l&(m|0)<6){l=g+37|0;k=mh(e,l,0)|0;if(!k){q=14;break}fw(k|0,0,l|0)|0;l=k+36|0;c[(k&p)+24>>2]=l;b[(k&o)>>1]=h;b[(k&o)+2>>1]=i&255;kw(l|0,f|0,g|0)|0;a[(k+g&n)+36>>0]=0;ng(r,k);l=1}if(!k)q=14;else q=12}while(0);if((q|0)==12)if((c[(k&p)+16>>2]|0)==0?!((c[(k&p)+12>>2]|0)!=0|l):0)q=14;if((q|0)==14)k=0;return k|0}function Th(b,d,e){b=b|0;d=d|0;e=e|0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();e=d;c[(e&p)>>2]=c[((c[(b&p)+4>>2]|0)&p)+24>>2];e=_c(15304,e)|0;c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,e,-1,1,-1)|0;Wc(e);i=d;return}function Uh(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;if((a|0)<=(e|0)){e=c[3164]|0;if(e)nc[e&3]();Kf(b,d,0,0,0)|0;e=c[3166]|0;if(e)nc[e&3]()}return 0}function Vh(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;a:do if(d){e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;g=e-d&1073741823;f=c[(b&p)+20>>2]|0;e=f+-1|0;if((f|0)>0){h=e;f=(c[(b&p)+16>>2]|0)+(e<<4)|0;while(1){b=c[(f&p)>>2]|0;if(!b)e=0;else{e=b;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;e=e-b&1073741823}if((g|0)==(e|0)?(dd(b,d)|0)==0:0){e=h;break a}e=h+-1|0;if((h|0)>0){h=e;f=f+-16|0}else break}}}else e=-1;while(0);return e|0}function Wh(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0;s=b+20|0;i=c[(s&p)>>2]|0;if((i|0)>0){t=(e|0)==10;q=b+16|0;r=(f|0)==0;m=g;b=i;g=0;o=0;while(1){if((o|0)==(e|0)|t){j=c[((c[(q&p)>>2]|0)+(o<<4)&p)+4>>2]|0;if(j){i=c[(j&p)+4>>2]|0;c[(i&p)+4>>2]=c[(j&p)>>2];if(!(a[(i&n)+20>>0]|0)){j=c[(i&p)>>2]|0;k=c[(j&p)+208>>2]|0;if(!k)k=0;else{if(r)i=0;else i=c[(j&p)+176>>2]|0;k=Tn(k,f,i,c[(j&p)+180>>2]|0,d[(j&n)+9>>0]|0,c[(j&p)+152>>2]|0,c[(j&p)+200>>2]|0,m,h)|0;b=c[(s&p)>>2]|0}}else k=6}else k=0;h=(k|0)==5;l=0;j=0;i=b;g=h?1:g;h=h?0:k}else{l=h;j=m;i=b;h=0}o=o+1|0;b=(h|0)==0;if(!((o|0)<(i|0)&b))break;else{m=j;h=l;b=i}}}else{b=1;g=0;h=0}return (b&(g|0)!=0?5:h)|0}function Xh(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+32|0;if((i|0)>=(j|0))fa();v=z;w=z+20|0;r=z+16|0;q=z+12|0;m=z+8|0;c[(r&p)>>2]=f;c[(q&p)>>2]=0;c[(m&p)>>2]=0;c[(e&p)>>2]=0;h=Lc()|0;do if(!h){if(!(1<<(f&7)&70)){c[(v&p)>>2]=130207;c[(v&p)+4>>2]=10788;bd(21,13648,v);h=21;break}if((c[2187]|0)!=0&(f&32768|0)==0)l=(f&65536|0)==0?c[2188]|0:1;else l=0;if(!(f&262144)){if(c[2241]|0){f=f|131072;c[(r&p)>>2]=f}}else{f=f&-131073;c[(r&p)>>2]=f}f=f&-655129;c[(r&p)>>2]=f;y=qg(528,0)|0;a:do if(y){fw(y|0,0,528)|0;if(l)c[(y&p)+12>>2]=8;c[(y&p)+56>>2]=255;c[(y&p)+20>>2]=2;s=y+76|0;c[(s&p)>>2]=-264537850;t=y+16|0;c[(t&p)>>2]=y+456;k=y+88|0;l=11088;h=k+44|0;do{c[(k&p)>>2]=c[(l&p)>>2];k=k+4|0;l=l+4|0}while((k|0)<(h|0));c[(y&p)+132>>2]=0;a[(y&n)+63>>0]=1;a[(y&n)+67>>0]=-1;k=8920;u=c[(k&p)+4>>2]|0;l=y+40|0;c[(l&p)>>2]=c[(k&p)>>2];c[(l&p)+4>>2]=u;c[(y&p)+72>>2]=0;c[(y&p)+136>>2]=2147483647;c[(y&p)+24>>2]=9437264;l=y+428|0;c[(l&p)>>2]=0;c[(l&p)+4>>2]=0;c[(l&p)+8>>2]=0;c[(l&p)+12>>2]=0;u=y+308|0;c[(u&p)>>2]=0;c[(u&p)+4>>2]=0;c[(u&p)+8>>2]=0;c[(u&p)+12>>2]=0;Yh(y,11152,1,0,21,0)|0;Yh(y,11152,3,0,21,0)|0;Yh(y,11152,2,0,21,0)|0;Yh(y,13752,1,0,22,0)|0;Yh(y,13760,1,1,21,0)|0;u=y+65|0;if(!(a[(u&n)>>0]|0)){l=bn(l,11152,v)|0;if(!l)l=0;else l=c[(l&p)+8>>2]|0;c[(y&p)+8>>2]=l;c[(y&p)+48>>2]=f;l=Wn(g,d,r,y,q,m)|0;if((l|0)==7)a[(u&n)>>0]=1;else if(!l){d=c[(q&p)>>2]|0;h=zm(c[(y&p)>>2]|0,d,y,(c[(t&p)>>2]|0)+4|0,0,c[(r&p)>>2]|256)|0;if(!h){f=c[((c[(t&p)>>2]|0)&p)+4>>2]|0;c[((c[(f&p)+4>>2]|0)&p)+4>>2]=c[(f&p)>>2];f=Xn(y,f)|0;c[((c[(t&p)>>2]|0)&p)+12>>2]=f;if(!(a[(u&n)>>0]|0))a[(y&n)+62>>0]=a[(f&n)+77>>0]|0;f=qg(84,0)|0;if(!f){a[(u&n)>>0]=1;f=0}else{k=f+0|0;h=k+84|0;do{a[(k&n)>>0]=0;k=k+1|0}while((k|0)<(h|0));l=f+77|0;k=f+8|0;h=k+64|0;do{c[(k&p)>>2]=0;k=k+4|0}while((k|0)<(h|0));a[(l&n)>>0]=1}r=c[(t&p)>>2]|0;c[(r&p)+28>>2]=f;c[(r&p)>>2]=13768;a[(r&n)+8>>0]=3;c[(r&p)+16>>2]=10728;a[(r&n)+24>>0]=1;c[(s&p)>>2]=-1607883113;if(a[(u&n)>>0]|0){h=y;break}k=y+52|0;c[(k&p)>>2]=0;l=y+236|0;f=c[(l&p)>>2]|0;do if(f){h=f+8|0;if(!(b[(h&o)>>1]&9312)){b[(h&o)>>1]=1;break}else{vg(f);break}}while(0);if((Cf(y,14632,2)|0)==7)a[(u&n)>>0]=1;f=Nf(y)|0;do if(!f){f=c[2656]|0;if(f){b:do if((f|0)>0){k=0;while(1){f=c[((c[2658]|0)+(k<<2)&p)>>2]|0;c[(w&p)>>2]=0;if(f){h=ac[f&63](y,w,13776)|0;f=c[(w&p)>>2]|0;if(h)break}else f=0;Wc(f);k=k+1|0;if((k|0)>=(c[2656]|0)){x=40;break b}}c[(v&p)>>2]=f;ug(y,h,14592,v);h=c[(w&p)>>2]|0}else x=40;while(0);if((x|0)==40){c[(w&p)>>2]=0;h=0}Wc(h)}if(Nf(y)|0){h=y;break a}}else{c[(k&p)>>2]=f;h=c[(l&p)>>2]|0;if(h){f=h+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;break}else{vg(h);break}}}while(0);Nh(y,0,c[2193]|0,c[2194]|0)|0;c[(y&p)+216>>2]=21;c[(y&p)+220>>2]=1e3;h=y;break}else if((h|0)==3082)h=7;c[(y&p)+52>>2]=h;f=c[(y&p)+236>>2]|0;if(!f){h=y;break}h=f+8|0;if(!(b[(h&o)>>1]&9312)){b[(h&o)>>1]=1;h=y;break}else{vg(f);h=y;break}}d=c[(m&p)>>2]|0;c[(v&p)>>2]=d;ug(y,l,(d|0)!=0?10344:0,v);Wc(d);d=c[(q&p)>>2]|0;h=y}else{d=0;h=y}}else{d=0;h=0}while(0);Wc(d);f=Nf(h)|0;if((f|0)==7){Oh(h,0)|0;h=0}else if(f)c[(y&p)+76>>2]=1266094736;c[(e&p)>>2]=h;h=f&255}while(0);i=z;return h|0}function Yh(e,f,g,h,k,l){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))fa();m=v;u=g&255;if(!(g<<24>>24==4|g<<24>>24==8))if((u+-1|0)>>>0>2){c[(m&p)>>2]=129758;c[(m&p)+4>>2]=10788;bd(21,13648,m);m=21}else{t=u;q=4}else{t=2;q=4}do if((q|0)==4){s=t&255;q=Yn(e,s,f,0)|0;if((q|0)!=0?(c[(q&p)+12>>2]|0)!=0:0){if(c[(e&p)+148>>2]|0){ug(e,5,13680,m);m=5;break}g=c[(e&p)+4>>2]|0;if(g)do{r=g+88|0;b[(r&o)>>1]=b[(r&o)>>1]|8;g=c[(g&p)+52>>2]|0}while((g|0)!=0);r=q+4|0;if((d[(r&n)>>0]&247|0)==(t|0)){g=bn(e+428|0,f,m)|0;if(!g)q=0;else q=c[(g&p)+8>>2]|0;m=0;do{if((a[(q+(m*20|0)&n)+4>>0]|0)==(a[(r&n)>>0]|0)){g=c[(q+(m*20|0)&p)+16>>2]|0;if(g)cc[g&31](c[(q+(m*20|0)&p)+8>>2]|0);c[(q+(m*20|0)&p)+12>>2]=0}m=m+1|0}while((m|0)!=3)}}g=Yn(e,s,f,1)|0;if(g){c[(g&p)+12>>2]=k;c[(g&p)+8>>2]=h;c[(g&p)+16>>2]=l;a[(g&n)+4>>0]=t|u&8;c[(e&p)+52>>2]=0;m=c[(e&p)+236>>2]|0;if(m){g=m+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;m=0;break}else{vg(m);m=0;break}}else m=0}else m=7}while(0);i=v;return m|0}function Zh(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0;l=d+24|0;m=c[(l&p)>>2]&2;q=d+145|0;a[(q&n)>>0]=1;k=d+16|0;i=c[(k&p)>>2]|0;a[(d&n)+62>>0]=a[((c[(i&p)+12>>2]|0)&n)+77>>0]|0;h=d+20|0;g=0;while(1){if((g|0)>=(c[(h&p)>>2]|0)){g=i;i=6;break}if(!((g|0)==1?1:(b[((c[(i+(g<<4)&p)+12>>2]|0)&o)+78>>1]&1)!=0)?(f=Zn(d,g,e)|0,(f|0)!=0):0){i=9;break}i=c[(k&p)>>2]|0;g=g+1|0}if((i|0)==6)if((b[((c[(g&p)+28>>2]|0)&o)+78>>1]&1)==0?(j=Zn(d,1,e)|0,(j|0)!=0):0){ql(c[((c[(k&p)>>2]|0)&p)+28>>2]|0);f=j}else f=0;else if((i|0)==9)vm(d,g);a[(q&n)>>0]=0;if(!(f|m))c[(l&p)>>2]=c[(l&p)>>2]&-3;return f|0}function _h(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))fa();m=n;k=a+20|0;a:do if((c[(k&p)>>2]|0)>0){l=(d|0)==0;g=a+16|0;h=0;a=0;do{f=(h|0)<2^h;e=c[(g&p)>>2]|0;if(!(!l?(dd(d,c[(e+(f<<4)&p)>>2]|0)|0)!=0:0)){a=bn((c[(e+(f<<4)&p)+12>>2]|0)+8|0,b,m)|0;if(a){a=c[(a&p)+8>>2]|0;if(a)break a}else a=0}h=h+1|0}while((h|0)<(c[(k&p)>>2]|0))}else a=0;while(0);i=n;return a|0}function $h(a){a=a|0;if((dd(a,12936)|0)!=0?(dd(a,12944)|0)!=0:0)a=(dd(a,12952)|0)==0&1;else a=1;return a|0}function ai(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;g=c[(a&p)+20>>2]|0;a:do if((g|0)>0){d=c[(a&p)+16>>2]|0;e=(b|0)==0;f=0;while(1){a=c[(d+(f<<4)&p)+4>>2]|0;if(a){if(e)break a;if(!(dd(b,c[(d+(f<<4)&p)>>2]|0)|0))break a}f=f+1|0;if((f|0)>=(g|0)){a=0;break}}}else a=0;while(0);return a|0}function bi(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0;a:do if(!b)e=0;else{e=e+-1|0;b:do if((c[(b&p)>>2]|0)>>>0>4e3){g=b;f=e;while(1){e=g+8|0;h=c[(e&p)>>2]|0;if(!h){j=b;break}e=(f>>>0)%(h>>>0)|0;f=g+12+(((f>>>0)/(h>>>0)|0)<<2)|0;b=c[(f&p)>>2]|0;if(!b){b=qg(512,0)|0;if(!b){e=b;l=21;break}fw(b|0,0,512)|0;c[(b&p)>>2]=h;c[(f&p)>>2]=b}if((c[(b&p)>>2]|0)>>>0>4e3){g=b;f=e}else break b}if((l|0)==21){c[(f&p)>>2]=e;e=7;break a}k=f+1|0;f=(f>>>0)%125|0;i=g+12|0;b=c[(g+(f<<2)&p)+12>>2]|0;if(!b){b=c[(g&p)+4>>2]|0;if(b>>>0<124){e=g;l=20}}else{do{if((b|0)==(k|0)){e=0;break a}f=f+1|0;f=f>>>0>124?0:f;b=c[(g+(f<<2)&p)+12>>2]|0}while((b|0)!=0);b=c[(g&p)+4>>2]|0;if(b>>>0<=61){e=g;l=20}}if((l|0)==20){c[(g&p)+4>>2]=b+1;c[(e+(f<<2)&p)+12>>2]=k;e=0;break a}h=qg(500,0)|0;if(!h){e=7;break a}kw(h|0,i|0,500)|0;fw(i|0,0,500)|0;c[(e&p)>>2]=(((c[(j&p)>>2]|0)+124|0)>>>0)/125|0;b=0;e=bi(g,k)|0;do{f=c[(h+(b<<2)&p)>>2]|0;if(f)e=bi(g,f)|0|e;b=b+1|0}while((b|0)!=125);Wc(h);break a}while(0);b=b+12+(e>>>3)|0;a[(b&n)>>0]=d[(b&n)>>0]|0|1<<(e&7);e=0}while(0);return e|0}function ci(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;a:do if(b){g=e+-1|0;while(1){e=c[(b&p)+8>>2]|0;if(!e)break;b=c[(b+(((g>>>0)/(e>>>0)|0)<<2)&p)+12>>2]|0;if(!b)break a;else g=(g>>>0)%(e>>>0)|0}if((c[(b&p)>>2]|0)>>>0<4001){b=b+12+(g>>>3)|0;a[(b&n)>>0]=(d[(b&n)>>0]|0)&(1<<(g&7)^255);break}k=b+12|0;kw(f|0,k|0,500)|0;fw(k|0,0,500)|0;k=b+4|0;c[(k&p)>>2]=0;h=g+1|0;j=0;do{i=f+(j<<2)|0;e=c[(i&p)>>2]|0;if(!((e|0)==0|(e|0)==(h|0))){g=((e+-1|0)>>>0)%125|0;c[(k&p)>>2]=(c[(k&p)>>2]|0)+1;e=b+(g<<2)+12|0;if(c[(e&p)>>2]|0)do{e=g+1|0;g=e>>>0>124?0:e;e=b+(g<<2)+12|0}while((c[(e&p)>>2]|0)!=0);c[(e&p)>>2]=c[(i&p)>>2]}j=j+1|0}while((j|0)!=125)}while(0);return}function di(a,b){a=a|0;b=b|0;var e=0,f=0;a:do if((a|0)!=0?(e=b+-1|0,e>>>0<(c[(a&p)>>2]|0)>>>0):0){while(1){b=c[(a&p)+8>>2]|0;if(!b)break;a=c[(a+(((e>>>0)/(b>>>0)|0)<<2)&p)+12>>2]|0;if(!a){e=0;break a}else e=(e>>>0)%(b>>>0)|0}if((c[(a&p)>>2]|0)>>>0<4001){e=((d[(a+(e>>>3)&n)+12>>0]|0)&1<<(e&7)|0)!=0&1;break}f=e+1|0;e=(e>>>0)%125|0;b=c[(a+(e<<2)&p)+12>>2]|0;if(b)while(1){if((b|0)==(f|0)){e=1;break a}e=((e+1|0)>>>0)%125|0;b=c[(a+(e<<2)&p)+12>>2]|0;if(!b){e=0;break}}else e=0}else e=0;while(0);return e|0}function ei(a){a=a|0;var b=0,d=0;if(a){if(c[(a&p)+8>>2]|0){b=a+12|0;d=0;do{ei(c[(b+(d<<2)&p)>>2]|0);d=d+1|0}while((d|0)!=125)}Wc(a)}return}function fi(b,c){b=b|0;c=c|0;var f=0;a:do if((c|0)>=2?(f=a[((((d[((d[(b&n)>>0]|0)&n)+9328>>0]|0)<<2^c^(d[((d[(b+c+-1&n)>>0]|0)&n)+9328>>0]|0)*3|0)%127|0)&n)+11824>>0]|0,f<<24>>24!=0):0){f=f&255;while(1){f=f+-1|0;if((d[(f&n)+12080>>0]|0|0)==(c|0)?(Fc(11264+(e[(f<<1&o)+12208>>1]|0)|0,b,c)|0)==0:0)break;f=a[(f&n)+11952>>0]|0;if(!(f<<24>>24)){f=27;break a}else f=f&255}f=d[(f&n)+12456>>0]|0}else f=27;while(0);return f|0}function gi(a){a=a|0;var b=0,d=0,e=0;c[2174]=a;if((c[2184]|0)>>>0<a>>>0)c[2184]=a;d=c[2264]|0;if((d|0)==0|(c[2235]|0)<(a|0)){b=qg(a,((a|0)<0)<<31>>31)|0;if((c[2186]|0)!=0&(b|0)!=0?(e=lc[c[8792>>2]&127](b)|0,e=(c[2170]|0)+e|0,c[2170]=e,e>>>0>(c[2180]|0)>>>0):0)c[2180]=e}else{b=c[2263]|0;c[2263]=c[(b&p)>>2];c[2264]=d+-1;a=(c[2169]|0)+1|0;c[2169]=a;if(a>>>0>(c[2179]|0)>>>0)c[2179]=a}return b|0}function hi(a){a=a|0;var b=0;do if(a){if((c[2234]|0)>>>0<=a>>>0&(c[2262]|0)>>>0>a>>>0){c[(a&p)>>2]=c[2263];c[2263]=a;c[2264]=(c[2264]|0)+1;c[2169]=(c[2169]|0)+-1;break}if(!(c[2186]|0)){cc[c[8784>>2]&31](a);break}else{b=lc[c[8792>>2]&127](a)|0;c[2170]=(c[2170]|0)-b;c[2166]=(c[2166]|0)-b;c[2175]=(c[2175]|0)+-1;cc[c[8784>>2]&31](a);break}}while(0);return}function ii(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l;g=a[(b&n)>>0]|0;a:do if(((g&255)+-48|0)>>>0>=10){k=g;g=b;while(1){h=g+1|0;if(!(k<<24>>24))break;k=a[(h&n)>>0]|0;g=h}k=g-b&1073741823;g=7-e|0;if((g|0)>0){h=0;while(1){if((d[(h&n)+11248>>0]|0|0)==(k|0)?(Fc(11216+(d[(h&n)+11240>>0]|0)|0,b,k)|0)==0:0){f=h;break}h=h+1|0;if((h|0)>=(g|0))break a}f=a[(f&n)+11256>>0]|0}}else{c[(h&p)>>2]=0;Dn(b,h)|0;f=c[(h&p)>>2]&255}while(0);i=l;return f|0}function ji(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=a[(b&n)>>0]|0;do if(e<<24>>24==48){f=a[(b&n)+1>>0]|0;if(!(f<<24>>24==88|f<<24>>24==120))if(!b){e=0;k=15;break}else{g=e;e=b;k=12;break}e=a[(b&n)+2>>0]|0;if(!(a[(e&255&n)+10368>>0]&8)){g=48;e=b;k=12}else{g=2;while(1){f=g+1|0;if(e<<24>>24!=48)break;e=a[(b+f&n)>>0]|0;g=f}if(!(a[(e&255&n)+10368>>0]&8)){h=b+g|0;i=0;e=0;f=g}else{i=0;h=0;f=g;while(1){i=iw(i|0,h|0,4)|0;j=G;h=e<<24>>24;i=(0-(h>>>6&1)&9)+h&15|i;f=f+1|0;h=b+f|0;e=a[(h&n)>>0]|0;if(!(a[(e&255&n)+10368>>0]&8)){e=j;break}else h=j}}j=d;c[(j&p)>>2]=i;c[(j&p)+4>>2]=e;if(!(a[(h&n)>>0]|0))e=(f-g|0)<17;else e=0;e=e&1^1}}else{g=e;e=b;k=12}while(0);if((k|0)==12){while(1){f=e+1|0;if(!(g<<24>>24))break;g=a[(f&n)>>0]|0;e=f;k=12}e=e-b&1073741823;k=15}if((k|0)==15)e=Ul(b,d,e,1)|0;return e|0}function ki(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;G=i;i=i+1264|0;if((i|0)>=(j|0))fa();E=G;D=G+152|0;x=G+742|0;y=G+76|0;u=G+228|0;r=h&-256;v=h&16;C=h&8;w=h&4;q=h&1;z=h&2;if((w|0)!=0?(r|0)==524288|(r|0)==2048|(r|0)==16384:0)B=1;else B=0;A=c[12114]|0;if((A|0)!=(rb()|0)?(c[12114]=rb()|0,(Lc()|0)==0):0)a[9064]=0;s=g+0|0;t=s+44|0;do{c[(s&p)>>2]=0;s=s+4|0}while((s|0)<(t|0));A=(r|0)==256;do if(A){a:do if((rc[c[47604>>2]&127](f,E)|0)==0?(l=c[12178]|0,(l|0)!=0):0){r=c[(E&p)>>2]|0;s=c[(E&p)+72>>2]|0;while(1){if((c[(l&p)>>2]|0)==(r|0)?(c[(l&p)+4>>2]|0)==(s|0):0)break;l=c[(l&p)+32>>2]|0;if(!l){F=18;break a}}r=l+28|0;l=c[(r&p)>>2]|0;if(l){while(1){t=r;r=l+8|0;s=l;l=c[(r&p)>>2]|0;if((c[(s&p)+4>>2]|0)==(h|0)){r=t;break}if(!l){F=18;break a}}c[(r&p)>>2]=l;u=c[(s&p)>>2]|0;l=s}else F=18}else F=18;while(0);if((F|0)==18){l=Tc(12)|0;if(!l){l=7;break}else u=-1}c[(g&p)+28>>2]=l;r=w<<4|z;l=(v|0)!=0;if((u|0)<0){w=l;v=l?r|131200:r;l=f;F=23}else{t=u;l=f;F=36}}else{if(!f){l=_n(514,u)|0;if(!l)l=u;else break}else l=f;F=w<<4|z;v=(v|0)!=0;w=v;v=v?F|131200:F;F=23}while(0);b:do if((F|0)==23){if(!(h&526336)){r=(C|0)==0?0:384;u=0;t=0}else{if(!l)r=0;else{r=l;while(1)if(!(a[(r&n)>>0]|0))break;else r=r+1|0;r=r-l&1073741823}do r=r+-1|0;while((a[(l+r&n)>>0]|0)!=45);kw(x|0,l|0,r|0)|0;a[(x+r&n)>>0]=0;if(rc[c[47604>>2]&127](x,y)|0){l=1802;break}r=c[(y&p)+12>>2]&511;u=c[(y&p)+20>>2]|0;t=c[(y&p)+24>>2]|0}s=$n(l,v,r)|0;do if((s|0)<0){if(!(w|((z|0)==0|(c[((Hb()|0)&p)>>2]|0)==21))?(m=$n(l,v&131200,r)|0,(m|0)>=0):0){h=h&-8|1;q=1;break}c[(E&p)>>2]=31186;c[(E&p)+4>>2]=10788;bd(14,14848,E);l=co(14,47896,l,31186)|0;if(!l){l=0;break b}m=g+28|0;F=70;break b}else m=s;while(0);if(!(h&526336)){t=m;F=36}else{ac[c[47796>>2]&63](m,u,t)|0;t=m;F=36}}while(0);c:do if((F|0)==36){if(k)c[(k&p)>>2]=h;u=g+28|0;m=c[(u&p)>>2]|0;if(m){c[(m&p)>>2]=t;c[(m&p)+4>>2]=h}if(C)lc[c[47748>>2]&127](l)|0;l=C<<2;l=(q|0)==0?l:l|2;l=A?l:l|128;l=B?l|8:l;C=l|h&64;c[(g&p)+12>>2]=t;c[(g&p)+4>>2]=d;c[(g&p)+32>>2]=f;m=g+18|0;b[(m&o)>>1]=C&255;if(fg((C&64|0)!=0?f:0,48496,1)|0)b[(m&o)>>1]=e[(m&o)>>1]|16;if(!(_v(c[(d&p)+16>>2]|0,1e4)|0))b[(m&o)>>1]=e[(m&o)>>1]|1;d:do if(!(l&128)){l=rc[c[(c[(d&p)+20>>2]&p)>>2]&127](f,g)|0;if((l|0)!=48504){if((l|0)!=47472){F=64;break}m=(gw(f|0)|0)+6|0;l=Tc(m)|0;if(l){c[(E&p)>>2]=f;ad(m,l,48584,E)|0;c[(g&p)+24>>2]=l;c[(g&p)+20>>2]=0;l=47472;break}c[(g&p)+24>>2]=0;c[(g&p)+20>>2]=0;if((t|0)<=-1){m=u;l=7;F=70;break c}ao(g,t,30794);m=u;l=7;F=70;break c}do if(!(rc[c[47616>>2]&127](c[(g&p)+12>>2]|0,D)|0)){l=E;c[(l&p)>>2]=0;c[(l&p)+4>>2]=0;c[(E&p)>>2]=c[(D&p)>>2];c[(E&p)+4>>2]=c[(D&p)+72>>2];l=c[12178]|0;e:do if(!l)F=53;else{while(1){if(!(Zv(E,l,8)|0))break;l=c[(l&p)+32>>2]|0;if(!l){F=53;break e}}E=l+16|0;c[(E&p)>>2]=(c[(E&p)>>2]|0)+1}while(0);if((F|0)==53){m=Tc(40)|0;if(!m){l=7;m=g+20|0;break}s=m+0|0;t=s+40|0;do{c[(s&p)>>2]=0;s=s+4|0}while((s|0)<(t|0));F=c[(E&p)+4>>2]|0;l=m;c[(l&p)>>2]=c[(E&p)>>2];c[(l&p)+4>>2]=F;c[(m&p)+16>>2]=1;c[(m&p)+32>>2]=c[12178];c[(m&p)+36>>2]=0;l=c[12178]|0;if(l)c[(l&p)+36>>2]=m;c[12178]=m;l=m}c[(g&p)+8>>2]=l;l=48504;F=64;break d}else{l=c[((Hb()|0)&p)>>2]|0;m=g+20|0;c[(m&p)>>2]=l;l=(l|0)==75?22:10}while(0);ao(g,t,30709);c[(m&p)>>2]=0;m=u;F=70;break c}else{l=48376;F=64}while(0);if((F|0)==64)c[(g&p)+20>>2]=0;c[(g&p)>>2]=l;bo(g);l=0}while(0);if((F|0)==70)Wc(c[(m&p)>>2]|0);i=G;return l|0}function li(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;do if((lc[c[47748>>2]&127](b)|0)==-1)if((c[((Hb()|0)&p)>>2]|0)==2)a=5898;else a=co(2570,48032,b,31314)|0;else if(d&1){a=rc[c[47760>>2]&127](b,e)|0;if((a|0)==14){a=0;break}else if(a)break;if(!(Gb(c[(e&p)>>2]|0)|0))a=0;else a=co(1290,48488,b,31329)|0;if(lc[c[47568>>2]&127](c[(e&p)>>2]|0)|0)co(4106,47856,0,31331)|0}else a=0;while(0);i=f;return a|0}function mi(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;g=i;i=i+80|0;if((i|0)>=(j|0))fa();f=g;if((d|0)==2)a=4;else if((d|0)==1)a=6;else a=0;a=(rc[c[47580>>2]&127](b,a)|0)==0;c[(e&p)>>2]=a&1;if((!((d|0)!=0|a^1)?(rc[c[47604>>2]&127](b,f)|0)==0:0)?(c[(f&p)+36>>2]|0)==0:0)c[(e&p)>>2]=0;i=g;return 0}function ni(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;b=e+-1|0;a[(f+b&n)>>0]=0;do if((a[(d&n)>>0]|0)!=47)if(!(rc[c[47592>>2]&127](f,b)|0)){c[(g&p)>>2]=31416;c[(g&p)+4>>2]=10788;bd(14,14848,g);b=co(14,47904,d,31416)|0;break}else{b=gw(f|0)|0;c[(g&p)>>2]=d;ad(e-b|0,f+b|0,48480,g)|0;b=0;break}else{c[(g&p)>>2]=d;ad(e,f,10344,g)|0;b=0}while(0);i=h;return b|0}function oi(a,b){a=a|0;b=b|0;return Db(b|0,258)|0}function pi(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;a=Xa()|0;if(a){c[(e&p)>>2]=a;ad(b,d,10344,e)|0}i=f;return}function qi(a,b,c){a=a|0;b=b|0;c=c|0;return $a(b|0,c|0)|0}function ri(a,b){a=a|0;b=b|0;Eb(b|0)|0;return}function si(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;fw(e|0,0,d|0)|0;c[12114]=rb()|0;b=$n(48464,0,0)|0;if((b|0)>=0){do if((ac[c[47652>>2]&63](b,e,d)|0)>=0)break;while((c[((Hb()|0)&p)>>2]|0)==4);if(lc[c[47568>>2]&127](b)|0)co(4106,47856,0,31521)|0}else{Pb(f|0)|0;d=c[(f&p)>>2]|0;a[(e&n)>>0]=d;a[(e&n)+1>>0]=d>>8;a[(e&n)+2>>0]=d>>16;a[(e&n)+3>>0]=d>>24;d=e+4|0;b=c[12114]|0;a[(d&n)>>0]=b;a[(d&n)+1>>0]=b>>8;a[(d&n)+2>>0]=b>>16;a[(d&n)+3>>0]=b>>24;d=8}i=g;return d|0}function ti(a,b){a=a|0;b=b|0;a=(b+999999|0)/1e6|0;Mb(a|0)|0;return a*1e6|0}function ui(a,b){a=a|0;b=b|0;var d=0,e=0;a=i;i=i+16|0;if((i|0)>=(j|0))fa();e=a;d=e;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;d=wi(0,e)|0;h[(b&q)>>3]=(+((c[(e&p)>>2]|0)>>>0)+4294967296.0*+(c[(e&p)+4>>2]|0))/864.0e5;i=a;return d|0}function vi(a,b,c){a=a|0;b=b|0;c=c|0;return 0}function wi(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();a=d;if(!(Sb(a|0,0)|0)){f=c[(a&p)>>2]|0;f=sw(f|0,((f|0)<0)<<31>>31|0,1e3,0)|0;f=jw(f|0,G|0,1045635584,49096)|0;e=(c[(a&p)+4>>2]|0)/1e3|0;e=jw(f|0,G|0,e|0,((e|0)<0)<<31>>31|0)|0;a=b;c[(a&p)>>2]=e;c[(a&p)+4>>2]=G;a=0}else a=1;i=d;return a|0}function xi(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a:do if(!b){a=0;do{b=c[((a*12|0)&p)+47560>>2]|0;if(b)c[((a*12|0)&p)+47556>>2]=b;a=a+1|0}while((a|0)!=25);b=0}else{a=0;while(1){if(!(_v(b,c[((a*12|0)&p)+47552>>2]|0)|0)){e=a;break}a=a+1|0;if(a>>>0>=25){b=12;break a}}b=47560+(e*12|0)|0;a=c[(b&p)>>2]|0;if(!a){a=c[((e*12|0)&p)+47556>>2]|0;c[(b&p)>>2]=a}c[((e*12|0)&p)+47556>>2]=(d|0)==0?a:d;b=0}while(0);return b|0}function yi(a,b){a=a|0;b=b|0;var d=0;a=0;while(1){if(!(_v(b,c[((a*12|0)&p)+47552>>2]|0)|0)){d=4;break}a=a+1|0;if(a>>>0>=25){a=0;break}}if((d|0)==4)a=c[((a*12|0)&p)+47556>>2]|0;return a|0}function zi(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if(!b)a=-1;else{d=0;while(1){a=d+1|0;if(!(_v(b,c[((d*12|0)&p)+47552>>2]|0)|0)){a=d;break a}if((a|0)<24)d=a;else break}}while(0);while(1){a=a+1|0;if((a|0)>=25){a=0;break}if(c[((a*12|0)&p)+47556>>2]|0){e=6;break}}if((e|0)==6)a=c[((a*12|0)&p)+47552>>2]|0;return a|0}function Ai(a,b){a=a|0;b=b|0;return 48504}function Bi(a,b){a=a|0;b=b|0;return 48376}function Ci(a,b){a=a|0;b=b|0;return 47472}function Di(a){a=a|0;var b=0,d=0;b=c[(a&p)+4>>2]|0;if(b)do{d=b;b=c[(b&p)>>2]|0;Wc(d)}while((b|0)!=0);b=a+0|0;d=b+40|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));c[(a&p)>>2]=14696;return 0}function Ei(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;l=a+24|0;k=l;if(((c[(k&p)>>2]|0)!=(e|0)?1:(c[(k&p)+4>>2]|0)!=(f|0))|(e|0)==0&(f|0)==0){g=c[(a&p)+4>>2]|0;if(!((g|0)==0|((f|0)<0|(f|0)==0&e>>>0<1020))){h=1020;i=0;do{h=jw(h|0,i|0,1020,0)|0;i=G;g=c[(g&p)>>2]|0}while(!((g|0)==0|((i|0)>(f|0)|(i|0)==(f|0)&h>>>0>e>>>0)))}}else g=c[(a&p)+32>>2]|0;j=rw(e|0,f|0,1020,0)|0;k=d;h=b;while(1){b=1020-j|0;i=(k|0)<(b|0)?k:b;kw(h|0,g+j+4|0,i|0)|0;k=k-b|0;if((k|0)<=-1)break;g=c[(g&p)>>2]|0;if(!((g|0)!=0&(k|0)>0))break;else{j=0;h=h+i|0}}f=jw(d|0,((d|0)<0)<<31>>31|0,e|0,f|0)|0;d=l;c[(d&p)>>2]=f;c[(d&p)+4>>2]=G;c[(a&p)+32>>2]=g;return 0}function Fi(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;a:do if((d|0)>0){i=a+8|0;j=a+16|0;h=a+4|0;e=i;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;while(1){a=c[(j&p)>>2]|0;e=rw(f|0,e|0,1020,0)|0;g=1020-e|0;g=(d|0)<(g|0)?d:g;if(!e){f=Tc(1024)|0;if(!f){e=3082;break a}c[(f&p)>>2]=0;if(!a){c[(h&p)>>2]=f;a=f}else{c[(a&p)>>2]=f;a=f}c[(j&p)>>2]=a}kw(a+e+4|0,b|0,g|0)|0;d=d-g|0;f=i;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,g|0,((g|0)<0)<<31>>31|0)|0;e=G;a=i;c[(a&p)>>2]=f;c[(a&p)+4>>2]=e;if((d|0)<=0){e=0;break}else b=b+g|0}}else e=0;while(0);return e|0}function Gi(a,b,d){a=a|0;b=b|0;d=d|0;b=c[(a&p)+4>>2]|0;if(b)do{d=b;b=c[(b&p)>>2]|0;Wc(d)}while((b|0)!=0);d=a+0|0;b=d+40|0;do{c[(d&p)>>2]=0;d=d+4|0}while((d|0)<(b|0));c[(a&p)>>2]=14696;return 0}function Hi(a,b){a=a|0;b=b|0;return 0}function Ii(a,b){a=a|0;b=b|0;var d=0,e=0;e=a+8|0;d=c[(e&p)+4>>2]|0;a=b;c[(a&p)>>2]=c[(e&p)>>2];c[(a&p)+4>>2]=d;return 0}function Ji(a){a=a|0;var b=0;a=12584|0;b=a+68|0;do{c[(a&p)>>2]=0;a=a+4|0}while((a|0)<(b|0));if(c[2187]|0){c[3146]=8;c[3159]=8}c[3149]=10;c[3153]=1;return 0}function Ki(a){a=a|0;var b=0;a=12584|0;b=a+68|0;do{c[(a&p)>>2]=0;a=a+4|0}while((a|0)<(b|0));return}function Li(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=qg(48,0)|0;if(f){g=f+0|0;h=g+48|0;do{a[(g&n)>>0]=0;g=g+1|0}while((g|0)<(h|0));c[(f&p)>>2]=12584;c[(f&p)+4>>2]=b;c[(f&p)+8>>2]=d;e=(e|0)!=0;c[(f&p)+12>>2]=e&1;eo(f);if(e){c[(f&p)+16>>2]=10;e=c[3148]|0;c[3148]=e+10;c[3149]=(c[3147]|0)+10+(-10-e)}if(!(c[(f&p)+40>>2]|0)){Si(f);f=0}}else f=0;return f|0}function Mi(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(c[(a&p)+12>>2]|0){d=c[(a&p)>>2]|0;e=a+20|0;g=d+4|0;f=(c[(g&p)>>2]|0)+(b-(c[(e&p)>>2]|0))|0;c[(g&p)>>2]=f;c[(d&p)+12>>2]=f+10-(c[(d&p)+8>>2]|0);c[(e&p)>>2]=b;c[(a&p)+24>>2]=((b*9|0)>>>0)/10|0;fo(d)}return}function Ni(a){a=a|0;return c[(a&p)+36>>2]|0}function Oi(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=c[((c[(b&p)+44>>2]|0)+(((d>>>0)%((c[(b&p)+40>>2]|0)>>>0)|0)<<2)&p)>>2]|0;a:do if(f){while(1){if((c[(f&p)+8>>2]|0)==(d|0))break;f=c[(f&p)+16>>2]|0;if(!f){g=6;break a}}if(!(a[(f&n)+12>>0]|0))go(f)}else g=6;while(0);if((g|0)==6)if(!e)f=0;else f=ho(b,d,e)|0;return f|0}function Pi(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=c[(b&p)>>2]|0;if((e|0)==0?(c[(g&p)+16>>2]|0)>>>0<=(c[(g&p)+4>>2]|0)>>>0:0){e=g+20|0;f=c[(e&p)>>2]|0;if(!f)c[(g&p)+24>>2]=d;else{c[(f&p)+28>>2]=d;c[(d&p)+24>>2]=f}c[(e&p)>>2]=d;f=b+32|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;a[(d&n)+12>>0]=0}else{g=c[(d&p)+20>>2]|0;e=(c[(g&p)+44>>2]|0)+((((c[(d&p)+8>>2]|0)>>>0)%((c[(g&p)+40>>2]|0)>>>0)|0)<<2)|0;while(1){b=c[(e&p)>>2]|0;f=b+16|0;if((b|0)==(d|0))break;else e=f}c[(e&p)>>2]=c[(f&p)>>2];f=g+36|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+-1;io(d)}return}function Qi(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=c[(a&p)+40>>2]|0;h=a+44|0;d=(c[(h&p)>>2]|0)+(((d>>>0)%(g>>>0)|0)<<2)|0;while(1){f=c[(d&p)>>2]|0;if((f|0)==(b|0))break;else d=f+16|0}f=b+16|0;c[(d&p)>>2]=c[(f&p)>>2];c[(b&p)+8>>2]=e;d=(c[(h&p)>>2]|0)+(((e>>>0)%(g>>>0)|0)<<2)|0;c[(f&p)>>2]=c[(d&p)>>2];c[(d&p)>>2]=b;d=a+28|0;if((c[(d&p)>>2]|0)>>>0<e>>>0)c[(d&p)>>2]=e;return}function Ri(a,b){a=a|0;b=b|0;var d=0;d=a+28|0;if((c[(d&p)>>2]|0)>>>0>=b>>>0){jo(a,b);c[(d&p)>>2]=b+-1}return}function Si(a){a=a|0;var b=0,d=0,e=0,f=0;b=c[(a&p)>>2]|0;jo(a,0);f=b+4|0;e=(c[(f&p)>>2]|0)-(c[(a&p)+20>>2]|0)|0;c[(f&p)>>2]=e;f=b+8|0;d=(c[(f&p)>>2]|0)-(c[(a&p)+16>>2]|0)|0;c[(f&p)>>2]=d;c[(b&p)+12>>2]=e+10-d;fo(b);Wc(c[(a&p)+44>>2]|0);Wc(a);return}function Ti(a){a=a|0;var b=0,d=0;if(c[(a&p)+12>>2]|0){d=c[(a&p)>>2]|0;a=d+4|0;b=c[(a&p)>>2]|0;c[(a&p)>>2]=0;fo(d);c[(a&p)>>2]=b}return}function Ui(a){a=a|0;var b=0,d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;b=a+7&-8;a=Wv(b+8|0)|0;if(!a){c[(d&p)>>2]=b;bd(7,16568,d)}else{d=a;c[(d&p)>>2]=b;c[(d&p)+4>>2]=((b|0)<0)<<31>>31;a=a+8|0}i=e;return a|0}function Vi(a){a=a|0;Xv(a+-8|0);return}function Wi(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;e=a+-8|0;d=Yv(e,b+8|0)|0;if(!d){if(!a)e=0;else e=c[(e&p)>>2]|0;c[(f&p)>>2]=e;c[(f&p)+4>>2]=b;bd(7,16528,f)}else{e=d;c[(e&p)>>2]=b;c[(e&p)+4>>2]=((b|0)<0)<<31>>31;d=d+8|0}i=g;return d|0}function Xi(a){a=a|0;if(!a)a=0;else a=c[(a+-8&p)>>2]|0;return a|0}function Yi(a){a=a|0;return a+7&-8|0}function Zi(a){a=a|0;return 0}function _i(a){a=a|0;return}function $i(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;i=c[(g&p)>>2]|0;do if((-1431655766>>>(e[(i&o)+8>>1]&31)&1|0)==0?(h=Sg(i,1)|0,(h|0)!=0):0){i=Tg(c[(g&p)>>2]|0,1)|0;if((f|0)!=1){r=Sg(c[(g&p)+4>>2]|0,1)|0;if(!r)break;f=a[(r&n)>>0]|0;if(f<<24>>24){g=0;j=r;while(1){l=j+1|0;if((f&255)>191){k=j;j=l;while(1){f=a[(j&n)>>0]|0;if((f&-64)<<24>>24==-128){q=j;j=k+2|0;k=q}else break}}else{f=a[(l&n)>>0]|0;j=l}k=g+1|0;if(!(f<<24>>24)){f=k;break}else g=k}if((g|0)>-1){m=sw(f|0,((f|0)<0)<<31>>31|0,5,0)|0;m=ko(b,m,G)|0;if(!m)break;f=m+(f<<2)|0;if(a[(r&n)>>0]|0){j=r;g=0;while(1){c[(m+(g<<2)&p)>>2]=j;l=j+1|0;if((d[(j&n)>>0]|0)>191){k=j;while(1)if((a[(l&n)>>0]&-64)<<24>>24==-128){q=l;l=k+2|0;k=q}else break}a[(f+g&n)>>0]=l-j;k=g+1|0;if(!(a[(l&n)>>0]|0))break;else{j=l;g=k}}if((g|0)>-1){q=k;s=17}}}}}else{f=20360;m=20368;q=1;r=0;s=17}if((s|0)==17){g=c[((c[(b&p)+4>>2]|0)&p)+4>>2]|0;a:do if((g&1|0)!=0&(i|0)>0){j=(q|0)>0;do{if(j)k=0;else{s=24;break a}while(1){l=d[(f+k&n)>>0]|0;if((i|0)>=(l|0)?(Zv(h,c[(m+(k<<2)&p)>>2]|0,l)|0)==0:0)break;k=k+1|0;if((k|0)>=(q|0)){s=24;break a}}h=h+l|0;i=i-l|0}while((i|0)>0)}else s=24;while(0);b:do if((s|0)==24)if((g&2|0)!=0&(i|0)>0){l=(q|0)>0;do{if(l)j=0;else break b;while(1){k=d[(f+j&n)>>0]|0;if((i|0)>=(k|0)?(t=i-k|0,(Zv(h+t|0,c[(m+(j<<2)&p)>>2]|0,k)|0)==0):0){i=t;break}j=j+1|0;if((j|0)>=(q|0))break b}}while((i|0)>0)}while(0);if(r)Wc(m)}Wg(b,h,i,1,-1)}while(0);return}function aj(a,b,d){a=a|0;b=b|0;d=d|0;var f=0,g=0,h=0,i=0,j=0;j=((c[((c[(a&p)+4>>2]|0)&p)+4>>2]|0)!=0)<<31>>31;i=c[((c[((c[(a&p)+12>>2]|0)&p)+4>>2]|0)+(((c[(a&p)+16>>2]|0)+-1|0)*20|0)&p)+16>>2]|0;f=c[(d&p)>>2]|0;a:do if(!(-1431655766>>>((e[(f&o)+8>>1]|0)&31)&1)){if((b|0)>1){h=1;f=0;do{g=c[(d+(h<<2)&p)>>2]|0;if(-1431655766>>>((e[(g&o)+8>>1]|0)&31)&1)break a;g=((hm(c[(d+(f<<2)&p)>>2]|0,g,i)|0)^j|0)>-1;f=g?h:f;h=h+1|0}while((h|0)<(b|0));f=c[(d+(f<<2)&p)>>2]|0}_g(c[(a&p)>>2]|0,f)|0}while(0);return}function bj(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0;i=c[(g&p)>>2]|0;f=c[(d&p)+8>>2]|0;if(!(b[(f&o)+8>>1]&8192))f=lh(d,40)|0;else f=c[(f&p)+16>>2]|0;do if(f){h=(b[(f&o)+8>>1]|0)!=0;if(-1431655766>>>(e[((c[(g&p)>>2]|0)&o)+8>>1]&31)&1){if(!h)break;a[(d&n)+24>>0]=1;break}if(!h){c[(f&p)+32>>2]=c[((c[(d&p)>>2]|0)&p)+32>>2];_g(f,i)|0;break}h=(c[((c[(d&p)+4>>2]|0)&p)+4>>2]|0)!=0;g=hm(f,i,c[((c[((c[(d&p)+12>>2]|0)&p)+4>>2]|0)+(((c[(d&p)+16>>2]|0)+-1|0)*20|0)&p)+16>>2]|0)|0;if(!(h&(g|0)<0)?!((g|0)>0&(h^1)):0){a[(d&n)+24>>0]=1;break}_g(f,i)|0}while(0);return}function cj(a){a=a|0;var d=0,e=0,f=0;d=c[(a&p)+8>>2]|0;if(!(b[(d&o)+8>>1]&8192))d=lh(a,0)|0;else d=c[(d&p)+16>>2]|0;do if(d){e=d+8|0;if(!((b[(e&o)>>1]|0)!=0?(_g(c[(a&p)>>2]|0,d)|0,(b[(e&o)>>1]&9312)!=0):0))f=7;if((f|0)==7?(c[(d&p)+24>>2]|0)==0:0)break;Qg(d)}while(0);return}function dj(a,b,f){a=a|0;b=b|0;f=f|0;b=d[((e[((c[(f&p)>>2]|0)&o)+8>>1]|0)&31&n)+10064>>0]|0;if((b|0)==3)b=20328;else if((b|0)==4)b=20344;else if((b|0)==2)b=20336;else if((b|0)==1)b=20320;else b=20352;Wg(a,b,-1,1,0);return}function ej(f,g,h){f=f|0;g=g|0;h=h|0;var i=0,j=0,k=0;g=c[(h&p)>>2]|0;h=d[((e[(g&o)+8>>1]|0)&31&n)+10064>>0]|0;do if((h|0)==3){i=Sg(g,1)|0;if(i){g=a[(i&n)>>0]|0;if(!(g<<24>>24)){j=0;i=0}else{h=g;g=0;do{g=g+1|0;k=i+1|0;if((h&255)>191){j=i;i=k;while(1){h=a[(i&n)>>0]|0;if((h&-64)<<24>>24==-128){h=i;i=j+2|0;j=h}else break}}else{h=a[(k&n)>>0]|0;i=k}}while(h<<24>>24!=0);j=g;i=((g|0)<0)<<31>>31}g=c[(f&p)>>2]|0;h=g+8|0;if(!(b[(h&o)>>1]&9312)){c[(g&p)>>2]=j;c[(g&p)+4>>2]=i;b[(h&o)>>1]=4;break}else{Zg(g,j,i);break}}}else if((h|0)==2|(h|0)==1|(h|0)==4){j=Tg(g,1)|0;i=c[(f&p)>>2]|0;g=((j|0)<0)<<31>>31;h=i+8|0;if(!(b[(h&o)>>1]&9312)){c[(i&p)>>2]=j;c[(i&p)+4>>2]=g;b[(h&o)>>1]=4;break}else{Zg(i,j,g);break}}else{h=c[(f&p)>>2]|0;g=h+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;break}else{vg(h);break}}while(0);return}function fj(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;g=c[(f&p)>>2]|0;h=b[(g&o)+8>>1]|0;i=f+4|0;e=b[((c[(i&p)>>2]|0)&o)+8>>1]|0;do if(!((-1431655766>>>(e&31)|-1431655766>>>(h&31))&1)){j=Tg(g,1)|0;l=Tg(c[(i&p)>>2]|0,1)|0;f=c[(f&p)>>2]|0;if(!((e|h)&15)){e=pd(f)|0;f=0;k=pd(c[(i&p)>>2]|0)|0}else{e=Sg(f,1)|0;f=1;k=Sg(c[(i&p)>>2]|0,1)|0}a:do if((l|0)>(j|0)){e=1;g=1}else{g=1;h=j;while(1){if(!(Zv(e,k,l)|0)){e=0;break a}g=g+1|0;i=(f|0)==0;do{h=h+-1|0;e=e+1|0;if(i){f=0;break}}while((a[(e&n)>>0]&-64)<<24>>24==-128);if((l|0)>(h|0)){e=1;break}}}while(0);h=c[(d&p)>>2]|0;f=e?0:g;e=e?0:((g|0)<0)<<31>>31;g=h+8|0;if(!(b[(g&o)>>1]&9312)){c[(h&p)>>2]=f;c[(h&p)+4>>2]=e;b[(g&o)>>1]=4;break}else{Zg(h,f,e);break}}while(0);return}function gj(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;h=c[(g&p)+4>>2]|0;do if(!(-1431655766>>>((e[(h&o)+8>>1]|0)&31)&1)){r=(f|0)==3;if(r?(-1431655766>>>((e[((c[(g&p)+8>>2]|0)&o)+8>>1]|0)&31)&1|0)!=0:0)break;t=b[((c[(g&p)>>2]|0)&o)+8>>1]|0;k=Vg(h)|0;l=((k|0)<0)<<31>>31;t=(t&15)==0;i=c[(g&p)>>2]|0;if(t){i=Tg(i,1)|0;j=pd(c[(g&p)>>2]|0)|0;if(!j)break;else s=i}else{j=Sg(i,1)|0;if(!j)break;if((k|0)<0?(m=a[(j&n)>>0]|0,m<<24>>24!=0):0){i=0;h=j;do{q=h+1|0;if((m&255)>191){f=h;h=q;while(1){m=a[(h&n)>>0]|0;if((m&-64)<<24>>24==-128){s=h;h=f+2|0;f=s}else break}}else{m=a[(q&n)>>0]|0;h=q}i=i+1|0}while(m<<24>>24!=0);s=i}else s=0}if(r){q=Vg(c[(g&p)+8>>2]|0)|0;f=((q|0)<0)<<31>>31;r=(q|0)<0;h=dw(0,0,q|0,f|0)|0;h=r?h:q;f=r?G:f;q=q>>>31}else{f=c[((c[((c[(d&p)>>2]|0)&p)+32>>2]|0)&p)+88>>2]|0;h=f;f=((f|0)<0)<<31>>31;q=0}do if((k|0)<0){k=jw(s|0,((s|0)<0)<<31>>31|0,k|0,l|0)|0;l=G;if((l|0)<0){h=jw(h|0,f|0,k|0,l|0)|0;f=G;r=(f|0)<0;k=0;l=0;h=r?0:h;f=r?0:f}}else if((k|0)>0){k=jw(k|0,l|0,-1,-1)|0;l=G;break}else{r=((f|0)>0|(f|0)==0&h>>>0>0)<<31>>31;h=jw(r|0,((r|0)<0)<<31>>31|0,h|0,f|0)|0;f=G;break}while(0);if(!q){m=k;q=l}else{m=dw(k|0,l|0,h|0,f|0)|0;q=G;r=(q|0)<0;m=r?0:m;q=r?0:q;h=r?k:h;f=r?l:f}if(t){r=jw(h|0,f|0,m|0,q|0)|0;l=G;i=((s|0)<0)<<31>>31;if((l|0)>(i|0)|(l|0)==(i|0)&r>>>0>s>>>0){h=dw(s|0,i|0,m|0,q|0)|0;f=G;s=(f|0)<0;h=s?0:h;f=s?0:f}Bd(d,j+m|0,h,f,-1);break}i=a[(j&n)>>0]|0;if(((m|0)!=0|(q|0)!=0)&i<<24>>24!=0)do{l=j+1|0;if((i&255)>191){k=j;j=l;while(1){i=a[(j&n)>>0]|0;if((i&-64)<<24>>24==-128){s=j;j=k+2|0;k=s}else break}}else{i=a[(l&n)>>0]|0;j=l}m=jw(m|0,q|0,-1,-1)|0;q=G}while(((m|0)!=0|(q|0)!=0)&i<<24>>24!=0);if(i<<24>>24!=0&((h|0)!=0|(f|0)!=0)){m=f;f=j;do{k=f+1|0;if((i&255)>191)while(1){i=a[(k&n)>>0]|0;if((i&-64)<<24>>24==-128){s=k;k=f+2|0;f=s}else{f=k;break}}else{i=a[(k&n)>>0]|0;f=k}h=jw(h|0,m|0,-1,-1)|0;m=G}while(i<<24>>24!=0&((h|0)!=0|(m|0)!=0))}else f=j;s=f-j|0;Jd(d,j,s,((s|0)<0)<<31>>31,-1,1)}while(0);return}function hj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+48|0;if((i|0)>=(j|0))fa();h=l;k=l+32|0;g=l+4|0;if((d|0)>0?(f=Sg(c[(e&p)>>2]|0,1)|0,(f|0)!=0):0){c[(k&p)>>2]=d+-1;c[(k&p)+4>>2]=0;c[(k&p)+8>>2]=e+4;c[(g&p)>>2]=0;c[(g&p)+4>>2]=0;c[(g&p)+8>>2]=0;c[(g&p)+12>>2]=0;c[(g&p)+16>>2]=0;c[(g&p)+20>>2]=1e9;a[(g&n)+24>>0]=1;a[(g&n)+25>>0]=0;c[(g&p)>>2]=c[((c[(b&p)>>2]|0)&p)+32>>2];c[(h&p)>>2]=k;En(g,2,f,h);f=c[(g&p)+12>>2]|0;Wg(b,tg(g)|0,f,1,75)}i=l;return}function ij(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();e=h;f=Sg(c[(f&p)>>2]|0,1)|0;c[(e&p)>>2]=f;do if((f|0)!=0?(a[(f&n)>>0]|0)!=0:0){g=Mn(e)|0;e=c[(d&p)>>2]|0;d=((g|0)<0)<<31>>31;f=e+8|0;if(!(b[(f&o)>>1]&9312)){c[(e&p)>>2]=g;c[(e&p)+4>>2]=d;b[(f&o)>>1]=4;break}else{Zg(e,g,d);break}}while(0);i=h;return}function jj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;i=Tc(d<<2|1)|0;if(!i)Rd(b);else{if((d|0)>0){h=0;f=i;do{g=Vg(c[(e+(h<<2)&p)>>2]|0)|0;j=G;g=j>>>0>0|(j|0)==0&g>>>0>1114111?65533:g&2097151;do if(g>>>0>=128){if(g>>>0<2048){a[(f&n)>>0]=g>>>6&31|192;a[(f&n)+1>>0]=g&63|128;f=f+2|0;break}if(g>>>0<65536){a[(f&n)>>0]=g>>>12&15|224;a[(f&n)+1>>0]=g>>>6&63|128;a[(f&n)+2>>0]=g&63|128;f=f+3|0;break}else{a[(f&n)>>0]=g>>>18|240;a[(f&n)+1>>0]=g>>>12&63|128;a[(f&n)+2>>0]=g>>>6&63|128;a[(f&n)+3>>0]=g&63|128;f=f+4|0;break}}else{a[(f&n)>>0]=g;f=f+1|0}while(0);h=h+1|0}while((h|0)!=(d|0))}else f=i;f=f-i|0;Jd(b,i,f,((f|0)<0)<<31>>31,1,1)}return}function kj(f,g,h){f=f|0;g=g|0;h=h|0;var i=0.0,j=0,k=0;g=c[(h&p)>>2]|0;h=d[((e[(g&o)+8>>1]|0)&31&n)+10064>>0]|0;a:do if((h|0)==1){g=Vg(g)|0;j=G;do if((j|0)<0)if((g|0)==0&(j|0)==-2147483648){c[(f&p)+20>>2]=1;a[(f&n)+25>>0]=1;Xg(c[(f&p)>>2]|0,20248,-1,1,-1)|0;break a}else{g=dw(0,0,g|0,j|0)|0;k=G;break}else k=j;while(0);h=c[(f&p)>>2]|0;j=h+8|0;if(!(b[(j&o)>>1]&9312)){c[(h&p)>>2]=g;c[(h&p)+4>>2]=k;b[(j&o)>>1]=4;break}else{Zg(h,g,k);break}}else if((h|0)==5){h=c[(f&p)>>2]|0;g=h+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;break}else{vg(h);break}}else{i=+Ug(g);if(i<0.0)i=-i;Yg(c[(f&p)>>2]|0,i)}while(0);return}function lj(b,d,f){b=b|0;d=d|0;f=f|0;var g=0.0,l=0,m=0,r=0,s=0,t=0,u=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();s=u+8|0;t=u;if((d|0)==2){d=c[(f&p)+4>>2]|0;if(!(-1431655766>>>(e[(d&o)+8>>1]&31)&1)){r=Vg(d)|0;r=(r|0)>30?30:r;r=(r|0)<0?0:r;m=4}}else{r=0;m=4}a:do if((m|0)==4?(l=c[(f&p)>>2]|0,(-1431655766>>>(e[(l&o)+8>>1]&31)&1|0)==0):0){g=+Ug(l);h[(t&q)>>3]=g;d=(r|0)==0;do if(d&g>=0.0&g<9223372036854775808.0){g=g+.5;g=+(~~g>>>0>>>0)+4294967296.0*+((+R(g)>=1.0?(g>0.0?~~+da(+Q(g/4294967296.0),4294967295.0)>>>0:~~+ba((g-+(~~g>>>0))/4294967296.0)>>>0):0)|0);h[(t&q)>>3]=g}else{if(d&g<0.0&g>-9223372036854775808.0){g=.5-g;g=-(+(~~g>>>0>>>0)+4294967296.0*+((+R(g)>=1.0?(g>0.0?~~+da(+Q(g/4294967296.0),4294967295.0)>>>0:~~+ba((g-+(~~g>>>0))/4294967296.0)>>>0):0)|0));h[(t&q)>>3]=g;break}c[(s&p)>>2]=r;d=s+4|0;h[(k&q)>>3]=g;c[(d&p)>>2]=c[(k&p)>>2];c[(d&p)+4>>2]=c[(k&p)+4>>2];d=_c(20312,s)|0;if(!d){Rd(b);break a}else l=d;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;Tl(d,t,l-d&1073741823,1)|0;Wc(d);g=+h[(t&q)>>3]}while(0);Yg(c[(b&p)>>2]|0,g)}while(0);i=u;return}function mj(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Sg(c[(f&p)>>2]|0,1)|0;e=Tg(c[(f&p)>>2]|0,1)|0;if((g|0)!=0?(h=jw(e|0,((e|0)<0)<<31>>31|0,1,0)|0,h=ko(b,h,G)|0,(h|0)!=0):0){if((e|0)>0){f=0;do{i=d[(g+f&n)>>0]|0;a[(h+f&n)>>0]=((d[(i&n)+10368>>0]|0|223)^32)&i;f=f+1|0}while((f|0)!=(e|0))}Wg(b,h,e,1,1)}return}function nj(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0;g=Sg(c[(f&p)>>2]|0,1)|0;e=Tg(c[(f&p)>>2]|0,1)|0;if((g|0)!=0?(h=jw(e|0,((e|0)<0)<<31>>31|0,1,0)|0,h=ko(b,h,G)|0,(h|0)!=0):0){if((e|0)>0){f=0;do{a[(h+f&n)>>0]=a[((d[(g+f&n)>>0]|0)&n)+9328>>0]|0;f=f+1|0}while((f|0)!=(e|0))}Wg(b,h,e,1,1)}return}function oj(a,b,c){a=a|0;b=b|0;c=c|0;Wg(a,8632,-1,1,0);return}function pj(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;e=pd(c[(f&p)>>2]|0)|0;i=Tg(c[(f&p)>>2]|0,1)|0;j=iw(i|0,((i|0)<0)<<31>>31|0,1)|0;j=ko(b,j|1,G)|0;if(j){if((i|0)>0){g=i<<1;h=0;f=j;while(1){k=d[(e&n)>>0]|0;a[(f&n)>>0]=a[(k>>>4&n)+20288>>0]|0;a[(f&n)+1>>0]=a[(k&15&n)+20288>>0]|0;h=h+1|0;if((h|0)==(i|0))break;else{e=e+1|0;f=f+2|0}}f=j+g|0}else f=j;a[(f&n)>>0]=0;Wg(b,j,i<<1,1,1)}return}function qj(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();d=h;cd(8,d);f=d;e=c[(f&p)>>2]|0;f=c[(f&p)+4>>2]|0;if((f|0)<0){g=dw(0,0,e|0,f&2147483647|0)|0;f=G;c[(d&p)>>2]=g;c[(d&p)+4>>2]=f}else g=e;e=c[(a&p)>>2]|0;d=e+8|0;if(!(b[(d&o)>>1]&9312)){c[(e&p)>>2]=g;c[(e&p)+4>>2]=f;b[(d&o)>>1]=4}else Zg(e,g,f);i=h;return}function rj(a,b,d){a=a|0;b=b|0;d=d|0;d=Vg(c[(d&p)>>2]|0)|0;d=(d|0)<1?1:d;b=ko(a,d,((d|0)<0)<<31>>31)|0;if(b){cd(d,b);Wg(a,b,d,0,1)}return}function sj(a,b,d){a=a|0;b=b|0;d=d|0;if(hm(c[(d&p)>>2]|0,c[(d&p)+4>>2]|0,c[((c[((c[(a&p)+12>>2]|0)&p)+4>>2]|0)+(((c[(a&p)+16>>2]|0)+-1|0)*20|0)&p)+16>>2]|0)|0)_g(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0;return}function tj(a,b,c){a=a|0;b=b|0;c=c|0;Wg(a,10768,-1,1,0);return}function uj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;b=i;i=i+16|0;if((i|0)>=(j|0))fa();a=b;e=Vg(c[(d&p)>>2]|0)|0;c[(a&p)>>2]=Sg(c[(d&p)+4>>2]|0,1)|0;bd(e,10344,a);i=b;return}function vj(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;d=Sg(c[(e&p)>>2]|0,1)|0;do if(d){f=Ec(d)|0;e=c[(a&p)>>2]|0;d=((f|0)<0)<<31>>31;a=e+8|0;if(!(b[(a&o)>>1]&9312)){c[(e&p)>>2]=f;c[(e&p)+4>>2]=d;b[(a&o)>>1]=4;break}else{Zg(e,f,d);break}}while(0);return}function wj(a,b,d){a=a|0;b=b|0;d=d|0;b=Vg(c[(d&p)>>2]|0)|0;if(b>>>0<4)b=c[(b<<2&p)+8648>>2]|0;else b=0;Wg(a,b,-1,1,0);return}function xj(b,f,g){b=b|0;f=f|0;g=g|0;var l=0,m=0.0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+80|0;if((i|0)>=(j|0))fa();f=w+8|0;l=w;t=w+16|0;s=c[(g&p)>>2]|0;r=d[(e[(s&o)+8>>1]&31&n)+10064>>0]|0;if((r|0)==4){s=pd(s)|0;f=Tg(c[(g&p)>>2]|0,1)|0;l=iw(f|0,((f|0)<0)<<31>>31|0,1)|0;l=jw(l|0,G|0,4,0)|0;l=ko(b,l,G)|0;if(l){if((f|0)>0){r=0;do{g=s+r|0;t=r<<1;a[(l+t&n)+2>>0]=a[((d[(g&n)>>0]|0)>>>4&n)+20288>>0]|0;a[(l+t&n)+3>>0]=a[(d[(g&n)>>0]&15&n)+20288>>0]|0;r=r+1|0}while((r|0)!=(f|0))}f=f<<1;a[(l+f&n)+2>>0]=39;a[(l+f&n)+3>>0]=0;a[(l&n)>>0]=88;a[(l&n)+1>>0]=39;Wg(b,l,-1,1,-1);Wc(l)}}else if((r|0)==1)_g(c[(b&p)>>2]|0,s)|0;else if((r|0)==2){m=+Ug(s);h[(k&q)>>3]=m;c[(f&p)>>2]=c[(k&p)>>2];c[(f&p)+4>>2]=c[(k&p)+4>>2];ad(50,t,20272,f)|0;Tl(t,l,20,1)|0;if(m!=+h[(l&q)>>3]){h[(k&q)>>3]=m;c[(f&p)>>2]=c[(k&p)>>2];c[(f&p)+4>>2]=c[(k&p)+4>>2];ad(50,t,20280,f)|0}Wg(b,t,-1,1,-1)}else if((r|0)==3){v=Sg(s,1)|0;if(v){f=0;l=0;r=0;while(1){s=a[(v+r&n)>>0]|0;if(s<<24>>24==39){s=jw(f|0,l|0,1,0)|0;l=G}else if(!(s<<24>>24)){s=l;break}else s=f;f=s;r=r+1|0}u=jw(f|0,s|0,3,0)|0;u=jw(u|0,G|0,r|0,((r|0)<0)<<31>>31|0)|0;u=ko(b,u,G)|0;if(u){a[(u&n)>>0]=39;l=a[(v&n)>>0]|0;f=u+1|0;if(!(l<<24>>24))r=2;else{t=v;r=2;s=0;g=1;do{a[(f&n)>>0]=l;if((a[(t&n)>>0]|0)==39){a[(u+r&n)>>0]=39;g=g+2|0}else g=r;s=s+1|0;t=v+s|0;l=a[(t&n)>>0]|0;r=g+1|0;f=u+g|0}while(l<<24>>24!=0)}a[(f&n)>>0]=39;a[(u+r&n)>>0]=0;Wg(b,u,r,1,1)}}}else Wg(b,20304,4,1,0);i=w;return}function yj(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;a=c[(a&p)>>2]|0;f=(c[(a&p)+32>>2]|0)+32|0;d=c[(f&p)>>2]|0;f=c[(f&p)+4>>2]|0;e=a+8|0;if(!(b[(e&o)>>1]&9312)){c[(a&p)>>2]=d;c[(a&p)+4>>2]=f;b[(e&o)>>1]=4}else Zg(a,d,f);return}function zj(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;a=c[(a&p)>>2]|0;e=c[((c[(a&p)+32>>2]|0)&p)+80>>2]|0;d=((e|0)<0)<<31>>31;f=a+8|0;if(!(b[(f&o)>>1]&9312)){c[(a&p)>>2]=e;c[(a&p)+4>>2]=d;b[(f&o)>>1]=4}else Zg(a,e,d);return}function Aj(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;a=c[(a&p)>>2]|0;e=c[((c[(a&p)+32>>2]|0)&p)+84>>2]|0;d=((e|0)<0)<<31>>31;f=a+8|0;if(!(b[(f&o)>>1]&9312)){c[(a&p)>>2]=e;c[(a&p)+4>>2]=d;b[(f&o)>>1]=4}else Zg(a,e,d);return}function Bj(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,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;v=Sg(c[(e&p)>>2]|0,1)|0;a:do if((v|0)!=0?(w=Tg(c[(e&p)>>2]|0,1)|0,g=e+4|0,u=Sg(c[(g&p)>>2]|0,1)|0,(u|0)!=0):0){if(!(a[(u&n)>>0]|0)){_g(c[(b&p)>>2]|0,c[(e&p)>>2]|0)|0;break}s=Tg(c[(g&p)>>2]|0,1)|0;g=e+8|0;r=Sg(c[(g&p)>>2]|0,1)|0;if((r|0)!=0?(t=Tg(c[(g&p)>>2]|0,1)|0,h=w+1|0,i=((h|0)<0)<<31>>31,f=ko(b,h,i)|0,(f|0)!=0):0){l=w-s|0;b:do if((l|0)>=0){m=t-s|0;o=((m|0)<0)<<31>>31;q=s+-1|0;e=0;k=0;while(1){g=v+e|0;d=a[(g&n)>>0]|0;if(d<<24>>24==(a[(u&n)>>0]|0)?(Zv(g,u,s)|0)==0:0){d=c[(b&p)>>2]|0;j=c[(d&p)+32>>2]|0;h=jw(h|0,i|0,m|0,o|0)|0;i=G;g=jw(h|0,i|0,-1,-1)|0;y=G;j=c[(j&p)+88>>2]|0;x=((j|0)<0)<<31>>31;if((y|0)>(x|0)|(y|0)==(x|0)&g>>>0>j>>>0){g=13;break}j=Xc(f,h)|0;if(!j){g=15;break}kw(j+k|0,r|0,t|0)|0;g=q+e|0;d=k+t|0;f=j}else{a[(f+k&n)>>0]=d;g=e;d=k+1|0}e=g+1|0;if((g|0)<(l|0))k=d;else break b}if((g|0)==13){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(d,10096,-1,1,0)|0;Wc(f);break a}else if((g|0)==15){Rd(b);Wc(f);break a}}else{e=0;d=0}while(0);m=w-e|0;kw(f+d|0,v+e|0,m|0)|0;m=d+m|0;a[(f+m&n)>>0]=0;Wg(b,f,m,1,1)}}while(0);return}function Cj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=c[((c[(b&p)>>2]|0)&p)+32>>2]|0;d=Vg(c[(e&p)>>2]|0)|0;g=G;e=c[(f&p)+88>>2]|0;f=((e|0)<0)<<31>>31;if((g|0)>(f|0)|(g|0)==(f|0)&d>>>0>e>>>0){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}else $g(c[(b&p)>>2]|0,d);return}function Dj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;f=Sg(c[(e&p)>>2]|0,1)|0;g=c[((c[(b&p)>>2]|0)&p)+32>>2]|0;c[(h&p)>>2]=0;if((d|0)==2)d=Sg(c[(e&p)+4>>2]|0,1)|0;else d=0;if((f|0)!=0?(Te(g,f,d,h)|0)!=0:0){d=c[(h&p)>>2]|0;c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,d,-1,1,-1)|0;Wc(c[(h&p)>>2]|0)}i=k;return}function Ej(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,i=0,j=0,k=0,l=0.0,m=0,r=0,s=0;e=c[(d&p)+8>>2]|0;if(!(b[(e&o)+8>>1]&8192))g=lh(d,32)|0;else g=c[(e&p)+16>>2]|0;d=He(c[(f&p)>>2]|0)|0;do if((g|0)!=0&(d|0)!=5){e=g+16|0;i=e;i=jw(c[(i&p)>>2]|0,c[(i&p)+4>>2]|0,1,0)|0;c[(e&p)>>2]=i;c[(e&p)+4>>2]=G;e=c[(f&p)>>2]|0;if((d|0)!=1){l=+Ug(e);h[(g&q)>>3]=l+ +h[(g&q)>>3];a[(g&n)+25>>0]=1;break}i=Vg(e)|0;j=G;h[(g&q)>>3]=+h[(g&q)>>3]+(+(i>>>0)+4294967296.0*+(j|0));k=g+24|0;if(!((a[(k&n)>>0]|a[(g&n)+25>>0])<<24>>24)){g=g+8|0;d=g;f=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if((j|0)>-1|(j|0)==-1&i>>>0>4294967295){e=dw(-1,2147483647,f|0,d|0)|0;m=G;if(((d|0)>0|(d|0)==0&f>>>0>0)&((m|0)<(j|0)|(m|0)==(j|0)&e>>>0<i>>>0))e=12;else e=11}else if((d|0)<0?(m=dw(1,-2147483648,f|0,d|0)|0,s=G,e=jw(i|0,j|0,1,0)|0,r=G,(s|0)>(r|0)|(s|0)==(r|0)&m>>>0>e>>>0):0)e=12;else e=11;if((e|0)==11){d=jw(f|0,d|0,i|0,j|0)|0;e=g;c[(e&p)>>2]=d;c[(e&p)+4>>2]=G;break}else if((e|0)==12){a[(k&n)>>0]=1;break}}}while(0);return}function Fj(d){d=d|0;var e=0,f=0,g=0;e=c[(d&p)+8>>2]|0;if(!(b[(e&o)+8>>1]&8192))e=lh(d,0)|0;else e=c[(e&p)+16>>2]|0;do if((e|0)!=0?(f=e+16|0,g=c[(f&p)+4>>2]|0,(g|0)>0|(g|0)==0&(c[(f&p)>>2]|0)>>>0>0):0){if(a[(e&n)+24>>0]|0){c[(d&p)+20>>2]=1;a[(d&n)+25>>0]=1;Xg(c[(d&p)>>2]|0,20248,-1,1,-1)|0;break}if(a[(e&n)+25>>0]|0){Yg(c[(d&p)>>2]|0,+h[(e&q)>>3]);break}g=e+8|0;f=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;e=c[(d&p)>>2]|0;d=e+8|0;if(!(b[(d&o)>>1]&9312)){c[(e&p)>>2]=f;c[(e&p)+4>>2]=g;b[(d&o)>>1]=4;break}else{Zg(e,f,g);break}}while(0);return}function Gj(a){a=a|0;var d=0,e=0.0;d=c[(a&p)+8>>2]|0;if(!(b[(d&o)+8>>1]&8192))d=lh(a,0)|0;else d=c[(d&p)+16>>2]|0;if(!d)e=0.0;else e=+h[(d&q)>>3];Yg(c[(a&p)>>2]|0,e);return}function Hj(a){a=a|0;var d=0,e=0,f=0;d=c[(a&p)+8>>2]|0;if(!(b[(d&o)+8>>1]&8192))d=lh(a,0)|0;else d=c[(d&p)+16>>2]|0;if((d|0)!=0?(f=d+16|0,e=c[(f&p)>>2]|0,f=c[(f&p)+4>>2]|0,(f|0)>0|(f|0)==0&e>>>0>0):0)Yg(c[(a&p)>>2]|0,+h[(d&q)>>3]/(+(e>>>0)+4294967296.0*+(f|0)));return}function Ij(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0;g=c[(a&p)+8>>2]|0;if(!(b[(g&o)+8>>1]&8192))g=lh(a,8)|0;else g=c[(g&p)+16>>2]|0;if(!d){if(g)h=7}else if((g|0)!=0?(1431655765>>>((e[((c[(f&p)>>2]|0)&o)+8>>1]|0)&31)&1|0)!=0:0)h=7;if((h|0)==7){a=g;a=jw(c[(a&p)>>2]|0,c[(a&p)+4>>2]|0,1,0)|0;c[(g&p)>>2]=a;c[(g&p)+4>>2]=G}return}function Jj(a){a=a|0;var d=0,e=0,f=0;d=c[(a&p)+8>>2]|0;if(!(b[(d&o)+8>>1]&8192))d=lh(a,0)|0;else d=c[(d&p)+16>>2]|0;if(!d){e=0;f=0}else{f=d;e=c[(f&p)>>2]|0;f=c[(f&p)+4>>2]|0}d=c[(a&p)>>2]|0;a=d+8|0;if(!(b[(a&o)>>1]&9312)){c[(d&p)>>2]=e;c[(d&p)+4>>2]=f;b[(a&o)>>1]=4}else Zg(d,e,f);return}function Kj(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0;if(!(-1431655766>>>(e[((c[(g&p)>>2]|0)&o)+8>>1]&31)&1)){h=c[(d&p)+8>>2]|0;if(!(b[(h&o)+8>>1]&8192))i=lh(d,28)|0;else i=c[(h&p)+16>>2]|0;if(i){d=c[((c[(d&p)>>2]|0)&p)+32>>2]|0;j=i+24|0;h=(a[(j&n)>>0]|0)==0;a[(j&n)>>0]=2;c[(i&p)+20>>2]=c[(d&p)+88>>2];do if(!h){if((f|0)==2){f=g+4|0;h=Sg(c[(f&p)>>2]|0,1)|0;f=Tg(c[(f&p)>>2]|0,1)|0;if(!f)break}else{f=1;h=20240}Sk(i,h,f)}while(0);h=Sg(c[(g&p)>>2]|0,1)|0;f=Tg(c[(g&p)>>2]|0,1)|0;if(h)Sk(i,h,f)}}return}function Lj(d){d=d|0;var e=0,f=0;e=c[(d&p)+8>>2]|0;if(!(b[(e&o)+8>>1]&8192))e=lh(d,0)|0;else e=c[(e&p)+16>>2]|0;do if(e){f=a[(e&n)+25>>0]|0;if(f<<24>>24==1){Rd(d);break}else if(f<<24>>24==2){c[(d&p)+20>>2]=18;a[(d&n)+25>>0]=1;Xg(c[(d&p)>>2]|0,10096,-1,1,0)|0;break}else{Wg(d,tg(e)|0,-1,1,1);break}}while(0);return}function Mj(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l;m=c[((c[(d&p)>>2]|0)&p)+32>>2]|0;g=Sg(c[(f&p)>>2]|0,1)|0;k=Sg(c[(f&p)+4>>2]|0,1)|0;q=Tg(c[(f&p)>>2]|0,1)|0;a:do if((q|0)<=(c[(m&p)+120>>2]|0)){do if((e|0)==3){f=Sg(c[(f&p)+8>>2]|0,1)|0;c[(h&p)>>2]=f;if(!f)break a;if((Nn(f,-1)|0)==1){f=Mn(h)|0;break}else{c[(d&p)+20>>2]=1;a[(d&n)+25>>0]=1;Xg(c[(d&p)>>2]|0,20192,-1,1,-1)|0;break a}}else f=0;while(0);if((k|0)!=0&(g|0)!=0){e=Gh(g,k,c[((c[(d&p)+4>>2]|0)&p)+4>>2]|0,f)|0;g=c[(d&p)>>2]|0;h=((e|0)<0)<<31>>31;f=g+8|0;if(!(b[(f&o)>>1]&9312)){c[(g&p)>>2]=e;c[(g&p)+4>>2]=h;b[(f&o)>>1]=4;break}else{Zg(g,e,h);break}}}else{c[(d&p)+20>>2]=1;a[(d&n)+25>>0]=1;Xg(c[(d&p)>>2]|0,20152,-1,1,-1)|0}while(0);i=l;return}function Nj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();q=r;k=r+16|0;o=Sg(c[(e&p)>>2]|0,1)|0;l=Sg(c[(e&p)+4>>2]|0,1)|0;m=c[((c[(b&p)>>2]|0)&p)+32>>2]|0;a:do if((o|0)!=0?(a[(o&n)>>0]|0)!=0:0){d=0;e=o;b:while(1){g=d;f=e;while(1){f=f+g|0;h=Cn(f,k)|0;g=c[(k&p)>>2]|0;if((g|0)==22|(g|0)==125)break b;else if((g|0)==151)g=h;else{e=f;d=h;break}}if(!(a[(e&n)>>0]|0))break a}c[(q&p)>>2]=e-o;c[(q&p)+4>>2]=o;c[(q&p)+8>>2]=l;c[(q&p)+12>>2]=e+d;Wg(b,uh(m,19464,q)|0,-1,1,75)}while(0);i=r;return}function Oj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0;t=i;i=i+32|0;if((i|0)>=(j|0))fa();s=t;m=t+16|0;r=Sg(c[(e&p)>>2]|0,1)|0;o=Sg(c[(e&p)+4>>2]|0,1)|0;q=c[((c[(b&p)>>2]|0)&p)+32>>2]|0;a:do if((r|0)!=0?(a[(r&n)>>0]|0)!=0:0){l=3;d=0;e=r;while(1){g=d;f=e;do{f=f+g|0;g=Cn(f,m)|0;h=c[(m&p)>>2]|0}while((h|0)==151);k=g;g=(h|0)==122|(h|0)==107?0:l+1|0;if((g|0)==2)if((h|0)==5|(h|0)==46|(h|0)==137)break;else e=2;else e=g;if(!(a[(f&n)>>0]|0))break a;else{l=e;d=k;e=f}}c[(s&p)>>2]=e-r;c[(s&p)+4>>2]=r;c[(s&p)+8>>2]=o;c[(s&p)+12>>2]=e+d;Wg(b,uh(q,19464,s)|0,-1,1,75)}while(0);i=t;return}function Pj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0;t=i;i=i+32|0;if((i|0)>=(j|0))fa();s=t;q=t+16|0;r=c[((c[(b&p)>>2]|0)&p)+32>>2]|0;f=Sg(c[(e&p)>>2]|0,1)|0;o=Sg(c[(e&p)+4>>2]|0,1)|0;m=Sg(c[(e&p)+8>>2]|0,1)|0;if(!((f|0)==0|(o|0)==0)){a:do if(!(a[(f&n)>>0]|0))d=0;else{g=f;d=0;do{e=Cn(g,q)|0;if((c[(q&p)>>2]|0)==105){k=g;while(1){g=k+e|0;h=Cn(g,q)|0;if((c[(q&p)>>2]|0)==151){e=h;k=g}else break}if(!g)break a;l=jw(h|0,((h|0)<0)<<31>>31|0,1,0)|0;l=mh(r,l,G)|0;if(!l)break a;kw(l|0,g|0,h|0)|0;a[(l+h&n)>>0]=0;lo(l);if(!(dd(o,l)|0)){c[(s&p)>>2]=(d|0)!=0?d:10360;c[(s&p)+4>>2]=g-f;c[(s&p)+8>>2]=f;c[(s&p)+12>>2]=m;u=uh(r,19440,s)|0;mg(r,d);f=k+(h+e)|0;d=u}mg(r,l);e=h}g=g+e|0}while((a[(g&n)>>0]|0)!=0)}while(0);c[(s&p)>>2]=(d|0)!=0?d:10360;c[(s&p)+4>>2]=f;Wg(b,uh(r,19456,s)|0,-1,1,75);mg(r,d)}i=t;return}function Qj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+48|0;if((i|0)>=(j|0))fa();e=f;if(!(mo(a,b,d,e)|0)){no(e);b=e;Yg(c[(a&p)>>2]|0,(+((c[(b&p)>>2]|0)>>>0)+4294967296.0*+(c[(b&p)+4>>2]|0))/864.0e5)}i=f;return}function Rj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+160|0;if((i|0)>=(j|0))fa();e=h+48|0;f=h;g=h+60|0;if(!(mo(a,b,d,f)|0)){oo(f);d=c[(f&p)+12>>2]|0;b=c[(f&p)+16>>2]|0;c[(e&p)>>2]=c[(f&p)+8>>2];c[(e&p)+4>>2]=d;c[(e&p)+8>>2]=b;ad(100,g,20136,e)|0;Wg(a,g,-1,1,-1)}i=h;return}function Sj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,k=0;k=i;i=i+160|0;if((i|0)>=(j|0))fa();e=k+48|0;f=k;g=k+60|0;if(!(mo(a,b,d,f)|0)){po(f);d=c[(f&p)+24>>2]|0;b=~~+h[(f&q)+32>>3];c[(e&p)>>2]=c[(f&p)+20>>2];c[(e&p)+4>>2]=d;c[(e&p)+8>>2]=b;ad(100,g,20120,e)|0;Wg(a,g,-1,1,-1)}i=k;return}function Tj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,k=0,l=0,m=0,n=0;k=i;i=i+176|0;if((i|0)>=(j|0))fa();e=k+48|0;f=k;g=k+72|0;if(!(mo(a,b,d,f)|0)){oo(f);po(f);n=c[(f&p)+12>>2]|0;m=c[(f&p)+16>>2]|0;l=c[(f&p)+20>>2]|0;d=c[(f&p)+24>>2]|0;b=~~+h[(f&q)+32>>3];c[(e&p)>>2]=c[(f&p)+8>>2];c[(e&p)+4>>2]=n;c[(e&p)+8>>2]=m;c[(e&p)+12>>2]=l;c[(e&p)+16>>2]=d;c[(e&p)+20>>2]=b;ad(100,g,20088,e)|0;Wg(a,g,-1,1,-1)}i=k;return}function Uj(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,l=0,m=0,o=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;F=i;i=i+208|0;if((i|0)>=(j|0))fa();B=F+96|0;C=F+48|0;E=F+104|0;D=F;a:do if(((d|0)!=0?(A=Sg(c[(e&p)>>2]|0,1)|0,(A|0)!=0):0)?(mo(b,d+-1|0,e+4|0,C)|0)==0:0){m=c[(b&p)>>2]|0;l=c[(m&p)+32>>2]|0;e=1;d=0;g=0;b:while(1){f=a[(A+g&n)>>0]|0;c:do if(f<<24>>24==37){f=g+1|0;switch(a[(A+f&n)>>0]|0){case 87:case 83:case 77:case 109:case 72:case 100:{e=jw(e|0,d|0,1,0)|0;d=G;break c}case 102:{e=jw(e|0,d|0,8,0)|0;d=G;break c}case 106:{e=jw(e|0,d|0,3,0)|0;d=G;break c}case 89:{e=jw(e|0,d|0,8,0)|0;d=G;break c}case 74:case 115:{e=jw(e|0,d|0,50,0)|0;d=G;break c}case 37:case 119:break c;default:break a}}else if(!(f<<24>>24))break b;else f=g;while(0);e=jw(e|0,d|0,1,0)|0;d=G;g=f+1|0}if(!(d>>>0<0|(d|0)==0&e>>>0<100)){z=c[(l&p)+88>>2]|0;y=((z|0)<0)<<31>>31;if(d>>>0>y>>>0|(d|0)==(y|0)&e>>>0>z>>>0){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(m,10096,-1,1,0)|0;break}d=ew(0,e|0,32)|0;d=mh(l,d,G)|0;if(!d){Rd(b);break}else z=d}else z=E;no(C);oo(C);po(C);o=C+16|0;r=C+32|0;s=C+20|0;t=D+42|0;u=D+12|0;v=D+16|0;w=C+12|0;x=C+24|0;y=C+8|0;l=0;d=0;d:while(1){m=a[(A+l&n)>>0]|0;e:do if(!(m<<24>>24))break d;else if(m<<24>>24==37){l=l+1|0;e=A+l|0;do switch(a[(e&n)>>0]|0){case 109:{c[(B&p)>>2]=c[(w&p)>>2];ad(3,z+d|0,19888,B)|0;d=d+2|0;break e}case 77:{c[(B&p)>>2]=c[(x&p)>>2];ad(3,z+d|0,19888,B)|0;d=d+2|0;break e}case 100:{c[(B&p)>>2]=c[(o&p)>>2];ad(3,z+d|0,19888,B)|0;d=d+2|0;break e}case 106:case 87:{m=D+0|0;g=C+0|0;f=m+48|0;do{c[(m&p)>>2]=c[(g&p)>>2];m=m+4|0;g=g+4|0}while((m|0)<(f|0));a[(t&n)>>0]=0;c[(u&p)>>2]=1;c[(v&p)>>2]=1;no(D);m=C;f=D;H=c[(f&p)>>2]|0;f=c[(f&p)+4>>2]|0;m=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,432e5,0)|0;g=G;f=qw(dw(m|0,g|0,H|0,f|0)|0,G|0,864e5,0)|0;if((a[(e&n)>>0]|0)==87){e=qw(m|0,g|0,864e5,0)|0;e=rw(e|0,G|0,7,0)|0;c[(B&p)>>2]=(f+7-e|0)/7|0;ad(3,z+d|0,19888,B)|0;d=d+2|0;break e}else{c[(B&p)>>2]=f+1;ad(4,z+d|0,19904,B)|0;d=d+3|0;break e}}case 72:{c[(B&p)>>2]=c[(s&p)>>2];ad(3,z+d|0,19888,B)|0;d=d+2|0;break e}case 115:{g=z+d|0;f=C;e=B;c[(e&p)>>2]=jw(qw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,1e3,0)|0,G|0,-413362496,-50)|0;c[(e&p)+4>>2]=G;ad(30,g,19920,B)|0;if(!g)m=0;else{m=g;while(1)if(!(a[(m&n)>>0]|0))break;else m=m+1|0;m=m-g&1073741823}d=m+d|0;break e}case 119:{e=C;e=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,1296e5,0)|0;e=qw(e|0,G|0,864e5,0)|0;e=rw(e|0,G|0,7,0)|0;a[(z+d&n)>>0]=e+48;d=d+1|0;break e}case 89:{g=z+d|0;c[(B&p)>>2]=c[(y&p)>>2];ad(5,g,19928,B)|0;if(!g)m=0;else{m=g;while(1)if(!(a[(m&n)>>0]|0))break;else m=m+1|0;m=m-g&1073741823}d=m+d|0;break e}case 102:{I=+h[(r&q)>>3];g=z+d|0;h[(k&q)>>3]=I>59.999?59.999:I;c[(B&p)>>2]=c[(k&p)>>2];c[(B&p)+4>>2]=c[(k&p)+4>>2];ad(7,g,19896,B)|0;if(!g)m=0;else{m=g;while(1)if(!(a[(m&n)>>0]|0))break;else m=m+1|0;m=m-g&1073741823}d=m+d|0;break e}case 74:{g=z+d|0;e=C;h[(k&q)>>3]=(+((c[(e&p)>>2]|0)>>>0)+4294967296.0*+(c[(e&p)+4>>2]|0))/864.0e5;c[(B&p)>>2]=c[(k&p)>>2];c[(B&p)+4>>2]=c[(k&p)+4>>2];ad(20,g,19912,B)|0;if(!g)m=0;else{m=g;while(1)if(!(a[(m&n)>>0]|0))break;else m=m+1|0;m=m-g&1073741823}d=m+d|0;break e}case 83:{c[(B&p)>>2]=~~+h[(r&q)>>3];ad(3,z+d|0,19888,B)|0;d=d+2|0;break e}default:{a[(z+d&n)>>0]=37;d=d+1|0;break e}}while(0)}else{a[(z+d&n)>>0]=m;d=d+1|0}while(0);l=l+1|0}a[(z+d&n)>>0]=0;Wg(b,z,-1,1,(z|0)==(E|0)?-1:75)}while(0);i=F;return}function Vj(a,b,c){a=a|0;b=b|0;c=c|0;Sj(a,0,0);return}function Wj(a,b,c){a=a|0;b=b|0;c=c|0;Tj(a,0,0);return}function Xj(a,b,c){a=a|0;b=b|0;c=c|0;Rj(a,0,0);return}function Yj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=Vg(c[(d&p)>>2]|0)|0;h=g+1&-2;e=Vg(c[(d&p)+4>>2]|0)|0;f=(h<<3)+56|0;d=c[((c[(a&p)>>2]|0)&p)+32>>2]|0;b=mh(d,f,((f|0)<0)<<31>>31)|0;if(!b)Rd(a);else{fw(b|0,0,f|0)|0;c[(b&p)+52>>2]=d;c[(b&p)>>2]=0;c[(b&p)+8>>2]=g;c[(b&p)+12>>2]=e;d=b+56|0;c[(b&p)+24>>2]=d;c[(b&p)+20>>2]=d+(h<<2);Wg(a,b,56,0,20)}return}function Zj(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=pd(c[(d&p)>>2]|0)|0;f=Vg(c[(d&p)+4>>2]|0)|0;if(!(c[(g&p)>>2]|0)){a=g+8|0;if((c[(a&p)>>2]|0)>0){b=c[(g&p)+20>>2]|0;d=0;do{c[(b+(d<<2)&p)>>2]=1;d=d+1|0}while((d|0)<(c[(a&p)>>2]|0))}}else{if((f|0)>0){a=c[(g&p)+20>>2]|0;d=0;do{b=a+(d<<2)|0;c[(b&p)>>2]=(c[(b&p)>>2]|0)+1;d=d+1|0}while((d|0)!=(f|0))}a=g+8|0;if((f|0)<(c[(a&p)>>2]|0)){b=c[(g&p)+24>>2]|0;e=c[(g&p)+20>>2]|0;d=f;do{f=b+(d<<2)|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;c[(e+(d<<2)&p)>>2]=1;d=d+1|0}while((d|0)<(c[(a&p)>>2]|0))}}c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;return}function _j(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();m=o;h=pd(c[(e&p)>>2]|0)|0;k=h+12|0;e=((c[(k&p)>>2]|0)*25|0)+25|0;l=qg(e,((e|0)<0)<<31>>31)|0;if(!l)Rd(b);else{fw(l|0,0,e|0)|0;e=m;c[(e&p)>>2]=c[(h&p)>>2];c[(e&p)+4>>2]=0;ad(24,l,28696,m)|0;e=l;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;if((c[(k&p)>>2]|0)>0){f=h+24|0;g=0;d=l+(e-l&1073741823)|0;while(1){q=(c[((c[(f&p)>>2]|0)+(g<<2)&p)>>2]|0)+1|0;e=c[(h&p)>>2]|0;r=jw(q|0,0,-1,-1)|0;e=jw(r|0,G|0,e|0,0)|0;q=tw(e|0,G|0,q|0,0)|0;e=m;c[(e&p)>>2]=q;c[(e&p)+4>>2]=G;ad(24,d,28704,m)|0;if(!d)e=0;else{e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;e=e-d&1073741823}g=g+1|0;if((g|0)>=(c[(k&p)>>2]|0))break;else d=d+e|0}}Wg(b,l,-1,1,1)}i=o;return}function $j(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;o=i;i=i+144|0;if((i|0)>=(j|0))fa();l=o;m=o+8|0;h=Sg(c[(e&p)>>2]|0,1)|0;k=c[((c[(b&p)>>2]|0)&p)+32>>2]|0;h=(h|0)==0?10360:h;g=c[(k&p)+20>>2]|0;a:do if((g|0)>0){d=c[(k&p)+16>>2]|0;e=0;do{f=d+(e<<4)|0;if((c[(d+(e<<4)&p)+4>>2]|0)!=0?(dd(c[(f&p)>>2]|0,h)|0)==0:0)break a;e=e+1|0}while((e|0)<(g|0))}else{e=0;f=0}while(0);do if((e|0)<(g|0)){if((e|0)<2){c[(l&p)>>2]=h;ad(128,m,29256,l)|0;q=16;break}if(!(a[(k&n)+63>>0]|0)){ad(128,m,29288,l)|0;q=16;break}e=f+4|0;d=c[(e&p)>>2]|0;if((a[(d&n)+8>>0]|0)==0?(c[(d&p)+16>>2]|0)==0:0){Ml(d);c[(e&p)>>2]=0;c[(f&p)+12>>2]=0;Eg(k);break}c[(l&p)>>2]=h;ad(128,m,29336,l)|0;q=16}else{c[(l&p)>>2]=h;ad(128,m,29232,l)|0;q=16}while(0);if((q|0)==16){c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,m,-1,1,-1)|0}i=o;return}function ak(b,d,f){b=b|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=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=i;i=i+32|0;if((i|0)>=(j|0))fa();y=C;l=C+20|0;d=C+16|0;k=C+12|0;B=C+8|0;m=C+4|0;A=c[((c[(b&p)>>2]|0)&p)+32>>2]|0;c[(l&p)>>2]=0;c[(d&p)>>2]=0;c[(B&p)>>2]=0;x=Sg(c[(f&p)>>2]|0,1)|0;t=Sg(c[(f&p)+4>>2]|0,1)|0;x=(x|0)==0?10360:x;t=(t|0)==0?10360:t;w=A+20|0;g=c[(w&p)>>2]|0;h=c[(A&p)+116>>2]|0;a:do if((g|0)<(h+2|0)){if(!(a[(A&n)+63>>0]|0)){g=uh(A,29456,y)|0;c[(B&p)>>2]=g;d=0;z=42;break}u=A+16|0;h=c[(u&p)>>2]|0;b:do if((g|0)>0){f=0;while(1){if(!(dd(c[(h+(f<<4)&p)>>2]|0,t)|0))break;f=f+1|0;if((f|0)>=(g|0))break b}c[(y&p)>>2]=t;g=uh(A,29504,y)|0;c[(B&p)>>2]=g;d=0;z=42;break a}while(0);if((h|0)!=(A+456|0)){h=ro(A,h,(g<<4)+16|0,0)|0;if(!h)break;else s=h}else{h=mh(A,48,0)|0;if(!h)break;s=c[(u&p)>>2]|0;c[(h&p)>>2]=c[(s&p)>>2];c[(h&p)+4>>2]=c[(s&p)+4>>2];c[(h&p)+8>>2]=c[(s&p)+8>>2];c[(h&p)+12>>2]=c[(s&p)+12>>2];c[(h&p)+16>>2]=c[(s&p)+16>>2];c[(h&p)+20>>2]=c[(s&p)+20>>2];c[(h&p)+24>>2]=c[(s&p)+24>>2];c[(h&p)+28>>2]=c[(s&p)+28>>2];s=h}c[(u&p)>>2]=s;q=c[(w&p)>>2]|0;r=s+(q<<4)|0;c[(r&p)>>2]=0;c[(r&p)+4>>2]=0;c[(r&p)+8>>2]=0;c[(r&p)+12>>2]=0;c[(k&p)>>2]=c[(A&p)+48>>2];h=Wn(c[((c[(A&p)>>2]|0)&p)+16>>2]|0,x,k,m,l,d)|0;if(!h){h=c[(k&p)>>2]|256;c[(k&p)>>2]=h;l=c[(l&p)>>2]|0;k=s+(q<<4)+4|0;h=zm(c[(m&p)>>2]|0,l,A,k,0,h)|0;Wc(l);c[(w&p)>>2]=(c[(w&p)>>2]|0)+1;if((h|0)==19){c[(B&p)>>2]=uh(A,29536,y)|0;h=1}else if(!h){h=Xn(A,c[(k&p)>>2]|0)|0;c[(s+(q<<4)&p)+12>>2]=h;if(h)if((a[(h&n)+76>>0]|0)!=0?(a[(h&n)+77>>0]|0)!=(a[(A&n)+62>>0]|0):0){c[(B&p)>>2]=uh(A,13232,y)|0;h=1}else h=0;else h=7;d=c[(k&p)>>2]|0;f=c[(d&p)+4>>2]|0;c[(f&p)+4>>2]=c[(d&p)>>2];f=c[(f&p)>>2]|0;g=a[(A&n)+66>>0]|0;do if(!(a[(f&n)+12>>0]|0)){m=c[(f&p)+208>>2]|0;if((m|0)!=0?(a[(m&n)+43>>0]|0)==2:0)break;a[(f&n)+4>>0]=g}while(0);f=c[((c[(u&p)>>2]|0)&p)+4>>2]|0;if(!f)f=0;else{m=c[(f&p)+4>>2]|0;c[(m&p)+4>>2]=c[(f&p)>>2];f=(e[(m&o)+22>>1]|0)>>>2&1}so(d,f)|0;to(c[(k&p)>>2]|0,c[(A&p)+24>>2]&28|3)}a[(s+(q<<4)&n)+8>>0]=3;d=kh(A,t)|0;c[(r&p)>>2]=d;d=(h|0)==0&(d|0)==0?7:h;if(!d){f=c[(w&p)>>2]|0;if((f|0)>0){g=c[(u&p)>>2]|0;h=0;do{d=c[(g+(h<<4)&p)+4>>2]|0;if(d)c[((c[(d&p)+4>>2]|0)&p)+4>>2]=c[(d&p)>>2];h=h+1|0}while((h|0)!=(f|0))}d=Zh(A,B)|0;if(!d)break}g=(c[(w&p)>>2]|0)+-1|0;f=c[((c[(u&p)>>2]|0)+(g<<4)&p)+4>>2]|0;if(f){Ml(f);s=c[(u&p)>>2]|0;c[(s+(g<<4)&p)+4>>2]=0;c[(s+(g<<4)&p)+12>>2]=0}Eg(A);c[(w&p)>>2]=g;if((d|0)==7|(d|0)==3082){a[(A&n)+65>>0]=1;mg(A,c[(B&p)>>2]|0);g=uh(A,15776,y)|0;c[(B&p)>>2]=g;z=42;break}g=c[(B&p)>>2]|0;if(g){z=43;break}c[(y&p)>>2]=x;g=uh(A,29568,y)|0;c[(B&p)>>2]=g;z=42;break}else if((h|0)==7)a[(A&n)+65>>0]=1;s=c[(d&p)>>2]|0;c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,s,-1,1,-1)|0;Wc(s)}else{c[(y&p)>>2]=h;g=uh(A,29416,y)|0;c[(B&p)>>2]=g;d=0;z=42}while(0);if((z|0)==42)if(!g){v=d;z=44}else z=43;if((z|0)==43){c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,g,-1,1,-1)|0;mg(A,c[(B&p)>>2]|0);v=d;z=44}if((z|0)==44?(v|0)!=0:0)Pd(b,v);i=C;return}function bk(a){a=a|0;if(a){ik(a,0)|0;Wc(c[(a&p)+24>>2]|0);uo(a)}return 0}function ck(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;l=a+12|0;g=d&131071;k=b;i=f;j=0;a:while(1){while(1){f=cb(c[(l&p)>>2]|0,e|0,0)|0;if(!((f|0)==(e|0)&(((f|0)<0)<<31>>31|0)==(i|0))){e=4;break a}h=ac[c[47652>>2]&63](c[(l&p)>>2]|0,k,g)|0;if((g|0)==(h|0)){f=j;e=13;break a}if((h|0)>=0){f=h;break}f=c[((Hb()|0)&p)>>2]|0;if((f|0)!=4){g=h;e=10;break a}}if((f|0)<=0){g=0;f=j;e=13;break}h=jw(f|0,((f|0)<0)<<31>>31|0,e|0,i|0)|0;g=g-f|0;k=k+f|0;i=G;e=h;j=f+j|0}do if((e|0)==4)if((f|0)==-1){c[(a&p)+20>>2]=c[((Hb()|0)&p)>>2];f=-1;break}else{c[(a&p)+20>>2]=0;f=-1;break}else if((e|0)==10){c[(a&p)+20>>2]=f;f=0;e=13}while(0);if((e|0)==13)f=f+g|0;if((f|0)!=(d|0))if((f|0)<0)f=266;else{c[(a&p)+20>>2]=0;fw(b+f|0,0,d-f|0)|0;f=522}else f=0;return f|0}function dk(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;a:do if((d|0)>0){h=a+12|0;i=a+20|0;g=d;while(1){d=vo(c[(h&p)>>2]|0,e,f,b,g,i)|0;if((d|0)<=0)break;g=g-d|0;e=jw(d|0,((d|0)<0)<<31>>31|0,e|0,f|0)|0;if((g|0)<=0){d=0;break a}else{b=b+d|0;f=G}}if((d|0)<0?(c[(i&p)>>2]|0)!=28:0){d=778;break}c[(a&p)+20>>2]=0;d=13}else d=0;while(0);return d|0}function ek(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=c[(a&p)+40>>2]|0;if((e|0)>0){f=((e|0)<0)<<31>>31;d=jw(b|0,d|0,-1,-1)|0;d=jw(d|0,G|0,e|0,f|0)|0;b=G;e=rw(d|0,b|0,e|0,f|0)|0;e=dw(d|0,b|0,e|0,G|0)|0}else e=b;d=c[(a&p)+12>>2]|0;while(1){b=rc[c[47628>>2]&127](d,e)|0;if((b|0)>=0){e=6;break}b=Hb()|0;if((c[(b&p)>>2]|0)!=4){e=8;break}}if((e|0)==6)if(!b)b=0;else{b=Hb()|0;e=8}if((e|0)==8){c[(a&p)+20>>2]=c[(b&p)>>2];b=co(1546,47928,c[(a&p)+32>>2]|0,29004)|0}return b|0}function fk(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;if(!(Gb(c[(a&p)+12>>2]|0)|0)){h=a+18|0;if(!(b[(h&o)>>1]&8))d=0;else{d=rc[c[47760>>2]&127](c[(a&p)+32>>2]|0,g)|0;f=c[(g&p)>>2]|0;if((d|0)==0&(f|0)>-1){Gb(f|0)|0;ao(a,c[(g&p)>>2]|0,28974);d=0}else d=(d|0)==14?0:d;b[(h&o)>>1]=(e[(h&o)>>1]|0)&65527}}else{c[(a&p)+20>>2]=c[((Hb()|0)&p)>>2];d=co(1034,48360,c[(a&p)+32>>2]|0,28960)|0}i=k;return d|0}function gk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;e=i;i=i+80|0;if((i|0)>=(j|0))fa();d=e;if(!(rc[c[47616>>2]&127](c[(a&p)+12>>2]|0,d)|0)){a=c[(d&p)+36>>2]|0;f=(a|0)==1;d=b;c[(d&p)>>2]=f?0:a;c[(d&p)+4>>2]=f?0:((a|0)<0)<<31>>31;d=0}else{c[(a&p)+20>>2]=c[((Hb()|0)&p)>>2];d=1802}i=e;return d|0}function hk(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=c[(b&p)+24>>2]|0;g=b+16|0;a:do if(!(a[(g&n)>>0]|0)){e=rc[c[47772>>2]&127](f,511)|0;if((e|0)>=0){a[(g&n)>>0]=d;break}f=c[((Hb()|0)&p)>>2]|0;switch(f|0){case 13:case 37:case 4:case 16:case 110:case 11:case 17:{e=5;break a}case 1:{e=3;break}default:e=3850}c[(b&p)+20>>2]=f}else{a[(g&n)>>0]=d;Ya(f|0,0)|0;e=0}while(0);return e|0}function ik(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;g=c[(b&p)+24>>2]|0;h=b+16|0;a:do if((d[(h&n)>>0]|0|0)==(e|0))f=0;else{if((e|0)==1){a[(h&n)>>0]=1;f=0;break}do if((lc[c[47784>>2]&127](g)|0)<0){f=Hb()|0;e=c[(f&p)>>2]|0;if((e|0)==20){if((lc[c[47748>>2]&127](g)|0)>=0)break;e=c[(f&p)>>2]|0}g=(e|0)!=2;f=g?2058:0;if(!g)break a;c[(b&p)+20>>2]=e;break a}while(0);a[(h&n)>>0]=0;f=0}while(0);return f|0}function jk(a,b){a=a|0;b=b|0;if((d[(a&n)+16>>0]|0)>1)a=1;else a=(rc[c[47580>>2]&127](c[(a&p)+24>>2]|0,0)|0)==0&1;c[(b&p)>>2]=a;return 0}function kk(a,b,e){a=a|0;b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0;o=i;i=i+80|0;if((i|0)>=(j|0))fa();g=o;a:do switch(b|0){case 16:{f=a+4|0;b=Tc(c[((c[(f&p)>>2]|0)&p)+8>>2]|0)|0;if(!b)f=0;else{_n(c[((c[(f&p)>>2]|0)&p)+8>>2]|0,b)|0;c[(e&p)>>2]=b;f=0}break}case 4:{c[(e&p)>>2]=c[(a&p)+20>>2];f=0;break}case 6:{c[(a&p)+40>>2]=c[(e&p)>>2];f=0;break}case 5:{b=e;e=c[(b&p)>>2]|0;b=c[(b&p)+4>>2]|0;f=a+40|0;if((c[(f&p)>>2]|0)>0){m=a+12|0;if(!(rc[c[47616>>2]&127](c[(m&p)>>2]|0,g)|0)){f=c[(f&p)>>2]|0;k=((f|0)<0)<<31>>31;e=jw(e|0,b|0,-1,-1)|0;e=jw(e|0,G|0,f|0,k|0)|0;l=G;k=rw(e|0,l|0,f|0,k|0)|0;k=dw(e|0,l|0,k|0,G|0)|0;l=G;e=c[(g&p)+36>>2]|0;f=((e|0)<0)<<31>>31;do if((l|0)>(f|0)|(l|0)==(f|0)&k>>>0>e>>>0){h=c[(g&p)+40>>2]|0;b=e+-1+(h<<1)|0;b=b+~((b|0)%(h|0)|0)|0;e=((b|0)<0)<<31>>31;f=a+20|0;if((e|0)<(l|0)|(e|0)==(l|0)&b>>>0<k>>>0){g=((h|0)<0)<<31>>31;do{a=(vo(c[(m&p)>>2]|0,b,e,10360,1,f)|0)==1;b=jw(b|0,e|0,h|0,g|0)|0;e=G;if(!a){f=778;break a}}while((e|0)<(l|0)|(e|0)==(l|0)&b>>>0<k>>>0);b=rw(k|0,l|0,h|0,g|0)|0;if((b|0)==0&(G|0)==0)break}b=jw(k|0,l|0,-1,-1)|0;if((vo(c[(m&p)>>2]|0,b,G,10360,1,f)|0)!=1){f=778;break a}}while(0);f=0}else f=1802}else f=0;break}case 1:{c[(e&p)>>2]=d[(a&n)+16>>0];f=0;break}case 20:{c[(e&p)>>2]=xo(a)|0;f=0;break}case 24:{f=0;break}case 10:{wo(a,4,e);f=0;break}case 13:{wo(a,16,e);f=0;break}case 12:{c[(g&p)>>2]=c[((c[(a&p)+4>>2]|0)&p)+16>>2];c[(e&p)>>2]=_c(10344,g)|0;f=0;break}default:f=12}while(0);i=o;return f|0}function lk(a){a=a|0;return 4096}function mk(a){a=a|0;return (b[(a&o)+18>>1]&16)<<8|0}function nk(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,l=0,m=0;l=c[(a&p)+36>>2]|0;i=c[(l&p)>>2]|0;m=(1<<f+d)-(1<<d)|0;a:do if(!(g&1)){j=c[(i&p)+32>>2]|0;i=(j|0)==0;if(g&4){if(i)g=0;else{g=0;i=j;do{if(m&(e[(i&o)+12>>1]|0)){h=5;break a}g=b[(i&o)+10>>1]|g;i=c[(i&p)+4>>2]|0}while((i|0)!=0)}if((m&(g&65535)|0)==0?(k=yo(a,0,d+120|0,f)|0,(k|0)!=0):0){h=k;break}h=l+10|0;b[(h&o)>>1]=e[(h&o)>>1]|0|m;h=0;break}if(!i){h=m&65535;g=j;do{if((e[(g&o)+12>>1]|0)&h){h=5;break a}if((e[(g&o)+10>>1]|0)&h){h=5;break a}g=c[(g&p)+4>>2]|0}while((g|0)!=0)}h=yo(a,1,d+120|0,f)|0;if(!h){h=l+12|0;b[(h&o)>>1]=e[(h&o)>>1]|0|m;h=0}}else{i=c[(i&p)+32>>2]|0;if(!i)g=0;else{g=0;do{if((i|0)!=(l|0))g=b[(i&o)+10>>1]|g;i=c[(i&p)+4>>2]|0}while((i|0)!=0)}if((g&65535&m|0)==0?(h=yo(a,2,d+120|0,f)|0,(h|0)!=0):0)break;g=(m|-65536)^65535;h=l+12|0;b[(h&o)>>1]=(e[(h&o)>>1]|0)&g;h=l+10|0;b[(h&o)>>1]=(e[(h&o)>>1]|0)&g;h=0}while(0);return h|0}function ok(a){a=a|0;return}function pk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;f=a+36|0;g=c[(f&p)>>2]|0;if(g){h=c[(g&p)>>2]|0;d=h+32|0;while(1){e=c[(d&p)>>2]|0;if((e|0)==(g|0))break;else d=e+4|0}c[(d&p)>>2]=c[(g&p)+4>>2];Wc(g);c[(f&p)>>2]=0;e=h+28|0;d=(c[(e&p)>>2]|0)+-1|0;c[(e&p)>>2]=d;if(!d){if((b|0)!=0?(c[(h&p)+12>>2]|0)>-1:0)lc[c[47748>>2]&127](c[(h&p)+8>>2]|0)|0;zo(a)}}return 0}function qk(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;c[(f&p)>>2]=0;return 0}function rk(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return 0}function sk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();f=e;c[(f&p)>>2]=d;b=qb(a|0,b|0,f|0)|0;i=e;return b|0}function tk(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+528|0;if((i|0)>=(j|0))fa();f=k;g=k+8|0;c[(f&p)>>2]=b;ad(512,g,10344,f)|0;b=gw(g|0)|0;a:do if((b|0)>1)while(1){e=b+-1|0;if((a[(g+b&n)>>0]|0)==47)break a;if((e|0)>1)b=e;else{b=e;break}}while(0);if((b|0)>0){a[(g+b&n)>>0]=0;b=$n(g,0,0)|0;c[(d&p)>>2]=b;if((b|0)>-1)b=0;else h=7}else{c[(d&p)>>2]=-1;h=7}if((h|0)==7){c[(f&p)>>2]=28919;c[(f&p)+4>>2]=10788;bd(14,14848,f);b=co(14,47896,g,28919)|0}i=k;return b|0}function uk(a,b,c){a=a|0;b=b|0;c=c|0;if(!(Kb()|0))a=Qb(a|0,b|0,c|0)|0;else a=0;return a|0}function vk(){return wb(30)|0}function wk(a){a=a|0;uo(a);return 0}function xk(a,b){a=a|0;b=b|0;return 0}function yk(a,b){a=a|0;b=b|0;return 0}function zk(a,b){a=a|0;b=b|0;c[(b&p)>>2]=0;return 0}function Ak(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;bo(a);Ck(a,0)|0;f=c[(a&p)+8>>2]|0;if(f){if(c[(f&p)+24>>2]|0){b=a+28|0;e=c[(b&p)>>2]|0;d=f+28|0;c[(e&p)+8>>2]=c[(d&p)>>2];c[(d&p)>>2]=e;c[(a&p)+12>>2]=-1;c[(b&p)>>2]=0}d=f+16|0;b=(c[(d&p)>>2]|0)+-1|0;c[(d&p)>>2]=b;if(!b){Ao(a);g=f+36|0;b=c[(g&p)>>2]|0;d=f+32|0;e=c[(d&p)>>2]|0;if(!b)c[12178]=e;else c[(b&p)+32>>2]=e;b=c[(d&p)>>2]|0;if(b)c[(b&p)+36>>2]=c[(g&p)>>2];Wc(f)}}uo(a);return 0}function Bk(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();m=t;r=d+16|0;f=a[(r&n)>>0]|0;a:do if((f&255|0)<(e|0)){l=c[(d&p)+8>>2]|0;s=l+12|0;g=a[(s&n)>>0]|0;if(f<<24>>24!=g<<24>>24?(g&255)>2|(e|0)>1:0){f=5;break}h=(e|0)==1;do if(h)if((g+-1&255)<2){a[(r&n)>>0]=1;f=l+8|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=l+24|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=0;break a}else{g=m+8|0;c[(g&p)>>2]=1;b[(m&o)+2>>1]=0;q=10;break}else{g=m+8|0;c[(g&p)>>2]=1;b[(m&o)+2>>1]=0;if((e|0)==4)if((f&255)<3)q=10;else{k=g;q=14}else{h=g;q=24}}while(0);if((q|0)==10){b[(m&o)>>1]=h&1^1;c[(m&p)+4>>2]=c[2514];if(!(Bo(d,m)|0)){k=g;q=14}else{g=c[((Hb()|0)&p)>>2]|0;switch(g|0){case 1:{f=3;break}case 13:case 37:case 4:case 16:case 110:case 11:{f=5;break a}default:f=3850}c[(d&p)+20>>2]=g;break}}b:do if((q|0)==14)if(h){h=m+4|0;c[(h&p)>>2]=(c[2514]|0)+2;c[(k&p)>>2]=510;c:do if(!(Bo(d,m)|0)){f=0;g=0}else{g=c[((Hb()|0)&p)>>2]|0;switch(g|0){case 1:{f=3;g=1;break c}case 13:case 37:case 4:case 16:case 110:case 11:{f=5;break c}default:{f=3850;break c}}}while(0);c[(h&p)>>2]=c[2514];c[(k&p)>>2]=1;b[(m&o)>>1]=2;do if((Bo(d,m)|0)!=0&(f|0)==0){f=2058;g=c[((Hb()|0)&p)>>2]|0}else{if((f|0)==5){f=5;break a}else if(f)break;a[(r&n)>>0]=1;m=l+24|0;c[(m&p)>>2]=(c[(m&p)>>2]|0)+1;c[(l&p)+8>>2]=1;break b}while(0);c[(d&p)+20>>2]=g;break a}else{h=k;q=24}while(0);do if((q|0)==24){k=(e|0)==4;if(k)if((c[(l&p)+8>>2]|0)>1)f=5;else{b[(m&o)>>1]=1;g=c[2514]|0;q=29}else{b[(m&o)>>1]=1;g=c[2514]|0;if((e|0)==2){c[(m&p)+4>>2]=g+1;g=1;q=30}else q=29}if((q|0)==29){c[(m&p)+4>>2]=g+2;g=510;q=30}if((q|0)==30){c[(h&p)>>2]=g;if(!(Bo(d,m)|0))break;g=c[((Hb()|0)&p)>>2]|0;switch(g|0){case 1:{f=3;q=33;break}case 13:case 37:case 4:case 16:case 110:case 11:{f=5;break}default:{f=3850;q=33}}if((q|0)==33)c[(d&p)+20>>2]=g;if(!k)break a}a[(r&n)>>0]=3;a[(s&n)>>0]=3;break a}while(0);f=e&255;a[(r&n)>>0]=f;a[(s&n)>>0]=f;f=0}else f=0;while(0);i=t;return f|0}function Ck(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();k=q;l=d+16|0;f=a[(l&n)>>0]|0;a:do if((f&255|0)>(e|0)){m=c[(d&p)+8>>2]|0;do if((f&255)>1){if((e|0)==1){b[(k&o)>>1]=0;h=k+2|0;b[(h&o)>>1]=0;f=k+4|0;c[(f&p)>>2]=(c[2514]|0)+2;g=k+8|0;c[(g&p)>>2]=510;if(Bo(d,k)|0){c[(d&p)+20>>2]=c[((Hb()|0)&p)>>2];f=2314;break a}}else{g=k+8|0;h=k+2|0;f=k+4|0}b[(k&o)>>1]=2;b[(h&o)>>1]=0;c[(f&p)>>2]=c[2514];c[(g&p)>>2]=2;if(!(Bo(d,k)|0)){a[(m&n)+12>>0]=1;break}else{c[(d&p)+20>>2]=c[((Hb()|0)&p)>>2];f=2058;break a}}while(0);if(!e){g=m+8|0;f=(c[(g&p)>>2]|0)+-1|0;c[(g&p)>>2]=f;do if(!f){b[(k&o)>>1]=2;b[(k&o)+2>>1]=0;c[(k&p)+8>>2]=0;c[(k&p)+4>>2]=0;if(!(Bo(d,k)|0)){a[(m&n)+12>>0]=0;f=0;break}else{c[(d&p)+20>>2]=c[((Hb()|0)&p)>>2];a[(m&n)+12>>0]=0;a[(l&n)>>0]=0;f=2058;break}}else f=0;while(0);h=m+24|0;g=(c[(h&p)>>2]|0)+-1|0;c[(h&p)>>2]=g;if(!g)Ao(d);if(f)break}a[(l&n)>>0]=e;f=0}else f=0;while(0);i=q;return f|0}function Dk(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0;m=i;i=i+32|0;if((i|0)>=(j|0))fa();k=m;l=m+8|0;h=c[(e&p)+8>>2]|0;q=(d[(h&n)+12>>0]|0)>1;g=q&1;do if(!q)if(!(a[(h&n)+13>>0]|0)){b[(l&o)+2>>1]=0;c[(l&p)+4>>2]=(c[2514]|0)+1;c[(l&p)+8>>2]=1;b[(l&o)>>1]=1;q=c[11910]|0;h=c[(e&p)+12>>2]|0;c[(k&p)>>2]=l;if(!(ac[q&63](h,12,k)|0)){h=0;g=(b[(l&o)>>1]|0)==2?g:1;break}else{c[(e&p)+20>>2]=c[((Hb()|0)&p)>>2];h=3594;break}}else{h=0;g=0}else{h=0;g=1}while(0);c[(f&p)>>2]=g;i=m;return h|0}function Ek(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;D=i;i=i+160|0;if((i|0)>=(j|0))fa();B=D;w=D+76|0;m=hc[c[47844>>2]&7]()|0;if((m|0)<32768)C=1;else C=(m|0)/32768|0;z=d+36|0;m=c[(z&p)>>2]|0;a:do if(!m){m=Tc(16)|0;if(!m)l=7;else{c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;v=d+8|0;t=c[(v&p)>>2]|0;l=c[(t&p)+20>>2]|0;b:do if(!l){u=d+32|0;q=c[(u&p)>>2]|0;if((rc[c[47616>>2]&127](c[(d&p)+12>>2]|0,w)|0)!=0?(a[(t&n)+13>>0]|0)==0:0)l=1802;else A=8;c:do if((A|0)==8){l=gw(q|0)|0;r=l+42|0;x=Tc(r)|0;if(x){fw(x|0,0,r|0)|0;s=x+36|0;c[(x&p)+8>>2]=s;c[(B&p)>>2]=q;ad(l+6|0,s,48720,B)|0;l=x+12|0;c[(l&p)>>2]=-1;v=c[(v&p)>>2]|0;c[(v&p)+20>>2]=x;c[(x&p)>>2]=v;c[(x&p)+4>>2]=8;if(a[(t&n)+13>>0]|0){l=x;break b}if(!(fg(c[(u&p)>>2]|0,48728,0)|0))r=66;else{a[(x&n)+22>>0]=1;r=0}q=$n(s,r,c[(w&p)+12>>2]&511)|0;c[(l&p)>>2]=q;if((q|0)<0){c[(B&p)>>2]=29706;c[(B&p)+4>>2]=10788;bd(14,14848,B);l=co(14,47896,s,29706)|0;break}ac[c[47796>>2]&63](q,c[(w&p)+20>>2]|0,c[(w&p)+24>>2]|0)|0;do if(!(yo(d,1,128,1)|0)){l=c[(l&p)>>2]|0;do{q=rc[c[47628>>2]&127](l,0)|0;if((q|0)>=0){y=q;A=18;break}}while((c[((Hb()|0)&p)>>2]|0)==4);if((A|0)==18?(y|0)==0:0)break;l=co(4618,47928,s,29722)|0;if(l)break c}while(0);l=yo(d,0,128,1)|0;if(!l){l=x;break b}}else l=7}while(0);zo(d);Wc(m);if(l)break a;m=c[(z&p)>>2]|0;A=24;break a}while(0);c[(m&p)>>2]=l;A=l+28|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+1;c[(d&p)+36>>2]=m;A=l+32|0;c[(m&p)+4>>2]=c[(A&p)>>2];c[(A&p)>>2]=m;A=24}}else A=24;while(0);if((A|0)==24){x=c[(m&p)>>2]|0;z=C+f|0;z=z-((z|0)%(C|0)|0)|0;w=x+20|0;d:do if((e[(w&o)>>1]|0)<(z|0)){l=ca(z,g)|0;c[(x&p)+16>>2]=g;y=x+12|0;m=c[(y&p)>>2]|0;e:do if((m|0)>-1){if(rc[c[47616>>2]&127](m,B)|0){m=4874;break d}m=c[(B&p)+36>>2]|0;if((m|0)<(l|0)){if(!h){m=0;break d}m=(m|0)/4096|0;l=(l|0)/4096|0;if((m|0)<(l|0)){while(1){v=m<<12|4095;m=m+1|0;if((vo(c[(y&p)>>2]|0,v,((v|0)<0)<<31>>31,10360,1,0)|0)!=1)break;if((m|0)>=(l|0))break e}m=co(4874,47976,c[(x&p)+8>>2]|0,29853)|0;break d}}}while(0);v=x+24|0;m=Xc(c[(v&p)>>2]|0,z<<2)|0;if(m){c[(v&p)>>2]=m;m=e[(w&o)>>1]|0;if((m|0)<(z|0)){s=ca(C,g)|0;t=x+22|0;u=(C|0)>0;while(1){l=c[(y&p)>>2]|0;if((l|0)>-1){m=ca(m,g)|0;m=kc[c[47808>>2]&7](0,s,(a[(t&n)>>0]|0)!=0?1:3,1,l,m)|0;if((m|0)==(-1|0))break}else{m=Tc(g)|0;if(!m){m=7;break d}fw(m|0,0,g|0)|0}q=b[(w&o)>>1]|0;if(u){l=q&65535;r=0;do{d=m+(ca(r,g)|0)|0;c[((c[(v&p)>>2]|0)+(l+r<<2)&p)>>2]=d;r=r+1|0}while((r|0)!=(C|0))}m=(q&65535)+C|0;b[(w&o)>>1]=m;m=m&65535;if((m|0)>=(z|0)){m=0;break d}}m=co(5386,48080,c[(x&p)+8>>2]|0,29880)|0}else m=0}else m=3082}else m=0;while(0);if((e[(w&o)>>1]|0)>(f|0))l=c[((c[(x&p)+24>>2]|0)+(f<<2)&p)>>2]|0;else l=0;c[(k&p)>>2]=l;l=(a[(x&n)+22>>0]|0)!=0&(m|0)==0?8:m}i=D;return l|0}function Fk(a,b){a=a|0;b=b|0;var d=0;if(b)do{d=b;b=c[(b&p)+32>>2]|0;Gk(a,c[(d&p)+20>>2]|0);Nk(a,c[(d&p)+24>>2]|0);Mk(a,c[(d&p)+8>>2]|0,1);Hk(a,c[(d&p)+28>>2]|0);mg(a,d)}while((b|0)!=0);return}function Gk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;if(b){f=b+4|0;do if(!(c[(f&p)>>2]&16384)){Gk(a,c[(b&p)+12>>2]|0);Gk(a,c[(b&p)+16>>2]|0);d=c[(f&p)>>2]|0;if(d&65536){mg(a,c[(b&p)+8>>2]|0);d=c[(f&p)>>2]|0}e=b+20|0;if(!(d&2048)){Nk(a,c[(e&p)>>2]|0);break}else{Mk(a,c[(e&p)>>2]|0,1);break}}while(0);if(!(c[(f&p)>>2]&32768))mg(a,b)}return}function Hk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;if(b){f=b+4|0;d=c[(b&p)>>2]|0;if((c[(f&p)>>2]|0)>0){e=0;do{mg(a,c[(d+(e<<3)&p)>>2]|0);e=e+1|0;d=c[(b&p)>>2]|0}while((e|0)<(c[(f&p)>>2]|0))}mg(a,d);mg(a,b)}return}function Ik(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();r=s;m=bn(b,e,r)|0;do if(!m)if(f){q=qg(16,0)|0;if(!q)g=f;else{c[(q&p)+12>>2]=e;c[(q&p)+8>>2]=f;o=b+4|0;k=(c[(o&p)>>2]|0)+1|0;c[(o&p)>>2]=k;if((k>>>0>9?(h=c[(b&p)>>2]|0,k>>>0>h<<1>>>0):0)?(l=k<<4>>>0>1024?128:k<<1,(l|0)!=(h|0)):0){g=c[3164]|0;if(g)nc[g&3]();o=qg(l<<3,0)|0;g=c[3166]|0;if(g)nc[g&3]();if(o){m=b+12|0;Wc(c[(m&p)>>2]|0);c[(m&p)>>2]=o;m=(lc[c[8792>>2]&127](o)|0)>>>3;c[(b&p)>>2]=m;fw(o|0,0,m<<3|0)|0;f=b+8|0;k=c[(f&p)>>2]|0;c[(f&p)>>2]=0;if(k)do{l=c[(k&p)+12>>2]|0;h=a[(l&n)>>0]|0;if(!(h<<24>>24))h=0;else{f=h;h=0;do{l=l+1|0;h=h<<3^h^(d[(f&255&n)+9328>>0]|0);f=a[(l&n)>>0]|0}while(f<<24>>24!=0)}f=k;k=c[(k&p)>>2]|0;Co(b,o+(((h>>>0)%(m>>>0)|0)<<3)|0,f)}while((k|0)!=0);g=a[(e&n)>>0]|0;if(!(g<<24>>24))g=0;else{k=g;g=0;do{e=e+1|0;g=g<<3^g^(d[(k&255&n)+9328>>0]|0);k=a[(e&n)>>0]|0}while(k<<24>>24!=0)}c[(r&p)>>2]=(g>>>0)%((c[(b&p)>>2]|0)>>>0)|0}}g=c[(b&p)+12>>2]|0;if(!g)g=0;else g=g+(c[(r&p)>>2]<<3)|0;Co(b,g,q);g=0}}else g=0;else{k=m+8|0;g=c[(k&p)>>2]|0;if(f){c[(k&p)>>2]=f;c[(m&p)+12>>2]=e;break}l=c[(r&p)>>2]|0;k=c[(m&p)+4>>2]|0;h=c[(m&p)>>2]|0;if(!k)c[(b&p)+8>>2]=h;else{c[(k&p)>>2]=h;h=c[(m&p)>>2]|0}if(h)c[(h&p)+4>>2]=k;e=c[(b&p)+12>>2]|0;if(e){k=e+(l<<3)+4|0;if((c[(k&p)>>2]|0)==(m|0))c[(k&p)>>2]=h;r=e+(l<<3)|0;c[(r&p)>>2]=(c[(r&p)>>2]|0)+-1}Wc(m);q=b+4|0;r=(c[(q&p)>>2]|0)+-1|0;c[(q&p)>>2]=r;if(!r)Ol(b)}while(0);i=s;return g|0}function Jk(b,d){b=b|0;d=d|0;Gk(b,c[(d&p)+36>>2]|0);mg(b,c[(d&p)+16>>2]|0);if(a[(d&n)+51>>0]&16)mg(b,c[(d&p)+32>>2]|0);mg(b,d);return}function Kk(a,b){a=a|0;b=b|0;var d=0;if(b){d=c[(b&p)+28>>2]|0;Gk(a,c[(d&p)+20>>2]|0);Nk(a,c[(d&p)+24>>2]|0);Mk(a,c[(d&p)+8>>2]|0,1);Gk(a,c[(b&p)+12>>2]|0);mg(a,b)}return}function Lk(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;g=d+4|0;e=c[(g&p)>>2]|0;if(e){d=d+38|0;if((b[(d&o)>>1]|0)>0){f=0;while(1){mg(a,c[(e&p)>>2]|0);Gk(a,c[(e&p)+4>>2]|0);mg(a,c[(e&p)+8>>2]|0);mg(a,c[(e&p)+12>>2]|0);mg(a,c[(e&p)+16>>2]|0);f=f+1|0;if((f|0)>=(b[(d&o)>>1]|0))break;else e=e+24|0}e=c[(g&p)>>2]|0}mg(a,e)}return}function Mk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if(b){e=(d|0)==0;d=b;while(1){b=d;d=c[(d&p)+52>>2]|0;Nk(a,c[(b&p)>>2]|0);Do(a,c[(b&p)+32>>2]|0);Gk(a,c[(b&p)+36>>2]|0);Nk(a,c[(b&p)+40>>2]|0);Gk(a,c[(b&p)+44>>2]|0);Nk(a,c[(b&p)+48>>2]|0);Gk(a,c[(b&p)+60>>2]|0);Gk(a,c[(b&p)+64>>2]|0);Qn(a,c[(b&p)+68>>2]|0);if(!e)mg(a,b);if(!d)break;else e=0}}return}function Nk(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;if(b){d=b+4|0;if((c[(b&p)>>2]|0)>0){e=0;f=c[(d&p)>>2]|0;while(1){Gk(a,c[(f&p)>>2]|0);mg(a,c[(f&p)+4>>2]|0);mg(a,c[(f&p)+8>>2]|0);e=e+1|0;if((e|0)>=(c[(b&p)>>2]|0))break;else f=f+20|0}}mg(a,c[(d&p)>>2]|0);mg(a,b)}return}function Ok(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=b+60|0;d=c[(h&p)>>2]|0;c[(h&p)>>2]=0;a:do if(!d)b=0;else{b=0;do{while(1){f=c[(d&p)>>2]|0;e=d+24|0;g=d;d=c[(e&p)>>2]|0;if((f|0)==(a|0)){b=g;break}f=f+332|0;c[(e&p)>>2]=c[(f&p)>>2];c[(f&p)>>2]=g;if(!d)break a}c[(h&p)>>2]=b;c[(e&p)>>2]=0}while((d|0)!=0)}while(0);return b|0}function Pk(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;if((d|0)!=0?(f=d+(e*20|0)|0,(e|0)>0):0){e=d;do{In(b,a[(e&n)+1>>0]|0,c[(e&p)+16>>2]|0);e=e+20|0}while(e>>>0<f>>>0)}mg(b,d);return}function Qk(a,b){a=a|0;b=b|0;do if(!a)b=lc[c[8792>>2]&127](b)|0;else{if((c[(a&p)+276>>2]|0)>>>0<=b>>>0?(c[(a&p)+280>>2]|0)>>>0>b>>>0:0){b=e[(a&o)+248>>1]|0;break}b=lc[c[8792>>2]&127](b)|0}while(0);a=c[(a&p)+520>>2]|0;c[(a&p)>>2]=(c[(a&p)>>2]|0)+b;return}function Rk(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;b=c[(b+(d<<2)&p)>>2]|0;a:do if(!b)b=0;else while(1){d=c[(b&p)+24>>2]|0;if((Fc(d,e,f)|0)==0?(a[(d+f&n)>>0]|0)==0:0)break a;b=c[(b&p)+28>>2]|0;if(!b){b=0;break}}while(0);return b|0}function Sk(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=a+12|0;f=c[(e&p)>>2]|0;g=f+d|0;if((g|0)<(c[(a&p)+16>>2]|0)){c[(e&p)>>2]=g;kw((c[(a&p)+8>>2]|0)+f|0,b|0,d|0)|0}else Eo(a,b,d);return}function Tk(a){a=a|0;var b=0,d=0;d=a+4|0;b=c[(d&p)>>2]|0;if((c[(a&p)>>2]|0)>(b|0)){c[(d&p)>>2]=b+1;d=Vg(c[((c[(a&p)+8>>2]|0)+(b<<2)&p)>>2]|0)|0;b=G}else{b=0;d=0}G=b;return d|0}function Uk(a){a=a|0;var b=0,d=0;b=a+4|0;d=c[(b&p)>>2]|0;if((c[(a&p)>>2]|0)>(d|0)){c[(b&p)>>2]=d+1;b=Sg(c[((c[(a&p)+8>>2]|0)+(d<<2)&p)>>2]|0,1)|0}else b=0;return b|0}function Vk(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;g=b+12|0;i=c[(g&p)>>2]|0;i=jw(i|0,((i|0)<0)<<31>>31|0,d|0,((d|0)<0)<<31>>31|0)|0;k=G;h=c[(b&p)+16>>2]|0;j=((h|0)<0)<<31>>31;if((k|0)<(j|0)|(k|0)==(j|0)&i>>>0<h>>>0){if((d|0)>0)f=4}else{d=Fo(b,d)|0;if((d|0)>=1)f=4}if((f|0)==4){b=b+8|0;do{d=d+-1|0;f=c[(g&p)>>2]|0;c[(g&p)>>2]=f+1;a[((c[(b&p)>>2]|0)+f&n)>>0]=e}while((d|0)>0)}return}function Wk(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;f=i;i=i+112|0;if((i|0)>=(j|0))fa();k=f+28|0;h=f;g=c[(b&p)+88>>2]|0;c[(h&p)+4>>2]=k;c[(h&p)+8>>2]=k;c[(h&p)+12>>2]=0;c[(h&p)+16>>2]=70;c[(h&p)+20>>2]=g;a[(h&n)+24>>0]=1;g=h+25|0;a[(g&n)>>0]=0;c[(h&p)>>2]=b;sg(h,1,d,e);e=tg(h)|0;if((a[(g&n)>>0]|0)==1)a[(b&n)+65>>0]=1;i=f;return e|0}function Xk(a){a=a|0;return lc[c[8792>>2]&127](a)|0}function Yk(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+80|0;if((i|0)>=(j|0))fa();l=m+40|0;g=m;if((d|0)!=0?(f=c[(d&p)+20>>2]|0,(f|0)!=0):0){c[(l&p)>>2]=0;c[(l&p)+4>>2]=0;c[(l&p)+8>>2]=0;c[(l&p)+12>>2]=0;c[(l&p)+16>>2]=0;c[(l&p)+20>>2]=0;c[(l&p)+24>>2]=0;h=g+0|0;k=h+40|0;do{c[(h&p)>>2]=0;h=h+4|0}while((h|0)<(k|0));b[(g&o)+8>>1]=1;e=a+32|0;c[(g&p)+32>>2]=c[(e&p)>>2];c[(l&p)>>2]=g;c[(l&p)+8>>2]=a;c[(l&p)+4>>2]=d;cc[f&31](l);if((c[(a&p)+24>>2]|0)>0)mg(c[(e&p)>>2]|0,c[(a&p)+20>>2]|0);h=a+0|0;e=g+0|0;k=h+40|0;do{c[(h&p)>>2]=c[(e&p)>>2];h=h+4|0;e=e+4|0}while((h|0)<(k|0));e=c[(l&p)+20>>2]|0}else e=0;i=m;return e|0}function Zk(a){a=a|0;var d=0,e=0,f=0;d=c[(a&p)>>2]|0;if(d){e=a+4|0;do{f=d;d=c[(d&p)>>2]|0;mg(c[(e&p)>>2]|0,f)}while((d|0)!=0)}c[(a&p)>>2]=0;b[(a&o)+24>>1]=0;c[(a&p)+8>>2]=0;c[(a&p)+12>>2]=0;c[(a&p)+20>>2]=0;b[(a&o)+26>>1]=1;return}function _k(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;g=k+4|0;d=c[(b&p)>>2]|0;e=d+16|0;do if((c[((c[(e&p)>>2]|0)&p)+20>>2]|0)==0?(a[(b&n)+450>>0]|0)==0:0){f=zm(c[(d&p)>>2]|0,0,d,g,0,542)|0;if(f){th(b,25496,h);c[(b&p)+12>>2]=f;d=1;break}f=c[(g&p)>>2]|0;c[((c[(e&p)>>2]|0)&p)+20>>2]=f;if((xg(f,c[(d&p)+72>>2]|0,-1,0)|0)==7){a[(d&n)+65>>0]=1;d=1}else d=0}else d=0;while(0);i=k;return d|0}function $k(a){a=a|0;var b=0;do if(a)if((c[3157]|0)>>>0<=a>>>0&(c[3158]|0)>>>0>a>>>0){c[2167]=(c[2167]|0)+-1;c[(a&p)>>2]=c[3160];c[3160]=a;a=(c[3161]|0)+1|0;c[3161]=a;c[3162]=(a|0)<(c[3156]|0)&1;break}else{b=lc[c[8792>>2]&127](a)|0;c[2168]=(c[2168]|0)-b;Wc(a);break}while(0);return}function al(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();q=t;m=c[(e&p)>>2]|0;if((a[(d&n)+15>>0]|0)!=0?(c[(d&p)+24>>2]|0)!=0:0)s=12;else s=3;do if((s|0)==3){l=d+204|0;if(((m|0)!=0?(c[((c[(l&p)>>2]|0)&p)+12>>2]|0)==0:0)?(r=d+152|0,(m|0)!=(c[(r&p)>>2]|0)):0){u=q;c[(u&p)>>2]=0;c[(u&p)+4>>2]=0;if(((a[(d&n)+16>>0]|0)!=0?(h=c[(d&p)+60>>2]|0,g=c[(h&p)>>2]|0,(g|0)!=0):0)?(k=rc[c[(g&p)+24>>2]&127](h,q)|0,(k|0)!=0):0){g=0;f=k}else{g=Go(m)|0;if(g){xn(d);h=Ho(c[(l&p)>>2]|0,m)|0;if(!h){s=d+200|0;$k(c[(s&p)>>2]|0);c[(s&p)>>2]=g;s=q;q=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0;l=jw(m|0,0,-1,-1)|0;s=jw(l|0,G|0,q|0,s|0)|0;s=qw(s|0,G|0,m|0,0)|0;c[(d&p)+24>>2]=s;c[(r&p)>>2]=m;s=12;break}else f=h}else{g=0;f=7}}$k(g);c[(e&p)>>2]=c[(r&p)>>2]}else s=12}while(0);if((s|0)==12){c[(e&p)>>2]=c[(d&p)+152>>2];g=d+142|0;if((f|0)<0)f=b[(g&o)>>1]|0;b[(g&o)>>1]=f;f=0}i=t;return f|0}function bl(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0;i=c[(d&p)+4>>2]|0;a:do if(a[(d&n)+9>>0]|0){if((c[(i&p)+76>>2]|0)!=(d|0)?(b[(i&o)+22>>1]&32)!=0:0){h=262;break}h=c[(i&p)+72>>2]|0;if(h){while(1){if(((c[(h&p)>>2]|0)!=(d|0)?(c[(h&p)+4>>2]|0)==(f|0):0)?(a[(h&n)+8>>0]|0)!=g<<24>>24:0)break;h=c[(h&p)+12>>2]|0;if(!h){h=0;break a}}if(g<<24>>24==2){h=i+22|0;b[(h&o)>>1]=e[(h&o)>>1]|64;h=262}else h=262}else h=0}else h=0;while(0);return h|0}function cl(b){b=b|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=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;H=i;i=i+64|0;if((i|0)>=(j|0))fa();G=H;D=H+28|0;C=H+24|0;m=H+20|0;t=H+48|0;v=H+16|0;w=H+12|0;A=H+8|0;B=H+32|0;if(!((a[(b&n)+15>>0]|0)!=0?(e=c[(b&p)+40>>2]|0,(e|0)!=0):0))F=3;do if((F|0)==3){E=b+208|0;f=c[(E&p)>>2]|0;a:do if(!f){z=b+16|0;do if(!(a[(z&n)>>0]|0)){h=b+176|0;g=b+180|0;while(1){e=fl(b,1)|0;if(!e)break;else if((e|0)!=5)break a;if(!(lc[c[(h&p)>>2]&127](c[(g&p)>>2]|0)|0)){e=5;break a}}u=b+17|0;if((d[(u&n)>>0]|0)<2){f=c[(b&p)>>2]|0;c[(G&p)>>2]=1;k=b+64|0;l=(c[(c[(k&p)>>2]&p)>>2]|0)!=0;if(l){h=1;e=0}else{e=pc[c[(f&p)+32>>2]&31](f,c[(b&p)+172>>2]|0,0,G)|0;h=(c[(G&p)>>2]|0)!=0}b:do if((e|0)==0&h){c[(D&p)>>2]=0;g=b+60|0;e=c[(g&p)>>2]|0;e=rc[c[((c[(e&p)>>2]|0)&p)+36>>2]&127](e,D)|0;if(!(c[(D&p)>>2]|e)){e=Io(b,C)|0;if(!e){if((c[(C&p)>>2]|0)!=0|l){do if(!l){c[(m&p)>>2]=2049;e=tc[c[(f&p)+24>>2]&31](f,c[(b&p)+172>>2]|0,c[(k&p)>>2]|0,2049,m)|0;if(!e)break;else if((e|0)!=14){h=0;break b}h=1;e=0;break b}while(0);a[(t&n)>>0]=0;e=c[(k&p)>>2]|0;e=tc[c[((c[(e&p)>>2]|0)&p)+8>>2]&31](e,t,1,0,0)|0;e=(e|0)==522?0:e;if(!l?(r=c[(k&p)>>2]|0,s=c[(r&p)>>2]|0,(s|0)!=0):0){lc[c[(s&p)+4>>2]&127](r)|0;c[(r&p)>>2]=0}h=(a[(t&n)>>0]|0)!=0&1;break}h=c[3164]|0;if(h)nc[h&3]();do if(((fl(b,2)|0)==0?(ac[c[(f&p)+28>>2]&63](f,c[(b&p)+172>>2]|0,0)|0,(a[(b&n)+4>>0]|0)==0):0)?(o=c[(g&p)>>2]|0,q=c[(o&p)>>2]|0,(q|0)!=0):0){if(!(a[(b&n)+13>>0]|0))rc[c[(q&p)+32>>2]&127](o,1)|0;if((a[(u&n)>>0]|0)==5)break;a[(u&n)>>0]=1}while(0);h=c[3166]|0;if(!h){h=0;e=0}else{nc[h&3]();h=0;e=0}}else h=0}else h=0}else h=0;while(0);if(e)break a;if(h)F=35}else F=35;do if((F|0)==35){if(a[(b&n)+14>>0]|0){e=776;break a}e=fl(b,4)|0;if(e)break a;f=b+64|0;if(!(c[(c[(f&p)>>2]&p)>>2]|0)){h=c[(b&p)>>2]|0;g=b+172|0;e=pc[c[(h&p)+32>>2]&31](h,c[(g&p)>>2]|0,0,v)|0;if((e|0)==0&(c[(v&p)>>2]|0)!=0){c[(w&p)>>2]=0;e=tc[c[(h&p)+24>>2]&31](h,c[(g&p)>>2]|0,c[(f&p)>>2]|0,2050,w)|0;if(!e)if(c[(w&p)>>2]&1){c[(G&p)>>2]=46645;c[(G&p)+4>>2]=10788;bd(14,14848,G);h=c[(f&p)>>2]|0;g=c[(h&p)>>2]|0;if(!g)e=14;else{lc[c[(g&p)+4>>2]&127](h)|0;c[(h&p)>>2]=0;e=14}}else e=0}}else e=0;if(!(c[(c[(f&p)>>2]&p)>>2]|0))if((a[(b&n)+4>>0]|0)==0?(x=c[(b&p)+60>>2]|0,y=c[(x&p)>>2]|0,(y|0)!=0):0){if(!(a[(b&n)+13>>0]|0))rc[c[(y&p)+32>>2]&127](x,1)|0;if((a[(u&n)>>0]|0)!=5){a[(u&n)>>0]=1;F=52}else F=52}else F=52;else{e=Jo(b)|0;if(!e){e=Ko(b,1)|0;a[(z&n)>>0]=0;F=52}}if((F|0)==52)if(!e)break;D=e&255;if(!((D|0)==10|(D|0)==13))break a;c[(b&p)+40>>2]=e;a[(z&n)>>0]=6;break a}while(0);h=b+12|0;if((a[(h&n)>>0]|0)==0?(a[(b&n)+23>>0]|0)!=0:0){c[(A&p)>>2]=0;e=Io(b,A)|0;if(e)break a;if(c[(A&p)>>2]|0){e=c[(b&p)+60>>2]|0;e=tc[c[((c[(e&p)>>2]|0)&p)+8>>2]&31](e,B,16,24,0)|0;if(!((e|0)==0|(e|0)==522))break a}else{g=B+0|0;f=g+16|0;do{a[(g&n)>>0]=0;g=g+1|0}while((g|0)<(f|0))}if(Zv(b+104|0,B,16)|0)xn(b)}if(!(a[(h&n)>>0]|0)){e=Io(b,C)|0;if(!e){g=c[(b&p)>>2]|0;f=c[(b&p)+212>>2]|0;if(!(c[(C&p)>>2]|0)){e=ac[c[(g&p)+28>>2]&63](g,f,0)|0;c[(D&p)>>2]=0;if((e|0)!=5898)F=68}else{e=pc[c[(g&p)+32>>2]&31](g,f,0,D)|0;F=68}if((F|0)==68){if(e)break;if(c[(D&p)>>2]|0){e=el(b,0)|0;break}}e=b+5|0;if((a[(e&n)>>0]|0)==5){a[(e&n)>>0]=0;e=0}else e=0}}else e=0}else e=0;while(0);f=c[(E&p)>>2]|0;if(!f)F=78;else F=74}else F=74;while(0);if((F|0)==74){c[(G&p)>>2]=0;Lo(f);f=c[(E&p)>>2]|0;g=0;do{g=g+1|0;e=Mo(f,G,0,g)|0}while((e|0)==-1);if(!(c[(G&p)>>2]|e))F=78;else{xn(b);F=78}}if((F|0)==78){if((a[(b&n)+16>>0]|0)==0&(e|0)==0)e=Io(b,b+24|0)|0;if(!e){a[(b&n)+16>>0]=1;e=0;break}}No(b)}while(0);i=H;return e|0}function dl(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;f=zg(c[(b&p)>>2]|0,d,g,f)|0;if(!f){g=c[(g&p)>>2]|0;f=c[(g&p)+8>>2]|0;c[(f&p)+56>>2]=c[(g&p)+4>>2];c[(f&p)+68>>2]=g;c[(f&p)+52>>2]=b;c[(f&p)+72>>2]=d;a[(f&n)+6>>0]=(d|0)==1?100:0;c[(e&p)>>2]=f;f=0}i=h;return f|0}function el(b,d){b=b|0;d=d|0;var e=0,f=0;do if((a[(b&n)+12>>0]|0)==0?(c[(b&p)+208>>2]|0)==0:0){d=c[(c[(b&p)+60>>2]&p)>>2]|0;if(!(a[(b&n)+4>>0]|0)){if((c[(d&p)>>2]|0)<=1){d=14;break}if(!(c[(d&p)+52>>2]|0)){d=14;break}}d=c[(b&p)+64>>2]|0;e=c[(d&p)>>2]|0;if(e){lc[c[(e&p)+4>>2]&127](d)|0;c[(d&p)>>2]=0}d=pn(b)|0;if(!d){a[(b&n)+5>>0]=5;a[(b&n)+16>>0]=0;d=0}}else f=10;while(0);if((f|0)==10){c[(d&p)>>2]=1;d=0}return d|0}function fl(b,d){b=b|0;d=d|0;var e=0,f=0;f=b+17|0;e=a[(f&n)>>0]|0;do if((e&255|0)<(d|0)|e<<24>>24==5){if(!(a[(b&n)+13>>0]|0)){e=c[(b&p)+60>>2]|0;e=rc[c[((c[(e&p)>>2]|0)&p)+28>>2]&127](e,d)|0;if(e)break;e=a[(f&n)>>0]|0}if(e<<24>>24!=5|(d|0)==4){a[(f&n)>>0]=d;e=0}else e=0}else e=0;while(0);return e|0}function gl(a){a=a|0;var b=0,d=0,e=0;b=c[(a&p)+4>>2]|0;a=c[(b&p)+444>>2]|0;if((a|0)!=0?(e=b+452|0,d=c[(e&p)>>2]|0,(d|0)>=0):0){a=rc[a&127](c[(b&p)+448>>2]|0,d)|0;if(!a)b=-1;else b=(c[(e&p)>>2]|0)+1|0;c[(e&p)>>2]=b}else a=0;return a|0}function hl(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;o=b+96|0;e=c[(o&p)>>2]|0;a:do if((e|0)<(d|0)?(a[(b&n)+6>>0]|0)!=0:0){f=b+92|0;s=rg(c[(f&p)>>2]|0,d*48|0,0)|0;if(!s)e=7;else{fw(s+(e*48|0)|0,0,(d-e|0)*48|0)|0;c[(f&p)>>2]=s;i=b+24|0;j=b+64|0;k=b+148|0;l=b+52|0;m=b+208|0;h=b+72|0;while(1){g=c[(i&p)>>2]|0;b=s+(e*48|0)|0;c[(s+(e*48|0)&p)+20>>2]=g;if((c[(c[(j&p)>>2]&p)>>2]|0)!=0?(r=h,q=c[(r&p)>>2]|0,r=c[(r&p)+4>>2]|0,(r|0)>0|(r|0)==0&q>>>0>0):0){c[(b&p)>>2]=q;c[(b&p)+4>>2]=r}else{c[(b&p)>>2]=c[(k&p)>>2];c[(b&p)+4>>2]=0}c[(s+(e*48|0)&p)+24>>2]=c[(l&p)>>2];f=qg(512,0)|0;if(!f)break;fw(f|0,0,512)|0;c[(f&p)>>2]=g;c[(s+(e*48|0)&p)+16>>2]=f;f=c[(m&p)>>2]|0;if(f){c[(s+(e*48|0)&p)+28>>2]=c[(f&p)+68>>2];c[(s+(e*48|0)&p)+32>>2]=c[(f&p)+76>>2];c[(s+(e*48|0)&p)+36>>2]=c[(f&p)+80>>2];c[(s+(e*48|0)&p)+40>>2]=c[(f&p)+104>>2]}e=e+1|0;c[(o&p)>>2]=e;if((e|0)>=(d|0)){e=0;break a}}c[(s+(e*48|0)&p)+16>>2]=f;e=7}}else e=0;while(0);return e|0}function il(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0;do if(e){f=c[(e&p)+4>>2]|0;if(!(c[(f&p)>>2]|0)){f=Oo(a,d,e)|0;break}e=f+26|0;g=b[(e&o)>>1]|0;if(!(g<<16>>16)){h=a+12|0;c[(h&p)>>2]=(c[(h&p)>>2]|0)+1}b[(e&o)>>1]=g+1<<16>>16;if((d|0)==1)c[(a&p)+44>>2]=f}else f=0;while(0);return f|0}function jl(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=a+96|0;d=c[(h&p)>>2]|0;if((d|0)>0){g=a+92|0;f=0;a=0;do{e=c[(g&p)>>2]|0;if((c[(e+(f*48|0)&p)+20>>2]|0)>>>0>=b>>>0){a=bi(c[(e+(f*48|0)&p)+16>>2]|0,b)|0|a;d=c[(h&p)>>2]|0}f=f+1|0}while((f|0)<(d|0))}else a=0;return a|0}function kl(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+32|0;if((i|0)>=(j|0))fa();y=A;u=A+16|0;v=A+12|0;x=A+8|0;s=c[(a&p)+68>>2]|0;a:do if((s|0)!=0?(b[(a&o)+40>>1]|0)!=0:0){t=d*383&8191;w=(s+33|0)>>>12;b:while(1){g=Po(a,w,u,v,x)|0;if(g)break a;g=(c[(u&p)>>2]|0)+(t<<1)|0;if(!(b[(g&o)>>1]|0))g=0;else{n=c[(x&p)>>2]|0;q=c[(u&p)>>2]|0;r=c[(v&p)>>2]|0;k=g;l=t;g=0;m=8192;while(1){h=(e[(k&o)>>1]|0)+n|0;if(h>>>0<=s>>>0)g=(c[(r+(e[(k&o)>>1]<<2)&p)>>2]|0)==(d|0)?h:g;if(!m){z=11;break b}l=l+1&8191;k=q+(l<<1)|0;if(!(b[(k&o)>>1]|0))break;else m=m+-1|0}}if((w|0)>0&(g|0)==0)w=w+-1|0;else{z=14;break}}if((z|0)==11){c[(y&p)>>2]=51262;c[(y&p)+4>>2]=10788;bd(11,13600,y);g=11;break}else if((z|0)==14){c[(f&p)>>2]=g;g=0;break}}else z=3;while(0);if((z|0)==3){c[(f&p)>>2]=0;g=0}i=A;return g|0}function ll(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;h=c[(b&p)+16>>2]|0;i=c[(b&p)+20>>2]|0;f=c[(h&p)+152>>2]|0;b=b+4|0;g=c[(b&p)>>2]|0;if(!d){d=sw(i+-1|0,0,f|0,((f|0)<0)<<31>>31|0)|0;j=c[(h&p)+60>>2]|0;d=tc[c[((c[(j&p)>>2]|0)&p)+8>>2]&31](j,g,f,d,G)|0;d=(d|0)==522?0:d}else{k=c[(h&p)+208>>2]|0;j=e[(k&o)+66>>1]|0;j=j<<16&65536|j&65024;d=sw(j|24|0,0,d+-1|0,0)|0;d=jw(d|0,G|0,56,0)|0;k=c[(k&p)+8>>2]|0;d=tc[c[((c[(k&p)>>2]|0)&p)+8>>2]&31](k,g,(j|0)<(f|0)?j:f,d,G)|0}do if((i|0)==1)if(!d){g=h+104|0;f=(c[(b&p)>>2]|0)+24|0;b=g+16|0;do{a[(g&n)>>0]=a[(f&n)>>0]|0;g=g+1|0;f=f+1|0}while((g|0)<(b|0));break}else{g=h+104|0;b=g+16|0;do{a[(g&n)>>0]=255;g=g+1|0}while((g|0)<(b|0));break}while(0);return d|0}function ml(a){a=a|0;var d=0,e=0;if(b[(a&o)+24>>1]&2)Qo(a,1);d=c[(a&p)+28>>2]|0;e=d+12|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+-1;if((c[(a&p)+20>>2]|0)==1)c[(d&p)+44>>2]=0;mc[c[8880>>2]&63](c[(d&p)+40>>2]|0,c[(a&p)>>2]|0,1);return}function nl(b){b=b|0;var d=0;d=a[(b&n)+16>>0]|0;do if(!(d<<24>>24==0|d<<24>>24==6)){if((d&255)<=1){if(a[(b&n)+4>>0]|0)break;Cl(b,0,0)|0;break}d=c[3164]|0;if(d)nc[d&3]();Hl(b)|0;d=c[3166]|0;if(d)nc[d&3]()}while(0);No(b);return}function ol(d){d=d|0;var e=0,f=0;f=d+26|0;e=(b[(f&o)>>1]|0)+-1<<16>>16;b[(f&o)>>1]=e;do if(!(e<<16>>16)){e=c[(d&p)+28>>2]|0;f=e+12|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+-1;if(b[(d&o)+24>>1]&2){if(!(c[(d&p)+36>>2]|0))break;Qo(d,3);break}if(a[(e&n)+28>>0]|0){if((c[(d&p)+20>>2]|0)==1)c[(e&p)+44>>2]=0;mc[c[8880>>2]&63](c[(e&p)+40>>2]|0,c[(d&p)>>2]|0,0)}}while(0);return}function pl(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;j=c[(e&p)+56>>2]|0;k=c[(e&p)+52>>2]|0;g=d[(e&n)+6>>0]|0;h=j+g|0;i=k+36|0;if(b[(k&o)+22>>1]&4)fw(h|0,0,(c[(i&p)>>2]|0)-g|0)|0;a[(h&n)>>0]=f;h=g+(f>>>1&4^12)|0;l=j+(g+1)|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;a[(j+g&n)+7>>0]=0;a[(j+g&n)+5>>0]=(c[(i&p)>>2]|0)>>>8;a[(j+g&n)+6>>0]=c[(i&p)>>2];b[(e&o)+16>>1]=(c[(i&p)>>2]|0)-h;Ro(e,f)|0;b[(e&o)+14>>1]=h;c[(e&p)+60>>2]=j+(c[(i&p)>>2]|0);c[(e&p)+64>>2]=j+(h&65535);a[(e&n)+1>>0]=0;b[(e&o)+20>>1]=(c[(k&p)+32>>2]|0)+65535;b[(e&o)+18>>1]=0;a[(e&n)>>0]=1;return}function ql(a){a=a|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+32|0;if((i|0)>=(j|0))fa();g=h+16|0;f=h;d=a+8|0;c[(g&p)>>2]=c[(d&p)>>2];c[(g&p)+4>>2]=c[(d&p)+4>>2];c[(g&p)+8>>2]=c[(d&p)+8>>2];c[(g&p)+12>>2]=c[(d&p)+12>>2];e=a+40|0;c[(f&p)>>2]=c[(e&p)>>2];c[(f&p)+4>>2]=c[(e&p)+4>>2];c[(f&p)+8>>2]=c[(e&p)+8>>2];c[(f&p)+12>>2]=c[(e&p)+12>>2];c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;c[(e&p)+8>>2]=0;c[(e&p)+12>>2]=0;Ol(a+24|0);e=c[(f&p)+8>>2]|0;if(e)do{jg(0,c[(e&p)+8>>2]|0);e=c[(e&p)>>2]|0}while((e|0)!=0);Ol(f);c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0;c[(d&p)+12>>2]=0;d=c[(g&p)+8>>2]|0;if(d)do{kg(0,c[(d&p)+8>>2]|0);d=c[(d&p)>>2]|0}while((d|0)!=0);Ol(g);Ol(a+56|0);c[(a&p)+72>>2]=0;d=a+78|0;e=b[(d&o)>>1]|0;if(e&1){f=a+4|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;b[(d&o)>>1]=e&65534}i=h;return}function rl(a){a=a|0;var d=0,e=0;e=a+332|0;d=c[(e&p)>>2]|0;c[(e&p)>>2]=0;if(d){a=c[(a&p)+4>>2]|0;if(a)do{e=a+88|0;b[(e&o)>>1]=b[(e&o)>>1]|8;a=c[(a&p)+52>>2]|0}while((a|0)!=0);do{a=d;d=c[(d&p)+24>>2]|0;An(a)}while((d|0)!=0)}return}function sl(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=a+20|0;b=c[(g&p)>>2]|0;j=a+16|0;d=c[(j&p)>>2]|0;if((b|0)>2){f=2;e=2;do{b=d+(f<<4)|0;if(!(c[(d+(f<<4)&p)+4>>2]|0)){mg(a,c[(b&p)>>2]|0);c[(b&p)>>2]=0}else{if((e|0)<(f|0)){d=d+(e<<4)|0;c[(d&p)>>2]=c[(b&p)>>2];c[(d&p)+4>>2]=c[(b&p)+4>>2];c[(d&p)+8>>2]=c[(b&p)+8>>2];c[(d&p)+12>>2]=c[(b&p)+12>>2]}e=e+1|0}f=f+1|0;b=c[(g&p)>>2]|0;d=c[(j&p)>>2]|0}while((f|0)<(b|0))}else e=2;fw(d+(e<<4)|0,0,b-e<<4|0)|0;c[(g&p)>>2]=e;if((e|0)<3?(h=c[(j&p)>>2]|0,i=a+456|0,(h|0)!=(i|0)):0){c[(i&p)>>2]=c[(h&p)>>2];c[(i&p)+4>>2]=c[(h&p)+4>>2];c[(i&p)+8>>2]=c[(h&p)+8>>2];c[(i&p)+12>>2]=c[(h&p)+12>>2];c[(i&p)+16>>2]=c[(h&p)+16>>2];c[(i&p)+20>>2]=c[(h&p)+20>>2];c[(i&p)+24>>2]=c[(h&p)+24>>2];c[(i&p)+28>>2]=c[(h&p)+28>>2];mg(a,h);c[(j&p)>>2]=i}return}function tl(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();v=y;s=c[(f&p)+16>>2]|0;u=s+152|0;k=((c[(s&p)+148>>2]|0)>>>0)/((c[(u&p)>>2]|0)>>>0)|0;x=s+20|0;a[(x&n)>>0]=d[(x&n)>>0]|0|4;r=f+20|0;l=c[(r&p)>>2]|0;f=l+-1&0-k;w=f+1|0;h=~f;g=c[(s&p)+24>>2]|0;if(l>>>0<=g>>>0){if((f+k|0)>>>0>g>>>0)k=g+1+h|0}else k=l+1+h|0;a:do if((k|0)>0){q=s+56|0;t=s+204|0;m=0;f=0;while(1){h=m+w|0;if((h|0)!=(l|0)?(di(c[(q&p)>>2]|0,h)|0)!=0:0){l=ac[c[8876>>2]&63](c[((c[(t&p)>>2]|0)&p)+40>>2]|0,h,0)|0;h=il(c[(t&p)>>2]|0,h,l)|0;c[(v&p)>>2]=h;if(!h)g=0;else{f=(b[(h&o)+24>>1]&4)==0?f:1;Bg(h);g=0}}else if((h|0)==(((c[2514]|0)/(c[(u&p)>>2]|0)|0)+1|0))g=0;else{g=zg(s,h,v,0)|0;if(g)break a;l=c[(v&p)>>2]|0;g=ul(l)|0;f=(b[(l&o)+24>>1]&4)==0?f:1;Bg(l)}m=m+1|0;h=(g|0)==0;if(!((m|0)<(k|0)&h))break;l=c[(r&p)>>2]|0}if(h&(f|0)!=0){f=0;do{s=f+w|0;g=ac[c[8876>>2]&63](c[((c[(t&p)>>2]|0)&p)+40>>2]|0,s,0)|0;g=il(c[(t&p)>>2]|0,s,g)|0;if(g){s=g+24|0;b[(s&o)>>1]=e[(s&o)>>1]|0|4;Bg(g)}f=f+1|0}while((f|0)!=(k|0));g=0}}else g=0;while(0);a[(x&n)>>0]=(d[(x&n)>>0]|0)&251;i=y;return g|0}function ul(f){f=f|0;var g=0,h=0,k=0,l=0,m=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=i;i=i+16|0;if((i|0)>=(j|0))fa();C=E+4|0;t=E;D=c[(f&p)+16>>2]|0;x=D+16|0;a:do if((a[(x&n)>>0]|0)==2){s=c[(D&p)>>2]|0;k=c[(D&p)+40>>2]|0;if(!k){do if((c[(D&p)+208>>2]|0)==0?(q=D+5|0,(a[(q&n)>>0]|0)!=2):0){r=D+24|0;k=c[(r&p)>>2]|0;h=qg(512,0)|0;if(!h){c[(D&p)+56>>2]=0;g=7;break a}fw(h|0,0,512)|0;c[(h&p)>>2]=k;u=D+56|0;c[(u&p)>>2]=h;l=D+64|0;m=c[(l&p)>>2]|0;do if(!(c[(m&p)>>2]|0)){if((a[(q&n)>>0]|0)==4){k=m+0|0;h=k+40|0;do{c[(k&p)>>2]=0;k=k+4|0}while((k|0)<(h|0));c[(m&p)>>2]=14696;w=17;break}h=a[(D&n)+12>>0]|0;c[(t&p)>>2]=0;if((h<<24>>24==0?(c[(r&p)>>2]|0)!=0:0)?(g=c[(D&p)+60>>2]|0,g=ac[c[((c[(g&p)>>2]|0)&p)+40>>2]&63](g,20,t)|0,(g|0)!=12):0){k=(g|0)==0;if(k&(c[(t&p)>>2]|0)!=0){g=1032;break}if(k)w=15}else w=15;if((w|0)==15)g=tc[c[(s&p)+24>>2]&31](s,c[(D&p)+172>>2]|0,c[(l&p)>>2]|0,h<<24>>24!=0?4110:2054,0)|0;if(!g)w=17}else w=17;while(0);if((w|0)==17){c[(D&p)+44>>2]=0;g=D+72|0;a[(D&n)+19>>0]=0;c[(g&p)>>2]=0;c[(g&p)+4>>2]=0;c[(g&p)+8>>2]=0;c[(g&p)+12>>2]=0;g=So(D)|0;if(!g)break}ei(c[(u&p)>>2]|0);c[(u&p)>>2]=0;if(!g){w=20;break a}else break a}while(0);a[(x&n)>>0]=3;w=20}else g=k}else w=20;while(0);b:do if((w|0)==20){To(f);y=D+56|0;z=f+20|0;m=c[(z&p)>>2]|0;do if(!(di(c[(y&p)>>2]|0,m)|0))if(!(c[(D&p)+208>>2]|0)){if(m>>>0<=(c[(D&p)+28>>2]|0)>>>0?(B=D+64|0,A=c[(B&p)>>2]|0,(c[(A&p)>>2]|0)!=0):0){w=D+72|0;q=w;u=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;v=c[(f&p)+4>>2]|0;k=c[(D&p)+48>>2]|0;x=D+152|0;l=(c[(x&p)>>2]|0)+-200|0;if((l|0)>0)do{k=(d[(v+l&n)>>0]|0)+k|0;l=l+-200|0}while((l|0)>0);t=f+24|0;b[(t&o)>>1]=e[(t&o)>>1]|4;a[(C&n)>>0]=m>>>24;t=C+1|0;a[(t&n)>>0]=m>>>16;s=C+2|0;a[(s&n)>>0]=m>>>8;r=C+3|0;a[(r&n)>>0]=m;g=tc[c[((c[(A&p)>>2]|0)&p)+12>>2]&31](A,C,4,u,q)|0;if(g)break b;m=c[(B&p)>>2]|0;g=c[(x&p)>>2]|0;h=jw(u|0,q|0,4,0)|0;l=G;g=tc[c[((c[(m&p)>>2]|0)&p)+12>>2]&31](m,v,g,h,l)|0;if(g)break b;u=c[(B&p)>>2]|0;g=c[(x&p)>>2]|0;g=jw(h|0,l|0,g|0,((g|0)<0)<<31>>31|0)|0;a[(C&n)>>0]=k>>>24;a[(t&n)>>0]=k>>>16;a[(s&n)>>0]=k>>>8;a[(r&n)>>0]=k;g=tc[c[((c[(u&p)>>2]|0)&p)+12>>2]&31](u,C,4,g,G)|0;if(g)break b;g=(c[(x&p)>>2]|0)+8|0;u=w;u=jw(g|0,((g|0)<0)<<31>>31|0,c[(u&p)>>2]|0,c[(u&p)+4>>2]|0)|0;g=w;c[(g&p)>>2]=u;c[(g&p)+4>>2]=G;g=D+44|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=bi(c[(y&p)>>2]|0,c[(z&p)>>2]|0)|0;g=jl(D,c[(z&p)>>2]|0)|0|g;if(!g){w=34;break}else break b}if((a[(x&n)>>0]|0)!=4){w=f+24|0;b[(w&o)>>1]=e[(w&o)>>1]|4;w=34}else w=34}else w=34;else if((c[(D&p)+96>>2]|0)!=0?(Uo(f)|0)!=0:0)w=34;else g=0;while(0);if((w|0)==34)if((c[(D&p)+96>>2]|0)>0?(Uo(f)|0)!=0:0)g=Vo(f)|0;else g=0;k=D+24|0;h=c[(z&p)>>2]|0;if((c[(k&p)>>2]|0)>>>0<h>>>0)c[(k&p)>>2]=h}while(0);i=E;return g|0}function vl(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+128|0;if((i|0)>=(j|0))fa();k=l;e=c[(a&p)>>2]|0;d=(e|0)==0;if(!d){b=e;do{a=b;b=c[(b&p)+32>>2]|0;c[(a&p)+12>>2]=b}while((b|0)!=0);b=k+0|0;a=b+128|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(a|0));if(d)a=0;else{g=k+124|0;do{b=e+12|0;a=e;e=c[(b&p)>>2]|0;c[(b&p)>>2]=0;b=0;do{f=k+(b<<2)|0;d=c[(f&p)>>2]|0;if(!d){d=f;h=8;break}a=Wo(d,a)|0;c[(f&p)>>2]=0;b=b+1|0}while((b|0)<31);if((h|0)==8){h=0;c[(d&p)>>2]=a}if((b|0)==31)c[(g&p)>>2]=Wo(c[(g&p)>>2]|0,a)|0}while((e|0)!=0);a=c[(k&p)>>2]|0}}else{b=k+0|0;a=b+128|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(a|0));a=0}b=1;do{a=Wo(a,c[(k+(b<<2)&p)>>2]|0)|0;b=b+1|0}while((b|0)!=32);i=l;return a|0}function wl(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,J=0,K=0,L=0,M=0;M=i;i=i+80|0;if((i|0)>=(j|0))fa();s=M+32|0;t=M+28|0;C=M;v=M+40|0;K=M+24|0;c[(K&p)>>2]=f;z=(h|0)==0;if(!z){c[(K&p)>>2]=f;if(!f){f=0;q=0}else{q=0;m=K;do{A=(c[(f&p)+20>>2]|0)>>>0>g>>>0;H=f+12|0;q=q+(A&1^1)|0;m=A?m:H;f=c[(H&p)>>2]|0;c[(m&p)>>2]=f}while((f|0)!=0);f=c[(K&p)>>2]|0}}else q=1;H=e+192|0;c[(H&p)>>2]=(c[(H&p)>>2]|0)+q;if((c[(f&p)+20>>2]|0)==1)yl(f);I=c[(e&p)+208>>2]|0;J=c[(e&p)+152>>2]|0;u=a[(e&n)+10>>0]|0;A=u&255;m=I+40|0;if(!(b[(m&o)>>1]|0)){do if(c[((c[(c[(I&p)+32>>2]&p)>>2]|0)&p)+96>>2]|0){cd(4,s);q=I+43|0;if(!(a[(q&n)>>0]|0)){k=c[(I&p)+4>>2]|0;k=pc[c[((c[(k&p)>>2]|0)&p)+56>>2]&31](k,4,4,10)|0;if((k|0)==5){B=14;break}else if(k)break}Xo(I,c[(s&p)>>2]|0);if(!(a[(q&n)>>0]|0)){B=c[(I&p)+4>>2]|0;pc[c[((c[(B&p)>>2]|0)&p)+56>>2]&31](B,4,4,9)|0;B=14}else B=14}else{q=I+43|0;B=14}while(0);if((B|0)==14){if(!(a[(q&n)>>0]|0)){H=c[(I&p)+4>>2]|0;pc[c[((c[(H&p)>>2]|0)&p)+56>>2]&31](H,3,1,5)|0}b[(m&o)>>1]=-1;q=0;do{q=q+1|0;k=Mo(I,t,1,q)|0}while((k|0)==-1)}if(!k)B=19}else B=19;a:do if((B|0)==19){H=I+68|0;t=c[(H&p)>>2]|0;if(!t){a[(v&n)>>0]=55;a[(v&n)+1>>0]=127;a[(v&n)+2>>0]=6;a[(v&n)+3>>0]=-126;a[(v&n)+4>>0]=0;a[(v&n)+5>>0]=45;a[(v&n)+6>>0]=-30;a[(v&n)+7>>0]=24;a[(v&n)+8>>0]=J>>>24;a[(v&n)+9>>0]=J>>>16;a[(v&n)+10>>0]=J>>>8;a[(v&n)+11>>0]=J;y=c[(I&p)+104>>2]|0;a[(v&n)+12>>0]=y>>>24;a[(v&n)+13>>0]=y>>>16;a[(v&n)+14>>0]=y>>>8;a[(v&n)+15>>0]=y;if(!y)cd(8,I+84|0);l=I+84|0;q=l;q=d[(q&n)>>0]|d[(q&n)+1>>0]<<8|d[(q&n)+2>>0]<<16|d[(q&n)+3>>0]<<24;l=l+4|0;l=d[(l&n)>>0]|d[(l&n)+1>>0]<<8|d[(l&n)+2>>0]<<16|d[(l&n)+3>>0]<<24;s=v+16|0;m=s;a[(m&n)>>0]=q;a[(m&n)+1>>0]=q>>8;a[(m&n)+2>>0]=q>>16;a[(m&n)+3>>0]=q>>24;s=s+4|0;a[(s&n)>>0]=l;a[(s&n)+1>>0]=l>>8;a[(s&n)+2>>0]=l>>16;a[(s&n)+3>>0]=l>>24;s=v+24|0;l=v;m=0;q=0;do{m=m+q+(c[(l&p)>>2]|0)|0;q=m+q+(c[(l&p)+4>>2]|0)|0;l=l+8|0}while(l>>>0<s>>>0);a[(s&n)>>0]=m>>>24;a[(v&n)+25>>0]=m>>>16;a[(v&n)+26>>0]=m>>>8;a[(v&n)+27>>0]=m;a[(v&n)+28>>0]=q>>>24;a[(v&n)+29>>0]=q>>>16;a[(v&n)+30>>0]=q>>>8;a[(v&n)+31>>0]=q;c[(I&p)+36>>2]=J;a[(I&n)+65>>0]=0;c[(I&p)+76>>2]=m;c[(I&p)+80>>2]=q;a[(I&n)+47>>0]=1;q=I+8|0;k=c[(q&p)>>2]|0;k=tc[c[((c[(k&p)>>2]|0)&p)+12>>2]&31](k,v,32,0,0)|0;if(k)break;if((a[(I&n)+48>>0]|0)!=0&u<<24>>24!=0?(r=c[(q&p)>>2]|0,r=rc[c[((c[(r&p)>>2]|0)&p)+20>>2]&127](r,A&19)|0,(r|0)!=0):0){k=r;break}}else q=I+8|0;c[(C&p)>>2]=I;v=c[(q&p)>>2]|0;c[(C&p)+4>>2]=v;w=C+8|0;x=w;c[(x&p)>>2]=0;c[(x&p)+4>>2]=0;c[(C&p)+16>>2]=A;c[(C&p)+20>>2]=J;x=J+24|0;y=((x|0)<0)<<31>>31;m=sw(t|0,0,x|0,y|0)|0;m=jw(m|0,G|0,32,0)|0;k=G;if(!f){l=m;u=0}else{r=k;l=t;u=f;while(1){t=l+1|0;if(z)l=0;else l=(c[(u&p)+12>>2]|0)==0?g:0;k=Yo(C,u,l,m,r)|0;if(k)break a;m=jw(m|0,r|0,x|0,y|0)|0;k=G;s=c[(u&p)+12>>2]|0;if(!s){l=m;break}else{r=k;l=t;u=s}}}z=(h|0)!=0;do if(!((A&32|0)==0|z^1)){if(!(a[(I&n)+49>>0]|0)){m=0;k=rc[c[((c[(v&p)>>2]|0)&p)+20>>2]&127](v,A&19)|0;break}q=c[(q&p)>>2]|0;m=c[((c[(q&p)>>2]|0)&p)+44>>2]|0;if(m){q=lc[m&127](q)|0;if((q|0)<32){m=512;q=0}else B=37}else{q=4096;B=37}if((B|0)==37){B=(q|0)>65536;m=B?65536:q;q=B?0:((q|0)<0)<<31>>31}B=jw(l|0,k|0,-1,-1)|0;B=jw(B|0,G|0,m|0,q|0)|0;s=G;r=rw(B|0,s|0,m|0,q|0)|0;r=dw(B|0,s|0,r|0,G|0)|0;s=G;B=w;c[(B&p)>>2]=r;c[(B&p)+4>>2]=s;if((k|0)<(s|0)|(k|0)==(s|0)&l>>>0<r>>>0){q=k;m=0;while(1){k=Yo(C,u,g,l,q)|0;if(k)break a;l=jw(l|0,q|0,x|0,y|0)|0;q=G;m=m+1|0;if(!((q|0)<(s|0)|(q|0)==(s|0)&l>>>0<r>>>0)){k=0;break}}}else{m=0;k=0}}else{m=0;k=0}while(0);if((z?(D=I+47|0,(a[(D&n)>>0]|0)!=0):0)?(F=I+16|0,E=c[(F&p)>>2]|0,F=c[(F&p)+4>>2]|0,(F|0)>-1|(F|0)==-1&E>>>0>4294967295):0){h=sw(m+t|0,0,x|0,y|0)|0;h=jw(h|0,G|0,32,0)|0;C=G;B=(C|0)>(F|0)|(C|0)==(F|0)&h>>>0>E>>>0;Zo(I,B?h:E,B?C:F);a[(D&n)>>0]=0}l=c[(H&p)>>2]|0;if((f|0)!=0&(k|0)==0)do{l=l+1|0;k=_o(I,l,c[(f&p)+20>>2]|0)|0;f=c[(f&p)+12>>2]|0}while((f|0)!=0&(k|0)==0);f=(k|0)==0;if(f&(m|0)>0){q=u+20|0;do{l=l+1|0;m=m+-1|0;k=_o(I,l,c[(q&p)>>2]|0)|0;f=(k|0)==0}while(f&(m|0)>0)}if(f){b[(I&o)+66>>1]=J&65280|J>>>16;c[(H&p)>>2]=l;if(z){H=I+60|0;c[(H&p)>>2]=(c[(H&p)>>2]|0)+1;c[(I&p)+72>>2]=g;$o(I);c[(I&p)+12>>2]=l}}else if(k)break;l=e+88|0;k=c[(l&p)>>2]|0;if((k|0)!=0?(L=c[(K&p)>>2]|0,(L|0)!=0):0){f=k;k=L;while(1){ap(f,c[(k&p)+20>>2]|0,c[(k&p)+4>>2]|0);k=c[(k&p)+12>>2]|0;if(!k){k=0;break a}f=c[(l&p)>>2]|0}}else k=0}while(0);i=M;return k|0}function xl(d){d=d|0;var f=0,g=0;f=d+24|0;if(((b[(f&o)>>1]&2)!=0?(Qo(d,1),b[(f&o)>>1]=e[(f&o)>>1]&65529,(b[(d&o)+26>>1]|0)==0):0)?(g=c[(d&p)+28>>2]|0,(a[(g&n)+28>>0]|0)!=0):0){if((c[(d&p)+20>>2]|0)==1)c[(g&p)+44>>2]=0;mc[c[8880>>2]&63](c[(g&p)+40>>2]|0,c[(d&p)>>2]|0,0)}return}function yl(b){b=b|0;var e=0,f=0,g=0,h=0,i=0;f=c[(b&p)+16>>2]|0;f=((d[(f&n)+105>>0]|0)<<16|(d[(f&n)+104>>0]|0)<<24|(d[(f&n)+106>>0]|0)<<8|(d[(f&n)+107>>0]|0))+1|0;b=b+4|0;e=c[(b&p)>>2]|0;i=f>>>24&255;a[(e&n)+24>>0]=i;h=f>>>16&255;a[(e&n)+25>>0]=h;g=f>>>8&255;a[(e&n)+26>>0]=g;f=f&255;a[(e&n)+27>>0]=f;e=c[(b&p)>>2]|0;a[(e&n)+92>>0]=i;a[(e&n)+93>>0]=h;a[(e&n)+94>>0]=g;a[(e&n)+95>>0]=f;b=c[(b&p)>>2]|0;a[(b&n)+96>>0]=0;a[(b&n)+97>>0]=45;a[(b&n)+98>>0]=-26;a[(b&n)+99>>0]=9;return}function zl(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+32|0;if((i|0)>=(j|0))fa();r=y+16|0;u=y;k=bp(f)|0;a:do if(!k){do if(!(a[(f&n)+7>>0]|0)){w=f+64|0;if((c[(c[(w&p)>>2]&p)>>2]|0)!=0?(a[(f&n)+5>>0]|0)!=4:0){q=c[(f&p)+60>>2]|0;q=lc[c[((c[(q&p)>>2]|0)&p)+48>>2]&127](q)|0;v=(q&512|0)==0;if(v){l=u;c[(l&p)>>2]=-117058087;c[(l&p)+4>>2]=-681336544;l=c[(f&p)+44>>2]|0;a[(u&n)+8>>0]=l>>>24;a[(u&n)+9>>0]=l>>>16;a[(u&n)+10>>0]=l>>>8;a[(u&n)+11>>0]=l;l=f+72|0;k=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if((k|0)==0&(l|0)==0){l=0;k=0}else{k=jw(k|0,l|0,-1,-1)|0;l=c[(f&p)+148>>2]|0;k=qw(k|0,G|0,l|0,0)|0;k=jw(k|0,G|0,1,0)|0;l=sw(k|0,G|0,l|0,0)|0;k=G}m=c[(w&p)>>2]|0;m=tc[c[((c[(m&p)>>2]|0)&p)+8>>2]&31](m,r,8,l,k)|0;if(!m){if(!(Zv(r,14808,8)|0)){s=c[(w&p)>>2]|0;s=tc[c[((c[(s&p)>>2]|0)&p)+12>>2]&31](s,14976,1,l,k)|0;t=12}}else{s=m;t=12}if((t|0)==12?!((s|0)==0|(s|0)==522):0){h=s;break a}k=q&1024;if((a[(f&n)+8>>0]|0)!=0&(k|0)==0?(h=c[(w&p)>>2]|0,h=rc[c[((c[(h&p)>>2]|0)&p)+20>>2]&127](h,d[(f&n)+11>>0]|0)|0,(h|0)!=0):0)break a;t=c[(w&p)>>2]|0;h=f+80|0;h=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,u,12,c[(h&p)>>2]|0,c[(h&p)+4>>2]|0)|0;if(h)break a}else k=q&1024;if((k|0)==0?(u=c[(w&p)>>2]|0,x=a[(f&n)+11>>0]|0,x=rc[c[((c[(u&p)>>2]|0)&p)+20>>2]&127](u,(x<<24>>24==3?16:0)|x&255)|0,(x|0)!=0):0){h=x;break a}s=f+72|0;t=c[(s&p)+4>>2]|0;u=f+80|0;c[(u&p)>>2]=c[(s&p)>>2];c[(u&p)+4>>2]=t;if((g|0)==0|v^1)break;c[(f&p)+44>>2]=0;h=So(f)|0;if(!h)break;else break a}t=f+72|0;u=c[(t&p)+4>>2]|0;v=f+80|0;c[(v&p)>>2]=c[(t&p)>>2];c[(v&p)+4>>2]=u}while(0);k=c[(f&p)+204>>2]|0;h=c[(k&p)>>2]|0;if(h)do{v=h+24|0;b[(v&o)>>1]=e[(v&o)>>1]&65531;h=c[(h&p)+32>>2]|0}while((h|0)!=0);c[(k&p)+8>>2]=c[(k&p)+4>>2];a[(f&n)+16>>0]=4;h=0}else h=k;while(0);i=y;return h|0}function Al(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();l=y;x=d+60|0;g=c[(x&p)>>2]|0;if(!((c[(g&p)>>2]|0)==0?(f=c[(d&p)>>2]|0,f=tc[c[(f&p)+24>>2]&31](f,0,g,c[(d&p)+144>>2]&556897|30,0)|0,(f|0)!=0):0)){g=d+36|0;f=c[(g&p)>>2]|0;h=d+24|0;k=c[(h&p)>>2]|0;do if(f>>>0<k>>>0){if((c[(e&p)+12>>2]|0)==0?(c[(e&p)+20>>2]|0)>>>0<=f>>>0:0)break;q=c[(d&p)+152>>2]|0;q=sw(k|0,0,q|0,((q|0)<0)<<31>>31|0)|0;r=l;c[(r&p)>>2]=q;c[(r&p)+4>>2]=G;r=c[(x&p)>>2]|0;ac[c[((c[(r&p)>>2]|0)&p)+40>>2]&63](r,5,l)|0;c[(g&p)>>2]=c[(h&p)>>2]}while(0);if(!e)f=0;else{s=d+24|0;t=d+152|0;u=d+104|0;v=d+32|0;w=d+192|0;r=d+88|0;do{q=c[(e&p)+20>>2]|0;if(q>>>0<=(c[(s&p)>>2]|0)>>>0?(b[(e&o)+24>>1]&32)==0:0){l=c[(t&p)>>2]|0;d=sw(l|0,((l|0)<0)<<31>>31|0,q+-1|0,0)|0;k=G;h=(q|0)==1;if(h){yl(e);l=c[(t&p)>>2]|0}m=e+4|0;g=c[(m&p)>>2]|0;f=c[(x&p)>>2]|0;f=tc[c[((c[(f&p)>>2]|0)&p)+12>>2]&31](f,g,l,d,k)|0;if(h){d=u+0|0;l=g+24|0;k=d+16|0;do{a[(d&n)>>0]=a[(l&n)>>0]|0;d=d+1|0;l=l+1|0}while((d|0)<(k|0))}if(q>>>0>(c[(v&p)>>2]|0)>>>0)c[(v&p)>>2]=q;c[(w&p)>>2]=(c[(w&p)>>2]|0)+1;ap(c[(r&p)>>2]|0,q,c[(m&p)>>2]|0)}else f=0;e=c[(e&p)+12>>2]|0}while((f|0)==0&(e|0)!=0)}}i=y;return f|0}function Bl(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();m=s;o=b+60|0;f=c[(o&p)>>2]|0;g=c[(f&p)>>2]|0;do if((g|0)!=0?((a[(b&n)+16>>0]|0)+-1&255)>2:0){q=c[(b&p)+152>>2]|0;g=rc[c[(g&p)+24>>2]&127](f,m)|0;h=((q|0)<0)<<31>>31;k=sw(q|0,h|0,d|0,0)|0;l=G;if(!g){f=m;g=c[(f&p)>>2]|0;f=c[(f&p)+4>>2]|0;if((g|0)==(k|0)&(f|0)==(l|0))e=0;else{if(!((f|0)>(l|0)|(f|0)==(l|0)&g>>>0>k>>>0)){m=jw(g|0,f|0,q|0,h|0)|0;g=G;if(!((g|0)>(l|0)|(g|0)==(l|0)&m>>>0>k>>>0)){r=c[(b&p)+200>>2]|0;fw(r|0,0,q|0)|0;o=c[(o&p)>>2]|0;e=dw(k|0,l|0,q|0,h|0)|0;e=tc[c[((c[(o&p)>>2]|0)&p)+12>>2]&31](o,r,q,e,G)|0;r=9}}else{e=c[(o&p)>>2]|0;e=ac[c[((c[(e&p)>>2]|0)&p)+16>>2]&63](e,k,l)|0;r=9}if((r|0)==9?(e|0)!=0:0)break;c[(b&p)+32>>2]=d;e=0}}else e=g}else e=0;while(0);i=s;return e|0}
|
|
function Zr(f,g,k,l,m){f=f|0;g=g|0;k=k|0;l=l|0;m=m|0;var r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0;B=i;i=i+16|0;if((i|0)>=(j|0))fa();y=B;z=B+8|0;c[(z&p)>>2]=0;a:do if(!g){c[(m&p)>>2]=0;r=0}else{s=a[(g&n)>>0]|0;if(s<<24>>24==-98)do{g=c[(g&p)+12>>2]|0;s=a[(g&n)>>0]|0}while(s<<24>>24==-98);if(s<<24>>24==-97)u=d[(g&n)+38>>0]|0;else u=s&255;if((u|0)==38){t=Xq(c[(g&p)+8>>2]|0,0)|0;r=Zr(f,c[(g&p)+12>>2]|0,k,t,m)|0;s=c[(m&p)>>2]|0;if(!s)break;gm(s,t,1);fm(c[(m&p)>>2]|0,l,1);break}else if((u|0)==157){g=c[(g&p)+12>>2]|0;u=a[(g&n)>>0]|0;if((u&-2)<<24>>24==-124){t=-1;s=-1;x=u&255;u=26016;A=12}else A=30}else{t=1;s=0;x=u;u=10360;A=12}b:do if((A|0)==12){c:do switch(x|0){case 157:{g=c[(g&p)+12>>2]|0;A=30;break b}case 97:case 132:case 133:{r=mh(f,40,0)|0;if(!r){c[(z&p)>>2]=r;break c}v=r+0|0;w=v+40|0;do{a[(v&n)>>0]=0;v=v+1|0}while((v|0)<(w|0));b[(r&o)+8>>1]=1;c[(r&p)+32>>2]=f;c[(z&p)>>2]=r;do if(!(c[(g&p)+4>>2]&1024)){t=c[(g&p)+8>>2]|0;c[(y&p)>>2]=u;c[(y&p)+4>>2]=t;t=uh(f,19456,y)|0;if(!t)break c;if(r)Xg(r,t,-1,1,75)|0}else{u=c[(g&p)+8>>2]|0;u=sw(u|0,((u|0)<0)<<31>>31|0,t|0,s|0)|0;t=G;g=r+8|0;if(!(b[(g&o)>>1]&9312)){z=r;c[(z&p)>>2]=u;c[(z&p)+4>>2]=t;b[(g&o)>>1]=4;break}else{Zg(r,u,t);break}}while(0);if((x&-2|0)==132&l<<24>>24==65)fm(r,67,1);else fm(r,l,1);s=r+8|0;g=e[(s&o)>>1]|0;if(g&12)b[(s&o)>>1]=g&65533;if(k<<24>>24==1){s=r;r=0;break b}s=r;r=Yl(r,k&255)|0;break b}case 101:{r=mh(f,40,0)|0;if(!r){c[(z&p)>>2]=r;break c}else{v=r+0|0;w=v+40|0;do{a[(v&n)>>0]=0;v=v+1|0}while((v|0)<(w|0));b[(r&o)+8>>1]=1;c[(r&p)+32>>2]=f;c[(z&p)>>2]=r;s=r;r=0;break b}}case 134:{r=mh(f,40,0)|0;if(!r){c[(z&p)>>2]=r;break c}v=r+0|0;w=v+40|0;do{a[(v&n)>>0]=0;v=v+1|0}while((v|0)<(w|0));b[(r&o)+8>>1]=1;c[(r&p)+32>>2]=f;c[(z&p)>>2]=r;s=(c[(g&p)+8>>2]|0)+2|0;g=s;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;z=(g-s&1073741823)+-1|0;Xg(r,Yt(f,s,z)|0,(z|0)/2|0,0,75)|0;s=r;r=0;break b}default:{s=0;r=0;break b}}while(0);a[(f&n)+65>>0]=1;mg(f,0);Mh(r);r=7;break a}while(0);if((A|0)==30){y=(Zr(f,g,k,l,z)|0)==0;s=c[(z&p)>>2]|0;if(y&(s|0)!=0){op(s);t=s+8|0;g=b[(t&o)>>1]|0;do if(!(g&8)){u=s;r=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((r|0)==0&(u|0)==-2147483648){h[(s&q)>>3]=9223372036854775808.0;b[(t&o)>>1]=g&48640|8;break}else{y=dw(0,0,r|0,u|0)|0;z=s;c[(z&p)>>2]=y;c[(z&p)+4>>2]=G;break}}else h[(s&q)>>3]=-+h[(s&q)>>3];while(0);fm(s,l,k);r=0}else r=0}c[(m&p)>>2]=s}while(0);i=B;return r|0}function _r(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;do if((d|0)!=0?(g=b+19|0,h=a[(g&n)>>0]|0,(h&255)<8):0){f=0;e=b+116|0;while(1){if((c[(e&p)+12>>2]|0)==(d|0)){f=5;break}f=f+1|0;if((f|0)>=10){f=7;break}else e=e+20|0}if((f|0)==5){a[(e&n)+6>>0]=1;break}else if((f|0)==7){a[(g&n)>>0]=h+1<<24>>24;c[(b+((h&255)<<2)&p)+24>>2]=d;break}}while(0);return}function $r(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+32|0;if((i|0)>=(j|0))fa();o=q;e=b+484|0;l=c[(e&p)>>2]|0;m=c[(b&p)>>2]|0;do if((l|0)!=0?(bs(b),c[(b&p)+512>>2]=0,(c[(l&p)+52>>2]|0)>=1):0){if(a[(m&n)+145>>0]|0)if(!(Ik((c[(l&p)+68>>2]|0)+8|0,c[(l&p)>>2]|0,l)|0)){c[(e&p)>>2]=0;break}else{a[(m&n)+65>>0]=1;break}if(d)c[(b&p)+500>>2]=(c[(d&p)>>2]|0)-(c[(b&p)+496>>2]|0)+(c[(d&p)+4>>2]|0);c[(o&p)>>2]=b+496;k=uh(m,25256,o)|0;d=c[(l&p)+68>>2]|0;a:do if(d){f=c[(m&p)+20>>2]|0;if((f|0)>0){g=c[(m&p)+16>>2]|0;h=0;while(1){e=h+1|0;if((c[(g+(h<<4)&p)+12>>2]|0)==(d|0)){e=h;break a}if((e|0)<(f|0))h=e;else break}}else e=0}else e=-1e6;while(0);g=c[(l&p)>>2]|0;h=c[(b&p)+384>>2]|0;c[(o&p)>>2]=c[((c[(m&p)+16>>2]|0)+(e<<4)&p)>>2];c[(o&p)+4>>2]=(e|0)==1?13184:13208;c[(o&p)+8>>2]=g;c[(o&p)+12>>2]=g;c[(o&p)+16>>2]=k;c[(o&p)+20>>2]=h;Br(b,25280,o);mg(m,k);k=Oq(b)|0;Dr(b,e);wh(k,144,0,0,0)|0;c[(o&p)>>2]=c[(l&p)>>2];Ir(k,e,uh(m,25368,o)|0);b=b+72|0;o=(c[(b&p)>>2]|0)+1|0;c[(b&p)>>2]=o;b=c[(l&p)>>2]|0;xh(k,wh(k,97,0,o,0)|0,b,0);wh(k,147,e,o,0)|0}while(0);i=q;return}function as(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=b+52|0;i=c[(h&p)>>2]|0;e=i+1|0;c[(h&p)>>2]=e;g=(i<<2)+8|0;f=b+56|0;g=ro(a,c[(f&p)>>2]|0,g,((g|0)<0)<<31>>31)|0;if(!g){if((i|0)>0){b=0;do{mg(a,c[((c[(f&p)>>2]|0)+(b<<2)&p)>>2]|0);b=b+1|0}while((b|0)!=(i|0))}mg(a,d);mg(a,c[(f&p)>>2]|0);c[(h&p)>>2]=0}else{c[(g+(i<<2)&p)>>2]=d;c[(g+(e<<2)&p)>>2]=0}c[(f&p)>>2]=g;return}function bs(b){b=b|0;var d=0,e=0,f=0,g=0;d=c[(b&p)+512>>2]|0;if((d|0)!=0?(g=c[(b&p)+484>>2]|0,(g|0)!=0):0){e=c[(b&p)+516>>2]|0;f=c[(b&p)>>2]|0;b=jw(e|0,((e|0)<0)<<31>>31|0,1,0)|0;b=mh(f,b,G)|0;if(!b)b=0;else{kw(b|0,d|0,e|0)|0;a[(b+e&n)>>0]=0}as(f,g,b)}return}function cs(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();l=q;m=c[(b&p)>>2]|0;o=Wq(m,e)|0;k=(d|0)!=0;if((o|0)!=0&k?(h=c[(d&p)>>2]|0,(h|0)>0):0){e=h;h=0;do{if(!(dd(o,c[(d+(h<<4)&p)+8>>2]|0)|0)){c[(l&p)>>2]=o;th(b,25184,l);e=c[(d&p)>>2]|0}h=h+1|0}while((h|0)<(e|0))}if(k){h=(c[(d&p)>>2]<<4)+24|0;h=ro(m,d,h,((h|0)<0)<<31>>31)|0;if(!h)e=10;else{d=h;e=11}}else{e=mh(m,24,0)|0;if(!e)e=10;else{h=e+0|0;d=h+24|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(d|0));d=e;e=11}}if((e|0)==10){Nk(m,f);Mk(m,g,1);mg(m,o)}else if((e|0)==11){m=d+8|0;c[(m+(c[(d&p)>>2]<<4)&p)+8>>2]=g;g=c[(d&p)>>2]|0;c[(m+(g<<4)&p)+4>>2]=f;c[(m+(g<<4)&p)>>2]=o;c[(m+(g<<4)&p)+12>>2]=0;c[(d&p)>>2]=g+1}i=q;return d|0}function ds(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,k=0,l=0,m=0,q=0;q=i;i=i+96|0;if((i|0)>=(j|0))fa();m=q+48|0;f=q;g=c[(c[(b&p)+32>>2]&p)>>2]|0;h=m+0|0;k=g+0|0;l=h+48|0;do{a[(h&n)>>0]=a[(k&n)>>0]|0;h=h+1|0;k=k+1|0}while((h|0)<(l|0));if((a[(b&n)+43>>0]|0)!=2){h=c[(b&p)+4>>2]|0;cc[c[((c[(h&p)>>2]|0)&p)+60>>2]&31](h)}h=f+0|0;k=g+48|0;l=h+48|0;do{a[(h&n)>>0]=a[(k&n)>>0]|0;h=h+1|0;k=k+1|0}while((h|0)<(l|0));if((Zv(m,f,48)|0)==0?(a[(m&n)+12>>0]|0)!=0:0){k=m+40|0;l=m;g=0;f=0;do{g=g+f+(c[(l&p)>>2]|0)|0;f=g+f+(c[(l&p)+4>>2]|0)|0;l=l+8|0}while(l>>>0<k>>>0);if((g|0)==(c[(k&p)>>2]|0)?(f|0)==(c[(m&p)+44>>2]|0):0){f=b+52|0;if(!(Zv(f,m,48)|0))f=0;else{c[(d&p)>>2]=1;h=f+0|0;k=m+0|0;l=h+48|0;do{c[(h&p)>>2]=c[(k&p)>>2];h=h+4|0;k=k+4|0}while((h|0)<(l|0));f=e[(b&o)+66>>1]|0;c[(b&p)+36>>2]=f<<16&65536|f&65024;f=0}}else f=1}else f=1;i=q;return f|0}function es(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;b=tc[c[((c[(a&p)>>2]|0)&p)+8>>2]&31](a,g,4,b,e)|0;if(!b)c[(f&p)>>2]=(d[(g&n)+1>>0]|0)<<16|(d[(g&n)>>0]|0)<<24|(d[(g&n)+2>>0]|0)<<8|(d[(g&n)+3>>0]|0);i=h;return b|0}function fs(a,b){a=a|0;b=b|0;var c=0,d=0,f=0;if(b>>>0<0|(b|0)==0&a>>>0<8)if(b>>>0<0|(b|0)==0&a>>>0<2)a=0;else{c=40;do{c=(c&65535)+65526|0;a=iw(a|0,b|0,1)|0;b=G}while(b>>>0<0|(b|0)==0&a>>>0<8);c=c&65535;f=11}else{if(b>>>0>0|(b|0)==0&a>>>0>255){d=b;c=40;while(1){c=(c&65535)+40|0;f=mw(a|0,d|0,4)|0;b=G;if(d>>>0>0|(d|0)==0&a>>>0>4095){a=f;d=b}else{a=f;break}}c=c&65535}else c=40;if(b>>>0>0|(b|0)==0&a>>>0>15){while(1){c=(c&65535)+10&65535;d=mw(a|0,b|0,1)|0;if(b>>>0>0|(b|0)==0&a>>>0>31){a=d;b=G}else{a=d;break}}f=11}else f=11}if((f|0)==11)a=(c&65535)+65526+(e[((a&7)<<1&o)+13496>>1]|0)&65535;return a|0}function gs(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;k=c[(b&p)+408>>2]|0;k=(k|0)==0?b:k;i=k+396|0;h=c[(i&p)>>2]|0;j=c[(k&p)+400>>2]|0;a:do if((h|0)>0){b=0;while(1){if((c[(j+(b<<4)&p)>>2]|0)==(d|0)?(c[(j+(b<<4)&p)+4>>2]|0)==(e|0):0)break;b=b+1|0;if((b|0)>=(h|0)){l=8;break a}}b=j+(b<<4)+8|0;if(!(a[(b&n)>>0]|0))h=f<<24>>24!=0&1;else h=1;a[(b&n)>>0]=h}else l=8;while(0);do if((l|0)==8){b=(h<<4)+16|0;b=Wl(c[(k&p)>>2]|0,j,b,((b|0)<0)<<31>>31)|0;c[(k&p)+400>>2]=b;if(!b){c[(i&p)>>2]=0;a[((c[(k&p)>>2]|0)&n)+65>>0]=1;break}else{h=c[(i&p)>>2]|0;c[(i&p)>>2]=h+1;c[(b+(h<<4)&p)>>2]=d;c[(b+(h<<4)&p)+4>>2]=e;a[(b+(h<<4)&n)+8>>0]=f;c[(b+(h<<4)&p)+12>>2]=g;break}}while(0);return}function hs(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=b[(f&o)+48>>1]|0;l=i&65535;h=e[(f&o)+46>>1]|0;m=d+64|0;if(!(c[(m&p)>>2]|0)){g=c[(d&p)>>2]|0;if(!(a[(f&n)+51>>0]&8))k=Rs(g,l,0)|0;else k=Rs(g,h,l-h|0)|0;if(k){if(i<<16>>16){j=f+32|0;f=f+28|0;h=k+16|0;g=0;do{i=c[((c[(j&p)>>2]|0)+(g<<2)&p)>>2]|0;if(!(_v(i,11152)|0))i=0;else i=cr(d,i)|0;c[(k+(g<<2)&p)+20>>2]=i;a[((c[(h&p)>>2]|0)+g&n)>>0]=a[((c[(f&p)>>2]|0)+g&n)>>0]|0;g=g+1|0}while((g|0)<(l|0))}g=(c[(m&p)>>2]|0)==0;if(!g){g=(c[(k&p)>>2]|0)+-1|0;c[(k&p)>>2]=g;if(!g){Wc(k);g=0}else g=0}else g=g?k:0}else g=0}else g=0;return g|0}function is(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=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=i;i=i+112|0;if((i|0)>=(j|0))fa();D=I;F=I+100|0;G=I+96|0;m=I+48|0;E=c[(d&p)+8>>2]|0;c[(F&p)>>2]=0;c[(G&p)>>2]=0;C=c[(d&p)>>2]|0;a:do if(!E)g=0;else{b:do if(!f)H=16;else{t=a[(f&n)>>0]|0;s=t&255;do switch(s|0){case 94:case 88:case 87:case 92:case 86:case 85:case 93:case 90:case 91:case 89:case 71:case 72:{D=$t(d,c[(f&p)+12>>2]|0,F)|0;wh(E,s,$t(d,c[(f&p)+16>>2]|0,G)|0,D,g)|0;break b}case 156:{h=c[(f&p)+40>>2]|0;k=b[(f&o)+34>>1]|0;l=c[(h&p)+28>>2]|0;if(!(a[(h&n)>>0]|0)){g=c[(l+(k*24|0)&p)+16>>2]|0;break b}if(a[(h&n)+1>>0]|0){wh(E,47,c[(h&p)+8>>2]|0,c[(l+(k*24|0)&p)+12>>2]|0,g)|0;break b}break}case 79:case 78:case 83:case 80:case 81:case 82:{B=f+12|0;D=$t(d,c[(B&p)>>2]|0,F)|0;C=f+16|0;E=$t(d,c[(C&p)>>2]|0,G)|0;au(d,c[(B&p)>>2]|0,c[(C&p)>>2]|0,s,D,E,g,32);break b}case 133:{_t(E,c[(f&p)+8>>2]|0,0,g);break b}case 97:{D=c[(f&p)+8>>2]|0;xh(E,wh(E,97,0,g,0)|0,D,0);break b}case 158:case 95:{g=is(d,c[(f&p)+12>>2]|0,g)|0;break b}case 38:{k=is(d,c[(f&p)+12>>2]|0,g)|0;if((k|0)!=(g|0))wh(E,34,k,g,0)|0;wh(E,40,g,(Xq(c[(f&p)+8>>2]|0,0)|0)<<24>>24,0)|0;dt(d,g,1);break b}case 119:case 20:{g=eu(d,f,0,0)|0;break b}case 75:{D=xs(E)|0;q=xs(E)|0;wh(E,28,0,g,0)|0;fu(d,f,D,q);wh(E,25,1,g,0)|0;k=E+24|0;h=c[(k&p)>>2]|0;l=~D;if((D|0)<0?(r=c[(h&p)+112>>2]|0,(r|0)!=0):0)c[(r+(l<<2)&p)>>2]=c[(E&p)+32>>2];m=E+32|0;c[(h&p)+88>>2]=(c[(m&p)>>2]|0)+-1;wh(E,37,g,0,0)|0;l=c[(k&p)>>2]|0;k=~q;if((q|0)<0?(u=c[(l&p)+112>>2]|0,(u|0)!=0):0)c[(u+(k<<2)&p)>>2]=c[(m&p)>>2];c[(l&p)+88>>2]=(c[(m&p)>>2]|0)+-1;break b}case 155:{k=c[(f&p)+40>>2]|0;if(!k){c[(D&p)>>2]=c[(f&p)+8>>2];th(d,28936,D);break b}else{g=c[((c[(k&p)+40>>2]|0)+(b[(f&o)+34>>1]<<4)&p)+8>>2]|0;break b}}case 19:case 96:{wh(E,s,$t(d,c[(f&p)+12>>2]|0,F)|0,g,0)|0;break b}case 77:case 76:{wh(E,25,1,g,0)|0;h=wh(E,s,$t(d,c[(f&p)+12>>2]|0,F)|0,0,0)|0;wh(E,25,0,g,0)|0;k=c[(E&p)+32>>2]|0;if(k>>>0>h>>>0)c[((c[(E&p)+4>>2]|0)+(h*20|0)&p)+8>>2]=k;c[((c[(E&p)+24>>2]|0)&p)+88>>2]=k+-1;break b}case 157:{k=f+12|0;h=c[(k&p)>>2]|0;l=a[(h&n)>>0]|0;if(l<<24>>24==-124){Zt(d,h,1,g);break b}else if(l<<24>>24==-123){_t(E,c[(h&p)+8>>2]|0,1,g);break b}else{a[(m&n)>>0]=-124;c[(m&p)+4>>2]=17408;c[(m&p)+8>>2]=0;D=$t(d,m,F)|0;wh(E,90,$t(d,c[(k&p)>>2]|0,G)|0,D,g)|0;break b}}case 57:{if(!(c[(d&p)+412>>2]|0)){th(d,29e3,D);g=0;break a}l=a[(f&n)+1>>0]|0;if(l<<24>>24!=2){h=c[(f&p)+8>>2]|0;if(l<<24>>24==4){xh(E,wh(E,24,0,4,0)|0,h,0);break b}}else{h=c[(d&p)+408>>2]|0;a[(((h|0)==0?d:h)&n)+21>>0]=1;h=c[(f&p)+8>>2]|0}zs(d,1811,l<<24>>24,h,0,0);break b}case 148:case 73:{B=f+12|0;D=$t(d,c[(B&p)>>2]|0,F)|0;C=f+16|0;E=$t(d,c[(C&p)>>2]|0,G)|0;au(d,c[(B&p)>>2]|0,c[(C&p)>>2]|0,t<<24>>24==73?79:78,D,E,g,160);break b}case 135:{k=f+32|0;wh(E,31,b[(k&o)>>1]|0,g,0)|0;if(!(a[((c[(f&p)+8>>2]|0)&n)+1>>0]|0))break b;xh(E,-1,c[((c[(d&p)+472>>2]|0)+((b[(k&o)>>1]|0)+-1<<2)&p)>>2]|0,-2);break b}case 154:break;case 153:{r=a[(C&n)+62>>0]|0;A=f+4|0;if((c[(A&p)>>2]&16384|0)==0?(q=c[(f&p)+20>>2]|0,(q|0)!=0):0){B=c[(q&p)>>2]|0;y=1;z=q}else{B=0;y=0;z=0}t=c[(f&p)+8>>2]|0;if(!t)s=0;else{s=t;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-t&1073741823}m=Sh(C,t,s,B,r,0)|0;if((m|0)!=0?(c[(m&p)+12>>2]|0)!=0:0){x=m+2|0;q=e[(x&o)>>1]|0;if(q&512){m=xs(E)|0;l=z+4|0;Rq(d,c[(c[(l&p)>>2]&p)>>2]|0,g);if((B|0)>1){k=d+100|0;h=1;do{wh(E,77,g,m,0)|0;dt(d,g,1);c[(k&p)>>2]=(c[(k&p)>>2]|0)+1;Rq(d,c[((c[(l&p)>>2]|0)+(h*20|0)&p)>>2]|0,g);bu(d);h=h+1|0}while((h|0)!=(B|0))}l=c[(E&p)+24>>2]|0;k=~m;if((m|0)<0?(w=c[(l&p)+112>>2]|0,(w|0)!=0):0)c[(w+(k<<2)&p)>>2]=c[(E&p)+32>>2];c[(l&p)+88>>2]=(c[(E&p)+32>>2]|0)+-1;break b}if(q&1024){Rq(d,c[(c[(z&p)+4>>2]&p)>>2]|0,g);break b}w=(B|0)>0;if(w){s=z+4|0;r=D+20|0;q=D+4|0;k=D+24|0;t=0;h=0;l=0;do{if((h|0)<32?(f=c[((c[(s&p)>>2]|0)+(h*20|0)&p)>>2]|0,c[(D&p)>>2]=0,c[(D&p)+4>>2]=0,c[(D&p)+8>>2]=0,c[(D&p)+12>>2]=0,c[(D&p)+16>>2]=0,c[(D&p)+20>>2]=0,a[(r&n)>>0]=1,c[(D&p)>>2]=78,c[(q&p)>>2]=79,c[(k&p)>>2]=0,rs(D,f)|0,(a[(r&n)>>0]|0)!=0):0)t=t|1<<h;if(!((b[(x&o)>>1]&32)==0|(l|0)!=0))l=cu(d,c[((c[(s&p)>>2]|0)+(h*20|0)&p)>>2]|0)|0;h=h+1|0}while((h|0)!=(B|0));u=t}else{u=0;l=0}if(y){do if(!u){s=d+60|0;t=c[(s&p)>>2]|0;r=d+56|0;q=c[(r&p)>>2]|0;if((q|0)<(B|0)){D=d+72|0;t=c[(D&p)>>2]|0;c[(D&p)>>2]=t+B;t=t+1|0;break}else{c[(s&p)>>2]=t+B;c[(r&p)>>2]=q-B;break}}else{D=d+72|0;t=c[(D&p)>>2]|0;c[(D&p)>>2]=t+B;t=t+1|0}while(0);q=b[(x&o)>>1]|0;if((q&192)!=0?(v=c[(c[(z&p)+4>>2]&p)>>2]|0,D=a[(v&n)>>0]|0,D<<24>>24==-100|D<<24>>24==-102):0)a[(v&n)+38>>0]=q&192;D=d+100|0;c[(D&p)>>2]=(c[(D&p)>>2]|0)+1;bt(d,z,t,3);bu(d)}else t=0;if((B|0)>1?(c[(A&p)>>2]&128|0)!=0:0)m=du(C,m,B,c[((c[(z&p)+4>>2]|0)&p)+20>>2]|0)|0;else if(w)m=du(C,m,B,c[(c[(z&p)+4>>2]&p)>>2]|0)|0;if(b[(m&o)+2>>1]&32){if(!l)l=c[(C&p)+8>>2]|0;xh(E,wh(E,36,0,0,0)|0,l,-4)}xh(E,wh(E,1,u,t,g)|0,m,-5);l=c[(E&p)+4>>2]|0;if(l)a[(l+(((c[(E&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=B;if(!((B|0)!=0&(u|0)==0))break b;dt(d,t,B);k=d+56|0;if((c[(k&p)>>2]|0)>=(B|0))break b;c[(k&p)>>2]=B;c[(d&p)+60>>2]=t;break b}c[(D&p)>>2]=s;c[(D&p)+4>>2]=t;th(d,28968,D);break b}case 101:{H=16;break b}case 24:{g=is(d,c[(f&p)+12>>2]|0,g)|0;break b}case 74:{t=c[(f&p)+12>>2]|0;q=c[((c[(f&p)+20>>2]|0)&p)+4>>2]|0;h=c[(q&p)>>2]|0;r=$t(d,t,F)|0;s=$t(d,h,G)|0;m=d+19|0;k=a[(m&n)>>0]|0;if(k<<24>>24){D=k+-1<<24>>24;a[(m&n)>>0]=D;l=c[(d+((D&255)<<2)&p)+24>>2]|0;if(!(D<<24>>24))H=103;else{D=k+-2<<24>>24;a[(m&n)>>0]=D;m=c[(d+((D&255)<<2)&p)+24>>2]|0}}else{H=d+72|0;l=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=l;H=103}if((H|0)==103){D=d+72|0;m=(c[(D&p)>>2]|0)+1|0;c[(D&p)>>2]=m}au(d,t,h,83,r,s,l,32);D=c[(q&p)+20>>2]|0;_r(d,c[(G&p)>>2]|0);au(d,t,D,81,r,$t(d,D,G)|0,m,32);wh(E,72,l,m,g)|0;_r(d,l);_r(d,m);break b}case 159:{g=c[(f&p)+28>>2]|0;break b}case 132:{Zt(d,f,0,g);break b}case 134:{h=(c[(f&p)+8>>2]|0)+2|0;k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;C=(k-h&1073741823)+-1|0;D=Yt(c[(E&p)>>2]|0,h,C)|0;xh(E,wh(E,30,(C|0)/2|0,g,0)|0,D,-1);break b}case 62:{h=c[(f&p)+44>>2]|0;D=ca((b[(h&o)+38>>1]|0)+1|0,c[(f&p)+28>>2]|0)|0;k=f+32|0;wh(E,132,(b[(k&o)>>1]|0)+1+D|0,g,0)|0;k=b[(k&o)>>1]|0;if(k<<16>>16<=-1)break b;if((a[((c[(h&p)+4>>2]|0)+((k<<16>>16)*24|0)&n)+21>>0]|0)!=69)break b;wh(E,39,g,0,0)|0;break b}default:{x=c[(f&p)+20>>2]|0;v=x+4|0;w=c[(v&p)>>2]|0;x=c[(x&p)>>2]|0;y=xs(E)|0;t=c[(f&p)+12>>2]|0;f=(t|0)!=0;if(f){s=m+0|0;r=t+0|0;q=s+48|0;do{c[(s&p)>>2]=c[(r&p)>>2];s=s+4|0;r=r+4|0}while((s|0)<(q|0));t=$t(d,t,F)|0;a[(m&n)+38>>0]=a[(m&n)>>0]|0;a[(m&n)>>0]=-97;c[(m&p)+28>>2]=t;t=m+4|0;c[(t&p)>>2]=c[(t&p)>>2]&-4097;a[(D&n)>>0]=79;c[(D&p)+12>>2]=m;c[(F&p)>>2]=0;t=D}else t=0;u=x+-1|0;if((u|0)>0){h=d+100|0;q=D+16|0;m=E+24|0;l=E+32|0;k=0;s=t;while(1){c[(h&p)>>2]=(c[(h&p)>>2]|0)+1;t=c[(w+(k*20|0)&p)>>2]|0;if(f){c[(q&p)>>2]=t;t=s}D=xs(E)|0;gt(d,t,D,16);Rq(d,c[(w+((k|1)*20|0)&p)>>2]|0,g);wh(E,16,0,y,0)|0;bu(d);s=c[(m&p)>>2]|0;r=~D;if((D|0)<0?(z=c[(s&p)+112>>2]|0,(z|0)!=0):0)c[(z+(r<<2)&p)>>2]=c[(l&p)>>2];c[(s&p)+88>>2]=(c[(l&p)>>2]|0)+-1;k=k+2|0;if((k|0)>=(u|0))break;else s=t}}if(!(x&1))wh(E,28,0,g,0)|0;else{D=d+100|0;c[(D&p)>>2]=(c[(D&p)>>2]|0)+1;Rq(d,c[((c[(v&p)>>2]|0)+(u*20|0)&p)>>2]|0,g);bu(d)}l=c[(E&p)+24>>2]|0;k=~y;if((y|0)<0?(A=c[(l&p)+112>>2]|0,(A|0)!=0):0)c[(A+(k<<2)&p)>>2]=c[(E&p)+32>>2];c[(l&p)+88>>2]=(c[(E&p)+32>>2]|0)+-1;break b}}while(0);h=c[(f&p)+28>>2]|0;do if((h|0)<0){h=c[(d&p)+92>>2]|0;if((h|0)>0){g=(b[(f&o)+32>>1]|0)+h|0;break b}else{h=c[(d&p)+96>>2]|0;break}}while(0);g=ct(d,c[(f&p)+44>>2]|0,b[(f&o)+32>>1]|0,h,g,a[(f&n)+38>>0]|0)|0}while(0);if((H|0)==16)wh(E,28,0,g,0)|0;_r(d,c[(F&p)>>2]|0);_r(d,c[(G&p)>>2]|0)}while(0);i=I;return g|0}function js(a,b){a=a|0;b=b|0;var d=0;d=Oq(a)|0;gs(a,b,1,1,(b|0)==1?13184:13208);xh(d,wh(d,55,0,1,b)|0,5,-14);b=a+68|0;if(!(c[(b&p)>>2]|0))c[(b&p)>>2]=1;return}function ks(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0;h=f+48|0;if((e[(h&o)>>1]|0|0)<(g|0)){i=g*7|0;d=mh(d,i,((i|0)<0)<<31>>31)|0;if(!d)d=7;else{fw(d|0,0,i|0)|0;j=f+32|0;kw(d|0,c[(j&p)>>2]|0,(e[(h&o)>>1]|0)<<2|0)|0;c[(j&p)>>2]=d;j=d+(g<<2)|0;i=f+4|0;kw(j|0,c[(i&p)>>2]|0,(e[(h&o)>>1]|0)<<1|0)|0;c[(i&p)>>2]=j;i=d+(g*6|0)|0;d=f+28|0;kw(i|0,c[(d&p)>>2]|0,e[(h&o)>>1]|0|0)|0;c[(d&p)>>2]=i;b[(h&o)>>1]=g;d=f+51|0;a[(d&n)>>0]=a[(d&n)>>0]|16;d=0}}else d=0;return d|0}function ls(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();k=r;q=r+4|0;do if(!d)f=0;else{l=c[(a&p)>>2]|0;n=d+24|0;h=l+460|0;g=(c[(h&p)>>2]|0)+(c[(n&p)>>2]|0)|0;f=c[((c[(l&p)>>2]|0)&p)+100>>2]|0;if((f|0)<(g|0)){c[(k&p)>>2]=f;th(l,27152,k);f=1;break}c[(h&p)>>2]=g;k=a+28|0;h=e[(k&o)>>1]|0;m=h&4098;b[(k&o)>>1]=h&61437;c[(q&p)>>2]=0;c[(q&p)+4>>2]=0;c[(q&p)+8>>2]=0;c[(q&p)+12>>2]=0;c[(q&p)+16>>2]=0;c[(q&p)+20>>2]=0;c[(q&p)>>2]=82;c[(q&p)+4>>2]=83;h=q+12|0;c[(h&p)>>2]=l;c[(q&p)+24>>2]=a;rs(q,d)|0;q=(c[(a&p)>>2]|0)+460|0;c[(q&p)>>2]=(c[(q&p)>>2]|0)-(c[(n&p)>>2]|0);if(!((c[(a&p)+24>>2]|0)<=0?(c[((c[(h&p)>>2]|0)&p)+64>>2]|0)<=0:0)){q=d+4|0;c[(q&p)>>2]=c[(q&p)>>2]|8}h=b[(k&o)>>1]|0;g=d+4|0;f=c[(g&p)>>2]|0;if(h&2){f=f|2;c[(g&p)>>2]=f}b[(k&o)>>1]=h&65535|m;f=f>>>3&1}while(0);i=r;return f|0}function ms(a){a=a|0;var e=0,f=0,g=0,h=0,i=0,j=0;i=c[((c[(a&p)+12>>2]|0)&p)+4>>2]|0;f=b[(a&o)+48>>1]|0;if(!(f<<16>>16)){e=0;f=0}else{j=c[(a&p)+4>>2]|0;g=f&65535;h=0;e=0;do{f=b[(j+(h<<1)&o)>>1]|0;if(f<<16>>16<0)f=1;else f=d[(i+((f<<16>>16)*24|0)&n)+22>>0]|0;e=f+e|0;h=h+1|0}while((h|0)<(g|0));e=e<<2;f=0}b[(a&o)+44>>1]=fs(e,f)|0;return}function ns(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;j=c[(d&p)>>2]|0;g=j+24|0;i=c[(g&p)>>2]|0;c[(g&p)>>2]=i&-97|64;Ds(d,e,0);if(!(c[(d&p)+64>>2]|0)){while(1){f=c[(e&p)+52>>2]|0;if(!f){h=e;break}else e=f}c[(g&p)>>2]=i;e=mh(j,76,0)|0;if(e){f=e+0|0;g=f+76|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(g|0));b[(e&o)+40>>1]=1;c[(e&p)>>2]=0;b[(e&o)+28>>1]=200;iu(d,c[(h&p)>>2]|0,e+38|0,e+4|0);ju(d,e,h);b[(e&o)+36>>1]=-1;if(a[(j&n)+65>>0]|0){kg(j,e);e=0}}else e=0}else e=0;return e|0}function os(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;f=c[(d&p)>>2]|0;g=a[(e&n)>>0]|0;a:do if(!(g<<24>>24)){i=0;h=0}else{i=g;j=0;while(1){h=j+1|0;if(!(i<<24>>24==95?1:(a[(i&255&n)+10368>>0]&6)!=0)){h=j;break a}i=a[(e+h&n)>>0]|0;if(!(i<<24>>24)){i=0;break}else j=h}}while(0);if((((g&255)+-48|0)>>>0>=10?(fi(e,h)|0)==27:0)?!((h|0)==0|i<<24>>24!=0):0)k=0;else{a[(b+f&n)>>0]=34;k=1;g=a[(e&n)>>0]|0;f=f+1|0}if(g<<24>>24){h=e;j=0;do{i=f+1|0;a[(b+f&n)>>0]=g;if((a[(h&n)>>0]|0)==34){a[(b+i&n)>>0]=34;f=f+2|0}else f=i;j=j+1|0;h=e+j|0;g=a[(h&n)>>0]|0}while(g<<24>>24!=0)}if(k){a[(b+f&n)>>0]=34;f=f+1|0}a[(b+f&n)>>0]=0;c[(d&p)>>2]=f;return}function ps(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;f=b+20|0;g=a[(f&n)>>0]|0;if(g<<24>>24==2?(c[(e&p)+4>>2]&1|0)!=0:0){a[(f&n)>>0]=0;f=2}else h=4;a:do if((h|0)==4)switch(d[(e&n)>>0]|0|0){case 153:{if((g&255)>3){f=0;break a}if(c[(e&p)+4>>2]&524288){f=0;break a}a[(f&n)>>0]=0;f=2;break a}case 135:if(g<<24>>24==4){a[(f&n)>>0]=0;f=2;break a}else if(g<<24>>24==5){a[(e&n)>>0]=101;f=0;break a}else{f=0;break a}case 156:case 155:case 154:case 27:{if(g<<24>>24==3?(c[(e&p)+28>>2]|0)==(c[(b&p)+24>>2]|0):0){f=0;break a}a[(f&n)>>0]=0;f=2;break a}default:{f=0;break a}}while(0);return f|0}function qs(b,c){b=b|0;c=c|0;a[(b&n)+20>>0]=0;return 2}function rs(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if(!b)b=0;else{d=rc[c[(a&p)>>2]&127](a,b)|0;do if((d|0)==0?(e=b+4|0,(c[(e&p)>>2]&16384|0)==0):0){if(rs(a,c[(b&p)+12>>2]|0)|0){b=2;break a}if(rs(a,c[(b&p)+16>>2]|0)|0){b=2;break a}b=b+20|0;if(!(c[(e&p)>>2]&2048))if(!(lu(a,c[(b&p)>>2]|0)|0))break;else{b=2;break a}else if(!(ku(a,c[(b&p)>>2]|0)|0))break;else{b=2;break a}}while(0);b=d&2}while(0);return b|0}function ss(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;do if(e)if(!f)g=e;else{if((mu(e)|0)==0?(mu(f)|0)==0:0){g=mh(d,48,0)|0;if(g){h=g+0|0;i=h+48|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(g&n)>>0]=72;b[(g&o)+34>>1]=-1;c[(g&p)+24>>2]=1}ts(d,g,e,f);break}Gk(d,e);Gk(d,f);g=nr(d,132,20616,0)|0}else g=f;while(0);return g|0}function ts(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;if(!b){Gk(a,d);Gk(a,e)}else{if(e){c[(b&p)+16>>2]=e;a=b+4|0;c[(a&p)>>2]=c[(a&p)>>2]|c[(e&p)+4>>2]&2097408}if(d){c[(b&p)+12>>2]=d;a=b+4|0;c[(a&p)>>2]=c[(a&p)>>2]|c[(d&p)+4>>2]&2097408}It(b)}return}function us(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;h=d<<16>>16;j=(h<<2)+63&-8;k=h<<1;l=k+2|0;i=(h+7+k+l&-8)+j|0;g=i+e|0;e=mh(a,g,((g|0)<0)<<31>>31)|0;if(e){fw(e|0,0,g|0)|0;c[(e&p)+32>>2]=e+56;c[(e&p)+8>>2]=e+j;g=j+l|0;c[(e&p)+4>>2]=e+g;c[(e&p)+28>>2]=e+(g+k);b[(e&o)+48>>1]=d;b[(e&o)+46>>1]=h+65535;c[(f&p)>>2]=e+i}return e|0}function vs(b,d,f){b=b|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=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=i;i=i+16|0;if((i|0)>=(j|0))fa();w=C;s=c[(d&p)+12>>2]|0;r=b+68|0;z=c[(r&p)>>2]|0;B=z+1|0;c[(r&p)>>2]=z+2;q=c[(b&p)>>2]|0;l=c[(d&p)+24>>2]|0;a:do if(l){h=c[(q&p)+20>>2]|0;if((h|0)>0){g=c[(q&p)+16>>2]|0;m=0;while(1){k=m+1|0;if((c[(g+(m<<4)&p)+12>>2]|0)==(l|0)){k=m;break a}if((k|0)<(h|0))m=k;else break}}else k=0}else k=-1e6;while(0);if((Sq(b,27,c[(d&p)>>2]|0,0,c[((c[(q&p)+16>>2]|0)+(k<<4)&p)>>2]|0)|0)==0?(gs(b,k,c[(s&p)+32>>2]|0,1,c[(s&p)>>2]|0),A=Oq(b)|0,(A|0)!=0):0){if((f|0)>-1)t=f;else t=c[(d&p)+40>>2]|0;x=hs(b,d)|0;y=c[(r&p)>>2]|0;c[(r&p)>>2]=y+1;v=d+46|0;h=e[(v&o)>>1]|0;if(x)c[(x&p)>>2]=(c[(x&p)>>2]|0)+1;xh(A,wh(A,58,y,0,h)|0,x,-6);Qq(b,z,k,s,54);q=wh(A,108,z,0,0)|0;h=b+19|0;g=a[(h&n)>>0]|0;if(!(g<<24>>24)){s=b+72|0;u=(c[(s&p)>>2]|0)+1|0;c[(s&p)>>2]=u}else{u=g+-1<<24>>24;a[(h&n)>>0]=u;u=c[(b+((u&255)<<2)&p)+24>>2]|0}Pt(b,d,z,u,0,w,0,0)|0;wh(A,109,y,u,0)|0;Qt(b,c[(w&p)>>2]|0);wh(A,9,z,q+1|0,0)|0;s=A+32|0;m=c[(s&p)>>2]|0;if(m>>>0>q>>>0)c[((c[(A&p)+4>>2]|0)+(q*20|0)&p)+8>>2]=m;l=A+24|0;c[((c[(l&p)>>2]|0)&p)+88>>2]=m+-1;if((f|0)<0)wh(A,118,t,k,0)|0;xh(A,wh(A,55,B,t,k)|0,x,-6);r=A+4|0;h=c[(r&p)>>2]|0;if(h)a[(h+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=(f>>31)+4&252|1;q=wh(A,106,y,0,0)|0;h=c[(s&p)>>2]|0;if((a[(d&n)+50>>0]|0)!=0&(x|0)!=0){m=h+3|0;wh(A,16,0,m,0)|0;h=c[(s&p)>>2]|0;t=e[(v&o)>>1]|0;xh(A,wh(A,99,y,m,u)|0,t,-14);nu(b,2,d)}wh(A,100,y,u,B)|0;wh(A,110,B,u,1)|0;g=c[(r&p)>>2]|0;if(g)a[(g+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;_r(b,u);wh(A,5,y,h,0)|0;g=c[(s&p)>>2]|0;if(g>>>0>q>>>0)c[((c[(r&p)>>2]|0)+(q*20|0)&p)+8>>2]=g;c[((c[(l&p)>>2]|0)&p)+88>>2]=g+-1;wh(A,61,z,0,0)|0;wh(A,61,B,0,0)|0;wh(A,61,y,0,0)|0}i=C;return}function ws(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();t=u;s=c[(e&p)>>2]|0;if(!g){g=Yn(s,f,h,0)|0;if(!g)q=4;else q=3}else q=3;if((q|0)==3)if(!(c[(g&p)+12>>2]|0))q=4;else q=14;if((q|0)==4){l=f&255;k=s+224|0;if(c[(k&p)>>2]|0){m=kh(s,h)|0;if(m){qc[c[(k&p)>>2]&15](c[(s&p)+232>>2]|0,s,l,m);mg(s,m);q=7}}else q=7;if((q|0)==7?(r=s+228|0,(c[(r&p)>>2]|0)!=0):0){k=mh(s,40,0)|0;if(!k)k=0;else{m=k+0|0;l=m+40|0;do{a[(m&n)>>0]=0;m=m+1|0}while((m|0)<(l|0));b[(k&o)+8>>1]=1;c[(k&p)+32>>2]=s;Xg(k,h,-1,1,0)|0}g=Sg(k,2)|0;if(g)qc[c[(r&p)>>2]&15](c[(s&p)+232>>2]|0,s,d[(s&n)+62>>0]|0,g);Mh(k)}g=Yn(s,f,h,0)|0;if(!g)q=19;else q=14}a:do if((q|0)==14)if(!(c[(g&p)+12>>2]|0)){l=c[(g&p)>>2]|0;m=0;while(1){k=Yn(s,a[(m&n)+26816>>0]|0,l,0)|0;m=m+1|0;if(c[(k&p)+12>>2]|0)break;if((m|0)>=3){q=19;break a}}c[(g&p)>>2]=c[(k&p)>>2];c[(g&p)+4>>2]=c[(k&p)+4>>2];c[(g&p)+8>>2]=c[(k&p)+8>>2];c[(g&p)+12>>2]=c[(k&p)+12>>2];c[(g&p)+16>>2]=0}while(0);if((q|0)==19){c[(t&p)>>2]=h;th(e,26784,t);g=0}i=u;return g|0}function xs(a){a=a|0;var b=0,d=0;a=c[(a&p)+24>>2]|0;d=a+108|0;b=c[(d&p)>>2]|0;c[(d&p)>>2]=b+1;if(!(b+-1&b)){d=a+112|0;a=Wl(c[(a&p)>>2]|0,c[(d&p)>>2]|0,b<<3|4,0)|0;c[(d&p)>>2]=a}else a=c[(a&p)+112>>2]|0;if(a)c[(a+(b<<2)&p)>>2]=-1;return ~b|0}function ys(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;if(e){g=c[(e&p)>>2]|0;if((g|0)>0){h=(g*72|0)+8|0;g=h;h=((h|0)<0)<<31>>31}else{g=80;h=0}g=mh(d,g,h)|0;if(g){h=c[(e&p)>>2]|0;c[(g&p)+4>>2]=h;c[(g&p)>>2]=h;if((c[(e&p)>>2]|0)>0){h=g+8|0;j=0;do{c[(h+(j*72|0)&p)>>2]=c[(e+(j*72|0)&p)+8>>2];c[(h+(j*72|0)&p)+4>>2]=kh(d,c[(e+(j*72|0)&p)+12>>2]|0)|0;c[(h+(j*72|0)&p)+8>>2]=kh(d,c[(e+(j*72|0)&p)+16>>2]|0)|0;c[(h+(j*72|0)&p)+12>>2]=kh(d,c[(e+(j*72|0)&p)+20>>2]|0)|0;a[(h+(j*72|0)&n)+36>>0]=a[(e+(j*72|0)&n)+44>>0]|0;c[(h+(j*72|0)&p)+40>>2]=c[(e+(j*72|0)&p)+48>>2];c[(h+(j*72|0)&p)+24>>2]=c[(e+(j*72|0)&p)+32>>2];c[(h+(j*72|0)&p)+28>>2]=c[(e+(j*72|0)&p)+36>>2];k=e+(j*72|0)+45|0;i=h+(j*72|0)+37|0;l=a[(i&n)>>0]&-3|a[(k&n)>>0]&2;a[(i&n)>>0]=l;l=l&-5|a[(k&n)>>0]&4;a[(i&n)>>0]=l;a[(i&n)>>0]=l&-9|a[(k&n)>>0]&8;c[(h+(j*72|0)&p)+64>>2]=kh(d,c[(e+(j*72|0)&p)+72>>2]|0)|0;a[(i&n)>>0]=a[(i&n)>>0]&-2|a[(k&n)>>0]&1;c[(h+(j*72|0)&p)+68>>2]=c[(e+(j*72|0)&p)+76>>2];i=c[(e+(j*72|0)&p)+24>>2]|0;c[(h+(j*72|0)&p)+16>>2]=i;if(i){i=i+40|0;b[(i&o)>>1]=(b[(i&o)>>1]|0)+1<<16>>16}c[(h+(j*72|0)&p)+20>>2]=gr(d,c[(e+(j*72|0)&p)+28>>2]|0,f)|0;c[(h+(j*72|0)&p)+44>>2]=Mr(d,c[(e+(j*72|0)&p)+52>>2]|0,f,0)|0;c[(h+(j*72|0)&p)+48>>2]=Nr(d,c[(e+(j*72|0)&p)+56>>2]|0)|0;l=e+(j*72|0)+64|0;k=c[(l&p)+4>>2]|0;i=h+(j*72|0)+56|0;c[(i&p)>>2]=c[(l&p)>>2];c[(i&p)+4>>2]=k;j=j+1|0}while((j|0)<(c[(e&p)>>2]|0))}}else g=0}else g=0;return g|0}function zs(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,k=0;i=Oq(b)|0;if((e|0)==2){k=c[(b&p)+408>>2]|0;a[(((k|0)==0?b:k)&n)+21>>0]=1}xh(i,wh(i,24,d,e,0)|0,f,g<<24>>24);if(h<<24>>24!=0?(j=c[(i&p)+4>>2]|0,(j|0)!=0):0)a[(j+(((c[(i&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=h;return}function As(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)&p)+28>>2]|0;do if(!(a[(b&n)+438>>0]|0)){h=c[(d&p)+68>>2]|0;if((e|0)!=(h|0)?(f=c[(e&p)+48>>2]|0,(f|0)!=0):0){g=d+64|0;e=0;while(1){b=c[(f&p)+8>>2]|0;if((c[(b&p)+24>>2]|0)==(h|0)?(dd(c[(b&p)+4>>2]|0,c[(d&p)>>2]|0)|0)==0:0){if(!e)e=c[(g&p)>>2]|0;c[(b&p)+32>>2]=e}else b=e;f=c[(f&p)>>2]|0;if(!f)break;else e=b}if(b)break}b=c[(d&p)+64>>2]|0}else b=0;while(0);return b|0}function Bs(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;j=c[(b&p)+32>>2]|0;k=b+8|0;i=b+68|0;f=0;while(1){g=(f|0)==0;b=g|(j|0)<(f|0)?j:0;d=c[(k&p)>>2]|0;if(!d)h=b;else{do{e=c[(d&p)+40>>2]|0;b=(g|(e|0)<(f|0))&(e|0)>(b|0)?e:b;d=c[(d&p)+20>>2]|0}while((d|0)!=0);h=b}if(!h)break;b=c[(a&p)>>2]|0;f=c[(i&p)>>2]|0;a:do if(f){g=c[(b&p)+20>>2]|0;if((g|0)>0){d=c[(b&p)+16>>2]|0;e=0;while(1){b=e+1|0;if((c[(d+(e<<4)&p)+12>>2]|0)==(f|0)){b=e;break a}if((b|0)<(g|0))e=b;else break}}else b=0}else b=-1e6;while(0);Er(a,h,b);f=h}return}function Cs(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;a:do if((b|0)!=0?(d=c[(b&p)>>2]|0,(d|0)>0):0){h=a+68|0;f=0;g=b+8|0;while(1){e=g+40|0;if((c[(e&p)>>2]|0)>-1)break a;i=c[(h&p)>>2]|0;c[(h&p)>>2]=i+1;c[(e&p)>>2]=i;e=c[(g&p)+20>>2]|0;if(e){Cs(a,c[(e&p)+32>>2]|0);d=c[(b&p)>>2]|0}f=f+1|0;if((f|0)>=(d|0))break;else g=g+72|0}}while(0);return}function Ds(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0;q=i;i=i+32|0;if((i|0)>=(j|0))fa();m=q;if(((e|0)!=0?(l=(c[(d&p)>>2]|0)+65|0,(a[(l&n)>>0]|0)==0):0)?(h=e+6|0,g=b[(h&o)>>1]|0,(g&32)==0):0){c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)>>2]=84;c[(m&p)+12>>2]=d;k=m+4|0;if(a[(d&n)+22>>0]|0){c[(k&p)>>2]=85;ku(m,e)|0;g=b[(h&o)>>1]|0}c[(k&p)>>2]=86;if(!(g&256))c[(m&p)+8>>2]=9;ku(m,e)|0;g=d+64|0;if((((c[(g&p)>>2]|0)==0?(a[(l&n)>>0]|0)==0:0)?(c[(m&p)>>2]=0,c[(m&p)+4>>2]=0,c[(m&p)+8>>2]=0,c[(m&p)+12>>2]=0,c[(m&p)+16>>2]=0,c[(m&p)+20>>2]=0,c[(m&p)>>2]=82,c[(m&p)+4>>2]=83,c[(m&p)+12>>2]=d,c[(m&p)+24>>2]=f,ku(m,e)|0,(c[(g&p)>>2]|0)==0):0)?(a[(l&n)>>0]|0)==0:0){c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+8>>2]=10;c[(m&p)>>2]=84;c[(m&p)+12>>2]=d;ku(m,e)|0}}i=q;return}function Es(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if(a)do{d=c[(a&p)+36>>2]|0;if((d|0)!=0?(h=c[(d&p)+24>>2]|0,(h|0)>(c[(b&p)>>2]|0)):0)c[(b&p)>>2]=h;d=c[(a&p)+44>>2]|0;if((d|0)!=0?(e=c[(d&p)+24>>2]|0,(e|0)>(c[(b&p)>>2]|0)):0)c[(b&p)>>2]=e;d=c[(a&p)+60>>2]|0;if((d|0)!=0?(f=c[(d&p)+24>>2]|0,(f|0)>(c[(b&p)>>2]|0)):0)c[(b&p)>>2]=f;d=c[(a&p)+64>>2]|0;if((d|0)!=0?(g=c[(d&p)+24>>2]|0,(g|0)>(c[(b&p)>>2]|0)):0)c[(b&p)>>2]=g;tu(c[(a&p)>>2]|0,b);tu(c[(a&p)+40>>2]|0,b);tu(c[(a&p)+48>>2]|0,b);a=c[(a&p)+52>>2]|0}while((a|0)!=0);return}function Fs(a,b,d,f){a=a|0;b=b|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0;g=c[(b&p)>>2]|0;h=g+d|0;if(h>>>0>(c[(b&p)+4>>2]|0)>>>0){i=ro(a,b,(h*72|0)+8|0,0)|0;if(i){do if(!a)b=lc[c[8792>>2]&127](i)|0;else{if((c[(a&p)+276>>2]|0)>>>0<=i>>>0?(c[(a&p)+280>>2]|0)>>>0>i>>>0:0){b=e[(a&o)+248>>1]|0;break}b=lc[c[8792>>2]&127](i)|0}while(0);c[(i&p)+4>>2]=(((b+-80|0)>>>0)/72|0)+1;b=i;g=c[(i&p)>>2]|0;j=10}}else j=10;if((j|0)==10){if((g|0)>(f|0)){do{g=g+-1|0;h=b+((g+d|0)*72|0)+8|0;a=b+(g*72|0)+8|0;i=h+72|0;do{c[(h&p)>>2]=c[(a&p)>>2];h=h+4|0;a=a+4|0}while((h|0)<(i|0))}while((g|0)>(f|0));g=c[(b&p)>>2]|0}c[(b&p)>>2]=g+d;fw(b+(f*72|0)+8|0,0,d*72|0)|0;g=f+d|0;if((d|0)>0)do{c[(b+(f*72|0)&p)+48>>2]=-1;f=f+1|0}while((f|0)<(g|0))}return b|0}function Gs(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;if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){f=b+4|0;g=c[(f&p)>>2]|0;h=0;do{i=Hs(a,c[(g+(h*20|0)&p)>>2]|0,d,e)|0;g=c[(f&p)>>2]|0;c[(g+(h*20|0)&p)>>2]=i;h=h+1|0}while((h|0)<(c[(b&p)>>2]|0))}return}function Hs(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0;do if(e){if((a[(e&n)>>0]|0)==-102?(c[(e&p)+28>>2]|0)==(f|0):0){h=b[(e&o)+32>>1]|0;if(h<<16>>16<0){a[(e&n)>>0]=101;break}else{h=Mr(d,c[((c[(g&p)+4>>2]|0)+((h<<16>>16)*20|0)&p)>>2]|0,0,0)|0;Gk(d,e);e=h;break}}h=e+12|0;c[(h&p)>>2]=Hs(d,c[(h&p)>>2]|0,f,g)|0;h=e+16|0;c[(h&p)>>2]=Hs(d,c[(h&p)>>2]|0,f,g)|0;h=e+20|0;if(!(c[(e&p)+4>>2]&2048)){Gs(d,c[(h&p)>>2]|0,f,g);break}else{uu(d,c[(h&p)>>2]|0,f,g);break}}else e=0;while(0);return e|0}function Is(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(c[(b&p)>>2]&p)>>2]|0;e=b;g=1;while(1){b=c[(e&p)+52>>2]|0;if(!b){f=5;break}if((c[(c[(b&p)>>2]&p)>>2]|0)==(f|0)){e=b;g=g+1|0}else{f=3;break}}a:do if((f|0)==3){Js(a,b);b=1}else if((f|0)==5)if(!e)b=0;else{h=((g|0)<0)<<31>>31;f=0;while(1){i=e+52|0;c[(i&p)>>2]=0;b=ir(a,e,d)|0;c[(i&p)>>2]=f;if(b)break a;b=e+24|0;c[(b&p)>>2]=g;c[(b&p)+4>>2]=h;b=c[(e&p)+56>>2]|0;if(!b){b=0;break a}e=b;f=c[(b&p)+52>>2]|0}}while(0);return b|0}function Js(a,e){a=a|0;e=e|0;var f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(!(b[(e&o)+6>>1]&128)){e=d[(e&n)+4>>0]|0;if((e|0)==118)e=35336;else if((e|0)==116)e=35320;else if((e|0)==117)e=35352;else e=35360;c[(f&p)>>2]=e;th(a,35232,f)}else th(a,35184,f);i=g;return}function Ks(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=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;H=i;i=i+32|0;if((i|0)>=(j|0))fa();y=H;k=c[(f&p)+32>>2]|0;q=c[(c[(f&p)>>2]&p)>>2]|0;v=c[(d&p)+8>>2]|0;w=f+52|0;x=c[(w&p)>>2]|0;if(!(Sq(d,33,0,0,0)|0)){z=xs(v)|0;Os(d,f,z);A=f+60|0;B=c[(A&p)>>2]|0;C=f+64|0;D=c[(C&p)>>2]|0;E=f+8|0;s=c[(E&p)>>2]|0;F=f+12|0;t=c[(F&p)>>2]|0;c[(C&p)>>2]=0;c[(A&p)>>2]=0;c[(F&p)>>2]=0;c[(E&p)>>2]=0;E=f+48|0;F=c[(E&p)>>2]|0;l=c[(k&p)>>2]|0;a:do if((l|0)>0){m=0;while(1){if(a[(k+(m*72|0)&n)+45>>0]&8)break;m=m+1|0;if((m|0)>=(l|0)){r=0;break a}}r=c[(k+(m*72|0)&p)+48>>2]|0}else r=0;while(0);m=d+68|0;k=c[(m&p)>>2]|0;l=k+1|0;c[(m&p)>>2]=l;h=(F|0)!=0;if((a[(f&n)+4>>0]|0)==115){c[(m&p)>>2]=k+2;m=h?8:6}else{m=h?7:5;l=0}a[(y&n)>>0]=m;c[(y&p)+4>>2]=k;a[(y&n)+1>>0]=0;c[(y&p)+8>>2]=0;c[(y&p)+12>>2]=0;I=d+72|0;m=(c[(I&p)>>2]|0)+1|0;c[(I&p)>>2]=m;wh(v,60,r,m,q)|0;if(h){q=vu(d,f)|0;xh(v,wh(v,57,k,(c[(F&p)>>2]|0)+2|0,0)|0,q,-6);c[(y&p)+16>>2]=F}else wh(v,57,k,q,0)|0;if(l){c[(f&p)+16>>2]=wh(v,57,l,0,0)|0;l=f+6|0;b[(l&o)>>1]=e[(l&o)>>1]|8}c[(E&p)>>2]=0;q=x+56|0;c[(q&p)>>2]=0;l=ir(d,x,y)|0;c[(q&p)>>2]=f;if(!l){q=wh(v,108,k,z,0)|0;wh(v,104,r,0,0)|0;if(h)wh(v,47,k,(c[(F&p)>>2]|0)+1|0,m)|0;else wh(v,102,k,m,0)|0;wh(v,95,k,0,0)|0;l=xs(v)|0;it(v,t,l);Ps(d,f,c[(f&p)>>2]|0,r,0,0,g,l,z);if(s)wh(v,140,s,z,0)|0;h=v+24|0;m=c[(h&p)>>2]|0;k=~l;if((l|0)<0?(u=c[(m&p)+112>>2]|0,(u|0)!=0):0)c[(u+(k<<2)&p)>>2]=c[(v&p)+32>>2];l=v+32|0;c[(m&p)+88>>2]=(c[(l&p)>>2]|0)+-1;c[(w&p)>>2]=0;ir(d,f,y)|0;c[(w&p)>>2]=x;wh(v,16,0,q,0)|0;h=c[(h&p)>>2]|0;k=~z;if((z|0)<0?(G=c[(h&p)+112>>2]|0,(G|0)!=0):0)c[(G+(k<<2)&p)>>2]=c[(l&p)>>2];c[(h&p)+88>>2]=(c[(l&p)>>2]|0)+-1}Nk(c[(d&p)>>2]|0,c[(E&p)>>2]|0);c[(E&p)>>2]=F;c[(A&p)>>2]=B;c[(C&p)>>2]=D}i=H;return}function Ls(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,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;$=i;i=i+48|0;if((i|0)>=(j|0))fa();u=$+40|0;N=$+20|0;O=$;X=c[(f&p)>>2]|0;U=c[(f&p)+8>>2]|0;W=xs(U)|0;T=xs(U)|0;Y=g+4|0;P=a[(Y&n)>>0]|0;Z=g+52|0;_=c[(Z&p)>>2]|0;w=g+48|0;m=c[(w&p)>>2]|0;l=c[(m&p)>>2]|0;R=P<<24>>24==116;a:do if(!R?(s=X+65|0,(a[(s&n)>>0]|0)==0):0){q=u+4|0;t=1;while(1){if((t|0)>(c[(c[(g&p)>>2]&p)>>2]|0)){Q=l;v=14;break a}b:do if((l|0)>0){k=0;r=c[(m&p)+4>>2]|0;while(1){if((e[(r&o)+16>>1]|0)==(t|0))break b;k=k+1|0;if((k|0)<(l|0))r=r+20|0;else break}}else k=0;while(0);if((k|0)==(l|0)){c[(u&p)>>2]=0;c[(q&p)>>2]=0;k=nr(X,132,u,0)|0;if(!k){k=7;break a}J=k+4|0;c[(J&p)>>2]=c[(J&p)>>2]|1024;c[(k&p)+8>>2]=t;k=lr(f,m,k)|0;if(!k)k=0;else{b[((c[(k&p)+4>>2]|0)+(l*20|0)&o)+16>>1]=t;l=l+1|0}}else k=m;if(!(a[(s&n)>>0]|0)){t=t+1|0;m=k}else{Q=l;m=k;v=14;break}}}else{Q=l;v=14}while(0);if((v|0)==14){M=mh(X,Q<<2,0)|0;if(!M)K=0;else{if((Q|0)>0){l=0;k=c[(m&p)+4>>2]|0;while(1){c[(M+(l<<2)&p)>>2]=(e[(k&o)+16>>1]|0)+-1;l=l+1|0;if((l|0)==(Q|0))break;else k=k+20|0}}K=vu(f,g)|0}c[(w&p)>>2]=m;s=_+48|0;c[(s&p)>>2]=Pr(c[(f&p)>>2]|0,m,0)|0;if(!R){m=c[(c[(g&p)>>2]&p)>>2]|0;l=f+72|0;J=c[(l&p)>>2]|0;r=J+1|0;c[(l&p)>>2]=m+1+J;wh(U,25,0,r,0)|0;l=Rs(X,m,1)|0;if(l)if((m|0)>0){k=l+16|0;q=0;do{c[(l+(q<<2)&p)+20>>2]=Ss(f,g,q)|0;a[((c[(k&p)>>2]|0)+q&n)>>0]=0;q=q+1|0}while((q|0)!=(m|0));x=l}else x=l;else x=0}else{x=0;r=0}c[(Z&p)>>2]=0;L=_+56|0;c[(L&p)>>2]=0;wu(f,g,c[(w&p)>>2]|0,26880)|0;if(!(c[(_&p)+52>>2]|0))wu(f,_,c[(s&p)>>2]|0,26880)|0;Os(f,g,W);q=g+8|0;l=c[(q&p)>>2]|0;s=f+72|0;if((l|0)!=0&R){v=c[(s&p)>>2]|0;t=v+1|0;v=v+2|0;c[(s&p)>>2]=v;J=c[(g&p)+12>>2]|0;wh(U,33,(J|0)==0?l:J+1|0,t,0)|0;wh(U,33,t,v,0)|0}else{t=0;v=0}A=g+60|0;Gk(X,c[(A&p)>>2]|0);c[(A&p)>>2]=0;A=g+64|0;Gk(X,c[(A&p)>>2]|0);c[(A&p)>>2]=0;A=c[(s&p)>>2]|0;B=A+1|0;C=A+2|0;y=A+3|0;A=A+4|0;c[(s&p)>>2]=A;a[(N&n)>>0]=13;c[(N&p)+4>>2]=B;a[(N&n)+1>>0]=0;E=N+8|0;c[(E&p)>>2]=0;c[(N&p)+12>>2]=0;a[(O&n)>>0]=13;c[(O&p)+4>>2]=C;a[(O&n)+1>>0]=0;F=O+8|0;c[(F&p)>>2]=0;c[(O&p)+12>>2]=0;I=U+32|0;u=wh(U,20,B,0,(c[(I&p)>>2]|0)+1|0)|0;c[(_&p)+8>>2]=t;s=f+468|0;J=c[(s&p)>>2]|0;ir(f,_,N)|0;wh(U,21,B,0,0)|0;t=c[(I&p)>>2]|0;if(t>>>0>u>>>0)c[((c[(U&p)+4>>2]|0)+(u*20|0)&p)+8>>2]=t;D=U+24|0;c[((c[(D&p)>>2]|0)&p)+88>>2]=t+-1;z=wh(U,20,C,0,t+1|0)|0;k=c[(q&p)>>2]|0;m=g+12|0;w=c[(m&p)>>2]|0;c[(q&p)>>2]=v;c[(m&p)>>2]=0;H=c[(s&p)>>2]|0;ir(f,g,O)|0;c[(q&p)>>2]=k;c[(m&p)>>2]=w;wh(U,21,C,0,0)|0;m=xu(f,g,N,h,y,r,x,W)|0;w=(P+-115&255)<2;if(w)k=xu(f,g,O,h,A,r,x,W)|0;else k=0;if((x|0)!=0?(l=(c[(x&p)>>2]|0)+-1|0,c[(x&p)>>2]=l,(l|0)==0):0)Wc(x);r=P<<24>>24==118;if((P+-117&255)<2){v=W;l=W}else{v=wh(U,17,A,k,0)|0;l=wh(U,22,C,W,0)|0;wh(U,16,0,v,0)|0;q=_+24|0;x=g+24|0;s=x;q=jw(c[(s&p)>>2]|0,c[(s&p)+4>>2]|0,c[(q&p)>>2]|0,c[(q&p)+4>>2]|0)|0;c[(x&p)>>2]=q;c[(x&p)+4>>2]=G}if(r){u=g+24|0;x=u;q=c[(x&p)+4>>2]|0;s=_+24|0;t=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0;if(q>>>0>s>>>0|((q|0)==(s|0)?(c[(x&p)>>2]|0)>>>0>t>>>0:0)){q=u;c[(q&p)>>2]=t;c[(q&p)+4>>2]=s;q=v}else q=v}else{q=wh(U,17,y,m,0)|0;wh(U,22,B,W,0)|0;wh(U,16,0,q,0)|0}u=wh(U,17,y,m,0)|0;wh(U,22,B,v,0)|0;wh(U,16,0,T,0)|0;do if(!R)if(r){v=u;u=u+1|0;break}else{v=wh(U,22,B,v,0)|0;wh(U,16,0,T,0)|0;break}else v=u;while(0);t=c[(I&p)>>2]|0;if(w)wh(U,17,A,k,0)|0;wh(U,22,C,q,0)|0;wh(U,16,0,T,0)|0;s=c[(I&p)>>2]|0;if(s>>>0>z>>>0)c[((c[(U&p)+4>>2]|0)+(z*20|0)&p)+8>>2]=s;c[((c[(D&p)>>2]|0)&p)+88>>2]=s+-1;wh(U,22,B,l,0)|0;wh(U,22,C,q,0)|0;q=c[(D&p)>>2]|0;m=~T;if((T|0)<0?(S=c[(q&p)+112>>2]|0,(S|0)!=0):0)c[(S+(m<<2)&p)>>2]=c[(I&p)>>2];c[(q&p)+88>>2]=(c[(I&p)>>2]|0)+-1;xh(U,wh(U,41,0,0,0)|0,M,-15);xh(U,wh(U,42,c[(E&p)>>2]|0,c[(F&p)>>2]|0,Q)|0,K,-6);l=c[(U&p)+4>>2]|0;if(l)a[(l+(((c[(I&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;wh(U,43,u,v,t)|0;l=c[(D&p)>>2]|0;k=~W;if((W|0)<0?(V=c[(l&p)+112>>2]|0,(V|0)!=0):0)c[(V+(k<<2)&p)>>2]=c[(I&p)>>2];c[(l&p)+88>>2]=(c[(I&p)>>2]|0)+-1;if((a[(h&n)>>0]|0)==9){k=_;while(1){l=c[(k&p)+52>>2]|0;if(!l)break;else k=l}Ns(f,0,c[(k&p)>>2]|0)}k=c[(Z&p)>>2]|0;if(k)Mk(X,k,1);c[(Z&p)>>2]=_;c[(L&p)>>2]=g;Qs(f,d[(Y&n)>>0]|0,J,H,0);k=0}i=$;return k|0}function Ms(a,b){a=a|0;b=b|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;do if(!(c[(a&p)+4>>2]&1024)){e=d[(a&n)>>0]|0;if((e|0)==158){e=Ms(c[(a&p)+12>>2]|0,b)|0;break}else if((e|0)!=157){e=0;break}if(!(Ms(c[(a&p)+12>>2]|0,f)|0))e=0;else{c[(b&p)>>2]=0-(c[(f&p)>>2]|0);e=1}}else{c[(b&p)>>2]=c[(a&p)+8>>2];e=1}while(0);i=g;return e|0}function Ns(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=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;D=i;i=i+32|0;if((i|0)>=(j|0))fa();C=D;B=d+8|0;y=c[(B&p)>>2]|0;z=c[(d&p)>>2]|0;if(((a[(d&n)+450>>0]|0)==0?(k=d+16|0,!((a[(k&n)>>0]|0)!=0|(y|0)==0)):0)?(a[(z&n)+65>>0]|0)==0:0){a[(k&n)>>0]=1;k=c[(z&p)+24>>2]|0;x=(k&32|0)==0;iq(y,c[(f&p)>>2]|0);h=c[(f&p)>>2]|0;if((h|0)>0){w=f+4|0;v=(e|0)==0;s=(k&96|0)==0;t=(e|0)!=0;u=0;do{r=c[(w&p)>>2]|0;h=c[(r+(u*20|0)&p)>>2]|0;do if(h){k=c[(r+(u*20|0)&p)+4>>2]|0;if(k){jq(y,u,0,k,-1);break}k=a[(h&n)>>0]|0;if(k<<24>>24==-102){if(v)A=25}else if(!(k<<24>>24==-100&t))A=25;if((A|0)==25){A=0;k=c[(r+(u*20|0)&p)+8>>2]|0;if(!k){c[(C&p)>>2]=u+1;k=uh(z,34880,C)|0}else k=kh(z,k)|0;jq(y,u,0,k,75);break}q=b[(h&o)+32>>1]|0;k=q<<16>>16;m=c[(e&p)>>2]|0;a:do if((m|0)>0){g=c[(h&p)+28>>2]|0;l=0;while(1){h=l+1|0;if((c[(e+(l*72|0)&p)+48>>2]|0)==(g|0)){h=l;break a}if((h|0)<(m|0))l=h;else break}}else h=0;while(0);h=c[(e+(h*72|0)&p)+24>>2]|0;if(q<<16>>16<0)k=b[(h&o)+36>>1]|0;if((k|0)<0)k=20456;else k=c[((c[(h&p)+4>>2]|0)+(k*24|0)&p)>>2]|0;if(s){jq(y,u,0,kh(z,c[(r+(u*20|0)&p)+8>>2]|0)|0,75);break}if(x){jq(y,u,0,k,-1);break}else{c[(C&p)>>2]=c[(h&p)>>2];c[(C&p)+4>>2]=k;jq(y,u,0,uh(z,27824,C)|0,75);break}}while(0);u=u+1|0;h=c[(f&p)>>2]|0}while((u|0)<(h|0))}k=c[(B&p)>>2]|0;c[(C&p)+4>>2]=e;c[(C&p)>>2]=d;if((h|0)>0){g=f+4|0;h=0;do{jq(k,h,1,yu(C,c[((c[(g&p)>>2]|0)+(h*20|0)&p)>>2]|0,0)|0,-1);h=h+1|0}while((h|0)<(c[(f&p)>>2]|0))}}i=D;return}function Os(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();f=o;h=b+8|0;if((c[(h&p)>>2]|0)==0?(at(a),g=b+60|0,(c[(g&p)>>2]|0)!=0):0){l=a+72|0;m=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=m;c[(h&p)>>2]=m;n=Oq(a)|0;do if(Ms(c[(g&p)>>2]|0,f)|0){f=c[(f&p)>>2]|0;wh(n,25,f,m,0)|0;if(!f){wh(n,16,0,d,0)|0;break}if((f|0)>-1?(e=b+24|0,d=e,h=c[(d&p)+4>>2]|0,k=((f|0)<0)<<31>>31,h>>>0>k>>>0|((h|0)==(k|0)?(c[(d&p)>>2]|0)>>>0>f>>>0:0)):0){d=e;c[(d&p)>>2]=f;c[(d&p)+4>>2]=k}}else{Rq(a,c[(g&p)>>2]|0,m);wh(n,38,m,0,0)|0;wh(n,46,m,d,0)|0}while(0);f=c[(b&p)+64>>2]|0;if(f){k=c[(l&p)>>2]|0;d=k+1|0;c[(b&p)+12>>2]=d;c[(l&p)>>2]=k+2;Rq(a,f,d);wh(n,38,d,0,0)|0;f=wh(n,137,d,0,0)|0;wh(n,25,0,d,0)|0;g=n+32|0;e=c[(g&p)>>2]|0;if(e>>>0>f>>>0)c[((c[(n&p)+4>>2]|0)+(f*20|0)&p)+8>>2]=e;h=n+24|0;c[((c[(h&p)>>2]|0)&p)+88>>2]=e+-1;e=k+2|0;wh(n,89,m,d,e)|0;f=wh(n,137,m,0,0)|0;wh(n,25,-1,e,0)|0;e=c[(g&p)>>2]|0;if(e>>>0>f>>>0)c[((c[(n&p)+4>>2]|0)+(f*20|0)&p)+8>>2]=e;c[((c[(h&p)>>2]|0)&p)+88>>2]=e+-1}}i=o;return}function Ps(b,f,g,h,i,j,k,l,m){b=b|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|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,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0;I=c[(b&p)+8>>2]|0;D=a[(k&n)>>0]|0;x=D&255;z=k+4|0;G=c[(z&p)>>2]|0;if(!j)q=0;else q=d[(j&n)+1>>0]|0;if(!i)H=0;else H=(c[(i&p)>>2]|0)==0?0:i;C=(H|0)!=0;y=(q|0)!=0;if(!(C|y))it(I,c[(f&p)+12>>2]|0,l);E=c[(g&p)>>2]|0;t=k+8|0;i=c[(t&p)>>2]|0;if(i){s=b+72|0;r=c[(s&p)>>2]|0;if((i+E|0)>(r|0)){c[(s&p)>>2]=r+E;F=i;A=0}else{F=i;A=0}}else{if(C){r=((a[(H&n)+24>>0]&1^1)&255)+(c[(c[(H&p)>>2]&p)>>2]|0)|0;F=b+72|0;s=r+(c[(F&p)>>2]|0)|0;c[(F&p)>>2]=s}else{s=c[(b&p)+72>>2]|0;r=0}F=s+1|0;c[(t&p)>>2]=F;c[(b&p)+72>>2]=s+E;A=r}c[(k&p)+12>>2]=E;do if((h|0)>-1){if((E|0)>0){s=0;do{wh(I,47,h,s,s+F|0)|0;s=s+1|0}while((s|0)!=(E|0))}}else{if(D<<24>>24==9)r=1;else if(D<<24>>24==3)break;else r=D<<24>>24==13&1;bt(b,g,F,r)}while(0);if(y){r=d[(j&n)+1>>0]|0;if((r|0)==1)zh(I,c[(j&p)+8>>2]|0);else if((r|0)==2){r=b+72|0;h=c[(r&p)>>2]|0;w=h+1|0;c[(r&p)>>2]=h+E;r=j+8|0;zh(I,c[(r&p)>>2]|0);r=c[(r&p)>>2]|0;if((r|0)<0)r=(c[(I&p)+32>>2]|0)+-1|0;if(!(a[((c[(I&p)>>2]|0)&n)+65>>0]|0))r=(c[(I&p)+4>>2]|0)+(r*20|0)|0;else r=29120;a[(r&n)>>0]=28;c[(r&p)+4>>2]=1;c[(r&p)+8>>2]=w;h=I+32|0;i=(c[(h&p)>>2]|0)+E|0;if((E|0)>0){s=g+4|0;r=E+-1|0;t=I+4|0;v=0;do{y=cu(b,c[((c[(s&p)>>2]|0)+(v*20|0)&p)>>2]|0)|0;j=v+F|0;q=v+w|0;if((v|0)<(r|0))wh(I,78,j,i,q)|0;else wh(I,79,j,l,q)|0;xh(I,-1,y,-4);u=c[(t&p)>>2]|0;if(u)a[(u+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;v=v+1|0}while((v|0)!=(E|0))}else r=E+-1|0;wh(I,33,F,w,r)|0}else zu(b,c[(j&p)+4>>2]|0,l,E,F);if(!H)it(I,c[(f&p)+12>>2]|0,l)}a:do switch(x|0){case 11:{i=k+1|0;a[(i&n)>>0]=Bu(c[(c[(g&p)+4>>2]&p)>>2]|0,a[(i&n)>>0]|0)|0;if(C){Au(b,H,f,F,1,A);break a}j=b+19|0;q=a[(j&n)>>0]|0;if(!(q<<24>>24)){E=b+72|0;j=(c[(E&p)>>2]|0)+1|0;c[(E&p)>>2]=j}else{E=q+-1<<24>>24;a[(j&n)>>0]=E;j=c[(b+((E&255)<<2)&p)+24>>2]|0}xh(I,wh(I,49,F,1,j)|0,i,1);dt(b,F,1);wh(I,110,G,j,0)|0;_r(b,j);B=94;break}case 3:{wh(I,25,1,G,0)|0;B=94;break}case 10:{if(C)Au(b,H,f,F,1,A);else B=95;break}case 2:{wh(I,111,G,F,E)|0;B=94;break}case 12:case 14:case 6:case 5:{s=A+1|0;r=b+60|0;i=c[(r&p)>>2]|0;t=b+56|0;q=c[(t&p)>>2]|0;if((q|0)<(s|0)){B=b+72|0;i=c[(B&p)>>2]|0;c[(B&p)>>2]=i+s;i=i+1|0}else{c[(r&p)>>2]=i+s;c[(t&p)>>2]=q-s}q=i+A|0;wh(I,49,F,E,q)|0;if(D<<24>>24==6){F=G+1|0;xh(I,wh(I,69,F,(c[(I&p)+32>>2]|0)+4|0,i)|0,0,-14);wh(I,110,F,i,0)|0}if(C)Au(b,H,f,q,1,A);else{q=b+19|0;j=a[(q&n)>>0]|0;if(!(j<<24>>24)){F=b+72|0;j=(c[(F&p)>>2]|0)+1|0;c[(F&p)>>2]=j}else{j=j+-1<<24>>24;a[(q&n)>>0]=j;j=c[(b+((j&255)<<2)&p)+24>>2]|0}wh(I,74,G,j,0)|0;wh(I,75,G,i,j)|0;q=c[(I&p)+4>>2]|0;if(q)a[(q+(((c[(I&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;_r(b,j)}dt(b,i,s);if((c[(t&p)>>2]|0)<(s|0)){c[(t&p)>>2]=s;c[(r&p)>>2]=i;B=94}else B=94;break}case 1:{q=b+19|0;j=a[(q&n)>>0]|0;if(!(j<<24>>24)){D=b+72|0;j=(c[(D&p)>>2]|0)+1|0;c[(D&p)>>2]=j}else{j=j+-1<<24>>24;a[(q&n)>>0]=j;j=c[(b+((j&255)<<2)&p)+24>>2]|0}wh(I,49,F,E,j)|0;wh(I,110,G,j,0)|0;_r(b,j);B=94;break}case 9:case 13:{if(C){Au(b,H,f,F,E,A);break a}if(D<<24>>24==13){wh(I,22,c[(z&p)>>2]|0,0,0)|0;B=95;break a}else{wh(I,35,F,E,0)|0;dt(b,F,E);B=94;break a}}case 7:case 8:{u=c[(k&p)+16>>2]|0;h=c[(u&p)>>2]|0;q=b+19|0;j=a[(q&n)>>0]|0;if(!(j<<24>>24)){C=b+72|0;v=(c[(C&p)>>2]|0)+1|0;c[(C&p)>>2]=v}else{v=j+-1<<24>>24;a[(q&n)>>0]=v;v=c[(b+((v&255)<<2)&p)+24>>2]|0}w=h+2|0;x=b+60|0;i=c[(x&p)>>2]|0;y=b+56|0;q=c[(y&p)>>2]|0;if((q|0)<(w|0)){C=b+72|0;i=c[(C&p)>>2]|0;c[(C&p)>>2]=i+w;i=i+1|0}else{c[(x&p)>>2]=i+w;c[(y&p)>>2]=q-w}t=i+h|0;r=t+1|0;if(D<<24>>24==8){q=G+1|0;j=wh(I,69,q,0,F)|0;xh(I,j,E,-14);wh(I,49,F,E,r)|0;wh(I,110,q,r,0)|0;q=c[(I&p)+4>>2]|0;if(!q)s=j;else{a[(q+(((c[(I&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;s=j}}else{wh(I,49,F,E,r)|0;s=0}if((h|0)>0){r=u+4|0;q=F+-1|0;j=0;do{wh(I,34,q+(e[((c[(r&p)>>2]|0)+(j*20|0)&o)+16>>1]|0)|0,j+i|0,0)|0;j=j+1|0}while((j|0)!=(h|0))}wh(I,73,G,t,0)|0;wh(I,49,i,w,v)|0;wh(I,110,G,v,0)|0;if(s){q=c[(I&p)+32>>2]|0;if(q>>>0>s>>>0)c[((c[(I&p)+4>>2]|0)+(s*20|0)&p)+8>>2]=q;c[((c[(I&p)+24>>2]|0)&p)+88>>2]=q+-1}_r(b,v);dt(b,i,w);if((c[(y&p)>>2]|0)<(w|0)){c[(y&p)>>2]=w;c[(x&p)>>2]=i;B=94}else B=94;break}default:B=94}while(0);if((B|0)==94?(H|0)==0:0)B=95;if((B|0)==95?(J=c[(f&p)+8>>2]|0,(J|0)!=0):0)wh(I,140,J,m,0)|0;return}function Qs(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();m=o;if((a[(b&n)+450>>0]|0)==2){k=c[(b&p)+8>>2]|0;l=c[(b&p)>>2]|0;h=(g|0)!=0?35160:10360;if((d|0)==118)g=35336;else if((d|0)==116)g=35320;else if((d|0)==117)g=35352;else g=35360;c[(m&p)>>2]=e;c[(m&p)+4>>2]=f;c[(m&p)+8>>2]=h;c[(m&p)+12>>2]=g;g=uh(l,35120,m)|0;xh(k,wh(k,157,c[(b&p)+464>>2]|0,0,0)|0,g,-1)}i=o;return}function Rs(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=f+e|0;h=(g*5|0)+24|0;i=qg(h,0)|0;if(!i)a[(d&n)+65>>0]=1;else{fw(i|0,0,h|0)|0;c[(i&p)+16>>2]=i+20+(g<<2);b[(i&o)+6>>1]=e;b[(i&o)+8>>1]=f;a[(i&n)+4>>0]=a[(d&n)+62>>0]|0;c[(i&p)+12>>2]=d;c[(i&p)>>2]=1}return i|0}function Ss(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=c[(b&p)+52>>2]|0;if(!((f|0)!=0?(e=Ss(a,f,d)|0,(e|0)!=0):0)){e=c[(b&p)>>2]|0;if((c[(e&p)>>2]|0)>(d|0))e=cu(a,c[((c[(e&p)+4>>2]|0)+(d*20|0)&p)>>2]|0)|0;else e=0}return e|0}function Ts(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;g=(b|0)==0;f=(d|0)==0;a:do if(!(g&f))if(!(g|f)?(h=c[(b&p)>>2]|0,(h|0)==(c[(d&p)>>2]|0)):0)if((h|0)>0){b=c[(b&p)+4>>2]|0;f=c[(d&p)+4>>2]|0;g=0;while(1){if((a[(b+(g*20|0)&n)+12>>0]|0)!=(a[(f+(g*20|0)&n)+12>>0]|0)){f=1;break a}if(Cu(c[(b+(g*20|0)&p)>>2]|0,c[(f+(g*20|0)&p)>>2]|0,e)|0){f=1;break a}g=g+1|0;if((g|0)>=(h|0)){f=0;break}}}else f=0;else f=1;else f=0;while(0);return f|0}function Us(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;g=c[(b&p)>>2]|0;l=c[(d&p)>>2]|0;k=Rs(g,l-e|0,f+1|0)|0;if((k|0)!=0&(l|0)>(e|0)){h=g+8|0;i=k+16|0;j=e;f=(c[(d&p)+4>>2]|0)+(e*20|0)|0;while(1){g=cu(b,c[(f&p)>>2]|0)|0;if(!g)g=c[(h&p)>>2]|0;d=j-e|0;c[(k+(d<<2)&p)+20>>2]=g;a[((c[(i&p)>>2]|0)+d&n)>>0]=a[(f&n)+12>>0]|0;j=j+1|0;if((j|0)==(l|0))break;else f=f+20|0}}return k|0}function Vs(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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,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,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,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;Pa=i;i=i+64|0;if((i|0)>=(j|0))fa();Na=Pa;Oa=Pa+48|0;Ma=Pa+52|0;$=Pa+28|0;Ka=f+8|0;ha=c[(Ka&p)>>2]|0;La=c[(f&p)>>2]|0;c[($&p)>>2]=0;c[($&p)+4>>2]=0;c[($&p)+8>>2]=0;c[($&p)+12>>2]=0;c[($&p)+16>>2]=0;if(!k)S=0;else S=(c[(k&p)>>2]|0)>63?0:k;aa=$+8|0;c[(aa&p)>>2]=S;ba=La+60|0;if(b[(ba&o)>>1]&32)m=m&64511;k=c[(g&p)>>2]|0;a:do if((k|0)<=64){L=m&65535;O=(L&64|0)!=0;X=O?1:k;x=(X*80|0)+743&-16;r=x+72|0;k=mh(La,r,0)|0;Ja=(k|0)==0;if(!Ja)fw(k|0,0,r|0)|0;Aa=La+65|0;if(a[(Aa&n)>>0]|0){mg(La,k);k=0;break}ea=k+60|0;ga=k+64|0;c[(ga&p)>>2]=-1;c[(ea&p)>>2]=-1;Ba=k+41|0;a[(Ba&n)>>0]=X;c[(k&p)>>2]=f;Ca=k+4|0;c[(Ca&p)>>2]=g;ca=k+8|0;c[(ca&p)>>2]=S;c[(k&p)+12>>2]=l;Ea=xs(ha)|0;Da=k+48|0;c[(Da&p)>>2]=Ea;t=k+52|0;c[(t&p)>>2]=Ea;Ea=k+34|0;b[(Ea&o)>>1]=m;Fa=f+424|0;Ga=k+56|0;c[(Ga&p)>>2]=c[(Fa&p)>>2];Ha=k+68|0;c[($&p)>>2]=k;Ia=k+328|0;_=$+4|0;c[(_&p)>>2]=Ia;V=$+12|0;c[(V&p)>>2]=k+x;c[(k+x&p)+48>>2]=k+(x+56);b[(k+x&o)+40>>1]=0;b[(k+x&o)+44>>1]=3;c[(k+x&p)+36>>2]=0;c[(Ha&p)>>2]=0;c[(Ia&p)>>2]=k;c[(k&p)+332>>2]=0;ya=k+340|0;c[(ya&p)>>2]=0;c[(k&p)+344>>2]=8;za=k+348|0;c[(za&p)>>2]=k+352;Du(Ia,h,72);B=(X|0)==0;if((c[(k&p)+340>>2]|0)>0){A=Na+20|0;z=Na+4|0;r=Na+24|0;h=Ia;s=0;do{if(!B){h=c[((c[(h&p)+20>>2]|0)+(s*48|0)&p)>>2]|0;c[(Na&p)>>2]=0;c[(Na&p)+4>>2]=0;c[(Na&p)+8>>2]=0;c[(Na&p)+12>>2]=0;c[(Na&p)+16>>2]=0;c[(Na&p)+20>>2]=0;a[(A&n)>>0]=2;c[(Na&p)>>2]=78;c[(z&p)>>2]=79;c[(r&p)>>2]=0;rs(Na,h)|0;h=c[(_&p)>>2]|0;if(a[(A&n)>>0]|0)xa=15}else xa=15;if((xa|0)==15){xa=0;gt(f,c[((c[(h&p)+20>>2]|0)+(s*48|0)&p)>>2]|0,c[(t&p)>>2]|0,16);h=c[(_&p)>>2]|0;da=(c[(h&p)+20>>2]|0)+(s*48|0)+20|0;b[(da&o)>>1]=e[(da&o)>>1]|4}s=s+1|0}while((s|0)<(c[(h&p)+12>>2]|0))}if(B){if(S)a[(k&n)+36>>0]=c[(S&p)>>2];if(L&1024)a[(k&n)+40>>0]=1}if((c[(g&p)>>2]|0)>0){x=0;do{R=c[(g+(x*72|0)&p)+48>>2]|0;da=c[(Ha&p)>>2]|0;c[(Ha&p)>>2]=da+1;c[(Ha+(da<<2)&p)+4>>2]=R;x=x+1|0}while((x|0)<(c[(g&p)>>2]|0))}u=c[(ya&p)>>2]|0;if((u|0)>0)do{u=u+-1|0;Eu(Ia,u)}while((u|0)>0);b:do if(!(a[(Aa&n)>>0]|0)){da=(L&1024|0)==0;c:do if(!da){d:do if((c[(g&p)>>2]|0)==1){K=c[(g&p)+48>>2]|0;s=c[(g&p)+24>>2]|0;A=c[(l&p)>>2]|0;e:do if((A|0)>0){z=c[(l&p)+4>>2]|0;r=0;while(1){h=c[(z+(r*20|0)&p)>>2]|0;f:do if(!h)h=0;else while(1){B=c[(h&p)+4>>2]|0;if(!(B&4096))break f;if(!(B&262144))h=h+12|0;else h=c[((c[(h&p)+20>>2]|0)&p)+4>>2]|0;h=c[(h&p)>>2]|0;if(!h){h=0;break}}while(0);do if((a[(h&n)>>0]|0)==-102){if((c[(h&p)+28>>2]|0)!=(K|0))break;if((b[(h&o)+32>>1]|0)<0)break e}while(0);r=r+1|0;if((r|0)>=(A|0)){xa=41;break}}}else xa=41;while(0);g:do if((xa|0)==41){h=c[(s&p)+8>>2]|0;if(!h)break d;t=l+4|0;s=s+4|0;while(1){if(a[(h&n)+50>>0]|0){F=h+46|0;h:do if(!(b[(F&o)>>1]|0))B=0;else{I=h+4|0;H=h+32|0;B=0;do{E=b[((c[(I&p)>>2]|0)+(B<<1)&o)>>1]|0;if(!(Fu(Ia,K,E,-1,-1,2,h)|0)){r=c[((c[(H&p)>>2]|0)+(B<<2)&p)>>2]|0;if((c[(l&p)>>2]|0)>0)A=0;else break h;i:while(1){C=c[((c[(t&p)>>2]|0)+(A*20|0)&p)>>2]|0;j:do if(!C)z=0;else{z=C;while(1){D=c[(z&p)+4>>2]|0;if(!(D&4096))break j;if(!(D&262144))z=z+12|0;else z=c[((c[(z&p)+20>>2]|0)&p)+4>>2]|0;z=c[(z&p)>>2]|0;if(!z){z=0;break}}}while(0);do if((a[(z&n)>>0]|0)==-102){if((b[(z&o)+32>>1]|0)!=(b[((c[(I&p)>>2]|0)+(B<<1)&o)>>1]|0))break;if((c[(z&p)+28>>2]|0)!=(K|0))break;z=cu(f,C)|0;if(!z)break;if(!(dd(c[(z&p)>>2]|0,r)|0))break i}while(0);A=A+1|0;if((A|0)>=(c[(l&p)>>2]|0))break h}if((A|0)<0)break h;if(!(a[((c[(s&p)>>2]|0)+(E*24|0)&n)+20>>0]|0))break h}B=B+1|0}while((B|0)<(e[(F&o)>>1]|0))}while(0);if((B|0)==(e[(F&o)>>1]|0))break g}h=c[(h&p)+20>>2]|0;if(!h)break d}}while(0);a[(k&n)+40>>0]=1;break c}while(0);if(!S){b[(Ea&o)>>1]=e[(Ea&o)>>1]|512;c[(ca&p)>>2]=l}}while(0);k:do if((((X|0)==1?(Z=c[($&p)>>2]|0,Y=Z+34|0,(b[(Y&o)>>1]&32)==0):0)?(U=c[(Z&p)+4>>2]|0,Q=c[(U&p)+24>>2]|0,(a[(Q&n)+44>>0]&16)==0):0)?(c[(U&p)+72>>2]|0)==0:0){S=c[(U&p)+48>>2]|0;C=Z+328|0;R=c[(V&p)>>2]|0;K=R+36|0;c[(K&p)>>2]=0;b[(R&o)+42>>1]=0;y=Fu(C,S,-1,0,0,2,0)|0;l:do if(!y){A=c[(Q&p)+8>>2]|0;m:do if(A){D=R+48|0;n:while(1){do if(a[(A&n)+50>>0]|0){if(c[(A&p)+36>>2]|0)break;z=A+46|0;h=b[(z&o)>>1]|0;if((h&65535)>3)break;t=A+4|0;o:do if(!(h<<16>>16)){h=0;B=0}else{B=0;while(1){h=Fu(C,S,b[((c[(t&p)>>2]|0)+(B<<1)&o)>>1]|0,0,0,2,A)|0;if(!h)break;c[((c[(D&p)>>2]|0)+(B<<2)&p)>>2]=h;B=B+1|0;h=b[(z&o)>>1]|0;if((B|0)>=(h&65535|0))break o}h=b[(z&o)>>1]|0}while(0);if((B|0)==(h&65535|0)){D=B;break n}}while(0);A=c[(A&p)+20>>2]|0;if(!A)break m}c[(K&p)>>2]=4609;if(!(a[(A&n)+51>>0]&32)){s=U+64|0;r=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0;z=0;y=0;h=e[(A&o)+48>>1]|0;p:while(1){B=h;while(1){h=B+-1|0;if((B|0)<=0)break p;B=b[((c[(t&p)>>2]|0)+(h<<1)&o)>>1]|0;if((B&65535)<63)break;else B=h}$=iw(1,0,B<<16>>16|0)|0;z=$|z;y=G|y}if((r&~z|0)==0&(s&~y|0)==0)xa=91}else xa=91;if((xa|0)==91)c[(K&p)>>2]=4673;$=D&65535;b[(R&o)+40>>1]=$;b[(R&o)+24>>1]=$;c[(R&p)+28>>2]=A;b[(R&o)+20>>1]=39;break l}while(0);if(!(c[(K&p)>>2]|0)){xa=103;break k}}else{c[(K&p)>>2]=4353;c[(c[(R&p)+48>>2]&p)>>2]=y;b[(R&o)+40>>1]=1;b[(R&o)+24>>1]=1;b[(R&o)+20>>1]=33}while(0);b[(R&o)+22>>1]=1;c[(Z&p)+800>>2]=R;t=c[(Z&p)+68>>2]|0;q:do if((t|0)>0){u=0;while(1){if((c[(Z+(u<<2)&p)+72>>2]|0)==(S|0))break;u=u+1|0;if((u|0)>=(t|0)){u=0;t=0;break q}}u=iw(1,0,u|0)|0;t=G}else{u=0;t=0}while(0);s=R+8|0;c[(s&p)>>2]=u;c[(s&p)+4>>2]=t;c[(Z&p)+740>>2]=S;b[(Z&o)+32>>1]=1;s=c[(Z&p)+8>>2]|0;if(s)a[(Z&n)+36>>0]=c[(s&p)>>2];if(!(b[(Y&o)>>1]&1024)){xa=120;break}a[(Z&n)+40>>0]=1;xa=120}else xa=103;while(0);if((xa|0)==103){F=c[($&p)>>2]|0;h=c[(F&p)+4>>2]|0;H=c[(c[(F&p)>>2]&p)>>2]|0;Z=a[(F&n)+41>>0]|0;I=Z&255;z=c[(V&p)>>2]|0;c[(z&p)+48>>2]=z+56;b[(z&o)+40>>1]=0;b[(z&o)+44>>1]=3;c[(z&p)+36>>2]=0;r=H+65|0;r:do if(Z<<24>>24){s=z+16|0;t=F+68|0;u=z+8|0;v=0;w=0;x=0;y=0;E=0;D=h+8|0;C=0;while(1){a[(s&n)>>0]=E;B=c[(D&p)+40>>2]|0;A=c[(t&p)>>2]|0;s:do if((A|0)>0){h=0;while(1){if((c[(F+(h<<2)&p)+72>>2]|0)==(B|0))break;h=h+1|0;if((h|0)>=(A|0)){h=0;B=0;break s}}h=iw(1,0,h|0)|0;B=G}else{h=0;B=0}while(0);Z=u;c[(Z&p)>>2]=h;c[(Z&p)+4>>2]=B;Z=C;C=a[(D&n)+36>>0]|0;Z=((C|Z)&10)==0;w=Z?w:v;y=Z?y:x;if(!(a[((c[(D&p)+16>>2]|0)&n)+44>>0]&16))h=Hu($,w,y)|0;else h=Gu($,w,y)|0;if(h)break;Z=Iu($,w,y)|0;h=u;if(Z)break;if(a[(r&n)>>0]|0)break r;E=E+1|0;if((E|0)>=(I|0))break r;else{v=c[(h&p)>>2]|v;x=c[(h&p)+4>>2]|x;D=D+72|0}}Ju(H,z);break b}while(0);Ju(H,z);Ku(k,0);if(a[(Aa&n)>>0]|0)break;if(c[(ca&p)>>2]|0){Ku(k,(e[(k&o)+32>>1]|0)+1&65535);if(!(a[(Aa&n)>>0]|0))xa=120;else break}else xa=121}if((xa|0)==120?(c[(ca&p)>>2]|0)==0:0)xa=121;if((xa|0)==121?(c[(La&p)+24>>2]&131072|0)!=0:0){ca=k+24|0;c[(ca&p)>>2]=-1;c[(ca&p)+4>>2]=-1}if((c[(f&p)+64>>2]|0)==0?(a[(Aa&n)>>0]|0)==0:0){x=a[(Ba&n)>>0]|0;t:do if((x&255)>1&(l|0)!=0?(b[(ba&o)>>1]&1024)==0:0){s=Lu(Ha,l)|0;t=G;r=c[(aa&p)>>2]|0;if(r){ca=Lu(Ha,r)|0;s=ca|s;t=G|t}B=k+736|0;h=c[(Ca&p)>>2]|0;A=c[(_&p)>>2]|0;z=A+20|0;A=A+12|0;y=x;r=X;do{u=c[(B+(((y&255)+-1|0)*80|0)&p)+64>>2]|0;if(!(a[(h+((d[(u&n)+16>>0]|0)*72|0)&n)+44>>0]&8))break t;if(da?(c[(u&p)+36>>2]&4096|0)==0:0)break t;w=u+8|0;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;if(!((v&s|0)==0&(w&t|0)==0))break t;u=c[(z&p)>>2]|0;ca=c[(A&p)>>2]|0;x=u+(ca*48|0)|0;if((ca|0)>0)do{ca=u+40|0;if(!((v&c[(ca&p)>>2]|0)==0?(w&c[(ca&p)+4>>2]|0)==0:0)?(c[((c[(u&p)>>2]|0)&p)+4>>2]&1|0)==0:0)break t;u=u+48|0}while(u>>>0<x>>>0);y=y+-1<<24>>24;a[(Ba&n)>>0]=y;r=r+-1|0}while((y&255)>1)}else r=X;while(0);da=(c[(k&p)>>2]|0)+424|0;c[(da&p)>>2]=(c[(da&p)>>2]|0)+(b[(k&o)+32>>1]|0);do if((L&4|0)!=0?(W=(c[(k&p)+800>>2]|0)+36|0,T=c[(W&p)>>2]|0,(T&4096|0)!=0):0){a[(k&n)+38>>0]=1;if(a[((c[(g&p)+24>>2]|0)&n)+44>>0]&32)break;c[(W&p)>>2]=T&-65}while(0);wa=k+736|0;S=(r|0)>0;if(S){P=L&16;Q=k+38|0;R=ha+32|0;M=O^1;O=(q|0)==0|M;N=f+68|0;K=54-(L>>>12&1)|0;J=ha+4|0;E=La+20|0;C=La+16|0;v=0;L=wa;while(1){D=d[(L&n)+44>>0]|0;F=g+(D*72|0)+24|0;t=c[(F&p)>>2]|0;h=c[(t&p)+68>>2]|0;u:do if(!h)z=-1e6;else{B=c[(E&p)>>2]|0;if((B|0)<=0){z=0;break}A=c[(C&p)>>2]|0;s=0;while(1){z=s+1|0;if((c[(A+(s<<4)&p)+12>>2]|0)==(h|0)){z=s;break u}if((z|0)<(B|0))s=z;else break}}while(0);I=c[(L&p)+64>>2]|0;H=t+44|0;h=d[(H&n)>>0]|0;do if(!(h&2)){if(c[(t&p)+12>>2]|0)break;B=c[(I&p)+36>>2]|0;if(B&1024){y=c[(t&p)+60>>2]|0;v:do if(!y)y=0;else while(1){if((c[(y&p)>>2]|0)==(La|0))break v;y=c[(y&p)+24>>2]|0;if(!y){y=0;break}}while(0);xh(ha,wh(ha,149,c[(g+(D*72|0)&p)+48>>2]|0,0,0)|0,y,-10);break}if(h&16)break;if(B&64|P){gs(f,z,c[(t&p)+32>>2]|0,0,c[(t&p)>>2]|0);break}A=g+(D*72|0)+48|0;if(!(a[(Q&n)>>0]|0))h=54;else{c[(ea&p)>>2]=c[(A&p)>>2];h=55}Qq(f,c[(A&p)>>2]|0,z,t,h);if(a[(Q&n)>>0]|0)break;if((b[(t&o)+38>>1]|0)>=64)break;if(a[(H&n)>>0]&32)break;A=g+(D*72|0)+64|0;y=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;if((y|0)==0&(A|0)==0)x=0;else{x=0;do{y=mw(y|0,A|0,1)|0;A=G;x=x+1|0}while(!((y|0)==0&(A|0)==0))}xh(ha,(c[(R&p)>>2]|0)+-1|0,x,-14)}while(0);B=I+36|0;w:do if(c[(B&p)>>2]&512){h=c[(I&p)+28>>2]|0;do if(a[(H&n)>>0]&32){if((a[(h&n)+51>>0]&3)!=2|M)break;c[(L&p)+8>>2]=c[(L&p)+4>>2];break w}while(0);do if(!(a[(Q&n)>>0]|0)){if(!O){x=q;w=K;break}x=c[(N&p)>>2]|0;c[(N&p)>>2]=x+1;w=54}else{w=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if((w|0)==0|(w|0)==(h|0))x=q;else{x=q;do{x=x+1|0;w=c[(w&p)+20>>2]|0}while(!((w|0)==0|(w|0)==(h|0)))}c[(ga&p)>>2]=x;w=55}while(0);c[(L&p)+8>>2]=x;wh(ha,w,x,c[(h&p)+40>>2]|0,z)|0;da=c[(Ka&p)>>2]|0;xh(da,-1,hs(f,h)|0,-6);da=c[(B&p)>>2]|0;if(!((da&15|0)!=0&(da&32770|0)==0))break;if(b[(Ea&o)>>1]&1)break;u=c[(J&p)>>2]|0;if(!u)break;a[(u+(((c[(R&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=2}while(0);if((z|0)>-1)Ar(f,z);v=v+1|0;if((v|0)==(r|0))break;else L=L+80|0}ga=(a[(Aa&n)>>0]|0)==0;c[(k&p)+44>>2]=c[(R&p)>>2];if(!ga)break}else{R=ha+32|0;c[(k&p)+44>>2]=c[(R&p)>>2]}if(!S)break a;ka=k+24|0;la=k+36|0;ma=k+39|0;na=f+80|0;oa=f+68|0;pa=f+100|0;qa=f+19|0;ra=f+72|0;sa=Na+20|0;ta=Na+4|0;ua=Na+24|0;t=-1;s=-1;va=0;while(1){Y=wa+(va*80|0)|0;h=wa+(va*80|0)+64|0;_=wa+(va*80|0)+44|0;if(c[((c[(h&p)>>2]|0)&p)+36>>2]&16384){K=d[(_&n)>>0]|0;U=g+(K*72|0)+8|0;Z=c[(Ka&p)>>2]|0;y=Oq(f)|0;$=c[(na&p)>>2]|0;c[(na&p)>>2]=$+1;$=wh(y,44,$,0,0)|0;y=c[(g+(K*72|0)&p)+24>>2]|0;ga=c[(ya&p)>>2]|0;B=c[(za&p)>>2]|0;T=B+(ga*48|0)|0;M=c[(h&p)>>2]|0;x:do if((ga|0)>0){z=g+(K*72|0)+48|0;v=y+4|0;w=M+48|0;F=0;C=0;A=0;u=0;E=0;while(1){D=c[(B&p)>>2]|0;ga=M;do if((c[(ga&p)>>2]|0)==0&(c[(ga&p)+4>>2]|0)==0){if(b[(B&o)+20>>1]&2)break;if(c[(D&p)+4>>2]&1)break;ga=c[(z&p)>>2]|0;c[(Na&p)>>2]=0;c[(Na&p)+4>>2]=0;c[(Na&p)+8>>2]=0;c[(Na&p)+12>>2]=0;c[(Na&p)+16>>2]=0;c[(Na&p)+20>>2]=0;a[(sa&n)>>0]=3;c[(Na&p)>>2]=78;c[(ta&p)>>2]=79;c[(ua&p)>>2]=ga;rs(Na,D)|0;if(!(a[(sa&n)>>0]|0))break;ga=c[(f&p)>>2]|0;u=ss(ga,u,Mr(ga,D,0,0)|0)|0}while(0);do if(!(Mu(B,U,t,s)|0)){I=F;D=C;h=A}else{D=c[(B&p)+12>>2]|0;if((D|0)>63){I=0;H=-2147483648}else{I=iw(1,0,D|0)|0;H=G}if(!(E<<24>>24)){E=c[((c[(v&p)>>2]|0)+(D*24|0)&p)>>2]|0;c[(Na&p)>>2]=c[(y&p)>>2];c[(Na&p)+4>>2]=E;bd(284,33960,Na);E=1}if(!((I&F|0)==0&(H&C|0)==0)){I=F;D=C;h=A;break}h=A+1|0;if(Nu(c[(f&p)>>2]|0,M,h)|0)break x;c[((c[(w&p)>>2]|0)+(A<<2)&p)>>2]=B;I=I|F;D=H|C}while(0);B=B+48|0;if(B>>>0>=T>>>0){B=I;xa=207;break}else{F=I;C=D;A=h}}}else{D=0;B=0;h=0;u=0;xa=207}while(0);do if((xa|0)==207){xa=0;v=h&65535;b[(M&o)+40>>1]=v;b[(M&o)+24>>1]=v;v=M+36|0;c[(v&p)>>2]=16961;L=g+(K*72|0)+64|0;N=L;H=c[(N&p)+4>>2]|0;N=c[(N&p)>>2]&~B;P=H&((D|-2147483648)^2147483647);x=y+38|0;Q=b[(x&o)>>1]|0;I=Q<<16>>16;Q=Q<<16>>16>63?63:I;S=(Q|0)>0;if(S){D=0;do{ga=iw(1,0,D|0)|0;h=(((ga&N|0)!=0|(G&P|0)!=0)&1)+h|0;D=D+1|0}while((D|0)!=(Q|0))}if((H|0)<0)h=h+-63+I|0;O=h+1|0;J=us(c[(f&p)>>2]|0,O&65535,0,Oa)|0;if(!J)break;c[(M&p)+28>>2]=J;c[(J&p)>>2]=33992;c[(J&p)+12>>2]=y;D=c[(za&p)>>2]|0;if(D>>>0<T>>>0){h=J+4|0;B=J+32|0;H=0;I=0;A=0;do{do if(Mu(D,U,t,s)|0){F=c[(D&p)+12>>2]|0;if((F|0)>63){E=0;C=-2147483648}else{E=iw(1,0,F|0)|0;C=G}if(!((E&H|0)==0&(C&I|0)==0))break;ga=c[(D&p)>>2]|0;b[((c[(h&p)>>2]|0)+(A<<1)&o)>>1]=F;F=Ou(f,c[(ga&p)+12>>2]|0,c[(ga&p)+16>>2]|0)|0;if(!F)F=11152;else F=c[(F&p)>>2]|0;c[((c[(B&p)>>2]|0)+(A<<2)&p)>>2]=F;H=E|H;I=C|I;A=A+1|0}while(0);D=D+48|0}while(D>>>0<T>>>0)}else A=0;if(S){D=J+4|0;C=J+32|0;h=0;do{ga=iw(1,0,h|0)|0;if(!((ga&N|0)==0&(G&P|0)==0)){b[((c[(D&p)>>2]|0)+(A<<1)&o)>>1]=h;c[((c[(C&p)>>2]|0)+(A<<2)&p)>>2]=11152;A=A+1|0}h=h+1|0}while((h|0)!=(Q|0))}do if((c[(L&p)+4>>2]|0)<0){if((b[(x&o)>>1]|0)<=63)break;h=J+4|0;B=J+32|0;z=63;do{b[((c[(h&p)>>2]|0)+(A<<1)&o)>>1]=z;c[((c[(B&p)>>2]|0)+(A<<2)&p)>>2]=11152;A=A+1|0;z=z+1|0}while((z|0)<(b[(x&o)>>1]|0))}while(0);b[((c[(J&p)+4>>2]|0)+(A<<1)&o)>>1]=-1;c[((c[(J&p)+32>>2]|0)+(A<<2)&p)>>2]=11152;D=c[(oa&p)>>2]|0;c[(oa&p)>>2]=D+1;B=wa+(va*80|0)+8|0;c[(B&p)>>2]=D;wh(Z,56,D,O,0)|0;D=c[(Ka&p)>>2]|0;xh(D,-1,hs(f,J)|0,-6);c[(pa&p)>>2]=(c[(pa&p)>>2]|0)+1;D=wa+(va*80|0)+4|0;w=wh(Z,108,c[(D&p)>>2]|0,0,0)|0;A=(u|0)!=0;if(A){z=xs(Z)|0;gt(f,u,z,16);c[(v&p)>>2]=c[(v&p)>>2]|131072}else z=0;h=a[(qa&n)>>0]|0;if(!(h<<24>>24)){v=(c[(ra&p)>>2]|0)+1|0;c[(ra&p)>>2]=v}else{v=h+-1<<24>>24;a[(qa&n)>>0]=v;v=c[(f+((v&255)<<2)&p)+24>>2]|0}Pt(f,J,c[(D&p)>>2]|0,v,0,0,0,0)|0;wh(Z,110,c[(B&p)>>2]|0,v,0)|0;C=Z+4|0;h=c[(C&p)>>2]|0;if(h)a[(h+(((c[(Z&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;if(A){B=c[(Z&p)+24>>2]|0;A=~z;do if((z|0)<0){h=c[(B&p)+112>>2]|0;if(!h)break;c[(h+(A<<2)&p)>>2]=c[(Z&p)+32>>2]}while(0);c[(B&p)+88>>2]=(c[(Z&p)+32>>2]|0)+-1}wh(Z,9,c[(D&p)>>2]|0,w+1|0,0)|0;h=c[(C&p)>>2]|0;B=c[(Z&p)+32>>2]|0;if(h)a[(h+((B+-1|0)*20|0)&n)+3>>0]=3;if(B>>>0>w>>>0)c[(h+(w*20|0)&p)+8>>2]=B;h=Z+24|0;c[((c[(h&p)>>2]|0)&p)+88>>2]=B+-1;_r(f,v);bu(f);x=c[(Z&p)+32>>2]|0;if(x>>>0>$>>>0)c[((c[(C&p)>>2]|0)+($*20|0)&p)+8>>2]=x;c[((c[(h&p)>>2]|0)&p)+88>>2]=x+-1}while(0);Gk(c[(f&p)>>2]|0,u);if(a[(Aa&n)>>0]|0)break b}Pu(f,g,Y,va,d[(_&n)>>0]|0,m);c[(wa+(va*80|0)&p)+32>>2]=c[(R&p)>>2];ja=c[(k&p)>>2]|0;O=ja+8|0;ea=c[(O&p)>>2]|0;ha=c[(ja&p)>>2]|0;u=k+(va*80|0)+736|0;N=c[(k+(va*80|0)&p)+800>>2]|0;ca=k+(va*80|0)+780|0;K=d[(ca&n)>>0]|0;I=c[(Ca&p)>>2]|0;Q=I+(K*72|0)+8|0;q=c[(I+(K*72|0)&p)+48>>2]|0;B=c[(Ha&p)>>2]|0;y:do if((B|0)>0){h=0;while(1){if((c[(Ha+(h<<2)&p)+4>>2]|0)==(q|0))break;h=h+1|0;if((h|0)>=(B|0)){h=-1;B=-1;break y}}h=iw(1,0,h|0)|0;h=~h;B=~G}else{h=-1;B=-1}while(0);ia=k+(va*80|0)+808|0;P=ia;c[(P&p)>>2]=h&t;c[(P&p)+4>>2]=B&s;P=ka;P=mw(c[(P&p)>>2]|0,c[(P&p)+4>>2]|0,va|0)|0;ba=P&1;W=N+36|0;if(!(c[(W&p)>>2]&64))y=0;else y=(b[(Ea&o)>>1]&32)==0;J=xs(ea)|0;S=k+(va*80|0)+752|0;c[(S&p)>>2]=J;da=k+(va*80|0)+748|0;c[(da&p)>>2]=J;ga=xs(ea)|0;c[(k+(va*80|0)&p)+760>>2]=ga;do if(a[(ca&n)>>0]|0){if(!(a[(I+(K*72|0)&n)+44>>0]&8))break;aa=ja+72|0;l=(c[(aa&p)>>2]|0)+1|0;c[(aa&p)>>2]=l;c[(u&p)>>2]=l;wh(ea,25,0,l,0)|0}while(0);D=a[(I+(K*72|0)&n)+45>>0]|0;z:do if(!(D&4)){F=c[(W&p)>>2]|0;if(F&1024){v=b[(N&o)+40>>1]|0;w=v&65535;y=ja+100|0;c[(y&p)>>2]=(c[(y&p)>>2]|0)+1;y=w+2|0;J=ja+60|0;h=c[(J&p)>>2]|0;K=ja+56|0;B=c[(K&p)>>2]|0;if((B|0)<(y|0)){ca=ja+72|0;x=c[(ca&p)>>2]|0;c[(ca&p)>>2]=x+y;x=x+1|0}else{c[(J&p)>>2]=h+y;c[(K&p)>>2]=B-y;x=h}h=c[(da&p)>>2]|0;E=v<<16>>16==0;if(!E){H=x+2|0;F=N+48|0;I=0;do{D=H+I|0;C=c[((c[(F&p)>>2]|0)+(I<<2)&p)>>2]|0;do if(C)if(!(b[(C&o)+18>>1]&1)){Rq(ja,c[((c[(C&p)>>2]|0)&p)+16>>2]|0,D);break}else{Qu(ja,C,u,I,ba,D)|0;h=c[(S&p)>>2]|0;break}while(0);I=I+1|0}while((I|0)<(w|0))}wh(ea,25,c[(N&p)+24>>2]|0,x,0)|0;wh(ea,25,w,x+1|0,0)|0;ba=c[(N&p)+32>>2]|0;da=N+28|0;ca=(a[(da&n)>>0]|0)!=0?-11:-2;xh(ea,wh(ea,14,q,h,x)|0,ba,ca);a[(da&n)>>0]=0;if(!E){z=N+30|0;A=N+48|0;h=(v&65535)>1?0-w|0:-1;h=h>>>0>4294967280?0-h|0:16;B=0;do{if(e[(z&o)>>1]&1<<B)Ru(u,c[((c[(A&p)>>2]|0)+(B<<2)&p)>>2]|0);B=B+1|0}while((B|0)!=(h|0))}a[(k+(va*80|0)&n)+781>>0]=-105;c[(k+(va*80|0)&p)+784>>2]=q;c[(k+(va*80|0)&p)+788>>2]=c[(ea&p)+32>>2];dt(ja,x,y);if((c[(K&p)>>2]|0)<(y|0)){c[(K&p)>>2]=y;c[(J&p)>>2]=x}bu(ja);xa=459;break}if(!((F&256|0)==0|(F&5|0)==0)){y=c[(c[(N&p)+48>>2]&p)>>2]|0;da=ja+72|0;A=(c[(da&p)>>2]|0)+1|0;c[(da&p)>>2]=A;y=Qu(ja,y,u,0,ba,A)|0;if((y|0)!=(A|0))_r(ja,A);xa=c[(S&p)>>2]|0;wh(ea,38,y,xa,0)|0;wh(ea,70,q,xa,y)|0;dt(ja,y,1);Su(ja,q,-1,y);a[(k+(va*80|0)&n)+781>>0]=-100;xa=459;break}if((F&258|0)==258){if(!(F&32)){h=0;A=0}else{h=1;A=c[(c[(N&p)+48>>2]&p)>>2]|0}if(!(F&16))h=0;else h=c[((c[(N&p)+48>>2]|0)+(h<<2)&p)>>2]|0;B=(ba|0)!=0;z=B?A:h;h=B?h:A;if(!h)wh(ea,B?105:108,q,J,0)|0;else{ca=c[(h&p)>>2]|0;da=$t(ja,c[(ca&p)+16>>2]|0,Na)|0;wh(ea,d[((d[(ca&n)>>0]|0)+-80&n)+33536>>0]|0,q,J,da)|0;dt(ja,da,1);_r(ja,c[(Na&p)>>2]|0);Ru(u,h)}if(!z){h=0;B=156}else{da=c[(z&p)>>2]|0;ca=ja+72|0;h=(c[(ca&p)>>2]|0)+1|0;c[(ca&p)>>2]=h;Rq(ja,c[(da&p)+16>>2]|0,h);da=a[(da&n)>>0]|0;if(da<<24>>24==80|da<<24>>24==82)B=ba<<1^83;else B=ba<<1|80;Ru(u,z)}A=ea+32|0;da=c[(A&p)>>2]|0;a[(k+(va*80|0)&n)+781>>0]=ba^9;c[(k+(va*80|0)&p)+784>>2]=q;c[(k+(va*80|0)&p)+788>>2]=da;if((B|0)==156){xa=459;break}da=ja+72|0;x=(c[(da&p)>>2]|0)+1|0;c[(da&p)>>2]=x;wh(ea,103,q,x,0)|0;Su(ja,q,-1,x);wh(ea,B,h,J,x)|0;x=c[(ea&p)+4>>2]|0;if(!x){xa=459;break}a[(x+(((c[(A&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=83;xa=459;break}if(F&512){O=b[(N&o)+24>>1]|0;a[(Ma&n)>>0]=0;V=c[(N&p)+28>>2]|0;X=c[(k+(va*80|0)&p)+744>>2]|0;do if(!(b[(Ea&o)>>1]&1)){H=0;D=0}else{if((a[(la&n)>>0]|0)<=0){H=0;D=0;break}D=(e[(V&o)+46>>1]|0)>(O&65535);H=D&1;D=D&1}while(0);h=O&65535;if(!(F&32)){I=h;K=0}else{I=h+1|0;D=1;K=c[((c[(N&p)+48>>2]|0)+(h<<2)&p)>>2]|0}do if(!(F&16))C=0;else{C=c[((c[(N&p)+48>>2]|0)+(I<<2)&p)>>2]|0;if(b[(C&o)+20>>1]&256){ca=ja+72|0;da=(c[(ca&p)>>2]|0)+1|0;c[(ca&p)>>2]=da;c[(k+(va*80|0)&p)+772>>2]=da;wh(ea,25,(a[((c[(V&p)+28>>2]|0)+h&n)>>0]|0)==1^ba,da,0)|0;c[(k+(va*80|0)&p)+776>>2]=c[(ea&p)+32>>2]}if(K){D=1;break}D=b[((c[(V&p)+4>>2]|0)+(h<<1)&o)>>1]|0;if(D<<16>>16<=-1){D=1;break}H=(a[((c[((c[(V&p)+12>>2]|0)&p)+4>>2]|0)+((D<<16>>16)*24|0)&n)+20>>0]|0)==0?1:H;D=1}while(0);M=Tu(ja,u,ba,D,Oa)|0;L=c[(Oa&p)>>2]|0;J=(L|0)==0;if(!J)a[(Ma&n)>>0]=a[(L+h&n)>>0]|0;N=c[(S&p)>>2]|0;E=b[(V&o)+46>>1]|0;if((O&65535)<(E&65535)?!((a[((c[(V&p)+28>>2]|0)+h&n)>>0]|0)==0^((P&1|0)!=0|0!=0)):0)xa=318;else if((ba|0)!=0?E<<16>>16==O<<16>>16:0)xa=318;else{Q=H;H=0;P=C;S=K}if((xa|0)==318){Q=0;P=K;S=C}C=(S|0)!=0;if(C)E=(b[(S&o)+18>>1]&40)!=0;else E=1;F=E&1;K=(P|0)!=0;if(K)I=(b[(P&o)+18>>1]&40)!=0;else I=1;D=I&1;I=(C|O<<16>>16!=0)&1;do if(C){B=c[((c[(S&p)>>2]|0)&p)+16>>2]|0;C=M+h|0;Rq(ja,B,C);if(b[(S&o)+20>>1]&256){if(!(a[((c[(ea&p)>>2]|0)&n)+65>>0]|0))E=(c[(ea&p)+4>>2]|0)+(((c[(ea&p)+32>>2]|0)+-1|0)*20|0)|0;else E=29120;c[(E&p)+12>>2]=c[(k+(va*80|0)&p)+772>>2];a[(E&n)+3>>0]=1}if(Uu(B)|0)wh(ea,76,C,N,0)|0;do if(!J){E=L+h|0;if((Bu(B,a[(E&n)>>0]|0)|0)<<24>>24==65){a[(E&n)>>0]=65;C=65}else C=a[(E&n)>>0]|0;if(!(Vu(B,C)|0))break;a[(E&n)>>0]=65}while(0);E=h+1|0}else{if(!(Q<<24>>24)){E=h;break}wh(ea,28,0,M+h|0,0)|0;E=h+1|0;F=0;I=1}while(0);Wu(ja,M,E-(Q&255)|0,L);xh(ea,wh(ea,d[((I<<2|ba|F<<1)&n)+33544>>0]|0,X,N,M)|0,E,-14);do if(K){B=c[((c[(P&p)>>2]|0)&p)+16>>2]|0;A=M+h|0;dt(ja,A,1);Rq(ja,B,A);if(b[(P&o)+20>>1]&256){if(!(a[((c[(ea&p)>>2]|0)&n)+65>>0]|0))C=(c[(ea&p)+4>>2]|0)+(((c[(ea&p)+32>>2]|0)+-1|0)*20|0)|0;else C=29120;c[(C&p)+12>>2]=c[(k+(va*80|0)&p)+772>>2];a[(C&n)+3>>0]=1}if(Uu(B)|0)wh(ea,76,A,N,0)|0;do if((Bu(B,a[(Ma&n)>>0]|0)|0)<<24>>24!=65){if(Vu(B,a[(Ma&n)>>0]|0)|0)break;Wu(ja,A,1,Ma)}while(0);h=h+1|0}else{if(!(H<<24>>24))break;wh(ea,28,0,M+h|0,0)|0;D=0;h=h+1|0}while(0);mg(ha,L);c[(k+(va*80|0)&p)+788>>2]=c[(ea&p)+32>>2];if(h)xh(ea,wh(ea,d[((D|ba<<1)&n)+33552>>0]|0,X,N,M)|0,h,-14);Ru(u,S);Ru(u,P);do if(!y){h=c[(V&p)+12>>2]|0;if(!(a[(h&n)+44>>0]&32)){ca=ja+72|0;da=(c[(ca&p)>>2]|0)+1|0;c[(ca&p)>>2]=da;wh(ea,112,X,da,0)|0;Su(ja,q,-1,da);wh(ea,66,q,da,0)|0;break}if((q|0)==(X|0))break;h=c[(h&p)+8>>2]|0;A:do if(!h)D=0;else while(1){if((a[(h&n)+51>>0]&3)==2){D=h;break A}h=c[(h&p)+20>>2]|0;if(!h){D=0;break}}while(0);I=D+46|0;w=b[(I&o)>>1]|0;h=w&65535;B=ja+60|0;A=c[(B&p)>>2]|0;z=ja+56|0;v=c[(z&p)>>2]|0;if((v|0)<(h|0)){da=ja+72|0;A=c[(da&p)>>2]|0;c[(da&p)>>2]=A+h;A=A+1|0}else{c[(B&p)>>2]=A+h;c[(z&p)>>2]=v-h}if(w<<16>>16){v=D+4|0;w=V+48|0;z=V+4|0;E=0;do{D=b[((c[(v&p)>>2]|0)+(E<<1)&o)>>1]|0;h=b[(w&o)>>1]|0;B:do if(!(h<<16>>16))h=-1;else{C=c[(z&p)>>2]|0;B=h&65535;h=0;while(1){if((b[(C+(h<<1)&o)>>1]|0)==D<<16>>16)break B;h=h+1|0;if((h|0)>=(B|0)){h=-1;break}}}while(0);wh(ea,47,X,h<<16>>16,E+A|0)|0;E=E+1|0;h=e[(I&o)>>1]|0}while((E|0)<(h|0))}xh(ea,wh(ea,68,q,ga,A)|0,h,-14)}while(0);A=c[(W&p)>>2]|0;do if(!(A&4096)){z=k+(va*80|0)+781|0;if(!ba){a[(z&n)>>0]=9;break}else{a[(z&n)>>0]=8;break}}else a[(k+(va*80|0)&n)+781>>0]=-100;while(0);c[(k+(va*80|0)&p)+784>>2]=X;a[(k+(va*80|0)&n)+782>>0]=A>>>16&1;if(A&15){xa=459;break}a[(k+(va*80|0)&n)+783>>0]=1;xa=459;break}if(!(F&8192))if(!(D&8)){a[(k+(va*80|0)&n)+781>>0]=a[(ba&n)+33560>>0]|0;c[(k+(va*80|0)&p)+784>>2]=q;c[(k+(va*80|0)&p)+788>>2]=(wh(ea,d[(ba&n)+33568>>0]|0,q,J,0)|0)+1;a[(k+(va*80|0)&n)+783>>0]=1;xa=459;break}else{a[(k+(va*80|0)&n)+781>>0]=-100;xa=459;break}J=ja+68|0;aa=c[(J&p)>>2]|0;c[(J&p)>>2]=aa+1;_=ja+72|0;$=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=$;ba=xs(ea)|0;Z=c[(I+(K*72|0)&p)+24>>2]|0;l=c[(c[(N&p)+48>>2]&p)>>2]|0;S=c[(l&p)+12>>2]|0;a[(k+(va*80|0)&n)+781>>0]=18;c[(k+(va*80|0)&p)+784>>2]=$;D=a[(Ba&n)>>0]|0;do if((D&255)>1){I=(D&255)-va|0;F=I+-1|0;E=mh(ha,(F*72|0)+80|0,0)|0;if(!E)break z;D=I&255;c[(E&p)+4>>2]=D;c[(E&p)>>2]=D;D=E+8|0;K=D+0|0;C=Q+0|0;h=K+72|0;do{c[(K&p)>>2]=c[(C&p)>>2];K=K+4|0;C=C+4|0}while((K|0)<(h|0));H=c[(Ca&p)>>2]|0;if((I|0)<2){Y=E;break}else I=1;while(1){K=D+(I*72|0)+0|0;C=H+((d[(k+((I+va|0)*80|0)&n)+780>>0]|0)*72|0)+8|0;h=K+72|0;do{c[(K&p)>>2]=c[(C&p)>>2];K=K+4|0;C=C+4|0}while((K|0)<(h|0));if((I|0)<(F|0))I=I+1|0;else{Y=E;break}}}else Y=c[(Ca&p)>>2]|0;while(0);if(!(b[(Ea&o)>>1]&8)){if(!(a[(Z&n)+44>>0]&32)){D=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=D;wh(ea,28,0,D,0)|0}else{D=c[(Z&p)+8>>2]|0;C:do if(!D)D=0;else while(1){if((a[(D&n)+51>>0]&3)==2)break C;D=c[(D&p)+20>>2]|0;if(!D){D=0;break}}while(0);X=c[(J&p)>>2]|0;c[(J&p)>>2]=X+1;wh(ea,57,X,e[(D&o)+46>>1]|0,0)|0;W=c[(O&p)>>2]|0;xh(W,-1,hs(ja,D)|0,-6);D=X}W=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=W}else{W=0;D=0}X=wh(ea,25,0,$,0)|0;C=c[(ya&p)>>2]|0;do if((C|0)>1){E=0;I=0;do{H=c[(za&p)>>2]|0;V=H+(E*48|0)|0;F=c[(V&p)>>2]|0;do if((V|0)!=(l|0)){if(c[(F&p)+4>>2]&1)break;if(b[(H+(E*48|0)&o)+20>>1]&2)break;if(!(b[(H+(E*48|0)&o)+18>>1]&4095))break;I=ss(ha,I,Mr(ha,F,0,0)|0)|0;C=c[(ya&p)>>2]|0}while(0);E=E+1|0}while((E|0)<(C|0));C=I;if(!C){V=0;break}V=Zq(ja,72,0,C,0)|0}else V=0;while(0);U=S+12|0;do if((c[(U&p)>>2]|0)>0){x=S+20|0;w=(V|0)==0;v=Z+44|0;z=ea+32|0;A=ea+4|0;C=ea+24|0;E=Z+8|0;F=ja+60|0;H=ja+56|0;I=V+12|0;T=0;B=0;h=0;y=240;while(1){K=c[(x&p)>>2]|0;if((c[(K+(T*48|0)&p)+8>>2]|0)!=(q|0)?(b[(K+(T*48|0)&o)+18>>1]&512)==0:0)K=y;else xa=407;do if((xa|0)==407){xa=0;K=c[(K+(T*48|0)&p)>>2]|0;do if(!w){if(c[(K&p)+4>>2]&1)break;c[(I&p)>>2]=K;K=V}while(0);L=Vs(ja,Y,K,0,0,y,aa)|0;if(!L){K=y;break}Pu(ja,Y,L+736|0,va,d[(ca&n)>>0]|0,0);do if(!(b[(Ea&o)>>1]&8)){O=(T|0)==((c[(U&p)>>2]|0)+-1|0)?-1:T;do if(!(a[(v&n)>>0]&32)){J=wh(ea,130,D,0,ct(ja,Z,-1,q,W,0)|0)|0;xh(ea,J,O,-14)}else{K=c[(E&p)>>2]|0;D:do if(!K)K=0;else while(1){if((a[(K&n)+51>>0]&3)==2)break D;K=c[(K&p)+20>>2]|0;if(!K){K=0;break}}while(0);P=b[(K&o)+46>>1]|0;M=P&65535;S=c[(F&p)>>2]|0;Q=c[(H&p)>>2]|0;if((Q|0)<(M|0)){N=c[(_&p)>>2]|0;c[(_&p)>>2]=N+M;N=N+1|0}else{c[(F&p)>>2]=S+M;c[(H&p)>>2]=Q-M;N=S}if(P<<16>>16){Q=K+4|0;S=0;do{ct(ja,Z,b[((c[(Q&p)>>2]|0)+(S<<1)&o)>>1]|0,q,S+N|0,0)|0;S=S+1|0}while((S|0)<(M|0))}S=(O|0)!=0;if(S){J=wh(ea,69,D,0,N)|0;xh(ea,J,M,-14);if((O|0)>-1)xa=426}else{J=0;xa=426}do if((xa|0)==426){xa=0;wh(ea,49,N,M,W)|0;wh(ea,110,D,W,0)|0;if(!S)break;O=c[(A&p)>>2]|0;if(!O)break;a[(O+(((c[(z&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16}while(0);dt(ja,N,M);if((c[(H&p)>>2]|0)>=(M|0))break;c[(H&p)>>2]=M;c[(F&p)>>2]=N}while(0);wh(ea,17,$,ba,0)|0;if(!J)break;K=c[(z&p)>>2]|0;if(K>>>0>J>>>0)c[((c[(A&p)>>2]|0)+(J*20|0)&p)+8>>2]=K;c[((c[(C&p)>>2]|0)&p)+88>>2]=K+-1}else wh(ea,17,$,ba,0)|0;while(0);h=(a[(L&n)+39>>0]|0)==0?h:1;K=c[(L&p)+800>>2]|0;do if(!(c[(K&p)+36>>2]&512)){B=0;K=y}else{if((T|0)!=0?(c[(K&p)+28>>2]|0)!=(B|0):0){B=0;K=y;break}B=c[(K&p)+28>>2]|0;if((a[(v&n)>>0]&32)!=0?(a[(B&n)+51>>0]&3)==2:0){B=0;K=y;break}K=(y&65535|4096)&65535}while(0);Xs(L)}while(0);T=T+1|0;if((T|0)>=(c[(U&p)>>2]|0))break;else y=K}c[(k+(va*80|0)&p)+792>>2]=B;if(!B){v=h;break}c[(k+(va*80|0)&p)+744>>2]=aa;v=h}else{c[(k+(va*80|0)&p)+792>>2]=0;v=0}while(0);if(V){c[(V&p)+12>>2]=0;Gk(ha,V)}z=ea+32|0;h=c[(z&p)>>2]|0;if(h>>>0>X>>>0)c[((c[(ea&p)+4>>2]|0)+(X*20|0)&p)+4>>2]=h;wh(ea,16,0,c[(da&p)>>2]|0,0)|0;B=c[(ea&p)+24>>2]|0;A=~ba;do if((ba|0)<0){h=c[(B&p)+112>>2]|0;if(!h)break;c[(h+(A<<2)&p)>>2]=c[(z&p)>>2]}while(0);c[(B&p)+88>>2]=(c[(z&p)>>2]|0)+-1;if((d[(Ba&n)>>0]|0)>1)mg(ha,Y);if(v){xa=459;break}Ru(u,l);xa=459}else{xa=c[(I+(K*72|0)&p)+36>>2]|0;wh(ea,20,xa,0,c[(I+(K*72|0)&p)+32>>2]|0)|0;c[(k+(va*80|0)&p)+788>>2]=wh(ea,22,xa,J,0)|0;a[(k+(va*80|0)&n)+781>>0]=16;xa=459}while(0);if((xa|0)==459){xa=0;h=c[(ya&p)>>2]|0;do if((h|0)>0){x=k+(va*80|0)+772|0;y=ea+32|0;C=ea+4|0;D=ea+24|0;w=c[(za&p)>>2]|0;while(1){v=w+20|0;B=b[(v&o)>>1]|0;do if(!(B&6)){da=w+40|0;ca=ia;if(!((c[(ca&p)>>2]&c[(da&p)>>2]|0)==0?(c[(ca&p)+4>>2]&c[(da&p)+4>>2]|0)==0:0)){a[(ma&n)>>0]=1;break}A=c[(w&p)>>2]|0;if((c[(u&p)>>2]|0)!=0?(c[(A&p)+4>>2]&1|0)==0:0)break;do if(!(B&512))gt(ja,A,ga,16);else{z=wh(ea,46,c[(x&p)>>2]|0,0,0)|0;gt(ja,A,ga,16);if(!z)break;B=c[(y&p)>>2]|0;if(B>>>0>z>>>0)c[((c[(C&p)>>2]|0)+(z*20|0)&p)+8>>2]=B;c[((c[(D&p)>>2]|0)&p)+88>>2]=B+-1}while(0);b[(v&o)>>1]=e[(v&o)>>1]|4}while(0);h=h+-1|0;if((h|0)<=0)break;else w=w+48|0}x=c[(ya&p)>>2]|0;if((x|0)<=0){xa=475;break}z=c[(za&p)>>2]|0;while(1){do if(!(b[(z&o)+20>>1]&6)){if((b[(z&o)+18>>1]|0)!=1026)break;if((c[(z&p)+8>>2]|0)!=(q|0))break;if(c[(u&p)>>2]|0)break;B=c[(z&p)>>2]|0;h=Fu(Ia,q,c[(z&p)+12>>2]|0,t,s,3,0)|0;if(!h)break;if(b[(h&o)+20>>1]&4)break;A=mh(ha,48,0)|0;if(!A)break;K=A+0|0;C=(c[(h&p)>>2]|0)+0|0;h=K+48|0;do{c[(K&p)>>2]=c[(C&p)>>2];K=K+4|0;C=C+4|0}while((K|0)<(h|0));c[(A&p)+12>>2]=c[(B&p)+12>>2];gt(ja,A,ga,16);mg(ha,A)}while(0);x=x+-1|0;if((x|0)<=0)break;else z=z+48|0}}else xa=475;while(0);if((xa|0)==475)xa=0;u=c[(u&p)>>2]|0;do if(u){c[(k+(va*80|0)&p)+764>>2]=c[(ea&p)+32>>2];wh(ea,25,1,u,0)|0;at(ja);u=c[(ya&p)>>2]|0;if((u|0)<=0)break;x=0;w=c[(za&p)>>2]|0;while(1){t=w+20|0;do if(!(b[(t&o)>>1]&6)){ea=w+40|0;da=ia;if(!((c[(da&p)>>2]&c[(ea&p)>>2]|0)==0?(c[(da&p)+4>>2]&c[(ea&p)+4>>2]|0)==0:0))break;gt(ja,c[(w&p)>>2]|0,ga,16);b[(t&o)>>1]=e[(t&o)>>1]|4;u=c[(ya&p)>>2]|0}while(0);x=x+1|0;if((x|0)>=(u|0))break;else w=w+48|0}}while(0);s=ia;t=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0}c[(Da&p)>>2]=c[(wa+(va*80|0)&p)+24>>2];va=va+1|0;if((va|0)>=(r|0))break a}}}while(0);if(Ja)k=0;else{c[(Fa&p)>>2]=c[(Ga&p)>>2];Xu(La,k);k=0}}else{c[(Na&p)>>2]=64;th(f,33504,Na);k=0}while(0);i=Pa;return k|0}function Ws(a){a=a|0;var b=0,c=0,d=0,e=0;e=a<<16>>16;do if(a<<16>>16>=10){a=(e|0)%10|0;b=((a|0)<0)<<31>>31;if(a>>>0>4){c=jw(a|0,b|0,-2,-1)|0;d=G}else{c=((a|0)!=0)<<31>>31;c=jw(c|0,((c|0)<0)<<31>>31|0,a|0,b|0)|0;d=G}b=((e|0)/10|0)<<16;a=b>>16;if((b|0)<=131072){b=jw(c|0,d|0,8,0)|0;a=mw(b|0,G|0,3-a|0)|0;b=G;break}if((b|0)>3932160){b=2147483647;a=-1}else{b=jw(c|0,d|0,8,0)|0;a=iw(b|0,G|0,a+-3|0)|0;b=G}}else{b=0;a=1}while(0);G=b;return a|0}function Xs(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=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;F=c[(e&p)>>2]|0;G=c[(F&p)+8>>2]|0;I=c[(e&p)+4>>2]|0;J=c[(F&p)>>2]|0;at(F);K=e+41|0;g=a[(K&n)>>0]|0;if(!(g<<24>>24))f=G+24|0;else{f=G+24|0;s=G+32|0;u=G+4|0;r=g&255;do{r=r+-1|0;i=c[(e+(r*80|0)&p)+800>>2]|0;D=c[(e+(r*80|0)&p)+760>>2]|0;g=c[(f&p)>>2]|0;h=~D;if((D|0)<0?(v=c[(g&p)+112>>2]|0,(v|0)!=0):0)c[(v+(h<<2)&p)>>2]=c[(s&p)>>2];c[(g&p)+88>>2]=(c[(s&p)>>2]|0)+-1;E=e+(r*80|0)+781|0;h=a[(E&n)>>0]|0;if(h<<24>>24!=-100?(wh(G,h&255,c[(e+(r*80|0)&p)+784>>2]|0,c[(e+(r*80|0)&p)+788>>2]|0,d[(e+(r*80|0)&n)+782>>0]|0)|0,x=c[(u&p)>>2]|0,(x|0)!=0):0)a[(x+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=a[(e+(r*80|0)&n)+783>>0]|0;w=i+36|0;if((c[(w&p)>>2]&2048|0)!=0?(y=e+(r*80|0)+792|0,z=c[(y&p)>>2]|0,(z|0)>0):0){D=c[(e+(r*80|0)&p)+752>>2]|0;k=c[(f&p)>>2]|0;h=~D;if((D|0)<0?(A=c[(k&p)+112>>2]|0,(A|0)!=0):0){c[(A+(h<<2)&p)>>2]=c[(s&p)>>2];l=c[(y&p)>>2]|0;j=c[(s&p)>>2]|0;c[(k&p)+88>>2]=j+-1;g=e+(r*80|0)+796|0;if((l|0)>0)L=16}else{j=c[(s&p)>>2]|0;c[(k&p)+88>>2]=j+-1;g=e+(r*80|0)+796|0;l=z;L=16}if((L|0)==16){L=0;h=k;q=l;m=(c[(g&p)>>2]|0)+((l+-1|0)*12|0)|0;while(1){l=m+4|0;k=c[(l&p)>>2]|0;i=k+1|0;if(j>>>0>i>>>0)c[((c[(u&p)>>2]|0)+(i*20|0)&p)+8>>2]=j;c[(h&p)+88>>2]=j+-1;wh(G,d[(m&n)+8>>0]|0,c[(m&p)>>2]|0,k,0)|0;l=(c[(l&p)>>2]|0)+-1|0;j=c[(s&p)>>2]|0;if(j>>>0>l>>>0)c[((c[(u&p)>>2]|0)+(l*20|0)&p)+8>>2]=j;h=c[(f&p)>>2]|0;c[(h&p)+88>>2]=j+-1;q=q+-1|0;if((q|0)<=0)break;else m=m+-12|0}}mg(J,c[(g&p)>>2]|0)}D=c[(e+(r*80|0)&p)+748>>2]|0;i=c[(f&p)>>2]|0;h=~D;if((D|0)<0?(t=c[(i&p)+112>>2]|0,(t|0)!=0):0)c[(t+(h<<2)&p)>>2]=c[(s&p)>>2];h=c[(s&p)>>2]|0;c[(i&p)+88>>2]=h+-1;i=e+(r*80|0)+756|0;g=c[(i&p)>>2]|0;if(g){wh(G,16,0,g,0)|0;i=c[(i&p)>>2]|0;h=c[(s&p)>>2]|0;if(h>>>0>i>>>0)c[((c[(u&p)>>2]|0)+(i*20|0)&p)+8>>2]=h;j=h+-1|0;g=(c[(f&p)>>2]|0)+88|0;c[(g&p)>>2]=j;i=i+-2|0;if(h>>>0>i>>>0)c[((c[(u&p)>>2]|0)+(i*20|0)&p)+8>>2]=h;c[(g&p)>>2]=j}i=c[(e+(r*80|0)&p)+776>>2]|0;if(i){if(!(a[((c[(G&p)>>2]|0)&n)+65>>0]|0))h=(c[(u&p)>>2]|0)+((((i|0)<1?h:i)+-1|0)*20|0)|0;else h=29120;wh(G,(c[(h&p)+4>>2]|0)==0?141:140,c[(e+(r*80|0)&p)+772>>2]|0,i,0)|0}g=c[(e+(r*80|0)&p)+736>>2]|0;if(g){j=wh(G,137,g,0,0)|0;g=c[(w&p)>>2]|0;if(!(g&64)){wh(G,104,c[(I+(r*72|0)&p)+48>>2]|0,0,0)|0;g=c[(w&p)>>2]|0}if(g&512)wh(G,104,c[(e+(r*80|0)&p)+744>>2]|0,0,0)|0;g=c[(e+(r*80|0)&p)+764>>2]|0;if((a[(E&n)>>0]|0)==18)wh(G,17,c[(e+(r*80|0)&p)+784>>2]|0,g,0)|0;else wh(G,16,0,g,0)|0;g=c[(s&p)>>2]|0;if(g>>>0>j>>>0)c[((c[(u&p)>>2]|0)+(j*20|0)&p)+8>>2]=g;c[((c[(f&p)>>2]|0)&p)+88>>2]=g+-1}}while((r|0)>0)}D=c[(e&p)+52>>2]|0;g=c[(f&p)>>2]|0;f=~D;if((D|0)<0?(B=c[(g&p)+112>>2]|0,(B|0)!=0):0)c[(B+(f<<2)&p)>>2]=c[(G&p)+32>>2];E=G+32|0;c[(g&p)+88>>2]=(c[(E&p)>>2]|0)+-1;if(a[(K&n)>>0]|0){x=e+34|0;y=e+38|0;z=e+64|0;A=J+65|0;B=G+4|0;C=0;D=e+736|0;while(1){i=d[(D&n)+44>>0]|0;j=c[(I+(i*72|0)&p)+24>>2]|0;h=c[(D&p)+64>>2]|0;if((a[(I+(i*72|0)&n)+45>>0]&4)!=0?(a[(A&n)>>0]|0)==0:0){k=c[(E&p)>>2]|0;h=c[(D&p)+32>>2]|0;if(!(a[((c[(G&p)>>2]|0)&n)+65>>0]|0))g=(c[(B&p)>>2]|0)+(((h|0)<0?k+-1|0:h)*20|0)|0;else g=29120;if((h|0)<(k|0)){l=c[(D&p)+4>>2]|0;j=I+(i*72|0)+40|0;i=g;while(1){g=i+4|0;do if((c[(g&p)>>2]|0)==(l|0)){f=a[(i&n)>>0]|0;if(f<<24>>24==103){a[(i&n)>>0]=28;c[(g&p)>>2]=0;c[(i&p)+12>>2]=0;break}else if(f<<24>>24==47){a[(i&n)>>0]=33;v=i+8|0;c[(g&p)>>2]=(c[(j&p)>>2]|0)+(c[(v&p)>>2]|0);w=i+12|0;c[(v&p)>>2]=c[(w&p)>>2];c[(w&p)>>2]=0;break}else break}while(0);h=h+1|0;if((h|0)==(k|0))break;else i=i+20|0}}}else L=64;do if((L|0)==64){L=0;w=j+44|0;if(((a[(w&n)>>0]&2)==0?(c[(j&p)+12>>2]|0)==0:0)?(b[(x&o)>>1]&16)==0:0){g=c[(h&p)+36>>2]|0;if((a[(y&n)>>0]|0)==0&(g&64|0)==0)wh(G,61,c[(I+(i*72|0)&p)+48>>2]|0,0,0)|0;if((g&17152|0)==512?(H=c[(D&p)+8>>2]|0,(H|0)!=(c[(z&p)>>2]|0)):0)wh(G,61,H,0,0)|0}g=c[(h&p)+36>>2]|0;if(!(g&576)){if(!(g&8192))break;g=D+56|0}else g=h+28|0;h=c[(g&p)>>2]|0;if((h|0)!=0?(a[(A&n)>>0]|0)==0:0){u=c[(E&p)>>2]|0;l=c[(D&p)+32>>2]|0;if(!(a[((c[(G&p)>>2]|0)&n)+65>>0]|0))k=(c[(B&p)>>2]|0)+(((l|0)<0?u+-1|0:l)*20|0)|0;else k=29120;if((l|0)<(u|0)){v=h+48|0;s=h+4|0;t=D+8|0;r=j+8|0;f=c[(D&p)+4>>2]|0;g=k;while(1){h=g+4|0;a:do if((c[(h&p)>>2]|0)==(f|0)){k=a[(g&n)>>0]|0;if(k<<24>>24==103){c[(h&p)>>2]=c[(t&p)>>2];a[(g&n)>>0]=112;break}else if(k<<24>>24!=47)break;i=g+8|0;k=c[(i&p)>>2]|0;if(a[(w&n)>>0]&32){j=r;while(1){j=c[(j&p)>>2]|0;if((a[(j&n)+51>>0]&3)==2)break;else j=j+20|0}k=b[((c[(j&p)+4>>2]|0)+(k<<1)&o)>>1]|0}q=k&65535;k=b[(v&o)>>1]|0;if(k<<16>>16){j=c[(s&p)>>2]|0;m=k&65535;k=0;while(1){if((b[(j+(k<<1)&o)>>1]|0)==q<<16>>16)break;k=k+1|0;if((k|0)>=(m|0))break a}if((k&65535)<<16>>16>-1){c[(i&p)>>2]=k<<16>>16;c[(h&p)>>2]=c[(t&p)>>2]}}}while(0);l=l+1|0;if((l|0)==(u|0))break;else g=g+20|0}}}}while(0);C=C+1|0;if((C|0)>=(d[(K&n)>>0]|0))break;else D=D+80|0}}c[(F&p)+424>>2]=c[(e&p)+56>>2];Xu(J,e);return}function Ys(a,b){a=a|0;b=b|0;var d=0,e=0;if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){Yu(a,c[(e&p)>>2]|0);d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0))break;else e=e+20|0}}return}function Zs(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();u=x;h=c[(e&p)+24>>2]|0;v=c[(h&p)>>2]|0;m=c[(h&p)+4>>2]|0;w=c[(h&p)+12>>2]|0;g=d[(f&n)>>0]|0;a:do if((g|0)==154|(g|0)==156)if((m|0)!=0?(l=c[(m&p)>>2]|0,(l|0)>0):0){s=f+28|0;r=c[(s&p)>>2]|0;g=0;h=m+8|0;while(1){if((r|0)==(c[(h&p)+40>>2]|0))break;g=g+1|0;if((g|0)>=(l|0)){e=1;break a}else h=h+72|0}q=w+28|0;k=w+32|0;h=c[(k&p)>>2]|0;b:do if((h|0)>0){m=f+32|0;e=0;l=c[(q&p)>>2]|0;while(1){if((c[(l&p)+4>>2]|0)==(r|0)?(c[(l&p)+8>>2]|0)==(b[(m&o)>>1]|0):0)break b;e=e+1|0;if((e|0)<(h|0))l=l+24|0;else break}}else e=0;while(0);c:do if((e|0)>=(h|0)){h=Ht(c[(v&p)>>2]|0,c[(q&p)>>2]|0,24,k,u)|0;c[(q&p)>>2]=h;e=c[(u&p)>>2]|0;if((e|0)>-1){c[(h+(e*24|0)&p)>>2]=c[(f&p)+44>>2];k=c[(s&p)>>2]|0;c[(h+(e*24|0)&p)+4>>2]=k;l=b[(f&o)+32>>1]|0;c[(h+(e*24|0)&p)+8>>2]=l<<16>>16;s=v+72|0;m=(c[(s&p)>>2]|0)+1|0;c[(s&p)>>2]=m;c[(h+(e*24|0)&p)+16>>2]=m;m=h+(e*24|0)+12|0;c[(m&p)>>2]=-1;c[(h+(e*24|0)&p)+20>>2]=f;h=c[(w&p)+24>>2]|0;d:do if((h|0)!=0?(t=c[(h&p)>>2]|0,(t|0)>0):0){g=0;h=c[(h&p)+4>>2]|0;while(1){s=c[(h&p)>>2]|0;if(((a[(s&n)>>0]|0)==-102?(c[(s&p)+28>>2]|0)==(k|0):0)?(b[(s&o)+32>>1]|0)==l<<16>>16:0)break;g=g+1|0;if((g|0)>=(t|0))break d;else h=h+20|0}c[(m&p)>>2]=g;if((g|0)>=0)break c}while(0);s=w+12|0;t=c[(s&p)>>2]|0;c[(s&p)>>2]=t+1;c[(m&p)>>2]=t}}while(0);c[(f&p)+40>>2]=w;a[(f&n)>>0]=-100;b[(f&o)+34>>1]=e;e=1}else e=1;else if(((g|0)==155?(b[(h&o)+28>>1]&8)==0:0)?(c[(e&p)+16>>2]|0)==(d[(f&n)+38>>0]|0):0){l=w+40|0;m=w+44|0;g=c[(m&p)>>2]|0;e:do if((g|0)>0){e=0;h=c[(l&p)>>2]|0;while(1){if(!(Cu(c[(h&p)>>2]|0,f,-1)|0))break e;e=e+1|0;if((e|0)<(g|0))h=h+16|0;else break}}else e=0;while(0);do if((e|0)>=(g|0)){k=c[(v&p)>>2]|0;q=a[(k&n)+62>>0]|0;k=Ht(k,c[(l&p)>>2]|0,16,m,u)|0;c[(l&p)>>2]=k;e=c[(u&p)>>2]|0;if((e|0)>-1){c[(k+(e<<4)&p)>>2]=f;l=v+72|0;m=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=m;c[(k+(e<<4)&p)+8>>2]=m;m=c[(v&p)>>2]|0;l=c[(f&p)+8>>2]|0;if(!l)g=0;else{h=l;while(1)if(!(a[(h&n)>>0]|0))break;else h=h+1|0;g=h-l&1073741823}h=c[(f&p)+20>>2]|0;if(!h)h=0;else h=c[(h&p)>>2]|0;c[(k+(e<<4)&p)+4>>2]=Sh(m,l,g,h,q,0)|0;if(!(c[(f&p)+4>>2]&16)){c[(k+(e<<4)&p)+12>>2]=-1;break}else{s=v+68|0;t=c[(s&p)>>2]|0;c[(s&p)>>2]=t+1;c[(k+(e<<4)&p)+12>>2]=t;break}}}while(0);b[(f&o)+34>>1]=e;c[(f&p)+40>>2]=w;e=1}else e=0;while(0);i=x;return e|0}function _s(a,b){a=a|0;b=b|0;return 0}function $s(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((a[(b&n)+450>>0]|0)==2){g=c[(b&p)+8>>2]|0;h=c[(b&p)>>2]|0;c[(e&p)>>2]=d;e=uh(h,35e3,e)|0;xh(g,wh(g,157,c[(b&p)+464>>2]|0,0,0)|0,e,-1)}i=f;return}function at(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=b+19|0;i=0;j=b+116|0;while(1){e=j+12|0;f=c[(e&p)>>2]|0;if(f){g=j+6|0;if(a[(g&n)>>0]|0){h=a[(d&n)>>0]|0;if((h&255)<8){a[(d&n)>>0]=h+1<<24>>24;c[(b+((h&255)<<2)&p)+24>>2]=f}a[(g&n)>>0]=0}c[(e&p)>>2]=0}i=i+1|0;if((i|0)==10)break;else j=j+20|0}return}function bt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=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;B=i;i=i+32|0;if((i|0)>=(j|0))fa();z=B;g=f&255;s=34-(g&1)|0;v=c[(d&p)>>2]|0;if(!(a[(b&n)+23>>0]|0))f=g&253;if((v|0)>0){h=(f&2)==0;k=b+8|0;l=(s|0)==33;m=z+20|0;o=z+4|0;q=z+24|0;r=0;d=c[(d&p)+4>>2]|0;while(1){g=c[(d&p)>>2]|0;if(!h?(c[(z&p)>>2]=0,c[(z&p)+4>>2]=0,c[(z&p)+8>>2]=0,c[(z&p)+12>>2]=0,c[(z&p)+16>>2]=0,c[(z&p)+20>>2]=0,a[(m&n)>>0]=1,c[(z&p)>>2]=78,c[(o&p)>>2]=79,c[(q&p)>>2]=0,rs(z,g)|0,(a[(m&n)>>0]|0)!=0):0)Gt(b,g,r+e|0,0);else A=8;do if((A|0)==8?(A=0,t=r+e|0,u=is(b,g,t)|0,(u|0)!=(t|0)):0){f=c[(k&p)>>2]|0;if(l){if(!(a[((c[(f&p)>>2]|0)&n)+65>>0]|0))g=(c[(f&p)+4>>2]|0)+(((c[(f&p)+32>>2]|0)+-1|0)*20|0)|0;else g=29120;if(((a[(g&n)>>0]|0)==33?(w=g+12|0,x=c[(w&p)>>2]|0,((c[(g&p)+4>>2]|0)+1+x|0)==(u|0)):0)?(y=x+1|0,(y+(c[(g&p)+8>>2]|0)|0)==(t|0)):0){c[(w&p)>>2]=y;break}}wh(f,s,u,t,0)|0}while(0);r=r+1|0;if((r|0)==(v|0))break;else d=d+20|0}}i=B;return}function ct(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,l=0,m=0,q=0;q=c[(d&p)+8>>2]|0;j=d+116|0;m=0;k=j;while(1){l=c[(k&p)+12>>2]|0;if(((l|0)>0?(c[(k&p)>>2]|0)==(g|0):0)?(b[(k&o)+4>>1]|0)==(f|0):0){h=l;m=5;break}m=m+1|0;if((m|0)>=10){m=10;break}else k=k+20|0}do if((m|0)==5){q=d+104|0;i=c[(q&p)>>2]|0;c[(q&p)>>2]=i+1;c[(k&p)+16>>2]=i;k=0;while(1){if((c[(j&p)+12>>2]|0)==(h|0))a[(j&n)+6>>0]=0;k=k+1|0;if((k|0)==10)break;else j=j+20|0}}else if((m|0)==10){nt(q,e,g,f,h);if(!(i<<24>>24)){Su(d,g,f,h);break}j=c[(q&p)+4>>2]|0;if(j)a[(j+(((c[(q&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=i}while(0);return h|0}function dt(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;e=d+-1+e|0;g=b+19|0;k=0;l=b+116|0;while(1){h=l+12|0;i=c[(h&p)>>2]|0;if(!((i|0)<(d|0)|(i|0)>(e|0))){j=l+6|0;if(a[(j&n)>>0]|0){f=a[(g&n)>>0]|0;if((f&255)<8){a[(g&n)>>0]=f+1<<24>>24;c[(b+((f&255)<<2)&p)+24>>2]=i}a[(j&n)>>0]=0}c[(h&p)>>2]=0}k=k+1|0;if((k|0)==10)break;else l=l+20|0}return}function et(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=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;D=c[(d&p)+8>>2]|0;a[(e&n)>>0]=1;v=e+44|0;if((c[(v&p)>>2]|0)>0){w=D+4|0;y=d+56|0;z=d+60|0;r=D+24|0;s=D+32|0;t=e+36|0;u=d+72|0;A=0;B=c[(e&p)+40>>2]|0;f=0;while(1){k=c[((c[(B&p)>>2]|0)&p)+20>>2]|0;if(!k){g=0;i=0}else{g=c[(k&p)>>2]|0;i=c[(z&p)>>2]|0;h=c[(y&p)>>2]|0;if((h|0)<(g|0)){i=c[(u&p)>>2]|0;c[(u&p)>>2]=i+g;i=i+1|0}else{c[(z&p)>>2]=i+g;c[(y&p)>>2]=h-g}bt(d,k,i,1)}h=B+12|0;if((c[(h&p)>>2]|0)>-1){q=xs(D)|0;zu(d,c[(h&p)>>2]|0,q,1,i)}else q=0;m=B+4|0;h=c[(m&p)>>2]|0;if(b[(h&o)+2>>1]&32){if((g|0)>0){l=0;k=c[(k&p)+4>>2]|0;while(1){h=cu(d,c[(k&p)>>2]|0)|0;l=l+1|0;j=(h|0)!=0;if(!((l|0)<(g|0)&(j^1)))break;else k=k+20|0}if(!j)C=15}else C=15;if((C|0)==15){C=0;h=c[((c[(d&p)>>2]|0)&p)+8>>2]|0}if(!f)if(!(c[(t&p)>>2]|0))f=0;else{f=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=f}xh(D,wh(D,36,f,0,0)|0,h,-4);h=c[(m&p)>>2]|0}xh(D,wh(D,10,0,i,c[(B&p)+8>>2]|0)|0,h,-5);h=c[(w&p)>>2]|0;if(h)a[(h+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=g;dt(d,i,g);dt(d,i,g);if((c[(y&p)>>2]|0)<(g|0)){c[(y&p)>>2]=g;c[(z&p)>>2]=i}if(q){i=c[(r&p)>>2]|0;h=~q;if((q|0)<0?(x=c[(i&p)+112>>2]|0,(x|0)!=0):0)c[(x+(h<<2)&p)>>2]=c[(s&p)>>2];c[(i&p)+88>>2]=(c[(s&p)>>2]|0)+-1;at(d)}A=A+1|0;if((A|0)>=(c[(v&p)>>2]|0))break;else B=B+16|0}if(f)i=wh(D,45,f,0,0)|0;else i=0}else i=0;at(d);f=e+36|0;if((c[(f&p)>>2]|0)>0){g=0;h=c[(e&p)+28>>2]|0;while(1){Rq(d,c[(h&p)+20>>2]|0,c[(h&p)+16>>2]|0);g=g+1|0;if((g|0)>=(c[(f&p)>>2]|0))break;else h=h+24|0}}a[(e&n)>>0]=0;at(d);if(i){f=c[(D&p)+32>>2]|0;if(f>>>0>i>>>0)c[((c[(D&p)+4>>2]|0)+(i*20|0)&p)+8>>2]=f;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=f+-1}return}function ft(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=c[(a&p)+8>>2]|0;e=b+44|0;if((c[(e&p)>>2]|0)>0){f=0;b=c[(b&p)+40>>2]|0;while(1){a=c[((c[(b&p)>>2]|0)&p)+20>>2]|0;if(!a)a=0;else a=c[(a&p)>>2]|0;g=c[(b&p)+4>>2]|0;xh(d,wh(d,142,c[(b&p)+8>>2]|0,a,0)|0,g,-5);f=f+1|0;if((f|0)>=(c[(e&p)>>2]|0))break;else b=b+16|0}}return}function gt(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();o=r+4|0;q=r;m=c[(b&p)+8>>2]|0;c[(o&p)>>2]=0;c[(q&p)>>2]=0;if(!((m|0)==0|(e|0)==0)){s=d[(e&n)>>0]|0;h=s^1;a:do switch(s|0){case 75:{if(g){fu(b,e,f,f);break a}k=xs(m)|0;fu(b,e,f,k);h=c[(m&p)+24>>2]|0;f=~k;if((k|0)<0?(l=c[(h&p)+112>>2]|0,(l|0)!=0):0)c[(l+(f<<2)&p)>>2]=c[(m&p)+32>>2];c[(h&p)+88>>2]=(c[(m&p)+32>>2]|0)+-1;break}case 71:{l=xs(m)|0;Zu(b,c[(e&p)+12>>2]|0,l,g^16);h=b+100|0;c[(h&p)>>2]=(c[(h&p)>>2]|0)+1;gt(b,c[(e&p)+16>>2]|0,f,g);f=c[(m&p)+24>>2]|0;h=~l;if((l|0)<0?(k=c[(f&p)+112>>2]|0,(k|0)!=0):0)c[(k+(h<<2)&p)>>2]=c[(m&p)+32>>2];c[(f&p)+88>>2]=(c[(m&p)+32>>2]|0)+-1;bu(b);break}case 72:{gt(b,c[(e&p)+12>>2]|0,f,g);m=b+100|0;c[(m&p)>>2]=(c[(m&p)>>2]|0)+1;gt(b,c[(e&p)+16>>2]|0,f,g);bu(b);break}case 79:case 78:case 83:case 80:case 81:case 82:{s=e+12|0;l=$t(b,c[(s&p)>>2]|0,o)|0;k=e+16|0;m=$t(b,c[(k&p)>>2]|0,q)|0;au(b,c[(s&p)>>2]|0,c[(k&p)>>2]|0,h,l,m,f,g);break}case 148:case 73:{g=e+12|0;l=$t(b,c[(g&p)>>2]|0,o)|0;k=e+16|0;m=$t(b,c[(k&p)>>2]|0,q)|0;au(b,c[(g&p)>>2]|0,c[(k&p)>>2]|0,(a[(e&n)>>0]|0)==73?78:79,l,m,f,128);break}case 19:{Zu(b,c[(e&p)+12>>2]|0,f,g);break}case 77:case 76:{wh(m,h,$t(b,c[(e&p)+12>>2]|0,o)|0,f,0)|0;break}case 74:{_u(b,e,f,0,g);break}default:{if(mu(e)|0){wh(m,16,0,f,0)|0;break a}if(!($u(e)|0))wh(m,46,$t(b,e,o)|0,f,(g|0)!=0&1)|0}}while(0);_r(b,c[(o&p)>>2]|0);_r(b,c[(q&p)>>2]|0)}i=r;return}function ht(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;f=c[(a&p)+8>>2]|0;g=b+44|0;if((c[(g&p)>>2]|0)!=(0-(c[(b&p)+32>>2]|0)|0)?(wh(f,28,0,c[(b&p)+16>>2]|0,c[(b&p)+20>>2]|0)|0,(c[(g&p)>>2]|0)>0):0){h=0;e=c[(b&p)+40>>2]|0;while(1){b=e+12|0;do if((c[(b&p)>>2]|0)>-1){d=c[((c[(e&p)>>2]|0)&p)+20>>2]|0;if((d|0)!=0?(c[(d&p)>>2]|0)==1:0){d=Us(a,d,0,0)|0;xh(f,wh(f,57,c[(b&p)>>2]|0,0,0)|0,d,-6);break}th(a,34944,k);c[(b&p)>>2]=-1}while(0);h=h+1|0;if((h|0)>=(c[(g&p)>>2]|0))break;else e=e+16|0}}i=l;return}function it(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if((b|0)>0){e=wh(a,138,b,0,-1)|0;wh(a,16,0,d,0)|0;b=c[(a&p)+32>>2]|0;if(b>>>0>e>>>0)c[((c[(a&p)+4>>2]|0)+(e*20|0)&p)+8>>2]=b;c[((c[(a&p)+24>>2]|0)&p)+88>>2]=b+-1}return}function jt(a,b,e,f,g){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;var h=0;if((c[((c[(a&p)>>2]|0)&p)+24>>2]&8388608|0)!=0?(h=As(a,b)|0,(h|0)!=0):0){a=0;b=h;do{if((d[(b&n)+8>>0]|0|0)==(e|0)?(av(c[(b&p)+16>>2]|0,f)|0)!=0:0)a=d[(b&n)+9>>0]|0|a;b=c[(b&p)+32>>2]|0}while((b|0)!=0)}else{a=0;h=0}if(g)c[(g&p)>>2]=a;return ((a|0)!=0?h:0)|0}function kt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;h=a[(d&n)+44>>0]|0;if(h&16){g=c[(b&p)>>2]|0;f=d+60|0;while(1){f=c[(f&p)>>2]|0;if((c[(f&p)>>2]|0)==(g|0))break;else f=f+24|0}if(!(c[((c[(c[(f&p)+4>>2]&p)>>2]|0)&p)+52>>2]|0))g=8;else g=5}else g=5;do if((g|0)==5){if(((h&1)!=0?(c[((c[(b&p)>>2]|0)&p)+24>>2]&2048|0)==0:0)?(a[(b&n)+18>>0]|0)==0:0){g=8;break}if((e|0)==0?(c[(d&p)+12>>2]|0)!=0:0){c[(k&p)>>2]=c[(d&p)>>2];th(b,34456,k);f=1}else f=0}while(0);if((g|0)==8){c[(k&p)>>2]=c[(d&p)>>2];th(b,34424,k);f=1}i=l;return f|0}function lt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();q=r;o=c[(b&p)>>2]|0;h=c[(d&p)+68>>2]|0;a:do if(h){g=c[(o&p)+20>>2]|0;if((g|0)>0){l=c[(o&p)+16>>2]|0;m=0;while(1){k=m+1|0;if((c[(l+(m<<4)&p)+12>>2]|0)==(h|0)){k=m;break a}if((k|0)<(g|0))m=k;else break}}else k=0}else k=-1e6;while(0);g=Mr(o,e,0,0)|0;h=pr(o,0,0,0)|0;if(h){c[(h&p)+16>>2]=kh(o,c[(d&p)>>2]|0)|0;c[(h&p)+12>>2]=kh(o,c[((c[(o&p)+16>>2]|0)+(k<<4)&p)>>2]|0)|0}e=kr(b,0,h,g,0,0,0,0,0,0)|0;a[(q&n)>>0]=12;c[(q&p)+4>>2]=f;a[(q&n)+1>>0]=0;c[(q&p)+8>>2]=0;c[(q&p)+12>>2]=0;ir(b,e,q)|0;Mk(o,e,1);i=r;return}function mt(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r+4|0;h=r;a:do if(c[((c[(a&p)>>2]|0)&p)+24>>2]&524288){if(!e){f=bn((c[(d&p)+68>>2]|0)+56|0,c[(d&p)>>2]|0,h)|0;if((f|0)!=0?(c[(f&p)+8>>2]|0)!=0:0)g=1;else g=(c[(d&p)+16>>2]|0)!=0;g=g&1;break}a=c[(d&p)+16>>2]|0;if(a){m=d+36|0;n=(f|0)!=0;do{h=c[(a&p)+20>>2]|0;if((h|0)>0){l=0;do{k=c[(a+(l<<3)&p)+36>>2]|0;if((c[(e+(k<<2)&p)>>2]|0)>-1){g=1;break a}l=l+1|0;if((k|0)==(b[(m&o)>>1]|0)&n){g=1;break a}}while((l|0)<(h|0))}a=c[(a&p)+4>>2]|0}while((a|0)!=0)}h=bn((c[(d&p)+68>>2]|0)+56|0,c[(d&p)>>2]|0,q)|0;if((h|0)!=0?(g=c[(h&p)+8>>2]|0,(g|0)!=0):0)while(1){if(bv(d,g,e,f)|0){g=1;break a}g=c[(g&p)+12>>2]|0;if(!g){g=0;break}}else g=0}else g=0;while(0);i=r;return g|0}function nt(e,f,g,h,i){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0;if((h|0)>=0?(b[(f&o)+36>>1]|0)!=(h|0):0){j=d[(f&n)+44>>0]|0;q=(j&16|0)!=0?150:47;if(!(j&32))j=h;else{j=c[(f&p)+8>>2]|0;a:do if(!j)j=0;else while(1){if((a[(j&n)+51>>0]&3)==2)break a;j=c[(j&p)+20>>2]|0;if(!j){j=0;break}}while(0);m=h&65535;k=b[(j&o)+48>>1]|0;b:do if(!(k<<16>>16))j=-1;else{l=c[(j&p)+4>>2]|0;k=k&65535;j=0;while(1){if((b[(l+(j<<1)&o)>>1]|0)==m<<16>>16)break b;j=j+1|0;if((j|0)>=(k|0)){j=-1;break}}}while(0);j=j<<16>>16}wh(e,q,g,j,i)|0}else wh(e,103,g,i,0)|0;if((h|0)>-1)Nt(e,f,h,i);return}function ot(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0;j=f+16|0;g=c[(j&p)>>2]|0;do if(!g){h=c[(f&p)+12>>2]|0;g=c[(d&p)>>2]|0;i=f+48|0;d=qg((e[(i&o)>>1]|0)+1|0,0)|0;c[(j&p)>>2]=d;if(!d){a[(g&n)+65>>0]=1;g=0;break}if(!(b[(i&o)>>1]|0))g=0;else{f=f+4|0;h=h+4|0;g=0;do{d=b[((c[(f&p)>>2]|0)+(g<<1)&o)>>1]|0;if(d<<16>>16<0)d=68;else d=a[((c[(h&p)>>2]|0)+((d<<16>>16)*24|0)&n)+21>>0]|0;a[((c[(j&p)>>2]|0)+g&n)>>0]=d;g=g+1|0}while((g|0)<(e[(i&o)>>1]|0));d=c[(j&p)>>2]|0}a[(d+g&n)>>0]=0;g=c[(j&p)>>2]|0}while(0);return g|0}function pt(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,l=0,m=0,o=0,q=0,r=0,s=0,t=0;t=d+44|0;if(!(a[(t&n)>>0]&16)){k=c[(b&p)>>2]|0;m=c[(d&p)+68>>2]|0;a:do if(m){o=c[(k&p)+20>>2]|0;if((o|0)>0){k=c[(k&p)+16>>2]|0;l=0;while(1){j=l+1|0;if((c[(k+(l<<4)&p)+12>>2]|0)==(m|0))break a;if((j|0)<(o|0))l=j;else{l=j;break}}}else l=0}else l=-1e6;while(0);s=Oq(b)|0;if((f|0)<0)f=c[(b&p)+68>>2]|0;k=f+1|0;r=(h|0)!=0;if(r)c[(h&p)>>2]=f;do if(!(a[(t&n)>>0]&32)){if((g|0)!=0?(a[(g&n)>>0]|0)==0:0){q=15;break}Qq(b,f,l,d,e)}else q=15;while(0);if((q|0)==15)gs(b,l,c[(d&p)+32>>2]|0,(e|0)==55&1,c[(d&p)>>2]|0);if(i)c[(i&p)>>2]=k;f=c[(d&p)+8>>2]|0;if(!f)j=0;else{m=(g|0)==0;d=b+8|0;o=k;j=0;while(1){k=o+1|0;if((a[(f&n)+51>>0]&3)==2?(a[(t&n)>>0]&32)!=0&r:0)c[(h&p)>>2]=o;j=j+1|0;if(!(!m?(a[(g+j&n)>>0]|0)==0:0)){wh(s,e,o,c[(f&p)+40>>2]|0,l)|0;q=c[(d&p)>>2]|0;xh(q,-1,hs(b,f)|0,-6)}f=c[(f&p)+20>>2]|0;if(!f)break;else o=k}}f=b+68|0;if((k|0)>(c[(f&p)>>2]|0))c[(f&p)>>2]=k}else j=0;return j|0}function qt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=c[(b&p)+408>>2]|0;h=(h|0)==0?b:h;g=h+452|0;b=c[(g&p)>>2]|0;e=c[(h&p)+520>>2]|0;a:do if((b|0)>0){f=0;while(1){if((c[(e+(f<<2)&p)>>2]|0)==(d|0))break a;f=f+1|0;if((f|0)>=(b|0)){i=4;break}}}else i=4;while(0);do if((i|0)==4){b=Xc(e,(b<<2)+4|0)|0;if(!b){a[((c[(h&p)>>2]|0)&n)+65>>0]=1;break}else{c[(h&p)+520>>2]=b;e=c[(g&p)>>2]|0;c[(g&p)>>2]=e+1;c[(b+(e<<2)&p)>>2]=d;break}}while(0);return}function rt(d,e,f,g,h,i,j,k,l,m){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|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;z=c[(d&p)+8>>2]|0;A=xs(z)|0;x=(a[(e&n)+44>>0]&32)>>>4^70;if(!(m<<24>>24))xh(z,wh(z,x,g,A,i)|0,j<<16>>16,-14);if((mt(d,e,0,0)|0)!=0|(f|0)!=0){t=l&255;u=vt(d,f,0,0,3,e,t)|0;u=ut(d,e)|0|u;r=d+72|0;q=c[(r&p)>>2]|0;m=q+1|0;v=e+38|0;c[(r&p)>>2]=m+(b[(v&o)>>1]|0);wh(z,33,i,m,0)|0;r=b[(v&o)>>1]|0;if(r<<16>>16>0){w=(u|0)==-1;s=q+2|0;q=0;do{if(!w){if((q|0)<32?(1<<q&u|0)!=0:0)y=9}else y=9;if((y|0)==9){y=0;nt(z,e,g,q,s+q|0);r=b[(v&o)>>1]|0}q=q+1|0}while((q|0)<(r<<16>>16|0))}w=z+32|0;v=c[(w&p)>>2]|0;xt(d,f,109,0,1,e,m,t,A);if((v|0)<(c[(w&p)>>2]|0))xh(z,wh(z,x,g,A,i)|0,j<<16>>16,-14);zt(d,e,m,0,0,0)}else m=0;if((c[(e&p)+12>>2]|0)==0?(At(d,e,g,h,0),wh(z,95,g,k<<24>>24!=0&1,0)|0,k<<24>>24!=0):0)xh(z,-1,c[(e&p)>>2]|0,0);Ct(d,e,0,m,0,0);xt(d,f,109,0,2,e,m,l&255,A);q=c[(z&p)+24>>2]|0;m=~A;if((A|0)<0?(B=c[(q&p)+112>>2]|0,(B|0)!=0):0)c[(B+(m<<2)&p)>>2]=c[(z&p)+32>>2];c[(q&p)+88>>2]=(c[(z&p)+32>>2]|0)+-1;return}function st(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,o=0,q=0,r=0;j=c[(b&p)+8>>2]|0;d=c[(b&p)+404>>2]|0;if(d){l=(c[(b&p)>>2]|0)+16|0;m=b+19|0;o=b+72|0;q=j+32|0;r=j+4|0;k=j+24|0;do{f=c[(d&p)+8>>2]|0;g=c[(l&p)>>2]|0;i=c[(d&p)+12>>2]|0;e=a[(m&n)>>0]|0;if(!(e<<24>>24)){h=(c[(o&p)>>2]|0)+1|0;c[(o&p)>>2]=h}else{h=e+-1<<24>>24;a[(m&n)>>0]=h;h=c[(b+((h&255)<<2)&p)+24>>2]|0}Qq(b,0,f,c[((c[(g+(f<<4)&p)+12>>2]|0)&p)+72>>2]|0,55);g=i+1|0;f=wh(j,77,g,0,0)|0;wh(j,74,0,g,0)|0;e=c[(q&p)>>2]|0;if(e>>>0>f>>>0)c[((c[(r&p)>>2]|0)+(f*20|0)&p)+8>>2]=e;c[((c[(k&p)>>2]|0)&p)+88>>2]=e+-1;wh(j,49,i+-1|0,2,h)|0;wh(j,75,0,h,g)|0;e=c[(r&p)>>2]|0;if(e)a[(e+(((c[(q&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;wh(j,61,0,0,0)|0;_r(b,h);d=c[(d&p)>>2]|0}while((d|0)!=0)}return}function tt(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;c[(g&p)>>2]=e;if(!e)f=0;else{f=e;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;f=f-e&1073741823}c[(g&p)+4>>2]=f;f=nr(b,d,g,0)|0;i=h;return f|0}function ut(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();k=q+4|0;n=q;if(c[((c[(a&p)>>2]|0)&p)+24>>2]&524288){f=c[(d&p)+16>>2]|0;if(!f)e=0;else{e=0;do{g=c[(f&p)+20>>2]|0;if((g|0)>0){h=0;do{r=c[(f+(h<<3)&p)+36>>2]|0;e=((r|0)>31?-1:1<<r)|e;h=h+1|0}while((h|0)<(g|0))}f=c[(f&p)+4>>2]|0}while((f|0)!=0)}f=bn((c[(d&p)+68>>2]|0)+56|0,c[(d&p)>>2]|0,k)|0;if((f|0)!=0?(l=c[(f&p)+8>>2]|0,(l|0)!=0):0)do{c[(n&p)>>2]=0;Mt(a,d,l,n,0)|0;f=c[(n&p)>>2]|0;if((f|0)!=0?(m=b[(f&o)+46>>1]|0,m<<16>>16!=0):0){k=m&65535;h=c[(f&p)+4>>2]|0;g=0;do{f=b[(h+(g<<1)&o)>>1]|0;if(f<<16>>16>31)f=-1;else f=1<<(f<<16>>16);e=f|e;g=g+1|0}while((g|0)<(k|0))}l=c[(l&p)+12>>2]|0}while((l|0)!=0)}else e=0;i=q;return e|0}function vt(a,b,e,f,g,h,i){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;k=(e|0)!=0?110:109;if(!b)j=0;else{j=0;do{if((((d[(b&n)+8>>0]|0|0)==(k|0)?((d[(b&n)+9>>0]|0)&g|0)!=0:0)?(av(c[(b&p)+16>>2]|0,e)|0)!=0:0)?(l=cv(a,b,h,i)|0,(l|0)!=0):0)j=c[(l+(f<<2)&p)+16>>2]|j;b=c[(b&p)+32>>2]|0}while((b|0)!=0)}return j|0}function wt(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;l=e+20|0;g=c[(l&p)>>2]|0;do if(!g){i=c[(d&p)>>2]|0;k=e+38|0;h=(b[(k&o)>>1]|0)+1|0;h=qg(h,((h|0)<0)<<31>>31)|0;if(!h){a[(i&n)+65>>0]=1;break}if((b[(k&o)>>1]|0)>0){i=e+4|0;g=0;do{a[(h+g&n)>>0]=a[((c[(i&p)>>2]|0)+(g*24|0)&n)+21>>0]|0;g=g+1|0}while((g|0)<(b[(k&o)>>1]|0))}else g=0;do{a[(h+g&n)>>0]=0;if((g|0)<=0)break;g=g+-1|0}while((a[(h+g&n)>>0]|0)==65);c[(l&p)>>2]=h;j=10}else{h=g;j=10}while(0);do if((j|0)==10){g=h;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-h&1073741823;if(g)if(!f){xh(d,-1,h,g);break}else{xh(d,wh(d,48,f,g,0)|0,h,g);break}}while(0);return}function xt(a,b,e,f,g,h,i,j,k){a=a|0;b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;if(b)do{if(((d[(b&n)+8>>0]|0|0)==(e|0)?(d[(b&n)+9>>0]|0|0)==(g|0):0)?(av(c[(b&p)+16>>2]|0,f)|0)!=0:0)dv(a,b,h,i,j,k);b=c[(b&p)+32>>2]|0}while((b|0)!=0);return}function yt(d,f,g,h,k,l,m,q,r,s,t){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;t=t|0;var u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+16|0;if((i|0)>=(j|0))fa();L=oa;ia=(m|0)!=0;Q=c[(d&p)>>2]|0;na=Oq(d)|0;D=b[(f&o)+38>>1]|0;la=f+44|0;if(!(a[(la&n)>>0]&32)){ha=1;ga=0}else{x=f+8|0;while(1){x=c[(x&p)>>2]|0;if((a[(x&n)+51>>0]&3)==2)break;else x=x+20|0}ha=e[(x&o)+46>>1]|0;ga=x}if(D<<16>>16>0){z=f+36|0;y=f+4|0;x=r<<24>>24==10;w=d+408|0;v=l+1|0;E=na+4|0;F=na+32|0;G=na+24|0;H=r&255;B=D<<16>>16;A=0;do{a:do if((A|0)!=(b[(z&o)>>1]|0)?(I=c[(y&p)>>2]|0,J=a[(I+(A*24|0)&n)+20>>0]|0,K=J&255,J<<24>>24!=0):0){if(x)if(J<<24>>24==10)ma=14;else{D=K;ma=11}else{D=H;ma=11}do if((ma|0)==11){ma=0;if((D|0)==5)D=(c[(I+(A*24|0)&p)+4>>2]|0)==0?2:5;if((D|0)==2){ma=14;break}else if((D|0)==3|(D|0)==1)break;else if((D|0)==4){wh(na,76,v+A|0,s,0)|0;break a}C=v+A|0;D=wh(na,77,C,0,0)|0;Rq(d,c[((c[(y&p)>>2]|0)+(A*24|0)&p)+4>>2]|0,C);C=c[(F&p)>>2]|0;if(C>>>0>D>>>0)c[((c[(E&p)>>2]|0)+(D*20|0)&p)+8>>2]=C;c[((c[(G&p)>>2]|0)&p)+88>>2]=C+-1;break a}while(0);if((ma|0)==14){ma=0;D=c[(w&p)>>2]|0;a[(((D|0)==0?d:D)&n)+21>>0]=1;D=2}ea=c[(I+(A*24|0)&p)>>2]|0;c[(L&p)>>2]=c[(f&p)>>2];c[(L&p)+4>>2]=ea;ea=uh(Q,27824,L)|0;xh(na,wh(na,23,1299,D,v+A|0)|0,ea,-1);D=c[(E&p)>>2]|0;if(D)a[(D+(((c[(F&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1}while(0);A=A+1|0}while((A|0)!=(B|0))}A=c[(f&p)+24>>2]|0;if(((A|0)!=0?(c[(Q&p)+24>>2]&8192|0)==0:0)?(c[(d&p)+92>>2]=l+1,(c[(A&p)>>2]|0)>0):0){z=A+4|0;v=na+24|0;B=na+32|0;D=0;x=r<<24>>24==10?2:r&255;while(1){C=xs(na)|0;Zu(d,c[((c[(z&p)>>2]|0)+(D*20|0)&p)>>2]|0,C,16);if((x|0)==4){wh(na,16,0,s,0)|0;w=4}else{y=c[((c[(z&p)>>2]|0)+(D*20|0)&p)+4>>2]|0;if(!y)y=c[(f&p)>>2]|0;w=(x|0)==5?2:x;zs(d,275,w,y,0,3)}y=c[(v&p)>>2]|0;x=~C;if((C|0)<0?(M=c[(y&p)+112>>2]|0,(M|0)!=0):0)c[(M+(x<<2)&p)>>2]=c[(B&p)>>2];c[(y&p)+88>>2]=(c[(B&p)>>2]|0)+-1;D=D+1|0;if((D|0)>=(c[(A&p)>>2]|0))break;else x=w}}if(q<<24>>24!=0&(ga|0)==0){z=xs(na)|0;v=a[(f&n)+45>>0]|0;if(r<<24>>24==10)v=v<<24>>24==10?2:v&255;else v=r&255;if(ia?(wh(na,79,l,z,m)|0,N=c[(na&p)+4>>2]|0,(N|0)!=0):0)a[(N+(((c[(na&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;b:do if(!((v|0)!=5|r<<24>>24==5)?(u=c[(f&p)+8>>2]|0,(u|0)!=0):0){while(1){if(((a[(u&n)+50>>0]|0)+-3&255)<2)break;u=c[(u&p)+20>>2]|0;if(!u){A=0;break b}}A=wh(na,16,0,0,0)|0}else A=0;while(0);wh(na,70,h,z,l)|0;c:do switch(v|0){case 4:{wh(na,16,0,s,0)|0;v=0;break}case 3:case 2:case 1:{ma=49;break}case 5:{if((c[(Q&p)+24>>2]&262144|0)!=0?(O=jt(d,f,109,0,0)|0,(O|0)!=0):0)v=O;else if(!(mt(d,f,0,0)|0)){if(!(c[(f&p)+8>>2]|0)){v=1;break c}v=c[(d&p)+408>>2]|0;a[(((v|0)==0?d:v)&n)+20>>0]=1;At(d,f,h,k,0);v=1;break c}else v=0;ea=c[(d&p)+408>>2]|0;a[(((ea|0)==0?d:ea)&n)+20>>0]=1;rt(d,f,v,h,k,l,1,0,5,1);v=1;break}default:{v=2;ma=49}}while(0);if((ma|0)==49){Ft(d,v,f);v=0}y=na+24|0;x=c[(y&p)>>2]|0;w=~z;if((z|0)<0?(P=c[(x&p)+112>>2]|0,(P|0)!=0):0)c[(P+(w<<2)&p)>>2]=c[(na&p)+32>>2];u=na+32|0;c[(x&p)+88>>2]=(c[(u&p)>>2]|0)+-1;if(!A){w=0;A=0}else{w=wh(na,16,0,0,0)|0;u=c[(u&p)>>2]|0;if(u>>>0>A>>>0)c[((c[(na&p)+4>>2]|0)+(A*20|0)&p)+8>>2]=u;c[((c[(y&p)>>2]|0)&p)+88>>2]=u+-1}}else{w=0;A=0;v=0}D=c[(f&p)+8>>2]|0;if(D){ba=l+1|0;ca=d+60|0;da=d+56|0;ea=d+72|0;T=q<<24>>24==0;U=na+24|0;V=na+32|0;W=r<<24>>24==10;X=na+4|0;Y=ga+46|0;Z=ga+32|0;_=ga+4|0;$=m+1|0;aa=d+408|0;R=Q+24|0;S=ha&65535;z=r&255;y=f+36|0;x=d+92|0;H=0;u=0;C=-1;while(1){O=g+(u<<2)|0;do if(c[(O&p)>>2]|0){if(!(H<<24>>24)){wt(na,f,ba);H=1}P=u+k|0;r=xs(na)|0;N=D+36|0;if(c[(N&p)>>2]|0){wh(na,28,0,c[(O&p)>>2]|0,0)|0;c[(x&p)>>2]=ba;gt(d,c[(N&p)>>2]|0,r,16);c[(x&p)>>2]=0}Q=D+48|0;I=b[(Q&o)>>1]|0;L=I&65535;K=c[(ca&p)>>2]|0;J=c[(da&p)>>2]|0;if((J|0)<(L|0)){q=c[(ea&p)>>2]|0;c[(ea&p)>>2]=q+L;q=q+1|0}else{c[(ca&p)>>2]=K+L;c[(da&p)>>2]=J-L;q=K}if(!(I<<16>>16))M=C;else{M=D+4|0;J=0;do{B=b[((c[(M&p)>>2]|0)+(J<<1)&o)>>1]|0;L=B<<16>>16;if(B<<16>>16>=0?B<<16>>16!=(b[(y&o)>>1]|0):0){K=J+q|0;L=ba+L|0;ma=81}else{L=J+q|0;if((C|0)!=(L|0)){K=L;C=(c[(N&p)>>2]|0)==0?L:-1;L=l;ma=81}}if((ma|0)==81){ma=0;wh(na,34,L,K,0)|0;I=b[(Q&o)>>1]|0}J=J+1|0;L=I&65535}while((J|0)<(L|0));M=C}wh(na,49,q,L,c[(O&p)>>2]|0)|0;dt(d,q,e[(Q&o)>>1]|0);N=(ga|0)==(D|0);if(ia&N&T){C=c[(U&p)>>2]|0;B=~r;if((r|0)<0?(ja=c[(C&p)+112>>2]|0,(ja|0)!=0):0)c[(ja+(B<<2)&p)>>2]=c[(V&p)>>2];c[(C&p)+88>>2]=(c[(V&p)>>2]|0)+-1;C=M;break}G=a[(D&n)+50>>0]|0;F=G&255;if(!(G<<24>>24)){C=e[(Q&o)>>1]|0;dt(d,q,C);if((c[(da&p)>>2]|0)<(C|0)){c[(da&p)>>2]=C;c[(ca&p)>>2]=q}C=c[(U&p)>>2]|0;B=~r;if((r|0)<0?(ka=c[(C&p)+112>>2]|0,(ka|0)!=0):0)c[(ka+(B<<2)&p)>>2]=c[(V&p)>>2];c[(C&p)+88>>2]=(c[(V&p)>>2]|0)+-1;C=M;break}if(W)O=G<<24>>24==10?2:F;else O=z;C=e[(D&o)+46>>1]|0;xh(na,wh(na,67,P,r,q)|0,C,-14);do if(!N){L=c[(ca&p)>>2]|0;K=c[(da&p)>>2]|0;if((K|0)<(ha|0)){L=c[(ea&p)>>2]|0;c[(ea&p)>>2]=L+ha;L=L+1|0;break}else{c[(ca&p)>>2]=L+ha;c[(da&p)>>2]=K-ha;break}}else L=q;while(0);do if(ia|(O|0)==5){if(!(a[(la&n)>>0]&32)){wh(na,112,P,L,0)|0;if(!ia)break;wh(na,79,L,r,m)|0;G=c[(X&p)>>2]|0;if(!G)break;a[(G+(((c[(V&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;break}do if(!N){if(!(b[(Y&o)>>1]|0))break;F=D+4|0;E=0;do{I=b[((c[(_&p)>>2]|0)+(E<<1)&o)>>1]|0;K=b[(Q&o)>>1]|0;d:do if(!(K<<16>>16))K=-1;else{G=c[(F&p)>>2]|0;J=K&65535;K=0;while(1){if((b[(G+(K<<1)&o)>>1]|0)==I<<16>>16)break d;K=K+1|0;if((K|0)>=(J|0)){K=-1;break}}}while(0);wh(na,47,P,K<<16>>16,E+L|0)|0;E=E+1|0}while((E|0)<(e[(Y&o)>>1]|0))}while(0);if(!ia)break;F=(a[(D&n)+51>>0]&3)==2?q:L;K=b[(Y&o)>>1]|0;if(!(K<<16>>16))break;J=(K&65535)+(c[(V&p)>>2]|0)|0;I=0;G=78;do{K=cr(d,c[((c[(Z&p)>>2]|0)+(I<<2)&p)>>2]|0)|0;C=(I|0)==((e[(Y&o)>>1]|0)+-1|0);J=C?r:J;G=C?79:G;xh(na,wh(na,G,$+(b[((c[(_&p)>>2]|0)+(I<<1)&o)>>1]|0)|0,J,I+F|0)|0,K,-4);K=c[(X&p)>>2]|0;if(K)a[(K+(((c[(V&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;I=I+1|0}while((I|0)<(e[(Y&o)>>1]|0))}while(0);if((O|0)==3|(O|0)==2|(O|0)==1)nu(d,O,D);else if((O|0)==4)wh(na,16,0,s,0)|0;else{C=c[(aa&p)>>2]|0;a[(((C|0)==0?d:C)&n)+20>>0]=1;if(!(c[(R&p)>>2]&262144))G=0;else G=jt(d,f,109,0,0)|0;rt(d,f,G,h,k,L,S,0,5,N&1);v=1}K=c[(U&p)>>2]|0;J=~r;do if((r|0)<0){G=c[(K&p)+112>>2]|0;if(!G)break;c[(G+(J<<2)&p)>>2]=c[(V&p)>>2]}while(0);c[(K&p)+88>>2]=(c[(V&p)>>2]|0)+-1;C=e[(Q&o)>>1]|0;dt(d,q,C);if((c[(da&p)>>2]|0)<(C|0)){c[(da&p)>>2]=C;c[(ca&p)>>2]=q}if((L|0)==(q|0)){C=M;break}dt(d,L,ha);if((c[(da&p)>>2]|0)>=(ha|0)){C=M;break}c[(da&p)>>2]=ha;c[(ca&p)>>2]=L;C=M}while(0);D=c[(D&p)+20>>2]|0;if(!D)break;else u=u+1|0}}if(A){wh(na,16,0,A+1|0,0)|0;u=c[(na&p)+32>>2]|0;if(u>>>0>w>>>0)c[((c[(na&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=u;c[((c[(na&p)+24>>2]|0)&p)+88>>2]=u+-1}c[(t&p)>>2]=v;i=oa;return}function zt(e,f,g,h,k,l){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0;aa=i;i=i+32|0;if((i|0)>=(j|0))fa();T=aa+20|0;R=aa+16|0;P=aa+12|0;Q=aa+8|0;_=aa+4|0;Z=aa;V=c[(e&p)>>2]|0;O=e+438|0;U=a[(O&n)>>0]|0;Y=V+24|0;a:do if(c[(Y&p)>>2]&524288){S=f+68|0;m=c[(S&p)>>2]|0;b:do if(m){r=c[(V&p)+20>>2]|0;if((r|0)>0){q=c[(V&p)+16>>2]|0;u=0;while(1){t=u+1|0;if((c[(q+(u<<4)&p)+12>>2]|0)==(m|0)){t=u;break b}if((t|0)<(r|0))u=t;else break}}else t=0}else t=-1e6;while(0);N=c[((c[(V&p)+16>>2]|0)+(t<<4)&p)>>2]|0;A=c[(f&p)+16>>2]|0;if(!A)q=f;else{C=(k|0)==0;D=U<<24>>24==0;E=V+65|0;F=g+1|0;G=e+68|0;H=(g|0)==0;I=(h|0)==0;J=e+408|0;K=f+36|0;L=V+284|0;M=(l|0)!=0;B=A;do{c[(R&p)>>2]=0;c[(P&p)>>2]=0;c:do if(!C){A=c[(B&p)+8>>2]|0;if(dd(c[(f&p)>>2]|0,A)|0){z=c[(B&p)+20>>2]|0;if((z|0)>0){q=0;do{m=c[(B+(q<<3)&p)+36>>2]|0;if((c[(k+(m<<2)&p)>>2]|0)>-1){$=17;break c}q=q+1|0;if((m|0)==(b[(K&o)>>1]|0)&M){$=17;break c}}while((q|0)<(z|0))}}else $=17}else{A=c[(B&p)+8>>2]|0;$=17}while(0);do if(($|0)==17){$=0;if(!(a[(O&n)>>0]|0))y=sh(e,0,A,N)|0;else y=_h(V,A,N)|0;A=(y|0)==0;if(!A?(Mt(e,y,B,R,P)|0)==0:0){A=c[(P&p)>>2]|0;if(!A){c[(Q&p)>>2]=c[(B&p)+36>>2];A=Q}q=B+20|0;if((c[(q&p)>>2]|0)>0){w=c[(R&p)>>2]|0;r=(w|0)==0;u=y+36|0;v=y+4|0;w=w+4|0;m=0;x=0;do{z=A+(x<<2)|0;if((c[(z&p)>>2]|0)==(b[(K&o)>>1]|0))c[(z&p)>>2]=-1;if(c[(L&p)>>2]|0){if(r)z=u;else z=(c[(w&p)>>2]|0)+(x<<1)|0;m=(ev(e,c[(y&p)>>2]|0,c[((c[(v&p)>>2]|0)+((b[(z&o)>>1]|0)*24|0)&p)>>2]|0,t)|0)==2&1}x=x+1|0}while((x|0)<(c[(q&p)>>2]|0));z=y}else{z=y;m=0}gs(e,t,c[(y&p)+32>>2]|0,0,c[(z&p)>>2]|0);c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;if(!H)fv(e,t,y,c[(R&p)>>2]|0,B,A,g,-1,m);d:do if(!I){z=c[(J&p)>>2]|0;z=c[(((z|0)==0?e:z)&p)+528>>2]|0;do if(z){z=c[(z&p)>>2]|0;if((z|0)==(c[(B&p)+28>>2]|0)?(a[(B&n)+25>>0]|0)==7:0)break d;if((z|0)!=(c[(B&p)+32>>2]|0))break;if((a[(B&n)+26>>0]|0)==7)break d}while(0);fv(e,t,y,c[(R&p)>>2]|0,B,A,h,1,m)}while(0);mg(V,c[(P&p)>>2]|0);break}if(D)break a;if(a[(E&n)>>0]|0)break a;if(A){A=Oq(e)|0;z=B+20|0;q=c[(z&p)>>2]|0;m=(c[(A&p)+32>>2]|0)+1+q|0;if((q|0)>0){q=0;do{wh(A,76,F+(c[(B+(q<<3)&p)+36>>2]|0)|0,m,0)|0;q=q+1|0}while((q|0)<(c[(z&p)>>2]|0))}wh(A,134,d[(B&n)+24>>0]|0,-1,0)|0}}while(0);B=c[(B&p)+4>>2]|0}while((B|0)!=0);q=f;m=c[(S&p)>>2]|0}m=bn(m+56|0,c[(q&p)>>2]|0,T)|0;if((m|0)!=0?(s=c[(m&p)+8>>2]|0,W=V+65|0,(s|0)!=0):0){u=(k|0)!=0;v=e+408|0;w=e+20|0;x=e+68|0;y=(h|0)==0;z=(g|0)==0;A=u&1;t=U<<24>>24==0;do{c[(_&p)>>2]=0;c[(Z&p)>>2]=0;if(!(u?(bv(f,s,k,l)|0)==0:0))$=57;do if(($|0)==57){$=0;q=s+24|0;if((((a[(q&n)>>0]|0)==0?(c[(Y&p)>>2]&16777216|0)==0:0)?(c[(v&p)>>2]|0)==0:0)?(a[(w&n)>>0]|0)==0:0)break;if(Mt(e,f,s,_,Z)|0){if(t)break a;if(!(a[(W&n)>>0]|0))break;else break a}m=pr(V,0,0,0)|0;if(m){K=c[(s&p)>>2]|0;c[(m&p)+24>>2]=K;r=m+16|0;c[(r&p)>>2]=c[(K&p)>>2];K=K+40|0;b[(K&o)>>1]=(b[(K&o)>>1]|0)+1<<16>>16;K=c[(x&p)>>2]|0;c[(x&p)>>2]=K+1;c[(m&p)+48>>2]=K;if(!y)gv(e,m,f,c[(_&p)>>2]|0,s,c[(Z&p)>>2]|0,h,-1);if((!z?(X=a[(s+A&n)+25>>0]|0,gv(e,m,f,c[(_&p)>>2]|0,s,c[(Z&p)>>2]|0,g,1),(a[(q&n)>>0]|0)==0):0)?!(X<<24>>24==7|X<<24>>24==9):0){K=c[(v&p)>>2]|0;a[(((K|0)==0?e:K)&n)+21>>0]=1}c[(r&p)>>2]=0;Do(V,m)}mg(V,c[(Z&p)>>2]|0)}while(0);s=c[(s&p)+12>>2]|0}while((s|0)!=0)}}while(0);i=aa;return}function At(b,d,f,g,h){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+16|0;if((i|0)>=(j|0))fa();u=v;t=c[(b&p)+8>>2]|0;l=c[(d&p)+8>>2]|0;a:do if(a[(d&n)+44>>0]&32){if(l){k=l;while(1){if((a[(k&n)+51>>0]&3)==2){s=5;break a}k=c[(k&p)+20>>2]|0;if(!k){k=0;s=5;break}}}}else{k=0;s=5}while(0);if((s|0)==5?(l|0)!=0:0){q=(h|0)==0;r=0;d=0;m=-1;while(1){if(q){if((l|0)!=(k|0))s=10}else if(!((l|0)==(k|0)?1:(c[(h+(r<<2)&p)>>2]|0)==0))s=10;if((s|0)==10){s=0;m=Pt(b,l,f,0,1,u,d,m)|0;wh(t,111,r+g|0,m,e[(((a[(l&n)+51>>0]&8)==0?l+48|0:l+46|0)&o)>>1]|0)|0;Qt(b,c[(u&p)>>2]|0);d=l}l=c[(l&p)+20>>2]|0;if(!l)break;else r=r+1|0}}i=v;return}function Bt(d,e,f,g,h,i,j,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=Oq(d)|0;t=c[(e&p)+8>>2]|0;if(!t){q=e+44|0;s=0}else{u=(l|0)!=0;q=e+44|0;v=u?17:1;w=z+4|0;x=z+32|0;s=0;y=0;m=t;while(1){r=i+(y<<2)|0;t=c[(r&p)>>2]|0;do if(t){if(c[(m&p)+36>>2]|0){wh(z,76,t,(c[(x&p)>>2]|0)+2|0,0)|0;t=c[(r&p)>>2]|0}wh(z,110,y+g|0,t,0)|0;if((a[(m&n)+51>>0]&3)==2){t=(a[(q&n)>>0]&32)!=0;if(t|u)s=t?v:16;else{s=1;break}}else if(u)s=16;else{s=1;break}t=c[(w&p)>>2]|0;if(!t)s=1;else{a[(t+(((c[(x&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=s;s=1}}while(0);m=c[(m&p)+20>>2]|0;if(!m)break;else y=y+1|0}}if(!(a[(q&n)>>0]&32)){r=h+1|0;q=d+19|0;m=a[(q&n)>>0]|0;if(!(m<<24>>24)){i=d+72|0;t=(c[(i&p)>>2]|0)+1|0;c[(i&p)>>2]=t}else{t=m+-1<<24>>24;a[(q&n)>>0]=t;t=c[(d+((t&255)<<2)&p)+24>>2]|0}q=e+38|0;wh(z,49,r,b[(q&o)>>1]|0,t)|0;if(!(s<<24>>24))wt(z,e,0);dt(d,r,b[(q&o)>>1]|0);r=d+18|0;if(!(a[(r&n)>>0]|0))m=(j|0)!=0?5:3;else m=0;if(k)m=(m&255|8)&255;if(!l)q=m;else q=(m&255|16)&255;wh(z,75,f,t,h)|0;if(!(a[(r&n)>>0]|0))xh(z,-1,c[(e&p)>>2]|0,0);m=c[(z&p)+4>>2]|0;if(m)a[(m+(((c[(z&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=q}return}function Ct(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0;$=i;i=i+64|0;if((i|0)>=(j|0))fa();U=$+52|0;T=$+48|0;Y=$+8|0;X=$;W=$+40|0;Z=$+32|0;V=$+24|0;if(((c[((c[(d&p)>>2]|0)&p)+24>>2]&524288|0)!=0?(S=e+68|0,l=bn((c[(S&p)>>2]|0)+56|0,c[(e&p)>>2]|0,$+16|0)|0,(l|0)!=0):0)?(m=c[(l&p)+8>>2]|0,(m|0)!=0):0){R=(h|0)==0;K=(f|0)!=0;L=K&1;M=Z+4|0;N=W+4|0;O=e+4|0;P=V+4|0;Q=K?110:109;do{if(!(!R?(bv(e,m,h,k)|0)==0:0)){H=c[(d&p)>>2]|0;G=a[(m+L&n)+25>>0]|0;I=G&255;J=m+(L<<2)+28|0;f=c[(J&p)>>2]|0;do if(!(G<<24>>24==0|(f|0)!=0)){c[(U&p)>>2]=0;c[(T&p)>>2]=0;if(!(Mt(d,e,m,U,T)|0)){u=m+20|0;if((c[(u&p)>>2]|0)>0){A=34352;z=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;C=34360;B=c[(C&p)>>2]|0;C=c[(C&p)+4>>2]|0;D=m+36|0;F=G<<24>>24!=6&(G<<24>>24!=9|K);E=0;r=0;l=0;q=0;do{f=Y;c[(f&p)>>2]=z;c[(f&p)+4>>2]=A;f=X;c[(f&p)>>2]=B;c[(f&p)+4>>2]=C;f=c[(T&p)>>2]|0;if(!f)f=D;else f=f+(E<<2)|0;t=c[(f&p)>>2]|0;v=c[(U&p)>>2]|0;if(!v)x=34368;else x=c[((c[(O&p)>>2]|0)+((b[((c[(v&p)+4>>2]|0)+(E<<1)&o)>>1]|0)*24|0)&p)>>2]|0;c[(Z&p)>>2]=x;f=c[((c[((c[(m&p)>>2]|0)&p)+4>>2]|0)+(t*24|0)&p)>>2]|0;c[(W&p)>>2]=f;if(!x)w=0;else{y=x;while(1)if(!(a[(y&n)>>0]|0))break;else y=y+1|0;w=y-x&1073741823}c[(M&p)>>2]=w;if(!f)s=0;else{x=f;while(1)if(!(a[(x&n)>>0]|0))break;else x=x+1|0;s=x-f&1073741823}c[(N&p)>>2]=s;y=Zq(d,27,0,0,Y)|0;y=Zq(d,122,y,Zq(d,27,0,0,Z)|0,0)|0;q=ss(H,q,Zq(d,79,y,Zq(d,27,0,0,W)|0,0)|0)|0;if(K){x=Zq(d,27,0,0,Y)|0;x=Zq(d,122,x,Zq(d,27,0,0,Z)|0,0)|0;y=Zq(d,27,0,0,X)|0;l=ss(H,l,Zq(d,73,x,Zq(d,122,y,Zq(d,27,0,0,Z)|0,0)|0,0)|0)|0}if(F){do if(G<<24>>24==8){f=c[((c[((c[(m&p)>>2]|0)&p)+4>>2]|0)+(t*24|0)&p)+4>>2]|0;if(!f){f=Zq(d,101,0,0,0)|0;break}else{f=Mr(H,f,0,0)|0;break}}else if(G<<24>>24==9){f=Zq(d,27,0,0,X)|0;f=Zq(d,122,f,Zq(d,27,0,0,Z)|0,0)|0}else f=Zq(d,101,0,0,0)|0;while(0);r=lr(d,r,f)|0;mr(d,r,W,0)}E=E+1|0}while((E|0)<(c[(u&p)>>2]|0));f=m}else{f=m;r=0;l=0;q=0}mg(H,c[(T&p)>>2]|0);y=c[(c[(f&p)>>2]&p)>>2]|0;if(!y)s=0;else{f=y;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;s=f-y&1073741823}if(G<<24>>24==6){c[(V&p)>>2]=y;c[(P&p)>>2]=s;f=tt(H,57,34376)|0;if(f)a[(f&n)+1>>0]=2;x=lr(d,0,f)|0;x=kr(d,x,pr(H,0,V,0)|0,q,0,0,0,0,0,0)|0;w=0}else{x=0;w=q}t=H+250|0;u=a[(t&n)>>0]|0;a[(t&n)>>0]=0;f=s+77|0;v=mh(H,f,0)|0;if(v){fw(v|0,0,f|0)|0;q=v+36|0;c[(v&p)+28>>2]=q;G=v+76|0;c[(v&p)+48>>2]=G;c[(v&p)+52>>2]=s;kw(G|0,y|0,s|0)|0;c[(v&p)+56>>2]=Mr(H,w,1,0)|0;c[(v&p)+60>>2]=Pr(H,r,1)|0;c[(v&p)+44>>2]=gr(H,x,1)|0;if(!l){f=v;l=0}else{l=Zq(d,19,l,0,0)|0;c[(v&p)+12>>2]=Mr(H,l,1,0)|0;f=v}}else{f=0;q=0}a[(t&n)>>0]=u;Gk(H,w);Gk(H,l);Nk(H,r);Mk(H,x,1);if((a[(H&n)+65>>0]|0)==1){Kk(H,f);f=0;break}if((I|0)==6)a[(q&n)>>0]=119;else if((I|0)==9?!K:0)a[(q&n)>>0]=109;else _=49;if((_|0)==49){_=0;a[(q&n)>>0]=110}c[(q&p)+4>>2]=f;I=c[(S&p)>>2]|0;c[(v&p)+20>>2]=I;c[(v&p)+24>>2]=I;c[(J&p)>>2]=f;a[(v&n)+8>>0]=Q}else f=0}while(0);if(f)dv(d,f,e,g,2,0)}m=c[(m&p)+12>>2]|0}while((m|0)!=0)}i=$;return}function Dt(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0;f=b[(d&o)+46>>1]|0;a:do if(f<<16>>16==(b[(e&o)+46>>1]|0)?(a[(d&n)+50>>0]|0)==(a[(e&n)+50>>0]|0):0){if(f<<16>>16){g=c[(e&p)+4>>2]|0;h=c[(d&p)+4>>2]|0;i=e+28|0;j=d+28|0;k=e+32|0;l=d+32|0;s=0;do{if((b[(g+(s<<1)&o)>>1]|0)!=(b[(h+(s<<1)&o)>>1]|0)){f=0;break a}if((a[((c[(i&p)>>2]|0)+s&n)>>0]|0)!=(a[((c[(j&p)>>2]|0)+s&n)>>0]|0)){f=0;break a}m=c[((c[(k&p)>>2]|0)+(s<<2)&p)>>2]|0;q=c[((c[(l&p)>>2]|0)+(s<<2)&p)>>2]|0;r=(q|0)==0;if(!m){if(!r){f=0;break a}}else{if(r){f=0;break a}if(dd(m,q)|0){f=0;break a}}s=s+1|0}while((s|0)<(f&65535|0))}f=(Cu(c[(e&p)+36>>2]|0,c[(d&p)+36>>2]|0,-1)|0)==0&1}else f=0;while(0);return f|0}function Et(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;do if(!(a[(e&n)+44>>0]&8))f=0;else{h=c[(b&p)+408>>2]|0;h=(h|0)==0?b:h;g=h+404|0;f=c[(g&p)>>2]|0;a:do if(!f)i=5;else while(1){if((c[(f&p)+4>>2]|0)==(e|0))break a;f=c[(f&p)>>2]|0;if(!f){i=5;break}}while(0);if((i|0)==5){f=mh(c[(b&p)>>2]|0,16,0)|0;if(!f){f=0;break}c[(f&p)>>2]=c[(g&p)>>2];c[(g&p)>>2]=f;c[(f&p)+4>>2]=e;c[(f&p)+8>>2]=d;b=h+72|0;g=c[(b&p)>>2]|0;c[(f&p)+12>>2]=g+2;c[(b&p)>>2]=g+3}f=c[(f&p)+12>>2]|0}while(0);return f|0}function Ft(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;g=b[(e&o)+36>>1]|0;h=c[(a&p)>>2]|0;f=c[(e&p)>>2]|0;if(g<<16>>16>-1){g=c[((c[(e&p)+4>>2]|0)+((g<<16>>16)*24|0)&p)>>2]|0;c[(k&p)>>2]=f;c[(k&p)+4>>2]=g;g=1555;f=uh(h,27824,k)|0}else{c[(k&p)>>2]=f;g=2579;f=uh(h,34408,k)|0}zs(a,g,d,f,-1,2);i=l;return}function Gt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=b+316|0;h=c[(g&p)>>2]|0;d=lr(b,h,Mr(c[(b&p)>>2]|0,d,0,0)|0)|0;if(d){b=(c[(d&p)>>2]|0)+-1|0;h=c[(d&p)+4>>2]|0;c[(h+(b*20|0)&p)+16>>2]=e;b=h+(b*20|0)+13|0;a[(b&n)>>0]=a[(b&n)>>0]&-5|f<<2&4}c[(g&p)>>2]=d;return}function Ht(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;g=c[(e&p)>>2]|0;if(!(g+-1&g)){i=ca((g|0)==0?1:g<<1,d)|0;a=ro(a,b,i,((i|0)<0)<<31>>31)|0;if(!a){c[(f&p)>>2]=-1;a=b}else h=4}else{a=b;h=4}if((h|0)==4){fw(a+(ca(g,d)|0)|0,0,d|0)|0;c[(f&p)>>2]=g;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1}return a|0}function It(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;c[(h&p)>>2]=0;b=c[(a&p)+12>>2]|0;if((b|0)!=0?(d=c[(b&p)+24>>2]|0,(d|0)>0):0){c[(h&p)>>2]=d;b=d}else b=0;d=c[(a&p)+16>>2]|0;if((d|0)!=0?(e=c[(d&p)+24>>2]|0,(e|0)>(b|0)):0)c[(h&p)>>2]=e;f=a+4|0;b=a+20|0;if(!(c[(f&p)>>2]&2048)){d=c[(b&p)>>2]|0;if(d){tu(d,h);b=c[(b&p)>>2]|0;if((b|0)!=0?(g=c[(b&p)>>2]|0,(g|0)>0):0){e=c[(b&p)+4>>2]|0;d=0;b=0;do{b=c[((c[(e+(d*20|0)&p)>>2]|0)&p)+4>>2]|b;d=d+1|0}while((d|0)!=(g|0));b=b&2097408}else b=0;c[(f&p)>>2]=c[(f&p)>>2]|b}}else Es(c[(b&p)>>2]|0,h);c[(a&p)+24>>2]=(c[(h&p)>>2]|0)+1;i=k;return}function Jt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;g=Oq(b)|0;i=b+72|0;h=(c[(i&p)>>2]|0)+1|0;c[(i&p)>>2]=h;b=mh(c[(b&p)>>2]|0,8,0)|0;if(b){i=b;c[(i&p)>>2]=e;c[(i&p)+4>>2]=f}xh(g,wh(g,26,0,h,0)|0,b,-13);iq(g,1);if(!(a[((c[(g&p)>>2]|0)&n)+65>>0]|0))Xg(c[(g&p)+16>>2]|0,d,-1,1,0)|0;wh(g,35,h,1,0)|0;return}function Kt(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;d=c[(b&p)>>2]|0;e=d+16|0;f=c[((c[(e&p)>>2]|0)&p)+20>>2]|0;do if(!f)d=0;else{if((a[(d&n)+63>>0]|0)!=0?(a[(f&n)+8>>0]|0)==0:0){Ml(f);c[((c[(e&p)>>2]|0)&p)+20>>2]=0;Eg(d);d=0;break}th(b,32128,g);d=1}while(0);i=h;return d|0}function Lt(b){b=b|0;var e=0,f=0,g=0;if((a[(b&n)+63>>0]|0)!=0?(e=c[(b&p)+20>>2]|0,(e|0)>0):0){g=b+24|0;f=c[(b&p)+16>>2]|0;while(1){e=e+-1|0;b=c[(f&p)+4>>2]|0;if(b)to(b,c[(g&p)>>2]&28|d[(f&n)+8>>0]);if((e|0)<=0)break;else f=f+16|0}}return}function Mt(d,f,g,h,k){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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=i;i=i+16|0;if((i|0)>=(j|0))fa();z=C;A=c[(g&p)+20>>2]|0;m=c[(g&p)+40>>2]|0;if((A|0)==1){v=b[(f&o)+36>>1]|0;l=v<<16>>16;if(v<<16>>16>-1)if((m|0)!=0?(dd(c[((c[(f&p)+4>>2]|0)+(l*24|0)&p)>>2]|0,m)|0)!=0:0){y=0;B=8}else k=0;else{y=0;B=8}}else if(k){l=mh(c[(d&p)>>2]|0,A<<2,0)|0;if(!l)k=1;else{c[(k&p)>>2]=l;y=l;B=8}}else{y=0;B=8}a:do if((B|0)==8){k=c[(f&p)+8>>2]|0;b:do if(k){v=(m|0)==0;x=(A|0)>0;u=f+4|0;w=(y|0)==0;c:while(1){do if((e[(k&o)+46>>1]|0)==(A|0)?(a[(k&n)+50>>0]|0)!=0:0){if(v)if((a[(k&n)+51>>0]&3)==2){B=16;break c}else break;d:do if(x){q=c[(k&p)+4>>2]|0;r=c[(u&p)>>2]|0;s=c[(k&p)+32>>2]|0;t=0;while(1){f=b[(q+(t<<1)&o)>>1]|0;m=c[(r+(f*24|0)&p)+16>>2]|0;if(dd(c[(s+(t<<2)&p)>>2]|0,(m|0)!=0?m:11152)|0){m=t;break d}m=c[(r+(f*24|0)&p)>>2]|0;l=0;while(1){f=l+1|0;if(!(dd(c[(g+(l<<3)&p)+40>>2]|0,m)|0)){f=l;B=23;break}if((f|0)<(A|0))l=f;else break}if((B|0)==23){B=0;if(!w)c[(y+(t<<2)&p)>>2]=c[(g+(f<<3)&p)+36>>2]}m=t+1|0;if((f|0)==(A|0)){m=t;break d}if((m|0)<(A|0))t=m;else break}}else m=0;while(0);if((m|0)==(A|0))break c}while(0);k=c[(k&p)+20>>2]|0;if(!k)break b}if((B|0)==16)if(!(w|x^1)){l=0;do{c[(y+(l<<2)&p)>>2]=c[(g+(l<<3)&p)+36>>2];l=l+1|0}while((l|0)!=(A|0))}c[(h&p)>>2]=k;k=0;break a}while(0);if(!(a[(d&n)+438>>0]|0)){v=c[(g&p)+8>>2]|0;c[(z&p)>>2]=c[(c[(g&p)>>2]&p)>>2];c[(z&p)+4>>2]=v;th(d,32008,z)}mg(c[(d&p)>>2]|0,y);k=1}while(0);i=C;return k|0}function Nt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if(!(c[(d&p)+12>>2]|0)){c[(h&p)>>2]=0;l=c[(b&p)>>2]|0;g=d+4|0;d=c[(g&p)>>2]|0;Zr(l,c[(d+(e*24|0)&p)+4>>2]|0,a[(l&n)+62>>0]|0,a[(d+(e*24|0)&n)+21>>0]|0,h)|0;d=c[(h&p)>>2]|0;if(d)xh(b,-1,d,-8);if((a[((c[(g&p)>>2]|0)+(e*24|0)&n)+21>>0]|0)==69)wh(b,39,f,0,0)|0}i=k;return}function Ot(c,d,f){c=c|0;d=d|0;f=f|0;var g=0;if(!d)g=0;else{g=d;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-d&1073741823}g=Sh(c,d,g,2,1,0)|0;if(g){g=g+2|0;b[(g&o)>>1]=e[(g&o)>>1]|f&255}return}function Pt(d,e,f,g,h,i,j,k){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 l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;t=c[(d&p)+8>>2]|0;u=c[(e&p)+12>>2]|0;do if(i){l=e+36|0;if(!(c[(l&p)>>2]|0)){c[(i&p)>>2]=0;break}else{c[(i&p)>>2]=xs(t)|0;c[(d&p)+96>>2]=f;s=d+100|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;gt(d,c[(l&p)>>2]|0,c[(i&p)>>2]|0,16);break}}while(0);if((h|0)!=0?(a[(e&n)+51>>0]&8)!=0:0)l=e+46|0;else l=e+48|0;l=b[(l&o)>>1]|0;q=l&65535;r=d+60|0;h=c[(r&p)>>2]|0;s=d+56|0;i=c[(s&p)>>2]|0;if((i|0)<(q|0)){h=d+72|0;m=c[(h&p)>>2]|0;c[(h&p)>>2]=m+q;m=m+1|0}else{c[(r&p)>>2]=h+q;c[(s&p)>>2]=i-q;m=h}do if(!j)h=0;else{if((m|0)==(k|0)?(c[(j&p)+36>>2]|0)==0:0){h=j;break}h=0}while(0);if(l<<16>>16){j=(h|0)==0;k=e+4|0;i=h+4|0;l=0;do{if(!j){h=b[((c[(k&p)>>2]|0)+(l<<1)&o)>>1]|0;if((b[((c[(i&p)>>2]|0)+(l<<1)&o)>>1]|0)!=h<<16>>16)v=21}else{h=b[((c[(k&p)>>2]|0)+(l<<1)&o)>>1]|0;v=21}if((v|0)==21){v=0;nt(t,u,f,h<<16>>16,l+m|0);Pq(t,39)|0}l=l+1|0}while((l|0)<(q|0))}if(g)wh(t,49,m,q,g)|0;dt(d,m,q);if((c[(s&p)>>2]|0)<(q|0)){c[(s&p)>>2]=q;c[(r&p)>>2]=m}return m|0}function Qt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;if(b){d=c[(a&p)+8>>2]|0;e=c[(d&p)+24>>2]|0;f=~b;if((b|0)<0?(g=c[(e&p)+112>>2]|0,(g|0)!=0):0)c[(g+(f<<2)&p)>>2]=c[(d&p)+32>>2];c[(e&p)+88>>2]=(c[(d&p)+32>>2]|0)+-1;bu(a)}return}function Rt(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(d&p)+16>>2]|0;a:do if((e|0)!=0?(f=c[(d&p)+64>>2]|0,(f|0)!=0):0){e=c[(e&p)+8>>2]|0;b:do if(e){while(1){if(!(dd(c[(e&p)>>2]|0,f)|0))break;e=c[(e&p)+20>>2]|0;if(!e)break b}c[(d&p)+68>>2]=e;e=0;break a}while(0);c[(g&p)>>2]=f;c[(g&p)+4>>2]=0;th(b,28104,g);a[(b&n)+17>>0]=1;e=1}else e=0;while(0);i=h;return e|0}function St(a,b){a=a|0;b=b|0;var d=0,e=0;if(a){d=Tt(a,b)|0;if(b&1){e=St(c[(a&p)+12>>2]|0,b)|0;return e+d+(St(c[(a&p)+16>>2]|0,b)|0)|0}}else d=0;return d|0}
|
|
function Tt(b,d){b=b|0;d=d|0;var e=0;if(d&1)if(!(c[(b&p)+12>>2]|0))d=(c[(b&p)+20>>2]|0)==0?12:28;else d=28;else d=48;if((c[(b&p)+4>>2]&1024|0)==0?(e=c[(b&p)+8>>2]|0,(e|0)!=0):0){b=e;while(1)if(!(a[(b&n)>>0]|0))break;else b=b+1|0;d=(d|1)+(b-e&1073741823)|0}return d+7&-8|0}function Ut(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;e=c[(a&p)>>2]|0;h=e+20|0;d=c[(h&p)>>2]|0;if((d|0)>0){g=0;f=c[(e&p)+16>>2]|0;while(1){e=c[((c[(f&p)+12>>2]|0)&p)+16>>2]|0;if(e){d=e;do{Vt(a,c[(d&p)+8>>2]|0,b);d=c[(d&p)>>2]|0}while((d|0)!=0);d=c[(h&p)>>2]|0}g=g+1|0;if((g|0)>=(d|0))break;else f=f+16|0}}return}function Vt(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,l=0,m=0,n=0;f=c[(d&p)+8>>2]|0;if(f){m=(e|0)==0;k=d+68|0;l=a+408|0;do{a:do if(!m){i=f+32|0;d=b[(f&o)+48>>1]|0;if(d<<16>>16){h=c[(f&p)+4>>2]|0;d=d&65535;g=0;do{if((b[(h+(g<<1)&o)>>1]|0)>-1?(dd(c[((c[(i&p)>>2]|0)+(g<<2)&p)>>2]|0,e)|0)==0:0){n=9;break a}g=g+1|0}while((g|0)<(d|0))}}else n=9;while(0);if((n|0)==9){n=0;d=c[(a&p)>>2]|0;g=c[(k&p)>>2]|0;b:do if(g){j=c[(d&p)+20>>2]|0;if((j|0)>0){h=c[(d&p)+16>>2]|0;i=0;while(1){d=i+1|0;if((c[(h+(i<<4)&p)+12>>2]|0)==(g|0)){d=i;break b}if((d|0)<(j|0))i=d;else break}}else d=0}else d=-1e6;while(0);j=c[(l&p)>>2]|0;Ar(a,d);j=((j|0)==0?a:j)+328|0;c[(j&p)>>2]=c[(j&p)>>2]|1<<d;vs(a,f,-1)}f=c[(f&p)+20>>2]|0}while((f|0)!=0)}return}function Wt(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;d=c[((c[((c[(a&p)>>2]|0)&p)+16>>2]|0)+(b<<4)&p)+12>>2]|0;g=c[(a&p)+408>>2]|0;Ar(a,b);g=((g|0)==0?a:g)+328|0;c[(g&p)>>2]=c[(g&p)>>2]|1<<b;g=a+68|0;e=c[(g&p)>>2]|0;c[(g&p)>>2]=e+3;hv(a,b,e,0,0);f=(c[(a&p)+72>>2]|0)+1|0;g=c[(g&p)>>2]|0;d=c[(d&p)+16>>2]|0;if(d)do{iv(a,c[(d&p)+8>>2]|0,0,e,f,g);d=c[(d&p)>>2]|0}while((d|0)!=0);jv(a,b);return}function Xt(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){i=c[(e&p)+20>>2]|0;if((i|0)>0){f=c[(e&p)+16>>2]|0;e=0;while(1){g=e+1|0;if((c[(f+(e<<4)&p)+12>>2]|0)==(h|0)){g=e;break a}if((g|0)<(i|0))e=g;else break}}else g=0}else g=-1e6;while(0);e=c[(a&p)+408>>2]|0;Ar(a,g);e=((e|0)==0?a:e)+328|0;c[(e&p)>>2]=c[(e&p)>>2]|1<<g;e=a+68|0;f=c[(e&p)>>2]|0;c[(e&p)>>2]=f+3;if(!d)hv(a,g,f,c[(b&p)>>2]|0,28544);else hv(a,g,f,c[(d&p)>>2]|0,28536);iv(a,b,d,f,(c[(a&p)+72>>2]|0)+1|0,c[(e&p)>>2]|0);jv(a,g);return}function Yt(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0,h=0;f=((d|0)/2|0)+1|0;f=mh(b,f,((f|0)<0)<<31>>31)|0;b=d+-1|0;if(f){if((b|0)>0){e=0;do{g=a[(c+e&n)>>0]|0;h=a[(c+(e|1)&n)>>0]|0;a[(f+((e|0)/2|0)&n)>>0]=(0-(h>>>6&1)&9)+h&15|(0-(g>>>6&1)&9)+g<<4;e=e+2|0}while((e|0)<(b|0));b=(d&-2|0)/2|0}else b=0;a[(f+b&n)>>0]=0}return f|0}function Zt(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m+8|0;l=m;k=c[(b&p)+8>>2]|0;g=d+8|0;do if(!(c[(d&p)+4>>2]&1024)){g=c[(g&p)>>2]|0;d=ji(g,l)|0;if((d|0)!=0?!((d|0)==2&(e|0)!=0):0)if(!(Fc(g,29144,2)|0)){c[(h&p)>>2]=g;th(b,29152,h);break}else{_t(k,g,e,f);break}if(e){if((d|0)==2){d=0;g=-2147483648}else{d=l;d=dw(0,0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0)|0;g=G}e=l;c[(e&p)>>2]=d;c[(e&p)+4>>2]=g}d=mh(c[(k&p)>>2]|0,8,0)|0;if(d){e=l;h=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;g=d;b=g;a[(b&n)>>0]=h;a[(b&n)+1>>0]=h>>8;a[(b&n)+2>>0]=h>>16;a[(b&n)+3>>0]=h>>24;g=g+4|0;a[(g&n)>>0]=e;a[(g&n)+1>>0]=e>>8;a[(g&n)+2>>0]=e>>16;a[(g&n)+3>>0]=e>>24}xh(k,wh(k,26,0,f,0)|0,d,-13)}else{d=c[(g&p)>>2]|0;wh(k,25,(e|0)==0?d:0-d|0,f,0)|0}while(0);i=m;return}function _t(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,k=0,l=0,m=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;if(d){g=d;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;Tl(d,k,g-d&1073741823,1)|0;if(e)h[(k&q)>>3]=-+h[(k&q)>>3];g=mh(c[(b&p)>>2]|0,8,0)|0;if(g){d=k;m=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;e=g;k=e;a[(k&n)>>0]=m;a[(k&n)+1>>0]=m>>8;a[(k&n)+2>>0]=m>>16;a[(k&n)+3>>0]=m>>24;e=e+4|0;a[(e&n)>>0]=d;a[(e&n)+1>>0]=d>>8;a[(e&n)+2>>0]=d>>16;a[(e&n)+3>>0]=d>>24}xh(b,wh(b,133,0,f,0)|0,g,-12)}i=l;return}function $t(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+32|0;if((i|0)>=(j|0))fa();g=m;a:do if(!d)k=0;else while(1){f=c[(d&p)+4>>2]|0;if(!(f&4096)){k=d;break a}if(!(f&262144))d=d+12|0;else d=c[((c[(d&p)+20>>2]|0)&p)+4>>2]|0;d=c[(d&p)>>2]|0;if(!d){k=0;break}}while(0);b:do if(((a[(b&n)+23>>0]|0)!=0?(a[(k&n)>>0]|0)!=-97:0)?(c[(g&p)>>2]=0,c[(g&p)+4>>2]=0,c[(g&p)+8>>2]=0,c[(g&p)+12>>2]=0,c[(g&p)+16>>2]=0,c[(g&p)+20>>2]=0,f=g+20|0,a[(f&n)>>0]=2,c[(g&p)>>2]=78,c[(g&p)+4>>2]=79,c[(g&p)+24>>2]=0,rs(g,k)|0,(a[(f&n)>>0]|0)!=0):0){f=c[(b&p)+316>>2]|0;c[(e&p)>>2]=0;c:do if((f|0)!=0?(h=c[(f&p)>>2]|0,(h|0)>0):0){d=h;f=c[(f&p)+4>>2]|0;while(1){if((a[(f&n)+13>>0]&4)!=0?(Cu(c[(f&p)>>2]|0,k,-1)|0)==0:0)break;d=d+-1|0;if((d|0)<=0)break c;else f=f+20|0}f=c[(f&p)+16>>2]|0;break b}while(0);d=b+72|0;f=(c[(d&p)>>2]|0)+1|0;c[(d&p)>>2]=f;Gt(b,k,f,1)}else l=18;while(0);do if((l|0)==18){d=b+19|0;f=a[(d&n)>>0]|0;if(!(f<<24>>24)){d=b+72|0;f=(c[(d&p)>>2]|0)+1|0;c[(d&p)>>2]=f}else{f=f+-1<<24>>24;a[(d&n)>>0]=f;f=c[(b+((f&255)<<2)&p)+24>>2]|0}d=is(b,k,f)|0;if((d|0)==(f|0)){c[(e&p)>>2]=f;break}else{_r(b,f);c[(e&p)>>2]=0;f=d;break}}while(0);i=m;return f|0}function au(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,l=0;l=Ou(b,d,e)|0;k=Bu(d,kv(e)|0)|0;e=b+8|0;d=c[(e&p)>>2]|0;xh(d,wh(d,f,h,i,g)|0,l,-4);e=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0;if(d)a[(d+(((c[(e&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=k&255|j;return}function bu(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=b+100|0;c[(d&p)>>2]=(c[(d&p)>>2]|0)+-1;g=b+19|0;j=0;k=b+116|0;while(1){h=k+12|0;i=c[(h&p)>>2]|0;if((i|0)!=0?(c[(k&p)+8>>2]|0)>(c[(d&p)>>2]|0):0){e=k+6|0;if(a[(e&n)>>0]|0){f=a[(g&n)>>0]|0;if((f&255)<8){a[(g&n)>>0]=f+1<<24>>24;c[(b+((f&255)<<2)&p)+24>>2]=i}a[(e&n)>>0]=0}c[(h&p)>>2]=0}j=j+1|0;if((j|0)==10)break;else k=k+20|0}return}function cu(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;j=c[(d&p)>>2]|0;a:do if(e){b:while(1){g=c[(e&p)+4>>2]|0;if(g&512){e=0;k=21;break a}switch(a[(e&n)>>0]|0){case 38:case -98:{e=c[(e&p)+12>>2]|0;break}case -97:{if((a[(e&n)+38>>0]|0)==95){k=7;break b}else k=8;break}case 95:{k=7;break b}case 62:case -102:case -100:{k=8;break}default:k=11}if((k|0)==8){f=c[(e&p)+44>>2]|0;if(!f)k=11;else{k=9;break}}c:do if((k|0)==11){k=0;if(!(g&256)){e=0;k=21;break a}f=c[(e&p)+12>>2]|0;if((f|0)!=0?(c[(f&p)+4>>2]&256|0)!=0:0){e=f;continue b}h=c[(e&p)+16>>2]|0;f=c[(e&p)+20>>2]|0;if((f|0)!=0&(g&2048|0)==0?(i=c[(f&p)>>2]|0,(i|0)>0):0){f=c[(f&p)+4>>2]|0;g=0;while(1){e=c[(f+(g*20|0)&p)>>2]|0;g=g+1|0;if(c[(e&p)+4>>2]&256)break c;if((g|0)>=(i|0)){e=h;break}}}else e=h}while(0);if(!e){e=0;k=21;break a}}if((k|0)==7)e=ws(d,a[(j&n)+62>>0]|0,0,c[(e&p)+8>>2]|0)|0;else if((k|0)==9){e=b[(e&o)+32>>1]|0;if(e<<16>>16<=-1){e=0;k=21;break}e=Yn(j,a[(j&n)+62>>0]|0,c[((c[(f&p)+4>>2]|0)+((e<<16>>16)*24|0)&p)+16>>2]|0,0)|0}if(e)if(!(ws(d,a[((c[(d&p)>>2]|0)&n)+62>>0]|0,e,c[(e&p)>>2]|0)|0))e=0;else k=21;else{e=0;k=21}}else{e=0;k=21}while(0);return e|0}function du(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();t=u+4|0;s=u;c[(t&p)>>2]=0;c[(s&p)>>2]=0;if((((h|0)!=0?(a[(h&n)>>0]|0)==-102:0)?(m=c[(h&p)+44>>2]|0,(m|0)!=0):0)?(a[(m&n)+44>>0]&16)!=0:0){h=m+60|0;while(1){h=c[(h&p)>>2]|0;if((c[(h&p)>>2]|0)==(d|0))break;else h=h+24|0}l=c[(h&p)+8>>2]|0;k=(c[(l&p)>>2]|0)+72|0;if((c[(k&p)>>2]|0)!=0?(r=f+24|0,q=kh(d,c[(r&p)>>2]|0)|0,(q|0)!=0):0){m=a[(q&n)>>0]|0;if(m<<24>>24){h=q;do{a[(h&n)>>0]=a[(m&255&n)+9328>>0]|0;h=h+1|0;m=a[(h&n)>>0]|0}while(m<<24>>24!=0)}g=tc[c[(k&p)>>2]&31](l,g,q,t,s)|0;mg(d,q);if(g){h=c[(r&p)>>2]|0;if(!h){h=37;l=0}else{l=h;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;h=(l-h&1073741823)+37|0;l=0}k=mh(d,h,l)|0;if(k){fw(k|0,0,h|0)|0;m=k+0|0;l=f+0|0;h=m+36|0;do{c[(m&p)>>2]=c[(l&p)>>2];m=m+4|0;l=l+4|0}while((m|0)<(h|0));m=k+36|0;c[(k&p)+24>>2]=m;h=c[(r&p)>>2]|0;if(!h)l=1;else{l=h;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=(l-h&1073741823)+1|0}kw(m|0,h|0,l|0)|0;c[(k&p)+12>>2]=c[(t&p)>>2];c[(k&p)+4>>2]=c[(s&p)>>2];s=k+2|0;b[(s&o)>>1]=e[(s&o)>>1]|16}else k=f}else k=f}else k=f}else k=f;i=u;return k|0}function eu(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=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;B=i;i=i+80|0;if((i|0)>=(j|0))fa();z=B;x=B+72|0;q=B+52|0;y=B+48|0;o=B+28|0;A=Oq(b)|0;a:do if(!A)g=0;else{g=b+100|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=d+4|0;if(!(c[(g&p)>>2]&32)){s=Oq(b)|0;m=b+80|0;h=c[(m&p)>>2]|0;c[(m&p)>>2]=h+1;h=wh(s,44,h,0,0)|0}else h=-1;if((a[(b&n)+450>>0]|0)==2){l=c[(b&p)>>2]|0;m=(a[(d&n)>>0]|0)==75?29104:29112;s=c[(b&p)+468>>2]|0;c[(z&p)>>2]=(h|0)>-1?10360:29088;c[(z&p)+4>>2]=m;c[(z&p)+8>>2]=s;l=uh(l,29056,z)|0;xh(A,wh(A,157,c[(b&p)+464>>2]|0,0,0)|0,l,-1);l=d}else l=d;m=a[(l&n)>>0]|0;b:do if(m<<24>>24==75){o=d+12|0;k=kv(c[(o&p)>>2]|0)|0;a[(x&n)>>0]=k;u=b+68|0;v=c[(u&p)>>2]|0;c[(u&p)>>2]=v+1;u=d+28|0;c[(u&p)>>2]=v;t=(f|0)!=0;v=wh(A,57,v,t&1^1,0)|0;if(t)w=0;else w=Rs(c[(b&p)>>2]|0,1,1)|0;m=d+20|0;do if(!(c[(g&p)>>2]&2048)){m=c[(m&p)>>2]|0;if(m){if(!(k<<24>>24))a[(x&n)>>0]=65;if(w)c[(w&p)+20>>2]=cu(b,c[(o&p)>>2]|0)|0;f=b+19|0;k=a[(f&n)>>0]|0;if(k<<24>>24){s=k+-1<<24>>24;a[(f&n)>>0]=s;l=c[(b+((s&255)<<2)&p)+24>>2]|0;if(!(s<<24>>24))r=24;else{s=k+-2<<24>>24;a[(f&n)>>0]=s;s=c[(b+((s&255)<<2)&p)+24>>2]|0}}else{r=b+72|0;l=(c[(r&p)>>2]|0)+1|0;c[(r&p)>>2]=l;r=24}if((r|0)==24){r=b+72|0;s=(c[(r&p)>>2]|0)+1|0;c[(r&p)>>2]=s}if(t)wh(A,28,0,s,0)|0;o=c[(m&p)>>2]|0;if((o|0)>0){k=z+20|0;g=z+4|0;r=z+24|0;q=A+32|0;f=c[(m&p)+4>>2]|0;while(1){m=c[(f&p)>>2]|0;do if((h|0)>-1){c[(z&p)>>2]=0;c[(z&p)+4>>2]=0;c[(z&p)+8>>2]=0;c[(z&p)+12>>2]=0;c[(z&p)+16>>2]=0;c[(z&p)+20>>2]=0;a[(k&n)>>0]=1;c[(z&p)>>2]=78;c[(g&p)>>2]=79;c[(r&p)>>2]=0;rs(z,m)|0;if(a[(k&n)>>0]|0)break;zh(A,h);h=-1}while(0);do if(t)if(!(Ms(m,y)|0)){m=is(b,m,l)|0;wh(A,38,m,(c[(q&p)>>2]|0)+2|0,0)|0;wh(A,75,c[(u&p)>>2]|0,s,m)|0;break}else{wh(A,84,c[(u&p)>>2]|0,s,c[(y&p)>>2]|0)|0;break}else{m=is(b,m,l)|0;xh(A,wh(A,49,m,1,s)|0,x,1);dt(b,m,1);wh(A,110,c[(u&p)>>2]|0,s,0)|0}while(0);o=o+-1|0;if((o|0)<=0)break;else f=f+20|0}}_r(b,l);_r(b,s)}if(!w){k=h;g=0;break b}}else{l=c[(m&p)>>2]|0;s=c[(u&p)>>2]|0;a[(q&n)>>0]=11;c[(q&p)+4>>2]=s;c[(q&p)+8>>2]=0;c[(q&p)+12>>2]=0;a[(q&n)+1>>0]=k;c[(l&p)+8>>2]=0;if(!(ir(b,l,q)|0)){c[(w&p)+20>>2]=Ou(b,c[(o&p)>>2]|0,c[(c[((c[(l&p)>>2]|0)&p)+4>>2]&p)>>2]|0)|0;break}if(!w){g=0;break a}s=(c[(w&p)>>2]|0)+-1|0;c[(w&p)>>2]=s;if(s){g=0;break a}Wc(w);g=0;break a}while(0);xh(A,v,w,-6);k=h;g=0}else{k=c[(d&p)+20>>2]|0;l=b+72|0;g=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=g;a[(o&n)>>0]=0;l=o+4|0;c[(l&p)>>2]=g;a[(o&n)+1>>0]=0;f=o+8|0;c[(f&p)>>2]=0;c[(o&p)+12>>2]=0;if(m<<24>>24==119){a[(o&n)>>0]=10;c[(f&p)>>2]=g;wh(A,28,0,g,0)|0}else{a[(o&n)>>0]=3;wh(A,25,0,g,0)|0}s=k+60|0;Gk(c[(b&p)>>2]|0,c[(s&p)>>2]|0);c[(s&p)>>2]=Zq(b,132,0,0,20624)|0;c[(k&p)+8>>2]=0;if(ir(b,k,o)|0){g=0;break a}k=h;g=c[(l&p)>>2]|0}while(0);if(e)lv(A,c[(d&p)+28>>2]|0,e);if((k|0)>-1){h=c[(A&p)+32>>2]|0;if(h>>>0>k>>>0)c[((c[(A&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=h;c[((c[(A&p)+24>>2]|0)&p)+88>>2]=h+-1}bu(b)}while(0);i=B;return g|0}function fu(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+16|0;if((i|0)>=(j|0))fa();m=A+4|0;x=A+8|0;v=A;c[(m&p)>>2]=0;z=c[(b&p)+8>>2]|0;h=(f|0)==(g|0);l=mv(b,e,3,h?0:m)|0;a[(x&n)>>0]=nv(e)|0;o=b+100|0;c[(o&p)>>2]=(c[(o&p)>>2]|0)+1;o=b+19|0;k=a[(o&n)>>0]|0;if(!(k<<24>>24)){t=b+72|0;y=(c[(t&p)>>2]|0)+1|0;c[(t&p)>>2]=y}else{y=k+-1<<24>>24;a[(o&n)>>0]=y;y=c[(b+((y&255)<<2)&p)+24>>2]|0}k=e+12|0;Rq(b,c[(k&p)>>2]|0,y);do if((l|0)==5){t=c[(e&p)+20>>2]|0;r=cu(b,c[(k&p)>>2]|0)|0;u=xs(z)|0;s=(g|0)!=(f|0);if(s){k=a[(o&n)>>0]|0;if(!(k<<24>>24)){q=b+72|0;k=(c[(q&p)>>2]|0)+1|0;c[(q&p)>>2]=k}else{k=k+-1<<24>>24;a[(o&n)>>0]=k;k=c[(b+((k&255)<<2)&p)+24>>2]|0}wh(z,85,y,y,k)|0;q=k}else q=0;if((c[(t&p)>>2]|0)>0){o=t+4|0;m=(q|0)==0;l=z+4|0;k=z+32|0;h=0;do{e=$t(b,c[((c[(o&p)>>2]|0)+(h*20|0)&p)>>2]|0,v)|0;if(!m?(Uu(c[((c[(o&p)>>2]|0)+(h*20|0)&p)>>2]|0)|0)!=0:0)wh(z,85,q,e,q)|0;if((h|0)<((c[(t&p)>>2]|0)+-1|0)|s){xh(z,wh(z,79,y,u,e)|0,r,-4);e=c[(l&p)>>2]|0;if(e)a[(e+(((c[(k&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=a[(x&n)>>0]|0}else{xh(z,wh(z,78,y,f,e)|0,r,-4);e=c[(l&p)>>2]|0;if(e)a[(e+(((c[(k&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=d[(x&n)>>0]|0|16}_r(b,c[(v&p)>>2]|0);h=h+1|0}while((h|0)<(c[(t&p)>>2]|0))}if(q){wh(z,76,q,g,0)|0;wh(z,16,0,f,0)|0}k=c[(z&p)+24>>2]|0;h=~u;if((u|0)<0?(w=c[(k&p)+112>>2]|0,(w|0)!=0):0)c[(w+(h<<2)&p)>>2]=c[(z&p)+32>>2];c[(k&p)+88>>2]=(c[(z&p)+32>>2]|0)+-1;_r(b,q)}else{do if(Uu(c[(k&p)>>2]|0)|0){if(h){wh(z,76,y,f,0)|0;break}k=wh(z,77,y,0,0)|0;wh(z,108,c[(e&p)+28>>2]|0,f,0)|0;wh(z,16,0,g,0)|0;h=c[(z&p)+32>>2]|0;if(h>>>0>k>>>0)c[((c[(z&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=h;c[((c[(z&p)+24>>2]|0)&p)+88>>2]=h+-1}while(0);if((l|0)==1){wh(z,38,y,f,0)|0;wh(z,70,c[(e&p)+28>>2]|0,f,y)|0;break}xh(z,wh(z,48,y,1,0)|0,x,1);h=c[(e&p)+28>>2]|0;if(!(c[(m&p)>>2]|0)){xh(z,wh(z,68,h,f,y)|0,1,-14);break}k=wh(z,69,h,0,y)|0;xh(z,k,1,-14);wh(z,76,c[(m&p)>>2]|0,g,0)|0;wh(z,16,0,f,0)|0;h=c[(z&p)+32>>2]|0;if(h>>>0>k>>>0)c[((c[(z&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=h;c[((c[(z&p)+24>>2]|0)&p)+88>>2]=h+-1}while(0);_r(b,y);bu(b);i=A;return}function gu(f,g){f=f|0;g=g|0;var k=0,l=0,m=0,r=0,s=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,G=0;G=i;i=i+48|0;if((i|0)>=(j|0))fa();F=G;D=G+28|0;k=c[(f&p)+24>>2]|0;E=c[(k&p)>>2]|0;B=g+4|0;r=c[(B&p)>>2]|0;a:do if(!(r&4)){c[(B&p)>>2]=r|4;switch(d[(g&n)>>0]|0){case 122:{l=c[(g&p)+16>>2]|0;if((a[(l&n)>>0]|0)==27){r=l;l=g;m=0}else{r=c[(l&p)+16>>2]|0;m=c[((c[(g&p)+12>>2]|0)&p)+8>>2]|0}k=ov(E,m,c[((c[(l&p)+12>>2]|0)&p)+8>>2]|0,c[(r&p)+8>>2]|0,k,g)|0;break a}case 153:{A=g+20|0;x=c[(A&p)>>2]|0;if(!x)m=0;else m=c[(x&p)>>2]|0;r=a[((c[(E&p)>>2]|0)&n)+62>>0]|0;C=k+28|0;if(b[(C&o)>>1]&16){c[(F&p)>>2]=27200;th(E,27512,F)}y=c[(g&p)+8>>2]|0;if(!y)v=0;else{s=y;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;v=s-y&1073741823}l=Sh(c[(E&p)>>2]|0,y,v,m,r,0)|0;do if(!l){if(Sh(c[(E&p)>>2]|0,y,v,-2,r,0)|0){c[(F&p)>>2]=v;c[(F&p)+4>>2]=y;th(E,27392,F);y=k+24|0;c[(y&p)>>2]=(c[(y&p)>>2]|0)+1;break}if(!(a[((c[(E&p)>>2]|0)&n)+145>>0]|0)){c[(F&p)>>2]=v;c[(F&p)+4>>2]=y;th(E,27368,F);y=k+24|0;c[(y&p)>>2]=(c[(y&p)>>2]|0)+1}}else{u=(c[(l&p)+12>>2]|0)==0;z=l+2|0;do if(b[(z&o)>>1]&1024){c[(B&p)>>2]=c[(B&p)>>2]|266240;if((m|0)!=2){c[(g&p)+28>>2]=(a[(c[(l&p)+24>>2]&n)>>0]|0)==117?8388608:125829120;break}s=c[((c[(x&p)+4>>2]|0)&p)+20>>2]|0;h[(F&q)>>3]=-1.0;if((a[(s&n)>>0]|0)==-123){r=c[(s&p)+8>>2]|0;if(!r)s=0;else{s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-r&1073741823}Tl(r,F,s,1)|0;t=+h[(F&q)>>3];if(!(t>1.0)){s=~~(t*134217728.0);c[(g&p)+28>>2]=s;if((s|0)>=0)break}else w=22}else w=22;if((w|0)==22)c[(g&p)+28>>2]=-1;th(E,27216,F);w=k+24|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+1}while(0);s=l+24|0;r=Sq(E,31,0,c[(s&p)>>2]|0,0)|0;if(!r){if(b[(z&o)>>1]&2048)c[(B&p)>>2]=c[(B&p)>>2]|524288;if(!u)break;s=b[(C&o)>>1]|0;if(!(s&1)){c[(F&p)>>2]=v;c[(F&p)+4>>2]=y;th(E,27328,F);y=k+24|0;c[(y&p)>>2]=(c[(y&p)>>2]|0)+1;break}b[(C&o)>>1]=s&65534;lu(f,x)|0;a[(g&n)>>0]=-101;r=g+38|0;a[(r&n)>>0]=0;b:do if(k){m=F+24|0;l=D+4|0;s=D+8|0;while(1){y=c[(k&p)+4>>2]|0;c[(F&p)>>2]=0;c[(F&p)+4>>2]=0;c[(F&p)+8>>2]=0;c[(F&p)+12>>2]=0;c[(F&p)+16>>2]=0;c[(F&p)+20>>2]=0;c[(F&p)>>2]=87;c[(m&p)>>2]=D;c[(D&p)>>2]=y;c[(l&p)>>2]=0;c[(s&p)>>2]=0;lu(F,c[(A&p)>>2]|0)|0;if((c[(l&p)>>2]|0)>0)break;if(!(c[(s&p)>>2]|0))break;a[(r&n)>>0]=(a[(r&n)>>0]|0)+1<<24>>24;k=c[(k&p)+16>>2]|0;if(!k)break b}y=k+28|0;b[(y&o)>>1]=e[(z&o)>>1]&4096|e[(y&o)>>1]|2}while(0);b[(C&o)>>1]=e[(C&o)>>1]|1;k=1;break a}else if((r|0)==1){c[(F&p)>>2]=c[(s&p)>>2];th(E,27288,F);y=k+24|0;c[(y&p)>>2]=(c[(y&p)>>2]|0)+1}a[(g&n)>>0]=101;k=1;break a}while(0);lu(f,x)|0;k=1;break a}case 135:{l=k+28|0;k=b[(l&o)>>1]|0;if(k&4){c[(F&p)>>2]=27456;th(E,27472,F);k=b[(l&o)>>1]|0}if(k&16){c[(F&p)>>2]=27456;th(E,27512,F)}break}case 27:{k=ov(E,0,0,c[(g&p)+8>>2]|0,k,g)|0;break a}case 75:case 20:case 119:{if(r&2048){s=k+20|0;l=c[(s&p)>>2]|0;m=k+28|0;r=b[(m&o)>>1]|0;if(r&4){c[(F&p)>>2]=27440;th(E,27472,F);r=b[(m&o)>>1]|0}if(r&16){c[(F&p)>>2]=27440;th(E,27512,F)}ku(f,c[(g&p)+20>>2]|0)|0;if((l|0)!=(c[(s&p)>>2]|0))c[(B&p)>>2]=c[(B&p)>>2]|32}break}default:{}}if(!(c[(E&p)+64>>2]|0))k=(a[((c[(E&p)>>2]|0)&n)+65>>0]|0)!=0?2:0;else k=2}else k=1;while(0);i=G;return k|0}function hu(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=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;P=i;i=i+80|0;if((i|0)>=(j|0))fa();O=P;M=P+64|0;H=P+32|0;m=b[(f&o)+6>>1]|0;h=m&65535;a:do if(!(h&2)){G=c[(d&p)+24>>2]|0;N=c[(d&p)+12>>2]|0;d=c[(N&p)>>2]|0;if(!(h&16)){Ds(N,f,G);if(c[(N&p)+64>>2]|0){g=2;break}g=(a[(d&n)+65>>0]|0)!=0?2:1;break}I=f+52|0;g=(c[(I&p)>>2]|0)!=0;J=(f|0)==0;b:do if(!J){h=H+28|0;r=H+4|0;D=H+16|0;E=H+8|0;z=d+65|0;y=N+492|0;x=(G|0)==0;w=O+4|0;v=O+12|0;u=O+24|0;t=N+64|0;A=f;c:while(1){B=A+6|0;b[(B&o)>>1]=m&65535|2;c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(H&p)+8>>2]=0;c[(H&p)+12>>2]=0;c[(H&p)+16>>2]=0;c[(H&p)+20>>2]=0;c[(H&p)+24>>2]=0;c[(H&p)+28>>2]=0;c[(H&p)>>2]=N;if(ls(H,c[(A&p)+60>>2]|0)|0){g=2;break a}if(ls(H,c[(A&p)+64>>2]|0)|0){g=2;break a}m=c[(A&p)+32>>2]|0;if(b[(B&o)>>1]&8192){C=A+48|0;c[((c[(m&p)+28>>2]|0)&p)+48>>2]=c[(C&p)>>2];c[(C&p)>>2]=0}C=A+32|0;if((c[(m&p)>>2]|0)>0){s=0;do{k=c[(m+(s*72|0)&p)+28>>2]|0;if(k){d=c[(y&p)>>2]|0;if(x)q=0;else{q=0;l=G;do{q=(c[(l&p)+20>>2]|0)+q|0;l=c[(l&p)+16>>2]|0}while((l|0)!=0)}l=c[(m+(s*72|0)&p)+16>>2]|0;if(l)c[(y&p)>>2]=l;c[(O&p)>>2]=0;c[(O&p)+4>>2]=0;c[(O&p)+8>>2]=0;c[(O&p)+12>>2]=0;c[(O&p)+16>>2]=0;c[(O&p)+20>>2]=0;c[(O&p)>>2]=82;c[(w&p)>>2]=83;c[(v&p)>>2]=N;c[(u&p)>>2]=G;ku(O,k)|0;c[(y&p)>>2]=d;if(c[(t&p)>>2]|0){g=2;break a}if(a[(z&n)>>0]|0){g=2;break a}if(!x){l=G;do{q=q-(c[(l&p)+20>>2]|0)|0;l=c[(l&p)+16>>2]|0}while((l|0)!=0)}m=m+(s*72|0)+45|0;a[(m&n)>>0]=a[(m&n)>>0]&-3|((q|0)!=0&1)<<1&255;m=c[(C&p)>>2]|0}s=s+1|0}while((s|0)<(c[(m&p)>>2]|0))}b[(h&o)>>1]=1;c[(r&p)>>2]=m;c[(D&p)>>2]=G;q=c[(A&p)>>2]|0;if((c[(q&p)>>2]|0)>0){m=q+4|0;l=0;do{if(ls(H,c[((c[(m&p)>>2]|0)+(l*20|0)&p)>>2]|0)|0){g=2;break a}l=l+1|0}while((l|0)<(c[(q&p)>>2]|0))}k=c[(A&p)+40>>2]|0;m=(k|0)!=0;q=b[(h&o)>>1]|0;if(!m?(F=q&65535,(F&2|0)==0):0)b[(h&o)>>1]=F&65534;else b[(B&o)>>1]=q&4096|e[(B&o)>>1]|4;q=c[(A&p)+44>>2]|0;if(!((q|0)==0|m)){K=32;break}c[(E&p)>>2]=c[(A&p)>>2];if(ls(H,q)|0){g=2;break a}if(ls(H,c[(A&p)+36>>2]|0)|0){g=2;break a}c[(D&p)>>2]=0;b[(h&o)>>1]=e[(h&o)>>1]|1;if(b[(B&o)>>1]&8192){C=(c[((c[(C&p)>>2]|0)&p)+28>>2]|0)+48|0;c[(A&p)+48>>2]=c[(C&p)>>2];c[(C&p)>>2]=0}if(!g?(qv(H,A,c[(A&p)+48>>2]|0,26880)|0)!=0:0){g=2;break a}if(a[(z&n)>>0]|0){g=2;break a}do if(m){if(qv(H,A,k,26888)|0){g=2;break a}if(a[(z&n)>>0]|0){g=2;break a}l=c[(k&p)>>2]|0;if((l|0)<=0)break;q=0;m=c[(k&p)+4>>2]|0;while(1){if(c[((c[(m&p)>>2]|0)&p)+4>>2]&2){K=46;break c}q=q+1|0;if((q|0)>=(l|0))break;else m=m+20|0}}while(0);l=c[(A&p)+52>>2]|0;if(!l)break b;A=l;m=b[(l&o)+6>>1]|0}if((K|0)==32){th(N,26832,O);g=2;break a}else if((K|0)==46){th(N,26896,O);g=2;break a}}while(0);if(g?(L=c[(f&p)+48>>2]|0,(L|0)!=0):0){F=c[(N&p)>>2]|0;h=c[(L&p)>>2]|0;if((h|0)>(c[(F&p)+96>>2]|0)){th(N,26960,O);g=2;break}if((h|0)>0){d=L+4|0;g=0;do{h=(c[(d&p)>>2]|0)+(g*20|0)+13|0;a[(h&n)>>0]=a[(h&n)>>0]&-2;g=g+1|0;h=c[(L&p)>>2]|0}while((g|0)<(h|0))}c[(f&p)+56>>2]=0;g=c[(I&p)>>2]|0;if(!g)if(J)d=L+4|0;else K=60;else while(1){c[(g&p)+56>>2]=f;f=c[(g&p)+52>>2]|0;if(!f){f=g;K=60;break}else{E=g;g=f;f=E}}d:do if((K|0)==60){d=L+4|0;x=F+65|0;y=O+4|0;z=O+8|0;A=O+28|0;B=O+24|0;C=O+4|0;w=f;e:while(1){v=c[(w&p)>>2]|0;if((h|0)<=0)break d;t=w+32|0;g=0;s=0;u=c[(d&p)>>2]|0;while(1){c[(M&p)>>2]=-1;r=u+13|0;do if(!(a[(r&n)>>0]&1)){h=c[(u&p)>>2]|0;f:do if(!h)h=0;else while(1){f=c[(h&p)+4>>2]|0;if(!(f&4096))break f;if(!(f&262144))h=h+12|0;else h=c[((c[(h&p)+20>>2]|0)&p)+4>>2]|0;h=c[(h&p)>>2]|0;if(!h){h=0;break}}while(0);if(!(Ms(h,M)|0)){f=rv(v,h)|0;c[(M&p)>>2]=f;if(!f){q=Mr(F,h,0,0)|0;if(!(a[(x&n)>>0]|0)){k=c[(w&p)>>2]|0;c[(O&p)>>2]=0;c[(O&p)+4>>2]=0;c[(O&p)+8>>2]=0;c[(O&p)+12>>2]=0;c[(O&p)+16>>2]=0;c[(O&p)+20>>2]=0;c[(O&p)+24>>2]=0;c[(O&p)+28>>2]=0;c[(O&p)>>2]=N;c[(y&p)>>2]=c[(t&p)>>2];c[(z&p)>>2]=k;b[(A&o)>>1]=1;c[(B&p)>>2]=0;D=(c[(N&p)>>2]|0)+68|0;f=a[(D&n)>>0]|0;a[(D&n)>>0]=1;E=ls(O,q)|0;a[(D&n)>>0]=f;g:do if(!E){m=k+4|0;l=c[(k&p)>>2]|0;k=0;while(1){if((k|0)>=(l|0)){f=0;break g}f=k+1|0;if((Cu(c[((c[(m&p)>>2]|0)+(k*20|0)&p)>>2]|0,q,-1)|0)<2)break;else k=f}}else f=0;while(0);c[(M&p)>>2]=f}else f=0;Gk(F,q)}if((f|0)<=0){f=1;break}}else{k=c[(M&p)>>2]|0;f=c[(v&p)>>2]|0;if((k|0)<1|(k|0)>(f|0))break e;else f=k}c[(O&p)>>2]=0;c[(C&p)>>2]=0;k=nr(F,132,O,0)|0;if(!k){g=2;break a}l=k+4|0;c[(l&p)>>2]=c[(l&p)>>2]|1024;c[(k&p)+8>>2]=f;l=c[(u&p)>>2]|0;if((l|0)==(h|0))c[(u&p)>>2]=k;else c[(l&p)+12>>2]=k;Gk(F,h);b[(u&o)+16>>1]=f;a[(r&n)>>0]=a[(r&n)>>0]|1;f=s}else f=s;while(0);g=g+1|0;h=c[(L&p)>>2]|0;if((g|0)>=(h|0))break;else{s=f;u=u+20|0}}w=c[(w&p)+56>>2]|0;if(!((w|0)!=0&(f|0)!=0))break d}c[(O&p)>>2]=g+1;c[(O&p)+4>>2]=26880;c[(O&p)+8>>2]=f;th(N,27064,O);g=2;break a}while(0);f=0;while(1){if((f|0)>=(h|0)){g=1;break a}g=f+1|0;if(!(a[((c[(d&p)>>2]|0)+(f*20|0)&n)+13>>0]&1))break;else f=g}c[(O&p)>>2]=g;th(N,27e3,O);g=2}else g=1}else g=1;while(0);i=P;return g|0}function iu(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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=i;i=i+16|0;if((i|0)>=(j|0))fa();z=C;A=c[(e&p)>>2]|0;a:do if(f){v=c[(f&p)>>2]|0;e=v*24|0;k=mh(A,e,0)|0;if(k)fw(k|0,0,e|0)|0;b[(g&o)>>1]=v;c[(h&p)>>2]=k;if((v|0)>0){t=f+4|0;w=A+65|0;e=0;u=k;while(1){r=c[(t&p)>>2]|0;f=c[(r+(e*20|0)&p)>>2]|0;b:do if(!f)f=0;else while(1){l=c[(f&p)+4>>2]|0;if(!(l&4096))break b;if(!(l&262144))f=f+12|0;else f=c[((c[(f&p)+20>>2]|0)&p)+4>>2]|0;f=c[(f&p)>>2]|0;if(!f){f=0;break}}while(0);l=c[(r+(e*20|0)&p)+4>>2]|0;do if(!l){while(1){l=a[(f&n)>>0]|0;if(l<<24>>24==27){B=24;break}else if(l<<24>>24==-102){y=f;B=18;break}else if(l<<24>>24!=122)break;f=c[(f&p)+16>>2]|0}if((B|0)==24){B=0;c[(z&p)>>2]=c[(f&p)+8>>2];f=uh(A,10344,z)|0;break}if((B|0)==18?(B=0,x=c[(y&p)+44>>2]|0,(x|0)!=0):0){f=b[(y&o)+32>>1]|0;if(f<<16>>16<0)f=b[(x&o)+36>>1]|0;else f=f<<16>>16;if((f|0)>-1)f=c[((c[(x&p)+4>>2]|0)+(f*24|0)&p)>>2]|0;else f=20456;c[(z&p)>>2]=f;f=uh(A,10344,z)|0;break}c[(z&p)>>2]=c[(r+(e*20|0)&p)+8>>2];f=uh(A,10344,z)|0}else f=kh(A,l)|0;while(0);if(a[(w&n)>>0]|0)break;if(!f){q=0;f=0}else{l=f;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;q=l-f&1073741823}c:do if((e|0)>0){l=0;r=0;s=q;while(1){if(!(dd(c[(k+(r*24|0)&p)>>2]|0,f)|0)){m=s;while(1){q=m+-1|0;if((q|0)<=1)break;if(((d[(f+q&n)>>0]|0)+-48|0)>>>0<10)m=q;else break}if((m|0)>0)m=(a[(f+q&n)>>0]|0)==58?q:s;else m=s;a[(f+m&n)>>0]=0;l=l+1|0;c[(z&p)>>2]=f;c[(z&p)+4>>2]=l;q=uh(A,26824,z)|0;mg(A,f);if(!q){f=0;break c}else{r=-1;f=q}}else m=s;r=r+1|0;if((r|0)>=(e|0))break;else s=m}}while(0);c[(u&p)>>2]=f;e=e+1|0;if((e|0)<(v|0))u=u+24|0;else{f=w;break a}}mg(A,f);f=w}else B=6}else{b[(g&o)>>1]=0;c[(h&p)>>2]=0;k=0;B=6}while(0);if((B|0)==6){f=A+65|0;e=0}if(a[(f&n)>>0]|0){if((e|0)>0){f=0;do{mg(A,c[(k+(f*24|0)&p)>>2]|0);f=f+1|0}while((f|0)!=(e|0))}mg(A,k);c[(h&p)>>2]=0;b[(g&o)>>1]=0}i=C;return}function ju(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();t=u;s=c[(e&p)>>2]|0;if(!(a[(s&n)+65>>0]|0)){c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;c[(t&p)+8>>2]=0;c[(t&p)+12>>2]=0;c[(t&p)+16>>2]=0;c[(t&p)+20>>2]=0;c[(t&p)+24>>2]=0;c[(t&p)+28>>2]=0;c[(t&p)+4>>2]=c[(g&p)+32>>2];m=c[((c[(g&p)>>2]|0)&p)+4>>2]|0;l=f+38|0;if((b[(l&o)>>1]|0)>0){g=0;h=0;q=0;r=c[(f&p)+4>>2]|0;while(1){k=c[(m+(q*20|0)&p)>>2]|0;v=r+22|0;c[(r&p)+12>>2]=kh(s,yu(t,k,v)|0)|0;g=jw(d[(v&n)>>0]|0,0,g|0,h|0)|0;h=G;v=kv(k)|0;a[(r&n)+21>>0]=v<<24>>24==0?65:v;k=cu(e,k)|0;if(k)c[(r&p)+16>>2]=kh(s,c[(k&p)>>2]|0)|0;q=q+1|0;if((q|0)>=(b[(l&o)>>1]|0))break;else r=r+24|0}h=iw(g|0,h|0,2)|0;g=G}else{h=0;g=0}b[(f&o)+42>>1]=fs(h,g)|0}i=u;return}function ku(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;do if(!b)d=0;else{g=a+4|0;e=c[(g&p)>>2]|0;if((e|0)==0?(c[(a&p)+8>>2]|0)==0:0){d=0;break}j=a+16|0;c[(j&p)>>2]=(c[(j&p)>>2]|0)+1;h=a+8|0;a:while(1){if((e|0)!=0?(d=rc[e&127](a,b)|0,(d|0)!=0):0){k=24;break}if(lu(a,c[(b&p)>>2]|0)|0){k=19;break}if(rs(a,c[(b&p)+36>>2]|0)|0){k=19;break}if(lu(a,c[(b&p)+40>>2]|0)|0){k=19;break}if(rs(a,c[(b&p)+44>>2]|0)|0){k=19;break}if(lu(a,c[(b&p)+48>>2]|0)|0){k=19;break}if(rs(a,c[(b&p)+60>>2]|0)|0){k=19;break}if(rs(a,c[(b&p)+64>>2]|0)|0){k=19;break}e=c[(b&p)+32>>2]|0;if((e|0)!=0?(i=c[(e&p)>>2]|0,(i|0)>0):0){f=i;e=e+8|0;while(1){if(ku(a,c[(e&p)+20>>2]|0)|0){k=19;break a}f=f+-1|0;if((f|0)<=0)break;else e=e+72|0}}e=c[(h&p)>>2]|0;if(e)jc[e&15](a,b);b=c[(b&p)+52>>2]|0;if(!b){d=0;break}e=c[(g&p)>>2]|0}if((k|0)==19){c[(j&p)>>2]=(c[(j&p)>>2]|0)+-1;d=2;break}else if((k|0)==24)d=d&2;c[(j&p)>>2]=(c[(j&p)>>2]|0)+-1}while(0);return d|0}function lu(a,b){a=a|0;b=b|0;var d=0;a:do if((b|0)!=0?(d=c[(b&p)>>2]|0,(d|0)>0):0){b=c[(b&p)+4>>2]|0;while(1){if(rs(a,c[(b&p)>>2]|0)|0){d=2;break a}d=d+-1|0;if((d|0)<=0){d=0;break}else b=b+20|0}}else d=0;while(0);return d|0}function mu(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();b=d;c[(b&p)>>2]=0;if((c[(a&p)+4>>2]&1|0)==0?(Ms(a,b)|0)!=0:0)a=(c[(b&p)>>2]|0)==0&1;else a=0;i=d;return a|0}function nu(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();t=v;l=c[(g&p)+12>>2]|0;c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;c[(t&p)+8>>2]=0;c[(t&p)+12>>2]=0;c[(t&p)+16>>2]=0;c[(t&p)+20>>2]=200;a[(t&n)+24>>0]=1;a[(t&n)+25>>0]=0;c[(t&p)>>2]=c[(d&p)>>2];r=g+46|0;if(b[(r&o)>>1]|0){s=g+4|0;m=l+4|0;u=0;do{q=c[((c[(m&p)>>2]|0)+((b[((c[(s&p)>>2]|0)+(u<<1)&o)>>1]|0)*24|0)&p)>>2]|0;if(u)Sk(t,28920,2);k=c[(l&p)>>2]|0;if(!k)h=0;else{h=k;while(1)if(!(a[(h&n)>>0]|0))break;else h=h+1|0;h=h-k&1073741823}Sk(t,k,h);Sk(t,28928,1);if(!q)h=0;else{h=q;while(1)if(!(a[(h&n)>>0]|0))break;else h=h+1|0;h=h-q&1073741823}Sk(t,q,h);u=u+1|0}while((u|0)<(e[(r&o)>>1]|0))}u=tg(t)|0;zs(d,(a[(g&n)+51>>0]&3)==2?1555:2067,f,u,-1,2);i=v;return}function ou(a,b){a=a|0;b=b|0;return 0}function pu(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();t=u+8|0;r=u;s=f+52|0;a:do if((c[(s&p)>>2]|0)!=0?(h=c[(f&p)+48>>2]|0,!((h|0)==0|(f|0)==0)):0){g=f;while(1){q=a[(g&n)+4>>0]|0;if(!(q<<24>>24==119|q<<24>>24==116))break;g=c[(g&p)+52>>2]|0;if(!g){g=0;break a}}k=c[(h&p)+4>>2]|0;g=c[(h&p)>>2]|0;while(1){h=g+-1|0;if((g|0)<=0){g=0;break a}if(!(c[((c[(k+(h*20|0)&p)>>2]|0)&p)+4>>2]&256))g=h;else break}if((g|0)>=1){g=c[(d&p)+12>>2]|0;l=c[(g&p)>>2]|0;d=mh(l,72,0)|0;if(d){m=d+0|0;q=m+72|0;do{a[(m&n)>>0]=0;m=m+1|0}while((m|0)<(q|0));k=r;c[(k&p)>>2]=0;c[(k&p)+4>>2]=0;k=jr(g,0,0,0,r,d,0,0)|0;if(k){m=d+0|0;h=f+0|0;q=m+72|0;do{c[(m&p)>>2]=c[(h&p)>>2];m=m+4|0;h=h+4|0}while((m|0)<(q|0));c[(f&p)+32>>2]=k;c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;c[(f&p)>>2]=lr(g,0,nr(l,116,t,0)|0)|0;a[(f&n)+4>>0]=119;c[(f&p)+36>>2]=0;c[(d&p)+40>>2]=0;c[(d&p)+44>>2]=0;c[(d&p)+48>>2]=0;c[(s&p)>>2]=0;c[(f&p)+56>>2]=0;g=f+6|0;b[(g&o)>>1]=(e[(g&o)>>1]|0)&57279|8192;c[((c[(d&p)+52>>2]|0)&p)+56>>2]=d;c[(d&p)+60>>2]=0;c[(d&p)+64>>2]=0;g=0}else g=2}else g=2}else g=0}else g=0;while(0);i=u;return g|0}function qu(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0;_=i;i=i+32|0;if((i|0)>=(j|0))fa();Z=_;W=_+16|0;J=f+12|0;Y=c[(J&p)>>2]|0;X=c[(Y&p)>>2]|0;U=g+6|0;q=e[(U&o)>>1]|0;b[(U&o)>>1]=q|16;V=X+65|0;a:do if(!(a[(V&n)>>0]|0)){I=g+32|0;S=c[(I&p)>>2]|0;if((S|0)!=0&(q&16|0)==0){T=c[(g&p)>>2]|0;if((c[(f&p)+8>>2]|0)==9){q=g;while(1){m=c[(q&p)+56>>2]|0;if(!m)break;else q=m}q=c[(q&p)+68>>2]|0;if(q){F=Y+532|0;c[(q&p)+4>>2]=c[(F&p)>>2];c[(F&p)>>2]=q;a[(Y&n)+449>>0]=0}}Cs(Y,S);R=S+8|0;q=c[(S&p)>>2]|0;b:do if((q|0)>0){E=0;y=R;c:while(1){if(!(a[(y&n)+37>>0]&8)){F=y+16|0;h=c[(J&p)>>2]|0;if(c[(F&p)>>2]|0){k=h;Q=10;break}v=c[(h&p)>>2]|0;m=h+532|0;r=c[(m&p)>>2]|0;d:do if((c[(y&p)+4>>2]|0)==0?(H=c[(y&p)+8>>2]|0,!((H|0)==0|(r|0)==0)):0){e:while(1){s=c[(r&p)>>2]|0;if((s|0)>0){l=0;do{q=r+(l<<4)+8|0;k=c[(q&p)>>2]|0;if(!(dd(H,k)|0)){C=l;break e}l=l+1|0}while((l|0)<(s|0))}r=c[(r&p)+4>>2]|0;if(!r){Q=46;break d}}z=r+(C<<4)+20|0;s=c[(z&p)>>2]|0;if(s){g=s;Q=21;break c}B=mh(v,76,0)|0;if(!B){g=F;Q=23;break c}t=B+0|0;s=t+76|0;do{a[(t&n)>>0]=0;t=t+1|0}while((t|0)<(s|0));c[(F&p)>>2]=B;w=B+40|0;b[(w&o)>>1]=1;c[(B&p)>>2]=kh(v,c[(q&p)>>2]|0)|0;b[(B&o)+36>>1]=-1;b[(B&o)+28>>1]=200;D=B+44|0;a[(D&n)>>0]=d[(D&n)>>0]|2;D=gr(v,c[(r+(C<<4)&p)+16>>2]|0,0)|0;c[(y&p)+20>>2]=D;if(a[(v&n)+65>>0]|0){g=2;break a}A=((a[(D&n)+4>>0]|0)+-115&255)<2;if(A?(x=c[(D&p)+32>>2]|0,G=c[(x&p)>>2]|0,(G|0)>0):0){s=D+6|0;t=G;v=0;do{do if(!(c[(x+(v*72|0)&p)+12>>2]|0)){u=c[(x+(v*72|0)&p)+16>>2]|0;if(!u)break;if(dd(u,c[(q&p)>>2]|0)|0)break;c[(x+(v*72|0)&p)+24>>2]=B;t=x+(v*72|0)+45|0;a[(t&n)>>0]=a[(t&n)>>0]|8;b[(w&o)>>1]=(b[(w&o)>>1]|0)+1<<16>>16;b[(s&o)>>1]=e[(s&o)>>1]|2048;t=c[(x&p)>>2]|0}while(0);v=v+1|0}while((v|0)<(t|0))}if((e[(w&o)>>1]|0)>2){g=q;Q=34;break c}c[(z&p)>>2]=28176;l=c[(m&p)>>2]|0;c[(m&p)>>2]=r;if(A)s=c[(D&p)+52>>2]|0;else s=D;ku(f,s)|0;s=D;while(1){k=c[(s&p)+52>>2]|0;if(!k)break;else s=k}k=c[(s&p)>>2]|0;s=c[(r+(C<<4)&p)+12>>2]|0;do if(s){if(!k)break;u=c[(k&p)>>2]|0;k=c[(s&p)>>2]|0;if((u|0)!=(k|0)){g=u;Q=42;break c}}else s=k;while(0);iu(h,s,B+38|0,B+4|0);if(A){c[(z&p)>>2]=(b[(D&o)+6>>1]&2048)==0?28280:28240;ku(f,D)|0}c[(z&p)>>2]=0;c[(m&p)>>2]=l;if(!(c[(F&p)>>2]|0))Q=46}else Q=46;while(0);do if((Q|0)==46){Q=0;if(!(c[(y&p)+8>>2]|0)){r=c[(y&p)+20>>2]|0;if(ku(f,r)|0){g=2;break a}m=mh(X,76,0)|0;if(!m){g=F;Q=49;break c}t=m+0|0;s=t+76|0;do{a[(t&n)>>0]=0;t=t+1|0}while((t|0)<(s|0));c[(F&p)>>2]=m;b[(m&o)+40>>1]=1;c[(Z&p)>>2]=m;c[(m&p)>>2]=uh(X,27760,Z)|0;while(1){q=c[(r&p)+52>>2]|0;if(!q)break;else r=q}iu(Y,c[(r&p)>>2]|0,m+38|0,m+4|0);b[(m&o)+36>>1]=-1;b[(m&o)+28>>1]=200;F=m+44|0;a[(F&n)>>0]=d[(F&n)>>0]|2;break}h=Ur(Y,0,y)|0;c[(F&p)>>2]=h;if(!h){g=2;break a}r=h+40|0;q=b[(r&o)>>1]|0;if(q<<16>>16==-1){g=F;Q=55;break c}b[(r&o)>>1]=q+1<<16>>16;r=h+12|0;if((c[(r&p)>>2]|0)==0?(a[(h&n)+44>>0]&16)==0:0)break;if(hr(Y,h)|0){g=2;break a}F=gr(X,c[(r&p)>>2]|0,0)|0;c[(y&p)+20>>2]=F;ku(f,F)|0}while(0);if(Rt(Y,y)|0){g=2;break a}q=c[(S&p)>>2]|0}E=E+1|0;if((E|0)>=(q|0))break b;else y=y+72|0}if((Q|0)==10){while(1){h=c[(g&p)+56>>2]|0;if(!h)break;else g=h}g=c[(g&p)+68>>2]|0;if(!g){g=1;break a}c[(k&p)+532>>2]=c[(g&p)+4>>2];g=1;break a}else if((Q|0)==21){c[(Z&p)>>2]=k;th(h,g,Z);g=2;break a}else if((Q|0)==23){c[(g&p)>>2]=0;g=2;break a}else if((Q|0)==34){c[(Z&p)>>2]=c[(g&p)>>2];th(h,28128,Z);g=2;break a}else if((Q|0)==42){c[(Z&p)>>2]=c[(q&p)>>2];c[(Z&p)+4>>2]=g;c[(Z&p)+8>>2]=k;th(h,28200,Z);c[(m&p)>>2]=l;g=2;break a}else if((Q|0)==49){c[(g&p)>>2]=0;g=2;break a}else if((Q|0)==55){c[(Z&p)>>2]=c[(h&p)>>2];th(Y,27776,Z);c[(g&p)>>2]=0;g=2;break a}}while(0);if(!(a[(V&n)>>0]|0)){y=c[(I&p)>>2]|0;f:do if(((c[(y&p)>>2]|0)+-1|0)>0){z=g+36|0;B=0;C=y+8|0;D=y+80|0;g:while(1){A=c[(D&p)+16>>2]|0;if(!((c[(C&p)+16>>2]|0)==0|(A|0)==0)){G=d[(D&n)+36>>0]|0;x=G&32;v=(x|0)==0;x=x>>>5;w=D+44|0;if(G&4){if(c[(w&p)>>2]|0){Q=73;break}q=D+48|0;if(c[(q&p)>>2]|0){Q=73;break}k=A+38|0;r=b[(k&o)>>1]|0;if(r<<16>>16>0){h=A+4|0;u=B+1|0;t=0;do{m=c[((c[(h&p)>>2]|0)+(t*24|0)&p)>>2]|0;l=0;do{s=sv(c[(y+(l*72|0)&p)+24>>2]|0,m)|0;if((s|0)>-1){r=l;Q=77;break}l=l+1|0}while((l|0)<(u|0));if((Q|0)==77){Q=0;tv(Y,y,r,s,u,t,x,z);r=b[(k&o)>>1]|0}t=t+1|0}while((t|0)<(r<<16>>16|0))}}else q=D+48|0;r=c[(w&p)>>2]|0;if(r){if(c[(q&p)>>2]|0){Q=81;break}if(!v){uv(r,c[(D&p)+40>>2]|0);r=c[(w&p)>>2]|0}c[(z&p)>>2]=ss(c[(Y&p)>>2]|0,c[(z&p)>>2]|0,r)|0;c[(w&p)>>2]=0}m=c[(q&p)>>2]|0;if((m|0)!=0?(P=m+4|0,(c[(P&p)>>2]|0)>0):0){l=B+1|0;s=0;do{h=c[((c[(m&p)>>2]|0)+(s<<3)&p)>>2]|0;k=sv(A,h)|0;if((k|0)<0){Q=91;break g}else r=0;while(1){q=sv(c[(y+(r*72|0)&p)+24>>2]|0,h)|0;if((q|0)>-1)break;r=r+1|0;if((r|0)>=(l|0)){Q=91;break g}}tv(Y,y,r,q,l,k,x,z);s=s+1|0}while((s|0)<(c[(P&p)>>2]|0))}}B=B+1|0;if((B|0)>=((c[(y&p)>>2]|0)+-1|0))break f;else{C=C+72|0;D=D+72|0}}if((Q|0)==73){c[(Z&p)>>2]=0;th(Y,27928,Z);g=2;break a}else if((Q|0)==81){th(Y,27984,Z);g=2;break a}else if((Q|0)==91){c[(Z&p)>>2]=h;th(Y,28040,Z);g=2;break a}}while(0);h=c[(T&p)>>2]|0;r=(h|0)>0;h:do if(r){k=c[(T&p)+4>>2]|0;q=0;do{m=c[(k+(q*20|0)&p)>>2]|0;l=a[(m&n)>>0]|0;if(l<<24>>24==122){if((a[(c[(m&p)+16>>2]&n)>>0]|0)==116)break h}else if(l<<24>>24==116)break h;q=q+1|0}while((q|0)<(h|0))}else q=0;while(0);if((q|0)<(h|0)){P=c[(T&p)+4>>2]|0;q=c[((c[(Y&p)>>2]|0)&p)+24>>2]|0;if(!(q&32))O=0;else O=(q&64|0)==0;if(r){K=X+20|0;L=X+16|0;M=W+4|0;N=0;h=0;do{m=P+(N*20|0)|0;r=c[(m&p)>>2]|0;q=a[(r&n)>>0]|0;if(q<<24>>24==116){f=0;Q=110}else if(q<<24>>24==122?(a[(c[(r&p)+16>>2]&n)>>0]|0)==116:0){f=c[((c[(r&p)+12>>2]|0)&p)+8>>2]|0;Q=110}else Q=106;do if((Q|0)==106){h=lr(Y,h,r)|0;if(h){F=P+(N*20|0)+4|0;E=(c[(h&p)>>2]|0)+-1|0;D=c[(h&p)+4>>2]|0;c[(D+(E*20|0)&p)+4>>2]=c[(F&p)>>2];G=P+(N*20|0)+8|0;c[(D+(E*20|0)&p)+8>>2]=c[(G&p)>>2];c[(F&p)>>2]=0;c[(G&p)>>2]=0}c[(m&p)>>2]=0}else if((Q|0)==110){if((c[(S&p)>>2]|0)>0){G=(f|0)==0;H=(f|0)!=0;I=0;J=R;q=0;while(1){v=c[(J&p)+16>>2]|0;m=c[(J&p)+20>>2]|0;r=c[(J&p)+12>>2]|0;if(!r)r=c[(v&p)>>2]|0;if(a[(V&n)>>0]|0)break;if((m|0)!=0?(b[(m&o)+6>>1]&512)!=0:0){F=0;Q=125}else Q=117;do if((Q|0)==117){Q=0;if(!G?(dd(f,r)|0)!=0:0)break;s=c[(v&p)+68>>2]|0;if(!s){m=0;F=27816;Q=125;break}l=c[(K&p)>>2]|0;t=c[(L&p)>>2]|0;if((l|0)>0){k=0;while(1){m=k+1|0;if((c[(t+(k<<4)&p)+12>>2]|0)==(s|0)){m=k;break}if((m|0)<(l|0))k=m;else break}if((m|0)>-1)l=m;else{m=0;F=27816;Q=125;break}}else l=0;m=0;F=c[(t+(l<<4)&p)>>2]|0;Q=125}while(0);do if((Q|0)==125){Q=0;E=v+38|0;w=b[(E&o)>>1]|0;if(w<<16>>16<=0)break;A=v+4|0;z=(m|0)!=0;t=H&z;B=(I|0)>0;u=B&G;y=J+36|0;B=B^1;x=J+48|0;s=(F|0)==0;C=0;do{v=c[(A&p)>>2]|0;k=c[(v+(C*24|0)&p)>>2]|0;if(!(t?(vv(c[((c[((c[(m&p)>>2]|0)&p)+4>>2]|0)+(C*20|0)&p)+8>>2]|0,0,f,0)|0)==0:0))Q=129;i:do if((Q|0)==129){Q=0;if(a[(v+(C*24|0)&n)+23>>0]&2)break;if(u){if(!((a[(y&n)>>0]&4)==0|B)){v=0;do{if((sv(c[(S+(v*72|0)&p)+24>>2]|0,k)|0)>-1){q=1;break i}v=v+1|0}while((v|0)<(I|0))}if((wv(c[(x&p)>>2]|0,k)|0)>-1){q=1;break}}w=tt(X,27,k)|0;if(!O?(c[(S&p)>>2]|0)<=1:0){l=k;D=0}else Q=137;do if((Q|0)==137){Q=0;w=Zq(Y,122,tt(X,27,r)|0,w,0)|0;if(!s)w=Zq(Y,122,tt(X,27,F)|0,w,0)|0;if(!O){l=k;D=0;break}c[(Z&p)>>2]=r;c[(Z&p)+4>>2]=k;D=uh(X,27824,Z)|0;l=D}while(0);h=lr(Y,h,w)|0;c[(W&p)>>2]=l;if(!l)w=0;else{w=l;while(1)if(!(a[(w&n)>>0]|0))break;else w=w+1|0;w=w-l&1073741823}c[(M&p)>>2]=w;mr(Y,h,W,0);do if(h){if(!(b[(U&o)>>1]&512))break;v=(c[(h&p)>>2]|0)+-1|0;k=c[(h&p)+4>>2]|0;if(z)w=kh(X,c[((c[((c[(m&p)>>2]|0)&p)+4>>2]|0)+(C*20|0)&p)+8>>2]|0)|0;else{c[(Z&p)>>2]=F;c[(Z&p)+4>>2]=r;c[(Z&p)+8>>2]=l;w=uh(X,27832,Z)|0}c[(k+(v*20|0)&p)+8>>2]=w;w=k+(v*20|0)+13|0;a[(w&n)>>0]=a[(w&n)>>0]|2}while(0);mg(X,D);w=b[(E&o)>>1]|0;q=1}while(0);C=C+1|0}while((C|0)<(w<<16>>16|0))}while(0);I=I+1|0;if((I|0)>=(c[(S&p)>>2]|0))break;else J=J+72|0}if(q)break}if(!f){th(Y,27872,Z);break}else{c[(Z&p)>>2]=f;th(Y,27848,Z);break}}while(0);N=N+1|0}while((N|0)<(c[(T&p)>>2]|0))}else h=0;Nk(X,T);c[(g&p)>>2]=h}else h=c[(g&p)>>2]|0;if((h|0)!=0?(c[(h&p)>>2]|0)>(c[(X&p)+96>>2]|0):0){th(Y,27896,Z);g=0}else g=0}else g=2}else g=1}else g=2;while(0);i=_;return g|0}function ru(a,b){a=a|0;b=b|0;var d=0;d=c[(a&p)+12>>2]|0;while(1){a=c[(b&p)+56>>2]|0;if(!a)break;else b=a}b=c[(b&p)+68>>2]|0;if(b)c[(d&p)+532>>2]=c[(b&p)+4>>2];return}function su(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;h=f+6|0;i=e[(h&o)>>1]|0;if((i&32|0)==0?(b[(h&o)>>1]=i|32,l=c[(d&p)+12>>2]|0,j=c[(f&p)+32>>2]|0,g=c[(j&p)>>2]|0,(g|0)>0):0){f=0;h=j+8|0;while(1){d=c[(h&p)+16>>2]|0;if(((d|0)!=0?(a[(d&n)+44>>0]&2)!=0:0)?(k=c[(h&p)+20>>2]|0,(k|0)!=0):0){g=k;while(1){i=c[(g&p)+52>>2]|0;if(!i)break;else g=i}ju(l,d,g);g=c[(j&p)>>2]|0}f=f+1|0;if((f|0)>=(g|0))break;else h=h+72|0}}return}function tu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if((a|0)!=0?(d=c[(a&p)>>2]|0,(d|0)>0):0){g=c[(a&p)+4>>2]|0;f=0;do{e=c[(g+(f*20|0)&p)>>2]|0;if((e|0)!=0?(h=c[(e&p)+24>>2]|0,(h|0)>(c[(b&p)>>2]|0)):0){c[(b&p)>>2]=h;d=c[(a&p)>>2]|0}f=f+1|0}while((f|0)<(d|0))}return}function uu(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;if(((b|0)!=0?(Gs(a,c[(b&p)>>2]|0,d,e),Gs(a,c[(b&p)+40>>2]|0,d,e),Gs(a,c[(b&p)+48>>2]|0,d,e),g=b+44|0,c[(g&p)>>2]=Hs(a,c[(g&p)>>2]|0,d,e)|0,g=b+36|0,c[(g&p)>>2]=Hs(a,c[(g&p)>>2]|0,d,e)|0,uu(a,c[(b&p)+52>>2]|0,d,e),g=c[(b&p)+32>>2]|0,(g|0)!=0):0)?(f=c[(g&p)>>2]|0,(f|0)>0):0){b=f;f=g+8|0;while(1){uu(a,c[(f&p)+20>>2]|0,d,e);b=b+-1|0;if((b|0)<=0)break;else f=f+72|0}}return}function vu(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=c[(d&p)+48>>2]|0;l=c[(f&p)>>2]|0;g=c[(b&p)>>2]|0;m=Rs(g,l+1|0,1)|0;if((m|0)!=0&(l|0)>0){k=f+4|0;i=g+8|0;h=m+16|0;j=0;do{g=c[(k&p)>>2]|0;f=c[(g+(j*20|0)&p)>>2]|0;if(!(c[(f&p)+4>>2]&256)){g=Ss(b,d,(e[(g+(j*20|0)&o)+16>>1]|0)+-1|0)|0;if(!g)g=c[(i&p)>>2]|0;f=xv(b,f,c[(g&p)>>2]|0)|0;c[((c[(k&p)>>2]|0)+(j*20|0)&p)>>2]=f}else g=cu(b,f)|0;c[(m+(j<<2)&p)+20>>2]=g;a[((c[(h&p)>>2]|0)+j&n)>>0]=a[((c[(k&p)>>2]|0)+(j*20|0)&n)+12>>0]|0;j=j+1|0}while((j|0)!=(l|0))}return m|0}function wu(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r;h=c[(d&p)>>2]|0;a:do if((f|0)!=0?(a[(h&n)+65>>0]|0)==0:0){k=c[(f&p)>>2]|0;if((k|0)>(c[(h&p)+96>>2]|0)){c[(q&p)>>2]=g;th(d,27120,q);e=1;break}m=c[(e&p)>>2]|0;if((k|0)>0){h=k;e=0;l=c[(f&p)+4>>2]|0;while(1){k=b[(l&o)+16>>1]|0;if(k<<16>>16){k=k&65535;h=c[(m&p)>>2]|0;if((k|0)>(h|0))break;yv(d,m,k+-1|0,c[(l&p)>>2]|0,g,0);h=c[(f&p)>>2]|0}e=e+1|0;if((e|0)>=(h|0)){e=0;break a}else l=l+20|0}c[(q&p)>>2]=e+1;c[(q&p)+4>>2]=g;c[(q&p)+8>>2]=h;th(d,27064,q);e=1}else e=0}else e=0;while(0);i=r;return e|0}function xu(b,e,f,g,h,i,j,k){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;var l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;v=b+8|0;w=c[(v&p)>>2]|0;y=w+32|0;l=c[(y&p)>>2]|0;z=xs(w)|0;if(i){o=wh(w,46,i,0,0)|0;m=f+8|0;r=c[(m&p)>>2]|0;t=i+1|0;q=f+12|0;s=c[(q&p)>>2]|0;if(j)c[(j&p)>>2]=(c[(j&p)>>2]|0)+1;r=wh(w,42,r,t,s)|0;xh(w,r,j,-6);r=r+2|0;wh(w,43,r,z,r)|0;r=c[(y&p)>>2]|0;if(r>>>0>o>>>0)c[((c[(w&p)+4>>2]|0)+(o*20|0)&p)+8>>2]=r;c[((c[(w&p)+24>>2]|0)&p)+88>>2]=r+-1;wh(w,33,c[(m&p)>>2]|0,t,(c[(q&p)>>2]|0)+-1|0)|0;wh(w,25,1,i,0)|0}if(!(a[((c[(b&p)>>2]|0)&n)+65>>0]|0)){it(w,c[(e&p)+12>>2]|0,z);switch(d[(g&n)>>0]|0){case 11:{q=g+1|0;a[(q&n)>>0]=Bu(c[(c[((c[(e&p)>>2]|0)&p)+4>>2]&p)>>2]|0,a[(q&n)>>0]|0)|0;o=b+19|0;m=a[(o&n)>>0]|0;if(!(m<<24>>24)){u=b+72|0;o=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=o}else{u=m+-1<<24>>24;a[(o&n)>>0]=u;o=c[(b+((u&255)<<2)&p)+24>>2]|0}u=f+8|0;xh(w,wh(w,49,c[(u&p)>>2]|0,1,o)|0,q,1);dt(b,c[(u&p)>>2]|0,1);wh(w,110,c[(g&p)+4>>2]|0,o,0)|0;_r(b,o);break}case 12:case 14:{m=b+19|0;q=a[(m&n)>>0]|0;if(q<<24>>24){i=q+-1<<24>>24;a[(m&n)>>0]=i;o=c[(b+((i&255)<<2)&p)+24>>2]|0;if(!(i<<24>>24))u=12;else{q=q+-2<<24>>24;a[(m&n)>>0]=q;q=c[(b+((q&255)<<2)&p)+24>>2]|0;m=o}}else{u=b+72|0;o=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=o;u=12}if((u|0)==12){m=b+72|0;q=(c[(m&p)>>2]|0)+1|0;c[(m&p)>>2]=q;m=o}wh(w,49,c[(f&p)+8>>2]|0,c[(f&p)+12>>2]|0,m)|0;o=g+4|0;wh(w,74,c[(o&p)>>2]|0,q,0)|0;wh(w,75,c[(o&p)>>2]|0,m,q)|0;o=c[(w&p)+4>>2]|0;if(o)a[(o+(((c[(y&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;_r(b,q);_r(b,m);break}case 13:{s=g+8|0;o=c[(s&p)>>2]|0;if(!o){o=c[(f&p)+12>>2]|0;q=b+60|0;m=c[(q&p)>>2]|0;j=b+56|0;r=c[(j&p)>>2]|0;if((r|0)<(o|0)){u=b+72|0;m=c[(u&p)>>2]|0;c[(u&p)>>2]=m+o;m=m+1|0}else{c[(q&p)>>2]=m+o;c[(j&p)>>2]=r-o}c[(s&p)>>2]=m;c[(g&p)+12>>2]=o}else{m=o;o=c[(g&p)+12>>2]|0}u=c[(f&p)+8>>2]|0;wh(c[(v&p)>>2]|0,32,u,m,o)|0;dt(b,u,o);wh(w,22,c[(g&p)+4>>2]|0,0,0)|0;break}case 10:{u=c[(f&p)+8>>2]|0;wh(c[(v&p)>>2]|0,32,u,c[(g&p)+4>>2]|0,1)|0;dt(b,u,1);break}default:{i=f+8|0;u=f+12|0;wh(w,35,c[(i&p)>>2]|0,c[(u&p)>>2]|0,0)|0;dt(b,c[(i&p)>>2]|0,c[(u&p)>>2]|0)}}m=c[(e&p)+8>>2]|0;if(m)wh(w,140,m,k,0)|0;m=c[(w&p)+24>>2]|0;o=~z;if((z|0)<0?(x=c[(m&p)+112>>2]|0,(x|0)!=0):0)c[(x+(o<<2)&p)>>2]=c[(y&p)>>2];c[(m&p)+88>>2]=(c[(y&p)>>2]|0)+-1;wh(w,18,h,0,0)|0}else l=0;return l|0}function yu(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+80|0;if((i|0)>=(j|0))fa();u=v+64|0;t=v+32|0;h=v;a[(u&n)>>0]=1;if((f|0)!=0?(c[(e&p)+4>>2]|0)!=0:0){k=d[(f&n)>>0]|0;a:do if((k|0)==154|(k|0)==156){s=b[(f&o)+32>>1]|0;h=s<<16>>16;if(e){r=f+28|0;b:while(1){while(1){q=c[(e&p)+4>>2]|0;m=c[(q&p)>>2]|0;c:do if((m|0)>0){f=c[(r&p)>>2]|0;k=0;while(1){l=k+1|0;if((c[(q+(k*72|0)&p)+48>>2]|0)==(f|0)){l=k;break c}if((l|0)<(m|0))k=l;else break}}else l=0;while(0);if((l|0)>=(m|0))break;m=c[(q+(l*72|0)&p)+24>>2]|0;l=c[(q+(l*72|0)&p)+28>>2]|0;f=(m|0)==0;if(!((e|0)!=0&f))break b}e=c[(e&p)+16>>2]|0;if(!e){h=0;break a}}if(!f){if(l){if(s<<16>>16<=-1){h=0;break}k=c[(l&p)>>2]|0;if((h|0)>=(c[(k&p)>>2]|0)){h=0;break}h=c[((c[(k&p)+4>>2]|0)+(h*20|0)&p)>>2]|0;c[(t&p)+4>>2]=c[(l&p)+32>>2];c[(t&p)+16>>2]=e;c[(t&p)>>2]=c[(e&p)>>2];h=yu(t,h,u)|0;break}if(c[(m&p)+68>>2]|0){if(s<<16>>16<0)h=b[(m&o)+36>>1]|0;if((h|0)<0)h=11144;else{s=c[(m&p)+4>>2]|0;t=c[(s+(h*24|0)&p)+12>>2]|0;a[(u&n)>>0]=a[(s+(h*24|0)&n)+22>>0]|0;h=t}}else h=0}else h=0}else h=0}else if((k|0)==119){s=c[(f&p)+20>>2]|0;t=c[(c[((c[(s&p)>>2]|0)&p)+4>>2]&p)>>2]|0;c[(h&p)+4>>2]=c[(s&p)+32>>2];c[(h&p)+16>>2]=e;c[(h&p)>>2]=c[(e&p)>>2];h=yu(h,t,u)|0}else h=0;while(0);if(g)a[(g&n)>>0]=a[(u&n)>>0]|0}else h=0;i=v;return h|0}function zu(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;j=c[(b&p)+8>>2]|0;h=b+19|0;i=a[(h&n)>>0]|0;if(!(i<<24>>24)){i=b+72|0;h=(c[(i&p)>>2]|0)+1|0;c[(i&p)>>2]=h}else{i=i+-1<<24>>24;a[(h&n)>>0]=i;h=c[(b+((i&255)<<2)&p)+24>>2]|0}xh(j,wh(j,69,d,e,g)|0,f,-14);wh(j,49,g,f,h)|0;wh(j,110,d,h,0)|0;_r(b,h);return}function Au(b,d,f,g,h,i){b=b|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,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;x=b+8|0;C=c[(x&p)>>2]|0;B=d+24|0;k=a[(B&n)>>0]&1;q=k<<24>>24==0;k=(k^1)&255;j=c[(d&p)>>2]|0;r=c[(j&p)>>2]|0;s=r+h+k|0;v=b+72|0;m=c[(v&p)>>2]|0;A=m+1|0;c[(v&p)>>2]=A;y=d+4|0;t=c[(y&p)>>2]|0;i=(i|0)==0;if(i){c[(v&p)>>2]=A+s;w=m+2|0}else w=g-r-k|0;bt(b,j,w,1);if(q)wh(C,73,c[(d&p)+8>>2]|0,w+r|0,0)|0;if(i){wh(c[(x&p)>>2]|0,32,g,k+r+w|0,h)|0;dt(b,g,h)}wh(C,49,w+t|0,s-t|0,A)|0;if((t|0)>0){j=c[(v&p)>>2]|0;h=j+1|0;i=c[(y&p)>>2]|0;c[(v&p)>>2]=i+j;if(q)g=wh(C,46,w+r|0,0,0)|0;else g=wh(C,59,c[(d&p)+8>>2]|0,0,0)|0;wh(C,42,h,w,c[(y&p)>>2]|0)|0;m=c[(d&p)+20>>2]|0;if((m|0)<0)m=(c[(C&p)+32>>2]|0)+-1|0;if(!(a[((c[(C&p)>>2]|0)&n)+65>>0]|0))m=(c[(C&p)+4>>2]|0)+(m*20|0)|0;else m=29120;if(!(a[((c[(b&p)>>2]|0)&n)+65>>0]|0)){c[(m&p)+8>>2]=s-i;m=m+16|0;i=c[(m&p)>>2]|0;fw(c[(i&p)+16>>2]|0,0,e[(i&o)+6>>1]|0)|0;xh(C,-1,i,-6);c[(m&p)>>2]=Us(b,c[(d&p)>>2]|0,t,(e[(i&o)+8>>1]|0)+-1|0)|0;m=C+32|0;i=c[(m&p)>>2]|0;l=i+1|0;wh(C,43,l,0,l)|0;l=xs(C)|0;c[(d&p)+16>>2]=l;k=(c[(v&p)>>2]|0)+1|0;c[(v&p)>>2]=k;c[(d&p)+12>>2]=k;wh(C,17,k,l,0)|0;l=d+8|0;wh(C,119,c[(l&p)>>2]|0,0,0)|0;k=c[(m&p)>>2]|0;if(k>>>0>g>>>0)c[((c[(C&p)+4>>2]|0)+(g*20|0)&p)+8>>2]=k;j=C+24|0;c[((c[(j&p)>>2]|0)&p)+88>>2]=k+-1;k=c[(y&p)>>2]|0;wh(c[(x&p)>>2]|0,32,w,h,k)|0;dt(b,w,k);k=c[(m&p)>>2]|0;if(k>>>0>i>>>0)c[((c[(C&p)+4>>2]|0)+(i*20|0)&p)+8>>2]=k;c[((c[(j&p)>>2]|0)&p)+88>>2]=k+-1;u=23}}else{l=d+8|0;u=23}if((u|0)==23?(wh(C,110-(a[(B&n)>>0]&1)|0,c[(l&p)>>2]|0,A,0)|0,z=c[(f&p)+8>>2]|0,(z|0)!=0):0){k=c[(f&p)+12>>2]|0;k=wh(C,139,(k|0)==0?z:k+1|0,0,-1)|0;wh(C,105,c[(l&p)>>2]|0,0,0)|0;wh(C,95,c[(l&p)>>2]|0,0,0)|0;j=c[(C&p)+32>>2]|0;if(j>>>0>k>>>0)c[((c[(C&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=j;c[((c[(C&p)+24>>2]|0)&p)+88>>2]=j+-1}return}function Bu(a,b){a=a|0;b=b|0;a=kv(a)|0;if(!(a<<24>>24==0|b<<24>>24==0))return (a<<24>>24>66|b<<24>>24>66?67:65)|0;if(!((a|b)<<24>>24))a=65;else a=(b&255)+(a&255)&255;return a|0}function Cu(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;do if(!((d|0)==0|(e|0)==0)){j=c[(d&p)+4>>2]|0;k=c[(e&p)+4>>2]|0;l=k|j;if(l&1024){if((j&1024&k|0)!=0?(c[(d&p)+8>>2]|0)==(c[(e&p)+8>>2]|0):0){g=0;break}g=2;break}g=a[(d&n)>>0]|0;h=a[(e&n)>>0]|0;if(g<<24>>24!=h<<24>>24){if(g<<24>>24==95?(Cu(c[(d&p)+12>>2]|0,e,f)|0)<2:0){g=1;break}if(h<<24>>24==95?(Cu(d,c[(e&p)+12>>2]|0,f)|0)<2:0){g=1;break}g=2;break}if((!(g<<24>>24==-100|g<<24>>24==-102)?(i=c[(d&p)+8>>2]|0,(i|0)!=0):0)?(_v(i,c[(e&p)+8>>2]|0)|0)!=0:0){g=g<<24>>24==95?1:2;break}if(!((k^j)&16)){if(!(l&16384)){if(l&2048){g=2;break}if(Cu(c[(d&p)+12>>2]|0,c[(e&p)+12>>2]|0,f)|0){g=2;break}if(Cu(c[(d&p)+16>>2]|0,c[(e&p)+16>>2]|0,f)|0){g=2;break}if(Ts(c[(d&p)+20>>2]|0,c[(e&p)+20>>2]|0,f)|0){g=2;break}if(!(l&8192)){if((b[(d&o)+32>>1]|0)!=(b[(e&o)+32>>1]|0)){g=2;break}h=c[(d&p)+28>>2]|0;g=c[(e&p)+28>>2]|0;if((h|0)!=(g|0)?(h|0)!=(f|0)|(g|0)>-1:0){g=2;break}}}g=0}else g=2}else g=(e|0)==(d|0)?0:2;while(0);return g|0}function Du(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;f=b+8|0;a[(f&n)>>0]=e;a:do if(d){while(1){if((a[(d&n)>>0]|0)!=e<<24>>24)break;Du(b,c[(d&p)+12>>2]|0,e);d=c[(d&p)+16>>2]|0;a[(f&n)>>0]=e;if(!d)break a}zv(b,d,0)|0}while(0);return}function Eu(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=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,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;F=c[(f&p)>>2]|0;T=c[(F&p)>>2]|0;V=c[(T&p)>>2]|0;O=V+65|0;do if(!(a[(O&n)>>0]|0)){W=f+20|0;k=c[(W&p)>>2]|0;h=k+(g*48|0)|0;ba=F+68|0;U=c[(h&p)>>2]|0;v=U+12|0;l=c[(v&p)>>2]|0;A=Av(ba,l)|0;z=G;j=a[(U&n)>>0]|0;x=j&255;do if(j<<24>>24==75){m=U+20|0;if(!(c[(U&p)+4>>2]&2048)){i=Lu(ba,c[(m&p)>>2]|0)|0;w=G;S=k+(g*48|0)+32|0;c[(S&p)>>2]=i;c[(S&p)+4>>2]=w;break}else{i=Bv(ba,c[(m&p)>>2]|0)|0;w=G;S=k+(g*48|0)+32|0;c[(S&p)>>2]=i;c[(S&p)+4>>2]=w;break}}else if(j<<24>>24==76){i=k+(g*48|0)+32|0;c[(i&p)>>2]=0;c[(i&p)+4>>2]=0;i=0;w=0}else{i=Av(ba,c[(U&p)+16>>2]|0)|0;w=G;S=k+(g*48|0)+32|0;c[(S&p)>>2]=i;c[(S&p)+4>>2]=w}while(0);t=Av(ba,U)|0;m=G;Q=U+4|0;if(!(c[(Q&p)>>2]&1)){R=0;S=0;y=m}else{r=b[(U&o)+36>>1]|0;q=c[(ba&p)>>2]|0;a:do if((q|0)>0){s=0;while(1){if((c[(F+(s<<2)&p)+72>>2]|0)==(r|0))break;s=s+1|0;if((s|0)>=(q|0)){s=0;r=0;break a}}s=iw(1,0,s|0)|0;r=G}else{s=0;r=0}while(0);R=jw(s|0,r|0,-1,-1)|0;S=G;t=s|t;y=r|m}u=k+(g*48|0)+40|0;c[(u&p)>>2]=t;c[(u&p)+4>>2]=y;u=k+(g*48|0)+8|0;c[(u&p)>>2]=-1;c[(k+(g*48|0)&p)+4>>2]=-1;C=k+(g*48|0)+18|0;b[(C&o)>>1]=0;s=x+-75|0;if(s>>>0<9?(499>>>(s&511)&1)!=0:0){b:do if(!l)l=0;else while(1){s=c[(l&p)+4>>2]|0;if(!(s&4096))break b;if(!(s&262144))q=l+12|0;else q=c[((c[(l&p)+20>>2]|0)&p)+4>>2]|0;l=c[(q&p)>>2]|0;if(!l){l=0;break}}while(0);s=c[(U&p)+16>>2]|0;c:do if(!s)s=0;else while(1){r=c[(s&p)+4>>2]|0;if(!(r&4096))break c;if(!(r&262144))s=s+12|0;else s=c[((c[(s&p)+20>>2]|0)&p)+4>>2]|0;s=c[(s&p)>>2]|0;if(!s){s=0;break}}while(0);w=(i&A|0)==0&(w&z|0)==0?4095:1024;if((a[(l&n)>>0]|0)==-102){m=c[(l&p)+28>>2]|0;c[(u&p)>>2]=m;c[(k+(g*48|0)&p)+12>>2]=b[(l&o)+32>>1];if((x|0)==75)q=1;else if((x|0)==76)q=128;else q=2<<x+-79&65535;b[(C&o)>>1]=q&w}else m=-1;if((s|0)!=0?(a[(s&n)>>0]|0)==-102:0){if((m|0)>-1){l=Mr(V,U,0,0)|0;if(a[(O&n)>>0]|0){Gk(V,l);break}m=zv(f,l,3)|0;if(!m)break;q=c[(W&p)>>2]|0;k=q+(m*48|0)|0;c[(q+(m*48|0)&p)+4>>2]=g;b[(q+(m*48|0)&o)+16>>1]=b[(q+(g*48|0)&o)+16>>1]|0;h=q+(g*48|0)+22|0;a[(h&n)>>0]=(a[(h&n)>>0]|0)+1<<24>>24;h=q+(g*48|0)|0;s=q+(g*48|0)+20|0;b[(s&o)>>1]=e[(s&o)>>1]|8;if(((a[(U&n)>>0]|0)==79?(c[(Q&p)>>2]&1|0)==0:0)?(b[(V&o)+60>>1]&512)==0:0){v=q+(g*48|0)+18|0;b[(v&o)>>1]=e[(v&o)>>1]|1024;v=1024}else v=0}else{v=0;l=U;k=h}j=l+16|0;r=(c[(j&p)>>2]|0)+4|0;q=c[(r&p)>>2]|0;m=q&256;i=l+12|0;s=c[(i&p)>>2]|0;do if((m|0)==(c[(s&p)+4>>2]&256|0)){if(m){c[(r&p)>>2]=q&-257;break}s=(cu(T,s)|0)==0;q=c[(i&p)>>2]|0;if(s)s=q;else{s=q+4|0;c[(s&p)>>2]=c[(s&p)>>2]|256;s=q}}while(0);q=c[(j&p)>>2]|0;c[(j&p)>>2]=s;c[(i&p)>>2]=q;m=a[(l&n)>>0]|0;if((m&255)>79){m=((m&255)+176^2)+80&255;a[(l&n)>>0]=m}l=c[(q&p)+4>>2]|0;if(l&4096)do{if(!(l&262144))q=q+12|0;else q=c[((c[(q&p)+20>>2]|0)&p)+4>>2]|0;q=c[(q&p)>>2]|0;l=c[(q&p)+4>>2]|0}while((l&4096|0)!=0);c[(k&p)+8>>2]=c[(q&p)+28>>2];c[(k&p)+12>>2]=b[(q&o)+32>>1];l=k+32|0;c[(l&p)>>2]=R|A;c[(l&p)+4>>2]=S|z;l=k+40|0;c[(l&p)>>2]=t;c[(l&p)+4>>2]=y;l=m&255;if((l|0)==76)l=128;else if((l|0)==75)l=1;else l=2<<l+-79&65535;b[(k&o)+18>>1]=l+v&(w&65535)}}else K=59;do if((K|0)==59){if(j<<24>>24==74){if((a[(f&n)+8>>0]|0)!=72)break;m=(c[(U&p)+20>>2]|0)+4|0;i=U+36|0;j=0;while(1){t=d[(j&n)+34144>>0]|0;l=Mr(V,l,0,0)|0;l=Zq(T,t,l,Mr(V,c[((c[(m&p)>>2]|0)+(j*20|0)&p)>>2]|0,0,0)|0,0)|0;if(l){t=l+4|0;c[(t&p)>>2]=c[(t&p)>>2]|c[(Q&p)>>2]&1;b[(l&o)+36>>1]=b[(i&o)>>1]|0}t=zv(f,l,3)|0;Eu(f,t);k=c[(W&p)>>2]|0;c[(k+(t*48|0)&p)+4>>2]=g;b[(k+(t*48|0)&o)+16>>1]=b[(k+(g*48|0)&o)+16>>1]|0;t=k+(g*48|0)+22|0;a[(t&n)>>0]=(a[(t&n)>>0]|0)+1<<24>>24;j=j+1|0;if((j|0)==2)break;l=c[(v&p)>>2]|0}h=k+(g*48|0)|0;break}else if(j<<24>>24!=71)break;A=mh(V,416,0)|0;d:do if(A){fw(A|0,0,416)|0;c[(k+(g*48|0)&p)+12>>2]=A;D=k+(g*48|0)+20|0;b[(D&o)>>1]=e[(D&o)>>1]|16;c[(A&p)>>2]=F;c[(A&p)+4>>2]=0;D=A+12|0;c[(D&p)>>2]=0;c[(A&p)+16>>2]=8;E=A+20|0;c[(E&p)>>2]=A+24;Du(A,U,71);m=c[(D&p)>>2]|0;if((m|0)>0)do{m=m+-1|0;Eu(A,m)}while((m|0)>0);if(!(a[(O&n)>>0]|0)){s=c[(D&p)>>2]|0;if((s|0)>0){z=F+68|0;y=-1;x=-1;i=-1;h=-1;w=c[(E&p)>>2]|0;while(1){s=s+-1|0;r=w+18|0;v=b[(r&o)>>1]|0;if(!(v&255)){l=mh(V,408,0)|0;if(!l){m=y;q=x;i=0;h=0}else{c[(w&p)+12>>2]=l;q=w+20|0;b[(q&o)>>1]=e[(q&o)>>1]|32;b[(r&o)>>1]=512;c[(l&p)>>2]=c[(f&p)>>2];q=l+4|0;c[(q&p)>>2]=0;m=l+12|0;c[(m&p)>>2]=0;c[(l&p)+16>>2]=8;t=l+20|0;c[(t&p)>>2]=l+24;Du(l,c[(w&p)>>2]|0,72);r=c[(m&p)>>2]|0;if((r|0)>0)do{r=r+-1|0;Eu(l,r)}while((r|0)>0);c[(q&p)>>2]=f;if((a[(O&n)>>0]|0)==0?(B=c[(m&p)>>2]|0,(B|0)>0):0){r=0;q=0;h=0;u=c[(t&p)>>2]|0;while(1){m=(d[(c[(u&p)>>2]&n)>>0]|0)+-75|0;do if(m>>>0<9){if(!(499>>>(m&511)&1))break;l=c[(u&p)+8>>2]|0;j=c[(z&p)>>2]|0;e:do if((j|0)>0){m=0;while(1){if((c[(F+(m<<2)&p)+72>>2]|0)==(l|0))break;m=m+1|0;if((m|0)>=(j|0)){m=0;l=0;break e}}m=iw(1,0,m|0)|0;l=G}else{m=0;l=0}while(0);r=m|r;q=l|q}while(0);h=h+1|0;if((h|0)>=(B|0))break;else u=u+48|0}}else{r=0;q=0}m=r&y;q=q&x;i=0;h=0}}else{q=b[(w&o)+20>>1]|0;if(!(q&8)){t=c[(w&p)+8>>2]|0;l=c[(z&p)>>2]|0;m=(l|0)>0;f:do if(m){r=0;while(1){if((c[(F+(r<<2)&p)+72>>2]|0)==(t|0))break;r=r+1|0;if((r|0)>=(l|0)){j=0;u=0;break f}}j=iw(1,0,r|0)|0;u=G}else{j=0;u=0}while(0);if(!(q&2)){r=j;t=u}else{t=c[((c[(E&p)>>2]|0)+((c[(w&p)+4>>2]|0)*48|0)&p)+8>>2]|0;g:do if(m){r=0;while(1){if((c[(F+(r<<2)&p)+72>>2]|0)==(t|0))break;r=r+1|0;if((r|0)>=(l|0)){r=0;t=0;break g}}r=iw(1,0,r|0)|0;t=G}else{r=0;t=0}while(0);r=r|j;t=t|u}l=(v&2)==0;m=r&y;q=t&x;i=l?0:r&i;h=l?0:t&h}else{m=y;q=x}}r=(m|0)!=0|(q|0)!=0;if(!((s|0)>0&r))break;else{y=m;x=q;w=w+48|0}}t=A+408|0;c[(t&p)>>2]=m;c[(t&p)+4>>2]=q;b[(C&o)>>1]=(m|0)==0&(q|0)==0?0:256;if(r)K=104}else{i=A+408|0;c[(i&p)>>2]=-1;c[(i&p)+4>>2]=-1;b[(C&o)>>1]=256;i=-1;h=-1;K=104}h:do if((K|0)==104)if((c[(D&p)>>2]|0)==2){l=c[(E&p)>>2]|0;m=0;i:while(1){j=m+1|0;if((b[(l&o)+18>>1]|0)!=512)if(!m)r=l;else break h;else{q=c[(l&p)+12>>2]|0;if((c[(q&p)+12>>2]|0)<=(m|0))break h;r=(c[(q&p)+20>>2]|0)+(m*48|0)|0}if(!r)break h;else s=0;while(1){if((b[(l&o)+66>>1]|0)==512){q=c[(l&p)+60>>2]|0;if((c[(q&p)+12>>2]|0)<=(s|0)){m=j;continue i}q=(c[(q&p)+20>>2]|0)+(s*48|0)|0;if(!q){m=j;continue i}}else if(!s)q=l+48|0;else{m=j;continue i}Cv(f,r,q);l=c[(E&p)>>2]|0;s=s+1|0}}}while(0);if(!((i|0)==0&(h|0)==0)){u=F+68|0;t=-1;v=0;while(1){q=c[(D&p)>>2]|0;if((q|0)<=0)break d;s=c[(E&p)>>2]|0;while(1){j=q;q=q+-1|0;l=s+20|0;b[(l&o)>>1]=e[(l&o)>>1]&65471;l=c[(s&p)+8>>2]|0;if((l|0)!=(t|0)){m=c[(u&p)>>2]|0;j:do if((m|0)>0){r=0;while(1){if((c[(F+(r<<2)&p)+72>>2]|0)==(l|0))break;r=r+1|0;if((r|0)>=(m|0)){r=0;m=0;break j}}r=iw(1,0,r|0)|0;m=G}else{r=0;m=0}while(0);if(!((r&i|0)==0&(m&h|0)==0)){r=j;break}}if((q|0)<=0)break d;else s=s+48|0}m=c[(s&p)+12>>2]|0;if((r|0)<1)break d;else r=l;while(1){if((r|0)==(l|0)){if((c[(s&p)+12>>2]|0)!=(m|0)){q=l;m=1;break}t=kv(c[((c[(s&p)>>2]|0)&p)+16>>2]|0)|0;if(!(t<<24>>24==0|t<<24>>24==(kv(c[((c[(s&p)>>2]|0)&p)+12>>2]|0)|0)<<24>>24)){q=l;m=1;break}t=s+20|0;b[(t&o)>>1]=e[(t&o)>>1]|64}else{t=s+20|0;b[(t&o)>>1]=e[(t&o)>>1]&65471}if((q|0)<=0){q=l;m=0;break}r=c[(s&p)+56>>2]|0;q=q+-1|0;s=s+48|0}v=v+1|0;if(!((v|0)<2&m))break;else t=q}if(!m){l=c[(D&p)>>2]|0;if((l|0)>0){m=0;i=0;j=c[(E&p)>>2]|0;while(1){l=l+-1|0;if(b[(j&o)+20>>1]&64){m=Mr(V,c[((c[(j&p)>>2]|0)&p)+16>>2]|0,0,0)|0;i=lr(c[(F&p)>>2]|0,i,m)|0;m=c[((c[(j&p)>>2]|0)&p)+12>>2]|0}if((l|0)<=0){l=m;break}else j=j+48|0}}else{l=0;i=0}j=Zq(T,75,Mr(V,l,0,0)|0,0,0)|0;if(!j)Nk(V,i);else{t=j+4|0;c[(t&p)>>2]=c[(t&p)>>2]|c[(Q&p)>>2]&1;b[(j&o)+36>>1]=b[(U&o)+36>>1]|0;c[(j&p)+20>>2]=i;t=zv(f,j,3)|0;Eu(f,t);k=c[(W&p)>>2]|0;c[(k+(t*48|0)&p)+4>>2]=g;b[(k+(t*48|0)&o)+16>>1]=b[(k+(g*48|0)&o)+16>>1]|0;t=k+(g*48|0)+22|0;a[(t&n)>>0]=(a[(t&n)>>0]|0)+1<<24>>24}b[(k+(g*48|0)&o)+18>>1]=2048}}}}else c[(k+(g*48|0)&p)+12>>2]=0;while(0);h=(c[(W&p)>>2]|0)+(g*48|0)|0}while(0);k:do if((a[(f&n)+8>>0]|0)==72){x=c[(T&p)>>2]|0;if((a[(U&n)>>0]|0)==-103){w=U+20|0;t=c[(w&p)>>2]|0;if((t|0)!=0?(c[(t&p)>>2]|0)==2:0){m=c[(U&p)+8>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-m&1073741823}l=Sh(x,m,l,2,1,0)|0;if(((((l|0)!=0?(H=b[(l&o)+2>>1]|0,(H&4)!=0):0)?(N=c[(l&p)+4>>2]|0,L=a[(N&n)>>0]|0,M=a[(N&n)+1>>0]|0,N=a[(N&n)+2>>0]|0,P=(H&65535)>>>3&1,I=(c[(w&p)>>2]|0)+4|0,J=c[((c[(I&p)>>2]|0)&p)+20>>2]|0,(a[(J&n)>>0]|0)==-102):0)?(kv(J)|0)<<24>>24==66:0)?(a[((c[(J&p)+44>>2]|0)&n)+44>>0]&16)==0:0){k=c[(c[(I&p)>>2]&p)>>2]|0;l:do if(!k)k=0;else while(1){j=c[(k&p)+4>>2]|0;if(!(j&4096))break l;if(!(j&262144))k=k+12|0;else k=c[((c[(k&p)+20>>2]|0)&p)+4>>2]|0;k=c[(k&p)>>2]|0;if(!k){k=0;break}}while(0);j=a[(k&n)>>0]|0;u=j<<24>>24==-121;do if(u){l=c[(T&p)+476>>2]|0;r=b[(k&o)+32>>1]|0;s=r<<16>>16;do if(!l){i=0;m=0}else{K=s+-1|0;J=c[(l&p)+60>>2]|0;i=J+(K*40|0)|0;if(b[(J+(K*40|0)&o)+8>>1]&1){i=0;m=0;break}m=c[(l&p)>>2]|0;q=mh(m,40,0)|0;if(!q){i=0;m=0;break}l=q+0|0;j=l+40|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(j|0));K=q+8|0;b[(K&o)>>1]=1;c[(q&p)+32>>2]=m;_g(q,i)|0;if((b[(K&o)>>1]&15)!=2){i=q;m=0;break}i=q;m=Sg(q,1)|0}while(0);l=c[(T&p)+8>>2]|0;if(r<<16>>16>32){c[(l&p)+188>>2]=-1;t=m;K=177;break}else{t=l+188|0;c[(t&p)>>2]=c[(t&p)>>2]|1<<s+-1;t=m;K=177;break}}else if(j<<24>>24==97){i=0;t=c[(k&p)+8>>2]|0;K=177}else i=0;while(0);do if((K|0)==177)if(t){m=0;while(1){K=a[(t+m&n)>>0]|0;j=K<<24>>24==L<<24>>24;l=m+1|0;if(K<<24>>24!=N<<24>>24&((K<<24>>24==0|j|K<<24>>24==M<<24>>24)^1))m=l;else break}if(m){if((a[(t+m+-1&n)>>0]|0)==-1)break;if(j)l=(a[(t+l&n)>>0]|0)==0;else l=0;q=l&1;v=tt(x,97,t)|0;if(v)a[((c[(v&p)+8>>2]|0)+m&n)>>0]=0;do if(u){m=c[(T&p)+8>>2]|0;j=b[(k&o)+32>>1]|0;if(j<<16>>16>32)c[(m&p)+188>>2]=-1;else{N=m+188|0;c[(N&p)>>2]=c[(N&p)>>2]|1<<(j<<16>>16)+-1}if(!l){q=0;break}if(!(a[((c[(k&p)+8>>2]|0)&n)+1>>0]|0))break;j=T+19|0;l=a[(j&n)>>0]|0;if(!(l<<24>>24)){N=T+72|0;j=(c[(N&p)>>2]|0)+1|0;c[(N&p)>>2]=j}else{N=l+-1<<24>>24;a[(j&n)>>0]=N;j=c[(T+((N&255)<<2)&p)+24>>2]|0}is(T,k,j)|0;k=c[(m&p)+32>>2]|0;if(k>>>0>0)c[((c[(m&p)+4>>2]|0)+((k+-1|0)*20|0)&p)+12>>2]=0;_r(T,j)}while(0);Mh(i);if(!t){K=217;break k}r=c[((c[((c[(w&p)>>2]|0)&p)+4>>2]|0)&p)+20>>2]|0;m=Mr(V,v,0,0)|0;s=P<<16>>16!=0;do if(!s){if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;i=h+20|0;b[(i&o)>>1]=e[(i&o)>>1]|1024;i=v+8|0;l=c[(i&p)>>2]|0;k=a[(l&n)>>0]|0;if(!(k<<24>>24))break;h=m+8|0;j=0;do{N=k&255;a[(l&n)>>0]=((d[(N&n)+10368>>0]|223)^32)&N;a[((c[(h&p)>>2]|0)+j&n)>>0]=a[(N&n)+9328>>0]|0;j=j+1|0;l=(c[(i&p)>>2]|0)+j|0;k=a[(l&n)>>0]|0}while(k<<24>>24!=0)}while(0);if(!(a[(O&n)>>0]|0)){k=c[(m&p)+8>>2]|0;if(!k)j=-1;else{j=k;while(1)if(!(a[(j&n)>>0]|0))break;else j=j+1|0;j=(j-k&1073741823)+-1|0}k=k+j|0;j=a[(k&n)>>0]|0;if(s)i=q;else{i=j<<24>>24==64?0:q;j=a[(j&255&n)+9328>>0]|0}a[(k&n)>>0]=(j&255)+1;l=i}else l=q;i=P<<16>>16==0?13752:11152;j=Zq(T,83,xv(T,Mr(V,r,0,0)|0,i)|0,v,0)|0;if(j){P=j+4|0;c[(P&p)>>2]=c[(P&p)>>2]|c[(Q&p)>>2]&1;b[(j&o)+36>>1]=b[(U&o)+36>>1]|0}k=zv(f,j,259)|0;Eu(f,k);i=Zq(T,82,xv(T,Mr(V,r,0,0)|0,i)|0,m,0)|0;if(i){P=i+4|0;c[(P&p)>>2]=c[(P&p)>>2]|c[(Q&p)>>2]&1;b[(i&o)+36>>1]=b[(U&o)+36>>1]|0}i=zv(f,i,259)|0;Eu(f,i);j=c[(W&p)>>2]|0;h=j+(g*48|0)|0;if(!l){K=217;break k}c[(j+(k*48|0)&p)+4>>2]=g;Q=j+(g*48|0)+16|0;b[(j+(k*48|0)&o)+16>>1]=b[(Q&o)>>1]|0;K=j+(g*48|0)+22|0;a[(K&n)>>0]=(a[(K&n)>>0]|0)+1<<24>>24;c[(j+(i*48|0)&p)+4>>2]=g;b[(j+(i*48|0)&o)+16>>1]=b[(Q&o)>>1]|0;a[(K&n)>>0]=(a[(K&n)>>0]|0)+1<<24>>24;K=217;break k}}while(0);Mh(i);K=217}else K=217}else K=217}}else K=217;while(0);if((K|0)==217)if(((((a[(U&n)>>0]|0)==-103?(dd(c[(U&p)+8>>2]|0,31416)|0)==0:0)?(X=c[(U&p)+20>>2]|0,(c[(X&p)>>2]|0)==2):0)?(Y=c[(X&p)+4>>2]|0,Z=c[(Y&p)+20>>2]|0,(a[(Z&n)>>0]|0)==-102):0)?(_=c[(Y&p)>>2]|0,$=Av(ba,_)|0,aa=G,ba=Av(ba,Z)|0,(ba&$|0)==0&(G&aa|0)==0):0){ba=zv(f,Zq(T,51,0,Mr(V,_,0,0)|0,0)|0,3)|0;h=c[(W&p)>>2]|0;_=h+(ba*48|0)+32|0;c[(_&p)>>2]=$;c[(_&p)+4>>2]=aa;c[(h+(ba*48|0)&p)+8>>2]=c[(Z&p)+28>>2];c[(h+(ba*48|0)&p)+12>>2]=b[(Z&o)+32>>1];b[(h+(ba*48|0)&o)+18>>1]=64;c[(h+(ba*48|0)&p)+4>>2]=g;b[(h+(ba*48|0)&o)+16>>1]=b[(h+(g*48|0)&o)+16>>1]|0;$=h+(g*48|0)+22|0;a[($&n)>>0]=(a[($&n)>>0]|0)+1<<24>>24;$=h+(g*48|0)+20|0;b[($&o)>>1]=e[($&o)>>1]|8;$=h+(g*48|0)+40|0;aa=c[($&p)+4>>2]|0;ba=h+(ba*48|0)+40|0;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa;h=h+(g*48|0)|0}g=h+32|0;aa=g;ba=c[(aa&p)+4>>2]|S;c[(g&p)>>2]=c[(aa&p)>>2]|R;c[(g&p)+4>>2]=ba}while(0);return}function Fu(a,d,e,f,g,h,k){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0;m=i;i=i+112|0;if((i|0)>=(j|0))fa();l=m;h=Dv(l,a,d,e,h,k)|0;a:do if(!h)h=0;else{k=h;h=0;do{d=k+32|0;e=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if((e&f|0)==0&(d&g|0)==0){if((e|0)==0&(d|0)==0?(b[(k&o)+18>>1]&2)!=0:0){h=k;break a}h=(h|0)==0?k:h}k=Ev(l)|0}while((k|0)!=0)}while(0);i=m;return h|0}function Gu(e,f,g){e=e|0;f=f|0;g=g|0;var l=0,m=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=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,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ca=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0,pa=0,qa=0;pa=i;i=i+16|0;if((i|0)>=(j|0))fa();ma=pa;z=c[(e&p)>>2]|0;ka=c[(z&p)>>2]|0;na=c[(ka&p)>>2]|0;ja=c[(e&p)+4>>2]|0;la=c[(e&p)+12>>2]|0;y=d[(la&n)+16>>0]|0;z=c[(z&p)+4>>2]|0;ha=c[(z+(y*72|0)&p)+24>>2]|0;B=c[(e&p)+8>>2]|0;ia=ja+20|0;ja=ja+12|0;l=c[(ja&p)>>2]|0;if((l|0)>0){r=c[(z+(y*72|0)&p)+48>>2]|0;s=0;m=0;t=c[(ia&p)>>2]|0;while(1){if((c[(t&p)+8>>2]|0)==(r|0))m=((b[(t&o)+18>>1]&-1153)<<16>>16!=0&1)+m|0;s=s+1|0;if((s|0)==(l|0))break;else t=t+48|0}}else m=0;if(!B)x=0;else{v=c[(B&p)>>2]|0;a:do if((v|0)>0){t=c[(B&p)+4>>2]|0;s=z+(y*72|0)+48|0;u=0;while(1){r=c[(t+(u*20|0)&p)>>2]|0;if((a[(r&n)>>0]|0)!=-102){l=u;break a}l=u+1|0;if((c[(r&p)+28>>2]|0)!=(c[(s&p)>>2]|0)){l=u;break a}if((l|0)<(v|0))u=l;else break}}else l=0;while(0);x=(l|0)==(v|0)?v:0}l=(m*20|0)+56+(x<<3)|0;ga=mh(na,l,0)|0;do if(!ga){th(ka,15776,ma);l=7}else{fw(ga|0,0,l|0)|0;l=ga+56|0;w=l+(m*12|0)|0;c[(ga&p)>>2]=m;aa=ga+8|0;c[(aa&p)>>2]=x;ca=ga+4|0;c[(ca&p)>>2]=l;c[(ga&p)+12>>2]=w;ea=ga+16|0;c[(ea&p)>>2]=w+(x<<3);r=c[(ja&p)>>2]|0;if((r|0)>0){u=c[(z+(y*72|0)&p)+48>>2]|0;t=0;v=0;s=c[(ia&p)>>2]|0;while(1){if((c[(s&p)+8>>2]|0)==(u|0)?(C=b[(s&o)+18>>1]|0,(C&-1153)<<16>>16!=0):0){c[(l+(v*12|0)&p)>>2]=c[(s&p)+12>>2];c[(l+(v*12|0)&p)+8>>2]=t;a[(l+(v*12|0)&n)+4>>0]=(C&255)==1?2:C&255;v=v+1|0}t=t+1|0;if((t|0)==(r|0))break;else s=s+48|0}}if((x|0)>0){l=c[(B&p)+4>>2]|0;m=0;do{c[(w+(m<<3)&p)>>2]=b[((c[(l+(m*20|0)&p)>>2]|0)&o)+32>>1];a[(w+(m<<3)&n)+4>>0]=a[(l+(m*20|0)&n)+12>>0]|0;m=m+1|0}while((m|0)!=(x|0))}E=la;c[(E&p)>>2]=0;c[(E&p)+4>>2]=0;E=la+18|0;b[(E&o)>>1]=0;c[(la&p)+36>>2]=1024;F=la+40|0;b[(F&o)>>1]=0;H=la+28|0;a[(H&n)>>0]=0;I=c[(ea&p)>>2]|0;J=c[(ga&p)>>2]|0;if(Nu(na,la,J)|0){mg(na,ga);l=7;break}_=ga+28|0;$=ga+24|0;K=ga+20|0;L=ga+32|0;M=ga+40|0;N=ga+48|0;O=ha+60|0;P=ka+64|0;S=(J|0)>0;T=la+30|0;U=la+24|0;V=la+32|0;W=la+29|0;X=la+20|0;Y=la+22|0;Z=la+48|0;z=0;C=0;B=0;b:while(1){if(!((C|0)!=0|(z&1|0)==0))if((z|0)>2){l=0;break}else D=z+1|0;else D=z;if((B|0)==0&(D|0)>1){l=0;break}t=c[(ga&p)>>2]|0;if((t|0)>0){m=c[(ia&p)>>2]|0;r=0;s=c[(ca&p)>>2]|0;while(1){z=c[(s&p)+8>>2]|0;if((D|0)==2)a[(s&n)+5>>0]=b[(m+(z*48|0)&o)+18>>1]&1^1;else if(!D){l=s+5|0;a[(l&n)>>0]=0;y=(b[(m+(z*48|0)&o)+18>>1]&1)==0;C=y?C:1;z=m+(z*48|0)+32|0;z=(c[(z&p)>>2]|0)!=0|(c[(z&p)+4>>2]|0)!=0;if(z|y^1)B=z?1:B;else a[(l&n)>>0]=1}else if((D|0)==1){y=m+(z*48|0)+32|0;a[(s&n)+5>>0]=(c[(y&p)>>2]|0)==0&(c[(y&p)+4>>2]|0)==0&1}else a[(s&n)+5>>0]=1;r=r+1|0;if((r|0)>=(t|0)){y=C;break}else s=s+12|0}}else y=C;fw(I|0,0,t<<3|0)|0;if(c[(_&p)>>2]|0)Wc(c[($&p)>>2]|0);c[(K&p)>>2]=0;c[(K&p)+4>>2]=0;c[(K&p)+8>>2]=0;c[(K&p)+12>>2]=0;h[(M&q)>>3]=5.e+98;l=N;c[(l&p)>>2]=25;c[(l&p)+4>>2]=0;l=c[(ka&p)>>2]|0;z=O;while(1){z=c[(z&p)>>2]|0;if((c[(z&p)>>2]|0)==(l|0))break;else z=z+24|0}C=c[(z&p)+8>>2]|0;z=rc[c[((c[(C&p)>>2]|0)&p)+12>>2]&127](C,ga)|0;do if((z|0)==7)a[((c[(ka&p)>>2]|0)&n)+65>>0]=1;else if(z){l=c[(C&p)+8>>2]|0;if(l){c[(ma&p)>>2]=l;th(ka,10344,ma);break}if((z|0)!=516){z=z&255;if(z>>>0>26|(z|0)==2)z=16328;else z=c[(z<<2&p)+15488>>2]|0}else z=16344;c[(ma&p)>>2]=z;th(ka,10344,ma)}while(0);z=C+8|0;Wc(c[(z&p)>>2]|0);c[(z&p)>>2]=0;z=c[(ga&p)>>2]|0;if((z|0)>0){l=0;do{if((a[((c[(ca&p)>>2]|0)+(l*12|0)&n)+5>>0]|0)==0?(c[((c[(ea&p)>>2]|0)+(l<<3)&p)>>2]|0)>0:0){c[(ma&p)>>2]=c[(ha&p)>>2];th(ka,34096,ma);z=c[(ga&p)>>2]|0}l=l+1|0}while((l|0)<(z|0))}l=c[(P&p)>>2]|0;if(l)break;C=c[(ca&p)>>2]|0;x=la;c[(x&p)>>2]=f;c[(x&p)+4>>2]=g;c:do if(S){z=0;do{c[((c[(Z&p)>>2]|0)+(z<<2)&p)>>2]=0;z=z+1|0}while((z|0)!=(J|0));b[(T&o)>>1]=0;if(S){r=f;m=g;l=0;x=0;z=-1;while(1){t=c[(I+(x<<3)&p)>>2]|0;u=t+-1|0;do if((t|0)>0){v=c[(C&p)+8>>2]|0;if((t|0)>(J|0)|(v|0)<0){oa=65;break b}if((v|0)>=(c[(ja&p)>>2]|0)){oa=65;break b}s=(c[(Z&p)>>2]|0)+(u<<2)|0;if(c[(s&p)>>2]|0){oa=65;break b}w=c[(ia&p)>>2]|0;qa=w+(v*48|0)+32|0;r=r|c[(qa&p)>>2];m=m|c[(qa&p)+4>>2];qa=la;c[(qa&p)>>2]=r;c[(qa&p)+4>>2]=m;c[(s&p)>>2]=w+(v*48|0);z=(u|0)>(z|0)?u:z;do if((t|0)<17){if(!(a[(I+(x<<3)&n)+4>>0]|0))break;l=(l&65535|1<<u)&65535;b[(T&o)>>1]=l}while(0);if(!(b[(w+(v*48|0)&o)+18>>1]&1))break;if(!(a[(I+(x<<3)&n)+4>>0]|0))break c;c[(L&p)>>2]=0}while(0);x=x+1|0;if((x|0)>=(J|0)){oa=73;break}else C=C+12|0}}else{z=-1;oa=73}}else{b[(T&o)>>1]=0;z=-1;oa=73}while(0);if((oa|0)==73){oa=0;b[(F&o)>>1]=z+1;c[(U&p)>>2]=c[(K&p)>>2];a[(H&n)>>0]=c[(_&p)>>2];c[(_&p)>>2]=0;c[(V&p)>>2]=c[($&p)>>2];if(!(c[(L&p)>>2]|0))z=0;else z=c[(aa&p)>>2]&255;a[(W&n)>>0]=z;b[(E&o)>>1]=0;A=+h[(M&q)>>3];h[(k&q)>>3]=A;z=c[(k&p)>>2]|0;l=c[(k&p)+4>>2]|0;do if(!(A<=1.0))if(!(A<=2.0e9)){z=mw(z|0,l|0,52)|0;z=jw(z|0,G|0,64514,0)|0;z=(z<<16>>16)*10&65535;break}else{z=fs(~~A>>>0,+R(A)>=1.0?(A>0.0?~~+da(+Q(A/4294967296.0),4294967295.0)>>>0:~~+ba((A-+(~~A>>>0))/4294967296.0)>>>0):0)|0;break}else z=0;while(0);b[(X&o)>>1]=z;x=N;b[(Y&o)>>1]=fs(c[(x&p)>>2]|0,c[(x&p)+4>>2]|0)|0;Fv(e,la)|0;if(a[(H&n)>>0]|0){Wc(c[(V&p)>>2]|0);a[(H&n)>>0]=0}}z=D+1|0;if((z|0)>=4){l=0;break}else C=y}if((oa|0)==65){c[(ma&p)>>2]=c[(ha&p)>>2];th(ka,34064,ma);l=1}if(c[(_&p)>>2]|0)Wc(c[($&p)>>2]|0);mg(na,ga)}while(0);i=pa;return l|0}function Hu(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,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,ga=0;ga=i;i=i+64|0;if((i|0)>=(j|0))fa();s=ga;r=ga+56|0;q=ga+52|0;b[(q&o)>>1]=-1;ca=c[(f&p)+12>>2]|0;da=c[(f&p)>>2]|0;J=c[(da&p)+4>>2]|0;K=d[(ca&n)+16>>0]|0;Z=J+(K*72|0)+8|0;m=J+(K*72|0)+24|0;L=c[(m&p)>>2]|0;_=c[(f&p)+4>>2]|0;$=J+(K*72|0)+76|0;k=c[($&p)>>2]|0;do if(!k){if(a[(L&n)+44>>0]&32){s=c[(L&p)+8>>2]|0;break}k=s+0|0;l=k+52|0;do{c[(k&p)>>2]=0;k=k+4|0}while((k|0)<(l|0));b[(s&o)+46>>1]=1;b[(s&o)+48>>1]=1;c[(s&p)+4>>2]=q;c[(s&p)+8>>2]=r;a[(s&n)+50>>0]=5;c[(s&p)+12>>2]=L;b[(s&o)+44>>1]=b[(L&o)+42>>1]|0;b[(r&o)>>1]=b[(L&o)+28>>1]|0;b[(r&o)+2>>1]=0;if(!(a[(J+(K*72|0)&n)+45>>0]&1))c[(s&p)+20>>2]=c[((c[(m&p)>>2]|0)&p)+8>>2]}else s=k;while(0);r=b[(L&o)+28>>1]|0;if(r<<16>>16<11)E=0;else{E=r<<16>>16;E=((fs(E,((E|0)<0)<<31>>31)|0)&65535)+65503&65535}if(((((((c[(f&p)+16>>2]|0)==0?(b[(da&o)+34>>1]&128)==0:0)?(c[((c[(c[(da&p)>>2]&p)>>2]|0)&p)+24>>2]&1048576|0)!=0:0)?(c[($&p)>>2]|0)==0:0)?(t=a[(J+(K*72|0)&n)+45>>0]|0,(t&5)==0):0)?(I=L+44|0,(t&10|a[(I&n)>>0]&32)<<24>>24==0):0)?(F=c[(_&p)+20>>2]|0,Y=c[(_&p)+12>>2]|0,H=F+(Y*48|0)|0,(Y|0)>0):0){y=ca+8|0;z=ca+24|0;A=ca+42|0;B=ca+28|0;C=ca+40|0;D=ca+48|0;u=(E&65535)+(r&65535)|0;q=u+4&65535;m=ca+18|0;l=L+12|0;u=u+28&65535;v=ca+22|0;w=ca+20|0;x=ca+36|0;r=F;do{t=r+32|0;Y=t;X=y;if(((c[(X&p)>>2]&c[(Y&p)>>2]|0)==0?(c[(X&p)+4>>2]&c[(Y&p)+4>>2]|0)==0:0)?(Mu(r,Z,0,0)|0)!=0:0){b[(z&o)>>1]=1;b[(A&o)>>1]=0;c[(B&p)>>2]=0;b[(C&o)>>1]=1;c[(c[(D&p)>>2]&p)>>2]=r;b[(m&o)>>1]=q;if((c[(l&p)>>2]|0)==0?(a[(I&n)>>0]&2)==0:0)b[(m&o)>>1]=u;b[(v&o)>>1]=43;b[(w&o)>>1]=Gv(E,43)|0;c[(x&p)>>2]=16384;X=t;Y=c[(X&p)+4>>2]|h;k=ca;c[(k&p)>>2]=c[(X&p)>>2]|g;c[(k&p)+4>>2]=Y;k=Fv(f,ca)|0}else k=0;r=r+48|0}while((k|0)==0&r>>>0<H>>>0)}else k=0;Y=ca+36|0;a:do if((k|0)==0&(s|0)!=0){P=ca+24|0;Q=ca+42|0;R=ca+40|0;S=ca+17|0;T=ca+18|0;U=ca+22|0;V=ca+28|0;W=J+(K*72|0)+48|0;X=ca+20|0;N=J+(K*72|0)+64|0;O=L+42|0;w=L+44|0;v=da+34|0;u=_+12|0;J=_+20|0;M=1;while(1){x=c[(s&p)+36>>2]|0;y=c[(W&p)>>2]|0;b:do if(x){k=c[(u&p)>>2]|0;if((k|0)>0){m=0;q=c[(J&p)>>2]|0;while(1){l=c[(q&p)>>2]|0;if(Hv(l,x,y)|0){if(!(c[(l&p)+4>>2]&1)){ea=32;break b}if((b[(l&o)+36>>1]|0)==(y|0)){ea=32;break b}}m=m+1|0;if((m|0)>=(k|0)){k=0;break}else q=q+48|0}}else k=0}else ea=32;while(0);if((ea|0)==32){ea=0;K=b[(c[(s&p)+8>>2]&o)>>1]|0;b[(P&o)>>1]=0;b[(Q&o)>>1]=0;b[(R&o)>>1]=0;a[(S&n)>>0]=0;b[(T&o)>>1]=0;L=ca;c[(L&p)>>2]=g;c[(L&p)+4>>2]=h;b[(U&o)>>1]=K;c[(V&p)>>2]=s;L=s+51|0;z=a[(L&n)>>0]|0;c:do if(((z&4)==0?(aa=c[((c[(f&p)>>2]|0)&p)+8>>2]|0,(aa|0)!=0):0)?(ba=c[(aa&p)>>2]|0,(ba|0)>0):0){I=c[(aa&p)+4>>2]|0;H=s+46|0;B=s+4|0;A=0;while(1){E=c[(I+(A*20|0)&p)>>2]|0;d:do if(!E)E=0;else while(1){D=c[(E&p)+4>>2]|0;if(!(D&4096))break d;if(!(D&262144))E=E+12|0;else E=c[((c[(E&p)+20>>2]|0)&p)+4>>2]|0;E=c[(E&p)>>2]|0;if(!E){E=0;break}}while(0);if((a[(E&n)>>0]|0)!=-102){A=0;break c}if((c[(E&p)+28>>2]|0)==(y|0)){D=b[(E&o)+32>>1]|0;if(D<<16>>16<0){A=1;break c}E=b[(H&o)>>1]|0;if(E<<16>>16){C=c[(B&p)>>2]|0;E=E&65535;F=0;do{if(D<<16>>16==(b[(C+(F<<1)&o)>>1]|0)){A=1;break c}F=F+1|0}while((F|0)<(E|0))}}A=A+1|0;if((A|0)>=(ba|0)){A=0;break}}}else A=0;while(0);do if((c[(s&p)+40>>2]|0)<1){c[(Y&p)>>2]=256;a[(S&n)>>0]=(A|0)!=0?M&255:0;b[(X&o)>>1]=(K&65535)+16;Iv(_,ca,K);k=Fv(f,ca)|0;b[(U&o)>>1]=K;if(k)break a}else{if(!(z&32)){H=N;I=c[(H&p)>>2]|0;H=c[(H&p)+4>>2]|0;F=s+4|0;E=0;D=0;C=e[(s&o)+48>>1]|0;e:while(1){B=C;while(1){C=B+-1|0;if((B|0)<=0)break e;B=b[((c[(F&p)>>2]|0)+(C<<1)&o)>>1]|0;if((B&65535)<63)break;else B=C}t=iw(1,0,B<<16>>16|0)|0;E=t|E;D=G|D}t=I&~E;x=H&~D;E=t;D=x;x=(t|0)==0&(x|0)==0?576:512}else{E=0;D=0;x=576}c[(Y&p)>>2]=x;t=(A|0)!=0;if(!t?(a[(w&n)>>0]&32)==0:0){if(!((E|0)==0&(D|0)==0))break;if(a[(L&n)>>0]&4)break;if((b[(s&o)+44>>1]|0)>=(b[(O&o)>>1]|0))break;if(!((b[(v&o)>>1]&4)==0&(c[2190]|0)!=0))break;if(b[((c[(c[(da&p)>>2]&p)>>2]|0)&o)+60>>1]&64)break}a[(S&n)>>0]=t?M&255:0;r=K<<16>>16;t=r+1+(((b[(s&o)+44>>1]|0)*15|0)/(b[(O&o)>>1]|0)|0)&65535;if(!((E|0)==0&(D|0)==0))t=Gv(t,r+16&65535)|0;b[(X&o)>>1]=t;Iv(_,ca,K);k=Fv(f,ca)|0;b[(U&o)>>1]=K;if(k)break a}while(0);k=Jv(f,Z,s,0)|0;if(c[($&p)>>2]|0)break a}s=c[(s&p)+20>>2]|0;if(!((k|0)==0&(s|0)!=0))break;else M=M+1|0}}while(0);i=ga;return k|0}function Iu(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0;ca=i;i=i+608|0;if((i|0)>=(j|0))fa();aa=ca+168|0;_=ca+576|0;$=ca+112|0;Y=ca+56|0;Z=ca;k=c[(f&p)>>2]|0;V=c[(f&p)+4>>2]|0;r=c[(V&p)+20>>2]|0;q=c[(V&p)+12>>2]|0;X=r+(q*48|0)|0;U=c[(f&p)+12>>2]|0;l=$+0|0;m=l+56|0;do{c[(l&p)>>2]=0;l=l+4|0}while((l|0)<(m|0));m=c[(k&p)+4>>2]|0;l=d[(U&n)+16>>0]|0;T=c[(m+(l*72|0)&p)+48>>2]|0;a:do if((q|0)>0){D=U+8|0;E=_+8|0;F=_+16|0;G=U+40|0;H=U+48|0;I=U+36|0;J=U+18|0;K=U+17|0;L=U+24|0;M=U+20|0;N=U+22|0;O=aa+4|0;P=aa+8|0;Q=aa+12|0;R=aa+20|0;S=_+4|0;z=m+(l*72|0)+24|0;A=Z+8|0;B=$+8|0;C=Y+8|0;while(1){b:do if((b[(r&o)+18>>1]&256)!=0?(W=c[(r&p)+12>>2]|0,w=W+408|0,v=D,!((c[(v&p)>>2]&c[(w&p)>>2]|0)==0?(c[(v&p)+4>>2]&c[(w&p)+4>>2]|0)==0:0)):0){q=W+20|0;y=(c[(q&p)>>2]|0)+((c[(W&p)+12>>2]|0)*48|0)|0;c[(_&p)>>2]=c[(f&p)>>2];c[(_&p)+4>>2]=c[(f&p)+4>>2];c[(_&p)+8>>2]=c[(f&p)+8>>2];c[(_&p)+12>>2]=c[(f&p)+12>>2];c[(E&p)>>2]=0;c[(F&p)>>2]=Y;q=c[(q&p)>>2]|0;c:do if(q>>>0<y>>>0){l=1;k=0;d:while(1){if(!(b[(q&o)+18>>1]&512))if((c[(q&p)+8>>2]|0)==(T|0)){c[(aa&p)>>2]=c[(V&p)>>2];c[(O&p)>>2]=V;a[(P&n)>>0]=72;c[(Q&p)>>2]=1;c[(R&p)>>2]=q;m=aa;ba=10}else m=l;else{m=c[(q&p)+12>>2]|0;ba=10}do if((ba|0)==10){ba=0;c[(S&p)>>2]=m;b[(Y&o)>>1]=0;if(!(a[((c[(z&p)>>2]|0)&n)+44>>0]&16))k=Hu(_,g,h)|0;else k=Gu(_,g,h)|0;if(!k)k=Iu(_,g,h)|0;m=b[(Y&o)>>1]|0;if(!(m<<16>>16))break d;if(l){b[($&o)>>1]=m;kw(B|0,C|0,(m&65535)<<4|0)|0;m=0;break}w=b[($&o)>>1]|0;b[(Z&o)>>1]=w;x=w&65535;kw(A|0,B|0,x<<4|0)|0;b[($&o)>>1]=0;if(!(w<<16>>16))m=0;else{w=0;do{if(!(m<<16>>16))m=0;else{s=Z+(w<<4)+8|0;l=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0;t=b[(Z+(w<<4)&o)+16>>1]|0;u=b[(Z+(w<<4)&o)+18>>1]|0;v=0;do{da=Y+(v<<4)+8|0;ea=c[(da&p)>>2]|l;da=c[(da&p)+4>>2]|s;m=Gv(t,b[(Y+(v<<4)&o)+16>>1]|0)|0;Kv($,ea,da,m,Gv(u,b[(Y+(v<<4)&o)+18>>1]|0)|0);v=v+1|0;m=b[(Y&o)>>1]|0}while((v|0)<(m&65535|0))}w=w+1|0}while((w|0)<(x|0));m=0}}while(0);q=q+48|0;if(q>>>0>=y>>>0)break c;else l=m}b[($&o)>>1]=0}else k=0;while(0);b[(G&o)>>1]=1;c[(c[(H&p)>>2]&p)>>2]=r;c[(I&p)>>2]=8192;b[(J&o)>>1]=0;a[(K&n)>>0]=0;c[(L&p)>>2]=0;c[(L&p)+4>>2]=0;c[(L&p)+8>>2]=0;if(k)break a;q=e[($&o)>>1]|0;m=0;while(1){if((m|0)>=(q|0))break b;b[(M&o)>>1]=(e[($+(m<<4)&o)+16>>1]|0)+1;b[(N&o)>>1]=b[($+(m<<4)&o)+18>>1]|0;v=$+(m<<4)+8|0;w=c[(v&p)+4>>2]|0;k=U;c[(k&p)>>2]=c[(v&p)>>2];c[(k&p)+4>>2]=w;k=Fv(f,U)|0;if(!k)m=m+1|0;else break a}}while(0);r=r+48|0;if(r>>>0>=X>>>0){k=0;break}}}else k=0;while(0);i=ca;return k|0}function Ju(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=d+48|0;f=c[(e&p)>>2]|0;g=d+56|0;if((f|0)!=(g|0))mg(a,f);Lv(a,d);c[(e&p)>>2]=g;b[(d&o)+40>>1]=0;b[(d&o)+44>>1]=3;c[(d&p)+36>>2]=0;return}function Ku(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,da=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+32|0;if((i|0)>=(j|0))fa();ea=oa+24|0;aa=oa+16|0;ia=oa+8|0;na=oa;da=c[(d&p)>>2]|0;ka=c[(da&p)>>2]|0;r=a[(d&n)+41>>0]|0;la=r&255;if((r&255)<2)Y=1;else Y=r<<24>>24==2?5:10;ma=d+8|0;l=c[(ma&p)>>2]|0;ga=f<<16>>16==0;if((l|0)==0|ga)X=0;else X=c[(l&p)>>2]|0;m=X<<1;ja=m+(ca((la<<3)+64|0,Y)|0)|0;ja=mh(ka,ja,((ja|0)<0)<<31>>31)|0;do if(ja){l=ja+(Y<<5)|0;c[(l&p)>>2]=0;c[(l&p)+4>>2]=0;c[(l&p)+8>>2]=0;c[(l&p)+12>>2]=0;c[(l&p)+16>>2]=0;c[(l&p)+20>>2]=0;c[(l&p)+24>>2]=0;c[(l&p)+28>>2]=0;g=Y<<1;q=ca(Y,-2)|0;q=ja+((ca((((q|0)>-1?q:1073741823)+(Y<<1)<<2)+4|0,la)|0)+(Y<<6))|0;k=g;h=ja;g=ja+(g<<5)|0;while(1){c[(h&p)+24>>2]=g;k=k+-1|0;if((k|0)<=0)break;else{h=h+32|0;g=g+(la<<2)|0}}k=(X|0)!=0;if(k)fw(q|0,0,m|0)|0;else q=0;W=c[(da&p)+424>>2]|0;b[(ja+(Y<<5)&o)+16>>1]=W>>>0<48?W&65535:48;if(k)a[(ja+(Y<<5)&n)+22>>0]=r<<24>>24!=0?-1:X&255;W=r<<24>>24==0;if(!W){S=d+16|0;T=d+34|0;U=f<<16>>16<11;V=(f&65535)+16|0;P=f<<16>>16;Q=((P|0)<0)<<31>>31;R=Y>>>0>1;g=ja;O=0;m=0;r=0;f=0;h=1;while(1){if((h|0)>0){J=O&65535;K=O<<2;L=g+18|0;M=g+16|0;N=0;k=0;I=l;while(1){s=c[(S&p)>>2]|0;if(s){D=I+22|0;E=I+16|0;F=I+20|0;G=I+24|0;H=I+8|0;C=k;while(1){u=a[(D&n)>>0]|0;v=aa;c[(v&p)>>2]=0;c[(v&p)+4>>2]=0;v=s;k=I;t=c[(k&p)>>2]|0;k=c[(k&p)+4>>2]|0;a:do if(((c[(v&p)>>2]&~t|0)==0?(c[(v&p)+4>>2]&~k|0)==0:0)?(Z=s+8|0,$=Z,_=c[($&p)>>2]|0,$=c[($&p)+4>>2]|0,(_&t|0)==0&($&k|0)==0):0){y=e[(E&o)>>1]|0;A=Gv(b[(s&o)+18>>1]|0,y+(e[(s&o)+20>>1]|0)&65535)|0;A=Gv(A,b[(F&o)>>1]|0)|0;y=(e[(s&o)+22>>1]|0)+y|0;B=y&65535;x=_|t;v=$|k;if(u<<24>>24<0)z=Mv(d,c[(ma&p)>>2]|0,I,b[(T&o)>>1]|0,J,s,aa)|0;else{k=H;t=c[(k&p)+4>>2]|0;z=aa;c[(z&p)>>2]=c[(k&p)>>2];c[(z&p)+4>>2]=t;z=u}u=z<<24>>24;if(z<<24>>24>-1&(X|0)>(u|0)){w=q+(u<<1)|0;t=b[(w&o)>>1]|0;if(!(t<<16>>16)){u=((X-u|0)*100|0)/(X|0)|0;u=(fs(u,((u|0)<0)<<31>>31)|0)&65535;if(U)k=0;else k=((fs(P,Q)|0)&65535)+65503&65535;u=V+(((u<<16)+-4325376|0)>>>16)+k|0;if(b[(T&o)>>1]&1024)u=(u&65535)+16|0;t=u&65535;b[(w&o)>>1]=t}w=Gv(A,t)|0}else w=A;b:do if((C|0)>0){u=0;t=g;while(1){k=t;if(((c[(k&p)>>2]|0)==(x|0)?(c[(k&p)+4>>2]|0)==(v|0):0)?(a[(t&n)+22>>0]^z)<<24>>24>-1:0)break;u=u+1|0;if((u|0)>=(C|0)){ba=35;break b}else t=t+32|0}k=b[(t&o)+18>>1]|0;if(k<<16>>16<w<<16>>16){k=C;break a}if(k<<16>>16!=w<<16>>16){k=C;break}if((b[(t&o)+16>>1]|0)>(y<<16>>16|0))k=C;else{k=C;break a}}else ba=35;while(0);if((ba|0)==35){ba=0;t=(C|0)<(Y|0);if(!t){if(w<<16>>16>m<<16>>16){k=C;break}if(!(w<<16>>16!=m<<16>>16?1:A<<16>>16<f<<16>>16)){k=C;break}}k=(t&1)+C|0;t=g+((t?C:r)<<5)|0}u=I;y=Z;v=c[(y&p)+4>>2]|c[(u&p)+4>>2];x=t;c[(x&p)>>2]=c[(y&p)>>2]|c[(u&p)>>2];c[(x&p)+4>>2]=v;x=aa;v=c[(x&p)+4>>2]|0;u=t+8|0;c[(u&p)>>2]=c[(x&p)>>2];c[(u&p)+4>>2]=v;b[(t&o)+16>>1]=B;b[(t&o)+18>>1]=w;b[(t&o)+20>>1]=A;a[(t&n)+22>>0]=z;t=t+24|0;kw(c[(t&p)>>2]|0,c[(G&p)>>2]|0,K|0)|0;c[((c[(t&p)>>2]|0)+(O<<2)&p)>>2]=s;if((k|0)<(Y|0))break;m=b[(L&o)>>1]|0;f=b[(M&o)>>1]|0;if(R){v=g;w=1;u=m;r=0;t=f}else{r=0;break}while(1){m=b[(v&o)+50>>1]|0;do if(m<<16>>16<=u<<16>>16){if(m<<16>>16!=u<<16>>16){m=u;f=t;break}f=b[(v&o)+52>>1]|0;if(f<<16>>16>t<<16>>16)ba=48;else{m=u;f=t}}else{f=b[(v&o)+52>>1]|0;ba=48}while(0);v=v+32|0;if((ba|0)==48){ba=0;r=w}w=w+1|0;if((w|0)>=(Y|0))break;else{u=m;t=f}}}else k=C;while(0);s=c[(s&p)+52>>2]|0;if(!s)break;else C=k}}N=N+1|0;if((N|0)==(h|0)){h=k;break}else I=I+32|0}}else h=0;O=O+1|0;if((O|0)>=(la|0))break;else{N=g;g=l;l=N}}if(!h){th(da,34008,ea);mg(ka,ja);break}if((h|0)>1){k=1;l=g;do{if((b[(l&o)+18>>1]|0)>(b[(g+(k<<5)&o)+18>>1]|0))l=g+(k<<5)|0;k=k+1|0}while((k|0)!=(h|0))}else l=g;if(!W){h=d+4|0;k=c[(l&p)+24>>2]|0;g=0;do{ba=c[(k+(g<<2)&p)>>2]|0;c[(d+(g*80|0)&p)+800>>2]=ba;ba=a[(ba&n)+16>>0]|0;a[(d+(g*80|0)&n)+780>>0]=ba;c[(d+(g*80|0)&p)+740>>2]=c[((c[(h&p)>>2]|0)+((ba&255)*72|0)&p)+48>>2];g=g+1|0}while((g|0)<(la|0))}}h=d+34|0;if(((b[(h&o)>>1]&1536)==1024?(ha=d+40|0,!((a[(ha&n)>>0]|0)!=0|ga)):0)?(ba=d+12|0,aa=la+-1|0,aa=(Mv(d,c[(ba&p)>>2]|0,l,512,aa&65535,c[((c[(l&p)+24>>2]|0)+(aa<<2)&p)>>2]|0,ia)|0)<<24>>24,(aa|0)==(c[(c[(ba&p)>>2]&p)>>2]|0)):0)a[(ha&n)>>0]=2;k=c[(ma&p)>>2]|0;if(k){g=b[(h&o)>>1]|0;h=a[(l&n)+22>>0]|0;if(g&512){if((h<<24>>24|0)==(c[(k&p)>>2]|0))a[(d&n)+40>>0]=2}else{a[(d&n)+36>>0]=h<<24>>24<0?0:h;$=l+8|0;aa=c[($&p)+4>>2]|0;ba=d+24|0;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa}if(((g&2048)!=0?(a[(d&n)+36>>0]|0)==(c[(k&p)>>2]|0):0)?(ba=na,c[(ba&p)>>2]=0,c[(ba&p)+4>>2]=0,ba=la+-1|0,ba=(Mv(d,k,l,0,ba&65535,c[((c[(l&p)+24>>2]|0)+(ba<<2)&p)>>2]|0,na)|0)<<24>>24,(ba|0)==(c[(c[(ma&p)>>2]&p)>>2]|0)):0){a[(d&n)+37>>0]=1;$=na;aa=c[($&p)+4>>2]|0;ba=d+24|0;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa}}b[(d&o)+32>>1]=b[(l&o)+16>>1]|0;mg(ka,ja)}while(0);i=oa;return}function Lu(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;if((b|0)!=0?(g=c[(b&p)>>2]|0,(g|0)>0):0){e=c[(b&p)+4>>2]|0;d=0;b=0;f=0;do{h=Av(a,c[(e+(f*20|0)&p)>>2]|0)|0;d=h|d;b=G|b;f=f+1|0}while((f|0)<(g|0))}else{b=0;d=0}G=b;return d|0}function Mu(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0;do if((((c[(d&p)+8>>2]|0)==(c[(e&p)+40>>2]|0)?(b[(d&o)+18>>1]&2)!=0:0)?(i=d+32|0,(c[(i&p)>>2]&f|0)==0?(c[(i&p)+4>>2]&g|0)==0:0):0)?(h=c[(d&p)+12>>2]|0,(h|0)>=0):0){f=a[((c[((c[(e&p)+16>>2]|0)&p)+4>>2]|0)+(h*24|0)&n)+21>>0]|0;g=(nv(c[(d&p)>>2]|0)|0)<<24>>24;if((g|0)==66){g=f<<24>>24==66&1;break}else if((g|0)==65){g=1;break}else{g=f<<24>>24>66&1;break}}else g=0;while(0);return g|0}function Nu(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0;j=d+44|0;if((e[(j&o)>>1]|0|0)<(f|0)){g=f+7&-8;h=mh(a,g<<2,0)|0;if(!h)f=7;else{i=d+48|0;kw(h|0,c[(i&p)>>2]|0,(e[(j&o)>>1]|0)<<2|0)|0;f=c[(i&p)>>2]|0;if((f|0)!=(d+56|0))mg(a,f);c[(i&p)>>2]=h;b[(j&o)>>1]=g;f=0}}else f=0;return f|0}function Ou(a,b,d){a=a|0;b=b|0;d=d|0;do if(!(c[(b&p)+4>>2]&256)){if((d|0)!=0?(c[(d&p)+4>>2]&256|0)!=0:0){b=cu(a,d)|0;break}b=cu(a,b)|0;if(!b)b=cu(a,d)|0}else b=cu(a,b)|0;while(0);return b|0}function Pu(e,f,g,h,k,l){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;B=i;i=i+144|0;if((i|0)>=(j|0))fa();w=B;A=B+8|0;r=B+36|0;if(((a[(e&n)+450>>0]|0)==2?(t=d[(g&n)+44>>0]|0,z=c[(e&p)+8>>2]|0,q=c[(e&p)>>2]|0,y=c[(e&p)+464>>2]|0,v=c[(g&p)+64>>2]|0,x=v+36|0,u=c[(x&p)>>2]|0,(u&8192|0)==0):0)?(m=l&65535,(m&64|0)==0):0){l=u&48;do if(!l){if((u&1024|0)==0?(b[(v&o)+24>>1]|0)!=0:0){s=1;break}s=(m&3|0)!=0}else s=1;while(0);c[(A&p)+4>>2]=r;c[(A&p)+8>>2]=r;c[(A&p)+12>>2]=0;c[(A&p)+16>>2]=100;c[(A&p)+20>>2]=1e9;a[(A&n)+24>>0]=1;a[(A&n)+25>>0]=0;c[(A&p)>>2]=q;e=s?33576:33584;g=e;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;Sk(A,e,g-e&1073741823);if(!(c[(f+(t*72|0)&p)+28>>2]|0)){c[(w&p)>>2]=c[(f+(t*72|0)&p)+16>>2];En(A,0,33608,w)}else{c[(w&p)>>2]=d[(f+(t*72|0)&n)+46>>0];En(A,0,33592,w)}e=c[(f+(t*72|0)&p)+20>>2]|0;if(e){c[(w&p)>>2]=e;En(A,0,33624,w)}do if(!(u&1280)){m=v+28|0;g=c[(m&p)>>2]|0;l=f+(t*72|0)+24|0;if((a[((c[(l&p)>>2]|0)&n)+44>>0]&32)!=0?(a[(g&n)+51>>0]&3)==2:0)if(s)e=33632;else break;else if(!(u&131072))if(!(u&16384))e=(u&64|0)==0?33744:33720;else e=33688;else e=33648;Sk(A,33760,7);c[(w&p)>>2]=c[(g&p)>>2];En(A,0,e,w);u=b[(v&o)+24>>1]|0;s=c[((c[(l&p)>>2]|0)&p)+4>>2]|0;r=c[((c[(m&p)>>2]|0)&p)+4>>2]|0;g=u&65535;if(!(u<<16>>16)){if(!(c[(x&p)>>2]&48))break;Sk(A,33904,2);m=0}else{l=b[(v&o)+42>>1]|0;Sk(A,33904,2);l=l&65535;m=0;do{e=b[(r+(m<<1)&o)>>1]|0;if(e<<16>>16<0)e=20456;else e=c[(s+((e<<16>>16)*24|0)&p)>>2]|0;if((m|0)<(l|0)){if(m)Sk(A,33920,5);c[(w&p)>>2]=e;En(A,0,33928,w)}else Nv(A,m,e,33912);m=m+1|0}while((m|0)<(g|0));m=g>>>0>1?g:1}l=c[(x&p)>>2]|0;if(!(l&32))e=m;else{l=b[(r+(m<<1)&o)>>1]|0;if(l<<16>>16<0)l=20456;else l=c[(s+((l<<16>>16)*24|0)&p)>>2]|0;Nv(A,m,l,33936);l=c[(x&p)>>2]|0;e=m+1|0}if(l&16){m=b[(r+(m<<1)&o)>>1]|0;if(m<<16>>16<0)m=20456;else m=c[(s+((m<<16>>16)*24|0)&p)>>2]|0;Nv(A,e,m,33944)}Sk(A,33952,1)}else{if((u&256|0)==0|(u&15|0)==0){if(!(u&1024))break;u=c[(v&p)+32>>2]|0;c[(w&p)>>2]=c[(v&p)+24>>2];c[(w&p)+4>>2]=u;En(A,0,33872,w);break}if(!(u&5))if((l|0)==48)l=33784;else l=(u&32|0)==0?33824:33808;else l=33768;Sk(A,33840,27);m=l;while(1)if(!(a[(m&n)>>0]|0))break;else m=m+1|0;Sk(A,l,m-l&1073741823)}while(0);u=tg(A)|0;xh(z,wh(z,157,y,h,k)|0,u,-1)}i=B;return}function Qu(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,k=0,l=0,m=0,o=0;l=c[(d&p)>>2]|0;o=c[(b&p)+8>>2]|0;i=a[(l&n)>>0]|0;do if(i<<24>>24==76)wh(o,28,0,h,0)|0;else if(i<<24>>24==79)h=is(b,c[(l&p)+16>>2]|0,h)|0;else{j=c[(e&p)+64>>2]|0;i=j+36|0;if(((c[(i&p)>>2]&1024|0)==0?(k=c[(j&p)+28>>2]|0,(k|0)!=0):0)?(a[((c[(k&p)+28>>2]|0)+f&n)>>0]|0)!=0:0)g=(g|0)==0&1;m=mv(b,l,4,0)|0;if((m|0)==4)g=(g|0)==0&1;l=c[(l&p)+28>>2]|0;f=(g|0)!=0;wh(o,f?105:108,l,0,0)|0;c[(i&p)>>2]=c[(i&p)>>2]|2048;k=e+56|0;i=c[(k&p)>>2]|0;if(!i){c[(e&p)+16>>2]=xs(o)|0;i=c[(k&p)>>2]|0}j=i+1|0;c[(k&p)>>2]=j;i=e+60|0;j=Wl(c[(b&p)>>2]|0,c[(i&p)>>2]|0,j*12|0,0)|0;c[(i&p)>>2]=j;if(!j){c[(k&p)>>2]=0;break}i=(c[(k&p)>>2]|0)+-1|0;c[(j+(i*12|0)&p)>>2]=l;if((m|0)==1)g=wh(o,103,l,h,0)|0;else g=wh(o,47,l,0,h)|0;c[(j+(i*12|0)&p)+4>>2]=g;a[(j+(i*12|0)&n)+8>>0]=f?6:7;wh(o,76,h,0,0)|0}while(0);Ru(e,d);return h|0}function Ru(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;a:do if(e){i=d+72|0;h=0;while(1){f=e+20|0;g=b[(f&o)>>1]|0;if(g&4)break a;if((c[(d&p)>>2]|0)!=0?(c[((c[(e&p)>>2]|0)&p)+4>>2]&1|0)==0:0)break a;j=i;k=e+40|0;if(!((c[(k&p)>>2]&c[(j&p)>>2]|0)==0?(c[(k&p)+4>>2]&c[(j&p)+4>>2]|0)==0:0))break a;g=g&65535;b[(f&o)>>1]=g|((h|0)==0|(g&1024|0)==0?4:512);g=c[(e&p)+4>>2]|0;if((g|0)<0)break a;e=c[((c[(e&p)+24>>2]|0)&p)+20>>2]|0;j=e+(g*48|0)+22|0;f=(a[(j&n)>>0]|0)+-1<<24>>24;a[(j&n)>>0]=f;if(f<<24>>24)break a;e=e+(g*48|0)|0;if(!e)break;else h=h+1|0}}while(0);return}function Su(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,m=0,q=0;do if(!(b[((c[(d&p)>>2]|0)&o)+60>>1]&2)){k=d+116|0;j=0;h=k;while(1){i=h+12|0;if(!(c[(i&p)>>2]|0)){q=4;break}j=j+1|0;if((j|0)>=10){l=0;h=-1;m=2147483647;break}else h=h+20|0}if((q|0)==4){c[(h&p)+8>>2]=c[(d&p)+100>>2];c[(h&p)>>2]=e;b[(h&o)+4>>1]=f;c[(i&p)>>2]=g;a[(h&n)+6>>0]=0;g=d+104|0;e=c[(g&p)>>2]|0;c[(g&p)>>2]=e+1;c[(h&p)+16>>2]=e;break}while(1){j=c[(k&p)+16>>2]|0;i=(j|0)<(m|0);h=i?l:h;l=l+1|0;if((l|0)==10)break;else{m=i?j:m;k=k+20|0}}if((h|0)>-1){c[(d+(h*20|0)&p)+124>>2]=c[(d&p)+100>>2];c[(d+(h*20|0)&p)+116>>2]=e;b[(d+(h*20|0)&o)+120>>1]=f;c[(d+(h*20|0)&p)+128>>2]=g;a[(d+(h*20|0)&n)+122>>0]=0;g=d+104|0;e=c[(g&p)>>2]|0;c[(g&p)>>2]=e+1;c[(d+(h*20|0)&p)+132>>2]=e}}while(0);return}function Tu(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,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=c[(d&p)+8>>2]|0;m=c[(e&p)+64>>2]|0;q=b[(m&o)+24>>1]|0;s=b[(m&o)+42>>1]|0;w=c[(m&p)+28>>2]|0;t=d+72|0;l=c[(t&p)>>2]|0;i=l+1|0;v=q&65535;r=v+g|0;c[(t&p)>>2]=l+r;t=c[(d&p)>>2]|0;w=kh(t,ot(u,w)|0)|0;t=(w|0)!=0;if(!t)a[((c[(d&p)>>2]|0)&n)+65>>0]=1;if(s<<16>>16){g=c[(e&p)+8>>2]|0;j=(f|0)!=0;wh(u,j?105:108,g,0,0)|0;k=wh(u,16,0,0,0)|0;l=s&65535;j=wh(u,j?62:65,g,0,i)|0;xh(u,j,l,-14);c[(e&p)+20>>2]=j;j=c[(u&p)+32>>2]|0;if(j>>>0>k>>>0)c[((c[(u&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=j;c[((c[(u&p)+24>>2]|0)&p)+88>>2]=j+-1;k=0;do{wh(u,47,g,k,k+i|0)|0;k=k+1|0}while((k|0)<(l|0))}if((s&65535)<(q&65535)){m=m+48|0;l=e+12|0;q=(r|0)==1;r=s&65535;k=i;while(1){j=c[((c[(m&p)>>2]|0)+(r<<2)&p)>>2]|0;g=r+k|0;i=Qu(d,j,e,r,f,g)|0;do if((i|0)!=(g|0))if(q){_r(d,k);break}else{wh(u,34,i,g,0)|0;i=k;break}else i=k;while(0);if(!(b[(j&o)+18>>1]&129)){g=c[((c[(j&p)>>2]|0)&p)+16>>2]|0;if(Uu(g)|0)wh(u,76,i+r|0,c[(l&p)>>2]|0,0)|0;if(t){j=w+r|0;if((Bu(g,a[(j&n)>>0]|0)|0)<<24>>24==65){a[(j&n)>>0]=65;k=65}else k=a[(j&n)>>0]|0;if(Vu(g,k)|0)a[(j&n)>>0]=65}}r=r+1|0;if((r|0)>=(v|0))break;else k=i}}c[(h&p)>>2]=w;return i|0}function Uu(d){d=d|0;var e=0;e=a[(d&n)>>0]|0;if((e+99&255)<2)do{d=c[(d&p)+12>>2]|0;e=a[(d&n)>>0]|0}while((e+99&255)<2);if(e<<24>>24==-97)e=a[(d&n)+38>>0]|0;switch(e&255|0){case 134:case 133:case 97:case 132:{d=0;break}case 154:{if(!(c[(d&p)+4>>2]&1048576)){e=b[(d&o)+32>>1]|0;if(e<<16>>16>-1)d=(a[((c[((c[(d&p)+44>>2]|0)&p)+4>>2]|0)+((e<<16>>16)*24|0)&n)+20>>0]|0)==0;else d=0}else d=1;d=d&1;break}default:d=1}return d|0}function Vu(d,e){d=d|0;e=e|0;var f=0;a:do if(e<<24>>24==65)d=1;else{f=a[(d&n)>>0]|0;if((f+99&255)<2)do{d=c[(d&p)+12>>2]|0;f=a[(d&n)>>0]|0}while((f+99&255)<2);if(f<<24>>24==-97)f=a[(d&n)+38>>0]|0;switch(f&255|0){case 132:{d=(e+-67&255)<2&1;break a}case 97:{d=e<<24>>24==66&1;break a}case 154:{if((b[(d&o)+32>>1]|0)<0)d=(e+-67&255)<2;else d=0;d=d&1;break a}case 134:{d=1;break a}case 133:{d=(e<<24>>24==69|e<<24>>24==67)&1;break a}default:{d=0;break a}}}while(0);return d|0}function Wu(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0;h=c[(b&p)+8>>2]|0;do if(f){a:do if((e|0)>0)while(1){if((a[(f&n)>>0]|0)!=65){g=f;break a}e=e+-1|0;d=d+1|0;f=f+1|0;if((e|0)<=0){g=f;break}}else g=f;while(0);while(1){if((e|0)<=1){i=8;break}f=e+-1|0;if((a[(g+f&n)>>0]|0)==65)e=f;else break}if((i|0)==8)if((e|0)<=0)break;wh(h,48,d,e,0)|0;xh(h,-1,g,e);dt(b,d,e)}while(0);return}function Xu(a,b){a=a|0;b=b|0;var d=0,e=0;if(b){Ov(b+328|0);e=b+16|0;d=c[(e&p)>>2]|0;if(d)do{c[(e&p)>>2]=c[(d&p)+52>>2];Ju(a,d);mg(a,d);d=c[(e&p)>>2]|0}while((d|0)!=0);mg(a,b)}return}function Yu(a,b){a=a|0;b=b|0;var d=0,e=0;d=i;i=i+32|0;if((i|0)>=(j|0))fa();e=d;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;c[(e&p)+8>>2]=0;c[(e&p)+12>>2]=0;c[(e&p)+16>>2]=0;c[(e&p)+20>>2]=0;c[(e&p)>>2]=80;c[(e&p)+4>>2]=81;c[(e&p)+24>>2]=a;rs(e,b)|0;i=d;return}function Zu(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();o=r+4|0;q=r;m=c[(b&p)+8>>2]|0;c[(o&p)>>2]=0;c[(q&p)>>2]=0;if(!((m|0)==0|(d|0)==0)){h=a[(d&n)>>0]|0;g=h&255;a:do switch(g|0){case 75:{k=xs(m)|0;fu(b,d,k,(f|0)!=0?e:k);wh(m,16,0,e,0)|0;h=c[(m&p)+24>>2]|0;g=~k;if((k|0)<0?(l=c[(h&p)+112>>2]|0,(l|0)!=0):0)c[(l+(g<<2)&p)>>2]=c[(m&p)+32>>2];c[(h&p)+88>>2]=(c[(m&p)+32>>2]|0)+-1;break}case 77:case 76:{wh(m,g,$t(b,c[(d&p)+12>>2]|0,o)|0,e,0)|0;break}case 148:case 73:{f=d+12|0;l=$t(b,c[(f&p)>>2]|0,o)|0;k=d+16|0;m=$t(b,c[(k&p)>>2]|0,q)|0;au(b,c[(f&p)>>2]|0,c[(k&p)>>2]|0,h<<24>>24==73?79:78,l,m,e,128);break}case 71:{Zu(b,c[(d&p)+12>>2]|0,e,f);m=b+100|0;c[(m&p)>>2]=(c[(m&p)>>2]|0)+1;Zu(b,c[(d&p)+16>>2]|0,e,f);bu(b);break}case 79:case 78:case 83:case 80:case 81:case 82:{h=d+12|0;l=$t(b,c[(h&p)>>2]|0,o)|0;k=d+16|0;m=$t(b,c[(k&p)>>2]|0,q)|0;au(b,c[(h&p)>>2]|0,c[(k&p)>>2]|0,g,l,m,e,f);break}case 72:{l=xs(m)|0;gt(b,c[(d&p)+12>>2]|0,l,f^16);g=b+100|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;Zu(b,c[(d&p)+16>>2]|0,e,f);g=c[(m&p)+24>>2]|0;h=~l;if((l|0)<0?(k=c[(g&p)+112>>2]|0,(k|0)!=0):0)c[(k+(h<<2)&p)>>2]=c[(m&p)+32>>2];c[(g&p)+88>>2]=(c[(m&p)+32>>2]|0)+-1;bu(b);break}case 19:{gt(b,c[(d&p)+12>>2]|0,e,f);break}case 74:{_u(b,d,e,1,f);break}default:{if($u(d)|0){wh(m,16,0,e,0)|0;break a}if(!(mu(d)|0))wh(m,45,$t(b,d,o)|0,e,(f|0)!=0&1)|0}}while(0);_r(b,c[(o&p)>>2]|0);_r(b,c[(q&p)>>2]|0)}i=r;return}function _u(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0;r=i;i=i+208|0;if((i|0)>=(j|0))fa();l=r+152|0;h=r+104|0;k=r+56|0;m=r+8|0;o=r;c[(o&p)>>2]=0;q=m+0|0;s=(c[(d&p)+12>>2]|0)+0|0;t=q+48|0;do{c[(q&p)>>2]=c[(s&p)>>2];q=q+4|0;s=s+4|0}while((q|0)<(t|0));a[(l&n)>>0]=72;c[(l&p)+12>>2]=h;c[(l&p)+16>>2]=k;a[(h&n)>>0]=83;c[(h&p)+12>>2]=m;d=c[((c[(d&p)+20>>2]|0)&p)+4>>2]|0;c[(h&p)+16>>2]=c[(d&p)>>2];a[(k&n)>>0]=81;c[(k&p)+12>>2]=m;c[(k&p)+16>>2]=c[(d&p)+20>>2];d=$t(b,m,o)|0;a[(m&n)+38>>0]=a[(m&n)>>0]|0;a[(m&n)>>0]=-97;c[(m&p)+28>>2]=d;d=m+4|0;c[(d&p)>>2]=c[(d&p)>>2]&-4097;if(!f)gt(b,l,e,g);else Zu(b,l,e,g);_r(b,c[(o&p)>>2]|0);i=r;return}function $u(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();b=d;c[(b&p)>>2]=0;if((c[(a&p)+4>>2]&1|0)==0?(Ms(a,b)|0)!=0:0)a=(c[(b&p)>>2]|0)!=0&1;else a=0;i=d;return a|0}function av(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if(!((a|0)==0|(b|0)==0)){e=c[(b&p)>>2]|0;if((e|0)>0){b=c[(b&p)+4>>2]|0;d=0;while(1){if((wv(a,c[(b+(d*20|0)&p)+4>>2]|0)|0)>-1){b=1;break a}d=d+1|0;if((d|0)>=(e|0)){b=0;break}}}else b=0}else b=1;while(0);return b|0}function bv(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,m=0,q=0,r=0,s=0,t=0;m=c[(e&p)+20>>2]|0;a:do if((m|0)>0){q=b[(d&o)+38>>1]|0;r=q<<16>>16>0;s=d+4|0;l=d+36|0;i=(g|0)!=0;j=0;while(1){g=c[(e+(j<<3)&p)+40>>2]|0;if(r){d=(g|0)==0;k=0;do{if(!((c[(f+(k<<2)&p)>>2]|0)<=-1?!((k|0)==(b[(l&o)>>1]|0)&i):0))t=7;do if((t|0)==7){t=0;h=c[(s&p)>>2]|0;if(d)if(!(a[(h+(k*24|0)&n)+23>>0]&1))break;else{d=1;break a}else if(!(dd(c[(h+(k*24|0)&p)>>2]|0,g)|0)){d=1;break a}else break}while(0);k=k+1|0}while((k|0)<(q<<16>>16|0))}j=j+1|0;if((j|0)>=(m|0)){d=0;break}}}else d=0;while(0);return d|0}function cv(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+48|0;if((i|0)>=(j|0))fa();m=x;s=x+8|0;w=c[(b&p)+408>>2]|0;w=(w|0)==0?b:w;l=w+528|0;g=c[(l&p)>>2]|0;a:do if(!g)k=5;else while(1){if((c[(g&p)>>2]|0)==(d|0)?(c[(g&p)+12>>2]|0)==(f|0):0)break a;g=c[(g&p)+4>>2]|0;if(!g){k=5;break}}while(0);do if((k|0)==5){u=c[(b&p)>>2]|0;g=mh(u,24,0)|0;if(g){k=g+0|0;h=k+24|0;do{a[(k&n)>>0]=0;k=k+1|0}while((k|0)<(h|0));c[(g&p)+4>>2]=c[(l&p)>>2];c[(l&p)>>2]=g;t=mh(u,28,0)|0;if(!t){c[(g&p)+8>>2]=0;g=0;break}k=t+0|0;h=k+24|0;do{a[(k&n)>>0]=0;k=k+1|0}while((k|0)<(h|0));c[(g&p)+8>>2]=t;o=(c[(w&p)+8>>2]|0)+192|0;c[(t&p)+24>>2]=c[(o&p)>>2];c[(o&p)>>2]=t;c[(g&p)>>2]=d;c[(g&p)+12>>2]=f;o=g+16|0;c[(o&p)>>2]=-1;q=g+20|0;c[(q&p)>>2]=-1;r=mh(u,536,0)|0;if(r){fw(r|0,0,536)|0;c[(s&p)>>2]=0;c[(s&p)+4>>2]=0;c[(s&p)+8>>2]=0;c[(s&p)+12>>2]=0;c[(s&p)+16>>2]=0;c[(s&p)+20>>2]=0;c[(s&p)+24>>2]=0;c[(s&p)+28>>2]=0;c[(s&p)>>2]=r;c[(r&p)>>2]=u;c[(r&p)+412>>2]=e;c[(r&p)+408>>2]=w;c[(r&p)+492>>2]=c[(d&p)>>2];a[(r&n)+436>>0]=a[(d&n)+8>>0]|0;c[(r&p)+424>>2]=c[(b&p)+424>>2];e=Oq(r)|0;if(e){c[(m&p)>>2]=c[(d&p)>>2];xh(e,-1,uh(u,34152,m)|0,-1);k=c[(d&p)+12>>2]|0;if(!k)l=0;else{h=Mr(u,k,0,0)|0;if((ls(s,h)|0)==0?(a[(u&n)+65>>0]|0)==0:0){k=xs(e)|0;gt(r,h,k,16)}else k=0;Gk(u,h);l=k}Pv(r,c[(d&p)+28>>2]|0,f);if(l){k=c[(e&p)+24>>2]|0;h=~l;if((l|0)<0?(v=c[(k&p)+112>>2]|0,(v|0)!=0):0)c[(v+(h<<2)&p)>>2]=c[(e&p)+32>>2];c[(k&p)+88>>2]=(c[(e&p)+32>>2]|0)+-1}wh(e,24,0,0,0)|0;h=b+64|0;k=c[(r&p)+4>>2]|0;if(!(c[(h&p)>>2]|0)){c[(b&p)+4>>2]=k;c[(h&p)>>2]=c[(r&p)+64>>2]}else mg(c[(r&p)>>2]|0,k);if(!(a[(u&n)+65>>0]|0)){m=e+4|0;s=c[(m&p)>>2]|0;Jn(e,w+392|0);c[(t&p)+4>>2]=c[(e&p)+32>>2];c[(m&p)>>2]=0;c[(t&p)>>2]=s}c[(t&p)+8>>2]=c[(r&p)+72>>2];c[(t&p)+12>>2]=c[(r&p)+68>>2];c[(t&p)+16>>2]=c[(r&p)+80>>2];c[(t&p)+20>>2]=d;c[(o&p)>>2]=c[(r&p)+428>>2];c[(q&p)>>2]=c[(r&p)+432>>2];Pl(e)}Ch(r);mg(u,r)}else g=0}else g=0}while(0);i=x;return g|0}function dv(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;i=Oq(b)|0;e=cv(b,d,e,g)|0;if(e){if(!(c[(d&p)>>2]|0))g=0;else g=((c[((c[(b&p)>>2]|0)&p)+24>>2]|0)>>>18&1^1)&255;b=b+72|0;d=(c[(b&p)>>2]|0)+1|0;c[(b&p)>>2]=d;wh(i,131,f,h,d)|0;xh(i,-1,c[(e&p)+8>>2]|0,-18);e=c[(i&p)+4>>2]|0;if(e)a[(e+(((c[(i&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=g}return}function ev(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;f=c[(a&p)>>2]|0;h=c[((c[(f&p)+16>>2]|0)+(e<<4)&p)>>2]|0;g=kc[c[(f&p)+284>>2]&7](c[(f&p)+288>>2]|0,20,b,d,h,c[(a&p)+492>>2]|0)|0;if((g|0)==1){if((e|0)!=0?1:(c[(f&p)+20>>2]|0)>2){c[(k&p)>>2]=h;c[(k&p)+4>>2]=b;c[(k&p)+8>>2]=d;th(a,27688,k)}else{c[(k&p)>>2]=b;c[(k&p)+4>>2]=d;th(a,27728,k)}c[(a&p)+12>>2]=23}else if(!((g|0)==0|(g|0)==2)){th(a,25232,k);c[(a&p)+12>>2]=1}i=l;return g|0}function fv(e,f,g,h,i,j,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;k=k|0;l=l|0;m=m|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,C=0,D=0,E=0;B=Oq(e)|0;D=(c[(e&p)+68>>2]|0)+-1|0;E=xs(B)|0;if((l|0)<0)wh(B,135,d[(i&n)+24>>0]|0,E,0)|0;q=i+20|0;r=c[(q&p)>>2]|0;if((r|0)>0){t=k+1|0;s=0;do{wh(B,76,t+(c[(j+(s<<2)&p)>>2]|0)|0,E,0)|0;s=s+1|0;r=c[(q&p)>>2]|0}while((s|0)<(r|0))}do if(!m){if(!h){r=e+19|0;q=a[(r&n)>>0]|0;if(!(q<<24>>24)){h=e+72|0;t=(c[(h&p)>>2]|0)+1|0;c[(h&p)>>2]=t}else{t=q+-1<<24>>24;a[(r&n)>>0]=t;t=c[(e+((t&255)<<2)&p)+24>>2]|0}wh(B,34,k+1+(c[(j&p)>>2]|0)|0,t,0)|0;s=wh(B,38,t,0,0)|0;if(((l|0)==1?(c[(i&p)>>2]|0)==(g|0):0)?(wh(B,79,k,E,t)|0,u=c[(B&p)+4>>2]|0,(u|0)!=0):0)a[(u+(((c[(B&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;Qq(e,D,f,g,54);wh(B,70,D,0,t)|0;wh(B,16,0,E,0)|0;q=c[(B&p)+32>>2]|0;if(q>>>0>1)c[((c[(B&p)+4>>2]|0)+((q+-2|0)*20|0)&p)+8>>2]=q;m=q+-1|0;r=(c[(B&p)+24>>2]|0)+88|0;c[(r&p)>>2]=m;if(q>>>0>s>>>0)c[((c[(B&p)+4>>2]|0)+(s*20|0)&p)+8>>2]=q;c[(r&p)>>2]=m;_r(e,t);break}z=e+60|0;t=c[(z&p)>>2]|0;A=e+56|0;s=c[(A&p)>>2]|0;if((s|0)<(r|0)){y=e+72|0;t=c[(y&p)>>2]|0;c[(y&p)>>2]=t+r;t=t+1|0}else{c[(z&p)>>2]=t+r;c[(A&p)>>2]=s-r}s=e+19|0;q=a[(s&n)>>0]|0;if(!(q<<24>>24)){m=e+72|0;y=(c[(m&p)>>2]|0)+1|0;c[(m&p)>>2]=y}else{y=q+-1<<24>>24;a[(s&n)>>0]=y;y=c[(e+((y&255)<<2)&p)+24>>2]|0}wh(B,54,D,c[(h&p)+40>>2]|0,f)|0;m=c[(e&p)+8>>2]|0;xh(m,-1,hs(e,h)|0,-6);m=(r|0)>0;if(m){s=k+1|0;q=0;do{wh(B,33,s+(c[(j+(q<<2)&p)>>2]|0)|0,q+t|0,0)|0;q=q+1|0}while((q|0)!=(r|0))}if((l|0)==1?(c[(i&p)>>2]|0)==(g|0):0){w=B+32|0;x=r+1+(c[(w&p)>>2]|0)|0;if(m){f=k+1|0;v=h+4|0;s=g+36|0;q=B+4|0;u=0;do{m=b[((c[(v&p)>>2]|0)+(u<<1)&o)>>1]|0;wh(B,78,f+(c[(j+(u<<2)&p)>>2]|0)|0,x,(m<<16>>16==(b[(s&o)>>1]|0)?0:(m<<16>>16)+1|0)+k|0)|0;m=c[(q&p)>>2]|0;if(m)a[(m+(((c[(w&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;u=u+1|0}while((u|0)!=(r|0))}wh(B,16,0,E,0)|0}k=ot(B,h)|0;xh(B,wh(B,49,t,r,y)|0,k,r);xh(B,wh(B,69,D,E,y)|0,0,-14);_r(e,y);dt(e,t,r);if((c[(A&p)>>2]|0)<(r|0)){c[(A&p)>>2]=r;c[(z&p)>>2]=t}}while(0);q=a[(i&n)+24>>0]|0;m=q<<24>>24==0;if(((m?(c[((c[(e&p)>>2]|0)&p)+24>>2]&16777216|0)==0:0)?(c[(e&p)+408>>2]|0)==0:0)?(a[(e&n)+20>>0]|0)==0:0)zs(e,787,2,0,-2,4);else{if(!((l|0)<1|m^1)){i=c[(e&p)+408>>2]|0;a[(((i|0)==0?e:i)&n)+21>>0]=1}wh(B,134,q&255,l,0)|0}m=c[(B&p)+24>>2]|0;q=~E;if((E|0)<0?(C=c[(m&p)+112>>2]|0,(C|0)!=0):0)c[(C+(q<<2)&p)>>2]=c[(B&p)+32>>2];c[(m&p)+88>>2]=(c[(B&p)+32>>2]|0)+-1;wh(B,61,D,0,0)|0;return}function gv(f,g,h,k,l,m,q,r){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;var 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;G=i;i=i+48|0;if((i|0)>=(j|0))fa();B=G+32|0;C=G;D=c[(f&p)>>2]|0;E=Oq(f)|0;if((r|0)<0)F=wh(E,135,d[(l&n)+24>>0]|0,0,0)|0;else F=0;A=l+20|0;if((c[(A&p)>>2]|0)>0){z=(k|0)==0;y=(m|0)==0;x=l+36|0;w=k+4|0;v=0;s=0;do{if(z)u=-1;else u=b[((c[(w&p)>>2]|0)+(v<<1)&o)>>1]|0;t=Qv(f,h,q,u)|0;if(y)u=x;else u=m+(v<<2)|0;s=ss(D,s,Zq(f,79,t,tt(D,27,c[((c[((c[(l&p)>>2]|0)&p)+4>>2]|0)+((c[(u&p)>>2]<<16>>16)*24|0)&p)>>2]|0)|0,0)|0)|0;v=v+1|0}while((v|0)<(c[(A&p)>>2]|0));u=l}else{u=l;s=0}if((r|0)>0?(c[(u&p)>>2]|0)==(h|0):0){if(!(a[(h&n)+44>>0]&32)){m=c[(f&p)>>2]|0;c[(B&p)>>2]=0;c[(B&p)+4>>2]=0;m=nr(m,159,B,0)|0;if(!m)m=0;else{c[(m&p)+28>>2]=q;a[(m&n)+1>>0]=68}u=c[(g&p)+48>>2]|0;c[(B&p)>>2]=0;c[(B&p)+4>>2]=0;t=nr(D,154,B,0)|0;if(t){c[(t&p)+44>>2]=h;c[(t&p)+28>>2]=u;b[(t&o)+32>>1]=-1}m=Zq(f,78,m,t,0)|0}else{u=h+8|0;while(1){u=c[(u&p)>>2]|0;if((a[(u&n)+51>>0]&3)==2)break;u=u+20|0}A=u+46|0;if(!(b[(A&o)>>1]|0))m=0;else{w=k+4|0;x=g+48|0;y=B+4|0;z=0;m=0;do{u=b[((c[(w&p)>>2]|0)+(z<<1)&o)>>1]|0;t=Qv(f,h,q,u)|0;v=c[(x&p)>>2]|0;c[(B&p)>>2]=0;c[(y&p)>>2]=0;k=nr(D,154,B,0)|0;if(k){c[(k&p)+44>>2]=h;c[(k&p)+28>>2]=v;b[(k&o)+32>>1]=u}m=ss(D,m,Zq(f,79,t,k,0)|0)|0;z=z+1|0}while((z|0)<(e[(A&o)>>1]|0))}m=Zq(f,19,m,0,0)|0}s=ss(D,s,m)|0};c[(C&p)>>2]=0;c[(C&p)+4>>2]=0;c[(C&p)+8>>2]=0;c[(C&p)+12>>2]=0;c[(C&p)+16>>2]=0;c[(C&p)+20>>2]=0;c[(C&p)+24>>2]=0;c[(C&p)+28>>2]=0;c[(C&p)+4>>2]=g;c[(C&p)>>2]=f;ls(C,s)|0;m=Vs(f,g,s,0,0,0,0)|0;wh(E,134,d[(l&n)+24>>0]|0,r,0)|0;if(m)Xs(m);Gk(D,s);if(F){m=c[(E&p)+32>>2]|0;if(m>>>0>F>>>0)c[((c[(E&p)+4>>2]|0)+(F*20|0)&p)+8>>2]=m;c[((c[(E&p)+24>>2]|0)&p)+88>>2]=m+-1}i=G;return}function hv(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+32|0;if((i|0)>=(j|0))fa();t=w;r=w+16|0;v=w+28|0;k=c[(b&p)>>2]|0;u=Oq(b)|0;if(u){m=(c[(k&p)+16>>2]|0)+(d<<4)|0;o=b+388|0;q=(f|0)==0;s=0;a:while(1){l=c[(s<<3&p)+28744>>2]|0;h=_h(k,l,c[(m&p)>>2]|0)|0;do if(!h){if(!s){c[(t&p)>>2]=c[(m&p)>>2];c[(t&p)+4>>2]=l;c[(t&p)+8>>2]=28768;Br(b,28816,t);c[(r&p)>>2]=c[(o&p)>>2];a[(v&n)>>0]=4;s=s+1|0;continue a}}else{h=c[(h&p)+32>>2]|0;c[(r+(s<<2)&p)>>2]=h;a[(v+s&n)>>0]=0;gs(b,d,h,1,l);if(q){wh(u,118,h,d,0)|0;break}else{c[(t&p)>>2]=c[(m&p)>>2];c[(t&p)+4>>2]=l;c[(t&p)+8>>2]=g;c[(t&p)+12>>2]=f;Br(b,28840,t);break}}while(0);s=s+1|0;if((s|0)==3)break}xh(u,wh(u,55,e,c[(r&p)>>2]|0,d)|0,3,-14);h=c[(u&p)+4>>2]|0;if(h)a[(h+(((c[(u&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=a[(v&n)>>0]|0}i=w;return}function iv(d,f,g,h,i,j){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=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;G=c[(d&p)>>2]|0;H=i+1|0;I=i+2|0;M=i+3|0;N=i+4|0;O=i+5|0;L=i+6|0;J=i+7|0;K=d+72|0;P=c[(K&p)>>2]|0;c[(K&p)>>2]=(P|0)>(J|0)?P:J;P=Oq(d)|0;if((!((P|0)==0|(f|0)==0)?(s=f+32|0,(c[(s&p)>>2]|0)!=0):0)?(t=c[(f&p)>>2]|0,(Fc(t,25568,7)|0)!=0):0){m=c[(f&p)+68>>2]|0;a:do if(m){l=c[(G&p)+20>>2]|0;if((l|0)>0){k=c[(G&p)+16>>2]|0;r=0;while(1){q=r+1|0;if((c[(k+(r<<4)&p)+12>>2]|0)==(m|0)){q=r;break a}if((q|0)<(l|0))r=q;else break}}else q=0}else q=-1e6;while(0);if(!(Sq(d,28,t,0,c[((c[(G&p)+16>>2]|0)+(q<<4)&p)>>2]|0)|0)){gs(d,q,c[(s&p)>>2]|0,0,c[(f&p)>>2]|0);z=j+1|0;F=j+2|0;t=d+68|0;E=c[(t&p)>>2]|0;c[(t&p)>>2]=(E|0)>(F|0)?E:F;Qq(d,j,q,f,54);t=c[(f&p)>>2]|0;xh(P,wh(P,97,0,N,0)|0,t,0);t=c[(f&p)+8>>2]|0;F=(g|0)==0;if(!t)m=1;else{A=f+44|0;B=d+8|0;C=P+4|0;D=P+32|0;E=P+24|0;m=1;do{do if(F|(t|0)==(g|0)){m=(c[(t&p)+36>>2]|0)==0?0:m;s=a[(t&n)+51>>0]|0;if(!((a[(A&n)>>0]&32)!=0&(s&3)==2)){k=e[(t&o)+48>>1]|0;r=c[(t&p)>>2]|0;l=t+46|0;if(!(s&8)){v=l;u=k;s=k}else{v=l;u=k;s=e[(l&o)>>1]|0}}else{v=t+46|0;s=e[(v&o)>>1]|0;u=s;r=c[(f&p)>>2]|0}x=s+-1|0;xh(P,wh(P,97,0,O,0)|0,r,0);y=c[(K&p)>>2]|0;s=x+J|0;c[(K&p)>>2]=(y|0)>(s|0)?y:s;wh(P,54,z,c[(t&p)+40>>2]|0,q)|0;s=c[(B&p)>>2]|0;xh(s,-1,hs(d,t)|0,-6);wh(P,25,u,I,0)|0;wh(P,25,e[(v&o)>>1]|0,M,0)|0;wh(P,1,0,I,H)|0;xh(P,-1,28552,-5);s=c[(C&p)>>2]|0;if(s)a[(s+(((c[(D&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=2;y=wh(P,108,z,0,0)|0;wh(P,25,0,I,0)|0;r=c[(D&p)>>2]|0;if((x|0)>0){u=xs(P)|0;w=mh(G,x<<2,0)|0;if(!w)break;wh(P,16,0,0,0)|0;r=c[(D&p)>>2]|0;if(((x|0)==1?(b[(v&o)>>1]|0)==1:0)?(a[(t&n)+50>>0]|0)!=0:0)wh(P,77,J,u,0)|0;s=t+32|0;k=0;do{v=cr(d,c[((c[(s&p)>>2]|0)+(k<<2)&p)>>2]|0)|0;wh(P,25,k,I,0)|0;wh(P,47,z,k,M)|0;l=wh(P,78,M,0,k+J|0)|0;xh(P,l,v,-4);c[(w+(k<<2)&p)>>2]=l;l=c[(C&p)>>2]|0;if(l)a[(l+(((c[(D&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;k=k+1|0}while((k|0)!=(x|0));wh(P,25,x,I,0)|0;wh(P,16,0,u,0)|0;s=r+-1|0;l=c[(D&p)>>2]|0;if(l>>>0>s>>>0)c[((c[(C&p)>>2]|0)+(s*20|0)&p)+8>>2]=l;c[((c[(E&p)>>2]|0)&p)+88>>2]=l+-1;s=0;while(1){k=c[(w+(s<<2)&p)>>2]|0;if(l>>>0>k>>>0)c[((c[(C&p)>>2]|0)+(k*20|0)&p)+8>>2]=l;c[((c[(E&p)>>2]|0)&p)+88>>2]=l+-1;wh(P,47,z,s,s+J|0)|0;s=s+1|0;if((s|0)==(x|0))break;l=c[(D&p)>>2]|0}l=c[(E&p)>>2]|0;k=~u;do if((u|0)<0){s=c[(l&p)+112>>2]|0;if(!s)break;c[(s+(k<<2)&p)>>2]=c[(D&p)>>2]}while(0);c[(l&p)+88>>2]=(c[(D&p)>>2]|0)+-1;mg(G,w)}wh(P,1,1,H,M)|0;xh(P,-1,28592,-5);s=c[(C&p)>>2]|0;if(s)a[(s+(((c[(D&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=2;wh(P,9,z,r,0)|0;wh(P,1,0,H,L)|0;xh(P,-1,28640,-5);s=c[(C&p)>>2]|0;if(s)a[(s+(((c[(D&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;xh(P,wh(P,49,N,3,M)|0,28632,0);wh(P,74,h,i,0)|0;wh(P,75,h,M,i)|0;r=c[(C&p)>>2]|0;s=c[(D&p)>>2]|0;if(r)a[(r+((s+-1|0)*20|0)&n)+3>>0]=8;if(s>>>0>y>>>0)c[(r+(y*20|0)&p)+8>>2]=s;c[((c[(E&p)>>2]|0)&p)+88>>2]=s+-1}while(0);t=c[(t&p)+20>>2]|0}while((t|0)!=0)}if(!(m<<24>>24==0|F^1)){wh(P,50,j,L,0)|0;m=wh(P,46,L,0,0)|0;wh(P,28,0,O,0)|0;xh(P,wh(P,49,N,3,M)|0,28632,0);wh(P,74,h,i,0)|0;wh(P,75,h,M,i)|0;l=c[(P&p)+4>>2]|0;k=c[(P&p)+32>>2]|0;if(l)a[(l+((k+-1|0)*20|0)&n)+3>>0]=8;if(k>>>0>m>>>0)c[(l+(m*20|0)&p)+8>>2]=k;c[((c[(P&p)+24>>2]|0)&p)+88>>2]=k+-1}}}return}function jv(a,b){a=a|0;b=b|0;a=Oq(a)|0;if(a)wh(a,123,b,0,0)|0;return}function kv(d){d=d|0;var e=0,f=0,g=0;a:while(1){e=c[(d&p)+4>>2]|0;do if(e&4096)if(!(e&262144)){d=d+12|0;break}else{d=c[((c[(d&p)+20>>2]|0)&p)+4>>2]|0;break}else{if(e&512){d=0;break a}switch(a[(d&n)>>0]|0){case 119:break;case -102:case -100:case -97:{g=11;break a}case 38:{g=10;break a}default:{g=14;break a}}d=c[((c[(c[(d&p)+20>>2]&p)>>2]|0)&p)+4>>2]|0}while(0);d=c[(d&p)>>2]|0}if((g|0)==10)d=Xq(c[(d&p)+8>>2]|0,0)|0;else if((g|0)==11){f=c[(d&p)+44>>2]|0;if(f){e=b[(d&o)+32>>1]|0;if(e<<16>>16<0)d=68;else d=a[((c[(f&p)+4>>2]|0)+((e<<16>>16)*24|0)&n)+21>>0]|0}else g=14}if((g|0)==14)d=a[(d&n)+1>>0]|0;return d|0}function lv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;wh(b,25,0,e,0)|0;f=wh(b,108,d,0,0)|0;wh(b,47,d,0,e)|0;d=c[(b&p)+4>>2]|0;e=c[(b&p)+32>>2]|0;if(d)a[(d+((e+-1|0)*20|0)&n)+3>>0]=-128;if(e>>>0>f>>>0)c[(d+(f*20|0)&p)+8>>2]=e;c[((c[(b&p)+24>>2]|0)&p)+88>>2]=e+-1;return}function mv(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;H=i;i=i+32|0;if((i|0)>=(j|0))fa();C=H;F=e+68|0;G=c[(F&p)>>2]|0;c[(F&p)>>2]=G+1;F=Oq(e)|0;D=(g&4|0)!=0;E=f+4|0;a:do if((((((((((((c[(E&p)>>2]&2048|0)!=0?(q=c[(f&p)+20>>2]|0,!((c[(e&p)+64>>2]|0)!=0|(q|0)==0)):0)?(c[(q&p)+52>>2]|0)==0:0)?(b[(q&o)+6>>1]&5)==0:0)?(c[(q&p)+60>>2]|0)==0:0)?(c[(q&p)+36>>2]|0)==0:0)?(m=c[(q&p)+32>>2]|0,(c[(m&p)>>2]|0)==1):0)?(c[(m&p)+28>>2]|0)==0:0)?(w=c[(m&p)+24>>2]|0,(w|0)!=0):0)?(a[(w&n)+44>>0]&16)==0:0)?(l=c[(q&p)>>2]|0,(c[(l&p)>>2]|0)==1):0)?(s=c[(c[(l&p)+4>>2]&p)>>2]|0,(a[(s&n)>>0]|0)==-102):0){A=c[(e&p)>>2]|0;B=b[(s&o)+32>>1]|0;r=c[(w&p)+68>>2]|0;b:do if(r){m=c[(A&p)+20>>2]|0;if((m|0)>0){l=c[(A&p)+16>>2]|0;k=0;while(1){q=k+1|0;if((c[(l+(k<<4)&p)+12>>2]|0)==(r|0)){q=k;break b}if((q|0)<(m|0))k=q;else break}}else q=0}else q=-1e6;while(0);y=q<<16>>16;Ar(e,y);gs(e,y,c[(w&p)+32>>2]|0,0,c[(w&p)>>2]|0);z=B<<16>>16;if(B<<16>>16<0){k=Oq(e)|0;h=e+80|0;l=c[(h&p)>>2]|0;c[(h&p)>>2]=l+1;l=wh(k,44,l,0,0)|0;Qq(e,G,y,w,54);k=c[(F&p)+32>>2]|0;if(k>>>0>l>>>0)c[((c[(F&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(F&p)+24>>2]|0)&p)+88>>2]=k+-1;k=1;r=49;break}k=Ou(e,c[(f&p)+12>>2]|0,s)|0;x=w+4|0;r=a[((c[(x&p)>>2]|0)+(z*24|0)&n)+21>>0]|0;q=(nv(f)|0)<<24>>24;if((q|0)==65)q=1;else if((q|0)==66)q=r<<24>>24==66&1;else q=r<<24>>24>66&1;r=c[(w&p)+8>>2]|0;if((r|0)!=0&(q|0)!=0){s=A+62|0;q=e+80|0;m=e+8|0;l=(h|0)==0;t=F+32|0;v=F+4|0;w=F+24|0;u=e+72|0;c:while(1){do if((b[(c[(r&p)+4>>2]&o)>>1]|0)==B<<16>>16?(Yn(A,a[(s&n)>>0]|0,c[(c[(r&p)+32>>2]&p)>>2]|0,0)|0)==(k|0):0){if(!D)break c;if((b[(r&o)+46>>1]|0)!=1)break;if(a[(r&n)+50>>0]|0)break c}while(0);r=c[(r&p)+20>>2]|0;if(!r){r=38;break a}}E=Oq(e)|0;k=c[(q&p)>>2]|0;c[(q&p)>>2]=k+1;q=wh(E,44,k,0,0)|0;wh(F,54,G,c[(r&p)+40>>2]|0,y)|0;k=c[(m&p)>>2]|0;xh(k,-1,hs(e,r)|0,-6);k=(d[(c[(r&p)+28>>2]&n)>>0]|0)+3|0;if(!l?(a[((c[(x&p)>>2]|0)+(z*24|0)&n)+20>>0]|0)==0:0){E=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=E;c[(h&p)>>2]=E;lv(F,G,E)}l=c[(t&p)>>2]|0;if(l>>>0>q>>>0)c[((c[(v&p)>>2]|0)+(q*20|0)&p)+8>>2]=l;c[((c[(w&p)>>2]|0)&p)+88>>2]=l+-1;r=49}else r=38}else r=38;while(0);do if((r|0)==38){if((g&1|0)!=0?(c[(E&p)>>2]&2048|0)==0:0){g=f+12|0;B=c[(g&p)>>2]|0;c[(g&p)>>2]=0;c[(C&p)>>2]=0;c[(C&p)+4>>2]=0;c[(C&p)+8>>2]=0;c[(C&p)+12>>2]=0;c[(C&p)+16>>2]=0;c[(C&p)+20>>2]=0;F=C+20|0;a[(F&n)>>0]=1;c[(C&p)>>2]=78;c[(C&p)+4>>2]=79;c[(C&p)+24>>2]=0;rs(C,f)|0;F=a[(F&n)>>0]|0;c[(g&p)>>2]=B;if(!(F<<24>>24)){k=5;r=49;break}if((c[(c[(f&p)+20>>2]&p)>>2]|0)<3){k=5;r=49;break}}m=e+424|0;q=c[(m&p)>>2]|0;if(D){c[(m&p)>>2]=0;if((b[((c[(f&p)+12>>2]|0)&o)+32>>1]|0)<0){k=((c[(E&p)>>2]|0)>>>11&1)+1|0;l=0}else{k=2;l=0}}else if(!h){k=2;l=0}else{k=e+72|0;l=(c[(k&p)>>2]|0)+1|0;c[(k&p)>>2]=l;c[(h&p)>>2]=l;k=2}eu(e,f,l,(k|0)==1&1)|0;c[(m&p)>>2]=q}while(0);if((r|0)==49)c[(f&p)+28>>2]=G;i=H;return k|0}function nv(a){a=a|0;var b=0,d=0;b=kv(c[(a&p)+12>>2]|0)|0;d=c[(a&p)+16>>2]|0;do if(!d)if(!(c[(a&p)+4>>2]&2048))return (b<<24>>24==0?65:b)|0;else{b=Bu(c[(c[((c[(c[(a&p)+20>>2]&p)>>2]|0)&p)+4>>2]&p)>>2]|0,b)|0;break}else b=Bu(d,b)|0;while(0);return b|0}function ov(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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,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;aa=i;i=i+16|0;if((i|0)>=(j|0))fa();Z=aa;X=c[(d&p)>>2]|0;_=k+28|0;c[(_&p)>>2]=-1;W=k+44|0;c[(W&p)>>2]=0;a:do if((e|0)!=0?(b[(h&o)+28>>1]&20)==0:0){t=c[(X&p)+20>>2]|0;if((t|0)>0){r=c[(X&p)+16>>2]|0;s=0;while(1){if(!(dd(c[(r+(s<<4)&p)>>2]|0,e)|0))break;s=s+1|0;if((s|0)>=(t|0)){V=e;e=0;break a}}V=e;e=c[(r+(s<<4)&p)+12>>2]|0}else{V=e;e=0}}else{V=0;e=0}while(0);T=(V|0)==0;Q=T&(f|0)!=0;m=d+412|0;M=d+436|0;N=k+1|0;$=k+32|0;O=d+428|0;P=d+432|0;U=(f|0)==0;S=k+4|0;l=h;u=0;q=0;t=0;s=0;b:while(1){L=(l|0)!=0;r=l+4|0;K=l+8|0;v=0;w=u;while(1){u=(v|0)==0;if(!(L&u)){Y=82;break b}v=c[(r&p)>>2]|0;if(v){J=c[(v&p)>>2]|0;if((J|0)>0){u=0;I=0;H=v+8|0;while(1){F=c[(H&p)+16>>2]|0;x=c[(H&p)+20>>2]|0;if((x|0)!=0?(b[(x&o)+6>>1]&512)!=0:0){x=c[(x&p)>>2]|0;D=c[(x&p)>>2]|0;if((D|0)>0){E=c[(x&p)+4>>2]|0;x=0;z=0;do{if(vv(c[(E+(z*20|0)&p)+8>>2]|0,g,f,V)|0){b[($&o)>>1]=z;u=u+1|0;w=2;x=1;s=H}z=z+1|0}while((z|0)<(D|0))}else x=0;if(!((x|0)!=0|U)){y=w;Y=21}}else{y=w;Y=21}c:do if((Y|0)==21){Y=0;if(!T?(c[(F&p)+68>>2]|0)!=(e|0):0){w=y;break}if(!U){x=c[(H&p)+12>>2]|0;if(!x)x=c[(F&p)>>2]|0;if(dd(x,f)|0){w=y;break}}w=y+1|0;s=(y|0)==0?H:s;x=b[(F&o)+38>>1]|0;if(x<<16>>16>0){v=(u|0)==1;A=H+36|0;B=H+48|0;D=0;E=c[(F&p)+4>>2]|0;d:while(1){e:do if(!(dd(c[(E&p)>>2]|0,g)|0)){if(!v){s=D;break d}if(!(a[(A&n)>>0]&4)){z=c[(B&p)>>2]|0;if(!z){s=D;break d}C=c[(z&p)+4>>2]|0;if((C|0)<=0){s=D;break d}z=c[(z&p)>>2]|0;y=0;while(1){if(!(dd(c[(z+(y<<3)&p)>>2]|0,g)|0))break e;y=y+1|0;if((y|0)>=(C|0)){s=D;break d}}}}while(0);D=D+1|0;if((D|0)>=(x<<16>>16|0))break c;else E=E+24|0}b[($&o)>>1]=(s|0)==(b[(F&o)+36>>1]|0)?-1:s&65535;u=u+1|0;s=H}}while(0);I=I+1|0;if((I|0)>=(J|0))break;else H=H+72|0}}else u=0;if(!s)E=0;else{c[(_&p)>>2]=c[(s&p)+40>>2];v=c[(s&p)+16>>2]|0;c[(W&p)>>2]=v;if(a[(s&n)+36>>0]&8)c[(S&p)>>2]=c[(S&p)>>2]|1048576;E=s;e=c[(v&p)+68>>2]|0}}else{u=0;E=s}do if(Q&(w|0)==0)if(c[(m&p)>>2]|0){v=a[(M&n)>>0]|0;if(v<<24>>24!=109)if(dd(27560,f)|0)if(v<<24>>24==108){y=u;w=0;z=q;break}else Y=49;else z=1;else Y=49;if((Y|0)==49){Y=0;if(!(dd(27568,f)|0))z=0;else{y=u;w=0;z=q;break}}c[(_&p)>>2]=z;y=c[(m&p)>>2]|0;if(y){e=c[(y&p)+68>>2]|0;x=b[(y&o)+38>>1]|0;f:do if(x<<16>>16>0){v=0;w=c[(y&p)+4>>2]|0;while(1){if(!(dd(c[(w&p)>>2]|0,g)|0))break;v=v+1|0;if((v|0)<(x<<16>>16|0))w=w+24|0;else break f}v=(v|0)==(b[(y&o)+36>>1]|0)?-1:v}else v=0;while(0);s=x<<16>>16;if((v|0)>=(s|0)?($h(g)|0)!=0:0)w=(a[(y&n)+44>>0]&32)==0?-1:v;else w=v;if((w|0)<(s|0)){u=u+1|0;do if((w|0)>=0){v=(w|0)>31?-1:1<<w;if(!z){c[(O&p)>>2]=c[(O&p)>>2]|v;break}else{c[(P&p)>>2]=c[(P&p)>>2]|v;break}}else a[(N&n)>>0]=68;while(0);b[($&o)>>1]=w;c[(W&p)>>2]=y;w=1;q=1;Y=66}else{w=1;Y=66}}else{y=u;w=0;z=q}}else{y=u;w=0;z=q}else Y=66;while(0);if((Y|0)==66){Y=0;if((u|0)==0&(w|0)==1&(E|0)!=0)if(($h(g)|0)!=0?(a[((c[(E&p)+16>>2]|0)&n)+44>>0]&32)==0:0){b[($&o)>>1]=-1;a[(N&n)>>0]=68;v=1;s=E;continue}else{y=0;z=q}else{y=u;z=q}}u=c[(K&p)>>2]|0;x=(y|0)==0;if((u|0)!=0&U&x?(R=c[(u&p)>>2]|0,(R|0)>0):0){q=c[(u&p)+4>>2]|0;s=0;do{v=c[(q+(s*20|0)&p)+4>>2]|0;if((v|0)!=0?(dd(v,g)|0)==0:0){Y=75;break b}s=s+1|0}while((s|0)<(R|0))}if(x){v=w;q=z;s=E;break}else{v=y;q=z;s=E}}l=c[(l&p)+16>>2]|0;u=v;t=t+1|0}do if((Y|0)==75){if((b[(l&o)+28>>1]&1)==0?(c[((c[(q+(s*20|0)&p)>>2]|0)&p)+4>>2]&2|0)!=0:0){c[(Z&p)>>2]=v;th(d,27576,Z);h=2;break}yv(d,u,s,k,10360,t);if((a[(k&n)>>0]|0)==24)Y=115;else Y=96}else if((Y|0)==82){if(u&U?(c[(S&p)>>2]&64|0)!=0:0){a[(k&n)>>0]=97;c[(W&p)>>2]=0;h=1;break}v=(v|0)==1;if(!v){u=u?27608:27624;do if(T)if(U){c[(Z&p)>>2]=u;c[(Z&p)+4>>2]=g;th(d,27680,Z);break}else{c[(Z&p)>>2]=u;c[(Z&p)+4>>2]=f;c[(Z&p)+8>>2]=g;th(d,27664,Z);break}else{c[(Z&p)>>2]=u;c[(Z&p)+4>>2]=V;c[(Z&p)+8>>2]=f;c[(Z&p)+12>>2]=g;th(d,27648,Z)}while(0);a[(d&n)+17>>0]=1;I=h+24|0;c[(I&p)>>2]=(c[(I&p)>>2]|0)+1}t=b[($&o)>>1]|0;if(t<<16>>16>-1&(s|0)!=0){E=t<<16>>16>63;F=iw(1,0,t<<16>>16|0)|0;I=s+56|0;D=I;H=c[(D&p)+4>>2]|(E?-2147483648:G);c[(I&p)>>2]=c[(D&p)>>2]|(E?0:F);c[(I&p)+4>>2]=H}I=k+12|0;Gk(X,c[(I&p)>>2]|0);c[(I&p)>>2]=0;I=k+16|0;Gk(X,c[(I&p)>>2]|0);c[(I&p)>>2]=0;a[(k&n)>>0]=(q|0)!=0?62:-102;if(v)Y=96;else h=2}while(0);g:do if((Y|0)==96){u=c[(r&p)>>2]|0;q=c[(d&p)>>2]|0;if(!((c[(q&p)+284>>2]|0)==0|(e|0)==0)){t=c[(q&p)+20>>2]|0;if((t|0)>0){r=c[(q&p)+16>>2]|0;s=0;while(1){q=s+1|0;if((c[(r+(s<<4)&p)+12>>2]|0)==(e|0)){q=s;break}if((q|0)<(t|0))s=q;else break}if((q|0)<0){Y=115;break}else e=q}else e=0;if((a[(k&n)>>0]|0)!=62){r=c[(u&p)>>2]|0;if((r|0)<=0){Y=115;break}m=c[(_&p)>>2]|0;q=0;while(1){if((m|0)==(c[(u+(q*72|0)&p)+48>>2]|0))break;q=q+1|0;if((q|0)>=(r|0)){Y=115;break g}}m=u+(q*72|0)+24|0}r=c[(m&p)>>2]|0;m=b[($&o)>>1]|0;q=m<<16>>16;if(r){if(m<<16>>16<=-1){m=b[(r&o)+36>>1]|0;if(m<<16>>16>-1)m=c[((c[(r&p)+4>>2]|0)+((m<<16>>16)*24|0)&p)>>2]|0;else m=12944}else m=c[((c[(r&p)+4>>2]|0)+(q*24|0)&p)>>2]|0;if((ev(d,c[(r&p)>>2]|0,m,e)|0)==2){a[(k&n)>>0]=101;Y=115}else Y=115}else Y=115}else Y=115}while(0);if((Y|0)==115){I=h+20|0;c[(I&p)>>2]=(c[(I&p)>>2]|0)+1;if((l|0)==(h|0))h=1;else{do{h=c[(h&p)+16>>2]|0;I=h+20|0;c[(I&p)>>2]=(c[(I&p)>>2]|0)+1}while((h|0)!=(l|0));h=1}}i=aa;return h|0}function pv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=a[(d&n)>>0]|0;a:do if(e<<24>>24==-100|e<<24>>24==-102){e=c[(b&p)+24>>2]|0;f=c[(e&p)>>2]|0;b:do if((f|0)!=0?(g=c[(f&p)>>2]|0,(g|0)>0):0){b=c[(d&p)+28>>2]|0;d=0;while(1){if((b|0)==(c[(f+(d*72|0)&p)+48>>2]|0))break;d=d+1|0;if((d|0)>=(g|0))break b}b=e+4|0;c[(b&p)>>2]=(c[(b&p)>>2]|0)+1;break a}while(0);b=e+8|0;c[(b&p)>>2]=(c[(b&p)>>2]|0)+1}while(0);return 0}function qv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;z=i;i=i+16|0;if((i|0)>=(j|0))fa();y=z;t=z+12|0;a:do if(!f)h=0;else{w=c[(c[(e&p)>>2]&p)>>2]|0;x=c[(d&p)>>2]|0;b:do if((c[(f&p)>>2]|0)>0){h=0;u=c[(f&p)+4>>2]|0;c:while(1){r=c[(u&p)>>2]|0;d:do if(!r)k=0;else{k=r;while(1){l=c[(k&p)+4>>2]|0;if(!(l&4096))break d;if(!(l&262144))k=k+12|0;else k=c[((c[(k&p)+20>>2]|0)&p)+4>>2]|0;k=c[(k&p)>>2]|0;if(!k){k=0;break}}}while(0);if((a[(g&n)>>0]|0)!=71?(s=rv(c[(e&p)>>2]|0,k)|0,c[(t&p)>>2]=s,(s|0)>0):0)b[(u&o)+16>>1]=s;else v=13;do if((v|0)==13){v=0;if(Ms(k,t)|0){k=c[(t&p)>>2]|0;if((k+-1|0)>>>0>65534)break c;b[(u&o)+16>>1]=k;break}m=u+16|0;b[(m&o)>>1]=0;if(ls(d,r)|0){h=1;break a}l=c[(e&p)>>2]|0;q=c[(l&p)>>2]|0;if((q|0)>0){l=c[(l&p)+4>>2]|0;k=0;do{A=k;k=k+1|0;if(!(Cu(r,c[(l+(A*20|0)&p)>>2]|0,-1)|0))b[(m&o)>>1]=k}while((k|0)<(q|0))}}while(0);h=h+1|0;if((h|0)>=(c[(f&p)>>2]|0))break b;else u=u+20|0}c[(y&p)>>2]=h+1;c[(y&p)+4>>2]=g;c[(y&p)+8>>2]=w;th(x,27064,y);h=1;break a}while(0);h=wu(x,e,f,g)|0}while(0);i=z;return h|0}function rv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;a:do if((a[(d&n)>>0]|0)==27?(f=c[(d&p)+8>>2]|0,g=c[(b&p)>>2]|0,(g|0)>0):0){b=c[(b&p)+4>>2]|0;d=0;while(1){e=c[(b+(d*20|0)&p)+4>>2]|0;if((e|0)!=0?(dd(e,f)|0)==0:0)break;d=d+1|0;if((d|0)>=(g|0)){d=0;break a}}d=d+1|0}else d=0;while(0);return d|0}function sv(a,d){a=a|0;d=d|0;var e=0,f=0;e=b[(a&o)+38>>1]|0;a:do if(e<<16>>16>0){f=c[(a&p)+4>>2]|0;e=e<<16>>16;a=0;while(1){if(!(dd(c[(f+(a*24|0)&p)>>2]|0,d)|0))break a;a=a+1|0;if((a|0)>=(e|0)){a=-1;break}}}else a=-1;while(0);return a|0}function tv(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;k=c[(a&p)>>2]|0;e=Rv(k,d,e,f)|0;f=Rv(k,d,g,h)|0;h=Zq(a,79,e,f,0)|0;if((h|0)!=0&(i|0)!=0){e=h+4|0;c[(e&p)>>2]=c[(e&p)>>2]|1;b[(h&o)+36>>1]=c[(f&p)+28>>2]}c[(j&p)>>2]=ss(k,c[(j&p)>>2]|0,h)|0;return}function uv(a,d){a=a|0;d=d|0;var e=0,f=0;if(a){e=d&65535;do{f=a+4|0;c[(f&p)>>2]=c[(f&p)>>2]|1;b[(a&o)+36>>1]=e;uv(c[(a&p)+12>>2]|0,d);a=c[(a&p)+16>>2]|0}while((a|0)!=0)}return}function vv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=0;while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==46|g<<24>>24==0)break;f=f+1|0}if(e)if((Fc(b,e,f)|0)==0?(a[(e+f&n)>>0]|0)==0:0)h=7;else f=0;else h=7;do if((h|0)==7){e=f+1|0;h=b+e|0;g=0;while(1){i=a[(b+g+e&n)>>0]|0;if(i<<24>>24==46|i<<24>>24==0)break;g=g+1|0}if(d){if(Fc(h,d,g)|0){f=0;break}if(a[(d+g&n)>>0]|0){f=0;break}}if((c|0)!=0?(dd(b+(f+2+g)|0,c)|0)!=0:0){f=0;break}f=1}while(0);return f|0}function wv(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((a|0)!=0?(e=c[(a&p)+4>>2]|0,(e|0)>0):0){d=c[(a&p)>>2]|0;a=0;while(1){if(!(dd(c[(d+(a<<3)&p)>>2]|0,b)|0))break a;a=a+1|0;if((a|0)>=(e|0)){a=-1;break}}}else a=-1;while(0);return a|0}function xv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;c[(g&p)>>2]=e;if(!e)f=0;else{f=e;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;f=f-e&1073741823}c[(g&p)+4>>2]=f;f=vr(b,d,g,0)|0;i=h;return f|0}function yv(d,e,f,g,h,k){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();r=v;m=e+4|0;q=c[((c[(m&p)>>2]|0)+(f*20|0)&p)>>2]|0;s=c[(d&p)>>2]|0;l=Mr(s,q,0,0)|0;do if(l){if((a[(q&n)>>0]|0)!=-102?(a[(h&n)>>0]|0)!=71:0){if((k|0)>0){c[(r&p)>>2]=0;c[(r&p)+4>>2]=0;c[(r&p)+8>>2]=0;c[(r&p)+12>>2]=0;c[(r&p)+16>>2]=0;c[(r&p)+20>>2]=0;c[(r&p)>>2]=88;c[(r&p)+24>>2]=k;rs(r,l)|0}l=Zq(d,24,l,0,0)|0;if(!l)break;e=l+4|0;c[(e&p)>>2]=c[(e&p)>>2]|4096;e=(c[(m&p)>>2]|0)+(f*20|0)+18|0;k=b[(e&o)>>1]|0;if(!(k<<16>>16)){f=d+456|0;k=(c[(f&p)>>2]|0)+1|0;c[(f&p)>>2]=k;k=k&65535;b[(e&o)>>1]=k}c[(l&p)+28>>2]=k&65535}if((a[(g&n)>>0]|0)==95)l=xv(d,l,c[(g&p)+8>>2]|0)|0;e=g+4|0;c[(e&p)>>2]=c[(e&p)>>2]|32768;Gk(s,g);k=g+0|0;m=l+0|0;q=k+48|0;do{c[(k&p)>>2]=c[(m&p)>>2];k=k+4|0;m=m+4|0}while((k|0)<(q|0));if((c[(e&p)>>2]&1024|0)==0?(t=g+8|0,u=c[(t&p)>>2]|0,(u|0)!=0):0){c[(t&p)>>2]=kh(s,u)|0;c[(e&p)>>2]=c[(e&p)>>2]|65536}mg(s,l)}while(0);i=v;return}function zv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;n=a+12|0;g=c[(n&p)>>2]|0;k=a+16|0;i=c[(k&p)>>2]|0;m=a+20|0;do if((g|0)<(i|0))l=15;else{g=c[(m&p)>>2]|0;j=c[(c[(c[(a&p)>>2]&p)>>2]&p)>>2]|0;h=mh(j,i*96|0,0)|0;c[(m&p)>>2]=h;if(!h){if(f&1)Gk(j,d);c[(m&p)>>2]=g;g=0;break}kw(h|0,g|0,(c[(n&p)>>2]|0)*48|0)|0;if((g|0)!=(a+24|0))mg(j,g);h=c[(m&p)>>2]|0;do if(!j)h=lc[c[8792>>2]&127](h)|0;else{if((c[(j&p)+276>>2]|0)>>>0<=h>>>0?(c[(j&p)+280>>2]|0)>>>0>h>>>0:0){h=e[(j&o)+248>>1]|0;break}h=lc[c[8792>>2]&127](h)|0}while(0);l=(h>>>0)/48|0;c[(k&p)>>2]=l;g=c[(n&p)>>2]|0;fw((c[(m&p)>>2]|0)+(g*48|0)|0,0,(l-g|0)*48|0)|0;g=c[(n&p)>>2]|0;l=15}while(0);if((l|0)==15){c[(n&p)>>2]=g+1;i=c[(m&p)>>2]|0;a:do if(!d){b[(i+(g*48|0)&o)+16>>1]=1;d=0}else{if(!(c[(d&p)+4>>2]&262144))h=1;else{h=c[(d&p)+28>>2]|0;h=((fs(h,((h|0)<0)<<31>>31)|0)&65535)+65266&65535}b[(i+(g*48|0)&o)+16>>1]=h;while(1){h=c[(d&p)+4>>2]|0;if(!(h&4096))break a;if(!(h&262144))d=d+12|0;else d=c[((c[(d&p)+20>>2]|0)&p)+4>>2]|0;d=c[(d&p)>>2]|0;if(!d){d=0;break}}}while(0);c[(i+(g*48|0)&p)>>2]=d;b[(i+(g*48|0)&o)+20>>1]=f;c[(i+(g*48|0)&p)+24>>2]=a;c[(i+(g*48|0)&p)+4>>2]=-1}return g|0}function Av(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;a:do if(d)if((a[(d&n)>>0]|0)==-102){d=c[(d&p)+28>>2]|0;f=c[(b&p)>>2]|0;if((f|0)>0)e=0;else{f=0;e=0;break}while(1){if((c[(b+(e<<2)&p)+4>>2]|0)==(d|0))break;e=e+1|0;if((e|0)>=(f|0)){f=0;e=0;break a}}e=iw(1,0,e|0)|0;f=G;break}else{g=Av(b,c[(d&p)+16>>2]|0)|0;e=G;h=Av(b,c[(d&p)+12>>2]|0)|0;e=G|e;f=d+20|0;if(!(c[(d&p)+4>>2]&2048)){d=Lu(b,c[(f&p)>>2]|0)|0;f=G}else{d=Bv(b,c[(f&p)>>2]|0)|0;f=G}f=e|f;e=h|g|d;break}else{f=0;e=0}while(0);G=f;return e|0}function Bv(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;if(!b){b=0;d=0}else{g=b;d=0;b=0;do{f=c[(g&p)+32>>2]|0;l=Lu(a,c[(g&p)>>2]|0)|0;b=G|b;k=Lu(a,c[(g&p)+40>>2]|0)|0;b=b|G;j=Lu(a,c[(g&p)+48>>2]|0)|0;b=b|G;i=Av(a,c[(g&p)+36>>2]|0)|0;b=b|G;e=Av(a,c[(g&p)+44>>2]|0)|0;d=l|d|k|j|i|e;b=b|G;if((f|0)!=0?(h=c[(f&p)>>2]|0,(h|0)>0):0){e=0;do{j=Bv(a,c[(f+(e*72|0)&p)+28>>2]|0)|0;b=G|b;k=Av(a,c[(f+(e*72|0)&p)+52>>2]|0)|0;d=j|d|k;b=b|G;e=e+1|0}while((e|0)<(h|0))}g=c[(g&p)+52>>2]|0}while((g|0)!=0)}G=b;return d|0}function Cv(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;l=b[(e&o)+18>>1]|0;k=b[(f&o)+18>>1]|0;h=k|l;if(((!((l&62)==0|(k&62)==0)?(g=h&65535,(g&26|0)==(g|0)|(g&38|0)==(g|0)):0)?(j=c[(e&p)>>2]|0,i=c[(f&p)>>2]|0,(Cu(c[(j&p)+12>>2]|0,c[(i&p)+12>>2]|0,-1)|0)==0):0)?(Cu(c[(j&p)+16>>2]|0,c[(i&p)+16>>2]|0,-1)|0)==0:0){if(g+65535&g)h=(g&24|0)==0?32:8;i=Mr(c[(c[(c[(d&p)>>2]&p)>>2]&p)>>2]|0,j,0,0)|0;if(i){h=h&65535;g=79;while(1)if((h|0)==(2<<g+-79|0))break;else g=g+1|0;a[(i&n)>>0]=g;Eu(d,zv(d,i,3)|0)}}return}function Dv(d,f,g,h,i,j){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;j=j|0;var k=0,l=0,m=0,q=0;c[(d&p)>>2]=f;c[(d&p)+4>>2]=f;a:do if((j|0)!=0&(h|0)>-1){a[(d&n)+12>>0]=a[((c[((c[(j&p)+12>>2]|0)&p)+4>>2]|0)+(h*24|0)&n)+21>>0]|0;k=c[(j&p)+4>>2]|0;if((b[(k&o)>>1]|0)==(h|0))f=0;else{l=e[(j&o)+48>>1]|0;m=0;while(1){f=m+1|0;if((m|0)>(l|0)){f=0;break a}if((b[(k+(f<<1)&o)>>1]|0)==(h|0))break;else m=f}}c[(d&p)+8>>2]=c[((c[(j&p)+32>>2]|0)+(f<<2)&p)>>2];q=8}else{a[(d&n)+12>>0]=0;c[(d&p)+8>>2]=0;q=8}while(0);if((q|0)==8){c[(d&p)+16>>2]=i;c[(d&p)+20>>2]=0;c[(d&p)+24>>2]=g;c[(d&p)+28>>2]=h;a[(d&n)+13>>0]=2;a[(d&n)+14>>0]=2;f=Ev(d)|0}return f|0}
|
|
function Tn(d,f,g,h,k,l,m,q,r){d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;var 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,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;da=i;i=i+160|0;if((i|0)>=(j|0))fa();R=da+16|0;N=da+152|0;P=da+48|0;M=da+40|0;Q=da+36|0;O=da+32|0;U=da+8|0;T=da;Z=da+28|0;ba=da+24|0;c[(ba&p)>>2]=0;do if(!(a[(d&n)+46>>0]|0)){ca=d+43|0;if((a[(ca&n)>>0]|0)==0?(s=c[(d&p)+4>>2]|0,s=pc[c[((c[(s&p)>>2]|0)&p)+56>>2]&31](s,1,1,10)|0,(s|0)!=0):0)break;aa=d+45|0;a[(aa&n)>>0]=1;a:do if(!f){w=0;_=11}else{u=d+4|0;s=(g|0)!=0;while(1){if(a[(ca&n)>>0]|0)break;w=c[(u&p)>>2]|0;w=pc[c[((c[(w&p)>>2]|0)&p)+56>>2]&31](w,0,1,10)|0;if(!(s&(w|0)==5)){_=9;break}if(!(lc[g&127](h)|0)){w=0;g=0;_=11;break a}}if((_|0)==9)if((w|0)==5){w=0;g=0;_=11;break}else if(w){$=f;break}a[(d&n)+44>>0]=1;w=f;_=11}while(0);if((_|0)==11){$=w;w=nq(d,ba)|0}do if(!w){Y=d+68|0;w=b[(d&o)+66>>1]|0;if((c[(Y&p)>>2]|0)!=0?(X=w&65535,(X<<16&65536|X&65024|0)!=(l|0)):0){c[(R&p)>>2]=51863;c[(R&p)+4>>2]=10788;bd(11,13600,R);t=11;break}V=w&65535;V=V<<16&65536|V&65024;X=d+32|0;W=(c[(c[(X&p)>>2]&p)>>2]|0)+96|0;z=c[(Y&p)>>2]|0;b:do if((c[(W&p)>>2]|0)>>>0<z>>>0){K=(z+33|0)>>>12;L=K+1|0;l=z<<1;y=l+28+(K*20|0)|0;s=Tc(y)|0;c:do if(!s){w=7;s=0}else{fw(s|0,0,y|0)|0;y=s+4|0;c[(y&p)>>2]=L;l=Tc(z>>>0>4096?8192:l)|0;do if(l){J=s+8|0;x=0;while(1){w=Po(d,x,M,O,Q)|0;if(w){_=21;break}I=(c[(O&p)>>2]|0)+4|0;c[(O&p)>>2]=I;if((x|0)==(K|0)){H=c[(Q&p)>>2]|0;w=H;H=z-H|0}else{w=c[(Q&p)>>2]|0;H=(c[(M&p)>>2]|0)-I>>2}u=J+((c[(y&p)>>2]|0)*20|0)|0;F=u+(w<<1)|0;E=w+1|0;c[(Q&p)>>2]=E;if((H|0)>0){B=0;do{b[(u+(B+w<<1)&o)>>1]=B;B=B+1|0}while((B|0)!=(H|0));c[(R&p)>>2]=0;c[(N&p)>>2]=0;C=P+0|0;B=C+104|0;do{c[(C&p)>>2]=0;C=C+4|0}while((C|0)<(B|0));D=0;do{c[(R&p)>>2]=1;C=u+(D+w<<1)|0;c[(N&p)>>2]=C;if(!(D&1)){A=1;B=0}else{B=0;do{oq(I,c[(P+(B<<3)&p)+4>>2]|0,c[(P+(B<<3)&p)>>2]|0,N,R,l);B=B+1|0}while((1<<B&D|0)!=0);A=c[(R&p)>>2]|0;C=c[(N&p)>>2]|0}c[(P+(B<<3)&p)+4>>2]=C;c[(P+(B<<3)&p)>>2]=A;D=D+1|0}while((D|0)!=(H|0));B=B+1|0;if((B|0)<13)_=34}else{c[(R&p)>>2]=0;c[(N&p)>>2]=0;C=P+0|0;B=C+104|0;do{c[(C&p)>>2]=0;C=C+4|0}while((C|0)<(B|0));B=1;_=34}if((_|0)==34){while(1){_=0;if(1<<B&H)oq(I,c[(P+(B<<3)&p)+4>>2]|0,c[(P+(B<<3)&p)>>2]|0,N,R,l);B=B+1|0;if((B|0)==13)break;else _=34}A=c[(R&p)>>2]|0}c[(J+(x*20|0)&p)+16>>2]=E;c[(J+(x*20|0)&p)+12>>2]=A;c[(J+(x*20|0)&p)+4>>2]=F;c[(J+(x*20|0)&p)+8>>2]=I;x=x+1|0;if((x|0)>=(L|0)){_=39;break}}if((_|0)==21){Wc(l);break}else if((_|0)==39){Wc(l);w=0;break c}}else{Wc(0);w=7}while(0);Wc(s)}while(0);if(!w){R=d+72|0;Q=c[(R&p)>>2]|0;P=d+4|0;A=1;z=c[(Y&p)>>2]|0;w=0;while(1){l=W+(A<<2)+4|0;u=c[(l&p)>>2]|0;d:do if(z>>>0>u>>>0){y=A+3|0;x=(g|0)!=0;while(1){if(a[(ca&n)>>0]|0)break;w=c[(P&p)>>2]|0;w=pc[c[((c[(w&p)>>2]|0)&p)+56>>2]&31](w,y,1,10)|0;if(!(x&(w|0)==5)){_=49;break}if(!(lc[g&127](h)|0)){g=0;w=5;break d}}if((_|0)==49){_=0;if((w|0)==5){g=0;w=5;break}else if(w){t=w;_=100;break b}}c[(l&p)>>2]=(A|0)==1?z:-1;if(!(a[(ca&n)>>0]|0)){u=c[(P&p)>>2]|0;pc[c[((c[(u&p)>>2]|0)&p)+56>>2]&31](u,y,1,9)|0;u=z;w=0}else{u=z;w=0}}else u=z;while(0);A=A+1|0;if((A|0)>=5){L=u;break}else z=u}e:do if((c[(W&p)>>2]|0)>>>0<L>>>0){w=(g|0)!=0;while(1){if(a[(ca&n)>>0]|0)break;u=c[(P&p)>>2]|0;u=pc[c[((c[(u&p)>>2]|0)&p)+56>>2]&31](u,3,1,10)|0;if(!(w&(u|0)==5)){v=u;_=58;break}if(!(lc[g&127](h)|0)){v=5;break e}}if((_|0)==58?(v|0)!=0:0)break;I=c[(W&p)>>2]|0;J=(k|0)!=0;if(J?(S=c[(d&p)+8>>2]|0,S=rc[c[((c[(S&p)>>2]|0)&p)+20>>2]&127](S,k)|0,(S|0)!=0):0)v=S;else _=61;f:do if((_|0)==61){S=sw(Q|0,0,V|0,0)|0;v=T;c[(v&p)>>2]=S;c[(v&p)+4>>2]=G;v=c[(P&p)>>2]|0;v=rc[c[((c[(v&p)>>2]|0)&p)+24>>2]&127](v,U)|0;if(!v){S=U;N=c[(S&p)+4>>2]|0;U=T;O=c[(U&p)+4>>2]|0;if((N|0)<(O|0)|((N|0)==(O|0)?(c[(S&p)>>2]|0)>>>0<(c[(U&p)>>2]|0)>>>0:0)){U=c[(P&p)>>2]|0;ac[c[((c[(U&p)>>2]|0)&p)+40>>2]&63](U,5,T)|0}E=s+4|0;F=V|24;H=d+8|0;w=c[(E&p)>>2]|0;g:do if((w|0)>0){v=0;while(1){D=c[(s&p)>>2]|0;C=-1;h:while(1){i:while(1){w=w+-1|0;A=s+(w*20|0)+8|0;l=c[(A&p)>>2]|0;u=c[(s+(w*20|0)&p)+20>>2]|0;j:do if((l|0)<(u|0)){z=c[(s+(w*20|0)&p)+12>>2]|0;B=c[(s+(w*20|0)&p)+16>>2]|0;while(1){x=e[(z+(l<<1)&o)>>1]|0;y=c[(B+(x<<2)&p)>>2]|0;if(y>>>0>D>>>0)break;l=l+1|0;c[(A&p)>>2]=l;if((l|0)>=(u|0))break j}if(y>>>0<C>>>0)break i}while(0);if((w|0)<=0){l=v;w=C;break h}}v=(c[(s+(w*20|0)&p)+24>>2]|0)+x|0;if((w|0)>0)C=y;else{l=v;w=y;break}}c[(s&p)>>2]=w;if((w|0)==-1)break g;if(!(l>>>0<=I>>>0|l>>>0>L>>>0|w>>>0>Q>>>0)){v=sw(l+-1|0,0,F|0,0)|0;v=jw(v|0,G|0,56,0)|0;U=c[(H&p)>>2]|0;v=tc[c[((c[(U&p)>>2]|0)&p)+8>>2]&31](U,m,V,v,G)|0;if(v)break f;v=sw(w+-1|0,0,V|0,0)|0;U=c[(P&p)>>2]|0;v=tc[c[((c[(U&p)>>2]|0)&p)+12>>2]&31](U,m,V,v,G)|0;if(v)break f}w=c[(E&p)>>2]|0;if((w|0)<=0){_=66;break}else v=l}}else _=66;while(0);if((_|0)==66)c[(s&p)>>2]=-1;if((L|0)==(c[((c[(c[(X&p)>>2]&p)>>2]|0)&p)+16>>2]|0)){v=sw(c[(R&p)>>2]|0,0,V|0,0)|0;_=c[(P&p)>>2]|0;v=ac[c[((c[(_&p)>>2]|0)&p)+16>>2]&63](_,v,G)|0;if((v|0)==0&J){v=c[(P&p)>>2]|0;v=rc[c[((c[(v&p)>>2]|0)&p)+20>>2]&127](v,k)|0}if(v)break}c[(W&p)>>2]=L;v=0}}while(0);if(!(a[(ca&n)>>0]|0)){_=c[(P&p)>>2]|0;pc[c[((c[(_&p)>>2]|0)&p)+56>>2]&31](_,3,1,9)|0}}else v=w;while(0);v=(v|0)==5?0:v;_=88}else t=w}else{s=0;v=0;_=88}while(0);k:do if((_|0)==88)if((v|0)==0&($|0)!=0)if((c[(W&p)>>2]|0)>>>0>=(c[(Y&p)>>2]|0)>>>0)if(($|0)>1){cd(4,Z);w=d+4|0;u=(g|0)!=0;while(1){if(a[(ca&n)>>0]|0)break;v=c[(w&p)>>2]|0;v=pc[c[((c[(v&p)>>2]|0)&p)+56>>2]&31](v,4,4,10)|0;if(!(u&(v|0)==5)){t=v;_=95;break}if(!(lc[g&127](h)|0)){t=5;_=100;break k}}if((_|0)==95?(t|0)!=0:0){_=100;break}if(($|0)==3){Xo(d,c[(Z&p)>>2]|0);t=c[(d&p)+8>>2]|0;t=ac[c[((c[(t&p)>>2]|0)&p)+16>>2]&63](t,0,0)|0}else t=0;if(!(a[(ca&n)>>0]|0)){_=c[(w&p)>>2]|0;pc[c[((c[(_&p)>>2]|0)&p)+56>>2]&31](_,4,4,9)|0;_=100}else _=100}else{t=0;_=100}else{t=5;_=100}else{t=v;_=100}while(0);if((_|0)==100)Wc(s);if((t|0)==0|(t|0)==5){if(q)c[(q&p)>>2]=c[(Y&p)>>2];if(r)c[(r&p)>>2]=c[((c[(c[(X&p)>>2]&p)>>2]|0)&p)+96>>2]}}else t=w;while(0);if(c[(ba&p)>>2]|0){C=d+52|0;B=C+48|0;do{c[(C&p)>>2]=0;C=C+4|0}while((C|0)<(B|0))}s=d+44|0;if(a[(s&n)>>0]|0){if(!(a[(ca&n)>>0]|0)){ba=c[(d&p)+4>>2]|0;pc[c[((c[(ba&p)>>2]|0)&p)+56>>2]&31](ba,0,1,9)|0}a[(s&n)>>0]=0;a[(d&n)+47>>0]=0}if(!(a[(ca&n)>>0]|0)){ca=c[(d&p)+4>>2]|0;pc[c[((c[(ca&p)>>2]|0)&p)+56>>2]&31](ca,1,1,9)|0}a[(aa&n)>>0]=0;s=(t|0)!=0|($|0)==(f|0)?t:5}else s=8;while(0);i=da;return s|0}function Un(b,c,d,e,f){b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=(c|0)<(e|0)?c:e;g=Zv(d,f,h)|0;a:do if(!g){b:do if(b){g=c-h|0;while(1){if((g|0)<=0)break;g=g+-1|0;if((a[(d+g+h&n)>>0]|0)!=32)break b}if(!g){g=e-h|0;while(1){if((g|0)<=0)break;g=g+-1|0;if((a[(f+g+h&n)>>0]|0)!=32)break b}if(!g){g=0;break a}}}while(0);g=c-e|0}while(0);return g|0}function Vn(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;a=Fc(c,e,(b|0)<(d|0)?b:d)|0;return ((a|0)==0?b-d|0:a)|0}function Wn(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 k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+16|0;if((i|0)>=(j|0))fa();y=A;r=c[(e&p)>>2]|0;a:do if(d){o=d;while(1)if(!(a[(o&n)>>0]|0))break;else o=o+1|0;q=o-d&1073741823;if((c[2189]|r&64|0)!=0&q>>>0>4?(Zv(d,14984,5)|0)==0:0){o=q+2|0;m=r|64;if(q){r=0;do{o=((a[(d+r&n)>>0]|0)==38&1)+o|0;r=r+1|0}while((r|0)<(q|0))}l=Tc(o)|0;if(l){do if((a[(d&n)+5>>0]|0)==47?(a[(d&n)+6>>0]|0)==47:0){o=7;while(1){u=a[(d+o&n)>>0]|0;if(u<<24>>24==0|u<<24>>24==47)break;o=o+1|0}if((o|0)==16){k=d+7|0;if(!(Zv(14992,k,9)|0)){o=0;r=16;k=0;break}}else if((o|0)==7){o=0;r=7;k=0;break}else k=d+7|0;c[(y&p)>>2]=o+-7;c[(y&p)+4>>2]=k;c[(h&p)>>2]=_c(15008,y)|0;k=1;z=74;break a}else{o=0;r=5;k=0}while(0);b:while(1){w=l+(k+-1)|0;c:while(1){d:while(1){q=a[(d+r&n)>>0]|0;if(q<<24>>24==35|q<<24>>24==0)break b;s=r+1|0;if((q<<24>>24==37?(x=a[(d+s&n)>>0]|0,(a[(x&255&n)+10368>>0]&8)!=0):0)?(v=a[(d+r&n)+2>>0]|0,(a[(v&255&n)+10368>>0]&8)!=0):0){q=x;s=v;break}if(!o){r=s;z=38;break c}else if((o|0)==2){r=s;z=39;break c}else if((o|0)!=1){r=s;break c}if(!(q<<24>>24==38|q<<24>>24==61)){o=1;r=s;break c}if(!(a[(w&n)>>0]|0))r=s;else{r=s;z=36;break c}while(1){u=a[(d+r&n)>>0]|0;if(u<<24>>24==35|u<<24>>24==0)continue d;if((a[(d+r+-1&n)>>0]|0)==38)continue d;else r=r+1|0}}q=q<<24>>24;r=r+3|0;u=s<<24>>24;q=(0-(u>>>6&1)&9)+u&15|(0-(q>>>6&1)&9)+q<<4&240;if(q){z=30;break}s=(o|0)==0;while(1){q=a[(d+r&n)>>0]|0;if(q<<24>>24==35|q<<24>>24==0)continue c;if(s&q<<24>>24==63){o=0;continue c}if((o|0)==1){if(q<<24>>24==38|q<<24>>24==61){o=1;continue c}}else if((o|0)==2?q<<24>>24==38:0){o=2;continue c}r=r+1|0}}if((z|0)==30){z=0;q=q&255}else if((z|0)==36){z=0;if(q<<24>>24==38){a[(l+k&n)>>0]=0;q=0;o=1;k=k+1|0}else{q=0;o=2}}else if((z|0)==38){z=0;if(q<<24>>24==63)z=40;else o=0}else if((z|0)==39){z=0;if(q<<24>>24==38)z=40;else o=2}if((z|0)==40){z=0;q=0;o=1}a[(l+k&n)>>0]=q;k=k+1|0}if((o|0)==1){a[(l+k&n)>>0]=0;k=k+1|0}a[(l+k&n)>>0]=0;a[(l+k&n)+1>>0]=0;k=l;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;k=(k-l&1073741823)+1|0;o=a[(l+k&n)>>0]|0;if(o<<24>>24){x=l+k|0;e:while(1){q=x;while(1){k=q+1|0;if(!(o<<24>>24)){o=q;break}o=a[(k&n)>>0]|0;q=k}w=o-x&1073741823;o=x+(w+1)|0;q=o;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;v=q-o&1073741823;if((w|0)==3){k=(Zv(15040,x,3)|0)==0;k=k?o:b}else if((w|0)==5)if(!(Zv(15048,x,5)|0)){d=15056;t=393216;u=-393217;k=15048;z=58}else k=b;else if((w|0)==4?(Zv(15096,x,4)|0)==0:0){d=15104;t=m&135;u=-136;k=15176;z=58}else k=b;if((z|0)==58){z=0;r=c[(d&p)>>2]|0;if(!r){z=65;break}else q=0;while(1){s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;if((v|0)==(s-r&1073741823|0)?(Zv(o,r,v)|0)==0:0){r=q;break}q=q+1|0;r=c[(d+(q<<3)&p)>>2]|0;if(!r){z=65;break e}}r=c[(d+(r<<3)&p)+4>>2]|0;if(!r){z=65;break}if((r&-129|0)>(t|0)){z=67;break}m=r|u&m;k=b}x=x+(w+2+v)|0;o=a[(x&n)>>0]|0;if(!(o<<24>>24)){z=72;break a}else b=k}if((z|0)==65){c[(y&p)>>2]=k;c[(y&p)+4>>2]=o;c[(h&p)>>2]=_c(15184,y)|0;k=1;z=74;break}else if((z|0)==67){c[(y&p)>>2]=k;c[(y&p)+4>>2]=o;c[(h&p)>>2]=_c(15208,y)|0;k=3;z=74;break}}else{k=b;z=72}}else k=7}else{m=q;z=70}}else{m=0;z=70}while(0);if((z|0)==70){l=Tc(m+2|0)|0;if(!l)k=7;else{kw(l|0,d|0,m|0)|0;a[(l+m&n)>>0]=0;a[(l+m&n)+1>>0]=0;m=r&-65;k=b;z=72}}if((z|0)==72){u=Kc(k)|0;c[(f&p)>>2]=u;if(!u){c[(y&p)>>2]=k;c[(h&p)>>2]=_c(15232,y)|0;k=1;z=74}else{k=0;z=75}}if((z|0)==74){Wc(l);l=0;z=75}if((z|0)==75){c[(e&p)>>2]=m;c[(g&p)>>2]=l}i=A;return k|0}function Xn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;do if(!d){d=qg(84,0)|0;if(!d)e=8;else{b=d+0|0;g=b+84|0;do{a[(b&n)>>0]=0;b=b+1|0}while((b|0)<(g|0));e=9}}else{f=c[(d&p)+4>>2]|0;c[(f&p)+4>>2]=c[(d&p)>>2];e=f+48|0;d=c[(e&p)>>2]|0;if(!d){d=qg(84,0)|0;if(!d){c[(e&p)>>2]=0;c[(f&p)+52>>2]=22;e=8;break}else{b=d+0|0;g=b+84|0;do{a[(b&n)>>0]=0;b=b+1|0}while((b|0)<(g|0));c[(e&p)>>2]=d;c[(f&p)+52>>2]=22;e=9;break}}else e=9}while(0);if((e|0)==8){a[(b&n)+65>>0]=1;d=0}else if((e|0)==9)if(!(a[(d&n)+76>>0]|0)){e=d+77|0;b=d+8|0;g=b+64|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(g|0));a[(e&n)>>0]=1}return d|0}function Yn(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();if(e){k=b+428|0;h=bn(k,e,m)|0;if(!h)g=0;else g=c[(h&p)+8>>2]|0;if((g|0)==0&(f|0)!=0){h=e;while(1)if(!(a[(h&n)>>0]|0))break;else h=h+1|0;h=h-e&1073741823;f=h+61|0;g=mh(b,f,0)|0;if(g){fw(g|0,0,f|0)|0;f=g+60|0;c[(g&p)>>2]=f;a[(g&n)+4>>0]=1;c[(g&p)+20>>2]=f;a[(g&n)+24>>0]=2;c[(g&p)+40>>2]=f;a[(g&n)+44>>0]=3;kw(f|0,e|0,h|0)|0;a[(g+h&n)+60>>0]=0;h=Ik(k,c[(g&p)>>2]|0,g)|0;if(!h)l=10;else{a[(b&n)+65>>0]=1;mg(b,h);g=0}}else g=0}else l=10}else{g=c[(b&p)+8>>2]|0;l=10}if((l|0)==10)if(!g)g=0;else g=g+(((d&255)+-1|0)*20|0)|0;i=m;return g|0}function Zn(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;D=i;i=i+64|0;if((i|0)>=(j|0))fa();B=D;k=D+48|0;s=D+24|0;x=D+8|0;m=(g|0)==1;v=m?13184:13208;c[(k&p)>>2]=v;c[(k&p)+4>>2]=13224;c[(k&p)+8>>2]=m?13064:12960;c[(k&p)+12>>2]=0;c[(x&p)>>2]=f;c[(x&p)+8>>2]=g;w=x+12|0;c[(w&p)>>2]=0;c[(x&p)+4>>2]=h;$m(x,3,k,0)|0;k=c[(w&p)>>2]|0;a:do if(!k){y=f+16|0;l=_h(f,v,c[((c[(y&p)>>2]|0)+(g<<4)&p)>>2]|0)|0;if(l){u=l+44|0;a[(u&n)>>0]=d[(u&n)>>0]|1}q=c[(y&p)>>2]|0;z=q+(g<<4)+4|0;l=c[(z&p)>>2]|0;if(!l){if(!m){k=0;break}k=(c[(q&p)+28>>2]|0)+78|0;b[(k&o)>>1]=e[(k&o)>>1]|1;k=0;break}c[((c[(l&p)+4>>2]|0)&p)+4>>2]=c[(l&p)>>2];do if(!(a[(l&n)+8>>0]|0)){k=yg(l,0)|0;if((k|0)==516)l=16344;else if(!k){l=c[(z&p)>>2]|0;u=1;break}else C=10;if((C|0)==10){l=k&255;if(l>>>0>26|(l|0)==2)l=16328;else l=c[(l<<2&p)+15488>>2]|0}c[(B&p)>>2]=l;dh(h,f,10344,B);C=38;break a}else u=0;while(0);wm(l,1,s);t=s+4|0;wm(c[(z&p)>>2]|0,2,t);r=s+8|0;wm(c[(z&p)>>2]|0,3,r);wm(c[(z&p)>>2]|0,4,s+12|0);k=s+16|0;wm(c[(z&p)>>2]|0,5,k);q=q+(g<<4)+12|0;l=c[(q&p)>>2]|0;c[(l&p)>>2]=c[(s&p)>>2];k=c[(k&p)>>2]|0;do if(k){if(!g){m=k&3;m=(m|0)==0?1:m&255;a[(f&n)+62>>0]=m;C=19;break}m=a[(f&n)+62>>0]|0;if((k|0)==(m&255|0))C=19;else{dh(h,f,13232,B);k=1}}else{m=(c[((c[(y&p)>>2]|0)+(g<<4)&p)+12>>2]|0)+78|0;b[(m&o)>>1]=e[(m&o)>>1]|4;m=a[(f&n)+62>>0]|0;C=19}while(0);do if((C|0)==19){a[(l&n)+77>>0]=m;m=l+80|0;if(!(c[(m&p)>>2]|0)){l=c[(r&p)>>2]|0;if((l|0)<=-1)l=(l|0)==-2147483648?2147483647:0-l|0;l=(l|0)==0?2e3:l;c[(m&p)>>2]=l;pq(c[(z&p)>>2]|0,l);l=c[(q&p)>>2]|0}k=c[(t&p)>>2]|0;m=k&255;l=l+76|0;if(m<<24>>24){a[(l&n)>>0]=m;if((m&255)>4){dh(h,f,13304,B);k=1;break}}else a[(l&n)>>0]=1;if((g|0)==0&(k|0)>3){t=f+24|0;c[(t&p)>>2]=c[(t&p)>>2]&-32769}c[(B&p)>>2]=c[((c[(y&p)>>2]|0)+(g<<4)&p)>>2];c[(B&p)+4>>2]=v;k=uh(f,13328,B)|0;v=f+284|0;t=c[(v&p)>>2]|0;c[(v&p)>>2]=0;l=Qe(f,k,22,x,0)|0;c[(v&p)>>2]=t;l=(l|0)==0?c[(w&p)>>2]|0:l;mg(f,k);k=(l|0)==0;if(k)an(f,g)|0;if(!(a[(f&n)+65>>0]|0)){if(!k){A=l;C=34}}else{Eg(f);A=7;C=34}if((C|0)==34?(c[(f&p)+24>>2]&65536|0)==0:0){k=A;break}k=(c[((c[(y&p)>>2]|0)+(g<<4)&p)+12>>2]|0)+78|0;b[(k&o)>>1]=e[(k&o)>>1]|1;k=0}while(0);if(!u)C=38;else{un(c[(z&p)>>2]|0)|0;C=38}}else C=38;while(0);if((C|0)==38)if((k|0)==7|(k|0)==3082)a[(f&n)+65>>0]=1;i=D;return k|0}function _n(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+80|0;if((i|0)>=(j|0))fa();o=q;c[12066]=c[2708];if(!(c[12067]|0))c[12067]=Lb(48336)|0;if(!(c[12068]|0))c[12068]=Lb(48352)|0;g=o+12|0;h=0;f=0;do{if((((f|0)!=0?(rc[c[47604>>2]&127](f,o)|0)==0:0)?(c[(g&p)>>2]&61440|0)==16384:0)?(rc[c[47580>>2]&127](f,7)|0)==0:0)break;f=c[(h<<2&p)+48264>>2]|0;h=h+1|0}while(h>>>0<7);m=(f|0)==0?28928:f;if(((gw(m|0)|0)+25|0)>>>0<b>>>0){b=b+-18|0;do{c[(o&p)>>2]=m;ad(b,e,48248,o)|0;g=gw(e|0)|0;f=e+g|0;cd(15,f);l=e+(g+15)|0;k=0;h=g;while(1){a[(f&n)>>0]=a[(((d[(f&n)>>0]|0)%62|0)&255&n)+48184>>0]|0;k=k+1|0;h=h+1|0;if((k|0)==15)break;else f=e+h|0}a[(l&n)>>0]=0;a[(e+g&n)+16>>0]=0}while((rc[c[47580>>2]&127](e,0)|0)==0);f=0}else f=1;i=q;return f|0}function $n(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+80|0;if((i|0)>=(j|0))fa();k=m;h=(d|0)!=0;f=h?d:420;g=b|524288;while(1){e=ac[c[47556>>2]&63](a,g,f)|0;if((e|0)<0)if((c[((Hb()|0)&p)>>2]|0)==4)continue;else break;if((e|0)>2){l=6;break}lc[c[47568>>2]&127](e)|0;c[(k&p)>>2]=a;c[(k&p)+4>>2]=e;bd(28,48120,k);if((ac[c[47556>>2]&63](48168,b,d)|0)<0){e=-1;break}}if((l|0)==6)if(((h?(rc[c[47616>>2]&127](e,k)|0)==0:0)?(c[(k&p)+36>>2]|0)==0:0)?(c[(k&p)+12>>2]&511|0)!=(d|0):0)rc[c[47724>>2]&127](e,d)|0;i=m;return e|0}function ao(a,b,d){a=a|0;b=b|0;d=d|0;if(lc[c[47568>>2]&127](b)|0){if(!a)b=0;else b=c[(a&p)+32>>2]|0;co(4106,47856,b,d)|0}return}function bo(a){a=a|0;var d=0,f=0,g=0,h=0;h=i;i=i+80|0;if((i|0)>=(j|0))fa();g=h;d=h+4|0;f=a+18|0;do if(!(b[(f&o)>>1]&256)){if(rc[c[47616>>2]&127](c[(a&p)+12>>2]|0,d)|0){c[(g&p)>>2]=c[(a&p)+32>>2];bd(28,48592,g);b[(f&o)>>1]=e[(f&o)>>1]|0|256;break}d=c[(d&p)+16>>2]|0;if(!d){if(!(b[(f&o)>>1]&32)){c[(g&p)>>2]=c[(a&p)+32>>2];bd(28,48616,g);b[(f&o)>>1]=e[(f&o)>>1]|0|256;break}}else if(d>>>0>1){c[(g&p)>>2]=c[(a&p)+32>>2];bd(28,48648,g);b[(f&o)>>1]=e[(f&o)>>1]|0|256;break}if(xo(a)|0){c[(g&p)>>2]=c[(a&p)+32>>2];bd(28,48680,g);b[(f&o)>>1]=e[(f&o)>>1]|0|256}}while(0);i=h;return}function co(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;f=i;i=i+32|0;if((i|0)>=(j|0))fa();g=f;k=c[((Hb()|0)&p)>>2]|0;h=Rb(k|0)|0;c[(g&p)>>2]=e;c[(g&p)+4>>2]=k;c[(g&p)+8>>2]=b;c[(g&p)+12>>2]=(d|0)==0?10360:d;c[(g&p)+16>>2]=h;bd(a,47864,g);i=f;return a|0}function eo(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;i=a+40|0;d=c[(i&p)>>2]|0;h=d<<1;h=h>>>0<256?256:h;if((d|0)!=0?(b=c[3164]|0,(b|0)!=0):0)nc[b&3]();b=h<<2;g=qg(b,0)|0;d=(g|0)==0;if(!d)fw(g|0,0,b|0)|0;if((c[(i&p)>>2]|0)!=0?(e=c[3166]|0,(e|0)!=0):0)nc[e&3]();if(!d){e=c[(i&p)>>2]|0;f=a+44|0;b=c[(f&p)>>2]|0;if(e){a=0;do{d=c[(b+(a<<2)&p)>>2]|0;if(d){do{k=d+16|0;j=d;d=c[(k&p)>>2]|0;b=g+((((c[(j&p)+8>>2]|0)>>>0)%(h>>>0)|0)<<2)|0;c[(k&p)>>2]=c[(b&p)>>2];c[(b&p)>>2]=j}while((d|0)!=0);b=c[(f&p)>>2]|0}a=a+1|0}while(a>>>0<e>>>0)}Wc(b);c[(f&p)>>2]=g;c[(i&p)>>2]=h}return}function fo(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,i=0;g=a+24|0;h=a+16|0;d=a+4|0;a:do if((c[(h&p)>>2]|0)>>>0>(c[(d&p)>>2]|0)>>>0)do{e=c[(g&p)>>2]|0;if(!e)break a;go(e);f=c[(e&p)+20>>2]|0;b=(c[(f&p)+44>>2]|0)+((((c[(e&p)+8>>2]|0)>>>0)%((c[(f&p)+40>>2]|0)>>>0)|0)<<2)|0;while(1){i=c[(b&p)>>2]|0;a=i+16|0;if((i|0)==(e|0))break;else b=a}c[(b&p)>>2]=c[(a&p)>>2];a=f+36|0;c[(a&p)>>2]=(c[(a&p)>>2]|0)+-1;io(e)}while((c[(h&p)>>2]|0)>>>0>(c[(d&p)>>2]|0)>>>0);while(0);return}function go(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;e=c[(b&p)+20>>2]|0;f=c[(e&p)>>2]|0;g=b+28|0;h=c[(g&p)>>2]|0;i=b+24|0;d=c[(i&p)>>2]|0;if(!h)c[(f&p)+20>>2]=d;else{c[(h&p)+24>>2]=d;d=c[(i&p)>>2]|0}if(!d)c[(f&p)+24>>2]=h;else c[(d&p)+28>>2]=h;c[(i&p)>>2]=0;c[(g&p)>>2]=0;a[(b&n)+12>>0]=1;d=e+32|0;c[(d&p)>>2]=(c[(d&p)>>2]|0)+-1;return}function ho(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,o=0,q=0,r=0,s=0,t=0;k=c[(b&p)>>2]|0;s=b+36|0;i=c[(s&p)>>2]|0;g=c[(b&p)+32>>2]|0;h=i-g|0;q=(e|0)==1;if(q)if(h>>>0<(c[(k&p)+12>>2]|0)>>>0?h>>>0<(c[(b&p)+24>>2]|0)>>>0:0){if((c[3155]|0)!=0?((c[(b&p)+8>>2]|0)+(c[(b&p)+4>>2]|0)|0)<=(c[3154]|0):0)e=12648|0;else e=9060|0;if(!((c[(e&p)>>2]|0)!=0&g>>>0<h>>>0))o=8;else f=0}else f=0;else o=8;do if((o|0)==8){m=b+40|0;if(i>>>0>=(c[(m&p)>>2]|0)>>>0)eo(b);j=b+12|0;do if((c[(j&p)>>2]|0)!=0?(f=c[(k&p)+24>>2]|0,(f|0)!=0):0){if(((c[(s&p)>>2]|0)+1|0)>>>0<(c[(b&p)+20>>2]|0)>>>0?(c[(k&p)+16>>2]|0)>>>0<(c[(k&p)+4>>2]|0)>>>0:0){if((c[3155]|0)!=0?((c[(b&p)+8>>2]|0)+(c[(b&p)+4>>2]|0)|0)<=(c[3154]|0):0)e=12648|0;else e=9060|0;if(!(c[(e&p)>>2]|0)){o=23;break}}e=f+20|0;g=c[(e&p)>>2]|0;h=(c[(g&p)+44>>2]|0)+((((c[(f&p)+8>>2]|0)>>>0)%((c[(g&p)+40>>2]|0)>>>0)|0)<<2)|0;while(1){t=c[(h&p)>>2]|0;i=t+16|0;if((t|0)==(f|0))break;else h=i}c[(h&p)>>2]=c[(i&p)>>2];i=g+36|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+-1;go(f);e=c[(e&p)>>2]|0;if(((c[(e&p)+8>>2]|0)+(c[(e&p)+4>>2]|0)|0)==((c[(b&p)+8>>2]|0)+(c[(b&p)+4>>2]|0)|0)){l=k+16|0;c[(l&p)>>2]=(c[(j&p)>>2]|0)-(c[(e&p)+12>>2]|0)+(c[(l&p)>>2]|0);break}else{io(f);o=23;break}}else o=23;while(0);if((o|0)==23){if(q?(l=c[3164]|0,(l|0)!=0):0)nc[l&3]();e=b+4|0;g=Go((c[(e&p)>>2]|0)+32+(c[(b&p)+8>>2]|0)|0)|0;e=c[(e&p)>>2]|0;f=g+e|0;if(g){c[(f&p)>>2]=g;c[(g+e&p)+4>>2]=g+(e+32);if(c[(j&p)>>2]|0){o=(c[(b&p)>>2]|0)+16|0;c[(o&p)>>2]=(c[(o&p)>>2]|0)+1}}else f=0;if(q?(r=c[3166]|0,(r|0)!=0):0)nc[r&3]();if(!f){f=0;break}}g=(d>>>0)%((c[(m&p)>>2]|0)>>>0)|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;c[(f&p)+8>>2]=d;o=b+44|0;c[(f&p)+16>>2]=c[((c[(o&p)>>2]|0)+(g<<2)&p)>>2];c[(f&p)+20>>2]=b;c[(f&p)+28>>2]=0;c[(f&p)+24>>2]=0;a[(f&n)+12>>0]=1;c[(c[(f&p)+4>>2]&p)>>2]=0;c[((c[(o&p)>>2]|0)+(g<<2)&p)>>2]=f;g=b+28|0;if((c[(g&p)>>2]|0)>>>0<d>>>0)c[(g&p)>>2]=d}while(0);return f|0}function io(a){a=a|0;var b=0;if((a|0)!=0?(b=c[(a&p)+20>>2]|0,$k(c[(a&p)>>2]|0),(c[(b&p)+12>>2]|0)!=0):0){b=(c[(b&p)>>2]|0)+16|0;c[(b&p)>>2]=(c[(b&p)>>2]|0)+-1}return}function jo(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=b+40|0;if(c[(h&p)>>2]|0){i=b+44|0;f=b+36|0;g=0;do{e=(c[(i&p)>>2]|0)+(g<<2)|0;b=c[(e&p)>>2]|0;a:do if(b)do{while(1){if((c[(b&p)+8>>2]|0)>>>0<d>>>0)break;c[(f&p)>>2]=(c[(f&p)>>2]|0)+-1;c[(e&p)>>2]=c[(b&p)+16>>2];if(!(a[(b&n)+12>>0]|0))go(b);io(b);b=c[(e&p)>>2]|0;if(!b)break a}e=b+16|0;b=c[(e&p)>>2]|0}while((b|0)!=0);while(0);g=g+1|0}while(g>>>0<(c[(h&p)>>2]|0)>>>0)}return}function ko(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;f=c[(b&p)>>2]|0;g=c[((c[(f&p)+32>>2]|0)&p)+88>>2]|0;h=((g|0)<0)<<31>>31;if(!((h|0)<(e|0)|(h|0)==(e|0)&g>>>0<d>>>0)){d=qg(d,e)|0;if(!d){Rd(b);d=0}}else{c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(f,10096,-1,1,0)|0;d=0}return d|0}function lo(b){b=b|0;var c=0,d=0,e=0,f=0;do if(b){c=a[(b&n)>>0]|0;d=c<<24>>24;if((d|0)==91)f=93;else if((d|0)==96|(d|0)==34|(d|0)==39)f=c;else break;d=1;e=0;while(1){c=a[(b+d&n)>>0]|0;if(c<<24>>24==f<<24>>24){d=d+1|0;c=b+e|0;if((a[(b+d&n)>>0]|0)!=f<<24>>24)break;a[(c&n)>>0]=f}else a[(b+e&n)>>0]=c;d=d+1|0;e=e+1|0}a[(c&n)>>0]=0}while(0);return}function mo(b,f,g,k){b=b|0;f=f|0;g=g|0;k=k|0;var l=0,m=0,r=0,s=0,t=0,u=0,v=0,w=0.0,x=0.0,y=0.0,z=0,A=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,S=0,T=0,U=0,V=0,W=0,X=0;W=i;i=i+176|0;if((i|0)>=(j|0))fa();T=W+64|0;u=W+132|0;t=W+128|0;s=W+124|0;v=W+56|0;P=W+48|0;U=W+136|0;S=W;r=k+0|0;m=r+48|0;do{c[(r&p)>>2]=0;r=r+4|0}while((r|0)<(m|0));a:do if(f){l=c[(g&p)>>2]|0;b:do if(((d[(e[(l&o)+8>>1]&31&n)+10064>>0]|0)+-1|0)>>>0>=2){r=Sg(l,1)|0;if(!r){l=1;break a}m=(a[(r&n)>>0]|0)==45;l=m?r+1|0:r;c[(T&p)>>2]=4;c[(T&p)+4>>2]=0;c[(T&p)+8>>2]=9999;c[(T&p)+12>>2]=45;c[(T&p)+16>>2]=u;c[(T&p)+20>>2]=2;c[(T&p)+24>>2]=1;c[(T&p)+28>>2]=12;c[(T&p)+32>>2]=45;c[(T&p)+36>>2]=t;c[(T&p)+40>>2]=2;c[(T&p)+44>>2]=1;c[(T&p)+48>>2]=31;c[(T&p)+52>>2]=0;c[(T&p)+56>>2]=s;do if((rq(l,T)|0)==3){l=l+10|0;while(1){M=a[(l&n)>>0]|0;if(M<<24>>24==84?1:(a[(M&255&n)+10368>>0]&1)!=0)l=l+1|0;else break}if(sq(l,k)|0){if(a[(l&n)>>0]|0)break;a[(k&n)+41>>0]=0}a[(k&n)+42>>0]=0;a[(k&n)+40>>0]=1;M=c[(u&p)>>2]|0;c[(k&p)+8>>2]=m?0-M|0:M;c[(k&p)+12>>2]=c[(t&p)>>2];c[(k&p)+16>>2]=c[(s&p)>>2];if(!(a[(k&n)+43>>0]|0))break b;no(k);break b}while(0);if(sq(r,k)|0){if(!(dd(r,20080)|0))if(!(qq(b,k)|0))break;else{l=1;break a}else l=r;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;if(!(Tl(r,v,l-r&1073741823,1)|0)){l=1;break a}w=+h[(v&q)>>3]*864.0e5+.5;L=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;M=k;c[(M&p)>>2]=~~w>>>0;c[(M&p)+4>>2]=L;a[(k&n)+42>>0]=1}}else{w=+Ug(l)*864.0e5+.5;L=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;M=k;c[(M&p)>>2]=~~w>>>0;c[(M&p)+4>>2]=L;a[(k&n)+42>>0]=1}while(0);if((f|0)>1){l=k+40|0;z=k+41|0;A=k+43|0;B=k+42|0;C=U+8|0;D=C;E=U+9|0;F=k+24|0;H=k+20|0;I=k+32|0;J=k+16|0;K=k+12|0;L=U+1|0;M=k+8|0;N=1;while(1){t=Sg(c[(g+(N<<2)&p)>>2]|0,1)|0;if(!t){l=1;break a}c[(T&p)>>2]=1;v=0;do{u=a[(t+v&n)>>0]|0;if(!(u<<24>>24))break;a[(U+v&n)>>0]=a[(u&255&n)+9328>>0]|0;v=v+1|0}while((v|0)<29);a[(U+v&n)>>0]=0;c:do switch(a[(U&n)>>0]|0){case 119:{if(!($v(U,19976,8)|0)){v=C;while(1)if(!(a[(v&n)>>0]|0))break;else v=v+1|0;if((Tl(C,P,v-D&1073741823,1)|0)!=0?(w=+h[(P&q)>>3],O=~~w,+(O|0)==w&(O|0)>-1&w<7.0):0){oo(k);po(k);a[(A&n)>>0]=0;a[(B&n)>>0]=0;no(k);m=k;v=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;t=jw(v|0,m|0,1296e5,0)|0;t=qw(t|0,G|0,864e5,0)|0;t=rw(t|0,G|0,7,0)|0;r=G;X=((O|0)<0)<<31>>31;s=(r|0)>(X|0)|(r|0)==(X|0)&t>>>0>O>>>0;u=jw(t|0,r|0,-7,-1)|0;r=dw(O|0,X|0,(s?u:t)|0,(s?G:r)|0)|0;r=sw(r|0,G|0,864e5,0)|0;m=jw(r|0,G|0,v|0,m|0)|0;v=k;c[(v&p)>>2]=m;c[(v&p)+4>>2]=G;a[(l&n)>>0]=0;a[(z&n)>>0]=0;a[(A&n)>>0]=0;c[(T&p)>>2]=0;v=0}else V=82}else V=82;break}case 108:{if(!(_v(U,19936)|0)){no(k);m=tq(k,b,T)|0;V=k;m=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]|0,m|0,G|0)|0;V=k;c[(V&p)>>2]=m;c[(V&p)+4>>2]=G;a[(l&n)>>0]=0;a[(z&n)>>0]=0;a[(A&n)>>0]=0;V=82}else V=82;break}case 115:{if(!($v(U,19992,9)|0)){oo(k);a[(z&n)>>0]=1;c[(F&p)>>2]=0;c[(H&p)>>2]=0;h[(I&q)>>3]=0.0;a[(A&n)>>0]=0;a[(B&n)>>0]=0;if(!(_v(E,20008)|0)){c[(J&p)>>2]=1;c[(T&p)>>2]=0;v=0;break c}if(!(_v(E,20016)|0)){oo(k);c[(K&p)>>2]=1;c[(J&p)>>2]=1;c[(T&p)>>2]=0;v=0;break c}if(!(_v(E,20024)|0)){c[(T&p)>>2]=0;v=0}else V=82}else V=82;break}case 117:{if((_v(U,19952)|0)==0?(a[(B&n)>>0]|0)!=0:0){m=k;m=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,43200,0)|0;m=qw(m|0,G|0,86400,0)|0;m=jw(m|0,G|0,1045635584,49096)|0;v=k;c[(v&p)>>2]=m;c[(v&p)+4>>2]=G;a[(l&n)>>0]=0;a[(z&n)>>0]=0;a[(A&n)>>0]=0;c[(T&p)>>2]=0;v=0;break c}if(!(_v(U,19968)|0)){no(k);u=tq(k,b,T)|0;t=G;v=c[(T&p)>>2]|0;if(!v){m=k;m=dw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,u|0,t|0)|0;V=k;c[(V&p)>>2]=m;c[(V&p)+4>>2]=G;a[(l&n)>>0]=0;a[(z&n)>>0]=0;a[(A&n)>>0]=0;V=tq(k,b,T)|0;V=dw(u|0,t|0,V|0,G|0)|0;m=k;m=jw(V|0,G|0,c[(m&p)>>2]|0,c[(m&p)+4>>2]|0)|0;V=k;c[(V&p)>>2]=m;c[(V&p)+4>>2]=G;V=82}}else V=82;break}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:case 45:case 43:{t=1;while(1){v=U+t|0;u=a[(v&n)>>0]|0;if(u<<24>>24==58|u<<24>>24==0){u=v;break}if(!(a[(u&255&n)+10368>>0]&1))t=t+1|0;else{u=v;break}}if(!(Tl(U,P,t,1)|0)){c[(T&p)>>2]=1;v=1;break c}v=a[(u&n)>>0]|0;if(v<<24>>24==58){v=((d[(U&n)>>0]|0)+-48|0)>>>0<10?U:L;r=S+0|0;m=r+48|0;do{c[(r&p)>>2]=0;r=r+4|0}while((r|0)<(m|0));if(sq(v,S)|0){V=82;break c}no(S);v=S;v=jw(c[(v&p)>>2]|0,c[(v&p)+4>>2]|0,-432e5,-1)|0;v=rw(v|0,G|0,864e5,0)|0;u=G;m=S;c[(m&p)>>2]=v;c[(m&p)+4>>2]=u;if((a[(U&n)>>0]|0)==45){v=dw(0,0,v|0,u|0)|0;u=G;m=S;c[(m&p)>>2]=v;c[(m&p)+4>>2]=u}no(k);a[(l&n)>>0]=0;a[(z&n)>>0]=0;a[(A&n)>>0]=0;m=k;m=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,v|0,u|0)|0;v=k;c[(v&p)>>2]=m;c[(v&p)+4>>2]=G;c[(T&p)>>2]=0;v=0;break c}if(a[(v&255&n)+10368>>0]&1){u=U+(t+1)|0;while(1){v=a[(u&n)>>0]|0;if(!(a[(v&255&n)+10368>>0]&1))break;else u=u+1|0}}if(!(v<<24>>24))v=u;else{v=u;do v=v+1|0;while((a[(v&n)>>0]|0)!=0)}v=v-u&1073741823;if((v+-3|0)>>>0>7)V=82;else{t=v+-1|0;s=u+t|0;if((a[(s&n)>>0]|0)==115){a[(s&n)>>0]=0;v=t}no(k);c[(T&p)>>2]=0;x=+h[(P&q)>>3];y=x<0.0?-.5:.5;do if((v|0)==4){if(!(_v(u,20032)|0)){w=x*36.0e5+y;r=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;m=k;r=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,~~w>>>0|0,r|0)|0;m=k;c[(m&p)>>2]=r;c[(m&p)+4>>2]=G;break}if(!(_v(u,20016)|0)){m=~~x;oo(k);po(k);c[(M&p)>>2]=(c[(M&p)>>2]|0)+m;a[(B&n)>>0]=0;no(k);w=+(m|0);if(w!=x){w=y+(x-w)*365.0*864.0e5;r=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;m=k;r=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,~~w>>>0|0,r|0)|0;m=k;c[(m&p)>>2]=r;c[(m&p)+4>>2]=G}}else V=80}else if((v|0)==6){if(!(_v(u,20040)|0)){w=x*6.0e4+y;r=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;m=k;r=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,~~w>>>0|0,r|0)|0;m=k;c[(m&p)>>2]=r;c[(m&p)+4>>2]=G;break}if(!(_v(u,20048)|0)){w=x*1.0e3+y;r=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;m=k;r=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,~~w>>>0|0,r|0)|0;m=k;c[(m&p)>>2]=r;c[(m&p)+4>>2]=G}else V=80}else if((v|0)==5)if(!(_v(u,20008)|0)){oo(k);po(k);m=~~x;r=(c[(K&p)>>2]|0)+m|0;s=(((r|0)>0?-1:-12)+r|0)/12|0;c[(M&p)>>2]=(c[(M&p)>>2]|0)+s;c[(K&p)>>2]=(ca(s,-12)|0)+r;a[(B&n)>>0]=0;no(k);w=+(m|0);if(w!=x){w=y+(x-w)*30.0*864.0e5;r=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;m=k;r=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,~~w>>>0|0,r|0)|0;m=k;c[(m&p)>>2]=r;c[(m&p)+4>>2]=G}}else V=80;else if((v|0)==3?(_v(u,20024)|0)==0:0){w=x*864.0e5+y;r=+R(w)>=1.0?(w>0.0?~~+da(+Q(w/4294967296.0),4294967295.0)>>>0:~~+ba((w-+(~~w>>>0))/4294967296.0)>>>0):0;m=k;r=jw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,~~w>>>0|0,r|0)|0;m=k;c[(m&p)>>2]=r;c[(m&p)+4>>2]=G}else V=80;while(0);if((V|0)==80)c[(T&p)>>2]=1;a[(l&n)>>0]=0;a[(z&n)>>0]=0;a[(A&n)>>0]=0;V=82}break}default:V=82}while(0);if((V|0)==82){V=0;v=c[(T&p)>>2]|0}N=N+1|0;if(v){l=1;break a}if((N|0)>=(f|0)){l=0;break a}}}else l=0}else l=qq(b,k)|0;while(0);i=W;return l|0}function no(b){b=b|0;var d=0,e=0,f=0,g=0,i=0,j=0,k=0,l=0,m=0,o=0.0;i=b+42|0;if(!(a[(i&n)>>0]|0)){j=b+40|0;if(a[(j&n)>>0]|0){e=c[(b&p)+8>>2]|0;d=c[(b&p)+12>>2]|0;f=c[(b&p)+16>>2]|0;if((d|0)<3)g=4}else{f=1;d=1;e=2e3;g=4}if((g|0)==4){d=d+12|0;e=e+-1|0}o=(+(f+2+((e|0)/-100|0)+((e|0)/400|0)+(((e*36525|0)+172251900|0)/100|0)+(((d*306001|0)+306001|0)/1e4|0)|0)+-1524.5)*864.0e5;e=~~o>>>0;f=+R(o)>=1.0?(o>0.0?~~+da(+Q(o/4294967296.0),4294967295.0)>>>0:~~+ba((o-+(~~o>>>0))/4294967296.0)>>>0):0;d=b;c[(d&p)>>2]=e;c[(d&p)+4>>2]=f;a[(i&n)>>0]=1;d=b+41|0;if((a[(d&n)>>0]|0)!=0?(k=ca(c[(b&p)+20>>2]|0,36e5)|0,k=((c[(b&p)+24>>2]|0)*6e4|0)+k|0,o=+h[(b&q)+32>>3]*1.0e3,l=jw(~~o>>>0|0,(+R(o)>=1.0?(o>0.0?~~+da(+Q(o/4294967296.0),4294967295.0)>>>0:~~+ba((o-+(~~o>>>0))/4294967296.0)>>>0):0)|0,e|0,f|0)|0,k=jw(l|0,G|0,k|0,((k|0)<0)<<31>>31|0)|0,l=G,m=b,c[(m&p)>>2]=k,c[(m&p)+4>>2]=l,m=b+43|0,(a[(m&n)>>0]|0)!=0):0){f=(c[(b&p)+28>>2]|0)*6e4|0;f=dw(k|0,l|0,f|0,((f|0)<0)<<31>>31|0)|0;e=b;c[(e&p)>>2]=f;c[(e&p)+4>>2]=G;a[(j&n)>>0]=0;a[(d&n)>>0]=0;a[(m&n)>>0]=0}}return}function oo(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;g=b+40|0;if(!(a[(g&n)>>0]|0)){if(!(a[(b&n)+42>>0]|0)){d=2e3;e=1;f=1}else{d=b;d=jw(c[(d&p)>>2]|0,c[(d&p)+4>>2]|0,432e5,0)|0;d=qw(d|0,G|0,864e5,0)|0;h=~~((+(d|0)+-1867216.25)/36524.25);h=d+1525+h+((h|0)/-4|0)|0;d=~~((+(h|0)+-122.1)/365.25);h=h-((d*36525|0)/100|0)|0;f=~~(+(h|0)/30.6001);e=((f|0)<14?-1:-13)+f|0;d=((e|0)>2?-4716:-4715)+d|0;f=h-~~(+(f|0)*30.6001)|0}c[(b&p)+16>>2]=f;c[(b&p)+12>>2]=e;c[(b&p)+8>>2]=d;a[(g&n)>>0]=1}return}function po(b){b=b|0;var d=0,e=0,f=0,g=0,i=0.0;d=b+41|0;if(!(a[(d&n)>>0]|0)){no(b);g=b;g=jw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,432e5,0)|0;g=rw(g|0,G|0,864e5,0)|0;i=+(g|0)/1.0e3;g=~~i;f=(g|0)/3600|0;c[(b&p)+20>>2]=f;f=(ca(f,-3600)|0)+g|0;e=(f|0)/60|0;c[(b&p)+24>>2]=e;h[(b&q)+32>>3]=i-+(g|0)+ +(f+(ca(e,-60)|0)|0);a[(d&n)>>0]=1}return}function qo(a){a=a|0;mg(c[(a&p)+52>>2]|0,a);return}function ro(b,d,f,g){b=b|0;d=d|0;f=f|0;g=g|0;var h=0,i=0;i=b+65|0;do if(!(a[(i&n)>>0]|0)){if(!d){h=mh(b,f,g)|0;break}if((c[(b&p)+276>>2]|0)>>>0<=d>>>0?(c[(b&p)+280>>2]|0)>>>0>d>>>0:0){i=b+248|0;if(!(0<g>>>0|(0==(g|0)?(e[(i&o)>>1]|0)>>>0<f>>>0:0))){h=d;break}h=mh(b,f,g)|0;if(!h){h=0;break}kw(h|0,d|0,e[(i&o)>>1]|0)|0;mg(b,d);break}if((Lc()|0)==0?(h=rg(d,f,g)|0,(h|0)!=0):0)break;a[(i&n)>>0]=1;h=0}else h=0;while(0);return h|0}function so(a,d){a=a|0;d=d|0;var e=0,f=0;if(!a)a=0;else{f=c[(a&p)+4>>2]|0;c[(f&p)+4>>2]=c[(a&p)>>2];f=f+22|0;a=b[(f&o)>>1]|0;if((d|0)>-1){e=a&65535;a=e&65531;b[(f&o)>>1]=a;if(d){a=(e|4)&65535;b[(f&o)>>1]=a}}a=(a&65535)>>>2&1}return a|0}function to(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;h=c[(b&p)+4>>2]|0;c[(h&p)+4>>2]=c[(b&p)>>2];h=c[(h&p)>>2]|0;f=e&3;if((f|0)!=1){g=a[(h&n)+12>>0]|0;b=h+7|0;a[(b&n)>>0]=g<<24>>24!=0&1;if((f|0)==3)g=g<<24>>24==0&1;else g=0}else{b=h+7|0;a[(b&n)>>0]=1;g=0}a[(h&n)+8>>0]=g;do if(!(a[(b&n)>>0]|0)){if(e&4){a[(h&n)+11>>0]=3;a[(h&n)+9>>0]=3;b=3;break}a[(h&n)+11>>0]=2;b=h+9|0;if(!(e&8)){a[(b&n)>>0]=2;b=2;break}else{a[(b&n)>>0]=3;b=2;break}}else{a[(h&n)+11>>0]=0;a[(h&n)+9>>0]=0;b=0}while(0);if(g<<24>>24)b=(b&255|32)&255;a[(h&n)+10>>0]=b;b=h+20|0;f=d[(b&n)>>0]|0;a[(b&n)>>0]=(e&16|0)==0?f|1:f&254;return}function uo(a){a=a|0;var b=0,d=0;d=a+12|0;b=c[(d&p)>>2]|0;if((b|0)>-1){ao(a,b,27311);c[(d&p)>>2]=-1}Wc(c[(a&p)+28>>2]|0);b=a+0|0;d=b+44|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));return}function vo(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;i=f&131071;while(1){h=cb(a|0,b|0,0)|0;if(!((h|0)==(b|0)&(((h|0)<0)<<31>>31|0)==(d|0))){j=3;break}h=ac[c[47688>>2]&63](a,e,i)|0;if((h|0)>=0)break;f=c[((Hb()|0)&p)>>2]|0;if((f|0)!=4){j=9;break}}if((j|0)==3)if(!g)h=-1;else{if((h|0)==-1)h=c[((Hb()|0)&p)>>2]|0;else h=0;c[(g&p)>>2]=h;h=-1}else if((j|0)==9)if(g)c[(g&p)>>2]=f;return h|0}function wo(a,d,f){a=a|0;d=d|0;f=f|0;var g=0;g=c[(f&p)>>2]|0;do if((g|0)>=0){d=d&255;if(!g){f=a+18|0;b[(f&o)>>1]=(e[(f&o)>>1]|0)&(d^65535);break}else{f=a+18|0;b[(f&o)>>1]=e[(f&o)>>1]|0|d;break}}else c[(f&p)>>2]=((e[(a&o)+18>>1]|0)&(d&255)|0)!=0&1;while(0);return}function xo(a){a=a|0;var b=0,d=0,e=0;e=i;i=i+80|0;if((i|0)>=(j|0))fa();d=e;b=a+8|0;if(c[(b&p)>>2]|0)if(!(rc[c[47604>>2]&127](c[(a&p)+32>>2]|0,d)|0))b=(c[(d&p)+72>>2]|0)!=(c[((c[(b&p)>>2]|0)&p)+4>>2]|0);else b=1;else b=0;i=e;return b&1|0}function yo(a,d,f,g){a=a|0;d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+32|0;if((i|0)>=(j|0))fa();l=m;k=m+8|0;h=(c[((c[(a&p)+8>>2]|0)&p)+20>>2]|0)+12|0;if((c[(h&p)>>2]|0)>-1){c[(k&p)>>2]=0;c[(k&p)+4>>2]=0;c[(k&p)+8>>2]=0;c[(k&p)+12>>2]=0;b[(k&o)>>1]=d;b[(k&o)+2>>1]=0;c[(k&p)+4>>2]=f;c[(k&p)+8>>2]=g;d=a+18|0;g=((b[(d&o)>>1]&512)>>>9)+13|0;f=c[11910]|0;h=c[(h&p)>>2]|0;c[(l&p)>>2]=k;h=(ac[f&63](h,g,l)|0)!=-1;b[(d&o)>>1]=(e[(d&o)>>1]|0)&65023;h=h?0:5}else h=0;i=m;return h|0}function zo(a){a=a|0;var d=0,f=0,g=0,h=0,i=0,j=0,k=0;k=c[((c[(a&p)+8>>2]|0)&p)+20>>2]|0;if((k|0)!=0?(c[(k&p)+28>>2]|0)==0:0){d=hc[c[47844>>2]&7]()|0;if((d|0)<32768)g=1;else g=(d|0)/32768|0;h=k+20|0;if(!(b[(h&o)>>1]|0)){f=k+12|0;d=k+24|0}else{f=k+12|0;d=k+24|0;i=k+16|0;j=0;do{if((c[(f&p)>>2]|0)>-1)rc[c[47820>>2]&127](c[((c[(d&p)>>2]|0)+(j<<2)&p)>>2]|0,c[(i&p)>>2]|0)|0;else Wc(c[((c[(d&p)>>2]|0)+(j<<2)&p)>>2]|0);j=j+g|0}while((j|0)<(e[(h&o)>>1]|0))}Wc(c[(d&p)>>2]|0);d=c[(f&p)>>2]|0;if((d|0)>-1){ao(a,d,29591);c[(f&p)>>2]=-1}c[((c[(k&p)>>2]|0)&p)+20>>2]=0;Wc(k)}return}function Ao(a){a=a|0;var b=0,d=0,e=0;d=(c[(a&p)+8>>2]|0)+28|0;b=c[(d&p)>>2]|0;if(b)do{e=b;b=c[(b&p)+8>>2]|0;ao(a,c[(e&p)>>2]|0,26573);Wc(e)}while((b|0)!=0);c[(d&p)>>2]=0;return}function Bo(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();h=l;g=l+8|0;k=c[(d&p)+8>>2]|0;f=b[(d&o)+18>>1]|0;if(!(f&1))if((a[(k&n)+13>>0]|0)!=0&(f&2)==0)f=4;else f=7;else if(!(f&2))f=4;else f=7;if((f|0)==4){f=k+13|0;if(!(a[(f&n)>>0]|0)){b[(g&o)+2>>1]=0;c[(g&p)+4>>2]=(c[2514]|0)+2;c[(g&p)+8>>2]=510;b[(g&o)>>1]=1;m=c[11910]|0;e=c[(d&p)+12>>2]|0;c[(h&p)>>2]=g;e=ac[m&63](e,13,h)|0;if((e|0)>=0){a[(f&n)>>0]=1;f=k+24|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}}else e=0}else if((f|0)==7){g=c[11910]|0;f=c[(d&p)+12>>2]|0;c[(h&p)>>2]=e;e=ac[g&63](f,13,h)|0}i=l;return e|0}function Co(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;do if(b){f=c[(b&p)>>2]|0;if(!f){c[(b&p)>>2]=1;c[(b&p)+4>>2]=d;g=9;break}h=b+4|0;e=c[(h&p)>>2]|0;c[(b&p)>>2]=f+1;c[(h&p)>>2]=d;if(e){c[(d&p)>>2]=e;e=e+4|0;c[(d&p)+4>>2]=c[(e&p)>>2];f=c[(e&p)>>2]|0;if(!f)c[(a&p)+8>>2]=d;else c[(f&p)>>2]=d;c[(e&p)>>2]=d}else g=9}else g=9;while(0);if((g|0)==9){e=a+8|0;f=c[(e&p)>>2]|0;c[(d&p)>>2]=f;if(f)c[(f&p)+4>>2]=d;c[(d&p)+4>>2]=0;c[(e&p)>>2]=d}return}function Do(a,b){a=a|0;b=b|0;var d=0,e=0;if(b){if((c[(b&p)>>2]|0)>0){d=0;e=b+8|0;while(1){mg(a,c[(e&p)+4>>2]|0);mg(a,c[(e&p)+8>>2]|0);mg(a,c[(e&p)+12>>2]|0);mg(a,c[(e&p)+64>>2]|0);kg(a,c[(e&p)+16>>2]|0);Mk(a,c[(e&p)+20>>2]|0,1);Gk(a,c[(e&p)+44>>2]|0);Hk(a,c[(e&p)+48>>2]|0);d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0))break;else e=e+72|0}}mg(a,b)}return}function Eo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=Fo(a,d)|0;if((d|0)>0){e=a+12|0;kw((c[(a&p)+8>>2]|0)+(c[(e&p)>>2]|0)|0,b|0,d|0)|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+d}return}function Fo(b,d){b=b|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;i=b+25|0;do if(!(a[(i&n)>>0]|0)){g=a[(b&n)+24>>0]|0;if(!(g<<24>>24)){f=b+16|0;d=(c[(f&p)>>2]|0)+-1-(c[(b&p)+12>>2]|0)|0;a[(i&n)>>0]=2;c[(f&p)>>2]=0;break}j=b+8|0;h=c[(j&p)>>2]|0;h=(h|0)==(c[(b&p)+4>>2]|0)?0:h;k=b+12|0;r=c[(k&p)>>2]|0;f=((r|0)<0)<<31>>31;u=d+1|0;u=jw(r|0,f|0,u|0,((u|0)<0)<<31>>31|0)|0;s=G;f=jw(u|0,s|0,r|0,f|0)|0;r=G;m=c[(b&p)+20>>2]|0;q=((m|0)<0)<<31>>31;t=(r|0)>(q|0)|(r|0)==(q|0)&f>>>0>m>>>0;f=t?u:f;r=t?s:r;if((r|0)>(q|0)|(r|0)==(q|0)&f>>>0>m>>>0){gn(b);a[(i&n)>>0]=2;c[(b&p)+16>>2]=0;d=0;break}m=b+16|0;c[(m&p)>>2]=f;if(g<<24>>24==1)g=ro(c[(b&p)>>2]|0,h,f,((f|0)<0)<<31>>31)|0;else g=Xc(h,f)|0;if(!g){gn(b);a[(i&n)>>0]=1;c[(m&p)>>2]=0;d=0;break}if((h|0)==0?(l=c[(k&p)>>2]|0,(l|0)>0):0)kw(g|0,c[(j&p)>>2]|0,l|0)|0;c[(j&p)>>2]=g;f=c[(b&p)>>2]|0;do if(!f)f=lc[c[8792>>2]&127](g)|0;else{if((c[(f&p)+276>>2]|0)>>>0<=g>>>0?(c[(f&p)+280>>2]|0)>>>0>g>>>0:0){f=e[(f&o)+248>>1]|0;break}f=lc[c[8792>>2]&127](g)|0}while(0);c[(m&p)>>2]=f}else d=0;while(0);return d|0}function Go(a){a=a|0;var b=0,d=0;if((c[3154]|0)>=(a|0)?(b=c[3160]|0,(b|0)!=0):0){c[3160]=c[(b&p)>>2];d=c[3161]|0;c[3161]=d+-1;c[3162]=(d|0)<=(c[3156]|0)&1;c[2173]=a;if((c[2183]|0)>>>0<a>>>0)c[2183]=a;d=(c[2167]|0)+1|0;c[2167]=d;if(d>>>0>(c[2177]|0)>>>0)c[2177]=d}else{b=qg(a,((a|0)<0)<<31>>31)|0;if(b){d=lc[c[8792>>2]&127](b)|0;c[2173]=a;if((c[2183]|0)>>>0<a>>>0)c[2183]=a;d=(c[2168]|0)+d|0;c[2168]=d;if(d>>>0>(c[2178]|0)>>>0)c[2178]=d}else b=0}return b|0}function Ho(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,i=0,j=0;h=a+20|0;if(c[(h&p)>>2]|0){f=a+24|0;i=ac[c[8864>>2]&63](b,(c[(f&p)>>2]|0)+40|0,d[(a&n)+28>>0]|0)|0;if(!i)e=7;else{g=c[2217]|0;e=c[(a&p)+16>>2]|0;if((e|0)<=-1){j=sw(e|0,((e|0)<0)<<31>>31|0,-1024,-1)|0;e=(c[(f&p)>>2]|0)+(c[(h&p)>>2]|0)|0;e=qw(j|0,G|0,e|0,((e|0)<0)<<31>>31|0)|0}jc[g&15](i,e);e=a+40|0;f=c[(e&p)>>2]|0;if(f)cc[c[8892>>2]&31](f);c[(e&p)>>2]=i;c[(a&p)+44>>2]=0;c[(h&p)>>2]=b;e=0}}else e=0;return e|0}function Io(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;f=c[(a&p)+208>>2]|0;if(((f|0)!=0?(b[(f&o)+40>>1]|0)>-1:0)?(e=c[(f&p)+72>>2]|0,(e|0)!=0):0){f=e;h=8}else h=4;do if((h|0)==4){f=g;c[(f&p)>>2]=0;c[(f&p)+4>>2]=0;f=c[(a&p)+60>>2]|0;e=c[(f&p)>>2]|0;if(!e){e=-1;f=-1}else{e=rc[c[(e&p)+24>>2]&127](f,g)|0;if(e)break;e=g;e=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,-1,-1)|0;f=G}g=c[(a&p)+152>>2]|0;h=((g|0)<0)<<31>>31;f=jw(e|0,f|0,g|0,h|0)|0;f=qw(f|0,G|0,g|0,h|0)|0;h=8}while(0);if((h|0)==8){e=a+156|0;if(f>>>0>(c[(e&p)>>2]|0)>>>0)c[(e&p)>>2]=f;c[(d&p)>>2]=f;e=0}i=k;return e|0}function Jo(b){b=b|0;var d=0,e=0;e=b+64|0;if(!((a[(b&n)+7>>0]|0)==0?(d=c[(e&p)>>2]|0,d=rc[c[((c[(d&p)>>2]|0)&p)+20>>2]&127](d,2)|0,(d|0)!=0):0)){d=c[(e&p)>>2]|0;d=rc[c[((c[(d&p)>>2]|0)&p)+24>>2]&127](d,b+80|0)|0}return d|0}function Ko(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=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;H=i;i=i+48|0;if((i|0)>=(j|0))fa();E=H+16|0;D=H+8|0;C=H+36|0;y=H;x=H+32|0;w=H+28|0;B=H+24|0;f=c[(b&p)>>2]|0;c[(w&p)>>2]=0;c[(B&p)>>2]=1;A=b+64|0;g=c[(A&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,y)|0;a:do if(!g){z=b+200|0;g=c[(z&p)>>2]|0;h=uq(c[(A&p)>>2]|0,g,(c[((c[(b&p)>>2]|0)&p)+8>>2]|0)+1|0)|0;if(!h){if(!(a[(g&n)>>0]|0))g=0;else g=pc[c[(f&p)+32>>2]&31](f,g,0,B)|0;b:do if((g|0)==0&(c[(B&p)>>2]|0)!=0){v=b+72|0;u=v;c[(u&p)>>2]=0;c[(u&p)+4>>2]=0;u=b+148|0;t=b+152|0;o=b+80|0;r=b+24|0;f=0;k=d;c:while(1){do{g=y;g=vq(b,d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,x,w)|0;if((g|0)==101)break c;else if(g){F=27;break b}h=c[(x&p)>>2]|0;if((h|0)==-1){s=y;s=dw(c[(s&p)>>2]|0,c[(s&p)+4>>2]|0,c[(u&p)>>2]|0,0)|0;h=(c[(t&p)>>2]|0)+8|0;h=qw(s|0,G|0,h|0,((h|0)<0)<<31>>31|0)|0;c[(x&p)>>2]=h}if(!(h|d)){s=o;g=c[(u&p)>>2]|0;s=jw(g|0,0,c[(s&p)>>2]|0,c[(s&p)+4>>2]|0)|0;q=G;m=v;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((s|0)==(l|0)&(q|0)==(m|0)){m=y;m=dw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,s|0,q|0)|0;h=(c[(t&p)>>2]|0)+8|0;h=qw(m|0,G|0,h|0,((h|0)<0)<<31>>31|0)|0;c[(x&p)>>2]=h;m=q;l=s}}else{l=v;g=c[(u&p)>>2]|0;m=c[(l&p)+4>>2]|0;l=c[(l&p)>>2]|0}if((l|0)==(g|0)&(m|0)==0){g=c[(w&p)>>2]|0;l=Bl(b,g)|0;if(l){e=l;F=25;break a}c[(r&p)>>2]=g}}while((h|0)==0);l=0;while(1){if(k)xn(b);g=wq(b,v,0,1,0)|0;if((g|0)==522)break c;else if((g|0)==101)break;else if(g){F=27;break b}f=f+1|0;g=l+1|0;if(g>>>0<h>>>0){k=0;l=g}else{k=0;continue c}}g=y;s=c[(g&p)+4>>2]|0;k=v;c[(k&p)>>2]=c[(g&p)>>2];c[(k&p)+4>>2]=s;k=0}a[(b&n)+18>>0]=a[(b&n)+12>>0]|0;w=f}else{f=0;F=27}while(0);if((F|0)==27){a[(b&n)+18>>0]=a[(b&n)+12>>0]|0;if(!g)w=f;else{e=g;break}}v=c[(z&p)>>2]|0;g=uq(c[(A&p)>>2]|0,v,(c[((c[(b&p)>>2]|0)&p)+8>>2]|0)+1|0)|0;if(!g){if(((a[(b&n)+16>>0]|0)+-1&255)>2?(e=Ig(b,0)|0,(e|0)!=0):0){f=w;break}e=Cl(b,(a[(v&n)>>0]|0)!=0&1,0)|0;if(!e)if((a[(v&n)>>0]|0)!=0&(c[(B&p)>>2]|0)!=0){t=c[(b&p)>>2]|0;g=t+4|0;f=c[(g&p)>>2]<<1;u=qg(f,((f|0)<0)<<31>>31)|0;if(!u){f=w;e=7}else{fw(u|0,0,f|0)|0;r=u+(c[(g&p)>>2]|0)|0;s=t+24|0;e=tc[c[(s&p)>>2]&31](t,v,u,16385,0)|0;d:do if(!e){e=rc[c[((c[(u&p)>>2]|0)&p)+24>>2]&127](u,D)|0;if(!e){o=(c[(t&p)+8>>2]|0)+1|0;f=D;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,1,0)|0;f=jw(f|0,G|0,o|0,((o|0)<0)<<31>>31|0)|0;f=qg(f,G)|0;if(f){q=D;e=c[(q&p)>>2]|0;q=jw(e|0,c[(q&p)+4>>2]|0,1,0)|0;q=f+q|0;e=tc[c[((c[(u&p)>>2]|0)&p)+8>>2]&31](u,f,e,0,0)|0;if(!e){a[(f+(c[(D&p)>>2]|0)&n)>>0]=0;k=f;B=D;A=c[(B&p)+4>>2]|0;if((A|0)>0|(A|0)==0&(c[(B&p)>>2]|0)>>>0>0){g=t+32|0;l=k;m=f;do{e=pc[c[(g&p)>>2]&31](t,m,0,C)|0;if(e){F=55;break d}do if(c[(C&p)>>2]|0){e=tc[c[(s&p)>>2]&31](t,m,r,2049,0)|0;if(e){F=55;break d}e=uq(r,q,o)|0;h=c[(r&p)>>2]|0;if(h){lc[c[(h&p)+4>>2]&127](r)|0;c[(r&p)>>2]=0}if(e){F=55;break d}if(!(a[(q&n)>>0]|0))break;if(!(_v(q,v)|0)){e=0;F=55;break d}}while(0);if(!m)h=1;else{h=m;while(1)if(!(a[(h&n)>>0]|0))break;else h=h+1|0;h=(h-l&1073741823)+1|0}m=m+h|0;l=m;A=l-k|0;y=((A|0)<0)<<31>>31;B=D;z=c[(B&p)+4>>2]|0}while((y|0)<(z|0)|((y|0)==(z|0)?A>>>0<(c[(B&p)>>2]|0)>>>0:0))}e=c[(u&p)>>2]|0;if(e){lc[c[(e&p)+4>>2]&127](u)|0;c[(u&p)>>2]=0}e=ac[c[(t&p)+28>>2]&63](t,v,0)|0;Wc(f)}else F=55}else{e=7;f=0;F=55}}else{f=0;F=55}}else{f=0;F=55}while(0);if((F|0)==55)Wc(f);f=c[(u&p)>>2]|0;if(f){lc[c[(f&p)+4>>2]&127](u)|0;c[(u&p)>>2]=0}Wc(u);f=w}}else{f=w;e=0}else f=w}else{f=w;e=g}}else{f=0;e=h;F=25}}else{f=0;e=g;F=25}while(0);if((F|0)==25)a[(b&n)+18>>0]=a[(b&n)+12>>0]|0;if((d|0)!=0&(f|0)!=0){D=c[(b&p)+172>>2]|0;c[(E&p)>>2]=f;c[(E&p)+4>>2]=D;bd(539,14776,E)}wp(b);i=H;return e|0}function Lo(d){d=d|0;var e=0,f=0;e=d+44|0;if(a[(e&n)>>0]|0){if(!(a[(d&n)+43>>0]|0)){f=c[(d&p)+4>>2]|0;pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,0,1,9)|0}a[(e&n)>>0]=0;a[(d&n)+47>>0]=0}e=d+40|0;f=b[(e&o)>>1]|0;if(f<<16>>16>-1){if(!(a[(d&n)+43>>0]|0)){d=c[(d&p)+4>>2]|0;pc[c[((c[(d&p)>>2]|0)&p)+56>>2]&31](d,(f<<16>>16)+3|0,1,5)|0}b[(e&o)>>1]=-1}return}function Mo(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,m=0,q=0;if((g|0)>5)if((g|0)>100)f=15;else{if((g|0)>9){g=g+-9|0;g=ca(g*39|0,g)|0}else g=1;h=c[(d&p)>>2]|0;rc[c[(h&p)+60>>2]&127](h,g)|0;h=6}else h=6;a:do if((h|0)==6){do if(!f){f=nq(d,e)|0;do if((f|0)==5){if(!(c[(c[(d&p)+32>>2]&p)>>2]|0)){f=-1;break a}e=d+43|0;if(a[(e&n)>>0]|0){f=-1;break a}g=d+4|0;f=c[(g&p)>>2]|0;f=pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,2,1,6)|0;if((f|0)==5){f=261;break a}else if(f)break;if(a[(e&n)>>0]|0){f=-1;break a}f=c[(g&p)>>2]|0;pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,2,1,5)|0;f=-1;break a}while(0);if(f)break a;g=d+32|0;j=(c[(c[(g&p)>>2]&p)>>2]|0)+96|0;e=d+52|0;if((c[(j&p)>>2]|0)==(c[(d&p)+68>>2]|0)){i=d+43|0;h=a[(i&n)>>0]|0;if(!(h<<24>>24)){f=c[(d&p)+4>>2]|0;f=pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,3,1,6)|0;h=a[(i&n)>>0]|0}else f=0;if(h<<24>>24!=2){q=c[(d&p)+4>>2]|0;cc[c[((c[(q&p)>>2]|0)&p)+60>>2]&31](q)}if((f|0)==5){q=g;g=5;break}else if(f)break a;if(!(Zv(c[(c[(g&p)>>2]&p)>>2]|0,e,48)|0)){b[(d&o)+40>>1]=0;f=0;break a}if(a[(i&n)>>0]|0){f=-1;break a}f=c[(d&p)+4>>2]|0;pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,3,1,5)|0;f=-1;break a}else{q=g;g=0}}else{j=d+32|0;q=j;j=(c[(c[(j&p)>>2]&p)>>2]|0)+96|0;g=0}while(0);m=d+68|0;e=c[(j&p)+8>>2]|0;i=e>>>0>(c[(m&p)>>2]|0)>>>0;e=i?0:e;i=i&1^1;h=c[(j&p)+12>>2]|0;if(e>>>0<=h>>>0){l=h>>>0>(c[(m&p)>>2]|0)>>>0;i=l?i:2;e=l?e:h}h=c[(j&p)+16>>2]|0;if(e>>>0<=h>>>0){l=h>>>0>(c[(m&p)>>2]|0)>>>0;i=l?i:3;e=l?e:h}h=c[(j&p)+20>>2]|0;if(e>>>0<=h>>>0){l=h>>>0>(c[(m&p)>>2]|0)>>>0;i=l?i:4;e=l?e:h}b:do if((a[(d&n)+46>>0]&2)==0?((i|0)==0?1:e>>>0<(c[(m&p)>>2]|0)>>>0):0){l=d+43|0;k=d+4|0;h=1;while(1){g=h+3|0;if(a[(l&n)>>0]|0){i=h;break}f=c[(k&p)>>2]|0;f=pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,g,1,10)|0;if(!f){i=h;break}else if((f|0)!=5)break a;h=h+1|0;if((h|0)>=5){g=5;break b}}h=c[(m&p)>>2]|0;c[(j+(i<<2)&p)+4>>2]=h;if(!(a[(l&n)>>0]|0)){e=c[(k&p)>>2]|0;pc[c[((c[(e&p)>>2]|0)&p)+56>>2]&31](e,g,1,9)|0;e=h;g=0}else{e=h;g=0}}while(0);if(!i){f=(g|0)==5?-1:520;break}g=i+3|0;f=d+43|0;h=a[(f&n)>>0]|0;do if(!(h<<24>>24)){h=c[(d&p)+4>>2]|0;h=pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,g,1,6)|0;if(!h){h=a[(f&n)>>0]|0;break}else{f=(h|0)==5?-1:h;break a}}while(0);if(h<<24>>24!=2){m=c[(d&p)+4>>2]|0;cc[c[((c[(m&p)>>2]|0)&p)+60>>2]&31](m)}if((c[(j+(i<<2)&p)+4>>2]|0)==(e|0)?(Zv(c[(c[(q&p)>>2]&p)>>2]|0,d+52|0,48)|0)==0:0){b[(d&o)+40>>1]=i;f=0;break}if(!(a[(f&n)>>0]|0)){f=c[(d&p)+4>>2]|0;pc[c[((c[(f&p)>>2]|0)&p)+56>>2]&31](f,g,1,5)|0;f=-1}else f=-1}while(0);return f|0}function No(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;e=b+56|0;ei(c[(e&p)>>2]|0);c[(e&p)>>2]=0;cp(b);e=c[(b&p)+208>>2]|0;if(!e){if(!(a[(b&n)+4>>0]|0)){f=b+60|0;e=c[(f&p)>>2]|0;d=c[(e&p)>>2]|0;if(!(((d|0)!=0?((lc[c[(d&p)+48>>2]&127](e)|0)&2048|0)!=0:0)?(a[(b&n)+5>>0]&5)==1:0))i=7;if((i|0)==7?(g=c[(b&p)+64>>2]|0,h=c[(g&p)>>2]|0,(h|0)!=0):0){lc[c[(h&p)+4>>2]&127](g)|0;c[(g&p)>>2]=0}d=c[(f&p)>>2]|0;e=c[(d&p)>>2]|0;if(e){if(!(a[(b&n)+13>>0]|0))d=rc[c[(e&p)+32>>2]&127](d,0)|0;else d=0;e=b+17|0;if((a[(e&n)>>0]|0)!=5)a[(e&n)>>0]=0;if((d|0)!=0?(a[(b&n)+16>>0]|0)==6:0)a[(e&n)>>0]=5}a[(b&n)+18>>0]=0;a[(b&n)+16>>0]=0}}else{Lo(e);a[(b&n)+16>>0]=0}d=b+40|0;if(c[(d&p)>>2]|0){xn(b);a[(b&n)+18>>0]=a[(b&n)+12>>0]|0;a[(b&n)+16>>0]=0;c[(d&p)>>2]=0}d=b+72|0;a[(b&n)+19>>0]=0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0;c[(d&p)+12>>2]=0;return}function Oo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;e=c[(d&p)+4>>2]|0;f=e+0|0;g=f+40|0;do{c[(f&p)>>2]=0;f=f+4|0}while((f|0)<(g|0));c[(e&p)>>2]=d;c[(e&p)+4>>2]=c[(d&p)>>2];f=e+40|0;c[(e&p)+8>>2]=f;fw(f|0,0,c[(a&p)+24>>2]|0)|0;c[(e&p)+28>>2]=a;c[(e&p)+20>>2]=b;return il(a,b,d)|0}function Po(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,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();g=l;h=xq(a,b,g)|0;if(!h){k=c[(g&p)>>2]|0;if(!b){a=k+136|0;c[(g&p)>>2]=a;g=a;a=0}else{g=k;a=(b<<12)+-34|0}c[(e&p)>>2]=g+-4;c[(d&p)>>2]=k+16384;c[(f&p)>>2]=a}i=l;return h|0}function Qo(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;k=c[(d&p)+28>>2]|0;j=e&255;if(j&1){f=k+8|0;if((c[(f&p)>>2]|0)==(d|0)){e=d;do{e=c[(e&p)+36>>2]|0;if(!e){e=0;break}}while((b[(e&o)+24>>1]&4)!=0);c[(f&p)>>2]=e}e=d+32|0;g=c[(e&p)>>2]|0;h=(g|0)==0;i=d+36|0;f=c[(i&p)>>2]|0;if(h)c[(k&p)+4>>2]=f;else c[(g&p)+36>>2]=f;f=c[(i&p)>>2]|0;if(!f){c[(k&p)>>2]=g;if(h?(a[(k&n)+28>>0]|0)!=0:0)a[(k&n)+29>>0]=2}else c[(f&p)+32>>2]=g;c[(e&p)>>2]=0;c[(i&p)>>2]=0}if(j&2){e=c[(k&p)>>2]|0;c[(d&p)+32>>2]=e;if(!e){c[(k&p)+4>>2]=d;if(a[(k&n)+28>>0]|0)a[(k&n)+29>>0]=1}else c[(e&p)+36>>2]=d;c[(k&p)>>2]=d;e=k+8|0;if((c[(e&p)>>2]|0)==0?(b[(d&o)+24>>1]&4)==0:0)c[(e&p)>>2]=d}return}function Ro(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l;f=e>>>3;g=f&255;a[(d&n)+5>>0]=g;e=e&-9;a[(d&n)+7>>0]=4-(f<<2);f=c[(d&p)+52>>2]|0;if((e|0)==2){a[(d&n)+2>>0]=0;a[(d&n)+3>>0]=0;a[(d&n)+4>>0]=0;b[(d&o)+10>>1]=b[(f&o)+24>>1]|0;b[(d&o)+12>>1]=b[(f&o)+26>>1]|0;k=5}else if((e|0)==5){a[(d&n)+2>>0]=1;a[(d&n)+3>>0]=g;a[(d&n)+4>>0]=g<<24>>24==0&1;b[(d&o)+10>>1]=b[(f&o)+28>>1]|0;b[(d&o)+12>>1]=b[(f&o)+30>>1]|0;k=5}else{c[(h&p)>>2]=54521;c[(h&p)+4>>2]=10788;bd(11,13600,h);e=11}if((k|0)==5){a[(d&n)+8>>0]=a[(f&n)+21>>0]|0;e=0}i=l;return e|0}function So(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,o=0,q=0;l=c[(b&p)+200>>2]|0;j=b+152|0;k=c[(j&p)>>2]|0;m=b+148|0;i=c[(m&p)>>2]|0;k=k>>>0>i>>>0?i:k;g=c[(b&p)+96>>2]|0;if((g|0)>0){f=c[(b&p)+92>>2]|0;e=b+72|0;h=0;do{d=f+(h*48|0)+8|0;o=d;if((c[(o&p)>>2]|0)==0&(c[(o&p)+4>>2]|0)==0){q=e;o=c[(q&p)+4>>2]|0;c[(d&p)>>2]=c[(q&p)>>2];c[(d&p)+4>>2]=o}h=h+1|0}while((h|0)<(g|0));h=e}else h=b+72|0;e=h;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;if((f|0)==0&(e|0)==0){f=0;e=0}else{f=jw(f|0,e|0,-1,-1)|0;f=qw(f|0,G|0,i|0,0)|0;f=jw(f|0,G|0,1,0)|0;f=sw(f|0,G|0,i|0,0)|0;e=G}i=h;c[(i&p)>>2]=f;c[(i&p)+4>>2]=e;i=b+80|0;c[(i&p)>>2]=f;c[(i&p)+4>>2]=e;if(((a[(b&n)+7>>0]|0)==0?(a[(b&n)+5>>0]|0)!=4:0)?(i=c[(b&p)+60>>2]|0,((lc[c[((c[(i&p)>>2]|0)&p)+48>>2]&127](i)|0)&512|0)==0):0){f=l+0|0;e=f+12|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(e|0))}else{i=l;g=i;a[(g&n)>>0]=-117058087;a[(g&n)+1>>0]=-117058087>>8;a[(g&n)+2>>0]=-117058087>>16;a[(g&n)+3>>0]=-117058087>>24;i=i+4|0;a[(i&n)>>0]=-681336544;a[(i&n)+1>>0]=-681336544>>8;a[(i&n)+2>>0]=-681336544>>16;a[(i&n)+3>>0]=-681336544>>24;i=l+8|0;a[(i&n)>>0]=-1;a[(i&n)+1>>0]=-1>>8;a[(i&n)+2>>0]=-1>>16;a[(i&n)+3>>0]=-1>>24}e=b+48|0;cd(4,e);e=c[(e&p)>>2]|0;a[(l&n)+12>>0]=e>>>24;a[(l&n)+13>>0]=e>>>16;a[(l&n)+14>>0]=e>>>8;a[(l&n)+15>>0]=e;e=c[(b&p)+28>>2]|0;a[(l&n)+16>>0]=e>>>24;a[(l&n)+17>>0]=e>>>16;a[(l&n)+18>>0]=e>>>8;a[(l&n)+19>>0]=e;e=c[(m&p)>>2]|0;a[(l&n)+20>>0]=e>>>24;a[(l&n)+21>>0]=e>>>16;a[(l&n)+22>>0]=e>>>8;a[(l&n)+23>>0]=e;e=c[(j&p)>>2]|0;a[(l&n)+24>>0]=e>>>24;a[(l&n)+25>>0]=e>>>16;a[(l&n)+26>>0]=e>>>8;a[(l&n)+27>>0]=e;fw(l+28|0,0,k+-28|0)|0;e=b+64|0;f=0;while(1){if(f>>>0>=(c[(m&p)>>2]|0)>>>0){d=0;break}j=c[(e&p)>>2]|0;d=h;d=tc[c[((c[(j&p)>>2]|0)&p)+12>>2]&31](j,l,k,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0)|0;j=h;j=jw(c[(j&p)>>2]|0,c[(j&p)+4>>2]|0,k|0,0)|0;b=h;c[(b&p)>>2]=j;c[(b&p)+4>>2]=G;if(!d)f=f+k|0;else break}return d|0}function To(a){a=a|0;var c=0,d=0,f=0;c=a+24|0;f=e[(c&o)>>1]|0;d=f&65503;b[(c&o)>>1]=d;if(!(f&2)){b[(c&o)>>1]=d|2;Qo(a,2)}return}function Uo(a){a=a|0;var b=0,d=0,e=0;b=c[(a&p)+16>>2]|0;d=c[(a&p)+20>>2]|0;e=c[(b&p)+96>>2]|0;a:do if((e|0)>0){b=c[(b&p)+92>>2]|0;a=0;while(1){if((c[(b+(a*48|0)&p)+20>>2]|0)>>>0>=d>>>0?(di(c[(b+(a*48|0)&p)+16>>2]|0,d)|0)==0:0){a=1;break a}a=a+1|0;if((a|0)>=(e|0)){a=0;break}}}else a=0;while(0);return a|0}function Vo(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();m=s;q=c[(b&p)+16>>2]|0;e=a[(q&n)+5>>0]|0;a:do if(e<<24>>24!=2){o=q+68|0;f=c[(o&p)>>2]|0;do if(!(c[(f&p)>>2]|0)){if(e<<24>>24!=4?(a[(q&n)+21>>0]|0)==0:0){d=c[(q&p)>>2]|0;d=tc[c[(d&p)+24>>2]&31](d,0,f,8222,0)|0;if(!d)break;else break a}e=f+0|0;d=e+40|0;do{c[(e&p)>>2]=0;e=e+4|0}while((e|0)<(d|0));c[(f&p)>>2]=14696}while(0);f=c[(b&p)+4>>2]|0;l=q+52|0;g=q+152|0;h=(c[(g&p)>>2]|0)+4|0;h=sw(h|0,((h|0)<0)<<31>>31|0,c[(l&p)>>2]|0,0)|0;k=G;d=c[(o&p)>>2]|0;e=b+20|0;b=c[(e&p)>>2]|0;a[(m&n)>>0]=b>>>24;a[(m&n)+1>>0]=b>>>16;a[(m&n)+2>>0]=b>>>8;a[(m&n)+3>>0]=b;d=tc[c[((c[(d&p)>>2]|0)&p)+12>>2]&31](d,m,4,h,k)|0;if(!d){m=c[(o&p)>>2]|0;o=c[(g&p)>>2]|0;d=jw(h|0,k|0,4,0)|0;d=tc[c[((c[(m&p)>>2]|0)&p)+12>>2]&31](m,f,o,d,G)|0;if(!d){d=l;r=10}}}else{e=b+20|0;d=q+52|0;r=10}while(0);if((r|0)==10){c[(d&p)>>2]=(c[(d&p)>>2]|0)+1;d=jl(q,c[(e&p)>>2]|0)|0}i=s;return d|0}function Wo(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+48|0;if((i|0)>=(j|0))fa();g=h;d=(a|0)!=0;a:do if(d&(b|0)!=0){d=g;while(1){f=c[(b&p)+20>>2]|0;e=a;a=d;while(1){a=a+12|0;if((c[(e&p)+20>>2]|0)>>>0>=f>>>0)break;c[(a&p)>>2]=e;a=c[(e&p)+12>>2]|0;if(!a){d=b;a=e;e=8;break a}else{d=e;e=a;a=d}}c[(a&p)>>2]=b;f=c[(b&p)+12>>2]|0;d=(e|0)!=0;if(d&(f|0)!=0){d=b;a=e;b=f}else{a=e;e=6;break}}}else{f=b;b=g;e=6}while(0);if((e|0)==6)if(d)c[(b&p)+12>>2]=a;else{d=f;a=b;e=8}do if((e|0)==8){a=a+12|0;if(!d){c[(a&p)>>2]=0;break}else{c[(a&p)>>2]=d;break}}while(0);i=h;return c[(g&p)+12>>2]|0}function Xo(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=c[(c[(b&p)+32>>2]&p)>>2]|0;k=b+84|0;j=b+104|0;c[(j&p)>>2]=(c[(j&p)>>2]|0)+1;c[(b&p)+68>>2]=0;j=k+1|0;i=k+2|0;g=k+3|0;h=((d[(j&n)>>0]|0)<<16|(d[(k&n)>>0]|0)<<24|(d[(i&n)>>0]|0)<<8|(d[(g&n)>>0]|0))+1|0;a[(k&n)>>0]=h>>>24;a[(j&n)>>0]=h>>>16;a[(i&n)>>0]=h>>>8;a[(g&n)>>0]=h;c[(b&p)+88>>2]=e;$o(b);c[(f&p)+96>>2]=0;c[(f&p)+104>>2]=0;c[(f&p)+108>>2]=-1;c[(f&p)+112>>2]=-1;c[(f&p)+116>>2]=-1;return}function Yo(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,o=0,q=0,r=0,s=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();m=l;k=c[(e&p)+4>>2]|0;o=c[(b&p)>>2]|0;q=c[(e&p)+20>>2]|0;e=o+76|0;a[(m&n)>>0]=q>>>24;a[(m&n)+1>>0]=q>>>16;a[(m&n)+2>>0]=q>>>8;a[(m&n)+3>>0]=q;a[(m&n)+4>>0]=f>>>24;a[(m&n)+5>>0]=f>>>16;a[(m&n)+6>>0]=f>>>8;a[(m&n)+7>>0]=f;q=o+84|0;s=q;s=d[(s&n)>>0]|d[(s&n)+1>>0]<<8|d[(s&n)+2>>0]<<16|d[(s&n)+3>>0]<<24;q=q+4|0;q=d[(q&n)>>0]|d[(q&n)+1>>0]<<8|d[(q&n)+2>>0]<<16|d[(q&n)+3>>0]<<24;f=m+8|0;r=f;a[(r&n)>>0]=s;a[(r&n)+1>>0]=s>>8;a[(r&n)+2>>0]=s>>16;a[(r&n)+3>>0]=s>>24;f=f+4|0;a[(f&n)>>0]=q;a[(f&n)+1>>0]=q>>8;a[(f&n)+2>>0]=q>>16;a[(f&n)+3>>0]=q>>24;f=(a[(o&n)+65>>0]|0)==0&1;yq(f,m,8,e,e);yq(f,k,c[(o&p)+36>>2]|0,e,e);f=c[(e&p)>>2]|0;a[(m&n)+16>>0]=f>>>24;a[(m&n)+17>>0]=f>>>16;a[(m&n)+18>>0]=f>>>8;a[(m&n)+19>>0]=f;f=c[(o&p)+80>>2]|0;a[(m&n)+20>>0]=f>>>24;a[(m&n)+21>>0]=f>>>16;a[(m&n)+22>>0]=f>>>8;a[(m&n)+23>>0]=f;f=zq(b,m,24,g,h)|0;if(!f){q=c[(b&p)+20>>2]|0;f=jw(g|0,h|0,24,0)|0;f=zq(b,k,q,f,G)|0}i=l;return f|0}function Zo(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k+8|0;g=k;f=c[3164]|0;if(f)nc[f&3]();e=a+8|0;f=c[(e&p)>>2]|0;f=rc[c[((c[(f&p)>>2]|0)&p)+24>>2]&127](f,g)|0;l=c[(g&p)+4>>2]|0;if((f|0)==0&((l|0)>(d|0)|((l|0)==(d|0)?(c[(g&p)>>2]|0)>>>0>b>>>0:0))){f=c[(e&p)>>2]|0;f=ac[c[((c[(f&p)>>2]|0)&p)+16>>2]&63](f,b,d)|0}e=c[3166]|0;if(e)nc[e&3]();if(f){c[(h&p)>>2]=c[(a&p)+100>>2];bd(f,14816,h)}i=k;return}function _o(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+32|0;if((i|0)>=(j|0))fa();k=n;g=n+16|0;m=n+12|0;l=n+8|0;c[(g&p)>>2]=0;c[(m&p)>>2]=0;c[(l&p)>>2]=0;f=Po(a,(d+33|0)>>>12,l,m,g)|0;a:do if(!f){h=d-(c[(g&p)>>2]|0)|0;if((h|0)==1){f=c[(m&p)>>2]|0;d=f+4|0;fw(d|0,0,(c[(l&p)>>2]|0)+16384-d|0)|0}else f=c[(m&p)>>2]|0;if(c[(f+(h<<2)&p)>>2]|0)Aq(a);f=e*383&8191;b:do if(b[((c[(l&p)>>2]|0)+(f<<1)&o)>>1]|0){d=c[(l&p)>>2]|0;g=h;while(1){if(!g)break;f=f+1&8191;if(!(b[(d+(f<<1)&o)>>1]|0))break b;else g=g+-1|0}c[(k&p)>>2]=49852;c[(k&p)+4>>2]=10788;bd(11,13600,k);f=11;break a}while(0);c[((c[(m&p)>>2]|0)+(h<<2)&p)>>2]=e;b[((c[(l&p)>>2]|0)+(f<<1)&o)>>1]=h;f=0}while(0);i=n;return f|0}function $o(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=c[(c[(b&p)+32>>2]&p)>>2]|0;k=b+52|0;a[(b&n)+64>>0]=1;c[(k&p)>>2]=3007e3;i=b+92|0;g=3007e3;h=k;f=0;d=0;while(1){f=f+d+g|0;e=h+8|0;d=f+d+(c[(h&p)+4>>2]|0)|0;if(e>>>0>=i>>>0)break;g=c[(e&p)>>2]|0;h=e}c[(i&p)>>2]=f;c[(b&p)+96>>2]=d;d=j+48|0;e=k+0|0;f=d+48|0;do{a[(d&n)>>0]=a[(e&n)>>0]|0;d=d+1|0;e=e+1|0}while((d|0)<(f|0));if((a[(b&n)+43>>0]|0)!=2){d=c[(b&p)+4>>2]|0;cc[c[((c[(d&p)>>2]|0)&p)+60>>2]&31](d)}d=j+0|0;e=k+0|0;f=d+48|0;do{a[(d&n)>>0]=a[(e&n)>>0]|0;d=d+1|0;e=e+1|0}while((d|0)<(f|0));return}function ap(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;if(a)do{e=a+28|0;g=c[(e&p)>>2]|0;if(((g>>>0<7?(30>>>(g&127)&1)==0:0)?(c[(a&p)+16>>2]|0)>>>0>b>>>0:0)?(f=Ag(a,b,d,1)|0,(f|0)!=0):0)c[(e&p)>>2]=f;a=c[(a&p)+44>>2]|0}while((a|0)!=0);return}function bp(a){a=a|0;var b=0,d=0,e=0;a:do if(!(c[(a&p)+208>>2]|0)){d=a+176|0;e=a+180|0;while(1){b=fl(a,4)|0;if((b|0)!=5)break a;if(!(lc[c[(d&p)>>2]&127](c[(e&p)>>2]|0)|0)){b=5;break}}}else b=0;while(0);return b|0}function cp(b){b=b|0;var d=0,e=0,f=0,g=0;f=b+96|0;if((c[(f&p)>>2]|0)>0){d=b+92|0;e=0;do{ei(c[((c[(d&p)>>2]|0)+(e*48|0)&p)+16>>2]|0);e=e+1|0}while((e|0)<(c[(f&p)>>2]|0))}e=c[(b&p)+68>>2]|0;d=c[(e&p)>>2]|0;if(!(a[(b&n)+4>>0]|0)){if(d)g=7}else if((d|0)==14696){d=14696;g=7}if((g|0)==7){lc[c[(d&p)+4>>2]&127](e)|0;c[(e&p)>>2]=0}d=b+92|0;Wc(c[(d&p)>>2]|0);c[(d&p)>>2]=0;c[(f&p)>>2]=0;c[(b&p)+52>>2]=0;return}function dp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=a+40|0;if(c[(f&p)>>2]|0){d=c[(a&p)>>2]|0;if(d)do{e=d;d=c[(d&p)+32>>2]|0;if((c[(e&p)+20>>2]|0)>>>0>b>>>0)xl(e)}while((d|0)!=0);if(!b){b=c[(a&p)+44>>2]|0;if(!b)b=0;else{fw(c[(b&p)+4>>2]|0,0,c[(a&p)+20>>2]|0)|0;b=1}}jc[c[8888>>2]&15](c[(f&p)>>2]|0,b+1|0)}return}function ep(d,e){d=d|0;e=e|0;var f=0,g=0;do if(!e){f=d+43|0;if(!(a[(f&n)>>0]|0))f=0;else{a[(f&n)>>0]=0;g=c[(d&p)+4>>2]|0;if(!(pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,(b[(d&o)+40>>1]|0)+3|0,1,6)|0))f=(a[(f&n)>>0]|0)==0;else{a[(f&n)>>0]=1;f=0}f=f&1}}else{f=d+43|0;g=(a[(f&n)>>0]|0)==0;if((e|0)<=0){f=g&1;break}if(g){g=c[(d&p)+4>>2]|0;pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,(b[(d&o)+40>>1]|0)+3|0,1,5)|0}a[(f&n)>>0]=1;f=1}while(0);return f|0}function fp(b){b=b|0;var e=0,f=0,g=0,h=0;f=b+73|0;if((a[(f&n)>>0]|0)==2)a[(f&n)>>0]=1;else c[(b&p)+68>>2]=0;e=b+48|0;km(b,e);do if(!(a[((c[(b&p)+120>>2]|0)&n)+2>>0]|0)){g=e;g=qg(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0)|0;if(g){e=Lm(b,0,c[(e&p)>>2]|0,g,0)|0;if(!e){c[(b&p)+56>>2]=g;h=9;break}else{Wc(g);break}}else e=7}else h=9;while(0);if((h|0)==9){gp(b);a[(f&n)>>0]=3;e=0}f=b+72|0;a[(f&n)>>0]=d[(f&n)>>0]&251;return e|0}function gp(a){a=a|0;var d=0,e=0,f=0,g=0;d=a+76|0;if((b[(d&o)>>1]|0)>=0){g=0;while(1){e=a+(g<<2)+120|0;f=c[(e&p)>>2]|0;if(f)Bg(c[(f&p)+68>>2]|0);c[(e&p)>>2]=0;if((g|0)<(b[(d&o)>>1]|0))g=g+1|0;else break}}b[(d&o)>>1]=-1;return}function hp(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();o=q;k=q+8|0;if(e>>>0<2)m=0;else{m=e+-2|0;m=m-((m>>>0)%(((((c[(b&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;m=((m+1|0)==(((c[2514]|0)>>>0)/((c[(b&p)+32>>2]|0)>>>0)|0|0)?3:2)+m|0}h=zg(c[(b&p)>>2]|0,m,k,0)|0;do if(!h){k=c[(k&p)>>2]|0;l=c[(k&p)+4>>2]|0;h=(e-m|0)*5|0;b=h+-5|0;if((b|0)<0){if(k)Bg(k);c[(o&p)>>2]=53912;c[(o&p)+4>>2]=10788;bd(11,13600,o);h=11;break}a[(f&n)>>0]=a[(l+b&n)>>0]|0;if(g)c[(g&p)>>2]=(d[(l+h+-3&n)>>0]|0)<<16|(d[(l+h+-4&n)>>0]|0)<<24|(d[(l+h+-2&n)>>0]|0)<<8|(d[(l+h+-1&n)>>0]|0);if(k)Bg(k);if(((a[(f&n)>>0]|0)+-1&255)>4){c[(o&p)>>2]=53920;c[(o&p)+4>>2]=10788;bd(11,13600,o);h=11}else h=0}while(0);i=q;return h|0}function ip(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;N=i;i=i+32|0;if((i|0)>=(j|0))fa();M=N;L=N+16|0;s=N+20|0;K=N+12|0;t=N+8|0;c[(L&p)>>2]=0;v=e+12|0;r=c[(v&p)>>2]|0;u=e+44|0;I=c[(u&p)>>2]|0;J=r+56|0;q=c[(J&p)>>2]|0;q=d[(q&n)+37>>0]<<16|d[(q&n)+36>>0]<<24|d[(q&n)+38>>0]<<8|d[(q&n)+39>>0];do if(q>>>0<I>>>0){if(!q){k=(a[(e&n)+19>>0]|0)==0&1;r=Gg(c[(r&p)+68>>2]|0)|0;if(r){l=r;break}s=c[(u&p)>>2]|0;q=s+1|0;c[(u&p)>>2]=q;m=e+32|0;r=c[(m&p)>>2]|0;if((s|0)==(((c[2514]|0)>>>0)/(r>>>0)|0|0)){q=s+2|0;c[(u&p)>>2]=q}if(a[(e&n)+17>>0]|0){if(q>>>0<2)s=0;else{s=q+-2|0;s=s-((s>>>0)%(((((c[(e&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;s=((s+1|0)==(((c[2514]|0)>>>0)/(r>>>0)|0|0)?3:2)+s|0}if((s|0)==(q|0)){c[(t&p)>>2]=0;s=dl(e,q,t,k)|0;if(s){l=s;break}I=c[(t&p)>>2]|0;s=I+68|0;r=Gg(c[(s&p)>>2]|0)|0;if(I)Bg(c[(s&p)>>2]|0);if(r){l=r;break}s=c[(u&p)>>2]|0;q=s+1|0;c[(u&p)>>2]=q;if((s|0)==(((c[2514]|0)>>>0)/((c[(m&p)>>2]|0)>>>0)|0|0)){q=s+2|0;c[(u&p)>>2]=q}}}m=c[((c[(v&p)>>2]|0)&p)+56>>2]|0;a[(m&n)+28>>0]=q>>>24;a[(m&n)+29>>0]=q>>>16;a[(m&n)+30>>0]=q>>>8;a[(m&n)+31>>0]=q;m=c[(u&p)>>2]|0;c[(g&p)>>2]=m;m=dl(e,m,f,k)|0;if(m){l=m;break}m=Gg(c[((c[(f&p)>>2]|0)&p)+68>>2]|0)|0;if(m){l=c[(f&p)>>2]|0;if(!l){l=m;D=98}else{Bg(c[(l&p)+68>>2]|0);l=m;D=92}}}else{if(k<<24>>24==2)s=1;else if(k<<24>>24==1?I>>>0>=h>>>0:0){l=hp(e,h,s,0)|0;if(l)break;s=(a[(s&n)>>0]|0)==2&1}else s=0;l=Gg(c[(r&p)+68>>2]|0)|0;if(l)break;F=c[(J&p)>>2]|0;G=q+-1|0;a[(F&n)+36>>0]=G>>>24;a[(F&n)+37>>0]=G>>>16;a[(F&n)+38>>0]=G>>>8;a[(F&n)+39>>0]=G;F=e+36|0;G=(h|0)==0;H=e+60|0;E=k<<24>>24==2;m=0;a:while(1){w=(m|0)!=0;if(w){v=c[(m&p)+56>>2]|0;v=d[(v&n)+1>>0]<<16|d[(v&n)>>0]<<24|d[(v&n)+2>>0]<<8|d[(v&n)+3>>0]}else{v=c[(J&p)>>2]|0;v=d[(v&n)+33>>0]<<16|d[(v&n)+32>>0]<<24|d[(v&n)+34>>0]<<8|d[(v&n)+35>>0]}if(v>>>0>I>>>0){D=15;break}l=dl(e,v,L,0)|0;if(l){D=17;break}q=c[(L&p)>>2]|0;x=q+56|0;B=c[(x&p)>>2]|0;C=B+4|0;y=B+5|0;z=B+6|0;A=B+7|0;D=d[(y&n)>>0]<<16|d[(C&n)>>0]<<24|d[(z&n)>>0]<<8|d[(A&n)>>0];t=s<<24>>24!=0;do if((D|0)!=0|t){if(D>>>0>(((c[(F&p)>>2]|0)>>>2)+-2|0)>>>0){l=q;D=22;break a}if(s<<24>>24!=0?(v|0)==(h|0)|v>>>0<h>>>0&E:0){c[(g&p)>>2]=v;c[(f&p)>>2]=q;l=Gg(c[(q&p)+68>>2]|0)|0;if(l){D=88;break a}do if(!D){if(!w){D=(c[(J&p)>>2]|0)+32|0;C=c[(x&p)>>2]|0;C=d[(C&n)>>0]|d[(C&n)+1>>0]<<8|d[(C&n)+2>>0]<<16|d[(C&n)+3>>0]<<24;a[(D&n)>>0]=C;a[(D&n)+1>>0]=C>>8;a[(D&n)+2>>0]=C>>16;a[(D&n)+3>>0]=C>>24;break}l=Gg(c[(m&p)+68>>2]|0)|0;if(l){D=88;break a}D=c[(m&p)+56>>2]|0;C=c[(x&p)>>2]|0;C=d[(C&n)>>0]|d[(C&n)+1>>0]<<8|d[(C&n)+2>>0]<<16|d[(C&n)+3>>0]<<24;a[(D&n)>>0]=C;a[(D&n)+1>>0]=C>>8;a[(D&n)+2>>0]=C>>16;a[(D&n)+3>>0]=C>>24}else{v=c[(x&p)>>2]|0;t=a[(v&n)+8>>0]|0;k=a[(v&n)+9>>0]|0;u=a[(v&n)+10>>0]|0;v=a[(v&n)+11>>0]|0;s=(k&255)<<16|(t&255)<<24|(u&255)<<8|v&255;if(s>>>0>I>>>0){l=q;D=32;break a}l=dl(e,s,K,0)|0;if(l){D=88;break a}s=c[(K&p)>>2]|0;r=s+68|0;l=Gg(c[(r&p)>>2]|0)|0;if(l){D=35;break a}C=s+56|0;B=c[(C&p)>>2]|0;A=c[(x&p)>>2]|0;A=d[(A&n)>>0]|d[(A&n)+1>>0]<<8|d[(A&n)+2>>0]<<16|d[(A&n)+3>>0]<<24;a[(B&n)>>0]=A;a[(B&n)+1>>0]=A>>8;a[(B&n)+2>>0]=A>>16;a[(B&n)+3>>0]=A>>24;B=c[(C&p)>>2]|0;D=D+-1|0;a[(B&n)+4>>0]=D>>>24;a[(B&n)+5>>0]=D>>>16;a[(B&n)+6>>0]=D>>>8;a[(B&n)+7>>0]=D;kw((c[(C&p)>>2]|0)+8|0,(c[(x&p)>>2]|0)+12|0,D<<2|0)|0;if(s)Bg(c[(r&p)>>2]|0);if(!w){D=c[(J&p)>>2]|0;a[(D&n)+32>>0]=t;a[(D&n)+33>>0]=k;a[(D&n)+34>>0]=u;a[(D&n)+35>>0]=v;break}l=Gg(c[(m&p)+68>>2]|0)|0;if(l){D=88;break a}D=c[(m&p)+56>>2]|0;a[(D&n)>>0]=t;a[(D&n)+1>>0]=k;a[(D&n)+2>>0]=u;a[(D&n)+3>>0]=v}while(0);c[(L&p)>>2]=0;q=0;l=0;s=0;break}if(D){b:do if(!G){if(E){k=0;while(1){x=k<<2;if((d[(B+x&n)+9>>0]<<16|d[(B+x&n)+8>>0]<<24|d[(B+x&n)+10>>0]<<8|d[(B+x&n)+11>>0])>>>0<=h>>>0)break b;k=k+1|0;if(k>>>0>=D>>>0){k=0;break b}}}r=(d[(B&n)+9>>0]<<16|d[(B&n)+8>>0]<<24|d[(B&n)+10>>0]<<8|d[(B&n)+11>>0])-h|0;if((r|0)<=-1)r=(r|0)==-2147483648?2147483647:0-r|0;if(D>>>0>1){k=0;u=1;while(1){l=u<<2;l=(d[(B+l&n)+9>>0]<<16|d[(B+l&n)+8>>0]<<24|d[(B+l&n)+10>>0]<<8|d[(B+l&n)+11>>0])-h|0;if((l|0)<=-1)l=(l|0)==-2147483648?2147483647:0-l|0;v=(l|0)<(r|0);k=v?u:k;u=u+1|0;if((u|0)==(D|0))break;else r=v?l:r}}else k=0}else k=0;while(0);r=k<<2;v=B+(r+8)|0;r=d[(B+r&n)+9>>0]<<16|d[(v&n)>>0]<<24|d[(B+r&n)+10>>0]<<8|d[(B+r&n)+11>>0];if(r>>>0>I>>>0){l=q;D=56;break a}if((r|0)==(h|0)|t^1|r>>>0<h>>>0&E){c[(g&p)>>2]=r;l=Gg(c[(q&p)+68>>2]|0)|0;if(l){D=88;break a}s=D+-1|0;if(k>>>0<s>>>0){D=B+((D<<2)+4)|0;D=d[(D&n)>>0]|d[(D&n)+1>>0]<<8|d[(D&n)+2>>0]<<16|d[(D&n)+3>>0]<<24;a[(v&n)>>0]=D;a[(v&n)+1>>0]=D>>8;a[(v&n)+2>>0]=D>>16;a[(v&n)+3>>0]=D>>24}a[(C&n)>>0]=s>>>24;a[(y&n)>>0]=s>>>16;a[(z&n)>>0]=s>>>8;a[(A&n)>>0]=s;r=c[(g&p)>>2]|0;s=c[(H&p)>>2]|0;do if(!s)s=0;else{if((c[(s&p)>>2]|0)>>>0<r>>>0){s=1;break}s=(di(s,r)|0)!=0}while(0);l=dl(e,r,f,s&1^1)|0;if(l){s=0;break}l=Gg(c[((c[(f&p)>>2]|0)&p)+68>>2]|0)|0;if(!l){l=0;s=0;break}s=c[(f&p)>>2]|0;if(!s){s=0;break}Bg(c[(s&p)+68>>2]|0);s=0}else l=0}else l=0}else{l=Gg(c[(q&p)+68>>2]|0)|0;if(l){D=89;break a}c[(g&p)>>2]=v;l=(c[(J&p)>>2]|0)+32|0;s=c[(x&p)>>2]|0;s=d[(s&n)>>0]|d[(s&n)+1>>0]<<8|d[(s&n)+2>>0]<<16|d[(s&n)+3>>0]<<24;a[(l&n)>>0]=s;a[(l&n)+1>>0]=s>>8;a[(l&n)+2>>0]=s>>16;a[(l&n)+3>>0]=s>>24;c[(f&p)>>2]=q;c[(L&p)>>2]=0;q=0;l=0;s=0}while(0);if(m)Bg(c[(m&p)+68>>2]|0);if(!(s<<24>>24)){m=0;D=88;break}else m=q}if((D|0)==15){c[(M&p)>>2]=58314;c[(M&p)+4>>2]=10788;bd(11,13600,M);l=11;D=17}else if((D|0)==22){c[(M&p)>>2]=58343;c[(M&p)+4>>2]=10788;bd(11,13600,M);q=l;l=11;D=88}else if((D|0)==32){c[(M&p)>>2]=58377;c[(M&p)+4>>2]=10788;bd(11,13600,M);q=l;l=11;D=88}else if((D|0)==35)if(!s)D=88;else{Bg(c[(r&p)>>2]|0);D=88}else if((D|0)==56){c[(M&p)>>2]=58442;c[(M&p)+4>>2]=10788;bd(11,13600,M);q=l;l=11;D=88}if((D|0)==17)c[(L&p)>>2]=0;else if((D|0)==88)if(q)D=89;if((D|0)==89)Bg(c[(q&p)+68>>2]|0);if(!m)D=92;else{Bg(c[(m&p)+68>>2]|0);D=92}}if((D|0)==92?(l|0)!=0:0)D=98;if((D|0)==98){c[(f&p)>>2]=0;break}l=c[(f&p)>>2]|0;m=c[(l&p)+68>>2]|0;if((b[(m&o)+26>>1]|0)<=1){a[(l&n)>>0]=0;l=0;break}if(l)Bg(m);c[(f&p)>>2]=0;c[(M&p)>>2]=58541;c[(M&p)+4>>2]=10788;bd(11,13600,M);l=11}else{c[(M&p)>>2]=58259;c[(M&p)+4>>2]=10788;bd(11,13600,M);l=11}while(0);i=N;return l|0}function jp(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+16|0;if((i|0)>=(j|0))fa();v=A+12|0;u=A+8|0;z=A;f=c[(b&p)+40>>2]|0;a:do if(!f){h=b+96|0;g=c[(h&p)>>2]|0;if((g|0)>(e|0)){f=(d|0)==1;e=(f&1^1)+e|0;if((e|0)<(g|0)){d=b+92|0;g=e;do{ei(c[((c[(d&p)>>2]|0)+(g*48|0)&p)+16>>2]|0);g=g+1|0}while((g|0)<(c[(h&p)>>2]|0))}c[(h&p)>>2]=e;if(f){if(e){f=0;break}f=c[(b&p)+68>>2]|0;g=c[(f&p)>>2]|0;if(!g){f=0;break}if((g|0)==14696)f=Gi(f,0,0)|0;else f=0;c[(b&p)+52>>2]=0;break}t=b+208|0;if((c[(t&p)>>2]|0)==0?(c[(c[(b&p)+64>>2]&p)>>2]|0)==0:0){f=0;break}if(!e)w=0;else w=(c[(b&p)+92>>2]|0)+((e+-1|0)*48|0)|0;s=(w|0)!=0;f=w+20|0;if(s){d=c[(f&p)>>2]|0;g=qg(512,0)|0;if(!g){f=7;break}fw(g|0,0,512)|0;c[(g&p)>>2]=d;y=g}else y=0;h=b+28|0;e=b+24|0;c[(e&p)>>2]=c[((s?f:h)&p)>>2];a[(b&n)+18>>0]=a[(b&n)+12>>0]|0;b:do if(s){h=b+72|0;e=h;k=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;if(!(c[(t&p)>>2]|0)){g=w+8|0;l=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;d=(l|0)==0&(g|0)==0;l=d?k:l;g=d?e:g;d=w;f=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;q=h;c[(q&p)>>2]=f;c[(q&p)+4>>2]=d;if((d|0)<(g|0)|(d|0)==(g|0)&f>>>0<l>>>0)while(1){f=wq(b,h,y,1,1)|0;if(f){o=k;m=e;break b}d=h;f=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if(!((d|0)<(g|0)|(d|0)==(g|0)&f>>>0<l>>>0)){x=39;break}}else x=39}else x=38}else{r=c[(t&p)>>2]|0;if(!r){h=b+72|0;e=h;k=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;x=38;break}c[(e&p)>>2]=c[(h&p)>>2];if(a[(r&n)+44>>0]|0){k=r+68|0;m=c[(k&p)>>2]|0;l=r+32|0;e=c[(l&p)>>2]|0;g=r+52|0;f=(c[(e&p)>>2]|0)+0|0;d=g+48|0;do{a[(g&n)>>0]=a[(f&n)>>0]|0;g=g+1|0;f=f+1|0}while((g|0)<(d|0));g=c[(k&p)>>2]|0;f=g+1|0;if(f>>>0>m>>>0)f=0;else{h=f;while(1){g=g+34|0;f=g>>>12;if(!f)g=(c[(e&p)>>2]|0)+(g<<2)|0;else g=(c[(e+(f<<2)&p)>>2]|0)+((g&4095)<<2)|0;f=Bq(b,c[(g&p)>>2]|0)|0;g=h+1|0;if((f|0)!=0|g>>>0>m>>>0)break;q=h;e=c[(l&p)>>2]|0;h=g;g=q}g=c[(k&p)>>2]|0}if((m|0)!=(g|0))Aq(r)}else f=0;g=vl(c[(b&p)+204>>2]|0)|0;if(!((g|0)!=0&(f|0)==0))break a;while(1){f=g;g=c[(g&p)+12>>2]|0;f=Bq(b,c[(f&p)+20>>2]|0)|0;if(!((g|0)!=0&(f|0)==0))break a}}while(0);if((x|0)==38){d=h;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;d=0;f=0;x=39}c:do if((x|0)==39){o=b+80|0;q=b+148|0;r=b+152|0;if((d|0)<(e|0)|(d|0)==(e|0)&f>>>0<k>>>0)while(1){c[(v&p)>>2]=0;f=vq(b,0,k,e,v,u)|0;d=c[(v&p)>>2]|0;if(!d){d=o;d=jw(c[(q&p)>>2]|0,0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0)|0;g=G;m=h;if((d|0)==(c[(m&p)>>2]|0)?(g|0)==(c[(m&p)+4>>2]|0):0){x=dw(k|0,e|0,d|0,g|0)|0;d=(c[(r&p)>>2]|0)+8|0;d=qw(x|0,G|0,d|0,((d|0)<0)<<31>>31|0)|0;c[(v&p)>>2]=d;x=46}else x=40}else x=46;d:do if((x|0)==46){x=0;if((f|0)==0&(d|0)!=0){m=0;while(1){g=h;l=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if(!((g|0)<(e|0)|(g|0)==(e|0)&l>>>0<k>>>0)){d=l;break d}f=wq(b,h,y,1,1)|0;m=m+1|0;if(!((f|0)==0&m>>>0<d>>>0)){x=40;break}}}else x=40}while(0);if((x|0)==40){x=0;if(f){o=k;m=e;break c}d=h;g=c[(d&p)+4>>2]|0;d=c[(d&p)>>2]|0}if(!((g|0)<(e|0)|(g|0)==(e|0)&d>>>0<k>>>0)){o=k;m=e;f=0;break}}else{o=k;m=e;f=0}}while(0);e:do if(!s){ei(y);if(f)break a}else{l=w+24|0;g=c[(l&p)>>2]|0;q=(c[(b&p)+152>>2]|0)+4|0;q=sw(q|0,((q|0)<0)<<31>>31|0,g|0,0)|0;k=z;c[(k&p)>>2]=q;c[(k&p)+4>>2]=G;k=c[(t&p)>>2]|0;if(!k){if(!f)x=57}else{e=w+28|0;d=w+40|0;f=k+104|0;if((c[(d&p)>>2]|0)==(c[(f&p)>>2]|0))d=c[(e&p)>>2]|0;else{c[(e&p)>>2]=0;c[(d&p)>>2]=c[(f&p)>>2];d=0}e=k+68|0;if(d>>>0<(c[(e&p)>>2]|0)>>>0){c[(e&p)>>2]=d;c[(k&p)+76>>2]=c[(w&p)+32>>2];c[(k&p)+80>>2]=c[(w&p)+36>>2];Aq(k);g=c[(l&p)>>2]|0;x=57}else x=57}f:do if((x|0)==57){d=b+52|0;while(1){if(g>>>0>=(c[(d&p)>>2]|0)>>>0)break;f=wq(b,z,y,0,1)|0;if(!f)g=g+1|0;else break f}ei(y);break e}while(0);ei(y);break a}while(0);f=h;c[(f&p)>>2]=o;c[(f&p)+4>>2]=m;f=0}else f=0}while(0);i=A;return f|0}function kp(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;e=c[(d&p)>>2]|0;if(e){i=c[(d&p)+4>>2]|0;c[((c[(e&p)+4>>2]|0)&p)+4>>2]=c[(e&p)>>2];g=d+56|0;Wc(c[(g&p)>>2]|0);c[(g&p)>>2]=0;a[(d&n)+73>>0]=0;g=c[(d&p)+12>>2]|0;f=d+8|0;e=c[(f&p)>>2]|0;if(!g)c[(i&p)+8>>2]=e;else{c[(g&p)+8>>2]=e;e=c[(f&p)>>2]|0}if(e)c[(e&p)+12>>2]=g;h=d+76|0;e=b[(h&o)>>1]|0;if(e<<16>>16>=0){f=0;while(1){g=c[(d+(f<<2)&p)+120>>2]|0;if(g){Bg(c[(g&p)+68>>2]|0);e=b[(h&o)>>1]|0}if((f|0)<(e<<16>>16|0))f=f+1|0;else break}}if((a[(i&n)+20>>0]|0)==0?(j=i+12|0,k=c[(j&p)>>2]|0,(k|0)!=0):0){c[(j&p)>>2]=0;Bg(c[(k&p)+68>>2]|0)}Wc(c[(d&p)+20>>2]|0)}return}function lp(b){b=b|0;var e=0,f=0,g=0,h=0;h=c[(b&p)+200>>2]|0;e=c[3164]|0;if(e)nc[e&3]();f=c[(b&p)+136>>2]|0;if(f)do{e=f;f=c[(f&p)+12>>2]|0;Wc(e)}while((f|0)!=0);a[(b&n)+4>>0]=0;e=b+208|0;rn(c[(e&p)>>2]|0,d[(b&n)+9>>0]|0,c[(b&p)+152>>2]|0,h)|0;c[(e&p)>>2]=0;xn(b);if(!(a[(b&n)+15>>0]|0)){if((c[(c[(b&p)+64>>2]&p)>>2]|0)!=0?(g=Jo(b)|0,e=g&255,(e|0)==10|(e|0)==13):0){c[(b&p)+40>>2]=g;a[(b&n)+16>>0]=6}nl(b)}else No(b);e=c[3166]|0;if(e)nc[e&3]();e=c[(b&p)+64>>2]|0;f=c[(e&p)>>2]|0;if(f){lc[c[(f&p)+4>>2]&127](e)|0;c[(e&p)>>2]=0}f=c[(b&p)+60>>2]|0;e=c[(f&p)>>2]|0;if(e){lc[c[(e&p)+4>>2]&127](f)|0;c[(f&p)>>2]=0}$k(h);cc[c[8892>>2]&31](c[((c[(b&p)+204>>2]|0)&p)+40>>2]|0);Wc(b);return}function mp(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;g=c[(a&p)+4>>2]|0;h=qg(g,((g|0)<0)<<31>>31)|0;do if(h){fw(h|0,0,g|0)|0;g=tc[c[(a&p)+24>>2]&31](a,b,h,e&556927,f)|0;if(!g){c[(d&p)>>2]=h;g=0;break}else{Wc(h);break}}else g=7;while(0);return g|0}function np(b){b=b|0;var d=0,e=0,f=0;d=b+16|0;e=b+12|0;f=b+10|0;if(!(Tl(c[(d&p)>>2]|0,b,c[(e&p)>>2]|0,a[(f&n)>>0]|0)|0))d=0;else{d=(Ul(c[(d&p)>>2]|0,b,c[(e&p)>>2]|0,a[(f&n)>>0]|0)|0)==0;d=d?4:8}return d|0}function op(d){d=d|0;var f=0,g=0;g=d+8|0;f=b[(g&o)>>1]|0;do if(!(f&13))if(!(Ul(c[(d&p)+16>>2]|0,d,c[(d&p)+12>>2]|0,a[(d&n)+10>>0]|0)|0)){f=((e[(g&o)>>1]|0)&48640|4)&65535;b[(g&o)>>1]=f;break}else{h[(d&q)>>3]=+Ug(d);b[(g&o)>>1]=(e[(g&o)>>1]|0)&48640|8;dm(d);f=b[(g&o)>>1]|0;break}while(0);b[(g&o)>>1]=f&65517;return}function pp(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+80|0;if((i|0)>=(j|0))fa();u=w+40|0;v=w;h=f+4|0;if((a[(d&n)+10>>0]|0)!=(a[(h&n)>>0]|0)){t=c[(d&p)+32>>2]|0;q=u+8|0;b[(q&o)>>1]=1;c[(u&p)+32>>2]=t;r=u+24|0;c[(r&p)>>2]=0;s=v+8|0;b[(s&o)>>1]=1;c[(v&p)+32>>2]=t;t=v+24|0;c[(t&p)>>2]=0;Zl(u,d,4096);Zl(v,e,4096);d=Sg(u,a[(h&n)>>0]|0)|0;m=(d|0)==0;if(m)l=0;else l=c[(u&p)+12>>2]|0;h=Sg(v,a[(h&n)>>0]|0)|0;k=(h|0)==0;if(k)e=0;else e=c[(v&p)+12>>2]|0;d=tc[c[(f&p)+12>>2]&31](c[(f&p)+8>>2]|0,l,d,e,h)|0;if(!((b[(q&o)>>1]&9312)==0&(c[(r&p)>>2]|0)==0))Qg(u);if(!((b[(s&o)>>1]&9312)==0&(c[(t&p)>>2]|0)==0))Qg(v);if((m|k)&(g|0)!=0)a[(g&n)>>0]=7}else d=tc[c[(f&p)+12>>2]&31](c[(f&p)+8>>2]|0,c[(d&p)+12>>2]|0,c[(d&p)+16>>2]|0,c[(e&p)+12>>2]|0,c[(e&p)+16>>2]|0)|0;i=w;return d|0}function qp(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[(a&p)+12>>2]|0;d=c[(b&p)+12>>2]|0;a=Zv(c[(a&p)+16>>2]|0,c[(b&p)+16>>2]|0,(e|0)>(d|0)?d:e)|0;return ((a|0)==0?e-d|0:a)|0}function rp(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r;do if(!(a[(f&n)+3>>0]|0)){if(a[(f&n)+4>>0]|0){b[(h&o)+20>>1]=((sp(g+4|0,h)|0)&255)+4;l=h+8|0;c[(l&p)>>2]=0;c[(l&p)+4>>2]=0;c[(l&p)+8>>2]=0;break}m=d[(f&n)+7>>0]|0;l=g+m|0;k=a[(l&n)>>0]|0;if(k<<24>>24>-1){l=k&255;c[(q&p)>>2]=l;k=1}else{k=mm(l,q)|0;l=c[(q&p)>>2]|0}q=h;c[(q&p)>>2]=l;c[(q&p)+4>>2]=0;m=(k&255)+m|0;k=12}else{k=a[(g&n)>>0]|0;if(k<<24>>24>-1){l=k&255;c[(q&p)>>2]=l;k=1}else{k=mm(g,q)|0;l=c[(q&p)>>2]|0}m=k&255;m=((sp(g+m|0,h)|0)&255)+m|0;k=12}while(0);do if((k|0)==12){c[(h&p)+12>>2]=l;c[(h&p)+8>>2]=g+m;k=e[(f&o)+10>>1]|0;if(l>>>0>k>>>0){q=b[(f&o)+12>>1]|0;g=q&65535;l=(((l-g|0)>>>0)%(((c[((c[(f&p)+52>>2]|0)&p)+36>>2]|0)+-4|0)>>>0)|0)+g|0;k=(l|0)>(k|0)?q:l&65535;b[(h&o)+16>>1]=k;k=m+(k&65535)|0;b[(h&o)+18>>1]=k;b[(h&o)+20>>1]=k+4;break}else{k=l+m|0;b[(h&o)+20>>1]=(k&65532)>>>0<4?4:k&65535;b[(h&o)+16>>1]=l;b[(h&o)+18>>1]=0;break}}while(0);i=r;return}function sp(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=a[(b&n)>>0]|0;g=f&255;do if(g&128){f=d[(b&n)+1>>0]|0;if(!(f&128)){h=e;c[(h&p)>>2]=f|g<<7&16256;c[(h&p)+4>>2]=0;f=2;break}h=d[(b&n)+2>>0]|0;g=(h|g<<14)&2080895;if(!(h&128)){h=e;c[(h&p)>>2]=g|f<<7&16256;c[(h&p)+4>>2]=0;f=3;break}h=d[(b&n)+3>>0]|0;f=(h|f<<14)&2080895;if(!(h&128)){h=e;c[(h&p)>>2]=f|g<<7;c[(h&p)+4>>2]=0;f=4;break}k=d[(b&n)+4>>0]|0;h=k|g<<14;if(!(k&128)){i=e;c[(i&p)>>2]=h|f<<7;c[(i&p)+4>>2]=g>>>18;f=5;break}j=f|g<<7;g=d[(b&n)+5>>0]|0;i=g|f<<14;if(!(g&128)){f=e;c[(f&p)>>2]=i|h<<7&266354560;c[(f&p)+4>>2]=j>>>18;f=6;break}f=d[(b&n)+6>>0]|0;g=f|h<<14;if(!(f&128)){f=e;c[(f&p)>>2]=g&-266354561|i<<7&266354560;c[(f&p)+4>>2]=j>>>11;f=7;break}f=g&2080895;h=d[(b&n)+7>>0]|0;g=h|i<<14;if(!(h&128)){h=e;c[(h&p)>>2]=g&-266354561|f<<7;c[(h&p)+4>>2]=j>>>4;f=8;break}else{h=e;c[(h&p)>>2]=g<<8&532709120|f<<15|(d[(b&n)+8>>0]|0);c[(h&p)+4>>2]=k>>>3&15|j<<4;f=9;break}}else{g=e;c[(g&p)>>2]=f&255;c[(g&p)+4>>2]=0;f=1}while(0);return f|0}function tp(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,l=0,m=0,r=0,s=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();l=r+8|0;m=r;g=(d[(a&n)+1>>0]|0)<<16|(d[(a&n)>>0]|0)<<24|(d[(a&n)+2>>0]|0)<<8|(d[(a&n)+3>>0]|0);a=(d[(a&n)+5>>0]|0)<<16|(d[(a&n)+4>>0]|0)<<24|(d[(a&n)+6>>0]|0)<<8|(d[(a&n)+7>>0]|0);s=f;c[(s&p)>>2]=a;c[(s&p)+4>>2]=g;if((e|0)==6)a=4;else{c[(k&p)>>2]=a;c[(k&p)+4>>2]=g;h[(l&q)>>3]=+h[(k&q)>>3];h[(m&q)>>3]=+h[(l&q)>>3];a=+h[(l&q)>>3]!=+h[(m&q)>>3]?1:8}b[(f&o)+8>>1]=a;i=r;return}function up(b,c,e){b=b|0;c=c|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if(!(e>>>0>16777215|(e|0)==16777215&c>>>0>4294967295)){f=c;g=0;while(1){c=g+1|0;a[(h+g&n)>>0]=f|128;f=mw(f|0,e|0,7)|0;e=G;if((f|0)==0&(e|0)==0){e=g;break}else g=c}a[(h&n)>>0]=(d[(h&n)>>0]|0)&127;if((e|0)>-1){f=0;while(1){a[(b+f&n)>>0]=a[(h+e&n)>>0]|0;if((e|0)>0){f=f+1|0;e=e+-1|0}else break}}}else{a[(b&n)+8>>0]=c;c=mw(c|0,e|0,8)|0;f=G;e=7;while(1){a[(b+e&n)>>0]=c|128;c=mw(c|0,f|0,7)|0;if((e|0)<=0){c=9;break}else{f=G;e=e+-1|0}}}i=k;return c|0}function vp(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if((c[(b&p)+44>>2]|0)>>>0>=d>>>0){f=dl(b,d,e,f)|0;if(!f){f=c[(e&p)>>2]|0;if((a[(f&n)>>0]|0)==0?(g=$p(f)|0,(g|0)!=0):0){f=c[(e&p)>>2]|0;if(f)Bg(c[(f&p)+68>>2]|0)}else g=0}else g=f}else{c[(h&p)>>2]=54788;c[(h&p)+4>>2]=10788;bd(11,13600,h);g=11}i=k;return g|0}function wp(b){b=b|0;var d=0,e=0,f=0;if((a[(b&n)+12>>0]|0)==0?(d=b+60|0,e=c[(d&p)>>2]|0,((lc[c[((c[(e&p)>>2]|0)&p)+48>>2]&127](e)|0)&4096|0)==0):0){d=c[(d&p)>>2]|0;e=c[((c[(d&p)>>2]|0)&p)+44>>2]|0;if(e){d=lc[e&127](d)|0;if((d|0)<32)d=512;else f=6}else{d=4096;f=6}if((f|0)==6)d=(d|0)>65536?65536:d;c[(b&p)+148>>2]=d}else c[(b&p)+148>>2]=512;return}function xp(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;j=d+40|0;do if(!(c[(j&p)>>2]|0)){i=a[(d&n)+20>>0]|0;if(i<<24>>24){if(i&3){f=0;break}if(b[(e&o)+24>>1]&4){f=0;break}}c[(e&p)+12>>2]=0;do if(!(c[(d&p)+208>>2]|0)){if(!((b[(e&o)+24>>1]&4)==0?(a[(d&n)+16>>0]|0)!=3:0))k=11;if((k|0)==11?(g=zl(d,1)|0,(g|0)!=0):0){f=g;break}if(((c[(e&p)+20>>2]|0)>>>0>(c[(d&p)+24>>2]|0)>>>0?(Uo(e)|0)!=0:0)?(h=Vo(e)|0,(h|0)!=0):0){f=h;break}f=Al(d,e)|0;k=16}else{if((Uo(e)|0)!=0?(f=Vo(e)|0,(f|0)!=0):0)break;f=wl(d,e,0,0)|0;k=16}while(0);if((k|0)==16)if(!f){xl(e);f=0;break}g=f&255;if((g|0)==10|(g|0)==13){c[(j&p)>>2]=f;a[(d&n)+16>>0]=6}}else f=0;while(0);return f|0}function yp(d){d=d|0;var e=0;e=c[(d&p)+8>>2]|0;if((a[(e&n)>>0]|0)!=0?(a[(e&n)>>0]=0,(b[(d&o)+26>>1]|0)>1):0)$p(e)|0;return}function zp(b,e,f,g,h){b=b|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,o=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();o=q;m=q+8|0;do if(!(c[(h&p)>>2]|0)){if(!e){c[(o&p)>>2]=53856;c[(o&p)+4>>2]=10788;bd(11,13600,o);c[(h&p)>>2]=11;break}if(e>>>0<2)k=0;else{k=e+-2|0;k=k-((k>>>0)%(((((c[(b&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(((c[2514]|0)>>>0)/((c[(b&p)+32>>2]|0)>>>0)|0|0)?3:2)+k|0}l=zg(c[(b&p)>>2]|0,k,m,0)|0;if(l){c[(h&p)>>2]=l;break}e=(e-k|0)*5|0;l=e+-5|0;do if((l|0)>=0){k=c[(m&p)>>2]|0;b=c[(k&p)+4>>2]|0;l=b+l|0;if((a[(l&n)>>0]|0)==f<<24>>24?(d[(b+e+-3&n)>>0]<<16|d[(b+e+-4&n)>>0]<<24|d[(b+e+-2&n)>>0]<<8|d[(b+e+-1&n)>>0]|0)==(g|0):0)break;m=Gg(k)|0;c[(h&p)>>2]=m;if(!m){a[(l&n)>>0]=f;a[(b+e+-4&n)>>0]=g>>>24;a[(b+e+-3&n)>>0]=g>>>16;a[(b+e+-2&n)>>0]=g>>>8;a[(b+e+-1&n)>>0]=g}}else{c[(o&p)>>2]=53867;c[(o&p)+4>>2]=10788;bd(11,13600,o);c[(h&p)>>2]=11;k=c[(m&p)>>2]|0}while(0);if(k)Bg(k)}while(0);i=q;return}function Ap(a,b,c){a=a|0;b=b|0;c=c|0;return Km(a,b,c,0)|0}function Bp(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;j=d[(f&n)>>0]&63;h=f+j|0;l=c[(g&p)+8>>2]|0;k=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;switch(d[(f&n)+1>>0]|0){case 3:{h=d[(f+j&n)+1>>0]<<8|a[(h&n)>>0]<<16|d[(f+j&n)+2>>0];i=((h|0)<0)<<31>>31;m=11;break}case 4:{h=d[(f+j&n)+1>>0]<<16|d[(h&n)>>0]<<24|d[(f+j&n)+2>>0]<<8|d[(f+j&n)+3>>0];i=((h|0)<0)<<31>>31;m=11;break}case 8:{i=0;h=0;m=11;break}case 5:{i=a[(h&n)>>0]<<8|d[(f+j&n)+1>>0];h=d[(f+j&n)+3>>0]<<16|d[(f+j&n)+2>>0]<<24|d[(f+j&n)+4>>0]<<8|d[(f+j&n)+5>>0];m=11;break}case 7:case 0:{h=Km(b,f,g,0)|0;break}case 6:{i=d[(f+j&n)+1>>0]<<16|d[(h&n)>>0]<<24|d[(f+j&n)+2>>0]<<8|d[(f+j&n)+3>>0];h=d[(f+j&n)+5>>0]<<16|d[(f+j&n)+4>>0]<<24|d[(f+j&n)+6>>0]<<8|d[(f+j&n)+7>>0];m=11;break}case 9:{i=0;h=1;m=11;break}case 2:{h=a[(h&n)>>0]<<8|d[(f+j&n)+1>>0];i=((h|0)<0)<<31>>31;m=11;break}case 1:{h=a[(h&n)>>0]|0;i=((h|0)<0)<<31>>31;m=11;break}default:h=Km(b,f,g,0)|0}do if((m|0)==11){if((l|0)>(i|0)|(l|0)==(i|0)&k>>>0>h>>>0){h=c[(g&p)+12>>2]|0;break}if((l|0)<(i|0)|(l|0)==(i|0)&k>>>0<h>>>0){h=c[(g&p)+16>>2]|0;break}if((e[(g&o)+4>>1]|0)>1){h=Km(b,f,g,1)|0;break}else{h=a[(g&n)+6>>0]|0;break}}while(0);return h|0}function Cp(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r;l=r+8|0;h=f+1|0;k=a[(h&n)>>0]|0;if(k<<24>>24>-1){h=k&255;c[(l&p)>>2]=h}else{mm(h,l)|0;h=c[(l&p)>>2]|0}do if((h|0)>=12){if(!(h&1)){h=c[(g&p)+16>>2]|0;break}l=d[(f&n)>>0]|0;m=(h+-12|0)/2|0;if((l+m|0)>(b|0)){c[(q&p)>>2]=68550;c[(q&p)+4>>2]=10788;bd(11,13600,q);a[(g&n)+7>>0]=11;h=0;break}h=c[(g&p)+8>>2]|0;k=c[(h&p)+12>>2]|0;h=Zv(f+l|0,c[(h&p)+16>>2]|0,(m|0)>(k|0)?k:m)|0;if(h)if((h|0)>0){h=c[(g&p)+16>>2]|0;break}else{h=c[(g&p)+12>>2]|0;break}if((m|0)==(k|0))if((e[(g&o)+4>>1]|0)>1){h=Km(b,f,g,1)|0;break}else{h=a[(g&n)+6>>0]|0;break}else if((m-k|0)>0){h=c[(g&p)+16>>2]|0;break}else{h=c[(g&p)+12>>2]|0;break}}else h=c[(g&p)+12>>2]|0;while(0);i=r;return h|0}function Dp(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0;m=f+73|0;h=a[(m&n)>>0]|0;do if(h<<24>>24!=1){if((h&255)>2){h=Kn(f)|0;if(h)break;h=a[(m&n)>>0]|0}if(!(h<<24>>24)){c[(g&p)>>2]=1;h=0;break}h=f+68|0;i=c[(h&p)>>2]|0;if((i|0)!=0?(a[(m&n)>>0]=1,c[(h&p)>>2]=0,(i|0)>0):0)h=0;else q=9}else q=9;while(0);do if((q|0)==9){l=f+76|0;h=b[(l&o)>>1]|0;i=c[(f+(h<<2)&p)+120>>2]|0;h=f+(h<<1)+78|0;j=(b[(h&o)>>1]|0)+1<<16>>16;b[(h&o)>>1]=j;h=(a[(i&n)+5>>0]|0)!=0;if((j&65535)<(e[(i&o)+18>>1]|0)){if(h){h=0;break}h=Vm(f)|0;break}if(!h){h=d[(i&n)+6>>0]|0;i=c[(i&p)+56>>2]|0;h=rm(f,d[(i+h&n)+9>>0]<<16|d[(i+h&n)+8>>0]<<24|d[(i+h&n)+10>>0]<<8|d[(i+h&n)+11>>0])|0;if(h)break;h=Vm(f)|0;break}j=f+44|0;k=f+72|0;i=b[(l&o)>>1]|0;do{if(!(i<<16>>16)){q=15;break}h=c[(f+(i<<16>>16<<2)&p)+120>>2]|0;if(h){Bg(c[(h&p)+68>>2]|0);i=b[(l&o)>>1]|0}i=i+-1<<16>>16;b[(l&o)>>1]=i;b[(j&o)>>1]=0;a[(k&n)>>0]=d[(k&n)>>0]&249;r=i<<16>>16;h=c[(f+(r<<2)&p)+120>>2]|0}while((e[(f+(r<<1)&o)+78>>1]|0)>=(e[(h&o)+18>>1]|0));if((q|0)==15){c[(g&p)>>2]=1;a[(m&n)>>0]=0;h=0;break}if(!(a[(h&n)+2>>0]|0))h=0;else h=Dm(f,g)|0}while(0);return h|0}function Ep(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0;s=f+73|0;h=a[(s&n)>>0]|0;do if(h<<24>>24!=1){if((h&255)>2){h=Kn(f)|0;if(h)break;h=a[(s&n)>>0]|0}if(!(h<<24>>24)){c[(g&p)>>2]=1;h=0;break}h=f+68|0;i=c[(h&p)>>2]|0;if((i|0)!=0?(a[(s&n)>>0]=1,c[(h&p)>>2]=0,(i|0)<0):0)h=0;else j=9}else j=9;while(0);a:do if((j|0)==9){r=f+76|0;k=b[(r&o)>>1]|0;l=k<<16>>16;j=c[(f+(l<<2)&p)+120>>2]|0;i=f+(l<<1)+78|0;h=b[(i&o)>>1]|0;if(!(a[(j&n)+5>>0]|0)){g=c[(j&p)+56>>2]|0;h=(h&65535)<<1;s=c[(j&p)+64>>2]|0;h=(d[(s+h&n)>>0]<<8|d[(s+(h|1)&n)>>0])&e[(j&o)+20>>1];h=rm(f,d[(g+h&n)+1>>0]<<16|d[(g+h&n)>>0]<<24|d[(g+h&n)+2>>0]<<8|d[(g+h&n)+3>>0])|0;if(h)break;h=Fp(f)|0;break}b:do if(!(h<<16>>16)){m=f+44|0;q=f+72|0;j=l;while(1){if(!(k<<16>>16))break;i=c[(f+(j<<2)&p)+120>>2]|0;if(!i)i=k;else{Bg(c[(i&p)+68>>2]|0);i=b[(r&o)>>1]|0}k=i+-1<<16>>16;b[(r&o)>>1]=k;b[(m&o)>>1]=0;a[(q&n)>>0]=d[(q&n)>>0]&249;j=k<<16>>16;i=f+(j<<1)+78|0;h=b[(i&o)>>1]|0;if(h<<16>>16)break b}a[(s&n)>>0]=0;c[(g&p)>>2]=1;h=0;break a}while(0);b[(i&o)>>1]=h+-1<<16>>16;s=c[(f+(b[(r&o)>>1]<<2)&p)+120>>2]|0;if((a[(s&n)+2>>0]|0)!=0?(a[(s&n)+5>>0]|0)==0:0)h=Em(f,g)|0;else h=0}while(0);return h|0}function Fp(f){f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;i=f+76|0;do{h=b[(i&o)>>1]|0;g=c[(f+(h<<2)&p)+120>>2]|0;if(a[(g&n)+5>>0]|0){j=4;break}k=d[(g&n)+6>>0]|0;l=c[(g&p)+56>>2]|0;k=d[(l+k&n)+9>>0]<<16|d[(l+k&n)+8>>0]<<24|d[(l+k&n)+10>>0]<<8|d[(l+k&n)+11>>0];b[(f+(h<<1)&o)+78>>1]=b[(g&o)+18>>1]|0;g=rm(f,k)|0}while((g|0)==0);if((j|0)==4){b[(f+(h<<1)&o)+78>>1]=(e[(g&o)+18>>1]|0)+65535;g=0}return g|0}function Gp(a,d,e,f,g,h){a=a|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,n=0,q=0;q=i;i=i+224|0;if((i|0)>=(j|0))fa();m=q;k=q+8|0;c[(k&p)>>2]=0;do if(d){l=a+16|0;n=Fm(c[(l&p)>>2]|0,q+16|0,200,k)|0;if(n){Gm(c[(l&p)>>2]|0,e,d,n);if(!(b[(n&o)+4>>1]|0)){mg(c[((c[(l&p)>>2]|0)&p)+12>>2]|0,c[(k&p)>>2]|0);c[(m&p)>>2]=53713;c[(m&p)+4>>2]=10788;bd(11,13600,m);k=11;break}l=c[(k&p)>>2]|0;k=Cm(a,n,e,f,g,h)|0;if(l)mg(c[((c[(a&p)+16>>2]|0)&p)+12>>2]|0,l)}else k=7}else k=Cm(a,0,e,f,g,h)|0;while(0);i=q;return k|0}function Hp(a,f,g){a=a|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+48|0;if((i|0)>=(j|0))fa();u=v+24|0;h=v;s=v+36|0;t=v+32|0;q=c[(a&p)+52>>2]|0;rp(a,f,h);b[(g&o)>>1]=b[(h&o)+20>>1]|0;g=b[(h&o)+18>>1]|0;a:do if(g<<16>>16){k=g&65535;l=f+(k+3)|0;if(l>>>0>((c[(a&p)+56>>2]|0)+(e[(a&o)+20>>1]|0)|0)>>>0){c[(u&p)>>2]=58720;c[(u&p)+4>>2]=10788;bd(11,13600,u);g=11;break}g=(c[(q&p)+36>>2]|0)+-4|0;g=(((c[(h&p)+12>>2]|0)+-1+g-(e[(h&o)+16>>1]|0)|0)>>>0)/(g>>>0)|0;if(g){m=q+44|0;a=g;k=d[(f+k&n)+1>>0]<<16|d[(f+k&n)>>0]<<24|d[(f+k&n)+2>>0]<<8|d[(l&n)>>0];while(1){a=a+-1|0;c[(s&p)>>2]=0;c[(t&p)>>2]=0;if(k>>>0<2)break;if(k>>>0>(c[(m&p)>>2]|0)>>>0)break;f=(a|0)==0;if(!f){g=Mp(q,k,t,s)|0;if(g)break a;g=c[(t&p)>>2]|0;if(g)l=13;else l=12}else l=12;if((l|0)==12){g=Yp(q,k)|0;c[(t&p)>>2]=g;if(!g){g=0;l=15}else l=13}if((l|0)==13){l=0;if((b[((c[(g&p)+68>>2]|0)&o)+26>>1]|0)==1)l=15;else{c[(u&p)>>2]=58754;c[(u&p)+4>>2]=10788;bd(11,13600,u);g=11}}if((l|0)==15)g=Ym(q,g,k)|0;h=c[(t&p)>>2]|0;if((h|0)!=0?(r=c[(h&p)+68>>2]|0,(r|0)!=0):0)Bg(r);if(g)break a;if(f){g=0;break a}else k=c[(s&p)>>2]|0}c[(u&p)>>2]=58734;c[(u&p)+4>>2]=10788;bd(11,13600,u);g=11}else g=0}else g=0;while(0);i=v;return g|0}function Ip(f,g,h,k){f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))fa();m=z;do if(!(c[(k&p)>>2]|0)){v=c[(f&p)+56>>2]|0;w=g<<1;x=c[(f&p)+64>>2]|0;y=x+w|0;l=(d[(y&n)>>0]|0)<<8|(d[(x+(w|1)&n)>>0]|0);q=f+6|0;r=d[(q&n)>>0]|0;s=v+(r+5)|0;t=v+(r+6)|0;if(l>>>0>=((d[(s&n)>>0]|0)<<8|(d[(t&n)>>0]|0))>>>0?(u=f+52|0,(l+h|0)>>>0<=(c[((c[(u&p)>>2]|0)&p)+36>>2]|0)>>>0):0){h=Cq(f,l&65535,h&65535)|0;if(h){c[(k&p)>>2]=h;break}h=f+18|0;l=(b[(h&o)>>1]|0)+-1<<16>>16;b[(h&o)>>1]=l;if(!(l<<16>>16)){k=v+(r+1)|0;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;a[(v+r&n)+7>>0]=0;a[(s&n)>>0]=(c[((c[(u&p)>>2]|0)&p)+36>>2]|0)>>>8;a[(t&n)>>0]=c[((c[(u&p)>>2]|0)&p)+36>>2];b[(f&o)+16>>1]=(c[((c[(u&p)>>2]|0)&p)+36>>2]|0)+65528-(d[(q&n)>>0]|0)-(d[(f&n)+7>>0]|0);break}else{lw(y|0,x+(w+2)|0,(l&65535)-g<<1|0)|0;a[(v+r&n)+3>>0]=(e[(h&o)>>1]|0)>>>8;a[(v+r&n)+4>>0]=b[(h&o)>>1];v=f+16|0;b[(v&o)>>1]=(e[(v&o)>>1]|0)+2;break}}c[(m&p)>>2]=58991;c[(m&p)+4>>2]=10788;bd(11,13600,m);c[(k&p)>>2]=11}while(0);i=z;return}function Jp(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();s=G;C=G+12|0;y=G+8|0;a:do if(!(c[(q&p)>>2]|0)){r=f+1|0;if((a[(r&n)>>0]|0)==0?(E=k+2|0,F=f+16|0,(E|0)<=(e[(F&o)>>1]|0)):0){l=Gg(c[(f&p)+68>>2]|0)|0;if(l){c[(q&p)>>2]=l;break}z=c[(f&p)+56>>2]|0;t=e[(f&o)+14>>1]|0;A=f+18|0;B=e[(A&o)>>1]<<1;v=g<<1;w=t+v|0;x=f+6|0;l=d[(x&n)>>0]|0;c[(C&p)>>2]=0;g=B+t|0;t=z+(l+5)|0;u=z+(l+6)|0;r=((d[(t&n)>>0]<<8|d[(u&n)>>0])+65535&65535)+1|0;b:do if((g|0)>(r|0)){c[(s&p)>>2]=54326;c[(s&p)+4>>2]=10788;bd(11,13600,s);l=11}else{s=g+2|0;do if((s|0)<=(r|0)){if((a[(z+l&n)+1>>0]|0)==0?(a[(z+l&n)+2>>0]|0)==0:0){D=20;break}c[(y&p)>>2]=0;g=Dq(f,k,C,y)|0;l=c[(C&p)>>2]|0;if(l)break b;if(!(c[(y&p)>>2]|0))if(!g)D=20;else r=g-z|0;else D=21}else D=20;while(0);if((D|0)==20)if((s+k|0)>(r|0))D=21;else D=23;if((D|0)==21){l=Eq(f)|0;c[(C&p)>>2]=l;if(l)break;r=((d[(t&n)>>0]<<8|d[(u&n)>>0])+65535&65535)+1|0;D=23}if((D|0)==23){r=r-k|0;a[(t&n)>>0]=r>>>8;a[(u&n)>>0]=r}b[(A&o)>>1]=(b[(A&o)>>1]|0)+1<<16>>16;b[(F&o)>>1]=(e[(F&o)>>1]|0)-E;l=z+r|0;kw(l|0,h|0,k|0)|0;if(m){a[(l&n)>>0]=m>>>24;a[(z+r&n)+1>>0]=m>>>16;a[(z+r&n)+2>>0]=m>>>8;a[(z+r&n)+3>>0]=m}m=z+w|0;lw(z+(w+2)|0,m|0,B-v|0)|0;a[(m&n)>>0]=r>>>8;a[(z+w&n)+1>>0]=r;a[(z+(d[(x&n)>>0]|0)&n)+3>>0]=(e[(A&o)>>1]|0)>>>8;a[(z+(d[(x&n)>>0]|0)&n)+4>>0]=b[(A&o)>>1];if(!(a[((c[(f&p)+52>>2]|0)&n)+17>>0]|0))break a;Fq(f,h,q);break a}while(0);c[(q&p)>>2]=l;break}if(!l)l=h;else kw(l|0,h|0,k|0)|0;if(m){a[(l&n)>>0]=m>>>24;a[(l&n)+1>>0]=m>>>16;a[(l&n)+2>>0]=m>>>8;a[(l&n)+3>>0]=m}q=a[(r&n)>>0]|0;a[(r&n)>>0]=q+1<<24>>24;q=q&255;c[(f+(q<<2)&p)+32>>2]=l;b[(f+(q<<1)&o)+22>>1]=g}while(0);i=G;return}function Kp(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=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,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;Ra=i;i=i+240|0;if((i|0)>=(j|0))fa();Qa=Ra+24|0;Na=Ra+200|0;Da=Ra+188|0;Ca=Ra+168|0;Ba=Ra+160|0;Ea=Ra+136|0;Fa=Ra+116|0;Pa=Ra+96|0;Ka=Ra+92|0;Aa=Ra+229|0;za=Ra+72|0;ya=Ra+52|0;xa=Ra+206|0;Ja=Ra+48|0;Ga=Ra;Ia=Ra+44|0;Ma=Ra+40|0;La=Ra+36|0;Ha=Ra+32|0;Oa=Ra+204|0;wa=Ra+216|0;ha=f+4|0;pa=(c[((c[(ha&p)>>2]|0)&p)+36>>2]<<1>>>0)/3|0;qa=f+76|0;ta=f+74|0;ua=wa+4|0;va=wa;ia=f+124|0;na=f+78|0;oa=f+80|0;l=b[(qa&o)>>1]|0;ga=0;while(1){m=l<<16>>16;q=c[(f+(m<<2)&p)+120>>2]|0;r=q+1|0;h=(a[(r&n)>>0]|0)==0;if(!(l<<16>>16)){if(h){h=ga;g=0;break}c[(Na&p)>>2]=0;c[(Da&p)>>2]=0;k=c[(q&p)+52>>2]|0;g=Gg(c[(q&p)+68>>2]|0)|0;c[(Qa&p)>>2]=g;do if(!g){h=q+72|0;c[(Qa&p)>>2]=ip(k,Na,Da,c[(h&p)>>2]|0,0)|0;l=c[(Na&p)>>2]|0;Gq(q,l,Qa);if(a[(k&n)+17>>0]|0)zp(k,c[(Da&p)>>2]|0,5,c[(h&p)>>2]|0,Qa);g=c[(Qa&p)>>2]|0;if(!g){kw(l+22|0,q+22|0,d[(r&n)>>0]<<1|0)|0;kw(l+32|0,q+32|0,d[(r&n)>>0]<<2|0)|0;a[(l&n)+1>>0]=a[(r&n)>>0]|0;pl(q,d[(c[(l&p)+56>>2]&n)>>0]&247);g=d[(q&n)+6>>0]|0;ca=c[(q&p)+56>>2]|0;ba=c[(Da&p)>>2]|0;a[(ca+g&n)+8>>0]=ba>>>24;a[(ca+g&n)+9>>0]=ba>>>16;a[(ca+g&n)+10>>0]=ba>>>8;a[(ca+g&n)+11>>0]=ba;c[(ia&p)>>2]=l;g=0;break}c[(ia&p)>>2]=0;if(l)Bg(c[(l&p)+68>>2]|0)}else c[(ia&p)>>2]=0;while(0);if(g){h=ga;break}b[(qa&o)>>1]=1;b[(na&o)>>1]=0;b[(oa&o)>>1]=0;l=c[(ia&p)>>2]|0;k=l+1|0;if(!(a[(k&n)>>0]|0)){h=1;m=1;ea=15}else{s=1;m=1;r=k}}else if(h){h=l;l=q;k=r;ea=15}else{s=l;l=q}if((ea|0)==15){ea=0;if((e[(l&o)+16>>1]|0)>>>0>pa>>>0){s=h;r=k}else{h=ga;g=0;break}}k=m+-1|0;da=c[(f+(k<<2)&p)+120>>2]|0;k=b[(f+(k<<1)&o)+78>>1]|0;t=k&65535;g=Gg(c[(da&p)+68>>2]|0)|0;do if(!g){if(((((a[(l&n)+3>>0]|0)!=0?(a[(r&n)>>0]|0)==1:0)?(ja=b[(l&o)+22>>1]|0,ka=l+18|0,ja<<16>>16==(b[(ka&o)>>1]|0)):0)?(la=da+72|0,(c[(la&p)>>2]|0)!=1):0)?(ma=da+18|0,(b[(ma&o)>>1]|0)==k<<16>>16):0){k=c[(l&p)+52>>2]|0;if(!(ja<<16>>16)){c[(Qa&p)>>2]=59423;c[(Qa&p)+4>>2]=10788;bd(11,13600,Qa);h=ga;g=11;break}ca=ip(k,Ia,La,0,0)|0;c[(Ma&p)>>2]=ca;if(!ca){h=c[(l&p)+32>>2]|0;c[(Ha&p)>>2]=h;g=Lp(l,h)|0;b[(Oa&o)>>1]=g;m=c[(Ia&p)>>2]|0;pl(m,13);Hq(m,1,Ha,Oa);b[(m&o)+16>>1]=65534-(g&65535)+(c[(k&p)+36>>2]|0)-(e[(m&o)+14>>1]|0);if((a[(k&n)+17>>0]|0)!=0?(zp(k,c[(La&p)>>2]|0,5,c[(la&p)>>2]|0,Ma),(g&65535)>(e[(m&o)+12>>1]|0)):0)Fq(m,h,Ma);ca=c[(l&p)+56>>2]|0;k=e[(ka&o)>>1]<<1;h=c[(l&p)+64>>2]|0;k=(d[(h+k+-2&n)>>0]<<8|d[(h+k+-1&n)>>0])&e[(l&o)+20>>1];h=ca+k|0;c[(Ha&p)>>2]=h;k=ca+(k+9)|0;while(1){g=h+1|0;if((a[(h&n)>>0]|0)<0&g>>>0<k>>>0)h=g;else break}c[(Ha&p)>>2]=g;k=h+10|0;m=ua;while(1){c[(Ha&p)>>2]=g+1;ca=a[(g&n)>>0]|0;h=m+1|0;a[(m&n)>>0]=ca;g=c[(Ha&p)>>2]|0;if(!(ca<<24>>24<0&g>>>0<k>>>0))break;else m=h}Jp(da,e[(ma&o)>>1]|0,wa,h-va|0,0,c[(l&p)+72>>2]|0,Ma);h=d[(da&n)+6>>0]|0;ca=c[(da&p)+56>>2]|0;ba=c[(La&p)>>2]|0;a[(ca+h&n)+8>>0]=ba>>>24;a[(ca+h&n)+9>>0]=ba>>>16;a[(ca+h&n)+10>>0]=ba>>>8;a[(ca+h&n)+11>>0]=ba;h=c[(Ia&p)>>2]|0;if(h)Bg(c[(h&p)+68>>2]|0)}h=ga;g=c[(Ma&p)>>2]|0;break}h=Go(c[((c[(ha&p)>>2]|0)&p)+32>>2]|0)|0;_=s<<16>>16==1;q=d[(ta&n)>>0]|0;N=q&1;c[(Na&p)>>2]=0;a[(Aa&n)>>0]=0;a[(Aa&n)+1>>0]=0;a[(Aa&n)+2>>0]=0;a[(Aa&n)+3>>0]=0;a[(Aa&n)+4>>0]=0;aa=c[(da&p)+52>>2]|0;if(!h)g=7;else{E=da+1|0;s=d[(E&n)>>0]|0;$=da+18|0;g=e[($&o)>>1]|0;m=g+s|0;if((m|0)<2){ba=m;W=0}else{do if(k<<16>>16)if((m|0)==(t|0)){q=(q|-2)+t|0;break}else{q=t+-1|0;break}else q=0;while(0);ba=2-N|0;W=q}ca=ba+1|0;q=W-s+ba|0;D=da+56|0;s=c[(D&p)>>2]|0;if((q|0)==(g|0))t=(d[(da&n)+6>>0]|0)+8|0;else{t=q<<1;Z=c[(da&p)+64>>2]|0;t=(d[(Z+t&n)>>0]<<8|d[(Z+(t|1)&n)>>0])&e[(da&o)+20>>1]}T=s+t|0;R=s+(t+1)|0;S=s+(t+2)|0;G=s+(t+3)|0;Z=d[(R&n)>>0]<<16|d[(T&n)>>0]<<24|d[(S&n)>>0]<<8|d[(G&n)>>0];c[(Ka&p)>>2]=Z;t=Da+(ba<<2)|0;Z=vp(aa,Z,t,0)|0;c[(Na&p)>>2]=Z;a:do if(!Z){w=da+22|0;z=da+32|0;A=da+20|0;B=da+64|0;C=aa+22|0;Q=aa+36|0;x=ba;s=0;while(1){k=c[(t&p)>>2]|0;s=s+1+(e[(k&o)+18>>1]|0)+(d[(k&n)+1>>0]|0)|0;k=x+-1|0;if(!x)break;y=k+W|0;t=a[(E&n)>>0]|0;if((y|0)==(e[(w&o)>>1]|0))if(!(t<<24>>24)){t=0;ea=52}else{Z=c[(z&p)>>2]|0;c[(Ba+(k<<2)&p)>>2]=Z;q=d[(Z&n)+1>>0]<<16|d[(Z&n)>>0]<<24|d[(Z&n)+2>>0]<<8|d[(Z&n)+3>>0];c[(Ka&p)>>2]=q;c[(Pa+(k<<2)&p)>>2]=(Lp(da,Z)|0)&65535;a[(E&n)>>0]=0}else ea=52;if((ea|0)==52){ea=0;q=c[(D&p)>>2]|0;u=y-(t&255)<<1;m=c[(B&p)>>2]|0;u=(d[(m+u&n)>>0]<<8|d[(m+(u|1)&n)>>0])&e[(A&o)>>1];m=q+u|0;g=Ba+(k<<2)|0;c[(g&p)>>2]=m;q=d[(q+u&n)+1>>0]<<16|d[(m&n)>>0]<<24|d[(q+u&n)+2>>0]<<8|d[(q+u&n)+3>>0];c[(Ka&p)>>2]=q;v=(Lp(da,m)|0)&65535;c[(Pa+(k<<2)&p)>>2]=v;if(b[(C&o)>>1]&4){if((v+u|0)>(c[(Q&p)>>2]|0)){k=x;ea=54;break}kw(h+u|0,m|0,v|0)|0;c[(g&p)>>2]=h+(m-(c[(D&p)>>2]|0));t=a[(E&n)>>0]|0}Ip(da,y-(t&255)|0,v,Na)}t=Da+(k<<2)|0;Z=vp(aa,q,t,0)|0;c[(Na&p)>>2]=Z;if(Z){ea=47;break a}else x=k}if((ea|0)==54){ea=0;c[(Qa&p)>>2]=59766;c[(Qa&p)+4>>2]=10788;bd(11,13600,Qa);c[(Na&p)>>2]=11;fw(Da|0,0,k<<2|0)|0;m=0;q=0;break}t=s+3&-4;Z=gi((c[(aa&p)+32>>2]|0)+(t*6|0)|0)|0;if(!Z){c[(Na&p)>>2]=7;m=Z;q=0;break}X=Z+(t<<2)|0;J=X+(t<<1)|0;M=c[(Da&p)>>2]|0;U=d[(M&n)+5>>0]<<2;Y=U&65535;V=a[(M&n)+3>>0]|0;F=V&255;if((ba|0)>-1){I=V<<24>>24!=0;K=M;q=0;L=0;s=0;while(1){H=e[(K&o)+18>>1]|0;P=a[(K&n)+1>>0]|0;D=P&255;E=D+H|0;if(!(P<<24>>24)){g=c[(K&p)+56>>2]|0;if((E|0)>0){y=e[(K&o)+20>>1]|0;x=e[(K&o)+14>>1]|0;w=0;v=s;while(1){P=(w<<1)+x|0;P=g+((d[(g+P&n)>>0]<<8|d[(g+P&n)+1>>0])&y)|0;c[(Z+(v<<2)&p)>>2]=P;b[(X+(v<<1)&o)>>1]=Lp(K,P)|0;w=w+1|0;if((w|0)==(H|0))break;else v=v+1|0}s=H+s|0}}else if((E|0)>0){z=K+56|0;x=K+20|0;w=K+64|0;v=0;g=s;while(1){y=v;C=D;b:while(1){while(1){A=C+-1|0;if((C|0)<=0){ea=72;break b}C=e[(K+(A<<1)&o)+22>>1]|0;if((C|0)>(y|0))C=A;else{B=C;C=A;break}}if((B|0)==(y|0)){ea=71;break}else y=y+-1|0}if((ea|0)==71){ea=0;y=c[(K+(C<<2)&p)+32>>2]|0}else if((ea|0)==72){ea=0;y=y<<1;P=c[(w&p)>>2]|0;y=(c[(z&p)>>2]|0)+((d[(P+y&n)>>0]<<8|d[(P+(y|1)&n)>>0])&e[(x&o)>>1])|0}c[(Z+(g<<2)&p)>>2]=y;b[(X+(g<<1)&o)>>1]=Lp(K,y)|0;v=v+1|0;if((v|0)==(E|0))break;else g=g+1|0}s=H+s+D|0}c[(Fa+(q<<2)&p)>>2]=s;if((q|0)>=(ba|0)|I)t=L;else{k=c[(Pa+(q<<2)&p)>>2]|0;u=X+(s<<1)|0;b[(u&o)>>1]=k;k=k&65535;t=k+L|0;kw(J+L|0,c[(Ba+(q<<2)&p)>>2]|0,k|0)|0;k=Z+(s<<2)|0;c[(k&p)>>2]=J+(L+U);m=(e[(u&o)>>1]|0)-U|0;b[(u&o)>>1]=m;do if(!(a[(K&n)+5>>0]|0)){P=c[(k&p)>>2]|0;O=(c[(K&p)+56>>2]|0)+8|0;O=d[(O&n)>>0]|d[(O&n)+1>>0]<<8|d[(O&n)+2>>0]<<16|d[(O&n)+3>>0]<<24;a[(P&n)>>0]=O;a[(P&n)+1>>0]=O>>8;a[(P&n)+2>>0]=O>>16;a[(P&n)+3>>0]=O>>24}else{if((m&65532)>>>0>=4)break;a[(J+t&n)>>0]=0;b[(u&o)>>1]=4;t=t+1|0}while(0);s=s+1|0}q=q+1|0;if((q|0)>=(ca|0))break;K=c[(Da+(q<<2)&p)>>2]|0;L=t}t=U+-12+(c[(Q&p)>>2]|0)|0;if((s|0)>0){u=I<<31>>31;m=0;k=0;q=0;do{g=q+2+(e[(X+(m<<1)&o)>>1]|0)|0;if((g|0)>(t|0)){c[(Pa+(k<<2)&p)>>2]=q;c[(Ea+(k<<2)&p)>>2]=m;if((k|0)>3){ea=91;break}else{m=m+u|0;k=k+1|0;q=0}}else q=g;m=m+1|0}while((m|0)<(s|0));if((ea|0)==91){ea=0;c[(Qa&p)>>2]=59904;c[(Qa&p)+4>>2]=10788;bd(11,13600,Qa);c[(Na&p)>>2]=11;m=Z;q=0;break}c[(Pa+(k<<2)&p)>>2]=q;c[(Ea+(k<<2)&p)>>2]=s;if((k|0)>0){E=(N|0)==0;m=k;do{v=Pa+(m<<2)|0;m=m+-1|0;g=Pa+(m<<2)|0;w=Ea+(m<<2)|0;A=c[(w&p)>>2]|0;D=c[(g&p)>>2]|0;u=q;while(1){z=A+-1|0;y=A-F|0;if(u){if(!E){q=D;break}B=b[(X+(y<<1)&o)>>1]|0;C=u+2|0;y=b[(X+(z<<1)&o)>>1]|0;x=D+-2|0;if(((B&65535)+C|0)>(x-(y&65535)|0)){q=D;break}}else{x=D+-2|0;C=2;B=b[(X+(y<<1)&o)>>1]|0;y=b[(X+(z<<1)&o)>>1]|0}c[(w&p)>>2]=z;A=z;D=x-(y&65535)|0;u=(B&65535)+C|0}c[(v&p)>>2]=u;c[(g&p)>>2]=q}while((m|0)>0);L=1;P=t;O=s}else{L=1;P=t;O=s}}else ea=93}else{t=U+-12+(c[(Q&p)>>2]|0)|0;s=0;ea=93}if((ea|0)==93){ea=0;c[(Pa&p)>>2]=0;c[(Ea&p)>>2]=s;L=0;P=t;k=0;O=s}if((c[(M&p)+72>>2]|0)>>>0<2){c[(Qa&p)>>2]=59963;c[(Qa&p)+4>>2]=10788;bd(11,13600,Qa);c[(Na&p)>>2]=11;m=Z;q=0;break}H=d[(c[(M&p)+56>>2]&n)>>0]|0;if((k|0)>-1){v=(N|0)!=0;g=aa+17|0;m=da+72|0;x=0;q=0;while(1){do if((x|0)<(ca|0)){M=Da+(x<<2)|0;N=c[(M&p)>>2]|0;c[(Ca+(x<<2)&p)>>2]=N;c[(Ja&p)>>2]=N;c[(M&p)>>2]=0;N=Gg(c[(N&p)+68>>2]|0)|0;c[(Na&p)>>2]=N;q=q+1|0;if(N){m=Z;break a}}else{N=ip(aa,Ja,Ka,v?1:c[(Ka&p)>>2]|0,0)|0;c[(Na&p)>>2]=N;if(N){m=Z;break a}t=c[(Ja&p)>>2]|0;pl(t,H);c[(Ca+(x<<2)&p)>>2]=t;q=q+1|0;c[(Fa+(x<<2)&p)>>2]=O;if(!(a[(g&n)>>0]|0))break;zp(aa,c[(t&p)+72>>2]|0,5,c[(m&p)>>2]|0,Na);if(c[(Na&p)>>2]|0){m=Z;break a}}while(0);if((x|0)<(k|0))x=x+1|0;else break}if((q|0)>0){s=0;c:do{N=c[(Ca+(s<<2)&p)>>2]|0;t=c[(N&p)+72>>2]|0;c[(za+(s<<2)&p)>>2]=t;c[(ya+(s<<2)&p)>>2]=t;b[(xa+(s<<1)&o)>>1]=b[((c[(N&p)+68>>2]|0)&o)+24>>1]|0;if((s|0)>0){m=0;do{if((c[(za+(m<<2)&p)>>2]|0)==(t|0)){ea=118;break c}m=m+1|0}while((m|0)<(s|0))}s=s+1|0}while((s|0)<(q|0));if((ea|0)==118){ea=0;c[(Qa&p)>>2]=60018;c[(Qa&p)+4>>2]=10788;bd(11,13600,Qa);c[(Na&p)>>2]=11;m=Z;break}u=(q|0)>1;m=aa+44|0;k=0;do{if(u){s=0;t=1;do{s=(c[(ya+(t<<2)&p)>>2]|0)>>>0<(c[(ya+(s<<2)&p)>>2]|0)>>>0?t:s;t=t+1|0}while((t|0)!=(q|0))}else s=0;N=ya+(s<<2)|0;t=c[(N&p)>>2]|0;c[(N&p)>>2]=-1;if((s|0)!=(k|0)){if((s|0)>(k|0)){M=c[((c[(Ca+(s<<2)&p)>>2]|0)&p)+68>>2]|0;N=s+1+(c[(m&p)>>2]|0)|0;b[(M&o)+24>>1]=0;Zp(M,N)}N=c[(Ca+(k<<2)&p)>>2]|0;M=c[(N&p)+68>>2]|0;b[(M&o)+24>>1]=b[(xa+(s<<1)&o)>>1]|0;Zp(M,t);c[(N&p)+72>>2]=t}k=k+1|0}while((k|0)!=(q|0));c[(Ka&p)>>2]=t;N=0}else N=1}else{N=1;q=0}K=q+-1|0;t=c[(Ca+(K<<2)&p)>>2]|0;M=c[(t&p)+72>>2]|0;a[(T&n)>>0]=M>>>24;a[(R&n)>>0]=M>>>16;a[(S&n)>>0]=M>>>8;a[(G&n)>>0]=M;if(!((H&8|0)!=0|(ca|0)==(q|0))){T=(c[(t&p)+56>>2]|0)+8|0;S=(c[((c[(((q|0)>(ca|0)?Ca:Da)+(ba<<2)&p)>>2]|0)&p)+56>>2]|0)+8|0;S=d[(S&n)>>0]|d[(S&n)+1>>0]<<8|d[(S&n)+2>>0]<<16|d[(S&n)+3>>0]<<24;a[(T&n)>>0]=S;a[(T&n)+1>>0]=S>>8;a[(T&n)+2>>0]=S>>16;a[(T&n)+3>>0]=S>>24}M=aa+17|0;if((a[(M&n)>>0]|0)!=0?(ra=c[(Ca&p)>>2]|0,sa=c[(Q&p)>>2]|0,L):0){D=V<<24>>24==0;B=D&1;A=Y<<16>>16==0;y=c[(ra&p)+56>>2]|0;x=(e[(ra&o)+18>>1]|0)+(d[(ra&n)+1>>0]|0)|0;z=0;w=0;s=0;u=ra;while(1){C=c[(Z+(z<<2)&p)>>2]|0;if((z|0)==(x|0)){s=s+1|0;if((s|0)<(q|0))t=Ca+(s<<2)|0;else t=Da+(s<<2)|0;x=c[(t&p)>>2]|0;y=c[(x&p)+56>>2]|0;x=z+B+(e[(x&o)+18>>1]|0)+(d[(x&n)+1>>0]|0)|0}if((z|0)==(c[(Ea+(w<<2)&p)>>2]|0)){t=w+1|0;u=c[(Ca+(t<<2)&p)>>2]|0;if(!D)ea=142}else{t=w;ea=142}do if((ea|0)==142){ea=0;if((s|0)<(q|0)?(C>>>0>=y>>>0?(c[(u&p)+72>>2]|0)==(c[(za+(s<<2)&p)>>2]|0):0)&C>>>0<(y+sa|0)>>>0:0)break;if(A)zp(aa,d[(C&n)+1>>0]<<16|d[(C&n)>>0]<<24|d[(C&n)+2>>0]<<8|d[(C&n)+3>>0],5,c[(u&p)+72>>2]|0,Na);if((e[(X+(z<<1)&o)>>1]|0)<=(e[(u&o)+12>>1]|0))break;Fq(u,C,Na)}while(0);z=z+1|0;if((z|0)==(O|0))break;else w=t}}if((K|0)>0){v=V<<24>>24==0;x=0;y=0;while(1){w=c[(Ca+(x<<2)&p)>>2]|0;s=c[(Ea+(x<<2)&p)>>2]|0;m=c[(Z+(s<<2)&p)>>2]|0;k=b[(X+(s<<1)&o)>>1]|0;t=(k&65535)+U|0;u=h+y|0;do if(!(a[(w&n)+5>>0]|0)){s=(c[(w&p)+56>>2]|0)+8|0;T=d[(m&n)>>0]|d[(m&n)+1>>0]<<8|d[(m&n)+2>>0]<<16|d[(m&n)+3>>0]<<24;a[(s&n)>>0]=T;a[(s&n)+1>>0]=T>>8;a[(s&n)+2>>0]=T>>16;a[(s&n)+3>>0]=T>>24;s=u}else{if(!v){rp(w,c[(Z+(s+-1<<2)&p)>>2]|0,Ga);t=Ga;m=u;s=0;t=(pm(h+(y+4)|0,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0)|0)+4|0;break}g=m+-4|0;if(k<<16>>16!=4){m=g;s=u;break}m=g;s=u;t=(Lp(da,g)|0)&65535}while(0);Jp(da,x+W|0,m,t,s,c[(w&p)+72>>2]|0,Na);if(c[(Na&p)>>2]|0){m=Z;break a}x=x+1|0;if((x|0)>=(K|0))break;else y=t+y|0}}t=1-q|0;if((t|0)<(q|0)){L=c[(Ea&p)>>2]|0;K=V<<24>>24==0&1;do{I=(t|0)<0?0-t|0:t;J=Aa+I|0;do if(!(a[(J&n)>>0]|0)){if((t|0)<=-1?(W=I+-1|0,(c[(Fa+(W<<2)&p)>>2]|0)<(c[(Ea+(W<<2)&p)>>2]|0)):0)break;if(!I){H=0;m=0;G=L}else{s=I+-1|0;if((I|0)<(ca|0))m=(c[(Fa+(s<<2)&p)>>2]|0)+K|0;else m=O;G=(c[(Ea+(s<<2)&p)>>2]|0)+K|0;H=G;G=(c[(Ea+(I<<2)&p)>>2]|0)-G|0}E=c[(Ca+(I<<2)&p)>>2]|0;v=c[(E&p)+56>>2]|0;g=d[(E&n)+6>>0]|0;k=E+64|0;s=(c[(k&p)>>2]|0)+(G<<1)|0;u=E+18|0;y=e[(u&o)>>1]|0;F=E+1|0;x=y+m+(d[(F&n)>>0]|0)|0;w=G+H|0;if((m|0)<(H|0)){W=Iq(E,H-m|0,Z+(m<<2)|0,X+(m<<1)|0)|0;V=c[(k&p)>>2]|0;lw(V|0,V+(W<<1)|0,y<<1|0)|0;y=y-W|0}if((x|0)>(w|0))y=y-(Iq(E,x-w|0,Z+(w<<2)|0,X+(w<<1)|0)|0)|0;A=v+(g+5)|0;z=v+(g+6)|0;W=v+(((d[(A&n)>>0]<<8|d[(z&n)>>0])+65535&65535)+1)|0;c[(Qa&p)>>2]=W;d:do if(W>>>0<s>>>0)ea=181;else{if((H|0)<(m|0)){x=m-H|0;x=(x|0)>(G|0)?G:x;W=c[(k&p)>>2]|0;lw(W+(x<<1)|0,W|0,y<<1|0)|0;if(Jq(E,s,Qa,W,x,Z+(H<<2)|0,X+(H<<1)|0)|0){ea=181;break}y=y+x|0}x=a[(F&n)>>0]|0;if(x<<24>>24){D=0;do{C=(e[(E+(D<<1)&o)+22>>1]|0)+m|0;B=C-H|0;if((B|0)>-1&(B|0)<(G|0)){V=B<<1;U=c[(k&p)>>2]|0;W=U+V|0;lw(U+(V+2)|0,W|0,y-B<<1|0)|0;if(Jq(E,s,Qa,W,1,Z+(C<<2)|0,X+(C<<1)|0)|0){ea=181;break d}x=a[(F&n)>>0]|0;y=y+1|0}D=D+1|0}while((D|0)<(x&255|0))}W=y+H|0;if(Jq(E,s,Qa,(c[(k&p)>>2]|0)+(y<<1)|0,G-y|0,Z+(W<<2)|0,X+(W<<1)|0)|0){ea=181;break}W=G&65535;b[(u&o)>>1]=W;a[(F&n)>>0]=0;a[(v+g&n)+3>>0]=(W&65535)>>>8;a[(v+g&n)+4>>0]=b[(u&o)>>1];W=(c[(Qa&p)>>2]|0)-v|0;a[(A&n)>>0]=W>>>8;a[(z&n)>>0]=W}while(0);if((ea|0)==181){ea=0;Hq(E,G,Z+(H<<2)|0,X+(H<<1)|0)}a[(J&n)>>0]=1;b[(E&o)+16>>1]=P-(c[(Pa+(I<<2)&p)>>2]|0)}while(0);t=t+1|0}while((t|0)!=(q|0))}do if(_){if(b[($&o)>>1]|0){ea=191;break}m=c[(Ca&p)>>2]|0;if((d[(da&n)+6>>0]|0)>>>0>(e[(m&o)+16>>1]|0)>>>0){ea=191;break}c[(Na&p)>>2]=Eq(m)|0;Gq(m,da,Na);if(c[(Na&p)>>2]|0)break;c[(Na&p)>>2]=Ym(c[(m&p)+52>>2]|0,m,c[(m&p)+72>>2]|0)|0}else ea=191;while(0);do if((ea|0)==191){ea=0;if((a[(M&n)>>0]|0)==0|Y<<16>>16!=0|N)break;else m=0;do{$=c[(Ca+(m<<2)&p)>>2]|0;_=c[($&p)+56>>2]|0;zp(aa,d[(_&n)+9>>0]<<16|d[(_&n)+8>>0]<<24|d[(_&n)+10>>0]<<8|d[(_&n)+11>>0],5,c[($&p)+72>>2]|0,Na);m=m+1|0}while((m|0)!=(q|0))}while(0);if((q|0)>=(ca|0)){m=Z;break}m=c[(Na&p)>>2]|0;g=q;do{k=c[(Da+(g<<2)&p)>>2]|0;if(!m){m=Ym(c[(k&p)+52>>2]|0,k,c[(k&p)+72>>2]|0)|0;c[(Na&p)>>2]=m}g=g+1|0}while((g|0)!=(ca|0));m=Z}else{k=ba;ea=47}while(0);if((ea|0)==47){ea=0;fw(Da|0,0,(k<<2)+4|0)|0;m=0;q=0}hi(m);if((ba|0)>-1){k=0;do{m=c[(Da+(k<<2)&p)>>2]|0;if(m)Bg(c[(m&p)+68>>2]|0);k=k+1|0}while((k|0)<(ca|0))}if((q|0)>0){k=0;do{g=c[(Ca+(k<<2)&p)>>2]|0;if(g)Bg(c[(g&p)+68>>2]|0);k=k+1|0}while((k|0)!=(q|0))}g=c[(Na&p)>>2]|0}if(ga)$k(ga)}else h=ga;while(0);a[(r&n)>>0]=0;if(l)Bg(c[(l&p)+68>>2]|0);l=(b[(qa&o)>>1]|0)+-1<<16>>16;b[(qa&o)>>1]=l;if(g)break;else ga=h}if(h)$k(h);i=Ra;return g|0}function Lp(b,f){b=b|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=d[(b&n)+7>>0]|0;h=f+g|0;do if(!(a[(b&n)+4>>0]|0)){j=a[(h&n)>>0]|0;i=j&255;if(j<<24>>24<0){j=f+(g+9)|0;g=i&127;do{h=h+1|0;i=a[(h&n)>>0]|0;g=i&127|g<<7}while(i<<24>>24<0&h>>>0<j>>>0)}else g=i;i=h+1|0;if(a[(b&n)+2>>0]|0){k=h+10|0;j=i;while(1){i=h+2|0;if((a[(j&n)>>0]|0)<0&i>>>0<k>>>0){h=j;j=i}else break}}h=e[(b&o)+10>>1]|0;if(g>>>0>h>>>0){j=e[(b&o)+12>>1]|0;g=(((g-j|0)>>>0)%(((c[((c[(b&p)+52>>2]|0)&p)+36>>2]|0)+-4|0)>>>0)|0)+j|0;g=(i-f&65535)+4+(g>>>0>h>>>0?j:g)|0;break}else{g=i-f+g|0;g=g>>>0<4?4:g;break}}else{i=f+(g+9)|0;while(1){g=h+1|0;if((a[(h&n)>>0]|0)<0&g>>>0<i>>>0)h=g;else break}g=g-f|0}while(0);return g&65535|0}function Mp(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();s=u+4|0;r=u;q=u+8|0;c[(s&p)>>2]=0;if(a[(b&n)+17>>0]|0){h=((c[2514]|0)>>>0)/((c[(b&p)+32>>2]|0)>>>0)|0;m=b+36|0;o=e;while(1){l=o+1|0;if(l>>>0<2)k=0;else{k=o+-1|0;k=k-((k>>>0)%(((((c[(m&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(h|0)?3:2)+k|0}if((k|0)==(l|0)|(o|0)==(h|0))o=l;else break}if(l>>>0<=(c[(b&p)+44>>2]|0)>>>0){o=hp(b,l,q,r)|0;m=(o|0)==0;k=m&(a[(q&n)>>0]|0)==4&(c[(r&p)>>2]|0)==(e|0);l=k?l:0;if(k|m^1){h=0;k=k?101:o}else t=8}else{l=0;t=8}}else{l=0;t=8}if((t|0)==8){k=dl(b,e,s,(f|0)==0?2:0)|0;h=c[(s&p)>>2]|0;if(!k){l=c[(h&p)+56>>2]|0;l=d[(l&n)+1>>0]<<16|d[(l&n)>>0]<<24|d[(l&n)+2>>0]<<8|d[(l&n)+3>>0];k=0}}c[(g&p)>>2]=l;if(!f){if(h)Bg(c[(h&p)+68>>2]|0)}else c[(f&p)>>2]=h;i=u;return ((k|0)==101?0:k)|0}function Np(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;c[(h&p)>>2]=0;f=(b|0)!=0;a:do if(d)if(f){f=h;while(1){g=d+8|0;while(1){if((Wp(a,b+8|0,c[(b&p)>>2]|0,g,c[(d&p)>>2]|0)|0)>=1)break;c[(f&p)>>2]=b;f=b+4|0;b=c[(f&p)>>2]|0;if(!b){b=0;g=0;break a}else g=0}c[(f&p)>>2]=d;f=d+4|0;d=c[(f&p)>>2]|0;if(!d){d=0;g=1;break a}if(!b){b=0;g=0;break}}}else{g=f;f=h}else{d=0;g=f;f=h}while(0);c[(f&p)>>2]=g?b:d;c[(e&p)>>2]=c[(h&p)>>2];i=k;return}function Op(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g+8|0;e=g;d=c[2252]|0;if((d|0)!=0?(lc[d&127](202)|0)!=0:0)d=3338;else{d=mp(c[(a&p)>>2]|0,0,b,4126,f)|0;c[(f&p)>>2]=d;if(!d){d=e;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;d=c[(b&p)>>2]|0;ac[c[((c[(d&p)>>2]|0)&p)+40>>2]&63](d,18,e)|0;d=c[(f&p)>>2]|0}}i=g;return d|0}function Pp(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;g=b+0|0;h=g+40|0;do{c[(g&p)>>2]=0;g=g+4|0}while((g|0)<(h|0));g=((d|0)<0)<<31>>31;h=qg(d,g)|0;c[(b&p)+4>>2]=h;if(!h)c[(b&p)>>2]=7;else{h=rw(e|0,f|0,d|0,g|0)|0;c[(b&p)+12>>2]=h;c[(b&p)+16>>2]=h;h=dw(e|0,f|0,h|0,((h|0)<0)<<31>>31|0)|0;g=b+24|0;c[(g&p)>>2]=h;c[(g&p)+4>>2]=G;c[(b&p)+8>>2]=d;c[(b&p)+32>>2]=a}return}function Qp(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,l=0,m=0,n=0,o=0,q=0,r=0;a:do if((d|0)>0){f=a+8|0;h=a+16|0;i=a+4|0;j=a+32|0;k=a+12|0;l=a+24|0;m=d;do{if(c[(a&p)>>2]|0)break a;g=c[(h&p)>>2]|0;e=(c[(f&p)>>2]|0)-g|0;e=(m|0)>(e|0)?e:m;kw((c[(i&p)>>2]|0)+g|0,b+(d-m)|0,e|0)|0;g=(c[(h&p)>>2]|0)+e|0;c[(h&p)>>2]=g;if((g|0)==(c[(f&p)>>2]|0)){r=c[(j&p)>>2]|0;o=c[(k&p)>>2]|0;q=(c[(i&p)>>2]|0)+o|0;n=l;n=jw(c[(n&p)>>2]|0,c[(n&p)+4>>2]|0,o|0,((o|0)<0)<<31>>31|0)|0;c[(a&p)>>2]=tc[c[((c[(r&p)>>2]|0)&p)+12>>2]&31](r,q,g-o|0,n,G)|0;c[(h&p)>>2]=0;c[(k&p)>>2]=0;n=c[(f&p)>>2]|0;g=l;n=jw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,n|0,((n|0)<0)<<31>>31|0)|0;g=l;c[(g&p)>>2]=n;c[(g&p)+4>>2]=G}m=m-e|0}while((m|0)>0)}while(0);return}function Rp(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;f=a+4|0;if(((c[(a&p)>>2]|0)==0?(e=c[(f&p)>>2]|0,(e|0)!=0):0)?(d=c[(a&p)+16>>2]|0,g=c[(a&p)+12>>2]|0,(d|0)>(g|0)):0){i=c[(a&p)+32>>2]|0;h=a+24|0;h=jw(c[(h&p)>>2]|0,c[(h&p)+4>>2]|0,g|0,((g|0)<0)<<31>>31|0)|0;c[(a&p)>>2]=tc[c[((c[(i&p)>>2]|0)&p)+12>>2]&31](i,e+g|0,d-g|0,h,G)|0}e=a+24|0;d=c[(a&p)+16>>2]|0;e=jw(d|0,((d|0)<0)<<31>>31|0,c[(e&p)>>2]|0,c[(e&p)+4>>2]|0)|0;d=b;c[(d&p)>>2]=e;c[(d&p)+4>>2]=G;Wc(c[(f&p)>>2]|0);f=c[(a&p)>>2]|0;d=a+0|0;e=d+40|0;do{c[(d&p)>>2]=0;d=d+4|0}while((d|0)<(e|0));return f|0}function Sp(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;g=c[2252]|0;if((g|0)!=0?(lc[g&127](201)|0)!=0:0)g=266;else{h=b+44|0;if(c[(h&p)>>2]|0)c[(h&p)>>2]=0;n=b;c[(n&p)>>2]=e;c[(n&p)+4>>2]=f;n=d+8|0;l=c[(n&p)>>2]|0;n=c[(n&p)+4>>2]|0;j=b+8|0;k=j;c[(k&p)>>2]=l;c[(k&p)+4>>2]=n;d=c[(d&p)>>2]|0;k=b+24|0;c[(k&p)>>2]=d;a=a+8|0;g=c[(a&p)>>2]|0;i=c[((c[(g&p)+24>>2]|0)&p)+136>>2]|0;m=((i|0)<0)<<31>>31;if(!((n|0)>(m|0)|(n|0)==(m|0)&l>>>0>i>>>0)?(c[(c[(d&p)>>2]&p)>>2]|0)>2:0){c[(h&p)>>2]=0;g=c[(a&p)>>2]|0}i=c[(g&p)+12>>2]|0;d=((i|0)<0)<<31>>31;f=rw(e|0,f|0,i|0,d|0)|0;a=b+36|0;g=c[(a&p)>>2]|0;if(!g){g=qg(i,d)|0;c[(a&p)>>2]=g;c[(b&p)+40>>2]=i;e=g;g=(g|0)==0?7:0}else{e=g;g=0}if((g|0)==0&(f|0)!=0){g=i-f|0;i=b;h=c[(i&p)>>2]|0;i=c[(i&p)+4>>2]|0;b=jw(h|0,i|0,g|0,((g|0)<0)<<31>>31|0)|0;l=G;d=j;a=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if((l|0)>(d|0)|(l|0)==(d|0)&b>>>0>a>>>0)g=dw(a|0,d|0,h|0,i|0)|0;k=c[(k&p)>>2]|0;g=tc[c[((c[(k&p)>>2]|0)&p)+8>>2]&31](k,e+f|0,g,h,i)|0}}return g|0}function Tp(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();k=l+8|0;h=l;f=c[(b&p)+44>>2]|0;e=b;g=c[(e&p)>>2]|0;a:do if(!f){f=c[(b&p)+40>>2]|0;e=rw(g|0,c[(e&p)+4>>2]|0,f|0,((f|0)<0)<<31>>31|0)|0;if((e|0)!=0&(f-e|0)>8){f=(sp((c[(b&p)+36>>2]|0)+e|0,d)|0)&255;e=b;f=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,f|0,0)|0;e=b;c[(e&p)>>2]=f;c[(e&p)+4>>2]=G;e=0;break}else f=0;while(1){e=Kq(b,1,h)|0;if(e)break a;e=a[(c[(h&p)>>2]&n)>>0]|0;a[(k+(f&15)&n)>>0]=e;if(e<<24>>24<0)f=f+1|0;else break}sp(k,d)|0;e=0}else{f=(sp(f+g|0,d)|0)&255;e=b;f=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,f|0,0)|0;e=b;c[(e&p)>>2]=f;c[(e&p)+4>>2]=G;e=0}while(0);i=l;return e|0}function Up(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;d=g;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;d=a;f=c[(d&p)+4>>2]|0;b=a+8|0;e=c[(b&p)+4>>2]|0;do if((f|0)<(e|0)|((f|0)==(e|0)?(c[(d&p)>>2]|0)>>>0<(c[(b&p)>>2]|0)>>>0:0))h=9;else{d=c[(a&p)+48>>2]|0;if(d){b=Lq(d)|0;l=d+32|0;f=d+48|0;c[(l&p)>>2]=c[(f&p)>>2];c[(l&p)+4>>2]=c[(f&p)+4>>2];c[(l&p)+8>>2]=c[(f&p)+8>>2];c[(l&p)+12>>2]=c[(f&p)+12>>2];l=d+40|0;f=d+8|0;e=c[(f&p)>>2]|0;f=c[(f&p)+4>>2]|0;if((c[(l&p)>>2]|0)==(e|0)?(c[(l&p)+4>>2]|0)==(f|0):0)c[(d&p)+20>>2]=1;if(!b)if(!(c[(d&p)+20>>2]|0)){b=Sp(c[(d&p)>>2]|0,a,d+32|0,e,f)|0;if(!b){h=9;break}else break}else b=0}else b=0;Vp(a)}while(0);if((h|0)==9){b=Tp(a,g)|0;if(!b){b=c[(g&p)>>2]|0;c[(a&p)+20>>2]=b;b=Kq(a,b,a+32|0)|0}}i=k;return b|0}function Vp(a){a=a|0;var b=0;Wc(c[(a&p)+28>>2]|0);Wc(c[(a&p)+36>>2]|0);Sm(c[(a&p)+48>>2]|0);a=a+0|0;b=a+56|0;do{c[(a&p)>>2]=0;a=a+4|0}while((a|0)<(b|0));return}function Wp(a,b,d,e,f){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;var g=0;g=c[(a&p)+12>>2]|0;if(e)Gm(c[((c[(a&p)+8>>2]|0)&p)+28>>2]|0,f,e,g);return Km(d,b,g,0)|0}function Xp(f,g,h,k){f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;z=i;i=i+16|0;if((i|0)>=(j|0))fa();m=z;l=z+8|0;v=z+12|0;do if((c[(f&p)+44>>2]|0)>>>0>=g>>>0){g=vp(f,g,l,0)|0;if(!g){x=c[(l&p)>>2]|0;w=x+9|0;a:do if(!(a[(w&n)>>0]|0)){a[(w&n)>>0]=1;t=d[(x&n)+6>>0]|0;r=x+18|0;l=b[(r&o)>>1]|0;if(!(l<<16>>16)){l=l&65535;g=x+5|0}else{q=0;while(1){m=c[(x&p)+56>>2]|0;l=q<<1;g=c[(x&p)+64>>2]|0;l=(d[(g+l&n)>>0]<<8|d[(g+(l|1)&n)>>0])&e[(x&o)+20>>1];g=m+l|0;s=x+5|0;if((a[(s&n)>>0]|0)==0?(u=Xp(f,d[(m+l&n)+1>>0]<<16|d[(g&n)>>0]<<24|d[(m+l&n)+2>>0]<<8|d[(m+l&n)+3>>0],1,k)|0,(u|0)!=0):0){g=u;y=21;break a}g=Hp(x,g,v)|0;q=q+1|0;if(g){y=21;break a}l=e[(r&o)>>1]|0;if((q|0)>=(l|0)){g=s;break}}}if(!(a[(g&n)>>0]|0)){g=c[(x&p)+56>>2]|0;g=Xp(f,d[(g+t&n)+9>>0]<<16|d[(g+t&n)+8>>0]<<24|d[(g+t&n)+10>>0]<<8|d[(g+t&n)+11>>0],1,k)|0;if(!g)y=16}else if(!k)y=16;else{c[(k&p)>>2]=(c[(k&p)>>2]|0)+l;y=16}if((y|0)==16){if(h){g=Ym(c[(x&p)+52>>2]|0,x,c[(x&p)+72>>2]|0)|0;y=21;break}g=Gg(c[(x&p)+68>>2]|0)|0;if(!g){pl(x,d[((c[(x&p)+56>>2]|0)+t&n)>>0]|8);g=0;y=21;break}}a[(w&n)>>0]=0}else{c[(m&p)>>2]=60971;c[(m&p)+4>>2]=10788;bd(11,13600,m);g=11;y=21}while(0);if((y|0)==21){a[(w&n)>>0]=0;if(!x)break}Bg(c[(x&p)+68>>2]|0)}}else{c[(m&p)>>2]=60966;c[(m&p)+4>>2]=10788;bd(11,13600,m);g=11}while(0);i=z;return g|0}function Yp(b,d){b=b|0;d=d|0;var e=0,f=0;f=(c[(b&p)>>2]|0)+204|0;e=ac[c[8876>>2]&63](c[((c[(f&p)>>2]|0)&p)+40>>2]|0,d,0)|0;e=il(c[(f&p)>>2]|0,d,e)|0;if(!e)e=0;else{f=c[(e&p)+8>>2]|0;c[(f&p)+56>>2]=c[(e&p)+4>>2];c[(f&p)+68>>2]=e;c[(f&p)+52>>2]=b;c[(f&p)+72>>2]=d;a[(f&n)+6>>0]=(d|0)==1?100:0;e=f}return e|0}function Zp(a,d){a=a|0;d=d|0;var e=0;e=a+20|0;qc[c[8884>>2]&15](c[((c[(a&p)+28>>2]|0)&p)+40>>2]|0,c[(a&p)>>2]|0,c[(e&p)>>2]|0,d);c[(e&p)>>2]=d;if((b[(a&o)+24>>1]&6)==6)Qo(a,3);return}function _p(f){f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();x=y;u=c[(f&p)+52>>2]|0;v=a[(f&n)>>0]|0;w=c[(f&p)+72>>2]|0;t=$p(f)|0;c[(x&p)>>2]=t;if(!t){t=b[(f&o)+18>>1]|0;s=t&65535;if(!(t<<16>>16))g=f+5|0;else{h=f+56|0;k=f+20|0;l=f+64|0;g=f+5|0;t=0;do{m=c[(h&p)>>2]|0;q=t<<1;r=c[(l&p)>>2]|0;q=(d[(r+q&n)>>0]<<8|d[(r+(q|1)&n)>>0])&e[(k&o)>>1];r=m+q|0;Fq(f,r,x);if(!(a[(g&n)>>0]|0))zp(u,d[(m+q&n)+1>>0]<<16|d[(r&n)>>0]<<24|d[(m+q&n)+2>>0]<<8|d[(m+q&n)+3>>0],5,w,x);t=t+1|0}while((t|0)<(s|0))}if(!(a[(g&n)>>0]|0)){t=d[(f&n)+6>>0]|0;s=c[(f&p)+56>>2]|0;zp(u,d[(s+t&n)+9>>0]<<16|d[(s+t&n)+8>>0]<<24|d[(s+t&n)+10>>0]<<8|d[(s+t&n)+11>>0],5,w,x)}}a[(f&n)>>0]=v;i=y;return c[(x&p)>>2]|0}function $p(e){e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();x=y;a:do if(!(a[(e&n)>>0]|0)){f=c[(e&p)+52>>2]|0;u=c[(e&p)+56>>2]|0;l=d[(e&n)+6>>0]|0;if(Ro(e,d[(u+l&n)>>0]|0)|0){c[(x&p)>>2]=54562;c[(x&p)+4>>2]=10788;bd(11,13600,x);f=11;break}q=c[(f&p)+32>>2]|0;b[(e&o)+20>>1]=q+65535;a[(e&n)+1>>0]=0;t=c[(f&p)+36>>2]|0;f=l+8+(d[(e&n)+7>>0]|0)|0;b[(e&o)+14>>1]=f;c[(e&p)+60>>2]=u+t;f=f&65535;c[(e&p)+64>>2]=u+f;k=a[(u+l&n)+5>>0]|0;h=a[(u+l&n)+6>>0]|0;g=d[(u+l&n)+3>>0]<<8|d[(u+l&n)+4>>0];b[(e&o)+18>>1]=g;if(g>>>0>(((q+-8|0)>>>0)/6|0)>>>0){c[(x&p)>>2]=54579;c[(x&p)+4>>2]=10788;bd(11,13600,x);f=11;break}q=(g<<1)+f|0;m=t+-4|0;g=d[(u+l&n)+1>>0]<<8|d[(u+l&n)+2>>0];f=(((k&255)<<8|h&255)+65535&65535)+1+(d[(u+l&n)+7>>0]|0)|0;do if(g){while(1){if((g|0)<(q|0)|(g|0)>(m|0)){w=8;break}h=d[(u+g&n)>>0]<<8|d[(u+g&n)+1>>0];k=d[(u+g&n)+2>>0]<<8|d[(u+g&n)+3>>0];g=k+g|0;if(!h){r=k;s=g;v=f;w=12;break}if((h|0)<=(g+3|0)|(g|0)>(t|0))break;g=h;f=k+f|0}if((w|0)==8){c[(x&p)>>2]=54634;c[(x&p)+4>>2]=10788;bd(11,13600,x);f=11;break a}if((w|0)==12?(s|0)<=(t|0):0){f=r+v|0;break}c[(x&p)>>2]=54641;c[(x&p)+4>>2]=10788;bd(11,13600,x);f=11;break a}while(0);if((f|0)>(t|0)){c[(x&p)>>2]=54655;c[(x&p)+4>>2]=10788;bd(11,13600,x);f=11;break}else{b[(e&o)+16>>1]=f-q;a[(e&n)>>0]=1;f=0;break}}else f=0;while(0);i=y;return f|0}function aq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;f=c[(b&p)>>2]|0;g=f+65|0;if(!(a[(g&n)>>0]|0)){if((c[(f&p)+24>>2]&65536|0)==0?(h=b+4|0,m=c[(h&p)>>2]|0,c[(k&p)>>2]=(d|0)==0?13552:d,dh(m,f,13560,k),(e|0)!=0):0){d=c[(c[(h&p)>>2]&p)>>2]|0;c[(k&p)>>2]=d;c[(k&p)+4>>2]=e;f=Mq(f,d,0,k)|0;c[(c[(h&p)>>2]&p)>>2]=f}if(!(a[(g&n)>>0]|0)){c[(k&p)>>2]=105209;c[(k&p)+4>>2]=10788;bd(11,13600,k);f=11}else f=7}else f=7;c[(b&p)+12>>2]=f;i=l;return}function bq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();n=o;m=a+20|0;a:do if((c[(m&p)>>2]|0)>0){h=a+16|0;k=(d|0)==0;l=0;a=0;do{f=(l|0)<2^l;g=c[(h&p)>>2]|0;e=c[(g+(f<<4)&p)+12>>2]|0;if(!(!k?(dd(d,c[(g+(f<<4)&p)>>2]|0)|0)!=0:0)){a=bn(e+24|0,b,n)|0;if(a){a=c[(a&p)+8>>2]|0;if(a)break a}else a=0}l=l+1|0}while((l|0)<(c[(m&p)>>2]|0))}else a=0;while(0);i=o;return a|0}function cq(d){d=d|0;var f=0,g=0,h=0,i=0;i=c[(d&p)+8>>2]|0;h=d+46|0;g=b[(h&o)>>1]|0;g=(g&65535)>5?5:g&65535;f=b[((c[(d&p)+12>>2]|0)&o)+28>>1]|0;b[(i&o)>>1]=f<<16>>16<33?33:f;kw(i+2|0,13512,g<<1|0)|0;f=e[(h&o)>>1]|0;if(g>>>0<f>>>0)do{g=g+1|0;b[(i+(g<<1)&o)>>1]=23;f=e[(h&o)>>1]|0}while((g|0)<(f|0));if(a[(d&n)+50>>0]|0)b[(i+(f<<1)&o)>>1]=0;return}function dq(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0;s=i;i=i+64|0;if((i|0)>=(j|0))fa();q=s;a:do if((((g|0)!=0?(l=c[(g&p)>>2]|0,(l|0)!=0):0)?(r=g+8|0,(c[(r&p)>>2]|0)!=0):0)?(k=d+4|0,t=_h(c[(d&p)>>2]|0,l,c[(k&p)>>2]|0)|0,(t|0)!=0):0){h=c[(g&p)+4>>2]|0;b:do if(!h)m=11;else{if(!(dd(c[(g&p)>>2]|0,h)|0)){k=c[(t&p)+8>>2]|0;if(!k){m=11;break}while(1){l=a[(k&n)+51>>0]|0;if((l&3)==2)break;k=c[(k&p)+20>>2]|0;if(!k){m=11;break b}}h=c[(r&p)>>2]|0;f=k}else{f=bq(c[(d&p)>>2]|0,h,c[(k&p)>>2]|0)|0;k=c[(r&p)>>2]|0;if(!f)break;l=a[(f&n)+51>>0]|0;h=k}r=(e[(f&o)+46>>1]|0)+1|0;a[(f&n)+51>>0]=l&-5;k=f+8|0;Nq(h,r,c[(k&p)>>2]|0,f);if(c[(f&p)+36>>2]|0)break a;b[(t&o)+28>>1]=b[(c[(k&p)>>2]&o)>>1]|0;break a}while(0);if((m|0)==11)k=c[(r&p)>>2]|0;r=t+42|0;m=q+44|0;b[(m&o)>>1]=b[(r&o)>>1]|0;Nq(k,1,t+28|0,q);b[(r&o)>>1]=b[(m&o)>>1]|0}while(0);i=s;return 0}function eq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();k=l;do if(e){if((c[(b&p)+12>>2]|0)>>>0<e>>>0){c[(k&p)>>2]=e;fn(b,44408,k);f=1;break}g=(c[(b&p)+8>>2]|0)+(e>>>3)|0;h=d[(g&n)>>0]|0;f=1<<(e&7);if(!(h&f)){a[(g&n)>>0]=h|f;f=0;break}else{c[(k&p)>>2]=e;fn(b,44432,k);f=1;break}}else f=1;while(0);i=l;return f|0}function fq(a,b){a=a|0;b=b|0;var d=0,e=0;d=c[(a&p)>>2]|0;do if(d){if((b|0)==1){b=d+8|0;c[(a&p)>>2]=c[(b&p)>>2];c[(b&p)>>2]=0;c[(d&p)+12>>2]=0;break}b=b+-1|0;d=fq(a,b)|0;e=c[(a&p)>>2]|0;if(e){c[(e&p)+12>>2]=d;d=e+8|0;c[(a&p)>>2]=c[(d&p)>>2];c[(d&p)>>2]=fq(a,b)|0;return e|0}}else d=0;while(0);return d|0}function gq(b,d){b=b|0;d=d|0;var e=0;if((a[(b&n)+43>>0]|0)==2){e=b+24|0;if((c[(e&p)>>2]|0)>0){d=b+32|0;b=0;do{Wc(c[((c[(d&p)>>2]|0)+(b<<2)&p)>>2]|0);c[((c[(d&p)>>2]|0)+(b<<2)&p)>>2]=0;b=b+1|0}while((b|0)<(c[(e&p)>>2]|0))}}else{b=c[(b&p)+4>>2]|0;rc[c[((c[(b&p)>>2]|0)&p)+64>>2]&127](b,d)|0}return}function hq(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();b=Ng(b)|0;if(b)dh(c,a,Se(a)|0,d);i=d;return b|0}function iq(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;f=c[(a&p)>>2]|0;g=a+16|0;h=a+84|0;ch(c[(g&p)>>2]|0,(e[(h&o)>>1]|0)<<1);mg(f,c[(g&p)>>2]|0);b[(h&o)>>1]=d;h=d*80|0;f=mh(f,h,0)|0;if(f){fw(f|0,0,h|0)|0;c[(g&p)>>2]=f;if((d|0)>0){h=c[(a&p)>>2]|0;g=d<<1;while(1){g=g+-1|0;b[(f&o)+8>>1]=1;c[(f&p)+32>>2]=h;if((g|0)<=0)break;else f=f+40|0}}}else c[(g&p)>>2]=0;return}function jq(b,d,f,g,h){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;if(!(a[((c[(b&p)>>2]|0)&n)+65>>0]|0)){d=(ca(e[(b&o)+84>>1]|0,f)|0)+d|0;Xg((c[(b&p)+16>>2]|0)+(d*40|0)|0,g,-1,1,h)|0}return}function kq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;k=c[(d&p)>>2]|0;h=k+1|0;c[(d&p)>>2]=h;if((k|0)>98){f=d+8|0;h=c[(f&p)>>2]|0;c[(d&p)>>2]=k;do Pn(d);while((c[(d&p)>>2]|0)>-1);th(h,37160,l);c[(f&p)>>2]=h}else{b[(d+(h<<4)&o)+12>>1]=e;a[(d+(h<<4)&n)+14>>0]=f;f=d+(h<<4)+16|0;c[(f&p)>>2]=c[(g&p)>>2];c[(f&p)+4>>2]=c[(g&p)+4>>2];c[(f&p)+8>>2]=c[(g&p)+8>>2]}i=m;return}function lq(a,b,d){a=a|0;b=b|0;d=d|0;a=c[(a&p)+8>>2]|0;switch(b&255|0){case 228:case 221:case 220:case 210:case 209:case 208:case 205:case 203:case 200:case 188:case 179:{Nk(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 239:case 234:{Fk(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 236:{Hk(c[(a&p)>>2]|0,c[(d&p)+4>>2]|0);break}case 243:case 238:case 229:case 227:case 216:case 204:case 202:{Gk(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 175:case 174:{Gk(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 252:case 197:{Qn(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 223:case 219:case 217:{Hk(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 213:case 212:case 201:case 194:{Do(c[(a&p)>>2]|0,c[(d&p)>>2]|0);break}case 207:case 196:case 195:case 163:{Mk(c[(a&p)>>2]|0,c[(d&p)>>2]|0,1);break}default:{}}return}
|
|
function Cl(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();o=s;r=b+16|0;if((d[(r&n)>>0]|0)<2?(d[(b&n)+17>>0]|0)<2:0)g=0;else{cp(b);q=b+64|0;l=c[(q&p)>>2]|0;h=c[(l&p)>>2]|0;do if(!h)h=0;else{if((h|0)==14696){Gi(l,0,0)|0;c[(l&p)>>2]=0;h=0;break}k=a[(b&n)+5>>0]|0;if(k<<24>>24==3){k=b+72|0;o=k;if(!((c[(o&p)>>2]|0)==0&(c[(o&p)+4>>2]|0)==0)){h=ac[c[(h&p)+16>>2]&63](l,0,0)|0;if(!h)if(!(a[(b&n)+8>>0]|0))h=0;else{h=c[(q&p)>>2]|0;h=rc[c[((c[(h&p)>>2]|0)&p)+20>>2]&127](h,d[(b&n)+11>>0]|0)|0}}else h=0;q=k;c[(q&p)>>2]=0;c[(q&p)+4>>2]=0;break}else if(k<<24>>24!=1?(a[(b&n)+4>>0]|0)==0|k<<24>>24==5:0){q=(a[(b&n)+12>>0]|0)==0;lc[c[(h&p)+4>>2]&127](l)|0;c[(l&p)>>2]=0;if(!q){h=0;break}h=c[(b&p)>>2]|0;h=ac[c[(h&p)+28>>2]&63](h,c[(b&p)+172>>2]|0,0)|0;break}m=b+72|0;k=m;if(!((c[(k&p)>>2]|0)==0&(c[(k&p)+4>>2]|0)==0)){g=b+160|0;k=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if((e|0)!=0|(k|0)==0&(g|0)==0)h=ac[c[(h&p)+16>>2]&63](l,0,0)|0;else h=tc[c[(h&p)+12>>2]&31](l,14664,28,0,0)|0;if(!h){if(!(a[(b&n)+7>>0]|0)){h=c[(q&p)>>2]|0;h=rc[c[((c[(h&p)>>2]|0)&p)+20>>2]&127](h,d[(b&n)+11>>0]|16)|0}else h=0;if((h|0)==0&((g|0)>0|(g|0)==0&k>>>0>0)){h=c[(q&p)>>2]|0;h=rc[c[((c[(h&p)>>2]|0)&p)+24>>2]&127](h,o)|0;l=c[(o&p)+4>>2]|0;if((h|0)==0&((l|0)>(g|0)|((l|0)==(g|0)?(c[(o&p)>>2]|0)>>>0>k>>>0:0))){h=c[(q&p)>>2]|0;h=ac[c[((c[(h&p)>>2]|0)&p)+16>>2]&63](h,k,g)|0}}}}else h=0;q=m;c[(q&p)>>2]=0;c[(q&p)+4>>2]=0}while(0);k=b+56|0;ei(c[(k&p)>>2]|0);c[(k&p)>>2]=0;c[(b&p)+44>>2]=0;k=b+204|0;g=c[(k&p)>>2]|0;e=c[(g&p)>>2]|0;if(e){do{xl(e);e=c[(g&p)>>2]|0}while((e|0)!=0);g=c[(k&p)>>2]|0}k=b+24|0;dp(g,c[(k&p)>>2]|0);l=b+208|0;g=c[(l&p)>>2]|0;if(!g){if((h|0)==0&(f|0)!=0){g=c[(k&p)>>2]|0;if((c[(b&p)+32>>2]|0)>>>0>g>>>0)h=Bl(b,g)|0;else h=0}}else{e=g+44|0;if(a[(e&n)>>0]|0){if(!(a[(g&n)+43>>0]|0)){q=c[(g&p)+4>>2]|0;pc[c[((c[(q&p)>>2]|0)&p)+56>>2]&31](q,0,1,9)|0}a[(e&n)>>0]=0;a[(g&n)+47>>0]=0}}if((h|0)==0&(f|0)!=0){g=c[(b&p)+60>>2]|0;h=c[(g&p)>>2]|0;if(!h)k=0;else{k=ac[c[(h&p)+40>>2]&63](g,22,0)|0;k=(k|0)==12?0:k}}else k=h;do if(!(a[(b&n)+4>>0]|0)){g=c[(l&p)>>2]|0;if((g|0)!=0?(ep(g,0)|0)==0:0){g=0;break}h=c[(b&p)+60>>2]|0;g=c[(h&p)>>2]|0;if(g){if(!(a[(b&n)+13>>0]|0))g=rc[c[(g&p)+32>>2]&127](h,1)|0;else g=0;h=b+17|0;if((a[(h&n)>>0]|0)!=5)a[(h&n)>>0]=1}else g=0;a[(b&n)+18>>0]=0}else g=0;while(0);a[(r&n)>>0]=1;a[(b&n)+19>>0]=0;g=(k|0)==0?g:k}i=s;return g|0}function Dl(d){d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;j=c[(d&p)+4>>2]|0;g=c[(d&p)>>2]|0;a[(j&n)+19>>0]=0;k=d+8|0;do if(a[(k&n)>>0]|0){if((c[(g&p)+152>>2]|0)>1){g=j+76|0;if((c[(g&p)>>2]|0)==(d|0)?(c[(g&p)>>2]=0,f=j+22|0,b[(f&o)>>1]=e[(f&o)>>1]&65439,f=c[(j&p)+72>>2]|0,(f|0)!=0):0)do{a[(f&n)+8>>0]=1;f=c[(f&p)+12>>2]|0}while((f|0)!=0);a[(k&n)>>0]=1;break}g=j+72|0;f=c[(g&p)>>2]|0;a:do if(f)do while(1){h=f+12|0;i=c[(h&p)>>2]|0;if((c[(f&p)>>2]|0)!=(d|0)){g=h;f=i;break}c[(g&p)>>2]=i;if((c[(f&p)+4>>2]|0)==1)f=i;else{Wc(f);f=c[(g&p)>>2]|0}if(!f)break a}while((f|0)!=0);while(0);f=j+76|0;if((c[(f&p)>>2]|0)!=(d|0)){f=c[(j&p)+40>>2]|0;if((f|0)==2){i=j+22|0;b[(i&o)>>1]=e[(i&o)>>1]&65471;c[(j&p)+40>>2]=1;i=20;break}}else{c[(f&p)>>2]=0;f=j+22|0;b[(f&o)>>1]=e[(f&o)>>1]&65439;f=c[(j&p)+40>>2]|0}f=f+-1|0;c[(j&p)+40>>2]=f;if(!f){a[(j&n)+20>>0]=0;i=20}else i=20}else i=20;while(0);if(((i|0)==20?(a[(k&n)>>0]=0,(a[(j&n)+20>>0]|0)==0):0)?(l=j+12|0,m=c[(l&p)>>2]|0,(m|0)!=0):0){c[(l&p)>>2]=0;Bg(c[(m&p)+68>>2]|0)}return}function El(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;h=((c[(a&p)+36>>2]|0)>>>0)/5|0;if(b>>>0<2){e=0;g=c[(a&p)+32>>2]|0;i=c[2514]|0}else{e=b+-2|0;e=e-((e>>>0)%((h+1|0)>>>0)|0)|0;i=c[2514]|0;g=c[(a&p)+32>>2]|0;e=((e+1|0)==((i>>>0)/(g>>>0)|0|0)?3:2)+e|0}e=b-d-(((d-b+h+e|0)>>>0)/(h>>>0)|0)|0;f=a+32|0;a=((i>>>0)/(g>>>0)|0)+1|0;d=((i>>>0)/(g>>>0)|0)+1|0;a=((a>>>0<b>>>0&e>>>0<a>>>0)<<31>>31)+e|0;while(1){if(a>>>0<2)e=0;else{e=a+-2|0;e=e-((e>>>0)%((h+1|0)>>>0)|0)|0;e=((e+1|0)==((i>>>0)/((c[(f&p)>>2]|0)>>>0)|0|0)?3:2)+e|0}if(!((e|0)==(a|0)|(a|0)==(d|0)))break;a=a+-1|0}return a|0}function Fl(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=(d|0)==0;f=b;a:while(1){do if((f|0)!=(e|0)){if(!g?(c[(f&p)+60>>2]|0)!=(d|0):0)break;if(((a[(f&n)+73>>0]|0)+-1&255)<2){b=fp(f)|0;if(!b)break;else break a}else{gp(f);break}}while(0);f=c[(f&p)+8>>2]|0;if(!f){b=0;break}}return b|0}function Gl(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+48|0;if((i|0)>=(j|0))fa();k=x;m=x+32|0;u=x+28|0;l=x+24|0;q=x+20|0;s=x+16|0;v=x+12|0;t=x+8|0;if(f>>>0<2)o=0;else{o=f+-2|0;o=o-((o>>>0)%(((((c[(b&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;o=((o+1|0)==(((c[2514]|0)>>>0)/((c[(b&p)+32>>2]|0)>>>0)|0|0)?3:2)+o|0}do if((o|0)!=(f|0)?((((c[2514]|0)>>>0)/((c[(b&p)+32>>2]|0)>>>0)|0)+1|0)!=(f|0):0){r=c[((c[(b&p)+12>>2]|0)&p)+56>>2]|0;if((d[(r&n)+37>>0]|0)<<16|(d[(r&n)+36>>0]|0)<<24|(d[(r&n)+38>>0]|0)<<8|(d[(r&n)+39>>0]|0)){h=hp(b,f,m,u)|0;if(!h){r=a[(m&n)>>0]|0;if(r<<24>>24==2){if(g){h=0;break}h=ip(b,q,l,f,1)|0;if(h)break;k=c[(q&p)>>2]|0;if(!k){w=24;break}Bg(c[(k&p)+68>>2]|0);w=24;break}else if(r<<24>>24!=1){h=dl(b,f,v,0)|0;if(h)break;k=(g|0)==0;m=k?2:0;k=k?e:0;l=(g|0)!=0;do{h=ip(b,t,s,k,m)|0;if(h){w=16;break}o=c[(t&p)>>2]|0;if(o)Bg(c[(o&p)+68>>2]|0);o=c[(s&p)>>2]|0}while(l&o>>>0>e>>>0);if((w|0)==16){k=c[(v&p)>>2]|0;if(!k)break;Bg(c[(k&p)+68>>2]|0);break}m=c[(v&p)>>2]|0;h=Zm(b,m,r,c[(u&p)>>2]|0,o,g)|0;if(m)Bg(c[(m&p)+68>>2]|0);if(!h){w=24;break}else break}else{c[(k&p)>>2]=56228;c[(k&p)+4>>2]=10788;bd(11,13600,k);h=11;break}}}else h=101}else w=24;while(0);if((w|0)==24)if(!g){l=((c[2514]|0)>>>0)/((c[(b&p)+32>>2]|0)>>>0)|0;m=l+1|0;o=b+36|0;k=f;while(1){h=k+-1|0;if((h|0)==(m|0)){k=h;continue}if(h>>>0<2)k=0;else{k=k+-3|0;k=k-((k>>>0)%(((((c[(o&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(l|0)?3:2)+k|0}if((k|0)==(h|0))k=h;else break}a[(b&n)+19>>0]=1;c[(b&p)+44>>2]=h;h=0}else h=0;i=x;return h|0}function Hl(b){b=b|0;var e=0,f=0,g=0;g=b+16|0;f=a[(g&n)>>0]|0;a:do if(f<<24>>24!=6)if((f&255)>=2){do if(!(c[(b&p)+208>>2]|0)){if(!(f<<24>>24==2?1:(c[(c[(b&p)+64>>2]&p)>>2]|0)==0)){e=Ko(b,0)|0;break}e=Cl(b,0,0)|0;if((a[(b&n)+15>>0]|0)==0&(f&255)>2){c[(b&p)+40>>2]=4;a[(g&n)>>0]=6;break a}}else{e=jp(b,2,-1)|0;f=Cl(b,d[(b&n)+19>>0]|0,0)|0;e=(e|0)==0?f:e}while(0);f=e&255;if((f|0)==10|(f|0)==13){c[(b&p)+40>>2]=e;a[(g&n)>>0]=6}}else e=0;else e=c[(b&p)+40>>2]|0;while(0);return e|0}function Il(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;a:do if((d|0)!=0?(h=c[(d&p)+4>>2]|0,c[(h&p)+4>>2]=c[(d&p)>>2],h=c[(h&p)+8>>2]|0,(h|0)!=0):0){l=(f|0)==0;while(1){if(!l?(a[(h&n)+72>>0]&1)==0:0){if(((a[(h&n)+73>>0]|0)+-1&255)<2?(g=fp(h)|0,(g|0)!=0):0)break}else{f=h+56|0;Wc(c[(f&p)>>2]|0);c[(f&p)>>2]=0;a[(h&n)+73>>0]=4;c[(h&p)+68>>2]=e}f=h+76|0;if((b[(f&o)>>1]|0)>=0){k=0;while(1){i=h+(k<<2)+120|0;j=c[(i&p)>>2]|0;if(j)Bg(c[(j&p)+68>>2]|0);c[(i&p)>>2]=0;if((k|0)<(b[(f&o)>>1]|0))k=k+1|0;else break}}h=c[(h&p)+8>>2]|0;if(!h)break a}Il(d,g,0)|0;return g|0}while(0);return 0}function Jl(a){a=a|0;var b=0,d=0,e=0;a:do if(!(c[(a&p)+4>>2]|0)){d=c[(a&p)+20>>2]|0;if((d|0)>0){a=c[(a&p)+16>>2]|0;b=0;while(1){e=c[(a+(b<<4)&p)+4>>2]|0;if((e|0)!=0?(c[(e&p)+16>>2]|0)!=0:0){a=1;break a}b=b+1|0;if((b|0)>=(d|0)){a=0;break}}}else a=0}else a=1;while(0);return a|0}function Kl(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;f=c[3164]|0;if(f)nc[f&3]();l=d+20|0;j=c[(l&p)>>2]|0;i=(j|0)>0;if(i){f=c[(d&p)+16>>2]|0;h=0;do{g=c[(f+(h<<4)&p)+4>>2]|0;if(g)c[((c[(g&p)+4>>2]|0)&p)+4>>2]=c[(g&p)>>2];h=h+1|0}while((h|0)!=(j|0))}m=d+24|0;if(!(c[(m&p)>>2]&2))f=1;else f=(a[(d&n)+145>>0]|0)!=0;if(i){k=d+16|0;f=f&1;i=j;j=0;h=0;while(1){g=c[((c[(k&p)>>2]|0)+(j<<4)&p)+4>>2]|0;if(!g)g=i;else{h=(a[(g&n)+8>>0]|0)==2?1:h;Lg(g,e,f);g=c[(l&p)>>2]|0}j=j+1|0;if((j|0)>=(g|0))break;else i=g}}else h=0;Rn(d,68);f=c[3166]|0;if(f)nc[f&3]();f=c[(m&p)>>2]|0;if((f&2|0)!=0?(a[(d&n)+145>>0]|0)==0:0){f=c[(d&p)+4>>2]|0;if(f)do{g=f+88|0;b[(g&o)>>1]=b[(g&o)>>1]|8;f=c[(f&p)+52>>2]|0}while((f|0)!=0);Eg(d);f=c[(m&p)>>2]|0}g=d+504|0;c[(g&p)>>2]=0;c[(g&p)+4>>2]=0;c[(g&p)+8>>2]=0;c[(g&p)+12>>2]=0;c[(m&p)>>2]=f&-16777217;f=c[(d&p)+204>>2]|0;do if(f){if((h|0)==0?(a[(d&n)+63>>0]|0)!=0:0)break;cc[f&31](c[(d&p)+200>>2]|0)}while(0);return}function Ll(b){b=b|0;var d=0,e=0;e=b+488|0;d=c[(e&p)>>2]|0;if(d)do{c[(e&p)>>2]=c[(d&p)+24>>2];mg(b,d);d=c[(e&p)>>2]|0}while((d|0)!=0);c[(b&p)+496>>2]=0;c[(b&p)+500>>2]=0;a[(b&n)+70>>0]=0;return}function Ml(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=c[(b&p)+4>>2]|0;c[(h&p)+4>>2]=c[(b&p)>>2];e=c[(h&p)+8>>2]|0;if(e)do{d=e;e=c[(e&p)+8>>2]|0;if((c[(d&p)>>2]|0)==(b|0))kp(d)}while((e|0)!=0);Lg(b,0,0);a:do if(a[(b&n)+9>>0]|0){e=h+64|0;d=c[(e&p)>>2]|0;c[(e&p)>>2]=d+-1;if((d|0)<2){d=c[3664]|0;if((d|0)==(h|0)){c[3664]=c[(h&p)+68>>2];f=12;break}else e=d;do{if(!e){f=12;break a}d=e+68|0;e=c[(d&p)>>2]|0}while((e|0)!=(h|0));c[(d&p)>>2]=c[(h&p)+68>>2];f=12}}else f=12;while(0);if((f|0)==12){lp(c[(h&p)>>2]|0);d=c[(h&p)+52>>2]|0;e=h+48|0;if((d|0)!=0?(g=c[(e&p)>>2]|0,(g|0)!=0):0)cc[d&31](g);d=c[(e&p)>>2]|0;if(d)Wc(d);d=h+80|0;e=c[(d&p)>>2]|0;if(e){e=e+-4|0;c[(d&p)>>2]=e;$k(e);c[(d&p)>>2]=0}Wc(h)}e=c[(b&p)+28>>2]|0;d=b+24|0;if(e)c[(e&p)+24>>2]=c[(d&p)>>2];d=c[(d&p)>>2]|0;if(d)c[(d&p)+28>>2]=e;Wc(b);return}function Nl(a,b){a=a|0;b=b|0;var d=0;b=c[(b&p)+32>>2]|0;if((b|0)!=0?(d=(c[(b&p)>>2]|0)+-1|0,c[(b&p)>>2]=d,(d|0)==0):0){cc[c[(b&p)+4>>2]&31](c[(b&p)+8>>2]|0);mg(a,b)}return}function Ol(a){a=a|0;var b=0,d=0;d=a+8|0;b=c[(d&p)>>2]|0;c[(d&p)>>2]=0;d=a+12|0;Wc(c[(d&p)>>2]|0);c[(d&p)>>2]=0;c[(a&p)>>2]=0;if(b)do{d=b;b=c[(b&p)>>2]|0;Wc(d)}while((b|0)!=0);c[(a&p)+4>>2]=0;return}function Pl(a){a=a|0;var b=0,d=0,e=0,f=0;if(a){e=c[(a&p)>>2]|0;lg(e,a);f=c[(a&p)+48>>2]|0;d=a+52|0;b=c[(d&p)>>2]|0;if(!f)c[(e&p)+4>>2]=b;else{c[(f&p)+52>>2]=b;b=c[(d&p)>>2]|0}if(b)c[(b&p)+48>>2]=f;c[(a&p)+40>>2]=-1241070648;c[(a&p)>>2]=0;mg(e,a)}return}function Ql(d){d=d|0;var e=0;a[(d&n)+65>>0]=0;c[(d&p)+52>>2]=7;d=c[(d&p)+236>>2]|0;do if(d){e=d+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;break}else{vg(d);break}}while(0);return}function Rl(d){d=d|0;var f=0,g=0,h=0,k=0,l=0,m=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;I=i;i=i+32|0;if((i|0)>=(j|0))fa();x=I;A=I+16|0;t=I+12|0;u=I+8|0;H=c[(d&p)>>2]|0;if(a[(H&n)+65>>0]|0)c[(d&p)+80>>2]=7;g=c[(d&p)+200>>2]|0;if(g)fw(g|0,0,c[(d&p)+196>>2]|0)|0;k=d+176|0;g=c[(k&p)>>2]|0;if(g){while(1){h=c[(g&p)+4>>2]|0;if(!h)break;else g=h}Xl(g)|0;c[(k&p)>>2]=0;c[(d&p)+184>>2]=0}r=d+56|0;g=c[(r&p)>>2]|0;a:do if((g|0)!=0?(s=d+36|0,f=c[(s&p)>>2]|0,(f|0)>0):0){k=0;while(1){h=c[(g+(k<<2)&p)>>2]|0;if(!h)h=f;else{Bm(d,h);c[((c[(r&p)>>2]|0)+(k<<2)&p)>>2]=0;h=c[(s&p)>>2]|0}k=k+1|0;if((k|0)>=(h|0))break a;g=c[(r&p)>>2]|0;f=h}}while(0);g=c[(d&p)+8>>2]|0;if(g)ch(g+40|0,c[(d&p)+28>>2]|0);s=d+180|0;g=c[(s&p)>>2]|0;if(g)do{c[(s&p)>>2]=c[(g&p)+4>>2];r=g+80|0;f=g+60|0;h=c[(f&p)>>2]|0;m=r+(h*40|0)|0;q=g+64|0;if((c[(q&p)>>2]|0)>0){k=0;do{Bm(c[(g&p)>>2]|0,c[(m+(k<<2)&p)>>2]|0);k=k+1|0}while((k|0)<(c[(q&p)>>2]|0));h=c[(f&p)>>2]|0}ch(r,h);mg(c[(c[(g&p)>>2]&p)>>2]|0,g);g=c[(s&p)>>2]|0}while((g|0)!=0);if(c[(d&p)+204>>2]|0)em(d,-1,0);E=d+40|0;b:do if((c[(E&p)>>2]|0)==-1108210269){C=d+76|0;if((c[(C&p)>>2]|0)>-1){D=d+88|0;q=b[(D&o)>>1]|0;if(q&128){B=d+80|0;k=c[(B&p)>>2]|0;m=k&255;h=m+-7|0;do if(h>>>0<7?(l=(77>>>(h&127)&1)!=0,l):0)if((q&64)==0|(m|0)!=9){if((m|0)==7|(m|0)==13?(q&32)!=0:0){f=2;break}Kl(H,516);Ll(H);a[(H&n)+63>>0]=1;c[(d&p)+92>>2]=0;k=c[(B&p)>>2]|0;f=0}else{l=1;f=0}else{l=0;f=0}while(0);if((k|0)==0?(z=d+144|0,y=c[(z&p)+4>>2]|0,(y|0)>0|(y|0)==0&(c[(z&p)>>2]|0)>>>0>0):0){z=c[(d&p)>>2]|0;c[(B&p)>>2]=787;a[(d&n)+86>>0]=2;dh(d+44|0,z,34376,x)}m=H+304|0;if((c[(m&p)>>2]|0)>0?(c[(H&p)+328>>2]|0)==0:0)F=141;else if((a[(H&n)+63>>0]|0)!=0?(c[(H&p)+156>>2]|0)==(((e[(D&o)>>1]|0)>>>6&1^1)&65535|0):0){do if(!(c[(B&p)>>2]|0))F=41;else{if(!((a[(d&n)+86>>0]|0)!=3|l)){F=41;break}Kl(H,0);c[(d&p)+92>>2]=0}while(0);c:do if((F|0)==41){d:do if(tm(d,1)|0)if(!(b[(D&o)>>1]&64))g=787;else{f=1;break b}else{l=H+328|0;h=c[(l&p)>>2]|0;c[(l&p)>>2]=0;k=c[(m&p)>>2]|0;e:do if((k|0)>0){q=0;f:while(1){s=c[((c[(h+(q<<2)&p)>>2]|0)&p)+8>>2]|0;do if(s){r=c[((c[(s&p)>>2]|0)&p)+60>>2]|0;if(!r)break;g=lc[r&127](s)|0;Mm(d,s);if(g)break f;k=c[(m&p)>>2]|0}while(0);q=q+1|0;if((q|0)>=(k|0)){F=50;break e}}c[(l&p)>>2]=h;F=135}else F=50;while(0);g:do if((F|0)==50){c[(l&p)>>2]=h;y=H+20|0;z=H+16|0;r=0;k=0;q=0;h:while(1){m=c[(y&p)>>2]|0;if((r|0)>=(m|0)){h=k;break}l=c[(z&p)>>2]|0;s=r;while(1){r=c[(l+(s<<4)&p)+4>>2]|0;if((r|0)!=0?(a[(r&n)+8>>0]|0)==2:0)break;s=s+1|0;if((s|0)>=(m|0)){h=k;break h}}g=c[(r&p)+4>>2]|0;c[(g&p)+4>>2]=c[(r&p)>>2];g=bp(c[(g&p)>>2]|0)|0;if(!g){r=s+1|0;k=((s|0)!=1&1)+k|0;q=1}else{F=135;break g}}do if(q){l=c[(H&p)+196>>2]|0;if(!l)break;if(lc[l&127](c[(H&p)+192>>2]|0)|0){g=531;break d}}while(0);k=c[((c[(z&p)>>2]|0)&p)+4>>2]|0;q=c[(c[(k&p)+4>>2]&p)>>2]|0;m=(a[(q&n)+15>>0]|0)==0;if(m){s=c[(q&p)+168>>2]|0;if(s)F=62}else{s=10360;F=62}do if((F|0)==62){r=s;while(1)if(!(a[(r&n)>>0]|0))break;else r=r+1|0;if((r-s&1073741823|0)==0|(h|0)<2)break;w=c[(H&p)>>2]|0;if(m){l=c[(q&p)+168>>2]|0;c[(A&p)>>2]=0;if(!l){s=0;l=0}else F=80}else{c[(A&p)>>2]=0;l=10360;F=80}if((F|0)==80){q=l;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;s=q-l&1073741823}c[(x&p)>>2]=l;v=uh(H,44696,x)|0;if(!v){g=7;break d}s=v+s|0;r=w+32|0;q=0;i:while(1){do if(q){if((q|0)>100){F=87;break i}if((q|0)!=1)break;c[(x&p)>>2]=v;bd(13,44728,x)}while(0);cd(4,u);g=c[(u&p)>>2]|0;c[(x&p)>>2]=g>>>8;c[(x&p)+4>>2]=g&255;ad(13,s,44744,x)|0;g=pc[c[(r&p)>>2]&31](w,v,0,t)|0;m=(g|0)==0;if(m&(c[(t&p)>>2]|0)!=0)q=q+1|0;else{F=91;break}}if((F|0)==87){c[(x&p)>>2]=v;bd(13,44712,x);ac[c[(w&p)+28>>2]&63](w,v,0)|0;F=92}else if((F|0)==91)if(m)F=92;do if((F|0)==92){g=mp(w,v,A,16406,0)|0;if(g)break;l=c[(y&p)>>2]|0;j:do if((l|0)>0){t=0;r=0;u=0;q=0;k:while(1){s=c[((c[(z&p)>>2]|0)+(u<<4)&p)+4>>2]|0;do if(!s)s=t;else{if((a[(s&n)+8>>0]|0)!=2){s=t;break}m=c[(s&p)+4>>2]|0;k=c[(m&p)>>2]|0;h=c[(k&p)+172>>2]|0;if(!h){s=t;break}if(!q){c[(m&p)+4>>2]=c[(s&p)>>2];q=(a[(k&n)+7>>0]|0)==0&1}k=c[(A&p)>>2]|0;s=h;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;m=h;g=tc[c[((c[(k&p)>>2]|0)&p)+12>>2]&31](k,h,(s-m&1073741823)+1|0,t,r)|0;s=h;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;if(g){l=k;F=106;break k}s=jw((s-m&1073741823)+1|0,0,t|0,r|0)|0;l=c[(y&p)>>2]|0;r=G}while(0);u=u+1|0;if((u|0)>=(l|0))break;else t=s}if((F|0)==106){h=c[(l&p)>>2]|0;if(h){lc[c[(h&p)+4>>2]&127](k)|0;c[(l&p)>>2]=0}Wc(k);ac[c[(w&p)+28>>2]&63](w,v,0)|0;mg(H,v);F=135;break g}do if(!q)q=0;else{m=c[(A&p)>>2]|0;if((lc[c[((c[(m&p)>>2]|0)&p)+48>>2]&127](m)|0)&1024)break;g=rc[c[((c[(m&p)>>2]|0)&p)+20>>2]&127](m,2)|0;if(!g)break;h=c[(m&p)>>2]|0;if(h){lc[c[(h&p)+4>>2]&127](m)|0;c[(m&p)>>2]=0}Wc(m);ac[c[(w&p)+28>>2]&63](w,v,0)|0;mg(H,v);F=135;break g}while(0);k=c[(y&p)>>2]|0;if((k|0)>0)s=0;else{s=1;g=0;break}while(1){m=c[((c[(z&p)>>2]|0)+(s<<4)&p)+4>>2]|0;if(m){g=Kg(m,v)|0;if(g){s=0;break j}k=c[(y&p)>>2]|0}s=s+1|0;if((s|0)>=(k|0)){s=1;g=0;break}}}else{s=1;q=0;g=0}while(0);m=c[(A&p)>>2]|0;l=c[(m&p)>>2]|0;if(l){lc[c[(l&p)+4>>2]&127](m)|0;c[(m&p)>>2]=0}Wc(m);if(!s){mg(H,v);F=135;break g}g=ac[c[(w&p)+28>>2]&63](w,v,q)|0;mg(H,v);if(g){F=135;break g}g=c[3164]|0;if(g)nc[g&3]();g=c[(y&p)>>2]|0;if((g|0)>0){k=0;do{h=c[((c[(z&p)>>2]|0)+(k<<4)&p)+4>>2]|0;if(h){Jg(h,1)|0;g=c[(y&p)>>2]|0}k=k+1|0}while((k|0)<(g|0))}g=c[3166]|0;if(g)nc[g&3]();Rn(H,64);break g}while(0);mg(H,v);F=135;break g}while(0);g=c[(y&p)>>2]|0;do if((g|0)>0){h=1;while(1){if(k){g=Kg(k,0)|0;if(g){F=135;break g}g=c[(y&p)>>2]|0}if((h|0)>=(g|0))break;k=c[((c[(z&p)>>2]|0)+(h<<4)&p)+4>>2]|0;h=h+1|0}if((g|0)>0)k=0;else break;do{h=c[((c[(z&p)>>2]|0)+(k<<4)&p)+4>>2]|0;if(h){g=Jg(h,0)|0;if(g){F=135;break g}g=c[(y&p)>>2]|0}k=k+1|0}while((k|0)<(g|0))}while(0);Rn(H,64)}while(0);do if((F|0)==135){if(!g)break;else if((g|0)!=5)break d;if(!(b[(D&o)>>1]&64)){g=5;break d}else{f=5;break b}}while(0);A=H+504|0;F=H+24|0;c[(A&p)>>2]=0;c[(A&p)+4>>2]=0;c[(A&p)+8>>2]=0;c[(A&p)+12>>2]=0;c[(F&p)>>2]=c[(F&p)>>2]&-16777219;break c}while(0);c[(B&p)>>2]=g;Kl(H,0);c[(d&p)+92>>2]=0}while(0);c[(H&p)+500>>2]=0;F=146}else F=141;do if((F|0)==141)if(!f)if(c[(B&p)>>2]|0){g=a[(d&n)+86>>0]|0;if(g<<24>>24==2){f=2;F=147;break}else if(g<<24>>24==3){f=1;F=147;break}else{Kl(H,516);Ll(H);a[(H&n)+63>>0]=1;c[(d&p)+92>>2]=0;F=146;break}}else{f=1;F=147}else F=147;while(0);if((F|0)==146)if(!f)f=0;else F=147;if((F|0)==147){g=$l(d,f)|0;if(g){F=c[(B&p)>>2]|0;if((F|0)==0|(F&255|0)==19){c[(B&p)>>2]=g;F=d+44|0;mg(H,c[(F&p)>>2]|0);c[(F&p)>>2]=0}Kl(H,516);Ll(H);a[(H&n)+63>>0]=1;c[(d&p)+92>>2]=0}}if(b[(D&o)>>1]&4){if((f|0)==2){c[(H&p)+80>>2]=0;f=d+92|0}else{f=d+92|0;B=c[(f&p)>>2]|0;c[(H&p)+80>>2]=B;F=H+84|0;c[(F&p)>>2]=(c[(F&p)>>2]|0)+B}c[(f&p)>>2]=0}}if((c[(C&p)>>2]|0)>-1){f=H+148|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+-1;f=b[(D&o)>>1]|0;if(!(f&64)){f=H+156|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+-1;f=b[(D&o)>>1]|0}if(f&128){F=H+152|0;c[(F&p)>>2]=(c[(F&p)>>2]|0)+-1}}}c[(E&p)>>2]=1369188723;f=d+80|0;if(!(a[((c[(d&p)>>2]|0)&n)+65>>0]|0)){f=(c[(f&p)>>2]|0)==5?5:0;break}else{c[(f&p)>>2]=7;f=0;break}}else f=0;while(0);i=I;return f|0}function Sl(a,f){a=a|0;f=f|0;var g=0,h=0,i=0,j=0;i=a+8|0;h=e[(i&o)>>1]|0;do if(h&18){b[(i&o)>>1]=h|2;if(h&16384)Rg(a)|0;g=a+10|0;f=f&255;h=f&247;if((d[(g&n)>>0]|0|0)!=(h|0))Yl(a,h)|0;if(((f&8|0)!=0?(c[(a&p)+16>>2]&1|0)!=0:0)?(Vl(a)|0)!=0:0){g=0;break}if((b[(i&o)>>1]&514)==2){am(a)|0;j=12}else j=12}else{bm(a,f,0)|0;h=f&247;g=a+10|0;j=12}while(0);if((j|0)==12)if((d[(g&n)>>0]|0|0)==(h|0))g=c[(a&p)+16>>2]|0;else g=0;return g|0}function Tl(b,c,e,f){b=b|0;c=c|0;e=e|0;f=f|0;var g=0,i=0.0,j=0,k=0.0,l=0,m=0,o=0,p=0,r=0,s=0,t=0,u=0;h[(c&q)>>3]=0.0;j=f&255;if(f<<24>>24==1){f=b;g=e;r=1;u=0}else{g=3-j|0;a:do if((g|0)<(e|0))while(1){f=g+2|0;if(a[(b+g&n)>>0]|0){e=1;break a}if((f|0)<(e|0))g=f;else{e=0;g=f;break}}else e=0;while(0);f=b+(j&1)|0;g=j+-3+g|0;r=2;u=e}t=b+g|0;b:do if(f>>>0<t>>>0){while(1){g=a[(f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&1))break;f=f+r|0;if(f>>>0>=t>>>0){f=0;break b}}if(g<<24>>24==45){f=f+r|0;s=-1}else if(g<<24>>24==43){f=f+r|0;s=1}else s=1;c:do if(f>>>0<t>>>0){g=0;do{if((a[(f&n)>>0]|0)!=48)break c;f=f+r|0;g=g+1|0}while(f>>>0<t>>>0)}else g=0;while(0);d:do if(f>>>0<t>>>0){b=0;j=0;while(1){e=a[(f&n)>>0]|0;if(!(((e&255)+-48|0)>>>0<10&((b|0)<214748364|(b|0)==214748364&j>>>0<3435973835))){l=b;break d}j=sw(j|0,b|0,10,0)|0;b=(e<<24>>24)+-48|0;j=jw(b|0,((b|0)<0)<<31>>31|0,j|0,G|0)|0;b=G;f=f+r|0;g=g+1|0;if(f>>>0>=t>>>0){l=b;break}}}else{j=0;l=0}while(0);e:do if(f>>>0<t>>>0){e=0;while(1){b=a[(f&n)>>0]|0;if(((b&255)+-48|0)>>>0>=10){m=e;break}f=f+r|0;g=g+1|0;b=e+1|0;if(f>>>0<t>>>0)e=b;else{o=l;m=b;b=0;l=1;e=1;break e}}f:do if(b<<24>>24==46){e=f+r|0;g:do if(e>>>0<t>>>0){o=e;while(1){b=a[(o&n)>>0]|0;if(!(((b&255)+-48|0)>>>0<10&((l|0)<214748364|(l|0)==214748364&j>>>0<3435973835))){e=o;o=l;break g}j=sw(j|0,l|0,10,0)|0;l=(b<<24>>24)+-48|0;j=jw(l|0,((l|0)<0)<<31>>31|0,j|0,G|0)|0;l=G;g=g+1|0;b=m+-1|0;e=f+(r<<1)|0;if(e>>>0<t>>>0){f=o;o=e;m=b}else{f=o;o=l;m=b;break}}}else o=l;while(0);if(e>>>0<t>>>0){l=r<<1;b=e;while(1){if(((d[(b&n)>>0]|0)+-48|0)>>>0>=10){e=b;break f}e=f+l|0;g=g+1|0;if(e>>>0<t>>>0){f=b;b=e}else break}}}else{e=f;o=l}while(0);if(e>>>0<t>>>0){p=a[(e&n)>>0]|0;h:do if(p<<24>>24==69|p<<24>>24==101){f=e+r|0;if(f>>>0>=t>>>0){b=0;l=0;e=1;break e}b=a[(f&n)>>0]|0;if(b<<24>>24==45){f=e+(r<<1)|0;p=-1}else if(b<<24>>24==43){f=e+(r<<1)|0;p=1}else p=1;if(f>>>0<t>>>0){e=0;l=0}else{b=0;l=0;e=p;break e}while(1){b=a[(f&n)>>0]|0;if(((b&255)+-48|0)>>>0>=10){b=e;e=p;break h}if((e|0)<1e4)b=(e*10|0)+-48+(b<<24>>24)|0;else b=1e4;f=f+r|0;if(f>>>0<t>>>0){e=b;l=1}else{l=1;e=p;break}}}else{f=e;b=0;l=1;e=1}while(0);if((g|0)!=0&(l|0)!=0&f>>>0<t>>>0)do{if(!(a[((d[(f&n)>>0]|0)&n)+10368>>0]&1))break e;f=f+r|0}while(f>>>0<t>>>0)}else{f=e;b=0;l=1;e=1}}else{o=l;m=0;b=0;l=1;e=1}while(0);b=(ca(b,e)|0)+m|0;p=(b|0)<0;e=p?0-b|0:b;do if((j|0)==0&(o|0)==0)if((s|0)<0)i=(g|0)!=0?-0.0:0.0;else i=0.0;else{if((b>>31|1|0)>0)if(((o|0)<214748364|(o|0)==214748364&j>>>0<3435973836)&(e|0)>0){b=o;do{e=e+-1|0;j=sw(j|0,b|0,10,0)|0;b=G}while(((b|0)<214748364|(b|0)==214748364&j>>>0<3435973836)&(e|0)>0)}else b=o;else{m=rw(j|0,o|0,10,0)|0;if((m|0)==0&(G|0)==0&(e|0)>0){b=o;do{e=e+-1|0;j=qw(j|0,b|0,10,0)|0;b=G;o=rw(j|0,b|0,10,0)|0}while((o|0)==0&(G|0)==0&(e|0)>0)}else b=o}o=(s|0)<0;m=dw(0,0,j|0,b|0)|0;m=o?m:j;o=o?G:b;if(!e){i=+(m>>>0)+4294967296.0*+(o|0);break}if((e+-308|0)>>>0<34){if(!((e|0)%308|0))k=1.0;else{i=1.0;do{i=i*10.0;e=e+-1|0}while(((e|0)%308|0|0)!=0);k=i}i=+(m>>>0)+4294967296.0*+(o|0);if(p){i=i/k/1.e+308;break}else{i=i*k*1.e+308;break}}if((e|0)>341){i=+(m>>>0)+4294967296.0*+(o|0);if(p){i=i*0.0;break}else{i=i*w;break}}if(!((e|0)%22|0)){j=e;i=1.0}else{j=e;i=1.0;do{i=i*10.0;j=j+-1|0}while(((j|0)%22|0|0)!=0)}if((j|0)>0){do{i=i*1.0e22;j=j+-22|0}while((j|0)>0);k=i}else k=i;i=+(m>>>0)+4294967296.0*+(o|0);if(p){i=i/k;break}else{i=i*k;break}}while(0);h[(c&q)>>3]=i;f=f>>>0>=t>>>0&(g|0)>0&(l|0)!=0&(u|0)==0&1}else f=0;while(0);return f|0}function Ul(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,o=0,q=0,r=0;i=f&255;if(f<<24>>24==1){g=b;h=e;o=1;e=0}else{h=3-i|0;a:do if((h|0)<(e|0))while(1){f=h+2|0;if(a[(b+h&n)>>0]|0){e=1;break a}if((f|0)<(e|0))h=f;else{e=0;h=f;break}}else e=0;while(0);g=b+(i&1)|0;h=i+-3+h|0;o=2}k=b+h|0;b:do if(g>>>0<k>>>0){while(1){h=a[(g&n)>>0]|0;if(!(a[(h&255&n)+10368>>0]&1))break;g=g+o|0;if(g>>>0>=k>>>0){l=0;break b}}if(h<<24>>24==45){g=g+o|0;l=1;break}else if(h<<24>>24==43){g=g+o|0;l=0;break}else{l=0;break}}else l=0;while(0);c:do if(g>>>0<k>>>0){h=g;while(1){if((a[(h&n)>>0]|0)!=48){m=h;break c}h=h+o|0;if(h>>>0>=k>>>0){m=h;break}}}else m=g;while(0);do if(m>>>0<k>>>0){b=m;j=0;i=0;h=0;while(1){f=a[(b&n)>>0]|0;if((f+-48&255)>=10){b=0;k=i;break}i=sw(j|0,i|0,10,0)|0;j=f<<24>>24;i=jw(i|0,G|0,-48,-1)|0;j=jw(i|0,G|0,j|0,((j|0)<0)<<31>>31|0)|0;i=G;h=h+o|0;b=m+h|0;if(b>>>0>=k>>>0){b=1;k=i;break}}i=f<<24>>24;f=(l|0)!=0;if((k|0)>=0)if(f){f=k;r=22;break}else{f=k;r=23;break}else{j=d;c[(j&p)>>2]=f?0:-1;c[(j&p)+4>>2]=f?-2147483648:2147483647;j=f?0:2;break}}else if(!l){b=1;j=0;f=0;i=0;h=0;r=23}else{b=1;j=0;f=0;i=0;h=0;r=22}while(0);if((r|0)==22){l=dw(0,0,j|0,f|0)|0;j=d;c[(j&p)>>2]=l;c[(j&p)+4>>2]=G;j=0}else if((r|0)==23){l=d;c[(l&p)>>2]=j;c[(l&p)+4>>2]=f;j=2}if(((i|0)==0|b?!((h|0)==0&(g|0)==(m|0)):0)?(q=o*19|0,!((h|0)>(q|0)|(e|0)!=0)):0)if((h|0)>=(q|0)){h=0;do{g=a[(m+(ca(h,o)|0)&n)>>0]|0;e=a[(h&n)+11192>>0]|0;h=h+1|0;f=g<<24>>24==e<<24>>24}while(f&(h|0)<18);if(f)g=(a[(m+(o*18|0)&n)>>0]|0)+-56|0;else g=((g<<24>>24)-(e<<24>>24)|0)*10|0;if((g|0)>=0)return ((g|0)>0?1:j)|0;else g=0}else g=0;else g=1;return g|0}function Vl(d){d=d|0;var f=0,g=0;g=d+8|0;f=b[(g&o)>>1]|0;if(f&16384){Rg(d)|0;f=b[(g&o)>>1]|0}do if(f&18){if((c[(d&p)+24>>2]|0)!=0?(c[(d&p)+16>>2]|0)==(c[(d&p)+20>>2]|0):0){f=0;break}f=d+12|0;if(!(eh(d,(c[(f&p)>>2]|0)+2|0,1)|0)){d=d+16|0;a[((c[(d&p)>>2]|0)+(c[(f&p)>>2]|0)&n)>>0]=0;a[((c[(d&p)>>2]|0)+(c[(f&p)>>2]|0)&n)+1>>0]=0;b[(g&o)>>1]=e[(g&o)>>1]|0|512;f=0}else f=7}else f=0;while(0);return f|0}function Wl(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=ro(a,b,c,d)|0;if(!c)mg(a,b);return c|0}function Xl(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;d=c[(a&p)>>2]|0;c[(d&p)+200>>2]=c[(a&p)+20>>2];c[(d&p)+196>>2]=c[(a&p)+56>>2];c[(d&p)+4>>2]=c[(a&p)+8>>2];c[(d&p)+32>>2]=c[(a&p)+48>>2];c[(d&p)+8>>2]=c[(a&p)+16>>2];c[(d&p)+28>>2]=c[(a&p)+52>>2];c[(d&p)+56>>2]=c[(a&p)+24>>2];c[(d&p)+36>>2]=c[(a&p)+40>>2];g=a+32|0;f=c[(g&p)+4>>2]|0;b=c[(d&p)>>2]|0;e=b+32|0;c[(e&p)>>2]=c[(g&p)>>2];c[(e&p)+4>>2]=f;c[(d&p)+92>>2]=c[(a&p)+68>>2];c[(b&p)+80>>2]=c[(a&p)+72>>2];return c[(a&p)+44>>2]|0}function Yl(a,c){a=a|0;c=c|0;if((b[(a&o)+8>>1]&2)!=0?(d[(a&n)+10>>0]|0|0)!=(c|0):0)c=Bn(a,c&255)|0;else c=0;return c|0}function Zl(a,d,f){a=a|0;d=d|0;f=f|0;var g=0;g=a+8|0;if(b[(g&o)>>1]&9312)vg(a);c[(a&p)>>2]=c[(d&p)>>2];c[(a&p)+4>>2]=c[(d&p)+4>>2];c[(a&p)+8>>2]=c[(d&p)+8>>2];c[(a&p)+12>>2]=c[(d&p)+12>>2];c[(a&p)+16>>2]=c[(d&p)+16>>2];if(!(b[(d&o)+8>>1]&2048))b[(g&o)>>1]=(e[(g&o)>>1]|0)&58367|f;return}function _l(a,d){a=a|0;d=d|0;var e=0,f=0;if(!((b[(a&o)+8>>1]&9312)==0?(c[(a&p)+24>>2]|0)==0:0))Qg(a);a=a+0|0;e=d+0|0;f=a+40|0;do{c[(a&p)>>2]=c[(e&p)>>2];a=a+4|0;e=e+4|0}while((a|0)<(f|0));b[(d&o)+8>>1]=1;c[(d&p)+24>>2]=0;return}function $l(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,q=0;q=c[(a&p)>>2]|0;m=q+500|0;f=c[(m&p)>>2]|0;do if((f|0)!=0?(n=a+104|0,e=c[(n&p)>>2]|0,(e|0)!=0):0){o=e+-1|0;k=q+20|0;e=c[(k&p)>>2]|0;if((e|0)>0){i=q+16|0;j=(b|0)==2;g=e;h=0;e=0;do{f=c[((c[(i&p)>>2]|0)+(h<<4)&p)+4>>2]|0;if(f){if(j?(l=um(f,2,o)|0,(l|0)!=0):0)f=l;else f=um(f,1,o)|0;g=c[(k&p)>>2]|0;e=(e|0)==0?f:e}h=h+1|0}while((h|0)<(g|0));c[(m&p)>>2]=(c[(m&p)>>2]|0)+-1;c[(n&p)>>2]=0;if(!e)e=13;else{d=e;e=16}}else{c[(m&p)>>2]=f+-1;c[(n&p)>>2]=0;e=13}do if((e|0)==13){if((b|0)==2?(d=sm(q,2,o)|0,(d|0)!=0):0)break;d=sm(q,1,o)|0;e=16}while(0);if((e|0)==16)if((b|0)!=2)break;m=a+152|0;l=c[(m&p)+4>>2]|0;k=q+504|0;c[(k&p)>>2]=c[(m&p)>>2];c[(k&p)+4>>2]=l;k=a+160|0;l=c[(k&p)+4>>2]|0;m=q+512|0;c[(m&p)>>2]=c[(k&p)>>2];c[(m&p)+4>>2]=l}else d=0;while(0);return d|0}function am(d){d=d|0;var f=0,g=0;f=d+12|0;if(!(eh(d,(c[(f&p)>>2]|0)+2|0,1)|0)){g=d+16|0;a[((c[(g&p)>>2]|0)+(c[(f&p)>>2]|0)&n)>>0]=0;a[((c[(g&p)>>2]|0)+(c[(f&p)>>2]|0)&n)+1>>0]=0;f=d+8|0;b[(f&o)>>1]=e[(f&o)>>1]|0|512;f=0}else f=7;return f|0}function bm(d,f,g){d=d|0;f=f|0;g=g|0;var l=0,m=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();s=u;t=d+8|0;m=b[(t&o)>>1]|0;if(!(fh(d,32)|0)){l=d+16|0;r=c[(l&p)>>2]|0;if(!(m&4)){h[(k&q)>>3]=+h[(d&q)>>3];c[(s&p)>>2]=c[(k&p)>>2];c[(s&p)+4>>2]=c[(k&p)+4>>2];ad(32,r,20272,s)|0}else{w=d;v=c[(w&p)+4>>2]|0;m=s;c[(m&p)>>2]=c[(w&p)>>2];c[(m&p)+4>>2]=v;ad(32,r,19920,s)|0}m=c[(l&p)>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[(d&p)+12>>2]=l;a[(d&n)+10>>0]=1;l=e[(t&o)>>1]|514;b[(t&o)>>1]=g<<24>>24==0?l:l&65523;Yl(d,f&255)|0;l=0}else l=7;i=u;return l|0}function cm(a){a=a|0;var b=0,c=0;b=e[(a&o)+8>>1]|0;c=b&12;if(!c)if(!(b&18))b=0;else b=np(a)|0;else b=c&65535;return b|0}function dm(a){a=a|0;var d=0.0,f=0,g=0,i=0,j=0;d=+h[(a&q)>>3];if(!(d<=-9223372036854775808.0)&!(d>=9223372036854775808.0)?(f=~~d>>>0,g=+R(d)>=1.0?(d>0.0?~~+da(+Q(d/4294967296.0),4294967295.0)>>>0:~~+ba((d-+(~~d>>>0))/4294967296.0)>>>0):0,i=jw(f|0,g|0,1,-2147483648)|0,j=G,!(d!=+(f>>>0)+4294967296.0*+(g|0)|(j>>>0<0|(j|0)==0&i>>>0<2))):0){i=a;c[(i&p)>>2]=f;c[(i&p)+4>>2]=g;f=a+8|0;b[(f&o)>>1]=(e[(f&o)>>1]|0)&48640|4}return}function em(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;f=a+204|0;e=c[(f&p)>>2]|0;a:do if(e){h=(b|0)<0;do{while(1){if(!h){if((c[(e&p)>>2]|0)!=(b|0))break;g=c[(e&p)+4>>2]|0;if((g|0)<=31?(1<<g&d|0)!=0:0)break}g=c[(e&p)+12>>2]|0;if(g)cc[g&31](c[(e&p)+8>>2]|0);c[(f&p)>>2]=c[(e&p)+16>>2];mg(c[(a&p)>>2]|0,e);e=c[(f&p)>>2]|0;if(!e)break a}f=e+16|0;e=c[(f&p)>>2]|0}while((e|0)!=0)}while(0);return}function fm(a,b,c){a=a|0;b=b|0;c=c|0;do if(b<<24>>24>66){b=e[(a&o)+8>>1]|0;if(!(b&4)){if(b&8){dm(a);break}if(b&2)rh(a,1)}}else if(b<<24>>24==66?(b=e[(a&o)+8>>1]|0,!((b&2|0)!=0|(b&12|0)==0)):0)bm(a,c,1)|0;while(0);return}function gm(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,i=0,j=0;j=a+8|0;g=b[(j&o)>>1]|0;i=g&65535;do if(!(i&1)){d=d&255;if((d|0)==68){d=Vg(a)|0;g=a;c[(g&p)>>2]=d;c[(g&p)+4>>2]=G;b[(j&o)>>1]=(e[(j&o)>>1]|0)&48640|4;break}else if((d|0)==67){op(a);break}else if((d|0)==69){h[(a&q)>>3]=+Ug(a);b[(j&o)>>1]=(e[(j&o)>>1]|0)&48640|8;break}else if((d|0)==65){if(i&16){b[(j&o)>>1]=i&65040;break}if(!((i&2|0)!=0|(i&12|0)==0)){bm(a,f,1)|0;g=b[(j&o)>>1]|0}b[(j&o)>>1]=g&48640|16;break}else{d=i>>>3&2|i;g=d&65535;b[(j&o)>>1]=g;if(!((d&2|0)!=0|(i&12|0)==0)){bm(a,f,1)|0;g=b[(j&o)>>1]|0}b[(j&o)>>1]=g&49123;break}}while(0);return}function hm(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0.0,i=0,j=0.0,k=0,l=0,m=0;l=b[(a&o)+8>>1]|0;k=l&65535;i=b[(d&o)+8>>1]|0;m=i&65535;f=(i|l)&65535;do if(!(f&1)){if(!(f&12)){if(f&2){if(!(k&2)){f=1;break}if(!(m&2)){f=-1;break}if(e){f=pp(a,d,e,0)|0;break}}f=qp(a,d)|0;break}if((l&4&i)<<16>>16){l=a;k=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;i=d;f=c[(i&p)>>2]|0;i=c[(i&p)+4>>2]|0;if((l|0)<(i|0)|(l|0)==(i|0)&k>>>0<f>>>0){f=-1;break}f=((l|0)>(i|0)|(l|0)==(i|0)&k>>>0>f>>>0)&1;break}if(!(k&8)){if(!(k&4)){f=1;break}f=a;j=+((c[(f&p)>>2]|0)>>>0)+4294967296.0*+(c[(f&p)+4>>2]|0)}else j=+h[(a&q)>>3];if(!(m&8)){if(!(m&4)){f=-1;break}f=d;g=+((c[(f&p)>>2]|0)>>>0)+4294967296.0*+(c[(f&p)+4>>2]|0)}else g=+h[(d&q)>>3];if(j<g)f=-1;else f=j>g&1}else f=(m&1)-(k&1)|0;while(0);return f|0}function im(b){b=b|0;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;e=g+8|0;d=b+48|0;d=Cm(c[(b&p)>>2]|0,0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0,0,e)|0;do if(!d)if(!(c[(e&p)>>2]|0)){a[(b&n)+26>>0]=0;c[(b&p)+60>>2]=0;d=0;break}else{c[(f&p)>>2]=67421;c[(f&p)+4>>2]=10788;bd(11,13600,f);d=11;break}while(0);i=g;return d|0}function jm(b){b=b|0;var d=0,e=0,f=0;e=c[(b&p)>>2]|0;f=e+73|0;d=a[(f&n)>>0]|0;do if((d&255)>2){d=Kn(e)|0;if(!d){d=a[(f&n)>>0]|0;f=5;break}else{c[(b&p)+60>>2]=0;f=6;break}}else f=5;while(0);if((f|0)==5){c[(b&p)+60>>2]=0;if(d<<24>>24==1)d=0;else{d=0;f=6}}if((f|0)==6)a[(b&n)+25>>0]=1;return d|0}function km(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0;h=f+24|0;if(!(b[(f&o)+44>>1]|0)){j=b[(f&o)+76>>1]|0;i=c[(f+(j<<2)&p)+120>>2]|0;j=e[(f+(j<<1)&o)+78>>1]<<1;k=c[(i&p)+64>>2]|0;rp(i,(c[(i&p)+56>>2]|0)+((d[(k+j&n)>>0]<<8|d[(k+(j|1)&n)>>0])&e[(i&o)+20>>1])|0,h);f=f+72|0;a[(f&n)>>0]=d[(f&n)>>0]|2}i=h;f=c[(i&p)+4>>2]|0;h=g;c[(h&p)>>2]=c[(i&p)>>2];c[(h&p)+4>>2]=f;return}function lm(f,g){f=f|0;g=g|0;var h=0,i=0,j=0;if(!(b[(f&o)+44>>1]|0)){i=b[(f&o)+76>>1]|0;h=c[(f+(i<<2)&p)+120>>2]|0;i=e[(f+(i<<1)&o)+78>>1]<<1;j=c[(h&p)+64>>2]|0;rp(h,(c[(h&p)+56>>2]|0)+((d[(j+i&n)>>0]<<8|d[(j+(i|1)&n)>>0])&e[(h&o)+20>>1])|0,f+24|0);h=f+72|0;a[(h&n)>>0]=d[(h&n)>>0]|2}c[(g&p)>>2]=c[(f&p)+36>>2];return}function mm(a,b){a=a|0;b=b|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;e=d[(a&n)>>0]|0;g=d[(a&n)+1>>0]|0;do if(g&128){f=d[(a&n)+2>>0]|0;if(!(f&128)){c[(b&p)>>2]=(f|e<<14)&2080895|g<<7&16256;e=3;break}else{e=sp(a,h)|0;g=h;f=c[(g&p)>>2]|0;c[(b&p)>>2]=((f|0)==(f|0)?0==(c[(g&p)+4>>2]|0):0)?f:-1;break}}else{c[(b&p)>>2]=e<<7&16256|g;e=2}while(0);i=k;return e|0}function nm(d,f,g,h,i){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0;j=(h|0)==0;do if((g+f|0)>>>0>(e[(d&o)+40>>1]|0)>>>0){l=i+8|0;b[(l&o)>>1]=1;h=fh(i,g+2|0)|0;if(!h){k=i+16|0;h=c[(k&p)>>2]|0;if(j)h=Dh(d,f,g,h)|0;else h=Lm(d,f,g,h,0)|0;if(!h){a[((c[(k&p)>>2]|0)+g&n)>>0]=0;a[((c[(k&p)>>2]|0)+g&n)+1>>0]=0;b[(l&o)>>1]=528;c[(i&p)+12>>2]=g;h=0;break}if((b[(l&o)>>1]&9312)==0?(c[(i&p)+24>>2]|0)==0:0)break;Qg(i)}}else{c[(i&p)+16>>2]=(c[(d&p)+32>>2]|0)+f;b[(i&o)+8>>1]=4112;c[(i&p)+12>>2]=g;h=0}while(0);return h|0}function om(e,f,g){e=e|0;f=f|0;g=g|0;var h=0;switch(f|0){case 9:case 8:{e=g;c[(e&p)>>2]=f+-8;c[(e&p)+4>>2]=0;b[(g&o)+8>>1]=4;e=0;break}case 1:{f=a[(e&n)>>0]|0;e=g;c[(e&p)>>2]=f;c[(e&p)+4>>2]=((f|0)<0)<<31>>31;b[(g&o)+8>>1]=4;e=1;break}case 0:case 11:case 10:{b[(g&o)+8>>1]=1;e=0;break}case 3:{f=d[(e&n)+1>>0]<<8|a[(e&n)>>0]<<16|d[(e&n)+2>>0];e=g;c[(e&p)>>2]=f;c[(e&p)+4>>2]=((f|0)<0)<<31>>31;b[(g&o)+8>>1]=4;e=3;break}case 4:{f=d[(e&n)+1>>0]<<16|a[(e&n)>>0]<<24|d[(e&n)+2>>0]<<8|d[(e&n)+3>>0];e=g;c[(e&p)>>2]=f;c[(e&p)+4>>2]=((f|0)<0)<<31>>31;b[(g&o)+8>>1]=4;e=4;break}case 2:{f=a[(e&n)>>0]<<8|d[(e&n)+1>>0];e=g;c[(e&p)>>2]=f;c[(e&p)+4>>2]=((f|0)<0)<<31>>31;b[(g&o)+8>>1]=4;e=2;break}case 7:case 6:{tp(e,f,g);e=8;break}case 5:{h=a[(e&n)>>0]<<8|d[(e&n)+1>>0];f=g;c[(f&p)>>2]=d[(e&n)+3>>0]<<16|d[(e&n)+2>>0]<<24|d[(e&n)+4>>0]<<8|d[(e&n)+5>>0];c[(f&p)+4>>2]=h;b[(g&o)+8>>1]=4;e=6;break}default:{c[(g&p)+16>>2]=e;e=(f+-12|0)>>>1;c[(g&p)+12>>2]=e;b[(g&o)+8>>1]=b[((f&1)<<1&o)+34328>>1]|0}}return e|0}function pm(b,c,d){b=b|0;c=c|0;d=d|0;do if(!(d>>>0<0|(d|0)==0&c>>>0<128))if(d>>>0<0|(d|0)==0&c>>>0<16384){d=mw(c|0,d|0,7)|0;a[(b&n)>>0]=d|128;a[(b&n)+1>>0]=c&127;c=2;break}else{c=up(b,c,d)|0;break}else{a[(b&n)>>0]=c&127;c=1}while(0);return c|0}function qm(e){e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;k=e+73|0;f=a[(k&n)>>0]|0;do if((f&255)>2)if(f<<24>>24==4){f=c[(e&p)+68>>2]|0;break}else{g=e+56|0;Wc(c[(g&p)>>2]|0);c[(g&p)>>2]=0;a[(k&n)>>0]=0;g=5;break}else g=5;while(0);a:do if((g|0)==5){h=e+76|0;f=b[(h&o)>>1]|0;do if(f<<16>>16<=-1){f=c[(e&p)+60>>2]|0;if(!f){a[(k&n)>>0]=0;f=0;break a}g=e+120|0;f=vp(c[((c[(e&p)>>2]|0)&p)+4>>2]|0,f,g,(a[(e&n)+72>>0]&1)<<1^2)|0;if(!f){b[(h&o)>>1]=0;f=g;break}else{a[(k&n)>>0]=0;break a}}else{if(f<<16>>16)do{g=f+-1<<16>>16;b[(h&o)>>1]=g;f=c[(e+(f<<16>>16<<2)&p)+120>>2]|0;if(!f)f=g;else{Bg(c[(f&p)+68>>2]|0);f=b[(h&o)>>1]|0}}while(f<<16>>16!=0);f=e+120|0}while(0);f=c[(f&p)>>2]|0;if((a[(f&n)>>0]|0)!=0?((c[(e&p)+16>>2]|0)==0|0)==(d[(f&n)+2>>0]|0):0){b[(e&o)+78>>1]=0;b[(e&o)+44>>1]=0;g=e+72|0;a[(g&n)>>0]=d[(g&n)>>0]&241;if(b[(f&o)+18>>1]|0){a[(k&n)>>0]=1;f=0;break}if(a[(f&n)+5>>0]|0){a[(k&n)>>0]=0;f=0;break}if((c[(f&p)+72>>2]|0)==1){g=d[(f&n)+6>>0]|0;f=c[(f&p)+56>>2]|0;f=d[(f+g&n)+9>>0]<<16|d[(f+g&n)+8>>0]<<24|d[(f+g&n)+10>>0]<<8|d[(f+g&n)+11>>0];a[(k&n)>>0]=1;f=rm(e,f)|0;break}else{c[(l&p)>>2]=57629;c[(l&p)+4>>2]=10788;bd(11,13600,l);f=11;break}}c[(l&p)>>2]=57618;c[(l&p)+4>>2]=10788;bd(11,13600,l);f=11}while(0);i=m;return f|0}function rm(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;l=q+8|0;g=e+76|0;k=b[(g&o)>>1]|0;h=k<<16>>16;do if(k<<16>>16<=18){k=e+72|0;f=vp(c[(e&p)+4>>2]|0,f,l,(a[(k&n)>>0]&1)<<1^2)|0;if(!f){f=c[(l&p)>>2]|0;l=h+1|0;c[(e+(l<<2)&p)+120>>2]=f;b[(e+(l<<1)&o)+78>>1]=0;b[(g&o)>>1]=(b[(g&o)>>1]|0)+1<<16>>16;b[(e&o)+44>>1]=0;a[(k&n)>>0]=d[(k&n)>>0]&249;if((b[(f&o)+18>>1]|0)!=0?(a[(f&n)+2>>0]|0)==(a[((c[(e+(h<<2)&p)+120>>2]|0)&n)+2>>0]|0):0){f=0;break}c[(m&p)>>2]=57499;c[(m&p)+4>>2]=10788;bd(11,13600,m);f=11}}else{c[(m&p)>>2]=57487;c[(m&p)+4>>2]=10788;bd(11,13600,m);f=11}while(0);i=q;return f|0}function sm(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=a+328|0;a:do if(!(c[(j&p)>>2]|0))a=0;else{g=a+304|0;h=d+1|0;i=0;while(1){if((i|0)>=(c[(g&p)>>2]|0)){a=0;break a}f=c[((c[(j&p)>>2]|0)+(i<<2)&p)>>2]|0;a=c[(c[(f&p)+4>>2]&p)>>2]|0;e=c[(f&p)+8>>2]|0;if((e|0)!=0?(c[(a&p)>>2]|0)>1:0){if(!b){a=c[(a&p)+80>>2]|0;c[(f&p)+20>>2]=h}else if((b|0)==2)a=c[(a&p)+88>>2]|0;else a=c[(a&p)+84>>2]|0;if((a|0)!=0?(c[(f&p)+20>>2]|0)>(d|0):0){a=rc[a&127](e,d)|0;if(!a){i=i+1|0;continue}else break a}}i=i+1|0}}while(0);return a|0}function tm(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;e=c[(b&p)>>2]|0;if(!d){d=b+144|0;k=c[(d&p)+4>>2]|0;if((k|0)>0|(k|0)==0&(c[(d&p)>>2]|0)>>>0>0)g=4;else e=0}else{d=e+504|0;k=e+512|0;d=jw(c[(k&p)>>2]|0,c[(k&p)+4>>2]|0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0)|0;k=G;if((k|0)>0|(k|0)==0&d>>>0>0)g=4;else e=0}if((g|0)==4){c[(b&p)+80>>2]=787;a[(b&n)+86>>0]=2;dh(b+44|0,e,34376,f);e=1}i=h;return e|0}function um(e,f,g){e=e|0;f=f|0;g=g|0;var h=0;if((e|0)!=0?(a[(e&n)+8>>0]|0)==2:0){h=c[(e&p)+4>>2]|0;c[(h&p)+4>>2]=c[(e&p)>>2];f=jp(c[(h&p)>>2]|0,f,g)|0;if(!f){if((g|0)<0?(b[(h&o)+22>>1]&8)!=0:0)c[(h&p)+44>>2]=0;f=Cg(h)|0;e=c[((c[(h&p)+12>>2]|0)&p)+56>>2]|0;c[(h&p)+44>>2]=d[(e&n)+29>>0]<<16|d[(e&n)+28>>0]<<24|d[(e&n)+30>>0]<<8|d[(e&n)+31>>0]}}else f=0;return f|0}function vm(a,b){a=a|0;b=b|0;a=a+16|0;ql(c[((c[(a&p)>>2]|0)+(b<<4)&p)+12>>2]|0);if((b|0)!=1)ql(c[((c[(a&p)>>2]|0)&p)+28>>2]|0);return}function wm(a,b,e){a=a|0;b=b|0;e=e|0;var f=0;f=c[(a&p)+4>>2]|0;c[(f&p)+4>>2]=c[(a&p)>>2];if((b|0)==15)f=(c[(a&p)+20>>2]|0)+(c[((c[(f&p)>>2]|0)&p)+100>>2]|0)|0;else{b=b<<2;f=c[((c[(f&p)+12>>2]|0)&p)+56>>2]|0;f=(d[(f+b&n)+37>>0]|0)<<16|(d[(f+b&n)+36>>0]|0)<<24|(d[(f+b&n)+38>>0]|0)<<8|(d[(f+b&n)+39>>0]|0)}c[(e&p)>>2]=f;return}function xm(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,q=0;k=(c[(d&p)+28>>2]|0)-e|0;i=c[(d&p)+8>>2]|0;q=(f<<3)+88|0;m=(h|0)!=0;l=d+56|0;j=c[((c[(l&p)>>2]|0)+(e<<2)&p)>>2]|0;if(j){Bm(d,j);c[((c[(l&p)>>2]|0)+(e<<2)&p)>>2]=0}if(!(fh(i+(k*40|0)|0,(m?200:0)+q|0)|0)){k=i+(k*40|0)+16|0;h=c[(k&p)>>2]|0;c[((c[(l&p)>>2]|0)+(e<<2)&p)>>2]=h;i=h+0|0;j=i+88|0;do{c[(i&p)>>2]=0;i=i+4|0}while((i|0)<(j|0));a[(h&n)+24>>0]=g;b[(h&o)+20>>1]=f;c[(h&p)+80>>2]=h+84+(f<<2);if(m){i=(c[(k&p)>>2]|0)+q|0;c[(h&p)>>2]=i;i=i+0|0;j=i+76|0;do{c[(i&p)>>2]=0;i=i+4|0}while((i|0)<(j|0))}}else h=0;return h|0}function ym(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;k=c[(d&p)+4>>2]|0;c[(k&p)+4>>2]=c[(d&p)>>2];if(f)if(!(b[(k&o)+22>>1]&1)){j=k+80|0;if(!(c[(j&p)>>2]|0)){i=Go(c[(k&p)+32>>2]|0)|0;c[(j&p)>>2]=i;if(!i)i=7;else{l=i;i=l;a[(i&n)>>0]=0;a[(i&n)+1>>0]=0;a[(i&n)+2>>0]=0;a[(i&n)+3>>0]=0;l=l+4|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;c[(j&p)>>2]=(c[(j&p)>>2]|0)+4;l=6}}else l=6}else i=8;else l=6;if((l|0)==6){if((e|0)==1)e=(c[(k&p)+44>>2]|0)!=0&1;c[(h&p)+60>>2]=e;b[(h&o)+76>>1]=-1;c[(h&p)+16>>2]=g;c[(h&p)>>2]=d;c[(h&p)+4>>2]=k;a[(h&n)+72>>0]=f;i=k+8|0;e=c[(i&p)>>2]|0;c[(h&p)+8>>2]=e;if(e)c[(e&p)+12>>2]=h;c[(i&p)>>2]=h;a[(h&n)+73>>0]=0;i=0}return i|0}function zm(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;S=i;i=i+128|0;if((i|0)>=(j|0))fa();D=S;K=S+12|0;H=S+8|0;P=S+16|0;N=(g|0)==0;if(!N){r=(a[(g&n)>>0]|0)==0;if(_v(g,14640)|0)if(r)J=4;else{r=0;J=5}else O=1}else J=4;if((J|0)==4)if((a[(h&n)+64>>0]|0)==2){O=1;r=1}else{r=1;J=5}if((J|0)==5)O=(m&128|0)!=0;M=O?l|2:l;if((m&256|0)!=0&(O|r))m=m&-769|512;R=qg(48,0)|0;a:do if(R){x=R+0|0;w=x+48|0;do{a[(x&n)>>0]=0;x=x+1|0}while((x|0)<(w|0));c[(R&p)>>2]=h;c[(R&p)+32>>2]=R;c[(R&p)+36>>2]=1;b:do if(!r?!(O&(m&64|0)==0|(m&131072|0)==0):0){if(N)r=1;else{r=g;while(1)if(!(a[(r&n)>>0]|0))break;else r=r+1|0;r=(r-g&1073741823)+1|0}l=(c[(f&p)+8>>2]|0)+1|0;u=(l|0)>(r|0)?l:r;u=qg(u,((u|0)<0)<<31>>31)|0;t=R+9|0;a[(t&n)>>0]=1;if(!u){Wc(R);q=7;break a}if(!O){a[(u&n)>>0]=0;r=pc[c[(f&p)+36>>2]&31](f,g,l,u)|0;if(r){Wc(u);Wc(R);q=r;break a}}else kw(u|0,g|0,r|0)|0;r=c[3664]|0;c:do if(r){while(1){l=c[(r&p)>>2]|0;if((_v(u,c[(l&p)+168>>2]|0)|0)==0?(c[(l&p)>>2]|0)==(f|0):0)break;r=c[(r&p)+68>>2]|0;if(!r)break c}l=c[(h&p)+20>>2]|0;d:do if((l|0)>0){s=c[(h&p)+16>>2]|0;while(1){l=l+-1|0;G=c[(s+(l<<4)&p)+4>>2]|0;if((G|0)!=0?(c[(G&p)+4>>2]|0)==(r|0):0)break;if((l|0)<=0)break d}Wc(u);Wc(R);q=19;break a}while(0);c[(R&p)+4>>2]=r;G=r+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;Wc(u);if(!r){J=32;break b}if(!(a[(t&n)>>0]|0))break b;else{J=105;break b}}while(0);Wc(u);J=32}else J=32;while(0);e:do if((J|0)==32){L=qg(84,0)|0;if(L){x=L+0|0;w=x+84|0;do{a[(x&n)>>0]=0;x=x+1|0}while((x|0)<(w|0));F=M&1;G=(F|0)==0;c[(K&p)>>2]=1024;E=f+4|0;r=c[(E&p)>>2]|0;if((r|0)>40)l=r+7&-8;else l=40;c[(L&p)>>2]=0;do if(!(M&2))if(!N)if(a[(g&n)>>0]|0){y=f+8|0;t=(c[(y&p)>>2]|0)+1|0;A=t<<1;A=qg(A,((A|0)<0)<<31>>31)|0;if(!A)q=7;else{a[(A&n)>>0]=0;r=pc[c[(f&p)+36>>2]&31](f,g,t,A)|0;t=A;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;x=t-A&1073741823;u=g;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;w=(u-g&1073741823)+1|0;u=a[(g+w&n)>>0]|0;w=g+w|0;if(!(u<<24>>24))t=w;else{t=w;do{if(!(u<<24>>24))u=t;else{u=t;do u=u+1|0;while((a[(u&n)>>0]|0)!=0)}u=u-t&1073741823;s=t+(u+1)|0;v=s;while(1)if(!(a[(v&n)>>0]|0))break;else v=v+1|0;t=t+(u+2+(v-s&1073741823))|0;u=a[(t&n)>>0]|0}while(u<<24>>24!=0)}if(!r){if((x+8|0)<=(c[(y&p)>>2]|0)){z=1;D=0;y=x;x=t+1-w|0;u=A;J=58;break}c[(D&p)>>2]=46171;c[(D&p)+4>>2]=10788;bd(14,14848,D);r=14}Wc(A);J=89}}else{z=1;D=0;y=0;x=0;u=0;w=0;J=58}else{g=0;z=0;D=0;y=0;x=0;u=0;w=0;J=58}else if(!N)if(a[(g&n)>>0]|0){u=kh(0,g)|0;if(!u)q=7;else{r=u;while(1)if(!(a[(r&n)>>0]|0))break;else r=r+1|0;g=0;z=0;D=1;y=r-u&1073741823;x=0;w=0;J=58}}else{z=1;D=1;y=0;x=0;u=0;w=0;J=58}else{g=0;z=0;D=1;y=0;x=0;u=0;w=0;J=58}while(0);do if((J|0)==58){t=(l<<1)+17+(y*3|0)+x+((c[(E&p)>>2]|0)+271&-8)|0;C=qg(t,0)|0;if(!C){if(!u){q=7;break}Wc(u);q=7;break}fw(C|0,0,t|0)|0;A=C+204|0;c[(A&p)>>2]=C+216;B=C+60|0;c[(B&p)>>2]=C+264;v=(c[(E&p)>>2]|0)+271&-8;c[(C&p)+68>>2]=C+v;v=v+l|0;c[(C&p)+64>>2]=C+v;v=v+l|0;t=C+v|0;r=C+168|0;c[(r&p)>>2]=t;if(u){s=y+1|0;l=C+172|0;c[(l&p)>>2]=C+(x+s+v);kw(t|0,u|0,y|0)|0;if(x)kw((c[(r&p)>>2]|0)+s|0,w|0,x|0)|0;kw(c[(l&p)>>2]|0,u|0,y|0)|0;x=(c[(l&p)>>2]|0)+y+0|0;v=14928;w=x+10|0;do{a[(x&n)>>0]=a[(v&n)>>0]|0;x=x+1|0;v=v+1|0}while((x|0)<(w|0));l=(c[(l&p)>>2]|0)+(y+9)|0;E=C+212|0;c[(E&p)>>2]=l;kw(l|0,u|0,y|0)|0;E=(c[(E&p)>>2]|0)+y|0;a[(E&n)>>0]=a[14944]|0;a[(E&n)+1>>0]=a[14945]|0;a[(E&n)+2>>0]=a[14946]|0;a[(E&n)+3>>0]=a[14947]|0;a[(E&n)+4>>0]=a[14948]|0;Wc(u)}c[(C&p)>>2]=f;c[(C&p)+144>>2]=m;do if(z?(a[(g&n)>>0]|0)!=0:0){c[(H&p)>>2]=0;r=tc[c[(f&p)+24>>2]&31](f,c[(r&p)>>2]|0,c[(B&p)>>2]|0,m&556927,H)|0;s=c[(H&p)>>2]&1;if(!r){r=c[(B&p)>>2]|0;r=lc[c[((c[(r&p)>>2]|0)&p)+48>>2]&127](r)|0;do if((s|0)==0?(wp(C),I=c[(C&p)+148>>2]|0,I>>>0>1024):0)if(I>>>0>8192){c[(K&p)>>2]=8192;break}else{c[(K&p)>>2]=I;break}while(0);a[(C&n)+13>>0]=fg(g,14952,0)|0;if((r&8192|0)==0?(fg(g,14960,0)|0)==0:0){v=0;J=77;break}r=m|1;J=76}}else{r=m;J=76}while(0);if((J|0)==76){a[(C&n)+16>>0]=1;a[(C&n)+17>>0]=4;a[(C&n)+13>>0]=1;s=r&1;v=1;J=77}if((J|0)==77){r=al(C,K,-1)|0;if(!r){l=c[(K&p)>>2]|0;u=(D|0)==0;m=D^1;t=u?75:0;r=c[(A&p)>>2]|0;x=r+0|0;w=x+48|0;do{c[(x&p)>>2]=0;x=x+4|0}while((x|0)<(w|0));c[(r&p)+20>>2]=1;c[(r&p)+24>>2]=80;a[(r&n)+28>>0]=m;a[(r&n)+29>>0]=2;c[(r&p)+32>>2]=t;c[(r&p)+36>>2]=C;c[(r&p)+16>>2]=100;r=Ho(r,l)|0;if(!r){a[(C&n)+6>>0]=F^1;c[(C&p)+156>>2]=1073741823;a[(C&n)+12>>0]=v;a[(C&n)+4>>0]=v;a[(C&n)+18>>0]=v;a[(C&n)+15>>0]=D;a[(C&n)+14>>0]=s;a[(C&n)+7>>0]=v;if(!(v<<24>>24)){a[(C&n)+8>>0]=1;a[(C&n)+11>>0]=2;a[(C&n)+10>>0]=34;a[(C&n)+9>>0]=2}b[(C&o)+140>>1]=80;H=C+160|0;c[(H&p)>>2]=-1;c[(H&p)+4>>2]=-1;wp(C);do if(G){if(u)break;a[(C&n)+5>>0]=4}else a[(C&n)+5>>0]=2;while(0);c[(C&p)+196>>2]=21;c[(L&p)>>2]=C;J=90;break}}}l=c[(B&p)>>2]|0;m=c[(l&p)>>2]|0;if(m){lc[c[(m&p)+4>>2]&127](l)|0;c[(l&p)>>2]=0}$k(c[(C&p)+200>>2]|0);Wc(C);J=89}while(0);if((J|0)==89)if(!r)J=90;else q=r;do if((J|0)==90){r=c[(L&p)>>2]|0;H=h+40|0;w=c[(H&p)+4>>2]|0;x=r+128|0;c[(x&p)>>2]=c[(H&p)>>2];c[(x&p)+4>>2]=w;x=P+0|0;w=x+100|0;do{a[(x&n)>>0]=0;x=x+1|0}while((x|0)<(w|0));r=c[(r&p)+60>>2]|0;l=c[(r&p)>>2]|0;if((l|0)!=0?(q=tc[c[(l&p)+8>>2]&31](r,P,100,0,0)|0,!((q|0)==0|(q|0)==522)):0)break;a[(L&n)+16>>0]=M;c[(L&p)+4>>2]=h;r=c[(L&p)>>2]|0;l=r+176|0;c[(l&p)>>2]=76;c[(r&p)+180>>2]=L;m=c[(r&p)+60>>2]|0;q=c[(m&p)>>2]|0;if(!q)l=r;else{ac[c[(q&p)+40>>2]&63](m,15,l)|0;l=c[(L&p)>>2]|0}c[(R&p)+4>>2]=L;c[(L&p)+8>>2]=0;c[(L&p)+12>>2]=0;if(a[(l&n)+14>>0]|0){H=L+22|0;b[(H&o)>>1]=e[(H&o)>>1]|1}H=d[(P&n)+17>>0]<<16|d[(P&n)+16>>0]<<8;m=L+32|0;c[(m&p)>>2]=H;if((H+-512|0)>>>0<=65024?(H+16777215&H|0)==0:0){r=a[(P&n)+20>>0]|0;H=L+22|0;b[(H&o)>>1]=e[(H&o)>>1]|2;a[(L&n)+17>>0]=(d[(P&n)+53>>0]<<16|d[(P&n)+52>>0]<<24|d[(P&n)+54>>0]<<8|d[(P&n)+55>>0]|0)!=0&1;a[(L&n)+18>>0]=(d[(P&n)+65>>0]<<16|d[(P&n)+64>>0]<<24|d[(P&n)+66>>0]<<8|d[(P&n)+67>>0]|0)!=0&1}else{c[(m&p)>>2]=0;if(N|O)r=0;else{a[(L&n)+17>>0]=0;a[(L&n)+18>>0]=0;r=0}}r=r&255;q=al(l,m,r)|0;if(!q){c[(L&p)+36>>2]=(c[(m&p)>>2]|0)-r;if(!(a[(R&n)+9>>0]|0))break e;c[(L&p)+64>>2]=1;c[(L&p)+68>>2]=c[3664];c[3664]=L;J=105;break e}}while(0);if(L){m=c[(L&p)>>2]|0;if(!m)m=L;else{lp(m);m=L}}else m=0}else{m=0;q=7}Wc(m);Wc(R);c[(k&p)>>2]=0;break a}while(0);f:do if((J|0)==105?(Q=c[(h&p)+20>>2]|0,(Q|0)>0):0){m=c[(h&p)+16>>2]|0;l=0;while(1){q=c[(m+(l<<4)&p)+4>>2]|0;if((q|0)!=0?(a[(q&n)+9>>0]|0)!=0:0){l=q;break}l=l+1|0;if((l|0)>=(Q|0))break f}while(1){q=l+28|0;m=c[(q&p)>>2]|0;if(!m){m=l;break}else l=m}r=c[(R&p)+4>>2]|0;if(r>>>0<(c[(m&p)+4>>2]|0)>>>0){c[(R&p)+24>>2]=m;c[(R&p)+28>>2]=0;c[(q&p)>>2]=R;break}while(1){q=m+24|0;l=c[(q&p)>>2]|0;if(!l){J=113;break}if((c[(l&p)+4>>2]|0)>>>0<r>>>0)m=l;else{J=115;break}}if((J|0)==113){c[(R&p)+24>>2]=0;c[(R&p)+28>>2]=m}else if((J|0)==115){c[(R&p)+24>>2]=l;c[(R&p)+28>>2]=m;c[(l&p)+28>>2]=R}c[(q&p)>>2]=R}while(0);c[(k&p)>>2]=R;q=c[(R&p)+4>>2]|0;c[(q&p)+4>>2]=c[(R&p)>>2];if(!(c[(q&p)+48>>2]|0)){q=c[((c[(q&p)>>2]|0)&p)+204>>2]|0;c[(q&p)+16>>2]=2e3;jc[c[8868>>2]&15](c[(q&p)+40>>2]|0,2e3);q=0}else q=0}else q=7;while(0);i=S;return q|0}function Am(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+48|0;if((i|0)>=(j|0))fa();t=A;x=A+28|0;y=A+24|0;w=A+20|0;o=A+16|0;r=A+12|0;s=A+32|0;u=A+8|0;h=c[(b&p)>>2]|0;v=c[(b&p)+4>>2]|0;g=v+4|0;c[(g&p)>>2]=h;a:do if(!(a[(v&n)+17>>0]|0)){g=ip(v,x,y,1,0)|0;c[(w&p)>>2]=g;if(!g){h=c[(x&p)>>2]|0;z=39}}else{q=v+8|0;k=c[(q&p)>>2]|0;if(k)do{m=k+72|0;a[(m&n)>>0]=d[(m&n)>>0]&251;k=c[(k&p)+8>>2]|0}while((k|0)!=0);c[(g&p)>>2]=h;m=c[((c[(v&p)+12>>2]|0)&p)+56>>2]|0;m=d[(m&n)+53>>0]<<16|d[(m&n)+52>>0]<<24|d[(m&n)+54>>0]<<8|d[(m&n)+55>>0];c[(y&p)>>2]=m;h=((c[2514]|0)>>>0)/((c[(v&p)+32>>2]|0)>>>0)|0;g=v+36|0;while(1){l=m+1|0;if(l>>>0<2)k=0;else{k=m+-1|0;k=k-((k>>>0)%(((((c[(g&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;k=((k+1|0)==(h|0)?3:2)+k|0}if((l|0)==(k|0)|(m|0)==(h|0))m=l;else break}c[(y&p)>>2]=l;g=ip(v,r,o,l,1)|0;c[(w&p)>>2]=g;if(!g){m=c[(o&p)>>2]|0;do if((m|0)==(l|0)){h=c[(r&p)>>2]|0;c[(x&p)>>2]=h}else{a[(s&n)>>0]=0;c[(u&p)>>2]=0;k=c[(q&p)>>2]|0;b:do if(!k)g=0;else{while(1){if(k)break;k=c[2]|0;if(!k){g=0;break b}}g=Fl(k,0,0)|0}while(0);c[(w&p)>>2]=g;k=c[(r&p)>>2]|0;if(k)Bg(c[(k&p)+68>>2]|0);if(g)break a;g=dl(v,l,x,0)|0;c[(w&p)>>2]=g;if(g)break a;g=hp(v,l,s,u)|0;c[(w&p)>>2]=g;k=a[(s&n)>>0]|0;if((k+-1&255)>=2){h=c[(x&p)>>2]|0;if(!g){g=Zm(v,h,k,c[(u&p)>>2]|0,m,0)|0;c[(w&p)>>2]=g;if(h)Bg(c[(h&p)+68>>2]|0);if(g)break a;g=dl(v,l,x,0)|0;c[(w&p)>>2]=g;if(g)break a;h=c[(x&p)>>2]|0;k=h+68|0;g=Gg(c[(k&p)>>2]|0)|0;c[(w&p)>>2]=g;if(!g)break;if(!h)break a;Bg(c[(k&p)>>2]|0);break a}}else{c[(t&p)>>2]=60876;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(w&p)>>2]=11;g=11;h=c[(x&p)>>2]|0}if(!h)break a;Bg(c[(h&p)+68>>2]|0);break a}while(0);zp(v,l,1,0,w);g=c[(w&p)>>2]|0;if(g){if(!h)break;Bg(c[(h&p)+68>>2]|0);break}g=Dg(b,4,l)|0;c[(w&p)>>2]=g;if(g){if(h)Bg(c[(h&p)+68>>2]|0)}else z=39}}while(0);if((z|0)==39){pl(h,(f&1|0)==0?10:13);g=c[((c[(x&p)>>2]|0)&p)+68>>2]|0;if(g)Bg(g);c[(e&p)>>2]=c[(y&p)>>2];g=0}i=A;return g|0}function Bm(a,b){a=a|0;b=b|0;var d=0,e=0;do if(b){a=c[(a&p)>>2]|0;d=b+56|0;e=c[(d&p)>>2]|0;if(e){_m(a,e);Wc(c[(e&p)+40>>2]|0);mg(a,e);c[(d&p)>>2]=0}a=c[(b&p)+4>>2]|0;if(a){Ml(a);break}a=c[(b&p)>>2]|0;if(a){kp(a);break}a=c[(b&p)+32>>2]|0;if(a){e=c[(a&p)>>2]|0;d=c[(e&p)>>2]|0;e=e+4|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+-1;lc[c[(d&p)+28>>2]&127](a)|0}}while(0);return}function Cm(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,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;Q=i;i=i+16|0;if((i|0)>=(j|0))fa();O=Q+8|0;N=Q;t=f+73|0;do if(((a[(t&n)>>0]|0)==1?(s=d[(f&n)+72>>0]|0,(s&2|0)!=0):0)?(a[((c[(f&p)+120>>2]|0)&n)+2>>0]|0)!=0:0){q=f+24|0;r=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;if((r|0)==(h|0)&(q|0)==(k|0)){c[(m&p)>>2]=0;q=0;break}if((s&8|0)!=0&((q|0)<(k|0)|(q|0)==(k|0)&r>>>0<h>>>0)){c[(m&p)>>2]=-1;q=0}else P=8}else P=8;while(0);do if((P|0)==8){if(!g)J=0;else{r=c[(g&p)>>2]|0;if(((e[(r&o)+8>>1]|0)+(e[(r&o)+6>>1]|0)|0)<14){q=e[((c[(g&p)+8>>2]|0)&o)+8>>1]|0;K=(a[(c[(r&p)+16>>2]&n)>>0]|0)==0;c[(g&p)+12>>2]=K?-1:1;c[(g&p)+16>>2]=K?1:-1;if(!(q&4))if((q&25|0)==0?(c[(r&p)+20>>2]|0)==0:0)r=39;else P=13;else r=38}else P=13;if((P|0)==13)r=40;a[(g&n)+7>>0]=0;J=r}q=qm(f)|0;if(!q){if(!(a[(t&n)>>0]|0)){c[(m&p)>>2]=-1;q=0;break}K=f+76|0;F=1-l|0;G=(J|0)==0;L=f+72|0;H=f+24|0;I=f+24|0;a:do{l=b[(K&o)>>1]|0;D=c[(f+(l<<2)&p)+120>>2]|0;E=D+18|0;s=(e[(E&o)>>1]|0)+-1|0;r=s>>F;b[(f+(l<<1)&o)+78>>1]=r;l=D+56|0;A=D+20|0;B=D+64|0;C=D+7|0;b:do if(G){v=D+3|0;u=D+60|0;t=0;w=s;while(1){s=r<<1;z=c[(B&p)>>2]|0;s=(c[(l&p)>>2]|0)+(((d[(z+s&n)>>0]<<8|d[(z+(s|1)&n)>>0])&e[(A&o)>>1])+(d[(C&n)>>0]|0))|0;c:do if(a[(v&n)>>0]|0)while(1){z=s;s=s+1|0;if((a[(z&n)>>0]|0)>=0)break c;if(s>>>0>=(c[(u&p)>>2]|0)>>>0){P=25;break a}}while(0);sp(s,N)|0;q=N;s=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;if((q|0)<(k|0)|(q|0)==(k|0)&s>>>0<h>>>0){t=r+1|0;if((r|0)<(w|0))s=w;else{q=-1;P=49;break b}}else{if(!((q|0)>(k|0)|(q|0)==(k|0)&s>>>0>h>>>0)){t=q;break}s=r+-1|0;if((t|0)>(s|0)){q=1;P=49;break b}}r=s+t>>1;w=s}a[(L&n)>>0]=d[(L&n)>>0]|2;C=H;c[(C&p)>>2]=s;c[(C&p)+4>>2]=t;b[(f+(b[(K&o)>>1]<<1)&o)+78>>1]=r;if(a[(D&n)+5>>0]|0){P=31;break a}}else{x=D+8|0;y=D+10|0;z=r;t=0;while(1){q=c[(l&p)>>2]|0;v=z<<1;r=c[(B&p)>>2]|0;v=(d[(r+v&n)>>0]<<8|d[(r+(v|1)&n)>>0])&e[(A&o)>>1];r=v+(d[(C&n)>>0]|0)|0;R=a[(q+r&n)>>0]|0;w=R&255;u=q+(r+1)|0;do if((R&255)>(d[(x&n)>>0]|0)){u=d[(u&n)>>0]|0;if((u&128|0)==0?(M=u+(w<<7&16256)|0,(M|0)<=(e[(y&o)>>1]|0)):0){q=ac[J&63](M,q+(r+2)|0,g)|0;break}rp(D,q+v|0,I);u=c[(I&p)>>2]|0;r=qg(u,((u|0)<0)<<31>>31)|0;if(!r){q=7;break a}b[(f+(b[(K&o)>>1]<<1)&o)+78>>1]=z;q=Lm(f,0,u,r,2)|0;if(q){P=40;break a}q=ac[J&63](u,r,g)|0;Wc(r)}else q=ac[J&63](w,u,g)|0;while(0);if((q|0)<0)t=z+1|0;else{if((q|0)<=0){r=z;P=46;break a}s=z+-1|0}if((t|0)>(s|0)){r=z;P=49;break b}z=s+t>>1}}while(0);if((P|0)==49){P=0;if(a[(D&n)+5>>0]|0){P=51;break}l=D+56|0;r=t}t=c[(l&p)>>2]|0;if((r|0)<(e[(E&o)>>1]|0)){s=r<<1;E=c[(D&p)+64>>2]|0;s=(d[(E+s&n)>>0]<<8|d[(E+(s|1)&n)>>0])&e[(D&o)+20>>1];s=d[(t+s&n)+1>>0]<<16|d[(t+s&n)>>0]<<24|d[(t+s&n)+2>>0]<<8|d[(t+s&n)+3>>0]}else{s=d[(D&n)+6>>0]|0;s=d[(t+s&n)+9>>0]<<16|d[(t+s&n)+8>>0]<<24|d[(t+s&n)+10>>0]<<8|d[(t+s&n)+11>>0]}b[(f+(b[(K&o)>>1]<<1)&o)+78>>1]=r;q=rm(f,s)|0}while((q|0)==0);if((P|0)==25){c[(O&p)>>2]=57865;c[(O&p)+4>>2]=10788;bd(11,13600,O);q=11;break}else if((P|0)==31){c[(m&p)>>2]=0;q=0}else if((P|0)==40)Wc(r);else if((P|0)==46){c[(m&p)>>2]=0;b[(f+(b[(K&o)>>1]<<1)&o)+78>>1]=r;q=(a[(g&n)+7>>0]|0)==0?0:11}else if((P|0)==51){b[(f+(b[(K&o)>>1]<<1)&o)+78>>1]=r;c[(m&p)>>2]=q;q=0}b[(f&o)+44>>1]=0;a[(L&n)>>0]=d[(L&n)>>0]&249}}while(0);i=Q;return q|0}function Dm(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0;b[(f&o)+44>>1]=0;h=f+72|0;a[(h&n)>>0]=d[(h&n)>>0]&249;c[(g&p)>>2]=0;do if((a[(f&n)+73>>0]|0)==1){h=f+76|0;k=b[(h&o)>>1]|0;i=c[(f+(k<<2)&p)+120>>2]|0;k=f+(k<<1)+78|0;j=(b[(k&o)>>1]|0)+1<<16>>16;b[(k&o)>>1]=j;if((j&65535)>=(e[(i&o)+18>>1]|0)){h=f+(b[(h&o)>>1]<<1)+78|0;b[(h&o)>>1]=(b[(h&o)>>1]|0)+-1<<16>>16;h=Dp(f,g)|0;break}if(!(a[(i&n)+5>>0]|0))h=Vm(f)|0;else h=0}else h=Dp(f,g)|0;while(0);return h|0}function Em(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0;c[(f&p)>>2]=0;j=e+72|0;a[(j&n)>>0]=d[(j&n)>>0]&241;b[(e&o)+44>>1]=0;if(((a[(e&n)+73>>0]|0)==1?(g=b[(e&o)+76>>1]|0,h=e+(g<<1)+78|0,i=b[(h&o)>>1]|0,i<<16>>16!=0):0)?(a[((c[(e+(g<<2)&p)+120>>2]|0)&n)+5>>0]|0)!=0:0){b[(h&o)>>1]=i+-1<<16>>16;g=0}else g=Ep(e,f)|0;return g|0}function Fm(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;i=0-d&7;j=a+6|0;h=b[(j&o)>>1]|0;g=((h&65535)*40|0)+64|0;if((g|0)>(i+e|0)){g=mh(c[(a&p)+12>>2]|0,g,0)|0;c[(f&p)>>2]=g;if(!g)g=0;else{h=b[(j&o)>>1]|0;k=5}}else{c[(f&p)>>2]=0;g=d+i|0;k=5}if((k|0)==5){c[(g&p)+8>>2]=g+24;c[(g&p)>>2]=a;b[(g&o)+4>>1]=(h&65535)+1}return g|0}function Gm(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x+4|0;v=x;m=c[(h&p)+8>>2]|0;a[(h&n)+6>>0]=0;k=a[(g&n)>>0]|0;if(k<<24>>24>-1){k=k&255;c[(w&p)>>2]=k;l=1}else{l=mm(g,w)|0;k=c[(w&p)>>2]|0}u=d+4|0;s=d+12|0;t=h+4|0;d=k;r=k;q=l&255;k=0;while(1){if(q>>>0>=d>>>0|(r|0)>(f|0))break;h=g+q|0;d=a[(h&n)>>0]|0;if(d<<24>>24>-1){c[(v&p)>>2]=d&255;h=1}else h=mm(h,v)|0;a[(m&n)+10>>0]=a[(u&n)>>0]|0;c[(m&p)+32>>2]=c[(s&p)>>2];c[(m&p)+24>>2]=0;l=om(g+r|0,c[(v&p)>>2]|0,m)|0;k=k+1<<16>>16;if((k&65535)>=(e[(t&o)>>1]|0))break;d=c[(w&p)>>2]|0;r=l+r|0;q=(h&255)+q|0;m=m+40|0}b[(t&o)>>1]=k;i=x;return}function Hm(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;g=b+73|0;if((a[(g&n)>>0]|0)==1?(a[(b&n)+72>>0]&8)!=0:0)f=0;else h=3;do if((h|0)==3){f=qm(b)|0;if(!f){if(!(a[(g&n)>>0]|0)){c[(e&p)>>2]=1;f=0;break}c[(e&p)>>2]=0;f=Fp(b)|0;e=b+72|0;g=d[(e&n)>>0]|0;if(!f){a[(e&n)>>0]=g|8;f=0;break}else{a[(e&n)>>0]=g&247;break}}}while(0);return f|0}function Im(f,g,h,k,l,m,q,r,s){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;var 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,J=0,K=0,L=0,M=0,N=0,O=0;O=i;i=i+32|0;if((i|0)>=(j|0))fa();x=O;D=O+24|0;E=O+20|0;C=O+16|0;N=O+12|0;K=O+8|0;L=O+28|0;c[(K&p)>>2]=s;u=(c[(f&p)>>2]|0)+4|0;w=c[(u&p)>>2]|0;M=f+73|0;do if((a[(M&n)>>0]|0)!=4){v=Ln(w,c[(f&p)+60>>2]|0,f)|0;c[(N&p)>>2]=v;if(!v){if(!(c[(f&p)+16>>2]|0)){v=c[((c[(u&p)>>2]|0)&p)+8>>2]|0;if(v)do{if((a[(v&n)+72>>0]&16)!=0?(H=v+24|0,(c[(H&p)>>2]|0)==(h|0)?(c[(H&p)+4>>2]|0)==(k|0):0):0)a[(v&n)+73>>0]=0;v=c[(v&p)+8>>2]|0}while((v|0)!=0);if((a[(f&n)+72>>0]&2)!=0&((k|0)>0|(k|0)==0&h>>>0>0)?(H=f+24|0,A=c[(H&p)>>2]|0,H=c[(H&p)+4>>2]|0,B=jw(h|0,k|0,-1,-1)|0,(A|0)==(B|0)&(H|0)==(G|0)):0)c[(K&p)>>2]=-1;else F=13}else F=13;if(((F|0)==13?(s|0)==0:0)?(t=Gp(f,g,h,k,r,K)|0,c[(N&p)>>2]=t,(t|0)!=0):0)break;I=f+76|0;J=c[(f+(b[(I&o)>>1]<<2)&p)+120>>2]|0;H=c[(w&p)+80>>2]|0;c[(E&p)>>2]=0;r=J+52|0;B=c[(r&p)>>2]|0;c[(C&p)>>2]=0;v=d[(J&n)+7>>0]|0;w=q+m|0;if(a[(J&n)+3>>0]|0){if(w>>>0<128){a[(H+v&n)>>0]=w;u=1}else u=(pm(H+v|0,w,((w|0)<0)<<31>>31)|0)&255;v=u+v|0}s=(pm(H+v|0,h,k)|0)+v|0;do if(!(a[(J&n)+2>>0]|0))if((k|0)>0|(k|0)==0&h>>>0>2147483647|(g|0)==0){c[(x&p)>>2]=58825;c[(x&p)+4>>2]=10788;bd(11,13600,x);t=11;v=0;break}else{A=m;w=h;m=h;q=g;F=24;break}else{A=0;q=l;F=24}while(0);do if((F|0)==24){v=e[(J&o)+10>>1]|0;if((w|0)>(v|0)){u=e[(J&o)+12>>1]|0;r=(((w-u|0)>>>0)%(((c[((c[(r&p)>>2]|0)&p)+36>>2]|0)+-4|0)>>>0)|0)+u|0;r=(r|0)>(v|0)?u:r;u=r+s|0;v=u+4|0;u=H+u|0}else{v=w+s|0;v=(v|0)<4?4:v;u=H;r=w}if((w|0)>0){h=B+17|0;y=B+36|0;z=B+32|0;g=m;x=H+s|0;k=u;s=0;m=r;while(1){if(!m){x=c[(C&p)>>2]|0;if(!(a[(h&n)>>0]|0))u=x;else{t=((c[2514]|0)>>>0)/((c[(z&p)>>2]|0)>>>0)|0;m=x;while(1){u=m+1|0;if(u>>>0<2)r=0;else{r=m+-1|0;r=r-((r>>>0)%(((((c[(y&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;r=((r+1|0)==(t|0)?3:2)+r|0}if((r|0)==(u|0)|(m|0)==(t|0))m=u;else break}c[(C&p)>>2]=u}t=ip(B,E,C,u,0)|0;c[(D&p)>>2]=t;u=(t|0)==0;if((a[(h&n)>>0]|0)!=0&u){u=c[(C&p)>>2]|0;zp(B,u,(x|0)!=0?4:3,x,D);t=c[(D&p)>>2]|0;if(t){r=s;F=38;break}}else{if(!u)break;u=c[(C&p)>>2]|0}a[(k&n)>>0]=u>>>24;a[(k&n)+1>>0]=u>>>16;a[(k&n)+2>>0]=u>>>8;a[(k&n)+3>>0]=u;if(s)Bg(c[(s&p)+68>>2]|0);t=c[(E&p)>>2]|0;x=t+56|0;k=c[(x&p)>>2]|0;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;x=(c[(x&p)>>2]|0)+4|0;m=(c[(y&p)>>2]|0)+-4|0}else t=s;u=(w|0)>(m|0)?m:w;if((g|0)>0){u=(u|0)>(g|0)?g:u;kw(x|0,q|0,u|0)|0}else fw(x|0,0,u|0)|0;w=w-u|0;r=(g|0)==(u|0);if((w|0)<=0){F=51;break}else{g=r?A:g-u|0;x=x+u|0;q=r?l:q+u|0;s=t;m=m-u|0}}if((F|0)==38){s=c[(E&p)>>2]|0;if(!s)s=r;else{Bg(c[(s&p)+68>>2]|0);s=r}}else if((F|0)==51){if(!t){t=0;break}Bg(c[(t&p)+68>>2]|0);t=0;break}if(s)Bg(c[(s&p)+68>>2]|0)}else t=0}while(0);c[(N&p)>>2]=t;if(!t){t=f+(b[(I&o)>>1]<<1)+78|0;r=b[(t&o)>>1]|0;u=r&65535;s=c[(K&p)>>2]|0;if(!s){t=Gg(c[(J&p)+68>>2]|0)|0;c[(N&p)>>2]=t;if(t)break;t=u<<1;F=c[(J&p)+64>>2]|0;t=(c[(J&p)+56>>2]|0)+((d[(F+t&n)>>0]<<8|d[(F+(t|1)&n)>>0])&e[(J&o)+20>>1])|0;if(!(a[(J&n)+5>>0]|0)){F=d[(t&n)>>0]|d[(t&n)+1>>0]<<8|d[(t&n)+2>>0]<<16|d[(t&n)+3>>0]<<24;a[(H&n)>>0]=F;a[(H&n)+1>>0]=F>>8;a[(H&n)+2>>0]=F>>16;a[(H&n)+3>>0]=F>>24}c[(N&p)>>2]=Hp(J,t,L)|0;Ip(J,u,e[(L&o)>>1]|0,N);t=c[(N&p)>>2]|0;if(!t)t=u;else break}else if((s|0)<0?(b[(J&o)+18>>1]|0)!=0:0){F=r+1<<16>>16;b[(t&o)>>1]=F;t=F&65535}else t=u;Jp(J,t,H,v,0,0,N);b[(f&o)+44>>1]=0;t=c[(N&p)>>2]|0;if(!t)if(!(a[(J&n)+1>>0]|0))t=0;else{t=f+72|0;a[(t&n)>>0]=d[(t&n)>>0]&253;t=Kp(f)|0;c[(N&p)>>2]=t;a[((c[(f+(b[(I&o)>>1]<<2)&p)+120>>2]|0)&n)+1>>0]=0;a[(M&n)>>0]=0}}}else t=v}else t=c[(f&p)+68>>2]|0;while(0);i=O;return t|0}function Jm(f){f=f|0;var g=0,h=0,k=0,l=0,m=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=i;i=i+16|0;if((i|0)>=(j|0))fa();B=C+4|0;t=C+8|0;l=C;m=(c[(f&p)>>2]|0)+4|0;v=c[(m&p)>>2]|0;z=f+76|0;A=b[(z&o)>>1]|0;x=A<<16>>16;s=b[(f+(x<<1)&o)+78>>1]|0;y=s&65535;u=c[(f+(x<<2)&p)+120>>2]|0;do if((s&65535)<(e[(u&o)+18>>1]|0)?(a[(f&n)+73>>0]|0)==1:0){s=y<<1;w=c[(u&p)+64>>2]|0;s=(c[(u&p)+56>>2]|0)+((d[(w+s&n)>>0]<<8|d[(w+(s|1)&n)>>0])&e[(u&o)+20>>1])|0;w=u+5|0;if((a[(w&n)>>0]|0)==0?(c[(l&p)>>2]=0,k=Em(f,l)|0,c[(B&p)>>2]=k,(k|0)!=0):0){g=k;break}k=Ln(v,c[(f&p)+60>>2]|0,f)|0;c[(B&p)>>2]=k;if(!k){if((c[(f&p)+16>>2]|0)==0?(r=f+24|0,q=c[(r&p)>>2]|0,r=c[(r&p)+4>>2]|0,h=c[((c[(m&p)>>2]|0)&p)+8>>2]|0,(h|0)!=0):0)do{if((a[(h&n)+72>>0]&16)!=0?(m=h+24|0,(c[(m&p)>>2]|0)==(q|0)?(c[(m&p)+4>>2]|0)==(r|0):0):0)a[(h&n)+73>>0]=0;h=c[(h&p)+8>>2]|0}while((h|0)!=0);h=Gg(c[(u&p)+68>>2]|0)|0;c[(B&p)>>2]=h;if(!h){c[(B&p)>>2]=Hp(u,s,t)|0;Ip(u,y,e[(t&o)>>1]|0,B);h=c[(B&p)>>2]|0;if(!h){if((a[(w&n)>>0]|0)==0?(s=c[(f+(b[(z&o)>>1]<<2)&p)+120>>2]|0,r=c[((c[(f+(x+1<<2)&p)+120>>2]|0)&p)+72>>2]|0,l=c[(s&p)+56>>2]|0,t=s+18|0,m=e[(t&o)>>1]<<1,g=c[(s&p)+64>>2]|0,m=(d[(g+m+-2&n)>>0]<<8|d[(g+m+-1&n)>>0])&e[(s&o)+20>>1],g=(Lp(s,l+m|0)|0)&65535,q=c[(v&p)+80>>2]|0,c[(B&p)>>2]=Gg(c[(s&p)+68>>2]|0)|0,Jp(u,y,l+(m+-4)|0,g+4|0,q,r,B),Ip(s,(e[(t&o)>>1]|0)+-1|0,g,B),g=c[(B&p)>>2]|0,(g|0)!=0):0)break;g=Kp(f)|0;c[(B&p)>>2]=g;if(!g){g=b[(z&o)>>1]|0;if(g<<16>>16>A<<16>>16){do{h=g+-1<<16>>16;b[(z&o)>>1]=h;g=c[(f+(g<<16>>16<<2)&p)+120>>2]|0;if(!g)g=h;else{Bg(c[(g&p)+68>>2]|0);g=b[(z&o)>>1]|0}}while(g<<16>>16>A<<16>>16);g=Kp(f)|0;c[(B&p)>>2]=g;if(g)break}qm(f)|0;g=0}}else g=h}else g=h}else g=k}else g=1;while(0);i=C;return g|0}function Km(f,g,k,l){f=f|0;g=g|0;k=k|0;l=l|0;var m=0,r=0,s=0,t=0,u=0.0,v=0.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,J=0,K=0,L=0,M=0,N=0,O=0,P=0;P=i;i=i+64|0;if((i|0)>=(j|0))fa();N=P+40|0;t=P+56|0;L=P;r=P+52|0;M=P+48|0;w=c[(k&p)+8>>2]|0;O=c[(k&p)>>2]|0;do if(!l){l=a[(g&n)>>0]|0;if(l<<24>>24>-1){l=l&255;c[(t&p)>>2]=l;m=1}else{m=mm(g,t)|0;l=c[(t&p)>>2]|0}if(l>>>0>f>>>0){c[(N&p)>>2]=68267;c[(N&p)+4>>2]=10788;bd(11,13600,N);a[(k&n)+7>>0]=11;m=0;break}else{K=l;t=l;l=0;r=m&255;s=15;break}}else{l=g+1|0;m=a[(l&n)>>0]|0;if(m<<24>>24>-1){l=m&255;c[(r&p)>>2]=l;s=1}else{s=mm(l,r)|0;l=c[(r&p)>>2]|0}m=d[(g&n)>>0]|0;c[(t&p)>>2]=m;if(l>>>0>11)l=(l+-12|0)>>>1;else l=d[(l&n)+34336>>0]|0;K=m;t=l+m|0;l=1;r=(s&255)+1|0;w=w+40|0;s=15}while(0);do if((s|0)==15){A=L+12|0;B=O+4|0;C=L+10|0;D=O+12|0;E=L+32|0;F=L+8|0;H=L+16|0;J=k+7|0;I=k+4|0;z=t;y=r;a:while(1){r=e[(w&o)+8>>1]|0;do if(!(r&4)){if(r&8){s=a[(g+y&n)>>0]|0;t=s&255;c[(M&p)>>2]=t;if((s&255)>11){m=1;s=62;break a}if(!(s<<24>>24)){m=-1;s=62;break a}u=+h[(w&q)>>3];om(g+z|0,t,L)|0;if(s<<24>>24==7)v=+h[(L&q)>>3];else{m=L;v=+((c[(m&p)>>2]|0)>>>0)+4294967296.0*+(c[(m&p)+4>>2]|0)}if(v<u){m=-1;s=62;break a}if(v>u){m=1;s=62;break a}else break}do if(!(r&2)){s=g+y|0;x=a[(s&n)>>0]|0;t=x&255;if(!(r&16)){c[(M&p)>>2]=t;m=x<<24>>24!=0&1;break}if(x<<24>>24>-1)c[(M&p)>>2]=t;else{mm(s,M)|0;t=c[(M&p)>>2]|0}if(!(t>>>0>11&(t&1|0)==0)){m=-1;s=62;break a}x=(t+-12|0)>>>1;if((x+z|0)>>>0>f>>>0){s=57;break a}s=c[(w&p)+12>>2]|0;m=Zv(g+z|0,c[(w&p)+16>>2]|0,(x|0)<(s|0)?x:s)|0;if(m){s=62;break a}m=x-s|0}else{t=g+y|0;s=a[(t&n)>>0]|0;if(s<<24>>24>-1){t=s&255;c[(M&p)>>2]=t}else{mm(t,M)|0;t=c[(M&p)>>2]|0}if(t>>>0<12){m=-1;s=62;break a}if(!(t&1)){m=1;s=62;break a}r=(t+-12|0)>>>1;c[(A&p)>>2]=r;if((r+z|0)>>>0>f>>>0){s=46;break a}s=c[(O+(l<<2)&p)+20>>2]|0;if(s){a[(C&n)>>0]=a[(B&n)>>0]|0;c[(E&p)>>2]=c[(D&p)>>2];b[(F&o)>>1]=2;c[(H&p)>>2]=g+z;m=pp(L,w,s,J)|0;break}x=c[(w&p)+12>>2]|0;m=Zv(g+z|0,c[(w&p)+16>>2]|0,(r|0)<(x|0)?r:x)|0;if(m){s=62;break a}m=r-x|0}while(0);if(m){s=62;break a}}else{s=a[(g+y&n)>>0]|0;t=s&255;c[(M&p)>>2]=t;if((s&255)>11){m=1;s=62;break a}if(s<<24>>24==7){m=w;u=+((c[(m&p)>>2]|0)>>>0)+4294967296.0*+(c[(m&p)+4>>2]|0);om(g+z|0,t,L)|0;v=+h[(L&q)>>3];if(v<u){m=-1;s=62;break a}if(v>u){m=1;s=62;break a}else break}else if(!(s<<24>>24)){m=-1;s=62;break a}s=g+z|0;switch(t|0){case 6:{m=d[(g+z&n)+1>>0]<<16|d[(s&n)>>0]<<24|d[(g+z&n)+2>>0]<<8|d[(g+z&n)+3>>0];x=d[(g+z&n)+5>>0]<<16|d[(g+z&n)+4>>0]<<24|d[(g+z&n)+6>>0]<<8|d[(g+z&n)+7>>0];break}case 3:{x=d[(g+z&n)+1>>0]<<8|a[(s&n)>>0]<<16|d[(g+z&n)+2>>0];m=((x|0)<0)<<31>>31;break}case 5:{m=a[(s&n)>>0]<<8|d[(g+z&n)+1>>0];x=d[(g+z&n)+3>>0]<<16|d[(g+z&n)+2>>0]<<24|d[(g+z&n)+4>>0]<<8|d[(g+z&n)+5>>0];break}case 1:case 0:{x=a[(s&n)>>0]|0;m=((x|0)<0)<<31>>31;break}case 4:{x=d[(g+z&n)+1>>0]<<16|d[(s&n)>>0]<<24|d[(g+z&n)+2>>0]<<8|d[(g+z&n)+3>>0];m=((x|0)<0)<<31>>31;break}case 2:{x=a[(s&n)>>0]<<8|d[(g+z&n)+1>>0];m=((x|0)<0)<<31>>31;break}default:{m=0;x=t+-8|0}}r=w;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((m|0)<(r|0)|(m|0)==(r|0)&x>>>0<s>>>0){m=-1;s=62;break a}if((m|0)>(r|0)|(m|0)==(r|0)&x>>>0>s>>>0){m=1;s=62;break a}}while(0);l=l+1|0;w=w+40|0;if(t>>>0>11)r=(t+-12|0)>>>1;else r=d[(t&n)+34336>>0]|0;x=t;s=0;t=0;do{t=t+1|0;x=mw(x|0,s|0,7)|0;s=G}while(((x|0)!=0|(s|0)!=0)&(t|0)<9);z=r+z|0;y=t+y|0;if(y>>>0>=K>>>0){s=70;break}if(z>>>0>f>>>0?1:(l|0)>=(e[(I&o)>>1]|0)){s=70;break}}if((s|0)==46){c[(N&p)>>2]=68346;c[(N&p)+4>>2]=10788;bd(11,13600,N);a[(J&n)>>0]=11;m=0;break}else if((s|0)==57){c[(N&p)>>2]=68375;c[(N&p)+4>>2]=10788;bd(11,13600,N);a[(J&n)>>0]=11;m=0;break}else if((s|0)==62){m=(a[((c[(O&p)+16>>2]|0)+l&n)>>0]|0)==0?m:0-m|0;break}else if((s|0)==70){m=a[(k&n)+6>>0]|0;break}}while(0);i=P;return m|0}function Lm(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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=i;i=i+16|0;if((i|0)>=(j|0))fa();D=E;B=E+12|0;C=E+8|0;m=b[(f&o)+76>>1]|0;r=c[(f+(m<<2)&p)+120>>2]|0;A=c[(f&p)+4>>2]|0;if(!(b[(f&o)+44>>1]|0)){v=r+56|0;m=e[(f+(m<<1)&o)+78>>1]<<1;u=c[(r&p)+64>>2]|0;rp(r,(c[(v&p)>>2]|0)+((d[(u+m&n)>>0]<<8|d[(u+(m|1)&n)>>0])&e[(r&o)+20>>1])|0,f+24|0);m=f+72|0;a[(m&n)>>0]=d[(m&n)>>0]|2;m=v}else m=r+56|0;v=c[(f&p)+32>>2]|0;t=f+40|0;q=e[(t&o)>>1]|0;u=A+36|0;if((v+q|0)>>>0<=((c[(m&p)>>2]|0)+(c[(u&p)>>2]|0)|0)>>>0){if(q>>>0>g>>>0){s=(h+g|0)>>>0>q>>>0?q-g|0:h;q=v+g|0;if(l&1){m=Gg(c[(r&p)+68>>2]|0)|0;if(!m){kw(q|0,k|0,s|0)|0;m=0}}else{kw(k|0,q|0,s|0)|0;m=0}k=k+s|0;w=0;h=h-s|0}else{w=g-q|0;m=0}a:do if((m|0)==0&(h|0)!=0){m=c[(u&p)>>2]|0;z=m+-4|0;q=e[(t&o)>>1]|0;t=d[(v+q&n)+1>>0]<<16|d[(v+q&n)>>0]<<24|d[(v+q&n)+2>>0]<<8|d[(v+q&n)+3>>0];c[(B&p)>>2]=t;v=f+72|0;do if((l|0)!=2?(a[(v&n)>>0]&4)==0:0){m=((m+-5+(c[(f&p)+36>>2]|0)-q|0)>>>0)/(z>>>0)|0;g=f+64|0;if((m|0)>(c[(g&p)>>2]|0)){r=f+20|0;q=rg(c[(r&p)>>2]|0,m<<3,0)|0;if(!q){m=7;break}c[(g&p)>>2]=m<<1;c[(r&p)>>2]=q}fw(c[(f&p)+20>>2]|0,0,m<<2|0)|0;a[(v&n)>>0]=d[(v&n)>>0]|4;m=0}else m=0;while(0);g=a[(v&n)>>0]|0;if((g&4)!=0?(y=(w>>>0)/(z>>>0)|0,x=c[((c[(f&p)+20>>2]|0)+(y<<2)&p)>>2]|0,(x|0)!=0):0){c[(B&p)>>2]=x;s=(w>>>0)%(z>>>0)|0;r=x;t=y}else{s=w;r=t;t=0}if((m|0)==0&(r|0)!=0){x=l&1;y=x<<1^2;x=(x|0)==0;l=f+20|0;while(1){if(g&4)c[((c[(l&p)>>2]|0)+(t<<2)&p)>>2]=r;if(s>>>0<z>>>0){u=(s+h|0)>>>0>z>>>0?z-s|0:h;m=zg(c[(A&p)>>2]|0,r,C,y)|0;if(!m){g=c[(C&p)>>2]|0;q=c[(g&p)+4>>2]|0;r=d[(q&n)+1>>0]<<16|d[(q&n)>>0]<<24|d[(q&n)+2>>0]<<8|d[(q&n)+3>>0];c[(B&p)>>2]=r;q=q+(s+4)|0;if(!x){m=Gg(g)|0;if(!m){kw(q|0,k|0,u|0)|0;m=0}}else{kw(k|0,q|0,u|0)|0;m=0}if(!g)s=0;else{Bg(g);s=0}}h=h-u|0;k=k+u|0;t=t+1|0}else{g=t+1|0;m=c[((c[(l&p)>>2]|0)+(g<<2)&p)>>2]|0;if(!m){m=Mp(A,r,0,B)|0;r=c[(B&p)>>2]|0}else{c[(B&p)>>2]=m;r=m;m=0}s=s-z|0;t=g}if(!((m|0)==0&(h|0)!=0&(r|0)!=0))break a;g=a[(v&n)>>0]|0}}}while(0);if((m|0)==0&(h|0)!=0){c[(D&p)>>2]=57357;c[(D&p)+4>>2]=10788;bd(11,13600,D);m=11}}else{c[(D&p)>>2]=57202;c[(D&p)+4>>2]=10788;bd(11,13600,D);m=11}i=E;return m|0}function Mm(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[(a&p)>>2]|0;d=a+44|0;mg(e,c[(d&p)>>2]|0);a=b+8|0;c[(d&p)>>2]=kh(e,c[(a&p)>>2]|0)|0;Wc(c[(a&p)>>2]|0);c[(a&p)>>2]=0;return}function Nm(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();k=u+4|0;s=u;t=e+12|0;if(!(c[(t&p)>>2]|0)){h=e+8|0;g=Fm(c[((c[(h&p)>>2]|0)&p)+28>>2]|0,0,0,k)|0;c[(t&p)>>2]=g;if(!(c[(k&p)>>2]|0))g=7;else{b[(g&o)+4>>1]=b[((c[((c[(h&p)>>2]|0)&p)+28>>2]|0)&o)+6>>1]|0;a[(g&n)+7>>0]=0;l=4}}else l=4;if((l|0)==4){r=qg(256,0)|0;if(!r)g=7;else{fw(r|0,0,256)|0;g=c[(f&p)>>2]|0;c[(s&p)>>2]=g;if(g){q=f+4|0;while(1){h=c[(q&p)>>2]|0;if(h)if((g|0)==(h|0))m=0;else m=h+(c[(g&p)+4>>2]|0)|0;else m=c[(g&p)+4>>2]|0;c[(g&p)+4>>2]=0;l=c[(r&p)>>2]|0;k=c[(s&p)>>2]|0;if(!l)l=r;else{h=r;g=0;do{Np(e,k,l,s);c[(h&p)>>2]=0;g=g+1|0;h=r+(g<<2)|0;l=c[(h&p)>>2]|0;k=c[(s&p)>>2]|0}while((l|0)!=0);l=h}c[(l&p)>>2]=k;c[(s&p)>>2]=m;if(!m)break;else g=m}}c[(s&p)>>2]=0;g=0;h=0;do{Np(e,g,c[(r+(h<<2)&p)>>2]|0,s);h=h+1|0;g=c[(s&p)>>2]|0}while((h|0)!=64);c[(f&p)>>2]=g;Wc(r);g=d[((c[(t&p)>>2]|0)&n)+7>>0]|0}}i=u;return g|0}function Om(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+64|0;if((i|0)>=(j|0))fa();m=q+40|0;o=q;a[(b&n)+56>>0]=1;g=b+64|0;l=b+36|0;k=b+72|0;h=c[((c[(k&p)>>2]|0)&p)+24>>2]|0;f=o+0|0;e=f+40|0;do{c[(f&p)>>2]=0;f=f+4|0}while((f|0)<(e|0));f=b+96|0;if(!((c[(f&p)>>2]|0)==0?(d=Op(h,f)|0,(d|0)!=0):0)){d=Nm(g,l)|0;if(!d){g=b+104|0;d=g;Pp(c[(f&p)>>2]|0,o,c[((c[(k&p)>>2]|0)&p)+12>>2]|0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0);d=b+92|0;c[(d&p)>>2]=(c[(d&p)>>2]|0)+1;d=c[(b&p)+44>>2]|0;Qp(o,m,pm(m,d,((d|0)<0)<<31>>31)|0);d=c[(l&p)>>2]|0;if(d){f=b+40|0;do{e=d;d=c[(d&p)+4>>2]|0;b=c[(e&p)>>2]|0;Qp(o,m,pm(m,b,((b|0)<0)<<31>>31)|0);Qp(o,e+8|0,c[(e&p)>>2]|0);if(!(c[(f&p)>>2]|0))Wc(e)}while((d|0)!=0)}c[(l&p)>>2]=0;d=Rp(o,g)|0}}i=q;return d|0}function Pm(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();q=s;g=d;k=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;r=Qm(b)|0;c[(e&p)>>2]=r;h=(r|0)==0;f=h?7:0;h=h^1;if((b|0)>0&h){o=r+12|0;n=a+32|0;m=0;do{h=c[(o&p)>>2]|0;l=h+(m*56|0)|0;f=Sp(a,l,n,k,g)|0;if(!f){f=Tp(l,q)|0;g=l;k=q;g=jw(c[(k&p)>>2]|0,c[(k&p)+4>>2]|0,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0)|0;k=h+(m*56|0)+8|0;h=k;c[(h&p)>>2]=g;c[(h&p)+4>>2]=G;if(!f)f=Up(l)|0}else k=h+(m*56|0)+8|0;g=k;k=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;m=m+1|0;h=(f|0)==0}while((m|0)<(b|0)&h)}if(!h){Tm(r);c[(e&p)>>2]=0}b=d;c[(b&p)>>2]=k;c[(b&p)+4>>2]=g;i=s;return f|0}function Qm(a){a=a|0;var b=0,d=0;b=2;while(1)if((b|0)<(a|0))b=b<<1;else{d=b;break}b=c[2252]|0;if((b|0)!=0?(lc[b&127](100)|0)!=0:0)b=0;else{a=(d*60|0)+16|0;b=qg(a,((a|0)<0)<<31>>31)|0;if(!b)b=0;else{fw(b|0,0,a|0)|0;c[(b&p)>>2]=d;c[(b&p)+4>>2]=0;a=b+16|0;c[(b&p)+12>>2]=a;c[(b&p)+8>>2]=a+(d*56|0)}}return b|0}function Rm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=c[2252]|0;if((f|0)!=0?(lc[f&127](100)|0)!=0:0){f=0;i=6}else i=3;do if((i|0)==3){f=qg(64,0)|0;if(!f){i=6;break}else{g=f+0|0;h=g+64|0;do{a[(g&n)>>0]=0;g=g+1|0}while((g|0)<(h|0));c[(e&p)>>2]=f;c[(f&p)+4>>2]=d;c[(f&p)>>2]=b;h=c[(b&p)+8>>2]|0;g=(c[(h&p)+8>>2]|0)+9|0;h=(c[(h&p)+4>>2]|0)/2|0;h=(g|0)>(h|0)?g:h;c[(f&p)+16>>2]=h;f=b+56|0;g=f;g=jw(h|0,((h|0)<0)<<31>>31|0,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0)|0;c[(f&p)>>2]=g;c[(f&p)+4>>2]=G;f=0;break}}while(0);if((i|0)==6){c[(e&p)>>2]=f;Tm(d);f=7}return f|0}function Sm(a){a=a|0;if(a){Tm(c[(a&p)+4>>2]|0);Wc(a)}return}function Tm(a){a=a|0;var b=0,d=0;if((a|0)!=0?(c[(a&p)>>2]|0)>0:0){b=a+12|0;d=0;do{Vp((c[(b&p)>>2]|0)+(d*56|0)|0);d=d+1|0}while((d|0)<(c[(a&p)>>2]|0))}Wc(a);return}function Um(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,o=0,q=0,r=0,s=0,t=0;o=c[(b&p)>>2]|0;t=b+4|0;c[(t&p)>>2]=a;a:do if((o|0)>0){q=b+12|0;r=0;do{l=c[(q&p)>>2]|0;j=l+(r*56|0)|0;l=c[(l+(r*56|0)&p)+48>>2]|0;if(l){m=c[(l&p)>>2]|0;i=c[((c[(m&p)+8>>2]|0)&p)+24>>2]|0;e=Um(m,c[(l&p)+4>>2]|0)|0;if(e)break a;k=c[(l&p)+16>>2]|0;g=m+48|0;h=c[(g&p)>>2]|0;f=m+56|0;if(!h){e=Op(i,g)|0;i=f;c[(i&p)>>2]=0;c[(i&p)+4>>2]=0;if(e)break a;h=c[(g&p)>>2]|0;g=0;f=0}else{g=c[(f&p)>>2]|0;f=c[(f&p)+4>>2]|0}c[(l&p)+48>>2]=h;l=l+8|0;c[(l&p)>>2]=g;c[(l&p)+4>>2]=f;l=jw(g|0,f|0,k|0,((k|0)<0)<<31>>31|0)|0;e=m+56|0;c[(e&p)>>2]=l;c[(e&p)+4>>2]=G;e=Up(j)|0;if(e)break a}r=r+1|0}while((r|0)<(o|0));e=c[(b&p)>>2]|0;s=12}else{e=o;s=12}while(0);if((s|0)==12){f=e+-1|0;b:do if((f|0)>0){j=b+12|0;k=b+8|0;h=e;g=e;i=f;while(1){e=(h|0)/2|0;if((g|0)>(e|0)){g=i-e<<1;e=g;g=g|1}else{g=i<<1;o=c[(k&p)>>2]|0;e=c[(o+(g<<2)&p)>>2]|0;g=c[(o+((g|1)<<2)&p)>>2]|0}f=c[(j&p)>>2]|0;if(c[(f+(e*56|0)&p)+24>>2]|0){if(c[(f+(g*56|0)&p)+24>>2]|0){o=(Wp(c[(t&p)>>2]|0,c[(f+(e*56|0)&p)+32>>2]|0,c[(f+(e*56|0)&p)+20>>2]|0,c[(f+(g*56|0)&p)+32>>2]|0,c[(f+(g*56|0)&p)+20>>2]|0)|0)<1;e=o?e:g}}else e=g;c[((c[(k&p)>>2]|0)+(i<<2)&p)>>2]=e;e=i+-1|0;if((e|0)<=0)break b;g=i;h=c[(b&p)>>2]|0;i=e}}while(0);e=d[((c[(a&p)+12>>2]|0)&n)+7>>0]|0}return e|0}function Vm(f){f=f|0;var g=0,h=0,i=0,j=0,k=0;i=f+76|0;do{g=b[(i&o)>>1]|0;h=c[(f+(g<<2)&p)+120>>2]|0;if(a[(h&n)+5>>0]|0){g=0;break}j=c[(h&p)+56>>2]|0;g=e[(f+(g<<1)&o)+78>>1]<<1;k=c[(h&p)+64>>2]|0;g=(d[(k+g&n)>>0]<<8|d[(k+(g|1)&n)>>0])&e[(h&o)+20>>1];g=rm(f,d[(j+g&n)+1>>0]<<16|d[(j+g&n)>>0]<<24|d[(j+g&n)+2>>0]<<8|d[(j+g&n)+3>>0])|0}while((g|0)==0);return g|0}function Wm(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,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;s=a+8|0;g=c[((c[(s&p)>>2]|0)&p)+4>>2]|0;w=c[(a&p)+4>>2]|0;u=a+12|0;e=Up((c[(u&p)>>2]|0)+(g*56|0)|0)|0;if(!e){e=c[(u&p)>>2]|0;f=g|1;a=(c[(a&p)>>2]|0)+g|0;a:do if((a|0)>1){m=e;o=a;i=c[(e+(f*56|0)&p)+32>>2]|0;q=e+((g&65534)*56|0)|0;g=e+(f*56|0)|0;while(1){r=q+24|0;j=q;k=q+32|0;l=q+20|0;e=m;h=o;a=i;while(1){f=h;h=(h|0)/2|0;if(!(c[(r&p)>>2]|0)){i=a;break}if(((c[(g&p)+24>>2]|0)!=0?(t=Wp(w,c[(k&p)>>2]|0,c[(l&p)>>2]|0,a,c[(g&p)+20>>2]|0)|0,(t|0)>=0):0)?!((t|0)==0&q>>>0<g>>>0):0){v=10;break}i=c[(u&p)>>2]|0;a=c[(s&p)>>2]|0;c[(a+(h<<2)&p)>>2]=(j-i|0)/56|0;g=c[(a+((h^1)<<2)&p)>>2]|0;if((f|0)<=3){e=i;break a}else{e=i;a=c[(i+(g*56|0)&p)+32>>2]|0;g=i+(g*56|0)|0}}if((v|0)==10){v=0;e=c[(u&p)>>2]|0;i=(c[(r&p)>>2]|0)==0?a:0}a=c[(s&p)>>2]|0;c[(a+(h<<2)&p)>>2]=(g-e|0)/56|0;if((f|0)>3){m=e;o=h;q=e+((c[(a+((h^1)<<2)&p)>>2]|0)*56|0)|0}else break}}else a=c[(s&p)>>2]|0;while(0);c[(b&p)>>2]=(c[(e+((c[(a&p)+4>>2]|0)*56|0)&p)+24>>2]|0)==0&1;e=d[((c[(w&p)+12>>2]|0)&n)+7>>0]|0}return e|0}function Xm(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=b+4|0;g=c[(f&p)>>2]|0;c[(g&p)+4>>2]=c[(b&p)>>2];b=Ln(g,d,0)|0;if(!b){b=c[((c[(f&p)>>2]|0)&p)+8>>2]|0;if(b)do{if(a[(b&n)+72>>0]&16)a[(b&n)+73>>0]=0;b=c[(b&p)+8>>2]|0}while((b|0)!=0);b=Xp(g,d,0,e)|0}return b|0}function Ym(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;C=i;i=i+32|0;if((i|0)>=(j|0))fa();t=C;B=C+16|0;A=C+12|0;z=C+8|0;c[(B&p)>>2]=0;m=c[(f&p)+12>>2]|0;if(!g){g=Yp(f,h)|0;c[(A&p)>>2]=g}else{c[(A&p)>>2]=g;u=(c[(g&p)+68>>2]|0)+26|0;b[(u&o)>>1]=(b[(u&o)>>1]|0)+1<<16>>16}l=Gg(c[(m&p)+68>>2]|0)|0;c[(z&p)>>2]=l;do if(!l){u=m+56|0;s=c[(u&p)>>2]|0;D=s+36|0;l=s+37|0;m=s+38|0;s=s+39|0;q=d[(l&n)>>0]<<16|d[(D&n)>>0]<<24|d[(m&n)>>0]<<8|d[(s&n)>>0];r=q+1|0;a[(D&n)>>0]=r>>>24;a[(l&n)>>0]=r>>>16;a[(m&n)>>0]=r>>>8;a[(s&n)>>0]=r;s=f+22|0;if(b[(s&o)>>1]&4){if(!g){m=dl(f,h,A,0)|0;c[(z&p)>>2]=m;if(m){k=m;break}g=c[(A&p)>>2]|0}m=Gg(c[(g&p)+68>>2]|0)|0;c[(z&p)>>2]=m;if(m){k=m;break}fw(c[(g&p)+56>>2]|0,0,c[((c[(g&p)+52>>2]|0)&p)+32>>2]|0)|0}if((a[(f&n)+17>>0]|0)!=0?(zp(f,h,2,0,z),k=c[(z&p)>>2]|0,(k|0)!=0):0)break;if(q){l=c[(u&p)>>2]|0;l=d[(l&n)+33>>0]<<16|d[(l&n)+32>>0]<<24|d[(l&n)+34>>0]<<8|d[(l&n)+35>>0];k=dl(f,l,B,0)|0;c[(z&p)>>2]=k;if(k)break;k=c[(B&p)>>2]|0;r=k+56|0;q=c[(r&p)>>2]|0;q=d[(q&n)+5>>0]<<16|d[(q&n)+4>>0]<<24|d[(q&n)+6>>0]<<8|d[(q&n)+7>>0];m=(c[(f&p)+36>>2]|0)>>>2;if(q>>>0>(m+-2|0)>>>0){c[(t&p)>>2]=58627;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(z&p)>>2]=11;k=11;break}if(q>>>0<(m+-8|0)>>>0){k=Gg(c[(k&p)+68>>2]|0)|0;c[(z&p)>>2]=k;if(k)break;u=c[(r&p)>>2]|0;t=q+1|0;a[(u&n)+4>>0]=t>>>24;a[(u&n)+5>>0]=t>>>16;a[(u&n)+6>>0]=t>>>8;a[(u&n)+7>>0]=t;u=q<<2;t=c[(r&p)>>2]|0;a[(t+u&n)+8>>0]=h>>>24;a[(t+u&n)+9>>0]=h>>>16;a[(t+u&n)+10>>0]=h>>>8;a[(t+u&n)+11>>0]=h;if((((g|0)!=0?(b[(s&o)>>1]&4)==0:0)?(v=c[(g&p)+68>>2]|0,w=v+24|0,x=e[(w&o)>>1]|0,(x&2|0)!=0):0)?(c[((c[(v&p)+16>>2]|0)&p)+96>>2]|0)==0:0)b[(w&o)>>1]=x|32;l=f+60|0;k=c[(l&p)>>2]|0;do if(!k){g=c[(f&p)+44>>2]|0;k=qg(512,0)|0;if(!k){c[(l&p)>>2]=0;k=7;break}else{fw(k|0,0,512)|0;c[(k&p)>>2]=g;c[(l&p)>>2]=k;y=28;break}}else y=28;while(0);if((y|0)==28)if((c[(k&p)>>2]|0)>>>0<h>>>0)k=0;else k=bi(k,h)|0;c[(z&p)>>2]=k;break}}else l=0;if(!g){k=dl(f,h,A,0)|0;c[(z&p)>>2]=k;if(k)break;g=c[(A&p)>>2]|0}k=Gg(c[(g&p)+68>>2]|0)|0;c[(z&p)>>2]=k;if(!k){k=g+56|0;v=c[(k&p)>>2]|0;a[(v&n)>>0]=l>>>24;a[(v&n)+1>>0]=l>>>16;a[(v&n)+2>>0]=l>>>8;a[(v&n)+3>>0]=l;k=(c[(k&p)>>2]|0)+4|0;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;k=c[(u&p)>>2]|0;a[(k&n)+32>>0]=h>>>24;a[(k&n)+33>>0]=h>>>16;a[(k&n)+34>>0]=h>>>8;a[(k&n)+35>>0]=h;k=0}}else k=l;while(0);g=c[(A&p)>>2]|0;if(g){a[(g&n)>>0]=0;Bg(c[(g&p)+68>>2]|0)}g=c[(B&p)>>2]|0;if(g)Bg(c[(g&p)+68>>2]|0);i=C;return k|0}function Zm(f,g,h,k,l,m){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0;S=i;i=i+48|0;if((i|0)>=(j|0))fa();P=S+24|0;G=S;z=S+36|0;Q=S+32|0;w=g+72|0;O=c[(w&p)>>2]|0;x=c[(f&p)>>2]|0;u=c[(g&p)+68>>2]|0;v=x+15|0;if((a[(v&n)>>0]|0)!=0?(q=Gg(u)|0,(q|0)!=0):0)R=20;else R=3;a:do if((R|0)==3){r=u+24|0;t=b[(r&o)>>1]|0;if((t&2)!=0?(Uo(u)|0)!=0:0){q=Vo(u)|0;if(q){R=20;break}t=b[(r&o)>>1]|0}if((t&4)==0|(m|0)!=0)s=0;else s=c[(u&p)+20>>2]|0;b[(r&o)>>1]=t&65531;D=x+204|0;m=ac[c[8876>>2]&63](c[((c[(D&p)>>2]|0)&p)+40>>2]|0,l,0)|0;m=il(c[(D&p)>>2]|0,l,m)|0;do if(m){b[(r&o)>>1]=e[(r&o)>>1]|e[(m&o)+24>>1]&4;if(!(a[(v&n)>>0]|0)){ml(m);break}else{Zp(m,(c[(x&p)+24>>2]|0)+1|0);break}}while(0);t=c[(u&p)+20>>2]|0;Zp(u,l);To(u);if(a[(v&n)>>0]|0){Zp(m,t);Bg(m)}do if(s){q=zg(x,s,P,0)|0;if(!q){D=c[(P&p)>>2]|0;C=D+24|0;b[(C&o)>>1]=e[(C&o)>>1]|4;To(D);Bg(D);break}if(s>>>0>(c[(x&p)+28>>2]|0)>>>0){R=20;break a}ci(c[(x&p)+56>>2]|0,s,c[(x&p)+200>>2]|0);R=20;break a}while(0);c[(Q&p)>>2]=0;c[(w&p)>>2]=l;if(h<<24>>24==1|h<<24>>24==5){q=_p(g)|0;c[(Q&p)>>2]=q;if(!q)R=25;else break}else{m=c[(g&p)+56>>2]|0;m=d[(m&n)+1>>0]<<16|d[(m&n)>>0]<<24|d[(m&n)+2>>0]<<8|d[(m&n)+3>>0];if(m){zp(f,m,4,l,Q);q=c[(Q&p)>>2]|0;if(!q)R=25;else break}}if((R|0)==25?h<<24>>24==1:0){q=0;break}q=dl(f,k,z,0)|0;c[(Q&p)>>2]=q;if(!q){C=c[(z&p)>>2]|0;D=C+68|0;q=Gg(c[(D&p)>>2]|0)|0;c[(Q&p)>>2]=q;if(q){if(!C)break;Bg(c[(D&p)>>2]|0);break}b:do if(h<<24>>24==4){q=c[(C&p)+56>>2]|0;r=q+1|0;s=q+2|0;m=q+3|0;if((d[(r&n)>>0]<<16|d[(q&n)>>0]<<24|d[(s&n)>>0]<<8|d[(m&n)>>0]|0)==(O|0)){a[(q&n)>>0]=l>>>24;a[(r&n)>>0]=l>>>16;a[(s&n)>>0]=l>>>8;a[(m&n)>>0]=l;q=0;break}else{c[(P&p)>>2]=56060;c[(P&p)+4>>2]=10788;bd(11,13600,P);q=11;break}}else{A=a[(C&n)>>0]|0;$p(C)|0;z=b[(C&o)+18>>1]|0;B=z&65535;c:do if(z<<16>>16){g=C+56|0;x=C+20|0;u=C+64|0;y=h<<24>>24==3;z=G+18|0;m=0;while(1){w=c[(g&p)>>2]|0;v=m<<1;t=c[(u&p)>>2]|0;v=(d[(t+v&n)>>0]<<8|d[(t+(v|1)&n)>>0])&e[(x&o)>>1];t=w+v|0;if(y){rp(C,t,G);t=b[(z&o)>>1]|0;if((t<<16>>16!=0?(E=(t&65535)+v|0,F=w+(E+3)|0,F>>>0<=((c[(g&p)>>2]|0)+(e[(x&o)>>1]|0)|0)>>>0):0)?(H=w+E|0,I=w+(E+1)|0,J=w+(E+2)|0,(d[(I&n)>>0]<<16|d[(H&n)>>0]<<24|d[(J&n)>>0]<<8|d[(F&n)>>0]|0)==(O|0)):0){t=F;q=H;r=I;s=J;R=40;break}}else{q=w+(v+1)|0;r=w+(v+2)|0;s=w+(v+3)|0;if((d[(q&n)>>0]<<16|d[(t&n)>>0]<<24|d[(r&n)>>0]<<8|d[(s&n)>>0]|0)==(O|0)){R=42;break}}m=m+1|0;if((m|0)>=(B|0))break c}if((R|0)==40){a[(q&n)>>0]=l>>>24;a[(r&n)>>0]=l>>>16;a[(s&n)>>0]=l>>>8;a[(t&n)>>0]=l;break}else if((R|0)==42){a[(t&n)>>0]=l>>>24;a[(q&n)>>0]=l>>>16;a[(r&n)>>0]=l>>>8;a[(s&n)>>0]=l;break}}else m=0;while(0);do if((m|0)==(B|0)){if(h<<24>>24==5?(N=d[(C&n)+6>>0]|0,J=c[(C&p)+56>>2]|0,K=J+(N+8)|0,L=J+(N+9)|0,M=J+(N+10)|0,N=J+(N+11)|0,(d[(L&n)>>0]<<16|d[(K&n)>>0]<<24|d[(M&n)>>0]<<8|d[(N&n)>>0]|0)==(O|0)):0){a[(K&n)>>0]=l>>>24;a[(L&n)>>0]=l>>>16;a[(M&n)>>0]=l>>>8;a[(N&n)>>0]=l;break}c[(P&p)>>2]=56094;c[(P&p)+4>>2]=10788;bd(11,13600,P);q=11;break b}while(0);a[(C&n)>>0]=A;q=0}while(0);c[(Q&p)>>2]=q;if(C)Bg(c[(D&p)>>2]|0);if(!q){zp(f,l,h,k,Q);q=c[(Q&p)>>2]|0}}}while(0);if((R|0)==20)c[(Q&p)>>2]=q;i=S;return q|0}function _m(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;j=e+20|0;Tm(c[(j&p)>>2]|0);c[(j&p)>>2]=0;j=e+59|0;if(a[(j&n)>>0]|0){k=0;do{g=e+(k<<6)+76|0;mg(b,c[(g&p)>>2]|0);c[(g&p)>>2]=0;g=e+(k<<6)+80|0;h=c[(g&p)>>2]|0;if(h)do{i=h;h=c[(h&p)+4>>2]|0;if(i)Wc(i)}while((h|0)!=0);c[(g&p)>>2]=0;h=e+(k<<6)+96|0;g=c[(h&p)>>2]|0;if(g){i=c[(g&p)>>2]|0;if(i){lc[c[(i&p)+4>>2]&127](g)|0;c[(g&p)>>2]=0}Wc(g);c[(h&p)>>2]=0;g=e+(k<<6)+104|0;c[(g&p)>>2]=0;c[(g&p)+4>>2]=0}i=e+(k<<6)+112|0;h=c[(i&p)>>2]|0;if(h){g=c[(h&p)>>2]|0;if(g){lc[c[(g&p)+4>>2]&127](h)|0;c[(h&p)>>2]=0}Wc(h);c[(i&p)>>2]=0;g=e+(k<<6)+120|0;c[(g&p)>>2]=0;c[(g&p)+4>>2]=0}k=k+1|0}while((k|0)<(d[(j&n)>>0]|0))}h=e+36|0;if((c[(e&p)+40>>2]|0)==0?(f=c[(h&p)>>2]|0,(f|0)!=0):0)do{g=f;f=c[(f&p)+4>>2]|0;if(g)Wc(g)}while((f|0)!=0);c[(h&p)>>2]=0;c[(e&p)+44>>2]=0;a[(e&n)+56>>0]=0;c[(e&p)+48>>2]=0;c[(e&p)+8>>2]=0;f=e+32|0;mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0;return}function $m(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;u=i;i=i+16|0;if((i|0)>=(j|0))fa();k=u+4|0;r=u;s=c[(d&p)>>2]|0;m=c[(d&p)+8>>2]|0;q=c[(s&p)+16>>2]|0;l=(c[(q+(m<<4)&p)+12>>2]|0)+78|0;b[(l&o)>>1]=e[(l&o)>>1]&65531;l=s+65|0;do if(!(a[(l&n)>>0]|0))if(g){t=g+4|0;f=c[(t&p)>>2]|0;if(!f){aq(d,c[(g&p)>>2]|0,0);h=0;break}h=g+8|0;v=c[(h&p)>>2]|0;if((v|0)!=0?(a[(v&n)>>0]|0)!=0:0){q=s+144|0;a[(q&n)>>0]=m;c[(k&p)>>2]=0;Dn(f,k)|0;f=c[(h&p)>>2]|0;c[(s&p)+140>>2]=c[(k&p)>>2];t=s+146|0;a[(t&n)>>0]=0;ih(s,f,-1,0,0,r,0)|0;f=c[(s&p)+52>>2]|0;a[(q&n)>>0]=0;do if((f|0)!=0?(a[(t&n)>>0]|0)==0:0){c[(d&p)+12>>2]=f;if((f|0)==7){a[(l&n)>>0]=1;break}else if((f|0)==9)break;if((f&255|0)!=6){t=c[(g&p)>>2]|0;aq(d,t,Se(s)|0)}}while(0);md(c[(r&p)>>2]|0)|0;h=0;break}f=c[(g&p)>>2]|0;if(!f){aq(d,0,0);h=0;break}f=bq(s,f,c[(q+(m<<4)&p)>>2]|0)|0;if((f|0)!=0?(Dn(c[(t&p)>>2]|0,f+40|0)|0)==0:0){aq(d,c[(g&p)>>2]|0,13528);h=0}else h=0}else h=0;else{aq(d,c[(g&p)>>2]|0,0);h=1}while(0);i=u;return h|0}function an(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;l=m+8|0;h=b+16|0;f=c[(h&p)>>2]|0;g=c[((c[(f+(d<<4)&p)+12>>2]|0)&p)+32>>2]|0;if(g){f=g;do{cq(c[(f&p)+8>>2]|0);f=c[(f&p)>>2]|0}while((f|0)!=0);f=c[(h&p)>>2]|0}c[(l&p)>>2]=b;f=c[(f+(d<<4)&p)>>2]|0;c[(l&p)+4>>2]=f;do if(!(_h(b,13384,f)|0))e=1;else{c[(k&p)>>2]=f;f=uh(b,13400,k)|0;if((f|0)!=0?(e=Qe(b,f,23,l,0)|0,mg(b,f),(e|0)!=7):0)break;a[(b&n)+65>>0]=1;e=7}while(0);i=m;return e|0}function bn(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0;j=c[(b&p)+12>>2]|0;if(!j){h=b+4|0;g=b+8|0;i=0}else{h=a[(e&n)>>0]|0;if(!(h<<24>>24))h=0;else{g=e;i=h;h=0;do{g=g+1|0;h=h<<3^h^(d[(i&255&n)+9328>>0]|0);i=a[(g&n)>>0]|0}while(i<<24>>24!=0)}i=(h>>>0)%((c[(b&p)>>2]|0)>>>0)|0;h=j+(i<<3)|0;g=j+(i<<3)+4|0}h=c[(h&p)>>2]|0;g=c[(g&p)>>2]|0;c[(f&p)>>2]=i;a:do if(!h)g=0;else while(1){h=h+-1|0;if(!(dd(c[(g&p)+12>>2]|0,e)|0))break a;if(!h){g=0;break}else g=c[(g&p)>>2]|0}while(0);return g|0}function cn(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();v=w;u=w+12|0;a:do if((g|0)>0){s=b+16|0;t=b+4|0;r=(e|0)==0;h=f;e=g;while(1){m=e+-1|0;if(!(c[(s&p)>>2]|0))break a;if((h|0)<1){h=e;e=5;break}if(eq(b,h)|0)break a;if(zg(c[(t&p)>>2]|0,h,u,0)|0){e=8;break}o=c[(u&p)>>2]|0;q=c[(o&p)+4>>2]|0;do if(r)if((m|0)>0?(a[((c[(b&p)>>2]|0)&n)+17>>0]|0)!=0:0){dn(b,d[(q&n)+1>>0]<<16|d[(q&n)>>0]<<24|d[(q&n)+2>>0]<<8|d[(q&n)+3>>0],4,h);e=m}else e=m;else{l=d[(q&n)+5>>0]<<16|d[(q&n)+4>>0]<<24|d[(q&n)+6>>0]<<8|d[(q&n)+7>>0];k=c[(b&p)>>2]|0;if(a[(k&n)+17>>0]|0){dn(b,h,2,0);k=c[(b&p)>>2]|0}if((l|0)>(((c[(k&p)+36>>2]|0)/4|0)+-2|0)){c[(v&p)>>2]=h;fn(b,44640,v);e=e+-2|0;break}b:do if((l|0)>0){e=0;while(1){h=e<<2;h=d[(q+h&n)+9>>0]<<16|d[(q+h&n)+8>>0]<<24|d[(q+h&n)+10>>0]<<8|d[(q+h&n)+11>>0];if(a[(k&n)+17>>0]|0)dn(b,h,2,0);eq(b,h)|0;e=e+1|0;if((e|0)==(l|0))break b;k=c[(b&p)>>2]|0}}while(0);e=m-l|0}while(0);h=d[(q&n)+1>>0]<<16|d[(q&n)>>0]<<24|d[(q&n)+2>>0]<<8|d[(q&n)+3>>0];if(o)Bg(o);if((e|0)<=0)break a}if((e|0)==5){c[(v&p)>>2]=h;c[(v&p)+4>>2]=g;c[(v&p)+8>>2]=f;fn(b,44552,v);break}else if((e|0)==8){c[(v&p)>>2]=h;fn(b,44616,v);break}}while(0);i=w;return}function dn(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0;o=i;i=i+32|0;if((i|0)>=(j|0))fa();l=o;h=o+24|0;k=o+20|0;g=hp(c[(b&p)>>2]|0,d,h,k)|0;if(!g){h=a[(h&n)>>0]|0;g=c[(k&p)>>2]|0;if(!((g|0)==(f|0)?h<<24>>24==e<<24>>24:0)){c[(l&p)>>2]=d;c[(l&p)+4>>2]=e&255;c[(l&p)+8>>2]=f;c[(l&p)+12>>2]=h&255;c[(l&p)+16>>2]=g;fn(b,44496,l)}}else if((g|0)==7|(g|0)==3082){c[(b&p)+24>>2]=1;m=3}else m=3;if((m|0)==3){c[(l&p)>>2]=d;fn(b,44464,l)}i=o;return}function en(f,g,h,k){f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0;aa=i;i=i+64|0;if((i|0)>=(j|0))fa();V=aa+40|0;r=aa+56|0;Q=aa+32|0;R=aa+24|0;N=aa;_=Q;c[(_&p)>>2]=0;c[(_&p)+4>>2]=0;_=R;c[(_&p)>>2]=0;c[(_&p)+4>>2]=0;_=f+28|0;$=c[(_&p)>>2]|0;W=f+32|0;X=c[(W&p)>>2]|0;Y=f+36|0;Z=c[(Y&p)>>2]|0;S=c[(f&p)>>2]|0;M=S+36|0;T=c[(M&p)>>2]|0;if((g|0)!=0?(eq(f,g)|0)==0:0){c[(_&p)>>2]=43768;c[(W&p)>>2]=g;s=dl(S,g,r,0)|0;do if(!s){U=c[(r&p)>>2]|0;a[(U&n)>>0]=0;s=$p(U)|0;if(s){c[(V&p)>>2]=s;fn(f,43824,V);if(!U){l=-1;break}Bg(c[(U&p)+68>>2]|0);l=-1;break}z=f+16|0;O=U+18|0;s=b[(O&o)>>1]|0;a:do if(!(s<<16>>16)){t=U+5|0;s=0;l=0}else{A=U+56|0;B=U+20|0;C=U+64|0;D=N+12|0;E=U+2|0;F=N+16|0;G=T+-5|0;H=T+-4|0;I=S+17|0;J=U+5|0;w=0;x=0;while(1){if(!(c[(z&p)>>2]|0)){t=J;l=w;break a}c[(_&p)>>2]=43864;c[(W&p)>>2]=g;c[(Y&p)>>2]=x;r=c[(A&p)>>2]|0;s=x<<1;t=c[(C&p)>>2]|0;s=(d[(t+s&n)>>0]<<8|d[(t+(s|1)&n)>>0])&e[(B&o)>>1];t=r+s|0;rp(U,t,N);u=c[(D&p)>>2]|0;if(a[(E&n)>>0]|0){l=N;y=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if(x){q=R;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;if(!((l|0)>(q|0)|(l|0)==(q|0)&y>>>0>m>>>0)){v=V;c[(v&p)>>2]=y;c[(v&p)+4>>2]=l;v=V+8|0;c[(v&p)>>2]=m;c[(v&p)+4>>2]=q;fn(f,43896,V)}}else{m=R;c[(m&p)>>2]=y;c[(m&p)+4>>2]=l;m=Q;c[(m&p)>>2]=y;c[(m&p)+4>>2]=l}m=R;c[(m&p)>>2]=y;c[(m&p)+4>>2]=l}y=c[(F&p)>>2]|0;l=y&65535;if(u>>>0>l>>>0?(K=(y>>>16)+s|0,L=r+K|0,L>>>0<=((c[(A&p)>>2]|0)+(c[(M&p)>>2]|0)|0)>>>0):0){y=d[(r+K&n)+1>>0]<<16|d[(L&n)>>0]<<24|d[(r+K&n)+2>>0]<<8|d[(r+K&n)+3>>0];if(a[(I&n)>>0]|0)dn(f,y,3,g);cn(f,0,y,((G+u-l|0)>>>0)/(H>>>0)|0)}if(!(a[(J&n)>>0]|0)){v=d[(r+s&n)+1>>0]<<16|d[(t&n)>>0]<<24|d[(r+s&n)+2>>0]<<8|d[(r+s&n)+3>>0];if(a[(I&n)>>0]|0)dn(f,v,5,g);l=en(f,v,Q,(x|0)==0?0:R)|0;if(!((x|0)<1|(l|0)==(w|0)))fn(f,43944,V)}else l=w;x=x+1|0;s=b[(O&o)>>1]|0;if((x|0)>=(s&65535|0)){t=J;break}else w=l}}while(0);if(!(a[(t&n)>>0]|0)){r=d[(U&n)+6>>0]|0;J=c[(U&p)+56>>2]|0;r=d[(J+r&n)+9>>0]<<16|d[(J+r&n)+8>>0]<<24|d[(J+r&n)+10>>0]<<8|d[(J+r&n)+11>>0];c[(_&p)>>2]=43976;c[(W&p)>>2]=g;if(a[(S&n)+17>>0]|0){dn(f,r,5,g);s=b[(O&o)>>1]|0}en(f,r,0,s<<16>>16!=0?R:0)|0;J=a[(t&n)>>0]|0;c[(_&p)>>2]=43768;c[(W&p)>>2]=g;if(J<<24>>24)P=34}else{c[(_&p)>>2]=43768;c[(W&p)>>2]=g;P=34}do if((P|0)==34?(a[(U&n)+2>>0]|0)!=0:0){r=(k|0)!=0;if(!h){if(!r)break;r=Q;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;m=k;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((r|0)>(m|0)|(r|0)==(m|0)&s>>>0>q>>>0)break;J=V;c[(J&p)>>2]=s;c[(J&p)+4>>2]=r;J=V+8|0;c[(J&p)>>2]=q;c[(J&p)+4>>2]=m;fn(f,44200,V);break}if(!r){s=R;r=c[(s&p)>>2]|0;s=c[(s&p)+4>>2]|0;m=h;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if(!((s|0)>(m|0)|(s|0)==(m|0)&r>>>0>q>>>0))break;J=V;c[(J&p)>>2]=r;c[(J&p)+4>>2]=s;J=V+8|0;c[(J&p)>>2]=q;c[(J&p)+4>>2]=m;fn(f,44008,V);break}r=Q;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;m=h;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if(!((r|0)>(m|0)|(r|0)==(m|0)&s>>>0>q>>>0)){J=V;c[(J&p)>>2]=s;c[(J&p)+4>>2]=r;J=V+8|0;c[(J&p)>>2]=q;c[(J&p)+4>>2]=m;fn(f,44072,V)}q=R;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;r=k;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((q|0)>(r|0)|(q|0)==(r|0)&m>>>0>s>>>0){J=V;c[(J&p)>>2]=m;c[(J&p)+4>>2]=q;q=V+8|0;c[(q&p)>>2]=s;c[(q&p)+4>>2]=r;fn(f,44136,V);q=R;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0}J=h;c[(J&p)>>2]=m;c[(J&p)+4>>2]=q}while(0);w=c[(U&p)+56>>2]|0;x=d[(U&n)+6>>0]|0;y=Go(c[(S&p)+32>>2]|0)|0;c[(_&p)>>2]=0;if(y){v=((d[(w+x&n)+5>>0]<<8|d[(w+x&n)+6>>0])+65535&65535)+1|0;fw(y+v|0,0,T-v|0)|0;fw(y|0,1,v|0)|0;v=d[(w+x&n)+3>>0]<<8|d[(w+x&n)+4>>0];q=x+12-(d[(t&n)>>0]<<2)|0;if(v){m=T+-4|0;u=0;do{t=q+(u<<1)|0;t=d[(w+t&n)>>0]<<8|d[(w+t&n)+1>>0];if((t|0)>(m|0))r=65536;else r=(Lp(U,w+t|0)|0)&65535;s=r+t|0;if((s|0)<=(T|0)){if(r)do{s=s+-1|0;J=y+s|0;a[(J&n)>>0]=(a[(J&n)>>0]|0)+1<<24>>24}while((s|0)>(t|0))}else{c[(_&p)>>2]=0;c[(V&p)>>2]=u;c[(V&p)+4>>2]=g;fn(f,44264,V)}u=u+1|0}while((u|0)<(v|0))}m=d[(w+x&n)+1>>0]<<8|d[(w+x&n)+2>>0];if(m)do{q=d[(w+m&n)+2>>0]<<8|d[(w+m&n)+3>>0];if(q){q=q+m|0;do{q=q+-1|0;J=y+q|0;a[(J&n)>>0]=(a[(J&n)>>0]|0)+1<<24>>24}while((q|0)>(m|0))}m=d[(w+m&n)>>0]<<8|d[(w+m&n)+1>>0]}while((m|0)!=0);b:do if((T|0)>0){q=0;m=0;while(1){r=a[(y+m&n)>>0]|0;if(r<<24>>24){if(r<<24>>24>1)break}else q=q+1|0;m=m+1|0;if((m|0)>=(T|0))break b}c[(V&p)>>2]=m;c[(V&p)+4>>2]=g;fn(f,44312,V)}else q=0;while(0);m=d[(w+x&n)+7>>0]|0;if((q|0)!=(m|0)){c[(V&p)>>2]=q;c[(V&p)+4>>2]=m;c[(V&p)+8>>2]=g;fn(f,44352,V)}}else c[(f&p)+24>>2]=1;$k(y);if(U)Bg(c[(U&p)+68>>2]|0)}else{c[(V&p)>>2]=s;fn(f,43784,V);l=-1}while(0);c[(_&p)>>2]=$;c[(W&p)>>2]=X;c[(Y&p)>>2]=Z;l=l+1|0}else l=0;i=aa;return l|0}function fn(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+224|0;if((i|0)>=(j|0))fa();h=m;k=m+8|0;l=m+24|0;f=b+16|0;g=c[(f&p)>>2]|0;if(g){c[(f&p)>>2]=g+-1;f=b+20|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;c[(k&p)>>2]=e;e=b+40|0;if(c[(b&p)+52>>2]|0)Sk(e,43760,1);f=c[(b&p)+28>>2]|0;if(f){g=c[(b&p)+36>>2]|0;c[(h&p)>>2]=c[(b&p)+32>>2];c[(h&p)+4>>2]=g;ad(200,l,f,h)|0;f=l;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;Sk(e,l,f-l&1073741823)}sg(e,1,d,k);if((a[(b&n)+65>>0]|0)==1)c[(b&p)+24>>2]=1}i=m;return}function gn(b){b=b|0;var d=0,e=0;d=b+8|0;e=c[(d&p)>>2]|0;do if((e|0)!=(c[(b&p)+4>>2]|0))if((a[(b&n)+24>>0]|0)==1){mg(c[(b&p)>>2]|0,e);break}else{Wc(e);break}while(0);c[(d&p)>>2]=0;return}function hn(d){d=d|0;var f=0,g=0,h=0,i=0;g=c[(d&p)+32>>2]|0;i=d+8|0;if(!((b[(i&o)>>1]&9312)==0?(c[(d&p)+24>>2]|0)==0:0))Qg(d);f=mh(g,64,0)|0;h=d+20|0;c[(h&p)>>2]=f;if(!(a[(g&n)+65>>0]|0)){do if(!g)f=lc[c[8792>>2]&127](f)|0;else{if((c[(g&p)+276>>2]|0)>>>0<=f>>>0?(c[(g&p)+280>>2]|0)>>>0>f>>>0:0){f=e[(g&o)+248>>1]|0;break}f=lc[c[8792>>2]&127](f)|0}while(0);c[(d&p)+24>>2]=f;h=c[(h&p)>>2]|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=g;c[(h&p)+8>>2]=0;c[(h&p)+12>>2]=0;c[(h&p)+20>>2]=0;c[(h&p)+16>>2]=h+32;b[(h&o)+24>>1]=(f+1048544|0)>>>4;b[(h&o)+26>>1]=1;c[(h&p)+28>>2]=0;c[(d&p)>>2]=h;b[(i&o)>>1]=32}else{b[(i&o)>>1]=1;c[(d&p)+24>>2]=0}return}function jn(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0;i=on(a)|0;if(i){j=i;c[(j&p)>>2]=d;c[(j&p)+4>>2]=f;c[(i&p)+8>>2]=0;j=a+12|0;h=c[(j&p)>>2]|0;if(!h)c[(a&p)+8>>2]=i;else{a=a+26|0;g=e[(a&o)>>1]|0;if((g&1|0)!=0?(k=h,l=c[(k&p)+4>>2]|0,!((l|0)<(f|0)|((l|0)==(f|0)?(c[(k&p)>>2]|0)>>>0<d>>>0:0))):0)b[(a&o)>>1]=g&65534;c[(h&p)+8>>2]=i}c[(j&p)>>2]=i}return}function kn(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=i;i=i+160|0;if((i|0)>=(j|0))fa();g=h;fw(g|0,0,160)|0;a:do if(!a){a=0;b=0}else{b=0;while(1){d=a+8|0;f=c[(d&p)>>2]|0;c[(d&p)>>2]=0;if(!b)b=g;else{d=b;b=g;e=0;do{a=mn(d,a)|0;c[(b&p)>>2]=0;e=e+1|0;b=g+(e<<2)|0;d=c[(b&p)>>2]|0}while((d|0)!=0)}c[(b&p)>>2]=a;if(!f){a=0;b=0;break a}a=f;b=c[(g&p)>>2]|0}}while(0);do{a=mn(a,c[(g+(b<<2)&p)>>2]|0)|0;b=b+1|0}while((b|0)!=40);i=h;return a|0}function ln(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;f=c[(a&p)+12>>2]|0;if(!f)c[(b&p)>>2]=a;else{ln(f,b,e);c[((c[(e&p)>>2]|0)&p)+8>>2]=a}e=a+8|0;f=c[(e&p)>>2]|0;if(!f)c[(d&p)>>2]=a;else ln(f,e,d);i=g;return}function mn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;d=(a|0)!=0;a:do if(d&(b|0)!=0){e=a;a=l;while(1){h=e;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;while(1){f=b;d=c[(f&p)>>2]|0;f=c[(f&p)+4>>2]|0;if((h|0)<(f|0)|(h|0)==(f|0)&g>>>0<d>>>0){k=4;break}if(!((f|0)<(h|0)|(f|0)==(h|0)&d>>>0<g>>>0))break;c[(a&p)+8>>2]=b;d=c[(b&p)+8>>2]|0;if(!d){f=0;d=1;break a}else{a=b;b=d}}if((k|0)==4){k=0;c[(a&p)+8>>2]=e;a=e}e=c[(e&p)+8>>2]|0;d=(e|0)!=0;if(!(d&(b|0)!=0)){f=b;b=a;break}}}else{f=b;e=a;b=l}while(0);c[(b&p)+8>>2]=d?e:f;i=m;return c[(l&p)+8>>2]|0}function nn(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;d=a+8|0;b=c[(d&p)>>2]|0;c[(e&p)>>2]=b;c[(d&p)>>2]=0;c[(a&p)+12>>2]=0;if(!b)b=a;else{d=1;while(1){g=b+8|0;c[(e&p)>>2]=c[(g&p)>>2];c[(b&p)+12>>2]=a;c[(g&p)>>2]=fq(e,d)|0;a=c[(e&p)>>2]|0;if(!a)break;else{g=b;b=a;d=d+1|0;a=g}}}i=f;return b|0}function on(a){a=a|0;var d=0,e=0,f=0,g=0;f=a+24|0;d=b[(f&o)>>1]|0;if(!(d<<16>>16)){d=mh(c[(a&p)+4>>2]|0,1016,0)|0;if(!d)d=0;else{c[(d&p)>>2]=c[(a&p)>>2];c[(a&p)>>2]=d;d=d+8|0;c[(a&p)+16>>2]=d;b[(f&o)>>1]=63;e=62;g=5}}else{e=d+-1<<16>>16;d=c[(a&p)+16>>2]|0;g=5}if((g|0)==5){b[(f&o)>>1]=e;c[(a&p)+16>>2]=d+16}return d|0}function pn(d){d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();s=t;g=d+4|0;if(a[(g&n)>>0]|0){e=qn(d)|0;if(!e){m=a[(g&n)>>0]|0;f=4}}else{m=0;f=4}do if((f|0)==4){h=c[(d&p)>>2]|0;q=c[(d&p)+60>>2]|0;k=c[(d&p)+212>>2]|0;e=d+160|0;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;l=d+208|0;c[(l&p)>>2]=0;g=(c[(h&p)+4>>2]|0)+112|0;r=qg(g,0)|0;if(!r)e=7;else{fw(r|0,0,g|0)|0;c[(r&p)>>2]=h;u=r+112|0;g=r+8|0;c[(g&p)>>2]=u;c[(r&p)+4>>2]=q;b[(r&o)+40>>1]=-1;d=r+16|0;c[(d&p)>>2]=f;c[(d&p)+4>>2]=e;c[(r&p)+100>>2]=k;d=r+48|0;a[(d&n)>>0]=1;f=r+49|0;a[(f&n)>>0]=1;a[(r&n)+43>>0]=m<<24>>24!=0?2:0;c[(s&p)>>2]=524294;e=tc[c[(h&p)+24>>2]&31](h,k,u,524294,s)|0;if(e){gq(r,0);f=c[(g&p)>>2]|0;g=c[(f&p)>>2]|0;if(g){lc[c[(g&p)+4>>2]&127](f)|0;c[(f&p)>>2]=0}Wc(r);break}if(c[(s&p)>>2]&1)a[(r&n)+46>>0]=1;g=lc[c[((c[(q&p)>>2]|0)&p)+48>>2]&127](q)|0;if(g&1024)a[(d&n)>>0]=0;if(g&4096)a[(f&n)>>0]=0;c[(l&p)>>2]=r;e=0}}while(0);i=t;return e|0}function qn(b){b=b|0;var d=0,e=0,f=0;f=fl(b,4)|0;if((f|0)!=0?(d=c[(b&p)+60>>2]|0,e=c[(d&p)>>2]|0,(e|0)!=0):0){if(!(a[(b&n)+13>>0]|0))rc[c[(e&p)+32>>2]&127](d,1)|0;d=b+17|0;if((a[(d&n)>>0]|0)!=5)a[(d&n)>>0]=1}return f|0}function rn(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;if(!b)g=0;else{k=b+4|0;g=c[(k&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+28>>2]&127](g,4)|0;if(!g){h=b+43|0;if(!(a[(h&n)>>0]|0))a[(h&n)>>0]=1;g=Tn(b,0,0,0,d,e,f,0,0)|0;if(!g){c[(l&p)>>2]=-1;g=c[(k&p)>>2]|0;ac[c[((c[(g&p)>>2]|0)&p)+40>>2]&63](g,10,l)|0;if((c[(l&p)>>2]|0)==1){g=b+16|0;d=c[(g&p)+4>>2]|0;if((d|0)>-1|(d|0)==-1&(c[(g&p)>>2]|0)>>>0>4294967295){Zo(b,0,0);e=0;g=0}else{e=0;g=0}}else{e=1;g=0}}else e=0}else e=0;gq(b,e);d=c[(b&p)+8>>2]|0;h=c[(d&p)>>2]|0;if(h){lc[c[(h&p)+4>>2]&127](d)|0;c[(d&p)>>2]=0}if(e){d=c[3164]|0;if(d)nc[d&3]();d=c[(b&p)>>2]|0;ac[c[(d&p)+28>>2]&63](d,c[(b&p)+100>>2]|0,0)|0;d=c[3166]|0;if(d)nc[d&3]()}Wc(c[(b&p)+32>>2]|0);Wc(b)}i=m;return g|0}function sn(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;k=b+5|0;g=a[(k&n)>>0]|0;if(!((a[(b&n)+15>>0]|0)!=0?!((e|0)==2|(e|0)==4):0))h=3;do if(((h|0)==3?(f=g&255,(f|0)!=(e|0)):0)?(a[(k&n)>>0]=e,(a[(b&n)+4>>0]|0)==0&(f&5|0)==1&(e&1|0)==0):0){f=c[(b&p)+64>>2]|0;g=c[(f&p)>>2]|0;if(g){lc[c[(g&p)+4>>2]&127](f)|0;c[(f&p)>>2]=0}j=b+17|0;if((d[(j&n)>>0]|0)>1){f=c[(b&p)>>2]|0;ac[c[(f&p)+28>>2]&63](f,c[(b&p)+172>>2]|0,0)|0;break}g=b+16|0;f=a[(g&n)>>0]|0;i=f<<24>>24==0;if(i){e=cl(b)|0;h=a[(g&n)>>0]|0}else{h=f;e=0}if(h<<24>>24==1)e=fl(b,2)|0;if((e|0)==0?(g=c[(b&p)>>2]|0,ac[c[(g&p)+28>>2]&63](g,c[(b&p)+172>>2]|0,0)|0,f<<24>>24==1):0){g=c[(b&p)+60>>2]|0;f=c[(g&p)>>2]|0;if(!f)break;if(!(a[(b&n)+13>>0]|0))rc[c[(f&p)+32>>2]&127](g,1)|0;if((a[(j&n)>>0]|0)==5)break;a[(j&n)>>0]=1;break}if(i)No(b)}while(0);return d[(k&n)>>0]|0}function tn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;e=g+4|0;do if(d)if(!(ih(a,d,-1,0,0,e,0)|0)){e=c[(e&p)>>2]|0;Sd(e)|0;a=hq(a,e,b)|0;break}else{dh(b,a,Se(a)|0,f);a=Nf(a)|0;break}else a=7;while(0);i=g;return a|0}function un(a){a=a|0;var b=0;c[((c[(a&p)+4>>2]|0)&p)+4>>2]=c[(a&p)>>2];b=Kg(a,0)|0;if(!b)b=Jg(a,0)|0;return b|0}function vn(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[(e&p)+4>>2]|0;c[(g&p)+4>>2]=c[(e&p)>>2];e=f&255;if(b[(g&o)+22>>1]&2){f=g+17|0;if(((e|0)!=0|0)==(d[(f&n)>>0]|0|0))h=4;else f=8}else{f=g+17|0;h=4}if((h|0)==4){a[(f&n)>>0]=(e|0)!=0&1;a[(g&n)+18>>0]=(e|0)==2&1;f=0}return f|0}function wn(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;d=ih(a,d,-1,0,0,e,0)|0;do if(!d){e=c[(e&p)>>2]|0;while(1){if((Sd(e)|0)!=100){f=6;break}d=tn(a,b,fe(e,0)|0)|0;if(d){f=5;break}}if((f|0)==5){hq(a,e,b)|0;break}else if((f|0)==6){d=hq(a,e,b)|0;break}}while(0);i=g;return d|0}function xn(a){a=a|0;var b=0;b=a+100|0;c[(b&p)>>2]=(c[(b&p)>>2]|0)+1;b=c[(a&p)+88>>2]|0;if(b)do{c[(b&p)+16>>2]=1;b=c[(b&p)+44>>2]|0}while((b|0)!=0);dp(c[(a&p)+204>>2]|0,0);return}function yn(a){a=a|0;var b=0,d=0,e=0;e=a+304|0;b=c[(e&p)>>2]|0;if(!((b|0)%5|0)){b=(b<<2)+20|0;d=a+328|0;b=ro(a,c[(d&p)>>2]|0,b,((b|0)<0)<<31>>31)|0;if(!b)b=7;else{a=b+(c[(e&p)>>2]<<2)|0;c[(a&p)>>2]=0;c[(a&p)+4>>2]=0;c[(a&p)+8>>2]=0;c[(a&p)+12>>2]=0;c[(a&p)+16>>2]=0;c[(d&p)>>2]=b;b=0}}else b=0;return b|0}function zn(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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=i;i=i+16|0;if((i|0)>=(j|0))fa();z=C;u=C+8|0;x=C+4|0;l=f+56|0;v=c[(l&p)>>2]|0;w=c[(f&p)+52>>2]|0;c[(x&p)>>2]=0;c[(z&p)>>2]=c[(f&p)>>2];B=uh(e,10344,z)|0;do if(!B)l=7;else{y=mh(e,28,0)|0;if(!y){mg(e,B);l=7;break}s=y+0|0;r=s+28|0;do{a[(s&n)>>0]=0;s=s+1|0}while((s|0)<(r|0));c[(y&p)>>2]=e;c[(y&p)+4>>2]=g;t=c[(f&p)+68>>2]|0;a:do if(t){s=c[(e&p)+20>>2]|0;if((s|0)>0){q=c[(e&p)+16>>2]|0;m=0;while(1){r=m+1|0;if((c[(q+(m<<4)&p)+12>>2]|0)==(t|0)){r=m;break a}if((r|0)<(s|0))m=r;else break}}else r=0}else r=-1e6;while(0);c[((c[(l&p)>>2]|0)&p)+4>>2]=c[((c[(e&p)+16>>2]|0)+(r<<4)&p)>>2];s=u+4|0;c[(s&p)>>2]=f;c[(u&p)>>2]=y;t=e+324|0;q=c[(t&p)>>2]|0;c[(t&p)>>2]=u;r=y+8|0;l=kc[h&7](e,c[(g&p)+8>>2]|0,w,v,r,x)|0;c[(t&p)>>2]=q;do if((l|0)==7){a[(e&n)+65>>0]=1;A=11}else if(!l){q=c[(r&p)>>2]|0;if(q){c[(q&p)>>2]=0;c[(q&p)+4>>2]=0;c[(q&p)+8>>2]=0;c[(c[(r&p)>>2]&p)>>2]=c[(g&p)>>2];c[(y&p)+12>>2]=1;if(c[(s&p)>>2]|0){c[(z&p)>>2]=c[(f&p)>>2];c[(k&p)>>2]=uh(e,28376,z)|0;An(y);l=1;break}x=f+60|0;c[(y&p)+24>>2]=c[(x&p)>>2];c[(x&p)>>2]=y;x=f+38|0;l=b[(x&o)>>1]|0;if(l<<16>>16>0){w=f+4|0;m=c[(w&p)>>2]|0;h=0;while(1){u=c[(m+(h*24|0)&p)+12>>2]|0;if(u){q=u;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;r=q-u|0;t=r&1073741823;if((Fc(28424,u,6)|0)==0?(v=a[(u&n)+6>>0]|0,v<<24>>24==32|v<<24>>24==0):0)q=0;else A=24;b:do if((A|0)==24){A=0;if(!t)q=0;else{q=0;while(1){if((Fc(28432,u+q|0,7)|0)==0?(v=a[(u+q&n)+7>>0]|0,v<<24>>24==32|v<<24>>24==0):0)break;q=q+1|0;if((q|0)>=(t|0))break b}q=q+1|0}}while(0);if((q|0)<(t|0)){s=(a[(u+q&n)+6>>0]|0)!=0|6;m=q+s|0;if((m|0)<=(t|0)){r=(r&1073741823)+1-s|0;l=m;m=q;while(1){a[(u+m&n)>>0]=a[(u+l&n)>>0]|0;m=m+1|0;if((m|0)==(r|0))break;else l=m+s|0}}if((a[(u+q&n)>>0]|0)==0&(q|0)>0)a[(u+q+-1&n)>>0]=0;m=c[(w&p)>>2]|0;l=m+(h*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|2;l=b[(x&o)>>1]|0}}h=h+1|0;if((h|0)>=(l<<16>>16|0)){l=0;break}}}else l=0}else l=0}else A=11;while(0);if((A|0)==11){m=c[(x&p)>>2]|0;if(!m){c[(z&p)>>2]=B;c[(k&p)>>2]=uh(e,28344,z)|0}else{c[(z&p)>>2]=m;c[(k&p)>>2]=uh(e,10344,z)|0;Wc(c[(x&p)>>2]|0)}mg(e,y)}mg(e,B)}while(0);i=C;return l|0}function An(a){a=a|0;var b=0,d=0,e=0;b=c[(a&p)>>2]|0;e=a+12|0;d=(c[(e&p)>>2]|0)+-1|0;c[(e&p)>>2]=d;if(!d){d=c[(a&p)+8>>2]|0;if(d)lc[c[((c[(d&p)>>2]|0)&p)+16>>2]&127](d)|0;mg(b,a)}return}function Bn(f,g){f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=f+10|0;i=g<<24>>24==1;if((a[(v&n)>>0]|0)==1|i){r=f+12|0;h=c[(r&p)>>2]|0;if(i){i=h&-2;c[(r&p)>>2]=i;l=i;i=i<<1|1}else{l=h;i=(h<<1)+2|0}s=f+16|0;h=c[(s&p)>>2]|0;q=h+l|0;t=f+32|0;u=mh(c[(t&p)>>2]|0,i,((i|0)<0)<<31>>31)|0;if(!u)h=7;else{i=a[(v&n)>>0]|0;if(i<<24>>24==2)if((l|0)>0){i=u;do{j=d[(h&n)>>0]|0;l=h+2|0;m=d[(h&n)+1>>0]<<8;k=m|j;if((m&63488|0)==55296&l>>>0<q>>>0){k=(k<<10&983040)+65536|j<<10&64512|d[(l&n)>>0]|d[(h&n)+3>>0]<<8&768;h=h+4|0}else h=l;do if(k>>>0>=128){if(k>>>0<2048){a[(i&n)>>0]=k>>>6&31|192;a[(i&n)+1>>0]=k&63|128;i=i+2|0;break}if(k>>>0<65536){a[(i&n)>>0]=k>>>12&15|224;a[(i&n)+1>>0]=k>>>6&63|128;a[(i&n)+2>>0]=k&63|128;i=i+3|0;break}else{a[(i&n)>>0]=k>>>18&7|240;a[(i&n)+1>>0]=k>>>12&63|128;a[(i&n)+2>>0]=k>>>6&63|128;a[(i&n)+3>>0]=k&63|128;i=i+4|0;break}}else{a[(i&n)>>0]=k;i=i+1|0}while(0)}while(h>>>0<q>>>0);m=55}else{i=u;m=55}else if(i<<24>>24!=1)if((l|0)>0){i=u;do{m=d[(h&n)>>0]<<8;l=h+2|0;k=d[(h&n)+1>>0]|0;j=m|k;if((m&63488|0)==55296&l>>>0<q>>>0){j=(j<<10&983040)+65536|k<<10&64512|d[(h&n)+3>>0]|d[(l&n)>>0]<<8&768;h=h+4|0}else h=l;do if(j>>>0>=128){if(j>>>0<2048){a[(i&n)>>0]=j>>>6&31|192;a[(i&n)+1>>0]=j&63|128;i=i+2|0;break}if(j>>>0<65536){a[(i&n)>>0]=j>>>12&15|224;a[(i&n)+1>>0]=j>>>6&63|128;a[(i&n)+2>>0]=j&63|128;i=i+3|0;break}else{a[(i&n)>>0]=j>>>18&7|240;a[(i&n)+1>>0]=j>>>12&63|128;a[(i&n)+2>>0]=j>>>6&63|128;a[(i&n)+3>>0]=j&63|128;i=i+4|0;break}}else{a[(i&n)>>0]=j;i=i+1|0}while(0)}while(h>>>0<q>>>0);m=55}else{i=u;m=55}else{i=(l|0)>0;if(g<<24>>24==2)if(i){i=u;l=h;while(1){h=l+1|0;j=a[(l&n)>>0]|0;k=j&255;if((j&255)>191){k=d[(k+-192&n)+15360>>0]|0;a:do if((h|0)==(q|0))h=q;else while(1){j=a[(h&n)>>0]|0;if((j&-64)<<24>>24!=-128)break a;l=l+2|0;k=j&63|k<<6;if((l|0)==(q|0)){h=q;break}else{j=h;h=l;l=j}}while(0);if(!(k>>>0<128|(k&-2048|0)==55296|(k&-2|0)==65534))if(k>>>0<65536)m=22;else{l=k+-65536|0;a[(i&n)>>0]=l>>>10&192|k>>>10&63;a[(i&n)+1>>0]=l>>>18&3|216;a[(i&n)+2>>0]=k;a[(i&n)+3>>0]=k>>>8&3|220;i=i+4|0}else{k=65533;m=22}}else m=22;if((m|0)==22){m=0;a[(i&n)>>0]=k;a[(i&n)+1>>0]=k>>>8;i=i+2|0}if(h>>>0<q>>>0)l=h;else break}}else i=u;else if(i){i=u;do{l=h+1|0;k=a[(h&n)>>0]|0;j=k&255;if((k&255)>191){j=d[(j+-192&n)+15360>>0]|0;b:do if((l|0)==(q|0))h=q;else{k=h;h=l;while(1){l=a[(h&n)>>0]|0;if((l&-64)<<24>>24!=-128)break b;k=k+2|0;j=l&63|j<<6;if((k|0)==(q|0)){h=q;break}else{l=h;h=k;k=l}}}while(0);if(!(j>>>0<128|(j&-2048|0)==55296|(j&-2|0)==65534))if(j>>>0<65536)m=31;else{l=j+-65536|0;a[(i&n)>>0]=l>>>18&3|216;a[(i&n)+1>>0]=l>>>10&192|j>>>10&63;a[(i&n)+2>>0]=j>>>8&3|220;a[(i&n)+3>>0]=j;i=i+4|0}else{j=65533;m=31}}else{h=l;m=31}if((m|0)==31){m=0;a[(i&n)>>0]=j>>>8;a[(i&n)+1>>0]=j;i=i+2|0}}while(h>>>0<q>>>0)}else i=u;c[(r&p)>>2]=i-u;a[(i&n)>>0]=0;i=i+1|0}if((m|0)==55)c[(r&p)>>2]=i-u;a[(i&n)>>0]=0;i=f+8|0;r=b[(i&o)>>1]|0;h=r&65535;if(!((r&9312)==0?(c[(f&p)+24>>2]|0)==0:0))Qg(f);b[(i&o)>>1]=h&29|514;a[(v&n)>>0]=g;c[(s&p)>>2]=u;c[(f&p)+20>>2]=u;h=c[(t&p)>>2]|0;do if(!h)h=lc[c[8792>>2]&127](u)|0;else{if((c[(h&p)+276>>2]|0)>>>0<=u>>>0?(c[(h&p)+280>>2]|0)>>>0>u>>>0:0){h=e[(h&o)+248>>1]|0;break}h=lc[c[8792>>2]&127](u)|0}while(0);c[(f&p)+24>>2]=h;h=0}}else if(!(Vl(f)|0)){h=c[(f&p)+16>>2]|0;t=c[(f&p)+12>>2]&-2;i=h+t|0;if((t|0)>0)do{s=a[(h&n)>>0]|0;t=h+1|0;a[(h&n)>>0]=a[(t&n)>>0]|0;h=h+2|0;a[(t&n)>>0]=s}while(h>>>0<i>>>0);a[(v&n)>>0]=g;h=0}else h=7;return h|0}function Cn(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;i=a[(b&n)>>0]|0;g=i&255;a:do switch(g|0){case 46:{if(((d[(b&n)+1>>0]|0)+-48|0)>>>0<10)j=51;else{c[(e&p)>>2]=122;f=1}break}case 47:{if((a[(b&n)+1>>0]|0)==42?(f=a[(b&n)+2>>0]|0,f<<24>>24!=0):0){f=f&255;g=3;while(1){i=a[(b+g&n)>>0]|0;if((f|0)==42&i<<24>>24==47){f=42;break}f=i&255;if(!(i<<24>>24))break;else g=g+1|0}c[(e&p)>>2]=151;f=((f|0)!=0&1)+g|0;break a}c[(e&p)>>2]=92;f=1;break}case 45:{if((a[(b&n)+1>>0]|0)==45)f=2;else{c[(e&p)>>2]=90;f=1;break a}while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==0|g<<24>>24==10)break;f=f+1|0}c[(e&p)>>2]=151;break}case 41:{c[(e&p)>>2]=23;f=1;break}case 59:{c[(e&p)>>2]=1;f=1;break}case 43:{c[(e&p)>>2]=89;f=1;break}case 42:{c[(e&p)>>2]=91;f=1;break}case 40:{c[(e&p)>>2]=22;f=1;break}case 124:if((a[(b&n)+1>>0]|0)==124){c[(e&p)>>2]=94;f=2;break a}else{c[(e&p)>>2]=86;f=1;break a}case 91:{f=1;while(1){g=a[(b+f&n)>>0]|0;if(!(g<<24>>24)){g=g&255;break}f=f+1|0;if(g<<24>>24==93){g=93;break}}c[(e&p)>>2]=(g|0)==93?27:150;break}case 44:{c[(e&p)>>2]=26;f=1;break}case 38:{c[(e&p)>>2]=85;f=1;break}case 126:{c[(e&p)>>2]=96;f=1;break}case 34:case 39:case 96:{g=a[(b&n)+1>>0]|0;b:do if(g<<24>>24){f=1;while(1){if(g<<24>>24==i<<24>>24){f=f+1|0;if((a[(b+f&n)>>0]|0)!=i<<24>>24)break}f=f+1|0;g=a[(b+f&n)>>0]|0;if(!(g<<24>>24))break b}if(i<<24>>24==39){c[(e&p)>>2]=97;break a}else{c[(e&p)>>2]=27;break a}}else f=1;while(0);c[(e&p)>>2]=150;break}case 88:case 120:{if((a[(b&n)+1>>0]|0)==39){c[(e&p)>>2]=134;f=2;while(1){g=a[(b+f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&8))break;else f=f+1|0}if(g<<24>>24==39&(f&1|0)==0)g=1;else{c[(e&p)>>2]=150;while(1){g=a[(b+f&n)>>0]|0;if(g<<24>>24==39|g<<24>>24==0)break;f=f+1|0}g=g<<24>>24!=0}f=(g&1)+f|0}else j=98;break}case 61:{c[(e&p)>>2]=79;f=(a[(b&n)+1>>0]|0)==61?2:1;break}case 60:{f=a[(b&n)+1>>0]|0;if(f<<24>>24==62){c[(e&p)>>2]=78;f=2;break a}else if(f<<24>>24==60){c[(e&p)>>2]=87;f=2;break a}else if(f<<24>>24==61){c[(e&p)>>2]=81;f=2;break a}else{c[(e&p)>>2]=82;f=1;break a}}case 57:case 56:case 55:case 54:case 53:case 52:case 51:case 50:case 49:case 48:{j=51;break}case 62:{f=a[(b&n)+1>>0]|0;if(f<<24>>24==61){c[(e&p)>>2]=83;f=2;break a}else if(f<<24>>24==62){c[(e&p)>>2]=88;f=2;break a}else{c[(e&p)>>2]=80;f=1;break a}}case 63:{c[(e&p)>>2]=135;f=1;while(1)if(((d[(b+f&n)>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break;break}case 33:if((a[(b&n)+1>>0]|0)==61){c[(e&p)>>2]=78;f=2;break a}else{c[(e&p)>>2]=150;f=2;break a}case 58:case 35:case 64:case 36:{c[(e&p)>>2]=135;g=a[(b&n)+1>>0]|0;if(g<<24>>24){f=1;i=0;while(1){if(!(a[(g&255&n)+10368>>0]&70)){if(g<<24>>24==40&(i|0)>0){g=i;j=78;break}if(g<<24>>24!=58){g=i;break}g=f+1|0;if((a[(b+g&n)>>0]|0)==58)f=g;else{g=i;break}}else i=i+1|0;f=f+1|0;g=a[(b+f&n)>>0]|0;if(!(g<<24>>24)){g=i;break}}do if((j|0)==78){h=f;while(1){f=h+1|0;i=a[(b+f&n)>>0]|0;if(!(i<<24>>24))break;if(i<<24>>24!=41?(a[(i&255&n)+10368>>0]&1)==0:0)h=f;else{j=81;break}}if((j|0)==81)if(i<<24>>24==41){f=h+2|0;break}c[(e&p)>>2]=150}while(0);if(g)break a}else f=1;c[(e&p)>>2]=150;break}case 37:{c[(e&p)>>2]=93;f=1;break}case 13:case 12:case 10:case 9:case 32:{f=1;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&1))break;else f=f+1|0;c[(e&p)>>2]=151;break}default:j=98}while(0);c:do if((j|0)==51){c[(e&p)>>2]=132;f=a[(b&n)>>0]|0;if(f<<24>>24==48){g=a[(b&n)+1>>0]|0;if(g<<24>>24==88|g<<24>>24==120)if(!(a[((d[(b&n)+2>>0]|0)&n)+10368>>0]&8))h=0;else{f=3;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&8))break c;else f=f+1|0}else{f=48;h=0}}else h=0;while(1){g=h+1|0;if(((f&255)+-48|0)>>>0>=10){g=h;break}f=a[(b+g&n)>>0]|0;h=g}if(f<<24>>24==46){f=g;do{f=f+1|0;g=b+f|0}while(((d[(g&n)>>0]|0)+-48|0)>>>0<10);c[(e&p)>>2]=133;h=a[(g&n)>>0]|0;i=f}else{h=f;i=g}do if(h<<24>>24==69|h<<24>>24==101){g=a[(b+i&n)+1>>0]|0;if(((g&255)+-48|0)>>>0>=10){if(!(g<<24>>24==45|g<<24>>24==43)){g=h;f=i;break}f=i+2|0;if(((d[(b+f&n)>>0]|0)+-48|0)>>>0>=10){g=h;f=i;break}}else f=i+2|0;while(1){g=b+f|0;if(((d[(g&n)>>0]|0)+-48|0)>>>0<10)f=f+1|0;else break}c[(e&p)>>2]=133;g=a[(g&n)>>0]|0}else{g=h;f=i}while(0);if(a[(g&255&n)+10368>>0]&70)do{c[(e&p)>>2]=150;f=f+1|0}while((a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&70)!=0)}else if((j|0)==98){if(!(a[(g&n)+10368>>0]&70)){c[(e&p)>>2]=150;f=1;break}else f=1;while(1)if(!(a[((d[(b+f&n)>>0]|0)&n)+10368>>0]&70))break;else f=f+1|0;c[(e&p)>>2]=fi(b,f)|0}while(0);return f|0}function Dn(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0;f=a[(b&n)>>0]|0;if(f<<24>>24==43){b=b+1|0;i=0;j=13}else if(f<<24>>24==45){b=b+1|0;i=1;j=13}else if((f<<24>>24==48?(f=a[(b&n)+1>>0]|0,f<<24>>24==88|f<<24>>24==120):0)?(g=b+2|0,e=a[(g&n)>>0]|0,(a[(e&255&n)+10368>>0]&8)!=0):0){while(1){f=g+1|0;if(e<<24>>24!=48)break;g=f;e=a[(f&n)>>0]|0}if(!(a[(e&255&n)+10368>>0]&8)){e=0;f=0}else{h=e;b=0;f=0;do{e=h<<24>>24;f=(0-(e>>>6&1)&9)+e&15|f<<4;b=b+1|0;h=a[(g+b&n)>>0]|0;e=(a[(h&255&n)+10368>>0]&8)==0}while((b|0)<8&(e^1));e=e^1}if((f|0)<0|e)e=0;else{c[(d&p)>>2]=f;e=1}}else{i=0;j=13}a:do if((j|0)==13){e=0;f=0;h=0;while(1){g=(a[(b+h&n)>>0]|0)+-48|0;if(g>>>0>=10)break;f=sw(e|0,f|0,10,0)|0;e=jw(g|0,((g|0)<0)<<31>>31|0,f|0,G|0)|0;h=h+1|0;if((h|0)>=11){e=0;break a}else f=G}g=dw(e|0,f|0,i|0,0)|0;b=G;if((b|0)>0|(b|0)==0&g>>>0>2147483647)e=0;else{if(i)e=dw(0,0,e|0,f|0)|0;c[(d&p)>>2]=e;e=1}}while(0);return e|0}function En(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;sg(a,b,d,g);i=f;return}function Fn(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,C=0,D=0,E=0,F=0,H=0,I=0;I=i;i=i+16|0;if((i|0)>=(j|0))fa();F=I;D=I+4|0;c[(D&p)>>2]=0;H=mh(e,536,0)|0;a:do if(H){fw(H|0,0,536)|0;c[(H&p)+476>>2]=k;u=e+20|0;k=c[(u&p)>>2]|0;b:do if((k|0)>0){v=e+16|0;s=0;while(1){t=c[((c[(v&p)>>2]|0)+(s<<4)&p)+4>>2]|0;if(t){c[((c[(t&p)+4>>2]|0)&p)+4>>2]=c[(t&p)>>2];q=bl(t,1,1)|0;if(q)break;k=c[(u&p)>>2]|0}s=s+1|0;if((s|0)>=(k|0))break b}c[(F&p)>>2]=c[((c[(v&p)>>2]|0)+(s<<4)&p)>>2];ug(e,q,40984,F);s=H;break a}while(0);rl(e);c[(H&p)>>2]=e;c[(H&p)+424>>2]=0;do if((g|0)>-1){if((g|0)!=0?(a[(f+g+-1&n)>>0]|0)==0:0){E=21;break}if((c[(e&p)+92>>2]|0)<(g|0)){ug(e,18,41016,F);if(!e){s=H;q=18;break a}if(!(a[(e&n)+65>>0]|0)){s=H;q=c[(e&p)+56>>2]&18;break a}else{Ql(e);s=H;q=7;break a}}else{if((f|0)!=0?(r=jw(g|0,((g|0)<0)<<31>>31|0,1,0)|0,r=mh(e,r,G)|0,(r|0)!=0):0){kw(r|0,f|0,g|0)|0;a[(r+g&n)>>0]=0;Lh(H,r,D)|0;mg(e,r);q=H+480|0;c[(q&p)>>2]=f+((c[(q&p)>>2]|0)-r);break}c[(H&p)+480>>2]=f+g;break}}else E=21;while(0);if((E|0)==21)Lh(H,f,D)|0;v=e+65|0;k=H+12|0;if(!(a[(v&n)>>0]|0)){s=H+12|0;if((c[(k&p)>>2]|0)==101)c[(s&p)>>2]=0}else{c[(k&p)>>2]=7;s=H+12|0}c:do if((a[(H&n)+17>>0]|0)!=0?(w=c[(H&p)>>2]|0,x=w+20|0,(c[(x&p)>>2]|0)>0):0){r=w+16|0;u=0;while(1){k=c[(r&p)>>2]|0;q=c[(k+(u<<4)&p)+4>>2]|0;if(q){if(!(a[(q&n)+8>>0]|0)){k=yg(q,0)|0;if((k|0)==7|(k|0)==3082)break;else if(k)break c;k=c[(r&p)>>2]|0;t=1}else t=0;g=c[(q&p)+4>>2]|0;c[(g&p)+4>>2]=c[(q&p)>>2];g=c[((c[(g&p)+12>>2]|0)&p)+56>>2]|0;if((d[(g&n)+41>>0]<<16|d[(g&n)+40>>0]<<24|d[(g&n)+42>>0]<<8|d[(g&n)+43>>0]|0)!=(c[(c[(k+(u<<4)&p)+12>>2]&p)>>2]|0)){vm(w,u);c[(s&p)>>2]=17}if(t)un(q)|0}u=u+1|0;if((u|0)>=(c[(x&p)>>2]|0))break c}a[(w&n)+65>>0]=1}while(0);if(a[(v&n)>>0]|0)c[(s&p)>>2]=7;if(m)c[(m&p)>>2]=c[(H&p)+480>>2];q=c[(s&p)>>2]|0;t=(q|0)==0;do if(t?(z=H+8|0,y=c[(z&p)>>2]|0,(y|0)!=0):0){s=a[(H&n)+450>>0]|0;if(!(s<<24>>24))break;else if(s<<24>>24==2){iq(y,4);r=8;k=12}else{iq(y,8);r=0;k=8}s=r;do{jq(c[(z&p)>>2]|0,s-r|0,0,c[(s<<2&p)+41040>>2]|0,0);s=s+1|0}while((s|0)<(k|0))}while(0);r=H+8|0;if((a[(e&n)+145>>0]|0)==0?(C=c[(r&p)>>2]|0,A=(c[(H&p)+480>>2]|0)-f|0,(C|0)!=0):0){if((f|0)!=0?(z=c[(C&p)>>2]|0,B=jw(A|0,((A|0)<0)<<31>>31|0,1,0)|0,B=mh(z,B,G)|0,(B|0)!=0):0){kw(B|0,f|0,A|0)|0;a[(B+A&n)>>0]=0;s=B}else s=0;c[(C&p)+168>>2]=s;C=C+88|0;b[(C&o)>>1]=b[(C&o)>>1]&-257|(h&65535)<<8&256}s=c[(r&p)>>2]|0;do if(!s)E=60;else{if(t?(a[(v&n)>>0]|0)==0:0){E=60;break}Ng(s)|0}while(0);if((E|0)==60)c[(l&p)>>2]=s;r=c[(D&p)>>2]|0;do if(!r){c[(e&p)+52>>2]=q;r=c[(e&p)+236>>2]|0;if(r){s=r+8|0;if(!(b[(s&o)>>1]&9312)){b[(s&o)>>1]=1;break}else{vg(r);break}}}else{c[(F&p)>>2]=r;ug(e,q,10344,F);mg(e,r)}while(0);r=H+528|0;s=c[(r&p)>>2]|0;if(!s)s=H;else{do{c[(r&p)>>2]=c[(s&p)+4>>2];mg(e,s);s=c[(r&p)>>2]|0}while((s|0)!=0);s=H}}else{s=0;q=7}while(0);Ch(s);mg(e,H);F=Og(e,q)|0;i=I;return F|0}function Gn(b){b=b|0;var d=0,e=0;e=c[(b&p)>>2]|0;if((a[(e&n)+145>>0]|0)==0?(d=Zh(e,b+4|0)|0,(d|0)!=0):0){c[(b&p)+12>>2]=d;e=b+64|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1}else d=0;return d|0}function Hn(a){a=a|0;var b=0,d=0,f=0,g=0,h=0;f=c[(a&p)+24>>2]|0;h=f+84|0;b=c[(h&p)>>2]|0;if(!b){b=1020;d=0}else{b=b*40|0;d=0}g=a+4|0;a=ro(c[(f&p)>>2]|0,c[(g&p)>>2]|0,b,d)|0;d=(a|0)!=0;if(d){b=c[(f&p)>>2]|0;do if(!b)b=lc[c[8792>>2]&127](a)|0;else{if((c[(b&p)+276>>2]|0)>>>0<=a>>>0?(c[(b&p)+280>>2]|0)>>>0>a>>>0:0){b=e[(b&o)+248>>1]|0;break}b=lc[c[8792>>2]&127](a)|0}while(0);c[(h&p)>>2]=(b>>>0)/20|0;c[(g&p)>>2]=a}return (d?0:7)|0}function In(a,d,e){a=a|0;d=d|0;e=e|0;a:do if(e)switch(d|0){case -6:{if(c[(a&p)+520>>2]|0)break a;a=(c[(e&p)>>2]|0)+-1|0;c[(e&p)>>2]=a;if(a)break a;Wc(e);break a}case -8:{if(!(c[(a&p)+520>>2]|0)){Mh(e);break a}if(c[(e&p)+24>>2]|0)mg(a,c[(e&p)+20>>2]|0);mg(a,e);break a}case -10:{if(c[(a&p)+520>>2]|0)break a;An(e);break a}case -15:case -1:case -13:case -12:{mg(a,e);break a}case -11:{if(c[(a&p)+520>>2]|0)break a;Wc(e);break a}case -5:{if(!(b[(e&o)+2>>1]&16))break a;mg(a,e);break a}default:break a}while(0);return}function Jn(e,f){e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;g=c[(f&p)>>2]|0;s=c[(e&p)+24>>2]|0;t=s+112|0;k=c[(t&p)>>2]|0;q=e+88|0;b[(q&o)>>1]=b[(q&o)>>1]&-193|64;h=c[(e&p)+32>>2]|0;a:do if((h|0)>0){j=c[(e&p)+4>>2]|0;while(1){h=h+-1|0;i=d[(j&n)>>0]|0;switch(i|0){case 5:case 7:case 9:{c[(j&p)+16>>2]=76;a[(j&n)+1>>0]=-19;break}case 6:case 8:{c[(j&p)+16>>2]=77;a[(j&n)+1>>0]=-19;break}case 14:{u=c[(j+-16&p)>>2]|0;g=(u|0)>(g|0)?u:g;break}case 2:case 3:{r=7;break}case 4:{if(!(c[(j&p)+8>>2]|0))r=7;else{b[(q&o)>>1]=b[(q&o)>>1]&-65;r=7}break}case 12:case 13:case 11:{b[(q&o)>>1]=b[(q&o)>>1]&-193|128;break}case 15:{u=c[(j&p)+8>>2]|0;g=(u|0)>(g|0)?u:g;break}case 10:case 1:{u=d[(j&n)+3>>0]|0;g=(u|0)>(g|0)?u:g;break}default:{}}if((r|0)==7){r=0;b[(q&o)>>1]=b[(q&o)>>1]|128}i=a[(i&n)+34168>>0]|0;a[(j&n)+2>>0]=i;if((i&1)!=0?(l=j+8|0,m=c[(l&p)>>2]|0,(m|0)<0):0)c[(l&p)>>2]=c[(k+(~m<<2)&p)>>2];if((h|0)<=0)break a;else j=j+20|0}}while(0);mg(c[(e&p)>>2]|0,c[(t&p)>>2]|0);c[(t&p)>>2]=0;c[(s&p)+108>>2]=0;c[(f&p)>>2]=g;return}function Kn(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=b+73|0;if((a[(e&n)>>0]|0)!=4){a[(e&n)>>0]=0;f=b+56|0;d=b+48|0;d=Gp(b,c[(f&p)>>2]|0,c[(d&p)>>2]|0,c[(d&p)+4>>2]|0,0,g)|0;if(!d){Wc(c[(f&p)>>2]|0);c[(f&p)>>2]=0;f=b+68|0;d=c[(f&p)>>2]|c[(g&p)>>2];c[(f&p)>>2]=d;if((d|0)!=0?(a[(e&n)>>0]|0)==1:0){a[(e&n)>>0]=2;d=0}else d=0}}else d=c[(b&p)+68>>2]|0;i=h;return d|0}function Ln(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;a=c[(a&p)+8>>2]|0;a:do if(!a)a=0;else{e=(b|0)==0;while(1){if((a|0)!=(d|0)){if(e)break;if((c[(a&p)+60>>2]|0)==(b|0))break}a=c[(a&p)+8>>2]|0;if(!a){a=0;break a}}a=Fl(a,b,d)|0}while(0);return a|0}function Mn(b){b=b|0;var e=0,f=0,g=0,h=0;f=c[(b&p)>>2]|0;g=f+1|0;c[(b&p)>>2]=g;h=a[(f&n)>>0]|0;e=h&255;if((h&255)<=191)return e|0;e=d[(e+-192&n)+15360>>0]|0;if((a[(g&n)>>0]&-64)<<24>>24==-128)while(1){f=f+2|0;c[(b&p)>>2]=f;e=(d[(g&n)>>0]|0)&63|e<<6;if((a[(f&n)>>0]&-64)<<24>>24==-128){h=g;g=f;f=h}else break}return (e>>>0<128|(e&-2048|0)==55296|(e&-2|0)==65534?65533:e)|0}function Nn(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;if((c|0)>-1)g=b+c|0;else g=-1;c=a[(b&n)>>0]|0;if(c<<24>>24!=0&g>>>0>b>>>0){d=c;c=0;do{f=b+1|0;if((d&255)>191){e=b;b=f;while(1){d=a[(b&n)>>0]|0;if((d&-64)<<24>>24==-128){d=b;b=e+2|0;e=d}else break}}else{d=a[(f&n)>>0]|0;b=f}c=c+1|0}while(d<<24>>24!=0&b>>>0<g>>>0)}else c=0;return c|0}function On(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+48|0;if((i|0)>=(j|0))fa();w=A+32|0;x=A+16|0;y=A;k=c[(d&p)>>2]|0;if((k|0)<0){c[(d&p)>>2]=0;c[(d&p)+4>>2]=-1;b[(d&o)+12>>1]=0;a[(d&n)+14>>0]=0;k=0}s=g;r=c[(s&p)+4>>2]|0;t=y;c[(t&p)>>2]=c[(s&p)>>2];c[(t&p)+4>>2]=r;t=d+8|0;c[(t&p)>>2]=h;r=f&255;s=(f|0)==254;do{q=b[(d+(k<<4)&o)+12>>1]|0;h=q&65535;g=37184+(h<<1)|0;a:do if((q&65535)>429)z=6;else{q=r;while(1){m=b[(g&o)>>1]|0;l=m<<16>>16;if(m<<16>>16==-86){z=6;break a}m=q&255;k=l+m|0;if(k>>>0<=1496?(a[(k&n)+39336>>0]|0)==q<<24>>24:0){z=16;break}if(!(q<<24>>24))break;if((q&255)>=70){u=l;z=12;break}q=a[(m&n)+40840>>0]|0;if(!(q<<24>>24)){u=l;z=12;break}}if((z|0)==16){z=0;k=e[(k<<1&o)+22184>>1]|0;break}if(((z|0)==12?(z=0,v=u+70|0,(v|0)>-1):0)?(a[(v&n)+39336>>0]|0)==70:0){k=e[(v<<1&o)+22184>>1]|0;break}k=e[(h<<1&o)+38048>>1]|0}while(0);if((z|0)==6){z=0;k=e[(h<<1&o)+38048>>1]|0}if(k>>>0<642){z=18;break}if(k>>>0>=969){z=20;break}mq(d,k+-642|0);if(s)break;k=c[(d&p)>>2]|0}while((k|0)>-1);if((z|0)==18){kq(d,k,f,y);u=d+4|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+-1}else if((z|0)==20){c[(x&p)>>2]=c[(y&p)>>2];c[(x&p)+4>>2]=c[(y&p)+4>>2];c[(x&p)+8>>2]=c[(y&p)+8>>2];u=c[(t&p)>>2]|0;c[(w&p)>>2]=x;th(u,20432,w);c[(t&p)>>2]=u;lq(d,r,y)}i=A;return}function Pn(b){b=b|0;var d=0;d=c[(b&p)>>2]|0;if((d|0)>=0){lq(b,a[(b+(d<<4)&n)+14>>0]|0,b+(d<<4)+16|0);c[(b&p)>>2]=(c[(b&p)>>2]|0)+-1}return}function Qn(a,b){a=a|0;b=b|0;var d=0;if(b){if((c[(b&p)>>2]|0)>0){d=0;do{Nk(a,c[(b+(d<<4)&p)+12>>2]|0);Mk(a,c[(b+(d<<4)&p)+16>>2]|0,1);mg(a,c[(b+(d<<4)&p)+8>>2]|0);d=d+1|0}while((d|0)<(c[(b&p)>>2]|0))}mg(a,b)}return}function Rn(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+328|0;d=c[(h&p)>>2]|0;if(d){i=a+304|0;if((c[(i&p)>>2]|0)>0){f=0;do{e=c[(d+(f<<2)&p)>>2]|0;d=c[(e&p)+8>>2]|0;if((d|0)!=0?(g=c[((c[(d&p)>>2]|0)+b&p)>>2]|0,(g|0)!=0):0)lc[g&127](d)|0;c[(e&p)+20>>2]=0;An(e);f=f+1|0;d=c[(h&p)>>2]|0}while((f|0)<(c[(i&p)>>2]|0))}mg(a,d);c[(i&p)>>2]=0;c[(h&p)>>2]=0}return}function Sn(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0;do if((d|0)==-2)if(!(c[(a&p)+12>>2]|0))d=(c[(a&p)+16>>2]|0)==0?0:6;else d=6;else{h=b[(a&o)>>1]|0;g=h<<16>>16;if(!((g|0)!=(d|0)&h<<16>>16>-1)){h=(g|0)==(d|0)?4:1;g=f&255;d=e[(a&o)+2>>1]|0;if((g|0)==(d&3|0)){d=h|2;break}else return ((d&g)>>>1&1)+h|0}else d=0}while(0);return d|0}
|
|
function uc(a){a=a|0;var b=0;b=i;i=i+a|0;i=i+15&-16;if((i|0)>=(j|0))fa();return b|0}function vc(){return i|0}function wc(a){a=a|0;i=a}function xc(a,b){a=a|0;b=b|0;if(!r){r=a;s=b}}function yc(b){b=b|0;a[(k&n)>>0]=a[(b&n)>>0];a[(k&n)+1>>0]=a[(b&n)+1>>0];a[(k&n)+2>>0]=a[(b&n)+2>>0];a[(k&n)+3>>0]=a[(b&n)+3>>0]}function zc(b){b=b|0;a[(k&n)>>0]=a[(b&n)>>0];a[(k&n)+1>>0]=a[(b&n)+1>>0];a[(k&n)+2>>0]=a[(b&n)+2>>0];a[(k&n)+3>>0]=a[(b&n)+3>>0];a[(k&n)+4>>0]=a[(b&n)+4>>0];a[(k&n)+5>>0]=a[(b&n)+5>>0];a[(k&n)+6>>0]=a[(b&n)+6>>0];a[(k&n)+7>>0]=a[(b&n)+7>>0]}function Ac(a){a=a|0;G=a}function Bc(){return G|0}function Cc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();e=h+4|0;f=h;g=0;a:while(1){c[(e&p)>>2]=0;c[(f&p)>>2]=0;a[280]=0;if(Rf(14640,e)|0){d=4;break}d=c[(e&p)>>2]|0;b=0;do{if(Qe(d,c[(b<<2&p)+8>>2]|0,17,0,f)|0){d=7;break a}b=b+1|0;d=c[(e&p)>>2]|0}while((b|0)!=5);tf(d)|0;if(_v(280,8504)|0){d=9;break}g=g+1|0;if((g|0)>=3){d=11;break}}if((d|0)==4)ib(8472,8488,47,8496);else if((d|0)==7)ib(8472,8488,50,8496);else if((d|0)==9)ib(8600,8488,53,8496);else if((d|0)==11){i=h;return 0}return 0}function Dc(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;if((d|0)>0)while(1){d=d+-1|0;hw(280,c[(f&p)>>2]|0)|0;b=280+(gw(280)|0)|0;a[(b&n)>>0]=61;a[(b&n)+1>>0]=0;b=c[(e&p)>>2]|0;hw(280,((b|0)==0?20304:b)|0)|0;if((d|0)<=0)break;else{e=e+4|0;f=f+4|0}}return 0}function Ec(b){b=b|0;var e=0,f=0,g=0;g=(Fc(b,8640,7)|0)==0;g=g?b+7|0:b;if(!g)b=0;else{b=g;while(1)if(!(a[(b&n)>>0]|0))break;else b=b+1|0;b=b-g&1073741823}f=0;while(1){e=c[(f<<2&p)+8648>>2]|0;if((Fc(g,e,b)|0)==0?(a[((d[(e+b&n)>>0]|0)&n)+10368>>0]&70)==0:0){b=1;break}f=f+1|0;if((f|0)>=4){b=0;break}}return b|0}function Fc(b,c,e){b=b|0;c=c|0;e=e|0;var f=0;a:do if(b)if(c)if((e|0)>0){f=b;while(1){b=a[(f&n)>>0]|0;if(!(b<<24>>24))break;if((a[(b&255&n)+9328>>0]|0)!=(a[((d[(c&n)>>0]|0)&n)+9328>>0]|0))break;e=e+-1|0;if((e|0)<=0){e=0;break a}else{f=f+1|0;c=c+1|0}}if((e|0)>=1)e=(d[(b&255&n)+9328>>0]|0)-(d[((d[(c&n)>>0]|0)&n)+9328>>0]|0)|0;else e=0}else e=0;else e=1;else e=((c|0)!=0)<<31>>31;while(0);return e|0}function Gc(a){a=a|0;if(a>>>0<4)a=c[(a<<2&p)+8648>>2]|0;else a=0;return a|0}function Hc(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(a>>>0<=9){g=c[(a<<2&p)+8664>>2]|0;f=b;c[(f&p)>>2]=g;c[(f&p)+4>>2]=0;f=8704+(a<<2)|0;a=d;c[(a&p)>>2]=c[(f&p)>>2];c[(a&p)+4>>2]=0;if(!e)f=0;else{c[(f&p)>>2]=g;f=0}}else{c[(f&p)>>2]=15033;c[(f&p)+4>>2]=10788;bd(21,13648,f);f=21}i=h;return f|0}function Ic(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h+8|0;g=h;a=Hc(a,f,g,e)|0;if(!a){c[(b&p)>>2]=c[(f&p)>>2];c[(d&p)>>2]=c[(g&p)>>2]}i=h;return a|0}function Jc(a,b,d,f,g){a=a|0;b=b|0;d=d|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,n=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r+4|0;l=r;switch(b|0){case 2:{c[(n&p)>>2]=0;q=a+20|0;g=c[(q&p)>>2]|0;h=(g|0)>0;if(h){l=c[(a&p)+16>>2]|0;k=0;do{b=c[(l+(k<<4)&p)+4>>2]|0;if(b)c[((c[(b&p)+4>>2]|0)&p)+4>>2]=c[(b&p)>>2];k=k+1|0}while((k|0)!=(g|0));k=a+520|0;c[(k&p)>>2]=n;if(h){m=a+16|0;h=0;do{b=c[((c[(m&p)>>2]|0)+(h<<4)&p)+12>>2]|0;if(b){l=lc[c[8796>>2]&127](16)|0;l=ca((c[(b&p)+44>>2]|0)+(c[(b&p)+12>>2]|0)+(c[(b&p)+28>>2]|0)+(c[(b&p)+60>>2]|0)|0,l)|0;c[(n&p)>>2]=l+(c[(n&p)>>2]|0);l=lc[c[8792>>2]&127](c[(b&p)+20>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+52>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+36>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=lc[c[8792>>2]&127](c[(b&p)+68>>2]|0)|0;c[(n&p)>>2]=(c[(n&p)>>2]|0)+l;l=c[(b&p)+48>>2]|0;if(l)do{jg(a,c[(l&p)+8>>2]|0);l=c[(l&p)>>2]|0}while((l|0)!=0);l=c[(b&p)+16>>2]|0;if(l)do{kg(a,c[(l&p)+8>>2]|0);l=c[(l&p)>>2]|0}while((l|0)!=0);g=c[(q&p)>>2]|0}h=h+1|0}while((h|0)<(g|0));h=c[(n&p)>>2]|0}else h=0}else{k=a+520|0;c[(k&p)>>2]=n;h=0}c[(k&p)>>2]=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 9:case 8:case 7:{q=a+20|0;l=c[(q&p)>>2]|0;if((l|0)>0){n=c[(a&p)+16>>2]|0;m=b+-7|0;k=(g|0)==0;h=0;b=l;g=0;while(1){l=c[(n+(g<<4)&p)+4>>2]|0;if(l){l=(c[(c[(l&p)+4>>2]&p)>>2]|0)+(m<<2)+184|0;h=(c[(l&p)>>2]|0)+h|0;if(k)l=b;else{c[(l&p)>>2]=0;l=c[(q&p)>>2]|0}}else l=b;g=g+1|0;if((g|0)>=(l|0))break;else b=l}}else h=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 0:{k=a+252|0;c[(d&p)>>2]=c[(k&p)>>2];h=a+256|0;c[(f&p)>>2]=c[(h&p)>>2];if(!g)h=0;else{c[(h&p)>>2]=c[(k&p)>>2];h=0}break}case 6:case 5:case 4:{c[(d&p)>>2]=0;h=a+(b+-4<<2)+260|0;c[(f&p)>>2]=c[(h&p)>>2];if(!g)h=0;else{c[(h&p)>>2]=0;h=0}break}case 1:{m=a+20|0;k=c[(m&p)>>2]|0;g=(k|0)>0;if(g){h=c[(a&p)+16>>2]|0;l=0;do{b=c[(h+(l<<4)&p)+4>>2]|0;if(b)c[((c[(b&p)+4>>2]|0)&p)+4>>2]=c[(b&p)>>2];l=l+1|0}while((l|0)!=(k|0));if(g){b=a+16|0;l=0;h=0;while(1){g=c[((c[(b&p)>>2]|0)+(l<<4)&p)+4>>2]|0;if(!g)g=k;else{q=c[(c[(g&p)+4>>2]&p)>>2]|0;a=q+152|0;n=(c[(a&p)>>2]|0)+60+(e[(q&o)+140>>1]|0)|0;n=ca(lc[c[8872>>2]&127](c[((c[(q&p)+204>>2]|0)&p)+40>>2]|0)|0,n)|0;q=lc[c[8792>>2]&127](q)|0;g=c[(m&p)>>2]|0;h=n+h+q+(c[(a&p)>>2]|0)|0}l=l+1|0;if((l|0)>=(g|0))break;else k=g}}else h=0}else h=0;c[(d&p)>>2]=h;c[(f&p)>>2]=0;h=0;break}case 3:{c[(l&p)>>2]=0;g=a+520|0;c[(g&p)>>2]=l;k=c[(a&p)+4>>2]|0;if(!k)h=0;else{do{lg(a,k);mg(a,k);k=c[(k&p)+52>>2]|0}while((k|0)!=0);h=c[(l&p)>>2]|0}c[(g&p)>>2]=0;c[(f&p)>>2]=0;c[(d&p)>>2]=h;h=0;break}case 10:{c[(f&p)>>2]=0;q=a+512|0;n=c[(q&p)+4>>2]|0;if((n|0)>0|(n|0)==0&(c[(q&p)>>2]|0)>>>0>0)h=1;else{h=a+504|0;a=c[(h&p)+4>>2]|0;h=(a|0)>0|(a|0)==0&(c[(h&p)>>2]|0)>>>0>0}c[(d&p)>>2]=h&1;h=0;break}default:h=1}i=r;return h|0}function Kc(a){a=a|0;var b=0;a:do if(!(Lc()|0)){b=c[2254]|0;if(!((b|0)==0|(a|0)==0))while(1){if(!(_v(a,c[(b&p)+16>>2]|0)|0))break a;b=c[(b&p)+12>>2]|0;if(!b){b=0;break}}}else b=0;while(0);return b|0}function Lc(){var a=0,b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;do if(!(c[2243]|0)){c[2245]=1;if(!(c[2246]|0)){if(!(c[2195]|0)){c[(k&p)>>2]=16496;mf(4,k)|0}b=9024|0;d=b+40|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));if(c[2187]|0)c[2256]=8;h=c[2234]|0;d=c[2235]|0;b=c[2236]|0;if((h|0)!=0&(d|0)>99&(b|0)>0){g=d&-8;c[2235]=g;c[2263]=h;c[2264]=b;f=b+-1|0;if((f|0)>0){b=h+(ca(d>>>3,(b<<3)+-8|0)|0)|0;e=0;d=h;do{a=d;d=d+g|0;c[(a&p)>>2]=d;e=e+1|0}while((e|0)!=(f|0))}else b=h;c[(b&p)>>2]=0;c[2262]=b+4}else{c[2262]=0;c[2234]=0;c[2235]=0;c[2236]=0}if((c[2237]|0)==0|(c[2238]|0)<512|(c[2239]|0)<1){c[2237]=0;c[2238]=0;c[2239]=0}a=lc[c[8800>>2]&127](c[2202]|0)|0;if(a){b=9024|0;d=b+40|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));break}}c[2246]=1;if(!(c[2249]|0))c[2249]=8;a=(c[2248]|0)+1|0;c[2248]=a;if(!(c[2244]|c[2243])){c[2244]=1;b=10840|0;d=b+92|0;do{c[(b&p)>>2]=0;b=b+4|0}while((b|0)<(d|0));b=0;do{ng(10840,16608+(b*36|0)|0);b=b+1|0}while((b|0)!=59);b=0;do{ng(10840,19480+(b*36|0)|0);b=b+1|0}while((b|0)!=8);ng(10840,19256);ng(10840,19292|0);ng(10840,19328|0);if(!(c[2247]|0)){a=c[2214]|0;if(!a){c[(k&p)>>2]=16440;mf(18,k)|0;a=c[2214]|0}a=lc[a&127](c[2213]|0)|0;if(!a)l=28}else l=28;if((l|0)==28){c[2247]=1;a=Tc(10)|0;if(!a)a=7;else{Wc(a);Mc(9584,1)|0;Mc(9672|0,0)|0;Mc(9760|0,0)|0;Mc(9848|0,0)|0;a=c[2237]|0;b=c[2238]|0;d=c[2239]|0;if(c[3153]|0){k=b&-8;c[3154]=k;c[3161]=d;c[3155]=d;if((d|0)<=90){c[3156]=((d|0)/10|0)+1;c[3157]=a;c[3160]=0;c[3162]=0;if(d)l=33}else{c[3156]=10;c[3157]=a;c[3160]=0;c[3162]=0;l=33}if((l|0)==33){f=b>>>3;g=d<<3;h=ca(f<<3,d+-1|0)|0;b=a;e=0;while(1){d=d+-1|0;c[(b&p)>>2]=e;if(!d)break;else{e=b;b=b+k|0}}b=a+(ca(g,f)|0)|0;c[3160]=a+h;a=b}c[3158]=a}c[2243]=1;a=0}}c[2244]=0;b=c[2248]|0}else{b=a;a=0}c[2248]=b+-1;if((b|0)<2)c[2249]=0}else a=0;while(0);i=m;return a|0}function Mc(a,b){a=a|0;b=b|0;var d=0;d=Lc()|0;do if(!d){og(a);d=c[2254]|0;if((b|0)!=0|(d|0)==0){c[(a&p)+12>>2]=d;c[2254]=a;d=0;break}else{c[(a&p)+12>>2]=c[(d&p)+12>>2];c[((c[2254]|0)&p)+12>>2]=a;d=0;break}}while(0);return d|0}function Nc(a){a=a|0;og(a);return 0}function Oc(a){a=a|0;return 0}function Pc(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;do if(!(Lc()|0)){e=9032|0;d=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;if((b|0)>=0)if((b|0)>0|(b|0)==0&a>>>0>0){c[2260]=9;c[2261]=0;f=9032|0;c[(f&p)>>2]=a;c[(f&p)+4>>2]=b;c[2265]=(0>(b|0)|0==(b|0)&(c[2166]|0)>>>0>=a>>>0)&1;break}else{c[2265]=0;c[2258]=0;c[2259]=0;c[2260]=0;c[2261]=0;break}}else{e=-1;d=-1}while(0);G=e;return d|0}function Qc(){var a=0;a=c[2166]|0;G=((a|0)<0)<<31>>31;return a|0}function Rc(a){a=a|0;var b=0;b=(a|0)<0;Pc(b?0:a,b?0:((a|0)<0)<<31>>31)|0;return}function Sc(a){a=a|0;var b=0;b=c[2176]|0;if(a)c[2176]=c[2166];G=((b|0)<0)<<31>>31;return b|0}function Tc(a){a=a|0;if((Lc()|0)!=0|(a|0)<1)a=0;else a=qg(a,((a|0)<0)<<31>>31)|0;return a|0}function Uc(a,b){a=a|0;b=b|0;if(!(Lc()|0))a=qg(a,b)|0;else a=0;return a|0}function Vc(a){a=a|0;a=lc[c[8792>>2]&127](a)|0;G=((a|0)<0)<<31>>31;return a|0}function Wc(a){a=a|0;var b=0;do if(a)if(!(c[2186]|0)){cc[c[8784>>2]&31](a);break}else{b=lc[c[8792>>2]&127](a)|0;c[2166]=(c[2166]|0)-b;c[2175]=(c[2175]|0)+-1;cc[c[8784>>2]&31](a);break}while(0);return}function Xc(a,b){a=a|0;b=b|0;var c=0;if(!(Lc()|0)){c=(b|0)<0;b=rg(a,c?0:b,c?0:((b|0)<0)<<31>>31)|0}else b=0;return b|0}function Yc(a,b,c){a=a|0;b=b|0;c=c|0;if(!(Lc()|0))b=rg(a,b,c)|0;else b=0;return b|0}function Zc(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+112|0;if((i|0)>=(j|0))fa();f=g+28|0;e=g;if(!(Lc()|0)){c[(e&p)+4>>2]=f;c[(e&p)+8>>2]=f;c[(e&p)>>2]=0;c[(e&p)+12>>2]=0;c[(e&p)+16>>2]=70;c[(e&p)+20>>2]=1e9;a[(e&n)+25>>0]=0;a[(e&n)+24>>0]=2;sg(e,0,b,d);e=tg(e)|0}else e=0;i=g;return e|0}function _c(a,b){a=a|0;b=b|0;var d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;if(!(Lc()|0)){c[(d&p)>>2]=b;d=Zc(a,d)|0}else d=0;i=e;return d|0}function $c(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;h=i;i=i+32|0;if((i|0)>=(j|0))fa();g=h;if((b|0)>=1){c[(g&p)+4>>2]=d;c[(g&p)+8>>2]=d;c[(g&p)>>2]=0;c[(g&p)+12>>2]=0;c[(g&p)+16>>2]=b;c[(g&p)+20>>2]=0;a[(g&n)+25>>0]=0;a[(g&n)+24>>0]=0;sg(g,0,e,f);d=tg(g)|0}i=h;return d|0}function ad(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;a=$c(a,b,d,g)|0;i=f;return a|0}function bd(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+256|0;if((i|0)>=(j|0))fa();f=k+16|0;h=k+44|0;g=k;if(c[2250]|0){c[(g&p)>>2]=e;c[(f&p)+4>>2]=h;c[(f&p)+8>>2]=h;c[(f&p)>>2]=0;c[(f&p)+12>>2]=0;c[(f&p)+16>>2]=210;c[(f&p)+20>>2]=0;a[(f&n)+25>>0]=0;a[(f&n)+24>>0]=0;sg(f,0,d,g);e=c[2250]|0;g=c[2251]|0;f=tg(f)|0;mc[e&63](g,b,f)}i=k;return}function cd(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;h=i;i=i+256|0;if((i|0)>=(j|0))fa();g=h;do if(!(Lc()|0)){if((b|0)<1|(e|0)==0){a[9064]=0;break}if(!(a[9064]|0)){a[9066]=0;a[9065]=0;f=(Lc()|0)==0;f=f?c[2254]|0:0;ac[c[(f&p)+56>>2]&63](f,256,g)|0;f=0;do{a[(f&n)+9067>>0]=f;f=f+1|0}while((f|0)!=256);f=0;do{k=9067+f|0;m=(d[(g+f&n)>>0]|0)+(d[(k&n)>>0]|0)+(d[9066]|0)|0;a[9066]=m;m=9067+(m&255)|0;l=a[(m&n)>>0]|0;a[(m&n)>>0]=a[(k&n)>>0]|0;a[(k&n)>>0]=l;f=f+1|0}while((f|0)!=256);a[9064]=1}while(1){k=(a[9065]|0)+1<<24>>24;a[9065]=k;k=9067+(k&255)|0;g=a[(k&n)>>0]|0;f=g&255;l=(d[9066]|0)+f|0;a[9066]=l;a[(k&n)>>0]=a[(l&255&n)+9067>>0]|0;a[((d[9066]|0)&n)+9067>>0]=g;a[(e&n)>>0]=a[((d[((d[9065]|0)&n)+9067>>0]|0)+f&255&n)+9067>>0]|0;b=b+-1|0;if(!b)break;else e=e+1|0}}while(0);i=h;return}function dd(b,c){b=b|0;c=c|0;var e=0;if(b)if(!c)c=1;else{e=a[(b&n)>>0]|0;a:do if(!(e<<24>>24))e=0;else while(1){if((a[(e&255&n)+9328>>0]|0)!=(a[((d[(c&n)>>0]|0)&n)+9328>>0]|0))break a;b=b+1|0;c=c+1|0;e=a[(b&n)>>0]|0;if(!(e<<24>>24)){e=0;break}}while(0);c=(d[(e&255&n)+9328>>0]|0)-(d[((d[(c&n)>>0]|0)&n)+9328>>0]|0)|0}else c=((c|0)!=0)<<31>>31;return c|0}function ed(a){a=a|0;c[2241]=a;return 0}function fd(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();q=r;a:do if((f|0)==(d|0)){ug(f,1,10016,q);h=0}else{h=qg(48,0)|0;if(!h){c[(d&p)+52>>2]=7;h=c[(d&p)+236>>2]|0;if(!h){h=0;break}e=h+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;h=0;break}else{vg(h);h=0;break}}l=h+0|0;k=l+48|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(k|0));m=h+24|0;c[(m&p)>>2]=wg(d,f,g)|0;k=wg(d,d,e)|0;l=h+4|0;c[(l&p)>>2]=k;c[(h&p)>>2]=d;c[(h&p)+20>>2]=f;c[(h&p)+16>>2]=1;c[(h&p)+40>>2]=0;e=c[(m&p)>>2]|0;do if(!((e|0)==0|(k|0)==0)?(xg(k,c[((c[(e&p)+4>>2]|0)&p)+32>>2]|0,-1,0)|0)!=7:0)if(!(a[((c[(l&p)>>2]|0)&n)+8>>0]|0)){e=(c[(m&p)>>2]|0)+16|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+1;break a}else{ug(d,1,47416,q);break}while(0);Wc(h);h=0}while(0);i=r;return h|0}function gd(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=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;F=i;i=i+32|0;if((i|0)>=(j|0))fa();B=F;r=F+16|0;u=F+12|0;y=F+8|0;D=b+24|0;g=c[(D&p)>>2]|0;h=c[(g&p)+4>>2]|0;c[(h&p)+4>>2]=c[(g&p)>>2];E=b+28|0;f=c[(E&p)>>2]|0;if(f>>>0<7?(30>>>(f&127)&1)==0:0){x=c[(h&p)>>2]|0;C=b+4|0;f=c[(C&p)>>2]|0;A=c[(c[(f&p)+4>>2]&p)>>2]|0;if((c[(b&p)>>2]|0)!=0?(a[(h&n)+20>>0]|0)==2:0){z=0;g=5}else v=5;do if((v|0)==5){h=b+12|0;if(!(c[(h&p)>>2]|0)){g=yg(f,2)|0;if(g){z=0;break}c[(h&p)>>2]=1;z=c[(C&p)>>2]|0;g=c[(z&p)+4>>2]|0;c[(g&p)+4>>2]=c[(z&p)>>2];g=c[((c[(g&p)+12>>2]|0)&p)+56>>2]|0;c[(b&p)+8>>2]=d[(g&n)+41>>0]<<16|d[(g&n)+40>>0]<<24|d[(g&n)+42>>0]<<8|d[(g&n)+43>>0];g=c[(D&p)>>2]|0}if(!(a[(g&n)+8>>0]|0)){z=1;g=yg(g,0)|0}else{z=0;g=0}}while(0);l=c[((c[(D&p)>>2]|0)&p)+4>>2]|0;w=c[(l&p)+32>>2]|0;q=c[((c[(C&p)>>2]|0)&p)+4>>2]|0;t=c[(q&p)+32>>2]|0;q=(a[((c[(q&p)>>2]|0)&n)+5>>0]|0)==5;f=(w|0)==(t|0)|(g|0)==0&q^1?g:8;l=c[(l&p)+44>>2]|0;h=(e|0)<0;a:do if(e){g=b+16|0;m=c[(g&p)>>2]|0;o=0;do{if(!(m>>>0<=l>>>0&(f|0)==0))break a;if((m|0)!=((((c[2514]|0)>>>0)/((c[((c[((c[(D&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0)>>>0)|0)+1|0)){f=zg(x,m,r,2)|0;if(!f){k=c[(r&p)>>2]|0;f=Ag(b,m,c[(k&p)+4>>2]|0,0)|0;if(k)Bg(k)}}else f=0;m=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=m;o=o+1|0}while(h|(o|0)<(e|0))}while(0);if(!f){c[(b&p)+36>>2]=l;f=c[(b&p)+16>>2]|0;c[(b&p)+32>>2]=l+1-f;if(f>>>0<=l>>>0){f=b+40|0;if(!(c[(f&p)>>2]|0)){C=(c[(c[((c[(D&p)>>2]|0)&p)+4>>2]&p)>>2]|0)+88|0;c[(b&p)+44>>2]=c[(C&p)>>2];c[(C&p)>>2]=b;c[(f&p)>>2]=1;f=0}else f=0}else v=22}else if((f|0)==101)v=22;do if((v|0)==22){if(!l){g=c[(C&p)>>2]|0;f=c[(g&p)+4>>2]|0;c[(f&p)+4>>2]=c[(g&p)>>2];c[(f&p)+44>>2]=0;f=Cg(f)|0;if((f|0)==0|(f|0)==101)l=1;else break}f=Dg(c[(C&p)>>2]|0,1,(c[(b&p)+8>>2]|0)+1|0)|0;if(!f){g=c[(b&p)>>2]|0;if(g)Eg(g);if(q?(s=Fg(c[(C&p)>>2]|0,2)|0,(s|0)!=0):0){f=s;break}if((w|0)<(t|0)){g=(t|0)/(w|0)|0;g=(l+-1+g|0)/(g|0)|0;h=c[2514]|0;k=c[((c[((c[(C&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;g=(((g|0)==(((h>>>0)/(k>>>0)|0)+1|0))<<31>>31)+g|0;b=((w|0)<0)<<31>>31;s=sw(l|0,((l|0)<0)<<31>>31|0,w|0,b|0)|0;q=G;e=c[(A&p)+60>>2]|0;o=c[(A&p)+24>>2]|0;b:do if(g>>>0<=o>>>0){f=0;while(1){if((g|0)!=(((h>>>0)/(k>>>0)|0)+1|0)){f=zg(A,g,u,0)|0;if(f)break b;h=c[(u&p)>>2]|0;f=Gg(h)|0;if(h)Bg(h)}g=g+1|0;h=(f|0)==0;if(g>>>0>o>>>0|h^1)break;k=c[((c[((c[(C&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;h=c[2514]|0}if(h)v=38}else v=38;while(0);if((v|0)==38)f=Hg(A,0,1)|0;h=c[2514]|0;l=h+t|0;m=((l|0)<0)<<31>>31;k=(m|0)<(q|0)|(m|0)==(q|0)&l>>>0<s>>>0;l=k?l:s;m=k?m:q;h=h+w|0;k=((h|0)<0)<<31>>31;g=(f|0)==0;if(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0<l>>>0))do{c[(y&p)>>2]=0;f=qw(h|0,k|0,w|0,b|0)|0;f=jw(f|0,G|0,1,0)|0;f=zg(x,f,y,0)|0;g=c[(y&p)>>2]|0;if(!f)f=tc[c[((c[(e&p)>>2]|0)&p)+12>>2]&31](e,c[(g&p)+4>>2]|0,w,h,k)|0;if(g)Bg(g);h=jw(h|0,k|0,w|0,b|0)|0;k=G;g=(f|0)==0}while(g&((k|0)<(m|0)|(k|0)==(m|0)&h>>>0<l>>>0));if(!g)break;f=rc[c[((c[(e&p)>>2]|0)&p)+24>>2]&127](e,B)|0;y=c[(B&p)+4>>2]|0;if((f|0)==0&((y|0)>(q|0)|((y|0)==(q|0)?(c[(B&p)>>2]|0)>>>0>s>>>0:0)))f=ac[c[((c[(e&p)>>2]|0)&p)+16>>2]&63](e,s,q)|0;if(f)break;f=Ig(A,0)|0}else{c[(A&p)+24>>2]=ca((w|0)/(t|0)|0,l)|0;f=Hg(A,0,0)|0}if(!f){f=Jg(c[(C&p)>>2]|0,0)|0;f=(f|0)==0?101:f}}}while(0);if(z){Kg(c[(D&p)>>2]|0,0)|0;Jg(c[(D&p)>>2]|0,0)|0}f=(f|0)==3082?7:f;c[(E&p)>>2]=f}i=F;return f|0}function hd(a){a=a|0;var d=0,e=0,f=0,g=0,h=0;if(!a)d=0;else{h=c[(a&p)+20>>2]|0;e=c[(a&p)+24>>2]|0;d=c[(e&p)+4>>2]|0;c[(d&p)+4>>2]=c[(e&p)>>2];if(c[(a&p)>>2]|0){e=e+16|0;c[(e&p)>>2]=(c[(e&p)>>2]|0)+-1}if(c[(a&p)+40>>2]|0){d=(c[(d&p)>>2]|0)+88|0;while(1){e=c[(d&p)>>2]|0;if((e|0)==(a|0))break;else d=e+44|0}c[(d&p)>>2]=c[(a&p)+44>>2]}Lg(c[(a&p)+4>>2]|0,0,0);d=c[(a&p)+28>>2]|0;d=(d|0)==101?0:d;e=c[(a&p)>>2]|0;if(e){c[(e&p)+52>>2]=d;f=c[(e&p)+236>>2]|0;do if(f){g=f+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;break}else{vg(f);e=c[(a&p)>>2]|0;break}}while(0);Mg(e);if(c[(a&p)>>2]|0)Wc(a)}Mg(h)}return d|0}function id(a){a=a|0;return c[(a&p)+32>>2]|0}function jd(a){a=a|0;return c[(a&p)+36>>2]|0}function kd(a){a=a|0;if((a|0)!=0?(b[(a&o)+88>>1]&256)!=0:0)a=c[(a&p)+168>>2]|0;else a=0;return a|0}function ld(a){a=a|0;if(!a)a=1;else a=(b[(a&o)+88>>1]&8)!=0;return a&1|0}function md(a){a=a|0;var b=0,d=0,e=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(a){b=c[(a&p)>>2]|0;if(!b){bd(21,47360,d);c[(d&p)>>2]=68910;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}else{a=Og(b,Ng(a)|0)|0;Mg(b);b=a;break}}else b=0;while(0);i=e;return b|0}function nd(b){b=b|0;var d=0,e=0;if(!b)b=0;else{d=Pg(b)|0;c[(b&p)+76>>2]=-1;c[(b&p)+80>>2]=0;a[(b&n)+86>>0]=2;c[(b&p)+40>>2]=-1108210269;c[(b&p)+92>>2]=0;c[(b&p)+72>>2]=1;a[(b&n)+87>>0]=-1;c[(b&p)+104>>2]=0;e=b+144|0;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;b=Og(c[(b&p)>>2]|0,d)|0}return b|0}function od(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=a+68|0;e=b[(h&o)>>1]|0;if(e<<16>>16>0){i=a+60|0;d=c[(i&p)>>2]|0;g=0;do{f=d+(g*40|0)|0;if(!((b[(d+(g*40|0)&o)+8>>1]&9312)==0?(c[(d+(g*40|0)&p)+24>>2]|0)==0:0)){Qg(f);d=c[(i&p)>>2]|0;e=b[(h&o)>>1]|0}b[(d+(g*40|0)&o)+8>>1]=1;g=g+1|0}while((g|0)<(e<<16>>16|0))}d=a+88|0;e=b[(d&o)>>1]|0;if((e&256)!=0?(c[(a&p)+188>>2]|0)!=0:0)b[(d&o)>>1]=e|8;return 0}function pd(a){a=a|0;var d=0;d=a+8|0;if(b[(d&o)>>1]&18){Rg(a)|0;b[(d&o)>>1]=e[(d&o)>>1]|0|16;if(!(c[(a&p)+12>>2]|0))d=0;else d=c[(a&p)+16>>2]|0}else d=Sg(a,1)|0;return d|0}function qd(a){a=a|0;return Sg(a,1)|0}function rd(a){a=a|0;return Tg(a,1)|0}function sd(a){a=a|0;return Tg(a,2)|0}function td(a){a=a|0;return +(+Ug(a))}function ud(a){a=a|0;a=Vg(a)|0;return a|0}function vd(a){a=a|0;a=Vg(a)|0;return a|0}function wd(a){a=a|0;return Sg(a,2)|0}function xd(a){a=a|0;return Sg(a,3)|0}function yd(a){a=a|0;return Sg(a,2)|0}function zd(a){a=a|0;return d[((e[(a&o)+8>>1]|0)&31&n)+10064>>0]|0|0}function Ad(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,0,d);return}function Bd(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))cc[g&31](d);if(b){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}}else Wg(b,d,e,0,g);return}function Cd(a,b){a=a|0;b=+b;Yg(c[(a&p)>>2]|0,b);return}function Dd(b,d,e){b=b|0;d=d|0;e=e|0;c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,d,e,1,-1)|0;return}function Ed(b,d,e){b=b|0;d=d|0;e=e|0;c[(b&p)+20>>2]=1;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,d,e,2,-1)|0;return}function Fd(a,d){a=a|0;d=d|0;var e=0,f=0;a=c[(a&p)>>2]|0;e=((d|0)<0)<<31>>31;f=a+8|0;if(!(b[(f&o)>>1]&9312)){c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4}else Zg(a,d,e);return}function Gd(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;a=c[(a&p)>>2]|0;f=a+8|0;if(!(b[(f&o)>>1]&9312)){c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4}else Zg(a,d,e);return}function Hd(a){a=a|0;var d=0;a=c[(a&p)>>2]|0;d=a+8|0;if(!(b[(d&o)>>1]&9312))b[(d&o)>>1]=1;else vg(a);return}function Id(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,1,d);return}function Jd(b,d,e,f,g,h){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;if(f>>>0>0|(f|0)==0&e>>>0>2147483647){e=g;if(!((e|0)==0|(e|0)==-1))cc[g&31](d);if(b){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}}else Wg(b,d,e,h<<24>>24==4?2:h,g);return}function Kd(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,2,d);return}function Ld(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,3,d);return}function Md(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;Wg(a,b,c,2,d);return}function Nd(a,b){a=a|0;b=b|0;_g(c[(a&p)>>2]|0,b)|0;return}function Od(a,b){a=a|0;b=b|0;$g(c[(a&p)>>2]|0,b);return}function Pd(d,e){d=d|0;e=e|0;var f=0;c[(d&p)+20>>2]=e;a[(d&n)+25>>0]=1;f=c[(d&p)>>2]|0;if(b[(f&o)+8>>1]&1){if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344;Xg(f,d,-1,1,0)|0}return}function Qd(b){b=b|0;c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0;return}function Rd(d){d=d|0;var e=0,f=0;e=c[(d&p)>>2]|0;f=e+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else{vg(e);e=c[(d&p)>>2]|0}c[(d&p)+20>>2]=7;a[(d&n)+25>>0]=1;a[((c[(e&p)+32>>2]|0)&n)+65>>0]=1;return}function Sd(f){f=f|0;var g=0,l=0,m=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,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;_=i;i=i+224|0;if((i|0)>=(j|0))fa();V=_+8|0;U=_;if(!(ah(f)|0)){Z=c[(f&p)>>2]|0;N=f+88|0;b[(N&o)>>1]=b[(N&o)>>1]&-513;R=f+40|0;S=f+76|0;T=f+128|0;Y=f+80|0;D=f+168|0;E=f+8|0;F=f+20|0;H=f+32|0;I=f+4|0;J=f+84|0;X=f+44|0;K=(f|0)==0;L=f+52|0;M=f+48|0;C=0;while(1){if((c[(R&p)>>2]|0)!=-1108210269)nd(f)|0;B=c[(f&p)>>2]|0;if(a[(B&n)+65>>0]|0){W=7;break}l=c[(S&p)>>2]|0;do if((l|0)<1){if(b[(N&o)>>1]&8){c[(Y&p)>>2]=17;l=1;break}if((l|0)<0){l=B+148|0;if(!(c[(l&p)>>2]|0))c[(B&p)+240>>2]=0;if((c[(B&p)+184>>2]|0)!=0?(a[(B&n)+145>>0]|0)==0:0)bh(c[(B&p)>>2]|0,T)|0;c[(l&p)>>2]=(c[(l&p)>>2]|0)+1;l=b[(N&o)>>1]|0;if(!(l&64)){l=B+156|0;c[(l&p)>>2]=(c[(l&p)>>2]|0)+1;l=b[(N&o)>>1]|0}if(l&128){A=B+152|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+1}c[(S&p)>>2]=0;W=22}else W=22}else W=22;while(0);if((W|0)==22){W=0;do if(!(b[(N&o)>>1]&3)){A=B+160|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+1;l=gh(f)|0;c[(A&p)>>2]=(c[(A&p)>>2]|0)+-1;if((l|0)==100)l=100;else W=101}else{t=c[(f&p)>>2]|0;z=c[(E&p)>>2]|0;y=z+40|0;ch(y,8);c[(F&p)>>2]=0;if((c[(Y&p)>>2]|0)==7){a[(t&n)+65>>0]=1;l=1;W=101;break}r=c[(H&p)>>2]|0;u=b[(N&o)>>1]&3;if(u<<16>>16==1){s=c[(E&p)>>2]|0;v=s+360|0;if(b[(s&o)+368>>1]&16){w=(c[(s&p)+372>>2]|0)>>>2;m=c[(s&p)+376>>2]|0;if(!w){x=m;s=r;g=0}else{l=0;s=r;do{s=(c[((c[(m+(l<<2)&p)>>2]|0)&p)+4>>2]|0)+s|0;l=l+1|0}while((l|0)<(w|0));x=m;g=w}}else{x=0;s=r;g=0}}else{x=0;s=r;g=0;v=0}r=u<<16>>16==2;m=c[(S&p)>>2]|0;while(1){l=m+1|0;if((m|0)>=(s|0)){W=33;break}if(!r)break;if((a[((c[(I&p)>>2]|0)+(m*20|0)&n)>>0]|0)==-99)break;else m=l}if((W|0)==33){c[(S&p)>>2]=l;c[(Y&p)>>2]=0;l=101;W=101;break}c[(S&p)>>2]=l;if(c[(t&p)+240>>2]|0){c[(Y&p)>>2]=9;c[(V&p)>>2]=15832;dh(X,t,10344,V);l=1;W=101;break}s=c[(H&p)>>2]|0;if((m|0)<(s|0)){l=m;A=(c[(I&p)>>2]|0)+(m*20|0)|0}else{m=m-s|0;s=c[(x&p)>>2]|0;r=c[(s&p)+4>>2]|0;if((m|0)<(r|0))r=m;else{s=m;l=0;while(1){m=s-r|0;l=l+1|0;s=c[(x+(l<<2)&p)>>2]|0;r=c[(s&p)+4>>2]|0;if((m|0)<(r|0)){r=m;break}else s=m}}l=r;A=(c[(s&p)>>2]|0)+(r*20|0)|0}if((b[(N&o)>>1]&3)==1){b[(z&o)+48>>1]=4;r=y;c[(r&p)>>2]=l;c[(r&p)+4>>2]=((l|0)<0)<<31>>31;b[(z&o)+88>>1]=2562;r=c[(d[(A&n)>>0]<<2&p)+44856>>2]|0;c[(z&p)+96>>2]=r;s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;w=z+80|0;c[(z&p)+92>>2]=s-r&1073741823;a[(z&n)+90>>0]=1;if((a[(A&n)+1>>0]|0)==-18){l=(g<<2)+4|0;a:do if(!g)s=0;else{r=c[(A&p)+16>>2]|0;m=0;while(1){s=m+1|0;if((c[(x+(m<<2)&p)>>2]|0)==(r|0)){s=m;break a}if((s|0)<(g|0))m=s;else break}}while(0);if((s|0)==(g|0)?(eh(v,l,(g|0)!=0&1)|0)==0:0){c[((c[(v&p)+16>>2]|0)+(g<<2)&p)>>2]=c[(A&p)+16>>2];z=v+8|0;b[(z&o)>>1]=e[(z&o)>>1]|16;c[(v&p)+12>>2]=l;z=w}else z=w}else z=w}b[(z&o)+48>>1]=4;y=c[(A&p)+4>>2]|0;x=z+40|0;c[(x&p)>>2]=y;c[(x&p)+4>>2]=((y|0)<0)<<31>>31;b[(z&o)+88>>1]=4;x=c[(A&p)+8>>2]|0;y=z+80|0;c[(y&p)>>2]=x;c[(y&p)+4>>2]=((x|0)<0)<<31>>31;b[(z&o)+128>>1]=4;y=c[(A&p)+12>>2]|0;x=z+120|0;c[(x&p)>>2]=y;c[(x&p)+4>>2]=((y|0)<0)<<31>>31;x=z+160|0;if(!(fh(x,32)|0)){b[(z&o)+168>>1]=514;y=z+176|0;g=c[(y&p)>>2]|0;b:do switch(a[(A&n)+1>>0]|0){case -6:{t=c[(A&p)+16>>2]|0;l=t+6|0;c[(V&p)>>2]=e[(l&o)>>1];ad(32,g,44768,V)|0;if(!g)s=0;else{s=g;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-g&1073741823}c:do if(b[(l&o)>>1]|0){u=t+16|0;v=0;while(1){r=c[(t+(v<<2)&p)+20>>2]|0;if(r){r=c[(r&p)>>2]|0;if(!r){m=0;r=0}else W=61}else{r=44776;W=61}do if((W|0)==61){W=0;w=r;while(1)if(!(a[(w&n)>>0]|0))break;else w=w+1|0;m=w-r&1073741823;if((m|0)!=6)break;w=(Zv(r,11152,6)|0)==0;m=w?1:6;r=w?44784:r}while(0);if((m+s|0)>26)break;w=s+1|0;a[(g+s&n)>>0]=44;if(a[((c[(u&p)>>2]|0)+v&n)>>0]|0){a[(g+w&n)>>0]=45;w=s+2|0}kw(g+w|0,r|0,m+1|0)|0;s=w+m|0;v=v+1|0;if((v|0)>=(e[(l&o)>>1]|0))break c}l=g+s|0;a[(l&n)>>0]=44;a[(l&n)+1>>0]=46;a[(l&n)+2>>0]=46;a[(l&n)+3>>0]=46}while(0);a[(g+s&n)>>0]=41;a[(g+s&n)+1>>0]=0;r=g;break}case -15:{ad(32,g,44832,V)|0;r=g;break}case -18:{ad(32,g,44848,V)|0;r=g;break}case -4:{c[(V&p)>>2]=c[(c[(A&p)+16>>2]&p)>>2];ad(32,g,44792,V)|0;r=g;break}case -5:{l=c[(A&p)+16>>2]|0;r=b[(l&o)>>1]|0;c[(V&p)>>2]=c[(l&p)+24>>2];c[(V&p)+4>>2]=r;ad(32,g,44800,V)|0;r=g;break}case -13:{m=c[(A&p)+16>>2]|0;l=c[(m&p)+4>>2]|0;r=V;c[(r&p)>>2]=c[(m&p)>>2];c[(r&p)+4>>2]=l;ad(32,g,19920,V)|0;r=g;break}case -14:{c[(V&p)>>2]=c[(A&p)+16>>2];ad(32,g,44808,V)|0;r=g;break}case -12:{h[(k&q)>>3]=+h[(c[(A&p)+16>>2]&q)>>3];c[(V&p)>>2]=c[(k&p)>>2];c[(V&p)+4>>2]=c[(k&p)+4>>2];ad(32,g,19912,V)|0;r=g;break}case -8:{s=c[(A&p)+16>>2]|0;r=e[(s&o)+8>>1]|0;if(r&2){r=c[(s&p)+16>>2]|0;break b}if(r&4){m=s;l=c[(m&p)+4>>2]|0;r=V;c[(r&p)>>2]=c[(m&p)>>2];c[(r&p)+4>>2]=l;ad(32,g,19920,V)|0;r=g;break b}if(r&8){h[(k&q)>>3]=+h[(s&q)>>3];c[(V&p)>>2]=c[(k&p)>>2];c[(V&p)+4>>2]=c[(k&p)+4>>2];ad(32,g,19912,V)|0;r=g;break b}if(!(r&1))r=44816;else{ad(32,g,20304,V)|0;r=g}break}case -19:{a[(g&n)>>0]=0;r=g;break}case -10:{c[(V&p)>>2]=c[((c[(A&p)+16>>2]|0)&p)+8>>2];ad(32,g,44824,V)|0;r=g;break}default:{s=c[(A&p)+16>>2]|0;if(!s){a[(g&n)>>0]=0;r=g}else r=s}}while(0);if((r|0)==(c[(y&p)>>2]|0)){if(!r)l=0;else{s=r;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;l=s-r&1073741823}c[(z&p)+172>>2]=l;a[(z&n)+170>>0]=1}else Xg(x,r,-1,1,0)|0;l=b[(N&o)>>1]|0;if((l&3)==1){if(fh(z+200|0,4)|0){l=1;W=101;break}b[(z&o)+208>>1]=514;c[(z&p)+212>>2]=2;l=c[(z&p)+216>>2]|0;c[(V&p)>>2]=d[(A&n)+3>>0];ad(3,l,44760,V)|0;a[(z&n)+210>>0]=1;b[(z&o)+248>>1]=1;l=b[(N&o)>>1]|0}b[(J&o)>>1]=12-((l&3)<<2);c[(F&p)>>2]=(c[(E&p)>>2]|0)+40;c[(Y&p)>>2]=0;l=100}else{l=1;W=101}}while(0);if((W|0)==101){W=0;g=B+184|0;if(((c[(g&p)>>2]|0)!=0?(a[(B&n)+145>>0]|0)==0:0)?(c[(D&p)>>2]|0)!=0:0){bh(c[(B&p)>>2]|0,U)|0;g=c[(g&p)>>2]|0;y=c[(B&p)+188>>2]|0;z=c[(D&p)>>2]|0;m=U;A=T;A=dw(c[(m&p)>>2]|0,c[(m&p)+4>>2]|0,c[(A&p)>>2]|0,c[(A&p)+4>>2]|0)|0;A=sw(A|0,G|0,1e6,0)|0;qc[g&15](y,z,A,G)}if((l|0)==101){t=B+20|0;s=c[(t&p)>>2]|0;if((s|0)>0){u=B+16|0;v=B+216|0;w=B+220|0;g=0;l=0;do{r=c[(u&p)>>2]|0;m=c[(r+(g<<4)&p)+4>>2]|0;if(((m|0)!=0?(O=c[(m&p)+4>>2]|0,c[(O&p)+4>>2]=c[(m&p)>>2],O=c[((c[(O&p)>>2]|0)&p)+208>>2]|0,(O|0)!=0):0)?(Q=O+12|0,P=c[(Q&p)>>2]|0,c[(Q&p)>>2]=0,Q=c[(v&p)>>2]|0,(Q|0)!=0&(P|0)>0&(l|0)==0):0){l=pc[Q&31](c[(w&p)>>2]|0,B,c[(r+(g<<4)&p)>>2]|0,P)|0;s=c[(t&p)>>2]|0}g=g+1|0}while((g|0)<(s|0))}else l=0;c[(Y&p)>>2]=l;l=(l|0)==0?101:1}}c[(B&p)+52>>2]=l;if((Og(c[(f&p)>>2]|0,c[(Y&p)>>2]|0)|0)==7)c[(Y&p)>>2]=7}if((b[(N&o)>>1]&256)!=0&(l|0)!=100&(l|0)!=101)l=hh(f)|0;g=c[(B&p)+56>>2]&l;if((g|0)!=17)break;s=C+1|0;if((C|0)>=50){g=17;break}m=c[(S&p)>>2]|0;if(!K?(b[(N&o)>>1]&256)!=0:0)l=c[(D&p)>>2]|0;else l=0;r=c[(f&p)>>2]|0;g=ih(r,l,-1,0,f,U,0)|0;if((g|0)==7){g=r;W=124;break}else if(g){W=127;break}C=c[(U&p)>>2]|0;kw(V|0,C|0,208)|0;kw(C|0,f|0,208)|0;kw(f|0,V|0,208)|0;A=C+52|0;B=c[(A&p)>>2]|0;c[(A&p)>>2]=c[(L&p)>>2];c[(L&p)>>2]=B;B=C+48|0;A=c[(B&p)>>2]|0;c[(B&p)>>2]=c[(M&p)>>2];c[(M&p)>>2]=A;A=C+168|0;B=c[(A&p)>>2]|0;c[(A&p)>>2]=c[(D&p)>>2];c[(D&p)>>2]=B;b[(N&o)>>1]=b[(N&o)>>1]&-257|b[(C&o)+88>>1]&256;jh(C,f);c[(C&p)+80>>2]=0;Ng(C)|0;nd(f)|0;if((m|0)<=-1){C=s;continue}b[(N&o)>>1]=b[(N&o)>>1]|512;C=s}if((W|0)==7){c[(Y&p)>>2]=7;g=7}else if((W|0)==124){a[(g&n)+65>>0]=1;g=7;W=127}do if((W|0)==127){l=Sg(c[(Z&p)+236>>2]|0,1)|0;mg(Z,c[(X&p)>>2]|0);if(!(a[(Z&n)+65>>0]|0)){c[(X&p)>>2]=kh(Z,l)|0;c[(Y&p)>>2]=g;break}else{c[(X&p)>>2]=0;c[(Y&p)>>2]=7;g=7;break}}while(0);g=Og(Z,g)|0}else{c[(V&p)>>2]=69408;c[(V&p)+4>>2]=10788;bd(21,13648,V);g=21}i=_;return g|0}function Td(a){a=a|0;return c[((c[(a&p)+4>>2]|0)&p)+4>>2]|0}function Ud(a){a=a|0;return c[((c[(a&p)>>2]|0)&p)+32>>2]|0}function Vd(a,d){a=a|0;d=d|0;var e=0;e=c[(a&p)+8>>2]|0;if(!(b[(e&o)+8>>1]&8192))e=lh(a,d)|0;else e=c[(e&p)+16>>2]|0;return e|0}function Wd(a,b){a=a|0;b=b|0;var d=0;d=c[((c[(a&p)+12>>2]|0)&p)+204>>2]|0;a:do if(!d)d=0;else{a=c[(a&p)+16>>2]|0;while(1){if((c[(d&p)>>2]|0)==(a|0)?(c[(d&p)+4>>2]|0)==(b|0):0)break;d=c[(d&p)+16>>2]|0;if(!d){d=0;break a}}d=c[(d&p)+8>>2]|0}while(0);return d|0}function Xd(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;h=c[(b&p)+12>>2]|0;do if((d|0)<0)k=14;else{j=h+204|0;g=c[(j&p)>>2]|0;a:do if(g){i=c[(b&p)+16>>2]|0;while(1){if((c[(g&p)>>2]|0)==(i|0)?(c[(g&p)+4>>2]|0)==(d|0):0)break;g=c[(g&p)+16>>2]|0;if(!g){k=8;break a}}if(g){h=c[(g&p)+12>>2]|0;if(h)cc[h&31](c[(g&p)+8>>2]|0)}else k=8}else k=8;while(0);if((k|0)==8){g=mh(c[(h&p)>>2]|0,20,0)|0;if(!g){k=14;break}h=g+0|0;i=h+16|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));c[(g&p)>>2]=c[(b&p)+16>>2];c[(g&p)+4>>2]=d;c[(g&p)+16>>2]=c[(j&p)>>2];c[(j&p)>>2]=g;h=b+25|0;if(!(a[(h&n)>>0]|0)){c[(b&p)+20>>2]=0;a[(h&n)>>0]=1}}c[(g&p)+8>>2]=e;c[(g&p)+12>>2]=f}while(0);if((k|0)==14?(f|0)!=0:0)cc[f&31](e);return}function Yd(a){a=a|0;return c[((c[(a&p)+8>>2]|0)&p)+12>>2]|0}function Zd(a){a=a|0;if(!a)a=0;else a=e[(a&o)+84>>1]|0;return a|0}function _d(a){a=a|0;if((a|0)!=0?(c[(a&p)+20>>2]|0)!=0:0)a=e[(a&o)+84>>1]|0;else a=0;return a|0}function $d(a,b){a=a|0;b=b|0;var d=0;b=pd(nh(a,b)|0)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ae(a,b){a=a|0;b=b|0;var d=0;b=Tg(nh(a,b)|0,1)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function be(a,b){a=a|0;b=b|0;var d=0;b=Tg(nh(a,b)|0,2)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ce(a,b){a=a|0;b=b|0;var d=0.0;d=+Ug(nh(a,b)|0);if(a){b=a+80|0;c[(b&p)>>2]=Og(c[(a&p)>>2]|0,c[(b&p)>>2]|0)|0}return +d}function de(a,b){a=a|0;b=b|0;var d=0;b=Vg(nh(a,b)|0)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ee(a,b){a=a|0;b=b|0;var d=0,e=0;b=Vg(nh(a,b)|0)|0;d=G;if(a){e=a+80|0;c[(e&p)>>2]=Og(c[(a&p)>>2]|0,c[(e&p)>>2]|0)|0}G=d;return b|0}function fe(a,b){a=a|0;b=b|0;var d=0;b=Sg(nh(a,b)|0,1)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ge(a,d){a=a|0;d=d|0;var f=0,g=0;d=nh(a,d)|0;f=d+8|0;g=e[(f&o)>>1]|0;if(g&2048)b[(f&o)>>1]=g&59391|4096;if(a){f=a+80|0;c[(f&p)>>2]=Og(c[(a&p)>>2]|0,c[(f&p)>>2]|0)|0}return d|0}function he(a,b){a=a|0;b=b|0;var d=0;b=Sg(nh(a,b)|0,2)|0;if(a){d=a+80|0;c[(d&p)>>2]=Og(c[(a&p)>>2]|0,c[(d&p)>>2]|0)|0}return b|0}function ie(a,b){a=a|0;b=b|0;var f=0;b=d[((e[((nh(a,b)|0)&o)+8>>1]|0)&31&n)+10064>>0]|0;if(a){f=a+80|0;c[(f&p)>>2]=Og(c[(a&p)>>2]|0,c[(f&p)>>2]|0)|0}return b|0}function je(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+(d*40|0)|0,1)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function ke(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+(d*40|0)|0,2)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function le(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+((f+d|0)*40|0)|0,1)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function me(b,d){b=b|0;d=d|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!b)f=0;else f=e[(b&o)+84>>1]|0;if((f|0)>(d|0)&(d|0)>-1){d=Sg((c[(b&p)+16>>2]|0)+((f+d|0)*40|0)|0,2)|0;f=g+65|0;if(a[(f&n)>>0]|0){a[(f&n)>>0]=0;d=0}}else d=0;return d|0}function ne(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,0)|0}function oe(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{cc[f&31](c);d=18}}else d=oh(a,b,c,d,f,0)|0;return d|0}function pe(a,b,d){a=a|0;b=b|0;d=+d;var e=0;e=ph(a,b)|0;if(!e)Yg((c[(a&p)+60>>2]|0)+((b+-1|0)*40|0)|0,d);return e|0}function qe(a,b,c){a=a|0;b=b|0;c=c|0;return re(a,b,c,((c|0)<0)<<31>>31)|0}function re(a,d,e,f){a=a|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;g=ph(a,d)|0;do if(!g){d=d+-1|0;h=c[(a&p)+60>>2]|0;a=h+(d*40|0)|0;d=h+(d*40|0)+8|0;if(!(b[(d&o)>>1]&9312)){c[(a&p)>>2]=e;c[(a&p)+4>>2]=f;b[(d&o)>>1]=4;break}else{Zg(a,e,f);break}}while(0);return g|0}function se(a,b){a=a|0;b=b|0;return ph(a,b)|0}function te(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,1)|0}function ue(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;if(e>>>0>0|(e|0)==0&d>>>0>2147483647){d=f;if((d|0)==0|(d|0)==-1)d=18;else{cc[f&31](c);d=18}}else d=oh(a,b,c,d,f,g<<24>>24==4?2:g)|0;return d|0}function ve(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return oh(a,b,c,d,e,2)|0}function we(e,f,g){e=e|0;f=f|0;g=g|0;var i=0,j=0;i=b[(g&o)+8>>1]|0;j=d[(i&31&n)+10064>>0]|0;do if((j|0)==3)i=oh(e,f,c[(g&p)+16>>2]|0,c[(g&p)+12>>2]|0,-1,a[(g&n)+10>>0]|0)|0;else if((j|0)==1){i=g;i=re(e,f,c[(i&p)>>2]|0,c[(i&p)+4>>2]|0)|0}else if((j|0)==2)i=pe(e,f,+h[(g&q)>>3])|0;else if((j|0)==4)if(!(i&16384)){i=oh(e,f,c[(g&p)+16>>2]|0,c[(g&p)+12>>2]|0,-1,0)|0;break}else{i=xe(e,f,c[(g&p)>>2]|0)|0;break}else i=ph(e,f)|0;while(0);return i|0}function xe(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=ph(a,b)|0;if(!e)$g((c[(a&p)+60>>2]|0)+((b+-1|0)*40|0)|0,d);return e|0}function ye(a){a=a|0;if(!a)a=0;else a=b[(a&o)+68>>1]|0;return a|0}function ze(a,d){a=a|0;d=d|0;if(!((a|0)==0|(d|0)<1)?(b[(a&o)+70>>1]|0)>=(d|0):0)d=c[((c[(a&p)+64>>2]|0)+(d+-1<<2)&p)>>2]|0;else d=0;return d|0}function Ae(b,c){b=b|0;c=c|0;var d=0;if(!c)d=0;else{d=c;while(1)if(!(a[(d&n)>>0]|0))break;else d=d+1|0;d=d-c&1073741823}return qh(b,c,d)|0}function Be(a,d){a=a|0;d=d|0;var e=0,f=0;if((b[(a&o)+68>>1]|0)==(b[(d&o)+68>>1]|0)){f=d+88|0;e=b[(f&o)>>1]|0;if((e&256)!=0?(c[(d&p)+188>>2]|0)!=0:0)b[(f&o)>>1]=e|8;e=a+88|0;f=b[(e&o)>>1]|0;if((f&256)!=0?(c[(a&p)+188>>2]|0)!=0:0)b[(e&o)>>1]=f|8;jh(a,d);e=0}else e=1;return e|0}function Ce(a){a=a|0;if(!a)a=0;else a=c[(a&p)>>2]|0;return a|0}function De(a){a=a|0;if(!a)a=1;else a=(e[(a&o)+88>>1]|0)>>>6&1;return a|0}function Ee(a){a=a|0;if((a|0)!=0?(c[(a&p)+76>>2]|0)>-1:0)a=(c[(a&p)+40>>2]|0)==-1108210269;else a=0;return a&1|0}function Fe(a,b){a=a|0;b=b|0;if(!b)a=a+4|0;else a=b+52|0;return c[(a&p)>>2]|0}function Ge(a,b,d){a=a|0;b=b|0;d=d|0;a=a+(b<<2)+108|0;b=c[(a&p)>>2]|0;if(d)c[(a&p)>>2]=0;return b|0}function He(a){a=a|0;var b=0,c=0,f=0;c=a+8|0;f=e[(c&o)>>1]|0;b=d[(f&31&n)+10064>>0]|0;if((f&15|0)==2){rh(a,0);b=d[((e[(c&o)>>1]|0)&31&n)+10064>>0]|0}return b|0}function Ie(d,e,f,g,h,k,l,m){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|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,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0;U=i;i=i+16|0;if((i|0)>=(j|0))fa();S=U;T=U+4|0;c[(T&p)>>2]=0;c[(m&p)>>2]=0;N=(l|0)!=0;O=N&1;Q=mh(d,28,0)|0;do if(Q){l=Q+0|0;s=l+28|0;do{a[(l&n)>>0]=0;l=l+1|0}while((l|0)<(s|0));s=mh(d,536,0)|0;if(s){K=d+20|0;L=d+16|0;B=d+24|0;l=Q+20|0;C=Q+12|0;D=Q+24|0;E=d+65|0;F=O^3;G=O|2;H=s+440|0;I=s+72|0;J=s+68|0;r=0;M=1;q=0;while(1){fw(s|0,0,536)|0;c[(s&p)>>2]=d;mg(d,r);c[(T&p)>>2]=0;r=c[(K&p)>>2]|0;if((r|0)>0){t=c[(L&p)>>2]|0;v=0;do{u=c[(t+(v<<4)&p)+4>>2]|0;if(u)c[((c[(u&p)+4>>2]|0)&p)+4>>2]=c[(u&p)>>2];v=v+1|0}while((v|0)!=(r|0))}A=sh(s,0,f,e)|0;if(!A)break;r=a[(A&n)+44>>0]|0;if(r&16){R=11;break}if(r&32){R=13;break}if(c[(A&p)+12>>2]|0){R=17;break}z=A+38|0;w=b[(z&o)>>1]|0;a:do if(w<<16>>16>0){v=c[(A&p)+4>>2]|0;u=w<<16>>16;r=0;while(1){t=r+1|0;if(!(dd(c[(v+(r*24|0)&p)>>2]|0,g)|0)){t=r;break a}if((t|0)<(u|0))r=t;else break}}else t=0;while(0);if((t|0)==(w<<16>>16|0)){R=23;break}if(N){if((c[(B&p)>>2]&524288|0)!=0?(P=c[(A&p)+16>>2]|0,(P|0)!=0):0){x=P;r=0;do{w=c[(x&p)+20>>2]|0;if((w|0)>0){v=0;do{r=(c[(x+(v<<3)&p)+36>>2]|0)==(t|0)?10280:r;v=v+1|0}while((v|0)<(w|0))}x=c[(x&p)+4>>2]|0}while((x|0)!=0)}else r=0;v=c[(A&p)+8>>2]|0;if(v)do{u=b[(v&o)+46>>1]|0;if(u<<16>>16){y=c[(v&p)+4>>2]|0;w=u&65535;x=0;do{r=(b[(y+(x<<1)&o)>>1]|0)==(t|0)?10296:r;x=x+1|0}while((x|0)<(w|0))}v=c[(v&p)+20>>2]|0}while((v|0)!=0);if(r){R=36;break}}y=vh(s)|0;c[(l&p)>>2]=y;if(y){x=c[(A&p)+68>>2]|0;b:do if(x){w=c[(K&p)>>2]|0;if((w|0)>0){v=c[(L&p)>>2]|0;r=0;while(1){u=r+1|0;if((c[(v+(r<<4)&p)+12>>2]|0)==(x|0)){u=r;break b}if((u|0)<(w|0))r=u;else break}}else u=0}else u=-1e6;while(0);r=c[(x&p)+4>>2]|0;xh(y,wh(y,4,u,O,c[(x&p)>>2]|0)|0,r,-14);r=y+4|0;v=c[(r&p)>>2]|0;w=y+32|0;if(v)a[(v+(((c[(w&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;yh(y,10,10120)|0;v=y+96|0;c[(v&p)>>2]=c[(v&p)>>2]|1<<u;if((c[(w&p)>>2]|0)>>>0>1){x=c[(r&p)>>2]|0;c[(x&p)+24>>2]=u;v=A+32|0;c[(x&p)+28>>2]=c[(v&p)>>2];c[((c[(r&p)>>2]|0)&p)+32>>2]=O}else v=A+32|0;xh(y,1,c[(A&p)>>2]|0,0);zh(y,F);if((c[(w&p)>>2]|0)>>>0>G>>>0){c[((c[(r&p)>>2]|0)+(G*20|0)&p)+8>>2]=c[(v&p)>>2];c[((c[(r&p)>>2]|0)+(G*20|0)&p)+12>>2]=u}xh(y,G,(b[(z&o)>>1]|0)+1|0,-14);if((c[(w&p)>>2]|0)>>>0>6)c[((c[(r&p)>>2]|0)&p)+128>>2]=b[(z&o)>>1];if(!(a[(E&n)>>0]|0)){c[(H&p)>>2]=1;c[(I&p)>>2]=1;c[(J&p)>>2]=1;Ah(y,s)}}c[(Q&p)>>2]=O;c[(C&p)>>2]=t;c[(D&p)>>2]=d;if(a[(E&n)>>0]|0){R=57;break}re(c[(l&p)>>2]|0,1,h,k)|0;q=Bh(Q,h,k,T)|0;if(!((M|0)<50&(q|0)==17)){R=57;break}r=c[(T&p)>>2]|0;M=M+1|0;q=17}if((R|0)==11){c[(S&p)>>2]=f;th(s,10160,S)}else if((R|0)==13){c[(S&p)>>2]=f;th(s,10192,S)}else if((R|0)==17){c[(S&p)>>2]=f;th(s,10232,S)}else if((R|0)==23){mg(d,0);c[(S&p)>>2]=g;c[(T&p)>>2]=uh(d,10256,S)|0;q=1;R=62;break}else if((R|0)==36){mg(d,0);c[(S&p)>>2]=r;c[(T&p)>>2]=uh(d,10304,S)|0;q=1;R=62;break}else if((R|0)==57)if(!q){q=1;r=s;R=58;break}else{r=s;R=61;break}r=s+4|0;if(!(c[(r&p)>>2]|0)){q=1;R=62}else{mg(d,0);c[(T&p)>>2]=c[(r&p)>>2];c[(r&p)>>2]=0;q=1;R=62}}else{q=1;r=s;R=58}}else{q=0;r=0;R=58}while(0);do if((R|0)==58)if(a[(d&n)+65>>0]|0)if(q){q=0;R=61;break}else{q=0;R=64;break}else{c[(m&p)>>2]=Q;q=0;break}while(0);if((R|0)==61){l=Q+20|0;s=r;R=62}if((R|0)==62){r=c[(l&p)>>2]|0;if(!r){r=s;R=64}else{Ng(r)|0;r=s;R=64}}if((R|0)==64)mg(d,Q);K=c[(T&p)>>2]|0;c[(S&p)>>2]=K;ug(d,q,(K|0)!=0?10344:0,S);mg(d,K);Ch(r);mg(d,r);K=Og(d,q)|0;i=U;return K|0}function Je(a){a=a|0;var b=0,d=0;if(!a)a=0;else{d=c[(a&p)+24>>2]|0;b=md(c[(a&p)+20>>2]|0)|0;mg(d,a);a=b}return a|0}function Ke(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Eh(a,b,c,d,18)|0}function Le(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Eh(a,b,c,d,19)|0}function Me(a){a=a|0;if((a|0)!=0?(c[(a&p)+20>>2]|0)!=0:0)a=c[(a&p)+4>>2]|0;else a=0;return a|0}function Ne(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();e=h;f=h+8|0;if(!a){c[(e&p)>>2]=77720;c[(e&p)+4>>2]=10788;bd(21,13648,e);b=21}else{g=c[(a&p)+24>>2]|0;if(c[(a&p)+20>>2]|0){b=Bh(a,b,d,f)|0;if(!b)b=0;else{d=c[(f&p)>>2]|0;c[(e&p)>>2]=d;ug(g,b,(d|0)!=0?10344:0,e);mg(g,d)}}else b=4;b=Og(g,b)|0}i=h;return b|0}function Oe(a,d,e){a=a|0;d=d|0;e=e|0;c[(a&p)+284>>2]=d;c[(a&p)+288>>2]=e;a=c[(a&p)+4>>2]|0;if(a)do{e=a+88|0;b[(e&o)>>1]=b[(e&o)>>1]|8;a=c[(a&p)+52>>2]|0}while((a|0)!=0);return 0}function Pe(a,b){a=a|0;b=b|0;return (Gh(a,b,10352,0)|0)==0|0}function Qe(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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=i;i=i+16|0;if((i|0)>=(j|0))fa();m=E;A=E+12|0;B=E+8|0;c[(B&p)>>2]=0;do if(Hh(e)|0){l=(f|0)==0?10360:f;C=e+52|0;c[(C&p)>>2]=0;D=e+236|0;m=c[(D&p)>>2]|0;do if(m){f=m+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;break}else{vg(m);break}}while(0);x=(g|0)==0;y=e+24|0;m=0;a:while(1){do{if(m){q=39;break a}if(!(a[(l&n)>>0]|0)){m=0;q=39;break a}c[(B&p)>>2]=0;m=ih(e,l,-1,1,0,B,A)|0}while((m|0)!=0);l=c[(B&p)>>2]|0;if(!l){l=c[(A&p)>>2]|0;m=0;continue}w=b[(l&o)+84>>1]|0;u=w&65535;v=u<<3|1;w=w<<16>>16==0;f=0;q=0;r=0;b:do{m=Sd(l)|0;do if(!x){s=(m|0)==100;if(!s){if((m|0)!=101|(r|0)!=0)break b;if(!(c[(y&p)>>2]&256)){r=0;break}}if(!r){f=mh(e,v,0)|0;if(!f){f=0;q=40;break a}fw(f|0,0,v|0)|0;if(w)t=1;else{r=0;do{c[(f+(r<<2)&p)>>2]=je(l,r)|0;r=r+1|0}while((r|0)<(u|0));t=1}}else t=r;c:do if(s){q=f+(u<<2)|0;if(!w){r=0;while(1){s=fe(l,r)|0;c[(f+(r+u<<2)&p)>>2]=s;if((s|0)==0?(z=c[(B&p)>>2]|0,(ie(z,r)|0)!=5):0){m=z;q=27;break a}r=r+1|0;if((r|0)>=(u|0))break c;l=c[(B&p)>>2]|0}}}while(0);if(!(pc[g&31](h,u,q,f)|0))r=t;else{l=f;q=31;break a}}while(0);l=c[(B&p)>>2]|0}while((m|0)==100);m=Ng(l)|0;c[(B&p)>>2]=0;l=c[(A&p)>>2]|0;while(1)if(!(a[((d[(l&n)>>0]|0)&n)+10368>>0]&1))break;else l=l+1|0;mg(e,f)}do if((q|0)==27){a[(e&n)+65>>0]=1;l=m;m=100;q=40}else if((q|0)==31){Ng(c[(B&p)>>2]|0)|0;c[(B&p)>>2]=0;c[(C&p)>>2]=4;m=c[(D&p)>>2]|0;if(m){f=m+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;f=l;m=4;break}else{vg(m);f=l;m=4;break}}else{f=l;m=4}}else if((q|0)==39){l=c[(B&p)>>2]|0;f=0;q=40}while(0);if((q|0)==40)if(l)Ng(l)|0;mg(e,f);l=Og(e,m)|0;f=(k|0)!=0;if(!((l|0)!=0&f)){if(!f)break;c[(k&p)>>2]=0;break}f=Se(e)|0;if(!f)f=1;else{m=f;while(1)if(!(a[(m&n)>>0]|0))break;else m=m+1|0;f=(m-f&1073741823)+1|0}m=qg(f,((f|0)<0)<<31>>31)|0;c[(k&p)>>2]=m;if(m){kw(m|0,Se(e)|0,f|0)|0;break}c[(C&p)>>2]=7;l=c[(D&p)>>2]|0;if(l){f=l+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;l=7;break}else{vg(l);l=7;break}}else l=7}else{c[(m&p)>>2]=101334;c[(m&p)+4>>2]=10788;bd(21,13648,m);l=21}while(0);i=E;return l|0}function Re(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ih(a,b,c,1,0,d,e)|0}function Se(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129635;c[(d&p)+4>>2]=10788;bd(21,13648,d);d=16120;break}if(!(a[(b&n)+65>>0]|0)){d=Sg(c[(b&p)+236>>2]|0,1)|0;if(!d){d=c[(b&p)+52>>2]|0;if((d|0)!=516){d=d&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344}}else d=15776}else d=15776;while(0);i=e;return d|0}function Te(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();u=w;v=w+8|0;t=c[(b&p)>>2]|0;c[(v&p)>>2]=0;m=(d|0)==0;if(m)g=0;else{l=d;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;g=l-d&1073741823}r=g+300|0;q=(f|0)!=0;if(q)c[(f&p)>>2]=0;do if(!(c[(b&p)+24>>2]&4194304))if(q){c[(f&p)>>2]=_c(25216,u)|0;g=1}else g=1;else{o=(e|0)!=0?e:41192;k=t+40|0;l=rc[c[(k&p)>>2]&127](t,d)|0;if(!l){c[(u&p)>>2]=d;c[(u&p)+4>>2]=41184;h=_c(27824,u)|0;if(!h){g=7;break}l=rc[c[(k&p)>>2]&127](t,h)|0;Wc(h);if(!l){if(!q){g=1;break}l=Tc(r)|0;c[(v&p)>>2]=l;c[(f&p)>>2]=l;if(!l){g=1;break}c[(u&p)>>2]=d;ad(r,l,41216,u)|0;mc[c[(t&p)+44>>2]&63](t,g+299|0,l);g=1;break}else s=l}else s=l;g=t+48|0;l=ac[c[(g&p)>>2]&63](t,s,o)|0;if((l|0)==0&(e|0)==0){if(m)l=0;else{l=d;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-d&1073741823}e=Tc(l+30|0)|0;if(!e){jc[c[(t&p)+52>>2]&15](t,s);g=7;break}o=e;m=o;a[(m&n)>>0]=115;a[(m&n)+1>>0]=113;a[(m&n)+2>>0]=108;a[(m&n)+3>>0]=105;o=o+4|0;a[(o&n)>>0]=116;a[(o&n)+1>>0]=101;a[(o&n)+2>>0]=51;a[(o&n)+3>>0]=95;while(1){k=l+-1|0;if((l|0)<=0)break;if((a[(d+k&n)>>0]|0)==47)break;else l=k}h=(Fc(d+l|0,41256,3)|0)==0;k=8;h=h?l+3|0:l;while(1){l=a[(d+h&n)>>0]|0;if(l<<24>>24==0|l<<24>>24==46){l=k;break}if(!(a[(l&255&n)+10368>>0]&2))l=k;else{a[(e+k&n)>>0]=a[(l<<24>>24&n)+9328>>0]|0;l=k+1|0}k=l;h=h+1|0}l=e+l|0;a[(l&n)>>0]=a[41264]|0;a[(l&n)+1>>0]=a[41265]|0;a[(l&n)+2>>0]=a[41266]|0;a[(l&n)+3>>0]=a[41267]|0;a[(l&n)+4>>0]=a[41268]|0;a[(l&n)+5>>0]=a[41269]|0;l=ac[c[(g&p)>>2]&63](t,s,e)|0;g=e;h=e}else{g=0;h=o}if(!l){if(q){if(!h)l=0;else{l=h;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-h&1073741823}l=l+r|0;k=Tc(l)|0;c[(v&p)>>2]=k;c[(f&p)>>2]=k;if(k){c[(u&p)>>2]=h;c[(u&p)+4>>2]=d;ad(l,k,41272,u)|0;mc[c[(t&p)+44>>2]&63](t,l+-1|0,k)}}jc[c[(t&p)+52>>2]&15](t,s);Wc(g);g=1;break}Wc(g);if(ac[l&63](b,v,13776)|0){if(q){c[(u&p)>>2]=c[(v&p)>>2];c[(f&p)>>2]=_c(41320,u)|0}Wc(c[(v&p)>>2]|0);jc[c[(t&p)+52>>2]&15](t,s);g=1;break}k=b+168|0;g=(c[(k&p)>>2]<<2)+4|0;l=mh(b,g,0)|0;if(!l)g=7;else{fw(l|0,0,g|0)|0;g=c[(k&p)>>2]|0;h=b+172|0;if((g|0)>0)kw(l|0,c[(h&p)>>2]|0,g<<2|0)|0;mg(b,c[(h&p)>>2]|0);c[(h&p)>>2]=l;g=c[(k&p)>>2]|0;c[(k&p)>>2]=g+1;c[(l+(g<<2)&p)>>2]=s;g=0}}while(0);s=Og(b,g)|0;i=w;return s|0}function Ue(a){a=a|0;var b=0,d=0,e=0,f=0;b=Lc()|0;if(!b){f=c[2656]|0;a:do if((f|0)>0){d=c[2658]|0;e=0;while(1){b=e+1|0;if((c[(d+(e<<2)&p)>>2]|0)==(a|0)){b=e;break a}if((b|0)<(f|0))e=b;else break}}else b=0;while(0);if((b|0)==(f|0)){b=Xc(c[2658]|0,(f<<2)+4|0)|0;if(!b)b=7;else{c[2658]=b;d=c[2656]|0;c[(b+(d<<2)&p)>>2]=a;c[2656]=d+1;b=0}}else b=0}return b|0}function Ve(a){a=a|0;var b=0,d=0,e=0,f=0,g=0;e=c[2656]|0;f=c[2658]|0;d=e;while(1){if((d|0)<=0){b=0;break}d=d+-1|0;b=f+(d<<2)|0;if((c[(b&p)>>2]|0)==(a|0)){g=4;break}}if((g|0)==4){d=e+-1|0;c[2656]=d;c[(b&p)>>2]=c[(f+(d<<2)&p)>>2];b=1}return b|0}function We(){if(!(Lc()|0)){Wc(c[2658]|0);c[2658]=0;c[2656]=0}return}function Xe(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return ih(a,b,c,0,0,d,e)|0}function Ye(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Ih(a,b,c,0,d,e)|0}function Ze(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Ih(a,b,c,1,d,e)|0}function _e(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,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+32|0;if((i|0)>=(j|0))fa();n=w;r=w+4|0;c[(d&p)>>2]=0;s=(f|0)!=0;if(s)c[(f&p)>>2]=0;t=(e|0)!=0;if(t)c[(e&p)>>2]=0;l=(g|0)!=0;if(l)c[(g&p)>>2]=0;m=r+4|0;c[(m&p)>>2]=0;u=r+12|0;c[(u&p)>>2]=0;v=r+16|0;c[(v&p)>>2]=0;k=r+20|0;c[(k&p)>>2]=1;o=r+8|0;c[(o&p)>>2]=20;q=r+24|0;c[(q&p)>>2]=0;h=Tc(80)|0;c[(r&p)>>2]=h;a:do if(h){c[(h&p)>>2]=0;b=Qe(a,b,20,r,g)|0;c[(c[(r&p)>>2]&p)>>2]=c[(k&p)>>2];if((b&255|0)==4){$e((c[(r&p)>>2]|0)+4|0);b=c[(m&p)>>2]|0;if(b){if(l){Wc(c[(g&p)>>2]|0);c[(n&p)>>2]=c[(m&p)>>2];c[(g&p)>>2]=_c(10344,n)|0;b=c[(m&p)>>2]|0}Wc(b)}b=c[(q&p)>>2]|0;c[(a&p)+52>>2]=b;break}Wc(c[(m&p)>>2]|0);if(b){$e((c[(r&p)>>2]|0)+4|0);break}h=c[(k&p)>>2]|0;b=c[(r&p)>>2]|0;do if((c[(o&p)>>2]|0)>>>0>h>>>0){b=Xc(b,h<<2)|0;if(!b){$e((c[(r&p)>>2]|0)+4|0);c[(a&p)+52>>2]=7;b=7;break a}else{c[(r&p)>>2]=b;break}}while(0);c[(d&p)>>2]=b+4;if(s)c[(f&p)>>2]=c[(v&p)>>2];if(t){c[(e&p)>>2]=c[(u&p)>>2];b=0}else b=0}else{c[(a&p)+52>>2]=7;b=7}while(0);i=w;return b|0}function $e(a){a=a|0;var b=0,d=0,e=0,f=0;if(a){b=a+-4|0;e=c[(b&p)>>2]|0;d=e;if((e|0)>1){f=1;do{e=c[(a+(f+-1<<2)&p)>>2]|0;if(e)Wc(e);f=f+1|0}while((f|0)<(d|0))}Wc(b)}return}function af(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Kh(a,b,c,d,0)|0}function bf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Kh(a,b,c,d,e)|0}function cf(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();r=s;g=s+8|0;c[(g&p)>>2]=0;h=d+324|0;f=c[(h&p)>>2]|0;if((f|0)!=0?(m=c[(f&p)+4>>2]|0,(m|0)!=0):0){q=mh(d,536,0)|0;if(!q)e=7;else{fw(q|0,0,536)|0;k=q+451|0;a[(k&n)>>0]=1;c[(q&p)>>2]=d;c[(q&p)+424>>2]=1;if(((((Lh(q,e,g)|0)==0?(l=c[(q&p)+484>>2]|0,(l|0)!=0):0)?(a[(d&n)+65>>0]|0)==0:0)?(c[(l&p)+12>>2]|0)==0:0)?(a[(l&n)+44>>0]&16)==0:0){f=m+4|0;if(!(c[(f&p)>>2]|0)){r=l+4|0;c[(f&p)>>2]=c[(r&p)>>2];l=l+38|0;b[(m&o)+38>>1]=b[(l&o)>>1]|0;b[(l&o)>>1]=0;c[(r&p)>>2]=0}c[((c[(h&p)>>2]|0)&p)+4>>2]=0;e=0}else{e=c[(g&p)>>2]|0;c[(r&p)>>2]=e;ug(d,1,(e|0)!=0?10344:0,r);mg(d,e);e=1}a[(k&n)>>0]=0;f=c[(q&p)+8>>2]|0;if(f)Ng(f)|0;kg(d,c[(q&p)+484>>2]|0);Ch(q);mg(d,q)}e=Og(d,e)|0}else{c[(d&p)+52>>2]=21;f=c[(d&p)+236>>2]|0;do if(f){e=f+8|0;if(!(b[(e&o)>>1]&9312)){b[(e&o)>>1]=1;break}else{vg(f);break}}while(0);c[(r&p)>>2]=114865;c[(r&p)+4>>2]=10788;bd(21,13648,r);e=21}i=s;return e|0}function df(a){a=a|0;return d[((d[(a&n)+69>>0]|0)+-1&n)+10640>>0]|0|0}function ef(d,e,f){d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();h=l;g=l+8|0;c[(g&p)>>2]=f;do if((e|0)==1){e=c[(d&p)+324>>2]|0;if(!e){c[(h&p)>>2]=115248;c[(h&p)+4>>2]=10788;bd(21,13648,h);k=6;break}else{d=c[(g&p)>>2]|0;f=c[(d&p)>>2]|0;c[(g&p)>>2]=d+4;a[((c[(e&p)>>2]|0)&n)+16>>0]=f;e=0;break}}else{c[(h&p)>>2]=115256;c[(h&p)+4>>2]=10788;bd(21,13648,h);k=6}while(0);do if((k|0)==6){c[(d&p)+52>>2]=21;e=c[(d&p)+236>>2]|0;if(e){f=e+8|0;if(!(b[(f&o)>>1]&9312)){b[(f&o)>>1]=1;e=21;break}else{vg(e);e=21;break}}else e=21}while(0);i=l;return e|0}function ff(b){b=b|0;var c=0,e=0,f=0,g=0,h=0;c=a[(b&n)>>0]|0;a:do if(c<<24>>24){g=c;c=0;b:while(1){f=g<<24>>24;switch(f|0){case 45:{if((a[(b&n)+1>>0]|0)==45){e=g;while(1){f=e<<24>>24==0;g=b+1|0;if(!(e<<24>>24!=10&(f^1)))break;b=g;e=a[(g&n)>>0]|0}if(f){h=13;break b}else e=1}else e=2;break}case 59:{e=0;break}case 91:{do{b=b+1|0;f=a[(b&n)>>0]|0;e=f<<24>>24==0}while(f<<24>>24!=93&(e^1));if(e){c=0;break a}else e=2;break}case 39:case 34:case 96:{do{b=b+1|0;f=a[(b&n)>>0]|0;e=f<<24>>24==0}while(f<<24>>24!=g<<24>>24&(e^1));if(e){c=0;break a}else e=2;break}case 47:{if((a[(b&n)+1>>0]|0)==42){b=b+2|0;while(1){e=a[(b&n)>>0]|0;if(e<<24>>24==42){b=b+1|0;if((a[(b&n)>>0]|0)==47){e=1;break}else continue}else if(!(e<<24>>24)){c=0;break a}else{b=b+1|0;continue}}}else e=2;break}case 12:case 10:case 9:case 13:case 32:{e=1;break}default:if(!(a[(g&255&n)+10368>>0]&70))e=2;else{e=1;while(1)if(!(a[((d[(b+e&n)>>0]|0)&n)+10368>>0]&70)){g=e;break}else e=e+1|0;c:do switch(f|0){case 67:case 99:{if((g|0)==6?(Fc(b,10712,6)|0)==0:0){e=4;break c}e=2;break}case 69:case 101:{if((g|0)==3){if(!(Fc(b,10752,3)|0)){e=7;break c}}else if((g|0)==7?(Fc(b,10760,7)|0)==0:0){e=3;break c}e=2;break}case 84:case 116:{if((g|0)==7){if(!(Fc(b,10720,7)|0)){e=6;break c}}else if((g|0)==4){if(!(Fc(b,10728,4)|0)){e=5;break c}}else if((g|0)==9?(Fc(b,10736,9)|0)==0:0){e=5;break c}e=2;break}default:e=2}while(0);b=b+(g+-1)|0}}c=a[((e&255)+((c&255)<<3)&n)+10648>>0]|0;b=b+1|0;g=a[(b&n)>>0]|0;if(!(g<<24>>24)){h=35;break}}if((h|0)==13){c=c<<24>>24==1&1;break}else if((h|0)==35){c=c<<24>>24==1;h=36;break}}else{c=0;h=36}while(0);if((h|0)==36)c=c&1;return c|0}function gf(d){d=d|0;var e=0,f=0,g=0;e=Lc()|0;if(!e){f=qg(40,0)|0;if(f){e=f+0|0;g=e+40|0;do{a[(e&n)>>0]=0;e=e+1|0}while((e|0)<(g|0));b[(f&o)+8>>1]=1;c[(f&p)+32>>2]=0;Xg(f,d,-1,2,0)|0}e=Sg(f,1)|0;if(!e)e=7;else e=(ff(e)|0)&255;Mh(f)}return e|0}function hf(){return 8632}function jf(){return 10768}function kf(){return 3008009}function lf(){return 0}function mf(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+32|0;if((i|0)>=(j|0))fa();d=f;e=f+8|0;if(!(c[2243]|0)){c[(e&p)>>2]=b;do switch(a|0){case 22:{c[(e&p)>>2]=(c[(e&p)>>2]|0)+8;c[(e&p)>>2]=(c[(e&p)>>2]|0)+8;c[2230]=0;c[2231]=0;c[2232]=0;c[2233]=0;d=0;break}case 25:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2242]=d;d=0;break}case 19:{if(!(c[2214]|0)){c[(d&p)>>2]=16440;mf(18,d)|0}a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;d=d+0|0;a=8848|0;e=d+52|0;do{c[(d&p)>>2]=c[(a&p)>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 18:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;d=8848|0;a=a+0|0;e=d+52|0;do{c[(d&p)>>2]=c[(a&p)>>2];d=d+4|0;a=a+4|0}while((d|0)<(e|0));d=0;break}case 20:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2190]=d;d=0;break}case 13:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2193]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2194]=d;d=0;break}case 17:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2189]=d;d=0;break}case 15:{d=1;break}case 6:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2234]=d;d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2235]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2236]=d;d=0;break}case 24:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[(d&p)>>2]=152;d=0;break}case 9:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2186]=d;d=0;break}case 7:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2237]=d;d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2238]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2239]=d;d=0;break}case 4:{a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2195]=c[(d&p)>>2];c[2196]=c[(d&p)+4>>2];c[2197]=c[(d&p)+8>>2];c[2198]=c[(d&p)+12>>2];c[2199]=c[(d&p)+16>>2];c[2200]=c[(d&p)+20>>2];c[2201]=c[(d&p)+24>>2];c[2202]=c[(d&p)+28>>2];d=0;break}case 16:{d=c[(e&p)>>2]|0;a=c[(d&p)>>2]|0;c[(e&p)>>2]=d+4;c[2250]=a;a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[2251]=d;d=0;break}case 5:{if(!(c[2195]|0)){c[(d&p)>>2]=16496;mf(4,d)|0}a=c[(e&p)>>2]|0;d=c[(a&p)>>2]|0;c[(e&p)>>2]=a+4;c[(d&p)>>2]=c[2195];c[(d&p)+4>>2]=c[2196];c[(d&p)+8>>2]=c[2197];c[(d&p)+12>>2]=c[2198];c[(d&p)+16>>2]=c[2199];c[(d&p)+20>>2]=c[2200];c[(d&p)+24>>2]=c[2201];c[(d&p)+28>>2]=c[2202];d=0;break}case 14:{d=0;break}default:d=1}while(0)}else{c[(d&p)>>2]=127883;c[(d&p)+4>>2]=10788;bd(21,13648,d);d=21}i=f;return d|0}function nf(a){a=a|0;return c[(a&p)+12>>2]|0}function of(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[(h&p)>>2]|0;f=(b|0)>0;if(f){e=c[(a&p)+16>>2]|0;g=0;do{d=c[(e+(g<<4)&p)+4>>2]|0;if(d)c[((c[(d&p)+4>>2]|0)&p)+4>>2]=c[(d&p)>>2];g=g+1|0}while((g|0)!=(b|0));if(f){f=a+16|0;e=0;do{d=c[((c[(f&p)>>2]|0)+(e<<4)&p)+4>>2]|0;if(d){cc[c[8896>>2]&31](c[((c[((c[(c[(d&p)+4>>2]&p)>>2]|0)&p)+204>>2]|0)&p)+40>>2]|0);b=c[(h&p)>>2]|0}e=e+1|0}while((e|0)<(b|0))}}return 0}function pf(a,d,e){a=a|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l;c[(h&p)>>2]=e;a:do if((d|0)!=1001){e=0;while(1){if((c[(e<<3&p)+10936>>2]|0)==(d|0))break;e=e+1|0;if(e>>>0>=2){f=1;break a}}g=c[(h&p)>>2]|0;d=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;k=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;h=a+24|0;g=c[(h&p)>>2]|0;if((d|0)<=0)if(!d){d=g&~c[(e<<3&p)+10940>>2];c[(h&p)>>2]=d}else d=g;else{d=c[(e<<3&p)+10940>>2]|g;c[(h&p)>>2]=d}if((g|0)!=(d|0)?(f=c[(a&p)+4>>2]|0,(f|0)!=0):0)do{d=f+88|0;b[(d&o)>>1]=b[(d&o)>>1]|8;f=c[(f&p)+52>>2]|0}while((f|0)!=0);if(!k)f=0;else{c[(k&p)>>2]=(c[(e<<3&p)+10940>>2]&c[(h&p)>>2]|0)!=0&1;f=0}}else{g=c[(h&p)>>2]|0;d=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;e=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;g=c[(h&p)>>2]|0;f=c[(g&p)>>2]|0;c[(h&p)>>2]=g+4;f=Nh(a,d,e,f)|0}while(0);i=l;return f|0}function qf(a){a=a|0;a=a+32|0;G=c[(a&p)+4>>2]|0;return c[(a&p)>>2]|0}function rf(a){a=a|0;return c[(a&p)+80>>2]|0}function sf(a){a=a|0;return c[(a&p)+84>>2]|0}function tf(a){a=a|0;return Oh(a,0)|0}function uf(a){a=a|0;return Oh(a,1)|0}function vf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+444>>2]=b;c[(a&p)+448>>2]=d;c[(a&p)+452>>2]=0;c[(a&p)+492>>2]=0;return 0}function wf(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;f=(b|0)>0;c[(a&p)+292>>2]=f?d:0;c[(a&p)+300>>2]=f?b:0;c[(a&p)+296>>2]=f?e:0;return}function xf(a,b){a=a|0;b=b|0;var d=0;d=(b|0)>0;c[(a&p)+444>>2]=d?74:0;c[(a&p)+448>>2]=d?a:0;c[(a&p)+452>>2]=0;c[(a&p)+492>>2]=d?b:0;return 0}function yf(a){a=a|0;c[(a&p)+240>>2]=1;return}function zf(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;return Og(a,Qh(a,b,c,d,e,f,g,h,0)|0)|0}function Af(b,d,e,f,g,h,i,j,k){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 l=0,m=0,o=0;do if(k){l=mh(b,12,0)|0;if(!l){cc[k&31](g);f=1;break}m=l;o=m;a[(o&n)>>0]=0;a[(o&n)+1>>0]=0;a[(o&n)+2>>0]=0;a[(o&n)+3>>0]=0;m=m+4|0;a[(m&n)>>0]=0;a[(m&n)+1>>0]=0;a[(m&n)+2>>0]=0;a[(m&n)+3>>0]=0;c[(l&p)+4>>2]=k;c[(l&p)+8>>2]=g;f=Qh(b,d,e,f,g,h,i,j,l)|0;if(!(c[(l&p)>>2]|0)){cc[k&31](g);mg(b,l)}}else f=Qh(b,d,e,f,g,h,i,j,0)|0;while(0);return Og(b,f)|0}function Bf(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;b=Rh(a,b,-1)|0;d=Qh(a,b,c,d,e,f,g,h,0)|0;mg(a,b);return Og(a,d)|0}function Cf(b,c,d){b=b|0;c=c|0;d=d|0;var e=0;if(!c)e=0;else{e=c;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;e=e-c&1073741823}if(!(Sh(b,c,e,d,1,0)|0))e=Qh(b,c,d,1,0,57,0,0,0)|0;else e=0;return Og(b,e)|0}function Df(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+180|0;e=c[(f&p)>>2]|0;c[(a&p)+176>>2]=b;c[(f&p)>>2]=d;return e|0}function Ef(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+188|0;e=c[(f&p)>>2]|0;c[(a&p)+184>>2]=b;c[(f&p)>>2]=d;return e|0}function Ff(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+192|0;e=c[(f&p)>>2]|0;c[(a&p)+196>>2]=b;c[(f&p)>>2]=d;return e|0}function Gf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+208|0;e=c[(f&p)>>2]|0;c[(a&p)+212>>2]=b;c[(f&p)>>2]=d;return e|0}function Hf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+200|0;e=c[(f&p)>>2]|0;c[(a&p)+204>>2]=b;c[(f&p)>>2]=d;return e|0}function If(a,b){a=a|0;b=b|0;var d=0;if((b|0)>0)d=21;else{b=0;d=0}c[(a&p)+216>>2]=d;c[(a&p)+220>>2]=b;return 0}function Jf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=a+220|0;e=c[(f&p)>>2]|0;c[(a&p)+216>>2]=b;c[(f&p)>>2]=d;return e|0}function Kf(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();k=q;if(g)c[(g&p)>>2]=-1;if(h)c[(h&p)>>2]=-1;if(f>>>0>3)e=21;else{if((e|0)!=0?(a[(e&n)>>0]|0)!=0:0){l=Vh(d,e)|0;if((l|0)<0){c[(k&p)>>2]=e;ug(d,1,10952,k);e=1}else m=10}else{l=10;m=10}do if((m|0)==10){c[(d&p)+452>>2]=0;e=Wh(d,l,f,g,h)|0;c[(d&p)+52>>2]=e;k=c[(d&p)+236>>2]|0;if(k){l=k+8|0;if(!(b[(l&o)>>1]&9312)){b[(l&o)>>1]=1;break}else{vg(k);break}}}while(0);e=Og(d,e)|0}i=q;return e|0}function Lf(a,b){a=a|0;b=b|0;return Kf(a,b,0,0,0)|0}function Mf(b){b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;do if(b){d=c[(b&p)+76>>2]|0;if(!((d|0)==1266094736|(d|0)==-1607883113|(d|0)==-264537850)){c[(g&p)>>2]=15248;bd(21,15256,g);d=11008;break}h=b+65|0;if(!(a[(h&n)>>0]|0)){f=b+236|0;d=Sg(c[(f&p)>>2]|0,2)|0;if(!d){e=c[(b&p)+52>>2]|0;if((e|0)!=516){d=e&255;if(d>>>0>26|(d|0)==2)d=16328;else d=c[(d<<2&p)+15488>>2]|0}else d=16344;ug(b,e,d,g);d=Sg(c[(f&p)>>2]|0,2)|0}a[(h&n)>>0]=0}else d=10976}else d=10976;while(0);i=k;return d|0}function Nf(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129704;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}if(!(a[(b&n)+65>>0]|0))b=c[(b&p)+56>>2]&c[(b&p)+52>>2];else b=7}else b=7;while(0);i=e;return b|0}function Of(b){b=b|0;var d=0,e=0,f=0;e=i;i=i+16|0;if((i|0)>=(j|0))fa();d=e;do if(b){f=c[(b&p)+76>>2]|0;if(!((f|0)==1266094736|(f|0)==-1607883113|(f|0)==-264537850)){c[(d&p)>>2]=15248;bd(21,15256,d);c[(d&p)>>2]=129713;c[(d&p)+4>>2]=10788;bd(21,13648,d);b=21;break}if(!(a[(b&n)+65>>0]|0))b=c[(b&p)+52>>2]|0;else b=7}else b=7;while(0);i=e;return b|0}function Pf(a){a=a|0;if((a|0)!=516){a=a&255;if(a>>>0>26|(a|0)==2)a=16328;else a=c[(a<<2&p)+15488>>2]|0}else a=16344;return a|0}function Qf(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;if(b>>>0<=11){e=a+(b<<2)+88|0;a=c[(e&p)>>2]|0;if((d|0)>-1){b=c[(b<<2&p)+11088>>2]|0;c[(e&p)>>2]=(b|0)<(d|0)?b:d}}else a=-1;return a|0}function Rf(a,b){a=a|0;b=b|0;return Xh(a,b,6,0)|0}function Sf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return Xh(a,b,c,d)|0}function Tf(d,e){d=d|0;e=e|0;var f=0,g=0,h=0;c[(e&p)>>2]=0;f=Lc()|0;if(!f){h=qg(40,0)|0;if(h){d=(d|0)==0?11136:d;f=h+0|0;g=f+40|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(g|0));b[(h&o)+8>>1]=1;c[(h&p)+32>>2]=0;Xg(h,d,-1,2,0)|0}d=Sg(h,1)|0;if(d){f=Xh(d,e,6,0)|0;if(!f){f=c[(e&p)>>2]|0;d=c[((c[(f&p)+16>>2]|0)&p)+12>>2]|0;if(!(b[(d&o)+78>>1]&1)){a[(f&n)+62>>0]=2;a[(d&n)+77>>0]=2;f=0}else f=0}}else f=7;Mh(h);f=f&255}return f|0}function Uf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return Og(a,Yh(a,b,c&255,d,e,0)|0)|0}function Vf(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 Og(a,Yh(a,b,c&255,d,e,f)|0)|0}function Wf(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;b=Rh(a,b,-1)|0;if(!b)b=0;else{c=Yh(a,b,c&255,d,e,0)|0;mg(a,b);b=c}return Og(a,b)|0}function Xf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+224>>2]=d;c[(a&p)+228>>2]=0;c[(a&p)+232>>2]=b;return 0}function Yf(a,b,d){a=a|0;b=b|0;d=d|0;c[(a&p)+224>>2]=0;c[(a&p)+228>>2]=d;c[(a&p)+232>>2]=b;return 0}function Zf(a){a=a|0;return d[(a&n)+63>>0]|0|0}function _f(){return}function $f(d,e,f,g,h,k,l,m,q){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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=i;i=i+16|0;if((i|0)>=(j|0))fa();A=C;B=C+8|0;c[(B&p)>>2]=0;s=c[(d&p)+20>>2]|0;if((s|0)>0){r=c[(d&p)+16>>2]|0;u=0;do{t=c[(r+(u<<4)&p)+4>>2]|0;if(t)c[((c[(t&p)+4>>2]|0)&p)+4>>2]=c[(t&p)>>2];u=u+1|0}while((u|0)!=(s|0))}r=Zh(d,B)|0;z=(r|0)!=0;a:do if((!z?(x=_h(d,f,e)|0,(x|0)!=0):0)?(c[(x&p)+12>>2]|0)==0:0){do if(g){w=b[(x&o)+38>>1]|0;b:do if(w<<16>>16>0){e=c[(x&p)+4>>2]|0;s=w<<16>>16;v=0;while(1){t=e+(v*24|0)|0;u=v+1|0;if(!(dd(c[(t&p)>>2]|0,g)|0)){u=v;break b}if((u|0)<(s|0))v=u;else break}}else{u=0;t=0}while(0);if((u|0)==(w<<16>>16|0)){if(a[(x&n)+44>>0]&32){e=0;w=0;x=0;t=0;v=0;u=0;break a}if(!($h(g)|0)){e=0;w=0;x=0;t=0;v=0;u=0;break a}y=b[(x&o)+36>>1]|0;s=y<<16>>16;if(y<<16>>16<=-1){e=0;v=0;s=1;y=0;u=11144;break}u=s;t=(c[(x&p)+4>>2]|0)+(s*24|0)|0}if(t){if((b[(x&o)+36>>1]|0)==(u|0))s=(a[(x&n)+44>>0]&8)!=0;else s=0;e=s&1;v=(a[(t&n)+20>>0]|0)!=0&1;s=a[(t&n)+23>>0]&1;y=c[(t&p)+16>>2]|0;u=c[(t&p)+12>>2]|0}else{e=0;v=0;s=1;y=0;u=11144}}else{e=0;v=0;s=1;y=0;u=11144}while(0);w=v;t=s;v=(y|0)==0?11152:y}else{e=0;w=0;x=0;t=0;v=0;u=0}while(0);if(h)c[(h&p)>>2]=u;if(k)c[(k&p)>>2]=v;if(l)c[(l&p)>>2]=w;if(m)c[(m&p)>>2]=t;if(q)c[(q&p)>>2]=e;s=c[(B&p)>>2]|0;if(!(z|(x|0)!=0)){mg(d,s);c[(A&p)>>2]=f;c[(A&p)+4>>2]=g;s=uh(d,11160,A)|0;c[(B&p)>>2]=s;r=1}c[(A&p)>>2]=s;ug(d,r,(s|0)!=0?10344:0,A);mg(d,c[(B&p)>>2]|0);z=Og(d,r)|0;i=C;return z|0}function ag(a){a=a|0;var b=0;if((Lc()|0)==0?(b=c[2254]|0,(b|0)!=0):0)a=(rc[c[(b&p)+60>>2]&127](b,a*1e3|0)|0)/1e3|0;else a=0;return a|0}function bg(a,b){a=a|0;b=b|0;c[(a&p)+56>>2]=(b|0)!=0?-1:255;return 0}function cg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;b=ai(a,b)|0;do if(b){a=c[(b&p)+4>>2]|0;c[(a&p)+4>>2]=c[(b&p)>>2];a=c[((c[(a&p)>>2]|0)&p)+60>>2]|0;if((d|0)==7){c[(e&p)>>2]=a;b=0;break}b=c[(a&p)>>2]|0;if(!b)b=12;else b=ac[c[(b&p)+40>>2]&63](a,d,e)|0}else b=1;while(0);return b|0}function dg(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;t=i;i=i+32|0;if((i|0)>=(j|0))fa();s=t+24|0;h=t+8|0;g=t;c[(h&p)>>2]=f;do switch(e|0){case 11:{g=c[2514]|0;s=c[(h&p)>>2]|0;f=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(f)c[2514]=f;break}case 12:{c[(g&p)>>2]=0;g=c[(g&p)>>2]|0;break}case 13:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;break}case 22:{g=10;break}case 5:{kw(12672,9064,259)|0;g=0;break}case 7:{if(!(Lc()|0)){a[9064]=0;g=0}else g=0;break}case 8:{r=c[(h&p)>>2]|0;q=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;k=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=qg(512,0)|0;g=(r|0)==0;if(!g){fw(r|0,0,512)|0;c[(r&p)>>2]=q}e=((q+7|0)/8|0)+1|0;m=qg(e,((e|0)<0)<<31>>31)|0;f=(m|0)==0;if(!f)fw(m|0,0,e|0)|0;l=Tc(512)|0;a:do if(!(g|f|(l|0)==0)){h=0;while(1){g=c[(k+(h<<2)&p)>>2]|0;if(!g)break;else if((g|0)==5|(g|0)==2|(g|0)==1){f=k+(h+2<<2)|0;u=c[(f&p)>>2]|0;e=u+-1|0;c[(s&p)>>2]=e;c[(f&p)>>2]=(c[(k+(h+3<<2)&p)>>2]|0)+u;f=4}else{cd(4,s);e=c[(s&p)>>2]|0;f=2}v=k+((h|1)<<2)|0;u=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=u;h=((u|0)>0?0:f)+h|0;e=(e&2147483647|0)%(q|0)|0;c[(s&p)>>2]=e;e=e+1|0;f=1<<(e&7);if(!(g&1)){e=m+(e>>>3)|0;a[(e&n)>>0]=d[(e&n)>>0]&(f^255);ci(r,(c[(s&p)>>2]|0)+1|0,l);continue}e=m+(e>>>3)|0;a[(e&n)>>0]=d[(e&n)>>0]|f;if((g|0)==5)continue;if(bi(r,(c[(s&p)>>2]|0)+1|0)|0){g=-1;break a}}k=di(r,q+1|0)|0;e=di(r,0)|0;e=k-q+e+(c[(r&p)>>2]|0)|0;c[(s&p)>>2]=1;if((q|0)<1)g=e;else{f=1;while(1){k=(d[(m+(f>>3)&n)>>0]&1<<(f&7)|0)!=0&1;g=f;f=f+1|0;if((k|0)!=(di(r,g)|0))break a;c[(s&p)>>2]=f;if((g|0)>=(q|0)){g=e;break}}}}else g=-1;while(0);Wc(l);Wc(m);ei(r);break}case 6:{kw(9064,12672,259)|0;g=0;break}case 23:{g=(c[2243]|0)==0&1;break}case 25:{q=c[(h&p)>>2]|0;g=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;q=c[(h&p)>>2]|0;r=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;a[(g&n)+144>>0]=Vh(g,r)|0;r=c[(h&p)>>2]|0;q=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;q=q&255;a[(g&n)+147>>0]=q;r=g+145|0;a[(r&n)>>0]=q;q=c[(h&p)>>2]|0;s=c[(q&p)>>2]|0;c[(h&p)>>2]=q+4;c[(g&p)+140>>2]=s;if((a[(r&n)>>0]|0)==0&(s|0)>0){Eg(g);g=0}else g=0;break}case 14:{r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;xg(c[((c[(s&p)+16>>2]|0)&p)+4>>2]|0,0,g,0)|0;g=0;break}case 15:{r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;b[(g&o)+60>>1]=s;g=0;break}case 16:{s=c[(h&p)>>2]|0;e=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(!e)g=0;else{g=e;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-e&1073741823}g=(fi(e,g)|0)!=27;g=g?124:0;break}case 24:{r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;c[(g&p)+136>>2]=s;g=0;break}case 17:{s=c[(h&p)>>2]|0;f=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;s=c[(h&p)>>2]|0;e=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;if(f)c[(g&p)>>2]=gi(f)|0;hi(e);g=0;break}case 18:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2253]=g;g=0;break}case 20:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2192]=g;g=0;break}case 9:{s=c[(h&p)>>2]|0;g=c[(s&p)>>2]|0;c[(h&p)>>2]=s+4;c[2252]=g;if(!g)g=0;else g=lc[g&127](0)|0;break}case 10:{r=c[(h&p)>>2]|0;s=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;r=c[(h&p)>>2]|0;g=c[(r&p)>>2]|0;c[(h&p)>>2]=r+4;c[3164]=s;c[3166]=g;g=0;break}default:g=0}while(0);i=t;return g|0}function eg(b,c){b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a:do if(!((b|0)==0|(c|0)==0)){d=b;while(1)if(!(a[(d&n)>>0]|0))break;else d=d+1|0;e=(d-b&1073741823)+1|0;d=a[(b+e&n)>>0]|0;if(d<<24>>24){g=b+e|0;while(1){f=_v(g,c)|0;e=g;while(1){b=e+1|0;if(!(d<<24>>24))break;d=a[(b&n)>>0]|0;e=b}b=e-g&1073741823;d=g+(b+1)|0;if(!f)break a;else e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;g=g+(b+2+(e-d&1073741823))|0;d=a[(g&n)>>0]|0;if(!(d<<24>>24)){d=0;break}}}else d=0}else d=0;while(0);return d|0}function fg(a,b,c){a=a|0;b=b|0;c=c|0;a=eg(a,b)|0;b=(c|0)!=0;if(a)b=(ii(a,1,b&1)|0)<<24>>24!=0;return b&1|0}function gg(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;a=eg(a,b)|0;if(!a){G=e;i=g;return d|0}else{b=(ji(a,f)|0)==0;a=f;G=b?c[(a&p)+4>>2]|0:e;i=g;return (b?c[(a&p)>>2]|0:d)|0}return 0}function hg(b,d){b=b|0;d=d|0;b=ai(b,d)|0;if(b){b=c[(c[(b&p)+4>>2]&p)>>2]|0;if(!(a[(b&n)+15>>0]|0))b=c[(b&p)+168>>2]|0;else b=10360}else b=0;return b|0}function ig(a,d){a=a|0;d=d|0;a=ai(a,d)|0;if(!a)a=-1;else a=b[((c[(a&p)+4>>2]|0)&o)+22>>1]&1;return a|0}function jg(a,b){a=a|0;b=b|0;if(b){Fk(a,c[(b&p)+28>>2]|0);mg(a,c[(b&p)>>2]|0);mg(a,c[(b&p)+4>>2]|0);Gk(a,c[(b&p)+12>>2]|0);Hk(a,c[(b&p)+16>>2]|0);mg(a,b)}return}function kg(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;do if(d){h=(a|0)!=0;if(!(h?(c[(a&p)+520>>2]|0)!=0:0))e=4;if((e|0)==4?(f=d+40|0,e=(b[(f&o)>>1]|0)+-1<<16>>16,b[(f&o)>>1]=e,e<<16>>16!=0):0)break;e=c[(d&p)+8>>2]|0;if(e){g=a+520|0;do{f=e;e=c[(e&p)+20>>2]|0;if(!(h?(c[(g&p)>>2]|0)!=0:0))Ik((c[(f&p)+24>>2]|0)+24|0,c[(f&p)>>2]|0,0)|0;Jk(a,f)}while((e|0)!=0)}e=c[(d&p)+16>>2]|0;if(e){j=(a|0)==0;k=d+68|0;l=a+520|0;do{if(!(!j?(c[(l&p)>>2]|0)!=0:0)){f=e+16|0;i=c[(f&p)>>2]|0;h=e+12|0;g=c[(h&p)>>2]|0;if(!i)Ik((c[(k&p)>>2]|0)+56|0,c[(((g|0)==0?e:g)&p)+8>>2]|0,g)|0;else c[(i&p)+12>>2]=g;h=c[(h&p)>>2]|0;if(h)c[(h&p)+16>>2]=c[(f&p)>>2]}Kk(a,c[(e&p)+28>>2]|0);Kk(a,c[(e&p)+32>>2]|0);f=e;e=c[(e&p)+4>>2]|0;mg(a,f)}while((e|0)!=0)}Lk(a,d);mg(a,c[(d&p)>>2]|0);mg(a,c[(d&p)+20>>2]|0);Mk(a,c[(d&p)+12>>2]|0,1);Nk(a,c[(d&p)+24>>2]|0);if(!((a|0)!=0?(c[(a&p)+520>>2]|0)!=0:0))Ok(0,d)|0;h=d+56|0;e=c[(h&p)>>2]|0;if(e){i=d+52|0;f=c[(i&p)>>2]|0;if((f|0)>0){g=0;do{if((g|0)!=1){mg(a,c[((c[(h&p)>>2]|0)+(g<<2)&p)>>2]|0);f=c[(i&p)>>2]|0}g=g+1|0}while((g|0)<(f|0));e=c[(h&p)>>2]|0}mg(a,e)}mg(a,d)}while(0);return}function lg(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;ch(c[(d&p)+60>>2]|0,b[(d&o)+68>>1]|0);h=d+16|0;ch(c[(h&p)>>2]|0,e[(d&o)+84>>1]<<1);f=c[(d&p)+192>>2]|0;if(f)do{g=f;f=c[(f&p)+24>>2]|0;Pk(a,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0);mg(a,g)}while((f|0)!=0);f=b[(d&o)+70>>1]|0;if(f<<16>>16>0){g=d+64|0;f=f<<16>>16;do{f=f+-1|0;mg(a,c[((c[(g&p)>>2]|0)+(f<<2)&p)>>2]|0)}while((f|0)>0)}Pk(a,c[(d&p)+4>>2]|0,c[(d&p)+32>>2]|0);mg(a,c[(h&p)>>2]|0);mg(a,c[(d&p)+168>>2]|0);mg(a,c[(d&p)+172>>2]|0);return}function mg(a,b){a=a|0;b=b|0;var d=0;do if(b){if(a){if(c[(a&p)+520>>2]|0){Qk(a,b);break}if((c[(a&p)+276>>2]|0)>>>0<=b>>>0?(c[(a&p)+280>>2]|0)>>>0>b>>>0:0){d=a+272|0;c[(b&p)>>2]=c[(d&p)>>2];c[(d&p)>>2]=b;a=a+252|0;c[(a&p)>>2]=(c[(a&p)>>2]|0)+-1;break}}Wc(b)}while(0);return}function ng(b,e){b=b|0;e=e|0;var f=0,g=0,h=0;h=c[(e&p)+24>>2]|0;if(!h)f=0;else{f=h;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;f=f-h&1073741823}g=(((d[((d[(h&n)>>0]|0)&n)+9328>>0]|0)+f|0)>>>0)%23|0;f=Rk(b,g,h,f)|0;if(!f){c[(e&p)+8>>2]=0;f=b+(g<<2)|0;c[(e&p)+28>>2]=c[(f&p)>>2];c[(f&p)>>2]=e}else{f=f+8|0;c[(e&p)+8>>2]=c[(f&p)>>2];c[(f&p)>>2]=e}return}function og(a){a=a|0;var b=0,d=0;do if(a){b=c[2254]|0;if((b|0)==(a|0)){c[2254]=c[(a&p)+12>>2];break}if(b){do{d=b+12|0;b=c[(d&p)>>2]|0}while((b|0)!=(a|0)&(b|0)!=0);if((b|0)==(a|0))c[(d&p)>>2]=c[(a&p)+12>>2]}}while(0);return}function pg(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return}function qg(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;b=jw(a|0,b|0,-1,-1)|0;d=G;do if(!(d>>>0>0|(d|0)==0&b>>>0>2147483390)){if(!(c[2186]|0)){b=lc[c[8780>>2]&127](a)|0;break}d=lc[c[8796>>2]&127](a)|0;c[2171]=a;if((c[2181]|0)>>>0<a>>>0)c[2181]=a;a=c[2260]|0;do if(a){b=c[2166]|0;e=9032|0;e=dw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;f=G;if(0<(f|0)|0==(f|0)&b>>>0<e>>>0){c[2265]=0;break}else{c[2265]=1;e=c[2261]|0;c[2260]=0;qc[a&15](e,b,0,d);c[2260]=a;c[2261]=e;break}}while(0);b=lc[c[8780>>2]&127](d)|0;if(b){a=lc[c[8792>>2]&127](b)|0;a=(c[2166]|0)+a|0;c[2166]=a;if(a>>>0>(c[2176]|0)>>>0)c[2176]=a;a=(c[2175]|0)+1|0;c[2175]=a;if(a>>>0>(c[2185]|0)>>>0)c[2185]=a}else b=0}else b=0;while(0);return b|0}function rg(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;do if(a){if((b|0)==0&(d|0)==0){Wc(a);e=0;break}if(!(d>>>0>0|(d|0)==0&b>>>0>2147483391)){h=lc[c[8792>>2]&127](a)|0;g=lc[c[8796>>2]&127](b)|0;if((g|0)!=(h|0)){if(!(c[2186]|0)){e=rc[c[8788>>2]&127](a,g)|0;break}c[2171]=b;if((c[2181]|0)>>>0<b>>>0)c[2181]=b;d=g-h|0;e=c[2166]|0;i=9032|0;i=dw(c[(i&p)>>2]|0,c[(i&p)+4>>2]|0,d|0,((d|0)<0)<<31>>31|0)|0;j=G;if(!(0<(j|0)|0==(j|0)&e>>>0<i>>>0)?(f=c[2260]|0,(f|0)!=0):0){i=c[2261]|0;c[2260]=0;qc[f&15](i,e,0,d);c[2260]=f;c[2261]=i}e=rc[c[8788>>2]&127](a,g)|0;d=c[2260]|0;if((e|0)==0&(d|0)!=0){f=c[2166]|0;e=c[2261]|0;c[2260]=0;qc[d&15](e,f,0,b);c[2260]=d;c[2261]=e;e=rc[c[8788>>2]&127](a,g)|0}if(e){d=(lc[c[8792>>2]&127](e)|0)-h|0;d=(c[2166]|0)+d|0;c[2166]=d;if(d>>>0>(c[2176]|0)>>>0)c[2176]=d}else e=0}else e=a}else e=0}else e=qg(b,d)|0;while(0);return e|0}function sg(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var l=0,m=0,o=0,r=0,s=0,t=0.0,u=0.0,v=0,w=0.0,x=0.0,y=0,z=0,A=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,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0;$=i;i=i+96|0;if((i|0)>=(j|0))fa();Z=$+8|0;_=$;Y=$+16|0;if(!e){l=0;m=0;T=0}else{l=e&2;if(!l)m=0;else{J=c[(g&p)>>2]|0;m=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}l=l&255;T=(e&1|0)!=0}S=l<<24>>24==0;P=l<<24>>24!=0;Q=m+4|0;R=m+8|0;O=b+12|0;l=0;a:while(1){e=a[(f&n)>>0]|0;if(e<<24>>24==37){e=f;f=l}else if(e<<24>>24){e=f;do{e=e+1|0;J=a[(e&n)>>0]|0}while(!(J<<24>>24==37|J<<24>>24==0));Sk(b,f,e-f|0);if(!(a[(e&n)>>0]|0))break}else break;l=e+1|0;o=a[(l&n)>>0]|0;if(!(o<<24>>24)){U=10;break}r=o<<24>>24;v=0;s=0;y=0;o=0;A=0;B=0;b:while(1){switch(r|0){case 43:{z=s;A=1;break}case 32:{z=s;y=1;break}case 35:{v=1;z=s;break}case 33:{z=1;break}case 48:{z=s;B=1;break}case 45:{z=s;o=1;break}default:{C=v;z=s;break b}}s=e+2|0;J=a[(s&n)>>0]|0;r=J<<24>>24;if(!(J<<24>>24)){l=s;C=v;break}else{e=l;l=s;s=z}}if((r|0)!=42)if((r+-48|0)>>>0<10){s=0;do{s=r+-48+(s*10|0)|0;l=l+1|0;r=a[(l&n)>>0]|0}while((r+-48|0)>>>0<10);N=o;M=s&2147483647}else{N=o;M=0}else{if(S){J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}else s=Tk(m)|0;if((s|0)<0){o=1;s=(s|0)==-2147483648?0:0-s|0}r=l+1|0;l=r;r=a[(r&n)>>0]|0;N=o;M=s}do if((r|0)==46){s=l+1|0;o=a[(s&n)>>0]|0;if(o<<24>>24!=42){r=o<<24>>24;if((o+-48&255)<10)o=0;else{l=s;F=0;break}while(1){o=r+-48+(o*10|0)|0;l=l+2|0;J=a[(l&n)>>0]|0;r=J<<24>>24;if((J+-48&255)<10){J=s;s=l;l=J}else break}F=o&2147483647;break}if(S){J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}else s=Tk(m)|0;l=l+2|0;r=a[(l&n)>>0]|0;if((s|0)<0)F=(s|0)==-2147483648?-1:0-s|0;else F=s}else F=-1;while(0);do if((r|0)==108){s=l+1|0;r=a[(s&n)>>0]|0;if(r<<24>>24==108){r=l+2|0;l=r;r=a[(r&n)>>0]|0;s=1;break}else{l=s;r=r<<24>>24;s=0;break}}else s=0;while(0);v=0;while(1){o=48752+(v*6|0)|0;if((r|0)==(a[(o&n)>>0]|0)){r=o;o=v;U=46;break}v=v+1|0;if((v|0)>=23){L=48752;J=0;break}}if((U|0)==46){U=0;if(!(T|o>>>0<20))break;L=r;J=a[((o*6|0)&n)+48755>>0]|0}c:do switch(J&255|0){case 13:{s=c[(g&p)>>2]|0;e=c[(s&p)>>2]|0;c[(g&p)>>2]=s+4;s=c[(g&p)>>2]|0;r=c[(s&p)>>2]|0;c[(g&p)>>2]=s+4;s=c[(e+(r*72|0)&p)+12>>2]|0;if(s){o=s;while(1)if(!(a[(o&n)>>0]|0))break;else o=o+1|0;Sk(b,s,o-s&1073741823);Sk(b,28928,1)}o=c[(e+(r*72|0)&p)+16>>2]|0;if(!o)e=0;else{e=o;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;e=e-o&1073741823}Sk(b,o,e);y=f;r=0;e=0;s=0;break}case 14:{s=0;U=50;break}case 1:case 16:{U=50;break}case 4:case 3:case 2:{do if(!S){s=c[(Q&p)>>2]|0;if((c[(m&p)>>2]|0)>(s|0)){c[(Q&p)>>2]=s+1;t=+Ug(c[((c[(R&p)>>2]|0)+(s<<2)&p)>>2]|0);U=92;break}else{s=(F|0)<0?6:F;t=0.0;U=94;break}}else{U=c[(g&p)>>2]|0;c[(k&p)>>2]=c[(U&p)>>2];c[(k&p)+4>>2]=c[(U&p)+4>>2];t=+h[(k&q)>>3];c[(g&p)>>2]=U+8;U=92}while(0);if((U|0)==92){U=0;s=(F|0)<0?6:F;if(t<0.0){t=-t;K=45}else U=94}if((U|0)==94){U=0;if(!(A<<24>>24))K=y<<24>>24==0?0:32;else K=43}F=J<<24>>24==4;o=((F&(s|0)>0)<<31>>31)+s|0;s=o&4095;if(!s)u=.5;else{u=.5;do{s=s+-1|0;u=u*.1}while((s|0)>0)}E=J<<24>>24==2;if(E)t=t+u;h[(Z&q)>>3]=t;h[(_&q)>>3]=+h[(Z&q)>>3];if(+h[(Z&q)>>3]!=+h[(_&q)>>3]){y=48960;r=3;e=M;s=0}else{if(t>0.0){v=0;w=1.0;while(1){x=w*1.e+100;if(t>=x&(v|0)<351){v=v+100|0;w=x}else break}while(1){x=w*1.e+64;if(t>=x&(v|0)<351){v=v+64|0;w=x}else break}while(1){x=w*1.0e8;if(t>=x&(v|0)<351){v=v+8|0;w=x}else break}while(1){x=w*10.0;if((v|0)<351&t>=x){v=v+1|0;w=x}else break}t=t/w;if(t<1.0e-08)do{t=t*1.0e8;v=v+-8|0}while(t<1.0e-08);if(t<1.0)do{t=t*10.0;v=v+-1|0}while(t<1.0);if((v|0)>350){if(K<<24>>24==43)o=48976;else if(K<<24>>24==45)o=48968;else o=48984;f=o;while(1)if(!(a[(f&n)>>0]|0))break;else f=f+1|0;y=o;r=f-o&1073741823;e=M;s=0;break c}}else v=0;if(!E){t=u+t;if(!(t>=10.0))I=v;else{t=t*.1;I=v+1|0}}else I=v;if(F){s=(I|0)<-4|(o|0)<(I|0);F=C<<24>>24==0&1;o=o-(s?0:I)|0;s=s?3:2}else{F=z;s=J}H=s<<24>>24==3;f=H?0:I;v=(f|0)>0;s=jw(o|0,((o|0)<0)<<31>>31|0,M|0,((M|0)<0)<<31>>31|0)|0;v=jw(s|0,G|0,(v?f:0)|0,(v?((f|0)<0)<<31>>31:0)|0)|0;s=G;if((s|0)>0|(s|0)==0&v>>>0>55){v=jw(v|0,s|0,15,0)|0;v=qg(v,G)|0;if(!v){U=124;break a}else{y=v;J=v}}else{y=Y;J=0}v=((z&255)*10|0)+16|0;D=(z|C)&255|(o|0)>0;if(!(K<<24>>24))E=y;else{a[(y&n)>>0]=K;E=y+1|0}if((f|0)<0){a[(E&n)>>0]=48;e=2;s=E+1|0;A=f}else{C=~f;C=(C|0)>-1?C:-1;A=-2-C|0;C=f+C|0;r=E;while(1){if((v|0)<1)e=48;else{s=~~t;e=s+48&255;t=(t-+(s|0))*10.0;v=v+-1|0}a[(r&n)>>0]=e;if((f|0)>0){r=r+1|0;f=f+-1|0}else break}e=C+3|0;s=E+(C+2)|0}r=(D|0)==0;if(!r){a[(s&n)>>0]=46;s=E+e|0}if((A+1|0)<0){fw(s|0,48,~A|0)|0;s=s+~A|0;o=o+1+A|0}if((o|0)>0){e=s;f=o;while(1){f=f+-1|0;if((v|0)<1)A=48;else{E=~~t;A=E+48&255;t=(t-+(E|0))*10.0;v=v+-1|0}a[(e&n)>>0]=A;if((f|0)<=0)break;else e=e+1|0}s=s+o|0}d:do if(!(F<<24>>24==0|r)){while(1){r=s+-1|0;o=a[(r&n)>>0]|0;if(o<<24>>24==46)break;else if(o<<24>>24!=48)break d;a[(r&n)>>0]=0;s=r}if(!(z<<24>>24)){a[(r&n)>>0]=0;s=r;break}else{a[(s&n)>>0]=48;s=s+1|0;break}}while(0);if(H){r=s+1|0;a[(s&n)>>0]=a[((d[(L&n)+4>>0]|0)&n)+48912>>0]|0;o=s+2|0;if((I|0)<0){a[(r&n)>>0]=45;r=0-I|0}else{a[(r&n)>>0]=43;r=I}if((r|0)>99){a[(o&n)>>0]=((r|0)/100|0)+48;f=4;e=5;o=s+3|0;r=(r|0)%100|0}else{f=3;e=4}a[(o&n)>>0]=((r|0)/10|0)+48;a[(s+f&n)>>0]=((r|0)%10|0)+48;s=s+e|0}a[(s&n)>>0]=0;e=y;r=s-e|0;if(!(N<<24>>24==0&B<<24>>24!=0&(M|0)>(r|0))){e=M;s=J;break c}o=M-r|0;if((r|0)>=0){f=M;while(1){a[(y+f&n)>>0]=a[(y+(f-o)&n)>>0]|0;if((f|0)>(o|0))f=f+-1|0;else break}}if((M|0)==(r|0)){r=M;e=M;s=J;break c}fw(y+(K<<24>>24!=0&1)|0,48,M+e-s|0)|0;r=M;e=M;s=J}break}case 5:{if(S){r=c[(O&p)>>2]|0;e=c[(g&p)>>2]|0;y=c[(e&p)>>2]|0;c[(g&p)>>2]=e+4;c[(y&p)>>2]=r;y=f;r=0;e=0;s=0}else{y=f;r=0;e=0;s=0}break}case 8:{a[(Y&n)>>0]=37;y=Y;r=1;e=M;s=0;break}case 9:{if(!S){e=Uk(m)|0;if(!e)s=0;else s=a[(e&n)>>0]|0}else{J=c[(g&p)>>2]|0;s=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4}if((F|0)>1){o=F+-1|0;e=M-o|0;if(!((e|0)<2|N<<24>>24!=0)){Vk(b,e+-1|0,32);e=0}f=s&255;Vk(b,o,f)}else{f=s&255;e=M}a[(Y&n)>>0]=f;y=Y;r=1;s=0;break}case 7:case 6:{if(P)o=Uk(m)|0;else{I=c[(g&p)>>2]|0;o=c[(I&p)>>2]|0;c[(g&p)>>2]=I+4}if(!o){f=10360;s=0}else{f=o;s=J<<24>>24!=7|P?0:o}if((F|0)>-1){if((F|0)>0)o=0;else{y=f;r=0;e=M;break c}while(1){r=o+1|0;if(!(a[(f+o&n)>>0]|0)){y=f;r=o;e=M;break c}if((r|0)<(F|0))o=r;else{y=f;e=M;break}}}else{if(!f){y=0;r=0;e=M;break c}else o=f;while(1)if(!(a[(o&n)>>0]|0))break;else o=o+1|0;y=f;r=o-f&1073741823;e=M;break c}break}case 15:case 11:case 10:{C=J<<24>>24==15?34:39;if(S){I=c[(g&p)>>2]|0;s=c[(I&p)>>2]|0;c[(g&p)>>2]=I+4}else s=Uk(m)|0;y=(s|0)==0;if(y)s=J<<24>>24==11?20304:48992;e:do if(!F){B=0;r=0}else{v=C&255;o=0;e=F;r=0;while(1){f=a[(s+o&n)>>0]|0;if(!(f<<24>>24)){B=o;break e}r=((f<<24>>24|0)==(v|0)&1)+r|0;o=o+1|0;e=e+-1|0;if(!e){B=o;break}}}while(0);z=J<<24>>24==11&(y^1);o=((z&1)<<1|1)+B+r|0;if((o|0)>70){r=qg(o,((o|0)<0)<<31>>31)|0;if(!r){U=197;break a}else{y=r;A=r}}else{y=Y;A=0}if(z){a[(y&n)>>0]=C;o=1}else o=0;if((B|0)>0){v=C&255;e=0;do{r=a[(s+e&n)>>0]|0;f=o+1|0;a[(y+o&n)>>0]=r;if((r<<24>>24|0)==(v|0)){a[(y+f&n)>>0]=r;o=o+2|0}else o=f;e=e+1|0}while((e|0)!=(B|0))}if(z){a[(y+o&n)>>0]=C;o=o+1|0}a[(y+o&n)>>0]=0;r=o;e=M;s=A;break}case 12:{J=c[(g&p)>>2]|0;e=c[(J&p)>>2]|0;c[(g&p)>>2]=J+4;if((e|0)!=0?(X=c[(e&p)+4>>2]|0,(X|0)!=0):0){Sk(b,c[(e&p)>>2]|0,X);y=f;r=0;e=0;s=0}else{y=f;r=0;e=0;s=0}break}default:break a}while(0);if((U|0)==50){U=0;do if(!(a[(L&n)+2>>0]&1)){if(P){f=Tk(m)|0;v=G;E=0;break}if(!(s<<24>>24)){v=c[(g&p)>>2]|0;f=c[(v&p)>>2]|0;c[(g&p)>>2]=v+4;v=0;E=0;break}else{E=c[(g&p)>>2]|0;v=E;f=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;c[(g&p)>>2]=E+8;E=0;break}}else{do if(!P)if(!(s<<24>>24)){r=c[(g&p)>>2]|0;s=c[(r&p)>>2]|0;c[(g&p)>>2]=r+4;r=((s|0)<0)<<31>>31;break}else{I=c[(g&p)>>2]|0;r=I;s=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;c[(g&p)>>2]=I+8;break}else{s=Tk(m)|0;r=G}while(0);if((r|0)<0){f=dw(0,0,s|0,r|0)|0;v=G;E=45;break}if(!(A<<24>>24)){f=s;v=r;E=y<<24>>24==0?0:32}else{f=s;v=r;E=43}}while(0);D=(f|0)==0&(v|0)==0;if(!(B<<24>>24))A=F;else{A=M-(E<<24>>24!=0&1)|0;A=(F|0)<(A|0)?A:F}if((A|0)>=60){s=A+10|0;r=qg(s,((s|0)<0)<<31>>31)|0;if(!r){U=69;break}else{e=s;s=r;o=r}}else{e=70;s=0;o=Y}B=o+(e+-1)|0;if(J<<24>>24==16){r=uw(f|0,v|0,10,0)|0;if(!(r>>>0<=3?(J=tw(f|0,v|0,10,0)|0,J=uw(J|0,G|0,10,0)|0,!((J|0)==1&(G|0)==0)):0))r=0;J=r<<1;a[(o+e+-2&n)>>0]=a[((J|1)&n)+48896>>0]|0;r=o+(e+-3)|0;a[(r&n)>>0]=a[(J&n)+48896>>0]|0}else r=B;e=d[(L&n)+4>>0]|0;y=d[(L&n)+1>>0]|0;while(1){J=uw(f|0,v|0,y|0,0)|0;o=r+-1|0;a[(o&n)>>0]=a[(J+e&n)+48912>>0]|0;f=tw(f|0,v|0,y|0,0)|0;v=G;if((f|0)==0&(v|0)==0)break;else r=o}f=A-B+o|0;if((f|0)>0){e=r;r=o;while(1){o=e+-2|0;a[(o&n)>>0]=48;f=f+-1|0;if((f|0)<=0)break;else{e=r;r=o}}}if(E<<24>>24){o=r+-2|0;a[(o&n)>>0]=E}if((!(D|C<<24>>24==0)?(V=a[(L&n)+5>>0]|0,V<<24>>24!=0):0)?(W=48952+(V&255)|0,!(V<<24>>24==3|V<<24>>24==6)):0){f=a[(W&n)>>0]|0;r=W;do{o=o+-1|0;a[(o&n)>>0]=f;r=r+1|0;f=a[(r&n)>>0]|0}while(f<<24>>24!=0)}y=o;r=B-o|0;e=M}o=e-r|0;f=(o|0)<1;if(!(f|N<<24>>24!=0))Vk(b,o,32);Sk(b,y,r);if(!(f|N<<24>>24==0))Vk(b,o,32);if(s)Wc(s);f=l+1|0;l=y}if((U|0)==10)Sk(b,48744,1);else if((U|0)==69){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}else if((U|0)==124){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}else if((U|0)==197){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0}i=$;return}function tg(b){b=b|0;var d=0,e=0,f=0,g=0,h=0;f=b+8|0;d=c[(f&p)>>2]|0;do if(((d|0)!=0?(h=b+12|0,a[(d+(c[(h&p)>>2]|0)&n)>>0]=0,e=a[(b&n)+24>>0]|0,e<<24>>24!=0):0)?(g=b+4|0,(c[(f&p)>>2]|0)==(c[(g&p)>>2]|0)):0){if(e<<24>>24==1){d=(c[(h&p)>>2]|0)+1|0;d=mh(c[(b&p)>>2]|0,d,((d|0)<0)<<31>>31)|0}else d=Tc((c[(h&p)>>2]|0)+1|0)|0;c[(f&p)>>2]=d;if(!d){a[(b&n)+25>>0]=1;c[(b&p)+16>>2]=0;break}else{kw(d|0,c[(g&p)>>2]|0,(c[(h&p)>>2]|0)+1|0)|0;break}}while(0);return c[(f&p)>>2]|0}function ug(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;h=d+52|0;c[(h&p)>>2]=e;a:do if(!f){c[(h&p)>>2]=e;e=c[(d&p)+236>>2]|0;if(e){h=e+8|0;if(!(b[(h&o)>>1]&9312)){b[(h&o)>>1]=1;break}else{vg(e);break}}}else{l=d+236|0;do if(!(c[(l&p)>>2]|0)){h=mh(d,40,0)|0;if(!h){c[(l&p)>>2]=h;break a}else{e=h+0|0;k=e+40|0;do{a[(e&n)>>0]=0;e=e+1|0}while((e|0)<(k|0));b[(h&o)+8>>1]=1;c[(h&p)+32>>2]=d;c[(l&p)>>2]=h;break}}while(0);c[(m&p)>>2]=g;h=Wk(d,f,m)|0;e=c[(l&p)>>2]|0;if(e)Xg(e,h,-1,1,75)|0}while(0);i=q;return}function vg(a){a=a|0;var d=0,e=0;e=a+8|0;d=b[(e&o)>>1]|0;if(d&8192){Yk(a,c[(a&p)>>2]|0)|0;d=b[(e&o)>>1]|0}d=d&65535;do if(!(d&1024)){if(d&32){Zk(c[(a&p)>>2]|0);break}if(d&64){a=c[(a&p)>>2]|0;d=(c[(a&p)>>2]|0)+180|0;c[(a&p)+4>>2]=c[(d&p)>>2];c[(d&p)>>2]=a}}else cc[c[(a&p)+36>>2]&31](c[(a&p)+16>>2]|0);while(0);b[(e&o)>>1]=1;return}function wg(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;e=Vh(b,d)|0;do if((e|0)==1){f=mh(a,536,0)|0;if(!f){ug(a,7,15776,g);e=0;break}fw(f|0,0,536)|0;c[(f&p)>>2]=b;if(!(_k(f)|0)){mg(a,c[(f&p)+4>>2]|0);Ch(f);mg(a,f);h=7;break}else{b=c[(f&p)+12>>2]|0;e=f+4|0;c[(g&p)>>2]=c[(e&p)>>2];ug(a,b,10344,g);mg(a,c[(e&p)>>2]|0);Ch(f);mg(a,f);e=0;break}}else h=7;while(0);do if((h|0)==7)if((e|0)<0){c[(g&p)>>2]=d;ug(a,1,47448,g);e=0;break}else{e=c[((c[(b&p)+16>>2]|0)+(e<<4)&p)+4>>2]|0;break}while(0);i=k;return e|0}function xg(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;k=c[(a&p)+4>>2]|0;c[(k&p)+4>>2]=c[(a&p)>>2];j=k+22|0;if(!(b[(j&o)>>1]&2)){if((f|0)<0)f=(c[(k&p)+32>>2]|0)-(c[(k&p)+36>>2]|0)|0;if(((d+-512|0)>>>0<65025?(d+-1&d|0)==0:0)?(c[(k&p)+32>>2]=d,h=k+80|0,i=c[(h&p)>>2]|0,(i|0)!=0):0){a=i+-4|0;c[(h&p)>>2]=a;$k(a);c[(h&p)>>2]=0}h=k+32|0;a=al(c[(k&p)>>2]|0,h,f)|0;c[(k&p)+36>>2]=(c[(h&p)>>2]|0)-(f&65535);if(g)b[(j&o)>>1]=e[(j&o)>>1]|0|2}else a=8;return a|0}function yg(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0;T=i;i=i+16|0;if((i|0)>=(j|0))fa();N=T;M=T+12|0;L=T+8|0;R=c[(f&p)+4>>2]|0;I=R+4|0;c[(I&p)>>2]=c[(f&p)>>2];O=f+8|0;l=a[(O&n)>>0]|0;do if(l<<24>>24!=2?(P=(g|0)!=0,l<<24>>24!=1|P):0){Q=R+22|0;l=b[(Q&o)>>1]|0;if(!((l&1)!=0&P)){if(P)if((a[(R&n)+20>>0]|0)!=2&(l&64)==0)S=8;else S=7;else if(!(l&64))S=8;else S=7;a:do if((S|0)==7){h=c[(R&p)+76>>2]|0;S=12}else if(((S|0)==8?(g|0)>1:0)?(k=c[(R&p)+72>>2]|0,(k|0)!=0):0)do{l=c[(k&p)>>2]|0;if((l|0)!=(f|0)){h=l;S=12;break a}k=c[(k&p)+12>>2]|0}while((k|0)!=0);while(0);if((S|0)==12?(c[(h&p)>>2]|0)!=0:0){h=262;break}h=bl(f,1,1)|0;if(!h){l=e[(Q&o)>>1]|0;b[(Q&o)>>1]=l&65527;K=R+44|0;if(!(c[(K&p)>>2]|0))b[(Q&o)>>1]=l|8;E=R+12|0;u=R+32|0;v=R+36|0;w=R+17|0;x=R+18|0;y=R+80|0;z=R+24|0;A=R+26|0;B=R+28|0;C=R+30|0;D=R+21|0;F=R+20|0;G=(g|0)>1;h=0;b:while(1){c:do if(!(c[(E&p)>>2]|0)){h=cl(c[(R&p)>>2]|0)|0;if(!h){h=dl(R,1,M,0)|0;if(!h){t=c[(M&p)>>2]|0;q=c[(t&p)+56>>2]|0;l=d[(q&n)+29>>0]<<16|d[(q&n)+28>>0]<<24|d[(q&n)+30>>0]<<8|d[(q&n)+31>>0];m=c[(R&p)>>2]|0;r=c[(m&p)+24>>2]|0;if((l|0)!=0?(Zv(q+24|0,q+92|0,4)|0)==0:0)s=l;else s=r;d:do if((s|0)>0){e:do if(!(Zv(q,44680,16)|0)){if((d[(q&n)+18>>0]|0)>2)b[(Q&o)>>1]=e[(Q&o)>>1]|1;l=a[(q&n)+19>>0]|0;if((l&255)<=2){do if(l<<24>>24==2){if(b[(Q&o)>>1]&16)break;c[(L&p)>>2]=0;h=el(m,L)|0;if(h){S=48;break e}if(c[(L&p)>>2]|0)break;if(!t){h=0;continue b}Bg(c[(t&p)+68>>2]|0);h=0;continue b}while(0);if(Zv(q+21|0,47408,3)|0){h=26;S=48;break}k=d[(q&n)+17>>0]<<16|d[(q&n)+16>>0]<<8;if((k+16777215&k|0)!=0|k>>>0>65536|k>>>0<257){h=26;S=48;break}m=d[(q&n)+20>>0]|0;l=k-m|0;if((k|0)==(c[(u&p)>>2]|0)){if((s|0)>(r|0)?(c[((c[(I&p)>>2]|0)&p)+24>>2]&65536|0)==0:0){c[(N&p)>>2]=55672;c[(N&p)+4>>2]=10788;bd(11,13600,N);h=11;S=48;break}if(l>>>0<480){h=26;S=48;break}c[(u&p)>>2]=k;c[(v&p)>>2]=l;a[(w&n)>>0]=(d[(q&n)+53>>0]<<16|d[(q&n)+52>>0]<<24|d[(q&n)+54>>0]<<8|d[(q&n)+55>>0]|0)!=0&1;a[(x&n)>>0]=(d[(q&n)+65>>0]<<16|d[(q&n)+64>>0]<<24|d[(q&n)+66>>0]<<8|d[(q&n)+67>>0]|0)!=0&1;break d}if(t)Bg(c[(t&p)+68>>2]|0);c[(v&p)>>2]=l;c[(u&p)>>2]=k;l=c[(y&p)>>2]|0;if(l){h=l+-4|0;c[(y&p)>>2]=h;$k(h);c[(y&p)>>2]=0}h=al(c[(R&p)>>2]|0,u,m)|0}else{h=26;S=48}}else{h=26;S=48}while(0);if((S|0)==48){S=0;if(t)Bg(c[(t&p)+68>>2]|0);c[(E&p)>>2]=0}if(!h){h=0;continue b}else{S=77;break c}}else l=c[(v&p)>>2]|0;while(0);h=((((l<<6)+-768|0)>>>0)/255|0)+65513|0;k=h&65535;b[(z&o)>>1]=k;m=((((l<<5)+-384|0)>>>0)/255|0)+65513&65535;b[(A&o)>>1]=m;b[(B&o)>>1]=l+65501;b[(C&o)>>1]=m;a[(D&n)>>0]=(k&65535)>127?127:h&255;c[(E&p)>>2]=t;c[(K&p)>>2]=s;h=0;continue b}else l=0}else l=0}else{f:do if((h|0)==0&P){if(b[(Q&o)>>1]&1){h=8;S=77;break c}s=c[(R&p)>>2]|0;h=c[(s&p)+40>>2]|0;g:do if(!h){a[(s&n)+21>>0]=(a[((c[(f&p)>>2]|0)&n)+64>>0]|0)==2&1;t=s+16|0;if((a[(t&n)>>0]|0)==1){m=s+208|0;l=c[(m&p)>>2]|0;do if(!l){h=fl(s,2)|0;h:do if((h|0)==0&G){l=s+176|0;k=s+180|0;while(1){h=fl(s,4)|0;if((h|0)!=5)break h;if(!(lc[c[(l&p)>>2]&127](c[(k&p)>>2]|0)|0)){h=5;break g}}}while(0);if(h)break g}else{do if(a[(s&n)+4>>0]|0){if(a[(l&n)+43>>0]|0)break;h=fl(s,4)|0;if(h)break g;l=c[(m&p)>>2]|0;k=l+43|0;if(!(a[(k&n)>>0]|0)){h=c[(l&p)+4>>2]|0;pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,(b[(l&o)+40>>1]|0)+3|0,1,5)|0;l=c[(m&p)>>2]|0}a[(k&n)>>0]=1}while(0);if(a[(l&n)+46>>0]|0){h=8;break g}k=l+43|0;if((a[(k&n)>>0]|0)==0?(H=c[(l&p)+4>>2]|0,H=pc[c[((c[(H&p)>>2]|0)&p)+56>>2]&31](H,0,1,10)|0,(H|0)!=0):0){h=H;break g}h=l+44|0;a[(h&n)>>0]=1;if(!(Zv(l+52|0,c[(c[(l&p)+32>>2]&p)>>2]|0,48)|0))break;if(!(a[(k&n)>>0]|0)){k=c[(l&p)+4>>2]|0;pc[c[((c[(k&p)>>2]|0)&p)+56>>2]&31](k,0,1,9)|0}a[(h&n)>>0]=0;h=517;break g}while(0);a[(t&n)>>0]=2;h=c[(s&p)+24>>2]|0;c[(s&p)+36>>2]=h;c[(s&p)+32>>2]=h;c[(s&p)+28>>2]=h;h=s+72|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0}h=Cg(R)|0;break f}while(0);l=(h|0)==0;break c}while(0);if(!h){h=0;break b}else l=0}while(0);if((S|0)==77){S=0;l=(h|0)==0}if((a[(F&n)>>0]|0)==0?(J=c[(E&p)>>2]|0,(J|0)!=0):0){c[(E&p)>>2]=0;Bg(c[(J&p)+68>>2]|0)}if((h&255|0)!=5){S=86;break}if(a[(F&n)>>0]|0){S=86;break}if(!(gl(R)|0)){S=86;break}}if((S|0)==86)if(!l){S=96;break}if((a[(O&n)>>0]|0)==0?(H=R+40|0,c[(H&p)>>2]=(c[(H&p)>>2]|0)+1,(a[(f&n)+9>>0]|0)!=0):0){a[(f&n)+40>>0]=1;H=R+72|0;c[(f&p)+44>>2]=c[(H&p)>>2];c[(H&p)>>2]=f+32}l=P?2:1;a[(O&n)>>0]=l;if((l&255)>(d[(F&n)>>0]|0))a[(F&n)>>0]=l;if(P){l=c[(E&p)>>2]|0;c[(R&p)+76>>2]=f;k=e[(Q&o)>>1]|0;b[(Q&o)>>1]=G?k|32:k&65503;k=l+56|0;H=c[(k&p)>>2]|0;if((c[(K&p)>>2]|0)!=(d[(H&n)+29>>0]<<16|d[(H&n)+28>>0]<<24|d[(H&n)+30>>0]<<8|d[(H&n)+31>>0]|0)){h=Gg(c[(l&p)+68>>2]|0)|0;if(!h){h=c[(k&p)>>2]|0;S=c[(K&p)>>2]|0;a[(h&n)+28>>0]=S>>>24;a[(h&n)+29>>0]=S>>>16;a[(h&n)+30>>0]=S>>>8;a[(h&n)+31>>0]=S;h=0;S=96}}else S=96}}}else h=8}else{h=0;S=96}while(0);if((S|0)==96)if((h|0)==0&(g|0)!=0)h=hl(c[(R&p)>>2]|0,c[((c[(f&p)>>2]|0)&p)+496>>2]|0)|0;i=T;return h|0}function zg(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();u=y;w=y+8|0;c[(w&p)>>2]=0;t=h&1;a:do if(!f){c[(u&p)>>2]=46865;c[(u&p)+4>>2]=10788;bd(11,13600,u);k=11}else{a[(e&n)+23>>0]=1;h=c[(e&p)+40>>2]|0;do if(!h){s=e+204|0;h=c[(s&p)>>2]|0;h=ac[c[8876>>2]&63](c[(h&p)+40>>2]|0,f,d[(h&n)+29>>0]&3)|0;if(!h){m=c[(s&p)>>2]|0;if((a[(m&n)+29>>0]|0)!=2){l=m+8|0;h=c[(l&p)>>2]|0;b:do if(!h)x=11;else{while(1){if((b[(h&o)+26>>1]|0)==0?(b[(h&o)+24>>1]&4)==0:0)break;h=c[(h&p)+36>>2]|0;if(!h){x=11;break b}}c[(l&p)>>2]=h;r=h;x=14}while(0);c:do if((x|0)==11?(c[(l&p)>>2]=0,q=c[(m&p)+4>>2]|0,(q|0)!=0):0){h=q;do{if(!(b[(h&o)+26>>1]|0)){r=h;x=14;break c}h=c[(h&p)+36>>2]|0}while((h|0)!=0)}while(0);if((x|0)==14?(k=rc[c[(m&p)+32>>2]&127](c[(m&p)+36>>2]|0,r)|0,!((k|0)==0|(k|0)==5)):0)break;k=ac[c[8876>>2]&63](c[(m&p)+40>>2]|0,f,2)|0;if(!k){k=7;break}}else k=0}else k=h;m=il(c[(s&p)>>2]|0,f,k)|0;c[(g&p)>>2]=m;if(!m)k=7;else{h=m+16|0;k=(t|0)!=0;if(!((c[(h&p)>>2]|0)==0|k)){k=e+184|0;c[(k&p)>>2]=(c[(k&p)>>2]|0)+1;k=0;break a}c[(h&p)>>2]=e;do if((f|0)>=0?(v=e+152|0,(((c[2514]|0)/(c[(v&p)>>2]|0)|0)+1|0)!=(f|0)):0){if(((a[(e&n)+15>>0]|0)==0?!((c[(e&p)+24>>2]|0)>>>0<f>>>0|k):0)?(c[(c[(e&p)+60>>2]&p)>>2]|0)!=0:0){k=c[(e&p)+208>>2]|0;if(!k)k=0;else{k=kl(k,f,w)|0;if(k)break;k=c[(w&p)>>2]|0}v=e+188|0;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;k=ll(m,k)|0;if(!k){k=0;break a}else break}if((c[(e&p)+156>>2]|0)>>>0<f>>>0)k=13;else{if(k){k=c[3164]|0;if(k)nc[k&3]();if((c[(e&p)+28>>2]|0)>>>0>=f>>>0)bi(c[(e&p)+56>>2]|0,f)|0;jl(e,f)|0;k=c[3166]|0;if(k)nc[k&3]()}fw(c[(m&p)+4>>2]|0,0,c[(v&p)>>2]|0)|0;k=0;break a}}else x=21;while(0);if((x|0)==21){c[(u&p)>>2]=46945;c[(u&p)+4>>2]=10788;bd(11,13600,u);k=11}ml(m)}}else k=h;while(0);if((c[(e&p)+120>>2]|0)==0?(c[((c[(e&p)+204>>2]|0)&p)+12>>2]|0)==0:0)nl(e);c[(g&p)>>2]=0}while(0);i=y;return k|0}function Ag(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();x=y;v=b+4|0;r=c[((c[(v&p)>>2]|0)&p)+4>>2]|0;w=c[(r&p)>>2]|0;u=b+24|0;q=c[((c[((c[(u&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;r=c[(r&p)+32>>2]|0;s=(q|0)<(r|0)?q:r;t=((q|0)<0)<<31>>31;m=sw(q|0,t|0,d|0,0)|0;o=G;if((q|0)==(r|0))b=0;else b=(a[(w&n)+15>>0]|0)==0?0:8;a:do if((b|0)==0&(q|0)>0){d=dw(m|0,o|0,q|0,t|0)|0;l=((r|0)<0)<<31>>31;k=(f|0)==0;h=G;b=r;while(1){c[(x&p)>>2]=0;f=qw(d|0,h|0,r|0,l|0)|0;if((f|0)!=(((c[2514]|0)>>>0)/(b>>>0)|0|0)){b=zg(w,f+1|0,x,0)|0;g=c[(x&p)>>2]|0;if(!b){b=Gg(g)|0;if(!b){z=rw(d|0,h|0,q|0,t|0)|0;f=c[(g&p)+4>>2]|0;b=rw(d|0,h|0,r|0,l|0)|0;kw(f+b|0,e+z|0,s|0)|0;a[(c[(g&p)+8>>2]&n)>>0]=0;if((d|0)==0&(h|0)==0&k){z=c[((c[((c[(u&p)>>2]|0)&p)+4>>2]|0)&p)+44>>2]|0;a[(f+b&n)+28>>0]=z>>>24;a[(f+b&n)+29>>0]=z>>>16;a[(f+b&n)+30>>0]=z>>>8;a[(f+b&n)+31>>0]=z;b=0}else b=0}}if(g)Bg(g)}else b=0;d=jw(d|0,h|0,r|0,l|0)|0;f=G;if(!((b|0)==0&((f|0)<(o|0)|(f|0)==(o|0)&d>>>0<m>>>0)))break a;h=f;b=c[((c[((c[(v&p)>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0}}while(0);i=y;return b|0}function Bg(a){a=a|0;var d=0,e=0,f=0;d=c[(a&p)+16>>2]|0;if(!(b[(a&o)+24>>1]&64)){ol(a);a=c[(d&p)+120>>2]|0}else{f=d+120|0;e=(c[(f&p)>>2]|0)+-1|0;c[(f&p)>>2]=e;f=d+136|0;c[(a&p)+12>>2]=c[(f&p)>>2];c[(f&p)>>2]=a;a=e}if((a|0)==0?(c[((c[(d&p)+204>>2]|0)&p)+12>>2]|0)==0:0)nl(d);return}function Cg(d){d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;i=d+44|0;if(!(c[(i&p)>>2]|0)){j=c[(d&p)+12>>2]|0;k=c[(j&p)+56>>2]|0;f=Gg(c[(j&p)+68>>2]|0)|0;if(!f){f=k+0|0;g=44680|0;h=f+16|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=d+32|0;a[(k&n)+16>>0]=(c[(f&p)>>2]|0)>>>8;a[(k&n)+17>>0]=(c[(f&p)>>2]|0)>>>16;a[(k&n)+18>>0]=1;a[(k&n)+19>>0]=1;a[(k&n)+20>>0]=(c[(f&p)>>2]|0)-(c[(d&p)+36>>2]|0);a[(k&n)+21>>0]=64;a[(k&n)+22>>0]=32;a[(k&n)+23>>0]=32;f=k+24|0;h=f+76|0;do{a[(f&n)>>0]=0;f=f+1|0}while((f|0)<(h|0));pl(j,13);f=d+22|0;b[(f&o)>>1]=e[(f&o)>>1]|0|2;f=a[(d&n)+17>>0]|0;a[(k&n)+52>>0]=0;a[(k&n)+53>>0]=0;a[(k&n)+54>>0]=0;a[(k&n)+55>>0]=f;f=a[(d&n)+18>>0]|0;a[(k&n)+64>>0]=0;a[(k&n)+65>>0]=0;a[(k&n)+66>>0]=0;a[(k&n)+67>>0]=f;c[(i&p)>>2]=1;a[(k&n)+31>>0]=1;f=0}}else f=0;return f|0}function Dg(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;g=c[(b&p)+4>>2]|0;c[(g&p)+4>>2]=c[(b&p)>>2];b=c[(g&p)+12>>2]|0;f=c[(b&p)+56>>2]|0;b=Gg(c[(b&p)+68>>2]|0)|0;if((b|0)==0?(i=d<<2,a[(f+i&n)+36>>0]=e>>>24,a[(f+i&n)+37>>0]=e>>>16,a[(f+i&n)+38>>0]=e>>>8,h=e&255,a[(f+i&n)+39>>0]=h,(d|0)==7):0)a[(g&n)+18>>0]=h;return b|0}function Eg(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0;h=a+20|0;b=c[(h&p)>>2]|0;d=(b|0)>0;if(d){e=c[(a&p)+16>>2]|0;g=0;do{f=c[(e+(g<<4)&p)+4>>2]|0;if(f)c[((c[(f&p)+4>>2]|0)&p)+4>>2]=c[(f&p)>>2];g=g+1|0}while((g|0)!=(b|0));if(d){g=a+16|0;f=0;do{d=c[((c[(g&p)>>2]|0)+(f<<4)&p)+12>>2]|0;if(d){ql(d);b=c[(h&p)>>2]|0}f=f+1|0}while((f|0)<(b|0))}}b=a+24|0;c[(b&p)>>2]=c[(b&p)>>2]&-3;rl(a);sl(a);return}function Fg(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;h=c[(d&p)+4>>2]|0;k=h+22|0;g=e[(k&o)>>1]|0;b[(k&o)>>1]=(f|0)==1?g|16:g&65519;g=yg(d,0)|0;do if(!g){h=h+12|0;i=c[((c[(h&p)>>2]|0)&p)+56>>2]|0;j=i+18|0;g=a[(j&n)>>0]|0;f=f&255;if(g<<24>>24==f<<24>>24?(a[(i&n)+19>>0]|0)==g<<24>>24:0){g=0;break}g=yg(d,2)|0;if(!g){g=Gg(c[((c[(h&p)>>2]|0)&p)+68>>2]|0)|0;if(!g){a[(j&n)>>0]=f;a[(i&n)+19>>0]=f;g=0}}}while(0);b[(k&o)>>1]=e[(k&o)>>1]&65519;return g|0}function Gg(a){a=a|0;var b=0;b=c[(a&p)+16>>2]|0;if((c[(b&p)+148>>2]|0)>>>0>(c[(b&p)+152>>2]|0)>>>0)a=tl(a)|0;else a=ul(a)|0;return a|0}function Hg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+32|0;if((i|0)>=(j|0))fa();u=A+16|0;v=A;k=A+12|0;m=A+8|0;g=c[(b&p)+40>>2]|0;a:do if(!g){z=b+16|0;if((d[(z&n)>>0]|0)>=3){b:do if(!(a[(b&n)+15>>0]|0)){if(c[(b&p)+208>>2]|0){l=b+204|0;h=vl(c[(l&p)>>2]|0)|0;c[(m&p)>>2]=0;if(!h){g=zg(b,1,m,0)|0;h=c[(m&p)>>2]|0;c[(h&p)+12>>2]=0;if(h){k=h;y=9}}else{k=0;y=9}if((y|0)==9){g=wl(b,h,c[(b&p)+24>>2]|0,1)|0;if(k)Bg(k)}if(g)break a;h=c[(l&p)>>2]|0;g=c[(h&p)>>2]|0;if(!g)break;while(1){xl(g);g=c[(h&p)>>2]|0;if(!g)break b}}l=b+18|0;if((a[(l&n)>>0]|0)==0?(c[(b&p)+24>>2]|0)!=0:0){g=zg(b,1,k,0)|0;k=c[(k&p)>>2]|0;if(!g){g=Gg(k)|0;if(!g){yl(k);a[(l&n)>>0]=1;g=0}}if(k)Bg(k);if(g)break a}if(((e|0)!=0?(a[(b&n)+5>>0]|0)!=4:0)?(x=b+64|0,t=c[(x&p)>>2]|0,(c[(t&p)>>2]|0)!=0):0){a[(b&n)+19>>0]=1;k=a[(e&n)>>0]|0;if(!(k<<24>>24)){l=0;h=0}else{l=0;h=0;do{l=(k<<24>>24)+l|0;h=h+1|0;k=a[(e+h&n)>>0]|0}while(k<<24>>24!=0)}s=b+72|0;g=s;k=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if(!(a[(b&n)+8>>0]|0))m=g;else{if((k|0)==0&(g|0)==0){k=0;g=0}else{g=jw(k|0,g|0,-1,-1)|0;k=c[(b&p)+148>>2]|0;g=qw(g|0,G|0,k|0,0)|0;g=jw(g|0,G|0,1,0)|0;k=sw(g|0,G|0,k|0,0)|0;g=G}m=s;c[(m&p)>>2]=k;c[(m&p)+4>>2]=g;m=g}g=((c[2514]|0)/(c[(b&p)+152>>2]|0)|0)+1|0;a[(u&n)>>0]=g>>>24;o=u+1|0;a[(o&n)>>0]=g>>>16;q=u+2|0;a[(q&n)>>0]=g>>>8;r=u+3|0;a[(r&n)>>0]=g;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,u,4,k,m)|0;if(g)break a;g=c[(x&p)>>2]|0;m=jw(k|0,m|0,4,0)|0;k=G;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,e,h,m,k)|0;if(g)break a;g=c[(x&p)>>2]|0;m=jw(m|0,k|0,h|0,((h|0)<0)<<31>>31|0)|0;k=G;a[(u&n)>>0]=h>>>24;a[(o&n)>>0]=h>>>16;a[(q&n)>>0]=h>>>8;a[(r&n)>>0]=h;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,u,4,m,k)|0;if(g)break a;t=c[(x&p)>>2]|0;g=jw(m|0,k|0,4,0)|0;a[(u&n)>>0]=l>>>24;a[(o&n)>>0]=l>>>16;a[(q&n)>>0]=l>>>8;a[(r&n)>>0]=l;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,u,4,g,G)|0;if(g)break a;t=c[(x&p)>>2]|0;g=jw(m|0,k|0,8,0)|0;g=tc[c[((c[(t&p)>>2]|0)&p)+12>>2]&31](t,14808,8,g,G)|0;if(g)break a;t=h+20|0;g=s;t=jw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,t|0,((t|0)<0)<<31>>31|0)|0;g=s;c[(g&p)>>2]=t;c[(g&p)+4>>2]=G;g=c[(x&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,v)|0;if(g)break a;t=v;r=c[(t&p)+4>>2]|0;g=s;h=c[(g&p)>>2]|0;g=c[(g&p)+4>>2]|0;if((r|0)>(g|0)|((r|0)==(g|0)?(c[(t&p)>>2]|0)>>>0>h>>>0:0)?(w=c[(x&p)>>2]|0,w=ac[c[((c[(w&p)>>2]|0)&p)+16>>2]&63](w,h,g)|0,(w|0)!=0):0){g=w;break a}}g=zl(b,0)|0;if(g)break a;h=b+204|0;g=Al(b,vl(c[(h&p)>>2]|0)|0)|0;if(g)break a;g=c[(h&p)>>2]|0;h=c[(g&p)>>2]|0;if(h)do{xl(h);h=c[(g&p)>>2]|0}while((h|0)!=0);h=c[(b&p)+24>>2]|0;if(h>>>0>(c[(b&p)+32>>2]|0)>>>0){g=Bl(b,h-((h|0)==(((c[2514]|0)/(c[(b&p)+152>>2]|0)|0)+1|0)&1)|0)|0;if(!(g|f))y=46}else if(!f)y=46;else break;if((y|0)==46)g=Ig(b,e)|0;if(g)break a}else{g=c[(b&p)+88>>2]|0;if(g)do{c[(g&p)+16>>2]=1;g=c[(g&p)+44>>2]|0}while((g|0)!=0)}while(0);if(!(c[(b&p)+208>>2]|0)){a[(z&n)>>0]=5;g=0}else g=0}else g=0}while(0);i=A;return g|0}function Ig(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0;g=b+60|0;h=c[(g&p)>>2]|0;i=c[(h&p)>>2]|0;if(!((i|0)!=0?(f=ac[c[(i&p)+40>>2]&63](h,21,e)|0,!((f|0)==0|(f|0)==12)):0))if(!(a[(b&n)+7>>0]|0)){f=c[(g&p)>>2]|0;f=rc[c[((c[(f&p)>>2]|0)&p)+20>>2]&127](f,d[(b&n)+11>>0]|0)|0}else f=0;return f|0}function Jg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0;g=a[(b&n)+8>>0]|0;do if(!(g<<24>>24))f=0;else{k=c[(b&p)+4>>2]|0;c[(k&p)+4>>2]=c[(b&p)>>2];if(g<<24>>24==2){h=c[(k&p)>>2]|0;i=h+40|0;g=c[(i&p)>>2]|0;do if(!g){g=h+16|0;if(((a[(g&n)>>0]|0)==2?(a[(h&n)+4>>0]|0)!=0:0)?(a[(h&n)+5>>0]|0)==1:0){a[(g&n)>>0]=1;break}f=h+100|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=Cl(h,d[(h&n)+19>>0]|0,1)|0;h=f&255;if((h|0)==10|(h|0)==13){c[(i&p)>>2]=f;a[(g&n)>>0]=6;j=10}else j=10}else{f=g;j=10}while(0);if((j|0)==10?(f|0)!=0&(e|0)==0:0)break;f=b+20|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+-1;a[(k&n)+20>>0]=1;f=k+60|0;ei(c[(f&p)>>2]|0);c[(f&p)>>2]=0}Dl(b);f=0}while(0);return f|0}function Kg(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+16|0;if((i|0)>=(j|0))fa();h=s;a:do if((a[(b&n)+8>>0]|0)==2){r=c[(b&p)+4>>2]|0;c[(r&p)+4>>2]=c[(b&p)>>2];do if(a[(r&n)+17>>0]|0){q=c[(r&p)>>2]|0;f=r+8|0;b=c[(f&p)>>2]|0;if(b)do{o=b+72|0;a[(o&n)>>0]=d[(o&n)>>0]&251;b=c[(b&p)+8>>2]|0}while((b|0)!=0);if(!(a[(r&n)+18>>0]|0)){o=r+44|0;g=c[(o&p)>>2]|0;if(g>>>0<2)b=0;else{b=g+-2|0;b=b-((b>>>0)%(((((c[(r&p)+36>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;b=((b+1|0)==(((c[2514]|0)>>>0)/((c[(r&p)+32>>2]|0)>>>0)|0|0)?3:2)+b|0}if((b|0)!=(g|0)?(g|0)!=((((c[2514]|0)>>>0)/((c[(r&p)+32>>2]|0)>>>0)|0)+1|0):0){k=r+12|0;l=c[((c[(k&p)>>2]|0)&p)+56>>2]|0;l=d[(l&n)+37>>0]<<16|d[(l&n)+36>>0]<<24|d[(l&n)+38>>0]<<8|d[(l&n)+39>>0];m=El(r,g,l)|0;if(m>>>0>g>>>0){c[(h&p)>>2]=56396;c[(h&p)+4>>2]=10788;bd(11,13600,h);b=11;break a}b:do if(m>>>0<g>>>0){b=c[(f&p)>>2]|0;c:do if(b){while(1){if(b)break;b=c[2]|0;if(!b)break c}b=Fl(b,0,0)|0;if(b){f=0;break b}}while(0);do{b=Gl(r,m,g,1)|0;g=g+-1|0;f=(b|0)==0}while(g>>>0>m>>>0&f)}else{f=1;b=0}while(0);if(((b|0)==101|f)&(l|0)!=0){b=Gg(c[((c[(k&p)>>2]|0)&p)+68>>2]|0)|0;l=(c[((c[(k&p)>>2]|0)&p)+56>>2]|0)+32|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;l=(c[((c[(k&p)>>2]|0)&p)+56>>2]|0)+36|0;a[(l&n)>>0]=0;a[(l&n)+1>>0]=0;a[(l&n)+2>>0]=0;a[(l&n)+3>>0]=0;l=c[((c[(k&p)>>2]|0)&p)+56>>2]|0;a[(l&n)+28>>0]=m>>>24;a[(l&n)+29>>0]=m>>>16;a[(l&n)+30>>0]=m>>>8;a[(l&n)+31>>0]=m;a[(r&n)+19>>0]=1;c[(o&p)>>2]=m}if(!b)break;Hl(q)|0;break a}c[(h&p)>>2]=56391;c[(h&p)+4>>2]=10788;bd(11,13600,h);b=11;break a}}while(0);b=c[(r&p)>>2]|0;if(a[(r&n)+19>>0]|0)c[(b&p)+24>>2]=c[(r&p)+44>>2];b=Hg(b,e,0)|0}else b=0;while(0);i=s;return b|0}function Lg(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(b&p)+4>>2]|0;c[(l&p)+4>>2]=c[(b&p)>>2];a:do if(!e){e=c[(l&p)+8>>2]|0;if(e){while(1){if(e)break;e=c[2]|0;if(!e)break a}e=Fl(e,0,0)|0;g=(e|0)==0;if(!g){g=g?f:0;k=6}}}else{g=f;k=6}while(0);if((k|0)==6)Il(b,e,g)|0;if((a[(b&n)+8>>0]|0)==2){Hl(c[(l&p)>>2]|0)|0;if(!(dl(l,1,h,0)|0)){e=c[(h&p)>>2]|0;g=c[(e&p)+56>>2]|0;g=d[(g&n)+29>>0]<<16|d[(g&n)+28>>0]<<24|d[(g&n)+30>>0]<<8|d[(g&n)+31>>0];if(!g)g=c[((c[(l&p)>>2]|0)&p)+24>>2]|0;c[(l&p)+44>>2]=g;if(e)Bg(c[(e&p)+68>>2]|0)}a[(l&n)+20>>0]=1;g=l+60|0;ei(c[(g&p)>>2]|0);c[(g&p)>>2]=0}Dl(b);i=m;return}function Mg(d){d=d|0;var e=0,f=0,g=0,h=0,i=0,j=0,k=0;j=d+76|0;if((c[(j&p)>>2]|0)==1691352191?(Jl(d)|0)==0:0){Kl(d,0);Ll(d);i=d+20|0;k=d+16|0;e=c[(k&p)>>2]|0;if((c[(i&p)>>2]|0)>0){h=0;do{g=e+(h<<4)+4|0;f=c[(g&p)>>2]|0;if((f|0)!=0?(Ml(f),c[(g&p)>>2]=0,(h|0)!=1):0)c[(e+(h<<4)&p)+12>>2]=0;h=h+1|0;e=c[(k&p)>>2]|0}while((h|0)<(c[(i&p)>>2]|0))}e=c[(e&p)+28>>2]|0;if(e)ql(e);rl(d);sl(d);h=0;do{e=c[(d+(h<<2)&p)+336>>2]|0;if(e)do{g=e;e=c[(e&p)+28>>2]|0;if(g)do{Nl(d,g);f=g;g=c[(g&p)+8>>2]|0;mg(d,f)}while((g|0)!=0)}while((e|0)!=0);h=h+1|0}while((h|0)!=23);f=d+428|0;e=c[(d&p)+436>>2]|0;if(e)do{h=c[(e&p)+8>>2]|0;g=c[(h&p)+16>>2]|0;if(g)cc[g&31](c[(h&p)+8>>2]|0);g=c[(h&p)+36>>2]|0;if(g)cc[g&31](c[(h&p)+28>>2]|0);g=c[(h&p)+56>>2]|0;if(g)cc[g&31](c[(h&p)+48>>2]|0);mg(d,h);e=c[(e&p)>>2]|0}while((e|0)!=0);Ol(f);h=d+308|0;e=c[(d&p)+316>>2]|0;if(e)do{g=c[(e&p)+8>>2]|0;f=c[(g&p)+12>>2]|0;if(f)cc[f&31](c[(g&p)+8>>2]|0);mg(d,g);e=c[(e&p)>>2]|0}while((e|0)!=0);Ol(h);c[(d&p)+52>>2]=0;f=d+236|0;e=c[(f&p)>>2]|0;do if(e){g=e+8|0;if(!(b[(g&o)>>1]&9312)){b[(g&o)>>1]=1;break}else{vg(e);e=c[(f&p)>>2]|0;break}}else e=0;while(0);Mh(e);g=d+168|0;if((c[(g&p)>>2]|0)>0){e=d+172|0;f=0;do{h=c[(d&p)>>2]|0;jc[c[(h&p)+52>>2]&15](h,c[((c[(e&p)>>2]|0)+(f<<2)&p)>>2]|0);f=f+1|0}while((f|0)<(c[(g&p)>>2]|0))}else e=d+172|0;mg(d,c[(e&p)>>2]|0);c[(j&p)>>2]=-1254786768;mg(d,c[((c[(k&p)>>2]|0)&p)+28>>2]|0);c[(j&p)>>2]=-1623446221;if(a[(d&n)+251>>0]|0)Wc(c[(d&p)+276>>2]|0);Wc(d)}return}function Ng(a){a=a|0;var b=0;b=c[(a&p)+40>>2]|0;if((b|0)==1369188723|(b|0)==-1108210269)b=Pg(a)|0;else b=0;Pl(a);return b|0}function Og(b,d){b=b|0;d=d|0;do if(b)if((a[(b&n)+65>>0]|0)!=0|(d|0)==3082){Ql(b);b=7;break}else{b=c[(b&p)+56>>2]&d;break}else b=d&255;while(0);return b|0}function Pg(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,k=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;f=c[(a&p)>>2]|0;Rl(a)|0;if((c[(a&p)+76>>2]|0)>-1){hh(a)|0;d=a+44|0;mg(f,c[(d&p)>>2]|0);c[(d&p)>>2]=0;d=a+88|0;e=b[(d&o)>>1]|0;if(e&16)b[(d&o)>>1]=e|8}else{d=c[(a&p)+80>>2]|0;if((d|0)!=0?(b[(a&o)+88>>1]&8)!=0:0){h=a+44|0;k=c[(h&p)>>2]|0;c[(e&p)>>2]=k;ug(f,d,(k|0)!=0?10344:0,e);mg(f,c[(h&p)>>2]|0);c[(h&p)>>2]=0}}d=a+44|0;mg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=0;c[(a&p)+20>>2]=0;d=a+136|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(a&p)+40>>2]=649915045;i=g;return c[(f&p)+56>>2]&c[(a&p)+80>>2]|0}function Qg(a){a=a|0;var d=0;if(b[(a&o)+8>>1]&9312)vg(a);d=a+24|0;if(c[(d&p)>>2]|0){mg(c[(a&p)+32>>2]|0,c[(a&p)+20>>2]|0);c[(d&p)>>2]=0}c[(a&p)+16>>2]=0;return}function Rg(a){a=a|0;var d=0,f=0,g=0;d=a+8|0;if(b[(d&o)>>1]&16384){f=a+12|0;g=(c[(a&p)>>2]|0)+(c[(f&p)>>2]|0)|0;if(!(eh(a,(g|0)<1?1:g,1)|0)){fw((c[(a&p)+16>>2]|0)+(c[(f&p)>>2]|0)|0,0,c[(a&p)>>2]|0)|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+(c[(a&p)>>2]|0);b[(d&o)>>1]=(e[(d&o)>>1]|0)&48639;d=0}else d=7}else d=0;return d|0}function Sg(d,e){d=d|0;e=e|0;var f=0;do if(d){f=b[(d&o)+8>>1]|0;if((f&514)==514?(a[(d&n)+10>>0]|0)==e<<24>>24:0){f=c[(d&p)+16>>2]|0;break}if(!(f&1))f=Sl(d,e)|0;else f=0}else f=0;while(0);return f|0}function Tg(a,d){a=a|0;d=d|0;var e=0,f=0,g=0;e=a+8|0;f=b[(e&o)>>1]|0;if(!(f&16))if(!(Sg(a,d)|0))e=0;else{f=b[(e&o)>>1]|0;g=4}else g=4;if((g|0)==4){e=c[(a&p)+12>>2]|0;if(f&16384)e=(c[(a&p)>>2]|0)+e|0}return e|0}function Ug(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;f=e[(b&o)+8>>1]|0;do if(!(f&8)){if(f&4){f=b;d=+((c[(f&p)>>2]|0)>>>0)+4294967296.0*+(c[(f&p)+4>>2]|0);break}if(!(f&18))d=0.0;else{h[(g&q)>>3]=0.0;Tl(c[(b&p)+16>>2]|0,g,c[(b&p)+12>>2]|0,a[(b&n)+10>>0]|0)|0;d=+h[(g&q)>>3]}}else d=+h[(b&q)>>3];while(0);i=k;return +d}function Vg(b){b=b|0;var d=0.0,f=0,g=0,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();g=k;f=e[(b&o)+8>>1]|0;do if(!(f&4)){if(!(f&8)){if(!(f&18)){b=0;f=0;break}f=g;c[(f&p)>>2]=0;c[(f&p)+4>>2]=0;Ul(c[(b&p)+16>>2]|0,g,c[(b&p)+12>>2]|0,a[(b&n)+10>>0]|0)|0;f=g;b=c[(f&p)+4>>2]|0;f=c[(f&p)>>2]|0;break}d=+h[(b&q)>>3];if(!(d<=-9223372036854775808.0))if(!(d>=9223372036854775808.0)){b=+R(d)>=1.0?(d>0.0?~~+da(+Q(d/4294967296.0),4294967295.0)>>>0:~~+ba((d-+(~~d>>>0))/4294967296.0)>>>0):0;f=~~d>>>0}else{b=2147483647;f=-1}else{b=-2147483648;f=0}}else{f=b;b=c[(f&p)+4>>2]|0;f=c[(f&p)>>2]|0}while(0);G=b;i=k;return f|0}function Wg(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;if((Xg(c[(b&p)>>2]|0,d,e,f,g)|0)==18){c[(b&p)+20>>2]=18;a[(b&n)+25>>0]=1;Xg(c[(b&p)>>2]|0,10096,-1,1,0)|0}return}function Xg(d,f,g,h,i){d=d|0;f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;a:do if(!f){j=d+8|0;if(!(b[(j&o)>>1]&9312)){b[(j&o)>>1]=1;j=0;break}else{vg(d);j=0;break}}else{r=d+32|0;j=c[(r&p)>>2]|0;if(!j)u=1e9;else u=c[(j&p)+88>>2]|0;t=h<<24>>24==0;q=t?16:2;if((g|0)<0){b:do if(h<<24>>24!=1)if((u|0)<0)k=0;else{g=0;while(1){k=g+2|0;if(!((a[(f+(g|1)&n)>>0]|a[(f+g&n)>>0])<<24>>24)){k=g;break b}if((k|0)>(u|0))break;else g=k}}else{k=f;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;k=k-f&1073741823;k=(k|0)>(u|0)?u+1|0:k}while(0);s=k;m=(q&65535|512)&65535}else{s=g;m=q}do if((i|0)==(-1|0)){if(!(m&512))j=s;else j=s+(h<<24>>24==1?1:2)|0;if((s|0)>(u|0)){j=18;break a}if(fh(d,(j|0)>32?j:32)|0){j=7;break a}kw(c[(d&p)+16>>2]|0,f|0,j|0)|0;q=d+8|0;j=m}else{g=(i|0)==75;l=d+8|0;if(!((b[(l&o)>>1]&9312)==0?(c[(d&p)+24>>2]|0)==0:0))Qg(d);c[(d&p)+16>>2]=f;if(!g){c[(d&p)+36>>2]=i;q=l;j=(m&65535|((i|0)==0?2048:1024))&65535;break}c[(d&p)+20>>2]=f;j=c[(r&p)>>2]|0;do if(!j)j=lc[c[8792>>2]&127](f)|0;else{if((c[(j&p)+276>>2]|0)>>>0<=f>>>0?(c[(j&p)+280>>2]|0)>>>0>f>>>0:0){j=e[(j&o)+248>>1]|0;break}j=lc[c[8792>>2]&127](f)|0}while(0);c[(d&p)+24>>2]=j;q=l;j=m}while(0);m=d+12|0;c[(m&p)>>2]=s;b[(q&o)>>1]=j;f=t?1:h;l=d+10|0;a[(l&n)>>0]=f;do if(f<<24>>24!=1&(s|0)>1){g=d+16|0;k=c[(g&p)>>2]|0;j=a[(k&n)>>0]|0;k=a[(k&n)+1>>0]|0;if(!(j<<24>>24==-1&k<<24>>24==-2))if(k<<24>>24!=-1|j<<24>>24!=-2)break;else j=3;else j=2;if(Vl(d)|0){j=7;break a}f=(c[(m&p)>>2]|0)+-2|0;c[(m&p)>>2]=f;i=c[(g&p)>>2]|0;lw(i|0,i+2|0,f|0)|0;a[((c[(g&p)>>2]|0)+(c[(m&p)>>2]|0)&n)>>0]=0;a[((c[(g&p)>>2]|0)+(c[(m&p)>>2]|0)&n)+1>>0]=0;b[(q&o)>>1]=e[(q&o)>>1]|512;a[(l&n)>>0]=j}while(0);j=(s|0)>(u|0)?18:0}while(0);return j|0}function Yg(a,c){a=a|0;c=+c;var d=0,e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g+8|0;f=g;d=a+8|0;if(!(b[(d&o)>>1]&9312))b[(d&o)>>1]=1;else vg(a);h[(e&q)>>3]=c;h[(f&q)>>3]=+h[(e&q)>>3];if(!(+h[(e&q)>>3]!=+h[(f&q)>>3])){h[(a&q)>>3]=c;b[(d&o)>>1]=8}i=g;return}function Zg(a,d,e){a=a|0;d=d|0;e=e|0;var f=0;f=a+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else vg(a);c[(a&p)>>2]=d;c[(a&p)+4>>2]=e;b[(f&o)>>1]=4;return}function _g(a,d){a=a|0;d=d|0;var f=0,g=0,h=0;f=a+8|0;if(b[(f&o)>>1]&9312)vg(a);c[(a&p)>>2]=c[(d&p)>>2];c[(a&p)+4>>2]=c[(d&p)+4>>2];c[(a&p)+8>>2]=c[(d&p)+8>>2];c[(a&p)+12>>2]=c[(d&p)+12>>2];c[(a&p)+16>>2]=c[(d&p)+16>>2];h=e[(f&o)>>1]|0;g=h&64511;b[(f&o)>>1]=g;if((h&18|0)!=0?(b[(d&o)+8>>1]&2048)==0:0){b[(f&o)>>1]=g|4096;f=Vl(a)|0}else f=0;return f|0}function $g(d,e){d=d|0;e=e|0;var f=0;f=d+8|0;if(!((b[(f&o)>>1]&9312)==0?(c[(d&p)+24>>2]|0)==0:0))Qg(d);b[(f&o)>>1]=16400;c[(d&p)+12>>2]=0;c[(d&p)>>2]=(e|0)<0?0:e;a[(d&n)+10>>0]=1;c[(d&p)+16>>2]=0;return}function ah(a){a=a|0;var b=0,d=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();b=d;if(a)if(!(c[(a&p)>>2]|0)){bd(21,47360,b);a=1}else a=0;else{bd(21,47320,b);a=1}i=d;return a|0}function bh(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0.0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)>>2]|0)>1?(d=c[(a&p)+72>>2]|0,(d|0)!=0):0)d=rc[d&127](a,b)|0;else{d=rc[c[(a&p)+64>>2]&127](a,e)|0;g=+h[(e&q)>>3]*864.0e5;a=+R(g)>=1.0?(g>0.0?~~+da(+Q(g/4294967296.0),4294967295.0)>>>0:~~+ba((g-+(~~g>>>0))/4294967296.0)>>>0):0;c[(b&p)>>2]=~~g>>>0;c[(b&p)+4>>2]=a}i=f;return d|0}function ch(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0;a:do if((d|0)!=0&(e|0)!=0){i=d+(e*40|0)|0;j=c[(d&p)+32>>2]|0;g=j+65|0;h=a[(g&n)>>0]|0;if(c[(j&p)+520>>2]|0){e=d;while(1){if(c[(e&p)+24>>2]|0)mg(j,c[(e&p)+20>>2]|0);e=e+40|0;if(e>>>0>=i>>>0)break a}}do{e=d+8|0;if(!(b[(e&o)>>1]&9312)){f=d+24|0;if(c[(f&p)>>2]|0){mg(j,c[(d&p)+20>>2]|0);c[(f&p)>>2]=0}}else Qg(d);b[(e&o)>>1]=128;d=d+40|0}while(d>>>0<i>>>0);a[(g&n)>>0]=h}while(0);return}function dh(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();g=f;c[(g&p)>>2]=e;e=Wk(b,d,g)|0;mg(b,c[(a&p)>>2]|0);c[(a&p)>>2]=e;i=f;return}function eh(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,q=0;l=a+24|0;g=c[(l&p)>>2]|0;do if((g|0)<(d|0)){k=(d|0)<32?32:d;d=(g|0)>0;if((f|0)!=0&d?(h=a+16|0,i=c[(h&p)>>2]|0,j=a+20|0,(i|0)==(c[(j&p)>>2]|0)):0){g=Wl(c[(a&p)+32>>2]|0,i,k,((k|0)<0)<<31>>31)|0;c[(j&p)>>2]=g;c[(h&p)>>2]=g;f=0}else{g=a+32|0;if(d){d=a+20|0;mg(c[(g&p)>>2]|0,c[(d&p)>>2]|0)}else d=a+20|0;g=mh(c[(g&p)>>2]|0,k,((k|0)<0)<<31>>31)|0;c[(d&p)>>2]=g}if(!g){f=a+8|0;if(!(b[(f&o)>>1]&9312))b[(f&o)>>1]=1;else vg(a);c[(a&p)+16>>2]=0;c[(l&p)>>2]=0;f=7;break}d=c[(a&p)+32>>2]|0;do if(!d)d=lc[c[8792>>2]&127](g)|0;else{if((c[(d&p)+276>>2]|0)>>>0<=g>>>0?(c[(d&p)+280>>2]|0)>>>0>g>>>0:0){d=e[(d&o)+248>>1]|0;break}d=lc[c[8792>>2]&127](g)|0}while(0);c[(l&p)>>2]=d;q=21}else q=21;while(0);if((q|0)==21){if(((f|0)!=0?(m=c[(a&p)+16>>2]|0,(m|0)!=0):0)?(n=c[(a&p)+20>>2]|0,(m|0)!=(n|0)):0)kw(n|0,m|0,c[(a&p)+12>>2]|0)|0;d=a+8|0;f=b[(d&o)>>1]|0;if(!(f&1024))g=a+16|0;else{g=a+16|0;cc[c[(a&p)+36>>2]&31](c[(g&p)>>2]|0);f=b[(d&o)>>1]|0}c[(g&p)>>2]=c[(a&p)+20>>2];b[(d&o)>>1]=f&58367;f=0}return f|0}function fh(a,d){a=a|0;d=d|0;if((c[(a&p)+24>>2]|0)<(d|0))a=eh(a,d,0)|0;else{c[(a&p)+16>>2]=c[(a&p)+20>>2];a=a+8|0;b[(a&o)>>1]=(e[(a&o)>>1]|0)&13;a=0}return a|0}
|
|
function mq(f,g){f=f|0;g=g|0;var h=0,k=0,l=0,m=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,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,ga=0,ha=0;ha=i;i=i+192|0;if((i|0)>=(j|0))fa();ba=ha+48|0;$=ha+24|0;_=ha+160|0;I=ha+156|0;S=ha+152|0;L=ha+148|0;V=ha+144|0;O=ha+140|0;H=ha+16|0;ea=ha;y=ha+128|0;x=ha+116|0;z=ha+96|0;l=ha+88|0;ga=f+8|0;ca=c[(ga&p)>>2]|0;da=c[(f&p)>>2]|0;c[(ea&p)>>2]=c[9286];c[(ea&p)+4>>2]=c[9287];c[(ea&p)+8>>2]=c[9288];a:do switch(g|0){case 9:{l=c[(f+(da+-1<<4)&p)+16>>2]|0;k=c[(ca&p)>>2]|0;if((Sq(ca,22,37104,0,0)|0)==0?(E=Oq(ca)|0,(E|0)!=0):0){if((l|0)!=7?(F=k+20|0,(c[(F&p)>>2]|0)>0):0){l=(l|0)==9?2:1;k=E+96|0;q=0;do{wh(E,4,q,l,0)|0;c[(k&p)>>2]=c[(k&p)>>2]|1<<q;q=q+1|0}while((q|0)<(c[(F&p)>>2]|0))}wh(E,3,0,0,0)|0}break}case 8:{y=c[(ca&p)>>2]|0;C=y+65|0;if(((a[(C&n)>>0]|0)==0?(a[(ca&n)+18>>0]|0)==0:0)?(Y=ca+64|0,(c[(Y&p)>>2]|0)==0):0){B=Oq(ca)|0;if(B){do{}while((Pq(B,61)|0)!=0);wh(B,24,0,0,0)|0;do if(!(a[(C&n)>>0]|0)){r=ca+332|0;v=c[(r&p)>>2]|0;if((v|0)==0?(c[(ca&p)+316>>2]|0)==0:0)break;s=B+32|0;t=c[(s&p)>>2]|0;if(t)c[((c[(B&p)+4>>2]|0)&p)+8>>2]=t;c[((c[(B&p)+24>>2]|0)&p)+88>>2]=t+-1;w=y+20|0;b:do if((c[(w&p)>>2]|0)>0){h=B+96|0;k=ca+328|0;l=y+16|0;m=y+145|0;q=B+4|0;u=0;while(1){x=1<<u;if(((x&v|0)!=0?(c[(h&p)>>2]=c[(h&p)>>2]|x,ba=c[((c[((c[(l&p)>>2]|0)+(u<<4)&p)+12>>2]|0)&p)+4>>2]|0,xh(B,wh(B,4,u,(c[(k&p)>>2]&x|0)!=0&1,c[(ca+(u<<2)&p)+336>>2]|0)|0,ba,-14),(a[(m&n)>>0]|0)==0):0)?(N=c[(q&p)>>2]|0,(N|0)!=0):0)a[(N+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;u=u+1|0;if((u|0)>=(c[(w&p)>>2]|0))break b;v=c[(r&p)>>2]|0}}while(0);s=ca+452|0;if((c[(s&p)>>2]|0)>0){r=ca+520|0;q=0;do{t=c[((c[((c[(r&p)>>2]|0)+(q<<2)&p)>>2]|0)&p)+60>>2]|0;c:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break c;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);xh(B,wh(B,146,0,0,0)|0,t,-10);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}c[(s&p)>>2]=0;s=Oq(ca)|0;r=ca+396|0;if((c[(r&p)>>2]|0)>0){q=ca+400|0;m=0;do{$=c[(q&p)>>2]|0;ba=c[($+(m<<4)&p)+12>>2]|0;xh(s,wh(s,145,c[($+(m<<4)&p)>>2]|0,c[($+(m<<4)&p)+4>>2]|0,d[($+(m<<4)&n)+8>>0]|0)|0,ba,-2);m=m+1|0}while((m|0)<(c[(r&p)>>2]|0))}k=c[(ca&p)+8>>2]|0;t=c[(ca&p)+404>>2]|0;if(t){h=(c[(ca&p)>>2]|0)+16|0;u=k+32|0;v=k+4|0;do{r=c[(t&p)+8>>2]|0;s=c[(t&p)+12>>2]|0;Qq(ca,0,r,c[((c[((c[(h&p)>>2]|0)+(r<<4)&p)+12>>2]|0)&p)+72>>2]|0,54);r=s+1|0;wh(k,28,0,s,r)|0;q=c[(u&p)>>2]|0;l=s+-1|0;m=c[(c[(t&p)+4>>2]&p)>>2]|0;xh(k,wh(k,97,0,l,0)|0,m,0);m=q+9|0;wh(k,108,0,m,0)|0;wh(k,47,0,0,s)|0;wh(k,78,l,q+7|0,s)|0;l=c[(v&p)>>2]|0;if(l)a[(l+(((c[(u&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=16;wh(k,103,0,r,0)|0;wh(k,47,0,1,s)|0;wh(k,16,0,m,0)|0;wh(k,9,0,q+2|0,0)|0;wh(k,25,0,s,0)|0;wh(k,61,0,0,0)|0;t=c[(t&p)>>2]|0}while((t|0)!=0)}s=c[(ca&p)+316>>2]|0;if((s|0)!=0?(a[(ca&n)+23>>0]=0,(c[(s&p)>>2]|0)>0):0){r=s+4|0;q=0;do{ba=c[(r&p)>>2]|0;Rq(ca,c[(ba+(q*20|0)&p)>>2]|0,c[(ba+(q*20|0)&p)+16>>2]|0);q=q+1|0}while((q|0)<(c[(s&p)>>2]|0))}wh(B,16,0,1,0)|0}while(0);if((c[(Y&p)>>2]|0)==0?(a[(C&n)>>0]|0)==0:0){if((c[(ca&p)+404>>2]|0)!=0?(Z=ca+68|0,(c[(Z&p)>>2]|0)==0):0)c[(Z&p)>>2]=1;Ah(B,ca);c[(ca&p)+12>>2]=101;a[(ca&n)+16>>0]=0}else aa=48}else aa=48;if((aa|0)==48)c[(ca&p)+12>>2]=1;c[(ca&p)+68>>2]=0;c[(ca&p)+72>>2]=0;c[(ca&p)+76>>2]=0;c[(ca&p)+440>>2]=0;c[(ca&p)+332>>2]=0}break}case 5:{a[(ca&n)+450>>0]=0;c[(ca&p)+440>>2]=0;break}case 6:{a[(ca&n)+450>>0]=1;c[(ca&p)+440>>2]=0;break}case 221:case 218:case 108:case 97:case 85:case 83:case 81:case 68:case 31:case 28:{c[(ea&p)>>2]=0;break}case 27:{a[((c[(ca&p)>>2]|0)&n)+250>>0]=0;aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 222:case 219:case 107:case 84:case 69:case 30:case 29:{c[(ea&p)>>2]=1;break}case 32:{Vq(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,a[(f+(da<<4)&n)+16>>0]|0,0);break}case 33:{ba=f+(da<<4)+16|0;Vq(ca,0,0,0,c[(ba&p)>>2]|0);Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 34:{a[(ea&n)>>0]=0;break}case 35:{l=c[(f+(da<<4)&p)+20>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;if((l|0)==5?(Fc(k,20456,5)|0)==0:0){a[(ea&n)>>0]=32;break a}a[(ea&n)>>0]=0;c[(ba&p)>>2]=l;c[(ba&p)+4>>2]=k;th(ca,20464,ba);break}case 59:{ba=f+(da<<4)+16|0;c[(x&p)>>2]=Zq(ca,97,0,0,ba)|0;ba=c[(ba&p)>>2]|0;c[(x&p)+4>>2]=ba;c[(x&p)+8>>2]=ba+(c[(f+(da<<4)&p)+20>>2]|0);Yq(ca,x);break}case 61:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(v=b[(l&o)+38>>1]|0,v<<16>>16>=1):0)a[((c[(l&p)+4>>2]|0)+(((v<<16>>16)+-1|0)*24|0)&n)+20>>0]=k;break}case 70:{c[(ea&p)>>2]=0;break}case 71:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2]&~c[(f+(da<<4)&p)+20>>2]|c[(f+(da<<4)&p)+16>>2];break}case 73:case 72:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 74:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=255;break}case 76:{c[(ea&p)>>2]=7;break}case 75:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2]<<8;c[(ea&p)+4>>2]=65280;break}case 65:{br(ca,0,f+(da+-2<<4)+16|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 66:{k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(u=c[(l&p)+16>>2]|0,(u|0)!=0):0)a[(u&n)+24>>0]=k;break}case 67:{q=c[(ca&p)+484>>2]|0;if((q|0)!=0?(D=(b[(q&o)+38>>1]|0)+-1|0,r=c[(ca&p)>>2]|0,m=Wq(r,f+(da<<4)+16|0)|0,(m|0)!=0):0){if(!(cr(ca,m)|0)){mg(r,m);break a}s=q+4|0;mg(r,c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]|0);c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2]=m;l=c[(q&p)+8>>2]|0;if(l)do{if((b[(c[(l&p)+4>>2]&o)>>1]|0)==(D|0))c[(c[(l&p)+32>>2]&p)>>2]=c[((c[(s&p)>>2]|0)+(D*24|0)&p)+16>>2];l=c[(l&p)+20>>2]|0}while((l|0)!=0)}break}case 13:{c[(ea&p)>>2]=7;break}case 117:case 115:case 16:case 15:case 14:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];break}case 46:{ca=c[(f+(da+-3<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 47:{ca=c[(f+(da+-5<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 49:{ca=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ca;c[(ea&p)+4>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-ca;break}case 92:case 54:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ca+320|0;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 57:case 55:{Yq(ca,f+(da<<4)+16|0);break}case 56:{Yq(ca,f+(da+-1<<4)+16|0);break}case 58:{c[(y&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(y&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(y&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];Yq(ca,y);break}case 18:case 17:{if((Sq(ca,22,37136,0,0)|0)==0?(B=Oq(ca)|0,(B|0)!=0):0)wh(B,3,1,0,0)|0;break}case 19:{if((Sq(ca,22,37120,0,0)|0)==0?(A=Oq(ca)|0,(A|0)!=0):0)wh(A,3,1,1,0)|0;break}case 22:{Tq(ca,0,f+(da<<4)+16|0);break}case 38:{ba=c[(f+(da+-2<<4)&p)+16>>2]|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=(c[(ca&p)+504>>2]|0)-ba+(c[(ca&p)+508>>2]|0);break}case 39:{x=f+(da<<4)+16|0;v=c[(ca&p)>>2]|0;k=c[(ca&p)+484>>2]|0;d:do if(k){w=k+38|0;if((b[(w&o)>>1]|0)>=(c[(v&p)+96>>2]|0)){c[(ba&p)>>2]=c[(k&p)>>2];th(ca,36528,ba);break}u=Wq(v,x)|0;if(u){s=b[(w&o)>>1]|0;h=s<<16>>16;e:do if(s<<16>>16>0){t=a[((d[(u&n)>>0]|0)&n)+9328>>0]|0;q=c[(k&p)+4>>2]|0;r=u+1|0;l=0;while(1){m=c[(q+(l*24|0)&p)>>2]|0;if(t<<24>>24==(a[((d[(m&n)>>0]|0)&n)+9328>>0]|0)?(dd(r,m+1|0)|0)==0:0)break;l=l+1|0;if((l|0)>=(h|0))break e}c[(ba&p)>>2]=u;th(ca,36552,ba);mg(v,u);break d}else q=c[(k&p)+4>>2]|0;while(0);r=k+4|0;do if(!(h&7)){q=ro(v,q,(h*24|0)+192|0,0)|0;if(!q){mg(v,u);break d}else{c[(r&p)>>2]=q;s=b[(w&o)>>1]|0;break}}while(0);ba=s<<16>>16;aa=q+(ba*24|0)|0;c[(aa&p)>>2]=0;c[(aa&p)+4>>2]=0;c[(aa&p)+8>>2]=0;c[(aa&p)+12>>2]=0;c[(aa&p)+16>>2]=0;c[(aa&p)+20>>2]=0;c[(aa&p)>>2]=u;a[(q+(ba*24|0)&n)+21>>0]=65;a[(q+(ba*24|0)&n)+22>>0]=1;b[(w&o)>>1]=(b[(w&o)>>1]|0)+1<<16>>16}}while(0);$=x;aa=c[($&p)+4>>2]|0;ba=ea;c[(ba&p)>>2]=c[($&p)>>2];c[(ba&p)+4>>2]=aa;c[(ca&p)+324>>2]=0;break}case 62:{_q(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 63:{$q(ca,0,0,0,0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 64:{ar(ca,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 279:case 263:case 262:case 261:case 260:case 259:case 258:case 257:case 256:case 247:case 150:case 141:case 131:case 130:case 48:case 45:case 42:case 41:case 40:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 44:{l=f+(da<<4)+16|0;k=c[(ca&p)+484>>2]|0;if((k|0)!=0?(J=b[(k&o)+38>>1]|0,J<<16>>16>=1):0){ba=(J<<16>>16)+-1|0;aa=c[(k&p)+4>>2]|0;ca=Wq(c[(ca&p)>>2]|0,l)|0;c[(aa+(ba*24|0)&p)+12>>2]=ca;a[(aa+(ba*24|0)&n)+21>>0]=Xq(ca,aa+(ba*24|0)+22|0)|0}break}case 226:{l=da+-1|0;k=f+(l<<4)+16|0;r=f+(da<<4)+16|0;q=pr(c[(ca&p)>>2]|0,0,k,r)|0;s=da+-3|0;m=Zq(ca,75,c[(f+(s<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=m;if(!m){Do(c[(ca&p)>>2]|0,q);q=0}else{c[(m&p)+20>>2]=kr(ca,0,q,0,0,0,0,0,0,0)|0;q=c[(ea&p)>>2]|0;ba=q+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,q)}if(c[(f+(da+-2<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,q,0,0)|0;c[(ea&p)+4>>2]=c[(f+(s<<4)&p)+20>>2];h=c[(r&p)>>2]|0;if(!h)h=(c[(k&p)>>2]|0)+(c[(f+(l<<4)&p)+20>>2]|0)|0;else h=h+(c[(f+(da<<4)&p)+20>>2]|0)|0;c[(ea&p)+8>>2]=h;break}case 225:{l=da+-4|0;h=Zq(ca,75,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);h=0}else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];h=c[(ea&p)>>2]|0;ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 227:{h=Zq(ca,20,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]|2099200;yr(ca,h)}c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 228:{k=Zq(ca,136,c[(f+(da+-3<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=k;if(!k){Nk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0);Gk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)}else{l=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da+-2<<4)&p)+16>>2]|0;if(l)h=lr(ca,h,l)|0;c[(k&p)+20>>2]=h;yr(ca,c[(ea&p)>>2]|0)}c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 291:case 240:{c[(ea&p)>>2]=2;break}case 241:{c[(ea&p)>>2]=0;break}case 239:{$q(ca,f+(da+-7<<4)+16|0,f+(da+-6<<4)+16|0,pr(c[(ca&p)>>2]|0,0,f+(da+-4<<4)+16|0,0)|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-10<<4)&p)+16>>2]|0,f+(da+-11<<4)+16|0,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-8<<4)&p)+16>>2]|0)|0;break}case 229:{c[(ea&p)>>2]=lr(ca,lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 230:{c[(ea&p)>>2]=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 237:{c[(ea&p)>>2]=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 238:{c[(ea&p)>>2]=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 245:{h=lr(ca,0,vr(ca,0,f+(da+-1<<4)+16|0,1)|0)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 244:{h=vr(ca,0,f+(da+-1<<4)+16|0,1)|0;h=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,h)|0;c[(ea&p)>>2]=h;mr(ca,h,f+(da+-2<<4)+16|0,1);if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20632;th(ca,34544,ba)}a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2]}break}case 248:{v=c[(f+(da<<4)&p)+16>>2]|0;s=c[(f+(da+-1<<4)&p)+16>>2]|0;u=c[(ca&p)>>2]|0;do if((a[(u&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){r=v+12|0;k=bq(u,c[(v&p)+16>>2]|0,c[(r&p)>>2]|0)|0;if(!k){if(!s){c[(ba&p)>>2]=v;c[(ba&p)+4>>2]=0;th(ca,33056,ba)}else zr(ca,c[(r&p)>>2]|0);a[(ca&n)+17>>0]=1;break}if(a[(k&n)+51>>0]&3){c[(ba&p)>>2]=0;th(ca,33080,ba);break}s=c[(k&p)+24>>2]|0;f:do if(s){r=c[(u&p)+20>>2]|0;if((r|0)>0){q=c[(u&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break f}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);s=c[(k&p)+12>>2]|0;r=u+16|0;q=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2]|0;l=(m|0)==1?13184:13208;if(((Sq(ca,9,l,0,q)|0)==0?(Sq(ca,(m|0)==0?10:12,c[(k&p)>>2]|0,c[(s&p)>>2]|0,q)|0)==0:0)?(K=Oq(ca)|0,(K|0)!=0):0){aa=c[(ca&p)+408>>2]|0;aa=(aa|0)==0?ca:aa;Ar(ca,m);$=aa+328|0;c[($&p)>>2]=c[($&p)>>2]|1<<m;aa=aa+20|0;a[(aa&n)>>0]=d[(aa&n)>>0]|1;aa=c[(k&p)>>2]|0;c[(ba&p)>>2]=c[((c[(r&p)>>2]|0)+(m<<4)&p)>>2];c[(ba&p)+4>>2]=l;c[(ba&p)+8>>2]=aa;Br(ca,33160,ba);Cr(ca,m,28536,c[(k&p)>>2]|0);Dr(ca,m);Er(ca,c[(k&p)+40>>2]|0,m);ca=c[(k&p)>>2]|0;xh(K,wh(K,125,m,0,0)|0,ca,0)}}while(0);Do(u,v);break}case 246:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 250:case 249:{h=Oq(ca)|0;if(h){wh(h,13,0,0,0)|0;ca=h+96|0;c[(ca&p)>>2]=c[(ca&p)>>2]|1}break}case 251:{Fr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,0,0);break}case 252:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,0);break}case 253:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,0);break}case 254:{Fr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da<<4)+16|0,1);break}case 255:{Fr(ca,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,f+(da+-1<<4)+16|0,1);break}case 264:{h=c[(f+(da+-3<<4)&p)+16>>2]|0;l=(c[(f+(da<<4)&p)+16>>2]|0)-h+(c[(f+(da<<4)&p)+20>>2]|0)|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;aa=ca+488|0;z=c[(aa&p)>>2]|0;A=c[(ca&p)>>2]|0;c[(aa&p)>>2]=0;g:do if((c[(ca&p)+64>>2]|0)==0&(z|0)!=0){y=c[(z&p)>>2]|0;m=z+20|0;v=c[(m&p)>>2]|0;h:do if(v){u=c[(A&p)+20>>2]|0;if((u|0)>0){s=c[(A&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(v|0))break h;if((r|0)<(u|0))q=r;else{q=r;break}}}else q=0}else q=-1e6;while(0);c[(z&p)+28>>2]=k;x=(k|0)==0;if(!x){s=k;do{c[(s&p)+4>>2]=z;s=c[(s&p)+32>>2]|0}while((s|0)!=0)}c[(_&p)>>2]=y;if(!y)s=0;else{s=y;while(1)if(!(a[(s&n)>>0]|0))break;else s=s+1|0;s=s-y&1073741823}c[(_&p)+4>>2]=s;c[($&p)>>2]=ca;w=A+16|0;v=c[(w&p)>>2]|0;c[($&p)+12>>2]=c[(v+(q<<4)&p)>>2];c[($&p)+4>>2]=c[(v+(q<<4)&p)+12>>2];c[($&p)+16>>2]=10720;c[($&p)+20>>2]=_;v=(q|0)==1;c[($&p)+8>>2]=v&1;if(!x)do{if(fr($,c[(k&p)+8>>2]|0)|0){k=0;l=z;break g}if(Gr($,c[(k&p)+20>>2]|0)|0){k=0;l=z;break g}if(Hr($,c[(k&p)+24>>2]|0)|0){k=0;l=z;break g}k=c[(k&p)+32>>2]|0}while((k|0)!=0);if(!(Gr($,c[(z&p)+12>>2]|0)|0)){s=A+145|0;if(!(a[(s&n)>>0]|0)){r=Oq(ca)|0;if(!r){k=0;l=z;break}aa=c[(ca&p)+408>>2]|0;Ar(ca,q);aa=((aa|0)==0?ca:aa)+328|0;c[(aa&p)>>2]=c[(aa&p)>>2]|1<<q;if((h|0)!=0?(t=jw(l|0,0,1,0)|0,t=mh(A,t,G)|0,(t|0)!=0):0){kw(t|0,h|0,l|0)|0;a[(t+l&n)>>0]=0}else t=0;aa=c[(z&p)+4>>2]|0;c[(ba&p)>>2]=c[((c[(w&p)>>2]|0)+(q<<4)&p)>>2];c[(ba&p)+4>>2]=v?13184:13208;c[(ba&p)+8>>2]=y;c[(ba&p)+12>>2]=aa;c[(ba&p)+16>>2]=t;Br(ca,30008,ba);mg(A,t);Dr(ca,q);c[(ba&p)>>2]=y;Ir(r,q,uh(A,30072,ba)|0);if(!(a[(s&n)>>0]|0)){k=0;l=z;break}}l=Ik((c[((c[(w&p)>>2]|0)+(q<<4)&p)+12>>2]|0)+40|0,y,z)|0;if(l){a[(A&n)+65>>0]=1;k=0;break}k=c[(m&p)>>2]|0;if((k|0)==(c[(z&p)+24>>2]|0)){k=bn(k+8|0,c[(z&p)+4>>2]|0,ba)|0;if(!k)k=0;else k=c[(k&p)+8>>2]|0;k=k+64|0;c[(z&p)+32>>2]=c[(k&p)>>2];c[(k&p)>>2]=z;k=0}else k=0}else{k=0;l=z}}else l=z;while(0);jg(A,l);Fk(A,k);break}case 265:{D=f+(da+-7<<4)+16|0;C=da+-6|0;E=f+(C<<4)+16|0;r=c[(f+(da+-5<<4)&p)+16>>2]|0;F=da+-4|0;B=c[(f+(F<<4)&p)+16>>2]|0;F=c[(f+(F<<4)&p)+20>>2]|0;H=c[(f+(da+-2<<4)&p)+16>>2]|0;I=c[(f+(da<<4)&p)+16>>2]|0;k=c[(f+(da+-8<<4)&p)+16>>2]|0;J=c[(ca&p)>>2]|0;z=(c[(f+(da+-10<<4)&p)+16>>2]|0)!=0;do if(z)if(!(c[(f+(C<<4)&p)+20>>2]|0)){c[($&p)>>2]=D;if(!H){s=0;t=0;break}else{v=1;aa=483;break}}else{th(ca,29664,ba);s=0;t=0;break}else{v=er(ca,D,E,$)|0;if((v|0)>-1&(H|0)!=0)aa=483;else{s=0;t=0}}while(0);do if((aa|0)==483){h=J+65|0;if(!(a[(h&n)>>0]|0)){x=J+145|0;if((a[(x&n)>>0]|0)!=0&(v|0)!=1){aa=H+12|0;mg(J,c[(aa&p)>>2]|0);c[(aa&p)>>2]=0}w=Jr(ca,H)|0;if((a[(x&n)>>0]|0)==0?((w|0)!=0?(c[(f+(C<<4)&p)+20>>2]|0)==0:0):0)v=(c[(w&p)+68>>2]|0)==(c[((c[(J&p)+16>>2]|0)&p)+28>>2]|0)?1:v;if((a[(h&n)>>0]|0)==0?(R=c[($&p)>>2]|0,aa=c[(ca&p)>>2]|0,c[(_&p)>>2]=ca,aa=c[(aa&p)+16>>2]|0,c[(_&p)+12>>2]=c[(aa+(v<<4)&p)>>2],c[(_&p)+4>>2]=c[(aa+(v<<4)&p)+12>>2],c[(_&p)+16>>2]=10720,c[(_&p)+20>>2]=R,c[(_&p)+8>>2]=(v|0)==1&1,(Kr(_,H)|0)==0):0){x=Jr(ca,H)|0;if(!x){if((a[(J&n)+144>>0]|0)!=1){s=0;t=0;break}a[(J&n)+146>>0]=1;s=0;t=0;break}if(a[(x&n)+44>>0]&16){th(ca,29712,ba);s=0;t=0;break}t=Wq(J,R)|0;if(t)if(!(Lr(ca,t)|0)){A=J+16|0;aa=bn((c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2]|0)+40|0,t,S)|0;if((aa|0)!=0?(c[(aa&p)+8>>2]|0)!=0:0)if(!k){c[(ba&p)>>2]=R;th(ca,29760,ba);s=0;break}else{Ar(ca,v);s=0;break}y=c[(x&p)>>2]|0;if(!(Fc(y,25568,7)|0)){th(ca,29792,ba);s=ca+64|0;c[(s&p)>>2]=(c[(s&p)>>2]|0)+1;s=0;break}u=c[(x&p)+12>>2]|0;if((u|0)!=0&(r|0)!=49){c[(ba&p)>>2]=(r|0)==35?29872:29880;c[(ba&p)+4>>2]=H;c[(ba&p)+8>>2]=0;th(ca,29832,ba);s=0;break}q=(r|0)==49;if((u|0)==0&q){c[(ba&p)>>2]=H;c[(ba&p)+4>>2]=0;th(ca,29888,ba);s=0;break}m=x+68|0;x=c[(m&p)>>2]|0;i:do if(x){w=c[(J&p)+20>>2]|0;if((w|0)>0){k=c[(A&p)>>2]|0;l=0;while(1){h=l+1|0;if((c[(k+(l<<4)&p)+12>>2]|0)==(x|0)){h=l;break i}if((h|0)<(w|0))l=h;else break}}else h=0}else h=-1e6;while(0);x=c[(A&p)>>2]|0;k=c[(x+(h<<4)&p)>>2]|0;if(z)w=c[(x&p)+16>>2]|0;else w=k;x=(h|0)==1;if((Sq(ca,x|z?5:7,t,y,w)|0)==0?(Sq(ca,18,x?13184:13208,0,k)|0)==0:0){s=mh(J,36,0)|0;if(!s){s=0;break}y=s+0|0;k=y+36|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(s&p)>>2]=t;c[(s&p)+4>>2]=kh(J,c[(H&p)+16>>2]|0)|0;c[(s&p)+20>>2]=c[((c[(A&p)>>2]|0)+(v<<4)&p)+12>>2];c[(s&p)+24>>2]=c[(m&p)>>2];a[(s&n)+8>>0]=B;a[(s&n)+9>>0]=q|(r|0)==35?1:2;c[(s&p)+12>>2]=Mr(J,I,1,0)|0;c[(s&p)+16>>2]=Nr(J,F)|0;c[(ca&p)+488>>2]=s;t=0}else s=0}else s=0;else{s=0;t=0}}else{s=0;t=0}}else{s=0;t=0}}while(0);mg(J,t);Do(J,H);Hk(J,F);Gk(J,I);if(!(c[(ca&p)+488>>2]|0))jg(J,s);if(!(c[(f+(C<<4)&p)+20>>2]|0)){aa=D;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}else{aa=E;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break a}}case 269:case 266:{c[(ea&p)>>2]=35;break}case 267:{c[(ea&p)>>2]=31;break}case 268:{c[(ea&p)>>2]=49;break}case 284:{l=c[(ca&p)>>2]|0;k=c[(f+(da+-1<<4)&p)+16>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;m=a[(f+(da+-5<<4)&n)+16>>0]|0;q=Or(l,110,f+(da+-4<<4)+16|0)|0;if(q){c[(q&p)+24>>2]=Pr(l,k,1)|0;c[(q&p)+20>>2]=Mr(l,h,1,0)|0;a[(q&n)+1>>0]=m}Nk(l,k);Gk(l,h);c[(ea&p)>>2]=q;break}case 271:case 270:{c[(ea&p)>>2]=d[(f+(da<<4)&n)+14>>0];c[(ea&p)+4>>2]=0;break}case 272:{c[(ea&p)>>2]=110;c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 296:case 275:{c[(ea&p)>>2]=0;break}case 297:case 276:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 277:{ba=f+(da+-1<<4)+16|0;ca=f+(da+-2<<4)+16|0;c[((c[((c[(ca&p)>>2]|0)&p)+36>>2]|0)&p)+32>>2]=c[(ba&p)>>2];c[((c[(ca&p)>>2]|0)&p)+36>>2]=c[(ba&p)>>2];c[(ea&p)>>2]=c[(ca&p)>>2];break}case 278:{ca=f+(da+-1<<4)+16|0;ba=c[(ca&p)>>2]|0;c[(ba&p)+36>>2]=ba;c[(ea&p)>>2]=c[(ca&p)>>2];break}case 282:{th(ca,20736,ba);break}case 280:{_=f+(da<<4)+16|0;$=c[(_&p)+4>>2]|0;aa=ea;c[(aa&p)>>2]=c[(_&p)>>2];c[(aa&p)+4>>2]=$;th(ca,20640,ba);break}case 283:{th(ca,20824,ba);break}case 286:{h=c[(ca&p)>>2]|0;k=c[(f+(da<<4)&p)+16>>2]|0;l=Or(h,109,f+(da+-2<<4)+16|0)|0;if(l){c[(l&p)+20>>2]=Mr(h,k,1,0)|0;a[(l&n)+1>>0]=10}Gk(h,k);c[(ea&p)>>2]=l;break}case 287:{l=c[(ca&p)>>2]|0;q=c[(f+(da<<4)&p)+16>>2]|0;h=mh(l,40,0)|0;if(!h){Mk(l,q,1);h=0}else{y=h+0|0;k=y+40|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));a[(h&n)>>0]=119;c[(h&p)+8>>2]=q;a[(h&n)+1>>0]=10}c[(ea&p)>>2]=h;break}case 285:{q=c[(ca&p)>>2]|0;m=c[(f+(da+-1<<4)&p)+16>>2]|0;l=c[(f+(da<<4)&p)+16>>2]|0;k=a[(f+(da+-4<<4)&n)+16>>0]|0;h=Or(q,108,f+(da+-2<<4)+16|0)|0;if(!h)Hk(q,m);else{c[(h&p)+8>>2]=gr(q,l,1)|0;c[(h&p)+28>>2]=m;a[(h&n)+1>>0]=k}Mk(q,l,1);c[(ea&p)>>2]=h;break}case 288:{h=Zq(ca,57,0,0,0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=4;c[(ea&p)+4>>2]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 289:{h=Zq(ca,57,0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)>>2]=h;if(h)a[(h&n)+1>>0]=c[(f+(da+-3<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 290:{c[(ea&p)>>2]=1;break}case 292:{c[(ea&p)>>2]=3;break}case 293:{k=c[(f+(da<<4)&p)+16>>2]|0;h=c[(f+(da+-1<<4)&p)+16>>2]|0;w=c[(ca&p)>>2]|0;do if((a[(w&n)+65>>0]|0)==0?(Gn(ca)|0)==0:0){x=c[(k&p)+12>>2]|0;v=c[(k&p)+16>>2]|0;u=w+20|0;if((c[(u&p)>>2]|0)>0){q=(x|0)==0;m=w+16|0;l=0;s=0;do{r=(l|0)<2^l;t=c[(m&p)>>2]|0;if(!(!q?(dd(c[(t+(r<<4)&p)>>2]|0,x)|0)!=0:0)){t=bn((c[(t+(r<<4)&p)+12>>2]|0)+40|0,v,L)|0;if(t){s=c[(t&p)+8>>2]|0;if(s)break}else s=0}l=l+1|0}while((l|0)<(c[(u&p)>>2]|0));if(s){Qr(ca,s);break}}if(!h){c[(ba&p)>>2]=k;c[(ba&p)+4>>2]=0;th(ca,29600,ba)}else zr(ca,x);a[(ca&n)+17>>0]=1}while(0);Do(w,k);break}case 294:{ba=c[(f+(da+-3<<4)&p)+16>>2]|0;Rr(ca,24,29360,ba,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 303:{Tr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 304:{z=c[(f+(da+-3<<4)&p)+16>>2]|0;x=f+(da<<4)+16|0;y=c[(ca&p)>>2]|0;k=y+24|0;l=c[(k&p)>>2]|0;do if((a[(y&n)+65>>0]|0)==0?(X=Ur(ca,0,z+8|0)|0,(X|0)!=0):0){t=c[(ca&p)>>2]|0;A=X+68|0;v=c[(A&p)>>2]|0;j:do if(v){u=c[(t&p)+20>>2]|0;if((u|0)>0){t=c[(t&p)+16>>2]|0;r=0;while(1){s=r+1|0;if((c[(t+(r<<4)&p)+12>>2]|0)==(v|0)){s=r;break j}if((s|0)<(u|0))r=s;else break}}else s=0}else s=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(s<<4)&p)>>2]|0;c[(k&p)>>2]=c[(k&p)>>2]|2097152;q=Wq(y,x)|0;if(q){if((_h(y,q,h)|0)==0?(bq(y,q,h)|0)==0:0){if(Vr(ca,c[(X&p)>>2]|0)|0)break;if(Lr(ca,q)|0)break;t=c[(X&p)>>2]|0;if(c[(X&p)+12>>2]|0){c[(ba&p)>>2]=t;th(ca,26088,ba);break}if(Sq(ca,26,h,t,0)|0)break;if(hr(ca,X)|0)break;if(!(a[(X&n)+44>>0]&16))m=0;else{t=c[(X&p)+60>>2]|0;k:do if(!t)t=0;else while(1){if((c[(t&p)>>2]|0)==(y|0))break k;t=c[(t&p)+24>>2]|0;if(!t){t=0;break}}while(0);m=(c[((c[(c[(t&p)+8>>2]&p)>>2]|0)&p)+76>>2]|0)==0?0:t}t=Oq(ca)|0;if(!t)break;aa=(m|0)!=0;r=ca+408|0;$=c[(r&p)>>2]|0;$=($|0)==0?ca:$;Ar(ca,s);_=$+328|0;c[(_&p)>>2]=c[(_&p)>>2]|1<<s;$=$+20|0;a[($&n)>>0]=d[($&n)>>0]|aa&1;Dr(ca,s);if(aa){$=ca+72|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;xh(t,wh(t,97,0,aa,0)|0,q,0);xh(t,wh(t,152,aa,0,0)|0,m,-10);aa=c[(r&p)>>2]|0;a[(((aa|0)==0?ca:aa)&n)+21>>0]=1}x=c[(X&p)>>2]|0;w=Nn(x,-1)|0;do if((c[(k&p)>>2]&524288|0)!=0?(T=bn((c[(A&p)>>2]|0)+56|0,x,V)|0,(T|0)!=0):0){t=c[(T&p)+8>>2]|0;if(!t)break;r=t;t=0;do{t=Wr(c[(ca&p)>>2]|0,t,c[(c[(r&p)>>2]&p)>>2]|0)|0;r=c[(r&p)+12>>2]|0}while((r|0)!=0);if(!t)break;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=x;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=t;Br(ca,26120,ba);mg(y,t)}while(0);c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(s|0)==1?13184:13208;c[(ba&p)+8>>2]=q;c[(ba&p)+12>>2]=q;c[(ba&p)+16>>2]=q;c[(ba&p)+20>>2]=q;c[(ba&p)+24>>2]=q;c[(ba&p)+28>>2]=w;c[(ba&p)+32>>2]=x;Br(ca,26192,ba);if(_h(y,26576,h)|0){aa=c[(X&p)>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=aa;Br(ca,26592,ba)}s=Xr(ca,X)|0;if(s){c[(ba&p)>>2]=q;c[(ba&p)+4>>2]=q;c[(ba&p)+8>>2]=s;Br(ca,26656,ba);mg(y,s)}do if(c[(k&p)>>2]&524288){s=bn((c[(A&p)>>2]|0)+56|0,c[(X&p)>>2]|0,ba)|0;if(!s)break;s=c[(s&p)+8>>2]|0;if(!s)break;do{r=c[(s&p)>>2]|0;if((r|0)!=(X|0))Yr(ca,r,c[(r&p)>>2]|0);s=c[(s&p)+12>>2]|0}while((s|0)!=0)}while(0);Yr(ca,X,q);break}c[(ba&p)>>2]=q;th(ca,26024,ba)}else q=0}else q=0;while(0);Do(y,z);mg(y,q);c[(k&p)>>2]=l;break}case 295:{ba=c[(f+(da<<4)&p)+16>>2]|0;Rr(ca,25,29176,ba,0,0,ba);break}case 300:{Sr(ca,0,0);break}case 302:{Tr(ca,0,0);break}case 301:{Sr(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0);break}case 305:{y=c[(ca&p)>>2]|0;if((c[(ca&p)+64>>2]|0)==0?(M=y+65|0,(a[(M&n)>>0]|0)==0):0){l=c[(ca&p)+484>>2]|0;t=c[(l&p)+68>>2]|0;l:do if(t){s=c[(y&p)+20>>2]|0;if((s|0)>0){r=c[(y&p)+16>>2]|0;m=0;while(1){q=m+1|0;if((c[(r+(m<<4)&p)+12>>2]|0)==(t|0)){A=m;break l}if((q|0)<(s|0))m=q;else{A=q;break}}}else A=0}else A=-1e6;while(0);h=c[((c[(y&p)+16>>2]|0)+(A<<4)&p)>>2]|0;k=(c[(l&p)>>2]|0)+16|0;u=(b[(l&o)+38>>1]|0)+-1|0;s=c[(l&p)+4>>2]|0;t=c[(s+(u*24|0)&p)+4>>2]|0;z=_h(y,k,h)|0;if(!(Sq(ca,26,h,c[(z&p)>>2]|0,0)|0)){if(!t)v=0;else v=(a[(t&n)>>0]|0)==101?0:t;if(a[(s+(u*24|0)&n)+23>>0]&1){th(ca,25608,ba);break a}if(c[(l&p)+8>>2]|0){th(ca,25640,ba);break a}x=y+24|0;if((c[(x&p)>>2]&524288|0)!=0?(c[(l&p)+16>>2]|0)!=0&(v|0)!=0:0){th(ca,25672,ba);break a}w=(v|0)!=0;if(!((a[(s+(u*24|0)&n)+20>>0]|0)==0|w)){th(ca,25736,ba);break a}do if(w){c[(O&p)>>2]=0;if(Zr(y,v,1,65,O)|0){a[(M&n)>>0]=1;break a}t=c[(O&p)>>2]|0;if(!t){th(ca,25792,ba);break a}else{Mh(t);break}}while(0);t=c[(f+(da<<4)&p)+16>>2]|0;s=f+(da<<4)+20|0;r=c[(s&p)>>2]|0;if((t|0)!=0?(U=jw(r|0,0,1,0)|0,U=mh(y,U,G)|0,(U|0)!=0):0){kw(U|0,t|0,r|0)|0;a[(U+r&n)>>0]=0;t=(c[(s&p)>>2]|0)+-1|0;s=c[(x&p)>>2]|0;m:do if((t|0)>0){t=U+t|0;do{$=a[(t&n)>>0]|0;if($<<24>>24!=59?(a[($&255&n)+10368>>0]&1)==0:0)break m;a[(t&n)>>0]=0;t=t+-1|0}while(t>>>0>U>>>0)}while(0);c[(x&p)>>2]=c[(x&p)>>2]|2097152;$=c[(l&p)+48>>2]|0;c[(ba&p)>>2]=h;c[(ba&p)+4>>2]=(A|0)==1?13184:13208;c[(ba&p)+8>>2]=$;c[(ba&p)+12>>2]=U;c[(ba&p)+16>>2]=$+1;c[(ba&p)+20>>2]=k;Br(ca,25840,ba);mg(y,U);c[(x&p)>>2]=s}t=w?3:2;v=Oq(ca)|0;if(v){s=ca+19|0;q=a[(s&n)>>0]|0;do if(q<<24>>24){ba=q+-1<<24>>24;a[(s&n)>>0]=ba;r=c[(ca+((ba&255)<<2)&p)+24>>2]|0;if(!(ba<<24>>24)){s=c[(ca&p)+72>>2]|0;aa=663;break}else{k=q+-2<<24>>24;a[(s&n)>>0]=k;k=c[(ca+((k&255)<<2)&p)+24>>2]|0;break}}else{r=ca+72|0;s=(c[(r&p)>>2]|0)+1|0;c[(r&p)>>2]=s;r=s;aa=663}while(0);if((aa|0)==663){k=s+1|0;c[(ca&p)+72>>2]=k}wh(v,51,A,r,2)|0;m=v+96|0;c[(m&p)>>2]=c[(m&p)>>2]|1<<A;wh(v,25,t,k,0)|0;m=wh(v,83,k,0,r)|0;l=v+4|0;q=c[(l&p)>>2]|0;s=v+32|0;if(q)a[(q+(((c[(s&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(v,52,A,2,k)|0;s=c[(s&p)>>2]|0;if(s>>>0>m>>>0)c[((c[(l&p)>>2]|0)+(m*20|0)&p)+8>>2]=s;c[((c[(v&p)+24>>2]|0)&p)+88>>2]=s+-1;_r(ca,r);_r(ca,k)}Yr(ca,z,c[(z&p)>>2]|0)}}break}case 306:{w=c[(ca&p)>>2]|0;a[(w&n)+250>>0]=0;h=c[(f+(da<<4)&p)+16>>2]|0;x=w+65|0;do if((a[(x&n)>>0]|0)==0?(Q=Ur(ca,0,h+8|0)|0,(Q|0)!=0):0){if(a[(Q&n)+44>>0]&16){th(ca,25400,ba);break}if(c[(Q&p)+12>>2]|0){th(ca,25440,ba);break}if(!(Vr(ca,c[(Q&p)>>2]|0)|0)){s=c[(Q&p)+68>>2]|0;n:do if(s){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0)){m=t;break n}if((m|0)<(r|0))t=m;else break}}else m=0}else m=-1e6;while(0);v=mh(w,76,0)|0;if(v){y=v+0|0;k=y+76|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0));c[(ca&p)+484>>2]=v;r=v+40|0;b[(r&o)>>1]=1;t=b[(Q&o)+38>>1]|0;q=v+38|0;b[(q&o)>>1]=t;t=((((t<<16>>16)+-1|0)/8|0)*192|0)+192|0;s=mh(w,t,0)|0;if(s)fw(s|0,0,t|0)|0;t=v+4|0;c[(t&p)>>2]=s;c[(ba&p)>>2]=c[(Q&p)>>2];ba=uh(w,25472,ba)|0;c[(v&p)>>2]=ba;s=c[(t&p)>>2]|0;if((s|0)==0|(ba|0)==0){a[(x&n)>>0]=1;break}kw(s|0,c[(Q&p)+4>>2]|0,(b[(q&o)>>1]|0)*24|0)|0;if((b[(q&o)>>1]|0)>0){s=0;do{ba=c[(t&p)>>2]|0;aa=ba+(s*24|0)|0;c[(aa&p)>>2]=kh(w,c[(aa&p)>>2]|0)|0;ba=ba+(s*24|0)+4|0;s=s+1|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;c[(ba&p)+8>>2]=0;c[(ba&p)+12>>2]=0}while((s|0)<(b[(q&o)>>1]|0))}c[(v&p)+68>>2]=c[((c[(w&p)+16>>2]|0)+(m<<4)&p)+12>>2];c[(v&p)+48>>2]=c[(Q&p)+48>>2];b[(r&o)>>1]=1;ba=c[(ca&p)+408>>2]|0;Ar(ca,m);ba=((ba|0)==0?ca:ba)+328|0;c[(ba&p)>>2]=c[(ba&p)>>2]|1<<m;if(Oq(ca)|0)Dr(ca,m)}}}while(0);Do(w,h);break}case 309:{$r(ca,0);break}case 310:{$r(ca,f+(da<<4)+16|0);break}case 311:{k=f+(da<<4)+16|0;Uq(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,0,0,1,c[(f+(da+-4<<4)&p)+16>>2]|0);t=c[(ca&p)+484>>2]|0;if(t){h=c[(ca&p)>>2]|0;s=c[(t&p)+68>>2]|0;o:do if(s){r=c[(h&p)+20>>2]|0;if((r|0)>0){m=c[(h&p)+16>>2]|0;l=0;while(1){q=l+1|0;if((c[(m+(l<<4)&p)+12>>2]|0)==(s|0)){q=l;break o}if((q|0)<(r|0))l=q;else break}}else q=0}else q=-1e6;while(0);l=t+44|0;a[(l&n)>>0]=d[(l&n)>>0]|16;c[(t&p)+52>>2]=0;as(h,t,Wq(h,k)|0);as(h,t,0);as(h,t,kh(h,c[(t&p)>>2]|0)|0);c[(ca&p)+500>>2]=(c[(k&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0)-(c[(ca&p)+496>>2]|0);l=c[(t&p)+56>>2]|0;if(l)Sq(ca,29,c[(t&p)>>2]|0,c[(l&p)>>2]|0,c[((c[((c[(ca&p)>>2]|0)&p)+16>>2]|0)+(q<<4)&p)>>2]|0)|0}break}case 322:{c[(ea&p)>>2]=0;break}case 324:case 323:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 325:{c[(ea&p)>>2]=cs(ca,0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 326:{c[(ea&p)>>2]=cs(ca,c[(f+(da+-7<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;break}case 314:{bs(ca);c[(ca&p)+512>>2]=0;c[(ca&p)+516>>2]=0;break}case 318:case 317:case 316:{l=ca+512|0;k=c[(l&p)>>2]|0;h=c[(f+(da<<4)&p)+16>>2]|0;if(!k){c[(l&p)>>2]=h;h=c[(f+(da<<4)&p)+20>>2]|0}else h=h+(c[(f+(da<<4)&p)+20>>2]|0)-k|0;c[(ca&p)+516>>2]=h;break}case 77:{c[(ea&p)>>2]=8;break}case 78:{c[(ea&p)>>2]=9;break}case 79:{c[(ea&p)>>2]=6;break}case 80:{c[(ea&p)>>2]=0;break}case 103:case 100:case 98:case 82:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 86:{c[(ea&p)+4>>2]=0;c[(ea&p)>>2]=0;break}case 87:{aa=f+(da+-1<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;break}case 90:{c[(ca&p)+324>>2]=0;break}case 109:{h=da+-7|0;r=f+(da+-3<<4)+16|0;q=f+(da+-2<<4)+16|0;x=c[(f+(da<<4)&p)+16>>2]|0;t=c[(f+(da+-6<<4)&p)+16>>2]|0;s=c[(f+(da+-4<<4)&p)+16>>2]|0;c[(I&p)>>2]=0;w=c[(ca&p)>>2]|0;if((c[(ca&p)+440>>2]|0)>0){th(ca,35440,ba);Mk(w,x,1);break a}Uq(ca,r,q,t,1,0,s);l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(c[(ca&p)+64>>2]|0)==0:0){er(ca,r,q,I)|0;t=c[(l&p)+68>>2]|0;p:do if(t){r=c[(w&p)+20>>2]|0;if((r|0)>0){q=c[(w&p)+16>>2]|0;m=0;while(1){s=m+1|0;if((c[(q+(m<<4)&p)+12>>2]|0)==(t|0)){s=m;break p}if((s|0)<(r|0))m=s;else break}}else s=0}else s=-1e6;while(0);ba=c[(I&p)>>2]|0;aa=c[(ca&p)>>2]|0;c[(_&p)>>2]=ca;aa=c[(aa&p)+16>>2]|0;c[(_&p)+12>>2]=c[(aa+(s<<4)&p)>>2];c[(_&p)+4>>2]=c[(aa+(s<<4)&p)+12>>2];c[(_&p)+16>>2]=35480;c[(_&p)+20>>2]=ba;c[(_&p)+8>>2]=(s|0)==1&1;if(fr(_,x)|0){Mk(w,x,1);break a}c[(l&p)+12>>2]=gr(w,x,1)|0;Mk(w,x,1);if(a[(w&n)+65>>0]|0)break a;if(!(a[(w&n)+145>>0]|0))hr(ca,l)|0;q=ca+504|0;m=c[(q&p)>>2]|0;q=c[(q&p)+4>>2]|0;ba=$;c[(ba&p)>>2]=m;c[(ba&p)+4>>2]=q;ba=a[(m&n)>>0]|0;if(!(ba<<24>>24==59|ba<<24>>24==0)){m=m+q|0;c[($&p)>>2]=m}r=$+4|0;c[(r&p)>>2]=0;s=c[(f+(h<<4)&p)+16>>2]|0;q=m-s|0;do{ba=q;q=q+-1|0;l=s+q|0;if((ba|0)<=0)break}while((a[((d[(l&n)>>0]|0)&n)+10368>>0]&1)!=0);c[($&p)>>2]=l;c[(r&p)>>2]=1;Vq(ca,0,$,0,0);break a}Mk(w,x,1);break}case 93:{_q(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,0);break}case 94:{$q(ca,0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0,0,0)|0;break}case 95:{ar(ca,c[(f+(da+-2<<4)&p)+16>>2]|0);break}case 96:{br(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-3<<4)+16|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);k=c[(f+(da<<4)&p)+16>>2]|0;l=c[(ca&p)+484>>2]|0;if((l|0)!=0?(q=c[(l&p)+16>>2]|0,(q|0)!=0):0)a[(q&n)+24>>0]=k;break}case 99:{c[(ea&p)>>2]=10;break}case 101:{a[(ea&n)>>0]=10;break}case 102:{a[(ea&n)>>0]=c[(f+(da<<4)&p)+16>>2];break}case 104:{c[(ea&p)>>2]=4;break}case 105:{c[(ea&p)>>2]=5;break}case 106:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 110:{dr(ca,c[(f+(da<<4)&p)+16>>2]|0,1,c[(f+(da+-1<<4)&p)+16>>2]|0);break}case 111:{c[(z&p)>>2]=c[5124];c[(z&p)+4>>2]=c[5125];c[(z&p)+8>>2]=c[5126];c[(z&p)+12>>2]=c[5127];c[(z&p)+16>>2]=c[5128];ba=f+(da<<4)+16|0;ir(ca,c[(ba&p)>>2]|0,z)|0;Mk(c[(ca&p)>>2]|0,c[(ba&p)>>2]|0,1);break}case 112:{t=c[(f+(da<<4)&p)+16>>2]|0;do if(t){c[(t&p)+68>>2]=c[(f+(da+-1<<4)&p)+16>>2];l=c[(t&p)+52>>2]|0;if(l){m=128;q=1;r=t;s=0;while(1){c[(r&p)+56>>2]=s;$=r+6|0;aa=e[($&o)>>1]|64;b[($&o)>>1]=aa;m=aa&m;if(!l)break;aa=l;l=c[(l&p)+52>>2]|0;q=q+1|0;s=r;r=aa}if(m){ca=t+6|0;b[(ca&o)>>1]=e[(ca&o)>>1]|256;break}aa=c[((c[(ca&p)>>2]|0)&p)+104>>2]|0;if((aa|0)>0&(q|0)>(aa|0))th(ca,20520,ba)}}else Qn(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0);while(0);c[(ea&p)>>2]=t;break}case 116:{c[(ea&p)>>2]=116;break}case 119:case 113:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 114:{h=c[(f+(da<<4)&p)+16>>2]|0;do if(h){if(c[(h&p)+52>>2]|0){c[(l&p)+4>>2]=0;h=kr(ca,0,jr(ca,0,0,0,l,h,0,0)|0,0,0,0,0,0,0,0)|0;if(!h){aa=192;break}}ba=c[(f+(da+-1<<4)&p)+16>>2]|0;a[(h&n)+4>>0]=ba;c[(h&p)+52>>2]=c[(f+(da+-2<<4)&p)+16>>2];if((ba|0)!=116)a[(ca&n)+22>>0]=1}else aa=192;while(0);if((aa|0)==192){Mk(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,1);h=0}c[(ea&p)>>2]=h;break}case 121:{h=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;if(!h){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}else{a[(h&n)+4>>0]=116;c[(h&p)+52>>2]=c[(f+(da+-4<<4)&p)+16>>2];c[(ea&p)>>2]=h;break a}}case 122:{b[(ea&o)>>1]=1;break}case 124:case 123:{b[(ea&o)>>1]=0;break}case 242:case 236:case 161:case 154:case 126:{c[(ea&p)>>2]=0;break}case 243:case 125:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 167:{c[(ea&p)>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da<<4)&p)+16>>2];break}case 168:{c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 169:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}ba=f+(da+-2<<4)+16|0;or(ca,c[(ba&p)>>2]|0,f+(da+-1<<4)+16|0);rr(ca,c[(ba&p)>>2]|0,c[(f+(da<<4)&p)+16>>2]|0);break}case 176:{h=c[(f+(da+-6<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,0,c[(f+(da+-2<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 173:{ba=lr(ca,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 174:{ba=lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;mr(ca,ba,f+(da+-2<<4)+16|0,1);break}case 175:{h=c[(f+(da+-5<<4)&p)+16>>2]|0;if(h){ba=ca+532|0;c[(h&p)+4>>2]=c[(ba&p)>>2];c[(ba&p)>>2]=h;a[(ca&n)+449>>0]=1}tr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,d[(f+(da+-4<<4)&n)+16>>0]|0);break}case 181:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,f+(da<<4)+16|0)|0;break}case 182:{c[(ea&p)>>2]=ur(c[(ca&p)>>2]|0,0,f+(da<<4)+16|0)|0;break}case 183:{ca=f+(da<<4)+16|0;c[(ea&p)>>2]=c[(ca&p)>>2];c[(ea&p)+4>>2]=c[(ca&p)+4>>2];c[(ea&p)+8>>2]=c[(ca&p)+8>>2];break}case 177:{a[(ea&n)>>0]=a[(f+(da<<4)&n)+16>>0]|0;break}case 178:{a[(ea&n)>>0]=5;break}case 184:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 191:case 190:case 185:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 187:case 186:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,27,0,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 188:{aa=f+(da+-2<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,27,0,0,ba)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 189:{aa=f+(da+-4<<4)+16|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=Zq(ca,122,Zq(ca,27,0,0,aa)|0,Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,Zq(ca,27,0,0,ba)|0,0)|0,0)|0;c[(ea&p)+4>>2]=c[(aa&p)>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 192:{x=f+(da<<4)+16|0;w=f+(da<<4)+20|0;do if(((c[(w&p)>>2]|0)>>>0>1?(C=c[(x&p)>>2]|0,(a[(C&n)>>0]|0)==35):0)?((d[(C&n)+1>>0]|0)+-48|0)>>>0<10:0){if(!(a[(ca&n)+18>>0]|0)){c[(ba&p)>>2]=x;th(ca,20432,ba);c[(ea&p)>>2]=0;break}r=Zq(ca,159,0,0,x)|0;c[(ea&p)>>2]=r;if(r)Dn((c[(x&p)>>2]|0)+1|0,r+28|0)|0}else aa=298;while(0);q:do if((aa|0)==298?(P=Zq(ca,135,0,0,x)|0,c[(ea&p)>>2]=P,W=c[(x&p)>>2]|0,c[(ea&p)+4>>2]=W,c[(ea&p)+8>>2]=W+(c[(w&p)>>2]|0),W=c[(ca&p)>>2]|0,(P|0)!=0):0){z=c[(P&p)+8>>2]|0;r=z+1|0;do if(a[(r&n)>>0]|0){y=(z|0)==0;if(y)A=0;else{t=z;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;A=t-z&1073741823}r:do if((a[(z&n)>>0]|0)==63){$=Ul(r,H,A+-1|0,1)|0;m=H;q=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;t=q&65535;b[(P&o)+32>>1]=t;r=c[(W&p)+124>>2]|0;aa=((r|0)<0)<<31>>31;if((m|0)<0|(m|0)==0&q>>>0<1|($|0)!=0|((m|0)>(aa|0)|(m|0)==(aa|0)&q>>>0>r>>>0)){c[(ba&p)>>2]=r;th(ca,33296,ba);t=0}r=ca+440|0;aa=c[(r&p)>>2]|0;$=((aa|0)<0)<<31>>31;if((m|0)>($|0)|(m|0)==($|0)&q>>>0>aa>>>0)c[(r&p)>>2]=q}else{r=c[(ca&p)+444>>2]|0;s:do if((r|0)>0){q=c[(ca&p)+472>>2]|0;t=0;l=0;while(1){m=c[(q+(t<<2)&p)>>2]|0;if((m|0)!=0?(_v(m,z)|0)==0:0)break;l=l+1<<16>>16;t=l<<16>>16;if((t|0)>=(r|0)){aa=315;break s}}t=t+1&65535;r=P+32|0;b[(r&o)>>1]=t;if(t<<16>>16)break r}else aa=315;while(0);if((aa|0)==315)r=P+32|0;aa=ca+440|0;t=(c[(aa&p)>>2]|0)+1|0;c[(aa&p)>>2]=t;t=t&65535;b[(r&o)>>1]=t}while(0);m=t<<16>>16;if(t<<16>>16>0){t=ca+444|0;if((m|0)>(c[(t&p)>>2]|0)){r=ca+472|0;q=ro(W,c[(r&p)>>2]|0,m<<2,0)|0;if(!q)break q;c[(r&p)>>2]=q;aa=c[(t&p)>>2]|0;fw(q+(aa<<2)|0,0,m-aa<<2|0)|0;c[(t&p)>>2]=m}if((a[(z&n)>>0]|0)==63){r=m+-1|0;if(!(c[((c[(ca&p)+472>>2]|0)+(r<<2)&p)>>2]|0))t=0;else break}else{t=m+-1|0;r=t;t=c[((c[(ca&p)+472>>2]|0)+(t<<2)&p)>>2]|0}q=ca+472|0;mg(W,t);if(!y?(s=jw(A|0,0,1,0)|0,s=mh(W,s,G)|0,(s|0)!=0):0){kw(s|0,z|0,A|0)|0;a[(s+A&n)>>0]=0}else s=0;c[((c[(q&p)>>2]|0)+(r<<2)&p)>>2]=s}}else{$=ca+440|0;aa=(c[($&p)>>2]|0)+1|0;c[($&p)>>2]=aa;b[(P&o)+32>>1]=aa}while(0);if((c[(ca&p)+64>>2]|0)==0?(c[(ca&p)+440>>2]|0)>(c[(W&p)+124>>2]|0):0)th(ca,33344,ba)}while(0);ca=c[(x&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(w&p)>>2]|0);break}case 196:{ba=f+(da+-3<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 197:{ba=f+(da<<4)+16|0;c[(ea&p)>>2]=wr(ca,0,ba)|0;ca=c[(ba&p)>>2]|0;c[(ea&p)+4>>2]=ca;c[(ea&p)+8>>2]=ca+(c[(f+(da<<4)&p)+20>>2]|0);break}case 193:{aa=da+-2|0;ba=f+(da<<4)+16|0;c[(ea&p)>>2]=vr(ca,c[(f+(aa<<4)&p)+16>>2]|0,ba,1)|0;c[(ea&p)+4>>2]=c[(f+(aa<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(ba&p)>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 194:{c[(ea&p)>>2]=Zq(ca,38,c[(f+(da+-3<<4)&p)+16>>2]|0,0,f+(da+-1<<4)+16|0)|0;c[(ea&p)+4>>2]=c[(f+(da+-5<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 195:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;if(h){if((c[(h&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+112>>2]|0)){c[(ba&p)>>2]=f+(da+-4<<4)+16;th(ca,20576,ba);h=c[(l&p)>>2]|0}}else h=0;ba=f+(da+-4<<4)+16|0;h=wr(ca,h,ba)|0;c[(ea&p)>>2]=h;c[(ea&p)+4>>2]=c[(ba&p)>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);if(!((h|0)==0?1:(b[(f+(da+-2<<4)&o)+16>>1]|0)==0)){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|16}break}case 205:case 204:case 203:case 202:case 201:case 200:case 199:case 198:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da+-1<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 206:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=0;break}case 207:{aa=f+(da<<4)+16|0;ba=c[(aa&p)+4>>2]|0;ca=ea;c[(ca&p)>>2]=c[(aa&p)>>2];c[(ca&p)+4>>2]=ba;c[(ea&p)+8>>2]=1;break}case 208:{l=da+-2|0;ba=da+-1|0;h=wr(ca,lr(ca,lr(ca,0,c[(f+(da<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 210:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(da<<4)&n)+14>>0]|0,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 209:{l=da+-4|0;ba=da+-3|0;h=wr(ca,lr(ca,lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(l<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0,f+(ba<<4)+16|0)|0;c[(ea&p)>>2]=h;if(c[(f+(ba<<4)&p)+24>>2]|0){h=Zq(ca,19,h,0,0)|0;c[(ea&p)>>2]=h}c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];if(h){ca=h+4|0;c[(ca&p)>>2]=c[(ca&p)>>2]|128}break}case 223:{l=f+(da+-1<<4)+16|0;h=c[(l&p)>>2]|0;do if(h){if((c[(h&p)>>2]|0)==1){ba=c[(h&p)+4>>2]|0;h=c[(ba&p)>>2]|0;c[(ba&p)>>2]=0;Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);if(h){ba=h+4|0;c[(ba&p)>>2]=c[(ba&p)>>2]&-769|512}c[(ea&p)>>2]=Zq(ca,(c[(f+(da+-3<<4)&p)+16>>2]|0)!=0?78:79,c[(f+(da+-4<<4)&p)+16>>2]|0,h,0)|0;break}h=Zq(ca,75,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h){Nk(c[(ca&p)>>2]|0,c[(l&p)>>2]|0);h=0}else{c[(h&p)+20>>2]=c[(l&p)>>2];h=c[(ea&p)>>2]|0;yr(ca,h)}if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,h,0,0)|0}else{c[(ea&p)>>2]=Zq(ca,132,0,0,20616+(c[(f+(da+-3<<4)&p)+16>>2]<<3)|0)|0;Gk(c[(ca&p)>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0)}while(0);c[(ea&p)+4>>2]=c[(f+(da+-4<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 211:{ba=da+-2|0;c[(ea&p)>>2]=Zq(ca,77,c[(f+(ba<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+20>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 212:{$=da+-2|0;aa=f+(da<<4)+16|0;ba=Zq(ca,73,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,76);break}case 213:{$=da+-3|0;aa=f+(da<<4)+16|0;ba=Zq(ca,148,c[(f+($<<4)&p)+16>>2]|0,c[(aa&p)>>2]|0,0)|0;c[(ea&p)>>2]=ba;c[(ea&p)+4>>2]=c[(f+($<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];xr(ca,c[(aa&p)>>2]|0,ba,77);break}case 215:case 214:{ba=da+-1|0;c[(ea&p)>>2]=Zq(ca,d[(f+(ba<<4)&n)+14>>0]|0,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(ba<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 216:{c[(ea&p)>>2]=Zq(ca,157,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 217:{c[(ea&p)>>2]=Zq(ca,158,c[(f+(da<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(da+-1<<4)&p)+16>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 220:{k=lr(ca,lr(ca,0,c[(f+(da+-2<<4)&p)+16>>2]|0)|0,c[(f+(da<<4)&p)+16>>2]|0)|0;l=da+-4|0;h=Zq(ca,74,c[(f+(l<<4)&p)+16>>2]|0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Nk(c[(ca&p)>>2]|0,k);else c[(h&p)+20>>2]=k;if(c[(f+(da+-3<<4)&p)+16>>2]|0)c[(ea&p)>>2]=Zq(ca,19,c[(ea&p)>>2]|0,0,0)|0;c[(ea&p)+4>>2]=c[(f+(l<<4)&p)+20>>2];c[(ea&p)+8>>2]=c[(f+(da<<4)&p)+24>>2];break}case 224:{h=Zq(ca,119,0,0,0)|0;c[(ea&p)>>2]=h;if(!h)Mk(c[(ca&p)>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,1);else{c[(h&p)+20>>2]=c[(f+(da+-1<<4)&p)+16>>2];ba=c[(ea&p)>>2]|0;aa=ba+4|0;c[(aa&p)>>2]=c[(aa&p)>>2]|2099200;yr(ca,ba)}c[(ea&p)+4>>2]=c[(f+(da+-2<<4)&p)+16>>2];c[(ea&p)+8>>2]=(c[(f+(da<<4)&p)+16>>2]|0)+(c[(f+(da<<4)&p)+20>>2]|0);break}case 118:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,c[(f+(da+-5<<4)&p)+16>>2]|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,b[(f+(da+-7<<4)&o)+16>>1]|0,c[(f+(da<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+20>>2]|0)|0;break}case 120:{c[(ea&p)>>2]=kr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,0,0,0,0,0,128,0,0)|0;break}case 127:{l=da+-1|0;q=lr(ca,c[(f+(da+-2<<4)&p)+16>>2]|0,c[(f+(l<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=q;if(c[(f+(da<<4)&p)+20>>2]|0)mr(ca,q,f+(da<<4)+16|0,1);s=c[(ca&p)>>2]|0;if(q){r=(c[(q&p)+4>>2]|0)+(((c[(q&p)>>2]|0)+-1|0)*20|0)+8|0;mg(s,c[(r&p)>>2]|0);m=c[(f+(l<<4)&p)+20>>2]|0;q=(c[(f+(l<<4)&p)+24>>2]|0)-m|0;if((m|0)!=0?(h=jw(q|0,((q|0)<0)<<31>>31|0,1,0)|0,h=mh(s,h,G)|0,(h|0)!=0):0){kw(h|0,m|0,q|0)|0;a[(h+q&n)>>0]=0}else h=0;c[(r&p)>>2]=h}break}case 133:{l=mh(c[(ca&p)>>2]|0,80,0)|0;if(l){y=l+0|0;k=y+80|0;do{a[(y&n)>>0]=0;y=y+1|0}while((y|0)<(k|0))}c[(ea&p)>>2]=l;break}case 134:{q=c[(f+(da<<4)&p)+16>>2]|0;c[(ea&p)>>2]=q;if(q){l=c[(q&p)>>2]|0;k=l+-1|0;if((k|0)>0)while(1){a[(q+(k*72|0)&n)+44>>0]=a[(q+((l+-2|0)*72|0)&n)+44>>0]|0;l=k+-1|0;if((l|0)>0){ca=k;k=l;l=ca}else break}a[(q&n)+44>>0]=0}break}case 128:{aa=c[(ca&p)>>2]|0;c[(ba&p)>>2]=0;c[(ba&p)+4>>2]=0;ba=nr(aa,116,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-1<<4)&p)+16>>2]|0,ba)|0;break}case 132:{c[(ea&p)+4>>2]=0;break}case 129:{ba=Zq(ca,116,0,0,f+(da<<4)+16|0)|0;ba=Zq(ca,122,Zq(ca,27,0,0,f+(da+-2<<4)+16|0)|0,ba,0)|0;c[(ea&p)>>2]=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,ba)|0;break}case 136:{c[(ea&p)>>2]=0;break}case 137:{ba=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,f+(da+-5<<4)+16|0,f+(da+-4<<4)+16|0,f+(da+-3<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=ba;or(ca,ba,f+(da+-2<<4)+16|0);break}case 135:{h=c[(f+(da+-1<<4)&p)+16>>2]|0;c[(ea&p)>>2]=h;if((h|0)!=0?(w=c[(h&p)>>2]|0,(w|0)>0):0)a[(h+((w+-1|0)*72|0)&n)+44>>0]=c[(f+(da<<4)&p)+16>>2];break}case 138:{c[(ea&p)>>2]=jr(ca,c[(f+(da+-6<<4)&p)+16>>2]|0,0,0,f+(da+-2<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 139:{l=f+(da+-6<<4)+16|0;q=c[(l&p)>>2]|0;if((((q|0)==0?(c[(f+(da+-2<<4)&p)+20>>2]|0)==0:0)?(c[(f+(da+-1<<4)&p)+16>>2]|0)==0:0)?(c[(f+(da<<4)&p)+16>>2]|0)==0:0){c[(ea&p)>>2]=c[(f+(da+-4<<4)&p)+16>>2];break a}s=f+(da+-4<<4)+16|0;k=c[(s&p)>>2]|0;r=c[(k&p)>>2]|0;if((r|0)==1){l=jr(ca,q,0,0,f+(da+-2<<4)+16|0,0,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=l;if(l){_=(c[(l&p)>>2]|0)+-1|0;ba=c[(s&p)>>2]|0;aa=ba+16|0;c[(l+(_*72|0)&p)+16>>2]=c[(aa&p)>>2];$=ba+12|0;c[(l+(_*72|0)&p)+12>>2]=c[($&p)>>2];ba=ba+28|0;c[(l+(_*72|0)&p)+28>>2]=c[(ba&p)>>2];c[($&p)>>2]=0;c[(aa&p)>>2]=0;c[(ba&p)>>2]=0}Do(c[(ca&p)>>2]|0,c[(s&p)>>2]|0);break a}if(k){m=r+-1|0;if((m|0)>0){q=r;while(1){a[(k+(m*72|0)&n)+44>>0]=a[(k+((q+-2|0)*72|0)&n)+44>>0]|0;q=m+-1|0;if((q|0)>0){ba=m;m=q;q=ba}else break}}a[(k&n)+44>>0]=0}ba=kr(ca,0,k,0,0,0,0,512,0,0)|0;c[(ea&p)>>2]=jr(ca,c[(l&p)>>2]|0,0,0,f+(da+-2<<4)+16|0,ba,c[(f+(da+-1<<4)&p)+16>>2]|0,c[(f+(da<<4)&p)+16>>2]|0)|0;break}case 149:case 140:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 144:{c[(ea&p)>>2]=qr(ca,f+(da+-1<<4)+16|0,0,0)|0;break}case 145:{c[(ea&p)>>2]=qr(ca,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0,0)|0;break}case 146:{c[(ea&p)>>2]=qr(ca,f+(da+-3<<4)+16|0,f+(da+-2<<4)+16|0,f+(da+-1<<4)+16|0)|0;break}case 233:case 231:case 171:case 164:case 147:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 234:case 232:case 170:case 163:case 148:{c[(ea&p)>>2]=0;break}case 151:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=1;break}case 143:{c[(ea&p)>>2]=1;break}case 142:{c[(ea&p)>>2]=pr(c[(ca&p)>>2]|0,0,f+(da+-1<<4)+16|0,f+(da<<4)+16|0)|0;break}case 157:{h=lr(ca,0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if((h|0)!=0?(k=c[(h&p)+4>>2]|0,(k|0)!=0):0)a[(k&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 160:case 158:{c[(ea&p)>>2]=0;break}case 159:{c[(ea&p)>>2]=1;break}case 165:{c[(ea&p)>>2]=0;c[(ea&p)+4>>2]=0;break}case 166:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];c[(ea&p)+4>>2]=0;break}case 179:case 153:{c[(ea&p)>>2]=0;break}case 180:case 152:{c[(ea&p)>>2]=c[(f+(da+-1<<4)&p)+16>>2];break}case 172:{l=c[(f+(da+-7<<4)&p)+16>>2]|0;if(l){aa=ca+532|0;c[(l&p)+4>>2]=c[(aa&p)>>2];c[(aa&p)>>2]=l;a[(ca&n)+449>>0]=1}m=f+(da+-4<<4)+16|0;or(ca,c[(m&p)>>2]|0,f+(da+-3<<4)+16|0);q=f+(da+-1<<4)+16|0;l=c[(q&p)>>2]|0;if(l){if((c[(l&p)>>2]|0)>(c[((c[(ca&p)>>2]|0)&p)+96>>2]|0)){c[(ba&p)>>2]=20560;th(ca,34544,ba);l=c[(q&p)>>2]|0}}else l=0;sr(ca,c[(m&p)>>2]|0,l,c[(f+(da<<4)&p)+16>>2]|0,d[(f+(da+-5<<4)&n)+16>>0]|0);break}case 235:case 162:case 155:{c[(ea&p)>>2]=c[(f+(da<<4)&p)+16>>2];break}case 156:{h=lr(ca,c[(f+(da+-3<<4)&p)+16>>2]|0,c[(f+(da+-1<<4)&p)+16>>2]|0)|0;c[(ea&p)>>2]=h;if(h)a[((c[(h&p)+4>>2]|0)+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+12>>0]=c[(f+(da<<4)&p)+16>>2];break}case 7:{a[(ca&n)+450>>0]=2;c[(ca&p)+440>>2]=0;break}case 23:{Tq(ca,1,f+(da<<4)+16|0);break}case 24:{Tq(ca,2,f+(da<<4)+16|0);break}case 26:{Uq(ca,f+(da+-1<<4)+16|0,f+(da<<4)+16|0,c[(f+(da+-4<<4)&p)+16>>2]|0,0,0,c[(f+(da+-2<<4)&p)+16>>2]|0);break}default:{}}while(0);h=a[(g<<1&n)+20912>>0]|0;r=h&255;q=a[(g<<1&n)+20913>>0]|0;m=q&255;s=(c[(f&p)>>2]|0)-m|0;c[(f&p)>>2]=s;l=b[((b[(e[(f+(da-m<<4)&o)+12>>1]<<1&o)+21568>>1]|0)+r<<1&o)+22184>>1]|0;k=l&65535;do if((l&65535)<642)if(!(q<<24>>24)){kq(f,k,r,ea);break}else{c[(f&p)>>2]=s+1;da=1-m+da|0;b[(f+(da<<4)&o)+12>>1]=l;a[(f+(da<<4)&n)+14>>0]=h;da=f+(da<<4)+16|0;c[(da&p)>>2]=c[(ea&p)>>2];c[(da&p)+4>>2]=c[(ea&p)+4>>2];c[(da&p)+8>>2]=c[(ea&p)+8>>2];break}else{h=c[(ga&p)>>2]|0;if((s|0)>-1)do Pn(f);while((c[(f&p)>>2]|0)>-1);c[(ga&p)>>2]=h}while(0);i=ha;return}function nq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=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,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,ga=0;da=i;i=i+64|0;if((i|0)>=(j|0))fa();ca=da+8|0;Z=da;q=da+24|0;h=da+16|0;l=xq(e,0,h)|0;do if(!l){if(c[(h&p)>>2]|0){l=ds(e,f)|0;if(!l)g=0;else k=4}else{l=1;k=4}if((k|0)==4){ba=e+43|0;k=(a[(ba&n)>>0]|0)==0;do if(!(a[(e&n)+46>>0]&2)){if(k?(m=e+4|0,aa=c[(m&p)>>2]|0,ac[c[((c[(aa&p)>>2]|0)&p)+40>>2]&63](aa,24,0)|0,m=c[(m&p)>>2]|0,m=pc[c[((c[(m&p)>>2]|0)&p)+56>>2]&31](m,0,1,10)|0,(m|0)!=0):0){h=l;g=m;break}aa=e+44|0;a[(aa&n)>>0]=1;k=xq(e,0,h)|0;if(!k){h=ds(e,f)|0;if(!h){h=0;g=0}else{$=d[(e&n)+45>>0]|0;_=$+1|0;$=7-$|0;if(!((a[(ba&n)>>0]|0)==0?(g=c[(e&p)+4>>2]|0,g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,_,$,10)|0,(g|0)!=0):0)){l=e+52|0;k=l+48|0;do{c[(l&p)>>2]=0;l=l+4|0}while((l|0)<(k|0));T=e+8|0;g=c[(T&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+24>>2]&127](g,Z)|0;a:do if(!g){U=Z;S=c[(U&p)+4>>2]|0;b:do if((S|0)>0|(S|0)==0&(c[(U&p)>>2]|0)>>>0>32){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,q,32,0,0)|0;if(g)break a;m=d[(q&n)+3>>0]|0;k=d[(q&n)+9>>0]<<16|d[(q&n)+8>>0]<<24;g=d[(q&n)+10>>0]<<8;l=k|g|d[(q&n)+11>>0];if(((d[(q&n)+1>>0]<<16|d[(q&n)>>0]<<24|d[(q&n)+2>>0]<<8|m&254|0)==931071618?!((l+-1&l|0)!=0|(l|0)>65536|(l|0)<512):0)?(U=m&1,V=e+65|0,a[(V&n)>>0]=U,W=e+36|0,c[(W&p)>>2]=l,c[(e&p)+104>>2]=d[(q&n)+13>>0]<<16|d[(q&n)+12>>0]<<24|d[(q&n)+14>>0]<<8|d[(q&n)+15>>0],X=e+84|0,S=q+16|0,Q=S,Q=d[(Q&n)>>0]|d[(Q&n)+1>>0]<<8|d[(Q&n)+2>>0]<<16|d[(Q&n)+3>>0]<<24,S=S+4|0,S=d[(S&n)>>0]|d[(S&n)+1>>0]<<8|d[(S&n)+2>>0]<<16|d[(S&n)+3>>0]<<24,Y=X,R=Y,a[(R&n)>>0]=Q,a[(R&n)+1>>0]=Q>>8,a[(R&n)+2>>0]=Q>>16,a[(R&n)+3>>0]=Q>>24,Y=Y+4|0,a[(Y&n)>>0]=S,a[(Y&n)+1>>0]=S>>8,a[(Y&n)+2>>0]=S>>16,a[(Y&n)+3>>0]=S>>24,Y=e+76|0,yq(U^1,q,24,0,Y),(c[(Y&p)>>2]|0)==(d[(q&n)+25>>0]<<16|d[(q&n)+24>>0]<<24|d[(q&n)+26>>0]<<8|d[(q&n)+27>>0]|0)):0){S=e+80|0;if((c[(S&p)>>2]|0)!=(d[(q&n)+29>>0]<<16|d[(q&n)+28>>0]<<24|d[(q&n)+30>>0]<<8|d[(q&n)+31>>0]|0)){l=0;g=0;break}if((d[(q&n)+5>>0]<<16|d[(q&n)+4>>0]<<24|d[(q&n)+6>>0]<<8|d[(q&n)+7>>0]|0)!=3007e3){c[(ca&p)>>2]=49983;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14;break a}w=l+24|0;U=Tc(w)|0;if(!U){g=7;break a}x=U+24|0;y=((w|0)<0)<<31>>31;q=jw(w|0,y|0,32,0)|0;m=G;R=Z;Q=c[(R&p)+4>>2]|0;c:do if(!((m|0)>(Q|0)|((m|0)==(Q|0)?q>>>0>(c[(R&p)>>2]|0)>>>0:0))){z=U+8|0;A=U+1|0;B=U+2|0;C=U+3|0;D=U+16|0;E=U+17|0;F=U+18|0;H=U+19|0;I=U+20|0;J=U+21|0;K=U+22|0;L=U+23|0;M=U+4|0;N=U+5|0;O=U+6|0;P=U+7|0;Q=e+68|0;R=e+72|0;u=(k>>>16|g)&65535;v=e+66|0;r=32;k=0;l=0;s=0;t=1;while(1){g=c[(T&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+8>>2]&31](g,U,w,r,k)|0;if(g){k=36;break}if(Zv(X,z,8)|0){g=s;k=37;break}k=d[(A&n)>>0]<<16|d[(U&n)>>0]<<24|d[(B&n)>>0]<<8|d[(C&n)>>0];if(!k){g=s;k=37;break}r=(a[(V&n)>>0]|0)==0&1;yq(r,U,8,Y,Y);yq(r,x,c[(W&p)>>2]|0,Y,Y);if((c[(Y&p)>>2]|0)!=(d[(E&n)>>0]<<16|d[(D&n)>>0]<<24|d[(F&n)>>0]<<8|d[(H&n)>>0]|0)){g=s;k=37;break}if((c[(S&p)>>2]|0)!=(d[(J&n)>>0]<<16|d[(I&n)>>0]<<24|d[(K&n)>>0]<<8|d[(L&n)>>0]|0)){g=s;break c}r=d[(N&n)>>0]<<16|d[(M&n)>>0]<<24|d[(O&n)>>0]<<8|d[(P&n)>>0];g=_o(e,t,k)|0;if(g){k=36;break}if(!r)g=s;else{c[(Q&p)>>2]=t;c[(R&p)>>2]=r;b[(v&o)>>1]=u;l=c[(Y&p)>>2]|0;g=c[(S&p)>>2]|0}k=jw(q|0,m|0,w|0,y|0)|0;r=G;s=Z;ea=c[(s&p)+4>>2]|0;if((r|0)>(ea|0)|((r|0)==(ea|0)?k>>>0>(c[(s&p)>>2]|0)>>>0:0))break c;else{ga=m;ea=q;q=k;m=r;s=g;t=t+1|0;k=ga;r=ea}}if((k|0)==36){Wc(U);break a}else if((k|0)==37){Wc(U);break b}}else{l=0;g=0}while(0);Wc(U)}else{l=0;g=0}}else{l=0;g=0}while(0);c[(e&p)+76>>2]=l;c[(e&p)+80>>2]=g;$o(e);k=c[(c[(e&p)+32>>2]&p)>>2]|0;c[(k&p)+96>>2]=0;c[(k&p)+100>>2]=0;g=k+104|0;c[(g&p)>>2]=-1;c[(k&p)+108>>2]=-1;c[(k&p)+112>>2]=-1;c[(k&p)+116>>2]=-1;k=e+68|0;l=c[(k&p)>>2]|0;if(l)c[(g&p)>>2]=l;if(!(c[(e&p)+72>>2]|0))g=0;else{g=c[(e&p)+100>>2]|0;c[(ca&p)>>2]=c[(k&p)>>2];c[(ca&p)+4>>2]=g;bd(283,14888,ca);g=0}}while(0);if(!(a[(ba&n)>>0]|0)){Z=c[(e&p)+4>>2]|0;pc[c[((c[(Z&p)>>2]|0)&p)+56>>2]&31](Z,_,$,9)|0}}c[(f&p)>>2]=1}}else{h=l;g=k}a[(aa&n)>>0]=0;if(!(a[(ba&n)>>0]|0)){ba=c[(e&p)+4>>2]|0;pc[c[((c[(ba&p)>>2]|0)&p)+56>>2]&31](ba,0,1,9)|0}}else if(k){h=e+4|0;g=c[(h&p)>>2]|0;g=pc[c[((c[(g&p)>>2]|0)&p)+56>>2]&31](g,0,1,6)|0;if(!g)if(!(a[(ba&n)>>0]|0)){h=c[(h&p)>>2]|0;pc[c[((c[(h&p)>>2]|0)&p)+56>>2]&31](h,0,1,5)|0;h=l;g=264}else{h=l;g=264}else h=l}else{h=l;g=264}while(0);if(h)break}if((c[(e&p)+52>>2]|0)!=3007e3){c[(ca&p)>>2]=50909;c[(ca&p)+4>>2]=10788;bd(14,14848,ca);g=14}}else g=l;while(0);i=da;return g|0}function oq(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,q=0,r=0,s=0,t=0,u=0;r=c[(h&p)>>2]|0;s=c[(g&p)>>2]|0;k=(r|0)>0;j=(f|0)>0;if(k|j){n=j;l=0;q=0;m=0;while(1){do if(n){j=d+(l<<1)|0;if(k?(t=s+(m<<1)|0,(c[(a+((e[(j&o)>>1]|0)<<2)&p)>>2]|0)>>>0>=(c[(a+((e[(t&o)>>1]|0)<<2)&p)>>2]|0)>>>0):0){k=t;u=7;break}l=l+1|0;k=j}else{k=s+(m<<1)|0;u=7}while(0);if((u|0)==7){u=0;m=m+1|0}n=b[(k&o)>>1]|0;k=c[(a+((n&65535)<<2)&p)>>2]|0;j=q+1|0;b[(i+(q<<1)&o)>>1]=n;if((l|0)<(f|0))l=((c[(a+((e[(d+(l<<1)&o)>>1]|0)<<2)&p)>>2]|0)==(k|0)&1)+l|0;k=(m|0)<(r|0);n=(l|0)<(f|0);if(!(k|n))break;else q=j}}else j=0;c[(g&p)>>2]=d;c[(h&p)>>2]=j;kw(d|0,i|0,j<<1|0)|0;return}function pq(a,b){a=a|0;b=b|0;var d=0,e=0;e=c[(a&p)+4>>2]|0;c[(e&p)+4>>2]=c[(a&p)>>2];a=c[((c[(e&p)>>2]|0)&p)+204>>2]|0;c[(a&p)+16>>2]=b;e=c[2217]|0;d=c[(a&p)+40>>2]|0;if((b|0)>-1)a=b;else{b=sw(b|0,((b|0)<0)<<31>>31|0,-1024,-1)|0;a=(c[(a&p)+24>>2]|0)+(c[(a&p)+20>>2]|0)|0;a=qw(b|0,G|0,a|0,((a|0)<0)<<31>>31|0)|0}jc[e&15](d,a);return}function qq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;g=(c[(b&p)+12>>2]|0)+136|0;e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;do if((f|0)==0&(e|0)==0)if(!(bh(c[(c[((c[(b&p)>>2]|0)&p)+32>>2]&p)>>2]|0,g)|0)){e=g;f=c[(e&p)>>2]|0;e=c[(e&p)+4>>2]|0;h=5;break}else{e=g;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=d;c[(e&p)>>2]=0;c[(e&p)+4>>2]=0;e=1;break}else h=5;while(0);if((h|0)==5){g=d;c[(g&p)>>2]=f;c[(g&p)+4>>2]=e;if((e|0)>0|(e|0)==0&f>>>0>0){a[(d&n)+42>>0]=1;e=0}else e=1}return e|0}function rq(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();o=r;c[(o&p)>>2]=d;d=b;b=0;a:while(1){h=c[(o&p)>>2]|0;g=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;k=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;l=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;m=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;h=c[(o&p)>>2]|0;e=c[(h&p)>>2]|0;c[(o&p)>>2]=h+4;if(!g){f=d;d=0}else{f=d;d=0;do{g=g+-1|0;h=a[(f&n)>>0]|0;if(((h&255)+-48|0)>>>0>=10)break a;d=(d*10|0)+-48+(h<<24>>24)|0;f=f+1|0}while((g|0)!=0)}if((d|0)<(k|0)|(d|0)>(l|0))break;if(!m){q=9;break}if((m|0)!=(a[(f&n)>>0]|0))break;c[(e&p)>>2]=d;d=f+1|0;b=b+1|0}if((q|0)==9){c[(e&p)>>2]=d;b=b+1|0}i=r;return b|0}function sq(b,e){b=b|0;e=e|0;var f=0,g=0,k=0,l=0.0,m=0,o=0.0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+64|0;if((i|0)>=(j|0))fa();v=x;t=x+56|0;u=x+52|0;f=x+48|0;r=x+44|0;s=x+40|0;c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=24;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=f;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=r;do if((rq(b,v)|0)==2){m=b+5|0;if((a[(m&n)>>0]|0)==58){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=59;c[(v&p)+12>>2]=0;c[(v&p)+16>>2]=s;if((rq(b+6|0,v)|0)!=1){f=1;break}m=b+8|0;if((a[(m&n)>>0]|0)==46?(g=b+9|0,k=a[(g&n)>>0]|0,((k&255)+-48|0)>>>0<10):0){o=0.0;l=1.0;do{o=o*10.0+ +(k<<24>>24)+-48.0;l=l*10.0;g=g+1|0;k=a[(g&n)>>0]|0}while(((k&255)+-48|0)>>>0<10);l=o/l}else{g=m;l=0.0}}else{c[(s&p)>>2]=0;g=m;l=0.0}a[(e&n)+42>>0]=0;a[(e&n)+41>>0]=1;c[(e&p)+20>>2]=c[(f&p)>>2];c[(e&p)+24>>2]=c[(r&p)>>2];h[(e&q)+32>>3]=l+ +(c[(s&p)>>2]|0);while(1){f=g+1|0;if(!(a[((d[(g&n)>>0]|0)&n)+10368>>0]&1)){m=g;break}else g=f}b=e+28|0;c[(b&p)>>2]=0;g=a[(m&n)>>0]|0;if(g<<24>>24==43){k=1;w=14}else if(g<<24>>24!=45)if((g&-33)<<24>>24==90){k=0;w=16}else f=0;else{k=-1;w=14}if((w|0)==14){c[(v&p)>>2]=2;c[(v&p)+4>>2]=0;c[(v&p)+8>>2]=14;c[(v&p)+12>>2]=58;c[(v&p)+16>>2]=t;c[(v&p)+20>>2]=2;c[(v&p)+24>>2]=0;c[(v&p)+28>>2]=59;c[(v&p)+32>>2]=0;c[(v&p)+36>>2]=u;if((rq(f,v)|0)!=2){f=1;break}k=ca(((c[(t&p)>>2]|0)*60|0)+(c[(u&p)>>2]|0)|0,k)|0;c[(b&p)>>2]=k;f=m+6|0;w=16}if((w|0)==16)while(1){g=a[(f&n)>>0]|0;if(!(a[(g&255&n)+10368>>0]&1)){f=k;break}else f=f+1|0}if(!(g<<24>>24)){a[(e&n)+43>>0]=(f|0)!=0&1;f=0}else f=1}else f=1;while(0);i=x;return f|0}function tq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,k=0,l=0,m=0,o=0,r=0.0,s=0;o=i;i=i+112|0;if((i|0)>=(j|0))fa();k=o+48|0;m=o;l=o+96|0;f=k+0|0;b=b+0|0;g=f+48|0;do{c[(f&p)>>2]=c[(b&p)>>2];f=f+4|0;b=b+4|0}while((f|0)<(g|0));oo(k);po(k);g=k+8|0;if(((c[(g&p)>>2]|0)+-1971|0)>>>0>66){c[(g&p)>>2]=2e3;c[(k&p)+12>>2]=1;c[(k&p)+16>>2]=1;c[(k&p)+20>>2]=0;c[(k&p)+24>>2]=0;h[(k&q)+32>>3]=0.0}else{f=k+32|0;h[(f&q)>>3]=+(~~(+h[(f&q)>>3]+.5)|0)}c[(k&p)+28>>2]=0;a[(k&n)+42>>0]=0;no(k);b=k;f=c[(b&p)>>2]|0;b=c[(b&p)+4>>2]|0;g=qw(f|0,b|0,1e3,0)|0;g=jw(g|0,G|0,-413362496,0)|0;c[(l&p)>>2]=g;g=Vb(l|0)|0;g=(c[2253]|0)!=0?0:g;if(!g){c[(d&p)+20>>2]=1;a[(d&n)+25>>0]=1;Xg(c[(d&p)>>2]|0,20056,-1,1,-1)|0;c[(e&p)>>2]=1;f=0;g=0}else{k=c[(g&p)+4>>2]|0;l=c[(g&p)+8>>2]|0;d=c[(g&p)+12>>2]|0;s=(c[(g&p)+16>>2]|0)+1|0;r=+(c[(g&p)>>2]|0);c[(m&p)+8>>2]=(c[(g&p)+20>>2]|0)+1900;c[(m&p)+12>>2]=s;c[(m&p)+16>>2]=d;c[(m&p)+20>>2]=l;c[(m&p)+24>>2]=k;h[(m&q)+32>>3]=r;a[(m&n)+40>>0]=1;a[(m&n)+41>>0]=1;a[(m&n)+42>>0]=0;a[(m&n)+43>>0]=0;no(m);c[(e&p)>>2]=0;g=m;g=dw(c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,f|0,b|0)|0;f=G}G=f;i=o;return g|0}function uq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();q=r+12|0;l=r;o=r+8|0;k=r+16|0;a[(d&n)>>0]=0;f=rc[c[((c[(b&p)>>2]|0)&p)+24>>2]&127](b,l)|0;h=l;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if(!((f|0)!=0|((h|0)<0|(h|0)==0&g>>>0<16))){f=jw(g|0,h|0,-16,-1)|0;f=es(b,f,G,q)|0;if(!f){m=c[(q&p)>>2]|0;if(!(m>>>0>=e>>>0|(m|0)==0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-12,-1)|0;f=es(b,f,G,o)|0;if(!f){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-8,-1)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,k,8,f,G)|0;if(!f)if(!(Zv(k,14808,8)|0)){f=l;f=jw(c[(f&p)>>2]|0,c[(f&p)+4>>2]|0,-16,-1)|0;f=dw(f|0,G|0,m|0,0)|0;f=tc[c[((c[(b&p)>>2]|0)&p)+8>>2]&31](b,d,m,f,G)|0;if(!f){g=c[(o&p)>>2]|0;h=0;while(1){e=a[(d+h&n)>>0]|0;f=g-e|0;h=h+1|0;if(h>>>0>=m>>>0)break;else g=f}c[(o&p)>>2]=f;if((g|0)==(e|0))f=m;else{c[(q&p)>>2]=0;f=0}a[(d+f&n)>>0]=0;f=0}}else f=0}}else f=0}}i=r;return f|0}function vq(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,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();l=t+8|0;r=t+4|0;o=t;s=a+72|0;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){m=0;n=0;k=c[(a&p)+148>>2]|0}else{m=jw(k|0,h|0,-1,-1)|0;k=c[(a&p)+148>>2]|0;m=qw(m|0,G|0,k|0,0)|0;m=jw(m|0,G|0,1,0)|0;m=sw(m|0,G|0,k|0,0)|0;n=G}q=s;c[(q&p)>>2]=m;c[(q&p)+4>>2]=n;q=a+148|0;k=jw(k|0,0,m|0,n|0)|0;h=G;do if(!((h|0)>(e|0)|(h|0)==(e|0)&k>>>0>d>>>0)){if((b|0)==0?(b=a+80|0,(m|0)==(c[(b&p)>>2]|0)?(n|0)==(c[(b&p)+4>>2]|0):0):0)d=a+64|0;else{k=a+64|0;e=c[(k&p)>>2]|0;e=tc[c[((c[(e&p)>>2]|0)&p)+8>>2]&31](e,l,8,m,n)|0;if(e)break;if(!(Zv(l,14808,8)|0))d=k;else{e=101;break}}l=c[(d&p)>>2]|0;e=jw(m|0,n|0,8,0)|0;e=es(l,e,G,f)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,12,0)|0;e=es(f,e,G,a+48|0)|0;if(!e){f=c[(d&p)>>2]|0;e=jw(m|0,n|0,16,0)|0;e=es(f,e,G,g)|0;if(!e){h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((k|0)==0&(h|0)==0){g=c[(d&p)>>2]|0;e=jw(m|0,n|0,20,0)|0;e=es(g,e,G,o)|0;if(e)break;g=c[(d&p)>>2]|0;e=jw(m|0,n|0,24,0)|0;e=es(g,e,G,r)|0;if(e)break;d=c[(r&p)>>2]|0;if(!d){h=c[(a&p)+152>>2]|0;c[(r&p)>>2]=h}else h=d;d=c[(o&p)>>2]|0;if(h>>>0<512|d>>>0<32|h>>>0>65536|d>>>0>65536){e=101;break}if(h+-1&h){e=101;break}if(d+-1&d){e=101;break}e=al(a,r,-1)|0;c[(q&p)>>2]=d;h=s;k=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0}else{d=c[(q&p)>>2]|0;e=0}m=jw(k|0,h|0,d|0,0)|0;n=s;c[(n&p)>>2]=m;c[(n&p)+4>>2]=G}}}}else e=101;while(0);i=t;return e|0}function wq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;D=i;i=i+16|0;if((i|0)>=(j|0))fa();y=D+8|0;r=D+4|0;u=D;B=c[(f&p)+200>>2]|0;C=(k|0)!=0;q=c[((C?f+64|0:f+68|0)&p)>>2]|0;t=g;t=es(q,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,r)|0;do if(!t){A=f+152|0;x=c[(A&p)>>2]|0;t=g;t=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,4,0)|0;t=tc[c[((c[(q&p)>>2]|0)&p)+8>>2]&31](q,B,x,t,G)|0;if(!t){E=c[(A&p)>>2]|0;s=(k<<2)+4+E|0;t=g;t=jw(s|0,((s|0)<0)<<31>>31|0,c[(t&p)>>2]|0,c[(t&p)+4>>2]|0)|0;s=G;x=g;c[(x&p)>>2]=t;c[(x&p)+4>>2]=s;x=c[(r&p)>>2]|0;if((x|0)!=0?(x|0)!=(((c[2514]|0)/(E|0)|0)+1|0):0)if(x>>>0<=(c[(f&p)+24>>2]|0)>>>0?(di(h,x)|0)==0:0){if(C){t=jw(t|0,s|0,-4,-1)|0;t=es(q,t,G,u)|0;if(t){m=t;break}if(!l){t=c[(f&p)+48>>2]|0;s=(c[(A&p)>>2]|0)+-200|0;if((s|0)>0)do{t=(d[(B+s&n)>>0]|0)+t|0;s=s+-200|0}while((s|0)>0);if((t|0)!=(c[(u&p)>>2]|0)){m=101;break}}}if((h|0)!=0?(m=bi(h,x)|0,(m|0)!=0):0)break;u=(x|0)==1;if(u?(v=f+142|0,w=a[(B&n)+20>>0]|0,(b[(v&o)>>1]|0)!=(w&255|0)):0)b[(v&o)>>1]=w&255;if(!(c[(f&p)+208>>2]|0)){w=f+204|0;t=ac[c[8876>>2]&63](c[((c[(w&p)>>2]|0)&p)+40>>2]|0,x,0)|0;t=il(c[(w&p)>>2]|0,x,t)|0}else t=0;c[(y&p)>>2]=t;if(C)if(!(a[(f&n)+7>>0]|0)){w=g;h=c[(w&p)+4>>2]|0;s=f+80|0;v=c[(s&p)+4>>2]|0;s=(h|0)<(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0<=(c[(s&p)>>2]|0)>>>0:0)}else s=1;else if(!t)s=1;else s=(b[(t&o)+24>>1]&4)==0;r=c[(f&p)+60>>2]|0;q=c[(r&p)>>2]|0;do if(q){m=a[(f&n)+16>>0]|0;if((m&255)>3){if(!s){z=33;break}}else if(!(m<<24>>24==0&s)){z=33;break}s=c[(A&p)>>2]|0;m=sw(s|0,((s|0)<0)<<31>>31|0,x+-1|0,0)|0;m=tc[c[(q&p)+12>>2]&31](r,B,s,m,G)|0;s=f+32|0;if(x>>>0>(c[(s&p)>>2]|0)>>>0)c[(s&p)>>2]=x;s=c[(f&p)+88>>2]|0;if(s)ap(s,x,B)}else z=33;while(0);if((z|0)==33)if((k|0)==0&(t|0)==0){w=f+20|0;a[(w&n)>>0]=d[(w&n)>>0]|2;m=zg(f,x,y,1)|0;a[(w&n)>>0]=d[(w&n)>>0]&253;if(m)break;t=c[(y&p)>>2]|0;m=t+24|0;b[(m&o)>>1]=e[(m&o)>>1]&65527;To(t);m=0}else m=0;if(t){r=c[(t&p)+4>>2]|0;kw(r|0,B|0,c[(A&p)>>2]|0)|0;cc[c[(f&p)+196>>2]&31](t);do if(C){if((l|0)!=0?(w=g,h=c[(w&p)+4>>2]|0,x=f+80|0,v=c[(x&p)+4>>2]|0,(h|0)>(v|0)|((h|0)==(v|0)?(c[(w&p)>>2]|0)>>>0>(c[(x&p)>>2]|0)>>>0:0)):0)break;xl(t)}while(0);if(u){s=f+104|0;q=r+24|0;r=s+16|0;do{a[(s&n)>>0]=a[(q&n)>>0]|0;s=s+1|0;q=q+1|0}while((s|0)<(r|0))}ol(t)}}else m=0;else m=101}else m=t}else m=t;while(0);i=D;return m|0}function xq(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0;g=b+24|0;if((c[(g&p)>>2]|0)<=(e|0)){i=e+1|0;j=b+32|0;h=Xc(c[(j&p)>>2]|0,i<<2)|0;if(!h){g=7;h=0}else{k=c[(g&p)>>2]|0;fw(h+(k<<2)|0,0,i-k<<2|0)|0;c[(j&p)>>2]=h;c[(g&p)>>2]=i;k=5}}else{h=c[(b&p)+32>>2]|0;k=5}if((k|0)==5){j=b+32|0;h=h+(e<<2)|0;do if(!(c[(h&p)>>2]|0)){if((a[(b&n)+43>>0]|0)!=2){g=c[(b&p)+4>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+52>>2]&31](g,e,32768,d[(b&n)+44>>0]|0,h)|0;if((g|0)!=8)break;g=b+46|0;a[(g&n)>>0]=d[(g&n)>>0]|2;g=0;break}g=qg(32768,0)|0;if(g)fw(g|0,0,32768)|0;c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]=g;g=(c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0)==0?7:0}else g=0;while(0);h=c[((c[(j&p)>>2]|0)+(e<<2)&p)>>2]|0}c[(f&p)>>2]=h;return g|0}function yq(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;h=b+d|0;if(!e){g=0;d=0}else{g=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0}if(!a)do{g=g+d+(nw(c[(b&p)>>2]|0)|0)|0;d=g+d+(nw(c[(b&p)+4>>2]|0)|0)|0;b=b+8|0}while(b>>>0<h>>>0);else do{g=g+d+(c[(b&p)>>2]|0)|0;d=g+d+(c[(b&p)+4>>2]|0)|0;b=b+8|0}while(b>>>0<h>>>0);c[(f&p)>>2]=g;c[(f&p)+4>>2]=d;return}function zq(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;h=a+8|0;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;if((h|0)>(f|0)|(h|0)==(f|0)&g>>>0>e>>>0?(i=jw(d|0,((d|0)<0)<<31>>31|0,e|0,f|0)|0,k=G,!((k|0)<(h|0)|(k|0)==(h|0)&i>>>0<g>>>0)):0){i=dw(g|0,h|0,e|0,f|0)|0;h=a+4|0;g=c[(h&p)>>2]|0;g=tc[c[((c[(g&p)>>2]|0)&p)+12>>2]&31](g,b,i,e,f)|0;if(!g){e=jw(i|0,((i|0)<0)<<31>>31|0,e|0,f|0)|0;f=G;g=c[(h&p)>>2]|0;g=rc[c[((c[(g&p)>>2]|0)&p)+20>>2]&127](g,c[(a&p)+16>>2]&19)|0;if(!((i|0)==(d|0)|(g|0)!=0)){d=d-i|0;h=b+i|0;g=f;j=5}}}else{h=b;g=f;j=5}if((j|0)==5){f=c[(a&p)+4>>2]|0;g=tc[c[((c[(f&p)>>2]|0)&p)+12>>2]&31](f,h,d,e,g)|0}return g|0}function Aq(a){a=a|0;var d=0,f=0,g=0,h=0,k=0,l=0;l=i;i=i+16|0;if((i|0)>=(j|0))fa();h=l+8|0;k=l+4|0;g=l;c[(h&p)>>2]=0;c[(k&p)>>2]=0;c[(g&p)>>2]=0;f=a+68|0;d=c[(f&p)>>2]|0;if(d){Po(a,(d+33|0)>>>12,h,k,g)|0;g=(c[(f&p)>>2]|0)-(c[(g&p)>>2]|0)|0;a=c[(h&p)>>2]|0;f=0;do{d=a+(f<<1)|0;if((e[(d&o)>>1]|0|0)>(g|0))b[(d&o)>>1]=0;f=f+1|0}while((f|0)!=8192);d=(c[(k&p)>>2]|0)+(g+1<<2)|0;fw(d|0,0,a-d|0)|0}i=l;return}function Bq(a,d){a=a|0;d=d|0;var e=0,f=0,g=0,h=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();e=g;h=a+204|0;f=ac[c[8876>>2]&63](c[((c[(h&p)>>2]|0)&p)+40>>2]|0,d,0)|0;f=il(c[(h&p)>>2]|0,d,f)|0;do if(!f)e=0;else{if((b[(f&o)+26>>1]|0)==1){ml(f);e=0;break}c[(e&p)>>2]=0;d=kl(c[(a&p)+208>>2]|0,c[(f&p)+20>>2]|0,e)|0;if(!d){d=ll(f,c[(e&p)>>2]|0)|0;if(!d){cc[c[(a&p)+196>>2]&31](f);d=0}}Bg(f);e=d}while(0);d=c[(a&p)+88>>2]|0;if(d)do{c[(d&p)+16>>2]=1;d=c[(d&p)+44>>2]|0}while((d|0)!=0);i=g;return e|0}function Cq(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();F=G;C=c[(f&p)+52>>2]|0;t=(c[(C&p)+36>>2]|0)+-4|0;y=g&65535;D=h&65535;x=D+y|0;E=c[(f&p)+56>>2]|0;if(b[(C&o)+22>>1]&4)fw(E+y|0,0,D|0)|0;B=d[(f&n)+6>>0]|0;C=B+1|0;q=C&65535;A=C&65535;if((a[(E+A&n)+1>>0]|0)==0?(a[(E+A&n)>>0]|0)==0:0){v=h&255;t=(h&65535)>>>8&255;u=x;s=0;r=0;A=23}else{v=q;A=6}a:do if((A|0)==6){while(1){A=0;m=v&65535;r=a[(E+m&n)+1>>0]|0;l=r&255;u=d[(E+m&n)>>0]<<8|l;q=v;v=u&65535;if(!(u>>>0<y>>>0&(u|0)!=0)){s=r;w=u;break}if(u>>>0<(m+4|0)>>>0){A=8;break}else A=6}if((A|0)==8){c[(F&p)>>2]=54420;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}if(w>>>0>t>>>0){c[(F&p)>>2]=54423;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}k=h&255;t=(h&65535)>>>8&255;r=(v&65535)>>>8&255;do if((w+-1|0)>>>0<(x+3|0)>>>0)if(x>>>0>w>>>0){c[(F&p)>>2]=54434;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{u=(d[(E+w&n)+2>>0]<<8|d[(E+w&n)+3>>0])+w|0;t=u-y|0;v=t&255;t=(t&65535)>>>8&255;s=a[(E+w&n)+1>>0]|0;r=a[(E+w&n)>>0]|0;k=l-x&255;break}else{v=k;u=x;k=0}while(0);do if(m>>>0>C>>>0?(z=(d[(E+m&n)+2>>0]<<8|d[(E+m&n)+3>>0])+m|0,(z+3|0)>=(y|0)):0)if((y|0)<(z|0)){c[(F&p)>>2]=54447;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break a}else{t=u-m|0;g=q;v=t&255;t=(t&65535)>>>8&255;k=(k&255)+y-z&255;break}while(0);m=E+(B+7)|0;l=a[(m&n)>>0]|0;if((l&255)<(k&255)){c[(F&p)>>2]=54453;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break}else{a[(m&n)>>0]=(l&255)-(k&255);A=23;break}}while(0);b:do if((A|0)==23){k=g&65535;l=E+(B+5)|0;m=E+(B+6)|0;do if((k|0)==(d[(l&n)>>0]<<8|d[(m&n)>>0]|0))if((q&65535|0)==(C|0)){a[(E+C&n)>>0]=r;a[(E+B&n)+2>>0]=s;a[(l&n)>>0]=u>>>8;a[(m&n)>>0]=u;break}else{c[(F&p)>>2]=54460;c[(F&p)+4>>2]=10788;bd(11,13600,F);k=11;break b}else{F=q&65535;a[(E+F&n)>>0]=(g&65535)>>>8;a[(E+F&n)+1>>0]=g;a[(E+k&n)>>0]=r;a[(E+k&n)+1>>0]=s;a[(E+k&n)+2>>0]=t;a[(E+k&n)+3>>0]=v}while(0);k=f+16|0;b[(k&o)>>1]=(e[(k&o)>>1]|0)+D;k=0}while(0);i=G;return k|0}function Dq(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();t=w;s=d[(b&n)+6>>0]|0;v=c[(b&p)+56>>2]|0;r=c[((c[(b&p)+52>>2]|0)&p)+36>>2]|0;l=r+-4|0;b=s+1|0;while(1){m=v+b|0;o=(d[(m&n)>>0]|0)<<8|(d[(v+b&n)+1>>0]|0);if(!o){b=0;break}if((o|0)>(l|0)|(o|0)<(b+4|0)){u=4;break}h=v+(o+2)|0;k=v+(o+3)|0;b=(d[(h&n)>>0]|0)<<8|(d[(k&n)>>0]|0);if((b|0)<(e|0))b=o;else{q=h;l=o;u=6;break}}a:do if((u|0)==4){c[(t&p)>>2]=54252;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0}else if((u|0)==6){h=b-e|0;do if((h|0)>=4)if((b+l|0)>(r|0)){c[(t&p)>>2]=54275;c[(t&p)+4>>2]=10788;bd(11,13600,t);c[(f&p)>>2]=11;b=0;break a}else{a[(q&n)>>0]=h>>>8;a[(k&n)>>0]=h;break}else{b=v+(s+7)|0;if((d[(b&n)>>0]|0)<=59){s=v+l|0;s=d[(s&n)>>0]|d[(s&n)+1>>0]<<8;a[(m&n)>>0]=s;a[(m&n)+1>>0]=s>>8;a[(b&n)>>0]=(d[(b&n)>>0]|0)+h;break}if(!g){b=0;break a}c[(g&p)>>2]=1;b=0;break a}while(0);b=v+(h+l)|0}while(0);i=w;return b|0}function Eq(f){f=f|0;var g=0,h=0,k=0,l=0,m=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;G=i;i=i+16|0;if((i|0)>=(j|0))fa();E=G;B=c[(f&p)+56>>2]|0;D=d[(f&n)+6>>0]|0;x=e[(f&o)+14>>1]|0;y=b[(f&o)+18>>1]|0;t=y&65535;u=f+52|0;v=c[((c[(u&p)>>2]|0)&p)+36>>2]|0;C=(t<<1)+x|0;w=v+-4|0;z=B+(D+5)|0;A=B+(D+6)|0;a:do if(y<<16>>16){s=v;y=0;h=B;k=0;while(1){m=(y<<1)+x|0;l=B+m|0;m=B+(m+1)|0;q=(d[(l&n)>>0]|0)<<8|(d[(m&n)>>0]|0);if((q|0)<(C|0)|(q|0)>(w|0)){F=3;break}r=(Lp(f,h+q|0)|0)&65535;g=s-r|0;if((g|0)<(C|0)|(r+q|0)>(v|0)){F=5;break}a[(l&n)>>0]=g>>>8;a[(m&n)>>0]=g;if(!k)if((g|0)==(q|0))k=0;else{k=c[((c[(c[(u&p)>>2]&p)>>2]|0)&p)+200>>2]|0;h=(d[(z&n)>>0]|0)<<8|(d[(A&n)>>0]|0);kw(k+h|0,B+h|0,s-h|0)|0;h=k;F=9}else F=9;if((F|0)==9){F=0;kw(B+g|0,h+q|0,r|0)|0}y=y+1|0;if((y|0)>=(t|0)){F=11;break a}else s=g}if((F|0)==3){c[(E&p)>>2]=54184;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}else if((F|0)==5){c[(E&p)>>2]=54196;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11;break}}else{g=v;F=11}while(0);if((F|0)==11){a[(z&n)>>0]=g>>>8;a[(A&n)>>0]=g;a[(B+D&n)+1>>0]=0;a[(B+D&n)+2>>0]=0;a[(B+D&n)+7>>0]=0;F=g-C|0;fw(B+C|0,0,F|0)|0;if((F|0)==(e[(f&o)+16>>1]|0|0))g=0;else{c[(E&p)>>2]=54221;c[(E&p)+4>>2]=10788;bd(11,13600,E);g=11}}i=G;return g|0}function Fq(a,e,f){a=a|0;e=e|0;f=f|0;var g=0,h=0,k=0;k=i;i=i+32|0;if((i|0)>=(j|0))fa();h=k;if((c[(f&p)>>2]|0)==0?(rp(a,e,h),g=b[(h&o)+18>>1]|0,g<<16>>16!=0):0){g=g&65535;zp(c[(a&p)+52>>2]|0,(d[(e+g&n)+1>>0]|0)<<16|(d[(e+g&n)>>0]|0)<<24|(d[(e+g&n)+2>>0]|0)<<8|(d[(e+g&n)+3>>0]|0),3,c[(a&p)+72>>2]|0,f)}i=k;return}function Gq(b,f,g){b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0;do if(!(c[(g&p)>>2]|0)){h=c[(b&p)+52>>2]|0;j=c[(b&p)+56>>2]|0;l=c[(f&p)+56>>2]|0;i=d[(b&n)+6>>0]|0;k=(c[(f&p)+72>>2]|0)==1?100:0;m=d[(j+i&n)+5>>0]<<8|d[(j+i&n)+6>>0];kw(l+m|0,j+m|0,(c[(h&p)+36>>2]|0)-m|0)|0;kw(l+k|0,j+i|0,(e[(b&o)+18>>1]<<1)+(e[(b&o)+14>>1]|0)|0)|0;a[(f&n)>>0]=0;b=$p(f)|0;if(b){c[(g&p)>>2]=b;break}if(a[(h&n)+17>>0]|0)c[(g&p)>>2]=_p(f)|0}while(0);return}function Hq(f,g,h,i){f=f|0;g=g|0;h=h|0;i=i|0;var j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;t=d[(f&n)+6>>0]|0;w=c[(f&p)+56>>2]|0;m=c[(f&p)+52>>2]|0;r=c[(m&p)+36>>2]|0;q=w+r|0;j=c[(f&p)+64>>2]|0;m=c[((c[(m&p)>>2]|0)&p)+200>>2]|0;s=w+(t+5)|0;u=w+(t+6)|0;v=(d[(s&n)>>0]|0)<<8|(d[(u&n)>>0]|0);kw(m+v|0,w+v|0,r-v|0)|0;v=w;if((g|0)>0){r=0;l=j;j=q;while(1){k=c[(h+(r<<2)&p)>>2]|0;if(k>>>0>w>>>0&k>>>0<q>>>0)k=m+(k-v)|0;x=e[(i+(r<<1)&o)>>1]|0;j=j+(0-x)|0;kw(j|0,k|0,x|0)|0;k=j-v|0;a[(l&n)>>0]=k>>>8;a[(l&n)+1>>0]=k;r=r+1|0;if((r|0)==(g|0))break;else l=l+2|0}}else j=q;i=f+18|0;b[(i&o)>>1]=g;a[(f&n)+1>>0]=0;a[(w+t&n)+1>>0]=0;a[(w+t&n)+2>>0]=0;a[(w+t&n)+3>>0]=(e[(i&o)>>1]|0)>>>8;a[(w+t&n)+4>>0]=b[(i&o)>>1];i=j-v|0;a[(s&n)>>0]=i>>>8;a[(u&n)>>0]=i;a[(w+t&n)+7>>0]=0;return}function Iq(a,b,f,g){a=a|0;b=b|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0;u=c[(a&p)+56>>2]|0;s=u+(c[((c[(a&p)+52>>2]|0)&p)+36>>2]|0)|0;q=u+((d[(a&n)+6>>0]|0)+8+(d[(a&n)+7>>0]|0))|0;a:do if((b|0)>0){r=u;t=0;h=0;l=0;m=0;while(1){j=c[(f+(t<<2)&p)>>2]|0;if(j>>>0>=q>>>0&j>>>0<s>>>0){i=e[(g+(t<<1)&o)>>1]|0;k=j+i|0;if((l|0)!=(k|0)){if(l)Cq(a,l-r&65535,m&65535)|0;if(k>>>0>s>>>0){h=0;break a}}else i=i+m|0;h=h+1|0}else{j=l;i=m}t=t+1|0;if((t|0)>=(b|0))break;else{l=j;m=i}}if(j)Cq(a,j-u&65535,i&65535)|0}else h=0;while(0);return h|0}function Jq(b,d,f,g,h,k,l){b=b|0;d=d|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();w=y;q=c[(b&p)+56>>2]|0;m=c[(f&p)>>2]|0;if(!(a[(q&n)+1>>0]|0))v=(a[(q&n)+2>>0]|0)!=0;else v=1;a:do if((h|0)>0){t=0;while(1){s=e[(l+(t<<1)&o)>>1]|0;if(v?(u=Dq(b,s,w,0)|0,(u|0)!=0):0)r=u;else{r=m+(0-s)|0;if(r>>>0<d>>>0){m=1;break a}else m=r}kw(r|0,c[(k+(t<<2)&p)>>2]|0,s|0)|0;s=r-q|0;a[(g&n)>>0]=s>>>8;a[(g&n)+1>>0]=s;t=t+1|0;if((t|0)>=(h|0)){x=9;break}else g=g+2|0}}else x=9;while(0);if((x|0)==9){c[(f&p)>>2]=m;m=0}i=y;return m|0}function Kq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();n=o;e=c[(a&p)+44>>2]|0;h=a;f=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;a:do if(!e){m=a+40|0;e=c[(m&p)>>2]|0;g=((e|0)<0)<<31>>31;l=rw(f|0,h|0,e|0,g|0)|0;if(!l){k=a+8|0;k=dw(c[(k&p)>>2]|0,c[(k&p)+4>>2]|0,f|0,h|0)|0;q=G;r=c[(a&p)+24>>2]|0;e=tc[c[((c[(r&p)>>2]|0)&p)+8>>2]&31](r,c[(a&p)+36>>2]|0,(q|0)>(g|0)|(q|0)==(g|0)&k>>>0>e>>>0?e:k,f,h)|0;if(e)break;e=c[(m&p)>>2]|0}k=e-l|0;if((k|0)>=(b|0)){c[(d&p)>>2]=(c[(a&p)+36>>2]|0)+l;e=a;b=jw(c[(e&p)>>2]|0,c[(e&p)+4>>2]|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0;break}e=a+16|0;f=c[(e&p)>>2]|0;if((f|0)<(b|0)){f=f<<1;f=(f|0)<128?128:f;while(1)if((f|0)<(b|0))f=f<<1;else{h=f;break}g=a+28|0;f=rg(c[(g&p)>>2]|0,h,((h|0)<0)<<31>>31)|0;if(!f){e=7;break}c[(e&p)>>2]=h;c[(g&p)>>2]=f}else f=c[(a&p)+28>>2]|0;h=a+28|0;kw(f|0,(c[(a&p)+36>>2]|0)+l|0,k|0)|0;l=a;l=jw(c[(l&p)>>2]|0,c[(l&p)+4>>2]|0,k|0,((k|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=l;c[(e&p)+4>>2]=G;e=b-k|0;if((e|0)>0){g=e;do{f=c[(m&p)>>2]|0;f=(g|0)>(f|0)?f:g;e=Kq(a,f,n)|0;if(e)break a;kw((c[(h&p)>>2]|0)+(b-g)|0,c[(n&p)>>2]|0,f|0)|0;g=g-f|0}while((g|0)>0)}c[(d&p)>>2]=c[(h&p)>>2];e=0}else{c[(d&p)>>2]=e+f;b=jw(f|0,h|0,b|0,((b|0)<0)<<31>>31|0)|0;e=a;c[(e&p)>>2]=b;c[(e&p)+4>>2]=G;e=0}while(0);i=o;return e|0}function Lq(a){a=a|0;var b=0,d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0;A=i;i=i+64|0;if((i|0)>=(j|0))fa();x=A+44|0;z=A;y=A+40|0;v=a+8|0;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;w=a+4|0;q=c[(w&p)>>2]|0;Pp(c[(a&p)+48>>2]|0,z,c[((c[((c[(a&p)>>2]|0)&p)+8>>2]|0)&p)+12>>2]|0,u,v);o=q+8|0;q=q+12|0;r=z+24|0;s=z+16|0;t=a+16|0;while(1){f=c[((c[(o&p)>>2]|0)&p)+4>>2]|0;g=c[(q&p)>>2]|0;h=c[(g+(f*56|0)&p)+20>>2]|0;if(!(c[(g+(f*56|0)&p)+24>>2]|0)){d=1;b=0;break}l=r;k=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;m=c[(s&p)>>2]|0;n=((h|0)<0)<<31>>31;b=h;e=n;d=0;do{d=d+1|0;b=mw(b|0,e|0,7)|0;e=G}while(((b|0)!=0|(e|0)!=0)&(d|0)<9);k=jw(k|0,l|0,h|0,n|0)|0;k=jw(k|0,G|0,m|0,((m|0)<0)<<31>>31|0)|0;d=jw(k|0,G|0,d|0,((d|0)<0)<<31>>31|0)|0;k=G;b=c[(t&p)>>2]|0;b=jw(b|0,((b|0)<0)<<31>>31|0,u|0,v|0)|0;e=G;if((k|0)>(e|0)|(k|0)==(e|0)&d>>>0>b>>>0){d=1;b=0;break}Qp(z,x,pm(x,h,n)|0);Qp(z,c[(g+(f*56|0)&p)+32>>2]|0,h);b=Wm(c[(w&p)>>2]|0,y)|0;if(b){d=0;break}}z=Rp(z,a+56|0)|0;i=A;return (d?z:b)|0}function Mq(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;d=i;i=i+16|0;if((i|0)>=(j|0))fa();f=d;c[(f&p)>>2]=e;e=Wk(a,13592,f)|0;mg(a,b);i=d;return e|0}function Nq(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0;q=i;i=i+16|0;if((i|0)>=(j|0))fa();m=q;h=a[(d&n)>>0]|0;if(h<<24>>24!=0&(e|0)>0){l=0;do{if((h+-48&255)<10){k=0;do{k=(k*10|0)+-48+(h<<24>>24)|0;d=d+1|0;h=a[(d&n)>>0]|0}while((h+-48&255)<10);h=0}else{k=0;h=0}b[(f+(l<<1)&o)>>1]=fs(k,h)|0;d=(a[(d&n)>>0]|0)==32?d+1|0:d;l=l+1|0;h=a[(d&n)>>0]|0}while(h<<24>>24!=0&(l|0)<(e|0))}l=g+51|0;a[(l&n)>>0]=a[(l&n)>>0]&-69;a:do if(a[(d&n)>>0]|0){f=g+44|0;b:while(1){do if(!(Gh(13448,d,10352,0)|0)){if(Gh(13464,d,10352,0)|0){c[(m&p)>>2]=0;Dn(d+3|0,m)|0;h=c[(m&p)>>2]|0;b[(f&o)>>1]=fs(h,((h|0)<0)<<31>>31)|0;break}if(Gh(13480,d,10352,0)|0)a[(l&n)>>0]=a[(l&n)>>0]|64}else a[(l&n)>>0]=a[(l&n)>>0]|4;while(0);while(1){h=a[(d&n)>>0]|0;if(h<<24>>24==32|h<<24>>24==0)break;d=d+1|0}while(1){k=d+1|0;if(!(h<<24>>24))break a;else if(h<<24>>24!=32)continue b;h=a[(k&n)>>0]|0;d=k}}}while(0);i=q;return}function Oq(d){d=d|0;var e=0,f=0;f=d+8|0;e=c[(f&p)>>2]|0;if(!e){e=vh(d)|0;c[(f&p)>>2]=e;if(e)wh(e,155,0,0,0)|0;if((c[(d&p)+408>>2]|0)==0?(b[((c[(d&p)>>2]|0)&o)+60>>1]&8)==0:0)a[(d&n)+23>>0]=1}return e|0}function Pq(b,d){b=b|0;d=d|0;var e=0;e=(c[(b&p)+32>>2]|0)+-1|0;if((e|0)>(c[((c[(b&p)+24>>2]|0)&p)+88>>2]|0)?(a[((c[(b&p)+4>>2]|0)+(e*20|0)&n)>>0]|0)==d<<24>>24:0){zh(b,e);e=1}else e=0;return e|0}function Qq(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;j=Oq(d)|0;i=g+32|0;gs(d,f,c[(i&p)>>2]|0,(h|0)==55&1,c[(g&p)>>2]|0);if(!(a[(g&n)+44>>0]&32)){g=b[(g&o)+38>>1]|0;xh(j,wh(j,h,e,c[(i&p)>>2]|0,f)|0,g,-14)}else{i=c[(g&p)+8>>2]|0;a:do if(!i)i=0;else while(1){if((a[(i&n)+51>>0]&3)==2)break a;i=c[(i&p)+20>>2]|0;if(!i){i=0;break}}while(0);wh(j,h,e,c[(i&p)+40>>2]|0,f)|0;g=c[(d&p)+8>>2]|0;xh(g,-1,hs(d,i)|0,-6)}return}function Rq(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0;if((d|0)!=0?(a[(d&n)>>0]|0)==-97:0)wh(c[(b&p)+8>>2]|0,33,c[(d&p)+28>>2]|0,e,0)|0;else h=4;if(((h|0)==4?(g=is(b,d,e)|0,(g|0)!=(e|0)):0)?(f=c[(b&p)+8>>2]|0,(f|0)!=0):0)wh(f,34,g,e,0)|0;return}function Sq(b,d,e,f,g){b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;h=c[(b&p)>>2]|0;do if(((a[(h&n)+145>>0]|0)==0?(a[(b&n)+451>>0]|0)==0:0)?(k=c[(h&p)+284>>2]|0,(k|0)!=0):0){h=kc[k&7](c[(h&p)+288>>2]|0,d,e,f,g,c[(b&p)+492>>2]|0)|0;if((h|0)==1){th(b,25216,l);c[(b&p)+12>>2]=23;h=1;break}else if((h|0)==0|(h|0)==2)break;else{th(b,25232,l);c[(b&p)+12>>2]=1;h=1;break}}else h=0;while(0);i=m;return h|0}function Tq(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;d=Wq(c[(a&p)>>2]|0,d)|0;do if(d){e=Oq(a)|0;if((e|0)!=0?(Sq(a,32,c[(b<<2&p)+37088>>2]|0,d,0)|0)==0:0){xh(e,wh(e,2,b,0,0)|0,d,-1);break}mg(c[(a&p)>>2]|0,d)}while(0);return}function Uq(e,f,g,h,k,l,m){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;var q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+16|0;if((i|0)>=(j|0))fa();u=y;s=y+4|0;x=c[(e&p)>>2]|0;f=er(e,f,g,s)|0;a:do if((f|0)>=0){t=(h|0)!=0;if(t?(c[(g&p)+4>>2]|0)!=0&(f|0)!=1:0){th(e,36976,u);break}w=t?1:f;g=c[(s&p)>>2]|0;t=g;f=c[(t&p)+4>>2]|0;s=e+496|0;c[(s&p)>>2]=c[(t&p)>>2];c[(s&p)+4>>2]=f;s=Wq(x,g)|0;if(s){b:do if((Lr(e,s)|0)==0?(r=(a[(x&n)+144>>0]|0)==1?1:h,v=x+16|0,q=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0,(Sq(e,18,(r|0)==1?13184:13208,0,q)|0)==0):0){h=(r|0)!=0;if(!k)f=h?4:2;else f=h?6:8;t=(l|0)!=0;if(!t?(Sq(e,f,s,0,q)|0)!=0:0)break;do if(!(a[(e&n)+451>>0]|0)){h=c[((c[(v&p)>>2]|0)+(w<<4)&p)>>2]|0;if(Gn(e)|0)break b;if(!(_h(x,s,h)|0)){if(!(bq(x,s,h)|0))break;c[(u&p)>>2]=s;th(e,37048,u);break b}if(!m){c[(u&p)>>2]=g;th(e,37024,u);break b}else{Ar(e,w);break b}}while(0);r=mh(x,76,0)|0;if(!r){a[(x&n)+65>>0]=1;c[(e&p)+12>>2]=7;v=e+64|0;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;break}q=r+0|0;h=q+76|0;do{a[(q&n)>>0]=0;q=q+1|0}while((q|0)<(h|0));c[(r&p)>>2]=s;b[(r&o)+36>>1]=-1;q=c[((c[(v&p)>>2]|0)+(w<<4)&p)+12>>2]|0;c[(r&p)+68>>2]=q;b[(r&o)+40>>1]=1;b[(r&o)+28>>1]=200;c[(e&p)+484>>2]=r;if((a[(e&n)+18>>0]|0)==0?(_v(s,26576)|0)==0:0)c[(q&p)+72>>2]=r;if(a[(x&n)+145>>0]|0)break a;g=Oq(e)|0;if(!g)break a;v=c[(e&p)+408>>2]|0;Ar(e,w);q=1<<w;v=((v|0)==0?e:v)+328|0;c[(v&p)>>2]=c[(v&p)>>2]|q;if(t)wh(g,146,0,0,0)|0;r=e+72|0;f=c[(r&p)>>2]|0;s=f+1|0;c[(e&p)+384>>2]=s;t=f+2|0;c[(e&p)+388>>2]=t;f=f+3|0;c[(r&p)>>2]=f;wh(g,51,w,f,2)|0;r=g+96|0;c[(r&p)>>2]=c[(r&p)>>2]|q;r=wh(g,45,f,0,0)|0;wh(g,25,(c[(x&p)+24>>2]&32768|0)!=0?1:4,f,0)|0;wh(g,52,w,2,f)|0;wh(g,25,d[(x&n)+62>>0]|0,f,0)|0;wh(g,52,w,5,f)|0;h=g+32|0;q=c[(h&p)>>2]|0;if(q>>>0>r>>>0)c[((c[(g&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=q;c[((c[(g&p)+24>>2]|0)&p)+88>>2]=q+-1;if(!(l|k))c[(e&p)+416>>2]=wh(g,121,w,t,0)|0;else wh(g,25,0,t,0)|0;js(e,w);wh(g,74,0,s,0)|0;wh(g,28,0,f,0)|0;wh(g,75,0,f,s)|0;q=c[(g&p)+4>>2]|0;if(q)a[(q+(((c[(h&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;wh(g,61,0,0,0)|0;break a}while(0);mg(x,s)}}while(0);i=y;return}function Vq(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=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;R=i;i=i+176|0;if((i|0)>=(j|0))fa();M=R+80|0;J=R+168|0;G=R;H=R+136|0;I=R+112|0;N=c[(f&p)>>2]|0;a:do if((!((h|0)==0&(l|0)==0)?(O=N+65|0,(a[(O&n)>>0]|0)==0):0)?(P=f+484|0,Q=c[(P&p)>>2]|0,(Q|0)!=0):0){L=N+145|0;if(a[(L&n)>>0]|0)c[(Q&p)+32>>2]=c[(N&p)+140>>2];b:do if(k&32){s=Q+44|0;r=d[(s&n)>>0]|0;if(r&8){th(f,36584,M);break a}if(!(r&4)){c[(M&p)>>2]=c[(Q&p)>>2];th(f,36640,M);break}a[(s&n)>>0]=r|32;t=c[(f&p)+8>>2]|0;s=c[(f&p)+416>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))s=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else s=29120;a[(s&n)>>0]=120}s=c[(f&p)+420>>2]|0;if(s){if((s|0)<0)s=(c[(t&p)+32>>2]|0)+-1|0;if(!(a[((c[(t&p)>>2]|0)&n)+65>>0]|0))r=(c[(t&p)+4>>2]|0)+(s*20|0)|0;else r=29120;a[(r&n)>>0]=16}r=Q+36|0;if((b[(r&o)>>1]|0)>-1){s=lr(f,0,0)|0;if(!s)break;C=kh(c[(f&p)>>2]|0,c[((c[(Q&p)+4>>2]|0)+((b[(r&o)>>1]|0)*24|0)&p)>>2]|0)|0;D=c[(s&p)+4>>2]|0;c[(D&p)+4>>2]=C;a[(D&n)+12>>0]=a[(f&n)+448>>0]|0;s=$q(f,0,0,0,s,d[(Q&n)+45>>0]|0,0,0,0,0)|0;if(!s)break;x=s+51|0;a[(x&n)>>0]=a[(x&n)>>0]&-4|2;b[(r&o)>>1]=-1;x=b[(s&o)+46>>1]|0}else{s=c[(Q&p)+8>>2]|0;c:do if(!s)s=0;else while(1){if((a[(s&n)+51>>0]&3)==2)break c;s=c[(s&p)+20>>2]|0;if(!s){s=0;break}}while(0);y=s+46|0;t=b[(y&o)>>1]|0;if((t&65535)>1){w=c[(s&p)+4>>2]|0;v=s+48|0;x=1;r=1;do{m=b[(w+(x<<1)&o)>>1]|0;u=r;q=w;while(1){if((u|0)<=0){F=36;break}if((b[(q&o)>>1]|0)==m<<16>>16){F=35;break}else{u=u+-1|0;q=q+2|0}}if((F|0)==35){F=0;b[(v&o)>>1]=(b[(v&o)>>1]|0)+-1<<16>>16}else if((F|0)==36){F=0;b[(w+(r<<1)&o)>>1]=m;t=b[(y&o)>>1]|0;r=r+1|0}x=x+1|0}while((x|0)<(t&65535|0))}else r=1;x=r&65535;b[(y&o)>>1]=x}u=s+51|0;t=a[(u&n)>>0]|32;a[(u&n)>>0]=t;D=x&65535;if(!(a[(N&n)+147>>0]|0)){if(x<<16>>16){t=c[(s&p)+4>>2]|0;r=c[(Q&p)+4>>2]|0;q=0;do{a[(r+((b[(t+(q<<1)&o)>>1]|0)*24|0)&n)+20>>0]=1;q=q+1|0}while((q|0)<(D|0));t=a[(u&n)>>0]|0}a[(u&n)>>0]=t|8}c[(s&p)+40>>2]=c[(Q&p)+32>>2];u=c[(Q&p)+8>>2]|0;if(u){A=x<<16>>16==0;B=s+4|0;C=s+32|0;do{d:do if((a[(u&n)+51>>0]&3)!=2){do if(A)t=b[(u&o)+46>>1]|0;else{v=c[(u&p)+4>>2]|0;t=b[(u&o)+46>>1]|0;q=t&65535;m=c[(B&p)>>2]|0;z=0;r=0;do{w=b[(m+(z<<1)&o)>>1]|0;y=q;x=v;while(1){if((y|0)<=0){x=1;break}if((b[(x&o)>>1]|0)==w<<16>>16){x=0;break}else{y=y+-1|0;x=x+2|0}}r=x+r|0;z=z+1|0}while((z|0)<(D|0));q=u+46|0;if(!r)break;if(ks(N,u,(t&65535)+r|0)|0)break b;if(A)break d;w=b[(q&o)>>1]|0;z=u+4|0;m=u+32|0;y=w;x=0;w=w&65535;while(1){t=c[(z&p)>>2]|0;r=b[((c[(B&p)>>2]|0)+(x<<1)&o)>>1]|0;y=y&65535;v=t;while(1){if((y|0)<=0){F=63;break}if((b[(v&o)>>1]|0)==r<<16>>16)break;else{y=y+-1|0;v=v+2|0}}if((F|0)==63){F=0;b[(t+(w<<1)&o)>>1]=r;c[((c[(m&p)>>2]|0)+(w<<2)&p)>>2]=c[((c[(C&p)>>2]|0)+(x<<2)&p)>>2];w=w+1|0}x=x+1|0;if((x|0)>=(D|0))break d;y=b[(q&o)>>1]|0}}while(0);b[(u&o)+48>>1]=t}while(0);u=c[(u&p)+20>>2]|0}while((u|0)!=0)}y=Q+38|0;t=b[(y&o)>>1]|0;r=t<<16>>16;if((D|0)>=(r|0)){b[(s&o)+48>>1]=t;break}if((ks(N,s,r)|0)==0?(E=b[(y&o)>>1]|0,E<<16>>16>0):0){v=s+4|0;x=s+32|0;t=E;w=0;s=D;do{q=c[(v&p)>>2]|0;u=s;r=q;while(1){if((u|0)<=0){F=74;break}if((b[(r&o)>>1]|0)==(w|0))break;else{u=u+-1|0;r=r+2|0}}if((F|0)==74){F=0;b[(q+(s<<1)&o)>>1]=w;c[((c[(x&p)>>2]|0)+(s<<2)&p)>>2]=11152;t=b[(y&o)>>1]|0;s=s+1|0}w=w+1|0}while((w|0)<(t<<16>>16|0))}}while(0);F=Q+68|0;s=c[(F&p)>>2]|0;e:do if(s){r=c[(N&p)+20>>2]|0;if((r|0)>0){q=c[(N&p)+16>>2]|0;t=0;while(1){m=t+1|0;if((c[(q+(t<<4)&p)+12>>2]|0)==(s|0))break e;if((m|0)<(r|0))t=m;else{t=m;break}}}else t=0}else t=-1e6;while(0);q=c[(Q&p)+24>>2]|0;f:do if(q){c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(H&p)+8>>2]=0;c[(H&p)+12>>2]=0;c[(H&p)+16>>2]=0;c[(H&p)+20>>2]=0;c[(H&p)+24>>2]=0;c[(H&p)+28>>2]=0;s=G+0|0;r=s+80|0;do{c[(s&p)>>2]=0;s=s+4|0}while((s|0)<(r|0));c[(G&p)>>2]=1;c[(G&p)+16>>2]=c[(Q&p)>>2];c[(G&p)+24>>2]=Q;c[(G&p)+48>>2]=-1;c[(H&p)>>2]=f;c[(H&p)+4>>2]=G;b[(H&o)+28>>1]=4;s=q+4|0;if((c[(q&p)>>2]|0)>0){r=0;do{if(ls(H,c[((c[(s&p)>>2]|0)+(r*20|0)&p)>>2]|0)|0)break f;r=r+1|0}while((r|0)<(c[(q&p)>>2]|0))}}while(0);D=Q+38|0;m=b[(D&o)>>1]|0;if(m<<16>>16>0){s=m<<16>>16;r=c[(Q&p)+4>>2]|0;q=0;while(1){q=(d[(r&n)+22>>0]|0)+q|0;s=s+-1|0;if((s|0)<=0)break;else r=r+24|0}}else q=0;b[(Q&o)+42>>1]=fs(((e[(Q&o)+36>>1]|0)>>>15&65535)+q<<2,0)|0;q=c[(Q&p)+8>>2]|0;if(q)do{ms(q);q=c[(q&p)+20>>2]|0}while((q|0)!=0);if(!(a[(L&n)>>0]|0)){E=Oq(f)|0;if(!E)break;wh(E,61,0,0,0)|0;B=(c[(Q&p)+12>>2]|0)==0;r=B?36672:36680;B=B?31232:35480;do if(!l){q=k<<24>>24==0?h:f+504|0;l=c[(q&p)>>2]|0;s=c[(f&p)+496>>2]|0;m=l-s|0;if((a[(l&n)>>0]|0)!=59)m=(c[(q&p)+4>>2]|0)+m|0;c[(M&p)>>2]=r;c[(M&p)+4>>2]=m;c[(M&p)+8>>2]=s;s=f+388|0;m=Q;r=uh(N,36688,M)|0}else{s=f+388|0;wh(E,55,1,c[(s&p)>>2]|0,t)|0;r=c[(E&p)+4>>2]|0;if(r)a[(r+(((c[(E&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=4;c[(f&p)+68>>2]=2;a[(I&n)>>0]=14;c[(I&p)+4>>2]=1;a[(I&n)+1>>0]=0;c[(I&p)+8>>2]=0;c[(I&p)+12>>2]=0;ir(f,l,I)|0;wh(E,61,1,0,0)|0;if(!(c[(f&p)+64>>2]|0)){m=ns(f,l)|0;if(!m)break a;I=m+38|0;b[(D&o)>>1]=b[(I&o)>>1]|0;l=m+4|0;c[(Q&p)+4>>2]=c[(l&p)>>2];b[(I&o)>>1]=0;c[(l&p)>>2]=0;kg(N,m)}C=Q+4|0;z=b[(D&o)>>1]|0;if(z<<16>>16>0){v=z<<16>>16;w=0;r=0;x=c[(C&p)>>2]|0;while(1){m=c[(x&p)>>2]|0;q=0;while(1){u=a[(m&n)>>0]|0;if(u<<24>>24==34)q=q+1|0;else if(!(u<<24>>24))break;m=m+1|0;q=q+1|0}r=r+7+q|0;w=w+1|0;if((w|0)==(v|0))break;else x=x+24|0}u=r+2|0}else u=2;m=c[(Q&p)>>2]|0;r=0;while(1){q=a[(m&n)>>0]|0;if(q<<24>>24==34)r=r+1|0;else if(!(q<<24>>24))break;m=m+1|0;r=r+1|0}x=r+u|0;A=(x|0)<50;u=A?10360:36880;y=A?20240:36888;A=A?33952:36896;x=((z<<16>>16)*6|0)+35+x|0;r=qg(x,((x|0)<0)<<31>>31)|0;if(!r){a[(O&n)>>0]=1;m=Q;r=0;break}ad(x,r,36904,M)|0;q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;c[(J&p)>>2]=q-r&1073741823;os(r,J,c[(Q&p)>>2]|0);m=c[(J&p)>>2]|0;v=m+1|0;c[(J&p)>>2]=v;a[(r+m&n)>>0]=40;m=x-v|0;q=r+v|0;if((b[(D&o)>>1]|0)>0){z=0;w=c[(C&p)>>2]|0;while(1){ad(m,q,u,M)|0;q=r+v|0;if(!q)q=0;else{u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;q=u-q&1073741823}c[(J&p)>>2]=q+v;os(r,J,c[(w&p)>>2]|0);q=c[((a[(w&n)+21>>0]|0)+-65<<2&p)+36920>>2]|0;u=q;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;v=u-q&1073741823;u=c[(J&p)>>2]|0;kw(r+u|0,q|0,v|0)|0;v=u+v|0;c[(J&p)>>2]=v;u=z+1|0;m=x-v|0;q=r+v|0;if((u|0)<(b[(D&o)>>1]|0)){z=u;w=w+24|0;u=y}else break}}c[(M&p)>>2]=A;ad(m,q,10344,M)|0;m=Q}while(0);q=N+16|0;k=c[(m&p)>>2]|0;I=c[(s&p)>>2]|0;l=c[(f&p)+384>>2]|0;c[(M&p)>>2]=c[((c[(q&p)>>2]|0)+(t<<4)&p)>>2];c[(M&p)+4>>2]=(t|0)==1?13184:13208;c[(M&p)+8>>2]=B;c[(M&p)+12>>2]=k;c[(M&p)+16>>2]=k;c[(M&p)+20>>2]=I;c[(M&p)+24>>2]=r;c[(M&p)+28>>2]=l;Br(f,36704,M);mg(N,r);Dr(f,t);if((a[(Q&n)+44>>0]&8)!=0?(K=c[(q&p)>>2]|0,(c[((c[(K+(t<<4)&p)+12>>2]|0)&p)+72>>2]|0)==0):0){c[(M&p)>>2]=c[(K+(t<<4)&p)>>2];Br(f,36792,M)}c[(M&p)>>2]=c[(m&p)>>2];Ir(E,t,uh(N,36840,M)|0);if(!(a[(L&n)>>0]|0))break}else m=Q;if(Ik((c[(F&p)>>2]|0)+8|0,c[(m&p)>>2]|0,Q)|0){a[(O&n)>>0]=1;break}c[(P&p)>>2]=0;l=N+24|0;c[(l&p)>>2]=c[(l&p)>>2]|2;if(!(c[(Q&p)+12>>2]|0)){l=c[(f&p)+496>>2]|0;c[(Q&p)+48>>2]=(Nn(l,(c[(((c[(g&p)>>2]|0)==0?h:g)&p)>>2]|0)-l|0)|0)+13}}while(0);i=R;return}function Wq(b,d){b=b|0;d=d|0;var e=0,f=0;if(!d)e=0;else{f=c[(d&p)>>2]|0;d=c[(d&p)+4>>2]|0;if((f|0)!=0?(e=jw(d|0,0,1,0)|0,e=mh(b,e,G)|0,(e|0)!=0):0){kw(e|0,f|0,d|0)|0;a[(e+d&n)>>0]=0}else e=0;lo(e)}return e|0}function Xq(b,e){b=b|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();m=o;a:do if(b){g=a[(b&n)>>0]|0;b:do if(!(g<<24>>24)){f=67;g=0}else{k=g;f=67;h=0;g=0;do{h=d[(k&255&n)+9328>>0]|0|h<<8;b=b+1|0;if((h|0)==1685026146)if(f<<24>>24==67){f=69;h=1685026146;l=5}else l=13;else if((h|0)==1668050786){f=66;l=5}else if((h|0)==1718382433)if(f<<24>>24==67){f=69;h=1718382433;l=5}else l=13;else if((h|0)==1919246700)if(f<<24>>24==67){f=69;h=1919246700;l=5}else l=14;else if((h|0)==1952807028){f=66;l=5}else if((h|0)==1651273570)if(f<<24>>24==69|f<<24>>24==67){q=a[(b&n)>>0]|0;k=q;f=65;h=1651273570;g=q<<24>>24==40?b:g}else l=14;else if((h|0)!=1667785074)if((h&16777215|0)==6909556){f=68;break b}else l=5;else{f=66;h=1667785074;g=b;l=5}if((l|0)==13)l=5;else if((l|0)==14)l=5;if((l|0)==5){l=0;k=a[(b&n)>>0]|0}}while(k<<24>>24!=0)}while(0);if((e|0)!=0?(a[(e&n)>>0]=1,f<<24>>24<67):0){if(!g){a[(e&n)>>0]=5;break}b=a[(g&n)>>0]|0;if(b<<24>>24){while(1){if(((b&255)+-48|0)>>>0<10)break;g=g+1|0;b=a[(g&n)>>0]|0;if(!(b<<24>>24))break a}c[(m&p)>>2]=0;Dn(g,m)|0;g=((c[(m&p)>>2]|0)/4|0)+1|0;g=(g|0)>255?255:g;c[(m&p)>>2]=g;a[(e&n)>>0]=g}}}else f=67;while(0);i=o;return f|0}function Yq(e,f){e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;r=i;i=i+32|0;if((i|0)>=(j|0))fa();m=r;q=c[(e&p)>>2]|0;k=c[(e&p)+484>>2]|0;do if(k){h=(b[(k&o)+38>>1]|0)+-1|0;l=c[(k&p)+4>>2]|0;s=c[(f&p)>>2]|0;t=(d[(q&n)+145>>0]|0)+4|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;k=m+20|0;a[(k&n)>>0]=t;c[(m&p)>>2]=78;c[(m&p)+4>>2]=79;c[(m&p)+24>>2]=0;rs(m,s)|0;if(!(a[(k&n)>>0]|0)){c[(m&p)>>2]=c[(l+(h*24|0)&p)>>2];th(e,36480,m);break}k=l+(h*24|0)+4|0;Gk(q,c[(k&p)>>2]|0);c[(k&p)>>2]=Mr(q,c[(f&p)>>2]|0,1,0)|0;l=l+(h*24|0)+8|0;mg(q,c[(l&p)>>2]|0);h=c[(f&p)+4>>2]|0;k=(c[(f&p)+8>>2]|0)-h|0;if((h|0)!=0?(g=jw(k|0,((k|0)<0)<<31>>31|0,1,0)|0,g=mh(q,g,G)|0,(g|0)!=0):0){kw(g|0,h|0,k|0)|0;a[(g+k&n)>>0]=0}else g=0;c[(l&p)>>2]=g}while(0);Gk(q,c[(f&p)>>2]|0);i=r;return}function Zq(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,k=0;k=i;i=i+16|0;if((i|0)>=(j|0))fa();h=k;if((b|0)==72&(d|0)!=0&(e|0)!=0?(c[(a&p)+64>>2]|0)==0:0)b=ss(c[(a&p)>>2]|0,d,e)|0;else{b=nr(c[(a&p)>>2]|0,b,f,1)|0;ts(c[(a&p)>>2]|0,b,d,e)}if((b|0)!=0?(g=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(g|0)<(c[(b&p)+24>>2]|0)):0){c[(h&p)>>2]=g;th(a,27152,h)}i=k;return b|0}function _q(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=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;D=i;i=i+16|0;if((i|0)>=(j|0))fa();C=D;A=c[(e&p)+484>>2]|0;do if((A|0)!=0?(a[(e&n)+451>>0]|0)==0:0){B=A+44|0;m=d[(B&n)>>0]|0;if(m&4){c[(C&p)>>2]=c[(A&p)>>2];th(e,36376,C);break}y=m|4;a[(B&n)>>0]=y;z=(f|0)==0;if(z){m=(b[(A&o)+38>>1]|0)+-1|0;w=c[(A&p)+4>>2]|0;l=w+(m*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=m;q=1;m=c[(w+(m*24|0)&p)+12>>2]|0}else{x=c[(f&p)>>2]|0;if((x|0)>0){u=f+4|0;v=A+4|0;t=b[(A&o)+38>>1]|0;w=0;m=0;do{a:do if(t<<16>>16>0){r=c[((c[(u&p)>>2]|0)+(w*20|0)&p)+4>>2]|0;s=c[(v&p)>>2]|0;q=0;while(1){l=q+1|0;if(!(dd(r,c[(s+(q*24|0)&p)>>2]|0)|0))break;if((l|0)<(t<<16>>16|0))q=l;else break a}l=s+(q*24|0)+23|0;a[(l&n)>>0]=d[(l&n)>>0]|1;l=q;m=c[(s+(q*24|0)&p)+12>>2]|0}else l=0;while(0);w=w+1|0}while((w|0)!=(x|0))}else{l=-1;m=0}q=(x|0)==1}if(q&(m|0)!=0?(dd(m,11144)|0|k|0)==0:0){b[(A&o)+36>>1]=l;a[(A&n)+45>>0]=g;a[(B&n)>>0]=y|h<<3;if(z){f=0;break}a[(e&n)+448>>0]=a[((c[(f&p)+4>>2]|0)&n)+12>>0]|0;break}if(h){th(e,36424,C);break}m=c[(e&p)+8>>2]|0;l=(m|0)!=0;if(l)c[(e&p)+420>>2]=wh(m,156,0,0,0)|0;f=$q(e,0,0,0,f,g,0,0,k,0)|0;if((f|0)!=0?(w=f+51|0,a[(w&n)>>0]=a[(w&n)>>0]&-4|2,l):0){f=c[(e&p)+420>>2]|0;l=c[(m&p)+32>>2]|0;if(l>>>0>f>>>0)c[((c[(m&p)+4>>2]|0)+(f*20|0)&p)+8>>2]=l;c[((c[(m&p)+24>>2]|0)&p)+88>>2]=l+-1;f=0}else f=0}while(0);Nk(c[(e&p)>>2]|0,f);i=D;return}function $q(f,g,h,k,l,m,q,r,s,t){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;s=s|0;t=t|0;var u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0;Y=i;i=i+144|0;if((i|0)>=(j|0))fa();V=Y;E=Y+112|0;x=Y+88|0;T=Y+84|0;N=Y+80|0;X=c[(f&p)>>2]|0;c[(T&p)>>2]=0;c[(N&p)>>2]=0;S=X+65|0;a:do if(((a[(S&n)>>0]|0)==0?(a[(f&n)+451>>0]|0)==0:0)?(Gn(f)|0)==0:0){U=(k|0)!=0;b:do if(U){g=er(f,g,h,T)|0;if((g|0)<0){u=0;h=0;break a}if((a[(X&n)+145>>0]|0)==0?(u=Jr(f,k)|0,(c[(h&p)+4>>2]|0)==0&(u|0)!=0):0)g=(c[(u&p)+68>>2]|0)==(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)?1:g;h=c[(T&p)>>2]|0;u=c[(f&p)>>2]|0;c[(x&p)>>2]=f;u=c[(u&p)+16>>2]|0;c[(x&p)+12>>2]=c[(u+(g<<4)&p)>>2];c[(x&p)+4>>2]=c[(u+(g<<4)&p)+12>>2];c[(x&p)+16>>2]=20632;c[(x&p)+20>>2]=h;u=(g|0)==1;c[(x&p)+8>>2]=u&1;Kr(x,k)|0;w=Ur(f,0,k+8|0)|0;if(!w){u=0;h=0;break a}if(u?(c[((c[(X&p)+16>>2]|0)&p)+28>>2]|0)!=(c[(w&p)+68>>2]|0):0){c[(V&p)>>2]=c[(w&p)>>2];th(f,35920,V);u=0;h=0;break a}if((a[(w&n)+44>>0]&32)!=0?(v=c[(w&p)+8>>2]|0,(v|0)!=0):0){u=v;while(1){if((a[(u&n)+51>>0]&3)==2){v=g;M=u;x=w;break b}u=c[(u&p)+20>>2]|0;if(!u){v=g;M=0;x=w;break}}}else{v=g;M=0;x=w}}else{x=c[(f&p)+484>>2]|0;if(!x){u=0;h=0;break a}g=c[(x&p)+68>>2]|0;if(g){u=c[(X&p)+20>>2]|0;if((u|0)>0){h=c[(X&p)+16>>2]|0;w=0;while(1){v=w+1|0;if((c[(h+(w<<4)&p)+12>>2]|0)==(g|0)){h=0;v=w;M=0;break b}if((v|0)<(u|0))w=v;else{h=0;M=0;break}}}else{h=0;v=0;M=0}}else{h=0;v=-1e6;M=0}}while(0);R=X+16|0;F=c[(R&p)>>2]|0;g=F+(v<<4)|0;A=c[(x&p)>>2]|0;if(((Fc(A,25568,7)|0)==0?(a[(X&n)+145>>0]|0)==0:0)?(Fc(A+7|0,35976,9)|0)!=0:0){c[(V&p)>>2]=A;th(f,35992,V);u=0;h=0;break}if(c[(x&p)+12>>2]|0){th(f,36024,V);u=0;h=0;break}Q=x+44|0;if(a[(Q&n)>>0]&16){th(f,36056,V);u=0;h=0;break}G=(h|0)==0;if(!G){h=Wq(X,h)|0;if(!h){u=0;h=0;break}if(Lr(f,h)|0){u=0;break}if((a[(X&n)+145>>0]|0)==0?(_h(X,h,0)|0)!=0:0){c[(V&p)>>2]=h;th(f,36096,V);u=0;break}if(bq(X,h,c[(g&p)>>2]|0)|0)if(!t){c[(V&p)>>2]=h;th(f,36136,V);u=0;break}else{Ar(f,v);u=0;break}else w=h}else{u=c[(x&p)+8>>2]|0;if(!u)w=1;else{w=1;do{w=w+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}c[(V&p)>>2]=A;c[(V&p)+4>>2]=w;w=uh(X,36160,V)|0;if(!w){u=0;h=0;break}}g=c[(g&p)>>2]|0;u=(v|0)==1;O=u?13184:13208;if((Sq(f,18,O,0,g)|0)==0?(Sq(f,u?3:1,w,c[(x&p)>>2]|0,g)|0)==0:0){if(!l){l=lr(f,0,0)|0;if(!l){l=0;u=0;h=w;break}I=kh(c[(f&p)>>2]|0,c[((c[(x&p)+4>>2]|0)+(((b[(x&o)+38>>1]|0)+-1|0)*24|0)&p)>>2]|0)|0;J=c[(l&p)+4>>2]|0;c[(J&p)+4>>2]=I;a[(J&n)+12>>0]=s}D=c[(l&p)>>2]|0;if((D|0)>0){A=c[(l&p)+4>>2]|0;y=0;g=0;do{u=c[(A+(y*20|0)&p)>>2]|0;if(u){h=c[(u&p)+8>>2]|0;if(!h)u=1;else{u=h;while(1)if(!(a[(u&n)>>0]|0))break;else u=u+1|0;u=(u-h&1073741823)+1|0}g=u+g|0}y=y+1|0}while((y|0)<(D|0));h=g}else h=0;if(!w)u=0;else{g=w;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;u=g-w&1073741823}I=(M|0)!=0;if(I)g=e[(M&o)+46>>1]|0;else g=1;P=us(X,D+g&65535,h+1+u|0,N)|0;c:do if(!(a[(S&n)>>0]|0)){H=c[(N&p)>>2]|0;c[(P&p)>>2]=H;L=u+1|0;C=H+L|0;c[(N&p)>>2]=C;kw(H|0,w|0,L|0)|0;c[(P&p)+12>>2]=x;L=P+50|0;a[(L&n)>>0]=m;H=P+51|0;a[(H&n)>>0]=a[(H&n)>>0]&-12|((m|0)!=0&1)<<3&255|G&1;K=P+24|0;c[(K&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)+12>>2];g=c[(l&p)>>2]|0;J=P+46|0;b[(J&o)>>1]=g;if(r){c[(E&p)>>2]=0;c[(E&p)+4>>2]=0;c[(E&p)+8>>2]=0;c[(E&p)+12>>2]=0;c[(E&p)+16>>2]=0;c[(E&p)+20>>2]=0;c[(E&p)+24>>2]=0;c[(E&p)+28>>2]=0;A=V+0|0;h=A+80|0;do{c[(A&p)>>2]=0;A=A+4|0}while((A|0)<(h|0));c[(V&p)>>2]=1;c[(V&p)+16>>2]=c[(x&p)>>2];c[(V&p)+24>>2]=x;c[(V&p)+48>>2]=-1;c[(E&p)>>2]=f;c[(E&p)+4>>2]=V;b[(E&o)+28>>1]=16;ls(E,r)|0;c[(P&p)+36>>2]=r;g=c[(l&p)>>2]|0}z=(d[((c[(F+(v<<4)&p)+12>>2]|0)&n)+76>>0]|0)>3;d:do if((g|0)>0){G=x+4|0;F=x+38|0;E=P+4|0;r=X+145|0;g=P+32|0;y=P+28|0;h=0;s=c[(l&p)+4>>2]|0;while(1){u=c[(s&p)+4>>2]|0;A=b[(F&o)>>1]|0;e:do if(A<<16>>16>0){D=0;B=c[(G&p)>>2]|0;while(1){if(!(dd(u,c[(B&p)>>2]|0)|0)){t=D;break e}D=D+1|0;if((D|0)<(A<<16>>16|0))B=B+24|0;else{t=D;break}}}else t=0;while(0);if((t|0)>=(A<<16>>16|0))break;b[((c[(E&p)>>2]|0)+(h<<1)&o)>>1]=t;D=c[(s&p)>>2]|0;if(!D){D=c[((c[(G&p)>>2]|0)+(t*24|0)&p)+16>>2]|0;D=(D|0)!=0?D:11152}else{B=c[(D&p)+8>>2]|0;if(!B)D=1;else{D=B;while(1)if(!(a[(D&n)>>0]|0))break;else D=D+1|0;D=(D-B&1073741823)+1|0}kw(C|0,B|0,D|0)|0;B=c[(N&p)>>2]|0;C=B+D|0;c[(N&p)>>2]=C;D=B}if((a[(r&n)>>0]|0)==0?(cr(f,D)|0)==0:0){h=0;u=0;W=134;break c}c[((c[(g&p)>>2]|0)+(h<<2)&p)>>2]=D;a[((c[(y&p)>>2]|0)+h&n)>>0]=z?a[(s&n)+12>>0]|0:0;if(!(a[((c[(G&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))a[(H&n)>>0]=a[(H&n)>>0]&-9;h=h+1|0;if((h|0)<(c[(l&p)>>2]|0))s=s+20|0;else break d}c[(V&p)>>2]=c[(x&p)>>2];c[(V&p)+4>>2]=u;th(f,36184,V);a[(f&n)+17>>0]=1;h=0;u=0;W=134;break c}else h=0;while(0);do if(I){z=M+46|0;A=b[(z&o)>>1]|0;if(!(A<<16>>16))break;E=M+4|0;F=P+4|0;G=P+48|0;s=M+32|0;t=P+32|0;g=M+28|0;y=P+28|0;r=0;do{B=b[((c[(E&p)>>2]|0)+(r<<1)&o)>>1]|0;u=c[(F&p)>>2]|0;D=e[(J&o)>>1]|0;C=u;while(1){if((D|0)<=0){W=92;break}if((b[(C&o)>>1]|0)==B<<16>>16){W=91;break}else{D=D+-1|0;C=C+2|0}}if((W|0)==91){W=0;b[(G&o)>>1]=(b[(G&o)>>1]|0)+-1<<16>>16}else if((W|0)==92){W=0;b[(u+(h<<1)&o)>>1]=B;c[((c[(t&p)>>2]|0)+(h<<2)&p)>>2]=c[((c[(s&p)>>2]|0)+(r<<2)&p)>>2];a[((c[(y&p)>>2]|0)+h&n)>>0]=a[((c[(g&p)>>2]|0)+r&n)>>0]|0;A=b[(z&o)>>1]|0;h=h+1|0}r=r+1|0}while((r|0)<(A&65535|0))}else{b[((c[(P&p)+4>>2]|0)+(h<<1)&o)>>1]=-1;c[((c[(P&p)+32>>2]|0)+(h<<2)&p)>>2]=11152}while(0);cq(P);r=f+484|0;g=c[(r&p)>>2]|0;if(!g){ms(P);g=c[(r&p)>>2]|0}f:do if((x|0)==(g|0)){u=c[(x&p)+8>>2]|0;if(!u)break;B=b[(J&o)>>1]|0;C=P+4|0;D=P+32|0;while(1){if((b[(u&o)+46>>1]|0)==B<<16>>16){g:do if(!(B<<16>>16)){r=0;g=0}else{y=c[(u&p)+4>>2]|0;z=c[(C&p)>>2]|0;A=u+32|0;g=0;while(1){if((b[(y+(g<<1)&o)>>1]|0)!=(b[(z+(g<<1)&o)>>1]|0)){r=B;break g}r=c[((c[(A&p)>>2]|0)+(g<<2)&p)>>2]|0;h=c[((c[(D&p)>>2]|0)+(g<<2)&p)>>2]|0;if((r|0)!=(h|0)?(dd(r,h)|0)!=0:0){r=B;break g}g=g+1|0;if((g|0)>=(B&65535|0)){r=B;break}}}while(0);if((g|0)==(r&65535|0))break}u=c[(u&p)+20>>2]|0;if(!u)break f}g=u+50|0;h=a[(g&n)>>0]|0;r=a[(L&n)>>0]|0;if(h<<24>>24==r<<24>>24){h=0;break c}if(!(h<<24>>24==10|r<<24>>24==10)){c[(V&p)>>2]=0;th(f,36216,V);h=a[(g&n)>>0]|0}if(h<<24>>24!=10){h=0;W=134;break c}a[(g&n)>>0]=a[(L&n)>>0]|0;h=0;break c}while(0);h=X+145|0;do if(!(a[(h&n)>>0]|0)){if(c[(f&p)+64>>2]|0){W=126;break}if(!((a[(Q&n)>>0]&32)==0|U)){W=126;break}u=f+72|0;r=(c[(u&p)>>2]|0)+1|0;c[(u&p)>>2]=r;u=Oq(f)|0;if(!u){h=0;u=0;W=134;break c}J=c[(f&p)+408>>2]|0;J=(J|0)==0?f:J;Ar(f,v);I=J+328|0;c[(I&p)>>2]=c[(I&p)>>2]|1<<v;J=J+20|0;a[(J&n)>>0]=d[(J&n)>>0]|1;wh(u,120,v,r,0)|0;if(!q)g=0;else{g=c[(c[(T&p)>>2]&p)>>2]|0;J=(c[(f&p)+504>>2]|0)-g+(c[(f&p)+508>>2]|0)|0;I=J+-1|0;J=(a[(g+I&n)>>0]|0)==59?I:J;c[(V&p)>>2]=(m|0)==0?10360:36288;c[(V&p)+4>>2]=J;c[(V&p)+8>>2]=g;g=uh(X,36264,V)|0}I=c[(P&p)>>2]|0;J=c[(x&p)>>2]|0;c[(V&p)>>2]=c[((c[(R&p)>>2]|0)+(v<<4)&p)>>2];c[(V&p)+4>>2]=O;c[(V&p)+8>>2]=I;c[(V&p)+12>>2]=J;c[(V&p)+16>>2]=r;c[(V&p)+20>>2]=g;Br(f,36296,V);mg(X,g);if(!U)break;vs(f,P,r);Dr(f,v);c[(V&p)>>2]=c[(P&p)>>2];Ir(u,v,uh(X,36344,V)|0);wh(u,144,0,0,0)|0;W=126}else{if(Ik((c[(K&p)>>2]|0)+24|0,c[(P&p)>>2]|0,P)|0){a[(S&n)>>0]=1;h=0;u=0;W=134;break c}J=X+24|0;c[(J&p)>>2]=c[(J&p)>>2]|2;if(!U)break;c[(P&p)+40>>2]=c[(X&p)+140>>2];W=126}while(0);if((W|0)==126?!((a[(h&n)>>0]|0)!=0|(k|0)==0):0){h=0;u=0;W=134;break}h=c[(x&p)+8>>2]|0;do if((m|0)==5){if(!h){h=0;break}if((a[(h&n)+50>>0]|0)==5)break;do{u=h+20|0;h=c[(u&p)>>2]|0;if(!h){h=0;break}}while((a[(h&n)+50>>0]|0)!=5);c[(P&p)+20>>2]=h;c[(u&p)>>2]=P;r=0;u=P;h=w;break a}while(0);c[(P&p)+20>>2]=h;c[(x&p)+8>>2]=P;r=0;u=P;h=w;break a}else{h=r;u=0;W=134}while(0);if((W|0)==134)if(!P){r=h;h=w;break}Jk(X,P);r=h;h=w}else{u=0;h=w}}else{u=0;h=0}while(0);Gk(X,r);Nk(X,l);Do(X,k);mg(X,h);i=Y;return u|0}function ar(e,f){e=e|0;f=f|0;var g=0,h=0;g=c[(e&p)+484>>2]|0;h=c[(e&p)>>2]|0;if(((g|0)!=0?(a[(e&n)+451>>0]|0)==0:0)?(b[((c[((c[((c[(h&p)+16>>2]|0)+(d[(h&n)+144>>0]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&o)+22>>1]&1)==0:0){h=g+24|0;g=lr(e,c[(h&p)>>2]|0,f)|0;c[(h&p)>>2]=g;if(c[(e&p)+324>>2]|0)mr(e,g,e+320|0,1)}else Gk(h,f);return}function br(d,e,f,g,h){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;F=i;i=i+16|0;if((i|0)>=(j|0))fa();C=F;E=c[(d&p)>>2]|0;D=c[(d&p)+484>>2]|0;a:do if((D|0)!=0?(a[(d&n)+451>>0]|0)==0:0){z=(e|0)==0;do if(z){B=b[(D&o)+38>>1]|0;l=(B<<16>>16)+-1|0;if(B<<16>>16<1){k=0;break a}if(g)if((c[(g&p)>>2]|0)==1){l=1;k=13}else{c[(C&p)>>2]=c[((c[(D&p)+4>>2]|0)+(l*24|0)&p)>>2];c[(C&p)+4>>2]=f;th(d,35712,C);k=0;break a}else{l=1;k=12}}else{if(!g){l=c[(e&p)>>2]|0;k=12;break}l=c[(g&p)>>2]|0;if((l|0)==(c[(e&p)>>2]|0))k=13;else{th(d,35776,C);k=0;break a}}while(0);if((k|0)==12){m=f+4|0;s=m;w=0;m=(l<<3)+37+(c[(m&p)>>2]|0)|0;B=l}else if((k|0)==13){s=f+4|0;m=(l<<3)+37+(c[(s&p)>>2]|0)|0;t=c[(g&p)>>2]|0;if((t|0)>0){u=c[(g&p)+4>>2]|0;v=0;do{r=c[(u+(v*20|0)&p)+4>>2]|0;if(!r)k=1;else{q=r;while(1)if(!(a[(q&n)>>0]|0))break;else q=q+1|0;k=(q-r&1073741823)+1|0}m=k+m|0;v=v+1|0}while((v|0)<(t|0));w=1;B=l}else{w=1;B=l}}k=mh(E,m,((m|0)<0)<<31>>31)|0;if(k){fw(k|0,0,m|0)|0;c[(k&p)>>2]=D;A=D+16|0;c[(k&p)+4>>2]=c[(A&p)>>2];x=k+36|0;q=x+(B<<3)|0;y=k+8|0;c[(y&p)>>2]=q;kw(q|0,c[(f&p)>>2]|0,c[(s&p)>>2]|0)|0;a[(q+(c[(s&p)>>2]|0)&n)>>0]=0;lo(q);q=q+((c[(s&p)>>2]|0)+1)|0;c[(k&p)+20>>2]=B;b:do if(!z){if((B|0)>0){m=D+4|0;f=e+4|0;r=b[(D&o)+38>>1]|0;l=0;while(1){c:do if(r<<16>>16>0){v=c[(m&p)>>2]|0;u=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2]|0;t=0;while(1){s=t+1|0;if(!(dd(c[(v+(t*24|0)&p)>>2]|0,u)|0)){s=t;break}if((s|0)<(r<<16>>16|0))t=s;else break c}c[(x+(l<<3)&p)>>2]=s}else s=0;while(0);if((s|0)>=(r<<16>>16|0))break;l=l+1|0;if((l|0)>=(B|0))break b}c[(C&p)>>2]=c[((c[(f&p)>>2]|0)+(l*20|0)&p)+4>>2];th(d,35872,C);break a}}else c[(x&p)>>2]=(b[(D&o)+38>>1]|0)+-1;while(0);if(w&(B|0)>0){r=g+4|0;s=0;while(1){m=c[((c[(r&p)>>2]|0)+(s*20|0)&p)+4>>2]|0;if(!m)l=0;else{l=m;while(1)if(!(a[(l&n)>>0]|0))break;else l=l+1|0;l=l-m&1073741823}c[(x+(s<<3)&p)+4>>2]=q;kw(q|0,m|0,l|0)|0;a[(q+l&n)>>0]=0;s=s+1|0;if((s|0)==(B|0))break;else q=q+(l+1)|0}}a[(k&n)+24>>0]=0;a[(k&n)+25>>0]=h;a[(k&n)+26>>0]=h>>>8;l=Ik((c[(D&p)+68>>2]|0)+56|0,c[(y&p)>>2]|0,k)|0;if((l|0)==(k|0)){a[(E&n)+65>>0]=1;break}if(l){c[(k&p)+12>>2]=l;c[(l&p)+16>>2]=k}c[(A&p)>>2]=k;k=0}else k=0}else k=0;while(0);mg(E,k);Nk(E,e);Nk(E,g);i=F;return}function cr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;e=c[(b&p)>>2]|0;f=a[(e&n)+62>>0]|0;g=a[(e&n)+145>>0]|0;e=Yn(e,f,d,g&255)|0;do if(!(g<<24>>24)){if((e|0)!=0?(c[(e&p)+12>>2]|0)!=0:0)break;e=ws(b,f,e,d)|0}while(0);return e|0}function dr(e,f,g,h){e=e|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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;B=i;i=i+16|0;if((i|0)>=(j|0))fa();z=B;v=B+12|0;A=c[(e&p)>>2]|0;do if(!(a[(A&n)+65>>0]|0)){h=(h|0)!=0;if(h){u=A+68|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+1<<24>>24;y=Ur(e,g,f+8|0)|0;a[(u&n)>>0]=(a[(u&n)>>0]|0)+-1<<24>>24}else y=Ur(e,g,f+8|0)|0;if(!y){if(!h)break;zr(e,c[(f&p)+12>>2]|0);break}s=y+68|0;l=c[(s&p)>>2]|0;a:do if(l){h=c[(A&p)+20>>2]|0;if((h|0)>0){k=c[(A&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(k+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(h|0))q=m;else break}}else m=0}else m=-1e6;while(0);w=y+44|0;if((a[(w&n)>>0]&16)!=0?(hr(e,y)|0)!=0:0)break;q=(m|0)==1;x=q?13184:13208;h=c[((c[(A&p)+16>>2]|0)+(m<<4)&p)>>2]|0;if(!(Sq(e,9,x,0,h)|0)){k=(g|0)!=0;do if(k){l=q?15:17;q=0}else{if(!(a[(w&n)>>0]&16)){l=q?13:11;q=0;break}q=y+60|0;while(1){q=c[(q&p)>>2]|0;if((c[(q&p)>>2]|0)==(A|0))break;else q=q+24|0}l=30;q=c[((c[(q&p)+4>>2]|0)&p)+4>>2]|0}while(0);if((Sq(e,l,c[(y&p)>>2]|0,q,h)|0)==0?(Sq(e,9,c[(y&p)>>2]|0,0,h)|0)==0:0){q=c[(y&p)>>2]|0;if((Fc(q,25568,7)|0)==0?(Fc(q,35488,11)|0)!=0:0){c[(z&p)>>2]=q;th(e,35504,z);break}h=y+12|0;l=(c[(h&p)>>2]|0)==0;if(k){if(l){c[(z&p)>>2]=q;th(e,35536,z);break}}else if(!l){c[(z&p)>>2]=q;th(e,35576,z);break}if(Oq(e)|0){t=e+408|0;l=c[(t&p)>>2]|0;l=(l|0)==0?e:l;Ar(e,m);u=1<<m;k=l+328|0;c[(k&p)>>2]=c[(k&p)>>2]|u;l=l+20|0;a[(l&n)>>0]=d[(l&n)>>0]|1;Cr(e,m,28544,c[(y&p)>>2]|0);l=c[(e&p)>>2]|0;k=l+24|0;b:do if(((c[(k&p)>>2]&524288|0)!=0?(a[(w&n)>>0]&16)==0:0)?(c[(h&p)>>2]|0)==0:0){r=Oq(e)|0;v=bn((c[(s&p)>>2]|0)+56|0,c[(y&p)>>2]|0,v)|0;if((v|0)!=0?(c[(v&p)+8>>2]|0)!=0:0)q=0;else{q=c[(y&p)+16>>2]|0;if(!q)break;while(1){if(a[(q&n)+24>>0]|0)break;if(c[(k&p)>>2]&16777216)break;q=c[(q&p)+4>>2]|0;if(!q)break b}q=xs(r)|0;wh(r,135,1,q,0)|0}v=e+438|0;a[(v&n)>>0]=1;rr(e,ys(l,f,0)|0,0);a[(v&n)>>0]=0;if(!(c[(k&p)>>2]&16777216)){wh(r,135,0,(c[(r&p)+32>>2]|0)+2|0,0)|0;zs(e,787,2,0,-2,4)}if(q){l=c[(r&p)+24>>2]|0;h=~q;do if((q|0)<0){q=c[(l&p)+112>>2]|0;if(!q)break;c[(q+(h<<2)&p)>>2]=c[(r&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(r&p)+32>>2]|0)+-1}}while(0);r=c[(e&p)>>2]|0;s=r+16|0;l=c[(s&p)>>2]|0;h=Oq(e)|0;v=c[(t&p)>>2]|0;v=(v|0)==0?e:v;Ar(e,m);t=v+328|0;c[(t&p)>>2]=c[(t&p)>>2]|u;v=v+20|0;a[(v&n)>>0]=d[(v&n)>>0]|1;if(a[(w&n)>>0]&16)wh(h,146,0,0,0)|0;q=As(e,y)|0;if(q)do{Qr(e,q);q=c[(q&p)+32>>2]|0}while((q|0)!=0);l=l+(m<<4)|0;if(a[(w&n)>>0]&8){v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=v;Br(e,35608,z)}v=c[(y&p)>>2]|0;c[(z&p)>>2]=c[(l&p)>>2];c[(z&p)+4>>2]=x;c[(z&p)+8>>2]=v;Br(e,35656,z);if((g|0)==0?(a[(w&n)>>0]&16)==0:0)Bs(e,y);if(a[(w&n)>>0]&16){v=c[(y&p)>>2]|0;xh(h,wh(h,148,m,0,0)|0,v,0)}k=c[(y&p)>>2]|0;xh(h,wh(h,124,m,0,0)|0,k,0);Dr(e,m);h=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;k=b[(h&o)+78>>1]|0;if(k&2){l=c[(h&p)+16>>2]|0;if(l){k=l;do{h=c[(k&p)+8>>2]|0;if(c[(h&p)+12>>2]|0){Lk(r,h);c[(h&p)+4>>2]=0;b[(h&o)+38>>1]=0}k=c[(k&p)>>2]|0}while((k|0)!=0);k=c[((c[(s&p)>>2]|0)+(m<<4)&p)+12>>2]|0;h=k;k=b[(k&o)+78>>1]|0}b[(h&o)+78>>1]=k&65533}}}}}while(0);Do(A,f);i=B;return}function er(b,e,f,g){b=b|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();k=m;h=c[(b&p)>>2]|0;do if((f|0)!=0?(c[(f&p)+4>>2]|0)!=0:0){if(a[(h&n)+145>>0]|0){th(b,28488,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1;break}c[(g&p)>>2]=f;g=Wq(h,e)|0;f=Vh(h,g)|0;mg(h,g);if((f|0)<0){c[(k&p)>>2]=e;th(b,28512,k);f=b+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1;f=-1}}else l=7;while(0);if((l|0)==7){f=d[(h&n)+144>>0]|0;c[(g&p)>>2]=e}i=m;return f|0}function fr(a,b){a=a|0;b=b|0;a:do if(!b)b=0;else while(1){if(Hr(a,c[(b&p)>>2]|0)|0){b=1;break a}if(Kr(a,c[(b&p)+32>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+36>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+40>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+44>>2]|0)|0){b=1;break a}if(Hr(a,c[(b&p)+48>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+60>>2]|0)|0){b=1;break a}if(Gr(a,c[(b&p)+64>>2]|0)|0){b=1;break a}b=c[(b&p)+52>>2]|0;if(!b){b=0;break}}while(0);return b|0}function gr(d,f,g){d=d|0;f=f|0;g=g|0;var h=0,i=0,j=0,k=0,l=0;if((f|0)!=0?(h=mh(d,72,0)|0,(h|0)!=0):0){c[(h&p)>>2]=Pr(d,c[(f&p)>>2]|0,g)|0;c[(h&p)+32>>2]=ys(d,c[(f&p)+32>>2]|0,g)|0;c[(h&p)+36>>2]=Mr(d,c[(f&p)+36>>2]|0,g,0)|0;c[(h&p)+40>>2]=Pr(d,c[(f&p)+40>>2]|0,g)|0;c[(h&p)+44>>2]=Mr(d,c[(f&p)+44>>2]|0,g,0)|0;c[(h&p)+48>>2]=Pr(d,c[(f&p)+48>>2]|0,g)|0;a[(h&n)+4>>0]=a[(f&n)+4>>0]|0;j=gr(d,c[(f&p)+52>>2]|0,g)|0;c[(h&p)+52>>2]=j;if(j)c[(j&p)+56>>2]=h;c[(h&p)+56>>2]=0;c[(h&p)+60>>2]=Mr(d,c[(f&p)+60>>2]|0,g,0)|0;c[(h&p)+64>>2]=Mr(d,c[(f&p)+64>>2]|0,g,0)|0;c[(h&p)+8>>2]=0;c[(h&p)+12>>2]=0;b[(h&o)+6>>1]=(e[(f&o)+6>>1]|0)&65527;c[(h&p)+16>>2]=-1;c[(h&p)+20>>2]=-1;l=f+24|0;j=c[(l&p)+4>>2]|0;g=h+24|0;c[(g&p)>>2]=c[(l&p)>>2];c[(g&p)+4>>2]=j;g=c[(f&p)+68>>2]|0;if((g|0)!=0?(k=c[(g&p)>>2]<<4|8,i=mh(d,k,((k|0)<0)<<31>>31)|0,(i|0)!=0):0){fw(i|0,0,k|0)|0;c[(i&p)>>2]=c[(g&p)>>2];if((c[(g&p)>>2]|0)>0){f=i+8|0;j=0;do{c[(f+(j<<4)&p)+8>>2]=gr(d,c[(g+(j<<4)&p)+16>>2]|0,0)|0;c[(f+(j<<4)&p)+4>>2]=Pr(d,c[(g+(j<<4)&p)+12>>2]|0,0)|0;c[(f+(j<<4)&p)>>2]=kh(d,c[(g+(j<<4)&p)+8>>2]|0)|0;j=j+1|0}while((j|0)<(c[(g&p)>>2]|0))}}else i=0;c[(h&p)+68>>2]=i}else h=0;return h|0}function hr(d,f){d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;w=i;i=i+16|0;if((i|0)>=(j|0))fa();s=w;k=w+8|0;m=w+4|0;v=c[(d&p)>>2]|0;q=f+44|0;h=a[(q&n)>>0]|0;a:do if(!(h&16))t=11;else{g=c[(f&p)+60>>2]|0;if(g)do{if((c[(g&p)>>2]|0)==(v|0)){t=11;break a}g=c[(g&p)+24>>2]|0}while((g|0)!=0);g=f+56|0;h=bn(v+308|0,c[(c[(g&p)>>2]&p)>>2]|0,k)|0;if((h|0)!=0?(l=c[(h&p)+8>>2]|0,(l|0)!=0):0){c[(m&p)>>2]=0;l=(zn(v,f,l,c[((c[(l&p)>>2]|0)&p)+8>>2]|0,m)|0)==0;h=c[(m&p)>>2]|0;if(l){mg(v,h);h=a[(q&n)>>0]|0;t=11;break}else{c[(s&p)>>2]=h;th(d,10344,s);mg(v,h);g=1;break}}c[(s&p)>>2]=c[(c[(g&p)>>2]&p)>>2];th(d,28320,s);g=1}while(0);do if((t|0)==11)if((h&16)==0?(u=f+38|0,r=b[(u&o)>>1]|0,r<<16>>16<=0):0){if(r<<16>>16<0){c[(s&p)>>2]=c[(f&p)>>2];th(d,26752,s);g=1;break}h=gr(v,c[(f&p)+12>>2]|0,0)|0;if(!h)g=1;else{r=v+250|0;q=a[(r&n)>>0]|0;t=d+68|0;s=c[(t&p)>>2]|0;Cs(d,c[(h&p)+32>>2]|0);b[(u&o)>>1]=-1;a[(r&n)>>0]=0;m=v+284|0;l=c[(m&p)>>2]|0;c[(m&p)>>2]=0;g=ns(d,h)|0;c[(m&p)>>2]=l;a[(r&n)>>0]=q;c[(t&p)>>2]=s;if(!g){b[(u&o)>>1]=0;g=1}else{d=g+38|0;b[(u&o)>>1]=b[(d&o)>>1]|0;t=g+4|0;c[(f&p)+4>>2]=c[(t&p)>>2];b[(d&o)>>1]=0;c[(t&p)>>2]=0;kg(v,g);g=(c[(f&p)+68>>2]|0)+78|0;b[(g&o)>>1]=e[(g&o)>>1]|0|2;g=0}Mk(v,h,1)}}else g=0;while(0);i=w;return g|0}
|
|
function ir(f,g,h){f=f|0;g=g|0;h=h|0;var k=0,l=0,m=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,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,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,Aa=0,Ba=0,Ca=0;Ca=i;i=i+240|0;if((i|0)>=(j|0))fa();ra=Ca;sa=Ca+220|0;ka=Ca+216|0;ia=Ca+196|0;ja=Ca+176|0;ua=Ca+164|0;va=Ca+136|0;ya=Ca+88|0;ga=Ca+64|0;ma=Ca+32|0;Aa=f+464|0;Ba=c[(Aa&p)>>2]|0;oa=f+468|0;xa=c[(oa&p)>>2]|0;c[(oa&p)>>2]=xa+1;c[(Aa&p)>>2]=xa;xa=c[(f&p)>>2]|0;a:do if((((g|0)!=0?(pa=xa+65|0,(a[(pa&n)>>0]|0)==0):0)?(k=f+64|0,(c[(k&p)>>2]|0)==0):0)?(Sq(f,21,0,0,0)|0)==0:0){D=ya+0|0;C=D+48|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));la=g+48|0;if((d[(h&n)>>0]|0)<9){Nk(xa,c[(la&p)>>2]|0);c[(la&p)>>2]=0;ea=g+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]&65534}Ds(f,g,0);c[(va&p)>>2]=0;c[(va&p)+4>>2]=0;c[(va&p)+8>>2]=0;c[(va&p)+12>>2]=0;c[(va&p)+16>>2]=0;c[(va&p)+20>>2]=0;c[(va&p)+24>>2]=0;c[(va&p)>>2]=c[(la&p)>>2];na=g+32|0;x=c[(na&p)>>2]|0;w=c[(g&p)>>2]|0;b:do if(((c[(k&p)>>2]|0)==0?(a[(pa&n)>>0]|0)==0:0)?(ta=g+6|0,z=(e[(ta&o)>>1]|0)>>>2&1,wa=Oq(f)|0,(wa|0)!=0):0){if((c[(w&p)>>2]|0)>1?(a[(h&n)>>0]&-2)<<24>>24==10:0){th(f,35368,ra);za=444;break}qa=g+52|0;w=c[(qa&p)>>2]|0;c:do if(!w){r=f+460|0;q=f+492|0;m=g+36|0;l=f+408|0;k=g+60|0;T=g+64|0;U=g+4|0;V=xa+60|0;W=wa+32|0;X=f+72|0;Y=ga+4|0;Z=ga+1|0;_=ga+8|0;$=ga+12|0;aa=wa+4|0;ba=wa+24|0;ca=f+19|0;da=f+56|0;ea=f+80|0;S=0;y=z;while(1){if((S|0)>=(c[(x&p)>>2]|0)){H=m;Q=0;z=y;U=x;break c}N=c[(x+(S*72|0)&p)+28>>2]|0;do if(!N)z=S;else{P=x+(S*72|0)+32|0;A=c[(P&p)>>2]|0;if(A){if(a[(x+(S*72|0)&n)+45>>0]&4){z=S;break}wh(wa,17,c[(x+(S*72|0)&p)+36>>2]|0,A,0)|0;z=S;break}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)+(c[(ra&p)>>2]|0);v=b[(N&o)+6>>1]&4;Q=c[(q&p)>>2]|0;u=c[(f&p)>>2]|0;d:do if(!(b[(u&o)+60>>1]&1)){L=c[(na&p)>>2]|0;t=c[(L+(S*72|0)&p)+48>>2]|0;K=L+(S*72|0)+28|0;O=c[(K&p)>>2]|0;s=v<<16>>16!=0;do if(s){if(y){za=120;break d}if((c[(L&p)>>2]|0)>1){za=120;break d}R=c[(m&p)>>2]|0;if((R|0)!=0?(c[(R&p)+4>>2]&2097152|0)!=0:0){za=120;break d}H=c[(g&p)>>2]|0;do if(H){E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);H=c[(la&p)>>2]|0;if(!H)break;E=c[(H&p)>>2]|0;if((E|0)<=0)break;I=c[(H&p)+4>>2]|0;H=0;F=0;do{F=c[((c[(I+(H*20|0)&p)>>2]|0)&p)+4>>2]|F;H=H+1|0}while((H|0)!=(E|0));if(F&2097152){za=120;break d}}while(0);I=c[(O&p)+32>>2]|0;H=(c[(O&p)+60>>2]|0)==0;if(!H?(c[(k&p)>>2]|0)!=0:0){za=120;break}if(c[(O&p)+64>>2]|0){za=120;break}E=b[(ta&o)>>1]|0;F=(E&64)==0;if(!(F|H)){za=120;break}if(!(c[(I&p)>>2]|0)){za=120;break}D=b[(O&o)+6>>1]|0;if(D&1){za=120;break}I=H|F^1;if(!I?(c[(L&p)>>2]|0)>1|(y|0)!=0:0){za=120;break}H=E&1;if(H<<16>>16!=0&s){za=120;break}B=c[(la&p)>>2]|0;C=(B|0)==0;if(!C?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}J=(y|0)!=0;if(J?(c[(O&p)+48>>2]|0)!=0:0){za=120;break}if(I){if(D&6144){za=120;break}}else if(!((c[(m&p)>>2]|0)==0&H<<16>>16==0&(D&6144)==0)){za=120;break}if((E&2048)!=0?(c[(O&p)+52>>2]|0)!=0:0){za=120;break}R=L+(S*72|0)+44|0;if(a[(R&n)>>0]&32){za=120;break}E=O+52|0;I=c[(E&p)>>2]|0;do if(I){if(!(H<<16>>16==0&(((c[(O&p)+48>>2]|0)!=0|J)^1))){za=120;break d}if((c[(L&p)>>2]|0)!=1){za=120;break d}e:do if(O){if(!(D&5))F=O;else{za=120;break d}while(1){H=(I|0)==0;if(!H?(a[(F&n)+4>>0]|0)!=116:0){za=120;break d}if((c[(c[(F&p)+32>>2]&p)>>2]|0)<1){za=120;break d}if((c[(c[(O&p)>>2]&p)>>2]|0)!=(c[(c[(F&p)>>2]&p)>>2]|0)){za=120;break d}if(H)break e;if(b[(I&o)+6>>1]&5){za=120;break d}F=I;I=c[(I&p)+52>>2]|0}}while(0);if(C)break;F=c[(B&p)>>2]|0;if((F|0)<=0)break;I=c[(B&p)+4>>2]|0;H=0;do{if(!(b[(I+(H*20|0)&o)+16>>1]|0)){za=120;break d}H=H+1|0}while((H|0)<(F|0))}while(0);A=L+(S*72|0)+16|0;c[(q&p)>>2]=c[(A&p)>>2];Sq(f,21,0,0,0)|0;c[(q&p)>>2]=Q;I=c[(E&p)>>2]|0;f:do if(!I)za=81;else{B=u+65|0;E=c[(la&p)>>2]|0;D=c[(k&p)>>2]|0;C=c[(T&p)>>2]|0;F=c[(qa&p)>>2]|0;while(1){c[(la&p)>>2]=0;c[(na&p)>>2]=0;c[(qa&p)>>2]=0;c[(k&p)>>2]=0;c[(T&p)>>2]=0;H=gr(u,g,0)|0;c[(T&p)>>2]=C;c[(k&p)>>2]=D;c[(la&p)>>2]=E;c[(na&p)>>2]=L;a[(U&n)>>0]=116;if(!H)H=F;else{c[(H&p)+52>>2]=F;if(F)c[(F&p)+56>>2]=H;c[(H&p)+56>>2]=g}c[(qa&p)>>2]=H;if(a[(B&n)>>0]|0)break f;I=c[(I&p)+52>>2]|0;if(!I){za=81;break}else F=H}}while(0);if((za|0)==81){za=0;M=c[(K&p)>>2]|0;E=L+(S*72|0)+12|0;mg(u,c[(E&p)>>2]|0);mg(u,c[(A&p)>>2]|0);F=L+(S*72|0)+20|0;mg(u,c[(F&p)>>2]|0);c[(E&p)>>2]=0;c[(A&p)>>2]=0;c[(F&p)>>2]=0;c[(K&p)>>2]=0;F=L+(S*72|0)+24|0;E=c[(F&p)>>2]|0;if(E){D=E+40|0;C=b[(D&o)>>1]|0;if(C<<16>>16==1){Q=c[(l&p)>>2]|0;Q=((Q|0)==0?f:Q)+524|0;c[(E&p)+72>>2]=c[(Q&p)>>2];c[(Q&p)>>2]=E}else b[(D&o)>>1]=C+-1<<16>>16;c[(F&p)>>2]=0}Q=S+1|0;P=u+65|0;O=g;N=M;while(1){B=c[(N&p)+32>>2]|0;A=c[(B&p)>>2]|0;H=O+32|0;I=c[(H&p)>>2]|0;if(!I){I=pr(u,0,0,0)|0;c[(H&p)>>2]=I;if(!I)break;else z=0}else z=a[(R&n)>>0]|0;if((A|0)>1){I=Fs(u,I,A+-1|0,Q)|0;c[(H&p)>>2]=I;if(a[(P&n)>>0]|0)break}if((A|0)>0){F=0;do{D=F+S|0;Hk(u,c[(I+(D*72|0)&p)+56>>2]|0);H=B+(F*72|0)+8|0;D=I+(D*72|0)+8|0;E=H+0|0;C=D+72|0;do{c[(D&p)>>2]=c[(E&p)>>2];D=D+4|0;E=E+4|0}while((D|0)<(C|0));D=H+0|0;C=D+72|0;do{c[(D&p)>>2]=0;D=D+4|0}while((D|0)<(C|0));F=F+1|0}while((F|0)!=(A|0))}a[(I+(S*72|0)&n)+44>>0]=z;H=c[(O&p)>>2]|0;I=c[(H&p)>>2]|0;if((I|0)>0){D=H+4|0;F=c[(D&p)>>2]|0;E=0;do{if(!(c[(F+(E*20|0)&p)+4>>2]|0)){I=kh(u,c[(F+(E*20|0)&p)+8>>2]|0)|0;lo(I);F=c[(D&p)>>2]|0;c[(F+(E*20|0)&p)+4>>2]=I;I=c[(H&p)>>2]|0}E=E+1|0}while((E|0)<(I|0));H=c[(O&p)>>2]|0}Gs(u,H,t,c[(N&p)>>2]|0);if(J){Gs(u,c[(O&p)+40>>2]|0,t,c[(N&p)>>2]|0);L=O+44|0;c[(L&p)>>2]=Hs(u,c[(L&p)>>2]|0,t,c[(N&p)>>2]|0)|0}I=N+48|0;H=c[(I&p)>>2]|0;do if(!H){H=c[(O&p)+48>>2]|0;if(!H)break;Gs(u,H,t,c[(N&p)>>2]|0)}else{F=c[(H&p)>>2]|0;if((F|0)>0){E=c[(H&p)+4>>2]|0;D=0;do{b[(E+(D*20|0)&o)+16>>1]=0;D=D+1|0}while((D|0)!=(F|0))}c[(O&p)+48>>2]=H;c[(I&p)>>2]=0}while(0);H=c[(N&p)+36>>2]|0;if(!H)F=0;else F=Mr(u,H,0,0)|0;I=O+36|0;H=c[(I&p)>>2]|0;if(s){L=O+44|0;c[(L&p)>>2]=H;c[(I&p)>>2]=F;K=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(L&p)>>2]=K;c[(L&p)>>2]=ss(u,K,Mr(u,c[(N&p)+44>>2]|0,0,0)|0)|0;c[(O&p)+40>>2]=Pr(u,c[(N&p)+40>>2]|0,0)|0}else{L=Hs(u,H,t,c[(N&p)>>2]|0)|0;c[(I&p)>>2]=L;c[(I&p)>>2]=ss(u,L,F)|0}H=O+6|0;b[(H&o)>>1]=e[(H&o)>>1]|e[(N&o)+6>>1]&1;H=N+60|0;F=c[(H&p)>>2]|0;if(F){c[(O&p)+60>>2]=F;c[(H&p)>>2]=0}O=c[(O&p)+52>>2]|0;if(!O)break;else N=c[(N&p)+52>>2]|0}Mk(u,M,1)}if(!(v<<16>>16)){z=-1;break}b[(ta&o)>>1]=e[(ta&o)>>1]|4;z=-1;y=1}else za=120;while(0);g:do if((za|0)==120){za=0;do if((c[(x&p)>>2]|0)==1){if(b[(V&o)>>1]&256)break;D=c[(W&p)>>2]|0;R=D+1|0;Q=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=Q;z=x+(S*72|0)+36|0;c[(z&p)>>2]=Q;wh(wa,20,Q,0,R)|0;c[(P&p)>>2]=R;R=c[(z&p)>>2]|0;a[(ga&n)>>0]=13;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;R=x+(S*72|0)+45|0;a[(R&n)>>0]=a[(R&n)>>0]|4;c[(x+(S*72|0)&p)+40>>2]=c[(_&p)>>2];wh(wa,21,c[(z&p)>>2]|0,0,0)|0;z=c[(W&p)>>2]|0;if(z>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=z;c[((c[(ba&p)>>2]|0)&p)+88>>2]=z+-1;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S;break g}while(0);C=(c[(X&p)>>2]|0)+1|0;c[(X&p)>>2]=C;E=x+(S*72|0)+36|0;c[(E&p)>>2]=C;C=wh(wa,25,0,C,0)|0;c[(P&p)>>2]=C+1;if(!(a[(x+(S*72|0)&n)+45>>0]&2)){R=Oq(f)|0;D=c[(ea&p)>>2]|0;c[(ea&p)>>2]=D+1;D=wh(R,44,D,0,0)|0}else D=0;R=c[(x+(S*72|0)&p)+48>>2]|0;a[(ga&n)>>0]=12;c[(Y&p)>>2]=R;a[(Z&n)>>0]=0;c[(_&p)>>2]=0;c[($&p)>>2]=0;a[(x+(S*72|0)&n)+46>>0]=c[(oa&p)>>2];ir(f,N,ga)|0;R=N+24|0;R=fs(c[(R&p)>>2]|0,c[(R&p)+4>>2]|0)|0;b[((c[(x+(S*72|0)&p)+24>>2]|0)&o)+28>>1]=R;if(D){A=c[(W&p)>>2]|0;if(A>>>0>D>>>0)c[((c[(aa&p)>>2]|0)+(D*20|0)&p)+8>>2]=A;c[((c[(ba&p)>>2]|0)&p)+88>>2]=A+-1}z=wh(wa,18,c[(E&p)>>2]|0,0,0)|0;if((c[(W&p)>>2]|0)>>>0>C>>>0)c[((c[(aa&p)>>2]|0)+(C*20|0)&p)+4>>2]=z;a[(ca&n)>>0]=0;c[(da&p)>>2]=0;z=S}while(0);if(a[(pa&n)>>0]|0){za=444;break b}c[(ra&p)>>2]=0;Es(g,ra);c[(r&p)>>2]=(c[(r&p)>>2]|0)-(c[(ra&p)>>2]|0);x=c[(na&p)>>2]|0;if((d[(h&n)>>0]|0)<9)break;c[(va&p)>>2]=c[(la&p)>>2]}while(0);w=c[(qa&p)>>2]|0;if(!w)S=z+1|0;else{H=m;Q=w;z=y;U=x;break}}}else{H=g+36|0;Q=w;U=x}while(0);T=c[(g&p)>>2]|0;B=c[(H&p)>>2]|0;l=g+40|0;w=c[(l&p)>>2]|0;I=g+44|0;ga=c[(I&p)>>2]|0;m=b[(ta&o)>>1]|0;a[(ua&n)>>0]=m&1;if(Q){O=c[(f&p)>>2]|0;c[(sa&p)>>2]=c[(h&p)>>2];c[(sa&p)+4>>2]=c[(h&p)+4>>2];c[(sa&p)+8>>2]=c[(h&p)+8>>2];c[(sa&p)+12>>2]=c[(h&p)+12>>2];c[(sa&p)+16>>2]=c[(h&p)+16>>2];h:do if(!(c[(Q&p)+48>>2]|0)){x=Q+60|0;if(c[(x&p)>>2]|0){k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35072,ra);m=0;k=1;za=227;break}R=Oq(f)|0;t=a[(sa&n)>>0]|0;if(t<<24>>24==12){wh(R,57,c[(sa&p)+4>>2]|0,c[(c[(g&p)>>2]&p)>>2]|0,0)|0;t=c[(R&p)+4>>2]|0;if(t)a[(t+(((c[(R&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(sa&n)>>0]=14;t=14}s=e[(ta&o)>>1]|0;if(s&256){m=0;k=Is(f,g,sa)|0;za=227;break}if((c[(c[(g&p)>>2]&p)>>2]|0)!=(c[(c[(Q&p)>>2]&p)>>2]|0)){Js(f,g);m=0;k=1;za=227;break}do if(!(s&2048)){if(c[(la&p)>>2]|0){k=Ls(f,g,h)|0;break h}P=g+4|0;s=d[(P&n)>>0]|0;if((s|0)==116){v=g+8|0;t=Q+8|0;c[(t&p)>>2]=c[(v&p)>>2];u=g+12|0;s=Q+12|0;c[(s&p)>>2]=c[(u&p)>>2];da=g+60|0;c[(x&p)>>2]=c[(da&p)>>2];ea=g+64|0;c[(Q&p)+64>>2]=c[(ea&p)>>2];q=c[(oa&p)>>2]|0;k=ir(f,Q,sa)|0;c[(da&p)>>2]=0;c[(ea&p)>>2]=0;if(k){m=0;za=227;break h}c[(qa&p)>>2]=0;t=c[(t&p)>>2]|0;c[(v&p)>>2]=t;c[(u&p)>>2]=c[(s&p)>>2];if(!t)w=0;else w=wh(R,46,t,0,0)|0;l=c[(oa&p)>>2]|0;k=ir(f,g,sa)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;ea=Q+24|0;r=g+24|0;t=r;ea=jw(c[(t&p)>>2]|0,c[(t&p)+4>>2]|0,c[(ea&p)>>2]|0,c[(ea&p)+4>>2]|0)|0;t=r;c[(t&p)>>2]=ea;c[(t&p)+4>>2]=G;t=c[(x&p)>>2]|0;do if(t){ea=(Ms(t,ka)|0)!=0;t=c[(ka&p)>>2]|0;if(!(ea&(t|0)>0))break;ea=r;da=c[(ea&p)+4>>2]|0;s=((t|0)<0)<<31>>31;if(!(da>>>0>s>>>0|((da|0)==(s|0)?(c[(ea&p)>>2]|0)>>>0>t>>>0:0)))break;ea=r;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}while(0);if(!w){w=P;v=q;t=l;break}r=c[(R&p)+32>>2]|0;if(r>>>0>w>>>0)c[((c[(R&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=r;c[((c[(R&p)+24>>2]|0)&p)+88>>2]=r+-1;w=P;v=q;t=l;break}else if((s|0)==115|(s|0)==117){if(t<<24>>24==1)s=c[(sa&p)+4>>2]|0;else{r=f+68|0;s=c[(r&p)>>2]|0;c[(r&p)>>2]=s+1;c[(g&p)+16>>2]=wh(R,57,s,0,0)|0;r=g;while(1){t=c[(r&p)+56>>2]|0;if(!t)break;else r=t}ea=r+6|0;b[(ea&o)>>1]=e[(ea&o)>>1]|8}a[(ia&n)>>0]=1;c[(ia&p)+4>>2]=s;a[(ia&n)+1>>0]=0;c[(ia&p)+8>>2]=0;c[(ia&p)+12>>2]=0;y=c[(oa&p)>>2]|0;k=ir(f,Q,ia)|0;if(k){m=0;za=227;break h}x=(a[(P&n)>>0]|0)==117?2:1;c[(qa&p)>>2]=0;v=g+60|0;u=c[(v&p)>>2]|0;c[(v&p)>>2]=0;t=g+64|0;r=c[(t&p)>>2]|0;c[(t&p)>>2]=0;a[(ia&n)>>0]=x;x=c[(oa&p)>>2]|0;k=ir(f,g,ia)|0;Nk(O,c[(la&p)>>2]|0);m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;c[(la&p)>>2]=0;if((a[(P&n)>>0]|0)==115){da=Q+24|0;ea=g+24|0;ca=ea;da=jw(c[(ca&p)>>2]|0,c[(ca&p)+4>>2]|0,c[(da&p)>>2]|0,c[(da&p)+4>>2]|0)|0;c[(ea&p)>>2]=da;c[(ea&p)+4>>2]=G}Gk(O,c[(v&p)>>2]|0);c[(v&p)>>2]=u;c[(t&p)>>2]=r;c[(g&p)+8>>2]=0;c[(g&p)+12>>2]=0;r=a[(sa&n)>>0]|0;if(r<<24>>24==9){r=g;while(1){q=c[(r&p)+52>>2]|0;if(!q)break;else r=q}Ns(f,0,c[(r&p)>>2]|0)}else if(r<<24>>24==1){w=P;v=y;t=x;break}l=xs(R)|0;ea=xs(R)|0;Os(f,g,l);wh(R,108,s,l,0)|0;w=R+32|0;v=c[(w&p)>>2]|0;Ps(f,g,c[(g&p)>>2]|0,s,0,0,sa,ea,l);u=R+24|0;t=c[(u&p)>>2]|0;r=~ea;do if((ea|0)<0){q=c[(t&p)+112>>2]|0;if(!q)break;c[(q+(r<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(t&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,9,s,v,0)|0;r=c[(u&p)>>2]|0;q=~l;do if((l|0)<0){t=c[(r&p)+112>>2]|0;if(!t)break;c[(t+(q<<2)&p)>>2]=c[(w&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(w&p)>>2]|0)+-1;wh(R,61,s,0,0)|0;w=P;v=y;t=x;break}else{r=f+68|0;A=c[(r&p)>>2]|0;c[(r&p)>>2]=A+2;c[(g&p)+16>>2]=wh(R,57,A,0,0)|0;r=g;while(1){q=c[(r&p)+56>>2]|0;if(!q)break;else r=q}y=A+1|0;v=r+6|0;b[(v&o)>>1]=e[(v&o)>>1]|8;a[(ja&n)>>0]=1;v=ja+4|0;c[(v&p)>>2]=A;a[(ja&n)+1>>0]=0;c[(ja&p)+8>>2]=0;c[(ja&p)+12>>2]=0;x=c[(oa&p)>>2]|0;k=ir(f,Q,ja)|0;if(k){m=0;za=227;break h}c[(g&p)+20>>2]=wh(R,57,y,0,0)|0;c[(qa&p)>>2]=0;w=g+60|0;l=c[(w&p)>>2]|0;c[(w&p)>>2]=0;q=g+64|0;r=c[(q&p)>>2]|0;c[(q&p)>>2]=0;c[(v&p)>>2]=y;z=c[(oa&p)>>2]|0;k=ir(f,g,ja)|0;m=c[(qa&p)>>2]|0;c[(qa&p)>>2]=Q;t=g+24|0;ea=t;da=c[(ea&p)+4>>2]|0;u=Q+24|0;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if(da>>>0>u>>>0|((da|0)==(u|0)?(c[(ea&p)>>2]|0)>>>0>v>>>0:0)){ea=t;c[(ea&p)>>2]=v;c[(ea&p)+4>>2]=u}Gk(O,c[(w&p)>>2]|0);c[(w&p)>>2]=l;c[(q&p)>>2]=r;if((a[(sa&n)>>0]|0)==9){t=g;while(1){s=c[(t&p)+52>>2]|0;if(!s)break;else t=s}Ns(f,0,c[(t&p)>>2]|0)}q=xs(R)|0;w=xs(R)|0;Os(f,g,q);wh(R,108,A,q,0)|0;t=f+19|0;s=a[(t&n)>>0]|0;if(!(s<<24>>24)){ea=f+72|0;t=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=t}else{ea=s+-1<<24>>24;a[(t&n)>>0]=ea;t=c[(f+((ea&255)<<2)&p)+24>>2]|0}l=wh(R,101,A,t,0)|0;xh(R,wh(R,68,y,w,t)|0,0,-14);_r(f,t);Ps(f,g,c[(g&p)>>2]|0,A,0,0,sa,w,q);t=R+24|0;s=c[(t&p)>>2]|0;u=~w;do if((w|0)<0){v=c[(s&p)+112>>2]|0;if(!v)break;c[(v+(u<<2)&p)>>2]=c[(R&p)+32>>2]}while(0);v=R+32|0;c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,9,A,l,0)|0;s=c[(t&p)>>2]|0;r=~q;do if((q|0)<0){t=c[(s&p)+112>>2]|0;if(!t)break;c[(t+(r<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(s&p)+88>>2]=(c[(v&p)>>2]|0)+-1;wh(R,61,y,0,0)|0;wh(R,61,A,0,0)|0;w=P;v=x;t=z;break}}else{Ks(f,g,sa);w=g+4|0;v=0;t=0;m=0;k=0}while(0);ea=a[(w&n)>>0]|0;Qs(f,ea&255,v,t,ea<<24>>24!=116&1);if(!(b[(ta&o)>>1]&8)){za=227;break}u=c[(c[(g&p)>>2]&p)>>2]|0;v=Rs(O,u,1)|0;if(!v){k=7;za=227;break}if((u|0)>0){l=O+8|0;q=v+20|0;r=0;while(1){ea=Ss(f,g,r)|0;c[(q&p)>>2]=ea;if(!ea)c[(q&p)>>2]=c[(l&p)>>2];r=r+1|0;if((r|0)==(u|0))break;else q=q+4|0}}s=R+32|0;t=R+4|0;do{l=0;do{r=g+(l<<2)+16|0;q=c[(r&p)>>2]|0;if((q|0)<0)break;if((c[(s&p)>>2]|0)>>>0>q>>>0)c[((c[(t&p)>>2]|0)+(q*20|0)&p)+8>>2]=u;c[(v&p)>>2]=(c[(v&p)>>2]|0)+1;xh(R,q,v,-6);c[(r&p)>>2]=-1;l=l+1|0}while((l|0)<2);g=c[(g&p)+52>>2]|0}while((g|0)!=0);ea=(c[(v&p)>>2]|0)+-1|0;c[(v&p)>>2]=ea;if(ea){za=227;break}Wc(v);za=227}else{k=d[(g&n)+4>>0]|0;if((k|0)==118)k=35336;else if((k|0)==117)k=35352;else if((k|0)==116)k=35320;else k=35360;c[(ra&p)>>2]=k;th(f,35024,ra);m=0;k=1;za=227}while(0);if((za|0)==227){c[(h&p)+8>>2]=c[(sa&p)+8>>2];c[(h&p)+12>>2]=c[(sa&p)+12>>2];Mk(O,m,1)}c[(Aa&p)>>2]=Ba;break a}if((m&5)==1){k=c[(va&p)>>2]|0;if(!(Ts(k,T,-1)|0)){b[(ta&o)>>1]=m&65534;w=Pr(xa,T,0)|0;c[(l&p)>>2]=w;za=232}}else za=232;if((za|0)==232)k=c[(va&p)>>2]|0;if(!k)k=-1;else{ea=Us(f,k,0,c[(T&p)>>2]|0)|0;da=f+68|0;k=c[(da&p)>>2]|0;c[(da&p)>>2]=k+1;c[(va&p)+8>>2]=k;k=wh(wa,57,k,(c[(c[(va&p)>>2]&p)>>2]|0)+1+(c[(T&p)>>2]|0)|0,0)|0;xh(wa,k,ea,-6)}R=va+20|0;c[(R&p)>>2]=k;if((a[(h&n)>>0]|0)==12)wh(wa,57,c[(h&p)+4>>2]|0,c[(T&p)>>2]|0,0)|0;qa=xs(wa)|0;y=g+24|0;ea=y;c[(ea&p)>>2]=-1;c[(ea&p)+4>>2]=2147483647;Os(f,g,qa);if((c[(g&p)+8>>2]|0)==0?(ha=c[(R&p)>>2]|0,(ha|0)>-1):0){if(!(a[((c[(wa&p)>>2]|0)&n)+65>>0]|0))k=(c[(wa&p)+4>>2]|0)+(ha*20|0)|0;else k=29120;a[(k&n)>>0]=58;ea=va+24|0;a[(ea&n)>>0]=d[(ea&n)>>0]|1}if(!(b[(ta&o)>>1]&1))a[(ua&n)+1>>0]=0;else{ea=f+68|0;k=c[(ea&p)>>2]|0;c[(ea&p)>>2]=k+1;c[(ua&p)+4>>2]=k;ea=Us(f,c[(g&p)>>2]|0,0,0)|0;k=wh(wa,57,k,0,0)|0;xh(wa,k,ea,-6);c[(ua&p)+8>>2]=k;k=c[(wa&p)+4>>2]|0;if(k)a[(k+(((c[(wa&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(ua&n)+1>>0]=3}if((z|0)==0&(w|0)==0){v=Vs(f,U,B,c[(va&p)>>2]|0,c[(g&p)>>2]|0,(a[(ua&n)>>0]|0)!=0?1024:0,0)|0;if(!v){za=444;break}t=Ws(b[(v&o)+32>>1]|0)|0;s=G;ea=y;da=c[(ea&p)+4>>2]|0;if(s>>>0<da>>>0|((s|0)==(da|0)?t>>>0<(c[(ea&p)>>2]|0)>>>0:0)){ea=y;c[(ea&p)>>2]=t;c[(ea&p)+4>>2]=s}do if(a[(ua&n)>>0]|0){t=a[(v&n)+40>>0]|0;if(!(t<<24>>24))break;a[(ua&n)+1>>0]=t}while(0);t=c[(va&p)>>2]|0;do if(!t)za=257;else{ea=a[(v&n)+36>>0]|0;c[(va&p)+4>>2]=ea;if((ea|0)!=(c[(t&p)>>2]|0))break;c[(va&p)>>2]=0;za=257}while(0);do if((za|0)==257){r=c[(R&p)>>2]|0;if((r|0)<=-1)break;zh(wa,r)}while(0);Ps(f,g,T,-1,va,ua,h,c[(v&p)+48>>2]|0,c[(v&p)+52>>2]|0);Xs(v)}else{z=(w|0)!=0;do if(z){l=c[(g&p)>>2]|0;k=c[(l&p)>>2]|0;if((k|0)>0){l=c[(l&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}k=c[(w&p)>>2]|0;if((k|0)>0){l=c[(w&p)+4>>2]|0;while(1){b[(l&o)+18>>1]=0;k=k+-1|0;if((k|0)<=0)break;else l=l+20|0}}ea=y;da=c[(ea&p)+4>>2]|0;if(!(da>>>0>0|(da|0)==0&(c[(ea&p)>>2]|0)>>>0>100))break;ea=y;c[(ea&p)>>2]=100;c[(ea&p)+4>>2]=0}else{ea=y;c[(ea&p)>>2]=1;c[(ea&p)+4>>2]=0}while(0);P=(Ts(w,c[(va&p)>>2]|0,-1)|0)==0;S=xs(wa)|0;c[(ma&p)>>2]=0;c[(ma&p)+4>>2]=0;c[(ma&p)+8>>2]=0;c[(ma&p)+12>>2]=0;c[(ma&p)+16>>2]=0;c[(ma&p)+20>>2]=0;c[(ma&p)+24>>2]=0;c[(ma&p)+28>>2]=0;c[(ma&p)>>2]=f;c[(ma&p)+4>>2]=U;c[(ma&p)+12>>2]=ya;K=f+72|0;c[(ya&p)+16>>2]=(c[(K&p)>>2]|0)+1;if(z)k=c[(w&p)>>2]|0;else k=0;y=ya+12|0;c[(y&p)>>2]=k;c[(ya&p)+24>>2]=w;Ys(ma,T);Ys(ma,c[(va&p)>>2]|0);if(ga){c[(ra&p)>>2]=0;c[(ra&p)+4>>2]=0;c[(ra&p)+8>>2]=0;c[(ra&p)+12>>2]=0;c[(ra&p)+16>>2]=0;c[(ra&p)+20>>2]=0;c[(ra&p)>>2]=80;c[(ra&p)+4>>2]=81;c[(ra&p)+24>>2]=ma;rs(ra,ga)|0}A=ya+32|0;c[(ya&p)+36>>2]=c[(A&p)>>2];r=ya+44|0;k=c[(r&p)>>2]|0;if((k|0)>0){x=ma+28|0;l=ya+40|0;m=b[(x&o)>>1]|0;q=0;do{b[(x&o)>>1]=m&65535|8;Ys(ma,c[((c[((c[(l&p)>>2]|0)+(q<<4)&p)>>2]|0)&p)+20>>2]|0);m=e[(x&o)>>1]&65527;b[(x&o)>>1]=m;q=q+1|0;k=c[(r&p)>>2]|0}while((q|0)<(k|0))}c[(ya&p)+20>>2]=c[(K&p)>>2];if(a[(pa&n)>>0]|0){za=444;break}if(z){I=f+68|0;H=c[(I&p)>>2]|0;c[(I&p)>>2]=H+1;v=ya+4|0;c[(v&p)>>2]=H;H=Us(f,w,0,c[(A&p)>>2]|0)|0;u=wh(wa,58,c[(v&p)>>2]|0,c[(y&p)>>2]|0,0)|0;xh(wa,u,H,-6);N=c[(K&p)>>2]|0;M=N+1|0;J=N+2|0;N=N+3|0;c[(K&p)>>2]=N;L=xs(wa)|0;Q=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=Q;O=xs(wa)|0;t=c[(K&p)>>2]|0;r=t+1|0;ea=c[(w&p)>>2]|0;da=ea+t|0;s=da+1|0;c[(K&p)>>2]=da+ea;wh(wa,25,0,J,0)|0;wh(wa,25,0,M,0)|0;wh(wa,28,0,r,(c[(w&p)>>2]|0)+t|0)|0;wh(wa,17,Q,O,0)|0;t=Vs(f,U,B,w,0,P?2304:256,0)|0;if(!t){za=444;break}if((a[(t&n)+36>>0]|0)==(c[(w&p)>>2]|0)){x=0;k=0;y=0}else{if(!(a[(ua&n)>>0]|0))k=34824;else k=(b[(ta&o)>>1]&1)==0?34808:34824;$s(f,k);D=c[(w&p)>>2]|0;k=c[(A&p)>>2]|0;if((k|0)>0){l=c[(ya&p)+28>>2]|0;m=0;y=D;x=D;do{if((c[(l+(m*24|0)&p)+12>>2]|0)>=(y|0)){y=y+1|0;x=x+1|0}m=m+1|0}while((m|0)<(k|0));F=x}else F=D;E=f+60|0;x=c[(E&p)>>2]|0;B=f+56|0;k=c[(B&p)>>2]|0;if((k|0)<(F|0)){C=c[(K&p)>>2]|0;c[(K&p)>>2]=C+F;C=C+1|0}else{c[(E&p)>>2]=x+F;c[(B&p)>>2]=k-F;C=x}at(f);bt(f,w,C,0);y=c[(A&p)>>2]|0;if((y|0)>0){m=ya+28|0;z=0;x=D;do{k=c[(m&p)>>2]|0;if((c[(k+(z*24|0)&p)+12>>2]|0)>=(x|0)){l=x+C|0;y=ct(f,c[(k+(z*24|0)&p)>>2]|0,c[(k+(z*24|0)&p)+8>>2]|0,c[(k+(z*24|0)&p)+4>>2]|0,l,0)|0;if((l|0)!=(y|0))wh(wa,34,y,l,0)|0;y=c[(A&p)>>2]|0;x=x+1|0}z=z+1|0}while((z|0)<(y|0))}y=f+19|0;x=a[(y&n)>>0]|0;if(!(x<<24>>24)){x=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=x}else{x=x+-1<<24>>24;a[(y&n)>>0]=x;x=c[(f+((x&255)<<2)&p)+24>>2]|0}wh(wa,49,C,F,x)|0;wh(wa,109,c[(v&p)>>2]|0,x,0)|0;_r(f,x);dt(f,C,F);if((c[(B&p)>>2]|0)<(F|0)){c[(B&p)>>2]=F;c[(E&p)>>2]=C}Xs(t);l=c[(I&p)>>2]|0;c[(I&p)>>2]=l+1;c[(ya&p)+8>>2]=l;k=a[(y&n)>>0]|0;if(!(k<<24>>24)){k=(c[(K&p)>>2]|0)+1|0;c[(K&p)>>2]=k}else{k=k+-1<<24>>24;a[(y&n)>>0]=k;k=c[(f+((k&255)<<2)&p)+24>>2]|0}wh(wa,60,l,k,F)|0;wh(wa,106,c[(v&p)>>2]|0,S,0)|0;a[(ya&n)+1>>0]=1;at(f);x=1;y=l}do if(P){if(b[(xa&o)+60>>1]&4)break;if((x|0)==0?(a[(t&n)+37>>0]|0)==0:0)break;c[(va&p)>>2]=0;zh(wa,c[(R&p)>>2]|0)}while(0);A=wa+32|0;q=c[(A&p)>>2]|0;at(f);x=(x|0)!=0;if(x)wh(wa,100,c[(v&p)>>2]|0,k,y)|0;k=c[(w&p)>>2]|0;if((k|0)>0){l=w+4|0;m=0;do{if(x)wh(wa,47,y,m,m+s|0)|0;else{a[(ya&n)>>0]=1;Rq(f,c[((c[(l&p)>>2]|0)+(m*20|0)&p)>>2]|0,m+s|0)}m=m+1|0;k=c[(w&p)>>2]|0}while((m|0)<(k|0))}if(H)c[(H&p)>>2]=(c[(H&p)>>2]|0)+1;xh(wa,wh(wa,42,r,s,k)|0,H,-6);k=c[(A&p)>>2]|0;ea=k+1|0;wh(wa,43,ea,0,ea)|0;w=c[(w&p)>>2]|0;wh(c[(f&p)+8>>2]|0,32,s,r,w)|0;dt(f,s,w);wh(wa,17,N,L,0)|0;wh(wa,137,J,S,0)|0;wh(wa,17,Q,O,0)|0;w=c[(A&p)>>2]|0;if(w>>>0>k>>>0)c[((c[(wa&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=w;r=wa+24|0;c[((c[(r&p)>>2]|0)&p)+88>>2]=w+-1;et(f,ya);wh(wa,25,1,M,0)|0;if(x)wh(wa,5,c[(v&p)>>2]|0,q,0)|0;else{Xs(t);zh(wa,u)}wh(wa,17,N,L,0)|0;wh(wa,16,0,S,0)|0;m=c[(A&p)>>2]|0;wh(wa,25,1,J,0)|0;wh(wa,18,N,0,0)|0;k=c[(r&p)>>2]|0;l=~L;do if((L|0)<0){w=c[(k&p)+112>>2]|0;if(!w)break;c[(w+(l<<2)&p)>>2]=c[(A&p)>>2]}while(0);v=c[(A&p)>>2]|0;c[(k&p)+88>>2]=v+-1;wh(wa,137,M,v+2|0,0)|0;wh(wa,18,N,0,0)|0;ft(f,ya);v=v+1|0;gt(f,ga,v,16);Ps(f,g,c[(g&p)>>2]|0,-1,va,ua,h,v,m);wh(wa,18,N,0,0)|0;v=c[(r&p)>>2]|0;u=~O;do if((O|0)<0){t=c[(v&p)+112>>2]|0;if(!t)break;c[(t+(u<<2)&p)>>2]=c[(A&p)>>2]}while(0);c[(v&p)+88>>2]=(c[(A&p)>>2]|0)+-1;ht(f,ya);wh(wa,18,Q,0,0)|0}else{do if(!(c[(H&p)>>2]|0)){u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){za=372;break}v=c[(na&p)>>2]|0;if((c[(v&p)>>2]|0)!=1){za=372;break}if(c[(v&p)+28>>2]|0){za=372;break}A=c[(v&p)+24>>2]|0;v=c[(c[(u&p)+4>>2]&p)>>2]|0;z=A+44|0;if(a[(z&n)>>0]&16){za=372;break}if((a[(v&n)>>0]|0)!=-101|(k|0)==0){za=372;break}y=ya+40|0;if(!(b[((c[((c[(y&p)>>2]|0)&p)+4>>2]|0)&o)+2>>1]&256)){za=372;break}if((A|0)==0?1:(c[(v&p)+4>>2]&16|0)!=0){za=372;break}v=c[(f&p)>>2]|0;k=c[(A&p)+68>>2]|0;i:do if(!k)u=-1e6;else{l=c[(v&p)+20>>2]|0;if((l|0)<=0){u=0;break}v=c[(v&p)+16>>2]|0;w=0;while(1){u=w+1|0;if((c[(v+(w<<4)&p)+12>>2]|0)==(k|0)){u=w;break i}if((u|0)<(l|0))w=u;else break}}while(0);w=f+68|0;q=c[(w&p)>>2]|0;c[(w&p)>>2]=q+1;w=A+32|0;k=c[(w&p)>>2]|0;Ar(f,u);gs(f,u,c[(w&p)>>2]|0,0,c[(A&p)>>2]|0);w=c[(A&p)+8>>2]|0;j:do if(!(a[(z&n)>>0]&32)){v=0;za=351}else{if(!w){l=1;m=0;w=0;break}else v=w;while(1){if((a[(v&n)+51>>0]&3)==2){za=351;break j}v=c[(v&p)+20>>2]|0;if(!v){v=0;za=351;break}}}while(0);do if((za|0)==351){if(w){m=A+42|0;l=w;do{do if(!(a[(l&n)+51>>0]&4)){w=b[(l&o)+44>>1]|0;if(w<<16>>16>=(b[(m&o)>>1]|0))break;if(c[(l&p)+36>>2]|0)break;if((v|0)!=0?w<<16>>16>=(b[(v&o)+44>>1]|0):0)break;v=l}while(0);l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(!v){l=1;m=0;w=0;break}k=c[(v&p)+40>>2]|0;l=0;m=v;w=hs(f,v)|0}while(0);xh(wa,wh(wa,54,q,k,u)|0,1,-14);if(w)xh(wa,-1,w,-6);wh(wa,50,q,c[((c[(y&p)>>2]|0)&p)+8>>2]|0,0)|0;wh(wa,61,q,0,0)|0;if((a[(f&n)+450>>0]|0)!=2){t=0;break}do if(l){v=c[(A&p)>>2]|0;u=10360;s=10360;t=c[(f&p)>>2]|0}else{if(a[(z&n)>>0]&32){ea=(a[(m&n)+51>>0]&3)!=2;t=c[(f&p)>>2]|0;v=c[(A&p)>>2]|0;u=ea?34920:10360;if(!ea){s=10360;break}}else{u=34920;v=c[(A&p)>>2]|0;t=c[(f&p)>>2]|0}s=c[(m&p)>>2]|0}while(0);c[(ra&p)>>2]=v;c[(ra&p)+4>>2]=u;c[(ra&p)+8>>2]=s;t=uh(t,34896,ra)|0;ea=c[(f&p)+8>>2]|0;xh(ea,wh(ea,157,c[(Aa&p)>>2]|0,0,0)|0,t,-1);t=0}else za=372;while(0);if((za|0)==372){do if((c[(I&p)>>2]|0)==0&(k|0)==1){t=c[(c[(ya&p)+40>>2]&p)>>2]|0;v=c[(t&p)+20>>2]|0;if(!v){t=0;s=0;break}if((c[(v&p)>>2]|0)!=1){t=0;s=0;break}if((a[(c[(c[(v&p)+4>>2]&p)>>2]&n)>>0]|0)!=-100){t=0;s=0;break}t=c[(t&p)+8>>2]|0;if(dd(t,18760)|0)if(!(dd(t,18768)|0))s=2;else{t=0;s=0;break}else s=1;t=Pr(xa,v,0)|0;if(!t){t=0;break}if(a[(pa&n)>>0]|0)break;ea=c[(t&p)+4>>2]|0;a[(ea&n)+12>>0]=s<<24>>24!=1&1;a[(c[(ea&p)>>2]&n)>>0]=-102}else{t=0;s=0}while(0);ht(f,ya);s=Vs(f,U,B,t,0,s&255,0)|0;if(!s){Nk(xa,t);za=444;break}et(f,ya);if((a[(s&n)+36>>0]|0)>0)wh(wa,16,0,c[(s&p)+52>>2]|0,0)|0;Xs(s);ft(f,ya)}c[(va&p)>>2]=0;gt(f,ga,S,16);Ps(f,g,c[(g&p)>>2]|0,-1,0,0,h,S,S);Nk(xa,t);r=wa+24|0}t=c[(r&p)>>2]|0;s=~S;do if((S|0)<0){r=c[(t&p)+112>>2]|0;if(!r)break;c[(r+(s<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(t&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1}if((a[(ua&n)+1>>0]|0)==3)$s(f,34808);if(c[(va&p)>>2]|0){x=va+4|0;$s(f,(c[(x&p)>>2]|0)>0?34840:34864);A=c[(T&p)>>2]|0;v=f+8|0;H=c[(v&p)>>2]|0;I=xs(H)|0;F=xs(H)|0;q=c[(va&p)>>2]|0;m=a[(h&n)>>0]|0;B=m&255;C=h+4|0;D=c[(C&p)>>2]|0;y=va+16|0;w=c[(y&p)>>2]|0;if(w){wh(H,17,c[(va&p)+12>>2]|0,w,0)|0;wh(H,16,0,I,0)|0;ea=c[(y&p)>>2]|0;w=c[(H&p)+24>>2]|0;k=~ea;do if((ea|0)<0){l=c[(w&p)+112>>2]|0;if(!l)break;c[(l+(k<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);c[(w&p)+88>>2]=(c[(H&p)+32>>2]|0)+-1}E=c[(va&p)+8>>2]|0;t=m<<24>>24==9;k:do if((m&-5)<<24>>24==9){s=A;u=c[(h&p)+8>>2]|0;k=0}else{w=f+19|0;k=a[(w&n)>>0]|0;do if(k<<24>>24){ea=k+-1<<24>>24;a[(w&n)>>0]=ea;l=c[(f+((ea&255)<<2)&p)+24>>2]|0;if(!(ea<<24>>24)){k=l;w=c[(f&p)+72>>2]|0;break}else{u=k+-2<<24>>24;a[(w&n)>>0]=u;s=1;u=c[(f+((u&255)<<2)&p)+24>>2]|0;k=l;break k}}else{k=f+72|0;w=(c[(k&p)>>2]|0)+1|0;c[(k&p)>>2]=w;k=w}while(0);u=w+1|0;c[(f&p)+72>>2]=u;s=1}while(0);r=(c[(q&p)>>2]|0)-(c[(x&p)>>2]|0)|0;z=va+24|0;if(!(a[(z&n)>>0]&1)){w=wh(H,107,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);l=1;m=E}else{ea=f+72|0;m=(c[(ea&p)>>2]|0)+1|0;c[(ea&p)>>2]=m;ea=f+68|0;q=c[(ea&p)>>2]|0;c[(ea&p)>>2]=q+1;if(!(c[(y&p)>>2]|0))l=0;else{ea=Oq(f)|0;da=f+80|0;l=c[(da&p)>>2]|0;c[(da&p)>>2]=l+1;l=wh(ea,44,l,0,0)|0}wh(H,60,q,m,s+1+r|0)|0;if(l){w=c[(H&p)+32>>2]|0;if(w>>>0>l>>>0)c[((c[(H&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=w;c[((c[(H&p)+24>>2]|0)&p)+88>>2]=w+-1}w=wh(H,106,E,I,0)|0;it(H,c[(g&p)+12>>2]|0,F);wh(H,100,E,m,q)|0;l=0;m=q}x=w+1|0;if((s|0)>0){w=l+r|0;l=0;do{wh(H,47,m,w+l|0,l+u|0)|0;l=l+1|0}while((l|0)!=(s|0))}do if((B|0)==12|(B|0)==14){wh(H,74,D,k,0)|0;wh(H,75,D,u,k)|0;t=c[(H&p)+4>>2]|0;if(!t)break;a[(t+(((c[(H&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8}else if((B|0)==11){xh(H,wh(H,49,u,1,k)|0,h+1|0,1);dt(f,u,1);wh(H,110,D,k,0)|0}else if((B|0)!=10)if(t){ea=h+8|0;wh(H,35,c[(ea&p)>>2]|0,A,0)|0;dt(f,c[(ea&p)>>2]|0,A);break}else{wh(H,22,c[(C&p)>>2]|0,0,0)|0;break}else{wh(c[(v&p)>>2]|0,32,u,D,1)|0;dt(f,u,1)}while(0);if(k){_r(f,u);_r(f,k)}s=H+24|0;u=c[(s&p)>>2]|0;v=~F;do if((F|0)<0){t=c[(u&p)+112>>2]|0;if(!t)break;c[(t+(v<<2)&p)>>2]=c[(H&p)+32>>2]}while(0);v=H+32|0;c[(u&p)+88>>2]=(c[(v&p)>>2]|0)+-1;if(!(a[(z&n)>>0]&1))wh(H,9,E,x,0)|0;else wh(H,5,E,x,0)|0;r=c[(va&p)+12>>2]|0;if(r)wh(H,18,r,0,0)|0;r=c[(s&p)>>2]|0;q=~I;do if((I|0)<0){m=c[(r&p)+112>>2]|0;if(!m)break;c[(m+(q<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(r&p)+88>>2]=(c[(v&p)>>2]|0)+-1}l=c[(wa&p)+24>>2]|0;m=~qa;do if((qa|0)<0){k=c[(l&p)+112>>2]|0;if(!k)break;c[(k+(m<<2)&p)>>2]=c[(wa&p)+32>>2]}while(0);c[(l&p)+88>>2]=(c[(wa&p)+32>>2]|0)+-1;c[(Aa&p)>>2]=Ba;if((a[(h&n)>>0]|0)!=9){k=0;break}Ns(f,U,T);k=0}else za=444;while(0);if((za|0)==444){c[(Aa&p)>>2]=Ba;k=1}mg(xa,c[(ya&p)+28>>2]|0);mg(xa,c[(ya&p)+40>>2]|0)}else k=1;while(0);i=Ca;return k|0}function jr(a,b,d,e,f,g,h,k){a=a|0;b=b|0;d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();m=r;o=c[(a&p)>>2]|0;if((b|0)==0?(l=(h|0)!=0,l|(k|0)!=0):0){c[(m&p)>>2]=l?34792:34800;th(a,34752,m);q=9}else{b=pr(o,b,d,e)|0;if((b|0)!=0?(n=c[(b&p)>>2]|0,(n|0)!=0):0){l=n+-1|0;if(c[(f&p)+4>>2]|0)c[(b+(l*72|0)&p)+20>>2]=Wq(o,f)|0;c[(b+(l*72|0)&p)+28>>2]=g;c[(b+(l*72|0)&p)+52>>2]=h;c[(b+(l*72|0)&p)+56>>2]=k}else q=9}if((q|0)==9){Gk(o,h);Hk(o,k);Mk(o,g,1);b=0}i=r;return b|0}function kr(d,e,f,g,h,k,l,m,q,r){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;r=r|0;var s=0,t=0,u=0,v=0,w=0,x=0,y=0;y=i;i=i+80|0;if((i|0)>=(j|0))fa();t=y+72|0;x=y;w=c[(d&p)>>2]|0;s=mh(w,72,0)|0;if(!s){u=x+0|0;v=u+72|0;do{c[(u&p)>>2]=0;u=u+4|0}while((u|0)<(v|0));s=x}else{u=s+0|0;v=u+72|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}if(!e){c[(t&p)>>2]=0;c[(t&p)+4>>2]=0;e=lr(d,0,nr(w,116,t,0)|0)|0}c[(s&p)>>2]=e;if(!f){f=mh(w,80,0)|0;if(f){u=f+0|0;v=u+80|0;do{a[(u&n)>>0]=0;u=u+1|0}while((u|0)<(v|0))}}c[(s&p)+32>>2]=f;c[(s&p)+36>>2]=g;c[(s&p)+40>>2]=h;c[(s&p)+44>>2]=k;c[(s&p)+48>>2]=l;b[(s&o)+6>>1]=m;a[(s&n)+4>>0]=119;c[(s&p)+60>>2]=q;c[(s&p)+64>>2]=r;c[(s&p)+16>>2]=-1;c[(s&p)+20>>2]=-1;if(a[(w&n)+65>>0]|0){Mk(w,s,(s|0)!=(x|0)&1);s=0}i=y;return s|0}function lr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;g=c[(b&p)>>2]|0;if(!d){d=mh(g,8,0)|0;if(d){b=d;f=b;a[(f&n)>>0]=0;a[(f&n)+1>>0]=0;a[(f&n)+2>>0]=0;a[(f&n)+3>>0]=0;b=b+4|0;a[(b&n)>>0]=0;a[(b&n)+1>>0]=0;a[(b&n)+2>>0]=0;a[(b&n)+3>>0]=0;b=mh(g,20,0)|0;c[(d&p)+4>>2]=b;if(!b)f=8;else f=7}else{d=0;f=8}}else{b=c[(d&p)>>2]|0;if(!(b+-1&b)){f=d+4|0;b=ro(g,c[(f&p)>>2]|0,b*40|0,0)|0;if(!b)f=8;else{c[(f&p)>>2]=b;f=7}}else f=7}if((f|0)==7){b=c[(d&p)>>2]|0;c[(d&p)>>2]=b+1;b=(c[(d&p)+4>>2]|0)+(b*20|0)|0;c[(b&p)>>2]=0;c[(b&p)+4>>2]=0;c[(b&p)+8>>2]=0;c[(b&p)+12>>2]=0;c[(b&p)+16>>2]=0;c[(b&p)>>2]=e}else if((f|0)==8){Gk(g,e);Nk(g,d);d=0}return d|0}function mr(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;do if(d){j=(c[(d&p)>>2]|0)+-1|0;g=c[(d&p)+4>>2]|0;h=c[(e&p)>>2]|0;d=c[(e&p)+4>>2]|0;if((h|0)!=0?(e=c[(b&p)>>2]|0,i=jw(d|0,0,1,0)|0,i=mh(e,i,G)|0,(i|0)!=0):0){kw(i|0,h|0,d|0)|0;a[(i+d&n)>>0]=0;c[(g+(j*20|0)&p)+4>>2]=i;if(!f)break;lo(i);break}c[(g+(j*20|0)&p)+4>>2]=0}while(0);return}function nr(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0;t=i;i=i+16|0;if((i|0)>=(j|0))fa();m=t;c[(m&p)>>2]=0;k=(f|0)!=0;do if(k){if(((e|0)==132?(h=c[(f&p)>>2]|0,(h|0)!=0):0)?(Dn(h,m)|0)!=0:0){r=0;break}r=(c[(f&p)+4>>2]|0)+1|0}else r=0;while(0);l=r+48|0;q=mh(d,l,0)|0;if(q){fw(q|0,0,l|0)|0;a[(q&n)>>0]=e;b[(q&o)+34>>1]=-1;do if(k){if(!r){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|1024;c[(q&p)+8>>2]=c[(m&p)>>2];break}h=q+48|0;l=q+8|0;c[(l&p)>>2]=h;k=f+4|0;d=c[(k&p)>>2]|0;if(!d)h=48;else{kw(h|0,c[(f&p)>>2]|0,d|0)|0;h=(c[(k&p)>>2]|0)+48|0}a[(q+h&n)>>0]=0;if(((g|0)!=0&(r|0)>2?(g=a[(c[(f&p)>>2]&n)>>0]|0,s=g<<24>>24==34,g<<24>>24==34|g<<24>>24==39|g<<24>>24==91|g<<24>>24==96):0)?(lo(c[(l&p)>>2]|0),s):0){g=q+4|0;c[(g&p)>>2]=c[(g&p)>>2]|64}}while(0);c[(q&p)+24>>2]=1}i=t;return q|0}function or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;do if((d|0)!=0?(f=c[(d&p)>>2]|0,(f|0)>0):0){f=f+-1|0;if((c[(e&p)+4>>2]|0)==1?(c[(e&p)>>2]|0)==0:0){f=d+(f*72|0)+45|0;a[(f&n)>>0]=a[(f&n)>>0]|1;break}c[(d+(f*72|0)&p)+72>>2]=Wq(c[(b&p)>>2]|0,e)|0}while(0);return}function pr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0;if(!d){d=mh(b,80,0)|0;if(!d)d=0;else{h=d+0|0;g=h+80|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(g|0));c[(d&p)+4>>2]=1;h=4}}else h=4;do if((h|0)==4){d=Fs(b,d,1,c[(d&p)>>2]|0)|0;if(a[(b&n)+65>>0]|0){Do(b,d);d=0;break}h=(c[(d&p)>>2]|0)+-1|0;if(!f)g=0;else g=(c[(f&p)>>2]|0)==0?0:f;f=(g|0)==0;c[(d+(h*72|0)&p)+16>>2]=Wq(b,f?e:g)|0;c[(d+(h*72|0)&p)+12>>2]=Wq(b,f?0:e)|0}while(0);return d|0}function qr(a,b,e,f){a=a|0;b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0;s=i;i=i+32|0;if((i|0)>=(j|0))fa();q=s;m=s+16|0;c[(m&p)>>2]=b;c[(m&p)+4>>2]=e;c[(m&p)+8>>2]=f;l=b;o=1;g=0;a:while(1){if(!l)break;k=c[(l&p)+4>>2]|0;h=0;while(1){if((k|0)==(d[((h*3|0)&n)+34625>>0]|0|0)?(Fc(c[(l&p)>>2]|0,34584+(d[((h*3|0)&n)+34624>>0]|0)|0,k)|0)==0:0)break;h=h+1|0;if((h|0)>=7){r=10;break a}}g=d[((h*3|0)&n)+34626>>0]|0|g;if((h|0)>6){r=10;break}if((o|0)>=3)break;l=c[(m+(o<<2)&p)>>2]|0;o=o+1|0}if((r|0)==10)g=g|64;if((g&33|0)!=33&(g&64|0)==0){if(!((g&32|0)==0|(g&24|0)==8)){th(a,34696,q);g=1}}else{c[(q&p)>>2]=b;c[(q&p)+4>>2]=e;c[(q&p)+8>>2]=(f|0)==0?20377|0:20376;c[(q&p)+12>>2]=f;th(a,34648,q);g=1}i=s;return g|0}function rr(e,f,g){e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0;T=i;i=i+48|0;if((i|0)>=(j|0))fa();Q=T+36|0;R=T+32|0;r=T;c[(Q&p)>>2]=0;c[(R&p)>>2]=0;S=c[(e&p)>>2]|0;if(((((c[(e&p)+64>>2]|0)==0?(a[(S&n)+65>>0]|0)==0:0)?(H=Jr(e,f)|0,(H|0)!=0):0)?(G=jt(e,H,109,0,0)|0,P=(c[(H&p)+12>>2]|0)!=0,(hr(e,H)|0)==0):0)?(t=(G|0)!=0,(kt(e,H,t&1)|0)==0):0){l=c[(H&p)+68>>2]|0;a:do if(l){k=c[(S&p)+20>>2]|0;if((k|0)>0){h=c[(S&p)+16>>2]|0;q=0;while(1){m=q+1|0;if((c[(h+(q<<4)&p)+12>>2]|0)==(l|0)){m=q;break a}if((m|0)<(k|0))q=m;else break}}else m=0}else m=-1e6;while(0);h=Sq(e,9,c[(H&p)>>2]|0,0,c[((c[(S&p)+16>>2]|0)+(m<<4)&p)>>2]|0)|0;if((h|0)!=1){s=e+68|0;C=c[(s&p)>>2]|0;u=C+1|0;c[(s&p)>>2]=u;c[(f&p)+48>>2]=C;I=H+8|0;l=c[(I&p)>>2]|0;if(!l)q=0;else{k=u;q=0;do{k=k+1|0;c[(s&p)>>2]=k;q=q+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0)}if(P){N=e+492|0;O=c[(N&p)>>2]|0;c[(N&p)>>2]=c[(H&p)>>2];N=e}else{N=0;O=0}L=Oq(e)|0;b:do if(L){M=e+18|0;if(!(a[(M&n)>>0]|0)){E=L+88|0;b[(E&o)>>1]=b[(E&o)>>1]|4}D=e+408|0;E=c[(D&p)>>2]|0;E=(E|0)==0?e:E;Ar(e,m);B=E+328|0;c[(B&p)>>2]=c[(B&p)>>2]|1<<m;E=E+20|0;a[(E&n)>>0]=d[(E&n)>>0]|1;if(P){lt(e,H,g,C);c[(R&p)>>2]=C;c[(Q&p)>>2]=C};c[(r&p)>>2]=0;c[(r&p)+4>>2]=0;c[(r&p)+8>>2]=0;c[(r&p)+12>>2]=0;c[(r&p)+16>>2]=0;c[(r&p)+20>>2]=0;c[(r&p)+24>>2]=0;c[(r&p)+28>>2]=0;c[(r&p)>>2]=e;c[(r&p)+4>>2]=f;if(!(ls(r,g)|0)){J=S+24|0;if(!(c[(J&p)>>2]&128))K=-1;else{E=e+72|0;K=(c[(E&p)>>2]|0)+1|0;c[(E&p)>>2]=K;wh(L,25,0,K,0)|0}E=H+44|0;do if((!((g|0)!=0|(h|0)!=0|t)?(a[(E&n)>>0]&16)==0:0)?(mt(e,H,0,0)|0)==0:0){l=H+32|0;gs(e,m,c[(l&p)>>2]|0,1,c[(H&p)>>2]|0);if(!(a[(E&n)>>0]&32)){H=c[(H&p)>>2]|0;xh(L,wh(L,118,c[(l&p)>>2]|0,m,K)|0,H,-2)}h=c[(I&p)>>2]|0;if(!h){h=0;break}do{wh(L,118,c[(h&p)+40>>2]|0,m,0)|0;h=c[(h&p)+20>>2]|0}while((h|0)!=0);h=0}else F=31;while(0);do if((F|0)==31){if(!(a[(E&n)>>0]&32)){v=e+72|0;z=(c[(v&p)>>2]|0)+1|0;c[(v&p)>>2]=z;wh(L,28,0,z,0)|0;v=0;A=0;h=0;x=1;m=0}else{m=c[(I&p)>>2]|0;c:do if(!m)m=0;else while(1){if((a[(m&n)+51>>0]&3)==2)break c;m=c[(m&p)+20>>2]|0;if(!m){m=0;break}}while(0);x=b[(m&o)+46>>1]|0;A=e+72|0;h=c[(A&p)>>2]|0;v=x<<16>>16;c[(A&p)>>2]=h+v;A=c[(s&p)>>2]|0;c[(s&p)>>2]=A+1;v=wh(L,57,A,v,0)|0;z=c[(e&p)+8>>2]|0;xh(z,-1,hs(e,m)|0,-6);h=h+1|0;z=0}w=Vs(e,f,g,0,0,12,u)|0;if(!w){h=0;break b}u=w+60|0;t=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;y=a[(w&n)+38>>0]|0;if(c[(J&p)>>2]&128)wh(L,37,K,1,0)|0;B=(m|0)!=0;do if(B){if(x<<16>>16<=0){k=h;break}r=m+4|0;l=x<<16>>16;s=0;do{nt(L,H,C,b[((c[(r&p)>>2]|0)+(s<<1)&o)>>1]|0,s+h|0);s=s+1|0}while((s|0)!=(l|0));k=h}else{l=e+72|0;k=ct(e,H,-1,C,(c[(l&p)>>2]|0)+1|0,0)|0;if((k|0)<=(c[(l&p)>>2]|0))break;c[(l&p)>>2]=k}while(0);r=y<<24>>24!=0;do if(!r)if(B){l=e+72|0;k=(c[(l&p)>>2]|0)+1|0;c[(l&p)>>2]=k;l=x<<16>>16;s=ot(L,m)|0;xh(L,wh(L,49,h,l,k)|0,s,l);wh(L,110,A,k,0)|0;h=0;l=0;s=0;F=59;break}else{wh(L,128,z,k,0)|0;Xs(w);h=0;u=0;m=1;break}else{h=q+2|0;h=mh(S,h,((h|0)<0)<<31>>31)|0;if(!h){Xs(w);h=0;break b}F=q+1|0;fw(h|0,1,F|0)|0;a[(h+F&n)>>0]=0;if((t|0)>-1)a[(h+(t-C)&n)>>0]=0;if((u|0)>-1)a[(h+(u-C)&n)>>0]=0;if(v)zh(L,v);l=wh(L,16,0,0,0)|0;s=x;F=59}while(0);do if((F|0)==59){Xs(w);if(!r){u=0;m=s;break}m=xs(L)|0;wh(L,16,0,m,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;u=m;m=s}while(0);if(!P)pt(e,H,55,C,h,Q,R)|0;do if(!r)if(B){l=wh(L,108,A,0,0)|0;wh(L,101,A,k,0)|0;break}else{l=wh(L,129,z,0,k)|0;break}else{q=c[(Q&p)>>2]|0;if(!(a[(h+(q-C)&n)>>0]|0)){l=0;break}xh(L,wh(L,68,q,u,k)|0,m<<16>>16,-14);l=0}while(0);if(!(a[(E&n)>>0]&16))rt(e,H,G,c[(Q&p)>>2]|0,c[(R&p)>>2]|0,k,m,(a[(M&n)>>0]|0)==0&1,10,y);else{q=c[(H&p)+60>>2]|0;d:do if(!q)q=0;else while(1){if((c[(q&p)>>2]|0)==(S|0))break d;q=c[(q&p)+24>>2]|0;if(!q){q=0;break}}while(0);qt(e,H);xh(L,wh(L,15,0,1,k)|0,q,-10);q=c[(L&p)+4>>2]|0;if(q)a[(q+(((c[(L&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=2;H=c[(D&p)>>2]|0;a[(((H|0)==0?e:H)&n)+21>>0]=1}do if(!r)if(B){wh(L,9,A,l+1|0,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{wh(L,16,0,l,0)|0;q=c[(L&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(L&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=q;c[((c[(L&p)+24>>2]|0)&p)+88>>2]=q+-1;break}else{m=c[(L&p)+24>>2]|0;l=~u;do if((u|0)<0){q=c[(m&p)+112>>2]|0;if(!q)break;c[(q+(l<<2)&p)>>2]=c[(L&p)+32>>2]}while(0);c[(m&p)+88>>2]=(c[(L&p)+32>>2]|0)+-1}while(0);if(P)break;if(a[(E&n)>>0]&16)break;if(!B)wh(L,61,c[(Q&p)>>2]|0,0,0)|0;k=c[(I&p)>>2]|0;if(!k)break;else l=0;while(1){wh(L,61,(c[(R&p)>>2]|0)+l|0,0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}}while(0);if((a[(M&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((c[(J&p)>>2]&128|0)!=0?(a[(M&n)>>0]|0)==0:0){if(c[(e&p)+412>>2]|0)break;wh(L,35,K,1,0)|0;iq(L,1);if(a[((c[(L&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(L&p)+16>>2]|0,34568,-1,1,0)|0}}else h=0}else h=0;while(0);if(N)c[(N&p)+492>>2]=O}else h=0}else h=0;Do(S,f);Gk(S,g);mg(S,h);i=T;return}function sr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0;ma=i;i=i+64|0;if((i|0)>=(j|0))fa();T=ma;Y=ma+32|0;ea=ma+24|0;ha=ma+20|0;la=c[(e&p)>>2]|0;a:do if(((c[(e&p)+64>>2]|0)==0?(a[(la&n)+65>>0]|0)==0:0)?(ka=Jr(e,f)|0,(ka|0)!=0):0){m=c[(e&p)>>2]|0;r=c[(ka&p)+68>>2]|0;b:do if(r){s=c[(m&p)+20>>2]|0;if((s|0)>0){m=c[(m&p)+16>>2]|0;q=0;while(1){l=q+1|0;if((c[(m+(q<<4)&p)+12>>2]|0)==(r|0))break b;if((l|0)<(s|0))q=l;else{q=l;break}}}else q=0}else q=-1e6;while(0);ga=jt(e,ka,110,g,ea)|0;ca=(c[(ka&p)+12>>2]|0)!=0;if((hr(e,ka)|0)==0?(kt(e,ka,c[(ea&p)>>2]|0)|0)==0:0){_=e+68|0;$=c[(_&p)>>2]|0;ia=$+1|0;c[(_&p)>>2]=ia;r=f+48|0;c[(r&p)>>2]=$;K=ka+44|0;u=c[(ka&p)+8>>2]|0;c:do if(!(a[(K&n)>>0]&32)){s=0;ba=16}else{if(!u){w=ka+8|0;s=0;t=$;v=0;break}else s=u;while(1){if((a[(s&n)+51>>0]&3)==2){ba=16;break c}s=c[(s&p)+20>>2]|0;if(!s){s=0;ba=16;break}}}while(0);if((ba|0)==16){w=ka+8|0;if(!u){t=$;v=0}else{l=(s|0)!=0;m=ia;t=$;v=0;do{if((a[(u&n)+51>>0]&3)==2&l){c[(r&p)>>2]=m;t=m}m=m+1|0;c[(_&p)>>2]=m;v=v+1|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}}ja=ka+38|0;l=mh(la,v+2+((b[(ja&o)>>1]|0)+v<<2)|0,0)|0;if(l){I=b[(ja&o)>>1]|0;aa=l+(I<<2)|0;da=l+(I+v<<2)|0;Z=v+1|0;fw(da|0,1,Z|0)|0;a[(da+Z&n)>>0]=0;v=b[(ja&o)>>1]|0;if(v<<16>>16>0)fw(l|0,-1,(v<<16>>16>1?v<<16>>16<<2:4)|0)|0;c[(Y&p)>>2]=0;c[(Y&p)+4>>2]=0;c[(Y&p)+8>>2]=0;c[(Y&p)+12>>2]=0;c[(Y&p)+16>>2]=0;c[(Y&p)+20>>2]=0;c[(Y&p)+24>>2]=0;c[(Y&p)+28>>2]=0;c[(Y&p)>>2]=e;c[(Y&p)+4>>2]=f;d:do if((c[(g&p)>>2]|0)>0){E=g+4|0;D=ka+4|0;C=la+16|0;F=(s|0)==0;G=ka+36|0;y=0;x=0;H=0;m=0;while(1){if(ls(Y,c[((c[(E&p)>>2]|0)+(H*20|0)&p)>>2]|0)|0)break a;A=b[(ja&o)>>1]|0;e:do if(A<<16>>16>0){v=c[(D&p)>>2]|0;B=c[(E&p)>>2]|0;r=c[(B+(H*20|0)&p)+4>>2]|0;u=0;while(1){z=u+1|0;if(!(dd(c[(v+(u*24|0)&p)>>2]|0,r)|0))break;if((z|0)<(A<<16>>16|0))u=z;else{u=z;r=m;break e}}if((u|0)!=(b[(G&o)>>1]|0)){if(!F)y=(a[(v+(u*24|0)&n)+23>>0]&1)==0?y:1}else{x=1;m=c[(B+(H*20|0)&p)>>2]|0}c[(l+(u<<2)&p)>>2]=H;r=m}else{u=0;r=m}while(0);if((u|0)<(A<<16>>16|0)){m=c[(ka&p)>>2]|0;if((u|0)<0)v=12944;else v=c[((c[(D&p)>>2]|0)+(u*24|0)&p)>>2]|0}else{r=c[(E&p)>>2]|0;m=c[(r+(H*20|0)&p)+4>>2]|0;if(!F)break;if(!($h(m)|0))break;m=c[(ka&p)>>2]|0;v=12944;x=1;u=-1;r=c[(r+(H*20|0)&p)>>2]|0}m=Sq(e,23,m,v,c[((c[(C&p)>>2]|0)+(q<<4)&p)>>2]|0)|0;if((m|0)==2)c[(l+(u<<2)&p)>>2]=-1;else if((m|0)==1)break a;H=H+1|0;if((H|0)>=(c[(g&p)>>2]|0)){R=r;break d}else m=r}c[(T&p)>>2]=m;th(e,34496,T);a[(e&n)+17>>0]=1;break a}else{y=0;x=0;R=0}while(0);X=(y&255)+(x&255)|0;U=X&255;C=f+64|0;c[(C&p)>>2]=0;c[(C&p)+4>>2]=0;X=X&255;C=mt(e,ka,l,X)|0;m=c[(w&p)>>2]|0;if(m){z=(C|X|0)==0;A=e+72|0;B=0;while(1){f:do if(z?!((c[(m&p)+36>>2]|0)!=0|(m|0)==(s|0)):0){r=b[(m&o)+46>>1]|0;if(!(r<<16>>16))ba=56;else{u=c[(m&p)+4>>2]|0;v=0;while(1){if((c[(l+(b[(u+(v<<1)&o)>>1]<<2)&p)>>2]|0)>-1){ba=54;break f}v=v+1|0;if((v|0)>=(r&65535|0)){ba=56;break}}}}else ba=54;while(0);if((ba|0)==54){ba=0;r=(c[(A&p)>>2]|0)+1|0;c[(A&p)>>2]=r;if(!r)ba=56;else u=B+1|0}if((ba|0)==56){ba=0;u=B+1|0;a[(da+u&n)>>0]=0;r=0}c[(l+(B+I<<2)&p)>>2]=r;m=c[(m&p)+20>>2]|0;if(!m)break;else B=u}}V=Oq(e)|0;if(V){W=e+18|0;if(!(a[(W&n)>>0]|0)){S=V+88|0;b[(S&o)>>1]=b[(S&o)>>1]|4}H=e+408|0;S=c[(H&p)>>2]|0;S=(S|0)==0?e:S;Ar(e,q);Q=S+328|0;c[(Q&p)>>2]=c[(Q&p)>>2]|1<<q;S=S+20|0;a[(S&n)>>0]=d[(S&n)>>0]|1;if(a[(K&n)>>0]&16){x=c[(e&p)+8>>2]|0;y=c[(e&p)>>2]|0;m=c[(ka&p)+60>>2]|0;g:do if(!m)m=0;else while(1){if((c[(m&p)>>2]|0)==(y|0))break g;m=c[(m&p)+24>>2]|0;if(!m){m=0;break}}while(0);q=lr(e,0,tt(y,27,34536)|0)|0;w=(R|0)!=0;if(w)q=lr(e,q,Mr(y,R,0,0)|0)|0;if((b[(ja&o)>>1]|0)>0){r=g+4|0;t=ka+4|0;u=0;do{s=c[(l+(u<<2)&p)>>2]|0;if((s|0)>-1)s=Mr(y,c[((c[(r&p)>>2]|0)+(s*20|0)&p)>>2]|0,0,0)|0;else s=tt(y,27,c[((c[(t&p)>>2]|0)+(u*24|0)&p)>>2]|0)|0;q=lr(e,q,s)|0;u=u+1|0}while((u|0)<(b[(ja&o)>>1]|0))}t=kr(e,q,f,h,0,0,0,0,0,0)|0;v=c[(_&p)>>2]|0;c[(_&p)>>2]=v+1;f=w&1;wh(x,57,v,(b[(ja&o)>>1]|0)+(w?2:1)|0,0)|0;u=x+4|0;h=c[(u&p)>>2]|0;if(h)a[(h+(((c[(x&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=8;a[(T&n)>>0]=14;c[(T&p)+4>>2]=v;a[(T&n)+1>>0]=0;c[(T&p)+8>>2]=0;c[(T&p)+12>>2]=0;ir(e,t,T)|0;h=e+72|0;s=c[(h&p)>>2]|0;q=s+1|0;da=s+2|0;c[(h&p)>>2]=(b[(ja&o)>>1]|0)+da;h=wh(x,108,v,0,0)|0;wh(x,47,v,0,q)|0;wh(x,47,v,f,da)|0;if((b[(ja&o)>>1]|0)>0){s=s+3|0;r=0;do{da=r;r=r+1|0;wh(x,47,v,r+f|0,s+da|0)|0}while((r|0)<(b[(ja&o)>>1]|0))}qt(e,ka);xh(x,wh(x,15,0,(b[(ja&o)>>1]|0)+2|0,q)|0,m,-10);m=c[(u&p)>>2]|0;if(!m)m=x+32|0;else{da=x+32|0;a[(m+(((c[(da&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;m=da}da=c[(H&p)>>2]|0;a[(((da|0)==0?e:da)&n)+21>>0]=1;wh(x,9,v,h+1|0,0)|0;m=c[(m&p)>>2]|0;if(m>>>0>h>>>0)c[((c[(u&p)>>2]|0)+(h*20|0)&p)+8>>2]=m;c[((c[(x&p)+24>>2]|0)&p)+88>>2]=m+-1;wh(x,61,v,0,0)|0;Mk(y,t,1);h=0;f=0;break}H=e+72|0;m=c[(H&p)>>2]|0;G=m+1|0;Q=m+2|0;c[(H&p)>>2]=Q;I=y<<24>>24!=0;J=(ga|0)!=0;P=(C|0)!=0;if(I|J|P){q=(b[(ja&o)>>1]|0)+Q|0;c[(H&p)>>2]=q;L=m+3|0}else{q=Q;L=0}N=(X|0)!=0;if(N|J|P){O=q+1|0;c[(H&p)>>2]=O;q=O}else O=Q;M=q+1|0;c[(H&p)>>2]=(b[(ja&o)>>1]|0)+q;if(ca){S=e+492|0;T=c[(S&p)>>2]|0;c[(S&p)>>2]=c[(ka&p)>>2];lt(e,ka,h,t);S=e}else{S=0;T=0}do if(!(ls(Y,h)|0)){if(!(a[(K&n)>>0]&32)){wh(V,28,0,G,Q)|0;y=Vs(e,f,h,0,0,4,ia)|0;if(!y)break;A=y+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;B=a[(y&n)+38>>0]|0;wh(V,103,t,Q,0)|0;if(!(B<<24>>24))wh(V,128,G,Q,0)|0;Xs(y);D=0;C=0;z=B&255;E=0}else{B=b[(s&o)+46>>1]|0;y=c[(H&p)>>2]|0;u=y+1|0;C=B<<16>>16;y=C+1+y|0;c[(H&p)>>2]=y;D=c[(_&p)>>2]|0;c[(_&p)>>2]=D+1;wh(V,28,0,u,0)|0;q=wh(V,57,D,C,0)|0;v=c[(e&p)+8>>2]|0;xh(v,-1,hs(e,s)|0,-6);v=Vs(e,f,h,0,0,4,ia)|0;if(!v)break;A=v+60|0;m=c[(A&p)>>2]|0;A=c[(A&p)+4>>2]|0;r=a[(v&n)+38>>0]|0;E=r&255;if(B<<16>>16>0){B=s+4|0;z=0;do{nt(V,ka,t,b[((c[(B&p)>>2]|0)+(z<<1)&o)>>1]|0,z+u|0);z=z+1|0}while((z|0)!=(C|0))}if(!(r<<24>>24)){B=ot(V,s)|0;xh(V,wh(V,49,u,C,y)|0,B,C);wh(V,110,D,y,0)|0;B=0}else{zh(V,q);B=C;y=u}Xs(v);C=B;z=E;E=y}K=la+24|0;do if(!(c[(K&p)>>2]&128))v=0;else{if(c[(e&p)+412>>2]|0){v=0;break}v=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=v;wh(V,25,0,v,0)|0}while(0);u=xs(V)|0;if(!ca){h:do if((k|0)==5)fw(da|0,1,Z|0)|0;else{B=c[(w&p)>>2]|0;if(!B)break;while(1){if((a[(B&n)+50>>0]|0)==5)break;B=c[(B&p)+20>>2]|0;if(!B)break h}fw(da|0,1,Z|0)|0}while(0);do if(z){if((m|0)>-1)a[(da+(m-$)&n)>>0]=0;if((A|0)<=-1)break;a[(da+(A-$)&n)>>0]=0}while(0);pt(e,ka,55,$,da,0,0)|0}H=(z|0)!=0;do if(!H)if(!s){G=wh(V,129,G,u,Q)|0;wh(V,70,t,G,Q)|0;F=0;break}else{G=xs(V)|0;wh(V,108,D,u,0)|0;F=wh(V,101,D,E,0)|0;xh(V,wh(V,68,t,G,E)|0,0,-14);break}else{if(!((a[(da+(t-$)&n)>>0]|0)==0|ca))xh(V,wh(V,68,t,u,E)|0,C,-14);wh(V,76,(s|0)!=0?E:Q,u,0)|0;F=0;G=u}while(0);x=x<<24>>24==0;if(!x){Rq(e,R,O);wh(V,38,O,0,0)|0}do if(I|P|J){if(P)y=ut(e,ka)|0;else y=0;B=vt(e,ga,g,0,3,ka,k)|0|y;if((b[(ja&o)>>1]|0)>0){A=(B|0)==-1;z=ka+4|0;y=0;do{do if(A)ba=138;else{if((y|0)<32?(1<<y&B|0)!=0:0){ba=138;break}if(a[((c[(z&p)>>2]|0)+(y*24|0)&n)+23>>0]&1){ba=138;break}wh(V,28,0,y+L|0,0)|0}while(0);if((ba|0)==138){ba=0;nt(V,ka,t,y,y+L|0)}y=y+1|0}while((y|0)<(b[(ja&o)>>1]|0))}if(!(x&(s|0)==0))break;wh(V,33,Q,O,0)|0}while(0);y=vt(e,ga,g,1,1,ka,k)|0;if((b[(ja&o)>>1]|0)>0){x=ka+36|0;m=g+4|0;r=0;do{i:do if((r|0)==(b[(x&o)>>1]|0))wh(V,28,0,r+M|0,0)|0;else{q=c[(l+(r<<2)&p)>>2]|0;if((q|0)>-1){Rq(e,c[((c[(m&p)>>2]|0)+(q*20|0)&p)>>2]|0,r+M|0);break}do if(!((c[(ea&p)>>2]&1|0)==0|(r|0)>31)){if(1<<r&y)break;wh(V,28,0,r+M|0,0)|0;break i}while(0);nt(V,ka,t,r,r+M|0)}while(0);r=r+1|0}while((r|0)<(b[(ja&o)>>1]|0))}do if(c[(ea&p)>>2]&1){wt(V,ka,M);xt(e,ga,110,g,1,ka,Q,k,G);if(!s)wh(V,70,t,G,Q)|0;else xh(V,wh(V,68,t,G,E)|0,C,-14);m=b[(ja&o)>>1]|0;if(m<<16>>16<=0)break;x=ka+36|0;y=0;do{do if((c[(l+(y<<2)&p)>>2]|0)<0){if((y|0)==(b[(x&o)>>1]|0))break;nt(V,ka,t,y,y+M|0);m=b[(ja&o)>>1]|0}while(0);y=y+1|0}while((y|0)<(m<<16>>16|0))}while(0);do if(!ca){c[(ha&p)>>2]=0;yt(e,ka,aa,t,ia,O,Q,U,k&255,G,ha);if(P)zt(e,ka,Q,0,l,X);m=(c[(ha&p)>>2]|X|0)==0;do if(!m)if(!s){q=wh(V,70,t,0,Q)|0;break}else{q=wh(V,68,t,0,E)|0;xh(V,q,C,-14);break}else q=0;while(0);At(e,ka,t,ia,aa);if(P|(N|(s|0)!=0))wh(V,95,t,0,0)|0;if(!m){m=c[(V&p)+32>>2]|0;if(m>>>0>q>>>0)c[((c[(V&p)+4>>2]|0)+(q*20|0)&p)+8>>2]=m;c[((c[(V&p)+24>>2]|0)&p)+88>>2]=m+-1}if(P){zt(e,ka,0,O,l,X);Bt(e,ka,t,ia,O,aa,1,0,0);Ct(e,ka,g,Q,l,X);break}else{Bt(e,ka,t,ia,O,aa,1,0,0);break}}while(0);do if(c[(K&p)>>2]&128){if(c[(e&p)+412>>2]|0)break;wh(V,37,v,1,0)|0}while(0);xt(e,ga,110,g,2,ka,Q,k,G);do if(!H){if(!s){wh(V,16,0,G,0)|0;break}r=c[(V&p)+24>>2]|0;q=~G;do if((G|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;wh(V,9,D,F,0)|0}while(0);r=c[(V&p)+24>>2]|0;q=~u;do if((u|0)<0){s=c[(r&p)+112>>2]|0;if(!s)break;c[(s+(q<<2)&p)>>2]=c[(V&p)+32>>2]}while(0);c[(r&p)+88>>2]=(c[(V&p)+32>>2]|0)+-1;q=c[(w&p)>>2]|0;if(q){r=0;do{s=r;r=r+1|0;if(a[(da+r&n)>>0]|0)wh(V,61,s+ia|0,0,0)|0;q=c[(q&p)+20>>2]|0}while((q|0)!=0)}if((t|0)<(ia|0))wh(V,61,t,0,0)|0;do if(!(a[(W&n)>>0]|0)){if(c[(e&p)+412>>2]|0)break;st(e)}while(0);if(!(c[(K&p)>>2]&128))break;if(c[(e&p)+412>>2]|0)break;if(a[(W&n)>>0]|0)break;wh(V,35,v,1,0)|0;iq(V,1);if(a[((c[(V&p)>>2]|0)&n)+65>>0]|0)break;Xg(c[(V&p)+16>>2]|0,34520,-1,1,0)|0}while(0);if(S)c[(S&p)+492>>2]=T}}}else l=0}else l=0;while(0);mg(la,l);Do(la,f);Nk(la,g);Gk(la,h);i=ma;return}function tr(e,f,g,h,k){e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;var l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,ga=0,ha=0,ia=0,ja=0,ka=0,la=0,ma=0,na=0,oa=0;oa=i;i=i+96|0;if((i|0)>=(j|0))fa();ca=oa;ja=oa+92|0;la=oa+88|0;L=oa+68|0;Y=oa+64|0;O=oa+32|0;ba=oa+28|0;c[(ja&p)>>2]=0;c[(la&p)>>2]=0;na=c[(e&p)>>2]|0;c[(L&p)>>2]=0;c[(L&p)+4>>2]=0;c[(L&p)+8>>2]=0;c[(L&p)+12>>2]=0;c[(L&p)+16>>2]=0;a:do if((c[(e&p)+64>>2]|0)==0?(N=na+65|0,(a[(N&n)>>0]|0)==0):0){if(g)if((b[(g&o)+6>>1]&128)!=0?(c[(g&p)+52>>2]|0)==0:0){l=c[(g&p)>>2]|0;c[(g&p)>>2]=0;Mk(na,g,1);g=0}else l=0;else{g=0;l=0}if((c[(f&p)+16>>2]|0)!=0?(ka=Jr(e,f)|0,(ka|0)!=0):0){u=c[(ka&p)+68>>2]|0;b:do if(u){t=c[(na&p)+20>>2]|0;if((t|0)>0){s=c[(na&p)+16>>2]|0;q=0;while(1){r=q+1|0;if((c[(s+(q<<4)&p)+12>>2]|0)==(u|0)){r=q;break b}if((r|0)<(t|0))q=r;else break}}else r=0}else r=-1e6;while(0);if((((Sq(e,18,c[(ka&p)>>2]|0,0,c[((c[(na&p)+16>>2]|0)+(r<<4)&p)>>2]|0)|0)==0?(ga=ka+44|0,Z=(d[(ga&n)>>0]|0)>>>5&1,ea=jt(e,ka,108,0,Y)|0,ha=(c[(ka&p)+12>>2]|0)!=0,(hr(e,ka)|0)==0):0)?(kt(e,ka,c[(Y&p)>>2]|0)|0)==0:0)?(ma=Oq(e)|0,(ma|0)!=0):0){ia=e+18|0;if(!(a[(ia&n)>>0]|0)){da=ma+88|0;b[(da&o)>>1]=b[(da&o)>>1]|4}da=(g|0)!=0;aa=e+408|0;$=c[(aa&p)>>2]|0;$=($|0)==0?e:$;Ar(e,r);X=$+328|0;c[(X&p)>>2]=c[(X&p)>>2]|1<<r;$=$+20|0;a[($&n)>>0]=d[($&n)>>0]|(da|(ea|0)!=0)&1;$=(h|0)==0;c:do if((((!((g|0)==0|$^1)?(c[(e&p)+532>>2]|0)==0:0)?(c[(g&p)+68>>2]|0)==0:0)?(As(e,ka)|0)==0:0)?(a[(ga&n)>>0]&16)==0:0){if((k|0)==10){if((b[(ka&o)+36>>1]|0)>-1)u=d[(ka&n)+45>>0]|0;else u=10;y=(u|0)==10?2:u}else y=k;t=c[(g&p)+32>>2]|0;if((c[(t&p)>>2]|0)==1){if(c[(t&p)+28>>2]|0){_=117;break}if(c[(g&p)+36>>2]|0){_=117;break}if(c[(g&p)+48>>2]|0){_=117;break}if(c[(g&p)+40>>2]|0){_=117;break}if(c[(g&p)+60>>2]|0){_=117;break}if(c[(g&p)+52>>2]|0){_=117;break}if(b[(g&o)+6>>1]&1){_=117;break}u=c[(g&p)>>2]|0;if((c[(u&p)>>2]|0)!=1){_=117;break}if((a[(c[(c[(u&p)+4>>2]&p)>>2]&n)>>0]|0)!=116){_=117;break}x=Ur(e,0,t+8|0)|0;if((x|0)==0|(x|0)==(ka|0)){_=117;break}B=x+44|0;X=d[(B&n)>>0]|0;if(!((X&16|0)==0?(((d[(ga&n)>>0]|0)>>>5&1^1)&255|0)==(X>>>5&1^1|0):0)){_=117;break}if(c[(x&p)+12>>2]|0){_=117;break}v=b[(ka&o)+38>>1]|0;if(v<<16>>16!=(b[(x&o)+38>>1]|0)){_=117;break}A=ka+36|0;if((b[(A&o)>>1]|0)!=(b[(x&o)+36>>1]|0)){_=117;break}if(v<<16>>16>0){q=c[(ka&p)+4>>2]|0;m=c[(x&p)+4>>2]|0;w=0;do{if((a[(q+(w*24|0)&n)+21>>0]|0)!=(a[(m+(w*24|0)&n)+21>>0]|0)){_=117;break c}u=c[(q+(w*24|0)&p)+16>>2]|0;t=c[(m+(w*24|0)&p)+16>>2]|0;s=(t|0)==0;if(!u){if(!s){_=117;break c}}else{if(s){_=117;break c}if(dd(u,t)|0){_=117;break c}}if((a[(q+(w*24|0)&n)+20>>0]|0)!=0?(a[(m+(w*24|0)&n)+20>>0]|0)==0:0){_=117;break c}do if((w|0)>0){u=c[(q+(w*24|0)&p)+8>>2]|0;t=(u|0)==0;s=c[(m+(w*24|0)&p)+8>>2]|0;if(t^(s|0)==0){_=117;break c}if(t)break;if(_v(u,s)|0){_=117;break c}}while(0);w=w+1|0}while((w|0)<(v<<16>>16|0))}E=ka+8|0;u=c[(E&p)>>2]|0;if(!u)t=0;else{v=c[(x&p)+8>>2]|0;if(!v){_=117;break}else t=0;do{t=(a[(u&n)+50>>0]|0)==0?t:1;s=v;while(1){if(Dt(u,s)|0)break;s=c[(s&p)+20>>2]|0;if(!s){_=117;break c}}if(!s){_=117;break c}u=c[(u&p)+20>>2]|0}while((u|0)!=0)}u=c[(ka&p)+24>>2]|0;if((u|0)!=0?(Ts(c[(x&p)+24>>2]|0,u,-1)|0)!=0:0){_=117;break}s=c[(e&p)>>2]|0;u=c[(s&p)+24>>2]|0;if(!(u&524288)){if(u&128){_=117;break}}else if(!((c[(ka&p)+16>>2]|0)==0&(u&128|0)==0)){_=117;break}m=c[(x&p)+68>>2]|0;d:do if(!m)s=-1e6;else{v=c[(s&p)+20>>2]|0;if((v|0)<=0){s=0;break}u=c[(s&p)+16>>2]|0;q=0;while(1){s=q+1|0;if((c[(u+(q<<4)&p)+12>>2]|0)==(m|0)){s=q;break d}if((s|0)<(v|0))q=s;else break}}while(0);D=Oq(e)|0;Ar(e,s);z=e+68|0;F=c[(z&p)>>2]|0;C=F+1|0;c[(z&p)>>2]=F+2;z=Et(e,r,ka)|0;v=e+19|0;q=a[(v&n)>>0]|0;do if(!(q<<24>>24)){_=e+72|0;u=(c[(_&p)>>2]|0)+1|0;c[(_&p)>>2]=u;_=78}else{X=q+-1<<24>>24;a[(v&n)>>0]=X;u=c[(e+((X&255)<<2)&p)+24>>2]|0;if(!(X<<24>>24)){_=78;break}G=q+-2<<24>>24;a[(v&n)>>0]=G;H=u;G=c[(e+((G&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==78){H=e+72|0;G=(c[(H&p)>>2]|0)+1|0;c[(H&p)>>2]=G;H=u}Qq(e,C,r,ka,55);if((b[(A&o)>>1]|0)<0)if((c[(E&p)>>2]|0)!=0|(t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;else if((t|0)!=0|(y+-1|0)>>>0>1)_=83;else I=0;if((_|0)==83){w=wh(D,108,C,0,0)|0;v=wh(D,16,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;I=v}if(!(a[(B&n)>>0]&32)){Qq(e,F,s,x,54);t=wh(D,108,F,0,0)|0;do if((b[(A&o)>>1]|0)<=-1)if(!(c[(E&p)>>2]|0)){u=wh(D,74,C,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;break}else{u=wh(D,103,F,G,0)|0;w=wh(D,70,C,0,G)|0;Ft(e,y,ka);v=c[(D&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(D&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=v+-1;if((z|0)<=0)break;wh(c[(e&p)+8>>2]|0,136,z,G,0)|0}while(0);wh(D,102,F,H,0)|0;wh(D,75,C,H,G)|0;v=c[(D&p)+4>>2]|0;if(v)a[(v+(((c[(D&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=11;xh(D,-1,c[(ka&p)>>2]|0,0);wh(D,9,F,u,0)|0;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0}else{gs(e,r,c[(ka&p)+32>>2]|0,1,c[(ka&p)>>2]|0);gs(e,s,c[(x&p)+32>>2]|0,0,c[(x&p)>>2]|0);t=0}w=c[(E&p)>>2]|0;if(w){q=x+8|0;m=e+8|0;x=D+4|0;y=D+32|0;z=D+24|0;u=w;do{w=q;while(1){w=c[(w&p)>>2]|0;if(Dt(u,w)|0)break;w=w+20|0}wh(D,54,F,c[(w&p)+40>>2]|0,s)|0;X=c[(m&p)>>2]|0;xh(X,-1,hs(e,w)|0,-6);wh(D,55,C,c[(u&p)+40>>2]|0,r)|0;w=c[(m&p)>>2]|0;xh(w,-1,hs(e,u)|0,-6);w=c[(x&p)>>2]|0;if(w)a[(w+(((c[(y&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=1;w=wh(D,108,F,0,0)|0;wh(D,101,F,H,0)|0;wh(D,110,C,H,1)|0;wh(D,9,F,w+1|0,0)|0;v=c[(y&p)>>2]|0;if(v>>>0>w>>>0)c[((c[(x&p)>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(z&p)>>2]|0)&p)+88>>2]=v+-1;wh(D,61,F,0,0)|0;wh(D,61,C,0,0)|0;u=c[(u&p)+20>>2]|0}while((u|0)!=0)}if(t){u=c[(D&p)+32>>2]|0;if(u>>>0>t>>>0)c[((c[(D&p)+4>>2]|0)+(t*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1}_r(e,G);_r(e,H);if(!I){m=0;q=0;break}wh(D,24,0,0,0)|0;u=c[(D&p)+32>>2]|0;if(u>>>0>I>>>0)c[((c[(D&p)+4>>2]|0)+(I*20|0)&p)+8>>2]=u;c[((c[(D&p)+24>>2]|0)&p)+88>>2]=u+-1;wh(D,61,C,0,0)|0;_=117}else _=117}else _=117;while(0);do if((_|0)==117){S=Et(e,r,ka)|0;R=e+72|0;t=c[(R&p)>>2]|0;W=t+1|0;X=ka+38|0;I=b[(X&o)>>1]|0;H=I<<16>>16;u=W+H|0;c[(R&p)>>2]=u;if(!(a[(ga&n)>>0]&16))V=W;else{u=u+1|0;c[(R&p)>>2]=u;V=t+2|0}T=V+1|0;U=(h|0)!=0;e:do if(U?(P=c[(h&p)+4>>2]|0,Q=(P|0)>0,Q):0){v=c[(h&p)>>2]|0;t=0;do{c[(v+(t<<3)&p)+4>>2]=-1;t=t+1|0}while((t|0)<(P|0));if(Q){D=Z<<24>>24!=0;C=ka+4|0;B=ka+36|0;t=1;A=0;v=-1;while(1){f:do if(I<<16>>16>0){z=c[(h&p)>>2]|0;s=c[(z+(A<<3)&p)>>2]|0;q=c[(C&p)>>2]|0;m=0;while(1){w=m+1|0;if(!(dd(s,c[(q+(m*24|0)&p)>>2]|0)|0)){w=m;break}if((w|0)<(H|0))m=w;else break f}c[(z+(A<<3)&p)+4>>2]=w;t=(A|0)==(w|0)?t:0;v=(w|0)==(b[(B&o)>>1]|0)?A:v}else w=0;while(0);if((w|0)>=(H|0)){m=c[((c[(h&p)>>2]|0)+(A<<3)&p)>>2]|0;if(($h(m)|0)==0|D)break;else{t=0;w=A}}else w=v;A=A+1|0;if((A|0)>=(P|0)){E=w;break e}else v=w}c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=m;th(e,33368,ca);a[(e&n)+17>>0]=1;m=0;break a}else{t=1;E=-1}}else{t=1;E=-1}while(0);g:do if(!da){c[(O&p)>>2]=0;c[(O&p)+4>>2]=0;c[(O&p)+8>>2]=0;c[(O&p)+12>>2]=0;c[(O&p)+16>>2]=0;c[(O&p)+20>>2]=0;c[(O&p)+24>>2]=0;c[(O&p)+28>>2]=0;c[(O&p)>>2]=e;if(l){s=c[(l&p)>>2]|0;if((s|0)>0){u=l+4|0;t=0;while(1){if(ls(O,c[((c[(u&p)>>2]|0)+(t*20|0)&p)>>2]|0)|0){g=0;m=0;break a}t=t+1|0;if((t|0)>=(s|0)){u=0;t=-1;r=0;_=169;break}}}else{P=E;O=0;Q=-1;z=0}}else{P=E;s=0;O=0;Q=-1;z=0}}else{u=u+1|0;c[(R&p)>>2]=u;G=ma+32|0;v=c[(G&p)>>2]|0;wh(ma,20,u,0,v+1|0)|0;a[(L&n)>>0]=13;H=L+4|0;c[(H&p)>>2]=u;a[(L&n)+1>>0]=0;F=L+8|0;c[(F&p)>>2]=t<<24>>24!=0?T:0;c[(L&p)+12>>2]=b[(X&o)>>1];Q=ir(e,g,L)|0;F=c[(F&p)>>2]|0;if(Q){m=0;break a}if(a[(N&n)>>0]|0){m=0;break a}wh(ma,21,u,0,0)|0;u=c[(G&p)>>2]|0;if(u>>>0>v>>>0)c[((c[(ma&p)+4>>2]|0)+(v*20|0)&p)+8>>2]=u;I=ma+24|0;c[((c[(I&p)>>2]|0)&p)+88>>2]=u+-1;s=c[(c[(g&p)>>2]&p)>>2]|0;h:do if(!ea){w=Oq(e)|0;t=c[(w&p)+32>>2]|0;i:do if(!(a[(ga&n)>>0]&16))v=0;else{u=c[(e&p)>>2]|0;v=c[(ka&p)+60>>2]|0;if(!v){v=0;break}while(1){if((c[(v&p)>>2]|0)==(u|0))break i;v=c[(v&p)+24>>2]|0;if(!v){v=0;break}}}while(0);if((t|0)<=1){u=F;t=0;r=0;_=169;break g}q=(a[((c[(w&p)>>2]|0)&n)+65>>0]|0)==0;z=w+4|0;y=ka+32|0;x=ka+8|0;m=1;while(1){if(q)w=(c[(z&p)>>2]|0)+(m*20|0)|0;else w=29120;u=a[(w&n)>>0]|0;do if(u<<24>>24==54){if((c[(w&p)+12>>2]|0)!=(r|0))break;u=c[(w&p)+8>>2]|0;if((u|0)==(c[(y&p)>>2]|0))break h;w=c[(x&p)>>2]|0;if(!w)break;do{if((u|0)==(c[(w&p)+40>>2]|0))break h;w=c[(w&p)+20>>2]|0}while((w|0)!=0)}else if(u<<24>>24==-107?(c[(w&p)+16>>2]|0)==(v|0):0)break h;while(0);m=m+1|0;if((m|0)>=(t|0)){u=F;t=0;r=0;_=169;break g}}}while(0);v=e+68|0;w=c[(v&p)>>2]|0;c[(v&p)>>2]=w+1;v=e+19|0;t=a[(v&n)>>0]|0;do if(!(t<<24>>24)){u=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=u;_=159}else{Q=t+-1<<24>>24;a[(v&n)>>0]=Q;u=c[(e+((Q&255)<<2)&p)+24>>2]|0;if(!(Q<<24>>24)){_=159;break}Q=t+-2<<24>>24;a[(v&n)>>0]=Q;v=c[(e+((Q&255)<<2)&p)+24>>2]|0}while(0);if((_|0)==159){v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v}wh(ma,57,w,s,0)|0;r=wh(ma,22,c[(H&p)>>2]|0,0,0)|0;wh(ma,49,F,s,u)|0;wh(ma,74,w,v,0)|0;wh(ma,75,w,u,v)|0;wh(ma,16,0,r,0)|0;t=c[(G&p)>>2]|0;if(t>>>0>r>>>0)c[((c[(ma&p)+4>>2]|0)+(r*20|0)&p)+8>>2]=t;c[((c[(I&p)>>2]|0)&p)+88>>2]=t+-1;_r(e,u);_r(e,v);u=F;t=w;r=1;_=169}while(0);if((_|0)==169)if($&(s|0)>0){P=b[(ka&o)+36>>1]|0;O=u;Q=t;z=r}else{P=E;O=u;Q=t;z=r}if((a[(ga&n)>>0]&16)!=0?(M=b[(X&o)>>1]|0,M<<16>>16>0):0){v=c[(ka&p)+4>>2]|0;t=M<<16>>16;r=0;u=0;do{u=((d[(v+(r*24|0)&n)+23>>0]|0)>>>1&1)+u|0;r=r+1|0}while((r|0)<(t|0))}else u=0;do if($&(s|0)!=0){u=(b[(X&o)>>1]|0)-u|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=f;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=u;c[(ca&p)+12>>2]=s;th(e,33400,ca);m=0;break a}while(0);do if(U){u=c[(h&p)+4>>2]|0;if((s|0)==(u|0))break;c[(ca&p)>>2]=s;c[(ca&p)+4>>2]=u;th(e,33456,ca);m=0;break a}while(0);K=na+24|0;if(!(c[(K&p)>>2]&128))q=0;else{q=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=q;wh(ma,25,0,q,0)|0}do if(ha)m=0;else{u=pt(e,ka,55,-1,0,ja,la)|0;m=mh(na,(u<<2)+4|0,0)|0;if(!m)break a;if((u|0)>0)t=0;else break;do{N=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=N;c[(m+(t<<2)&p)>>2]=N;t=t+1|0}while((t|0)!=(u|0))}while(0);M=z<<24>>24!=0;do if(M){N=wh(ma,108,Q,0,0)|0;L=c[(ma&p)+32>>2]|0}else{if(!da){L=0;N=0;break}N=wh(ma,22,c[(L&p)+4>>2]|0,0,0)|0;L=N}while(0);J=xs(ma)|0;do if(c[(Y&p)>>2]&1){w=(b[(X&o)>>1]|0)+1|0;H=e+60|0;v=c[(H&p)>>2]|0;G=e+56|0;u=c[(G&p)>>2]|0;if((u|0)<(w|0)){I=c[(R&p)>>2]|0;c[(R&p)>>2]=I+w;I=I+1|0}else{c[(H&p)>>2]=w+v;c[(G&p)>>2]=u-w;I=v}if((P|0)<0)wh(ma,25,-1,I,0)|0;else{if(M)wh(ma,47,Q,P,I)|0;else Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,I);w=wh(ma,77,I,0,0)|0;wh(ma,25,-1,I,0)|0;v=c[(ma&p)+32>>2]|0;if(v>>>0>w>>>0)c[((c[(ma&p)+4>>2]|0)+(w*20|0)&p)+8>>2]=v;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=v+-1;wh(ma,38,I,0,0)|0}v=b[(X&o)>>1]|0;if(v<<16>>16>0){D=M|(l|0)!=0;t=h+4|0;u=I+1|0;w=l+4|0;A=e+8|0;B=ka+4|0;C=0;do{j:do if($)z=C;else{y=c[(t&p)>>2]|0;if((y|0)<=0){z=0;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(C|0)){z=r;break j}if((z|0)<(y|0))r=z;else break}}while(0);do if(D){if(U?(z|0)>=(c[(t&p)>>2]|0):0){_=213;break}if(M){wh(ma,47,Q,z,u+C|0)|0;break}else{Y=c[((c[(w&p)>>2]|0)+(z*20|0)&p)>>2]|0;r=u+C|0;x=c[(A&p)>>2]|0;Rq(e,Y,r);v=(c[(R&p)>>2]|0)+1|0;c[(R&p)>>2]=v;wh(x,33,r,v,0)|0;a[(Y&n)+38>>0]=a[(Y&n)>>0]|0;a[(Y&n)>>0]=-97;c[(Y&p)+28>>2]=v;Y=Y+4|0;c[(Y&p)>>2]=c[(Y&p)>>2]&-4097;break}}else _=213;while(0);if((_|0)==213){_=0;Rq(e,c[((c[(B&p)>>2]|0)+(C*24|0)&p)+4>>2]|0,u+C|0)}C=C+1|0;v=b[(X&o)>>1]|0}while((C|0)<(v<<16>>16|0))}if(!ha){wt(ma,ka,I+1|0);v=b[(X&o)>>1]|0}xt(e,ea,108,0,1,ka,I+-1-(v<<16>>16)|0,k,J);v=(b[(X&o)>>1]|0)+1|0;dt(e,I,v);if((c[(G&p)>>2]|0)>=(v|0))break;c[(G&p)>>2]=v;c[(H&p)>>2]=I}while(0);do if(!ha){if(a[(ga&n)>>0]&16)wh(ma,28,0,W,0)|0;k:do if((P|0)<=-1)if(!((a[(ga&n)>>0]&16|Z)<<24>>24)){wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;I=1;break}else{wh(ma,28,0,V,0)|0;I=0;break}else{do if(M)wh(ma,47,Q,P,V)|0;else{if(da){wh(ma,33,P+O|0,V,0)|0;break}Rq(e,c[((c[(l&p)+4>>2]|0)+(P*20|0)&p)>>2]|0,V);if(!(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)){u=(c[(ma&p)+4>>2]|0)+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)|0;if(!u)break}else u=29120;if((a[(u&n)>>0]|0)!=28)break;if(a[(ga&n)>>0]&16)break;a[(u&n)>>0]=74;c[(u&p)+4>>2]=c[(ja&p)>>2];c[(u&p)+8>>2]=V;c[(u&p)+12>>2]=S;I=1;break k}while(0);if(!(a[(ga&n)>>0]&16)){u=wh(ma,77,V,0,0)|0;wh(ma,74,c[(ja&p)>>2]|0,V,S)|0;t=c[(ma&p)+32>>2]|0;if(t>>>0>u>>>0)c[((c[(ma&p)+4>>2]|0)+(u*20|0)&p)+8>>2]=t;c[((c[(ma&p)+24>>2]|0)&p)+88>>2]=t+-1}else wh(ma,76,V,(c[(ma&p)+32>>2]|0)+2|0,0)|0;wh(ma,38,V,0,0)|0;I=0}while(0);if((S|0)>0)wh(c[(e&p)+8>>2]|0,136,S,V,0)|0;if((b[(X&o)>>1]|0)>0){G=ka+36|0;H=ka+4|0;C=(s|0)==0;B=h+4|0;A=(O|0)==(T|0);s=l+4|0;t=e+23|0;u=ca+20|0;v=ca+4|0;E=ca+24|0;F=0;w=0;do{D=F+T|0;l:do if((F|0)==(b[(G&o)>>1]|0))wh(ma,29,D,0,0)|0;else{m:do if($)if(!(a[((c[(H&p)>>2]|0)+(F*24|0)&n)+23>>0]&2)){z=F-w|0;_=258;break}else{w=w+1|0;break}else{y=c[(B&p)>>2]|0;if((y|0)<=0){z=0;_=258;break}x=c[(h&p)>>2]|0;r=0;while(1){z=r+1|0;if((c[(x+(r<<3)&p)+4>>2]|0)==(F|0)){z=r;_=258;break m}if((z|0)<(y|0))r=z;else{_=258;break}}}while(0);do if((_|0)==258){_=0;if((z|0)<0|C)break;if(U?(z|0)>=(c[(B&p)>>2]|0):0)break;if(M){wh(ma,47,Q,z,D)|0;break l}if(!da){Rq(e,c[((c[(s&p)>>2]|0)+(z*20|0)&p)>>2]|0,D);break l}if(A)break l;wh(ma,34,z+O|0,D,0)|0;break l}while(0);z=c[((c[(H&p)>>2]|0)+(F*24|0)&p)+4>>2]|0;do if(a[(t&n)>>0]|0){c[(ca&p)>>2]=0;c[(ca&p)+4>>2]=0;c[(ca&p)+8>>2]=0;c[(ca&p)+12>>2]=0;c[(ca&p)+16>>2]=0;c[(ca&p)+20>>2]=0;a[(u&n)>>0]=1;c[(ca&p)>>2]=78;c[(v&p)>>2]=79;c[(E&p)>>2]=0;rs(ca,z)|0;if(!(a[(u&n)>>0]|0))break;Gt(e,z,D,0);break l}while(0);Rq(e,z,D)}while(0);F=F+1|0}while((F|0)<(b[(X&o)>>1]|0))}if(!(a[(ga&n)>>0]&16)){yt(e,ka,m,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,0,P>>>31&255^1,k&255,J,ba);zt(e,ka,0,W,0,0);Bt(e,ka,c[(ja&p)>>2]|0,c[(la&p)>>2]|0,W,m,0,I,(c[(ba&p)>>2]|0)==0&1);break}u=c[(ka&p)+60>>2]|0;n:do if(!u)u=0;else while(1){if((c[(u&p)>>2]|0)==(na|0))break n;u=c[(u&p)+24>>2]|0;if(!u){u=0;break}}while(0);qt(e,ka);xh(ma,wh(ma,15,1,(b[(X&o)>>1]|0)+2|0,W)|0,u,-10);t=c[(ma&p)+4>>2]|0;if(t)a[(t+(((c[(ma&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=(k|0)==10?2:k&255;ca=c[(aa&p)>>2]|0;a[(((ca|0)==0?e:ca)&n)+21>>0]=1}while(0);if(c[(K&p)>>2]&128)wh(ma,37,q,1,0)|0;if(ea)xt(e,ea,108,0,2,ka,V+-1-(b[(X&o)>>1]|0)|0,k,J);u=ma+24|0;t=c[(u&p)>>2]|0;r=~J;do if((J|0)<0){s=c[(t&p)+112>>2]|0;if(!s)break;c[(s+(r<<2)&p)>>2]=c[(ma&p)+32>>2]}while(0);s=ma+32|0;c[(t&p)+88>>2]=(c[(s&p)>>2]|0)+-1;do if(M){wh(ma,9,Q,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1;wh(ma,61,Q,0,0)|0}else{if(!da)break;wh(ma,16,0,L,0)|0;s=c[(s&p)>>2]|0;if(s>>>0>N>>>0)c[((c[(ma&p)+4>>2]|0)+(N*20|0)&p)+8>>2]=s;c[((c[(u&p)>>2]|0)&p)+88>>2]=s+-1}while(0);if((a[(ga&n)>>0]&16)!=0|ha)break;r=c[(ja&p)>>2]|0;if((r|0)<(c[(la&p)>>2]|0))wh(ma,61,r,0,0)|0;r=c[(ka&p)+8>>2]|0;if(!r)break;else s=0;while(1){wh(ma,61,(c[(la&p)>>2]|0)+s|0,0,0)|0;r=c[(r&p)+20>>2]|0;if(!r)break;else s=s+1|0}}while(0);if((a[(ia&n)>>0]|0)==0?(c[(e&p)+412>>2]|0)==0:0)st(e);if((((c[(na&p)+24>>2]&128|0)!=0?(a[(ia&n)>>0]|0)==0:0)?(c[(e&p)+412>>2]|0)==0:0)?(wh(ma,35,q,1,0)|0,iq(ma,1),(a[((c[(ma&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg(c[(ma&p)+16>>2]|0,33488,-1,1,0)|0}else m=0}else m=0}else{m=0;l=0}while(0);Do(na,f);Nk(na,l);Mk(na,g,1);Hk(na,h);mg(na,m);i=oa;return}function ur(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;if(!d){d=mh(b,8,0)|0;if(!d)d=0;else{g=d;k=g;a[(k&n)>>0]=0;a[(k&n)+1>>0]=0;a[(k&n)+2>>0]=0;a[(k&n)+3>>0]=0;g=g+4|0;a[(g&n)>>0]=0;a[(g&n)+1>>0]=0;a[(g&n)+2>>0]=0;a[(g&n)+3>>0]=0;g=4}}else g=4;do if((g|0)==4){c[(d&p)>>2]=Ht(b,c[(d&p)>>2]|0,8,d+4|0,f)|0;f=c[(f&p)>>2]|0;if((f|0)<0){Hk(b,d);d=0;break}else{b=Wq(b,e)|0;c[((c[(d&p)>>2]|0)+(f<<3)&p)>>2]=b;break}}while(0);i=h;return d|0}function vr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0;if((c[(d&p)+4>>2]|0)!=0?(f=nr(c[(a&p)>>2]|0,95,d,e)|0,(f|0)!=0):0){c[(f&p)+12>>2]=b;b=f+4|0;c[(b&p)>>2]=c[(b&p)>>2]|4352;b=f}return b|0}function wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;e=c[(a&p)>>2]|0;d=nr(e,153,d,1)|0;if(!d){Nk(e,b);d=0}else{c[(d&p)+20>>2]=b;yr(a,d)}return d|0}function xr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;b=c[(b&p)>>2]|0;if((d|0)!=0&(e|0)!=0?(a[(d&n)>>0]|0)==101:0){a[(e&n)>>0]=f;f=e+16|0;Gk(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}return}function yr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if((c[(a&p)+64>>2]|0)==0?(It(b),d=c[((c[(a&p)>>2]|0)&p)+100>>2]|0,(d|0)<(c[(b&p)+24>>2]|0)):0){c[(e&p)>>2]=d;th(a,27152,e)}i=f;return}function zr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=c[(a&p)>>2]|0;i=d+20|0;e=c[(i&p)>>2]|0;if((e|0)>0){g=d+16|0;h=(b|0)==0;d=e;f=0;do{e=c[(g&p)>>2]|0;do if(c[(e+(f<<4)&p)+4>>2]|0){if(!h?(dd(b,c[(e+(f<<4)&p)>>2]|0)|0)!=0:0)break;Ar(a,f);d=c[(i&p)>>2]|0}while(0);f=f+1|0}while((f|0)<(d|0))}return}function Ar(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0;f=c[(a&p)+408>>2]|0;f=(f|0)==0?a:f;a=f+332|0;d=c[(a&p)>>2]|0;e=1<<b;if((d&e|0)==0?(g=c[(f&p)>>2]|0,c[(a&p)>>2]=d|e,c[(f+(b<<2)&p)+336>>2]=c[(c[((c[(g&p)+16>>2]|0)+(b<<4)&p)+12>>2]&p)>>2],(b|0)==1):0)_k(f)|0;return}function Br(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0,o=0,q=0;q=i;i=i+128|0;if((i|0)>=(j|0))fa();f=q+8|0;o=q;m=q+24|0;c[(o&p)>>2]=0;k=c[(b&p)>>2]|0;if((c[(b&p)+64>>2]|0)==0?(c[(f&p)>>2]=e,l=Wk(k,d,f)|0,(l|0)!=0):0){d=b+18|0;a[(d&n)>>0]=(a[(d&n)>>0]|0)+1<<24>>24;e=b+440|0;f=m+0|0;g=e+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));f=e+0|0;h=f+96|0;do{c[(f&p)>>2]=0;f=f+4|0}while((f|0)<(h|0));Lh(b,l,o)|0;mg(k,c[(o&p)>>2]|0);mg(k,l);f=e+0|0;g=m+0|0;h=f+96|0;do{a[(f&n)>>0]=a[(g&n)>>0]|0;f=f+1|0;g=g+1|0}while((f|0)<(h|0));a[(d&n)>>0]=(a[(d&n)>>0]|0)+-1<<24>>24}i=q;return}function Cr(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0;k=i;i=i+48|0;if((i|0)>=(j|0))fa();g=k;h=k+16|0;b=c[((c[((c[(a&p)>>2]|0)&p)+16>>2]|0)+(b<<4)&p)>>2]|0;f=1;do{c[(g&p)>>2]=f;ad(24,h,33272,g)|0;if(_h(c[(a&p)>>2]|0,h,b)|0){c[(g&p)>>2]=b;c[(g&p)+4>>2]=h;c[(g&p)+8>>2]=d;c[(g&p)+12>>2]=e;Br(a,28840,g)}f=f+1|0}while((f|0)!=5);i=k;return}function Dr(b,d){b=b|0;d=d|0;var e=0,f=0;e=b+19|0;f=a[(e&n)>>0]|0;if(!(f<<24>>24)){f=b+72|0;e=(c[(f&p)>>2]|0)+1|0;c[(f&p)>>2]=e}else{f=f+-1<<24>>24;a[(e&n)>>0]=f;e=c[(b+((f&255)<<2)&p)+24>>2]|0}f=c[(b&p)+8>>2]|0;wh(f,25,(c[(c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(d<<4)&p)+12>>2]&p)>>2]|0)+1|0,e,0)|0;wh(f,52,d,1,e)|0;_r(b,e);return}function Er(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0;l=i;i=i+32|0;if((i|0)>=(j|0))fa();k=l;h=Oq(b)|0;f=b+19|0;g=a[(f&n)>>0]|0;if(!(g<<24>>24)){g=b+72|0;f=(c[(g&p)>>2]|0)+1|0;c[(g&p)>>2]=f}else{g=g+-1<<24>>24;a[(f&n)>>0]=g;f=c[(b+((g&255)<<2)&p)+24>>2]|0}wh(h,117,d,f,e)|0;g=c[(b&p)+408>>2]|0;a[(((g|0)==0?b:g)&n)+21>>0]=1;c[(k&p)>>2]=c[((c[((c[(b&p)>>2]|0)&p)+16>>2]|0)+(e<<4)&p)>>2];c[(k&p)+4>>2]=(e|0)==1?13184:13208;c[(k&p)+8>>2]=d;c[(k&p)+12>>2]=f;c[(k&p)+16>>2]=f;Br(b,33216,k);_r(b,f);i=l;return}function Fr(f,g,h,k,l){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0;X=i;i=i+96|0;if((i|0)>=(j|0))fa();G=X+24|0;w=X+80|0;q=X+64|0;A=X+16|0;t=X+60|0;u=X+56|0;O=X+52|0;N=X+48|0;z=X+44|0;D=X+40|0;E=X+36|0;F=X+32|0;x=X+8|0;s=X;W=c[(f&p)>>2]|0;T=Oq(f)|0;do if((T|0)!=0?(S=T+88|0,b[(S&o)>>1]=b[(S&o)>>1]|16,S=f+72|0,c[(S&p)>>2]=2,Q=er(f,g,h,w)|0,(Q|0)>=0):0){R=W+16|0;C=c[(R&p)>>2]|0;if((Q|0)==1?(_k(f)|0)!=0:0)break;V=Wq(W,c[(w&p)>>2]|0)|0;if(V){if(!l)U=Wq(W,k)|0;else{c[(G&p)>>2]=k;U=uh(W,30104,G)|0}B=h+4|0;if(!(c[(B&p)>>2]|0))L=0;else L=c[(C+(Q<<4)&p)>>2]|0;a:do if(!(Sq(f,19,V,U,L)|0)){c[(q&p)>>2]=0;c[(q&p)+4>>2]=V;c[(q&p)+8>>2]=U;c[(q&p)+12>>2]=0;r=W+452|0;c[(r&p)>>2]=0;g=cg(W,L,14,q)|0;if(!g){k=c[(q&p)>>2]|0;if(!k)break;m=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=m;xh(T,wh(T,97,0,m,0)|0,k,0);iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30112,-1,1,0)|0;wh(T,35,m,1,0)|0;Wc(c[(q&p)>>2]|0);break}else if((g|0)==12){w=0;q=56;b:while(1){while(1){l=(w+q|0)/2|0;g=c[((l*12|0)&p)+30120>>2]|0;k=dd(V,g)|0;if(!k){w=l;break b}if((k|0)<0){g=l;break}if((l|0)<(q|0))w=l+1|0;else break a}g=g+-1|0;if((w|0)>(g|0))break a;else q=g}if((a[((w*12|0)&n)+30125>>0]&1)!=0?(Gn(f)|0)!=0:0)break;do switch(d[((w*12|0)&n)+30124>>0]|0){case 10:{q=1<<Q;F=T+96|0;c[(F&p)>>2]=c[(F&p)>>2]|q;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(G&p)>>2]|0;if((k|0)<=-1)k=(k|0)==-2147483648?2147483647:0-k|0;G=c[(f&p)+408>>2]|0;Ar(f,Q);G=((G|0)==0?f:G)+328|0;c[(G&p)>>2]=c[(G&p)>>2]|q;wh(T,25,k,1,0)|0;wh(T,52,Q,3,1)|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=k;pq(c[(C+(Q<<4)&p)+4>>2]|0,k);break a}iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30848,-1,1,0)|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+2;k=yh(T,9,30808)|0;l=c[(T&p)+32>>2]|0;if(l>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;m=k+1|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=k+6|0;if(l>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=2e3;break a}case 19:{k=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;G=A;c[(G&p)>>2]=-2;c[(G&p)+4>>2]=-1;if(U){ji(U,A)|0;m=A;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;if((m|0)<-1|(m|0)==-1&l>>>0<4294967295){l=A;c[(l&p)>>2]=-1;c[(l&p)+4>>2]=-1;l=-1;m=-1}G=k+160|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;k=c[(k&p)+208>>2]|0;if(k){G=k+16|0;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m}}else{m=k+160|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0}G=A;c[(G&p)>>2]=l;c[(G&p)+4>>2]=m;Jt(f,30952,l,m);break a}case 28:{q=Oq(f)|0;iq(q,4);c[(S&p)>>2]=4;Ar(f,Q);if((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,20632,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31240,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+120|0,31248,-1,1,0)|0;l=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!l)break a;do{m=c[(l&p)+8>>2]|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,1,0)|0,G,0);wh(q,28,0,2,0)|0;G=Ws(b[(m&o)+42>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(m&o)+28>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+8>>2]|0;if(m)do{G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);G=Ws(b[(m&o)+44>>1]|0)|0;wh(q,25,G,3,0)|0;G=Ws(b[(c[(m&p)+8>>2]&o)>>1]|0)|0;wh(q,25,G,4,0)|0;wh(q,35,1,4,0)|0;m=c[(m&p)+20>>2]|0}while((m|0)!=0);l=c[(l&p)>>2]|0}while((l|0)!=0);break}case 15:{if(!U)break a;s=bq(W,U,L)|0;if(!s)break a;w=(c[((w*12|0)&p)+30128>>2]|0)==0;t=s+46|0;G=w?3:6;r=b[((w?t:s+48|0)&o)>>1]|0;u=r&65535;c[(S&p)>>2]=G;q=c[(s&p)+12>>2]|0;iq(T,G);Ar(f,Q);if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31256,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31184,-1,1,0)|0;if(((!w?(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0:0)?(Xg((c[(T&p)+16>>2]|0)+120|0,31264,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+160|0,31272,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+200|0,31280,-1,1,0)|0;if(!(r<<16>>16))break a;m=s+4|0;l=s+28|0;k=s+32|0;s=q+4|0;q=0;do{G=b[((c[(m&p)>>2]|0)+(q<<1)&o)>>1]|0;wh(T,25,q,1,0)|0;r=G<<16>>16;wh(T,25,r,2,0)|0;if(G<<16>>16<0)wh(T,28,0,3,0)|0;else{G=c[((c[(s&p)>>2]|0)+(r*24|0)&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,G,0)}if(!w){wh(T,25,d[((c[(l&p)>>2]|0)+q&n)>>0]|0,4,0)|0;G=c[((c[(k&p)>>2]|0)+(q<<2)&p)>>2]|0;xh(T,wh(T,97,0,5,0)|0,G,0);wh(T,25,(q|0)<(e[(t&o)>>1]|0)&1,6,0)|0}wh(T,35,1,c[(S&p)>>2]|0,0)|0;q=q+1|0}while((q|0)<(u|0));break}case 22:{Ar(f,Q);k=(c[(S&p)>>2]|0)+1|0;c[(S&p)>>2]=k;if((a[(V&n)>>0]&-33)<<24>>24==80)wh(T,153,Q,k,0)|0;else{c[(G&p)>>2]=0;if(U){Dn(U,G)|0;m=c[(G&p)>>2]|0;if((m|0)<=-1)m=(m|0)==-2147483648?2147483647:0-m|0}else m=0;wh(T,154,Q,k,m)|0}wh(T,35,k,1,0)|0;iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 24:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[(W&p)+72>>2]=G;if((xg(l,G,-1,0)|0)!=7)break a;a[(W&n)+65>>0]=1;break a}if(!l){l=0;m=0}else{m=c[((c[(l&p)+4>>2]|0)&p)+32>>2]|0;l=m;m=((m|0)<0)<<31>>31}Jt(f,30864,l,m);break a}case 25:{l=c[(C+(Q<<4)&p)+4>>2]|0;if(U){m=(ii(U,1,0)|0)<<24>>24!=0&1;if((c[(B&p)>>2]|0)==0?(y=W+20|0,(c[(y&p)>>2]|0)>0):0){k=0;do{so(c[((c[(R&p)>>2]|0)+(k<<4)&p)+4>>2]|0,m)|0;k=k+1|0}while((k|0)<(c[(y&p)>>2]|0))}}else m=-1;G=so(l,m)|0;Jt(f,30880,G,((G|0)<0)<<31>>31);break a}case 18:{iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30936,-1,1,0)|0;c:do if(U){k=U;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;m=k-U&1073741823;k=0;while(1){if(!(Fc(U,c[(k<<2&p)+32216>>2]|0,m)|0))break;k=k+1|0;if((k|0)==6){P=91;break c}}if((k|0)!=-1)q=Q;else P=91}else P=91;while(0);if((P|0)==91)if(!(c[(B&p)>>2]|0)){c[(B&p)>>2]=1;k=-1;q=0}else{k=-1;q=Q}m=c[(W&p)+20>>2]|0;if((m|0)>0){l=T+96|0;do{m=m+-1|0;do if(c[((c[(R&p)>>2]|0)+(m<<4)&p)+4>>2]|0){if((m|0)!=(q|0)?(c[(B&p)>>2]|0)!=0:0)break;c[(l&p)>>2]=c[(l&p)>>2]|1<<m;wh(T,12,m,1,k)|0}while(0)}while((m|0)>0)}wh(T,35,1,1,0)|0;break a}case 32:{if(!U){if(!(c[2708]|0))break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31048,-1,1,0)|0;G=c[2708]|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0;break a}if((a[(U&n)>>0]|0)!=0?(F=c[(W&p)>>2]|0,F=(pc[c[(F&p)+32>>2]&31](F,U,1,u)|0)!=0,F|(c[(u&p)>>2]|0)==0):0){th(f,31072,G);break a}if((d[(W&n)+64>>0]|0)<2)Kt(f)|0;Wc(c[2708]|0);if(!(a[(U&n)>>0]|0)){c[2708]=0;break a}else{c[(G&p)>>2]=U;c[2708]=_c(10344,G)|0;break a}}case 14:{if(!((U|0)!=0?(G=(Dn(U,t)|0)==0,m=c[(t&p)>>2]|0,!(G|(m|0)<1)):0)){c[(t&p)>>2]=2147483647;m=2147483647}l=c[(f&p)+408>>2]|0;Ar(f,Q);l=((l|0)==0?f:l)+328|0;c[(l&p)>>2]=c[(l&p)>>2]|1<<Q;wh(T,25,m,1,0)|0;m=wh(T,143,Q,0,0)|0;wh(T,35,1,0,0)|0;wh(T,37,1,-1,0)|0;wh(T,137,1,m,0)|0;l=c[(T&p)+32>>2]|0;if(l>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=l;c[((c[(T&p)+24>>2]|0)&p)+88>>2]=l+-1;break a}case 30:{if(!U)break a;h=_h(W,U,L)|0;if(!h)break a;k=c[(h&p)+8>>2]|0;d:do if(!k)k=0;else while(1){if((a[(k&n)+51>>0]&3)==2)break d;k=c[(k&p)+20>>2]|0;if(!k){k=0;break}}while(0);iq(T,6);c[(S&p)>>2]=6;Ar(f,Q);do if((((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31176,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+80|0,31192,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(T&p)+16>>2]|0)+120|0,31200,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+160|0,31208,-1,1,0)|0;if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(T&p)+16>>2]|0)+200|0,31224,-1,1,0)|0}while(0);hr(f,h)|0;t=h+38|0;m=b[(t&o)>>1]|0;if(m<<16>>16<=0)break a;u=(k|0)==0;l=k+4|0;w=0;r=0;g=c[(h&p)+4>>2]|0;while(1){s=g+23|0;if(!(a[(s&n)>>0]&2)){wh(T,25,w-r|0,1,0)|0;q=c[(g&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,q,0);q=c[(g&p)+12>>2]|0;xh(T,wh(T,97,0,3,0)|0,(q|0)==0?10360:q,0);wh(T,25,(a[(g&n)+20>>0]|0)!=0&1,4,0)|0;q=c[(g&p)+8>>2]|0;if(!q)wh(T,28,0,5,0)|0;else xh(T,wh(T,97,0,5,0)|0,q,0);k=a[(s&n)>>0]&1;e:do if(k<<24>>24==0|u)q=(k^1)&255^1;else{q=b[(t&o)>>1]|0;if(q<<16>>16<1){q=1;break}m=c[(l&p)>>2]|0;s=q<<16>>16;k=1;while(1){q=k+1|0;if((b[(m+(k+-1<<1)&o)>>1]|0)==(w|0)){q=k;break e}if((k|0)<(s|0))k=q;else break}}while(0);wh(T,25,q,6,0)|0;wh(T,35,1,6,0)|0;m=b[(t&o)>>1]|0}else r=r+1|0;w=w+1|0;if((w|0)>=(m<<16>>16|0))break;else g=g+24|0}break}case 2:{if(!U){Jt(f,g,(c[((w*12|0)&p)+30128>>2]&c[(W&p)+24>>2]|0)!=0&1,0);break a}l=c[((w*12|0)&p)+30128>>2]|0;l=(a[(W&n)+63>>0]|0)==0?l&-524289:l;if(!((ii(U,1,0)|0)<<24>>24)){G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]&~l;if((l|0)==16777216){G=W+512|0;c[(G&p)>>2]=0;c[(G&p)+4>>2]=0}}else{G=W+24|0;c[(G&p)>>2]=c[(G&p)>>2]|l}wh(T,144,0,0,0)|0;Lt(W);break a}case 5:{if(!U)break a;G=(ii(U,1,0)|0)<<24>>24!=0;F=G?32e3:19240;Qh(W,19248,2,1,F,40,0,0,0)|0;Qh(W,19248,3,1,F,40,0,0,0)|0;Qh(W,19232,2,1,10352,40,0,0,0)|0;Ot(W,19232,12);Ot(W,19248,G?12:4);break a}case 17:{g=a[(V&n)>>0]|0;A=(c[(h&p)>>2]|0)==0?-1:Q;c[(S&p)>>2]=6;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31464,-1,1,0)|0;c[(z&p)>>2]=100;if(U){Dn(U,z)|0;s=c[(z&p)>>2]|0;if((s|0)<1){c[(z&p)>>2]=100;s=100}}else s=100;wh(T,25,s,1,0)|0;M=W+20|0;w=c[(M&p)>>2]|0;if((w|0)>0){L=(A|0)<0;m=T+32|0;I=T+4|0;H=T+24|0;N=(g&-33)<<24>>24==81;O=0;do{if(L|(O|0)==(A|0)){Ar(f,O);w=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;l=c[(m&p)>>2]|0;if(l>>>0>w>>>0)c[((c[(I&p)>>2]|0)+(w*20|0)&p)+8>>2]=l;c[((c[(H&p)>>2]|0)&p)+88>>2]=l+-1;k=(c[((c[(R&p)>>2]|0)+(O<<4)&p)+12>>2]|0)+16|0;w=c[(k&p)>>2]|0;if(!w)g=0;else{g=0;do{l=c[(w&p)+8>>2]|0;if(!(a[(l&n)+44>>0]&32)){wh(T,25,c[(l&p)+32>>2]|0,g+2|0,0)|0;g=g+1|0}l=c[(l&p)+8>>2]|0;if(l)do{wh(T,25,c[(l&p)+40>>2]|0,g+2|0,0)|0;g=g+1|0;l=c[(l&p)+20>>2]|0}while((l|0)!=0);w=c[(w&p)>>2]|0}while((w|0)!=0)}C=c[(S&p)>>2]|0;w=g+8|0;c[(S&p)>>2]=(C|0)>(w|0)?C:w;wh(T,127,2,g,1)|0;w=c[(I&p)>>2]|0;if(w)a[(w+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=O;g=wh(T,76,2,0,0)|0;c[(G&p)>>2]=c[((c[(R&p)>>2]|0)+(O<<4)&p)>>2];w=uh(W,31480,G)|0;xh(T,wh(T,97,0,3,0)|0,w,-1);wh(T,32,2,4,1)|0;wh(T,94,4,3,2)|0;wh(T,35,2,1,0)|0;w=c[(m&p)>>2]|0;if(w>>>0>g>>>0)c[((c[(I&p)>>2]|0)+(g*20|0)&p)+8>>2]=w;c[((c[(H&p)>>2]|0)&p)+88>>2]=w+-1;w=c[(k&p)>>2]|0;if(!((w|0)==0|N))do{x=c[(w&p)+8>>2]|0;J=x+8|0;g=c[(J&p)>>2]|0;do if(g){f:do if(!(a[(x&n)+44>>0]&32))g=0;else while(1){if((a[(g&n)+51>>0]&3)==2)break f;g=c[(g&p)+20>>2]|0;if(!g){g=0;break}}while(0);l=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;at(f);pt(f,x,54,1,0,D,E)|0;wh(T,25,0,7,0)|0;k=c[(J&p)>>2]|0;if(!k)l=8;else{l=0;while(1){wh(T,25,0,l+8|0,0)|0;k=c[(k&p)+20>>2]|0;if(!k)break;else l=l+1|0}l=l+9|0}K=c[(S&p)>>2]|0;c[(S&p)>>2]=(K|0)>(l|0)?K:l;wh(T,108,c[(D&p)>>2]|0,0,0)|0;K=wh(T,37,7,1,0)|0;u=x+38|0;l=b[(u&o)>>1]|0;if(l<<16>>16>0){h=x+36|0;v=x+4|0;t=0;do{do if((t|0)!=(b[(h&o)>>1]|0)){if(!(a[((c[(v&p)>>2]|0)+(t*24|0)&n)+20>>0]|0))break;nt(T,x,c[(D&p)>>2]|0,t,3);l=c[(I&p)>>2]|0;if(l)a[(l+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-128;l=wh(T,77,3,0,0)|0;wh(T,37,1,-1,0)|0;q=c[((c[(v&p)>>2]|0)+(t*24|0)&p)>>2]|0;c[(G&p)>>2]=c[(x&p)>>2];c[(G&p)+4>>2]=q;q=uh(W,31504,G)|0;xh(T,wh(T,97,0,3,0)|0,q,-1);wh(T,35,3,1,0)|0;q=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=r;l=r+-1|0;k=(c[(H&p)>>2]|0)+88|0;c[(k&p)>>2]=l;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[(k&p)>>2]=l;l=b[(u&o)>>1]|0}while(0);t=t+1|0}while((t|0)<(l<<16>>16|0))}l=c[(J&p)>>2]|0;if(l){z=x+4|0;y=0;r=0;k=-1;while(1){q=xs(T)|0;if((g|0)!=(l|0)){k=Pt(f,l,c[(D&p)>>2]|0,0,0,F,r,k)|0;wh(T,37,y+8|0,1,0)|0;x=e[(l&o)+48>>1]|0;q=wh(T,69,(c[(E&p)>>2]|0)+y|0,q,k)|0;xh(T,q,x,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31528,-2);wh(T,94,7,3,3)|0;xh(T,wh(T,97,0,4,0)|0,31536,-2);wh(T,94,4,3,3)|0;x=c[(l&p)>>2]|0;v=wh(T,97,0,4,0)|0;xh(T,v,x,0);wh(T,94,4,3,3)|0;wh(T,35,3,1,0)|0;x=wh(T,137,1,0,0)|0;wh(T,24,0,0,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;q=c[(H&p)>>2]|0;c[(q&p)+88>>2]=r+-1;if(a[(l&n)+50>>0]|0){h=xs(T)|0;u=l+46|0;q=b[(u&o)>>1]|0;if(q<<16>>16){t=l+4|0;r=0;do{if(!(a[((c[(z&p)>>2]|0)+((b[((c[(t&p)>>2]|0)+(r<<1)&o)>>1]|0)*24|0)&n)+20>>0]|0)){wh(T,76,r+k|0,h,0)|0;q=b[(u&o)>>1]|0}r=r+1|0}while((r|0)<(q&65535|0))}q=wh(T,9,(c[(E&p)>>2]|0)+y|0,0,0)|0;wh(T,16,0,h,0)|0;r=c[(m&p)>>2]|0;if(r>>>0>q>>>0)c[((c[(I&p)>>2]|0)+(q*20|0)&p)+8>>2]=r;c[((c[(H&p)>>2]|0)&p)+88>>2]=r+-1;q=e[(u&o)>>1]|0;xh(T,wh(T,114,(c[(E&p)>>2]|0)+y|0,h,k)|0,q,-14);wh(T,37,1,-1,0)|0;xh(T,wh(T,97,0,3,0)|0,31560,-2);wh(T,16,0,v,0)|0;q=c[(H&p)>>2]|0;t=~h;do if((h|0)<0){r=c[(q&p)+112>>2]|0;if(!r)break;c[(r+(t<<2)&p)>>2]=c[(m&p)>>2]}while(0);r=c[(m&p)>>2]|0;c[(q&p)+88>>2]=r+-1}if(r>>>0>x>>>0)c[((c[(I&p)>>2]|0)+(x*20|0)&p)+8>>2]=r;c[(q&p)+88>>2]=r+-1;Qt(f,c[(F&p)>>2]|0);r=l}l=c[(l&p)+20>>2]|0;if(!l)break;else y=y+1|0}}wh(T,9,c[(D&p)>>2]|0,K,0)|0;l=K+-1|0;k=c[(m&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(I&p)>>2]|0)+(l*20|0)&p)+8>>2]=k;c[((c[(H&p)>>2]|0)&p)+88>>2]=k+-1;xh(T,wh(T,97,0,2,0)|0,31592,-2);l=c[(J&p)>>2]|0;if(!l)break;else q=0;while(1){if((g|0)!=(l|0)){k=c[(m&p)>>2]|0;wh(T,137,1,k+2|0,0)|0;wh(T,24,0,0,0)|0;wh(T,50,(c[(E&p)>>2]|0)+q|0,3,0)|0;wh(T,79,q+8|0,k+8|0,3)|0;k=c[(I&p)>>2]|0;if(k)a[(k+(((c[(m&p)>>2]|0)+-1|0)*20|0)&n)+3>>0]=-112;wh(T,37,1,-1,0)|0;C=c[(l&p)>>2]|0;xh(T,wh(T,97,0,3,0)|0,C,0);wh(T,94,3,2,7)|0;wh(T,35,7,1,0)|0}l=c[(l&p)+20>>2]|0;if(!l)break;else q=q+1|0}}while(0);w=c[(w&p)>>2]|0}while((w|0)!=0);w=c[(M&p)>>2]|0}O=O+1|0}while((O|0)<(w|0))}else m=T+32|0;l=yh(T,3,31448)|0;m=c[(m&p)>>2]|0;if(m>>>0>l>>>0){c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+12>>2]=0-s;c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+8>>2]=m}c[((c[(T&p)+24>>2]|0)&p)+88>>2]=m+-1;xh(T,l+1|0,31624,-2);break a}case 21:{do if(U){if(dd(U,30904)|0)if(!(dd(U,30896)|0))k=0;else{P=66;break}else k=1;if(!(c[(B&p)>>2]|0)){s=c[(W&p)+20>>2]|0;if((s|0)>2){q=c[(R&p)>>2]|0;m=k&255;r=2;do{l=c[(c[((c[(q+(r<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if(!(a[(l&n)+12>>0]|0)){G=c[(l&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(l&n)+4>>0]=m}while(0);r=r+1|0}while((r|0)<(s|0))}else m=k&255;a[(W&n)+66>>0]=m;P=74}else P=74}else P=66;while(0);if((P|0)==66)if(!(c[(B&p)>>2]|0))l=W+66|0;else{k=-1;P=74}if((P|0)==74){m=c[(c[((c[(C+(Q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;do if((k|0)>-1?(a[(m&n)+12>>0]|0)==0:0){G=c[(m&p)+208>>2]|0;if((G|0)!=0?(a[(G&n)+43>>0]|0)==2:0)break;a[(m&n)+4>>0]=k}while(0);l=m+4|0}l=(a[(l&n)>>0]|0)==1?30904:30896;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,30920,-1,1,0)|0;xh(T,wh(T,97,0,1,0)|0,l,0);wh(T,35,1,1,0)|0;break a}case 16:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;q=Oq(f)|0;iq(q,5);c[(S&p)>>2]=5;Ar(f,Q);if(((((a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(q&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+80|0,31296,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(q&p)+16>>2]|0)+120|0,31304,-1,1,0)|0,(a[((c[(q&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(q&p)+16>>2]|0)+160|0,31312,-1,1,0)|0;m=c[(k&p)+8>>2]|0;if(!m)break a;else l=0;while(1){wh(q,25,l,1,0)|0;G=c[(m&p)>>2]|0;xh(q,wh(q,97,0,2,0)|0,G,0);wh(q,25,(a[(m&n)+50>>0]|0)!=0&1,3,0)|0;G=c[((a[(m&n)+51>>0]&3)<<2&p)+31336>>2]|0;xh(q,wh(q,97,0,4,0)|0,G,0);wh(q,25,(c[(m&p)+36>>2]|0)!=0&1,5,0)|0;wh(q,35,1,5,0)|0;m=c[(m&p)+20>>2]|0;if(!m)break;else l=l+1|0}break}case 1:{k=c[(C+(Q<<4)&p)+4>>2]|0;if(!U){m=c[(k&p)+4>>2]|0;c[(m&p)+4>>2]=c[(k&p)>>2];if(!(a[(m&n)+17>>0]|0)){m=0;l=0}else{l=(a[(m&n)+18>>0]|0)==0;m=l?1:2;l=l?0:0}Jt(f,30976,m,l);break a}if(dd(U,32192)|0)if(dd(U,31880)|0)if(!(dd(U,32200)|0))m=2;else{c[(G&p)>>2]=0;Dn(U,G)|0;m=c[(G&p)>>2]|0;m=m>>>0<3?m&255:0}else m=1;else m=0;a[(W&n)+67>>0]=m;r=m+-1|0;if(!((vn(k,m)|0)==0&r>>>0<2))break a;l=yh(T,6,30992)|0;q=c[(T&p)+32>>2]|0;if(q>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=Q;k=l+1|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+4>>2]=Q;k=l+2|0;m=l+4|0;if(q>>>0>k>>>0)c[((c[(T&p)+4>>2]|0)+(k*20|0)&p)+8>>2]=m;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=r;m=l+5|0;if(q>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;G=T+96|0;c[(G&p)>>2]=c[(G&p)>>2]|1<<Q;break a}case 9:{iq(T,3);c[(S&p)>>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31352,-1,1,0)|0;l=W+20|0;m=c[(l&p)>>2]|0;if((m|0)>0)q=0;else break a;do{if(c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0){wh(T,25,q,1,0)|0;k=c[((c[(R&p)>>2]|0)+(q<<4)&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,k,0);k=c[(c[((c[((c[(R&p)>>2]|0)+(q<<4)&p)+4>>2]|0)&p)+4>>2]&p)>>2]|0;if(!(a[(k&n)+15>>0]|0))k=c[(k&p)+168>>2]|0;else k=10360;xh(T,wh(T,97,0,3,0)|0,k,0);wh(T,35,1,3,0)|0;m=c[(l&p)>>2]|0}q=q+1|0}while((q|0)<(m|0));break}case 6:{iq(T,2);c[(S&p)>>2]=2;if((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31288,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+40|0,31184,-1,1,0)|0;m=c[(W&p)+436>>2]|0;if(!m)break a;else l=0;while(1){G=c[(m&p)+8>>2]|0;wh(T,25,l,1,0)|0;G=c[(G&p)>>2]|0;xh(T,wh(T,97,0,2,0)|0,G,0);wh(T,35,1,2,0)|0;m=c[(m&p)>>2]|0;if(!m)break;else l=l+1|0}break}case 13:{if(!U)break a;k=_h(W,U,L)|0;if(!k)break a;g=Oq(f)|0;q=c[(k&p)+16>>2]|0;if(!q)break a;iq(g,8);c[(S&p)>>2]=8;Ar(f,Q);do if((((a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(g&p)+16>>2]|0,31360,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+40|0,31288,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(g&p)+16>>2]|0)+80|0,31232,-1,1,0)|0,(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)==0):0){Xg((c[(g&p)+16>>2]|0)+120|0,31368,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+160|0,31376,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+200|0,31384,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+240|0,31400,-1,1,0)|0;if(a[((c[(g&p)>>2]|0)&n)+65>>0]|0)break;Xg((c[(g&p)+16>>2]|0)+280|0,31416,-1,1,0)|0}while(0);v=k+4|0;w=0;while(1){k=q+20|0;if((c[(k&p)>>2]|0)>0){m=q+25|0;l=q+26|0;t=q+8|0;h=0;do{u=c[(q+(h<<3)&p)+40>>2]|0;s=d[(m&n)>>0]|0;if((s|0)==8)r=32072;else if((s|0)==9)r=32088;else if((s|0)==6)r=32096;else if((s|0)==7)r=32056;else r=32112;s=d[(l&n)>>0]|0;if((s|0)==8)s=32072;else if((s|0)==9)s=32088;else if((s|0)==6)s=32096;else if((s|0)==7)s=32056;else s=32112;wh(g,25,w,1,0)|0;wh(g,25,h,2,0)|0;G=c[(t&p)>>2]|0;xh(g,wh(g,97,0,3,0)|0,G,0);G=c[((c[(v&p)>>2]|0)+((c[(q+(h<<3)&p)+36>>2]|0)*24|0)&p)>>2]|0;xh(g,wh(g,97,0,4,0)|0,G,0);xh(g,wh(g,(u|0)!=0?97:28,0,5,0)|0,u,0);xh(g,wh(g,97,0,6,0)|0,s,0);xh(g,wh(g,97,0,7,0)|0,r,0);xh(g,wh(g,97,0,8,0)|0,31424,0);wh(g,35,1,8,0)|0;h=h+1|0}while((h|0)<(c[(k&p)>>2]|0))}q=c[(q&p)+4>>2]|0;if(!q)break;else w=w+1|0}break}case 11:{if(!U){if(Gn(f)|0)break a;iq(T,1);if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0))Xg(c[(T&p)+16>>2]|0,31784,-1,1,0)|0;wh(T,97,0,1,0)|0;xh(T,-1,c[(d[((c[(f&p)>>2]|0)&n)+62>>0]<<3&p)+31632>>2]|0,-2);wh(T,35,1,1,0)|0;break a}k=c[((c[(R&p)>>2]|0)&p)+12>>2]|0;if((b[(k&o)+78>>1]&5)==1)break a;else{m=31632;l=31704}do{if(!(dd(U,l)|0)){v=m;P=415;break}m=m+8|0;l=c[(m&p)>>2]|0}while((l|0)!=0);if((P|0)==415?(F=a[(v&n)+4>>0]|0,F=F<<24>>24==0?2:F,a[(W&n)+62>>0]=F,a[(k&n)+77>>0]=F,(c[(v&p)>>2]|0)!=0):0)break a;c[(G&p)>>2]=U;th(f,31800,G);break a}case 0:{s=c[((w*12|0)&p)+30128>>2]|0;F=T+96|0;c[(F&p)>>2]=c[(F&p)>>2]|1<<Q;if((U|0)!=0?!((w|0)==11|(w|0)==20):0){m=yh(T,3,31832)|0;k=T+32|0;if((c[(k&p)>>2]|0)>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;l=m+1|0;c[(G&p)>>2]=0;Dn(U,G)|0;k=c[(k&p)>>2]|0;if(k>>>0>l>>>0)c[((c[(T&p)+4>>2]|0)+(l*20|0)&p)+4>>2]=c[(G&p)>>2];m=m+2|0;if(k>>>0<=m>>>0)break a;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+8>>2]=s;break a}m=yh(T,3,31848)|0;k=c[(T&p)+32>>2]|0;if(k>>>0>m>>>0)c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;m=m+1|0;if(k>>>0>m>>>0){c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+4>>2]=Q;c[((c[(T&p)+4>>2]|0)+(m*20|0)&p)+12>>2]=s}iq(T,1);if(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)break a;Xg(c[(T&p)+16>>2]|0,V,-1,1,-1)|0;break a}case 7:{iq(T,1);c[(S&p)>>2]=1;if(!(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)){Xg(c[(T&p)+16>>2]|0,31864,-1,1,0)|0;l=0}else l=0;do{G=c[(l<<2&p)+8648>>2]|0;l=l+1|0;xh(T,wh(T,97,0,1,0)|0,G,0);wh(T,35,1,1,0)|0}while((l|0)!=4);break}case 35:{m=(c[(h&p)>>2]|0)!=0?Q:10;if(U)if(dd(U,31880)|0)if(!(dd(U,31888)|0))l=2;else{l=(dd(U,31896)|0)==0;l=l?3:0}else l=1;else l=0;iq(T,3);c[(S&p)>>2]=3;if(((a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(T&p)+16>>2]|0,31912,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(T&p)+16>>2]|0)+40|0,31920,-1,1,0)|0,(a[((c[(T&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(T&p)+16>>2]|0)+80|0,31928,-1,1,0)|0;wh(T,11,m,l,1)|0;wh(T,35,1,3,0)|0;break a}case 26:{of(W)|0;break a}case 34:{if(!U)l=c[(W&p)+216>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;if((l|0)>0)m=21;else{l=0;m=0}c[(W&p)+216>>2]=m;c[(W&p)+220>>2]=l;l=m}if((l|0)==21){l=c[(W&p)+220>>2]|0;m=l;l=((l|0)<0)<<31>>31}else{m=0;l=0}Jt(f,31944,m,l);break a}case 27:{if((U|0)!=0?(ji(U,x)|0)==0:0){G=x;Pc(c[(G&p)>>2]|0,c[(G&p)+4>>2]|0)|0}F=(Lc()|0)==0;G=9032;Jt(f,31976,F?c[(G&p)>>2]|0:-1,F?c[(G&p)+4>>2]|0:-1);break a}case 33:{if((U|0)!=0?(E=(ji(U,s)|0)==0,G=s,F=c[(G&p)+4>>2]|0,E&((F|0)>-1|(F|0)==-1&(c[(G&p)>>2]|0)>>>0>4294967295)):0)c[(W&p)+132>>2]=0;G=c[(W&p)+132>>2]|0;Jt(f,31992,G,((G|0)<0)<<31>>31);break a}case 12:{g=c[(S&p)>>2]|0;H=g+1|0;I=g+5|0;J=g+6|0;c[(S&p)>>2]=J;K=Oq(f)|0;iq(K,4);if((((a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0?(Xg(c[(K&p)+16>>2]|0,31232,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+40|0,20456,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)?(Xg((c[(K&p)+16>>2]|0)+80|0,31432,-1,1,0)|0,(a[((c[(K&p)>>2]|0)&n)+65>>0]|0)==0):0)Xg((c[(K&p)+16>>2]|0)+120|0,31440,-1,1,0)|0;Ar(f,Q);w=c[((c[((c[(R&p)>>2]|0)+(Q<<4)&p)+12>>2]|0)&p)+16>>2]|0;if(!w)break a;u=(U|0)==0;h=f+68|0;v=K+32|0;D=K+4|0;E=K+24|0;F=g+2|0;G=g+3|0;A=g+4|0;t=f+8|0;while(1){if(u){B=c[(w&p)>>2]|0;C=c[(w&p)+8>>2]|0}else{B=0;C=sh(f,0,U,L)|0}if((C|0)!=0?(M=C+16|0,(c[(M&p)>>2]|0)!=0):0){gs(f,Q,c[(C&p)+32>>2]|0,0,c[(C&p)>>2]|0);g=(b[(C&o)+38>>1]|0)+J|0;if((g|0)>(c[(S&p)>>2]|0))c[(S&p)>>2]=g;Qq(f,0,Q,C,54);w=c[(C&p)>>2]|0;xh(K,wh(K,97,0,H,0)|0,w,0);w=c[(M&p)>>2]|0;if(!w)g=1;else{g=1;do{l=_h(W,c[(w&p)+8>>2]|0,L)|0;do if(l){c[(O&p)>>2]=0;gs(f,Q,c[(l&p)+32>>2]|0,0,c[(l&p)>>2]|0);if(Mt(f,l,w,O,0)|0)break a;m=c[(O&p)>>2]|0;if(!m){Qq(f,g,Q,l,54);break}else{wh(K,54,g,c[(m&p)+40>>2]|0,Q)|0;z=c[(t&p)>>2]|0;xh(z,-1,hs(f,m)|0,-6);break}}while(0);g=g+1|0;w=c[(w&p)+4>>2]|0}while((w|0)!=0)}if((c[(h&p)>>2]|0)<(g|0))c[(h&p)>>2]=g;s=wh(K,108,0,0,0)|0;g=c[(M&p)>>2]|0;if(g){z=C+36|0;y=1;while(1){x=g+8|0;w=_h(W,c[(x&p)>>2]|0,L)|0;c[(O&p)>>2]=0;c[(N&p)>>2]=0;r=(w|0)!=0;do if(r){Mt(f,w,g,O,N)|0;l=c[(O&p)>>2]|0;m=xs(K)|0;if(!(r&(l|0)==0)){w=m;P=306;break}w=c[(g&p)+36>>2]|0;if((w|0)==(b[(z&o)>>1]|0))wh(K,103,0,J,0)|0;else{wh(K,47,0,w,J)|0;Nt(K,C,w,J);wh(K,76,J,m,0)|0;wh(K,38,J,(c[(v&p)>>2]|0)+3|0,0)|0}wh(K,70,y,0,J)|0;wh(K,16,0,m,0)|0;w=c[(v&p)>>2]|0;if(w>>>0>1)c[((c[(D&p)>>2]|0)+((w+-2|0)*20|0)&p)+8>>2]=w;c[((c[(E&p)>>2]|0)&p)+88>>2]=w+-1;w=m}else{w=xs(K)|0;l=0;P=306}while(0);do if((P|0)==306){P=0;q=g+20|0;m=c[(q&p)>>2]|0;if((m|0)>0){k=0;do{m=c[(N&p)>>2]|0;if(!m)m=g+(k<<3)+36|0;else m=m+(k<<2)|0;R=k+J|0;nt(K,C,0,c[(m&p)>>2]|0,R);wh(K,76,R,w,0)|0;k=k+1|0;m=c[(q&p)>>2]|0}while((k|0)<(m|0))}if(!r)break;k=ot(K,l)|0;l=c[(q&p)>>2]|0;xh(K,wh(K,49,J,m,I)|0,k,l);xh(K,wh(K,69,y,w,I)|0,0,-14)}while(0);wh(K,103,0,F,0)|0;l=c[(x&p)>>2]|0;xh(K,wh(K,97,0,G,0)|0,l,0);wh(K,25,y+-1|0,A,0)|0;wh(K,35,H,4,0)|0;l=c[(E&p)>>2]|0;m=~w;do if((w|0)<0){w=c[(l&p)+112>>2]|0;if(!w)break;c[(w+(m<<2)&p)>>2]=c[(v&p)>>2]}while(0);c[(l&p)+88>>2]=(c[(v&p)>>2]|0)+-1;mg(W,c[(N&p)>>2]|0);g=c[(g&p)+4>>2]|0;if(!g)break;else y=y+1|0}}wh(K,9,0,s+1|0,0)|0;g=c[(v&p)>>2]|0;if(g>>>0>s>>>0)c[((c[(D&p)>>2]|0)+(s*20|0)&p)+8>>2]=g;c[((c[(E&p)>>2]|0)&p)+88>>2]=g+-1}if(!B)break;else w=B}break}case 23:{Jt(f,31016,0,0);break a}case 31:{if(!U){Jt(f,31032,d[(W&n)+64>>0]|0,0);break a}l=a[(U&n)>>0]|0;if((l+-48&255)>=3)if(!(dd(U,31352)|0))l=1;else{l=(dd(U,15168)|0)==0;l=l?2:0}else l=(l<<24>>24)+-48|0;m=(c[(f&p)>>2]|0)+64|0;if((d[(m&n)>>0]|0)==(l|0))break a;if(Kt(f)|0)break a;a[(m&n)>>0]=l;break a}case 29:{if(!U){G=(d[(C+(Q<<4)&n)+8>>0]|0)+-1|0;Jt(f,31104,G,((G|0)<0)<<31>>31);break a}if(!(a[(W&n)+63>>0]|0)){th(f,31120,G);break a}else{a[(C+(Q<<4)&n)+8>>0]=((ii(U,0,1)|0)&255)+1;Lt(W);break a}}case 4:if(!U){G=c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]|0;Jt(f,30848,G,((G|0)<0)<<31>>31);break a}else{c[(G&p)>>2]=0;Dn(U,G)|0;G=c[(G&p)>>2]|0;c[((c[(C+(Q<<4)&p)+12>>2]|0)&p)+80>>2]=G;pq(c[(C+(Q<<4)&p)+4>>2]|0,G);break a}default:{if(!U)l=c[(W&p)+492>>2]|0;else{c[(G&p)>>2]=0;Dn(U,G)|0;l=c[(G&p)>>2]|0;G=(l|0)>0;l=G?l:0;c[(W&p)+444>>2]=G?74:0;c[(W&p)+448>>2]=G?W:0;c[(r&p)>>2]=0;c[(W&p)+492>>2]=l}Jt(f,31968,l,((l|0)<0)<<31>>31);break a}}while(0)}else{k=c[(q&p)>>2]|0;if(k){c[(G&p)>>2]=k;th(f,10344,G);Wc(c[(q&p)>>2]|0)}G=f+64|0;c[(G&p)>>2]=(c[(G&p)>>2]|0)+1;c[(f&p)+12>>2]=g;break}}while(0);mg(W,V);mg(W,U)}}while(0);i=X;return}function Gr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;a:do if(!d)d=0;else{f=d;while(1){if((a[(f&n)>>0]|0)==-121){d=c[(b&p)>>2]|0;if(!(a[((c[(d&p)>>2]|0)&n)+145>>0]|0))break;a[(f&n)>>0]=101}d=c[(f&p)+4>>2]|0;if(d&16384){d=0;break a}e=f+20|0;if(!(d&2048)){if(Hr(b,c[(e&p)>>2]|0)|0){d=1;break a}}else if(fr(b,c[(e&p)>>2]|0)|0){d=1;break a}if(Gr(b,c[(f&p)+16>>2]|0)|0){d=1;break a}f=c[(f&p)+12>>2]|0;if(!f){d=0;break a}}c[(g&p)>>2]=c[(b&p)+16>>2];th(d,29984,g);d=1}while(0);i=h;return d|0}function Hr(a,b){a=a|0;b=b|0;var d=0,e=0;a:do if((b|0)!=0?(c[(b&p)>>2]|0)>0:0){d=0;e=c[(b&p)+4>>2]|0;while(1){if(Gr(a,c[(e&p)>>2]|0)|0){d=1;break a}d=d+1|0;if((d|0)>=(c[(b&p)>>2]|0)){d=0;break}else e=e+20|0}}else d=0;while(0);return d|0}function Ir(a,b,d){a=a|0;b=b|0;d=d|0;var e=0;xh(a,wh(a,122,b,0,0)|0,d,-1);d=c[((c[(a&p)>>2]|0)&p)+20>>2]|0;if((d|0)>0){e=a+96|0;b=c[(e&p)>>2]|0;a=0;do{b=b|1<<a;a=a+1|0}while((a|0)<(d|0));c[(e&p)>>2]=b}return}function Jr(a,d){a=a|0;d=d|0;var e=0,f=0;e=d+8|0;f=Ur(a,0,e)|0;d=d+24|0;kg(c[(a&p)>>2]|0,c[(d&p)>>2]|0);c[(d&p)>>2]=f;if(f){d=f+40|0;b[(d&o)>>1]=(b[(d&o)>>1]|0)+1<<16>>16}e=(Rt(a,e)|0)==0;return (e?f:0)|0}function Kr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0;n=i;i=i+16|0;if((i|0)>=(j|0))fa();m=n;a:do if((b|0)!=0?(f=c[(a&p)+12>>2]|0,(c[(b&p)>>2]|0)>0):0){g=a+8|0;h=a+4|0;k=0;l=b+8|0;while(1){if(!(c[(g&p)>>2]|0)){e=l+4|0;d=c[(e&p)>>2]|0;if((d|0)!=0?(dd(d,f)|0)!=0:0)break;mg(c[(c[(a&p)>>2]&p)>>2]|0,d);c[(e&p)>>2]=0;c[(l&p)>>2]=c[(h&p)>>2]}if(fr(a,c[(l&p)+20>>2]|0)|0){d=1;break a}if(Gr(a,c[(l&p)+44>>2]|0)|0){d=1;break a}k=k+1|0;if((k|0)>=(c[(b&p)>>2]|0)){d=0;break a}else l=l+72|0}b=c[(a&p)>>2]|0;l=c[(a&p)+20>>2]|0;c[(m&p)>>2]=c[(a&p)+16>>2];c[(m&p)+4>>2]=l;c[(m&p)+8>>2]=d;th(b,29936,m);d=1}else d=0;while(0);i=n;return d|0}function Lr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;g=c[(b&p)>>2]|0;if((((a[(g&n)+145>>0]|0)==0?(a[(b&n)+18>>0]|0)==0:0)?(c[(g&p)+24>>2]&2048|0)==0:0)?(Fc(d,25568,7)|0)==0:0){c[(e&p)>>2]=d;th(b,28440,e);b=1}else b=0;i=f;return b|0}function Mr(b,d,e,f){b=b|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;do if(d){t=e&1;v=(f|0)!=0;if(v){g=c[(f&p)>>2]|0;r=32768}else{g=St(d,e)|0;g=mh(b,g,((g|0)<0)<<31>>31)|0;r=0}c[(w&p)>>2]=g;if(g){l=(t|0)==0;if(!l)if(!(c[(d&p)+12>>2]|0))q=(c[(d&p)+20>>2]|0)==0?16396:8220;else q=8220;else q=48;s=q&60;u=d+4|0;m=c[(u&p)>>2]|0;if((m&1024|0)==0?(h=c[(d&p)+8>>2]|0,(h|0)!=0):0){k=h;while(1)if(!(a[(k&n)>>0]|0))break;else k=k+1|0;o=(k-h&1073741823)+1|0}else o=0;if(l){if(!(m&16384))k=(m&8192|0)==0?48:28;else k=12;kw(g|0,d|0,k|0)|0;fw(g+k|0,0,48-k|0)|0}else kw(g|0,d|0,s|0)|0;m=g+4|0;h=q&24576|r|c[(m&p)>>2]&-122881;c[(m&p)>>2]=h;if(o){h=g+s|0;c[(g&p)+8>>2]=h;kw(h|0,c[(d&p)+8>>2]|0,o|0)|0;h=c[(m&p)>>2]|0}k=c[(u&p)>>2]|0;do if(!((h|k)&16384)){h=d+20|0;if(!(k&2048)){c[(g&p)+20>>2]=Pr(b,c[(h&p)>>2]|0,t)|0;break}else{c[(g&p)+20>>2]=gr(b,c[(h&p)>>2]|0,t)|0;break}}while(0);h=c[(m&p)>>2]|0;if(!(h&24576)){if(c[(u&p)>>2]&16384)break;c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,0,0)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,0,0)|0;break}t=Tt(d,e)|0;c[(w&p)>>2]=(c[(w&p)>>2]|0)+t;if(h&8192){c[(g&p)+12>>2]=Mr(b,c[(d&p)+12>>2]|0,1,w)|0;c[(g&p)+16>>2]=Mr(b,c[(d&p)+16>>2]|0,1,w)|0}if(v)c[(f&p)>>2]=c[(w&p)>>2]}}else g=0;while(0);i=x;return g|0}function Nr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;a:do if((b|0)!=0?(d=mh(a,8,0)|0,(d|0)!=0):0){g=b+4|0;c[(d&p)+4>>2]=c[(g&p)>>2];e=mh(a,c[(g&p)>>2]<<3,0)|0;c[(d&p)>>2]=e;if(!e){mg(a,d);d=0;break}if((c[(g&p)>>2]|0)>0){f=0;while(1){h=c[(b&p)>>2]|0;c[(e+(f<<3)&p)>>2]=kh(a,c[(h+(f<<3)&p)>>2]|0)|0;c[(e+(f<<3)&p)+4>>2]=c[(h+(f<<3)&p)+4>>2];f=f+1|0;if((f|0)>=(c[(g&p)>>2]|0))break a;e=c[(d&p)>>2]|0}}}else d=0;while(0);return d|0}function Or(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;f=e+4|0;g=(c[(f&p)>>2]|0)+40|0;b=mh(b,g,0)|0;if(b){fw(b|0,0,g|0)|0;g=b+40|0;kw(g|0,c[(e&p)>>2]|0,c[(f&p)>>2]|0)|0;c[(b&p)+12>>2]=g;c[(b&p)+16>>2]=c[(f&p)>>2];a[(b&n)>>0]=d}return b|0}function Pr(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;do if((d|0)!=0?(f=mh(b,8,0)|0,(f|0)!=0):0){g=c[(d&p)>>2]|0;c[(f&p)>>2]=g;if(!(e&1)){h=c[(d&p)>>2]|0;g=1;while(1)if((g|0)<(h|0))g=g<<1;else break}g=mh(b,g*20|0,0)|0;c[(f&p)+4>>2]=g;if(!g){mg(b,f);f=0;break}if((c[(d&p)>>2]|0)>0){i=0;h=c[(d&p)+4>>2]|0;while(1){c[(g&p)>>2]=Mr(b,c[(h&p)>>2]|0,e,0)|0;c[(g&p)+4>>2]=kh(b,c[(h&p)+4>>2]|0)|0;c[(g&p)+8>>2]=kh(b,c[(h&p)+8>>2]|0)|0;a[(g&n)+12>>0]=a[(h&n)+12>>0]|0;j=g+13|0;k=a[(j&n)>>0]|0;a[(j&n)>>0]=k&-2;a[(j&n)>>0]=a[(h&n)+13>>0]&2|k&-4;c[(g&p)+16>>2]=c[(h&p)+16>>2];i=i+1|0;if((i|0)>=(c[(d&p)>>2]|0))break;else{g=g+20|0;h=h+20|0}}}}else f=0;while(0);return f|0}function Qr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0;o=i;i=i+16|0;if((i|0)>=(j|0))fa();k=o;l=c[(a&p)>>2]|0;f=c[(b&p)+20>>2]|0;a:do if(f){e=c[(l&p)+20>>2]|0;if((e|0)>0){d=c[(l&p)+16>>2]|0;h=0;while(1){g=h+1|0;if((c[(d+(h<<4)&p)+12>>2]|0)==(f|0)){g=h;break a}if((g|0)<(e|0))h=g;else break}}else g=0}else g=-1e6;while(0);d=bn((c[(b&p)+24>>2]|0)+8|0,c[(b&p)+4>>2]|0,k)|0;if(!d)f=0;else f=c[(d&p)+8>>2]|0;d=c[((c[(l&p)+16>>2]|0)+(g<<4)&p)>>2]|0;e=(g|0)==1;if((((Sq(a,e?14:16,c[(b&p)>>2]|0,c[(f&p)>>2]|0,d)|0)==0?(Sq(a,9,e?13184:13208,0,d)|0)==0:0)?(m=Oq(a)|0,(m|0)!=0):0)?(n=c[(a&p)+408>>2]|0,Ar(a,g),n=((n|0)==0?a:n)+328|0,c[(n&p)>>2]=c[(n&p)>>2]|1<<g,js(a,g),n=yh(m,9,29624)|0,xh(m,n+1|0,c[(b&p)>>2]|0,0),xh(m,n+4|0,10720,-2),Dr(a,g),wh(m,61,0,0,0)|0,n=c[(b&p)>>2]|0,xh(m,wh(m,126,g,0,0)|0,n,0),n=a+72|0,(c[(n&p)>>2]|0)<3):0)c[(n&p)>>2]=3;i=o;return}function Rr(d,e,f,g,h,k,l){d=d|0;e=e|0;f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;var m=0,q=0,r=0,s=0,t=0,u=0,v=0;v=i;i=i+32|0;if((i|0)>=(j|0))fa();m=v;t=c[(d&p)>>2]|0;c[(m&p)>>2]=0;c[(m&p)+4>>2]=0;c[(m&p)+8>>2]=0;c[(m&p)+12>>2]=0;c[(m&p)+16>>2]=0;c[(m&p)+20>>2]=0;c[(m&p)+24>>2]=0;c[(m&p)+28>>2]=0;c[(m&p)>>2]=d;do if(h)if((a[(h&n)>>0]|0)!=27)if(!(ls(m,h)|0)){u=5;break}else{u=13;break}else{a[(h&n)>>0]=97;u=5;break}else u=5;while(0);a:do if((u|0)==5){do if(k)if((a[(k&n)>>0]|0)!=27)if(!(ls(m,k)|0))break;else{u=13;break a}else{a[(k&n)>>0]=97;break}while(0);do if(l)if((a[(l&n)>>0]|0)!=27)if(!(ls(m,l)|0))break;else{u=13;break a}else{a[(l&n)>>0]=97;break}while(0);if(g){if((a[(g&n)>>0]|0)==97)g=c[(g&p)+8>>2]|0;else g=0;if(Sq(d,e,g,0,0)|0)break}s=Oq(d)|0;m=d+60|0;g=c[(m&p)>>2]|0;q=d+56|0;r=c[(q&p)>>2]|0;if((r|0)<4){r=d+72|0;g=c[(r&p)>>2]|0;c[(r&p)>>2]=g+4;g=g+1|0}else{c[(m&p)>>2]=g+4;c[(q&p)>>2]=r+-4}Rq(d,h,g);Rq(d,k,g+1|0);Rq(d,l,g+2|0);if(s){g=g+3|0;wh(s,1,0,g-(b[(f&o)>>1]|0)|0,g)|0;g=c[(s&p)+4>>2]|0;if(g)a[(g+(((c[(s&p)+32>>2]|0)+-1|0)*20|0)&n)+3>>0]=b[(f&o)>>1];xh(s,-1,f,-5);wh(s,144,(e|0)==24&1,0,0)|0}}while(0);if((u|0)==13){f=d+64|0;c[(f&p)>>2]=(c[(f&p)>>2]|0)+1}Gk(t,h);Gk(t,k);Gk(t,l);i=v;return}function Sr(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();l=m;g=m+4|0;h=c[(b&p)>>2]|0;a:do if(!(Gn(b)|0)){if(!d){Ut(b,0);break}if(!((e|0)!=0?(c[(e&p)>>2]|0)!=0:0))f=6;do if((f|0)==6){f=Wq(c[(b&p)>>2]|0,d)|0;if(!f)break a;if(!(Yn(h,a[(h&n)+62>>0]|0,f,0)|0)){mg(h,f);break}else{Ut(b,f);mg(h,f);break a}}while(0);d=er(b,d,e,g)|0;if((d|0)>=0?(k=Wq(h,c[(g&p)>>2]|0)|0,(k|0)!=0):0){e=c[((c[(h&p)+16>>2]|0)+(d<<4)&p)>>2]|0;f=_h(h,k,e)|0;if(f){Vt(b,f,0);mg(h,k);break}e=bq(h,k,e)|0;mg(h,k);if(!e){th(b,28872,l);break}else{f=c[(b&p)+408>>2]|0;Ar(b,d);f=((f|0)==0?b:f)+328|0;c[(f&p)>>2]=c[(f&p)>>2]|1<<d;vs(b,e,-1);break}}}while(0);i=m;return}function Tr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();f=h;g=c[(a&p)>>2]|0;if(!(Gn(a)|0)){do if(!b){b=g+20|0;e=c[(b&p)>>2]|0;if((e|0)>0){d=0;do{if((d|0)!=1){Wt(a,d);e=c[(b&p)>>2]|0}d=d+1|0}while((d|0)<(e|0))}}else{if(c[(d&p)+4>>2]|0){e=er(a,b,d,f)|0;if((e|0)<=-1)break;e=c[((c[(g&p)+16>>2]|0)+(e<<4)&p)>>2]|0;b=Wq(g,c[(f&p)>>2]|0)|0;if(!b)break;d=bq(g,b,e)|0;if(!d){e=sh(a,0,b,e)|0;if(e)Xt(a,e,0)}else Xt(a,c[(d&p)+12>>2]|0,d);mg(g,b);break}d=Wq(g,b)|0;e=Vh(g,d)|0;mg(g,d);if((e|0)>-1){Wt(a,e);break}d=Wq(g,b)|0;if(d){e=bq(g,d,0)|0;if(!e){e=sh(a,0,d,0)|0;if(e)Xt(a,e,0)}else Xt(a,c[(e&p)+12>>2]|0,e);mg(g,d)}}while(0);e=Oq(a)|0;if(e)wh(e,144,0,0,0)|0}i=h;return}function Ur(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,i=0;f=c[(d&p)>>2]|0;if(!f)e=d+4|0;else{i=c[(a&p)>>2]|0;g=c[(i&p)+20>>2]|0;i=c[(i&p)+16>>2]|0;a:do if((g|0)>0){h=0;while(1){e=h+1|0;if((c[(i+(h<<4)&p)+12>>2]|0)==(f|0)){e=h;break a}if((e|0)<(g|0))h=e;else break}}else e=0;while(0);e=i+(e<<4)|0}return sh(a,b,c[(d&p)+8>>2]|0,c[(e&p)>>2]|0)|0}function Vr(b,d){b=b|0;d=d|0;var e=0,f=0,g=0;g=i;i=i+16|0;if((i|0)>=(j|0))fa();f=g;if(d){e=d;while(1)if(!(a[(e&n)>>0]|0))break;else e=e+1|0;if((e-d&1073741823)>>>0>6?(Fc(d,25568,7)|0)==0:0){c[(f&p)>>2]=d;th(b,25576,f);e=1}else e=0}else e=0;i=g;return e|0}function Wr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0;f=i;i=i+16|0;if((i|0)>=(j|0))fa();e=f;if(!b){c[(e&p)>>2]=d;a=uh(a,25992,e)|0}else{c[(e&p)>>2]=b;c[(e&p)+4>>2]=d;e=uh(a,26e3,e)|0;mg(a,b);a=e}i=f;return a|0}function Xr(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=i;i=i+16|0;if((i|0)>=(j|0))fa();g=h;e=c[(a&p)>>2]|0;f=c[((c[(e&p)+16>>2]|0)&p)+28>>2]|0;if((c[(b&p)+68>>2]|0)!=(f|0)?(d=As(a,b)|0,(d|0)!=0):0){b=d;d=0;do{if((c[(b&p)+20>>2]|0)==(f|0))d=Wr(e,d,c[(b&p)>>2]|0)|0;b=c[(b&p)+32>>2]|0}while((b|0)!=0);if(d){b=c[(a&p)>>2]|0;c[(g&p)>>2]=d;b=uh(b,25968,g)|0;mg(c[(a&p)>>2]|0,d);d=b}else d=0}else d=0;i=h;return d|0}function Yr(a,b,d){a=a|0;b=b|0;d=d|0;var e=0,f=0,g=0,h=0,k=0,l=0,m=0,n=0,o=0,q=0,r=0;r=i;i=i+16|0;if((i|0)>=(j|0))fa();n=r;o=Oq(a)|0;if(o){e=c[(a&p)>>2]|0;h=c[(b&p)+68>>2]|0;a:do if(h){k=c[(e&p)+20>>2]|0;if((k|0)>0){f=c[(e&p)+16>>2]|0;g=0;while(1){e=g+1|0;if((c[(f+(g<<4)&p)+12>>2]|0)==(h|0))break a;if((e|0)<(k|0))g=e;else{g=e;break}}}else g=0}else g=-1e6;while(0);e=As(a,b)|0;if(e)do{f=c[(a&p)>>2]|0;l=c[(e&p)+20>>2]|0;b:do if(l){m=c[(f&p)+20>>2]|0;if((m|0)>0){k=c[(f&p)+16>>2]|0;h=0;while(1){f=h+1|0;if((c[(k+(h<<4)&p)+12>>2]|0)==(l|0)){f=h;break b}if((f|0)<(m|0))h=f;else break}}else f=0}else f=-1e6;while(0);m=c[(e&p)>>2]|0;xh(o,wh(o,126,f,0,0)|0,m,0);e=c[(e&p)+32>>2]|0}while((e|0)!=0);e=c[(b&p)>>2]|0;xh(o,wh(o,124,g,0,0)|0,e,0);e=c[(a&p)>>2]|0;c[(n&p)>>2]=d;e=uh(e,25952,n)|0;if((e|0)!=0?(Ir(o,g,e),q=Xr(a,b)|0,(q|0)!=0):0)Ir(o,1,q)}i=r;return}
|
|
function gh(f){f=f|0;var g=0,l=0,m=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0.0,C=0,D=0.0,E=0,F=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ea=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,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,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,_b=0,$b=0,cc=0,dc=0,ec=0,fc=0,gc=0,hc=0,ic=0,kc=0,nc=0,oc=0,qc=0,sc=0,uc=0,vc=0,wc=0,xc=0,yc=0,zc=0,Ac=0,Bc=0,Cc=0,Dc=0,Ec=0,Fc=0,Gc=0,Hc=0,Ic=0,Jc=0,Kc=0,Lc=0,Mc=0,Nc=0,Oc=0,Pc=0,Qc=0,Rc=0,Sc=0,Tc=0,Uc=0,Vc=0,Xc=0,Yc=0,Zc=0,_c=0,$c=0,ad=0,ed=0,fd=0,id=0,jd=0,kd=0,ld=0,md=0,nd=0,od=0,pd=0,qd=0,rd=0,sd=0,td=0,ud=0,vd=0,wd=0,xd=0,yd=0,zd=0,Ad=0,Bd=0,Cd=0,Dd=0,Ed=0,Fd=0,Gd=0,Hd=0,Id=0,Jd=0,Kd=0,Ld=0,Md=0,Nd=0,Od=0,Pd=0,Qd=0,Rd=0,Sd=0,Td=0,Ud=0,Vd=0,Wd=0,Xd=0,Yd=0,Zd=0,_d=0,$d=0,ae=0,be=0,ce=0,de=0,ee=0,fe=0,ge=0,he=0,ie=0,je=0,ke=0,le=0,me=0,ne=0,oe=0,pe=0,qe=0;oe=i;i=i+1040|0;if((i|0)>=(j|0))fa();ke=oe+400|0;Tc=oe+792|0;id=oe+392|0;ad=oe+788|0;Sd=oe+320|0;md=oe+784|0;pd=oe+780|0;qd=oe+280|0;Nd=oe+680|0;$c=oe+240|0;Qd=oe+200|0;_c=oe+676|0;Xc=oe+672|0;Od=oe+160|0;Uc=oe+644|0;td=oe+152|0;Jd=oe+112|0;kd=oe+640|0;Ld=oe+636|0;Yc=oe+632|0;ud=oe+628|0;Ad=oe+624|0;wd=oe+604|0;Bd=oe+600|0;od=oe+596|0;xd=oe+576|0;Sc=oe+840|0;Cd=oe+572|0;Pd=oe+104|0;Dd=oe+568|0;ed=oe+564|0;fd=oe+96|0;Rd=oe+88|0;Ed=oe+560|0;Fd=oe+556|0;Gd=oe+552|0;yd=oe+532|0;zd=oe+512|0;jd=oe+508|0;vd=oe+504|0;Zc=oe+488|0;Md=oe+48|0;Vc=oe+456|0;Rc=oe+444|0;Kd=oe+8|0;sd=oe+440|0;Id=oe+412|0;Hd=oe;zc=f+4|0;s=c[(zc&p)>>2]|0;le=c[(f&p)>>2]|0;Jc=a[(le&n)+62>>0]|0;Nc=f+8|0;z=c[(Nc&p)>>2]|0;ne=le+32|0;l=ne;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;me=f+80|0;a:do if((c[(me&p)>>2]|0)==7){y=le+65|0;z=f+44|0;r=m;g=0;t=0;m=0;ie=1317}else{c[(me&p)>>2]=0;de=f+136|0;c[(de&p)>>2]=0;c[(de&p)+4>>2]=0;de=f+20|0;c[(de&p)>>2]=0;c[(le&p)+452>>2]=0;Cc=le+240|0;b:do if(!(c[(Cc&p)>>2]|0)){be=le+292|0;if(c[(be&p)>>2]|0){r=c[(f&p)+124>>2]|0;g=le+300|0;y=c[(g&p)>>2]|0;if(!r)yc=g;else{yc=g;y=(r>>>0)%(y>>>0)|0}}else{yc=le+300|0;y=0}he=f+76|0;ge=le+65|0;Zd=le+296|0;sb=f+176|0;tb=f+184|0;ub=f+92|0;vb=le+80|0;wb=le+84|0;xb=Jc&255;yb=Jc<<24>>24==1;zb=le+88|0;Ab=f+60|0;_d=f+144|0;fe=f+86|0;je=f+44|0;Bb=f+12|0;Cb=Uc+4|0;Db=Uc+16|0;Eb=Uc+12|0;Fb=Uc+25|0;Gb=Uc+20|0;Hb=f+200|0;Ib=f+56|0;$d=f+72|0;Jb=Jd+16|0;Kb=Jd+8|0;Lb=Jd+24|0;Mb=f+87|0;ae=le+156|0;Nb=le+500|0;Ob=le+496|0;ee=le+63|0;Pb=le+488|0;Qb=le+504|0;Rb=le+512|0;Sb=le+70|0;Tb=le+24|0;Ub=le+20|0;Xd=le+16|0;Vb=le+4|0;Yd=f+88|0;Wb=f+104|0;Xb=f+152|0;Yb=f+160|0;Zb=le+152|0;_b=le+64|0;$b=wd+4|0;cc=wd+6|0;dc=wd+8|0;ec=xd+4|0;fc=xd+8|0;gc=le+212|0;hc=le+208|0;ic=f+116|0;kc=yd+4|0;nc=yd+6|0;oc=yd+8|0;qc=$c+8|0;sc=$c+32|0;uc=$c+24|0;vc=$c+16|0;wc=$c+12|0;xc=zd+4|0;Y=zd+6|0;Z=zd+8|0;_=qd+8|0;$=qd+32|0;aa=qd+24|0;ea=qd+12|0;ga=qd+16|0;ha=le+164|0;ia=Zc+8|0;ja=Zc+4|0;ka=le+145|0;la=Zc+12|0;ma=Sd+4|0;na=Sd+12|0;oa=Sd+16|0;pa=Sd+20|0;qa=Sd+24|0;ra=Sd+28|0;sa=Sd+8|0;ta=Sd+40|0;ua=Sd+44|0;va=Sd+48|0;wa=Sd+52|0;xa=Sd+56|0;ya=Sd+60|0;za=Sd+64|0;Aa=Sd+65|0;Ba=le+128|0;Ca=f+28|0;Da=f+36|0;Ea=f+32|0;Fa=f+196|0;Ga=Vc+4|0;Ha=Vc+8|0;Ia=Md+8|0;Ja=Md+32|0;Ka=Md+24|0;La=Vc+20|0;Ma=Vc+12|0;Na=Vc+16|0;Oa=Vc+24|0;Pa=Rc+8|0;Qa=Rc+4|0;Ra=le+148|0;Sa=le+176|0;Ta=le+72|0;Ua=le+67|0;Va=Tc+20|0;Wa=Tc+24|0;Xa=Tc+4|0;Ya=Tc+16|0;Za=le+304|0;_a=le+328|0;$a=Kd+32|0;ab=Kd+8|0;bb=Kd+24|0;cb=le+308|0;db=Id+20|0;eb=le+69|0;ce=f+168|0;fb=qd+4|0;gb=qd+8|0;hb=qd+12|0;ib=qd+16|0;jb=qd+20|0;kb=qd+24|0;lb=qd+25|0;mb=le+180|0;nb=Od+32|0;ob=Od+8|0;pb=Od+12|0;qb=Od+16|0;rb=Od+24|0;W=0;X=0;g=0;u=0;t=c[(he&p)>>2]|0;x=0;c:while(1){r=m;d:while(1){if(a[(ge&n)>>0]|0){y=ge;z=je;m=x;ie=1317;break a}m=g+1|0;if(!(a[(s+(t*20|0)&n)+2>>0]&2))L=u;else{u=c[(s+(t*20|0)&p)+8>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(b[(u&o)>>1]&9312)vg(g);b[(u&o)>>1]=4;L=g}C=s+(t*20|0)|0;J=a[(C&n)>>0]|0;u=J&255;e:do switch(u|0){case 17:{g=m;m=r;u=L;ie=22;break d}case 18:{g=m;m=r;u=L;ie=23;break d}case 20:{g=m;m=r;ie=24;break d}case 21:{g=m;m=r;u=L;ie=25;break d}case 22:{g=m;m=r;u=L;ie=26;break d}case 23:{g=m;m=r;u=L;r=t;ie=27;break d}case 29:{g=m;m=r;r=t;ie=65;break d}case 30:{g=m;m=r;u=L;r=t;ie=66;break d}case 28:{g=m;m=r;u=L;r=t;ie=60;break d}case 32:{g=m;m=r;r=t;ie=72;break d}case 24:{g=m;m=r;u=L;r=t;ie=28;break d}case 25:{g=m;m=r;u=L;r=t;ie=44;break d}case 26:{g=m;m=r;u=L;r=t;ie=45;break d}case 133:{g=m;m=r;u=L;r=t;ie=46;break d}case 97:{a[(C&n)>>0]=27;C=s+(t*20|0)+16|0;v=c[(C&p)>>2]|0;if(!v)g=0;else{g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}w=s+(t*20|0)+4|0;c[(w&p)>>2]=g;if(yb)u=0;else{u=Xg(L,v,-1,1,0)|0;if((u|0)==18){g=m;m=r;u=x;ie=1316;break c}if(Yl(L,xb)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(L&p)+24>>2]=0;g=L+8|0;b[(g&o)>>1]=e[(g&o)>>1]|2048;g=s+(t*20|0)+1|0;if((a[(g&n)>>0]|0)==-1)mg(le,c[(C&p)>>2]|0);a[(g&n)>>0]=-1;v=c[(L&p)+16>>2]|0;c[(C&p)>>2]=v;g=c[(L&p)+12>>2]|0;c[(w&p)>>2]=g}if((g|0)>(c[(zb&p)>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else ie=57;break}case 31:{g=m;m=r;u=L;r=t;ie=67;break d}case 34:{g=m;m=r;r=t;ie=79;break d}case 35:{g=m;m=r;u=x;ie=80;break c}case 33:{g=m;m=r;ie=74;break d}case 94:{g=m;m=r;ie=94;break d}case 93:case 92:case 91:case 90:case 89:{g=m;P=C;m=r;r=t;ie=112;break d}case 27:{v=c[(s+(t*20|0)&p)+16>>2]|0;g=c[(s+(t*20|0)&p)+4>>2]|0;u=0;ie=57;break}case 16:{t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 36:{g=m;m=r;J=L;r=t;ie=166;break d}case 1:{V=a[(s+(t*20|0)&n)+3>>0]|0;C=V&255;A=c[(Bb&p)>>2]|0;g=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;c[(Uc&p)>>2]=g;if(V<<24>>24){g=0;u=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(A+(g<<2)&p)>>2]=u;if((b[(u&o)+8>>1]&4096)!=0?(Vl(u)|0)!=0:0){y=ge;z=je;g=m;m=x;ie=1317;break a}g=g+1|0;if((g|0)>=(C|0))break;else u=u+40|0}g=c[(Uc&p)>>2]|0}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Cb&p)>>2]=V;c[(Db&p)>>2]=t;c[(Eb&p)>>2]=f;U=g+8|0;b[(U&o)>>1]=e[(U&o)>>1]&48640|1;a[(Fb&n)>>0]=0;U=ne;c[(U&p)>>2]=r;c[(U&p)+4>>2]=l;mc[c[(V&p)+12>>2]&63](Uc,C,A);l=ne;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;if(!(a[(Fb&n)>>0]|0))g=0;else{if(!(c[(Gb&p)>>2]|0))g=0;else{c[(ke&p)>>2]=Sg(c[(Uc&p)>>2]|0,1)|0;dh(je,le,10344,ke);g=c[(Gb&p)>>2]|0}em(f,t,c[(s+(t*20|0)&p)+4>>2]|0)}Yl(c[(Uc&p)>>2]|0,xb)|0;w=c[(Uc&p)>>2]|0;v=e[(w&o)+8>>1]|0;if(v&18){u=c[(w&p)+12>>2]|0;if(v&16384)u=(c[(w&p)>>2]|0)+u|0;if((u|0)>(c[((c[(w&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 88:case 87:case 86:case 85:{g=m;H=C;m=r;r=t;ie=184;break d}case 39:{g=m;m=r;J=L;r=t;ie=208;break d}case 37:{g=m;m=r;u=L;r=t;ie=202;break d}case 38:{g=m;m=r;J=L;r=t;ie=203;break d}case 83:case 80:case 81:case 82:case 78:case 79:{g=m;I=J;m=r;u=L;ie=213;break d}case 40:{V=c[(s+(t*20|0)&p)+4>>2]|0;g=z+(V*40|0)|0;if(!(b[(z+(V*40|0)&o)+8>>1]&16384))u=0;else u=Rg(g)|0;gm(g,c[(s+(t*20|0)&p)+8>>2]&255,Jc);C=L;T=t;break}case 41:{g=m;m=r;u=L;r=t;ie=248;break d}case 42:{g=m;m=r;u=L;r=t;ie=249;break d}case 43:{g=m;m=r;u=L;ie=256;break d}case 71:case 72:{g=m;m=r;r=t;ie=261;break d}case 76:{g=m;m=r;u=L;r=t;ie=286;break d}case 19:{g=m;m=r;r=t;ie=268;break d}case 96:{g=m;m=r;r=t;ie=273;break d}case 44:{g=m;m=r;u=L;r=t;ie=278;break d}case 46:case 45:{g=m;m=r;u=L;r=t;ie=281;break d}case 77:{g=m;m=r;u=L;r=t;ie=288;break d}case 47:{g=m;m=r;u=L;ie=290;break d}case 48:{g=m;m=r;u=L;r=t;ie=368;break d}case 49:{g=m;m=r;ie=371;break d}case 50:{E=c[(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]&p)>>2]|0;f:do if(c[(E&p)+60>>2]|0){g=qm(E)|0;if(!g){K=E+76|0;H=E+44|0;F=E+72|0;v=0;u=0;g:while(1){C=b[(K&o)>>1]|0;J=c[(E+(C<<16>>16<<2)&p)+120>>2]|0;if(!(a[(J&n)+5>>0]|0)){if(!(a[(J&n)+2>>0]|0)){v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G}}else{v=jw(e[(J&o)+18>>1]|0,0,v|0,u|0)|0;u=G;while(1){if(!(C<<16>>16))break g;if(J){Bg(c[(J&p)+68>>2]|0);C=b[(K&o)>>1]|0}C=C+-1<<16>>16;b[(K&o)>>1]=C;b[(H&o)>>1]=0;a[(F&n)>>0]=d[(F&n)>>0]&249;J=C<<16>>16;A=E+(J<<1)+78|0;I=b[(A&o)>>1]|0;J=c[(E+(J<<2)&p)+120>>2]|0;if((I&65535)<(e[(J&o)+18>>1]|0)){C=I;break}}b[(A&o)>>1]=C+1<<16>>16;J=b[(K&o)>>1]|0;C=J;J=c[(E+(J<<16>>16<<2)&p)+120>>2]|0}C=b[(E+(C<<16>>16<<1)&o)+78>>1]|0;A=c[(J&p)+56>>2]|0;if(C<<16>>16==(b[(J&o)+18>>1]|0)){g=d[(J&n)+6>>0]|0;g=rm(E,d[(A+g&n)+9>>0]<<16|d[(A+g&n)+8>>0]<<24|d[(A+g&n)+10>>0]<<8|d[(A+g&n)+11>>0])|0}else{g=(C&65535)<<1;V=c[(J&p)+64>>2]|0;g=(d[(V+g&n)>>0]<<8|d[(V+(g|1)&n)>>0])&e[(J&o)+20>>1];g=rm(E,d[(A+g&n)+1>>0]<<16|d[(A+g&n)>>0]<<24|d[(A+g&n)+2>>0]<<8|d[(A+g&n)+3>>0])|0}if(g){v=0;u=0;break f}}g=qm(E)|0}else{v=0;u=0}}else{g=0;v=0;u=0}while(0);C=L;c[(C&p)>>2]=v;c[(C&p)+4>>2]=u;C=L;T=t;u=g;break}case 2:{O=c[(s+(t*20|0)&p)+4>>2]|0;v=c[(s+(t*20|0)&p)+16>>2]|0;if(!O){g=m;m=r;r=t;ie=446;break d}g=c[(Pb&p)>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=0;while(1){if(!(dd(c[(g&p)>>2]|0,v)|0)){M=g;break}g=c[(g&p)+24>>2]|0;if(!g){s=v;g=m;m=r;u=x;ie=460;break c}else u=u+1|0}H=(O|0)==1;if((c[(ae&p)>>2]|0)>0&H){g=m;m=r;u=x;ie=462;break c}F=M+24|0;if(!(c[(F&p)>>2]|0)){A=(a[(Sb&n)>>0]|0)!=0;if(A&H){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=1;if((Rl(f)|0)==5){g=t;ie=467;break c}a[(Sb&n)>>0]=0;A=1;K=u;u=c[(me&p)>>2]|0}else ie=469}else{A=0;ie=469}if((ie|0)==469){ie=0;K=(c[(Ob&p)>>2]|0)-u+-1|0;if((O|0)==2){C=(c[(Tb&p)>>2]|0)>>>1&1;if((c[(Ub&p)>>2]|0)>0){J=C^1;I=0;while(1){u=Il(c[((c[(Xd&p)>>2]|0)+(I<<4)&p)+4>>2]|0,516,J)|0;I=I+1|0;if(u){g=m;m=r;ie=1318;break c}g=c[(Ub&p)>>2]|0;if((I|0)>=(g|0)){ie=475;break}}}}else{g=c[(Ub&p)>>2]|0;C=0;ie=475}if((ie|0)==475){ie=0;if((g|0)>0){E=0;do{u=um(c[((c[(Xd&p)>>2]|0)+(E<<4)&p)+4>>2]|0,O,K)|0;E=E+1|0;if(u){g=m;m=r;ie=1318;break c}}while((E|0)<(c[(Ub&p)>>2]|0))}}if(!C)u=0;else{C=c[(Vb&p)>>2]|0;if(C)do{V=C+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;C=c[(C&p)+52>>2]|0}while((C|0)!=0);Eg(le);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;u=0}}C=c[(Pb&p)>>2]|0;if((C|0)!=(M|0))do{c[(Pb&p)>>2]=c[(C&p)+24>>2];mg(le,C);c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;C=c[(Pb&p)>>2]|0}while((C|0)!=(M|0));if(H){c[(Pb&p)>>2]=c[(F&p)>>2];mg(le,M);if(A){C=L;T=t;break e}else{g=m;C=O;m=r;A=K;E=L;r=t;ie=486;break d}}else{V=M+8|0;U=c[(V&p)+4>>2]|0;T=Qb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=M+16|0;U=c[(T&p)+4>>2]|0;V=Rb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;if(A){C=L;T=t;break e}else{C=O;g=m;m=r;A=K;E=L;r=t;ie=488;break d}}}case 3:{u=x;ie=489;break c}case 4:{v=s+(t*20|0)+8|0;g=c[(v&p)>>2]|0;if((g|0)!=0?(c[(Tb&p)>>2]&33554432|0)!=0:0){g=m;m=r;u=8;ie=1318;break c}I=s+(t*20|0)+4|0;J=c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+4>>2]|0;if(!J){v=0;u=0;g=0}else{u=yg(J,g)|0;if((u|0)==5){g=t;ie=508;break c}else if(u){g=m;m=r;ie=1318;break c}do if((c[(v&p)>>2]|0)!=0?(b[(Yd&o)>>1]&32)!=0:0){if((a[(ee&n)>>0]|0)!=0?(c[(Zb&p)>>2]|0)<=1:0){g=0;break}g=c[(Wb&p)>>2]|0;if(!g){g=(c[(Nb&p)>>2]|0)+1|0;c[(Nb&p)>>2]=g;g=(c[(Ob&p)>>2]|0)+g|0;c[(Wb&p)>>2]=g}g=sm(le,0,g+-1|0)|0;if(!g){g=c[(Wb&p)>>2]|0;V=c[(J&p)+4>>2]|0;c[(V&p)+4>>2]=c[(J&p)>>2];g=hl(c[(V&p)>>2]|0,g)|0}V=Qb;U=c[(V&p)+4>>2]|0;T=Xb;c[(T&p)>>2]=c[(V&p)>>2];c[(T&p)+4>>2]=U;T=Rb;U=c[(T&p)+4>>2]|0;V=Yb;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U}else g=0;while(0);v=c[(J&p)+4>>2]|0;c[(v&p)+4>>2]=c[(J&p)>>2];v=c[((c[(v&p)+12>>2]|0)&p)+56>>2]|0;v=d[(v&n)+41>>0]<<16|d[(v&n)+40>>0]<<24|d[(v&n)+42>>0]<<8|d[(v&n)+43>>0];u=c[((c[((c[(Xd&p)>>2]|0)+(c[(I&p)>>2]<<4)&p)+12>>2]|0)&p)+4>>2]|0}if(a[(s+(t*20|0)&n)+3>>0]|0){if((v|0)!=(c[(s+(t*20|0)&p)+12>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}if((u|0)!=(c[(s+(t*20|0)&p)+16>>2]|0)){g=m;s=I;m=r;u=x;ie=522;break c}else{C=L;T=t;u=g}}else{C=L;T=t;u=g}break}case 53:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if((g|0)!=0?(c[(g&p)+28>>2]|0)==(c[(s+(t*20|0)&p)+8>>2]|0):0){v=s+(t*20|0)+3|0;u=0;ie=548}else ie=536;break}case 51:{g=m;m=r;u=L;r=t;ie=525;break d}case 52:{A=s+(t*20|0)+4|0;g=c[(A&p)>>2]|0;v=c[(Xd&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;w=z+(C*40|0)|0;u=Vg(w)|0;V=w;c[(V&p)>>2]=u;c[(V&p)+4>>2]=G;C=z+(C*40|0)+8|0;b[(C&o)>>1]=e[(C&o)>>1]&48640|4;C=s+(t*20|0)+8|0;u=Dg(c[(v+(g<<4)&p)+4>>2]|0,c[(C&p)>>2]|0,u)|0;C=c[(C&p)>>2]|0;if((C|0)==1){c[(c[(v+(g<<4)&p)+12>>2]&p)>>2]=c[(w&p)>>2];c[(Tb&p)>>2]=c[(Tb&p)>>2]|2}else if((C|0)==2)a[((c[(v+(g<<4)&p)+12>>2]|0)&n)+76>>0]=c[(w&p)>>2];if((c[(A&p)>>2]|0)==1){g=c[(Vb&p)>>2]|0;if(g)do{V=g+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;g=c[(g&p)+52>>2]|0}while((g|0)!=0);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t}else{C=L;T=t}break}case 55:case 54:{ie=536;break}case 57:case 56:{g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;J=g+27|0;a[(J&n)>>0]=a[(J&n)>>0]|1;v=g+4|0;I=s+(t*20|0)+3|0;u=zm(c[(le&p)>>2]|0,0,le,v,d[(I&n)>>0]|5,1054)|0;do if(!u){u=yg(c[(v&p)>>2]|0,1)|0;if(!u){A=c[(s+(t*20|0)&p)+16>>2]|0;C=c[(v&p)>>2]|0;if(!A){u=ym(C,1,1,0,c[(g&p)>>2]|0)|0;a[(J&n)>>0]=a[(J&n)>>0]|4;break}u=Am(C,ud,d[(I&n)>>0]|2)|0;if(!u){c[(g&p)+8>>2]=A;u=ym(c[(v&p)>>2]|0,c[(ud&p)>>2]|0,1,A,c[(g&p)>>2]|0)|0}a[(J&n)>>0]=a[(J&n)>>0]&-5}}while(0);a[(J&n)>>0]=((a[(I&n)>>0]|0)!=8&1)<<3&255|a[(J&n)>>0]&-9;C=L;T=t;break}case 58:{g=m;m=r;ie=558;break d}case 60:{g=m;m=r;u=L;ie=568;break d}case 61:{g=m;m=r;u=L;r=t;ie=570;break d}case 59:{g=m;m=r;u=L;r=t;ie=566;break d}case 65:case 64:case 63:case 62:{g=m;K=u;m=r;r=t;ie=571;break d}case 66:{g=m;m=r;u=L;r=t;ie=596;break d}case 69:case 68:case 67:{g=m;H=C;m=r;u=L;ie=597;break d}case 73:{g=m;m=r;u=L;r=t;ie=624;break d}case 70:{V=c[(s+(t*20|0)&p)+12>>2]|0;g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)>>2]|0;c[(Cd&p)>>2]=0;V=z+(V*40|0)|0;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;u=Cm(u,0,U,V,0,Cd)|0;v=g+48|0;c[(v&p)>>2]=U;c[(v&p)+4>>2]=V;a[(g&n)+25>>0]=0;c[(g&p)+60>>2]=0;a[(g&n)+26>>0]=0;v=c[(Cd&p)>>2]|0;if(v)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;c[(g&p)+12>>2]=v;C=L;T=t;break}case 74:{H=Pd;c[(H&p)>>2]=0;c[(H&p)+4>>2]=0;c[(Dd&p)>>2]=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(H&p)>>2]|0;if(!g){u=0;v=0;g=0}else{K=H+27|0;do if(!(a[(K&n)>>0]&2)){u=Hm(g,Dd)|0;if(u){g=m;m=r;ie=1318;break c}if(c[(Dd&p)>>2]|0){V=Pd;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;break}km(c[(H&p)>>2]|0,Pd);u=Pd;g=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;if((g|0)==-1&(u|0)==2147483647){a[(K&n)>>0]=a[(K&n)>>0]|2;break}else{U=jw(g|0,u|0,1,0)|0;V=Pd;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;break}}while(0);J=c[(s+(t*20|0)&p)+12>>2]|0;if(J){g=c[(sb&p)>>2]|0;if(!g)C=z;else{while(1){u=c[(g&p)+4>>2]|0;if(!u)break;else g=u}C=c[(g&p)+16>>2]|0}I=C+(J*40|0)|0;A=Vg(I)|0;g=G;V=I;c[(V&p)>>2]=A;c[(V&p)+4>>2]=g;V=C+(J*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((A|0)==-1&(g|0)==2147483647){g=m;m=r;u=13;ie=1318;break c}if(a[(K&n)>>0]&2){g=m;m=r;u=13;ie=1318;break c}J=Pd;u=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;C=jw(A|0,g|0,1,0)|0;g=G;if((J|0)<(g|0)|(J|0)==(g|0)&u>>>0<C>>>0){V=Pd;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}else{C=u;g=J}V=I;c[(V&p)>>2]=C;c[(V&p)+4>>2]=g}h:do if(!(a[(K&n)>>0]&2))g=0;else{u=0;while(1){cd(8,Pd);V=Pd;V=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]&1073741823|0,1,0)|0;g=G;U=Pd;c[(U&p)>>2]=V;c[(U&p)+4>>2]=g;g=Cm(c[(H&p)>>2]|0,0,V,g,0,Dd)|0;if(c[(Dd&p)>>2]|g)break h;u=u+1|0;if((u|0)>=100){g=m;m=r;u=13;ie=1318;break c}}}while(0);a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;v=Pd;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0}C=L;c[(C&p)>>2]=u;c[(C&p)+4>>2]=v;C=L;T=t;u=g;break}case 84:case 75:{g=m;C=J;m=r;u=L;r=t;ie=647;break d}case 95:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=Jm(c[(g&p)>>2]|0)|0;c[(g&p)+60>>2]=0;if((((u|0)==0?(Gc=c[(gc&p)>>2]|0,(Gc|0)!=0):0)?(Hc=c[(s+(t*20|0)&p)+16>>2]|0,(Hc|0)!=0):0)?(a[(g&n)+27>>0]&4)!=0:0){V=g+48|0;bc[Gc&1](c[(hc&p)>>2]|0,9,c[((c[(Xd&p)>>2]|0)+(a[(g&n)+24>>0]<<4)&p)>>2]|0,Hc,c[(V&p)>>2]|0,c[(V&p)+4>>2]|0)}if(!(c[(s+(t*20|0)&p)+8>>2]&1)){C=L;T=t}else{c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t}break}case 98:{g=m;m=r;u=L;r=t;ie=671;break d}case 99:{g=m;m=r;u=L;r=t;ie=672;break d}case 100:{v=c[(s+(t*20|0)&p)+8>>2]|0;C=z+(v*40|0)|0;g=c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)&p)+56>>2]|0;if(!(a[(g&n)+56>>0]|0)){u=c[(g&p)+36>>2]|0;g=u;u=u+8|0}else{V=c[(g&p)+20>>2]|0;u=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;g=V+(u*56|0)+20|0;u=c[(V+(u*56|0)&p)+32>>2]|0}g=c[(g&p)>>2]|0;if(!(fh(C,g)|0)){c[(z+(v*40|0)&p)+12>>2]=g;V=z+(v*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|16;kw(c[(z+(v*40|0)&p)+16>>2]|0,u|0,g|0)|0;u=0}else u=7;c[((c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+12>>2]<<2)&p)>>2]|0)&p)+60>>2]=0;T=t;break}case 102:case 101:{v=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(v*40|0)|0;A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(A&p)>>2]|0;A=A+27|0;if(a[(A&n)>>0]&4){lm(C,ed);g=c[(ed&p)>>2]|0;if(g>>>0>(c[(zb&p)>>2]|0)>>>0){g=m;m=r;u=x;ie=1316;break c}}else{km(C,fd);T=fd;g=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=c[(zb&p)>>2]|0;U=((V|0)<0)<<31>>31;if((T|0)>(U|0)|(T|0)==(U|0)&g>>>0>V>>>0){g=m;m=r;u=x;ie=1316;break c}c[(ed&p)>>2]=g}if(fh(J,g>>>0>32?g:32)|0){y=ge;z=je;g=m;m=x;ie=1317;break a}c[(z+(v*40|0)&p)+12>>2]=g;g=z+(v*40|0)+8|0;b[(g&o)>>1]=e[(g&o)>>1]&48640|16;g=c[(ed&p)>>2]|0;u=c[(z+(v*40|0)&p)+16>>2]|0;if(!(a[(A&n)>>0]&4))u=Lm(C,0,g,u,0)|0;else u=Dh(C,0,g,u)|0;a[(z+(v*40|0)&n)+10>>0]=1;C=J;T=t;break}case 103:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=v+25|0;if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=700;break d}do if(!(a[(v&n)+26>>0]|0)){g=c[(v&p)+32>>2]|0;if(g){V=c[(g&p)>>2]|0;u=rc[c[((c[(V&p)>>2]|0)&p)+48>>2]&127](g,Rd)|0;Mm(f,V);break}if((a[((c[(v&p)>>2]|0)&n)+73>>0]|0)!=1){u=jm(v)|0;if(u){g=m;m=r;ie=1318;break c}if(a[(w&n)>>0]|0){g=m;m=r;u=L;r=t;ie=708;break d}}km(c[(v&p)>>2]|0,Rd);u=0}else{U=v+48|0;V=c[(U&p)+4>>2]|0;u=Rd;c[(u&p)>>2]=c[(U&p)>>2];c[(u&p)+4>>2]=V;u=0}while(0);V=Rd;T=c[(V&p)+4>>2]|0;C=L;c[(C&p)>>2]=c[(V&p)>>2];c[(C&p)+4>>2]=T;C=L;T=t;break}case 108:{ie=715;break}case 104:{g=m;m=r;u=L;r=t;ie=711;break d}case 107:case 106:{c[(ic&p)>>2]=(c[(ic&p)>>2]|0)+1;ie=715;break}case 105:{T=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(T&p)>>2]|0;c[(Ed&p)>>2]=0;u=Hm(u,Ed)|0;V=c[(Ed&p)>>2]|0;a[(T&n)+25>>0]=V;a[(T&n)+26>>0]=0;c[(T&p)+60>>2]=0;T=c[(s+(t*20|0)&p)+8>>2]|0;C=L;T=(T|0)>0&(V|0)!=0?T+-1|0:t;break}case 7:case 6:{if(!(c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}else ie=765;break}case 5:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=0;w=c[(g&p)+56>>2]|0;if(a[(w&n)+56>>0]|0){u=Wm(c[(w&p)+20>>2]|0,Fd)|0;ie=766;break e}u=w+36|0;v=c[(u&p)>>2]|0;V=v+4|0;c[(u&p)>>2]=c[(V&p)>>2];c[(V&p)>>2]=0;if(!((c[(w&p)+40>>2]|0)!=0|(v|0)==0))mg(le,v);c[(Fd&p)>>2]=(c[(u&p)>>2]|0)==0&1;u=0;ie=766;break}case 9:case 8:{ie=765;break}case 110:case 109:{A=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;S=c[(s+(t*20|0)&p)+8>>2]|0;u=c[(A&p)>>2]|0;C=s+(t*20|0)+3|0;if(a[(C&n)>>0]&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if((b[(z+(S*40|0)&o)+8>>1]&16384)!=0?(Ud=Rg(z+(S*40|0)|0)|0,(Ud|0)!=0):0){g=m;m=r;s=Ud;u=x;ie=1309;break c}H=c[(A&p)+56>>2]|0;T=z+(S*40|0)+12|0;P=c[(T&p)>>2]|0;if(!H){if(!(a[(C&n)>>0]&16))g=0;else g=c[(A&p)+12>>2]|0;u=Im(u,c[(z+(S*40|0)&p)+16>>2]|0,P,((P|0)<0)<<31>>31,10360,0,0,c[(s+(t*20|0)&p)+12>>2]|0,g)|0;c[(A&p)+60>>2]=0;C=L;T=t;break e}C=P;g=((P|0)<0)<<31>>31;A=0;do{A=A+1|0;C=mw(C|0,g|0,7)|0;g=G}while(((C|0)!=0|(g|0)!=0)&(A|0)<9);K=P+8|0;I=A+P|0;M=H+4|0;A=c[(M&p)>>2]|0;do if(!A)u=0;else{if(!(c[(H&p)+40>>2]|0)){C=H+44|0;V=c[(C&p)>>2]|0;if((V|0)<=(A|0)?!((c[2265]|0)!=0?(V|0)>(c[(H&p)>>2]|0):0):0){u=0;break}}else{V=c[(H&p)+48>>2]|0;if(!((V|0)!=0&(V+K|0)>(A|0))){u=0;break}C=H+44|0}u=Om(H)|0;c[(C&p)>>2]=0;c[(H&p)+48>>2]=0}while(0);C=H+36|0;J=H+44|0;c[(J&p)>>2]=(c[(J&p)>>2]|0)+I;J=H+8|0;if((I|0)>(c[(J&p)>>2]|0))c[(J&p)>>2]=I;E=H+40|0;J=c[(E&p)>>2]|0;if(!J){g=qg(K,((K|0)<0)<<31>>31)|0;if(!g){g=m;m=r;s=7;u=x;ie=1309;break c}c[(g&p)+4>>2]=c[(C&p)>>2]}else{g=H+48|0;I=c[(g&p)>>2]|0;K=I+K|0;F=H+52|0;H=c[(F&p)>>2]|0;if((K|0)>(H|0)){I=H;do I=I<<1;while((I|0)<(K|0));V=c[(M&p)>>2]|0;I=(I|0)>(V|0)?V:I;I=(I|0)<(K|0)?K:I;J=rg(J,I,((I|0)<0)<<31>>31)|0;if(!J){g=m;m=r;s=7;u=x;ie=1309;break c}A=J+((c[(C&p)>>2]|0)-(c[(E&p)>>2]|0))|0;c[(C&p)>>2]=A;c[(E&p)>>2]=J;c[(F&p)>>2]=I;I=c[(g&p)>>2]|0}else A=c[(C&p)>>2]|0;c[(g&p)>>2]=I+(P+15&-8);c[(J+I&p)+4>>2]=A-J;g=J+I|0}kw(g+8|0,c[(z+(S*40|0)&p)+16>>2]|0,c[(T&p)>>2]|0)|0;c[(g&p)>>2]=c[(T&p)>>2];c[(C&p)>>2]=g;C=L;T=t;break}case 112:{g=m;m=r;r=t;ie=801;break d}case 111:{v=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;g=c[(v&p)>>2]|0;c[(yd&p)>>2]=c[(v&p)+8>>2];b[(kc&o)>>1]=c[(s+(t*20|0)&p)+12>>2];a[(nc&n)>>0]=0;c[(oc&p)>>2]=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0);u=Cm(g,yd,0,0,0,Gd)|0;if(!(c[(Gd&p)>>2]|u))u=Jm(g)|0;c[(v&p)+60>>2]=0;C=L;T=t;break}case 116:case 115:case 114:case 113:{u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(zd&p)>>2]=c[(u&p)+8>>2];b[(xc&o)>>1]=c[(s+(t*20|0)&p)+16>>2];a[(Y&n)>>0]=((J&255)<115)<<31>>31;c[(Z&p)>>2]=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0);V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(c[(u&p)>>2]|0,Sd);V=Sd;g=c[(V&p)>>2]|0;V=jw(g|0,c[(V&p)+4>>2]|0,-1,-1)|0;U=G;if(!(U>>>0>0|(U|0)==0&V>>>0>2147483646)){b[(_&o)>>1]=0;c[($&p)>>2]=le;c[(aa&p)>>2]=0;g=nm(c[(u&p)>>2]|0,0,g,1,qd)|0;if(!g){u=Km(c[(ea&p)>>2]|0,c[(ga&p)>>2]|0,zd,0)|0;if((b[(_&o)>>1]&9312)==0&(c[(aa&p)>>2]|0)==0)g=0;else{Qg(qd);g=0}}else u=0}else{c[(ke&p)>>2]=68730;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);g=11;u=0}if((((a[(C&n)>>0]&1)==0?u+1|0:0-u|0)|0)>0){C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else{C=L;T=t;u=g}break}case 117:{O=L+8|0;b[(O&o)>>1]=1;if((c[(Zb&p)>>2]|0)>((c[(ha&p)>>2]|0)+1|0)){g=m;m=r;u=x;ie=832;break c}N=c[(s+(t*20|0)&p)+12>>2]|0;M=c[((c[(Xd&p)>>2]|0)+(N<<4)&p)+4>>2]|0;P=s+(t*20|0)+4|0;I=c[(P&p)>>2]|0;C=M+4|0;K=c[(C&p)>>2]|0;c[(K&p)+4>>2]=c[(M&p)>>2];c[(ke&p)>>2]=0;do if(!(c[(K&p)+8>>2]|0)){u=dl(K,I,ke,0)|0;if(!u){u=Xm(M,I,0)|0;if(u){g=c[(ke&p)>>2]|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}if(I>>>0<=1){g=c[(ke&p)>>2]|0;pl(g,9);if(!g){u=0;A=0;break}Bg(c[(g&p)+68>>2]|0);u=0;A=0;break}if(!(a[(K&n)+17>>0]|0)){g=c[(ke&p)>>2]|0;u=Ym(c[(g&p)+52>>2]|0,g,c[(g&p)+72>>2]|0)|0;if(!g){A=0;break}Bg(c[(g&p)+68>>2]|0);A=0;break}J=c[(C&p)>>2]|0;c[(J&p)+4>>2]=c[(M&p)>>2];J=c[((c[(J&p)+12>>2]|0)&p)+56>>2]|0;J=d[(J&n)+53>>0]<<16|d[(J&n)+52>>0]<<24|d[(J&n)+54>>0]<<8|d[(J&n)+55>>0];C=c[(ke&p)>>2]|0;if((J|0)==(I|0)){u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(!u)A=0;else{A=0;break}}else{if(C)Bg(c[(C&p)+68>>2]|0);u=dl(K,J,Sd,0)|0;if(u){A=0;break}C=c[(Sd&p)>>2]|0;u=Zm(K,C,1,0,I,0)|0;if(C)Bg(c[(C&p)+68>>2]|0);if(u){A=0;break}c[(Sd&p)>>2]=0;u=dl(K,J,Sd,0)|0;C=c[(Sd&p)>>2]|0;if(u){if(!C){A=0;break}}else u=Ym(c[(C&p)+52>>2]|0,C,c[(C&p)+72>>2]|0)|0;Bg(c[(C&p)+68>>2]|0);if(!u)A=J;else{A=0;break}}H=((c[2514]|0)>>>0)/((c[(K&p)+32>>2]|0)>>>0)|0;F=H+1|0;I=K+36|0;while(1){C=J+-1|0;if((C|0)==(F|0)){J=C;continue}if(C>>>0<2)E=0;else{E=J+-3|0;E=E-((E>>>0)%(((((c[(I&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;E=((E+1|0)==(H|0)?3:2)+E|0}if((E|0)==(C|0))J=C;else break}u=Dg(M,4,C)|0}else A=0}else{u=262;A=0}while(0);b[(O&o)>>1]=4;V=L;c[(V&p)>>2]=A;c[(V&p)+4>>2]=((A|0)<0)<<31>>31;if((u|0)==0&(A|0)!=0){g=m;K=N;C=P;m=r;u=L;r=t;ie=865;break d}else{C=L;T=t}break}case 118:{c[(jd&p)>>2]=0;g=s+(t*20|0)+12|0;u=Xm(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+8>>2]<<4)&p)+4>>2]|0,c[(s+(t*20|0)&p)+4>>2]|0,(c[(g&p)>>2]|0)!=0?jd:0)|0;g=c[(g&p)>>2]|0;if((g|0)!=0?(Ic=c[(jd&p)>>2]|0,c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+Ic,(g|0)>0):0){C=z+(g*40|0)|0;T=C;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,Ic|0,((Ic|0)<0)<<31>>31|0)|0;c[(C&p)>>2]=T;c[(C&p)+4>>2]=G;C=L;T=t}else{C=L;T=t}break}case 121:case 120:{c[(vd&p)>>2]=0;u=Am(c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,vd,J<<24>>24==121?1:2)|0;T=c[(vd&p)>>2]|0;C=L;c[(C&p)>>2]=T;c[(C&p)+4>>2]=((T|0)<0)<<31>>31;C=L;T=t;break}case 119:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(g&p)+56>>2]|0;if(u){g=m;m=r;J=L;r=t;ie=878;break d}u=c[(g&p)>>2]|0;C=L;T=t;u=Xm(c[(u&p)>>2]|0,c[(u&p)+60>>2]|0,0)|0;break}case 123:{C=L;T=t;u=an(le,c[(s+(t*20|0)&p)+4>>2]|0)|0;break}case 124:{g=m;m=r;u=L;r=t;ie=886;break d}case 122:{g=m;m=r;J=L;r=t;ie=881;break d}case 126:{g=m;m=r;u=L;r=t;ie=895;break d}case 125:{g=m;m=r;J=L;r=t;ie=887;break d}case 127:{g=m;m=r;u=L;ie=903;break d}case 128:{g=m;m=r;J=L;ie=947;break d}case 129:{w=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(w*40|0)|0;w=z+(w*40|0)+8|0;g=b[(w&o)>>1]|0;do if(g&32){E=c[(v&p)>>2]|0;u=E+26|0;g=b[(u&o)>>1]|0;if(!(g&2)){if(!(g&1)){g=E+8|0;c[(g&p)>>2]=kn(c[(g&p)>>2]|0)|0;g=b[(u&o)>>1]|0}b[(u&o)>>1]=g&65535|2}C=E+8|0;A=c[(C&p)>>2]|0;if(!A){g=b[(w&o)>>1]|0;break}w=A;v=c[(w&p)>>2]|0;w=c[(w&p)+4>>2]|0;V=c[(A&p)+8>>2]|0;c[(C&p)>>2]=V;if(!V)Zk(E);u=c[(s+(t*20|0)&p)+12>>2]|0;g=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312)){ie=g;c[(ie&p)>>2]=v;c[(ie&p)+4>>2]=w;b[(u&o)>>1]=4;u=0;ie=19;break e}else{Zg(g,v,w);u=0;ie=19;break e}}while(0);if(!(g&9312))b[(w&o)>>1]=1;else vg(v);t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=0;ie=19;break}case 130:{g=m;m=r;u=L;ie=966;break d}case 131:{g=m;m=r;u=L;r=t;ie=993;break d}case 132:{g=m;m=r;u=L;r=t;ie=1009;break d}case 134:{g=m;m=r;J=L;r=t;ie=1010;break d}case 135:{g=m;m=r;u=L;r=t;ie=1015;break d}case 136:{g=m;m=r;r=t;ie=1022;break d}case 137:{g=m;m=r;u=L;r=t;ie=1028;break d}case 138:{g=m;m=r;u=L;r=t;ie=1030;break d}case 139:{g=m;m=r;J=L;r=t;ie=1032;break d}case 140:{g=m;m=r;u=L;r=t;ie=1034;break d}case 141:{g=m;m=r;u=L;r=t;ie=1036;break d}case 10:{V=a[(s+(t*20|0)&n)+3>>0]|0;g=V&255;u=c[(Bb&p)>>2]|0;if(V<<24>>24){v=0;w=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){c[(u+(v<<2)&p)>>2]=w;v=v+1|0;if((v|0)>=(g|0))break;else w=w+40|0}}V=c[(s+(t*20|0)&p)+16>>2]|0;c[(Ga&p)>>2]=V;U=c[(s+(t*20|0)&p)+12>>2]|0;c[(Ha&p)>>2]=z+(U*40|0);U=z+(U*40|0)+12|0;c[(U&p)>>2]=(c[(U&p)>>2]|0)+1;b[(Ia&o)>>1]=1;c[(Ja&p)>>2]=le;c[(Ka&p)>>2]=0;c[(Vc&p)>>2]=Md;c[(La&p)>>2]=0;c[(Ma&p)>>2]=f;c[(Na&p)>>2]=t;a[(Oa&n)>>0]=0;mc[c[(V&p)+16>>2]&63](Vc,g,u);if(!(c[(La&p)>>2]|0))u=0;else{c[(ke&p)>>2]=Sg(Md,1)|0;dh(je,le,10344,ke);u=c[(La&p)>>2]|0}do if((a[(Oa&n)>>0]|0)!=0?(Mc=c[(s+((t+-1|0)*20|0)&p)+4>>2]|0,(Mc|0)!=0):0){g=z+(Mc*40|0)|0;v=z+(Mc*40|0)+8|0;if(!(b[(v&o)>>1]&9312)){V=g;c[(V&p)>>2]=1;c[(V&p)+4>>2]=0;b[(v&o)>>1]=4;break}else{Zg(g,1,0);break}}while(0);if((b[(Ia&o)>>1]&9312)==0&(c[(Ka&p)>>2]|0)==0){C=L;T=t}else{Qg(Md);C=L;T=t}break}case 11:{c[(Rc&p)>>2]=0;c[(Pa&p)>>2]=-1;c[(Qa&p)>>2]=-1;g=Wh(le,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,Qa,Pa)|0;if((g|0)==5){c[(Rc&p)>>2]=1;g=0}v=0;w=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){C=c[(Rc+(v<<2)&p)>>2]|0;A=((C|0)<0)<<31>>31;u=w+8|0;if(!(b[(u&o)>>1]&9312)){V=w;c[(V&p)>>2]=C;c[(V&p)+4>>2]=A;b[(u&o)>>1]=4}else Zg(w,C,A);v=v+1|0;if((v|0)==3){C=L;T=t;u=g;break}else w=w+40|0}break}case 142:{C=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(C*40|0)|0;u=Yk(v,c[(s+(t*20|0)&p)+16>>2]|0)|0;if(u){c[(ke&p)>>2]=Sg(v,1)|0;dh(je,le,10344,ke)}Yl(v,xb)|0;w=e[(z+(C*40|0)&o)+8>>1]|0;if(w&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(w&16384)g=(c[(v&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 12:{g=c[(s+(t*20|0)&p)+12>>2]|0;L=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(c[(L&p)+4>>2]&p)>>2]|0;J=a[(I&n)+5>>0]|0;H=J&255;g=(g|0)==-1?H:g;do if((d[(I&n)+16>>0]|0)>2)g=H;else if((c[(c[(I&p)+64>>2]&p)>>2]|0)!=0?(V=I+72|0,U=c[(V&p)+4>>2]|0,(U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0):0){g=H;break}while(0);if(!(a[(I&n)+15>>0]|0))A=c[(I&p)+168>>2]|0;else A=10360;K=(g|0)==5;if(K)if(A){C=A;while(1)if(!(a[(C&n)>>0]|0))break;else C=C+1|0;if(C-A&1073741823){C=c[(c[(I&p)+60>>2]&p)>>2]|0;if(!(a[(I&n)+4>>0]|0))if((c[(C&p)>>2]|0)>1?!((c[(C&p)+52>>2]|0)==0|(g|0)==(H|0)):0)ie=1077;else{g=H;u=0}else ie=1076}else{g=H;u=0}}else{g=H;u=0}else ie=1076;if((ie|0)==1076){ie=0;if((g|0)==(H|0)){g=H;u=0}else ie=1077}do if((ie|0)==1077){ie=0;C=J<<24>>24==5;if(C|K){if(!(a[(ee&n)>>0]|0)){g=m;s=K;m=r;u=x;ie=1080;break c}if((c[(Zb&p)>>2]|0)>1){g=m;s=K;m=r;u=x;ie=1080;break c}if(!C){if(J<<24>>24==4)sn(I,2)|0}else{J=I+208|0;if(!(c[(J&p)>>2]|0)){c[(_c&p)>>2]=0;u=fl(I,1)|0;if(u)break;u=c[(I&p)>>2]|0;u=pc[c[(u&p)+32>>2]&31](u,c[(I&p)+212>>2]|0,0,_c)|0;if((u|0)==0&(c[(_c&p)>>2]|0)!=0)u=pn(I)|0;if(u)break;if(c[(J&p)>>2]|0)ie=1088}else ie=1088;if((ie|0)==1088){ie=0;u=qn(I)|0;if(u)break;u=rn(c[(J&p)>>2]|0,d[(I&n)+9>>0]|0,c[(I&p)+152>>2]|0,c[(I&p)+200>>2]|0)|0;c[(J&p)>>2]=0;if(u)break}sn(I,g)|0}u=Fg(L,K?2:1)|0}else u=0}while(0);g=sn(I,(u|0)==0?g:H)|0;C=c[(s+(t*20|0)&p)+8>>2]|0;J=z+(C*40|0)|0;b[(z+(C*40|0)&o)+8>>1]=2562;if((g|0)==6){c[(z+(C*40|0)&p)+16>>2]=0;g=0}else{v=c[(g<<2&p)+32216>>2]|0;c[(z+(C*40|0)&p)+16>>2]=v;g=v;while(1)if(!(a[(g&n)>>0]|0))break;else g=g+1|0;g=g-v&1073741823}c[(z+(C*40|0)&p)+12>>2]=g;a[(z+(C*40|0)&n)+10>>0]=1;Yl(J,xb)|0;C=J;T=t;break}case 13:{if(!(a[(ee&n)>>0]|0)){g=m;m=r;u=x;ie=1101;break c}if((c[(Ra&p)>>2]|0)>1){g=m;m=r;u=x;ie=1103;break c}S=c[(Tb&p)>>2]|0;N=c[(vb&p)>>2]|0;w=c[(wb&p)>>2]|0;v=c[(Sa&p)>>2]|0;c[(Tb&p)>>2]=S&-2762753|2107392;c[(Sa&p)>>2]=0;g=c[((c[(Xd&p)>>2]|0)&p)+4>>2]|0;P=g+4|0;I=a[((c[(c[(P&p)>>2]&p)>>2]|0)&n)+15>>0]|0;V=c[(Ub&p)>>2]|0;u=tn(le,je,(a[(_b&n)>>0]|0)==2?42432:42464)|0;J=c[(Ub&p)>>2]|0;if((J|0)>(V|0))M=(c[(Xd&p)>>2]|0)+(J+-1<<4)|0;else M=0;i:do if(!u){O=c[((c[(Xd&p)>>2]|0)+(J+-1<<4)&p)+4>>2]|0;un(O)|0;T=c[(P&p)>>2]|0;c[(T&p)+4>>2]=c[(g&p)>>2];T=(c[(T&p)+32>>2]|0)-(c[(T&p)+36>>2]|0)|0;u=tn(le,je,42488)|0;if(!u){u=tn(le,je,42528)|0;if(!u){u=yg(g,2)|0;if(!u){J=c[(P&p)>>2]|0;if((a[((c[(J&p)>>2]|0)&n)+5>>0]|0)==5)c[(Ta&p)>>2]=0;if(!(xg(O,c[(J&p)+32>>2]|0,T,0)|0)){if(I<<24>>24==0?(xg(O,c[(Ta&p)>>2]|0,T,0)|0)!=0:0){u=7;break}if(a[(ge&n)>>0]|0){u=7;break}J=a[(Ua&n)>>0]|0;do if(J<<24>>24>-1)J=J<<24>>24;else{J=c[(P&p)>>2]|0;c[(J&p)+4>>2]=c[(g&p)>>2];if(!(a[(J&n)+17>>0]|0)){J=0;break}J=(a[(J&n)+18>>0]|0)==0?1:2}while(0);vn(O,J)|0;u=wn(le,je,42536)|0;if(u)break;u=wn(le,je,42688)|0;if(u)break;u=wn(le,je,42792)|0;if(u)break;u=wn(le,je,42912)|0;if(u)break;u=wn(le,je,43112)|0;if(u)break;u=wn(le,je,43232)|0;if(u)break;u=tn(le,je,43392)|0;if(!u)J=0;else break;do{u=d[(J&n)+43576>>0]|0;wm(g,u,ad);u=Dg(O,u,(d[((J|1)&n)+43576>>0]|0)+(c[(ad&p)>>2]|0)|0)|0;J=J+2|0;if(u)break i}while((J|0)<10);H=c[(P&p)>>2]|0;c[(H&p)+4>>2]=c[(g&p)>>2];J=c[(O&p)>>2]|0;K=O+4|0;I=c[(K&p)>>2]|0;c[(I&p)+4>>2]=J;H=c[((c[(H&p)>>2]|0)&p)+60>>2]|0;F=c[(H&p)>>2]|0;if(F){V=c[(I&p)+32>>2]|0;V=sw(c[(I&p)+44>>2]|0,0,V|0,((V|0)<0)<<31>>31|0)|0;u=id;c[(u&p)>>2]=V;c[(u&p)+4>>2]=G;u=ac[c[(F&p)+40>>2]&63](H,11,id)|0;u=(u|0)==12?0:u;if(u)break;J=c[(O&p)>>2]|0}U=Tc+0|0;V=U+48|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(Va&p)>>2]=J;c[(Wa&p)>>2]=O;c[(Xa&p)>>2]=g;c[(Ya&p)>>2]=1;gd(Tc,2147483647)|0;u=hd(Tc)|0;if(u){C=c[(c[((c[(Xa&p)>>2]|0)&p)+4>>2]&p)>>2]|0;if(a[(C&n)+15>>0]|0)break;if(a[(C&n)+12>>0]|0)break;xn(C);break}u=(c[(P&p)>>2]|0)+22|0;b[(u&o)>>1]=e[(u&o)>>1]&65533;u=un(O)|0;if(u)break;J=c[(K&p)>>2]|0;c[(J&p)+4>>2]=c[(O&p)>>2];if(!(a[(J&n)+17>>0]|0))E=0;else E=(a[(J&n)+18>>0]|0)==0?1:2;vn(g,E)|0;u=xg(g,c[((c[(K&p)>>2]|0)&p)+32>>2]|0,T,1)|0}else u=7}}}}while(0);c[(Tb&p)>>2]=S;c[(vb&p)>>2]=N;c[(wb&p)>>2]=w;c[(Sa&p)>>2]=v;xg(g,-1,-1,1)|0;a[(ee&n)>>0]=1;if(M){V=M+4|0;Ml(c[(V&p)>>2]|0);c[(V&p)>>2]=0;c[(M&p)+12>>2]=0}Eg(le);C=L;T=t;break}case 143:{V=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;I=c[(V&p)+4>>2]|0;c[(I&p)+4>>2]=c[(V&p)>>2];if(!(a[(I&n)+17>>0]|0)){g=m;m=r;u=L;ie=1157;break d}E=I+44|0;H=c[(E&p)>>2]|0;A=I+12|0;C=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;C=d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0];F=El(I,H,C)|0;if(H>>>0<F>>>0){g=m;m=r;u=x;ie=1145;break c}if(!C){g=m;m=r;u=L;ie=1157;break d}J=I+8|0;g=c[(J&p)>>2]|0;do if(g){C=g;do{if(C){ie=1150;break}C=c[2]|0}while((C|0)!=0);if((ie|0)==1150){ie=0;u=Fl(C,0,0)|0;if(u)break;g=c[(J&p)>>2]|0}if(g){do{V=g+72|0;a[(V&n)>>0]=d[(V&n)>>0]&251;g=c[(g&p)+8>>2]|0}while((g|0)!=0);ie=1154}else ie=1154}else ie=1154;while(0);if((ie|0)==1154){ie=0;u=Gl(I,F,H,0)|0;if(!u){u=Gg(c[((c[(A&p)>>2]|0)&p)+68>>2]|0)|0;V=c[((c[(A&p)>>2]|0)&p)+56>>2]|0;U=c[(E&p)>>2]|0;a[(V&n)+28>>0]=U>>>24;a[(V&n)+29>>0]=U>>>16;a[(V&n)+30>>0]=U>>>8;a[(V&n)+31>>0]=U}}if((u|0)==101){g=m;m=r;u=L;ie=1157;break d}else{C=L;T=t}break}case 145:{g=c[(s+(t*20|0)&p)+12>>2]|0;if((g&255|0)==0?(c[(Tb&p)>>2]&16384|0)!=0:0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}C=c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;A=c[(s+(t*20|0)&p)+8>>2]|0;if(!(a[(C&n)+9>>0]|0)){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}v=g+1&255;w=C+4|0;c[((c[(w&p)>>2]|0)&p)+4>>2]=c[(C&p)>>2];u=bl(C,A,v)|0;if(!u){g=m;m=r;u=L;r=t;ie=1166;break d}if((u&255|0)!=6){g=m;m=r;s=u;u=x;ie=1309;break c}c[(ke&p)>>2]=c[(s+(t*20|0)&p)+16>>2];dh(je,le,42224,ke);C=L;T=t;break}case 144:{g=m;m=r;u=L;r=t;ie=1158;break d}case 146:{J=c[(s+(t*20|0)&p)+16>>2]|0;v=c[(Za&p)>>2]|0;u=(v|0)>0;if(u?(c[(_a&p)>>2]|0)==0:0){u=6;ie=1188}else ie=1179;j:do if((ie|0)==1179){ie=0;if(!J){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=J+8|0;w=(c[(c[(g&p)>>2]&p)>>2]|0)+56|0;if(c[(w&p)>>2]|0){if(u){C=c[(_a&p)>>2]|0;A=0;do{if((c[(C+(A<<2)&p)>>2]|0)==(J|0)){u=0;ie=1188;break j}A=A+1|0}while((A|0)<(v|0))}u=yn(le)|0;if(!u){u=lc[c[(w&p)>>2]&127](c[(g&p)>>2]|0)|0;if(!u){u=c[(Za&p)>>2]|0;c[(Za&p)>>2]=u+1;c[((c[(_a&p)>>2]|0)+(u<<2)&p)>>2]=J;u=J+12|0;c[(u&p)>>2]=(c[(u&p)>>2]|0)+1;u=0}}else ie=1188}else u=0}while(0);if((ie|0)==1188){ie=0;if(!J){C=L;T=t;break e}g=J+8|0}Mm(f,c[(g&p)>>2]|0);C=L;T=t;break}case 147:{U=Kd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[($a&p)>>2]=le;g=_g(Kd,z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0)|0;u=Sg(Kd,1)|0;k:do if(u){v=_h(le,u,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;g=c[(c[(v&p)+56>>2]&p)>>2]|0;u=bn(cb,g,Xc)|0;if((u|0)!=0?(Oc=c[(u&p)+8>>2]|0,(Oc|0)!=0):0){g=zn(le,v,Oc,c[((c[(Oc&p)>>2]|0)&p)+4>>2]|0,je)|0;if(g)break;u=v+60|0;g=c[(u&p)>>2]|0;if(!g){g=0;break}while(1){if((c[(g&p)>>2]|0)==(le|0))break;g=c[(g&p)+24>>2]|0;if(!g){g=0;break k}}g=yn(le)|0;if(g)break;g=c[(u&p)>>2]|0;l:do if(!g)g=0;else while(1){if((c[(g&p)>>2]|0)==(le|0))break l;g=c[(g&p)+24>>2]|0;if(!g){g=0;break}}while(0);V=c[(Za&p)>>2]|0;c[(Za&p)>>2]=V+1;c[((c[(_a&p)>>2]|0)+(V<<2)&p)>>2]=g;g=g+12|0;c[(g&p)>>2]=(c[(g&p)>>2]|0)+1;g=0;break}c[(ke&p)>>2]=g;c[(je&p)>>2]=uh(le,28320,ke)|0;g=1}while(0);if((b[(ab&o)>>1]&9312)==0&(c[(bb&p)>>2]|0)==0){C=L;T=t;u=g}else{Qg(Kd);C=L;T=t;u=g}break}case 148:{c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+1;g=_h(le,c[(s+(t*20|0)&p)+16>>2]|0,c[((c[(Xd&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<4)&p)>>2]|0)|0;m:do if((g|0)!=0?(Pc=g+60|0,Qc=c[(Pc&p)>>2]|0,(Qc|0)!=0):0){u=Qc;do{if((c[((c[(u&p)+8>>2]|0)&p)+4>>2]|0)>0){u=6;break m}u=c[(u&p)+24>>2]|0}while((u|0)!=0);g=Ok(le,g)|0;v=g+8|0;u=lc[c[((c[(c[(g&p)+4>>2]&p)>>2]|0)&p)+20>>2]&127](c[(v&p)>>2]|0)|0;if(!u){c[(v&p)>>2]=0;c[(Pc&p)>>2]=0;An(g);u=0}}else u=0;while(0);c[(ha&p)>>2]=(c[(ha&p)>>2]|0)+-1;C=L;T=t;break}case 149:{g=m;m=r;u=L;r=t;ie=1213;break d}case 150:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;C=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;if(a[(g&n)+25>>0]|0){g=m;m=r;u=L;r=t;ie=1226;break d}V=g+32|0;u=c[(c[(V&p)>>2]&p)>>2]|0;U=c[(u&p)>>2]|0;c[(Id&p)>>2]=0;c[(Id&p)+4>>2]=0;c[(Id&p)+8>>2]=0;c[(Id&p)+12>>2]=0;c[(Id&p)+16>>2]=0;c[(Id&p)+20>>2]=0;c[(Id&p)+24>>2]=0;c[(Id&p)>>2]=A;v=z+(C*40|0)+8|0;b[(v&o)>>1]=e[(v&o)>>1]&48640|1;V=ac[c[(U&p)+44>>2]&63](c[(V&p)>>2]|0,Id,c[(s+(t*20|0)&p)+8>>2]|0)|0;Mm(f,u);u=c[(db&p)>>2]|0;u=(u|0)==0?V:u;Yl(A,xb)|0;v=e[(v&o)>>1]|0;if(v&18){g=c[(z+(C*40|0)&p)+12>>2]|0;if(v&16384)g=(c[(A&p)>>2]|0)+g|0;if((g|0)>(c[((c[(z+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){g=m;m=r;u=x;ie=1316;break c}else{C=L;T=t}}else{C=L;T=t}break}case 14:{A=c[(s+(t*20|0)&p)+12>>2]|0;C=A+1|0;F=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;J=c[(F&p)+32>>2]|0;I=c[(J&p)>>2]|0;H=c[(I&p)>>2]|0;E=c[(z+(C*40|0)&p)>>2]|0;A=c[(z+(A*40|0)&p)>>2]|0;g=c[(Bb&p)>>2]|0;if((E|0)>0){u=0;do{V=u;u=u+1|0;c[(g+(V<<2)&p)>>2]=z+((u+C|0)*40|0)}while((u|0)!=(E|0))}u=tc[c[(H&p)+32>>2]&31](J,A,c[(s+(t*20|0)&p)+16>>2]|0,E,g)|0;Mm(f,I);if((u|0)==0?(lc[c[(H&p)+40>>2]&127](J)|0)!=0:0)t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;a[(F&n)+25>>0]=0;C=L;T=t;break}case 151:{g=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;if(a[(g&n)+25>>0]|0){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}g=g+32|0;v=c[(g&p)>>2]|0;V=c[(v&p)>>2]|0;u=c[(V&p)>>2]|0;v=lc[c[(u&p)+36>>2]&127](v)|0;Mm(f,V);if((v|0)==0?(lc[c[(u&p)+40>>2]&127](c[(g&p)>>2]|0)|0)!=0:0){u=0;ie=19;break e}t=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=v;ie=19;break}case 15:{F=s+(t*20|0)+16|0;v=c[((c[(F&p)>>2]|0)&p)+8>>2]|0;if(!v){g=m;m=r;s=6;u=x;ie=1309;break c}g=c[(v&p)>>2]|0;if(!g){g=m;m=r;s=6;u=x;ie=1309;break c}I=c[(s+(t*20|0)&p)+8>>2]|0;E=g+52|0;C=c[(E&p)>>2]|0;if(!C){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}H=a[(eb&n)>>0]|0;J=c[(Bb&p)>>2]|0;if((I|0)>0){C=0;A=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;while(1){c[(J+(C<<2)&p)>>2]=A;C=C+1|0;if((C|0)==(I|0))break;else A=A+40|0}C=c[(E&p)>>2]|0}A=s+(t*20|0)+3|0;a[(eb&n)>>0]=a[(A&n)>>0]|0;u=pc[C&31](v,I,J,Hd)|0;a[(eb&n)>>0]=H;Mm(f,v);if(!u){if(c[(s+(t*20|0)&p)+4>>2]|0){l=Hd;r=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;V=ne;c[(V&p)>>2]=r;c[(V&p)+4>>2]=l}}else if((u&255|0)==19?(a[((c[(F&p)>>2]|0)&n)+16>>0]|0)!=0:0){g=a[(A&n)>>0]|0;if(g<<24>>24==5)g=2;else if(g<<24>>24==4){g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}a[(fe&n)>>0]=g;C=L;T=t;break e}c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;C=L;T=t;break}case 152:{g=c[((c[(s+(t*20|0)&p)+16>>2]|0)&p)+8>>2]|0;u=c[(s+(t*20|0)&p)+4>>2]|0;v=z+(u*40|0)|0;if(((b[(z+(u*40|0)&o)+8>>1]&2)!=0?(a[(z+(u*40|0)&n)+10>>0]|0)!=1:0)?(Wd=Bn(v,1)|0,(Wd|0)!=0):0){g=m;m=r;s=Wd;u=x;ie=1309;break c}u=rc[c[((c[(g&p)>>2]|0)&p)+76>>2]&127](g,c[(z+(u*40|0)&p)+16>>2]|0)|0;Mm(f,g);b[(Yd&o)>>1]=b[(Yd&o)>>1]&-9;C=L;T=t;break}case 153:{g=m;m=r;u=L;r=t;ie=1257;break d}case 155:{g=m;m=r;ie=1264;break d}case 154:{g=m;m=r;J=L;r=t;ie=1258;break d}default:{g=m;m=r;S=z;T=s;U=W;V=X;u=L;r=t;break d}}while(0);n:do if((ie|0)==57){ie=0;w=L+8|0;b[(w&o)>>1]=2562;c[(L&p)+16>>2]=v;c[(L&p)+12>>2]=g;a[(L&n)+10>>0]=Jc;if((a[(s+(t*20|0)&n)+3>>0]|0)!=0?(V=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0,!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)):0){b[(w&o)>>1]=2576;C=L;T=t}else{C=L;T=t}}else if((ie|0)==536){if(b[(Yd&o)>>1]&8){g=m;m=r;s=516;u=x;ie=1309;break c}C=c[(s+(t*20|0)&p)+8>>2]|0;I=c[(s+(t*20|0)&p)+12>>2]|0;g=c[(Xd&p)>>2]|0;H=c[(g+(I<<4)&p)+4>>2]|0;if(J<<24>>24==55){g=a[((c[(g+(I<<4)&p)+12>>2]|0)&n)+76>>0]|0;if((g&255)<(d[(Mb&n)>>0]|0)){a[(Mb&n)>>0]=g;J=1}else J=1}else J=0;v=s+(t*20|0)+3|0;if(a[(v&n)>>0]&4){V=z+(C*40|0)|0;g=Vg(V)|0;c[(V&p)>>2]=g;c[(V&p)+4>>2]=G;V=z+(C*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;if((g|0)<2){g=m;m=r;s=x;ie=542;break c}else E=g}else E=C;u=s+(t*20|0)+1|0;C=a[(u&n)>>0]|0;if(C<<24>>24==-6){A=c[(s+(t*20|0)&p)+16>>2]|0;C=(e[(A&o)+8>>1]|0)+(e[(A&o)+6>>1]|0)|0}else if(C<<24>>24==-14){C=c[(s+(t*20|0)&p)+16>>2]|0;A=0}else{C=0;A=0}g=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,C,I,1)|0;if(!g){y=ge;z=je;g=m;m=x;ie=1317;break a}a[(g&n)+25>>0]=1;V=g+27|0;a[(V&n)>>0]=a[(V&n)>>0]|8;c[(g&p)+28>>2]=E;ie=ym(H,E,J,A,c[(g&p)>>2]|0)|0;c[(g&p)+8>>2]=A;a[(V&n)>>0]=((a[(u&n)>>0]|0)!=-6&1)<<2&255|a[(V&n)>>0]&-5;u=ie;ie=548}else if((ie|0)==715){ie=0;M=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;V=c[(M&p)+56>>2]|0;do if(!V){u=c[(M&p)>>2]|0;g=qm(u)|0;if(!g)if(!(a[(u&n)+73>>0]|0)){v=1;g=0}else{v=0;g=Vm(u)|0}else v=1;a[(M&n)+26>>0]=0;c[(M&p)+60>>2]=0;a[(M&n)+25>>0]=v;if(!v){C=L;T=t;u=g;break n}}else{do if(!(a[(V&n)+56>>0]|0)){g=V+36|0;if(!(c[(g&p)>>2]|0)){g=0;ie=756}else{g=Nm(V+64|0,g)|0;ie=755}}else{g=Om(V)|0;if(!g){U=V+59|0;o:do if(!(a[(U&n)>>0]|0)){u=0;g=0}else{w=0;v=0;p:while(1){T=V+(w<<6)+64|0;c[(ke&p)>>2]=0;S=V+(w<<6)+92|0;C=c[(S&p)>>2]|0;J=((C|0)<0)<<31>>31;do if((C|0)>16){I=16;H=0;E=0;while(1){I=iw(I|0,H|0,4)|0;H=G;F=E+1|0;if(!((H|0)<(J|0)|(H|0)==(J|0)&I>>>0<C>>>0)){H=E;break}else E=F}P=Sd;c[(P&p)>>2]=0;c[(P&p)+4>>2]=0;if((C|0)<17){ie=726;break}u=Qm(16)|0;c[(ke&p)>>2]=u;J=(u|0)==0;I=c[(S&p)>>2]|0;if(!((I|0)>0&(J^1))){g=J?7:0;break}N=(H|0)>0;P=0;O=0;do{c[(qd&p)>>2]=0;g=I-P|0;g=Pm(T,(g|0)<16?g:16,Sd,qd)|0;if(g){ie=747;break p}g=Rm(T,c[(qd&p)>>2]|0,pd)|0;do if(N){I=1;J=1;do{J=J<<4;I=I+1|0}while((I|0)!=(F|0));if(!g){H=1;I=u}else{J=c[(pd&p)>>2]|0;ie=743;break}while(1){K=(c[(I&p)+12>>2]|0)+((((O|0)/(J|0)|0|0)%16|0)*56|0)+48|0;I=c[(K&p)>>2]|0;if(!I){I=Qm(16)|0;if(!I){g=7;ie=738;break}g=Rm(T,I,K)|0;if(g){ie=738;break}I=c[(K&p)>>2]|0}I=c[(I&p)+4>>2]|0;H=H+1|0;if((H|0)>=(F|0)){ie=740;break}else J=(J|0)/16|0}if((ie|0)==738){J=c[(pd&p)>>2]|0;ie=743;break}else if((ie|0)==740){J=c[(pd&p)>>2]|0;ie=742;break}}else{J=c[(pd&p)>>2]|0;if(!g){I=u;ie=742}else ie=743}while(0);if((ie|0)==742){ie=0;c[((c[(I&p)+12>>2]|0)+(((O|0)%16|0)*56|0)&p)+48>>2]=J;g=0}else if((ie|0)==743){ie=0;Sm(J)}O=O+1|0;P=P+16|0;I=c[(S&p)>>2]|0}while((P|0)<(I|0)&(g|0)==0)}else{ie=Sd;c[(ie&p)>>2]=0;c[(ie&p)+4>>2]=0;ie=726}while(0);if((ie|0)==726){ie=0;g=Pm(T,C,Sd,ke)|0;u=c[(ke&p)>>2]|0}w=w+1|0;if(g){ie=746;break}if((w|0)>=(d[(U&n)>>0]|0)){g=0;break o}else v=u}if((ie|0)==746)Tm(u);else if((ie|0)==747)Tm(u);Tm(v);u=0}while(0);if(!g){g=Um(V+64|0,u)|0;c[(V&p)+20>>2]=u;if(!g){g=0;ie=755;break}else u=0}Tm(u);ie=755}else ie=756}while(0);if((ie|0)==755){ie=0;a[(M&n)+25>>0]=0;C=L;T=t;u=g;break n}else if((ie|0)==756){ie=0;a[(M&n)+25>>0]=1;break}}while(0);C=L;T=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;u=g}else if((ie|0)==765){u=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;c[(Fd&p)>>2]=c[(s+(t*20|0)&p)+12>>2];g=u;u=rc[c[(s+(t*20|0)&p)+16>>2]&127](c[(u&p)>>2]|0,Fd)|0;ie=766}while(0);do if((ie|0)==548){ie=0;a[((c[(g&p)>>2]|0)&n)+74>>0]=d[(v&n)>>0]&3;C=L;T=t}else if((ie|0)==766){c[(g&p)+60>>2]=0;g=g+25|0;if(!(c[(Fd&p)>>2]|0)){a[(g&n)>>0]=0;ie=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;t=f+(d[(s+(t*20|0)&n)+3>>0]<<2)+108|0;c[(t&p)>>2]=(c[(t&p)>>2]|0)+1;t=ie;ie=19;break}else{a[(g&n)>>0]=1;ie=19;break}}while(0);if((ie|0)==19){ie=0;if(c[(Cc&p)>>2]|0){u=je;g=m;m=x;break b}g=c[(be&p)>>2]|0;if(!((g|0)==0|m>>>0<y>>>0)){y=c[(yc&p)>>2]|0;if(!(lc[g&127](c[(Zd&p)>>2]|0)|0)){y=y+m-((m>>>0)%(y>>>0)|0)|0;C=L;T=t}else{g=m;s=9;m=x;ie=1311;break a}}else{C=L;T=t}}t=T+1|0;if(!u){g=m;u=C}else{g=m;s=u;m=x;ie=1311;break a}}q:switch(ie|0){case 22:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 23:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=c[(z+(S*40|0)&p)>>2]|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 24:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;u=z+(r*40|0)|0;T=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;b[(z+(r*40|0)&o)+8>>1]=4;r=c[(s+(t*20|0)&p)+8>>2]|0;S=z;T=s;U=W;V=X;r=(r|0)==0?t:r+-1|0;break}case 25:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;r=(c[(s+((c[(z+(S*40|0)&p)>>2]|0)*20|0)&p)+8>>2]|0)+-1|0;b[(z+(S*40|0)&o)+8>>1]=128;S=z;T=s;U=W;V=X;break}case 26:{ie=0;S=c[(s+(t*20|0)&p)+4>>2]|0;b[(z+(S*40|0)&o)+8>>1]=4;S=z+(S*40|0)|0;r=c[(S&p)>>2]|0;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 27:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+12>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else ie=28;break}case 44:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 45:{ie=0;U=c[(s+(r*20|0)&p)+16>>2]|0;T=c[(U&p)+4>>2]|0;S=u;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 46:{ie=0;b[(u&o)+8>>1]=8;h[(u&q)>>3]=+h[(c[(s+(r*20|0)&p)+16>>2]&q)>>3];S=z;T=s;U=W;V=X;break}case 60:{ie=0;J=(c[(s+(r*20|0)&p)+12>>2]|0)-(c[(s+(r*20|0)&p)+8>>2]|0)|0;t=(c[(s+(r*20|0)&p)+4>>2]|0)!=0?257:1;b[(u&o)+8>>1]=t;if((J|0)>0){w=J;A=u;do{v=A+48|0;A=A+40|0;if(!(b[(v&o)>>1]&9312))b[(v&o)>>1]=1;else vg(A);b[(v&o)>>1]=t;w=w+-1|0}while((w|0)>0);S=z;T=s;U=W;V=X;u=u+(J*40|0)|0}else{S=z;T=s;U=W;V=X}break}case 65:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&65406|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;break}case 66:{ie=0;Xg(u,c[(s+(r*20|0)&p)+16>>2]|0,c[(s+(r*20|0)&p)+4>>2]|0,0,0)|0;a[(u&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;break}case 67:{ie=0;C=(c[(s+(r*20|0)&p)+4>>2]|0)+-1|0;A=c[(Ab&p)>>2]|0;w=A+(C*40|0)|0;v=e[(A+(C*40|0)&o)+8>>1]|0;if(v&18){t=c[(A+(C*40|0)&p)+12>>2]|0;if(v&16384)t=(c[(w&p)>>2]|0)+t|0;if((t|0)>(c[((c[(A+(C*40|0)&p)+32>>2]|0)&p)+88>>2]|0)){t=r;u=x;ie=1316;break c}}Zl(u,w,2048);S=z;T=s;U=W;V=X;break}case 72:{ie=0;t=c[(s+(r*20|0)&p)+12>>2]|0;v=c[(s+(r*20|0)&p)+8>>2]|0;J=t+v|0;u=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=z+(v*40|0)|0;while(1){_l(v,u);t=t+-1|0;if(!t)break;else{u=u+40|0;v=v+40|0}}S=z;T=s;U=W;V=X;u=z+(J*40|0)|0;break}case 74:{ie=0;r=c[(s+(t*20|0)&p)+12>>2]|0;u=z+((c[(s+(t*20|0)&p)+4>>2]|0)*40|0)|0;J=z+((c[(s+(t*20|0)&p)+8>>2]|0)*40|0)|0;while(1){Zl(J,u,4096);if((b[(J&o)+8>>1]&4096)!=0?(Vl(J)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(!r){S=z;T=s;U=W;V=X;u=J;r=t;break q}r=r+-1|0;u=u+40|0;J=J+40|0}}case 79:{ie=0;u=z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0;Zl(u,z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 94:{ie=0;K=c[(s+(t*20|0)&p)+4>>2]|0;J=z+(K*40|0)|0;L=c[(s+(t*20|0)&p)+8>>2]|0;I=z+(L*40|0)|0;M=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(M*40|0)|0;H=z+(K*40|0)+8|0;E=b[(H&o)>>1]|0;F=z+(L*40|0)+8|0;C=b[(F&o)>>1]|0;if((C|E)&1){r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;S=z;T=s;U=W;V=X;r=t;break}else{vg(u);S=z;T=s;U=W;V=X;r=t;break}}if(E&16384){if(Rg(J)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}C=b[(F&o)>>1]|0}if((C&16384)!=0?(Rg(I)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(H&o)>>1]&18)==0?(bm(J,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}if((b[(F&o)>>1]&18)==0?(bm(I,Jc,0)|0)!=0:0){y=ge;z=je;r=m;m=x;ie=1317;break a}E=z+(K*40|0)+12|0;A=z+(L*40|0)+12|0;r=(c[(A&p)>>2]|0)+(c[(E&p)>>2]|0)|0;if((r|0)>(c[(zb&p)>>2]|0)){u=x;ie=1316;break c}v=(M|0)==(L|0);if(eh(u,r+2|0,v&1)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}w=z+(M*40|0)+8|0;b[(w&o)>>1]=e[(w&o)>>1]&48640|2;C=z+(M*40|0)+16|0;if(!v)kw(c[(C&p)>>2]|0,c[(z+(L*40|0)&p)+16>>2]|0,c[(A&p)>>2]|0)|0;kw((c[(C&p)>>2]|0)+(c[(A&p)>>2]|0)|0,c[(z+(K*40|0)&p)+16>>2]|0,c[(E&p)>>2]|0)|0;a[((c[(C&p)>>2]|0)+r&n)>>0]=0;a[((c[(C&p)>>2]|0)+r&n)+1>>0]=0;b[(w&o)>>1]=e[(w&o)>>1]|512;c[(z+(M*40|0)&p)+12>>2]=r;a[(z+(M*40|0)&n)+10>>0]=Jc;S=z;T=s;U=W;V=X;r=t;break}case 112:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;N=z+(V*40|0)|0;S=cm(N)|0;w=c[(s+(r*20|0)&p)+8>>2]|0;O=z+(w*40|0)|0;T=cm(O)|0;U=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(U*40|0)|0;r:do if(!((b[(z+(w*40|0)&o)+8>>1]|b[(z+(V*40|0)&o)+8>>1])&1)){s:do if(!((S&4&T)<<16>>16))L=0;else{t=N;C=c[(t&p)>>2]|0;t=c[(t&p)+4>>2]|0;F=O;v=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0;J=d[(P&n)>>0]|0;t:do if((J|0)==89){if((t|0)>-1|(t|0)==-1&C>>>0>4294967295){V=dw(-1,2147483647,v|0,F|0)|0;w=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((w|0)<(t|0)|(w|0)==(t|0)&V>>>0<C>>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=jw(C|0,t|0,1,0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==91){L=qw(v|0,F|0,0,1)|0;K=G;E=rw(v|0,F|0,0,1)|0;A=G;J=qw(C|0,t|0,0,1)|0;I=G;M=rw(C|0,t|0,0,1)|0;w=G;V=jw(v|0,F|0,-1,0)|0;pe=G;H=jw(C|0,t|0,-1,0)|0;qe=G;H=qe>>>0<1|(qe|0)==1&H>>>0<4294967295;do if(pe>>>0<1|(pe|0)==1&V>>>0<4294967295)if(H){v=sw(v|0,F|0,C|0,t|0)|0;t=G;break t}else{H=sw(J|0,I|0,E|0,A|0)|0;F=G;break}else{if(!H){L=1;break s}H=sw(M|0,w|0,L|0,K|0)|0;F=G}while(0);V=jw(H|0,F|0,-2147483648,0)|0;v=G;if(v>>>0>0|(v|0)==0&V>>>0>4294967295){L=1;break s}J=sw(M|0,w|0,E|0,A|0)|0;I=G;if((I|0)>-1|(I|0)==-1&J>>>0>4294967295){V=dw(-1,2147483647,0,H|0)|0;w=G;if(((F|0)>0|(F|0)==0&H>>>0>0)&((w|0)<(I|0)|(w|0)==(I|0)&V>>>0<J>>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,0,H|0)|0,t=G,V=jw(J|0,I|0,1,0)|0,v=G,(t|0)>(v|0)|(t|0)==(v|0)&w>>>0>V>>>0):0){L=1;break s}v=jw(0,H|0,J|0,I|0)|0;t=G}else if((J|0)==90){if((C|0)==0&(t|0)==-2147483648){if((F|0)>-1|(F|0)==-1&v>>>0>4294967295){L=1;break s}t=F^-2147483648;break}if((t|0)<0|(t|0)==0&C>>>0<1){V=dw(0,0,C|0,t|0)|0;M=G;w=dw(-1,2147483647,v|0,F|0)|0;A=G;if(((F|0)>0|(F|0)==0&v>>>0>0)&((A|0)<(M|0)|(A|0)==(M|0)&w>>>0<V>>>0)){L=1;break s}}else if((F|0)<0?(w=dw(1,-2147483648,v|0,F|0)|0,A=G,V=dw(1,0,C|0,t|0)|0,M=G,(A|0)>(M|0)|(A|0)==(M|0)&w>>>0>V>>>0):0){L=1;break s}v=dw(v|0,F|0,C|0,t|0)|0;t=G}else if((J|0)==92){if((C|0)==0&(t|0)==0)break r;if((C|0)==-1&(t|0)==-1&((v|0)==0&(F|0)==-2147483648)){L=1;break s}v=qw(v|0,F|0,C|0,t|0)|0;t=G}else{if((C|0)==-1){if((t|0)==-1){C=1;t=0}}else if((C|0)==0?(t|0)==0:0)break r;v=rw(v|0,F|0,C|0,t|0)|0;t=G}while(0);S=u;c[(S&p)>>2]=v;c[(S&p)+4>>2]=t;S=z+(U*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break q}while(0);D=+Ug(N);B=+Ug(O);C=d[(P&n)>>0]|0;if((C|0)==89)B=D+B;else if((C|0)==90)B=B-D;else if((C|0)==91)B=D*B;else if((C|0)==92){if(D==0.0)break;B=B/D}else{E=~~D>>>0;C=+R(D)>=1.0?(D>0.0?~~+da(+Q(D/4294967296.0),4294967295.0)>>>0:~~+ba((D-+(~~D>>>0))/4294967296.0)>>>0):0;I=~~B>>>0;J=+R(B)>=1.0?(B>0.0?~~+da(+Q(B/4294967296.0),4294967295.0)>>>0:~~+ba((B-+(~~B>>>0))/4294967296.0)>>>0):0;if(!E){if(!C)break}else if((E|0)==-1?(C|0)==-1:0){E=1;C=0}V=rw(I|0,J|0,E|0,C|0)|0;B=+(V>>>0)+4294967296.0*+(G|0)}h[(ke&q)>>3]=B;h[(Sd&q)>>3]=+h[(ke&q)>>3];if(!(+h[(ke&q)>>3]!=+h[(Sd&q)>>3])){h[(u&q)>>3]=B;V=z+(U*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|8;if(((T|S)&8)!=0|L<<24>>24!=0){S=z;T=s;U=W;V=X;break q}dm(u);S=z;T=s;U=W;V=X;break q}}while(0);t=z+(U*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}case 166:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(t){u=z+(t*40|0)|0;t=z+(t*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){S=u;c[(S&p)>>2]=0;c[(S&p)+4>>2]=0;b[(t&o)>>1]=4;S=z;T=s;U=W;V=X;u=J;break}else{Zg(u,0,0);S=z;T=s;U=W;V=X;u=J;break}}else{S=z;T=s;U=W;V=X;u=J}break}case 184:{ie=0;C=c[(s+(r*20|0)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+8>>2]|0;K=c[(s+(r*20|0)&p)+12>>2]|0;u=z+(K*40|0)|0;if((b[(z+(t*40|0)&o)+8>>1]|b[(z+(C*40|0)&o)+8>>1])&1){t=z+(K*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(u);S=z;T=s;U=W;V=X;break}}A=Vg(z+(t*40|0)|0)|0;L=G;J=Vg(z+(C*40|0)|0)|0;I=G;t=a[(H&n)>>0]|0;C=t&255;do if(t<<24>>24==86){A=J|A;t=I|L}else if(t<<24>>24!=85)if(!((J|0)==0&(I|0)==0)){if((I|0)<0){t=175-C&255;C=dw(0,0,J|0,I|0)|0;if((I|0)>-1|(I|0)==-1&J>>>0>4294967232){I=G;ie=194}}else{C=J;ie=194}if((ie|0)==194){ie=0;if(!((I|0)>0|(I|0)==0&C>>>0>63)){if(t<<24>>24==87){A=iw(A|0,L|0,C|0)|0;t=G;break}A=mw(A|0,L|0,C|0)|0;t=G;if((L|0)>=0)break;V=dw(64,0,C|0,I|0)|0;V=iw(-1,-1,V|0)|0;A=V|A;t=G|t;break}}if((L|0)>-1|(L|0)==-1&A>>>0>4294967295){A=0;t=0}else{t=(t<<24>>24!=87)<<31>>31;A=t;t=((t|0)<0)<<31>>31}}else t=L;else{A=J&A;t=I&L}while(0);S=u;c[(S&p)>>2]=A;c[(S&p)+4>>2]=t;S=z+(K*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;break}case 202:{ie=0;T=c[(s+(r*20|0)&p)+4>>2]|0;S=z+(T*40|0)|0;U=Vg(S)|0;T=z+(T*40|0)+8|0;b[(T&o)>>1]=e[(T&o)>>1]&48640|4;T=c[(s+(r*20|0)&p)+8>>2]|0;T=jw(U|0,G|0,T|0,((T|0)<0)<<31>>31|0)|0;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;break}case 203:{ie=0;u=c[(s+(r*20|0)&p)+4>>2]|0;v=z+(u*40|0)+8|0;t=b[(v&o)>>1]|0;if(!(t&4)){fm(z+(u*40|0)|0,67,Jc);t=b[(v&o)>>1]|0;if(!(t&4)){E=c[(s+(r*20|0)&p)+8>>2]|0;if(!E){t=r;u=20;ie=1318;break c}S=z;T=s;U=W;V=X;u=J;r=E+-1|0;break}}b[(v&o)>>1]=t&48640|4;S=z;T=s;U=W;V=X;u=J;break}case 208:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=z+(t*40|0)+8|0;if(!(b[(u&o)>>1]&4)){S=z;T=s;U=W;V=X;u=J}else{S=z+(t*40|0)|0;h[(S&q)>>3]=+Ug(S);b[(u&o)>>1]=e[(u&o)>>1]&48640|8;S=z;T=s;U=W;V=X;u=J}break}case 213:{ie=0;N=c[(s+(t*20|0)&p)+4>>2]|0;L=z+(N*40|0)|0;w=c[(s+(t*20|0)&p)+12>>2]|0;K=z+(w*40|0)|0;N=z+(N*40|0)+8|0;F=b[(N&o)>>1]|0;w=z+(w*40|0)+8|0;M=b[(w&o)>>1]|0;H=F&65535;A=M&65535;v=s+(t*20|0)+3|0;J=d[(v&n)>>0]|0;do if(!((M|F)&1)){J=J&71;if(J>>>0>66){if((H&14|0)==2){rh(L,0);A=b[(w&o)>>1]|0}else A=M;if((A&14)==2){rh(K,0);J=F;E=M}else{J=F;E=M}}else if((J|0)==66){if((H&2|0)!=0|(H&12|0)==0){I=M;J=F}else{bm(L,Jc,1)|0;I=b[(w&o)>>1]|0;J=(e[(N&o)>>1]&65024|H&511)&65535}V=I&65535;if((V&2|0)!=0|(V&12|0)==0)E=M;else{bm(K,Jc,1)|0;E=(e[(w&o)>>1]&65024|A&511)&65535}}else{J=F;E=M}if(b[(N&o)>>1]&16384){Rg(L)|0;J=J&49151}if(b[(w&o)>>1]&16384){Rg(K)|0;E=E&49151}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=x;ie=1317;break a}V=hm(K,L,c[(s+(t*20|0)&p)+16>>2]|0)|0;I=a[(C&n)>>0]|0;r=t;C=V}else{if(J&128){J=F;E=M;r=t;C=(F&1&M)<<16>>16!=0&(A&256|0)==0&1^1;break}if(J&32){u=c[(s+(t*20|0)&p)+8>>2]|0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=z+(u*40|0)|0;r=t;break q}if(!(J&16)){S=z;T=s;U=W;V=X;r=t;break q}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);switch(I&255|0){case 79:{C=(C|0)==0&1;break}case 78:{C=(C|0)!=0&1;break}case 82:{C=C>>>31;break}case 81:{C=(C|0)<1&1;break}case 80:{C=(C|0)>0&1;break}default:C=C>>>31^1}if(!(a[(v&n)>>0]&32)){if(C)r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{V=c[(s+(r*20|0)&p)+8>>2]|0;u=z+(V*40|0)|0;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=u;c[(V&p)>>2]=C;c[(V&p)+4>>2]=0}b[(N&o)>>1]=J;b[(w&o)>>1]=E;S=z;T=s;U=W;V=X;break}case 248:{ie=0;S=z;T=s;U=c[(s+(r*20|0)&p)+16>>2]|0;V=X;break}case 249:{ie=0;w=(a[(s+(r*20|0)&n)+3>>0]&1)==0?0:W;F=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+4>>2]|0;J=c[(s+(r*20|0)&p)+8>>2]|0;if((F|0)>0){t=(w|0)==0;v=H+16|0;E=0;while(1){if(t)A=E;else A=c[(w+(E<<2)&p)>>2]|0;C=a[((c[(v&p)>>2]|0)+E&n)>>0]|0;A=hm(z+((A+I|0)*40|0)|0,z+((A+J|0)*40|0)|0,c[(H+(E<<2)&p)+20>>2]|0)|0;E=E+1|0;if(A)break;if((E|0)>=(F|0)){S=z;T=s;U=0;V=0;break q}}S=z;T=s;U=0;V=C<<24>>24==0?A:0-A|0}else{S=z;T=s;U=0;V=X}break}case 256:{ie=0;if((X|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+4>>2]|0)+-1|0;break}if(!X){S=z;T=s;U=W;V=0;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+12>>2]|0)+-1|0;break}}case 261:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){u=Vg(z+(t*40|0)|0)|0;u=(u|0)!=0|(G|0)!=0?3:0}else u=6;t=c[(s+(r*20|0)&p)+8>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=Vg(z+(t*40|0)|0)|0;t=((t|0)!=0|(G|0)!=0)&1}else t=2;t=a[(((a[(C&n)>>0]|0)==72?41680:41696)+t+u&n)>>0]|0;u=c[(s+(r*20|0)&p)+12>>2]|0;J=z+(u*40|0)|0;if(t<<24>>24==2){S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|1;S=z;T=s;U=W;V=X;u=J;break}else{S=J;c[(S&p)>>2]=t&255;c[(S&p)+4>>2]=0;S=z+(u*40|0)+8|0;b[(S&o)>>1]=e[(S&o)>>1]&48640|4;S=z;T=s;U=W;V=X;u=J;break}}case 268:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=(T|0)==0&(G|0)==0&1;c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 273:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;u=c[(s+(r*20|0)&p)+8>>2]|0;J=z+(u*40|0)|0;u=z+(u*40|0)+8|0;if(!(b[(u&o)>>1]&9312))b[(u&o)>>1]=1;else vg(J);if(!(b[(z+(t*40|0)&o)+8>>1]&1)){b[(u&o)>>1]=4;T=Vg(z+(t*40|0)|0)|0;S=J;c[(S&p)>>2]=~T;c[(S&p)+4>>2]=~G;S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J}break}case 278:{ie=0;t=(c[(Hb&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0;if(!(a[(t&n)>>0]|0)){a[(t&n)>>0]=1;S=z;T=s;U=W;V=X;break}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 281:{ie=0;t=c[(s+(r*20|0)&p)+4>>2]|0;if(!(b[(z+(t*40|0)&o)+8>>1]&1)){t=+Ug(z+(t*40|0)|0)!=0.0;t=(t^(a[(C&n)>>0]|0)==46)&1}else t=c[(s+(r*20|0)&p)+12>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 286:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 288:{ie=0;if(!(b[(z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)&o)+8>>1]&1)){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 290:{ie=0;T=c[(s+(t*20|0)&p)+8>>2]|0;M=c[(s+(t*20|0)&p)+12>>2]|0;A=z+(M*40|0)|0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;w=c[(S&p)+80>>2]|0;v=c[(S&p)>>2]|0;if(!(a[(S&n)+26>>0]|0)){if((v|0)!=0?(a[(v&n)+73>>0]|0)!=1:0){Td=jm(S)|0;ie=295}}else{Td=im(S)|0;ie=295}if((ie|0)==295?(ie=0,(Td|0)!=0):0){u=Td;ie=1318;break c}L=S+60|0;C=c[($d&p)>>2]|0;u:do if((c[(L&p)>>2]|0)==(C|0)){C=b[(S&o)+22>>1]|0;if((C&65535|0)>(T|0))ie=350;else{I=S+72|0;ie=318}}else{do if(a[(S&n)+25>>0]|0){if(!v){J=c[(S&p)+16>>2]|0;F=c[(z+(J*40|0)&p)+12>>2]|0;c[(S&p)+68>>2]=F;c[(S&p)+64>>2]=F;J=c[(z+(J*40|0)&p)+16>>2]|0;K=S+76|0;c[(K&p)>>2]=J;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break u}else{vg(A);break u}}else{if(!(a[(S&n)+27>>0]&4)){km(v,td);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(td&p)>>2]|0;c[(S&p)+64>>2]=C}else{C=S+64|0;lm(v,C);I=e[(v&o)+40>>1]|0;J=c[(v&p)+32>>2]|0;c[(S&p)+76>>2]=J;C=c[(C&p)>>2]|0}c[(S&p)+68>>2]=C>>>0>I>>>0?I:C;if(C>>>0>(c[(zb&p)>>2]|0)>>>0){u=x;ie=1316;break c}K=S+76|0;C=c[($d&p)>>2]|0;F=I}while(0);c[(L&p)>>2]=C;C=a[(J&n)>>0]|0;if(C<<24>>24>-1){H=C&255;c[(kd&p)>>2]=H;J=1}else{J=mm(J,kd)|0;H=c[(kd&p)>>2]|0}I=S+72|0;c[(I&p)>>2]=J&255;b[(S&o)+22>>1]=0;c[(w&p)>>2]=H;if(H>>>0>98307){u=x;ie=313;break c}if(H>>>0>(c[(S&p)+64>>2]|0)>>>0){u=x;ie=313;break c}if(F>>>0<H>>>0){c[(K&p)>>2]=0;c[(S&p)+68>>2]=0;C=0;ie=318}else{C=0;ie=318}}while(0);do if((ie|0)==318){ie=0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;if(J>>>0<H>>>0){P=S+76|0;F=c[(P&p)>>2]|0;if(!F){U=Jd+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));J=nm(v,0,c[(w&p)>>2]|0,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,Jd)|0;if(J){s=J;u=x;ie=1309;break c}C=S+22|0;O=C;C=b[(C&o)>>1]|0;J=c[(I&p)>>2]|0;H=c[(w&p)>>2]|0;N=c[(Jb&p)>>2]|0}else{O=S+22|0;N=F}E=C&65535;K=c[(w+(E<<2)&p)>>2]|0;c[(kd&p)>>2]=K;C=N+H|0;J=N+J|0;while(1){F=a[(J&n)>>0]|0;if(F<<24>>24>-1){L=F&255;c[(Ld&p)>>2]=L;J=J+1|0}else{J=J+((mm(J,Ld)|0)&255)|0;L=c[(Ld&p)>>2]|0}c[(S+(E<<2)&p)+84>>2]=L;if(L>>>0>11)F=(L+-12|0)>>>1;else F=d[(L&n)+34336>>0]|0;L=K+F|0;c[(kd&p)>>2]=L;if(L>>>0<K>>>0){J=L;F=E;ie=331;break}F=E+1|0;c[(w+(F<<2)&p)>>2]=L;if((E|0)<(T|0)&J>>>0<C>>>0){K=L;E=F}else break}if((ie|0)==331){ie=0;L=J;J=N+(H+1)|0}b[(O&o)>>1]=F;c[(I&p)>>2]=J-N;if(!(c[(P&p)>>2]|0)){if(!((b[(Kb&o)>>1]&9312)==0&(c[(Lb&p)>>2]|0)==0))Qg(Jd);b[(Kb&o)>>1]=1}if(J>>>0>=C>>>0){if(J>>>0>C>>>0){u=x;ie=343;break c}if((L|0)==(c[(S&p)+64>>2]|0))C=L;else{u=x;ie=343;break c}}else C=c[(S&p)+64>>2]|0;if(L>>>0>C>>>0){u=x;ie=343;break c}C=b[(O&o)>>1]|0}if((C&65535|0)<=(T|0)){if((a[(s+(t*20|0)&n)+1>>0]|0)==-8){Zl(A,c[(s+(t*20|0)&p)+16>>2]|0,2048);r=z+(M*40|0)+8|0;break}r=z+(M*40|0)+8|0;if(!(b[(r&o)>>1]&9312)){b[(r&o)>>1]=1;break}else{vg(A);break}}else ie=350}while(0);if((ie|0)==350){ie=0;r=z+(M*40|0)+8|0;if(b[(r&o)>>1]&9312)vg(A);J=c[(S+(T<<2)&p)+84>>2]|0;c[(Ld&p)>>2]=J;do if((c[(S&p)+68>>2]|0)>>>0<(c[(w+(T+1<<2)&p)>>2]|0)>>>0){V=a[(s+(t*20|0)&n)+3>>0]|0;if(!((V&255)>63?J>>>0>11&(J&1|0)==0|V<<24>>24<0:0)){if(J>>>0>11)C=(J+-12|0)>>>1;else C=d[(J&n)+34336>>0]|0;if(C){C=nm(v,c[(w+(T<<2)&p)>>2]|0,C,((d[(S&n)+27>>0]|0)>>>2&1^1)&255,A)|0;if(C){s=C;u=x;ie=1309;break c}om(c[(z+(M*40|0)&p)+16>>2]|0,J,A)|0;b[(r&o)>>1]=e[(r&o)>>1]&61439;break}}om(J>>>0<14?td:0,J,A)|0}else om((c[(S&p)+76>>2]|0)+(c[(w+(T<<2)&p)>>2]|0)|0,J,A)|0;while(0);a[(z+(M*40|0)&n)+10>>0]=Jc}w=e[(r&o)>>1]|0;if((w&4096|0)!=0?(Ac=z+(M*40|0)+16|0,Bc=c[(Ac&p)>>2]|0,(Bc|0)!=0):0){v=c[(z+(M*40|0)&p)+12>>2]|0;if(fh(A,v+2|0)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}kw(c[(Ac&p)>>2]|0,Bc|0,v|0)|0;a[((c[(Ac&p)>>2]|0)+v&n)>>0]=0;a[((c[(Ac&p)>>2]|0)+v&n)+1>>0]=0;b[(r&o)>>1]=w&18|512;S=z;T=s;U=W;V=X;r=t}else{S=z;T=s;U=W;V=X;r=t}break}case 368:{ie=0;v=c[(s+(r*20|0)&p)+16>>2]|0;t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X}else{w=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;while(1){v=v+1|0;fm(w,t,Jc);t=a[(v&n)>>0]|0;if(!(t<<24>>24)){S=z;T=s;U=W;V=X;break}else w=w+40|0}}break}case 371:{ie=0;U=c[(s+(t*20|0)&p)+4>>2]|0;C=c[(s+(t*20|0)&p)+16>>2]|0;V=z+(U*40|0)|0;U=z+((U+-1+(c[(s+(t*20|0)&p)+8>>2]|0)|0)*40|0)|0;A=a[(Mb&n)>>0]|0;T=c[(s+(t*20|0)&p)+12>>2]|0;u=z+(T*40|0)|0;if(C){r=a[(C&n)>>0]|0;v=V;while(1){C=C+1|0;fm(v,r,Jc);r=a[(C&n)>>0]|0;if(!(r<<24>>24))break;else v=v+40|0}}N=(A&255)>3;L=0;K=0;O=0;C=0;w=U;while(1){E=b[(w&o)+8>>1]|0;I=E&65535;v:do if(!(I&1)){do if(!(I&4)){if(I&8){J=7;ie=388;break v}J=c[(w&p)+12>>2]|0;if(I&16384)J=(c[(w&p)>>2]|0)+J|0;J=(J<<1)+12|I>>>1&1}else{I=w;J=c[(I&p)>>2]|0;I=c[(I&p)+4>>2]|0;H=ew(J|0,I|0,63)|0;H=H^J;F=G^I;if(F>>>0<0|(F|0)==0&H>>>0<128){if(!((J&1|0)==(J|0)&0==(I|0)&N)){J=1;ie=388;break v}J=H+8|0;break}if(F>>>0<0|(F|0)==0&H>>>0<32768){J=2;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<8388608){J=3;ie=388;break v}if(F>>>0<0|(F|0)==0&H>>>0<2147483648){J=4;ie=388;break v}J=F>>>0<32768|(F|0)==32768&H>>>0<0?5:6;ie=388;break v}while(0);c[(w&p)+28>>2]=J;if(J>>>0>11){I=J;J=(J+-12|0)>>>1}else ie=391}else{J=0;ie=388}while(0);if((ie|0)==388){c[(w&p)+28>>2]=J;ie=391}if((ie|0)==391){ie=0;I=J;J=d[(J&n)+34336>>0]|0}do if(E&16384)if((L|0)==0&(K|0)==0){E=c[(w&p)>>2]|0;J=J-E|0;E=E+C|0;break}else{Rg(w)|0;E=C;break}else E=C;while(0);L=jw(J|0,((J|0)<0)<<31>>31|0,L|0,K|0)|0;K=G;if(I>>>0<128)J=1;else{H=0;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9)}J=J+O|0;w=w+-40|0;if(w>>>0<V>>>0){F=J;P=E;break}else{O=J;C=E}}if((F|0)<127)I=F+1|0;else{I=F;H=((F|0)<0)<<31>>31;J=0;do{J=J+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(J|0)<9);F=J+F|0;I=F;H=((F|0)<0)<<31>>31;C=0;do{C=C+1|0;I=mw(I|0,H|0,7)|0;H=G}while(((I|0)!=0|(H|0)!=0)&(C|0)<9);I=((J|0)<(C|0)&1)+F|0}J=((I|0)<0)<<31>>31;E=jw(I|0,J|0,L|0,K|0)|0;N=G;S=c[(zb&p)>>2]|0;O=((S|0)<0)<<31>>31;if((N|0)>(O|0)|(N|0)==(O|0)&E>>>0>S>>>0){u=x;ie=1316;break c}if(fh(u,E)|0){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(z+(T*40|0)&p)+16>>2]|0;if(I>>>0<128){a[(A&n)>>0]=I;K=1;L=V}else{K=(pm(A,I,J)|0)&255;L=V}while(1){H=c[(L&p)+28>>2]|0;if(H>>>0<128){a[(A+K&n)>>0]=H;J=1}else J=(pm(A+K|0,H,0)|0)&255;K=J+K|0;J=A+I|0;if(!(H>>>0<8&(H|0)!=0))if(H>>>0>11){C=c[(L&p)+12>>2]|0;kw(J|0,c[(L&p)+16>>2]|0,C|0)|0}else C=0;else{J=L;if(H>>>0>11)C=(H+-12|0)>>>1;else C=d[(H&n)+34336>>0]|0;F=c[(J&p)>>2]|0;J=c[(J&p)+4>>2]|0;H=C;while(1){H=H+-1|0;a[(A+H+I&n)>>0]=F;F=mw(F|0,J|0,8)|0;if(!H)break;else J=G}}L=L+40|0;if(L>>>0>U>>>0)break;else I=C+I|0}c[(z+(T*40|0)&p)+12>>2]=E;r=z+(T*40|0)+8|0;b[(r&o)>>1]=16;if(P){c[(u&p)>>2]=P;b[(r&o)>>1]=16400}a[(z+(T*40|0)&n)+10>>0]=1;S=z;T=s;U=W;V=X;r=t;break}case 446:{ie=0;if((c[(ae&p)>>2]|0)>0){u=x;ie=447;break c}if(!v)w=0;else{t=v;while(1)if(!(a[(t&n)>>0]|0))break;else t=t+1|0;w=t-v&1073741823}u=sm(le,0,(c[(Ob&p)>>2]|0)+(c[(Nb&p)>>2]|0)|0)|0;if(u){t=r;ie=1318;break c}t=mh(le,w+33|0,0)|0;if(!t){S=z;T=s;U=W;V=X;u=L}else{V=t+32|0;c[(t&p)>>2]=V;kw(V|0,v|0,w+1|0)|0;if(!(a[(ee&n)>>0]|0))c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+1;else{a[(ee&n)>>0]=0;a[(Sb&n)>>0]=1}c[(t&p)+24>>2]=c[(Pb&p)>>2];c[(Pb&p)>>2]=t;S=Qb;T=c[(S&p)+4>>2]|0;U=t+8|0;c[(U&p)>>2]=c[(S&p)>>2];c[(U&p)+4>>2]=T;U=Rb;T=c[(U&p)+4>>2]|0;S=t+16|0;c[(S&p)>>2]=c[(U&p)>>2];c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;u=L}break}case 486:{c[(Ob&p)>>2]=(c[(Ob&p)>>2]|0)+-1;ie=488;break}case 525:{ie=0;wm(c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0,c[(s+(r*20|0)&p)+12>>2]|0,Yc);T=c[(Yc&p)>>2]|0;S=u;c[(S&p)>>2]=T;c[(S&p)+4>>2]=((T|0)<0)<<31>>31;S=z;T=s;U=W;V=X;break}case 558:{ie=0;v=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+8>>2]|0,-1,1)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}r=c[(s+(t*20|0)&p)+16>>2]|0;C=v+8|0;c[(C&p)>>2]=r;A=c[(s+(t*20|0)&p)+12>>2]|0;r=e[(r&o)+6>>1]<<2;u=r+148|0;w=mh(le,u,0)|0;if(!w){s=v;u=x;ie=560;break c}fw(w|0,0,u|0)|0;c[(v&p)+56>>2]=w;V=w+128|0;c[(w&p)+28>>2]=V;kw(V|0,c[(C&p)>>2]|0,r+20|0)|0;c[(w&p)+140>>2]=0;if(A)b[(w&o)+134>>1]=A;r=c[(Xd&p)>>2]|0;u=c[((c[((c[(r&p)+4>>2]|0)&p)+4>>2]|0)&p)+32>>2]|0;c[(w&p)+12>>2]=u;a[(w&n)+59>>0]=1;a[(w&n)+57>>0]=0;c[(w&p)+24>>2]=le;c[(w&p)+72>>2]=w;if(((a[(_b&n)>>0]|0)!=2?(Dc=c[2242]|0,c[(w&p)>>2]=ca(Dc,u)|0,V=c[((c[(r&p)+12>>2]|0)&p)+80>>2]|0,V=(V|0)<(Dc|0)?Dc:V,Dc=((u|0)<0)<<31>>31,V=sw(V|0,((V|0)<0)<<31>>31|0,u|0,Dc|0)|0,U=G,c[(w&p)+4>>2]=(U|0)<0|(U|0)==0&V>>>0<536870912?V:536870912,(c[2234]|0)==0):0)?(c[(w&p)+52>>2]=u,V=qg(u,Dc)|0,c[(w&p)+40>>2]=V,(V|0)==0):0){s=7;u=x;ie=1309;break c}else{S=z;T=s;U=W;V=X;u=L;r=t}break}case 566:{ie=0;T=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 568:{ie=0;r=xm(f,c[(s+(t*20|0)&p)+4>>2]|0,c[(s+(t*20|0)&p)+12>>2]|0,-1,0)|0;if(!r){y=ge;z=je;r=m;m=x;ie=1317;break a}a[(r&n)+25>>0]=1;c[(r&p)+16>>2]=c[(s+(t*20|0)&p)+8>>2];S=r+27|0;a[(S&n)>>0]=a[(S&n)>>0]|4;S=z;T=s;U=W;V=X;r=t;break}case 570:{ie=0;S=s+(r*20|0)+4|0;Bm(f,c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]|0);c[((c[(Ib&p)>>2]|0)+(c[(S&p)>>2]<<2)&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 571:{ie=0;H=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(H&n)+25>>0]=0;if(!(a[(H&n)+27>>0]&4)){V=c[(s+(r*20|0)&p)+16>>2]|0;c[(wd&p)>>2]=c[(H&p)+8>>2];b[($b&o)>>1]=V;a[(cc&n)>>0]=(K<<1&2^2)+255;V=c[(s+(r*20|0)&p)+12>>2]|0;t=z+(V*40|0)|0;c[(dc&p)>>2]=t;if(b[(z+(V*40|0)&o)+8>>1]&16384)Rg(t)|0;u=Cm(c[(H&p)>>2]|0,wd,0,0,0,Ad)|0;if(!u){u=K;J=L}else{t=r;ie=1318;break c}}else{C=c[(s+(r*20|0)&p)+12>>2]|0;A=z+(C*40|0)|0;C=z+(C*40|0)+8|0;if((b[(C&o)>>1]&14)==2)rh(A,0);J=Vg(A)|0;I=G;C=e[(C&o)>>1]|0;do if(!(C&4)){if(!(C&8)){S=z;T=s;U=W;V=X;u=L;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break q}B=+h[(A&q)>>3];D=+(J>>>0)+4294967296.0*+(I|0);if(B<D){C=(K<<31>>31)+K|0;break}else{C=(B>D&(K&1|0)==0&1)+K|0;break}}else C=K;while(0);u=Cm(c[(H&p)>>2]|0,0,J,I,0,Ad)|0;V=H+48|0;c[(V&p)>>2]=J;c[(V&p)+4>>2]=I;if(!u){u=C;J=L}else{t=r;ie=1318;break c}}a[(H&n)+26>>0]=0;c[(H&p)+60>>2]=0;t=c[(Ad&p)>>2]|0;do if((u|0)>63){if((t|0)>=0?!((t|0)==0&(u|0)==65):0){c[(Ad&p)>>2]=0;S=z;T=s;U=W;V=X;u=J;break q}c[(Ad&p)>>2]=0;u=Dm(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}else{if((t|0)<=0?!((t|0)==0&(u|0)==62):0){t=(a[((c[(H&p)>>2]|0)&n)+73>>0]|0)!=1&1;c[(Ad&p)>>2]=t;break}c[(Ad&p)>>2]=0;u=Em(c[(H&p)>>2]|0,Ad)|0;if(!u)ie=593;else{t=r;ie=1318;break c}}while(0);if((ie|0)==593){ie=0;t=c[(Ad&p)>>2]|0}if(!t){S=z;T=s;U=W;V=X;u=J}else{S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 596:{ie=0;S=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(S&n)+25>>0]=0;U=Vg(z+((c[(s+(r*20|0)&p)+8>>2]|0)*40|0)|0)|0;T=S+48|0;c[(T&p)>>2]=U;c[(T&p)+4>>2]=G;a[(S&n)+26>>0]=1;S=z;T=s;U=W;V=X;break}case 597:{ie=0;I=c[((c[(Ib&p)>>2]|0)+(c[(s+(t*20|0)&p)+4>>2]<<2)&p)>>2]|0;r=c[(s+(t*20|0)&p)+12>>2]|0;J=z+(r*40|0)|0;c[(od&p)>>2]=0;K=s+(t*20|0)+16|0;C=c[(K&p)>>2]|0;v=I+8|0;A=c[(v&p)>>2]|0;w:do if((C|0)>0){c[(xd&p)>>2]=A;C=C&65535;b[(ec&o)>>1]=C;c[(fc&p)>>2]=J;if(!(C<<16>>16))v=xd;else{r=J;A=0;while(1){if(b[(r+(A*40|0)&o)+8>>1]&16384){Rg(r+(A*40|0)|0)|0;C=b[(ec&o)>>1]|0}A=A+1|0;if((A|0)>=(C&65535|0)){v=xd;break w}r=c[(fc&p)>>2]|0}}}else{C=Fm(A,Sc,191,od)|0;if(!C){y=ge;z=je;r=m;m=x;ie=1317;break a}if(b[(z+(r*40|0)&o)+8>>1]&16384)Rg(J)|0;Gm(c[(v&p)>>2]|0,c[(z+(r*40|0)&p)+12>>2]|0,c[(z+(r*40|0)&p)+16>>2]|0,C);v=C}while(0);a[(v&n)+6>>0]=0;x:do if((a[(H&n)>>0]|0)==67?(Ec=b[(v&o)+4>>1]|0,Ec<<16>>16!=0):0){C=c[(v&p)+8>>2]|0;A=0;while(1){if(b[(C+(A*40|0)&o)+8>>1]&1)break;A=A+1|0;if((A|0)>=(Ec&65535|0)){L=t;r=t;break x}}L=t;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0}else{L=t;r=t}while(0);C=Cm(c[(I&p)>>2]|0,v,0,0,0,Bd)|0;if(!(c[(K&p)>>2]|0))mg(le,c[(od&p)>>2]|0);if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(Bd&p)>>2]|0;c[(I&p)+12>>2]=t;t=(t|0)==0;a[(I&n)+25>>0]=t&1^1;a[(I&n)+26>>0]=0;c[(I&p)+60>>2]=0;if((a[(H&n)>>0]|0)==69){if(!t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}else{if(t){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(L*20|0)&p)+8>>2]|0)+-1|0;break}}case 624:{ie=0;S=(c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0)+40|0;T=S;U=c[(T&p)>>2]|0;T=c[(T&p)+4>>2]|0;V=jw(U|0,T|0,1,0)|0;c[(S&p)>>2]=V;c[(S&p)+4>>2]=G;S=u;c[(S&p)>>2]=U;c[(S&p)+4>>2]=T;S=z;T=s;U=W;V=X;break}case 647:{ie=0;I=c[(s+(r*20|0)&p)+8>>2]|0;v=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;if(C<<24>>24==75){F=z+(t*40|0)|0;E=c[(F&p)>>2]|0;F=c[(F&p)+4>>2]|0}else{E=t;F=((t|0)<0)<<31>>31}H=s+(r*20|0)+3|0;J=a[(H&n)>>0]|0;if(J&1)c[(ub&p)>>2]=(c[(ub&p)>>2]|0)+1;if(J&2){m=ne;c[(m&p)>>2]=E;c[(m&p)+4>>2]=F;m=E;l=F}C=b[(z+(I*40|0)&o)+8>>1]|0;if(C&1){c[(z+(I*40|0)&p)+16>>2]=0;c[(z+(I*40|0)&p)+12>>2]=0}if(!(J&16))A=0;else A=c[(v&p)+12>>2]|0;if(!(C&16384))C=0;else C=c[(z+(I*40|0)&p)>>2]|0;C=Im(c[(v&p)>>2]|0,0,E,F,c[(z+(I*40|0)&p)+16>>2]|0,c[(z+(I*40|0)&p)+12>>2]|0,C,(J&255)>>>3&1,A)|0;a[(v&n)+26>>0]=0;c[(v&p)+60>>2]=0;if(C){t=r;s=C;u=x;ie=1309;break c}t=c[(gc&p)>>2]|0;if((t|0)!=0?(Fc=c[(s+(r*20|0)&p)+16>>2]|0,(Fc|0)!=0):0){bc[t&1](c[(hc&p)>>2]|0,(a[(H&n)>>0]&4)!=0?23:18,c[((c[(Xd&p)>>2]|0)+(a[(v&n)+24>>0]<<4)&p)>>2]|0,Fc,E,F);S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 671:{ie=0;S=c[(ub&p)>>2]|0;c[(vb&p)>>2]=S;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+S;c[(ub&p)>>2]=0;S=z;T=s;U=W;V=X;break}case 672:{ie=0;J=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;H=c[(s+(r*20|0)&p)+16>>2]|0;t=c[(J&p)+56>>2]|0;A=t+32|0;C=c[(A&p)>>2]|0;J=c[(J&p)+8>>2]|0;if(!C){C=Fm(J,0,0,md)|0;c[(A&p)>>2]=C;if(!C){t=r;s=7;u=x;ie=1309;break c}b[(C&o)+4>>1]=H}if(!(a[(t&n)+56>>0]|0)){t=c[(t&p)+36>>2]|0;A=t;t=t+8|0}else{V=c[(t&p)+20>>2]|0;t=c[((c[(V&p)+8>>2]|0)&p)+4>>2]|0;V=c[(V&p)+12>>2]|0;A=V+(t*56|0)+20|0;t=c[(V+(t*56|0)&p)+32>>2]|0}Gm(J,c[(A&p)>>2]|0,t,C);y:do if((H|0)>0){t=c[(C&p)+8>>2]|0;v=0;while(1){if(b[(t+(v*40|0)&o)+8>>1]&1)break y;v=v+1|0;if((v|0)>=(H|0)){ie=682;break}}}else ie=682;while(0);if((ie|0)==682){ie=0;if(!(Km(c[(z+(I*40|0)&p)+12>>2]|0,c[(z+(I*40|0)&p)+16>>2]|0,C,0)|0)){S=z;T=s;U=W;V=X;break}}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}case 700:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 708:{ie=0;b[(u&o)+8>>1]=1;S=z;T=s;U=W;V=X;break}case 711:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;a[(t&n)+25>>0]=1;c[(t&p)+60>>2]=0;t=c[(t&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{S=t+56|0;Wc(c[(S&p)>>2]|0);c[(S&p)>>2]=0;a[(t&n)+73>>0]=0;S=z;T=s;U=W;V=X}break}case 801:{ie=0;t=c[((c[(Ib&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<2)&p)>>2]|0;u=c[(t&p)>>2]|0;K=L+8|0;b[(K&o)>>1]=1;if((a[(u&n)+73>>0]|0)!=1?(Vd=jm(t)|0,(Vd|0)!=0):0){t=r;u=Vd;ie=1318;break c}if(!(a[(t&n)+25>>0]|0)){V=Sd;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;km(u,Sd);b[(qc&o)>>1]=0;c[(sc&p)>>2]=le;c[(uc&p)>>2]=0;u=nm(u,0,c[(Sd&p)>>2]|0,1,$c)|0;do if(!u){t=c[(vc&p)>>2]|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){C=u&255;c[(qd&p)>>2]=C}else{mm(t,qd)|0;C=c[(qd&p)>>2]|0}if(!(C>>>0<3?1:(C|0)>(c[(wc&p)>>2]|0))){t=(c[(vc&p)>>2]|0)+(C+-1)|0;u=a[(t&n)>>0]|0;if(u<<24>>24>-1){u=u&255;c[(Nd&p)>>2]=u}else{mm(t,Nd)|0;u=c[(Nd&p)>>2]|0}if(!((u+-1|0)>>>0>8|(u|0)==7)){if(u>>>0>11)t=(u+-12|0)>>>1;else t=d[(u&n)+34336>>0]|0;v=c[(wc&p)>>2]|0;if(v>>>0>=(t+C|0)>>>0){om((c[(vc&p)>>2]|0)+(v-t)|0,u,Qd)|0;v=Qd;t=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0){u=0;break}Qg($c);u=0;break}}}if(!((b[(qc&o)>>1]&9312)==0&(c[(uc&p)>>2]|0)==0))Qg($c);c[(ke&p)>>2]=68698;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;t=0;v=0}else{t=0;v=0}while(0);if(u){t=r;ie=1318;break c}S=L;c[(S&p)>>2]=t;c[(S&p)+4>>2]=v;b[(K&o)>>1]=4;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 865:{ie=0;w=c[(C&p)>>2]|0;C=c[((c[(Xd&p)>>2]|0)+(K<<4)&p)+12>>2]|0;t=c[(C&p)+16>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+32|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);t=c[(C&p)+32>>2]|0;if(t)do{v=(c[(t&p)+8>>2]|0)+40|0;if((c[(v&p)>>2]|0)==(A|0))c[(v&p)>>2]=w;t=c[(t&p)>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X;x=K+1&255;break}case 878:{ie=0;_m(le,u);S=z;T=s;U=W;V=X;u=J;break}case 881:{ie=0;V=c[(s+(r*20|0)&p)+4>>2]|0;c[(Zc&p)>>2]=le;c[(ia&p)>>2]=V;c[(ja&p)>>2]=je;u=c[(s+(r*20|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[((c[(Xd&p)>>2]|0)+(V<<4)&p)>>2];c[(ke&p)+4>>2]=(V|0)==1?13184:13208;c[(ke&p)+8>>2]=u;u=uh(le,42048,ke)|0;if(!u){t=r;u=x;ie=882;break c}a[(ka&n)>>0]=1;c[(la&p)>>2]=0;t=Qe(le,u,22,Zc,0)|0;t=(t|0)==0?c[(la&p)>>2]|0:t;mg(le,u);a[(ka&n)>>0]=0;if(!t){S=z;T=s;U=W;V=X;u=J}else{s=t;t=r;u=x;ie=884;break c}break}case 886:{ie=0;kg(le,Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+8|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;break}case 887:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+24|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(C){t=(c[(C&p)+12>>2]|0)+8|0;u=c[(t&p)>>2]|0;z:do if((u|0)==(C|0))c[(t&p)>>2]=c[(C&p)+20>>2];else{do{if(!u)break z;t=u+20|0;u=c[(t&p)>>2]|0}while((u|0)!=(C|0));c[(t&p)>>2]=c[(C&p)+20>>2]}while(0);Jk(le,C)}c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X;u=J;break}case 895:{ie=0;C=Ik((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+12>>2]|0)+40|0,c[(s+(r*20|0)&p)+16>>2]|0,0)|0;if(!C){S=z;T=s;U=W;V=X}else{t=c[(C&p)+20>>2]|0;if((t|0)==(c[(C&p)+24>>2]|0)){t=bn(t+8|0,c[(C&p)+4>>2]|0,ke)|0;if(!t)t=0;else t=c[(t&p)+8>>2]|0;v=t+64|0;while(1){V=c[(v&p)>>2]|0;t=V+32|0;if((V|0)==(C|0))break;else v=t}c[(v&p)>>2]=c[(t&p)>>2]}jg(le,C);c[(Tb&p)>>2]=c[(Tb&p)>>2]|2;S=z;T=s;U=W;V=X}break}case 903:{ie=0;L=c[(s+(t*20|0)&p)+8>>2]|0;v=mh(le,(L<<2)+4|0,0)|0;if(!v){y=ge;z=je;r=m;m=x;ie=1317;break a}A=c[(s+(t*20|0)&p)+12>>2]|0;r=c[(s+(t*20|0)&p)+4>>2]|0;M=z+(r*40|0)|0;if((L|0)>0){C=0;do{V=Vg(z+((C+r|0)*40|0)|0)|0;c[(v+(C<<2)&p)>>2]=V;C=C+1|0}while((C|0)!=(L|0));C=L}else C=0;c[(v+(C<<2)&p)>>2]=0;I=c[((c[(Xd&p)>>2]|0)+(d[(s+(t*20|0)&n)+3>>0]<<4)&p)+4>>2]|0;P=z+(A*40|0)|0;V=c[(P&p)>>2]|0;O=c[(I&p)+4>>2]|0;c[(O&p)+4>>2]=c[(I&p)>>2];I=c[(O&p)>>2]|0;w=c[((c[(I&p)+204>>2]|0)&p)+12>>2]|0;c[(Sd&p)>>2]=O;c[(ma&p)>>2]=I;I=c[(O&p)+44>>2]|0;c[(na&p)>>2]=I;c[(oa&p)>>2]=V;c[(pa&p)>>2]=0;c[(pa&p)+4>>2]=0;c[(pa&p)+8>>2]=0;c[(pa&p)+12>>2]=0;c[(pa&p)+16>>2]=0;do if(!I){A=0;C=0}else{J=(I>>>3)+1|0;H=qg(J,0)|0;if(!H){c[(sa&p)>>2]=0;A=0;C=1;break}fw(H|0,0,J|0)|0;c[(sa&p)>>2]=H;N=O+32|0;J=(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0)+1|0;if(J>>>0<=I>>>0){V=H+(J>>>3)|0;a[(V&n)>>0]=d[(V&n)>>0]|1<<(J&7)}c[(ua&p)>>2]=Nd;c[(va&p)>>2]=Nd;c[(ta&p)>>2]=0;c[(wa&p)>>2]=0;c[(xa&p)>>2]=100;c[(ya&p)>>2]=1e9;a[(Aa&n)>>0]=0;a[(za&n)>>0]=2;c[(ra&p)>>2]=43592;C=c[((c[(O&p)+12>>2]|0)&p)+56>>2]|0;cn(Sd,1,d[(C&n)+33>>0]<<16|d[(C&n)+32>>0]<<24|d[(C&n)+34>>0]<<8|d[(C&n)+35>>0],d[(C&n)+37>>0]<<16|d[(C&n)+36>>0]<<24|d[(C&n)+38>>0]<<8|d[(C&n)+39>>0]);c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0;if(!((L|0)<1|(C|0)==0)){F=O+17|0;H=0;do{I=v+(H<<2)|0;J=c[(I&p)>>2]|0;if(J){if((a[(F&n)>>0]|0)!=0&(J|0)>1){dn(Sd,J,1,0);J=c[(I&p)>>2]|0}c[(ra&p)>>2]=43608;en(Sd,J,0,0)|0;c[(ra&p)>>2]=0;C=c[(oa&p)>>2]|0}H=H+1|0}while(!((H|0)>=(L|0)|(C|0)==0))}if(!((c[(na&p)>>2]|0)==0|(C|0)==0)){E=O+17|0;C=O+36|0;L=1;do{H=L>>>3;J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0;F=1<<(L&7);do if(!(J&255&F)){if(L>>>0<2)I=0;else{I=L+-2|0;I=I-((I>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;I=((I+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+I|0}if((I|0)==(L|0)?(a[(E&n)>>0]|0)!=0:0)break;c[(ke&p)>>2]=L;fn(Sd,43632,ke);J=a[((c[(sa&p)>>2]|0)+H&n)>>0]|0}while(0);do if(J&255&F){if(L>>>0<2)J=0;else{J=L+-2|0;J=J-((J>>>0)%(((((c[(C&p)>>2]|0)>>>0)/5|0)+1|0)>>>0)|0)|0;J=((J+1|0)==(((c[2514]|0)>>>0)/((c[(N&p)>>2]|0)>>>0)|0|0)?3:2)+J|0}if((J|0)!=(L|0))break;if(!(a[(E&n)>>0]|0))break;c[(ke&p)>>2]=L;fn(Sd,43656,ke)}while(0);L=L+1|0}while(!((c[(oa&p)>>2]|0)==0?1:L>>>0>(c[(na&p)>>2]|0)>>>0))}C=c[((c[((c[(O&p)>>2]|0)&p)+204>>2]|0)&p)+12>>2]|0;if((w|0)!=(C|0)){c[(ke&p)>>2]=w;c[(ke&p)+4>>2]=C;fn(Sd,43696,ke)}Wc(c[(sa&p)>>2]|0);if(c[(qa&p)>>2]|0){gn(ta);A=0;C=(c[(pa&p)>>2]|0)+1|0;break}C=c[(pa&p)>>2]|0;if(!C)gn(ta);A=tg(ta)|0}while(0);mg(le,v);U=P;U=dw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,C|0,((C|0)<0)<<31>>31|0)|0;V=P;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;r=z+(r*40|0)+8|0;if(!(b[(r&o)>>1]&9312))b[(r&o)>>1]=1;else vg(M);if(C){if(!A){y=ge;z=je;r=m;m=x;ie=1317;break a}Xg(M,A,-1,1,1)|0}Yl(M,xb)|0;S=z;T=s;U=W;V=X;r=t;break}case 947:{ie=0;v=c[(s+(t*20|0)&p)+4>>2]|0;r=z+(v*40|0)|0;u=c[(s+(t*20|0)&p)+8>>2]|0;v=z+(v*40|0)+8|0;if((b[(v&o)>>1]&32)==0?(hn(r),(b[(v&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}S=z+(u*40|0)|0;jn(c[(r&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;u=J;r=t;break}case 966:{ie=0;r=c[(s+(t*20|0)&p)+4>>2]|0;P=z+(r*40|0)|0;O=z+((c[(s+(t*20|0)&p)+12>>2]|0)*40|0)|0;N=c[(s+(t*20|0)&p)+16>>2]|0;r=z+(r*40|0)+8|0;if((b[(r&o)>>1]&32)==0?(hn(P),(b[(r&o)>>1]&32)==0):0){y=ge;z=je;r=m;m=x;ie=1317;break a}if(N){L=c[(P&p)>>2]|0;v=O;M=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;K=L+28|0;if((c[(K&p)>>2]|0)!=(N|0)){C=L+8|0;J=c[(C&p)>>2]|0;if(J){I=L+20|0;A=L+26|0;if(!(b[(A&o)>>1]&1))J=kn(J)|0;H=c[(I&p)>>2]|0;A:do if(!H){ld=J;rd=I;ie=978}else{while(1){I=H+12|0;F=c[(I&p)>>2]|0;if(!F)break;E=H+8|0;ln(F,ke,Sd);c[(I&p)>>2]=0;J=mn(c[(ke&p)>>2]|0,J)|0;H=c[(E&p)>>2]|0;if(!H){ld=J;rd=E;ie=978;break A}}c[(I&p)>>2]=nn(J)|0}while(0);if((ie|0)==978?(ie=0,Kc=on(L)|0,c[(rd&p)>>2]=Kc,(Kc|0)!=0):0){V=Kc;c[(V&p)>>2]=0;c[(V&p)+4>>2]=0;c[(Kc&p)+8>>2]=0;c[(Kc&p)+12>>2]=nn(ld)|0}c[(C&p)>>2]=0;c[(L&p)+12>>2]=0;b[(A&o)>>1]=e[(A&o)>>1]|1}c[(K&p)>>2]=N}C=c[(L&p)+20>>2]|0;B:do if(C){C:while(1){A=c[(C&p)+12>>2]|0;if(A)do{r=A;E=c[(r&p)>>2]|0;r=c[(r&p)+4>>2]|0;if((r|0)<(v|0)|(r|0)==(v|0)&E>>>0<M>>>0)A=A+8|0;else{if(!((r|0)>(v|0)|(r|0)==(v|0)&E>>>0>M>>>0))break C;A=A+12|0}A=c[(A&p)>>2]|0}while((A|0)!=0);C=c[(C&p)+8>>2]|0;if(!C)break B}S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break q}while(0);if((N|0)>-1)C=O;else{S=z;T=s;U=W;V=X;r=t;break}}else C=O;S=C;jn(c[(P&p)>>2]|0,c[(S&p)>>2]|0,c[(S&p)+4>>2]|0);S=z;T=s;U=W;V=X;r=t;break}case 993:{ie=0;K=c[(s+(r*20|0)&p)+16>>2]|0;I=c[(s+(r*20|0)&p)+12>>2]|0;L=z+(I*40|0)|0;if((a[(s+(r*20|0)&n)+3>>0]|0)!=0?(Lc=c[(K&p)+20>>2]|0,nd=c[(sb&p)>>2]|0,(nd|0)!=0):0){t=nd;while(1){if((c[(t&p)+28>>2]|0)==(Lc|0)){S=z;T=s;U=W;V=X;break q}t=c[(t&p)+4>>2]|0;if(!t){t=r;break}}}else t=r;r=c[(tb&p)>>2]|0;if((r|0)>=(c[(Ba&p)>>2]|0)){u=x;ie=998;break c}E=z+(I*40|0)+8|0;if(!(b[(E&o)>>1]&64)){C=K+12|0;A=c[(C&p)>>2]|0;r=A+(c[(K&p)+8>>2]|0)|0;s=K+16|0;A=(A<<2)+80+(c[(s&p)>>2]|0)+(r*40|0)|0;J=mh(le,A,((A|0)<0)<<31>>31)|0;if(!J){y=ge;z=je;r=m;m=x;ie=1317;break a}fw(J|0,0,A|0)|0;if(!((b[(E&o)>>1]&9312)==0?(c[(z+(I*40|0)&p)+24>>2]|0)==0:0))Qg(L);b[(E&o)>>1]=64;c[(L&p)>>2]=J;c[(J&p)>>2]=f;c[(J&p)+60>>2]=r;c[(J&p)+64>>2]=c[(C&p)>>2];c[(J&p)+44>>2]=t;c[(J&p)+16>>2]=c[(Nc&p)>>2];c[(J&p)+52>>2]=c[(Ca&p)>>2];c[(J&p)+24>>2]=c[(Ib&p)>>2];c[(J&p)+40>>2]=c[(Da&p)>>2];c[(J&p)+8>>2]=c[(zc&p)>>2];c[(J&p)+48>>2]=c[(Ea&p)>>2];c[(J&p)+28>>2]=c[(K&p)+20>>2];c[(J&p)+20>>2]=c[(Hb&p)>>2];c[(J&p)+56>>2]=c[(Fa&p)>>2];z=J+80|0;r=z+(r*40|0)|0;if((z|0)!=(r|0))do{b[(z&o)+8>>1]=128;c[(z&p)+32>>2]=le;z=z+40|0}while((z|0)!=(r|0));r=c[(tb&p)>>2]|0;z=J}else{s=K+16|0;z=c[(L&p)>>2]|0}c[(tb&p)>>2]=r+1;c[(z&p)+4>>2]=c[(sb&p)>>2];S=z+32|0;c[(S&p)>>2]=m;c[(S&p)+4>>2]=l;c[(z&p)+68>>2]=c[(ub&p)>>2];c[(z&p)+72>>2]=c[((c[(f&p)>>2]|0)&p)+80>>2];c[(ub&p)>>2]=0;c[(sb&p)>>2]=z;S=z+40|0;c[(Nc&p)>>2]=S;U=c[(z&p)+60>>2]|0;c[(Ca&p)>>2]=U;V=c[(z&p)+64>>2]&65535;c[(Da&p)>>2]=V;U=S+((U+1|0)*40|0)|0;c[(Ib&p)>>2]=U;T=c[(K&p)>>2]|0;c[(zc&p)>>2]=T;c[(Ea&p)>>2]=c[(K&p)+4>>2];V=U+(V<<2)|0;c[(Hb&p)>>2]=V;U=c[(s&p)>>2]|0;c[(Fa&p)>>2]=U;fw(V|0,0,U|0)|0;U=W;V=X;r=-1;break}case 1009:{ie=0;S=c[(sb&p)>>2]|0;Zl(u,(c[(S&p)+16>>2]|0)+(((c[((c[(S&p)+8>>2]|0)+((c[(S&p)+44>>2]|0)*20|0)&p)+4>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]|0)|0)*40|0)|0,4096);S=z;T=s;U=W;V=X;break}case 1010:{ie=0;if(c[(Tb&p)>>2]&16777216){T=c[(s+(r*20|0)&p)+8>>2]|0;S=Rb;T=jw(c[(S&p)>>2]|0,c[(S&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;S=Rb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}t=c[(s+(r*20|0)&p)+8>>2]|0;u=((t|0)<0)<<31>>31;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){T=_d;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=_d;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}else{T=Qb;T=jw(c[(T&p)>>2]|0,c[(T&p)+4>>2]|0,t|0,u|0)|0;S=Qb;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;break}}case 1015:{ie=0;if(!(c[(s+(r*20|0)&p)+4>>2]|0)){V=_d;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}else{V=Qb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}V=Rb;if(!((c[(V&p)>>2]|0)==0&(c[(V&p)+4>>2]|0)==0)){S=z;T=s;U=W;V=X;break}S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0;break}}case 1022:{ie=0;t=c[(sb&p)>>2]|0;if(!t)v=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;else{while(1){u=c[(t&p)+4>>2]|0;if(!u)break;else t=u}v=(c[(t&p)+16>>2]|0)+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0}U=Vg(v)|0;V=v;c[(V&p)>>2]=U;c[(V&p)+4>>2]=G;V=v+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=c[(s+(r*20|0)&p)+8>>2]|0;U=z+(V*40|0)|0;t=Vg(U)|0;u=G;c[(U&p)>>2]=t;c[(U&p)+4>>2]=u;V=z+(V*40|0)+8|0;b[(V&o)>>1]=e[(V&o)>>1]&48640|4;V=v;U=c[(V&p)+4>>2]|0;if((U|0)<(u|0)|((U|0)==(u|0)?(c[(V&p)>>2]|0)>>>0<t>>>0:0)){S=v;c[(S&p)>>2]=t;c[(S&p)+4>>2]=u;S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}case 1028:{ie=0;V=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=c[(V&p)+4>>2]|0;if((U|0)>0|(U|0)==0&(c[(V&p)>>2]|0)>>>0>0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1030:{ie=0;T=c[(s+(r*20|0)&p)+12>>2]|0;U=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=U;T=jw(c[(V&p)>>2]|0,c[(V&p)+4>>2]|0,T|0,((T|0)<0)<<31>>31|0)|0;V=G;c[(U&p)>>2]=T;c[(U&p)+4>>2]=V;if((V|0)<0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1032:{ie=0;t=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;v=t;u=c[(v&p)>>2]|0;v=c[(v&p)+4>>2]|0;if((u|0)==0&(v|0)==0){S=z;T=s;U=W;V=X;u=J}else{T=c[(s+(r*20|0)&p)+12>>2]|0;T=jw(T|0,((T|0)<0)<<31>>31|0,u|0,v|0)|0;S=t;c[(S&p)>>2]=T;c[(S&p)+4>>2]=G;S=z;T=s;U=W;V=X;u=J;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}break}case 1034:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;U=T;U=jw(c[(U&p)>>2]|0,c[(U&p)+4>>2]|0,-1,-1)|0;V=G;c[(T&p)>>2]=U;c[(T&p)+4>>2]=V;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1036:{ie=0;T=z+((c[(s+(r*20|0)&p)+4>>2]|0)*40|0)|0;V=T;U=c[(V&p)>>2]|0;V=c[(V&p)+4>>2]|0;S=jw(U|0,V|0,1,0)|0;c[(T&p)>>2]=S;c[(T&p)+4>>2]=G;if((U|0)==0&(V|0)==0){S=z;T=s;U=W;V=X;r=(c[(s+(r*20|0)&p)+8>>2]|0)+-1|0}else{S=z;T=s;U=W;V=X}break}case 1157:{ie=0;S=z;T=s;U=W;V=X;r=(c[(s+(t*20|0)&p)+8>>2]|0)+-1|0;break}case 1158:{ie=0;if(c[(s+(r*20|0)&p)+4>>2]|0){b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;S=z;T=s;U=W;V=X;break}t=c[(Vb&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X}else{do{V=t+88|0;b[(V&o)>>1]=b[(V&o)>>1]|8;t=c[(t&p)+52>>2]|0}while((t|0)!=0);S=z;T=s;U=W;V=X}break}case 1166:{ie=0;J=(c[(w&p)>>2]|0)+72|0;t=c[(J&p)>>2]|0;D:do if(t){while(1){if((c[(t&p)+4>>2]|0)==(A|0)?(c[(t&p)>>2]|0)==(C|0):0)break;t=c[(t&p)+12>>2]|0;if(!t){ie=1171;break D}}if(!t)ie=1171}else ie=1171;while(0);if((ie|0)==1171){ie=0;t=qg(16,0)|0;if(!t){t=r;s=7;u=x;ie=1309;break c}U=t+0|0;V=U+12|0;do{a[(U&n)>>0]=0;U=U+1|0}while((U|0)<(V|0));c[(t&p)+4>>2]=A;c[(t&p)>>2]=C;c[(t&p)+12>>2]=c[(J&p)>>2];c[(J&p)>>2]=t}t=t+8|0;if((d[(t&n)>>0]|0)<(v&255)){a[(t&n)>>0]=v;S=z;T=s;U=W;V=X}else{S=z;T=s;U=W;V=X}break}case 1213:{ie=0;c[(sd&p)>>2]=0;v=c[((c[(s+(r*20|0)&p)+16>>2]|0)&p)+8>>2]|0;if(!v){t=r;s=6;u=x;ie=1309;break c}w=c[(v&p)>>2]|0;if(!w){t=r;s=6;u=x;ie=1309;break c}C=rc[c[(w&p)+24>>2]&127](v,sd)|0;Mm(f,v);if(C){t=r;s=C;u=x;ie=1309;break c}c[(c[(sd&p)>>2]&p)>>2]=v;t=xm(f,c[(s+(r*20|0)&p)+4>>2]|0,0,-1,0)|0;if(!t){a[(ge&n)>>0]=1;lc[c[(w&p)+28>>2]&127](c[(sd&p)>>2]|0)|0;S=z;T=s;U=W;V=X;break}else{c[(t&p)+32>>2]=c[(sd&p)>>2];S=v+4|0;c[(S&p)>>2]=(c[(S&p)>>2]|0)+1;S=z;T=s;U=W;V=X;break}}case 1226:{ie=0;t=z+(C*40|0)+8|0;if(!(b[(t&o)>>1]&9312)){b[(t&o)>>1]=1;S=z;T=s;U=W;V=X;break}else{vg(A);S=z;T=s;U=W;V=X;break}}case 1257:{ie=0;S=u;c[(S&p)>>2]=c[((c[((c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0)&p)+4>>2]|0)&p)+44>>2];c[(S&p)+4>>2]=0;S=z;T=s;U=W;V=X;break}case 1258:{ie=0;v=c[((c[(Xd&p)>>2]|0)+(c[(s+(r*20|0)&p)+4>>2]<<4)&p)+4>>2]|0;t=c[(s+(r*20|0)&p)+12>>2]|0;u=c[(v&p)+4>>2]|0;if(!t)t=0;else{V=c[(u&p)+44>>2]|0;t=V>>>0<t>>>0?t:V}c[(u&p)+4>>2]=c[(v&p)>>2];u=(c[(u&p)>>2]|0)+156|0;if((t|0)>0)c[(u&p)>>2]=t;else t=c[(u&p)>>2]|0;S=J;c[(S&p)>>2]=t;c[(S&p)+4>>2]=((t|0)<0)<<31>>31;S=z;T=s;U=W;V=X;u=J;break}case 1264:{ie=0;r=c[(s+(t*20|0)&p)+8>>2]|0;r=(r|0)==0?t:r+-1|0;if((c[(Sa&p)>>2]|0)!=0?(b[(Yd&o)>>1]&512)==0:0){t=c[(s+(t*20|0)&p)+16>>2]|0;if(!t){t=c[(ce&p)>>2]|0;if(!t){S=z;T=s;U=W;V=X;u=L;break}}c[(Sd&p)>>2]=0;F=c[(f&p)>>2]|0;v=c[(F&p)+88>>2]|0;c[(fb&p)>>2]=Nd;c[(gb&p)>>2]=Nd;c[(hb&p)>>2]=0;c[(ib&p)>>2]=100;c[(jb&p)>>2]=v;a[(kb&n)>>0]=1;a[(lb&n)>>0]=0;c[(qd&p)>>2]=F;v=a[(t&n)>>0]|0;u=v<<24>>24==0;E:do if((c[(F&p)+160>>2]|0)>1){if(!u)while(1){u=t;do{u=u+1|0;if(v<<24>>24==10)break;v=a[(u&n)>>0]|0}while(v<<24>>24!=0);Sk(qd,42288,3);Sk(qd,t,u-t|0);v=a[(u&n)>>0]|0;if(!(v<<24>>24))break;else t=u}}else if(!u){H=F+62|0;K=1;do{F:do if(!(v<<24>>24)){A=0;u=0}else{C=t;u=0;while(1){A=Cn(C,ke)|0;if((c[(ke&p)>>2]|0)==135)break F;u=A+u|0;C=C+A|0;if(!(a[(C&n)>>0]|0)){A=0;break}}}while(0);Sk(qd,t,u);C=t+u|0;if(!A)break E;do if((a[(C&n)>>0]|0)==63)if((A|0)>1){Dn(t+(u+1)|0,Sd)|0;C=c[(Sd&p)>>2]|0;break}else{c[(Sd&p)>>2]=K;C=K;break}else{C=qh(f,C,A)|0;c[(Sd&p)>>2]=C}while(0);t=t+(u+A)|0;K=C+1|0;J=C+-1|0;I=c[(Ab&p)>>2]|0;C=I+(J*40|0)|0;A=e[(I+(J*40|0)&o)+8>>1]|0;do if(!(A&1)){if(A&4){T=C;U=c[(T&p)+4>>2]|0;V=ke;c[(V&p)>>2]=c[(T&p)>>2];c[(V&p)+4>>2]=U;En(qd,0,19920,ke);break}if(A&8){h[(k&q)>>3]=+h[(C&q)>>3];c[(ke&p)>>2]=c[(k&p)>>2];c[(ke&p)+4>>2]=c[(k&p)+4>>2];En(qd,0,20272,ke);break}if(!(A&2)){if(A&16384){c[(ke&p)>>2]=c[(C&p)>>2];En(qd,0,42304,ke);break}Sk(qd,42320,2);E=c[(I+(J*40|0)&p)+12>>2]|0;if((E|0)>0){C=I+(J*40|0)+16|0;A=0;do{c[(ke&p)>>2]=d[((c[(C&p)>>2]|0)+A&n)>>0];En(qd,0,42328,ke);A=A+1|0}while((A|0)!=(E|0))}Sk(qd,42336,1);break}else{E=a[(H&n)>>0]|0;if(E<<24>>24==1){V=c[(I+(J*40|0)&p)+16>>2]|0;c[(ke&p)>>2]=c[(I+(J*40|0)&p)+12>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);break}U=Od+0|0;V=U+40|0;do{c[(U&p)>>2]=0;U=U+4|0}while((U|0)<(V|0));c[(nb&p)>>2]=F;Xg(Od,c[(I+(J*40|0)&p)+16>>2]|0,c[(I+(J*40|0)&p)+12>>2]|0,E,0)|0;V=c[(ob&p)>>2]|0;if(!((V&2|0)==0|(V&16711680|0)==65536))Bn(Od,1)|0;V=c[(qb&p)>>2]|0;c[(ke&p)>>2]=c[(pb&p)>>2];c[(ke&p)+4>>2]=V;En(qd,0,42296,ke);if((b[(ob&o)>>1]&9312)==0&(c[(rb&p)>>2]|0)==0)break;Qg(Od);break}}else Sk(qd,20304,4);while(0);v=a[(t&n)>>0]|0}while(v<<24>>24!=0)}while(0);S=tg(qd)|0;jc[c[(Sa&p)>>2]&15](c[(mb&p)>>2]|0,S);mg(le,S);S=z;T=s;U=W;V=X;u=L}else{S=z;T=s;U=W;V=X;u=L}break}}if((ie|0)==28){ie=0;z=s+(r*20|0)+4|0;t=c[(z&p)>>2]|0;if(t){y=z;ie=34;break}z=c[(sb&p)>>2]|0;if(!z){ie=30;break}c[(sb&p)>>2]=c[(z&p)+4>>2];c[(tb&p)>>2]=(c[(tb&p)>>2]|0)+-1;l=c[(ub&p)>>2]|0;c[(vb&p)>>2]=l;c[(wb&p)>>2]=(c[(wb&p)>>2]|0)+l;z=Xl(z)|0;l=ne;t=c[(zc&p)>>2]|0;if((c[(s+(r*20|0)&p)+8>>2]|0)==4)r=(c[(t+(z*20|0)&p)+8>>2]|0)+-1|0;else r=z;m=c[(l&p)>>2]|0;l=c[(l&p)+4>>2]|0;S=c[(Nc&p)>>2]|0;T=t;U=W;V=X}else if((ie|0)==488){ie=0;u=sm(le,C,A)|0;if(!u){S=z;T=s;U=W;V=X;u=E}else{t=r;ie=1318;break}}z=S;s=T;W=U;X=V;t=r+1|0}switch(ie|0){case 30:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;ie=41;break}case 34:{c[(me&p)>>2]=t;a[(fe&n)>>0]=c[(s+(r*20|0)&p)+8>>2];c[(he&p)>>2]=r;t=a[(s+(r*20|0)&n)+3>>0]|0;if(!(t<<24>>24)){s=c[(s+(r*20|0)&p)+16>>2]|0;if(!s){s=0;ie=39}else{c[(ke&p)>>2]=s;dh(je,le,10344,ke)}}else{u=c[((t&255)+-1<<2&p)+41536>>2]|0;t=c[(s+(r*20|0)&p)+16>>2]|0;if(!t){s=u;ie=39}else{c[(ke&p)>>2]=u;c[(ke&p)+4>>2]=t;dh(je,le,41624,ke)}}if((ie|0)==39){c[(ke&p)>>2]=s;dh(je,le,41656,ke)}ie=c[(y&p)>>2]|0;qd=c[(ce&p)>>2]|0;rd=c[(je&p)>>2]|0;c[(ke&p)>>2]=r;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(ie,41600,ke);ie=41;break}case 80:{x=c[(be&p)>>2]|0;if(!((x|0)==0|g>>>0<y>>>0)?(lc[x&127](c[(Zd&p)>>2]|0)|0)!=0:0){r=m;s=9;m=u;ie=1311;break a}rd=_d;qd=c[(rd&p)+4>>2]|0;if((qd|0)>0|(qd|0)==0&(c[(rd&p)>>2]|0)>>>0>0){s=c[(f&p)>>2]|0;c[(me&p)>>2]=787;a[(fe&n)>>0]=2;dh(je,s,34376,ke);s=1;ie=1309;break}x=$l(f,1)|0;if(!x){c[($d&p)>>2]=(c[($d&p)>>2]|0)+2|1;y=c[(s+(t*20|0)&p)+4>>2]|0;c[(de&p)>>2]=z+(y*40|0);r=s+(t*20|0)+8|0;if((c[(r&p)>>2]|0)>0){x=0;do{v=x+y|0;w=z+(v*40|0)|0;v=z+(v*40|0)+8|0;s=b[(v&o)>>1]|0;if(s&4096){if(Vl(w)|0){y=ge;z=je;r=m;m=u;ie=1317;break a}s=b[(v&o)>>1]|0}if((s&514)==2)am(w)|0;x=x+1|0}while((x|0)<(c[(r&p)>>2]|0))}if(a[(ge&n)>>0]|0){y=ge;z=je;r=m;m=u;ie=1317;break a}c[(he&p)>>2]=t+1;r=m;m=g;g=100;break a}else{s=x;ie=1309}break}case 313:{c[(ke&p)>>2]=73058;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 343:{c[(ke&p)>>2]=73142;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 447:{dh(je,le,41712,ke);t=r;s=5;ie=1309;break}case 460:{c[(ke&p)>>2]=s;dh(je,le,41768,ke);s=1;ie=1309;break}case 462:{dh(je,le,41792,ke);s=5;ie=1309;break}case 467:{c[(he&p)>>2]=g;a[(ee&n)>>0]=0;c[(me&p)>>2]=5;g=5;break a}case 489:{v=c[(s+(t*20|0)&p)+4>>2]|0;s=c[(s+(t*20|0)&p)+8>>2]|0;g=(v|0)!=0;if(g){s=(s|0)!=0;if(!(s|(a[(ee&n)>>0]|0)!=0))if((c[(ae&p)>>2]|0)>0){dh(je,le,41848,ke);g=m;m=r;s=5;ie=1309;break}else s=0}else s=(s|0)!=0;if((v|0)==(d[(ee&n)>>0]|0)){if(g)g=s?41952:42e3;else g=41904;dh(je,le,g,ke);g=m;m=r;s=1;ie=1309;break}if(!s){g=tm(f,1)|0;if(g)break a;a[(ee&n)>>0]=v;if((Rl(f)|0)==5){c[(he&p)>>2]=t;a[(ee&n)>>0]=1-v;c[(me&p)>>2]=5;g=5;break a}}else{Kl(le,516);a[(ee&n)>>0]=1}Ll(le);g=(c[(me&p)>>2]|0)==0?101:1;break a}case 508:{c[(he&p)>>2]=g;c[(me&p)>>2]=5;g=5;break a}case 522:{mg(le,c[(je&p)>>2]|0);c[(je&p)>>2]=kh(le,16040)|0;s=c[(s&p)>>2]|0;if((c[(c[((c[(Xd&p)>>2]|0)+(s<<4)&p)+12>>2]&p)>>2]|0)!=(v|0))vm(le,s);b[(Yd&o)>>1]=b[(Yd&o)>>1]|8;s=17;ie=1309;break}case 542:{c[(ke&p)>>2]=73997;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);u=11;x=s;ie=1318;break}case 560:{c[(s&p)+56>>2]=0;s=7;ie=1309;break}case 832:{a[(fe&n)>>0]=2;s=6;ie=1309;break}case 882:{Eg(le);y=ge;z=je;r=m;m=u;ie=1317;break a}case 884:{Eg(le);if((s|0)==7){y=ge;z=je;r=m;m=u;ie=1317;break a}else ie=1309;break}case 998:{dh(je,le,42112,ke);s=1;ie=1309;break}case 1080:{c[(ke&p)>>2]=s?42208:42216;dh(je,le,42152,ke);s=1;ie=1309;break}case 1101:{dh(je,le,42344,ke);s=1;ie=1309;break}case 1103:{dh(je,le,42384,ke);s=1;ie=1309;break}case 1145:{c[(ke&p)>>2]=56343;c[(ke&p)+4>>2]=10788;bd(11,13600,ke);s=11;ie=1309;break}case 1316:{dh(je,le,10096,ke);r=m;s=18;m=u;ie=1311;break a}}if((ie|0)==41)if((Rl(f)|0)==5){c[(me&p)>>2]=5;r=m;m=g;g=5;break a}else{r=m;m=g;g=(c[(me&p)>>2]|0)!=0?1:101;break a}else if((ie|0)==1309){r=m;t=t+1|0;m=u;ie=1311;break a}else if((ie|0)==1318){u=(a[(ge&n)>>0]|0)==0?u:7;if((u|0)==3082){r=m;s=3082;m=x;ie=1311;break a}else if((u|0)!=516){r=u&255;if(r>>>0>26|(r|0)==2)s=16328;else s=c[(r<<2&p)+15488>>2]|0}else s=16344;c[(ke&p)>>2]=s;dh(je,le,10344,ke);r=m;s=u;m=x;ie=1311;break a}}else{u=f+44|0;r=m;g=0;t=0;m=0}while(0);c[(me&p)>>2]=9;c[(ke&p)>>2]=15832;dh(u,le,10344,ke);s=9;ie=1311}while(0);if((ie|0)==1317){a[(y&n)>>0]=1;dh(z,le,15776,ke);s=7;ie=1311}if((ie|0)==1311){c[(me&p)>>2]=s;qd=c[(f&p)+168>>2]|0;rd=c[(f&p)+44>>2]|0;c[(ke&p)>>2]=t;c[(ke&p)+4>>2]=qd;c[(ke&p)+8>>2]=rd;bd(s,42256,ke);Rl(f)|0;if((s|0)==3082)a[(le&n)+65>>0]=1;if(!(m<<24>>24)){m=g;g=1}else{vm(le,(m&255)+-1|0);m=g;g=1}}rd=ne;c[(rd&p)>>2]=r;c[(rd&p)+4>>2]=l;rd=f+124|0;c[(rd&p)>>2]=(c[(rd&p)>>2]|0)+m;i=oe;return g|0}
|
|
function Ev(e){e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=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;D=e+20|0;u=e+14|0;f=a[(u&n)>>0]|0;z=e+13|0;g=a[(z&n)>>0]|0;a:do if((f&255)>(g&255))f=0;else{B=e+4|0;C=e+16|0;v=e+8|0;w=e+12|0;x=e+24|0;y=e+28|0;i=f&255;j=c[(B&p)>>2]|0;h=c[(D&p)>>2]|0;b:while(1){t=c[(e+(i+-2<<2)&p)+24>>2]|0;s=c[(e+(i+-1<<2)&p)+24>>2]|0;if(j){while(1){r=j+12|0;if((h|0)<(c[(r&p)>>2]|0)){g=h;f=(c[(j&p)+20>>2]|0)+(h*48|0)|0;while(1){do if((c[(f&p)+8>>2]|0)==(t|0)?(c[(f&p)+12>>2]|0)==(s|0):0){if((d[(u&n)>>0]|0)>=3?(c[((c[(f&p)>>2]|0)&p)+4>>2]&1|0)!=0:0)break;q=f+18|0;h=b[(q&o)>>1]|0;if((h&1024)!=0?(A=a[(z&n)>>0]|0,(A&255)<22):0){i=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;c:do if(!i)i=0;else while(1){k=c[(i&p)+4>>2]|0;if(!(k&4096))break c;if(!(k&262144))i=i+12|0;else i=c[((c[(i&p)+20>>2]|0)&p)+4>>2]|0;i=c[(i&p)>>2]|0;if(!i){i=0;break}}while(0);d:do if(!(A<<24>>24)){m=0;k=0}else{l=c[(i&p)+28>>2]|0;m=i+32|0;k=0;while(1){if((c[(e+(k<<2)&p)+24>>2]|0)==(l|0)?(c[(e+((k|1)<<2)&p)+24>>2]|0)==(b[(m&o)>>1]|0):0){m=A;break d}k=k+2|0;if((k|0)>=(A&255|0)){m=A;break}}}while(0);if((k|0)==(m&255|0)){c[(e+(k<<2)&p)+24>>2]=c[(i&p)+28>>2];c[(e+((k|1)<<2)&p)+24>>2]=b[(i&o)+32>>1];a[(z&n)>>0]=(d[(z&n)>>0]|0)+2}}i=h&65535;if(i&c[(C&p)>>2]){if((c[(v&p)>>2]|0)!=0&(i&128|0)==0){l=c[(c[(j&p)>>2]&p)>>2]|0;k=c[(f&p)>>2]|0;i=a[(w&n)>>0]|0;h=(nv(k)|0)<<24>>24;if((h|0)==66){if(i<<24>>24!=66)break}else if((h|0)!=65?i<<24>>24<=66:0)break;h=Ou(l,c[(k&p)+12>>2]|0,c[(k&p)+16>>2]|0)|0;if(!h)h=c[((c[(l&p)>>2]|0)&p)+8>>2]|0;if(dd(c[(h&p)>>2]|0,c[(v&p)>>2]|0)|0)break;h=b[(q&o)>>1]|0}if(!(h&2))break b;h=c[((c[(f&p)>>2]|0)&p)+16>>2]|0;if((a[(h&n)>>0]|0)!=-102)break b;if((c[(h&p)+28>>2]|0)!=(c[(x&p)>>2]|0))break b;if((b[(h&o)+32>>1]|0)!=(c[(y&p)>>2]|0))break b}}while(0);g=g+1|0;if((g|0)>=(c[(r&p)>>2]|0))break;else f=f+48|0}g=c[(B&p)>>2]|0}else g=j;j=c[(g&p)+4>>2]|0;c[(B&p)>>2]=j;if(!j)break;else h=0}f=a[(u&n)>>0]|0;g=a[(z&n)>>0]|0}j=c[(e&p)>>2]|0;c[(B&p)>>2]=j;h=(f&255)+2|0;f=h&255;a[(u&n)>>0]=f;if((f&255)>(g&255)){f=0;break a}else{i=h&255;h=0}}c[(D&p)>>2]=g+1}while(0);return f|0}function Fv(d,f){d=d|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0;g=c[(d&p)>>2]|0;l=c[(c[(g&p)>>2]&p)>>2]|0;d=c[(d&p)+16>>2]|0;a:do if(!d){g=g+16|0;i=c[(g&p)>>2]|0;k=f+36|0;if((c[(k&p)>>2]&512|0)!=0&(i|0)!=0){d=f+20|0;j=f+22|0;h=a[(f&n)+16>>0]|0;do{do if((a[(i&n)+16>>0]|0)==h<<24>>24?(c[(i&p)+36>>2]&512|0)!=0:0){if(Tv(i,f)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+65535;break}if(Tv(f,i)|0){b[(d&o)>>1]=b[(i&o)+20>>1]|0;b[(j&o)>>1]=(e[(i&o)+22>>1]|0)+1}}while(0);i=c[(i&p)+52>>2]|0}while((i|0)!=0)}d=Uv(g,f)|0;if(d){g=c[(d&p)>>2]|0;b:do if(g){d=g+52|0;if(c[(d&p)>>2]|0)do{d=Uv(d,f)|0;if(!d)break b;h=c[(d&p)>>2]|0;if(!h)break b;c[(d&p)>>2]=c[(h&p)+52>>2];Ju(l,h);mg(l,h)}while((c[(d&p)>>2]|0)!=0)}else{g=mh(l,72,0)|0;c[(d&p)>>2]=g;if(!g){d=7;break a}c[(g&p)+48>>2]=g+56;b[(g&o)+40>>1]=0;b[(g&o)+44>>1]=3;c[(g&p)+36>>2]=0;c[(g&p)+52>>2]=0}while(0);Lv(l,g);do if(!(Nu(l,g,e[(f&o)+40>>1]|0)|0)){h=g+0|0;d=f+0|0;i=h+44|0;do{c[(h&p)>>2]=c[(d&p)>>2];h=h+4|0;d=d+4|0}while((h|0)<(i|0));kw(c[(g&p)+48>>2]|0,c[(f&p)+48>>2]|0,e[(g&o)+40>>1]<<2|0)|0;d=c[(k&p)>>2]|0;if(d&1024){a[(f&n)+28>>0]=0;break}if(d&16384)c[(f&p)+28>>2]=0}else{d=g+24|0;c[(d&p)>>2]=0;c[(d&p)+4>>2]=0;c[(d&p)+8>>2]=0}while(0);if(((c[(g&p)+36>>2]&1024|0)==0?(m=g+28|0,q=c[(m&p)>>2]|0,(q|0)!=0):0)?(c[(q&p)+40>>2]|0)==0:0){c[(m&p)>>2]=0;d=0}else d=0}else d=0}else{g=f;Kv(d,c[(g&p)>>2]|0,c[(g&p)+4>>2]|0,b[(f&o)+20>>1]|0,b[(f&o)+22>>1]|0);d=0}while(0);return d|0}function Gv(a,b){a=a|0;b=b|0;var c=0,e=0;c=a<<16>>16;e=b<<16>>16;do if(a<<16>>16<b<<16>>16)if((e|0)<=(c+49|0))if((e|0)>(c+31|0)){a=e+1&65535;break}else{a=(d[(e-c&n)+34032>>0]|0)+e&65535;break}else a=b;else if((c|0)<=(e+49|0))if((c|0)>(e+31|0)){a=c+1&65535;break}else{a=(d[(c-e&n)+34032>>0]|0)+c&65535;break}while(0);return a|0}function Hv(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0;do if(!(Cu(b,d,e)|0))f=1;else{f=a[(d&n)>>0]|0;if(f<<24>>24==71){if(Hv(b,c[(d&p)+12>>2]|0,e)|0){f=1;break}if(Hv(b,c[(d&p)+16>>2]|0,e)|0){f=1;break}if(f<<24>>24==77)g=6}else if(f<<24>>24==77)g=6;if(((g|0)==6?(Cu(c[(b&p)+12>>2]|0,c[(d&p)+12>>2]|0,e)|0)==0:0)?(f=a[(b&n)>>0]|0,!(f<<24>>24==73|f<<24>>24==76)):0){f=1;break}f=0}while(0);return f|0}function Iv(a,d,f){a=a|0;d=d|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,n=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;x=i;i=i+16|0;if((i|0)>=(j|0))fa();w=x;u=d;v=d+8|0;g=v;t=~(c[(g&p)>>2]|c[(u&p)>>2]);u=~(c[(g&p)+4>>2]|c[(u&p)+4>>2]);g=c[(a&p)+12>>2]|0;r=a+20|0;a:do if((g|0)>0){s=d+40|0;a=d+22|0;q=d+48|0;d=0;n=c[(r&p)>>2]|0;while(1){if(b[(n&o)+20>>1]&2)break a;m=n+40|0;l=c[(m&p)>>2]|0;m=c[(m&p)+4>>2]|0;k=v;b:do if(((c[(k&p)>>2]&l|0)!=0?1:(c[(k&p)+4>>2]&m|0)!=0)&((l&t|0)==0&(m&u|0)==0)){h=b[(s&o)>>1]|0;c:do if(h<<16>>16){m=c[(q&p)>>2]|0;l=h&65535;while(1){h=l;l=l+-1|0;k=c[(m+(l<<2)&p)>>2]|0;if(k){if((k|0)==(n|0))break;k=c[(k&p)+4>>2]|0;if((k|0)>-1?((c[(r&p)>>2]|0)+(k*48|0)|0)==(n|0):0)break}if((l|0)<=0)break c}if((h|0)>=1)break b}while(0);h=b[(n&o)+16>>1]|0;if(h<<16>>16<1){b[(a&o)>>1]=(e[(a&o)>>1]|0)+(h&65535);break}b[(a&o)>>1]=(b[(a&o)>>1]|0)+-1<<16>>16;if(b[(n&o)+18>>1]&2){l=(Ms(c[((c[(n&p)>>2]|0)&p)+16>>2]|0,w)|0)!=0;m=c[(w&p)>>2]|0;m=l&(m|0)>-2&(m|0)<2?10:20;c[(w&p)>>2]=m;d=(d<<16>>16|0)<(m|0)?m&65535:d}}while(0);g=g+-1|0;if((g|0)<=0)break;else n=n+48|0}}else{a=d+22|0;d=0}while(0);d=(f<<16>>16)-(d<<16>>16)|0;if((b[(a&o)>>1]|0)>(d|0))b[(a&o)>>1]=d;i=x;return}function Jv(d,f,g,h){d=d|0;f=f|0;g=g|0;h=h|0;var k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,ga=0,ha=0;ha=i;i=i+112|0;if((i|0)>=(j|0))fa();R=ha;V=c[(c[(c[(d&p)>>2]&p)>>2]&p)>>2]|0;ea=c[(d&p)+12>>2]|0;if(!(a[(V&n)+65>>0]|0)){ga=ea+36|0;if(!(c[(ga&p)>>2]&32))if((c[(g&p)+40>>2]|0)<1)k=63;else k=(a[(f&n)+36>>0]&8)<<4^191;else k=24;W=g+51|0;ca=ea+24|0;l=b[((c[(g&p)+4>>2]|0)+(e[(ca&o)>>1]<<1)&o)>>1]|0;N=l<<16>>16;O=d+4|0;k=Dv(R,c[(O&p)>>2]|0,c[(f&p)+40>>2]|0,N,(a[(W&n)>>0]&4)==0?k:k&131,g)|0;X=b[(ca&o)>>1]|0;Y=ea+42|0;T=b[(Y&o)>>1]|0;Z=ea+40|0;U=b[(Z&o)>>1]|0;_=c[(ga&p)>>2]|0;Q=ea;P=c[(Q&p)>>2]|0;Q=c[(Q&p)+4>>2]|0;$=ea+22|0;aa=b[($&o)>>1]|0;b[(ea&o)+18>>1]=0;ba=g+8|0;D=b[(c[(ba&p)>>2]&o)>>1]|0;if(D<<16>>16<11)C=0;else{C=D<<16>>16;C=((fs(C,((C|0)<0)<<31>>31)|0)&65535)+65503&65535}a:do if(!k)k=0;else{E=l<<16>>16<0;F=f+16|0;G=ea+8|0;H=(U&65535)+1|0;I=ea+48|0;J=h<<16>>16==0;K=g+46|0;w=l<<16>>16>-1;x=g+50|0;y=g+44|0;z=ea+20|0;A=h<<16>>16;B=g+48|0;r=0;u=k;s=0;while(1){l=b[(u&o)+18>>1]|0;t=l&65535;if(l<<16>>16==128)if(!E?(a[((c[((c[(F&p)>>2]|0)&p)+4>>2]|0)+(N*24|0)&n)+20>>0]|0)==0:0)S=12;else{m=r;l=s;k=0}else S=12;if((S|0)==12){S=0;m=u+32|0;v=m;q=G;if(((c[(q&p)>>2]&c[(v&p)>>2]|0)==0?(c[(q&p)+4>>2]&c[(v&p)+4>>2]|0)==0:0)?(L=u+20|0,!((b[(L&o)>>1]&256)!=0&l<<16>>16==16)):0){c[(ga&p)>>2]=_;b[(ca&o)>>1]=X;b[(Z&o)>>1]=U;if(Nu(V,ea,H)|0){k=0;break a}k=b[(Z&o)>>1]|0;q=k+1<<16>>16;b[(Z&o)>>1]=q;c[((c[(I&p)>>2]|0)+((k&65535)<<2)&p)>>2]=u;k=m;l=G;m=(c[(k&p)+4>>2]|Q)&~c[(l&p)+4>>2];v=ea;c[(v&p)>>2]=(c[(k&p)>>2]|P)&~c[(l&p)>>2];c[(v&p)+4>>2]=m;b:do if(!(t&1)){if(t&2){k=c[(ga&p)>>2]|0;l=k|1;c[(ga&p)>>2]=l;do if(!E){if(!J){v=0;break b}if((e[(ca&o)>>1]|0)!=((e[(K&o)>>1]|0)+-1|0)){v=0;break b}if(!w)break;if(a[(x&n)>>0]|0)break;l=k|65537;c[(ga&p)>>2]=l;v=0;break b}while(0);l=k|4097;c[(ga&p)>>2]=l;v=0;break}if(t&128){l=c[(ga&p)>>2]|8;c[(ga&p)>>2]=l;v=0;break}k=c[(ga&p)>>2]|0;if(!(t&36)){l=k|18;c[(ga&p)>>2]=l;if(!(k&32)){v=0;r=0;s=u;break}v=0;r=c[((c[(I&p)>>2]|0)+((q&65535)+-2<<2)&p)>>2]|0;s=u;break}l=k|34;c[(ga&p)>>2]=l;if(!(b[(L&o)>>1]&256)){v=0;r=u;s=0}else{k=u+48|0;if(Nu(V,ea,(q&65535)+1|0)|0){k=0;break a}l=b[(Z&o)>>1]|0;b[(Z&o)>>1]=l+1<<16>>16;c[((c[(I&p)>>2]|0)+((l&65535)<<2)&p)>>2]=k;l=c[(ga&p)>>2]|16;c[(ga&p)>>2]=l;v=0;r=u;s=k}}else{k=c[(u&p)>>2]|0;l=c[(ga&p)>>2]|4;c[(ga&p)>>2]=l;if(!(c[(k&p)+4>>2]&2048)){k=c[(k&p)+20>>2]|0;if((k|0)!=0?(M=c[(k&p)>>2]|0,(M|0)!=0):0)v=(fs(M,((M|0)<0)<<31>>31)|0)<<16>>16;else v=0}else v=46}while(0);do if(!(l&2)){k=(b[(ca&o)>>1]|0)+1<<16>>16;b[(ca&o)>>1]=k;k=k&65535;m=b[(u&o)+16>>1]|0;if(m<<16>>16<1&w){q=(m&65535)-v+(e[($&o)>>1]|0)&65535;b[($&o)>>1]=q;break}m=c[(ba&p)>>2]|0;m=(e[($&o)>>1]|0)+((e[(m+(k<<1)&o)>>1]|0)-(e[(m+(k+-1<<1)&o)>>1]|0))|0;k=m&65535;b[($&o)>>1]=k;if(!(t&128))q=k;else{q=m+10&65535;b[($&o)>>1]=q}}else{k=b[($&o)>>1]|0;q=k<<16>>16;do if(r){m=b[(r&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);do if(s){m=b[(s&o)+16>>1]|0;if(m<<16>>16<1){k=(m&65535)+(k&65535)&65535;break}else{k=(k&65535)+65516&65535;break}}while(0);m=(r|0)!=0;do if(m?(b[(r&o)+16>>1]|0)>0&(s|0)!=0:0){if((b[(s&o)+16>>1]|0)<=0)break;k=(k&65535)+65516&65535}while(0);q=(((s|0)!=0)<<31>>31)+(m<<31>>31)+q|0;u=k<<16>>16<10?10:k<<16>>16;q=((u|0)<(q|0)?u:q)&65535;b[($&o)>>1]=q}while(0);k=q&65535;m=Gv(C,k+1+(((b[(y&o)>>1]|0)*15|0)/(b[((c[(F&p)>>2]|0)&o)+42>>1]|0)|0)&65535)|0;if(!(l&320))m=Gv(m,k+16&65535)|0;l=v+A|0;b[(z&o)>>1]=(m&65535)+l;b[($&o)>>1]=k+l;Iv(c[(O&p)>>2]|0,ea,D);k=Fv(d,ea)|0;v=c[(ga&p)>>2]|0;b[($&o)>>1]=(v&2|0)==0?q:aa;if((v&16|0)==0?(e[(ca&o)>>1]|0)<(e[(B&o)>>1]|0):0)Jv(d,f,g,l&65535)|0;b[($&o)>>1]=aa;m=r;l=s}else{m=r;l=s;k=0}}u=Ev(R)|0;if(!((k|0)==0&(u|0)!=0))break;else{r=m;s=l}}}while(0);l=ea;c[(l&p)>>2]=P;c[(l&p)+4>>2]=Q;b[(ca&o)>>1]=X;b[(Y&o)>>1]=T;c[(ga&p)>>2]=_;b[($&o)>>1]=aa;b[(Z&o)>>1]=U;l=X&65535;if(((X<<16>>16==T<<16>>16?(da=l+1|0,da>>>0<(e[(g&o)+46>>1]|0)>>>0):0)?(a[(W&n)>>0]&64)==0:0)?(b[((c[(ba&p)>>2]|0)+(da<<1)&o)>>1]|0)>41:0){k=Nu(V,ea,(U&65535)+1|0)|0;if(!k){b[(ca&o)>>1]=(b[(ca&o)>>1]|0)+1<<16>>16;b[(Y&o)>>1]=(b[(Y&o)>>1]|0)+1<<16>>16;k=b[(Z&o)>>1]|0;b[(Z&o)>>1]=k+1<<16>>16;c[((c[(ea&p)+48>>2]|0)+((k&65535)<<2)&p)>>2]=0;c[(ga&p)>>2]=c[(ga&p)>>2]|32768;k=c[(ba&p)>>2]|0;k=(e[(k+(l<<1)&o)>>1]|0)-(e[(k+(da<<1)&o)>>1]|0)|0;b[($&o)>>1]=(e[($&o)>>1]|0)-k;Jv(d,f,g,(((k<<16)+327680|0)>>>16)+(h&65535)&65535)|0;b[($&o)>>1]=aa;b[(ca&o)>>1]=X;b[(Y&o)>>1]=X;c[(ga&p)>>2]=_;k=0}}}else k=7;i=ha;return k|0}function Kv(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,n=0,q=0,r=0;l=b[(a&o)>>1]|0;h=a+8|0;a:do if(l<<16>>16){j=l;k=h;while(1){i=b[(k&o)+8>>1]|0;if(i<<16>>16>=f<<16>>16?(r=k,(c[(r&p)>>2]&d|0)==(d|0)?(c[(r&p)+4>>2]&e|0)==(e|0):0):0){n=k;q=14;break a}if(i<<16>>16<=f<<16>>16?(i=k,r=c[(i&p)>>2]|0,i=c[(i&p)+4>>2]|0,(r&d|0)==(r|0)&(i&e|0)==(i|0)):0)break a;j=j+-1<<16>>16;if(!(j<<16>>16))break;else k=k+16|0}if((l&65535)>=3){i=b[(a&o)+16>>1]|0;k=1;do{if(i<<16>>16>(b[(a+(k<<4)&o)+16>>1]|0))h=a+(k<<4)+8|0;k=k+1|0;i=b[(h&o)+8>>1]|0}while((k&65535)<(l&65535));if(i<<16>>16>f<<16>>16){n=h;q=14}}else q=9}else q=9;while(0);if((q|0)==9){n=l&65535;b[(a&o)>>1]=l+1<<16>>16;b[(a+(n<<4)&o)+18>>1]=g;n=a+(n<<4)+8|0;q=14}if((q|0)==14?(m=n,c[(m&p)>>2]=d,c[(m&p)+4>>2]=e,b[(n&o)+8>>1]=f,m=n+10|0,(b[(m&o)>>1]|0)>g<<16>>16):0)b[(m&o)>>1]=g;return}function Lv(b,d){b=b|0;d=d|0;var e=0,f=0,g=0,h=0;e=c[(d&p)+36>>2]|0;do if(e&17408){if((e&1024|0)!=0?(h=d+28|0,(a[(h&n)>>0]|0)!=0):0){e=d+32|0;Wc(c[(e&p)>>2]|0);a[(h&n)>>0]=0;c[(e&p)>>2]=0;break}if((e&16384|0)!=0?(f=d+28|0,g=c[(f&p)>>2]|0,(g|0)!=0):0){mg(b,c[(g&p)+16>>2]|0);mg(b,c[(f&p)>>2]|0);c[(f&p)>>2]=0}}while(0);return}function Mv(f,g,h,k,l,m,q){f=f|0;g=g|0;h=h|0;k=k|0;l=l|0;m=m|0;q=q|0;var 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,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,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;ta=i;i=i+32|0;if((i|0)>=(j|0))fa();oa=ta;s=c[(c[(f&p)>>2]&p)>>2]|0;na=l&65535;if(l<<16>>16!=0?(b[(s&o)+60>>1]&128)!=0:0)r=0;else pa=3;a:do if((pa|0)==3){sa=c[(g&p)>>2]|0;r=sa&65535;if(r>>>0<=63){qa=iw(1,0,r|0)|0;qa=jw(qa|0,G|0,-1,-1)|0;ra=G;b:do if((qa|0)==0&(ra|0)==0){g=0;h=0;s=1}else{ha=h+24|0;ia=f+4|0;ja=(r|0)==0;ea=g+4|0;ga=(k&768)==0;da=s+8|0;W=(k&256)==0;X=f+68|0;Y=oa+20|0;Z=oa+4|0;aa=oa+24|0;ba=f+328|0;_=0;$=0;g=0;h=0;k=0;t=0;ca=0;s=1;l=0;while(1){if((ca|0)>0){U=l+8|0;V=c[(U&p)>>2]|k;t=c[(U&p)+4>>2]|t}else V=k;if((ca|0)<(na|0))l=c[((c[(ha&p)>>2]|0)+(ca<<2)&p)>>2]|0;else l=m;B=l+36|0;k=c[(B&p)>>2]|0;if(k&1024)break;U=c[((c[(ia&p)>>2]|0)+((d[(l&n)+16>>0]|0)*72|0)&p)+48>>2]|0;if(!ja){k=~V;v=~t;y=0;do{A=iw(1,0,y|0)|0;z=G;c:do if((A&g|0)==0&(z&h|0)==0){u=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;x=c[(u&p)+4>>2]|0;if(x&4096)do{if(!(x&262144))u=u+12|0;else u=c[((c[(u&p)+20>>2]|0)&p)+4>>2]|0;u=c[(u&p)>>2]|0;x=c[(u&p)+4>>2]|0}while((x&4096|0)!=0);if(((a[(u&n)>>0]|0)==-102?(c[(u&p)+28>>2]|0)==(U|0):0)?(ka=u+32|0,la=Fu(ba,U,b[(ka&o)>>1]|0,k,v,130,0)|0,(la|0)!=0):0){do if(b[(la&o)+18>>1]&2){if((b[(ka&o)>>1]|0)<=-1)break;u=cu(c[(f&p)>>2]|0,c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0)|0;if(!u)u=c[(da&p)>>2]|0;x=c[(u&p)>>2]|0;w=cu(c[(f&p)>>2]|0,c[(la&p)>>2]|0)|0;if(!w)w=c[(da&p)>>2]|0;if(dd(x,c[(w&p)>>2]|0)|0)break c}while(0);g=A|g;h=z|h}}while(0);y=y+1|0}while((y|0)<(r|0));k=c[(B&p)>>2]|0}do if(!(k&4096)){if(!(k&256)){u=c[(l&p)+28>>2]|0;if(!u){r=0;break a}if(a[(u&n)+51>>0]&4){r=0;break a}k=b[(u&o)+48>>1]|0;s=(a[(u&n)+50>>0]|0)!=0&1;if(!(k<<16>>16)){pa=71;break}else{S=k&65535;T=b[(u&o)+46>>1]|0}}else{S=1;T=0;u=0}J=l+24|0;K=l+42|0;L=l+48|0;M=(u|0)==0;N=u+32|0;O=iw(1,0,ca|0)|0;P=G;Q=u+4|0;R=u+28|0;I=u+12|0;k=0;u=0;A=0;H=0;d:while(1){z=(u|0)<(e[(J&o)>>1]|0);if((z?(b[(K&o)>>1]|0)==0:0)?(ma=e[((c[((c[(L&p)>>2]|0)+(u<<2)&p)>>2]|0)&o)+18>>1]|0,(ma&130|0)!=0):0){s=(ma&128|0)==0?s:0;z=H}else{if(!M){x=b[((c[(Q&p)>>2]|0)+(u<<1)&o)>>1]|0;w=a[((c[(R&p)>>2]|0)+u&n)>>0]|0;v=c[(I&p)>>2]|0;x=x<<16>>16==(b[(v&o)+36>>1]|0)?-1:x<<16>>16;y=(x|0)>-1;if(s<<24>>24!=0&y)if(z){y=1;F=x}else{y=1;F=x;s=(a[((c[(v&p)+4>>2]|0)+(x*24|0)&n)+20>>0]|0)==0?0:s}else F=x}else{y=0;F=-1;w=0}if(ja){pa=68;break}else{z=1;E=0}e:while(1){C=iw(1,0,E|0)|0;D=G;do if((C&g|0)==0&(D&h|0)==0){v=c[((c[(ea&p)>>2]|0)+(E*20|0)&p)>>2]|0;x=c[(v&p)+4>>2]|0;if(!(x&4096))B=v;else{B=v;do{if(!(x&262144))x=B+12|0;else x=c[((c[(B&p)+20>>2]|0)&p)+4>>2]|0;B=c[(x&p)>>2]|0;x=c[(B&p)+4>>2]|0}while((x&4096|0)!=0)}z=ga?0:z;if((a[(B&n)>>0]|0)!=-102)break;if((c[(B&p)+28>>2]|0)!=(U|0))break;if((b[(B&o)+32>>1]|0)!=(F|0))break;if(!y){B=C;y=D;z=E;break e}x=cu(c[(f&p)>>2]|0,v)|0;if(!x)x=c[(da&p)>>2]|0;if(!(dd(c[(x&p)>>2]|0,c[((c[(N&p)>>2]|0)+(u<<2)&p)>>2]|0)|0)){B=C;y=D;z=E;break e}}while(0);E=E+1|0;if(!(z<<24>>24!=0&(E|0)<(r|0))){pa=68;break d}}do if(W){if(H<<24>>24)if((w^A)<<24>>24==(a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0)){z=H;break}else{pa=68;break d}v=a[((c[(ea&p)>>2]|0)+(z*20|0)&n)+12>>0]|0;A=v^w;if(w<<24>>24==v<<24>>24){z=1;break}v=q;w=c[(v&p)+4>>2]|P;z=q;c[(z&p)>>2]=c[(v&p)>>2]|O;c[(z&p)+4>>2]=w;z=1}else z=H;while(0);g=B|g;h=y|h;k=(F|0)<0?1:k}u=u+1|0;if((u|0)>=(S|0))break;else H=z}if((pa|0)==68){pa=0;s=(u|0)==0|(u|0)<(T&65535|0)?0:s}if(!(k<<24>>24))pa=71;else s=1}else pa=71;while(0);if((pa|0)==71){pa=0;if(!(s<<24>>24)){s=0;break b}}U=l+8|0;_=c[(U&p)>>2]|_;$=c[(U&p)+4>>2]|$;if(!ja){z=~_;A=~$;y=0;do{u=iw(1,0,y|0)|0;x=G;do if((u&g|0)==0&(x&h|0)==0){k=c[((c[(ea&p)>>2]|0)+(y*20|0)&p)>>2]|0;v=Av(X,k)|0;w=G;if((v|0)==0&(w|0)==0?(c[(oa&p)>>2]=0,c[(oa&p)+4>>2]=0,c[(oa&p)+8>>2]=0,c[(oa&p)+12>>2]=0,c[(oa&p)+16>>2]=0,c[(oa&p)+20>>2]=0,a[(Y&n)>>0]=1,c[(oa&p)>>2]=78,c[(Z&p)>>2]=79,c[(aa&p)>>2]=0,rs(oa,k)|0,(a[(Y&n)>>0]|0)==0):0)break;U=(v&z|0)==0&(w&A|0)==0;g=(U?u:0)|g;h=(U?x:0)|h}while(0);y=y+1|0}while((y|0)<(r|0))}if(h>>>0>ra>>>0|(h|0)==(ra|0)&g>>>0>=qa>>>0|s<<24>>24==0|(ca|0)>=(na|0))break b;else{k=V;ca=ca+1|0}}ga=(a[(l&n)+29>>0]|0)==0;g=ga?g:qa;h=ga?h:ra}while(0);if((g|0)==(qa|0)&(h|0)==(ra|0)){r=sa&255;break}if(!(s<<24>>24)){do{r=r+-1|0;if((r|0)<=0){r=0;break a}ea=iw(1,0,r|0)|0;ea=jw(ea|0,G|0,-1,-1)|0;ga=G}while(!((ea&g|0)==(ea|0)&(ga&h|0)==(ga|0)));r=r&255}else r=-1}else r=0}while(0);i=ta;return r|0}function Nv(b,c,d,e){b=b|0;c=c|0;d=d|0;e=e|0;if(c)Sk(b,33920,5);if(!d)c=0;else{c=d;while(1)if(!(a[(c&n)>>0]|0))break;else c=c+1|0;c=c-d&1073741823}Sk(b,d,c);Sk(b,e,1);Sk(b,13552,1);return}function Ov(a){a=a|0;var d=0,e=0,f=0,g=0,h=0,i=0;i=c[(c[(c[(a&p)>>2]&p)>>2]&p)>>2]|0;d=c[(a&p)+12>>2]|0;g=a+20|0;if((d|0)>0){h=c[(g&p)>>2]|0;while(1){d=d+-1|0;f=h+20|0;e=b[(f&o)>>1]|0;if(e&1){Gk(i,c[(h&p)>>2]|0);e=b[(f&o)>>1]|0}e=e&65535;if(!(e&16)){if(e&32){e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}}else{e=c[(h&p)+12>>2]|0;Ov(e);mg(i,e)}if((d|0)<=0)break;else h=h+48|0}}d=c[(g&p)>>2]|0;if((d|0)!=(a+24|0))mg(i,d);return}function Pv(b,e,f){b=b|0;e=e|0;f=f|0;var g=0,h=0,k=0,l=0,m=0,o=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0;u=i;i=i+32|0;if((i|0)>=(j|0))fa();t=u;h=c[(b&p)+8>>2]|0;k=c[(b&p)>>2]|0;if(e){l=(f|0)==10;m=b+437|0;o=t+4|0;q=t+1|0;r=t+8|0;s=t+12|0;g=f&255;do{if(l)f=a[(e&n)+1>>0]|0;else f=g;a[(m&n)>>0]=f;f=d[(e&n)>>0]|0;if((f|0)==108){w=Vv(b,e)|0;v=gr(k,c[(e&p)+8>>2]|0,0)|0;f=Nr(k,c[(e&p)+28>>2]|0)|0;tr(b,w,v,f,d[(m&n)>>0]|0)}else if((f|0)==109){f=Vv(b,e)|0;rr(b,f,Mr(k,c[(e&p)+20>>2]|0,0,0)|0)}else if((f|0)==110){w=Vv(b,e)|0;v=Pr(k,c[(e&p)+24>>2]|0,0)|0;f=Mr(k,c[(e&p)+20>>2]|0,0,0)|0;sr(b,w,v,f,d[(m&n)>>0]|0)}else{f=gr(k,c[(e&p)+8>>2]|0,0)|0;a[(t&n)>>0]=4;c[(o&p)>>2]=0;a[(q&n)>>0]=0;c[(r&p)>>2]=0;c[(s&p)>>2]=0;ir(b,f,t)|0;Mk(k,f,1)}if((a[(e&n)>>0]|0)!=119)wh(h,98,0,0,0)|0;e=c[(e&p)+32>>2]|0}while((e|0)!=0)}i=u;return}function Qv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,k=0,l=0,m=0;m=i;i=i+16|0;if((i|0)>=(j|0))fa();h=m;l=c[(d&p)>>2]|0;c[(h&p)>>2]=0;c[(h&p)+4>>2]=0;h=nr(l,159,h,0)|0;do if(!h)h=0;else{k=g<<16>>16;if(g<<16>>16>-1?(b[(e&o)+36>>1]|0)!=g<<16>>16:0){g=c[(e&p)+4>>2]|0;c[(h&p)+28>>2]=f+1+k;a[(h&n)+1>>0]=a[(g+(k*24|0)&n)+21>>0]|0;k=c[(g+(k*24|0)&p)+16>>2]|0;if(!k)k=c[(c[(l&p)+8>>2]&p)>>2]|0;h=xv(d,h,k)|0;break}c[(h&p)+28>>2]=f;a[(h&n)+1>>0]=68}while(0);i=m;return h|0}function Rv(d,e,f,g){d=d|0;e=e|0;f=f|0;g=g|0;var h=0,i=0,j=0;d=mh(d,48,0)|0;if(d){h=d+0|0;i=h+44|0;do{a[(h&n)>>0]=0;h=h+1|0}while((h|0)<(i|0));a[(d&n)>>0]=-102;b[(d&o)+34>>1]=-1;c[(d&p)+24>>2]=1;h=c[(e+(f*72|0)&p)+24>>2]|0;c[(d&p)+44>>2]=h;c[(d&p)+28>>2]=c[(e+(f*72|0)&p)+48>>2];if((b[(h&o)+36>>1]|0)==(g|0))b[(d&o)+32>>1]=-1;else{b[(d&o)+32>>1]=g;j=(g|0)>63;g=iw(1,0,g|0)|0;h=e+(f*72|0)+64|0;f=h;i=c[(f&p)+4>>2]|(j?-2147483648:G);c[(h&p)>>2]=c[(f&p)>>2]|(j?0:g);c[(h&p)+4>>2]=i}h=d+4|0;c[(h&p)>>2]=c[(h&p)>>2]|4}return d|0}function Sv(b,e){b=b|0;e=e|0;if((a[(e&n)>>0]|0)==-101){e=e+38|0;a[(e&n)>>0]=(d[(e&n)>>0]|0)+(c[(b&p)+24>>2]|0)}return 0}function Tv(a,d){a=a|0;d=d|0;var f=0,g=0,h=0,i=0,j=0,k=0;f=b[(a&o)+40>>1]|0;i=f&65535;h=b[(a&o)+42>>1]|0;k=e[(d&o)+40>>1]|0;g=b[(d&o)+42>>1]|0;a:do if(!((g&65535)>(h&65535)?1:(i-(h&65535)|0)>=(k-(g&65535)|0))){g=b[(a&o)+20>>1]|0;h=b[(d&o)+20>>1]|0;if(g<<16>>16>=h<<16>>16){if(g<<16>>16>h<<16>>16){f=0;break}if((b[(a&o)+22>>1]|0)>(b[(d&o)+22>>1]|0)){f=0;break}}if(!(f<<16>>16))f=1;else{j=c[(a&p)+48>>2]|0;d=d+48|0;a=i;while(1){a=a+-1|0;h=c[(j+(a<<2)&p)>>2]|0;if(h){f=k;while(1){g=f+-1|0;if((f|0)<=0){f=0;break a}if((c[((c[(d&p)>>2]|0)+(g<<2)&p)>>2]|0)==(h|0))break;else f=g}if((f|0)<1){f=0;break a}}if((a|0)<=0){f=1;break}}}}else f=0;while(0);return f|0}function Uv(d,e){d=d|0;e=e|0;var f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,q=0,r=0,s=0,t=0,u=0,v=0;f=c[(d&p)>>2]|0;a:do if(f){k=a[(e&n)+16>>0]|0;l=e+17|0;m=e+18|0;q=e+20|0;r=e+22|0;s=e+42|0;t=e+36|0;do{if((a[(f&n)+16>>0]|0)==k<<24>>24?(a[(f&n)+17>>0]|0)==(a[(l&n)>>0]|0):0){if((((c[(f&p)+36>>2]&16384|0)!=0?(b[(s&o)>>1]|0)==0:0)?(c[(t&p)>>2]&513|0)==513:0)?(i=f,j=e,h=c[(j&p)>>2]|0,j=c[(j&p)+4>>2]|0,(h&c[(i&p)>>2]|0)==(h|0)?(j&c[(i&p)+4>>2]|0)==(j|0):0):0)break a;u=f;v=c[(u&p)>>2]|0;u=c[(u&p)+4>>2]|0;h=e;g=c[(h&p)>>2]|0;h=c[(h&p)+4>>2]|0;i=g&v;j=h&u;if((((i|0)==(v|0)&(j|0)==(u|0)?(b[(f&o)+18>>1]|0)<=(b[(m&o)>>1]|0):0)?(b[(f&o)+20>>1]|0)<=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)<=(b[(r&o)>>1]|0):0){d=0;break a}if(((i|0)==(g|0)&(j|0)==(h|0)?(b[(f&o)+20>>1]|0)>=(b[(q&o)>>1]|0):0)?(b[(f&o)+22>>1]|0)>=(b[(r&o)>>1]|0):0)break a}d=f+52|0;f=c[(d&p)>>2]|0}while((f|0)!=0)}while(0);return d|0}function Vv(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0;h=pr(c[(a&p)>>2]|0,0,b+12|0,0)|0;do if(h){g=c[(a&p)>>2]|0;f=c[((c[(b&p)+4>>2]|0)&p)+20>>2]|0;a:do if(f){e=c[(g&p)+20>>2]|0;if((e|0)>0){b=c[(g&p)+16>>2]|0;d=0;while(1){a=d+1|0;if((c[(b+(d<<4)&p)+12>>2]|0)==(f|0)){a=d;d=7;break a}if((a|0)<(e|0))d=a;else{d=7;break}}}else a=0}else{a=-1e6;d=7}while(0);if((d|0)==7)if(!((a|0)==0|(a|0)>1))break;a=kh(g,c[((c[(g&p)+16>>2]|0)+(a<<4)&p)>>2]|0)|0;c[(h+(((c[(h&p)>>2]|0)+-1|0)*72|0)&p)+12>>2]=a}while(0);return h|0}function Wv(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,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;do if(a>>>0<245){if(a>>>0<11)q=16;else q=a+11&-8;a=q>>>3;l=c[12266]|0;i=l>>>a;if(i&3){e=(i&1^1)+a|0;f=e<<1;b=49104+(f<<2)|0;f=49104+(f+2<<2)|0;g=c[(f&p)>>2]|0;h=g+8|0;i=c[(h&p)>>2]|0;do if((b|0)!=(i|0)){if(i>>>0<(c[12270]|0)>>>0)Ob();d=i+12|0;if((c[(d&p)>>2]|0)==(g|0)){c[(d&p)>>2]=b;c[(f&p)>>2]=i;break}else Ob()}else c[12266]=l&~(1<<e);while(0);x=e<<3;c[(g&p)+4>>2]=x|3;x=g+(x|4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1;x=h;return x|0}k=c[12268]|0;if(q>>>0>k>>>0){if(i){f=2<<a;f=i<<a&(f|0-f);f=(f&0-f)+-1|0;a=f>>>12&16;f=f>>>a;e=f>>>5&8;f=f>>>e;d=f>>>2&4;f=f>>>d;g=f>>>1&2;f=f>>>g;h=f>>>1&1;h=(e|a|d|g|h)+(f>>>h)|0;f=h<<1;g=49104+(f<<2)|0;f=49104+(f+2<<2)|0;d=c[(f&p)>>2]|0;a=d+8|0;e=c[(a&p)>>2]|0;do if((g|0)!=(e|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();i=e+12|0;if((c[(i&p)>>2]|0)==(d|0)){c[(i&p)>>2]=g;c[(f&p)>>2]=e;m=c[12268]|0;break}else Ob()}else{c[12266]=l&~(1<<h);m=k}while(0);x=h<<3;b=x-q|0;c[(d&p)+4>>2]=q|3;j=d+q|0;c[(d+(q|4)&p)>>2]=b|1;c[(d+x&p)>>2]=b;if(m){e=c[12271]|0;g=m>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<<g;if(h&g){h=49104+(i+2<<2)|0;i=c[(h&p)>>2]|0;if(i>>>0<(c[12270]|0)>>>0)Ob();else{n=h;o=i}}else{c[12266]=h|g;n=49104+(i+2<<2)|0;o=f}c[(n&p)>>2]=e;c[(o&p)+12>>2]=e;c[(e&p)+8>>2]=o;c[(e&p)+12>>2]=f}c[12268]=b;c[12271]=j;x=a;return x|0}a=c[12267]|0;if(a){h=(a&0-a)+-1|0;w=h>>>12&16;h=h>>>w;v=h>>>5&8;h=h>>>v;x=h>>>2&4;h=h>>>x;i=h>>>1&2;h=h>>>i;g=h>>>1&1;g=c[((v|w|x|i|g)+(h>>>g)<<2&p)+49368>>2]|0;h=(c[(g&p)+4>>2]&-8)-q|0;i=g;while(1){d=c[(i&p)+16>>2]|0;if(!d){d=c[(i&p)+20>>2]|0;if(!d){l=h;k=g;break}}i=(c[(d&p)+4>>2]&-8)-q|0;x=i>>>0<h>>>0;h=x?i:h;i=d;g=x?d:g}a=c[12270]|0;if(k>>>0<a>>>0)Ob();b=k+q|0;if(k>>>0>=b>>>0)Ob();j=c[(k&p)+24>>2]|0;g=c[(k&p)+12>>2]|0;do if((g|0)==(k|0)){h=k+20|0;i=c[(h&p)>>2]|0;if(!i){h=k+16|0;i=c[(h&p)>>2]|0;if(!i){e=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0<a>>>0)Ob();else{c[(h&p)>>2]=0;e=i;break}}else{f=c[(k&p)+8>>2]|0;if(f>>>0<a>>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(k|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(k|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;e=g;break}else Ob()}while(0);do if(j){i=c[(k&p)+28>>2]|0;h=49368+(i<<2)|0;if((k|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=e;if(!e){c[12267]=c[12267]&~(1<<i);break}}else{if(j>>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(k|0))c[(i&p)>>2]=e;else c[(j&p)+20>>2]=e;if(!e)break}h=c[12270]|0;if(e>>>0<h>>>0)Ob();c[(e&p)+24>>2]=j;i=c[(k&p)+16>>2]|0;do if(i)if(i>>>0<h>>>0)Ob();else{c[(e&p)+16>>2]=i;c[(i&p)+24>>2]=e;break}while(0);i=c[(k&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(e&p)+20>>2]=i;c[(i&p)+24>>2]=e;break}}while(0);if(l>>>0<16){x=l+q|0;c[(k&p)+4>>2]=x|3;x=k+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}else{c[(k&p)+4>>2]=q|3;c[(k+(q|4)&p)>>2]=l|1;c[(k+l+q&p)>>2]=l;d=c[12268]|0;if(d){e=c[12271]|0;g=d>>>3;i=g<<1;f=49104+(i<<2)|0;h=c[12266]|0;g=1<<g;if(h&g){i=49104+(i+2<<2)|0;h=c[(i&p)>>2]|0;if(h>>>0<(c[12270]|0)>>>0)Ob();else{r=i;s=h}}else{c[12266]=h|g;r=49104+(i+2<<2)|0;s=f}c[(r&p)>>2]=e;c[(s&p)+12>>2]=e;c[(e&p)+8>>2]=s;c[(e&p)+12>>2]=f}c[12268]=l;c[12271]=b}x=k+8|0;return x|0}else s=q}else s=q}else if(a>>>0<=4294967231){a=a+11|0;s=a&-8;k=c[12267]|0;if(k){h=0-s|0;a=a>>>8;if(a)if(s>>>0>16777215)d=31;else{q=(a+1048320|0)>>>16&8;r=a<<q;o=(r+520192|0)>>>16&4;r=r<<o;d=(r+245760|0)>>>16&2;d=14-(o|q|d)+(r<<d>>>15)|0;d=s>>>(d+7|0)&1|d<<1}else d=0;f=c[(d<<2&p)+49368>>2]|0;a:do if(!f){a=0;i=0}else{if((d|0)==31)i=0;else i=25-(d>>>1)|0;l=h;a=0;b=s<<i;i=0;while(1){e=c[(f&p)+4>>2]&-8;h=e-s|0;if(h>>>0<l>>>0)if((e|0)==(s|0)){a=f;i=f;break a}else i=f;else h=l;r=c[(f&p)+20>>2]|0;f=c[(f+(b>>>31<<2)&p)+16>>2]|0;a=(r|0)==0|(r|0)==(f|0)?a:r;if(!f)break;else{l=h;b=b<<1}}}while(0);if((a|0)==0&(i|0)==0){a=2<<d;a=k&(a|0-a);if(!a)break;r=(a&0-a)+-1|0;n=r>>>12&16;r=r>>>n;m=r>>>5&8;r=r>>>m;o=r>>>2&4;r=r>>>o;q=r>>>1&2;r=r>>>q;a=r>>>1&1;a=c[((m|n|o|q|a)+(r>>>a)<<2&p)+49368>>2]|0}if(!a){o=h;q=i}else while(1){r=(c[(a&p)+4>>2]&-8)-s|0;f=r>>>0<h>>>0;h=f?r:h;i=f?a:i;f=c[(a&p)+16>>2]|0;if(f){a=f;continue}a=c[(a&p)+20>>2]|0;if(!a){o=h;q=i;break}}if((q|0)!=0?o>>>0<((c[12268]|0)-s|0)>>>0:0){a=c[12270]|0;if(q>>>0<a>>>0)Ob();m=q+s|0;if(q>>>0>=m>>>0)Ob();j=c[(q&p)+24>>2]|0;g=c[(q&p)+12>>2]|0;do if((g|0)==(q|0)){h=q+20|0;i=c[(h&p)>>2]|0;if(!i){h=q+16|0;i=c[(h&p)>>2]|0;if(!i){u=0;break}}while(1){g=i+20|0;f=c[(g&p)>>2]|0;if(f){i=f;h=g;continue}g=i+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{i=f;h=g}}if(h>>>0<a>>>0)Ob();else{c[(h&p)>>2]=0;u=i;break}}else{f=c[(q&p)+8>>2]|0;if(f>>>0<a>>>0)Ob();i=f+12|0;if((c[(i&p)>>2]|0)!=(q|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(q|0)){c[(i&p)>>2]=g;c[(h&p)>>2]=f;u=g;break}else Ob()}while(0);do if(j){i=c[(q&p)+28>>2]|0;h=49368+(i<<2)|0;if((q|0)==(c[(h&p)>>2]|0)){c[(h&p)>>2]=u;if(!u){c[12267]=c[12267]&~(1<<i);break}}else{if(j>>>0<(c[12270]|0)>>>0)Ob();i=j+16|0;if((c[(i&p)>>2]|0)==(q|0))c[(i&p)>>2]=u;else c[(j&p)+20>>2]=u;if(!u)break}h=c[12270]|0;if(u>>>0<h>>>0)Ob();c[(u&p)+24>>2]=j;i=c[(q&p)+16>>2]|0;do if(i)if(i>>>0<h>>>0)Ob();else{c[(u&p)+16>>2]=i;c[(i&p)+24>>2]=u;break}while(0);i=c[(q&p)+20>>2]|0;if(i)if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(u&p)+20>>2]=i;c[(i&p)+24>>2]=u;break}}while(0);b:do if(o>>>0>=16){c[(q&p)+4>>2]=s|3;c[(q+(s|4)&p)>>2]=o|1;c[(q+o+s&p)>>2]=o;i=o>>>3;if(o>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<<i;do if(!(g&i)){c[12266]=g|i;v=49104+(h+2<<2)|0;w=f}else{i=49104+(h+2<<2)|0;h=c[(i&p)>>2]|0;if(h>>>0>=(c[12270]|0)>>>0){v=i;w=h;break}Ob()}while(0);c[(v&p)>>2]=m;c[(w&p)+12>>2]=m;c[(q+s&p)+8>>2]=w;c[(q+s&p)+12>>2]=f;break}d=o>>>8;if(d)if(o>>>0>16777215)f=31;else{w=(d+1048320|0)>>>16&8;x=d<<w;v=(x+520192|0)>>>16&4;x=x<<v;f=(x+245760|0)>>>16&2;f=14-(v|w|f)+(x<<f>>>15)|0;f=o>>>(f+7|0)&1|f<<1}else f=0;i=49368+(f<<2)|0;c[(q+s&p)+28>>2]=f;c[(q+s&p)+20>>2]=0;c[(q+s&p)+16>>2]=0;h=c[12267]|0;g=1<<f;if(!(h&g)){c[12267]=h|g;c[(i&p)>>2]=m;c[(q+s&p)+24>>2]=i;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break}d=c[(i&p)>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;c:do if((c[(d&p)+4>>2]&-8|0)!=(o|0)){h=o<<b;while(1){b=d+(h>>>31<<2)+16|0;i=c[(b&p)>>2]|0;if(!i)break;if((c[(i&p)+4>>2]&-8|0)==(o|0)){C=i;break c}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=m;c[(q+s&p)+24>>2]=d;c[(q+s&p)+12>>2]=m;c[(q+s&p)+8>>2]=m;break b}}else C=d;while(0);d=C+8|0;b=c[(d&p)>>2]|0;x=c[12270]|0;if(C>>>0>=x>>>0&b>>>0>=x>>>0){c[(b&p)+12>>2]=m;c[(d&p)>>2]=m;c[(q+s&p)+8>>2]=b;c[(q+s&p)+12>>2]=C;c[(q+s&p)+24>>2]=0;break}else Ob()}else{x=o+s|0;c[(q&p)+4>>2]=x|3;x=q+(x+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}while(0);x=q+8|0;return x|0}}}else s=-1;while(0);a=c[12268]|0;if(a>>>0>=s>>>0){b=a-s|0;d=c[12271]|0;if(b>>>0>15){c[12271]=d+s;c[12268]=b;c[(d+s&p)+4>>2]=b|1;c[(d+a&p)>>2]=b;c[(d&p)+4>>2]=s|3}else{c[12268]=0;c[12271]=0;c[(d&p)+4>>2]=a|3;x=d+(a+4)|0;c[(x&p)>>2]=c[(x&p)>>2]|1}x=d+8|0;return x|0}a=c[12269]|0;if(a>>>0>s>>>0){w=a-s|0;c[12269]=w;x=c[12272]|0;c[12272]=x+s;c[(x+s&p)+4>>2]=w|1;c[(x&p)+4>>2]=s|3;x=x+8|0;return x|0}do if(!(c[12384]|0)){a=wb(30)|0;if(!(a+-1&a)){c[12386]=a;c[12385]=a;c[12387]=-1;c[12388]=-1;c[12389]=0;c[12377]=0;c[12384]=(Pb(0)|0)&-16^1431655768;break}else Ob()}while(0);l=s+48|0;b=c[12386]|0;k=s+47|0;d=b+k|0;b=0-b|0;m=d&b;if(m>>>0<=s>>>0){x=0;return x|0}a=c[12376]|0;if((a|0)!=0?(v=c[12374]|0,w=v+m|0,w>>>0<=v>>>0|w>>>0>a>>>0):0){x=0;return x|0}d:do if(!(c[12377]&4)){a=c[12272]|0;e:do if(a){f=49512|0;while(1){i=c[(f&p)>>2]|0;if(i>>>0<=a>>>0?(t=f+4|0,(i+(c[(t&p)>>2]|0)|0)>>>0>a>>>0):0){e=f;h=t;a=f;break}f=c[(f&p)+8>>2]|0;if(!f){H=181;break e}}if(a){a=d-(c[12269]|0)&b;if(a>>>0<2147483647){i=sb(a|0)|0;if((i|0)==((c[(e&p)>>2]|0)+(c[(h&p)>>2]|0)|0))H=190;else H=191}else a=0}else H=181}else H=181;while(0);do if((H|0)==181){i=sb(0)|0;if((i|0)!=(-1|0)){a=i;h=c[12385]|0;f=h+-1|0;if(!(f&a))a=m;else a=m-a+(f+a&0-h)|0;h=c[12374]|0;f=h+a|0;if(a>>>0>s>>>0&a>>>0<2147483647){w=c[12376]|0;if((w|0)!=0?f>>>0<=h>>>0|f>>>0>w>>>0:0){a=0;break}h=sb(a|0)|0;if((h|0)==(i|0))H=190;else{i=h;H=191}}else a=0}else a=0}while(0);f:do if((H|0)==190){if((i|0)!=(-1|0)){y=i;H=201;break d}}else if((H|0)==191){h=0-a|0;do if((i|0)!=(-1|0)&a>>>0<2147483647&l>>>0>a>>>0?(x=c[12386]|0,x=k-a+x&0-x,x>>>0<2147483647):0)if((sb(x|0)|0)==(-1|0)){sb(h|0)|0;a=0;break f}else{a=x+a|0;break}while(0);if((i|0)==(-1|0))a=0;else{y=i;H=201;break d}}while(0);c[12377]=c[12377]|4;H=198}else{a=0;H=198}while(0);if((((H|0)==198?m>>>0<2147483647:0)?(y=sb(m|0)|0,z=sb(0)|0,(y|0)!=(-1|0)&(z|0)!=(-1|0)&y>>>0<z>>>0):0)?(A=z-y|0,B=A>>>0>(s+40|0)>>>0,B):0){a=B?A:a;H=201}if((H|0)==201){i=(c[12374]|0)+a|0;c[12374]=i;if(i>>>0>(c[12375]|0)>>>0)c[12375]=i;l=c[12272]|0;g:do if(l){e=49512|0;do{i=c[(e&p)>>2]|0;h=e+4|0;f=c[(h&p)>>2]|0;if((y|0)==(i+f|0)){D=i;E=h;F=f;G=e;H=213;break}e=c[(e&p)+8>>2]|0}while((e|0)!=0);if(((H|0)==213?(c[(G&p)+12>>2]&8|0)==0:0)?l>>>0>=D>>>0&l>>>0<y>>>0:0){c[(E&p)>>2]=F+a;b=(c[12269]|0)+a|0;d=l+8|0;if(!(d&7))d=0;else d=0-d&7;x=b-d|0;c[12272]=l+d;c[12269]=x;c[(l+d&p)+4>>2]=x|1;c[(l+b&p)+4>>2]=40;c[12273]=c[12388];break}i=c[12270]|0;if(y>>>0<i>>>0){c[12270]=y;k=y}else k=i;i=y+a|0;h=49512|0;do{if((c[(h&p)>>2]|0)==(i|0)){I=h;J=h;H=223;break}h=c[(h&p)+8>>2]|0}while((h|0)!=0);if((H|0)==223?(c[(J&p)+12>>2]&8|0)==0:0){c[(I&p)>>2]=y;i=J+4|0;c[(i&p)>>2]=(c[(i&p)>>2]|0)+a;i=y+8|0;if(!(i&7))q=0;else q=0-i&7;i=y+(a+8)|0;if(!(i&7))d=0;else d=0-i&7;i=y+(d+a)|0;o=q+s|0;n=y+o|0;m=i-(y+q)-s|0;c[(y+q&p)+4>>2]=s|3;h:do if((i|0)!=(l|0)){if((i|0)==(c[12271]|0)){x=(c[12268]|0)+m|0;c[12268]=x;c[12271]=n;c[(y+o&p)+4>>2]=x|1;c[(y+x+o&p)>>2]=x;break}l=a+4|0;j=c[(y+l+d&p)>>2]|0;if((j&3|0)==1){b=j&-8;f=j>>>3;i:do if(j>>>0>=256){e=c[(y+(d|24)+a&p)>>2]|0;g=c[(y+a+d&p)+12>>2]|0;do if((g|0)==(i|0)){g=d|16;h=y+(l+g)|0;j=c[(h&p)>>2]|0;if(!j){h=y+(g+a)|0;j=c[(h&p)>>2]|0;if(!j){O=0;break}}while(1){g=j+20|0;f=c[(g&p)>>2]|0;if(f){j=f;h=g;continue}g=j+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{j=f;h=g}}if(h>>>0<k>>>0)Ob();else{c[(h&p)>>2]=0;O=j;break}}else{f=c[(y+(d|8)+a&p)>>2]|0;if(f>>>0<k>>>0)Ob();j=f+12|0;if((c[(j&p)>>2]|0)!=(i|0))Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(i|0)){c[(j&p)>>2]=g;c[(h&p)>>2]=f;O=g;break}else Ob()}while(0);if(!e)break;j=c[(y+a+d&p)+28>>2]|0;h=49368+(j<<2)|0;do if((i|0)!=(c[(h&p)>>2]|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();j=e+16|0;if((c[(j&p)>>2]|0)==(i|0))c[(j&p)>>2]=O;else c[(e&p)+20>>2]=O;if(!O)break i}else{c[(h&p)>>2]=O;if(O)break;c[12267]=c[12267]&~(1<<j);break i}while(0);h=c[12270]|0;if(O>>>0<h>>>0)Ob();c[(O&p)+24>>2]=e;j=d|16;i=c[(y+j+a&p)>>2]|0;do if(i)if(i>>>0<h>>>0)Ob();else{c[(O&p)+16>>2]=i;c[(i&p)+24>>2]=O;break}while(0);i=c[(y+l+j&p)>>2]|0;if(!i)break;if(i>>>0<(c[12270]|0)>>>0)Ob();else{c[(O&p)+20>>2]=i;c[(i&p)+24>>2]=O;break}}else{h=c[(y+(d|8)+a&p)>>2]|0;g=c[(y+a+d&p)+12>>2]|0;j=49104+(f<<1<<2)|0;do if((h|0)!=(j|0)){if(h>>>0<k>>>0)Ob();if((c[(h&p)+12>>2]|0)==(i|0))break;Ob()}while(0);if((g|0)==(h|0)){c[12266]=c[12266]&~(1<<f);break}do if((g|0)==(j|0))K=g+8|0;else{if(g>>>0<k>>>0)Ob();j=g+8|0;if((c[(j&p)>>2]|0)==(i|0)){K=j;break}Ob()}while(0);c[(h&p)+12>>2]=g;c[(K&p)>>2]=h}while(0);i=y+((b|d)+a)|0;j=b+m|0}else j=m;i=i+4|0;c[(i&p)>>2]=c[(i&p)>>2]&-2;c[(y+o&p)+4>>2]=j|1;c[(y+j+o&p)>>2]=j;i=j>>>3;if(j>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<<i;do if(!(g&i)){c[12266]=g|i;P=49104+(h+2<<2)|0;Q=f}else{i=49104+(h+2<<2)|0;h=c[(i&p)>>2]|0;if(h>>>0>=(c[12270]|0)>>>0){P=i;Q=h;break}Ob()}while(0);c[(P&p)>>2]=n;c[(Q&p)+12>>2]=n;c[(y+o&p)+8>>2]=Q;c[(y+o&p)+12>>2]=f;break}d=j>>>8;do if(!d)f=0;else{if(j>>>0>16777215){f=31;break}w=(d+1048320|0)>>>16&8;x=d<<w;v=(x+520192|0)>>>16&4;x=x<<v;f=(x+245760|0)>>>16&2;f=14-(v|w|f)+(x<<f>>>15)|0;f=j>>>(f+7|0)&1|f<<1}while(0);i=49368+(f<<2)|0;c[(y+o&p)+28>>2]=f;c[(y+o&p)+20>>2]=0;c[(y+o&p)+16>>2]=0;h=c[12267]|0;g=1<<f;if(!(h&g)){c[12267]=h|g;c[(i&p)>>2]=n;c[(y+o&p)+24>>2]=i;c[(y+o&p)+12>>2]=n;c[(y+o&p)+8>>2]=n;break}d=c[(i&p)>>2]|0;if((f|0)==31)i=0;else i=25-(f>>>1)|0;j:do if((c[(d&p)+4>>2]&-8|0)!=(j|0)){h=j<<i;while(1){b=d+(h>>>31<<2)+16|0;i=c[(b&p)>>2]|0;if(!i)break;if((c[(i&p)+4>>2]&-8|0)==(j|0)){R=i;break j}else{h=h<<1;d=i}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=n;c[(y+o&p)+24>>2]=d;c[(y+o&p)+12>>2]=n;c[(y+o&p)+8>>2]=n;break h}}else R=d;while(0);d=R+8|0;b=c[(d&p)>>2]|0;x=c[12270]|0;if(R>>>0>=x>>>0&b>>>0>=x>>>0){c[(b&p)+12>>2]=n;c[(d&p)>>2]=n;c[(y+o&p)+8>>2]=b;c[(y+o&p)+12>>2]=R;c[(y+o&p)+24>>2]=0;break}else Ob()}else{x=(c[12269]|0)+m|0;c[12269]=x;c[12272]=n;c[(y+o&p)+4>>2]=x|1}while(0);x=y+(q|8)|0;return x|0}h=49512|0;while(1){i=c[(h&p)>>2]|0;if(i>>>0<=l>>>0?(g=c[(h&p)+4>>2]|0,j=i+g|0,j>>>0>l>>>0):0)break;h=c[(h&p)+8>>2]|0}h=i+(g+-39)|0;if(!(h&7))h=0;else h=0-h&7;g=i+(g+-47+h)|0;g=g>>>0<(l+16|0)>>>0?l:g;h=g+8|0;i=y+8|0;if(!(i&7))i=0;else i=0-i&7;x=a+-40-i|0;c[12272]=y+i;c[12269]=x;c[(y+i&p)+4>>2]=x|1;c[(y+a+-36&p)>>2]=40;c[12273]=c[12388];c[(g&p)+4>>2]=27;c[(h&p)>>2]=c[12378];c[(h&p)+4>>2]=c[12379];c[(h&p)+8>>2]=c[12380];c[(h&p)+12>>2]=c[12381];c[12378]=y;c[12379]=a;c[12381]=0;c[12380]=h;i=g+28|0;c[(i&p)>>2]=7;if((g+32|0)>>>0<j>>>0)do{x=i;i=i+4|0;c[(i&p)>>2]=7}while((x+8|0)>>>0<j>>>0);if((g|0)!=(l|0)){j=g-l|0;i=l+(j+4)|0;c[(i&p)>>2]=c[(i&p)>>2]&-2;c[(l&p)+4>>2]=j|1;c[(l+j&p)>>2]=j;i=j>>>3;if(j>>>0<256){h=i<<1;f=49104+(h<<2)|0;g=c[12266]|0;i=1<<i;do if(!(g&i)){c[12266]=g|i;L=49104+(h+2<<2)|0;M=f}else{d=49104+(h+2<<2)|0;b=c[(d&p)>>2]|0;if(b>>>0>=(c[12270]|0)>>>0){L=d;M=b;break}Ob()}while(0);c[(L&p)>>2]=l;c[(M&p)+12>>2]=l;c[(l&p)+8>>2]=M;c[(l&p)+12>>2]=f;break}d=j>>>8;if(d)if(j>>>0>16777215)i=31;else{w=(d+1048320|0)>>>16&8;x=d<<w;v=(x+520192|0)>>>16&4;x=x<<v;i=(x+245760|0)>>>16&2;i=14-(v|w|i)+(x<<i>>>15)|0;i=j>>>(i+7|0)&1|i<<1}else i=0;d=49368+(i<<2)|0;c[(l&p)+28>>2]=i;c[(l&p)+20>>2]=0;c[(l&p)+16>>2]=0;b=c[12267]|0;e=1<<i;if(!(b&e)){c[12267]=b|e;c[(d&p)>>2]=l;c[(l&p)+24>>2]=d;c[(l&p)+12>>2]=l;c[(l&p)+8>>2]=l;break}d=c[(d&p)>>2]|0;if((i|0)==31)b=0;else b=25-(i>>>1)|0;k:do if((c[(d&p)+4>>2]&-8|0)!=(j|0)){i=j<<b;while(1){b=d+(i>>>31<<2)+16|0;e=c[(b&p)>>2]|0;if(!e)break;if((c[(e&p)+4>>2]&-8|0)==(j|0)){N=e;break k}else{i=i<<1;d=e}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=l;c[(l&p)+24>>2]=d;c[(l&p)+12>>2]=l;c[(l&p)+8>>2]=l;break g}}else N=d;while(0);d=N+8|0;b=c[(d&p)>>2]|0;x=c[12270]|0;if(N>>>0>=x>>>0&b>>>0>=x>>>0){c[(b&p)+12>>2]=l;c[(d&p)>>2]=l;c[(l&p)+8>>2]=b;c[(l&p)+12>>2]=N;c[(l&p)+24>>2]=0;break}else Ob()}}else{x=c[12270]|0;if((x|0)==0|y>>>0<x>>>0)c[12270]=y;c[12378]=y;c[12379]=a;c[12381]=0;c[12275]=c[12384];c[12274]=-1;d=0;do{x=d<<1;w=49104+(x<<2)|0;c[(x+3<<2&p)+49104>>2]=w;c[(x+2<<2&p)+49104>>2]=w;d=d+1|0}while((d|0)!=32);d=y+8|0;if(!(d&7))d=0;else d=0-d&7;x=a+-40-d|0;c[12272]=y+d;c[12269]=x;c[(y+d&p)+4>>2]=x|1;c[(y+a+-36&p)>>2]=40;c[12273]=c[12388]}while(0);b=c[12269]|0;if(b>>>0>s>>>0){w=b-s|0;c[12269]=w;x=c[12272]|0;c[12272]=x+s;c[(x+s&p)+4>>2]=w|1;c[(x&p)+4>>2]=s|3;x=x+8|0;return x|0}}c[((Hb()|0)&p)>>2]=12;x=0;return x|0}function Xv(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,q=0,r=0,s=0,t=0,u=0,v=0;if(!a)return;g=a+-8|0;h=c[12270]|0;if(g>>>0<h>>>0)Ob();f=c[(a+-4&p)>>2]|0;e=f&3;if((e|0)==1)Ob();o=f&-8;r=a+(o+-8)|0;do if(!(f&1)){g=c[(g&p)>>2]|0;if(!e)return;i=-8-g|0;l=a+i|0;m=g+o|0;if(l>>>0<h>>>0)Ob();if((l|0)==(c[12271]|0)){g=a+(o+-4)|0;f=c[(g&p)>>2]|0;if((f&3|0)!=3){v=l;k=m;break}c[12268]=m;c[(g&p)>>2]=f&-2;c[(a+i&p)+4>>2]=m|1;c[(r&p)>>2]=m;return}d=g>>>3;if(g>>>0<256){e=c[(a+i&p)+8>>2]|0;f=c[(a+i&p)+12>>2]|0;g=49104+(d<<1<<2)|0;if((e|0)!=(g|0)){if(e>>>0<h>>>0)Ob();if((c[(e&p)+12>>2]|0)!=(l|0))Ob()}if((f|0)==(e|0)){c[12266]=c[12266]&~(1<<d);v=l;k=m;break}if((f|0)!=(g|0)){if(f>>>0<h>>>0)Ob();g=f+8|0;if((c[(g&p)>>2]|0)==(l|0))b=g;else Ob()}else b=f+8|0;c[(e&p)+12>>2]=f;c[(b&p)>>2]=e;v=l;k=m;break}b=c[(a+i&p)+24>>2]|0;e=c[(a+i&p)+12>>2]|0;do if((e|0)==(l|0)){f=a+(i+20)|0;g=c[(f&p)>>2]|0;if(!g){f=a+(i+16)|0;g=c[(f&p)>>2]|0;if(!g){j=0;break}}while(1){e=g+20|0;d=c[(e&p)>>2]|0;if(d){g=d;f=e;continue}e=g+16|0;d=c[(e&p)>>2]|0;if(!d)break;else{g=d;f=e}}if(f>>>0<h>>>0)Ob();else{c[(f&p)>>2]=0;j=g;break}}else{d=c[(a+i&p)+8>>2]|0;if(d>>>0<h>>>0)Ob();g=d+12|0;if((c[(g&p)>>2]|0)!=(l|0))Ob();f=e+8|0;if((c[(f&p)>>2]|0)==(l|0)){c[(g&p)>>2]=e;c[(f&p)>>2]=d;j=e;break}else Ob()}while(0);if(b){g=c[(a+i&p)+28>>2]|0;f=49368+(g<<2)|0;if((l|0)==(c[(f&p)>>2]|0)){c[(f&p)>>2]=j;if(!j){c[12267]=c[12267]&~(1<<g);v=l;k=m;break}}else{if(b>>>0<(c[12270]|0)>>>0)Ob();g=b+16|0;if((c[(g&p)>>2]|0)==(l|0))c[(g&p)>>2]=j;else c[(b&p)+20>>2]=j;if(!j){v=l;k=m;break}}f=c[12270]|0;if(j>>>0<f>>>0)Ob();c[(j&p)+24>>2]=b;g=c[(a+i&p)+16>>2]|0;do if(g)if(g>>>0<f>>>0)Ob();else{c[(j&p)+16>>2]=g;c[(g&p)+24>>2]=j;break}while(0);g=c[(a+i&p)+20>>2]|0;if(g)if(g>>>0<(c[12270]|0)>>>0)Ob();else{c[(j&p)+20>>2]=g;c[(g&p)+24>>2]=j;v=l;k=m;break}else{v=l;k=m}}else{v=l;k=m}}else{v=g;k=o}while(0);if(v>>>0>=r>>>0)Ob();g=a+(o+-4)|0;f=c[(g&p)>>2]|0;if(!(f&1))Ob();if(!(f&2)){if((r|0)==(c[12272]|0)){l=(c[12269]|0)+k|0;c[12269]=l;c[12272]=v;c[(v&p)+4>>2]=l|1;if((v|0)!=(c[12271]|0))return;c[12271]=0;c[12268]=0;return}if((r|0)==(c[12271]|0)){l=(c[12268]|0)+k|0;c[12268]=l;c[12271]=v;c[(v&p)+4>>2]=l|1;c[(v+l&p)>>2]=l;return}h=(f&-8)+k|0;b=f>>>3;do if(f>>>0>=256){b=c[(a+o&p)+16>>2]|0;g=c[(a+(o|4)&p)>>2]|0;do if((g|0)==(r|0)){f=a+(o+12)|0;g=c[(f&p)>>2]|0;if(!g){f=a+(o+8)|0;g=c[(f&p)>>2]|0;if(!g){q=0;break}}while(1){e=g+20|0;d=c[(e&p)>>2]|0;if(d){g=d;f=e;continue}e=g+16|0;d=c[(e&p)>>2]|0;if(!d)break;else{g=d;f=e}}if(f>>>0<(c[12270]|0)>>>0)Ob();else{c[(f&p)>>2]=0;q=g;break}}else{f=c[(a+o&p)>>2]|0;if(f>>>0<(c[12270]|0)>>>0)Ob();e=f+12|0;if((c[(e&p)>>2]|0)!=(r|0))Ob();d=g+8|0;if((c[(d&p)>>2]|0)==(r|0)){c[(e&p)>>2]=g;c[(d&p)>>2]=f;q=g;break}else Ob()}while(0);if(b){g=c[(a+o&p)+20>>2]|0;f=49368+(g<<2)|0;if((r|0)==(c[(f&p)>>2]|0)){c[(f&p)>>2]=q;if(!q){c[12267]=c[12267]&~(1<<g);break}}else{if(b>>>0<(c[12270]|0)>>>0)Ob();g=b+16|0;if((c[(g&p)>>2]|0)==(r|0))c[(g&p)>>2]=q;else c[(b&p)+20>>2]=q;if(!q)break}g=c[12270]|0;if(q>>>0<g>>>0)Ob();c[(q&p)+24>>2]=b;f=c[(a+o&p)+8>>2]|0;do if(f)if(f>>>0<g>>>0)Ob();else{c[(q&p)+16>>2]=f;c[(f&p)+24>>2]=q;break}while(0);d=c[(a+o&p)+12>>2]|0;if(d)if(d>>>0<(c[12270]|0)>>>0)Ob();else{c[(q&p)+20>>2]=d;c[(d&p)+24>>2]=q;break}}}else{d=c[(a+o&p)>>2]|0;e=c[(a+(o|4)&p)>>2]|0;g=49104+(b<<1<<2)|0;if((d|0)!=(g|0)){if(d>>>0<(c[12270]|0)>>>0)Ob();if((c[(d&p)+12>>2]|0)!=(r|0))Ob()}if((e|0)==(d|0)){c[12266]=c[12266]&~(1<<b);break}if((e|0)!=(g|0)){if(e>>>0<(c[12270]|0)>>>0)Ob();f=e+8|0;if((c[(f&p)>>2]|0)==(r|0))n=f;else Ob()}else n=e+8|0;c[(d&p)+12>>2]=e;c[(n&p)>>2]=d}while(0);c[(v&p)+4>>2]=h|1;c[(v+h&p)>>2]=h;if((v|0)==(c[12271]|0)){c[12268]=h;return}else g=h}else{c[(g&p)>>2]=f&-2;c[(v&p)+4>>2]=k|1;c[(v+k&p)>>2]=k;g=k}f=g>>>3;if(g>>>0<256){e=f<<1;g=49104+(e<<2)|0;b=c[12266]|0;d=1<<f;if(b&d){d=49104+(e+2<<2)|0;b=c[(d&p)>>2]|0;if(b>>>0<(c[12270]|0)>>>0)Ob();else{s=d;t=b}}else{c[12266]=b|d;s=49104+(e+2<<2)|0;t=g}c[(s&p)>>2]=v;c[(t&p)+12>>2]=v;c[(v&p)+8>>2]=t;c[(v&p)+12>>2]=g;return}b=g>>>8;if(b)if(g>>>0>16777215)f=31;else{k=(b+1048320|0)>>>16&8;l=b<<k;j=(l+520192|0)>>>16&4;l=l<<j;f=(l+245760|0)>>>16&2;f=14-(j|k|f)+(l<<f>>>15)|0;f=g>>>(f+7|0)&1|f<<1}else f=0;d=49368+(f<<2)|0;c[(v&p)+28>>2]=f;c[(v&p)+20>>2]=0;c[(v&p)+16>>2]=0;b=c[12267]|0;e=1<<f;a:do if(b&e){d=c[(d&p)>>2]|0;if((f|0)==31)b=0;else b=25-(f>>>1)|0;b:do if((c[(d&p)+4>>2]&-8|0)!=(g|0)){f=g<<b;while(1){b=d+(f>>>31<<2)+16|0;e=c[(b&p)>>2]|0;if(!e)break;if((c[(e&p)+4>>2]&-8|0)==(g|0)){u=e;break b}else{f=f<<1;d=e}}if(b>>>0<(c[12270]|0)>>>0)Ob();else{c[(b&p)>>2]=v;c[(v&p)+24>>2]=d;c[(v&p)+12>>2]=v;c[(v&p)+8>>2]=v;break a}}else u=d;while(0);b=u+8|0;d=c[(b&p)>>2]|0;l=c[12270]|0;if(u>>>0>=l>>>0&d>>>0>=l>>>0){c[(d&p)+12>>2]=v;c[(b&p)>>2]=v;c[(v&p)+8>>2]=d;c[(v&p)+12>>2]=u;c[(v&p)+24>>2]=0;break}else Ob()}else{c[12267]=b|e;c[(d&p)>>2]=v;c[(v&p)+24>>2]=d;c[(v&p)+12>>2]=v;c[(v&p)+8>>2]=v}while(0);l=(c[12274]|0)+-1|0;c[12274]=l;if(!l)b=49520|0;else return;while(1){b=c[(b&p)>>2]|0;if(!b)break;else b=b+8|0}c[12274]=-1;return}function Yv(a,b){a=a|0;b=b|0;var d=0,e=0;if(!a){d=Wv(b)|0;return d|0}if(b>>>0>4294967231){c[((Hb()|0)&p)>>2]=12;d=0;return d|0}if(b>>>0<11)d=16;else d=b+11&-8;d=aw(a+-8|0,d)|0;if(d){d=d+8|0;return d|0}d=Wv(b)|0;if(!d){d=0;return d|0}e=c[(a+-4&p)>>2]|0;e=(e&-8)-((e&3|0)==0?8:4)|0;kw(d|0,a|0,(e>>>0<b>>>0?e:b)|0)|0;Xv(a);return d|0}function Zv(b,c,d){b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;if(!d){b=0;return b|0}else{f=d;e=b}while(1){d=a[(e&n)>>0]|0;b=a[(c&n)>>0]|0;if(d<<24>>24!=b<<24>>24)break;f=f+-1|0;if(!f){b=0;g=5;break}else{e=e+1|0;c=c+1|0}}if((g|0)==5)return b|0;b=(d&255)-(b&255)|0;return b|0}function _v(b,c){b=b|0;c=c|0;var d=0,e=0;e=a[(b&n)>>0]|0;d=a[(c&n)>>0]|0;if(e<<24>>24==0?1:e<<24>>24!=d<<24>>24)c=e;else{do{b=b+1|0;c=c+1|0;e=a[(b&n)>>0]|0;d=a[(c&n)>>0]|0}while(!(e<<24>>24==0?1:e<<24>>24!=d<<24>>24));c=e}return (c&255)-(d&255)|0}function $v(b,c,e){b=b|0;c=c|0;e=e|0;var f=0,g=0;if(!e){c=0;return c|0}f=a[(b&n)>>0]|0;a:do if(!(f<<24>>24))f=0;else while(1){e=e+-1|0;g=a[(c&n)>>0]|0;if(!(g<<24>>24!=0&(e|0)!=0&f<<24>>24==g<<24>>24))break a;b=b+1|0;c=c+1|0;f=a[(b&n)>>0]|0;if(!(f<<24>>24)){f=0;break}}while(0);c=(f&255)-(d[(c&n)>>0]|0)|0;return c|0}function aw(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,q=0;o=a+4|0;q=c[(o&p)>>2]|0;j=q&-8;l=a+j|0;i=c[12270]|0;e=q&3;if(!((e|0)!=1&a>>>0>=i>>>0&a>>>0<l>>>0))Ob();d=a+(j|4)|0;g=c[(d&p)>>2]|0;if(!(g&1))Ob();if(!e){if(b>>>0<256){m=0;return m|0}if(j>>>0>=(b+4|0)>>>0?(j-b|0)>>>0<=c[12386]<<1>>>0:0){m=a;return m|0}m=0;return m|0}if(j>>>0>=b>>>0){e=j-b|0;if(e>>>0<=15){m=a;return m|0}c[(o&p)>>2]=q&1|b|2;c[(a+b&p)+4>>2]=e|3;c[(d&p)>>2]=c[(d&p)>>2]|1;bw(a+b|0,e);m=a;return m|0}if((l|0)==(c[12272]|0)){e=(c[12269]|0)+j|0;if(e>>>0<=b>>>0){m=0;return m|0}m=e-b|0;c[(o&p)>>2]=q&1|b|2;c[(a+b&p)+4>>2]=m|1;c[12272]=a+b;c[12269]=m;m=a;return m|0}if((l|0)==(c[12271]|0)){e=(c[12268]|0)+j|0;if(e>>>0<b>>>0){m=0;return m|0}d=e-b|0;if(d>>>0>15){c[(o&p)>>2]=q&1|b|2;c[(a+b&p)+4>>2]=d|1;c[(a+e&p)>>2]=d;e=a+(e+4)|0;c[(e&p)>>2]=c[(e&p)>>2]&-2;e=a+b|0}else{c[(o&p)>>2]=q&1|e|2;e=a+(e+4)|0;c[(e&p)>>2]=c[(e&p)>>2]|1;e=0;d=0}c[12268]=d;c[12271]=e;m=a;return m|0}if(g&2){m=0;return m|0}m=(g&-8)+j|0;if(m>>>0<b>>>0){m=0;return m|0}n=m-b|0;f=g>>>3;do if(g>>>0>=256){h=c[(a+j&p)+24>>2]|0;g=c[(a+j&p)+12>>2]|0;do if((g|0)==(l|0)){d=a+(j+20)|0;e=c[(d&p)>>2]|0;if(!e){d=a+(j+16)|0;e=c[(d&p)>>2]|0;if(!e){k=0;break}}while(1){f=e+20|0;g=c[(f&p)>>2]|0;if(g){e=g;d=f;continue}g=e+16|0;f=c[(g&p)>>2]|0;if(!f)break;else{e=f;d=g}}if(d>>>0<i>>>0)Ob();else{c[(d&p)>>2]=0;k=e;break}}else{f=c[(a+j&p)+8>>2]|0;if(f>>>0<i>>>0)Ob();e=f+12|0;if((c[(e&p)>>2]|0)!=(l|0))Ob();d=g+8|0;if((c[(d&p)>>2]|0)==(l|0)){c[(e&p)>>2]=g;c[(d&p)>>2]=f;k=g;break}else Ob()}while(0);if(h){e=c[(a+j&p)+28>>2]|0;d=49368+(e<<2)|0;if((l|0)==(c[(d&p)>>2]|0)){c[(d&p)>>2]=k;if(!k){c[12267]=c[12267]&~(1<<e);break}}else{if(h>>>0<(c[12270]|0)>>>0)Ob();e=h+16|0;if((c[(e&p)>>2]|0)==(l|0))c[(e&p)>>2]=k;else c[(h&p)+20>>2]=k;if(!k)break}d=c[12270]|0;if(k>>>0<d>>>0)Ob();c[(k&p)+24>>2]=h;e=c[(a+j&p)+16>>2]|0;do if(e)if(e>>>0<d>>>0)Ob();else{c[(k&p)+16>>2]=e;c[(e&p)+24>>2]=k;break}while(0);e=c[(a+j&p)+20>>2]|0;if(e)if(e>>>0<(c[12270]|0)>>>0)Ob();else{c[(k&p)+20>>2]=e;c[(e&p)+24>>2]=k;break}}}else{g=c[(a+j&p)+8>>2]|0;d=c[(a+j&p)+12>>2]|0;e=49104+(f<<1<<2)|0;if((g|0)!=(e|0)){if(g>>>0<i>>>0)Ob();if((c[(g&p)+12>>2]|0)!=(l|0))Ob()}if((d|0)==(g|0)){c[12266]=c[12266]&~(1<<f);break}if((d|0)!=(e|0)){if(d>>>0<i>>>0)Ob();e=d+8|0;if((c[(e&p)>>2]|0)==(l|0))h=e;else Ob()}else h=d+8|0;c[(g&p)+12>>2]=d;c[(h&p)>>2]=g}while(0);if(n>>>0<16){c[(o&p)>>2]=m|q&1|2;m=a+(m|4)|0;c[(m&p)>>2]=c[(m&p)>>2]|1;m=a;return m|0}else{c[(o&p)>>2]=q&1|b|2;c[(a+b&p)+4>>2]=n|3;m=a+(m|4)|0;c[(m&p)>>2]=c[(m&p)>>2]|1;bw(a+b|0,n);m=a;return m|0}return 0}function bw(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,q=0,r=0,s=0,t=0,u=0;r=a+b|0;h=c[(a&p)+4>>2]|0;do if(!(h&1)){j=c[(a&p)>>2]|0;if(!(h&3))return;n=a+(0-j)|0;m=j+b|0;i=c[12270]|0;if(n>>>0<i>>>0)Ob();if((n|0)==(c[12271]|0)){g=a+(b+4)|0;h=c[(g&p)>>2]|0;if((h&3|0)!=3){u=n;l=m;break}c[12268]=m;c[(g&p)>>2]=h&-2;c[(a+(4-j)&p)>>2]=m|1;c[(r&p)>>2]=m;return}e=j>>>3;if(j>>>0<256){f=c[(a+(8-j)&p)>>2]|0;g=c[(a+(12-j)&p)>>2]|0;h=49104+(e<<1<<2)|0;if((f|0)!=(h|0)){if(f>>>0<i>>>0)Ob();if((c[(f&p)+12>>2]|0)!=(n|0))Ob()}if((g|0)==(f|0)){c[12266]=c[12266]&~(1<<e);u=n;l=m;break}if((g|0)!=(h|0)){if(g>>>0<i>>>0)Ob();h=g+8|0;if((c[(h&p)>>2]|0)==(n|0))d=h;else Ob()}else d=g+8|0;c[(f&p)+12>>2]=g;c[(d&p)>>2]=f;u=n;l=m;break}d=c[(a+(24-j)&p)>>2]|0;f=c[(a+(12-j)&p)>>2]|0;do if((f|0)==(n|0)){f=16-j|0;g=a+(f+4)|0;h=c[(g&p)>>2]|0;if(!h){g=a+f|0;h=c[(g&p)>>2]|0;if(!h){k=0;break}}while(1){f=h+20|0;e=c[(f&p)>>2]|0;if(e){h=e;g=f;continue}f=h+16|0;e=c[(f&p)>>2]|0;if(!e)break;else{h=e;g=f}}if(g>>>0<i>>>0)Ob();else{c[(g&p)>>2]=0;k=h;break}}else{e=c[(a+(8-j)&p)>>2]|0;if(e>>>0<i>>>0)Ob();h=e+12|0;if((c[(h&p)>>2]|0)!=(n|0))Ob();g=f+8|0;if((c[(g&p)>>2]|0)==(n|0)){c[(h&p)>>2]=f;c[(g&p)>>2]=e;k=f;break}else Ob()}while(0);if(d){h=c[(a+(28-j)&p)>>2]|0;g=49368+(h<<2)|0;if((n|0)==(c[(g&p)>>2]|0)){c[(g&p)>>2]=k;if(!k){c[12267]=c[12267]&~(1<<h);u=n;l=m;break}}else{if(d>>>0<(c[12270]|0)>>>0)Ob();h=d+16|0;if((c[(h&p)>>2]|0)==(n|0))c[(h&p)>>2]=k;else c[(d&p)+20>>2]=k;if(!k){u=n;l=m;break}}f=c[12270]|0;if(k>>>0<f>>>0)Ob();c[(k&p)+24>>2]=d;h=16-j|0;g=c[(a+h&p)>>2]|0;do if(g)if(g>>>0<f>>>0)Ob();else{c[(k&p)+16>>2]=g;c[(g&p)+24>>2]=k;break}while(0);h=c[(a+h&p)+4>>2]|0;if(h)if(h>>>0<(c[12270]|0)>>>0)Ob();else{c[(k&p)+20>>2]=h;c[(h&p)+24>>2]=k;u=n;l=m;break}else{u=n;l=m}}else{u=n;l=m}}else{u=a;l=b}while(0);i=c[12270]|0;if(r>>>0<i>>>0)Ob();h=a+(b+4)|0;g=c[(h&p)>>2]|0;if(!(g&2)){if((r|0)==(c[12272]|0)){m=(c[12269]|0)+l|0;c[12269]=m;c[12272]=u;c[(u&p)+4>>2]=m|1;if((u|0)!=(c[12271]|0))return;c[12271]=0;c[12268]=0;return}if((r|0)==(c[12271]|0)){m=(c[12268]|0)+l|0;c[12268]=m;c[12271]=u;c[(u&p)+4>>2]=m|1;c[(u+m&p)>>2]=m;return}j=(g&-8)+l|0;d=g>>>3;do if(g>>>0>=256){d=c[(a+b&p)+24>>2]|0;f=c[(a+b&p)+12>>2]|0;do if((f|0)==(r|0)){g=a+(b+20)|0;h=c[(g&p)>>2]|0;if(!h){g=a+(b+16)|0;h=c[(g&p)>>2]|0;if(!h){q=0;break}}while(1){f=h+20|0;e=c[(f&p)>>2]|0;if(e){h=e;g=f;continue}f=h+16|0;e=c[(f&p)>>2]|0;if(!e)break;else{h=e;g=f}}if(g>>>0<i>>>0)Ob();else{c[(g&p)>>2]=0;q=h;break}}else{e=c[(a+b&p)+8>>2]|0;if(e>>>0<i>>>0)Ob();h=e+12|0;if((c[(h&p)>>2]|0)!=(r|0))Ob();g=f+8|0;if((c[(g&p)>>2]|0)==(r|0)){c[(h&p)>>2]=f;c[(g&p)>>2]=e;q=f;break}else Ob()}while(0);if(d){h=c[(a+b&p)+28>>2]|0;g=49368+(h<<2)|0;if((r|0)==(c[(g&p)>>2]|0)){c[(g&p)>>2]=q;if(!q){c[12267]=c[12267]&~(1<<h);break}}else{if(d>>>0<(c[12270]|0)>>>0)Ob();g=d+16|0;if((c[(g&p)>>2]|0)==(r|0))c[(g&p)>>2]=q;else c[(d&p)+20>>2]=q;if(!q)break}f=c[12270]|0;if(q>>>0<f>>>0)Ob();c[(q&p)+24>>2]=d;g=c[(a+b&p)+16>>2]|0;do if(g)if(g>>>0<f>>>0)Ob();else{c[(q&p)+16>>2]=g;c[(g&p)+24>>2]=q;break}while(0);f=c[(a+b&p)+20>>2]|0;if(f)if(f>>>0<(c[12270]|0)>>>0)Ob();else{c[(q&p)+20>>2]=f;c[(f&p)+24>>2]=q;break}}}else{e=c[(a+b&p)+8>>2]|0;f=c[(a+b&p)+12>>2]|0;h=49104+(d<<1<<2)|0;if((e|0)!=(h|0)){if(e>>>0<i>>>0)Ob();if((c[(e&p)+12>>2]|0)!=(r|0))Ob()}if((f|0)==(e|0)){c[12266]=c[12266]&~(1<<d);break}if((f|0)!=(h|0)){if(f>>>0<i>>>0)Ob();g=f+8|0;if((c[(g&p)>>2]|0)==(r|0))o=g;else Ob()}else o=f+8|0;c[(e&p)+12>>2]=f;c[(o&p)>>2]=e}while(0);c[(u&p)+4>>2]=j|1;c[(u+j&p)>>2]=j;if((u|0)==(c[12271]|0)){c[12268]=j;return}else h=j}else{c[(h&p)>>2]=g&-2;c[(u&p)+4>>2]=l|1;c[(u+l&p)>>2]=l;h=l}g=h>>>3;if(h>>>0<256){e=g<<1;h=49104+(e<<2)|0;d=c[12266]|0;f=1<<g;if(d&f){f=49104+(e+2<<2)|0;e=c[(f&p)>>2]|0;if(e>>>0<(c[12270]|0)>>>0)Ob();else{s=f;t=e}}else{c[12266]=d|f;s=49104+(e+2<<2)|0;t=h}c[(s&p)>>2]=u;c[(t&p)+12>>2]=u;c[(u&p)+8>>2]=t;c[(u&p)+12>>2]=h;return}d=h>>>8;if(d)if(h>>>0>16777215)g=31;else{l=(d+1048320|0)>>>16&8;m=d<<l;k=(m+520192|0)>>>16&4;m=m<<k;g=(m+245760|0)>>>16&2;g=14-(k|l|g)+(m<<g>>>15)|0;g=h>>>(g+7|0)&1|g<<1}else g=0;f=49368+(g<<2)|0;c[(u&p)+28>>2]=g;c[(u&p)+20>>2]=0;c[(u&p)+16>>2]=0;e=c[12267]|0;d=1<<g;if(!(e&d)){c[12267]=e|d;c[(f&p)>>2]=u;c[(u&p)+24>>2]=f;c[(u&p)+12>>2]=u;c[(u&p)+8>>2]=u;return}d=c[(f&p)>>2]|0;if((g|0)==31)e=0;else e=25-(g>>>1)|0;a:do if((c[(d&p)+4>>2]&-8|0)!=(h|0)){g=h<<e;while(1){e=d+(g>>>31<<2)+16|0;f=c[(e&p)>>2]|0;if(!f)break;if((c[(f&p)+4>>2]&-8|0)==(h|0)){d=f;break a}else{g=g<<1;d=f}}if(e>>>0<(c[12270]|0)>>>0)Ob();c[(e&p)>>2]=u;c[(u&p)+24>>2]=d;c[(u&p)+12>>2]=u;c[(u&p)+8>>2]=u;return}while(0);e=d+8|0;f=c[(e&p)>>2]|0;m=c[12270]|0;if(!(d>>>0>=m>>>0&f>>>0>=m>>>0))Ob();c[(f&p)+12>>2]=u;c[(e&p)>>2]=u;c[(u&p)+8>>2]=f;c[(u&p)+12>>2]=d;c[(u&p)+24>>2]=0;return}function cw(){}function dw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;b=b-d-(c>>>0>a>>>0|0)>>>0;return (G=b,a-c>>>0|0)|0}function ew(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){G=b>>c;return a>>>c|(b&(1<<c)-1)<<32-c}G=(b|0)<0?-1:0;return b>>c-32|0}function fw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,i=0;f=b+e|0;if((e|0)>=20){d=d&255;h=b&3;i=d|d<<8|d<<16|d<<24;g=f&~3;if(h){h=b+4-h|0;while((b|0)<(h|0)){a[(b&n)>>0]=d;b=b+1|0}}while((b|0)<(g|0)){c[(b&p)>>2]=i;b=b+4|0}}while((b|0)<(f|0)){a[(b&n)>>0]=d;b=b+1|0}return b-e|0}function gw(b){b=b|0;var c=0;c=b;while(a[(c&n)>>0]|0)c=c+1|0;return c-b|0}function hw(b,c){b=b|0;c=c|0;var d=0,e=0;e=b+(gw(b)|0)|0;do{a[(e+d&n)>>0]=a[(c+d&n)>>0];d=d+1|0}while(a[(c+(d-1)&n)>>0]|0);return b|0}function iw(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){G=b<<c|(a&(1<<c)-1<<32-c)>>>32-c;return a<<c}G=a<<c-32;return 0}function jw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;c=a+c>>>0;return (G=b+d+(c>>>0<a>>>0|0)>>>0,c|0)|0}function kw(b,d,e){b=b|0;d=d|0;e=e|0;var f=0;if((e|0)>=4096)return ub(b|0,d|0,e|0)|0;f=b|0;if((b&3)==(d&3)){while(b&3){if(!e)return f|0;a[(b&n)>>0]=a[(d&n)>>0]|0;b=b+1|0;d=d+1|0;e=e-1|0}while((e|0)>=4){c[(b&p)>>2]=c[(d&p)>>2];b=b+4|0;d=d+4|0;e=e-4|0}}while((e|0)>0){a[(b&n)>>0]=a[(d&n)>>0]|0;b=b+1|0;d=d+1|0;e=e-1|0}return f|0}function lw(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&n)>>0]=a[(c&n)>>0]|0}b=e}else kw(b,c,d)|0;return b|0}function mw(a,b,c){a=a|0;b=b|0;c=c|0;if((c|0)<32){G=b>>>c;return a>>>c|(b&(1<<c)-1)<<32-c}G=0;return b>>>c-32|0}function nw(a){a=a|0;return (a&255)<<24|(a>>8&255)<<16|(a>>16&255)<<8|a>>>24|0}function ow(b){b=b|0;var c=0;c=a[(m+(b&255)&n)>>0]|0;if((c|0)<8)return c|0;c=a[(m+(b>>8&255)&n)>>0]|0;if((c|0)<8)return c+8|0;c=a[(m+(b>>16&255)&n)>>0]|0;if((c|0)<8)return c+16|0;return (a[(m+(b>>>24)&n)>>0]|0)+24|0}function pw(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=a&65535;d=b&65535;c=ca(d,f)|0;e=a>>>16;d=(c>>>16)+(ca(d,e)|0)|0;b=b>>>16;a=ca(b,f)|0;return (G=(d>>>16)+(ca(b,e)|0)+(((d&65535)+a|0)>>>16)|0,d+a<<16|c&65535|0)|0}function qw(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=dw(j^a,i^b,j,i)|0;g=G;b=f^j;a=e^i;a=dw((vw(h,g,dw(f^c,e^d,f,e)|0,G,0)|0)^b,G^a,b,a)|0;return a|0}function rw(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0,h=0,j=0,k=0,l=0;f=i;i=i+8|0;j=f|0;h=b>>31|((b|0)<0?-1:0)<<1;g=((b|0)<0?-1:0)>>31|((b|0)<0?-1:0)<<1;l=e>>31|((e|0)<0?-1:0)<<1;k=((e|0)<0?-1:0)>>31|((e|0)<0?-1:0)<<1;b=dw(h^a,g^b,h,g)|0;a=G;vw(b,a,dw(l^d,k^e,l,k)|0,G,j)|0;a=dw(c[(j&p)>>2]^h,c[(j&p)+4>>2]^g,h,g)|0;b=G;i=f;return (G=b,a)|0}function sw(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;a=pw(e,f)|0;c=G;return (G=(ca(b,f)|0)+(ca(d,e)|0)+c|c&0,a|0|0)|0}function tw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;a=vw(a,b,c,d,0)|0;return a|0}function uw(a,b,d,e){a=a|0;b=b|0;d=d|0;e=e|0;var f=0,g=0;g=i;i=i+8|0;f=g|0;vw(a,b,d,e,f)|0;i=g;return (G=c[(f&p)+4>>2]|0,c[(f&p)>>2]|0)|0}function vw(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,q=0;n=a;l=b;m=l;k=d;o=e;i=o;if(!m){g=(f|0)!=0;if(!i){if(g){c[(f&p)>>2]=(n>>>0)%(k>>>0);c[(f&p)+4>>2]=0}l=0;m=(n>>>0)/(k>>>0)>>>0;return (G=l,m)|0}else{if(!g){l=0;m=0;return (G=l,m)|0}c[(f&p)>>2]=a|0;c[(f&p)+4>>2]=b&0;l=0;m=0;return (G=l,m)|0}}j=(i|0)==0;do if(k){if(!j){h=(ea(i|0)|0)-(ea(m|0)|0)|0;if(h>>>0<=31){g=h+1|0;l=31-h|0;k=h-31>>31;i=g;j=n>>>(g>>>0)&k|m<<l;k=m>>>(g>>>0)&k;g=0;h=n<<l;break}if(!f){l=0;m=0;return (G=l,m)|0}c[(f&p)>>2]=a|0;c[(f&p)+4>>2]=l|b&0;l=0;m=0;return (G=l,m)|0}j=k-1|0;if(j&k){h=(ea(k|0)|0)+33-(ea(m|0)|0)|0;q=64-h|0;l=32-h|0;a=l>>31;b=h-32|0;k=b>>31;i=h;j=l-1>>31&m>>>(b>>>0)|(m<<l|n>>>(h>>>0))&k;k=k&m>>>(h>>>0);g=n<<q&a;h=(m<<q|n>>>(b>>>0))&a|n<<l&h-33>>31;break}if(f){c[(f&p)>>2]=j&n;c[(f&p)+4>>2]=0}if((k|0)==1){l=l|b&0;m=a|0|0;return (G=l,m)|0}else{a=ow(k|0)|0;l=m>>>(a>>>0)|0;m=m<<32-a|n>>>(a>>>0)|0;return (G=l,m)|0}}else{if(j){if(f){c[(f&p)>>2]=(m>>>0)%(k>>>0);c[(f&p)+4>>2]=0}l=0;m=(m>>>0)/(k>>>0)>>>0;return (G=l,m)|0}if(!n){if(f){c[(f&p)>>2]=0;c[(f&p)+4>>2]=(m>>>0)%(i>>>0)}l=0;m=(m>>>0)/(i>>>0)>>>0;return (G=l,m)|0}j=i-1|0;if(!(j&i)){if(f){c[(f&p)>>2]=a|0;c[(f&p)+4>>2]=j&m|b&0}l=0;m=m>>>((ow(i|0)|0)>>>0);return (G=l,m)|0}h=(ea(i|0)|0)-(ea(m|0)|0)|0;if(h>>>0<=30){k=h+1|0;h=31-h|0;i=k;j=m<<h|n>>>(k>>>0);k=m>>>(k>>>0);g=0;h=n<<h;break}if(!f){l=0;m=0;return (G=l,m)|0}c[(f&p)>>2]=a|0;c[(f&p)+4>>2]=l|b&0;l=0;m=0;return (G=l,m)|0}while(0);if(!i){l=h;i=0;h=0}else{m=d|0|0;l=o|e&0;b=jw(m,l,-1,-1)|0;a=G;d=h;h=0;do{q=d;d=g>>>31|d<<1;g=h|g<<1;q=j<<1|q>>>31|0;o=j>>>31|k<<1|0;dw(b,a,q,o)|0;n=G;e=n>>31|((n|0)<0?-1:0)<<1;h=e&1;j=dw(q,o,e&m,(((n|0)<0?-1:0)>>31|((n|0)<0?-1:0)<<1)&l)|0;k=G;i=i-1|0}while((i|0)!=0);l=d;i=0}d=0;if(f){c[(f&p)>>2]=j;c[(f&p)+4>>2]=k}l=(g|0)>>>31|(l|d)<<1|(d<<1|g>>>31)&0|i;m=(g<<1|0>>>31)&-2|h;return (G=l,m)|0}function ww(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;return $b[a&1](b|0,c|0,d|0,e|0,f|0,g|0,h|0)|0}function xw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;return ac[a&63](b|0,c|0,d|0)|0}function yw(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;bc[a&1](b|0,c|0,d|0,e|0,f|0,g|0)}function zw(a,b){a=a|0;b=b|0;cc[a&31](b|0)}function Aw(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;dc[a&1](b|0,c|0,d|0,e|0,f|0)}function Bw(a,b,c){a=a|0;b=b|0;c=c|0;return +ec[a&1](b|0,c|0)}function Cw(a,b,c){a=a|0;b=b|0;c=+c;fc[a&1](b|0,+c)}function Dw(a,b){a=a|0;b=b|0;return +gc[a&1](b|0)}function Ew(a){a=a|0;return hc[a&7]()|0}function Fw(a,b,c,d,e,f,g,h,i,j){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;j=j|0;return ic[a&3](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0,j|0)|0}function Gw(a,b,c){a=a|0;b=b|0;c=c|0;jc[a&15](b|0,c|0)}function Hw(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;return kc[a&7](b|0,c|0,d|0,e|0,f|0,g|0)|0}function Iw(a,b){a=a|0;b=b|0;return lc[a&127](b|0)|0}function Jw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;mc[a&63](b|0,c|0,d|0)}function Kw(a){a=a|0;nc[a&3]()}function Lw(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 oc[a&3](b|0,c|0,d|0,e|0,f|0,g|0,h|0,i|0)|0}function Mw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;return pc[a&31](b|0,c|0,d|0,e|0)|0}function Nw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;qc[a&15](b|0,c|0,d|0,e|0)}function Ow(a,b,c){a=a|0;b=b|0;c=c|0;return rc[a&127](b|0,c|0)|0}function Pw(a,b,c,d){a=a|0;b=b|0;c=c|0;d=+d;return sc[a&1](b|0,c|0,+d)|0}function Qw(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 tc[a&31](b|0,c|0,d|0,e|0,f|0)|0}function Rw(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;ha(0);return 0}function Sw(a,b,c){a=a|0;b=b|0;c=c|0;ia(1);return 0}function Tw(a,b,c){a=a|0;b=b|0;c=c|0;return tb(a|0,b|0,c|0)|0}function Uw(a,b,c){a=a|0;b=b|0;c=c|0;return Yb(a|0,b|0,c|0)|0}function Vw(a,b,c){a=a|0;b=b|0;c=c|0;return Fb(a|0,b|0,c|0)|0}function Ww(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;ja(2)}function Xw(a){a=a|0;ka(3)}function Yw(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;la(4)}function Zw(a,b){a=a|0;b=b|0;ma(5);return 0.0}function _w(a,b){a=a|0;b=+b;na(6)}function $w(a){a=a|0;oa(7);return 0.0}function ax(){pa(8);return 0}function bx(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;qa(9);return 0}function cx(a,b){a=a|0;b=b|0;ra(10)}function dx(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;sa(11);return 0}function ex(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 Ub(a|0,b|0,c|0,d|0,e|0,f|0)|0}function fx(a){a=a|0;ta(12);return 0}function gx(a){a=a|0;return Xb(a|0)|0}function hx(a){a=a|0;return vb(a|0)|0}function ix(a){a=a|0;return hb(a|0)|0}function jx(a,b,c){a=a|0;b=b|0;c=c|0;ua(13)}function kx(){va(14)}function lx(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;wa(15);return 0}function mx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;xa(16);return 0}function nx(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;ya(17)}function ox(a,b){a=a|0;b=b|0;za(18);return 0}function px(a,b){a=a|0;b=b|0;return eb(a|0,b|0)|0}function qx(a,b){a=a|0;b=b|0;return Wb(a|0,b|0)|0}function rx(a,b){a=a|0;b=b|0;return Ib(a|0,b|0)|0}function sx(a,b){a=a|0;b=b|0;return fb(a|0,b|0)|0}function tx(a,b){a=a|0;b=b|0;return zb(a|0,b|0)|0}function ux(a,b){a=a|0;b=b|0;return xb(a|0,b|0)|0}function vx(a,b){a=a|0;b=b|0;return Ab(a|0,b|0)|0}function wx(a,b){a=a|0;b=b|0;return Tb(a|0,b|0)|0}function xx(a,b,c){a=a|0;b=b|0;c=+c;Aa(19);return 0}function yx(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;Ba(20);return 0}
|
|
// EMSCRIPTEN_END_FUNCS
|
|
var $b=[Rw,ue];var ac=[Sw,li,qi,si,vi,xi,qe,we,vf,Xf,Yf,Ff,Ef,Hf,Oe,Df,Gf,Cf,xe,Qf,pf,Ge,Fc,Jf,Ne,ef,fg,Yc,Gi,Li,Oi,ek,kk,sk,Tw,Uw,Vw,uk,Bp,Cp,Ap,Sw,Sw,Sw,Sw,Sw,Sw,Sw,Sw,Sw,Sw,Sw,Sw,Sw,Sw,Sw,Sw,Sw,Sw,Sw,Sw,Sw,Sw,Sw];var bc=[Ww,Jd];var cc=[Xw,Wc,$e,yf,Hd,Rd,Qd,Rc,Ki,Si,Ti,Vi,_i,cj,Fj,Gj,Hj,Jj,Lj,ok,qo,yp,ql,Xw,Xw,Xw,Xw,Xw,Xw,Xw,Xw,Xw];var dc=[Yw,Bd];var ec=[Zw,ce];var fc=[_w,Cd];var gc=[$w,td];var hc=[ax,hf,kf,Qc,lf,jf,vk,ax];var ic=[bx,$f,Af,bx];var jc=[cx,ri,Fd,Nd,Od,Pd,cd,Mi,Ri,ru,su,cx,cx,cx,cx,cx];var kc=[dx,_e,Vf,oe,ex,dx,dx,dx];var lc=[fx,Yd,ye,rf,tf,Zd,ff,gf,_d,Ce,ed,Nf,Se,Mf,ld,md,Zf,qf,Tc,nd,Sd,sf,Td,pd,rd,sd,ud,vd,He,qd,wd,xd,yd,zd,od,Me,Je,Sc,Oc,ag,Kc,Nc,Ud,kd,hd,jd,id,Gc,Ec,nf,Of,df,uf,of,Pf,Ee,De,Ue,Ve,Vc,Di,Ji,Ni,Ui,Xi,Yi,Zi,bk,lk,mk,gx,hx,ix,wk,Ak,Xk,gl,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx,fx];var mc=[jx,pi,Dd,Ed,Gd,bd,Pi,$i,aj,bj,dj,ej,fj,gj,hj,ij,jj,kj,lj,mj,nj,oj,pj,qj,rj,sj,tj,uj,vj,wj,xj,yj,zj,Aj,Bj,Cj,Dj,Ej,Ij,Kj,Mj,Nj,Oj,Pj,Qj,Rj,Sj,Tj,Uj,Vj,Wj,Xj,Yj,Zj,_j,$j,ak,Th,jx,jx,jx,jx,jx,jx];var nc=[kx,_f,We,kx];var oc=[lx,zf,Bf,Ie];var pc=[mx,mi,ni,re,af,ad,Ke,Le,cg,Sf,Ic,fd,gg,$c,Te,nk,rk,Dc,Dh,Fh,Jh,Uh,$m,dq,mx,mx,mx,mx,mx,mx,mx,mx];var qc=[nx,wf,Ad,Id,Kd,Ld,Md,Xd,Qi,pg,nx,nx,nx,nx,nx,nx];var rc=[ox,oi,ti,ui,wi,yi,zi,Ai,Bi,Ci,Vd,se,Ae,ze,xf,$d,ae,be,le,me,de,ee,je,ke,fe,he,ie,ge,cf,Wd,_c,Rf,Tf,Xc,Be,Zc,Mc,dg,bg,Fe,gd,Pc,If,Lf,hg,ig,dd,eg,Uc,Pe,Hi,Ii,Wi,fk,gk,hk,ik,jk,pk,px,qx,rx,sx,tx,ux,tk,vx,wx,xk,yk,zk,Bk,Ck,Dk,Ph,xp,Dm,Em,ps,qs,Zs,_s,gu,hu,ou,pu,qu,pv,Sv,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox,ox];var sc=[xx,pe];var tc=[yx,ki,ne,te,ve,Uf,Wf,Qe,Xe,Ye,Re,Ze,bf,Jc,Kf,Ei,Fi,ck,dk,qk,Ek,Un,Vn,yx,yx,yx,yx,yx,yx,yx,yx,yx];return{_i64Subtract:dw,_strcat:hw,_free:Xv,_main:Cc,_realloc:Yv,_i64Add:jw,_memmove:lw,_bitshift64Ashr:ew,_strlen:gw,_memset:fw,_malloc:Wv,_memcpy:kw,_bitshift64Lshr:mw,_llvm_bswap_i32:nw,_bitshift64Shl:iw,runPostSets:cw,stackAlloc:uc,stackSave:vc,stackRestore:wc,setThrew:xc,setTempRet0:Ac,getTempRet0:Bc,dynCall_iiiiiiii:ww,dynCall_iiii:xw,dynCall_viiiiii:yw,dynCall_vi:zw,dynCall_viiiii:Aw,dynCall_dii:Bw,dynCall_vid:Cw,dynCall_di:Dw,dynCall_i:Ew,dynCall_iiiiiiiiii:Fw,dynCall_vii:Gw,dynCall_iiiiiii:Hw,dynCall_ii:Iw,dynCall_viii:Jw,dynCall_v:Kw,dynCall_iiiiiiiii:Lw,dynCall_iiiii:Mw,dynCall_viiii:Nw,dynCall_iii:Ow,dynCall_iiid:Pw,dynCall_iiiiii:Qw}})
|
|
// EMSCRIPTEN_END_ASM
|
|
(Module.asmGlobalArg,Module.asmLibraryArg,buffer);var real__i64Subtract=asm["_i64Subtract"];asm["_i64Subtract"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__i64Subtract.apply(null,arguments)});var real__strcat=asm["_strcat"];asm["_strcat"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__strcat.apply(null,arguments)});var real__main=asm["_main"];asm["_main"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__main.apply(null,arguments)});var real__realloc=asm["_realloc"];asm["_realloc"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__realloc.apply(null,arguments)});var real__i64Add=asm["_i64Add"];asm["_i64Add"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__i64Add.apply(null,arguments)});var real__memmove=asm["_memmove"];asm["_memmove"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__memmove.apply(null,arguments)});var real__bitshift64Ashr=asm["_bitshift64Ashr"];asm["_bitshift64Ashr"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__bitshift64Ashr.apply(null,arguments)});var real__strlen=asm["_strlen"];asm["_strlen"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__strlen.apply(null,arguments)});var real__bitshift64Lshr=asm["_bitshift64Lshr"];asm["_bitshift64Lshr"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__bitshift64Lshr.apply(null,arguments)});var real__llvm_bswap_i32=asm["_llvm_bswap_i32"];asm["_llvm_bswap_i32"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__llvm_bswap_i32.apply(null,arguments)});var real__bitshift64Shl=asm["_bitshift64Shl"];asm["_bitshift64Shl"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real__bitshift64Shl.apply(null,arguments)});var real_runPostSets=asm["runPostSets"];asm["runPostSets"]=(function(){assert(runtimeInitialized,"you need to wait for the runtime to be ready (e.g. wait for main() to be called)");assert(!runtimeExited,"the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");return real_runPostSets.apply(null,arguments)});var _i64Subtract=Module["_i64Subtract"]=asm["_i64Subtract"];var _strcat=Module["_strcat"]=asm["_strcat"];var _free=Module["_free"]=asm["_free"];var _main=Module["_main"]=asm["_main"];var _realloc=Module["_realloc"]=asm["_realloc"];var _i64Add=Module["_i64Add"]=asm["_i64Add"];var _memmove=Module["_memmove"]=asm["_memmove"];var _bitshift64Ashr=Module["_bitshift64Ashr"]=asm["_bitshift64Ashr"];var _strlen=Module["_strlen"]=asm["_strlen"];var _memset=Module["_memset"]=asm["_memset"];var _malloc=Module["_malloc"]=asm["_malloc"];var _memcpy=Module["_memcpy"]=asm["_memcpy"];var _bitshift64Lshr=Module["_bitshift64Lshr"]=asm["_bitshift64Lshr"];var _llvm_bswap_i32=Module["_llvm_bswap_i32"]=asm["_llvm_bswap_i32"];var _bitshift64Shl=Module["_bitshift64Shl"]=asm["_bitshift64Shl"];var runPostSets=Module["runPostSets"]=asm["runPostSets"];var dynCall_iiiiiiii=Module["dynCall_iiiiiiii"]=asm["dynCall_iiiiiiii"];var dynCall_iiii=Module["dynCall_iiii"]=asm["dynCall_iiii"];var dynCall_viiiiii=Module["dynCall_viiiiii"]=asm["dynCall_viiiiii"];var dynCall_vi=Module["dynCall_vi"]=asm["dynCall_vi"];var dynCall_viiiii=Module["dynCall_viiiii"]=asm["dynCall_viiiii"];var dynCall_dii=Module["dynCall_dii"]=asm["dynCall_dii"];var dynCall_vid=Module["dynCall_vid"]=asm["dynCall_vid"];var dynCall_di=Module["dynCall_di"]=asm["dynCall_di"];var dynCall_i=Module["dynCall_i"]=asm["dynCall_i"];var dynCall_iiiiiiiiii=Module["dynCall_iiiiiiiiii"]=asm["dynCall_iiiiiiiiii"];var dynCall_vii=Module["dynCall_vii"]=asm["dynCall_vii"];var dynCall_iiiiiii=Module["dynCall_iiiiiii"]=asm["dynCall_iiiiiii"];var dynCall_ii=Module["dynCall_ii"]=asm["dynCall_ii"];var dynCall_viii=Module["dynCall_viii"]=asm["dynCall_viii"];var dynCall_v=Module["dynCall_v"]=asm["dynCall_v"];var dynCall_iiiiiiiii=Module["dynCall_iiiiiiiii"]=asm["dynCall_iiiiiiiii"];var dynCall_iiiii=Module["dynCall_iiiii"]=asm["dynCall_iiiii"];var dynCall_viiii=Module["dynCall_viiii"]=asm["dynCall_viiii"];var dynCall_iii=Module["dynCall_iii"]=asm["dynCall_iii"];var dynCall_iiid=Module["dynCall_iiid"]=asm["dynCall_iiid"];var dynCall_iiiiii=Module["dynCall_iiiiii"]=asm["dynCall_iiiiii"];Runtime.stackAlloc=asm["stackAlloc"];Runtime.stackSave=asm["stackSave"];Runtime.stackRestore=asm["stackRestore"];Runtime.setTempRet0=asm["setTempRet0"];Runtime.getTempRet0=asm["getTempRet0"];var i64Math=(function(){var goog={math:{}};goog.math.Long=(function(low,high){this.low_=low|0;this.high_=high|0});goog.math.Long.IntCache_={};goog.math.Long.fromInt=(function(value){if(-128<=value&&value<128){var cachedObj=goog.math.Long.IntCache_[value];if(cachedObj){return cachedObj}}var obj=new goog.math.Long(value|0,value<0?-1:0);if(-128<=value&&value<128){goog.math.Long.IntCache_[value]=obj}return obj});goog.math.Long.fromNumber=(function(value){if(isNaN(value)||!isFinite(value)){return goog.math.Long.ZERO}else if(value<=-goog.math.Long.TWO_PWR_63_DBL_){return goog.math.Long.MIN_VALUE}else if(value+1>=goog.math.Long.TWO_PWR_63_DBL_){return goog.math.Long.MAX_VALUE}else if(value<0){return goog.math.Long.fromNumber(-value).negate()}else{return new goog.math.Long(value%goog.math.Long.TWO_PWR_32_DBL_|0,value/goog.math.Long.TWO_PWR_32_DBL_|0)}});goog.math.Long.fromBits=(function(lowBits,highBits){return new goog.math.Long(lowBits,highBits)});goog.math.Long.fromString=(function(str,opt_radix){if(str.length==0){throw Error("number format error: empty string")}var radix=opt_radix||10;if(radix<2||36<radix){throw Error("radix out of range: "+radix)}if(str.charAt(0)=="-"){return goog.math.Long.fromString(str.substring(1),radix).negate()}else if(str.indexOf("-")>=0){throw Error('number format error: interior "-" character: '+str)}var radixToPower=goog.math.Long.fromNumber(Math.pow(radix,8));var result=goog.math.Long.ZERO;for(var i=0;i<str.length;i+=8){var size=Math.min(8,str.length-i);var value=parseInt(str.substring(i,i+size),radix);if(size<8){var power=goog.math.Long.fromNumber(Math.pow(radix,size));result=result.multiply(power).add(goog.math.Long.fromNumber(value))}else{result=result.multiply(radixToPower);result=result.add(goog.math.Long.fromNumber(value))}}return result});goog.math.Long.TWO_PWR_16_DBL_=1<<16;goog.math.Long.TWO_PWR_24_DBL_=1<<24;goog.math.Long.TWO_PWR_32_DBL_=goog.math.Long.TWO_PWR_16_DBL_*goog.math.Long.TWO_PWR_16_DBL_;goog.math.Long.TWO_PWR_31_DBL_=goog.math.Long.TWO_PWR_32_DBL_/2;goog.math.Long.TWO_PWR_48_DBL_=goog.math.Long.TWO_PWR_32_DBL_*goog.math.Long.TWO_PWR_16_DBL_;goog.math.Long.TWO_PWR_64_DBL_=goog.math.Long.TWO_PWR_32_DBL_*goog.math.Long.TWO_PWR_32_DBL_;goog.math.Long.TWO_PWR_63_DBL_=goog.math.Long.TWO_PWR_64_DBL_/2;goog.math.Long.ZERO=goog.math.Long.fromInt(0);goog.math.Long.ONE=goog.math.Long.fromInt(1);goog.math.Long.NEG_ONE=goog.math.Long.fromInt(-1);goog.math.Long.MAX_VALUE=goog.math.Long.fromBits(4294967295|0,2147483647|0);goog.math.Long.MIN_VALUE=goog.math.Long.fromBits(0,2147483648|0);goog.math.Long.TWO_PWR_24_=goog.math.Long.fromInt(1<<24);goog.math.Long.prototype.toInt=(function(){return this.low_});goog.math.Long.prototype.toNumber=(function(){return this.high_*goog.math.Long.TWO_PWR_32_DBL_+this.getLowBitsUnsigned()});goog.math.Long.prototype.toString=(function(opt_radix){var radix=opt_radix||10;if(radix<2||36<radix){throw Error("radix out of range: "+radix)}if(this.isZero()){return"0"}if(this.isNegative()){if(this.equals(goog.math.Long.MIN_VALUE)){var radixLong=goog.math.Long.fromNumber(radix);var div=this.div(radixLong);var rem=div.multiply(radixLong).subtract(this);return div.toString(radix)+rem.toInt().toString(radix)}else{return"-"+this.negate().toString(radix)}}var radixToPower=goog.math.Long.fromNumber(Math.pow(radix,6));var rem=this;var result="";while(true){var remDiv=rem.div(radixToPower);var intval=rem.subtract(remDiv.multiply(radixToPower)).toInt();var digits=intval.toString(radix);rem=remDiv;if(rem.isZero()){return digits+result}else{while(digits.length<6){digits="0"+digits}result=""+digits+result}}});goog.math.Long.prototype.getHighBits=(function(){return this.high_});goog.math.Long.prototype.getLowBits=(function(){return this.low_});goog.math.Long.prototype.getLowBitsUnsigned=(function(){return this.low_>=0?this.low_:goog.math.Long.TWO_PWR_32_DBL_+this.low_});goog.math.Long.prototype.getNumBitsAbs=(function(){if(this.isNegative()){if(this.equals(goog.math.Long.MIN_VALUE)){return 64}else{return this.negate().getNumBitsAbs()}}else{var val=this.high_!=0?this.high_:this.low_;for(var bit=31;bit>0;bit--){if((val&1<<bit)!=0){break}}return this.high_!=0?bit+33:bit+1}});goog.math.Long.prototype.isZero=(function(){return this.high_==0&&this.low_==0});goog.math.Long.prototype.isNegative=(function(){return this.high_<0});goog.math.Long.prototype.isOdd=(function(){return(this.low_&1)==1});goog.math.Long.prototype.equals=(function(other){return this.high_==other.high_&&this.low_==other.low_});goog.math.Long.prototype.notEquals=(function(other){return this.high_!=other.high_||this.low_!=other.low_});goog.math.Long.prototype.lessThan=(function(other){return this.compare(other)<0});goog.math.Long.prototype.lessThanOrEqual=(function(other){return this.compare(other)<=0});goog.math.Long.prototype.greaterThan=(function(other){return this.compare(other)>0});goog.math.Long.prototype.greaterThanOrEqual=(function(other){return this.compare(other)>=0});goog.math.Long.prototype.compare=(function(other){if(this.equals(other)){return 0}var thisNeg=this.isNegative();var otherNeg=other.isNegative();if(thisNeg&&!otherNeg){return-1}if(!thisNeg&&otherNeg){return 1}if(this.subtract(other).isNegative()){return-1}else{return 1}});goog.math.Long.prototype.negate=(function(){if(this.equals(goog.math.Long.MIN_VALUE)){return goog.math.Long.MIN_VALUE}else{return this.not().add(goog.math.Long.ONE)}});goog.math.Long.prototype.add=(function(other){var a48=this.high_>>>16;var a32=this.high_&65535;var a16=this.low_>>>16;var a00=this.low_&65535;var b48=other.high_>>>16;var b32=other.high_&65535;var b16=other.low_>>>16;var b00=other.low_&65535;var c48=0,c32=0,c16=0,c00=0;c00+=a00+b00;c16+=c00>>>16;c00&=65535;c16+=a16+b16;c32+=c16>>>16;c16&=65535;c32+=a32+b32;c48+=c32>>>16;c32&=65535;c48+=a48+b48;c48&=65535;return goog.math.Long.fromBits(c16<<16|c00,c48<<16|c32)});goog.math.Long.prototype.subtract=(function(other){return this.add(other.negate())});goog.math.Long.prototype.multiply=(function(other){if(this.isZero()){return goog.math.Long.ZERO}else if(other.isZero()){return goog.math.Long.ZERO}if(this.equals(goog.math.Long.MIN_VALUE)){return other.isOdd()?goog.math.Long.MIN_VALUE:goog.math.Long.ZERO}else if(other.equals(goog.math.Long.MIN_VALUE)){return this.isOdd()?goog.math.Long.MIN_VALUE:goog.math.Long.ZERO}if(this.isNegative()){if(other.isNegative()){return this.negate().multiply(other.negate())}else{return this.negate().multiply(other).negate()}}else if(other.isNegative()){return this.multiply(other.negate()).negate()}if(this.lessThan(goog.math.Long.TWO_PWR_24_)&&other.lessThan(goog.math.Long.TWO_PWR_24_)){return goog.math.Long.fromNumber(this.toNumber()*other.toNumber())}var a48=this.high_>>>16;var a32=this.high_&65535;var a16=this.low_>>>16;var a00=this.low_&65535;var b48=other.high_>>>16;var b32=other.high_&65535;var b16=other.low_>>>16;var b00=other.low_&65535;var c48=0,c32=0,c16=0,c00=0;c00+=a00*b00;c16+=c00>>>16;c00&=65535;c16+=a16*b00;c32+=c16>>>16;c16&=65535;c16+=a00*b16;c32+=c16>>>16;c16&=65535;c32+=a32*b00;c48+=c32>>>16;c32&=65535;c32+=a16*b16;c48+=c32>>>16;c32&=65535;c32+=a00*b32;c48+=c32>>>16;c32&=65535;c48+=a48*b00+a32*b16+a16*b32+a00*b48;c48&=65535;return goog.math.Long.fromBits(c16<<16|c00,c48<<16|c32)});goog.math.Long.prototype.div=(function(other){if(other.isZero()){throw Error("division by zero")}else if(this.isZero()){return goog.math.Long.ZERO}if(this.equals(goog.math.Long.MIN_VALUE)){if(other.equals(goog.math.Long.ONE)||other.equals(goog.math.Long.NEG_ONE)){return goog.math.Long.MIN_VALUE}else if(other.equals(goog.math.Long.MIN_VALUE)){return goog.math.Long.ONE}else{var halfThis=this.shiftRight(1);var approx=halfThis.div(other).shiftLeft(1);if(approx.equals(goog.math.Long.ZERO)){return other.isNegative()?goog.math.Long.ONE:goog.math.Long.NEG_ONE}else{var rem=this.subtract(other.multiply(approx));var result=approx.add(rem.div(other));return result}}}else if(other.equals(goog.math.Long.MIN_VALUE)){return goog.math.Long.ZERO}if(this.isNegative()){if(other.isNegative()){return this.negate().div(other.negate())}else{return this.negate().div(other).negate()}}else if(other.isNegative()){return this.div(other.negate()).negate()}var res=goog.math.Long.ZERO;var rem=this;while(rem.greaterThanOrEqual(other)){var approx=Math.max(1,Math.floor(rem.toNumber()/other.toNumber()));var log2=Math.ceil(Math.log(approx)/Math.LN2);var delta=log2<=48?1:Math.pow(2,log2-48);var approxRes=goog.math.Long.fromNumber(approx);var approxRem=approxRes.multiply(other);while(approxRem.isNegative()||approxRem.greaterThan(rem)){approx-=delta;approxRes=goog.math.Long.fromNumber(approx);approxRem=approxRes.multiply(other)}if(approxRes.isZero()){approxRes=goog.math.Long.ONE}res=res.add(approxRes);rem=rem.subtract(approxRem)}return res});goog.math.Long.prototype.modulo=(function(other){return this.subtract(this.div(other).multiply(other))});goog.math.Long.prototype.not=(function(){return goog.math.Long.fromBits(~this.low_,~this.high_)});goog.math.Long.prototype.and=(function(other){return goog.math.Long.fromBits(this.low_&other.low_,this.high_&other.high_)});goog.math.Long.prototype.or=(function(other){return goog.math.Long.fromBits(this.low_|other.low_,this.high_|other.high_)});goog.math.Long.prototype.xor=(function(other){return goog.math.Long.fromBits(this.low_^other.low_,this.high_^other.high_)});goog.math.Long.prototype.shiftLeft=(function(numBits){numBits&=63;if(numBits==0){return this}else{var low=this.low_;if(numBits<32){var high=this.high_;return goog.math.Long.fromBits(low<<numBits,high<<numBits|low>>>32-numBits)}else{return goog.math.Long.fromBits(0,low<<numBits-32)}}});goog.math.Long.prototype.shiftRight=(function(numBits){numBits&=63;if(numBits==0){return this}else{var high=this.high_;if(numBits<32){var low=this.low_;return goog.math.Long.fromBits(low>>>numBits|high<<32-numBits,high>>numBits)}else{return goog.math.Long.fromBits(high>>numBits-32,high>=0?0:-1)}}});goog.math.Long.prototype.shiftRightUnsigned=(function(numBits){numBits&=63;if(numBits==0){return this}else{var high=this.high_;if(numBits<32){var low=this.low_;return goog.math.Long.fromBits(low>>>numBits|high<<32-numBits,high>>>numBits)}else if(numBits==32){return goog.math.Long.fromBits(high,0)}else{return goog.math.Long.fromBits(high>>>numBits-32,0)}}});var navigator={appName:"Modern Browser"};var dbits;var canary=0xdeadbeefcafe;var j_lm=(canary&16777215)==15715070;function BigInteger(a,b,c){if(a!=null)if("number"==typeof a)this.fromNumber(a,b,c);else if(b==null&&"string"!=typeof a)this.fromString(a,256);else this.fromString(a,b)}function nbi(){return new BigInteger(null)}function am1(i,x,w,j,c,n){while(--n>=0){var v=x*this[i++]+w[j]+c;c=Math.floor(v/67108864);w[j++]=v&67108863}return c}function am2(i,x,w,j,c,n){var xl=x&32767,xh=x>>15;while(--n>=0){var l=this[i]&32767;var h=this[i++]>>15;var m=xh*l+h*xl;l=xl*l+((m&32767)<<15)+w[j]+(c&1073741823);c=(l>>>30)+(m>>>15)+xh*h+(c>>>30);w[j++]=l&1073741823}return c}function am3(i,x,w,j,c,n){var xl=x&16383,xh=x>>14;while(--n>=0){var l=this[i]&16383;var h=this[i++]>>14;var m=xh*l+h*xl;l=xl*l+((m&16383)<<14)+w[j]+c;c=(l>>28)+(m>>14)+xh*h;w[j++]=l&268435455}return c}if(j_lm&&navigator.appName=="Microsoft Internet Explorer"){BigInteger.prototype.am=am2;dbits=30}else if(j_lm&&navigator.appName!="Netscape"){BigInteger.prototype.am=am1;dbits=26}else{BigInteger.prototype.am=am3;dbits=28}BigInteger.prototype.DB=dbits;BigInteger.prototype.DM=(1<<dbits)-1;BigInteger.prototype.DV=1<<dbits;var BI_FP=52;BigInteger.prototype.FV=Math.pow(2,BI_FP);BigInteger.prototype.F1=BI_FP-dbits;BigInteger.prototype.F2=2*dbits-BI_FP;var BI_RM="0123456789abcdefghijklmnopqrstuvwxyz";var BI_RC=new Array;var rr,vv;rr="0".charCodeAt(0);for(vv=0;vv<=9;++vv)BI_RC[rr++]=vv;rr="a".charCodeAt(0);for(vv=10;vv<36;++vv)BI_RC[rr++]=vv;rr="A".charCodeAt(0);for(vv=10;vv<36;++vv)BI_RC[rr++]=vv;function int2char(n){return BI_RM.charAt(n)}function intAt(s,i){var c=BI_RC[s.charCodeAt(i)];return c==null?-1:c}function bnpCopyTo(r){for(var i=this.t-1;i>=0;--i)r[i]=this[i];r.t=this.t;r.s=this.s}function bnpFromInt(x){this.t=1;this.s=x<0?-1:0;if(x>0)this[0]=x;else if(x<-1)this[0]=x+DV;else this.t=0}function nbv(i){var r=nbi();r.fromInt(i);return r}function bnpFromString(s,b){var k;if(b==16)k=4;else if(b==8)k=3;else if(b==256)k=8;else if(b==2)k=1;else if(b==32)k=5;else if(b==4)k=2;else{this.fromRadix(s,b);return}this.t=0;this.s=0;var i=s.length,mi=false,sh=0;while(--i>=0){var x=k==8?s[i]&255:intAt(s,i);if(x<0){if(s.charAt(i)=="-")mi=true;continue}mi=false;if(sh==0)this[this.t++]=x;else if(sh+k>this.DB){this[this.t-1]|=(x&(1<<this.DB-sh)-1)<<sh;this[this.t++]=x>>this.DB-sh}else this[this.t-1]|=x<<sh;sh+=k;if(sh>=this.DB)sh-=this.DB}if(k==8&&(s[0]&128)!=0){this.s=-1;if(sh>0)this[this.t-1]|=(1<<this.DB-sh)-1<<sh}this.clamp();if(mi)BigInteger.ZERO.subTo(this,this)}function bnpClamp(){var c=this.s&this.DM;while(this.t>0&&this[this.t-1]==c)--this.t}function bnToString(b){if(this.s<0)return"-"+this.negate().toString(b);var k;if(b==16)k=4;else if(b==8)k=3;else if(b==2)k=1;else if(b==32)k=5;else if(b==4)k=2;else return this.toRadix(b);var km=(1<<k)-1,d,m=false,r="",i=this.t;var p=this.DB-i*this.DB%k;if(i-->0){if(p<this.DB&&(d=this[i]>>p)>0){m=true;r=int2char(d)}while(i>=0){if(p<k){d=(this[i]&(1<<p)-1)<<k-p;d|=this[--i]>>(p+=this.DB-k)}else{d=this[i]>>(p-=k)&km;if(p<=0){p+=this.DB;--i}}if(d>0)m=true;if(m)r+=int2char(d)}}return m?r:"0"}function bnNegate(){var r=nbi();BigInteger.ZERO.subTo(this,r);return r}function bnAbs(){return this.s<0?this.negate():this}function bnCompareTo(a){var r=this.s-a.s;if(r!=0)return r;var i=this.t;r=i-a.t;if(r!=0)return this.s<0?-r:r;while(--i>=0)if((r=this[i]-a[i])!=0)return r;return 0}function nbits(x){var r=1,t;if((t=x>>>16)!=0){x=t;r+=16}if((t=x>>8)!=0){x=t;r+=8}if((t=x>>4)!=0){x=t;r+=4}if((t=x>>2)!=0){x=t;r+=2}if((t=x>>1)!=0){x=t;r+=1}return r}function bnBitLength(){if(this.t<=0)return 0;return this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)}function bnpDLShiftTo(n,r){var i;for(i=this.t-1;i>=0;--i)r[i+n]=this[i];for(i=n-1;i>=0;--i)r[i]=0;r.t=this.t+n;r.s=this.s}function bnpDRShiftTo(n,r){for(var i=n;i<this.t;++i)r[i-n]=this[i];r.t=Math.max(this.t-n,0);r.s=this.s}function bnpLShiftTo(n,r){var bs=n%this.DB;var cbs=this.DB-bs;var bm=(1<<cbs)-1;var ds=Math.floor(n/this.DB),c=this.s<<bs&this.DM,i;for(i=this.t-1;i>=0;--i){r[i+ds+1]=this[i]>>cbs|c;c=(this[i]&bm)<<bs}for(i=ds-1;i>=0;--i)r[i]=0;r[ds]=c;r.t=this.t+ds+1;r.s=this.s;r.clamp()}function bnpRShiftTo(n,r){r.s=this.s;var ds=Math.floor(n/this.DB);if(ds>=this.t){r.t=0;return}var bs=n%this.DB;var cbs=this.DB-bs;var bm=(1<<bs)-1;r[0]=this[ds]>>bs;for(var i=ds+1;i<this.t;++i){r[i-ds-1]|=(this[i]&bm)<<cbs;r[i-ds]=this[i]>>bs}if(bs>0)r[this.t-ds-1]|=(this.s&bm)<<cbs;r.t=this.t-ds;r.clamp()}function bnpSubTo(a,r){var i=0,c=0,m=Math.min(a.t,this.t);while(i<m){c+=this[i]-a[i];r[i++]=c&this.DM;c>>=this.DB}if(a.t<this.t){c-=a.s;while(i<this.t){c+=this[i];r[i++]=c&this.DM;c>>=this.DB}c+=this.s}else{c+=this.s;while(i<a.t){c-=a[i];r[i++]=c&this.DM;c>>=this.DB}c-=a.s}r.s=c<0?-1:0;if(c<-1)r[i++]=this.DV+c;else if(c>0)r[i++]=c;r.t=i;r.clamp()}function bnpMultiplyTo(a,r){var x=this.abs(),y=a.abs();var i=x.t;r.t=i+y.t;while(--i>=0)r[i]=0;for(i=0;i<y.t;++i)r[i+x.t]=x.am(0,y[i],r,i,0,x.t);r.s=0;r.clamp();if(this.s!=a.s)BigInteger.ZERO.subTo(r,r)}function bnpSquareTo(r){var x=this.abs();var i=r.t=2*x.t;while(--i>=0)r[i]=0;for(i=0;i<x.t-1;++i){var c=x.am(i,x[i],r,2*i,0,1);if((r[i+x.t]+=x.am(i+1,2*x[i],r,2*i+1,c,x.t-i-1))>=x.DV){r[i+x.t]-=x.DV;r[i+x.t+1]=1}}if(r.t>0)r[r.t-1]+=x.am(i,x[i],r,2*i,0,1);r.s=0;r.clamp()}function bnpDivRemTo(m,q,r){var pm=m.abs();if(pm.t<=0)return;var pt=this.abs();if(pt.t<pm.t){if(q!=null)q.fromInt(0);if(r!=null)this.copyTo(r);return}if(r==null)r=nbi();var y=nbi(),ts=this.s,ms=m.s;var nsh=this.DB-nbits(pm[pm.t-1]);if(nsh>0){pm.lShiftTo(nsh,y);pt.lShiftTo(nsh,r)}else{pm.copyTo(y);pt.copyTo(r)}var ys=y.t;var y0=y[ys-1];if(y0==0)return;var yt=y0*(1<<this.F1)+(ys>1?y[ys-2]>>this.F2:0);var d1=this.FV/yt,d2=(1<<this.F1)/yt,e=1<<this.F2;var i=r.t,j=i-ys,t=q==null?nbi():q;y.dlShiftTo(j,t);if(r.compareTo(t)>=0){r[r.t++]=1;r.subTo(t,r)}BigInteger.ONE.dlShiftTo(ys,t);t.subTo(y,y);while(y.t<ys)y[y.t++]=0;while(--j>=0){var qd=r[--i]==y0?this.DM:Math.floor(r[i]*d1+(r[i-1]+e)*d2);if((r[i]+=y.am(0,qd,r,j,0,ys))<qd){y.dlShiftTo(j,t);r.subTo(t,r);while(r[i]<--qd)r.subTo(t,r)}}if(q!=null){r.drShiftTo(ys,q);if(ts!=ms)BigInteger.ZERO.subTo(q,q)}r.t=ys;r.clamp();if(nsh>0)r.rShiftTo(nsh,r);if(ts<0)BigInteger.ZERO.subTo(r,r)}function bnMod(a){var r=nbi();this.abs().divRemTo(a,null,r);if(this.s<0&&r.compareTo(BigInteger.ZERO)>0)a.subTo(r,r);return r}function Classic(m){this.m=m}function cConvert(x){if(x.s<0||x.compareTo(this.m)>=0)return x.mod(this.m);else return x}function cRevert(x){return x}function cReduce(x){x.divRemTo(this.m,null,x)}function cMulTo(x,y,r){x.multiplyTo(y,r);this.reduce(r)}function cSqrTo(x,r){x.squareTo(r);this.reduce(r)}Classic.prototype.convert=cConvert;Classic.prototype.revert=cRevert;Classic.prototype.reduce=cReduce;Classic.prototype.mulTo=cMulTo;Classic.prototype.sqrTo=cSqrTo;function bnpInvDigit(){if(this.t<1)return 0;var x=this[0];if((x&1)==0)return 0;var y=x&3;y=y*(2-(x&15)*y)&15;y=y*(2-(x&255)*y)&255;y=y*(2-((x&65535)*y&65535))&65535;y=y*(2-x*y%this.DV)%this.DV;return y>0?this.DV-y:-y}function Montgomery(m){this.m=m;this.mp=m.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<<m.DB-15)-1;this.mt2=2*m.t}function montConvert(x){var r=nbi();x.abs().dlShiftTo(this.m.t,r);r.divRemTo(this.m,null,r);if(x.s<0&&r.compareTo(BigInteger.ZERO)>0)this.m.subTo(r,r);return r}function montRevert(x){var r=nbi();x.copyTo(r);this.reduce(r);return r}function montReduce(x){while(x.t<=this.mt2)x[x.t++]=0;for(var i=0;i<this.m.t;++i){var j=x[i]&32767;var u0=j*this.mpl+((j*this.mph+(x[i]>>15)*this.mpl&this.um)<<15)&x.DM;j=i+this.m.t;x[j]+=this.m.am(0,u0,x,i,0,this.m.t);while(x[j]>=x.DV){x[j]-=x.DV;x[++j]++}}x.clamp();x.drShiftTo(this.m.t,x);if(x.compareTo(this.m)>=0)x.subTo(this.m,x)}function montSqrTo(x,r){x.squareTo(r);this.reduce(r)}function montMulTo(x,y,r){x.multiplyTo(y,r);this.reduce(r)}Montgomery.prototype.convert=montConvert;Montgomery.prototype.revert=montRevert;Montgomery.prototype.reduce=montReduce;Montgomery.prototype.mulTo=montMulTo;Montgomery.prototype.sqrTo=montSqrTo;function bnpIsEven(){return(this.t>0?this[0]&1:this.s)==0}function bnpExp(e,z){if(e>4294967295||e<1)return BigInteger.ONE;var r=nbi(),r2=nbi(),g=z.convert(this),i=nbits(e)-1;g.copyTo(r);while(--i>=0){z.sqrTo(r,r2);if((e&1<<i)>0)z.mulTo(r2,g,r);else{var t=r;r=r2;r2=t}}return z.revert(r)}function bnModPowInt(e,m){var z;if(e<256||m.isEven())z=new Classic(m);else z=new Montgomery(m);return this.exp(e,z)}BigInteger.prototype.copyTo=bnpCopyTo;BigInteger.prototype.fromInt=bnpFromInt;BigInteger.prototype.fromString=bnpFromString;BigInteger.prototype.clamp=bnpClamp;BigInteger.prototype.dlShiftTo=bnpDLShiftTo;BigInteger.prototype.drShiftTo=bnpDRShiftTo;BigInteger.prototype.lShiftTo=bnpLShiftTo;BigInteger.prototype.rShiftTo=bnpRShiftTo;BigInteger.prototype.subTo=bnpSubTo;BigInteger.prototype.multiplyTo=bnpMultiplyTo;BigInteger.prototype.squareTo=bnpSquareTo;BigInteger.prototype.divRemTo=bnpDivRemTo;BigInteger.prototype.invDigit=bnpInvDigit;BigInteger.prototype.isEven=bnpIsEven;BigInteger.prototype.exp=bnpExp;BigInteger.prototype.toString=bnToString;BigInteger.prototype.negate=bnNegate;BigInteger.prototype.abs=bnAbs;BigInteger.prototype.compareTo=bnCompareTo;BigInteger.prototype.bitLength=bnBitLength;BigInteger.prototype.mod=bnMod;BigInteger.prototype.modPowInt=bnModPowInt;BigInteger.ZERO=nbv(0);BigInteger.ONE=nbv(1);function bnpFromRadix(s,b){this.fromInt(0);if(b==null)b=10;var cs=this.chunkSize(b);var d=Math.pow(b,cs),mi=false,j=0,w=0;for(var i=0;i<s.length;++i){var x=intAt(s,i);if(x<0){if(s.charAt(i)=="-"&&this.signum()==0)mi=true;continue}w=b*w+x;if(++j>=cs){this.dMultiply(d);this.dAddOffset(w,0);j=0;w=0}}if(j>0){this.dMultiply(Math.pow(b,j));this.dAddOffset(w,0)}if(mi)BigInteger.ZERO.subTo(this,this)}function bnpChunkSize(r){return Math.floor(Math.LN2*this.DB/Math.log(r))}function bnSigNum(){if(this.s<0)return-1;else if(this.t<=0||this.t==1&&this[0]<=0)return 0;else return 1}function bnpDMultiply(n){this[this.t]=this.am(0,n-1,this,0,0,this.t);++this.t;this.clamp()}function bnpDAddOffset(n,w){if(n==0)return;while(this.t<=w)this[this.t++]=0;this[w]+=n;while(this[w]>=this.DV){this[w]-=this.DV;if(++w>=this.t)this[this.t++]=0;++this[w]}}function bnpToRadix(b){if(b==null)b=10;if(this.signum()==0||b<2||b>36)return"0";var cs=this.chunkSize(b);var a=Math.pow(b,cs);var d=nbv(a),y=nbi(),z=nbi(),r="";this.divRemTo(d,y,z);while(y.signum()>0){r=(a+z.intValue()).toString(b).substr(1)+r;y.divRemTo(d,y,z)}return z.intValue().toString(b)+r}function bnIntValue(){if(this.s<0){if(this.t==1)return this[0]-this.DV;else if(this.t==0)return-1}else if(this.t==1)return this[0];else if(this.t==0)return 0;return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function bnpAddTo(a,r){var i=0,c=0,m=Math.min(a.t,this.t);while(i<m){c+=this[i]+a[i];r[i++]=c&this.DM;c>>=this.DB}if(a.t<this.t){c+=a.s;while(i<this.t){c+=this[i];r[i++]=c&this.DM;c>>=this.DB}c+=this.s}else{c+=this.s;while(i<a.t){c+=a[i];r[i++]=c&this.DM;c>>=this.DB}c+=a.s}r.s=c<0?-1:0;if(c>0)r[i++]=c;else if(c<-1)r[i++]=this.DV+c;r.t=i;r.clamp()}BigInteger.prototype.fromRadix=bnpFromRadix;BigInteger.prototype.chunkSize=bnpChunkSize;BigInteger.prototype.signum=bnSigNum;BigInteger.prototype.dMultiply=bnpDMultiply;BigInteger.prototype.dAddOffset=bnpDAddOffset;BigInteger.prototype.toRadix=bnpToRadix;BigInteger.prototype.intValue=bnIntValue;BigInteger.prototype.addTo=bnpAddTo;var Wrapper={abs:(function(l,h){var x=new goog.math.Long(l,h);var ret;if(x.isNegative()){ret=x.negate()}else{ret=x}HEAP32[tempDoublePtr>>2]=ret.low_;HEAP32[tempDoublePtr+4>>2]=ret.high_}),ensureTemps:(function(){if(Wrapper.ensuredTemps)return;Wrapper.ensuredTemps=true;Wrapper.two32=new BigInteger;Wrapper.two32.fromString("4294967296",10);Wrapper.two64=new BigInteger;Wrapper.two64.fromString("18446744073709551616",10);Wrapper.temp1=new BigInteger;Wrapper.temp2=new BigInteger}),lh2bignum:(function(l,h){var a=new BigInteger;a.fromString(h.toString(),10);var b=new BigInteger;a.multiplyTo(Wrapper.two32,b);var c=new BigInteger;c.fromString(l.toString(),10);var d=new BigInteger;c.addTo(b,d);return d}),stringify:(function(l,h,unsigned){var ret=(new goog.math.Long(l,h)).toString();if(unsigned&&ret[0]=="-"){Wrapper.ensureTemps();var bignum=new BigInteger;bignum.fromString(ret,10);ret=new BigInteger;Wrapper.two64.addTo(bignum,ret);ret=ret.toString(10)}return ret}),fromString:(function(str,base,min,max,unsigned){Wrapper.ensureTemps();var bignum=new BigInteger;bignum.fromString(str,base);var bigmin=new BigInteger;bigmin.fromString(min,10);var bigmax=new BigInteger;bigmax.fromString(max,10);if(unsigned&&bignum.compareTo(BigInteger.ZERO)<0){var temp=new BigInteger;bignum.addTo(Wrapper.two64,temp);bignum=temp}var error=false;if(bignum.compareTo(bigmin)<0){bignum=bigmin;error=true}else if(bignum.compareTo(bigmax)>0){bignum=bigmax;error=true}var ret=goog.math.Long.fromString(bignum.toString());HEAP32[tempDoublePtr>>2]=ret.low_;HEAP32[tempDoublePtr+4>>2]=ret.high_;if(error)throw"range error"})};return Wrapper})();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,STATIC_BASE)}else{addRunDependency("memory initializer");function applyMemoryInitializer(data){if(data.byteLength)data=new Uint8Array(data);for(var i=0;i<data.length;i++){assert(HEAPU8[STATIC_BASE+i]===0,"area for memory initializer should not have been touched before it's loaded")}HEAPU8.set(data,STATIC_BASE);removeRunDependency("memory initializer")}var request=Module["memoryInitializerRequest"];if(request){if(request.response){setTimeout((function(){applyMemoryInitializer(request.response)}),0)}else{request.addEventListener("load",(function(){if(request.status!==200&&request.status!==0){console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: "+request.status)}if(!request.response||typeof request.response!=="object"||!request.response.byteLength){console.warn("a problem seems to have happened with Module.memoryInitializerRequest response (expected ArrayBuffer): "+request.response)}applyMemoryInitializer(request.response)}))}}else{Browser.asyncLoad(memoryInitializer,applyMemoryInitializer,(function(){throw"could not load memory initializer "+memoryInitializer}))}}}function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}ExitStatus.prototype=new Error;ExitStatus.prototype.constructor=ExitStatus;var initialStackTop;var preloadStartTime=null;var calledMain=false;dependenciesFulfilled=function runCaller(){if(!Module["calledRun"])run();if(!Module["calledRun"])dependenciesFulfilled=runCaller};Module["callMain"]=Module.callMain=function callMain(args){assert(runDependencies==0,"cannot call main when async dependencies remain! (listen on __ATMAIN__)");assert(__ATPRERUN__.length==0,"cannot call main when preRun functions remain to be called");args=args||[];ensureInitRuntime();var argc=args.length+1;function pad(){for(var i=0;i<4-1;i++){argv.push(0)}}var argv=[allocate(intArrayFromString(Module["thisProgram"]),"i8",ALLOC_NORMAL)];pad();for(var i=0;i<argc-1;i=i+1){argv.push(allocate(intArrayFromString(args[i]),"i8",ALLOC_NORMAL));pad()}argv.push(0);argv=allocate(argv,"i32",ALLOC_NORMAL);initialStackTop=STACKTOP;try{var ret=Module["_main"](argc,argv,0);exit(ret)}catch(e){if(e instanceof ExitStatus){return}else if(e=="SimulateInfiniteLoop"){Module["noExitRuntime"]=true;return}else{if(e&&typeof e==="object"&&e.stack)Module.printErr("exception thrown: "+[e,e.stack]);throw e}}finally{calledMain=true}};function run(args){args=args||Module["arguments"];if(preloadStartTime===null)preloadStartTime=Date.now();if(runDependencies>0){Module.printErr("run() called, but dependencies remain, so not running");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(ENVIRONMENT_IS_WEB&&preloadStartTime!==null){Module.printErr("pre-main prep time: "+(Date.now()-preloadStartTime)+" ms")}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){if(Module["noExitRuntime"]){Module.printErr("exit("+status+") called, but noExitRuntime, so not exiting (you can use emscripten_force_exit, if you want to force a true shutdown)");return}ABORT=true;EXITSTATUS=status;STACKTOP=initialStackTop;exitRuntime();if(Module["onExit"])Module["onExit"](status);if(ENVIRONMENT_IS_NODE){process["stdout"]["once"]("drain",(function(){process["exit"](status)}));console.log(" ");setTimeout((function(){process["exit"](status)}),500)}else if(ENVIRONMENT_IS_SHELL&&typeof quit==="function"){quit(status)}throw 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="";var output="abort("+what+") at "+stackTrace()+extra;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()
|