-
Notifications
You must be signed in to change notification settings - Fork 0
/
draco_decoder_gltf.js
36 lines (28 loc) · 491 KB
/
draco_decoder_gltf.js
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
var DracoDecoderModule = (() => {
var _scriptDir = typeof document !== 'undefined' && document.currentScript ? document.currentScript.src : undefined;
if (typeof __filename !== 'undefined') _scriptDir = _scriptDir || __filename;
return (
function(DracoDecoderModule) {
DracoDecoderModule = DracoDecoderModule || {};
var Module=typeof DracoDecoderModule!=="undefined"?DracoDecoderModule:{};var objAssign=Object.assign;var readyPromiseResolve,readyPromiseReject;Module["ready"]=new Promise(function(resolve,reject){readyPromiseResolve=resolve;readyPromiseReject=reject});var isRuntimeInitialized=false;var isModuleParsed=false;Module["onRuntimeInitialized"]=function(){isRuntimeInitialized=true;if(isModuleParsed){if(typeof Module["onModuleLoaded"]==="function"){Module["onModuleLoaded"](Module)}}};Module["onModuleParsed"]=function(){isModuleParsed=true;if(isRuntimeInitialized){if(typeof Module["onModuleLoaded"]==="function"){Module["onModuleLoaded"](Module)}}};function isVersionSupported(versionString){if(typeof versionString!=="string")return false;const version=versionString.split(".");if(version.length<2||version.length>3)return false;if(version[0]==1&&version[1]>=0&&version[1]<=5)return true;if(version[0]!=0||version[1]>10)return false;return true}Module["isVersionSupported"]=isVersionSupported;var moduleOverrides=objAssign({},Module);var arguments_=[];var thisProgram="./this.program";var quit_=(status,toThrow)=>{throw toThrow};var ENVIRONMENT_IS_WEB=typeof window==="object";var ENVIRONMENT_IS_WORKER=typeof importScripts==="function";var ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof process.versions==="object"&&typeof process.versions.node==="string";var scriptDirectory="";function locateFile(path){if(Module["locateFile"]){return Module["locateFile"](path,scriptDirectory)}return scriptDirectory+path}var read_,readAsync,readBinary,setWindowTitle;function logExceptionOnExit(e){if(e instanceof ExitStatus)return;let toLog=e;err("exiting due to exception: "+toLog)}var fs;var nodePath;var requireNodeFS;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require("path").dirname(scriptDirectory)+"/"}else{scriptDirectory=__dirname+"/"}requireNodeFS=(()=>{if(!nodePath){fs=require("fs");nodePath=require("path")}});read_=function shell_read(filename,binary){var ret=tryParseAsDataURI(filename);if(ret){return binary?ret:ret.toString()}requireNodeFS();filename=nodePath["normalize"](filename);return fs.readFileSync(filename,binary?null:"utf8")};readBinary=(filename=>{var ret=read_(filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}return ret});readAsync=((filename,onload,onerror)=>{var ret=tryParseAsDataURI(filename);if(ret){onload(ret)}requireNodeFS();filename=nodePath["normalize"](filename);fs.readFile(filename,function(err,data){if(err)onerror(err);else onload(data.buffer)})});if(process["argv"].length>1){thisProgram=process["argv"][1].replace(/\\/g,"/")}arguments_=process["argv"].slice(2);quit_=((status,toThrow)=>{if(keepRuntimeAlive()){process["exitCode"]=status;throw toThrow}logExceptionOnExit(toThrow);process["exit"](status)});Module["inspect"]=function(){return"[Emscripten Module object]"}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){if(ENVIRONMENT_IS_WORKER){scriptDirectory=self.location.href}else if(typeof document!=="undefined"&&document.currentScript){scriptDirectory=document.currentScript.src}if(_scriptDir){scriptDirectory=_scriptDir}if(scriptDirectory.indexOf("blob:")!==0){scriptDirectory=scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1)}else{scriptDirectory=""}{read_=(url=>{try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText}catch(err){var data=tryParseAsDataURI(url);if(data){return intArrayToString(data)}throw err}});if(ENVIRONMENT_IS_WORKER){readBinary=(url=>{try{var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}catch(err){var data=tryParseAsDataURI(url);if(data){return data}throw err}})}readAsync=((url,onload,onerror)=>{var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=(()=>{if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response);return}var data=tryParseAsDataURI(url);if(data){onload(data.buffer);return}onerror()});xhr.onerror=onerror;xhr.send(null)})}setWindowTitle=(title=>document.title=title)}else{}var out=Module["print"]||console.log.bind(console);var err=Module["printErr"]||console.warn.bind(console);objAssign(Module,moduleOverrides);moduleOverrides=null;if(Module["arguments"])arguments_=Module["arguments"];if(Module["thisProgram"])thisProgram=Module["thisProgram"];if(Module["quit"])quit_=Module["quit"];var wasmBinary;if(Module["wasmBinary"])wasmBinary=Module["wasmBinary"];var noExitRuntime=Module["noExitRuntime"]||true;var WebAssembly={Memory:function(opts){this.buffer=new ArrayBuffer(opts["initial"]*65536)},Module:function(binary){},Instance:function(module,info){this.exports=(
// EMSCRIPTEN_START_ASM
function instantiate(la){function c(d){d.set=function(a,b){this[a]=b};d.get=function(a){return this[a]};return d}var e;var f=new Uint8Array(123);for(var a=25;a>=0;--a){f[48+a]=52+a;f[65+a]=a;f[97+a]=26+a}f[43]=62;f[47]=63;function l(m,n,o){var g,h,a=0,i=n,j=o.length,k=n+(j*3>>2)-(o[j-2]=="=")-(o[j-1]=="=");for(;a<j;a+=4){g=f[o.charCodeAt(a+1)];h=f[o.charCodeAt(a+2)];m[i++]=f[o.charCodeAt(a)]<<2|g>>4;if(i<k)m[i++]=g<<4|h>>2;if(i<k)m[i++]=h<<6|f[o.charCodeAt(a+3)]}}function p(q){l(e,1028,"YAQAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAE41ZHJhY28yOEF0dHJpYnV0ZU9jdGFoZWRyb25UcmFuc2Zvcm1FAACYKwAAOAQAAPwGAAAAAAAA0AQAAA4AAAAPAAAAEAAAABEAAAASAAAAEwAAABQAAAAVAAAAFgAAAAoAAAAXAAAAGAAAAE41ZHJhY28zMEF0dHJpYnV0ZVF1YW50aXphdGlvblRyYW5zZm9ybUUAAAAAmCsAAKQEAAD8BgAAX19uZXh0X3ByaW1lIG92ZXJmbG93AHZlY3RvcgBzdGQ6OmV4Y2VwdGlvbgBza2lwX2F0dHJpYnV0ZV90cmFuc2Zvcm0AYmFzaWNfc3RyaW5nAGFsbG9jYXRvcjxUPjo6YWxsb2NhdGUoc2l6ZV90IG4pICduJyBleGNlZWRzIG1heGltdW0gc3VwcG9ydGVkIHNpemUARFJBQ08AVXNpbmcgaW5jb21wYXRpYmxlIGRlY29kZXIgZm9yIHRoZSBpbnB1dCBnZW9tZXRyeS4ARmFpbGVkIHRvIGRlY29kZSBwb2ludCBhdHRyaWJ1dGVzLgBGYWlsZWQgdG8gaW5pdGlhbGl6ZSB0aGUgZGVjb2Rlci4AVW5zdXBwb3J0ZWQgbWlub3IgdmVyc2lvbi4AVW5zdXBwb3J0ZWQgbWFqb3IgdmVyc2lvbi4ASW5wdXQgaXMgbm90IGEgbWVzaC4AVW5zdXBwb3J0ZWQgZ2VvbWV0cnkgdHlwZS4ATm90IGEgRHJhY28gZmlsZS4AVW5zdXBwb3J0ZWQgZW5jb2RpbmcgbWV0aG9kLgBGYWlsZWQgdG8gZGVjb2RlIG1ldGFkYXRhLgBGYWlsZWQgdG8gZGVjb2RlIGdlb21ldHJ5IGRhdGEuAFB1cmUgdmlydHVhbCBmdW5jdGlvbiBjYWxsZWQhAE41ZHJhY28xOEF0dHJpYnV0ZVRyYW5zZm9ybUUAAHArAADeBgAAAAAAAIgHAAAZAAAAGgAAABsAAAAcAAAAHQAAAB4AAAAfAAAAIAAAACEAAAAiAAAAIwAAACQAAABONWRyYWNvMTdBdHRyaWJ1dGVzRGVjb2RlckUATjVkcmFjbzI2QXR0cmlidXRlc0RlY29kZXJJbnRlcmZhY2VFAAAAAHArAABYBwAAmCsAADwHAACABwAAAAAAAOgHAAAlAAAAJgAAACcAAAAoAAAAKQAAACoAAAArAAAALAAAAC0AAABONWRyYWNvMjZTZXF1ZW50aWFsQXR0cmlidXRlRGVjb2RlckUAAAAAcCsAAMAHAAD/////AAAAAGAIAAAuAAAALwAAABsAAAAwAAAAMQAAAB4AAAAfAAAAIAAAADIAAAAzAAAANAAAADUAAAA2AAAATjVkcmFjbzM3U2VxdWVudGlhbEF0dHJpYnV0ZURlY29kZXJzQ29udHJvbGxlckUAmCsAADAIAACIBwAAAAAAANQIAAA3AAAAOAAAADkAAAAoAAAAKQAAACoAAAA6AAAALAAAADsAAAA8AAAAPQAAAD4AAAA/AAAATjVkcmFjbzMzU2VxdWVudGlhbEludGVnZXJBdHRyaWJ1dGVEZWNvZGVyRQCYKwAAqAgAAOgHAAAAAAAAYAsAAEAAAABBAAAAQgAAAEMAAABEAAAARQAAAEYAAABHAAAASAAAAEkAAABKAAAASwAAAE41ZHJhY280ME1lc2hQcmVkaWN0aW9uU2NoZW1lUGFyYWxsZWxvZ3JhbURlY29kZXJJaU5TXzM3UHJlZGljdGlvblNjaGVtZVdyYXBEZWNvZGluZ1RyYW5zZm9ybUlpaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMjRNZXNoQXR0cmlidXRlQ29ybmVyVGFibGVFRUVFRQBONWRyYWNvMjdNZXNoUHJlZGljdGlvblNjaGVtZURlY29kZXJJaU5TXzM3UHJlZGljdGlvblNjaGVtZVdyYXBEZWNvZGluZ1RyYW5zZm9ybUlpaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMjRNZXNoQXR0cmlidXRlQ29ybmVyVGFibGVFRUVFRQBONWRyYWNvMjNQcmVkaWN0aW9uU2NoZW1lRGVjb2RlcklpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVFRQBONWRyYWNvMzdQcmVkaWN0aW9uU2NoZW1lVHlwZWREZWNvZGVySW50ZXJmYWNlSWlpRUUATjVkcmFjbzMyUHJlZGljdGlvblNjaGVtZURlY29kZXJJbnRlcmZhY2VFAE41ZHJhY28yNVByZWRpY3Rpb25TY2hlbWVJbnRlcmZhY2VFAHArAAAECwAAmCsAANkKAAAoCwAAmCsAAKUKAAAwCwAAmCsAAFEKAAA8CwAAmCsAALsJAABICwAAmCsAABgJAABUCwAAAAAAAFQLAABAAAAATAAAACIAAABDAAAAIgAAAEUAAABGAAAARwAAAEgAAABJAAAASgAAACIAAAAAAAAASAsAAEAAAABNAAAAIgAAAEMAAAAiAAAARQAAAEYAAABHAAAASAAAAEkAAABKAAAAIgAAAAAAAADIDAAATgAAAE8AAABQAAAAQwAAAFEAAABFAAAARgAAAEcAAABIAAAASQAAAFIAAABTAAAATjVkcmFjbzU2TWVzaFByZWRpY3Rpb25TY2hlbWVDb25zdHJhaW5lZE11bHRpUGFyYWxsZWxvZ3JhbURlY29kZXJJaU5TXzM3UHJlZGljdGlvblNjaGVtZVdyYXBEZWNvZGluZ1RyYW5zZm9ybUlpaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMjRNZXNoQXR0cmlidXRlQ29ybmVyVGFibGVFRUVFRQAAmCsAABQMAABUCwAAAAAAALQNAABUAAAAVQAAAFYAAABDAAAAVwAAAFgAAABZAAAAWgAAAEgAAABJAAAAWwAAAFwAAABONWRyYWNvNDRNZXNoUHJlZGljdGlvblNjaGVtZVRleENvb3Jkc1BvcnRhYmxlRGVjb2RlcklpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVFRUVFAACYKwAADA0AAFQLAAAAAAAAoA4AAF0AAABeAAAAXwAAAEMAAABgAAAAYQAAAGIAAABjAAAASAAAAEkAAABkAAAAZQAAAE41ZHJhY280Mk1lc2hQcmVkaWN0aW9uU2NoZW1lR2VvbWV0cmljTm9ybWFsRGVjb2RlcklpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVFRUVFAAAAAJgrAAD4DQAAVAsAAAAAAAAoEAAAZgAAAGcAAABoAAAAaQAAAGoAAABONWRyYWNvNDhNZXNoUHJlZGljdGlvblNjaGVtZUdlb21ldHJpY05vcm1hbFByZWRpY3RvckFyZWFJaU5TXzM3UHJlZGljdGlvblNjaGVtZVdyYXBEZWNvZGluZ1RyYW5zZm9ybUlpaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMjRNZXNoQXR0cmlidXRlQ29ybmVyVGFibGVFRUVFRQBONWRyYWNvNDhNZXNoUHJlZGljdGlvblNjaGVtZUdlb21ldHJpY05vcm1hbFByZWRpY3RvckJhc2VJaU5TXzM3UHJlZGljdGlvblNjaGVtZVdyYXBEZWNvZGluZ1RyYW5zZm9ybUlpaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMjRNZXNoQXR0cmlidXRlQ29ybmVyVGFibGVFRUVFRQAAAHArAABzDwAAmCsAAMgOAAAgEAAAAAAAACAQAABmAAAAawAAACIAAABpAAAAIgAAAAAAAAC0EQAAQAAAAGwAAABtAAAAQwAAAG4AAABFAAAARgAAAEcAAABIAAAASQAAAEoAAABvAAAATjVkcmFjbzQwTWVzaFByZWRpY3Rpb25TY2hlbWVQYXJhbGxlbG9ncmFtRGVjb2RlcklpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18xMUNvcm5lclRhYmxlRUVFRUUATjVkcmFjbzI3TWVzaFByZWRpY3Rpb25TY2hlbWVEZWNvZGVySWlOU18zN1ByZWRpY3Rpb25TY2hlbWVXcmFwRGVjb2RpbmdUcmFuc2Zvcm1JaWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzExQ29ybmVyVGFibGVFRUVFRQAAmCsAAB4RAABICwAAmCsAAIgQAACoEQAAAAAAAKgRAABAAAAAcAAAACIAAABDAAAAIgAAAEUAAABGAAAARwAAAEgAAABJAAAASgAAACIAAAAAAAAA2BIAAHEAAAByAAAAcwAAAEMAAAB0AAAARQAAAEYAAABHAAAASAAAAEkAAAB1AAAAdgAAAE41ZHJhY281Nk1lc2hQcmVkaWN0aW9uU2NoZW1lQ29uc3RyYWluZWRNdWx0aVBhcmFsbGVsb2dyYW1EZWNvZGVySWlOU18zN1ByZWRpY3Rpb25TY2hlbWVXcmFwRGVjb2RpbmdUcmFuc2Zvcm1JaWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzExQ29ybmVyVGFibGVFRUVFRQAAAJgrAAAwEgAAqBEAAAAAAAC4EwAAdwAAAHgAAAB5AAAAQwAAAHoAAAB7AAAAfAAAAH0AAABIAAAASQAAAH4AAAB/AAAATjVkcmFjbzQ0TWVzaFByZWRpY3Rpb25TY2hlbWVUZXhDb29yZHNQb3J0YWJsZURlY29kZXJJaU5TXzM3UHJlZGljdGlvblNjaGVtZVdyYXBEZWNvZGluZ1RyYW5zZm9ybUlpaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMTFDb3JuZXJUYWJsZUVFRUVFAAAAmCsAABwTAACoEQAAAAAAAJQUAACAAAAAgQAAAIIAAABDAAAAgwAAAIQAAACFAAAAhgAAAEgAAABJAAAAhwAAAIgAAABONWRyYWNvNDJNZXNoUHJlZGljdGlvblNjaGVtZUdlb21ldHJpY05vcm1hbERlY29kZXJJaU5TXzM3UHJlZGljdGlvblNjaGVtZVdyYXBEZWNvZGluZ1RyYW5zZm9ybUlpaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMTFDb3JuZXJUYWJsZUVFRUVFAJgrAAD8EwAAqBEAAAAAAAAAFgAAiQAAAIoAAACLAAAAjAAAAI0AAABONWRyYWNvNDhNZXNoUHJlZGljdGlvblNjaGVtZUdlb21ldHJpY05vcm1hbFByZWRpY3RvckFyZWFJaU5TXzM3UHJlZGljdGlvblNjaGVtZVdyYXBEZWNvZGluZ1RyYW5zZm9ybUlpaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMTFDb3JuZXJUYWJsZUVFRUVFAE41ZHJhY280OE1lc2hQcmVkaWN0aW9uU2NoZW1lR2VvbWV0cmljTm9ybWFsUHJlZGljdG9yQmFzZUlpTlNfMzdQcmVkaWN0aW9uU2NoZW1lV3JhcERlY29kaW5nVHJhbnNmb3JtSWlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18xMUNvcm5lclRhYmxlRUVFRUUAcCsAAFoVAACYKwAAvBQAAPgVAAAAAAAA+BUAAIkAAACOAAAAIgAAAIwAAAAiAAAAAAAAALwWAABAAAAAjwAAAJAAAABDAAAAkQAAAEUAAABGAAAARwAAAEgAAABJAAAASgAAAJIAAABONWRyYWNvMjhQcmVkaWN0aW9uU2NoZW1lRGVsdGFEZWNvZGVySWlOU18zN1ByZWRpY3Rpb25TY2hlbWVXcmFwRGVjb2RpbmdUcmFuc2Zvcm1JaWlFRUVFAAAAAJgrAABgFgAASAsAAAAAAAAwFwAAkwAAAJQAAACVAAAAKAAAACkAAACWAAAAOgAAACwAAAA7AAAAlwAAAJgAAACZAAAAmgAAAE41ZHJhY28zMlNlcXVlbnRpYWxOb3JtYWxBdHRyaWJ1dGVEZWNvZGVyRQAAmCsAAAQXAADUCAAAAAAAAGQZAACbAAAAnAAAAJ0AAACeAAAAnwAAAKAAAAChAAAAogAAAKMAAACkAAAApQAAAKYAAABONWRyYWNvNDJNZXNoUHJlZGljdGlvblNjaGVtZUdlb21ldHJpY05vcm1hbERlY29kZXJJaU5TXzYyUHJlZGljdGlvblNjaGVtZU5vcm1hbE9jdGFoZWRyb25DYW5vbmljYWxpemVkRGVjb2RpbmdUcmFuc2Zvcm1JaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMjRNZXNoQXR0cmlidXRlQ29ybmVyVGFibGVFRUVFRQBONWRyYWNvMjdNZXNoUHJlZGljdGlvblNjaGVtZURlY29kZXJJaU5TXzYyUHJlZGljdGlvblNjaGVtZU5vcm1hbE9jdGFoZWRyb25DYW5vbmljYWxpemVkRGVjb2RpbmdUcmFuc2Zvcm1JaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMjRNZXNoQXR0cmlidXRlQ29ybmVyVGFibGVFRUVFRQBONWRyYWNvMjNQcmVkaWN0aW9uU2NoZW1lRGVjb2RlcklpTlNfNjJQcmVkaWN0aW9uU2NoZW1lTm9ybWFsT2N0YWhlZHJvbkNhbm9uaWNhbGl6ZWREZWNvZGluZ1RyYW5zZm9ybUlpRUVFRQAAmCsAAN8YAAA8CwAAmCsAADEYAABMGQAAmCsAAHQXAABYGQAAAAAAABwbAACnAAAAqAAAAKkAAACqAAAAqwAAAE41ZHJhY280OE1lc2hQcmVkaWN0aW9uU2NoZW1lR2VvbWV0cmljTm9ybWFsUHJlZGljdG9yQXJlYUlpTlNfNjJQcmVkaWN0aW9uU2NoZW1lTm9ybWFsT2N0YWhlZHJvbkNhbm9uaWNhbGl6ZWREZWNvZGluZ1RyYW5zZm9ybUlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVFRUVFAE41ZHJhY280OE1lc2hQcmVkaWN0aW9uU2NoZW1lR2VvbWV0cmljTm9ybWFsUHJlZGljdG9yQmFzZUlpTlNfNjJQcmVkaWN0aW9uU2NoZW1lTm9ybWFsT2N0YWhlZHJvbkNhbm9uaWNhbGl6ZWREZWNvZGluZ1RyYW5zZm9ybUlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVFRUVFAAAAcCsAAE8aAACYKwAAjBkAABQbAAAAAAAAwBwAAKwAAACtAAAArgAAAJ4AAACvAAAAsAAAALEAAACyAAAAowAAAKQAAACzAAAAtAAAAE41ZHJhY280Mk1lc2hQcmVkaWN0aW9uU2NoZW1lR2VvbWV0cmljTm9ybWFsRGVjb2RlcklpTlNfNjJQcmVkaWN0aW9uU2NoZW1lTm9ybWFsT2N0YWhlZHJvbkNhbm9uaWNhbGl6ZWREZWNvZGluZ1RyYW5zZm9ybUlpRUVOU18yNE1lc2hQcmVkaWN0aW9uU2NoZW1lRGF0YUlOU18xMUNvcm5lclRhYmxlRUVFRUUATjVkcmFjbzI3TWVzaFByZWRpY3Rpb25TY2hlbWVEZWNvZGVySWlOU182MlByZWRpY3Rpb25TY2hlbWVOb3JtYWxPY3RhaGVkcm9uQ2Fub25pY2FsaXplZERlY29kaW5nVHJhbnNmb3JtSWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzExQ29ybmVyVGFibGVFRUVFRQAAAACYKwAAEBwAAEwZAACYKwAAYBsAALQcAAAAAAAAXB4AALUAAAC2AAAAtwAAALgAAAC5AAAATjVkcmFjbzQ4TWVzaFByZWRpY3Rpb25TY2hlbWVHZW9tZXRyaWNOb3JtYWxQcmVkaWN0b3JBcmVhSWlOU182MlByZWRpY3Rpb25TY2hlbWVOb3JtYWxPY3RhaGVkcm9uQ2Fub25pY2FsaXplZERlY29kaW5nVHJhbnNmb3JtSWlFRU5TXzI0TWVzaFByZWRpY3Rpb25TY2hlbWVEYXRhSU5TXzExQ29ybmVyVGFibGVFRUVFRQBONWRyYWNvNDhNZXNoUHJlZGljdGlvblNjaGVtZUdlb21ldHJpY05vcm1hbFByZWRpY3RvckJhc2VJaU5TXzYyUHJlZGljdGlvblNjaGVtZU5vcm1hbE9jdGFoZWRyb25DYW5vbmljYWxpemVkRGVjb2RpbmdUcmFuc2Zvcm1JaUVFTlNfMjRNZXNoUHJlZGljdGlvblNjaGVtZURhdGFJTlNfMTFDb3JuZXJUYWJsZUVFRUVFAHArAACeHQAAmCsAAOgcAABUHgAAAAAAABQfAAC6AAAAuwAAALwAAACeAAAAvQAAAL4AAAC/AAAAwAAAAKMAAACkAAAAwQAAAMIAAABONWRyYWNvMjhQcmVkaWN0aW9uU2NoZW1lRGVsdGFEZWNvZGVySWlOU182MlByZWRpY3Rpb25TY2hlbWVOb3JtYWxPY3RhaGVkcm9uQ2Fub25pY2FsaXplZERlY29kaW5nVHJhbnNmb3JtSWlFRUVFAAAAAJgrAACgHgAATBkAAAAAAACYHwAAwwAAAMQAAADFAAAAKAAAACkAAADGAAAAOgAAACwAAAA7AAAAxwAAAD0AAAA+AAAAyAAAAMkAAADKAAAATjVkcmFjbzM4U2VxdWVudGlhbFF1YW50aXphdGlvbkF0dHJpYnV0ZURlY29kZXJFAAAAAJgrAABkHwAA1AgAAAAAAAD4HwAAywAAAMwAAADNAAAAzgAAACIAAADPAAAA0AAAANEAAADSAAAA0wAAANQAAADVAAAAIgAAAE41ZHJhY28xMU1lc2hEZWNvZGVyRQAAAJgrAADgHwAAvCcAAAAAAABkIAAA1gAAANcAAADNAAAA2AAAANkAAADPAAAA0AAAANEAAADaAAAA2wAAANwAAADdAAAA3gAAAE41ZHJhY28yMk1lc2hFZGdlYnJlYWtlckRlY29kZXJFAAAAAJgrAABAIAAA+B8AAAAAAABYIQAA3wAAAOAAAADhAAAA4gAAAOMAAADkAAAA5QAAAOYAAADnAAAA6AAAAP////8AAAAAuCEAAOkAAADqAAAA6wAAAOwAAADtAAAA7gAAAO8AAADwAAAA8QAAAPIAAABONWRyYWNvMjZNZXNoRWRnZWJyZWFrZXJEZWNvZGVySW1wbElOU18zMU1lc2hFZGdlYnJlYWtlclRyYXZlcnNhbERlY29kZXJFRUUATjVkcmFjbzM1TWVzaEVkZ2VicmVha2VyRGVjb2RlckltcGxJbnRlcmZhY2VFAAAAcCsAACAhAACYKwAA1CAAAFAhAABONWRyYWNvMjZNZXNoRWRnZWJyZWFrZXJEZWNvZGVySW1wbElOU18zOE1lc2hFZGdlYnJlYWtlclRyYXZlcnNhbFZhbGVuY2VEZWNvZGVyRUVFAACYKwAAZCEAAFAhAAAAAAAAtCIAAPMAAAD0AAAA9QAAAE41ZHJhY28xOURlcHRoRmlyc3RUcmF2ZXJzZXJJTlNfMjRNZXNoQXR0cmlidXRlQ29ybmVyVGFibGVFTlNfMzZNZXNoQXR0cmlidXRlSW5kaWNlc0VuY29kaW5nT2JzZXJ2ZXJJUzFfRUVFRQBONWRyYWNvMTNUcmF2ZXJzZXJCYXNlSU5TXzI0TWVzaEF0dHJpYnV0ZUNvcm5lclRhYmxlRU5TXzM2TWVzaEF0dHJpYnV0ZUluZGljZXNFbmNvZGluZ09ic2VydmVySVMxX0VFRUUAcCsAAEUiAACYKwAA2CEAAKwiAAAAAAAArCIAAPYAAAD3AAAA9Q==");l(e,8932,"AQAAAAMAAAAFAAAABwAAAAAAAAC4IwAA+AAAAPkAAAD6AAAA+wAAAE41ZHJhY28yMk1lc2hUcmF2ZXJzYWxTZXF1ZW5jZXJJTlNfMjhNYXhQcmVkaWN0aW9uRGVncmVlVHJhdmVyc2VySU5TXzExQ29ybmVyVGFibGVFTlNfMzZNZXNoQXR0cmlidXRlSW5kaWNlc0VuY29kaW5nT2JzZXJ2ZXJJUzJfRUVFRUVFAE41ZHJhY28xNVBvaW50c1NlcXVlbmNlckUAAAAAcCsAAJMjAACYKwAADCMAALAjAAD/////AAAAAKgkAAD8AAAA/QAAAP4AAABONWRyYWNvMjhNYXhQcmVkaWN0aW9uRGVncmVlVHJhdmVyc2VySU5TXzExQ29ybmVyVGFibGVFTlNfMzZNZXNoQXR0cmlidXRlSW5kaWNlc0VuY29kaW5nT2JzZXJ2ZXJJUzFfRUVFRQBONWRyYWNvMTNUcmF2ZXJzZXJCYXNlSU5TXzExQ29ybmVyVGFibGVFTlNfMzZNZXNoQXR0cmlidXRlSW5kaWNlc0VuY29kaW5nT2JzZXJ2ZXJJUzFfRUVFRQAAcCsAAEUkAACYKwAA3CMAAKAkAAAAAAAAoCQAAP8AAAAAAQAA/gAAAAAAAABgJQAAAQEAAAIBAAADAQAABAEAAE41ZHJhY28yMk1lc2hUcmF2ZXJzYWxTZXF1ZW5jZXJJTlNfMTlEZXB0aEZpcnN0VHJhdmVyc2VySU5TXzExQ29ybmVyVGFibGVFTlNfMzZNZXNoQXR0cmlidXRlSW5kaWNlc0VuY29kaW5nT2JzZXJ2ZXJJUzJfRUVFRUVFAAAAmCsAAOAkAACwIwAAAAAAAOAlAAAFAQAABgEAAP4AAABONWRyYWNvMTlEZXB0aEZpcnN0VHJhdmVyc2VySU5TXzExQ29ybmVyVGFibGVFTlNfMzZNZXNoQXR0cmlidXRlSW5kaWNlc0VuY29kaW5nT2JzZXJ2ZXJJUzFfRUVFRQCYKwAAgCUAAKAkAAAAAAAAkCYAAAcBAAAIAQAACQEAAAoBAABONWRyYWNvMjJNZXNoVHJhdmVyc2FsU2VxdWVuY2VySU5TXzE5RGVwdGhGaXJzdFRyYXZlcnNlcklOU18yNE1lc2hBdHRyaWJ1dGVDb3JuZXJUYWJsZUVOU18zNk1lc2hBdHRyaWJ1dGVJbmRpY2VzRW5jb2RpbmdPYnNlcnZlcklTMl9FRUVFRUUAAJgrAAAEJgAAsCM=");l(e,9892,"/CYAAMsAAAALAQAAzQAAAM4AAAAMAQAAzwAAANAAAADRAAAA0gAAANMAAADUAAAA1QAAAA0BAABONWRyYWNvMjFNZXNoU2VxdWVudGlhbERlY29kZXJFAJgrAADcJgAA+B8AAAAAAAA8JwAADgEAAA8BAAAQAQAAEQEAAE41ZHJhY28xNUxpbmVhclNlcXVlbmNlckUAAACYKwAAICcAALAjAAAAAAAAvCcAAMsAAAASAQAAEwEAAM4AAAAiAAAAFAEAANAAAADRAAAA0g==");l(e,10112,"RmFpbGVkIHRvIHBhcnNlIERyYWNvIGhlYWRlci4ATjVkcmFjbzE3UG9pbnRDbG91ZERlY29kZXJFAAAAcCsAAJ4nAAABAAAAAQAAAAIAAAACAAAABAAAAAQAAAAIAAAACAAAAAQAAAAIAAAAAQ==");l(e,10243,"wAAAAMAAAADAAAAAwP//////////AAAAAEAoAAAVAQAAFgEAABcBAAAYAQAATjVkcmFjbzRNZXNoRQAAAJgrAAAwKAAAhCgAAP////8AAAAAAAAAAIQoAAAZAQAAGgEAABsBAAAcAQAATjVkcmFjbzEwUG9pbnRDbG91ZEUAAAAAcCsAAGwo");l(e,10388,"AgAAAAMAAAAFAAAABwAAAAsAAAANAAAAEQAAABMAAAAXAAAAHQAAAB8AAAAlAAAAKQAAACsAAAAvAAAANQAAADsAAAA9AAAAQwAAAEcAAABJAAAATwAAAFMAAABZAAAAYQAAAGUAAABnAAAAawAAAG0AAABxAAAAfwAAAIMAAACJAAAAiwAAAJUAAACXAAAAnQAAAKMAAACnAAAArQAAALMAAAC1AAAAvwAAAMEAAADFAAAAxwAAANMAAAABAAAACwAAAA0AAAARAAAAEwAAABcAAAAdAAAAHwAAACUAAAApAAAAKwAAAC8AAAA1AAAAOwAAAD0AAABDAAAARwAAAEkAAABPAAAAUwAAAFkAAABhAAAAZQAAAGcAAABrAAAAbQAAAHEAAAB5AAAAfwAAAIMAAACJAAAAiwAAAI8AAACVAAAAlwAAAJ0AAACjAAAApwAAAKkAAACtAAAAswAAALUAAAC7AAAAvwAAAMEAAADFAAAAxwAAANEAAAAwMDAxMDIwMzA0MDUwNjA3MDgwOTEwMTExMjEzMTQxNTE2MTcxODE5MjAyMTIyMjMyNDI1MjYyNzI4MjkzMDMxMzIzMzM0MzUzNjM3MzgzOTQwNDE0MjQzNDQ0NTQ2NDc0ODQ5NTA1MTUyNTM1NDU1NTY1NzU4NTk2MDYxNjI2MzY0NjU2NjY3Njg2OTcwNzE3MjczNzQ3NTc2Nzc3ODc5ODA4MTgyODM4NDg1ODY4Nzg4ODk5MDkxOTI5Mzk0OTU5Njk3OTg5OQ==");l(e,10980,"CgAAAGQAAADoAwAAECcAAKCGAQBAQg8AgJaYAADh9QUAypo7TjEwX19jeHhhYml2MTE2X19zaGltX3R5cGVfaW5mb0UAAAAAmCsAAAgrAACMLAAATjEwX19jeHhhYml2MTE3X19jbGFzc190eXBlX2luZm9FAAAAmCsAADgrAAAsKwAAAAAAAFwrAAAdAQAAHgEAAB8BAAAgAQAAIQEAACIBAAAjAQAAJAEAAAAAAADgKwAAHQEAACUBAAAfAQAAIAEAACEBAAAmAQAAJwEAACgBAABOMTBfX2N4eGFiaXYxMjBfX3NpX2NsYXNzX3R5cGVfaW5mb0UAAAAAmCsAALgrAABcKwAAAAAAABAsAAApAQAAKgEAACsBAABTdDlleGNlcHRpb24AAAAAcCsAAAAsAAAAAAAAPCwAAA0AAAAsAQAALQEAAFN0MTFsb2dpY19lcnJvcgCYKwAALCwAABAsAAAAAAAAcCwAAA0AAAAuAQAALQEAAFN0MTJsZW5ndGhfZXJyb3IAAAAAmCsAAFwsAAA8LAAAU3Q5dHlwZV9pbmZvAAAAAHArAAB8LA==");l(e,11413,"L1A=")}var r=new ArrayBuffer(16);var s=new Int32Array(r);var t=new Float32Array(r);var u=new Float64Array(r);function v(w){t[2]=w}function x(y){return s[y]}function ja(ka){var z=ka.a;var A=z.buffer;z.grow=ha;var B=new Int8Array(A);var C=new Int16Array(A);var D=new Int32Array(A);var E=new Uint8Array(A);var F=new Uint16Array(A);var G=new Uint32Array(A);var H=new Float32Array(A);var I=new Float64Array(A);var J=Math.imul;var K=Math.fround;var L=Math.abs;var M=Math.clz32;var N=Math.min;var O=Math.max;var P=Math.floor;var Q=Math.ceil;var R=Math.trunc;var S=Math.sqrt;var T=ka.abort;var U=NaN;var V=Infinity;var W=ka.b;var X=ka.c;var Y=ka.d;var Z=ka.e;var _=ka.f;var $=5254912;var aa=0;
// EMSCRIPTEN_START_FUNCS
function kc(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0;if(!a){return 1}e=D[c+20>>2];n=D[c+12>>2];f=D[c+16>>2];a:{if((e|0)>=(n|0)&f>>>0>=G[c+8>>2]|(e|0)>(n|0)){break a}n=E[f+D[c>>2]|0];f=f+1|0;e=f?e:e+1|0;D[c+16>>2]=f;D[c+20>>2]=e;b:{switch(n|0){case 0:f=a;l=b;n=d;a=0;d=0;g=$+-64|0;$=g;D[g+56>>2]=0;D[g+48>>2]=0;D[g+52>>2]=0;D[g+40>>2]=0;D[g+44>>2]=0;D[g+32>>2]=0;D[g+36>>2]=0;D[g+24>>2]=0;D[g+28>>2]=0;D[g+16>>2]=0;D[g+20>>2]=0;D[g+8>>2]=0;D[g+12>>2]=0;c:{if(!Jd(g+8|0,c)){break c}if(!Id(g+8|0,c)|(D[g+20>>2]?0:f)){break c}ec(c,0,0);if(f){o=l<<2;p=D[g+36>>2];r=D[g+48>>2];s=D[g+24>>2];while(1){k=D[g+56>>2];d:{if(k>>>0>16383){break d}a=D[g+52>>2];while(1){if((a|0)<=0){break d}a=a-1|0;D[g+52>>2]=a;k=E[a+r|0]|k<<8;D[g+56>>2]=k;if(k>>>0<16384){continue}break}}a=k&4095;i=D[(a<<2)+s>>2];b=p+(i<<3)|0;D[g+56>>2]=(J(D[b>>2],k>>>12|0)+a|0)-D[b+4>>2];e:{if((l|0)<=0){break e}a=0;if(!E[c+36|0]|i>>>0>32){break c}if(i){t=i&-2;x=i&1;u=d+l|0;b=D[c+32>>2];while(1){h=D[c+28>>2];q=D[c+24>>2];k=0;a=b;e=0;m=0;if((i|0)!=1){while(1){j=q+(a>>>3|0)|0;f:{if(j>>>0>=h>>>0){j=0;break f}j=E[j|0];b=a+1|0;D[c+32>>2]=b;j=j>>>(a&7)&1;a=b}j=j<<k|e;e=0;v=q+(a>>>3|0)|0;if(v>>>0<h>>>0){e=E[v|0];b=a+1|0;D[c+32>>2]=b;e=e>>>(a&7)&1;a=b}v=k|1;k=k+2|0;e=j|e<<v;m=m+2|0;if((t|0)!=(m|0)){continue}break}}j=n+(d<<2)|0;if(x){m=h;h=q+(a>>>3|0)|0;if(m>>>0>h>>>0){h=E[h|0];b=a+1|0;D[c+32>>2]=b;a=h>>>(a&7)&1}else{a=0}e=a<<k|e}D[j>>2]=e;d=d+1|0;if((u|0)!=(d|0)){continue}break}d=u;break e}pa(n+(d<<2)|0,0,o);d=d+l|0}w=l+w|0;if(f>>>0>w>>>0){continue}break}}B[c+36|0]=0;b=D[c+20>>2];a=0;d=D[c+32>>2]+7|0;a=d>>>0<7?1:a;e=a>>>3|0;d=a<<29|d>>>3;a=d+D[c+16>>2]|0;e=b+e|0;D[c+16>>2]=a;D[c+20>>2]=a>>>0<d>>>0?e+1|0:e;a=1}b=D[g+36>>2];if(b){D[g+40>>2]=b;ma(b)}b=D[g+24>>2];if(b){D[g+28>>2]=b;ma(b)}b=D[g+8>>2];if(b){D[g+12>>2]=b;ma(b)}$=g- -64|0;return a;case 1:break b;default:break a}}b=0;e=D[c+20>>2];n=D[c+12>>2];f=D[c+16>>2];g:{if((e|0)>=(n|0)&f>>>0>=G[c+8>>2]|(e|0)>(n|0)){break g}n=E[f+D[c>>2]|0];f=f+1|0;e=f?e:e+1|0;D[c+16>>2]=f;D[c+20>>2]=e;h:{switch(n-1|0){case 8:n=a;u=d;f=$+-64|0;$=f;D[f+56>>2]=0;D[f+48>>2]=0;D[f+52>>2]=0;D[f+40>>2]=0;D[f+44>>2]=0;D[f+32>>2]=0;D[f+36>>2]=0;D[f+24>>2]=0;D[f+28>>2]=0;D[f+16>>2]=0;D[f+20>>2]=0;D[f+8>>2]=0;D[f+12>>2]=0;h=f+8|0;i:{j:{if(!F[c+38>>1]){break j}if(!Ua(1,h+12|0,c)){break j}i=D[h+12>>2];b=D[h>>2];a=D[h+4>>2]-b>>2;k:{if(i>>>0>a>>>0){sa(h,i-a|0);i=D[h+12>>2];break k}if(a>>>0<=i>>>0){break k}D[h+4>>2]=b+(i<<2)}d=1;if(!i){break i}p=D[c+8>>2];m=D[c+12>>2];r=D[h>>2];b=0;while(1){e=D[c+20>>2];a=D[c+16>>2];d=0;if((m|0)<=(e|0)&p>>>0<=a>>>0|(e|0)>(m|0)){break i}s=D[c>>2];o=E[s+a|0];a=a+1|0;e=a?e:e+1|0;j=a;D[c+16>>2]=a;d=e;D[c+20>>2]=e;a=o>>>2|0;g=0;l:{m:{n:{o:{t=o&3;switch(t|0){case 0:break m;case 3:break o;default:break n}}a=a+b|0;d=0;if(a>>>0>=i>>>0){break i}pa(r+(b<<2)|0,0,(o&252)+4|0);b=a;break l}while(1){if((d|0)>=(m|0)&j>>>0>=p>>>0|(d|0)>(m|0)){break j}i=E[j+s|0];e=d;d=j+1|0;e=d?e:e+1|0;j=d;d=e;D[c+16>>2]=j;D[c+20>>2]=e;a=i<<(g<<3|6)|a;g=g+1|0;if((t|0)!=(g|0)){continue}break}}D[r+(b<<2)>>2]=a}b=b+1|0;i=D[h+12>>2];if(b>>>0<i>>>0){continue}break}m=h+16|0;o=D[h>>2];b=D[h+16>>2];a=D[h+20>>2]-b|0;p:{if(a>>>0<=32767){sa(m,8192-(a>>>2|0)|0);break p}if((a|0)==32768){break p}D[h+20>>2]=b+32768}a=h+28|0;b=D[a>>2];d=D[h+32>>2]-b>>3;q:{if(d>>>0<i>>>0){db(a,i-d|0);b=D[a>>2];break q}if(d>>>0>i>>>0){D[h+32>>2]=(i<<3)+b}if(!i){break j}}g=0;d=0;while(1){e=o+(g<<2)|0;j=D[e>>2];h=(g<<3)+b|0;a=d;D[h+4>>2]=a;D[h>>2]=j;e=D[e>>2];d=e+a|0;if(d>>>0>8192){break j}r:{if(a>>>0>=d>>>0){break r}h=D[m>>2];j=0;p=e&7;if(p){while(1){D[h+(a<<2)>>2]=g;a=a+1|0;j=j+1|0;if((p|0)!=(j|0)){continue}break}}if(e-1>>>0<=6){break r}while(1){e=h+(a<<2)|0;D[e>>2]=g;D[e+28>>2]=g;D[e+24>>2]=g;D[e+20>>2]=g;D[e+16>>2]=g;D[e+12>>2]=g;D[e+8>>2]=g;D[e+4>>2]=g;a=a+8|0;if((d|0)!=(a|0)){continue}break}}g=g+1|0;if((i|0)!=(g|0)){continue}break}l=(d|0)==8192}d=l}s:{if(!d|(D[f+20>>2]?0:n)){break s}d=0;l=$-16|0;$=l;t:{if(!Ta(1,l+8|0,c)){break t}a=D[c+8>>2];b=D[c+16>>2];e=a-b|0;i=D[l+12>>2];g=i;j=D[c+20>>2];h=D[c+12>>2]-(j+(a>>>0<b>>>0)|0)|0;a=D[l+8>>2];if((g|0)==(h|0)&e>>>0<a>>>0|g>>>0>h>>>0){break t}e=i+j|0;g=a+b|0;e=g>>>0<b>>>0?e+1|0:e;D[c+16>>2]=g;D[c+20>>2]=e;if((a|0)<=0){break t}b=b+D[c>>2]|0;D[f+48>>2]=b;c=a-1|0;e=c+b|0;g=E[e|0];u:{if(g>>>0<=63){D[f+52>>2]=c;a=E[e|0]&63;break u}v:{switch((g>>>6|0)-1|0){case 0:if(a>>>0<2){break t}D[f+52>>2]=a-2;a=(a+b|0)-2|0;a=E[a+1|0]<<8&16128|E[a|0];break u;case 1:if(a>>>0<3){break t}D[f+52>>2]=a-3;a=(a+b|0)-3|0;a=E[a+2|0]<<16&4128768|E[a+1|0]<<8|E[a|0];break u;default:break v}}D[f+52>>2]=a-4;a=(a+b|0)-4|0;a=E[a+2|0]<<16|E[a+3|0]<<24&1056964608|E[a+1|0]<<8|E[a|0]}a=a+32768|0;D[f+56>>2]=a;d=a>>>0<8388608}$=l+16|0;if(!d){break s}if(!n){k=1;break s}b=D[f+36>>2];c=D[f+48>>2];d=D[f+24>>2];a=D[f+56>>2];while(1){w:{if(a>>>0>32767){break w}k=D[f+52>>2];while(1){if((k|0)<=0){break w}k=k-1|0;D[f+52>>2]=k;a=E[c+k|0]|a<<8;D[f+56>>2]=a;if(a>>>0<32768){continue}break}}e=a&8191;k=D[d+(e<<2)>>2];l=b+(k<<3)|0;a=(J(D[l>>2],a>>>13|0)+e|0)-D[l+4>>2]|0;D[f+56>>2]=a;D[u+(q<<2)>>2]=k;k=1;q=q+1|0;if((n|0)!=(q|0)){continue}break}}a=D[f+36>>2];if(a){D[f+40>>2]=a;ma(a)}a=D[f+24>>2];if(a){D[f+28>>2]=a;ma(a)}a=D[f+8>>2];if(a){D[f+12>>2]=a;ma(a)}$=f- -64|0;b=k;break g;case 9:n=a;u=d;f=$+-64|0;$=f;D[f+56>>2]=0;D[f+48>>2]=0;D[f+52>>2]=0;D[f+40>>2]=0;D[f+44>>2]=0;D[f+32>>2]=0;D[f+36>>2]=0;D[f+24>>2]=0;D[f+28>>2]=0;D[f+16>>2]=0;D[f+20>>2]=0;D[f+8>>2]=0;D[f+12>>2]=0;h=f+8|0;x:{y:{if(!F[c+38>>1]){break y}if(!Ua(1,h+12|0,c)){break y}i=D[h+12>>2];b=D[h>>2];a=D[h+4>>2]-b>>2;z:{if(i>>>0>a>>>0){sa(h,i-a|0);i=D[h+12>>2];break z}if(a>>>0<=i>>>0){break z}D[h+4>>2]=b+(i<<2)}d=1;if(!i){break x}p=D[c+8>>2];m=D[c+12>>2];r=D[h>>2];b=0;while(1){e=D[c+20>>2];a=D[c+16>>2];d=0;if((m|0)<=(e|0)&p>>>0<=a>>>0|(e|0)>(m|0)){break x}s=D[c>>2];o=E[s+a|0];a=a+1|0;e=a?e:e+1|0;j=a;d=e;D[c+16>>2]=a;D[c+20>>2]=e;a=o>>>2|0;g=0;A:{B:{C:{D:{t=o&3;switch(t|0){case 0:break B;case 3:break D;default:break C}}a=a+b|0;d=0;if(a>>>0>=i>>>0){break x}pa(r+(b<<2)|0,0,(o&252)+4|0);b=a;break A}while(1){if((d|0)>=(m|0)&j>>>0>=p>>>0|(d|0)>(m|0)){break y}i=E[j+s|0];e=d;d=j+1|0;e=d?e:e+1|0;j=d;D[c+16>>2]=d;d=e;D[c+20>>2]=e;a=i<<(g<<3|6)|a;g=g+1|0;if((t|0)!=(g|0)){continue}break}}D[r+(b<<2)>>2]=a}b=b+1|0;i=D[h+12>>2];if(b>>>0<i>>>0){continue}break}m=h+16|0;o=D[h>>2];b=D[h+16>>2];a=D[h+20>>2]-b|0;E:{if(a>>>0<=131071){sa(m,32768-(a>>>2|0)|0);break E}if((a|0)==131072){break E}D[h+20>>2]=b+131072}a=h+28|0;b=D[a>>2];d=D[h+32>>2]-b>>3;F:{if(d>>>0<i>>>0){db(a,i-d|0);b=D[a>>2];break F}if(d>>>0>i>>>0){D[h+32>>2]=(i<<3)+b}if(!i){break y}}g=0;d=0;while(1){e=o+(g<<2)|0;j=D[e>>2];h=(g<<3)+b|0;a=d;D[h+4>>2]=a;D[h>>2]=j;e=D[e>>2];d=e+a|0;if(d>>>0>32768){break y}G:{if(a>>>0>=d>>>0){break G}h=D[m>>2];j=0;p=e&7;if(p){while(1){D[h+(a<<2)>>2]=g;a=a+1|0;j=j+1|0;if((p|0)!=(j|0)){continue}break}}if(e-1>>>0<=6){break G}while(1){e=h+(a<<2)|0;D[e>>2]=g;D[e+28>>2]=g;D[e+24>>2]=g;D[e+20>>2]=g;D[e+16>>2]=g;D[e+12>>2]=g;D[e+8>>2]=g;D[e+4>>2]=g;a=a+8|0;if((d|0)!=(a|0)){continue}break}}g=g+1|0;if((i|0)!=(g|0)){continue}break}l=(d|0)==32768}d=l}H:{if(!d|(D[f+20>>2]?0:n)){break H}d=0;l=$-16|0;$=l;I:{if(!Ta(1,l+8|0,c)){break I}a=D[c+8>>2];b=D[c+16>>2];e=a-b|0;i=D[l+12>>2];g=i;j=D[c+20>>2];h=D[c+12>>2]-(j+(a>>>0<b>>>0)|0)|0;a=D[l+8>>2];if((g|0)==(h|0)&e>>>0<a>>>0|g>>>0>h>>>0){break I}e=i+j|0;g=a+b|0;e=g>>>0<b>>>0?e+1|0:e;D[c+16>>2]=g;D[c+20>>2]=e;if((a|0)<=0){break I}b=b+D[c>>2]|0;D[f+48>>2]=b;c=a-1|0;e=c+b|0;g=E[e|0];J:{if(g>>>0<=63){D[f+52>>2]=c;a=E[e|0]&63;break J}K:{switch((g>>>6|0)-1|0){case 0:if(a>>>0<2){break I}D[f+52>>2]=a-2;a=(a+b|0)-2|0;a=E[a+1|0]<<8&16128|E[a|0];break J;case 1:if(a>>>0<3){break I}D[f+52>>2]=a-3;a=(a+b|0)-3|0;a=E[a+2|0]<<16&4128768|E[a+1|0]<<8|E[a|0];break J;default:break K}}D[f+52>>2]=a-4;a=(a+b|0)-4|0;a=E[a+2|0]<<16|E[a+3|0]<<24&1056964608|E[a+1|0]<<8|E[a|0]}a=a+131072|0;D[f+56>>2]=a;d=a>>>0<33554432}$=l+16|0;if(!d){break H}if(!n){k=1;break H}b=D[f+36>>2];c=D[f+48>>2];d=D[f+24>>2];a=D[f+56>>2];while(1){L:{if(a>>>0>131071){break L}k=D[f+52>>2];while(1){if((k|0)<=0){break L}k=k-1|0;D[f+52>>2]=k;a=E[c+k|0]|a<<8;D[f+56>>2]=a;if(a>>>0<131072){continue}break}}e=a&32767;k=D[d+(e<<2)>>2];l=b+(k<<3)|0;a=(J(D[l>>2],a>>>15|0)+e|0)-D[l+4>>2]|0;D[f+56>>2]=a;D[u+(q<<2)>>2]=k;k=1;q=q+1|0;if((n|0)!=(q|0)){continue}break}}a=D[f+36>>2];if(a){D[f+40>>2]=a;ma(a)}a=D[f+24>>2];if(a){D[f+28>>2]=a;ma(a)}a=D[f+8>>2];if(a){D[f+12>>2]=a;ma(a)}$=f- -64|0;b=k;break g;case 10:n=a;u=d;f=$+-64|0;$=f;D[f+56>>2]=0;D[f+48>>2]=0;D[f+52>>2]=0;D[f+40>>2]=0;D[f+44>>2]=0;D[f+32>>2]=0;D[f+36>>2]=0;D[f+24>>2]=0;D[f+28>>2]=0;D[f+16>>2]=0;D[f+20>>2]=0;D[f+8>>2]=0;D[f+12>>2]=0;h=f+8|0;M:{N:{if(!F[c+38>>1]){break N}if(!Ua(1,h+12|0,c)){break N}i=D[h+12>>2];b=D[h>>2];a=D[h+4>>2]-b>>2;O:{if(i>>>0>a>>>0){sa(h,i-a|0);i=D[h+12>>2];break O}if(a>>>0<=i>>>0){break O}D[h+4>>2]=b+(i<<2)}d=1;if(!i){break M}p=D[c+8>>2];m=D[c+12>>2];r=D[h>>2];b=0;while(1){e=D[c+20>>2];a=D[c+16>>2];d=0;if((m|0)<=(e|0)&p>>>0<=a>>>0|(e|0)>(m|0)){break M}s=D[c>>2];o=E[s+a|0];a=a+1|0;e=a?e:e+1|0;j=a;D[c+16>>2]=a;d=e;D[c+20>>2]=e;a=o>>>2|0;g=0;P:{Q:{R:{S:{t=o&3;switch(t|0){case 0:break Q;case 3:break S;default:break R}}a=a+b|0;d=0;if(a>>>0>=i>>>0){break M}pa(r+(b<<2)|0,0,(o&252)+4|0);b=a;break P}while(1){if((d|0)>=(m|0)&j>>>0>=p>>>0|(d|0)>(m|0)){break N}i=E[j+s|0];e=d;d=j+1|0;e=d?e:e+1|0;j=d;D[c+16>>2]=d;d=e;D[c+20>>2]=e;a=i<<(g<<3|6)|a;g=g+1|0;if((t|0)!=(g|0)){continue}break}}D[r+(b<<2)>>2]=a}b=b+1|0;i=D[h+12>>2];if(b>>>0<i>>>0){continue}break}m=h+16|0;o=D[h>>2];b=D[h+16>>2];a=D[h+20>>2]-b|0;T:{if(a>>>0<=262143){sa(m,65536-(a>>>2|0)|0);break T}if((a|0)==262144){break T}D[h+20>>2]=b+262144}a=h+28|0;b=D[a>>2];d=D[h+32>>2]-b>>3;U:{if(d>>>0<i>>>0){db(a,i-d|0);b=D[a>>2];break U}if(d>>>0>i>>>0){D[h+32>>2]=(i<<3)+b}if(!i){break N}}g=0;d=0;while(1){e=o+(g<<2)|0;j=D[e>>2];h=(g<<3)+b|0;a=d;D[h+4>>2]=a;D[h>>2]=j;e=D[e>>2];d=e+a|0;if(d>>>0>65536){break N}V:{if(a>>>0>=d>>>0){break V}h=D[m>>2];j=0;p=e&7;if(p){while(1){D[h+(a<<2)>>2]=g;a=a+1|0;j=j+1|0;if((p|0)!=(j|0)){continue}break}}if(e-1>>>0<=6){break V}while(1){e=h+(a<<2)|0;D[e>>2]=g;D[e+28>>2]=g;D[e+24>>2]=g;D[e+20>>2]=g;D[e+16>>2]=g;D[e+12>>2]=g;D[e+8>>2]=g;D[e+4>>2]=g;a=a+8|0;if((d|0)!=(a|0)){continue}break}}g=g+1|0;if((i|0)!=(g|0)){continue}break}l=(d|0)==65536}d=l}W:{if(!d|(D[f+20>>2]?0:n)){break W}d=0;l=$-16|0;$=l;X:{if(!Ta(1,l+8|0,c)){break X}a=D[c+8>>2];b=D[c+16>>2];e=a-b|0;i=D[l+12>>2];g=i;j=D[c+20>>2];h=D[c+12>>2]-(j+(a>>>0<b>>>0)|0)|0;a=D[l+8>>2];if((g|0)==(h|0)&e>>>0<a>>>0|g>>>0>h>>>0){break X}e=i+j|0;g=a+b|0;e=g>>>0<b>>>0?e+1|0:e;D[c+16>>2]=g;D[c+20>>2]=e;if((a|0)<=0){break X}b=b+D[c>>2]|0;D[f+48>>2]=b;c=a-1|0;e=c+b|0;g=E[e|0];Y:{if(g>>>0<=63){D[f+52>>2]=c;a=E[e|0]&63;break Y}Z:{switch((g>>>6|0)-1|0){case 0:if(a>>>0<2){break X}D[f+52>>2]=a-2;a=(a+b|0)-2|0;a=E[a+1|0]<<8&16128|E[a|0];break Y;case 1:if(a>>>0<3){break X}D[f+52>>2]=a-3;a=(a+b|0)-3|0;a=E[a+2|0]<<16&4128768|E[a+1|0]<<8|E[a|0];break Y;default:break Z}}D[f+52>>2]=a-4;a=(a+b|0)-4|0;a=E[a+2|0]<<16|E[a+3|0]<<24&1056964608|E[a+1|0]<<8|E[a|0]}a=a+262144|0;D[f+56>>2]=a;d=a>>>0<67108864}$=l+16|0;if(!d){break W}if(!n){k=1;break W}b=D[f+36>>2];c=D[f+48>>2];d=D[f+24>>2];a=D[f+56>>2];while(1){_:{if(a>>>0>262143){break _}k=D[f+52>>2];while(1){if((k|0)<=0){break _}k=k-1|0;D[f+52>>2]=k;a=E[c+k|0]|a<<8;D[f+56>>2]=a;if(a>>>0<262144){continue}break}}e=a&65535;k=D[d+(e<<2)>>2];l=b+(k<<3)|0;a=(J(D[l>>2],a>>>16|0)+e|0)-D[l+4>>2]|0;D[f+56>>2]=a;D[u+(q<<2)>>2]=k;k=1;q=q+1|0;if((n|0)!=(q|0)){continue}break}}a=D[f+36>>2];if(a){D[f+40>>2]=a;ma(a)}a=D[f+24>>2];if(a){D[f+28>>2]=a;ma(a)}a=D[f+8>>2];if(a){D[f+12>>2]=a;ma(a)}$=f- -64|0;b=k;break g;case 11:n=a;u=d;f=$+-64|0;$=f;D[f+56>>2]=0;D[f+48>>2]=0;D[f+52>>2]=0;D[f+40>>2]=0;D[f+44>>2]=0;D[f+32>>2]=0;D[f+36>>2]=0;D[f+24>>2]=0;D[f+28>>2]=0;D[f+16>>2]=0;D[f+20>>2]=0;D[f+8>>2]=0;D[f+12>>2]=0;h=f+8|0;$:{aa:{if(!F[c+38>>1]){break aa}if(!Ua(1,h+12|0,c)){break aa}i=D[h+12>>2];b=D[h>>2];a=D[h+4>>2]-b>>2;ba:{if(i>>>0>a>>>0){sa(h,i-a|0);i=D[h+12>>2];break ba}if(a>>>0<=i>>>0){break ba}D[h+4>>2]=b+(i<<2)}d=1;if(!i){break $}p=D[c+8>>2];m=D[c+12>>2];r=D[h>>2];b=0;while(1){e=D[c+20>>2];a=D[c+16>>2];d=0;if((m|0)<=(e|0)&p>>>0<=a>>>0|(e|0)>(m|0)){break $}s=D[c>>2];o=E[s+a|0];a=a+1|0;e=a?e:e+1|0;j=a;D[c+16>>2]=a;d=e;D[c+20>>2]=e;a=o>>>2|0;g=0;ca:{da:{ea:{fa:{t=o&3;switch(t|0){case 0:break da;case 3:break fa;default:break ea}}a=a+b|0;d=0;if(a>>>0>=i>>>0){break $}pa(r+(b<<2)|0,0,(o&252)+4|0);b=a;break ca}while(1){if((d|0)>=(m|0)&j>>>0>=p>>>0|(d|0)>(m|0)){break aa}i=E[j+s|0];e=d;d=j+1|0;e=d?e:e+1|0;j=d;D[c+16>>2]=d;d=e;D[c+20>>2]=e;a=i<<(g<<3|6)|a;g=g+1|0;if((t|0)!=(g|0)){continue}break}}D[r+(b<<2)>>2]=a}b=b+1|0;i=D[h+12>>2];if(b>>>0<i>>>0){continue}break}m=h+16|0;o=D[h>>2];b=D[h+16>>2];a=D[h+20>>2]-b|0;ga:{if(a>>>0<=1048575){sa(m,262144-(a>>>2|0)|0);break ga}if((a|0)==1048576){break ga}D[h+20>>2]=b- -1048576}a=h+28|0;b=D[a>>2];d=D[h+32>>2]-b>>3;ha:{if(d>>>0<i>>>0){db(a,i-d|0);b=D[a>>2];break ha}if(d>>>0>i>>>0){D[h+32>>2]=(i<<3)+b}if(!i){break aa}}g=0;d=0;while(1){e=o+(g<<2)|0;j=D[e>>2];h=(g<<3)+b|0;a=d;D[h+4>>2]=a;D[h>>2]=j;e=D[e>>2];d=e+a|0;if(d>>>0>262144){break aa}ia:{if(a>>>0>=d>>>0){break ia}h=D[m>>2];j=0;p=e&7;if(p){while(1){D[h+(a<<2)>>2]=g;a=a+1|0;j=j+1|0;if((p|0)!=(j|0)){continue}break}}if(e-1>>>0<=6){break ia}while(1){e=h+(a<<2)|0;D[e>>2]=g;D[e+28>>2]=g;D[e+24>>2]=g;D[e+20>>2]=g;D[e+16>>2]=g;D[e+12>>2]=g;D[e+8>>2]=g;D[e+4>>2]=g;a=a+8|0;if((d|0)!=(a|0)){continue}break}}g=g+1|0;if((i|0)!=(g|0)){continue}break}l=(d|0)==262144}d=l}ja:{if(!d|(D[f+20>>2]?0:n)){break ja}d=0;l=$-16|0;$=l;ka:{if(!Ta(1,l+8|0,c)){break ka}a=D[c+8>>2];b=D[c+16>>2];e=a-b|0;i=D[l+12>>2];g=i;j=D[c+20>>2];h=D[c+12>>2]-(j+(a>>>0<b>>>0)|0)|0;a=D[l+8>>2];if((g|0)==(h|0)&e>>>0<a>>>0|g>>>0>h>>>0){break ka}e=i+j|0;g=a+b|0;e=g>>>0<b>>>0?e+1|0:e;D[c+16>>2]=g;D[c+20>>2]=e;if((a|0)<=0){break ka}b=b+D[c>>2]|0;D[f+48>>2]=b;c=a-1|0;e=c+b|0;g=E[e|0];la:{if(g>>>0<=63){D[f+52>>2]=c;a=E[e|0]&63;break la}ma:{switch((g>>>6|0)-1|0){case 0:if(a>>>0<2){break ka}D[f+52>>2]=a-2;a=(a+b|0)-2|0;a=E[a+1|0]<<8&16128|E[a|0];break la;case 1:if(a>>>0<3){break ka}D[f+52>>2]=a-3;a=(a+b|0)-3|0;a=E[a+2|0]<<16&4128768|E[a+1|0]<<8|E[a|0];break la;default:break ma}}D[f+52>>2]=a-4;a=(a+b|0)-4|0;a=E[a+2|0]<<16|E[a+3|0]<<24&1056964608|E[a+1|0]<<8|E[a|0]}a=a- -1048576|0;D[f+56>>2]=a;d=a>>>0<268435456}$=l+16|0;if(!d){break ja}if(!n){k=1;break ja}b=D[f+36>>2];c=D[f+48>>2];d=D[f+24>>2];a=D[f+56>>2];while(1){na:{if(a>>>0>1048575){break na}k=D[f+52>>2];while(1){if((k|0)<=0){break na}k=k-1|0;D[f+52>>2]=k;a=E[c+k|0]|a<<8;D[f+56>>2]=a;if(a>>>0<1048576){continue}break}}e=a&262143;k=D[d+(e<<2)>>2];l=b+(k<<3)|0;a=(J(D[l>>2],a>>>18|0)+e|0)-D[l+4>>2]|0;D[f+56>>2]=a;D[u+(q<<2)>>2]=k;k=1;q=q+1|0;if((n|0)!=(q|0)){continue}break}}a=D[f+36>>2];if(a){D[f+40>>2]=a;ma(a)}a=D[f+24>>2];if(a){D[f+28>>2]=a;ma(a)}a=D[f+8>>2];if(a){D[f+12>>2]=a;ma(a)}$=f- -64|0;b=k;break g;case 12:n=a;u=d;f=$+-64|0;$=f;D[f+56>>2]=0;D[f+48>>2]=0;D[f+52>>2]=0;D[f+40>>2]=0;D[f+44>>2]=0;D[f+32>>2]=0;D[f+36>>2]=0;D[f+24>>2]=0;D[f+28>>2]=0;D[f+16>>2]=0;D[f+20>>2]=0;D[f+8>>2]=0;D[f+12>>2]=0;h=f+8|0;oa:{pa:{if(!F[c+38>>1]){break pa}if(!Ua(1,h+12|0,c)){break pa}i=D[h+12>>2];b=D[h>>2];a=D[h+4>>2]-b>>2;qa:{if(i>>>0>a>>>0){sa(h,i-a|0);i=D[h+12>>2];break qa}if(a>>>0<=i>>>0){break qa}D[h+4>>2]=b+(i<<2)}d=1;if(!i){break oa}p=D[c+8>>2];m=D[c+12>>2];r=D[h>>2];b=0;while(1){e=D[c+20>>2];a=D[c+16>>2];d=0;if((m|0)<=(e|0)&p>>>0<=a>>>0|(e|0)>(m|0)){break oa}s=D[c>>2];o=E[s+a|0];a=a+1|0;e=a?e:e+1|0;j=a;D[c+16>>2]=a;d=e;D[c+20>>2]=e;a=o>>>2|0;g=0;ra:{sa:{ta:{ua:{t=o&3;switch(t|0){case 0:break sa;case 3:break ua;default:break ta}}a=a+b|0;d=0;if(a>>>0>=i>>>0){break oa}pa(r+(b<<2)|0,0,(o&252)+4|0);b=a;break ra}while(1){if((d|0)>=(m|0)&j>>>0>=p>>>0|(d|0)>(m|0)){break pa}i=E[j+s|0];e=d;d=j+1|0;e=d?e:e+1|0;j=d;D[c+16>>2]=d;d=e;D[c+20>>2]=e;a=i<<(g<<3|6)|a;g=g+1|0;if((t|0)!=(g|0)){continue}break}}D[r+(b<<2)>>2]=a}b=b+1|0;i=D[h+12>>2];if(b>>>0<i>>>0){continue}break}m=h+16|0;o=D[h>>2];b=D[h+16>>2];a=D[h+20>>2]-b|0;va:{if(a>>>0<=2097151){sa(m,524288-(a>>>2|0)|0);break va}if((a|0)==2097152){break va}D[h+20>>2]=b+2097152}a=h+28|0;b=D[a>>2];d=D[h+32>>2]-b>>3;wa:{if(d>>>0<i>>>0){db(a,i-d|0);b=D[a>>2];break wa}if(d>>>0>i>>>0){D[h+32>>2]=(i<<3)+b}if(!i){break pa}}g=0;d=0;while(1){e=o+(g<<2)|0;j=D[e>>2];h=(g<<3)+b|0;a=d;D[h+4>>2]=a;D[h>>2]=j;e=D[e>>2];d=e+a|0;if(d>>>0>524288){break pa}xa:{if(a>>>0>=d>>>0){break xa}h=D[m>>2];j=0;p=e&7;if(p){while(1){D[h+(a<<2)>>2]=g;a=a+1|0;j=j+1|0;if((p|0)!=(j|0)){continue}break}}if(e-1>>>0<=6){break xa}while(1){e=h+(a<<2)|0;D[e>>2]=g;D[e+28>>2]=g;D[e+24>>2]=g;D[e+20>>2]=g;D[e+16>>2]=g;D[e+12>>2]=g;D[e+8>>2]=g;D[e+4>>2]=g;a=a+8|0;if((d|0)!=(a|0)){continue}break}}g=g+1|0;if((i|0)!=(g|0)){continue}break}l=(d|0)==524288}d=l}ya:{if(!d|(D[f+20>>2]?0:n)){break ya}d=0;l=$-16|0;$=l;za:{if(!Ta(1,l+8|0,c)){break za}a=D[c+8>>2];b=D[c+16>>2];e=a-b|0;i=D[l+12>>2];g=i;j=D[c+20>>2];h=D[c+12>>2]-(j+(a>>>0<b>>>0)|0)|0;a=D[l+8>>2];if((g|0)==(h|0)&e>>>0<a>>>0|g>>>0>h>>>0){break za}e=i+j|0;g=a+b|0;e=g>>>0<b>>>0?e+1|0:e;D[c+16>>2]=g;D[c+20>>2]=e;if((a|0)<=0){break za}b=b+D[c>>2]|0;D[f+48>>2]=b;c=a-1|0;e=c+b|0;g=E[e|0];Aa:{if(g>>>0<=63){D[f+52>>2]=c;a=E[e|0]&63;break Aa}Ba:{switch((g>>>6|0)-1|0){case 0:if(a>>>0<2){break za}D[f+52>>2]=a-2;a=(a+b|0)-2|0;a=E[a+1|0]<<8&16128|E[a|0];break Aa;case 1:if(a>>>0<3){break za}D[f+52>>2]=a-3;a=(a+b|0)-3|0;a=E[a+2|0]<<16&4128768|E[a+1|0]<<8|E[a|0];break Aa;default:break Ba}}D[f+52>>2]=a-4;a=(a+b|0)-4|0;a=E[a+2|0]<<16|E[a+3|0]<<24&1056964608|E[a+1|0]<<8|E[a|0]}a=a+2097152|0;D[f+56>>2]=a;d=a>>>0<536870912}$=l+16|0;if(!d){break ya}if(!n){k=1;break ya}b=D[f+36>>2];c=D[f+48>>2];d=D[f+24>>2];a=D[f+56>>2];while(1){Ca:{if(a>>>0>2097151){break Ca}k=D[f+52>>2];while(1){if((k|0)<=0){break Ca}k=k-1|0;D[f+52>>2]=k;a=E[c+k|0]|a<<8;D[f+56>>2]=a;if(a>>>0<2097152){continue}break}}e=a&524287;k=D[d+(e<<2)>>2];l=b+(k<<3)|0;a=(J(D[l>>2],a>>>19|0)+e|0)-D[l+4>>2]|0;D[f+56>>2]=a;D[u+(q<<2)>>2]=k;k=1;q=q+1|0;if((n|0)!=(q|0)){continue}break}}a=D[f+36>>2];if(a){D[f+40>>2]=a;ma(a)}a=D[f+24>>2];if(a){D[f+28>>2]=a;ma(a)}a=D[f+8>>2];if(a){D[f+12>>2]=a;ma(a)}$=f- -64|0;b=k;break g;case 17:b=Hd(a,c,d);break g;case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:e=$+-64|0;$=e;D[e+56>>2]=0;D[e+48>>2]=0;D[e+52>>2]=0;D[e+40>>2]=0;D[e+44>>2]=0;D[e+32>>2]=0;D[e+36>>2]=0;D[e+24>>2]=0;D[e+28>>2]=0;D[e+16>>2]=0;D[e+20>>2]=0;D[e+8>>2]=0;D[e+12>>2]=0;Da:{if(!Jd(e+8|0,c)|(D[e+20>>2]?0:a)){break Da}if(!Id(e+8|0,c)){break Da}if(!a){b=1;break Da}l=D[e+36>>2];f=D[e+48>>2];n=D[e+24>>2];c=D[e+56>>2];while(1){Ea:{if(c>>>0>16383){break Ea}b=D[e+52>>2];while(1){if((b|0)<=0){break Ea}b=b-1|0;D[e+52>>2]=b;c=E[b+f|0]|c<<8;D[e+56>>2]=c;if(c>>>0<16384){continue}break}}b=c&4095;u=D[n+(b<<2)>>2];g=l+(u<<3)|0;c=(J(D[g>>2],c>>>12|0)+b|0)-D[g+4>>2]|0;D[e+56>>2]=c;D[(k<<2)+d>>2]=u;b=1;k=k+1|0;if((k|0)!=(a|0)){continue}break}}a=D[e+36>>2];if(a){D[e+40>>2]=a;ma(a)}a=D[e+24>>2];if(a){D[e+28>>2]=a;ma(a)}a=D[e+8>>2];if(a){D[e+12>>2]=a;ma(a)}$=e- -64|0;break g;case 13:case 14:case 15:case 16:break h;default:break g}}b=Hd(a,c,d)}k=b}return k}function ah(a){a=a|0;var 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,A=0,H=0,I=0,K=0,L=0,M=0,N=0;w=$+-64|0;$=w;D[a+132>>2]=0;if(D[a+148>>2]){b=D[a+144>>2];if(b){while(1){g=D[b>>2];ma(b);b=g;if(b){continue}break}}b=0;D[a+144>>2]=0;g=D[a+140>>2];a:{if(!g){break a}if(g-1>>>0>=3){h=g&-4;while(1){j=b<<2;D[j+D[a+136>>2]>>2]=0;D[D[a+136>>2]+(j|4)>>2]=0;D[D[a+136>>2]+(j|8)>>2]=0;D[D[a+136>>2]+(j|12)>>2]=0;b=b+4|0;q=q+4|0;if((h|0)!=(q|0)){continue}break}}g=g&3;if(!g){break a}while(1){D[D[a+136>>2]+(b<<2)>>2]=0;b=b+1|0;c=c+1|0;if((g|0)!=(c|0)){continue}break}}D[a+148>>2]=0}b:{if(!Da(1,w+60|0,D[D[a+4>>2]+32>>2])){break b}D[a+156>>2]=D[w+60>>2];if(!Da(1,w+56|0,D[D[a+4>>2]+32>>2])){break b}c=D[w+56>>2];if(c>>>0>1431655765|G[a+156>>2]>J(c,3)>>>0){break b}b=D[D[a+4>>2]+32>>2];j=D[b+8>>2];h=D[b+12>>2];g=D[b+20>>2];r=j;j=D[b+16>>2];if((h|0)<=(g|0)&r>>>0<=j>>>0|(g|0)>(h|0)){break b}h=E[j+D[b>>2]|0];j=j+1|0;g=j?g:g+1|0;D[b+16>>2]=j;D[b+20>>2]=g;if(!Da(1,w+52|0,b)){break b}r=D[w+52>>2];if(r>>>0>c>>>0|c>>>0>r+((r>>>0)/3|0)>>>0){break b}if(!Da(1,w+48|0,D[D[a+4>>2]+32>>2])){break b}j=D[w+48>>2];if(j>>>0>r>>>0){break b}D[a+28>>2]=D[a+24>>2];g=na(88);Xc(g);b=D[a+8>>2];D[a+8>>2]=g;if(b){cb(b);if(!D[a+8>>2]){break b}}D[a+164>>2]=D[a+160>>2];Jb(a+160|0,c);D[a+176>>2]=D[a+172>>2];Jb(a+172|0,c);D[a- -64>>2]=0;D[a+92>>2]=-1;D[a+84>>2]=-1;D[a+88>>2]=-1;D[a+40>>2]=D[a+36>>2];D[a+52>>2]=D[a+48>>2];D[a+76>>2]=D[a+72>>2];K=a+216|0;zd(K);yd(K,h);if(!Wc(D[a+8>>2],c,j+D[a+156>>2]|0)){break b}b=D[a+156>>2];B[w+8|0]=1;Ea(a+120|0,b+j|0,w+8|0);if((wd(a,D[D[a+4>>2]+32>>2])|0)==-1){break b}f=a+232|0;D[f+144>>2]=a;b=D[(ba[D[D[a>>2]+32>>2]](a)|0)+32>>2];c=D[b>>2]+D[b+16>>2]|0;e=D[(ba[D[D[a>>2]+32>>2]](a)|0)+32>>2];b=D[e+8>>2];e=D[e+16>>2];b=b-e|0;M=f,N=F[D[(ba[D[D[a>>2]+32>>2]](a)|0)+32>>2]+38>>1],C[M+38>>1]=N;D[f>>2]=c;D[f+16>>2]=0;D[f+20>>2]=0;D[f+8>>2]=b;D[f+12>>2]=0;M=f,N=ba[D[D[a>>2]+36>>2]](a)|0,D[M+148>>2]=N;D[a+372>>2]=h;D[a+384>>2]=j+D[a+156>>2];p=w+8|0;C[p+38>>1]=0;D[p>>2]=0;D[p+8>>2]=0;D[p+12>>2]=0;D[p+16>>2]=0;D[p+20>>2]=0;D[p+24>>2]=0;D[p+28>>2]=0;B[p+29|0]=0;B[p+30|0]=0;B[p+31|0]=0;B[p+32|0]=0;B[p+33|0]=0;B[p+34|0]=0;B[p+35|0]=0;B[p+36|0]=0;h=0;q=$-16|0;$=q;c:{if(!Ma(f+80|0,f)){break c}if(!td(f)){break c}b=D[f+4>>2];D[p>>2]=D[f>>2];D[p+4>>2]=b;b=D[f+36>>2];D[p+32>>2]=D[f+32>>2];D[p+36>>2]=b;b=D[f+28>>2];D[p+24>>2]=D[f+24>>2];D[p+28>>2]=b;b=D[f+20>>2];D[p+16>>2]=D[f+16>>2];D[p+20>>2]=b;b=D[f+12>>2];D[p+8>>2]=D[f+8>>2];D[p+12>>2]=b;D[f+176>>2]=2;D[f+180>>2]=7;b=D[f+152>>2];if((b|0)<0){break c}D[q+12>>2]=0;h=2;j=D[f+156>>2];g=D[f+160>>2]-j>>2;d:{if(g>>>0<b>>>0){xa(f+156|0,b-g|0,q+12|0);h=D[f+176>>2];c=D[f+180>>2];break d}c=7;if(b>>>0>=g>>>0){break d}D[f+160>>2]=j+(b<<2)}j=f+184|0;g=(c-h|0)+1|0;b=D[f+188>>2];h=D[f+184>>2];c=(b-h|0)/12|0;e:{if(g>>>0>c>>>0){g=g-c|0;e=D[j+8>>2];b=D[j+4>>2];f:{if(g>>>0<=(e-b|0)/12>>>0){if(g){c=b;b=J((J(g,12)-12>>>0)/12|0,12)+12|0;b=pa(c,0,b)+b|0}D[j+4>>2]=b;break f}g:{h:{i:{c=D[j>>2];d=(b-c|0)/12|0;h=d+g|0;if(h>>>0<357913942){e=(e-c|0)/12|0;t=e<<1;h=e>>>0<178956970?h>>>0>t>>>0?h:t:357913941;if(h){if(h>>>0>=357913942){break i}n=na(J(h,12))}e=J(d,12)+n|0;d=J((J(g,12)-12>>>0)/12|0,12)+12|0;g=pa(e,0,d);d=d+g|0;h=J(h,12)+n|0;if((b|0)==(c|0)){break h}while(1){e=e-12|0;b=b-12|0;D[e>>2]=D[b>>2];D[e+4>>2]=D[b+4>>2];D[e+8>>2]=D[b+8>>2];D[b+8>>2]=0;D[b>>2]=0;D[b+4>>2]=0;if((b|0)!=(c|0)){continue}break}D[j+8>>2]=h;g=D[j+4>>2];D[j+4>>2]=d;b=D[j>>2];D[j>>2]=e;if((b|0)==(g|0)){break g}while(1){c=g-12|0;h=D[c>>2];if(h){D[g-8>>2]=h;ma(h)}g=c;if((c|0)!=(b|0)){continue}break}break g}qa();T()}ra(1326);T()}D[j+8>>2]=h;D[j+4>>2]=d;D[j>>2]=g}if(b){ma(b)}}c=D[f+188>>2];break e}if(c>>>0<=g>>>0){c=b;break e}c=h+J(g,12)|0;if((b|0)!=(c|0)){while(1){g=b-12|0;h=D[g>>2];if(h){D[b-8>>2]=h;ma(h)}b=g;if((b|0)!=(c|0)){continue}break}}D[f+188>>2]=c}e=f+196|0;h=D[f+184>>2];b=(c-h|0)/12|0;d=D[f+196>>2];g=D[f+200>>2]-d>>2;j:{if(b>>>0>g>>>0){sa(e,b-g|0);h=D[f+184>>2];c=D[f+188>>2];break j}if(b>>>0>=g>>>0){break j}D[f+200>>2]=d+(b<<2)}if((c|0)==(h|0)){h=1;break c}b=0;while(1){k:{if(!Da(1,q+8|0,p)){break k}g=D[f+148>>2];c=(D[g+4>>2]-D[g>>2]>>2>>>0)/3|0;g=D[q+8>>2];if(c>>>0<g>>>0){break k}if(g){c=D[j>>2];n=J(b,12);h=c+n|0;d=D[h>>2];t=D[h+4>>2]-d>>2;l:{if(t>>>0<g>>>0){sa(h,g-t|0);c=D[j>>2];break l}if(g>>>0>=t>>>0){break l}D[h+4>>2]=d+(g<<2)}kc(g,1,p,D[c+n>>2]);D[D[e>>2]+(b<<2)>>2]=g}h=1;b=b+1|0;if(b>>>0<(D[f+188>>2]-D[f+184>>2]|0)/12>>>0){continue}break c}break}h=0}$=q+16|0;m:{if(!h){break m}c=0;b=0;h=0;g=0;n=0;q=0;j=0;t=0;l=$-96|0;$=l;D[l+72>>2]=0;D[l+64>>2]=0;D[l+68>>2]=0;D[l+48>>2]=0;D[l+52>>2]=0;D[l+40>>2]=0;D[l+44>>2]=0;D[l+56>>2]=1065353216;D[l+32>>2]=0;D[l+24>>2]=0;D[l+28>>2]=0;m=1;f=a;z=D[a+124>>2];n:{o:{p:{q:{r:{s:{t:{if((r|0)<=0){break t}A=f+232|0;L=D[f+216>>2]!=D[f+220>>2];u:{while(1){a=q;q=a+1|0;v:{w:{x:{d=D[f+404>>2];if((d|0)==-1){D[f+400>>2]=7;break x}e=-1;i=D[f+428>>2]+(d<<2)|0;k=D[i>>2];d=k-1|0;D[i>>2]=d;if((k|0)<=0){break s}i=D[D[D[f+416>>2]+J(D[f+404>>2],12)>>2]+(d<<2)>>2];d=D[(i<<2)+8928>>2];D[f+400>>2]=d;if(!i){if((c|0)==(g|0)){break s}d=-1;i=D[f+8>>2];s=D[i+24>>2];x=s;u=c-4|0;e=D[u>>2];b=-1;y:{if((e|0)==-1){break y}k=e+1|0;k=(k>>>0)%3|0?k:e-2|0;b=-1;if((k|0)==-1){break y}b=D[D[i>>2]+(k<<2)>>2]}m=D[x+(b<<2)>>2];if((m|0)!=-1){d=m+1|0;d=(d>>>0)%3|0?d:m-2|0}m=D[i+12>>2];k=J(a,3);a=k+1|0;D[m+(e<<2)>>2]=a;y=a<<2;D[y+m>>2]=e;o=k+2|0;D[m+(d<<2)>>2]=o;x=o<<2;D[x+m>>2]=d;m=-1;a=-1;z:{if((e|0)==-1){break z}A:{if((e>>>0)%3|0){e=e-1|0;break A}e=e+2|0;a=-1;if((e|0)==-1){break z}}a=D[D[i>>2]+(e<<2)>>2]}B:{if((d|0)==-1){break B}e=d+1|0;e=(e>>>0)%3|0?e:d-2|0;if((e|0)==-1){break B}m=D[D[i>>2]+(e<<2)>>2]}e=-1;if((a|0)==(b|0)|(b|0)==(m|0)){break s}e=D[i>>2];D[e+(k<<2)>>2]=b;D[e+y>>2]=m;D[e+x>>2]=a;if((a|0)!=-1){D[s+(a<<2)>>2]=o}a=D[f+120>>2]+(b>>>3&536870908)|0;e=D[a>>2];M=a,N=ei(b)&e,D[M>>2]=N;D[u>>2]=k;b=g;hc(A,k);break v}C:{switch(d-1|0){case 2:case 4:if((c|0)==(g|0)){break s}d=D[f+8>>2];e=D[d+12>>2];o=(i|0)==3;i=J(a,3);s=(o?2:1)+i|0;u=s<<2;y=c-4|0;b=D[y>>2];D[e+u>>2]=b;D[e+(b<<2)>>2]=s;Sa(d+24|0);e=-1;c=D[f+8>>2];k=D[c+24>>2];if((z|0)<D[c+28>>2]-k>>2){break s}c=D[c>>2];e=D[d+28>>2]-D[d+24>>2]|0;d=(e>>2)-1|0;D[c+u>>2]=d;if(e){D[k+(d<<2)>>2]=s}e=o?i:i+2|0;x=c+(i+o<<2)|0;D:{if((b|0)==-1){D[c+(e<<2)>>2]=-1;d=-1;break D}E:{F:{G:{if((b>>>0)%3|0){d=b-1|0;break G}d=b+2|0;if((d|0)==-1){break F}}d=D[c+(d<<2)>>2];D[c+(e<<2)>>2]=d;if((d|0)==-1){break E}D[k+(d<<2)>>2]=e;break E}D[c+(e<<2)>>2]=-1}d=b+1|0;b=(d>>>0)%3|0?d:b-2|0;d=-1;if((b|0)==-1){break D}d=D[c+(b<<2)>>2]}D[x>>2]=d;D[y>>2]=i;b=g;break w;case 6:break x;case 0:break C;default:break s}}if((b|0)==(c|0)){break s}h=c-4|0;k=D[h>>2];D[l+68>>2]=h;H:{I:{J:{K:{L:{o=D[l+44>>2];M:{if(!o){break M}e=D[l+40>>2];s=di(o)>>>0>1;d=a&o+2147483647;N:{if(!s){break N}d=a;if(a>>>0<o>>>0){break N}d=(a>>>0)%(o>>>0)|0}i=d;e=D[e+(i<<2)>>2];if(!e){break M}e=D[e>>2];if(!e){break M}O:{if(!s){d=o-1|0;while(1){o=D[e+4>>2];P:{if((o|0)!=(a|0)){if((i|0)==(d&o)){break P}break M}if((a|0)==D[e+8>>2]){break O}}e=D[e>>2];if(e){continue}break}break M}while(1){d=D[e+4>>2];Q:{if((d|0)!=(a|0)){if(d>>>0>=o>>>0){d=(d>>>0)%(o>>>0)|0}if((d|0)==(i|0)){break Q}break M}if((a|0)==D[e+8>>2]){break O}}e=D[e>>2];if(e){continue}break}break M}if((h|0)!=(v|0)){D[h>>2]=D[e+12>>2];D[l+68>>2]=c;h=c;break M}c=v-b|0;d=c>>2;g=d+1|0;if(g>>>0>=1073741824){break L}h=c>>1;h=c>>>0<2147483644?g>>>0>h>>>0?g:h:1073741823;if(h){if(h>>>0>=1073741824){break o}g=na(h<<2)}else{g=0}d=g+(d<<2)|0;D[d>>2]=D[e+12>>2];v=(h<<2)+g|0;h=d+4|0;if((c|0)>0){oa(g,b,c)}D[l+72>>2]=v;D[l+68>>2]=h;D[l+64>>2]=g;if(b){ma(b)}b=g}if((b|0)==(h|0)){break u}y=h-4|0;c=D[y>>2];e=(c|0)==-1;i=D[f+8>>2];if(!e&D[D[i+12>>2]+(c<<2)>>2]!=-1){break u}o=D[i+12>>2];if((k|0)!=-1&D[o+(k<<2)>>2]!=-1){break u}s=J(a,3);u=s+2|0;D[o+(c<<2)>>2]=u;a=u<<2;D[a+o>>2]=c;d=s+1|0;D[o+(k<<2)>>2]=d;x=d<<2;D[x+o>>2]=k;if(e){break K}if((c>>>0)%3|0){d=c-1|0;break J}d=c+2|0;if((d|0)!=-1){break J}m=D[i>>2];d=-1;break I}qa();T()}d=-1;m=D[i>>2];D[m+(s<<2)>>2]=-1;e=-1;break H}m=D[i>>2];d=D[m+(d<<2)>>2]}D[(s<<2)+m>>2]=d;e=c+1|0;c=(e>>>0)%3|0?e:c-2|0;e=-1;if((c|0)==-1){break H}e=D[(c<<2)+m>>2]}D[m+x>>2]=e;R:{if((k|0)==-1){e=-1;D[a+m>>2]=-1;a=-1;break R}S:{T:{U:{if((k>>>0)%3|0){e=k-1|0;break U}e=k+2|0;if((e|0)==-1){break T}}c=a+m|0;a=D[(e<<2)+m>>2];D[c>>2]=a;if((a|0)==-1){break S}D[D[i+24>>2]+(a<<2)>>2]=u;break S}D[a+m>>2]=-1}e=-1;c=k+1|0;c=(c>>>0)%3|0?c:k-2|0;a=-1;if((c|0)==-1){break R}e=c;a=D[(c<<2)+m>>2]}c=D[f+388>>2];k=d<<2;u=c+k|0;x=c;c=a<<2;D[u>>2]=D[u>>2]+D[x+c>>2];i=D[i+24>>2];c=i+c|0;if((d|0)!=-1){D[i+k>>2]=D[c>>2]}V:{if((e|0)==-1){break V}while(1){D[(e<<2)+m>>2]=d;i=e+1|0;e=(i>>>0)%3|0?i:e-2|0;if((e|0)==-1){break V}e=D[o+(e<<2)>>2];if((e|0)==-1){break V}i=e+1|0;e=(i>>>0)%3|0?i:e-2|0;if((e|0)!=-1){continue}break}}D[c>>2]=-1;W:{if(L){break W}if((t|0)!=(H|0)){D[t>>2]=a;t=t+4|0;D[l+28>>2]=t;break W}X:{c=H-n|0;d=c>>2;j=d+1|0;if(j>>>0<1073741824){e=c>>1;e=c>>>0<2147483644?e>>>0<j>>>0?j:e:1073741823;if(e){if(e>>>0>=1073741824){break X}j=na(e<<2)}else{j=0}d=j+(d<<2)|0;D[d>>2]=a;H=(e<<2)+j|0;t=d+4|0;if((c|0)>0){oa(j,n,c)}D[l+32>>2]=H;D[l+28>>2]=t;D[l+24>>2]=j;if(n){ma(n)}n=j;break W}qa();T()}break o}D[y>>2]=s;c=h;hc(A,s);break v}i=D[f+8>>2];Sa(i+24|0);e=-1;d=D[f+8>>2];h=J(a,3);k=D[i+28>>2]-D[i+24>>2]|0;i=k>>2;s=i-1|0;D[D[d>>2]+(h<<2)>>2]=s;Sa(d+24|0);o=h+1|0;D[D[d>>2]+(o<<2)>>2]=(D[d+28>>2]-D[d+24>>2]>>2)-1;d=D[f+8>>2];Sa(d+24|0);u=h+2|0;D[D[d>>2]+(u<<2)>>2]=(D[d+28>>2]-D[d+24>>2]>>2)-1;y=D[f+8>>2];d=D[y+24>>2];if((z|0)<D[y+28>>2]-d>>2){break s}Y:{Z:{if(!k){D[d+(i<<2)>>2]=o;e=1;break Z}D[d+(s<<2)>>2]=h;e=0;if((k|0)==-4){break Z}D[d+(i<<2)>>2]=o;e=i+1|0;if((e|0)==-1){break Y}}D[d+(e<<2)>>2]=u}if((c|0)!=(v|0)){D[c>>2]=h;h=c+4|0;D[l+68>>2]=h;break w}c=v-g|0;d=c>>2;b=d+1|0;if(b>>>0>=1073741824){break r}e=c>>1;e=c>>>0<2147483644?b>>>0>e>>>0?b:e:1073741823;if(e){if(e>>>0>=1073741824){break o}b=na(e<<2)}else{b=0}d=b+(d<<2)|0;D[d>>2]=h;v=(e<<2)+b|0;h=d+4|0;if((c|0)>0){oa(b,g,c)}D[l+72>>2]=v;D[l+68>>2]=h;D[l+64>>2]=b;if(g){ma(g)}g=b}hc(A,D[h-4>>2]);e=D[f+40>>2];_:{if((e|0)==D[f+36>>2]){break _}d=r+(a^-1)|0;i=h-4|0;while(1){a=D[e-8>>2];if(a>>>0>d>>>0){break u}if((a|0)!=(d|0)){break _}k=E[e-4|0];a=e-12|0;c=D[a>>2];D[f+40>>2]=a;if((c|0)<0){break u}a=D[i>>2];D[l+20>>2]=r+(c^-1);c=l+20|0;D[l+88>>2]=c;sd(l,l+40|0,c,l+88|0);e=D[l>>2];$:{if(k&1){c=-1;if((a|0)==-1){break $}c=a+1|0;c=(c>>>0)%3|0?c:a-2|0;break $}c=-1;if((a|0)==-1){break $}c=a-1|0;if((a>>>0)%3|0){break $}c=a+2|0}D[e+12>>2]=c;e=D[f+40>>2];if((e|0)!=D[f+36>>2]){continue}break}}c=h}m=(q|0)<(r|0);if((q|0)!=(r|0)){continue}break}q=r;break t}e=-1;if(m){break s}}e=-1;c=D[f+8>>2];if((z|0)<D[c+28>>2]-D[c+24>>2]>>2){break s}if((g|0)!=(h|0)){r=f+60|0;s=f+312|0;while(1){h=h-4|0;i=D[h>>2];D[l+68>>2]=h;aa:{if(Ga(s)){k=D[f+8>>2];m=D[k>>2];if(((D[k+4>>2]-m>>2>>>0)/3|0)<=(q|0)){break s}b=-1;a=-1;d=D[k+24>>2];c=-1;ba:{if((i|0)==-1){break ba}n=i+1|0;n=(n>>>0)%3|0?n:i-2|0;c=-1;if((n|0)==-1){break ba}c=D[m+(n<<2)>>2]}n=c;c=D[d+(n<<2)>>2];ca:{if((c|0)==-1){break ca}v=c+1|0;c=(v>>>0)%3|0?v:c-2|0;if((c|0)==-1){break ca}b=c+1|0;b=(b>>>0)%3|0?b:c-2|0;if((b|0)!=-1){a=D[m+(b<<2)>>2]}b=c}v=-1;o=-1;d=D[d+(a<<2)>>2];c=-1;da:{if((d|0)==-1){break da}z=d+1|0;d=(z>>>0)%3|0?z:d-2|0;c=-1;if((d|0)==-1){break da}c=d+1|0;c=(c>>>0)%3|0?c:d-2|0;if((c|0)!=-1){o=D[m+(c<<2)>>2]}c=d}d=D[k+12>>2];k=J(q,3);z=k<<2;D[d+z>>2]=i;D[d+(i<<2)>>2]=k;i=k+1|0;A=i<<2;D[A+d>>2]=b;D[d+(b<<2)>>2]=i;b=k+2|0;H=b<<2;D[H+d>>2]=c;D[d+(c<<2)>>2]=b;D[m+z>>2]=a;c=m+A|0;D[c>>2]=o;m=m+H|0;D[m>>2]=n;d=i>>>0<k>>>0?-1:a;a=D[f+120>>2];n=(d>>>3&536870908)+a|0;o=D[n>>2];M=n,N=ei(d)&o,D[M>>2]=N;v=(i|0)!=-1?D[c>>2]:v;c=a+(v>>>3&536870908)|0;d=D[c>>2];M=c,N=ei(v)&d,D[M>>2]=N;d=-1;d=(b|0)!=-1?D[m>>2]:d;a=a+(d>>>3&536870908)|0;b=D[a>>2];M=a,N=ei(d)&b,D[M>>2]=N;d=D[f+64>>2];a=D[f+68>>2];if((d|0)==a<<5){if((d+1|0)<0){break q}if(d>>>0<=1073741822){b=d+32&-32;a=a<<6;a=a>>>0<b>>>0?b:a}else{a=2147483647}Va(r,a);d=D[f+64>>2]}q=q+1|0;D[f+64>>2]=d+1;a=D[f+60>>2]+(d>>>3&536870908)|0;D[a>>2]=D[a>>2]|1<<d;a=D[f+76>>2];if((a|0)!=D[f+80>>2]){D[a>>2]=k;D[f+76>>2]=a+4;break aa}c=D[f+72>>2];b=a-c|0;n=b>>2;a=n+1|0;if(a>>>0>=1073741824){break p}d=b>>1;d=b>>>0<2147483644?a>>>0>d>>>0?a:d:1073741823;if(d){if(d>>>0>=1073741824){break o}a=na(d<<2)}else{a=0}n=a+(n<<2)|0;D[n>>2]=k;if((b|0)>0){oa(a,c,b)}D[f+80>>2]=a+(d<<2);D[f+76>>2]=n+4;D[f+72>>2]=a;if(!c){break aa}ma(c);break aa}c=D[f+64>>2];a=D[f+68>>2];if((c|0)==a<<5){if((c+1|0)<0){break q}if(c>>>0<=1073741822){b=c+32&-32;a=a<<6;a=a>>>0<b>>>0?b:a}else{a=2147483647}Va(r,a);c=D[f+64>>2]}D[f+64>>2]=c+1;a=D[f+60>>2]+(c>>>3&536870908)|0;b=D[a>>2];M=a,N=ei(c)&b,D[M>>2]=N;a=D[f+76>>2];if((a|0)!=D[f+80>>2]){D[a>>2]=i;D[f+76>>2]=a+4;break aa}c=D[f+72>>2];b=a-c|0;n=b>>2;a=n+1|0;if(a>>>0>=1073741824){break p}d=b>>1;d=b>>>0<2147483644?a>>>0>d>>>0?a:d:1073741823;if(d){if(d>>>0>=1073741824){break o}a=na(d<<2)}else{a=0}n=a+(n<<2)|0;D[n>>2]=i;if((b|0)>0){oa(a,c,b)}D[f+80>>2]=a+(d<<2);D[f+76>>2]=n+4;D[f+72>>2]=a;if(!c){break aa}ma(c)}if((g|0)!=(h|0)){continue}break}c=D[f+8>>2]}if(((D[c+4>>2]-D[c>>2]>>2>>>0)/3|0)!=(q|0)){break s}d=D[c+24>>2];e=D[c+28>>2]-d>>2;if((j|0)==(t|0)){j=t;break s}a=j;while(1){b=D[a>>2];h=e-1|0;m=(h<<2)+d|0;if(D[m>>2]==-1){while(1){h=e-2|0;e=e-1|0;m=(h<<2)+d|0;if(D[m>>2]==-1){continue}break}}if(b>>>0<=h>>>0){D[l>>2]=c;d=D[m>>2];B[l+12|0]=1;D[l+8>>2]=d;D[l+4>>2]=d;if((d|0)!=-1){while(1){D[D[c>>2]+(d<<2)>>2]=b;lc(l);c=D[f+8>>2];d=D[l+8>>2];if((d|0)!=-1){continue}break}}d=D[c+24>>2];q=d+(h<<2)|0;if((b|0)!=-1){D[(b<<2)+d>>2]=D[q>>2]}D[q>>2]=-1;q=1<<b;r=D[f+120>>2];b=r+(b>>>3&536870908)|0;r=r+(h>>>3&536870908)|0;h=1<<h;if(D[r>>2]&h){q=q|D[b>>2]}else{q=D[b>>2]&(q^-1)}D[b>>2]=q;D[r>>2]=D[r>>2]&(h^-1);e=e-1|0}a=a+4|0;if((t|0)!=(a|0)){continue}break}}if(j){ma(j)}a=D[l+48>>2];if(a){while(1){b=D[a>>2];ma(a);a=b;if(a){continue}break}}a=D[l+40>>2];D[l+40>>2]=0;if(a){ma(a)}if(g){D[l+68>>2]=g;ma(g)}$=l+96|0;break n}qa();T()}Fa();T()}qa();T()}ra(1326);T()}if((e|0)==-1){break m}a=D[p+16>>2];b=a+D[p>>2]|0;g=D[p+8>>2];g=g-a|0;a=D[D[f+4>>2]+32>>2];C[a+38>>1]=F[a+38>>1];D[a>>2]=b;D[a+16>>2]=0;D[a+20>>2]=0;D[a+8>>2]=g;D[a+12>>2]=0;ea:{if(D[f+216>>2]==D[f+220>>2]){break ea}a=D[f+8>>2];if(D[a+4>>2]==D[a>>2]){break ea}b=0;while(1){if(vd(f,b)){b=b+3|0;a=D[f+8>>2];if(b>>>0<D[a+4>>2]-D[a>>2]>>2>>>0){continue}break ea}break}break m}if(E[f+308|0]){B[f+308|0]=0;g=D[f+292>>2];a=0;b=D[f+304>>2]+7|0;a=b>>>0<7?1:a;j=a<<29|b>>>3;b=j+D[f+288>>2]|0;a=(a>>>3|0)+g|0;D[f+288>>2]=b;D[f+292>>2]=b>>>0<j>>>0?a+1|0:a}b=D[f+216>>2];if((b|0)!=D[f+220>>2]){while(1){a=J(I,144);Uc((a+b|0)+4|0,D[f+8>>2]);c=D[K>>2];g=a+c|0;b=D[g+132>>2];g=D[g+136>>2];if((b|0)!=(g|0)){while(1){Sc((a+c|0)+4|0,D[b>>2]);c=D[K>>2];b=b+4|0;if((g|0)!=(b|0)){continue}break}}Tc((a+c|0)+4|0);I=I+1|0;b=D[f+216>>2];if(I>>>0<(D[f+220>>2]-b|0)/144>>>0){continue}break}}a=D[f+8>>2];Ib(f+184|0,D[a+28>>2]-D[a+24>>2]>>2);c=D[f+216>>2];if((c|0)!=D[f+220>>2]){b=0;while(1){a=J(b,144)+c|0;g=D[a+60>>2]-D[a+56>>2]>>2;c=a+104|0;a=D[f+8>>2];a=D[a+28>>2]-D[a+24>>2]>>2;Ib(c,(a|0)>(g|0)?a:g);b=b+1|0;c=D[f+216>>2];if(b>>>0<(D[f+220>>2]-c|0)/144>>>0){continue}break}}I=ud(f,e)}}$=w- -64|0;return I|0}function dh(a){a=a|0;var 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,A=0,H=0,I=0,K=0,L=0;v=$+-64|0;$=v;D[a+132>>2]=0;if(D[a+148>>2]){b=D[a+144>>2];if(b){while(1){d=D[b>>2];ma(b);b=d;if(d){continue}break}}b=0;D[a+144>>2]=0;d=D[a+140>>2];a:{if(!d){break a}if(d-1>>>0>=3){h=d&-4;while(1){c=b<<2;D[c+D[a+136>>2]>>2]=0;D[D[a+136>>2]+(c|4)>>2]=0;D[D[a+136>>2]+(c|8)>>2]=0;D[D[a+136>>2]+(c|12)>>2]=0;b=b+4|0;e=e+4|0;if((h|0)!=(e|0)){continue}break}}d=d&3;if(!d){break a}while(1){D[D[a+136>>2]+(b<<2)>>2]=0;b=b+1|0;n=n+1|0;if((d|0)!=(n|0)){continue}break}}D[a+148>>2]=0}b:{if(!Da(1,v+60|0,D[D[a+4>>2]+32>>2])){break b}D[a+156>>2]=D[v+60>>2];if(!Da(1,v+56|0,D[D[a+4>>2]+32>>2])){break b}e=D[v+56>>2];if(e>>>0>1431655765|G[a+156>>2]>J(e,3)>>>0){break b}d=D[D[a+4>>2]+32>>2];c=D[d+8>>2];n=D[d+12>>2];b=D[d+20>>2];f=c;c=D[d+16>>2];if((n|0)<=(b|0)&f>>>0<=c>>>0|(b|0)>(n|0)){break b}n=E[c+D[d>>2]|0];c=c+1|0;b=c?b:b+1|0;D[d+16>>2]=c;D[d+20>>2]=b;if(!Da(1,v+52|0,d)){break b}m=D[v+52>>2];if(m>>>0>e>>>0|e>>>0>m+((m>>>0)/3|0)>>>0){break b}if(!Da(1,v+48|0,D[D[a+4>>2]+32>>2])){break b}d=D[v+48>>2];if(d>>>0>m>>>0){break b}D[a+28>>2]=D[a+24>>2];c=na(88);Xc(c);b=D[a+8>>2];D[a+8>>2]=c;if(b){cb(b);if(!D[a+8>>2]){break b}}D[a+164>>2]=D[a+160>>2];Jb(a+160|0,e);D[a+176>>2]=D[a+172>>2];Jb(a+172|0,e);D[a- -64>>2]=0;D[a+92>>2]=-1;D[a+84>>2]=-1;D[a+88>>2]=-1;D[a+40>>2]=D[a+36>>2];D[a+52>>2]=D[a+48>>2];D[a+76>>2]=D[a+72>>2];H=a+216|0;zd(H);yd(H,n);if(!Wc(D[a+8>>2],e,d+D[a+156>>2]|0)){break b}b=D[a+156>>2];B[v+8|0]=1;Ea(a+120|0,b+d|0,v+8|0);if((wd(a,D[D[a+4>>2]+32>>2])|0)==-1){break b}d=a+232|0;D[d+144>>2]=a;b=D[(ba[D[D[a>>2]+32>>2]](a)|0)+32>>2];e=D[b>>2]+D[b+16>>2]|0;c=D[(ba[D[D[a>>2]+32>>2]](a)|0)+32>>2];b=D[c+8>>2];c=D[c+16>>2];b=b-c|0;K=d,L=F[D[(ba[D[D[a>>2]+32>>2]](a)|0)+32>>2]+38>>1],C[K+38>>1]=L;D[d>>2]=e;D[d+16>>2]=0;D[d+20>>2]=0;D[d+8>>2]=b;D[d+12>>2]=0;D[a+372>>2]=n;o=v+8|0;C[o+38>>1]=0;D[o>>2]=0;D[o+8>>2]=0;D[o+12>>2]=0;D[o+16>>2]=0;D[o+20>>2]=0;D[o+24>>2]=0;D[o+28>>2]=0;B[o+29|0]=0;B[o+30|0]=0;B[o+31|0]=0;B[o+32|0]=0;B[o+33|0]=0;B[o+34|0]=0;B[o+35|0]=0;B[o+36|0]=0;b=0;n=$-16|0;$=n;e=D[d+4>>2];D[d+40>>2]=D[d>>2];D[d+44>>2]=e;e=D[d+36>>2];D[d+72>>2]=D[d+32>>2];D[d+76>>2]=e;c=D[d+28>>2];e=d- -64|0;D[e>>2]=D[d+24>>2];D[e+4>>2]=c;e=D[d+20>>2];D[d+56>>2]=D[d+16>>2];D[d+60>>2]=e;e=D[d+12>>2];D[d+48>>2]=D[d+8>>2];D[d+52>>2]=e;c:{d:{if(ec(d+40|0,1,n+8|0)){e=D[d+44>>2];D[d>>2]=D[d+40>>2];D[d+4>>2]=e;e=D[d+76>>2];D[d+32>>2]=D[d+72>>2];D[d+36>>2]=e;e=D[d+68>>2];D[d+24>>2]=D[d+64>>2];D[d+28>>2]=e;c=D[d+60>>2];h=c;e=D[d+56>>2];D[d+16>>2]=e;D[d+20>>2]=c;f=D[d+52>>2];c=D[d+48>>2];D[d+8>>2]=c;D[d+12>>2]=f;g=c-e|0;k=D[n+12>>2];f=f-((c>>>0<e>>>0)+h|0)|0;c=D[n+8>>2];if((k|0)==(f|0)&g>>>0>=c>>>0|f>>>0>k>>>0){break d}}break c}f=c+e|0;e=h+k|0;D[d+16>>2]=f;D[d+20>>2]=c>>>0>f>>>0?e+1|0:e;if(!Ma(d+80|0,d)){break c}if(!td(d)){break c}b=D[d+4>>2];D[o>>2]=D[d>>2];D[o+4>>2]=b;b=D[d+36>>2];D[o+32>>2]=D[d+32>>2];D[o+36>>2]=b;b=D[d+28>>2];D[o+24>>2]=D[d+24>>2];D[o+28>>2]=b;b=D[d+20>>2];D[o+16>>2]=D[d+16>>2];D[o+20>>2]=b;b=D[d+12>>2];D[o+8>>2]=D[d+8>>2];D[o+12>>2]=b;b=1}$=n+16|0;e:{if(!b){break e}e=0;b=0;d=0;n=0;k=$-96|0;$=k;D[k+72>>2]=0;D[k+64>>2]=0;D[k+68>>2]=0;D[k+48>>2]=0;D[k+52>>2]=0;D[k+40>>2]=0;D[k+44>>2]=0;D[k+56>>2]=1065353216;D[k+32>>2]=0;D[k+24>>2]=0;D[k+28>>2]=0;j=1;h=a;t=D[a+124>>2];f:{g:{h:{i:{j:{k:{l:{m:{if((m|0)<=0){break m}I=D[h+216>>2]!=D[h+220>>2];while(1){f=r;r=f+1|0;n:{o:{p:{q:{r:{s:{t:{u:{v:{w:{x:{if(!E[h+308|0]){break x}y:{z:{g=D[h+296>>2];c=D[h+304>>2];a=g+(c>>>3|0)|0;l=D[h+300>>2];if(a>>>0>=l>>>0){break z}i=E[a|0];a=c+1|0;D[h+304>>2]=a;if(!(i>>>(c&7)&1)){break z}i=a>>>3|0;p=g+i|0;A:{if(p>>>0>=l>>>0){c=a;a=0;break A}p=E[p|0];c=c+2|0;D[h+304>>2]=c;i=c>>>3|0;a=p>>>(a&7)&1}g=g+i|0;if(g>>>0<l>>>0){g=E[g|0];D[h+304>>2]=c+1;c=g>>>(c&7)<<1&2}else{c=0}a=(a|c)<<1;switch(a-1|0){case 0:case 2:case 4:break h;case 5:break w;case 1:case 3:break y;default:break x}}if((b|0)==(d|0)){c=-1;break l}i=-1;g=D[h+8>>2];p=D[g+24>>2];s=d-4|0;c=D[s>>2];a=-1;B:{if((c|0)==-1){break B}j=c+1|0;j=(j>>>0)%3|0?j:c-2|0;a=-1;if((j|0)==-1){break B}a=D[D[g>>2]+(j<<2)>>2]}e=D[p+(a<<2)>>2];if((e|0)!=-1){j=e+1|0;i=(j>>>0)%3|0?j:e-2|0}e=D[g+12>>2];f=J(f,3);j=f+1|0;D[e+(c<<2)>>2]=j;w=j<<2;D[w+e>>2]=c;l=f+2|0;D[e+(i<<2)>>2]=l;x=l<<2;D[x+e>>2]=i;j=-1;e=-1;C:{if((c|0)==-1){break C}D:{if((c>>>0)%3|0){c=c-1|0;break D}c=c+2|0;e=-1;if((c|0)==-1){break C}}e=D[D[g>>2]+(c<<2)>>2]}E:{if((i|0)==-1){break E}c=i+1|0;c=(c>>>0)%3|0?c:i-2|0;if((c|0)==-1){break E}j=D[D[g>>2]+(c<<2)>>2]}c=-1;if((a|0)==(e|0)|(a|0)==(j|0)){break l}c=D[g>>2];D[c+(f<<2)>>2]=a;D[c+w>>2]=j;D[c+x>>2]=e;if((e|0)!=-1){D[p+(e<<2)>>2]=l}e=D[h+120>>2]+(a>>>3&536870908)|0;c=D[e>>2];K=e,L=ei(a)&c,D[K>>2]=L;D[s>>2]=f;e=b;break n}if((b|0)==(d|0)){c=-1;break l}e=D[h+8>>2];c=D[e+12>>2];g=J(f,3);p=(a|1)==5;i=g+(p?2:1)|0;w=i<<2;x=d-4|0;a=D[x>>2];D[c+w>>2]=a;D[c+(a<<2)>>2]=i;Sa(e+24|0);c=-1;s=D[h+8>>2];l=D[s+24>>2];if((t|0)<D[s+28>>2]-l>>2){break l}c=D[s>>2];e=D[e+28>>2]-D[e+24>>2]|0;s=(e>>2)-1|0;D[c+w>>2]=s;if(e){D[l+(s<<2)>>2]=i}i=p?g:g+2|0;p=c+(g+p<<2)|0;F:{if((a|0)==-1){D[c+(i<<2)>>2]=-1;e=-1;break F}G:{H:{I:{if((a>>>0)%3|0){e=a-1|0;break I}e=a+2|0;if((e|0)==-1){break H}}e=D[c+(e<<2)>>2];D[c+(i<<2)>>2]=e;if((e|0)==-1){break G}D[l+(e<<2)>>2]=i;break G}D[c+(i<<2)>>2]=-1}i=a+1|0;a=(i>>>0)%3|0?i:a-2|0;e=-1;if((a|0)==-1){break F}e=D[c+(a<<2)>>2]}D[p>>2]=e;D[x>>2]=g;e=b;break v}if((b|0)==(d|0)){c=-1;break l}a=d-4|0;l=D[a>>2];D[k+68>>2]=a;i=D[k+44>>2];J:{if(!i){d=a;break J}g=di(i)>>>0>1;K:{if(!g){e=f&i+2147483647;break K}e=f;if(i>>>0>e>>>0){break K}e=(f>>>0)%(i>>>0)|0}c=D[D[k+40>>2]+(e<<2)>>2];if(!c){d=a;break J}c=D[c>>2];if(!c){d=a;break J}L:{if(!g){g=i-1|0;while(1){i=D[c+4>>2];M:{if((i|0)!=(f|0)){if((g&i)==(e|0)){break M}d=a;break J}if((f|0)==D[c+8>>2]){break L}}c=D[c>>2];if(c){continue}break}d=a;break J}while(1){g=D[c+4>>2];N:{if((g|0)!=(f|0)){if(g>>>0>=i>>>0){g=(g>>>0)%(i>>>0)|0}if((e|0)==(g|0)){break N}d=a;break J}if((f|0)==D[c+8>>2]){break L}}c=D[c>>2];if(c){continue}break}d=a;break J}if((a|0)!=(u|0)){D[a>>2]=D[c+12>>2];D[k+68>>2]=d;break J}a=u-b|0;e=a>>2;d=e+1|0;if(d>>>0>=1073741824){break t}q=a>>1;d=a>>>0<2147483644?d>>>0>q>>>0?d:q:1073741823;if(d){if(d>>>0>=1073741824){break g}q=na(d<<2)}else{q=0}e=q+(e<<2)|0;D[e>>2]=D[c+12>>2];u=(d<<2)+q|0;d=e+4|0;if((a|0)>0){oa(q,b,a)}D[k+72>>2]=u;D[k+68>>2]=d;D[k+64>>2]=q;if(!b){break J}ma(b)}if((d|0)==(q|0)){break u}w=d-4|0;a=D[w>>2];e=(a|0)==-1;b=D[h+8>>2];if(!e&D[D[b+12>>2]+(a<<2)>>2]!=-1){break u}g=D[b+12>>2];if((l|0)!=-1&D[g+(l<<2)>>2]!=-1){break u}f=J(f,3);s=f+2|0;D[g+(a<<2)>>2]=s;p=s<<2;D[p+g>>2]=a;c=f+1|0;D[g+(l<<2)>>2]=c;x=c<<2;D[x+g>>2]=l;if(e){break s}if((a>>>0)%3|0){j=a-1|0;break q}j=a+2|0;if((j|0)!=-1){break q}i=D[b>>2];e=-1;break p}i=D[h+8>>2];Sa(i+24|0);c=-1;g=D[h+8>>2];a=J(f,3);l=D[i+28>>2]-D[i+24>>2]|0;i=l>>2;s=i-1|0;D[D[g>>2]+(a<<2)>>2]=s;Sa(g+24|0);p=a+1|0;D[D[g>>2]+(p<<2)>>2]=(D[g+28>>2]-D[g+24>>2]>>2)-1;g=D[h+8>>2];Sa(g+24|0);w=a+2|0;D[D[g>>2]+(w<<2)>>2]=(D[g+28>>2]-D[g+24>>2]>>2)-1;x=D[h+8>>2];g=D[x+24>>2];if((t|0)<D[x+28>>2]-g>>2){break l}O:{P:{if(!l){D[g+(i<<2)>>2]=p;c=1;break P}D[g+(s<<2)>>2]=a;c=0;if((l|0)==-4){break P}D[g+(i<<2)>>2]=p;c=i+1|0;if((c|0)==-1){break O}}D[g+(c<<2)>>2]=w}if((d|0)!=(u|0)){D[d>>2]=a;d=d+4|0;D[k+68>>2]=d;break v}b=d-e|0;c=b>>2;d=c+1|0;if(d>>>0>=1073741824){break r}q=b>>1;d=b>>>0<2147483644?d>>>0>q>>>0?d:q:1073741823;if(d){if(d>>>0>=1073741824){break g}q=na(d<<2)}else{q=0}c=q+(c<<2)|0;D[c>>2]=a;u=(d<<2)+q|0;d=c+4|0;if((b|0)>0){oa(q,e,b)}D[k+72>>2]=u;D[k+68>>2]=d;D[k+64>>2]=q;if(e){ma(e)}b=q;e=b}c=D[h+40>>2];if((c|0)==D[h+36>>2]){break n}f=m+(f^-1)|0;g=d-4|0;while(1){a=D[c-8>>2];if(a>>>0>f>>>0){break u}if((a|0)!=(f|0)){break n}i=E[c-4|0];a=c-12|0;c=D[a>>2];D[h+40>>2]=a;if((c|0)<0){break u}a=D[g>>2];D[k+20>>2]=m+(c^-1);c=k+20|0;D[k+88>>2]=c;sd(k,k+40|0,c,k+88|0);p=D[k>>2];Q:{if(i&1){c=-1;if((a|0)==-1){break Q}c=a+1|0;c=(c>>>0)%3|0?c:a-2|0;break Q}c=-1;if((a|0)==-1){break Q}c=a-1|0;if((a>>>0)%3|0){break Q}c=a+2|0}D[p+12>>2]=c;c=D[h+40>>2];if((c|0)!=D[h+36>>2]){continue}break}break n}c=-1;if(j&1){break l}break m}qa();T()}e=-1;i=D[b>>2];D[i+(f<<2)>>2]=-1;c=-1;break o}qa();T()}i=D[b>>2];e=D[i+(j<<2)>>2]}D[(f<<2)+i>>2]=e;j=a+1|0;a=(j>>>0)%3|0?j:a-2|0;c=-1;if((a|0)==-1){break o}c=D[(a<<2)+i>>2]}D[i+x>>2]=c;R:{if((l|0)==-1){D[i+p>>2]=-1;j=-1;c=-1;break R}S:{T:{U:{if((l>>>0)%3|0){c=l-1|0;break U}c=l+2|0;if((c|0)==-1){break T}}a=D[(c<<2)+i>>2];D[i+p>>2]=a;if((a|0)==-1){break S}D[D[b+24>>2]+(a<<2)>>2]=s;break S}D[i+p>>2]=-1}j=-1;a=l+1|0;a=(a>>>0)%3|0?a:l-2|0;c=-1;if((a|0)==-1){break R}j=D[(a<<2)+i>>2];c=a}b=D[b+24>>2];a=b+(j<<2)|0;if((e|0)!=-1){D[b+(e<<2)>>2]=D[a>>2]}V:{if((c|0)==-1){break V}while(1){D[(c<<2)+i>>2]=e;b=c+1|0;b=(b>>>0)%3|0?b:c-2|0;if((b|0)==-1){break V}b=D[g+(b<<2)>>2];if((b|0)==-1){break V}c=b+1|0;c=(c>>>0)%3|0?c:b-2|0;if((c|0)!=-1){continue}break}}D[a>>2]=-1;W:{if(I){break W}if((y|0)!=(z|0)){D[y>>2]=j;y=y+4|0;D[k+28>>2]=y;break W}X:{b=z-n|0;c=b>>2;a=c+1|0;if(a>>>0<1073741824){e=b>>1;e=b>>>0<2147483644?a>>>0>e>>>0?a:e:1073741823;if(e){if(e>>>0>=1073741824){break X}a=na(e<<2)}else{a=0}c=a+(c<<2)|0;D[c>>2]=j;z=a+(e<<2)|0;y=c+4|0;if((b|0)>0){oa(a,n,b)}D[k+32>>2]=z;D[k+28>>2]=y;D[k+24>>2]=a;if(n){ma(n)}n=a;break W}qa();T()}break g}D[w>>2]=f;b=q;e=b}j=(m|0)>(r|0);if((m|0)!=(r|0)){continue}break}r=m}c=-1;j=D[h+8>>2];if((t|0)<D[j+28>>2]-D[j+24>>2]>>2){break l}if((d|0)!=(q|0)){a=h+60|0;p=h+312|0;while(1){d=d-4|0;l=D[d>>2];D[k+68>>2]=d;Y:{if(Ga(p)){t=D[h+8>>2];u=D[t>>2];if(((D[t+4>>2]-u>>2>>>0)/3|0)<=(r|0)){break l}b=-1;e=-1;m=D[t+24>>2];f=-1;Z:{if((l|0)==-1){break Z}g=l+1|0;g=(g>>>0)%3|0?g:l-2|0;f=-1;if((g|0)==-1){break Z}f=D[u+(g<<2)>>2]}g=f;f=D[m+(g<<2)>>2];_:{if((f|0)==-1){break _}j=f+1|0;f=(j>>>0)%3|0?j:f-2|0;if((f|0)==-1){break _}b=f+1|0;b=(b>>>0)%3|0?b:f-2|0;if((b|0)!=-1){e=D[u+(b<<2)>>2]}b=f}j=-1;i=-1;m=D[m+(e<<2)>>2];f=-1;$:{if((m|0)==-1){break $}z=m+1|0;m=(z>>>0)%3|0?z:m-2|0;f=-1;if((m|0)==-1){break $}f=m+1|0;f=(f>>>0)%3|0?f:m-2|0;if((f|0)!=-1){i=D[u+(f<<2)>>2]}f=m}t=D[t+12>>2];m=J(r,3);z=m<<2;D[t+z>>2]=l;D[t+(l<<2)>>2]=m;l=m+1|0;s=l<<2;D[s+t>>2]=b;D[t+(b<<2)>>2]=l;b=m+2|0;I=b<<2;D[I+t>>2]=f;D[t+(f<<2)>>2]=b;D[u+z>>2]=e;f=u+s|0;D[f>>2]=i;i=u+I|0;D[i>>2]=g;g=l>>>0<m>>>0?-1:e;e=D[h+120>>2];u=(g>>>3&536870908)+e|0;t=D[u>>2];K=u,L=ei(g)&t,D[K>>2]=L;j=(l|0)!=-1?D[f>>2]:j;f=e+(j>>>3&536870908)|0;g=D[f>>2];K=f,L=ei(j)&g,D[K>>2]=L;j=-1;j=(b|0)!=-1?D[i>>2]:j;b=e+(j>>>3&536870908)|0;e=D[b>>2];K=b,L=ei(j)&e,D[K>>2]=L;j=D[h+64>>2];b=D[h+68>>2];if((j|0)==b<<5){if((j+1|0)<0){break k}if(j>>>0<=1073741822){e=j+32&-32;b=b<<6;b=b>>>0<e>>>0?e:b}else{b=2147483647}Va(a,b);j=D[h+64>>2]}r=r+1|0;D[h+64>>2]=j+1;b=D[h+60>>2]+(j>>>3&536870908)|0;D[b>>2]=D[b>>2]|1<<j;b=D[h+76>>2];if((b|0)!=D[h+80>>2]){D[b>>2]=m;D[h+76>>2]=b+4;break Y}f=D[h+72>>2];e=b-f|0;j=e>>2;b=j+1|0;if(b>>>0>=1073741824){break j}g=e>>1;g=e>>>0<2147483644?b>>>0>g>>>0?b:g:1073741823;if(g){if(g>>>0>=1073741824){break g}b=na(g<<2)}else{b=0}j=b+(j<<2)|0;D[j>>2]=m;if((e|0)>0){oa(b,f,e)}D[h+80>>2]=b+(g<<2);D[h+76>>2]=j+4;D[h+72>>2]=b;if(!f){break Y}ma(f);break Y}b=D[h+64>>2];e=D[h+68>>2];if((b|0)==e<<5){if((b+1|0)<0){break k}if(b>>>0<=1073741822){b=b+32&-32;e=e<<6;b=b>>>0>e>>>0?b:e}else{b=2147483647}Va(a,b);b=D[h+64>>2]}D[h+64>>2]=b+1;e=D[h+60>>2]+(b>>>3&536870908)|0;f=D[e>>2];K=e,L=ei(b)&f,D[K>>2]=L;b=D[h+76>>2];if((b|0)!=D[h+80>>2]){D[b>>2]=l;D[h+76>>2]=b+4;break Y}f=D[h+72>>2];e=b-f|0;g=e>>2;b=g+1|0;if(b>>>0>=1073741824){break j}m=e>>1;m=e>>>0<2147483644?b>>>0>m>>>0?b:m:1073741823;if(m){if(m>>>0>=1073741824){break i}b=na(m<<2)}else{b=0}g=b+(g<<2)|0;D[g>>2]=l;if((e|0)>0){oa(b,f,e)}D[h+80>>2]=b+(m<<2);D[h+76>>2]=g+4;D[h+72>>2]=b;if(!f){break Y}ma(f)}if((d|0)!=(q|0)){continue}break}j=D[h+8>>2]}if(((D[j+4>>2]-D[j>>2]>>2>>>0)/3|0)!=(r|0)){break l}r=D[j+24>>2];c=D[j+28>>2]-r>>2;if((n|0)==(y|0)){n=y;break l}e=n;while(1){a=D[e>>2];d=c-1|0;i=(d<<2)+r|0;if(D[i>>2]==-1){while(1){d=c-2|0;c=c-1|0;i=(d<<2)+r|0;if(D[i>>2]==-1){continue}break}}if(a>>>0<=d>>>0){D[k>>2]=j;r=D[i>>2];B[k+12|0]=1;D[k+8>>2]=r;D[k+4>>2]=r;if((r|0)!=-1){while(1){D[D[j>>2]+(r<<2)>>2]=a;lc(k);j=D[h+8>>2];r=D[k+8>>2];if((r|0)!=-1){continue}break}}r=D[j+24>>2];b=r+(d<<2)|0;if((a|0)!=-1){D[(a<<2)+r>>2]=D[b>>2]}D[b>>2]=-1;b=1<<a;f=D[h+120>>2];a=f+(a>>>3&536870908)|0;f=f+(d>>>3&536870908)|0;d=1<<d;if(D[f>>2]&d){b=b|D[a>>2]}else{b=D[a>>2]&(b^-1)}D[a>>2]=b;D[f>>2]=D[f>>2]&(d^-1);c=c-1|0}e=e+4|0;if((y|0)!=(e|0)){continue}break}}if(n){ma(n)}d=D[k+48>>2];if(d){while(1){a=D[d>>2];ma(d);d=a;if(a){continue}break}}a=D[k+40>>2];D[k+40>>2]=0;if(a){ma(a)}if(q){D[k+68>>2]=q;ma(q)}$=k+96|0;break f}Fa();T()}qa();T()}ra(1326)}T()}ra(1326);T()}if((c|0)==-1){break e}a=D[o+16>>2];d=a+D[o>>2]|0;b=D[o+8>>2];b=b-a|0;a=D[D[h+4>>2]+32>>2];C[a+38>>1]=F[a+38>>1];D[a>>2]=d;D[a+16>>2]=0;D[a+20>>2]=0;D[a+8>>2]=b;D[a+12>>2]=0;aa:{if(D[h+216>>2]==D[h+220>>2]){break aa}a=D[h+8>>2];if(D[a+4>>2]==D[a>>2]){break aa}b=0;while(1){if(vd(h,b)){b=b+3|0;a=D[h+8>>2];if(b>>>0<D[a+4>>2]-D[a>>2]>>2>>>0){continue}break aa}break}break e}if(E[h+308|0]){B[h+308|0]=0;d=D[h+292>>2];a=0;b=D[h+304>>2]+7|0;a=b>>>0<7?1:a;e=a>>>3|0;b=a<<29|b>>>3;a=b+D[h+288>>2]|0;e=d+e|0;D[h+288>>2]=a;D[h+292>>2]=a>>>0<b>>>0?e+1|0:e}b=D[h+216>>2];if((b|0)!=D[h+220>>2]){while(1){a=J(A,144);Uc((a+b|0)+4|0,D[h+8>>2]);n=D[H>>2];d=a+n|0;b=D[d+132>>2];d=D[d+136>>2];if((b|0)!=(d|0)){while(1){Sc((a+n|0)+4|0,D[b>>2]);n=D[H>>2];b=b+4|0;if((d|0)!=(b|0)){continue}break}}Tc((a+n|0)+4|0);A=A+1|0;b=D[h+216>>2];if(A>>>0<(D[h+220>>2]-b|0)/144>>>0){continue}break}}a=D[h+8>>2];Ib(h+184|0,D[a+28>>2]-D[a+24>>2]>>2);n=D[h+216>>2];if((n|0)!=D[h+220>>2]){b=0;while(1){a=J(b,144)+n|0;d=D[a+60>>2]-D[a+56>>2]>>2;e=a+104|0;a=D[h+8>>2];a=D[a+28>>2]-D[a+24>>2]>>2;Ib(e,(a|0)>(d|0)?a:d);b=b+1|0;n=D[h+216>>2];if(b>>>0<(D[h+220>>2]-n|0)/144>>>0){continue}break}}A=ud(h,c)}}$=v- -64|0;return A|0}function lf(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;a:{b:{c:{d:{e:{switch(d-1|0){case 0:a=0;m=$-16|0;$=m;j=D[b+80>>2];g=B[c+24|0];f:{if((J(j,g)|0)!=(e|0)){break f}b=D[c+28>>2]!=1;a=E[c+84|0];if(!(b|!a)){oa(f,D[D[c>>2]>>2]+D[c+48>>2]|0,e);a=1;break f}d=0;D[m+8>>2]=0;D[m>>2]=0;D[m+4>>2]=0;if(g){if((g|0)<0){break d}h=na(g);D[m>>2]=h;pa(h,0,g)}g:{h:{if(!j){break h}if(!b){if(g){n=g&-4;l=g&3;b=0;o=g-1>>>0<3;while(1){e=D[D[c>>2]>>2];p=D[c+40>>2];a=D[c+48>>2]+ai(p,D[c+44>>2],a&255?d:D[D[c+68>>2]+(d<<2)>>2],0)|0;g=oa(h,e+a|0,p);e=0;a=0;i=0;if(!o){while(1){k=b+f|0;B[k|0]=E[a+g|0];B[k+1|0]=E[g+(a|1)|0];B[k+2|0]=E[g+(a|2)|0];B[k+3|0]=E[g+(a|3)|0];a=a+4|0;b=b+4|0;i=i+4|0;if((n|0)!=(i|0)){continue}break}}if(l){while(1){B[b+f|0]=E[a+g|0];a=a+1|0;b=b+1|0;e=e+1|0;if((l|0)!=(e|0)){continue}break}}a=1;d=d+1|0;if((j|0)==(d|0)){break g}a=E[c+84|0];continue}}l=D[c>>2];e=D[c+48>>2];o=D[c+68>>2];f=D[c+44>>2];c=D[c+40>>2];p=c;b=0;if((j|0)!=1){q=j&-2;s=a&255;while(1){g=b|1;n=D[l>>2];k=ai(c,f,s?b:D[o+(b<<2)>>2],0)+e|0;k=oa(h,n+k|0,p);r=D[l>>2];if(!s){g=D[o+(g<<2)>>2]}g=ai(c,f,g,0)+e|0;oa(k,g+r|0,p);b=b+2|0;i=i+2|0;if((q|0)!=(i|0)){continue}break}}if(!(j&1)){break h}i=D[l>>2];if(!(a&255)){b=D[o+(b<<2)>>2]}a=ai(c,f,b,0)+e|0;oa(h,a+i|0,p);break h}if(!g){b=0;d=1;while(1){if(!Eb(c,a&255?b:D[D[c+68>>2]+(b<<2)>>2],B[c+24|0],h)){break h}b=b+1|0;d=j>>>0>b>>>0;if((b|0)==(j|0)){break h}a=E[c+84|0];continue}}l=g&-4;k=g&3;b=0;n=g-1>>>0<3;d=1;while(1){if(!Eb(c,a&255?i:D[D[c+68>>2]+(i<<2)>>2],B[c+24|0],h)){break h}d=0;a=0;e=0;if(!n){while(1){g=b+f|0;B[g|0]=E[a+h|0];B[g+1|0]=E[(a|1)+h|0];B[g+2|0]=E[(a|2)+h|0];B[g+3|0]=E[(a|3)+h|0];a=a+4|0;b=b+4|0;e=e+4|0;if((l|0)!=(e|0)){continue}break}}if(k){while(1){B[b+f|0]=E[a+h|0];a=a+1|0;b=b+1|0;d=d+1|0;if((k|0)!=(d|0)){continue}break}}i=i+1|0;if((j|0)!=(i|0)){d=i>>>0<j>>>0;a=E[c+84|0];continue}break}a=i>>>0>=j>>>0;break g}a=d^1;if(!h){break f}}ma(h)}break c;case 2:a=0;m=$-16|0;$=m;d=B[c+24|0];g=d<<1;j=D[b+80>>2];i:{if((J(g,j)|0)!=(e|0)){break i}b=D[c+28>>2]!=3;a=E[c+84|0];if(!(b|!a)){oa(f,D[D[c>>2]>>2]+D[c+48>>2]|0,e);a=1;break i}D[m+8>>2]=0;D[m>>2]=0;D[m+4>>2]=0;if(d){if((d|0)<0){break d}h=na(g);D[m>>2]=h;pa(h,0,d<<1)}j:{k:{if(!j){break k}if(!b){n=D[c>>2];e=D[c+48>>2];p=D[c+68>>2];g=D[c+44>>2];k=D[c+40>>2];s=k;if(d){t=d&-4;o=d&3;b=0;u=a&255;v=d-1>>>0<3;d=0;while(1){c=D[n>>2];a=ai(k,g,u?d:D[p+(d<<2)>>2],0)+e|0;l=oa(h,c+a|0,s);i=0;a=0;c=0;if(!v){while(1){q=(b<<1)+f|0;r=a<<1;C[q>>1]=F[r+l>>1];C[q+2>>1]=F[l+(r|2)>>1];C[q+4>>1]=F[l+(r|4)>>1];C[q+6>>1]=F[l+(r|6)>>1];a=a+4|0;b=b+4|0;c=c+4|0;if((t|0)!=(c|0)){continue}break}}if(o){while(1){C[(b<<1)+f>>1]=F[l+(a<<1)>>1];a=a+1|0;b=b+1|0;i=i+1|0;if((o|0)!=(i|0)){continue}break}}a=1;d=d+1|0;if((j|0)!=(d|0)){continue}break}break j}b=0;if((j|0)!=1){q=j&-2;l=a&255;d=0;while(1){c=b|1;o=D[n>>2];f=ai(k,g,l?b:D[p+(b<<2)>>2],0)+e|0;f=oa(h,o+f|0,s);r=D[n>>2];if(!l){c=D[p+(c<<2)>>2]}c=ai(k,g,c,0)+e|0;oa(f,c+r|0,s);b=b+2|0;d=d+2|0;if((q|0)!=(d|0)){continue}break}}if(!(j&1)){break k}c=D[n>>2];if(!(a&255)){b=D[p+(b<<2)>>2]}a=ai(k,g,b,0)+e|0;oa(h,a+c|0,s);break k}if(!d){b=0;i=1;while(1){if(!Cb(c,a&255?b:D[D[c+68>>2]+(b<<2)>>2],B[c+24|0],h)){break k}b=b+1|0;i=j>>>0>b>>>0;if((b|0)==(j|0)){break k}a=E[c+84|0];continue}}n=d&-4;l=d&3;b=0;o=d-1>>>0<3;i=1;d=0;while(1){if(!Cb(c,a&255?d:D[D[c+68>>2]+(d<<2)>>2],B[c+24|0],h)){break k}e=0;a=0;i=0;if(!o){while(1){g=(b<<1)+f|0;k=a<<1;C[g>>1]=F[k+h>>1];C[g+2>>1]=F[(k|2)+h>>1];C[g+4>>1]=F[(k|4)+h>>1];C[g+6>>1]=F[(k|6)+h>>1];a=a+4|0;b=b+4|0;i=i+4|0;if((n|0)!=(i|0)){continue}break}}if(l){while(1){C[(b<<1)+f>>1]=F[(a<<1)+h>>1];a=a+1|0;b=b+1|0;e=e+1|0;if((l|0)!=(e|0)){continue}break}}d=d+1|0;if((j|0)!=(d|0)){i=d>>>0<j>>>0;a=E[c+84|0];continue}break}a=d>>>0>=j>>>0;break j}a=!i;if(!h){break i}}ma(h)}break b;case 4:a=0;m=$-16|0;$=m;d=B[c+24|0];g=d<<2;j=D[b+80>>2];l:{if((J(g,j)|0)!=(e|0)){break l}b=D[c+28>>2]!=5;a=E[c+84|0];if(!(b|!a)){oa(f,D[D[c>>2]>>2]+D[c+48>>2]|0,e);a=1;break l}D[m+8>>2]=0;D[m>>2]=0;D[m+4>>2]=0;if(d){if((d|0)<0){break d}h=na(g);D[m>>2]=h;pa(h,0,d<<2)}m:{n:{if(!j){break n}if(!b){n=D[c>>2];e=D[c+48>>2];p=D[c+68>>2];g=D[c+44>>2];k=D[c+40>>2];s=k;if(d){t=d&-4;o=d&3;b=0;u=a&255;v=d-1>>>0<3;d=0;while(1){c=D[n>>2];a=ai(k,g,u?d:D[p+(d<<2)>>2],0)+e|0;l=oa(h,c+a|0,s);i=0;a=0;c=0;if(!v){while(1){q=(b<<2)+f|0;r=a<<2;D[q>>2]=D[r+l>>2];D[q+4>>2]=D[l+(r|4)>>2];D[q+8>>2]=D[l+(r|8)>>2];D[q+12>>2]=D[l+(r|12)>>2];a=a+4|0;b=b+4|0;c=c+4|0;if((t|0)!=(c|0)){continue}break}}if(o){while(1){D[(b<<2)+f>>2]=D[l+(a<<2)>>2];a=a+1|0;b=b+1|0;i=i+1|0;if((o|0)!=(i|0)){continue}break}}a=1;d=d+1|0;if((j|0)!=(d|0)){continue}break}break m}b=0;if((j|0)!=1){q=j&-2;l=a&255;d=0;while(1){c=b|1;o=D[n>>2];f=ai(k,g,l?b:D[p+(b<<2)>>2],0)+e|0;f=oa(h,o+f|0,s);r=D[n>>2];if(!l){c=D[p+(c<<2)>>2]}c=ai(k,g,c,0)+e|0;oa(f,c+r|0,s);b=b+2|0;d=d+2|0;if((q|0)!=(d|0)){continue}break}}if(!(j&1)){break n}c=D[n>>2];if(!(a&255)){b=D[p+(b<<2)>>2]}a=ai(k,g,b,0)+e|0;oa(h,a+c|0,s);break n}if(!d){b=0;i=1;while(1){if(!Ab(c,a&255?b:D[D[c+68>>2]+(b<<2)>>2],B[c+24|0],h)){break n}b=b+1|0;i=j>>>0>b>>>0;if((b|0)==(j|0)){break n}a=E[c+84|0];continue}}n=d&-4;l=d&3;b=0;o=d-1>>>0<3;i=1;d=0;while(1){if(!Ab(c,a&255?d:D[D[c+68>>2]+(d<<2)>>2],B[c+24|0],h)){break n}e=0;a=0;i=0;if(!o){while(1){g=(b<<2)+f|0;k=a<<2;D[g>>2]=D[k+h>>2];D[g+4>>2]=D[(k|4)+h>>2];D[g+8>>2]=D[(k|8)+h>>2];D[g+12>>2]=D[(k|12)+h>>2];a=a+4|0;b=b+4|0;i=i+4|0;if((n|0)!=(i|0)){continue}break}}if(l){while(1){D[(b<<2)+f>>2]=D[(a<<2)+h>>2];a=a+1|0;b=b+1|0;e=e+1|0;if((l|0)!=(e|0)){continue}break}}d=d+1|0;if((j|0)!=(d|0)){i=d>>>0<j>>>0;a=E[c+84|0];continue}break}a=d>>>0>=j>>>0;break m}a=!i;if(!h){break l}}ma(h)}break b;case 1:a=0;m=$-16|0;$=m;j=D[b+80>>2];g=B[c+24|0];o:{if((J(j,g)|0)!=(e|0)){break o}b=D[c+28>>2]!=2;a=E[c+84|0];if(!(b|!a)){oa(f,D[D[c>>2]>>2]+D[c+48>>2]|0,e);a=1;break o}d=0;D[m+8>>2]=0;D[m>>2]=0;D[m+4>>2]=0;if(g){if((g|0)<0){break d}h=na(g);D[m>>2]=h;pa(h,0,g)}p:{q:{if(!j){break q}if(!b){if(g){n=g&-4;l=g&3;b=0;o=g-1>>>0<3;while(1){e=D[D[c>>2]>>2];p=D[c+40>>2];a=D[c+48>>2]+ai(p,D[c+44>>2],a&255?d:D[D[c+68>>2]+(d<<2)>>2],0)|0;g=oa(h,e+a|0,p);e=0;a=0;i=0;if(!o){while(1){k=b+f|0;B[k|0]=E[a+g|0];B[k+1|0]=E[g+(a|1)|0];B[k+2|0]=E[g+(a|2)|0];B[k+3|0]=E[g+(a|3)|0];a=a+4|0;b=b+4|0;i=i+4|0;if((n|0)!=(i|0)){continue}break}}if(l){while(1){B[b+f|0]=E[a+g|0];a=a+1|0;b=b+1|0;e=e+1|0;if((l|0)!=(e|0)){continue}break}}a=1;d=d+1|0;if((j|0)==(d|0)){break p}a=E[c+84|0];continue}}l=D[c>>2];e=D[c+48>>2];o=D[c+68>>2];f=D[c+44>>2];c=D[c+40>>2];p=c;b=0;if((j|0)!=1){q=j&-2;s=a&255;while(1){g=b|1;n=D[l>>2];k=ai(c,f,s?b:D[o+(b<<2)>>2],0)+e|0;k=oa(h,n+k|0,p);r=D[l>>2];if(!s){g=D[o+(g<<2)>>2]}g=ai(c,f,g,0)+e|0;oa(k,g+r|0,p);b=b+2|0;i=i+2|0;if((q|0)!=(i|0)){continue}break}}if(!(j&1)){break q}i=D[l>>2];if(!(a&255)){b=D[o+(b<<2)>>2]}a=ai(c,f,b,0)+e|0;oa(h,a+i|0,p);break q}if(!g){b=0;d=1;while(1){if(!Db(c,a&255?b:D[D[c+68>>2]+(b<<2)>>2],B[c+24|0],h)){break q}b=b+1|0;d=j>>>0>b>>>0;if((b|0)==(j|0)){break q}a=E[c+84|0];continue}}l=g&-4;k=g&3;b=0;n=g-1>>>0<3;d=1;while(1){if(!Db(c,a&255?i:D[D[c+68>>2]+(i<<2)>>2],B[c+24|0],h)){break q}d=0;a=0;e=0;if(!n){while(1){g=b+f|0;B[g|0]=E[a+h|0];B[g+1|0]=E[(a|1)+h|0];B[g+2|0]=E[(a|2)+h|0];B[g+3|0]=E[(a|3)+h|0];a=a+4|0;b=b+4|0;e=e+4|0;if((l|0)!=(e|0)){continue}break}}if(k){while(1){B[b+f|0]=E[a+h|0];a=a+1|0;b=b+1|0;d=d+1|0;if((k|0)!=(d|0)){continue}break}}i=i+1|0;if((j|0)!=(i|0)){d=i>>>0<j>>>0;a=E[c+84|0];continue}break}a=i>>>0>=j>>>0;break p}a=d^1;if(!h){break o}}ma(h)}break c;case 3:a=0;m=$-16|0;$=m;d=B[c+24|0];g=d<<1;j=D[b+80>>2];r:{if((J(g,j)|0)!=(e|0)){break r}b=D[c+28>>2]!=4;a=E[c+84|0];if(!(b|!a)){oa(f,D[D[c>>2]>>2]+D[c+48>>2]|0,e);a=1;break r}D[m+8>>2]=0;D[m>>2]=0;D[m+4>>2]=0;if(d){if((d|0)<0){break d}h=na(g);D[m>>2]=h;pa(h,0,d<<1)}s:{t:{if(!j){break t}if(!b){n=D[c>>2];e=D[c+48>>2];p=D[c+68>>2];g=D[c+44>>2];k=D[c+40>>2];s=k;if(d){t=d&-4;o=d&3;b=0;u=a&255;v=d-1>>>0<3;d=0;while(1){c=D[n>>2];a=ai(k,g,u?d:D[p+(d<<2)>>2],0)+e|0;l=oa(h,c+a|0,s);i=0;a=0;c=0;if(!v){while(1){q=(b<<1)+f|0;r=a<<1;C[q>>1]=F[r+l>>1];C[q+2>>1]=F[l+(r|2)>>1];C[q+4>>1]=F[l+(r|4)>>1];C[q+6>>1]=F[l+(r|6)>>1];a=a+4|0;b=b+4|0;c=c+4|0;if((t|0)!=(c|0)){continue}break}}if(o){while(1){C[(b<<1)+f>>1]=F[l+(a<<1)>>1];a=a+1|0;b=b+1|0;i=i+1|0;if((o|0)!=(i|0)){continue}break}}a=1;d=d+1|0;if((j|0)!=(d|0)){continue}break}break s}b=0;if((j|0)!=1){q=j&-2;l=a&255;d=0;while(1){c=b|1;o=D[n>>2];f=ai(k,g,l?b:D[p+(b<<2)>>2],0)+e|0;f=oa(h,o+f|0,s);r=D[n>>2];if(!l){c=D[p+(c<<2)>>2]}c=ai(k,g,c,0)+e|0;oa(f,c+r|0,s);b=b+2|0;d=d+2|0;if((q|0)!=(d|0)){continue}break}}if(!(j&1)){break t}c=D[n>>2];if(!(a&255)){b=D[p+(b<<2)>>2]}a=ai(k,g,b,0)+e|0;oa(h,a+c|0,s);break t}if(!d){b=0;i=1;while(1){if(!Bb(c,a&255?b:D[D[c+68>>2]+(b<<2)>>2],B[c+24|0],h)){break t}b=b+1|0;i=j>>>0>b>>>0;if((b|0)==(j|0)){break t}a=E[c+84|0];continue}}n=d&-4;l=d&3;b=0;o=d-1>>>0<3;i=1;d=0;while(1){if(!Bb(c,a&255?d:D[D[c+68>>2]+(d<<2)>>2],B[c+24|0],h)){break t}e=0;a=0;i=0;if(!o){while(1){g=(b<<1)+f|0;k=a<<1;C[g>>1]=F[k+h>>1];C[g+2>>1]=F[(k|2)+h>>1];C[g+4>>1]=F[(k|4)+h>>1];C[g+6>>1]=F[(k|6)+h>>1];a=a+4|0;b=b+4|0;i=i+4|0;if((n|0)!=(i|0)){continue}break}}if(l){while(1){C[(b<<1)+f>>1]=F[(a<<1)+h>>1];a=a+1|0;b=b+1|0;e=e+1|0;if((l|0)!=(e|0)){continue}break}}d=d+1|0;if((j|0)!=(d|0)){i=d>>>0<j>>>0;a=E[c+84|0];continue}break}a=d>>>0>=j>>>0;break s}a=!i;if(!h){break r}}ma(h)}break b;case 5:a=0;m=$-16|0;$=m;d=B[c+24|0];g=d<<2;j=D[b+80>>2];u:{if((J(g,j)|0)!=(e|0)){break u}b=D[c+28>>2]!=6;a=E[c+84|0];if(!(b|!a)){oa(f,D[D[c>>2]>>2]+D[c+48>>2]|0,e);a=1;break u}D[m+8>>2]=0;D[m>>2]=0;D[m+4>>2]=0;if(d){if((d|0)<0){break d}h=na(g);D[m>>2]=h;pa(h,0,d<<2)}v:{w:{if(!j){break w}if(!b){n=D[c>>2];e=D[c+48>>2];p=D[c+68>>2];g=D[c+44>>2];k=D[c+40>>2];s=k;if(d){t=d&-4;o=d&3;b=0;u=a&255;v=d-1>>>0<3;d=0;while(1){c=D[n>>2];a=ai(k,g,u?d:D[p+(d<<2)>>2],0)+e|0;l=oa(h,c+a|0,s);i=0;a=0;c=0;if(!v){while(1){q=(b<<2)+f|0;r=a<<2;D[q>>2]=D[r+l>>2];D[q+4>>2]=D[l+(r|4)>>2];D[q+8>>2]=D[l+(r|8)>>2];D[q+12>>2]=D[l+(r|12)>>2];a=a+4|0;b=b+4|0;c=c+4|0;if((t|0)!=(c|0)){continue}break}}if(o){while(1){D[(b<<2)+f>>2]=D[l+(a<<2)>>2];a=a+1|0;b=b+1|0;i=i+1|0;if((o|0)!=(i|0)){continue}break}}a=1;d=d+1|0;if((j|0)!=(d|0)){continue}break}break v}b=0;if((j|0)!=1){q=j&-2;l=a&255;d=0;while(1){c=b|1;o=D[n>>2];f=ai(k,g,l?b:D[p+(b<<2)>>2],0)+e|0;f=oa(h,o+f|0,s);r=D[n>>2];if(!l){c=D[p+(c<<2)>>2]}c=ai(k,g,c,0)+e|0;oa(f,c+r|0,s);b=b+2|0;d=d+2|0;if((q|0)!=(d|0)){continue}break}}if(!(j&1)){break w}c=D[n>>2];if(!(a&255)){b=D[p+(b<<2)>>2]}a=ai(k,g,b,0)+e|0;oa(h,a+c|0,s);break w}if(!d){b=0;i=1;while(1){if(!zb(c,a&255?b:D[D[c+68>>2]+(b<<2)>>2],B[c+24|0],h)){break w}b=b+1|0;i=j>>>0>b>>>0;if((b|0)==(j|0)){break w}a=E[c+84|0];continue}}n=d&-4;l=d&3;b=0;o=d-1>>>0<3;i=1;d=0;while(1){if(!zb(c,a&255?d:D[D[c+68>>2]+(d<<2)>>2],B[c+24|0],h)){break w}e=0;a=0;i=0;if(!o){while(1){g=(b<<2)+f|0;k=a<<2;D[g>>2]=D[k+h>>2];D[g+4>>2]=D[(k|4)+h>>2];D[g+8>>2]=D[(k|8)+h>>2];D[g+12>>2]=D[(k|12)+h>>2];a=a+4|0;b=b+4|0;i=i+4|0;if((n|0)!=(i|0)){continue}break}}if(l){while(1){D[(b<<2)+f>>2]=D[(a<<2)+h>>2];a=a+1|0;b=b+1|0;e=e+1|0;if((l|0)!=(e|0)){continue}break}}d=d+1|0;if((j|0)!=(d|0)){i=d>>>0<j>>>0;a=E[c+84|0];continue}break}a=d>>>0>=j>>>0;break v}a=!i;if(!h){break u}}ma(h)}break b;case 8:break e;default:break a}}a=0;j=$-16|0;$=j;i=B[c+24|0];d=i<<2;k=D[b+80>>2];x:{if((J(d,k)|0)!=(e|0)){break x}e=D[c+28>>2];D[j+8>>2]=0;D[j>>2]=0;D[j+4>>2]=0;b=0;y:{z:{A:{B:{if(!i){break B}if((i|0)<0){break A}b=na(d);D[j>>2]=b;g=(i<<2)+b|0;D[j+8>>2]=g;d=d-4|0;m=(d>>>2|0)+1&7;C:{if(!m){a=b;break C}a=b;while(1){D[a>>2]=-1073741824;a=a+4|0;h=h+1|0;if((m|0)!=(h|0)){continue}break}}if(d>>>0<28){break B}while(1){D[a+24>>2]=-1073741824;D[a+28>>2]=-1073741824;D[a+16>>2]=-1073741824;D[a+20>>2]=-1073741824;D[a+8>>2]=-1073741824;D[a+12>>2]=-1073741824;D[a>>2]=-1073741824;D[a+4>>2]=-1073741824;a=a+32|0;if((g|0)!=(a|0)){continue}break}}if(!k){break z}if((e|0)==9){a=0;n=D[c>>2];d=D[c+48>>2];p=D[c+68>>2];s=E[c+84|0];e=D[c+44>>2];g=D[c+40>>2];q=g;if((i|0)<=0){if((k|0)!=1){i=k&-2;c=0;while(1){f=a|1;m=D[n>>2];h=ai(g,e,s?a:D[p+(a<<2)>>2],0)+d|0;h=oa(b,m+h|0,q);m=D[n>>2];if(!s){f=D[p+(f<<2)>>2]}f=ai(g,e,f,0)+d|0;oa(h,f+m|0,q);a=a+2|0;c=c+2|0;if((i|0)!=(c|0)){continue}break}}if(!(k&1)){break z}c=D[n>>2];if(!s){a=D[p+(a<<2)>>2]}a=ai(g,e,a,0)+d|0;oa(b,a+c|0,q);break z}u=i&-4;o=i&3;h=0;v=i-1>>>0<3;i=0;while(1){c=D[n>>2];a=ai(g,e,s?i:D[p+(i<<2)>>2],0)+d|0;c=oa(b,c+a|0,q);m=0;a=0;t=0;if(!v){while(1){l=(h<<2)+f|0;r=a<<2;H[l>>2]=H[r+c>>2];H[l+4>>2]=H[c+(r|4)>>2];H[l+8>>2]=H[c+(r|8)>>2];H[l+12>>2]=H[c+(r|12)>>2];a=a+4|0;h=h+4|0;t=t+4|0;if((u|0)!=(t|0)){continue}break}}if(o){while(1){H[(h<<2)+f>>2]=H[c+(a<<2)>>2];a=a+1|0;h=h+1|0;m=m+1|0;if((o|0)!=(m|0)){continue}break}}a=1;i=i+1|0;if((k|0)!=(i|0)){continue}break}break y}l=1;if((i|0)<=0){a=0;while(1){if(!nb(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],b)){break z}a=a+1|0;l=k>>>0>a>>>0;if((a|0)!=(k|0)){continue}break}break z}n=i&-4;g=i&3;h=0;o=i-1>>>0<3;i=0;while(1){if(!nb(c,E[c+84|0]?i:D[D[c+68>>2]+(i<<2)>>2],B[c+24|0],b)){break z}l=0;a=0;m=0;if(!o){while(1){d=(h<<2)+f|0;e=a<<2;H[d>>2]=H[e+b>>2];H[d+4>>2]=H[(e|4)+b>>2];H[d+8>>2]=H[(e|8)+b>>2];H[d+12>>2]=H[(e|12)+b>>2];a=a+4|0;h=h+4|0;m=m+4|0;if((n|0)!=(m|0)){continue}break}}if(g){while(1){H[(h<<2)+f>>2]=H[(a<<2)+b>>2];a=a+1|0;h=h+1|0;l=l+1|0;if((g|0)!=(l|0)){continue}break}}i=i+1|0;l=k>>>0>i>>>0;if((i|0)!=(k|0)){continue}break}a=i>>>0>=k>>>0;break y}qa();T()}a=l^1;if(!b){break x}}ma(b)}$=j+16|0;h=a&1;break a}qa();T()}$=m+16|0;h=a&1;break a}$=m+16|0;h=a&1}return h|0}function vf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=0,F=0,G=0,H=0,I=0,K=0,L=0,M=0,N=0;z=c;c=0;m=$-96|0;$=m;k=m+16|0;pa(k,0,76);D[m+92>>2]=-1;D[m+8>>2]=0;D[m>>2]=0;D[m+4>>2]=0;s=$-16|0;$=s;D[k+68>>2]=0;D[k+72>>2]=0;D[k>>2]=b;t=$-16|0;$=t;x=b;a=D[b+20>>2];a:{if((D[b+24>>2]-a|0)<=0){break a}a=D[a>>2];if((a|0)==-1){break a}c=D[D[x+8>>2]+(a<<2)>>2]}b:{c:{d:{e:{if(!c){a=0;break e}a=D[x+100>>2];e=D[x+96>>2];D[t+8>>2]=0;D[t>>2]=0;D[t+4>>2]=0;d=a-e|0;b=(d|0)/12|0;f:{if(!d){break f}if(b>>>0>=357913942){break c}f=na(d);D[t>>2]=f;D[t+8>>2]=f+J(b,12);a=0;g=f;f=J((d-12>>>0)/12|0,12)+12|0;d=pa(g,0,f);D[t+4>>2]=d+f;if(E[c+84|0]){c=b>>>0>1?b:1;g=c&1;if(b>>>0>=2){j=c&-2;c=0;while(1){f=J(a,12);b=f+e|0;n=D[b+4>>2];o=D[b>>2];f=d+f|0;D[f+8>>2]=D[b+8>>2];D[f>>2]=o;D[f+4>>2]=n;f=J(a|1,12);b=f+e|0;n=D[b+8>>2];o=D[b+4>>2];f=d+f|0;D[f>>2]=D[b>>2];D[f+4>>2]=o;D[f+8>>2]=n;a=a+2|0;c=c+2|0;if((j|0)!=(c|0)){continue}break}}if(!g){break f}b=J(a,12);a=b+e|0;c=D[a+4>>2];e=D[a>>2];b=b+d|0;D[b+8>>2]=D[a+8>>2];D[b>>2]=e;D[b+4>>2]=c;break f}g=b>>>0>1?b:1;a=D[c+68>>2];c=0;while(1){f=J(c,12);b=f+e|0;j=D[a+(D[b>>2]<<2)>>2];n=D[a+(D[b+4>>2]<<2)>>2];f=d+f|0;D[f+8>>2]=D[a+(D[b+8>>2]<<2)>>2];D[f+4>>2]=n;D[f>>2]=j;c=c+1|0;if((g|0)!=(c|0)){continue}break}}F=$-16|0;$=F;g=na(88);D[g>>2]=0;D[g+4>>2]=0;D[g+56>>2]=0;D[g+48>>2]=0;D[g+52>>2]=0;D[g+40>>2]=0;D[g+44>>2]=0;D[g+32>>2]=0;D[g+36>>2]=0;D[g+24>>2]=0;D[g+28>>2]=0;D[g+16>>2]=0;D[g+20>>2]=0;D[g+8>>2]=0;D[g+12>>2]=0;a=g- -64|0;D[a>>2]=0;D[a+4>>2]=0;D[g+72>>2]=0;D[g+76>>2]=0;D[g+80>>2]=0;D[g+84>>2]=0;D[g+60>>2]=g;A=$-16|0;$=A;D[g+80>>2]=0;D[g+84>>2]=0;a=D[g+76>>2];D[g+76>>2]=0;if(a){ma(a)}D[g+68>>2]=0;D[g+72>>2]=0;b=g- -64|0;a=D[b>>2];D[b>>2]=0;if(a){ma(a)}b=D[t>>2];c=D[t+4>>2]-b|0;j=(c|0)/12|0;a=J(j,3);d=D[g>>2];e=D[g+4>>2]-d>>2;g:{if(a>>>0>e>>>0){sa(g,a-e|0);b=D[t>>2];c=D[t+4>>2]-b|0;j=(c|0)/12|0;d=D[g>>2];break g}if(a>>>0>=e>>>0){break g}D[g+4>>2]=(a<<2)+d}if(c){f=j>>>0>1?j:1;a=0;while(1){e=J(a,12);c=e+d|0;e=b+e|0;D[c>>2]=D[e>>2];D[c+4>>2]=D[e+4>>2];D[c+8>>2]=D[e+8>>2];a=a+1|0;if((f|0)!=(a|0)){continue}break}}D[A+12>>2]=-1;f=$-48|0;$=f;h:{i:{w=A+12|0;j:{if(!w){break j}d=D[g+4>>2];n=D[g>>2];c=d-n|0;o=c>>2;b=D[g+12>>2];a=D[g+16>>2]-b>>2;k:{if(o>>>0>a>>>0){xa(g+12|0,o-a|0,10260);d=D[g+4>>2];n=D[g>>2];c=d-n|0;o=c>>2;break k}if(a>>>0<=o>>>0){break k}D[g+16>>2]=b+(o<<2)}b=0;D[f+40>>2]=0;D[f+32>>2]=0;D[f+36>>2]=0;l:{if(!c){D[f+24>>2]=0;D[f+16>>2]=0;D[f+20>>2]=0;break l}m:{if((c|0)>=0){b=na(c);D[f+36>>2]=b;D[f+32>>2]=b;D[f+40>>2]=(o<<2)+b;a=b;c=0;while(1){j=D[(c<<2)+n>>2];a=a-b>>2;n:{if(j>>>0<a>>>0){break n}D[f+16>>2]=0;e=j+1|0;if(e>>>0>a>>>0){xa(f+32|0,e-a|0,f+16|0);n=D[g>>2];d=D[g+4>>2];b=D[f+32>>2];break n}if(a>>>0<=e>>>0){break n}D[f+36>>2]=(e<<2)+b}a=(j<<2)+b|0;D[a>>2]=D[a>>2]+1;c=c+1|0;a=d-n|0;o=a>>2;if(c>>>0>=o>>>0){break m}a=D[f+36>>2];continue}}break i}D[f+24>>2]=0;D[f+16>>2]=0;D[f+20>>2]=0;if(!a){break l}if(a>>>0>=2147483645){break c}c=a<<1;a=na(c);D[f+16>>2]=a;e=a+(o<<3)|0;D[f+24>>2]=e;pa(a,255,c);D[f+20>>2]=e}d=0;D[f+8>>2]=0;D[f>>2]=0;D[f+4>>2]=0;a=D[f+36>>2]-b|0;j=a>>2;o:{if(!a){break o}if((a|0)<0){break c}l=na(a);D[f>>2]=l;a=j<<2;c=a+l|0;D[f+8>>2]=c;a=pa(l,0,a);D[f+4>>2]=c;e=j>>>0>1?j:1;q=e&3;c=0;if(e-1>>>0>=3){r=e&-4;while(1){e=i<<2;D[e+a>>2]=c;y=e|4;c=D[b+e>>2]+c|0;D[y+a>>2]=c;v=e|8;c=c+D[b+y>>2]|0;D[v+a>>2]=c;e=e|12;c=c+D[b+v>>2]|0;D[e+a>>2]=c;c=c+D[b+e>>2]|0;i=i+4|0;h=h+4|0;if((r|0)!=(h|0)){continue}break}}if(!q){break o}while(1){e=i<<2;D[e+a>>2]=c;i=i+1|0;c=D[b+e>>2]+c|0;p=p+1|0;if((q|0)!=(p|0)){continue}break}}if(o){y=D[g+12>>2];while(1){G=d<<2;c=G+n|0;h=-1;e=d+1|0;a=(e>>>0)%3|0?e:d-2|0;if((a|0)!=-1){h=D[(a<<2)+n>>2]}a=D[c>>2];p:{q:{if(!((d>>>0)%3|0)){p=-1;c=d+2|0;if((c|0)!=-1){p=D[(c<<2)+n>>2]}if(!((a|0)==(h|0)|(a|0)==(p|0))&(h|0)!=(p|0)){break q}D[g+40>>2]=D[g+40>>2]+1;e=d+3|0;break p}p=D[c-4>>2]}c=p<<2;v=D[c+b>>2];r:{s:{if((v|0)<=0){break s}q=D[f+16>>2];c=D[c+l>>2];i=0;while(1){r=q+(c<<3)|0;u=D[r>>2];if((u|0)==-1){break s}t:{if((h|0)!=(u|0)){break t}r=D[r+4>>2];if((r|0)!=-1){u=D[(r<<2)+n>>2]}else{u=-1}if((u|0)==(a|0)){break t}while(1){u:{a=c;i=i+1|0;if((v|0)<=(i|0)){break u}u=q+(a<<3)|0;c=a+1|0;H=q+(c<<3)|0;I=D[H>>2];D[u>>2]=I;D[u+4>>2]=D[H+4>>2];if((I|0)!=-1){continue}}break}D[q+(a<<3)>>2]=-1;if((r|0)==-1){break s}D[y+G>>2]=r;D[y+(r<<2)>>2]=d;break r}c=c+1|0;i=i+1|0;if((v|0)!=(i|0)){continue}break}}a=h<<2;h=D[a+b>>2];if((h|0)<=0){break r}q=D[f+16>>2];c=D[a+l>>2];i=0;while(1){a=q+(c<<3)|0;if(D[a>>2]==-1){D[a>>2]=p;D[a+4>>2]=d;break r}c=c+1|0;i=i+1|0;if((h|0)!=(i|0)){continue}break}}}d=e;if(o>>>0>d>>>0){continue}break}}D[w>>2]=j;if(l){ma(l)}a=D[f+16>>2];if(a){D[f+20>>2]=a;ma(a)}a=D[f+32>>2];if(!a){break j}D[f+36>>2]=a;ma(a)}$=f+48|0;y=(w|0)!=0;if(y){h=$-32|0;$=h;o=D[g>>2];a=D[g+4>>2];D[h+24>>2]=0;D[h+16>>2]=0;D[h+20>>2]=0;v:{w:{b=a-o|0;x:{if(!b){break x}if((b|0)<0){break w}c=b>>2;d=c-1>>>5|0;f=d+1|0;e=na(f<<2);D[h+24>>2]=f;D[h+16>>2]=e;D[h+20>>2]=c;D[e+((b>>>0<132?0:d)<<2)>>2]=0;b=c>>>5<<2;e=pa(e,0,b);c=c&31;if(!c){break x}b=b+e|0;D[b>>2]=D[b>>2]&(-1>>>32-c^-1)}D[h+8>>2]=0;D[h>>2]=0;while(1){y:{q=0;b=0;if((a|0)==(o|0)){break y}while(1){d=D[h+16>>2];z:{if(D[d+(b>>>3&536870908)>>2]>>>b&1){break z}e=D[h>>2];D[h+4>>2]=e;c=D[g+12>>2];a=b;while(1){A:{f=a+1|0;i=a;a=(f>>>0)%3|0?f:a-2|0;if((a|0)==-1){break A}a=D[c+(a<<2)>>2];if((a|0)==-1){break A}f=a+1|0;a=(f>>>0)%3|0?f:a-2|0;if((b|0)==(a|0)|(a|0)==-1){break A}if(!(D[(a>>>3&536870908)+d>>2]>>>a&1)){continue}}break}c=e;j=i;B:{C:{while(1){a=(j>>>3&536870908)+d|0;D[a>>2]=D[a>>2]|1<<j;a=j+1|0;f=(a>>>0)%3|0?a:j-2|0;v=(j>>>0)%3|0;n=(v?-1:2)+j|0;r=n<<2;D:{if((c|0)==(e|0)){break D}w=D[(f<<2)+o>>2];l=D[g+12>>2];a=c;if((n|0)!=-1){u=l+r|0;while(1){E:{if((w|0)!=D[a>>2]){break E}d=D[a+4>>2];p=D[u>>2];if((d|0)==(p|0)){break E}e=-1;a=-1;if((d|0)==-1){break B}break C}a=a+8|0;if((e|0)!=(a|0)){continue}break}break D}while(1){if((w|0)==D[a>>2]){p=-1;n=-1;d=D[a+4>>2];if((d|0)!=-1){break C}}a=a+8|0;if((e|0)!=(a|0)){continue}break}}n=D[o+r>>2];F:{if(D[h+8>>2]!=(e|0)){D[e>>2]=n;D[e+4>>2]=f;e=e+8|0;D[h+4>>2]=e;break F}d=e-c|0;e=d>>3;a=e+1|0;if(a>>>0>=536870912){break c}l=d>>2;l=d>>>0<2147483640?a>>>0>l>>>0?a:l:536870911;if(l){if(l>>>0>=536870912){break i}a=na(l<<3)}else{a=0}e=a+(e<<3)|0;D[e>>2]=n;D[e+4>>2]=f;e=e+8|0;if((d|0)>0){oa(a,c,d)}D[h+8>>2]=a+(l<<3);D[h+4>>2]=e;D[h>>2]=a;if(!c){break F}ma(c)}G:{H:{if(v){a=j-1|0;break H}a=j+2|0;if((a|0)==-1){break G}}a=D[D[g+12>>2]+(a<<2)>>2];if((a|0)==-1){break G}j=a+((a>>>0)%3|0?-1:2)|0;if((i|0)==(j|0)|(j|0)==-1){break G}o=D[g>>2];c=D[h>>2];d=D[h+16>>2];continue}break}o=D[g>>2];break z}e=d;a=D[l+(e<<2)>>2]}if((p|0)!=-1){D[l+(p<<2)>>2]=-1}if((a|0)!=-1){D[D[g+12>>2]+(a<<2)>>2]=-1}a=D[g+12>>2];D[a+(n<<2)>>2]=-1;D[a+(e<<2)>>2]=-1;q=1}b=b+1|0;a=D[g+4>>2];if(b>>>0<a-o>>2>>>0){continue}break}if(q){continue}}break}a=D[h>>2];if(a){ma(a)}a=D[h+16>>2];if(a){ma(a)}$=h+32|0;break v}Fa();T()}n=0;i=$-32|0;$=i;a=D[A+12>>2];D[g+36>>2]=a;o=g+24|0;I:{J:{K:{L:{M:{c=D[g+24>>2];b=D[g+28>>2]-c>>2;N:{O:{if(b>>>0<a>>>0){xa(o,a-b|0,10260);D[i+24>>2]=0;D[i+16>>2]=0;D[i+20>>2]=0;break O}if(a>>>0<b>>>0){D[g+28>>2]=c+(a<<2)}b=0;D[i+24>>2]=0;D[i+16>>2]=0;D[i+20>>2]=0;if(!a){break N}}if((a|0)<0){break M}c=a-1>>>5|0;e=c+1|0;b=na(e<<2);D[i+24>>2]=e;D[i+16>>2]=b;D[i+20>>2]=a;D[((a>>>0<33?0:c)<<2)+b>>2]=0;c=a>>>5<<2;e=pa(b,0,c);d=a&31;if(!d){break N}c=c+e|0;D[c>>2]=D[c>>2]&(-1>>>32-d^-1)}l=D[g>>2];j=D[g+4>>2];D[i+8>>2]=0;D[i>>2]=0;D[i+4>>2]=0;c=j-l|0;if(!c){break I}if((c|0)<0){break L}e=c>>2;d=e-1>>>5|0;f=d+1|0;h=na(f<<2);D[i+8>>2]=f;D[i>>2]=h;D[i+4>>2]=e;p=0;D[((c>>>0<132?0:d)<<2)+h>>2]=0;d=e>>>5<<2;f=pa(h,0,d);e=e&31;if(e){d=d+f|0;D[d>>2]=D[d>>2]&(-1>>>32-e^-1)}if(c>>>0<12){break I}while(1){r=J(p,3);e=(r<<2)+l|0;c=D[e>>2];d=-1;f=r+1|0;if((f|0)!=-1){d=D[(f<<2)+l>>2]}P:{if((c|0)==(d|0)){break P}f=c;c=D[e+8>>2];if((f|0)==(c|0)){break P}q=0;if((c|0)==(d|0)){break P}while(1){e=q+r|0;if(!(D[(e>>>3&536870908)+h>>2]>>>e&1)){c=D[(e<<2)+l>>2];d=1<<c;h=c>>>5|0;w=d&D[(h<<2)+b>>2];if(w){b=D[g+28>>2];Q:{if((b|0)!=D[g+32>>2]){D[b>>2]=-1;D[g+28>>2]=b+4;break Q}f=D[o>>2];d=b-f|0;h=d>>2;b=h+1|0;if(b>>>0>=1073741824){break c}j=d>>1;j=d>>>0<2147483644?b>>>0>j>>>0?b:j:1073741823;if(j){if(j>>>0>=1073741824){break i}b=na(j<<2)}else{b=0}h=b+(h<<2)|0;D[h>>2]=-1;if((d|0)>0){oa(b,f,d)}D[g+32>>2]=b+(j<<2);D[g+28>>2]=h+4;D[g+24>>2]=b;if(!f){break Q}ma(f)}b=D[g+52>>2];R:{if((b|0)!=D[g+56>>2]){D[b>>2]=c;D[g+52>>2]=b+4;break R}f=D[g+48>>2];d=b-f|0;h=d>>2;b=h+1|0;if(b>>>0>=1073741824){break c}j=d>>1;j=d>>>0<2147483644?b>>>0>j>>>0?b:j:1073741823;if(j){if(j>>>0>=1073741824){break i}b=na(j<<2)}else{b=0}h=b+(h<<2)|0;D[h>>2]=c;if((d|0)>0){oa(b,f,d)}D[g+56>>2]=b+(j<<2);D[g+52>>2]=h+4;D[g+48>>2]=b;if(!f){break R}ma(f)}d=D[i+20>>2];b=D[i+24>>2];if((d|0)==b<<5){if((d+1|0)<0){break K}c=i+16|0;if(d>>>0<=1073741822){d=d+32&-32;b=b<<6;b=b>>>0<d>>>0?d:b}else{b=2147483647}Va(c,b);d=D[i+20>>2]}D[i+20>>2]=d+1;b=D[i+16>>2]+(d>>>3&536870908)|0;c=D[b>>2];M=b,N=ei(d)&c,D[M>>2]=N;d=1<<a;h=a>>>5|0;c=a;a=a+1|0}f=a;b=D[i+16>>2];a=b+(h<<2)|0;D[a>>2]=D[a>>2]|d;v=D[g+24>>2]+(c<<2)|0;j=D[g+12>>2];l=D[g>>2];h=D[i>>2];a=e;S:{T:{U:{V:{W:{X:{while(1){if((a|0)==-1){break X}d=(a>>>3&536870908)+h|0;D[d>>2]=D[d>>2]|1<<a;D[v>>2]=a;if(w){D[(a<<2)+l>>2]=c}u=a+1|0;a=(u>>>0)%3|0?u:a-2|0;d=-1;Y:{if((a|0)==-1){break Y}a=D[j+(a<<2)>>2];d=-1;if((a|0)==-1){break Y}d=a+1|0;d=(d>>>0)%3|0?d:a-2|0}a=d;if((e|0)!=(a|0)){continue}break}if((e|0)!=-1){break S}a=1;break W}if((e>>>0)%3|0){a=e-1|0;break W}a=e+2|0;if((a|0)==-1){break V}}a=D[j+(a<<2)>>2];if((a|0)==-1){break V}if(!((a>>>0)%3|0)){break U}a=a-1|0;l=D[g>>2];h=D[i>>2];break T}l=D[g>>2];h=D[i>>2];break S}l=D[g>>2];h=D[i>>2];a=a+2|0;if((a|0)==-1){break S}}e=D[g+12>>2];while(1){d=(a>>>3&536870908)+h|0;D[d>>2]=D[d>>2]|1<<a;if(w){D[(a<<2)+l>>2]=c}Z:{if((a>>>0)%3|0){a=a-1|0;break Z}a=a+2|0;if((a|0)==-1){break S}}a=D[e+(a<<2)>>2];if((a|0)==-1){break S}a=a+((a>>>0)%3|0?-1:2)|0;if((a|0)!=-1){continue}break}}a=f}q=q+1|0;if((q|0)!=3){continue}break}l=D[g>>2];j=D[g+4>>2]}p=p+1|0;if(p>>>0<(j-l>>2>>>0)/3>>>0){continue}break}break J}Fa();T()}Fa();T()}Fa();T()}b=D[i+16>>2]}D[g+44>>2]=0;a=D[i+20>>2];if(a){c=a&31;e=(a>>>3&536870908)+b|0;a=b;h=0;while(1){if(!(D[a>>2]>>>n&1)){h=h+1|0;D[g+44>>2]=h}d=(n|0)==31;n=d?0:n+1|0;a=(d<<2)+a|0;if((e|0)!=(a|0)|(c|0)!=(n|0)){continue}break}}a=D[i>>2];if(a){ma(a);b=D[i+16>>2]}if(b){ma(b)}$=i+32|0}$=A+16|0;if(!y){D[F+8>>2]=0;cb(g);g=0}$=F+16|0;a=g;break h}ra(1326);T()}b=D[t>>2];if(!b){break e}D[t+4>>2]=b;ma(b)}$=t+16|0;break d}b=D[k+4>>2];D[k+4>>2]=a;if(b){cb(b);a=D[k+4>>2]}_:{if(!a){break _}a=D[x+100>>2];b=D[x+96>>2];B[s+12|0]=0;Ea(k+56|0,(a-b|0)/12|0,s+12|0);a=D[x+100>>2];c=D[x+96>>2];if((a|0)==(c|0)){K=1;break _}while(1){if(!(D[D[k+56>>2]+(C>>>3&536870908)>>2]>>>C&1)){a=J(C,3);Ub(k,0,a);b=D[k+8>>2];c=D[k+12>>2];Ub(k,1,a+1|0);e=D[k+20>>2];d=D[k+24>>2];Ub(k,2,a+2|0);e=d-e>>2;b=c-b|0;c=b>>2;a=e>>>0>c>>>0;c=D[k+36>>2]-D[k+32>>2]>>2>>>0>(a?e:c)>>>0?2:a?1:b?0:-1;$:{if(D[k+68>>2]<=0){break $}D[s+12>>2]=D[k+76>>2];D[s+8>>2]=m;Ra(s+8|0,s+12|0);a=D[((c<<2)+k|0)+44>>2];if((a|0)<0){a=-1}else{b=(a>>>0)/3|0;a=D[(D[D[k>>2]+96>>2]+J(b,12)|0)+(a-J(b,3)<<2)>>2]}D[s+12>>2]=a;D[s+8>>2]=m;Ra(s+8|0,s+12|0);b=D[k+72>>2];D[k+72>>2]=b+2;if(!(b&1)){break $}D[s+12>>2]=a;D[s+8>>2]=m;Ra(s+8|0,s+12|0);D[k+72>>2]=D[k+72>>2]+1}b=$-16|0;$=b;D[k+68>>2]=D[k+68>>2]+1;a=J(c,12)+k|0;e=D[a+12>>2]-D[a+8>>2]|0;aa:{if((e|0)<=0){break aa}a=-1;c=D[((c<<2)+k|0)+44>>2];d=(c>>>0)/3|0;i=(c|0)==-1;f=i?-1:d;g=D[k+56>>2]+(f>>>3&536870908)|0;D[g>>2]=D[g>>2]|1<<f;D[k+72>>2]=D[k+72>>2]+1;D[b+12>>2]=(c|0)>=0?D[(D[D[k>>2]+96>>2]+J(d,12)|0)+((c>>>0)%3<<2)>>2]:-1;D[b+8>>2]=m;Ra(b+8|0,b+12|0);ba:{if(!i){f=c+1|0;f=(f>>>0)%3|0?f:c-2|0;if((f|0)>=0){i=(f>>>0)/3|0;f=D[(D[D[k>>2]+96>>2]+J(i,12)|0)+(f-J(i,3)<<2)>>2]}else{f=-1}D[b+12>>2]=f;D[b+8>>2]=m;Ra(b+8|0,b+12|0);d=c+(c-J(d,3)|0?-1:2)|0;if((d|0)<0){break ba}a=(d>>>0)/3|0;a=D[(D[D[k>>2]+96>>2]+J(a,12)|0)+(d-J(a,3)<<2)>>2];break ba}D[b+12>>2]=-1;D[b+8>>2]=m;Ra(b+8|0,b+12|0)}D[k+76>>2]=a;D[b+12>>2]=a;D[b+8>>2]=m;a=-1;Ra(b+8|0,b+12|0);a=(c|0)!=-1?D[D[D[k+4>>2]+12>>2]+(c<<2)>>2]:a;if(e>>>0<=7){break aa}c=e>>>2|0;i=c>>>0>1?c:1;e=1;while(1){c=a;f=(a>>>0)/3|0;a=(a|0)==-1?-1:f;d=D[k+56>>2]+(a>>>3&536870908)|0;D[d>>2]=D[d>>2]|1<<a;D[k+72>>2]=D[k+72>>2]+1;a=-1;a=(c|0)>=0?D[(D[D[k>>2]+96>>2]+J(f,12)|0)+((c>>>0)%3<<2)>>2]:a;D[k+76>>2]=a;D[b+12>>2]=a;D[b+8>>2]=m;Ra(b+8|0,b+12|0);ca:{da:{ea:{if(e&1){d=-1;if((c|0)==-1){break ca}if((c|0)!=(J(f,3)|0)){a=c-1|0;break da}a=c+2|0;break ea}d=-1;if((c|0)==-1){break ca}a=c+1|0;a=(a>>>0)%3|0?a:c-2|0}d=-1;if((a|0)==-1){break ca}}d=D[D[D[k+4>>2]+12>>2]+(a<<2)>>2]}a=d;e=e+1|0;if((i|0)!=(e|0)){continue}break}}$=b+16|0;c=D[x+96>>2];a=D[x+100>>2]}K=1;C=C+1|0;if(C>>>0<(a-c|0)/12>>>0){continue}break}}$=s+16|0;fa:{if(K){a=D[z>>2];if(a){D[z+4>>2]=a;ma(a)}D[z>>2]=D[m>>2];D[z+4>>2]=D[m+4>>2];D[z+8>>2]=D[m+8>>2];L=D[m+84>>2];break fa}a=D[m>>2];if(!a){break fa}D[m+4>>2]=a;ma(a)}a=D[m+72>>2];if(a){ma(a)}a=D[m+48>>2];if(a){D[m+52>>2]=a;ma(a)}a=D[m+36>>2];if(a){D[m+40>>2]=a;ma(a)}a=D[m+24>>2];if(a){D[m+28>>2]=a;ma(a)}a=D[m+20>>2];D[m+20>>2]=0;if(a){cb(a)}$=m+96|0;break b}qa();T()}return L|0}function Gc(a){a=a|0;var 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;l=$-16|0;$=l;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(a>>>0<=244){e=D[2880];h=a>>>0<11?16:a+11&-8;c=h>>>3|0;b=e>>>c|0;if(b&3){d=c+((b^-1)&1)|0;b=d<<3;f=D[b+11568>>2];a=f+8|0;c=D[f+8>>2];b=b+11560|0;l:{if((c|0)==(b|0)){m=11520,n=ei(d)&e,D[m>>2]=n;break l}D[c+12>>2]=b;D[b+8>>2]=c}b=d<<3;D[f+4>>2]=b|3;b=b+f|0;D[b+4>>2]=D[b+4>>2]|1;break a}k=D[2882];if(k>>>0>=h>>>0){break k}if(b){a=2<<c;a=(0-a|a)&b<<c;b=(0-a&a)-1|0;a=b>>>12&16;c=a;b=b>>>a|0;a=b>>>5&8;c=c|a;b=b>>>a|0;a=b>>>2&4;c=c|a;b=b>>>a|0;a=b>>>1&2;c=c|a;b=b>>>a|0;a=b>>>1&1;c=(c|a)+(b>>>a|0)|0;a=c<<3;g=D[a+11568>>2];b=D[g+8>>2];a=a+11560|0;m:{if((b|0)==(a|0)){e=ei(c)&e;D[2880]=e;break m}D[b+12>>2]=a;D[a+8>>2]=b}a=g+8|0;D[g+4>>2]=h|3;d=g+h|0;b=c<<3;f=b-h|0;D[d+4>>2]=f|1;D[b+g>>2]=f;if(k){b=k>>>3|0;c=(b<<3)+11560|0;g=D[2885];b=1<<b;n:{if(!(b&e)){D[2880]=b|e;b=c;break n}b=D[c+8>>2]}D[c+8>>2]=g;D[b+12>>2]=g;D[g+12>>2]=c;D[g+8>>2]=b}D[2885]=d;D[2882]=f;break a}j=D[2881];if(!j){break k}b=(j&0-j)-1|0;a=b>>>12&16;c=a;b=b>>>a|0;a=b>>>5&8;c=c|a;b=b>>>a|0;a=b>>>2&4;c=c|a;b=b>>>a|0;a=b>>>1&2;c=c|a;b=b>>>a|0;a=b>>>1&1;b=D[((c|a)+(b>>>a|0)<<2)+11824>>2];d=(D[b+4>>2]&-8)-h|0;c=b;while(1){o:{a=D[c+16>>2];if(!a){a=D[c+20>>2];if(!a){break o}}c=(D[a+4>>2]&-8)-h|0;f=c>>>0<d>>>0;d=f?c:d;b=f?a:b;c=a;continue}break}i=D[b+24>>2];f=D[b+12>>2];if((f|0)!=(b|0)){a=D[b+8>>2];D[a+12>>2]=f;D[f+8>>2]=a;break b}c=b+20|0;a=D[c>>2];if(!a){a=D[b+16>>2];if(!a){break j}c=b+16|0}while(1){g=c;f=a;c=a+20|0;a=D[c>>2];if(a){continue}c=f+16|0;a=D[f+16>>2];if(a){continue}break}D[g>>2]=0;break b}h=-1;if(a>>>0>4294967231){break k}a=a+11|0;h=a&-8;j=D[2881];if(!j){break k}d=0-h|0;e=0;p:{if(h>>>0<256){break p}e=31;if(h>>>0>16777215){break p}a=a>>>8|0;g=a+1048320>>>16&8;a=a<<g;c=a+520192>>>16&4;a=a<<c;b=a+245760>>>16&2;a=(a<<b>>>15|0)-(b|(c|g))|0;e=(a<<1|h>>>a+21&1)+28|0}c=D[(e<<2)+11824>>2];q:{r:{s:{if(!c){a=0;break s}a=0;b=h<<((e|0)==31?0:25-(e>>>1|0)|0);while(1){t:{g=(D[c+4>>2]&-8)-h|0;if(g>>>0>=d>>>0){break t}f=c;d=g;if(d){break t}d=0;a=c;break r}g=D[c+20>>2];c=D[((b>>>29&4)+c|0)+16>>2];a=g?(g|0)==(c|0)?a:g:a;b=b<<1;if(c){continue}break}}if(!(a|f)){f=0;a=2<<e;a=(0-a|a)&j;if(!a){break k}b=(a&0-a)-1|0;a=b>>>12&16;c=a;b=b>>>a|0;a=b>>>5&8;c=c|a;b=b>>>a|0;a=b>>>2&4;c=c|a;b=b>>>a|0;a=b>>>1&2;c=c|a;b=b>>>a|0;a=b>>>1&1;a=D[((c|a)+(b>>>a|0)<<2)+11824>>2]}if(!a){break q}}while(1){b=(D[a+4>>2]&-8)-h|0;c=b>>>0<d>>>0;d=c?b:d;f=c?a:f;b=D[a+16>>2];if(b){a=b}else{a=D[a+20>>2]}if(a){continue}break}}if(!f|D[2882]-h>>>0<=d>>>0){break k}e=D[f+24>>2];b=D[f+12>>2];if((f|0)!=(b|0)){a=D[f+8>>2];D[a+12>>2]=b;D[b+8>>2]=a;break c}c=f+20|0;a=D[c>>2];if(!a){a=D[f+16>>2];if(!a){break i}c=f+16|0}while(1){g=c;b=a;c=a+20|0;a=D[c>>2];if(a){continue}c=b+16|0;a=D[b+16>>2];if(a){continue}break}D[g>>2]=0;break c}c=D[2882];if(c>>>0>=h>>>0){d=D[2885];b=c-h|0;u:{if(b>>>0>=16){D[2882]=b;a=d+h|0;D[2885]=a;D[a+4>>2]=b|1;D[c+d>>2]=b;D[d+4>>2]=h|3;break u}D[2885]=0;D[2882]=0;D[d+4>>2]=c|3;a=c+d|0;D[a+4>>2]=D[a+4>>2]|1}a=d+8|0;break a}i=D[2883];if(i>>>0>h>>>0){b=i-h|0;D[2883]=b;c=D[2886];a=c+h|0;D[2886]=a;D[a+4>>2]=b|1;D[c+4>>2]=h|3;a=c+8|0;break a}a=0;j=h+47|0;if(D[2998]){c=D[3e3]}else{D[3001]=-1;D[3002]=-1;D[2999]=4096;D[3e3]=4096;D[2998]=l+12&-16^1431655768;D[3003]=0;D[2991]=0;c=4096}g=j+c|0;f=0-c|0;c=g&f;if(c>>>0<=h>>>0){break a}d=D[2990];if(d){b=D[2988];e=b+c|0;if(d>>>0<e>>>0|b>>>0>=e>>>0){break a}}if(E[11964]&4){break f}v:{w:{d=D[2886];if(d){a=11968;while(1){b=D[a>>2];if(b>>>0<=d>>>0&d>>>0<b+D[a+4>>2]>>>0){break w}a=D[a+8>>2];if(a){continue}break}}b=Za(0);if((b|0)==-1){break g}e=c;d=D[2999];a=d-1|0;if(a&b){e=(c-b|0)+(a+b&0-d)|0}if(e>>>0<=h>>>0|e>>>0>2147483646){break g}d=D[2990];if(d){a=D[2988];f=a+e|0;if(d>>>0<f>>>0|a>>>0>=f>>>0){break g}}a=Za(e);if((b|0)!=(a|0)){break v}break e}e=f&g-i;if(e>>>0>2147483646){break g}b=Za(e);if((b|0)==(D[a>>2]+D[a+4>>2]|0)){break h}a=b}if(!((a|0)==-1|h+48>>>0<=e>>>0)){b=D[3e3];b=b+(j-e|0)&0-b;if(b>>>0>2147483646){b=a;break e}if((Za(b)|0)!=-1){e=b+e|0;b=a;break e}Za(0-e|0);break g}b=a;if((a|0)!=-1){break e}break g}f=0;break b}b=0;break c}if((b|0)!=-1){break e}}D[2991]=D[2991]|4}if(c>>>0>2147483646){break d}b=Za(c);a=Za(0);if((b|0)==-1|(a|0)==-1|a>>>0<=b>>>0){break d}e=a-b|0;if(e>>>0<=h+40>>>0){break d}}a=D[2988]+e|0;D[2988]=a;if(a>>>0>G[2989]){D[2989]=a}x:{y:{z:{g=D[2886];if(g){a=11968;while(1){d=D[a>>2];c=D[a+4>>2];if((d+c|0)==(b|0)){break z}a=D[a+8>>2];if(a){continue}break}break y}a=D[2884];if(!(a>>>0<=b>>>0?a:0)){D[2884]=b}a=0;D[2993]=e;D[2992]=b;D[2888]=-1;D[2889]=D[2998];D[2995]=0;while(1){d=a<<3;c=d+11560|0;D[d+11568>>2]=c;D[d+11572>>2]=c;a=a+1|0;if((a|0)!=32){continue}break}d=e-40|0;a=b+8&7?-8-b&7:0;c=d-a|0;D[2883]=c;a=a+b|0;D[2886]=a;D[a+4>>2]=c|1;D[(b+d|0)+4>>2]=40;D[2887]=D[3002];break x}if(E[a+12|0]&8|d>>>0>g>>>0|b>>>0<=g>>>0){break y}D[a+4>>2]=c+e;a=g+8&7?-8-g&7:0;c=a+g|0;D[2886]=c;b=D[2883]+e|0;a=b-a|0;D[2883]=a;D[c+4>>2]=a|1;D[(b+g|0)+4>>2]=40;D[2887]=D[3002];break x}if(G[2884]>b>>>0){D[2884]=b}c=b+e|0;a=11968;A:{B:{C:{D:{E:{F:{while(1){if((c|0)!=D[a>>2]){a=D[a+8>>2];if(a){continue}break F}break}if(!(E[a+12|0]&8)){break E}}a=11968;while(1){c=D[a>>2];if(c>>>0<=g>>>0){f=c+D[a+4>>2]|0;if(f>>>0>g>>>0){break D}}a=D[a+8>>2];continue}}D[a>>2]=b;D[a+4>>2]=D[a+4>>2]+e;j=(b+8&7?-8-b&7:0)+b|0;D[j+4>>2]=h|3;e=c+(c+8&7?-8-c&7:0)|0;i=h+j|0;c=e-i|0;if((e|0)==(g|0)){D[2886]=i;a=D[2883]+c|0;D[2883]=a;D[i+4>>2]=a|1;break B}if(D[2885]==(e|0)){D[2885]=i;a=D[2882]+c|0;D[2882]=a;D[i+4>>2]=a|1;D[a+i>>2]=a;break B}a=D[e+4>>2];if((a&3)==1){g=a&-8;G:{if(a>>>0<=255){d=D[e+8>>2];a=a>>>3|0;b=D[e+12>>2];if((b|0)==(d|0)){m=11520,n=D[2880]&ei(a),D[m>>2]=n;break G}D[d+12>>2]=b;D[b+8>>2]=d;break G}h=D[e+24>>2];b=D[e+12>>2];H:{if((e|0)!=(b|0)){a=D[e+8>>2];D[a+12>>2]=b;D[b+8>>2]=a;break H}I:{a=e+20|0;d=D[a>>2];if(d){break I}a=e+16|0;d=D[a>>2];if(d){break I}b=0;break H}while(1){f=a;b=d;a=b+20|0;d=D[a>>2];if(d){continue}a=b+16|0;d=D[b+16>>2];if(d){continue}break}D[f>>2]=0}if(!h){break G}d=D[e+28>>2];a=(d<<2)+11824|0;J:{if(D[a>>2]==(e|0)){D[a>>2]=b;if(b){break J}m=11524,n=D[2881]&ei(d),D[m>>2]=n;break G}D[h+(D[h+16>>2]==(e|0)?16:20)>>2]=b;if(!b){break G}}D[b+24>>2]=h;a=D[e+16>>2];if(a){D[b+16>>2]=a;D[a+24>>2]=b}a=D[e+20>>2];if(!a){break G}D[b+20>>2]=a;D[a+24>>2]=b}e=e+g|0;c=c+g|0}D[e+4>>2]=D[e+4>>2]&-2;D[i+4>>2]=c|1;D[c+i>>2]=c;if(c>>>0<=255){a=c>>>3|0;b=(a<<3)+11560|0;c=D[2880];a=1<<a;K:{if(!(c&a)){D[2880]=a|c;a=b;break K}a=D[b+8>>2]}D[b+8>>2]=i;D[a+12>>2]=i;D[i+12>>2]=b;D[i+8>>2]=a;break B}a=31;if(c>>>0<=16777215){a=c>>>8|0;f=a+1048320>>>16&8;a=a<<f;d=a+520192>>>16&4;a=a<<d;b=a+245760>>>16&2;a=(a<<b>>>15|0)-(b|(d|f))|0;a=(a<<1|c>>>a+21&1)+28|0}D[i+28>>2]=a;D[i+16>>2]=0;D[i+20>>2]=0;f=(a<<2)+11824|0;d=D[2881];b=1<<a;L:{if(!(d&b)){D[2881]=b|d;D[f>>2]=i;D[i+24>>2]=f;break L}a=c<<((a|0)==31?0:25-(a>>>1|0)|0);b=D[f>>2];while(1){d=b;if((D[b+4>>2]&-8)==(c|0)){break C}b=a>>>29|0;a=a<<1;f=d+(b&4)|0;b=D[f+16>>2];if(b){continue}break}D[f+16>>2]=i;D[i+24>>2]=d}D[i+12>>2]=i;D[i+8>>2]=i;break B}d=e-40|0;a=b+8&7?-8-b&7:0;c=d-a|0;D[2883]=c;a=a+b|0;D[2886]=a;D[a+4>>2]=c|1;D[(b+d|0)+4>>2]=40;D[2887]=D[3002];a=(f+(f-39&7?39-f&7:0)|0)-47|0;c=a>>>0<g+16>>>0?g:a;D[c+4>>2]=27;a=D[2995];D[c+16>>2]=D[2994];D[c+20>>2]=a;a=D[2993];D[c+8>>2]=D[2992];D[c+12>>2]=a;D[2994]=c+8;D[2993]=e;D[2992]=b;D[2995]=0;a=c+24|0;while(1){D[a+4>>2]=7;b=a+8|0;a=a+4|0;if(b>>>0<f>>>0){continue}break}if((c|0)==(g|0)){break x}D[c+4>>2]=D[c+4>>2]&-2;f=c-g|0;D[g+4>>2]=f|1;D[c>>2]=f;if(f>>>0<=255){a=f>>>3|0;b=(a<<3)+11560|0;c=D[2880];a=1<<a;M:{if(!(c&a)){D[2880]=a|c;a=b;break M}a=D[b+8>>2]}D[b+8>>2]=g;D[a+12>>2]=g;D[g+12>>2]=b;D[g+8>>2]=a;break x}a=31;D[g+16>>2]=0;D[g+20>>2]=0;if(f>>>0<=16777215){a=f>>>8|0;d=a+1048320>>>16&8;a=a<<d;c=a+520192>>>16&4;a=a<<c;b=a+245760>>>16&2;a=(a<<b>>>15|0)-(b|(c|d))|0;a=(a<<1|f>>>a+21&1)+28|0}D[g+28>>2]=a;d=(a<<2)+11824|0;c=D[2881];b=1<<a;N:{if(!(c&b)){D[2881]=b|c;D[d>>2]=g;D[g+24>>2]=d;break N}a=f<<((a|0)==31?0:25-(a>>>1|0)|0);b=D[d>>2];while(1){c=b;if((f|0)==(D[b+4>>2]&-8)){break A}b=a>>>29|0;a=a<<1;d=c+(b&4)|0;b=D[d+16>>2];if(b){continue}break}D[d+16>>2]=g;D[g+24>>2]=c}D[g+12>>2]=g;D[g+8>>2]=g;break x}a=D[d+8>>2];D[a+12>>2]=i;D[d+8>>2]=i;D[i+24>>2]=0;D[i+12>>2]=d;D[i+8>>2]=a}a=j+8|0;break a}a=D[c+8>>2];D[a+12>>2]=g;D[c+8>>2]=g;D[g+24>>2]=0;D[g+12>>2]=c;D[g+8>>2]=a}a=D[2883];if(a>>>0<=h>>>0){break d}b=a-h|0;D[2883]=b;c=D[2886];a=c+h|0;D[2886]=a;D[a+4>>2]=b|1;D[c+4>>2]=h|3;a=c+8|0;break a}D[2879]=48;a=0;break a}O:{if(!e){break O}c=D[f+28>>2];a=(c<<2)+11824|0;P:{if(D[a>>2]==(f|0)){D[a>>2]=b;if(b){break P}j=ei(c)&j;D[2881]=j;break O}D[e+(D[e+16>>2]==(f|0)?16:20)>>2]=b;if(!b){break O}}D[b+24>>2]=e;a=D[f+16>>2];if(a){D[b+16>>2]=a;D[a+24>>2]=b}a=D[f+20>>2];if(!a){break O}D[b+20>>2]=a;D[a+24>>2]=b}Q:{if(d>>>0<=15){a=d+h|0;D[f+4>>2]=a|3;a=a+f|0;D[a+4>>2]=D[a+4>>2]|1;break Q}D[f+4>>2]=h|3;e=f+h|0;D[e+4>>2]=d|1;D[d+e>>2]=d;if(d>>>0<=255){a=d>>>3|0;b=(a<<3)+11560|0;c=D[2880];a=1<<a;R:{if(!(c&a)){D[2880]=a|c;a=b;break R}a=D[b+8>>2]}D[b+8>>2]=e;D[a+12>>2]=e;D[e+12>>2]=b;D[e+8>>2]=a;break Q}a=31;if(d>>>0<=16777215){a=d>>>8|0;g=a+1048320>>>16&8;a=a<<g;c=a+520192>>>16&4;a=a<<c;b=a+245760>>>16&2;a=(a<<b>>>15|0)-(b|(c|g))|0;a=(a<<1|d>>>a+21&1)+28|0}D[e+28>>2]=a;D[e+16>>2]=0;D[e+20>>2]=0;b=(a<<2)+11824|0;S:{c=1<<a;T:{if(!(c&j)){D[2881]=c|j;D[b>>2]=e;break T}a=d<<((a|0)==31?0:25-(a>>>1|0)|0);h=D[b>>2];while(1){b=h;if((D[b+4>>2]&-8)==(d|0)){break S}c=a>>>29|0;a=a<<1;c=(c&4)+b|0;h=D[c+16>>2];if(h){continue}break}D[c+16>>2]=e}D[e+24>>2]=b;D[e+12>>2]=e;D[e+8>>2]=e;break Q}a=D[b+8>>2];D[a+12>>2]=e;D[b+8>>2]=e;D[e+24>>2]=0;D[e+12>>2]=b;D[e+8>>2]=a}a=f+8|0;break a}U:{if(!i){break U}c=D[b+28>>2];a=(c<<2)+11824|0;V:{if(D[a>>2]==(b|0)){D[a>>2]=f;if(f){break V}m=11524,n=ei(c)&j,D[m>>2]=n;break U}D[i+(D[i+16>>2]==(b|0)?16:20)>>2]=f;if(!f){break U}}D[f+24>>2]=i;a=D[b+16>>2];if(a){D[f+16>>2]=a;D[a+24>>2]=f}a=D[b+20>>2];if(!a){break U}D[f+20>>2]=a;D[a+24>>2]=f}W:{if(d>>>0<=15){a=d+h|0;D[b+4>>2]=a|3;a=a+b|0;D[a+4>>2]=D[a+4>>2]|1;break W}D[b+4>>2]=h|3;f=b+h|0;D[f+4>>2]=d|1;D[d+f>>2]=d;if(k){a=k>>>3|0;c=(a<<3)+11560|0;g=D[2885];a=1<<a;X:{if(!(a&e)){D[2880]=a|e;a=c;break X}a=D[c+8>>2]}D[c+8>>2]=g;D[a+12>>2]=g;D[g+12>>2]=c;D[g+8>>2]=a}D[2885]=f;D[2882]=d}a=b+8|0}$=l+16|0;return a|0}function Md(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0;h=$-80|0;$=h;e=D[c+36>>2];D[h+72>>2]=D[c+32>>2];D[h+76>>2]=e;f=D[c+28>>2];e=h- -64|0;D[e>>2]=D[c+24>>2];D[e+4>>2]=f;e=D[c+20>>2];D[h+56>>2]=D[c+16>>2];D[h+60>>2]=e;e=D[c+12>>2];D[h+48>>2]=D[c+8>>2];D[h+52>>2]=e;e=D[c+4>>2];D[h+40>>2]=D[c>>2];D[h+44>>2]=e;gc(a,h+40|0,h+24|0);a:{if(D[a>>2]){break a}l=a+4|0;if(B[a+15|0]<0){ma(D[l>>2])}if(E[h+31|0]!=1){b=na(32);c=E[1590]|E[1591]<<8|(E[1592]<<16|E[1593]<<24);B[b+16|0]=c;B[b+17|0]=c>>>8;B[b+18|0]=c>>>16;B[b+19|0]=c>>>24;c=E[1586]|E[1587]<<8|(E[1588]<<16|E[1589]<<24);d=E[1582]|E[1583]<<8|(E[1584]<<16|E[1585]<<24);B[b+8|0]=d;B[b+9|0]=d>>>8;B[b+10|0]=d>>>16;B[b+11|0]=d>>>24;B[b+12|0]=c;B[b+13|0]=c>>>8;B[b+14|0]=c>>>16;B[b+15|0]=c>>>24;c=E[1578]|E[1579]<<8|(E[1580]<<16|E[1581]<<24);d=E[1574]|E[1575]<<8|(E[1576]<<16|E[1577]<<24);B[b|0]=d;B[b+1|0]=d>>>8;B[b+2|0]=d>>>16;B[b+3|0]=d>>>24;B[b+4|0]=c;B[b+5|0]=c>>>8;B[b+6|0]=c>>>16;B[b+7|0]=c>>>24;B[b+20|0]=0;D[a>>2]=-1;ta(l,b,20);ma(b);break a}i=$-16|0;$=i;b:{c:{switch(E[h+32|0]){case 0:e=na(48);Gd(e);D[e>>2]=9896;D[h+8>>2]=0;D[h+12>>2]=0;D[h>>2]=0;D[h+4>>2]=0;D[h+16>>2]=e;break b;case 1:e=na(52);Gd(e);D[e+48>>2]=0;D[e>>2]=8204;D[h+8>>2]=0;D[h+12>>2]=0;D[h>>2]=0;D[h+4>>2]=0;D[h+16>>2]=e;break b;default:break c}}f=na(32);e=E[1664]|E[1665]<<8|(E[1666]<<16|E[1667]<<24);B[f+24|0]=e;B[f+25|0]=e>>>8;B[f+26|0]=e>>>16;B[f+27|0]=e>>>24;e=E[1660]|E[1661]<<8|(E[1662]<<16|E[1663]<<24);g=E[1656]|E[1657]<<8|(E[1658]<<16|E[1659]<<24);B[f+16|0]=g;B[f+17|0]=g>>>8;B[f+18|0]=g>>>16;B[f+19|0]=g>>>24;B[f+20|0]=e;B[f+21|0]=e>>>8;B[f+22|0]=e>>>16;B[f+23|0]=e>>>24;e=E[1652]|E[1653]<<8|(E[1654]<<16|E[1655]<<24);g=E[1648]|E[1649]<<8|(E[1650]<<16|E[1651]<<24);B[f+8|0]=g;B[f+9|0]=g>>>8;B[f+10|0]=g>>>16;B[f+11|0]=g>>>24;B[f+12|0]=e;B[f+13|0]=e>>>8;B[f+14|0]=e>>>16;B[f+15|0]=e>>>24;e=E[1644]|E[1645]<<8|(E[1646]<<16|E[1647]<<24);g=E[1640]|E[1641]<<8|(E[1642]<<16|E[1643]<<24);B[f|0]=g;B[f+1|0]=g>>>8;B[f+2|0]=g>>>16;B[f+3|0]=g>>>24;B[f+4|0]=e;B[f+5|0]=e>>>8;B[f+6|0]=e>>>16;B[f+7|0]=e>>>24;B[f+28|0]=0;D[i>>2]=-1;e=i|4;ta(e,f,28);k=B[i+15|0];D[h>>2]=D[i>>2];g=h+4|0;d:{if((k|0)>=0){k=D[e+4>>2];D[g>>2]=D[e>>2];D[g+4>>2]=k;D[g+8>>2]=D[e+8>>2];break d}ta(g,D[i+4>>2],D[i+8>>2])}D[h+16>>2]=0;if(B[i+15|0]<0){ma(D[i+4>>2])}ma(f)}$=i+16|0;e=D[h>>2];e:{if(e){D[a>>2]=e;if(B[h+15|0]>=0){a=h|4;b=D[a+4>>2];D[l>>2]=D[a>>2];D[l+4>>2]=b;D[l+8>>2]=D[a+8>>2];break e}ta(l,D[h+4>>2],D[h+8>>2]);break e}e=D[h+16>>2];D[h+16>>2]=0;D[e+44>>2]=d;i=$-32|0;$=i;D[e+32>>2]=c;D[e+40>>2]=b;D[e+4>>2]=d;gc(a,c,i+16|0);f:{if(D[a>>2]){break f}f=a+4|0;if(B[a+15|0]<0){ma(D[f>>2])}b=E[i+23|0];if((ba[D[D[e>>2]+8>>2]](e)|0)!=(b|0)){b=na(64);c=E[1448]|E[1449]<<8;B[b+48|0]=c;B[b+49|0]=c>>>8;c=E[1444]|E[1445]<<8|(E[1446]<<16|E[1447]<<24);d=E[1440]|E[1441]<<8|(E[1442]<<16|E[1443]<<24);B[b+40|0]=d;B[b+41|0]=d>>>8;B[b+42|0]=d>>>16;B[b+43|0]=d>>>24;B[b+44|0]=c;B[b+45|0]=c>>>8;B[b+46|0]=c>>>16;B[b+47|0]=c>>>24;c=E[1436]|E[1437]<<8|(E[1438]<<16|E[1439]<<24);d=E[1432]|E[1433]<<8|(E[1434]<<16|E[1435]<<24);B[b+32|0]=d;B[b+33|0]=d>>>8;B[b+34|0]=d>>>16;B[b+35|0]=d>>>24;B[b+36|0]=c;B[b+37|0]=c>>>8;B[b+38|0]=c>>>16;B[b+39|0]=c>>>24;c=E[1428]|E[1429]<<8|(E[1430]<<16|E[1431]<<24);d=E[1424]|E[1425]<<8|(E[1426]<<16|E[1427]<<24);B[b+24|0]=d;B[b+25|0]=d>>>8;B[b+26|0]=d>>>16;B[b+27|0]=d>>>24;B[b+28|0]=c;B[b+29|0]=c>>>8;B[b+30|0]=c>>>16;B[b+31|0]=c>>>24;c=E[1420]|E[1421]<<8|(E[1422]<<16|E[1423]<<24);d=E[1416]|E[1417]<<8|(E[1418]<<16|E[1419]<<24);B[b+16|0]=d;B[b+17|0]=d>>>8;B[b+18|0]=d>>>16;B[b+19|0]=d>>>24;B[b+20|0]=c;B[b+21|0]=c>>>8;B[b+22|0]=c>>>16;B[b+23|0]=c>>>24;c=E[1412]|E[1413]<<8|(E[1414]<<16|E[1415]<<24);d=E[1408]|E[1409]<<8|(E[1410]<<16|E[1411]<<24);B[b+8|0]=d;B[b+9|0]=d>>>8;B[b+10|0]=d>>>16;B[b+11|0]=d>>>24;B[b+12|0]=c;B[b+13|0]=c>>>8;B[b+14|0]=c>>>16;B[b+15|0]=c>>>24;c=E[1404]|E[1405]<<8|(E[1406]<<16|E[1407]<<24);d=E[1400]|E[1401]<<8|(E[1402]<<16|E[1403]<<24);B[b|0]=d;B[b+1|0]=d>>>8;B[b+2|0]=d>>>16;B[b+3|0]=d>>>24;B[b+4|0]=c;B[b+5|0]=c>>>8;B[b+6|0]=c>>>16;B[b+7|0]=c>>>24;B[b+50|0]=0;D[a>>2]=-1;ta(f,b,50);ma(b);break f}c=E[i+21|0];B[e+36|0]=c;d=E[i+22|0];B[e+37|0]=d;if((c|0)!=2){b=na(32);c=E[1571]|E[1572]<<8;B[b+24|0]=c;B[b+25|0]=c>>>8;c=E[1567]|E[1568]<<8|(E[1569]<<16|E[1570]<<24);d=E[1563]|E[1564]<<8|(E[1565]<<16|E[1566]<<24);B[b+16|0]=d;B[b+17|0]=d>>>8;B[b+18|0]=d>>>16;B[b+19|0]=d>>>24;B[b+20|0]=c;B[b+21|0]=c>>>8;B[b+22|0]=c>>>16;B[b+23|0]=c>>>24;c=E[1559]|E[1560]<<8|(E[1561]<<16|E[1562]<<24);d=E[1555]|E[1556]<<8|(E[1557]<<16|E[1558]<<24);B[b+8|0]=d;B[b+9|0]=d>>>8;B[b+10|0]=d>>>16;B[b+11|0]=d>>>24;B[b+12|0]=c;B[b+13|0]=c>>>8;B[b+14|0]=c>>>16;B[b+15|0]=c>>>24;c=E[1551]|E[1552]<<8|(E[1553]<<16|E[1554]<<24);d=E[1547]|E[1548]<<8|(E[1549]<<16|E[1550]<<24);B[b|0]=d;B[b+1|0]=d>>>8;B[b+2|0]=d>>>16;B[b+3|0]=d>>>24;B[b+4|0]=c;B[b+5|0]=c>>>8;B[b+6|0]=c>>>16;B[b+7|0]=c>>>24;B[b+26|0]=0;D[a>>2]=-5;ta(f,b,26);ma(b);break f}b=b?2:3;if((b|0)!=(d|0)){b=na(32);c=E[1544]|E[1545]<<8;B[b+24|0]=c;B[b+25|0]=c>>>8;c=E[1540]|E[1541]<<8|(E[1542]<<16|E[1543]<<24);d=E[1536]|E[1537]<<8|(E[1538]<<16|E[1539]<<24);B[b+16|0]=d;B[b+17|0]=d>>>8;B[b+18|0]=d>>>16;B[b+19|0]=d>>>24;B[b+20|0]=c;B[b+21|0]=c>>>8;B[b+22|0]=c>>>16;B[b+23|0]=c>>>24;c=E[1532]|E[1533]<<8|(E[1534]<<16|E[1535]<<24);d=E[1528]|E[1529]<<8|(E[1530]<<16|E[1531]<<24);B[b+8|0]=d;B[b+9|0]=d>>>8;B[b+10|0]=d>>>16;B[b+11|0]=d>>>24;B[b+12|0]=c;B[b+13|0]=c>>>8;B[b+14|0]=c>>>16;B[b+15|0]=c>>>24;c=E[1524]|E[1525]<<8|(E[1526]<<16|E[1527]<<24);d=E[1520]|E[1521]<<8|(E[1522]<<16|E[1523]<<24);B[b|0]=d;B[b+1|0]=d>>>8;B[b+2|0]=d>>>16;B[b+3|0]=d>>>24;B[b+4|0]=c;B[b+5|0]=c>>>8;B[b+6|0]=c>>>16;B[b+7|0]=c>>>24;B[b+26|0]=0;D[a>>2]=-5;ta(f,b,26);ma(b);break f}C[D[e+32>>2]+38>>1]=b|512;g:{if(C[i+26>>1]>=0){break g}k=$-16|0;$=k;d=na(36);b=d;D[b+4>>2]=0;D[b+8>>2]=0;D[b+24>>2]=0;D[b+28>>2]=0;b=b+16|0;D[b>>2]=0;D[b+4>>2]=0;D[d>>2]=d+4;D[d+32>>2]=0;D[d+12>>2]=b;D[k>>2]=0;c=D[e+32>>2];m=$-16|0;$=m;b=0;h:{if(!d){break h}D[k>>2]=c;D[m+12>>2]=0;b=0;if(!gb(1,m+12|0,c)){break h}p=D[m+12>>2];if(p){while(1){i:{if(gb(1,m+8|0,D[k>>2])){b=na(28);D[b+4>>2]=0;D[b+8>>2]=0;c=b+16|0;D[c>>2]=0;D[c+4>>2]=0;D[b>>2]=b+4;D[b+12>>2]=c;D[b+24>>2]=D[m+8>>2];if(Qc(k,b)){break i}Ca(b+12|0,D[b+16>>2]);Ba(b,D[b+4>>2]);ma(b)}b=0;break h}g=$-16|0;$=g;D[g+8>>2]=b;j:{if(!b){D[g+8>>2]=0;break j}c=D[d+28>>2];k:{if(c>>>0<G[d+32>>2]){D[g+8>>2]=0;D[c>>2]=b;D[d+28>>2]=c+4;break k}c=0;l:{m:{n:{j=D[d+24>>2];o=D[d+28>>2]-j>>2;b=o+1|0;if(b>>>0<1073741824){j=D[d+32>>2]-j|0;n=j>>1;b=j>>>0<2147483644?b>>>0>n>>>0?b:n:1073741823;if(b){if(b>>>0>=1073741824){break n}c=na(b<<2)}n=D[g+8>>2];D[g+8>>2]=0;j=(o<<2)+c|0;D[j>>2]=n;o=(b<<2)+c|0;n=j+4|0;c=D[d+28>>2];b=D[d+24>>2];if((c|0)==(b|0)){break m}while(1){c=c-4|0;r=D[c>>2];D[c>>2]=0;j=j-4|0;D[j>>2]=r;if((b|0)!=(c|0)){continue}break}D[d+32>>2]=o;c=D[d+28>>2];D[d+28>>2]=n;b=D[d+24>>2];D[d+24>>2]=j;if((b|0)==(c|0)){break l}while(1){c=c-4|0;j=D[c>>2];D[c>>2]=0;if(j){Ca(j+12|0,D[j+16>>2]);Ba(j,D[j+4>>2]);ma(j)}if((b|0)!=(c|0)){continue}break}break l}qa();T()}ra(1326);T()}D[d+32>>2]=o;D[d+28>>2]=n;D[d+24>>2]=j}if(b){ma(b)}}b=D[g+8>>2];D[g+8>>2]=0;if(!b){break j}Ca(b+12|0,D[b+16>>2]);Ba(b,D[b+4>>2]);ma(b)}$=g+16|0;q=q+1|0;if((q|0)!=(p|0)){continue}break}}b=Qc(k,d)}$=m+16|0;o:{if(b){c=D[e+4>>2];b=D[c+4>>2];D[c+4>>2]=d;if(b){fc(b)}D[a>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;D[a+12>>2]=0;break o}b=na(32);c=E[1693]|E[1694]<<8;B[b+24|0]=c;B[b+25|0]=c>>>8;c=E[1689]|E[1690]<<8|(E[1691]<<16|E[1692]<<24);g=E[1685]|E[1686]<<8|(E[1687]<<16|E[1688]<<24);B[b+16|0]=g;B[b+17|0]=g>>>8;B[b+18|0]=g>>>16;B[b+19|0]=g>>>24;B[b+20|0]=c;B[b+21|0]=c>>>8;B[b+22|0]=c>>>16;B[b+23|0]=c>>>24;c=E[1681]|E[1682]<<8|(E[1683]<<16|E[1684]<<24);g=E[1677]|E[1678]<<8|(E[1679]<<16|E[1680]<<24);B[b+8|0]=g;B[b+9|0]=g>>>8;B[b+10|0]=g>>>16;B[b+11|0]=g>>>24;B[b+12|0]=c;B[b+13|0]=c>>>8;B[b+14|0]=c>>>16;B[b+15|0]=c>>>24;c=E[1673]|E[1674]<<8|(E[1675]<<16|E[1676]<<24);g=E[1669]|E[1670]<<8|(E[1671]<<16|E[1672]<<24);B[b|0]=g;B[b+1|0]=g>>>8;B[b+2|0]=g>>>16;B[b+3|0]=g>>>24;B[b+4|0]=c;B[b+5|0]=c>>>8;B[b+6|0]=c>>>16;B[b+7|0]=c>>>24;B[b+26|0]=0;D[a>>2]=-1;ta(a+4|0,b,26);ma(b);D[k+8>>2]=0;fc(d)}$=k+16|0;if(D[a>>2]){break f}if(B[f+11|0]>=0){break g}ma(D[f>>2])}if(!(ba[D[D[e>>2]+12>>2]](e)|0)){b=na(48);B[b+32|0]=E[1518];c=E[1514]|E[1515]<<8|(E[1516]<<16|E[1517]<<24);d=E[1510]|E[1511]<<8|(E[1512]<<16|E[1513]<<24);B[b+24|0]=d;B[b+25|0]=d>>>8;B[b+26|0]=d>>>16;B[b+27|0]=d>>>24;B[b+28|0]=c;B[b+29|0]=c>>>8;B[b+30|0]=c>>>16;B[b+31|0]=c>>>24;c=E[1506]|E[1507]<<8|(E[1508]<<16|E[1509]<<24);d=E[1502]|E[1503]<<8|(E[1504]<<16|E[1505]<<24);B[b+16|0]=d;B[b+17|0]=d>>>8;B[b+18|0]=d>>>16;B[b+19|0]=d>>>24;B[b+20|0]=c;B[b+21|0]=c>>>8;B[b+22|0]=c>>>16;B[b+23|0]=c>>>24;c=E[1498]|E[1499]<<8|(E[1500]<<16|E[1501]<<24);d=E[1494]|E[1495]<<8|(E[1496]<<16|E[1497]<<24);B[b+8|0]=d;B[b+9|0]=d>>>8;B[b+10|0]=d>>>16;B[b+11|0]=d>>>24;B[b+12|0]=c;B[b+13|0]=c>>>8;B[b+14|0]=c>>>16;B[b+15|0]=c>>>24;c=E[1490]|E[1491]<<8|(E[1492]<<16|E[1493]<<24);d=E[1486]|E[1487]<<8|(E[1488]<<16|E[1489]<<24);B[b|0]=d;B[b+1|0]=d>>>8;B[b+2|0]=d>>>16;B[b+3|0]=d>>>24;B[b+4|0]=c;B[b+5|0]=c>>>8;B[b+6|0]=c>>>16;B[b+7|0]=c>>>24;B[b+33|0]=0;D[a>>2]=-1;ta(f,b,33);ma(b);break f}if(!(ba[D[D[e>>2]+20>>2]](e)|0)){b=Gb(i,1696);D[a>>2]=-1;if(B[b+11|0]>=0){b=D[i+4>>2];D[f>>2]=D[i>>2];D[f+4>>2]=b;D[f+8>>2]=D[i+8>>2];break f}ta(f,D[b>>2],D[b+4>>2]);if(B[b+11|0]>=0){break f}ma(D[b>>2]);break f}if(!(ba[D[D[e>>2]+24>>2]](e)|0)){b=Gb(i,1451);D[a>>2]=-1;if(B[b+11|0]>=0){b=D[i+4>>2];D[f>>2]=D[i>>2];D[f+4>>2]=b;D[f+8>>2]=D[i+8>>2];break f}ta(f,D[b>>2],D[b+4>>2]);if(B[b+11|0]>=0){break f}ma(D[b>>2]);break f}D[a>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;D[a+12>>2]=0}$=i+32|0;if(!D[a>>2]){if(B[l+11|0]<0){ma(D[l>>2])}D[a>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;D[a+12>>2]=0}ba[D[D[e>>2]+4>>2]](e)}a=D[h+16>>2];D[h+16>>2]=0;if(a){ba[D[D[a>>2]+4>>2]](a)}if(B[h+15|0]>=0){break a}ma(D[h+4>>2])}$=h+80|0}function Qc(a,b){var 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;k=$-48|0;$=k;c=na(8);D[c+4>>2]=b;D[c>>2]=0;b=c+8|0;D[k+40>>2]=b;D[k+36>>2]=b;D[k+32>>2]=c;a:{b:{c:{d:{while(1){b=b-8|0;j=D[b+4>>2];g=D[b>>2];D[k+36>>2]=b;if(g){D[k+24>>2]=0;D[k+16>>2]=0;D[k+20>>2]=0;c=1;b=D[a>>2];e=D[b+8>>2];h=D[b+12>>2];d=D[b+20>>2];f=D[b+16>>2];e:{if((h|0)<=(d|0)&f>>>0>=e>>>0|(d|0)>(h|0)){break e}e=E[f+D[b>>2]|0];f=f+1|0;d=f?d:d+1|0;D[b+16>>2]=f;D[b+20>>2]=d;Sb(k+16|0,e);if(e){d=D[a>>2];m=Tb(k+16|0);f=D[d+20>>2];i=D[d+16>>2];b=e;n=i+e|0;h=D[d+12>>2];f=e>>>0>n>>>0?f+1|0:f;if(n>>>0>G[d+8>>2]&(h|0)<=(f|0)|(f|0)>(h|0)){break e}oa(m,i+D[d>>2]|0,e);c=D[d+20>>2];e=b+D[d+16>>2]|0;c=e>>>0<b>>>0?c+1|0:c;D[d+16>>2]=e;D[d+20>>2]=c}j=na(24);b=j;D[b+4>>2]=0;D[b+8>>2]=0;b=b+16|0;D[b>>2]=0;D[b+4>>2]=0;D[j>>2]=j+4;D[j+12>>2]=b;e=$-32|0;$=e;f=g+12|0;c=k+16|0;l=ab(f,c);p=g+16|0;f:{if((l|0)==(p|0)){D[e+16>>2]=c;b=D[f+4>>2];g:{h:{if(b){d=E[c+11|0];g=d<<24>>24<0;h=g?D[c>>2]:c;g=g?D[c+4>>2]:d;c=f+4|0;while(1){d=E[b+27|0];n=d<<24>>24<0;d=n?D[b+20>>2]:d;m=d>>>0<g>>>0;i:{j:{k:{l:{m:{i=m?d:g;n:{if(i){o=b+16|0;n=n?D[o>>2]:o;o=va(h,n,i);if(!o){if(d>>>0>g>>>0){break n}break m}if((o|0)>=0){break m}break n}if(d>>>0<=g>>>0){break l}}d=D[b>>2];if(d){break i}break h}d=va(n,h,i);if(d){break k}}if(m){break j}break g}if((d|0)>=0){break g}}c=b+4|0;d=D[b+4>>2];if(!d){break g}b=c}c=b;b=d;continue}}b=f+4|0}c=b}d=D[c>>2];if(d){b=0}else{d=na(32);h=d+16|0;g=D[e+16>>2];o:{if(B[g+11|0]>=0){n=D[g+4>>2];D[h>>2]=D[g>>2];D[h+4>>2]=n;D[h+8>>2]=D[g+8>>2];break o}ta(h,D[g>>2],D[g+4>>2])}D[d+8>>2]=b;D[d>>2]=0;D[d+4>>2]=0;D[d+28>>2]=0;D[c>>2]=d;b=D[D[f>>2]>>2];if(b){D[f>>2]=b;b=D[c>>2]}else{b=d}pb(D[f+4>>2],b);D[f+8>>2]=D[f+8>>2]+1;b=1}B[e+28|0]=b;D[e+24>>2]=d;c=D[e+24>>2];b=D[c+28>>2];D[c+28>>2]=j;if(!b){break f}Ca(b+12|0,D[b+16>>2]);Ba(b,D[b+4>>2]);ma(b);break f}if(!j){break f}Ca(j+12|0,D[j+16>>2]);Ba(j,D[j+4>>2]);ma(j)}$=e+32|0;c=(l|0)!=(p|0)}if(B[k+27|0]<0){ma(D[k+16>>2])}if(c){break b}}if(!j){break b}D[k+16>>2]=0;if(!gb(1,k+16|0,D[a>>2])){break b}b=0;r=D[k+16>>2];if(r){while(1){n=0;i=$-32|0;$=i;D[i+24>>2]=0;D[i+16>>2]=0;D[i+20>>2]=0;c=D[a>>2];e=D[c+8>>2];p:{q:{f=D[c+12>>2];d=D[c+20>>2];g=D[c+16>>2];r:{if((f|0)<=(d|0)&g>>>0>=e>>>0|(d|0)>(f|0)){break r}f=E[g+D[c>>2]|0];e=c;c=d;d=g+1|0;c=d?c:c+1|0;D[e+16>>2]=d;D[e+20>>2]=c;Sb(i+16|0,f);if(f){e=D[a>>2];m=Tb(i+16|0);d=D[e+20>>2];l=D[e+16>>2];c=f;h=l+c|0;g=D[e+12>>2];d=c>>>0>h>>>0?d+1|0:d;if(h>>>0>G[e+8>>2]&(g|0)<=(d|0)|(d|0)>(g|0)){break r}oa(m,l+D[e>>2]|0,f);d=D[e+20>>2];f=c+D[e+16>>2]|0;d=f>>>0<c>>>0?d+1|0:d;D[e+16>>2]=f;D[e+20>>2]=d}D[i+12>>2]=0;if(!gb(1,i+12|0,D[a>>2])){break r}c=D[i+12>>2];if(!c){break r}D[i+8>>2]=0;D[i>>2]=0;D[i+4>>2]=0;if((c|0)<0){break q}d=na(c);D[i>>2]=d;e=c+d|0;D[i+8>>2]=e;m=pa(d,0,c);D[i+4>>2]=e;e=D[a>>2];n=D[e+8>>2];g=D[e+12>>2];f=D[e+20>>2];l=D[e+16>>2];h=c+l|0;f=h>>>0<c>>>0?f+1|0:f;n=(f|0)<=(g|0)&h>>>0<=n>>>0|(f|0)<(g|0);if(n){oa(m,l+D[e>>2]|0,c);d=c;f=c+D[e+16>>2]|0;c=D[e+20>>2];D[e+16>>2]=f;D[e+20>>2]=d>>>0>f>>>0?c+1|0:c;g=$-48|0;$=g;d=ab(j,i+16|0);if((d|0)!=(j+4|0)){e=D[d+4>>2];s:{if(!e){f=D[d+8>>2];if(D[f>>2]==(d|0)){break s}c=d+8|0;while(1){e=D[c>>2];c=e+8|0;f=D[e+8>>2];if((e|0)!=D[f>>2]){continue}break}break s}while(1){f=e;e=D[e>>2];if(e){continue}break}}if(D[j>>2]==(d|0)){D[j>>2]=f}D[j+8>>2]=D[j+8>>2]-1;f=D[j+4>>2];h=d;t:{u:{e=D[d>>2];if(e){c=D[h+4>>2];if(!c){break u}while(1){d=c;c=D[c>>2];if(c){continue}break}}e=D[d+4>>2];if(e){break u}e=0;m=1;break t}D[e+8>>2]=D[d+8>>2];m=0}l=D[d+8>>2];c=D[l>>2];v:{if((d|0)==(c|0)){D[l>>2]=e;if((d|0)==(f|0)){c=0;f=e;break v}c=D[l+4>>2];break v}D[l+4>>2]=e}o=!E[d+12|0];if((d|0)!=(h|0)){l=D[h+8>>2];D[d+8>>2]=l;D[l+(((h|0)!=D[D[h+8>>2]>>2])<<2)>>2]=d;l=D[h>>2];D[d>>2]=l;D[l+8>>2]=d;l=D[h+4>>2];D[d+4>>2]=l;if(l){D[l+8>>2]=d}B[d+12|0]=E[h+12|0];f=(f|0)==(h|0)?d:f}w:{if(o|!f){break w}if(m){while(1){e=E[c+12|0];x:{d=D[c+8>>2];if(D[d>>2]!=(c|0)){if(!e){B[c+12|0]=1;B[d+12|0]=0;e=D[d+4>>2];m=D[e>>2];D[d+4>>2]=m;if(m){D[m+8>>2]=d}D[e+8>>2]=D[d+8>>2];m=D[d+8>>2];D[(((d|0)!=D[m>>2])<<2)+m>>2]=e;D[e>>2]=d;D[d+8>>2]=e;d=c;c=D[c>>2];f=(c|0)==(f|0)?d:f;c=D[c+4>>2]}y:{z:{d=D[c>>2];A:{if(!(E[d+12|0]?0:d)){e=D[c+4>>2];if(E[e+12|0]?0:e){break A}B[c+12|0]=0;c=D[c+8>>2];B:{if((f|0)==(c|0)){c=f;break B}if(E[c+12|0]){break x}}B[c+12|0]=1;break w}e=D[c+4>>2];if(!e){break z}}if(E[e+12|0]){break z}d=c;break y}B[d+12|0]=1;B[c+12|0]=0;e=D[d+4>>2];D[c>>2]=e;if(e){D[e+8>>2]=c}D[d+8>>2]=D[c+8>>2];e=D[c+8>>2];D[((D[e>>2]!=(c|0))<<2)+e>>2]=d;D[d+4>>2]=c;D[c+8>>2]=d;e=c}c=D[d+8>>2];B[d+12|0]=E[c+12|0];B[c+12|0]=1;B[e+12|0]=1;d=D[c+4>>2];e=D[d>>2];D[c+4>>2]=e;if(e){D[e+8>>2]=c}D[d+8>>2]=D[c+8>>2];e=D[c+8>>2];D[(((c|0)!=D[e>>2])<<2)+e>>2]=d;D[d>>2]=c;D[c+8>>2]=d;break w}if(!e){B[c+12|0]=1;B[d+12|0]=0;e=D[c+4>>2];D[d>>2]=e;if(e){D[e+8>>2]=d}D[c+8>>2]=D[d+8>>2];e=D[d+8>>2];D[(((d|0)!=D[e>>2])<<2)+e>>2]=c;D[c+4>>2]=d;D[d+8>>2]=c;f=(d|0)==(f|0)?c:f;c=D[d>>2]}e=D[c>>2];C:{if(!(!e|E[e+12|0])){d=c;break C}d=D[c+4>>2];if(!(E[d+12|0]?0:d)){B[c+12|0]=0;c=D[c+8>>2];if((c|0)!=(f|0)?E[c+12|0]:0){break x}B[c+12|0]=1;break w}if(e){if(!E[e+12|0]){d=c;break C}d=D[c+4>>2]}B[d+12|0]=1;B[c+12|0]=0;e=D[d>>2];D[c+4>>2]=e;if(e){D[e+8>>2]=c}D[d+8>>2]=D[c+8>>2];e=D[c+8>>2];D[((D[e>>2]!=(c|0))<<2)+e>>2]=d;D[d>>2]=c;D[c+8>>2]=d;e=c}c=D[d+8>>2];B[d+12|0]=E[c+12|0];B[c+12|0]=1;B[e+12|0]=1;d=D[c>>2];e=D[d+4>>2];D[c>>2]=e;if(e){D[e+8>>2]=c}D[d+8>>2]=D[c+8>>2];e=D[c+8>>2];D[(((c|0)!=D[e>>2])<<2)+e>>2]=d;D[d+4>>2]=c;D[c+8>>2]=d;break w}d=c;c=D[c+8>>2];c=D[(((d|0)==D[c>>2])<<2)+c>>2];continue}}B[e+12|0]=1}c=D[h+28>>2];if(c){D[h+32>>2]=c;ma(c)}if(B[h+27|0]<0){ma(D[h+16>>2])}ma(h)}D[g>>2]=0;D[g+4>>2]=0;D[g+8>>2]=0;c=D[i+4>>2]-D[i>>2]|0;Ka(g,c);oa(D[g>>2],D[i>>2],c);D:{if(B[i+27|0]>=0){D[g+24>>2]=D[i+24>>2];c=D[i+20>>2];D[g+16>>2]=D[i+16>>2];D[g+20>>2]=c;break D}ta(g+16|0,D[i+16>>2],D[i+20>>2])}D[g+36>>2]=0;D[g+28>>2]=0;D[g+32>>2]=0;Ka(g+28|0,D[g+4>>2]-D[g>>2]|0);c=D[g>>2];oa(D[g+28>>2],c,D[g+4>>2]-c|0);f=g+16|0;d=f;c=D[j+4>>2];E:{F:{if(c){e=E[d+11|0];h=e<<24>>24<0;m=h?D[d>>2]:d;h=h?D[d+4>>2]:e;d=j+4|0;while(1){e=E[c+27|0];l=e<<24>>24<0;e=l?D[c+20>>2]:e;p=e>>>0<h>>>0;G:{H:{I:{J:{K:{o=p?e:h;L:{if(o){q=c+16|0;l=l?D[q>>2]:q;q=va(m,l,o);if(!q){if(e>>>0>h>>>0){break L}break K}if((q|0)>=0){break K}break L}if(e>>>0<=h>>>0){break J}}e=D[c>>2];if(e){break G}break F}e=va(l,m,o);if(e){break I}}if(p){break H}break E}if((e|0)>=0){break E}}d=c+4|0;e=D[c+4>>2];if(!e){break E}c=d}d=c;c=e;continue}}c=j+4|0}d=c}e=D[d>>2];if(e){c=0}else{e=na(40);D[e+24>>2]=D[f+8>>2];h=D[f+4>>2];D[e+16>>2]=D[f>>2];D[e+20>>2]=h;D[f>>2]=0;D[f+4>>2]=0;D[f+8>>2]=0;D[e+36>>2]=0;h=e+28|0;D[h>>2]=0;D[h+4>>2]=0;Ka(h,D[f+16>>2]-D[f+12>>2]|0);m=D[h>>2];h=D[f+12>>2];oa(m,h,D[f+16>>2]-h|0);D[e+8>>2]=c;D[e>>2]=0;D[e+4>>2]=0;D[d>>2]=e;c=D[D[j>>2]>>2];if(c){D[j>>2]=c;c=D[d>>2]}else{c=e}pb(D[j+4>>2],c);D[j+8>>2]=D[j+8>>2]+1;c=1}B[g+44|0]=c;D[g+40>>2]=e;c=D[g+28>>2];if(c){D[g+32>>2]=c;ma(c)}if(B[g+27|0]<0){ma(D[g+16>>2])}c=D[g>>2];if(c){D[g+4>>2]=c;ma(c)}$=g+48|0;d=D[i>>2];if(!d){break r}}D[i+4>>2]=d;ma(d)}if(B[i+27|0]<0){ma(D[i+16>>2])}$=i+32|0;break p}qa();T()}if(!n){break b}b=b+1|0;if((r|0)!=(b|0)){continue}break}}D[k+12>>2]=0;if(!gb(1,k+12|0,D[a>>2])){break b}b=D[a>>2];c=D[b+8>>2];d=D[b+16>>2];e=c-d|0;f=D[k+12>>2];b=D[b+12>>2]-(D[b+20>>2]+(c>>>0<d>>>0)|0)|0;if(e>>>0<f>>>0&(b|0)<=0|(b|0)<0){break b}c=0;b=D[k+36>>2];if(f){while(1){e=D[k+40>>2];M:{if(e>>>0>b>>>0){D[b+4>>2]=0;D[b>>2]=j;b=b+8|0;D[k+36>>2]=b;break M}d=D[k+32>>2];g=b-d|0;h=g>>3;b=h+1|0;if(b>>>0>=536870912){break d}e=e-d|0;n=e>>2;b=e>>>0<2147483640?b>>>0>n>>>0?b:n:536870911;if(b>>>0>=536870912){break c}m=h<<3;h=b<<3;e=na(h);b=m+e|0;D[b+4>>2]=0;D[b>>2]=j;b=b+8|0;if((g|0)>0){oa(e,d,g)}D[k+40>>2]=e+h;D[k+36>>2]=b;D[k+32>>2]=e;if(!d){break M}ma(d)}c=c+1|0;if((f|0)!=(c|0)){continue}break}}if(D[k+32>>2]!=(b|0)){continue}break}a=1;break a}qa();T()}ra(1326);T()}b=D[k+32>>2];a=0}if(b){ma(b)}$=k+48|0;return a}function he(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;k=$-48|0;$=k;a:{if((c|0)!=1){break a}d=D[a+4>>2];g=D[a+12>>2];D[k+40>>2]=0;a=k;D[a+32>>2]=0;D[a+36>>2]=0;D[a+24>>2]=0;D[a+28>>2]=0;D[a+16>>2]=0;D[a+20>>2]=0;D[a+8>>2]=0;D[a+12>>2]=0;c=a+8|0;b:{if((b|0)==-2){break b}l=D[D[D[d+4>>2]+8>>2]+(g<<2)>>2];if((ba[D[D[d>>2]+8>>2]](d)|0)==1){j=$-32|0;$=j;f=D[D[D[d+4>>2]+8>>2]+(g<<2)>>2];c:{d:{e:{if((ba[D[D[d>>2]+8>>2]](d)|0)!=1|b-1>>>0>5){break e}h=ba[D[D[d>>2]+36>>2]](d)|0;a=ba[D[D[d>>2]+44>>2]](d,g)|0;if(!h|!a){break e}e=ba[D[D[d>>2]+40>>2]](d,g)|0;if(e){d=D[d+44>>2];D[j+12>>2]=e;D[j+8>>2]=d;D[j+20>>2]=a;D[j+16>>2]=a+12;e=j+8|0;a=0;f:{g:{switch(b-1|0){case 0:a=na(60);D[a+4>>2]=f;D[a>>2]=2988;b=D[c+8>>2];d=D[c+12>>2];f=D[c+16>>2];g=D[c+20>>2];h=D[c>>2];i=D[c+4>>2];D[a+40>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;D[a+24>>2]=f;D[a+28>>2]=g;D[a+16>>2]=b;D[a+20>>2]=d;D[a+8>>2]=h;D[a+12>>2]=i;f=D[c+24>>2];b=D[c+28>>2]-f|0;if(b){if((b|0)<0){break d}d=na(b);D[a+32>>2]=d;D[a+40>>2]=d+(b>>2<<2);m=a,n=oa(d,f,b)+b|0,D[m+36>>2]=n}b=D[e+4>>2];D[a+44>>2]=D[e>>2];D[a+48>>2]=b;b=D[e+12>>2];D[a+52>>2]=D[e+8>>2];D[a+56>>2]=b;D[a>>2]=2280;break f;case 3:a=na(112);D[a+4>>2]=f;D[a>>2]=2988;b=D[c+8>>2];d=D[c+12>>2];f=D[c+16>>2];g=D[c+20>>2];h=D[c>>2];i=D[c+4>>2];D[a+40>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;D[a+24>>2]=f;D[a+28>>2]=g;D[a+16>>2]=b;D[a+20>>2]=d;D[a+8>>2]=h;D[a+12>>2]=i;f=D[c+24>>2];b=D[c+28>>2]-f|0;if(b){if((b|0)<0){break d}d=na(b);D[a+32>>2]=d;D[a+40>>2]=d+(b>>2<<2);m=a,n=oa(d,f,b)+b|0,D[m+36>>2]=n}b=D[e+4>>2];D[a+44>>2]=D[e>>2];D[a+48>>2]=b;b=D[e+12>>2];D[a+52>>2]=D[e+8>>2];D[a+56>>2]=b;D[a+60>>2]=0;D[a+64>>2]=0;D[a>>2]=3044;D[a+68>>2]=0;D[a+72>>2]=0;D[a+76>>2]=0;D[a+80>>2]=0;D[a+84>>2]=0;D[a+88>>2]=0;D[a+92>>2]=0;D[a+96>>2]=0;D[a+100>>2]=0;D[a+104>>2]=0;D[a+108>>2]=0;break f;case 4:a=na(104);D[a+4>>2]=f;D[a>>2]=2988;b=D[c+8>>2];d=D[c+12>>2];f=D[c+16>>2];g=D[c+20>>2];h=D[c>>2];i=D[c+4>>2];D[a+40>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;D[a+24>>2]=f;D[a+28>>2]=g;D[a+16>>2]=b;D[a+20>>2]=d;D[a+8>>2]=h;D[a+12>>2]=i;f=D[c+24>>2];b=D[c+28>>2]-f|0;if(b){if((b|0)<0){break d}d=na(b);D[a+32>>2]=d;D[a+40>>2]=d+(b>>2<<2);m=a,n=oa(d,f,b)+b|0,D[m+36>>2]=n}b=D[e+4>>2];D[a+44>>2]=D[e>>2];D[a+48>>2]=b;b=D[e+8>>2];d=D[e+12>>2];D[a+84>>2]=0;D[a+76>>2]=0;D[a+80>>2]=0;D[a+60>>2]=0;D[a+64>>2]=0;D[a>>2]=3292;D[a+52>>2]=b;D[a+56>>2]=d;b=D[e+4>>2];D[a+88>>2]=D[e>>2];D[a+92>>2]=b;b=D[e+12>>2];D[a+96>>2]=D[e+8>>2];D[a+100>>2]=b;break f;case 5:break g;default:break f}}a=na(128);D[a+4>>2]=f;D[a>>2]=2988;b=D[c+8>>2];d=D[c+12>>2];f=D[c+16>>2];g=D[c+20>>2];h=D[c>>2];i=D[c+4>>2];D[a+40>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;D[a+24>>2]=f;D[a+28>>2]=g;D[a+16>>2]=b;D[a+20>>2]=d;D[a+8>>2]=h;D[a+12>>2]=i;h:{i:{d=D[c+28>>2]-D[c+24>>2]|0;if(d){if((d|0)<0){break i}b=na(d);D[a+32>>2]=b;D[a+36>>2]=b;D[a+40>>2]=b+(d>>2<<2);f=D[c+24>>2];d=D[c+28>>2]-f|0;if((d|0)>0){b=oa(b,f,d)+d|0}D[a+36>>2]=b}D[a>>2]=2932;b=D[e+4>>2];D[a+44>>2]=D[e>>2];D[a+48>>2]=b;b=D[e+12>>2];D[a+52>>2]=D[e+8>>2];D[a+56>>2]=b;b=a- -64|0;D[b>>2]=0;D[b+4>>2]=0;D[a+60>>2]=4156;D[a>>2]=3528;b=D[e+4>>2];D[a+72>>2]=D[e>>2];D[a+76>>2]=b;b=D[e+12>>2];D[a+80>>2]=D[e+8>>2];D[a+84>>2]=b;D[a+104>>2]=1065353216;D[a+108>>2]=-1;D[a+96>>2]=-1;D[a+100>>2]=-1;D[a+88>>2]=1;D[a+92>>2]=-1;D[a+60>>2]=3764;D[a+112>>2]=0;D[a+116>>2]=0;B[a+117|0]=0;B[a+118|0]=0;B[a+119|0]=0;B[a+120|0]=0;B[a+121|0]=0;B[a+122|0]=0;B[a+123|0]=0;B[a+124|0]=0;break h}qa();T()}break f}e=a;break e}e=D[d+44>>2];D[j+12>>2]=h;D[j+8>>2]=e;D[j+20>>2]=a;D[j+16>>2]=a+12;e=j+8|0;a=0;j:{k:{switch(b-1|0){case 0:a=na(60);D[a+4>>2]=f;D[a>>2]=2988;b=D[c+8>>2];d=D[c+12>>2];f=D[c+16>>2];g=D[c+20>>2];h=D[c>>2];i=D[c+4>>2];D[a+40>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;D[a+24>>2]=f;D[a+28>>2]=g;D[a+16>>2]=b;D[a+20>>2]=d;D[a+8>>2]=h;D[a+12>>2]=i;f=D[c+24>>2];b=D[c+28>>2]-f|0;if(b){if((b|0)<0){break d}d=na(b);D[a+32>>2]=d;D[a+40>>2]=d+(b>>2<<2);m=a,n=oa(d,f,b)+b|0,D[m+36>>2]=n}b=D[e+4>>2];D[a+44>>2]=D[e>>2];D[a+48>>2]=b;b=D[e+12>>2];D[a+52>>2]=D[e+8>>2];D[a+56>>2]=b;D[a>>2]=4184;break j;case 3:a=na(112);D[a+4>>2]=f;D[a>>2]=2988;b=D[c+8>>2];d=D[c+12>>2];f=D[c+16>>2];g=D[c+20>>2];h=D[c>>2];i=D[c+4>>2];D[a+40>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;D[a+24>>2]=f;D[a+28>>2]=g;D[a+16>>2]=b;D[a+20>>2]=d;D[a+8>>2]=h;D[a+12>>2]=i;f=D[c+24>>2];b=D[c+28>>2]-f|0;if(b){if((b|0)<0){break d}d=na(b);D[a+32>>2]=d;D[a+40>>2]=d+(b>>2<<2);m=a,n=oa(d,f,b)+b|0,D[m+36>>2]=n}b=D[e+4>>2];D[a+44>>2]=D[e>>2];D[a+48>>2]=b;b=D[e+12>>2];D[a+52>>2]=D[e+8>>2];D[a+56>>2]=b;D[a+60>>2]=0;D[a+64>>2]=0;D[a>>2]=4608;D[a+68>>2]=0;D[a+72>>2]=0;D[a+76>>2]=0;D[a+80>>2]=0;D[a+84>>2]=0;D[a+88>>2]=0;D[a+92>>2]=0;D[a+96>>2]=0;D[a+100>>2]=0;D[a+104>>2]=0;D[a+108>>2]=0;break j;case 4:a=na(104);D[a+4>>2]=f;D[a>>2]=2988;b=D[c+8>>2];d=D[c+12>>2];f=D[c+16>>2];g=D[c+20>>2];h=D[c>>2];i=D[c+4>>2];D[a+40>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;D[a+24>>2]=f;D[a+28>>2]=g;D[a+16>>2]=b;D[a+20>>2]=d;D[a+8>>2]=h;D[a+12>>2]=i;f=D[c+24>>2];b=D[c+28>>2]-f|0;if(b){if((b|0)<0){break d}d=na(b);D[a+32>>2]=d;D[a+40>>2]=d+(b>>2<<2);m=a,n=oa(d,f,b)+b|0,D[m+36>>2]=n}b=D[e+4>>2];D[a+44>>2]=D[e>>2];D[a+48>>2]=b;b=D[e+8>>2];d=D[e+12>>2];D[a+84>>2]=0;D[a+76>>2]=0;D[a+80>>2]=0;D[a+60>>2]=0;D[a+64>>2]=0;D[a>>2]=4844;D[a+52>>2]=b;D[a+56>>2]=d;b=D[e+4>>2];D[a+88>>2]=D[e>>2];D[a+92>>2]=b;b=D[e+12>>2];D[a+96>>2]=D[e+8>>2];D[a+100>>2]=b;break j;case 5:break k;default:break j}}a=na(128);D[a+4>>2]=f;D[a>>2]=2988;b=D[c+8>>2];d=D[c+12>>2];f=D[c+16>>2];g=D[c+20>>2];h=D[c>>2];i=D[c+4>>2];D[a+40>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;D[a+24>>2]=f;D[a+28>>2]=g;D[a+16>>2]=b;D[a+20>>2]=d;D[a+8>>2]=h;D[a+12>>2]=i;l:{m:{d=D[c+28>>2]-D[c+24>>2]|0;if(d){if((d|0)<0){break m}b=na(d);D[a+32>>2]=b;D[a+36>>2]=b;D[a+40>>2]=b+(d>>2<<2);f=D[c+24>>2];d=D[c+28>>2]-f|0;if((d|0)>0){b=oa(b,f,d)+d|0}D[a+36>>2]=b}D[a>>2]=4552;b=D[e+4>>2];D[a+44>>2]=D[e>>2];D[a+48>>2]=b;b=D[e+12>>2];D[a+52>>2]=D[e+8>>2];D[a+56>>2]=b;b=a- -64|0;D[b>>2]=0;D[b+4>>2]=0;D[a+60>>2]=5652;D[a>>2]=5068;b=D[e+4>>2];D[a+72>>2]=D[e>>2];D[a+76>>2]=b;b=D[e+12>>2];D[a+80>>2]=D[e+8>>2];D[a+84>>2]=b;D[a+104>>2]=1065353216;D[a+108>>2]=-1;D[a+96>>2]=-1;D[a+100>>2]=-1;D[a+88>>2]=1;D[a+92>>2]=-1;D[a+60>>2]=5288;D[a+112>>2]=0;D[a+116>>2]=0;B[a+117|0]=0;B[a+118|0]=0;B[a+119|0]=0;B[a+120|0]=0;B[a+121|0]=0;B[a+122|0]=0;B[a+123|0]=0;B[a+124|0]=0;break l}qa();T()}break j}e=a}$=j+32|0;break c}qa();T()}if(e){break b}}e=na(44);D[e+4>>2]=l;D[e>>2]=2988;a=D[c+8>>2];b=D[c+12>>2];d=D[c+16>>2];j=D[c+20>>2];f=D[c>>2];g=D[c+4>>2];D[e+40>>2]=0;D[e+32>>2]=0;D[e+36>>2]=0;D[e+24>>2]=d;D[e+28>>2]=j;D[e+16>>2]=a;D[e+20>>2]=b;D[e+8>>2]=f;D[e+12>>2]=g;n:{a=D[c+28>>2];c=D[c+24>>2];a=a-c|0;if(a){if((a|0)<0){break n}b=na(a);D[e+32>>2]=b;D[e+40>>2]=b+(a>>2<<2);m=e,n=oa(b,c,a)+a|0,D[m+36>>2]=n}D[e>>2]=5680;break b}qa();T()}a=D[k+32>>2];if(!a){break a}D[k+36>>2]=a;ma(a)}$=k+48|0;return e|0}function $d(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0,K=0;h=$+-64|0;$=h;D[a+8>>2]=e;f=a+32|0;g=D[f>>2];d=D[a+36>>2]-g>>2;a:{b:{if(d>>>0<e>>>0){sa(f,e-d|0);D[h+56>>2]=0;D[h+60>>2]=0;D[h+48>>2]=0;D[h+52>>2]=0;D[h+40>>2]=0;D[h+44>>2]=0;D[h+32>>2]=0;D[h+36>>2]=0;D[h+24>>2]=0;D[h+28>>2]=0;D[h+16>>2]=0;D[h+20>>2]=0;D[h>>2]=0;break b}if(d>>>0>e>>>0){D[a+36>>2]=g+(e<<2)}D[h+56>>2]=0;D[h+60>>2]=0;D[h+48>>2]=0;D[h+52>>2]=0;D[h+40>>2]=0;D[h+44>>2]=0;D[h+32>>2]=0;D[h+36>>2]=0;D[h+24>>2]=0;D[h+28>>2]=0;D[h+16>>2]=0;D[h+20>>2]=0;D[h>>2]=0;d=0;if(!e){break a}}xa(h+16|0,e,h);i=D[h+28>>2];d=D[h+32>>2]}D[h>>2]=0;d=d-i>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}D[h+32>>2]=(e<<2)+i;break c}xa(h+16|12,e-d|0,h)}D[h>>2]=0;f=D[h+40>>2];d=D[h+44>>2]-f>>2;d:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break d}D[h+44>>2]=f+(e<<2);break d}xa(h+40|0,e-d|0,h)}D[h>>2]=0;f=D[h+52>>2];d=D[h+56>>2]-f>>2;e:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break e}D[h+56>>2]=f+(e<<2);break e}xa(h+52|0,e-d|0,h)}i=0;f:{if(D[a+8>>2]<=0){break f}j=D[a+32>>2];g=D[h+16>>2];while(1){d=i<<2;f=D[d+g>>2];m=D[a+16>>2];g:{if((f|0)>(m|0)){D[d+j>>2]=m;break g}d=d+j|0;m=D[a+12>>2];if((m|0)>(f|0)){D[d>>2]=m;break g}D[d>>2]=f}i=i+1|0;d=D[a+8>>2];if((i|0)<(d|0)){continue}break}if((d|0)<=0){break f}d=0;while(1){g=d<<2;f=g+c|0;g=D[b+g>>2]+D[g+j>>2]|0;D[f>>2]=g;h:{if((g|0)>D[a+16>>2]){g=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break h}g=g+D[a+20>>2]|0}D[f>>2]=g}d=d+1|0;if((d|0)<D[a+8>>2]){continue}break}}E=D[a+52>>2];q=D[a+48>>2];w=na(16);d=w;D[d>>2]=0;D[d+4>>2]=0;D[d+8>>2]=0;D[d+12>>2]=0;D[h+8>>2]=0;D[h>>2]=0;D[h+4>>2]=0;i:{if(e){if(e>>>0>=1073741824){break i}d=e<<2;v=na(d);D[h>>2]=v;D[h+8>>2]=d+v;pa(v,0,d)}p=1;d=D[a+56>>2];z=D[d>>2];d=D[d+4>>2]-z|0;j:{if((d|0)<5){break j}d=d>>2;F=(d|0)>2?d:2;G=d>>>0>1?d:1;A=e&-2;B=e&1;H=e&-4;C=e&3;x=e-1|0;I=e<<2;m=1;while(1){k:{l:{m:{n:{if((m|0)!=(G|0)){f=D[(m<<2)+z>>2];d=(f>>>0)%3|0;o:{p:{if((f|0)==-1){break p}j=0;g=f+2|0;y=(d|0)!=0|(g|0)!=-1;n=1;r=d?f-1|0:g;o=1<<r;s=r>>>5|0;K=D[q>>2];d=f;q:{while(1){r:{if(D[(d>>>3&536870908)+K>>2]>>>d&1){break r}g=D[D[D[q+64>>2]+12>>2]+(d<<2)>>2];if((g|0)==-1){break r}k=D[E>>2];i=D[q+28>>2];p=D[k+(D[i+(g<<2)>>2]<<2)>>2];if((p|0)>=(m|0)){break r}l=g+1|0;l=D[k+(D[i+(((l>>>0)%3|0?l:g-2|0)<<2)>>2]<<2)>>2];if((l|0)>=(m|0)){break r}i=D[k+(D[i+(g+((g>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((i|0)>=(m|0)){break r}s:{if(!e){break s}g=D[(h+16|0)+J(j,12)>>2];k=J(e,i);l=J(e,l);p=J(e,p);i=0;u=0;if(x){while(1){D[g+(i<<2)>>2]=(D[(i+k<<2)+c>>2]+D[(i+l<<2)+c>>2]|0)-D[(i+p<<2)+c>>2];t=i|1;D[g+(t<<2)>>2]=(D[(k+t<<2)+c>>2]+D[(l+t<<2)+c>>2]|0)-D[(p+t<<2)+c>>2];i=i+2|0;u=u+2|0;if((A|0)!=(u|0)){continue}break}}if(!B){break s}D[g+(i<<2)>>2]=(D[(i+k<<2)+c>>2]+D[(i+l<<2)+c>>2]|0)-D[(i+p<<2)+c>>2]}g=4;j=j+1|0;if((j|0)==4){break q}}t:{if(n&1){i=d-2|0;g=d+1|0;d=-1;g=(g>>>0)%3|0?g:i;if((g|0)==-1|D[D[q>>2]+(g>>>3&536870908)>>2]>>>g&1){break t}g=D[D[D[q+64>>2]+12>>2]+(g<<2)>>2];if((g|0)==-1){break t}d=g+1|0;d=(d>>>0)%3|0?d:g-2|0;break t}u:{if((d>>>0)%3|0){i=d-1|0;break u}i=d+2|0;d=-1;if((i|0)==-1){break t}}d=-1;if(D[D[q>>2]+(i>>>3&536870908)>>2]>>>i&1){break t}g=D[D[D[q+64>>2]+12>>2]+(i<<2)>>2];if((g|0)==-1){break t}if((g>>>0)%3|0){d=g-1|0;break t}d=g+2|0}v:{if((d|0)==(f|0)){break v}if(!((n^1)&1|(d|0)!=-1)){if(!y|o&D[D[q>>2]+(s<<2)>>2]){break v}d=D[D[D[q+64>>2]+12>>2]+(r<<2)>>2];if((d|0)==-1){break v}n=0;d=(d>>>0)%3|0?d-1|0:d+2|0}if((d|0)!=-1){continue}}break}g=j;if((g|0)<=0){break p}}if(e){pa(D[h>>2],0,I)}d=g-1|0;t=(d<<2)+w|0;d=J(d,12)+a|0;u=d;y=D[d- -64>>2];p=0;n=0;d=0;while(1){f=D[t>>2];D[t>>2]=f+1;if(f>>>0>=y>>>0){break j}w:{if(D[D[u+60>>2]+(f>>>3&536870908)>>2]>>>f&1){break w}d=d+1|0;if(!e){break w}j=D[h>>2];k=D[(h+16|0)+J(n,12)>>2];r=0;i=0;f=0;if(x>>>0>=3){while(1){l=i<<2;o=l+j|0;D[o>>2]=D[o>>2]+D[k+l>>2];o=l|4;s=o+j|0;D[s>>2]=D[s>>2]+D[k+o>>2];o=l|8;s=o+j|0;D[s>>2]=D[s>>2]+D[k+o>>2];l=l|12;o=l+j|0;D[o>>2]=D[o>>2]+D[k+l>>2];i=i+4|0;f=f+4|0;if((H|0)!=(f|0)){continue}break}}if(!C){break w}while(1){f=i<<2;l=f+j|0;D[l>>2]=D[l>>2]+D[f+k>>2];i=i+1|0;r=r+1|0;if((C|0)!=(r|0)){continue}break}}n=n+1|0;if((n|0)!=(g|0)){continue}break}n=J(e,m);f=n;if(!d){break o}if(!e){break l}f=D[h>>2];i=0;g=0;if(x){break n}break m}f=J(e,m)}if(D[a+8>>2]<=0){break k}n=(J(m-1|0,e)<<2)+c|0;j=D[a+32>>2];i=0;while(1){d=i<<2;g=D[d+n>>2];k=D[a+16>>2];x:{if((g|0)>(k|0)){D[d+j>>2]=k;break x}d=d+j|0;k=D[a+12>>2];if((k|0)>(g|0)){D[d>>2]=k;break x}D[d>>2]=g}i=i+1|0;g=D[a+8>>2];if((i|0)<(g|0)){continue}break}d=0;if((g|0)<=0){break k}f=f<<2;i=f+c|0;n=b+f|0;while(1){g=d<<2;f=g+i|0;g=D[g+n>>2]+D[g+j>>2]|0;D[f>>2]=g;y:{if((g|0)>D[a+16>>2]){g=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break y}g=g+D[a+20>>2]|0}D[f>>2]=g}d=d+1|0;if((d|0)<D[a+8>>2]){continue}break}break k}ua();T()}while(1){j=i<<2;k=j+f|0;D[k>>2]=D[k>>2]/(d|0);j=f+(j|4)|0;D[j>>2]=D[j>>2]/(d|0);i=i+2|0;g=g+2|0;if((A|0)!=(g|0)){continue}break}}if(!B){break l}f=f+(i<<2)|0;D[f>>2]=D[f>>2]/(d|0)}if(D[a+8>>2]<=0){break k}j=D[a+32>>2];i=0;while(1){d=i<<2;f=D[d+v>>2];g=D[a+16>>2];z:{if((f|0)>(g|0)){D[d+j>>2]=g;break z}d=d+j|0;g=D[a+12>>2];if((g|0)>(f|0)){D[d>>2]=g;break z}D[d>>2]=f}i=i+1|0;f=D[a+8>>2];if((i|0)<(f|0)){continue}break}d=0;if((f|0)<=0){break k}f=n<<2;i=f+c|0;n=b+f|0;while(1){g=d<<2;f=g+i|0;g=D[g+n>>2]+D[g+j>>2]|0;D[f>>2]=g;A:{if((g|0)>D[a+16>>2]){g=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break A}g=g+D[a+20>>2]|0}D[f>>2]=g}d=d+1|0;if((d|0)<D[a+8>>2]){continue}break}}p=1;m=m+1|0;if((F|0)!=(m|0)){continue}break}}a=D[h>>2];if(a){ma(a)}ma(w);a=D[h+52>>2];if(a){D[h+56>>2]=a;ma(a)}a=D[h+40>>2];if(a){D[h+44>>2]=a;ma(a)}a=D[h+28>>2];if(a){D[h+32>>2]=a;ma(a)}a=D[h+16>>2];if(a){D[h+20>>2]=a;ma(a)}$=h- -64|0;return p|0}qa();T()}function nb(a,b,c,d){var e=0,f=0,g=0,h=0,i=0;a:{b:{if(!d){break b}c:{d:{switch(D[a+28>>2]-1|0){case 0:i=1;e:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break e}e=D[a>>2];h=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=b;b=h+b|0;g=D[e+4>>2];e=g-h|0;if(!E[a+32|0]){if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=B[b|0];f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)<(e|0)?c:e)|0)){break e}b=b+1|0;if(g>>>0>b>>>0){continue}break}break a}if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=K(B[b|0])/K(127);f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)<(e|0)?c:e)|0)){break e}b=b+1|0;if(g>>>0>b>>>0){continue}break}break a}if((c|0)>(e|0)){break c}break b;case 1:i=1;f:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break f}e=D[a>>2];h=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=b;b=h+b|0;g=D[e+4>>2];e=g-h|0;if(!E[a+32|0]){if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=E[b|0];f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)<(e|0)?c:e)|0)){break f}b=b+1|0;if(g>>>0>b>>>0){continue}break}break a}if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=K(E[b|0])/K(255);f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)<(e|0)?c:e)|0)){break f}b=b+1|0;if(g>>>0>b>>>0){continue}break}break a}if((c|0)>(e|0)){break c}break b;case 2:i=1;g:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break g}e=D[a>>2];h=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=b;b=h+b|0;g=D[e+4>>2];e=g-h|0;if(!E[a+32|0]){if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=C[b>>1];f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)<(e|0)?c:e)|0)){break g}b=b+2|0;if(g>>>0>b>>>0){continue}break}break a}if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=K(C[b>>1])/K(32767);f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)<(e|0)?c:e)|0)){break g}b=b+2|0;if(g>>>0>b>>>0){continue}break}break a}if((c|0)>(e|0)){break c}break b;case 3:i=1;h:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break h}e=D[a>>2];h=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=b;b=h+b|0;g=D[e+4>>2];e=g-h|0;if(!E[a+32|0]){if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=F[b>>1];f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)<(e|0)?c:e)|0)){break h}b=b+2|0;if(g>>>0>b>>>0){continue}break}break a}if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=K(F[b>>1])/K(65535);f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)<(e|0)?c:e)|0)){break h}b=b+2|0;if(g>>>0>b>>>0){continue}break}break a}if((c|0)>(e|0)){break c}break b;case 4:i=1;i:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break i}e=D[a>>2];h=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=b;b=h+b|0;g=D[e+4>>2];e=g-h|0;if(!E[a+32|0]){if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=D[b>>2];f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)<(e|0)?c:e)|0)){break i}b=b+4|0;if(g>>>0>b>>>0){continue}break}break a}if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=K(D[b>>2])*K(4.656612873077393e-10);f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)<(e|0)?c:e)|0)){break i}b=b+4|0;if(g>>>0>b>>>0){continue}break}break a}if((c|0)>(e|0)){break c}break b;case 5:i=1;j:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break j}e=D[a>>2];h=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=b;b=h+b|0;g=D[e+4>>2];e=g-h|0;if(!E[a+32|0]){if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=G[b>>2];f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)<(e|0)?c:e)|0)){break j}b=b+4|0;if(g>>>0>b>>>0){continue}break}break a}if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=K(G[b>>2])*K(2.3283064365386963e-10);f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)<(e|0)?c:e)|0)){break j}b=b+4|0;if(g>>>0>b>>>0){continue}break}break a}if((c|0)>(e|0)){break c}break b;case 6:i=1;k:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break k}e=D[a>>2];h=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=b;b=h+b|0;g=D[e+4>>2];e=g-h|0;if(!E[a+32|0]){if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=+G[b>>2]+ +D[b+4>>2]*4294967296;f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)<(e|0)?c:e)|0)){break k}b=b+8|0;if(g>>>0>b>>>0){continue}break}break a}if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=K(+G[b>>2]+ +D[b+4>>2]*4294967296)*K(1.0842021724855044e-19);f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)<(e|0)?c:e)|0)){break k}b=b+8|0;if(g>>>0>b>>>0){continue}break}break a}if((c|0)>(e|0)){break c}break b;case 7:i=1;l:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break l}e=D[a>>2];h=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=b;b=h+b|0;g=D[e+4>>2];e=g-h|0;if(!E[a+32|0]){if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=+G[b>>2]+ +G[b+4>>2]*4294967296;f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)<(e|0)?c:e)|0)){break l}b=b+8|0;if(g>>>0>b>>>0){continue}break}break a}if((e|0)<=(f|0)){break a}f=0;while(1){H[(f<<2)+d>>2]=K(+G[b>>2]+ +G[b+4>>2]*4294967296)*K(5.421010862427522e-20);f=f+1|0;e=B[a+24|0];if((f|0)>=(((c|0)<(e|0)?c:e)|0)){break l}b=b+8|0;if(g>>>0>b>>>0){continue}break}break a}if((c|0)>(e|0)){break c}break b;case 8:i=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;g=D[e+4>>2];while(1){if(b>>>0>=g>>>0){break a}H[(f<<2)+d>>2]=H[b>>2];b=b+4|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 9:i=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;g=D[e+4>>2];while(1){if(b>>>0>=g>>>0){break a}H[(f<<2)+d>>2]=I[b>>3];b=b+8|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 10:break d;default:break b}}i=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){g=D[a>>2];e=D[g>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=e+b|0;while(1){if(G[g+4>>2]<=b>>>0){break a}H[(f<<2)+d>>2]=E[b|0]?K(1):K(0);b=b+1|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)<=(e|0)){break b}}pa((e<<2)+d|0,0,c-e<<2)}return i}return 0}function kf(a,b){a=a|0;b=b|0;var 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;m=$-16|0;$=m;D[m+12>>2]=b;b=na(32);D[m>>2]=b;D[m+4>>2]=24;D[m+8>>2]=-2147483616;B[b+24|0]=0;c=E[1308]|E[1309]<<8|(E[1310]<<16|E[1311]<<24);d=E[1304]|E[1305]<<8|(E[1306]<<16|E[1307]<<24);B[b+16|0]=d;B[b+17|0]=d>>>8;B[b+18|0]=d>>>16;B[b+19|0]=d>>>24;B[b+20|0]=c;B[b+21|0]=c>>>8;B[b+22|0]=c>>>16;B[b+23|0]=c>>>24;c=E[1300]|E[1301]<<8|(E[1302]<<16|E[1303]<<24);d=E[1296]|E[1297]<<8|(E[1298]<<16|E[1299]<<24);B[b+8|0]=d;B[b+9|0]=d>>>8;B[b+10|0]=d>>>16;B[b+11|0]=d>>>24;B[b+12|0]=c;B[b+13|0]=c>>>8;B[b+14|0]=c>>>16;B[b+15|0]=c>>>24;c=E[1292]|E[1293]<<8|(E[1294]<<16|E[1295]<<24);d=E[1288]|E[1289]<<8|(E[1290]<<16|E[1291]<<24);B[b|0]=d;B[b+1|0]=d>>>8;B[b+2|0]=d>>>16;B[b+3|0]=d>>>24;B[b+4|0]=c;B[b+5|0]=c>>>8;B[b+6|0]=c>>>16;B[b+7|0]=c>>>24;h=$-48|0;$=h;k=a;c=a+16|0;a=D[c>>2];a:{b:{if(!a){break b}d=D[m+12>>2];b=c;while(1){f=(d|0)>D[a+16>>2];b=f?b:a;a=D[(f<<2)+a>>2];if(a){continue}break}if((b|0)==(c|0)){break b}if((d|0)>=D[b+16>>2]){break a}}t=h+24|0;a=t;D[a+4>>2]=0;D[a+8>>2]=0;u=a+4|0;D[a>>2]=u;a=D[m+12>>2];d=h+16|0;D[d>>2]=0;D[d+4>>2]=0;D[h+8>>2]=a;D[h+12>>2]=d;b=D[t>>2];if((u|0)!=(b|0)){l=h+8|4;while(1){f=b;g=b+16|0;q=$-16|0;$=q;i=q+12|0;a=q+8|0;c:{d:{e:{f:{g:{h:{r=l+4|0;i:{if((r|0)==(d|0)){break i}b=E[d+27|0];e=b<<24>>24<0;n=E[g+11|0];v=n<<24>>24;j=(v|0)<0;b=e?D[d+20>>2]:b;n=j?D[g+4>>2]:n;o=b>>>0<n>>>0;p=o?b:n;if(p){j=j?D[g>>2]:g;s=d+16|0;e=e?D[s>>2]:s;s=va(j,e,p);if(!s){if(b>>>0>n>>>0){break i}break h}if((s|0)>=0){break h}break i}if(b>>>0<=n>>>0){break g}}e=D[d>>2];j:{a=d;k:{if((a|0)==D[l>>2]){break k}l:{if(e){b=e;while(1){a=b;b=D[b+4>>2];if(b){continue}break}break l}a=d+8|0;if((d|0)==D[D[d+8>>2]>>2]){while(1){b=D[a>>2];a=b+8|0;if((b|0)==D[D[b+8>>2]>>2]){continue}break}}a=D[a>>2]}j=E[g+11|0];b=j<<24>>24<0;o=E[a+27|0];n=o<<24>>24<0;m:{j=b?D[g+4>>2]:j;o=n?D[a+20>>2]:o;p=j>>>0<o>>>0?j:o;if(p){r=a+16|0;b=va(n?D[r>>2]:r,b?D[g>>2]:g,p);if(b){break m}}if(j>>>0>o>>>0){break k}break j}if((b|0)>=0){break j}}if(!e){D[i>>2]=d;a=d;break c}D[i>>2]=a;a=a+4|0;break c}a=Kd(l,i,g);break c}b=va(e,j,p);if(b){break f}}if(o){break e}break d}if((b|0)>=0){break d}}e=D[d+4>>2];n:{if(e){b=e;while(1){a=b;b=D[b>>2];if(b){continue}break}break n}a=D[d+8>>2];if((d|0)==D[a>>2]){break n}b=d+8|0;while(1){j=D[b>>2];b=j+8|0;a=D[j+8>>2];if((j|0)!=D[a>>2]){continue}break}}o:{p:{if((a|0)==(r|0)){break p}j=E[a+27|0];b=j<<24>>24<0;q:{j=b?D[a+20>>2]:j;o=j>>>0<n>>>0?j:n;if(o){p=a+16|0;b=va((v|0)<0?D[g>>2]:g,b?D[p>>2]:p,o);if(b){break q}}if(j>>>0>n>>>0){break p}break o}if((b|0)>=0){break o}}if(!e){D[i>>2]=d;a=d+4|0;break c}D[i>>2]=a;break c}a=Kd(l,i,g);break c}D[i>>2]=d;D[a>>2]=d}b=a;a=D[b>>2];if(a){b=0}else{a=na(40);e=a+16|0;r:{if(B[g+11|0]>=0){i=D[g+4>>2];D[e>>2]=D[g>>2];D[e+4>>2]=i;D[e+8>>2]=D[g+8>>2];break r}ta(e,D[g>>2],D[g+4>>2])}e=a+28|0;s:{if(B[g+23|0]>=0){i=D[g+16>>2];D[e>>2]=D[g+12>>2];D[e+4>>2]=i;D[e+8>>2]=D[g+20>>2];break s}ta(e,D[g+12>>2],D[g+16>>2])}D[a+8>>2]=D[q+12>>2];D[a>>2]=0;D[a+4>>2]=0;D[b>>2]=a;e=D[D[l>>2]>>2];if(e){D[l>>2]=e;b=D[b>>2]}else{b=a}pb(D[l+4>>2],b);D[l+8>>2]=D[l+8>>2]+1;b=1}B[h+44|0]=b;D[h+40>>2]=a;$=q+16|0;a=D[f+4>>2];t:{if(!a){b=D[f+8>>2];if((f|0)==D[b>>2]){break t}a=f+8|0;while(1){f=D[a>>2];a=f+8|0;b=D[f+8>>2];if((f|0)!=D[b>>2]){continue}break}break t}while(1){b=a;a=D[b>>2];if(a){continue}break}}if((b|0)!=(u|0)){continue}break}}a=D[c>>2];u:{if(a){c=k+16|0;f=D[h+8>>2];while(1){b=D[a+16>>2];v:{if((b|0)>(f|0)){b=D[a>>2];if(b){break v}c=a;break u}if((b|0)>=(f|0)){break u}c=a+4|0;b=D[a+4>>2];if(!b){break u}a=c}c=a;a=b;continue}}a=c}b=D[c>>2];if(!b){b=na(32);D[b+16>>2]=D[h+8>>2];D[b+20>>2]=D[h+12>>2];f=b+24|0;e=D[h+16>>2];D[f>>2]=e;g=D[h+20>>2];D[b+28>>2]=g;w:{if(!g){D[b+20>>2]=f;break w}D[e+8>>2]=f;D[h+16>>2]=0;D[h+20>>2]=0;D[h+12>>2]=d}D[b+8>>2]=a;D[b>>2]=0;D[b+4>>2]=0;D[c>>2]=b;a=D[D[k+12>>2]>>2];if(a){D[k+12>>2]=a;a=D[c>>2]}else{a=b}pb(D[k+16>>2],a);D[k+20>>2]=D[k+20>>2]+1}ib(h+8|4,D[h+16>>2]);ib(t,D[t+4>>2])}$=h+48|0;k=$-48|0;$=k;d=$-32|0;$=d;a=d+21|0;g=d+32|0;c=g;x:{if((a|0)==(c|0)){break x}}f=c-a|0;y:{if(!((f|0)<=9&(f|0)<(1-(G[2744]>1)|0))){B[a|0]=49;D[d+8>>2]=a+1;c=0;break y}D[d+8>>2]=c;c=61}D[d+12>>2]=c;h=$-16|0;$=h;c=k+8|0;e=$-16|0;$=e;z:{l=D[d+8>>2];f=l-a|0;if(f>>>0<=4294967279){A:{if(f>>>0<=10){B[c+11|0]=f;d=c;break A}if(f>>>0>=11){i=f+16&-16;d=i-1|0;d=(d|0)==11?i:d}else{d=10}i=d+1|0;d=na(i);D[c>>2]=d;D[c+8>>2]=i|-2147483648;D[c+4>>2]=f}while(1){if((a|0)!=(l|0)){B[d|0]=E[a|0];d=d+1|0;a=a+1|0;continue}break}B[e+15|0]=0;B[d|0]=E[e+15|0];$=e+16|0;break z}Aa();T()}$=h+16|0;$=g;D[k+32>>2]=m;d=b+20|0;a=D[d+4>>2];B:{C:{if(a){b=E[m+11|0];c=b<<24>>24<0;e=c?D[m>>2]:m;f=c?D[m+4>>2]:b;b=d+4|0;while(1){c=E[a+27|0];g=c<<24>>24<0;c=g?D[a+20>>2]:c;h=c>>>0<f>>>0;D:{E:{F:{G:{H:{l=h?c:f;I:{if(l){i=a+16|0;g=g?D[i>>2]:i;i=va(e,g,l);if(!i){if(c>>>0>f>>>0){break I}break H}if((i|0)>=0){break H}break I}if(c>>>0<=f>>>0){break G}}c=D[a>>2];if(c){break D}break C}c=va(g,e,l);if(c){break F}}if(h){break E}break B}if((c|0)>=0){break B}}b=a+4|0;c=D[a+4>>2];if(!c){break B}a=b}b=a;a=c;continue}}a=d+4|0}b=a}c=D[b>>2];if(c){a=0}else{c=na(40);e=c+16|0;f=D[k+32>>2];J:{if(B[f+11|0]>=0){g=D[f+4>>2];D[e>>2]=D[f>>2];D[e+4>>2]=g;D[e+8>>2]=D[f+8>>2];break J}ta(e,D[f>>2],D[f+4>>2])}D[c+8>>2]=a;D[c>>2]=0;D[c+4>>2]=0;D[c+36>>2]=0;D[c+28>>2]=0;D[c+32>>2]=0;D[b>>2]=c;a=D[D[d>>2]>>2];if(a){D[d>>2]=a;a=D[b>>2]}else{a=c}pb(D[d+4>>2],a);D[d+8>>2]=D[d+8>>2]+1;a=1}B[k+44|0]=a;D[k+40>>2]=c;a=D[k+40>>2];if(B[a+39|0]<0){ma(D[a+28>>2])}b=D[k+12>>2];D[a+28>>2]=D[k+8>>2];D[a+32>>2]=b;D[a+36>>2]=D[k+16>>2];$=k+48|0;if(B[m+11|0]<0){ma(D[m>>2])}$=m+16|0}function Uh(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,E=0,F=0,G=0,H=0,I=0;h=$+-64|0;$=h;D[a+8>>2]=e;f=a+32|0;g=D[f>>2];d=D[a+36>>2]-g>>2;a:{b:{if(d>>>0<e>>>0){sa(f,e-d|0);D[h+56>>2]=0;D[h+60>>2]=0;D[h+48>>2]=0;D[h+52>>2]=0;D[h+40>>2]=0;D[h+44>>2]=0;D[h+32>>2]=0;D[h+36>>2]=0;D[h+24>>2]=0;D[h+28>>2]=0;D[h+16>>2]=0;D[h+20>>2]=0;D[h>>2]=0;break b}if(d>>>0>e>>>0){D[a+36>>2]=g+(e<<2)}D[h+56>>2]=0;D[h+60>>2]=0;D[h+48>>2]=0;D[h+52>>2]=0;D[h+40>>2]=0;D[h+44>>2]=0;D[h+32>>2]=0;D[h+36>>2]=0;D[h+24>>2]=0;D[h+28>>2]=0;D[h+16>>2]=0;D[h+20>>2]=0;D[h>>2]=0;d=0;if(!e){break a}}xa(h+16|0,e,h);i=D[h+28>>2];d=D[h+32>>2]}D[h>>2]=0;d=d-i>>2;c:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break c}D[h+32>>2]=(e<<2)+i;break c}xa(h+16|12,e-d|0,h)}D[h>>2]=0;f=D[h+40>>2];d=D[h+44>>2]-f>>2;d:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break d}D[h+44>>2]=f+(e<<2);break d}xa(h+40|0,e-d|0,h)}D[h>>2]=0;f=D[h+52>>2];d=D[h+56>>2]-f>>2;e:{if(d>>>0>=e>>>0){if(d>>>0<=e>>>0){break e}D[h+56>>2]=f+(e<<2);break e}xa(h+52|0,e-d|0,h)}i=0;f:{if(D[a+8>>2]<=0){break f}k=D[a+32>>2];g=D[h+16>>2];while(1){d=i<<2;f=D[d+g>>2];n=D[a+16>>2];g:{if((f|0)>(n|0)){D[d+k>>2]=n;break g}d=d+k|0;n=D[a+12>>2];if((n|0)>(f|0)){D[d>>2]=n;break g}D[d>>2]=f}i=i+1|0;d=D[a+8>>2];if((i|0)<(d|0)){continue}break}if((d|0)<=0){break f}d=0;while(1){g=d<<2;f=g+c|0;g=D[b+g>>2]+D[g+k>>2]|0;D[f>>2]=g;h:{if((g|0)>D[a+16>>2]){j=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break h}j=g+D[a+20>>2]|0}D[f>>2]=j}d=d+1|0;if((d|0)<D[a+8>>2]){continue}break}}E=D[a+52>>2];y=D[a+48>>2];v=na(16);d=v;D[d>>2]=0;D[d+4>>2]=0;D[d+8>>2]=0;D[d+12>>2]=0;D[h+8>>2]=0;D[h>>2]=0;D[h+4>>2]=0;i:{if(e){if(e>>>0>=1073741824){break i}d=e<<2;u=na(d);D[h>>2]=u;D[h+8>>2]=d+u;pa(u,0,d)}r=1;d=D[a+56>>2];z=D[d>>2];d=D[d+4>>2]-z|0;j:{if((d|0)<5){break j}d=d>>2;F=(d|0)>2?d:2;G=d>>>0>1?d:1;A=e&-2;B=e&1;H=e&-4;C=e&3;w=e-1|0;I=e<<2;n=1;while(1){k:{l:{m:{n:{if((n|0)!=(G|0)){f=D[(n<<2)+z>>2];d=(f>>>0)%3|0;o:{p:{if((f|0)==-1){break p}k=0;g=f+2|0;x=(d|0)!=0|(g|0)!=-1;s=D[y+12>>2];q=s+((d?f-1|0:g)<<2)|0;o=1;d=f;q:{while(1){g=D[s+(d<<2)>>2];r:{if((g|0)==-1){break r}l=-1;r=D[E>>2];m=D[y>>2];i=r+(D[m+(g<<2)>>2]<<2)|0;p=g+1|0;p=(p>>>0)%3|0?p:g-2|0;if((p|0)!=-1){l=D[m+(p<<2)>>2]}p=D[i>>2];s:{t:{if((g>>>0)%3|0){i=g-1|0;break t}i=g+2|0;j=-1;if((i|0)==-1){break s}}j=D[m+(i<<2)>>2]}if((n|0)<=(p|0)){break r}i=D[r+(l<<2)>>2];if((i|0)>=(n|0)){break r}l=D[r+(j<<2)>>2];if((l|0)>=(n|0)){break r}g=D[(h+16|0)+J(k,12)>>2];u:{if(!e){break u}l=J(e,l);m=J(e,i);r=J(e,p);i=0;j=0;if(w){while(1){D[g+(i<<2)>>2]=(D[(i+l<<2)+c>>2]+D[(i+m<<2)+c>>2]|0)-D[(i+r<<2)+c>>2];p=i|1;D[g+(p<<2)>>2]=(D[(l+p<<2)+c>>2]+D[(m+p<<2)+c>>2]|0)-D[(p+r<<2)+c>>2];i=i+2|0;j=j+2|0;if((A|0)!=(j|0)){continue}break}}if(!B){break u}D[g+(i<<2)>>2]=(D[(i+l<<2)+c>>2]+D[(i+m<<2)+c>>2]|0)-D[(i+r<<2)+c>>2]}g=4;k=k+1|0;if((k|0)==4){break q}}v:{if(o&1){i=d+1|0;d=(i>>>0)%3|0?i:d-2|0;j=-1;if((d|0)==-1){break v}d=D[s+(d<<2)>>2];j=-1;if((d|0)==-1){break v}g=d+1|0;j=(g>>>0)%3|0?g:d-2|0;break v}w:{if((d>>>0)%3|0){i=d-1|0;break w}i=d+2|0;j=-1;if((i|0)==-1){break v}}d=D[s+(i<<2)>>2];j=-1;if((d|0)==-1){break v}j=d-1|0;if((d>>>0)%3|0){break v}j=d+2|0}d=j;x:{if((f|0)==(d|0)){break x}if(!((o^1)&1|(d|0)!=-1)){if(!x){break x}d=D[q>>2];if((d|0)==-1){break x}o=0;d=(d>>>0)%3|0?d-1|0:d+2|0}if((d|0)!=-1){continue}}break}g=k;if((g|0)<=0){break p}}if(e){pa(D[h>>2],0,I)}d=g-1|0;p=(d<<2)+v|0;d=J(d,12)+a|0;j=d;x=D[d- -64>>2];r=0;o=0;d=0;while(1){f=D[p>>2];D[p>>2]=f+1;if(f>>>0>=x>>>0){break j}y:{if(D[D[j+60>>2]+(f>>>3&536870908)>>2]>>>f&1){break y}d=d+1|0;if(!e){break y}k=D[h>>2];s=D[(h+16|0)+J(o,12)>>2];l=0;i=0;f=0;if(w>>>0>=3){while(1){m=i<<2;q=m+k|0;D[q>>2]=D[q>>2]+D[m+s>>2];q=m|4;t=q+k|0;D[t>>2]=D[t>>2]+D[s+q>>2];q=m|8;t=q+k|0;D[t>>2]=D[t>>2]+D[s+q>>2];m=m|12;q=m+k|0;D[q>>2]=D[q>>2]+D[m+s>>2];i=i+4|0;f=f+4|0;if((H|0)!=(f|0)){continue}break}}if(!C){break y}while(1){f=i<<2;m=f+k|0;D[m>>2]=D[m>>2]+D[f+s>>2];i=i+1|0;l=l+1|0;if((C|0)!=(l|0)){continue}break}}o=o+1|0;if((o|0)!=(g|0)){continue}break}o=J(e,n);f=o;if(!d){break o}if(!e){break l}f=D[h>>2];i=0;g=0;if(w){break n}break m}f=J(e,n)}if(D[a+8>>2]<=0){break k}o=(J(n-1|0,e)<<2)+c|0;k=D[a+32>>2];i=0;while(1){d=i<<2;g=D[d+o>>2];l=D[a+16>>2];z:{if((g|0)>(l|0)){D[d+k>>2]=l;break z}d=d+k|0;l=D[a+12>>2];if((l|0)>(g|0)){D[d>>2]=l;break z}D[d>>2]=g}i=i+1|0;g=D[a+8>>2];if((i|0)<(g|0)){continue}break}d=0;if((g|0)<=0){break k}f=f<<2;i=f+c|0;o=b+f|0;while(1){g=d<<2;f=g+i|0;g=D[g+o>>2]+D[g+k>>2]|0;D[f>>2]=g;A:{if((g|0)>D[a+16>>2]){j=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break A}j=g+D[a+20>>2]|0}D[f>>2]=j}d=d+1|0;if((d|0)<D[a+8>>2]){continue}break}break k}ua();T()}while(1){k=i<<2;l=k+f|0;D[l>>2]=D[l>>2]/(d|0);k=f+(k|4)|0;D[k>>2]=D[k>>2]/(d|0);i=i+2|0;g=g+2|0;if((A|0)!=(g|0)){continue}break}}if(!B){break l}f=f+(i<<2)|0;D[f>>2]=D[f>>2]/(d|0)}if(D[a+8>>2]<=0){break k}k=D[a+32>>2];i=0;while(1){d=i<<2;f=D[d+u>>2];g=D[a+16>>2];B:{if((f|0)>(g|0)){D[d+k>>2]=g;break B}d=d+k|0;g=D[a+12>>2];if((g|0)>(f|0)){D[d>>2]=g;break B}D[d>>2]=f}i=i+1|0;f=D[a+8>>2];if((i|0)<(f|0)){continue}break}d=0;if((f|0)<=0){break k}f=o<<2;i=f+c|0;o=b+f|0;while(1){g=d<<2;f=g+i|0;g=D[g+o>>2]+D[g+k>>2]|0;D[f>>2]=g;C:{if((g|0)>D[a+16>>2]){j=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break C}j=g+D[a+20>>2]|0}D[f>>2]=j}d=d+1|0;if((d|0)<D[a+8>>2]){continue}break}}r=1;n=n+1|0;if((F|0)!=(n|0)){continue}break}}a=D[h>>2];if(a){ma(a)}ma(v);a=D[h+52>>2];if(a){D[h+56>>2]=a;ma(a)}a=D[h+40>>2];if(a){D[h+44>>2]=a;ma(a)}a=D[h+28>>2];if(a){D[h+32>>2]=a;ma(a)}a=D[h+16>>2];if(a){D[h+20>>2]=a;ma(a)}$=h- -64|0;return r|0}qa();T()}function ge(a,b){a=a|0;b=b|0;var 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;i=a;a:{b:{c:{d:{e:{f:{g:{h:{k=D[a+8>>2];switch(D[k+28>>2]-1|0){case 4:break c;case 5:break d;case 2:break e;case 3:break f;case 0:break g;case 1:break h;default:break a}}c=B[k+24|0];d=na((c|0)>=0?c:-1);a=D[i+16>>2];if(D[a+80>>2]){h=D[D[a>>2]>>2]+D[a+48>>2]|0}else{h=0}if(!b){break b}if((c|0)>0){k=c&-4;m=c&3;e=c-1>>>0<3;while(1){a=0;g=0;if(!e){while(1){j=h+(f<<2)|0;B[a+d|0]=D[j>>2];B[(a|1)+d|0]=D[j+4>>2];B[(a|2)+d|0]=D[j+8>>2];B[(a|3)+d|0]=D[j+12>>2];a=a+4|0;f=f+4|0;g=g+4|0;if((k|0)!=(g|0)){continue}break}}g=0;if(m){while(1){B[a+d|0]=D[h+(f<<2)>>2];a=a+1|0;f=f+1|0;g=g+1|0;if((m|0)!=(g|0)){continue}break}}oa(D[D[D[i+8>>2]+64>>2]>>2]+n|0,d,c);n=c+n|0;l=l+1|0;if((l|0)!=(b|0)){continue}break}break b}oa(D[D[k+64>>2]>>2],d,c);if((b|0)==1){break b}e=b-1|0;h=e&1;a=0;if((b|0)!=2){b=e&-2;while(1){a=a+c|0;oa(a+D[D[D[i+8>>2]+64>>2]>>2]|0,d,c);a=a+c|0;oa(a+D[D[D[i+8>>2]+64>>2]>>2]|0,d,c);f=f+2|0;if((b|0)!=(f|0)){continue}break}}if(!h){break b}oa(D[D[D[i+8>>2]+64>>2]>>2]+(a+c|0)|0,d,c);break b}c=B[k+24|0];d=na((c|0)>=0?c:-1);a=D[i+16>>2];if(D[a+80>>2]){h=D[D[a>>2]>>2]+D[a+48>>2]|0}else{h=0}if(!b){break b}if((c|0)>0){k=c&-4;m=c&3;e=c-1>>>0<3;while(1){a=0;g=0;if(!e){while(1){j=h+(f<<2)|0;B[a+d|0]=D[j>>2];B[(a|1)+d|0]=D[j+4>>2];B[(a|2)+d|0]=D[j+8>>2];B[(a|3)+d|0]=D[j+12>>2];a=a+4|0;f=f+4|0;g=g+4|0;if((k|0)!=(g|0)){continue}break}}g=0;if(m){while(1){B[a+d|0]=D[h+(f<<2)>>2];a=a+1|0;f=f+1|0;g=g+1|0;if((m|0)!=(g|0)){continue}break}}oa(D[D[D[i+8>>2]+64>>2]>>2]+n|0,d,c);n=c+n|0;l=l+1|0;if((l|0)!=(b|0)){continue}break}break b}oa(D[D[k+64>>2]>>2],d,c);if((b|0)==1){break b}e=b-1|0;h=e&1;a=0;if((b|0)!=2){b=e&-2;while(1){a=a+c|0;oa(a+D[D[D[i+8>>2]+64>>2]>>2]|0,d,c);a=a+c|0;oa(a+D[D[D[i+8>>2]+64>>2]>>2]|0,d,c);f=f+2|0;if((b|0)!=(f|0)){continue}break}}if(!h){break b}oa(D[D[D[i+8>>2]+64>>2]>>2]+(a+c|0)|0,d,c);break b}e=B[k+24|0];a=e+e|0;d=na(a>>>0<e>>>0?-1:a);a=D[i+16>>2];if(D[a+80>>2]){h=D[D[a>>2]>>2]+D[a+48>>2]|0}else{h=0}if(!b){break b}c=e<<1;if((e|0)>0){k=e&-4;m=e&3;e=e-1>>>0<3;while(1){a=0;g=0;if(!e){while(1){l=a<<1;j=h+(f<<2)|0;C[l+d>>1]=D[j>>2];C[(l|2)+d>>1]=D[j+4>>2];C[(l|4)+d>>1]=D[j+8>>2];C[(l|6)+d>>1]=D[j+12>>2];a=a+4|0;f=f+4|0;g=g+4|0;if((k|0)!=(g|0)){continue}break}}g=0;if(m){while(1){C[(a<<1)+d>>1]=D[h+(f<<2)>>2];a=a+1|0;f=f+1|0;g=g+1|0;if((m|0)!=(g|0)){continue}break}}oa(D[D[D[i+8>>2]+64>>2]>>2]+o|0,d,c);o=c+o|0;n=n+1|0;if((n|0)!=(b|0)){continue}break}break b}oa(D[D[k+64>>2]>>2],d,c);if((b|0)==1){break b}e=b-1|0;h=e&1;a=0;if((b|0)!=2){b=e&-2;while(1){a=a+c|0;oa(a+D[D[D[i+8>>2]+64>>2]>>2]|0,d,c);a=a+c|0;oa(a+D[D[D[i+8>>2]+64>>2]>>2]|0,d,c);f=f+2|0;if((b|0)!=(f|0)){continue}break}}if(!h){break b}oa(D[D[D[i+8>>2]+64>>2]>>2]+(a+c|0)|0,d,c);break b}e=B[k+24|0];a=e+e|0;d=na(a>>>0<e>>>0?-1:a);a=D[i+16>>2];if(D[a+80>>2]){h=D[D[a>>2]>>2]+D[a+48>>2]|0}else{h=0}if(!b){break b}c=e<<1;if((e|0)>0){k=e&-4;m=e&3;e=e-1>>>0<3;while(1){a=0;g=0;if(!e){while(1){l=a<<1;j=h+(f<<2)|0;C[l+d>>1]=D[j>>2];C[(l|2)+d>>1]=D[j+4>>2];C[(l|4)+d>>1]=D[j+8>>2];C[(l|6)+d>>1]=D[j+12>>2];a=a+4|0;f=f+4|0;g=g+4|0;if((k|0)!=(g|0)){continue}break}}g=0;if(m){while(1){C[(a<<1)+d>>1]=D[h+(f<<2)>>2];a=a+1|0;f=f+1|0;g=g+1|0;if((m|0)!=(g|0)){continue}break}}oa(D[D[D[i+8>>2]+64>>2]>>2]+o|0,d,c);o=c+o|0;n=n+1|0;if((n|0)!=(b|0)){continue}break}break b}oa(D[D[k+64>>2]>>2],d,c);if((b|0)==1){break b}e=b-1|0;h=e&1;a=0;if((b|0)!=2){b=e&-2;while(1){a=a+c|0;oa(a+D[D[D[i+8>>2]+64>>2]>>2]|0,d,c);a=a+c|0;oa(a+D[D[D[i+8>>2]+64>>2]>>2]|0,d,c);f=f+2|0;if((b|0)!=(f|0)){continue}break}}if(!h){break b}oa(D[D[D[i+8>>2]+64>>2]>>2]+(a+c|0)|0,d,c);break b}e=B[k+24|0];c=e<<2;d=na((e|0)!=(e&1073741823)?-1:c);a=D[i+16>>2];if(D[a+80>>2]){h=D[D[a>>2]>>2]+D[a+48>>2]|0}else{h=0}if(!b){break b}if((e|0)>0){k=e&-4;m=e&3;e=e-1>>>0<3;while(1){a=0;g=0;if(!e){while(1){l=a<<2;j=h+(f<<2)|0;D[l+d>>2]=D[j>>2];D[(l|4)+d>>2]=D[j+4>>2];D[(l|8)+d>>2]=D[j+8>>2];D[(l|12)+d>>2]=D[j+12>>2];a=a+4|0;f=f+4|0;g=g+4|0;if((k|0)!=(g|0)){continue}break}}g=0;if(m){while(1){D[(a<<2)+d>>2]=D[h+(f<<2)>>2];a=a+1|0;f=f+1|0;g=g+1|0;if((m|0)!=(g|0)){continue}break}}oa(D[D[D[i+8>>2]+64>>2]>>2]+o|0,d,c);o=c+o|0;n=n+1|0;if((n|0)!=(b|0)){continue}break}break b}oa(D[D[k+64>>2]>>2],d,c);if((b|0)==1){break b}e=b-1|0;h=e&1;a=0;if((b|0)!=2){b=e&-2;while(1){a=a+c|0;oa(a+D[D[D[i+8>>2]+64>>2]>>2]|0,d,c);a=a+c|0;oa(a+D[D[D[i+8>>2]+64>>2]>>2]|0,d,c);f=f+2|0;if((b|0)!=(f|0)){continue}break}}if(!h){break b}oa(D[D[D[i+8>>2]+64>>2]>>2]+(a+c|0)|0,d,c);break b}e=B[k+24|0];c=e<<2;d=na((e|0)!=(e&1073741823)?-1:c);a=D[i+16>>2];if(D[a+80>>2]){h=D[D[a>>2]>>2]+D[a+48>>2]|0}else{h=0}if(!b){break b}if((e|0)>0){k=e&-4;m=e&3;e=e-1>>>0<3;while(1){a=0;g=0;if(!e){while(1){l=a<<2;j=h+(f<<2)|0;D[l+d>>2]=D[j>>2];D[(l|4)+d>>2]=D[j+4>>2];D[(l|8)+d>>2]=D[j+8>>2];D[(l|12)+d>>2]=D[j+12>>2];a=a+4|0;f=f+4|0;g=g+4|0;if((k|0)!=(g|0)){continue}break}}g=0;if(m){while(1){D[(a<<2)+d>>2]=D[h+(f<<2)>>2];a=a+1|0;f=f+1|0;g=g+1|0;if((m|0)!=(g|0)){continue}break}}oa(D[D[D[i+8>>2]+64>>2]>>2]+o|0,d,c);o=c+o|0;n=n+1|0;if((n|0)!=(b|0)){continue}break}break b}oa(D[D[k+64>>2]>>2],d,c);if((b|0)==1){break b}e=b-1|0;h=e&1;a=0;if((b|0)!=2){b=e&-2;while(1){a=a+c|0;oa(a+D[D[D[i+8>>2]+64>>2]>>2]|0,d,c);a=a+c|0;oa(a+D[D[D[i+8>>2]+64>>2]>>2]|0,d,c);f=f+2|0;if((b|0)!=(f|0)){continue}break}}if(!h){break b}oa(D[D[D[i+8>>2]+64>>2]>>2]+(a+c|0)|0,d,c)}ma(d);d=1}return d|0}function Cd(a,b){a=a|0;b=b|0;var 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;h=$-96|0;$=h;r=D[a+4>>2];d=D[r+32>>2];e=D[d+8>>2];n=D[d+12>>2];f=n;c=D[d+20>>2];p=D[d+16>>2];a:{if((f|0)<=(c|0)&p>>>0>=e>>>0|(c|0)>(f|0)){break a}k=D[d>>2];q=E[k+p|0];g=p+1|0;f=g?c:c+1|0;D[d+16>>2]=g;D[d+20>>2]=f;if(e>>>0<=g>>>0&(f|0)>=(n|0)|(f|0)>(n|0)){break a}l=E[g+k|0];g=p+2|0;f=g>>>0<2?c+1|0:c;m=g;D[d+16>>2]=g;D[d+20>>2]=f;i=q<<24>>24;b:{if((i|0)>=0){g=D[a+216>>2];if(q>>>0>=(D[a+220>>2]-g|0)/144>>>0){break a}o=g+J(q,144)|0;if(D[o>>2]<0){break b}break a}if(D[a+212>>2]>=0){break a}o=a+212|0}D[o>>2]=b;c:{d:{g=F[r+36>>1];e:{if(((g<<8|g>>>8)&65535)>>>0>=258){if(e>>>0<=m>>>0&(f|0)>=(n|0)|(f|0)>(n|0)){break a}g=E[k+m|0];f=p+3|0;c=f>>>0<3?c+1|0:c;D[d+16>>2]=f;D[d+20>>2]=c;c=g>>>0>1;if(c){break a}c=c?0:g;if(!l){break e}if(c){break a}break d}if(l){break d}c=0}if((i|0)<0){f=a+184|0}else{d=D[a+216>>2]+J(q,144)|0;B[d+100|0]=0;f=d+104|0}d=f;f:{if((c|0)==1){e=$-112|0;$=e;m=D[D[a+4>>2]+44>>2];c=na(120);D[c>>2]=8956;D[c+4>>2]=0;D[c+116>>2]=0;D[c+112>>2]=d;D[c+108>>2]=m;D[c+12>>2]=0;D[c+16>>2]=0;D[c+20>>2]=0;D[c+24>>2]=0;D[c+28>>2]=0;D[c+32>>2]=0;D[c+36>>2]=0;D[c+40>>2]=0;D[c+44>>2]=0;D[c+48>>2]=0;D[c+52>>2]=0;D[c+56>>2]=0;D[c+60>>2]=0;D[c+8>>2]=9168;f=c- -64|0;D[f>>2]=0;D[f+4>>2]=0;D[c+72>>2]=0;D[c+76>>2]=0;D[c+80>>2]=0;D[c+84>>2]=0;D[c+88>>2]=0;D[c+104>>2]=0;D[c+96>>2]=0;D[c+100>>2]=0;l=D[a+8>>2];D[e+48>>2]=0;D[e+52>>2]=0;D[e+40>>2]=0;D[e+44>>2]=0;i=e+32|0;f=i;D[f>>2]=0;D[f+4>>2]=0;D[e+24>>2]=0;D[e+28>>2]=0;D[e+16>>2]=0;D[e+20>>2]=0;f=e- -64|0;D[f>>2]=0;D[f+4>>2]=0;D[e+72>>2]=0;D[e+76>>2]=0;D[e+80>>2]=0;D[e+84>>2]=0;D[e+88>>2]=0;D[e+104>>2]=0;D[e+56>>2]=0;D[e+60>>2]=0;D[e+8>>2]=9168;D[e+96>>2]=0;D[e+100>>2]=0;D[e+12>>2]=l;g=D[l>>2];f=D[l+4>>2];B[e+111|0]=0;n=i;i=e+111|0;Ea(n,(f-g>>2>>>0)/3|0,i);f=D[e+12>>2];g=D[f+28>>2];f=D[f+24>>2];B[e+111|0]=0;Ea(e+44|0,g-f>>2,i);D[e+28>>2]=c;D[e+24>>2]=m;D[e+20>>2]=d;D[e+16>>2]=l;d=c+8|0;f=e+8|0;jc(d,f);g:{if((d|0)==(f|0)){D[c+92>>2]=D[f+84>>2];break g}hb(c+56|0,D[f+48>>2],D[f+52>>2]);hb(c+68|0,D[f+60>>2],D[f- -64>>2]);hb(c+80|0,D[f+72>>2],D[f+76>>2]);D[c+92>>2]=D[f+84>>2];h:{i=D[f+92>>2];l=D[f+88>>2];g=i-l|0;m=g>>2;o=D[c+104>>2];k=D[c+96>>2];if(m>>>0<=o-k>>2>>>0){d=D[c+100>>2]-k|0;f=d>>2;g=f>>>0<m>>>0?d+l|0:i;d=g-l|0;if(d){Pa(k,l,d)}if(f>>>0<m>>>0){d=D[c+100>>2];f=i-g|0;if((f|0)>0){d=oa(d,g,f)+f|0}D[c+100>>2]=d;break h}D[c+100>>2]=d+k;break h}if(k){D[c+100>>2]=k;ma(k);D[c+104>>2]=0;D[c+96>>2]=0;D[c+100>>2]=0;o=0}i:{if((g|0)<0){break i}d=o>>1;d=o>>>0<2147483644?d>>>0<m>>>0?m:d:1073741823;if(d>>>0>=1073741824){break i}f=d<<2;d=na(f);D[c+96>>2]=d;D[c+100>>2]=d;D[c+104>>2]=d+f;if(g){d=oa(d,l,g)+g|0}D[c+100>>2]=d;break h}qa();T()}}D[e+8>>2]=9168;d=D[e+96>>2];if(d){D[e+100>>2]=d;ma(d)}d=D[e+80>>2];if(d){D[e+84>>2]=d;ma(d)}d=D[e+68>>2];if(d){D[e+72>>2]=d;ma(d)}d=D[e+56>>2];if(d){D[e+60>>2]=d;ma(d)}D[e+8>>2]=9404;d=D[e+44>>2];if(d){ma(d)}d=D[e+32>>2];if(d){ma(d)}$=e+112|0;break f}e=$+-64|0;$=e;l=D[D[a+4>>2]+44>>2];c=na(80);D[c>>2]=9424;D[c+4>>2]=0;D[c+76>>2]=0;D[c+72>>2]=d;D[c+68>>2]=l;D[c+8>>2]=9588;D[c+12>>2]=0;D[c+16>>2]=0;D[c+20>>2]=0;D[c+24>>2]=0;D[c+28>>2]=0;D[c+32>>2]=0;D[c+36>>2]=0;D[c+40>>2]=0;D[c+44>>2]=0;D[c+48>>2]=0;D[c+52>>2]=0;D[c- -64>>2]=0;m=c+56|0;f=m;D[f>>2]=0;D[f+4>>2]=0;k=D[a+8>>2];D[e+40>>2]=0;D[e+44>>2]=0;D[e+32>>2]=0;D[e+36>>2]=0;i=e+24|0;f=i;D[f>>2]=0;D[f+4>>2]=0;D[e+16>>2]=0;D[e+20>>2]=0;D[e+8>>2]=0;D[e+12>>2]=0;D[e+56>>2]=0;D[e+48>>2]=0;D[e+52>>2]=0;D[e>>2]=9588;D[e+4>>2]=k;g=D[k>>2];f=D[k+4>>2];B[e+63|0]=0;n=i;i=e+63|0;Ea(n,(f-g>>2>>>0)/3|0,i);f=D[e+4>>2];g=D[f+28>>2];f=D[f+24>>2];B[e+63|0]=0;Ea(e+36|0,g-f>>2,i);D[e+20>>2]=c;D[e+16>>2]=l;D[e+12>>2]=d;D[e+8>>2]=k;jc(c+8|0,e);hb(m,D[e+48>>2],D[e+52>>2]);D[e>>2]=9588;d=D[e+48>>2];if(d){D[e+52>>2]=d;ma(d)}D[e>>2]=9404;d=D[e+36>>2];if(d){ma(d)}d=D[e+24>>2];if(d){ma(d)}$=e- -64|0}if(!c){break a}break c}if((i|0)<0){break a}g=D[r+44>>2];d=D[a+216>>2];c=na(80);D[c+76>>2]=0;D[c+68>>2]=g;D[c+8>>2]=8652;D[c>>2]=9716;D[c+4>>2]=0;f=d+J(q,144)|0;j=f+104|0;D[c+72>>2]=j;D[c- -64>>2]=0;D[c+56>>2]=0;D[c+60>>2]=0;D[c+52>>2]=0;D[c+44>>2]=0;D[c+48>>2]=0;D[c+36>>2]=0;D[c+40>>2]=0;D[c+28>>2]=0;D[c+32>>2]=0;D[c+20>>2]=0;D[c+24>>2]=0;D[c+12>>2]=0;D[c+16>>2]=0;D[h+24>>2]=g;D[h+68>>2]=0;D[h+72>>2]=0;D[h+60>>2]=0;D[h+64>>2]=0;D[h+52>>2]=0;D[h+56>>2]=0;D[h+44>>2]=0;D[h+48>>2]=0;D[h+84>>2]=0;D[h+88>>2]=0;D[h+76>>2]=0;D[h+80>>2]=0;D[h+28>>2]=c;d=D[h+28>>2];D[h+8>>2]=D[h+24>>2];D[h+12>>2]=d;f=f+4|0;D[h+16>>2]=f;D[h+20>>2]=j;D[h+36>>2]=0;D[h+40>>2]=0;D[h+32>>2]=8652;d=D[h+20>>2];D[h>>2]=D[h+16>>2];D[h+4>>2]=d;j=h+32|0;Bd(j,f,h);d=c+8|0;jc(d,j);if((d|0)!=(j|0)){hb(c+56|0,D[j+48>>2],D[j+52>>2])}Ad(j)}c=xc(na(64),c);i=D[a+4>>2];a=c;c=b;j:{k:{if((c|0)>=0){f=i+8|0;b=D[i+12>>2];d=D[i+8>>2];g=b-d>>2;l:{if((g|0)>(c|0)){break l}j=c+1|0;if(c>>>0>=g>>>0){Qb(f,j-g|0);break l}if(g>>>0<=j>>>0){break l}d=d+(j<<2)|0;if((d|0)!=(b|0)){while(1){b=b-4|0;j=D[b>>2];D[b>>2]=0;if(j){ba[D[D[j>>2]+4>>2]](j)}if((b|0)!=(d|0)){continue}break}}D[i+12>>2]=d}d=D[f>>2]+(c<<2)|0;b=D[d>>2];D[d>>2]=a;if(b){break k}break j}b=a;if(!a){break j}}ba[D[D[b>>2]+4>>2]](b)}j=(c^-1)>>>31|0}$=h+96|0;return j|0}function Yd(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=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,U=0,V=0,W=0,X=0;if((e|0)==2){D[a+8>>2]=2;D[a- -64>>2]=f;e=a+32|0;f=D[e>>2];d=D[a+36>>2]-f|0;a:{if(d>>>0<=7){sa(e,2-(d>>>2|0)|0);break a}if((d|0)==8){break a}D[a+36>>2]=f+8}b:{d=D[a+56>>2];e=D[d+4>>2];d=D[d>>2];f=e-d|0;if((f|0)<=0){f=0;break b}if((d|0)!=(e|0)){m=a+60|0;J=f>>2;U=(J|0)>1?J:1;f=1;while(1){j=$-80|0;$=j;e=-1;d=D[(q<<2)+d>>2];g=-1;c:{if((d|0)==-1){break c}e=d+1|0;e=(e>>>0)%3|0?e:d-2|0;g=d-1|0;if((d>>>0)%3|0){break c}g=d+2|0}i=D[m+36>>2];d=D[i>>2];d:{e:{f:{g:{h:{i=D[i+4>>2]-d>>2;h=e<<2;e=D[D[m+32>>2]+28>>2];k=D[h+e>>2];if(i>>>0<=k>>>0){break h}e=D[e+(g<<2)>>2];if(e>>>0>=i>>>0){break h}i:{j:{g=D[d+(e<<2)>>2];i=D[d+(k<<2)>>2];if((g|0)>=(q|0)|(i|0)>=(q|0)){break j}d=(g<<3)+c|0;v=D[d+4>>2];e=(i<<3)+c|0;s=D[e+4>>2];x=D[d>>2];F=D[e>>2];if(!((x|0)!=(F|0)|(s|0)!=(v|0))){D[m+8>>2]=F;D[m+12>>2]=s;break i}d=D[D[m+4>>2]+(q<<2)>>2];D[j+72>>2]=0;D[j+76>>2]=0;e=j- -64|0;D[e>>2]=0;D[e+4>>2]=0;D[j+56>>2]=0;D[j+60>>2]=0;e=D[m>>2];if(!E[e+84|0]){d=D[D[e+68>>2]+(d<<2)>>2]}Ha(e,d,B[e+24|0],j+56|0);d=D[D[m+4>>2]+(i<<2)>>2];D[j+48>>2]=0;D[j+52>>2]=0;D[j+40>>2]=0;D[j+44>>2]=0;D[j+32>>2]=0;D[j+36>>2]=0;e=D[m>>2];if(!E[e+84|0]){d=D[D[e+68>>2]+(d<<2)>>2]}Ha(e,d,B[e+24|0],j+32|0);d=D[D[m+4>>2]+(g<<2)>>2];D[j+24>>2]=0;D[j+28>>2]=0;D[j+16>>2]=0;D[j+20>>2]=0;D[j+8>>2]=0;D[j+12>>2]=0;e=D[m>>2];if(!E[e+84|0]){d=D[D[e+68>>2]+(d<<2)>>2]}Ha(e,d,B[e+24|0],j+8|0);K=D[j+44>>2];d=D[j+16>>2];G=D[j+40>>2];e=G;k=D[j+20>>2]-(K+(d>>>0<e>>>0)|0)|0;o=d-e|0;d=ai(o,k,o,k);e=aa;n=d;L=D[j+36>>2];d=D[j+8>>2];H=D[j+32>>2];g=H;h=D[j+12>>2]-(L+(d>>>0<g>>>0)|0)|0;t=d-g|0;g=ai(t,h,t,h);d=n+g|0;e=aa+e|0;e=d>>>0<g>>>0?e+1|0:e;n=d;M=D[j+52>>2];d=D[j+24>>2];I=D[j+48>>2];g=I;l=D[j+28>>2]-(M+(d>>>0<g>>>0)|0)|0;p=d-g|0;r=ai(p,l,p,l);d=n+r|0;g=aa+e|0;u=d;r=d>>>0<r>>>0?g+1|0:g;if(!(d|r)){break j}n=D[j+64>>2];d=n;O=D[j+68>>2];d=ai(d-G|0,O-((d>>>0<G>>>0)+K|0)|0,o,k);e=aa;g=d;P=D[j+56>>2];d=P;Q=D[j+60>>2];i=ai(d-H|0,Q-((d>>>0<H>>>0)+L|0)|0,t,h);d=g+i|0;g=aa+e|0;g=d>>>0<i>>>0?g+1|0:g;e=d;R=D[j+72>>2];d=R;S=D[j+76>>2];i=ai(d-I|0,S-((d>>>0<I>>>0)+M|0)|0,p,l);d=e+i|0;e=aa+g|0;y=d;w=d>>>0<i>>>0?e+1|0:e;d=l>>31;e=d+p|0;g=d+l|0;g=e>>>0<d>>>0?g+1|0:g;e=e^d;d=d^g;i=d;d=k>>31;z=d+o|0;g=d+k|0;A=d^z;d=d^(d>>>0>z>>>0?g+1|0:g);z=d;N=0;d=h>>31;C=d+t|0;g=d+h|0;g=C>>>0<d>>>0?g+1|0:g;V=e;C=C^d;d=d^g;g=(z|0)==(d|0)&A>>>0>C>>>0|d>>>0<z>>>0;A=g?A:C;d=g?z:d;e=(i|0)==(d|0)&e>>>0>A>>>0|d>>>0<i>>>0;e=ci(-1,2147483647,e?V:A,e?i:d)>>>0<y>>>0;d=aa;if(e&(d|0)<=(w|0)|(d|0)<(w|0)){break d}i=1;d=0;e=n;o=bi(ai(o,k,y,w),aa,u,r);k=o+G|0;g=aa+K|0;g=k>>>0<o>>>0?g+1|0:g;g=O-((e>>>0<k>>>0)+g|0)|0;e=e-k|0;g=ai(e,g,e,g);o=aa;e=P;n=g;h=bi(ai(t,h,y,w),aa,u,r);k=h+H|0;g=aa+L|0;g=h>>>0>k>>>0?g+1|0:g;g=Q-((e>>>0<k>>>0)+g|0)|0;e=e-k|0;k=ai(e,g,e,g);g=n+k|0;e=aa+o|0;e=g>>>0<k>>>0?e+1|0:e;k=e;e=R;n=g;l=bi(ai(p,l,y,w),aa,u,r);h=l+I|0;g=aa+M|0;g=h>>>0<l>>>0?g+1|0:g;g=S-((e>>>0<h>>>0)+g|0)|0;e=e-h|0;h=ai(e,g,e,g);e=n+h|0;g=aa+k|0;k=ai(e,e>>>0<h>>>0?g+1|0:g,u,r);e=aa;h=e;if(!e&k>>>0<=1){break g}l=k;e=h;while(1){g=d<<1|i>>>31;i=i<<1;d=g;o=!e&l>>>0>7|(e|0)!=0;l=(e&3)<<30|l>>>2;e=e>>>2|0;if(o){continue}break}break f}if((i|0)<(q|0)){d=i<<1}else{if((q|0)<=0){D[m+8>>2]=0;D[m+12>>2]=0;break i}d=(q<<1)-2|0}d=(d<<2)+c|0;D[m+8>>2]=D[d>>2];D[m+12>>2]=D[d+4>>2]}N=1;break d}ua();T()}d=h;i=k;if(i-1|0){break e}}while(1){e=ci(k,h,i,d)+i|0;g=d+aa|0;g=e>>>0<i>>>0?g+1|0:g;i=(g&1)<<31|e>>>1;d=g>>>1|0;e=ai(i,d,i,d);g=aa;if((h|0)==(g|0)&e>>>0>k>>>0|g>>>0>h>>>0){continue}break}}k=D[m+20>>2];if(k){e=k-1|0;l=D[D[m+16>>2]+(e>>>3&536870908)>>2];D[m+20>>2]=e;g=s;o=v-g|0;h=g>>31;t=(v>>31)-(h+(g>>>0>v>>>0)|0)|0;g=ai(y,w,o,t);p=aa;s=ai(s,h,u,r);h=s+g|0;g=aa+p|0;g=h>>>0<s>>>0?g+1|0:g;n=h;h=F;p=x-h|0;s=h>>31;v=(x>>31)-(s+(h>>>0>x>>>0)|0)|0;h=ai(i,d,p,v);x=h;e=l>>>e&1;l=e?0-h|0:h;h=n+l|0;n=g;g=aa;g=n+(e?0-(g+((x|0)!=0)|0)|0:g)|0;W=m,X=bi(h,h>>>0<l>>>0?g+1|0:g,u,r),D[W+12>>2]=X;g=ai(p,v,y,w);l=aa;p=ai(u,r,F,s);h=p+g|0;g=aa+l|0;g=h>>>0<p>>>0?g+1|0:g;n=h;d=ai(i,d,o,t);h=e?d:0-d|0;i=n+h|0;n=g;g=aa;e=n+(e?g:0-(((d|0)!=0)+g|0)|0)|0;W=m,X=bi(i,i>>>0<h>>>0?e+1|0:e,u,r),D[W+8>>2]=X}N=(k|0)!=0}$=j+80|0;if(!N){break b}k:{if(D[a+8>>2]<=0){break k}g=D[a+32>>2];d=0;while(1){e=d<<2;f=D[(e+a|0)+68>>2];i=D[a+16>>2];l:{if((f|0)>(i|0)){D[e+g>>2]=i;break l}e=e+g|0;i=D[a+12>>2];if((i|0)>(f|0)){D[e>>2]=i;break l}D[e>>2]=f}d=d+1|0;f=D[a+8>>2];if((d|0)<(f|0)){continue}break}e=0;if((f|0)<=0){break k}d=q<<3;i=d+c|0;k=b+d|0;while(1){f=e<<2;d=f+i|0;f=D[f+k>>2]+D[f+g>>2]|0;D[d>>2]=f;m:{if((f|0)>D[a+16>>2]){f=f-D[a+20>>2]|0}else{if((f|0)>=D[a+12>>2]){break m}f=f+D[a+20>>2]|0}D[d>>2]=f}e=e+1|0;if((e|0)<D[a+8>>2]){continue}break}}q=q+1|0;f=(J|0)>(q|0);if((q|0)==(U|0)){break b}e=D[a+56>>2];d=D[e>>2];if(D[e+4>>2]-d>>2>>>0>q>>>0){continue}break}}ua();T()}a=f^1}else{a=0}return a&1}function Rh(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,y=0,z=0,A=0,C=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,U=0,V=0,W=0;if((e|0)==2){D[a+8>>2]=2;D[a- -64>>2]=f;e=a+32|0;f=D[e>>2];d=D[a+36>>2]-f|0;a:{if(d>>>0<=7){sa(e,2-(d>>>2|0)|0);break a}if((d|0)==8){break a}D[a+36>>2]=f+8}b:{d=D[a+56>>2];e=D[d+4>>2];d=D[d>>2];f=e-d|0;if((f|0)<=0){f=0;break b}if((d|0)!=(e|0)){m=a+60|0;I=f>>2;U=(I|0)>1?I:1;f=1;while(1){i=$-80|0;$=i;e=-1;c:{d:{g=D[(p<<2)+d>>2];if((g|0)==-1){break d}h=D[m+32>>2];d=g+1|0;d=(d>>>0)%3|0?d:g-2|0;if((d|0)!=-1){e=D[D[h>>2]+(d<<2)>>2]}d=-1;g=g+((g>>>0)%3|0?-1:2)|0;if((g|0)!=-1){d=D[D[h>>2]+(g<<2)>>2]}h=D[m+36>>2];g=D[h>>2];h=D[h+4>>2]-g>>2;if(h>>>0<=e>>>0|d>>>0>=h>>>0){break d}h=D[g+(e<<2)>>2];e:{f:{g:{h:{i:{j:{g=D[g+(d<<2)>>2];if((g|0)>=(p|0)|(h|0)>=(p|0)){break j}d=(g<<3)+c|0;w=D[d+4>>2];e=(h<<3)+c|0;r=D[e+4>>2];t=D[d>>2];F=D[e>>2];if(!((t|0)!=(F|0)|(r|0)!=(w|0))){D[m+8>>2]=F;D[m+12>>2]=r;break i}d=D[D[m+4>>2]+(p<<2)>>2];D[i+72>>2]=0;D[i+76>>2]=0;e=i- -64|0;D[e>>2]=0;D[e+4>>2]=0;D[i+56>>2]=0;D[i+60>>2]=0;e=D[m>>2];if(!E[e+84|0]){d=D[D[e+68>>2]+(d<<2)>>2]}Ha(e,d,B[e+24|0],i+56|0);d=D[D[m+4>>2]+(h<<2)>>2];D[i+48>>2]=0;D[i+52>>2]=0;D[i+40>>2]=0;D[i+44>>2]=0;D[i+32>>2]=0;D[i+36>>2]=0;e=D[m>>2];if(!E[e+84|0]){d=D[D[e+68>>2]+(d<<2)>>2]}Ha(e,d,B[e+24|0],i+32|0);e=D[D[m+4>>2]+(g<<2)>>2];D[i+24>>2]=0;D[i+28>>2]=0;D[i+16>>2]=0;D[i+20>>2]=0;D[i+8>>2]=0;D[i+12>>2]=0;d=D[m>>2];if(!E[d+84|0]){e=D[D[d+68>>2]+(e<<2)>>2]}Ha(d,e,B[d+24|0],i+8|0);J=D[i+44>>2];d=D[i+16>>2];x=D[i+40>>2];e=x;k=D[i+20>>2]-(J+(d>>>0<e>>>0)|0)|0;n=d-e|0;d=ai(n,k,n,k);e=aa;o=d;K=D[i+36>>2];d=D[i+8>>2];G=D[i+32>>2];g=G;j=D[i+12>>2]-(K+(d>>>0<g>>>0)|0)|0;u=d-g|0;g=ai(u,j,u,j);d=o+g|0;e=aa+e|0;e=d>>>0<g>>>0?e+1|0:e;o=d;L=D[i+52>>2];d=D[i+24>>2];H=D[i+48>>2];g=H;l=D[i+28>>2]-(L+(d>>>0<g>>>0)|0)|0;s=d-g|0;q=ai(s,l,s,l);d=o+q|0;g=aa+e|0;v=d;q=d>>>0<q>>>0?g+1|0:g;if(!(d|q)){break j}N=D[i+64>>2];d=N;O=D[i+68>>2];d=ai(d-x|0,O-((d>>>0<x>>>0)+J|0)|0,n,k);e=aa;g=d;P=D[i+56>>2];d=P;Q=D[i+60>>2];h=ai(d-G|0,Q-((d>>>0<G>>>0)+K|0)|0,u,j);d=g+h|0;g=aa+e|0;g=d>>>0<h>>>0?g+1|0:g;e=d;R=D[i+72>>2];d=R;S=D[i+76>>2];h=ai(d-H|0,S-((d>>>0<H>>>0)+L|0)|0,s,l);d=e+h|0;e=aa+g|0;z=d;y=d>>>0<h>>>0?e+1|0:e;d=l>>31;e=d+s|0;g=d+l|0;g=e>>>0<d>>>0?g+1|0:g;h=e^d;d=d^g;M=d;d=k>>31;g=d+n|0;e=d+k|0;A=g^d;d=d^(g>>>0<d>>>0?e+1|0:e);o=d;e=0;d=j>>31;C=d+u|0;g=d+j|0;g=C>>>0<d>>>0?g+1|0:g;C=C^d;d=d^g;g=(o|0)==(d|0)&A>>>0>C>>>0|d>>>0<o>>>0;A=g?A:C;d=g?o:d;g=(M|0)==(d|0)&h>>>0>A>>>0|d>>>0<M>>>0;g=ci(-1,2147483647,g?h:A,g?M:d)>>>0<z>>>0;d=aa;if(g&(d|0)<=(y|0)|(d|0)<(y|0)){break e}h=1;d=0;e=N;n=bi(ai(n,k,z,y),aa,v,q);k=n+x|0;g=aa+J|0;g=k>>>0<n>>>0?g+1|0:g;g=O-((e>>>0<k>>>0)+g|0)|0;e=e-k|0;g=ai(e,g,e,g);n=aa;e=P;o=g;j=bi(ai(u,j,z,y),aa,v,q);k=j+G|0;g=aa+K|0;g=j>>>0>k>>>0?g+1|0:g;g=Q-((e>>>0<k>>>0)+g|0)|0;e=e-k|0;k=ai(e,g,e,g);g=o+k|0;e=aa+n|0;e=g>>>0<k>>>0?e+1|0:e;k=e;e=R;o=g;l=bi(ai(s,l,z,y),aa,v,q);j=l+H|0;g=aa+L|0;g=j>>>0<l>>>0?g+1|0:g;g=S-((e>>>0<j>>>0)+g|0)|0;e=e-j|0;j=ai(e,g,e,g);e=o+j|0;g=aa+k|0;k=ai(e,e>>>0<j>>>0?g+1|0:g,v,q);e=aa;j=e;if(!e&k>>>0<=1){break h}l=k;e=j;while(1){g=d<<1|h>>>31;h=h<<1;d=g;n=!e&l>>>0>7|(e|0)!=0;l=(e&3)<<30|l>>>2;e=e>>>2|0;if(n){continue}break}break g}if((h|0)<(p|0)){d=h<<1}else{if((p|0)<=0){D[m+8>>2]=0;D[m+12>>2]=0;break i}d=(p<<1)-2|0}d=(d<<2)+c|0;D[m+8>>2]=D[d>>2];D[m+12>>2]=D[d+4>>2]}e=1;break e}d=j;h=k;if(h-1|0){break f}}while(1){g=ci(k,j,h,d)+h|0;e=d+aa|0;e=g>>>0<h>>>0?e+1|0:e;h=(e&1)<<31|g>>>1;d=e>>>1|0;e=ai(h,d,h,d);g=aa;if((j|0)==(g|0)&e>>>0>k>>>0|g>>>0>j>>>0){continue}break}}k=D[m+20>>2];if(k){e=k-1|0;l=D[D[m+16>>2]+(e>>>3&536870908)>>2];D[m+20>>2]=e;g=r;n=w-g|0;j=g>>31;u=(w>>31)-(j+(g>>>0>w>>>0)|0)|0;g=ai(z,y,n,u);s=aa;r=ai(r,j,v,q);j=r+g|0;g=aa+s|0;g=j>>>0<r>>>0?g+1|0:g;o=j;j=F;s=t-j|0;r=j>>31;w=(t>>31)-(r+(j>>>0>t>>>0)|0)|0;j=ai(h,d,s,w);t=j;j=l>>>e&1;e=j;x=e?0-t|0:t;l=o+x|0;o=g;g=aa;e=o+(e?0-(g+((t|0)!=0)|0)|0:g)|0;V=m,W=bi(l,l>>>0<x>>>0?e+1|0:e,v,q),D[V+12>>2]=W;e=ai(s,w,z,y);g=aa;l=ai(v,q,F,r);e=l+e|0;g=aa+g|0;g=e>>>0<l>>>0?g+1|0:g;d=ai(h,d,n,u);l=j?d:0-d|0;h=l+e|0;e=aa;e=(j?e:0-(((d|0)!=0)+e|0)|0)+g|0;V=m,W=bi(h,h>>>0<l>>>0?e+1|0:e,v,q),D[V+8>>2]=W}e=(k|0)!=0}$=i+80|0;break c}ua();T()}if(!e){break b}k:{if(D[a+8>>2]<=0){break k}g=D[a+32>>2];d=0;while(1){e=d<<2;f=D[(e+a|0)+68>>2];h=D[a+16>>2];l:{if((f|0)>(h|0)){D[e+g>>2]=h;break l}e=e+g|0;h=D[a+12>>2];if((h|0)>(f|0)){D[e>>2]=h;break l}D[e>>2]=f}d=d+1|0;f=D[a+8>>2];if((d|0)<(f|0)){continue}break}e=0;if((f|0)<=0){break k}d=p<<3;h=d+c|0;k=b+d|0;while(1){f=e<<2;d=f+h|0;f=D[f+k>>2]+D[f+g>>2]|0;D[d>>2]=f;m:{if((f|0)>D[a+16>>2]){f=f-D[a+20>>2]|0}else{if((f|0)>=D[a+12>>2]){break m}f=f+D[a+20>>2]|0}D[d>>2]=f}e=e+1|0;if((e|0)<D[a+8>>2]){continue}break}}p=p+1|0;f=(I|0)>(p|0);if((p|0)==(U|0)){break b}e=D[a+56>>2];d=D[e>>2];if(D[e+4>>2]-d>>2>>>0>p>>>0){continue}break}}ua();T()}a=f^1}else{a=0}return a&1}function Ic(a){var b=0,c=0,d=0,e=0,f=0,g=0;e=$-16|0;$=e;D[e+12>>2]=a;a:{if(a>>>0<=211){d=D[Hc(10384,10576,e+12|0)>>2];break a}if(a>>>0>=4294967292){ub();T()}f=(a>>>0)/210|0;d=J(f,210);D[e+8>>2]=a-d;g=Hc(10576,10768,e+8|0)-10576>>2;while(1){d=D[(g<<2)+10576>>2]+d|0;a=5;b:{while(1){c:{if((a|0)==47){a=211;while(1){b=(d>>>0)/(a>>>0)|0;if(b>>>0<a>>>0){break b}if((J(a,b)|0)==(d|0)){break c}b=a+10|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+12|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+16|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+18|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+22|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+28|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+30|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+36|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+40|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+42|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+46|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+52|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+58|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+60|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+66|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+70|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+72|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+78|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+82|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+88|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+96|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+100|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+102|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+106|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+108|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+112|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+120|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+126|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+130|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+136|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+138|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+142|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+148|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+150|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+156|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+162|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+166|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+168|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+172|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+178|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+180|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+186|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+190|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+192|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+196|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+198|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}if((J(b,c)|0)==(d|0)){break c}b=a+208|0;c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}a=a+210|0;if((J(b,c)|0)!=(d|0)){continue}break}break c}b=D[(a<<2)+10384>>2];c=(d>>>0)/(b>>>0)|0;if(b>>>0>c>>>0){break b}a=a+1|0;if((J(b,c)|0)!=(d|0)){continue}}break}d=g+1|0;a=(d|0)==48;g=a?0:d;f=a+f|0;d=J(f,210);continue}break}D[e+12>>2]=d}$=e+16|0;return d}function Eb(a,b,c,d){var e=0,f=0,g=0,h=0,i=K(0),j=0;a:{if(!d){break a}b:{c:{switch(D[a+28>>2]-1|0){case 0:d:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break d}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){B[b+d|0]=E[f|0];b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break d}f=f+1|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 1:e:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break e}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){e=B[f|0];if((e|0)<0){break a}B[b+d|0]=e;b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break e}f=f+1|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 2:f:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break f}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){e=F[f>>1];if((e-128&65535)>>>0<65280){break a}B[b+d|0]=e;b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break f}f=f+2|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 3:g:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break g}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){e=F[f>>1];if(e>>>0>127){break a}B[b+d|0]=e;b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break g}f=f+2|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 4:h:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break h}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){e=D[f>>2];if(e-128>>>0<4294967040){break a}B[b+d|0]=e;b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break h}f=f+4|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 5:i:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break i}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){e=D[f>>2];if(e>>>0>127){break a}B[b+d|0]=e;b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break i}f=f+4|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 6:j:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break j}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){h=D[f>>2];e=D[f+4>>2]-(h>>>0<128)|0;if((e|0)==-1&h-128>>>0<4294967040|(e|0)!=-1){break a}B[b+d|0]=h;b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break j}f=f+8|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 7:k:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break k}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){e=D[f+4>>2];h=D[f>>2];if(!e&h>>>0>127|e){break a}B[b+d|0]=h;b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break k}f=f+8|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 8:l:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break l}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){h=b+d|0;i=H[f>>2];m:{if(K(L(i))<K(2147483648)){e=~~i;break m}e=-2147483648}B[h|0]=e;b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break l}f=f+4|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 9:n:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break n}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){h=b+d|0;j=I[f>>3];o:{if(L(j)<2147483648){e=~~j;break o}e=-2147483648}B[h|0]=e;b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break n}f=f+8|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 10:break c;default:break a}}p:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break p}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){B[b+d|0]=E[f|0];b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break p}f=f+1|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)<=(e|0)){break a}}pa(d+e|0,0,c-e|0)}return g}function Db(a,b,c,d){var e=0,f=0,g=0,h=0,i=K(0),j=0;a:{if(!d){break a}b:{c:{switch(D[a+28>>2]-1|0){case 0:d:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break d}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){e=B[f|0];if((e|0)<0){break a}B[b+d|0]=e;b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break d}f=f+1|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 1:e:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break e}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){B[b+d|0]=E[f|0];b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break e}f=f+1|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 2:f:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break f}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){e=F[f>>1];if(e>>>0>255){break a}B[b+d|0]=e;b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break f}f=f+2|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 3:g:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break g}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){e=F[f>>1];if(e>>>0>255){break a}B[b+d|0]=e;b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break g}f=f+2|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 4:h:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break h}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){e=D[f>>2];if(e>>>0>255){break a}B[b+d|0]=e;b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break h}f=f+4|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 5:i:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break i}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){e=D[f>>2];if(e>>>0>255){break a}B[b+d|0]=e;b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break i}f=f+4|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 6:j:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break j}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){e=D[f+4>>2];h=D[f>>2];if(!e&h>>>0>255|e){break a}B[b+d|0]=h;b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break j}f=f+8|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 7:k:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break k}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){e=D[f+4>>2];h=D[f>>2];if(!e&h>>>0>255|e){break a}B[b+d|0]=h;b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break k}f=f+8|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 8:l:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break l}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){h=b+d|0;i=H[f>>2];m:{if(i<K(4294967296)&i>=K(0)){e=~~i>>>0;break m}e=0}B[h|0]=e;b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break l}f=f+4|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 9:n:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break n}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){h=b+d|0;j=I[f>>3];o:{if(j<4294967296&j>=0){e=~~j>>>0;break o}e=0}B[h|0]=e;b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break n}f=f+8|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)>(e|0)){break b}break a;case 10:break c;default:break a}}p:{e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)<=0){break p}b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;f=D[a>>2];e=D[f>>2];if((b|0)>=(D[f+4>>2]-e|0)){break a}f=b+e|0;b=0;while(1){B[b+d|0]=E[f|0];b=b+1|0;e=B[a+24|0];if((b|0)>=(((c|0)<(e|0)?c:e)|0)){break p}f=f+1|0;if(f>>>0<G[D[a>>2]+4>>2]){continue}break}break a}g=1;if((c|0)<=(e|0)){break a}}pa(d+e|0,0,c-e|0)}return g}function md(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{b:{c:{d:{e:{if(D[a+92>>2]==D[a+88>>2]){break e}c=D[a+52>>2];f:{if((c|0)!=D[a+56>>2]){D[c>>2]=b;D[a+52>>2]=c+4;break f}d=D[a+48>>2];i=c-d|0;f=i>>2;e=f+1|0;if(e>>>0>=1073741824){break b}c=i>>1;e=i>>>0<2147483644?c>>>0<e>>>0?e:c:1073741823;if(e){if(e>>>0>=1073741824){break a}c=na(e<<2)}else{c=0}f=c+(f<<2)|0;D[f>>2]=b;if((i|0)>0){oa(c,d,i)}D[a+56>>2]=c+(e<<2);D[a+52>>2]=f+4;D[a+48>>2]=c;if(!d){break f}ma(d)}D[a+84>>2]=0;f=-1;c=-1;g:{if((b|0)==-1){break g}e=D[a+4>>2];c=b+1|0;c=(c>>>0)%3|0?c:b-2|0;if((c|0)!=-1){f=D[D[e>>2]+(c<<2)>>2]}h:{if((b>>>0)%3|0){d=b-1|0;break h}d=b+2|0;c=-1;if((d|0)==-1){break g}}c=D[D[e>>2]+(d<<2)>>2]}h=c>>>3&536870908;e=D[a+36>>2];g=e+(f>>>3&536870908)|0;i=D[g>>2];d=1<<f;if(!(i&d)){D[g>>2]=d|i;g=a+8|0;if((b|0)!=-1){e=b+1|0;d=(e>>>0)%3|0?e:b-2|0}else{d=-1}Ja(g,f,d);e=D[a+36>>2]}d=e+h|0;e=D[d>>2];f=1<<c;if(!(e&f)){D[d>>2]=e|f;d=a+8|0;f=-1;i:{if((b|0)==-1){break i}f=b-1|0;if((b>>>0)%3|0){break i}f=b+2|0}Ja(d,c,f)}f=-1;f=(b|0)!=-1?D[D[D[a+4>>2]>>2]+(b<<2)>>2]:f;d=D[a+36>>2]+(f>>>3&536870908)|0;e=D[d>>2];c=1<<f;if(!(e&c)){D[d>>2]=c|e;Ja(a+8|0,f,b)}d=D[a+84>>2];if((d|0)>2){break e}while(1){f=J(d,12)+a|0;b=D[f+52>>2];if((b|0)==D[f+48>>2]){d=d+1|0;if((d|0)!=3){continue}break e}c=b-4|0;b=D[c>>2];D[f+52>>2]=c;D[a+84>>2]=d;if((b|0)==-1){break e}f=D[a+24>>2];c=(b>>>0)/3|0;j:{if(D[f+(c>>>3&268435452)>>2]>>>c&1){break j}k:{while(1){k=(b>>>0)/3|0;c=(k>>>3&268435452)+f|0;D[c>>2]=D[c>>2]|1<<k;f=-1;l:{m:{n:{o:{p:{q:{r:{s:{f=(b|0)!=-1?D[D[D[a+4>>2]>>2]+(b<<2)>>2]:f;d=D[a+36>>2]+(f>>>3&536870908)|0;e=D[d>>2];c=1<<f;if(!(e&c)){D[d>>2]=c|e;i=D[(D[D[a+16>>2]+96>>2]+J(k,12)|0)+((b>>>0)%3<<2)>>2];j=D[D[a+20>>2]+4>>2];c=D[j+4>>2];t:{if((c|0)!=D[j+8>>2]){D[c>>2]=i;D[j+4>>2]=c+4;break t}g=D[j>>2];h=c-g|0;e=h>>2;d=e+1|0;if(d>>>0>=1073741824){break s}c=h>>1;d=h>>>0<2147483644?c>>>0<d>>>0?d:c:1073741823;if(d){if(d>>>0>=1073741824){break a}c=na(d<<2)}else{c=0}e=c+(e<<2)|0;D[e>>2]=i;if((h|0)>0){oa(c,g,h)}D[j+8>>2]=c+(d<<2);D[j+4>>2]=e+4;D[j>>2]=c;if(!g){break t}ma(g)}h=D[a+12>>2];c=D[h+4>>2];u:{if((c|0)!=D[h+8>>2]){D[c>>2]=b;D[h+4>>2]=c+4;break u}i=D[h>>2];g=c-i|0;e=g>>2;d=e+1|0;if(d>>>0>=1073741824){break r}c=g>>1;d=g>>>0<2147483644?c>>>0<d>>>0?d:c:1073741823;if(d){if(d>>>0>=1073741824){break a}c=na(d<<2)}else{c=0}e=c+(e<<2)|0;D[e>>2]=b;if((g|0)>0){oa(c,i,g)}D[h+8>>2]=c+(d<<2);D[h+4>>2]=e+4;D[h>>2]=c;if(!i){break u}ma(i)}c=D[a+12>>2];D[D[c+12>>2]+(f<<2)>>2]=D[c+24>>2];D[c+24>>2]=D[c+24>>2]+1}if((b|0)==-1){break k}h=D[a+4>>2];f=-1;c=b+1|0;c=(c>>>0)%3|0?c:b-2|0;if((c|0)!=-1){f=D[D[h+12>>2]+(c<<2)>>2]}v:{w:{if((J(k,3)|0)!=(b|0)){e=b-1|0;break w}e=b+2|0;b=-1;if((e|0)==-1){break v}}b=D[D[h+12>>2]+(e<<2)>>2]}g=(b|0)==-1;i=(b>>>0)/3|0;e=(f>>>0)/3|0;c=(f|0)==-1;if(!c){c=c?-1:e;c=D[D[a+24>>2]+(c>>>3&536870908)>>2]&1<<c;if(g){break q}d=(c|0)!=0;break p}d=1;if(!g){break p}break k}qa();T()}qa();T()}if(!c){break o}break k}c=g?-1:i;x:{if(D[D[a+24>>2]+(c>>>3&536870908)>>2]>>>c&1){break x}e=0;c=D[D[h>>2]+(b<<2)>>2];if(!(D[D[a+36>>2]+(c>>>3&536870908)>>2]>>>c&1)){c=D[a+88>>2]+(c<<2)|0;e=D[c>>2];D[c>>2]=e+1;e=(e|0)<=0?2:1}if(D[a+84>>2]>=(e|0)?d:0){break m}j=J(e,12)+a|0;c=D[j+52>>2];y:{if((c|0)!=D[j+56>>2]){D[c>>2]=b;D[j+52>>2]=c+4;break y}h=D[j+48>>2];k=c-h|0;i=k>>2;g=i+1|0;if(g>>>0>=1073741824){break d}c=k>>1;g=k>>>0<2147483644?c>>>0<g>>>0?g:c:1073741823;if(g){if(g>>>0>=1073741824){break a}c=na(g<<2)}else{c=0}i=c+(i<<2)|0;D[i>>2]=b;if((k|0)>0){oa(c,h,k)}D[j+48>>2]=c;D[j+52>>2]=i+4;D[j+56>>2]=c+(g<<2);if(!h){break y}ma(h)}if(D[a+84>>2]<=(e|0)){break x}D[a+84>>2]=e}if(d){break k}b=-1;if((f|0)==-1){break n}}b=D[D[D[a+4>>2]>>2]+(f<<2)>>2]}e=0;if(!(D[D[a+36>>2]+(b>>>3&536870908)>>2]>>>b&1)){b=D[a+88>>2]+(b<<2)|0;c=D[b>>2];D[b>>2]=c+1;e=(c|0)<=0?2:1}if(D[a+84>>2]<(e|0)){break l}b=f}f=D[a+24>>2];continue}break}h=J(e,12)+a|0;b=D[h+52>>2];z:{if((b|0)!=D[h+56>>2]){D[b>>2]=f;D[h+52>>2]=b+4;break z}i=D[h+48>>2];g=b-i|0;c=g>>2;d=c+1|0;if(d>>>0>=1073741824){break c}b=g>>1;d=g>>>0<2147483644?b>>>0<d>>>0?d:b:1073741823;if(d){if(d>>>0>=1073741824){break a}b=na(d<<2)}else{b=0}c=b+(c<<2)|0;D[c>>2]=f;if((g|0)>0){oa(b,i,g)}D[h+48>>2]=b;D[h+52>>2]=c+4;D[h+56>>2]=b+(d<<2);if(!i){break z}ma(i)}d=D[a+84>>2];if((e|0)>=(d|0)){break j}D[a+84>>2]=e;d=e;break j}d=D[a+84>>2]}if((d|0)<3){continue}break}}return 1}qa();T()}qa();T()}qa();T()}ra(1326);T()}function ud(a,b){var 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;h=$-48|0;$=h;c=D[D[a+4>>2]+44>>2];d=D[a+8>>2];f=D[d>>2];d=D[d+4>>2];D[h+40>>2]=0;D[h+32>>2]=0;D[h+36>>2]=0;d=(d-f>>2>>>0)/3|0;j=D[c+96>>2];f=(D[c+100>>2]-j|0)/12|0;a:{if(d>>>0>f>>>0){ic(c+96|0,d-f|0,h+32|0);break a}if(d>>>0>=f>>>0){break a}D[c+100>>2]=j+J(d,12)}b:{if(D[a+216>>2]==D[a+220>>2]){k=D[a+4>>2];i=D[k+44>>2];d=D[i+100>>2];if((d|0)!=D[i+96>>2]){c=0;while(1){g=D[a+8>>2];e=J(c,3);c:{d:{if((e|0)==-1){l=D[(D[g>>2]+(e<<2)|0)+4>>2];j=-1;e=1;break d}l=-1;j=D[D[g>>2]+(e<<2)>>2];f=e+1|0;if((f|0)==-1){e=0;break d}l=D[D[g>>2]+(f<<2)>>2];e=e+2|0;f=-1;if((e|0)==-1){break c}}f=D[D[g>>2]+(e<<2)>>2]}g=f;f=c+1|0;e=d;d=D[i+96>>2];e=(e-d|0)/12|0;if(e>>>0<=c>>>0){D[h+40>>2]=0;D[h+32>>2]=0;D[h+36>>2]=0;ic(i+96|0,f-e|0,h+32|0);k=D[a+4>>2];d=D[i+96>>2]}c=J(c,12)+d|0;D[c+8>>2]=g;D[c+4>>2]=l;D[c>>2]=j;c=f;i=D[k+44>>2];d=D[i+100>>2];if(c>>>0<(d-D[i+96>>2]|0)/12>>>0){continue}break}}D[D[k+4>>2]+80>>2]=b;c=1;break b}D[h+24>>2]=0;D[h+16>>2]=0;D[h+20>>2]=0;k=D[a+8>>2];b=D[k>>2];c=D[k+4>>2];D[h+8>>2]=0;D[h>>2]=0;D[h+4>>2]=0;e:{f:{g:{h:{i:{j:{k:{b=c-b|0;if(b){if((b|0)<0){break k}n=na(b);D[h>>2]=n;b=b>>2<<2;c=b+n|0;D[h+8>>2]=c;pa(n,0,b);D[h+4>>2]=c}c=D[k+24>>2];if((D[k+28>>2]-c|0)<=0){d=0;b=0;break f}d=0;f=0;b=0;while(1){j=D[(o<<2)+c>>2];l:{if((j|0)==-1){break l}m:{if(D[D[a+120>>2]+(o>>>3&536870908)>>2]>>>o&1){break m}q=D[a+216>>2];c=D[a+220>>2]-q|0;if(!c){break m}c=(c|0)/144|0;r=c>>>0>1?c:1;l=0;c=(j>>>0)%3|0;g=j+2|0;s=(c|0)!=0|(g|0)!=-1;t=c?j-1|0:g;while(1){i=j<<2;e=q+J(l,144)|0;c=D[i+D[D[e+68>>2]>>2]>>2];n:{if(!(D[D[e+16>>2]+(c>>>3&536870908)>>2]>>>c&1)){break n}c=-1;o:{if(!s){break o}g=D[D[k+12>>2]+(t<<2)>>2];c=-1;if((g|0)==-1){break o}c=g-1|0;if((g>>>0)%3|0){break o}c=g+2|0}if((j|0)==(c|0)){break n}e=D[e+32>>2];g=D[e+i>>2];while(1){m=0;if((c|0)==-1){break e}if(D[e+(c<<2)>>2]!=(g|0)){j=c;break m}p:{q:{if((c>>>0)%3|0){i=c-1|0;break q}i=c+2|0;m=-1;if((i|0)==-1){break p}}c=D[D[k+12>>2]+(i<<2)>>2];m=-1;if((c|0)==-1){break p}m=c-1|0;if((c>>>0)%3|0){break p}m=c+2|0}c=m;if((j|0)!=(c|0)){continue}break}}l=l+1|0;if((r|0)!=(l|0)){continue}break}}c=b-f|0;g=c>>2;D[(j<<2)+n>>2]=g;r:{if(b>>>0<p>>>0){D[b>>2]=j;b=b+4|0;D[h+20>>2]=b;break r}b=g+1|0;if(b>>>0>=1073741824){break j}d=p-f|0;e=d>>1;b=d>>>0<2147483644?b>>>0>e>>>0?b:e:1073741823;if(b){if(b>>>0>=1073741824){break i}d=na(b<<2)}else{d=0}g=d+(g<<2)|0;D[g>>2]=j;p=(b<<2)+d|0;b=g+4|0;if((c|0)>0){oa(d,f,c)}D[h+24>>2]=p;D[h+20>>2]=b;D[h+16>>2]=d;if(f){ma(f);k=D[a+8>>2]}f=d}if((j|0)==-1){break l}s:{if((j>>>0)%3|0){c=j-1|0;break s}c=j+2|0;if((c|0)==-1){break l}}c=D[D[k+12>>2]+(c<<2)>>2];if((c|0)==-1){break l}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1){break l}e=j;if((c|0)==(e|0)){break l}while(1){g=c;t:{u:{i=D[a+216>>2];c=D[a+220>>2]-i|0;if(!c){break u}c=(c|0)/144|0;l=c>>>0>1?c:1;c=0;while(1){q=D[(i+J(c,144)|0)+32>>2];r=g<<2;if(D[q+r>>2]==D[q+(e<<2)>>2]){c=c+1|0;if((l|0)!=(c|0)){continue}break u}break}c=b-d|0;e=c>>2;D[n+r>>2]=e;if(b>>>0<p>>>0){D[b>>2]=g;b=b+4|0;D[h+20>>2]=b;f=d;break t}b=e+1|0;if(b>>>0>=1073741824){break h}f=p-d|0;i=f>>1;b=f>>>0<2147483644?b>>>0>i>>>0?b:i:1073741823;if(b){if(b>>>0>=1073741824){break g}f=na(b<<2)}else{f=0}e=f+(e<<2)|0;D[e>>2]=g;p=(b<<2)+f|0;b=e+4|0;if((c|0)>0){oa(f,d,c)}D[h+24>>2]=p;D[h+20>>2]=b;D[h+16>>2]=f;if(!d){d=f;break t}ma(d);k=D[a+8>>2];d=f;break t}D[(g<<2)+n>>2]=D[(e<<2)+n>>2]}if((g|0)==-1){break l}v:{if((g>>>0)%3|0){c=g-1|0;break v}c=g+2|0;if((c|0)==-1){break l}}c=D[D[k+12>>2]+(c<<2)>>2];if((c|0)==-1){break l}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1){break l}e=g;if((c|0)!=(j|0)){continue}break}}o=o+1|0;c=D[k+24>>2];if((o|0)<D[k+28>>2]-c>>2){continue}break}break f}qa();T()}qa();T()}ra(1326);T()}qa();T()}ra(1326);T()}o=D[a+4>>2];i=D[o+44>>2];l=D[i+100>>2];if((l|0)!=D[i+96>>2]){c=0;while(1){f=c+1|0;g=J(c,12);j=g+n|0;e=D[j+8>>2];k=D[j+4>>2];j=D[j>>2];m=c;c=D[i+96>>2];l=(l-c|0)/12|0;if(m>>>0>=l>>>0){D[h+40>>2]=0;D[h+32>>2]=0;D[h+36>>2]=0;ic(i+96|0,f-l|0,h+32|0);o=D[a+4>>2];c=D[i+96>>2]}c=c+g|0;D[c+8>>2]=e;D[c+4>>2]=k;D[c>>2]=j;c=f;i=D[o+44>>2];l=D[i+100>>2];if(c>>>0<(l-D[i+96>>2]|0)/12>>>0){continue}break}}D[D[o+4>>2]+80>>2]=b-d>>2;m=1}c=m;if(n){ma(n)}if(!d){break b}D[h+20>>2]=d;ma(d)}$=h+48|0;return c}function Ha(a,b,c,d){var e=0,f=0,g=0,h=0,i=K(0),j=0,k=0;a:{if(!d){break a}b:{c:{switch(D[a+28>>2]-1|0){case 0:e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;h=D[e+4>>2];while(1){if(b>>>0>=h>>>0){break a}e=(f<<3)+d|0;g=B[b|0];D[e>>2]=g;D[e+4>>2]=g>>31;b=b+1|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break b}break a;case 1:e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;h=D[e+4>>2];while(1){if(b>>>0>=h>>>0){break a}e=(f<<3)+d|0;D[e>>2]=E[b|0];D[e+4>>2]=0;b=b+1|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break b}break a;case 2:e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;h=D[e+4>>2];while(1){if(b>>>0>=h>>>0){break a}e=(f<<3)+d|0;g=C[b>>1];D[e>>2]=g;D[e+4>>2]=g>>31;b=b+2|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break b}break a;case 3:e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;h=D[e+4>>2];while(1){if(b>>>0>=h>>>0){break a}e=(f<<3)+d|0;D[e>>2]=F[b>>1];D[e+4>>2]=0;b=b+2|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break b}break a;case 4:e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;h=D[e+4>>2];while(1){if(b>>>0>=h>>>0){break a}e=(f<<3)+d|0;g=D[b>>2];D[e>>2]=g;D[e+4>>2]=g>>31;b=b+4|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break b}break a;case 5:e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;h=D[e+4>>2];while(1){if(b>>>0>=h>>>0){break a}e=(f<<3)+d|0;D[e>>2]=D[b>>2];D[e+4>>2]=0;b=b+4|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break b}break a;case 6:e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;h=D[e+4>>2];while(1){if(b>>>0>=h>>>0){break a}g=D[b+4>>2];e=(f<<3)+d|0;D[e>>2]=D[b>>2];D[e+4>>2]=g;b=b+8|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break b}break a;case 7:e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;h=D[e+4>>2];while(1){if(b>>>0>=h>>>0){break a}e=D[b>>2];g=D[b+4>>2];if((g|0)<0){break a}k=(f<<3)+d|0;D[k>>2]=e;D[k+4>>2]=g;b=b+8|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break b}break a;case 8:e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;k=D[e+4>>2];while(1){if(b>>>0>=k>>>0){break a}e=(f<<3)+d|0;i=H[b>>2];d:{if(K(L(i))<K(0x8000000000000000)){g=K(L(i))>=K(1)?~~(i>K(0)?K(N(K(P(K(i*K(2.3283064365386963e-10)))),K(4294967296))):K(Q(K(K(i-K(~~i>>>0>>>0))*K(2.3283064365386963e-10)))))>>>0:0;h=~~i>>>0;break d}g=-2147483648;h=0}D[e>>2]=h;D[e+4>>2]=g;b=b+4|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break b}break a;case 9:e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;k=D[e+4>>2];while(1){if(b>>>0>=k>>>0){break a}e=(f<<3)+d|0;j=I[b>>3];e:{if(L(j)<0x8000000000000000){g=L(j)>=1?~~(j>0?N(P(j*2.3283064365386963e-10),4294967295):Q((j-+(~~j>>>0>>>0))*2.3283064365386963e-10))>>>0:0;h=~~j>>>0;break e}g=-2147483648;h=0}D[e>>2]=h;D[e+4>>2]=g;b=b+8|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break b}break a;case 10:break c;default:break a}}e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];g=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=g+b|0;h=D[e+4>>2];while(1){if(b>>>0>=h>>>0){break a}e=(f<<3)+d|0;D[e>>2]=E[b|0];D[e+4>>2]=0;b=b+1|0;f=f+1|0;e=B[a+24|0];if((f|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)<=(e|0)){break a}}pa((e<<3)+d|0,0,c-e<<3)}}function Bg(a){a=a|0;var 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;d=$-32|0;$=d;a:{if(!bb(1,d+28|0,D[a+32>>2])){break a}if(!bb(1,d+24|0,D[a+32>>2])){break a}k=D[d+28>>2];if(k>>>0>1431655765){break a}e=D[a+32>>2];j=D[e+8>>2];b=j;c=D[e+16>>2];f=b-c|0;g=D[e+12>>2];n=b>>>0<c>>>0;b=D[e+20>>2];f=bi(f,g-(n+b|0)|0,3,0);if(!aa&f>>>0<k>>>0){break a}o=D[d+24>>2];f=ai(k,0,3,0);if(!aa&f>>>0<o>>>0|((b|0)>=(g|0)&c>>>0>=j>>>0|(b|0)>(g|0))){break a}g=E[c+D[e>>2]|0];j=c+1|0;f=j?b:b+1|0;D[e+16>>2]=j;D[e+20>>2]=f;b:{if(!g){e=0;b=$-32|0;$=b;D[b+24>>2]=0;D[b+16>>2]=0;D[b+20>>2]=0;c:{d:{f=J(k,3);if(f){if(f>>>0>=1073741824){break d}c=J(k,12);e=na(c);D[b+16>>2]=e;pa(e,0,c)}f=kc(f,1,D[a+32>>2],e);e:{f:{if(!(!f|!k)){g=0;c=0;while(1){n=h;j=(c<<2)+e|0;h=D[j>>2];i=h>>>1|0;h=n+(h&1?0-i|0:i)|0;D[b>>2]=h;i=D[j+4>>2];l=i>>>1|0;h=h+(i&1?0-l|0:l)|0;D[b+4>>2]=h;j=D[j+8>>2];i=j>>>1|0;h=h+(j&1?0-i|0:i)|0;D[b+8>>2]=h;ob(D[a+44>>2]+96|0,b);c=c+3|0;g=g+1|0;if((g|0)!=(k|0)){continue}break}break f}if(!e){break e}}ma(e)}$=b+32|0;break c}qa();T()}if(!f){break a}break b}g:{if(o>>>0<=255){if(!k){break b}D[d+16>>2]=0;D[d+8>>2]=0;D[d+12>>2]=0;c=D[e+12>>2];b=c;h=D[e+8>>2];if((f|0)>=(b|0)&j>>>0>=h>>>0|(b|0)<(f|0)){break g}while(1){g=D[e>>2];l=E[g+j|0];b=f;i=j+1|0;b=i?b:b+1|0;D[e+16>>2]=i;D[e+20>>2]=b;D[d+8>>2]=l;if(h>>>0<=i>>>0&(b|0)>=(c|0)|(b|0)>(c|0)){break g}l=E[g+i|0];b=f;i=j+2|0;b=i>>>0<2?b+1|0:b;D[e+16>>2]=i;D[e+20>>2]=b;D[d+12>>2]=l;if(h>>>0<=i>>>0&(b|0)>=(c|0)|(b|0)>(c|0)){break g}b=E[g+i|0];c=j+3|0;f=c>>>0<3?f+1|0:f;D[e+16>>2]=c;D[e+20>>2]=f;D[d+16>>2]=b;ob(D[a+44>>2]+96|0,d+8|0);m=m+1|0;if((k|0)==(m|0)){break b}e=D[a+32>>2];b=e;j=D[b+16>>2];f=D[b+20>>2];D[d+16>>2]=0;D[d+8>>2]=0;D[d+12>>2]=0;h=D[b+8>>2];c=D[b+12>>2];b=c;if(j>>>0<h>>>0&(f|0)<=(b|0)|(b|0)>(f|0)){continue}break}break g}if(o>>>0<=65535){if(!k){break b}D[d+16>>2]=0;D[d+8>>2]=0;D[d+12>>2]=0;g=D[e+12>>2];c=c+3|0;b=c>>>0<3?b+1|0:b;i=D[e+8>>2];h=c;c=b;if(i>>>0<h>>>0&(b|0)>=(g|0)|(b|0)>(g|0)){break g}while(1){l=D[e>>2];b=l+j|0;b=E[b|0]|E[b+1|0]<<8;D[e+16>>2]=h;D[e+20>>2]=c;D[d+8>>2]=b;b=f;c=j+4|0;b=c>>>0<4?b+1|0:b;if(c>>>0>i>>>0&(b|0)>=(g|0)|(b|0)>(g|0)){break g}h=h+l|0;h=E[h|0]|E[h+1|0]<<8;D[e+16>>2]=c;D[e+20>>2]=b;D[d+12>>2]=h;b=f;f=j+6|0;b=f>>>0<6?b+1|0:b;if(f>>>0>i>>>0&(b|0)>=(g|0)|(b|0)>(g|0)){break g}c=c+l|0;c=E[c|0]|E[c+1|0]<<8;D[e+16>>2]=f;D[e+20>>2]=b;D[d+16>>2]=c;ob(D[a+44>>2]+96|0,d+8|0);m=m+1|0;if((k|0)==(m|0)){break b}e=D[a+32>>2];b=e;j=D[b+16>>2];f=D[b+20>>2];D[d+16>>2]=0;D[d+8>>2]=0;D[d+12>>2]=0;g=D[b+12>>2];i=D[b+8>>2];b=f;c=j+2|0;b=c>>>0<2?b+1|0:b;h=c;c=b;if((b|0)<=(g|0)&h>>>0<=i>>>0|(b|0)<(g|0)){continue}break}break g}h:{if(o>>>0>2097151){break h}g=F[a+36>>1];if(((g<<8|g>>>8)&65535)>>>0<514){break h}if(!k){break b}D[d+16>>2]=0;D[d+8>>2]=0;D[d+12>>2]=0;if(!bb(1,d+4|0,e)){break g}while(1){D[d+8>>2]=D[d+4>>2];if(!bb(1,d+4|0,D[a+32>>2])){break g}D[d+12>>2]=D[d+4>>2];if(!bb(1,d+4|0,D[a+32>>2])){break g}D[d+16>>2]=D[d+4>>2];ob(D[a+44>>2]+96|0,d+8|0);m=m+1|0;if((k|0)==(m|0)){break b}f=D[a+32>>2];D[d+16>>2]=0;D[d+8>>2]=0;D[d+12>>2]=0;if(bb(1,d+4|0,f)){continue}break}break g}if(!k){break b}D[d+16>>2]=0;D[d+8>>2]=0;D[d+12>>2]=0;g=D[e+12>>2];c=c+5|0;b=c>>>0<5?b+1|0:b;i=D[e+8>>2];h=c;c=b;if(i>>>0<h>>>0&(b|0)>=(g|0)|(b|0)>(g|0)){break g}while(1){l=D[e>>2];b=l+j|0;b=E[b|0]|E[b+1|0]<<8|(E[b+2|0]<<16|E[b+3|0]<<24);D[e+16>>2]=h;D[e+20>>2]=c;D[d+8>>2]=b;b=f;c=j+8|0;b=c>>>0<8?b+1|0:b;n=c;if(c>>>0>i>>>0&(b|0)>=(g|0)|(b|0)>(g|0)){break g}c=h+l|0;c=E[c|0]|E[c+1|0]<<8|(E[c+2|0]<<16|E[c+3|0]<<24);D[e+16>>2]=n;D[e+20>>2]=b;D[d+12>>2]=c;b=j+12|0;f=b>>>0<12?f+1|0:f;c=b;if(b>>>0>i>>>0&(f|0)>=(g|0)|(f|0)>(g|0)){break g}b=l+n|0;b=E[b|0]|E[b+1|0]<<8|(E[b+2|0]<<16|E[b+3|0]<<24);D[e+16>>2]=c;D[e+20>>2]=f;D[d+16>>2]=b;ob(D[a+44>>2]+96|0,d+8|0);m=m+1|0;if((k|0)==(m|0)){break b}e=D[a+32>>2];b=e;j=D[b+16>>2];f=D[b+20>>2];D[d+16>>2]=0;D[d+8>>2]=0;D[d+12>>2]=0;g=D[b+12>>2];i=D[b+8>>2];b=f;c=j+4|0;b=c>>>0<4?b+1|0:b;h=c;c=b;if((b|0)<=(g|0)&h>>>0<=i>>>0|(b|0)<(g|0)){continue}break}}m=0;break a}D[D[a+4>>2]+80>>2]=o;m=1}$=d+32|0;return m|0}function Nb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,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;f=$-96|0;$=f;e=D[a+16>>2];B[f+92|0]=1;D[f+88>>2]=b;D[f+84>>2]=b;D[f+80>>2]=e;m=D[a+20>>2];d=D[m>>2];a:{b:{e=D[D[e+28>>2]+(b<<2)>>2];if(e>>>0<D[m+4>>2]-d>>2>>>0){d=D[D[a+8>>2]+(D[d+(e<<2)>>2]<<2)>>2];e=D[a+4>>2];if(!E[e+84|0]){d=D[D[e+68>>2]+(d<<2)>>2]}D[f+72>>2]=0;D[f+76>>2]=0;m=f- -64|0;D[m>>2]=0;D[m+4>>2]=0;D[f+56>>2]=0;D[f+60>>2]=0;Ha(e,d,B[e+24|0],f+56|0);e=b+1|0;d=(e>>>0)%3|0;if(b>>>0<=e>>>0){m=d?e:b-2|0;h=((b>>>0)%3|0?-1:2)+b|0;while(1){d=m;e=h;c:{if(!D[a+28>>2]){break c}e=b+1|0;d=(e>>>0)%3|0?e:b-2|0;e=b-1|0;if((b>>>0)%3|0){break c}e=b+2|0}k=D[a+20>>2];b=D[k>>2];d=D[D[D[a+16>>2]+28>>2]+(d<<2)>>2];if(d>>>0>=D[k+4>>2]-b>>2>>>0){break b}d=D[D[a+8>>2]+(D[b+(d<<2)>>2]<<2)>>2];b=D[a+4>>2];if(!E[b+84|0]){d=D[D[b+68>>2]+(d<<2)>>2]}D[f+48>>2]=0;D[f+52>>2]=0;D[f+40>>2]=0;D[f+44>>2]=0;D[f+32>>2]=0;D[f+36>>2]=0;Ha(b,d,B[b+24|0],f+32|0);d=D[a+20>>2];b=D[d>>2];e=D[D[D[a+16>>2]+28>>2]+(e<<2)>>2];if(e>>>0>=D[d+4>>2]-b>>2>>>0){break a}d=D[D[a+8>>2]+(D[b+(e<<2)>>2]<<2)>>2];b=D[a+4>>2];if(!E[b+84|0]){d=D[D[b+68>>2]+(d<<2)>>2]}D[f+24>>2]=0;D[f+28>>2]=0;D[f+16>>2]=0;D[f+20>>2]=0;D[f+8>>2]=0;D[f+12>>2]=0;Ha(b,d,B[b+24|0],f+8|0);e=D[f+8>>2];b=D[f+56>>2];d=e-b|0;k=D[f+60>>2];n=D[f+12>>2]-(k+(b>>>0>e>>>0)|0)|0;i=D[f+40>>2];e=D[f+64>>2];s=i-e|0;t=D[f+68>>2];i=D[f+44>>2]-(t+(e>>>0>i>>>0)|0)|0;u=ai(d,n,s,i);v=j-u|0;g=g-(aa+(j>>>0<u>>>0)|0)|0;w=v;j=D[f+16>>2];u=j-e|0;t=D[f+20>>2]-((e>>>0>j>>>0)+t|0)|0;j=D[f+32>>2];v=j-b|0;k=D[f+36>>2]-((b>>>0>j>>>0)+k|0)|0;e=ai(u,t,v,k);j=w+e|0;b=aa+g|0;b=e>>>0>j>>>0?b+1|0:b;g=b;w=o;p=n;b=D[f+48>>2];e=D[f+72>>2];n=b-e|0;o=D[f+76>>2];x=D[f+52>>2]-(o+(b>>>0<e>>>0)|0)|0;p=ai(d,p,n,x);d=w+p|0;b=aa+l|0;b=d>>>0<p>>>0?b+1|0:b;l=D[f+24>>2];p=l-e|0;e=D[f+28>>2]-((e>>>0>l>>>0)+o|0)|0;l=ai(p,e,v,k);o=d-l|0;l=b-(aa+(d>>>0<l>>>0)|0)|0;b=ai(u,t,n,x);d=q-b|0;b=r-(aa+(b>>>0>q>>>0)|0)|0;r=ai(p,e,s,i);q=r+d|0;b=aa+b|0;b=q>>>0<r>>>0?b+1|0:b;r=b;b=D[f+88>>2];e=D[f+80>>2];d:{if(E[f+92|0]){e:{f:{g:{h:{if((b|0)==-1){break h}d=b+1|0;b=(d>>>0)%3|0?d:b-2|0;if((b|0)==-1|D[D[e>>2]+(b>>>3&536870908)>>2]>>>b&1){break h}b=D[D[D[e+64>>2]+12>>2]+(b<<2)>>2];if((b|0)!=-1){break g}}D[f+88>>2]=-1;break f}d=b+1|0;b=(d>>>0)%3|0?d:b-2|0;D[f+88>>2]=b;if((b|0)!=-1){break e}}b=D[f+84>>2];d=-1;i:{if((b|0)==-1){break i}j:{if((b>>>0)%3|0){b=b-1|0;break j}b=b+2|0;d=-1;if((b|0)==-1){break i}}d=-1;if(D[D[e>>2]+(b>>>3&536870908)>>2]>>>b&1){break i}b=D[D[D[e+64>>2]+12>>2]+(b<<2)>>2];d=-1;if((b|0)==-1){break i}d=b-1|0;if((b>>>0)%3|0){break i}d=b+2|0}B[f+92|0]=0;D[f+88>>2]=d;break d}if((b|0)!=D[f+84>>2]){break d}D[f+88>>2]=-1;break d}d=-1;k:{if((b|0)==-1){break k}l:{if((b>>>0)%3|0){b=b-1|0;break l}b=b+2|0;d=-1;if((b|0)==-1){break k}}d=-1;if(D[D[e>>2]+(b>>>3&536870908)>>2]>>>b&1){break k}b=D[D[D[e+64>>2]+12>>2]+(b<<2)>>2];d=-1;if((b|0)==-1){break k}d=b-1|0;if((b>>>0)%3|0){break k}d=b+2|0}D[f+88>>2]=d}b=D[f+88>>2];if((b|0)!=-1){continue}break}}b=r>>31;d=b+q|0;e=b;b=b+r|0;k=d^e;h=e^(d>>>0<e>>>0?b+1|0:b);n=-1;d=2147483647;b=l>>31;i=b;e=b+o|0;b=b+l|0;b=e>>>0<i>>>0?b+1|0:b;e=e^i;b=b^i;i=b;s=e^-1;b=b^2147483647;m=g;m:{n:{if(!D[a+28>>2]){if((b|0)==(h|0)&k>>>0>s>>>0|b>>>0<h>>>0){break m}b=h+i|0;a=e+k|0;b=a>>>0<e>>>0?b+1|0:b;e=a;a=b;b=g>>31;d=b+j|0;h=g;g=b;b=h+b|0;b=d>>>0<g>>>0?b+1|0:b;h=d^g;d=h+e|0;g=b^g;b=d;g=g^2147483647;a=(g|0)==(a|0)&(h^-1)>>>0<e>>>0|a>>>0>g>>>0;g=!(a&0);a=a?-1:b;if(g&(a|0)<=536870912|(a|0)<536870912){break m}b=0;a=a>>>29|0;break n}o:{if((b|0)==(h|0)&k>>>0>s>>>0|b>>>0<h>>>0){break o}b=h+i|0;a=e+k|0;b=a>>>0<e>>>0?b+1|0:b;e=b;h=g;b=g>>31;g=b+j|0;i=h;h=b;b=i+b|0;b=g>>>0<h>>>0?b+1|0:b;g=g^h;b=b^h;h=b^2147483647;if((h|0)==(e|0)&(g^-1)>>>0<a>>>0|e>>>0>h>>>0){break o}b=b+e|0;a=a+g|0;b=a>>>0<g>>>0?b+1|0:b;n=a;d=b;if(!b&a>>>0<536870913){break m}}b=d>>>29|0;a=(d&536870911)<<3|n>>>29}j=bi(j,m,a,b);o=bi(o,l,a,b);q=bi(q,r,a,b)}D[c+8>>2]=j;D[c+4>>2]=o;D[c>>2]=q;$=f+96|0;return}ua();T()}ua();T()}ua();T()}function Cb(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=K(0),k=0;a:{b:{if(!d){break b}c:{d:{switch(D[a+28>>2]-1|0){case 0:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}C[(g<<1)+d>>1]=B[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 1:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}C[(g<<1)+d>>1]=E[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 2:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}C[(g<<1)+d>>1]=F[b>>1];b=b+2|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 3:e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=C[b>>1];if((e|0)<0){break b}C[(g<<1)+d>>1]=e;b=b+2|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}h=1;if((c|0)>(e|0)){break c}break b;case 4:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b>>2];if(e-32768>>>0<4294901760){break a}C[(g<<1)+d>>1]=e;b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 5:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b>>2];if(e>>>0>32767){break a}C[(g<<1)+d>>1]=e;b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 6:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}i=D[b>>2];e=D[b+4>>2]-(i>>>0<32768)|0;if((e|0)==-1&i-32768>>>0<4294901760|(e|0)!=-1){break a}C[(g<<1)+d>>1]=i;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 7:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b+4>>2];i=D[b>>2];if(!e&i>>>0>32767|e){break a}C[(g<<1)+d>>1]=i;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 8:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}i=(g<<1)+d|0;j=H[b>>2];e:{if(K(L(j))<K(2147483648)){e=~~j;break e}e=-2147483648}C[i>>1]=e;b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 9:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}i=(g<<1)+d|0;k=I[b>>3];f:{if(L(k)<2147483648){e=~~k;break f}e=-2147483648}C[i>>1]=e;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 10:break d;default:break b}}h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}C[(g<<1)+d>>1]=E[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)<=(e|0)){break b}}pa((e<<1)+d|0,0,c-e<<1)}return h}return 0}function Bb(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=K(0),k=0;a:{b:{if(!d){break b}c:{d:{switch(D[a+28>>2]-1|0){case 0:e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=B[b|0];if((e|0)<0){break b}C[(g<<1)+d>>1]=e&255;b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}h=1;if((c|0)>(e|0)){break c}break b;case 1:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}C[(g<<1)+d>>1]=E[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 2:e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=C[b>>1];if((e|0)<0){break b}C[(g<<1)+d>>1]=e;b=b+2|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}h=1;if((c|0)>(e|0)){break c}break b;case 3:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}C[(g<<1)+d>>1]=F[b>>1];b=b+2|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 4:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b>>2];if(e>>>0>65535){break a}C[(g<<1)+d>>1]=e;b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 5:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b>>2];if(e>>>0>65535){break a}C[(g<<1)+d>>1]=e;b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 6:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b+4>>2];i=D[b>>2];if(!e&i>>>0>65535|e){break a}C[(g<<1)+d>>1]=i;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 7:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b+4>>2];i=D[b>>2];if(!e&i>>>0>65535|e){break a}C[(g<<1)+d>>1]=i;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 8:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}i=(g<<1)+d|0;j=H[b>>2];e:{if(j<K(4294967296)&j>=K(0)){e=~~j>>>0;break e}e=0}C[i>>1]=e;b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 9:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}i=(g<<1)+d|0;k=I[b>>3];f:{if(k<4294967296&k>=0){e=~~k>>>0;break f}e=0}C[i>>1]=e;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 10:break d;default:break b}}h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}C[(g<<1)+d>>1]=E[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)<=(e|0)){break b}}pa((e<<1)+d|0,0,c-e<<1)}return h}return 0}function gc(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0;e=$-48|0;$=e;d=F[5069]|F[5070]<<16;f=F[5067]|F[5068]<<16;C[e+38>>1]=f;C[e+40>>1]=f>>>16;C[e+42>>1]=d;C[e+44>>1]=d>>>16;d=D[2533];D[e+32>>2]=D[2532];D[e+36>>2]=d;d=D[2531];D[e+24>>2]=D[2530];D[e+28>>2]=d;d=D[2529];D[e+16>>2]=D[2528];D[e+20>>2]=d;f=D[b+12>>2];d=D[b+20>>2];g=D[b+16>>2];h=g+5|0;d=h>>>0<5?d+1|0:d;a:{b:{if(h>>>0>G[b+8>>2]&(d|0)>=(f|0)|(d|0)>(f|0)){b=za(e+16|0);if(b>>>0>=4294967280){break a}c:{d:{if(b>>>0>=11){d=b+16&-16;c=na(d);D[e+8>>2]=d|-2147483648;D[e>>2]=c;D[e+4>>2]=b;break d}B[e+11|0]=b;c=e;if(!b){break c}}oa(c,e+16|0,b)}B[b+c|0]=0;D[a>>2]=-2;a=a+4|0;if(B[e+11|0]>=0){b=D[e+4>>2];D[a>>2]=D[e>>2];D[a+4>>2]=b;D[a+8>>2]=D[e+8>>2];break b}b=a;a=D[e>>2];ta(b,a,D[e+4>>2]);ma(a);break b}d=g+D[b>>2]|0;f=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);B[c|0]=f;B[c+1|0]=f>>>8;B[c+2|0]=f>>>16;B[c+3|0]=f>>>24;B[c+4|0]=E[d+4|0];d=D[b+20>>2];f=D[b+16>>2]+5|0;d=f>>>0<5?d+1|0:d;D[b+16>>2]=f;D[b+20>>2]=d;if(va(c,1394,5)){b=na(32);B[b+16|0]=E[1638];c=E[1634]|E[1635]<<8|(E[1636]<<16|E[1637]<<24);d=E[1630]|E[1631]<<8|(E[1632]<<16|E[1633]<<24);B[b+8|0]=d;B[b+9|0]=d>>>8;B[b+10|0]=d>>>16;B[b+11|0]=d>>>24;B[b+12|0]=c;B[b+13|0]=c>>>8;B[b+14|0]=c>>>16;B[b+15|0]=c>>>24;c=E[1626]|E[1627]<<8|(E[1628]<<16|E[1629]<<24);d=E[1622]|E[1623]<<8|(E[1624]<<16|E[1625]<<24);B[b|0]=d;B[b+1|0]=d>>>8;B[b+2|0]=d>>>16;B[b+3|0]=d>>>24;B[b+4|0]=c;B[b+5|0]=c>>>8;B[b+6|0]=c>>>16;B[b+7|0]=c>>>24;B[b+17|0]=0;D[a>>2]=-1;ta(a+4|0,b,17);ma(b);break b}g=D[b+12>>2];if((g|0)<=(d|0)&G[b+8>>2]<=f>>>0|(d|0)>(g|0)){b=za(e+16|0);if(b>>>0>=4294967280){break a}e:{f:{if(b>>>0>=11){d=b+16&-16;c=na(d);D[e+8>>2]=d|-2147483648;D[e>>2]=c;D[e+4>>2]=b;break f}B[e+11|0]=b;c=e;if(!b){break e}}oa(c,e+16|0,b)}B[b+c|0]=0;D[a>>2]=-2;a=a+4|0;if(B[e+11|0]>=0){b=D[e+4>>2];D[a>>2]=D[e>>2];D[a+4>>2]=b;D[a+8>>2]=D[e+8>>2];break b}b=a;a=D[e>>2];ta(b,a,D[e+4>>2]);ma(a);break b}B[c+5|0]=E[f+D[b>>2]|0];d=D[b+20>>2];f=D[b+16>>2]+1|0;d=f?d:d+1|0;D[b+16>>2]=f;D[b+20>>2]=d;g=D[b+12>>2];if((g|0)<=(d|0)&G[b+8>>2]<=f>>>0|(d|0)>(g|0)){b=za(e+16|0);if(b>>>0>=4294967280){break a}g:{h:{if(b>>>0>=11){d=b+16&-16;c=na(d);D[e+8>>2]=d|-2147483648;D[e>>2]=c;D[e+4>>2]=b;break h}B[e+11|0]=b;c=e;if(!b){break g}}oa(c,e+16|0,b)}B[b+c|0]=0;D[a>>2]=-2;a=a+4|0;if(B[e+11|0]>=0){b=D[e+4>>2];D[a>>2]=D[e>>2];D[a+4>>2]=b;D[a+8>>2]=D[e+8>>2];break b}b=a;a=D[e>>2];ta(b,a,D[e+4>>2]);ma(a);break b}B[c+6|0]=E[f+D[b>>2]|0];d=D[b+20>>2];f=D[b+16>>2]+1|0;d=f?d:d+1|0;D[b+16>>2]=f;D[b+20>>2]=d;g=D[b+12>>2];if((g|0)<=(d|0)&G[b+8>>2]<=f>>>0|(d|0)>(g|0)){b=za(e+16|0);if(b>>>0>=4294967280){break a}i:{j:{if(b>>>0>=11){d=b+16&-16;c=na(d);D[e+8>>2]=d|-2147483648;D[e>>2]=c;D[e+4>>2]=b;break j}B[e+11|0]=b;c=e;if(!b){break i}}oa(c,e+16|0,b)}B[b+c|0]=0;D[a>>2]=-2;a=a+4|0;if(B[e+11|0]>=0){b=D[e+4>>2];D[a>>2]=D[e>>2];D[a+4>>2]=b;D[a+8>>2]=D[e+8>>2];break b}b=a;a=D[e>>2];ta(b,a,D[e+4>>2]);ma(a);break b}B[c+7|0]=E[f+D[b>>2]|0];d=D[b+20>>2];f=D[b+16>>2]+1|0;d=f?d:d+1|0;D[b+16>>2]=f;D[b+20>>2]=d;g=D[b+12>>2];if((g|0)<=(d|0)&G[b+8>>2]<=f>>>0|(d|0)>(g|0)){b=Gb(e,e+16|0);D[a>>2]=-2;a=a+4|0;if(B[b+11|0]>=0){b=D[e+4>>2];D[a>>2]=D[e>>2];D[a+4>>2]=b;D[a+8>>2]=D[e+8>>2];break b}ta(a,D[b>>2],D[b+4>>2]);if(B[b+11|0]>=0){break b}ma(D[b>>2]);break b}B[c+8|0]=E[f+D[b>>2]|0];d=D[b+20>>2];f=d;i=D[b+16>>2];g=i+1|0;d=g?d:d+1|0;D[b+16>>2]=g;D[b+20>>2]=d;h=D[b+12>>2];d=f;f=i+3|0;d=f>>>0<3?d+1|0:d;if(f>>>0>G[b+8>>2]&(d|0)>=(h|0)|(d|0)>(h|0)){b=Gb(e,e+16|0);D[a>>2]=-2;a=a+4|0;if(B[b+11|0]>=0){b=D[e+4>>2];D[a>>2]=D[e>>2];D[a+4>>2]=b;D[a+8>>2]=D[e+8>>2];break b}ta(a,D[b>>2],D[b+4>>2]);if(B[b+11|0]>=0){break b}ma(D[b>>2]);break b}f=c;c=g+D[b>>2]|0;C[f+10>>1]=E[c|0]|E[c+1|0]<<8;d=D[b+20>>2];c=D[b+16>>2]+2|0;d=c>>>0<2?d+1|0:d;D[b+16>>2]=c;D[b+20>>2]=d;D[a+8>>2]=0;D[a+12>>2]=0;D[a>>2]=0;D[a+4>>2]=0}$=e+48|0;return}Aa();T()}function Ab(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=K(0),k=0;a:{b:{if(!d){break b}c:{d:{switch(D[a+28>>2]-1|0){case 0:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=B[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 1:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=E[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 2:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=C[b>>1];b=b+2|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 3:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=F[b>>1];b=b+2|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 4:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=D[b>>2];b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 5:e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b>>2];if((e|0)<0){break b}D[(g<<2)+d>>2]=e;b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}h=1;if((c|0)>(e|0)){break c}break b;case 6:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b>>2];if((D[b+4>>2]-(e>>>0<2147483648)|0)!=-1){break a}D[(g<<2)+d>>2]=e;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 7:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b+4>>2];i=D[b>>2];if(!e&i>>>0>2147483647|e){break a}D[(g<<2)+d>>2]=i;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 8:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}i=(g<<2)+d|0;j=H[b>>2];e:{if(K(L(j))<K(2147483648)){e=~~j;break e}e=-2147483648}D[i>>2]=e;b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 9:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}i=(g<<2)+d|0;k=I[b>>3];f:{if(L(k)<2147483648){e=~~k;break f}e=-2147483648}D[i>>2]=e;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 10:break d;default:break b}}h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=E[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)<=(e|0)){break b}}pa((e<<2)+d|0,0,c-e<<2)}return h}return 0}function zb(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=K(0),k=0;a:{b:{if(!d){break b}c:{d:{switch(D[a+28>>2]-1|0){case 0:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=B[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 1:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=E[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 2:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=C[b>>1];b=b+2|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 3:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=F[b>>1];b=b+2|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 4:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=D[b>>2];b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 5:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=D[b>>2];b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 6:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b>>2];if(D[b+4>>2]){break a}D[(g<<2)+d>>2]=e;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 7:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}e=D[b>>2];if(D[b+4>>2]){break a}D[(g<<2)+d>>2]=e;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 8:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}i=(g<<2)+d|0;j=H[b>>2];e:{if(j<K(4294967296)&j>=K(0)){e=~~j>>>0;break e}e=0}D[i>>2]=e;b=b+4|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 9:h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}i=(g<<2)+d|0;k=I[b>>3];f:{if(k<4294967296&k>=0){e=~~k>>>0;break f}e=0}D[i>>2]=e;b=b+8|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)>(e|0)){break c}break b;case 10:break d;default:break b}}h=1;e=B[a+24|0];if((((c|0)<(e|0)?c:e)|0)>0){e=D[a>>2];f=D[e>>2];b=D[a+48>>2]+ai(D[a+40>>2],D[a+44>>2],b,0)|0;b=f+b|0;f=D[e+4>>2];while(1){if(b>>>0>=f>>>0){break a}D[(g<<2)+d>>2]=E[b|0];b=b+1|0;g=g+1|0;e=B[a+24|0];if((g|0)<(((c|0)<(e|0)?c:e)|0)){continue}break}}if((c|0)<=(e|0)){break b}}pa((e<<2)+d|0,0,c-e<<2)}return h}return 0}function eh(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=K(0),f=0,g=0,h=0,i=0,j=0,k=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;if(D[c>>2]==D[c+4>>2]){g=D[d+80>>2];v=$-16|0;$=v;j=D[a+4>>2];h=D[d+48>>2];d=D[D[d>>2]>>2];i=B[b+24|0];c=v+8|0;D[c>>2]=1065353216;u=c;H[c>>2]=K(-1<<j^-1)/H[a+20>>2];w=na((i|0)!=(i&1073741823)?-1:i<<2);a:{if(!g|(i|0)<=0){break a}s=d+h|0;y=D[b>>2];c=D[b+48>>2];z=D[b+44>>2];x=D[b+40>>2];if(!E[b+84|0]){n=D[b+68>>2];t=i&-2;j=i&1;b=0;while(1){f=D[y>>2];d=ai(x,z,D[n+(o<<2)>>2],0)+c|0;p=oa(w,f+d|0,x);k=H[u>>2];l=D[a+8>>2];d=0;m=0;if((i|0)!=1){while(1){f=s+(b<<2)|0;q=d<<2;e=K(P(K(K(k*K(H[q+p>>2]-H[l+q>>2]))+K(.5))));b:{if(K(L(e))<K(2147483648)){h=~~e;break b}h=-2147483648}D[f>>2]=h;h=q|4;e=K(P(K(K(k*K(H[h+p>>2]-H[l+h>>2]))+K(.5))));c:{if(K(L(e))<K(2147483648)){h=~~e;break c}h=-2147483648}D[f+4>>2]=h;d=d+2|0;b=b+2|0;m=m+2|0;if((t|0)!=(m|0)){continue}break}}if(j){f=s+(b<<2)|0;d=d<<2;e=K(P(K(K(k*K(H[d+p>>2]-H[d+l>>2]))+K(.5))));d:{if(K(L(e))<K(2147483648)){d=~~e;break d}d=-2147483648}D[f>>2]=d;b=b+1|0}o=o+1|0;if((g|0)!=(o|0)){continue}break}break a}n=i&-2;t=i&1;b=0;while(1){h=D[y>>2];d=ai(x,z,o,f)+c|0;p=oa(w,h+d|0,x);k=H[u>>2];l=D[a+8>>2];d=0;m=0;if((i|0)!=1){while(1){h=s+(b<<2)|0;q=d<<2;e=K(P(K(K(k*K(H[q+p>>2]-H[l+q>>2]))+K(.5))));e:{if(K(L(e))<K(2147483648)){j=~~e;break e}j=-2147483648}D[h>>2]=j;j=q|4;e=K(P(K(K(k*K(H[j+p>>2]-H[l+j>>2]))+K(.5))));f:{if(K(L(e))<K(2147483648)){j=~~e;break f}j=-2147483648}D[h+4>>2]=j;d=d+2|0;b=b+2|0;m=m+2|0;if((n|0)!=(m|0)){continue}break}}if(t){h=s+(b<<2)|0;d=d<<2;e=K(P(K(K(k*K(H[d+p>>2]-H[d+l>>2]))+K(.5))));g:{if(K(L(e))<K(2147483648)){d=~~e;break g}d=-2147483648}D[h>>2]=d;b=b+1|0}d=o+1|0;f=d?f:f+1|0;o=d;if((g|0)!=(d|0)|f){continue}break}}ma(w);$=v+16|0;return 1}v=$-16|0;$=v;u=D[a+4>>2];g=D[d+48>>2];f=D[D[d>>2]>>2];r=B[b+24|0];d=v+8|0;D[d>>2]=1065353216;h=d;H[d>>2]=K(-1<<u^-1)/H[a+20>>2];w=na((r|0)!=(r&1073741823)?-1:r<<2);y=D[c>>2];c=D[c+4>>2]-y|0;h:{if(!c|(r|0)<=0){break h}s=f+g|0;z=D[b>>2];d=D[b+48>>2];x=D[b+44>>2];o=D[b+40>>2];c=c>>2;q=c>>>0>1?c:1;if(E[b+84|0]){j=r&-2;u=r&1;b=0;while(1){f=D[z>>2];c=ai(o,x,D[y+(m<<2)>>2],0)+d|0;l=oa(w,f+c|0,o);k=H[h>>2];n=D[a+8>>2];c=0;i=0;if((r|0)!=1){while(1){f=s+(b<<2)|0;t=c<<2;e=K(P(K(K(k*K(H[t+l>>2]-H[n+t>>2]))+K(.5))));i:{if(K(L(e))<K(2147483648)){g=~~e;break i}g=-2147483648}D[f>>2]=g;g=t|4;e=K(P(K(K(k*K(H[g+l>>2]-H[n+g>>2]))+K(.5))));j:{if(K(L(e))<K(2147483648)){g=~~e;break j}g=-2147483648}D[f+4>>2]=g;c=c+2|0;b=b+2|0;i=i+2|0;if((j|0)!=(i|0)){continue}break}}if(u){f=s+(b<<2)|0;c=c<<2;e=K(P(K(K(k*K(H[c+l>>2]-H[c+n>>2]))+K(.5))));k:{if(K(L(e))<K(2147483648)){c=~~e;break k}c=-2147483648}D[f>>2]=c;b=b+1|0}m=m+1|0;if((q|0)!=(m|0)){continue}break}break h}t=D[b+68>>2];j=r&-2;u=r&1;b=0;while(1){f=D[z>>2];c=ai(o,x,D[t+(D[y+(m<<2)>>2]<<2)>>2],0)+d|0;p=oa(w,f+c|0,o);k=H[h>>2];l=D[a+8>>2];c=0;i=0;if((r|0)!=1){while(1){f=s+(b<<2)|0;n=c<<2;e=K(P(K(K(k*K(H[n+p>>2]-H[l+n>>2]))+K(.5))));l:{if(K(L(e))<K(2147483648)){g=~~e;break l}g=-2147483648}D[f>>2]=g;g=n|4;e=K(P(K(K(k*K(H[g+p>>2]-H[l+g>>2]))+K(.5))));m:{if(K(L(e))<K(2147483648)){g=~~e;break m}g=-2147483648}D[f+4>>2]=g;c=c+2|0;b=b+2|0;i=i+2|0;if((j|0)!=(i|0)){continue}break}}if(u){f=s+(b<<2)|0;c=c<<2;e=K(P(K(K(k*K(H[c+p>>2]-H[c+l>>2]))+K(.5))));n:{if(K(L(e))<K(2147483648)){c=~~e;break n}c=-2147483648}D[f>>2]=c;b=b+1|0}m=m+1|0;if((q|0)!=(m|0)){continue}break}}ma(w);$=v+16|0;return 1}function nh(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;c=D[a+32>>2];e=D[c+16>>2];d=D[c+12>>2];b=D[c+20>>2];if(G[c+8>>2]>e>>>0&(d|0)>=(b|0)|(b|0)<(d|0)){f=E[e+D[c>>2]|0];d=e+1|0;b=d?b:b+1|0;D[c+16>>2]=d;D[c+20>>2]=b;c=D[a+48>>2];D[a+48>>2]=0;if(c){ba[D[D[c>>2]+4>>2]](c)}a:{b:{c:{d:{switch(f|0){case 0:c=na(384);D[c>>2]=8312;pa(c+4|0,0,80);D[c+96>>2]=0;D[c+100>>2]=0;D[c+92>>2]=-1;D[c+84>>2]=-1;D[c+88>>2]=-1;D[c+104>>2]=0;D[c+108>>2]=0;D[c+112>>2]=0;D[c+116>>2]=0;D[c+120>>2]=0;D[c+124>>2]=0;D[c+128>>2]=0;D[c+132>>2]=0;D[c+136>>2]=0;D[c+140>>2]=0;D[c+144>>2]=0;D[c+148>>2]=0;D[c+156>>2]=0;D[c+160>>2]=0;D[c+152>>2]=1065353216;D[c+164>>2]=0;D[c+168>>2]=0;D[c+172>>2]=0;D[c+176>>2]=0;D[c+180>>2]=0;D[c+184>>2]=0;D[c+188>>2]=0;D[c+192>>2]=0;D[c+196>>2]=0;D[c+200>>2]=0;D[c+204>>2]=0;D[c+208>>2]=0;D[c+212>>2]=-1;D[c+216>>2]=0;D[c+220>>2]=0;D[c+224>>2]=0;b=c+232|0;C[b+38>>1]=0;D[b>>2]=0;D[b+8>>2]=0;D[b+12>>2]=0;D[b+16>>2]=0;D[b+20>>2]=0;D[b+24>>2]=0;D[b+28>>2]=0;B[b+29|0]=0;B[b+30|0]=0;B[b+31|0]=0;B[b+32|0]=0;B[b+33|0]=0;B[b+34|0]=0;B[b+35|0]=0;B[b+36|0]=0;b=c+272|0;C[b+38>>1]=0;D[b>>2]=0;D[b+8>>2]=0;D[b+12>>2]=0;D[b+16>>2]=0;D[b+20>>2]=0;D[b+24>>2]=0;D[b+28>>2]=0;B[b+29|0]=0;B[b+30|0]=0;B[b+31|0]=0;B[b+32|0]=0;B[b+33|0]=0;B[b+34|0]=0;B[b+35|0]=0;B[b+36|0]=0;b=c+312|0;D[b>>2]=0;D[b+4>>2]=0;B[b+5|0]=0;B[b+6|0]=0;B[b+7|0]=0;B[b+8|0]=0;B[b+9|0]=0;B[b+10|0]=0;B[b+11|0]=0;B[b+12|0]=0;b=c+328|0;C[b+38>>1]=0;D[b>>2]=0;D[b+8>>2]=0;D[b+12>>2]=0;D[b+16>>2]=0;D[b+20>>2]=0;D[b+24>>2]=0;D[b+28>>2]=0;B[b+29|0]=0;B[b+30|0]=0;B[b+31|0]=0;B[b+32|0]=0;B[b+33|0]=0;B[b+34|0]=0;B[b+35|0]=0;B[b+36|0]=0;D[c+376>>2]=0;D[c+368>>2]=0;D[c+372>>2]=0;break c;case 2:break d;default:break b}}c=na(440);D[c>>2]=8364;pa(c+4|0,0,80);D[c+96>>2]=0;D[c+100>>2]=0;D[c+92>>2]=-1;D[c+84>>2]=-1;D[c+88>>2]=-1;D[c+104>>2]=0;D[c+108>>2]=0;D[c+112>>2]=0;D[c+116>>2]=0;D[c+120>>2]=0;D[c+124>>2]=0;D[c+128>>2]=0;D[c+132>>2]=0;D[c+136>>2]=0;D[c+140>>2]=0;D[c+144>>2]=0;D[c+148>>2]=0;D[c+156>>2]=0;D[c+160>>2]=0;D[c+152>>2]=1065353216;D[c+164>>2]=0;D[c+168>>2]=0;D[c+172>>2]=0;D[c+176>>2]=0;D[c+180>>2]=0;D[c+184>>2]=0;D[c+188>>2]=0;D[c+192>>2]=0;D[c+196>>2]=0;D[c+200>>2]=0;D[c+204>>2]=0;D[c+208>>2]=0;D[c+212>>2]=-1;D[c+216>>2]=0;D[c+220>>2]=0;D[c+224>>2]=0;b=c+232|0;C[b+38>>1]=0;D[b>>2]=0;D[b+8>>2]=0;D[b+12>>2]=0;D[b+16>>2]=0;D[b+20>>2]=0;D[b+24>>2]=0;D[b+28>>2]=0;B[b+29|0]=0;B[b+30|0]=0;B[b+31|0]=0;B[b+32|0]=0;B[b+33|0]=0;B[b+34|0]=0;B[b+35|0]=0;B[b+36|0]=0;b=c+272|0;C[b+38>>1]=0;D[b>>2]=0;D[b+8>>2]=0;D[b+12>>2]=0;D[b+16>>2]=0;D[b+20>>2]=0;D[b+24>>2]=0;D[b+28>>2]=0;B[b+29|0]=0;B[b+30|0]=0;B[b+31|0]=0;B[b+32|0]=0;B[b+33|0]=0;B[b+34|0]=0;B[b+35|0]=0;B[b+36|0]=0;b=c+312|0;D[b>>2]=0;D[b+4>>2]=0;B[b+5|0]=0;B[b+6|0]=0;B[b+7|0]=0;B[b+8|0]=0;B[b+9|0]=0;B[b+10|0]=0;B[b+11|0]=0;B[b+12|0]=0;b=c+328|0;C[b+38>>1]=0;D[b>>2]=0;D[b+8>>2]=0;D[b+12>>2]=0;D[b+16>>2]=0;D[b+20>>2]=0;D[b+24>>2]=0;D[b+28>>2]=0;B[b+29|0]=0;B[b+30|0]=0;B[b+31|0]=0;B[b+32|0]=0;B[b+33|0]=0;B[b+34|0]=0;B[b+35|0]=0;B[b+36|0]=0;D[c+392>>2]=0;D[c+396>>2]=0;D[c+384>>2]=0;D[c+388>>2]=0;D[c+376>>2]=0;D[c+380>>2]=0;D[c+368>>2]=0;D[c+372>>2]=0;D[c+416>>2]=0;D[c+420>>2]=0;D[c+408>>2]=2;D[c+412>>2]=7;D[c+400>>2]=-1;D[c+404>>2]=-1;D[c+424>>2]=0;D[c+428>>2]=0;D[c+432>>2]=0;D[c+436>>2]=0}b=D[a+48>>2];D[a+48>>2]=c;if(!b){break a}ba[D[D[b>>2]+4>>2]](b)}c=D[a+48>>2];if(c){break a}return 0}a=ba[D[D[c>>2]+8>>2]](c,a)|0}else{a=0}return a|0}function oe(a){a=a|0;var 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;f=$-16|0;$=f;g=1;n=ba[D[D[a>>2]+24>>2]](a)|0;a:{if((n|0)<=0){g=0;break a}r=a+48|0;while(1){b:{c:{if(!D[(ba[D[D[a>>2]+28>>2]](a)|0)+40>>2]){break c}p=i<<2;b=D[p+D[a+36>>2]>>2];d=D[b+8>>2];e=eb(b);if(!e){break c}j=D[(ba[D[D[a>>2]+28>>2]](a)|0)+40>>2];D[f+12>>2]=D[d+56>>2];b=na(32);D[f>>2]=b;D[f+4>>2]=24;D[f+8>>2]=-2147483616;B[b+24|0]=0;d=E[1308]|E[1309]<<8|(E[1310]<<16|E[1311]<<24);c=E[1304]|E[1305]<<8|(E[1306]<<16|E[1307]<<24);B[b+16|0]=c;B[b+17|0]=c>>>8;B[b+18|0]=c>>>16;B[b+19|0]=c>>>24;B[b+20|0]=d;B[b+21|0]=d>>>8;B[b+22|0]=d>>>16;B[b+23|0]=d>>>24;d=E[1300]|E[1301]<<8|(E[1302]<<16|E[1303]<<24);c=E[1296]|E[1297]<<8|(E[1298]<<16|E[1299]<<24);B[b+8|0]=c;B[b+9|0]=c>>>8;B[b+10|0]=c>>>16;B[b+11|0]=c>>>24;B[b+12|0]=d;B[b+13|0]=d>>>8;B[b+14|0]=d>>>16;B[b+15|0]=d>>>24;d=E[1292]|E[1293]<<8|(E[1294]<<16|E[1295]<<24);c=E[1288]|E[1289]<<8|(E[1290]<<16|E[1291]<<24);B[b|0]=c;B[b+1|0]=c>>>8;B[b+2|0]=c>>>16;B[b+3|0]=c>>>24;B[b+4|0]=d;B[b+5|0]=d>>>8;B[b+6|0]=d>>>16;B[b+7|0]=d>>>24;d=j+16|0;c=D[d>>2];d:{e:{if(!c){break e}k=D[f+12>>2];b=d;while(1){h=(k|0)>D[c+16>>2];b=h?b:c;c=D[(h<<2)+c>>2];if(c){continue}break}if((b|0)==(d|0)|(k|0)<D[b+16>>2]){break e}c=D[b+24>>2];if(!c){break e}d=E[f+11|0];h=d<<24>>24<0;k=h?D[f>>2]:f;d=h?D[f+4>>2]:d;h=b+20|0;while(1){b=E[c+27|0];l=b<<24>>24<0;b=l?D[c+20>>2]:b;q=b>>>0<d>>>0;f:{g:{o=q?b:d;h:{if(o){m=c+16|0;l=l?D[m>>2]:m;m=va(k,l,o);i:{if(!m){if(b>>>0<=d>>>0){break i}break f}if((m|0)<0){break f}}b=va(l,k,o);if(!b){break h}if((b|0)<0){break g}b=dc(h,f);break d}if(b>>>0>d>>>0){break f}}if(q){break g}b=dc(h,f);break d}c=c+4|0}c=D[c>>2];if(c){continue}break}}b=dc(j,f)}if(B[f+11|0]<0){ma(D[f>>2])}if(!b){break c}c=D[D[p+D[a+36>>2]>>2]+8>>2];if(!D[c+64>>2]){b=na(32);D[b+16>>2]=0;D[b+20>>2]=0;D[b+8>>2]=0;D[b>>2]=0;D[b+4>>2]=0;D[b+24>>2]=0;D[b+28>>2]=0;d=D[c+64>>2];D[c+64>>2]=b;if(d){b=D[d>>2];if(b){D[d+4>>2]=b;ma(b)}ma(d);b=D[c+64>>2]}D[c>>2]=b;d=D[b+20>>2];D[c+8>>2]=D[b+16>>2];D[c+12>>2]=d;d=D[b+24>>2];b=D[b+28>>2];D[c+48>>2]=0;D[c+52>>2]=0;D[c+40>>2]=0;D[c+44>>2]=0;D[c+16>>2]=d;D[c+20>>2]=b}j:{B[c+24|0]=E[e+24|0];D[c+28>>2]=D[e+28>>2];B[c+32|0]=E[e+32|0];b=D[e+44>>2];D[c+40>>2]=D[e+40>>2];D[c+44>>2]=b;b=D[e+52>>2];D[c+48>>2]=D[e+48>>2];D[c+52>>2]=b;D[c+56>>2]=D[e+56>>2];b=D[e+12>>2];D[c+8>>2]=D[e+8>>2];D[c+12>>2]=b;b=D[e+20>>2];D[c+16>>2]=D[e+16>>2];D[c+20>>2]=b;D[c+60>>2]=D[e+60>>2];d=D[e>>2];k:{if(!d){D[c>>2]=0;b=1;break k}g=D[c>>2];b=0;if(!g){break k}b=D[d>>2];jd(g,b,D[d+4>>2]-b|0,0);b=1}if(!b){break j}B[c+84|0]=E[e+84|0];D[c+80>>2]=D[e+80>>2];if((c|0)!=(e|0)){hb(c+68|0,D[e+68>>2],D[e+72>>2])}l:{e=D[e+88>>2];m:{if(e){d=na(40);b=D[e>>2];D[d+16>>2]=0;D[d+8>>2]=0;D[d+12>>2]=0;D[d>>2]=b;g=D[e+12>>2]-D[e+8>>2]|0;if(g){if((g|0)<0){break l}b=na(g);D[d+8>>2]=b;D[d+12>>2]=b;D[d+16>>2]=b+g;j=D[e+8>>2];g=D[e+12>>2]-j|0;if((g|0)>0){b=oa(b,j,g)+g|0}D[d+12>>2]=b}b=D[e+36>>2];D[d+32>>2]=D[e+32>>2];D[d+36>>2]=b;b=D[e+28>>2];D[d+24>>2]=D[e+24>>2];D[d+28>>2]=b;b=D[c+88>>2];D[c+88>>2]=d;if(b){break m}break j}b=D[c+88>>2];D[c+88>>2]=0;if(!b){break j}}d=D[b+8>>2];if(d){D[b+12>>2]=d;ma(d)}ma(b);break j}qa();T()}break b}b=D[D[a+36>>2]+(i<<2)>>2];if(!(ba[D[D[b>>2]+24>>2]](b,r)|0)){break a}}i=i+1|0;g=(n|0)>(i|0);if((i|0)!=(n|0)){continue}break}}$=f+16|0;return(g^-1)&1}function Hd(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;f=$+-64|0;$=f;D[f+56>>2]=0;D[f+48>>2]=0;D[f+52>>2]=0;D[f+40>>2]=0;D[f+44>>2]=0;D[f+32>>2]=0;D[f+36>>2]=0;D[f+24>>2]=0;D[f+28>>2]=0;D[f+16>>2]=0;D[f+20>>2]=0;D[f+8>>2]=0;D[f+12>>2]=0;h=f+8|0;a:{b:{if(!F[b+38>>1]){break b}if(!Ua(1,h+12|0,b)){break b}j=D[h+12>>2];e=D[h>>2];d=D[h+4>>2]-e>>2;c:{if(j>>>0>d>>>0){sa(h,j-d|0);j=D[h+12>>2];break c}if(d>>>0<=j>>>0){break c}D[h+4>>2]=e+(j<<2)}d=1;if(!j){break a}q=D[b+8>>2];n=D[b+12>>2];p=D[h>>2];while(1){e=D[b+20>>2];g=D[b+16>>2];d=0;if((n|0)<=(e|0)&q>>>0<=g>>>0|(e|0)>(n|0)){break a}s=D[b>>2];l=E[s+g|0];d=e;e=g+1|0;d=e?d:d+1|0;k=e;D[b+16>>2]=e;D[b+20>>2]=d;e=l>>>2|0;g=0;d:{e:{f:{g:{t=l&3;switch(t|0){case 3:break g;case 0:break e;default:break f}}e=e+i|0;d=0;if(e>>>0>=j>>>0){break a}pa(p+(i<<2)|0,0,(l&252)+4|0);i=e;break d}while(1){if((d|0)>=(n|0)&k>>>0>=q>>>0|(d|0)>(n|0)){break b}j=E[k+s|0];k=k+1|0;d=k?d:d+1|0;D[b+16>>2]=k;D[b+20>>2]=d;e=j<<(g<<3|6)|e;g=g+1|0;if((t|0)!=(g|0)){continue}break}}D[p+(i<<2)>>2]=e}i=i+1|0;j=D[h+12>>2];if(i>>>0<j>>>0){continue}break}k=h+16|0;q=D[h>>2];e=D[h+16>>2];d=D[h+20>>2]-e|0;h:{if(d>>>0<=4194303){sa(k,1048576-(d>>>2|0)|0);break h}if((d|0)==4194304){break h}D[h+20>>2]=e+4194304}d=h+28|0;i=D[d>>2];e=D[h+32>>2]-i>>3;i:{if(e>>>0<j>>>0){db(d,j-e|0);i=D[d>>2];break i}if(e>>>0>j>>>0){D[h+32>>2]=(j<<3)+i}if(!j){break b}}g=0;h=0;while(1){d=(g<<2)+q|0;n=D[d>>2];l=(g<<3)+i|0;e=h;D[l+4>>2]=e;D[l>>2]=n;d=D[d>>2];h=d+e|0;if(h>>>0>1048576){break b}j:{if(e>>>0>=h>>>0){break j}n=D[k>>2];l=0;p=d&7;if(p){while(1){D[n+(e<<2)>>2]=g;e=e+1|0;l=l+1|0;if((p|0)!=(l|0)){continue}break}}if(d-1>>>0<=6){break j}while(1){d=n+(e<<2)|0;D[d>>2]=g;D[d+28>>2]=g;D[d+24>>2]=g;D[d+20>>2]=g;D[d+16>>2]=g;D[d+12>>2]=g;D[d+8>>2]=g;D[d+4>>2]=g;e=e+8|0;if((h|0)!=(e|0)){continue}break}}g=g+1|0;if((j|0)!=(g|0)){continue}break}m=(h|0)==1048576}d=m}k:{if(!d|(D[f+20>>2]?0:a)){break k}h=0;m=$-16|0;$=m;l:{if(!Ta(1,m+8|0,b)){break l}d=D[b+8>>2];e=D[b+16>>2];g=d-e|0;j=D[m+12>>2];i=d>>>0<e>>>0;d=D[b+20>>2];k=D[b+12>>2]-(i+d|0)|0;i=D[m+8>>2];if((j|0)==(k|0)&g>>>0<i>>>0|j>>>0>k>>>0){break l}d=d+j|0;g=e+i|0;d=g>>>0<e>>>0?d+1|0:d;D[b+16>>2]=g;D[b+20>>2]=d;d=i;if((d|0)<=0){break l}b=e+D[b>>2]|0;D[f+48>>2]=b;e=d-1|0;i=e+b|0;g=E[i|0];m:{if(g>>>0<=63){D[f+52>>2]=e;b=E[i|0]&63;break m}n:{switch((g>>>6|0)-1|0){case 0:if(d>>>0<2){break l}D[f+52>>2]=d-2;b=(b+d|0)-2|0;b=E[b+1|0]<<8&16128|E[b|0];break m;case 1:if(d>>>0<3){break l}D[f+52>>2]=d-3;b=(b+d|0)-3|0;b=E[b+2|0]<<16&4128768|E[b+1|0]<<8|E[b|0];break m;default:break n}}D[f+52>>2]=d-4;b=(b+d|0)-4|0;b=E[b+2|0]<<16|E[b+3|0]<<24&1056964608|E[b+1|0]<<8|E[b|0]}b=b+4194304|0;D[f+56>>2]=b;h=b>>>0<1073741824}$=m+16|0;if(!h){break k}if(!a){o=1;break k}d=D[f+36>>2];e=D[f+48>>2];i=D[f+24>>2];b=D[f+56>>2];while(1){o:{if(b>>>0>4194303){break o}o=D[f+52>>2];while(1){if((o|0)<=0){break o}o=o-1|0;D[f+52>>2]=o;b=E[e+o|0]|b<<8;D[f+56>>2]=b;if(b>>>0<4194304){continue}break}}h=b&1048575;m=D[i+(h<<2)>>2];g=d+(m<<3)|0;b=(J(D[g>>2],b>>>20|0)+h|0)-D[g+4>>2]|0;D[f+56>>2]=b;D[(r<<2)+c>>2]=m;o=1;r=r+1|0;if((r|0)!=(a|0)){continue}break}}a=D[f+36>>2];if(a){D[f+40>>2]=a;ma(a)}a=D[f+24>>2];if(a){D[f+28>>2]=a;ma(a)}a=D[f+8>>2];if(a){D[f+12>>2]=a;ma(a)}$=f- -64|0;return o}function yd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=D[a+4>>2];d=D[a>>2];f=(c-d|0)/144|0;if(f>>>0<b>>>0){d=a;g=b-f|0;c=D[a+8>>2];a=D[a+4>>2];a:{if(g>>>0<=(c-a|0)/144>>>0){if(g){b=J(g,144)+a|0;while(1){D[a>>2]=-1;Vc(a+4|0);D[a+104>>2]=0;D[a+108>>2]=0;B[a+100|0]=1;D[a+112>>2]=0;D[a+116>>2]=0;D[a+120>>2]=0;D[a+124>>2]=0;D[a+128>>2]=0;D[a+132>>2]=0;D[a+136>>2]=0;D[a+140>>2]=0;a=a+144|0;if((b|0)!=(a|0)){continue}break}a=b}D[d+4>>2]=a;break a}b:{c:{d:{b=a;a=D[d>>2];f=(b-a|0)/144|0;h=f+g|0;if(h>>>0<29826162){b=(c-a|0)/144|0;a=b<<1;e=b>>>0<14913080?a>>>0<h>>>0?h:a:29826161;if(e){if(e>>>0>=29826162){break d}c=na(J(e,144))}else{c=0}b=c+J(f,144)|0;h=b+J(g,144)|0;a=b;while(1){D[a>>2]=-1;Vc(a+4|0);D[a+104>>2]=0;D[a+108>>2]=0;B[a+100|0]=1;D[a+112>>2]=0;D[a+116>>2]=0;D[a+120>>2]=0;D[a+124>>2]=0;D[a+128>>2]=0;D[a+132>>2]=0;D[a+136>>2]=0;D[a+140>>2]=0;a=a+144|0;if((h|0)!=(a|0)){continue}break}f=c+J(e,144)|0;a=D[d+4>>2];e=D[d>>2];if((a|0)==(e|0)){break c}while(1){b=b-144|0;a=a-144|0;D[b>>2]=D[a>>2];D[b+4>>2]=D[a+4>>2];D[b+8>>2]=D[a+8>>2];D[b+12>>2]=D[a+12>>2];D[a+12>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;D[b+16>>2]=D[a+16>>2];D[b+20>>2]=D[a+20>>2];D[b+24>>2]=D[a+24>>2];D[a+24>>2]=0;D[a+16>>2]=0;D[a+20>>2]=0;c=E[a+28|0];D[b+40>>2]=0;D[b+32>>2]=0;D[b+36>>2]=0;B[b+28|0]=c;D[b+32>>2]=D[a+32>>2];D[b+36>>2]=D[a+36>>2];D[b+40>>2]=D[a+40>>2];D[a+40>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;D[b+52>>2]=0;D[b+44>>2]=0;D[b+48>>2]=0;D[b+44>>2]=D[a+44>>2];D[b+48>>2]=D[a+48>>2];D[b+52>>2]=D[a+52>>2];D[a+52>>2]=0;D[a+44>>2]=0;D[a+48>>2]=0;c=b- -64|0;D[c>>2]=0;D[b+56>>2]=0;D[b+60>>2]=0;D[b+56>>2]=D[a+56>>2];D[b+60>>2]=D[a+60>>2];g=c;c=a- -64|0;D[g>>2]=D[c>>2];D[c>>2]=0;D[a+56>>2]=0;D[a+60>>2]=0;D[b+68>>2]=D[a+68>>2];c=D[a+72>>2];D[b+84>>2]=0;D[b+76>>2]=0;D[b+80>>2]=0;D[b+72>>2]=c;D[b+76>>2]=D[a+76>>2];D[b+80>>2]=D[a+80>>2];D[b+84>>2]=D[a+84>>2];D[a+84>>2]=0;D[a+76>>2]=0;D[a+80>>2]=0;D[b+96>>2]=0;D[b+88>>2]=0;D[b+92>>2]=0;D[b+88>>2]=D[a+88>>2];D[b+92>>2]=D[a+92>>2];D[b+96>>2]=D[a+96>>2];D[a+96>>2]=0;D[a+88>>2]=0;D[a+92>>2]=0;c=E[a+100|0];D[b+112>>2]=0;D[b+104>>2]=0;D[b+108>>2]=0;B[b+100|0]=c;D[b+104>>2]=D[a+104>>2];D[b+108>>2]=D[a+108>>2];D[b+112>>2]=D[a+112>>2];D[a+112>>2]=0;D[a+104>>2]=0;D[a+108>>2]=0;D[b+124>>2]=0;D[b+116>>2]=0;D[b+120>>2]=0;D[b+116>>2]=D[a+116>>2];D[b+120>>2]=D[a+120>>2];D[b+124>>2]=D[a+124>>2];D[a+124>>2]=0;D[a+116>>2]=0;D[a+120>>2]=0;c=D[a+128>>2];D[b+140>>2]=0;D[b+132>>2]=0;D[b+136>>2]=0;D[b+128>>2]=c;D[b+132>>2]=D[a+132>>2];D[b+136>>2]=D[a+136>>2];D[b+140>>2]=D[a+140>>2];D[a+140>>2]=0;D[a+132>>2]=0;D[a+136>>2]=0;if((a|0)!=(e|0)){continue}break}D[d+8>>2]=f;a=D[d+4>>2];D[d+4>>2]=h;e=D[d>>2];D[d>>2]=b;if((a|0)==(e|0)){break b}while(1){b=D[a-12>>2];if(b){D[a-8>>2]=b;ma(b)}b=D[a-28>>2];if(b){D[a-24>>2]=b;ma(b)}b=D[a-40>>2];if(b){D[a-36>>2]=b;ma(b)}Hb(a-140|0);a=a-144|0;if((e|0)!=(a|0)){continue}break}break b}qa();T()}ra(1326);T()}D[d+8>>2]=f;D[d+4>>2]=h;D[d>>2]=b}if(e){ma(e)}}return}if(b>>>0<f>>>0){d=d+J(b,144)|0;if((d|0)!=(c|0)){while(1){b=D[c-12>>2];if(b){D[c-8>>2]=b;ma(b)}b=D[c-28>>2];if(b){D[c-24>>2]=b;ma(b)}b=D[c-40>>2];if(b){D[c-36>>2]=b;ma(b)}Hb(c-140|0);c=c-144|0;if((d|0)!=(c|0)){continue}break}}D[a+4>>2]=d}}function Lb(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,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;e=$-96|0;$=e;d=D[a+16>>2];B[e+92|0]=1;D[e+88>>2]=b;D[e+84>>2]=b;D[e+80>>2]=d;a:{if((b|0)==-1){break a}m=D[a+20>>2];f=D[m>>2];d=D[D[d>>2]+(b<<2)>>2];if(d>>>0>=D[m+4>>2]-f>>2>>>0){break a}d=D[D[a+8>>2]+(D[f+(d<<2)>>2]<<2)>>2];f=D[a+4>>2];if(!E[f+84|0]){d=D[D[f+68>>2]+(d<<2)>>2]}D[e+72>>2]=0;D[e+76>>2]=0;m=e- -64|0;D[m>>2]=0;D[m+4>>2]=0;D[e+56>>2]=0;D[e+60>>2]=0;Ha(f,d,B[f+24|0],e+56|0);d=b+1|0;m=(d>>>0)%3|0?d:b-2|0;h=((b>>>0)%3|0?-1:2)+b|0;b:{c:{while(1){f=m;d=h;d:{if(!D[a+28>>2]){break d}d=b+1|0;f=(d>>>0)%3|0?d:b-2|0;d=b-1|0;if((b>>>0)%3|0){break d}d=b+2|0}if((f|0)==-1){break b}k=D[a+20>>2];b=D[k>>2];f=D[D[D[a+16>>2]>>2]+(f<<2)>>2];if(f>>>0>=D[k+4>>2]-b>>2>>>0){break b}f=D[D[a+8>>2]+(D[(f<<2)+b>>2]<<2)>>2];b=D[a+4>>2];if(!E[b+84|0]){f=D[D[b+68>>2]+(f<<2)>>2]}D[e+48>>2]=0;D[e+52>>2]=0;D[e+40>>2]=0;D[e+44>>2]=0;D[e+32>>2]=0;D[e+36>>2]=0;Ha(b,f,B[b+24|0],e+32|0);if((d|0)==-1){break c}f=D[a+20>>2];b=D[f>>2];d=D[D[D[a+16>>2]>>2]+(d<<2)>>2];if(d>>>0>=D[f+4>>2]-b>>2>>>0){break c}f=D[D[a+8>>2]+(D[b+(d<<2)>>2]<<2)>>2];b=D[a+4>>2];if(!E[b+84|0]){f=D[D[b+68>>2]+(f<<2)>>2]}D[e+24>>2]=0;D[e+28>>2]=0;D[e+16>>2]=0;D[e+20>>2]=0;D[e+8>>2]=0;D[e+12>>2]=0;Ha(b,f,B[b+24|0],e+8|0);d=D[e+8>>2];b=D[e+56>>2];f=d-b|0;k=D[e+60>>2];n=D[e+12>>2]-(k+(b>>>0>d>>>0)|0)|0;i=D[e+40>>2];d=D[e+64>>2];s=i-d|0;t=D[e+68>>2];i=D[e+44>>2]-(t+(d>>>0>i>>>0)|0)|0;u=ai(f,n,s,i);v=j-u|0;g=g-(aa+(j>>>0<u>>>0)|0)|0;w=v;j=D[e+16>>2];u=j-d|0;t=D[e+20>>2]-((d>>>0>j>>>0)+t|0)|0;j=D[e+32>>2];v=j-b|0;k=D[e+36>>2]-((b>>>0>j>>>0)+k|0)|0;d=ai(u,t,v,k);j=w+d|0;b=aa+g|0;b=d>>>0>j>>>0?b+1|0:b;g=b;w=o;p=n;b=D[e+48>>2];d=D[e+72>>2];n=b-d|0;o=D[e+76>>2];x=D[e+52>>2]-(o+(b>>>0<d>>>0)|0)|0;p=ai(f,p,n,x);f=w+p|0;b=aa+l|0;b=f>>>0<p>>>0?b+1|0:b;l=D[e+24>>2];p=l-d|0;d=D[e+28>>2]-((d>>>0>l>>>0)+o|0)|0;l=ai(p,d,v,k);o=f-l|0;l=b-(aa+(f>>>0<l>>>0)|0)|0;b=ai(u,t,n,x);f=q-b|0;b=r-(aa+(b>>>0>q>>>0)|0)|0;r=ai(p,d,s,i);q=r+f|0;b=aa+b|0;b=q>>>0<r>>>0?b+1|0:b;r=b;lc(e+80|0);b=D[e+88>>2];if((b|0)!=-1){continue}break}b=r>>31;f=b+q|0;d=b;b=b+r|0;k=f^d;h=d^(f>>>0<d>>>0?b+1|0:b);n=-1;f=2147483647;b=l>>31;i=b;d=b+o|0;b=b+l|0;b=d>>>0<i>>>0?b+1|0:b;d=d^i;b=b^i;i=b;s=d^-1;b=b^2147483647;m=g;e:{f:{if(!D[a+28>>2]){if((b|0)==(h|0)&k>>>0>s>>>0|b>>>0<h>>>0){break e}b=h+i|0;a=d+k|0;b=a>>>0<d>>>0?b+1|0:b;d=a;a=b;b=g>>31;f=b+j|0;h=g;g=b;b=h+b|0;b=f>>>0<g>>>0?b+1|0:b;h=f^g;f=h+d|0;g=b^g;b=f;g=g^2147483647;a=(g|0)==(a|0)&(h^-1)>>>0<d>>>0|a>>>0>g>>>0;g=!(a&0);a=a?-1:b;if(g&(a|0)<=536870912|(a|0)<536870912){break e}b=0;a=a>>>29|0;break f}g:{if((b|0)==(h|0)&k>>>0>s>>>0|b>>>0<h>>>0){break g}b=h+i|0;a=d+k|0;b=a>>>0<d>>>0?b+1|0:b;d=b;h=g;b=g>>31;g=b+j|0;i=h;h=b;b=i+b|0;b=g>>>0<h>>>0?b+1|0:b;g=g^h;b=b^h;h=b^2147483647;if((h|0)==(d|0)&(g^-1)>>>0<a>>>0|d>>>0>h>>>0){break g}b=b+d|0;a=a+g|0;b=a>>>0<g>>>0?b+1|0:b;n=a;f=b;if(!b&a>>>0<536870913){break e}}b=f>>>29|0;a=(f&536870911)<<3|n>>>29}j=bi(j,m,a,b);o=bi(o,l,a,b);q=bi(q,r,a,b)}D[c+8>>2]=j;D[c+4>>2]=o;D[c>>2]=q;$=e+96|0;return}ua();T()}ua();T()}ua();T()}function Jc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{if((b|0)<0){break a}d=D[a+12>>2];c=D[a+8>>2];if(d-c>>2>>>0<=b>>>0){break a}e=c+(b<<2)|0;f=D[e>>2];i=D[f+60>>2];g=D[f+56>>2];c=e+4|0;b:{if((c|0)!=(d|0)){while(1){h=D[c>>2];D[c>>2]=0;D[e>>2]=h;if(f){ya(f)}e=e+4|0;c=c+4|0;if((c|0)!=(d|0)){f=D[e>>2];continue}break}d=D[a+12>>2];if((e|0)==(d|0)){break b}}while(1){d=d-4|0;c=D[d>>2];D[d>>2]=0;if(c){ya(c)}if((d|0)!=(e|0)){continue}break}}D[a+12>>2]=e;f=D[a+4>>2];c:{if(!f|(i|0)<0){break c}d=D[f+24>>2];c=D[f+28>>2];if((d|0)==(c|0)){break c}while(1){if((i|0)==D[D[d>>2]+24>>2]){e=d+4|0;i=D[f+28>>2];d:{if((e|0)!=(i|0)){while(1){h=D[e>>2];D[e>>2]=0;c=D[d>>2];D[d>>2]=h;if(c){Ca(c+12|0,D[c+16>>2]);Ba(c,D[c+4>>2]);ma(c)}d=d+4|0;e=e+4|0;if((i|0)!=(e|0)){continue}break}e=D[f+28>>2];if((e|0)==(d|0)){break d}}while(1){e=e-4|0;c=D[e>>2];D[e>>2]=0;if(c){Ca(c+12|0,D[c+16>>2]);Ba(c,D[c+4>>2]);ma(c)}if((d|0)!=(e|0)){continue}break}}D[f+28>>2]=d;break c}d=d+4|0;if((c|0)!=(d|0)){continue}break}}e:{if((g|0)>4){break e}f:{e=J(g,12)+a|0;d=D[e+20>>2];c=D[e+24>>2];if((d|0)==(c|0)){break f}while(1){if(D[d>>2]==(b|0)){break f}d=d+4|0;if((c|0)!=(d|0)){continue}break}break e}if((d|0)==(c|0)){break e}f=d+4|0;c=c-f|0;if(c){Pa(d,f,c)}D[e+24>>2]=d+c}e=D[a+20>>2];c=D[a+24>>2]-e|0;g:{if(!c){break g}d=c>>2;f=d>>>0>1?d:1;i=f&1;d=0;if(c>>>0>=8){f=f&-2;c=0;while(1){g=d<<2;h=g+e|0;j=D[h>>2];if((j|0)>(b|0)){D[h>>2]=j-1}g=e+(g|4)|0;h=D[g>>2];if((h|0)>(b|0)){D[g>>2]=h-1}d=d+2|0;c=c+2|0;if((f|0)!=(c|0)){continue}break}}if(!i){break g}d=e+(d<<2)|0;c=D[d>>2];if((c|0)<=(b|0)){break g}D[d>>2]=c-1}e=D[a+32>>2];c=D[a+36>>2]-e|0;h:{if(!c){break h}d=c>>2;f=d>>>0>1?d:1;i=f&1;d=0;if(c>>>0>=8){f=f&-2;c=0;while(1){g=d<<2;h=g+e|0;j=D[h>>2];if((j|0)>(b|0)){D[h>>2]=j-1}g=e+(g|4)|0;h=D[g>>2];if((h|0)>(b|0)){D[g>>2]=h-1}d=d+2|0;c=c+2|0;if((f|0)!=(c|0)){continue}break}}if(!i){break h}d=e+(d<<2)|0;c=D[d>>2];if((c|0)<=(b|0)){break h}D[d>>2]=c-1}e=D[a+44>>2];c=D[a+48>>2]-e|0;i:{if(!c){break i}d=c>>2;f=d>>>0>1?d:1;i=f&1;d=0;if(c>>>0>=8){f=f&-2;c=0;while(1){g=d<<2;h=g+e|0;j=D[h>>2];if((j|0)>(b|0)){D[h>>2]=j-1}g=e+(g|4)|0;h=D[g>>2];if((h|0)>(b|0)){D[g>>2]=h-1}d=d+2|0;c=c+2|0;if((f|0)!=(c|0)){continue}break}}if(!i){break i}d=e+(d<<2)|0;c=D[d>>2];if((c|0)<=(b|0)){break i}D[d>>2]=c-1}e=D[a+56>>2];c=D[a+60>>2]-e|0;j:{if(!c){break j}d=c>>2;f=d>>>0>1?d:1;i=f&1;d=0;if(c>>>0>=8){f=f&-2;c=0;while(1){g=d<<2;h=g+e|0;j=D[h>>2];if((j|0)>(b|0)){D[h>>2]=j-1}g=e+(g|4)|0;h=D[g>>2];if((h|0)>(b|0)){D[g>>2]=h-1}d=d+2|0;c=c+2|0;if((f|0)!=(c|0)){continue}break}}if(!i){break j}d=e+(d<<2)|0;c=D[d>>2];if((c|0)<=(b|0)){break j}D[d>>2]=c-1}c=D[a+72>>2];a=D[a+68>>2];c=c-a|0;if(!c){break a}d=c>>2;e=d>>>0>1?d:1;f=e&1;d=0;if(c>>>0>=8){e=e&-2;c=0;while(1){i=d<<2;g=i+a|0;h=D[g>>2];if((h|0)>(b|0)){D[g>>2]=h-1}i=a+(i|4)|0;g=D[i>>2];if((g|0)>(b|0)){D[i>>2]=g-1}d=d+2|0;c=c+2|0;if((e|0)!=(c|0)){continue}break}}if(!f){break a}c=b;a=a+(d<<2)|0;b=D[a>>2];if((c|0)>=(b|0)){break a}D[a>>2]=b-1}}function ma(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;a:{if(!a){break a}d=a-8|0;b=D[a-4>>2];a=b&-8;f=d+a|0;b:{if(b&1){break b}if(!(b&3)){break a}b=D[d>>2];d=d-b|0;if(d>>>0<G[2884]){break a}a=a+b|0;if(D[2885]!=(d|0)){if(b>>>0<=255){e=D[d+8>>2];b=b>>>3|0;c=D[d+12>>2];if((c|0)==(e|0)){i=11520,j=D[2880]&ei(b),D[i>>2]=j;break b}D[e+12>>2]=c;D[c+8>>2]=e;break b}h=D[d+24>>2];b=D[d+12>>2];c:{if((d|0)!=(b|0)){c=D[d+8>>2];D[c+12>>2]=b;D[b+8>>2]=c;break c}d:{e=d+20|0;c=D[e>>2];if(c){break d}e=d+16|0;c=D[e>>2];if(c){break d}b=0;break c}while(1){g=e;b=c;e=b+20|0;c=D[e>>2];if(c){continue}e=b+16|0;c=D[b+16>>2];if(c){continue}break}D[g>>2]=0}if(!h){break b}e=D[d+28>>2];c=(e<<2)+11824|0;e:{if(D[c>>2]==(d|0)){D[c>>2]=b;if(b){break e}i=11524,j=D[2881]&ei(e),D[i>>2]=j;break b}D[h+(D[h+16>>2]==(d|0)?16:20)>>2]=b;if(!b){break b}}D[b+24>>2]=h;c=D[d+16>>2];if(c){D[b+16>>2]=c;D[c+24>>2]=b}c=D[d+20>>2];if(!c){break b}D[b+20>>2]=c;D[c+24>>2]=b;break b}b=D[f+4>>2];if((b&3)!=3){break b}D[2882]=a;D[f+4>>2]=b&-2;D[d+4>>2]=a|1;D[a+d>>2]=a;return}if(d>>>0>=f>>>0){break a}b=D[f+4>>2];if(!(b&1)){break a}f:{if(!(b&2)){if(D[2886]==(f|0)){D[2886]=d;a=D[2883]+a|0;D[2883]=a;D[d+4>>2]=a|1;if(D[2885]!=(d|0)){break a}D[2882]=0;D[2885]=0;return}if(D[2885]==(f|0)){D[2885]=d;a=D[2882]+a|0;D[2882]=a;D[d+4>>2]=a|1;D[a+d>>2]=a;return}a=(b&-8)+a|0;g:{if(b>>>0<=255){e=D[f+8>>2];b=b>>>3|0;c=D[f+12>>2];if((c|0)==(e|0)){i=11520,j=D[2880]&ei(b),D[i>>2]=j;break g}D[e+12>>2]=c;D[c+8>>2]=e;break g}h=D[f+24>>2];b=D[f+12>>2];h:{if((f|0)!=(b|0)){c=D[f+8>>2];D[c+12>>2]=b;D[b+8>>2]=c;break h}i:{e=f+20|0;c=D[e>>2];if(c){break i}e=f+16|0;c=D[e>>2];if(c){break i}b=0;break h}while(1){g=e;b=c;e=b+20|0;c=D[e>>2];if(c){continue}e=b+16|0;c=D[b+16>>2];if(c){continue}break}D[g>>2]=0}if(!h){break g}e=D[f+28>>2];c=(e<<2)+11824|0;j:{if(D[c>>2]==(f|0)){D[c>>2]=b;if(b){break j}i=11524,j=D[2881]&ei(e),D[i>>2]=j;break g}D[h+(D[h+16>>2]==(f|0)?16:20)>>2]=b;if(!b){break g}}D[b+24>>2]=h;c=D[f+16>>2];if(c){D[b+16>>2]=c;D[c+24>>2]=b}c=D[f+20>>2];if(!c){break g}D[b+20>>2]=c;D[c+24>>2]=b}D[d+4>>2]=a|1;D[a+d>>2]=a;if(D[2885]!=(d|0)){break f}D[2882]=a;return}D[f+4>>2]=b&-2;D[d+4>>2]=a|1;D[a+d>>2]=a}if(a>>>0<=255){a=a>>>3|0;b=(a<<3)+11560|0;c=D[2880];a=1<<a;k:{if(!(c&a)){D[2880]=a|c;a=b;break k}a=D[b+8>>2]}D[b+8>>2]=d;D[a+12>>2]=d;D[d+12>>2]=b;D[d+8>>2]=a;return}e=31;D[d+16>>2]=0;D[d+20>>2]=0;if(a>>>0<=16777215){b=a>>>8|0;g=b+1048320>>>16&8;b=b<<g;e=b+520192>>>16&4;b=b<<e;c=b+245760>>>16&2;b=(b<<c>>>15|0)-(c|(e|g))|0;e=(b<<1|a>>>b+21&1)+28|0}D[d+28>>2]=e;g=(e<<2)+11824|0;l:{m:{c=D[2881];b=1<<e;n:{if(!(c&b)){D[2881]=b|c;D[g>>2]=d;D[d+24>>2]=g;break n}e=a<<((e|0)==31?0:25-(e>>>1|0)|0);b=D[g>>2];while(1){c=b;if((D[b+4>>2]&-8)==(a|0)){break m}b=e>>>29|0;e=e<<1;g=c+(b&4)|0;b=D[g+16>>2];if(b){continue}break}D[g+16>>2]=d;D[d+24>>2]=c}D[d+12>>2]=d;D[d+8>>2]=d;break l}a=D[c+8>>2];D[a+12>>2]=d;D[c+8>>2]=d;D[d+24>>2]=0;D[d+12>>2]=c;D[d+8>>2]=a}a=D[2888]-1|0;D[2888]=a?a:-1}}function sd(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=K(0),l=0,m=0,n=K(0);j=D[c>>2];a:{b:{f=D[b+4>>2];if(!f){break b}g=di(f);c:{if(g>>>0>=2){e=j;if(e>>>0>=f>>>0){e=(j>>>0)%(f>>>0)|0}c=D[D[b>>2]+(e<<2)>>2];if(!c){break b}if(g>>>0<=1){break c}while(1){c=D[c>>2];if(!c){break b}g=D[c+4>>2];if((g|0)!=(j|0)){if(f>>>0<=g>>>0){g=(g>>>0)%(f>>>0)|0}if((e|0)!=(g|0)){break b}}if(D[c+8>>2]!=(j|0)){continue}break}b=0;break a}e=f-1&j;c=D[D[b>>2]+(e<<2)>>2];if(!c){break b}}g=f-1|0;while(1){c=D[c>>2];if(!c){break b}h=D[c+4>>2];if((h|0)!=(j|0)&(g&h)!=(e|0)){break b}if(D[c+8>>2]!=(j|0)){continue}break}b=0;break a}c=na(16);d=D[D[d>>2]>>2];D[c+12>>2]=0;D[c+8>>2]=d;D[c+4>>2]=j;D[c>>2]=0;n=K(D[b+12>>2]+1>>>0);k=H[b+16>>2];d:{if(n>K(k*K(f>>>0))?0:f){break d}g=(f-1&f)!=0|f>>>0<3|f<<1;e=2;k=K(Q(K(n/k)));e:{if(k<K(4294967296)&k>=K(0)){d=~~k>>>0;break e}d=0}d=d>>>0>g>>>0?d:g;f:{if((d|0)==1){break f}if(!(d&d-1)){e=d;break f}e=Ic(d);f=D[b+4>>2]}g:{if(e>>>0<=f>>>0){if(e>>>0>=f>>>0){break g}g=f>>>0<3;k=K(Q(K(K(G[b+12>>2])/H[b+16>>2])));h:{if(k<K(4294967296)&k>=K(0)){d=~~k>>>0;break h}d=0}i:{j:{if(g){break j}if(di(f)>>>0>1){break j}d=d>>>0<2?d:1<<32-M(d-1|0);break i}d=Ic(d)}e=d>>>0>e>>>0?d:e;if(e>>>0>=f>>>0){break g}}f=0;h=e;k:{l:{m:{n:{if(e){if(h>>>0>=1073741824){break n}e=na(h<<2);d=D[b>>2];D[b>>2]=e;if(d){ma(d)}D[b+4>>2]=h;e=0;if(h-1>>>0>=3){g=h&-4;while(1){d=e<<2;D[d+D[b>>2]>>2]=0;D[D[b>>2]+(d|4)>>2]=0;D[D[b>>2]+(d|8)>>2]=0;D[D[b>>2]+(d|12)>>2]=0;e=e+4|0;f=f+4|0;if((g|0)!=(f|0)){continue}break}}d=h&3;if(d){while(1){D[D[b>>2]+(e<<2)>>2]=0;e=e+1|0;i=i+1|0;if((d|0)!=(i|0)){continue}break}}f=D[b+8>>2];if(!f){break k}d=b+8|0;g=D[f+4>>2];e=di(h);if(e>>>0<2){break m}g=g>>>0>=h>>>0?(g>>>0)%(h>>>0)|0:g;D[D[b>>2]+(g<<2)>>2]=d;d=D[f>>2];if(!d){break k}if(e>>>0<=1){break l}while(1){i=D[d+4>>2];if(h>>>0<=i>>>0){i=(i>>>0)%(h>>>0)|0}o:{if((g|0)==(i|0)){f=d;break o}e=d;l=i<<2;m=l+D[b>>2]|0;if(!D[m>>2]){D[m>>2]=f;f=d;g=i;break o}while(1){i=e;e=D[e>>2];if(D[d+8>>2]==D[e+8>>2]?e:0){continue}break}D[f>>2]=e;D[i>>2]=D[D[l+D[b>>2]>>2]>>2];D[D[l+D[b>>2]>>2]>>2]=d}d=D[f>>2];if(d){continue}break}break k}d=D[b>>2];D[b>>2]=0;if(d){ma(d)}D[b+4>>2]=0;break k}ra(1326);T()}g=h-1&g;D[D[b>>2]+(g<<2)>>2]=d;d=D[f>>2];if(!d){break k}}l=h-1|0;while(1){h=l&D[d+4>>2];p:{if((h|0)==(g|0)){f=d;break p}e=d;i=h<<2;m=i+D[b>>2]|0;if(D[m>>2]){while(1){h=e;e=D[e>>2];if(D[d+8>>2]==D[e+8>>2]?e:0){continue}break}D[f>>2]=e;D[h>>2]=D[D[i+D[b>>2]>>2]>>2];D[D[i+D[b>>2]>>2]>>2]=d;break p}D[m>>2]=f;f=d;g=h}d=D[f>>2];if(d){continue}break}}}f=D[b+4>>2];d=f-1|0;if(!(d&f)){e=d&j;break d}if(f>>>0>j>>>0){e=j;break d}e=(j>>>0)%(f>>>0)|0}e=D[b>>2]+(e<<2)|0;d=D[e>>2];q:{if(!d){D[c>>2]=D[b+8>>2];D[b+8>>2]=c;D[e>>2]=b+8;d=D[c>>2];if(!d){break q}d=D[d+4>>2];e=f-1|0;r:{if(!(e&f)){d=d&e;break r}if(d>>>0<f>>>0){break r}d=(d>>>0)%(f>>>0)|0}D[D[b>>2]+(d<<2)>>2]=c;break q}D[c>>2]=D[d>>2];D[d>>2]=c}D[b+12>>2]=D[b+12>>2]+1;b=1}B[a+4|0]=b;D[a>>2]=c}function Xh(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;D[a+8>>2]=e;d=a+32|0;k=D[d>>2];f=D[a+36>>2]-k>>2;a:{if(f>>>0<e>>>0){sa(d,e-f|0);k=D[d>>2];d=D[a+8>>2];break a}if(e>>>0<f>>>0){D[a+36>>2]=(e<<2)+k}d=e}q=D[a+52>>2];n=D[a+48>>2];f=0;m=(e&1073741823)!=(e|0)?-1:e<<2;m=pa(na(m),0,m);b:{if((d|0)<=0){break b}while(1){d=f<<2;g=D[d+m>>2];i=D[a+16>>2];c:{if((g|0)>(i|0)){D[d+k>>2]=i;break c}d=d+k|0;i=D[a+12>>2];if((i|0)>(g|0)){D[d>>2]=i;break c}D[d>>2]=g}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}if((d|0)<=0){break b}f=0;while(1){g=f<<2;d=g+c|0;g=D[b+g>>2]+D[g+k>>2]|0;D[d>>2]=g;d:{if((g|0)>D[a+16>>2]){h=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break d}h=g+D[a+20>>2]|0}D[d>>2]=h}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}}f=D[a+56>>2];o=D[f>>2];f=D[f+4>>2]-o|0;if((f|0)>=5){f=f>>2;r=(f|0)>2?f:2;s=f>>>0>1?f:1;t=e&-2;u=e&1;k=1;while(1){e:{f:{if((k|0)!=(s|0)){p=J(e,k);f=D[(k<<2)+o>>2];if((f|0)==-1){break f}f=D[D[n+12>>2]+(f<<2)>>2];if((f|0)==-1){break f}i=D[q>>2];g=D[n>>2];j=D[i+(D[g+(f<<2)>>2]<<2)>>2];h=f+1|0;h=(h>>>0)%3|0?h:f-2|0;if((h|0)!=-1){h=D[g+(h<<2)>>2]}else{h=-1}g:{h:{if((f>>>0)%3|0){f=f-1|0;break h}f=f+2|0;l=-1;if((f|0)==-1){break g}}l=D[g+(f<<2)>>2]}if((j|0)>=(k|0)){break f}f=D[(h<<2)+i>>2];if((f|0)>=(k|0)){break f}g=D[i+(l<<2)>>2];if((g|0)>=(k|0)){break f}i:{if((e|0)<=0){break i}g=J(e,g);i=J(e,f);j=J(e,j);f=0;l=0;if((e|0)!=1){while(1){D[m+(f<<2)>>2]=(D[(f+g<<2)+c>>2]+D[(f+i<<2)+c>>2]|0)-D[(f+j<<2)+c>>2];h=f|1;D[m+(h<<2)>>2]=(D[(g+h<<2)+c>>2]+D[(i+h<<2)+c>>2]|0)-D[(h+j<<2)+c>>2];f=f+2|0;l=l+2|0;if((t|0)!=(l|0)){continue}break}}if(!u){break i}D[m+(f<<2)>>2]=(D[(f+g<<2)+c>>2]+D[(f+i<<2)+c>>2]|0)-D[(f+j<<2)+c>>2]}if((d|0)<=0){break e}i=D[a+32>>2];f=0;while(1){d=f<<2;g=D[d+m>>2];j=D[a+16>>2];j:{if((g|0)>(j|0)){D[d+i>>2]=j;break j}d=d+i|0;j=D[a+12>>2];if((j|0)>(g|0)){D[d>>2]=j;break j}D[d>>2]=g}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}f=0;if((d|0)<=0){break e}d=p<<2;j=d+c|0;h=b+d|0;while(1){g=f<<2;d=g+j|0;g=D[g+h>>2]+D[g+i>>2]|0;D[d>>2]=g;k:{if((g|0)>D[a+16>>2]){l=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break k}l=g+D[a+20>>2]|0}D[d>>2]=l}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}break e}ua();T()}if((d|0)<=0){break e}j=(J(k-1|0,e)<<2)+c|0;i=D[a+32>>2];f=0;while(1){d=f<<2;g=D[d+j>>2];h=D[a+16>>2];l:{if((g|0)>(h|0)){D[d+i>>2]=h;break l}d=d+i|0;h=D[a+12>>2];if((h|0)>(g|0)){D[d>>2]=h;break l}D[d>>2]=g}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}f=0;if((d|0)<=0){break e}d=p<<2;j=d+c|0;h=b+d|0;while(1){g=f<<2;d=g+j|0;g=D[g+h>>2]+D[g+i>>2]|0;D[d>>2]=g;m:{if((g|0)>D[a+16>>2]){l=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break m}l=g+D[a+20>>2]|0}D[d>>2]=l}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}}k=k+1|0;if((r|0)!=(k|0)){continue}break}}ma(m);return 1}function Tc(a){var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;D[a+56>>2]=D[a+52>>2];D[a+44>>2]=D[a+40>>2];a:{b:{c:{e=D[a+64>>2];c=D[e+24>>2];if((c|0)!=D[e+28>>2]){while(1){d=b;i=D[(j<<2)+c>>2];d:{if((i|0)==-1){break d}b=D[a+56>>2];e:{if((b|0)!=D[a+60>>2]){D[b>>2]=d;D[a+56>>2]=b+4;break e}e=D[a+52>>2];c=b-e|0;g=c>>2;b=g+1|0;if(b>>>0>=1073741824){break c}f=c>>1;f=c>>>0<2147483644?b>>>0>f>>>0?b:f:1073741823;if(f){if(f>>>0>=1073741824){break a}b=na(f<<2)}else{b=0}g=b+(g<<2)|0;D[g>>2]=d;if((c|0)>0){oa(b,e,c)}D[a+60>>2]=b+(f<<2);D[a+56>>2]=g+4;D[a+52>>2]=b;if(!e){break e}ma(e)}f:{if(!(D[D[a+12>>2]+(j>>>3&536870908)>>2]>>>j&1)){break f}b=i+1|0;b=(b>>>0)%3|0?b:i-2|0;if((b|0)==-1){break f}e=D[a>>2];if(D[e+(b>>>3&536870908)>>2]>>>b&1){break f}b=D[D[D[a+64>>2]+12>>2]+(b<<2)>>2];if((b|0)==-1){break f}c=b+1|0;c=(c>>>0)%3|0?c:b-2|0;if((c|0)==-1){break f}f=D[a+64>>2];while(1){i=c;b=c+1|0;b=(b>>>0)%3|0?b:c-2|0;if((b|0)==-1|D[e+(b>>>3&536870908)>>2]>>>b&1){break f}b=D[D[f+12>>2]+(b<<2)>>2];if((b|0)==-1){break f}c=b+1|0;c=(c>>>0)%3|0?c:b-2|0;if((c|0)!=-1){continue}break}}D[D[a+28>>2]+(i<<2)>>2]=d;b=D[a+44>>2];g:{if((b|0)!=D[a+48>>2]){D[b>>2]=i;D[a+44>>2]=b+4;break g}e=D[a+40>>2];c=b-e|0;g=c>>2;b=g+1|0;if(b>>>0>=1073741824){break b}f=c>>1;f=c>>>0<2147483644?b>>>0>f>>>0?b:f:1073741823;if(f){if(f>>>0>=1073741824){break a}b=na(f<<2)}else{b=0}g=b+(g<<2)|0;D[g>>2]=i;if((c|0)>0){oa(b,e,c)}D[a+48>>2]=b+(f<<2);D[a+44>>2]=g+4;D[a+40>>2]=b;if(!e){break g}ma(e)}b=d+1|0;e=D[a+64>>2];h:{if((i>>>0)%3|0){c=i-1|0;break h}c=i+2|0;if((c|0)==-1){break d}}c=D[D[e+12>>2]+(c<<2)>>2];if((c|0)==-1){break d}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1|(c|0)==(i|0)){break d}while(1){e=c+1|0;e=(e>>>0)%3|0?e:c-2|0;if(D[D[a>>2]+(e>>>3&536870908)>>2]>>>e&1){d=D[a+56>>2];i:{if((d|0)!=D[a+60>>2]){D[d>>2]=b;D[a+56>>2]=d+4;break i}f=D[a+52>>2];e=d-f|0;h=e>>2;d=h+1|0;if(d>>>0>=1073741824){break c}g=e>>1;g=e>>>0<2147483644?d>>>0>g>>>0?d:g:1073741823;if(g){if(g>>>0>=1073741824){break a}d=na(g<<2)}else{d=0}h=d+(h<<2)|0;D[h>>2]=b;if((e|0)>0){oa(d,f,e)}D[a+60>>2]=d+(g<<2);D[a+56>>2]=h+4;D[a+52>>2]=d;if(!f){break i}ma(f)}e=b+1|0;d=D[a+44>>2];j:{if((d|0)!=D[a+48>>2]){D[d>>2]=c;D[a+44>>2]=d+4;break j}g=D[a+40>>2];f=d-g|0;k=f>>2;d=k+1|0;if(d>>>0>=1073741824){break b}h=f>>1;h=f>>>0<2147483644?d>>>0>h>>>0?d:h:1073741823;if(h){if(h>>>0>=1073741824){break a}d=na(h<<2)}else{d=0}k=d+(k<<2)|0;D[k>>2]=c;if((f|0)>0){oa(d,g,f)}D[a+48>>2]=d+(h<<2);D[a+44>>2]=k+4;D[a+40>>2]=d;if(!g){break j}ma(g)}d=b;b=e}D[D[a+28>>2]+(c<<2)>>2]=d;e=D[a+64>>2];k:{if((c>>>0)%3|0){c=c-1|0;break k}c=c+2|0;if((c|0)==-1){break d}}c=D[D[e+12>>2]+(c<<2)>>2];if((c|0)==-1){break d}c=c+((c>>>0)%3|0?-1:2)|0;if((c|0)==-1){break d}if((c|0)!=(i|0)){continue}break}}j=j+1|0;c=D[e+24>>2];if(j>>>0<D[e+28>>2]-c>>2>>>0){continue}break}}return}qa();T()}qa();T()}ra(1326);T()}function ce(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0;D[a+8>>2]=e;d=a+32|0;k=D[d>>2];f=D[a+36>>2]-k>>2;a:{if(f>>>0<e>>>0){sa(d,e-f|0);k=D[d>>2];d=D[a+8>>2];break a}if(e>>>0<f>>>0){D[a+36>>2]=(e<<2)+k}d=e}q=D[a+52>>2];m=D[a+48>>2];f=0;l=(e&1073741823)!=(e|0)?-1:e<<2;l=pa(na(l),0,l);b:{if((d|0)<=0){break b}while(1){d=f<<2;g=D[d+l>>2];h=D[a+16>>2];c:{if((g|0)>(h|0)){D[d+k>>2]=h;break c}d=d+k|0;h=D[a+12>>2];if((h|0)>(g|0)){D[d>>2]=h;break c}D[d>>2]=g}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}if((d|0)<=0){break b}f=0;while(1){g=f<<2;d=g+c|0;g=D[b+g>>2]+D[g+k>>2]|0;D[d>>2]=g;d:{if((g|0)>D[a+16>>2]){g=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break d}g=g+D[a+20>>2]|0}D[d>>2]=g}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}}f=D[a+56>>2];o=D[f>>2];f=D[f+4>>2]-o|0;if((f|0)>=5){f=f>>2;r=(f|0)>2?f:2;s=f>>>0>1?f:1;t=e&-2;u=e&1;k=1;while(1){e:{f:{if((k|0)!=(s|0)){p=J(e,k);f=D[(k<<2)+o>>2];if((f|0)==-1|D[D[m>>2]+(f>>>3&536870908)>>2]>>>f&1){break f}f=D[D[D[m+64>>2]+12>>2]+(f<<2)>>2];if((f|0)==-1){break f}h=D[q>>2];g=D[m+28>>2];j=D[h+(D[g+(f<<2)>>2]<<2)>>2];if((j|0)>=(k|0)){break f}i=f+1|0;i=D[h+(D[g+(((i>>>0)%3|0?i:f-2|0)<<2)>>2]<<2)>>2];if((i|0)>=(k|0)){break f}f=D[h+(D[g+(f+((f>>>0)%3|0?-1:2)<<2)>>2]<<2)>>2];if((f|0)>=(k|0)){break f}g:{if((e|0)<=0){break g}g=J(e,f);h=J(e,i);j=J(e,j);f=0;n=0;if((e|0)!=1){while(1){D[l+(f<<2)>>2]=(D[(f+g<<2)+c>>2]+D[(f+h<<2)+c>>2]|0)-D[(f+j<<2)+c>>2];i=f|1;D[l+(i<<2)>>2]=(D[(g+i<<2)+c>>2]+D[(h+i<<2)+c>>2]|0)-D[(j+i<<2)+c>>2];f=f+2|0;n=n+2|0;if((t|0)!=(n|0)){continue}break}}if(!u){break g}D[l+(f<<2)>>2]=(D[(f+g<<2)+c>>2]+D[(f+h<<2)+c>>2]|0)-D[(f+j<<2)+c>>2]}if((d|0)<=0){break e}h=D[a+32>>2];f=0;while(1){d=f<<2;g=D[d+l>>2];j=D[a+16>>2];h:{if((g|0)>(j|0)){D[d+h>>2]=j;break h}d=d+h|0;j=D[a+12>>2];if((j|0)>(g|0)){D[d>>2]=j;break h}D[d>>2]=g}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}f=0;if((d|0)<=0){break e}d=p<<2;j=d+c|0;i=b+d|0;while(1){g=f<<2;d=g+j|0;g=D[g+i>>2]+D[g+h>>2]|0;D[d>>2]=g;i:{if((g|0)>D[a+16>>2]){g=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break i}g=g+D[a+20>>2]|0}D[d>>2]=g}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}break e}ua();T()}if((d|0)<=0){break e}j=(J(k-1|0,e)<<2)+c|0;h=D[a+32>>2];f=0;while(1){d=f<<2;g=D[d+j>>2];i=D[a+16>>2];j:{if((g|0)>(i|0)){D[d+h>>2]=i;break j}d=d+h|0;i=D[a+12>>2];if((i|0)>(g|0)){D[d>>2]=i;break j}D[d>>2]=g}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}f=0;if((d|0)<=0){break e}d=p<<2;j=d+c|0;i=b+d|0;while(1){g=f<<2;d=g+j|0;g=D[g+i>>2]+D[g+h>>2]|0;D[d>>2]=g;k:{if((g|0)>D[a+16>>2]){g=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break k}g=g+D[a+20>>2]|0}D[d>>2]=g}d=D[a+8>>2];f=f+1|0;if((d|0)>(f|0)){continue}break}}k=k+1|0;if((r|0)!=(k|0)){continue}break}}ma(l);return 1}function kd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;if((b|0)==-1){return 1}c=(b>>>0)/3|0;if(!(D[D[a+24>>2]+(c>>>3&268435452)>>2]>>>c&1)){d=D[a+48>>2];D[a+52>>2]=d;a:{if((d|0)!=D[a+56>>2]){D[d>>2]=b;D[a+52>>2]=d+4;break a}e=na(4);D[e>>2]=b;f=e+4|0;D[a+56>>2]=f;D[a+52>>2]=f;D[a+48>>2]=e;if(!d){break a}ma(d)}f=D[D[a+4>>2]+28>>2];d=b+1|0;e=(d>>>0)%3|0?d:b-2|0;d=D[f+(e<<2)>>2];if((d|0)==-1){return 0}g=(b-J(c,3)|0?-1:2)+b|0;c=D[f+(g<<2)>>2];if((c|0)==-1){return 0}b=D[a+36>>2];f=b+(d>>>3&536870908)|0;h=D[f>>2];i=1<<d;if(!(h&i)){D[f>>2]=h|i;Ja(a+8|0,d,e);b=D[a+36>>2]}b=(c>>>3&536870908)+b|0;d=D[b>>2];e=1<<c;if(!(d&e)){D[b>>2]=d|e;Ja(a+8|0,c,g)}c=D[a+52>>2];if((c|0)==D[a+48>>2]){return 1}k=a+8|0;while(1){c=c-4|0;b=D[c>>2];d=(b>>>0)/3|0;b:{c:{if((b|0)==-1){break c}e=D[a+24>>2]+(d>>>3&268435452)|0;f=D[e>>2];d=1<<d;if(f&d){break c}D[e>>2]=d|f;e=D[a+4>>2];d=D[D[e+28>>2]+(b<<2)>>2];if((d|0)==-1){return 0}while(1){c=b;d:{e:{f=D[a+36>>2]+(d>>>3&536870908)|0;g=D[f>>2];h=1<<d;if(g&h){break e}f:{b=D[D[e+40>>2]+(d<<2)>>2];g:{if((b|0)==-1){break g}i=b+1|0;b=(i>>>0)%3|0?i:b-2|0;if((b|0)==-1|D[D[e>>2]+(b>>>3&536870908)>>2]>>>b&1){break g}b=D[D[D[e+64>>2]+12>>2]+(b<<2)>>2];if((b|0)!=-1){break f}}D[f>>2]=g|h;Ja(k,d,c);break e}D[f>>2]=g|h;Ja(k,d,c);d=b+1|0;if((((d>>>0)%3|0?d:b-2|0)|0)==-1){break e}b=-1;e=D[a+4>>2];h:{if((c|0)==-1){break h}d=c+1|0;d=(d>>>0)%3|0?d:c-2|0;if((d|0)==-1|D[D[e>>2]+(d>>>3&536870908)>>2]>>>d&1){break h}b=D[D[D[e+64>>2]+12>>2]+(d<<2)>>2]}d=(b>>>0)/3|0;h=1<<d;c=D[a+24>>2];i=d>>>5|0;f=D[c+(i<<2)>>2];break d}i:{j:{if((c|0)==-1){break j}d=-1;b=c+1|0;b=(b>>>0)%3|0?b:c-2|0;e=D[a+4>>2];if(!((b|0)==-1|D[D[e>>2]+(b>>>3&536870908)>>2]>>>b&1)){d=D[D[D[e+64>>2]+12>>2]+(b<<2)>>2]}k:{l:{if((c>>>0)%3|0){c=c-1|0;break l}c=c+2|0;b=-1;if((c|0)==-1){break k}}b=-1;if(D[D[e>>2]+(c>>>3&536870908)>>2]>>>c&1){break k}b=D[D[D[e+64>>2]+12>>2]+(c<<2)>>2]}j=(b|0)==-1;g=j?-1:(b>>>0)/3|0;f=(d>>>0)/3|0;h=(d|0)==-1;if(!h){c=D[a+24>>2];h=h?-1:f;i=h>>>5|0;f=D[c+(i<<2)>>2];h=1<<h;if(!(f&h)){break i}}if(j){break j}h=1<<g;c=D[a+24>>2];i=g>>>5|0;f=D[c+(i<<2)>>2];if(!(h&f)){break d}}c=D[a+52>>2]-4|0;D[a+52>>2]=c;break b}if(j){b=d;break d}if(D[(g>>>3&536870908)+c>>2]>>>g&1){b=d;break d}c=D[a+52>>2];D[c-4>>2]=b;if((c|0)!=D[a+56>>2]){D[c>>2]=d;c=c+4|0;break c}m:{f=D[a+48>>2];e=c-f|0;c=e>>2;b=c+1|0;if(b>>>0<1073741824){g=e>>1;g=e>>>0<2147483644?b>>>0>g>>>0?b:g:1073741823;if(g){if(g>>>0>=1073741824){break m}b=na(g<<2)}else{b=0}c=b+(c<<2)|0;D[c>>2]=d;c=c+4|0;if((e|0)>0){oa(b,f,e)}D[a+56>>2]=b+(g<<2);D[a+52>>2]=c;D[a+48>>2]=b;if(!f){break b}ma(f);c=D[a+52>>2];break b}qa();T()}ra(1326);T()}D[(i<<2)+c>>2]=f|h;d=D[D[e+28>>2]+(b<<2)>>2];if((d|0)!=-1){continue}break}return 0}D[a+52>>2]=c}if(D[a+48>>2]!=(c|0)){continue}break}}return 1}function Ub(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0;i=J(b,12)+a|0;D[i+12>>2]=D[i+8>>2];k=(c|0)==-1?-1:(c>>>0)/3|0;n=1;j=c;a:{b:{c:{while(1){d:{o=e&1;if(o){if((j|0)==-1){break d}if((Rc(a,((j>>>0)%3|0?-1:2)+j|0)|0)==-1){break a}c=j+1|0;d=(c>>>0)%3|0?c:j-2|0;if((d|0)==-1){break a}c=d+1|0;c=(c>>>0)%3|0?c:d-2|0;if((c|0)==-1){break a}d=D[D[D[a+4>>2]+12>>2]+(c<<2)>>2];if((d|0)==-1){break a}c=d+1|0;c=(c>>>0)%3|0?c:d-2|0;if((c|0)==-1){break a}k=(c>>>0)/3|0}g=1<<k;m=D[a+56>>2]+(k>>>3&536870908)|0;l=D[m>>2];e:{if(g&l){break e}e=0;while(1){D[m>>2]=g|l;d=D[i+12>>2];f:{if((d|0)!=D[i+16>>2]){D[d>>2]=k;D[i+12>>2]=d+4;break f}l=D[i+8>>2];g=d-l|0;h=g>>2;f=h+1|0;if(f>>>0>=1073741824){break c}d=g>>1;f=g>>>0<2147483644?d>>>0<f>>>0?f:d:1073741823;if(f){if(f>>>0>=1073741824){break b}d=na(f<<2)}else{d=0}h=d+(h<<2)|0;D[h>>2]=k;if((g|0)>0){oa(d,l,g)}D[i+8>>2]=d;D[i+12>>2]=h+4;D[i+16>>2]=d+(f<<2);if(!l){break f}ma(l)}h=e+1|0;g:{h:{i:{if(!e){break i}if(h&1){if((c|0)==-1){c=-1;break g}d=c+1|0;c=(d>>>0)%3|0?d:c-2|0;break i}j=o?c:j;if((c|0)==-1){c=-1;break g}if((c>>>0)%3|0){e=c-1|0;break h}c=c+2|0}d=c;c=-1;e=d;if((d|0)==-1){break g}}c=D[D[D[a+4>>2]+12>>2]+(e<<2)>>2];m=-1;l=-1;d=e+1|0;f=(d>>>0)%3|0?d:e-2|0;if((f|0)>=0){d=(f>>>0)/3|0;l=D[(D[D[a>>2]+96>>2]+J(d,12)|0)+(f-J(d,3)<<2)>>2]}j:{if((c|0)==-1){g=1;break j}g=0;f=((c>>>0)%3|0?-1:2)+c|0;if((f|0)<0){break j}d=(f>>>0)/3|0;m=D[(D[D[a>>2]+96>>2]+J(d,12)|0)+(f-J(d,3)<<2)>>2]}if((l|0)!=(m|0)){c=-1;break g}k:{l:{e=((e>>>0)%3|0?-1:2)+e|0;m:{n:{if((e|0)>=0){d=(e>>>0)/3|0;m=D[(D[D[a>>2]+96>>2]+J(d,12)|0)+(e-J(d,3)<<2)>>2];e=-1;if(!g){break n}break m}m=-1;if(g){break l}}d=c+1|0;e=(d>>>0)%3|0?d:c-2|0;if((e|0)<0){e=-1;break m}d=(e>>>0)/3|0;e=D[(D[D[a>>2]+96>>2]+J(d,12)|0)+(e-J(d,3)<<2)>>2]}if((e|0)!=(m|0)){c=-1;break g}if((c|0)!=-1){break k}c=-1;break g}if((c|0)!=-1){break k}c=-1;break g}e=h;k=(c>>>0)/3|0;m=D[a+56>>2]+(k>>>3&268435452)|0;l=D[m>>2];g=1<<k;if(!(l&g)){continue}}break}if(!o|!(h&1)){break e}f=D[i+12>>2]-4|0;h=D[f>>2];e=D[a+56>>2]+(h>>>3&536870908)|0;d=D[e>>2];p=e,q=ei(h)&d,D[p>>2]=q;D[i+12>>2]=f}e=1;d=n;n=0;if(d){continue}break a}break}j=-1;Rc(a,-1);break a}qa();T()}ra(1326);T()}D[((b<<2)+a|0)+44>>2]=j;f=D[i+8>>2];b=D[i+12>>2]-f|0;o:{if(!b){break o}j=D[a+56>>2];a=b>>2;a=a>>>0>1?a:1;h=a&1;c=0;if(b>>>0>=8){n=a&-2;k=0;while(1){e=c<<2;d=D[e+f>>2];b=j+(d>>>3&536870908)|0;a=D[b>>2];p=b,q=ei(d)&a,D[p>>2]=q;d=D[f+(e|4)>>2];b=j+(d>>>3&536870908)|0;a=D[b>>2];p=b,q=ei(d)&a,D[p>>2]=q;c=c+2|0;k=k+2|0;if((n|0)!=(k|0)){continue}break}}if(!h){break o}c=D[f+(c<<2)>>2];b=j+(c>>>3&536870908)|0;a=D[b>>2];p=b,q=ei(c)&a,D[p>>2]=q}}function ld(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;if((b|0)==-1){return 1}d=(b>>>0)/3|0;if(!(D[D[a+24>>2]+(d>>>3&268435452)>>2]>>>d&1)){c=D[a+48>>2];D[a+52>>2]=c;a:{if((c|0)!=D[a+56>>2]){D[c>>2]=b;D[a+52>>2]=c+4;break a}e=na(4);D[e>>2]=b;f=e+4|0;D[a+56>>2]=f;D[a+52>>2]=f;D[a+48>>2]=e;if(!c){break a}ma(c)}e=-1;f=D[a+4>>2];c=b+1|0;g=(c>>>0)%3|0?c:b-2|0;if((g|0)!=-1){e=D[D[f>>2]+(g<<2)>>2]}b:{h=b-J(d,3)|0;if(h){c=b-1|0;break b}c=b+2|0;if((c|0)!=-1){break b}return 0}if((e|0)==-1){return 0}d=D[D[f>>2]+(c<<2)>>2];if((d|0)==-1){return 0}c=D[a+36>>2];f=c+(e>>>3&536870908)|0;i=D[f>>2];j=1<<e;if(!(i&j)){D[f>>2]=i|j;Ja(a+8|0,e,g);c=D[a+36>>2]}c=(d>>>3&536870908)+c|0;e=D[c>>2];f=1<<d;if(!(e&f)){D[c>>2]=e|f;Ja(a+8|0,d,(h?-1:2)+b|0)}c=D[a+52>>2];if((c|0)==D[a+48>>2]){return 1}j=a+8|0;while(1){c=c-4|0;b=D[c>>2];d=(b>>>0)/3|0;c:{d:{if((b|0)==-1){break d}e=D[a+24>>2]+(d>>>3&268435452)|0;f=D[e>>2];d=1<<d;if(f&d){break d}D[e>>2]=d|f;while(1){d=D[a+4>>2];c=D[D[d>>2]+(b<<2)>>2];if((c|0)==-1){return 0}e:{f:{e=D[a+36>>2]+(c>>>3&536870908)|0;f=D[e>>2];g=1<<c;if(f&g){break f}g:{h=D[D[d+24>>2]+(c<<2)>>2];h:{if((h|0)==-1){break h}i=h+1|0;h=(i>>>0)%3|0?i:h-2|0;if((h|0)==-1){break h}d=D[D[d+12>>2]+(h<<2)>>2];if((d|0)!=-1){break g}}D[e>>2]=f|g;Ja(j,c,b);break f}D[e>>2]=f|g;Ja(j,c,b);c=d+1|0;if((((c>>>0)%3|0?c:d-2|0)|0)==-1){break f}d=b-2|0;c=b+1|0;b=-1;c=(c>>>0)%3|0?c:d;if((c|0)!=-1){b=D[D[D[a+4>>2]+12>>2]+(c<<2)>>2]}c=(b>>>0)/3|0;g=1<<c;e=D[a+24>>2];h=c>>>5|0;d=D[e+(h<<2)>>2];break e}c=-1;f=D[a+4>>2];d=b+1|0;d=(d>>>0)%3|0?d:b-2|0;if((d|0)!=-1){c=D[D[f+12>>2]+(d<<2)>>2]}i:{j:{if((b>>>0)%3|0){e=b-1|0;break j}e=b+2|0;b=-1;if((e|0)==-1){break i}}b=D[D[f+12>>2]+(e<<2)>>2]}i=(b|0)==-1;f=i?-1:(b>>>0)/3|0;d=(c>>>0)/3|0;k:{g=(c|0)==-1;if(!g){e=D[a+24>>2];g=g?-1:d;h=g>>>5|0;d=D[e+(h<<2)>>2];g=1<<g;if(!(d&g)){break k}}if(!i){g=1<<f;e=D[a+24>>2];h=f>>>5|0;d=D[e+(h<<2)>>2];if(!(g&d)){break e}}c=D[a+52>>2]-4|0;D[a+52>>2]=c;break c}if(i){b=c;break e}if(D[(f>>>3&536870908)+e>>2]>>>f&1){b=c;break e}d=D[a+52>>2];D[d-4>>2]=b;if((d|0)!=D[a+56>>2]){D[d>>2]=c;c=d+4|0;break d}l:{e=D[a+48>>2];d=d-e|0;g=d>>2;b=g+1|0;if(b>>>0<1073741824){f=d>>1;f=d>>>0<2147483644?b>>>0>f>>>0?b:f:1073741823;if(f){if(f>>>0>=1073741824){break l}b=na(f<<2)}else{b=0}g=b+(g<<2)|0;D[g>>2]=c;c=g+4|0;if((d|0)>0){oa(b,e,d)}D[a+56>>2]=b+(f<<2);D[a+52>>2]=c;D[a+48>>2]=b;if(!e){break c}ma(e);c=D[a+52>>2];break c}qa();T()}ra(1326);T()}D[(h<<2)+e>>2]=d|g;if((b|0)!=-1){continue}break}return 0}D[a+52>>2]=c}if(D[a+48>>2]!=(c|0)){continue}break}}return 1}function wc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;a:{n=ba[D[D[a>>2]+44>>2]](a)|0;if((n|0)<=0){break a}e=D[b+4>>2]-D[b>>2]>>2;g=$+-64|0;$=g;d=mb(g);f=J(D[2549],n);$b(d,D[D[a+8>>2]+56>>2],n<<24>>24,5,0,f,f>>31);f=na(96);d=_b(f,d);B[d+84|0]=1;D[d+72>>2]=D[d+68>>2];Zb(d,e);D[d+60>>2]=D[D[a+8>>2]+60>>2];d=D[a+16>>2];D[a+16>>2]=f;if(d){ya(d)}$=g- -64|0;g=D[a+16>>2];if(!D[g+80>>2]){break a}i=D[D[g>>2]>>2];if(!i){break a}h=D[c+12>>2];d=D[c+20>>2];j=D[c+8>>2];f=D[c+16>>2];if((h|0)<=(d|0)&j>>>0<=f>>>0|(d|0)>(h|0)){break a}k=J(e,n);i=i+D[g+48>>2]|0;l=D[c>>2];m=E[l+f|0];g=f+1|0;e=g?d:d+1|0;D[c+16>>2]=g;D[c+20>>2]=e;b:{c:{d:{if(m){if(kc(k,n,c,i)){break d}break a}if((e|0)>=(h|0)&g>>>0>=j>>>0|(e|0)>(h|0)){break a}g=E[g+l|0];e=f+2|0;d=e>>>0<2?d+1|0:d;D[c+16>>2]=e;D[c+20>>2]=d;d=D[D[a+16>>2]+64>>2];d=D[d+4>>2]-D[d>>2]|0;e:{if((g|0)==D[2549]){e=d;d=k<<2;if(e>>>0<d>>>0){break a}h=D[c+8>>2];g=D[c+12>>2];e=D[c+20>>2];j=D[c+16>>2];f=d+j|0;e=f>>>0<d>>>0?e+1|0:e;if((e|0)<=(g|0)&f>>>0<=h>>>0|(e|0)<(g|0)){break e}break a}if(d>>>0<J(g,k)>>>0){break a}h=D[c+12>>2];e=D[c+20>>2];l=D[c+8>>2];f=l;j=D[c+16>>2];d=g;p=f-j>>>0<ai(d,0,k,0)>>>0;f=h-(e+(f>>>0<j>>>0)|0)|0;m=aa;if(p&(f|0)<=(m|0)|(f|0)<(m|0)){break a}f=1;if(!k){break c}f=0;m=l;l=d+j|0;e=l>>>0<d>>>0?e+1|0:e;if(m>>>0<l>>>0&(e|0)>=(h|0)|(e|0)>(h|0)){break b}while(1){oa(i+(o<<2)|0,j+D[c>>2]|0,g);e=D[c+20>>2];h=d+D[c+16>>2]|0;e=h>>>0<d>>>0?e+1|0:e;j=h;D[c+16>>2]=h;D[c+20>>2]=e;o=o+1|0;if((k|0)==(o|0)){break d}m=D[c+8>>2];h=D[c+12>>2];l=d+j|0;e=l>>>0<d>>>0?e+1|0:e;if((e|0)<=(h|0)&l>>>0<=m>>>0|(e|0)<(h|0)){continue}break}break b}oa(i,j+D[c>>2]|0,d);e=d;g=d+D[c+16>>2]|0;d=D[c+20>>2];D[c+16>>2]=g;D[c+20>>2]=e>>>0>g>>>0?d+1|0:d}f=1;if(!k){break c}d=D[a+20>>2];if(d){f=0;if(ba[D[D[d>>2]+32>>2]](d)|0){break c}}d=0;f=0;f:{if((k|0)<=0){break f}if((k|0)!=1){h=k&-2;while(1){e=d<<2;g=D[e+i>>2];D[e+i>>2]=0-(g&1)^g>>>1;g=e|4;e=D[g+i>>2];D[g+i>>2]=0-(e&1)^e>>>1;d=d+2|0;f=f+2|0;if((h|0)!=(f|0)){continue}break}}if(!(k&1)){break f}e=d<<2;d=D[e+i>>2];D[e+i>>2]=0-(d&1)^d>>>1}f=0}d=D[a+20>>2];g:{if(!d){break g}if(!(ba[D[D[d>>2]+40>>2]](d,c)|0)){break a}if(f){break g}f=0;a=D[a+20>>2];if(!(ba[D[D[a>>2]+44>>2]](a,i,i,k,n,D[b>>2])|0)){break b}}f=1}return f|0}return 0}function Va(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=$-32|0;$=g;a:{b:{if(D[a+8>>2]<<5>>>0>=b>>>0){break b}D[g+24>>2]=0;D[g+16>>2]=0;D[g+20>>2]=0;if((b|0)<0){break a}b=(b-1>>>5|0)+1|0;c=na(b<<2);D[g+24>>2]=b;D[g+20>>2]=0;D[g+16>>2]=c;b=D[a>>2];D[g+12>>2]=0;D[g+8>>2]=b;c=D[a+4>>2];D[g+4>>2]=c&31;D[g>>2]=b+(c>>>3&536870908);f=$-32|0;$=f;j=D[g+4>>2];e=D[g+12>>2];k=D[g>>2];i=D[g+8>>2];b=(j-e|0)+(k-i<<3)|0;d=D[g+20>>2];h=b+d|0;D[g+20>>2]=h;c:{if(!(!d|(h-1^d-1)>>>0>31)){c=D[g+16>>2];break c}c=D[g+16>>2];if(h>>>0<=32){D[c>>2]=0;break c}D[(h-1>>>3&536870908)+c>>2]=0}c=(d>>>3&536870908)+c|0;d=d&31;d:{if((d|0)==(e|0)){if((b|0)<=0){break d}if(e){h=32-e|0;d=(b|0)<(h|0)?b:h;h=-1<<e&-1>>>h-d;D[c>>2]=D[c>>2]&(h^-1)|h&D[i>>2];b=b-d|0;i=i+4|0;c=c+(d+e>>>3&536870908)|0}j=c;e=(b|0)/32|0;c=e<<2;d=Pa(j,i,c);b=b-(e<<5)|0;if((b|0)<=0){break d}e=c+d|0;b=-1>>>32-b|0;D[e>>2]=D[e>>2]&(b^-1)|b&D[c+i>>2];break d}D[f+28>>2]=e;D[f+24>>2]=i;D[f+20>>2]=j;D[f+16>>2]=k;D[f+12>>2]=d;D[f+8>>2]=c;b=D[f+28>>2];c=D[f+24>>2];i=(D[f+20>>2]-b|0)+(D[f+16>>2]-c<<3)|0;e:{if((i|0)<=0){b=D[f+12>>2];break e}f:{if(!b){b=D[f+12>>2];break f}e=D[f+12>>2];j=32-e|0;k=32-b|0;d=(i|0)<(k|0)?i:k;h=d>>>0>j>>>0?j:d;l=D[f+8>>2];m=D[l>>2]&(-1<<e&-1>>>j-h^-1);j=D[c>>2]&(-1<<b&-1>>>k-d);D[l>>2]=m|(b>>>0<e>>>0?j<<e-b:j>>>b-e|0);c=e+h|0;b=c&31;D[f+12>>2]=b;e=l+(c>>>3&536870908)|0;D[f+8>>2]=e;c=d-h|0;if((c|0)>0){D[e>>2]=D[e>>2]&(-1>>>32-c^-1)|j>>>h+D[f+28>>2];D[f+12>>2]=c;b=c}i=i-d|0;c=D[f+24>>2]+4|0;D[f+24>>2]=c}e=32-b|0;h=-1<<b;if((i|0)>=32){j=h^-1;while(1){d=D[f+8>>2];c=D[c>>2];D[d>>2]=j&D[d>>2]|c<<b;D[f+8>>2]=d+4;D[d+4>>2]=h&D[d+4>>2]|c>>>e;c=D[f+24>>2]+4|0;D[f+24>>2]=c;d=i>>>0>63;i=i-32|0;if(d){continue}break}}if((i|0)<=0){break e}d=D[f+8>>2];j=e;e=(e|0)<(i|0)?e:i;j=D[d>>2]&(h&-1>>>j-e^-1);h=D[c>>2]&-1>>>32-i;D[d>>2]=j|h<<b;c=b+e|0;b=c&31;D[f+12>>2]=b;d=d+(c>>>3&536870908)|0;D[f+8>>2]=d;c=i-e|0;if((c|0)<=0){break e}D[d>>2]=D[d>>2]&(-1>>>32-c^-1)|h>>>e;D[f+12>>2]=c;b=c}c=D[f+8>>2];D[f+4>>2]=b;D[f>>2]=c}$=f+32|0;b=D[a>>2];D[a>>2]=D[g+16>>2];D[g+16>>2]=b;c=D[a+4>>2];D[a+4>>2]=D[g+20>>2];D[g+20>>2]=c;c=D[a+8>>2];D[a+8>>2]=D[g+24>>2];D[g+24>>2]=c;if(!b){break b}ma(b)}$=g+32|0;return}Fa();T()}function Yh(a,b,c,d,e,f){a=a|0;b=b|0;c=c|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;g=$-32|0;$=g;D[a+68>>2]=f;e=D[a+56>>2];d=D[e>>2];f=D[e+4>>2];D[g+24>>2]=0;D[g+16>>2]=0;D[g+20>>2]=0;a:{f=f-d|0;if((f|0)<=0){break a}d=D[e>>2];if((d|0)!=D[e+4>>2]){m=a+112|0;n=a+60|0;e=f>>>2|0;o=e>>>0>1?e:1;while(1){Nb(n,D[(k<<2)+d>>2],g+16|0);e=D[g+20>>2];d=e>>31;f=D[g+16>>2];h=f>>31;j=D[g+24>>2];i=j>>31;i=i^i+j;h=i+((d^d+e)+(h^f+h)|0)|0;d=0;d=h>>>0<i>>>0?1:d;b:{if(!(d|h)){D[g+16>>2]=D[a+108>>2];break b}i=D[a+108>>2];l=i>>31;f=bi(ai(i,l,f,f>>31),aa,h,d);D[g+16>>2]=f;d=bi(ai(i,l,e,e>>31),aa,h,d);D[g+20>>2]=d;e=d;d=d>>31;e=e+d^d;d=f>>31;d=e+(d+f^d)|0;if((j|0)>=0){D[g+24>>2]=i-d;break b}D[g+24>>2]=d-i}d=Ga(m);f=D[g+16>>2];c:{if(d){D[g+24>>2]=0-D[g+24>>2];e=0-D[g+20>>2]|0;D[g+20>>2]=e;f=0-f|0;D[g+16>>2]=f;break c}e=D[g+20>>2]}d:{if((f|0)>=0){d=D[a+108>>2];f=d+D[g+24>>2]|0;d=d+e|0;break d}e:{if((e|0)<0){f=D[g+24>>2];d=f>>31;d=d^d+f;break e}f=D[g+24>>2];d=f>>31;d=D[a+100>>2]-(d^d+f)|0}if((f|0)<0){f=e;e=e>>31;f=f+e^e;break d}f=e;e=e>>31;f=D[a+100>>2]-(f+e^e)|0}e=D[a+100>>2];f:{if(!(d|f)){f=e;d=f;break f}if(!((e|0)!=(f|0)|d)){d=f;break f}if(!((d|0)!=(e|0)|f)){f=d;break f}g:{if(d){break g}h=D[a+108>>2];if((h|0)>=(f|0)){break g}f=(h<<1)-f|0;d=0;break f}h:{if((d|0)!=(e|0)){break h}h=D[a+108>>2];if((h|0)<=(f|0)){break h}f=(h<<1)-f|0;break f}i:{if((e|0)!=(f|0)){break i}e=D[a+108>>2];if((e|0)<=(d|0)){break i}d=(e<<1)-d|0;break f}if(f){break f}f=0;e=D[a+108>>2];if((e|0)>=(d|0)){break f}d=(e<<1)-d|0}D[g+12>>2]=f;D[g+8>>2]=d;j:{if(D[a+8>>2]<=0){break j}h=D[a+32>>2];f=0;while(1){e=D[a+16>>2];k:{if((e|0)<(d|0)){D[h+(f<<2)>>2]=e;break k}e=h+(f<<2)|0;j=D[a+12>>2];if((j|0)>(d|0)){D[e>>2]=j;break k}D[e>>2]=d}f=f+1|0;e=D[a+8>>2];if((f|0)<(e|0)){d=D[(g+8|0)+(f<<2)>>2];continue}break}d=0;if((e|0)<=0){break j}e=k<<3;j=e+c|0;i=b+e|0;while(1){f=d<<2;e=f+j|0;f=D[f+i>>2]+D[f+h>>2]|0;D[e>>2]=f;l:{if((f|0)>D[a+16>>2]){f=f-D[a+20>>2]|0}else{if((f|0)>=D[a+12>>2]){break l}f=f+D[a+20>>2]|0}D[e>>2]=f}d=d+1|0;if((d|0)<D[a+8>>2]){continue}break}}k=k+1|0;if((o|0)==(k|0)){break a}e=D[a+56>>2];d=D[e>>2];if(D[e+4>>2]-d>>2>>>0>k>>>0){continue}break}}ua();T()}$=g+32|0;return 1}function Oh(a,b,c,d,e,f){a=a|0;b=b|0;c=c|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;g=$-32|0;$=g;D[a+68>>2]=f;e=D[a+56>>2];d=D[e>>2];f=D[e+4>>2];D[g+24>>2]=0;D[g+16>>2]=0;D[g+20>>2]=0;a:{f=f-d|0;if((f|0)<=0){break a}d=D[e>>2];if((d|0)!=D[e+4>>2]){m=a+112|0;n=a+60|0;e=f>>>2|0;o=e>>>0>1?e:1;while(1){Lb(n,D[(k<<2)+d>>2],g+16|0);e=D[g+20>>2];d=e>>31;f=D[g+16>>2];h=f>>31;j=D[g+24>>2];i=j>>31;i=i^i+j;h=i+((d^d+e)+(h^f+h)|0)|0;d=0;d=h>>>0<i>>>0?1:d;b:{if(!(d|h)){D[g+16>>2]=D[a+108>>2];break b}i=D[a+108>>2];l=i>>31;f=bi(ai(i,l,f,f>>31),aa,h,d);D[g+16>>2]=f;d=bi(ai(i,l,e,e>>31),aa,h,d);D[g+20>>2]=d;e=d;d=d>>31;e=e+d^d;d=f>>31;d=e+(d+f^d)|0;if((j|0)>=0){D[g+24>>2]=i-d;break b}D[g+24>>2]=d-i}d=Ga(m);f=D[g+16>>2];c:{if(d){D[g+24>>2]=0-D[g+24>>2];e=0-D[g+20>>2]|0;D[g+20>>2]=e;f=0-f|0;D[g+16>>2]=f;break c}e=D[g+20>>2]}d:{if((f|0)>=0){d=D[a+108>>2];f=d+D[g+24>>2]|0;d=d+e|0;break d}e:{if((e|0)<0){f=D[g+24>>2];d=f>>31;d=d^d+f;break e}f=D[g+24>>2];d=f>>31;d=D[a+100>>2]-(d^d+f)|0}if((f|0)<0){f=e;e=e>>31;f=f+e^e;break d}f=e;e=e>>31;f=D[a+100>>2]-(f+e^e)|0}e=D[a+100>>2];f:{if(!(d|f)){f=e;d=f;break f}if(!((e|0)!=(f|0)|d)){d=f;break f}if(!((d|0)!=(e|0)|f)){f=d;break f}g:{if(d){break g}h=D[a+108>>2];if((h|0)>=(f|0)){break g}f=(h<<1)-f|0;d=0;break f}h:{if((d|0)!=(e|0)){break h}h=D[a+108>>2];if((h|0)<=(f|0)){break h}f=(h<<1)-f|0;break f}i:{if((e|0)!=(f|0)){break i}e=D[a+108>>2];if((e|0)<=(d|0)){break i}d=(e<<1)-d|0;break f}if(f){break f}f=0;e=D[a+108>>2];if((e|0)>=(d|0)){break f}d=(e<<1)-d|0}D[g+12>>2]=f;D[g+8>>2]=d;j:{if(D[a+8>>2]<=0){break j}h=D[a+32>>2];f=0;while(1){e=D[a+16>>2];k:{if((e|0)<(d|0)){D[h+(f<<2)>>2]=e;break k}e=h+(f<<2)|0;j=D[a+12>>2];if((j|0)>(d|0)){D[e>>2]=j;break k}D[e>>2]=d}f=f+1|0;e=D[a+8>>2];if((f|0)<(e|0)){d=D[(g+8|0)+(f<<2)>>2];continue}break}d=0;if((e|0)<=0){break j}e=k<<3;j=e+c|0;i=b+e|0;while(1){f=d<<2;e=f+j|0;f=D[f+i>>2]+D[f+h>>2]|0;D[e>>2]=f;l:{if((f|0)>D[a+16>>2]){f=f-D[a+20>>2]|0}else{if((f|0)>=D[a+12>>2]){break l}f=f+D[a+20>>2]|0}D[e>>2]=f}d=d+1|0;if((d|0)<D[a+8>>2]){continue}break}}k=k+1|0;if((o|0)==(k|0)){break a}e=D[a+56>>2];d=D[e>>2];if(D[e+4>>2]-d>>2>>>0>k>>>0){continue}break}}ua();T()}$=g+32|0;return 1}function qc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=$-32|0;$=h;a:{b:{if(!kb(1,h+28|0,b)){break b}c:{d=D[h+28>>2];if(d){jb(a+60|0,d);c=h+8|0;D[c>>2]=0;D[c+4>>2]=0;B[c+5|0]=0;B[c+6|0]=0;B[c+7|0]=0;B[c+8|0]=0;B[c+9|0]=0;B[c+10|0]=0;B[c+11|0]=0;B[c+12|0]=0;if(!Ma(c,b)){break c}while(1){f=1<<e;i=Ga(c);g=D[a+60>>2]+(e>>>3&536870908)|0;if(i){f=f|D[g>>2]}else{f=D[g>>2]&(f^-1)}D[g>>2]=f;e=e+1|0;if((d|0)!=(e|0)){continue}break}}if(!kb(1,h+28|0,b)){break b}d=D[h+28>>2];if(d){e=0;jb(a+72|0,d);c=h+8|0;D[c>>2]=0;D[c+4>>2]=0;B[c+5|0]=0;B[c+6|0]=0;B[c+7|0]=0;B[c+8|0]=0;B[c+9|0]=0;B[c+10|0]=0;B[c+11|0]=0;B[c+12|0]=0;if(!Ma(c,b)){break c}while(1){f=1<<e;i=Ga(c);g=D[a+72>>2]+(e>>>3&536870908)|0;if(i){f=f|D[g>>2]}else{f=D[g>>2]&(f^-1)}D[g>>2]=f;e=e+1|0;if((d|0)!=(e|0)){continue}break}}if(!kb(1,h+28|0,b)){break b}d=D[h+28>>2];if(d){e=0;jb(a+84|0,d);c=h+8|0;D[c>>2]=0;D[c+4>>2]=0;B[c+5|0]=0;B[c+6|0]=0;B[c+7|0]=0;B[c+8|0]=0;B[c+9|0]=0;B[c+10|0]=0;B[c+11|0]=0;B[c+12|0]=0;if(!Ma(c,b)){break c}while(1){f=1<<e;i=Ga(c);g=D[a+84>>2]+(e>>>3&536870908)|0;if(i){f=f|D[g>>2]}else{f=D[g>>2]&(f^-1)}D[g>>2]=f;e=e+1|0;if((d|0)!=(e|0)){continue}break}}if(!kb(1,h+28|0,b)){break b}d=D[h+28>>2];if(d){e=0;jb(a+96|0,d);c=h+8|0;D[c>>2]=0;D[c+4>>2]=0;B[c+5|0]=0;B[c+6|0]=0;B[c+7|0]=0;B[c+8|0]=0;B[c+9|0]=0;B[c+10|0]=0;B[c+11|0]=0;B[c+12|0]=0;if(!Ma(c,b)){break c}while(1){f=1<<e;i=Ga(c);g=D[a+96>>2]+(e>>>3&536870908)|0;if(i){f=f|D[g>>2]}else{f=D[g>>2]&(f^-1)}D[g>>2]=f;e=e+1|0;if((d|0)!=(e|0)){continue}break}}e=0;d=D[b+12>>2];f=d;c=D[b+20>>2];g=c;i=D[b+16>>2];j=i+4|0;c=j>>>0<4?c+1|0:c;k=D[b+8>>2];if(k>>>0<j>>>0&(c|0)>=(d|0)|(c|0)>(d|0)){break a}l=D[b>>2];d=l+i|0;d=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);D[b+16>>2]=j;D[b+20>>2]=c;c=g;g=i+8|0;c=g>>>0<8?c+1|0:c;i=g;g=c;if(i>>>0>k>>>0&(c|0)>=(f|0)|(c|0)>(f|0)){break a}c=j+l|0;c=E[c|0]|E[c+1|0]<<8|(E[c+2|0]<<16|E[c+3|0]<<24);D[b+16>>2]=i;D[b+20>>2]=g;if((c|0)<(d|0)){break a}D[a+16>>2]=c;D[a+12>>2]=d;b=(c>>31)-((d>>31)+(c>>>0<d>>>0)|0)|0;c=c-d|0;if(!b&c>>>0>2147483646|b){break a}e=1;b=c+1|0;D[a+20>>2]=b;c=b>>>1|0;D[a+24>>2]=c;D[a+28>>2]=0-c;if(b&1){break a}D[a+24>>2]=c-1;break a}}e=0}$=h+32|0;return e|0}function Eh(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;g=$-48|0;$=g;d=D[a+8>>2];if(d-31>>>0>=4294967267){D[a+76>>2]=d;e=-1<<d;d=-2-e|0;D[a+84>>2]=d;D[a+80>>2]=e^-1;D[a+92>>2]=(d|0)/2;H[a+88>>2]=K(2)/K(d|0)}D[a+52>>2]=f;e=D[a+40>>2];d=D[e>>2];f=D[e+4>>2];D[g+16>>2]=0;D[g+8>>2]=0;D[g+12>>2]=0;a:{f=f-d|0;if((f|0)<=0){break a}d=D[e>>2];if((d|0)!=D[e+4>>2]){m=a+8|0;n=a+96|0;o=a+44|0;e=f>>>2|0;p=e>>>0>1?e:1;while(1){Nb(o,D[(j<<2)+d>>2],g+8|0);e=D[g+12>>2];d=e>>31;f=D[g+8>>2];h=f>>31;k=D[g+16>>2];i=k>>31;i=i^i+k;h=i+((d^d+e)+(h^f+h)|0)|0;d=0;d=h>>>0<i>>>0?1:d;b:{if(!(d|h)){D[g+8>>2]=D[a+92>>2];break b}i=D[a+92>>2];l=i>>31;f=bi(ai(i,l,f,f>>31),aa,h,d);D[g+8>>2]=f;d=bi(ai(i,l,e,e>>31),aa,h,d);D[g+12>>2]=d;e=d>>31;e=e^d+e;d=f>>31;d=e+(d+f^d)|0;if((k|0)>=0){D[g+16>>2]=i-d;break b}D[g+16>>2]=d-i}d=Ga(n);f=D[g+8>>2];c:{if(d){D[g+16>>2]=0-D[g+16>>2];e=0-D[g+12>>2]|0;D[g+12>>2]=e;f=0-f|0;D[g+8>>2]=f;break c}e=D[g+12>>2]}d:{if((f|0)>=0){f=D[a+92>>2];d=f+D[g+16>>2]|0;f=e+f|0;break d}e:{if((e|0)<0){d=D[g+16>>2];f=d>>31;f=f^d+f;break e}d=D[g+16>>2];f=d>>31;f=D[a+84>>2]-(f^d+f)|0}if((d|0)<0){d=e>>31;d=d+e^d;break d}d=e>>31;d=D[a+84>>2]-(d+e^d)|0}e=D[a+84>>2];f:{if(!(d|f)){d=e;f=d;break f}if(!((d|0)!=(e|0)|f)){f=d;break f}if(!((e|0)!=(f|0)|d)){d=f;break f}g:{if(f){break g}h=D[a+92>>2];if((h|0)>=(d|0)){break g}d=(h<<1)-d|0;f=0;break f}h:{if((e|0)!=(f|0)){break h}h=D[a+92>>2];if((h|0)<=(d|0)){break h}d=(h<<1)-d|0;break f}i:{if((d|0)!=(e|0)){break i}e=D[a+92>>2];if((e|0)<=(f|0)){break i}f=(e<<1)-f|0;break f}if(d){break f}d=0;e=D[a+92>>2];if((e|0)>=(f|0)){break f}f=(e<<1)-f|0}e=j<<3;h=e+b|0;k=D[h+4>>2];h=D[h>>2];D[g+36>>2]=d;D[g+32>>2]=f;D[g+24>>2]=h;D[g+28>>2]=k;Kb(g+40|0,m,g+32|0,g+24|0);d=c+e|0;D[d>>2]=D[g+40>>2];D[d+4>>2]=D[g+44>>2];j=j+1|0;if((p|0)==(j|0)){break a}e=D[a+40>>2];d=D[e>>2];if(D[e+4>>2]-d>>2>>>0>j>>>0){continue}break}}ua();T()}$=g+48|0;return 1}function Ah(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;g=$-48|0;$=g;d=D[a+8>>2];if(d-31>>>0>=4294967267){D[a+76>>2]=d;e=-1<<d;d=-2-e|0;D[a+84>>2]=d;D[a+80>>2]=e^-1;D[a+92>>2]=(d|0)/2;H[a+88>>2]=K(2)/K(d|0)}D[a+52>>2]=f;e=D[a+40>>2];d=D[e>>2];f=D[e+4>>2];D[g+16>>2]=0;D[g+8>>2]=0;D[g+12>>2]=0;a:{f=f-d|0;if((f|0)<=0){break a}d=D[e>>2];if((d|0)!=D[e+4>>2]){m=a+8|0;n=a+96|0;o=a+44|0;e=f>>>2|0;p=e>>>0>1?e:1;while(1){Lb(o,D[(j<<2)+d>>2],g+8|0);e=D[g+12>>2];d=e>>31;f=D[g+8>>2];h=f>>31;k=D[g+16>>2];i=k>>31;i=i^i+k;h=i+((d^d+e)+(h^f+h)|0)|0;d=0;d=h>>>0<i>>>0?1:d;b:{if(!(d|h)){D[g+8>>2]=D[a+92>>2];break b}i=D[a+92>>2];l=i>>31;f=bi(ai(i,l,f,f>>31),aa,h,d);D[g+8>>2]=f;d=bi(ai(i,l,e,e>>31),aa,h,d);D[g+12>>2]=d;e=d>>31;e=e^d+e;d=f>>31;d=e+(d+f^d)|0;if((k|0)>=0){D[g+16>>2]=i-d;break b}D[g+16>>2]=d-i}d=Ga(n);f=D[g+8>>2];c:{if(d){D[g+16>>2]=0-D[g+16>>2];e=0-D[g+12>>2]|0;D[g+12>>2]=e;f=0-f|0;D[g+8>>2]=f;break c}e=D[g+12>>2]}d:{if((f|0)>=0){f=D[a+92>>2];d=f+D[g+16>>2]|0;f=e+f|0;break d}e:{if((e|0)<0){d=D[g+16>>2];f=d>>31;f=f^d+f;break e}d=D[g+16>>2];f=d>>31;f=D[a+84>>2]-(f^d+f)|0}if((d|0)<0){d=e>>31;d=d+e^d;break d}d=e>>31;d=D[a+84>>2]-(d+e^d)|0}e=D[a+84>>2];f:{if(!(d|f)){d=e;f=d;break f}if(!((d|0)!=(e|0)|f)){f=d;break f}if(!((e|0)!=(f|0)|d)){d=f;break f}g:{if(f){break g}h=D[a+92>>2];if((h|0)>=(d|0)){break g}d=(h<<1)-d|0;f=0;break f}h:{if((e|0)!=(f|0)){break h}h=D[a+92>>2];if((h|0)<=(d|0)){break h}d=(h<<1)-d|0;break f}i:{if((d|0)!=(e|0)){break i}e=D[a+92>>2];if((e|0)<=(f|0)){break i}f=(e<<1)-f|0;break f}if(d){break f}d=0;e=D[a+92>>2];if((e|0)>=(f|0)){break f}f=(e<<1)-f|0}e=j<<3;h=e+b|0;k=D[h+4>>2];h=D[h>>2];D[g+36>>2]=d;D[g+32>>2]=f;D[g+24>>2]=h;D[g+28>>2]=k;Kb(g+40|0,m,g+32|0,g+24|0);d=c+e|0;D[d>>2]=D[g+40>>2];D[d+4>>2]=D[g+44>>2];j=j+1|0;if((p|0)==(j|0)){break a}e=D[a+40>>2];d=D[e>>2];if(D[e+4>>2]-d>>2>>>0>j>>>0){continue}break}}ua();T()}$=g+48|0;return 1}function Jh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=$-32|0;$=e;a:{if((c|0)!=3){break a}c=D[a+4>>2];f=D[a+12>>2];D[e+24>>2]=-1;D[e+16>>2]=-1;D[e+20>>2]=1065353216;D[e+8>>2]=-1;D[e+12>>2]=-1;if((b|0)==-2){break a}j=D[D[D[c+4>>2]+8>>2]+(f<<2)>>2];if((ba[D[D[c>>2]+8>>2]](c)|0)==1){i=D[D[D[c+4>>2]+8>>2]+(f<<2)>>2];b:{if((ba[D[D[c>>2]+8>>2]](c)|0)!=1|b-1>>>0>5){break b}h=ba[D[D[c>>2]+36>>2]](c)|0;a=ba[D[D[c>>2]+44>>2]](c,f)|0;if(!h|!a){break b}g=a+12|0;f=ba[D[D[c>>2]+40>>2]](c,f)|0;c=D[c+44>>2];if(f){if((b|0)!=6){break b}d=na(112);D[d+4>>2]=i;b=D[e+12>>2];D[d+8>>2]=D[e+8>>2];D[d+12>>2]=b;b=D[e+20>>2];D[d+16>>2]=D[e+16>>2];D[d+20>>2]=b;D[d+24>>2]=D[e+24>>2];D[d+40>>2]=a;D[d+36>>2]=g;D[d+32>>2]=f;D[d+28>>2]=c;D[d+68>>2]=a;D[d- -64>>2]=g;D[d+60>>2]=f;D[d+56>>2]=c;D[d+48>>2]=0;D[d+52>>2]=0;D[d>>2]=5956;D[d+88>>2]=1065353216;D[d+92>>2]=-1;D[d+80>>2]=-1;D[d+84>>2]=-1;D[d+72>>2]=1;D[d+76>>2]=-1;D[d+44>>2]=6520;a=d+96|0;D[a>>2]=0;D[a+4>>2]=0;B[a+5|0]=0;B[a+6|0]=0;B[a+7|0]=0;B[a+8|0]=0;B[a+9|0]=0;B[a+10|0]=0;B[a+11|0]=0;B[a+12|0]=0;break b}if((b|0)!=6){break b}d=na(112);D[d+4>>2]=i;b=D[e+12>>2];D[d+8>>2]=D[e+8>>2];D[d+12>>2]=b;b=D[e+20>>2];D[d+16>>2]=D[e+16>>2];D[d+20>>2]=b;D[d+24>>2]=D[e+24>>2];D[d+40>>2]=a;D[d+36>>2]=g;D[d+32>>2]=h;D[d+28>>2]=c;D[d+68>>2]=a;D[d- -64>>2]=g;D[d+60>>2]=h;D[d+56>>2]=c;D[d+48>>2]=0;D[d+52>>2]=0;D[d>>2]=6960;D[d+88>>2]=1065353216;D[d+92>>2]=-1;D[d+80>>2]=-1;D[d+84>>2]=-1;D[d+72>>2]=1;D[d+76>>2]=-1;D[d+44>>2]=7380;a=d+96|0;D[a>>2]=0;D[a+4>>2]=0;B[a+5|0]=0;B[a+6|0]=0;B[a+7|0]=0;B[a+8|0]=0;B[a+9|0]=0;B[a+10|0]=0;B[a+11|0]=0;B[a+12|0]=0}if(d){break a}}d=na(28);D[d+4>>2]=j;a=D[e+12>>2];D[d+8>>2]=D[e+8>>2];D[d+12>>2]=a;a=D[e+20>>2];D[d+16>>2]=D[e+16>>2];D[d+20>>2]=a;D[d+24>>2]=D[e+24>>2];D[d>>2]=7792}$=e+32|0;return d|0}function jf(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;f=$-32|0;$=f;e=f+8|0;c=$-80|0;$=c;a=D[b+36>>2];D[c+72>>2]=D[b+32>>2];D[c+76>>2]=a;d=D[b+28>>2];a=c- -64|0;D[a>>2]=D[b+24>>2];D[a+4>>2]=d;a=D[b+20>>2];D[c+56>>2]=D[b+16>>2];D[c+60>>2]=a;a=D[b+12>>2];D[c+48>>2]=D[b+8>>2];D[c+52>>2]=a;a=D[b+4>>2];D[c+40>>2]=D[b>>2];D[c+44>>2]=a;gc(c+8|0,c+40|0,c+24|0);a=D[c+8>>2];a:{if(a){D[e>>2]=a;a=e+4|0;if(B[c+23|0]>=0){b=c+8|4;e=D[b+4>>2];D[a>>2]=D[b>>2];D[a+4>>2]=e;D[a+8>>2]=D[b+8>>2];break a}ta(a,D[c+12>>2],D[c+16>>2]);if(B[c+23|0]>=0){break a}ma(D[c+12>>2]);break a}if(B[c+23|0]<0){ma(D[c+12>>2])}a=E[c+31|0];if(a>>>0>=2){a=na(32);b=E[1619]|E[1620]<<8;B[a+24|0]=b;B[a+25|0]=b>>>8;b=E[1615]|E[1616]<<8|(E[1617]<<16|E[1618]<<24);d=E[1611]|E[1612]<<8|(E[1613]<<16|E[1614]<<24);B[a+16|0]=d;B[a+17|0]=d>>>8;B[a+18|0]=d>>>16;B[a+19|0]=d>>>24;B[a+20|0]=b;B[a+21|0]=b>>>8;B[a+22|0]=b>>>16;B[a+23|0]=b>>>24;b=E[1607]|E[1608]<<8|(E[1609]<<16|E[1610]<<24);d=E[1603]|E[1604]<<8|(E[1605]<<16|E[1606]<<24);B[a+8|0]=d;B[a+9|0]=d>>>8;B[a+10|0]=d>>>16;B[a+11|0]=d>>>24;B[a+12|0]=b;B[a+13|0]=b>>>8;B[a+14|0]=b>>>16;B[a+15|0]=b>>>24;b=E[1599]|E[1600]<<8|(E[1601]<<16|E[1602]<<24);d=E[1595]|E[1596]<<8|(E[1597]<<16|E[1598]<<24);B[a|0]=d;B[a+1|0]=d>>>8;B[a+2|0]=d>>>16;B[a+3|0]=d>>>24;B[a+4|0]=b;B[a+5|0]=b>>>8;B[a+6|0]=b>>>16;B[a+7|0]=b>>>24;B[a+26|0]=0;D[c+8>>2]=-1;b=c+8|4;ta(b,a,26);d=B[c+23|0];D[e>>2]=D[c+8>>2];e=e+4|0;b:{if((d|0)>=0){d=D[b+4>>2];D[e>>2]=D[b>>2];D[e+4>>2]=d;D[e+8>>2]=D[b+8>>2];break b}ta(e,D[c+12>>2],D[c+16>>2])}if(B[c+23|0]<0){ma(D[c+12>>2])}ma(a);break a}D[e>>2]=0;D[e+4>>2]=0;D[e+16>>2]=a;D[e+8>>2]=0;D[e+12>>2]=0}$=c+80|0;a=D[f+24>>2];if(B[f+23|0]<0){ma(D[f+12>>2])}$=f+32|0;return a|0}function If(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;i=c;a:{d=a;if(D[d+12>>2]==(b|0)){break a}a=b;b=D[d+4>>2];c=D[d>>2];if((b|0)!=(c|0)){while(1){e=b-12|0;if(B[b-1|0]<0){ma(D[e>>2])}b=e;if((c|0)!=(b|0)){continue}break}}D[d+12>>2]=a;D[d+4>>2]=c;b=D[a>>2];j=a+4|0;if((b|0)==(j|0)){break a}while(1){b:{if(D[d+8>>2]!=(c|0)){c:{if(B[b+27|0]>=0){a=D[b+20>>2];D[c>>2]=D[b+16>>2];D[c+4>>2]=a;D[c+8>>2]=D[b+24>>2];break c}ta(c,D[b+16>>2],D[b+20>>2])}D[d+4>>2]=c+12;break b}g=0;d:{e:{f:{e=D[d+4>>2];a=D[d>>2];f=(e-a|0)/12|0;c=f+1|0;if(c>>>0<357913942){h=(D[d+8>>2]-a|0)/12|0;k=h<<1;c=h>>>0<178956970?c>>>0>k>>>0?c:k:357913941;if(c){if(c>>>0>=357913942){break f}g=na(J(c,12))}h=J(c,12);c=J(f,12)+g|0;g:{if(B[b+27|0]>=0){f=D[b+20>>2];D[c>>2]=D[b+16>>2];D[c+4>>2]=f;D[c+8>>2]=D[b+24>>2];break g}ta(c,D[b+16>>2],D[b+20>>2]);e=D[d+4>>2];a=D[d>>2]}g=g+h|0;f=c+12|0;if((a|0)==(e|0)){break e}while(1){e=e-12|0;h=D[e+4>>2];c=c-12|0;D[c>>2]=D[e>>2];D[c+4>>2]=h;D[c+8>>2]=D[e+8>>2];D[e>>2]=0;D[e+4>>2]=0;D[e+8>>2]=0;if((a|0)!=(e|0)){continue}break}D[d+8>>2]=g;a=D[d+4>>2];D[d+4>>2]=f;e=D[d>>2];D[d>>2]=c;if((a|0)==(e|0)){break d}while(1){c=a-12|0;if(B[a-1|0]<0){ma(D[c>>2])}a=c;if((c|0)!=(e|0)){continue}break}break d}qa();T()}ra(1326);T()}D[d+8>>2]=g;D[d+4>>2]=f;D[d>>2]=c}if(e){ma(e)}}c=D[b+4>>2];h:{if(!c){a=D[b+8>>2];if(D[a>>2]==(b|0)){break h}b=b+8|0;while(1){c=D[b>>2];b=c+8|0;a=D[c+8>>2];if((c|0)!=D[a>>2]){continue}break}break h}while(1){a=c;c=D[c>>2];if(c){continue}break}}if((a|0)==(j|0)){break a}c=D[d+4>>2];b=a;continue}}c=0;i:{if((i|0)<0){break i}a=D[d>>2];if((D[d+4>>2]-a|0)/12>>>0<=i>>>0){break i}a=a+J(i,12)|0;c=B[a+11|0]<0?D[a>>2]:a}return c|0}function Jd(a,b){var 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;a:{if(!F[b+38>>1]){break a}if(!Ua(1,a+12|0,b)){break a}f=D[a+12>>2];c=D[a>>2];d=D[a+4>>2]-c>>2;b:{if(f>>>0>d>>>0){sa(a,f-d|0);f=D[a+12>>2];break b}if(d>>>0<=f>>>0){break b}D[a+4>>2]=c+(f<<2)}if(!f){return 1}j=D[b+8>>2];i=D[b+12>>2];l=D[a>>2];while(1){d=D[b+20>>2];c=D[b+16>>2];if((i|0)<=(d|0)&j>>>0<=c>>>0|(d|0)>(i|0)){return 0}m=D[b>>2];k=E[m+c|0];c=c+1|0;d=c?d:d+1|0;g=c;D[b+16>>2]=c;D[b+20>>2]=d;c=k>>>2|0;e=0;c:{d:{e:{f:{n=k&3;switch(n|0){case 3:break f;case 0:break d;default:break e}}d=c+h|0;if(d>>>0>=f>>>0){return 0}pa(l+(h<<2)|0,0,(k&252)+4|0);h=d;break c}while(1){if((d|0)>=(i|0)&g>>>0>=j>>>0|(d|0)>(i|0)){break a}f=E[g+m|0];g=g+1|0;d=g?d:d+1|0;D[b+16>>2]=g;D[b+20>>2]=d;c=f<<(e<<3|6)|c;e=e+1|0;if((n|0)!=(e|0)){continue}break}}D[l+(h<<2)>>2]=c}f=D[a+12>>2];h=h+1|0;if(f>>>0>h>>>0){continue}break}d=a+16|0;k=D[a>>2];c=D[a+16>>2];b=D[a+20>>2]-c|0;g:{if(b>>>0<=16383){sa(d,4096-(b>>>2|0)|0);break g}if((b|0)==16384){break g}D[a+20>>2]=c+16384}b=a+28|0;h=D[b>>2];c=D[a+32>>2]-h>>3;h:{if(c>>>0<f>>>0){db(b,f-c|0);h=D[b>>2];break h}if(c>>>0>f>>>0){D[a+32>>2]=(f<<3)+h}if(!f){break a}}e=0;a=0;while(1){b=k+(e<<2)|0;i=D[b>>2];c=a;g=(e<<3)+h|0;D[g+4>>2]=a;D[g>>2]=i;i=D[b>>2];a=i+a|0;if(a>>>0>4096){break a}i:{if(a>>>0<=c>>>0){break i}g=D[d>>2];b=0;j=i&7;if(j){while(1){D[g+(c<<2)>>2]=e;c=c+1|0;b=b+1|0;if((j|0)!=(b|0)){continue}break}}if(i-1>>>0<=6){break i}while(1){b=g+(c<<2)|0;D[b>>2]=e;D[b+28>>2]=e;D[b+24>>2]=e;D[b+20>>2]=e;D[b+16>>2]=e;D[b+12>>2]=e;D[b+8>>2]=e;D[b+4>>2]=e;c=c+8|0;if((c|0)!=(a|0)){continue}break}}e=e+1|0;if((f|0)!=(e|0)){continue}break}o=(a|0)==4096}return o}function Kc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;k=$-16|0;$=k;D[k+8>>2]=c;e=D[a+12>>2];d=D[a+8>>2];f=e-d>>2;a:{if((f|0)>(b|0)){break a}h=b+1|0;if(h>>>0>f>>>0){f=h-f|0;g=D[a+16>>2];d=D[a+12>>2];if(f>>>0<=g-d>>2>>>0){if(f){e=d;d=f<<2;d=pa(e,0,d)+d|0}D[a+12>>2]=d;break a}b:{c:{d:{h=D[a+8>>2];i=d-h>>2;e=i+f|0;if(e>>>0<1073741824){g=g-h|0;l=g>>1;g=g>>>0<2147483644?e>>>0>l>>>0?e:l:1073741823;if(g){if(g>>>0>=1073741824){break d}j=na(g<<2)}e=(i<<2)+j|0;i=f<<2;f=pa(e,0,i);i=f+i|0;g=(g<<2)+j|0;if((d|0)==(h|0)){break c}while(1){d=d-4|0;f=D[d>>2];D[d>>2]=0;e=e-4|0;D[e>>2]=f;if((d|0)!=(h|0)){continue}break}D[a+16>>2]=g;f=D[a+12>>2];D[a+12>>2]=i;d=D[a+8>>2];D[a+8>>2]=e;if((d|0)==(f|0)){break b}while(1){f=f-4|0;e=D[f>>2];D[f>>2]=0;if(e){ya(e)}if((d|0)!=(f|0)){continue}break}break b}qa();T()}ra(1326);T()}D[a+16>>2]=g;D[a+12>>2]=i;D[a+8>>2]=f}if(d){ma(d)}break a}if(f>>>0<=h>>>0){break a}d=d+(h<<2)|0;if((d|0)!=(e|0)){while(1){e=e-4|0;c=D[e>>2];D[e>>2]=0;if(c){ya(c)}if((d|0)!=(e|0)){continue}break}c=D[k+8>>2]}D[a+12>>2]=d}e:{f:{d=D[c+56>>2];g:{if((d|0)>4){break g}e=J(d,12)+a|0;d=D[e+24>>2];if((d|0)!=D[e+28>>2]){D[d>>2]=b;D[e+24>>2]=d+4;break g}h=D[e+20>>2];f=d-h|0;j=f>>2;d=j+1|0;if(d>>>0>=1073741824){break f}g=f>>1;g=f>>>0<2147483644?d>>>0>g>>>0?d:g:1073741823;if(g){if(g>>>0>=1073741824){break e}d=na(g<<2)}else{d=0}j=d+(j<<2)|0;D[j>>2]=b;if((f|0)>0){oa(d,h,f)}D[e+20>>2]=d;D[e+24>>2]=j+4;D[e+28>>2]=d+(g<<2);if(!h){break g}ma(h)}D[c+60>>2]=b;a=D[a+8>>2];D[k+8>>2]=0;b=a+(b<<2)|0;a=D[b>>2];D[b>>2]=c;if(a){ya(a)}a=D[k+8>>2];D[k+8>>2]=0;if(a){ya(a)}$=k+16|0;return}qa();T()}ra(1326);T()}function Yc(a,b){a=a|0;b=b|0;var 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;g=$-80|0;$=g;a:{if(!Wb(1,g+76|0,b)){break a}h=D[g+76>>2];if(!h){break a}d=D[b+8>>2];c=D[b+16>>2];d=ai(d-c|0,D[b+12>>2]-(D[b+20>>2]+(c>>>0>d>>>0)|0)|0,5,0);c=aa;if(d>>>0<h>>>0&(c|0)<=0|(c|0)<0){break a}c=D[a+4>>2];d=D[a+8>>2]-c>>2;b:{if(d>>>0<h>>>0){sa(a+4|0,h-d|0);break b}if(d>>>0<=h>>>0){break b}D[a+8>>2]=c+(h<<2)}r=a+16|0;j=D[a+32>>2];k=1;while(1){c:{e=D[b+12>>2];c=e;d=D[b+20>>2];p=D[b+8>>2];m=D[b+16>>2];if((c|0)<=(d|0)&p>>>0<=m>>>0|(c|0)<(d|0)){break c}q=D[b>>2];o=E[q+m|0];c=d;f=m+1|0;c=f?c:c+1|0;D[b+16>>2]=f;D[b+20>>2]=c;if((c|0)>=(e|0)&f>>>0>=p>>>0|(c|0)>(e|0)){break c}f=E[f+q|0];c=d;i=m+2|0;c=i>>>0<2?c+1|0:c;D[b+16>>2]=i;D[b+20>>2]=c;if((c|0)>=(e|0)&i>>>0>=p>>>0|(c|0)>(e|0)){break c}i=E[i+q|0];c=d;n=m+3|0;c=n>>>0<3?c+1|0:c;D[b+16>>2]=n;D[b+20>>2]=c;if((c|0)>=(e|0)&n>>>0>=p>>>0|(c|0)>(e|0)){break c}e=E[n+q|0];c=d;d=m+4|0;c=d>>>0<4?c+1|0:c;D[b+16>>2]=d;D[b+20>>2]=c;if(!i|((f-12&255)>>>0<245|o>>>0>4)){break c}c=mb(g+8|0);n=i<<24>>24;e=(e|0)!=0;d=f-1|0;if(d>>>0<=10){d=D[(d<<2)+10180>>2]}else{d=-1}d=J(d,i);$b(c,o,n,f,e,d,d>>31);if(!Wb(1,g+4|0,b)){break c}f=D[g+4>>2];D[g+68>>2]=f;d=_b(na(96),c);ba[D[D[j>>2]+8>>2]](j,D[j+12>>2]-D[j+8>>2]>>2,d);d=(D[j+12>>2]-D[j+8>>2]>>2)-1|0;o=d<<2;D[D[o+D[j+8>>2]>>2]+60>>2]=f;D[D[a+4>>2]+(l<<2)>>2]=d;k=D[a+16>>2];c=D[a+20>>2]-k>>2;d:{if((c|0)>(d|0)){break d}D[g>>2]=-1;d=d+1|0;if(d>>>0>c>>>0){xa(r,d-c|0,g);k=D[r>>2];break d}if(c>>>0<=d>>>0){break d}D[a+20>>2]=(d<<2)+k}D[k+o>>2]=l;l=l+1|0;k=l>>>0<h>>>0;if((h|0)!=(l|0)){continue}}break}l=!k}$=g+80|0;return l&1}function vd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=$-16|0;$=i;D[i>>2]=b;g=-1;a:{if((b|0)==-1){D[i+4>>2]=-1;break a}c=b+1|0;D[i+4>>2]=(c>>>0)%3|0?c:b-2|0;if((b>>>0)%3|0){g=b-1|0;break a}g=b+2|0}D[i+8>>2]=g;m=(b|0)==-1?-1:(b>>>0)/3|0;b:{c:{d:{e:{while(1){f:{g:{if((b|0)!=-1){c=D[D[D[a+8>>2]+12>>2]+(b<<2)>>2];if((c|0)!=-1){break g}}g=0;c=D[a+216>>2];if((c|0)==D[a+220>>2]){break f}while(1){f=J(g,144)+c|0;c=D[f+136>>2];d=D[f+140>>2];h:{if(c>>>0<d>>>0){D[c>>2]=b;D[f+136>>2]=c+4;break h}h=D[f+132>>2];j=c-h|0;e=j>>2;c=e+1|0;if(c>>>0>=1073741824){break e}k=e<<2;d=d-h|0;e=d>>1;d=d>>>0<2147483644?c>>>0>e>>>0?c:e:1073741823;if(d){if(d>>>0>=1073741824){break d}c=na(d<<2)}else{c=0}e=k+c|0;D[e>>2]=b;if((j|0)>0){oa(c,h,j)}D[f+132>>2]=c;D[f+136>>2]=e+4;D[f+140>>2]=c+(d<<2);if(!h){break h}ma(h)}g=g+1|0;c=D[a+216>>2];if(g>>>0<(D[a+220>>2]-c|0)/144>>>0){continue}break}break f}if((c>>>0)/3>>>0<m>>>0){break f}g=0;if(D[a+220>>2]==D[a+216>>2]){break f}while(1){i:{if(!Ga(D[a+368>>2]+(g<<4)|0)){break i}f=D[a+216>>2]+J(g,144)|0;c=D[f+136>>2];d=D[f+140>>2];if(c>>>0<d>>>0){D[c>>2]=b;D[f+136>>2]=c+4;break i}h=D[f+132>>2];j=c-h|0;e=j>>2;c=e+1|0;if(c>>>0>=1073741824){break c}k=e<<2;d=d-h|0;e=d>>1;d=d>>>0<2147483644?c>>>0>e>>>0?c:e:1073741823;if(d){if(d>>>0>=1073741824){break b}c=na(d<<2)}else{c=0}e=k+c|0;D[e>>2]=b;if((j|0)>0){oa(c,h,j)}D[f+132>>2]=c;D[f+136>>2]=e+4;D[f+140>>2]=c+(d<<2);if(!h){break i}ma(h)}g=g+1|0;if(g>>>0<(D[a+220>>2]-D[a+216>>2]|0)/144>>>0){continue}break}}l=l+1|0;if((l|0)!=3){b=D[(l<<2)+i>>2];continue}break}$=i+16|0;return 1}qa();T()}ra(1326);T()}qa();T()}ra(1326);T()}
function wd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;i=$-16|0;$=i;k=-1;a:{b:{c:{if(!Da(1,i+12|0,b)){break c}d=D[i+12>>2];if(d){c=D[a+8>>2];if(d>>>0>(D[c+4>>2]-D[c>>2]>>2>>>0)/3>>>0){break c}while(1){if(!Da(1,i+8|0,b)){break c}c=D[i+8>>2];if(!Da(1,i+8|0,b)){break c}f=c+f|0;c=D[i+8>>2];if(f>>>0<c>>>0){break c}g=f-c|0;c=D[a+40>>2];d:{if((c|0)!=D[a+44>>2]){D[c+4>>2]=f;D[c>>2]=g;D[a+40>>2]=c+12;break d}e=c;c=D[a+36>>2];j=e-c|0;h=(j|0)/12|0;e=h+1|0;if(e>>>0>=357913942){break b}l=h<<1;e=h>>>0<178956970?e>>>0>l>>>0?e:l:357913941;if(e>>>0>=357913942){break a}e=J(e,12);l=na(e);h=l+J(h,12)|0;D[h+4>>2]=f;D[h>>2]=g;g=h+J((j|0)/-12|0,12)|0;if((j|0)>0){oa(g,c,j)}D[a+44>>2]=e+l;D[a+40>>2]=h+12;D[a+36>>2]=g;if(!c){break d}ma(c)}m=m+1|0;if((d|0)!=(m|0)){continue}break}f=0;ec(b,0,0);h=d>>>0>1?d:1;while(1){d=E[b+36|0];c=F[D[a+4>>2]+36>>1];e:{f:{if(((c<<8|c>>>8)&65535)>>>0<=513){if(!d){break e}g=0;c=D[b+32>>2];j=c>>>3|0;k=D[b+24>>2];d=j+k|0;e=D[b+28>>2];g:{if(d>>>0>=e>>>0){d=c;break g}g=E[d|0];d=c+1|0;D[b+32>>2]=d;j=d>>>3|0;g=g>>>(c&7)&1}if(e>>>0>j+k>>>0){break f}break e}if(!d){break e}g=0;d=D[b+32>>2];c=D[b+24>>2]+(d>>>3|0)|0;if(c>>>0>=G[b+28>>2]){break e}g=E[c|0]>>>(d&7)&1}D[b+32>>2]=d+1}d=D[a+36>>2]+J(f,12)|0;B[d+8|0]=E[d+8|0]&254|g&1;f=f+1|0;if((h|0)!=(f|0)){continue}break}B[b+36|0]=0;c=D[b+20>>2];a=0;d=D[b+32>>2]+7|0;a=d>>>0<7?1:a;f=a<<29|d>>>3;d=f+D[b+16>>2]|0;a=(a>>>3|0)+c|0;D[b+16>>2]=d;D[b+20>>2]=d>>>0<f>>>0?a+1|0:a}k=D[b+16>>2]}$=i+16|0;return k}qa();T()}ra(1326);T()}function ic(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;e=D[a+8>>2];g=D[a+4>>2];if((e-g|0)/12>>>0>=b>>>0){a:{if(!b){break a}d=g;e=J(b,12)-12|0;f=((e>>>0)/12|0)+1&3;if(f){while(1){j=D[c+4>>2];D[d>>2]=D[c>>2];D[d+4>>2]=j;D[d+8>>2]=D[c+8>>2];d=d+12|0;h=h+1|0;if((f|0)!=(h|0)){continue}break}}g=J(b,12)+g|0;if(e>>>0<36){break a}while(1){b=D[c+4>>2];D[d>>2]=D[c>>2];D[d+4>>2]=b;D[d+8>>2]=D[c+8>>2];D[d+20>>2]=D[c+8>>2];b=D[c+4>>2];D[d+12>>2]=D[c>>2];D[d+16>>2]=b;D[d+32>>2]=D[c+8>>2];b=D[c+4>>2];D[d+24>>2]=D[c>>2];D[d+28>>2]=b;b=D[c+4>>2];D[d+36>>2]=D[c>>2];D[d+40>>2]=b;D[d+44>>2]=D[c+8>>2];d=d+48|0;if((g|0)!=(d|0)){continue}break}}D[a+4>>2]=g;return}b:{f=D[a>>2];i=(g-f|0)/12|0;d=i+b|0;if(d>>>0<357913942){e=(e-f|0)/12|0;f=e<<1;f=e>>>0<178956970?d>>>0>f>>>0?d:f:357913941;if(f){if(f>>>0>=357913942){break b}j=na(J(f,12))}e=J(i,12)+j|0;d=e;b=J(b,12);i=b-12|0;k=((i>>>0)/12|0)+1&3;if(k){d=e;while(1){l=D[c+4>>2];D[d>>2]=D[c>>2];D[d+4>>2]=l;D[d+8>>2]=D[c+8>>2];d=d+12|0;h=h+1|0;if((k|0)!=(h|0)){continue}break}}h=b+e|0;if(i>>>0>=36){while(1){b=D[c+4>>2];D[d>>2]=D[c>>2];D[d+4>>2]=b;D[d+8>>2]=D[c+8>>2];D[d+20>>2]=D[c+8>>2];b=D[c+4>>2];D[d+12>>2]=D[c>>2];D[d+16>>2]=b;D[d+32>>2]=D[c+8>>2];b=D[c+4>>2];D[d+24>>2]=D[c>>2];D[d+28>>2]=b;b=D[c+4>>2];D[d+36>>2]=D[c>>2];D[d+40>>2]=b;D[d+44>>2]=D[c+8>>2];d=d+48|0;if((h|0)!=(d|0)){continue}break}}b=D[a>>2];c=g-b|0;d=e+J((c|0)/-12|0,12)|0;if((c|0)>0){oa(d,b,c)}D[a+8>>2]=J(f,12)+j;D[a+4>>2]=h;D[a>>2]=d;if(b){ma(b)}return}qa();T()}ra(1326);T()}function rf(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0;a=0;h=$-16|0;$=h;j=D[b+80>>2];e=B[c+24|0];D[h+8>>2]=0;D[h>>2]=0;D[h+4>>2]=0;a:{b:{if(e){if((e|0)<0){break b}b=e<<2;a=na(b);D[h>>2]=a;g=a+b|0;D[h+8>>2]=g;k=e-1&1073741823;l=e&7;c:{if(!l){b=a;break c}b=a;while(1){D[b>>2]=-1073741824;b=b+4|0;f=f+1|0;if((l|0)!=(f|0)){continue}break}}if(k>>>0>=7){while(1){D[b+24>>2]=-1073741824;D[b+28>>2]=-1073741824;D[b+16>>2]=-1073741824;D[b+20>>2]=-1073741824;D[b+8>>2]=-1073741824;D[b+12>>2]=-1073741824;D[b>>2]=-1073741824;D[b+4>>2]=-1073741824;b=b+32|0;if((g|0)!=(b|0)){continue}break}}D[h+4>>2]=g}b=J(e,j);g=D[d>>2];f=D[d+4>>2]-g>>2;d:{if(b>>>0>f>>>0){sa(d,b-f|0);break d}if(b>>>0>=f>>>0){break d}D[d+4>>2]=g+(b<<2)}e:{if(!j){break e}i=1;if((e|0)<=0){b=0;while(1){if(!nb(c,E[c+84|0]?b:D[D[c+68>>2]+(b<<2)>>2],B[c+24|0],a)){break e}b=b+1|0;i=j>>>0>b>>>0;if((b|0)!=(j|0)){continue}break}break e}p=e&-4;l=e&3;f=0;q=e-1>>>0<3;while(1){if(nb(c,E[c+84|0]?m:D[D[c+68>>2]+(m<<2)>>2],B[c+24|0],a)){o=D[d>>2];n=0;e=D[h>>2];b=0;i=0;if(!q){while(1){g=o+(f<<2)|0;k=b<<2;H[g>>2]=H[k+e>>2];H[g+4>>2]=H[(k|4)+e>>2];H[g+8>>2]=H[(k|8)+e>>2];H[g+12>>2]=H[(k|12)+e>>2];b=b+4|0;f=f+4|0;i=i+4|0;if((p|0)!=(i|0)){continue}break}}if(l){while(1){H[o+(f<<2)>>2]=H[(b<<2)+e>>2];b=b+1|0;f=f+1|0;n=n+1|0;if((l|0)!=(n|0)){continue}break}}m=m+1|0;i=m>>>0<j>>>0;if((j|0)!=(m|0)){continue}}break}a=D[h>>2]}if(a){ma(a)}$=h+16|0;a=(i^-1)&1;break a}qa();T()}return a|0}function Kb(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;k=D[b+16>>2];g=D[c+4>>2]-k|0;e=g;f=D[c>>2]-k|0;D[c>>2]=f;D[c+4>>2]=e;j=D[b+16>>2];e=e>>31;h=e+g^e;e=f>>31;l=(j|0)>=(h+(e+f^e)|0);a:{if(l){e=g;break a}b:{c:{if((f|0)>=0){i=1;h=1;if((g|0)>=0){break b}e=1;i=-1;h=-1;if(f){break c}break b}e=-1;i=-1;h=-1;if((g|0)<=0){break b}}i=(g|0)<=0?-1:1;h=e}e=f<<1;f=J(h,j);e=e-f|0;h=(J(i,h)|0)>=0;i=J(i,j);e=((h?0-e|0:e)+i|0)/2|0;D[c+4>>2]=e;j=f;f=(g<<1)-i|0;f=(j+(h?0-f|0:f)|0)/2|0;D[c>>2]=f}d:{e:{f:{g:{h:{i:{j:{if(f){if((f|0)<0){break j}if((e|0)>=0){break i}break f}if(e){break h}i=1;g=0;e=0;h=0;break d}i=1;if((e|0)>0){break g}h=(e|0)>0?253:0;g=e;e=f;break d}g=0-e|0;e=0-f|0;h=254;break e}if((e|0)<=0){break f}}e=0-e|0;g=f;h=253;break e}g=0-f|0;h=255}D[c>>2]=e;D[c+4>>2]=g;i=0}c=D[d+4>>2]+g|0;f=D[d>>2]+e|0;g=D[b+16>>2];k:{if((f|0)>(g|0)){f=f-D[b+4>>2]|0;break k}if((0-g|0)<=(f|0)){break k}f=D[b+4>>2]+f|0}l:{if((c|0)>(g|0)){c=c-D[b+4>>2]|0;break l}if((0-g|0)<=(c|0)){break l}c=D[b+4>>2]+c|0}m:{if(i){b=c;break m}b=c;n:{switch((h&3)-1|0){case 0:b=0-f|0;f=c;break m;case 1:b=0-c|0;f=0-f|0;break m;case 2:break n;default:break m}}b=f;f=0-c|0}o:{if(l){c=b;break o}p:{q:{if((f|0)>=0){c=1;e=1;if((b|0)>=0){break p}d=1;c=-1;e=-1;if(f){break q}break p}d=-1;c=-1;e=-1;if((b|0)<=0){break p}}c=(b|0)<=0?-1:1;e=d}d=f<<1;f=J(e,g);d=d-f|0;D[a>>2]=d;j=0-d|0;h=d;d=(J(c,e)|0)>=0;e=J(c,g);c=((d?j:h)+e|0)/2|0;b=(b<<1)-e|0;f=(f+(d?0-b|0:b)|0)/2|0}D[a>>2]=f+k;D[a+4>>2]=c+k}function rb(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;h=d-c|0;if((h|0)<=0){return}a:{f=D[a+8>>2];i=D[a+4>>2];if((h|0)<=(f-i|0)){j=i-b|0;if((j|0)>=(h|0)){g=i;f=d;break a}g=i;f=c+j|0;if((f|0)!=(d|0)){e=f;while(1){B[g|0]=E[e|0];g=g+1|0;e=e+1|0;if((e|0)!=(d|0)){continue}break}}D[a+4>>2]=g;if((j|0)>0){break a}return}e=D[a>>2];d=h+(i-e|0)|0;if((d|0)>=0){g=b-e|0;f=f-e|0;j=f<<1;f=f>>>0<1073741823?d>>>0>j>>>0?d:j:2147483647;if(f){d=na(f)}else{d=0}c=oa(g+d|0,c,h);if((g|0)>0){oa(d,e,g)}c=c+h|0;if((b|0)!=(i|0)){g=(b^-1)+i|0;h=i-b&7;if(h){e=0;while(1){B[c|0]=E[b|0];c=c+1|0;b=b+1|0;e=e+1|0;if((h|0)!=(e|0)){continue}break}}if(g>>>0>=7){while(1){B[c|0]=E[b|0];B[c+1|0]=E[b+1|0];B[c+2|0]=E[b+2|0];B[c+3|0]=E[b+3|0];B[c+4|0]=E[b+4|0];B[c+5|0]=E[b+5|0];B[c+6|0]=E[b+6|0];B[c+7|0]=E[b+7|0];c=c+8|0;b=b+8|0;if((i|0)!=(b|0)){continue}break}}e=D[a>>2]}D[a+8>>2]=d+f;D[a+4>>2]=c;D[a>>2]=d;if(e){ma(e)}return}qa();T()}e=g;d=e-h|0;if(i>>>0>d>>>0){while(1){B[e|0]=E[d|0];e=e+1|0;d=d+1|0;if(i>>>0>d>>>0){continue}break}}D[a+4>>2]=e;a=g-(b+h|0)|0;if(a){Pa(g-a|0,b,a)}if((c|0)==(f|0)){return}a=(c^-1)+f|0;g=f-c&7;b:{if(!g){e=b;break b}d=0;e=b;while(1){B[e|0]=E[c|0];e=e+1|0;c=c+1|0;d=d+1|0;if((g|0)!=(d|0)){continue}break}}if(a>>>0<7){return}while(1){B[e|0]=E[c|0];B[e+1|0]=E[c+1|0];B[e+2|0]=E[c+2|0];B[e+3|0]=E[c+3|0];B[e+4|0]=E[c+4|0];B[e+5|0]=E[c+5|0];B[e+6|0]=E[c+6|0];B[e+7|0]=E[c+7|0];e=e+8|0;c=c+8|0;if((f|0)!=(c|0)){continue}break}}function mf(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=$-16|0;$=e;i=D[b+80>>2];a=B[c+24|0];f=J(i,a);a:{b:{b=D[c+28>>2];c:{if(!(!E[c+84|0]|(b|0)!=5&(b|0)!=6)){h=D[c+48>>2];i=D[D[c>>2]>>2];b=0;D[e+8>>2]=0;D[e>>2]=0;D[e+4>>2]=0;c=0;a=f<<2;if(a){if((a|0)<0){break b}c=na(a);b=oa(c,h+i|0,a);j=b+a|0;b=b+(a>>2<<2)|0}a=D[d>>2];if(a){D[d+4>>2]=a;ma(a)}D[d+8>>2]=b;D[d+4>>2]=j;D[d>>2]=c;a=1;break c}D[e+8>>2]=0;D[e>>2]=0;D[e+4>>2]=0;if(a){if((a|0)<0){break b}b=a<<2;h=na(b);D[e>>2]=h;g=b+h|0;D[e+8>>2]=g;pa(h,0,b);D[e+4>>2]=g}g=D[d>>2];b=D[d+4>>2]-g>>2;d:{if(b>>>0<f>>>0){sa(d,f-b|0);break d}if(b>>>0<=f>>>0){break d}D[d+4>>2]=g+(f<<2)}e:{if(!i){b=0;break e}if(!a){a=0;b=1;while(1){if(!zb(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],h)){break e}a=a+1|0;b=i>>>0>a>>>0;if((a|0)!=(i|0)){continue}break}break e}p=a&-4;n=a&3;q=a-1>>>0<3;b=1;f=0;while(1){if(zb(c,E[c+84|0]?f:D[D[c+68>>2]+(f<<2)>>2],B[c+24|0],h)){o=D[d>>2];m=0;g=D[e>>2];a=0;b=0;if(!q){while(1){k=(j<<2)+o|0;l=a<<2;D[k>>2]=D[g+l>>2];D[k+4>>2]=D[g+(l|4)>>2];D[k+8>>2]=D[g+(l|8)>>2];D[k+12>>2]=D[g+(l|12)>>2];a=a+4|0;j=j+4|0;b=b+4|0;if((p|0)!=(b|0)){continue}break}}if(n){while(1){D[(j<<2)+o>>2]=D[g+(a<<2)>>2];a=a+1|0;j=j+1|0;m=m+1|0;if((m|0)!=(n|0)){continue}break}}f=f+1|0;b=i>>>0>f>>>0;if((f|0)!=(i|0)){continue}}break}h=D[e>>2]}if(h){ma(h)}a=b^1}$=e+16|0;a=a&1;break a}qa();T()}return a|0}function $c(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=$-16|0;$=e;i=D[b+80>>2];a=B[c+24|0];f=J(i,a);a:{b:{b=D[c+28>>2];c:{if(!(!E[c+84|0]|(b|0)!=5&(b|0)!=6)){h=D[c+48>>2];i=D[D[c>>2]>>2];b=0;D[e+8>>2]=0;D[e>>2]=0;D[e+4>>2]=0;c=0;a=f<<2;if(a){if((a|0)<0){break b}c=na(a);b=oa(c,h+i|0,a);j=b+a|0;b=b+(a>>2<<2)|0}a=D[d>>2];if(a){D[d+4>>2]=a;ma(a)}D[d+8>>2]=b;D[d+4>>2]=j;D[d>>2]=c;a=1;break c}D[e+8>>2]=0;D[e>>2]=0;D[e+4>>2]=0;if(a){if((a|0)<0){break b}b=a<<2;h=na(b);D[e>>2]=h;g=b+h|0;D[e+8>>2]=g;pa(h,0,b);D[e+4>>2]=g}g=D[d>>2];b=D[d+4>>2]-g>>2;d:{if(b>>>0<f>>>0){sa(d,f-b|0);break d}if(b>>>0<=f>>>0){break d}D[d+4>>2]=g+(f<<2)}e:{if(!i){b=0;break e}if(!a){a=0;b=1;while(1){if(!Ab(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],h)){break e}a=a+1|0;b=i>>>0>a>>>0;if((a|0)!=(i|0)){continue}break}break e}p=a&-4;n=a&3;q=a-1>>>0<3;b=1;f=0;while(1){if(Ab(c,E[c+84|0]?f:D[D[c+68>>2]+(f<<2)>>2],B[c+24|0],h)){o=D[d>>2];m=0;g=D[e>>2];a=0;b=0;if(!q){while(1){k=(j<<2)+o|0;l=a<<2;D[k>>2]=D[g+l>>2];D[k+4>>2]=D[g+(l|4)>>2];D[k+8>>2]=D[g+(l|8)>>2];D[k+12>>2]=D[g+(l|12)>>2];a=a+4|0;j=j+4|0;b=b+4|0;if((p|0)!=(b|0)){continue}break}}if(n){while(1){D[(j<<2)+o>>2]=D[g+(a<<2)>>2];a=a+1|0;j=j+1|0;m=m+1|0;if((m|0)!=(n|0)){continue}break}}f=f+1|0;b=i>>>0>f>>>0;if((f|0)!=(i|0)){continue}}break}h=D[e>>2]}if(h){ma(h)}a=b^1}$=e+16|0;a=a&1;break a}qa();T()}return a|0}function of(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=$-16|0;$=e;i=D[b+80>>2];a=B[c+24|0];f=J(i,a);a:{b:{b=D[c+28>>2];c:{if(!(!E[c+84|0]|(b|0)!=3&(b|0)!=4)){h=D[c+48>>2];i=D[D[c>>2]>>2];b=0;D[e+8>>2]=0;D[e>>2]=0;D[e+4>>2]=0;c=0;a=f<<1;if(a){if((a|0)<0){break b}c=na(a);b=oa(c,h+i|0,a);j=b+a|0;b=b+(a>>1<<1)|0}a=D[d>>2];if(a){D[d+4>>2]=a;ma(a)}D[d+8>>2]=b;D[d+4>>2]=j;D[d>>2]=c;a=1;break c}D[e+8>>2]=0;D[e>>2]=0;D[e+4>>2]=0;if(a){if((a|0)<0){break b}b=a<<1;h=na(b);D[e>>2]=h;g=b+h|0;D[e+8>>2]=g;pa(h,0,b);D[e+4>>2]=g}g=D[d>>2];b=D[d+4>>2]-g>>1;d:{if(b>>>0<f>>>0){hd(d,f-b|0);break d}if(b>>>0<=f>>>0){break d}D[d+4>>2]=g+(f<<1)}e:{if(!i){b=0;break e}if(!a){a=0;b=1;while(1){if(!Cb(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],h)){break e}a=a+1|0;b=i>>>0>a>>>0;if((a|0)!=(i|0)){continue}break}break e}p=a&-4;n=a&3;q=a-1>>>0<3;b=1;f=0;while(1){if(Cb(c,E[c+84|0]?f:D[D[c+68>>2]+(f<<2)>>2],B[c+24|0],h)){o=D[d>>2];m=0;g=D[e>>2];a=0;b=0;if(!q){while(1){k=(j<<1)+o|0;l=a<<1;C[k>>1]=F[g+l>>1];C[k+2>>1]=F[g+(l|2)>>1];C[k+4>>1]=F[g+(l|4)>>1];C[k+6>>1]=F[g+(l|6)>>1];a=a+4|0;j=j+4|0;b=b+4|0;if((p|0)!=(b|0)){continue}break}}if(n){while(1){C[(j<<1)+o>>1]=F[g+(a<<1)>>1];a=a+1|0;j=j+1|0;m=m+1|0;if((m|0)!=(n|0)){continue}break}}f=f+1|0;b=i>>>0>f>>>0;if((f|0)!=(i|0)){continue}}break}h=D[e>>2]}if(h){ma(h)}a=b^1}$=e+16|0;a=a&1;break a}qa();T()}return a|0}function nf(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,k=0,l=0,m=0,n=0,o=0,p=0,q=0;e=$-16|0;$=e;i=D[b+80>>2];a=B[c+24|0];f=J(i,a);a:{b:{b=D[c+28>>2];c:{if(!(!E[c+84|0]|(b|0)!=3&(b|0)!=4)){h=D[c+48>>2];i=D[D[c>>2]>>2];b=0;D[e+8>>2]=0;D[e>>2]=0;D[e+4>>2]=0;c=0;a=f<<1;if(a){if((a|0)<0){break b}c=na(a);b=oa(c,h+i|0,a);j=b+a|0;b=b+(a>>1<<1)|0}a=D[d>>2];if(a){D[d+4>>2]=a;ma(a)}D[d+8>>2]=b;D[d+4>>2]=j;D[d>>2]=c;a=1;break c}D[e+8>>2]=0;D[e>>2]=0;D[e+4>>2]=0;if(a){if((a|0)<0){break b}b=a<<1;h=na(b);D[e>>2]=h;g=b+h|0;D[e+8>>2]=g;pa(h,0,b);D[e+4>>2]=g}g=D[d>>2];b=D[d+4>>2]-g>>1;d:{if(b>>>0<f>>>0){hd(d,f-b|0);break d}if(b>>>0<=f>>>0){break d}D[d+4>>2]=g+(f<<1)}e:{if(!i){b=0;break e}if(!a){a=0;b=1;while(1){if(!Bb(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],h)){break e}a=a+1|0;b=i>>>0>a>>>0;if((a|0)!=(i|0)){continue}break}break e}p=a&-4;n=a&3;q=a-1>>>0<3;b=1;f=0;while(1){if(Bb(c,E[c+84|0]?f:D[D[c+68>>2]+(f<<2)>>2],B[c+24|0],h)){o=D[d>>2];m=0;g=D[e>>2];a=0;b=0;if(!q){while(1){k=(j<<1)+o|0;l=a<<1;C[k>>1]=F[g+l>>1];C[k+2>>1]=F[g+(l|2)>>1];C[k+4>>1]=F[g+(l|4)>>1];C[k+6>>1]=F[g+(l|6)>>1];a=a+4|0;j=j+4|0;b=b+4|0;if((p|0)!=(b|0)){continue}break}}if(n){while(1){C[(j<<1)+o>>1]=F[g+(a<<1)>>1];a=a+1|0;j=j+1|0;m=m+1|0;if((m|0)!=(n|0)){continue}break}}f=f+1|0;b=i>>>0>f>>>0;if((f|0)!=(i|0)){continue}}break}h=D[e>>2]}if(h){ma(h)}a=b^1}$=e+16|0;a=a&1;break a}qa();T()}return a|0}function Nh(a,b,c,d,e,f){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;f=f|0;var g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0;D[a+8>>2]=e;f=a+32|0;i=D[f>>2];h=D[a+36>>2]-i>>2;a:{if(h>>>0<e>>>0){sa(f,e-h|0);i=D[f>>2];f=D[a+8>>2];break a}if(e>>>0<h>>>0){D[a+36>>2]=(e<<2)+i}f=e}h=0;g=(e&1073741823)!=(e|0)?-1:e<<2;m=pa(na(g),0,g);b:{if((f|0)<=0){break b}while(1){f=h<<2;g=D[f+m>>2];j=D[a+16>>2];c:{if((g|0)>(j|0)){D[f+i>>2]=j;break c}f=f+i|0;j=D[a+12>>2];if((j|0)>(g|0)){D[f>>2]=j;break c}D[f>>2]=g}f=D[a+8>>2];h=h+1|0;if((f|0)>(h|0)){continue}break}if((f|0)<=0){break b}h=0;while(1){g=h<<2;f=g+c|0;g=D[b+g>>2]+D[g+i>>2]|0;D[f>>2]=g;d:{if((g|0)>D[a+16>>2]){g=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break d}g=g+D[a+20>>2]|0}D[f>>2]=g}f=D[a+8>>2];h=h+1|0;if((f|0)>(h|0)){continue}break}}if(!((d|0)<=(e|0)|(f|0)<=0)){o=0-e<<2;i=e;while(1){e:{if((f|0)<=0){break e}l=i<<2;n=l+c|0;p=n+o|0;j=D[a+32>>2];h=0;while(1){f=h<<2;g=D[f+p>>2];k=D[a+16>>2];f:{if((g|0)>(k|0)){D[f+j>>2]=k;break f}f=f+j|0;k=D[a+12>>2];if((k|0)>(g|0)){D[f>>2]=k;break f}D[f>>2]=g}f=D[a+8>>2];h=h+1|0;if((f|0)>(h|0)){continue}break}h=0;if((f|0)<=0){break e}l=b+l|0;while(1){g=h<<2;f=g+n|0;g=D[g+l>>2]+D[g+j>>2]|0;D[f>>2]=g;g:{if((g|0)>D[a+16>>2]){g=g-D[a+20>>2]|0}else{if((g|0)>=D[a+12>>2]){break g}g=g+D[a+20>>2]|0}D[f>>2]=g}f=D[a+8>>2];h=h+1|0;if((f|0)>(h|0)){continue}break}}i=e+i|0;if((i|0)<(d|0)){continue}break}}ma(m);return 1}function mc(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;j=$-16|0;$=j;c=D[b+20>>2];d=D[b+16>>2];g=d+4|0;c=g>>>0<4?c+1|0:c;e=D[b+12>>2];a:{if((e|0)<=(c|0)&g>>>0>G[b+8>>2]|(c|0)>(e|0)){break a}d=d+D[b>>2]|0;d=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);D[b+16>>2]=g;D[b+20>>2]=c;if((d|0)<0){break a}jb(a+76|0,d);c=j;D[c>>2]=0;D[c+4>>2]=0;B[c+5|0]=0;B[c+6|0]=0;B[c+7|0]=0;B[c+8|0]=0;B[c+9|0]=0;B[c+10|0]=0;B[c+11|0]=0;B[c+12|0]=0;b:{if(!Ma(c,b)){break b}if(d){e=1;while(1){f=1<<h;i=Ga(c);g=D[a+76>>2]+(h>>>3&536870908)|0;e=e^i;if(e&1){f=D[g>>2]&(f^-1)}else{f=f|D[g>>2]}e=e^1;D[g>>2]=f;h=h+1|0;if((d|0)!=(h|0)){continue}break}}h=0;d=D[b+12>>2];g=d;c=D[b+20>>2];e=c;f=D[b+16>>2];i=f+4|0;c=i>>>0<4?c+1|0:c;k=D[b+8>>2];if(k>>>0<i>>>0&(c|0)>=(d|0)|(c|0)>(d|0)){break b}l=D[b>>2];d=l+f|0;d=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);D[b+16>>2]=i;D[b+20>>2]=c;c=e;e=f+8|0;c=e>>>0<8?c+1|0:c;f=e;e=c;if(f>>>0>k>>>0&(c|0)>=(g|0)|(c|0)>(g|0)){break b}c=i+l|0;c=E[c|0]|E[c+1|0]<<8|(E[c+2|0]<<16|E[c+3|0]<<24);D[b+16>>2]=f;D[b+20>>2]=e;if((c|0)<(d|0)){break b}D[a+16>>2]=c;D[a+12>>2]=d;b=(c>>31)-((d>>31)+(c>>>0<d>>>0)|0)|0;c=c-d|0;if(!b&c>>>0>2147483646|b){break b}h=1;b=c+1|0;D[a+20>>2]=b;c=b>>>1|0;D[a+24>>2]=c;D[a+28>>2]=0-c;if(b&1){break b}D[a+24>>2]=c-1}}$=j+16|0;return h|0}function qf(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,k=0;g=$-16|0;$=g;h=D[b+80>>2];i=E[c+24|0];e=i<<24>>24;b=J(h,e);a:{b:{a=D[c+28>>2];c:{if(!(!E[c+84|0]|(a|0)!=1&(a|0)!=2)){e=D[c+48>>2];c=D[D[c>>2]>>2];a=0;D[g+8>>2]=0;D[g>>2]=0;D[g+4>>2]=0;if(b){if((b|0)<0){break b}f=na(b);a=oa(f,c+e|0,b)+b|0}b=D[d>>2];if(b){D[d+4>>2]=b;ma(b)}D[d+8>>2]=a;D[d+4>>2]=a;D[d>>2]=f;b=1;break c}a=0;D[g+8>>2]=0;D[g>>2]=0;D[g+4>>2]=0;d:{e:{if(e){if((e|0)<0){break b}f=na(e);D[g>>2]=f;pa(f,0,e);Ka(d,b);if(h){break e}b=1;break d}Ka(d,b);b=1;if(!h){break c}while(1){if(Eb(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],0)){a=a+1|0;b=h>>>0>a>>>0;if((a|0)!=(h|0)){continue}}break}b=b^1;break c}b=e-1|0;j=b&-2;k=b&1;b=1;e=0;f:{while(1){f=D[g>>2];if(!Eb(c,E[c+84|0]?e:D[D[c+68>>2]+(e<<2)>>2],B[c+24|0],f)){break f}B[D[d>>2]+a|0]=E[f|0];b=1;a=a+1|0;f=0;g:{h:{switch(i-1|0){default:while(1){B[D[d>>2]+a|0]=E[D[g>>2]+b|0];B[(D[d>>2]+a|0)+1|0]=E[(D[g>>2]+b|0)+1|0];b=b+2|0;a=a+2|0;f=f+2|0;if((j|0)!=(f|0)){continue}break};break;case 0:break g;case 1:break h}}if(!k){break g}B[D[d>>2]+a|0]=E[D[g>>2]+b|0];a=a+1|0}e=e+1|0;b=h>>>0>e>>>0;if((e|0)!=(h|0)){continue}break}f=D[g>>2]}b=!b;if(!f){break c}}ma(f)}$=g+16|0;a=b&1;break a}qa();T()}return a|0}function pf(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,k=0;g=$-16|0;$=g;h=D[b+80>>2];i=E[c+24|0];e=i<<24>>24;b=J(h,e);a:{b:{a=D[c+28>>2];c:{if(!(!E[c+84|0]|(a|0)!=1&(a|0)!=2)){e=D[c+48>>2];c=D[D[c>>2]>>2];a=0;D[g+8>>2]=0;D[g>>2]=0;D[g+4>>2]=0;if(b){if((b|0)<0){break b}f=na(b);a=oa(f,c+e|0,b)+b|0}b=D[d>>2];if(b){D[d+4>>2]=b;ma(b)}D[d+8>>2]=a;D[d+4>>2]=a;D[d>>2]=f;b=1;break c}a=0;D[g+8>>2]=0;D[g>>2]=0;D[g+4>>2]=0;d:{e:{if(e){if((e|0)<0){break b}f=na(e);D[g>>2]=f;pa(f,0,e);Ka(d,b);if(h){break e}b=1;break d}Ka(d,b);b=1;if(!h){break c}while(1){if(Db(c,E[c+84|0]?a:D[D[c+68>>2]+(a<<2)>>2],B[c+24|0],0)){a=a+1|0;b=h>>>0>a>>>0;if((a|0)!=(h|0)){continue}}break}b=b^1;break c}b=e-1|0;j=b&-2;k=b&1;b=1;e=0;f:{while(1){f=D[g>>2];if(!Db(c,E[c+84|0]?e:D[D[c+68>>2]+(e<<2)>>2],B[c+24|0],f)){break f}B[D[d>>2]+a|0]=E[f|0];b=1;a=a+1|0;f=0;g:{h:{switch(i-1|0){default:while(1){B[D[d>>2]+a|0]=E[D[g>>2]+b|0];B[(D[d>>2]+a|0)+1|0]=E[(D[g>>2]+b|0)+1|0];b=b+2|0;a=a+2|0;f=f+2|0;if((j|0)!=(f|0)){continue}break};break;case 0:break g;case 1:break h}}if(!k){break g}B[D[d>>2]+a|0]=E[D[g>>2]+b|0];a=a+1|0}e=e+1|0;b=h>>>0>e>>>0;if((e|0)!=(h|0)){continue}break}f=D[g>>2]}b=!b;if(!f){break c}}ma(f)}$=g+16|0;a=b&1;break a}qa();T()}return a|0}function hc(a,b){var c=0,d=0,e=0,f=0,g=0;f=-1;d=-1;a:{if((b|0)==-1){break a}d=b+1|0;f=(d>>>0)%3|0?d:b-2|0;d=b-1|0;if((b>>>0)%3|0){break a}d=b+2|0}b:{c:{d:{switch(D[a+168>>2]){case 0:case 1:e=D[a+148>>2];c=1;b=D[a+156>>2];g=b+(((f|0)!=-1?D[D[e>>2]+(f<<2)>>2]:-1)<<2)|0;D[g>>2]=D[g>>2]+1;b=(((d|0)!=-1?D[D[e>>2]+(d<<2)>>2]:-1)<<2)+b|0;break c;case 5:e=D[a+148>>2];c=-1;c=((b|0)!=-1?D[D[e>>2]+(b<<2)>>2]:c)<<2;b=D[a+156>>2];c=c+b|0;D[c>>2]=D[c>>2]+1;c=(((f|0)!=-1?D[D[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;D[c>>2]=D[c>>2]+1;c=2;b=(((d|0)!=-1?D[D[e>>2]+(d<<2)>>2]:-1)<<2)+b|0;break c;case 3:e=D[a+148>>2];c=-1;c=((b|0)!=-1?D[D[e>>2]+(b<<2)>>2]:c)<<2;b=D[a+156>>2];c=c+b|0;D[c>>2]=D[c>>2]+1;c=(((f|0)!=-1?D[D[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;D[c>>2]=D[c>>2]+2;c=1;b=(((d|0)!=-1?D[D[e>>2]+(d<<2)>>2]:-1)<<2)+b|0;break c;case 7:break d;default:break b}}e=D[a+148>>2];c=-1;c=((b|0)!=-1?D[D[e>>2]+(b<<2)>>2]:c)<<2;b=D[a+156>>2];c=c+b|0;D[c>>2]=D[c>>2]+2;c=(((f|0)!=-1?D[D[e>>2]+(f<<2)>>2]:-1)<<2)+b|0;D[c>>2]=D[c>>2]+2;c=2;b=(((d|0)!=-1?D[D[e>>2]+(d<<2)>>2]:-1)<<2)+b|0}D[b>>2]=D[b>>2]+c}c=a;d=D[a+180>>2];b=D[D[a+156>>2]+(((f|0)!=-1?D[D[D[a+148>>2]>>2]+(f<<2)>>2]:-1)<<2)>>2];a=D[a+176>>2];D[c+172>>2]=(a|0)>(b|0)?0:((b|0)>(d|0)?d:b)-a|0}function Vb(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=D[a+8>>2];e=D[a>>2];if(d-e>>2>>>0>=b>>>0){g=D[a+4>>2];h=g-e>>2;f=b>>>0>h>>>0?h:b;a:{if(!f){break a}k=f-1|0;i=f&7;b:{if(!i){d=e;break b}d=e;while(1){D[d>>2]=D[c>>2];f=f-1|0;d=d+4|0;j=j+1|0;if((j|0)!=(i|0)){continue}break}}if(k>>>0<7){break a}while(1){D[d>>2]=D[c>>2];D[d+4>>2]=D[c>>2];D[d+8>>2]=D[c>>2];D[d+12>>2]=D[c>>2];D[d+16>>2]=D[c>>2];D[d+20>>2]=D[c>>2];D[d+24>>2]=D[c>>2];D[d+28>>2]=D[c>>2];d=d+32|0;f=f-8|0;if(f){continue}break}}if(b>>>0>h>>>0){d=a;a=b-h|0;if(a){a=(a<<2)+g|0;while(1){D[g>>2]=D[c>>2];g=g+4|0;if((a|0)!=(g|0)){continue}break}}else{a=g}D[d+4>>2]=a;return}D[a+4>>2]=e+(b<<2);return}if(e){D[a+4>>2]=e;ma(e);D[a+8>>2]=0;D[a>>2]=0;D[a+4>>2]=0;d=0}c:{if(b>>>0>=1073741824){break c}e=d>>1;d=d>>>0<2147483644?b>>>0>e>>>0?b:e:1073741823;if(d>>>0>=1073741824){break c}d=d<<2;e=na(d);D[a>>2]=e;D[a+8>>2]=d+e;c=D[c>>2];d=e;g=b&7;if(g){while(1){D[d>>2]=c;d=d+4|0;f=f+1|0;if((g|0)!=(f|0)){continue}break}}e=e+(b<<2)|0;if((b-1&1073741823)>>>0>=7){while(1){D[d+28>>2]=c;D[d+24>>2]=c;D[d+20>>2]=c;D[d+16>>2]=c;D[d+12>>2]=c;D[d+8>>2]=c;D[d+4>>2]=c;D[d>>2]=c;d=d+32|0;if((e|0)!=(d|0)){continue}break}}D[a+4>>2]=e;return}qa();T()}function wg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;a:{c=D[a+32>>2];e=D[c+8>>2];f=D[c+12>>2];d=D[c+20>>2];g=e;e=D[c+16>>2];b=0;b:{if((f|0)<=(d|0)&g>>>0<=e>>>0|(d|0)>(f|0)){break b}g=E[e+D[c>>2]|0];f=e+1|0;d=f?d:d+1|0;D[c+16>>2]=f;D[c+20>>2]=d;c:{if(!g){break c}while(1){if(ba[D[D[a>>2]+16>>2]](a,b)|0){b=b+1|0;if((g|0)!=(b|0)){continue}break c}break}return 0}b=D[a+8>>2];d=D[a+12>>2];if((b|0)!=(d|0)){while(1){c=D[b>>2];if(!(ba[D[D[c>>2]+8>>2]](c,a,D[a+4>>2])|0)){break a}b=b+4|0;if((d|0)!=(b|0)){continue}break}}d:{if(!g){break d}b=0;while(1){c=D[D[a+8>>2]+(b<<2)>>2];if(!(ba[D[D[c>>2]+12>>2]](c,D[a+32>>2])|0)){break a}b=b+1|0;if((g|0)!=(b|0)){continue}break}if(!g){break d}e=a+20|0;while(1){b=0;f=h<<2;c=D[f+D[a+8>>2]>>2];d=ba[D[D[c>>2]+24>>2]](c)|0;if((d|0)>0){while(1){c=D[D[a+8>>2]+f>>2];k=ba[D[D[c>>2]+20>>2]](c,b)|0;i=D[a+20>>2];j=D[a+24>>2]-i>>2;e:{if(k>>>0<j>>>0){break e}c=k+1|0;if(c>>>0>j>>>0){sa(e,c-j|0);i=D[e>>2];break e}if(c>>>0>=j>>>0){break e}D[a+24>>2]=(c<<2)+i}D[(k<<2)+i>>2]=h;b=b+1|0;if((d|0)!=(b|0)){continue}break}}h=h+1|0;if((g|0)!=(h|0)){continue}break}}b=0;if(!(ba[D[D[a>>2]+28>>2]](a)|0)){break b}b=ba[D[D[a>>2]+32>>2]](a)|0}return b|0}return 0}function Re(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;Kc(a,b,c);c=D[a+84>>2];d=D[a+88>>2]-c>>2;a:{if((d|0)>(b|0)){break a}b=b+1|0;if(b>>>0>d>>>0){b:{d=b-d|0;e=D[a+92>>2];c=D[a+88>>2];if(d>>>0<=e-c>>2>>>0){c:{if(!d){break c}b=c;f=d&7;if(f){while(1){D[b>>2]=1;b=b+4|0;g=g+1|0;if((f|0)!=(g|0)){continue}break}}c=(d<<2)+c|0;if((d-1&1073741823)>>>0<7){break c}while(1){D[b+24>>2]=1;D[b+28>>2]=1;D[b+16>>2]=1;D[b+20>>2]=1;D[b+8>>2]=1;D[b+12>>2]=1;D[b>>2]=1;D[b+4>>2]=1;b=b+32|0;if((c|0)!=(b|0)){continue}break}}D[a+88>>2]=c;break b}d:{f=D[a+84>>2];j=c-f|0;c=j>>2;b=c+d|0;if(b>>>0<1073741824){e=e-f|0;h=e>>1;e=e>>>0<2147483644?b>>>0>h>>>0?b:h:1073741823;if(e){if(e>>>0>=1073741824){break d}i=na(e<<2)}c=(c<<2)+i|0;b=c;h=d&7;if(h){b=c;while(1){D[b>>2]=1;b=b+4|0;g=g+1|0;if((h|0)!=(g|0)){continue}break}}c=c+(d<<2)|0;if((d-1&1073741823)>>>0>=7){while(1){D[b+24>>2]=1;D[b+28>>2]=1;D[b+16>>2]=1;D[b+20>>2]=1;D[b+8>>2]=1;D[b+12>>2]=1;D[b>>2]=1;D[b+4>>2]=1;b=b+32|0;if((c|0)!=(b|0)){continue}break}}if((j|0)>0){oa(i,f,j)}D[a+92>>2]=(e<<2)+i;D[a+88>>2]=c;D[a+84>>2]=i;if(f){ma(f)}break b}qa();T()}ra(1326);T()}return}if(b>>>0>=d>>>0){break a}D[a+88>>2]=c+(b<<2)}}function oa(a,b,c){var d=0,e=0,f=0;if(c>>>0>=512){Y(a|0,b|0,c|0)|0;return a}e=a+c|0;a:{if(!((a^b)&3)){b:{if(!(a&3)){c=a;break b}if(!c){c=a;break b}c=a;while(1){B[c|0]=E[b|0];b=b+1|0;c=c+1|0;if(!(c&3)){break b}if(c>>>0<e>>>0){continue}break}}d=e&-4;c:{if(d>>>0<64){break c}f=d+-64|0;if(f>>>0<c>>>0){break c}while(1){D[c>>2]=D[b>>2];D[c+4>>2]=D[b+4>>2];D[c+8>>2]=D[b+8>>2];D[c+12>>2]=D[b+12>>2];D[c+16>>2]=D[b+16>>2];D[c+20>>2]=D[b+20>>2];D[c+24>>2]=D[b+24>>2];D[c+28>>2]=D[b+28>>2];D[c+32>>2]=D[b+32>>2];D[c+36>>2]=D[b+36>>2];D[c+40>>2]=D[b+40>>2];D[c+44>>2]=D[b+44>>2];D[c+48>>2]=D[b+48>>2];D[c+52>>2]=D[b+52>>2];D[c+56>>2]=D[b+56>>2];D[c+60>>2]=D[b+60>>2];b=b- -64|0;c=c- -64|0;if(f>>>0>=c>>>0){continue}break}}if(c>>>0>=d>>>0){break a}while(1){D[c>>2]=D[b>>2];b=b+4|0;c=c+4|0;if(d>>>0>c>>>0){continue}break}break a}if(e>>>0<4){c=a;break a}d=e-4|0;if(d>>>0<a>>>0){c=a;break a}c=a;while(1){B[c|0]=E[b|0];B[c+1|0]=E[b+1|0];B[c+2|0]=E[b+2|0];B[c+3|0]=E[b+3|0];b=b+4|0;c=c+4|0;if(d>>>0>=c>>>0){continue}break}}if(c>>>0<e>>>0){while(1){B[c|0]=E[b|0];b=b+1|0;c=c+1|0;if((e|0)!=(c|0)){continue}break}}return a}function xa(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;f=D[a+8>>2];e=D[a+4>>2];if(f-e>>2>>>0>=b>>>0){a:{if(!b){break a}d=e;g=b&7;if(g){while(1){D[d>>2]=D[c>>2];d=d+4|0;h=h+1|0;if((g|0)!=(h|0)){continue}break}}e=(b<<2)+e|0;if((b-1&1073741823)>>>0<7){break a}while(1){D[d>>2]=D[c>>2];D[d+4>>2]=D[c>>2];D[d+8>>2]=D[c>>2];D[d+12>>2]=D[c>>2];D[d+16>>2]=D[c>>2];D[d+20>>2]=D[c>>2];D[d+24>>2]=D[c>>2];D[d+28>>2]=D[c>>2];d=d+32|0;if((e|0)!=(d|0)){continue}break}}D[a+4>>2]=e;return}b:{g=D[a>>2];k=e-g|0;e=k>>2;d=e+b|0;if(d>>>0<1073741824){f=f-g|0;i=f>>1;f=f>>>0<2147483644?d>>>0>i>>>0?d:i:1073741823;if(f){if(f>>>0>=1073741824){break b}j=na(f<<2)}e=(e<<2)+j|0;d=e;i=b&7;if(i){d=e;while(1){D[d>>2]=D[c>>2];d=d+4|0;h=h+1|0;if((i|0)!=(h|0)){continue}break}}e=e+(b<<2)|0;if((b-1&1073741823)>>>0>=7){while(1){D[d>>2]=D[c>>2];D[d+4>>2]=D[c>>2];D[d+8>>2]=D[c>>2];D[d+12>>2]=D[c>>2];D[d+16>>2]=D[c>>2];D[d+20>>2]=D[c>>2];D[d+24>>2]=D[c>>2];D[d+28>>2]=D[c>>2];d=d+32|0;if((e|0)!=(d|0)){continue}break}}if((k|0)>0){oa(j,g,k)}D[a+8>>2]=(f<<2)+j;D[a+4>>2]=e;D[a>>2]=j;if(g){ma(g)}return}qa();T()}ra(1326);T()}function od(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;D[a>>2]=8364;d=a+232|0;b=D[d+196>>2];if(b){D[d+200>>2]=b;ma(b)}c=D[d+184>>2];if(c){b=D[d+188>>2];if((c|0)==(b|0)){b=c}else{while(1){e=b-12|0;f=D[e>>2];if(f){D[b-8>>2]=f;ma(f)}b=e;if((c|0)!=(b|0)){continue}break}b=D[d+184>>2]}D[d+188>>2]=c;ma(b)}b=D[d+156>>2];if(b){D[d+160>>2]=b;ma(b)}c=D[d+136>>2];D[d+136>>2]=0;if(c){e=c-4|0;b=D[e>>2];if(b){b=c+(b<<4)|0;while(1){b=b-16|0;if((c|0)!=(b|0)){continue}break}}ma(e)}pd(a+216|0);b=D[a+196>>2];if(b){D[a+200>>2]=b;ma(b)}b=D[a+184>>2];if(b){D[a+188>>2]=b;ma(b)}b=D[a+172>>2];if(b){D[a+176>>2]=b;ma(b)}b=D[a+160>>2];if(b){D[a+164>>2]=b;ma(b)}b=D[a+144>>2];if(b){while(1){c=D[b>>2];ma(b);b=c;if(b){continue}break}}b=D[a+136>>2];D[a+136>>2]=0;if(b){ma(b)}b=D[a+120>>2];if(b){ma(b)}b=D[a+108>>2];if(b){ma(b)}b=D[a+96>>2];if(b){ma(b)}b=D[a+72>>2];if(b){D[a+76>>2]=b;ma(b)}b=D[a+60>>2];if(b){ma(b)}b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}b=D[a+36>>2];if(b){D[a+40>>2]=b;ma(b)}b=D[a+24>>2];if(b){D[a+28>>2]=b;ma(b)}b=D[a+12>>2];if(b){D[a+16>>2]=b;ma(b)}b=D[a+8>>2];D[a+8>>2]=0;if(b){cb(b)}return a|0}function ci(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;g=c;a:{b:{c:{d:{e:{f:{g:{h:{i:{j:{k:{if(b){if(!g){break k}if(!d){break j}c=M(d)-M(b)|0;if(c>>>0<=31){break i}break c}if((d|0)==1|d>>>0>1){break c}a=(a>>>0)/(g>>>0)|0;aa=0;break a}if(!a){break h}if(!d){break g}if(d-1&d){break g}a=b>>>fi(d)|0;aa=0;break a}if(!(g-1&g)){break f}h=(M(g)+33|0)-M(b)|0;e=0-h|0;break d}h=c+1|0;e=63-c|0;break d}a=(b>>>0)/(d>>>0)|0;aa=0;break a}c=M(d)-M(b)|0;if(c>>>0<31){break e}break c}if((g|0)==1){break b}c=fi(g);d=c&31;if((c&63)>>>0>=32){c=0;a=b>>>d|0}else{c=b>>>d|0;a=((1<<d)-1&b)<<32-d|a>>>d}aa=c;break a}h=c+1|0;e=63-c|0}c=h&63;f=c&31;if(c>>>0>=32){c=0;i=b>>>f|0}else{c=b>>>f|0;i=((1<<f)-1&b)<<32-f|a>>>f}f=c;c=e&63;e=c&31;if(c>>>0>=32){c=a<<e;a=0}else{c=(1<<e)-1&a>>>32-e|b<<e;a=a<<e}b=c;if(h){c=d-1|0;e=g-1|0;m=(e|0)!=-1?c+1|0:c;while(1){c=i<<1|b>>>31;f=f<<1|i>>>31;j=m-(f+(c>>>0>e>>>0)|0)>>31;k=g&j;i=c-k|0;f=f-((d&j)+(c>>>0<k>>>0)|0)|0;b=b<<1|a>>>31;a=l|a<<1;l=j&1;h=h-1|0;if(h){continue}break}}aa=b<<1|a>>>31;a=l|a<<1;break a}a=0;b=0}aa=b}return a}function pb(a,b){var c=0,d=0,e=0;c=(a|0)==(b|0);B[b+12|0]=c;a:{if(c){break a}while(1){d=D[b+8>>2];if(E[d+12|0]){break a}b:{c=D[d+8>>2];e=D[c>>2];c:{if((d|0)==(e|0)){e=D[c+4>>2];if(!(!e|E[e+12|0])){break b}d:{if(D[d>>2]==(b|0)){b=d;break d}b=D[d+4>>2];a=D[b>>2];D[d+4>>2]=a;if(a){D[a+8>>2]=d;c=D[d+8>>2]}D[b+8>>2]=c;a=D[d+8>>2];D[(((d|0)!=D[a>>2])<<2)+a>>2]=b;D[b>>2]=d;D[d+8>>2]=b;c=D[b+8>>2]}B[b+12|0]=1;B[c+12|0]=0;a=D[c>>2];b=D[a+4>>2];D[c>>2]=b;if(b){D[b+8>>2]=c}D[a+8>>2]=D[c+8>>2];b=D[c+8>>2];D[((D[b>>2]!=(c|0))<<2)+b>>2]=a;D[a+4>>2]=c;b=c+8|0;break c}if(!(E[e+12|0]|!e)){break b}e:{if(D[d>>2]!=(b|0)){b=d;break e}a=D[b+4>>2];D[d>>2]=a;if(a){D[a+8>>2]=d;c=D[d+8>>2]}D[b+8>>2]=c;a=D[d+8>>2];D[(((d|0)!=D[a>>2])<<2)+a>>2]=b;D[b+4>>2]=d;D[d+8>>2]=b;c=D[b+8>>2]}B[b+12|0]=1;B[c+12|0]=0;a=D[c+4>>2];b=D[a>>2];D[c+4>>2]=b;if(b){D[b+8>>2]=c}D[a+8>>2]=D[c+8>>2];b=D[c+8>>2];D[((D[b>>2]!=(c|0))<<2)+b>>2]=a;D[a>>2]=c;b=c+8|0}D[b>>2]=a;break a}B[d+12|0]=1;d=(a|0)==(c|0);B[c+12|0]=d;B[e+12|0]=1;b=c;if(!d){continue}break}}}function xd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=K(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;k=$-16|0;$=k;if(D[c+28>>2]==9){d=D[a+4>>2];g=B[c+24|0];e=g<<2;f=na((g&1073741823)!=(g|0)?-1:e);l=k+8|0;D[l>>2]=1065353216;i=H[a+20>>2];d=-1<<d^-1;if((d|0)>0){H[l>>2]=i/K(d|0)}o=(d|0)>0;a:{if(!o){break a}j=D[c+80>>2];if(!j){break a}d=0;if((g|0)<=0){if((j|0)!=1){a=j&-2;b=0;while(1){oa(D[D[c+64>>2]>>2]+d|0,f,e);d=d+e|0;oa(d+D[D[c+64>>2]>>2]|0,f,e);d=d+e|0;b=b+2|0;if((a|0)!=(b|0)){continue}break}}if(!(j&1)){break a}oa(D[D[c+64>>2]>>2]+d|0,f,e);break a}p=D[D[b>>2]>>2]+D[b+48>>2]|0;t=g&-2;u=g&1;while(1){m=D[a+8>>2];i=H[l>>2];b=0;n=0;if((g|0)!=1){while(1){h=b<<2;q=(d<<2)+p|0;H[h+f>>2]=K(i*K(D[q>>2]))+H[h+m>>2];h=h|4;H[h+f>>2]=K(i*K(D[q+4>>2]))+H[h+m>>2];b=b+2|0;d=d+2|0;n=n+2|0;if((t|0)!=(n|0)){continue}break}}if(u){b=b<<2;H[b+f>>2]=K(i*K(D[(d<<2)+p>>2]))+H[b+m>>2];d=d+1|0}oa(D[D[c+64>>2]>>2]+r|0,f,e);r=e+r|0;s=s+1|0;if((s|0)!=(j|0)){continue}break}}ma(f)}$=k+16|0;return o|0}function te(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;if(Yc(a,b)){i=a+36|0;g=ba[D[D[a>>2]+24>>2]](a)|0;d=D[a+40>>2];e=D[a+36>>2];c=d-e>>2;a:{if(g>>>0>c>>>0){Qb(i,g-c|0);break a}if(c>>>0<=g>>>0){break a}e=e+(g<<2)|0;if((e|0)!=(d|0)){while(1){d=d-4|0;c=D[d>>2];D[d>>2]=0;if(c){ba[D[D[c>>2]+4>>2]](c)}if((d|0)!=(e|0)){continue}break}}D[a+40>>2]=e}b:{if((g|0)<=0){e=0;break b}e=1;c=D[b+20>>2];d=D[b+12>>2];f=D[b+16>>2];if((c|0)>=(d|0)&f>>>0>=G[b+8>>2]|(c|0)>(d|0)){break b}d=0;while(1){h=E[f+D[b>>2]|0];f=f+1|0;c=f?c:c+1|0;D[b+16>>2]=f;D[b+20>>2]=c;f=ba[D[D[a>>2]+48>>2]](a,h)|0;h=d<<2;j=h+D[a+36>>2]|0;c=D[j>>2];D[j>>2]=f;if(c){ba[D[D[c>>2]+4>>2]](c)}c=D[D[i>>2]+h>>2];if(!c){break b}if(!(l=c,m=ba[D[D[a>>2]+28>>2]](a)|0,n=ba[D[D[a>>2]+20>>2]](a,d)|0,k=D[D[c>>2]+8>>2],ba[k](l|0,m|0,n|0)|0)){break b}d=d+1|0;e=(g|0)>(d|0);if((d|0)==(g|0)){break b}f=D[b+16>>2];c=D[b+20>>2];h=D[b+12>>2];if(f>>>0<G[b+8>>2]&(c|0)<=(h|0)|(c|0)<(h|0)){continue}break}}a=!e}else{a=0}return a|0}function rh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;c=D[b+88>>2];if(!(!c|D[c>>2]!=1)){d=D[c+8>>2];D[a+4>>2]=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);d=B[b+24|0];e=D[a+8>>2];f=D[a+12>>2]-e>>2;a:{if(d>>>0>f>>>0){sa(a+8|0,d-f|0);d=B[b+24|0];e=D[a+8>>2];break a}if(d>>>0>=f>>>0){break a}D[a+12>>2]=(d<<2)+e}k=1;f=D[c+8>>2];b:{if((d|0)<=0){b=4;break b}h=d&3;c:{if(d-1>>>0<3){b=4;d=0;break c}l=d&-4;d=0;b=4;while(1){g=d<<2;c=b+f|0;D[g+e>>2]=E[c|0]|E[c+1|0]<<8|(E[c+2|0]<<16|E[c+3|0]<<24);D[(g|4)+e>>2]=E[c+4|0]|E[c+5|0]<<8|(E[c+6|0]<<16|E[c+7|0]<<24);D[(g|8)+e>>2]=E[c+8|0]|E[c+9|0]<<8|(E[c+10|0]<<16|E[c+11|0]<<24);D[(g|12)+e>>2]=E[c+12|0]|E[c+13|0]<<8|(E[c+14|0]<<16|E[c+15|0]<<24);d=d+4|0;b=b+16|0;i=i+4|0;if((l|0)!=(i|0)){continue}break}}if(!h){break b}while(1){c=b+f|0;D[(d<<2)+e>>2]=E[c|0]|E[c+1|0]<<8|(E[c+2|0]<<16|E[c+3|0]<<24);d=d+1|0;b=b+4|0;j=j+1|0;if((j|0)!=(h|0)){continue}break}}c=a;a=b+f|0;D[c+20>>2]=E[a|0]|E[a+1|0]<<8|(E[a+2|0]<<16|E[a+3|0]<<24)}return k|0}function Ja(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=(c>>>0)/3|0;i=D[(D[D[a+8>>2]+96>>2]+J(d,12)|0)+(c-J(d,3)<<2)>>2];e=D[D[a+12>>2]+4>>2];d=D[e+4>>2];a:{if((d|0)!=D[e+8>>2]){D[d>>2]=i;D[e+4>>2]=d+4;break a}b:{h=D[e>>2];g=d-h|0;j=g>>2;d=j+1|0;if(d>>>0<1073741824){f=g>>1;f=g>>>0<2147483644?d>>>0>f>>>0?d:f:1073741823;if(f){if(f>>>0>=1073741824){break b}d=na(f<<2)}else{d=0}j=d+(j<<2)|0;D[j>>2]=i;if((g|0)>0){oa(d,h,g)}D[e+8>>2]=d+(f<<2);D[e+4>>2]=j+4;D[e>>2]=d;if(h){ma(h)}break a}qa();T()}ra(1326);T()}e=D[a+4>>2];d=D[e+4>>2];c:{d:{e:{if((d|0)!=D[e+8>>2]){D[d>>2]=c;D[e+4>>2]=d+4;break e}h=D[e>>2];g=d-h|0;i=g>>2;d=i+1|0;if(d>>>0>=1073741824){break d}f=g>>1;f=g>>>0<2147483644?d>>>0>f>>>0?d:f:1073741823;if(f){if(f>>>0>=1073741824){break c}d=na(f<<2)}else{d=0}i=d+(i<<2)|0;D[i>>2]=c;if((g|0)>0){oa(d,h,g)}D[e+8>>2]=d+(f<<2);D[e+4>>2]=i+4;D[e>>2]=d;if(!h){break e}ma(h)}a=D[a+4>>2];D[D[a+12>>2]+(b<<2)>>2]=D[a+24>>2];D[a+24>>2]=D[a+24>>2]+1;return}qa();T()}ra(1326);T()}function Tf(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,k=0,l=0;h=D[d+80>>2];e=$-48|0;$=e;a=D[a+4>>2];a:{if(a-31>>>0<4294967267){break a}i=D[D[d>>2]>>2]+D[d+48>>2]|0;D[e+16>>2]=a;a=-1<<a;D[e+20>>2]=a^-1;a=-2-a|0;D[e+24>>2]=a;D[e+32>>2]=(a|0)/2;H[e+28>>2]=K(2)/K(a|0);g=D[c>>2];if((g|0)!=D[c+4>>2]){a=0;d=0;while(1){f=D[(d<<2)+g>>2];h=e+36|0;j=D[D[b>>2]>>2];l=D[b+48>>2];g=D[b+44>>2];k=D[b+40>>2];if(!E[b+84|0]){f=D[D[b+68>>2]+(f<<2)>>2]}f=ai(k,g,f,0)+l|0;oa(h,f+j|0,k);Ec(e+16|0,h,e+12|0,e+8|0);g=a<<2;D[g+i>>2]=D[e+12>>2];D[(g|4)+i>>2]=D[e+8>>2];f=1;a=a+2|0;d=d+1|0;g=D[c>>2];if(d>>>0<D[c+4>>2]-g>>2>>>0){continue}break}break a}if(!h){f=1;break a}d=0;a=0;while(1){j=e+36|0;c=D[D[b>>2]>>2];f=D[b+40>>2];g=D[b+48>>2]+ai(f,D[b+44>>2],E[b+84|0]?a:D[D[b+68>>2]+(a<<2)>>2],0)|0;oa(j,c+g|0,f);Ec(e+16|0,j,e+12|0,e+8|0);c=d<<2;D[c+i>>2]=D[e+12>>2];D[(c|4)+i>>2]=D[e+8>>2];d=d+2|0;f=1;a=a+1|0;if((h|0)!=(a|0)){continue}break}}$=e+48|0;return f|0}function jb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=$-16|0;$=d;a:{e=D[a+4>>2];b:{if(e>>>0<b>>>0){f=b-e|0;h=D[a+8>>2];c=h<<5;c:{if(!(f>>>0>c>>>0|e>>>0>c-f>>>0)){D[a+4>>2]=b;g=e&31;b=D[a>>2]+(e>>>3&536870908)|0;break c}D[d+8>>2]=0;D[d>>2]=0;D[d+4>>2]=0;if((b|0)<0){break a}if(c>>>0<=1073741822){c=b+31&-32;b=h<<6;b=b>>>0<c>>>0?c:b}else{b=2147483647}Va(d,b);e=D[a+4>>2];D[d+4>>2]=e+f;i=D[a>>2];b=D[d>>2];d:{if((e|0)<=0){break d}c=e>>>5|0;h=c<<2;b=Pa(b,i,h)+h|0;g=e-(c<<5)|0;e:{if((g|0)<=0){g=0;break e}c=-1>>>32-g|0;D[b>>2]=D[b>>2]&(c^-1)|c&D[i+h>>2]}i=D[a>>2]}D[a>>2]=D[d>>2];D[d>>2]=i;c=D[a+4>>2];D[a+4>>2]=D[d+4>>2];D[d+4>>2]=c;c=D[a+8>>2];D[a+8>>2]=D[d+8>>2];D[d+8>>2]=c;if(!i){break c}ma(i)}if(!f){break b}if(g){c=32-g|0;a=c>>>0>f>>>0?f:c;D[b>>2]=D[b>>2]&(-1<<g&-1>>>c-a^-1);f=f-a|0;b=b+4|0}c=f>>>5<<2;a=pa(b,0,c);b=f&31;if(!b){break b}a=a+c|0;D[a>>2]=D[a>>2]&(-1>>>32-b^-1);break b}D[a+4>>2]=b}$=d+16|0;return}Fa();T()}function Sb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;d=E[a+11|0]>>>7|0?D[a+4>>2]:E[a+11|0];if(d>>>0<b>>>0){h=$-16|0;$=h;f=b-d|0;if(f){b=E[a+11|0]>>>7|0;g=b?D[a+4>>2]:E[a+11|0];i=g+f|0;b=b?(D[a+8>>2]&2147483647)-1|0:10;if(b-g>>>0<f>>>0){a:{d=$-16|0;$=d;c=i-b|0;if(c>>>0<=-17-b>>>0){j=E[a+11|0]>>>7|0?D[a>>2]:a;b:{if(b>>>0<2147483623){D[d+8>>2]=b<<1;D[d+12>>2]=b+c;c=$-16|0;$=c;$=c+16|0;c=d+8|0;e=d+12|0;c=D[(G[e>>2]<G[c>>2]?c:e)>>2];if(c>>>0>=11){e=c+16&-16;c=e-1|0;c=(c|0)==11?e:c}else{c=10}break b}c=-18}e=c+1|0;c=na(e);if(g){Ya(c,j,g)}if((b|0)!=10){ma(j)}D[a>>2]=c;D[a+8>>2]=e|-2147483648;$=d+16|0;break a}Aa();T()}}b=E[a+11|0]>>>7|0?D[a>>2]:a;d=g+b|0;if(f){pa(d,0,f)}c:{if(E[a+11|0]>>>7|0){D[a+4>>2]=i;break c}B[a+11|0]=i}B[h+15|0]=0;B[b+i|0]=E[h+15|0]}$=h+16|0;return}d=$-16|0;$=d;d:{if(E[a+11|0]>>>7|0){f=D[a>>2];B[d+15|0]=0;B[b+f|0]=E[d+15|0];D[a+4>>2]=b;break d}B[d+14|0]=0;B[a+b|0]=E[d+14|0];B[a+11|0]=b}$=d+16|0}function Sg(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;l=D[a+12>>2];c=D[a+108>>2];e=D[c+80>>2];B[b+84|0]=0;f=D[b+68>>2];d=D[b+72>>2]-f>>2;a:{if(d>>>0<e>>>0){xa(b+68|0,e-d|0,9156);c=D[a+108>>2];e=D[c+80>>2];break a}if(e>>>0>=d>>>0){break a}D[b+72>>2]=f+(e<<2)}k=D[c+96>>2];c=D[c+100>>2]-k|0;if(!c){return 1}c=(c|0)/12|0;m=c>>>0>1?c:1;c=0;b:{while(1){if((c|0)==1431655765){break b}d=D[l>>2]+(J(c,3)<<2)|0;h=D[d>>2];if((h|0)==-1){break b}f=J(c,12)+k|0;g=D[f>>2];if(g>>>0>=e>>>0){break b}j=D[D[a+112>>2]+12>>2];i=D[j+(h<<2)>>2];if(i>>>0>=e>>>0){break b}h=D[b+68>>2];D[h+(g<<2)>>2]=i;g=D[d+4>>2];if((g|0)==-1){break b}i=D[f+4>>2];if(i>>>0>=e>>>0){break b}g=D[(g<<2)+j>>2];if(g>>>0>=e>>>0){break b}D[h+(i<<2)>>2]=g;d=D[d+8>>2];if((d|0)==-1){break b}f=D[f+8>>2];if(f>>>0>=e>>>0){break b}d=D[(d<<2)+j>>2];if(d>>>0>=e>>>0){break b}D[h+(f<<2)>>2]=d;c=c+1|0;if((m|0)!=(c|0)){continue}break}return 1}return 0}function Rg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0,h=0;g=$-16|0;$=g;b=D[a+4>>2];d=D[b>>2];a:{c=D[a+12>>2];c=D[c+28>>2]-D[c+24>>2]|0;e=c>>2;b:{if(e>>>0<=D[b+8>>2]-d>>2>>>0){break b}if((c|0)<0){break a}f=D[b+4>>2];c=na(c);h=c+(e<<2)|0;e=f-d|0;f=e+c|0;if((e|0)>0){oa(c,d,e)}D[b+8>>2]=h;D[b+4>>2]=f;D[b>>2]=c;if(!d){break b}ma(d)}b=D[a+12>>2];d=D[b+28>>2];b=D[b+24>>2];D[g+12>>2]=0;b=d-b>>2;c=a+96|0;e=D[c>>2];d=D[a+100>>2]-e>>2;c:{if(b>>>0>d>>>0){xa(c,b-d|0,g+12|0);break c}if(b>>>0>=d>>>0){break c}D[a+100>>2]=e+(b<<2)}e=a+8|0;b=D[a+116>>2];d:{if(b){c=D[b>>2];if((c|0)==D[b+4>>2]){d=1;break d}b=0;while(1){d=md(e,D[(b<<2)+c>>2]);if(!d){break d}f=D[a+116>>2];c=D[f>>2];b=b+1|0;if(b>>>0<D[f+4>>2]-c>>2>>>0){continue}break}break d}d=1;a=D[a+12>>2];a=D[a+4>>2]-D[a>>2]|0;if(a>>>0<12){break d}a=(a>>2>>>0)/3|0;b=0;while(1){d=md(e,J(b,3));if(!d){break d}b=b+1|0;if((a|0)!=(b|0)){continue}break}}$=g+16|0;return d|0}ra(1326);T()}function Jg(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;l=D[a+12>>2];c=D[a+68>>2];e=D[c+80>>2];B[b+84|0]=0;f=D[b+68>>2];d=D[b+72>>2]-f>>2;a:{if(d>>>0<e>>>0){xa(b+68|0,e-d|0,9156);c=D[a+68>>2];e=D[c+80>>2];break a}if(e>>>0>=d>>>0){break a}D[b+72>>2]=f+(e<<2)}k=D[c+96>>2];c=D[c+100>>2]-k|0;if(!c){return 1}c=(c|0)/12|0;m=c>>>0>1?c:1;c=0;b:{while(1){if((c|0)==1431655765){break b}d=D[l>>2]+(J(c,3)<<2)|0;h=D[d>>2];if((h|0)==-1){break b}f=J(c,12)+k|0;g=D[f>>2];if(g>>>0>=e>>>0){break b}j=D[D[a+72>>2]+12>>2];i=D[j+(h<<2)>>2];if(i>>>0>=e>>>0){break b}h=D[b+68>>2];D[h+(g<<2)>>2]=i;g=D[d+4>>2];if((g|0)==-1){break b}i=D[f+4>>2];if(i>>>0>=e>>>0){break b}g=D[(g<<2)+j>>2];if(g>>>0>=e>>>0){break b}D[h+(i<<2)>>2]=g;d=D[d+8>>2];if((d|0)==-1){break b}f=D[f+8>>2];if(f>>>0>=e>>>0){break b}d=D[(d<<2)+j>>2];if(d>>>0>=e>>>0){break b}D[h+(f<<2)>>2]=d;c=c+1|0;if((m|0)!=(c|0)){continue}break}return 1}return 0}function Ma(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;g=$-16|0;$=g;e=D[b+20>>2];c=D[b+12>>2];d=D[b+16>>2];a:{if((e|0)>=(c|0)&d>>>0>=G[b+8>>2]|(c|0)<(e|0)){break a}B[a+12|0]=E[d+D[b>>2]|0];e=D[b+20>>2];c=D[b+16>>2]+1|0;e=c?e:e+1|0;D[b+16>>2]=c;D[b+20>>2]=e;if(!Nd(1,g+12|0,b)){break a}e=D[b+8>>2];h=D[b+16>>2];c=h;d=e-c|0;c=c>>>0>e>>>0;e=D[b+20>>2];f=D[b+12>>2]-(c+e|0)|0;c=D[g+12>>2];if((f|0)<=0&d>>>0<c>>>0|(f|0)<0|(c|0)<=0){break a}d=h+D[b>>2]|0;D[a>>2]=d;k=a;f=c-1|0;i=f+d|0;j=E[i|0];b:{if(j>>>0<=63){D[a+4>>2]=f;a=E[i|0]&63;break b}c:{switch((j>>>6|0)-1|0){case 0:if(c>>>0<2){break a}D[a+4>>2]=c-2;d=(c+d|0)-2|0;a=E[d+1|0]<<8&16128|E[d|0];break b;case 1:break c;default:break a}}if(c>>>0<3){break a}D[a+4>>2]=c-3;d=(c+d|0)-3|0;a=E[d+2|0]<<16&4128768|E[d+1|0]<<8|E[d|0]}a=a+4096|0;D[k+8>>2]=a;if(a>>>0>1048575){break a}a=e;d=c+h|0;a=d>>>0<c>>>0?a+1|0:a;D[b+16>>2]=d;D[b+20>>2]=a;l=1}$=g+16|0;return l}function nd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=D[a+12>>2];h=D[a+8>>2];d=f-h>>2;b=B[b+24|0];a:{if(d>>>0<b>>>0){sa(a+8|0,b-d|0);h=D[a+8>>2];f=D[a+12>>2];break a}if(b>>>0>=d>>>0){break a}f=(b<<2)+h|0;D[a+12>>2]=f}b=0;i=D[c+20>>2];e=D[c+16>>2];d=f-h|0;f=d;g=e+d|0;j=D[c+12>>2];i=d>>>0>g>>>0?i+1|0:i;b:{if(g>>>0>G[c+8>>2]&(j|0)<=(i|0)|(i|0)>(j|0)){break b}oa(h,e+D[c>>2]|0,d);d=D[c+20>>2];e=f+D[c+16>>2]|0;d=e>>>0<f>>>0?d+1|0:d;g=e;D[c+16>>2]=e;D[c+20>>2]=d;e=D[c+12>>2];f=g+4|0;d=f>>>0<4?d+1|0:d;if(f>>>0>G[c+8>>2]&(d|0)>=(e|0)|(d|0)>(e|0)){break b}d=g+D[c>>2]|0;D[a+20>>2]=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);d=D[c+20>>2];g=D[c+16>>2];e=g+4|0;f=e>>>0<4?d+1|0:d;j=e;D[c+16>>2]=e;D[c+20>>2]=f;e=D[c+12>>2];if((f|0)>=(e|0)&j>>>0>=G[c+8>>2]|(f|0)>(e|0)){break b}e=E[j+D[c>>2]|0];f=g+5|0;d=f>>>0<5?d+1|0:d;D[c+16>>2]=f;D[c+20>>2]=d;if(e-1>>>0>29){break b}D[a+4>>2]=e;b=1}return b|0}function Uc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;g=$-16|0;$=g;a:{b:{if(b){D[a+88>>2]=0;D[a+92>>2]=0;c=D[a+84>>2];D[a+84>>2]=0;if(c){ma(c)}D[a+76>>2]=0;D[a+80>>2]=0;c=D[a+72>>2];D[a+72>>2]=0;if(c){ma(c)}c=D[b>>2];d=D[b+4>>2];B[g+15|0]=0;Ea(a,d-c>>2,g+15|0);c=D[b+28>>2];d=D[b+24>>2];B[g+14|0]=0;Ea(a+12|0,c-d>>2,g+14|0);Vb(a+28|0,D[b+4>>2]-D[b>>2]>>2,10316);d=D[b+28>>2]-D[b+24>>2]|0;e=d>>2;c=D[a+52>>2];c:{if(e>>>0<=D[a+60>>2]-c>>2>>>0){break c}if((d|0)<0){break b}f=D[a+56>>2];d=na(d);h=d+(e<<2)|0;e=f-c|0;f=e+d|0;if((e|0)>0){oa(d,c,e)}D[a+60>>2]=h;D[a+56>>2]=f;D[a+52>>2]=d;if(!c){break c}ma(c)}d=D[b+28>>2]-D[b+24>>2]|0;e=d>>2;c=D[a+40>>2];d:{if(e>>>0<=D[a+48>>2]-c>>2>>>0){break d}if((d|0)<0){break a}f=D[a+44>>2];d=na(d);h=d+(e<<2)|0;e=f-c|0;f=e+d|0;if((e|0)>0){oa(d,c,e)}D[a+48>>2]=h;D[a+44>>2]=f;D[a+40>>2]=d;if(!c){break d}ma(c)}B[a+24|0]=1;D[a+64>>2]=b}$=g+16|0;return}ra(1326);T()}ra(1326);T()}function Dg(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;h=D[a+12>>2];c=D[a+68>>2];e=D[c+80>>2];B[b+84|0]=0;g=D[b+68>>2];d=D[b+72>>2]-g>>2;a:{if(d>>>0<e>>>0){xa(b+68|0,e-d|0,9156);c=D[a+68>>2];e=D[c+80>>2];break a}if(e>>>0>=d>>>0){break a}D[b+72>>2]=g+(e<<2)}k=D[c+96>>2];c=D[c+100>>2]-k|0;if(!c){return 1}c=(c|0)/12|0;l=c>>>0>1?c:1;m=D[h+28>>2];c=0;b:{while(1){d=(J(c,3)<<2)+m|0;g=D[d>>2];if((g|0)==-1){break b}h=J(c,12)+k|0;i=D[h>>2];if(i>>>0>=e>>>0){break b}f=g<<2;g=D[D[a+72>>2]+12>>2];f=D[f+g>>2];if(f>>>0>=e>>>0){break b}j=i<<2;i=D[b+68>>2];D[j+i>>2]=f;f=D[d+4>>2];if((f|0)==-1){break b}j=D[h+4>>2];if(j>>>0>=e>>>0){break b}f=D[g+(f<<2)>>2];if(f>>>0>=e>>>0){break b}D[i+(j<<2)>>2]=f;d=D[d+8>>2];if((d|0)==-1){break b}h=D[h+8>>2];if(h>>>0>=e>>>0){break b}d=D[g+(d<<2)>>2];if(d>>>0>=e>>>0){break b}D[i+(h<<2)>>2]=d;c=c+1|0;if((l|0)!=(c|0)){continue}break}return 1}return 0}function Ec(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;j=+H[b>>2];k=+H[b+4>>2];l=+H[b+8>>2];g=L(j)+L(k)+L(l);a:{if(!(g>1e-6)){j=1;k=0;e=0;break a}g=1/g;k=g*k;j=g*j;e=g*l<0}h=D[a+16>>2];l=+(h|0);g=P(j*l+.5);b:{if(L(g)<2147483648){m=~~g;break b}m=-2147483648}f=m>>31;i=f+m^f;g=P(k*l+.5);c:{if(L(g)<2147483648){f=~~g;break c}f=-2147483648}b=f>>31;b=h-(i+(f+b^b)|0)|0;i=(b|0)<0?0:b;e=e?0-i|0:i;f=f+(b>>31&((f|0)>0?b:0-b|0))|0;d:{if((m|0)>=0){b=e+h|0;a=D[a+8>>2];e=h+f|0;break d}b=f>>31;b=b+f^b;a=D[a+8>>2];b=(e|0)<0?b:a-b|0;e=(f|0)<0?i:a-i|0}e:{if(!(b|e)){b=a;break e}if(!((a|0)!=(b|0)|e)){b=a;break e}if(!((a|0)!=(e|0)|b)){b=a;break e}if(!((b|0)<=(h|0)|e)){b=(h<<1)-b|0;a=0;break e}if(!((a|0)!=(e|0)|(b|0)>=(h|0))){b=(h<<1)-b|0;break e}if(!((a|0)!=(b|0)|(e|0)>=(h|0))){b=a;a=(h<<1)-e|0;break e}if(b){a=e;break e}b=0;if((e|0)<=(h|0)){a=e;break e}a=(h<<1)-e|0}D[c>>2]=a;D[d>>2]=b}function yc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=K(0),f=K(0),g=K(0),h=K(0),i=K(0),j=0,k=K(0),l=K(0),m=K(0),n=K(0),o=0;a:{if(D[c+28>>2]!=9|E[c+24|0]!=3){break a}a=D[a+4>>2];if(a-31>>>0<4294967267){break a}o=1;j=D[c+80>>2];if(!j){break a}k=K(K(2)/K((1<<a)-2|0));c=D[D[c>>2]>>2]+D[c+48>>2]|0;a=D[D[b>>2]>>2]+D[b+48>>2]|0;b=0;while(1){g=K(0);l=K(0);m=K(0);e=K(K(K(D[a>>2])*k)+K(-1));f=K(K(K(D[a+4>>2])*k)+K(-1));i=K(K(K(1)-K(L(e)))-K(L(f)));h=K(O(K(-i),K(0)));n=K(-h);f=K(f+(f<K(0)?h:n));e=K(e+(e<K(0)?h:n));h=K(K(f*f)+K(K(i*i)+K(e*e)));if(!(+h<1e-6)){g=K(K(1)/K(S(h)));m=K(f*g);l=K(e*g);g=K(i*g)}a=a+8|0;d=(v(m),x(2));B[c+8|0]=d;B[c+9|0]=d>>>8;B[c+10|0]=d>>>16;B[c+11|0]=d>>>24;d=(v(l),x(2));B[c+4|0]=d;B[c+5|0]=d>>>8;B[c+6|0]=d>>>16;B[c+7|0]=d>>>24;d=(v(g),x(2));B[c|0]=d;B[c+1|0]=d>>>8;B[c+2|0]=d>>>16;B[c+3|0]=d>>>24;c=c+12|0;b=b+1|0;if((j|0)!=(b|0)){continue}break}}return o|0}function Sc(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;g=D[a>>2];c=g+(b>>>3&536870908)|0;D[c>>2]=D[c>>2]|1<<b;f=D[a+64>>2];e=(b|0)==-1;d=-1;a:{if(e){break a}c=b+1|0;c=(c>>>0)%3|0?c:b-2|0;d=-1;if((c|0)==-1){break a}d=D[D[f>>2]+(c<<2)>>2]}c=D[a+12>>2];h=(d>>>3&536870908)+c|0;D[h>>2]=D[h>>2]|1<<d;b:{c:{if(!e){d:{e:{if((b>>>0)%3|0){e=b-1|0;break e}e=b+2|0;d=-1;if((e|0)==-1){break d}}d=D[D[f>>2]+(e<<2)>>2]}e=(d>>>3&536870908)+c|0;D[e>>2]=D[e>>2]|1<<d;d=-1;b=D[D[f+12>>2]+(b<<2)>>2];if((b|0)==-1){break b}B[a+24|0]=0;a=(b>>>3&536870908)+g|0;D[a>>2]=D[a>>2]|1<<b;a=b+1|0;a=(a>>>0)%3|0?a:b-2|0;if((a|0)!=-1){d=D[D[f>>2]+(a<<2)>>2]}a=c+(d>>>3&536870908)|0;D[a>>2]=D[a>>2]|1<<d;f:{g:{if((b>>>0)%3|0){b=b-1|0;break g}b=b+2|0;a=-1;if((b|0)==-1){break f}}a=D[D[f>>2]+(b<<2)>>2]}b=1<<a;a=c+(a>>>3&536870908)|0;c=D[a>>2];break c}a=c+536870908|0;b=D[c+536870908>>2];c=-2147483648}D[a>>2]=b|c}}function jc(a,b){var c=0,d=0;c=D[b+8>>2];D[a+4>>2]=D[b+4>>2];D[a+8>>2]=c;D[a+20>>2]=D[b+20>>2];c=D[b+16>>2];D[a+12>>2]=D[b+12>>2];D[a+16>>2]=c;a:{b:{if((a|0)!=(b|0)){c=D[b+28>>2];if(c){c:{if(D[a+32>>2]<<5>>>0>=c>>>0){d=D[a+24>>2];break c}d=D[a+24>>2];if(d){ma(d);D[a+32>>2]=0;D[a+24>>2]=0;D[a+28>>2]=0;c=D[b+28>>2]}if((c|0)<0){break b}c=(c-1>>>5|0)+1|0;d=na(c<<2);D[a+32>>2]=c;D[a+28>>2]=0;D[a+24>>2]=d;c=D[b+28>>2]}Pa(d,D[b+24>>2],(c-1>>>3&536870908)+4|0);c=D[b+28>>2]}else{c=0}D[a+28>>2]=c;c=D[b+40>>2];if(c){d:{if(D[a+44>>2]<<5>>>0>=c>>>0){d=D[a+36>>2];break d}d=D[a+36>>2];if(d){ma(d);D[a+44>>2]=0;D[a+36>>2]=0;D[a+40>>2]=0;c=D[b+40>>2]}if((c|0)<0){break a}c=(c-1>>>5|0)+1|0;d=na(c<<2);D[a+44>>2]=c;D[a+40>>2]=0;D[a+36>>2]=d;c=D[b+40>>2]}Pa(d,D[b+36>>2],(c-1>>>3&536870908)+4|0);b=D[b+40>>2]}else{b=0}D[a+40>>2]=b}return}Fa();T()}Fa();T()}function Id(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=$-16|0;$=g;a:{if(!Ta(1,g+8|0,b)){break a}c=D[b+8>>2];e=D[b+16>>2];h=D[g+12>>2];d=D[b+20>>2];f=D[b+12>>2]-(d+(c>>>0<e>>>0)|0)|0;i=c-e|0;c=D[g+8>>2];if((h|0)==(f|0)&i>>>0<c>>>0|f>>>0<h>>>0){break a}d=d+h|0;f=c+e|0;d=f>>>0<e>>>0?d+1|0:d;D[b+16>>2]=f;D[b+20>>2]=d;if((c|0)<=0){break a}d=e+D[b>>2]|0;D[a+40>>2]=d;h=a;f=c-1|0;e=d+f|0;b=E[e|0];b:{if(b>>>0<=63){D[a+44>>2]=f;a=E[e|0]&63;break b}c:{switch((b>>>6|0)-1|0){case 0:if(c>>>0<2){break a}D[a+44>>2]=c-2;b=(c+d|0)-2|0;a=E[b+1|0]<<8&16128|E[b|0];break b;case 1:if(c>>>0<3){break a}D[a+44>>2]=c-3;b=(c+d|0)-3|0;a=E[b+2|0]<<16&4128768|E[b+1|0]<<8|E[b|0];break b;default:break c}}D[a+44>>2]=c-4;b=(c+d|0)-4|0;a=E[b+2|0]<<16|E[b+3|0]<<24&1056964608|E[b+1|0]<<8|E[b|0]}a=a+16384|0;D[h+48>>2]=a;j=a>>>0<4194304}$=g+16|0;return j}function Le(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0;f=$+-64|0;$=f;d=1;a:{if(La(a,b,0)){break a}d=0;if(!b){break a}d=$+-64|0;$=d;e=D[b>>2];g=D[e-4>>2];h=D[e-8>>2];D[d+20>>2]=0;D[d+16>>2]=11052;D[d+12>>2]=b;D[d+8>>2]=11100;e=0;pa(d+24|0,0,39);b=b+h|0;b:{if(La(g,11100,0)){D[d+56>>2]=1;ba[D[D[g>>2]+20>>2]](g,d+8|0,b,b,1,0);e=D[d+32>>2]==1?b:0;break b}ba[D[D[g>>2]+24>>2]](g,d+8|0,b,1,0);c:{switch(D[d+44>>2]){case 0:e=D[d+48>>2]==1?D[d+36>>2]==1?D[d+40>>2]==1?D[d+28>>2]:0:0:0;break b;case 1:break c;default:break b}}if(D[d+32>>2]!=1){if(D[d+48>>2]|D[d+36>>2]!=1|D[d+40>>2]!=1){break b}}e=D[d+24>>2]}$=d- -64|0;d=0;if(!e){break a}b=f+8|0;pa(b|4,0,52);D[f+56>>2]=1;D[f+20>>2]=-1;D[f+16>>2]=a;D[f+8>>2]=e;ba[D[D[e>>2]+28>>2]](e,b,D[c>>2],1);a=D[f+32>>2];if((a|0)==1){D[c>>2]=D[f+24>>2]}d=(a|0)==1}$=f- -64|0;return d|0}function qd(a){a=a|0;var b=0,c=0,d=0,e=0;D[a>>2]=8312;d=D[a+368>>2];D[a+368>>2]=0;if(d){e=d-4|0;b=D[e>>2];if(b){c=(b<<4)+d|0;while(1){c=c-16|0;if((d|0)!=(c|0)){continue}break}}ma(e)}pd(a+216|0);b=D[a+196>>2];if(b){D[a+200>>2]=b;ma(b)}b=D[a+184>>2];if(b){D[a+188>>2]=b;ma(b)}b=D[a+172>>2];if(b){D[a+176>>2]=b;ma(b)}b=D[a+160>>2];if(b){D[a+164>>2]=b;ma(b)}c=D[a+144>>2];if(c){while(1){b=D[c>>2];ma(c);c=b;if(b){continue}break}}b=D[a+136>>2];D[a+136>>2]=0;if(b){ma(b)}b=D[a+120>>2];if(b){ma(b)}b=D[a+108>>2];if(b){ma(b)}b=D[a+96>>2];if(b){ma(b)}b=D[a+72>>2];if(b){D[a+76>>2]=b;ma(b)}b=D[a+60>>2];if(b){ma(b)}b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}b=D[a+36>>2];if(b){D[a+40>>2]=b;ma(b)}b=D[a+24>>2];if(b){D[a+28>>2]=b;ma(b)}b=D[a+12>>2];if(b){D[a+16>>2]=b;ma(b)}b=D[a+8>>2];D[a+8>>2]=0;if(b){cb(b)}return a|0}function Mf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a:{a=$-32|0;$=a;e=za(c);if(e>>>0<4294967280){b:{c:{if(e>>>0>=11){g=e+16&-16;f=na(g);D[a+24>>2]=g|-2147483648;D[a+16>>2]=f;D[a+20>>2]=e;break c}B[a+27|0]=e;f=a+16|0;if(!e){break b}}oa(f,c,e)}B[e+f|0]=0;D[a+8>>2]=0;D[a>>2]=0;D[a+4>>2]=0;d:{c=ab(b,a+16|0);if((c|0)==(b+4|0)){break d}b=D[c+28>>2];f=D[c+32>>2];if((b|0)==(f|0)){break d}b=f-b|0;if(b&3){break d}e=b>>>2|0;f=D[a+4>>2];b=D[a>>2];g=f-b>>2;e:{if(e>>>0>g>>>0){sa(a,e-g|0);b=D[a>>2];f=D[a+4>>2];break e}if(e>>>0>=g>>>0){break e}f=(e<<2)+b|0;D[a+4>>2]=f}if((b|0)!=(f|0)){e=b;b=D[c+28>>2];oa(e,b,D[c+32>>2]-b|0);break d}ua();T()}b=D[d>>2];if(b){D[d+4>>2]=b;ma(b)}D[d>>2]=D[a>>2];D[d+4>>2]=D[a+4>>2];D[d+8>>2]=D[a+8>>2];if(B[a+27|0]<0){ma(D[a+16>>2])}$=a+32|0;break a}Aa();T()}}function lc(a){var b=0,c=0,d=0;b=D[a+8>>2];d=D[a>>2];a:{if(E[a+12|0]){b:{c:{d:{e:{if((b|0)==-1){break e}c=b+1|0;b=(c>>>0)%3|0?c:b-2|0;if((b|0)==-1){break e}b=D[D[d+12>>2]+(b<<2)>>2];if((b|0)!=-1){break d}}D[a+8>>2]=-1;break c}c=b+1|0;b=(c>>>0)%3|0?c:b-2|0;D[a+8>>2]=b;if((b|0)!=-1){break b}}c=D[a+4>>2];b=-1;f:{if((c|0)==-1){break f}g:{if((c>>>0)%3|0){c=c-1|0;break g}c=c+2|0;b=-1;if((c|0)==-1){break f}}c=D[D[d+12>>2]+(c<<2)>>2];b=-1;if((c|0)==-1){break f}b=c-1|0;if((c>>>0)%3|0){break f}b=c+2|0}B[a+12|0]=0;D[a+8>>2]=b;return}if((b|0)!=D[a+4>>2]){break a}D[a+8>>2]=-1;return}c=-1;h:{if((b|0)==-1){break h}i:{if((b>>>0)%3|0){b=b-1|0;break i}b=b+2|0;c=-1;if((b|0)==-1){break h}}b=D[D[d+12>>2]+(b<<2)>>2];c=-1;if((b|0)==-1){break h}c=b-1|0;if((b>>>0)%3|0){break h}c=b+2|0}D[a+8>>2]=c}}function Ld(a){var b=0,c=0,d=0;b=na(32);c=E[1619]|E[1620]<<8;B[b+24|0]=c;B[b+25|0]=c>>>8;c=E[1615]|E[1616]<<8|(E[1617]<<16|E[1618]<<24);d=E[1611]|E[1612]<<8|(E[1613]<<16|E[1614]<<24);B[b+16|0]=d;B[b+17|0]=d>>>8;B[b+18|0]=d>>>16;B[b+19|0]=d>>>24;B[b+20|0]=c;B[b+21|0]=c>>>8;B[b+22|0]=c>>>16;B[b+23|0]=c>>>24;c=E[1607]|E[1608]<<8|(E[1609]<<16|E[1610]<<24);d=E[1603]|E[1604]<<8|(E[1605]<<16|E[1606]<<24);B[b+8|0]=d;B[b+9|0]=d>>>8;B[b+10|0]=d>>>16;B[b+11|0]=d>>>24;B[b+12|0]=c;B[b+13|0]=c>>>8;B[b+14|0]=c>>>16;B[b+15|0]=c>>>24;c=E[1599]|E[1600]<<8|(E[1601]<<16|E[1602]<<24);d=E[1595]|E[1596]<<8|(E[1597]<<16|E[1598]<<24);B[b|0]=d;B[b+1|0]=d>>>8;B[b+2|0]=d>>>16;B[b+3|0]=d>>>24;B[b+4|0]=c;B[b+5|0]=c>>>8;B[b+6|0]=c>>>16;B[b+7|0]=c>>>24;B[b+26|0]=0;D[a>>2]=-1;ta(a+4|0,b,26);ma(b)}function Of(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=$-16|0;$=d;a:{e=za(c);if(e>>>0<4294967280){b:{c:{if(e>>>0>=11){f=e+16&-16;a=na(f);D[d+8>>2]=f|-2147483648;D[d>>2]=a;D[d+4>>2]=e;break c}B[d+11|0]=e;a=d;if(!e){break b}}oa(a,c,e)}B[a+e|0]=0;c=E[d+11|0];e=c<<24>>24;f=D[d>>2];b=D[b+4>>2];a=0;d:{if(!b){break d}a=c;c=(e|0)<0;a=c?D[d+4>>2]:a;j=c?f:d;while(1){c=E[b+27|0];g=c<<24>>24<0;c=g?D[b+20>>2]:c;k=c>>>0<a>>>0;e:{f:{i=k?c:a;g:{if(i){h=b+16|0;g=g?D[h>>2]:h;h=va(j,g,i);h:{if(!h){if(a>>>0>=c>>>0){break h}break e}if((h|0)<0){break e}}c=va(g,j,i);if(!c){break g}if((c|0)<0){break f}a=1;break d}if(a>>>0<c>>>0){break e}}if(k){break f}a=1;break d}b=b+4|0}b=D[b>>2];if(b){continue}break}a=0}if((e|0)<0){ma(f)}$=d+16|0;break a}Aa();T()}return a|0}function Pa(a,b,c){var d=0,e=0;a:{if((a|0)==(b|0)){break a}e=a+c|0;if(b-e>>>0<=0-(c<<1)>>>0){return oa(a,b,c)}d=(a^b)&3;b:{c:{if(a>>>0<b>>>0){if(d){d=a;break b}if(!(a&3)){d=a;break c}d=a;while(1){if(!c){break a}B[d|0]=E[b|0];b=b+1|0;c=c-1|0;d=d+1|0;if(d&3){continue}break}break c}d:{if(d){break d}if(e&3){while(1){if(!c){break a}c=c-1|0;d=c+a|0;B[d|0]=E[b+c|0];if(d&3){continue}break}}if(c>>>0<=3){break d}while(1){c=c-4|0;D[c+a>>2]=D[b+c>>2];if(c>>>0>3){continue}break}}if(!c){break a}while(1){c=c-1|0;B[c+a|0]=E[b+c|0];if(c){continue}break}break a}if(c>>>0<=3){break b}while(1){D[d>>2]=D[b>>2];b=b+4|0;d=d+4|0;c=c-4|0;if(c>>>0>3){continue}break}}if(!c){break a}while(1){B[d|0]=E[b|0];d=d+1|0;b=b+1|0;c=c-1|0;if(c){continue}break}}return a}function Pc(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0;d=$-16|0;$=d;g=D[a+24>>2];l=D[a+28>>2];a:{if((g|0)!=(l|0)){while(1){D[d+8>>2]=0;D[d>>2]=0;D[d+4>>2]=0;e=Oc(D[g>>2],b,d);a=E[d+11|0];i=a<<24>>24;j=3;b:{c:{d:{e:{if(!e){break e}j=0;e=E[c+11|0];f=e<<24>>24;k=(i|0)<0?D[d+4>>2]:a;if((k|0)!=(((f|0)<0?D[c+4>>2]:e)|0)){break e}h=(f|0)<0?D[c>>2]:c;f=D[d>>2];e=(i|0)<0;f:{if(!e){if(!i){break f}e=d;if(E[h|0]!=(f&255)){break b}while(1){a=a-1|0;if(!a){break f}f=E[h+1|0];h=h+1|0;e=e+1|0;if((f|0)==E[e|0]){continue}break}break e}if(!k){break f}if(va(e?f:d,h,k)){break d}}m=D[g>>2];j=1}if((i|0)>=0){break c}}ma(D[d>>2])}switch(j|0){case 0:case 3:break b;default:break a}}g=g+4|0;if((l|0)!=(g|0)){continue}break}}m=0}$=d+16|0;return m}function Qb(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;d=D[a+8>>2];c=D[a+4>>2];if(d-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=pa(c,0,b)+b|0}D[a+4>>2]=c;return}a:{b:{c:{g=D[a>>2];f=c-g>>2;e=f+b|0;if(e>>>0<1073741824){d=d-g|0;h=d>>1;e=d>>>0<2147483644?e>>>0>h>>>0?e:h:1073741823;if(e){if(e>>>0>=1073741824){break c}i=na(e<<2)}d=(f<<2)+i|0;f=b<<2;b=pa(d,0,f);f=b+f|0;e=(e<<2)+i|0;if((c|0)==(g|0)){break b}while(1){c=c-4|0;b=D[c>>2];D[c>>2]=0;d=d-4|0;D[d>>2]=b;if((c|0)!=(g|0)){continue}break}D[a+8>>2]=e;b=D[a+4>>2];D[a+4>>2]=f;c=D[a>>2];D[a>>2]=d;if((b|0)==(c|0)){break a}while(1){b=b-4|0;a=D[b>>2];D[b>>2]=0;if(a){ba[D[D[a>>2]+4>>2]](a)}if((b|0)!=(c|0)){continue}break}break a}qa();T()}ra(1326);T()}D[a+8>>2]=e;D[a+4>>2]=f;D[a>>2]=b}if(c){ma(c)}}function Ud(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=D[b+12>>2];g=d;c=D[b+20>>2];e=c;f=D[b+16>>2];h=f+4|0;c=h>>>0<4?c+1|0:c;i=D[b+8>>2];a:{if(i>>>0<h>>>0&(c|0)>=(d|0)|(c|0)>(d|0)){break a}j=D[b>>2];d=j+f|0;d=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);D[b+16>>2]=h;D[b+20>>2]=c;c=e;e=f+8|0;c=e>>>0<8?c+1|0:c;f=e;e=c;if(f>>>0>i>>>0&(c|0)>=(g|0)|(c|0)>(g|0)){break a}c=h+j|0;c=E[c|0]|E[c+1|0]<<8|(E[c+2|0]<<16|E[c+3|0]<<24);D[b+16>>2]=f;D[b+20>>2]=e;if((c|0)<(d|0)){break a}D[a+16>>2]=c;D[a+12>>2]=d;g=(c>>31)-((d>>31)+(c>>>0<d>>>0)|0)|0;c=c-d|0;if(!g&c>>>0>2147483646|g){break a}c=c+1|0;D[a+20>>2]=c;d=c>>>1|0;D[a+24>>2]=d;D[a+28>>2]=0-d;if(!(c&1)){D[a+24>>2]=d-1}k=Ma(a+112|0,b)}return k|0}function pa(a,b,c){var d=0,e=0,f=0;a:{if(!c){break a}B[a|0]=b;e=a+c|0;B[e-1|0]=b;if(c>>>0<3){break a}B[a+2|0]=b;B[a+1|0]=b;B[e-3|0]=b;B[e-2|0]=b;if(c>>>0<7){break a}B[a+3|0]=b;B[e-4|0]=b;if(c>>>0<9){break a}e=0-a&3;f=e+a|0;d=J(b&255,16843009);D[f>>2]=d;b=c-e&-4;c=b+f|0;D[c-4>>2]=d;if(b>>>0<9){break a}D[f+8>>2]=d;D[f+4>>2]=d;D[c-8>>2]=d;D[c-12>>2]=d;if(b>>>0<25){break a}D[f+24>>2]=d;D[f+20>>2]=d;D[f+16>>2]=d;D[f+12>>2]=d;D[c-16>>2]=d;D[c-20>>2]=d;D[c-24>>2]=d;D[c-28>>2]=d;c=b;b=f&4|24;c=c-b|0;if(c>>>0<32){break a}d=ai(d,0,1,1);e=aa;b=b+f|0;while(1){D[b+24>>2]=d;D[b+28>>2]=e;D[b+16>>2]=d;D[b+20>>2]=e;D[b+8>>2]=d;D[b+12>>2]=e;D[b>>2]=d;D[b+4>>2]=e;b=b+32|0;c=c-32|0;if(c>>>0>31){continue}break}}return a}function Rc(a,b){var c=0,d=0,e=0,f=0,g=0;d=-1;f=-1;e=-1;a:{b:{if((b|0)==-1){break b}g=1;f=D[D[D[a+4>>2]+12>>2]+(b<<2)>>2];c=b+1|0;c=(c>>>0)%3|0?c:b-2|0;if((c|0)>=0){e=(c>>>0)/3|0;e=D[(D[D[a>>2]+96>>2]+J(e,12)|0)+(c-J(e,3)<<2)>>2]}c:{if((f|0)==-1){break c}g=0;c=((f>>>0)%3|0?-1:2)+f|0;if((c|0)<0){break c}d=(c>>>0)/3|0;d=D[(D[D[a>>2]+96>>2]+J(d,12)|0)+(c-J(d,3)<<2)>>2]}c=-1;if((d|0)!=(e|0)){break a}e=-1;d:{b=((b>>>0)%3|0?-1:2)+b|0;if((b|0)>=0){d=(b>>>0)/3|0;d=D[(D[D[a>>2]+96>>2]+J(d,12)|0)+(b-J(d,3)<<2)>>2];if(g){break b}break d}d=-1;if(!g){break d}break b}b=f+1|0;b=(b>>>0)%3|0?b:f-2|0;if((b|0)<0){break b}c=D[D[a>>2]+96>>2];a=(b>>>0)/3|0;e=D[(c+J(a,12)|0)+(b-J(a,3)<<2)>>2]}c=(d|0)==(e|0)?f:-1}return c}function Cg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=D[a+4>>2];d=D[b>>2];a:{c=D[a+12>>2];c=D[c+56>>2]-D[c+52>>2]|0;e=c>>2;b:{if(e>>>0<=D[b+8>>2]-d>>2>>>0){break b}if((c|0)<0){break a}f=D[b+4>>2];c=na(c);g=c+(e<<2)|0;e=f-d|0;f=e+c|0;if((e|0)>0){oa(c,d,e)}D[b+8>>2]=g;D[b+4>>2]=f;D[b>>2]=c;if(!d){break b}ma(d)}e=a+8|0;b=D[a+76>>2];c:{if(b){d=D[b>>2];if((d|0)==D[b+4>>2]){return 1}b=0;while(1){c=kd(e,D[(b<<2)+d>>2]);if(!c){break c}f=D[a+76>>2];d=D[f>>2];b=b+1|0;if(b>>>0<D[f+4>>2]-d>>2>>>0){continue}break}break c}c=1;a=D[D[a+12>>2]+64>>2];a=D[a+4>>2]-D[a>>2]|0;if(a>>>0<12){break c}a=(a>>2>>>0)/3|0;b=0;while(1){c=kd(e,J(b,3));if(!c){break c}b=b+1|0;if((a|0)!=(b|0)){continue}break}}return c|0}ra(1326);T()}function de(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0;d=D[b+12>>2];h=d;c=D[b+20>>2];e=c;f=D[b+16>>2];g=f+4|0;c=g>>>0<4?c+1|0:c;i=D[b+8>>2];a:{if(i>>>0<g>>>0&(c|0)>=(d|0)|(c|0)>(d|0)){break a}j=D[b>>2];d=j+f|0;d=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);D[b+16>>2]=g;D[b+20>>2]=c;c=e;e=f+8|0;c=e>>>0<8?c+1|0:c;f=e;e=c;if(f>>>0>i>>>0&(c|0)>=(h|0)|(c|0)>(h|0)){break a}c=g+j|0;c=E[c|0]|E[c+1|0]<<8|(E[c+2|0]<<16|E[c+3|0]<<24);D[b+16>>2]=f;D[b+20>>2]=e;if((c|0)<(d|0)){break a}D[a+16>>2]=c;D[a+12>>2]=d;b=(c>>31)-((d>>31)+(c>>>0<d>>>0)|0)|0;c=c-d|0;if(!b&c>>>0>2147483646|b){break a}k=1;b=c+1|0;D[a+20>>2]=b;c=b>>>1|0;D[a+24>>2]=c;D[a+28>>2]=0-c;if(b&1){break a}D[a+24>>2]=c-1}return k|0}function Ig(a){a=a|0;var b=0,c=0,d=0,e=0,f=0,g=0;b=D[a+4>>2];d=D[b>>2];a:{c=D[a+12>>2];c=D[c+28>>2]-D[c+24>>2]|0;e=c>>2;b:{if(e>>>0<=D[b+8>>2]-d>>2>>>0){break b}if((c|0)<0){break a}f=D[b+4>>2];c=na(c);g=c+(e<<2)|0;e=f-d|0;f=e+c|0;if((e|0)>0){oa(c,d,e)}D[b+8>>2]=g;D[b+4>>2]=f;D[b>>2]=c;if(!d){break b}ma(d)}e=a+8|0;b=D[a+76>>2];c:{if(b){d=D[b>>2];if((d|0)==D[b+4>>2]){return 1}b=0;while(1){c=ld(e,D[(b<<2)+d>>2]);if(!c){break c}f=D[a+76>>2];d=D[f>>2];b=b+1|0;if(b>>>0<D[f+4>>2]-d>>2>>>0){continue}break}break c}c=1;a=D[a+12>>2];a=D[a+4>>2]-D[a>>2]|0;if(a>>>0<12){break c}a=(a>>2>>>0)/3|0;b=0;while(1){c=ld(e,J(b,3));if(!c){break c}b=b+1|0;if((a|0)!=(b|0)){continue}break}}return c|0}ra(1326);T()}function Ef(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;f=$+-64|0;$=f;e=f+8|0;C[e+38>>1]=0;D[e>>2]=0;D[e+8>>2]=0;D[e+12>>2]=0;D[e+16>>2]=0;D[e+20>>2]=0;D[e+24>>2]=0;D[e+28>>2]=0;B[e+29|0]=0;B[e+30|0]=0;B[e+31|0]=0;B[e+32|0]=0;B[e+33|0]=0;B[e+34|0]=0;B[e+35|0]=0;B[e+36|0]=0;D[e+16>>2]=0;D[e+20>>2]=0;D[e>>2]=b;D[e+8>>2]=c;D[e+12>>2]=0;b=f+48|0;Md(b,a,e,d);D[a+24>>2]=D[f+48>>2];c=a+24|0;a:{if((c|0)==(b|0)){break a}e=f+48|4;b=E[f+63|0];d=b<<24>>24;g=a+28|0;if(B[g+11|0]>=0){if((d|0)>=0){a=D[e+4>>2];D[g>>2]=D[e>>2];D[g+4>>2]=a;D[g+8>>2]=D[e+8>>2];break a}sb(g,D[f+52>>2],D[f+56>>2]);break a}a=(d|0)<0;tb(g,a?D[f+52>>2]:e,a?D[f+56>>2]:b)}if(B[f+63|0]<0){ma(D[f+52>>2])}$=f- -64|0;return c|0}function Ff(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;d=$+-64|0;$=d;C[d+46>>1]=0;D[d+8>>2]=0;D[d+16>>2]=0;D[d+20>>2]=0;D[d+24>>2]=0;D[d+28>>2]=0;D[d+32>>2]=0;D[d+36>>2]=0;B[d+37|0]=0;B[d+38|0]=0;B[d+39|0]=0;B[d+40|0]=0;B[d+41|0]=0;B[d+42|0]=0;B[d+43|0]=0;B[d+44|0]=0;D[d+24>>2]=0;D[d+28>>2]=0;D[d+8>>2]=b;D[d+16>>2]=c;D[d+20>>2]=0;b=d+48|0;Ld(b);D[a+24>>2]=D[d+48>>2];e=a+24|0;a:{if((b|0)==(e|0)){break a}b=d+48|4;f=E[d+63|0];c=f<<24>>24;a=a+28|0;if(B[a+11|0]>=0){if((c|0)>=0){c=D[b+4>>2];D[a>>2]=D[b>>2];D[a+4>>2]=c;D[a+8>>2]=D[b+8>>2];break a}sb(a,D[d+52>>2],D[d+56>>2]);break a}g=a;a=(c|0)<0;tb(g,a?D[d+52>>2]:b,a?D[d+56>>2]:f)}if(B[d+63|0]<0){ma(D[d+52>>2])}$=d- -64|0;return e|0}function we(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0;d=D[b>>2];b=D[b+4>>2];f=D[D[a+8>>2]+40>>2];m=na((f|0)>=0?f:-1);g=1;h=b-d|0;a:{if((h|0)<=0){break a}b=0;g=0;d=0+D[c+20>>2]|0;i=D[c+16>>2];e=f+i|0;d=e>>>0<f>>>0?d+1|0:d;j=e;e=D[c+12>>2];if(j>>>0>G[c+8>>2]&(e|0)<=(d|0)|(d|0)>(e|0)){break a}k=h>>2;g=(k|0)>1?k:1;while(1){b:{e=oa(m,i+D[c>>2]|0,f);D[c+16>>2]=j;D[c+20>>2]=d;oa(D[D[D[a+8>>2]+64>>2]>>2]+b|0,e,f);l=l+1|0;if((g|0)==(l|0)){break b}b=b+f|0;d=n+D[c+20>>2]|0;i=D[c+16>>2];e=f+i|0;d=e>>>0<f>>>0?d+1|0:d;j=e;h=e;e=D[c+12>>2];if((e|0)>=(d|0)&G[c+8>>2]>=h>>>0|(d|0)<(e|0)){continue}}break}g=(l|0)>=(k|0)}ma(m);return g|0}function ne(a,b){a=a|0;b=b|0;a=0;a:{switch(b|0){case 0:a=na(20);D[a+12>>2]=-1;D[a+16>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;D[a>>2]=1948;return a|0;case 1:a=na(24);D[a+12>>2]=-1;D[a+16>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;D[a>>2]=1948;D[a+20>>2]=0;D[a>>2]=2164;return a|0;case 2:a=na(48);D[a+12>>2]=-1;D[a+16>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;D[a>>2]=1948;D[a+20>>2]=0;D[a>>2]=2164;D[a+32>>2]=0;D[a+36>>2]=0;D[a+28>>2]=-1;D[a+24>>2]=1140;D[a>>2]=7976;D[a+40>>2]=0;D[a+44>>2]=0;return a|0;case 3:a=na(32);D[a+12>>2]=-1;D[a+16>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;D[a>>2]=1948;D[a+20>>2]=0;D[a>>2]=2164;D[a+28>>2]=-1;D[a+24>>2]=1032;D[a>>2]=5840;break;default:break a}}return a|0}function lh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;D[b>>2]=1;f=b+8|0;c=D[b+8>>2];d=D[b+12>>2]-c|0;if(d>>>0<=4294967291){Fb(f,d+4|0);c=D[f>>2]}c=c+d|0;d=D[a+4>>2];B[c|0]=d;B[c+1|0]=d>>>8;B[c+2|0]=d>>>16;B[c+3|0]=d>>>24;c=D[a+8>>2];if((c|0)!=D[a+12>>2]){d=0;while(1){g=(d<<2)+c|0;c=D[b+8>>2];e=D[b+12>>2]-c|0;if(e>>>0<=4294967291){Fb(f,e+4|0);c=D[f>>2]}c=c+e|0;e=D[g>>2];B[c|0]=e;B[c+1|0]=e>>>8;B[c+2|0]=e>>>16;B[c+3|0]=e>>>24;d=d+1|0;c=D[a+8>>2];if(d>>>0<D[a+12>>2]-c>>2>>>0){continue}break}}c=D[b+12>>2];b=D[b+8>>2];c=c-b|0;if(c>>>0<=4294967291){Fb(f,c+4|0);b=D[f>>2]}b=b+c|0;a=D[a+20>>2];B[b|0]=a;B[b+1|0]=a>>>8;B[b+2|0]=a>>>16;B[b+3|0]=a>>>24}function Bf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;e=$-32|0;$=e;a:{b:{f=za(c);if(f>>>0<4294967280){c:{d:{if(f>>>0>=11){g=f+16&-16;a=na(g);D[e+24>>2]=g|-2147483648;D[e+16>>2]=a;D[e+20>>2]=f;break d}B[e+27|0]=f;a=e+16|0;if(!f){break c}}oa(a,c,f)}B[a+f|0]=0;c=za(d);if(c>>>0>=4294967280){break b}e:{f:{if(c>>>0>=11){f=c+16&-16;a=na(f);D[e+8>>2]=f|-2147483648;D[e>>2]=a;D[e+4>>2]=c;break f}B[e+11|0]=c;a=e;if(!c){break e}}oa(a,d,c)}B[a+c|0]=0;c=D[b+4>>2];a=-1;g:{if(!c){break g}c=Pc(c,e+16|0,e);a=-1;if(!c){break g}a=Lc(b,D[c+24>>2])}if(B[e+11|0]<0){ma(D[e>>2])}if(B[e+27|0]<0){ma(D[e+16>>2])}$=e+32|0;break a}Aa();T()}Aa();T()}return a|0}function Ea(a,b,c){var d=0,e=0,f=0,g=0;e=$-16|0;$=e;D[a+4>>2]=0;a:{b:{if(!b){break b}g=D[a+8>>2];d=g<<5;c:{if(d>>>0>=b>>>0){D[a+4>>2]=b;break c}D[e+8>>2]=0;D[e>>2]=0;D[e+4>>2]=0;if((b|0)<0){break a}if(d>>>0<=1073741822){f=b+31&-32;d=g<<6;d=d>>>0<f>>>0?f:d}else{d=2147483647}Va(e,d);f=D[a>>2];D[a>>2]=D[e>>2];D[e>>2]=f;d=D[a+4>>2];D[a+4>>2]=b;D[e+4>>2]=d;d=D[a+8>>2];D[a+8>>2]=D[e+8>>2];D[e+8>>2]=d;if(!f){break c}ma(f)}f=b>>>5|0;d=f<<2;a=D[a>>2];if(E[c|0]){a=pa(a,255,d);b=b&31;if(!b){break b}a=a+(f<<2)|0;D[a>>2]=D[a>>2]|-1>>>32-b;break b}a=pa(a,0,d);b=b&31;if(!b){break b}a=a+(f<<2)|0;D[a>>2]=D[a>>2]&(-1>>>32-b^-1)}$=e+16|0;return}Fa();T()}function ie(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,l=0;h=D[c+12>>2];d=h;e=D[c+20>>2];i=D[c+8>>2];f=D[c+16>>2];a:{if((d|0)<=(e|0)&i>>>0<=f>>>0|(d|0)<(e|0)){break a}j=D[c>>2];k=B[j+f|0];d=e;g=f+1|0;d=g?d:d+1|0;D[c+16>>2]=g;D[c+20>>2]=d;b:{if((k|0)==-2){break b}if((d|0)>=(h|0)&g>>>0>=i>>>0|(d|0)>(h|0)){break a}d=B[g+j|0];f=f+2|0;e=f>>>0<2?e+1|0:e;D[c+16>>2]=f;D[c+20>>2]=e;if((d-4&255)>>>0<251){break a}e=ba[D[D[a>>2]+40>>2]](a,k,d)|0;d=D[a+20>>2];D[a+20>>2]=e;if(!d){break b}ba[D[D[d>>2]+4>>2]](d)}d=D[a+20>>2];if(d){if(!(ba[D[D[a>>2]+28>>2]](a,d)|0)){break a}}l=ba[D[D[a>>2]+36>>2]](a,b,c)|0}return l|0}function zh(a,b,c,d,e,f){a=a|0;b=b|0;c=c|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;f=$-32|0;$=f;h=(e&1073741823)!=(e|0)?-1:e<<2;h=pa(na(h),0,h);g=D[b>>2];i=D[b+4>>2];k=D[h+4>>2];D[f+16>>2]=D[h>>2];D[f+20>>2]=k;D[f+8>>2]=g;D[f+12>>2]=i;i=a+8|0;Kb(f+24|0,i,f+16|0,f+8|0);D[c>>2]=D[f+24>>2];D[c+4>>2]=D[f+28>>2];if((d|0)>(e|0)){k=0-e<<2;a=e;while(1){g=a<<2;j=g+b|0;m=D[j>>2];j=D[j+4>>2];g=c+g|0;l=g+k|0;n=D[l+4>>2];D[f+16>>2]=D[l>>2];D[f+20>>2]=n;D[f+8>>2]=m;D[f+12>>2]=j;Kb(f+24|0,i,f+16|0,f+8|0);D[g>>2]=D[f+24>>2];D[g+4>>2]=D[f+28>>2];a=a+e|0;if((d|0)>(a|0)){continue}break}}ma(h);$=f+32|0;return 1}function hb(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=c-b|0;g=f>>2;d=D[a+8>>2];e=D[a>>2];if(g>>>0<=d-e>>2>>>0){f=D[a+4>>2];d=f-e|0;h=d>>2;d=g>>>0>h>>>0?b+d|0:c;if((d|0)!=(b|0)){while(1){D[e>>2]=D[b>>2];e=e+4|0;b=b+4|0;if((d|0)!=(b|0)){continue}break}}if(g>>>0>h>>>0){b=c-d|0;if((b|0)>0){f=oa(f,d,b)+b|0}D[a+4>>2]=f;return}D[a+4>>2]=e;return}if(e){D[a+4>>2]=e;ma(e);D[a+8>>2]=0;D[a>>2]=0;D[a+4>>2]=0;d=0}a:{if((f|0)<0){break a}c=d>>1;c=d>>>0<2147483644?c>>>0<g>>>0?g:c:1073741823;if(c>>>0>=1073741824){break a}e=c<<2;c=na(e);D[a>>2]=c;D[a+4>>2]=c;D[a+8>>2]=c+e;if(f){c=oa(c,b,f)+f|0}D[a+4>>2]=c;return}qa();T()}function Od(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;e=D[b+12>>2];c=D[b+20>>2];f=c;g=D[b+16>>2];d=g+4|0;c=d>>>0<4?c+1|0:c;h=D[b+8>>2];i=d;a:{if(h>>>0<d>>>0&(c|0)>=(e|0)|(c|0)>(e|0)){break a}d=g+D[b>>2]|0;d=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);D[b+16>>2]=i;D[b+20>>2]=c;c=f;f=g+8|0;c=f>>>0<8?c+1|0:c;if(f>>>0>h>>>0&(c|0)>=(e|0)|(c|0)>(e|0)){break a}D[b+16>>2]=f;D[b+20>>2]=c;if(!(d&1)){break a}c=M(d)^31;if(c-30>>>0<4294967267){break a}D[a+8>>2]=c+1;e=-2<<c;c=-2-e|0;D[a+16>>2]=c;D[a+12>>2]=e^-1;D[a+24>>2]=(c|0)/2;H[a+20>>2]=K(2)/K(c|0);j=Ma(a+96|0,b)}return j|0}function td(a){var b=0,c=0,d=0,e=0;c=1;d=D[a+140>>2];a:{if((d|0)<=0){break a}b=d<<4;c=na((d|0)!=(d&268435455)?-1:b|4);D[c>>2]=d;c=c+4|0;d=c+b|0;b=c;while(1){D[b>>2]=0;D[b+4>>2]=0;B[b+5|0]=0;B[b+6|0]=0;B[b+7|0]=0;B[b+8|0]=0;B[b+9|0]=0;B[b+10|0]=0;B[b+11|0]=0;B[b+12|0]=0;b=b+16|0;if((d|0)!=(b|0)){continue}break}e=D[a+136>>2];D[a+136>>2]=c;if(e){d=e-4|0;c=D[d>>2];if(c){b=(c<<4)+e|0;while(1){b=b-16|0;if((e|0)!=(b|0)){continue}break}}ma(d)}c=1;if(D[a+140>>2]<=0){break a}b=0;while(1){c=Ma(D[a+136>>2]+(b<<4)|0,a);if(!c){break a}b=b+1|0;if((b|0)<D[a+140>>2]){continue}break}}return c}function Lf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;a=$-32|0;$=a;D[a+24>>2]=0;D[a+28>>2]=0;a:{d=za(c);if(d>>>0<4294967280){b:{c:{if(d>>>0>=11){f=d+16&-16;e=na(f);D[a+16>>2]=f|-2147483648;D[a+8>>2]=e;D[a+12>>2]=d;break c}B[a+19|0]=d;e=a+8|0;if(!d){break b}}oa(e,c,d)}B[d+e|0]=0;c=b+4|0;b=ab(b,a+8|0);d:{if((c|0)==(b|0)){break d}c=D[b+32>>2];b=D[b+28>>2];if((c-b|0)!=8){break d}c=E[b+4|0]|E[b+5|0]<<8|(E[b+6|0]<<16|E[b+7|0]<<24);D[a+24>>2]=E[b|0]|E[b+1|0]<<8|(E[b+2|0]<<16|E[b+3|0]<<24);D[a+28>>2]=c}g=I[a+24>>3];if(B[a+19|0]<0){ma(D[a+8>>2])}$=a+32|0;break a}Aa();T()}return+g}function Zb(a,b){var c=0,d=0,e=0,f=0,g=0;a:{if(D[a+64>>2]){break a}c=na(32);D[c+16>>2]=0;D[c+20>>2]=0;D[c+8>>2]=0;D[c>>2]=0;D[c+4>>2]=0;D[c+24>>2]=0;D[c+28>>2]=0;d=D[a+64>>2];D[a+64>>2]=c;if(!d){break a}c=D[d>>2];if(c){D[d+4>>2]=c;ma(c)}ma(d)}e=D[a+64>>2];c=D[a+28>>2]-1|0;if(c>>>0<=10){d=D[(c<<2)+10180>>2]}else{d=-1}c=J(d,B[a+24|0]);d=c;g=c>>31;e=jd(e,0,ai(c,g,b,0),aa);if(e){c=D[a+64>>2];D[a>>2]=c;f=D[c+20>>2];D[a+8>>2]=D[c+16>>2];D[a+12>>2]=f;f=D[c+24>>2];c=D[c+28>>2];D[a+48>>2]=0;D[a+52>>2]=0;D[a+40>>2]=d;D[a+44>>2]=g;D[a+16>>2]=f;D[a+20>>2]=c;D[a+80>>2]=b}return e}function Dh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=D[b+12>>2];c=D[b+20>>2];e=c;g=D[b+16>>2];d=g+4|0;c=d>>>0<4?c+1|0:c;h=D[b+8>>2];i=d;a:{if(h>>>0<d>>>0&(c|0)>=(f|0)|(c|0)>(f|0)){break a}d=g+D[b>>2]|0;d=E[d|0]|E[d+1|0]<<8|(E[d+2|0]<<16|E[d+3|0]<<24);D[b+16>>2]=i;D[b+20>>2]=c;c=e;e=g+8|0;c=e>>>0<8?c+1|0:c;if(e>>>0>h>>>0&(c|0)>=(f|0)|(c|0)>(f|0)){break a}D[b+16>>2]=e;D[b+20>>2]=c;if(!(d&1)){break a}b=M(d)^31;if(b-30>>>0<4294967267){break a}j=1;D[a+8>>2]=b+1;c=-2<<b;b=-2-c|0;D[a+16>>2]=b;D[a+12>>2]=c^-1;D[a+24>>2]=(b|0)/2;H[a+20>>2]=K(2)/K(b|0)}return j|0}function Kd(a,b,c){var d=0,e=0,f=0,g=0,h=0,i=0,j=0;f=a+4|0;a:{a=D[a+4>>2];if(a){e=E[c+11|0];d=e<<24>>24<0;i=d?D[c>>2]:c;e=d?D[c+4>>2]:e;while(1){c=E[a+27|0];d=c<<24>>24<0;c=d?D[a+20>>2]:c;j=c>>>0<e>>>0;b:{c:{d:{e:{f:{h=j?c:e;g:{if(h){g=a+16|0;d=d?D[g>>2]:g;g=va(i,d,h);if(!g){if(c>>>0>e>>>0){break g}break f}if((g|0)>=0){break f}break g}if(c>>>0<=e>>>0){break e}}c=D[a>>2];if(c){break b}D[b>>2]=a;return a}c=va(d,i,h);if(c){break d}}if(j){break c}break a}if((c|0)>=0){break a}}f=a+4|0;c=D[a+4>>2];if(!c){break a}a=f}f=a;a=c;continue}}D[b>>2]=f;return f}D[b>>2]=a;return f}function _b(a,b){var c=0;c=D[b+4>>2];D[a>>2]=D[b>>2];D[a+4>>2]=c;c=D[b+60>>2];D[a+56>>2]=D[b+56>>2];D[a+60>>2]=c;c=D[b+52>>2];D[a+48>>2]=D[b+48>>2];D[a+52>>2]=c;c=D[b+44>>2];D[a+40>>2]=D[b+40>>2];D[a+44>>2]=c;c=D[b+36>>2];D[a+32>>2]=D[b+32>>2];D[a+36>>2]=c;c=D[b+28>>2];D[a+24>>2]=D[b+24>>2];D[a+28>>2]=c;c=D[b+20>>2];D[a+16>>2]=D[b+16>>2];D[a+20>>2]=c;c=D[b+12>>2];D[a+8>>2]=D[b+8>>2];D[a+12>>2]=c;D[a+88>>2]=0;D[a+64>>2]=0;D[a+68>>2]=0;D[a+72>>2]=0;D[a+76>>2]=0;B[a+77|0]=0;B[a+78|0]=0;B[a+79|0]=0;B[a+80|0]=0;B[a+81|0]=0;B[a+82|0]=0;B[a+83|0]=0;B[a+84|0]=0;return a}function ab(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0,j=0;g=a+4|0;a=D[a+4>>2];a:{b:{if(!a){break b}d=E[b+11|0];c=d<<24>>24<0;i=c?D[b>>2]:b;e=c?D[b+4>>2]:d;c=g;while(1){b=E[a+27|0];j=b<<24>>24<0;h=j?D[a+20>>2]:b;f=h>>>0>e>>>0;d=f?e:h;c:{if(d){b=a+16|0;b=va(j?D[b>>2]:b,i,d);if(b){break c}}b=e>>>0>h>>>0?-1:f}c=(b|0)<0?c:a;a=D[(b>>>29&4)+a>>2];if(a){continue}break}if((c|0)==(g|0)){break b}a=E[c+27|0];f=a<<24>>24<0;d:{d=f?D[c+20>>2]:a;b=d>>>0<e>>>0?d:e;if(b){a=c+16|0;a=va(i,f?D[a>>2]:a,b);if(a){break d}}if(d>>>0>e>>>0){break b}break a}if((a|0)>=0){break a}}c=g}return c}function Ie(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(La(a,D[b+8>>2],e)){if(!(D[b+28>>2]==1|D[b+4>>2]!=(c|0))){D[b+28>>2]=d}return}a:{if(La(a,D[b>>2],e)){if(!(D[b+16>>2]!=(c|0)&D[b+20>>2]!=(c|0))){if((d|0)!=1){break a}D[b+32>>2]=1;return}D[b+32>>2]=d;b:{if(D[b+44>>2]==4){break b}C[b+52>>1]=0;a=D[a+8>>2];ba[D[D[a>>2]+20>>2]](a,b,c,c,1,e);if(E[b+53|0]){D[b+44>>2]=3;if(!E[b+52|0]){break b}break a}D[b+44>>2]=4}D[b+20>>2]=c;D[b+40>>2]=D[b+40>>2]+1;if(D[b+36>>2]!=1|D[b+24>>2]!=2){break a}B[b+54|0]=1;return}a=D[a+8>>2];ba[D[D[a>>2]+24>>2]](a,b,c,d,e)}}function Ag(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0,h=0;f=na(64);c=na(12);D[c+8>>2]=D[D[a+4>>2]+80>>2];D[c>>2]=1e4;D[c+4>>2]=0;f=xc(f,c);a:{b:{if((b|0)<0){c=f;break b}h=a+8|0;c=D[a+12>>2];e=D[a+8>>2];g=c-e>>2;c:{if((g|0)>(b|0)){break c}d=b+1|0;if(b>>>0>=g>>>0){Qb(h,d-g|0);break c}if(d>>>0>=g>>>0){break c}e=e+(d<<2)|0;if((e|0)!=(c|0)){while(1){c=c-4|0;d=D[c>>2];D[c>>2]=0;if(d){ba[D[D[d>>2]+4>>2]](d)}if((c|0)!=(e|0)){continue}break}}D[a+12>>2]=e}a=D[h>>2]+(b<<2)|0;c=D[a>>2];D[a>>2]=f;if(!c){break a}}ba[D[D[c>>2]+4>>2]](c)}return(b^-1)>>>31|0}function Wc(a,b,c){var d=0,e=0,f=0,g=0;a:{if((b|c)>=0){b:{if(b>>>0>1431655765){break b}d=J(b,3);Vb(a,d,10256);Vb(a+12|0,d,10260);d=D[a+24>>2];c:{if(D[a+32>>2]-d>>2>>>0>=c>>>0){break c}if(c>>>0>=1073741824){break a}e=D[a+28>>2];f=c<<2;c=na(f);f=c+f|0;e=e-d|0;g=e+c|0;if((e|0)>0){oa(c,d,e)}D[a+32>>2]=f;D[a+28>>2]=g;D[a+24>>2]=c;if(!d){break c}ma(d)}D[a+80>>2]=0;D[a+84>>2]=0;c=D[a+76>>2];D[a+76>>2]=0;if(c){ma(c)}D[a+68>>2]=0;D[a+72>>2]=0;c=a- -64|0;a=D[c>>2];D[c>>2]=0;if(!a){break b}ma(a)}a=b>>>0<1431655766}else{a=0}return a}ra(1326);T()}function eb(a){var b=0,c=0,d=0,e=0,f=0;d=D[a+8>>2];a:{if(E[d+84|0]){break a}b=D[a+16>>2];if(!b|!E[b+84|0]){break a}c=D[d+72>>2];e=D[d+68>>2];B[b+84|0]=0;c=c-e>>2;f=D[b+68>>2];e=D[b+72>>2]-f>>2;b:{if(c>>>0>e>>>0){xa(b+68|0,c-e|0,2032);d=D[a+8>>2];break b}if(c>>>0>=e>>>0){break b}D[b+72>>2]=f+(c<<2)}b=E[d+84|0];if(b){break a}c=D[d+68>>2];if((c|0)==D[d+72>>2]){break a}e=D[D[a+16>>2]+68>>2];if(!b){b=0;while(1){f=b<<2;D[f+e>>2]=D[c+f>>2];b=b+1|0;c=D[d+68>>2];if(b>>>0<D[d+72>>2]-c>>2>>>0){continue}break}break a}D[e>>2]=0}return D[a+16>>2]}function ob(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;c=D[a+4>>2];if((c|0)!=D[a+8>>2]){d=D[b+4>>2];D[c>>2]=D[b>>2];D[c+4>>2]=d;D[c+8>>2]=D[b+8>>2];D[a+4>>2]=c+12;return}a:{f=D[a>>2];g=c-f|0;d=(g|0)/12|0;c=d+1|0;if(c>>>0<357913942){e=d<<1;e=d>>>0<178956970?c>>>0>e>>>0?c:e:357913941;if(e){if(e>>>0>=357913942){break a}c=na(J(e,12))}else{c=0}d=c+J(d,12)|0;h=D[b+4>>2];D[d>>2]=D[b>>2];D[d+4>>2]=h;D[d+8>>2]=D[b+8>>2];b=d+J((g|0)/-12|0,12)|0;if((g|0)>0){oa(b,f,g)}D[a+8>>2]=c+J(e,12);D[a+4>>2]=d+12;D[a>>2]=b;if(f){ma(f)}return}qa();T()}ra(1326);T()}function Ed(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;a:{c=D[a+216>>2];if((c|0)==D[a+220>>2]){break a}while(1){b:{c=D[J(e,144)+c>>2];if((c|0)<0){break b}d=D[a+4>>2];f=D[d+8>>2];if((c|0)>=D[d+12>>2]-f>>2){break b}d=0;c=D[(c<<2)+f>>2];if((ba[D[D[c>>2]+24>>2]](c)|0)<=0){break b}while(1){if((ba[D[D[c>>2]+20>>2]](c,d)|0)!=(b|0)){d=d+1|0;if((ba[D[D[c>>2]+24>>2]](c)|0)>(d|0)){continue}break b}break}a=D[a+216>>2]+J(e,144)|0;e=E[a+100|0]?a+4|0:0;break a}e=e+1|0;c=D[a+216>>2];if(e>>>0<(D[a+220>>2]-c|0)/144>>>0){continue}break}return 0}return e|0}function re(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;c=D[a+60>>2];a:{if(!c){break a}D[c+4>>2]=a+48;if(!(ba[D[D[c>>2]+12>>2]](c)|0)){break a}b:{c=ba[D[D[a>>2]+24>>2]](a)|0;if((c|0)<=0){break b}while(1){c:{f=D[(ba[D[D[a>>2]+28>>2]](a)|0)+4>>2];g=ba[D[D[a>>2]+20>>2]](a,d)|0;e=D[a+60>>2];if(!(ba[D[D[e>>2]+8>>2]](e,D[D[f+8>>2]+(g<<2)>>2])|0)){break c}d=d+1|0;if((c|0)!=(d|0)){continue}break b}break}return 0}d=0;if(!(ba[D[D[a>>2]+36>>2]](a,b)|0)){break a}if(!(ba[D[D[a>>2]+40>>2]](a,b)|0)){break a}d=ba[D[D[a>>2]+44>>2]](a)|0}return d|0}function Dc(a,b,c,d,e,f,g){var h=0,i=0,j=0;h=$-16|0;$=h;if((b^-1)-17>>>0>=c>>>0){if(E[a+11|0]>>>7|0){j=D[a>>2]}else{j=a}a:{if(b>>>0<2147483623){D[h+8>>2]=b<<1;D[h+12>>2]=b+c;c=$-16|0;$=c;$=c+16|0;c=h+8|0;i=h+12|0;c=D[(G[i>>2]<G[c>>2]?c:i)>>2];if(c>>>0>=11){i=c+16&-16;c=i-1|0;c=(c|0)==11?i:c}else{c=10}break a}c=-18}i=c+1|0;c=na(i);if(f){Ya(c,g,f)}d=d-e|0;if(d){Ya(c+f|0,e+j|0,d)}if((b|0)!=10){ma(j)}D[a>>2]=c;D[a+8>>2]=i|-2147483648;b=a;a=d+f|0;D[b+4>>2]=a;B[h+7|0]=0;B[a+c|0]=E[h+7|0];$=h+16|0;return}Aa();T()}function Dd(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;c=D[a+216>>2];if((c|0)!=D[a+220>>2]){while(1){a:{c=D[J(e,144)+c>>2];if((c|0)<0){break a}d=D[a+4>>2];f=D[d+8>>2];if((c|0)>=D[d+12>>2]-f>>2){break a}d=0;c=D[(c<<2)+f>>2];if((ba[D[D[c>>2]+24>>2]](c)|0)<=0){break a}while(1){if((ba[D[D[c>>2]+20>>2]](c,d)|0)!=(b|0)){d=d+1|0;if((ba[D[D[c>>2]+24>>2]](c)|0)>(d|0)){continue}break a}break}return(D[a+216>>2]+J(e,144)|0)+104|0}e=e+1|0;c=D[a+216>>2];if(e>>>0<(D[a+220>>2]-c|0)/144>>>0){continue}break}}return a+184|0}function xe(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;if((ba[D[D[b>>2]+20>>2]](b)|0)<=0){return 1}a:{while(1){d=Mc(D[D[a+4>>2]+4>>2],ba[D[D[b>>2]+24>>2]](b,e)|0);if((d|0)==-1){break a}f=D[a+4>>2];c=0;b:{if((d|0)<0){break b}g=D[f+4>>2];if((d|0)>=D[g+12>>2]-D[g+8>>2]>>2){break b}c=D[D[f+8>>2]+(D[D[f+20>>2]+(d<<2)>>2]<<2)>>2];c=ba[D[D[c>>2]+32>>2]](c,d)|0}if(!c){break a}if(!(ba[D[D[b>>2]+28>>2]](b,c)|0)){break a}e=e+1|0;if((ba[D[D[b>>2]+20>>2]](b)|0)>(e|0)){continue}break}return 1}return 0}function Cf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;a=$-32|0;$=a;a:{d=za(c);if(d>>>0<4294967280){b:{c:{if(d>>>0>=11){f=d+16&-16;e=na(f);D[a+24>>2]=f|-2147483648;D[a+16>>2]=e;D[a+20>>2]=d;break c}B[a+27|0]=d;e=a+16|0;if(!d){break b}}oa(e,c,d)}B[d+e|0]=0;B[a+4|0]=0;D[a>>2]=1701667182;B[a+11|0]=4;d=D[b+4>>2];c=-1;d:{if(!d){break d}d=Pc(d,a,a+16|0);c=-1;if(!d){break d}c=Lc(b,D[d+24>>2])}b=c;if(B[a+11|0]<0){ma(D[a>>2])}if(B[a+27|0]<0){ma(D[a+16>>2])}$=a+32|0;break a}Aa();T()}return b|0}function Nf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0;d=$-16|0;$=d;D[d+12>>2]=0;a:{e=za(c);if(e>>>0<4294967280){b:{c:{if(e>>>0>=11){f=e+16&-16;a=na(f);D[d+8>>2]=f|-2147483648;D[d>>2]=a;D[d+4>>2]=e;break c}B[d+11|0]=e;a=d;if(!e){break b}}oa(a,c,e)}B[a+e|0]=0;a=ab(b,d);d:{if((a|0)==(b+4|0)){break d}b=D[a+32>>2];a=D[a+28>>2];if((b-a|0)!=4){break d}D[d+12>>2]=E[a|0]|E[a+1|0]<<8|(E[a+2|0]<<16|E[a+3|0]<<24)}a=D[d+12>>2];if(B[d+11|0]<0){ma(D[d>>2])}$=d+16|0;break a}Aa();T()}return a|0}function vb(a){a=a|0;var b=0,c=0,d=0;D[a>>2]=10332;b=D[a+68>>2];if(b){D[a+72>>2]=b;ma(b)}b=D[a+56>>2];if(b){D[a+60>>2]=b;ma(b)}b=D[a+44>>2];if(b){D[a+48>>2]=b;ma(b)}b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}b=D[a+20>>2];if(b){D[a+24>>2]=b;ma(b)}d=D[a+8>>2];if(d){c=D[a+12>>2];if((c|0)==(d|0)){b=d}else{while(1){c=c-4|0;b=D[c>>2];D[c>>2]=0;if(b){ya(b)}if((d|0)!=(c|0)){continue}break}b=D[a+8>>2]}D[a+12>>2]=d;ma(b)}b=D[a+4>>2];D[a+4>>2]=0;if(b){fc(b)}return a|0}function sa(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=D[a+8>>2];c=D[a+4>>2];if(e-c>>2>>>0>=b>>>0){if(b){b=b<<2;c=pa(c,0,b)+b|0}D[a+4>>2]=c;return}a:{f=D[a>>2];g=c-f|0;h=g>>2;d=h+b|0;if(d>>>0<1073741824){c=0;e=e-f|0;i=e>>1;d=e>>>0<2147483644?d>>>0>i>>>0?d:i:1073741823;if(d){if(d>>>0>=1073741824){break a}c=na(d<<2)}b=b<<2;b=pa((h<<2)+c|0,0,b)+b|0;if((g|0)>0){oa(c,f,g)}D[a+8>>2]=(d<<2)+c;D[a+4>>2]=b;D[a>>2]=c;if(f){ma(f)}return}qa();T()}ra(1326);T()}function db(a,b){var c=0,d=0,e=0,f=0,g=0,h=0,i=0;e=D[a+8>>2];c=D[a+4>>2];if(e-c>>3>>>0>=b>>>0){if(b){b=b<<3;c=pa(c,0,b)+b|0}D[a+4>>2]=c;return}a:{f=D[a>>2];g=c-f|0;h=g>>3;d=h+b|0;if(d>>>0<536870912){c=0;e=e-f|0;i=e>>2;d=e>>>0<2147483640?d>>>0>i>>>0?d:i:536870911;if(d){if(d>>>0>=536870912){break a}c=na(d<<3)}b=b<<3;b=pa((h<<3)+c|0,0,b)+b|0;if((g|0)>0){oa(c,f,g)}D[a+8>>2]=(d<<3)+c;D[a+4>>2]=b;D[a>>2]=c;if(f){ma(f)}return}qa();T()}ra(1326);T()}function Ra(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=D[a>>2];a=D[e+4>>2];c=D[e+8>>2];if(a>>>0<c>>>0){D[a>>2]=D[b>>2];D[e+4>>2]=a+4;return}a:{f=D[e>>2];g=a-f|0;d=g>>2;a=d+1|0;if(a>>>0<1073741824){h=d<<2;c=c-f|0;d=c>>1;c=c>>>0<2147483644?a>>>0>d>>>0?a:d:1073741823;if(c){if(c>>>0>=1073741824){break a}a=na(c<<2)}else{a=0}d=h+a|0;D[d>>2]=D[b>>2];if((g|0)>0){oa(a,f,g)}D[e+8>>2]=a+(c<<2);D[e+4>>2]=d+4;D[e>>2]=a;if(f){ma(f)}return}qa();T()}ra(1326);T()}function dc(a,b){var c=0,d=0,e=0,f=0;c=a+4|0;a=ab(a,b);a:{if((c|0)==(a|0)){break a}b=B[a+39|0]<0?D[a+28>>2]:a+28|0;while(1){a=b;b=a+1|0;c=B[a|0];if((c|0)==32|c-9>>>0<5){continue}break}b:{c:{d:{c=B[a|0];switch(c-43|0){case 0:break c;case 2:break d;default:break b}}e=1}c=B[b|0];a=b}if(c-48>>>0<10){while(1){d=(J(d,10)-B[a|0]|0)+48|0;b=B[a+1|0];a=a+1|0;if(b-48>>>0<10){continue}break}}a=e?d:0-d|0;if((a|0)==-1){break a}f=(a|0)!=0}return f}function me(a){a=a|0;var b=0,c=0,d=0;D[a>>2]=2044;b=D[a+60>>2];D[a+60>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}d=D[a+36>>2];if(d){c=D[a+40>>2];if((c|0)==(d|0)){b=d}else{while(1){c=c-4|0;b=D[c>>2];D[c>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}if((d|0)!=(c|0)){continue}break}b=D[a+36>>2]}D[a+40>>2]=d;ma(b)}D[a>>2]=1804;b=D[a+16>>2];if(b){D[a+20>>2]=b;ma(b)}b=D[a+4>>2];if(b){D[a+8>>2]=b;ma(b)}return a|0}function le(a){a=a|0;var b=0,c=0,d=0;D[a>>2]=2044;b=D[a+60>>2];D[a+60>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}d=D[a+36>>2];if(d){c=D[a+40>>2];if((c|0)==(d|0)){b=d}else{while(1){c=c-4|0;b=D[c>>2];D[c>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}if((d|0)!=(c|0)){continue}break}b=D[a+36>>2]}D[a+40>>2]=d;ma(b)}D[a>>2]=1804;b=D[a+16>>2];if(b){D[a+20>>2]=b;ma(b)}b=D[a+4>>2];if(b){D[a+8>>2]=b;ma(b)}ma(a)}function hd(a,b){var c=0,d=0,e=0,f=0,g=0,h=0;e=D[a+8>>2];c=D[a+4>>2];if(e-c>>1>>>0>=b>>>0){if(b){b=b<<1;c=pa(c,0,b)+b|0}D[a+4>>2]=c;return}a:{f=D[a>>2];g=c-f|0;h=g>>1;d=h+b|0;if((d|0)>=0){c=0;e=e-f|0;d=e>>>0<2147483646?d>>>0>e>>>0?d:e:2147483647;if(d){if((d|0)<0){break a}c=na(d<<1)}b=b<<1;b=pa((h<<1)+c|0,0,b)+b|0;if((g|0)>0){oa(c,f,g)}D[a+8>>2]=(d<<1)+c;D[a+4>>2]=b;D[a>>2]=c;if(f){ma(f)}return}qa();T()}ra(1326);T()}function Ka(a,b){var c=0,d=0,e=0,f=0,g=0;a:{c=D[a+4>>2];e=D[a>>2];f=c-e|0;b:{if(f>>>0<b>>>0){g=b-f|0;d=D[a+8>>2];if(g>>>0<=d-c>>>0){if(g){c=pa(c,0,g)+g|0}D[a+4>>2]=c;return}if((b|0)<0){break a}c=d-e|0;d=c<<1;d=c>>>0<1073741823?b>>>0>d>>>0?b:d:2147483647;c=na(d);pa(c+f|0,0,g);if((f|0)>0){oa(c,e,f)}D[a+8>>2]=c+d;D[a+4>>2]=b+c;D[a>>2]=c;if(!e){break b}ma(e);return}if(b>>>0>=f>>>0){break b}D[a+4>>2]=b+e}return}qa();T()}function bh(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0;d=$-16|0;$=d;e=D[a+4>>2];a:{if((e|0)==-1){break a}c=D[b+20>>2];if(!!D[b+16>>2]&(c|0)>=0|(c|0)>0){break a}rb(b,D[b+4>>2],D[a+8>>2],D[a+12>>2]);c=D[b+20>>2];if(!!D[b+16>>2]&(c|0)>=0|(c|0)>0){break a}c=a+20|0;rb(b,D[b+4>>2],c,c+4|0);c=D[b+20>>2];f=D[b+16>>2];B[d+15|0]=D[a+4>>2];if(!!f&(c|0)>=0|(c|0)>0){break a}rb(b,D[b+4>>2],d+15|0,d+16|0)}$=d+16|0;return(e|0)!=-1|0}function xg(a){a=a|0;var b=0,c=0,d=0,e=0,f=0;a:{b=D[a+8>>2];b:{if((b|0)<0){break b}c=D[a+4>>2];e=D[c>>2];d=D[c+4>>2]-e>>2;c:{if(d>>>0<b>>>0){sa(c,b-d|0);f=D[a+8>>2];break c}f=b;if(b>>>0>=d>>>0){break c}D[c+4>>2]=e+(b<<2);f=b}d=f;if((d|0)<=0){break b}a=D[a+4>>2];c=D[a>>2];e=D[a+4>>2]-c>>2;a=0;while(1){if((a|0)==(e|0)){break a}D[c+(a<<2)>>2]=a;a=a+1|0;if((d|0)!=(a|0)){continue}break}}return(b^-1)>>>31|0}ua();T()}function Sa(a){var b=0,c=0,d=0,e=0,f=0;b=D[a+4>>2];if((b|0)!=D[a+8>>2]){D[b>>2]=D[2088];D[a+4>>2]=b+4;return}a:{f=D[a>>2];d=b-f|0;e=d>>2;b=e+1|0;if(b>>>0<1073741824){c=d>>1;c=d>>>0<2147483644?b>>>0>c>>>0?b:c:1073741823;if(c){if(c>>>0>=1073741824){break a}b=na(c<<2)}else{b=0}e=b+(e<<2)|0;D[e>>2]=D[2088];if((d|0)>0){oa(b,f,d)}D[a+8>>2]=b+(c<<2);D[a+4>>2]=e+4;D[a>>2]=b;if(f){ma(f)}return}qa();T()}ra(1326);T()}function ff(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=$-16|0;$=d;Md(d,a,b,c);D[a+24>>2]=D[d>>2];e=a+24|0;a:{if((e|0)==(d|0)){break a}b=d|4;f=E[d+15|0];c=f<<24>>24;a=a+28|0;if(B[a+11|0]>=0){if((c|0)>=0){c=D[b+4>>2];D[a>>2]=D[b>>2];D[a+4>>2]=c;D[a+8>>2]=D[b+8>>2];break a}sb(a,D[d+4>>2],D[d+8>>2]);break a}g=a;a=(c|0)<0;tb(g,a?D[d+4>>2]:b,a?D[d+8>>2]:f)}if(B[d+15|0]<0){ma(D[d+4>>2])}$=d+16|0;return e|0}function sf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a=$-32|0;$=a;e=B[b+24|0];f=D[2563];D[a+24>>2]=D[2562];D[a+28>>2]=f;f=D[2561];D[a+16>>2]=D[2560];D[a+20>>2]=f;a:{b:{c=nb(b,c,e,a+16|0);if(c){D[a+8>>2]=0;D[a>>2]=0;D[a+4>>2]=0;b=0;if(e){if((e|0)<0){break b}e=e<<2;b=na(e);g=oa(b,a+16|0,e)+e|0}e=D[d>>2];if(e){D[d+4>>2]=e;ma(e)}D[d+8>>2]=g;D[d+4>>2]=g;D[d>>2]=b}$=a+32|0;break a}qa();T()}return c|0}function hf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;b=$-16|0;$=b;Ld(b);D[a+24>>2]=D[b>>2];e=a+24|0;a:{if((e|0)==(b|0)){break a}c=b|4;f=E[b+15|0];d=f<<24>>24;a=a+28|0;if(B[a+11|0]>=0){if((d|0)>=0){d=D[c+4>>2];D[a>>2]=D[c>>2];D[a+4>>2]=d;D[a+8>>2]=D[c+8>>2];break a}sb(a,D[b+4>>2],D[b+8>>2]);break a}g=a;a=(d|0)<0;tb(g,a?D[b+4>>2]:c,a?D[b+8>>2]:f)}if(B[b+15|0]<0){ma(D[b+4>>2])}$=b+16|0;return e|0}function Ib(a,b){var c=0,d=0,e=0,f=0;d=D[a+12>>2];c=D[a+16>>2]-d>>2;a:{if(c>>>0<b>>>0){sa(a+12|0,b-c|0);break a}if(b>>>0>=c>>>0){break a}D[a+16>>2]=d+(b<<2)}b:{c=D[a>>2];c:{if(D[a+8>>2]-c>>2>>>0>=b>>>0){break c}if(b>>>0>=1073741824){break b}d=D[a+4>>2];e=b<<2;b=na(e);e=b+e|0;d=d-c|0;f=d+b|0;if((d|0)>0){oa(b,c,d)}D[a+8>>2]=e;D[a+4>>2]=f;D[a>>2]=b;if(!c){break c}ma(c)}return}ra(1326);T()}function Kf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0;d=$-16|0;$=d;a:{e=za(c);if(e>>>0<4294967280){b:{c:{if(e>>>0>=11){g=e+16&-16;f=na(g);D[d+8>>2]=g|-2147483648;D[d>>2]=f;D[d+4>>2]=e;break c}B[d+11|0]=e;f=d;if(!e){break b}}oa(f,c,e)}B[e+f|0]=0;f=a+16|0;c=Oc(b,d,f);b=B[a+27|0];a=D[a+16>>2];if(B[d+11|0]<0){ma(D[d>>2])}$=d+16|0;a=c?(b|0)<0?a:f:0;break a}Aa();T()}return a|0}function id(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>10){break a}d=D[c+20>>2];e=D[c+12>>2];f=D[c+16>>2];if((d|0)>=(e|0)&f>>>0>=G[c+8>>2]|(d|0)>(e|0)){break a}e=B[f+D[c>>2]|0];f=f+1|0;d=f?d:d+1|0;D[c+16>>2]=f;D[c+20>>2]=d;b:{if((e|0)<0){if(!id(a+1|0,b,c)){break a}c=D[b>>2];a=D[b+4>>2]<<7|c>>>25;c=e&127|c<<7;break b}a=0;c=e&255}D[b>>2]=c;D[b+4>>2]=a;g=1}return g}function fg(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0;d=$+-64|0;$=d;e=ba[D[D[a>>2]+44>>2]](a,b)|0;a=ba[D[D[a>>2]+40>>2]](a,b)|0;f=mb(d);g=D[b+56>>2];h=e<<24>>24;i=a;a=a-1|0;if(a>>>0<=10){a=D[(a<<2)+10180>>2]}else{a=-1}a=J(a,e);$b(f,g,h,i,0,a,a>>31);a=_b(na(96),f);Zb(a,c);B[a+84|0]=1;D[a+72>>2]=D[a+68>>2];D[a+60>>2]=D[b+60>>2];$=d- -64|0;return a|0}function Ta(a,b,c){var d=0,e=0,f=0,g=0;a:{if(a>>>0>10){break a}d=D[c+20>>2];e=D[c+12>>2];f=D[c+16>>2];if((d|0)>=(e|0)&f>>>0>=G[c+8>>2]|(d|0)>(e|0)){break a}e=B[f+D[c>>2]|0];f=f+1|0;d=f?d:d+1|0;D[c+16>>2]=f;D[c+20>>2]=d;b:{if((e|0)<0){if(!Ta(a+1|0,b,c)){break a}c=D[b>>2];a=D[b+4>>2]<<7|c>>>25;c=e&127|c<<7;break b}a=0;c=e&255}D[b>>2]=c;D[b+4>>2]=a;g=1}return g}function He(a,b,c,d,e){a=a|0;b=b|0;c=c|0;d=d|0;e=e|0;if(La(a,D[b+8>>2],e)){if(!(D[b+28>>2]==1|D[b+4>>2]!=(c|0))){D[b+28>>2]=d}return}a:{if(!La(a,D[b>>2],e)){break a}if(!(D[b+16>>2]!=(c|0)&D[b+20>>2]!=(c|0))){if((d|0)!=1){break a}D[b+32>>2]=1;return}D[b+20>>2]=c;D[b+32>>2]=d;D[b+40>>2]=D[b+40>>2]+1;if(!(D[b+36>>2]!=1|D[b+24>>2]!=2)){B[b+54|0]=1}D[b+44>>2]=4}}function uf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0,g=0;a:{if(G[b+80>>2]>65535){break a}f=D[b+96>>2];b=D[b+100>>2]-f|0;a=(b|0)/12|0;e=J(a,6);g=(e|0)==(c|0);if(!b|(c|0)!=(e|0)){break a}g=1;e=a>>>0>1?a:1;a=0;while(1){b=J(a,6)+d|0;c=J(a,12)+f|0;C[b>>1]=D[c>>2];C[b+2>>1]=D[c+4>>2];C[b+4>>1]=D[c+8>>2];a=a+1|0;if((e|0)!=(a|0)){continue}break}}return g|0}function jh(a){a=a|0;var b=0,c=0,d=0;D[a>>2]=8204;b=D[a+48>>2];D[a+48>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}D[a>>2]=10064;b=D[a+20>>2];if(b){D[a+24>>2]=b;ma(b)}d=D[a+8>>2];if(d){c=D[a+12>>2];if((c|0)==(d|0)){b=d}else{while(1){c=c-4|0;b=D[c>>2];D[c>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}if((d|0)!=(c|0)){continue}break}b=D[a+8>>2]}D[a+12>>2]=d;ma(b)}return a|0}function ih(a){a=a|0;var b=0,c=0,d=0;D[a>>2]=8204;b=D[a+48>>2];D[a+48>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}D[a>>2]=10064;b=D[a+20>>2];if(b){D[a+24>>2]=b;ma(b)}d=D[a+8>>2];if(d){c=D[a+12>>2];if((c|0)==(d|0)){b=d}else{while(1){c=c-4|0;b=D[c>>2];D[c>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}if((d|0)!=(c|0)){continue}break}b=D[a+8>>2]}D[a+12>>2]=d;ma(b)}ma(a)}function Bc(a,b,c,d){B[a+53|0]=1;a:{if(D[a+4>>2]!=(c|0)){break a}B[a+52|0]=1;c=D[a+16>>2];b:{if(!c){D[a+36>>2]=1;D[a+24>>2]=d;D[a+16>>2]=b;if((d|0)!=1){break a}if(D[a+48>>2]==1){break b}break a}if((b|0)==(c|0)){c=D[a+24>>2];if((c|0)==2){D[a+24>>2]=d;c=d}if(D[a+48>>2]!=1){break a}if((c|0)==1){break b}break a}D[a+36>>2]=D[a+36>>2]+1}B[a+54|0]=1}}function qe(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=ba[D[D[a>>2]+24>>2]](a)|0;c=1;a:{if((e|0)<=0){break a}d=D[D[a+36>>2]>>2];f=a+48|0;c=0;if(!(ba[D[D[d>>2]+16>>2]](d,f,b)|0)){break a}d=1;while(1){c=d;if((e|0)!=(c|0)){d=c+1|0;g=D[D[a+36>>2]+(c<<2)>>2];if(ba[D[D[g>>2]+16>>2]](g,f,b)|0){continue}}break}c=(c|0)>=(e|0)}return c|0}function pe(a,b){a=a|0;b=b|0;var c=0,d=0,e=0,f=0,g=0;e=ba[D[D[a>>2]+24>>2]](a)|0;c=1;a:{if((e|0)<=0){break a}d=D[D[a+36>>2]>>2];f=a+48|0;c=0;if(!(ba[D[D[d>>2]+20>>2]](d,f,b)|0)){break a}d=1;while(1){c=d;if((e|0)!=(c|0)){d=c+1|0;g=D[D[a+36>>2]+(c<<2)>>2];if(ba[D[D[g>>2]+20>>2]](g,f,b)|0){continue}}break}c=(c|0)>=(e|0)}return c|0}function Bd(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=$-16|0;$=d;D[a+4>>2]=b;b=D[b+64>>2];e=D[b>>2];b=D[b+4>>2];B[d+15|0]=0;Ea(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=D[a+4>>2];e=D[b+56>>2];b=D[b+52>>2];B[d+14|0]=0;Ea(a+36|0,e-b>>2,d+14|0);b=D[c+12>>2];D[a+16>>2]=D[c+8>>2];D[a+20>>2]=b;b=D[c+4>>2];D[a+8>>2]=D[c>>2];D[a+12>>2]=b;$=d+16|0}function Vc(a){D[a>>2]=0;D[a+4>>2]=0;D[a+28>>2]=0;D[a+32>>2]=0;B[a+24|0]=1;D[a+16>>2]=0;D[a+20>>2]=0;D[a+8>>2]=0;D[a+12>>2]=0;D[a+36>>2]=0;D[a+40>>2]=0;D[a+44>>2]=0;D[a+48>>2]=0;D[a+52>>2]=0;D[a+56>>2]=0;D[a+60>>2]=0;D[a+64>>2]=0;D[a+72>>2]=0;D[a+76>>2]=0;D[a+80>>2]=0;D[a+84>>2]=0;D[a+88>>2]=0;D[a+92>>2]=0;D[a+68>>2]=a}function Wg(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=$-16|0;$=d;D[a+4>>2]=b;e=D[b>>2];b=D[b+4>>2];B[d+15|0]=0;Ea(a+24|0,(b-e>>2>>>0)/3|0,d+15|0);b=D[a+4>>2];e=D[b+28>>2];b=D[b+24>>2];B[d+14|0]=0;Ea(a+36|0,e-b>>2,d+14|0);b=D[c+12>>2];D[a+16>>2]=D[c+8>>2];D[a+20>>2]=b;b=D[c+4>>2];D[a+8>>2]=D[c>>2];D[a+12>>2]=b;$=d+16|0}function Xc(a){var b=0;D[a>>2]=0;D[a+4>>2]=0;D[a+56>>2]=0;D[a+48>>2]=0;D[a+52>>2]=0;D[a+40>>2]=0;D[a+44>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;D[a+24>>2]=0;D[a+28>>2]=0;D[a+16>>2]=0;D[a+20>>2]=0;D[a+8>>2]=0;D[a+12>>2]=0;b=a- -64|0;D[b>>2]=0;D[b+4>>2]=0;D[a+72>>2]=0;D[a+76>>2]=0;D[a+80>>2]=0;D[a+84>>2]=0;D[a+60>>2]=a}function kb(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(a>>>0>5){break a}f=D[c+20>>2];d=f;g=D[c+12>>2];e=D[c+16>>2];if((d|0)>=(g|0)&e>>>0>=G[c+8>>2]|(d|0)>(g|0)){break a}d=E[e+D[c>>2]|0];e=e+1|0;f=e?f:f+1|0;D[c+16>>2]=e;D[c+20>>2]=f;if(d&128){if(!kb(a+1|0,b,c)){break a}d=d&127|D[b>>2]<<7}D[b>>2]=d;h=1}return h}function gb(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(a>>>0>5){break a}f=D[c+20>>2];d=f;g=D[c+12>>2];e=D[c+16>>2];if((d|0)>=(g|0)&e>>>0>=G[c+8>>2]|(d|0)>(g|0)){break a}d=E[e+D[c>>2]|0];e=e+1|0;f=e?f:f+1|0;D[c+16>>2]=e;D[c+20>>2]=f;if(d&128){if(!gb(a+1|0,b,c)){break a}d=d&127|D[b>>2]<<7}D[b>>2]=d;h=1}return h}function bb(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(a>>>0>5){break a}f=D[c+20>>2];d=f;g=D[c+12>>2];e=D[c+16>>2];if((d|0)>=(g|0)&e>>>0>=G[c+8>>2]|(d|0)>(g|0)){break a}d=E[e+D[c>>2]|0];e=e+1|0;f=e?f:f+1|0;D[c+16>>2]=e;D[c+20>>2]=f;if(d&128){if(!bb(a+1|0,b,c)){break a}d=d&127|D[b>>2]<<7}D[b>>2]=d;h=1}return h}function Wb(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(a>>>0>5){break a}f=D[c+20>>2];d=f;g=D[c+12>>2];e=D[c+16>>2];if((d|0)>=(g|0)&e>>>0>=G[c+8>>2]|(d|0)>(g|0)){break a}d=E[e+D[c>>2]|0];e=e+1|0;f=e?f:f+1|0;D[c+16>>2]=e;D[c+20>>2]=f;if(d&128){if(!Wb(a+1|0,b,c)){break a}d=d&127|D[b>>2]<<7}D[b>>2]=d;h=1}return h}function Ua(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(a>>>0>5){break a}f=D[c+20>>2];d=f;g=D[c+12>>2];e=D[c+16>>2];if((d|0)>=(g|0)&e>>>0>=G[c+8>>2]|(d|0)>(g|0)){break a}d=E[e+D[c>>2]|0];e=e+1|0;f=e?f:f+1|0;D[c+16>>2]=e;D[c+20>>2]=f;if(d&128){if(!Ua(a+1|0,b,c)){break a}d=d&127|D[b>>2]<<7}D[b>>2]=d;h=1}return h}function Nd(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(a>>>0>5){break a}f=D[c+20>>2];d=f;g=D[c+12>>2];e=D[c+16>>2];if((d|0)>=(g|0)&e>>>0>=G[c+8>>2]|(d|0)>(g|0)){break a}d=E[e+D[c>>2]|0];e=e+1|0;f=e?f:f+1|0;D[c+16>>2]=e;D[c+20>>2]=f;if(d&128){if(!Nd(a+1|0,b,c)){break a}d=d&127|D[b>>2]<<7}D[b>>2]=d;h=1}return h}function Da(a,b,c){var d=0,e=0,f=0,g=0,h=0;a:{if(a>>>0>5){break a}f=D[c+20>>2];d=f;g=D[c+12>>2];e=D[c+16>>2];if((d|0)>=(g|0)&e>>>0>=G[c+8>>2]|(d|0)>(g|0)){break a}d=E[e+D[c>>2]|0];e=e+1|0;f=e?f:f+1|0;D[c+16>>2]=e;D[c+20>>2]=f;if(d&128){if(!Da(a+1|0,b,c)){break a}d=d&127|D[b>>2]<<7}D[b>>2]=d;h=1}return h}function tf(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;g=D[b+96>>2];b=D[b+100>>2]-g|0;if(!((b|0)!=(c|0)|!b)){a=(c|0)/12|0;h=a>>>0>1?a:1;a=0;while(1){e=J(a,12);f=e+d|0;e=e+g|0;D[f>>2]=D[e>>2];D[f+4>>2]=D[e+4>>2];D[f+8>>2]=D[e+8>>2];a=a+1|0;if((h|0)!=(a|0)){continue}break}}return(b|0)==(c|0)|0}function va(a,b,c){var d=0,e=0;a:{b:{if(c>>>0>=4){if((a|b)&3){break b}while(1){if(D[a>>2]!=D[b>>2]){break b}b=b+4|0;a=a+4|0;c=c-4|0;if(c>>>0>3){continue}break}}if(!c){break a}}while(1){d=E[a|0];e=E[b|0];if((d|0)==(e|0)){b=b+1|0;a=a+1|0;c=c-1|0;if(c){continue}break a}break}return d-e|0}return 0}function xf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=D[b+4>>2];a:{if(!d){break a}b=D[D[D[b+8>>2]+(c<<2)>>2]+60>>2];if((b|0)<0){break a}a=D[d+24>>2];c=D[d+28>>2];if((a|0)==(c|0)){break a}b:{while(1){e=D[a>>2];if((b|0)==D[e+24>>2]){break b}a=a+4|0;if((c|0)!=(a|0)){continue}break}e=0}}return e|0}function fc(a){var b=0,c=0,d=0;if(a){d=D[a+24>>2];if(d){c=D[a+28>>2];if((c|0)==(d|0)){b=d}else{while(1){c=c-4|0;b=D[c>>2];D[c>>2]=0;if(b){Ca(b+12|0,D[b+16>>2]);Ba(b,D[b+4>>2]);ma(b)}if((d|0)!=(c|0)){continue}break}b=D[a+24>>2]}D[a+28>>2]=d;ma(b)}Ca(a+12|0,D[a+16>>2]);Ba(a,D[a+4>>2]);ma(a)}}function pd(a){var b=0,c=0,d=0;d=D[a>>2];if(d){b=D[a+4>>2];if((d|0)==(b|0)){b=d}else{while(1){c=D[b-12>>2];if(c){D[b-8>>2]=c;ma(c)}c=D[b-28>>2];if(c){D[b-24>>2]=c;ma(c)}c=D[b-40>>2];if(c){D[b-36>>2]=c;ma(c)}Hb(b-140|0);b=b-144|0;if((d|0)!=(b|0)){continue}break}b=D[a>>2]}D[a+4>>2]=d;ma(b)}}function ph(a){a=a|0;var b=0,c=0,d=0;D[a>>2]=10064;b=D[a+20>>2];if(b){D[a+24>>2]=b;ma(b)}d=D[a+8>>2];if(d){c=D[a+12>>2];if((c|0)==(d|0)){b=d}else{while(1){c=c-4|0;b=D[c>>2];D[c>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}if((d|0)!=(c|0)){continue}break}b=D[a+8>>2]}D[a+12>>2]=d;ma(b)}return a|0}function Ug(a){a=a|0;var b=0;D[a+8>>2]=9168;D[a>>2]=8956;b=D[a+96>>2];if(b){D[a+100>>2]=b;ma(b)}b=D[a+80>>2];if(b){D[a+84>>2]=b;ma(b)}b=D[a+68>>2];if(b){D[a+72>>2]=b;ma(b)}b=D[a+56>>2];if(b){D[a+60>>2]=b;ma(b)}D[a+8>>2]=9404;b=D[a+44>>2];if(b){ma(b)}b=D[a+32>>2];if(b){ma(b)}return a|0}function za(a){var b=0,c=0,d=0;b=a;a:{if(b&3){while(1){if(!E[b|0]){break a}b=b+1|0;if(b&3){continue}break}}while(1){c=b;b=b+4|0;d=D[c>>2];if(!((d^-1)&d-16843009&-2139062144)){continue}break}if(!(d&255)){return c-a|0}while(1){d=E[c+1|0];b=c+1|0;c=b;if(d){continue}break}}return b-a|0}function zg(a){a=a|0;var b=0,c=0,d=0;D[a>>2]=10064;b=D[a+20>>2];if(b){D[a+24>>2]=b;ma(b)}d=D[a+8>>2];if(d){c=D[a+12>>2];if((c|0)==(d|0)){b=d}else{while(1){c=c-4|0;b=D[c>>2];D[c>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}if((d|0)!=(c|0)){continue}break}b=D[a+8>>2]}D[a+12>>2]=d;ma(b)}ma(a)}function Tg(a){a=a|0;var b=0;D[a+8>>2]=9168;D[a>>2]=8956;b=D[a+96>>2];if(b){D[a+100>>2]=b;ma(b)}b=D[a+80>>2];if(b){D[a+84>>2]=b;ma(b)}b=D[a+68>>2];if(b){D[a+72>>2]=b;ma(b)}b=D[a+56>>2];if(b){D[a+60>>2]=b;ma(b)}D[a+8>>2]=9404;b=D[a+44>>2];if(b){ma(b)}b=D[a+32>>2];if(b){ma(b)}ma(a)}function tc(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0,f=0,g=0,h=0,i=0;h=D[c+8>>2];e=D[c+16>>2];g=D[c+12>>2];f=g;d=D[c+20>>2];if(h>>>0>e>>>0&(f|0)>=(d|0)|(d|0)<(f|0)){b=E[e+D[c>>2]|0];i=e+1|0;f=i?d:d+1|0;D[c+16>>2]=i;D[c+20>>2]=f;D[a+4>>2]=b}return e>>>0<h>>>0&(d|0)<=(g|0)|(d|0)<(g|0)}function La(a,b,c){var d=0;if(!c){return D[a+4>>2]==D[b+4>>2]}if((a|0)==(b|0)){return 1}d=D[a+4>>2];a=E[d|0];c=D[b+4>>2];b=E[c|0];a:{if(!a|(b|0)!=(a|0)){break a}while(1){b=E[c+1|0];a=E[d+1|0];if(!a){break a}c=c+1|0;d=d+1|0;if((a|0)==(b|0)){continue}break}}return(a|0)==(b|0)}function Vg(a){a=a|0;var b=0;D[a>>2]=9168;b=D[a+88>>2];if(b){D[a+92>>2]=b;ma(b)}b=D[a+72>>2];if(b){D[a+76>>2]=b;ma(b)}b=D[a+60>>2];if(b){D[a- -64>>2]=b;ma(b)}b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}D[a>>2]=9404;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}return a|0}function Jb(a,b){var c=0,d=0,e=0,f=0;a:{c=D[a>>2];b:{if(D[a+8>>2]-c>>2>>>0>=b>>>0){break b}if(b>>>0>=1073741824){break a}d=D[a+4>>2];e=b<<2;b=na(e);e=b+e|0;d=d-c|0;f=d+b|0;if((d|0)>0){oa(b,c,d)}D[a+8>>2]=e;D[a+4>>2]=f;D[a>>2]=b;if(!c){break b}ma(c)}return}ra(1326);T()}function zf(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;a=D[b+12>>2];b=D[b+8>>2];d=a-b|0;a=0;a:{if(!d){break a}a=d>>2;d=a>>>0>1?a:1;a=0;b:{while(1){e=D[b+(a<<2)>>2];if(D[e+60>>2]==(c|0)){break b}a=a+1|0;if((d|0)!=(a|0)){continue}break}a=0;break a}a=(a|0)==-1?0:e}return a|0}function Qg(a){a=a|0;var b=0;D[a>>2]=9168;b=D[a+88>>2];if(b){D[a+92>>2]=b;ma(b)}b=D[a+72>>2];if(b){D[a+76>>2]=b;ma(b)}b=D[a+60>>2];if(b){D[a- -64>>2]=b;ma(b)}b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}D[a>>2]=9404;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}ma(a)}function cb(a){var b=0;if(a){b=D[a+76>>2];if(b){D[a+80>>2]=b;ma(b)}b=D[a- -64>>2];if(b){D[a+68>>2]=b;ma(b)}b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}b=D[a+24>>2];if(b){D[a+28>>2]=b;ma(b)}b=D[a+12>>2];if(b){D[a+16>>2]=b;ma(b)}b=D[a>>2];if(b){D[a+4>>2]=b;ma(b)}ma(a)}}function Hb(a){var b=0;b=D[a+84>>2];if(b){D[a+88>>2]=b;ma(b)}b=D[a+72>>2];if(b){D[a+76>>2]=b;ma(b)}b=D[a+52>>2];if(b){D[a+56>>2]=b;ma(b)}b=D[a+40>>2];if(b){D[a+44>>2]=b;ma(b)}b=D[a+28>>2];if(b){D[a+32>>2]=b;ma(b)}b=D[a+12>>2];if(b){ma(b)}a=D[a>>2];if(a){ma(a)}}function zd(a){var b=0,c=0,d=0;b=D[a+4>>2];d=D[a>>2];if((b|0)!=(d|0)){while(1){c=D[b-12>>2];if(c){D[b-8>>2]=c;ma(c)}c=D[b-28>>2];if(c){D[b-24>>2]=c;ma(c)}c=D[b-40>>2];if(c){D[b-36>>2]=c;ma(c)}Hb(b-140|0);b=b-144|0;if((d|0)!=(b|0)){continue}break}}D[a+4>>2]=d}function ta(a,b,c){var d=0,e=0;a:{b:{if(c>>>0<=10){d=a;B[d+11|0]=c;break b}if(c>>>0>4294967279){break a}if(c>>>0>=11){e=c+16&-16;d=e-1|0;d=(d|0)==11?e:d}else{d=10}e=d+1|0;d=na(e);D[a>>2]=d;D[a+8>>2]=e|-2147483648;D[a+4>>2]=c}Ya(d,b,c+1|0);return}Aa();T()}function Hc(a,b,c){var d=0,e=0,f=0,g=0,h=0;f=$-16|0;$=f;d=$-16|0;$=d;b=b-a>>2;while(1){if(b){D[d+12>>2]=a;e=b>>>1|0;D[d+12>>2]=D[d+12>>2]+(e<<2);h=(e^-1)+b|0;b=e;e=D[d+12>>2];g=G[e>>2]<G[c>>2];b=g?h:b;a=g?e+4|0:a;continue}break}$=d+16|0;$=f+16|0;return a}function fd(a,b){var c=0,d=0;d=na(40);D[d>>2]=-1;c=d+8|0;D[c+16>>2]=0;D[c+20>>2]=0;D[c+8>>2]=0;D[c>>2]=0;D[c+4>>2]=0;D[c+24>>2]=0;D[c+28>>2]=0;ba[D[D[a>>2]+16>>2]](a,d);a=D[b+88>>2];D[b+88>>2]=d;if(a){b=D[a+8>>2];if(b){D[a+12>>2]=b;ma(b)}ma(a)}return 1}function Ga(a){var b=0,c=0,d=0,e=0,f=0;d=E[a+12|0];c=D[a+8>>2];a:{if(c>>>0>4095){break a}b=D[a+4>>2];if((b|0)<=0){break a}b=b-1|0;D[a+4>>2]=b;c=E[b+D[a>>2]|0]|c<<8}d=0-d&255;b=J(d,c>>>8|0);e=c&255;f=e>>>0<d>>>0;D[a+8>>2]=f?b+e|0:c-(b+d|0)|0;return f}function wf(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;var e=0,f=0;a=$-16|0;$=a;b=D[b+96>>2];D[a+8>>2]=0;D[a>>2]=0;D[a+4>>2]=0;e=na(12);c=oa(e,b+J(c,12)|0,12);f=c+12|0;b=D[d>>2];if(b){D[d+4>>2]=b;ma(b)}D[d+8>>2]=c+12;D[d+4>>2]=f;D[d>>2]=e;$=a+16|0;return 1}function xc(a,b){D[a+4>>2]=0;D[a+8>>2]=0;D[a>>2]=1804;D[a+12>>2]=0;D[a+16>>2]=0;D[a+20>>2]=0;D[a+24>>2]=0;D[a+28>>2]=0;D[a+32>>2]=0;D[a+36>>2]=0;D[a+40>>2]=0;D[a>>2]=2044;D[a+44>>2]=0;D[a+48>>2]=0;D[a+52>>2]=0;D[a+56>>2]=0;D[a+60>>2]=b;return a}function jd(a,b,c,d){a:{if(!b){if((d|0)<0){return 0}Ka(a,c);break a}if((d|0)<0){return 0}if(!(!d&D[a+4>>2]-D[a>>2]>>>0>=c>>>0)){Ka(a,c)}if(!c){break a}Pa(D[a>>2],b,c)}b=D[a+28>>2];c=D[a+24>>2]+1|0;b=c?b:b+1|0;D[a+24>>2]=c;D[a+28>>2]=b;return 1}function Hf(a){a=a|0;var b=0,c=0,d=0;if(a){if(B[a+27|0]<0){ma(D[a+16>>2])}b=D[a>>2];if(b){c=D[a+4>>2];if((c|0)==(b|0)){d=b}else{while(1){d=c-12|0;if(B[c-1|0]<0){ma(D[d>>2])}c=d;if((c|0)!=(b|0)){continue}break}d=D[a>>2]}D[a+4>>2]=b;ma(d)}ma(a)}}function tg(){var a=0;a=na(40);C[a+38>>1]=0;D[a>>2]=0;D[a+8>>2]=0;D[a+12>>2]=0;D[a+16>>2]=0;D[a+20>>2]=0;D[a+24>>2]=0;D[a+28>>2]=0;B[a+29|0]=0;B[a+30|0]=0;B[a+31|0]=0;B[a+32|0]=0;B[a+33|0]=0;B[a+34|0]=0;B[a+35|0]=0;B[a+36|0]=0;return a|0}function ya(a){a=a|0;var b=0,c=0;if(a){b=D[a+88>>2];D[a+88>>2]=0;if(b){c=D[b+8>>2];if(c){D[b+12>>2]=c;ma(c)}ma(b)}b=D[a+68>>2];if(b){D[a+72>>2]=b;ma(b)}b=D[a+64>>2];D[a+64>>2]=0;if(b){c=D[b>>2];if(c){D[b+4>>2]=c;ma(c)}ma(b)}ma(a)}}function th(a){a=a|0;var b=0;D[a+24>>2]=1140;D[a>>2]=7976;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}D[a>>2]=2164;b=D[a+20>>2];D[a+20>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}D[a>>2]=1948;b=D[a+16>>2];D[a+16>>2]=0;if(b){ya(b)}return a|0}function Gb(a,b){var c=0,d=0,e=0;c=za(b);if(c>>>0<4294967280){a:{b:{if(c>>>0>=11){e=c+16&-16;d=na(e);D[a+8>>2]=e|-2147483648;D[a>>2]=d;D[a+4>>2]=c;break b}B[a+11|0]=c;d=a;if(!c){break a}}oa(d,b,c)}B[c+d|0]=0;return a}Aa();T()}function bi(a,b,c,d){var e=0,f=0,g=0,h=0;f=b^d;g=f>>31;e=b>>31;a=a^e;h=a-e|0;e=(b^e)-((a>>>0<e>>>0)+e|0)|0;a=d>>31;b=c^a;f=f>>31;a=ci(h,e,b-a|0,(a^d)-((a>>>0>b>>>0)+a|0)|0)^f;b=a-f|0;aa=(g^aa)-((a>>>0<f>>>0)+g|0)|0;return b}function sh(a){a=a|0;var b=0;D[a+24>>2]=1140;D[a>>2]=7976;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}D[a>>2]=2164;b=D[a+20>>2];D[a+20>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}D[a>>2]=1948;b=D[a+16>>2];D[a+16>>2]=0;if(b){ya(b)}ma(a)}function tb(a,b,c){var d=0,e=0,f=0;e=$-16|0;$=e;d=D[a+8>>2]&2147483647;a:{if(d>>>0>c>>>0){d=D[a>>2];D[a+4>>2]=c;Ya(d,b,c);B[e+15|0]=0;B[c+d|0]=E[e+15|0];break a}f=a;a=D[a+4>>2];Dc(f,d-1|0,(c-d|0)+1|0,a,a,c,b)}$=e+16|0}function ai(a,b,c,d){var e=0,f=0,g=0,h=0,i=0,j=0;e=c>>>16|0;f=a>>>16|0;j=J(e,f);g=c&65535;h=a&65535;i=J(g,h);f=(i>>>16|0)+J(f,g)|0;e=(f&65535)+J(e,h)|0;aa=(J(b,c)+j|0)+J(a,d)+(f>>>16)+(e>>>16)|0;return i&65535|e<<16}function se(a,b){a=a|0;b=b|0;var c=0,d=0;c=$-16|0;$=c;a=D[a+4>>2];a:{if((a|0)==-1){break a}B[c+15|0]=a;d=D[b+20>>2];if(!!D[b+16>>2]&(d|0)>=0|(d|0)>0){break a}rb(b,D[b+4>>2],c+15|0,c+16|0)}$=c+16|0;return(a|0)!=-1|0}function og(){var a=0;a=na(96);mb(a);D[a+64>>2]=0;D[a+68>>2]=0;D[a+88>>2]=0;D[a+72>>2]=0;D[a+76>>2]=0;B[a+77|0]=0;B[a+78|0]=0;B[a+79|0]=0;B[a+80|0]=0;B[a+81|0]=0;B[a+82|0]=0;B[a+83|0]=0;B[a+84|0]=0;return a|0}function Cc(a,b,c){var d=0;d=D[a+16>>2];if(!d){D[a+36>>2]=1;D[a+24>>2]=c;D[a+16>>2]=b;return}a:{if((b|0)==(d|0)){if(D[a+24>>2]!=2){break a}D[a+24>>2]=c;return}B[a+54|0]=1;D[a+24>>2]=2;D[a+36>>2]=D[a+36>>2]+1}}function ch(a,b){a=a|0;b=b|0;var c=0,d=0;D[b>>2]=2;c=D[b+8>>2];d=D[b+12>>2]-c|0;if(d>>>0<=4294967291){Fb(b+8|0,d+4|0);c=D[b+8>>2]}b=c+d|0;a=D[a+4>>2];B[b|0]=a;B[b+1|0]=a>>>8;B[b+2|0]=a>>>16;B[b+3|0]=a>>>24}
function vg(a){a=a|0;var b=0,c=0,d=0;b=D[a+8>>2];d=D[a+12>>2];if((b|0)==(d|0)){return 1}while(1){c=D[b>>2];c=ba[D[D[c>>2]+16>>2]](c,D[a+32>>2])|0;if(c){b=b+4|0;if((d|0)!=(b|0)){continue}}break}return c|0}function be(a){a=a|0;var b=0;D[a>>2]=3044;b=D[a+96>>2];if(b){ma(b)}b=D[a+84>>2];if(b){ma(b)}b=D[a+72>>2];if(b){ma(b)}b=D[a+60>>2];if(b){ma(b)}D[a>>2]=2988;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}return a|0}function Wh(a){a=a|0;var b=0;D[a>>2]=4608;b=D[a+96>>2];if(b){ma(b)}b=D[a+84>>2];if(b){ma(b)}b=D[a+72>>2];if(b){ma(b)}b=D[a+60>>2];if(b){ma(b)}D[a>>2]=2988;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}return a|0}function ra(a){var b=0,c=0,d=0,e=0,f=0;b=_(8)|0;D[b>>2]=11252;D[b>>2]=11296;c=za(a);d=na(c+13|0);D[d+8>>2]=0;D[d+4>>2]=c;D[d>>2]=c;e=b,f=oa(d+12|0,a,c+1|0),D[e+4>>2]=f;D[b>>2]=11344;Z(b|0,11376,13);T()}function ae(a){a=a|0;var b=0;D[a>>2]=3044;b=D[a+96>>2];if(b){ma(b)}b=D[a+84>>2];if(b){ma(b)}b=D[a+72>>2];if(b){ma(b)}b=D[a+60>>2];if(b){ma(b)}D[a>>2]=2988;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}ma(a)}function Vh(a){a=a|0;var b=0;D[a>>2]=4608;b=D[a+96>>2];if(b){ma(b)}b=D[a+84>>2];if(b){ma(b)}b=D[a+72>>2];if(b){ma(b)}b=D[a+60>>2];if(b){ma(b)}D[a>>2]=2988;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}ma(a)}function Oc(a,b,c){var d=0,e=0;d=a+4|0;a=ab(a,b);if((d|0)==(a|0)){return 0}b=D[a+32>>2];d=D[a+28>>2];if((b|0)!=(d|0)){Sb(c,b-d|0);e=Tb(c);c=D[a+28>>2];oa(e,c,D[a+32>>2]-c|0)}return(b|0)!=(d|0)}function Lc(a,b){var c=0,d=0;c=D[a+8>>2];a=D[a+12>>2]-c|0;if(a){a=a>>2;d=a>>>0>1?a:1;a=0;while(1){if(D[D[(a<<2)+c>>2]+60>>2]==(b|0)){return a}a=a+1|0;if((d|0)!=(a|0)){continue}break}}return-1}function mb(a){D[a+8>>2]=0;D[a+12>>2]=0;D[a>>2]=0;D[a+40>>2]=0;D[a+44>>2]=0;D[a+28>>2]=9;B[a+24|0]=1;D[a+56>>2]=-1;D[a+60>>2]=0;D[a+16>>2]=0;D[a+20>>2]=0;D[a+48>>2]=0;D[a+52>>2]=0;return a}function Qe(a,b){a=a|0;b=b|0;var c=0,d=0;Jc(a,b);a:{if((b|0)<0){break a}c=D[a+88>>2];d=D[a+84>>2];if(c-d>>2<=(b|0)){break a}b=d+(b<<2)|0;d=b+4|0;c=c-d|0;if(c){Pa(b,d,c)}D[a+88>>2]=b+c}}function Gd(a){D[a+40>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;D[a>>2]=10064;D[a+12>>2]=0;D[a+16>>2]=0;D[a+20>>2]=0;D[a+24>>2]=0;D[a+28>>2]=0;D[a+32>>2]=0;C[a+36>>1]=0;D[a+44>>2]=0;D[a>>2]=8108}function ec(a,b,c){var d=0;a:{if(b){b=0;if(!id(1,c,a)){break a}}B[a+36|0]=1;D[a+32>>2]=0;b=D[a+16>>2];c=b+D[a>>2]|0;D[a+24>>2]=c;d=a;a=D[a+8>>2];D[d+28>>2]=c+(a-b|0);b=1}return b}function ke(a,b){a=a|0;b=b|0;var c=0,d=0;d=D[a+16>>2];c=0;a:{if(D[a+20>>2]-d>>2<=(b|0)){break a}b=D[(b<<2)+d>>2];c=0;if((b|0)<0){break a}c=eb(D[D[a+36>>2]+(b<<2)>>2])}return c|0}function Gf(){var a=0,b=0;a=na(40);D[a+4>>2]=0;D[a+8>>2]=0;D[a>>2]=a+4;b=a+16|0;D[b>>2]=0;D[b+4>>2]=0;D[a+24>>2]=0;D[a+28>>2]=0;D[a+12>>2]=b;D[a+32>>2]=0;D[a+36>>2]=0;return a|0}function Za(a){var b=0,c=0;b=D[2853];c=a+3&-4;a=b+c|0;a:{if(a>>>0<=b>>>0?c:0){break a}if(a>>>0>ca()<<16>>>0){if(!(X(a|0)|0)){break a}}D[2853]=a;return b}D[2879]=48;return-1}function ze(a,b,c){a=a|0;b=b|0;c=c|0;var d=0,e=0;d=D[a+8>>2];a:{if(B[d+24|0]<=0){break a}if(!Zb(d,D[b+4>>2]-D[b>>2]>>2)){break a}e=ba[D[D[a>>2]+32>>2]](a,b,c)|0}return e|0}function sb(a,b,c){var d=0,e=0;d=$-16|0;$=d;a:{if(c>>>0<=10){B[a+11|0]=c;Ya(a,b,c);B[d+15|0]=0;B[a+c|0]=E[d+15|0];break a}e=a;a=E[a+11|0];Dc(e,10,c-10|0,a,a,c,b)}$=d+16|0}function Mh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;D[a+4>>2]=b;b=D[D[D[b+4>>2]+8>>2]+(c<<2)>>2];D[a+12>>2]=c;D[a+8>>2]=b;a=D[a+8>>2];if(E[a+24|0]==3){d=D[a+28>>2]==9}return d|0}function Lg(a){a=a|0;var b=0;D[a+8>>2]=9588;D[a>>2]=9424;b=D[a+56>>2];if(b){D[a+60>>2]=b;ma(b)}D[a+8>>2]=9404;b=D[a+44>>2];if(b){ma(b)}b=D[a+32>>2];if(b){ma(b)}return a|0}function Gg(a){a=a|0;var b=0;D[a+8>>2]=8652;D[a>>2]=9716;b=D[a+56>>2];if(b){D[a+60>>2]=b;ma(b)}D[a+8>>2]=8904;b=D[a+44>>2];if(b){ma(b)}b=D[a+32>>2];if(b){ma(b)}return a|0}function yh(a,b,c){a=a|0;b=b|0;c=c|0;var d=0;D[a+4>>2]=b;d=D[D[D[b+4>>2]+8>>2]+(c<<2)>>2];D[a+12>>2]=c;D[a+8>>2]=d;return D[D[D[D[b+4>>2]+8>>2]+(c<<2)>>2]+28>>2]==9|0}function Ca(a,b){if(b){Ca(a,D[b>>2]);Ca(a,D[b+4>>2]);a=D[b+28>>2];D[b+28>>2]=0;if(a){Ca(a+12|0,D[a+16>>2]);Ba(a,D[a+4>>2]);ma(a)}if(B[b+27|0]<0){ma(D[b+16>>2])}ma(b)}}function Kg(a){a=a|0;var b=0;D[a+8>>2]=9588;D[a>>2]=9424;b=D[a+56>>2];if(b){D[a+60>>2]=b;ma(b)}D[a+8>>2]=9404;b=D[a+44>>2];if(b){ma(b)}b=D[a+32>>2];if(b){ma(b)}ma(a)}function Fg(a){a=a|0;var b=0;D[a+8>>2]=8652;D[a>>2]=9716;b=D[a+56>>2];if(b){D[a+60>>2]=b;ma(b)}D[a+8>>2]=8904;b=D[a+44>>2];if(b){ma(b)}b=D[a+32>>2];if(b){ma(b)}ma(a)}function Ne(a,b){a=a|0;b=b|0;var c=0;a:{if(!(ba[D[D[a>>2]+36>>2]](a,b)|0)){break a}if(!(ba[D[D[a>>2]+40>>2]](a,b)|0)){break a}c=ba[D[D[a>>2]+44>>2]](a)|0}return c|0}function Wd(a){a=a|0;var b=0;a:{if(!D[a- -64>>2]|!D[a+68>>2]|(!D[a+44>>2]|!D[a+48>>2])){break a}if(!D[a+52>>2]|!D[a+56>>2]){break a}b=D[a+92>>2]!=-1}return b|0}function vc(a){a=a|0;var b=0;D[a>>2]=2164;b=D[a+20>>2];D[a+20>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}D[a>>2]=1948;b=D[a+16>>2];D[a+16>>2]=0;if(b){ya(b)}return a|0}function $h(a,b){a=a|0;b=b|0;var c=0;b=D[b+88>>2];if(!(!b|D[b>>2]!=2)){c=a;a=D[b+8>>2];D[c+4>>2]=E[a|0]|E[a+1|0]<<8|(E[a+2|0]<<16|E[a+3|0]<<24);c=1}return c|0}function Qd(a){a=a|0;var b=0;a:{if(!D[a+48>>2]|!D[a+52>>2]|(!D[a+28>>2]|!D[a+32>>2])){break a}if(!D[a+36>>2]|!D[a+40>>2]){break a}b=D[a+76>>2]!=-1}return b|0}function uc(a){a=a|0;var b=0;D[a>>2]=2164;b=D[a+20>>2];D[a+20>>2]=0;if(b){ba[D[D[b>>2]+4>>2]](b)}D[a>>2]=1948;b=D[a+16>>2];D[a+16>>2]=0;if(b){ya(b)}ma(a)}function Mg(a){a=a|0;var b=0;D[a>>2]=9588;b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}D[a>>2]=9404;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}return a|0}function Ad(a){a=a|0;var b=0;D[a>>2]=8652;b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}D[a>>2]=8904;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}return a|0}function rg(){var a=0,b=0;b=na(40);D[b>>2]=-1;a=b+8|0;D[a+16>>2]=0;D[a+20>>2]=0;D[a+8>>2]=0;D[a>>2]=0;D[a+4>>2]=0;D[a+24>>2]=0;D[a+28>>2]=0;return b|0}function Zg(a){a=a|0;var b=0;D[a>>2]=8652;b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}D[a>>2]=8904;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}ma(a)}function Hg(a){a=a|0;var b=0;D[a>>2]=9588;b=D[a+48>>2];if(b){D[a+52>>2]=b;ma(b)}D[a>>2]=9404;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}ma(a)}function Ge(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(La(a,D[b+8>>2],f)){Bc(b,c,d,e);return}a=D[a+8>>2];ba[D[D[a>>2]+20>>2]](a,b,c,d,e,f)}function xh(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(E[D[a+4>>2]+36|0]>=2){b=0;if(!(ba[D[D[a>>2]+52>>2]](a)|0)){break a}}b=fd(a+24|0,D[a+16>>2])}return b|0}function ag(){var a=0;a=na(108);Nc(a);D[a+84>>2]=0;D[a+88>>2]=0;D[a>>2]=10272;D[a+92>>2]=0;D[a+96>>2]=0;D[a+100>>2]=0;D[a+104>>2]=0;return a|0}function Mc(a,b){var c=0;c=-1;a:{if((b|0)==-1|(b|0)>4){break a}b=J(b,12)+a|0;a=D[b+20>>2];if((D[b+24>>2]-a|0)<=0){break a}c=D[a>>2]}return c}function $b(a,b,c,d,e,f,g){D[a>>2]=0;D[a+56>>2]=b;D[a+48>>2]=0;D[a+52>>2]=0;D[a+40>>2]=f;D[a+44>>2]=g;B[a+32|0]=e;D[a+28>>2]=d;B[a+24|0]=c}function Te(a){a=a|0;var b=0;D[a>>2]=10272;b=D[a+96>>2];if(b){D[a+100>>2]=b;ma(b)}b=D[a+84>>2];if(b){D[a+88>>2]=b;ma(b)}vb(a);return a|0}function Lh(a,b,c){a=a|0;b=b|0;c=c|0;a:{if(E[D[a+4>>2]+36|0]>=2){b=0;if(!tc(a+24|0,eb(a),c)){break a}}b=fd(a+24|0,D[a+16>>2])}return b|0}function Se(a){a=a|0;var b=0;D[a>>2]=10272;b=D[a+96>>2];if(b){D[a+100>>2]=b;ma(b)}b=D[a+84>>2];if(b){D[a+88>>2]=b;ma(b)}vb(a);ma(a)}function _d(a){a=a|0;var b=0;D[a>>2]=3292;b=D[a+76>>2];if(b){ma(b)}D[a>>2]=2988;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}return a|0}function Th(a){a=a|0;var b=0;D[a>>2]=4844;b=D[a+76>>2];if(b){ma(b)}D[a>>2]=2988;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}return a|0}function Ba(a,b){if(b){Ba(a,D[b>>2]);Ba(a,D[b+4>>2]);a=D[b+28>>2];if(a){D[b+32>>2]=a;ma(a)}if(B[b+27|0]<0){ma(D[b+16>>2])}ma(b)}}function Pf(){var a=0;a=na(28);D[a>>2]=0;D[a+4>>2]=0;D[a+24>>2]=0;D[a+16>>2]=0;D[a+20>>2]=0;D[a+8>>2]=0;D[a+12>>2]=0;return a|0}function Tb(a){var b=0;if(E[a+11|0]>>>7|0){b=D[a+4>>2]}else{b=E[a+11|0]}if(!b){ub();T()}if(E[a+11|0]>>>7|0){a=D[a>>2]}return a}function Pe(a){a=a|0;var b=0;D[a>>2]=1804;b=D[a+16>>2];if(b){D[a+20>>2]=b;ma(b)}b=D[a+4>>2];if(b){D[a+8>>2]=b;ma(b)}return a|0}function _f(){var a=0,b=0;a=na(24);D[a+4>>2]=0;D[a+8>>2]=0;b=a+16|0;D[b>>2]=0;D[b+4>>2]=0;D[a>>2]=a+4;D[a+12>>2]=b;return a|0}function Je(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(La(a,D[b+8>>2],0)){Cc(b,c,d);return}a=D[a+8>>2];ba[D[D[a>>2]+28>>2]](a,b,c,d)}function Zd(a){a=a|0;var b=0;D[a>>2]=3292;b=D[a+76>>2];if(b){ma(b)}D[a>>2]=2988;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}ma(a)}function Sh(a){a=a|0;var b=0;D[a>>2]=4844;b=D[a+76>>2];if(b){ma(b)}D[a>>2]=2988;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}ma(a)}function na(a){var b=0;a=a?a:1;a:{while(1){b=Gc(a);if(b){break a}b=D[3004];if(b){ba[b|0]();continue}break}W();T()}return b}function ib(a,b){if(b){ib(a,D[b>>2]);ib(a,D[b+4>>2]);if(B[b+39|0]<0){ma(D[b+28>>2])}if(B[b+27|0]<0){ma(D[b+16>>2])}ma(b)}}function Rb(a){a=a|0;var b=0,c=0;D[a>>2]=11296;b=D[a+4>>2]-12|0;c=D[b+8>>2]-1|0;D[b+8>>2]=c;if((c|0)<0){ma(b)}return a|0}function Mb(a,b){a=a|0;b=b|0;var c=0;a:{switch(b|0){case 1:b=1;case 0:D[a+28>>2]=b;c=1;break;default:break a}}return c|0}function gg(){var a=0;a=na(24);D[a+8>>2]=0;D[a+12>>2]=0;D[a+4>>2]=-1;D[a>>2]=1140;D[a+16>>2]=0;D[a+20>>2]=0;return a|0}function zc(a,b,c){a=a|0;b=b|0;c=c|0;D[a+4>>2]=b;b=D[D[D[b+4>>2]+8>>2]+(c<<2)>>2];D[a+12>>2]=c;D[a+8>>2]=b;return 1}function oc(a){a=a|0;var b=0;if(!(!D[a+60>>2]|!D[a+44>>2]|(!D[a+48>>2]|!D[a+52>>2]))){b=D[a+56>>2]!=0}return b|0}function Fb(a,b){var c=0,d=0;Ka(a,b);b=D[a+28>>2];c=b;d=b+1|0;b=D[a+24>>2]+1|0;D[a+24>>2]=b;D[a+28>>2]=b?c:d}function _h(a){a=a|0;var b=0;D[a>>2]=3528;D[a>>2]=2988;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}return a|0}function Qh(a){a=a|0;var b=0;D[a>>2]=5068;D[a>>2]=2988;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}return a|0}function ef(a){a=a|0;if(a){if(B[a+39|0]<0){ma(D[a+28>>2])}Yb(a+12|0,D[a+16>>2]);ib(a,D[a+4>>2]);ma(a)}}function Yg(a){a=a|0;var b=0;D[a>>2]=8904;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}return a|0}function Pg(a){a=a|0;var b=0;D[a>>2]=9404;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}return a|0}function qb(a){a=a|0;var b=0;if(!(!D[a+52>>2]|(!D[a+44>>2]|!D[a+48>>2]))){b=D[a+56>>2]!=0}return b|0}function nc(a,b){a=a|0;b=b|0;var c=0;if(!(D[b+56>>2]|!b|E[b+24|0]!=3)){D[a+60>>2]=b;c=1}return c|0}function Zh(a){a=a|0;var b=0;D[a>>2]=3528;D[a>>2]=2988;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}ma(a)}function Ph(a){a=a|0;var b=0;D[a>>2]=5068;D[a>>2]=2988;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}ma(a)}function sg(a,b,c){a=a|0;b=b|0;c=c|0;D[a+16>>2]=0;D[a+20>>2]=0;D[a>>2]=b;D[a+8>>2]=c;D[a+12>>2]=0}function Xg(a){a=a|0;var b=0;D[a>>2]=8904;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}ma(a)}function Vd(a,b){a=a|0;b=b|0;var c=0;if(!(D[b+56>>2]|E[b+24|0]!=3)){D[a- -64>>2]=b;c=1}return c|0}function Ng(a){a=a|0;var b=0;D[a>>2]=9404;b=D[a+36>>2];if(b){ma(b)}b=D[a+24>>2];if(b){ma(b)}ma(a)}function Pd(a,b){a=a|0;b=b|0;var c=0;if(!(D[b+56>>2]|E[b+24|0]!=3)){D[a+48>>2]=b;c=1}return c|0}function Fe(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(La(a,D[b+8>>2],f)){Bc(b,c,d,e)}}function ve(a){a=a|0;var b=0;D[a>>2]=1948;b=D[a+16>>2];D[a+16>>2]=0;if(b){ya(b)}return a|0}function ee(a){a=a|0;var b=0;D[a>>2]=2988;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}return a|0}function vh(a){a=a|0;var b=0;b=eb(a);return nd(a+24|0,b?b:D[a+8>>2],D[D[a+4>>2]+32>>2])|0}function Og(a){a=a|0;var b=0;D[a>>2]=1140;b=D[a+8>>2];if(b){D[a+12>>2]=b;ma(b)}return a|0}function ue(a){a=a|0;var b=0;D[a>>2]=1948;b=D[a+16>>2];D[a+16>>2]=0;if(b){ya(b)}ma(a)}function Pb(a){a=a|0;var b=0;D[a>>2]=2988;b=D[a+32>>2];if(b){D[a+36>>2]=b;ma(b)}ma(a)}function Eg(a){a=a|0;var b=0;D[a>>2]=1140;b=D[a+8>>2];if(b){D[a+12>>2]=b;ma(b)}ma(a)}function je(a,b){a=a|0;b=b|0;return ba[D[D[a>>2]+48>>2]](a,D[b+4>>2]-D[b>>2]>>2)|0}function Yb(a,b){if(b){Yb(a,D[b>>2]);Yb(a,D[b+4>>2]);ib(b+20|0,D[b+24>>2]);ma(b)}}function qh(a){a=a|0;if(!D[a+44>>2]){return 0}return ba[D[D[a>>2]+48>>2]](a)|0}function qg(a){a=a|0;var b=0;if(a){b=D[a+8>>2];if(b){D[a+12>>2]=b;ma(b)}ma(a)}}function di(a){var b=0;while(1){if(a){a=a-1&a;b=b+1|0;continue}break}return b}function Ke(a,b,c,d){a=a|0;b=b|0;c=c|0;d=d|0;if(La(a,D[b+8>>2],0)){Cc(b,c,d)}}function oh(a,b){a=a|0;b=b|0;a=D[a+48>>2];return ba[D[D[a>>2]+20>>2]](a,b)|0}function gh(a,b){a=a|0;b=b|0;a=D[a+48>>2];return ba[D[D[a>>2]+12>>2]](a,b)|0}function fh(a,b){a=a|0;b=b|0;a=D[a+48>>2];return ba[D[D[a>>2]+16>>2]](a,b)|0}function _a(a){a=a|0;var b=0;if(a){b=D[a>>2];if(b){D[a+4>>2]=b;ma(b)}ma(a)}}function $a(){var a=0;a=na(12);D[a>>2]=0;D[a+4>>2]=0;D[a+8>>2]=0;return a|0}function ei(a){var b=0;b=a&31;a=0-a&31;return(-1>>>b&-2)<<b|(-1<<a&-2)>>>a}function yg(a,b){a=a|0;b=b|0;B[b+84|0]=1;D[b+72>>2]=D[b+68>>2];return 1}function gf(a,b,c){a=a|0;b=b|0;c=c|0;D[a+32>>2]=c;D[a+28>>2]=b;return 1}function Zf(a){a=a|0;if(a){Ca(a+12|0,D[a+16>>2]);Ba(a,D[a+4>>2]);ma(a)}}function mh(a){a=a|0;a=D[a+48>>2];return ba[D[D[a>>2]+24>>2]](a)|0}function kh(a){a=a|0;a=D[a+48>>2];return ba[D[D[a>>2]+28>>2]](a)|0}function hh(a){a=a|0;a=D[a+48>>2];return ba[D[D[a>>2]+36>>2]](a)|0}function cg(){var a=0;a=na(8);D[a+4>>2]=-1;D[a>>2]=1032;return a|0}function Af(a,b,c){a=a|0;b=b|0;c=c|0;return D[D[b+8>>2]+(c<<2)>>2]}function uh(a,b){a=a|0;b=b|0;return xd(a+24|0,eb(a),D[a+8>>2])|0}function Kh(a,b){a=a|0;b=b|0;return yc(a+24|0,eb(a),D[a+8>>2])|0}function wh(a,b){a=a|0;b=b|0;return ba[D[D[a>>2]+56>>2]](a,b)|0}function ed(a,b){a=a|0;b=b|0;return ba[D[D[a>>2]+12>>2]](a,b)|0}function Wf(a){a=a|0;if(a){if(B[a+15|0]<0){ma(D[a+4>>2])}ma(a)}}function Ae(a,b){a=a|0;b=b|0;D[a+12>>2]=-1;D[a+8>>2]=b;return 1}function eg(a,b){a=a|0;b=b|0;return K(H[D[a+8>>2]+(b<<2)>>2])}function Vf(a,b){a=a|0;b=b|0;return K(H[D[a>>2]+(b<<2)>>2])}function Xf(a){a=a|0;return(B[a+15|0]<0?D[a+4>>2]:a+4|0)|0}function Me(a,b){a=a|0;b=b|0;return D[D[a+4>>2]+(b<<2)>>2]}function $f(a){a=a|0;return(D[a+100>>2]-D[a+96>>2]|0)/12|0}function ad(a,b){a=a|0;b=b|0;return D[D[a>>2]+(b<<2)>>2]}function Rf(a,b){a=a|0;b=b|0;return C[D[a>>2]+(b<<1)>>1]}function Qf(a,b){a=a|0;b=b|0;return F[D[a>>2]+(b<<1)>>1]}function Rd(a,b,c){a=a|0;b=b|0;c=c|0;return wc(a,b,c)|0}function Df(a,b,c){a=a|0;b=b|0;c=c|0;return Mc(b,c)|0}function fi(a){if(a){return 31-M(a-1^a)|0}return 32}
function Nc(a){D[a>>2]=10332;pa(a+4|0,0,80);return a}function dd(a){a=a|0;return D[a+12>>2]-D[a+8>>2]>>2}function yb(a){a=a|0;if(a){ba[D[D[a>>2]+4>>2]](a)}}function Uf(a,b){a=a|0;b=b|0;return B[D[a>>2]+b|0]}function Sf(a,b){a=a|0;b=b|0;return E[D[a>>2]+b|0]}function De(a){a=a|0;return D[a+8>>2]-D[a+4>>2]>>2}function Fd(a,b){a=a|0;b=b|0;D[a+4>>2]=b;return 1}function bd(a){a=a|0;return D[a+4>>2]-D[a>>2]>>1}function ac(a){a=a|0;return D[a+4>>2]-D[a>>2]>>2}function cd(a){a=a|0;return D[a+4>>2]-D[a>>2]|0}function yf(a,b){a=a|0;b=b|0;return D[b+4>>2]}function ye(a,b,c){a=a|0;b=b|0;c=c|0;return 1}function ug(a,b){a=a|0;b=b|0;return B[b+24|0]}function fe(a){a=a|0;return B[D[a+8>>2]+24|0]}function Jf(a,b){a=a|0;b=b|0;return D[b+8>>2]}function Ih(a){a=a|0;D[a>>2]=5956;return a|0}function Ch(a){a=a|0;D[a>>2]=6960;return a|0}function dg(a){a=a|0;return K(H[a+20>>2])}function Hh(a){a=a|0;D[a>>2]=5956;ma(a)}function Bh(a){a=a|0;D[a>>2]=6960;ma(a)}function ng(a){a=a|0;return D[a+88>>2]}function mg(a){a=a|0;return D[a+56>>2]}function jg(a){a=a|0;return D[a+40>>2]}function ig(a){a=a|0;return D[a+48>>2]}function hg(a){a=a|0;return D[a+60>>2]}function fb(a){a=a|0;return D[a+28>>2]}function bc(a){a=a|0;return D[a+80>>2]}function sc(a,b){a=a|0;b=b|0;return-1}function rd(a){a=a|0;return D[a+8>>2]}function lg(a){a=a|0;return B[a+24|0]}function kg(a){a=a|0;return E[a+32|0]}function Yf(a){a=a|0;return!D[a>>2]|0}function Xa(a){a=a|0;return D[a+4>>2]}function Sd(a,b){a=a|0;b=b|0;return 6}function Ia(a,b){a=a|0;b=b|0;return 0}function Gh(a,b){a=a|0;b=b|0;return 2}function Ac(a,b){a=a|0;b=b|0;return 1}function gd(a){a=a|0;return D[a>>2]}function Ya(a,b,c){if(c){oa(a,b,c)}}function pg(){return mb(na(64))|0}function cc(a){a=a|0;if(a){ma(a)}}function bg(){return Nc(na(84))|0}function Ee(a){a=a|0;return 1273}function Be(a){a=a|0;Rb(a);ma(a)}function Oa(a){a=a|0;return a|0}function _g(a){a=a|0;ma(od(a))}function Oe(a){a=a|0;ma(vb(a))}function Ce(a){a=a|0;ma(Rb(a))}function $g(a){a=a|0;ma(qd(a))}function wa(a){a=a|0;return 1}function rc(a){a=a|0;return 4}function pc(a){a=a|0;return 5}function Wa(a){a=a|0;return 0}function Td(a){a=a|0;return 2}function Ob(a){a=a|0;return 6}function Fh(a){a=a|0;return 3}function Na(a){a=a|0;ma(a)}function Fa(){ra(1266);T()}function Aa(){ra(1313);T()}function Qa(a){a=a|0;T()}function _e(){return 10}function Ze(){return 11}function Ye(){return 12}function xb(){return-1}function wb(){return 1}function ua(){ub();T()}function qa(){Fa();T()}function lb(){return 0}function df(){return 5}function cf(){return 6}function bf(){return 7}function af(){return 8}function _c(){return 3}function Zc(){return 4}function Xe(){return-2}function Xb(){return 2}function We(){return-3}function Ve(){return-4}function Ue(){return-5}function $e(){return 9}function ub(){W();T()}function Fc(a){a=a|0}function Xd(){}
// EMSCRIPTEN_END_FUNCS
e=E;p(ka);var ba=c([null,Oa,Na,Td,$h,ch,Tf,yc,se,tc,fg,Sd,Gh,Rb,Og,Eg,wa,rh,lh,eh,xd,bh,nd,Sd,ug,Pe,Qa,gf,Yc,Ne,Me,De,fb,Ia,ub,Ac,wa,ve,ue,zc,Ae,ze,ye,Ac,xe,we,me,le,te,re,ke,qe,pe,oe,ne,vc,uc,zc,je,ie,wc,he,fe,ge,ee,Pb,wa,Xa,qb,Wa,sc,Ia,Wa,wa,de,ce,Qa,Qa,be,ae,rc,qb,qc,$d,_d,Zd,pc,oc,wa,Ia,nc,mc,Yd,_h,Zh,Ob,Wd,wa,Ia,Vd,Ud,Yh,Oa,Na,Mb,fb,Nb,Qa,Pb,wa,qb,Xh,Qa,Wh,Vh,rc,qb,qc,Uh,Th,Sh,pc,oc,wa,Ia,nc,mc,Rh,Qh,Ph,Ob,Wd,wa,Ia,Vd,Ud,Oh,Oa,Na,Mb,fb,Lb,Qa,Pb,Wa,wa,Nh,vc,uc,Mh,Lh,Rd,Jh,Td,Kh,Ih,Hh,Ob,Xa,Qd,wa,Ia,Pd,wa,Fh,Od,Eh,Oa,Na,Mb,fb,Nb,Ch,Bh,Ob,Qd,wa,Ia,Pd,Od,Ah,Oa,Na,Mb,fb,Lb,Oa,Na,Wa,wa,Wa,sc,Ia,Dh,zh,th,sh,yh,xh,Rd,wh,vh,uh,ph,Qa,wa,wa,qh,wg,vg,wa,Wa,Ia,Ia,jh,ih,nh,oh,kh,hh,gh,fh,mh,qd,$g,Fd,Ed,Dd,Cd,dh,wa,Xa,rd,od,_g,Fd,Ed,Dd,Cd,ah,wa,Xa,rd,Ad,Zg,Bd,Yg,Xg,Ug,Tg,Sg,Rg,Vg,Qg,Wg,Pg,Ng,Lg,Kg,Jg,Ig,Mg,Hg,Gg,Fg,Dg,Cg,zg,Ag,Bg,Oa,Na,yg,xg,Qa,Wa,wa,Te,Se,Re,Qe,vb,Oe,Kc,Jc,Oa,Na,Fc,Fc,Le,Fe,He,Ke,Na,Ge,Ie,Je,Oa,Na,Ee,Ce,Xa,Be]);function ca(){return A.byteLength/65536|0}function ha(ia){ia=ia|0;var da=ca()|0;var ea=da+ia|0;if(da<ea&&ea<65536){var fa=new ArrayBuffer(J(ea,65536));var ga=new Int8Array(fa);ga.set(B);B=new Int8Array(fa);C=new Int16Array(fa);D=new Int32Array(fa);E=new Uint8Array(fa);F=new Uint16Array(fa);G=new Uint32Array(fa);H=new Float32Array(fa);I=new Float64Array(fa);A=fa;z.buffer=A;e=E}return da}return{"g":Xd,"h":ba,"i":cc,"j":tg,"k":sg,"l":cc,"m":rg,"n":gd,"o":qg,"p":pg,"q":cc,"r":og,"s":bc,"t":ng,"u":mg,"v":fb,"w":lg,"x":kg,"y":jg,"z":ig,"A":hg,"B":ya,"C":gg,"D":ed,"E":Xa,"F":eg,"G":dg,"H":yb,"I":cg,"J":ed,"K":Xa,"L":yb,"M":bg,"N":dd,"O":bc,"P":yb,"Q":ag,"R":$f,"S":dd,"T":bc,"U":yb,"V":_f,"W":Zf,"X":gd,"Y":Yf,"Z":Xf,"_":Wf,"$":$a,"aa":Vf,"ba":ac,"ca":_a,"da":$a,"ea":Uf,"fa":cd,"ga":_a,"ha":$a,"ia":Sf,"ja":cd,"ka":_a,"la":$a,"ma":Rf,"na":bd,"oa":_a,"pa":$a,"qa":Qf,"ra":bd,"sa":_a,"ta":$a,"ua":ad,"va":ac,"wa":_a,"xa":$a,"ya":ad,"za":ac,"Aa":_a,"Ba":Pf,"Ca":Of,"Da":Nf,"Ea":Mf,"Fa":Lf,"Ga":Kf,"Ha":Jf,"Ia":If,"Ja":Hf,"Ka":Gf,"La":Ff,"Ma":Ef,"Na":Df,"Oa":Cf,"Pa":Bf,"Qa":Af,"Ra":zf,"Sa":yf,"Ta":xf,"Ua":wf,"Va":vf,"Wa":uf,"Xa":tf,"Ya":sf,"Za":rf,"_a":$c,"$a":qf,"ab":pf,"bb":of,"cb":nf,"db":$c,"eb":mf,"fb":lf,"gb":kf,"hb":jf,"ib":hf,"jb":ff,"kb":ef,"lb":xb,"mb":lb,"nb":wb,"ob":Xb,"pb":xb,"qb":lb,"rb":wb,"sb":Xb,"tb":_c,"ub":Zc,"vb":xb,"wb":lb,"xb":wb,"yb":lb,"zb":wb,"Ab":Xb,"Bb":_c,"Cb":Zc,"Db":df,"Eb":cf,"Fb":bf,"Gb":af,"Hb":$e,"Ib":_e,"Jb":Ze,"Kb":Ye,"Lb":lb,"Mb":xb,"Nb":Xe,"Ob":We,"Pb":Ve,"Qb":Ue,"Rb":Gc,"Sb":ma}}return ja(la)}
// EMSCRIPTEN_END_ASM
)(asmLibraryArg)},instantiate:function(binary,info){return{then:function(ok){var module=new WebAssembly.Module(binary);ok({"instance":new WebAssembly.Instance(module)})}}},RuntimeError:Error};wasmBinary=[];if(typeof WebAssembly!=="object"){abort("no native wasm support detected")}var wasmMemory;var ABORT=false;var EXITSTATUS;function assert(condition,text){if(!condition){abort(text)}}var UTF8Decoder=typeof TextDecoder!=="undefined"?new TextDecoder("utf8"):undefined;function UTF8ArrayToString(heap,idx,maxBytesToRead){var endIdx=idx+maxBytesToRead;var endPtr=idx;while(heap[endPtr]&&!(endPtr>=endIdx))++endPtr;if(endPtr-idx>16&&heap.subarray&&UTF8Decoder){return UTF8Decoder.decode(heap.subarray(idx,endPtr))}else{var str="";while(idx<endPtr){var u0=heap[idx++];if(!(u0&128)){str+=String.fromCharCode(u0);continue}var u1=heap[idx++]&63;if((u0&224)==192){str+=String.fromCharCode((u0&31)<<6|u1);continue}var u2=heap[idx++]&63;if((u0&240)==224){u0=(u0&15)<<12|u1<<6|u2}else{u0=(u0&7)<<18|u1<<12|u2<<6|heap[idx++]&63}if(u0<65536){str+=String.fromCharCode(u0)}else{var ch=u0-65536;str+=String.fromCharCode(55296|ch>>10,56320|ch&1023)}}}return str}function UTF8ToString(ptr,maxBytesToRead){return ptr?UTF8ArrayToString(HEAPU8,ptr,maxBytesToRead):""}function stringToUTF8Array(str,heap,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){var u1=str.charCodeAt(++i);u=65536+((u&1023)<<10)|u1&1023}if(u<=127){if(outIdx>=endIdx)break;heap[outIdx++]=u}else if(u<=2047){if(outIdx+1>=endIdx)break;heap[outIdx++]=192|u>>6;heap[outIdx++]=128|u&63}else if(u<=65535){if(outIdx+2>=endIdx)break;heap[outIdx++]=224|u>>12;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}else{if(outIdx+3>=endIdx)break;heap[outIdx++]=240|u>>18;heap[outIdx++]=128|u>>12&63;heap[outIdx++]=128|u>>6&63;heap[outIdx++]=128|u&63}}heap[outIdx]=0;return outIdx-startIdx}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 len+=4}return len}function alignUp(x,multiple){if(x%multiple>0){x+=multiple-x%multiple}return x}var buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function updateGlobalBufferAndViews(buf){buffer=buf;Module["HEAP8"]=HEAP8=new Int8Array(buf);Module["HEAP16"]=HEAP16=new Int16Array(buf);Module["HEAP32"]=HEAP32=new Int32Array(buf);Module["HEAPU8"]=HEAPU8=new Uint8Array(buf);Module["HEAPU16"]=HEAPU16=new Uint16Array(buf);Module["HEAPU32"]=HEAPU32=new Uint32Array(buf);Module["HEAPF32"]=HEAPF32=new Float32Array(buf);Module["HEAPF64"]=HEAPF64=new Float64Array(buf)}var INITIAL_MEMORY=Module["INITIAL_MEMORY"]||16777216;if(Module["wasmMemory"]){wasmMemory=Module["wasmMemory"]}else{wasmMemory=new WebAssembly.Memory({"initial":INITIAL_MEMORY/65536,"maximum":2147483648/65536})}if(wasmMemory){buffer=wasmMemory.buffer}INITIAL_MEMORY=buffer.byteLength;updateGlobalBufferAndViews(buffer);var wasmTable;var __ATPRERUN__=[];var __ATINIT__=[];var __ATPOSTRUN__=[];var runtimeInitialized=false;var runtimeKeepaliveCounter=0;function keepRuntimeAlive(){return noExitRuntime||runtimeKeepaliveCounter>0}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 initRuntime(){runtimeInitialized=true;callRuntimeCallbacks(__ATINIT__)}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)}function addOnInit(cb){__ATINIT__.unshift(cb)}function addOnPostRun(cb){__ATPOSTRUN__.unshift(cb)}var runDependencies=0;var runDependencyWatcher=null;var dependenciesFulfilled=null;function addRunDependency(id){runDependencies++;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}}function removeRunDependency(id){runDependencies--;if(Module["monitorRunDependencies"]){Module["monitorRunDependencies"](runDependencies)}if(runDependencies==0){if(runDependencyWatcher!==null){clearInterval(runDependencyWatcher);runDependencyWatcher=null}if(dependenciesFulfilled){var callback=dependenciesFulfilled;dependenciesFulfilled=null;callback()}}}Module["preloadedImages"]={};Module["preloadedAudios"]={};function abort(what){{if(Module["onAbort"]){Module["onAbort"](what)}}what="Aborted("+what+")";err(what);ABORT=true;EXITSTATUS=1;what+=". Build with -s ASSERTIONS=1 for more info.";var e=new WebAssembly.RuntimeError(what);readyPromiseReject(e);throw e}var dataURIPrefix="data:application/octet-stream;base64,";function isDataURI(filename){return filename.startsWith(dataURIPrefix)}function isFileURI(filename){return filename.startsWith("file://")}var wasmBinaryFile;wasmBinaryFile="draco_decoder_gltf.wasm";if(!isDataURI(wasmBinaryFile)){wasmBinaryFile=locateFile(wasmBinaryFile)}function getBinary(file){try{if(file==wasmBinaryFile&&wasmBinary){return new Uint8Array(wasmBinary)}var binary=tryParseAsDataURI(file);if(binary){return binary}if(readBinary){return readBinary(file)}else{throw"both async and sync fetching of the wasm failed"}}catch(err){abort(err)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if(typeof fetch==="function"&&!isFileURI(wasmBinaryFile)){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){if(!response["ok"]){throw"failed to load wasm binary file at '"+wasmBinaryFile+"'"}return response["arrayBuffer"]()}).catch(function(){return getBinary(wasmBinaryFile)})}else{if(readAsync){return new Promise(function(resolve,reject){readAsync(wasmBinaryFile,function(response){resolve(new Uint8Array(response))},reject)})}}}return Promise.resolve().then(function(){return getBinary(wasmBinaryFile)})}function createWasm(){var info={"a":asmLibraryArg};function receiveInstance(instance,module){var exports=instance.exports;Module["asm"]=exports;wasmTable=Module["asm"]["h"];addOnInit(Module["asm"]["g"]);removeRunDependency("wasm-instantiate")}addRunDependency("wasm-instantiate");function receiveInstantiationResult(result){receiveInstance(result["instance"])}function instantiateArrayBuffer(receiver){return getBinaryPromise().then(function(binary){return WebAssembly.instantiate(binary,info)}).then(function(instance){return instance}).then(receiver,function(reason){err("failed to asynchronously prepare wasm: "+reason);abort(reason)})}function instantiateAsync(){if(!wasmBinary&&typeof WebAssembly.instantiateStreaming==="function"&&!isDataURI(wasmBinaryFile)&&!isFileURI(wasmBinaryFile)&&typeof fetch==="function"){return fetch(wasmBinaryFile,{credentials:"same-origin"}).then(function(response){var result=WebAssembly.instantiateStreaming(response,info);return result.then(receiveInstantiationResult,function(reason){err("wasm streaming compile failed: "+reason);err("falling back to ArrayBuffer instantiation");return instantiateArrayBuffer(receiveInstantiationResult)})})}else{return instantiateArrayBuffer(receiveInstantiationResult)}}if(Module["instantiateWasm"]){try{var exports=Module["instantiateWasm"](info,receiveInstance);return exports}catch(e){err("Module.instantiateWasm callback failed with error: "+e);return false}}instantiateAsync().catch(readyPromiseReject);return{}}function callRuntimeCallbacks(callbacks){while(callbacks.length>0){var callback=callbacks.shift();if(typeof callback=="function"){callback(Module);continue}var func=callback.func;if(typeof func==="number"){if(callback.arg===undefined){getWasmTableEntry(func)()}else{getWasmTableEntry(func)(callback.arg)}}else{func(callback.arg===undefined?null:callback.arg)}}}var wasmTableMirror=[];function getWasmTableEntry(funcPtr){var func=wasmTableMirror[funcPtr];if(!func){if(funcPtr>=wasmTableMirror.length)wasmTableMirror.length=funcPtr+1;wasmTableMirror[funcPtr]=func=wasmTable.get(funcPtr)}return func}function ___cxa_allocate_exception(size){return _malloc(size+16)+16}function ExceptionInfo(excPtr){this.excPtr=excPtr;this.ptr=excPtr-16;this.set_type=function(type){HEAP32[this.ptr+4>>2]=type};this.get_type=function(){return HEAP32[this.ptr+4>>2]};this.set_destructor=function(destructor){HEAP32[this.ptr+8>>2]=destructor};this.get_destructor=function(){return HEAP32[this.ptr+8>>2]};this.set_refcount=function(refcount){HEAP32[this.ptr>>2]=refcount};this.set_caught=function(caught){caught=caught?1:0;HEAP8[this.ptr+12>>0]=caught};this.get_caught=function(){return HEAP8[this.ptr+12>>0]!=0};this.set_rethrown=function(rethrown){rethrown=rethrown?1:0;HEAP8[this.ptr+13>>0]=rethrown};this.get_rethrown=function(){return HEAP8[this.ptr+13>>0]!=0};this.init=function(type,destructor){this.set_type(type);this.set_destructor(destructor);this.set_refcount(0);this.set_caught(false);this.set_rethrown(false)};this.add_ref=function(){var value=HEAP32[this.ptr>>2];HEAP32[this.ptr>>2]=value+1};this.release_ref=function(){var prev=HEAP32[this.ptr>>2];HEAP32[this.ptr>>2]=prev-1;return prev===1}}var exceptionLast=0;var uncaughtExceptionCount=0;function ___cxa_throw(ptr,type,destructor){var info=new ExceptionInfo(ptr);info.init(type,destructor);exceptionLast=ptr;uncaughtExceptionCount++;throw ptr}function _abort(){abort("")}function _emscripten_memcpy_big(dest,src,num){HEAPU8.copyWithin(dest,src,src+num)}function emscripten_realloc_buffer(size){try{wasmMemory.grow(size-buffer.byteLength+65535>>>16);updateGlobalBufferAndViews(wasmMemory.buffer);return 1}catch(e){}}function _emscripten_resize_heap(requestedSize){var oldSize=HEAPU8.length;requestedSize=requestedSize>>>0;var maxHeapSize=2147483648;if(requestedSize>maxHeapSize){return false}for(var cutDown=1;cutDown<=4;cutDown*=2){var overGrownHeapSize=oldSize*(1+.2/cutDown);overGrownHeapSize=Math.min(overGrownHeapSize,requestedSize+100663296);var newSize=Math.min(maxHeapSize,alignUp(Math.max(requestedSize,overGrownHeapSize),65536));var replacement=emscripten_realloc_buffer(newSize);if(replacement){return true}}return false}var ASSERTIONS=false;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}function intArrayToString(array){var ret=[];for(var i=0;i<array.length;i++){var chr=array[i];if(chr>255){if(ASSERTIONS){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("")}var decodeBase64=typeof atob==="function"?atob:function(input){var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var output="";var chr1,chr2,chr3;var enc1,enc2,enc3,enc4;var i=0;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=keyStr.indexOf(input.charAt(i++));enc2=keyStr.indexOf(input.charAt(i++));enc3=keyStr.indexOf(input.charAt(i++));enc4=keyStr.indexOf(input.charAt(i++));chr1=enc1<<2|enc2>>4;chr2=(enc2&15)<<4|enc3>>2;chr3=(enc3&3)<<6|enc4;output=output+String.fromCharCode(chr1);if(enc3!==64){output=output+String.fromCharCode(chr2)}if(enc4!==64){output=output+String.fromCharCode(chr3)}}while(i<input.length);return output};function intArrayFromBase64(s){if(typeof ENVIRONMENT_IS_NODE==="boolean"&&ENVIRONMENT_IS_NODE){var buf=Buffer.from(s,"base64");return new Uint8Array(buf["buffer"],buf["byteOffset"],buf["byteLength"])}try{var decoded=decodeBase64(s);var bytes=new Uint8Array(decoded.length);for(var i=0;i<decoded.length;++i){bytes[i]=decoded.charCodeAt(i)}return bytes}catch(_){throw new Error("Converting base64 string to bytes failed.")}}function tryParseAsDataURI(filename){if(!isDataURI(filename)){return}return intArrayFromBase64(filename.slice(dataURIPrefix.length))}var asmLibraryArg={"f":___cxa_allocate_exception,"e":___cxa_throw,"b":_abort,"d":_emscripten_memcpy_big,"c":_emscripten_resize_heap,"a":wasmMemory};var asm=createWasm();var ___wasm_call_ctors=Module["___wasm_call_ctors"]=function(){return(___wasm_call_ctors=Module["___wasm_call_ctors"]=Module["asm"]["g"]).apply(null,arguments)};var _emscripten_bind_VoidPtr___destroy___0=Module["_emscripten_bind_VoidPtr___destroy___0"]=function(){return(_emscripten_bind_VoidPtr___destroy___0=Module["_emscripten_bind_VoidPtr___destroy___0"]=Module["asm"]["i"]).apply(null,arguments)};var _emscripten_bind_DecoderBuffer_DecoderBuffer_0=Module["_emscripten_bind_DecoderBuffer_DecoderBuffer_0"]=function(){return(_emscripten_bind_DecoderBuffer_DecoderBuffer_0=Module["_emscripten_bind_DecoderBuffer_DecoderBuffer_0"]=Module["asm"]["j"]).apply(null,arguments)};var _emscripten_bind_DecoderBuffer_Init_2=Module["_emscripten_bind_DecoderBuffer_Init_2"]=function(){return(_emscripten_bind_DecoderBuffer_Init_2=Module["_emscripten_bind_DecoderBuffer_Init_2"]=Module["asm"]["k"]).apply(null,arguments)};var _emscripten_bind_DecoderBuffer___destroy___0=Module["_emscripten_bind_DecoderBuffer___destroy___0"]=function(){return(_emscripten_bind_DecoderBuffer___destroy___0=Module["_emscripten_bind_DecoderBuffer___destroy___0"]=Module["asm"]["l"]).apply(null,arguments)};var _emscripten_bind_AttributeTransformData_AttributeTransformData_0=Module["_emscripten_bind_AttributeTransformData_AttributeTransformData_0"]=function(){return(_emscripten_bind_AttributeTransformData_AttributeTransformData_0=Module["_emscripten_bind_AttributeTransformData_AttributeTransformData_0"]=Module["asm"]["m"]).apply(null,arguments)};var _emscripten_bind_AttributeTransformData_transform_type_0=Module["_emscripten_bind_AttributeTransformData_transform_type_0"]=function(){return(_emscripten_bind_AttributeTransformData_transform_type_0=Module["_emscripten_bind_AttributeTransformData_transform_type_0"]=Module["asm"]["n"]).apply(null,arguments)};var _emscripten_bind_AttributeTransformData___destroy___0=Module["_emscripten_bind_AttributeTransformData___destroy___0"]=function(){return(_emscripten_bind_AttributeTransformData___destroy___0=Module["_emscripten_bind_AttributeTransformData___destroy___0"]=Module["asm"]["o"]).apply(null,arguments)};var _emscripten_bind_GeometryAttribute_GeometryAttribute_0=Module["_emscripten_bind_GeometryAttribute_GeometryAttribute_0"]=function(){return(_emscripten_bind_GeometryAttribute_GeometryAttribute_0=Module["_emscripten_bind_GeometryAttribute_GeometryAttribute_0"]=Module["asm"]["p"]).apply(null,arguments)};var _emscripten_bind_GeometryAttribute___destroy___0=Module["_emscripten_bind_GeometryAttribute___destroy___0"]=function(){return(_emscripten_bind_GeometryAttribute___destroy___0=Module["_emscripten_bind_GeometryAttribute___destroy___0"]=Module["asm"]["q"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_PointAttribute_0=Module["_emscripten_bind_PointAttribute_PointAttribute_0"]=function(){return(_emscripten_bind_PointAttribute_PointAttribute_0=Module["_emscripten_bind_PointAttribute_PointAttribute_0"]=Module["asm"]["r"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_size_0=Module["_emscripten_bind_PointAttribute_size_0"]=function(){return(_emscripten_bind_PointAttribute_size_0=Module["_emscripten_bind_PointAttribute_size_0"]=Module["asm"]["s"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_GetAttributeTransformData_0=Module["_emscripten_bind_PointAttribute_GetAttributeTransformData_0"]=function(){return(_emscripten_bind_PointAttribute_GetAttributeTransformData_0=Module["_emscripten_bind_PointAttribute_GetAttributeTransformData_0"]=Module["asm"]["t"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_attribute_type_0=Module["_emscripten_bind_PointAttribute_attribute_type_0"]=function(){return(_emscripten_bind_PointAttribute_attribute_type_0=Module["_emscripten_bind_PointAttribute_attribute_type_0"]=Module["asm"]["u"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_data_type_0=Module["_emscripten_bind_PointAttribute_data_type_0"]=function(){return(_emscripten_bind_PointAttribute_data_type_0=Module["_emscripten_bind_PointAttribute_data_type_0"]=Module["asm"]["v"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_num_components_0=Module["_emscripten_bind_PointAttribute_num_components_0"]=function(){return(_emscripten_bind_PointAttribute_num_components_0=Module["_emscripten_bind_PointAttribute_num_components_0"]=Module["asm"]["w"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_normalized_0=Module["_emscripten_bind_PointAttribute_normalized_0"]=function(){return(_emscripten_bind_PointAttribute_normalized_0=Module["_emscripten_bind_PointAttribute_normalized_0"]=Module["asm"]["x"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_byte_stride_0=Module["_emscripten_bind_PointAttribute_byte_stride_0"]=function(){return(_emscripten_bind_PointAttribute_byte_stride_0=Module["_emscripten_bind_PointAttribute_byte_stride_0"]=Module["asm"]["y"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_byte_offset_0=Module["_emscripten_bind_PointAttribute_byte_offset_0"]=function(){return(_emscripten_bind_PointAttribute_byte_offset_0=Module["_emscripten_bind_PointAttribute_byte_offset_0"]=Module["asm"]["z"]).apply(null,arguments)};var _emscripten_bind_PointAttribute_unique_id_0=Module["_emscripten_bind_PointAttribute_unique_id_0"]=function(){return(_emscripten_bind_PointAttribute_unique_id_0=Module["_emscripten_bind_PointAttribute_unique_id_0"]=Module["asm"]["A"]).apply(null,arguments)};var _emscripten_bind_PointAttribute___destroy___0=Module["_emscripten_bind_PointAttribute___destroy___0"]=function(){return(_emscripten_bind_PointAttribute___destroy___0=Module["_emscripten_bind_PointAttribute___destroy___0"]=Module["asm"]["B"]).apply(null,arguments)};var _emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=Module["_emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0"]=function(){return(_emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=Module["_emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0"]=Module["asm"]["C"]).apply(null,arguments)};var _emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=Module["_emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1"]=function(){return(_emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=Module["_emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1"]=Module["asm"]["D"]).apply(null,arguments)};var _emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=Module["_emscripten_bind_AttributeQuantizationTransform_quantization_bits_0"]=function(){return(_emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=Module["_emscripten_bind_AttributeQuantizationTransform_quantization_bits_0"]=Module["asm"]["E"]).apply(null,arguments)};var _emscripten_bind_AttributeQuantizationTransform_min_value_1=Module["_emscripten_bind_AttributeQuantizationTransform_min_value_1"]=function(){return(_emscripten_bind_AttributeQuantizationTransform_min_value_1=Module["_emscripten_bind_AttributeQuantizationTransform_min_value_1"]=Module["asm"]["F"]).apply(null,arguments)};var _emscripten_bind_AttributeQuantizationTransform_range_0=Module["_emscripten_bind_AttributeQuantizationTransform_range_0"]=function(){return(_emscripten_bind_AttributeQuantizationTransform_range_0=Module["_emscripten_bind_AttributeQuantizationTransform_range_0"]=Module["asm"]["G"]).apply(null,arguments)};var _emscripten_bind_AttributeQuantizationTransform___destroy___0=Module["_emscripten_bind_AttributeQuantizationTransform___destroy___0"]=function(){return(_emscripten_bind_AttributeQuantizationTransform___destroy___0=Module["_emscripten_bind_AttributeQuantizationTransform___destroy___0"]=Module["asm"]["H"]).apply(null,arguments)};var _emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=Module["_emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0"]=function(){return(_emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=Module["_emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0"]=Module["asm"]["I"]).apply(null,arguments)};var _emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=Module["_emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1"]=function(){return(_emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=Module["_emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1"]=Module["asm"]["J"]).apply(null,arguments)};var _emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=Module["_emscripten_bind_AttributeOctahedronTransform_quantization_bits_0"]=function(){return(_emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=Module["_emscripten_bind_AttributeOctahedronTransform_quantization_bits_0"]=Module["asm"]["K"]).apply(null,arguments)};var _emscripten_bind_AttributeOctahedronTransform___destroy___0=Module["_emscripten_bind_AttributeOctahedronTransform___destroy___0"]=function(){return(_emscripten_bind_AttributeOctahedronTransform___destroy___0=Module["_emscripten_bind_AttributeOctahedronTransform___destroy___0"]=Module["asm"]["L"]).apply(null,arguments)};var _emscripten_bind_PointCloud_PointCloud_0=Module["_emscripten_bind_PointCloud_PointCloud_0"]=function(){return(_emscripten_bind_PointCloud_PointCloud_0=Module["_emscripten_bind_PointCloud_PointCloud_0"]=Module["asm"]["M"]).apply(null,arguments)};var _emscripten_bind_PointCloud_num_attributes_0=Module["_emscripten_bind_PointCloud_num_attributes_0"]=function(){return(_emscripten_bind_PointCloud_num_attributes_0=Module["_emscripten_bind_PointCloud_num_attributes_0"]=Module["asm"]["N"]).apply(null,arguments)};var _emscripten_bind_PointCloud_num_points_0=Module["_emscripten_bind_PointCloud_num_points_0"]=function(){return(_emscripten_bind_PointCloud_num_points_0=Module["_emscripten_bind_PointCloud_num_points_0"]=Module["asm"]["O"]).apply(null,arguments)};var _emscripten_bind_PointCloud___destroy___0=Module["_emscripten_bind_PointCloud___destroy___0"]=function(){return(_emscripten_bind_PointCloud___destroy___0=Module["_emscripten_bind_PointCloud___destroy___0"]=Module["asm"]["P"]).apply(null,arguments)};var _emscripten_bind_Mesh_Mesh_0=Module["_emscripten_bind_Mesh_Mesh_0"]=function(){return(_emscripten_bind_Mesh_Mesh_0=Module["_emscripten_bind_Mesh_Mesh_0"]=Module["asm"]["Q"]).apply(null,arguments)};var _emscripten_bind_Mesh_num_faces_0=Module["_emscripten_bind_Mesh_num_faces_0"]=function(){return(_emscripten_bind_Mesh_num_faces_0=Module["_emscripten_bind_Mesh_num_faces_0"]=Module["asm"]["R"]).apply(null,arguments)};var _emscripten_bind_Mesh_num_attributes_0=Module["_emscripten_bind_Mesh_num_attributes_0"]=function(){return(_emscripten_bind_Mesh_num_attributes_0=Module["_emscripten_bind_Mesh_num_attributes_0"]=Module["asm"]["S"]).apply(null,arguments)};var _emscripten_bind_Mesh_num_points_0=Module["_emscripten_bind_Mesh_num_points_0"]=function(){return(_emscripten_bind_Mesh_num_points_0=Module["_emscripten_bind_Mesh_num_points_0"]=Module["asm"]["T"]).apply(null,arguments)};var _emscripten_bind_Mesh___destroy___0=Module["_emscripten_bind_Mesh___destroy___0"]=function(){return(_emscripten_bind_Mesh___destroy___0=Module["_emscripten_bind_Mesh___destroy___0"]=Module["asm"]["U"]).apply(null,arguments)};var _emscripten_bind_Metadata_Metadata_0=Module["_emscripten_bind_Metadata_Metadata_0"]=function(){return(_emscripten_bind_Metadata_Metadata_0=Module["_emscripten_bind_Metadata_Metadata_0"]=Module["asm"]["V"]).apply(null,arguments)};var _emscripten_bind_Metadata___destroy___0=Module["_emscripten_bind_Metadata___destroy___0"]=function(){return(_emscripten_bind_Metadata___destroy___0=Module["_emscripten_bind_Metadata___destroy___0"]=Module["asm"]["W"]).apply(null,arguments)};var _emscripten_bind_Status_code_0=Module["_emscripten_bind_Status_code_0"]=function(){return(_emscripten_bind_Status_code_0=Module["_emscripten_bind_Status_code_0"]=Module["asm"]["X"]).apply(null,arguments)};var _emscripten_bind_Status_ok_0=Module["_emscripten_bind_Status_ok_0"]=function(){return(_emscripten_bind_Status_ok_0=Module["_emscripten_bind_Status_ok_0"]=Module["asm"]["Y"]).apply(null,arguments)};var _emscripten_bind_Status_error_msg_0=Module["_emscripten_bind_Status_error_msg_0"]=function(){return(_emscripten_bind_Status_error_msg_0=Module["_emscripten_bind_Status_error_msg_0"]=Module["asm"]["Z"]).apply(null,arguments)};var _emscripten_bind_Status___destroy___0=Module["_emscripten_bind_Status___destroy___0"]=function(){return(_emscripten_bind_Status___destroy___0=Module["_emscripten_bind_Status___destroy___0"]=Module["asm"]["_"]).apply(null,arguments)};var _emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=Module["_emscripten_bind_DracoFloat32Array_DracoFloat32Array_0"]=function(){return(_emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=Module["_emscripten_bind_DracoFloat32Array_DracoFloat32Array_0"]=Module["asm"]["$"]).apply(null,arguments)};var _emscripten_bind_DracoFloat32Array_GetValue_1=Module["_emscripten_bind_DracoFloat32Array_GetValue_1"]=function(){return(_emscripten_bind_DracoFloat32Array_GetValue_1=Module["_emscripten_bind_DracoFloat32Array_GetValue_1"]=Module["asm"]["aa"]).apply(null,arguments)};var _emscripten_bind_DracoFloat32Array_size_0=Module["_emscripten_bind_DracoFloat32Array_size_0"]=function(){return(_emscripten_bind_DracoFloat32Array_size_0=Module["_emscripten_bind_DracoFloat32Array_size_0"]=Module["asm"]["ba"]).apply(null,arguments)};var _emscripten_bind_DracoFloat32Array___destroy___0=Module["_emscripten_bind_DracoFloat32Array___destroy___0"]=function(){return(_emscripten_bind_DracoFloat32Array___destroy___0=Module["_emscripten_bind_DracoFloat32Array___destroy___0"]=Module["asm"]["ca"]).apply(null,arguments)};var _emscripten_bind_DracoInt8Array_DracoInt8Array_0=Module["_emscripten_bind_DracoInt8Array_DracoInt8Array_0"]=function(){return(_emscripten_bind_DracoInt8Array_DracoInt8Array_0=Module["_emscripten_bind_DracoInt8Array_DracoInt8Array_0"]=Module["asm"]["da"]).apply(null,arguments)};var _emscripten_bind_DracoInt8Array_GetValue_1=Module["_emscripten_bind_DracoInt8Array_GetValue_1"]=function(){return(_emscripten_bind_DracoInt8Array_GetValue_1=Module["_emscripten_bind_DracoInt8Array_GetValue_1"]=Module["asm"]["ea"]).apply(null,arguments)};var _emscripten_bind_DracoInt8Array_size_0=Module["_emscripten_bind_DracoInt8Array_size_0"]=function(){return(_emscripten_bind_DracoInt8Array_size_0=Module["_emscripten_bind_DracoInt8Array_size_0"]=Module["asm"]["fa"]).apply(null,arguments)};var _emscripten_bind_DracoInt8Array___destroy___0=Module["_emscripten_bind_DracoInt8Array___destroy___0"]=function(){return(_emscripten_bind_DracoInt8Array___destroy___0=Module["_emscripten_bind_DracoInt8Array___destroy___0"]=Module["asm"]["ga"]).apply(null,arguments)};var _emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=Module["_emscripten_bind_DracoUInt8Array_DracoUInt8Array_0"]=function(){return(_emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=Module["_emscripten_bind_DracoUInt8Array_DracoUInt8Array_0"]=Module["asm"]["ha"]).apply(null,arguments)};var _emscripten_bind_DracoUInt8Array_GetValue_1=Module["_emscripten_bind_DracoUInt8Array_GetValue_1"]=function(){return(_emscripten_bind_DracoUInt8Array_GetValue_1=Module["_emscripten_bind_DracoUInt8Array_GetValue_1"]=Module["asm"]["ia"]).apply(null,arguments)};var _emscripten_bind_DracoUInt8Array_size_0=Module["_emscripten_bind_DracoUInt8Array_size_0"]=function(){return(_emscripten_bind_DracoUInt8Array_size_0=Module["_emscripten_bind_DracoUInt8Array_size_0"]=Module["asm"]["ja"]).apply(null,arguments)};var _emscripten_bind_DracoUInt8Array___destroy___0=Module["_emscripten_bind_DracoUInt8Array___destroy___0"]=function(){return(_emscripten_bind_DracoUInt8Array___destroy___0=Module["_emscripten_bind_DracoUInt8Array___destroy___0"]=Module["asm"]["ka"]).apply(null,arguments)};var _emscripten_bind_DracoInt16Array_DracoInt16Array_0=Module["_emscripten_bind_DracoInt16Array_DracoInt16Array_0"]=function(){return(_emscripten_bind_DracoInt16Array_DracoInt16Array_0=Module["_emscripten_bind_DracoInt16Array_DracoInt16Array_0"]=Module["asm"]["la"]).apply(null,arguments)};var _emscripten_bind_DracoInt16Array_GetValue_1=Module["_emscripten_bind_DracoInt16Array_GetValue_1"]=function(){return(_emscripten_bind_DracoInt16Array_GetValue_1=Module["_emscripten_bind_DracoInt16Array_GetValue_1"]=Module["asm"]["ma"]).apply(null,arguments)};var _emscripten_bind_DracoInt16Array_size_0=Module["_emscripten_bind_DracoInt16Array_size_0"]=function(){return(_emscripten_bind_DracoInt16Array_size_0=Module["_emscripten_bind_DracoInt16Array_size_0"]=Module["asm"]["na"]).apply(null,arguments)};var _emscripten_bind_DracoInt16Array___destroy___0=Module["_emscripten_bind_DracoInt16Array___destroy___0"]=function(){return(_emscripten_bind_DracoInt16Array___destroy___0=Module["_emscripten_bind_DracoInt16Array___destroy___0"]=Module["asm"]["oa"]).apply(null,arguments)};var _emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=Module["_emscripten_bind_DracoUInt16Array_DracoUInt16Array_0"]=function(){return(_emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=Module["_emscripten_bind_DracoUInt16Array_DracoUInt16Array_0"]=Module["asm"]["pa"]).apply(null,arguments)};var _emscripten_bind_DracoUInt16Array_GetValue_1=Module["_emscripten_bind_DracoUInt16Array_GetValue_1"]=function(){return(_emscripten_bind_DracoUInt16Array_GetValue_1=Module["_emscripten_bind_DracoUInt16Array_GetValue_1"]=Module["asm"]["qa"]).apply(null,arguments)};var _emscripten_bind_DracoUInt16Array_size_0=Module["_emscripten_bind_DracoUInt16Array_size_0"]=function(){return(_emscripten_bind_DracoUInt16Array_size_0=Module["_emscripten_bind_DracoUInt16Array_size_0"]=Module["asm"]["ra"]).apply(null,arguments)};var _emscripten_bind_DracoUInt16Array___destroy___0=Module["_emscripten_bind_DracoUInt16Array___destroy___0"]=function(){return(_emscripten_bind_DracoUInt16Array___destroy___0=Module["_emscripten_bind_DracoUInt16Array___destroy___0"]=Module["asm"]["sa"]).apply(null,arguments)};var _emscripten_bind_DracoInt32Array_DracoInt32Array_0=Module["_emscripten_bind_DracoInt32Array_DracoInt32Array_0"]=function(){return(_emscripten_bind_DracoInt32Array_DracoInt32Array_0=Module["_emscripten_bind_DracoInt32Array_DracoInt32Array_0"]=Module["asm"]["ta"]).apply(null,arguments)};var _emscripten_bind_DracoInt32Array_GetValue_1=Module["_emscripten_bind_DracoInt32Array_GetValue_1"]=function(){return(_emscripten_bind_DracoInt32Array_GetValue_1=Module["_emscripten_bind_DracoInt32Array_GetValue_1"]=Module["asm"]["ua"]).apply(null,arguments)};var _emscripten_bind_DracoInt32Array_size_0=Module["_emscripten_bind_DracoInt32Array_size_0"]=function(){return(_emscripten_bind_DracoInt32Array_size_0=Module["_emscripten_bind_DracoInt32Array_size_0"]=Module["asm"]["va"]).apply(null,arguments)};var _emscripten_bind_DracoInt32Array___destroy___0=Module["_emscripten_bind_DracoInt32Array___destroy___0"]=function(){return(_emscripten_bind_DracoInt32Array___destroy___0=Module["_emscripten_bind_DracoInt32Array___destroy___0"]=Module["asm"]["wa"]).apply(null,arguments)};var _emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=Module["_emscripten_bind_DracoUInt32Array_DracoUInt32Array_0"]=function(){return(_emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=Module["_emscripten_bind_DracoUInt32Array_DracoUInt32Array_0"]=Module["asm"]["xa"]).apply(null,arguments)};var _emscripten_bind_DracoUInt32Array_GetValue_1=Module["_emscripten_bind_DracoUInt32Array_GetValue_1"]=function(){return(_emscripten_bind_DracoUInt32Array_GetValue_1=Module["_emscripten_bind_DracoUInt32Array_GetValue_1"]=Module["asm"]["ya"]).apply(null,arguments)};var _emscripten_bind_DracoUInt32Array_size_0=Module["_emscripten_bind_DracoUInt32Array_size_0"]=function(){return(_emscripten_bind_DracoUInt32Array_size_0=Module["_emscripten_bind_DracoUInt32Array_size_0"]=Module["asm"]["za"]).apply(null,arguments)};var _emscripten_bind_DracoUInt32Array___destroy___0=Module["_emscripten_bind_DracoUInt32Array___destroy___0"]=function(){return(_emscripten_bind_DracoUInt32Array___destroy___0=Module["_emscripten_bind_DracoUInt32Array___destroy___0"]=Module["asm"]["Aa"]).apply(null,arguments)};var _emscripten_bind_MetadataQuerier_MetadataQuerier_0=Module["_emscripten_bind_MetadataQuerier_MetadataQuerier_0"]=function(){return(_emscripten_bind_MetadataQuerier_MetadataQuerier_0=Module["_emscripten_bind_MetadataQuerier_MetadataQuerier_0"]=Module["asm"]["Ba"]).apply(null,arguments)};var _emscripten_bind_MetadataQuerier_HasEntry_2=Module["_emscripten_bind_MetadataQuerier_HasEntry_2"]=function(){return(_emscripten_bind_MetadataQuerier_HasEntry_2=Module["_emscripten_bind_MetadataQuerier_HasEntry_2"]=Module["asm"]["Ca"]).apply(null,arguments)};var _emscripten_bind_MetadataQuerier_GetIntEntry_2=Module["_emscripten_bind_MetadataQuerier_GetIntEntry_2"]=function(){return(_emscripten_bind_MetadataQuerier_GetIntEntry_2=Module["_emscripten_bind_MetadataQuerier_GetIntEntry_2"]=Module["asm"]["Da"]).apply(null,arguments)};var _emscripten_bind_MetadataQuerier_GetIntEntryArray_3=Module["_emscripten_bind_MetadataQuerier_GetIntEntryArray_3"]=function(){return(_emscripten_bind_MetadataQuerier_GetIntEntryArray_3=Module["_emscripten_bind_MetadataQuerier_GetIntEntryArray_3"]=Module["asm"]["Ea"]).apply(null,arguments)};var _emscripten_bind_MetadataQuerier_GetDoubleEntry_2=Module["_emscripten_bind_MetadataQuerier_GetDoubleEntry_2"]=function(){return(_emscripten_bind_MetadataQuerier_GetDoubleEntry_2=Module["_emscripten_bind_MetadataQuerier_GetDoubleEntry_2"]=Module["asm"]["Fa"]).apply(null,arguments)};var _emscripten_bind_MetadataQuerier_GetStringEntry_2=Module["_emscripten_bind_MetadataQuerier_GetStringEntry_2"]=function(){return(_emscripten_bind_MetadataQuerier_GetStringEntry_2=Module["_emscripten_bind_MetadataQuerier_GetStringEntry_2"]=Module["asm"]["Ga"]).apply(null,arguments)};var _emscripten_bind_MetadataQuerier_NumEntries_1=Module["_emscripten_bind_MetadataQuerier_NumEntries_1"]=function(){return(_emscripten_bind_MetadataQuerier_NumEntries_1=Module["_emscripten_bind_MetadataQuerier_NumEntries_1"]=Module["asm"]["Ha"]).apply(null,arguments)};var _emscripten_bind_MetadataQuerier_GetEntryName_2=Module["_emscripten_bind_MetadataQuerier_GetEntryName_2"]=function(){return(_emscripten_bind_MetadataQuerier_GetEntryName_2=Module["_emscripten_bind_MetadataQuerier_GetEntryName_2"]=Module["asm"]["Ia"]).apply(null,arguments)};var _emscripten_bind_MetadataQuerier___destroy___0=Module["_emscripten_bind_MetadataQuerier___destroy___0"]=function(){return(_emscripten_bind_MetadataQuerier___destroy___0=Module["_emscripten_bind_MetadataQuerier___destroy___0"]=Module["asm"]["Ja"]).apply(null,arguments)};var _emscripten_bind_Decoder_Decoder_0=Module["_emscripten_bind_Decoder_Decoder_0"]=function(){return(_emscripten_bind_Decoder_Decoder_0=Module["_emscripten_bind_Decoder_Decoder_0"]=Module["asm"]["Ka"]).apply(null,arguments)};var _emscripten_bind_Decoder_DecodeArrayToPointCloud_3=Module["_emscripten_bind_Decoder_DecodeArrayToPointCloud_3"]=function(){return(_emscripten_bind_Decoder_DecodeArrayToPointCloud_3=Module["_emscripten_bind_Decoder_DecodeArrayToPointCloud_3"]=Module["asm"]["La"]).apply(null,arguments)};var _emscripten_bind_Decoder_DecodeArrayToMesh_3=Module["_emscripten_bind_Decoder_DecodeArrayToMesh_3"]=function(){return(_emscripten_bind_Decoder_DecodeArrayToMesh_3=Module["_emscripten_bind_Decoder_DecodeArrayToMesh_3"]=Module["asm"]["Ma"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeId_2=Module["_emscripten_bind_Decoder_GetAttributeId_2"]=function(){return(_emscripten_bind_Decoder_GetAttributeId_2=Module["_emscripten_bind_Decoder_GetAttributeId_2"]=Module["asm"]["Na"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeIdByName_2=Module["_emscripten_bind_Decoder_GetAttributeIdByName_2"]=function(){return(_emscripten_bind_Decoder_GetAttributeIdByName_2=Module["_emscripten_bind_Decoder_GetAttributeIdByName_2"]=Module["asm"]["Oa"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=Module["_emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=Module["_emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3"]=Module["asm"]["Pa"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttribute_2=Module["_emscripten_bind_Decoder_GetAttribute_2"]=function(){return(_emscripten_bind_Decoder_GetAttribute_2=Module["_emscripten_bind_Decoder_GetAttribute_2"]=Module["asm"]["Qa"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeByUniqueId_2=Module["_emscripten_bind_Decoder_GetAttributeByUniqueId_2"]=function(){return(_emscripten_bind_Decoder_GetAttributeByUniqueId_2=Module["_emscripten_bind_Decoder_GetAttributeByUniqueId_2"]=Module["asm"]["Ra"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetMetadata_1=Module["_emscripten_bind_Decoder_GetMetadata_1"]=function(){return(_emscripten_bind_Decoder_GetMetadata_1=Module["_emscripten_bind_Decoder_GetMetadata_1"]=Module["asm"]["Sa"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeMetadata_2=Module["_emscripten_bind_Decoder_GetAttributeMetadata_2"]=function(){return(_emscripten_bind_Decoder_GetAttributeMetadata_2=Module["_emscripten_bind_Decoder_GetAttributeMetadata_2"]=Module["asm"]["Ta"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetFaceFromMesh_3=Module["_emscripten_bind_Decoder_GetFaceFromMesh_3"]=function(){return(_emscripten_bind_Decoder_GetFaceFromMesh_3=Module["_emscripten_bind_Decoder_GetFaceFromMesh_3"]=Module["asm"]["Ua"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=Module["_emscripten_bind_Decoder_GetTriangleStripsFromMesh_2"]=function(){return(_emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=Module["_emscripten_bind_Decoder_GetTriangleStripsFromMesh_2"]=Module["asm"]["Va"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetTrianglesUInt16Array_3=Module["_emscripten_bind_Decoder_GetTrianglesUInt16Array_3"]=function(){return(_emscripten_bind_Decoder_GetTrianglesUInt16Array_3=Module["_emscripten_bind_Decoder_GetTrianglesUInt16Array_3"]=Module["asm"]["Wa"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetTrianglesUInt32Array_3=Module["_emscripten_bind_Decoder_GetTrianglesUInt32Array_3"]=function(){return(_emscripten_bind_Decoder_GetTrianglesUInt32Array_3=Module["_emscripten_bind_Decoder_GetTrianglesUInt32Array_3"]=Module["asm"]["Xa"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeFloat_3=Module["_emscripten_bind_Decoder_GetAttributeFloat_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeFloat_3=Module["_emscripten_bind_Decoder_GetAttributeFloat_3"]=Module["asm"]["Ya"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3"]=Module["asm"]["Za"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeIntForAllPoints_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeIntForAllPoints_3"]=Module["asm"]["_a"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3"]=Module["asm"]["$a"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3"]=Module["asm"]["ab"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3"]=Module["asm"]["bb"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3"]=Module["asm"]["cb"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3"]=Module["asm"]["db"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3"]=function(){return(_emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=Module["_emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3"]=Module["asm"]["eb"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=Module["_emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5"]=function(){return(_emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=Module["_emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5"]=Module["asm"]["fb"]).apply(null,arguments)};var _emscripten_bind_Decoder_SkipAttributeTransform_1=Module["_emscripten_bind_Decoder_SkipAttributeTransform_1"]=function(){return(_emscripten_bind_Decoder_SkipAttributeTransform_1=Module["_emscripten_bind_Decoder_SkipAttributeTransform_1"]=Module["asm"]["gb"]).apply(null,arguments)};var _emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=Module["_emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1"]=function(){return(_emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=Module["_emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1"]=Module["asm"]["hb"]).apply(null,arguments)};var _emscripten_bind_Decoder_DecodeBufferToPointCloud_2=Module["_emscripten_bind_Decoder_DecodeBufferToPointCloud_2"]=function(){return(_emscripten_bind_Decoder_DecodeBufferToPointCloud_2=Module["_emscripten_bind_Decoder_DecodeBufferToPointCloud_2"]=Module["asm"]["ib"]).apply(null,arguments)};var _emscripten_bind_Decoder_DecodeBufferToMesh_2=Module["_emscripten_bind_Decoder_DecodeBufferToMesh_2"]=function(){return(_emscripten_bind_Decoder_DecodeBufferToMesh_2=Module["_emscripten_bind_Decoder_DecodeBufferToMesh_2"]=Module["asm"]["jb"]).apply(null,arguments)};var _emscripten_bind_Decoder___destroy___0=Module["_emscripten_bind_Decoder___destroy___0"]=function(){return(_emscripten_bind_Decoder___destroy___0=Module["_emscripten_bind_Decoder___destroy___0"]=Module["asm"]["kb"]).apply(null,arguments)};var _emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=Module["_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM"]=function(){return(_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=Module["_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM"]=Module["asm"]["lb"]).apply(null,arguments)};var _emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=Module["_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM"]=function(){return(_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=Module["_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM"]=Module["asm"]["mb"]).apply(null,arguments)};var _emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=Module["_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM"]=function(){return(_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=Module["_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM"]=Module["asm"]["nb"]).apply(null,arguments)};var _emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=Module["_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM"]=function(){return(_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=Module["_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM"]=Module["asm"]["ob"]).apply(null,arguments)};var _emscripten_enum_draco_GeometryAttribute_Type_INVALID=Module["_emscripten_enum_draco_GeometryAttribute_Type_INVALID"]=function(){return(_emscripten_enum_draco_GeometryAttribute_Type_INVALID=Module["_emscripten_enum_draco_GeometryAttribute_Type_INVALID"]=Module["asm"]["pb"]).apply(null,arguments)};var _emscripten_enum_draco_GeometryAttribute_Type_POSITION=Module["_emscripten_enum_draco_GeometryAttribute_Type_POSITION"]=function(){return(_emscripten_enum_draco_GeometryAttribute_Type_POSITION=Module["_emscripten_enum_draco_GeometryAttribute_Type_POSITION"]=Module["asm"]["qb"]).apply(null,arguments)};var _emscripten_enum_draco_GeometryAttribute_Type_NORMAL=Module["_emscripten_enum_draco_GeometryAttribute_Type_NORMAL"]=function(){return(_emscripten_enum_draco_GeometryAttribute_Type_NORMAL=Module["_emscripten_enum_draco_GeometryAttribute_Type_NORMAL"]=Module["asm"]["rb"]).apply(null,arguments)};var _emscripten_enum_draco_GeometryAttribute_Type_COLOR=Module["_emscripten_enum_draco_GeometryAttribute_Type_COLOR"]=function(){return(_emscripten_enum_draco_GeometryAttribute_Type_COLOR=Module["_emscripten_enum_draco_GeometryAttribute_Type_COLOR"]=Module["asm"]["sb"]).apply(null,arguments)};var _emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=Module["_emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD"]=function(){return(_emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=Module["_emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD"]=Module["asm"]["tb"]).apply(null,arguments)};var _emscripten_enum_draco_GeometryAttribute_Type_GENERIC=Module["_emscripten_enum_draco_GeometryAttribute_Type_GENERIC"]=function(){return(_emscripten_enum_draco_GeometryAttribute_Type_GENERIC=Module["_emscripten_enum_draco_GeometryAttribute_Type_GENERIC"]=Module["asm"]["ub"]).apply(null,arguments)};var _emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=Module["_emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE"]=function(){return(_emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=Module["_emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE"]=Module["asm"]["vb"]).apply(null,arguments)};var _emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=Module["_emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD"]=function(){return(_emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=Module["_emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD"]=Module["asm"]["wb"]).apply(null,arguments)};var _emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=Module["_emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH"]=function(){return(_emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=Module["_emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH"]=Module["asm"]["xb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_INVALID=Module["_emscripten_enum_draco_DataType_DT_INVALID"]=function(){return(_emscripten_enum_draco_DataType_DT_INVALID=Module["_emscripten_enum_draco_DataType_DT_INVALID"]=Module["asm"]["yb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_INT8=Module["_emscripten_enum_draco_DataType_DT_INT8"]=function(){return(_emscripten_enum_draco_DataType_DT_INT8=Module["_emscripten_enum_draco_DataType_DT_INT8"]=Module["asm"]["zb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_UINT8=Module["_emscripten_enum_draco_DataType_DT_UINT8"]=function(){return(_emscripten_enum_draco_DataType_DT_UINT8=Module["_emscripten_enum_draco_DataType_DT_UINT8"]=Module["asm"]["Ab"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_INT16=Module["_emscripten_enum_draco_DataType_DT_INT16"]=function(){return(_emscripten_enum_draco_DataType_DT_INT16=Module["_emscripten_enum_draco_DataType_DT_INT16"]=Module["asm"]["Bb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_UINT16=Module["_emscripten_enum_draco_DataType_DT_UINT16"]=function(){return(_emscripten_enum_draco_DataType_DT_UINT16=Module["_emscripten_enum_draco_DataType_DT_UINT16"]=Module["asm"]["Cb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_INT32=Module["_emscripten_enum_draco_DataType_DT_INT32"]=function(){return(_emscripten_enum_draco_DataType_DT_INT32=Module["_emscripten_enum_draco_DataType_DT_INT32"]=Module["asm"]["Db"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_UINT32=Module["_emscripten_enum_draco_DataType_DT_UINT32"]=function(){return(_emscripten_enum_draco_DataType_DT_UINT32=Module["_emscripten_enum_draco_DataType_DT_UINT32"]=Module["asm"]["Eb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_INT64=Module["_emscripten_enum_draco_DataType_DT_INT64"]=function(){return(_emscripten_enum_draco_DataType_DT_INT64=Module["_emscripten_enum_draco_DataType_DT_INT64"]=Module["asm"]["Fb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_UINT64=Module["_emscripten_enum_draco_DataType_DT_UINT64"]=function(){return(_emscripten_enum_draco_DataType_DT_UINT64=Module["_emscripten_enum_draco_DataType_DT_UINT64"]=Module["asm"]["Gb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_FLOAT32=Module["_emscripten_enum_draco_DataType_DT_FLOAT32"]=function(){return(_emscripten_enum_draco_DataType_DT_FLOAT32=Module["_emscripten_enum_draco_DataType_DT_FLOAT32"]=Module["asm"]["Hb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_FLOAT64=Module["_emscripten_enum_draco_DataType_DT_FLOAT64"]=function(){return(_emscripten_enum_draco_DataType_DT_FLOAT64=Module["_emscripten_enum_draco_DataType_DT_FLOAT64"]=Module["asm"]["Ib"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_BOOL=Module["_emscripten_enum_draco_DataType_DT_BOOL"]=function(){return(_emscripten_enum_draco_DataType_DT_BOOL=Module["_emscripten_enum_draco_DataType_DT_BOOL"]=Module["asm"]["Jb"]).apply(null,arguments)};var _emscripten_enum_draco_DataType_DT_TYPES_COUNT=Module["_emscripten_enum_draco_DataType_DT_TYPES_COUNT"]=function(){return(_emscripten_enum_draco_DataType_DT_TYPES_COUNT=Module["_emscripten_enum_draco_DataType_DT_TYPES_COUNT"]=Module["asm"]["Kb"]).apply(null,arguments)};var _emscripten_enum_draco_StatusCode_OK=Module["_emscripten_enum_draco_StatusCode_OK"]=function(){return(_emscripten_enum_draco_StatusCode_OK=Module["_emscripten_enum_draco_StatusCode_OK"]=Module["asm"]["Lb"]).apply(null,arguments)};var _emscripten_enum_draco_StatusCode_DRACO_ERROR=Module["_emscripten_enum_draco_StatusCode_DRACO_ERROR"]=function(){return(_emscripten_enum_draco_StatusCode_DRACO_ERROR=Module["_emscripten_enum_draco_StatusCode_DRACO_ERROR"]=Module["asm"]["Mb"]).apply(null,arguments)};var _emscripten_enum_draco_StatusCode_IO_ERROR=Module["_emscripten_enum_draco_StatusCode_IO_ERROR"]=function(){return(_emscripten_enum_draco_StatusCode_IO_ERROR=Module["_emscripten_enum_draco_StatusCode_IO_ERROR"]=Module["asm"]["Nb"]).apply(null,arguments)};var _emscripten_enum_draco_StatusCode_INVALID_PARAMETER=Module["_emscripten_enum_draco_StatusCode_INVALID_PARAMETER"]=function(){return(_emscripten_enum_draco_StatusCode_INVALID_PARAMETER=Module["_emscripten_enum_draco_StatusCode_INVALID_PARAMETER"]=Module["asm"]["Ob"]).apply(null,arguments)};var _emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=Module["_emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION"]=function(){return(_emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=Module["_emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION"]=Module["asm"]["Pb"]).apply(null,arguments)};var _emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=Module["_emscripten_enum_draco_StatusCode_UNKNOWN_VERSION"]=function(){return(_emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=Module["_emscripten_enum_draco_StatusCode_UNKNOWN_VERSION"]=Module["asm"]["Qb"]).apply(null,arguments)};var _malloc=Module["_malloc"]=function(){return(_malloc=Module["_malloc"]=Module["asm"]["Rb"]).apply(null,arguments)};var _free=Module["_free"]=function(){return(_free=Module["_free"]=Module["asm"]["Sb"]).apply(null,arguments)};var calledRun;function ExitStatus(status){this.name="ExitStatus";this.message="Program terminated with exit("+status+")";this.status=status}dependenciesFulfilled=function runCaller(){if(!calledRun)run();if(!calledRun)dependenciesFulfilled=runCaller};function run(args){args=args||arguments_;if(runDependencies>0){return}preRun();if(runDependencies>0){return}function doRun(){if(calledRun)return;calledRun=true;Module["calledRun"]=true;if(ABORT)return;initRuntime();readyPromiseResolve(Module);if(Module["onRuntimeInitialized"])Module["onRuntimeInitialized"]();postRun()}if(Module["setStatus"]){Module["setStatus"]("Running...");setTimeout(function(){setTimeout(function(){Module["setStatus"]("")},1);doRun()},1)}else{doRun()}}Module["run"]=run;if(Module["preInit"]){if(typeof Module["preInit"]=="function")Module["preInit"]=[Module["preInit"]];while(Module["preInit"].length>0){Module["preInit"].pop()()}}run();function WrapperObject(){}WrapperObject.prototype=Object.create(WrapperObject.prototype);WrapperObject.prototype.constructor=WrapperObject;WrapperObject.prototype.__class__=WrapperObject;WrapperObject.__cache__={};Module["WrapperObject"]=WrapperObject;function getCache(__class__){return(__class__||WrapperObject).__cache__}Module["getCache"]=getCache;function wrapPointer(ptr,__class__){var cache=getCache(__class__);var ret=cache[ptr];if(ret)return ret;ret=Object.create((__class__||WrapperObject).prototype);ret.ptr=ptr;return cache[ptr]=ret}Module["wrapPointer"]=wrapPointer;function castObject(obj,__class__){return wrapPointer(obj.ptr,__class__)}Module["castObject"]=castObject;Module["NULL"]=wrapPointer(0);function destroy(obj){if(!obj["__destroy__"])throw"Error: Cannot destroy object. (Did you create it yourself?)";obj["__destroy__"]();delete getCache(obj.__class__)[obj.ptr]}Module["destroy"]=destroy;function compare(obj1,obj2){return obj1.ptr===obj2.ptr}Module["compare"]=compare;function getPointer(obj){return obj.ptr}Module["getPointer"]=getPointer;function getClass(obj){return obj.__class__}Module["getClass"]=getClass;var ensureCache={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(ensureCache.needed){for(var i=0;i<ensureCache.temps.length;i++){Module["_free"](ensureCache.temps[i])}ensureCache.temps.length=0;Module["_free"](ensureCache.buffer);ensureCache.buffer=0;ensureCache.size+=ensureCache.needed;ensureCache.needed=0}if(!ensureCache.buffer){ensureCache.size+=128;ensureCache.buffer=Module["_malloc"](ensureCache.size);assert(ensureCache.buffer)}ensureCache.pos=0},alloc:function(array,view){assert(ensureCache.buffer);var bytes=view.BYTES_PER_ELEMENT;var len=array.length*bytes;len=len+7&-8;var ret;if(ensureCache.pos+len>=ensureCache.size){assert(len>0);ensureCache.needed+=len;ret=Module["_malloc"](len);ensureCache.temps.push(ret)}else{ret=ensureCache.buffer+ensureCache.pos;ensureCache.pos+=len}return ret},copy:function(array,view,offset){offset>>>=0;var bytes=view.BYTES_PER_ELEMENT;switch(bytes){case 2:offset>>>=1;break;case 4:offset>>>=2;break;case 8:offset>>>=3;break}for(var i=0;i<array.length;i++){view[offset+i]=array[i]}}};function ensureString(value){if(typeof value==="string"){var intArray=intArrayFromString(value);var offset=ensureCache.alloc(intArray,HEAP8);ensureCache.copy(intArray,HEAP8,offset);return offset}return value}function ensureInt8(value){if(typeof value==="object"){var offset=ensureCache.alloc(value,HEAP8);ensureCache.copy(value,HEAP8,offset);return offset}return value}function VoidPtr(){throw"cannot construct a VoidPtr, no constructor in IDL"}VoidPtr.prototype=Object.create(WrapperObject.prototype);VoidPtr.prototype.constructor=VoidPtr;VoidPtr.prototype.__class__=VoidPtr;VoidPtr.__cache__={};Module["VoidPtr"]=VoidPtr;VoidPtr.prototype["__destroy__"]=VoidPtr.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_VoidPtr___destroy___0(self)};function DecoderBuffer(){this.ptr=_emscripten_bind_DecoderBuffer_DecoderBuffer_0();getCache(DecoderBuffer)[this.ptr]=this}DecoderBuffer.prototype=Object.create(WrapperObject.prototype);DecoderBuffer.prototype.constructor=DecoderBuffer;DecoderBuffer.prototype.__class__=DecoderBuffer;DecoderBuffer.__cache__={};Module["DecoderBuffer"]=DecoderBuffer;DecoderBuffer.prototype["Init"]=DecoderBuffer.prototype.Init=function(data,data_size){var self=this.ptr;ensureCache.prepare();if(typeof data=="object"){data=ensureInt8(data)}if(data_size&&typeof data_size==="object")data_size=data_size.ptr;_emscripten_bind_DecoderBuffer_Init_2(self,data,data_size)};DecoderBuffer.prototype["__destroy__"]=DecoderBuffer.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_DecoderBuffer___destroy___0(self)};function AttributeTransformData(){this.ptr=_emscripten_bind_AttributeTransformData_AttributeTransformData_0();getCache(AttributeTransformData)[this.ptr]=this}AttributeTransformData.prototype=Object.create(WrapperObject.prototype);AttributeTransformData.prototype.constructor=AttributeTransformData;AttributeTransformData.prototype.__class__=AttributeTransformData;AttributeTransformData.__cache__={};Module["AttributeTransformData"]=AttributeTransformData;AttributeTransformData.prototype["transform_type"]=AttributeTransformData.prototype.transform_type=function(){var self=this.ptr;return _emscripten_bind_AttributeTransformData_transform_type_0(self)};AttributeTransformData.prototype["__destroy__"]=AttributeTransformData.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_AttributeTransformData___destroy___0(self)};function GeometryAttribute(){this.ptr=_emscripten_bind_GeometryAttribute_GeometryAttribute_0();getCache(GeometryAttribute)[this.ptr]=this}GeometryAttribute.prototype=Object.create(WrapperObject.prototype);GeometryAttribute.prototype.constructor=GeometryAttribute;GeometryAttribute.prototype.__class__=GeometryAttribute;GeometryAttribute.__cache__={};Module["GeometryAttribute"]=GeometryAttribute;GeometryAttribute.prototype["__destroy__"]=GeometryAttribute.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_GeometryAttribute___destroy___0(self)};function PointAttribute(){this.ptr=_emscripten_bind_PointAttribute_PointAttribute_0();getCache(PointAttribute)[this.ptr]=this}PointAttribute.prototype=Object.create(WrapperObject.prototype);PointAttribute.prototype.constructor=PointAttribute;PointAttribute.prototype.__class__=PointAttribute;PointAttribute.__cache__={};Module["PointAttribute"]=PointAttribute;PointAttribute.prototype["size"]=PointAttribute.prototype.size=function(){var self=this.ptr;return _emscripten_bind_PointAttribute_size_0(self)};PointAttribute.prototype["GetAttributeTransformData"]=PointAttribute.prototype.GetAttributeTransformData=function(){var self=this.ptr;return wrapPointer(_emscripten_bind_PointAttribute_GetAttributeTransformData_0(self),AttributeTransformData)};PointAttribute.prototype["attribute_type"]=PointAttribute.prototype.attribute_type=function(){var self=this.ptr;return _emscripten_bind_PointAttribute_attribute_type_0(self)};PointAttribute.prototype["data_type"]=PointAttribute.prototype.data_type=function(){var self=this.ptr;return _emscripten_bind_PointAttribute_data_type_0(self)};PointAttribute.prototype["num_components"]=PointAttribute.prototype.num_components=function(){var self=this.ptr;return _emscripten_bind_PointAttribute_num_components_0(self)};PointAttribute.prototype["normalized"]=PointAttribute.prototype.normalized=function(){var self=this.ptr;return!!_emscripten_bind_PointAttribute_normalized_0(self)};PointAttribute.prototype["byte_stride"]=PointAttribute.prototype.byte_stride=function(){var self=this.ptr;return _emscripten_bind_PointAttribute_byte_stride_0(self)};PointAttribute.prototype["byte_offset"]=PointAttribute.prototype.byte_offset=function(){var self=this.ptr;return _emscripten_bind_PointAttribute_byte_offset_0(self)};PointAttribute.prototype["unique_id"]=PointAttribute.prototype.unique_id=function(){var self=this.ptr;return _emscripten_bind_PointAttribute_unique_id_0(self)};PointAttribute.prototype["__destroy__"]=PointAttribute.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_PointAttribute___destroy___0(self)};function AttributeQuantizationTransform(){this.ptr=_emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0();getCache(AttributeQuantizationTransform)[this.ptr]=this}AttributeQuantizationTransform.prototype=Object.create(WrapperObject.prototype);AttributeQuantizationTransform.prototype.constructor=AttributeQuantizationTransform;AttributeQuantizationTransform.prototype.__class__=AttributeQuantizationTransform;AttributeQuantizationTransform.__cache__={};Module["AttributeQuantizationTransform"]=AttributeQuantizationTransform;AttributeQuantizationTransform.prototype["InitFromAttribute"]=AttributeQuantizationTransform.prototype.InitFromAttribute=function(att){var self=this.ptr;if(att&&typeof att==="object")att=att.ptr;return!!_emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1(self,att)};AttributeQuantizationTransform.prototype["quantization_bits"]=AttributeQuantizationTransform.prototype.quantization_bits=function(){var self=this.ptr;return _emscripten_bind_AttributeQuantizationTransform_quantization_bits_0(self)};AttributeQuantizationTransform.prototype["min_value"]=AttributeQuantizationTransform.prototype.min_value=function(axis){var self=this.ptr;if(axis&&typeof axis==="object")axis=axis.ptr;return _emscripten_bind_AttributeQuantizationTransform_min_value_1(self,axis)};AttributeQuantizationTransform.prototype["range"]=AttributeQuantizationTransform.prototype.range=function(){var self=this.ptr;return _emscripten_bind_AttributeQuantizationTransform_range_0(self)};AttributeQuantizationTransform.prototype["__destroy__"]=AttributeQuantizationTransform.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_AttributeQuantizationTransform___destroy___0(self)};function AttributeOctahedronTransform(){this.ptr=_emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0();getCache(AttributeOctahedronTransform)[this.ptr]=this}AttributeOctahedronTransform.prototype=Object.create(WrapperObject.prototype);AttributeOctahedronTransform.prototype.constructor=AttributeOctahedronTransform;AttributeOctahedronTransform.prototype.__class__=AttributeOctahedronTransform;AttributeOctahedronTransform.__cache__={};Module["AttributeOctahedronTransform"]=AttributeOctahedronTransform;AttributeOctahedronTransform.prototype["InitFromAttribute"]=AttributeOctahedronTransform.prototype.InitFromAttribute=function(att){var self=this.ptr;if(att&&typeof att==="object")att=att.ptr;return!!_emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1(self,att)};AttributeOctahedronTransform.prototype["quantization_bits"]=AttributeOctahedronTransform.prototype.quantization_bits=function(){var self=this.ptr;return _emscripten_bind_AttributeOctahedronTransform_quantization_bits_0(self)};AttributeOctahedronTransform.prototype["__destroy__"]=AttributeOctahedronTransform.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_AttributeOctahedronTransform___destroy___0(self)};function PointCloud(){this.ptr=_emscripten_bind_PointCloud_PointCloud_0();getCache(PointCloud)[this.ptr]=this}PointCloud.prototype=Object.create(WrapperObject.prototype);PointCloud.prototype.constructor=PointCloud;PointCloud.prototype.__class__=PointCloud;PointCloud.__cache__={};Module["PointCloud"]=PointCloud;PointCloud.prototype["num_attributes"]=PointCloud.prototype.num_attributes=function(){var self=this.ptr;return _emscripten_bind_PointCloud_num_attributes_0(self)};PointCloud.prototype["num_points"]=PointCloud.prototype.num_points=function(){var self=this.ptr;return _emscripten_bind_PointCloud_num_points_0(self)};PointCloud.prototype["__destroy__"]=PointCloud.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_PointCloud___destroy___0(self)};function Mesh(){this.ptr=_emscripten_bind_Mesh_Mesh_0();getCache(Mesh)[this.ptr]=this}Mesh.prototype=Object.create(WrapperObject.prototype);Mesh.prototype.constructor=Mesh;Mesh.prototype.__class__=Mesh;Mesh.__cache__={};Module["Mesh"]=Mesh;Mesh.prototype["num_faces"]=Mesh.prototype.num_faces=function(){var self=this.ptr;return _emscripten_bind_Mesh_num_faces_0(self)};Mesh.prototype["num_attributes"]=Mesh.prototype.num_attributes=function(){var self=this.ptr;return _emscripten_bind_Mesh_num_attributes_0(self)};Mesh.prototype["num_points"]=Mesh.prototype.num_points=function(){var self=this.ptr;return _emscripten_bind_Mesh_num_points_0(self)};Mesh.prototype["__destroy__"]=Mesh.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_Mesh___destroy___0(self)};function Metadata(){this.ptr=_emscripten_bind_Metadata_Metadata_0();getCache(Metadata)[this.ptr]=this}Metadata.prototype=Object.create(WrapperObject.prototype);Metadata.prototype.constructor=Metadata;Metadata.prototype.__class__=Metadata;Metadata.__cache__={};Module["Metadata"]=Metadata;Metadata.prototype["__destroy__"]=Metadata.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_Metadata___destroy___0(self)};function Status(){throw"cannot construct a Status, no constructor in IDL"}Status.prototype=Object.create(WrapperObject.prototype);Status.prototype.constructor=Status;Status.prototype.__class__=Status;Status.__cache__={};Module["Status"]=Status;Status.prototype["code"]=Status.prototype.code=function(){var self=this.ptr;return _emscripten_bind_Status_code_0(self)};Status.prototype["ok"]=Status.prototype.ok=function(){var self=this.ptr;return!!_emscripten_bind_Status_ok_0(self)};Status.prototype["error_msg"]=Status.prototype.error_msg=function(){var self=this.ptr;return UTF8ToString(_emscripten_bind_Status_error_msg_0(self))};Status.prototype["__destroy__"]=Status.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_Status___destroy___0(self)};function DracoFloat32Array(){this.ptr=_emscripten_bind_DracoFloat32Array_DracoFloat32Array_0();getCache(DracoFloat32Array)[this.ptr]=this}DracoFloat32Array.prototype=Object.create(WrapperObject.prototype);DracoFloat32Array.prototype.constructor=DracoFloat32Array;DracoFloat32Array.prototype.__class__=DracoFloat32Array;DracoFloat32Array.__cache__={};Module["DracoFloat32Array"]=DracoFloat32Array;DracoFloat32Array.prototype["GetValue"]=DracoFloat32Array.prototype.GetValue=function(index){var self=this.ptr;if(index&&typeof index==="object")index=index.ptr;return _emscripten_bind_DracoFloat32Array_GetValue_1(self,index)};DracoFloat32Array.prototype["size"]=DracoFloat32Array.prototype.size=function(){var self=this.ptr;return _emscripten_bind_DracoFloat32Array_size_0(self)};DracoFloat32Array.prototype["__destroy__"]=DracoFloat32Array.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_DracoFloat32Array___destroy___0(self)};function DracoInt8Array(){this.ptr=_emscripten_bind_DracoInt8Array_DracoInt8Array_0();getCache(DracoInt8Array)[this.ptr]=this}DracoInt8Array.prototype=Object.create(WrapperObject.prototype);DracoInt8Array.prototype.constructor=DracoInt8Array;DracoInt8Array.prototype.__class__=DracoInt8Array;DracoInt8Array.__cache__={};Module["DracoInt8Array"]=DracoInt8Array;DracoInt8Array.prototype["GetValue"]=DracoInt8Array.prototype.GetValue=function(index){var self=this.ptr;if(index&&typeof index==="object")index=index.ptr;return _emscripten_bind_DracoInt8Array_GetValue_1(self,index)};DracoInt8Array.prototype["size"]=DracoInt8Array.prototype.size=function(){var self=this.ptr;return _emscripten_bind_DracoInt8Array_size_0(self)};DracoInt8Array.prototype["__destroy__"]=DracoInt8Array.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_DracoInt8Array___destroy___0(self)};function DracoUInt8Array(){this.ptr=_emscripten_bind_DracoUInt8Array_DracoUInt8Array_0();getCache(DracoUInt8Array)[this.ptr]=this}DracoUInt8Array.prototype=Object.create(WrapperObject.prototype);DracoUInt8Array.prototype.constructor=DracoUInt8Array;DracoUInt8Array.prototype.__class__=DracoUInt8Array;DracoUInt8Array.__cache__={};Module["DracoUInt8Array"]=DracoUInt8Array;DracoUInt8Array.prototype["GetValue"]=DracoUInt8Array.prototype.GetValue=function(index){var self=this.ptr;if(index&&typeof index==="object")index=index.ptr;return _emscripten_bind_DracoUInt8Array_GetValue_1(self,index)};DracoUInt8Array.prototype["size"]=DracoUInt8Array.prototype.size=function(){var self=this.ptr;return _emscripten_bind_DracoUInt8Array_size_0(self)};DracoUInt8Array.prototype["__destroy__"]=DracoUInt8Array.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_DracoUInt8Array___destroy___0(self)};function DracoInt16Array(){this.ptr=_emscripten_bind_DracoInt16Array_DracoInt16Array_0();getCache(DracoInt16Array)[this.ptr]=this}DracoInt16Array.prototype=Object.create(WrapperObject.prototype);DracoInt16Array.prototype.constructor=DracoInt16Array;DracoInt16Array.prototype.__class__=DracoInt16Array;DracoInt16Array.__cache__={};Module["DracoInt16Array"]=DracoInt16Array;DracoInt16Array.prototype["GetValue"]=DracoInt16Array.prototype.GetValue=function(index){var self=this.ptr;if(index&&typeof index==="object")index=index.ptr;return _emscripten_bind_DracoInt16Array_GetValue_1(self,index)};DracoInt16Array.prototype["size"]=DracoInt16Array.prototype.size=function(){var self=this.ptr;return _emscripten_bind_DracoInt16Array_size_0(self)};DracoInt16Array.prototype["__destroy__"]=DracoInt16Array.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_DracoInt16Array___destroy___0(self)};function DracoUInt16Array(){this.ptr=_emscripten_bind_DracoUInt16Array_DracoUInt16Array_0();getCache(DracoUInt16Array)[this.ptr]=this}DracoUInt16Array.prototype=Object.create(WrapperObject.prototype);DracoUInt16Array.prototype.constructor=DracoUInt16Array;DracoUInt16Array.prototype.__class__=DracoUInt16Array;DracoUInt16Array.__cache__={};Module["DracoUInt16Array"]=DracoUInt16Array;DracoUInt16Array.prototype["GetValue"]=DracoUInt16Array.prototype.GetValue=function(index){var self=this.ptr;if(index&&typeof index==="object")index=index.ptr;return _emscripten_bind_DracoUInt16Array_GetValue_1(self,index)};DracoUInt16Array.prototype["size"]=DracoUInt16Array.prototype.size=function(){var self=this.ptr;return _emscripten_bind_DracoUInt16Array_size_0(self)};DracoUInt16Array.prototype["__destroy__"]=DracoUInt16Array.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_DracoUInt16Array___destroy___0(self)};function DracoInt32Array(){this.ptr=_emscripten_bind_DracoInt32Array_DracoInt32Array_0();getCache(DracoInt32Array)[this.ptr]=this}DracoInt32Array.prototype=Object.create(WrapperObject.prototype);DracoInt32Array.prototype.constructor=DracoInt32Array;DracoInt32Array.prototype.__class__=DracoInt32Array;DracoInt32Array.__cache__={};Module["DracoInt32Array"]=DracoInt32Array;DracoInt32Array.prototype["GetValue"]=DracoInt32Array.prototype.GetValue=function(index){var self=this.ptr;if(index&&typeof index==="object")index=index.ptr;return _emscripten_bind_DracoInt32Array_GetValue_1(self,index)};DracoInt32Array.prototype["size"]=DracoInt32Array.prototype.size=function(){var self=this.ptr;return _emscripten_bind_DracoInt32Array_size_0(self)};DracoInt32Array.prototype["__destroy__"]=DracoInt32Array.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_DracoInt32Array___destroy___0(self)};function DracoUInt32Array(){this.ptr=_emscripten_bind_DracoUInt32Array_DracoUInt32Array_0();getCache(DracoUInt32Array)[this.ptr]=this}DracoUInt32Array.prototype=Object.create(WrapperObject.prototype);DracoUInt32Array.prototype.constructor=DracoUInt32Array;DracoUInt32Array.prototype.__class__=DracoUInt32Array;DracoUInt32Array.__cache__={};Module["DracoUInt32Array"]=DracoUInt32Array;DracoUInt32Array.prototype["GetValue"]=DracoUInt32Array.prototype.GetValue=function(index){var self=this.ptr;if(index&&typeof index==="object")index=index.ptr;return _emscripten_bind_DracoUInt32Array_GetValue_1(self,index)};DracoUInt32Array.prototype["size"]=DracoUInt32Array.prototype.size=function(){var self=this.ptr;return _emscripten_bind_DracoUInt32Array_size_0(self)};DracoUInt32Array.prototype["__destroy__"]=DracoUInt32Array.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_DracoUInt32Array___destroy___0(self)};function MetadataQuerier(){this.ptr=_emscripten_bind_MetadataQuerier_MetadataQuerier_0();getCache(MetadataQuerier)[this.ptr]=this}MetadataQuerier.prototype=Object.create(WrapperObject.prototype);MetadataQuerier.prototype.constructor=MetadataQuerier;MetadataQuerier.prototype.__class__=MetadataQuerier;MetadataQuerier.__cache__={};Module["MetadataQuerier"]=MetadataQuerier;MetadataQuerier.prototype["HasEntry"]=MetadataQuerier.prototype.HasEntry=function(metadata,entry_name){var self=this.ptr;ensureCache.prepare();if(metadata&&typeof metadata==="object")metadata=metadata.ptr;if(entry_name&&typeof entry_name==="object")entry_name=entry_name.ptr;else entry_name=ensureString(entry_name);return!!_emscripten_bind_MetadataQuerier_HasEntry_2(self,metadata,entry_name)};MetadataQuerier.prototype["GetIntEntry"]=MetadataQuerier.prototype.GetIntEntry=function(metadata,entry_name){var self=this.ptr;ensureCache.prepare();if(metadata&&typeof metadata==="object")metadata=metadata.ptr;if(entry_name&&typeof entry_name==="object")entry_name=entry_name.ptr;else entry_name=ensureString(entry_name);return _emscripten_bind_MetadataQuerier_GetIntEntry_2(self,metadata,entry_name)};MetadataQuerier.prototype["GetIntEntryArray"]=MetadataQuerier.prototype.GetIntEntryArray=function(metadata,entry_name,out_values){var self=this.ptr;ensureCache.prepare();if(metadata&&typeof metadata==="object")metadata=metadata.ptr;if(entry_name&&typeof entry_name==="object")entry_name=entry_name.ptr;else entry_name=ensureString(entry_name);if(out_values&&typeof out_values==="object")out_values=out_values.ptr;_emscripten_bind_MetadataQuerier_GetIntEntryArray_3(self,metadata,entry_name,out_values)};MetadataQuerier.prototype["GetDoubleEntry"]=MetadataQuerier.prototype.GetDoubleEntry=function(metadata,entry_name){var self=this.ptr;ensureCache.prepare();if(metadata&&typeof metadata==="object")metadata=metadata.ptr;if(entry_name&&typeof entry_name==="object")entry_name=entry_name.ptr;else entry_name=ensureString(entry_name);return _emscripten_bind_MetadataQuerier_GetDoubleEntry_2(self,metadata,entry_name)};MetadataQuerier.prototype["GetStringEntry"]=MetadataQuerier.prototype.GetStringEntry=function(metadata,entry_name){var self=this.ptr;ensureCache.prepare();if(metadata&&typeof metadata==="object")metadata=metadata.ptr;if(entry_name&&typeof entry_name==="object")entry_name=entry_name.ptr;else entry_name=ensureString(entry_name);return UTF8ToString(_emscripten_bind_MetadataQuerier_GetStringEntry_2(self,metadata,entry_name))};MetadataQuerier.prototype["NumEntries"]=MetadataQuerier.prototype.NumEntries=function(metadata){var self=this.ptr;if(metadata&&typeof metadata==="object")metadata=metadata.ptr;return _emscripten_bind_MetadataQuerier_NumEntries_1(self,metadata)};MetadataQuerier.prototype["GetEntryName"]=MetadataQuerier.prototype.GetEntryName=function(metadata,entry_id){var self=this.ptr;if(metadata&&typeof metadata==="object")metadata=metadata.ptr;if(entry_id&&typeof entry_id==="object")entry_id=entry_id.ptr;return UTF8ToString(_emscripten_bind_MetadataQuerier_GetEntryName_2(self,metadata,entry_id))};MetadataQuerier.prototype["__destroy__"]=MetadataQuerier.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_MetadataQuerier___destroy___0(self)};function Decoder(){this.ptr=_emscripten_bind_Decoder_Decoder_0();getCache(Decoder)[this.ptr]=this}Decoder.prototype=Object.create(WrapperObject.prototype);Decoder.prototype.constructor=Decoder;Decoder.prototype.__class__=Decoder;Decoder.__cache__={};Module["Decoder"]=Decoder;Decoder.prototype["DecodeArrayToPointCloud"]=Decoder.prototype.DecodeArrayToPointCloud=function(data,data_size,out_point_cloud){var self=this.ptr;ensureCache.prepare();if(typeof data=="object"){data=ensureInt8(data)}if(data_size&&typeof data_size==="object")data_size=data_size.ptr;if(out_point_cloud&&typeof out_point_cloud==="object")out_point_cloud=out_point_cloud.ptr;return wrapPointer(_emscripten_bind_Decoder_DecodeArrayToPointCloud_3(self,data,data_size,out_point_cloud),Status)};Decoder.prototype["DecodeArrayToMesh"]=Decoder.prototype.DecodeArrayToMesh=function(data,data_size,out_mesh){var self=this.ptr;ensureCache.prepare();if(typeof data=="object"){data=ensureInt8(data)}if(data_size&&typeof data_size==="object")data_size=data_size.ptr;if(out_mesh&&typeof out_mesh==="object")out_mesh=out_mesh.ptr;return wrapPointer(_emscripten_bind_Decoder_DecodeArrayToMesh_3(self,data,data_size,out_mesh),Status)};Decoder.prototype["GetAttributeId"]=Decoder.prototype.GetAttributeId=function(pc,type){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(type&&typeof type==="object")type=type.ptr;return _emscripten_bind_Decoder_GetAttributeId_2(self,pc,type)};Decoder.prototype["GetAttributeIdByName"]=Decoder.prototype.GetAttributeIdByName=function(pc,name){var self=this.ptr;ensureCache.prepare();if(pc&&typeof pc==="object")pc=pc.ptr;if(name&&typeof name==="object")name=name.ptr;else name=ensureString(name);return _emscripten_bind_Decoder_GetAttributeIdByName_2(self,pc,name)};Decoder.prototype["GetAttributeIdByMetadataEntry"]=Decoder.prototype.GetAttributeIdByMetadataEntry=function(pc,name,value){var self=this.ptr;ensureCache.prepare();if(pc&&typeof pc==="object")pc=pc.ptr;if(name&&typeof name==="object")name=name.ptr;else name=ensureString(name);if(value&&typeof value==="object")value=value.ptr;else value=ensureString(value);return _emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3(self,pc,name,value)};Decoder.prototype["GetAttribute"]=Decoder.prototype.GetAttribute=function(pc,att_id){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(att_id&&typeof att_id==="object")att_id=att_id.ptr;return wrapPointer(_emscripten_bind_Decoder_GetAttribute_2(self,pc,att_id),PointAttribute)};Decoder.prototype["GetAttributeByUniqueId"]=Decoder.prototype.GetAttributeByUniqueId=function(pc,unique_id){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(unique_id&&typeof unique_id==="object")unique_id=unique_id.ptr;return wrapPointer(_emscripten_bind_Decoder_GetAttributeByUniqueId_2(self,pc,unique_id),PointAttribute)};Decoder.prototype["GetMetadata"]=Decoder.prototype.GetMetadata=function(pc){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;return wrapPointer(_emscripten_bind_Decoder_GetMetadata_1(self,pc),Metadata)};Decoder.prototype["GetAttributeMetadata"]=Decoder.prototype.GetAttributeMetadata=function(pc,att_id){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(att_id&&typeof att_id==="object")att_id=att_id.ptr;return wrapPointer(_emscripten_bind_Decoder_GetAttributeMetadata_2(self,pc,att_id),Metadata)};Decoder.prototype["GetFaceFromMesh"]=Decoder.prototype.GetFaceFromMesh=function(m,face_id,out_values){var self=this.ptr;if(m&&typeof m==="object")m=m.ptr;if(face_id&&typeof face_id==="object")face_id=face_id.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetFaceFromMesh_3(self,m,face_id,out_values)};Decoder.prototype["GetTriangleStripsFromMesh"]=Decoder.prototype.GetTriangleStripsFromMesh=function(m,strip_values){var self=this.ptr;if(m&&typeof m==="object")m=m.ptr;if(strip_values&&typeof strip_values==="object")strip_values=strip_values.ptr;return _emscripten_bind_Decoder_GetTriangleStripsFromMesh_2(self,m,strip_values)};Decoder.prototype["GetTrianglesUInt16Array"]=Decoder.prototype.GetTrianglesUInt16Array=function(m,out_size,out_values){var self=this.ptr;if(m&&typeof m==="object")m=m.ptr;if(out_size&&typeof out_size==="object")out_size=out_size.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetTrianglesUInt16Array_3(self,m,out_size,out_values)};Decoder.prototype["GetTrianglesUInt32Array"]=Decoder.prototype.GetTrianglesUInt32Array=function(m,out_size,out_values){var self=this.ptr;if(m&&typeof m==="object")m=m.ptr;if(out_size&&typeof out_size==="object")out_size=out_size.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetTrianglesUInt32Array_3(self,m,out_size,out_values)};Decoder.prototype["GetAttributeFloat"]=Decoder.prototype.GetAttributeFloat=function(pa,att_index,out_values){var self=this.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(att_index&&typeof att_index==="object")att_index=att_index.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeFloat_3(self,pa,att_index,out_values)};Decoder.prototype["GetAttributeFloatForAllPoints"]=Decoder.prototype.GetAttributeFloatForAllPoints=function(pc,pa,out_values){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3(self,pc,pa,out_values)};Decoder.prototype["GetAttributeIntForAllPoints"]=Decoder.prototype.GetAttributeIntForAllPoints=function(pc,pa,out_values){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeIntForAllPoints_3(self,pc,pa,out_values)};Decoder.prototype["GetAttributeInt8ForAllPoints"]=Decoder.prototype.GetAttributeInt8ForAllPoints=function(pc,pa,out_values){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3(self,pc,pa,out_values)};Decoder.prototype["GetAttributeUInt8ForAllPoints"]=Decoder.prototype.GetAttributeUInt8ForAllPoints=function(pc,pa,out_values){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3(self,pc,pa,out_values)};Decoder.prototype["GetAttributeInt16ForAllPoints"]=Decoder.prototype.GetAttributeInt16ForAllPoints=function(pc,pa,out_values){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3(self,pc,pa,out_values)};Decoder.prototype["GetAttributeUInt16ForAllPoints"]=Decoder.prototype.GetAttributeUInt16ForAllPoints=function(pc,pa,out_values){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3(self,pc,pa,out_values)};Decoder.prototype["GetAttributeInt32ForAllPoints"]=Decoder.prototype.GetAttributeInt32ForAllPoints=function(pc,pa,out_values){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3(self,pc,pa,out_values)};Decoder.prototype["GetAttributeUInt32ForAllPoints"]=Decoder.prototype.GetAttributeUInt32ForAllPoints=function(pc,pa,out_values){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3(self,pc,pa,out_values)};Decoder.prototype["GetAttributeDataArrayForAllPoints"]=Decoder.prototype.GetAttributeDataArrayForAllPoints=function(pc,pa,data_type,out_size,out_values){var self=this.ptr;if(pc&&typeof pc==="object")pc=pc.ptr;if(pa&&typeof pa==="object")pa=pa.ptr;if(data_type&&typeof data_type==="object")data_type=data_type.ptr;if(out_size&&typeof out_size==="object")out_size=out_size.ptr;if(out_values&&typeof out_values==="object")out_values=out_values.ptr;return!!_emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5(self,pc,pa,data_type,out_size,out_values)};Decoder.prototype["SkipAttributeTransform"]=Decoder.prototype.SkipAttributeTransform=function(att_type){var self=this.ptr;if(att_type&&typeof att_type==="object")att_type=att_type.ptr;_emscripten_bind_Decoder_SkipAttributeTransform_1(self,att_type)};Decoder.prototype["GetEncodedGeometryType_Deprecated"]=Decoder.prototype.GetEncodedGeometryType_Deprecated=function(in_buffer){var self=this.ptr;if(in_buffer&&typeof in_buffer==="object")in_buffer=in_buffer.ptr;return _emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1(self,in_buffer)};Decoder.prototype["DecodeBufferToPointCloud"]=Decoder.prototype.DecodeBufferToPointCloud=function(in_buffer,out_point_cloud){var self=this.ptr;if(in_buffer&&typeof in_buffer==="object")in_buffer=in_buffer.ptr;if(out_point_cloud&&typeof out_point_cloud==="object")out_point_cloud=out_point_cloud.ptr;return wrapPointer(_emscripten_bind_Decoder_DecodeBufferToPointCloud_2(self,in_buffer,out_point_cloud),Status)};Decoder.prototype["DecodeBufferToMesh"]=Decoder.prototype.DecodeBufferToMesh=function(in_buffer,out_mesh){var self=this.ptr;if(in_buffer&&typeof in_buffer==="object")in_buffer=in_buffer.ptr;if(out_mesh&&typeof out_mesh==="object")out_mesh=out_mesh.ptr;return wrapPointer(_emscripten_bind_Decoder_DecodeBufferToMesh_2(self,in_buffer,out_mesh),Status)};Decoder.prototype["__destroy__"]=Decoder.prototype.__destroy__=function(){var self=this.ptr;_emscripten_bind_Decoder___destroy___0(self)};(function(){function setupEnums(){Module["ATTRIBUTE_INVALID_TRANSFORM"]=_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM();Module["ATTRIBUTE_NO_TRANSFORM"]=_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM();Module["ATTRIBUTE_QUANTIZATION_TRANSFORM"]=_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM();Module["ATTRIBUTE_OCTAHEDRON_TRANSFORM"]=_emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM();Module["INVALID"]=_emscripten_enum_draco_GeometryAttribute_Type_INVALID();Module["POSITION"]=_emscripten_enum_draco_GeometryAttribute_Type_POSITION();Module["NORMAL"]=_emscripten_enum_draco_GeometryAttribute_Type_NORMAL();Module["COLOR"]=_emscripten_enum_draco_GeometryAttribute_Type_COLOR();Module["TEX_COORD"]=_emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD();Module["GENERIC"]=_emscripten_enum_draco_GeometryAttribute_Type_GENERIC();Module["INVALID_GEOMETRY_TYPE"]=_emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE();Module["POINT_CLOUD"]=_emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD();Module["TRIANGULAR_MESH"]=_emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH();Module["DT_INVALID"]=_emscripten_enum_draco_DataType_DT_INVALID();Module["DT_INT8"]=_emscripten_enum_draco_DataType_DT_INT8();Module["DT_UINT8"]=_emscripten_enum_draco_DataType_DT_UINT8();Module["DT_INT16"]=_emscripten_enum_draco_DataType_DT_INT16();Module["DT_UINT16"]=_emscripten_enum_draco_DataType_DT_UINT16();Module["DT_INT32"]=_emscripten_enum_draco_DataType_DT_INT32();Module["DT_UINT32"]=_emscripten_enum_draco_DataType_DT_UINT32();Module["DT_INT64"]=_emscripten_enum_draco_DataType_DT_INT64();Module["DT_UINT64"]=_emscripten_enum_draco_DataType_DT_UINT64();Module["DT_FLOAT32"]=_emscripten_enum_draco_DataType_DT_FLOAT32();Module["DT_FLOAT64"]=_emscripten_enum_draco_DataType_DT_FLOAT64();Module["DT_BOOL"]=_emscripten_enum_draco_DataType_DT_BOOL();Module["DT_TYPES_COUNT"]=_emscripten_enum_draco_DataType_DT_TYPES_COUNT();Module["OK"]=_emscripten_enum_draco_StatusCode_OK();Module["DRACO_ERROR"]=_emscripten_enum_draco_StatusCode_DRACO_ERROR();Module["IO_ERROR"]=_emscripten_enum_draco_StatusCode_IO_ERROR();Module["INVALID_PARAMETER"]=_emscripten_enum_draco_StatusCode_INVALID_PARAMETER();Module["UNSUPPORTED_VERSION"]=_emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION();Module["UNKNOWN_VERSION"]=_emscripten_enum_draco_StatusCode_UNKNOWN_VERSION()}if(runtimeInitialized)setupEnums();else addOnInit(setupEnums)})();if(typeof Module["onModuleParsed"]==="function"){Module["onModuleParsed"]()}Module["Decoder"].prototype.GetEncodedGeometryType=function(array){if(array.__class__&&array.__class__===Module.DecoderBuffer){return Module.Decoder.prototype.GetEncodedGeometryType_Deprecated(array)}if(array.byteLength<8)return Module.INVALID_GEOMETRY_TYPE;switch(array[7]){case 0:return Module.POINT_CLOUD;case 1:return Module.TRIANGULAR_MESH;default:return Module.INVALID_GEOMETRY_TYPE}};
return DracoDecoderModule.ready
}
);
})();
if (typeof exports === 'object' && typeof module === 'object')
module.exports = DracoDecoderModule;
else if (typeof define === 'function' && define['amd'])
define([], function() { return DracoDecoderModule; });
else if (typeof exports === 'object')
exports["DracoDecoderModule"] = DracoDecoderModule;